diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 29392 |
1 files changed, 29392 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..99782f37e --- /dev/null +++ b/configure | |||
@@ -0,0 +1,29392 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.372 . | ||
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 | LIBWRAP | ||
697 | LIBEDIT | ||
698 | LIBPAM | ||
699 | INSTALL_SSH_RAND_HELPER | ||
700 | SSH_PRIVSEP_USER | ||
701 | PROG_LS | ||
702 | PROG_NETSTAT | ||
703 | PROG_ARP | ||
704 | PROG_IFCONFIG | ||
705 | PROG_JSTAT | ||
706 | PROG_PS | ||
707 | PROG_SAR | ||
708 | PROG_W | ||
709 | PROG_WHO | ||
710 | PROG_LAST | ||
711 | PROG_LASTLOG | ||
712 | PROG_DF | ||
713 | PROG_VMSTAT | ||
714 | PROG_UPTIME | ||
715 | PROG_IPCS | ||
716 | PROG_TAIL | ||
717 | INSTALL_SSH_PRNG_CMDS | ||
718 | OPENSC_CONFIG | ||
719 | LIBSELINUX | ||
720 | PRIVSEP_PATH | ||
721 | xauth_path | ||
722 | STRIP_OPT | ||
723 | XAUTH_PATH | ||
724 | NROFF | ||
725 | MANTYPE | ||
726 | mansubdir | ||
727 | user_path | ||
728 | piddir | ||
729 | LIBOBJS | ||
730 | LTLIBOBJS' | ||
731 | ac_subst_files='' | ||
732 | ac_precious_vars='build_alias | ||
733 | host_alias | ||
734 | target_alias | ||
735 | CC | ||
736 | CFLAGS | ||
737 | LDFLAGS | ||
738 | LIBS | ||
739 | CPPFLAGS | ||
740 | CPP' | ||
741 | |||
742 | |||
743 | # Initialize some variables set by options. | ||
744 | ac_init_help= | ||
745 | ac_init_version=false | ||
746 | # The variables have the same names as the options, with | ||
747 | # dashes changed to underlines. | ||
748 | cache_file=/dev/null | ||
749 | exec_prefix=NONE | ||
750 | no_create= | ||
751 | no_recursion= | ||
752 | prefix=NONE | ||
753 | program_prefix=NONE | ||
754 | program_suffix=NONE | ||
755 | program_transform_name=s,x,x, | ||
756 | silent= | ||
757 | site= | ||
758 | srcdir= | ||
759 | verbose= | ||
760 | x_includes=NONE | ||
761 | x_libraries=NONE | ||
762 | |||
763 | # Installation directory options. | ||
764 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
765 | # and all the variables that are supposed to be based on exec_prefix | ||
766 | # by default will actually change. | ||
767 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
768 | # (The list follows the same order as the GNU Coding Standards.) | ||
769 | bindir='${exec_prefix}/bin' | ||
770 | sbindir='${exec_prefix}/sbin' | ||
771 | libexecdir='${exec_prefix}/libexec' | ||
772 | datarootdir='${prefix}/share' | ||
773 | datadir='${datarootdir}' | ||
774 | sysconfdir='${prefix}/etc' | ||
775 | sharedstatedir='${prefix}/com' | ||
776 | localstatedir='${prefix}/var' | ||
777 | includedir='${prefix}/include' | ||
778 | oldincludedir='/usr/include' | ||
779 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
780 | infodir='${datarootdir}/info' | ||
781 | htmldir='${docdir}' | ||
782 | dvidir='${docdir}' | ||
783 | pdfdir='${docdir}' | ||
784 | psdir='${docdir}' | ||
785 | libdir='${exec_prefix}/lib' | ||
786 | localedir='${datarootdir}/locale' | ||
787 | mandir='${datarootdir}/man' | ||
788 | |||
789 | ac_prev= | ||
790 | ac_dashdash= | ||
791 | for ac_option | ||
792 | do | ||
793 | # If the previous option needs an argument, assign it. | ||
794 | if test -n "$ac_prev"; then | ||
795 | eval $ac_prev=\$ac_option | ||
796 | ac_prev= | ||
797 | continue | ||
798 | fi | ||
799 | |||
800 | case $ac_option in | ||
801 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
802 | *) ac_optarg=yes ;; | ||
803 | esac | ||
804 | |||
805 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
806 | |||
807 | case $ac_dashdash$ac_option in | ||
808 | --) | ||
809 | ac_dashdash=yes ;; | ||
810 | |||
811 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
812 | ac_prev=bindir ;; | ||
813 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
814 | bindir=$ac_optarg ;; | ||
815 | |||
816 | -build | --build | --buil | --bui | --bu) | ||
817 | ac_prev=build_alias ;; | ||
818 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
819 | build_alias=$ac_optarg ;; | ||
820 | |||
821 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
822 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
823 | ac_prev=cache_file ;; | ||
824 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
825 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
826 | cache_file=$ac_optarg ;; | ||
827 | |||
828 | --config-cache | -C) | ||
829 | cache_file=config.cache ;; | ||
830 | |||
831 | -datadir | --datadir | --datadi | --datad) | ||
832 | ac_prev=datadir ;; | ||
833 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
834 | datadir=$ac_optarg ;; | ||
835 | |||
836 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
837 | | --dataroo | --dataro | --datar) | ||
838 | ac_prev=datarootdir ;; | ||
839 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
840 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
841 | datarootdir=$ac_optarg ;; | ||
842 | |||
843 | -disable-* | --disable-*) | ||
844 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
845 | # Reject names that are not valid shell variable names. | ||
846 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
847 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
848 | { (exit 1); exit 1; }; } | ||
849 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
850 | eval enable_$ac_feature=no ;; | ||
851 | |||
852 | -docdir | --docdir | --docdi | --doc | --do) | ||
853 | ac_prev=docdir ;; | ||
854 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
855 | docdir=$ac_optarg ;; | ||
856 | |||
857 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
858 | ac_prev=dvidir ;; | ||
859 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
860 | dvidir=$ac_optarg ;; | ||
861 | |||
862 | -enable-* | --enable-*) | ||
863 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
864 | # Reject names that are not valid shell variable names. | ||
865 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
866 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
867 | { (exit 1); exit 1; }; } | ||
868 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
869 | eval enable_$ac_feature=\$ac_optarg ;; | ||
870 | |||
871 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
872 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
873 | | --exec | --exe | --ex) | ||
874 | ac_prev=exec_prefix ;; | ||
875 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
876 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
877 | | --exec=* | --exe=* | --ex=*) | ||
878 | exec_prefix=$ac_optarg ;; | ||
879 | |||
880 | -gas | --gas | --ga | --g) | ||
881 | # Obsolete; use --with-gas. | ||
882 | with_gas=yes ;; | ||
883 | |||
884 | -help | --help | --hel | --he | -h) | ||
885 | ac_init_help=long ;; | ||
886 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
887 | ac_init_help=recursive ;; | ||
888 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
889 | ac_init_help=short ;; | ||
890 | |||
891 | -host | --host | --hos | --ho) | ||
892 | ac_prev=host_alias ;; | ||
893 | -host=* | --host=* | --hos=* | --ho=*) | ||
894 | host_alias=$ac_optarg ;; | ||
895 | |||
896 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
897 | ac_prev=htmldir ;; | ||
898 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
899 | | --ht=*) | ||
900 | htmldir=$ac_optarg ;; | ||
901 | |||
902 | -includedir | --includedir | --includedi | --included | --include \ | ||
903 | | --includ | --inclu | --incl | --inc) | ||
904 | ac_prev=includedir ;; | ||
905 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
906 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
907 | includedir=$ac_optarg ;; | ||
908 | |||
909 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
910 | ac_prev=infodir ;; | ||
911 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
912 | infodir=$ac_optarg ;; | ||
913 | |||
914 | -libdir | --libdir | --libdi | --libd) | ||
915 | ac_prev=libdir ;; | ||
916 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
917 | libdir=$ac_optarg ;; | ||
918 | |||
919 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
920 | | --libexe | --libex | --libe) | ||
921 | ac_prev=libexecdir ;; | ||
922 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
923 | | --libexe=* | --libex=* | --libe=*) | ||
924 | libexecdir=$ac_optarg ;; | ||
925 | |||
926 | -localedir | --localedir | --localedi | --localed | --locale) | ||
927 | ac_prev=localedir ;; | ||
928 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
929 | localedir=$ac_optarg ;; | ||
930 | |||
931 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
932 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
933 | ac_prev=localstatedir ;; | ||
934 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
935 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
936 | localstatedir=$ac_optarg ;; | ||
937 | |||
938 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
939 | ac_prev=mandir ;; | ||
940 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
941 | mandir=$ac_optarg ;; | ||
942 | |||
943 | -nfp | --nfp | --nf) | ||
944 | # Obsolete; use --without-fp. | ||
945 | with_fp=no ;; | ||
946 | |||
947 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
948 | | --no-cr | --no-c | -n) | ||
949 | no_create=yes ;; | ||
950 | |||
951 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
952 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
953 | no_recursion=yes ;; | ||
954 | |||
955 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
956 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
957 | | --oldin | --oldi | --old | --ol | --o) | ||
958 | ac_prev=oldincludedir ;; | ||
959 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
960 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
961 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
962 | oldincludedir=$ac_optarg ;; | ||
963 | |||
964 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
965 | ac_prev=prefix ;; | ||
966 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
967 | prefix=$ac_optarg ;; | ||
968 | |||
969 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
970 | | --program-pre | --program-pr | --program-p) | ||
971 | ac_prev=program_prefix ;; | ||
972 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
973 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
974 | program_prefix=$ac_optarg ;; | ||
975 | |||
976 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
977 | | --program-suf | --program-su | --program-s) | ||
978 | ac_prev=program_suffix ;; | ||
979 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
980 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
981 | program_suffix=$ac_optarg ;; | ||
982 | |||
983 | -program-transform-name | --program-transform-name \ | ||
984 | | --program-transform-nam | --program-transform-na \ | ||
985 | | --program-transform-n | --program-transform- \ | ||
986 | | --program-transform | --program-transfor \ | ||
987 | | --program-transfo | --program-transf \ | ||
988 | | --program-trans | --program-tran \ | ||
989 | | --progr-tra | --program-tr | --program-t) | ||
990 | ac_prev=program_transform_name ;; | ||
991 | -program-transform-name=* | --program-transform-name=* \ | ||
992 | | --program-transform-nam=* | --program-transform-na=* \ | ||
993 | | --program-transform-n=* | --program-transform-=* \ | ||
994 | | --program-transform=* | --program-transfor=* \ | ||
995 | | --program-transfo=* | --program-transf=* \ | ||
996 | | --program-trans=* | --program-tran=* \ | ||
997 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
998 | program_transform_name=$ac_optarg ;; | ||
999 | |||
1000 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1001 | ac_prev=pdfdir ;; | ||
1002 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1003 | pdfdir=$ac_optarg ;; | ||
1004 | |||
1005 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1006 | ac_prev=psdir ;; | ||
1007 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1008 | psdir=$ac_optarg ;; | ||
1009 | |||
1010 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1011 | | -silent | --silent | --silen | --sile | --sil) | ||
1012 | silent=yes ;; | ||
1013 | |||
1014 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1015 | ac_prev=sbindir ;; | ||
1016 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1017 | | --sbi=* | --sb=*) | ||
1018 | sbindir=$ac_optarg ;; | ||
1019 | |||
1020 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1021 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1022 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1023 | | --sha | --sh) | ||
1024 | ac_prev=sharedstatedir ;; | ||
1025 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1026 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1027 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1028 | | --sha=* | --sh=*) | ||
1029 | sharedstatedir=$ac_optarg ;; | ||
1030 | |||
1031 | -site | --site | --sit) | ||
1032 | ac_prev=site ;; | ||
1033 | -site=* | --site=* | --sit=*) | ||
1034 | site=$ac_optarg ;; | ||
1035 | |||
1036 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1037 | ac_prev=srcdir ;; | ||
1038 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1039 | srcdir=$ac_optarg ;; | ||
1040 | |||
1041 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1042 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1043 | ac_prev=sysconfdir ;; | ||
1044 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1045 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1046 | sysconfdir=$ac_optarg ;; | ||
1047 | |||
1048 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1049 | ac_prev=target_alias ;; | ||
1050 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1051 | target_alias=$ac_optarg ;; | ||
1052 | |||
1053 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1054 | verbose=yes ;; | ||
1055 | |||
1056 | -version | --version | --versio | --versi | --vers | -V) | ||
1057 | ac_init_version=: ;; | ||
1058 | |||
1059 | -with-* | --with-*) | ||
1060 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1061 | # Reject names that are not valid shell variable names. | ||
1062 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1063 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1064 | { (exit 1); exit 1; }; } | ||
1065 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1066 | eval with_$ac_package=\$ac_optarg ;; | ||
1067 | |||
1068 | -without-* | --without-*) | ||
1069 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1070 | # Reject names that are not valid shell variable names. | ||
1071 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1072 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1073 | { (exit 1); exit 1; }; } | ||
1074 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1075 | eval with_$ac_package=no ;; | ||
1076 | |||
1077 | --x) | ||
1078 | # Obsolete; use --with-x. | ||
1079 | with_x=yes ;; | ||
1080 | |||
1081 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1082 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1083 | ac_prev=x_includes ;; | ||
1084 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1085 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1086 | x_includes=$ac_optarg ;; | ||
1087 | |||
1088 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1089 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1090 | ac_prev=x_libraries ;; | ||
1091 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1092 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1093 | x_libraries=$ac_optarg ;; | ||
1094 | |||
1095 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1096 | Try \`$0 --help' for more information." >&2 | ||
1097 | { (exit 1); exit 1; }; } | ||
1098 | ;; | ||
1099 | |||
1100 | *=*) | ||
1101 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1102 | # Reject names that are not valid shell variable names. | ||
1103 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1104 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1105 | { (exit 1); exit 1; }; } | ||
1106 | eval $ac_envvar=\$ac_optarg | ||
1107 | export $ac_envvar ;; | ||
1108 | |||
1109 | *) | ||
1110 | # FIXME: should be removed in autoconf 3.0. | ||
1111 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1112 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1113 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1114 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1115 | ;; | ||
1116 | |||
1117 | esac | ||
1118 | done | ||
1119 | |||
1120 | if test -n "$ac_prev"; then | ||
1121 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1122 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1123 | { (exit 1); exit 1; }; } | ||
1124 | fi | ||
1125 | |||
1126 | # Be sure to have absolute directory names. | ||
1127 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1128 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1129 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1130 | libdir localedir mandir | ||
1131 | do | ||
1132 | eval ac_val=\$$ac_var | ||
1133 | case $ac_val in | ||
1134 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1135 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1136 | esac | ||
1137 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1138 | { (exit 1); exit 1; }; } | ||
1139 | done | ||
1140 | |||
1141 | # There might be people who depend on the old broken behavior: `$host' | ||
1142 | # used to hold the argument of --host etc. | ||
1143 | # FIXME: To remove some day. | ||
1144 | build=$build_alias | ||
1145 | host=$host_alias | ||
1146 | target=$target_alias | ||
1147 | |||
1148 | # FIXME: To remove some day. | ||
1149 | if test "x$host_alias" != x; then | ||
1150 | if test "x$build_alias" = x; then | ||
1151 | cross_compiling=maybe | ||
1152 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1153 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1154 | elif test "x$build_alias" != "x$host_alias"; then | ||
1155 | cross_compiling=yes | ||
1156 | fi | ||
1157 | fi | ||
1158 | |||
1159 | ac_tool_prefix= | ||
1160 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1161 | |||
1162 | test "$silent" = yes && exec 6>/dev/null | ||
1163 | |||
1164 | |||
1165 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1166 | ac_ls_di=`ls -di .` && | ||
1167 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1168 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1169 | { (exit 1); exit 1; }; } | ||
1170 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1171 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1172 | { (exit 1); exit 1; }; } | ||
1173 | |||
1174 | |||
1175 | # Find the source files, if location was not specified. | ||
1176 | if test -z "$srcdir"; then | ||
1177 | ac_srcdir_defaulted=yes | ||
1178 | # Try the directory containing this script, then the parent directory. | ||
1179 | ac_confdir=`$as_dirname -- "$0" || | ||
1180 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1181 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1182 | X"$0" : 'X\(//\)$' \| \ | ||
1183 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1184 | echo X"$0" | | ||
1185 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1186 | s//\1/ | ||
1187 | q | ||
1188 | } | ||
1189 | /^X\(\/\/\)[^/].*/{ | ||
1190 | s//\1/ | ||
1191 | q | ||
1192 | } | ||
1193 | /^X\(\/\/\)$/{ | ||
1194 | s//\1/ | ||
1195 | q | ||
1196 | } | ||
1197 | /^X\(\/\).*/{ | ||
1198 | s//\1/ | ||
1199 | q | ||
1200 | } | ||
1201 | s/.*/./; q'` | ||
1202 | srcdir=$ac_confdir | ||
1203 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1204 | srcdir=.. | ||
1205 | fi | ||
1206 | else | ||
1207 | ac_srcdir_defaulted=no | ||
1208 | fi | ||
1209 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1210 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1211 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1212 | { (exit 1); exit 1; }; } | ||
1213 | fi | ||
1214 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1215 | ac_abs_confdir=`( | ||
1216 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1217 | { (exit 1); exit 1; }; } | ||
1218 | pwd)` | ||
1219 | # When building in place, set srcdir=. | ||
1220 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1221 | srcdir=. | ||
1222 | fi | ||
1223 | # Remove unnecessary trailing slashes from srcdir. | ||
1224 | # Double slashes in file names in object file debugging info | ||
1225 | # mess up M-x gdb in Emacs. | ||
1226 | case $srcdir in | ||
1227 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1228 | esac | ||
1229 | for ac_var in $ac_precious_vars; do | ||
1230 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1231 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1232 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1233 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1234 | done | ||
1235 | |||
1236 | # | ||
1237 | # Report the --help message. | ||
1238 | # | ||
1239 | if test "$ac_init_help" = "long"; then | ||
1240 | # Omit some internal or obsolete options to make the list less imposing. | ||
1241 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1242 | cat <<_ACEOF | ||
1243 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1244 | |||
1245 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1246 | |||
1247 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1248 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1249 | |||
1250 | Defaults for the options are specified in brackets. | ||
1251 | |||
1252 | Configuration: | ||
1253 | -h, --help display this help and exit | ||
1254 | --help=short display options specific to this package | ||
1255 | --help=recursive display the short help of all the included packages | ||
1256 | -V, --version display version information and exit | ||
1257 | -q, --quiet, --silent do not print \`checking...' messages | ||
1258 | --cache-file=FILE cache test results in FILE [disabled] | ||
1259 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1260 | -n, --no-create do not create output files | ||
1261 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1262 | |||
1263 | Installation directories: | ||
1264 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1265 | [$ac_default_prefix] | ||
1266 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1267 | [PREFIX] | ||
1268 | |||
1269 | By default, \`make install' will install all the files in | ||
1270 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1271 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1272 | for instance \`--prefix=\$HOME'. | ||
1273 | |||
1274 | For better control, use the options below. | ||
1275 | |||
1276 | Fine tuning of the installation directories: | ||
1277 | --bindir=DIR user executables [EPREFIX/bin] | ||
1278 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1279 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1280 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1281 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1282 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1283 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1284 | --includedir=DIR C header files [PREFIX/include] | ||
1285 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1286 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1287 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1288 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1289 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1290 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1291 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1292 | --htmldir=DIR html documentation [DOCDIR] | ||
1293 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1294 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1295 | --psdir=DIR ps documentation [DOCDIR] | ||
1296 | _ACEOF | ||
1297 | |||
1298 | cat <<\_ACEOF | ||
1299 | |||
1300 | System types: | ||
1301 | --build=BUILD configure for building on BUILD [guessed] | ||
1302 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1303 | _ACEOF | ||
1304 | fi | ||
1305 | |||
1306 | if test -n "$ac_init_help"; then | ||
1307 | case $ac_init_help in | ||
1308 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1309 | esac | ||
1310 | cat <<\_ACEOF | ||
1311 | |||
1312 | Optional Features: | ||
1313 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1314 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1315 | --disable-largefile omit support for large files | ||
1316 | --disable-strip Disable calling strip(1) on install | ||
1317 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1318 | --disable-lastlog disable use of lastlog even if detected no | ||
1319 | --disable-utmp disable use of utmp even if detected no | ||
1320 | --disable-utmpx disable use of utmpx even if detected no | ||
1321 | --disable-wtmp disable use of wtmp even if detected no | ||
1322 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1323 | --disable-libutil disable use of libutil (login() etc.) no | ||
1324 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1325 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1326 | |||
1327 | Optional Packages: | ||
1328 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1329 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1330 | --without-rpath Disable auto-added -R linker paths | ||
1331 | --with-cflags Specify additional flags to pass to compiler | ||
1332 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1333 | --with-ldflags Specify additional flags to pass to linker | ||
1334 | --with-libs Specify additional libraries to link with | ||
1335 | --with-Werror Build main code with -Werror | ||
1336 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1337 | --with-osfsia Enable Digital Unix SIA | ||
1338 | --with-zlib=PATH Use zlib in PATH | ||
1339 | --without-zlib-version-check Disable zlib version check | ||
1340 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1341 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
1342 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1343 | --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) | ||
1344 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1345 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1346 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1347 | --with-pam Enable PAM support | ||
1348 | --with-rand-helper Use subprocess to gather strong randomness | ||
1349 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1350 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1351 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
1352 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1353 | --with-sectok Enable smartcard support using libsectok | ||
1354 | --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) | ||
1355 | --with-selinux Enable SELinux support | ||
1356 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1357 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1358 | --with-xauth=PATH Specify path to xauth program | ||
1359 | --with-mantype=man|cat|doc Set man page type | ||
1360 | --with-md5-passwords Enable use of MD5 passwords | ||
1361 | --without-shadow Disable shadow password support | ||
1362 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
1363 | --with-default-path= Specify default \$PATH environment for server | ||
1364 | --with-superuser-path= Specify different path for super-user | ||
1365 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1366 | --with-bsd-auth Enable BSD auth support | ||
1367 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1368 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1369 | |||
1370 | Some influential environment variables: | ||
1371 | CC C compiler command | ||
1372 | CFLAGS C compiler flags | ||
1373 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1374 | nonstandard directory <lib dir> | ||
1375 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1376 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1377 | you have headers in a nonstandard directory <include dir> | ||
1378 | CPP C preprocessor | ||
1379 | |||
1380 | Use these variables to override the choices made by `configure' or to help | ||
1381 | it to find libraries and programs with nonstandard names/locations. | ||
1382 | |||
1383 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1384 | _ACEOF | ||
1385 | ac_status=$? | ||
1386 | fi | ||
1387 | |||
1388 | if test "$ac_init_help" = "recursive"; then | ||
1389 | # If there are subdirs, report their specific --help. | ||
1390 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1391 | test -d "$ac_dir" || continue | ||
1392 | ac_builddir=. | ||
1393 | |||
1394 | case "$ac_dir" in | ||
1395 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1396 | *) | ||
1397 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1398 | # A ".." for each directory in $ac_dir_suffix. | ||
1399 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1400 | case $ac_top_builddir_sub in | ||
1401 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1402 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1403 | esac ;; | ||
1404 | esac | ||
1405 | ac_abs_top_builddir=$ac_pwd | ||
1406 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1407 | # for backward compatibility: | ||
1408 | ac_top_builddir=$ac_top_build_prefix | ||
1409 | |||
1410 | case $srcdir in | ||
1411 | .) # We are building in place. | ||
1412 | ac_srcdir=. | ||
1413 | ac_top_srcdir=$ac_top_builddir_sub | ||
1414 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1415 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1416 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1417 | ac_top_srcdir=$srcdir | ||
1418 | ac_abs_top_srcdir=$srcdir ;; | ||
1419 | *) # Relative name. | ||
1420 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1421 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1422 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1423 | esac | ||
1424 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1425 | |||
1426 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1427 | # Check for guested configure. | ||
1428 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1429 | echo && | ||
1430 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1431 | elif test -f "$ac_srcdir/configure"; then | ||
1432 | echo && | ||
1433 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1434 | else | ||
1435 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1436 | fi || ac_status=$? | ||
1437 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1438 | done | ||
1439 | fi | ||
1440 | |||
1441 | test -n "$ac_init_help" && exit $ac_status | ||
1442 | if $ac_init_version; then | ||
1443 | cat <<\_ACEOF | ||
1444 | OpenSSH configure Portable | ||
1445 | generated by GNU Autoconf 2.61 | ||
1446 | |||
1447 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1448 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1449 | This configure script is free software; the Free Software Foundation | ||
1450 | gives unlimited permission to copy, distribute and modify it. | ||
1451 | _ACEOF | ||
1452 | exit | ||
1453 | fi | ||
1454 | cat >config.log <<_ACEOF | ||
1455 | This file contains any messages produced by compilers while | ||
1456 | running configure, to aid debugging if configure makes a mistake. | ||
1457 | |||
1458 | It was created by OpenSSH $as_me Portable, which was | ||
1459 | generated by GNU Autoconf 2.61. Invocation command line was | ||
1460 | |||
1461 | $ $0 $@ | ||
1462 | |||
1463 | _ACEOF | ||
1464 | exec 5>>config.log | ||
1465 | { | ||
1466 | cat <<_ASUNAME | ||
1467 | ## --------- ## | ||
1468 | ## Platform. ## | ||
1469 | ## --------- ## | ||
1470 | |||
1471 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1472 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1473 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1474 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1475 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1476 | |||
1477 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1478 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1479 | |||
1480 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1481 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1482 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1483 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1484 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1485 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1486 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1487 | |||
1488 | _ASUNAME | ||
1489 | |||
1490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1491 | for as_dir in $PATH | ||
1492 | do | ||
1493 | IFS=$as_save_IFS | ||
1494 | test -z "$as_dir" && as_dir=. | ||
1495 | echo "PATH: $as_dir" | ||
1496 | done | ||
1497 | IFS=$as_save_IFS | ||
1498 | |||
1499 | } >&5 | ||
1500 | |||
1501 | cat >&5 <<_ACEOF | ||
1502 | |||
1503 | |||
1504 | ## ----------- ## | ||
1505 | ## Core tests. ## | ||
1506 | ## ----------- ## | ||
1507 | |||
1508 | _ACEOF | ||
1509 | |||
1510 | |||
1511 | # Keep a trace of the command line. | ||
1512 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1513 | # Strip out --silent because we don't want to record it for future runs. | ||
1514 | # Also quote any args containing shell meta-characters. | ||
1515 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1516 | ac_configure_args= | ||
1517 | ac_configure_args0= | ||
1518 | ac_configure_args1= | ||
1519 | ac_must_keep_next=false | ||
1520 | for ac_pass in 1 2 | ||
1521 | do | ||
1522 | for ac_arg | ||
1523 | do | ||
1524 | case $ac_arg in | ||
1525 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1526 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1527 | | -silent | --silent | --silen | --sile | --sil) | ||
1528 | continue ;; | ||
1529 | *\'*) | ||
1530 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1531 | esac | ||
1532 | case $ac_pass in | ||
1533 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1534 | 2) | ||
1535 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1536 | if test $ac_must_keep_next = true; then | ||
1537 | ac_must_keep_next=false # Got value, back to normal. | ||
1538 | else | ||
1539 | case $ac_arg in | ||
1540 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1541 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1542 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1543 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1544 | case "$ac_configure_args0 " in | ||
1545 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1546 | esac | ||
1547 | ;; | ||
1548 | -* ) ac_must_keep_next=true ;; | ||
1549 | esac | ||
1550 | fi | ||
1551 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1552 | ;; | ||
1553 | esac | ||
1554 | done | ||
1555 | done | ||
1556 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1557 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1558 | |||
1559 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1560 | # config.log. We remove comments because anyway the quotes in there | ||
1561 | # would cause problems or look ugly. | ||
1562 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1563 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1564 | trap 'exit_status=$? | ||
1565 | # Save into config.log some information that might help in debugging. | ||
1566 | { | ||
1567 | echo | ||
1568 | |||
1569 | cat <<\_ASBOX | ||
1570 | ## ---------------- ## | ||
1571 | ## Cache variables. ## | ||
1572 | ## ---------------- ## | ||
1573 | _ASBOX | ||
1574 | echo | ||
1575 | # The following way of writing the cache mishandles newlines in values, | ||
1576 | ( | ||
1577 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1578 | eval ac_val=\$$ac_var | ||
1579 | case $ac_val in #( | ||
1580 | *${as_nl}*) | ||
1581 | case $ac_var in #( | ||
1582 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1583 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1584 | esac | ||
1585 | case $ac_var in #( | ||
1586 | _ | IFS | as_nl) ;; #( | ||
1587 | *) $as_unset $ac_var ;; | ||
1588 | esac ;; | ||
1589 | esac | ||
1590 | done | ||
1591 | (set) 2>&1 | | ||
1592 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1593 | *${as_nl}ac_space=\ *) | ||
1594 | sed -n \ | ||
1595 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1596 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1597 | ;; #( | ||
1598 | *) | ||
1599 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1600 | ;; | ||
1601 | esac | | ||
1602 | sort | ||
1603 | ) | ||
1604 | echo | ||
1605 | |||
1606 | cat <<\_ASBOX | ||
1607 | ## ----------------- ## | ||
1608 | ## Output variables. ## | ||
1609 | ## ----------------- ## | ||
1610 | _ASBOX | ||
1611 | echo | ||
1612 | for ac_var in $ac_subst_vars | ||
1613 | do | ||
1614 | eval ac_val=\$$ac_var | ||
1615 | case $ac_val in | ||
1616 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1617 | esac | ||
1618 | echo "$ac_var='\''$ac_val'\''" | ||
1619 | done | sort | ||
1620 | echo | ||
1621 | |||
1622 | if test -n "$ac_subst_files"; then | ||
1623 | cat <<\_ASBOX | ||
1624 | ## ------------------- ## | ||
1625 | ## File substitutions. ## | ||
1626 | ## ------------------- ## | ||
1627 | _ASBOX | ||
1628 | echo | ||
1629 | for ac_var in $ac_subst_files | ||
1630 | do | ||
1631 | eval ac_val=\$$ac_var | ||
1632 | case $ac_val in | ||
1633 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1634 | esac | ||
1635 | echo "$ac_var='\''$ac_val'\''" | ||
1636 | done | sort | ||
1637 | echo | ||
1638 | fi | ||
1639 | |||
1640 | if test -s confdefs.h; then | ||
1641 | cat <<\_ASBOX | ||
1642 | ## ----------- ## | ||
1643 | ## confdefs.h. ## | ||
1644 | ## ----------- ## | ||
1645 | _ASBOX | ||
1646 | echo | ||
1647 | cat confdefs.h | ||
1648 | echo | ||
1649 | fi | ||
1650 | test "$ac_signal" != 0 && | ||
1651 | echo "$as_me: caught signal $ac_signal" | ||
1652 | echo "$as_me: exit $exit_status" | ||
1653 | } >&5 | ||
1654 | rm -f core *.core core.conftest.* && | ||
1655 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1656 | exit $exit_status | ||
1657 | ' 0 | ||
1658 | for ac_signal in 1 2 13 15; do | ||
1659 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1660 | done | ||
1661 | ac_signal=0 | ||
1662 | |||
1663 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1664 | rm -f -r conftest* confdefs.h | ||
1665 | |||
1666 | # Predefined preprocessor variables. | ||
1667 | |||
1668 | cat >>confdefs.h <<_ACEOF | ||
1669 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1670 | _ACEOF | ||
1671 | |||
1672 | |||
1673 | cat >>confdefs.h <<_ACEOF | ||
1674 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1675 | _ACEOF | ||
1676 | |||
1677 | |||
1678 | cat >>confdefs.h <<_ACEOF | ||
1679 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1680 | _ACEOF | ||
1681 | |||
1682 | |||
1683 | cat >>confdefs.h <<_ACEOF | ||
1684 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1685 | _ACEOF | ||
1686 | |||
1687 | |||
1688 | cat >>confdefs.h <<_ACEOF | ||
1689 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1690 | _ACEOF | ||
1691 | |||
1692 | |||
1693 | # Let the site file select an alternate cache file if it wants to. | ||
1694 | # Prefer explicitly selected file to automatically selected ones. | ||
1695 | if test -n "$CONFIG_SITE"; then | ||
1696 | set x "$CONFIG_SITE" | ||
1697 | elif test "x$prefix" != xNONE; then | ||
1698 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1699 | else | ||
1700 | set x "$ac_default_prefix/share/config.site" \ | ||
1701 | "$ac_default_prefix/etc/config.site" | ||
1702 | fi | ||
1703 | shift | ||
1704 | for ac_site_file | ||
1705 | do | ||
1706 | if test -r "$ac_site_file"; then | ||
1707 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1708 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1709 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1710 | . "$ac_site_file" | ||
1711 | fi | ||
1712 | done | ||
1713 | |||
1714 | if test -r "$cache_file"; then | ||
1715 | # Some versions of bash will fail to source /dev/null (special | ||
1716 | # files actually), so we avoid doing that. | ||
1717 | if test -f "$cache_file"; then | ||
1718 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1719 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1720 | case $cache_file in | ||
1721 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1722 | *) . "./$cache_file";; | ||
1723 | esac | ||
1724 | fi | ||
1725 | else | ||
1726 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1727 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1728 | >$cache_file | ||
1729 | fi | ||
1730 | |||
1731 | # Check that the precious variables saved in the cache have kept the same | ||
1732 | # value. | ||
1733 | ac_cache_corrupted=false | ||
1734 | for ac_var in $ac_precious_vars; do | ||
1735 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1736 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1737 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1738 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1739 | case $ac_old_set,$ac_new_set in | ||
1740 | set,) | ||
1741 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1742 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1743 | ac_cache_corrupted=: ;; | ||
1744 | ,set) | ||
1745 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1746 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1747 | ac_cache_corrupted=: ;; | ||
1748 | ,);; | ||
1749 | *) | ||
1750 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1751 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1752 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1753 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1754 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1755 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1756 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1757 | ac_cache_corrupted=: | ||
1758 | fi;; | ||
1759 | esac | ||
1760 | # Pass precious variables to config.status. | ||
1761 | if test "$ac_new_set" = set; then | ||
1762 | case $ac_new_val in | ||
1763 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1764 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1765 | esac | ||
1766 | case " $ac_configure_args " in | ||
1767 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1768 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1769 | esac | ||
1770 | fi | ||
1771 | done | ||
1772 | if $ac_cache_corrupted; then | ||
1773 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1774 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1775 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1776 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1777 | { (exit 1); exit 1; }; } | ||
1778 | fi | ||
1779 | |||
1780 | |||
1781 | |||
1782 | |||
1783 | |||
1784 | |||
1785 | |||
1786 | |||
1787 | |||
1788 | |||
1789 | |||
1790 | |||
1791 | |||
1792 | |||
1793 | |||
1794 | |||
1795 | |||
1796 | |||
1797 | |||
1798 | |||
1799 | |||
1800 | |||
1801 | |||
1802 | |||
1803 | |||
1804 | ac_ext=c | ||
1805 | ac_cpp='$CPP $CPPFLAGS' | ||
1806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1809 | |||
1810 | |||
1811 | |||
1812 | |||
1813 | |||
1814 | ac_config_headers="$ac_config_headers config.h" | ||
1815 | |||
1816 | ac_ext=c | ||
1817 | ac_cpp='$CPP $CPPFLAGS' | ||
1818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1821 | if test -n "$ac_tool_prefix"; then | ||
1822 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1823 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1824 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1826 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1828 | else | ||
1829 | if test -n "$CC"; then | ||
1830 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1831 | else | ||
1832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1833 | for as_dir in $PATH | ||
1834 | do | ||
1835 | IFS=$as_save_IFS | ||
1836 | test -z "$as_dir" && as_dir=. | ||
1837 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1839 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1841 | break 2 | ||
1842 | fi | ||
1843 | done | ||
1844 | done | ||
1845 | IFS=$as_save_IFS | ||
1846 | |||
1847 | fi | ||
1848 | fi | ||
1849 | CC=$ac_cv_prog_CC | ||
1850 | if test -n "$CC"; then | ||
1851 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1852 | echo "${ECHO_T}$CC" >&6; } | ||
1853 | else | ||
1854 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1855 | echo "${ECHO_T}no" >&6; } | ||
1856 | fi | ||
1857 | |||
1858 | |||
1859 | fi | ||
1860 | if test -z "$ac_cv_prog_CC"; then | ||
1861 | ac_ct_CC=$CC | ||
1862 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1863 | set dummy gcc; ac_word=$2 | ||
1864 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1866 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1868 | else | ||
1869 | if test -n "$ac_ct_CC"; then | ||
1870 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1871 | else | ||
1872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1873 | for as_dir in $PATH | ||
1874 | do | ||
1875 | IFS=$as_save_IFS | ||
1876 | test -z "$as_dir" && as_dir=. | ||
1877 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1879 | ac_cv_prog_ac_ct_CC="gcc" | ||
1880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1881 | break 2 | ||
1882 | fi | ||
1883 | done | ||
1884 | done | ||
1885 | IFS=$as_save_IFS | ||
1886 | |||
1887 | fi | ||
1888 | fi | ||
1889 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1890 | if test -n "$ac_ct_CC"; then | ||
1891 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1892 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
1893 | else | ||
1894 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1895 | echo "${ECHO_T}no" >&6; } | ||
1896 | fi | ||
1897 | |||
1898 | if test "x$ac_ct_CC" = x; then | ||
1899 | CC="" | ||
1900 | else | ||
1901 | case $cross_compiling:$ac_tool_warned in | ||
1902 | yes:) | ||
1903 | { echo "$as_me:$LINENO: 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." >&5 | ||
1906 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
1907 | whose name does not start with the host triplet. If you think this | ||
1908 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
1909 | ac_tool_warned=yes ;; | ||
1910 | esac | ||
1911 | CC=$ac_ct_CC | ||
1912 | fi | ||
1913 | else | ||
1914 | CC="$ac_cv_prog_CC" | ||
1915 | fi | ||
1916 | |||
1917 | if test -z "$CC"; then | ||
1918 | if test -n "$ac_tool_prefix"; then | ||
1919 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1920 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1921 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1923 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1925 | else | ||
1926 | if test -n "$CC"; then | ||
1927 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1928 | else | ||
1929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1930 | for as_dir in $PATH | ||
1931 | do | ||
1932 | IFS=$as_save_IFS | ||
1933 | test -z "$as_dir" && as_dir=. | ||
1934 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1936 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1938 | break 2 | ||
1939 | fi | ||
1940 | done | ||
1941 | done | ||
1942 | IFS=$as_save_IFS | ||
1943 | |||
1944 | fi | ||
1945 | fi | ||
1946 | CC=$ac_cv_prog_CC | ||
1947 | if test -n "$CC"; then | ||
1948 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1949 | echo "${ECHO_T}$CC" >&6; } | ||
1950 | else | ||
1951 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1952 | echo "${ECHO_T}no" >&6; } | ||
1953 | fi | ||
1954 | |||
1955 | |||
1956 | fi | ||
1957 | fi | ||
1958 | if test -z "$CC"; then | ||
1959 | # Extract the first word of "cc", so it can be a program name with args. | ||
1960 | set dummy cc; ac_word=$2 | ||
1961 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1963 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1965 | else | ||
1966 | if test -n "$CC"; then | ||
1967 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1968 | else | ||
1969 | ac_prog_rejected=no | ||
1970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1971 | for as_dir in $PATH | ||
1972 | do | ||
1973 | IFS=$as_save_IFS | ||
1974 | test -z "$as_dir" && as_dir=. | ||
1975 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1977 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1978 | ac_prog_rejected=yes | ||
1979 | continue | ||
1980 | fi | ||
1981 | ac_cv_prog_CC="cc" | ||
1982 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1983 | break 2 | ||
1984 | fi | ||
1985 | done | ||
1986 | done | ||
1987 | IFS=$as_save_IFS | ||
1988 | |||
1989 | if test $ac_prog_rejected = yes; then | ||
1990 | # We found a bogon in the path, so make sure we never use it. | ||
1991 | set dummy $ac_cv_prog_CC | ||
1992 | shift | ||
1993 | if test $# != 0; then | ||
1994 | # We chose a different compiler from the bogus one. | ||
1995 | # However, it has the same basename, so the bogon will be chosen | ||
1996 | # first if we set CC to just the basename; use the full file name. | ||
1997 | shift | ||
1998 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
1999 | fi | ||
2000 | fi | ||
2001 | fi | ||
2002 | fi | ||
2003 | CC=$ac_cv_prog_CC | ||
2004 | if test -n "$CC"; then | ||
2005 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2006 | echo "${ECHO_T}$CC" >&6; } | ||
2007 | else | ||
2008 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2009 | echo "${ECHO_T}no" >&6; } | ||
2010 | fi | ||
2011 | |||
2012 | |||
2013 | fi | ||
2014 | if test -z "$CC"; then | ||
2015 | if test -n "$ac_tool_prefix"; then | ||
2016 | for ac_prog in cl.exe | ||
2017 | do | ||
2018 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2019 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2020 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2021 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2022 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2024 | else | ||
2025 | if test -n "$CC"; then | ||
2026 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2027 | else | ||
2028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2029 | for as_dir in $PATH | ||
2030 | do | ||
2031 | IFS=$as_save_IFS | ||
2032 | test -z "$as_dir" && as_dir=. | ||
2033 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2034 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2035 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2037 | break 2 | ||
2038 | fi | ||
2039 | done | ||
2040 | done | ||
2041 | IFS=$as_save_IFS | ||
2042 | |||
2043 | fi | ||
2044 | fi | ||
2045 | CC=$ac_cv_prog_CC | ||
2046 | if test -n "$CC"; then | ||
2047 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2048 | echo "${ECHO_T}$CC" >&6; } | ||
2049 | else | ||
2050 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2051 | echo "${ECHO_T}no" >&6; } | ||
2052 | fi | ||
2053 | |||
2054 | |||
2055 | test -n "$CC" && break | ||
2056 | done | ||
2057 | fi | ||
2058 | if test -z "$CC"; then | ||
2059 | ac_ct_CC=$CC | ||
2060 | for ac_prog in cl.exe | ||
2061 | do | ||
2062 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2063 | set dummy $ac_prog; ac_word=$2 | ||
2064 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2066 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2068 | else | ||
2069 | if test -n "$ac_ct_CC"; then | ||
2070 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2071 | else | ||
2072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2073 | for as_dir in $PATH | ||
2074 | do | ||
2075 | IFS=$as_save_IFS | ||
2076 | test -z "$as_dir" && as_dir=. | ||
2077 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2079 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2081 | break 2 | ||
2082 | fi | ||
2083 | done | ||
2084 | done | ||
2085 | IFS=$as_save_IFS | ||
2086 | |||
2087 | fi | ||
2088 | fi | ||
2089 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2090 | if test -n "$ac_ct_CC"; then | ||
2091 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2092 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2093 | else | ||
2094 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2095 | echo "${ECHO_T}no" >&6; } | ||
2096 | fi | ||
2097 | |||
2098 | |||
2099 | test -n "$ac_ct_CC" && break | ||
2100 | done | ||
2101 | |||
2102 | if test "x$ac_ct_CC" = x; then | ||
2103 | CC="" | ||
2104 | else | ||
2105 | case $cross_compiling:$ac_tool_warned in | ||
2106 | yes:) | ||
2107 | { echo "$as_me:$LINENO: 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." >&5 | ||
2110 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2111 | whose name does not start with the host triplet. If you think this | ||
2112 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2113 | ac_tool_warned=yes ;; | ||
2114 | esac | ||
2115 | CC=$ac_ct_CC | ||
2116 | fi | ||
2117 | fi | ||
2118 | |||
2119 | fi | ||
2120 | |||
2121 | |||
2122 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2123 | See \`config.log' for more details." >&5 | ||
2124 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2125 | See \`config.log' for more details." >&2;} | ||
2126 | { (exit 1); exit 1; }; } | ||
2127 | |||
2128 | # Provide some information about the compiler. | ||
2129 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2130 | ac_compiler=`set X $ac_compile; echo $2` | ||
2131 | { (ac_try="$ac_compiler --version >&5" | ||
2132 | case "(($ac_try" in | ||
2133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2134 | *) ac_try_echo=$ac_try;; | ||
2135 | esac | ||
2136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2137 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2138 | ac_status=$? | ||
2139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2140 | (exit $ac_status); } | ||
2141 | { (ac_try="$ac_compiler -v >&5" | ||
2142 | case "(($ac_try" in | ||
2143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2144 | *) ac_try_echo=$ac_try;; | ||
2145 | esac | ||
2146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2147 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2148 | ac_status=$? | ||
2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2150 | (exit $ac_status); } | ||
2151 | { (ac_try="$ac_compiler -V >&5" | ||
2152 | case "(($ac_try" in | ||
2153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2154 | *) ac_try_echo=$ac_try;; | ||
2155 | esac | ||
2156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2157 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2158 | ac_status=$? | ||
2159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2160 | (exit $ac_status); } | ||
2161 | |||
2162 | cat >conftest.$ac_ext <<_ACEOF | ||
2163 | /* confdefs.h. */ | ||
2164 | _ACEOF | ||
2165 | cat confdefs.h >>conftest.$ac_ext | ||
2166 | cat >>conftest.$ac_ext <<_ACEOF | ||
2167 | /* end confdefs.h. */ | ||
2168 | |||
2169 | int | ||
2170 | main () | ||
2171 | { | ||
2172 | |||
2173 | ; | ||
2174 | return 0; | ||
2175 | } | ||
2176 | _ACEOF | ||
2177 | ac_clean_files_save=$ac_clean_files | ||
2178 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2179 | # Try to create an executable without -o first, disregard a.out. | ||
2180 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2181 | # of exeext. | ||
2182 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2183 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2184 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2185 | # | ||
2186 | # List of possible output files, starting from the most likely. | ||
2187 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2188 | # only as a last resort. b.out is created by i960 compilers. | ||
2189 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2190 | # | ||
2191 | # The IRIX 6 linker writes into existing files which may not be | ||
2192 | # executable, retaining their permissions. Remove them first so a | ||
2193 | # subsequent execution test works. | ||
2194 | ac_rmfiles= | ||
2195 | for ac_file in $ac_files | ||
2196 | do | ||
2197 | case $ac_file in | ||
2198 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2199 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2200 | esac | ||
2201 | done | ||
2202 | rm -f $ac_rmfiles | ||
2203 | |||
2204 | if { (ac_try="$ac_link_default" | ||
2205 | case "(($ac_try" in | ||
2206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2207 | *) ac_try_echo=$ac_try;; | ||
2208 | esac | ||
2209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2210 | (eval "$ac_link_default") 2>&5 | ||
2211 | ac_status=$? | ||
2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2213 | (exit $ac_status); }; then | ||
2214 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2215 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2216 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2217 | # so that the user can short-circuit this test for compilers unknown to | ||
2218 | # Autoconf. | ||
2219 | for ac_file in $ac_files '' | ||
2220 | do | ||
2221 | test -f "$ac_file" || continue | ||
2222 | case $ac_file in | ||
2223 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2224 | ;; | ||
2225 | [ab].out ) | ||
2226 | # We found the default executable, but exeext='' is most | ||
2227 | # certainly right. | ||
2228 | break;; | ||
2229 | *.* ) | ||
2230 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2231 | then :; else | ||
2232 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2233 | fi | ||
2234 | # We set ac_cv_exeext here because the later test for it is not | ||
2235 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2236 | # argument, so we may need to know it at that point already. | ||
2237 | # Even if this section looks crufty: it has the advantage of | ||
2238 | # actually working. | ||
2239 | break;; | ||
2240 | * ) | ||
2241 | break;; | ||
2242 | esac | ||
2243 | done | ||
2244 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2245 | |||
2246 | else | ||
2247 | ac_file='' | ||
2248 | fi | ||
2249 | |||
2250 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2251 | echo "${ECHO_T}$ac_file" >&6; } | ||
2252 | if test -z "$ac_file"; then | ||
2253 | echo "$as_me: failed program was:" >&5 | ||
2254 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2255 | |||
2256 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2257 | See \`config.log' for more details." >&5 | ||
2258 | echo "$as_me: error: C compiler cannot create executables | ||
2259 | See \`config.log' for more details." >&2;} | ||
2260 | { (exit 77); exit 77; }; } | ||
2261 | fi | ||
2262 | |||
2263 | ac_exeext=$ac_cv_exeext | ||
2264 | |||
2265 | # Check that the compiler produces executables we can run. If not, either | ||
2266 | # the compiler is broken, or we cross compile. | ||
2267 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2268 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2269 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2270 | # If not cross compiling, check that we can run a simple program. | ||
2271 | if test "$cross_compiling" != yes; then | ||
2272 | if { ac_try='./$ac_file' | ||
2273 | { (case "(($ac_try" in | ||
2274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2275 | *) ac_try_echo=$ac_try;; | ||
2276 | esac | ||
2277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2278 | (eval "$ac_try") 2>&5 | ||
2279 | ac_status=$? | ||
2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2281 | (exit $ac_status); }; }; then | ||
2282 | cross_compiling=no | ||
2283 | else | ||
2284 | if test "$cross_compiling" = maybe; then | ||
2285 | cross_compiling=yes | ||
2286 | else | ||
2287 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2288 | If you meant to cross compile, use \`--host'. | ||
2289 | See \`config.log' for more details." >&5 | ||
2290 | echo "$as_me: error: cannot run C compiled programs. | ||
2291 | If you meant to cross compile, use \`--host'. | ||
2292 | See \`config.log' for more details." >&2;} | ||
2293 | { (exit 1); exit 1; }; } | ||
2294 | fi | ||
2295 | fi | ||
2296 | fi | ||
2297 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2298 | echo "${ECHO_T}yes" >&6; } | ||
2299 | |||
2300 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2301 | ac_clean_files=$ac_clean_files_save | ||
2302 | # Check that the compiler produces executables we can run. If not, either | ||
2303 | # the compiler is broken, or we cross compile. | ||
2304 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2305 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2306 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2307 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2308 | |||
2309 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2310 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2311 | if { (ac_try="$ac_link" | ||
2312 | case "(($ac_try" in | ||
2313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2314 | *) ac_try_echo=$ac_try;; | ||
2315 | esac | ||
2316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2317 | (eval "$ac_link") 2>&5 | ||
2318 | ac_status=$? | ||
2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2320 | (exit $ac_status); }; then | ||
2321 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2322 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2323 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2324 | # `rm'. | ||
2325 | for ac_file in conftest.exe conftest conftest.*; do | ||
2326 | test -f "$ac_file" || continue | ||
2327 | case $ac_file in | ||
2328 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2329 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2330 | break;; | ||
2331 | * ) break;; | ||
2332 | esac | ||
2333 | done | ||
2334 | else | ||
2335 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2336 | See \`config.log' for more details." >&5 | ||
2337 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2338 | See \`config.log' for more details." >&2;} | ||
2339 | { (exit 1); exit 1; }; } | ||
2340 | fi | ||
2341 | |||
2342 | rm -f conftest$ac_cv_exeext | ||
2343 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2344 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2345 | |||
2346 | rm -f conftest.$ac_ext | ||
2347 | EXEEXT=$ac_cv_exeext | ||
2348 | ac_exeext=$EXEEXT | ||
2349 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2350 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2351 | if test "${ac_cv_objext+set}" = set; then | ||
2352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2353 | else | ||
2354 | cat >conftest.$ac_ext <<_ACEOF | ||
2355 | /* confdefs.h. */ | ||
2356 | _ACEOF | ||
2357 | cat confdefs.h >>conftest.$ac_ext | ||
2358 | cat >>conftest.$ac_ext <<_ACEOF | ||
2359 | /* end confdefs.h. */ | ||
2360 | |||
2361 | int | ||
2362 | main () | ||
2363 | { | ||
2364 | |||
2365 | ; | ||
2366 | return 0; | ||
2367 | } | ||
2368 | _ACEOF | ||
2369 | rm -f conftest.o conftest.obj | ||
2370 | if { (ac_try="$ac_compile" | ||
2371 | case "(($ac_try" in | ||
2372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2373 | *) ac_try_echo=$ac_try;; | ||
2374 | esac | ||
2375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2376 | (eval "$ac_compile") 2>&5 | ||
2377 | ac_status=$? | ||
2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2379 | (exit $ac_status); }; then | ||
2380 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2381 | test -f "$ac_file" || continue; | ||
2382 | case $ac_file in | ||
2383 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2384 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2385 | break;; | ||
2386 | esac | ||
2387 | done | ||
2388 | else | ||
2389 | echo "$as_me: failed program was:" >&5 | ||
2390 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2391 | |||
2392 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2393 | See \`config.log' for more details." >&5 | ||
2394 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2395 | See \`config.log' for more details." >&2;} | ||
2396 | { (exit 1); exit 1; }; } | ||
2397 | fi | ||
2398 | |||
2399 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2400 | fi | ||
2401 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2402 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
2403 | OBJEXT=$ac_cv_objext | ||
2404 | ac_objext=$OBJEXT | ||
2405 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2406 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
2407 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2409 | else | ||
2410 | cat >conftest.$ac_ext <<_ACEOF | ||
2411 | /* confdefs.h. */ | ||
2412 | _ACEOF | ||
2413 | cat confdefs.h >>conftest.$ac_ext | ||
2414 | cat >>conftest.$ac_ext <<_ACEOF | ||
2415 | /* end confdefs.h. */ | ||
2416 | |||
2417 | int | ||
2418 | main () | ||
2419 | { | ||
2420 | #ifndef __GNUC__ | ||
2421 | choke me | ||
2422 | #endif | ||
2423 | |||
2424 | ; | ||
2425 | return 0; | ||
2426 | } | ||
2427 | _ACEOF | ||
2428 | rm -f conftest.$ac_objext | ||
2429 | if { (ac_try="$ac_compile" | ||
2430 | case "(($ac_try" in | ||
2431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2432 | *) ac_try_echo=$ac_try;; | ||
2433 | esac | ||
2434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2435 | (eval "$ac_compile") 2>conftest.er1 | ||
2436 | ac_status=$? | ||
2437 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2438 | rm -f conftest.er1 | ||
2439 | cat conftest.err >&5 | ||
2440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2441 | (exit $ac_status); } && { | ||
2442 | test -z "$ac_c_werror_flag" || | ||
2443 | test ! -s conftest.err | ||
2444 | } && test -s conftest.$ac_objext; then | ||
2445 | ac_compiler_gnu=yes | ||
2446 | else | ||
2447 | echo "$as_me: failed program was:" >&5 | ||
2448 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2449 | |||
2450 | ac_compiler_gnu=no | ||
2451 | fi | ||
2452 | |||
2453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2454 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2455 | |||
2456 | fi | ||
2457 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2458 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
2459 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2460 | ac_test_CFLAGS=${CFLAGS+set} | ||
2461 | ac_save_CFLAGS=$CFLAGS | ||
2462 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2463 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
2464 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2466 | else | ||
2467 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2468 | ac_c_werror_flag=yes | ||
2469 | ac_cv_prog_cc_g=no | ||
2470 | CFLAGS="-g" | ||
2471 | cat >conftest.$ac_ext <<_ACEOF | ||
2472 | /* confdefs.h. */ | ||
2473 | _ACEOF | ||
2474 | cat confdefs.h >>conftest.$ac_ext | ||
2475 | cat >>conftest.$ac_ext <<_ACEOF | ||
2476 | /* end confdefs.h. */ | ||
2477 | |||
2478 | int | ||
2479 | main () | ||
2480 | { | ||
2481 | |||
2482 | ; | ||
2483 | return 0; | ||
2484 | } | ||
2485 | _ACEOF | ||
2486 | rm -f conftest.$ac_objext | ||
2487 | if { (ac_try="$ac_compile" | ||
2488 | case "(($ac_try" in | ||
2489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2490 | *) ac_try_echo=$ac_try;; | ||
2491 | esac | ||
2492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2493 | (eval "$ac_compile") 2>conftest.er1 | ||
2494 | ac_status=$? | ||
2495 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2496 | rm -f conftest.er1 | ||
2497 | cat conftest.err >&5 | ||
2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2499 | (exit $ac_status); } && { | ||
2500 | test -z "$ac_c_werror_flag" || | ||
2501 | test ! -s conftest.err | ||
2502 | } && test -s conftest.$ac_objext; then | ||
2503 | ac_cv_prog_cc_g=yes | ||
2504 | else | ||
2505 | echo "$as_me: failed program was:" >&5 | ||
2506 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2507 | |||
2508 | CFLAGS="" | ||
2509 | cat >conftest.$ac_ext <<_ACEOF | ||
2510 | /* confdefs.h. */ | ||
2511 | _ACEOF | ||
2512 | cat confdefs.h >>conftest.$ac_ext | ||
2513 | cat >>conftest.$ac_ext <<_ACEOF | ||
2514 | /* end confdefs.h. */ | ||
2515 | |||
2516 | int | ||
2517 | main () | ||
2518 | { | ||
2519 | |||
2520 | ; | ||
2521 | return 0; | ||
2522 | } | ||
2523 | _ACEOF | ||
2524 | rm -f conftest.$ac_objext | ||
2525 | if { (ac_try="$ac_compile" | ||
2526 | case "(($ac_try" in | ||
2527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2528 | *) ac_try_echo=$ac_try;; | ||
2529 | esac | ||
2530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2531 | (eval "$ac_compile") 2>conftest.er1 | ||
2532 | ac_status=$? | ||
2533 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2534 | rm -f conftest.er1 | ||
2535 | cat conftest.err >&5 | ||
2536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2537 | (exit $ac_status); } && { | ||
2538 | test -z "$ac_c_werror_flag" || | ||
2539 | test ! -s conftest.err | ||
2540 | } && test -s conftest.$ac_objext; then | ||
2541 | : | ||
2542 | else | ||
2543 | echo "$as_me: failed program was:" >&5 | ||
2544 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2545 | |||
2546 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2547 | CFLAGS="-g" | ||
2548 | cat >conftest.$ac_ext <<_ACEOF | ||
2549 | /* confdefs.h. */ | ||
2550 | _ACEOF | ||
2551 | cat confdefs.h >>conftest.$ac_ext | ||
2552 | cat >>conftest.$ac_ext <<_ACEOF | ||
2553 | /* end confdefs.h. */ | ||
2554 | |||
2555 | int | ||
2556 | main () | ||
2557 | { | ||
2558 | |||
2559 | ; | ||
2560 | return 0; | ||
2561 | } | ||
2562 | _ACEOF | ||
2563 | rm -f conftest.$ac_objext | ||
2564 | if { (ac_try="$ac_compile" | ||
2565 | case "(($ac_try" in | ||
2566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2567 | *) ac_try_echo=$ac_try;; | ||
2568 | esac | ||
2569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2570 | (eval "$ac_compile") 2>conftest.er1 | ||
2571 | ac_status=$? | ||
2572 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2573 | rm -f conftest.er1 | ||
2574 | cat conftest.err >&5 | ||
2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2576 | (exit $ac_status); } && { | ||
2577 | test -z "$ac_c_werror_flag" || | ||
2578 | test ! -s conftest.err | ||
2579 | } && test -s conftest.$ac_objext; then | ||
2580 | ac_cv_prog_cc_g=yes | ||
2581 | else | ||
2582 | echo "$as_me: failed program was:" >&5 | ||
2583 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2584 | |||
2585 | |||
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 | fi | ||
2593 | |||
2594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2595 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2596 | fi | ||
2597 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2598 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
2599 | if test "$ac_test_CFLAGS" = set; then | ||
2600 | CFLAGS=$ac_save_CFLAGS | ||
2601 | elif test $ac_cv_prog_cc_g = yes; then | ||
2602 | if test "$GCC" = yes; then | ||
2603 | CFLAGS="-g -O2" | ||
2604 | else | ||
2605 | CFLAGS="-g" | ||
2606 | fi | ||
2607 | else | ||
2608 | if test "$GCC" = yes; then | ||
2609 | CFLAGS="-O2" | ||
2610 | else | ||
2611 | CFLAGS= | ||
2612 | fi | ||
2613 | fi | ||
2614 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
2615 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
2616 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
2617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2618 | else | ||
2619 | ac_cv_prog_cc_c89=no | ||
2620 | ac_save_CC=$CC | ||
2621 | cat >conftest.$ac_ext <<_ACEOF | ||
2622 | /* confdefs.h. */ | ||
2623 | _ACEOF | ||
2624 | cat confdefs.h >>conftest.$ac_ext | ||
2625 | cat >>conftest.$ac_ext <<_ACEOF | ||
2626 | /* end confdefs.h. */ | ||
2627 | #include <stdarg.h> | ||
2628 | #include <stdio.h> | ||
2629 | #include <sys/types.h> | ||
2630 | #include <sys/stat.h> | ||
2631 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2632 | struct buf { int x; }; | ||
2633 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2634 | static char *e (p, i) | ||
2635 | char **p; | ||
2636 | int i; | ||
2637 | { | ||
2638 | return p[i]; | ||
2639 | } | ||
2640 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2641 | { | ||
2642 | char *s; | ||
2643 | va_list v; | ||
2644 | va_start (v,p); | ||
2645 | s = g (p, va_arg (v,int)); | ||
2646 | va_end (v); | ||
2647 | return s; | ||
2648 | } | ||
2649 | |||
2650 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2651 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2652 | These don't provoke an error unfortunately, instead are silently treated | ||
2653 | as 'x'. The following induces an error, until -std is added to get | ||
2654 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2655 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2656 | that's true only with -std. */ | ||
2657 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2658 | |||
2659 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
2660 | inside strings and character constants. */ | ||
2661 | #define FOO(x) 'x' | ||
2662 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
2663 | |||
2664 | int test (int i, double x); | ||
2665 | struct s1 {int (*f) (int a);}; | ||
2666 | struct s2 {int (*f) (double a);}; | ||
2667 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2668 | int argc; | ||
2669 | char **argv; | ||
2670 | int | ||
2671 | main () | ||
2672 | { | ||
2673 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2674 | ; | ||
2675 | return 0; | ||
2676 | } | ||
2677 | _ACEOF | ||
2678 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2679 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2680 | do | ||
2681 | CC="$ac_save_CC $ac_arg" | ||
2682 | rm -f conftest.$ac_objext | ||
2683 | if { (ac_try="$ac_compile" | ||
2684 | case "(($ac_try" in | ||
2685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2686 | *) ac_try_echo=$ac_try;; | ||
2687 | esac | ||
2688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2689 | (eval "$ac_compile") 2>conftest.er1 | ||
2690 | ac_status=$? | ||
2691 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2692 | rm -f conftest.er1 | ||
2693 | cat conftest.err >&5 | ||
2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2695 | (exit $ac_status); } && { | ||
2696 | test -z "$ac_c_werror_flag" || | ||
2697 | test ! -s conftest.err | ||
2698 | } && test -s conftest.$ac_objext; then | ||
2699 | ac_cv_prog_cc_c89=$ac_arg | ||
2700 | else | ||
2701 | echo "$as_me: failed program was:" >&5 | ||
2702 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2703 | |||
2704 | |||
2705 | fi | ||
2706 | |||
2707 | rm -f core conftest.err conftest.$ac_objext | ||
2708 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
2709 | done | ||
2710 | rm -f conftest.$ac_ext | ||
2711 | CC=$ac_save_CC | ||
2712 | |||
2713 | fi | ||
2714 | # AC_CACHE_VAL | ||
2715 | case "x$ac_cv_prog_cc_c89" in | ||
2716 | x) | ||
2717 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
2718 | echo "${ECHO_T}none needed" >&6; } ;; | ||
2719 | xno) | ||
2720 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
2721 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
2722 | *) | ||
2723 | CC="$CC $ac_cv_prog_cc_c89" | ||
2724 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
2725 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
2726 | esac | ||
2727 | |||
2728 | |||
2729 | ac_ext=c | ||
2730 | ac_cpp='$CPP $CPPFLAGS' | ||
2731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2734 | |||
2735 | ac_aux_dir= | ||
2736 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2737 | if test -f "$ac_dir/install-sh"; then | ||
2738 | ac_aux_dir=$ac_dir | ||
2739 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2740 | break | ||
2741 | elif test -f "$ac_dir/install.sh"; then | ||
2742 | ac_aux_dir=$ac_dir | ||
2743 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2744 | break | ||
2745 | elif test -f "$ac_dir/shtool"; then | ||
2746 | ac_aux_dir=$ac_dir | ||
2747 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2748 | break | ||
2749 | fi | ||
2750 | done | ||
2751 | if test -z "$ac_aux_dir"; then | ||
2752 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
2753 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
2754 | { (exit 1); exit 1; }; } | ||
2755 | fi | ||
2756 | |||
2757 | # These three variables are undocumented and unsupported, | ||
2758 | # and are intended to be withdrawn in a future Autoconf release. | ||
2759 | # They can cause serious problems if a builder's source tree is in a directory | ||
2760 | # whose full name contains unusual characters. | ||
2761 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2762 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2763 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2764 | |||
2765 | |||
2766 | # Make sure we can run config.sub. | ||
2767 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2768 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
2769 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
2770 | { (exit 1); exit 1; }; } | ||
2771 | |||
2772 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
2773 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
2774 | if test "${ac_cv_build+set}" = set; then | ||
2775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2776 | else | ||
2777 | ac_build_alias=$build_alias | ||
2778 | test "x$ac_build_alias" = x && | ||
2779 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2780 | test "x$ac_build_alias" = x && | ||
2781 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2782 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2783 | { (exit 1); exit 1; }; } | ||
2784 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2785 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
2786 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
2787 | { (exit 1); exit 1; }; } | ||
2788 | |||
2789 | fi | ||
2790 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2791 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
2792 | case $ac_cv_build in | ||
2793 | *-*-*) ;; | ||
2794 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
2795 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
2796 | { (exit 1); exit 1; }; };; | ||
2797 | esac | ||
2798 | build=$ac_cv_build | ||
2799 | ac_save_IFS=$IFS; IFS='-' | ||
2800 | set x $ac_cv_build | ||
2801 | shift | ||
2802 | build_cpu=$1 | ||
2803 | build_vendor=$2 | ||
2804 | shift; shift | ||
2805 | # Remember, the first character of IFS is used to create $*, | ||
2806 | # except with old shells: | ||
2807 | build_os=$* | ||
2808 | IFS=$ac_save_IFS | ||
2809 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2810 | |||
2811 | |||
2812 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
2813 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
2814 | if test "${ac_cv_host+set}" = set; then | ||
2815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2816 | else | ||
2817 | if test "x$host_alias" = x; then | ||
2818 | ac_cv_host=$ac_cv_build | ||
2819 | else | ||
2820 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2821 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
2822 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
2823 | { (exit 1); exit 1; }; } | ||
2824 | fi | ||
2825 | |||
2826 | fi | ||
2827 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2828 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
2829 | case $ac_cv_host in | ||
2830 | *-*-*) ;; | ||
2831 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
2832 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
2833 | { (exit 1); exit 1; }; };; | ||
2834 | esac | ||
2835 | host=$ac_cv_host | ||
2836 | ac_save_IFS=$IFS; IFS='-' | ||
2837 | set x $ac_cv_host | ||
2838 | shift | ||
2839 | host_cpu=$1 | ||
2840 | host_vendor=$2 | ||
2841 | shift; shift | ||
2842 | # Remember, the first character of IFS is used to create $*, | ||
2843 | # except with old shells: | ||
2844 | host_os=$* | ||
2845 | IFS=$ac_save_IFS | ||
2846 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2847 | |||
2848 | |||
2849 | |||
2850 | ac_ext=c | ||
2851 | ac_cpp='$CPP $CPPFLAGS' | ||
2852 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2853 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2854 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2855 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2856 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
2857 | # On Suns, sometimes $CPP names a directory. | ||
2858 | if test -n "$CPP" && test -d "$CPP"; then | ||
2859 | CPP= | ||
2860 | fi | ||
2861 | if test -z "$CPP"; then | ||
2862 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2864 | else | ||
2865 | # Double quotes because CPP needs to be expanded | ||
2866 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2867 | do | ||
2868 | ac_preproc_ok=false | ||
2869 | for ac_c_preproc_warn_flag in '' yes | ||
2870 | do | ||
2871 | # Use a header file that comes with gcc, so configuring glibc | ||
2872 | # with a fresh cross-compiler works. | ||
2873 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2874 | # <limits.h> exists even on freestanding compilers. | ||
2875 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2876 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2877 | cat >conftest.$ac_ext <<_ACEOF | ||
2878 | /* confdefs.h. */ | ||
2879 | _ACEOF | ||
2880 | cat confdefs.h >>conftest.$ac_ext | ||
2881 | cat >>conftest.$ac_ext <<_ACEOF | ||
2882 | /* end confdefs.h. */ | ||
2883 | #ifdef __STDC__ | ||
2884 | # include <limits.h> | ||
2885 | #else | ||
2886 | # include <assert.h> | ||
2887 | #endif | ||
2888 | Syntax error | ||
2889 | _ACEOF | ||
2890 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2891 | case "(($ac_try" in | ||
2892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2893 | *) ac_try_echo=$ac_try;; | ||
2894 | esac | ||
2895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2896 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2897 | ac_status=$? | ||
2898 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2899 | rm -f conftest.er1 | ||
2900 | cat conftest.err >&5 | ||
2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2902 | (exit $ac_status); } >/dev/null && { | ||
2903 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2904 | test ! -s conftest.err | ||
2905 | }; then | ||
2906 | : | ||
2907 | else | ||
2908 | echo "$as_me: failed program was:" >&5 | ||
2909 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2910 | |||
2911 | # Broken: fails on valid input. | ||
2912 | continue | ||
2913 | fi | ||
2914 | |||
2915 | rm -f conftest.err conftest.$ac_ext | ||
2916 | |||
2917 | # OK, works on sane cases. Now check whether nonexistent headers | ||
2918 | # can be detected and how. | ||
2919 | cat >conftest.$ac_ext <<_ACEOF | ||
2920 | /* confdefs.h. */ | ||
2921 | _ACEOF | ||
2922 | cat confdefs.h >>conftest.$ac_ext | ||
2923 | cat >>conftest.$ac_ext <<_ACEOF | ||
2924 | /* end confdefs.h. */ | ||
2925 | #include <ac_nonexistent.h> | ||
2926 | _ACEOF | ||
2927 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2928 | case "(($ac_try" in | ||
2929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2930 | *) ac_try_echo=$ac_try;; | ||
2931 | esac | ||
2932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2933 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2934 | ac_status=$? | ||
2935 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2936 | rm -f conftest.er1 | ||
2937 | cat conftest.err >&5 | ||
2938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2939 | (exit $ac_status); } >/dev/null && { | ||
2940 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2941 | test ! -s conftest.err | ||
2942 | }; then | ||
2943 | # Broken: success on invalid input. | ||
2944 | continue | ||
2945 | else | ||
2946 | echo "$as_me: failed program was:" >&5 | ||
2947 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2948 | |||
2949 | # Passes both tests. | ||
2950 | ac_preproc_ok=: | ||
2951 | break | ||
2952 | fi | ||
2953 | |||
2954 | rm -f conftest.err conftest.$ac_ext | ||
2955 | |||
2956 | done | ||
2957 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2958 | rm -f conftest.err conftest.$ac_ext | ||
2959 | if $ac_preproc_ok; then | ||
2960 | break | ||
2961 | fi | ||
2962 | |||
2963 | done | ||
2964 | ac_cv_prog_CPP=$CPP | ||
2965 | |||
2966 | fi | ||
2967 | CPP=$ac_cv_prog_CPP | ||
2968 | else | ||
2969 | ac_cv_prog_CPP=$CPP | ||
2970 | fi | ||
2971 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2972 | echo "${ECHO_T}$CPP" >&6; } | ||
2973 | ac_preproc_ok=false | ||
2974 | for ac_c_preproc_warn_flag in '' yes | ||
2975 | do | ||
2976 | # Use a header file that comes with gcc, so configuring glibc | ||
2977 | # with a fresh cross-compiler works. | ||
2978 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2979 | # <limits.h> exists even on freestanding compilers. | ||
2980 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2981 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2982 | cat >conftest.$ac_ext <<_ACEOF | ||
2983 | /* confdefs.h. */ | ||
2984 | _ACEOF | ||
2985 | cat confdefs.h >>conftest.$ac_ext | ||
2986 | cat >>conftest.$ac_ext <<_ACEOF | ||
2987 | /* end confdefs.h. */ | ||
2988 | #ifdef __STDC__ | ||
2989 | # include <limits.h> | ||
2990 | #else | ||
2991 | # include <assert.h> | ||
2992 | #endif | ||
2993 | Syntax error | ||
2994 | _ACEOF | ||
2995 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2996 | case "(($ac_try" in | ||
2997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2998 | *) ac_try_echo=$ac_try;; | ||
2999 | esac | ||
3000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3001 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3002 | ac_status=$? | ||
3003 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3004 | rm -f conftest.er1 | ||
3005 | cat conftest.err >&5 | ||
3006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3007 | (exit $ac_status); } >/dev/null && { | ||
3008 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3009 | test ! -s conftest.err | ||
3010 | }; then | ||
3011 | : | ||
3012 | else | ||
3013 | echo "$as_me: failed program was:" >&5 | ||
3014 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3015 | |||
3016 | # Broken: fails on valid input. | ||
3017 | continue | ||
3018 | fi | ||
3019 | |||
3020 | rm -f conftest.err conftest.$ac_ext | ||
3021 | |||
3022 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3023 | # can be detected and how. | ||
3024 | cat >conftest.$ac_ext <<_ACEOF | ||
3025 | /* confdefs.h. */ | ||
3026 | _ACEOF | ||
3027 | cat confdefs.h >>conftest.$ac_ext | ||
3028 | cat >>conftest.$ac_ext <<_ACEOF | ||
3029 | /* end confdefs.h. */ | ||
3030 | #include <ac_nonexistent.h> | ||
3031 | _ACEOF | ||
3032 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3033 | case "(($ac_try" in | ||
3034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3035 | *) ac_try_echo=$ac_try;; | ||
3036 | esac | ||
3037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3038 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3039 | ac_status=$? | ||
3040 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3041 | rm -f conftest.er1 | ||
3042 | cat conftest.err >&5 | ||
3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3044 | (exit $ac_status); } >/dev/null && { | ||
3045 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3046 | test ! -s conftest.err | ||
3047 | }; then | ||
3048 | # Broken: success on invalid input. | ||
3049 | continue | ||
3050 | else | ||
3051 | echo "$as_me: failed program was:" >&5 | ||
3052 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3053 | |||
3054 | # Passes both tests. | ||
3055 | ac_preproc_ok=: | ||
3056 | break | ||
3057 | fi | ||
3058 | |||
3059 | rm -f conftest.err conftest.$ac_ext | ||
3060 | |||
3061 | done | ||
3062 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3063 | rm -f conftest.err conftest.$ac_ext | ||
3064 | if $ac_preproc_ok; then | ||
3065 | : | ||
3066 | else | ||
3067 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3068 | See \`config.log' for more details." >&5 | ||
3069 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3070 | See \`config.log' for more details." >&2;} | ||
3071 | { (exit 1); exit 1; }; } | ||
3072 | fi | ||
3073 | |||
3074 | ac_ext=c | ||
3075 | ac_cpp='$CPP $CPPFLAGS' | ||
3076 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3077 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3078 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3079 | |||
3080 | |||
3081 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3082 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3083 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3085 | else | ||
3086 | # Extract the first word of "grep ggrep" to use in msg output | ||
3087 | if test -z "$GREP"; then | ||
3088 | set dummy grep ggrep; ac_prog_name=$2 | ||
3089 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3091 | else | ||
3092 | ac_path_GREP_found=false | ||
3093 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3095 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3096 | do | ||
3097 | IFS=$as_save_IFS | ||
3098 | test -z "$as_dir" && as_dir=. | ||
3099 | for ac_prog in grep ggrep; do | ||
3100 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3101 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3102 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3103 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3104 | # Check for GNU $ac_path_GREP | ||
3105 | case `"$ac_path_GREP" --version 2>&1` in | ||
3106 | *GNU*) | ||
3107 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3108 | *) | ||
3109 | ac_count=0 | ||
3110 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3111 | while : | ||
3112 | do | ||
3113 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3114 | mv "conftest.tmp" "conftest.in" | ||
3115 | cp "conftest.in" "conftest.nl" | ||
3116 | echo 'GREP' >> "conftest.nl" | ||
3117 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3118 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3119 | ac_count=`expr $ac_count + 1` | ||
3120 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3121 | # Best one so far, save it but keep looking for a better one | ||
3122 | ac_cv_path_GREP="$ac_path_GREP" | ||
3123 | ac_path_GREP_max=$ac_count | ||
3124 | fi | ||
3125 | # 10*(2^10) chars as input seems more than enough | ||
3126 | test $ac_count -gt 10 && break | ||
3127 | done | ||
3128 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3129 | esac | ||
3130 | |||
3131 | |||
3132 | $ac_path_GREP_found && break 3 | ||
3133 | done | ||
3134 | done | ||
3135 | |||
3136 | done | ||
3137 | IFS=$as_save_IFS | ||
3138 | |||
3139 | |||
3140 | fi | ||
3141 | |||
3142 | GREP="$ac_cv_path_GREP" | ||
3143 | if test -z "$GREP"; then | ||
3144 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3145 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3146 | { (exit 1); exit 1; }; } | ||
3147 | fi | ||
3148 | |||
3149 | else | ||
3150 | ac_cv_path_GREP=$GREP | ||
3151 | fi | ||
3152 | |||
3153 | |||
3154 | fi | ||
3155 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3156 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3157 | GREP="$ac_cv_path_GREP" | ||
3158 | |||
3159 | |||
3160 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3161 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3162 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3164 | else | ||
3165 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3166 | then ac_cv_path_EGREP="$GREP -E" | ||
3167 | else | ||
3168 | # Extract the first word of "egrep" to use in msg output | ||
3169 | if test -z "$EGREP"; then | ||
3170 | set dummy egrep; ac_prog_name=$2 | ||
3171 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3173 | else | ||
3174 | ac_path_EGREP_found=false | ||
3175 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3177 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3178 | do | ||
3179 | IFS=$as_save_IFS | ||
3180 | test -z "$as_dir" && as_dir=. | ||
3181 | for ac_prog in egrep; do | ||
3182 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3183 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3184 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3185 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3186 | # Check for GNU $ac_path_EGREP | ||
3187 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3188 | *GNU*) | ||
3189 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3190 | *) | ||
3191 | ac_count=0 | ||
3192 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3193 | while : | ||
3194 | do | ||
3195 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3196 | mv "conftest.tmp" "conftest.in" | ||
3197 | cp "conftest.in" "conftest.nl" | ||
3198 | echo 'EGREP' >> "conftest.nl" | ||
3199 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3200 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3201 | ac_count=`expr $ac_count + 1` | ||
3202 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3203 | # Best one so far, save it but keep looking for a better one | ||
3204 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3205 | ac_path_EGREP_max=$ac_count | ||
3206 | fi | ||
3207 | # 10*(2^10) chars as input seems more than enough | ||
3208 | test $ac_count -gt 10 && break | ||
3209 | done | ||
3210 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3211 | esac | ||
3212 | |||
3213 | |||
3214 | $ac_path_EGREP_found && break 3 | ||
3215 | done | ||
3216 | done | ||
3217 | |||
3218 | done | ||
3219 | IFS=$as_save_IFS | ||
3220 | |||
3221 | |||
3222 | fi | ||
3223 | |||
3224 | EGREP="$ac_cv_path_EGREP" | ||
3225 | if test -z "$EGREP"; then | ||
3226 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3227 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3228 | { (exit 1); exit 1; }; } | ||
3229 | fi | ||
3230 | |||
3231 | else | ||
3232 | ac_cv_path_EGREP=$EGREP | ||
3233 | fi | ||
3234 | |||
3235 | |||
3236 | fi | ||
3237 | fi | ||
3238 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3239 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3240 | EGREP="$ac_cv_path_EGREP" | ||
3241 | |||
3242 | |||
3243 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3244 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3245 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3247 | else | ||
3248 | cat >conftest.$ac_ext <<_ACEOF | ||
3249 | /* confdefs.h. */ | ||
3250 | _ACEOF | ||
3251 | cat confdefs.h >>conftest.$ac_ext | ||
3252 | cat >>conftest.$ac_ext <<_ACEOF | ||
3253 | /* end confdefs.h. */ | ||
3254 | #include <stdlib.h> | ||
3255 | #include <stdarg.h> | ||
3256 | #include <string.h> | ||
3257 | #include <float.h> | ||
3258 | |||
3259 | int | ||
3260 | main () | ||
3261 | { | ||
3262 | |||
3263 | ; | ||
3264 | return 0; | ||
3265 | } | ||
3266 | _ACEOF | ||
3267 | rm -f conftest.$ac_objext | ||
3268 | if { (ac_try="$ac_compile" | ||
3269 | case "(($ac_try" in | ||
3270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3271 | *) ac_try_echo=$ac_try;; | ||
3272 | esac | ||
3273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3274 | (eval "$ac_compile") 2>conftest.er1 | ||
3275 | ac_status=$? | ||
3276 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3277 | rm -f conftest.er1 | ||
3278 | cat conftest.err >&5 | ||
3279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3280 | (exit $ac_status); } && { | ||
3281 | test -z "$ac_c_werror_flag" || | ||
3282 | test ! -s conftest.err | ||
3283 | } && test -s conftest.$ac_objext; then | ||
3284 | ac_cv_header_stdc=yes | ||
3285 | else | ||
3286 | echo "$as_me: failed program was:" >&5 | ||
3287 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3288 | |||
3289 | ac_cv_header_stdc=no | ||
3290 | fi | ||
3291 | |||
3292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3293 | |||
3294 | if test $ac_cv_header_stdc = yes; then | ||
3295 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3296 | cat >conftest.$ac_ext <<_ACEOF | ||
3297 | /* confdefs.h. */ | ||
3298 | _ACEOF | ||
3299 | cat confdefs.h >>conftest.$ac_ext | ||
3300 | cat >>conftest.$ac_ext <<_ACEOF | ||
3301 | /* end confdefs.h. */ | ||
3302 | #include <string.h> | ||
3303 | |||
3304 | _ACEOF | ||
3305 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3306 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3307 | : | ||
3308 | else | ||
3309 | ac_cv_header_stdc=no | ||
3310 | fi | ||
3311 | rm -f conftest* | ||
3312 | |||
3313 | fi | ||
3314 | |||
3315 | if test $ac_cv_header_stdc = yes; then | ||
3316 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3317 | cat >conftest.$ac_ext <<_ACEOF | ||
3318 | /* confdefs.h. */ | ||
3319 | _ACEOF | ||
3320 | cat confdefs.h >>conftest.$ac_ext | ||
3321 | cat >>conftest.$ac_ext <<_ACEOF | ||
3322 | /* end confdefs.h. */ | ||
3323 | #include <stdlib.h> | ||
3324 | |||
3325 | _ACEOF | ||
3326 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3327 | $EGREP "free" >/dev/null 2>&1; then | ||
3328 | : | ||
3329 | else | ||
3330 | ac_cv_header_stdc=no | ||
3331 | fi | ||
3332 | rm -f conftest* | ||
3333 | |||
3334 | fi | ||
3335 | |||
3336 | if test $ac_cv_header_stdc = yes; then | ||
3337 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3338 | if test "$cross_compiling" = yes; then | ||
3339 | : | ||
3340 | else | ||
3341 | cat >conftest.$ac_ext <<_ACEOF | ||
3342 | /* confdefs.h. */ | ||
3343 | _ACEOF | ||
3344 | cat confdefs.h >>conftest.$ac_ext | ||
3345 | cat >>conftest.$ac_ext <<_ACEOF | ||
3346 | /* end confdefs.h. */ | ||
3347 | #include <ctype.h> | ||
3348 | #include <stdlib.h> | ||
3349 | #if ((' ' & 0x0FF) == 0x020) | ||
3350 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3351 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3352 | #else | ||
3353 | # define ISLOWER(c) \ | ||
3354 | (('a' <= (c) && (c) <= 'i') \ | ||
3355 | || ('j' <= (c) && (c) <= 'r') \ | ||
3356 | || ('s' <= (c) && (c) <= 'z')) | ||
3357 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3358 | #endif | ||
3359 | |||
3360 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3361 | int | ||
3362 | main () | ||
3363 | { | ||
3364 | int i; | ||
3365 | for (i = 0; i < 256; i++) | ||
3366 | if (XOR (islower (i), ISLOWER (i)) | ||
3367 | || toupper (i) != TOUPPER (i)) | ||
3368 | return 2; | ||
3369 | return 0; | ||
3370 | } | ||
3371 | _ACEOF | ||
3372 | rm -f conftest$ac_exeext | ||
3373 | if { (ac_try="$ac_link" | ||
3374 | case "(($ac_try" in | ||
3375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3376 | *) ac_try_echo=$ac_try;; | ||
3377 | esac | ||
3378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3379 | (eval "$ac_link") 2>&5 | ||
3380 | ac_status=$? | ||
3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3382 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3383 | { (case "(($ac_try" in | ||
3384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3385 | *) ac_try_echo=$ac_try;; | ||
3386 | esac | ||
3387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3388 | (eval "$ac_try") 2>&5 | ||
3389 | ac_status=$? | ||
3390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3391 | (exit $ac_status); }; }; then | ||
3392 | : | ||
3393 | else | ||
3394 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3395 | echo "$as_me: failed program was:" >&5 | ||
3396 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3397 | |||
3398 | ( exit $ac_status ) | ||
3399 | ac_cv_header_stdc=no | ||
3400 | fi | ||
3401 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3402 | fi | ||
3403 | |||
3404 | |||
3405 | fi | ||
3406 | fi | ||
3407 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3408 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
3409 | if test $ac_cv_header_stdc = yes; then | ||
3410 | |||
3411 | cat >>confdefs.h <<\_ACEOF | ||
3412 | #define STDC_HEADERS 1 | ||
3413 | _ACEOF | ||
3414 | |||
3415 | fi | ||
3416 | |||
3417 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3418 | |||
3419 | |||
3420 | |||
3421 | |||
3422 | |||
3423 | |||
3424 | |||
3425 | |||
3426 | |||
3427 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3428 | inttypes.h stdint.h unistd.h | ||
3429 | do | ||
3430 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3431 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3432 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
3433 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3435 | else | ||
3436 | cat >conftest.$ac_ext <<_ACEOF | ||
3437 | /* confdefs.h. */ | ||
3438 | _ACEOF | ||
3439 | cat confdefs.h >>conftest.$ac_ext | ||
3440 | cat >>conftest.$ac_ext <<_ACEOF | ||
3441 | /* end confdefs.h. */ | ||
3442 | $ac_includes_default | ||
3443 | |||
3444 | #include <$ac_header> | ||
3445 | _ACEOF | ||
3446 | rm -f conftest.$ac_objext | ||
3447 | if { (ac_try="$ac_compile" | ||
3448 | case "(($ac_try" in | ||
3449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3450 | *) ac_try_echo=$ac_try;; | ||
3451 | esac | ||
3452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3453 | (eval "$ac_compile") 2>conftest.er1 | ||
3454 | ac_status=$? | ||
3455 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3456 | rm -f conftest.er1 | ||
3457 | cat conftest.err >&5 | ||
3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3459 | (exit $ac_status); } && { | ||
3460 | test -z "$ac_c_werror_flag" || | ||
3461 | test ! -s conftest.err | ||
3462 | } && test -s conftest.$ac_objext; then | ||
3463 | eval "$as_ac_Header=yes" | ||
3464 | else | ||
3465 | echo "$as_me: failed program was:" >&5 | ||
3466 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3467 | |||
3468 | eval "$as_ac_Header=no" | ||
3469 | fi | ||
3470 | |||
3471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3472 | fi | ||
3473 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
3474 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
3475 | echo "${ECHO_T}$ac_res" >&6; } | ||
3476 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
3477 | cat >>confdefs.h <<_ACEOF | ||
3478 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3479 | _ACEOF | ||
3480 | |||
3481 | fi | ||
3482 | |||
3483 | done | ||
3484 | |||
3485 | |||
3486 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
3487 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | ||
3488 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
3489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3490 | else | ||
3491 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3492 | cat >conftest.$ac_ext <<_ACEOF | ||
3493 | /* confdefs.h. */ | ||
3494 | _ACEOF | ||
3495 | cat confdefs.h >>conftest.$ac_ext | ||
3496 | cat >>conftest.$ac_ext <<_ACEOF | ||
3497 | /* end confdefs.h. */ | ||
3498 | #include <sys/types.h> | ||
3499 | #include <sys/param.h> | ||
3500 | |||
3501 | int | ||
3502 | main () | ||
3503 | { | ||
3504 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | ||
3505 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | ||
3506 | bogus endian macros | ||
3507 | #endif | ||
3508 | |||
3509 | ; | ||
3510 | return 0; | ||
3511 | } | ||
3512 | _ACEOF | ||
3513 | rm -f conftest.$ac_objext | ||
3514 | if { (ac_try="$ac_compile" | ||
3515 | case "(($ac_try" in | ||
3516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3517 | *) ac_try_echo=$ac_try;; | ||
3518 | esac | ||
3519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3520 | (eval "$ac_compile") 2>conftest.er1 | ||
3521 | ac_status=$? | ||
3522 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3523 | rm -f conftest.er1 | ||
3524 | cat conftest.err >&5 | ||
3525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3526 | (exit $ac_status); } && { | ||
3527 | test -z "$ac_c_werror_flag" || | ||
3528 | test ! -s conftest.err | ||
3529 | } && test -s conftest.$ac_objext; then | ||
3530 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3531 | cat >conftest.$ac_ext <<_ACEOF | ||
3532 | /* confdefs.h. */ | ||
3533 | _ACEOF | ||
3534 | cat confdefs.h >>conftest.$ac_ext | ||
3535 | cat >>conftest.$ac_ext <<_ACEOF | ||
3536 | /* end confdefs.h. */ | ||
3537 | #include <sys/types.h> | ||
3538 | #include <sys/param.h> | ||
3539 | |||
3540 | int | ||
3541 | main () | ||
3542 | { | ||
3543 | #if BYTE_ORDER != BIG_ENDIAN | ||
3544 | not big endian | ||
3545 | #endif | ||
3546 | |||
3547 | ; | ||
3548 | return 0; | ||
3549 | } | ||
3550 | _ACEOF | ||
3551 | rm -f conftest.$ac_objext | ||
3552 | if { (ac_try="$ac_compile" | ||
3553 | case "(($ac_try" in | ||
3554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3555 | *) ac_try_echo=$ac_try;; | ||
3556 | esac | ||
3557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3558 | (eval "$ac_compile") 2>conftest.er1 | ||
3559 | ac_status=$? | ||
3560 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3561 | rm -f conftest.er1 | ||
3562 | cat conftest.err >&5 | ||
3563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3564 | (exit $ac_status); } && { | ||
3565 | test -z "$ac_c_werror_flag" || | ||
3566 | test ! -s conftest.err | ||
3567 | } && test -s conftest.$ac_objext; then | ||
3568 | ac_cv_c_bigendian=yes | ||
3569 | else | ||
3570 | echo "$as_me: failed program was:" >&5 | ||
3571 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3572 | |||
3573 | ac_cv_c_bigendian=no | ||
3574 | fi | ||
3575 | |||
3576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3577 | else | ||
3578 | echo "$as_me: failed program was:" >&5 | ||
3579 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3580 | |||
3581 | # It does not; compile a test program. | ||
3582 | if test "$cross_compiling" = yes; then | ||
3583 | # try to guess the endianness by grepping values into an object file | ||
3584 | ac_cv_c_bigendian=unknown | ||
3585 | cat >conftest.$ac_ext <<_ACEOF | ||
3586 | /* confdefs.h. */ | ||
3587 | _ACEOF | ||
3588 | cat confdefs.h >>conftest.$ac_ext | ||
3589 | cat >>conftest.$ac_ext <<_ACEOF | ||
3590 | /* end confdefs.h. */ | ||
3591 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
3592 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
3593 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
3594 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
3595 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
3596 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
3597 | int | ||
3598 | main () | ||
3599 | { | ||
3600 | _ascii (); _ebcdic (); | ||
3601 | ; | ||
3602 | return 0; | ||
3603 | } | ||
3604 | _ACEOF | ||
3605 | rm -f conftest.$ac_objext | ||
3606 | if { (ac_try="$ac_compile" | ||
3607 | case "(($ac_try" in | ||
3608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3609 | *) ac_try_echo=$ac_try;; | ||
3610 | esac | ||
3611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3612 | (eval "$ac_compile") 2>conftest.er1 | ||
3613 | ac_status=$? | ||
3614 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3615 | rm -f conftest.er1 | ||
3616 | cat conftest.err >&5 | ||
3617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3618 | (exit $ac_status); } && { | ||
3619 | test -z "$ac_c_werror_flag" || | ||
3620 | test ! -s conftest.err | ||
3621 | } && test -s conftest.$ac_objext; then | ||
3622 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
3623 | ac_cv_c_bigendian=yes | ||
3624 | fi | ||
3625 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
3626 | if test "$ac_cv_c_bigendian" = unknown; then | ||
3627 | ac_cv_c_bigendian=no | ||
3628 | else | ||
3629 | # finding both strings is unlikely to happen, but who knows? | ||
3630 | ac_cv_c_bigendian=unknown | ||
3631 | fi | ||
3632 | fi | ||
3633 | else | ||
3634 | echo "$as_me: failed program was:" >&5 | ||
3635 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3636 | |||
3637 | |||
3638 | fi | ||
3639 | |||
3640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3641 | else | ||
3642 | cat >conftest.$ac_ext <<_ACEOF | ||
3643 | /* confdefs.h. */ | ||
3644 | _ACEOF | ||
3645 | cat confdefs.h >>conftest.$ac_ext | ||
3646 | cat >>conftest.$ac_ext <<_ACEOF | ||
3647 | /* end confdefs.h. */ | ||
3648 | $ac_includes_default | ||
3649 | int | ||
3650 | main () | ||
3651 | { | ||
3652 | |||
3653 | /* Are we little or big endian? From Harbison&Steele. */ | ||
3654 | union | ||
3655 | { | ||
3656 | long int l; | ||
3657 | char c[sizeof (long int)]; | ||
3658 | } u; | ||
3659 | u.l = 1; | ||
3660 | return u.c[sizeof (long int) - 1] == 1; | ||
3661 | |||
3662 | ; | ||
3663 | return 0; | ||
3664 | } | ||
3665 | _ACEOF | ||
3666 | rm -f conftest$ac_exeext | ||
3667 | if { (ac_try="$ac_link" | ||
3668 | case "(($ac_try" in | ||
3669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3670 | *) ac_try_echo=$ac_try;; | ||
3671 | esac | ||
3672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3673 | (eval "$ac_link") 2>&5 | ||
3674 | ac_status=$? | ||
3675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3676 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3677 | { (case "(($ac_try" in | ||
3678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3679 | *) ac_try_echo=$ac_try;; | ||
3680 | esac | ||
3681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3682 | (eval "$ac_try") 2>&5 | ||
3683 | ac_status=$? | ||
3684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3685 | (exit $ac_status); }; }; then | ||
3686 | ac_cv_c_bigendian=no | ||
3687 | else | ||
3688 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3689 | echo "$as_me: failed program was:" >&5 | ||
3690 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3691 | |||
3692 | ( exit $ac_status ) | ||
3693 | ac_cv_c_bigendian=yes | ||
3694 | fi | ||
3695 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3696 | fi | ||
3697 | |||
3698 | |||
3699 | fi | ||
3700 | |||
3701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3702 | fi | ||
3703 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
3704 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | ||
3705 | case $ac_cv_c_bigendian in | ||
3706 | yes) | ||
3707 | |||
3708 | cat >>confdefs.h <<\_ACEOF | ||
3709 | #define WORDS_BIGENDIAN 1 | ||
3710 | _ACEOF | ||
3711 | ;; | ||
3712 | no) | ||
3713 | ;; | ||
3714 | *) | ||
3715 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
3716 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
3717 | echo "$as_me: error: unknown endianness | ||
3718 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
3719 | { (exit 1); exit 1; }; } ;; | ||
3720 | esac | ||
3721 | |||
3722 | |||
3723 | # Checks for programs. | ||
3724 | for ac_prog in gawk mawk nawk awk | ||
3725 | do | ||
3726 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3727 | set dummy $ac_prog; ac_word=$2 | ||
3728 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3730 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
3731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3732 | else | ||
3733 | if test -n "$AWK"; then | ||
3734 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3735 | else | ||
3736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3737 | for as_dir in $PATH | ||
3738 | do | ||
3739 | IFS=$as_save_IFS | ||
3740 | test -z "$as_dir" && as_dir=. | ||
3741 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3743 | ac_cv_prog_AWK="$ac_prog" | ||
3744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3745 | break 2 | ||
3746 | fi | ||
3747 | done | ||
3748 | done | ||
3749 | IFS=$as_save_IFS | ||
3750 | |||
3751 | fi | ||
3752 | fi | ||
3753 | AWK=$ac_cv_prog_AWK | ||
3754 | if test -n "$AWK"; then | ||
3755 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
3756 | echo "${ECHO_T}$AWK" >&6; } | ||
3757 | else | ||
3758 | { echo "$as_me:$LINENO: result: no" >&5 | ||
3759 | echo "${ECHO_T}no" >&6; } | ||
3760 | fi | ||
3761 | |||
3762 | |||
3763 | test -n "$AWK" && break | ||
3764 | done | ||
3765 | |||
3766 | ac_ext=c | ||
3767 | ac_cpp='$CPP $CPPFLAGS' | ||
3768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3771 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3772 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3773 | # On Suns, sometimes $CPP names a directory. | ||
3774 | if test -n "$CPP" && test -d "$CPP"; then | ||
3775 | CPP= | ||
3776 | fi | ||
3777 | if test -z "$CPP"; then | ||
3778 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3780 | else | ||
3781 | # Double quotes because CPP needs to be expanded | ||
3782 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3783 | do | ||
3784 | ac_preproc_ok=false | ||
3785 | for ac_c_preproc_warn_flag in '' yes | ||
3786 | do | ||
3787 | # Use a header file that comes with gcc, so configuring glibc | ||
3788 | # with a fresh cross-compiler works. | ||
3789 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3790 | # <limits.h> exists even on freestanding compilers. | ||
3791 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3792 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3793 | cat >conftest.$ac_ext <<_ACEOF | ||
3794 | /* confdefs.h. */ | ||
3795 | _ACEOF | ||
3796 | cat confdefs.h >>conftest.$ac_ext | ||
3797 | cat >>conftest.$ac_ext <<_ACEOF | ||
3798 | /* end confdefs.h. */ | ||
3799 | #ifdef __STDC__ | ||
3800 | # include <limits.h> | ||
3801 | #else | ||
3802 | # include <assert.h> | ||
3803 | #endif | ||
3804 | Syntax error | ||
3805 | _ACEOF | ||
3806 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3807 | case "(($ac_try" in | ||
3808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3809 | *) ac_try_echo=$ac_try;; | ||
3810 | esac | ||
3811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3812 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3813 | ac_status=$? | ||
3814 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3815 | rm -f conftest.er1 | ||
3816 | cat conftest.err >&5 | ||
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3818 | (exit $ac_status); } >/dev/null && { | ||
3819 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3820 | test ! -s conftest.err | ||
3821 | }; then | ||
3822 | : | ||
3823 | else | ||
3824 | echo "$as_me: failed program was:" >&5 | ||
3825 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3826 | |||
3827 | # Broken: fails on valid input. | ||
3828 | continue | ||
3829 | fi | ||
3830 | |||
3831 | rm -f conftest.err conftest.$ac_ext | ||
3832 | |||
3833 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3834 | # can be detected and how. | ||
3835 | cat >conftest.$ac_ext <<_ACEOF | ||
3836 | /* confdefs.h. */ | ||
3837 | _ACEOF | ||
3838 | cat confdefs.h >>conftest.$ac_ext | ||
3839 | cat >>conftest.$ac_ext <<_ACEOF | ||
3840 | /* end confdefs.h. */ | ||
3841 | #include <ac_nonexistent.h> | ||
3842 | _ACEOF | ||
3843 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3844 | case "(($ac_try" in | ||
3845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3846 | *) ac_try_echo=$ac_try;; | ||
3847 | esac | ||
3848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3849 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3850 | ac_status=$? | ||
3851 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3852 | rm -f conftest.er1 | ||
3853 | cat conftest.err >&5 | ||
3854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3855 | (exit $ac_status); } >/dev/null && { | ||
3856 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3857 | test ! -s conftest.err | ||
3858 | }; then | ||
3859 | # Broken: success on invalid input. | ||
3860 | continue | ||
3861 | else | ||
3862 | echo "$as_me: failed program was:" >&5 | ||
3863 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3864 | |||
3865 | # Passes both tests. | ||
3866 | ac_preproc_ok=: | ||
3867 | break | ||
3868 | fi | ||
3869 | |||
3870 | rm -f conftest.err conftest.$ac_ext | ||
3871 | |||
3872 | done | ||
3873 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3874 | rm -f conftest.err conftest.$ac_ext | ||
3875 | if $ac_preproc_ok; then | ||
3876 | break | ||
3877 | fi | ||
3878 | |||
3879 | done | ||
3880 | ac_cv_prog_CPP=$CPP | ||
3881 | |||
3882 | fi | ||
3883 | CPP=$ac_cv_prog_CPP | ||
3884 | else | ||
3885 | ac_cv_prog_CPP=$CPP | ||
3886 | fi | ||
3887 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3888 | echo "${ECHO_T}$CPP" >&6; } | ||
3889 | ac_preproc_ok=false | ||
3890 | for ac_c_preproc_warn_flag in '' yes | ||
3891 | do | ||
3892 | # Use a header file that comes with gcc, so configuring glibc | ||
3893 | # with a fresh cross-compiler works. | ||
3894 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3895 | # <limits.h> exists even on freestanding compilers. | ||
3896 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3897 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3898 | cat >conftest.$ac_ext <<_ACEOF | ||
3899 | /* confdefs.h. */ | ||
3900 | _ACEOF | ||
3901 | cat confdefs.h >>conftest.$ac_ext | ||
3902 | cat >>conftest.$ac_ext <<_ACEOF | ||
3903 | /* end confdefs.h. */ | ||
3904 | #ifdef __STDC__ | ||
3905 | # include <limits.h> | ||
3906 | #else | ||
3907 | # include <assert.h> | ||
3908 | #endif | ||
3909 | Syntax error | ||
3910 | _ACEOF | ||
3911 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3912 | case "(($ac_try" in | ||
3913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3914 | *) ac_try_echo=$ac_try;; | ||
3915 | esac | ||
3916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3917 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3918 | ac_status=$? | ||
3919 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3920 | rm -f conftest.er1 | ||
3921 | cat conftest.err >&5 | ||
3922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3923 | (exit $ac_status); } >/dev/null && { | ||
3924 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3925 | test ! -s conftest.err | ||
3926 | }; then | ||
3927 | : | ||
3928 | else | ||
3929 | echo "$as_me: failed program was:" >&5 | ||
3930 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3931 | |||
3932 | # Broken: fails on valid input. | ||
3933 | continue | ||
3934 | fi | ||
3935 | |||
3936 | rm -f conftest.err conftest.$ac_ext | ||
3937 | |||
3938 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3939 | # can be detected and how. | ||
3940 | cat >conftest.$ac_ext <<_ACEOF | ||
3941 | /* confdefs.h. */ | ||
3942 | _ACEOF | ||
3943 | cat confdefs.h >>conftest.$ac_ext | ||
3944 | cat >>conftest.$ac_ext <<_ACEOF | ||
3945 | /* end confdefs.h. */ | ||
3946 | #include <ac_nonexistent.h> | ||
3947 | _ACEOF | ||
3948 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3949 | case "(($ac_try" in | ||
3950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3951 | *) ac_try_echo=$ac_try;; | ||
3952 | esac | ||
3953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3954 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3955 | ac_status=$? | ||
3956 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3957 | rm -f conftest.er1 | ||
3958 | cat conftest.err >&5 | ||
3959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3960 | (exit $ac_status); } >/dev/null && { | ||
3961 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3962 | test ! -s conftest.err | ||
3963 | }; then | ||
3964 | # Broken: success on invalid input. | ||
3965 | continue | ||
3966 | else | ||
3967 | echo "$as_me: failed program was:" >&5 | ||
3968 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3969 | |||
3970 | # Passes both tests. | ||
3971 | ac_preproc_ok=: | ||
3972 | break | ||
3973 | fi | ||
3974 | |||
3975 | rm -f conftest.err conftest.$ac_ext | ||
3976 | |||
3977 | done | ||
3978 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3979 | rm -f conftest.err conftest.$ac_ext | ||
3980 | if $ac_preproc_ok; then | ||
3981 | : | ||
3982 | else | ||
3983 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3984 | See \`config.log' for more details." >&5 | ||
3985 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3986 | See \`config.log' for more details." >&2;} | ||
3987 | { (exit 1); exit 1; }; } | ||
3988 | fi | ||
3989 | |||
3990 | ac_ext=c | ||
3991 | ac_cpp='$CPP $CPPFLAGS' | ||
3992 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3993 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3994 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3995 | |||
3996 | if test -n "$ac_tool_prefix"; then | ||
3997 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
3998 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
3999 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4001 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
4002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4003 | else | ||
4004 | if test -n "$RANLIB"; then | ||
4005 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4006 | else | ||
4007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4008 | for as_dir in $PATH | ||
4009 | do | ||
4010 | IFS=$as_save_IFS | ||
4011 | test -z "$as_dir" && as_dir=. | ||
4012 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4014 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4016 | break 2 | ||
4017 | fi | ||
4018 | done | ||
4019 | done | ||
4020 | IFS=$as_save_IFS | ||
4021 | |||
4022 | fi | ||
4023 | fi | ||
4024 | RANLIB=$ac_cv_prog_RANLIB | ||
4025 | if test -n "$RANLIB"; then | ||
4026 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
4027 | echo "${ECHO_T}$RANLIB" >&6; } | ||
4028 | else | ||
4029 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4030 | echo "${ECHO_T}no" >&6; } | ||
4031 | fi | ||
4032 | |||
4033 | |||
4034 | fi | ||
4035 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4036 | ac_ct_RANLIB=$RANLIB | ||
4037 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4038 | set dummy ranlib; ac_word=$2 | ||
4039 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4041 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
4042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4043 | else | ||
4044 | if test -n "$ac_ct_RANLIB"; then | ||
4045 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4046 | else | ||
4047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4048 | for as_dir in $PATH | ||
4049 | do | ||
4050 | IFS=$as_save_IFS | ||
4051 | test -z "$as_dir" && as_dir=. | ||
4052 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4053 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4054 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4056 | break 2 | ||
4057 | fi | ||
4058 | done | ||
4059 | done | ||
4060 | IFS=$as_save_IFS | ||
4061 | |||
4062 | fi | ||
4063 | fi | ||
4064 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4065 | if test -n "$ac_ct_RANLIB"; then | ||
4066 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
4067 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
4068 | else | ||
4069 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4070 | echo "${ECHO_T}no" >&6; } | ||
4071 | fi | ||
4072 | |||
4073 | if test "x$ac_ct_RANLIB" = x; then | ||
4074 | RANLIB=":" | ||
4075 | else | ||
4076 | case $cross_compiling:$ac_tool_warned in | ||
4077 | yes:) | ||
4078 | { echo "$as_me:$LINENO: 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." >&5 | ||
4081 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4082 | whose name does not start with the host triplet. If you think this | ||
4083 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4084 | ac_tool_warned=yes ;; | ||
4085 | esac | ||
4086 | RANLIB=$ac_ct_RANLIB | ||
4087 | fi | ||
4088 | else | ||
4089 | RANLIB="$ac_cv_prog_RANLIB" | ||
4090 | fi | ||
4091 | |||
4092 | # Find a good install program. We prefer a C program (faster), | ||
4093 | # so one script is as good as another. But avoid the broken or | ||
4094 | # incompatible versions: | ||
4095 | # SysV /etc/install, /usr/sbin/install | ||
4096 | # SunOS /usr/etc/install | ||
4097 | # IRIX /sbin/install | ||
4098 | # AIX /bin/install | ||
4099 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4100 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4101 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4102 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4103 | # OS/2's system install, which has a completely different semantic | ||
4104 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4105 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
4106 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
4107 | if test -z "$INSTALL"; then | ||
4108 | if test "${ac_cv_path_install+set}" = set; then | ||
4109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4110 | else | ||
4111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4112 | for as_dir in $PATH | ||
4113 | do | ||
4114 | IFS=$as_save_IFS | ||
4115 | test -z "$as_dir" && as_dir=. | ||
4116 | # Account for people who put trailing slashes in PATH elements. | ||
4117 | case $as_dir/ in | ||
4118 | ./ | .// | /cC/* | \ | ||
4119 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4120 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
4121 | /usr/ucb/* ) ;; | ||
4122 | *) | ||
4123 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4124 | # Don't use installbsd from OSF since it installs stuff as root | ||
4125 | # by default. | ||
4126 | for ac_prog in ginstall scoinst install; do | ||
4127 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4128 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4129 | if test $ac_prog = install && | ||
4130 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4131 | # AIX install. It has an incompatible calling convention. | ||
4132 | : | ||
4133 | elif test $ac_prog = install && | ||
4134 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4135 | # program-specific install script used by HP pwplus--don't use. | ||
4136 | : | ||
4137 | else | ||
4138 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4139 | break 3 | ||
4140 | fi | ||
4141 | fi | ||
4142 | done | ||
4143 | done | ||
4144 | ;; | ||
4145 | esac | ||
4146 | done | ||
4147 | IFS=$as_save_IFS | ||
4148 | |||
4149 | |||
4150 | fi | ||
4151 | if test "${ac_cv_path_install+set}" = set; then | ||
4152 | INSTALL=$ac_cv_path_install | ||
4153 | else | ||
4154 | # As a last resort, use the slow shell script. Don't cache a | ||
4155 | # value for INSTALL within a source directory, because that will | ||
4156 | # break other packages using the cache if that directory is | ||
4157 | # removed, or if the value is a relative name. | ||
4158 | INSTALL=$ac_install_sh | ||
4159 | fi | ||
4160 | fi | ||
4161 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
4162 | echo "${ECHO_T}$INSTALL" >&6; } | ||
4163 | |||
4164 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4165 | # It thinks the first close brace ends the variable substitution. | ||
4166 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4167 | |||
4168 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4169 | |||
4170 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4171 | |||
4172 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4173 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4174 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4176 | else | ||
4177 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4178 | then ac_cv_path_EGREP="$GREP -E" | ||
4179 | else | ||
4180 | # Extract the first word of "egrep" to use in msg output | ||
4181 | if test -z "$EGREP"; then | ||
4182 | set dummy egrep; ac_prog_name=$2 | ||
4183 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4185 | else | ||
4186 | ac_path_EGREP_found=false | ||
4187 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4189 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4190 | do | ||
4191 | IFS=$as_save_IFS | ||
4192 | test -z "$as_dir" && as_dir=. | ||
4193 | for ac_prog in egrep; do | ||
4194 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4195 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4196 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4197 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4198 | # Check for GNU $ac_path_EGREP | ||
4199 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4200 | *GNU*) | ||
4201 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4202 | *) | ||
4203 | ac_count=0 | ||
4204 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4205 | while : | ||
4206 | do | ||
4207 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4208 | mv "conftest.tmp" "conftest.in" | ||
4209 | cp "conftest.in" "conftest.nl" | ||
4210 | echo 'EGREP' >> "conftest.nl" | ||
4211 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4212 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4213 | ac_count=`expr $ac_count + 1` | ||
4214 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4215 | # Best one so far, save it but keep looking for a better one | ||
4216 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4217 | ac_path_EGREP_max=$ac_count | ||
4218 | fi | ||
4219 | # 10*(2^10) chars as input seems more than enough | ||
4220 | test $ac_count -gt 10 && break | ||
4221 | done | ||
4222 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4223 | esac | ||
4224 | |||
4225 | |||
4226 | $ac_path_EGREP_found && break 3 | ||
4227 | done | ||
4228 | done | ||
4229 | |||
4230 | done | ||
4231 | IFS=$as_save_IFS | ||
4232 | |||
4233 | |||
4234 | fi | ||
4235 | |||
4236 | EGREP="$ac_cv_path_EGREP" | ||
4237 | if test -z "$EGREP"; then | ||
4238 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4239 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4240 | { (exit 1); exit 1; }; } | ||
4241 | fi | ||
4242 | |||
4243 | else | ||
4244 | ac_cv_path_EGREP=$EGREP | ||
4245 | fi | ||
4246 | |||
4247 | |||
4248 | fi | ||
4249 | fi | ||
4250 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4251 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4252 | EGREP="$ac_cv_path_EGREP" | ||
4253 | |||
4254 | |||
4255 | # Extract the first word of "ar", so it can be a program name with args. | ||
4256 | set dummy ar; ac_word=$2 | ||
4257 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4259 | if test "${ac_cv_path_AR+set}" = set; then | ||
4260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4261 | else | ||
4262 | case $AR in | ||
4263 | [\\/]* | ?:[\\/]*) | ||
4264 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
4265 | ;; | ||
4266 | *) | ||
4267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4268 | for as_dir in $PATH | ||
4269 | do | ||
4270 | IFS=$as_save_IFS | ||
4271 | test -z "$as_dir" && as_dir=. | ||
4272 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4274 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
4275 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4276 | break 2 | ||
4277 | fi | ||
4278 | done | ||
4279 | done | ||
4280 | IFS=$as_save_IFS | ||
4281 | |||
4282 | ;; | ||
4283 | esac | ||
4284 | fi | ||
4285 | AR=$ac_cv_path_AR | ||
4286 | if test -n "$AR"; then | ||
4287 | { echo "$as_me:$LINENO: result: $AR" >&5 | ||
4288 | echo "${ECHO_T}$AR" >&6; } | ||
4289 | else | ||
4290 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4291 | echo "${ECHO_T}no" >&6; } | ||
4292 | fi | ||
4293 | |||
4294 | |||
4295 | # Extract the first word of "cat", so it can be a program name with args. | ||
4296 | set dummy cat; ac_word=$2 | ||
4297 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4299 | if test "${ac_cv_path_CAT+set}" = set; then | ||
4300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4301 | else | ||
4302 | case $CAT in | ||
4303 | [\\/]* | ?:[\\/]*) | ||
4304 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4305 | ;; | ||
4306 | *) | ||
4307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4308 | for as_dir in $PATH | ||
4309 | do | ||
4310 | IFS=$as_save_IFS | ||
4311 | test -z "$as_dir" && as_dir=. | ||
4312 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4313 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4314 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4315 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4316 | break 2 | ||
4317 | fi | ||
4318 | done | ||
4319 | done | ||
4320 | IFS=$as_save_IFS | ||
4321 | |||
4322 | ;; | ||
4323 | esac | ||
4324 | fi | ||
4325 | CAT=$ac_cv_path_CAT | ||
4326 | if test -n "$CAT"; then | ||
4327 | { echo "$as_me:$LINENO: result: $CAT" >&5 | ||
4328 | echo "${ECHO_T}$CAT" >&6; } | ||
4329 | else | ||
4330 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4331 | echo "${ECHO_T}no" >&6; } | ||
4332 | fi | ||
4333 | |||
4334 | |||
4335 | # Extract the first word of "kill", so it can be a program name with args. | ||
4336 | set dummy kill; ac_word=$2 | ||
4337 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4339 | if test "${ac_cv_path_KILL+set}" = set; then | ||
4340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4341 | else | ||
4342 | case $KILL in | ||
4343 | [\\/]* | ?:[\\/]*) | ||
4344 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4345 | ;; | ||
4346 | *) | ||
4347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4348 | for as_dir in $PATH | ||
4349 | do | ||
4350 | IFS=$as_save_IFS | ||
4351 | test -z "$as_dir" && as_dir=. | ||
4352 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4354 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4356 | break 2 | ||
4357 | fi | ||
4358 | done | ||
4359 | done | ||
4360 | IFS=$as_save_IFS | ||
4361 | |||
4362 | ;; | ||
4363 | esac | ||
4364 | fi | ||
4365 | KILL=$ac_cv_path_KILL | ||
4366 | if test -n "$KILL"; then | ||
4367 | { echo "$as_me:$LINENO: result: $KILL" >&5 | ||
4368 | echo "${ECHO_T}$KILL" >&6; } | ||
4369 | else | ||
4370 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4371 | echo "${ECHO_T}no" >&6; } | ||
4372 | fi | ||
4373 | |||
4374 | |||
4375 | for ac_prog in perl5 perl | ||
4376 | do | ||
4377 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4378 | set dummy $ac_prog; ac_word=$2 | ||
4379 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4381 | if test "${ac_cv_path_PERL+set}" = set; then | ||
4382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4383 | else | ||
4384 | case $PERL in | ||
4385 | [\\/]* | ?:[\\/]*) | ||
4386 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4387 | ;; | ||
4388 | *) | ||
4389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4390 | for as_dir in $PATH | ||
4391 | do | ||
4392 | IFS=$as_save_IFS | ||
4393 | test -z "$as_dir" && as_dir=. | ||
4394 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4396 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4397 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4398 | break 2 | ||
4399 | fi | ||
4400 | done | ||
4401 | done | ||
4402 | IFS=$as_save_IFS | ||
4403 | |||
4404 | ;; | ||
4405 | esac | ||
4406 | fi | ||
4407 | PERL=$ac_cv_path_PERL | ||
4408 | if test -n "$PERL"; then | ||
4409 | { echo "$as_me:$LINENO: result: $PERL" >&5 | ||
4410 | echo "${ECHO_T}$PERL" >&6; } | ||
4411 | else | ||
4412 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4413 | echo "${ECHO_T}no" >&6; } | ||
4414 | fi | ||
4415 | |||
4416 | |||
4417 | test -n "$PERL" && break | ||
4418 | done | ||
4419 | |||
4420 | # Extract the first word of "sed", so it can be a program name with args. | ||
4421 | set dummy sed; ac_word=$2 | ||
4422 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4424 | if test "${ac_cv_path_SED+set}" = set; then | ||
4425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4426 | else | ||
4427 | case $SED in | ||
4428 | [\\/]* | ?:[\\/]*) | ||
4429 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4430 | ;; | ||
4431 | *) | ||
4432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4433 | for as_dir in $PATH | ||
4434 | do | ||
4435 | IFS=$as_save_IFS | ||
4436 | test -z "$as_dir" && as_dir=. | ||
4437 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4439 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4441 | break 2 | ||
4442 | fi | ||
4443 | done | ||
4444 | done | ||
4445 | IFS=$as_save_IFS | ||
4446 | |||
4447 | ;; | ||
4448 | esac | ||
4449 | fi | ||
4450 | SED=$ac_cv_path_SED | ||
4451 | if test -n "$SED"; then | ||
4452 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4453 | echo "${ECHO_T}$SED" >&6; } | ||
4454 | else | ||
4455 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4456 | echo "${ECHO_T}no" >&6; } | ||
4457 | fi | ||
4458 | |||
4459 | |||
4460 | |||
4461 | # Extract the first word of "ent", so it can be a program name with args. | ||
4462 | set dummy ent; ac_word=$2 | ||
4463 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4465 | if test "${ac_cv_path_ENT+set}" = set; then | ||
4466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4467 | else | ||
4468 | case $ENT in | ||
4469 | [\\/]* | ?:[\\/]*) | ||
4470 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4471 | ;; | ||
4472 | *) | ||
4473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4474 | for as_dir in $PATH | ||
4475 | do | ||
4476 | IFS=$as_save_IFS | ||
4477 | test -z "$as_dir" && as_dir=. | ||
4478 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4480 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4482 | break 2 | ||
4483 | fi | ||
4484 | done | ||
4485 | done | ||
4486 | IFS=$as_save_IFS | ||
4487 | |||
4488 | ;; | ||
4489 | esac | ||
4490 | fi | ||
4491 | ENT=$ac_cv_path_ENT | ||
4492 | if test -n "$ENT"; then | ||
4493 | { echo "$as_me:$LINENO: result: $ENT" >&5 | ||
4494 | echo "${ECHO_T}$ENT" >&6; } | ||
4495 | else | ||
4496 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4497 | echo "${ECHO_T}no" >&6; } | ||
4498 | fi | ||
4499 | |||
4500 | |||
4501 | |||
4502 | # Extract the first word of "bash", so it can be a program name with args. | ||
4503 | set dummy bash; ac_word=$2 | ||
4504 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4506 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4508 | else | ||
4509 | case $TEST_MINUS_S_SH in | ||
4510 | [\\/]* | ?:[\\/]*) | ||
4511 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4512 | ;; | ||
4513 | *) | ||
4514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4515 | for as_dir in $PATH | ||
4516 | do | ||
4517 | IFS=$as_save_IFS | ||
4518 | test -z "$as_dir" && as_dir=. | ||
4519 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4521 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4522 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4523 | break 2 | ||
4524 | fi | ||
4525 | done | ||
4526 | done | ||
4527 | IFS=$as_save_IFS | ||
4528 | |||
4529 | ;; | ||
4530 | esac | ||
4531 | fi | ||
4532 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4533 | if test -n "$TEST_MINUS_S_SH"; then | ||
4534 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4535 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4536 | else | ||
4537 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4538 | echo "${ECHO_T}no" >&6; } | ||
4539 | fi | ||
4540 | |||
4541 | |||
4542 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4543 | set dummy ksh; ac_word=$2 | ||
4544 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4546 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4548 | else | ||
4549 | case $TEST_MINUS_S_SH in | ||
4550 | [\\/]* | ?:[\\/]*) | ||
4551 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4552 | ;; | ||
4553 | *) | ||
4554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4555 | for as_dir in $PATH | ||
4556 | do | ||
4557 | IFS=$as_save_IFS | ||
4558 | test -z "$as_dir" && as_dir=. | ||
4559 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4560 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4561 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4563 | break 2 | ||
4564 | fi | ||
4565 | done | ||
4566 | done | ||
4567 | IFS=$as_save_IFS | ||
4568 | |||
4569 | ;; | ||
4570 | esac | ||
4571 | fi | ||
4572 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4573 | if test -n "$TEST_MINUS_S_SH"; then | ||
4574 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4575 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4576 | else | ||
4577 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4578 | echo "${ECHO_T}no" >&6; } | ||
4579 | fi | ||
4580 | |||
4581 | |||
4582 | # Extract the first word of "sh", so it can be a program name with args. | ||
4583 | set dummy sh; ac_word=$2 | ||
4584 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4585 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4586 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4588 | else | ||
4589 | case $TEST_MINUS_S_SH in | ||
4590 | [\\/]* | ?:[\\/]*) | ||
4591 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4592 | ;; | ||
4593 | *) | ||
4594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4595 | for as_dir in $PATH | ||
4596 | do | ||
4597 | IFS=$as_save_IFS | ||
4598 | test -z "$as_dir" && as_dir=. | ||
4599 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4600 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4601 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4602 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4603 | break 2 | ||
4604 | fi | ||
4605 | done | ||
4606 | done | ||
4607 | IFS=$as_save_IFS | ||
4608 | |||
4609 | ;; | ||
4610 | esac | ||
4611 | fi | ||
4612 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4613 | if test -n "$TEST_MINUS_S_SH"; then | ||
4614 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4615 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4616 | else | ||
4617 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4618 | echo "${ECHO_T}no" >&6; } | ||
4619 | fi | ||
4620 | |||
4621 | |||
4622 | # Extract the first word of "sh", so it can be a program name with args. | ||
4623 | set dummy sh; ac_word=$2 | ||
4624 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4625 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4626 | if test "${ac_cv_path_SH+set}" = set; then | ||
4627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4628 | else | ||
4629 | case $SH in | ||
4630 | [\\/]* | ?:[\\/]*) | ||
4631 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4632 | ;; | ||
4633 | *) | ||
4634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4635 | for as_dir in $PATH | ||
4636 | do | ||
4637 | IFS=$as_save_IFS | ||
4638 | test -z "$as_dir" && as_dir=. | ||
4639 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4641 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4643 | break 2 | ||
4644 | fi | ||
4645 | done | ||
4646 | done | ||
4647 | IFS=$as_save_IFS | ||
4648 | |||
4649 | ;; | ||
4650 | esac | ||
4651 | fi | ||
4652 | SH=$ac_cv_path_SH | ||
4653 | if test -n "$SH"; then | ||
4654 | { echo "$as_me:$LINENO: result: $SH" >&5 | ||
4655 | echo "${ECHO_T}$SH" >&6; } | ||
4656 | else | ||
4657 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4658 | echo "${ECHO_T}no" >&6; } | ||
4659 | fi | ||
4660 | |||
4661 | |||
4662 | TEST_SHELL=sh | ||
4663 | |||
4664 | |||
4665 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
4666 | set dummy groupadd; ac_word=$2 | ||
4667 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4668 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4669 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
4670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4671 | else | ||
4672 | case $PATH_GROUPADD_PROG in | ||
4673 | [\\/]* | ?:[\\/]*) | ||
4674 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
4675 | ;; | ||
4676 | *) | ||
4677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4678 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4679 | do | ||
4680 | IFS=$as_save_IFS | ||
4681 | test -z "$as_dir" && as_dir=. | ||
4682 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4684 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4686 | break 2 | ||
4687 | fi | ||
4688 | done | ||
4689 | done | ||
4690 | IFS=$as_save_IFS | ||
4691 | |||
4692 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
4693 | ;; | ||
4694 | esac | ||
4695 | fi | ||
4696 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
4697 | if test -n "$PATH_GROUPADD_PROG"; then | ||
4698 | { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
4699 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; } | ||
4700 | else | ||
4701 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4702 | echo "${ECHO_T}no" >&6; } | ||
4703 | fi | ||
4704 | |||
4705 | |||
4706 | # Extract the first word of "useradd", so it can be a program name with args. | ||
4707 | set dummy useradd; ac_word=$2 | ||
4708 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4710 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
4711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4712 | else | ||
4713 | case $PATH_USERADD_PROG in | ||
4714 | [\\/]* | ?:[\\/]*) | ||
4715 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
4716 | ;; | ||
4717 | *) | ||
4718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4719 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4720 | do | ||
4721 | IFS=$as_save_IFS | ||
4722 | test -z "$as_dir" && as_dir=. | ||
4723 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4725 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4727 | break 2 | ||
4728 | fi | ||
4729 | done | ||
4730 | done | ||
4731 | IFS=$as_save_IFS | ||
4732 | |||
4733 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
4734 | ;; | ||
4735 | esac | ||
4736 | fi | ||
4737 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
4738 | if test -n "$PATH_USERADD_PROG"; then | ||
4739 | { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
4740 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6; } | ||
4741 | else | ||
4742 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4743 | echo "${ECHO_T}no" >&6; } | ||
4744 | fi | ||
4745 | |||
4746 | |||
4747 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
4748 | set dummy pkgmk; ac_word=$2 | ||
4749 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4751 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
4752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4753 | else | ||
4754 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4755 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
4756 | else | ||
4757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4758 | for as_dir in $PATH | ||
4759 | do | ||
4760 | IFS=$as_save_IFS | ||
4761 | test -z "$as_dir" && as_dir=. | ||
4762 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4764 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
4765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4766 | break 2 | ||
4767 | fi | ||
4768 | done | ||
4769 | done | ||
4770 | IFS=$as_save_IFS | ||
4771 | |||
4772 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
4773 | fi | ||
4774 | fi | ||
4775 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
4776 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4777 | { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
4778 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
4779 | else | ||
4780 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4781 | echo "${ECHO_T}no" >&6; } | ||
4782 | fi | ||
4783 | |||
4784 | |||
4785 | if test -x /sbin/sh; then | ||
4786 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
4787 | |||
4788 | else | ||
4789 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
4790 | |||
4791 | fi | ||
4792 | |||
4793 | # System features | ||
4794 | # Check whether --enable-largefile was given. | ||
4795 | if test "${enable_largefile+set}" = set; then | ||
4796 | enableval=$enable_largefile; | ||
4797 | fi | ||
4798 | |||
4799 | if test "$enable_largefile" != no; then | ||
4800 | |||
4801 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
4802 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | ||
4803 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
4804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4805 | else | ||
4806 | ac_cv_sys_largefile_CC=no | ||
4807 | if test "$GCC" != yes; then | ||
4808 | ac_save_CC=$CC | ||
4809 | while :; do | ||
4810 | # IRIX 6.2 and later do not support large files by default, | ||
4811 | # so use the C compiler's -n32 option if that helps. | ||
4812 | cat >conftest.$ac_ext <<_ACEOF | ||
4813 | /* confdefs.h. */ | ||
4814 | _ACEOF | ||
4815 | cat confdefs.h >>conftest.$ac_ext | ||
4816 | cat >>conftest.$ac_ext <<_ACEOF | ||
4817 | /* end confdefs.h. */ | ||
4818 | #include <sys/types.h> | ||
4819 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4820 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4821 | since some C++ compilers masquerading as C compilers | ||
4822 | incorrectly reject 9223372036854775807. */ | ||
4823 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4824 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4825 | && LARGE_OFF_T % 2147483647 == 1) | ||
4826 | ? 1 : -1]; | ||
4827 | int | ||
4828 | main () | ||
4829 | { | ||
4830 | |||
4831 | ; | ||
4832 | return 0; | ||
4833 | } | ||
4834 | _ACEOF | ||
4835 | rm -f conftest.$ac_objext | ||
4836 | if { (ac_try="$ac_compile" | ||
4837 | case "(($ac_try" in | ||
4838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4839 | *) ac_try_echo=$ac_try;; | ||
4840 | esac | ||
4841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4842 | (eval "$ac_compile") 2>conftest.er1 | ||
4843 | ac_status=$? | ||
4844 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4845 | rm -f conftest.er1 | ||
4846 | cat conftest.err >&5 | ||
4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4848 | (exit $ac_status); } && { | ||
4849 | test -z "$ac_c_werror_flag" || | ||
4850 | test ! -s conftest.err | ||
4851 | } && test -s conftest.$ac_objext; then | ||
4852 | break | ||
4853 | else | ||
4854 | echo "$as_me: failed program was:" >&5 | ||
4855 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4856 | |||
4857 | |||
4858 | fi | ||
4859 | |||
4860 | rm -f core conftest.err conftest.$ac_objext | ||
4861 | CC="$CC -n32" | ||
4862 | rm -f conftest.$ac_objext | ||
4863 | if { (ac_try="$ac_compile" | ||
4864 | case "(($ac_try" in | ||
4865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4866 | *) ac_try_echo=$ac_try;; | ||
4867 | esac | ||
4868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4869 | (eval "$ac_compile") 2>conftest.er1 | ||
4870 | ac_status=$? | ||
4871 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4872 | rm -f conftest.er1 | ||
4873 | cat conftest.err >&5 | ||
4874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4875 | (exit $ac_status); } && { | ||
4876 | test -z "$ac_c_werror_flag" || | ||
4877 | test ! -s conftest.err | ||
4878 | } && test -s conftest.$ac_objext; then | ||
4879 | ac_cv_sys_largefile_CC=' -n32'; break | ||
4880 | else | ||
4881 | echo "$as_me: failed program was:" >&5 | ||
4882 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4883 | |||
4884 | |||
4885 | fi | ||
4886 | |||
4887 | rm -f core conftest.err conftest.$ac_objext | ||
4888 | break | ||
4889 | done | ||
4890 | CC=$ac_save_CC | ||
4891 | rm -f conftest.$ac_ext | ||
4892 | fi | ||
4893 | fi | ||
4894 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
4895 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | ||
4896 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
4897 | CC=$CC$ac_cv_sys_largefile_CC | ||
4898 | fi | ||
4899 | |||
4900 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
4901 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | ||
4902 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
4903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4904 | else | ||
4905 | while :; do | ||
4906 | cat >conftest.$ac_ext <<_ACEOF | ||
4907 | /* confdefs.h. */ | ||
4908 | _ACEOF | ||
4909 | cat confdefs.h >>conftest.$ac_ext | ||
4910 | cat >>conftest.$ac_ext <<_ACEOF | ||
4911 | /* end confdefs.h. */ | ||
4912 | #include <sys/types.h> | ||
4913 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4914 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4915 | since some C++ compilers masquerading as C compilers | ||
4916 | incorrectly reject 9223372036854775807. */ | ||
4917 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4918 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4919 | && LARGE_OFF_T % 2147483647 == 1) | ||
4920 | ? 1 : -1]; | ||
4921 | int | ||
4922 | main () | ||
4923 | { | ||
4924 | |||
4925 | ; | ||
4926 | return 0; | ||
4927 | } | ||
4928 | _ACEOF | ||
4929 | rm -f conftest.$ac_objext | ||
4930 | if { (ac_try="$ac_compile" | ||
4931 | case "(($ac_try" in | ||
4932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4933 | *) ac_try_echo=$ac_try;; | ||
4934 | esac | ||
4935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4936 | (eval "$ac_compile") 2>conftest.er1 | ||
4937 | ac_status=$? | ||
4938 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4939 | rm -f conftest.er1 | ||
4940 | cat conftest.err >&5 | ||
4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4942 | (exit $ac_status); } && { | ||
4943 | test -z "$ac_c_werror_flag" || | ||
4944 | test ! -s conftest.err | ||
4945 | } && test -s conftest.$ac_objext; then | ||
4946 | ac_cv_sys_file_offset_bits=no; break | ||
4947 | else | ||
4948 | echo "$as_me: failed program was:" >&5 | ||
4949 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4950 | |||
4951 | |||
4952 | fi | ||
4953 | |||
4954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4955 | cat >conftest.$ac_ext <<_ACEOF | ||
4956 | /* confdefs.h. */ | ||
4957 | _ACEOF | ||
4958 | cat confdefs.h >>conftest.$ac_ext | ||
4959 | cat >>conftest.$ac_ext <<_ACEOF | ||
4960 | /* end confdefs.h. */ | ||
4961 | #define _FILE_OFFSET_BITS 64 | ||
4962 | #include <sys/types.h> | ||
4963 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4964 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4965 | since some C++ compilers masquerading as C compilers | ||
4966 | incorrectly reject 9223372036854775807. */ | ||
4967 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4968 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4969 | && LARGE_OFF_T % 2147483647 == 1) | ||
4970 | ? 1 : -1]; | ||
4971 | int | ||
4972 | main () | ||
4973 | { | ||
4974 | |||
4975 | ; | ||
4976 | return 0; | ||
4977 | } | ||
4978 | _ACEOF | ||
4979 | rm -f conftest.$ac_objext | ||
4980 | if { (ac_try="$ac_compile" | ||
4981 | case "(($ac_try" in | ||
4982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4983 | *) ac_try_echo=$ac_try;; | ||
4984 | esac | ||
4985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4986 | (eval "$ac_compile") 2>conftest.er1 | ||
4987 | ac_status=$? | ||
4988 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4989 | rm -f conftest.er1 | ||
4990 | cat conftest.err >&5 | ||
4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4992 | (exit $ac_status); } && { | ||
4993 | test -z "$ac_c_werror_flag" || | ||
4994 | test ! -s conftest.err | ||
4995 | } && test -s conftest.$ac_objext; then | ||
4996 | ac_cv_sys_file_offset_bits=64; break | ||
4997 | else | ||
4998 | echo "$as_me: failed program was:" >&5 | ||
4999 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5000 | |||
5001 | |||
5002 | fi | ||
5003 | |||
5004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5005 | ac_cv_sys_file_offset_bits=unknown | ||
5006 | break | ||
5007 | done | ||
5008 | fi | ||
5009 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5010 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | ||
5011 | case $ac_cv_sys_file_offset_bits in #( | ||
5012 | no | unknown) ;; | ||
5013 | *) | ||
5014 | cat >>confdefs.h <<_ACEOF | ||
5015 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5016 | _ACEOF | ||
5017 | ;; | ||
5018 | esac | ||
5019 | rm -f conftest* | ||
5020 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5021 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
5022 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | ||
5023 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
5024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5025 | else | ||
5026 | while :; do | ||
5027 | cat >conftest.$ac_ext <<_ACEOF | ||
5028 | /* confdefs.h. */ | ||
5029 | _ACEOF | ||
5030 | cat confdefs.h >>conftest.$ac_ext | ||
5031 | cat >>conftest.$ac_ext <<_ACEOF | ||
5032 | /* end confdefs.h. */ | ||
5033 | #include <sys/types.h> | ||
5034 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5035 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5036 | since some C++ compilers masquerading as C compilers | ||
5037 | incorrectly reject 9223372036854775807. */ | ||
5038 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5039 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5040 | && LARGE_OFF_T % 2147483647 == 1) | ||
5041 | ? 1 : -1]; | ||
5042 | int | ||
5043 | main () | ||
5044 | { | ||
5045 | |||
5046 | ; | ||
5047 | return 0; | ||
5048 | } | ||
5049 | _ACEOF | ||
5050 | rm -f conftest.$ac_objext | ||
5051 | if { (ac_try="$ac_compile" | ||
5052 | case "(($ac_try" in | ||
5053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5054 | *) ac_try_echo=$ac_try;; | ||
5055 | esac | ||
5056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5057 | (eval "$ac_compile") 2>conftest.er1 | ||
5058 | ac_status=$? | ||
5059 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5060 | rm -f conftest.er1 | ||
5061 | cat conftest.err >&5 | ||
5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5063 | (exit $ac_status); } && { | ||
5064 | test -z "$ac_c_werror_flag" || | ||
5065 | test ! -s conftest.err | ||
5066 | } && test -s conftest.$ac_objext; then | ||
5067 | ac_cv_sys_large_files=no; break | ||
5068 | else | ||
5069 | echo "$as_me: failed program was:" >&5 | ||
5070 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5071 | |||
5072 | |||
5073 | fi | ||
5074 | |||
5075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5076 | cat >conftest.$ac_ext <<_ACEOF | ||
5077 | /* confdefs.h. */ | ||
5078 | _ACEOF | ||
5079 | cat confdefs.h >>conftest.$ac_ext | ||
5080 | cat >>conftest.$ac_ext <<_ACEOF | ||
5081 | /* end confdefs.h. */ | ||
5082 | #define _LARGE_FILES 1 | ||
5083 | #include <sys/types.h> | ||
5084 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5085 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5086 | since some C++ compilers masquerading as C compilers | ||
5087 | incorrectly reject 9223372036854775807. */ | ||
5088 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5089 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5090 | && LARGE_OFF_T % 2147483647 == 1) | ||
5091 | ? 1 : -1]; | ||
5092 | int | ||
5093 | main () | ||
5094 | { | ||
5095 | |||
5096 | ; | ||
5097 | return 0; | ||
5098 | } | ||
5099 | _ACEOF | ||
5100 | rm -f conftest.$ac_objext | ||
5101 | if { (ac_try="$ac_compile" | ||
5102 | case "(($ac_try" in | ||
5103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5104 | *) ac_try_echo=$ac_try;; | ||
5105 | esac | ||
5106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5107 | (eval "$ac_compile") 2>conftest.er1 | ||
5108 | ac_status=$? | ||
5109 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5110 | rm -f conftest.er1 | ||
5111 | cat conftest.err >&5 | ||
5112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5113 | (exit $ac_status); } && { | ||
5114 | test -z "$ac_c_werror_flag" || | ||
5115 | test ! -s conftest.err | ||
5116 | } && test -s conftest.$ac_objext; then | ||
5117 | ac_cv_sys_large_files=1; break | ||
5118 | else | ||
5119 | echo "$as_me: failed program was:" >&5 | ||
5120 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5121 | |||
5122 | |||
5123 | fi | ||
5124 | |||
5125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5126 | ac_cv_sys_large_files=unknown | ||
5127 | break | ||
5128 | done | ||
5129 | fi | ||
5130 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
5131 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | ||
5132 | case $ac_cv_sys_large_files in #( | ||
5133 | no | unknown) ;; | ||
5134 | *) | ||
5135 | cat >>confdefs.h <<_ACEOF | ||
5136 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5137 | _ACEOF | ||
5138 | ;; | ||
5139 | esac | ||
5140 | rm -f conftest* | ||
5141 | fi | ||
5142 | fi | ||
5143 | |||
5144 | |||
5145 | if test -z "$AR" ; then | ||
5146 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
5147 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
5148 | { (exit 1); exit 1; }; } | ||
5149 | fi | ||
5150 | |||
5151 | # Use LOGIN_PROGRAM from environment if possible | ||
5152 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5153 | |||
5154 | cat >>confdefs.h <<_ACEOF | ||
5155 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5156 | _ACEOF | ||
5157 | |||
5158 | else | ||
5159 | # Search for login | ||
5160 | # Extract the first word of "login", so it can be a program name with args. | ||
5161 | set dummy login; ac_word=$2 | ||
5162 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5164 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
5165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5166 | else | ||
5167 | case $LOGIN_PROGRAM_FALLBACK in | ||
5168 | [\\/]* | ?:[\\/]*) | ||
5169 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5170 | ;; | ||
5171 | *) | ||
5172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5173 | for as_dir in $PATH | ||
5174 | do | ||
5175 | IFS=$as_save_IFS | ||
5176 | test -z "$as_dir" && as_dir=. | ||
5177 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5179 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5181 | break 2 | ||
5182 | fi | ||
5183 | done | ||
5184 | done | ||
5185 | IFS=$as_save_IFS | ||
5186 | |||
5187 | ;; | ||
5188 | esac | ||
5189 | fi | ||
5190 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5191 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5192 | { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5193 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5194 | else | ||
5195 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5196 | echo "${ECHO_T}no" >&6; } | ||
5197 | fi | ||
5198 | |||
5199 | |||
5200 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5201 | cat >>confdefs.h <<_ACEOF | ||
5202 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5203 | _ACEOF | ||
5204 | |||
5205 | fi | ||
5206 | fi | ||
5207 | |||
5208 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5209 | set dummy passwd; ac_word=$2 | ||
5210 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5212 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
5213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5214 | else | ||
5215 | case $PATH_PASSWD_PROG in | ||
5216 | [\\/]* | ?:[\\/]*) | ||
5217 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5218 | ;; | ||
5219 | *) | ||
5220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5221 | for as_dir in $PATH | ||
5222 | do | ||
5223 | IFS=$as_save_IFS | ||
5224 | test -z "$as_dir" && as_dir=. | ||
5225 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5226 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5227 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5229 | break 2 | ||
5230 | fi | ||
5231 | done | ||
5232 | done | ||
5233 | IFS=$as_save_IFS | ||
5234 | |||
5235 | ;; | ||
5236 | esac | ||
5237 | fi | ||
5238 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5239 | if test -n "$PATH_PASSWD_PROG"; then | ||
5240 | { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
5241 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; } | ||
5242 | else | ||
5243 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5244 | echo "${ECHO_T}no" >&6; } | ||
5245 | fi | ||
5246 | |||
5247 | |||
5248 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5249 | |||
5250 | cat >>confdefs.h <<_ACEOF | ||
5251 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5252 | _ACEOF | ||
5253 | |||
5254 | fi | ||
5255 | |||
5256 | if test -z "$LD" ; then | ||
5257 | LD=$CC | ||
5258 | fi | ||
5259 | |||
5260 | |||
5261 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
5262 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
5263 | if test "${ac_cv_c_inline+set}" = set; then | ||
5264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5265 | else | ||
5266 | ac_cv_c_inline=no | ||
5267 | for ac_kw in inline __inline__ __inline; do | ||
5268 | cat >conftest.$ac_ext <<_ACEOF | ||
5269 | /* confdefs.h. */ | ||
5270 | _ACEOF | ||
5271 | cat confdefs.h >>conftest.$ac_ext | ||
5272 | cat >>conftest.$ac_ext <<_ACEOF | ||
5273 | /* end confdefs.h. */ | ||
5274 | #ifndef __cplusplus | ||
5275 | typedef int foo_t; | ||
5276 | static $ac_kw foo_t static_foo () {return 0; } | ||
5277 | $ac_kw foo_t foo () {return 0; } | ||
5278 | #endif | ||
5279 | |||
5280 | _ACEOF | ||
5281 | rm -f conftest.$ac_objext | ||
5282 | if { (ac_try="$ac_compile" | ||
5283 | case "(($ac_try" in | ||
5284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5285 | *) ac_try_echo=$ac_try;; | ||
5286 | esac | ||
5287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5288 | (eval "$ac_compile") 2>conftest.er1 | ||
5289 | ac_status=$? | ||
5290 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5291 | rm -f conftest.er1 | ||
5292 | cat conftest.err >&5 | ||
5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5294 | (exit $ac_status); } && { | ||
5295 | test -z "$ac_c_werror_flag" || | ||
5296 | test ! -s conftest.err | ||
5297 | } && test -s conftest.$ac_objext; then | ||
5298 | ac_cv_c_inline=$ac_kw | ||
5299 | else | ||
5300 | echo "$as_me: failed program was:" >&5 | ||
5301 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5302 | |||
5303 | |||
5304 | fi | ||
5305 | |||
5306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5307 | test "$ac_cv_c_inline" != no && break | ||
5308 | done | ||
5309 | |||
5310 | fi | ||
5311 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
5312 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
5313 | |||
5314 | |||
5315 | case $ac_cv_c_inline in | ||
5316 | inline | yes) ;; | ||
5317 | *) | ||
5318 | case $ac_cv_c_inline in | ||
5319 | no) ac_val=;; | ||
5320 | *) ac_val=$ac_cv_c_inline;; | ||
5321 | esac | ||
5322 | cat >>confdefs.h <<_ACEOF | ||
5323 | #ifndef __cplusplus | ||
5324 | #define inline $ac_val | ||
5325 | #endif | ||
5326 | _ACEOF | ||
5327 | ;; | ||
5328 | esac | ||
5329 | |||
5330 | |||
5331 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5332 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5333 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5335 | else | ||
5336 | cat >conftest.$ac_ext <<_ACEOF | ||
5337 | /* confdefs.h. */ | ||
5338 | _ACEOF | ||
5339 | cat confdefs.h >>conftest.$ac_ext | ||
5340 | cat >>conftest.$ac_ext <<_ACEOF | ||
5341 | /* end confdefs.h. */ | ||
5342 | #include <limits.h> | ||
5343 | |||
5344 | int | ||
5345 | main () | ||
5346 | { | ||
5347 | #ifndef LLONG_MAX | ||
5348 | (void) LLONG_MAX; | ||
5349 | #endif | ||
5350 | |||
5351 | ; | ||
5352 | return 0; | ||
5353 | } | ||
5354 | _ACEOF | ||
5355 | rm -f conftest.$ac_objext | ||
5356 | if { (ac_try="$ac_compile" | ||
5357 | case "(($ac_try" in | ||
5358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5359 | *) ac_try_echo=$ac_try;; | ||
5360 | esac | ||
5361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5362 | (eval "$ac_compile") 2>conftest.er1 | ||
5363 | ac_status=$? | ||
5364 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5365 | rm -f conftest.er1 | ||
5366 | cat conftest.err >&5 | ||
5367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5368 | (exit $ac_status); } && { | ||
5369 | test -z "$ac_c_werror_flag" || | ||
5370 | test ! -s conftest.err | ||
5371 | } && test -s conftest.$ac_objext; then | ||
5372 | ac_cv_have_decl_LLONG_MAX=yes | ||
5373 | else | ||
5374 | echo "$as_me: failed program was:" >&5 | ||
5375 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5376 | |||
5377 | ac_cv_have_decl_LLONG_MAX=no | ||
5378 | fi | ||
5379 | |||
5380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5381 | fi | ||
5382 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5383 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5384 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5385 | have_llong_max=1 | ||
5386 | fi | ||
5387 | |||
5388 | |||
5389 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5390 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" | ||
5391 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
5392 | case $GCC_VER in | ||
5393 | 1.*) ;; | ||
5394 | 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;; | ||
5395 | 2.*) ;; | ||
5396 | 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;; | ||
5397 | 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;; | ||
5398 | *) ;; | ||
5399 | esac | ||
5400 | |||
5401 | if test -z "$have_llong_max"; then | ||
5402 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
5403 | unset ac_cv_have_decl_LLONG_MAX | ||
5404 | saved_CFLAGS="$CFLAGS" | ||
5405 | CFLAGS="$CFLAGS -std=gnu99" | ||
5406 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5407 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5408 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5410 | else | ||
5411 | cat >conftest.$ac_ext <<_ACEOF | ||
5412 | /* confdefs.h. */ | ||
5413 | _ACEOF | ||
5414 | cat confdefs.h >>conftest.$ac_ext | ||
5415 | cat >>conftest.$ac_ext <<_ACEOF | ||
5416 | /* end confdefs.h. */ | ||
5417 | #include <limits.h> | ||
5418 | |||
5419 | |||
5420 | int | ||
5421 | main () | ||
5422 | { | ||
5423 | #ifndef LLONG_MAX | ||
5424 | (void) LLONG_MAX; | ||
5425 | #endif | ||
5426 | |||
5427 | ; | ||
5428 | return 0; | ||
5429 | } | ||
5430 | _ACEOF | ||
5431 | rm -f conftest.$ac_objext | ||
5432 | if { (ac_try="$ac_compile" | ||
5433 | case "(($ac_try" in | ||
5434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5435 | *) ac_try_echo=$ac_try;; | ||
5436 | esac | ||
5437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5438 | (eval "$ac_compile") 2>conftest.er1 | ||
5439 | ac_status=$? | ||
5440 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5441 | rm -f conftest.er1 | ||
5442 | cat conftest.err >&5 | ||
5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5444 | (exit $ac_status); } && { | ||
5445 | test -z "$ac_c_werror_flag" || | ||
5446 | test ! -s conftest.err | ||
5447 | } && test -s conftest.$ac_objext; then | ||
5448 | ac_cv_have_decl_LLONG_MAX=yes | ||
5449 | else | ||
5450 | echo "$as_me: failed program was:" >&5 | ||
5451 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5452 | |||
5453 | ac_cv_have_decl_LLONG_MAX=no | ||
5454 | fi | ||
5455 | |||
5456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5457 | fi | ||
5458 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5459 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5460 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5461 | have_llong_max=1 | ||
5462 | else | ||
5463 | CFLAGS="$saved_CFLAGS" | ||
5464 | fi | ||
5465 | |||
5466 | fi | ||
5467 | fi | ||
5468 | |||
5469 | |||
5470 | # Check whether --with-rpath was given. | ||
5471 | if test "${with_rpath+set}" = set; then | ||
5472 | withval=$with_rpath; | ||
5473 | if test "x$withval" = "xno" ; then | ||
5474 | need_dash_r="" | ||
5475 | fi | ||
5476 | if test "x$withval" = "xyes" ; then | ||
5477 | need_dash_r=1 | ||
5478 | fi | ||
5479 | |||
5480 | |||
5481 | fi | ||
5482 | |||
5483 | |||
5484 | # Allow user to specify flags | ||
5485 | |||
5486 | # Check whether --with-cflags was given. | ||
5487 | if test "${with_cflags+set}" = set; then | ||
5488 | withval=$with_cflags; | ||
5489 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5490 | test "x${withval}" != "xyes"; then | ||
5491 | CFLAGS="$CFLAGS $withval" | ||
5492 | fi | ||
5493 | |||
5494 | |||
5495 | fi | ||
5496 | |||
5497 | |||
5498 | # Check whether --with-cppflags was given. | ||
5499 | if test "${with_cppflags+set}" = set; then | ||
5500 | withval=$with_cppflags; | ||
5501 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5502 | test "x${withval}" != "xyes"; then | ||
5503 | CPPFLAGS="$CPPFLAGS $withval" | ||
5504 | fi | ||
5505 | |||
5506 | |||
5507 | fi | ||
5508 | |||
5509 | |||
5510 | # Check whether --with-ldflags was given. | ||
5511 | if test "${with_ldflags+set}" = set; then | ||
5512 | withval=$with_ldflags; | ||
5513 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5514 | test "x${withval}" != "xyes"; then | ||
5515 | LDFLAGS="$LDFLAGS $withval" | ||
5516 | fi | ||
5517 | |||
5518 | |||
5519 | fi | ||
5520 | |||
5521 | |||
5522 | # Check whether --with-libs was given. | ||
5523 | if test "${with_libs+set}" = set; then | ||
5524 | withval=$with_libs; | ||
5525 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5526 | test "x${withval}" != "xyes"; then | ||
5527 | LIBS="$LIBS $withval" | ||
5528 | fi | ||
5529 | |||
5530 | |||
5531 | fi | ||
5532 | |||
5533 | |||
5534 | # Check whether --with-Werror was given. | ||
5535 | if test "${with_Werror+set}" = set; then | ||
5536 | withval=$with_Werror; | ||
5537 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
5538 | werror_flags="-Werror" | ||
5539 | if test "x${withval}" != "xyes"; then | ||
5540 | werror_flags="$withval" | ||
5541 | fi | ||
5542 | fi | ||
5543 | |||
5544 | |||
5545 | fi | ||
5546 | |||
5547 | |||
5548 | |||
5549 | |||
5550 | |||
5551 | |||
5552 | |||
5553 | |||
5554 | |||
5555 | |||
5556 | |||
5557 | |||
5558 | |||
5559 | |||
5560 | |||
5561 | |||
5562 | |||
5563 | |||
5564 | |||
5565 | |||
5566 | |||
5567 | |||
5568 | |||
5569 | |||
5570 | |||
5571 | |||
5572 | |||
5573 | |||
5574 | |||
5575 | |||
5576 | |||
5577 | |||
5578 | |||
5579 | |||
5580 | |||
5581 | |||
5582 | |||
5583 | |||
5584 | |||
5585 | |||
5586 | |||
5587 | |||
5588 | |||
5589 | |||
5590 | |||
5591 | |||
5592 | |||
5593 | |||
5594 | |||
5595 | |||
5596 | |||
5597 | |||
5598 | |||
5599 | |||
5600 | |||
5601 | |||
5602 | |||
5603 | |||
5604 | |||
5605 | |||
5606 | |||
5607 | for ac_header in \ | ||
5608 | bstring.h \ | ||
5609 | crypt.h \ | ||
5610 | crypto/sha2.h \ | ||
5611 | dirent.h \ | ||
5612 | endian.h \ | ||
5613 | features.h \ | ||
5614 | fcntl.h \ | ||
5615 | floatingpoint.h \ | ||
5616 | getopt.h \ | ||
5617 | glob.h \ | ||
5618 | ia.h \ | ||
5619 | iaf.h \ | ||
5620 | limits.h \ | ||
5621 | login.h \ | ||
5622 | maillock.h \ | ||
5623 | ndir.h \ | ||
5624 | net/if_tun.h \ | ||
5625 | netdb.h \ | ||
5626 | netgroup.h \ | ||
5627 | pam/pam_appl.h \ | ||
5628 | paths.h \ | ||
5629 | pty.h \ | ||
5630 | readpassphrase.h \ | ||
5631 | rpc/types.h \ | ||
5632 | security/pam_appl.h \ | ||
5633 | sha2.h \ | ||
5634 | shadow.h \ | ||
5635 | stddef.h \ | ||
5636 | stdint.h \ | ||
5637 | string.h \ | ||
5638 | strings.h \ | ||
5639 | sys/audit.h \ | ||
5640 | sys/bitypes.h \ | ||
5641 | sys/bsdtty.h \ | ||
5642 | sys/cdefs.h \ | ||
5643 | sys/dir.h \ | ||
5644 | sys/mman.h \ | ||
5645 | sys/ndir.h \ | ||
5646 | sys/prctl.h \ | ||
5647 | sys/pstat.h \ | ||
5648 | sys/select.h \ | ||
5649 | sys/stat.h \ | ||
5650 | sys/stream.h \ | ||
5651 | sys/stropts.h \ | ||
5652 | sys/strtio.h \ | ||
5653 | sys/sysmacros.h \ | ||
5654 | sys/time.h \ | ||
5655 | sys/timers.h \ | ||
5656 | sys/un.h \ | ||
5657 | time.h \ | ||
5658 | tmpdir.h \ | ||
5659 | ttyent.h \ | ||
5660 | unistd.h \ | ||
5661 | usersec.h \ | ||
5662 | util.h \ | ||
5663 | utime.h \ | ||
5664 | utmp.h \ | ||
5665 | utmpx.h \ | ||
5666 | vis.h \ | ||
5667 | |||
5668 | do | ||
5669 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5671 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5672 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5673 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5675 | fi | ||
5676 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5677 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5678 | echo "${ECHO_T}$ac_res" >&6; } | ||
5679 | else | ||
5680 | # Is the header compilable? | ||
5681 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5682 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
5683 | cat >conftest.$ac_ext <<_ACEOF | ||
5684 | /* confdefs.h. */ | ||
5685 | _ACEOF | ||
5686 | cat confdefs.h >>conftest.$ac_ext | ||
5687 | cat >>conftest.$ac_ext <<_ACEOF | ||
5688 | /* end confdefs.h. */ | ||
5689 | $ac_includes_default | ||
5690 | #include <$ac_header> | ||
5691 | _ACEOF | ||
5692 | rm -f conftest.$ac_objext | ||
5693 | if { (ac_try="$ac_compile" | ||
5694 | case "(($ac_try" in | ||
5695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5696 | *) ac_try_echo=$ac_try;; | ||
5697 | esac | ||
5698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5699 | (eval "$ac_compile") 2>conftest.er1 | ||
5700 | ac_status=$? | ||
5701 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5702 | rm -f conftest.er1 | ||
5703 | cat conftest.err >&5 | ||
5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5705 | (exit $ac_status); } && { | ||
5706 | test -z "$ac_c_werror_flag" || | ||
5707 | test ! -s conftest.err | ||
5708 | } && test -s conftest.$ac_objext; then | ||
5709 | ac_header_compiler=yes | ||
5710 | else | ||
5711 | echo "$as_me: failed program was:" >&5 | ||
5712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5713 | |||
5714 | ac_header_compiler=no | ||
5715 | fi | ||
5716 | |||
5717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5718 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5719 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
5720 | |||
5721 | # Is the header present? | ||
5722 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5723 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
5724 | cat >conftest.$ac_ext <<_ACEOF | ||
5725 | /* confdefs.h. */ | ||
5726 | _ACEOF | ||
5727 | cat confdefs.h >>conftest.$ac_ext | ||
5728 | cat >>conftest.$ac_ext <<_ACEOF | ||
5729 | /* end confdefs.h. */ | ||
5730 | #include <$ac_header> | ||
5731 | _ACEOF | ||
5732 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5733 | case "(($ac_try" in | ||
5734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5735 | *) ac_try_echo=$ac_try;; | ||
5736 | esac | ||
5737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5738 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5739 | ac_status=$? | ||
5740 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5741 | rm -f conftest.er1 | ||
5742 | cat conftest.err >&5 | ||
5743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5744 | (exit $ac_status); } >/dev/null && { | ||
5745 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
5746 | test ! -s conftest.err | ||
5747 | }; then | ||
5748 | ac_header_preproc=yes | ||
5749 | else | ||
5750 | echo "$as_me: failed program was:" >&5 | ||
5751 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5752 | |||
5753 | ac_header_preproc=no | ||
5754 | fi | ||
5755 | |||
5756 | rm -f conftest.err conftest.$ac_ext | ||
5757 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5758 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
5759 | |||
5760 | # So? What about this header? | ||
5761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
5762 | yes:no: ) | ||
5763 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5764 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5765 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
5766 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
5767 | ac_header_preproc=yes | ||
5768 | ;; | ||
5769 | no:yes:* ) | ||
5770 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5771 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5772 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5773 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5774 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
5775 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
5776 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
5777 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
5778 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5779 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
5780 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
5781 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
5782 | ( cat <<\_ASBOX | ||
5783 | ## ------------------------------------------- ## | ||
5784 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
5785 | ## ------------------------------------------- ## | ||
5786 | _ASBOX | ||
5787 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
5788 | ;; | ||
5789 | esac | ||
5790 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5791 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5792 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5794 | else | ||
5795 | eval "$as_ac_Header=\$ac_header_preproc" | ||
5796 | fi | ||
5797 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5798 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5799 | echo "${ECHO_T}$ac_res" >&6; } | ||
5800 | |||
5801 | fi | ||
5802 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5803 | cat >>confdefs.h <<_ACEOF | ||
5804 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5805 | _ACEOF | ||
5806 | |||
5807 | fi | ||
5808 | |||
5809 | done | ||
5810 | |||
5811 | |||
5812 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
5813 | |||
5814 | for ac_header in lastlog.h | ||
5815 | do | ||
5816 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5817 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5818 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5819 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5821 | else | ||
5822 | cat >conftest.$ac_ext <<_ACEOF | ||
5823 | /* confdefs.h. */ | ||
5824 | _ACEOF | ||
5825 | cat confdefs.h >>conftest.$ac_ext | ||
5826 | cat >>conftest.$ac_ext <<_ACEOF | ||
5827 | /* end confdefs.h. */ | ||
5828 | |||
5829 | #ifdef HAVE_SYS_TIME_H | ||
5830 | # include <sys/time.h> | ||
5831 | #endif | ||
5832 | |||
5833 | |||
5834 | #include <$ac_header> | ||
5835 | _ACEOF | ||
5836 | rm -f conftest.$ac_objext | ||
5837 | if { (ac_try="$ac_compile" | ||
5838 | case "(($ac_try" in | ||
5839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5840 | *) ac_try_echo=$ac_try;; | ||
5841 | esac | ||
5842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5843 | (eval "$ac_compile") 2>conftest.er1 | ||
5844 | ac_status=$? | ||
5845 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5846 | rm -f conftest.er1 | ||
5847 | cat conftest.err >&5 | ||
5848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5849 | (exit $ac_status); } && { | ||
5850 | test -z "$ac_c_werror_flag" || | ||
5851 | test ! -s conftest.err | ||
5852 | } && test -s conftest.$ac_objext; then | ||
5853 | eval "$as_ac_Header=yes" | ||
5854 | else | ||
5855 | echo "$as_me: failed program was:" >&5 | ||
5856 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5857 | |||
5858 | eval "$as_ac_Header=no" | ||
5859 | fi | ||
5860 | |||
5861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5862 | fi | ||
5863 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5864 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5865 | echo "${ECHO_T}$ac_res" >&6; } | ||
5866 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5867 | cat >>confdefs.h <<_ACEOF | ||
5868 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5869 | _ACEOF | ||
5870 | |||
5871 | fi | ||
5872 | |||
5873 | done | ||
5874 | |||
5875 | |||
5876 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
5877 | |||
5878 | for ac_header in sys/ptms.h | ||
5879 | do | ||
5880 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5881 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5882 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5883 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5885 | else | ||
5886 | cat >conftest.$ac_ext <<_ACEOF | ||
5887 | /* confdefs.h. */ | ||
5888 | _ACEOF | ||
5889 | cat confdefs.h >>conftest.$ac_ext | ||
5890 | cat >>conftest.$ac_ext <<_ACEOF | ||
5891 | /* end confdefs.h. */ | ||
5892 | |||
5893 | #ifdef HAVE_SYS_STREAM_H | ||
5894 | # include <sys/stream.h> | ||
5895 | #endif | ||
5896 | |||
5897 | |||
5898 | #include <$ac_header> | ||
5899 | _ACEOF | ||
5900 | rm -f conftest.$ac_objext | ||
5901 | if { (ac_try="$ac_compile" | ||
5902 | case "(($ac_try" in | ||
5903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5904 | *) ac_try_echo=$ac_try;; | ||
5905 | esac | ||
5906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5907 | (eval "$ac_compile") 2>conftest.er1 | ||
5908 | ac_status=$? | ||
5909 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5910 | rm -f conftest.er1 | ||
5911 | cat conftest.err >&5 | ||
5912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5913 | (exit $ac_status); } && { | ||
5914 | test -z "$ac_c_werror_flag" || | ||
5915 | test ! -s conftest.err | ||
5916 | } && test -s conftest.$ac_objext; then | ||
5917 | eval "$as_ac_Header=yes" | ||
5918 | else | ||
5919 | echo "$as_me: failed program was:" >&5 | ||
5920 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5921 | |||
5922 | eval "$as_ac_Header=no" | ||
5923 | fi | ||
5924 | |||
5925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5926 | fi | ||
5927 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5928 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5929 | echo "${ECHO_T}$ac_res" >&6; } | ||
5930 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5931 | cat >>confdefs.h <<_ACEOF | ||
5932 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5933 | _ACEOF | ||
5934 | |||
5935 | fi | ||
5936 | |||
5937 | done | ||
5938 | |||
5939 | |||
5940 | # login_cap.h requires sys/types.h on NetBSD | ||
5941 | |||
5942 | for ac_header in login_cap.h | ||
5943 | do | ||
5944 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5945 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5947 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5949 | else | ||
5950 | cat >conftest.$ac_ext <<_ACEOF | ||
5951 | /* confdefs.h. */ | ||
5952 | _ACEOF | ||
5953 | cat confdefs.h >>conftest.$ac_ext | ||
5954 | cat >>conftest.$ac_ext <<_ACEOF | ||
5955 | /* end confdefs.h. */ | ||
5956 | |||
5957 | #include <sys/types.h> | ||
5958 | |||
5959 | |||
5960 | #include <$ac_header> | ||
5961 | _ACEOF | ||
5962 | rm -f conftest.$ac_objext | ||
5963 | if { (ac_try="$ac_compile" | ||
5964 | case "(($ac_try" in | ||
5965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5966 | *) ac_try_echo=$ac_try;; | ||
5967 | esac | ||
5968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5969 | (eval "$ac_compile") 2>conftest.er1 | ||
5970 | ac_status=$? | ||
5971 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5972 | rm -f conftest.er1 | ||
5973 | cat conftest.err >&5 | ||
5974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5975 | (exit $ac_status); } && { | ||
5976 | test -z "$ac_c_werror_flag" || | ||
5977 | test ! -s conftest.err | ||
5978 | } && test -s conftest.$ac_objext; then | ||
5979 | eval "$as_ac_Header=yes" | ||
5980 | else | ||
5981 | echo "$as_me: failed program was:" >&5 | ||
5982 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5983 | |||
5984 | eval "$as_ac_Header=no" | ||
5985 | fi | ||
5986 | |||
5987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5988 | fi | ||
5989 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5990 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5991 | echo "${ECHO_T}$ac_res" >&6; } | ||
5992 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5993 | cat >>confdefs.h <<_ACEOF | ||
5994 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5995 | _ACEOF | ||
5996 | |||
5997 | fi | ||
5998 | |||
5999 | done | ||
6000 | |||
6001 | |||
6002 | # Messages for features tested for in target-specific section | ||
6003 | SIA_MSG="no" | ||
6004 | SPC_MSG="no" | ||
6005 | |||
6006 | # Check for some target-specific stuff | ||
6007 | case "$host" in | ||
6008 | *-*-aix*) | ||
6009 | # Some versions of VAC won't allow macro redefinitions at | ||
6010 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6011 | # particularly with older versions of vac or xlc. | ||
6012 | # It also throws errors about null macro argments, but these are | ||
6013 | # not fatal. | ||
6014 | { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 | ||
6015 | echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; } | ||
6016 | cat >conftest.$ac_ext <<_ACEOF | ||
6017 | /* confdefs.h. */ | ||
6018 | _ACEOF | ||
6019 | cat confdefs.h >>conftest.$ac_ext | ||
6020 | cat >>conftest.$ac_ext <<_ACEOF | ||
6021 | /* end confdefs.h. */ | ||
6022 | |||
6023 | #define testmacro foo | ||
6024 | #define testmacro bar | ||
6025 | int main(void) { exit(0); } | ||
6026 | |||
6027 | _ACEOF | ||
6028 | rm -f conftest.$ac_objext | ||
6029 | if { (ac_try="$ac_compile" | ||
6030 | case "(($ac_try" in | ||
6031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6032 | *) ac_try_echo=$ac_try;; | ||
6033 | esac | ||
6034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6035 | (eval "$ac_compile") 2>conftest.er1 | ||
6036 | ac_status=$? | ||
6037 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6038 | rm -f conftest.er1 | ||
6039 | cat conftest.err >&5 | ||
6040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6041 | (exit $ac_status); } && { | ||
6042 | test -z "$ac_c_werror_flag" || | ||
6043 | test ! -s conftest.err | ||
6044 | } && test -s conftest.$ac_objext; then | ||
6045 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6046 | echo "${ECHO_T}yes" >&6; } | ||
6047 | else | ||
6048 | echo "$as_me: failed program was:" >&5 | ||
6049 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6050 | |||
6051 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6052 | echo "${ECHO_T}no" >&6; } | ||
6053 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6054 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6055 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6056 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6057 | |||
6058 | |||
6059 | fi | ||
6060 | |||
6061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6062 | |||
6063 | { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
6064 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } | ||
6065 | if (test -z "$blibpath"); then | ||
6066 | blibpath="/usr/lib:/lib" | ||
6067 | fi | ||
6068 | saved_LDFLAGS="$LDFLAGS" | ||
6069 | if test "$GCC" = "yes"; then | ||
6070 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6071 | else | ||
6072 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6073 | fi | ||
6074 | for tryflags in $flags ;do | ||
6075 | if (test -z "$blibflags"); then | ||
6076 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
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 | int | ||
6085 | main () | ||
6086 | { | ||
6087 | |||
6088 | ; | ||
6089 | return 0; | ||
6090 | } | ||
6091 | _ACEOF | ||
6092 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6093 | if { (ac_try="$ac_link" | ||
6094 | case "(($ac_try" in | ||
6095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6096 | *) ac_try_echo=$ac_try;; | ||
6097 | esac | ||
6098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6099 | (eval "$ac_link") 2>conftest.er1 | ||
6100 | ac_status=$? | ||
6101 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6102 | rm -f conftest.er1 | ||
6103 | cat conftest.err >&5 | ||
6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6105 | (exit $ac_status); } && { | ||
6106 | test -z "$ac_c_werror_flag" || | ||
6107 | test ! -s conftest.err | ||
6108 | } && test -s conftest$ac_exeext && | ||
6109 | $as_test_x conftest$ac_exeext; then | ||
6110 | blibflags=$tryflags | ||
6111 | else | ||
6112 | echo "$as_me: failed program was:" >&5 | ||
6113 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6114 | |||
6115 | |||
6116 | fi | ||
6117 | |||
6118 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6119 | conftest$ac_exeext conftest.$ac_ext | ||
6120 | fi | ||
6121 | done | ||
6122 | if (test -z "$blibflags"); then | ||
6123 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
6124 | echo "${ECHO_T}not found" >&6; } | ||
6125 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
6126 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
6127 | { (exit 1); exit 1; }; } | ||
6128 | else | ||
6129 | { echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
6130 | echo "${ECHO_T}$blibflags" >&6; } | ||
6131 | fi | ||
6132 | LDFLAGS="$saved_LDFLAGS" | ||
6133 | { echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
6134 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; } | ||
6135 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
6136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6137 | else | ||
6138 | cat >conftest.$ac_ext <<_ACEOF | ||
6139 | /* confdefs.h. */ | ||
6140 | _ACEOF | ||
6141 | cat confdefs.h >>conftest.$ac_ext | ||
6142 | cat >>conftest.$ac_ext <<_ACEOF | ||
6143 | /* end confdefs.h. */ | ||
6144 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
6145 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6146 | #define authenticate innocuous_authenticate | ||
6147 | |||
6148 | /* System header to define __stub macros and hopefully few prototypes, | ||
6149 | which can conflict with char authenticate (); below. | ||
6150 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6151 | <limits.h> exists even on freestanding compilers. */ | ||
6152 | |||
6153 | #ifdef __STDC__ | ||
6154 | # include <limits.h> | ||
6155 | #else | ||
6156 | # include <assert.h> | ||
6157 | #endif | ||
6158 | |||
6159 | #undef authenticate | ||
6160 | |||
6161 | /* Override any GCC internal prototype to avoid an error. | ||
6162 | Use char because int might match the return type of a GCC | ||
6163 | builtin and then its argument prototype would still apply. */ | ||
6164 | #ifdef __cplusplus | ||
6165 | extern "C" | ||
6166 | #endif | ||
6167 | char authenticate (); | ||
6168 | /* The GNU C library defines this for functions which it implements | ||
6169 | to always fail with ENOSYS. Some functions are actually named | ||
6170 | something starting with __ and the normal name is an alias. */ | ||
6171 | #if defined __stub_authenticate || defined __stub___authenticate | ||
6172 | choke me | ||
6173 | #endif | ||
6174 | |||
6175 | int | ||
6176 | main () | ||
6177 | { | ||
6178 | return authenticate (); | ||
6179 | ; | ||
6180 | return 0; | ||
6181 | } | ||
6182 | _ACEOF | ||
6183 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6184 | if { (ac_try="$ac_link" | ||
6185 | case "(($ac_try" in | ||
6186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6187 | *) ac_try_echo=$ac_try;; | ||
6188 | esac | ||
6189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6190 | (eval "$ac_link") 2>conftest.er1 | ||
6191 | ac_status=$? | ||
6192 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6193 | rm -f conftest.er1 | ||
6194 | cat conftest.err >&5 | ||
6195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6196 | (exit $ac_status); } && { | ||
6197 | test -z "$ac_c_werror_flag" || | ||
6198 | test ! -s conftest.err | ||
6199 | } && test -s conftest$ac_exeext && | ||
6200 | $as_test_x conftest$ac_exeext; then | ||
6201 | ac_cv_func_authenticate=yes | ||
6202 | else | ||
6203 | echo "$as_me: failed program was:" >&5 | ||
6204 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6205 | |||
6206 | ac_cv_func_authenticate=no | ||
6207 | fi | ||
6208 | |||
6209 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6210 | conftest$ac_exeext conftest.$ac_ext | ||
6211 | fi | ||
6212 | { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
6213 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6; } | ||
6214 | if test $ac_cv_func_authenticate = yes; then | ||
6215 | |||
6216 | cat >>confdefs.h <<\_ACEOF | ||
6217 | #define WITH_AIXAUTHENTICATE 1 | ||
6218 | _ACEOF | ||
6219 | |||
6220 | else | ||
6221 | { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
6222 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; } | ||
6223 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
6224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6225 | else | ||
6226 | ac_check_lib_save_LIBS=$LIBS | ||
6227 | LIBS="-ls $LIBS" | ||
6228 | cat >conftest.$ac_ext <<_ACEOF | ||
6229 | /* confdefs.h. */ | ||
6230 | _ACEOF | ||
6231 | cat confdefs.h >>conftest.$ac_ext | ||
6232 | cat >>conftest.$ac_ext <<_ACEOF | ||
6233 | /* end confdefs.h. */ | ||
6234 | |||
6235 | /* Override any GCC internal prototype to avoid an error. | ||
6236 | Use char because int might match the return type of a GCC | ||
6237 | builtin and then its argument prototype would still apply. */ | ||
6238 | #ifdef __cplusplus | ||
6239 | extern "C" | ||
6240 | #endif | ||
6241 | char authenticate (); | ||
6242 | int | ||
6243 | main () | ||
6244 | { | ||
6245 | return authenticate (); | ||
6246 | ; | ||
6247 | return 0; | ||
6248 | } | ||
6249 | _ACEOF | ||
6250 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6251 | if { (ac_try="$ac_link" | ||
6252 | case "(($ac_try" in | ||
6253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6254 | *) ac_try_echo=$ac_try;; | ||
6255 | esac | ||
6256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6257 | (eval "$ac_link") 2>conftest.er1 | ||
6258 | ac_status=$? | ||
6259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6260 | rm -f conftest.er1 | ||
6261 | cat conftest.err >&5 | ||
6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6263 | (exit $ac_status); } && { | ||
6264 | test -z "$ac_c_werror_flag" || | ||
6265 | test ! -s conftest.err | ||
6266 | } && test -s conftest$ac_exeext && | ||
6267 | $as_test_x conftest$ac_exeext; then | ||
6268 | ac_cv_lib_s_authenticate=yes | ||
6269 | else | ||
6270 | echo "$as_me: failed program was:" >&5 | ||
6271 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6272 | |||
6273 | ac_cv_lib_s_authenticate=no | ||
6274 | fi | ||
6275 | |||
6276 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6277 | conftest$ac_exeext conftest.$ac_ext | ||
6278 | LIBS=$ac_check_lib_save_LIBS | ||
6279 | fi | ||
6280 | { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
6281 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; } | ||
6282 | if test $ac_cv_lib_s_authenticate = yes; then | ||
6283 | cat >>confdefs.h <<\_ACEOF | ||
6284 | #define WITH_AIXAUTHENTICATE 1 | ||
6285 | _ACEOF | ||
6286 | |||
6287 | LIBS="$LIBS -ls" | ||
6288 | |||
6289 | fi | ||
6290 | |||
6291 | |||
6292 | fi | ||
6293 | |||
6294 | { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
6295 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; } | ||
6296 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
6297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6298 | else | ||
6299 | cat >conftest.$ac_ext <<_ACEOF | ||
6300 | /* confdefs.h. */ | ||
6301 | _ACEOF | ||
6302 | cat confdefs.h >>conftest.$ac_ext | ||
6303 | cat >>conftest.$ac_ext <<_ACEOF | ||
6304 | /* end confdefs.h. */ | ||
6305 | #include <usersec.h> | ||
6306 | |||
6307 | int | ||
6308 | main () | ||
6309 | { | ||
6310 | #ifndef authenticate | ||
6311 | (void) authenticate; | ||
6312 | #endif | ||
6313 | |||
6314 | ; | ||
6315 | return 0; | ||
6316 | } | ||
6317 | _ACEOF | ||
6318 | rm -f conftest.$ac_objext | ||
6319 | if { (ac_try="$ac_compile" | ||
6320 | case "(($ac_try" in | ||
6321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6322 | *) ac_try_echo=$ac_try;; | ||
6323 | esac | ||
6324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6325 | (eval "$ac_compile") 2>conftest.er1 | ||
6326 | ac_status=$? | ||
6327 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6328 | rm -f conftest.er1 | ||
6329 | cat conftest.err >&5 | ||
6330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6331 | (exit $ac_status); } && { | ||
6332 | test -z "$ac_c_werror_flag" || | ||
6333 | test ! -s conftest.err | ||
6334 | } && test -s conftest.$ac_objext; then | ||
6335 | ac_cv_have_decl_authenticate=yes | ||
6336 | else | ||
6337 | echo "$as_me: failed program was:" >&5 | ||
6338 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6339 | |||
6340 | ac_cv_have_decl_authenticate=no | ||
6341 | fi | ||
6342 | |||
6343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6344 | fi | ||
6345 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
6346 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; } | ||
6347 | if test $ac_cv_have_decl_authenticate = yes; then | ||
6348 | |||
6349 | cat >>confdefs.h <<_ACEOF | ||
6350 | #define HAVE_DECL_AUTHENTICATE 1 | ||
6351 | _ACEOF | ||
6352 | |||
6353 | |||
6354 | else | ||
6355 | cat >>confdefs.h <<_ACEOF | ||
6356 | #define HAVE_DECL_AUTHENTICATE 0 | ||
6357 | _ACEOF | ||
6358 | |||
6359 | |||
6360 | fi | ||
6361 | { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
6362 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; } | ||
6363 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
6364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6365 | else | ||
6366 | cat >conftest.$ac_ext <<_ACEOF | ||
6367 | /* confdefs.h. */ | ||
6368 | _ACEOF | ||
6369 | cat confdefs.h >>conftest.$ac_ext | ||
6370 | cat >>conftest.$ac_ext <<_ACEOF | ||
6371 | /* end confdefs.h. */ | ||
6372 | #include <usersec.h> | ||
6373 | |||
6374 | int | ||
6375 | main () | ||
6376 | { | ||
6377 | #ifndef loginrestrictions | ||
6378 | (void) loginrestrictions; | ||
6379 | #endif | ||
6380 | |||
6381 | ; | ||
6382 | return 0; | ||
6383 | } | ||
6384 | _ACEOF | ||
6385 | rm -f conftest.$ac_objext | ||
6386 | if { (ac_try="$ac_compile" | ||
6387 | case "(($ac_try" in | ||
6388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6389 | *) ac_try_echo=$ac_try;; | ||
6390 | esac | ||
6391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6392 | (eval "$ac_compile") 2>conftest.er1 | ||
6393 | ac_status=$? | ||
6394 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6395 | rm -f conftest.er1 | ||
6396 | cat conftest.err >&5 | ||
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6398 | (exit $ac_status); } && { | ||
6399 | test -z "$ac_c_werror_flag" || | ||
6400 | test ! -s conftest.err | ||
6401 | } && test -s conftest.$ac_objext; then | ||
6402 | ac_cv_have_decl_loginrestrictions=yes | ||
6403 | else | ||
6404 | echo "$as_me: failed program was:" >&5 | ||
6405 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6406 | |||
6407 | ac_cv_have_decl_loginrestrictions=no | ||
6408 | fi | ||
6409 | |||
6410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6411 | fi | ||
6412 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
6413 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; } | ||
6414 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
6415 | |||
6416 | cat >>confdefs.h <<_ACEOF | ||
6417 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
6418 | _ACEOF | ||
6419 | |||
6420 | |||
6421 | else | ||
6422 | cat >>confdefs.h <<_ACEOF | ||
6423 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
6424 | _ACEOF | ||
6425 | |||
6426 | |||
6427 | fi | ||
6428 | { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
6429 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; } | ||
6430 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
6431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6432 | else | ||
6433 | cat >conftest.$ac_ext <<_ACEOF | ||
6434 | /* confdefs.h. */ | ||
6435 | _ACEOF | ||
6436 | cat confdefs.h >>conftest.$ac_ext | ||
6437 | cat >>conftest.$ac_ext <<_ACEOF | ||
6438 | /* end confdefs.h. */ | ||
6439 | #include <usersec.h> | ||
6440 | |||
6441 | int | ||
6442 | main () | ||
6443 | { | ||
6444 | #ifndef loginsuccess | ||
6445 | (void) loginsuccess; | ||
6446 | #endif | ||
6447 | |||
6448 | ; | ||
6449 | return 0; | ||
6450 | } | ||
6451 | _ACEOF | ||
6452 | rm -f conftest.$ac_objext | ||
6453 | if { (ac_try="$ac_compile" | ||
6454 | case "(($ac_try" in | ||
6455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6456 | *) ac_try_echo=$ac_try;; | ||
6457 | esac | ||
6458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6459 | (eval "$ac_compile") 2>conftest.er1 | ||
6460 | ac_status=$? | ||
6461 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6462 | rm -f conftest.er1 | ||
6463 | cat conftest.err >&5 | ||
6464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6465 | (exit $ac_status); } && { | ||
6466 | test -z "$ac_c_werror_flag" || | ||
6467 | test ! -s conftest.err | ||
6468 | } && test -s conftest.$ac_objext; then | ||
6469 | ac_cv_have_decl_loginsuccess=yes | ||
6470 | else | ||
6471 | echo "$as_me: failed program was:" >&5 | ||
6472 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6473 | |||
6474 | ac_cv_have_decl_loginsuccess=no | ||
6475 | fi | ||
6476 | |||
6477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6478 | fi | ||
6479 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
6480 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; } | ||
6481 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
6482 | |||
6483 | cat >>confdefs.h <<_ACEOF | ||
6484 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
6485 | _ACEOF | ||
6486 | |||
6487 | |||
6488 | else | ||
6489 | cat >>confdefs.h <<_ACEOF | ||
6490 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
6491 | _ACEOF | ||
6492 | |||
6493 | |||
6494 | fi | ||
6495 | { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
6496 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; } | ||
6497 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
6498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6499 | else | ||
6500 | cat >conftest.$ac_ext <<_ACEOF | ||
6501 | /* confdefs.h. */ | ||
6502 | _ACEOF | ||
6503 | cat confdefs.h >>conftest.$ac_ext | ||
6504 | cat >>conftest.$ac_ext <<_ACEOF | ||
6505 | /* end confdefs.h. */ | ||
6506 | #include <usersec.h> | ||
6507 | |||
6508 | int | ||
6509 | main () | ||
6510 | { | ||
6511 | #ifndef passwdexpired | ||
6512 | (void) passwdexpired; | ||
6513 | #endif | ||
6514 | |||
6515 | ; | ||
6516 | return 0; | ||
6517 | } | ||
6518 | _ACEOF | ||
6519 | rm -f conftest.$ac_objext | ||
6520 | if { (ac_try="$ac_compile" | ||
6521 | case "(($ac_try" in | ||
6522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6523 | *) ac_try_echo=$ac_try;; | ||
6524 | esac | ||
6525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6526 | (eval "$ac_compile") 2>conftest.er1 | ||
6527 | ac_status=$? | ||
6528 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6529 | rm -f conftest.er1 | ||
6530 | cat conftest.err >&5 | ||
6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6532 | (exit $ac_status); } && { | ||
6533 | test -z "$ac_c_werror_flag" || | ||
6534 | test ! -s conftest.err | ||
6535 | } && test -s conftest.$ac_objext; then | ||
6536 | ac_cv_have_decl_passwdexpired=yes | ||
6537 | else | ||
6538 | echo "$as_me: failed program was:" >&5 | ||
6539 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6540 | |||
6541 | ac_cv_have_decl_passwdexpired=no | ||
6542 | fi | ||
6543 | |||
6544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6545 | fi | ||
6546 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
6547 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; } | ||
6548 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
6549 | |||
6550 | cat >>confdefs.h <<_ACEOF | ||
6551 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
6552 | _ACEOF | ||
6553 | |||
6554 | |||
6555 | else | ||
6556 | cat >>confdefs.h <<_ACEOF | ||
6557 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
6558 | _ACEOF | ||
6559 | |||
6560 | |||
6561 | fi | ||
6562 | { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
6563 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; } | ||
6564 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
6565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6566 | else | ||
6567 | cat >conftest.$ac_ext <<_ACEOF | ||
6568 | /* confdefs.h. */ | ||
6569 | _ACEOF | ||
6570 | cat confdefs.h >>conftest.$ac_ext | ||
6571 | cat >>conftest.$ac_ext <<_ACEOF | ||
6572 | /* end confdefs.h. */ | ||
6573 | #include <usersec.h> | ||
6574 | |||
6575 | int | ||
6576 | main () | ||
6577 | { | ||
6578 | #ifndef setauthdb | ||
6579 | (void) setauthdb; | ||
6580 | #endif | ||
6581 | |||
6582 | ; | ||
6583 | return 0; | ||
6584 | } | ||
6585 | _ACEOF | ||
6586 | rm -f conftest.$ac_objext | ||
6587 | if { (ac_try="$ac_compile" | ||
6588 | case "(($ac_try" in | ||
6589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6590 | *) ac_try_echo=$ac_try;; | ||
6591 | esac | ||
6592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6593 | (eval "$ac_compile") 2>conftest.er1 | ||
6594 | ac_status=$? | ||
6595 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6596 | rm -f conftest.er1 | ||
6597 | cat conftest.err >&5 | ||
6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6599 | (exit $ac_status); } && { | ||
6600 | test -z "$ac_c_werror_flag" || | ||
6601 | test ! -s conftest.err | ||
6602 | } && test -s conftest.$ac_objext; then | ||
6603 | ac_cv_have_decl_setauthdb=yes | ||
6604 | else | ||
6605 | echo "$as_me: failed program was:" >&5 | ||
6606 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6607 | |||
6608 | ac_cv_have_decl_setauthdb=no | ||
6609 | fi | ||
6610 | |||
6611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6612 | fi | ||
6613 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
6614 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; } | ||
6615 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
6616 | |||
6617 | cat >>confdefs.h <<_ACEOF | ||
6618 | #define HAVE_DECL_SETAUTHDB 1 | ||
6619 | _ACEOF | ||
6620 | |||
6621 | |||
6622 | else | ||
6623 | cat >>confdefs.h <<_ACEOF | ||
6624 | #define HAVE_DECL_SETAUTHDB 0 | ||
6625 | _ACEOF | ||
6626 | |||
6627 | |||
6628 | fi | ||
6629 | |||
6630 | |||
6631 | { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
6632 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; } | ||
6633 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
6634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6635 | else | ||
6636 | cat >conftest.$ac_ext <<_ACEOF | ||
6637 | /* confdefs.h. */ | ||
6638 | _ACEOF | ||
6639 | cat confdefs.h >>conftest.$ac_ext | ||
6640 | cat >>conftest.$ac_ext <<_ACEOF | ||
6641 | /* end confdefs.h. */ | ||
6642 | #include <usersec.h> | ||
6643 | |||
6644 | |||
6645 | int | ||
6646 | main () | ||
6647 | { | ||
6648 | #ifndef loginfailed | ||
6649 | (void) loginfailed; | ||
6650 | #endif | ||
6651 | |||
6652 | ; | ||
6653 | return 0; | ||
6654 | } | ||
6655 | _ACEOF | ||
6656 | rm -f conftest.$ac_objext | ||
6657 | if { (ac_try="$ac_compile" | ||
6658 | case "(($ac_try" in | ||
6659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6660 | *) ac_try_echo=$ac_try;; | ||
6661 | esac | ||
6662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6663 | (eval "$ac_compile") 2>conftest.er1 | ||
6664 | ac_status=$? | ||
6665 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6666 | rm -f conftest.er1 | ||
6667 | cat conftest.err >&5 | ||
6668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6669 | (exit $ac_status); } && { | ||
6670 | test -z "$ac_c_werror_flag" || | ||
6671 | test ! -s conftest.err | ||
6672 | } && test -s conftest.$ac_objext; then | ||
6673 | ac_cv_have_decl_loginfailed=yes | ||
6674 | else | ||
6675 | echo "$as_me: failed program was:" >&5 | ||
6676 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6677 | |||
6678 | ac_cv_have_decl_loginfailed=no | ||
6679 | fi | ||
6680 | |||
6681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6682 | fi | ||
6683 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
6684 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; } | ||
6685 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
6686 | |||
6687 | cat >>confdefs.h <<_ACEOF | ||
6688 | #define HAVE_DECL_LOGINFAILED 1 | ||
6689 | _ACEOF | ||
6690 | |||
6691 | { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
6692 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; } | ||
6693 | cat >conftest.$ac_ext <<_ACEOF | ||
6694 | /* confdefs.h. */ | ||
6695 | _ACEOF | ||
6696 | cat confdefs.h >>conftest.$ac_ext | ||
6697 | cat >>conftest.$ac_ext <<_ACEOF | ||
6698 | /* end confdefs.h. */ | ||
6699 | #include <usersec.h> | ||
6700 | int | ||
6701 | main () | ||
6702 | { | ||
6703 | (void)loginfailed("user","host","tty",0); | ||
6704 | ; | ||
6705 | return 0; | ||
6706 | } | ||
6707 | _ACEOF | ||
6708 | rm -f conftest.$ac_objext | ||
6709 | if { (ac_try="$ac_compile" | ||
6710 | case "(($ac_try" in | ||
6711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6712 | *) ac_try_echo=$ac_try;; | ||
6713 | esac | ||
6714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6715 | (eval "$ac_compile") 2>conftest.er1 | ||
6716 | ac_status=$? | ||
6717 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6718 | rm -f conftest.er1 | ||
6719 | cat conftest.err >&5 | ||
6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6721 | (exit $ac_status); } && { | ||
6722 | test -z "$ac_c_werror_flag" || | ||
6723 | test ! -s conftest.err | ||
6724 | } && test -s conftest.$ac_objext; then | ||
6725 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6726 | echo "${ECHO_T}yes" >&6; } | ||
6727 | |||
6728 | cat >>confdefs.h <<\_ACEOF | ||
6729 | #define AIX_LOGINFAILED_4ARG 1 | ||
6730 | _ACEOF | ||
6731 | |||
6732 | else | ||
6733 | echo "$as_me: failed program was:" >&5 | ||
6734 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6735 | |||
6736 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6737 | echo "${ECHO_T}no" >&6; } | ||
6738 | |||
6739 | fi | ||
6740 | |||
6741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6742 | else | ||
6743 | cat >>confdefs.h <<_ACEOF | ||
6744 | #define HAVE_DECL_LOGINFAILED 0 | ||
6745 | _ACEOF | ||
6746 | |||
6747 | |||
6748 | fi | ||
6749 | |||
6750 | |||
6751 | |||
6752 | for ac_func in setauthdb | ||
6753 | do | ||
6754 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6755 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6756 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
6757 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6759 | else | ||
6760 | cat >conftest.$ac_ext <<_ACEOF | ||
6761 | /* confdefs.h. */ | ||
6762 | _ACEOF | ||
6763 | cat confdefs.h >>conftest.$ac_ext | ||
6764 | cat >>conftest.$ac_ext <<_ACEOF | ||
6765 | /* end confdefs.h. */ | ||
6766 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
6767 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6768 | #define $ac_func innocuous_$ac_func | ||
6769 | |||
6770 | /* System header to define __stub macros and hopefully few prototypes, | ||
6771 | which can conflict with char $ac_func (); below. | ||
6772 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6773 | <limits.h> exists even on freestanding compilers. */ | ||
6774 | |||
6775 | #ifdef __STDC__ | ||
6776 | # include <limits.h> | ||
6777 | #else | ||
6778 | # include <assert.h> | ||
6779 | #endif | ||
6780 | |||
6781 | #undef $ac_func | ||
6782 | |||
6783 | /* Override any GCC internal prototype to avoid an error. | ||
6784 | Use char because int might match the return type of a GCC | ||
6785 | builtin and then its argument prototype would still apply. */ | ||
6786 | #ifdef __cplusplus | ||
6787 | extern "C" | ||
6788 | #endif | ||
6789 | char $ac_func (); | ||
6790 | /* The GNU C library defines this for functions which it implements | ||
6791 | to always fail with ENOSYS. Some functions are actually named | ||
6792 | something starting with __ and the normal name is an alias. */ | ||
6793 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
6794 | choke me | ||
6795 | #endif | ||
6796 | |||
6797 | int | ||
6798 | main () | ||
6799 | { | ||
6800 | return $ac_func (); | ||
6801 | ; | ||
6802 | return 0; | ||
6803 | } | ||
6804 | _ACEOF | ||
6805 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6806 | if { (ac_try="$ac_link" | ||
6807 | case "(($ac_try" in | ||
6808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6809 | *) ac_try_echo=$ac_try;; | ||
6810 | esac | ||
6811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6812 | (eval "$ac_link") 2>conftest.er1 | ||
6813 | ac_status=$? | ||
6814 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6815 | rm -f conftest.er1 | ||
6816 | cat conftest.err >&5 | ||
6817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6818 | (exit $ac_status); } && { | ||
6819 | test -z "$ac_c_werror_flag" || | ||
6820 | test ! -s conftest.err | ||
6821 | } && test -s conftest$ac_exeext && | ||
6822 | $as_test_x conftest$ac_exeext; then | ||
6823 | eval "$as_ac_var=yes" | ||
6824 | else | ||
6825 | echo "$as_me: failed program was:" >&5 | ||
6826 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6827 | |||
6828 | eval "$as_ac_var=no" | ||
6829 | fi | ||
6830 | |||
6831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6832 | conftest$ac_exeext conftest.$ac_ext | ||
6833 | fi | ||
6834 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
6835 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6836 | echo "${ECHO_T}$ac_res" >&6; } | ||
6837 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6838 | cat >>confdefs.h <<_ACEOF | ||
6839 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6840 | _ACEOF | ||
6841 | |||
6842 | fi | ||
6843 | done | ||
6844 | |||
6845 | { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 | ||
6846 | echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; } | ||
6847 | if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then | ||
6848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6849 | else | ||
6850 | cat >conftest.$ac_ext <<_ACEOF | ||
6851 | /* confdefs.h. */ | ||
6852 | _ACEOF | ||
6853 | cat confdefs.h >>conftest.$ac_ext | ||
6854 | cat >>conftest.$ac_ext <<_ACEOF | ||
6855 | /* end confdefs.h. */ | ||
6856 | #include <limits.h> | ||
6857 | #include <fcntl.h> | ||
6858 | |||
6859 | |||
6860 | int | ||
6861 | main () | ||
6862 | { | ||
6863 | #ifndef F_CLOSEM | ||
6864 | (void) F_CLOSEM; | ||
6865 | #endif | ||
6866 | |||
6867 | ; | ||
6868 | return 0; | ||
6869 | } | ||
6870 | _ACEOF | ||
6871 | rm -f conftest.$ac_objext | ||
6872 | if { (ac_try="$ac_compile" | ||
6873 | case "(($ac_try" in | ||
6874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6875 | *) ac_try_echo=$ac_try;; | ||
6876 | esac | ||
6877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6878 | (eval "$ac_compile") 2>conftest.er1 | ||
6879 | ac_status=$? | ||
6880 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6881 | rm -f conftest.er1 | ||
6882 | cat conftest.err >&5 | ||
6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6884 | (exit $ac_status); } && { | ||
6885 | test -z "$ac_c_werror_flag" || | ||
6886 | test ! -s conftest.err | ||
6887 | } && test -s conftest.$ac_objext; then | ||
6888 | ac_cv_have_decl_F_CLOSEM=yes | ||
6889 | else | ||
6890 | echo "$as_me: failed program was:" >&5 | ||
6891 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6892 | |||
6893 | ac_cv_have_decl_F_CLOSEM=no | ||
6894 | fi | ||
6895 | |||
6896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6897 | fi | ||
6898 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 | ||
6899 | echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; } | ||
6900 | if test $ac_cv_have_decl_F_CLOSEM = yes; then | ||
6901 | |||
6902 | cat >>confdefs.h <<\_ACEOF | ||
6903 | #define HAVE_FCNTL_CLOSEM 1 | ||
6904 | _ACEOF | ||
6905 | |||
6906 | fi | ||
6907 | |||
6908 | check_for_aix_broken_getaddrinfo=1 | ||
6909 | |||
6910 | cat >>confdefs.h <<\_ACEOF | ||
6911 | #define BROKEN_REALPATH 1 | ||
6912 | _ACEOF | ||
6913 | |||
6914 | |||
6915 | cat >>confdefs.h <<\_ACEOF | ||
6916 | #define SETEUID_BREAKS_SETUID 1 | ||
6917 | _ACEOF | ||
6918 | |||
6919 | |||
6920 | cat >>confdefs.h <<\_ACEOF | ||
6921 | #define BROKEN_SETREUID 1 | ||
6922 | _ACEOF | ||
6923 | |||
6924 | |||
6925 | cat >>confdefs.h <<\_ACEOF | ||
6926 | #define BROKEN_SETREGID 1 | ||
6927 | _ACEOF | ||
6928 | |||
6929 | |||
6930 | cat >>confdefs.h <<\_ACEOF | ||
6931 | #define DISABLE_LASTLOG 1 | ||
6932 | _ACEOF | ||
6933 | |||
6934 | |||
6935 | cat >>confdefs.h <<\_ACEOF | ||
6936 | #define LOGIN_NEEDS_UTMPX 1 | ||
6937 | _ACEOF | ||
6938 | |||
6939 | |||
6940 | cat >>confdefs.h <<\_ACEOF | ||
6941 | #define SPT_TYPE SPT_REUSEARGV | ||
6942 | _ACEOF | ||
6943 | |||
6944 | |||
6945 | cat >>confdefs.h <<\_ACEOF | ||
6946 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
6947 | _ACEOF | ||
6948 | |||
6949 | |||
6950 | cat >>confdefs.h <<\_ACEOF | ||
6951 | #define PTY_ZEROREAD 1 | ||
6952 | _ACEOF | ||
6953 | |||
6954 | ;; | ||
6955 | *-*-cygwin*) | ||
6956 | check_for_libcrypt_later=1 | ||
6957 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
6958 | |||
6959 | cat >>confdefs.h <<\_ACEOF | ||
6960 | #define HAVE_CYGWIN 1 | ||
6961 | _ACEOF | ||
6962 | |||
6963 | |||
6964 | cat >>confdefs.h <<\_ACEOF | ||
6965 | #define USE_PIPES 1 | ||
6966 | _ACEOF | ||
6967 | |||
6968 | |||
6969 | cat >>confdefs.h <<\_ACEOF | ||
6970 | #define DISABLE_SHADOW 1 | ||
6971 | _ACEOF | ||
6972 | |||
6973 | |||
6974 | cat >>confdefs.h <<\_ACEOF | ||
6975 | #define IP_TOS_IS_BROKEN 1 | ||
6976 | _ACEOF | ||
6977 | |||
6978 | |||
6979 | cat >>confdefs.h <<\_ACEOF | ||
6980 | #define NO_X11_UNIX_SOCKETS 1 | ||
6981 | _ACEOF | ||
6982 | |||
6983 | |||
6984 | cat >>confdefs.h <<\_ACEOF | ||
6985 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
6986 | _ACEOF | ||
6987 | |||
6988 | |||
6989 | cat >>confdefs.h <<\_ACEOF | ||
6990 | #define DISABLE_FD_PASSING 1 | ||
6991 | _ACEOF | ||
6992 | |||
6993 | ;; | ||
6994 | *-*-dgux*) | ||
6995 | cat >>confdefs.h <<\_ACEOF | ||
6996 | #define IP_TOS_IS_BROKEN 1 | ||
6997 | _ACEOF | ||
6998 | |||
6999 | cat >>confdefs.h <<\_ACEOF | ||
7000 | #define SETEUID_BREAKS_SETUID 1 | ||
7001 | _ACEOF | ||
7002 | |||
7003 | cat >>confdefs.h <<\_ACEOF | ||
7004 | #define BROKEN_SETREUID 1 | ||
7005 | _ACEOF | ||
7006 | |||
7007 | cat >>confdefs.h <<\_ACEOF | ||
7008 | #define BROKEN_SETREGID 1 | ||
7009 | _ACEOF | ||
7010 | |||
7011 | ;; | ||
7012 | *-*-darwin*) | ||
7013 | { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
7014 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; } | ||
7015 | if test "$cross_compiling" = yes; then | ||
7016 | { echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
7017 | echo "${ECHO_T}assume it is working" >&6; } | ||
7018 | else | ||
7019 | cat >conftest.$ac_ext <<_ACEOF | ||
7020 | /* confdefs.h. */ | ||
7021 | _ACEOF | ||
7022 | cat confdefs.h >>conftest.$ac_ext | ||
7023 | cat >>conftest.$ac_ext <<_ACEOF | ||
7024 | /* end confdefs.h. */ | ||
7025 | #include <mach-o/dyld.h> | ||
7026 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7027 | exit(0); | ||
7028 | else | ||
7029 | exit(1); | ||
7030 | } | ||
7031 | _ACEOF | ||
7032 | rm -f conftest$ac_exeext | ||
7033 | if { (ac_try="$ac_link" | ||
7034 | case "(($ac_try" in | ||
7035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7036 | *) ac_try_echo=$ac_try;; | ||
7037 | esac | ||
7038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7039 | (eval "$ac_link") 2>&5 | ||
7040 | ac_status=$? | ||
7041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7042 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7043 | { (case "(($ac_try" in | ||
7044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7045 | *) ac_try_echo=$ac_try;; | ||
7046 | esac | ||
7047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7048 | (eval "$ac_try") 2>&5 | ||
7049 | ac_status=$? | ||
7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7051 | (exit $ac_status); }; }; then | ||
7052 | { echo "$as_me:$LINENO: result: working" >&5 | ||
7053 | echo "${ECHO_T}working" >&6; } | ||
7054 | else | ||
7055 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7056 | echo "$as_me: failed program was:" >&5 | ||
7057 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7058 | |||
7059 | ( exit $ac_status ) | ||
7060 | { echo "$as_me:$LINENO: result: buggy" >&5 | ||
7061 | echo "${ECHO_T}buggy" >&6; } | ||
7062 | |||
7063 | cat >>confdefs.h <<\_ACEOF | ||
7064 | #define BROKEN_GETADDRINFO 1 | ||
7065 | _ACEOF | ||
7066 | |||
7067 | fi | ||
7068 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7069 | fi | ||
7070 | |||
7071 | |||
7072 | cat >>confdefs.h <<\_ACEOF | ||
7073 | #define SETEUID_BREAKS_SETUID 1 | ||
7074 | _ACEOF | ||
7075 | |||
7076 | cat >>confdefs.h <<\_ACEOF | ||
7077 | #define BROKEN_SETREUID 1 | ||
7078 | _ACEOF | ||
7079 | |||
7080 | cat >>confdefs.h <<\_ACEOF | ||
7081 | #define BROKEN_SETREGID 1 | ||
7082 | _ACEOF | ||
7083 | |||
7084 | |||
7085 | cat >>confdefs.h <<_ACEOF | ||
7086 | #define BIND_8_COMPAT 1 | ||
7087 | _ACEOF | ||
7088 | |||
7089 | |||
7090 | cat >>confdefs.h <<\_ACEOF | ||
7091 | #define SSH_TUN_FREEBSD 1 | ||
7092 | _ACEOF | ||
7093 | |||
7094 | |||
7095 | cat >>confdefs.h <<\_ACEOF | ||
7096 | #define SSH_TUN_COMPAT_AF 1 | ||
7097 | _ACEOF | ||
7098 | |||
7099 | |||
7100 | cat >>confdefs.h <<\_ACEOF | ||
7101 | #define SSH_TUN_PREPEND_AF 1 | ||
7102 | _ACEOF | ||
7103 | |||
7104 | ;; | ||
7105 | *-*-dragonfly*) | ||
7106 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7107 | ;; | ||
7108 | *-*-hpux*) | ||
7109 | # first we define all of the options common to all HP-UX releases | ||
7110 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7111 | IPADDR_IN_DISPLAY=yes | ||
7112 | cat >>confdefs.h <<\_ACEOF | ||
7113 | #define USE_PIPES 1 | ||
7114 | _ACEOF | ||
7115 | |||
7116 | |||
7117 | cat >>confdefs.h <<\_ACEOF | ||
7118 | #define LOGIN_NO_ENDOPT 1 | ||
7119 | _ACEOF | ||
7120 | |||
7121 | cat >>confdefs.h <<\_ACEOF | ||
7122 | #define LOGIN_NEEDS_UTMPX 1 | ||
7123 | _ACEOF | ||
7124 | |||
7125 | |||
7126 | cat >>confdefs.h <<\_ACEOF | ||
7127 | #define LOCKED_PASSWD_STRING "*" | ||
7128 | _ACEOF | ||
7129 | |||
7130 | cat >>confdefs.h <<\_ACEOF | ||
7131 | #define SPT_TYPE SPT_PSTAT | ||
7132 | _ACEOF | ||
7133 | |||
7134 | MAIL="/var/mail/username" | ||
7135 | LIBS="$LIBS -lsec" | ||
7136 | |||
7137 | { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
7138 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; } | ||
7139 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
7140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7141 | else | ||
7142 | ac_check_lib_save_LIBS=$LIBS | ||
7143 | LIBS="-lxnet $LIBS" | ||
7144 | cat >conftest.$ac_ext <<_ACEOF | ||
7145 | /* confdefs.h. */ | ||
7146 | _ACEOF | ||
7147 | cat confdefs.h >>conftest.$ac_ext | ||
7148 | cat >>conftest.$ac_ext <<_ACEOF | ||
7149 | /* end confdefs.h. */ | ||
7150 | |||
7151 | /* Override any GCC internal prototype to avoid an error. | ||
7152 | Use char because int might match the return type of a GCC | ||
7153 | builtin and then its argument prototype would still apply. */ | ||
7154 | #ifdef __cplusplus | ||
7155 | extern "C" | ||
7156 | #endif | ||
7157 | char t_error (); | ||
7158 | int | ||
7159 | main () | ||
7160 | { | ||
7161 | return t_error (); | ||
7162 | ; | ||
7163 | return 0; | ||
7164 | } | ||
7165 | _ACEOF | ||
7166 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7167 | if { (ac_try="$ac_link" | ||
7168 | case "(($ac_try" in | ||
7169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7170 | *) ac_try_echo=$ac_try;; | ||
7171 | esac | ||
7172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7173 | (eval "$ac_link") 2>conftest.er1 | ||
7174 | ac_status=$? | ||
7175 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7176 | rm -f conftest.er1 | ||
7177 | cat conftest.err >&5 | ||
7178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7179 | (exit $ac_status); } && { | ||
7180 | test -z "$ac_c_werror_flag" || | ||
7181 | test ! -s conftest.err | ||
7182 | } && test -s conftest$ac_exeext && | ||
7183 | $as_test_x conftest$ac_exeext; then | ||
7184 | ac_cv_lib_xnet_t_error=yes | ||
7185 | else | ||
7186 | echo "$as_me: failed program was:" >&5 | ||
7187 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7188 | |||
7189 | ac_cv_lib_xnet_t_error=no | ||
7190 | fi | ||
7191 | |||
7192 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7193 | conftest$ac_exeext conftest.$ac_ext | ||
7194 | LIBS=$ac_check_lib_save_LIBS | ||
7195 | fi | ||
7196 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
7197 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; } | ||
7198 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
7199 | cat >>confdefs.h <<_ACEOF | ||
7200 | #define HAVE_LIBXNET 1 | ||
7201 | _ACEOF | ||
7202 | |||
7203 | LIBS="-lxnet $LIBS" | ||
7204 | |||
7205 | else | ||
7206 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
7207 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
7208 | { (exit 1); exit 1; }; } | ||
7209 | fi | ||
7210 | |||
7211 | |||
7212 | # next, we define all of the options specific to major releases | ||
7213 | case "$host" in | ||
7214 | *-*-hpux10*) | ||
7215 | if test -z "$GCC"; then | ||
7216 | CFLAGS="$CFLAGS -Ae" | ||
7217 | fi | ||
7218 | ;; | ||
7219 | *-*-hpux11*) | ||
7220 | |||
7221 | cat >>confdefs.h <<\_ACEOF | ||
7222 | #define PAM_SUN_CODEBASE 1 | ||
7223 | _ACEOF | ||
7224 | |||
7225 | |||
7226 | cat >>confdefs.h <<\_ACEOF | ||
7227 | #define DISABLE_UTMP 1 | ||
7228 | _ACEOF | ||
7229 | |||
7230 | |||
7231 | cat >>confdefs.h <<\_ACEOF | ||
7232 | #define USE_BTMP 1 | ||
7233 | _ACEOF | ||
7234 | |||
7235 | check_for_hpux_broken_getaddrinfo=1 | ||
7236 | check_for_conflicting_getspnam=1 | ||
7237 | ;; | ||
7238 | esac | ||
7239 | |||
7240 | # lastly, we define options specific to minor releases | ||
7241 | case "$host" in | ||
7242 | *-*-hpux10.26) | ||
7243 | |||
7244 | cat >>confdefs.h <<\_ACEOF | ||
7245 | #define HAVE_SECUREWARE 1 | ||
7246 | _ACEOF | ||
7247 | |||
7248 | disable_ptmx_check=yes | ||
7249 | LIBS="$LIBS -lsecpw" | ||
7250 | ;; | ||
7251 | esac | ||
7252 | ;; | ||
7253 | *-*-irix5*) | ||
7254 | PATH="$PATH:/usr/etc" | ||
7255 | |||
7256 | cat >>confdefs.h <<\_ACEOF | ||
7257 | #define BROKEN_INET_NTOA 1 | ||
7258 | _ACEOF | ||
7259 | |||
7260 | cat >>confdefs.h <<\_ACEOF | ||
7261 | #define SETEUID_BREAKS_SETUID 1 | ||
7262 | _ACEOF | ||
7263 | |||
7264 | cat >>confdefs.h <<\_ACEOF | ||
7265 | #define BROKEN_SETREUID 1 | ||
7266 | _ACEOF | ||
7267 | |||
7268 | cat >>confdefs.h <<\_ACEOF | ||
7269 | #define BROKEN_SETREGID 1 | ||
7270 | _ACEOF | ||
7271 | |||
7272 | |||
7273 | cat >>confdefs.h <<\_ACEOF | ||
7274 | #define WITH_ABBREV_NO_TTY 1 | ||
7275 | _ACEOF | ||
7276 | |||
7277 | cat >>confdefs.h <<\_ACEOF | ||
7278 | #define LOCKED_PASSWD_STRING "*LK*" | ||
7279 | _ACEOF | ||
7280 | |||
7281 | ;; | ||
7282 | *-*-irix6*) | ||
7283 | PATH="$PATH:/usr/etc" | ||
7284 | |||
7285 | cat >>confdefs.h <<\_ACEOF | ||
7286 | #define WITH_IRIX_ARRAY 1 | ||
7287 | _ACEOF | ||
7288 | |||
7289 | |||
7290 | cat >>confdefs.h <<\_ACEOF | ||
7291 | #define WITH_IRIX_PROJECT 1 | ||
7292 | _ACEOF | ||
7293 | |||
7294 | |||
7295 | cat >>confdefs.h <<\_ACEOF | ||
7296 | #define WITH_IRIX_AUDIT 1 | ||
7297 | _ACEOF | ||
7298 | |||
7299 | { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
7300 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; } | ||
7301 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
7302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7303 | else | ||
7304 | cat >conftest.$ac_ext <<_ACEOF | ||
7305 | /* confdefs.h. */ | ||
7306 | _ACEOF | ||
7307 | cat confdefs.h >>conftest.$ac_ext | ||
7308 | cat >>conftest.$ac_ext <<_ACEOF | ||
7309 | /* end confdefs.h. */ | ||
7310 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
7311 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7312 | #define jlimit_startjob innocuous_jlimit_startjob | ||
7313 | |||
7314 | /* System header to define __stub macros and hopefully few prototypes, | ||
7315 | which can conflict with char jlimit_startjob (); below. | ||
7316 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7317 | <limits.h> exists even on freestanding compilers. */ | ||
7318 | |||
7319 | #ifdef __STDC__ | ||
7320 | # include <limits.h> | ||
7321 | #else | ||
7322 | # include <assert.h> | ||
7323 | #endif | ||
7324 | |||
7325 | #undef jlimit_startjob | ||
7326 | |||
7327 | /* Override any GCC internal prototype to avoid an error. | ||
7328 | Use char because int might match the return type of a GCC | ||
7329 | builtin and then its argument prototype would still apply. */ | ||
7330 | #ifdef __cplusplus | ||
7331 | extern "C" | ||
7332 | #endif | ||
7333 | char jlimit_startjob (); | ||
7334 | /* The GNU C library defines this for functions which it implements | ||
7335 | to always fail with ENOSYS. Some functions are actually named | ||
7336 | something starting with __ and the normal name is an alias. */ | ||
7337 | #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob | ||
7338 | choke me | ||
7339 | #endif | ||
7340 | |||
7341 | int | ||
7342 | main () | ||
7343 | { | ||
7344 | return jlimit_startjob (); | ||
7345 | ; | ||
7346 | return 0; | ||
7347 | } | ||
7348 | _ACEOF | ||
7349 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7350 | if { (ac_try="$ac_link" | ||
7351 | case "(($ac_try" in | ||
7352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7353 | *) ac_try_echo=$ac_try;; | ||
7354 | esac | ||
7355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7356 | (eval "$ac_link") 2>conftest.er1 | ||
7357 | ac_status=$? | ||
7358 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7359 | rm -f conftest.er1 | ||
7360 | cat conftest.err >&5 | ||
7361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7362 | (exit $ac_status); } && { | ||
7363 | test -z "$ac_c_werror_flag" || | ||
7364 | test ! -s conftest.err | ||
7365 | } && test -s conftest$ac_exeext && | ||
7366 | $as_test_x conftest$ac_exeext; then | ||
7367 | ac_cv_func_jlimit_startjob=yes | ||
7368 | else | ||
7369 | echo "$as_me: failed program was:" >&5 | ||
7370 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7371 | |||
7372 | ac_cv_func_jlimit_startjob=no | ||
7373 | fi | ||
7374 | |||
7375 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7376 | conftest$ac_exeext conftest.$ac_ext | ||
7377 | fi | ||
7378 | { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
7379 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; } | ||
7380 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
7381 | |||
7382 | cat >>confdefs.h <<\_ACEOF | ||
7383 | #define WITH_IRIX_JOBS 1 | ||
7384 | _ACEOF | ||
7385 | |||
7386 | fi | ||
7387 | |||
7388 | cat >>confdefs.h <<\_ACEOF | ||
7389 | #define BROKEN_INET_NTOA 1 | ||
7390 | _ACEOF | ||
7391 | |||
7392 | cat >>confdefs.h <<\_ACEOF | ||
7393 | #define SETEUID_BREAKS_SETUID 1 | ||
7394 | _ACEOF | ||
7395 | |||
7396 | cat >>confdefs.h <<\_ACEOF | ||
7397 | #define BROKEN_SETREUID 1 | ||
7398 | _ACEOF | ||
7399 | |||
7400 | cat >>confdefs.h <<\_ACEOF | ||
7401 | #define BROKEN_SETREGID 1 | ||
7402 | _ACEOF | ||
7403 | |||
7404 | |||
7405 | cat >>confdefs.h <<\_ACEOF | ||
7406 | #define BROKEN_UPDWTMPX 1 | ||
7407 | _ACEOF | ||
7408 | |||
7409 | cat >>confdefs.h <<\_ACEOF | ||
7410 | #define WITH_ABBREV_NO_TTY 1 | ||
7411 | _ACEOF | ||
7412 | |||
7413 | cat >>confdefs.h <<\_ACEOF | ||
7414 | #define LOCKED_PASSWD_STRING "*LK*" | ||
7415 | _ACEOF | ||
7416 | |||
7417 | ;; | ||
7418 | *-*-linux*) | ||
7419 | no_dev_ptmx=1 | ||
7420 | check_for_libcrypt_later=1 | ||
7421 | check_for_openpty_ctty_bug=1 | ||
7422 | |||
7423 | cat >>confdefs.h <<\_ACEOF | ||
7424 | #define DONT_TRY_OTHER_AF 1 | ||
7425 | _ACEOF | ||
7426 | |||
7427 | |||
7428 | cat >>confdefs.h <<\_ACEOF | ||
7429 | #define PAM_TTY_KLUDGE 1 | ||
7430 | _ACEOF | ||
7431 | |||
7432 | |||
7433 | cat >>confdefs.h <<\_ACEOF | ||
7434 | #define LOCKED_PASSWD_PREFIX "!" | ||
7435 | _ACEOF | ||
7436 | |||
7437 | cat >>confdefs.h <<\_ACEOF | ||
7438 | #define SPT_TYPE SPT_REUSEARGV | ||
7439 | _ACEOF | ||
7440 | |||
7441 | |||
7442 | cat >>confdefs.h <<\_ACEOF | ||
7443 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
7444 | _ACEOF | ||
7445 | |||
7446 | |||
7447 | cat >>confdefs.h <<\_ACEOF | ||
7448 | #define _PATH_BTMP "/var/log/btmp" | ||
7449 | _ACEOF | ||
7450 | |||
7451 | cat >>confdefs.h <<\_ACEOF | ||
7452 | #define USE_BTMP 1 | ||
7453 | _ACEOF | ||
7454 | |||
7455 | inet6_default_4in6=yes | ||
7456 | case `uname -r` in | ||
7457 | 1.*|2.0.*) | ||
7458 | |||
7459 | cat >>confdefs.h <<\_ACEOF | ||
7460 | #define BROKEN_CMSG_TYPE 1 | ||
7461 | _ACEOF | ||
7462 | |||
7463 | ;; | ||
7464 | esac | ||
7465 | # tun(4) forwarding compat code | ||
7466 | |||
7467 | for ac_header in linux/if_tun.h | ||
7468 | do | ||
7469 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7471 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7475 | fi | ||
7476 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7477 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7478 | echo "${ECHO_T}$ac_res" >&6; } | ||
7479 | else | ||
7480 | # Is the header compilable? | ||
7481 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7482 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
7483 | cat >conftest.$ac_ext <<_ACEOF | ||
7484 | /* confdefs.h. */ | ||
7485 | _ACEOF | ||
7486 | cat confdefs.h >>conftest.$ac_ext | ||
7487 | cat >>conftest.$ac_ext <<_ACEOF | ||
7488 | /* end confdefs.h. */ | ||
7489 | $ac_includes_default | ||
7490 | #include <$ac_header> | ||
7491 | _ACEOF | ||
7492 | rm -f conftest.$ac_objext | ||
7493 | if { (ac_try="$ac_compile" | ||
7494 | case "(($ac_try" in | ||
7495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7496 | *) ac_try_echo=$ac_try;; | ||
7497 | esac | ||
7498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7499 | (eval "$ac_compile") 2>conftest.er1 | ||
7500 | ac_status=$? | ||
7501 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7502 | rm -f conftest.er1 | ||
7503 | cat conftest.err >&5 | ||
7504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7505 | (exit $ac_status); } && { | ||
7506 | test -z "$ac_c_werror_flag" || | ||
7507 | test ! -s conftest.err | ||
7508 | } && test -s conftest.$ac_objext; then | ||
7509 | ac_header_compiler=yes | ||
7510 | else | ||
7511 | echo "$as_me: failed program was:" >&5 | ||
7512 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7513 | |||
7514 | ac_header_compiler=no | ||
7515 | fi | ||
7516 | |||
7517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7518 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7519 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7520 | |||
7521 | # Is the header present? | ||
7522 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7523 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
7524 | cat >conftest.$ac_ext <<_ACEOF | ||
7525 | /* confdefs.h. */ | ||
7526 | _ACEOF | ||
7527 | cat confdefs.h >>conftest.$ac_ext | ||
7528 | cat >>conftest.$ac_ext <<_ACEOF | ||
7529 | /* end confdefs.h. */ | ||
7530 | #include <$ac_header> | ||
7531 | _ACEOF | ||
7532 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7533 | case "(($ac_try" in | ||
7534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7535 | *) ac_try_echo=$ac_try;; | ||
7536 | esac | ||
7537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7538 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7539 | ac_status=$? | ||
7540 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7541 | rm -f conftest.er1 | ||
7542 | cat conftest.err >&5 | ||
7543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7544 | (exit $ac_status); } >/dev/null && { | ||
7545 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7546 | test ! -s conftest.err | ||
7547 | }; then | ||
7548 | ac_header_preproc=yes | ||
7549 | else | ||
7550 | echo "$as_me: failed program was:" >&5 | ||
7551 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7552 | |||
7553 | ac_header_preproc=no | ||
7554 | fi | ||
7555 | |||
7556 | rm -f conftest.err conftest.$ac_ext | ||
7557 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7558 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7559 | |||
7560 | # So? What about this header? | ||
7561 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7562 | yes:no: ) | ||
7563 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7564 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7566 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7567 | ac_header_preproc=yes | ||
7568 | ;; | ||
7569 | no:yes:* ) | ||
7570 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7571 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7572 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7573 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7574 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7575 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7576 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7577 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7578 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7579 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7580 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7581 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7582 | ( cat <<\_ASBOX | ||
7583 | ## ------------------------------------------- ## | ||
7584 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7585 | ## ------------------------------------------- ## | ||
7586 | _ASBOX | ||
7587 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
7588 | ;; | ||
7589 | esac | ||
7590 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7591 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7592 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7594 | else | ||
7595 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7596 | fi | ||
7597 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7598 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7599 | echo "${ECHO_T}$ac_res" >&6; } | ||
7600 | |||
7601 | fi | ||
7602 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7603 | cat >>confdefs.h <<_ACEOF | ||
7604 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7605 | _ACEOF | ||
7606 | |||
7607 | fi | ||
7608 | |||
7609 | done | ||
7610 | |||
7611 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
7612 | |||
7613 | cat >>confdefs.h <<\_ACEOF | ||
7614 | #define SSH_TUN_LINUX 1 | ||
7615 | _ACEOF | ||
7616 | |||
7617 | |||
7618 | cat >>confdefs.h <<\_ACEOF | ||
7619 | #define SSH_TUN_COMPAT_AF 1 | ||
7620 | _ACEOF | ||
7621 | |||
7622 | |||
7623 | cat >>confdefs.h <<\_ACEOF | ||
7624 | #define SSH_TUN_PREPEND_AF 1 | ||
7625 | _ACEOF | ||
7626 | |||
7627 | fi | ||
7628 | ;; | ||
7629 | mips-sony-bsd|mips-sony-newsos4) | ||
7630 | |||
7631 | cat >>confdefs.h <<\_ACEOF | ||
7632 | #define NEED_SETPGRP 1 | ||
7633 | _ACEOF | ||
7634 | |||
7635 | SONY=1 | ||
7636 | ;; | ||
7637 | *-*-netbsd*) | ||
7638 | check_for_libcrypt_before=1 | ||
7639 | if test "x$withval" != "xno" ; then | ||
7640 | need_dash_r=1 | ||
7641 | fi | ||
7642 | |||
7643 | cat >>confdefs.h <<\_ACEOF | ||
7644 | #define SSH_TUN_FREEBSD 1 | ||
7645 | _ACEOF | ||
7646 | |||
7647 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
7648 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
7649 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
7650 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
7651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7652 | fi | ||
7653 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
7654 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
7655 | else | ||
7656 | # Is the header compilable? | ||
7657 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
7658 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
7659 | cat >conftest.$ac_ext <<_ACEOF | ||
7660 | /* confdefs.h. */ | ||
7661 | _ACEOF | ||
7662 | cat confdefs.h >>conftest.$ac_ext | ||
7663 | cat >>conftest.$ac_ext <<_ACEOF | ||
7664 | /* end confdefs.h. */ | ||
7665 | $ac_includes_default | ||
7666 | #include <net/if_tap.h> | ||
7667 | _ACEOF | ||
7668 | rm -f conftest.$ac_objext | ||
7669 | if { (ac_try="$ac_compile" | ||
7670 | case "(($ac_try" in | ||
7671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7672 | *) ac_try_echo=$ac_try;; | ||
7673 | esac | ||
7674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7675 | (eval "$ac_compile") 2>conftest.er1 | ||
7676 | ac_status=$? | ||
7677 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7678 | rm -f conftest.er1 | ||
7679 | cat conftest.err >&5 | ||
7680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7681 | (exit $ac_status); } && { | ||
7682 | test -z "$ac_c_werror_flag" || | ||
7683 | test ! -s conftest.err | ||
7684 | } && test -s conftest.$ac_objext; then | ||
7685 | ac_header_compiler=yes | ||
7686 | else | ||
7687 | echo "$as_me: failed program was:" >&5 | ||
7688 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7689 | |||
7690 | ac_header_compiler=no | ||
7691 | fi | ||
7692 | |||
7693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7694 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7695 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7696 | |||
7697 | # Is the header present? | ||
7698 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
7699 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
7700 | cat >conftest.$ac_ext <<_ACEOF | ||
7701 | /* confdefs.h. */ | ||
7702 | _ACEOF | ||
7703 | cat confdefs.h >>conftest.$ac_ext | ||
7704 | cat >>conftest.$ac_ext <<_ACEOF | ||
7705 | /* end confdefs.h. */ | ||
7706 | #include <net/if_tap.h> | ||
7707 | _ACEOF | ||
7708 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7709 | case "(($ac_try" in | ||
7710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7711 | *) ac_try_echo=$ac_try;; | ||
7712 | esac | ||
7713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7714 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7715 | ac_status=$? | ||
7716 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7717 | rm -f conftest.er1 | ||
7718 | cat conftest.err >&5 | ||
7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7720 | (exit $ac_status); } >/dev/null && { | ||
7721 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7722 | test ! -s conftest.err | ||
7723 | }; then | ||
7724 | ac_header_preproc=yes | ||
7725 | else | ||
7726 | echo "$as_me: failed program was:" >&5 | ||
7727 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7728 | |||
7729 | ac_header_preproc=no | ||
7730 | fi | ||
7731 | |||
7732 | rm -f conftest.err conftest.$ac_ext | ||
7733 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7734 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7735 | |||
7736 | # So? What about this header? | ||
7737 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7738 | yes:no: ) | ||
7739 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7740 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7741 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
7742 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
7743 | ac_header_preproc=yes | ||
7744 | ;; | ||
7745 | no:yes:* ) | ||
7746 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
7747 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
7748 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
7749 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
7750 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
7751 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
7752 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
7753 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7754 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
7755 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
7756 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
7757 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
7758 | ( cat <<\_ASBOX | ||
7759 | ## ------------------------------------------- ## | ||
7760 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7761 | ## ------------------------------------------- ## | ||
7762 | _ASBOX | ||
7763 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
7764 | ;; | ||
7765 | esac | ||
7766 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
7767 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
7768 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
7769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7770 | else | ||
7771 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
7772 | fi | ||
7773 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
7774 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
7775 | |||
7776 | fi | ||
7777 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
7778 | : | ||
7779 | else | ||
7780 | |||
7781 | cat >>confdefs.h <<\_ACEOF | ||
7782 | #define SSH_TUN_NO_L2 1 | ||
7783 | _ACEOF | ||
7784 | |||
7785 | fi | ||
7786 | |||
7787 | |||
7788 | |||
7789 | cat >>confdefs.h <<\_ACEOF | ||
7790 | #define SSH_TUN_PREPEND_AF 1 | ||
7791 | _ACEOF | ||
7792 | |||
7793 | ;; | ||
7794 | *-*-freebsd*) | ||
7795 | check_for_libcrypt_later=1 | ||
7796 | |||
7797 | cat >>confdefs.h <<\_ACEOF | ||
7798 | #define LOCKED_PASSWD_PREFIX "*LOCKED*" | ||
7799 | _ACEOF | ||
7800 | |||
7801 | |||
7802 | cat >>confdefs.h <<\_ACEOF | ||
7803 | #define SSH_TUN_FREEBSD 1 | ||
7804 | _ACEOF | ||
7805 | |||
7806 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
7807 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
7808 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
7809 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
7810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7811 | fi | ||
7812 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
7813 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
7814 | else | ||
7815 | # Is the header compilable? | ||
7816 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
7817 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
7818 | cat >conftest.$ac_ext <<_ACEOF | ||
7819 | /* confdefs.h. */ | ||
7820 | _ACEOF | ||
7821 | cat confdefs.h >>conftest.$ac_ext | ||
7822 | cat >>conftest.$ac_ext <<_ACEOF | ||
7823 | /* end confdefs.h. */ | ||
7824 | $ac_includes_default | ||
7825 | #include <net/if_tap.h> | ||
7826 | _ACEOF | ||
7827 | rm -f conftest.$ac_objext | ||
7828 | if { (ac_try="$ac_compile" | ||
7829 | case "(($ac_try" in | ||
7830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7831 | *) ac_try_echo=$ac_try;; | ||
7832 | esac | ||
7833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7834 | (eval "$ac_compile") 2>conftest.er1 | ||
7835 | ac_status=$? | ||
7836 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7837 | rm -f conftest.er1 | ||
7838 | cat conftest.err >&5 | ||
7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7840 | (exit $ac_status); } && { | ||
7841 | test -z "$ac_c_werror_flag" || | ||
7842 | test ! -s conftest.err | ||
7843 | } && test -s conftest.$ac_objext; then | ||
7844 | ac_header_compiler=yes | ||
7845 | else | ||
7846 | echo "$as_me: failed program was:" >&5 | ||
7847 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7848 | |||
7849 | ac_header_compiler=no | ||
7850 | fi | ||
7851 | |||
7852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7853 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7854 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7855 | |||
7856 | # Is the header present? | ||
7857 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
7858 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
7859 | cat >conftest.$ac_ext <<_ACEOF | ||
7860 | /* confdefs.h. */ | ||
7861 | _ACEOF | ||
7862 | cat confdefs.h >>conftest.$ac_ext | ||
7863 | cat >>conftest.$ac_ext <<_ACEOF | ||
7864 | /* end confdefs.h. */ | ||
7865 | #include <net/if_tap.h> | ||
7866 | _ACEOF | ||
7867 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7868 | case "(($ac_try" in | ||
7869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7870 | *) ac_try_echo=$ac_try;; | ||
7871 | esac | ||
7872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7873 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7874 | ac_status=$? | ||
7875 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7876 | rm -f conftest.er1 | ||
7877 | cat conftest.err >&5 | ||
7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7879 | (exit $ac_status); } >/dev/null && { | ||
7880 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7881 | test ! -s conftest.err | ||
7882 | }; then | ||
7883 | ac_header_preproc=yes | ||
7884 | else | ||
7885 | echo "$as_me: failed program was:" >&5 | ||
7886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7887 | |||
7888 | ac_header_preproc=no | ||
7889 | fi | ||
7890 | |||
7891 | rm -f conftest.err conftest.$ac_ext | ||
7892 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7893 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7894 | |||
7895 | # So? What about this header? | ||
7896 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7897 | yes:no: ) | ||
7898 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7899 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7900 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
7901 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
7902 | ac_header_preproc=yes | ||
7903 | ;; | ||
7904 | no:yes:* ) | ||
7905 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
7906 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
7907 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
7908 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
7909 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
7910 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
7911 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
7912 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7913 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
7914 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
7915 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
7916 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
7917 | ( cat <<\_ASBOX | ||
7918 | ## ------------------------------------------- ## | ||
7919 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7920 | ## ------------------------------------------- ## | ||
7921 | _ASBOX | ||
7922 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
7923 | ;; | ||
7924 | esac | ||
7925 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
7926 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
7927 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
7928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7929 | else | ||
7930 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
7931 | fi | ||
7932 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
7933 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
7934 | |||
7935 | fi | ||
7936 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
7937 | : | ||
7938 | else | ||
7939 | |||
7940 | cat >>confdefs.h <<\_ACEOF | ||
7941 | #define SSH_TUN_NO_L2 1 | ||
7942 | _ACEOF | ||
7943 | |||
7944 | fi | ||
7945 | |||
7946 | |||
7947 | ;; | ||
7948 | *-*-bsdi*) | ||
7949 | cat >>confdefs.h <<\_ACEOF | ||
7950 | #define SETEUID_BREAKS_SETUID 1 | ||
7951 | _ACEOF | ||
7952 | |||
7953 | cat >>confdefs.h <<\_ACEOF | ||
7954 | #define BROKEN_SETREUID 1 | ||
7955 | _ACEOF | ||
7956 | |||
7957 | cat >>confdefs.h <<\_ACEOF | ||
7958 | #define BROKEN_SETREGID 1 | ||
7959 | _ACEOF | ||
7960 | |||
7961 | ;; | ||
7962 | *-next-*) | ||
7963 | conf_lastlog_location="/usr/adm/lastlog" | ||
7964 | conf_utmp_location=/etc/utmp | ||
7965 | conf_wtmp_location=/usr/adm/wtmp | ||
7966 | MAIL=/usr/spool/mail | ||
7967 | |||
7968 | cat >>confdefs.h <<\_ACEOF | ||
7969 | #define HAVE_NEXT 1 | ||
7970 | _ACEOF | ||
7971 | |||
7972 | cat >>confdefs.h <<\_ACEOF | ||
7973 | #define BROKEN_REALPATH 1 | ||
7974 | _ACEOF | ||
7975 | |||
7976 | cat >>confdefs.h <<\_ACEOF | ||
7977 | #define USE_PIPES 1 | ||
7978 | _ACEOF | ||
7979 | |||
7980 | |||
7981 | cat >>confdefs.h <<\_ACEOF | ||
7982 | #define BROKEN_SAVED_UIDS 1 | ||
7983 | _ACEOF | ||
7984 | |||
7985 | ;; | ||
7986 | *-*-openbsd*) | ||
7987 | |||
7988 | cat >>confdefs.h <<\_ACEOF | ||
7989 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
7990 | _ACEOF | ||
7991 | |||
7992 | |||
7993 | cat >>confdefs.h <<\_ACEOF | ||
7994 | #define HAVE_ATTRIBUTE__BOUNDED__ 1 | ||
7995 | _ACEOF | ||
7996 | |||
7997 | |||
7998 | cat >>confdefs.h <<\_ACEOF | ||
7999 | #define SSH_TUN_OPENBSD 1 | ||
8000 | _ACEOF | ||
8001 | |||
8002 | |||
8003 | cat >>confdefs.h <<\_ACEOF | ||
8004 | #define SYSLOG_R_SAFE_IN_SIGHAND 1 | ||
8005 | _ACEOF | ||
8006 | |||
8007 | ;; | ||
8008 | *-*-solaris*) | ||
8009 | if test "x$withval" != "xno" ; then | ||
8010 | need_dash_r=1 | ||
8011 | fi | ||
8012 | cat >>confdefs.h <<\_ACEOF | ||
8013 | #define PAM_SUN_CODEBASE 1 | ||
8014 | _ACEOF | ||
8015 | |||
8016 | cat >>confdefs.h <<\_ACEOF | ||
8017 | #define LOGIN_NEEDS_UTMPX 1 | ||
8018 | _ACEOF | ||
8019 | |||
8020 | |||
8021 | cat >>confdefs.h <<\_ACEOF | ||
8022 | #define LOGIN_NEEDS_TERM 1 | ||
8023 | _ACEOF | ||
8024 | |||
8025 | cat >>confdefs.h <<\_ACEOF | ||
8026 | #define PAM_TTY_KLUDGE 1 | ||
8027 | _ACEOF | ||
8028 | |||
8029 | |||
8030 | cat >>confdefs.h <<\_ACEOF | ||
8031 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
8032 | _ACEOF | ||
8033 | |||
8034 | cat >>confdefs.h <<\_ACEOF | ||
8035 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8036 | _ACEOF | ||
8037 | |||
8038 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
8039 | |||
8040 | cat >>confdefs.h <<\_ACEOF | ||
8041 | #define SSHD_ACQUIRES_CTTY 1 | ||
8042 | _ACEOF | ||
8043 | |||
8044 | |||
8045 | cat >>confdefs.h <<\_ACEOF | ||
8046 | #define PASSWD_NEEDS_USERNAME 1 | ||
8047 | _ACEOF | ||
8048 | |||
8049 | external_path_file=/etc/default/login | ||
8050 | # hardwire lastlog location (can't detect it on some versions) | ||
8051 | conf_lastlog_location="/var/adm/lastlog" | ||
8052 | { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
8053 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; } | ||
8054 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
8055 | if test "$sol2ver" -ge 8; then | ||
8056 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8057 | echo "${ECHO_T}yes" >&6; } | ||
8058 | cat >>confdefs.h <<\_ACEOF | ||
8059 | #define DISABLE_UTMP 1 | ||
8060 | _ACEOF | ||
8061 | |||
8062 | |||
8063 | cat >>confdefs.h <<\_ACEOF | ||
8064 | #define DISABLE_WTMP 1 | ||
8065 | _ACEOF | ||
8066 | |||
8067 | else | ||
8068 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8069 | echo "${ECHO_T}no" >&6; } | ||
8070 | fi | ||
8071 | |||
8072 | # Check whether --with-solaris-contracts was given. | ||
8073 | if test "${with_solaris_contracts+set}" = set; then | ||
8074 | withval=$with_solaris_contracts; | ||
8075 | { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 | ||
8076 | echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; } | ||
8077 | if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then | ||
8078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8079 | else | ||
8080 | ac_check_lib_save_LIBS=$LIBS | ||
8081 | LIBS="-lcontract $LIBS" | ||
8082 | cat >conftest.$ac_ext <<_ACEOF | ||
8083 | /* confdefs.h. */ | ||
8084 | _ACEOF | ||
8085 | cat confdefs.h >>conftest.$ac_ext | ||
8086 | cat >>conftest.$ac_ext <<_ACEOF | ||
8087 | /* end confdefs.h. */ | ||
8088 | |||
8089 | /* Override any GCC internal prototype to avoid an error. | ||
8090 | Use char because int might match the return type of a GCC | ||
8091 | builtin and then its argument prototype would still apply. */ | ||
8092 | #ifdef __cplusplus | ||
8093 | extern "C" | ||
8094 | #endif | ||
8095 | char ct_tmpl_activate (); | ||
8096 | int | ||
8097 | main () | ||
8098 | { | ||
8099 | return ct_tmpl_activate (); | ||
8100 | ; | ||
8101 | return 0; | ||
8102 | } | ||
8103 | _ACEOF | ||
8104 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8105 | if { (ac_try="$ac_link" | ||
8106 | case "(($ac_try" in | ||
8107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8108 | *) ac_try_echo=$ac_try;; | ||
8109 | esac | ||
8110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8111 | (eval "$ac_link") 2>conftest.er1 | ||
8112 | ac_status=$? | ||
8113 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8114 | rm -f conftest.er1 | ||
8115 | cat conftest.err >&5 | ||
8116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8117 | (exit $ac_status); } && { | ||
8118 | test -z "$ac_c_werror_flag" || | ||
8119 | test ! -s conftest.err | ||
8120 | } && test -s conftest$ac_exeext && | ||
8121 | $as_test_x conftest$ac_exeext; then | ||
8122 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
8123 | else | ||
8124 | echo "$as_me: failed program was:" >&5 | ||
8125 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8126 | |||
8127 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
8128 | fi | ||
8129 | |||
8130 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8131 | conftest$ac_exeext conftest.$ac_ext | ||
8132 | LIBS=$ac_check_lib_save_LIBS | ||
8133 | fi | ||
8134 | { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
8135 | echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
8136 | if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then | ||
8137 | |||
8138 | cat >>confdefs.h <<\_ACEOF | ||
8139 | #define USE_SOLARIS_PROCESS_CONTRACTS 1 | ||
8140 | _ACEOF | ||
8141 | |||
8142 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
8143 | |||
8144 | SPC_MSG="yes" | ||
8145 | fi | ||
8146 | |||
8147 | |||
8148 | fi | ||
8149 | |||
8150 | ;; | ||
8151 | *-*-sunos4*) | ||
8152 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
8153 | |||
8154 | for ac_func in getpwanam | ||
8155 | do | ||
8156 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8157 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8158 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8159 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8161 | else | ||
8162 | cat >conftest.$ac_ext <<_ACEOF | ||
8163 | /* confdefs.h. */ | ||
8164 | _ACEOF | ||
8165 | cat confdefs.h >>conftest.$ac_ext | ||
8166 | cat >>conftest.$ac_ext <<_ACEOF | ||
8167 | /* end confdefs.h. */ | ||
8168 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8169 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8170 | #define $ac_func innocuous_$ac_func | ||
8171 | |||
8172 | /* System header to define __stub macros and hopefully few prototypes, | ||
8173 | which can conflict with char $ac_func (); below. | ||
8174 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8175 | <limits.h> exists even on freestanding compilers. */ | ||
8176 | |||
8177 | #ifdef __STDC__ | ||
8178 | # include <limits.h> | ||
8179 | #else | ||
8180 | # include <assert.h> | ||
8181 | #endif | ||
8182 | |||
8183 | #undef $ac_func | ||
8184 | |||
8185 | /* Override any GCC internal prototype to avoid an error. | ||
8186 | Use char because int might match the return type of a GCC | ||
8187 | builtin and then its argument prototype would still apply. */ | ||
8188 | #ifdef __cplusplus | ||
8189 | extern "C" | ||
8190 | #endif | ||
8191 | char $ac_func (); | ||
8192 | /* The GNU C library defines this for functions which it implements | ||
8193 | to always fail with ENOSYS. Some functions are actually named | ||
8194 | something starting with __ and the normal name is an alias. */ | ||
8195 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8196 | choke me | ||
8197 | #endif | ||
8198 | |||
8199 | int | ||
8200 | main () | ||
8201 | { | ||
8202 | return $ac_func (); | ||
8203 | ; | ||
8204 | return 0; | ||
8205 | } | ||
8206 | _ACEOF | ||
8207 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8208 | if { (ac_try="$ac_link" | ||
8209 | case "(($ac_try" in | ||
8210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8211 | *) ac_try_echo=$ac_try;; | ||
8212 | esac | ||
8213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8214 | (eval "$ac_link") 2>conftest.er1 | ||
8215 | ac_status=$? | ||
8216 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8217 | rm -f conftest.er1 | ||
8218 | cat conftest.err >&5 | ||
8219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8220 | (exit $ac_status); } && { | ||
8221 | test -z "$ac_c_werror_flag" || | ||
8222 | test ! -s conftest.err | ||
8223 | } && test -s conftest$ac_exeext && | ||
8224 | $as_test_x conftest$ac_exeext; then | ||
8225 | eval "$as_ac_var=yes" | ||
8226 | else | ||
8227 | echo "$as_me: failed program was:" >&5 | ||
8228 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8229 | |||
8230 | eval "$as_ac_var=no" | ||
8231 | fi | ||
8232 | |||
8233 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8234 | conftest$ac_exeext conftest.$ac_ext | ||
8235 | fi | ||
8236 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
8237 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8238 | echo "${ECHO_T}$ac_res" >&6; } | ||
8239 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8240 | cat >>confdefs.h <<_ACEOF | ||
8241 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8242 | _ACEOF | ||
8243 | |||
8244 | fi | ||
8245 | done | ||
8246 | |||
8247 | cat >>confdefs.h <<\_ACEOF | ||
8248 | #define PAM_SUN_CODEBASE 1 | ||
8249 | _ACEOF | ||
8250 | |||
8251 | conf_utmp_location=/etc/utmp | ||
8252 | conf_wtmp_location=/var/adm/wtmp | ||
8253 | conf_lastlog_location=/var/adm/lastlog | ||
8254 | cat >>confdefs.h <<\_ACEOF | ||
8255 | #define USE_PIPES 1 | ||
8256 | _ACEOF | ||
8257 | |||
8258 | ;; | ||
8259 | *-ncr-sysv*) | ||
8260 | LIBS="$LIBS -lc89" | ||
8261 | cat >>confdefs.h <<\_ACEOF | ||
8262 | #define USE_PIPES 1 | ||
8263 | _ACEOF | ||
8264 | |||
8265 | cat >>confdefs.h <<\_ACEOF | ||
8266 | #define SSHD_ACQUIRES_CTTY 1 | ||
8267 | _ACEOF | ||
8268 | |||
8269 | cat >>confdefs.h <<\_ACEOF | ||
8270 | #define SETEUID_BREAKS_SETUID 1 | ||
8271 | _ACEOF | ||
8272 | |||
8273 | cat >>confdefs.h <<\_ACEOF | ||
8274 | #define BROKEN_SETREUID 1 | ||
8275 | _ACEOF | ||
8276 | |||
8277 | cat >>confdefs.h <<\_ACEOF | ||
8278 | #define BROKEN_SETREGID 1 | ||
8279 | _ACEOF | ||
8280 | |||
8281 | ;; | ||
8282 | *-sni-sysv*) | ||
8283 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
8284 | |||
8285 | { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
8286 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } | ||
8287 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
8288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8289 | else | ||
8290 | ac_check_lib_save_LIBS=$LIBS | ||
8291 | LIBS="-ldl $LIBS" | ||
8292 | cat >conftest.$ac_ext <<_ACEOF | ||
8293 | /* confdefs.h. */ | ||
8294 | _ACEOF | ||
8295 | cat confdefs.h >>conftest.$ac_ext | ||
8296 | cat >>conftest.$ac_ext <<_ACEOF | ||
8297 | /* end confdefs.h. */ | ||
8298 | |||
8299 | /* Override any GCC internal prototype to avoid an error. | ||
8300 | Use char because int might match the return type of a GCC | ||
8301 | builtin and then its argument prototype would still apply. */ | ||
8302 | #ifdef __cplusplus | ||
8303 | extern "C" | ||
8304 | #endif | ||
8305 | char dlsym (); | ||
8306 | int | ||
8307 | main () | ||
8308 | { | ||
8309 | return dlsym (); | ||
8310 | ; | ||
8311 | return 0; | ||
8312 | } | ||
8313 | _ACEOF | ||
8314 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8315 | if { (ac_try="$ac_link" | ||
8316 | case "(($ac_try" in | ||
8317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8318 | *) ac_try_echo=$ac_try;; | ||
8319 | esac | ||
8320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8321 | (eval "$ac_link") 2>conftest.er1 | ||
8322 | ac_status=$? | ||
8323 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8324 | rm -f conftest.er1 | ||
8325 | cat conftest.err >&5 | ||
8326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8327 | (exit $ac_status); } && { | ||
8328 | test -z "$ac_c_werror_flag" || | ||
8329 | test ! -s conftest.err | ||
8330 | } && test -s conftest$ac_exeext && | ||
8331 | $as_test_x conftest$ac_exeext; then | ||
8332 | ac_cv_lib_dl_dlsym=yes | ||
8333 | else | ||
8334 | echo "$as_me: failed program was:" >&5 | ||
8335 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8336 | |||
8337 | ac_cv_lib_dl_dlsym=no | ||
8338 | fi | ||
8339 | |||
8340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8341 | conftest$ac_exeext conftest.$ac_ext | ||
8342 | LIBS=$ac_check_lib_save_LIBS | ||
8343 | fi | ||
8344 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
8345 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } | ||
8346 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
8347 | cat >>confdefs.h <<_ACEOF | ||
8348 | #define HAVE_LIBDL 1 | ||
8349 | _ACEOF | ||
8350 | |||
8351 | LIBS="-ldl $LIBS" | ||
8352 | |||
8353 | fi | ||
8354 | |||
8355 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
8356 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
8357 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
8358 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then | ||
8359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8360 | else | ||
8361 | ac_check_lib_save_LIBS=$LIBS | ||
8362 | LIBS="-lresolv $LIBS" | ||
8363 | cat >conftest.$ac_ext <<_ACEOF | ||
8364 | /* confdefs.h. */ | ||
8365 | _ACEOF | ||
8366 | cat confdefs.h >>conftest.$ac_ext | ||
8367 | cat >>conftest.$ac_ext <<_ACEOF | ||
8368 | /* end confdefs.h. */ | ||
8369 | |||
8370 | /* Override any GCC internal prototype to avoid an error. | ||
8371 | Use char because int might match the return type of a GCC | ||
8372 | builtin and then its argument prototype would still apply. */ | ||
8373 | #ifdef __cplusplus | ||
8374 | extern "C" | ||
8375 | #endif | ||
8376 | char res_query (); | ||
8377 | int | ||
8378 | main () | ||
8379 | { | ||
8380 | return res_query (); | ||
8381 | ; | ||
8382 | return 0; | ||
8383 | } | ||
8384 | _ACEOF | ||
8385 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8386 | if { (ac_try="$ac_link" | ||
8387 | case "(($ac_try" in | ||
8388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8389 | *) ac_try_echo=$ac_try;; | ||
8390 | esac | ||
8391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8392 | (eval "$ac_link") 2>conftest.er1 | ||
8393 | ac_status=$? | ||
8394 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8395 | rm -f conftest.er1 | ||
8396 | cat conftest.err >&5 | ||
8397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8398 | (exit $ac_status); } && { | ||
8399 | test -z "$ac_c_werror_flag" || | ||
8400 | test ! -s conftest.err | ||
8401 | } && test -s conftest$ac_exeext && | ||
8402 | $as_test_x conftest$ac_exeext; then | ||
8403 | ac_cv_lib_resolv_res_query=yes | ||
8404 | else | ||
8405 | echo "$as_me: failed program was:" >&5 | ||
8406 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8407 | |||
8408 | ac_cv_lib_resolv_res_query=no | ||
8409 | fi | ||
8410 | |||
8411 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8412 | conftest$ac_exeext conftest.$ac_ext | ||
8413 | LIBS=$ac_check_lib_save_LIBS | ||
8414 | fi | ||
8415 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 | ||
8416 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } | ||
8417 | if test $ac_cv_lib_resolv_res_query = yes; then | ||
8418 | LIBS="$LIBS -lresolv" | ||
8419 | fi | ||
8420 | |||
8421 | IPADDR_IN_DISPLAY=yes | ||
8422 | cat >>confdefs.h <<\_ACEOF | ||
8423 | #define USE_PIPES 1 | ||
8424 | _ACEOF | ||
8425 | |||
8426 | cat >>confdefs.h <<\_ACEOF | ||
8427 | #define IP_TOS_IS_BROKEN 1 | ||
8428 | _ACEOF | ||
8429 | |||
8430 | cat >>confdefs.h <<\_ACEOF | ||
8431 | #define SETEUID_BREAKS_SETUID 1 | ||
8432 | _ACEOF | ||
8433 | |||
8434 | cat >>confdefs.h <<\_ACEOF | ||
8435 | #define BROKEN_SETREUID 1 | ||
8436 | _ACEOF | ||
8437 | |||
8438 | cat >>confdefs.h <<\_ACEOF | ||
8439 | #define BROKEN_SETREGID 1 | ||
8440 | _ACEOF | ||
8441 | |||
8442 | cat >>confdefs.h <<\_ACEOF | ||
8443 | #define SSHD_ACQUIRES_CTTY 1 | ||
8444 | _ACEOF | ||
8445 | |||
8446 | external_path_file=/etc/default/login | ||
8447 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
8448 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
8449 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
8450 | ;; | ||
8451 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
8452 | *-*-sysv4.2*) | ||
8453 | cat >>confdefs.h <<\_ACEOF | ||
8454 | #define USE_PIPES 1 | ||
8455 | _ACEOF | ||
8456 | |||
8457 | cat >>confdefs.h <<\_ACEOF | ||
8458 | #define SETEUID_BREAKS_SETUID 1 | ||
8459 | _ACEOF | ||
8460 | |||
8461 | cat >>confdefs.h <<\_ACEOF | ||
8462 | #define BROKEN_SETREUID 1 | ||
8463 | _ACEOF | ||
8464 | |||
8465 | cat >>confdefs.h <<\_ACEOF | ||
8466 | #define BROKEN_SETREGID 1 | ||
8467 | _ACEOF | ||
8468 | |||
8469 | |||
8470 | cat >>confdefs.h <<\_ACEOF | ||
8471 | #define PASSWD_NEEDS_USERNAME 1 | ||
8472 | _ACEOF | ||
8473 | |||
8474 | cat >>confdefs.h <<\_ACEOF | ||
8475 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8476 | _ACEOF | ||
8477 | |||
8478 | ;; | ||
8479 | # UnixWare 7.x, OpenUNIX 8 | ||
8480 | *-*-sysv5*) | ||
8481 | check_for_libcrypt_later=1 | ||
8482 | |||
8483 | cat >>confdefs.h <<\_ACEOF | ||
8484 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
8485 | _ACEOF | ||
8486 | |||
8487 | cat >>confdefs.h <<\_ACEOF | ||
8488 | #define USE_PIPES 1 | ||
8489 | _ACEOF | ||
8490 | |||
8491 | cat >>confdefs.h <<\_ACEOF | ||
8492 | #define SETEUID_BREAKS_SETUID 1 | ||
8493 | _ACEOF | ||
8494 | |||
8495 | cat >>confdefs.h <<\_ACEOF | ||
8496 | #define BROKEN_SETREUID 1 | ||
8497 | _ACEOF | ||
8498 | |||
8499 | cat >>confdefs.h <<\_ACEOF | ||
8500 | #define BROKEN_SETREGID 1 | ||
8501 | _ACEOF | ||
8502 | |||
8503 | cat >>confdefs.h <<\_ACEOF | ||
8504 | #define PASSWD_NEEDS_USERNAME 1 | ||
8505 | _ACEOF | ||
8506 | |||
8507 | case "$host" in | ||
8508 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
8509 | TEST_SHELL=/u95/bin/sh | ||
8510 | |||
8511 | cat >>confdefs.h <<\_ACEOF | ||
8512 | #define BROKEN_LIBIAF 1 | ||
8513 | _ACEOF | ||
8514 | |||
8515 | cat >>confdefs.h <<\_ACEOF | ||
8516 | #define BROKEN_UPDWTMPX 1 | ||
8517 | _ACEOF | ||
8518 | |||
8519 | ;; | ||
8520 | *) cat >>confdefs.h <<\_ACEOF | ||
8521 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8522 | _ACEOF | ||
8523 | |||
8524 | ;; | ||
8525 | esac | ||
8526 | ;; | ||
8527 | *-*-sysv*) | ||
8528 | ;; | ||
8529 | # SCO UNIX and OEM versions of SCO UNIX | ||
8530 | *-*-sco3.2v4*) | ||
8531 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
8532 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
8533 | { (exit 1); exit 1; }; } | ||
8534 | ;; | ||
8535 | # SCO OpenServer 5.x | ||
8536 | *-*-sco3.2v5*) | ||
8537 | if test -z "$GCC"; then | ||
8538 | CFLAGS="$CFLAGS -belf" | ||
8539 | fi | ||
8540 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
8541 | no_dev_ptmx=1 | ||
8542 | cat >>confdefs.h <<\_ACEOF | ||
8543 | #define USE_PIPES 1 | ||
8544 | _ACEOF | ||
8545 | |||
8546 | cat >>confdefs.h <<\_ACEOF | ||
8547 | #define HAVE_SECUREWARE 1 | ||
8548 | _ACEOF | ||
8549 | |||
8550 | cat >>confdefs.h <<\_ACEOF | ||
8551 | #define DISABLE_SHADOW 1 | ||
8552 | _ACEOF | ||
8553 | |||
8554 | cat >>confdefs.h <<\_ACEOF | ||
8555 | #define DISABLE_FD_PASSING 1 | ||
8556 | _ACEOF | ||
8557 | |||
8558 | cat >>confdefs.h <<\_ACEOF | ||
8559 | #define SETEUID_BREAKS_SETUID 1 | ||
8560 | _ACEOF | ||
8561 | |||
8562 | cat >>confdefs.h <<\_ACEOF | ||
8563 | #define BROKEN_SETREUID 1 | ||
8564 | _ACEOF | ||
8565 | |||
8566 | cat >>confdefs.h <<\_ACEOF | ||
8567 | #define BROKEN_SETREGID 1 | ||
8568 | _ACEOF | ||
8569 | |||
8570 | cat >>confdefs.h <<\_ACEOF | ||
8571 | #define WITH_ABBREV_NO_TTY 1 | ||
8572 | _ACEOF | ||
8573 | |||
8574 | cat >>confdefs.h <<\_ACEOF | ||
8575 | #define BROKEN_UPDWTMPX 1 | ||
8576 | _ACEOF | ||
8577 | |||
8578 | cat >>confdefs.h <<\_ACEOF | ||
8579 | #define PASSWD_NEEDS_USERNAME 1 | ||
8580 | _ACEOF | ||
8581 | |||
8582 | |||
8583 | |||
8584 | for ac_func in getluid setluid | ||
8585 | do | ||
8586 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8587 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8588 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8589 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8591 | else | ||
8592 | cat >conftest.$ac_ext <<_ACEOF | ||
8593 | /* confdefs.h. */ | ||
8594 | _ACEOF | ||
8595 | cat confdefs.h >>conftest.$ac_ext | ||
8596 | cat >>conftest.$ac_ext <<_ACEOF | ||
8597 | /* end confdefs.h. */ | ||
8598 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8599 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8600 | #define $ac_func innocuous_$ac_func | ||
8601 | |||
8602 | /* System header to define __stub macros and hopefully few prototypes, | ||
8603 | which can conflict with char $ac_func (); below. | ||
8604 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8605 | <limits.h> exists even on freestanding compilers. */ | ||
8606 | |||
8607 | #ifdef __STDC__ | ||
8608 | # include <limits.h> | ||
8609 | #else | ||
8610 | # include <assert.h> | ||
8611 | #endif | ||
8612 | |||
8613 | #undef $ac_func | ||
8614 | |||
8615 | /* Override any GCC internal prototype to avoid an error. | ||
8616 | Use char because int might match the return type of a GCC | ||
8617 | builtin and then its argument prototype would still apply. */ | ||
8618 | #ifdef __cplusplus | ||
8619 | extern "C" | ||
8620 | #endif | ||
8621 | char $ac_func (); | ||
8622 | /* The GNU C library defines this for functions which it implements | ||
8623 | to always fail with ENOSYS. Some functions are actually named | ||
8624 | something starting with __ and the normal name is an alias. */ | ||
8625 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8626 | choke me | ||
8627 | #endif | ||
8628 | |||
8629 | int | ||
8630 | main () | ||
8631 | { | ||
8632 | return $ac_func (); | ||
8633 | ; | ||
8634 | return 0; | ||
8635 | } | ||
8636 | _ACEOF | ||
8637 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8638 | if { (ac_try="$ac_link" | ||
8639 | case "(($ac_try" in | ||
8640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8641 | *) ac_try_echo=$ac_try;; | ||
8642 | esac | ||
8643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8644 | (eval "$ac_link") 2>conftest.er1 | ||
8645 | ac_status=$? | ||
8646 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8647 | rm -f conftest.er1 | ||
8648 | cat conftest.err >&5 | ||
8649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8650 | (exit $ac_status); } && { | ||
8651 | test -z "$ac_c_werror_flag" || | ||
8652 | test ! -s conftest.err | ||
8653 | } && test -s conftest$ac_exeext && | ||
8654 | $as_test_x conftest$ac_exeext; then | ||
8655 | eval "$as_ac_var=yes" | ||
8656 | else | ||
8657 | echo "$as_me: failed program was:" >&5 | ||
8658 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8659 | |||
8660 | eval "$as_ac_var=no" | ||
8661 | fi | ||
8662 | |||
8663 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8664 | conftest$ac_exeext conftest.$ac_ext | ||
8665 | fi | ||
8666 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
8667 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8668 | echo "${ECHO_T}$ac_res" >&6; } | ||
8669 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8670 | cat >>confdefs.h <<_ACEOF | ||
8671 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8672 | _ACEOF | ||
8673 | |||
8674 | fi | ||
8675 | done | ||
8676 | |||
8677 | MANTYPE=man | ||
8678 | TEST_SHELL=ksh | ||
8679 | ;; | ||
8680 | *-*-unicosmk*) | ||
8681 | |||
8682 | cat >>confdefs.h <<\_ACEOF | ||
8683 | #define NO_SSH_LASTLOG 1 | ||
8684 | _ACEOF | ||
8685 | |||
8686 | cat >>confdefs.h <<\_ACEOF | ||
8687 | #define SETEUID_BREAKS_SETUID 1 | ||
8688 | _ACEOF | ||
8689 | |||
8690 | cat >>confdefs.h <<\_ACEOF | ||
8691 | #define BROKEN_SETREUID 1 | ||
8692 | _ACEOF | ||
8693 | |||
8694 | cat >>confdefs.h <<\_ACEOF | ||
8695 | #define BROKEN_SETREGID 1 | ||
8696 | _ACEOF | ||
8697 | |||
8698 | cat >>confdefs.h <<\_ACEOF | ||
8699 | #define USE_PIPES 1 | ||
8700 | _ACEOF | ||
8701 | |||
8702 | cat >>confdefs.h <<\_ACEOF | ||
8703 | #define DISABLE_FD_PASSING 1 | ||
8704 | _ACEOF | ||
8705 | |||
8706 | LDFLAGS="$LDFLAGS" | ||
8707 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
8708 | MANTYPE=cat | ||
8709 | ;; | ||
8710 | *-*-unicosmp*) | ||
8711 | cat >>confdefs.h <<\_ACEOF | ||
8712 | #define SETEUID_BREAKS_SETUID 1 | ||
8713 | _ACEOF | ||
8714 | |||
8715 | cat >>confdefs.h <<\_ACEOF | ||
8716 | #define BROKEN_SETREUID 1 | ||
8717 | _ACEOF | ||
8718 | |||
8719 | cat >>confdefs.h <<\_ACEOF | ||
8720 | #define BROKEN_SETREGID 1 | ||
8721 | _ACEOF | ||
8722 | |||
8723 | cat >>confdefs.h <<\_ACEOF | ||
8724 | #define WITH_ABBREV_NO_TTY 1 | ||
8725 | _ACEOF | ||
8726 | |||
8727 | cat >>confdefs.h <<\_ACEOF | ||
8728 | #define USE_PIPES 1 | ||
8729 | _ACEOF | ||
8730 | |||
8731 | cat >>confdefs.h <<\_ACEOF | ||
8732 | #define DISABLE_FD_PASSING 1 | ||
8733 | _ACEOF | ||
8734 | |||
8735 | LDFLAGS="$LDFLAGS" | ||
8736 | LIBS="$LIBS -lgen -lacid -ldb" | ||
8737 | MANTYPE=cat | ||
8738 | ;; | ||
8739 | *-*-unicos*) | ||
8740 | cat >>confdefs.h <<\_ACEOF | ||
8741 | #define SETEUID_BREAKS_SETUID 1 | ||
8742 | _ACEOF | ||
8743 | |||
8744 | cat >>confdefs.h <<\_ACEOF | ||
8745 | #define BROKEN_SETREUID 1 | ||
8746 | _ACEOF | ||
8747 | |||
8748 | cat >>confdefs.h <<\_ACEOF | ||
8749 | #define BROKEN_SETREGID 1 | ||
8750 | _ACEOF | ||
8751 | |||
8752 | cat >>confdefs.h <<\_ACEOF | ||
8753 | #define USE_PIPES 1 | ||
8754 | _ACEOF | ||
8755 | |||
8756 | cat >>confdefs.h <<\_ACEOF | ||
8757 | #define DISABLE_FD_PASSING 1 | ||
8758 | _ACEOF | ||
8759 | |||
8760 | cat >>confdefs.h <<\_ACEOF | ||
8761 | #define NO_SSH_LASTLOG 1 | ||
8762 | _ACEOF | ||
8763 | |||
8764 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
8765 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
8766 | MANTYPE=cat | ||
8767 | ;; | ||
8768 | *-dec-osf*) | ||
8769 | { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
8770 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; } | ||
8771 | no_osfsia="" | ||
8772 | |||
8773 | # Check whether --with-osfsia was given. | ||
8774 | if test "${with_osfsia+set}" = set; then | ||
8775 | withval=$with_osfsia; | ||
8776 | if test "x$withval" = "xno" ; then | ||
8777 | { echo "$as_me:$LINENO: result: disabled" >&5 | ||
8778 | echo "${ECHO_T}disabled" >&6; } | ||
8779 | no_osfsia=1 | ||
8780 | fi | ||
8781 | |||
8782 | fi | ||
8783 | |||
8784 | if test -z "$no_osfsia" ; then | ||
8785 | if test -f /etc/sia/matrix.conf; then | ||
8786 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8787 | echo "${ECHO_T}yes" >&6; } | ||
8788 | |||
8789 | cat >>confdefs.h <<\_ACEOF | ||
8790 | #define HAVE_OSF_SIA 1 | ||
8791 | _ACEOF | ||
8792 | |||
8793 | |||
8794 | cat >>confdefs.h <<\_ACEOF | ||
8795 | #define DISABLE_LOGIN 1 | ||
8796 | _ACEOF | ||
8797 | |||
8798 | cat >>confdefs.h <<\_ACEOF | ||
8799 | #define DISABLE_FD_PASSING 1 | ||
8800 | _ACEOF | ||
8801 | |||
8802 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
8803 | SIA_MSG="yes" | ||
8804 | else | ||
8805 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8806 | echo "${ECHO_T}no" >&6; } | ||
8807 | |||
8808 | cat >>confdefs.h <<\_ACEOF | ||
8809 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
8810 | _ACEOF | ||
8811 | |||
8812 | fi | ||
8813 | fi | ||
8814 | cat >>confdefs.h <<\_ACEOF | ||
8815 | #define BROKEN_GETADDRINFO 1 | ||
8816 | _ACEOF | ||
8817 | |||
8818 | cat >>confdefs.h <<\_ACEOF | ||
8819 | #define SETEUID_BREAKS_SETUID 1 | ||
8820 | _ACEOF | ||
8821 | |||
8822 | cat >>confdefs.h <<\_ACEOF | ||
8823 | #define BROKEN_SETREUID 1 | ||
8824 | _ACEOF | ||
8825 | |||
8826 | cat >>confdefs.h <<\_ACEOF | ||
8827 | #define BROKEN_SETREGID 1 | ||
8828 | _ACEOF | ||
8829 | |||
8830 | ;; | ||
8831 | |||
8832 | *-*-nto-qnx*) | ||
8833 | cat >>confdefs.h <<\_ACEOF | ||
8834 | #define USE_PIPES 1 | ||
8835 | _ACEOF | ||
8836 | |||
8837 | cat >>confdefs.h <<\_ACEOF | ||
8838 | #define NO_X11_UNIX_SOCKETS 1 | ||
8839 | _ACEOF | ||
8840 | |||
8841 | |||
8842 | cat >>confdefs.h <<\_ACEOF | ||
8843 | #define MISSING_NFDBITS 1 | ||
8844 | _ACEOF | ||
8845 | |||
8846 | |||
8847 | cat >>confdefs.h <<\_ACEOF | ||
8848 | #define MISSING_HOWMANY 1 | ||
8849 | _ACEOF | ||
8850 | |||
8851 | |||
8852 | cat >>confdefs.h <<\_ACEOF | ||
8853 | #define MISSING_FD_MASK 1 | ||
8854 | _ACEOF | ||
8855 | |||
8856 | cat >>confdefs.h <<\_ACEOF | ||
8857 | #define DISABLE_LASTLOG 1 | ||
8858 | _ACEOF | ||
8859 | |||
8860 | cat >>confdefs.h <<\_ACEOF | ||
8861 | #define SSHD_ACQUIRES_CTTY 1 | ||
8862 | _ACEOF | ||
8863 | |||
8864 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
8865 | ;; | ||
8866 | |||
8867 | *-*-ultrix*) | ||
8868 | |||
8869 | cat >>confdefs.h <<\_ACEOF | ||
8870 | #define BROKEN_GETGROUPS 1 | ||
8871 | _ACEOF | ||
8872 | |||
8873 | |||
8874 | cat >>confdefs.h <<\_ACEOF | ||
8875 | #define BROKEN_MMAP 1 | ||
8876 | _ACEOF | ||
8877 | |||
8878 | cat >>confdefs.h <<\_ACEOF | ||
8879 | #define NEED_SETPGRP 1 | ||
8880 | _ACEOF | ||
8881 | |||
8882 | |||
8883 | cat >>confdefs.h <<\_ACEOF | ||
8884 | #define HAVE_SYS_SYSLOG_H 1 | ||
8885 | _ACEOF | ||
8886 | |||
8887 | ;; | ||
8888 | |||
8889 | *-*-lynxos) | ||
8890 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
8891 | cat >>confdefs.h <<\_ACEOF | ||
8892 | #define MISSING_HOWMANY 1 | ||
8893 | _ACEOF | ||
8894 | |||
8895 | |||
8896 | cat >>confdefs.h <<\_ACEOF | ||
8897 | #define BROKEN_SETVBUF 1 | ||
8898 | _ACEOF | ||
8899 | |||
8900 | ;; | ||
8901 | esac | ||
8902 | |||
8903 | { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
8904 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } | ||
8905 | if test "$cross_compiling" = yes; then | ||
8906 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
8907 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
8908 | |||
8909 | else | ||
8910 | cat >conftest.$ac_ext <<_ACEOF | ||
8911 | /* confdefs.h. */ | ||
8912 | _ACEOF | ||
8913 | cat confdefs.h >>conftest.$ac_ext | ||
8914 | cat >>conftest.$ac_ext <<_ACEOF | ||
8915 | /* end confdefs.h. */ | ||
8916 | |||
8917 | #include <stdio.h> | ||
8918 | int main(){exit(0);} | ||
8919 | |||
8920 | _ACEOF | ||
8921 | rm -f conftest$ac_exeext | ||
8922 | if { (ac_try="$ac_link" | ||
8923 | case "(($ac_try" in | ||
8924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8925 | *) ac_try_echo=$ac_try;; | ||
8926 | esac | ||
8927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8928 | (eval "$ac_link") 2>&5 | ||
8929 | ac_status=$? | ||
8930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8932 | { (case "(($ac_try" in | ||
8933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8934 | *) ac_try_echo=$ac_try;; | ||
8935 | esac | ||
8936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8937 | (eval "$ac_try") 2>&5 | ||
8938 | ac_status=$? | ||
8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8940 | (exit $ac_status); }; }; then | ||
8941 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8942 | echo "${ECHO_T}yes" >&6; } | ||
8943 | else | ||
8944 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8945 | echo "$as_me: failed program was:" >&5 | ||
8946 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8947 | |||
8948 | ( exit $ac_status ) | ||
8949 | |||
8950 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8951 | echo "${ECHO_T}no" >&6; } | ||
8952 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
8953 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
8954 | { (exit 1); exit 1; }; } | ||
8955 | |||
8956 | fi | ||
8957 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8958 | fi | ||
8959 | |||
8960 | |||
8961 | |||
8962 | # Checks for libraries. | ||
8963 | { echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
8964 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } | ||
8965 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
8966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8967 | else | ||
8968 | cat >conftest.$ac_ext <<_ACEOF | ||
8969 | /* confdefs.h. */ | ||
8970 | _ACEOF | ||
8971 | cat confdefs.h >>conftest.$ac_ext | ||
8972 | cat >>conftest.$ac_ext <<_ACEOF | ||
8973 | /* end confdefs.h. */ | ||
8974 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
8975 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8976 | #define yp_match innocuous_yp_match | ||
8977 | |||
8978 | /* System header to define __stub macros and hopefully few prototypes, | ||
8979 | which can conflict with char yp_match (); below. | ||
8980 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8981 | <limits.h> exists even on freestanding compilers. */ | ||
8982 | |||
8983 | #ifdef __STDC__ | ||
8984 | # include <limits.h> | ||
8985 | #else | ||
8986 | # include <assert.h> | ||
8987 | #endif | ||
8988 | |||
8989 | #undef yp_match | ||
8990 | |||
8991 | /* Override any GCC internal prototype to avoid an error. | ||
8992 | Use char because int might match the return type of a GCC | ||
8993 | builtin and then its argument prototype would still apply. */ | ||
8994 | #ifdef __cplusplus | ||
8995 | extern "C" | ||
8996 | #endif | ||
8997 | char yp_match (); | ||
8998 | /* The GNU C library defines this for functions which it implements | ||
8999 | to always fail with ENOSYS. Some functions are actually named | ||
9000 | something starting with __ and the normal name is an alias. */ | ||
9001 | #if defined __stub_yp_match || defined __stub___yp_match | ||
9002 | choke me | ||
9003 | #endif | ||
9004 | |||
9005 | int | ||
9006 | main () | ||
9007 | { | ||
9008 | return yp_match (); | ||
9009 | ; | ||
9010 | return 0; | ||
9011 | } | ||
9012 | _ACEOF | ||
9013 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9014 | if { (ac_try="$ac_link" | ||
9015 | case "(($ac_try" in | ||
9016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9017 | *) ac_try_echo=$ac_try;; | ||
9018 | esac | ||
9019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9020 | (eval "$ac_link") 2>conftest.er1 | ||
9021 | ac_status=$? | ||
9022 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9023 | rm -f conftest.er1 | ||
9024 | cat conftest.err >&5 | ||
9025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9026 | (exit $ac_status); } && { | ||
9027 | test -z "$ac_c_werror_flag" || | ||
9028 | test ! -s conftest.err | ||
9029 | } && test -s conftest$ac_exeext && | ||
9030 | $as_test_x conftest$ac_exeext; then | ||
9031 | ac_cv_func_yp_match=yes | ||
9032 | else | ||
9033 | echo "$as_me: failed program was:" >&5 | ||
9034 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9035 | |||
9036 | ac_cv_func_yp_match=no | ||
9037 | fi | ||
9038 | |||
9039 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9040 | conftest$ac_exeext conftest.$ac_ext | ||
9041 | fi | ||
9042 | { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
9043 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6; } | ||
9044 | if test $ac_cv_func_yp_match = yes; then | ||
9045 | : | ||
9046 | else | ||
9047 | |||
9048 | { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
9049 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; } | ||
9050 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
9051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9052 | else | ||
9053 | ac_check_lib_save_LIBS=$LIBS | ||
9054 | LIBS="-lnsl $LIBS" | ||
9055 | cat >conftest.$ac_ext <<_ACEOF | ||
9056 | /* confdefs.h. */ | ||
9057 | _ACEOF | ||
9058 | cat confdefs.h >>conftest.$ac_ext | ||
9059 | cat >>conftest.$ac_ext <<_ACEOF | ||
9060 | /* end confdefs.h. */ | ||
9061 | |||
9062 | /* Override any GCC internal prototype to avoid an error. | ||
9063 | Use char because int might match the return type of a GCC | ||
9064 | builtin and then its argument prototype would still apply. */ | ||
9065 | #ifdef __cplusplus | ||
9066 | extern "C" | ||
9067 | #endif | ||
9068 | char yp_match (); | ||
9069 | int | ||
9070 | main () | ||
9071 | { | ||
9072 | return yp_match (); | ||
9073 | ; | ||
9074 | return 0; | ||
9075 | } | ||
9076 | _ACEOF | ||
9077 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9078 | if { (ac_try="$ac_link" | ||
9079 | case "(($ac_try" in | ||
9080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9081 | *) ac_try_echo=$ac_try;; | ||
9082 | esac | ||
9083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9084 | (eval "$ac_link") 2>conftest.er1 | ||
9085 | ac_status=$? | ||
9086 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9087 | rm -f conftest.er1 | ||
9088 | cat conftest.err >&5 | ||
9089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9090 | (exit $ac_status); } && { | ||
9091 | test -z "$ac_c_werror_flag" || | ||
9092 | test ! -s conftest.err | ||
9093 | } && test -s conftest$ac_exeext && | ||
9094 | $as_test_x conftest$ac_exeext; then | ||
9095 | ac_cv_lib_nsl_yp_match=yes | ||
9096 | else | ||
9097 | echo "$as_me: failed program was:" >&5 | ||
9098 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9099 | |||
9100 | ac_cv_lib_nsl_yp_match=no | ||
9101 | fi | ||
9102 | |||
9103 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9104 | conftest$ac_exeext conftest.$ac_ext | ||
9105 | LIBS=$ac_check_lib_save_LIBS | ||
9106 | fi | ||
9107 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
9108 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; } | ||
9109 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
9110 | cat >>confdefs.h <<_ACEOF | ||
9111 | #define HAVE_LIBNSL 1 | ||
9112 | _ACEOF | ||
9113 | |||
9114 | LIBS="-lnsl $LIBS" | ||
9115 | |||
9116 | fi | ||
9117 | |||
9118 | fi | ||
9119 | |||
9120 | { echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
9121 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } | ||
9122 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
9123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9124 | else | ||
9125 | cat >conftest.$ac_ext <<_ACEOF | ||
9126 | /* confdefs.h. */ | ||
9127 | _ACEOF | ||
9128 | cat confdefs.h >>conftest.$ac_ext | ||
9129 | cat >>conftest.$ac_ext <<_ACEOF | ||
9130 | /* end confdefs.h. */ | ||
9131 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
9132 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9133 | #define setsockopt innocuous_setsockopt | ||
9134 | |||
9135 | /* System header to define __stub macros and hopefully few prototypes, | ||
9136 | which can conflict with char setsockopt (); below. | ||
9137 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9138 | <limits.h> exists even on freestanding compilers. */ | ||
9139 | |||
9140 | #ifdef __STDC__ | ||
9141 | # include <limits.h> | ||
9142 | #else | ||
9143 | # include <assert.h> | ||
9144 | #endif | ||
9145 | |||
9146 | #undef setsockopt | ||
9147 | |||
9148 | /* Override any GCC internal prototype to avoid an error. | ||
9149 | Use char because int might match the return type of a GCC | ||
9150 | builtin and then its argument prototype would still apply. */ | ||
9151 | #ifdef __cplusplus | ||
9152 | extern "C" | ||
9153 | #endif | ||
9154 | char setsockopt (); | ||
9155 | /* The GNU C library defines this for functions which it implements | ||
9156 | to always fail with ENOSYS. Some functions are actually named | ||
9157 | something starting with __ and the normal name is an alias. */ | ||
9158 | #if defined __stub_setsockopt || defined __stub___setsockopt | ||
9159 | choke me | ||
9160 | #endif | ||
9161 | |||
9162 | int | ||
9163 | main () | ||
9164 | { | ||
9165 | return setsockopt (); | ||
9166 | ; | ||
9167 | return 0; | ||
9168 | } | ||
9169 | _ACEOF | ||
9170 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9171 | if { (ac_try="$ac_link" | ||
9172 | case "(($ac_try" in | ||
9173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9174 | *) ac_try_echo=$ac_try;; | ||
9175 | esac | ||
9176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9177 | (eval "$ac_link") 2>conftest.er1 | ||
9178 | ac_status=$? | ||
9179 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9180 | rm -f conftest.er1 | ||
9181 | cat conftest.err >&5 | ||
9182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9183 | (exit $ac_status); } && { | ||
9184 | test -z "$ac_c_werror_flag" || | ||
9185 | test ! -s conftest.err | ||
9186 | } && test -s conftest$ac_exeext && | ||
9187 | $as_test_x conftest$ac_exeext; then | ||
9188 | ac_cv_func_setsockopt=yes | ||
9189 | else | ||
9190 | echo "$as_me: failed program was:" >&5 | ||
9191 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9192 | |||
9193 | ac_cv_func_setsockopt=no | ||
9194 | fi | ||
9195 | |||
9196 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9197 | conftest$ac_exeext conftest.$ac_ext | ||
9198 | fi | ||
9199 | { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
9200 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } | ||
9201 | if test $ac_cv_func_setsockopt = yes; then | ||
9202 | : | ||
9203 | else | ||
9204 | |||
9205 | { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
9206 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } | ||
9207 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
9208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9209 | else | ||
9210 | ac_check_lib_save_LIBS=$LIBS | ||
9211 | LIBS="-lsocket $LIBS" | ||
9212 | cat >conftest.$ac_ext <<_ACEOF | ||
9213 | /* confdefs.h. */ | ||
9214 | _ACEOF | ||
9215 | cat confdefs.h >>conftest.$ac_ext | ||
9216 | cat >>conftest.$ac_ext <<_ACEOF | ||
9217 | /* end confdefs.h. */ | ||
9218 | |||
9219 | /* Override any GCC internal prototype to avoid an error. | ||
9220 | Use char because int might match the return type of a GCC | ||
9221 | builtin and then its argument prototype would still apply. */ | ||
9222 | #ifdef __cplusplus | ||
9223 | extern "C" | ||
9224 | #endif | ||
9225 | char setsockopt (); | ||
9226 | int | ||
9227 | main () | ||
9228 | { | ||
9229 | return setsockopt (); | ||
9230 | ; | ||
9231 | return 0; | ||
9232 | } | ||
9233 | _ACEOF | ||
9234 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9235 | if { (ac_try="$ac_link" | ||
9236 | case "(($ac_try" in | ||
9237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9238 | *) ac_try_echo=$ac_try;; | ||
9239 | esac | ||
9240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9241 | (eval "$ac_link") 2>conftest.er1 | ||
9242 | ac_status=$? | ||
9243 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9244 | rm -f conftest.er1 | ||
9245 | cat conftest.err >&5 | ||
9246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9247 | (exit $ac_status); } && { | ||
9248 | test -z "$ac_c_werror_flag" || | ||
9249 | test ! -s conftest.err | ||
9250 | } && test -s conftest$ac_exeext && | ||
9251 | $as_test_x conftest$ac_exeext; then | ||
9252 | ac_cv_lib_socket_setsockopt=yes | ||
9253 | else | ||
9254 | echo "$as_me: failed program was:" >&5 | ||
9255 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9256 | |||
9257 | ac_cv_lib_socket_setsockopt=no | ||
9258 | fi | ||
9259 | |||
9260 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9261 | conftest$ac_exeext conftest.$ac_ext | ||
9262 | LIBS=$ac_check_lib_save_LIBS | ||
9263 | fi | ||
9264 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
9265 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } | ||
9266 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
9267 | cat >>confdefs.h <<_ACEOF | ||
9268 | #define HAVE_LIBSOCKET 1 | ||
9269 | _ACEOF | ||
9270 | |||
9271 | LIBS="-lsocket $LIBS" | ||
9272 | |||
9273 | fi | ||
9274 | |||
9275 | fi | ||
9276 | |||
9277 | |||
9278 | |||
9279 | for ac_func in dirname | ||
9280 | do | ||
9281 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9282 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9283 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9284 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9286 | else | ||
9287 | cat >conftest.$ac_ext <<_ACEOF | ||
9288 | /* confdefs.h. */ | ||
9289 | _ACEOF | ||
9290 | cat confdefs.h >>conftest.$ac_ext | ||
9291 | cat >>conftest.$ac_ext <<_ACEOF | ||
9292 | /* end confdefs.h. */ | ||
9293 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9294 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9295 | #define $ac_func innocuous_$ac_func | ||
9296 | |||
9297 | /* System header to define __stub macros and hopefully few prototypes, | ||
9298 | which can conflict with char $ac_func (); below. | ||
9299 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9300 | <limits.h> exists even on freestanding compilers. */ | ||
9301 | |||
9302 | #ifdef __STDC__ | ||
9303 | # include <limits.h> | ||
9304 | #else | ||
9305 | # include <assert.h> | ||
9306 | #endif | ||
9307 | |||
9308 | #undef $ac_func | ||
9309 | |||
9310 | /* Override any GCC internal prototype to avoid an error. | ||
9311 | Use char because int might match the return type of a GCC | ||
9312 | builtin and then its argument prototype would still apply. */ | ||
9313 | #ifdef __cplusplus | ||
9314 | extern "C" | ||
9315 | #endif | ||
9316 | char $ac_func (); | ||
9317 | /* The GNU C library defines this for functions which it implements | ||
9318 | to always fail with ENOSYS. Some functions are actually named | ||
9319 | something starting with __ and the normal name is an alias. */ | ||
9320 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9321 | choke me | ||
9322 | #endif | ||
9323 | |||
9324 | int | ||
9325 | main () | ||
9326 | { | ||
9327 | return $ac_func (); | ||
9328 | ; | ||
9329 | return 0; | ||
9330 | } | ||
9331 | _ACEOF | ||
9332 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9333 | if { (ac_try="$ac_link" | ||
9334 | case "(($ac_try" in | ||
9335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9336 | *) ac_try_echo=$ac_try;; | ||
9337 | esac | ||
9338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9339 | (eval "$ac_link") 2>conftest.er1 | ||
9340 | ac_status=$? | ||
9341 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9342 | rm -f conftest.er1 | ||
9343 | cat conftest.err >&5 | ||
9344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9345 | (exit $ac_status); } && { | ||
9346 | test -z "$ac_c_werror_flag" || | ||
9347 | test ! -s conftest.err | ||
9348 | } && test -s conftest$ac_exeext && | ||
9349 | $as_test_x conftest$ac_exeext; then | ||
9350 | eval "$as_ac_var=yes" | ||
9351 | else | ||
9352 | echo "$as_me: failed program was:" >&5 | ||
9353 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9354 | |||
9355 | eval "$as_ac_var=no" | ||
9356 | fi | ||
9357 | |||
9358 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9359 | conftest$ac_exeext conftest.$ac_ext | ||
9360 | fi | ||
9361 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9362 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9363 | echo "${ECHO_T}$ac_res" >&6; } | ||
9364 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9365 | cat >>confdefs.h <<_ACEOF | ||
9366 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9367 | _ACEOF | ||
9368 | |||
9369 | for ac_header in libgen.h | ||
9370 | do | ||
9371 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9372 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9373 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9374 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9375 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9377 | fi | ||
9378 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9379 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9380 | echo "${ECHO_T}$ac_res" >&6; } | ||
9381 | else | ||
9382 | # Is the header compilable? | ||
9383 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9384 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
9385 | cat >conftest.$ac_ext <<_ACEOF | ||
9386 | /* confdefs.h. */ | ||
9387 | _ACEOF | ||
9388 | cat confdefs.h >>conftest.$ac_ext | ||
9389 | cat >>conftest.$ac_ext <<_ACEOF | ||
9390 | /* end confdefs.h. */ | ||
9391 | $ac_includes_default | ||
9392 | #include <$ac_header> | ||
9393 | _ACEOF | ||
9394 | rm -f conftest.$ac_objext | ||
9395 | if { (ac_try="$ac_compile" | ||
9396 | case "(($ac_try" in | ||
9397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9398 | *) ac_try_echo=$ac_try;; | ||
9399 | esac | ||
9400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9401 | (eval "$ac_compile") 2>conftest.er1 | ||
9402 | ac_status=$? | ||
9403 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9404 | rm -f conftest.er1 | ||
9405 | cat conftest.err >&5 | ||
9406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9407 | (exit $ac_status); } && { | ||
9408 | test -z "$ac_c_werror_flag" || | ||
9409 | test ! -s conftest.err | ||
9410 | } && test -s conftest.$ac_objext; then | ||
9411 | ac_header_compiler=yes | ||
9412 | else | ||
9413 | echo "$as_me: failed program was:" >&5 | ||
9414 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9415 | |||
9416 | ac_header_compiler=no | ||
9417 | fi | ||
9418 | |||
9419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9420 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9421 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
9422 | |||
9423 | # Is the header present? | ||
9424 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9425 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
9426 | cat >conftest.$ac_ext <<_ACEOF | ||
9427 | /* confdefs.h. */ | ||
9428 | _ACEOF | ||
9429 | cat confdefs.h >>conftest.$ac_ext | ||
9430 | cat >>conftest.$ac_ext <<_ACEOF | ||
9431 | /* end confdefs.h. */ | ||
9432 | #include <$ac_header> | ||
9433 | _ACEOF | ||
9434 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
9435 | case "(($ac_try" in | ||
9436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9437 | *) ac_try_echo=$ac_try;; | ||
9438 | esac | ||
9439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9440 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
9441 | ac_status=$? | ||
9442 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9443 | rm -f conftest.er1 | ||
9444 | cat conftest.err >&5 | ||
9445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9446 | (exit $ac_status); } >/dev/null && { | ||
9447 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
9448 | test ! -s conftest.err | ||
9449 | }; then | ||
9450 | ac_header_preproc=yes | ||
9451 | else | ||
9452 | echo "$as_me: failed program was:" >&5 | ||
9453 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9454 | |||
9455 | ac_header_preproc=no | ||
9456 | fi | ||
9457 | |||
9458 | rm -f conftest.err conftest.$ac_ext | ||
9459 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9460 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
9461 | |||
9462 | # So? What about this header? | ||
9463 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9464 | yes:no: ) | ||
9465 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9466 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9467 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
9468 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
9469 | ac_header_preproc=yes | ||
9470 | ;; | ||
9471 | no:yes:* ) | ||
9472 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
9473 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
9474 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
9475 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
9476 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
9477 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
9478 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
9479 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9480 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
9481 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
9482 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
9483 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
9484 | ( cat <<\_ASBOX | ||
9485 | ## ------------------------------------------- ## | ||
9486 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
9487 | ## ------------------------------------------- ## | ||
9488 | _ASBOX | ||
9489 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
9490 | ;; | ||
9491 | esac | ||
9492 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9494 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9496 | else | ||
9497 | eval "$as_ac_Header=\$ac_header_preproc" | ||
9498 | fi | ||
9499 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9500 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9501 | echo "${ECHO_T}$ac_res" >&6; } | ||
9502 | |||
9503 | fi | ||
9504 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
9505 | cat >>confdefs.h <<_ACEOF | ||
9506 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9507 | _ACEOF | ||
9508 | |||
9509 | fi | ||
9510 | |||
9511 | done | ||
9512 | |||
9513 | else | ||
9514 | |||
9515 | { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
9516 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; } | ||
9517 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
9518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9519 | else | ||
9520 | ac_check_lib_save_LIBS=$LIBS | ||
9521 | LIBS="-lgen $LIBS" | ||
9522 | cat >conftest.$ac_ext <<_ACEOF | ||
9523 | /* confdefs.h. */ | ||
9524 | _ACEOF | ||
9525 | cat confdefs.h >>conftest.$ac_ext | ||
9526 | cat >>conftest.$ac_ext <<_ACEOF | ||
9527 | /* end confdefs.h. */ | ||
9528 | |||
9529 | /* Override any GCC internal prototype to avoid an error. | ||
9530 | Use char because int might match the return type of a GCC | ||
9531 | builtin and then its argument prototype would still apply. */ | ||
9532 | #ifdef __cplusplus | ||
9533 | extern "C" | ||
9534 | #endif | ||
9535 | char dirname (); | ||
9536 | int | ||
9537 | main () | ||
9538 | { | ||
9539 | return dirname (); | ||
9540 | ; | ||
9541 | return 0; | ||
9542 | } | ||
9543 | _ACEOF | ||
9544 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9545 | if { (ac_try="$ac_link" | ||
9546 | case "(($ac_try" in | ||
9547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9548 | *) ac_try_echo=$ac_try;; | ||
9549 | esac | ||
9550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9551 | (eval "$ac_link") 2>conftest.er1 | ||
9552 | ac_status=$? | ||
9553 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9554 | rm -f conftest.er1 | ||
9555 | cat conftest.err >&5 | ||
9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9557 | (exit $ac_status); } && { | ||
9558 | test -z "$ac_c_werror_flag" || | ||
9559 | test ! -s conftest.err | ||
9560 | } && test -s conftest$ac_exeext && | ||
9561 | $as_test_x conftest$ac_exeext; then | ||
9562 | ac_cv_lib_gen_dirname=yes | ||
9563 | else | ||
9564 | echo "$as_me: failed program was:" >&5 | ||
9565 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9566 | |||
9567 | ac_cv_lib_gen_dirname=no | ||
9568 | fi | ||
9569 | |||
9570 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9571 | conftest$ac_exeext conftest.$ac_ext | ||
9572 | LIBS=$ac_check_lib_save_LIBS | ||
9573 | fi | ||
9574 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
9575 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; } | ||
9576 | if test $ac_cv_lib_gen_dirname = yes; then | ||
9577 | |||
9578 | { echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
9579 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; } | ||
9580 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
9581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9582 | else | ||
9583 | |||
9584 | save_LIBS="$LIBS" | ||
9585 | LIBS="$LIBS -lgen" | ||
9586 | if test "$cross_compiling" = yes; then | ||
9587 | ac_cv_have_broken_dirname="no" | ||
9588 | else | ||
9589 | cat >conftest.$ac_ext <<_ACEOF | ||
9590 | /* confdefs.h. */ | ||
9591 | _ACEOF | ||
9592 | cat confdefs.h >>conftest.$ac_ext | ||
9593 | cat >>conftest.$ac_ext <<_ACEOF | ||
9594 | /* end confdefs.h. */ | ||
9595 | |||
9596 | #include <libgen.h> | ||
9597 | #include <string.h> | ||
9598 | |||
9599 | int main(int argc, char **argv) { | ||
9600 | char *s, buf[32]; | ||
9601 | |||
9602 | strncpy(buf,"/etc", 32); | ||
9603 | s = dirname(buf); | ||
9604 | if (!s || strncmp(s, "/", 32) != 0) { | ||
9605 | exit(1); | ||
9606 | } else { | ||
9607 | exit(0); | ||
9608 | } | ||
9609 | } | ||
9610 | |||
9611 | _ACEOF | ||
9612 | rm -f conftest$ac_exeext | ||
9613 | if { (ac_try="$ac_link" | ||
9614 | case "(($ac_try" in | ||
9615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9616 | *) ac_try_echo=$ac_try;; | ||
9617 | esac | ||
9618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9619 | (eval "$ac_link") 2>&5 | ||
9620 | ac_status=$? | ||
9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9622 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9623 | { (case "(($ac_try" in | ||
9624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9625 | *) ac_try_echo=$ac_try;; | ||
9626 | esac | ||
9627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9628 | (eval "$ac_try") 2>&5 | ||
9629 | ac_status=$? | ||
9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9631 | (exit $ac_status); }; }; then | ||
9632 | ac_cv_have_broken_dirname="no" | ||
9633 | else | ||
9634 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9635 | echo "$as_me: failed program was:" >&5 | ||
9636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9637 | |||
9638 | ( exit $ac_status ) | ||
9639 | ac_cv_have_broken_dirname="yes" | ||
9640 | fi | ||
9641 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9642 | fi | ||
9643 | |||
9644 | |||
9645 | LIBS="$save_LIBS" | ||
9646 | |||
9647 | fi | ||
9648 | { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
9649 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; } | ||
9650 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
9651 | LIBS="$LIBS -lgen" | ||
9652 | cat >>confdefs.h <<\_ACEOF | ||
9653 | #define HAVE_DIRNAME 1 | ||
9654 | _ACEOF | ||
9655 | |||
9656 | |||
9657 | for ac_header in libgen.h | ||
9658 | do | ||
9659 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9660 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9661 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9663 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9665 | fi | ||
9666 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9667 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9668 | echo "${ECHO_T}$ac_res" >&6; } | ||
9669 | else | ||
9670 | # Is the header compilable? | ||
9671 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9672 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
9673 | cat >conftest.$ac_ext <<_ACEOF | ||
9674 | /* confdefs.h. */ | ||
9675 | _ACEOF | ||
9676 | cat confdefs.h >>conftest.$ac_ext | ||
9677 | cat >>conftest.$ac_ext <<_ACEOF | ||
9678 | /* end confdefs.h. */ | ||
9679 | $ac_includes_default | ||
9680 | #include <$ac_header> | ||
9681 | _ACEOF | ||
9682 | rm -f conftest.$ac_objext | ||
9683 | if { (ac_try="$ac_compile" | ||
9684 | case "(($ac_try" in | ||
9685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9686 | *) ac_try_echo=$ac_try;; | ||
9687 | esac | ||
9688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9689 | (eval "$ac_compile") 2>conftest.er1 | ||
9690 | ac_status=$? | ||
9691 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9692 | rm -f conftest.er1 | ||
9693 | cat conftest.err >&5 | ||
9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9695 | (exit $ac_status); } && { | ||
9696 | test -z "$ac_c_werror_flag" || | ||
9697 | test ! -s conftest.err | ||
9698 | } && test -s conftest.$ac_objext; then | ||
9699 | ac_header_compiler=yes | ||
9700 | else | ||
9701 | echo "$as_me: failed program was:" >&5 | ||
9702 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9703 | |||
9704 | ac_header_compiler=no | ||
9705 | fi | ||
9706 | |||
9707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9708 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9709 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
9710 | |||
9711 | # Is the header present? | ||
9712 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9713 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
9714 | cat >conftest.$ac_ext <<_ACEOF | ||
9715 | /* confdefs.h. */ | ||
9716 | _ACEOF | ||
9717 | cat confdefs.h >>conftest.$ac_ext | ||
9718 | cat >>conftest.$ac_ext <<_ACEOF | ||
9719 | /* end confdefs.h. */ | ||
9720 | #include <$ac_header> | ||
9721 | _ACEOF | ||
9722 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
9723 | case "(($ac_try" in | ||
9724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9725 | *) ac_try_echo=$ac_try;; | ||
9726 | esac | ||
9727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9728 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
9729 | ac_status=$? | ||
9730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9731 | rm -f conftest.er1 | ||
9732 | cat conftest.err >&5 | ||
9733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9734 | (exit $ac_status); } >/dev/null && { | ||
9735 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
9736 | test ! -s conftest.err | ||
9737 | }; then | ||
9738 | ac_header_preproc=yes | ||
9739 | else | ||
9740 | echo "$as_me: failed program was:" >&5 | ||
9741 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9742 | |||
9743 | ac_header_preproc=no | ||
9744 | fi | ||
9745 | |||
9746 | rm -f conftest.err conftest.$ac_ext | ||
9747 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9748 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
9749 | |||
9750 | # So? What about this header? | ||
9751 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9752 | yes:no: ) | ||
9753 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9754 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9755 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
9756 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
9757 | ac_header_preproc=yes | ||
9758 | ;; | ||
9759 | no:yes:* ) | ||
9760 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
9761 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
9762 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
9763 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
9764 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
9765 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
9766 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
9767 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9768 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
9769 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
9770 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
9771 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
9772 | ( cat <<\_ASBOX | ||
9773 | ## ------------------------------------------- ## | ||
9774 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
9775 | ## ------------------------------------------- ## | ||
9776 | _ASBOX | ||
9777 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
9778 | ;; | ||
9779 | esac | ||
9780 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9782 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9784 | else | ||
9785 | eval "$as_ac_Header=\$ac_header_preproc" | ||
9786 | fi | ||
9787 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9788 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9789 | echo "${ECHO_T}$ac_res" >&6; } | ||
9790 | |||
9791 | fi | ||
9792 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
9793 | cat >>confdefs.h <<_ACEOF | ||
9794 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9795 | _ACEOF | ||
9796 | |||
9797 | fi | ||
9798 | |||
9799 | done | ||
9800 | |||
9801 | fi | ||
9802 | |||
9803 | fi | ||
9804 | |||
9805 | |||
9806 | fi | ||
9807 | done | ||
9808 | |||
9809 | |||
9810 | { echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
9811 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; } | ||
9812 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
9813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9814 | else | ||
9815 | cat >conftest.$ac_ext <<_ACEOF | ||
9816 | /* confdefs.h. */ | ||
9817 | _ACEOF | ||
9818 | cat confdefs.h >>conftest.$ac_ext | ||
9819 | cat >>conftest.$ac_ext <<_ACEOF | ||
9820 | /* end confdefs.h. */ | ||
9821 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
9822 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9823 | #define getspnam innocuous_getspnam | ||
9824 | |||
9825 | /* System header to define __stub macros and hopefully few prototypes, | ||
9826 | which can conflict with char getspnam (); below. | ||
9827 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9828 | <limits.h> exists even on freestanding compilers. */ | ||
9829 | |||
9830 | #ifdef __STDC__ | ||
9831 | # include <limits.h> | ||
9832 | #else | ||
9833 | # include <assert.h> | ||
9834 | #endif | ||
9835 | |||
9836 | #undef getspnam | ||
9837 | |||
9838 | /* Override any GCC internal prototype to avoid an error. | ||
9839 | Use char because int might match the return type of a GCC | ||
9840 | builtin and then its argument prototype would still apply. */ | ||
9841 | #ifdef __cplusplus | ||
9842 | extern "C" | ||
9843 | #endif | ||
9844 | char getspnam (); | ||
9845 | /* The GNU C library defines this for functions which it implements | ||
9846 | to always fail with ENOSYS. Some functions are actually named | ||
9847 | something starting with __ and the normal name is an alias. */ | ||
9848 | #if defined __stub_getspnam || defined __stub___getspnam | ||
9849 | choke me | ||
9850 | #endif | ||
9851 | |||
9852 | int | ||
9853 | main () | ||
9854 | { | ||
9855 | return getspnam (); | ||
9856 | ; | ||
9857 | return 0; | ||
9858 | } | ||
9859 | _ACEOF | ||
9860 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9861 | if { (ac_try="$ac_link" | ||
9862 | case "(($ac_try" in | ||
9863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9864 | *) ac_try_echo=$ac_try;; | ||
9865 | esac | ||
9866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9867 | (eval "$ac_link") 2>conftest.er1 | ||
9868 | ac_status=$? | ||
9869 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9870 | rm -f conftest.er1 | ||
9871 | cat conftest.err >&5 | ||
9872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9873 | (exit $ac_status); } && { | ||
9874 | test -z "$ac_c_werror_flag" || | ||
9875 | test ! -s conftest.err | ||
9876 | } && test -s conftest$ac_exeext && | ||
9877 | $as_test_x conftest$ac_exeext; then | ||
9878 | ac_cv_func_getspnam=yes | ||
9879 | else | ||
9880 | echo "$as_me: failed program was:" >&5 | ||
9881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9882 | |||
9883 | ac_cv_func_getspnam=no | ||
9884 | fi | ||
9885 | |||
9886 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9887 | conftest$ac_exeext conftest.$ac_ext | ||
9888 | fi | ||
9889 | { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
9890 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6; } | ||
9891 | if test $ac_cv_func_getspnam = yes; then | ||
9892 | : | ||
9893 | else | ||
9894 | { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
9895 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; } | ||
9896 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
9897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9898 | else | ||
9899 | ac_check_lib_save_LIBS=$LIBS | ||
9900 | LIBS="-lgen $LIBS" | ||
9901 | cat >conftest.$ac_ext <<_ACEOF | ||
9902 | /* confdefs.h. */ | ||
9903 | _ACEOF | ||
9904 | cat confdefs.h >>conftest.$ac_ext | ||
9905 | cat >>conftest.$ac_ext <<_ACEOF | ||
9906 | /* end confdefs.h. */ | ||
9907 | |||
9908 | /* Override any GCC internal prototype to avoid an error. | ||
9909 | Use char because int might match the return type of a GCC | ||
9910 | builtin and then its argument prototype would still apply. */ | ||
9911 | #ifdef __cplusplus | ||
9912 | extern "C" | ||
9913 | #endif | ||
9914 | char getspnam (); | ||
9915 | int | ||
9916 | main () | ||
9917 | { | ||
9918 | return getspnam (); | ||
9919 | ; | ||
9920 | return 0; | ||
9921 | } | ||
9922 | _ACEOF | ||
9923 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9924 | if { (ac_try="$ac_link" | ||
9925 | case "(($ac_try" in | ||
9926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9927 | *) ac_try_echo=$ac_try;; | ||
9928 | esac | ||
9929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9930 | (eval "$ac_link") 2>conftest.er1 | ||
9931 | ac_status=$? | ||
9932 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9933 | rm -f conftest.er1 | ||
9934 | cat conftest.err >&5 | ||
9935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9936 | (exit $ac_status); } && { | ||
9937 | test -z "$ac_c_werror_flag" || | ||
9938 | test ! -s conftest.err | ||
9939 | } && test -s conftest$ac_exeext && | ||
9940 | $as_test_x conftest$ac_exeext; then | ||
9941 | ac_cv_lib_gen_getspnam=yes | ||
9942 | else | ||
9943 | echo "$as_me: failed program was:" >&5 | ||
9944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9945 | |||
9946 | ac_cv_lib_gen_getspnam=no | ||
9947 | fi | ||
9948 | |||
9949 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9950 | conftest$ac_exeext conftest.$ac_ext | ||
9951 | LIBS=$ac_check_lib_save_LIBS | ||
9952 | fi | ||
9953 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
9954 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; } | ||
9955 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
9956 | LIBS="$LIBS -lgen" | ||
9957 | fi | ||
9958 | |||
9959 | fi | ||
9960 | |||
9961 | { echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
9962 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; } | ||
9963 | if test "${ac_cv_search_basename+set}" = set; then | ||
9964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9965 | else | ||
9966 | ac_func_search_save_LIBS=$LIBS | ||
9967 | cat >conftest.$ac_ext <<_ACEOF | ||
9968 | /* confdefs.h. */ | ||
9969 | _ACEOF | ||
9970 | cat confdefs.h >>conftest.$ac_ext | ||
9971 | cat >>conftest.$ac_ext <<_ACEOF | ||
9972 | /* end confdefs.h. */ | ||
9973 | |||
9974 | /* Override any GCC internal prototype to avoid an error. | ||
9975 | Use char because int might match the return type of a GCC | ||
9976 | builtin and then its argument prototype would still apply. */ | ||
9977 | #ifdef __cplusplus | ||
9978 | extern "C" | ||
9979 | #endif | ||
9980 | char basename (); | ||
9981 | int | ||
9982 | main () | ||
9983 | { | ||
9984 | return basename (); | ||
9985 | ; | ||
9986 | return 0; | ||
9987 | } | ||
9988 | _ACEOF | ||
9989 | for ac_lib in '' gen; do | ||
9990 | if test -z "$ac_lib"; then | ||
9991 | ac_res="none required" | ||
9992 | else | ||
9993 | ac_res=-l$ac_lib | ||
9994 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9995 | fi | ||
9996 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9997 | if { (ac_try="$ac_link" | ||
9998 | case "(($ac_try" in | ||
9999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10000 | *) ac_try_echo=$ac_try;; | ||
10001 | esac | ||
10002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10003 | (eval "$ac_link") 2>conftest.er1 | ||
10004 | ac_status=$? | ||
10005 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10006 | rm -f conftest.er1 | ||
10007 | cat conftest.err >&5 | ||
10008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10009 | (exit $ac_status); } && { | ||
10010 | test -z "$ac_c_werror_flag" || | ||
10011 | test ! -s conftest.err | ||
10012 | } && test -s conftest$ac_exeext && | ||
10013 | $as_test_x conftest$ac_exeext; then | ||
10014 | ac_cv_search_basename=$ac_res | ||
10015 | else | ||
10016 | echo "$as_me: failed program was:" >&5 | ||
10017 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10018 | |||
10019 | |||
10020 | fi | ||
10021 | |||
10022 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10023 | conftest$ac_exeext | ||
10024 | if test "${ac_cv_search_basename+set}" = set; then | ||
10025 | break | ||
10026 | fi | ||
10027 | done | ||
10028 | if test "${ac_cv_search_basename+set}" = set; then | ||
10029 | : | ||
10030 | else | ||
10031 | ac_cv_search_basename=no | ||
10032 | fi | ||
10033 | rm conftest.$ac_ext | ||
10034 | LIBS=$ac_func_search_save_LIBS | ||
10035 | fi | ||
10036 | { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
10037 | echo "${ECHO_T}$ac_cv_search_basename" >&6; } | ||
10038 | ac_res=$ac_cv_search_basename | ||
10039 | if test "$ac_res" != no; then | ||
10040 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10041 | |||
10042 | cat >>confdefs.h <<\_ACEOF | ||
10043 | #define HAVE_BASENAME 1 | ||
10044 | _ACEOF | ||
10045 | |||
10046 | fi | ||
10047 | |||
10048 | |||
10049 | |||
10050 | # Check whether --with-zlib was given. | ||
10051 | if test "${with_zlib+set}" = set; then | ||
10052 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
10053 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
10054 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
10055 | { (exit 1); exit 1; }; } | ||
10056 | elif test "x$withval" != "xyes"; then | ||
10057 | if test -d "$withval/lib"; then | ||
10058 | if test -n "${need_dash_r}"; then | ||
10059 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10060 | else | ||
10061 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10062 | fi | ||
10063 | else | ||
10064 | if test -n "${need_dash_r}"; then | ||
10065 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
10066 | else | ||
10067 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
10068 | fi | ||
10069 | fi | ||
10070 | if test -d "$withval/include"; then | ||
10071 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
10072 | else | ||
10073 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
10074 | fi | ||
10075 | fi | ||
10076 | |||
10077 | fi | ||
10078 | |||
10079 | |||
10080 | |||
10081 | { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
10082 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } | ||
10083 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
10084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10085 | else | ||
10086 | ac_check_lib_save_LIBS=$LIBS | ||
10087 | LIBS="-lz $LIBS" | ||
10088 | cat >conftest.$ac_ext <<_ACEOF | ||
10089 | /* confdefs.h. */ | ||
10090 | _ACEOF | ||
10091 | cat confdefs.h >>conftest.$ac_ext | ||
10092 | cat >>conftest.$ac_ext <<_ACEOF | ||
10093 | /* end confdefs.h. */ | ||
10094 | |||
10095 | /* Override any GCC internal prototype to avoid an error. | ||
10096 | Use char because int might match the return type of a GCC | ||
10097 | builtin and then its argument prototype would still apply. */ | ||
10098 | #ifdef __cplusplus | ||
10099 | extern "C" | ||
10100 | #endif | ||
10101 | char deflate (); | ||
10102 | int | ||
10103 | main () | ||
10104 | { | ||
10105 | return deflate (); | ||
10106 | ; | ||
10107 | return 0; | ||
10108 | } | ||
10109 | _ACEOF | ||
10110 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10111 | if { (ac_try="$ac_link" | ||
10112 | case "(($ac_try" in | ||
10113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10114 | *) ac_try_echo=$ac_try;; | ||
10115 | esac | ||
10116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10117 | (eval "$ac_link") 2>conftest.er1 | ||
10118 | ac_status=$? | ||
10119 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10120 | rm -f conftest.er1 | ||
10121 | cat conftest.err >&5 | ||
10122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10123 | (exit $ac_status); } && { | ||
10124 | test -z "$ac_c_werror_flag" || | ||
10125 | test ! -s conftest.err | ||
10126 | } && test -s conftest$ac_exeext && | ||
10127 | $as_test_x conftest$ac_exeext; then | ||
10128 | ac_cv_lib_z_deflate=yes | ||
10129 | else | ||
10130 | echo "$as_me: failed program was:" >&5 | ||
10131 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10132 | |||
10133 | ac_cv_lib_z_deflate=no | ||
10134 | fi | ||
10135 | |||
10136 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10137 | conftest$ac_exeext conftest.$ac_ext | ||
10138 | LIBS=$ac_check_lib_save_LIBS | ||
10139 | fi | ||
10140 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
10141 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } | ||
10142 | if test $ac_cv_lib_z_deflate = yes; then | ||
10143 | cat >>confdefs.h <<_ACEOF | ||
10144 | #define HAVE_LIBZ 1 | ||
10145 | _ACEOF | ||
10146 | |||
10147 | LIBS="-lz $LIBS" | ||
10148 | |||
10149 | else | ||
10150 | |||
10151 | saved_CPPFLAGS="$CPPFLAGS" | ||
10152 | saved_LDFLAGS="$LDFLAGS" | ||
10153 | save_LIBS="$LIBS" | ||
10154 | if test -n "${need_dash_r}"; then | ||
10155 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
10156 | else | ||
10157 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
10158 | fi | ||
10159 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
10160 | LIBS="$LIBS -lz" | ||
10161 | cat >conftest.$ac_ext <<_ACEOF | ||
10162 | /* confdefs.h. */ | ||
10163 | _ACEOF | ||
10164 | cat confdefs.h >>conftest.$ac_ext | ||
10165 | cat >>conftest.$ac_ext <<_ACEOF | ||
10166 | /* end confdefs.h. */ | ||
10167 | |||
10168 | /* Override any GCC internal prototype to avoid an error. | ||
10169 | Use char because int might match the return type of a GCC | ||
10170 | builtin and then its argument prototype would still apply. */ | ||
10171 | #ifdef __cplusplus | ||
10172 | extern "C" | ||
10173 | #endif | ||
10174 | char deflate (); | ||
10175 | int | ||
10176 | main () | ||
10177 | { | ||
10178 | return deflate (); | ||
10179 | ; | ||
10180 | return 0; | ||
10181 | } | ||
10182 | _ACEOF | ||
10183 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10184 | if { (ac_try="$ac_link" | ||
10185 | case "(($ac_try" in | ||
10186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10187 | *) ac_try_echo=$ac_try;; | ||
10188 | esac | ||
10189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10190 | (eval "$ac_link") 2>conftest.er1 | ||
10191 | ac_status=$? | ||
10192 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10193 | rm -f conftest.er1 | ||
10194 | cat conftest.err >&5 | ||
10195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10196 | (exit $ac_status); } && { | ||
10197 | test -z "$ac_c_werror_flag" || | ||
10198 | test ! -s conftest.err | ||
10199 | } && test -s conftest$ac_exeext && | ||
10200 | $as_test_x conftest$ac_exeext; then | ||
10201 | cat >>confdefs.h <<\_ACEOF | ||
10202 | #define HAVE_LIBZ 1 | ||
10203 | _ACEOF | ||
10204 | |||
10205 | else | ||
10206 | echo "$as_me: failed program was:" >&5 | ||
10207 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10208 | |||
10209 | |||
10210 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
10211 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
10212 | { (exit 1); exit 1; }; } | ||
10213 | |||
10214 | |||
10215 | fi | ||
10216 | |||
10217 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10218 | conftest$ac_exeext conftest.$ac_ext | ||
10219 | |||
10220 | |||
10221 | fi | ||
10222 | |||
10223 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10224 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
10225 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
10226 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10228 | fi | ||
10229 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
10230 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
10231 | else | ||
10232 | # Is the header compilable? | ||
10233 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
10234 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | ||
10235 | cat >conftest.$ac_ext <<_ACEOF | ||
10236 | /* confdefs.h. */ | ||
10237 | _ACEOF | ||
10238 | cat confdefs.h >>conftest.$ac_ext | ||
10239 | cat >>conftest.$ac_ext <<_ACEOF | ||
10240 | /* end confdefs.h. */ | ||
10241 | $ac_includes_default | ||
10242 | #include <zlib.h> | ||
10243 | _ACEOF | ||
10244 | rm -f conftest.$ac_objext | ||
10245 | if { (ac_try="$ac_compile" | ||
10246 | case "(($ac_try" in | ||
10247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10248 | *) ac_try_echo=$ac_try;; | ||
10249 | esac | ||
10250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10251 | (eval "$ac_compile") 2>conftest.er1 | ||
10252 | ac_status=$? | ||
10253 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10254 | rm -f conftest.er1 | ||
10255 | cat conftest.err >&5 | ||
10256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10257 | (exit $ac_status); } && { | ||
10258 | test -z "$ac_c_werror_flag" || | ||
10259 | test ! -s conftest.err | ||
10260 | } && test -s conftest.$ac_objext; then | ||
10261 | ac_header_compiler=yes | ||
10262 | else | ||
10263 | echo "$as_me: failed program was:" >&5 | ||
10264 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10265 | |||
10266 | ac_header_compiler=no | ||
10267 | fi | ||
10268 | |||
10269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10270 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10271 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10272 | |||
10273 | # Is the header present? | ||
10274 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
10275 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | ||
10276 | cat >conftest.$ac_ext <<_ACEOF | ||
10277 | /* confdefs.h. */ | ||
10278 | _ACEOF | ||
10279 | cat confdefs.h >>conftest.$ac_ext | ||
10280 | cat >>conftest.$ac_ext <<_ACEOF | ||
10281 | /* end confdefs.h. */ | ||
10282 | #include <zlib.h> | ||
10283 | _ACEOF | ||
10284 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10285 | case "(($ac_try" in | ||
10286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10287 | *) ac_try_echo=$ac_try;; | ||
10288 | esac | ||
10289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10290 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10291 | ac_status=$? | ||
10292 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10293 | rm -f conftest.er1 | ||
10294 | cat conftest.err >&5 | ||
10295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10296 | (exit $ac_status); } >/dev/null && { | ||
10297 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10298 | test ! -s conftest.err | ||
10299 | }; then | ||
10300 | ac_header_preproc=yes | ||
10301 | else | ||
10302 | echo "$as_me: failed program was:" >&5 | ||
10303 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10304 | |||
10305 | ac_header_preproc=no | ||
10306 | fi | ||
10307 | |||
10308 | rm -f conftest.err conftest.$ac_ext | ||
10309 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10310 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10311 | |||
10312 | # So? What about this header? | ||
10313 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10314 | yes:no: ) | ||
10315 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10316 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10317 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
10318 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
10319 | ac_header_preproc=yes | ||
10320 | ;; | ||
10321 | no:yes:* ) | ||
10322 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
10323 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
10324 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
10325 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
10326 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
10327 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
10328 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
10329 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10330 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
10331 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
10332 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
10333 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
10334 | ( cat <<\_ASBOX | ||
10335 | ## ------------------------------------------- ## | ||
10336 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10337 | ## ------------------------------------------- ## | ||
10338 | _ASBOX | ||
10339 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10340 | ;; | ||
10341 | esac | ||
10342 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
10343 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
10344 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10346 | else | ||
10347 | ac_cv_header_zlib_h=$ac_header_preproc | ||
10348 | fi | ||
10349 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
10350 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
10351 | |||
10352 | fi | ||
10353 | if test $ac_cv_header_zlib_h = yes; then | ||
10354 | : | ||
10355 | else | ||
10356 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
10357 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
10358 | { (exit 1); exit 1; }; } | ||
10359 | fi | ||
10360 | |||
10361 | |||
10362 | |||
10363 | |||
10364 | # Check whether --with-zlib-version-check was given. | ||
10365 | if test "${with_zlib_version_check+set}" = set; then | ||
10366 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
10367 | zlib_check_nonfatal=1 | ||
10368 | fi | ||
10369 | |||
10370 | |||
10371 | fi | ||
10372 | |||
10373 | |||
10374 | { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
10375 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; } | ||
10376 | if test "$cross_compiling" = yes; then | ||
10377 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
10378 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
10379 | |||
10380 | else | ||
10381 | cat >conftest.$ac_ext <<_ACEOF | ||
10382 | /* confdefs.h. */ | ||
10383 | _ACEOF | ||
10384 | cat confdefs.h >>conftest.$ac_ext | ||
10385 | cat >>conftest.$ac_ext <<_ACEOF | ||
10386 | /* end confdefs.h. */ | ||
10387 | |||
10388 | #include <stdio.h> | ||
10389 | #include <zlib.h> | ||
10390 | int main() | ||
10391 | { | ||
10392 | int a=0, b=0, c=0, d=0, n, v; | ||
10393 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
10394 | if (n != 3 && n != 4) | ||
10395 | exit(1); | ||
10396 | v = a*1000000 + b*10000 + c*100 + d; | ||
10397 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
10398 | |||
10399 | /* 1.1.4 is OK */ | ||
10400 | if (a == 1 && b == 1 && c >= 4) | ||
10401 | exit(0); | ||
10402 | |||
10403 | /* 1.2.3 and up are OK */ | ||
10404 | if (v >= 1020300) | ||
10405 | exit(0); | ||
10406 | |||
10407 | exit(2); | ||
10408 | } | ||
10409 | |||
10410 | _ACEOF | ||
10411 | rm -f conftest$ac_exeext | ||
10412 | if { (ac_try="$ac_link" | ||
10413 | case "(($ac_try" in | ||
10414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10415 | *) ac_try_echo=$ac_try;; | ||
10416 | esac | ||
10417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10418 | (eval "$ac_link") 2>&5 | ||
10419 | ac_status=$? | ||
10420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10421 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10422 | { (case "(($ac_try" in | ||
10423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10424 | *) ac_try_echo=$ac_try;; | ||
10425 | esac | ||
10426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10427 | (eval "$ac_try") 2>&5 | ||
10428 | ac_status=$? | ||
10429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10430 | (exit $ac_status); }; }; then | ||
10431 | { echo "$as_me:$LINENO: result: no" >&5 | ||
10432 | echo "${ECHO_T}no" >&6; } | ||
10433 | else | ||
10434 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10435 | echo "$as_me: failed program was:" >&5 | ||
10436 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10437 | |||
10438 | ( exit $ac_status ) | ||
10439 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
10440 | echo "${ECHO_T}yes" >&6; } | ||
10441 | if test -z "$zlib_check_nonfatal" ; then | ||
10442 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
10443 | Your reported zlib version has known security problems. It's possible your | ||
10444 | vendor has fixed these problems without changing the version number. If you | ||
10445 | are sure this is the case, you can disable the check by running | ||
10446 | \"./configure --without-zlib-version-check\". | ||
10447 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
10448 | See http://www.gzip.org/zlib/ for details." >&5 | ||
10449 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
10450 | Your reported zlib version has known security problems. It's possible your | ||
10451 | vendor has fixed these problems without changing the version number. If you | ||
10452 | are sure this is the case, you can disable the check by running | ||
10453 | \"./configure --without-zlib-version-check\". | ||
10454 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
10455 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
10456 | { (exit 1); exit 1; }; } | ||
10457 | else | ||
10458 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
10459 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
10460 | fi | ||
10461 | |||
10462 | fi | ||
10463 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10464 | fi | ||
10465 | |||
10466 | |||
10467 | |||
10468 | { echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
10469 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; } | ||
10470 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
10471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10472 | else | ||
10473 | cat >conftest.$ac_ext <<_ACEOF | ||
10474 | /* confdefs.h. */ | ||
10475 | _ACEOF | ||
10476 | cat confdefs.h >>conftest.$ac_ext | ||
10477 | cat >>conftest.$ac_ext <<_ACEOF | ||
10478 | /* end confdefs.h. */ | ||
10479 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
10480 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10481 | #define strcasecmp innocuous_strcasecmp | ||
10482 | |||
10483 | /* System header to define __stub macros and hopefully few prototypes, | ||
10484 | which can conflict with char strcasecmp (); below. | ||
10485 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10486 | <limits.h> exists even on freestanding compilers. */ | ||
10487 | |||
10488 | #ifdef __STDC__ | ||
10489 | # include <limits.h> | ||
10490 | #else | ||
10491 | # include <assert.h> | ||
10492 | #endif | ||
10493 | |||
10494 | #undef strcasecmp | ||
10495 | |||
10496 | /* Override any GCC internal prototype to avoid an error. | ||
10497 | Use char because int might match the return type of a GCC | ||
10498 | builtin and then its argument prototype would still apply. */ | ||
10499 | #ifdef __cplusplus | ||
10500 | extern "C" | ||
10501 | #endif | ||
10502 | char strcasecmp (); | ||
10503 | /* The GNU C library defines this for functions which it implements | ||
10504 | to always fail with ENOSYS. Some functions are actually named | ||
10505 | something starting with __ and the normal name is an alias. */ | ||
10506 | #if defined __stub_strcasecmp || defined __stub___strcasecmp | ||
10507 | choke me | ||
10508 | #endif | ||
10509 | |||
10510 | int | ||
10511 | main () | ||
10512 | { | ||
10513 | return strcasecmp (); | ||
10514 | ; | ||
10515 | return 0; | ||
10516 | } | ||
10517 | _ACEOF | ||
10518 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10519 | if { (ac_try="$ac_link" | ||
10520 | case "(($ac_try" in | ||
10521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10522 | *) ac_try_echo=$ac_try;; | ||
10523 | esac | ||
10524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10525 | (eval "$ac_link") 2>conftest.er1 | ||
10526 | ac_status=$? | ||
10527 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10528 | rm -f conftest.er1 | ||
10529 | cat conftest.err >&5 | ||
10530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10531 | (exit $ac_status); } && { | ||
10532 | test -z "$ac_c_werror_flag" || | ||
10533 | test ! -s conftest.err | ||
10534 | } && test -s conftest$ac_exeext && | ||
10535 | $as_test_x conftest$ac_exeext; then | ||
10536 | ac_cv_func_strcasecmp=yes | ||
10537 | else | ||
10538 | echo "$as_me: failed program was:" >&5 | ||
10539 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10540 | |||
10541 | ac_cv_func_strcasecmp=no | ||
10542 | fi | ||
10543 | |||
10544 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10545 | conftest$ac_exeext conftest.$ac_ext | ||
10546 | fi | ||
10547 | { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
10548 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; } | ||
10549 | if test $ac_cv_func_strcasecmp = yes; then | ||
10550 | : | ||
10551 | else | ||
10552 | { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
10553 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; } | ||
10554 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
10555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10556 | else | ||
10557 | ac_check_lib_save_LIBS=$LIBS | ||
10558 | LIBS="-lresolv $LIBS" | ||
10559 | cat >conftest.$ac_ext <<_ACEOF | ||
10560 | /* confdefs.h. */ | ||
10561 | _ACEOF | ||
10562 | cat confdefs.h >>conftest.$ac_ext | ||
10563 | cat >>conftest.$ac_ext <<_ACEOF | ||
10564 | /* end confdefs.h. */ | ||
10565 | |||
10566 | /* Override any GCC internal prototype to avoid an error. | ||
10567 | Use char because int might match the return type of a GCC | ||
10568 | builtin and then its argument prototype would still apply. */ | ||
10569 | #ifdef __cplusplus | ||
10570 | extern "C" | ||
10571 | #endif | ||
10572 | char strcasecmp (); | ||
10573 | int | ||
10574 | main () | ||
10575 | { | ||
10576 | return strcasecmp (); | ||
10577 | ; | ||
10578 | return 0; | ||
10579 | } | ||
10580 | _ACEOF | ||
10581 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10582 | if { (ac_try="$ac_link" | ||
10583 | case "(($ac_try" in | ||
10584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10585 | *) ac_try_echo=$ac_try;; | ||
10586 | esac | ||
10587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10588 | (eval "$ac_link") 2>conftest.er1 | ||
10589 | ac_status=$? | ||
10590 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10591 | rm -f conftest.er1 | ||
10592 | cat conftest.err >&5 | ||
10593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10594 | (exit $ac_status); } && { | ||
10595 | test -z "$ac_c_werror_flag" || | ||
10596 | test ! -s conftest.err | ||
10597 | } && test -s conftest$ac_exeext && | ||
10598 | $as_test_x conftest$ac_exeext; then | ||
10599 | ac_cv_lib_resolv_strcasecmp=yes | ||
10600 | else | ||
10601 | echo "$as_me: failed program was:" >&5 | ||
10602 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10603 | |||
10604 | ac_cv_lib_resolv_strcasecmp=no | ||
10605 | fi | ||
10606 | |||
10607 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10608 | conftest$ac_exeext conftest.$ac_ext | ||
10609 | LIBS=$ac_check_lib_save_LIBS | ||
10610 | fi | ||
10611 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
10612 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
10613 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
10614 | LIBS="$LIBS -lresolv" | ||
10615 | fi | ||
10616 | |||
10617 | |||
10618 | fi | ||
10619 | |||
10620 | |||
10621 | for ac_func in utimes | ||
10622 | do | ||
10623 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10624 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10625 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
10626 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10628 | else | ||
10629 | cat >conftest.$ac_ext <<_ACEOF | ||
10630 | /* confdefs.h. */ | ||
10631 | _ACEOF | ||
10632 | cat confdefs.h >>conftest.$ac_ext | ||
10633 | cat >>conftest.$ac_ext <<_ACEOF | ||
10634 | /* end confdefs.h. */ | ||
10635 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10636 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10637 | #define $ac_func innocuous_$ac_func | ||
10638 | |||
10639 | /* System header to define __stub macros and hopefully few prototypes, | ||
10640 | which can conflict with char $ac_func (); below. | ||
10641 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10642 | <limits.h> exists even on freestanding compilers. */ | ||
10643 | |||
10644 | #ifdef __STDC__ | ||
10645 | # include <limits.h> | ||
10646 | #else | ||
10647 | # include <assert.h> | ||
10648 | #endif | ||
10649 | |||
10650 | #undef $ac_func | ||
10651 | |||
10652 | /* Override any GCC internal prototype to avoid an error. | ||
10653 | Use char because int might match the return type of a GCC | ||
10654 | builtin and then its argument prototype would still apply. */ | ||
10655 | #ifdef __cplusplus | ||
10656 | extern "C" | ||
10657 | #endif | ||
10658 | char $ac_func (); | ||
10659 | /* The GNU C library defines this for functions which it implements | ||
10660 | to always fail with ENOSYS. Some functions are actually named | ||
10661 | something starting with __ and the normal name is an alias. */ | ||
10662 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
10663 | choke me | ||
10664 | #endif | ||
10665 | |||
10666 | int | ||
10667 | main () | ||
10668 | { | ||
10669 | return $ac_func (); | ||
10670 | ; | ||
10671 | return 0; | ||
10672 | } | ||
10673 | _ACEOF | ||
10674 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10675 | if { (ac_try="$ac_link" | ||
10676 | case "(($ac_try" in | ||
10677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10678 | *) ac_try_echo=$ac_try;; | ||
10679 | esac | ||
10680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10681 | (eval "$ac_link") 2>conftest.er1 | ||
10682 | ac_status=$? | ||
10683 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10684 | rm -f conftest.er1 | ||
10685 | cat conftest.err >&5 | ||
10686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10687 | (exit $ac_status); } && { | ||
10688 | test -z "$ac_c_werror_flag" || | ||
10689 | test ! -s conftest.err | ||
10690 | } && test -s conftest$ac_exeext && | ||
10691 | $as_test_x conftest$ac_exeext; then | ||
10692 | eval "$as_ac_var=yes" | ||
10693 | else | ||
10694 | echo "$as_me: failed program was:" >&5 | ||
10695 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10696 | |||
10697 | eval "$as_ac_var=no" | ||
10698 | fi | ||
10699 | |||
10700 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10701 | conftest$ac_exeext conftest.$ac_ext | ||
10702 | fi | ||
10703 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
10704 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10705 | echo "${ECHO_T}$ac_res" >&6; } | ||
10706 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10707 | cat >>confdefs.h <<_ACEOF | ||
10708 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10709 | _ACEOF | ||
10710 | |||
10711 | else | ||
10712 | { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
10713 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; } | ||
10714 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
10715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10716 | else | ||
10717 | ac_check_lib_save_LIBS=$LIBS | ||
10718 | LIBS="-lc89 $LIBS" | ||
10719 | cat >conftest.$ac_ext <<_ACEOF | ||
10720 | /* confdefs.h. */ | ||
10721 | _ACEOF | ||
10722 | cat confdefs.h >>conftest.$ac_ext | ||
10723 | cat >>conftest.$ac_ext <<_ACEOF | ||
10724 | /* end confdefs.h. */ | ||
10725 | |||
10726 | /* Override any GCC internal prototype to avoid an error. | ||
10727 | Use char because int might match the return type of a GCC | ||
10728 | builtin and then its argument prototype would still apply. */ | ||
10729 | #ifdef __cplusplus | ||
10730 | extern "C" | ||
10731 | #endif | ||
10732 | char utimes (); | ||
10733 | int | ||
10734 | main () | ||
10735 | { | ||
10736 | return utimes (); | ||
10737 | ; | ||
10738 | return 0; | ||
10739 | } | ||
10740 | _ACEOF | ||
10741 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10742 | if { (ac_try="$ac_link" | ||
10743 | case "(($ac_try" in | ||
10744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10745 | *) ac_try_echo=$ac_try;; | ||
10746 | esac | ||
10747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10748 | (eval "$ac_link") 2>conftest.er1 | ||
10749 | ac_status=$? | ||
10750 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10751 | rm -f conftest.er1 | ||
10752 | cat conftest.err >&5 | ||
10753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10754 | (exit $ac_status); } && { | ||
10755 | test -z "$ac_c_werror_flag" || | ||
10756 | test ! -s conftest.err | ||
10757 | } && test -s conftest$ac_exeext && | ||
10758 | $as_test_x conftest$ac_exeext; then | ||
10759 | ac_cv_lib_c89_utimes=yes | ||
10760 | else | ||
10761 | echo "$as_me: failed program was:" >&5 | ||
10762 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10763 | |||
10764 | ac_cv_lib_c89_utimes=no | ||
10765 | fi | ||
10766 | |||
10767 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10768 | conftest$ac_exeext conftest.$ac_ext | ||
10769 | LIBS=$ac_check_lib_save_LIBS | ||
10770 | fi | ||
10771 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
10772 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; } | ||
10773 | if test $ac_cv_lib_c89_utimes = yes; then | ||
10774 | cat >>confdefs.h <<\_ACEOF | ||
10775 | #define HAVE_UTIMES 1 | ||
10776 | _ACEOF | ||
10777 | |||
10778 | LIBS="$LIBS -lc89" | ||
10779 | fi | ||
10780 | |||
10781 | |||
10782 | fi | ||
10783 | done | ||
10784 | |||
10785 | |||
10786 | |||
10787 | for ac_header in libutil.h | ||
10788 | do | ||
10789 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10790 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10791 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10793 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10795 | fi | ||
10796 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10797 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10798 | echo "${ECHO_T}$ac_res" >&6; } | ||
10799 | else | ||
10800 | # Is the header compilable? | ||
10801 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10802 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
10803 | cat >conftest.$ac_ext <<_ACEOF | ||
10804 | /* confdefs.h. */ | ||
10805 | _ACEOF | ||
10806 | cat confdefs.h >>conftest.$ac_ext | ||
10807 | cat >>conftest.$ac_ext <<_ACEOF | ||
10808 | /* end confdefs.h. */ | ||
10809 | $ac_includes_default | ||
10810 | #include <$ac_header> | ||
10811 | _ACEOF | ||
10812 | rm -f conftest.$ac_objext | ||
10813 | if { (ac_try="$ac_compile" | ||
10814 | case "(($ac_try" in | ||
10815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10816 | *) ac_try_echo=$ac_try;; | ||
10817 | esac | ||
10818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10819 | (eval "$ac_compile") 2>conftest.er1 | ||
10820 | ac_status=$? | ||
10821 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10822 | rm -f conftest.er1 | ||
10823 | cat conftest.err >&5 | ||
10824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10825 | (exit $ac_status); } && { | ||
10826 | test -z "$ac_c_werror_flag" || | ||
10827 | test ! -s conftest.err | ||
10828 | } && test -s conftest.$ac_objext; then | ||
10829 | ac_header_compiler=yes | ||
10830 | else | ||
10831 | echo "$as_me: failed program was:" >&5 | ||
10832 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10833 | |||
10834 | ac_header_compiler=no | ||
10835 | fi | ||
10836 | |||
10837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10838 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10839 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10840 | |||
10841 | # Is the header present? | ||
10842 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10843 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
10844 | cat >conftest.$ac_ext <<_ACEOF | ||
10845 | /* confdefs.h. */ | ||
10846 | _ACEOF | ||
10847 | cat confdefs.h >>conftest.$ac_ext | ||
10848 | cat >>conftest.$ac_ext <<_ACEOF | ||
10849 | /* end confdefs.h. */ | ||
10850 | #include <$ac_header> | ||
10851 | _ACEOF | ||
10852 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10853 | case "(($ac_try" in | ||
10854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10855 | *) ac_try_echo=$ac_try;; | ||
10856 | esac | ||
10857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10858 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10859 | ac_status=$? | ||
10860 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10861 | rm -f conftest.er1 | ||
10862 | cat conftest.err >&5 | ||
10863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10864 | (exit $ac_status); } >/dev/null && { | ||
10865 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10866 | test ! -s conftest.err | ||
10867 | }; then | ||
10868 | ac_header_preproc=yes | ||
10869 | else | ||
10870 | echo "$as_me: failed program was:" >&5 | ||
10871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10872 | |||
10873 | ac_header_preproc=no | ||
10874 | fi | ||
10875 | |||
10876 | rm -f conftest.err conftest.$ac_ext | ||
10877 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10878 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10879 | |||
10880 | # So? What about this header? | ||
10881 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10882 | yes:no: ) | ||
10883 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10884 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10885 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10886 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10887 | ac_header_preproc=yes | ||
10888 | ;; | ||
10889 | no:yes:* ) | ||
10890 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10891 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10892 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10893 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10894 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10895 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10896 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10897 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10899 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10900 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10901 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10902 | ( cat <<\_ASBOX | ||
10903 | ## ------------------------------------------- ## | ||
10904 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10905 | ## ------------------------------------------- ## | ||
10906 | _ASBOX | ||
10907 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10908 | ;; | ||
10909 | esac | ||
10910 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10912 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10914 | else | ||
10915 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10916 | fi | ||
10917 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10918 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10919 | echo "${ECHO_T}$ac_res" >&6; } | ||
10920 | |||
10921 | fi | ||
10922 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10923 | cat >>confdefs.h <<_ACEOF | ||
10924 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10925 | _ACEOF | ||
10926 | |||
10927 | fi | ||
10928 | |||
10929 | done | ||
10930 | |||
10931 | { echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
10932 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; } | ||
10933 | if test "${ac_cv_search_login+set}" = set; then | ||
10934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10935 | else | ||
10936 | ac_func_search_save_LIBS=$LIBS | ||
10937 | cat >conftest.$ac_ext <<_ACEOF | ||
10938 | /* confdefs.h. */ | ||
10939 | _ACEOF | ||
10940 | cat confdefs.h >>conftest.$ac_ext | ||
10941 | cat >>conftest.$ac_ext <<_ACEOF | ||
10942 | /* end confdefs.h. */ | ||
10943 | |||
10944 | /* Override any GCC internal prototype to avoid an error. | ||
10945 | Use char because int might match the return type of a GCC | ||
10946 | builtin and then its argument prototype would still apply. */ | ||
10947 | #ifdef __cplusplus | ||
10948 | extern "C" | ||
10949 | #endif | ||
10950 | char login (); | ||
10951 | int | ||
10952 | main () | ||
10953 | { | ||
10954 | return login (); | ||
10955 | ; | ||
10956 | return 0; | ||
10957 | } | ||
10958 | _ACEOF | ||
10959 | for ac_lib in '' util bsd; do | ||
10960 | if test -z "$ac_lib"; then | ||
10961 | ac_res="none required" | ||
10962 | else | ||
10963 | ac_res=-l$ac_lib | ||
10964 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10965 | fi | ||
10966 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10967 | if { (ac_try="$ac_link" | ||
10968 | case "(($ac_try" in | ||
10969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10970 | *) ac_try_echo=$ac_try;; | ||
10971 | esac | ||
10972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10973 | (eval "$ac_link") 2>conftest.er1 | ||
10974 | ac_status=$? | ||
10975 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10976 | rm -f conftest.er1 | ||
10977 | cat conftest.err >&5 | ||
10978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10979 | (exit $ac_status); } && { | ||
10980 | test -z "$ac_c_werror_flag" || | ||
10981 | test ! -s conftest.err | ||
10982 | } && test -s conftest$ac_exeext && | ||
10983 | $as_test_x conftest$ac_exeext; then | ||
10984 | ac_cv_search_login=$ac_res | ||
10985 | else | ||
10986 | echo "$as_me: failed program was:" >&5 | ||
10987 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10988 | |||
10989 | |||
10990 | fi | ||
10991 | |||
10992 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10993 | conftest$ac_exeext | ||
10994 | if test "${ac_cv_search_login+set}" = set; then | ||
10995 | break | ||
10996 | fi | ||
10997 | done | ||
10998 | if test "${ac_cv_search_login+set}" = set; then | ||
10999 | : | ||
11000 | else | ||
11001 | ac_cv_search_login=no | ||
11002 | fi | ||
11003 | rm conftest.$ac_ext | ||
11004 | LIBS=$ac_func_search_save_LIBS | ||
11005 | fi | ||
11006 | { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
11007 | echo "${ECHO_T}$ac_cv_search_login" >&6; } | ||
11008 | ac_res=$ac_cv_search_login | ||
11009 | if test "$ac_res" != no; then | ||
11010 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11011 | |||
11012 | cat >>confdefs.h <<\_ACEOF | ||
11013 | #define HAVE_LOGIN 1 | ||
11014 | _ACEOF | ||
11015 | |||
11016 | fi | ||
11017 | |||
11018 | |||
11019 | |||
11020 | |||
11021 | for ac_func in logout updwtmp logwtmp | ||
11022 | do | ||
11023 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11024 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11025 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11026 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11028 | else | ||
11029 | cat >conftest.$ac_ext <<_ACEOF | ||
11030 | /* confdefs.h. */ | ||
11031 | _ACEOF | ||
11032 | cat confdefs.h >>conftest.$ac_ext | ||
11033 | cat >>conftest.$ac_ext <<_ACEOF | ||
11034 | /* end confdefs.h. */ | ||
11035 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11036 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11037 | #define $ac_func innocuous_$ac_func | ||
11038 | |||
11039 | /* System header to define __stub macros and hopefully few prototypes, | ||
11040 | which can conflict with char $ac_func (); below. | ||
11041 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11042 | <limits.h> exists even on freestanding compilers. */ | ||
11043 | |||
11044 | #ifdef __STDC__ | ||
11045 | # include <limits.h> | ||
11046 | #else | ||
11047 | # include <assert.h> | ||
11048 | #endif | ||
11049 | |||
11050 | #undef $ac_func | ||
11051 | |||
11052 | /* Override any GCC internal prototype to avoid an error. | ||
11053 | Use char because int might match the return type of a GCC | ||
11054 | builtin and then its argument prototype would still apply. */ | ||
11055 | #ifdef __cplusplus | ||
11056 | extern "C" | ||
11057 | #endif | ||
11058 | char $ac_func (); | ||
11059 | /* The GNU C library defines this for functions which it implements | ||
11060 | to always fail with ENOSYS. Some functions are actually named | ||
11061 | something starting with __ and the normal name is an alias. */ | ||
11062 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11063 | choke me | ||
11064 | #endif | ||
11065 | |||
11066 | int | ||
11067 | main () | ||
11068 | { | ||
11069 | return $ac_func (); | ||
11070 | ; | ||
11071 | return 0; | ||
11072 | } | ||
11073 | _ACEOF | ||
11074 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11075 | if { (ac_try="$ac_link" | ||
11076 | case "(($ac_try" in | ||
11077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11078 | *) ac_try_echo=$ac_try;; | ||
11079 | esac | ||
11080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11081 | (eval "$ac_link") 2>conftest.er1 | ||
11082 | ac_status=$? | ||
11083 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11084 | rm -f conftest.er1 | ||
11085 | cat conftest.err >&5 | ||
11086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11087 | (exit $ac_status); } && { | ||
11088 | test -z "$ac_c_werror_flag" || | ||
11089 | test ! -s conftest.err | ||
11090 | } && test -s conftest$ac_exeext && | ||
11091 | $as_test_x conftest$ac_exeext; then | ||
11092 | eval "$as_ac_var=yes" | ||
11093 | else | ||
11094 | echo "$as_me: failed program was:" >&5 | ||
11095 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11096 | |||
11097 | eval "$as_ac_var=no" | ||
11098 | fi | ||
11099 | |||
11100 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11101 | conftest$ac_exeext conftest.$ac_ext | ||
11102 | fi | ||
11103 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11104 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11105 | echo "${ECHO_T}$ac_res" >&6; } | ||
11106 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11107 | cat >>confdefs.h <<_ACEOF | ||
11108 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11109 | _ACEOF | ||
11110 | |||
11111 | fi | ||
11112 | done | ||
11113 | |||
11114 | |||
11115 | |||
11116 | for ac_func in strftime | ||
11117 | do | ||
11118 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11119 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11120 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11121 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11123 | else | ||
11124 | cat >conftest.$ac_ext <<_ACEOF | ||
11125 | /* confdefs.h. */ | ||
11126 | _ACEOF | ||
11127 | cat confdefs.h >>conftest.$ac_ext | ||
11128 | cat >>conftest.$ac_ext <<_ACEOF | ||
11129 | /* end confdefs.h. */ | ||
11130 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11131 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11132 | #define $ac_func innocuous_$ac_func | ||
11133 | |||
11134 | /* System header to define __stub macros and hopefully few prototypes, | ||
11135 | which can conflict with char $ac_func (); below. | ||
11136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11137 | <limits.h> exists even on freestanding compilers. */ | ||
11138 | |||
11139 | #ifdef __STDC__ | ||
11140 | # include <limits.h> | ||
11141 | #else | ||
11142 | # include <assert.h> | ||
11143 | #endif | ||
11144 | |||
11145 | #undef $ac_func | ||
11146 | |||
11147 | /* Override any GCC internal prototype to avoid an error. | ||
11148 | Use char because int might match the return type of a GCC | ||
11149 | builtin and then its argument prototype would still apply. */ | ||
11150 | #ifdef __cplusplus | ||
11151 | extern "C" | ||
11152 | #endif | ||
11153 | char $ac_func (); | ||
11154 | /* The GNU C library defines this for functions which it implements | ||
11155 | to always fail with ENOSYS. Some functions are actually named | ||
11156 | something starting with __ and the normal name is an alias. */ | ||
11157 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11158 | choke me | ||
11159 | #endif | ||
11160 | |||
11161 | int | ||
11162 | main () | ||
11163 | { | ||
11164 | return $ac_func (); | ||
11165 | ; | ||
11166 | return 0; | ||
11167 | } | ||
11168 | _ACEOF | ||
11169 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11170 | if { (ac_try="$ac_link" | ||
11171 | case "(($ac_try" in | ||
11172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11173 | *) ac_try_echo=$ac_try;; | ||
11174 | esac | ||
11175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11176 | (eval "$ac_link") 2>conftest.er1 | ||
11177 | ac_status=$? | ||
11178 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11179 | rm -f conftest.er1 | ||
11180 | cat conftest.err >&5 | ||
11181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11182 | (exit $ac_status); } && { | ||
11183 | test -z "$ac_c_werror_flag" || | ||
11184 | test ! -s conftest.err | ||
11185 | } && test -s conftest$ac_exeext && | ||
11186 | $as_test_x conftest$ac_exeext; then | ||
11187 | eval "$as_ac_var=yes" | ||
11188 | else | ||
11189 | echo "$as_me: failed program was:" >&5 | ||
11190 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11191 | |||
11192 | eval "$as_ac_var=no" | ||
11193 | fi | ||
11194 | |||
11195 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11196 | conftest$ac_exeext conftest.$ac_ext | ||
11197 | fi | ||
11198 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11199 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11200 | echo "${ECHO_T}$ac_res" >&6; } | ||
11201 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11202 | cat >>confdefs.h <<_ACEOF | ||
11203 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11204 | _ACEOF | ||
11205 | |||
11206 | else | ||
11207 | # strftime is in -lintl on SCO UNIX. | ||
11208 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
11209 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | ||
11210 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
11211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11212 | else | ||
11213 | ac_check_lib_save_LIBS=$LIBS | ||
11214 | LIBS="-lintl $LIBS" | ||
11215 | cat >conftest.$ac_ext <<_ACEOF | ||
11216 | /* confdefs.h. */ | ||
11217 | _ACEOF | ||
11218 | cat confdefs.h >>conftest.$ac_ext | ||
11219 | cat >>conftest.$ac_ext <<_ACEOF | ||
11220 | /* end confdefs.h. */ | ||
11221 | |||
11222 | /* Override any GCC internal prototype to avoid an error. | ||
11223 | Use char because int might match the return type of a GCC | ||
11224 | builtin and then its argument prototype would still apply. */ | ||
11225 | #ifdef __cplusplus | ||
11226 | extern "C" | ||
11227 | #endif | ||
11228 | char strftime (); | ||
11229 | int | ||
11230 | main () | ||
11231 | { | ||
11232 | return strftime (); | ||
11233 | ; | ||
11234 | return 0; | ||
11235 | } | ||
11236 | _ACEOF | ||
11237 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11238 | if { (ac_try="$ac_link" | ||
11239 | case "(($ac_try" in | ||
11240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11241 | *) ac_try_echo=$ac_try;; | ||
11242 | esac | ||
11243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11244 | (eval "$ac_link") 2>conftest.er1 | ||
11245 | ac_status=$? | ||
11246 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11247 | rm -f conftest.er1 | ||
11248 | cat conftest.err >&5 | ||
11249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11250 | (exit $ac_status); } && { | ||
11251 | test -z "$ac_c_werror_flag" || | ||
11252 | test ! -s conftest.err | ||
11253 | } && test -s conftest$ac_exeext && | ||
11254 | $as_test_x conftest$ac_exeext; then | ||
11255 | ac_cv_lib_intl_strftime=yes | ||
11256 | else | ||
11257 | echo "$as_me: failed program was:" >&5 | ||
11258 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11259 | |||
11260 | ac_cv_lib_intl_strftime=no | ||
11261 | fi | ||
11262 | |||
11263 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11264 | conftest$ac_exeext conftest.$ac_ext | ||
11265 | LIBS=$ac_check_lib_save_LIBS | ||
11266 | fi | ||
11267 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
11268 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | ||
11269 | if test $ac_cv_lib_intl_strftime = yes; then | ||
11270 | cat >>confdefs.h <<\_ACEOF | ||
11271 | #define HAVE_STRFTIME 1 | ||
11272 | _ACEOF | ||
11273 | |||
11274 | LIBS="-lintl $LIBS" | ||
11275 | fi | ||
11276 | |||
11277 | fi | ||
11278 | done | ||
11279 | |||
11280 | |||
11281 | # Check for ALTDIRFUNC glob() extension | ||
11282 | { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
11283 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; } | ||
11284 | cat >conftest.$ac_ext <<_ACEOF | ||
11285 | /* confdefs.h. */ | ||
11286 | _ACEOF | ||
11287 | cat confdefs.h >>conftest.$ac_ext | ||
11288 | cat >>conftest.$ac_ext <<_ACEOF | ||
11289 | /* end confdefs.h. */ | ||
11290 | |||
11291 | #include <glob.h> | ||
11292 | #ifdef GLOB_ALTDIRFUNC | ||
11293 | FOUNDIT | ||
11294 | #endif | ||
11295 | |||
11296 | _ACEOF | ||
11297 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
11298 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
11299 | |||
11300 | |||
11301 | cat >>confdefs.h <<\_ACEOF | ||
11302 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
11303 | _ACEOF | ||
11304 | |||
11305 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11306 | echo "${ECHO_T}yes" >&6; } | ||
11307 | |||
11308 | else | ||
11309 | |||
11310 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11311 | echo "${ECHO_T}no" >&6; } | ||
11312 | |||
11313 | |||
11314 | fi | ||
11315 | rm -f conftest* | ||
11316 | |||
11317 | |||
11318 | # Check for g.gl_matchc glob() extension | ||
11319 | { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
11320 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; } | ||
11321 | cat >conftest.$ac_ext <<_ACEOF | ||
11322 | /* confdefs.h. */ | ||
11323 | _ACEOF | ||
11324 | cat confdefs.h >>conftest.$ac_ext | ||
11325 | cat >>conftest.$ac_ext <<_ACEOF | ||
11326 | /* end confdefs.h. */ | ||
11327 | #include <glob.h> | ||
11328 | int | ||
11329 | main () | ||
11330 | { | ||
11331 | glob_t g; g.gl_matchc = 1; | ||
11332 | ; | ||
11333 | return 0; | ||
11334 | } | ||
11335 | _ACEOF | ||
11336 | rm -f conftest.$ac_objext | ||
11337 | if { (ac_try="$ac_compile" | ||
11338 | case "(($ac_try" in | ||
11339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11340 | *) ac_try_echo=$ac_try;; | ||
11341 | esac | ||
11342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11343 | (eval "$ac_compile") 2>conftest.er1 | ||
11344 | ac_status=$? | ||
11345 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11346 | rm -f conftest.er1 | ||
11347 | cat conftest.err >&5 | ||
11348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11349 | (exit $ac_status); } && { | ||
11350 | test -z "$ac_c_werror_flag" || | ||
11351 | test ! -s conftest.err | ||
11352 | } && test -s conftest.$ac_objext; then | ||
11353 | |||
11354 | |||
11355 | cat >>confdefs.h <<\_ACEOF | ||
11356 | #define GLOB_HAS_GL_MATCHC 1 | ||
11357 | _ACEOF | ||
11358 | |||
11359 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11360 | echo "${ECHO_T}yes" >&6; } | ||
11361 | |||
11362 | else | ||
11363 | echo "$as_me: failed program was:" >&5 | ||
11364 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11365 | |||
11366 | |||
11367 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11368 | echo "${ECHO_T}no" >&6; } | ||
11369 | |||
11370 | |||
11371 | fi | ||
11372 | |||
11373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11374 | |||
11375 | { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 | ||
11376 | echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; } | ||
11377 | if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then | ||
11378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11379 | else | ||
11380 | cat >conftest.$ac_ext <<_ACEOF | ||
11381 | /* confdefs.h. */ | ||
11382 | _ACEOF | ||
11383 | cat confdefs.h >>conftest.$ac_ext | ||
11384 | cat >>conftest.$ac_ext <<_ACEOF | ||
11385 | /* end confdefs.h. */ | ||
11386 | #include <glob.h> | ||
11387 | |||
11388 | int | ||
11389 | main () | ||
11390 | { | ||
11391 | #ifndef GLOB_NOMATCH | ||
11392 | (void) GLOB_NOMATCH; | ||
11393 | #endif | ||
11394 | |||
11395 | ; | ||
11396 | return 0; | ||
11397 | } | ||
11398 | _ACEOF | ||
11399 | rm -f conftest.$ac_objext | ||
11400 | if { (ac_try="$ac_compile" | ||
11401 | case "(($ac_try" in | ||
11402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11403 | *) ac_try_echo=$ac_try;; | ||
11404 | esac | ||
11405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11406 | (eval "$ac_compile") 2>conftest.er1 | ||
11407 | ac_status=$? | ||
11408 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11409 | rm -f conftest.er1 | ||
11410 | cat conftest.err >&5 | ||
11411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11412 | (exit $ac_status); } && { | ||
11413 | test -z "$ac_c_werror_flag" || | ||
11414 | test ! -s conftest.err | ||
11415 | } && test -s conftest.$ac_objext; then | ||
11416 | ac_cv_have_decl_GLOB_NOMATCH=yes | ||
11417 | else | ||
11418 | echo "$as_me: failed program was:" >&5 | ||
11419 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11420 | |||
11421 | ac_cv_have_decl_GLOB_NOMATCH=no | ||
11422 | fi | ||
11423 | |||
11424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11425 | fi | ||
11426 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 | ||
11427 | echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; } | ||
11428 | if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then | ||
11429 | |||
11430 | cat >>confdefs.h <<_ACEOF | ||
11431 | #define HAVE_DECL_GLOB_NOMATCH 1 | ||
11432 | _ACEOF | ||
11433 | |||
11434 | |||
11435 | else | ||
11436 | cat >>confdefs.h <<_ACEOF | ||
11437 | #define HAVE_DECL_GLOB_NOMATCH 0 | ||
11438 | _ACEOF | ||
11439 | |||
11440 | |||
11441 | fi | ||
11442 | |||
11443 | |||
11444 | |||
11445 | { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
11446 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; } | ||
11447 | if test "$cross_compiling" = yes; then | ||
11448 | |||
11449 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
11450 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
11451 | cat >>confdefs.h <<\_ACEOF | ||
11452 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
11453 | _ACEOF | ||
11454 | |||
11455 | |||
11456 | |||
11457 | else | ||
11458 | cat >conftest.$ac_ext <<_ACEOF | ||
11459 | /* confdefs.h. */ | ||
11460 | _ACEOF | ||
11461 | cat confdefs.h >>conftest.$ac_ext | ||
11462 | cat >>conftest.$ac_ext <<_ACEOF | ||
11463 | /* end confdefs.h. */ | ||
11464 | |||
11465 | #include <sys/types.h> | ||
11466 | #include <dirent.h> | ||
11467 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
11468 | |||
11469 | _ACEOF | ||
11470 | rm -f conftest$ac_exeext | ||
11471 | if { (ac_try="$ac_link" | ||
11472 | case "(($ac_try" in | ||
11473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11474 | *) ac_try_echo=$ac_try;; | ||
11475 | esac | ||
11476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11477 | (eval "$ac_link") 2>&5 | ||
11478 | ac_status=$? | ||
11479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11480 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11481 | { (case "(($ac_try" in | ||
11482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11483 | *) ac_try_echo=$ac_try;; | ||
11484 | esac | ||
11485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11486 | (eval "$ac_try") 2>&5 | ||
11487 | ac_status=$? | ||
11488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11489 | (exit $ac_status); }; }; then | ||
11490 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11491 | echo "${ECHO_T}yes" >&6; } | ||
11492 | else | ||
11493 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11494 | echo "$as_me: failed program was:" >&5 | ||
11495 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11496 | |||
11497 | ( exit $ac_status ) | ||
11498 | |||
11499 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11500 | echo "${ECHO_T}no" >&6; } | ||
11501 | |||
11502 | cat >>confdefs.h <<\_ACEOF | ||
11503 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
11504 | _ACEOF | ||
11505 | |||
11506 | |||
11507 | fi | ||
11508 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11509 | fi | ||
11510 | |||
11511 | |||
11512 | |||
11513 | { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
11514 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; } | ||
11515 | if test -d "/proc/$$/fd" ; then | ||
11516 | |||
11517 | cat >>confdefs.h <<\_ACEOF | ||
11518 | #define HAVE_PROC_PID 1 | ||
11519 | _ACEOF | ||
11520 | |||
11521 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11522 | echo "${ECHO_T}yes" >&6; } | ||
11523 | else | ||
11524 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11525 | echo "${ECHO_T}no" >&6; } | ||
11526 | fi | ||
11527 | |||
11528 | # Check whether user wants S/Key support | ||
11529 | SKEY_MSG="no" | ||
11530 | |||
11531 | # Check whether --with-skey was given. | ||
11532 | if test "${with_skey+set}" = set; then | ||
11533 | withval=$with_skey; | ||
11534 | if test "x$withval" != "xno" ; then | ||
11535 | |||
11536 | if test "x$withval" != "xyes" ; then | ||
11537 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
11538 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
11539 | fi | ||
11540 | |||
11541 | |||
11542 | cat >>confdefs.h <<\_ACEOF | ||
11543 | #define SKEY 1 | ||
11544 | _ACEOF | ||
11545 | |||
11546 | LIBS="-lskey $LIBS" | ||
11547 | SKEY_MSG="yes" | ||
11548 | |||
11549 | { echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
11550 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; } | ||
11551 | cat >conftest.$ac_ext <<_ACEOF | ||
11552 | /* confdefs.h. */ | ||
11553 | _ACEOF | ||
11554 | cat confdefs.h >>conftest.$ac_ext | ||
11555 | cat >>conftest.$ac_ext <<_ACEOF | ||
11556 | /* end confdefs.h. */ | ||
11557 | |||
11558 | #include <stdio.h> | ||
11559 | #include <skey.h> | ||
11560 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
11561 | |||
11562 | _ACEOF | ||
11563 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11564 | if { (ac_try="$ac_link" | ||
11565 | case "(($ac_try" in | ||
11566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11567 | *) ac_try_echo=$ac_try;; | ||
11568 | esac | ||
11569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11570 | (eval "$ac_link") 2>conftest.er1 | ||
11571 | ac_status=$? | ||
11572 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11573 | rm -f conftest.er1 | ||
11574 | cat conftest.err >&5 | ||
11575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11576 | (exit $ac_status); } && { | ||
11577 | test -z "$ac_c_werror_flag" || | ||
11578 | test ! -s conftest.err | ||
11579 | } && test -s conftest$ac_exeext && | ||
11580 | $as_test_x conftest$ac_exeext; then | ||
11581 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11582 | echo "${ECHO_T}yes" >&6; } | ||
11583 | else | ||
11584 | echo "$as_me: failed program was:" >&5 | ||
11585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11586 | |||
11587 | |||
11588 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11589 | echo "${ECHO_T}no" >&6; } | ||
11590 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
11591 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
11592 | { (exit 1); exit 1; }; } | ||
11593 | |||
11594 | fi | ||
11595 | |||
11596 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11597 | conftest$ac_exeext conftest.$ac_ext | ||
11598 | { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
11599 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; } | ||
11600 | cat >conftest.$ac_ext <<_ACEOF | ||
11601 | /* confdefs.h. */ | ||
11602 | _ACEOF | ||
11603 | cat confdefs.h >>conftest.$ac_ext | ||
11604 | cat >>conftest.$ac_ext <<_ACEOF | ||
11605 | /* end confdefs.h. */ | ||
11606 | #include <stdio.h> | ||
11607 | #include <skey.h> | ||
11608 | int | ||
11609 | main () | ||
11610 | { | ||
11611 | (void)skeychallenge(NULL,"name","",0); | ||
11612 | ; | ||
11613 | return 0; | ||
11614 | } | ||
11615 | _ACEOF | ||
11616 | rm -f conftest.$ac_objext | ||
11617 | if { (ac_try="$ac_compile" | ||
11618 | case "(($ac_try" in | ||
11619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11620 | *) ac_try_echo=$ac_try;; | ||
11621 | esac | ||
11622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11623 | (eval "$ac_compile") 2>conftest.er1 | ||
11624 | ac_status=$? | ||
11625 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11626 | rm -f conftest.er1 | ||
11627 | cat conftest.err >&5 | ||
11628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11629 | (exit $ac_status); } && { | ||
11630 | test -z "$ac_c_werror_flag" || | ||
11631 | test ! -s conftest.err | ||
11632 | } && test -s conftest.$ac_objext; then | ||
11633 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11634 | echo "${ECHO_T}yes" >&6; } | ||
11635 | |||
11636 | cat >>confdefs.h <<\_ACEOF | ||
11637 | #define SKEYCHALLENGE_4ARG 1 | ||
11638 | _ACEOF | ||
11639 | |||
11640 | else | ||
11641 | echo "$as_me: failed program was:" >&5 | ||
11642 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11643 | |||
11644 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11645 | echo "${ECHO_T}no" >&6; } | ||
11646 | |||
11647 | fi | ||
11648 | |||
11649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11650 | fi | ||
11651 | |||
11652 | |||
11653 | fi | ||
11654 | |||
11655 | |||
11656 | # Check whether user wants TCP wrappers support | ||
11657 | TCPW_MSG="no" | ||
11658 | |||
11659 | # Check whether --with-tcp-wrappers was given. | ||
11660 | if test "${with_tcp_wrappers+set}" = set; then | ||
11661 | withval=$with_tcp_wrappers; | ||
11662 | if test "x$withval" != "xno" ; then | ||
11663 | saved_LIBS="$LIBS" | ||
11664 | saved_LDFLAGS="$LDFLAGS" | ||
11665 | saved_CPPFLAGS="$CPPFLAGS" | ||
11666 | if test -n "${withval}" && \ | ||
11667 | test "x${withval}" != "xyes"; then | ||
11668 | if test -d "${withval}/lib"; then | ||
11669 | if test -n "${need_dash_r}"; then | ||
11670 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
11671 | else | ||
11672 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
11673 | fi | ||
11674 | else | ||
11675 | if test -n "${need_dash_r}"; then | ||
11676 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
11677 | else | ||
11678 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
11679 | fi | ||
11680 | fi | ||
11681 | if test -d "${withval}/include"; then | ||
11682 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
11683 | else | ||
11684 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
11685 | fi | ||
11686 | fi | ||
11687 | LIBWRAP="-lwrap" | ||
11688 | LIBS="$LIBWRAP $LIBS" | ||
11689 | { echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
11690 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; } | ||
11691 | cat >conftest.$ac_ext <<_ACEOF | ||
11692 | /* confdefs.h. */ | ||
11693 | _ACEOF | ||
11694 | cat confdefs.h >>conftest.$ac_ext | ||
11695 | cat >>conftest.$ac_ext <<_ACEOF | ||
11696 | /* end confdefs.h. */ | ||
11697 | |||
11698 | #include <sys/types.h> | ||
11699 | #include <sys/socket.h> | ||
11700 | #include <netinet/in.h> | ||
11701 | #include <tcpd.h> | ||
11702 | int deny_severity = 0, allow_severity = 0; | ||
11703 | |||
11704 | int | ||
11705 | main () | ||
11706 | { | ||
11707 | hosts_access(0); | ||
11708 | ; | ||
11709 | return 0; | ||
11710 | } | ||
11711 | _ACEOF | ||
11712 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11713 | if { (ac_try="$ac_link" | ||
11714 | case "(($ac_try" in | ||
11715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11716 | *) ac_try_echo=$ac_try;; | ||
11717 | esac | ||
11718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11719 | (eval "$ac_link") 2>conftest.er1 | ||
11720 | ac_status=$? | ||
11721 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11722 | rm -f conftest.er1 | ||
11723 | cat conftest.err >&5 | ||
11724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11725 | (exit $ac_status); } && { | ||
11726 | test -z "$ac_c_werror_flag" || | ||
11727 | test ! -s conftest.err | ||
11728 | } && test -s conftest$ac_exeext && | ||
11729 | $as_test_x conftest$ac_exeext; then | ||
11730 | |||
11731 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11732 | echo "${ECHO_T}yes" >&6; } | ||
11733 | |||
11734 | cat >>confdefs.h <<\_ACEOF | ||
11735 | #define LIBWRAP 1 | ||
11736 | _ACEOF | ||
11737 | |||
11738 | |||
11739 | TCPW_MSG="yes" | ||
11740 | |||
11741 | else | ||
11742 | echo "$as_me: failed program was:" >&5 | ||
11743 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11744 | |||
11745 | |||
11746 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
11747 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
11748 | { (exit 1); exit 1; }; } | ||
11749 | |||
11750 | |||
11751 | fi | ||
11752 | |||
11753 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11754 | conftest$ac_exeext conftest.$ac_ext | ||
11755 | LIBS="$saved_LIBS" | ||
11756 | fi | ||
11757 | |||
11758 | |||
11759 | fi | ||
11760 | |||
11761 | |||
11762 | # Check whether user wants libedit support | ||
11763 | LIBEDIT_MSG="no" | ||
11764 | |||
11765 | # Check whether --with-libedit was given. | ||
11766 | if test "${with_libedit+set}" = set; then | ||
11767 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
11768 | if test "x$withval" != "xyes"; then | ||
11769 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
11770 | if test -n "${need_dash_r}"; then | ||
11771 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
11772 | else | ||
11773 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
11774 | fi | ||
11775 | fi | ||
11776 | { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
11777 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; } | ||
11778 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
11779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11780 | else | ||
11781 | ac_check_lib_save_LIBS=$LIBS | ||
11782 | LIBS="-ledit -lcurses | ||
11783 | $LIBS" | ||
11784 | cat >conftest.$ac_ext <<_ACEOF | ||
11785 | /* confdefs.h. */ | ||
11786 | _ACEOF | ||
11787 | cat confdefs.h >>conftest.$ac_ext | ||
11788 | cat >>conftest.$ac_ext <<_ACEOF | ||
11789 | /* end confdefs.h. */ | ||
11790 | |||
11791 | /* Override any GCC internal prototype to avoid an error. | ||
11792 | Use char because int might match the return type of a GCC | ||
11793 | builtin and then its argument prototype would still apply. */ | ||
11794 | #ifdef __cplusplus | ||
11795 | extern "C" | ||
11796 | #endif | ||
11797 | char el_init (); | ||
11798 | int | ||
11799 | main () | ||
11800 | { | ||
11801 | return el_init (); | ||
11802 | ; | ||
11803 | return 0; | ||
11804 | } | ||
11805 | _ACEOF | ||
11806 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11807 | if { (ac_try="$ac_link" | ||
11808 | case "(($ac_try" in | ||
11809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11810 | *) ac_try_echo=$ac_try;; | ||
11811 | esac | ||
11812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11813 | (eval "$ac_link") 2>conftest.er1 | ||
11814 | ac_status=$? | ||
11815 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11816 | rm -f conftest.er1 | ||
11817 | cat conftest.err >&5 | ||
11818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11819 | (exit $ac_status); } && { | ||
11820 | test -z "$ac_c_werror_flag" || | ||
11821 | test ! -s conftest.err | ||
11822 | } && test -s conftest$ac_exeext && | ||
11823 | $as_test_x conftest$ac_exeext; then | ||
11824 | ac_cv_lib_edit_el_init=yes | ||
11825 | else | ||
11826 | echo "$as_me: failed program was:" >&5 | ||
11827 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11828 | |||
11829 | ac_cv_lib_edit_el_init=no | ||
11830 | fi | ||
11831 | |||
11832 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11833 | conftest$ac_exeext conftest.$ac_ext | ||
11834 | LIBS=$ac_check_lib_save_LIBS | ||
11835 | fi | ||
11836 | { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
11837 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; } | ||
11838 | if test $ac_cv_lib_edit_el_init = yes; then | ||
11839 | |||
11840 | cat >>confdefs.h <<\_ACEOF | ||
11841 | #define USE_LIBEDIT 1 | ||
11842 | _ACEOF | ||
11843 | |||
11844 | LIBEDIT="-ledit -lcurses" | ||
11845 | LIBEDIT_MSG="yes" | ||
11846 | |||
11847 | |||
11848 | else | ||
11849 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
11850 | echo "$as_me: error: libedit not found" >&2;} | ||
11851 | { (exit 1); exit 1; }; } | ||
11852 | fi | ||
11853 | |||
11854 | { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
11855 | echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; } | ||
11856 | cat >conftest.$ac_ext <<_ACEOF | ||
11857 | /* confdefs.h. */ | ||
11858 | _ACEOF | ||
11859 | cat confdefs.h >>conftest.$ac_ext | ||
11860 | cat >>conftest.$ac_ext <<_ACEOF | ||
11861 | /* end confdefs.h. */ | ||
11862 | |||
11863 | #include <histedit.h> | ||
11864 | int main(void) | ||
11865 | { | ||
11866 | int i = H_SETSIZE; | ||
11867 | el_init("", NULL, NULL, NULL); | ||
11868 | exit(0); | ||
11869 | } | ||
11870 | |||
11871 | _ACEOF | ||
11872 | rm -f conftest.$ac_objext | ||
11873 | if { (ac_try="$ac_compile" | ||
11874 | case "(($ac_try" in | ||
11875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11876 | *) ac_try_echo=$ac_try;; | ||
11877 | esac | ||
11878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11879 | (eval "$ac_compile") 2>conftest.er1 | ||
11880 | ac_status=$? | ||
11881 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11882 | rm -f conftest.er1 | ||
11883 | cat conftest.err >&5 | ||
11884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11885 | (exit $ac_status); } && { | ||
11886 | test -z "$ac_c_werror_flag" || | ||
11887 | test ! -s conftest.err | ||
11888 | } && test -s conftest.$ac_objext; then | ||
11889 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11890 | echo "${ECHO_T}yes" >&6; } | ||
11891 | else | ||
11892 | echo "$as_me: failed program was:" >&5 | ||
11893 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11894 | |||
11895 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11896 | echo "${ECHO_T}no" >&6; } | ||
11897 | { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
11898 | echo "$as_me: error: libedit version is not compatible" >&2;} | ||
11899 | { (exit 1); exit 1; }; } | ||
11900 | |||
11901 | fi | ||
11902 | |||
11903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11904 | fi | ||
11905 | |||
11906 | fi | ||
11907 | |||
11908 | |||
11909 | AUDIT_MODULE=none | ||
11910 | |||
11911 | # Check whether --with-audit was given. | ||
11912 | if test "${with_audit+set}" = set; then | ||
11913 | withval=$with_audit; | ||
11914 | { echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
11915 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; } | ||
11916 | case "$withval" in | ||
11917 | bsm) | ||
11918 | { echo "$as_me:$LINENO: result: bsm" >&5 | ||
11919 | echo "${ECHO_T}bsm" >&6; } | ||
11920 | AUDIT_MODULE=bsm | ||
11921 | |||
11922 | for ac_header in bsm/audit.h | ||
11923 | do | ||
11924 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
11925 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11926 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11927 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11929 | else | ||
11930 | cat >conftest.$ac_ext <<_ACEOF | ||
11931 | /* confdefs.h. */ | ||
11932 | _ACEOF | ||
11933 | cat confdefs.h >>conftest.$ac_ext | ||
11934 | cat >>conftest.$ac_ext <<_ACEOF | ||
11935 | /* end confdefs.h. */ | ||
11936 | |||
11937 | #ifdef HAVE_TIME_H | ||
11938 | # include <time.h> | ||
11939 | #endif | ||
11940 | |||
11941 | |||
11942 | |||
11943 | #include <$ac_header> | ||
11944 | _ACEOF | ||
11945 | rm -f conftest.$ac_objext | ||
11946 | if { (ac_try="$ac_compile" | ||
11947 | case "(($ac_try" in | ||
11948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11949 | *) ac_try_echo=$ac_try;; | ||
11950 | esac | ||
11951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11952 | (eval "$ac_compile") 2>conftest.er1 | ||
11953 | ac_status=$? | ||
11954 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11955 | rm -f conftest.er1 | ||
11956 | cat conftest.err >&5 | ||
11957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11958 | (exit $ac_status); } && { | ||
11959 | test -z "$ac_c_werror_flag" || | ||
11960 | test ! -s conftest.err | ||
11961 | } && test -s conftest.$ac_objext; then | ||
11962 | eval "$as_ac_Header=yes" | ||
11963 | else | ||
11964 | echo "$as_me: failed program was:" >&5 | ||
11965 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11966 | |||
11967 | eval "$as_ac_Header=no" | ||
11968 | fi | ||
11969 | |||
11970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11971 | fi | ||
11972 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11973 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11974 | echo "${ECHO_T}$ac_res" >&6; } | ||
11975 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
11976 | cat >>confdefs.h <<_ACEOF | ||
11977 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
11978 | _ACEOF | ||
11979 | |||
11980 | else | ||
11981 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
11982 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
11983 | { (exit 1); exit 1; }; } | ||
11984 | fi | ||
11985 | |||
11986 | done | ||
11987 | |||
11988 | |||
11989 | { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
11990 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; } | ||
11991 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
11992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11993 | else | ||
11994 | ac_check_lib_save_LIBS=$LIBS | ||
11995 | LIBS="-lbsm $LIBS" | ||
11996 | cat >conftest.$ac_ext <<_ACEOF | ||
11997 | /* confdefs.h. */ | ||
11998 | _ACEOF | ||
11999 | cat confdefs.h >>conftest.$ac_ext | ||
12000 | cat >>conftest.$ac_ext <<_ACEOF | ||
12001 | /* end confdefs.h. */ | ||
12002 | |||
12003 | /* Override any GCC internal prototype to avoid an error. | ||
12004 | Use char because int might match the return type of a GCC | ||
12005 | builtin and then its argument prototype would still apply. */ | ||
12006 | #ifdef __cplusplus | ||
12007 | extern "C" | ||
12008 | #endif | ||
12009 | char getaudit (); | ||
12010 | int | ||
12011 | main () | ||
12012 | { | ||
12013 | return getaudit (); | ||
12014 | ; | ||
12015 | return 0; | ||
12016 | } | ||
12017 | _ACEOF | ||
12018 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12019 | if { (ac_try="$ac_link" | ||
12020 | case "(($ac_try" in | ||
12021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12022 | *) ac_try_echo=$ac_try;; | ||
12023 | esac | ||
12024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12025 | (eval "$ac_link") 2>conftest.er1 | ||
12026 | ac_status=$? | ||
12027 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12028 | rm -f conftest.er1 | ||
12029 | cat conftest.err >&5 | ||
12030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12031 | (exit $ac_status); } && { | ||
12032 | test -z "$ac_c_werror_flag" || | ||
12033 | test ! -s conftest.err | ||
12034 | } && test -s conftest$ac_exeext && | ||
12035 | $as_test_x conftest$ac_exeext; then | ||
12036 | ac_cv_lib_bsm_getaudit=yes | ||
12037 | else | ||
12038 | echo "$as_me: failed program was:" >&5 | ||
12039 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12040 | |||
12041 | ac_cv_lib_bsm_getaudit=no | ||
12042 | fi | ||
12043 | |||
12044 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12045 | conftest$ac_exeext conftest.$ac_ext | ||
12046 | LIBS=$ac_check_lib_save_LIBS | ||
12047 | fi | ||
12048 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
12049 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; } | ||
12050 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
12051 | cat >>confdefs.h <<_ACEOF | ||
12052 | #define HAVE_LIBBSM 1 | ||
12053 | _ACEOF | ||
12054 | |||
12055 | LIBS="-lbsm $LIBS" | ||
12056 | |||
12057 | else | ||
12058 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
12059 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
12060 | { (exit 1); exit 1; }; } | ||
12061 | fi | ||
12062 | |||
12063 | |||
12064 | for ac_func in getaudit | ||
12065 | do | ||
12066 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12067 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12068 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12069 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12071 | else | ||
12072 | cat >conftest.$ac_ext <<_ACEOF | ||
12073 | /* confdefs.h. */ | ||
12074 | _ACEOF | ||
12075 | cat confdefs.h >>conftest.$ac_ext | ||
12076 | cat >>conftest.$ac_ext <<_ACEOF | ||
12077 | /* end confdefs.h. */ | ||
12078 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12079 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12080 | #define $ac_func innocuous_$ac_func | ||
12081 | |||
12082 | /* System header to define __stub macros and hopefully few prototypes, | ||
12083 | which can conflict with char $ac_func (); below. | ||
12084 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12085 | <limits.h> exists even on freestanding compilers. */ | ||
12086 | |||
12087 | #ifdef __STDC__ | ||
12088 | # include <limits.h> | ||
12089 | #else | ||
12090 | # include <assert.h> | ||
12091 | #endif | ||
12092 | |||
12093 | #undef $ac_func | ||
12094 | |||
12095 | /* Override any GCC internal prototype to avoid an error. | ||
12096 | Use char because int might match the return type of a GCC | ||
12097 | builtin and then its argument prototype would still apply. */ | ||
12098 | #ifdef __cplusplus | ||
12099 | extern "C" | ||
12100 | #endif | ||
12101 | char $ac_func (); | ||
12102 | /* The GNU C library defines this for functions which it implements | ||
12103 | to always fail with ENOSYS. Some functions are actually named | ||
12104 | something starting with __ and the normal name is an alias. */ | ||
12105 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12106 | choke me | ||
12107 | #endif | ||
12108 | |||
12109 | int | ||
12110 | main () | ||
12111 | { | ||
12112 | return $ac_func (); | ||
12113 | ; | ||
12114 | return 0; | ||
12115 | } | ||
12116 | _ACEOF | ||
12117 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12118 | if { (ac_try="$ac_link" | ||
12119 | case "(($ac_try" in | ||
12120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12121 | *) ac_try_echo=$ac_try;; | ||
12122 | esac | ||
12123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12124 | (eval "$ac_link") 2>conftest.er1 | ||
12125 | ac_status=$? | ||
12126 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12127 | rm -f conftest.er1 | ||
12128 | cat conftest.err >&5 | ||
12129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12130 | (exit $ac_status); } && { | ||
12131 | test -z "$ac_c_werror_flag" || | ||
12132 | test ! -s conftest.err | ||
12133 | } && test -s conftest$ac_exeext && | ||
12134 | $as_test_x conftest$ac_exeext; then | ||
12135 | eval "$as_ac_var=yes" | ||
12136 | else | ||
12137 | echo "$as_me: failed program was:" >&5 | ||
12138 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12139 | |||
12140 | eval "$as_ac_var=no" | ||
12141 | fi | ||
12142 | |||
12143 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12144 | conftest$ac_exeext conftest.$ac_ext | ||
12145 | fi | ||
12146 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12147 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12148 | echo "${ECHO_T}$ac_res" >&6; } | ||
12149 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12150 | cat >>confdefs.h <<_ACEOF | ||
12151 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12152 | _ACEOF | ||
12153 | |||
12154 | else | ||
12155 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
12156 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
12157 | { (exit 1); exit 1; }; } | ||
12158 | fi | ||
12159 | done | ||
12160 | |||
12161 | # These are optional | ||
12162 | |||
12163 | for ac_func in getaudit_addr | ||
12164 | do | ||
12165 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12166 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12167 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12168 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12170 | else | ||
12171 | cat >conftest.$ac_ext <<_ACEOF | ||
12172 | /* confdefs.h. */ | ||
12173 | _ACEOF | ||
12174 | cat confdefs.h >>conftest.$ac_ext | ||
12175 | cat >>conftest.$ac_ext <<_ACEOF | ||
12176 | /* end confdefs.h. */ | ||
12177 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12178 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12179 | #define $ac_func innocuous_$ac_func | ||
12180 | |||
12181 | /* System header to define __stub macros and hopefully few prototypes, | ||
12182 | which can conflict with char $ac_func (); below. | ||
12183 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12184 | <limits.h> exists even on freestanding compilers. */ | ||
12185 | |||
12186 | #ifdef __STDC__ | ||
12187 | # include <limits.h> | ||
12188 | #else | ||
12189 | # include <assert.h> | ||
12190 | #endif | ||
12191 | |||
12192 | #undef $ac_func | ||
12193 | |||
12194 | /* Override any GCC internal prototype to avoid an error. | ||
12195 | Use char because int might match the return type of a GCC | ||
12196 | builtin and then its argument prototype would still apply. */ | ||
12197 | #ifdef __cplusplus | ||
12198 | extern "C" | ||
12199 | #endif | ||
12200 | char $ac_func (); | ||
12201 | /* The GNU C library defines this for functions which it implements | ||
12202 | to always fail with ENOSYS. Some functions are actually named | ||
12203 | something starting with __ and the normal name is an alias. */ | ||
12204 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12205 | choke me | ||
12206 | #endif | ||
12207 | |||
12208 | int | ||
12209 | main () | ||
12210 | { | ||
12211 | return $ac_func (); | ||
12212 | ; | ||
12213 | return 0; | ||
12214 | } | ||
12215 | _ACEOF | ||
12216 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12217 | if { (ac_try="$ac_link" | ||
12218 | case "(($ac_try" in | ||
12219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12220 | *) ac_try_echo=$ac_try;; | ||
12221 | esac | ||
12222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12223 | (eval "$ac_link") 2>conftest.er1 | ||
12224 | ac_status=$? | ||
12225 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12226 | rm -f conftest.er1 | ||
12227 | cat conftest.err >&5 | ||
12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12229 | (exit $ac_status); } && { | ||
12230 | test -z "$ac_c_werror_flag" || | ||
12231 | test ! -s conftest.err | ||
12232 | } && test -s conftest$ac_exeext && | ||
12233 | $as_test_x conftest$ac_exeext; then | ||
12234 | eval "$as_ac_var=yes" | ||
12235 | else | ||
12236 | echo "$as_me: failed program was:" >&5 | ||
12237 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12238 | |||
12239 | eval "$as_ac_var=no" | ||
12240 | fi | ||
12241 | |||
12242 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12243 | conftest$ac_exeext conftest.$ac_ext | ||
12244 | fi | ||
12245 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12246 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12247 | echo "${ECHO_T}$ac_res" >&6; } | ||
12248 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12249 | cat >>confdefs.h <<_ACEOF | ||
12250 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12251 | _ACEOF | ||
12252 | |||
12253 | fi | ||
12254 | done | ||
12255 | |||
12256 | |||
12257 | cat >>confdefs.h <<\_ACEOF | ||
12258 | #define USE_BSM_AUDIT 1 | ||
12259 | _ACEOF | ||
12260 | |||
12261 | ;; | ||
12262 | debug) | ||
12263 | AUDIT_MODULE=debug | ||
12264 | { echo "$as_me:$LINENO: result: debug" >&5 | ||
12265 | echo "${ECHO_T}debug" >&6; } | ||
12266 | |||
12267 | cat >>confdefs.h <<\_ACEOF | ||
12268 | #define SSH_AUDIT_EVENTS 1 | ||
12269 | _ACEOF | ||
12270 | |||
12271 | ;; | ||
12272 | no) | ||
12273 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12274 | echo "${ECHO_T}no" >&6; } | ||
12275 | ;; | ||
12276 | *) | ||
12277 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
12278 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
12279 | { (exit 1); exit 1; }; } | ||
12280 | ;; | ||
12281 | esac | ||
12282 | |||
12283 | fi | ||
12284 | |||
12285 | |||
12286 | |||
12287 | |||
12288 | |||
12289 | |||
12290 | |||
12291 | |||
12292 | |||
12293 | |||
12294 | |||
12295 | |||
12296 | |||
12297 | |||
12298 | |||
12299 | |||
12300 | |||
12301 | |||
12302 | |||
12303 | |||
12304 | |||
12305 | |||
12306 | |||
12307 | |||
12308 | |||
12309 | |||
12310 | |||
12311 | |||
12312 | |||
12313 | |||
12314 | |||
12315 | |||
12316 | |||
12317 | |||
12318 | |||
12319 | |||
12320 | |||
12321 | |||
12322 | |||
12323 | |||
12324 | |||
12325 | |||
12326 | |||
12327 | |||
12328 | |||
12329 | |||
12330 | |||
12331 | |||
12332 | |||
12333 | |||
12334 | |||
12335 | |||
12336 | |||
12337 | |||
12338 | |||
12339 | |||
12340 | |||
12341 | |||
12342 | |||
12343 | |||
12344 | |||
12345 | |||
12346 | |||
12347 | |||
12348 | |||
12349 | |||
12350 | |||
12351 | |||
12352 | |||
12353 | |||
12354 | |||
12355 | |||
12356 | |||
12357 | |||
12358 | |||
12359 | |||
12360 | |||
12361 | |||
12362 | |||
12363 | |||
12364 | |||
12365 | |||
12366 | |||
12367 | for ac_func in \ | ||
12368 | arc4random \ | ||
12369 | asprintf \ | ||
12370 | b64_ntop \ | ||
12371 | __b64_ntop \ | ||
12372 | b64_pton \ | ||
12373 | __b64_pton \ | ||
12374 | bcopy \ | ||
12375 | bindresvport_sa \ | ||
12376 | clock \ | ||
12377 | closefrom \ | ||
12378 | dirfd \ | ||
12379 | fchmod \ | ||
12380 | fchown \ | ||
12381 | freeaddrinfo \ | ||
12382 | futimes \ | ||
12383 | getaddrinfo \ | ||
12384 | getcwd \ | ||
12385 | getgrouplist \ | ||
12386 | getnameinfo \ | ||
12387 | getopt \ | ||
12388 | getpeereid \ | ||
12389 | _getpty \ | ||
12390 | getrlimit \ | ||
12391 | getttyent \ | ||
12392 | glob \ | ||
12393 | inet_aton \ | ||
12394 | inet_ntoa \ | ||
12395 | inet_ntop \ | ||
12396 | innetgr \ | ||
12397 | login_getcapbool \ | ||
12398 | md5_crypt \ | ||
12399 | memmove \ | ||
12400 | mkdtemp \ | ||
12401 | mmap \ | ||
12402 | ngetaddrinfo \ | ||
12403 | nsleep \ | ||
12404 | ogetaddrinfo \ | ||
12405 | openlog_r \ | ||
12406 | openpty \ | ||
12407 | prctl \ | ||
12408 | pstat \ | ||
12409 | readpassphrase \ | ||
12410 | realpath \ | ||
12411 | recvmsg \ | ||
12412 | rresvport_af \ | ||
12413 | sendmsg \ | ||
12414 | setdtablesize \ | ||
12415 | setegid \ | ||
12416 | setenv \ | ||
12417 | seteuid \ | ||
12418 | setgroups \ | ||
12419 | setlogin \ | ||
12420 | setpcred \ | ||
12421 | setproctitle \ | ||
12422 | setregid \ | ||
12423 | setreuid \ | ||
12424 | setrlimit \ | ||
12425 | setsid \ | ||
12426 | setvbuf \ | ||
12427 | sigaction \ | ||
12428 | sigvec \ | ||
12429 | snprintf \ | ||
12430 | socketpair \ | ||
12431 | strdup \ | ||
12432 | strerror \ | ||
12433 | strlcat \ | ||
12434 | strlcpy \ | ||
12435 | strmode \ | ||
12436 | strnvis \ | ||
12437 | strtonum \ | ||
12438 | strtoll \ | ||
12439 | strtoul \ | ||
12440 | sysconf \ | ||
12441 | tcgetpgrp \ | ||
12442 | truncate \ | ||
12443 | unsetenv \ | ||
12444 | updwtmpx \ | ||
12445 | vasprintf \ | ||
12446 | vhangup \ | ||
12447 | vsnprintf \ | ||
12448 | waitpid \ | ||
12449 | |||
12450 | do | ||
12451 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12452 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12453 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12454 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12456 | else | ||
12457 | cat >conftest.$ac_ext <<_ACEOF | ||
12458 | /* confdefs.h. */ | ||
12459 | _ACEOF | ||
12460 | cat confdefs.h >>conftest.$ac_ext | ||
12461 | cat >>conftest.$ac_ext <<_ACEOF | ||
12462 | /* end confdefs.h. */ | ||
12463 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12464 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12465 | #define $ac_func innocuous_$ac_func | ||
12466 | |||
12467 | /* System header to define __stub macros and hopefully few prototypes, | ||
12468 | which can conflict with char $ac_func (); below. | ||
12469 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12470 | <limits.h> exists even on freestanding compilers. */ | ||
12471 | |||
12472 | #ifdef __STDC__ | ||
12473 | # include <limits.h> | ||
12474 | #else | ||
12475 | # include <assert.h> | ||
12476 | #endif | ||
12477 | |||
12478 | #undef $ac_func | ||
12479 | |||
12480 | /* Override any GCC internal prototype to avoid an error. | ||
12481 | Use char because int might match the return type of a GCC | ||
12482 | builtin and then its argument prototype would still apply. */ | ||
12483 | #ifdef __cplusplus | ||
12484 | extern "C" | ||
12485 | #endif | ||
12486 | char $ac_func (); | ||
12487 | /* The GNU C library defines this for functions which it implements | ||
12488 | to always fail with ENOSYS. Some functions are actually named | ||
12489 | something starting with __ and the normal name is an alias. */ | ||
12490 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12491 | choke me | ||
12492 | #endif | ||
12493 | |||
12494 | int | ||
12495 | main () | ||
12496 | { | ||
12497 | return $ac_func (); | ||
12498 | ; | ||
12499 | return 0; | ||
12500 | } | ||
12501 | _ACEOF | ||
12502 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12503 | if { (ac_try="$ac_link" | ||
12504 | case "(($ac_try" in | ||
12505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12506 | *) ac_try_echo=$ac_try;; | ||
12507 | esac | ||
12508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12509 | (eval "$ac_link") 2>conftest.er1 | ||
12510 | ac_status=$? | ||
12511 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12512 | rm -f conftest.er1 | ||
12513 | cat conftest.err >&5 | ||
12514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12515 | (exit $ac_status); } && { | ||
12516 | test -z "$ac_c_werror_flag" || | ||
12517 | test ! -s conftest.err | ||
12518 | } && test -s conftest$ac_exeext && | ||
12519 | $as_test_x conftest$ac_exeext; then | ||
12520 | eval "$as_ac_var=yes" | ||
12521 | else | ||
12522 | echo "$as_me: failed program was:" >&5 | ||
12523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12524 | |||
12525 | eval "$as_ac_var=no" | ||
12526 | fi | ||
12527 | |||
12528 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12529 | conftest$ac_exeext conftest.$ac_ext | ||
12530 | fi | ||
12531 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12532 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12533 | echo "${ECHO_T}$ac_res" >&6; } | ||
12534 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12535 | cat >>confdefs.h <<_ACEOF | ||
12536 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12537 | _ACEOF | ||
12538 | |||
12539 | fi | ||
12540 | done | ||
12541 | |||
12542 | |||
12543 | # IRIX has a const char return value for gai_strerror() | ||
12544 | |||
12545 | for ac_func in gai_strerror | ||
12546 | do | ||
12547 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12548 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12549 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12550 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12552 | else | ||
12553 | cat >conftest.$ac_ext <<_ACEOF | ||
12554 | /* confdefs.h. */ | ||
12555 | _ACEOF | ||
12556 | cat confdefs.h >>conftest.$ac_ext | ||
12557 | cat >>conftest.$ac_ext <<_ACEOF | ||
12558 | /* end confdefs.h. */ | ||
12559 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12561 | #define $ac_func innocuous_$ac_func | ||
12562 | |||
12563 | /* System header to define __stub macros and hopefully few prototypes, | ||
12564 | which can conflict with char $ac_func (); below. | ||
12565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12566 | <limits.h> exists even on freestanding compilers. */ | ||
12567 | |||
12568 | #ifdef __STDC__ | ||
12569 | # include <limits.h> | ||
12570 | #else | ||
12571 | # include <assert.h> | ||
12572 | #endif | ||
12573 | |||
12574 | #undef $ac_func | ||
12575 | |||
12576 | /* Override any GCC internal prototype to avoid an error. | ||
12577 | Use char because int might match the return type of a GCC | ||
12578 | builtin and then its argument prototype would still apply. */ | ||
12579 | #ifdef __cplusplus | ||
12580 | extern "C" | ||
12581 | #endif | ||
12582 | char $ac_func (); | ||
12583 | /* The GNU C library defines this for functions which it implements | ||
12584 | to always fail with ENOSYS. Some functions are actually named | ||
12585 | something starting with __ and the normal name is an alias. */ | ||
12586 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12587 | choke me | ||
12588 | #endif | ||
12589 | |||
12590 | int | ||
12591 | main () | ||
12592 | { | ||
12593 | return $ac_func (); | ||
12594 | ; | ||
12595 | return 0; | ||
12596 | } | ||
12597 | _ACEOF | ||
12598 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12599 | if { (ac_try="$ac_link" | ||
12600 | case "(($ac_try" in | ||
12601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12602 | *) ac_try_echo=$ac_try;; | ||
12603 | esac | ||
12604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12605 | (eval "$ac_link") 2>conftest.er1 | ||
12606 | ac_status=$? | ||
12607 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12608 | rm -f conftest.er1 | ||
12609 | cat conftest.err >&5 | ||
12610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12611 | (exit $ac_status); } && { | ||
12612 | test -z "$ac_c_werror_flag" || | ||
12613 | test ! -s conftest.err | ||
12614 | } && test -s conftest$ac_exeext && | ||
12615 | $as_test_x conftest$ac_exeext; then | ||
12616 | eval "$as_ac_var=yes" | ||
12617 | else | ||
12618 | echo "$as_me: failed program was:" >&5 | ||
12619 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12620 | |||
12621 | eval "$as_ac_var=no" | ||
12622 | fi | ||
12623 | |||
12624 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12625 | conftest$ac_exeext conftest.$ac_ext | ||
12626 | fi | ||
12627 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12628 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12629 | echo "${ECHO_T}$ac_res" >&6; } | ||
12630 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12631 | cat >>confdefs.h <<_ACEOF | ||
12632 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12633 | _ACEOF | ||
12634 | |||
12635 | cat >>confdefs.h <<\_ACEOF | ||
12636 | #define HAVE_GAI_STRERROR 1 | ||
12637 | _ACEOF | ||
12638 | |||
12639 | cat >conftest.$ac_ext <<_ACEOF | ||
12640 | /* confdefs.h. */ | ||
12641 | _ACEOF | ||
12642 | cat confdefs.h >>conftest.$ac_ext | ||
12643 | cat >>conftest.$ac_ext <<_ACEOF | ||
12644 | /* end confdefs.h. */ | ||
12645 | |||
12646 | #include <sys/types.h> | ||
12647 | #include <sys/socket.h> | ||
12648 | #include <netdb.h> | ||
12649 | |||
12650 | const char *gai_strerror(int); | ||
12651 | int | ||
12652 | main () | ||
12653 | { | ||
12654 | |||
12655 | char *str; | ||
12656 | |||
12657 | str = gai_strerror(0); | ||
12658 | ; | ||
12659 | return 0; | ||
12660 | } | ||
12661 | _ACEOF | ||
12662 | rm -f conftest.$ac_objext | ||
12663 | if { (ac_try="$ac_compile" | ||
12664 | case "(($ac_try" in | ||
12665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12666 | *) ac_try_echo=$ac_try;; | ||
12667 | esac | ||
12668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12669 | (eval "$ac_compile") 2>conftest.er1 | ||
12670 | ac_status=$? | ||
12671 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12672 | rm -f conftest.er1 | ||
12673 | cat conftest.err >&5 | ||
12674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12675 | (exit $ac_status); } && { | ||
12676 | test -z "$ac_c_werror_flag" || | ||
12677 | test ! -s conftest.err | ||
12678 | } && test -s conftest.$ac_objext; then | ||
12679 | |||
12680 | |||
12681 | cat >>confdefs.h <<\_ACEOF | ||
12682 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
12683 | _ACEOF | ||
12684 | |||
12685 | else | ||
12686 | echo "$as_me: failed program was:" >&5 | ||
12687 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12688 | |||
12689 | |||
12690 | fi | ||
12691 | |||
12692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12693 | fi | ||
12694 | done | ||
12695 | |||
12696 | |||
12697 | { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
12698 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } | ||
12699 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
12700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12701 | else | ||
12702 | ac_func_search_save_LIBS=$LIBS | ||
12703 | cat >conftest.$ac_ext <<_ACEOF | ||
12704 | /* confdefs.h. */ | ||
12705 | _ACEOF | ||
12706 | cat confdefs.h >>conftest.$ac_ext | ||
12707 | cat >>conftest.$ac_ext <<_ACEOF | ||
12708 | /* end confdefs.h. */ | ||
12709 | |||
12710 | /* Override any GCC internal prototype to avoid an error. | ||
12711 | Use char because int might match the return type of a GCC | ||
12712 | builtin and then its argument prototype would still apply. */ | ||
12713 | #ifdef __cplusplus | ||
12714 | extern "C" | ||
12715 | #endif | ||
12716 | char nanosleep (); | ||
12717 | int | ||
12718 | main () | ||
12719 | { | ||
12720 | return nanosleep (); | ||
12721 | ; | ||
12722 | return 0; | ||
12723 | } | ||
12724 | _ACEOF | ||
12725 | for ac_lib in '' rt posix4; do | ||
12726 | if test -z "$ac_lib"; then | ||
12727 | ac_res="none required" | ||
12728 | else | ||
12729 | ac_res=-l$ac_lib | ||
12730 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
12731 | fi | ||
12732 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12733 | if { (ac_try="$ac_link" | ||
12734 | case "(($ac_try" in | ||
12735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12736 | *) ac_try_echo=$ac_try;; | ||
12737 | esac | ||
12738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12739 | (eval "$ac_link") 2>conftest.er1 | ||
12740 | ac_status=$? | ||
12741 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12742 | rm -f conftest.er1 | ||
12743 | cat conftest.err >&5 | ||
12744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12745 | (exit $ac_status); } && { | ||
12746 | test -z "$ac_c_werror_flag" || | ||
12747 | test ! -s conftest.err | ||
12748 | } && test -s conftest$ac_exeext && | ||
12749 | $as_test_x conftest$ac_exeext; then | ||
12750 | ac_cv_search_nanosleep=$ac_res | ||
12751 | else | ||
12752 | echo "$as_me: failed program was:" >&5 | ||
12753 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12754 | |||
12755 | |||
12756 | fi | ||
12757 | |||
12758 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12759 | conftest$ac_exeext | ||
12760 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
12761 | break | ||
12762 | fi | ||
12763 | done | ||
12764 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
12765 | : | ||
12766 | else | ||
12767 | ac_cv_search_nanosleep=no | ||
12768 | fi | ||
12769 | rm conftest.$ac_ext | ||
12770 | LIBS=$ac_func_search_save_LIBS | ||
12771 | fi | ||
12772 | { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
12773 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } | ||
12774 | ac_res=$ac_cv_search_nanosleep | ||
12775 | if test "$ac_res" != no; then | ||
12776 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
12777 | |||
12778 | cat >>confdefs.h <<\_ACEOF | ||
12779 | #define HAVE_NANOSLEEP 1 | ||
12780 | _ACEOF | ||
12781 | |||
12782 | fi | ||
12783 | |||
12784 | |||
12785 | { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
12786 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; } | ||
12787 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
12788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12789 | else | ||
12790 | cat >conftest.$ac_ext <<_ACEOF | ||
12791 | /* confdefs.h. */ | ||
12792 | _ACEOF | ||
12793 | cat confdefs.h >>conftest.$ac_ext | ||
12794 | cat >>conftest.$ac_ext <<_ACEOF | ||
12795 | /* end confdefs.h. */ | ||
12796 | $ac_includes_default | ||
12797 | int | ||
12798 | main () | ||
12799 | { | ||
12800 | #ifndef getrusage | ||
12801 | (void) getrusage; | ||
12802 | #endif | ||
12803 | |||
12804 | ; | ||
12805 | return 0; | ||
12806 | } | ||
12807 | _ACEOF | ||
12808 | rm -f conftest.$ac_objext | ||
12809 | if { (ac_try="$ac_compile" | ||
12810 | case "(($ac_try" in | ||
12811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12812 | *) ac_try_echo=$ac_try;; | ||
12813 | esac | ||
12814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12815 | (eval "$ac_compile") 2>conftest.er1 | ||
12816 | ac_status=$? | ||
12817 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12818 | rm -f conftest.er1 | ||
12819 | cat conftest.err >&5 | ||
12820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12821 | (exit $ac_status); } && { | ||
12822 | test -z "$ac_c_werror_flag" || | ||
12823 | test ! -s conftest.err | ||
12824 | } && test -s conftest.$ac_objext; then | ||
12825 | ac_cv_have_decl_getrusage=yes | ||
12826 | else | ||
12827 | echo "$as_me: failed program was:" >&5 | ||
12828 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12829 | |||
12830 | ac_cv_have_decl_getrusage=no | ||
12831 | fi | ||
12832 | |||
12833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12834 | fi | ||
12835 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
12836 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; } | ||
12837 | if test $ac_cv_have_decl_getrusage = yes; then | ||
12838 | |||
12839 | for ac_func in getrusage | ||
12840 | do | ||
12841 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12842 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12843 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12844 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12846 | else | ||
12847 | cat >conftest.$ac_ext <<_ACEOF | ||
12848 | /* confdefs.h. */ | ||
12849 | _ACEOF | ||
12850 | cat confdefs.h >>conftest.$ac_ext | ||
12851 | cat >>conftest.$ac_ext <<_ACEOF | ||
12852 | /* end confdefs.h. */ | ||
12853 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12854 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12855 | #define $ac_func innocuous_$ac_func | ||
12856 | |||
12857 | /* System header to define __stub macros and hopefully few prototypes, | ||
12858 | which can conflict with char $ac_func (); below. | ||
12859 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12860 | <limits.h> exists even on freestanding compilers. */ | ||
12861 | |||
12862 | #ifdef __STDC__ | ||
12863 | # include <limits.h> | ||
12864 | #else | ||
12865 | # include <assert.h> | ||
12866 | #endif | ||
12867 | |||
12868 | #undef $ac_func | ||
12869 | |||
12870 | /* Override any GCC internal prototype to avoid an error. | ||
12871 | Use char because int might match the return type of a GCC | ||
12872 | builtin and then its argument prototype would still apply. */ | ||
12873 | #ifdef __cplusplus | ||
12874 | extern "C" | ||
12875 | #endif | ||
12876 | char $ac_func (); | ||
12877 | /* The GNU C library defines this for functions which it implements | ||
12878 | to always fail with ENOSYS. Some functions are actually named | ||
12879 | something starting with __ and the normal name is an alias. */ | ||
12880 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12881 | choke me | ||
12882 | #endif | ||
12883 | |||
12884 | int | ||
12885 | main () | ||
12886 | { | ||
12887 | return $ac_func (); | ||
12888 | ; | ||
12889 | return 0; | ||
12890 | } | ||
12891 | _ACEOF | ||
12892 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12893 | if { (ac_try="$ac_link" | ||
12894 | case "(($ac_try" in | ||
12895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12896 | *) ac_try_echo=$ac_try;; | ||
12897 | esac | ||
12898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12899 | (eval "$ac_link") 2>conftest.er1 | ||
12900 | ac_status=$? | ||
12901 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12902 | rm -f conftest.er1 | ||
12903 | cat conftest.err >&5 | ||
12904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12905 | (exit $ac_status); } && { | ||
12906 | test -z "$ac_c_werror_flag" || | ||
12907 | test ! -s conftest.err | ||
12908 | } && test -s conftest$ac_exeext && | ||
12909 | $as_test_x conftest$ac_exeext; then | ||
12910 | eval "$as_ac_var=yes" | ||
12911 | else | ||
12912 | echo "$as_me: failed program was:" >&5 | ||
12913 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12914 | |||
12915 | eval "$as_ac_var=no" | ||
12916 | fi | ||
12917 | |||
12918 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12919 | conftest$ac_exeext conftest.$ac_ext | ||
12920 | fi | ||
12921 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12922 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12923 | echo "${ECHO_T}$ac_res" >&6; } | ||
12924 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12925 | cat >>confdefs.h <<_ACEOF | ||
12926 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12927 | _ACEOF | ||
12928 | |||
12929 | fi | ||
12930 | done | ||
12931 | |||
12932 | fi | ||
12933 | |||
12934 | { echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
12935 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; } | ||
12936 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
12937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12938 | else | ||
12939 | cat >conftest.$ac_ext <<_ACEOF | ||
12940 | /* confdefs.h. */ | ||
12941 | _ACEOF | ||
12942 | cat confdefs.h >>conftest.$ac_ext | ||
12943 | cat >>conftest.$ac_ext <<_ACEOF | ||
12944 | /* end confdefs.h. */ | ||
12945 | |||
12946 | #ifdef HAVE_STRING_H | ||
12947 | # include <string.h> | ||
12948 | #endif | ||
12949 | |||
12950 | |||
12951 | int | ||
12952 | main () | ||
12953 | { | ||
12954 | #ifndef strsep | ||
12955 | (void) strsep; | ||
12956 | #endif | ||
12957 | |||
12958 | ; | ||
12959 | return 0; | ||
12960 | } | ||
12961 | _ACEOF | ||
12962 | rm -f conftest.$ac_objext | ||
12963 | if { (ac_try="$ac_compile" | ||
12964 | case "(($ac_try" in | ||
12965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12966 | *) ac_try_echo=$ac_try;; | ||
12967 | esac | ||
12968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12969 | (eval "$ac_compile") 2>conftest.er1 | ||
12970 | ac_status=$? | ||
12971 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12972 | rm -f conftest.er1 | ||
12973 | cat conftest.err >&5 | ||
12974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12975 | (exit $ac_status); } && { | ||
12976 | test -z "$ac_c_werror_flag" || | ||
12977 | test ! -s conftest.err | ||
12978 | } && test -s conftest.$ac_objext; then | ||
12979 | ac_cv_have_decl_strsep=yes | ||
12980 | else | ||
12981 | echo "$as_me: failed program was:" >&5 | ||
12982 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12983 | |||
12984 | ac_cv_have_decl_strsep=no | ||
12985 | fi | ||
12986 | |||
12987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12988 | fi | ||
12989 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
12990 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; } | ||
12991 | if test $ac_cv_have_decl_strsep = yes; then | ||
12992 | |||
12993 | for ac_func in strsep | ||
12994 | do | ||
12995 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12996 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12997 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12998 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13000 | else | ||
13001 | cat >conftest.$ac_ext <<_ACEOF | ||
13002 | /* confdefs.h. */ | ||
13003 | _ACEOF | ||
13004 | cat confdefs.h >>conftest.$ac_ext | ||
13005 | cat >>conftest.$ac_ext <<_ACEOF | ||
13006 | /* end confdefs.h. */ | ||
13007 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13008 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13009 | #define $ac_func innocuous_$ac_func | ||
13010 | |||
13011 | /* System header to define __stub macros and hopefully few prototypes, | ||
13012 | which can conflict with char $ac_func (); below. | ||
13013 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13014 | <limits.h> exists even on freestanding compilers. */ | ||
13015 | |||
13016 | #ifdef __STDC__ | ||
13017 | # include <limits.h> | ||
13018 | #else | ||
13019 | # include <assert.h> | ||
13020 | #endif | ||
13021 | |||
13022 | #undef $ac_func | ||
13023 | |||
13024 | /* Override any GCC internal prototype to avoid an error. | ||
13025 | Use char because int might match the return type of a GCC | ||
13026 | builtin and then its argument prototype would still apply. */ | ||
13027 | #ifdef __cplusplus | ||
13028 | extern "C" | ||
13029 | #endif | ||
13030 | char $ac_func (); | ||
13031 | /* The GNU C library defines this for functions which it implements | ||
13032 | to always fail with ENOSYS. Some functions are actually named | ||
13033 | something starting with __ and the normal name is an alias. */ | ||
13034 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13035 | choke me | ||
13036 | #endif | ||
13037 | |||
13038 | int | ||
13039 | main () | ||
13040 | { | ||
13041 | return $ac_func (); | ||
13042 | ; | ||
13043 | return 0; | ||
13044 | } | ||
13045 | _ACEOF | ||
13046 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13047 | if { (ac_try="$ac_link" | ||
13048 | case "(($ac_try" in | ||
13049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13050 | *) ac_try_echo=$ac_try;; | ||
13051 | esac | ||
13052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13053 | (eval "$ac_link") 2>conftest.er1 | ||
13054 | ac_status=$? | ||
13055 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13056 | rm -f conftest.er1 | ||
13057 | cat conftest.err >&5 | ||
13058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13059 | (exit $ac_status); } && { | ||
13060 | test -z "$ac_c_werror_flag" || | ||
13061 | test ! -s conftest.err | ||
13062 | } && test -s conftest$ac_exeext && | ||
13063 | $as_test_x conftest$ac_exeext; then | ||
13064 | eval "$as_ac_var=yes" | ||
13065 | else | ||
13066 | echo "$as_me: failed program was:" >&5 | ||
13067 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13068 | |||
13069 | eval "$as_ac_var=no" | ||
13070 | fi | ||
13071 | |||
13072 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13073 | conftest$ac_exeext conftest.$ac_ext | ||
13074 | fi | ||
13075 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13076 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13077 | echo "${ECHO_T}$ac_res" >&6; } | ||
13078 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13079 | cat >>confdefs.h <<_ACEOF | ||
13080 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13081 | _ACEOF | ||
13082 | |||
13083 | fi | ||
13084 | done | ||
13085 | |||
13086 | fi | ||
13087 | |||
13088 | |||
13089 | { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
13090 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; } | ||
13091 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
13092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13093 | else | ||
13094 | cat >conftest.$ac_ext <<_ACEOF | ||
13095 | /* confdefs.h. */ | ||
13096 | _ACEOF | ||
13097 | cat confdefs.h >>conftest.$ac_ext | ||
13098 | cat >>conftest.$ac_ext <<_ACEOF | ||
13099 | /* end confdefs.h. */ | ||
13100 | #include <termios.h> | ||
13101 | |||
13102 | |||
13103 | int | ||
13104 | main () | ||
13105 | { | ||
13106 | #ifndef tcsendbreak | ||
13107 | (void) tcsendbreak; | ||
13108 | #endif | ||
13109 | |||
13110 | ; | ||
13111 | return 0; | ||
13112 | } | ||
13113 | _ACEOF | ||
13114 | rm -f conftest.$ac_objext | ||
13115 | if { (ac_try="$ac_compile" | ||
13116 | case "(($ac_try" in | ||
13117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13118 | *) ac_try_echo=$ac_try;; | ||
13119 | esac | ||
13120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13121 | (eval "$ac_compile") 2>conftest.er1 | ||
13122 | ac_status=$? | ||
13123 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13124 | rm -f conftest.er1 | ||
13125 | cat conftest.err >&5 | ||
13126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13127 | (exit $ac_status); } && { | ||
13128 | test -z "$ac_c_werror_flag" || | ||
13129 | test ! -s conftest.err | ||
13130 | } && test -s conftest.$ac_objext; then | ||
13131 | ac_cv_have_decl_tcsendbreak=yes | ||
13132 | else | ||
13133 | echo "$as_me: failed program was:" >&5 | ||
13134 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13135 | |||
13136 | ac_cv_have_decl_tcsendbreak=no | ||
13137 | fi | ||
13138 | |||
13139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13140 | fi | ||
13141 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
13142 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; } | ||
13143 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
13144 | cat >>confdefs.h <<\_ACEOF | ||
13145 | #define HAVE_TCSENDBREAK 1 | ||
13146 | _ACEOF | ||
13147 | |||
13148 | else | ||
13149 | |||
13150 | for ac_func in tcsendbreak | ||
13151 | do | ||
13152 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13153 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13154 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13155 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13157 | else | ||
13158 | cat >conftest.$ac_ext <<_ACEOF | ||
13159 | /* confdefs.h. */ | ||
13160 | _ACEOF | ||
13161 | cat confdefs.h >>conftest.$ac_ext | ||
13162 | cat >>conftest.$ac_ext <<_ACEOF | ||
13163 | /* end confdefs.h. */ | ||
13164 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13165 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13166 | #define $ac_func innocuous_$ac_func | ||
13167 | |||
13168 | /* System header to define __stub macros and hopefully few prototypes, | ||
13169 | which can conflict with char $ac_func (); below. | ||
13170 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13171 | <limits.h> exists even on freestanding compilers. */ | ||
13172 | |||
13173 | #ifdef __STDC__ | ||
13174 | # include <limits.h> | ||
13175 | #else | ||
13176 | # include <assert.h> | ||
13177 | #endif | ||
13178 | |||
13179 | #undef $ac_func | ||
13180 | |||
13181 | /* Override any GCC internal prototype to avoid an error. | ||
13182 | Use char because int might match the return type of a GCC | ||
13183 | builtin and then its argument prototype would still apply. */ | ||
13184 | #ifdef __cplusplus | ||
13185 | extern "C" | ||
13186 | #endif | ||
13187 | char $ac_func (); | ||
13188 | /* The GNU C library defines this for functions which it implements | ||
13189 | to always fail with ENOSYS. Some functions are actually named | ||
13190 | something starting with __ and the normal name is an alias. */ | ||
13191 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13192 | choke me | ||
13193 | #endif | ||
13194 | |||
13195 | int | ||
13196 | main () | ||
13197 | { | ||
13198 | return $ac_func (); | ||
13199 | ; | ||
13200 | return 0; | ||
13201 | } | ||
13202 | _ACEOF | ||
13203 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13204 | if { (ac_try="$ac_link" | ||
13205 | case "(($ac_try" in | ||
13206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13207 | *) ac_try_echo=$ac_try;; | ||
13208 | esac | ||
13209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13210 | (eval "$ac_link") 2>conftest.er1 | ||
13211 | ac_status=$? | ||
13212 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13213 | rm -f conftest.er1 | ||
13214 | cat conftest.err >&5 | ||
13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13216 | (exit $ac_status); } && { | ||
13217 | test -z "$ac_c_werror_flag" || | ||
13218 | test ! -s conftest.err | ||
13219 | } && test -s conftest$ac_exeext && | ||
13220 | $as_test_x conftest$ac_exeext; then | ||
13221 | eval "$as_ac_var=yes" | ||
13222 | else | ||
13223 | echo "$as_me: failed program was:" >&5 | ||
13224 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13225 | |||
13226 | eval "$as_ac_var=no" | ||
13227 | fi | ||
13228 | |||
13229 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13230 | conftest$ac_exeext conftest.$ac_ext | ||
13231 | fi | ||
13232 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13233 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13234 | echo "${ECHO_T}$ac_res" >&6; } | ||
13235 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13236 | cat >>confdefs.h <<_ACEOF | ||
13237 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13238 | _ACEOF | ||
13239 | |||
13240 | fi | ||
13241 | done | ||
13242 | |||
13243 | fi | ||
13244 | |||
13245 | |||
13246 | { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
13247 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } | ||
13248 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
13249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13250 | else | ||
13251 | cat >conftest.$ac_ext <<_ACEOF | ||
13252 | /* confdefs.h. */ | ||
13253 | _ACEOF | ||
13254 | cat confdefs.h >>conftest.$ac_ext | ||
13255 | cat >>conftest.$ac_ext <<_ACEOF | ||
13256 | /* end confdefs.h. */ | ||
13257 | #include <netdb.h> | ||
13258 | |||
13259 | int | ||
13260 | main () | ||
13261 | { | ||
13262 | #ifndef h_errno | ||
13263 | (void) h_errno; | ||
13264 | #endif | ||
13265 | |||
13266 | ; | ||
13267 | return 0; | ||
13268 | } | ||
13269 | _ACEOF | ||
13270 | rm -f conftest.$ac_objext | ||
13271 | if { (ac_try="$ac_compile" | ||
13272 | case "(($ac_try" in | ||
13273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13274 | *) ac_try_echo=$ac_try;; | ||
13275 | esac | ||
13276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13277 | (eval "$ac_compile") 2>conftest.er1 | ||
13278 | ac_status=$? | ||
13279 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13280 | rm -f conftest.er1 | ||
13281 | cat conftest.err >&5 | ||
13282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13283 | (exit $ac_status); } && { | ||
13284 | test -z "$ac_c_werror_flag" || | ||
13285 | test ! -s conftest.err | ||
13286 | } && test -s conftest.$ac_objext; then | ||
13287 | ac_cv_have_decl_h_errno=yes | ||
13288 | else | ||
13289 | echo "$as_me: failed program was:" >&5 | ||
13290 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13291 | |||
13292 | ac_cv_have_decl_h_errno=no | ||
13293 | fi | ||
13294 | |||
13295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13296 | fi | ||
13297 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
13298 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } | ||
13299 | if test $ac_cv_have_decl_h_errno = yes; then | ||
13300 | |||
13301 | cat >>confdefs.h <<_ACEOF | ||
13302 | #define HAVE_DECL_H_ERRNO 1 | ||
13303 | _ACEOF | ||
13304 | |||
13305 | |||
13306 | else | ||
13307 | cat >>confdefs.h <<_ACEOF | ||
13308 | #define HAVE_DECL_H_ERRNO 0 | ||
13309 | _ACEOF | ||
13310 | |||
13311 | |||
13312 | fi | ||
13313 | |||
13314 | |||
13315 | |||
13316 | { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 | ||
13317 | echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; } | ||
13318 | if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then | ||
13319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13320 | else | ||
13321 | cat >conftest.$ac_ext <<_ACEOF | ||
13322 | /* confdefs.h. */ | ||
13323 | _ACEOF | ||
13324 | cat confdefs.h >>conftest.$ac_ext | ||
13325 | cat >>conftest.$ac_ext <<_ACEOF | ||
13326 | /* end confdefs.h. */ | ||
13327 | |||
13328 | #include <sys/types.h> | ||
13329 | #include <sys/socket.h> | ||
13330 | |||
13331 | |||
13332 | int | ||
13333 | main () | ||
13334 | { | ||
13335 | #ifndef SHUT_RD | ||
13336 | (void) SHUT_RD; | ||
13337 | #endif | ||
13338 | |||
13339 | ; | ||
13340 | return 0; | ||
13341 | } | ||
13342 | _ACEOF | ||
13343 | rm -f conftest.$ac_objext | ||
13344 | if { (ac_try="$ac_compile" | ||
13345 | case "(($ac_try" in | ||
13346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13347 | *) ac_try_echo=$ac_try;; | ||
13348 | esac | ||
13349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13350 | (eval "$ac_compile") 2>conftest.er1 | ||
13351 | ac_status=$? | ||
13352 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13353 | rm -f conftest.er1 | ||
13354 | cat conftest.err >&5 | ||
13355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13356 | (exit $ac_status); } && { | ||
13357 | test -z "$ac_c_werror_flag" || | ||
13358 | test ! -s conftest.err | ||
13359 | } && test -s conftest.$ac_objext; then | ||
13360 | ac_cv_have_decl_SHUT_RD=yes | ||
13361 | else | ||
13362 | echo "$as_me: failed program was:" >&5 | ||
13363 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13364 | |||
13365 | ac_cv_have_decl_SHUT_RD=no | ||
13366 | fi | ||
13367 | |||
13368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13369 | fi | ||
13370 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 | ||
13371 | echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; } | ||
13372 | if test $ac_cv_have_decl_SHUT_RD = yes; then | ||
13373 | |||
13374 | cat >>confdefs.h <<_ACEOF | ||
13375 | #define HAVE_DECL_SHUT_RD 1 | ||
13376 | _ACEOF | ||
13377 | |||
13378 | |||
13379 | else | ||
13380 | cat >>confdefs.h <<_ACEOF | ||
13381 | #define HAVE_DECL_SHUT_RD 0 | ||
13382 | _ACEOF | ||
13383 | |||
13384 | |||
13385 | fi | ||
13386 | |||
13387 | |||
13388 | |||
13389 | { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 | ||
13390 | echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; } | ||
13391 | if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then | ||
13392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13393 | else | ||
13394 | cat >conftest.$ac_ext <<_ACEOF | ||
13395 | /* confdefs.h. */ | ||
13396 | _ACEOF | ||
13397 | cat confdefs.h >>conftest.$ac_ext | ||
13398 | cat >>conftest.$ac_ext <<_ACEOF | ||
13399 | /* end confdefs.h. */ | ||
13400 | |||
13401 | #include <sys/types.h> | ||
13402 | #ifdef HAVE_SYS_STAT_H | ||
13403 | # include <sys/stat.h> | ||
13404 | #endif | ||
13405 | #ifdef HAVE_FCNTL_H | ||
13406 | # include <fcntl.h> | ||
13407 | #endif | ||
13408 | |||
13409 | |||
13410 | int | ||
13411 | main () | ||
13412 | { | ||
13413 | #ifndef O_NONBLOCK | ||
13414 | (void) O_NONBLOCK; | ||
13415 | #endif | ||
13416 | |||
13417 | ; | ||
13418 | return 0; | ||
13419 | } | ||
13420 | _ACEOF | ||
13421 | rm -f conftest.$ac_objext | ||
13422 | if { (ac_try="$ac_compile" | ||
13423 | case "(($ac_try" in | ||
13424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13425 | *) ac_try_echo=$ac_try;; | ||
13426 | esac | ||
13427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13428 | (eval "$ac_compile") 2>conftest.er1 | ||
13429 | ac_status=$? | ||
13430 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13431 | rm -f conftest.er1 | ||
13432 | cat conftest.err >&5 | ||
13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13434 | (exit $ac_status); } && { | ||
13435 | test -z "$ac_c_werror_flag" || | ||
13436 | test ! -s conftest.err | ||
13437 | } && test -s conftest.$ac_objext; then | ||
13438 | ac_cv_have_decl_O_NONBLOCK=yes | ||
13439 | else | ||
13440 | echo "$as_me: failed program was:" >&5 | ||
13441 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13442 | |||
13443 | ac_cv_have_decl_O_NONBLOCK=no | ||
13444 | fi | ||
13445 | |||
13446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13447 | fi | ||
13448 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 | ||
13449 | echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; } | ||
13450 | if test $ac_cv_have_decl_O_NONBLOCK = yes; then | ||
13451 | |||
13452 | cat >>confdefs.h <<_ACEOF | ||
13453 | #define HAVE_DECL_O_NONBLOCK 1 | ||
13454 | _ACEOF | ||
13455 | |||
13456 | |||
13457 | else | ||
13458 | cat >>confdefs.h <<_ACEOF | ||
13459 | #define HAVE_DECL_O_NONBLOCK 0 | ||
13460 | _ACEOF | ||
13461 | |||
13462 | |||
13463 | fi | ||
13464 | |||
13465 | |||
13466 | |||
13467 | { echo "$as_me:$LINENO: checking whether writev is declared" >&5 | ||
13468 | echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; } | ||
13469 | if test "${ac_cv_have_decl_writev+set}" = set; then | ||
13470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13471 | else | ||
13472 | cat >conftest.$ac_ext <<_ACEOF | ||
13473 | /* confdefs.h. */ | ||
13474 | _ACEOF | ||
13475 | cat confdefs.h >>conftest.$ac_ext | ||
13476 | cat >>conftest.$ac_ext <<_ACEOF | ||
13477 | /* end confdefs.h. */ | ||
13478 | |||
13479 | #include <sys/types.h> | ||
13480 | #include <sys/uio.h> | ||
13481 | #include <unistd.h> | ||
13482 | |||
13483 | |||
13484 | int | ||
13485 | main () | ||
13486 | { | ||
13487 | #ifndef writev | ||
13488 | (void) writev; | ||
13489 | #endif | ||
13490 | |||
13491 | ; | ||
13492 | return 0; | ||
13493 | } | ||
13494 | _ACEOF | ||
13495 | rm -f conftest.$ac_objext | ||
13496 | if { (ac_try="$ac_compile" | ||
13497 | case "(($ac_try" in | ||
13498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13499 | *) ac_try_echo=$ac_try;; | ||
13500 | esac | ||
13501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13502 | (eval "$ac_compile") 2>conftest.er1 | ||
13503 | ac_status=$? | ||
13504 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13505 | rm -f conftest.er1 | ||
13506 | cat conftest.err >&5 | ||
13507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13508 | (exit $ac_status); } && { | ||
13509 | test -z "$ac_c_werror_flag" || | ||
13510 | test ! -s conftest.err | ||
13511 | } && test -s conftest.$ac_objext; then | ||
13512 | ac_cv_have_decl_writev=yes | ||
13513 | else | ||
13514 | echo "$as_me: failed program was:" >&5 | ||
13515 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13516 | |||
13517 | ac_cv_have_decl_writev=no | ||
13518 | fi | ||
13519 | |||
13520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13521 | fi | ||
13522 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 | ||
13523 | echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; } | ||
13524 | if test $ac_cv_have_decl_writev = yes; then | ||
13525 | |||
13526 | cat >>confdefs.h <<_ACEOF | ||
13527 | #define HAVE_DECL_WRITEV 1 | ||
13528 | _ACEOF | ||
13529 | |||
13530 | |||
13531 | else | ||
13532 | cat >>confdefs.h <<_ACEOF | ||
13533 | #define HAVE_DECL_WRITEV 0 | ||
13534 | _ACEOF | ||
13535 | |||
13536 | |||
13537 | fi | ||
13538 | |||
13539 | |||
13540 | |||
13541 | |||
13542 | for ac_func in setresuid | ||
13543 | do | ||
13544 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13545 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13546 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13547 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13549 | else | ||
13550 | cat >conftest.$ac_ext <<_ACEOF | ||
13551 | /* confdefs.h. */ | ||
13552 | _ACEOF | ||
13553 | cat confdefs.h >>conftest.$ac_ext | ||
13554 | cat >>conftest.$ac_ext <<_ACEOF | ||
13555 | /* end confdefs.h. */ | ||
13556 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13557 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13558 | #define $ac_func innocuous_$ac_func | ||
13559 | |||
13560 | /* System header to define __stub macros and hopefully few prototypes, | ||
13561 | which can conflict with char $ac_func (); below. | ||
13562 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13563 | <limits.h> exists even on freestanding compilers. */ | ||
13564 | |||
13565 | #ifdef __STDC__ | ||
13566 | # include <limits.h> | ||
13567 | #else | ||
13568 | # include <assert.h> | ||
13569 | #endif | ||
13570 | |||
13571 | #undef $ac_func | ||
13572 | |||
13573 | /* Override any GCC internal prototype to avoid an error. | ||
13574 | Use char because int might match the return type of a GCC | ||
13575 | builtin and then its argument prototype would still apply. */ | ||
13576 | #ifdef __cplusplus | ||
13577 | extern "C" | ||
13578 | #endif | ||
13579 | char $ac_func (); | ||
13580 | /* The GNU C library defines this for functions which it implements | ||
13581 | to always fail with ENOSYS. Some functions are actually named | ||
13582 | something starting with __ and the normal name is an alias. */ | ||
13583 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13584 | choke me | ||
13585 | #endif | ||
13586 | |||
13587 | int | ||
13588 | main () | ||
13589 | { | ||
13590 | return $ac_func (); | ||
13591 | ; | ||
13592 | return 0; | ||
13593 | } | ||
13594 | _ACEOF | ||
13595 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13596 | if { (ac_try="$ac_link" | ||
13597 | case "(($ac_try" in | ||
13598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13599 | *) ac_try_echo=$ac_try;; | ||
13600 | esac | ||
13601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13602 | (eval "$ac_link") 2>conftest.er1 | ||
13603 | ac_status=$? | ||
13604 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13605 | rm -f conftest.er1 | ||
13606 | cat conftest.err >&5 | ||
13607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13608 | (exit $ac_status); } && { | ||
13609 | test -z "$ac_c_werror_flag" || | ||
13610 | test ! -s conftest.err | ||
13611 | } && test -s conftest$ac_exeext && | ||
13612 | $as_test_x conftest$ac_exeext; then | ||
13613 | eval "$as_ac_var=yes" | ||
13614 | else | ||
13615 | echo "$as_me: failed program was:" >&5 | ||
13616 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13617 | |||
13618 | eval "$as_ac_var=no" | ||
13619 | fi | ||
13620 | |||
13621 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13622 | conftest$ac_exeext conftest.$ac_ext | ||
13623 | fi | ||
13624 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13625 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13626 | echo "${ECHO_T}$ac_res" >&6; } | ||
13627 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13628 | cat >>confdefs.h <<_ACEOF | ||
13629 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13630 | _ACEOF | ||
13631 | |||
13632 | { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
13633 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; } | ||
13634 | if test "$cross_compiling" = yes; then | ||
13635 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
13636 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
13637 | |||
13638 | else | ||
13639 | cat >conftest.$ac_ext <<_ACEOF | ||
13640 | /* confdefs.h. */ | ||
13641 | _ACEOF | ||
13642 | cat confdefs.h >>conftest.$ac_ext | ||
13643 | cat >>conftest.$ac_ext <<_ACEOF | ||
13644 | /* end confdefs.h. */ | ||
13645 | |||
13646 | #include <stdlib.h> | ||
13647 | #include <errno.h> | ||
13648 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
13649 | |||
13650 | _ACEOF | ||
13651 | rm -f conftest$ac_exeext | ||
13652 | if { (ac_try="$ac_link" | ||
13653 | case "(($ac_try" in | ||
13654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13655 | *) ac_try_echo=$ac_try;; | ||
13656 | esac | ||
13657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13658 | (eval "$ac_link") 2>&5 | ||
13659 | ac_status=$? | ||
13660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13661 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13662 | { (case "(($ac_try" in | ||
13663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13664 | *) ac_try_echo=$ac_try;; | ||
13665 | esac | ||
13666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13667 | (eval "$ac_try") 2>&5 | ||
13668 | ac_status=$? | ||
13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13670 | (exit $ac_status); }; }; then | ||
13671 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
13672 | echo "${ECHO_T}yes" >&6; } | ||
13673 | else | ||
13674 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13675 | echo "$as_me: failed program was:" >&5 | ||
13676 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13677 | |||
13678 | ( exit $ac_status ) | ||
13679 | |||
13680 | cat >>confdefs.h <<\_ACEOF | ||
13681 | #define BROKEN_SETRESUID 1 | ||
13682 | _ACEOF | ||
13683 | |||
13684 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
13685 | echo "${ECHO_T}not implemented" >&6; } | ||
13686 | fi | ||
13687 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13688 | fi | ||
13689 | |||
13690 | |||
13691 | |||
13692 | fi | ||
13693 | done | ||
13694 | |||
13695 | |||
13696 | |||
13697 | for ac_func in setresgid | ||
13698 | do | ||
13699 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13700 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13701 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13702 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13704 | else | ||
13705 | cat >conftest.$ac_ext <<_ACEOF | ||
13706 | /* confdefs.h. */ | ||
13707 | _ACEOF | ||
13708 | cat confdefs.h >>conftest.$ac_ext | ||
13709 | cat >>conftest.$ac_ext <<_ACEOF | ||
13710 | /* end confdefs.h. */ | ||
13711 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13712 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13713 | #define $ac_func innocuous_$ac_func | ||
13714 | |||
13715 | /* System header to define __stub macros and hopefully few prototypes, | ||
13716 | which can conflict with char $ac_func (); below. | ||
13717 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13718 | <limits.h> exists even on freestanding compilers. */ | ||
13719 | |||
13720 | #ifdef __STDC__ | ||
13721 | # include <limits.h> | ||
13722 | #else | ||
13723 | # include <assert.h> | ||
13724 | #endif | ||
13725 | |||
13726 | #undef $ac_func | ||
13727 | |||
13728 | /* Override any GCC internal prototype to avoid an error. | ||
13729 | Use char because int might match the return type of a GCC | ||
13730 | builtin and then its argument prototype would still apply. */ | ||
13731 | #ifdef __cplusplus | ||
13732 | extern "C" | ||
13733 | #endif | ||
13734 | char $ac_func (); | ||
13735 | /* The GNU C library defines this for functions which it implements | ||
13736 | to always fail with ENOSYS. Some functions are actually named | ||
13737 | something starting with __ and the normal name is an alias. */ | ||
13738 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13739 | choke me | ||
13740 | #endif | ||
13741 | |||
13742 | int | ||
13743 | main () | ||
13744 | { | ||
13745 | return $ac_func (); | ||
13746 | ; | ||
13747 | return 0; | ||
13748 | } | ||
13749 | _ACEOF | ||
13750 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13751 | if { (ac_try="$ac_link" | ||
13752 | case "(($ac_try" in | ||
13753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13754 | *) ac_try_echo=$ac_try;; | ||
13755 | esac | ||
13756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13757 | (eval "$ac_link") 2>conftest.er1 | ||
13758 | ac_status=$? | ||
13759 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13760 | rm -f conftest.er1 | ||
13761 | cat conftest.err >&5 | ||
13762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13763 | (exit $ac_status); } && { | ||
13764 | test -z "$ac_c_werror_flag" || | ||
13765 | test ! -s conftest.err | ||
13766 | } && test -s conftest$ac_exeext && | ||
13767 | $as_test_x conftest$ac_exeext; then | ||
13768 | eval "$as_ac_var=yes" | ||
13769 | else | ||
13770 | echo "$as_me: failed program was:" >&5 | ||
13771 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13772 | |||
13773 | eval "$as_ac_var=no" | ||
13774 | fi | ||
13775 | |||
13776 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13777 | conftest$ac_exeext conftest.$ac_ext | ||
13778 | fi | ||
13779 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13780 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13781 | echo "${ECHO_T}$ac_res" >&6; } | ||
13782 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13783 | cat >>confdefs.h <<_ACEOF | ||
13784 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13785 | _ACEOF | ||
13786 | |||
13787 | { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
13788 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; } | ||
13789 | if test "$cross_compiling" = yes; then | ||
13790 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
13791 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
13792 | |||
13793 | else | ||
13794 | cat >conftest.$ac_ext <<_ACEOF | ||
13795 | /* confdefs.h. */ | ||
13796 | _ACEOF | ||
13797 | cat confdefs.h >>conftest.$ac_ext | ||
13798 | cat >>conftest.$ac_ext <<_ACEOF | ||
13799 | /* end confdefs.h. */ | ||
13800 | |||
13801 | #include <stdlib.h> | ||
13802 | #include <errno.h> | ||
13803 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
13804 | |||
13805 | _ACEOF | ||
13806 | rm -f conftest$ac_exeext | ||
13807 | if { (ac_try="$ac_link" | ||
13808 | case "(($ac_try" in | ||
13809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13810 | *) ac_try_echo=$ac_try;; | ||
13811 | esac | ||
13812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13813 | (eval "$ac_link") 2>&5 | ||
13814 | ac_status=$? | ||
13815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13817 | { (case "(($ac_try" in | ||
13818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13819 | *) ac_try_echo=$ac_try;; | ||
13820 | esac | ||
13821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13822 | (eval "$ac_try") 2>&5 | ||
13823 | ac_status=$? | ||
13824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13825 | (exit $ac_status); }; }; then | ||
13826 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
13827 | echo "${ECHO_T}yes" >&6; } | ||
13828 | else | ||
13829 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13830 | echo "$as_me: failed program was:" >&5 | ||
13831 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13832 | |||
13833 | ( exit $ac_status ) | ||
13834 | |||
13835 | cat >>confdefs.h <<\_ACEOF | ||
13836 | #define BROKEN_SETRESGID 1 | ||
13837 | _ACEOF | ||
13838 | |||
13839 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
13840 | echo "${ECHO_T}not implemented" >&6; } | ||
13841 | fi | ||
13842 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13843 | fi | ||
13844 | |||
13845 | |||
13846 | |||
13847 | fi | ||
13848 | done | ||
13849 | |||
13850 | |||
13851 | |||
13852 | |||
13853 | for ac_func in gettimeofday time | ||
13854 | do | ||
13855 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13856 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13857 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13858 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13860 | else | ||
13861 | cat >conftest.$ac_ext <<_ACEOF | ||
13862 | /* confdefs.h. */ | ||
13863 | _ACEOF | ||
13864 | cat confdefs.h >>conftest.$ac_ext | ||
13865 | cat >>conftest.$ac_ext <<_ACEOF | ||
13866 | /* end confdefs.h. */ | ||
13867 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13868 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13869 | #define $ac_func innocuous_$ac_func | ||
13870 | |||
13871 | /* System header to define __stub macros and hopefully few prototypes, | ||
13872 | which can conflict with char $ac_func (); below. | ||
13873 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13874 | <limits.h> exists even on freestanding compilers. */ | ||
13875 | |||
13876 | #ifdef __STDC__ | ||
13877 | # include <limits.h> | ||
13878 | #else | ||
13879 | # include <assert.h> | ||
13880 | #endif | ||
13881 | |||
13882 | #undef $ac_func | ||
13883 | |||
13884 | /* Override any GCC internal prototype to avoid an error. | ||
13885 | Use char because int might match the return type of a GCC | ||
13886 | builtin and then its argument prototype would still apply. */ | ||
13887 | #ifdef __cplusplus | ||
13888 | extern "C" | ||
13889 | #endif | ||
13890 | char $ac_func (); | ||
13891 | /* The GNU C library defines this for functions which it implements | ||
13892 | to always fail with ENOSYS. Some functions are actually named | ||
13893 | something starting with __ and the normal name is an alias. */ | ||
13894 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13895 | choke me | ||
13896 | #endif | ||
13897 | |||
13898 | int | ||
13899 | main () | ||
13900 | { | ||
13901 | return $ac_func (); | ||
13902 | ; | ||
13903 | return 0; | ||
13904 | } | ||
13905 | _ACEOF | ||
13906 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13907 | if { (ac_try="$ac_link" | ||
13908 | case "(($ac_try" in | ||
13909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13910 | *) ac_try_echo=$ac_try;; | ||
13911 | esac | ||
13912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13913 | (eval "$ac_link") 2>conftest.er1 | ||
13914 | ac_status=$? | ||
13915 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13916 | rm -f conftest.er1 | ||
13917 | cat conftest.err >&5 | ||
13918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13919 | (exit $ac_status); } && { | ||
13920 | test -z "$ac_c_werror_flag" || | ||
13921 | test ! -s conftest.err | ||
13922 | } && test -s conftest$ac_exeext && | ||
13923 | $as_test_x conftest$ac_exeext; then | ||
13924 | eval "$as_ac_var=yes" | ||
13925 | else | ||
13926 | echo "$as_me: failed program was:" >&5 | ||
13927 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13928 | |||
13929 | eval "$as_ac_var=no" | ||
13930 | fi | ||
13931 | |||
13932 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13933 | conftest$ac_exeext conftest.$ac_ext | ||
13934 | fi | ||
13935 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13936 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13937 | echo "${ECHO_T}$ac_res" >&6; } | ||
13938 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13939 | cat >>confdefs.h <<_ACEOF | ||
13940 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13941 | _ACEOF | ||
13942 | |||
13943 | fi | ||
13944 | done | ||
13945 | |||
13946 | |||
13947 | |||
13948 | |||
13949 | |||
13950 | |||
13951 | |||
13952 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
13953 | do | ||
13954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13955 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13957 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13959 | else | ||
13960 | cat >conftest.$ac_ext <<_ACEOF | ||
13961 | /* confdefs.h. */ | ||
13962 | _ACEOF | ||
13963 | cat confdefs.h >>conftest.$ac_ext | ||
13964 | cat >>conftest.$ac_ext <<_ACEOF | ||
13965 | /* end confdefs.h. */ | ||
13966 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13968 | #define $ac_func innocuous_$ac_func | ||
13969 | |||
13970 | /* System header to define __stub macros and hopefully few prototypes, | ||
13971 | which can conflict with char $ac_func (); below. | ||
13972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13973 | <limits.h> exists even on freestanding compilers. */ | ||
13974 | |||
13975 | #ifdef __STDC__ | ||
13976 | # include <limits.h> | ||
13977 | #else | ||
13978 | # include <assert.h> | ||
13979 | #endif | ||
13980 | |||
13981 | #undef $ac_func | ||
13982 | |||
13983 | /* Override any GCC internal prototype to avoid an error. | ||
13984 | Use char because int might match the return type of a GCC | ||
13985 | builtin and then its argument prototype would still apply. */ | ||
13986 | #ifdef __cplusplus | ||
13987 | extern "C" | ||
13988 | #endif | ||
13989 | char $ac_func (); | ||
13990 | /* The GNU C library defines this for functions which it implements | ||
13991 | to always fail with ENOSYS. Some functions are actually named | ||
13992 | something starting with __ and the normal name is an alias. */ | ||
13993 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13994 | choke me | ||
13995 | #endif | ||
13996 | |||
13997 | int | ||
13998 | main () | ||
13999 | { | ||
14000 | return $ac_func (); | ||
14001 | ; | ||
14002 | return 0; | ||
14003 | } | ||
14004 | _ACEOF | ||
14005 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14006 | if { (ac_try="$ac_link" | ||
14007 | case "(($ac_try" in | ||
14008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14009 | *) ac_try_echo=$ac_try;; | ||
14010 | esac | ||
14011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14012 | (eval "$ac_link") 2>conftest.er1 | ||
14013 | ac_status=$? | ||
14014 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14015 | rm -f conftest.er1 | ||
14016 | cat conftest.err >&5 | ||
14017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14018 | (exit $ac_status); } && { | ||
14019 | test -z "$ac_c_werror_flag" || | ||
14020 | test ! -s conftest.err | ||
14021 | } && test -s conftest$ac_exeext && | ||
14022 | $as_test_x conftest$ac_exeext; then | ||
14023 | eval "$as_ac_var=yes" | ||
14024 | else | ||
14025 | echo "$as_me: failed program was:" >&5 | ||
14026 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14027 | |||
14028 | eval "$as_ac_var=no" | ||
14029 | fi | ||
14030 | |||
14031 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14032 | conftest$ac_exeext conftest.$ac_ext | ||
14033 | fi | ||
14034 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14035 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14036 | echo "${ECHO_T}$ac_res" >&6; } | ||
14037 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14038 | cat >>confdefs.h <<_ACEOF | ||
14039 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14040 | _ACEOF | ||
14041 | |||
14042 | fi | ||
14043 | done | ||
14044 | |||
14045 | |||
14046 | for ac_func in utmpname | ||
14047 | do | ||
14048 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14049 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14050 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14051 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14053 | else | ||
14054 | cat >conftest.$ac_ext <<_ACEOF | ||
14055 | /* confdefs.h. */ | ||
14056 | _ACEOF | ||
14057 | cat confdefs.h >>conftest.$ac_ext | ||
14058 | cat >>conftest.$ac_ext <<_ACEOF | ||
14059 | /* end confdefs.h. */ | ||
14060 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14061 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14062 | #define $ac_func innocuous_$ac_func | ||
14063 | |||
14064 | /* System header to define __stub macros and hopefully few prototypes, | ||
14065 | which can conflict with char $ac_func (); below. | ||
14066 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14067 | <limits.h> exists even on freestanding compilers. */ | ||
14068 | |||
14069 | #ifdef __STDC__ | ||
14070 | # include <limits.h> | ||
14071 | #else | ||
14072 | # include <assert.h> | ||
14073 | #endif | ||
14074 | |||
14075 | #undef $ac_func | ||
14076 | |||
14077 | /* Override any GCC internal prototype to avoid an error. | ||
14078 | Use char because int might match the return type of a GCC | ||
14079 | builtin and then its argument prototype would still apply. */ | ||
14080 | #ifdef __cplusplus | ||
14081 | extern "C" | ||
14082 | #endif | ||
14083 | char $ac_func (); | ||
14084 | /* The GNU C library defines this for functions which it implements | ||
14085 | to always fail with ENOSYS. Some functions are actually named | ||
14086 | something starting with __ and the normal name is an alias. */ | ||
14087 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14088 | choke me | ||
14089 | #endif | ||
14090 | |||
14091 | int | ||
14092 | main () | ||
14093 | { | ||
14094 | return $ac_func (); | ||
14095 | ; | ||
14096 | return 0; | ||
14097 | } | ||
14098 | _ACEOF | ||
14099 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14100 | if { (ac_try="$ac_link" | ||
14101 | case "(($ac_try" in | ||
14102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14103 | *) ac_try_echo=$ac_try;; | ||
14104 | esac | ||
14105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14106 | (eval "$ac_link") 2>conftest.er1 | ||
14107 | ac_status=$? | ||
14108 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14109 | rm -f conftest.er1 | ||
14110 | cat conftest.err >&5 | ||
14111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14112 | (exit $ac_status); } && { | ||
14113 | test -z "$ac_c_werror_flag" || | ||
14114 | test ! -s conftest.err | ||
14115 | } && test -s conftest$ac_exeext && | ||
14116 | $as_test_x conftest$ac_exeext; then | ||
14117 | eval "$as_ac_var=yes" | ||
14118 | else | ||
14119 | echo "$as_me: failed program was:" >&5 | ||
14120 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14121 | |||
14122 | eval "$as_ac_var=no" | ||
14123 | fi | ||
14124 | |||
14125 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14126 | conftest$ac_exeext conftest.$ac_ext | ||
14127 | fi | ||
14128 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14129 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14130 | echo "${ECHO_T}$ac_res" >&6; } | ||
14131 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14132 | cat >>confdefs.h <<_ACEOF | ||
14133 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14134 | _ACEOF | ||
14135 | |||
14136 | fi | ||
14137 | done | ||
14138 | |||
14139 | |||
14140 | |||
14141 | |||
14142 | |||
14143 | |||
14144 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
14145 | do | ||
14146 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14147 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14148 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14149 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14151 | else | ||
14152 | cat >conftest.$ac_ext <<_ACEOF | ||
14153 | /* confdefs.h. */ | ||
14154 | _ACEOF | ||
14155 | cat confdefs.h >>conftest.$ac_ext | ||
14156 | cat >>conftest.$ac_ext <<_ACEOF | ||
14157 | /* end confdefs.h. */ | ||
14158 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14159 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14160 | #define $ac_func innocuous_$ac_func | ||
14161 | |||
14162 | /* System header to define __stub macros and hopefully few prototypes, | ||
14163 | which can conflict with char $ac_func (); below. | ||
14164 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14165 | <limits.h> exists even on freestanding compilers. */ | ||
14166 | |||
14167 | #ifdef __STDC__ | ||
14168 | # include <limits.h> | ||
14169 | #else | ||
14170 | # include <assert.h> | ||
14171 | #endif | ||
14172 | |||
14173 | #undef $ac_func | ||
14174 | |||
14175 | /* Override any GCC internal prototype to avoid an error. | ||
14176 | Use char because int might match the return type of a GCC | ||
14177 | builtin and then its argument prototype would still apply. */ | ||
14178 | #ifdef __cplusplus | ||
14179 | extern "C" | ||
14180 | #endif | ||
14181 | char $ac_func (); | ||
14182 | /* The GNU C library defines this for functions which it implements | ||
14183 | to always fail with ENOSYS. Some functions are actually named | ||
14184 | something starting with __ and the normal name is an alias. */ | ||
14185 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14186 | choke me | ||
14187 | #endif | ||
14188 | |||
14189 | int | ||
14190 | main () | ||
14191 | { | ||
14192 | return $ac_func (); | ||
14193 | ; | ||
14194 | return 0; | ||
14195 | } | ||
14196 | _ACEOF | ||
14197 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14198 | if { (ac_try="$ac_link" | ||
14199 | case "(($ac_try" in | ||
14200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14201 | *) ac_try_echo=$ac_try;; | ||
14202 | esac | ||
14203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14204 | (eval "$ac_link") 2>conftest.er1 | ||
14205 | ac_status=$? | ||
14206 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14207 | rm -f conftest.er1 | ||
14208 | cat conftest.err >&5 | ||
14209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14210 | (exit $ac_status); } && { | ||
14211 | test -z "$ac_c_werror_flag" || | ||
14212 | test ! -s conftest.err | ||
14213 | } && test -s conftest$ac_exeext && | ||
14214 | $as_test_x conftest$ac_exeext; then | ||
14215 | eval "$as_ac_var=yes" | ||
14216 | else | ||
14217 | echo "$as_me: failed program was:" >&5 | ||
14218 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14219 | |||
14220 | eval "$as_ac_var=no" | ||
14221 | fi | ||
14222 | |||
14223 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14224 | conftest$ac_exeext conftest.$ac_ext | ||
14225 | fi | ||
14226 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14227 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14228 | echo "${ECHO_T}$ac_res" >&6; } | ||
14229 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14230 | cat >>confdefs.h <<_ACEOF | ||
14231 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14232 | _ACEOF | ||
14233 | |||
14234 | fi | ||
14235 | done | ||
14236 | |||
14237 | |||
14238 | |||
14239 | for ac_func in setutxent utmpxname | ||
14240 | do | ||
14241 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14242 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14243 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14244 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14246 | else | ||
14247 | cat >conftest.$ac_ext <<_ACEOF | ||
14248 | /* confdefs.h. */ | ||
14249 | _ACEOF | ||
14250 | cat confdefs.h >>conftest.$ac_ext | ||
14251 | cat >>conftest.$ac_ext <<_ACEOF | ||
14252 | /* end confdefs.h. */ | ||
14253 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14255 | #define $ac_func innocuous_$ac_func | ||
14256 | |||
14257 | /* System header to define __stub macros and hopefully few prototypes, | ||
14258 | which can conflict with char $ac_func (); below. | ||
14259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14260 | <limits.h> exists even on freestanding compilers. */ | ||
14261 | |||
14262 | #ifdef __STDC__ | ||
14263 | # include <limits.h> | ||
14264 | #else | ||
14265 | # include <assert.h> | ||
14266 | #endif | ||
14267 | |||
14268 | #undef $ac_func | ||
14269 | |||
14270 | /* Override any GCC internal prototype to avoid an error. | ||
14271 | Use char because int might match the return type of a GCC | ||
14272 | builtin and then its argument prototype would still apply. */ | ||
14273 | #ifdef __cplusplus | ||
14274 | extern "C" | ||
14275 | #endif | ||
14276 | char $ac_func (); | ||
14277 | /* The GNU C library defines this for functions which it implements | ||
14278 | to always fail with ENOSYS. Some functions are actually named | ||
14279 | something starting with __ and the normal name is an alias. */ | ||
14280 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14281 | choke me | ||
14282 | #endif | ||
14283 | |||
14284 | int | ||
14285 | main () | ||
14286 | { | ||
14287 | return $ac_func (); | ||
14288 | ; | ||
14289 | return 0; | ||
14290 | } | ||
14291 | _ACEOF | ||
14292 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14293 | if { (ac_try="$ac_link" | ||
14294 | case "(($ac_try" in | ||
14295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14296 | *) ac_try_echo=$ac_try;; | ||
14297 | esac | ||
14298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14299 | (eval "$ac_link") 2>conftest.er1 | ||
14300 | ac_status=$? | ||
14301 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14302 | rm -f conftest.er1 | ||
14303 | cat conftest.err >&5 | ||
14304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14305 | (exit $ac_status); } && { | ||
14306 | test -z "$ac_c_werror_flag" || | ||
14307 | test ! -s conftest.err | ||
14308 | } && test -s conftest$ac_exeext && | ||
14309 | $as_test_x conftest$ac_exeext; then | ||
14310 | eval "$as_ac_var=yes" | ||
14311 | else | ||
14312 | echo "$as_me: failed program was:" >&5 | ||
14313 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14314 | |||
14315 | eval "$as_ac_var=no" | ||
14316 | fi | ||
14317 | |||
14318 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14319 | conftest$ac_exeext conftest.$ac_ext | ||
14320 | fi | ||
14321 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14322 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14323 | echo "${ECHO_T}$ac_res" >&6; } | ||
14324 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14325 | cat >>confdefs.h <<_ACEOF | ||
14326 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14327 | _ACEOF | ||
14328 | |||
14329 | fi | ||
14330 | done | ||
14331 | |||
14332 | |||
14333 | { echo "$as_me:$LINENO: checking for daemon" >&5 | ||
14334 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } | ||
14335 | if test "${ac_cv_func_daemon+set}" = set; then | ||
14336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14337 | else | ||
14338 | cat >conftest.$ac_ext <<_ACEOF | ||
14339 | /* confdefs.h. */ | ||
14340 | _ACEOF | ||
14341 | cat confdefs.h >>conftest.$ac_ext | ||
14342 | cat >>conftest.$ac_ext <<_ACEOF | ||
14343 | /* end confdefs.h. */ | ||
14344 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
14345 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14346 | #define daemon innocuous_daemon | ||
14347 | |||
14348 | /* System header to define __stub macros and hopefully few prototypes, | ||
14349 | which can conflict with char daemon (); below. | ||
14350 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14351 | <limits.h> exists even on freestanding compilers. */ | ||
14352 | |||
14353 | #ifdef __STDC__ | ||
14354 | # include <limits.h> | ||
14355 | #else | ||
14356 | # include <assert.h> | ||
14357 | #endif | ||
14358 | |||
14359 | #undef daemon | ||
14360 | |||
14361 | /* Override any GCC internal prototype to avoid an error. | ||
14362 | Use char because int might match the return type of a GCC | ||
14363 | builtin and then its argument prototype would still apply. */ | ||
14364 | #ifdef __cplusplus | ||
14365 | extern "C" | ||
14366 | #endif | ||
14367 | char daemon (); | ||
14368 | /* The GNU C library defines this for functions which it implements | ||
14369 | to always fail with ENOSYS. Some functions are actually named | ||
14370 | something starting with __ and the normal name is an alias. */ | ||
14371 | #if defined __stub_daemon || defined __stub___daemon | ||
14372 | choke me | ||
14373 | #endif | ||
14374 | |||
14375 | int | ||
14376 | main () | ||
14377 | { | ||
14378 | return daemon (); | ||
14379 | ; | ||
14380 | return 0; | ||
14381 | } | ||
14382 | _ACEOF | ||
14383 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14384 | if { (ac_try="$ac_link" | ||
14385 | case "(($ac_try" in | ||
14386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14387 | *) ac_try_echo=$ac_try;; | ||
14388 | esac | ||
14389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14390 | (eval "$ac_link") 2>conftest.er1 | ||
14391 | ac_status=$? | ||
14392 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14393 | rm -f conftest.er1 | ||
14394 | cat conftest.err >&5 | ||
14395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14396 | (exit $ac_status); } && { | ||
14397 | test -z "$ac_c_werror_flag" || | ||
14398 | test ! -s conftest.err | ||
14399 | } && test -s conftest$ac_exeext && | ||
14400 | $as_test_x conftest$ac_exeext; then | ||
14401 | ac_cv_func_daemon=yes | ||
14402 | else | ||
14403 | echo "$as_me: failed program was:" >&5 | ||
14404 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14405 | |||
14406 | ac_cv_func_daemon=no | ||
14407 | fi | ||
14408 | |||
14409 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14410 | conftest$ac_exeext conftest.$ac_ext | ||
14411 | fi | ||
14412 | { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
14413 | echo "${ECHO_T}$ac_cv_func_daemon" >&6; } | ||
14414 | if test $ac_cv_func_daemon = yes; then | ||
14415 | |||
14416 | cat >>confdefs.h <<\_ACEOF | ||
14417 | #define HAVE_DAEMON 1 | ||
14418 | _ACEOF | ||
14419 | |||
14420 | else | ||
14421 | { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
14422 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; } | ||
14423 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
14424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14425 | else | ||
14426 | ac_check_lib_save_LIBS=$LIBS | ||
14427 | LIBS="-lbsd $LIBS" | ||
14428 | cat >conftest.$ac_ext <<_ACEOF | ||
14429 | /* confdefs.h. */ | ||
14430 | _ACEOF | ||
14431 | cat confdefs.h >>conftest.$ac_ext | ||
14432 | cat >>conftest.$ac_ext <<_ACEOF | ||
14433 | /* end confdefs.h. */ | ||
14434 | |||
14435 | /* Override any GCC internal prototype to avoid an error. | ||
14436 | Use char because int might match the return type of a GCC | ||
14437 | builtin and then its argument prototype would still apply. */ | ||
14438 | #ifdef __cplusplus | ||
14439 | extern "C" | ||
14440 | #endif | ||
14441 | char daemon (); | ||
14442 | int | ||
14443 | main () | ||
14444 | { | ||
14445 | return daemon (); | ||
14446 | ; | ||
14447 | return 0; | ||
14448 | } | ||
14449 | _ACEOF | ||
14450 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14451 | if { (ac_try="$ac_link" | ||
14452 | case "(($ac_try" in | ||
14453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14454 | *) ac_try_echo=$ac_try;; | ||
14455 | esac | ||
14456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14457 | (eval "$ac_link") 2>conftest.er1 | ||
14458 | ac_status=$? | ||
14459 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14460 | rm -f conftest.er1 | ||
14461 | cat conftest.err >&5 | ||
14462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14463 | (exit $ac_status); } && { | ||
14464 | test -z "$ac_c_werror_flag" || | ||
14465 | test ! -s conftest.err | ||
14466 | } && test -s conftest$ac_exeext && | ||
14467 | $as_test_x conftest$ac_exeext; then | ||
14468 | ac_cv_lib_bsd_daemon=yes | ||
14469 | else | ||
14470 | echo "$as_me: failed program was:" >&5 | ||
14471 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14472 | |||
14473 | ac_cv_lib_bsd_daemon=no | ||
14474 | fi | ||
14475 | |||
14476 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14477 | conftest$ac_exeext conftest.$ac_ext | ||
14478 | LIBS=$ac_check_lib_save_LIBS | ||
14479 | fi | ||
14480 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
14481 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; } | ||
14482 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
14483 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
14484 | #define HAVE_DAEMON 1 | ||
14485 | _ACEOF | ||
14486 | |||
14487 | fi | ||
14488 | |||
14489 | |||
14490 | fi | ||
14491 | |||
14492 | |||
14493 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
14494 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } | ||
14495 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
14496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14497 | else | ||
14498 | cat >conftest.$ac_ext <<_ACEOF | ||
14499 | /* confdefs.h. */ | ||
14500 | _ACEOF | ||
14501 | cat confdefs.h >>conftest.$ac_ext | ||
14502 | cat >>conftest.$ac_ext <<_ACEOF | ||
14503 | /* end confdefs.h. */ | ||
14504 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
14505 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14506 | #define getpagesize innocuous_getpagesize | ||
14507 | |||
14508 | /* System header to define __stub macros and hopefully few prototypes, | ||
14509 | which can conflict with char getpagesize (); below. | ||
14510 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14511 | <limits.h> exists even on freestanding compilers. */ | ||
14512 | |||
14513 | #ifdef __STDC__ | ||
14514 | # include <limits.h> | ||
14515 | #else | ||
14516 | # include <assert.h> | ||
14517 | #endif | ||
14518 | |||
14519 | #undef getpagesize | ||
14520 | |||
14521 | /* Override any GCC internal prototype to avoid an error. | ||
14522 | Use char because int might match the return type of a GCC | ||
14523 | builtin and then its argument prototype would still apply. */ | ||
14524 | #ifdef __cplusplus | ||
14525 | extern "C" | ||
14526 | #endif | ||
14527 | char getpagesize (); | ||
14528 | /* The GNU C library defines this for functions which it implements | ||
14529 | to always fail with ENOSYS. Some functions are actually named | ||
14530 | something starting with __ and the normal name is an alias. */ | ||
14531 | #if defined __stub_getpagesize || defined __stub___getpagesize | ||
14532 | choke me | ||
14533 | #endif | ||
14534 | |||
14535 | int | ||
14536 | main () | ||
14537 | { | ||
14538 | return getpagesize (); | ||
14539 | ; | ||
14540 | return 0; | ||
14541 | } | ||
14542 | _ACEOF | ||
14543 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14544 | if { (ac_try="$ac_link" | ||
14545 | case "(($ac_try" in | ||
14546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14547 | *) ac_try_echo=$ac_try;; | ||
14548 | esac | ||
14549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14550 | (eval "$ac_link") 2>conftest.er1 | ||
14551 | ac_status=$? | ||
14552 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14553 | rm -f conftest.er1 | ||
14554 | cat conftest.err >&5 | ||
14555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14556 | (exit $ac_status); } && { | ||
14557 | test -z "$ac_c_werror_flag" || | ||
14558 | test ! -s conftest.err | ||
14559 | } && test -s conftest$ac_exeext && | ||
14560 | $as_test_x conftest$ac_exeext; then | ||
14561 | ac_cv_func_getpagesize=yes | ||
14562 | else | ||
14563 | echo "$as_me: failed program was:" >&5 | ||
14564 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14565 | |||
14566 | ac_cv_func_getpagesize=no | ||
14567 | fi | ||
14568 | |||
14569 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14570 | conftest$ac_exeext conftest.$ac_ext | ||
14571 | fi | ||
14572 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
14573 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; } | ||
14574 | if test $ac_cv_func_getpagesize = yes; then | ||
14575 | |||
14576 | cat >>confdefs.h <<\_ACEOF | ||
14577 | #define HAVE_GETPAGESIZE 1 | ||
14578 | _ACEOF | ||
14579 | |||
14580 | else | ||
14581 | { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
14582 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; } | ||
14583 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
14584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14585 | else | ||
14586 | ac_check_lib_save_LIBS=$LIBS | ||
14587 | LIBS="-lucb $LIBS" | ||
14588 | cat >conftest.$ac_ext <<_ACEOF | ||
14589 | /* confdefs.h. */ | ||
14590 | _ACEOF | ||
14591 | cat confdefs.h >>conftest.$ac_ext | ||
14592 | cat >>conftest.$ac_ext <<_ACEOF | ||
14593 | /* end confdefs.h. */ | ||
14594 | |||
14595 | /* Override any GCC internal prototype to avoid an error. | ||
14596 | Use char because int might match the return type of a GCC | ||
14597 | builtin and then its argument prototype would still apply. */ | ||
14598 | #ifdef __cplusplus | ||
14599 | extern "C" | ||
14600 | #endif | ||
14601 | char getpagesize (); | ||
14602 | int | ||
14603 | main () | ||
14604 | { | ||
14605 | return getpagesize (); | ||
14606 | ; | ||
14607 | return 0; | ||
14608 | } | ||
14609 | _ACEOF | ||
14610 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14611 | if { (ac_try="$ac_link" | ||
14612 | case "(($ac_try" in | ||
14613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14614 | *) ac_try_echo=$ac_try;; | ||
14615 | esac | ||
14616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14617 | (eval "$ac_link") 2>conftest.er1 | ||
14618 | ac_status=$? | ||
14619 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14620 | rm -f conftest.er1 | ||
14621 | cat conftest.err >&5 | ||
14622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14623 | (exit $ac_status); } && { | ||
14624 | test -z "$ac_c_werror_flag" || | ||
14625 | test ! -s conftest.err | ||
14626 | } && test -s conftest$ac_exeext && | ||
14627 | $as_test_x conftest$ac_exeext; then | ||
14628 | ac_cv_lib_ucb_getpagesize=yes | ||
14629 | else | ||
14630 | echo "$as_me: failed program was:" >&5 | ||
14631 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14632 | |||
14633 | ac_cv_lib_ucb_getpagesize=no | ||
14634 | fi | ||
14635 | |||
14636 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14637 | conftest$ac_exeext conftest.$ac_ext | ||
14638 | LIBS=$ac_check_lib_save_LIBS | ||
14639 | fi | ||
14640 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
14641 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; } | ||
14642 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
14643 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
14644 | #define HAVE_GETPAGESIZE 1 | ||
14645 | _ACEOF | ||
14646 | |||
14647 | fi | ||
14648 | |||
14649 | |||
14650 | fi | ||
14651 | |||
14652 | |||
14653 | # Check for broken snprintf | ||
14654 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
14655 | { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
14656 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; } | ||
14657 | if test "$cross_compiling" = yes; then | ||
14658 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
14659 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
14660 | |||
14661 | else | ||
14662 | cat >conftest.$ac_ext <<_ACEOF | ||
14663 | /* confdefs.h. */ | ||
14664 | _ACEOF | ||
14665 | cat confdefs.h >>conftest.$ac_ext | ||
14666 | cat >>conftest.$ac_ext <<_ACEOF | ||
14667 | /* end confdefs.h. */ | ||
14668 | |||
14669 | #include <stdio.h> | ||
14670 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
14671 | |||
14672 | _ACEOF | ||
14673 | rm -f conftest$ac_exeext | ||
14674 | if { (ac_try="$ac_link" | ||
14675 | case "(($ac_try" in | ||
14676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14677 | *) ac_try_echo=$ac_try;; | ||
14678 | esac | ||
14679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14680 | (eval "$ac_link") 2>&5 | ||
14681 | ac_status=$? | ||
14682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14683 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14684 | { (case "(($ac_try" in | ||
14685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14686 | *) ac_try_echo=$ac_try;; | ||
14687 | esac | ||
14688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14689 | (eval "$ac_try") 2>&5 | ||
14690 | ac_status=$? | ||
14691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14692 | (exit $ac_status); }; }; then | ||
14693 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14694 | echo "${ECHO_T}yes" >&6; } | ||
14695 | else | ||
14696 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14697 | echo "$as_me: failed program was:" >&5 | ||
14698 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14699 | |||
14700 | ( exit $ac_status ) | ||
14701 | |||
14702 | { echo "$as_me:$LINENO: result: no" >&5 | ||
14703 | echo "${ECHO_T}no" >&6; } | ||
14704 | |||
14705 | cat >>confdefs.h <<\_ACEOF | ||
14706 | #define BROKEN_SNPRINTF 1 | ||
14707 | _ACEOF | ||
14708 | |||
14709 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
14710 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
14711 | |||
14712 | fi | ||
14713 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14714 | fi | ||
14715 | |||
14716 | |||
14717 | fi | ||
14718 | |||
14719 | # If we don't have a working asprintf, then we strongly depend on vsnprintf | ||
14720 | # returning the right thing on overflow: the number of characters it tried to | ||
14721 | # create (as per SUSv3) | ||
14722 | if test "x$ac_cv_func_asprintf" != "xyes" && \ | ||
14723 | test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
14724 | { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 | ||
14725 | echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; } | ||
14726 | if test "$cross_compiling" = yes; then | ||
14727 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
14728 | echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
14729 | |||
14730 | else | ||
14731 | cat >conftest.$ac_ext <<_ACEOF | ||
14732 | /* confdefs.h. */ | ||
14733 | _ACEOF | ||
14734 | cat confdefs.h >>conftest.$ac_ext | ||
14735 | cat >>conftest.$ac_ext <<_ACEOF | ||
14736 | /* end confdefs.h. */ | ||
14737 | |||
14738 | #include <sys/types.h> | ||
14739 | #include <stdio.h> | ||
14740 | #include <stdarg.h> | ||
14741 | |||
14742 | int x_snprintf(char *str,size_t count,const char *fmt,...) | ||
14743 | { | ||
14744 | size_t ret; va_list ap; | ||
14745 | va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); | ||
14746 | return ret; | ||
14747 | } | ||
14748 | int main(void) | ||
14749 | { | ||
14750 | char x[1]; | ||
14751 | exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); | ||
14752 | } | ||
14753 | _ACEOF | ||
14754 | rm -f conftest$ac_exeext | ||
14755 | if { (ac_try="$ac_link" | ||
14756 | case "(($ac_try" in | ||
14757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14758 | *) ac_try_echo=$ac_try;; | ||
14759 | esac | ||
14760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14761 | (eval "$ac_link") 2>&5 | ||
14762 | ac_status=$? | ||
14763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14764 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14765 | { (case "(($ac_try" in | ||
14766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14767 | *) ac_try_echo=$ac_try;; | ||
14768 | esac | ||
14769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14770 | (eval "$ac_try") 2>&5 | ||
14771 | ac_status=$? | ||
14772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14773 | (exit $ac_status); }; }; then | ||
14774 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14775 | echo "${ECHO_T}yes" >&6; } | ||
14776 | else | ||
14777 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14778 | echo "$as_me: failed program was:" >&5 | ||
14779 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14780 | |||
14781 | ( exit $ac_status ) | ||
14782 | |||
14783 | { echo "$as_me:$LINENO: result: no" >&5 | ||
14784 | echo "${ECHO_T}no" >&6; } | ||
14785 | |||
14786 | cat >>confdefs.h <<\_ACEOF | ||
14787 | #define BROKEN_SNPRINTF 1 | ||
14788 | _ACEOF | ||
14789 | |||
14790 | { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
14791 | echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
14792 | |||
14793 | fi | ||
14794 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14795 | fi | ||
14796 | |||
14797 | |||
14798 | fi | ||
14799 | |||
14800 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
14801 | # check that the fmt argument is const char * or just char *. | ||
14802 | # This is only useful for when BROKEN_SNPRINTF | ||
14803 | { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 | ||
14804 | echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; } | ||
14805 | cat >conftest.$ac_ext <<_ACEOF | ||
14806 | /* confdefs.h. */ | ||
14807 | _ACEOF | ||
14808 | cat confdefs.h >>conftest.$ac_ext | ||
14809 | cat >>conftest.$ac_ext <<_ACEOF | ||
14810 | /* end confdefs.h. */ | ||
14811 | #include <stdio.h> | ||
14812 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
14813 | int main(void) { snprintf(0, 0, 0); } | ||
14814 | |||
14815 | _ACEOF | ||
14816 | rm -f conftest.$ac_objext | ||
14817 | if { (ac_try="$ac_compile" | ||
14818 | case "(($ac_try" in | ||
14819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14820 | *) ac_try_echo=$ac_try;; | ||
14821 | esac | ||
14822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14823 | (eval "$ac_compile") 2>conftest.er1 | ||
14824 | ac_status=$? | ||
14825 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14826 | rm -f conftest.er1 | ||
14827 | cat conftest.err >&5 | ||
14828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14829 | (exit $ac_status); } && { | ||
14830 | test -z "$ac_c_werror_flag" || | ||
14831 | test ! -s conftest.err | ||
14832 | } && test -s conftest.$ac_objext; then | ||
14833 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14834 | echo "${ECHO_T}yes" >&6; } | ||
14835 | |||
14836 | cat >>confdefs.h <<\_ACEOF | ||
14837 | #define SNPRINTF_CONST const | ||
14838 | _ACEOF | ||
14839 | |||
14840 | else | ||
14841 | echo "$as_me: failed program was:" >&5 | ||
14842 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14843 | |||
14844 | { echo "$as_me:$LINENO: result: no" >&5 | ||
14845 | echo "${ECHO_T}no" >&6; } | ||
14846 | cat >>confdefs.h <<\_ACEOF | ||
14847 | #define SNPRINTF_CONST /* not const */ | ||
14848 | _ACEOF | ||
14849 | |||
14850 | fi | ||
14851 | |||
14852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14853 | |||
14854 | # Check for missing getpeereid (or equiv) support | ||
14855 | NO_PEERCHECK="" | ||
14856 | if test "x$ac_cv_func_getpeereid" != "xyes" ; then | ||
14857 | { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
14858 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; } | ||
14859 | cat >conftest.$ac_ext <<_ACEOF | ||
14860 | /* confdefs.h. */ | ||
14861 | _ACEOF | ||
14862 | cat confdefs.h >>conftest.$ac_ext | ||
14863 | cat >>conftest.$ac_ext <<_ACEOF | ||
14864 | /* end confdefs.h. */ | ||
14865 | #include <sys/types.h> | ||
14866 | #include <sys/socket.h> | ||
14867 | int | ||
14868 | main () | ||
14869 | { | ||
14870 | int i = SO_PEERCRED; | ||
14871 | ; | ||
14872 | return 0; | ||
14873 | } | ||
14874 | _ACEOF | ||
14875 | rm -f conftest.$ac_objext | ||
14876 | if { (ac_try="$ac_compile" | ||
14877 | case "(($ac_try" in | ||
14878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14879 | *) ac_try_echo=$ac_try;; | ||
14880 | esac | ||
14881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14882 | (eval "$ac_compile") 2>conftest.er1 | ||
14883 | ac_status=$? | ||
14884 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14885 | rm -f conftest.er1 | ||
14886 | cat conftest.err >&5 | ||
14887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14888 | (exit $ac_status); } && { | ||
14889 | test -z "$ac_c_werror_flag" || | ||
14890 | test ! -s conftest.err | ||
14891 | } && test -s conftest.$ac_objext; then | ||
14892 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14893 | echo "${ECHO_T}yes" >&6; } | ||
14894 | |||
14895 | cat >>confdefs.h <<\_ACEOF | ||
14896 | #define HAVE_SO_PEERCRED 1 | ||
14897 | _ACEOF | ||
14898 | |||
14899 | |||
14900 | else | ||
14901 | echo "$as_me: failed program was:" >&5 | ||
14902 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14903 | |||
14904 | { echo "$as_me:$LINENO: result: no" >&5 | ||
14905 | echo "${ECHO_T}no" >&6; } | ||
14906 | NO_PEERCHECK=1 | ||
14907 | |||
14908 | fi | ||
14909 | |||
14910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14911 | fi | ||
14912 | |||
14913 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
14914 | { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
14915 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; } | ||
14916 | if test "$cross_compiling" = yes; then | ||
14917 | |||
14918 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14919 | echo "${ECHO_T}yes" >&6; } | ||
14920 | cat >>confdefs.h <<\_ACEOF | ||
14921 | #define HAVE_STRICT_MKSTEMP 1 | ||
14922 | _ACEOF | ||
14923 | |||
14924 | |||
14925 | |||
14926 | else | ||
14927 | cat >conftest.$ac_ext <<_ACEOF | ||
14928 | /* confdefs.h. */ | ||
14929 | _ACEOF | ||
14930 | cat confdefs.h >>conftest.$ac_ext | ||
14931 | cat >>conftest.$ac_ext <<_ACEOF | ||
14932 | /* end confdefs.h. */ | ||
14933 | |||
14934 | #include <stdlib.h> | ||
14935 | main() { char template[]="conftest.mkstemp-test"; | ||
14936 | if (mkstemp(template) == -1) | ||
14937 | exit(1); | ||
14938 | unlink(template); exit(0); | ||
14939 | } | ||
14940 | |||
14941 | _ACEOF | ||
14942 | rm -f conftest$ac_exeext | ||
14943 | if { (ac_try="$ac_link" | ||
14944 | case "(($ac_try" in | ||
14945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14946 | *) ac_try_echo=$ac_try;; | ||
14947 | esac | ||
14948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14949 | (eval "$ac_link") 2>&5 | ||
14950 | ac_status=$? | ||
14951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14952 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14953 | { (case "(($ac_try" in | ||
14954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14955 | *) ac_try_echo=$ac_try;; | ||
14956 | esac | ||
14957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14958 | (eval "$ac_try") 2>&5 | ||
14959 | ac_status=$? | ||
14960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14961 | (exit $ac_status); }; }; then | ||
14962 | |||
14963 | { echo "$as_me:$LINENO: result: no" >&5 | ||
14964 | echo "${ECHO_T}no" >&6; } | ||
14965 | |||
14966 | else | ||
14967 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14968 | echo "$as_me: failed program was:" >&5 | ||
14969 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14970 | |||
14971 | ( exit $ac_status ) | ||
14972 | |||
14973 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14974 | echo "${ECHO_T}yes" >&6; } | ||
14975 | |||
14976 | cat >>confdefs.h <<\_ACEOF | ||
14977 | #define HAVE_STRICT_MKSTEMP 1 | ||
14978 | _ACEOF | ||
14979 | |||
14980 | |||
14981 | fi | ||
14982 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14983 | fi | ||
14984 | |||
14985 | |||
14986 | fi | ||
14987 | |||
14988 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
14989 | { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
14990 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; } | ||
14991 | if test "$cross_compiling" = yes; then | ||
14992 | |||
14993 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
14994 | echo "${ECHO_T}cross-compiling" >&6; } | ||
14995 | |||
14996 | |||
14997 | else | ||
14998 | cat >conftest.$ac_ext <<_ACEOF | ||
14999 | /* confdefs.h. */ | ||
15000 | _ACEOF | ||
15001 | cat confdefs.h >>conftest.$ac_ext | ||
15002 | cat >>conftest.$ac_ext <<_ACEOF | ||
15003 | /* end confdefs.h. */ | ||
15004 | |||
15005 | #include <stdio.h> | ||
15006 | #include <sys/fcntl.h> | ||
15007 | #include <sys/types.h> | ||
15008 | #include <sys/wait.h> | ||
15009 | |||
15010 | int | ||
15011 | main() | ||
15012 | { | ||
15013 | pid_t pid; | ||
15014 | int fd, ptyfd, ttyfd, status; | ||
15015 | |||
15016 | pid = fork(); | ||
15017 | if (pid < 0) { /* failed */ | ||
15018 | exit(1); | ||
15019 | } else if (pid > 0) { /* parent */ | ||
15020 | waitpid(pid, &status, 0); | ||
15021 | if (WIFEXITED(status)) | ||
15022 | exit(WEXITSTATUS(status)); | ||
15023 | else | ||
15024 | exit(2); | ||
15025 | } else { /* child */ | ||
15026 | close(0); close(1); close(2); | ||
15027 | setsid(); | ||
15028 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
15029 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
15030 | if (fd >= 0) | ||
15031 | exit(3); /* Acquired ctty: broken */ | ||
15032 | else | ||
15033 | exit(0); /* Did not acquire ctty: OK */ | ||
15034 | } | ||
15035 | } | ||
15036 | |||
15037 | _ACEOF | ||
15038 | rm -f conftest$ac_exeext | ||
15039 | if { (ac_try="$ac_link" | ||
15040 | case "(($ac_try" in | ||
15041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15042 | *) ac_try_echo=$ac_try;; | ||
15043 | esac | ||
15044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15045 | (eval "$ac_link") 2>&5 | ||
15046 | ac_status=$? | ||
15047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15048 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15049 | { (case "(($ac_try" in | ||
15050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15051 | *) ac_try_echo=$ac_try;; | ||
15052 | esac | ||
15053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15054 | (eval "$ac_try") 2>&5 | ||
15055 | ac_status=$? | ||
15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15057 | (exit $ac_status); }; }; then | ||
15058 | |||
15059 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15060 | echo "${ECHO_T}yes" >&6; } | ||
15061 | |||
15062 | else | ||
15063 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15064 | echo "$as_me: failed program was:" >&5 | ||
15065 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15066 | |||
15067 | ( exit $ac_status ) | ||
15068 | |||
15069 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15070 | echo "${ECHO_T}no" >&6; } | ||
15071 | cat >>confdefs.h <<\_ACEOF | ||
15072 | #define SSHD_ACQUIRES_CTTY 1 | ||
15073 | _ACEOF | ||
15074 | |||
15075 | |||
15076 | fi | ||
15077 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15078 | fi | ||
15079 | |||
15080 | |||
15081 | fi | ||
15082 | |||
15083 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
15084 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
15085 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
15086 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
15087 | if test "$cross_compiling" = yes; then | ||
15088 | |||
15089 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
15090 | echo "${ECHO_T}cross-compiling" >&6; } | ||
15091 | |||
15092 | |||
15093 | else | ||
15094 | cat >conftest.$ac_ext <<_ACEOF | ||
15095 | /* confdefs.h. */ | ||
15096 | _ACEOF | ||
15097 | cat confdefs.h >>conftest.$ac_ext | ||
15098 | cat >>conftest.$ac_ext <<_ACEOF | ||
15099 | /* end confdefs.h. */ | ||
15100 | |||
15101 | #include <stdio.h> | ||
15102 | #include <sys/socket.h> | ||
15103 | #include <netdb.h> | ||
15104 | #include <errno.h> | ||
15105 | #include <netinet/in.h> | ||
15106 | |||
15107 | #define TEST_PORT "2222" | ||
15108 | |||
15109 | int | ||
15110 | main(void) | ||
15111 | { | ||
15112 | int err, sock; | ||
15113 | struct addrinfo *gai_ai, *ai, hints; | ||
15114 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
15115 | |||
15116 | memset(&hints, 0, sizeof(hints)); | ||
15117 | hints.ai_family = PF_UNSPEC; | ||
15118 | hints.ai_socktype = SOCK_STREAM; | ||
15119 | hints.ai_flags = AI_PASSIVE; | ||
15120 | |||
15121 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
15122 | if (err != 0) { | ||
15123 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
15124 | exit(1); | ||
15125 | } | ||
15126 | |||
15127 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
15128 | if (ai->ai_family != AF_INET6) | ||
15129 | continue; | ||
15130 | |||
15131 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
15132 | sizeof(ntop), strport, sizeof(strport), | ||
15133 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
15134 | |||
15135 | if (err != 0) { | ||
15136 | if (err == EAI_SYSTEM) | ||
15137 | perror("getnameinfo EAI_SYSTEM"); | ||
15138 | else | ||
15139 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
15140 | gai_strerror(err)); | ||
15141 | exit(2); | ||
15142 | } | ||
15143 | |||
15144 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
15145 | if (sock < 0) | ||
15146 | perror("socket"); | ||
15147 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
15148 | if (errno == EBADF) | ||
15149 | exit(3); | ||
15150 | } | ||
15151 | } | ||
15152 | exit(0); | ||
15153 | } | ||
15154 | |||
15155 | _ACEOF | ||
15156 | rm -f conftest$ac_exeext | ||
15157 | if { (ac_try="$ac_link" | ||
15158 | case "(($ac_try" in | ||
15159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15160 | *) ac_try_echo=$ac_try;; | ||
15161 | esac | ||
15162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15163 | (eval "$ac_link") 2>&5 | ||
15164 | ac_status=$? | ||
15165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15166 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15167 | { (case "(($ac_try" in | ||
15168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15169 | *) ac_try_echo=$ac_try;; | ||
15170 | esac | ||
15171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15172 | (eval "$ac_try") 2>&5 | ||
15173 | ac_status=$? | ||
15174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15175 | (exit $ac_status); }; }; then | ||
15176 | |||
15177 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15178 | echo "${ECHO_T}yes" >&6; } | ||
15179 | |||
15180 | else | ||
15181 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15182 | echo "$as_me: failed program was:" >&5 | ||
15183 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15184 | |||
15185 | ( exit $ac_status ) | ||
15186 | |||
15187 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15188 | echo "${ECHO_T}no" >&6; } | ||
15189 | cat >>confdefs.h <<\_ACEOF | ||
15190 | #define BROKEN_GETADDRINFO 1 | ||
15191 | _ACEOF | ||
15192 | |||
15193 | |||
15194 | fi | ||
15195 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15196 | fi | ||
15197 | |||
15198 | |||
15199 | fi | ||
15200 | |||
15201 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
15202 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
15203 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
15204 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
15205 | if test "$cross_compiling" = yes; then | ||
15206 | |||
15207 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
15208 | echo "${ECHO_T}cross-compiling" >&6; } | ||
15209 | |||
15210 | |||
15211 | else | ||
15212 | cat >conftest.$ac_ext <<_ACEOF | ||
15213 | /* confdefs.h. */ | ||
15214 | _ACEOF | ||
15215 | cat confdefs.h >>conftest.$ac_ext | ||
15216 | cat >>conftest.$ac_ext <<_ACEOF | ||
15217 | /* end confdefs.h. */ | ||
15218 | |||
15219 | #include <stdio.h> | ||
15220 | #include <sys/socket.h> | ||
15221 | #include <netdb.h> | ||
15222 | #include <errno.h> | ||
15223 | #include <netinet/in.h> | ||
15224 | |||
15225 | #define TEST_PORT "2222" | ||
15226 | |||
15227 | int | ||
15228 | main(void) | ||
15229 | { | ||
15230 | int err, sock; | ||
15231 | struct addrinfo *gai_ai, *ai, hints; | ||
15232 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
15233 | |||
15234 | memset(&hints, 0, sizeof(hints)); | ||
15235 | hints.ai_family = PF_UNSPEC; | ||
15236 | hints.ai_socktype = SOCK_STREAM; | ||
15237 | hints.ai_flags = AI_PASSIVE; | ||
15238 | |||
15239 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
15240 | if (err != 0) { | ||
15241 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
15242 | exit(1); | ||
15243 | } | ||
15244 | |||
15245 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
15246 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
15247 | continue; | ||
15248 | |||
15249 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
15250 | sizeof(ntop), strport, sizeof(strport), | ||
15251 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
15252 | |||
15253 | if (ai->ai_family == AF_INET && err != 0) { | ||
15254 | perror("getnameinfo"); | ||
15255 | exit(2); | ||
15256 | } | ||
15257 | } | ||
15258 | exit(0); | ||
15259 | } | ||
15260 | |||
15261 | _ACEOF | ||
15262 | rm -f conftest$ac_exeext | ||
15263 | if { (ac_try="$ac_link" | ||
15264 | case "(($ac_try" in | ||
15265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15266 | *) ac_try_echo=$ac_try;; | ||
15267 | esac | ||
15268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15269 | (eval "$ac_link") 2>&5 | ||
15270 | ac_status=$? | ||
15271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15272 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15273 | { (case "(($ac_try" in | ||
15274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15275 | *) ac_try_echo=$ac_try;; | ||
15276 | esac | ||
15277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15278 | (eval "$ac_try") 2>&5 | ||
15279 | ac_status=$? | ||
15280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15281 | (exit $ac_status); }; }; then | ||
15282 | |||
15283 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15284 | echo "${ECHO_T}yes" >&6; } | ||
15285 | |||
15286 | cat >>confdefs.h <<\_ACEOF | ||
15287 | #define AIX_GETNAMEINFO_HACK 1 | ||
15288 | _ACEOF | ||
15289 | |||
15290 | |||
15291 | else | ||
15292 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15293 | echo "$as_me: failed program was:" >&5 | ||
15294 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15295 | |||
15296 | ( exit $ac_status ) | ||
15297 | |||
15298 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15299 | echo "${ECHO_T}no" >&6; } | ||
15300 | cat >>confdefs.h <<\_ACEOF | ||
15301 | #define BROKEN_GETADDRINFO 1 | ||
15302 | _ACEOF | ||
15303 | |||
15304 | |||
15305 | fi | ||
15306 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15307 | fi | ||
15308 | |||
15309 | |||
15310 | fi | ||
15311 | |||
15312 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
15313 | { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
15314 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; } | ||
15315 | cat >conftest.$ac_ext <<_ACEOF | ||
15316 | |||
15317 | #include <shadow.h> | ||
15318 | int main(void) {exit(0);} | ||
15319 | |||
15320 | _ACEOF | ||
15321 | rm -f conftest.$ac_objext | ||
15322 | if { (ac_try="$ac_compile" | ||
15323 | case "(($ac_try" in | ||
15324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15325 | *) ac_try_echo=$ac_try;; | ||
15326 | esac | ||
15327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15328 | (eval "$ac_compile") 2>conftest.er1 | ||
15329 | ac_status=$? | ||
15330 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15331 | rm -f conftest.er1 | ||
15332 | cat conftest.err >&5 | ||
15333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15334 | (exit $ac_status); } && { | ||
15335 | test -z "$ac_c_werror_flag" || | ||
15336 | test ! -s conftest.err | ||
15337 | } && test -s conftest.$ac_objext; then | ||
15338 | |||
15339 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15340 | echo "${ECHO_T}no" >&6; } | ||
15341 | |||
15342 | else | ||
15343 | echo "$as_me: failed program was:" >&5 | ||
15344 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15345 | |||
15346 | |||
15347 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15348 | echo "${ECHO_T}yes" >&6; } | ||
15349 | |||
15350 | cat >>confdefs.h <<\_ACEOF | ||
15351 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
15352 | _ACEOF | ||
15353 | |||
15354 | |||
15355 | |||
15356 | fi | ||
15357 | |||
15358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15359 | fi | ||
15360 | |||
15361 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
15362 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | ||
15363 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
15364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15365 | else | ||
15366 | # Use it with a single arg. | ||
15367 | cat >conftest.$ac_ext <<_ACEOF | ||
15368 | /* confdefs.h. */ | ||
15369 | _ACEOF | ||
15370 | cat confdefs.h >>conftest.$ac_ext | ||
15371 | cat >>conftest.$ac_ext <<_ACEOF | ||
15372 | /* end confdefs.h. */ | ||
15373 | $ac_includes_default | ||
15374 | int | ||
15375 | main () | ||
15376 | { | ||
15377 | getpgrp (0); | ||
15378 | ; | ||
15379 | return 0; | ||
15380 | } | ||
15381 | _ACEOF | ||
15382 | rm -f conftest.$ac_objext | ||
15383 | if { (ac_try="$ac_compile" | ||
15384 | case "(($ac_try" in | ||
15385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15386 | *) ac_try_echo=$ac_try;; | ||
15387 | esac | ||
15388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15389 | (eval "$ac_compile") 2>conftest.er1 | ||
15390 | ac_status=$? | ||
15391 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15392 | rm -f conftest.er1 | ||
15393 | cat conftest.err >&5 | ||
15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15395 | (exit $ac_status); } && { | ||
15396 | test -z "$ac_c_werror_flag" || | ||
15397 | test ! -s conftest.err | ||
15398 | } && test -s conftest.$ac_objext; then | ||
15399 | ac_cv_func_getpgrp_void=no | ||
15400 | else | ||
15401 | echo "$as_me: failed program was:" >&5 | ||
15402 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15403 | |||
15404 | ac_cv_func_getpgrp_void=yes | ||
15405 | fi | ||
15406 | |||
15407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15408 | |||
15409 | fi | ||
15410 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
15411 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | ||
15412 | if test $ac_cv_func_getpgrp_void = yes; then | ||
15413 | |||
15414 | cat >>confdefs.h <<\_ACEOF | ||
15415 | #define GETPGRP_VOID 1 | ||
15416 | _ACEOF | ||
15417 | |||
15418 | fi | ||
15419 | |||
15420 | |||
15421 | # Search for OpenSSL | ||
15422 | saved_CPPFLAGS="$CPPFLAGS" | ||
15423 | saved_LDFLAGS="$LDFLAGS" | ||
15424 | |||
15425 | # Check whether --with-ssl-dir was given. | ||
15426 | if test "${with_ssl_dir+set}" = set; then | ||
15427 | withval=$with_ssl_dir; | ||
15428 | if test "x$withval" != "xno" ; then | ||
15429 | case "$withval" in | ||
15430 | # Relative paths | ||
15431 | ./*|../*) withval="`pwd`/$withval" | ||
15432 | esac | ||
15433 | if test -d "$withval/lib"; then | ||
15434 | if test -n "${need_dash_r}"; then | ||
15435 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
15436 | else | ||
15437 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
15438 | fi | ||
15439 | else | ||
15440 | if test -n "${need_dash_r}"; then | ||
15441 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
15442 | else | ||
15443 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
15444 | fi | ||
15445 | fi | ||
15446 | if test -d "$withval/include"; then | ||
15447 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
15448 | else | ||
15449 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
15450 | fi | ||
15451 | fi | ||
15452 | |||
15453 | |||
15454 | fi | ||
15455 | |||
15456 | LIBS="-lcrypto $LIBS" | ||
15457 | cat >conftest.$ac_ext <<_ACEOF | ||
15458 | /* confdefs.h. */ | ||
15459 | _ACEOF | ||
15460 | cat confdefs.h >>conftest.$ac_ext | ||
15461 | cat >>conftest.$ac_ext <<_ACEOF | ||
15462 | /* end confdefs.h. */ | ||
15463 | |||
15464 | /* Override any GCC internal prototype to avoid an error. | ||
15465 | Use char because int might match the return type of a GCC | ||
15466 | builtin and then its argument prototype would still apply. */ | ||
15467 | #ifdef __cplusplus | ||
15468 | extern "C" | ||
15469 | #endif | ||
15470 | char RAND_add (); | ||
15471 | int | ||
15472 | main () | ||
15473 | { | ||
15474 | return RAND_add (); | ||
15475 | ; | ||
15476 | return 0; | ||
15477 | } | ||
15478 | _ACEOF | ||
15479 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15480 | if { (ac_try="$ac_link" | ||
15481 | case "(($ac_try" in | ||
15482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15483 | *) ac_try_echo=$ac_try;; | ||
15484 | esac | ||
15485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15486 | (eval "$ac_link") 2>conftest.er1 | ||
15487 | ac_status=$? | ||
15488 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15489 | rm -f conftest.er1 | ||
15490 | cat conftest.err >&5 | ||
15491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15492 | (exit $ac_status); } && { | ||
15493 | test -z "$ac_c_werror_flag" || | ||
15494 | test ! -s conftest.err | ||
15495 | } && test -s conftest$ac_exeext && | ||
15496 | $as_test_x conftest$ac_exeext; then | ||
15497 | |||
15498 | cat >>confdefs.h <<\_ACEOF | ||
15499 | #define HAVE_OPENSSL 1 | ||
15500 | _ACEOF | ||
15501 | |||
15502 | else | ||
15503 | echo "$as_me: failed program was:" >&5 | ||
15504 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15505 | |||
15506 | |||
15507 | if test -n "${need_dash_r}"; then | ||
15508 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
15509 | else | ||
15510 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
15511 | fi | ||
15512 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
15513 | cat >conftest.$ac_ext <<_ACEOF | ||
15514 | /* confdefs.h. */ | ||
15515 | _ACEOF | ||
15516 | cat confdefs.h >>conftest.$ac_ext | ||
15517 | cat >>conftest.$ac_ext <<_ACEOF | ||
15518 | /* end confdefs.h. */ | ||
15519 | |||
15520 | /* Override any GCC internal prototype to avoid an error. | ||
15521 | Use char because int might match the return type of a GCC | ||
15522 | builtin and then its argument prototype would still apply. */ | ||
15523 | #ifdef __cplusplus | ||
15524 | extern "C" | ||
15525 | #endif | ||
15526 | char RAND_add (); | ||
15527 | int | ||
15528 | main () | ||
15529 | { | ||
15530 | return RAND_add (); | ||
15531 | ; | ||
15532 | return 0; | ||
15533 | } | ||
15534 | _ACEOF | ||
15535 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15536 | if { (ac_try="$ac_link" | ||
15537 | case "(($ac_try" in | ||
15538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15539 | *) ac_try_echo=$ac_try;; | ||
15540 | esac | ||
15541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15542 | (eval "$ac_link") 2>conftest.er1 | ||
15543 | ac_status=$? | ||
15544 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15545 | rm -f conftest.er1 | ||
15546 | cat conftest.err >&5 | ||
15547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15548 | (exit $ac_status); } && { | ||
15549 | test -z "$ac_c_werror_flag" || | ||
15550 | test ! -s conftest.err | ||
15551 | } && test -s conftest$ac_exeext && | ||
15552 | $as_test_x conftest$ac_exeext; then | ||
15553 | cat >>confdefs.h <<\_ACEOF | ||
15554 | #define HAVE_OPENSSL 1 | ||
15555 | _ACEOF | ||
15556 | |||
15557 | else | ||
15558 | echo "$as_me: failed program was:" >&5 | ||
15559 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15560 | |||
15561 | |||
15562 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
15563 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
15564 | { (exit 1); exit 1; }; } | ||
15565 | |||
15566 | |||
15567 | fi | ||
15568 | |||
15569 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15570 | conftest$ac_exeext conftest.$ac_ext | ||
15571 | |||
15572 | |||
15573 | fi | ||
15574 | |||
15575 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15576 | conftest$ac_exeext conftest.$ac_ext | ||
15577 | |||
15578 | # Determine OpenSSL header version | ||
15579 | { echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
15580 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; } | ||
15581 | if test "$cross_compiling" = yes; then | ||
15582 | |||
15583 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
15584 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
15585 | |||
15586 | |||
15587 | else | ||
15588 | cat >conftest.$ac_ext <<_ACEOF | ||
15589 | /* confdefs.h. */ | ||
15590 | _ACEOF | ||
15591 | cat confdefs.h >>conftest.$ac_ext | ||
15592 | cat >>conftest.$ac_ext <<_ACEOF | ||
15593 | /* end confdefs.h. */ | ||
15594 | |||
15595 | #include <stdio.h> | ||
15596 | #include <string.h> | ||
15597 | #include <openssl/opensslv.h> | ||
15598 | #define DATA "conftest.sslincver" | ||
15599 | int main(void) { | ||
15600 | FILE *fd; | ||
15601 | int rc; | ||
15602 | |||
15603 | fd = fopen(DATA,"w"); | ||
15604 | if(fd == NULL) | ||
15605 | exit(1); | ||
15606 | |||
15607 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
15608 | exit(1); | ||
15609 | |||
15610 | exit(0); | ||
15611 | } | ||
15612 | |||
15613 | _ACEOF | ||
15614 | rm -f conftest$ac_exeext | ||
15615 | if { (ac_try="$ac_link" | ||
15616 | case "(($ac_try" in | ||
15617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15618 | *) ac_try_echo=$ac_try;; | ||
15619 | esac | ||
15620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15621 | (eval "$ac_link") 2>&5 | ||
15622 | ac_status=$? | ||
15623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15624 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15625 | { (case "(($ac_try" in | ||
15626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15627 | *) ac_try_echo=$ac_try;; | ||
15628 | esac | ||
15629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15630 | (eval "$ac_try") 2>&5 | ||
15631 | ac_status=$? | ||
15632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15633 | (exit $ac_status); }; }; then | ||
15634 | |||
15635 | ssl_header_ver=`cat conftest.sslincver` | ||
15636 | { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
15637 | echo "${ECHO_T}$ssl_header_ver" >&6; } | ||
15638 | |||
15639 | else | ||
15640 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15641 | echo "$as_me: failed program was:" >&5 | ||
15642 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15643 | |||
15644 | ( exit $ac_status ) | ||
15645 | |||
15646 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
15647 | echo "${ECHO_T}not found" >&6; } | ||
15648 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
15649 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
15650 | { (exit 1); exit 1; }; } | ||
15651 | |||
15652 | fi | ||
15653 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15654 | fi | ||
15655 | |||
15656 | |||
15657 | |||
15658 | # Determine OpenSSL library version | ||
15659 | { echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
15660 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; } | ||
15661 | if test "$cross_compiling" = yes; then | ||
15662 | |||
15663 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
15664 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
15665 | |||
15666 | |||
15667 | else | ||
15668 | cat >conftest.$ac_ext <<_ACEOF | ||
15669 | /* confdefs.h. */ | ||
15670 | _ACEOF | ||
15671 | cat confdefs.h >>conftest.$ac_ext | ||
15672 | cat >>conftest.$ac_ext <<_ACEOF | ||
15673 | /* end confdefs.h. */ | ||
15674 | |||
15675 | #include <stdio.h> | ||
15676 | #include <string.h> | ||
15677 | #include <openssl/opensslv.h> | ||
15678 | #include <openssl/crypto.h> | ||
15679 | #define DATA "conftest.ssllibver" | ||
15680 | int main(void) { | ||
15681 | FILE *fd; | ||
15682 | int rc; | ||
15683 | |||
15684 | fd = fopen(DATA,"w"); | ||
15685 | if(fd == NULL) | ||
15686 | exit(1); | ||
15687 | |||
15688 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
15689 | exit(1); | ||
15690 | |||
15691 | exit(0); | ||
15692 | } | ||
15693 | |||
15694 | _ACEOF | ||
15695 | rm -f conftest$ac_exeext | ||
15696 | if { (ac_try="$ac_link" | ||
15697 | case "(($ac_try" in | ||
15698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15699 | *) ac_try_echo=$ac_try;; | ||
15700 | esac | ||
15701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15702 | (eval "$ac_link") 2>&5 | ||
15703 | ac_status=$? | ||
15704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15705 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15706 | { (case "(($ac_try" in | ||
15707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15708 | *) ac_try_echo=$ac_try;; | ||
15709 | esac | ||
15710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15711 | (eval "$ac_try") 2>&5 | ||
15712 | ac_status=$? | ||
15713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15714 | (exit $ac_status); }; }; then | ||
15715 | |||
15716 | ssl_library_ver=`cat conftest.ssllibver` | ||
15717 | { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
15718 | echo "${ECHO_T}$ssl_library_ver" >&6; } | ||
15719 | |||
15720 | else | ||
15721 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15722 | echo "$as_me: failed program was:" >&5 | ||
15723 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15724 | |||
15725 | ( exit $ac_status ) | ||
15726 | |||
15727 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
15728 | echo "${ECHO_T}not found" >&6; } | ||
15729 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
15730 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
15731 | { (exit 1); exit 1; }; } | ||
15732 | |||
15733 | fi | ||
15734 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15735 | fi | ||
15736 | |||
15737 | |||
15738 | |||
15739 | |||
15740 | # Check whether --with-openssl-header-check was given. | ||
15741 | if test "${with_openssl_header_check+set}" = set; then | ||
15742 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then | ||
15743 | openssl_check_nonfatal=1 | ||
15744 | fi | ||
15745 | |||
15746 | |||
15747 | fi | ||
15748 | |||
15749 | |||
15750 | # Sanity check OpenSSL headers | ||
15751 | { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
15752 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } | ||
15753 | if test "$cross_compiling" = yes; then | ||
15754 | |||
15755 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
15756 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
15757 | |||
15758 | |||
15759 | else | ||
15760 | cat >conftest.$ac_ext <<_ACEOF | ||
15761 | /* confdefs.h. */ | ||
15762 | _ACEOF | ||
15763 | cat confdefs.h >>conftest.$ac_ext | ||
15764 | cat >>conftest.$ac_ext <<_ACEOF | ||
15765 | /* end confdefs.h. */ | ||
15766 | |||
15767 | #include <string.h> | ||
15768 | #include <openssl/opensslv.h> | ||
15769 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
15770 | |||
15771 | _ACEOF | ||
15772 | rm -f conftest$ac_exeext | ||
15773 | if { (ac_try="$ac_link" | ||
15774 | case "(($ac_try" in | ||
15775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15776 | *) ac_try_echo=$ac_try;; | ||
15777 | esac | ||
15778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15779 | (eval "$ac_link") 2>&5 | ||
15780 | ac_status=$? | ||
15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15782 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15783 | { (case "(($ac_try" in | ||
15784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15785 | *) ac_try_echo=$ac_try;; | ||
15786 | esac | ||
15787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15788 | (eval "$ac_try") 2>&5 | ||
15789 | ac_status=$? | ||
15790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15791 | (exit $ac_status); }; }; then | ||
15792 | |||
15793 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15794 | echo "${ECHO_T}yes" >&6; } | ||
15795 | |||
15796 | else | ||
15797 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15798 | echo "$as_me: failed program was:" >&5 | ||
15799 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15800 | |||
15801 | ( exit $ac_status ) | ||
15802 | |||
15803 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15804 | echo "${ECHO_T}no" >&6; } | ||
15805 | if test "x$openssl_check_nonfatal" = "x"; then | ||
15806 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your | ||
15807 | library. Check config.log for details. | ||
15808 | If you are sure your installation is consistent, you can disable the check | ||
15809 | by running \"./configure --without-openssl-header-check\". | ||
15810 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
15811 | " >&5 | ||
15812 | echo "$as_me: error: Your OpenSSL headers do not match your | ||
15813 | library. Check config.log for details. | ||
15814 | If you are sure your installation is consistent, you can disable the check | ||
15815 | by running \"./configure --without-openssl-header-check\". | ||
15816 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
15817 | " >&2;} | ||
15818 | { (exit 1); exit 1; }; } | ||
15819 | else | ||
15820 | { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your | ||
15821 | library. Check config.log for details. | ||
15822 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
15823 | echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
15824 | library. Check config.log for details. | ||
15825 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
15826 | fi | ||
15827 | |||
15828 | fi | ||
15829 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15830 | fi | ||
15831 | |||
15832 | |||
15833 | |||
15834 | { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 | ||
15835 | echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; } | ||
15836 | cat >conftest.$ac_ext <<_ACEOF | ||
15837 | /* confdefs.h. */ | ||
15838 | _ACEOF | ||
15839 | cat confdefs.h >>conftest.$ac_ext | ||
15840 | cat >>conftest.$ac_ext <<_ACEOF | ||
15841 | /* end confdefs.h. */ | ||
15842 | |||
15843 | #include <openssl/evp.h> | ||
15844 | int main(void) { SSLeay_add_all_algorithms(); } | ||
15845 | |||
15846 | _ACEOF | ||
15847 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15848 | if { (ac_try="$ac_link" | ||
15849 | case "(($ac_try" in | ||
15850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15851 | *) ac_try_echo=$ac_try;; | ||
15852 | esac | ||
15853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15854 | (eval "$ac_link") 2>conftest.er1 | ||
15855 | ac_status=$? | ||
15856 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15857 | rm -f conftest.er1 | ||
15858 | cat conftest.err >&5 | ||
15859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15860 | (exit $ac_status); } && { | ||
15861 | test -z "$ac_c_werror_flag" || | ||
15862 | test ! -s conftest.err | ||
15863 | } && test -s conftest$ac_exeext && | ||
15864 | $as_test_x conftest$ac_exeext; then | ||
15865 | |||
15866 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15867 | echo "${ECHO_T}yes" >&6; } | ||
15868 | |||
15869 | else | ||
15870 | echo "$as_me: failed program was:" >&5 | ||
15871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15872 | |||
15873 | |||
15874 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15875 | echo "${ECHO_T}no" >&6; } | ||
15876 | saved_LIBS="$LIBS" | ||
15877 | LIBS="$LIBS -ldl" | ||
15878 | { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 | ||
15879 | echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; } | ||
15880 | cat >conftest.$ac_ext <<_ACEOF | ||
15881 | /* confdefs.h. */ | ||
15882 | _ACEOF | ||
15883 | cat confdefs.h >>conftest.$ac_ext | ||
15884 | cat >>conftest.$ac_ext <<_ACEOF | ||
15885 | /* end confdefs.h. */ | ||
15886 | |||
15887 | #include <openssl/evp.h> | ||
15888 | int main(void) { SSLeay_add_all_algorithms(); } | ||
15889 | |||
15890 | _ACEOF | ||
15891 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15892 | if { (ac_try="$ac_link" | ||
15893 | case "(($ac_try" in | ||
15894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15895 | *) ac_try_echo=$ac_try;; | ||
15896 | esac | ||
15897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15898 | (eval "$ac_link") 2>conftest.er1 | ||
15899 | ac_status=$? | ||
15900 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15901 | rm -f conftest.er1 | ||
15902 | cat conftest.err >&5 | ||
15903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15904 | (exit $ac_status); } && { | ||
15905 | test -z "$ac_c_werror_flag" || | ||
15906 | test ! -s conftest.err | ||
15907 | } && test -s conftest$ac_exeext && | ||
15908 | $as_test_x conftest$ac_exeext; then | ||
15909 | |||
15910 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15911 | echo "${ECHO_T}yes" >&6; } | ||
15912 | |||
15913 | else | ||
15914 | echo "$as_me: failed program was:" >&5 | ||
15915 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15916 | |||
15917 | |||
15918 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15919 | echo "${ECHO_T}no" >&6; } | ||
15920 | LIBS="$saved_LIBS" | ||
15921 | |||
15922 | |||
15923 | fi | ||
15924 | |||
15925 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15926 | conftest$ac_exeext conftest.$ac_ext | ||
15927 | |||
15928 | |||
15929 | fi | ||
15930 | |||
15931 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15932 | conftest$ac_exeext conftest.$ac_ext | ||
15933 | |||
15934 | |||
15935 | # Check whether --with-ssl-engine was given. | ||
15936 | if test "${with_ssl_engine+set}" = set; then | ||
15937 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then | ||
15938 | { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 | ||
15939 | echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; } | ||
15940 | cat >conftest.$ac_ext <<_ACEOF | ||
15941 | /* confdefs.h. */ | ||
15942 | _ACEOF | ||
15943 | cat confdefs.h >>conftest.$ac_ext | ||
15944 | cat >>conftest.$ac_ext <<_ACEOF | ||
15945 | /* end confdefs.h. */ | ||
15946 | #include <openssl/engine.h> | ||
15947 | int | ||
15948 | main () | ||
15949 | { | ||
15950 | |||
15951 | ENGINE_load_builtin_engines();ENGINE_register_all_complete(); | ||
15952 | |||
15953 | ; | ||
15954 | return 0; | ||
15955 | } | ||
15956 | _ACEOF | ||
15957 | rm -f conftest.$ac_objext | ||
15958 | if { (ac_try="$ac_compile" | ||
15959 | case "(($ac_try" in | ||
15960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15961 | *) ac_try_echo=$ac_try;; | ||
15962 | esac | ||
15963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15964 | (eval "$ac_compile") 2>conftest.er1 | ||
15965 | ac_status=$? | ||
15966 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15967 | rm -f conftest.er1 | ||
15968 | cat conftest.err >&5 | ||
15969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15970 | (exit $ac_status); } && { | ||
15971 | test -z "$ac_c_werror_flag" || | ||
15972 | test ! -s conftest.err | ||
15973 | } && test -s conftest.$ac_objext; then | ||
15974 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15975 | echo "${ECHO_T}yes" >&6; } | ||
15976 | |||
15977 | cat >>confdefs.h <<\_ACEOF | ||
15978 | #define USE_OPENSSL_ENGINE 1 | ||
15979 | _ACEOF | ||
15980 | |||
15981 | |||
15982 | else | ||
15983 | echo "$as_me: failed program was:" >&5 | ||
15984 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15985 | |||
15986 | { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 | ||
15987 | echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} | ||
15988 | { (exit 1); exit 1; }; } | ||
15989 | |||
15990 | fi | ||
15991 | |||
15992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15993 | fi | ||
15994 | |||
15995 | fi | ||
15996 | |||
15997 | |||
15998 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
15999 | { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | ||
16000 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } | ||
16001 | cat >conftest.$ac_ext <<_ACEOF | ||
16002 | /* confdefs.h. */ | ||
16003 | _ACEOF | ||
16004 | cat confdefs.h >>conftest.$ac_ext | ||
16005 | cat >>conftest.$ac_ext <<_ACEOF | ||
16006 | /* end confdefs.h. */ | ||
16007 | |||
16008 | #include <string.h> | ||
16009 | #include <openssl/evp.h> | ||
16010 | int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} | ||
16011 | |||
16012 | _ACEOF | ||
16013 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16014 | if { (ac_try="$ac_link" | ||
16015 | case "(($ac_try" in | ||
16016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16017 | *) ac_try_echo=$ac_try;; | ||
16018 | esac | ||
16019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16020 | (eval "$ac_link") 2>conftest.er1 | ||
16021 | ac_status=$? | ||
16022 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16023 | rm -f conftest.er1 | ||
16024 | cat conftest.err >&5 | ||
16025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16026 | (exit $ac_status); } && { | ||
16027 | test -z "$ac_c_werror_flag" || | ||
16028 | test ! -s conftest.err | ||
16029 | } && test -s conftest$ac_exeext && | ||
16030 | $as_test_x conftest$ac_exeext; then | ||
16031 | |||
16032 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16033 | echo "${ECHO_T}no" >&6; } | ||
16034 | |||
16035 | else | ||
16036 | echo "$as_me: failed program was:" >&5 | ||
16037 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16038 | |||
16039 | |||
16040 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16041 | echo "${ECHO_T}yes" >&6; } | ||
16042 | |||
16043 | cat >>confdefs.h <<\_ACEOF | ||
16044 | #define OPENSSL_LOBOTOMISED_AES 1 | ||
16045 | _ACEOF | ||
16046 | |||
16047 | |||
16048 | |||
16049 | fi | ||
16050 | |||
16051 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16052 | conftest$ac_exeext conftest.$ac_ext | ||
16053 | |||
16054 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
16055 | # because the system crypt() is more featureful. | ||
16056 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
16057 | |||
16058 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
16059 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
16060 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
16061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16062 | else | ||
16063 | ac_check_lib_save_LIBS=$LIBS | ||
16064 | LIBS="-lcrypt $LIBS" | ||
16065 | cat >conftest.$ac_ext <<_ACEOF | ||
16066 | /* confdefs.h. */ | ||
16067 | _ACEOF | ||
16068 | cat confdefs.h >>conftest.$ac_ext | ||
16069 | cat >>conftest.$ac_ext <<_ACEOF | ||
16070 | /* end confdefs.h. */ | ||
16071 | |||
16072 | /* Override any GCC internal prototype to avoid an error. | ||
16073 | Use char because int might match the return type of a GCC | ||
16074 | builtin and then its argument prototype would still apply. */ | ||
16075 | #ifdef __cplusplus | ||
16076 | extern "C" | ||
16077 | #endif | ||
16078 | char crypt (); | ||
16079 | int | ||
16080 | main () | ||
16081 | { | ||
16082 | return crypt (); | ||
16083 | ; | ||
16084 | return 0; | ||
16085 | } | ||
16086 | _ACEOF | ||
16087 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16088 | if { (ac_try="$ac_link" | ||
16089 | case "(($ac_try" in | ||
16090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16091 | *) ac_try_echo=$ac_try;; | ||
16092 | esac | ||
16093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16094 | (eval "$ac_link") 2>conftest.er1 | ||
16095 | ac_status=$? | ||
16096 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16097 | rm -f conftest.er1 | ||
16098 | cat conftest.err >&5 | ||
16099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16100 | (exit $ac_status); } && { | ||
16101 | test -z "$ac_c_werror_flag" || | ||
16102 | test ! -s conftest.err | ||
16103 | } && test -s conftest$ac_exeext && | ||
16104 | $as_test_x conftest$ac_exeext; then | ||
16105 | ac_cv_lib_crypt_crypt=yes | ||
16106 | else | ||
16107 | echo "$as_me: failed program was:" >&5 | ||
16108 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16109 | |||
16110 | ac_cv_lib_crypt_crypt=no | ||
16111 | fi | ||
16112 | |||
16113 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16114 | conftest$ac_exeext conftest.$ac_ext | ||
16115 | LIBS=$ac_check_lib_save_LIBS | ||
16116 | fi | ||
16117 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
16118 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
16119 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
16120 | cat >>confdefs.h <<_ACEOF | ||
16121 | #define HAVE_LIBCRYPT 1 | ||
16122 | _ACEOF | ||
16123 | |||
16124 | LIBS="-lcrypt $LIBS" | ||
16125 | |||
16126 | fi | ||
16127 | |||
16128 | fi | ||
16129 | |||
16130 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
16131 | # version in OpenSSL. | ||
16132 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
16133 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
16134 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
16135 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
16136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16137 | else | ||
16138 | ac_check_lib_save_LIBS=$LIBS | ||
16139 | LIBS="-lcrypt $LIBS" | ||
16140 | cat >conftest.$ac_ext <<_ACEOF | ||
16141 | /* confdefs.h. */ | ||
16142 | _ACEOF | ||
16143 | cat confdefs.h >>conftest.$ac_ext | ||
16144 | cat >>conftest.$ac_ext <<_ACEOF | ||
16145 | /* end confdefs.h. */ | ||
16146 | |||
16147 | /* Override any GCC internal prototype to avoid an error. | ||
16148 | Use char because int might match the return type of a GCC | ||
16149 | builtin and then its argument prototype would still apply. */ | ||
16150 | #ifdef __cplusplus | ||
16151 | extern "C" | ||
16152 | #endif | ||
16153 | char crypt (); | ||
16154 | int | ||
16155 | main () | ||
16156 | { | ||
16157 | return crypt (); | ||
16158 | ; | ||
16159 | return 0; | ||
16160 | } | ||
16161 | _ACEOF | ||
16162 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16163 | if { (ac_try="$ac_link" | ||
16164 | case "(($ac_try" in | ||
16165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16166 | *) ac_try_echo=$ac_try;; | ||
16167 | esac | ||
16168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16169 | (eval "$ac_link") 2>conftest.er1 | ||
16170 | ac_status=$? | ||
16171 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16172 | rm -f conftest.er1 | ||
16173 | cat conftest.err >&5 | ||
16174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16175 | (exit $ac_status); } && { | ||
16176 | test -z "$ac_c_werror_flag" || | ||
16177 | test ! -s conftest.err | ||
16178 | } && test -s conftest$ac_exeext && | ||
16179 | $as_test_x conftest$ac_exeext; then | ||
16180 | ac_cv_lib_crypt_crypt=yes | ||
16181 | else | ||
16182 | echo "$as_me: failed program was:" >&5 | ||
16183 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16184 | |||
16185 | ac_cv_lib_crypt_crypt=no | ||
16186 | fi | ||
16187 | |||
16188 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16189 | conftest$ac_exeext conftest.$ac_ext | ||
16190 | LIBS=$ac_check_lib_save_LIBS | ||
16191 | fi | ||
16192 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
16193 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
16194 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
16195 | LIBS="$LIBS -lcrypt" | ||
16196 | fi | ||
16197 | |||
16198 | fi | ||
16199 | |||
16200 | # Search for SHA256 support in libc and/or OpenSSL | ||
16201 | |||
16202 | |||
16203 | for ac_func in SHA256_Update EVP_sha256 | ||
16204 | do | ||
16205 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16206 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16207 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16208 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16210 | else | ||
16211 | cat >conftest.$ac_ext <<_ACEOF | ||
16212 | /* confdefs.h. */ | ||
16213 | _ACEOF | ||
16214 | cat confdefs.h >>conftest.$ac_ext | ||
16215 | cat >>conftest.$ac_ext <<_ACEOF | ||
16216 | /* end confdefs.h. */ | ||
16217 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16218 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16219 | #define $ac_func innocuous_$ac_func | ||
16220 | |||
16221 | /* System header to define __stub macros and hopefully few prototypes, | ||
16222 | which can conflict with char $ac_func (); below. | ||
16223 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16224 | <limits.h> exists even on freestanding compilers. */ | ||
16225 | |||
16226 | #ifdef __STDC__ | ||
16227 | # include <limits.h> | ||
16228 | #else | ||
16229 | # include <assert.h> | ||
16230 | #endif | ||
16231 | |||
16232 | #undef $ac_func | ||
16233 | |||
16234 | /* Override any GCC internal prototype to avoid an error. | ||
16235 | Use char because int might match the return type of a GCC | ||
16236 | builtin and then its argument prototype would still apply. */ | ||
16237 | #ifdef __cplusplus | ||
16238 | extern "C" | ||
16239 | #endif | ||
16240 | char $ac_func (); | ||
16241 | /* The GNU C library defines this for functions which it implements | ||
16242 | to always fail with ENOSYS. Some functions are actually named | ||
16243 | something starting with __ and the normal name is an alias. */ | ||
16244 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16245 | choke me | ||
16246 | #endif | ||
16247 | |||
16248 | int | ||
16249 | main () | ||
16250 | { | ||
16251 | return $ac_func (); | ||
16252 | ; | ||
16253 | return 0; | ||
16254 | } | ||
16255 | _ACEOF | ||
16256 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16257 | if { (ac_try="$ac_link" | ||
16258 | case "(($ac_try" in | ||
16259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16260 | *) ac_try_echo=$ac_try;; | ||
16261 | esac | ||
16262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16263 | (eval "$ac_link") 2>conftest.er1 | ||
16264 | ac_status=$? | ||
16265 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16266 | rm -f conftest.er1 | ||
16267 | cat conftest.err >&5 | ||
16268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16269 | (exit $ac_status); } && { | ||
16270 | test -z "$ac_c_werror_flag" || | ||
16271 | test ! -s conftest.err | ||
16272 | } && test -s conftest$ac_exeext && | ||
16273 | $as_test_x conftest$ac_exeext; then | ||
16274 | eval "$as_ac_var=yes" | ||
16275 | else | ||
16276 | echo "$as_me: failed program was:" >&5 | ||
16277 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16278 | |||
16279 | eval "$as_ac_var=no" | ||
16280 | fi | ||
16281 | |||
16282 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16283 | conftest$ac_exeext conftest.$ac_ext | ||
16284 | fi | ||
16285 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16286 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16287 | echo "${ECHO_T}$ac_res" >&6; } | ||
16288 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16289 | cat >>confdefs.h <<_ACEOF | ||
16290 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16291 | _ACEOF | ||
16292 | |||
16293 | fi | ||
16294 | done | ||
16295 | |||
16296 | |||
16297 | |||
16298 | { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
16299 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } | ||
16300 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
16301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16302 | else | ||
16303 | ac_check_lib_save_LIBS=$LIBS | ||
16304 | LIBS="-liaf $LIBS" | ||
16305 | cat >conftest.$ac_ext <<_ACEOF | ||
16306 | /* confdefs.h. */ | ||
16307 | _ACEOF | ||
16308 | cat confdefs.h >>conftest.$ac_ext | ||
16309 | cat >>conftest.$ac_ext <<_ACEOF | ||
16310 | /* end confdefs.h. */ | ||
16311 | |||
16312 | /* Override any GCC internal prototype to avoid an error. | ||
16313 | Use char because int might match the return type of a GCC | ||
16314 | builtin and then its argument prototype would still apply. */ | ||
16315 | #ifdef __cplusplus | ||
16316 | extern "C" | ||
16317 | #endif | ||
16318 | char ia_openinfo (); | ||
16319 | int | ||
16320 | main () | ||
16321 | { | ||
16322 | return ia_openinfo (); | ||
16323 | ; | ||
16324 | return 0; | ||
16325 | } | ||
16326 | _ACEOF | ||
16327 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16328 | if { (ac_try="$ac_link" | ||
16329 | case "(($ac_try" in | ||
16330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16331 | *) ac_try_echo=$ac_try;; | ||
16332 | esac | ||
16333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16334 | (eval "$ac_link") 2>conftest.er1 | ||
16335 | ac_status=$? | ||
16336 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16337 | rm -f conftest.er1 | ||
16338 | cat conftest.err >&5 | ||
16339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16340 | (exit $ac_status); } && { | ||
16341 | test -z "$ac_c_werror_flag" || | ||
16342 | test ! -s conftest.err | ||
16343 | } && test -s conftest$ac_exeext && | ||
16344 | $as_test_x conftest$ac_exeext; then | ||
16345 | ac_cv_lib_iaf_ia_openinfo=yes | ||
16346 | else | ||
16347 | echo "$as_me: failed program was:" >&5 | ||
16348 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16349 | |||
16350 | ac_cv_lib_iaf_ia_openinfo=no | ||
16351 | fi | ||
16352 | |||
16353 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16354 | conftest$ac_exeext conftest.$ac_ext | ||
16355 | LIBS=$ac_check_lib_save_LIBS | ||
16356 | fi | ||
16357 | { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
16358 | echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
16359 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
16360 | cat >>confdefs.h <<_ACEOF | ||
16361 | #define HAVE_LIBIAF 1 | ||
16362 | _ACEOF | ||
16363 | |||
16364 | LIBS="-liaf $LIBS" | ||
16365 | |||
16366 | fi | ||
16367 | |||
16368 | |||
16369 | ### Configure cryptographic random number support | ||
16370 | |||
16371 | # Check wheter OpenSSL seeds itself | ||
16372 | { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
16373 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; } | ||
16374 | if test "$cross_compiling" = yes; then | ||
16375 | |||
16376 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
16377 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
16378 | # This is safe, since all recent OpenSSL versions will | ||
16379 | # complain at runtime if not seeded correctly. | ||
16380 | OPENSSL_SEEDS_ITSELF=yes | ||
16381 | |||
16382 | |||
16383 | else | ||
16384 | cat >conftest.$ac_ext <<_ACEOF | ||
16385 | /* confdefs.h. */ | ||
16386 | _ACEOF | ||
16387 | cat confdefs.h >>conftest.$ac_ext | ||
16388 | cat >>conftest.$ac_ext <<_ACEOF | ||
16389 | /* end confdefs.h. */ | ||
16390 | |||
16391 | #include <string.h> | ||
16392 | #include <openssl/rand.h> | ||
16393 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
16394 | |||
16395 | _ACEOF | ||
16396 | rm -f conftest$ac_exeext | ||
16397 | if { (ac_try="$ac_link" | ||
16398 | case "(($ac_try" in | ||
16399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16400 | *) ac_try_echo=$ac_try;; | ||
16401 | esac | ||
16402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16403 | (eval "$ac_link") 2>&5 | ||
16404 | ac_status=$? | ||
16405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16406 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16407 | { (case "(($ac_try" in | ||
16408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16409 | *) ac_try_echo=$ac_try;; | ||
16410 | esac | ||
16411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16412 | (eval "$ac_try") 2>&5 | ||
16413 | ac_status=$? | ||
16414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16415 | (exit $ac_status); }; }; then | ||
16416 | |||
16417 | OPENSSL_SEEDS_ITSELF=yes | ||
16418 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16419 | echo "${ECHO_T}yes" >&6; } | ||
16420 | |||
16421 | else | ||
16422 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16423 | echo "$as_me: failed program was:" >&5 | ||
16424 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16425 | |||
16426 | ( exit $ac_status ) | ||
16427 | |||
16428 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16429 | echo "${ECHO_T}no" >&6; } | ||
16430 | # Default to use of the rand helper if OpenSSL doesn't | ||
16431 | # seed itself | ||
16432 | USE_RAND_HELPER=yes | ||
16433 | |||
16434 | fi | ||
16435 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16436 | fi | ||
16437 | |||
16438 | |||
16439 | |||
16440 | # Check for PAM libs | ||
16441 | PAM_MSG="no" | ||
16442 | |||
16443 | # Check whether --with-pam was given. | ||
16444 | if test "${with_pam+set}" = set; then | ||
16445 | withval=$with_pam; | ||
16446 | if test "x$withval" != "xno" ; then | ||
16447 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
16448 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
16449 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
16450 | echo "$as_me: error: PAM headers not found" >&2;} | ||
16451 | { (exit 1); exit 1; }; } | ||
16452 | fi | ||
16453 | |||
16454 | saved_LIBS="$LIBS" | ||
16455 | |||
16456 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
16457 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
16458 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
16459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16460 | else | ||
16461 | ac_check_lib_save_LIBS=$LIBS | ||
16462 | LIBS="-ldl $LIBS" | ||
16463 | cat >conftest.$ac_ext <<_ACEOF | ||
16464 | /* confdefs.h. */ | ||
16465 | _ACEOF | ||
16466 | cat confdefs.h >>conftest.$ac_ext | ||
16467 | cat >>conftest.$ac_ext <<_ACEOF | ||
16468 | /* end confdefs.h. */ | ||
16469 | |||
16470 | /* Override any GCC internal prototype to avoid an error. | ||
16471 | Use char because int might match the return type of a GCC | ||
16472 | builtin and then its argument prototype would still apply. */ | ||
16473 | #ifdef __cplusplus | ||
16474 | extern "C" | ||
16475 | #endif | ||
16476 | char dlopen (); | ||
16477 | int | ||
16478 | main () | ||
16479 | { | ||
16480 | return dlopen (); | ||
16481 | ; | ||
16482 | return 0; | ||
16483 | } | ||
16484 | _ACEOF | ||
16485 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16486 | if { (ac_try="$ac_link" | ||
16487 | case "(($ac_try" in | ||
16488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16489 | *) ac_try_echo=$ac_try;; | ||
16490 | esac | ||
16491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16492 | (eval "$ac_link") 2>conftest.er1 | ||
16493 | ac_status=$? | ||
16494 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16495 | rm -f conftest.er1 | ||
16496 | cat conftest.err >&5 | ||
16497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16498 | (exit $ac_status); } && { | ||
16499 | test -z "$ac_c_werror_flag" || | ||
16500 | test ! -s conftest.err | ||
16501 | } && test -s conftest$ac_exeext && | ||
16502 | $as_test_x conftest$ac_exeext; then | ||
16503 | ac_cv_lib_dl_dlopen=yes | ||
16504 | else | ||
16505 | echo "$as_me: failed program was:" >&5 | ||
16506 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16507 | |||
16508 | ac_cv_lib_dl_dlopen=no | ||
16509 | fi | ||
16510 | |||
16511 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16512 | conftest$ac_exeext conftest.$ac_ext | ||
16513 | LIBS=$ac_check_lib_save_LIBS | ||
16514 | fi | ||
16515 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
16516 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
16517 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
16518 | cat >>confdefs.h <<_ACEOF | ||
16519 | #define HAVE_LIBDL 1 | ||
16520 | _ACEOF | ||
16521 | |||
16522 | LIBS="-ldl $LIBS" | ||
16523 | |||
16524 | fi | ||
16525 | |||
16526 | |||
16527 | { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
16528 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } | ||
16529 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
16530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16531 | else | ||
16532 | ac_check_lib_save_LIBS=$LIBS | ||
16533 | LIBS="-lpam $LIBS" | ||
16534 | cat >conftest.$ac_ext <<_ACEOF | ||
16535 | /* confdefs.h. */ | ||
16536 | _ACEOF | ||
16537 | cat confdefs.h >>conftest.$ac_ext | ||
16538 | cat >>conftest.$ac_ext <<_ACEOF | ||
16539 | /* end confdefs.h. */ | ||
16540 | |||
16541 | /* Override any GCC internal prototype to avoid an error. | ||
16542 | Use char because int might match the return type of a GCC | ||
16543 | builtin and then its argument prototype would still apply. */ | ||
16544 | #ifdef __cplusplus | ||
16545 | extern "C" | ||
16546 | #endif | ||
16547 | char pam_set_item (); | ||
16548 | int | ||
16549 | main () | ||
16550 | { | ||
16551 | return pam_set_item (); | ||
16552 | ; | ||
16553 | return 0; | ||
16554 | } | ||
16555 | _ACEOF | ||
16556 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16557 | if { (ac_try="$ac_link" | ||
16558 | case "(($ac_try" in | ||
16559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16560 | *) ac_try_echo=$ac_try;; | ||
16561 | esac | ||
16562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16563 | (eval "$ac_link") 2>conftest.er1 | ||
16564 | ac_status=$? | ||
16565 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16566 | rm -f conftest.er1 | ||
16567 | cat conftest.err >&5 | ||
16568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16569 | (exit $ac_status); } && { | ||
16570 | test -z "$ac_c_werror_flag" || | ||
16571 | test ! -s conftest.err | ||
16572 | } && test -s conftest$ac_exeext && | ||
16573 | $as_test_x conftest$ac_exeext; then | ||
16574 | ac_cv_lib_pam_pam_set_item=yes | ||
16575 | else | ||
16576 | echo "$as_me: failed program was:" >&5 | ||
16577 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16578 | |||
16579 | ac_cv_lib_pam_pam_set_item=no | ||
16580 | fi | ||
16581 | |||
16582 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16583 | conftest$ac_exeext conftest.$ac_ext | ||
16584 | LIBS=$ac_check_lib_save_LIBS | ||
16585 | fi | ||
16586 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
16587 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } | ||
16588 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
16589 | cat >>confdefs.h <<_ACEOF | ||
16590 | #define HAVE_LIBPAM 1 | ||
16591 | _ACEOF | ||
16592 | |||
16593 | LIBS="-lpam $LIBS" | ||
16594 | |||
16595 | else | ||
16596 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
16597 | echo "$as_me: error: *** libpam missing" >&2;} | ||
16598 | { (exit 1); exit 1; }; } | ||
16599 | fi | ||
16600 | |||
16601 | |||
16602 | for ac_func in pam_getenvlist | ||
16603 | do | ||
16604 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16605 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16606 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16607 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16609 | else | ||
16610 | cat >conftest.$ac_ext <<_ACEOF | ||
16611 | /* confdefs.h. */ | ||
16612 | _ACEOF | ||
16613 | cat confdefs.h >>conftest.$ac_ext | ||
16614 | cat >>conftest.$ac_ext <<_ACEOF | ||
16615 | /* end confdefs.h. */ | ||
16616 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16617 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16618 | #define $ac_func innocuous_$ac_func | ||
16619 | |||
16620 | /* System header to define __stub macros and hopefully few prototypes, | ||
16621 | which can conflict with char $ac_func (); below. | ||
16622 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16623 | <limits.h> exists even on freestanding compilers. */ | ||
16624 | |||
16625 | #ifdef __STDC__ | ||
16626 | # include <limits.h> | ||
16627 | #else | ||
16628 | # include <assert.h> | ||
16629 | #endif | ||
16630 | |||
16631 | #undef $ac_func | ||
16632 | |||
16633 | /* Override any GCC internal prototype to avoid an error. | ||
16634 | Use char because int might match the return type of a GCC | ||
16635 | builtin and then its argument prototype would still apply. */ | ||
16636 | #ifdef __cplusplus | ||
16637 | extern "C" | ||
16638 | #endif | ||
16639 | char $ac_func (); | ||
16640 | /* The GNU C library defines this for functions which it implements | ||
16641 | to always fail with ENOSYS. Some functions are actually named | ||
16642 | something starting with __ and the normal name is an alias. */ | ||
16643 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16644 | choke me | ||
16645 | #endif | ||
16646 | |||
16647 | int | ||
16648 | main () | ||
16649 | { | ||
16650 | return $ac_func (); | ||
16651 | ; | ||
16652 | return 0; | ||
16653 | } | ||
16654 | _ACEOF | ||
16655 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16656 | if { (ac_try="$ac_link" | ||
16657 | case "(($ac_try" in | ||
16658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16659 | *) ac_try_echo=$ac_try;; | ||
16660 | esac | ||
16661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16662 | (eval "$ac_link") 2>conftest.er1 | ||
16663 | ac_status=$? | ||
16664 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16665 | rm -f conftest.er1 | ||
16666 | cat conftest.err >&5 | ||
16667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16668 | (exit $ac_status); } && { | ||
16669 | test -z "$ac_c_werror_flag" || | ||
16670 | test ! -s conftest.err | ||
16671 | } && test -s conftest$ac_exeext && | ||
16672 | $as_test_x conftest$ac_exeext; then | ||
16673 | eval "$as_ac_var=yes" | ||
16674 | else | ||
16675 | echo "$as_me: failed program was:" >&5 | ||
16676 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16677 | |||
16678 | eval "$as_ac_var=no" | ||
16679 | fi | ||
16680 | |||
16681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16682 | conftest$ac_exeext conftest.$ac_ext | ||
16683 | fi | ||
16684 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16685 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16686 | echo "${ECHO_T}$ac_res" >&6; } | ||
16687 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16688 | cat >>confdefs.h <<_ACEOF | ||
16689 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16690 | _ACEOF | ||
16691 | |||
16692 | fi | ||
16693 | done | ||
16694 | |||
16695 | |||
16696 | for ac_func in pam_putenv | ||
16697 | do | ||
16698 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16699 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16700 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16701 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16703 | else | ||
16704 | cat >conftest.$ac_ext <<_ACEOF | ||
16705 | /* confdefs.h. */ | ||
16706 | _ACEOF | ||
16707 | cat confdefs.h >>conftest.$ac_ext | ||
16708 | cat >>conftest.$ac_ext <<_ACEOF | ||
16709 | /* end confdefs.h. */ | ||
16710 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16711 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16712 | #define $ac_func innocuous_$ac_func | ||
16713 | |||
16714 | /* System header to define __stub macros and hopefully few prototypes, | ||
16715 | which can conflict with char $ac_func (); below. | ||
16716 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16717 | <limits.h> exists even on freestanding compilers. */ | ||
16718 | |||
16719 | #ifdef __STDC__ | ||
16720 | # include <limits.h> | ||
16721 | #else | ||
16722 | # include <assert.h> | ||
16723 | #endif | ||
16724 | |||
16725 | #undef $ac_func | ||
16726 | |||
16727 | /* Override any GCC internal prototype to avoid an error. | ||
16728 | Use char because int might match the return type of a GCC | ||
16729 | builtin and then its argument prototype would still apply. */ | ||
16730 | #ifdef __cplusplus | ||
16731 | extern "C" | ||
16732 | #endif | ||
16733 | char $ac_func (); | ||
16734 | /* The GNU C library defines this for functions which it implements | ||
16735 | to always fail with ENOSYS. Some functions are actually named | ||
16736 | something starting with __ and the normal name is an alias. */ | ||
16737 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16738 | choke me | ||
16739 | #endif | ||
16740 | |||
16741 | int | ||
16742 | main () | ||
16743 | { | ||
16744 | return $ac_func (); | ||
16745 | ; | ||
16746 | return 0; | ||
16747 | } | ||
16748 | _ACEOF | ||
16749 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16750 | if { (ac_try="$ac_link" | ||
16751 | case "(($ac_try" in | ||
16752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16753 | *) ac_try_echo=$ac_try;; | ||
16754 | esac | ||
16755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16756 | (eval "$ac_link") 2>conftest.er1 | ||
16757 | ac_status=$? | ||
16758 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16759 | rm -f conftest.er1 | ||
16760 | cat conftest.err >&5 | ||
16761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16762 | (exit $ac_status); } && { | ||
16763 | test -z "$ac_c_werror_flag" || | ||
16764 | test ! -s conftest.err | ||
16765 | } && test -s conftest$ac_exeext && | ||
16766 | $as_test_x conftest$ac_exeext; then | ||
16767 | eval "$as_ac_var=yes" | ||
16768 | else | ||
16769 | echo "$as_me: failed program was:" >&5 | ||
16770 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16771 | |||
16772 | eval "$as_ac_var=no" | ||
16773 | fi | ||
16774 | |||
16775 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16776 | conftest$ac_exeext conftest.$ac_ext | ||
16777 | fi | ||
16778 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16779 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16780 | echo "${ECHO_T}$ac_res" >&6; } | ||
16781 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16782 | cat >>confdefs.h <<_ACEOF | ||
16783 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16784 | _ACEOF | ||
16785 | |||
16786 | fi | ||
16787 | done | ||
16788 | |||
16789 | LIBS="$saved_LIBS" | ||
16790 | |||
16791 | PAM_MSG="yes" | ||
16792 | |||
16793 | LIBPAM="-lpam" | ||
16794 | |||
16795 | cat >>confdefs.h <<\_ACEOF | ||
16796 | #define USE_PAM 1 | ||
16797 | _ACEOF | ||
16798 | |||
16799 | |||
16800 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
16801 | case "$LIBS" in | ||
16802 | *-ldl*) | ||
16803 | # libdl already in LIBS | ||
16804 | ;; | ||
16805 | *) | ||
16806 | LIBPAM="$LIBPAM -ldl" | ||
16807 | ;; | ||
16808 | esac | ||
16809 | fi | ||
16810 | |||
16811 | fi | ||
16812 | |||
16813 | |||
16814 | fi | ||
16815 | |||
16816 | |||
16817 | # Check for older PAM | ||
16818 | if test "x$PAM_MSG" = "xyes" ; then | ||
16819 | # Check PAM strerror arguments (old PAM) | ||
16820 | { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
16821 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } | ||
16822 | cat >conftest.$ac_ext <<_ACEOF | ||
16823 | /* confdefs.h. */ | ||
16824 | _ACEOF | ||
16825 | cat confdefs.h >>conftest.$ac_ext | ||
16826 | cat >>conftest.$ac_ext <<_ACEOF | ||
16827 | /* end confdefs.h. */ | ||
16828 | |||
16829 | #include <stdlib.h> | ||
16830 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
16831 | #include <security/pam_appl.h> | ||
16832 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
16833 | #include <pam/pam_appl.h> | ||
16834 | #endif | ||
16835 | |||
16836 | int | ||
16837 | main () | ||
16838 | { | ||
16839 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
16840 | ; | ||
16841 | return 0; | ||
16842 | } | ||
16843 | _ACEOF | ||
16844 | rm -f conftest.$ac_objext | ||
16845 | if { (ac_try="$ac_compile" | ||
16846 | case "(($ac_try" in | ||
16847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16848 | *) ac_try_echo=$ac_try;; | ||
16849 | esac | ||
16850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16851 | (eval "$ac_compile") 2>conftest.er1 | ||
16852 | ac_status=$? | ||
16853 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16854 | rm -f conftest.er1 | ||
16855 | cat conftest.err >&5 | ||
16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16857 | (exit $ac_status); } && { | ||
16858 | test -z "$ac_c_werror_flag" || | ||
16859 | test ! -s conftest.err | ||
16860 | } && test -s conftest.$ac_objext; then | ||
16861 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16862 | echo "${ECHO_T}no" >&6; } | ||
16863 | else | ||
16864 | echo "$as_me: failed program was:" >&5 | ||
16865 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16866 | |||
16867 | |||
16868 | |||
16869 | cat >>confdefs.h <<\_ACEOF | ||
16870 | #define HAVE_OLD_PAM 1 | ||
16871 | _ACEOF | ||
16872 | |||
16873 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16874 | echo "${ECHO_T}yes" >&6; } | ||
16875 | PAM_MSG="yes (old library)" | ||
16876 | |||
16877 | |||
16878 | fi | ||
16879 | |||
16880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16881 | fi | ||
16882 | |||
16883 | # Do we want to force the use of the rand helper? | ||
16884 | |||
16885 | # Check whether --with-rand-helper was given. | ||
16886 | if test "${with_rand_helper+set}" = set; then | ||
16887 | withval=$with_rand_helper; | ||
16888 | if test "x$withval" = "xno" ; then | ||
16889 | # Force use of OpenSSL's internal RNG, even if | ||
16890 | # the previous test showed it to be unseeded. | ||
16891 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
16892 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
16893 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
16894 | OPENSSL_SEEDS_ITSELF=yes | ||
16895 | USE_RAND_HELPER="" | ||
16896 | fi | ||
16897 | else | ||
16898 | USE_RAND_HELPER=yes | ||
16899 | fi | ||
16900 | |||
16901 | fi | ||
16902 | |||
16903 | |||
16904 | # Which randomness source do we use? | ||
16905 | if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then | ||
16906 | # OpenSSL only | ||
16907 | |||
16908 | cat >>confdefs.h <<\_ACEOF | ||
16909 | #define OPENSSL_PRNG_ONLY 1 | ||
16910 | _ACEOF | ||
16911 | |||
16912 | RAND_MSG="OpenSSL internal ONLY" | ||
16913 | INSTALL_SSH_RAND_HELPER="" | ||
16914 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
16915 | # install rand helper | ||
16916 | RAND_MSG="ssh-rand-helper" | ||
16917 | INSTALL_SSH_RAND_HELPER="yes" | ||
16918 | fi | ||
16919 | |||
16920 | |||
16921 | ### Configuration of ssh-rand-helper | ||
16922 | |||
16923 | # PRNGD TCP socket | ||
16924 | |||
16925 | # Check whether --with-prngd-port was given. | ||
16926 | if test "${with_prngd_port+set}" = set; then | ||
16927 | withval=$with_prngd_port; | ||
16928 | case "$withval" in | ||
16929 | no) | ||
16930 | withval="" | ||
16931 | ;; | ||
16932 | [0-9]*) | ||
16933 | ;; | ||
16934 | *) | ||
16935 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
16936 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
16937 | { (exit 1); exit 1; }; } | ||
16938 | ;; | ||
16939 | esac | ||
16940 | if test ! -z "$withval" ; then | ||
16941 | PRNGD_PORT="$withval" | ||
16942 | |||
16943 | cat >>confdefs.h <<_ACEOF | ||
16944 | #define PRNGD_PORT $PRNGD_PORT | ||
16945 | _ACEOF | ||
16946 | |||
16947 | fi | ||
16948 | |||
16949 | |||
16950 | fi | ||
16951 | |||
16952 | |||
16953 | # PRNGD Unix domain socket | ||
16954 | |||
16955 | # Check whether --with-prngd-socket was given. | ||
16956 | if test "${with_prngd_socket+set}" = set; then | ||
16957 | withval=$with_prngd_socket; | ||
16958 | case "$withval" in | ||
16959 | yes) | ||
16960 | withval="/var/run/egd-pool" | ||
16961 | ;; | ||
16962 | no) | ||
16963 | withval="" | ||
16964 | ;; | ||
16965 | /*) | ||
16966 | ;; | ||
16967 | *) | ||
16968 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
16969 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
16970 | { (exit 1); exit 1; }; } | ||
16971 | ;; | ||
16972 | esac | ||
16973 | |||
16974 | if test ! -z "$withval" ; then | ||
16975 | if test ! -z "$PRNGD_PORT" ; then | ||
16976 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
16977 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
16978 | { (exit 1); exit 1; }; } | ||
16979 | fi | ||
16980 | if test ! -r "$withval" ; then | ||
16981 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
16982 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
16983 | fi | ||
16984 | PRNGD_SOCKET="$withval" | ||
16985 | |||
16986 | cat >>confdefs.h <<_ACEOF | ||
16987 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
16988 | _ACEOF | ||
16989 | |||
16990 | fi | ||
16991 | |||
16992 | else | ||
16993 | |||
16994 | # Check for existing socket only if we don't have a random device already | ||
16995 | if test "$USE_RAND_HELPER" = yes ; then | ||
16996 | { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
16997 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; } | ||
16998 | # Insert other locations here | ||
16999 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
17000 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
17001 | PRNGD_SOCKET="$sock" | ||
17002 | cat >>confdefs.h <<_ACEOF | ||
17003 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
17004 | _ACEOF | ||
17005 | |||
17006 | break; | ||
17007 | fi | ||
17008 | done | ||
17009 | if test ! -z "$PRNGD_SOCKET" ; then | ||
17010 | { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
17011 | echo "${ECHO_T}$PRNGD_SOCKET" >&6; } | ||
17012 | else | ||
17013 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
17014 | echo "${ECHO_T}not found" >&6; } | ||
17015 | fi | ||
17016 | fi | ||
17017 | |||
17018 | |||
17019 | fi | ||
17020 | |||
17021 | |||
17022 | # Change default command timeout for hashing entropy source | ||
17023 | entropy_timeout=200 | ||
17024 | |||
17025 | # Check whether --with-entropy-timeout was given. | ||
17026 | if test "${with_entropy_timeout+set}" = set; then | ||
17027 | withval=$with_entropy_timeout; | ||
17028 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17029 | test "x${withval}" != "xyes"; then | ||
17030 | entropy_timeout=$withval | ||
17031 | fi | ||
17032 | |||
17033 | |||
17034 | fi | ||
17035 | |||
17036 | |||
17037 | cat >>confdefs.h <<_ACEOF | ||
17038 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
17039 | _ACEOF | ||
17040 | |||
17041 | |||
17042 | SSH_PRIVSEP_USER=sshd | ||
17043 | |||
17044 | # Check whether --with-privsep-user was given. | ||
17045 | if test "${with_privsep_user+set}" = set; then | ||
17046 | withval=$with_privsep_user; | ||
17047 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17048 | test "x${withval}" != "xyes"; then | ||
17049 | SSH_PRIVSEP_USER=$withval | ||
17050 | fi | ||
17051 | |||
17052 | |||
17053 | fi | ||
17054 | |||
17055 | |||
17056 | cat >>confdefs.h <<_ACEOF | ||
17057 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
17058 | _ACEOF | ||
17059 | |||
17060 | |||
17061 | |||
17062 | # We do this little dance with the search path to insure | ||
17063 | # that programs that we select for use by installed programs | ||
17064 | # (which may be run by the super-user) come from trusted | ||
17065 | # locations before they come from the user's private area. | ||
17066 | # This should help avoid accidentally configuring some | ||
17067 | # random version of a program in someone's personal bin. | ||
17068 | |||
17069 | OPATH=$PATH | ||
17070 | PATH=/bin:/usr/bin | ||
17071 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
17072 | test -d /sbin && PATH=$PATH:/sbin | ||
17073 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
17074 | PATH=$PATH:/etc:$OPATH | ||
17075 | |||
17076 | # These programs are used by the command hashing source to gather entropy | ||
17077 | |||
17078 | # Extract the first word of "ls", so it can be a program name with args. | ||
17079 | set dummy ls; ac_word=$2 | ||
17080 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17082 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
17083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17084 | else | ||
17085 | case $PROG_LS in | ||
17086 | [\\/]* | ?:[\\/]*) | ||
17087 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
17088 | ;; | ||
17089 | *) | ||
17090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17091 | for as_dir in $PATH | ||
17092 | do | ||
17093 | IFS=$as_save_IFS | ||
17094 | test -z "$as_dir" && as_dir=. | ||
17095 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17096 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17097 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
17098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17099 | break 2 | ||
17100 | fi | ||
17101 | done | ||
17102 | done | ||
17103 | IFS=$as_save_IFS | ||
17104 | |||
17105 | ;; | ||
17106 | esac | ||
17107 | fi | ||
17108 | PROG_LS=$ac_cv_path_PROG_LS | ||
17109 | if test -n "$PROG_LS"; then | ||
17110 | { echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
17111 | echo "${ECHO_T}$PROG_LS" >&6; } | ||
17112 | else | ||
17113 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17114 | echo "${ECHO_T}no" >&6; } | ||
17115 | fi | ||
17116 | |||
17117 | |||
17118 | if test -z "$PROG_LS" ; then | ||
17119 | PROG_LS="undef" | ||
17120 | fi | ||
17121 | |||
17122 | |||
17123 | |||
17124 | # Extract the first word of "netstat", so it can be a program name with args. | ||
17125 | set dummy netstat; ac_word=$2 | ||
17126 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17128 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
17129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17130 | else | ||
17131 | case $PROG_NETSTAT in | ||
17132 | [\\/]* | ?:[\\/]*) | ||
17133 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
17134 | ;; | ||
17135 | *) | ||
17136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17137 | for as_dir in $PATH | ||
17138 | do | ||
17139 | IFS=$as_save_IFS | ||
17140 | test -z "$as_dir" && as_dir=. | ||
17141 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17143 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
17144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17145 | break 2 | ||
17146 | fi | ||
17147 | done | ||
17148 | done | ||
17149 | IFS=$as_save_IFS | ||
17150 | |||
17151 | ;; | ||
17152 | esac | ||
17153 | fi | ||
17154 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
17155 | if test -n "$PROG_NETSTAT"; then | ||
17156 | { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
17157 | echo "${ECHO_T}$PROG_NETSTAT" >&6; } | ||
17158 | else | ||
17159 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17160 | echo "${ECHO_T}no" >&6; } | ||
17161 | fi | ||
17162 | |||
17163 | |||
17164 | if test -z "$PROG_NETSTAT" ; then | ||
17165 | PROG_NETSTAT="undef" | ||
17166 | fi | ||
17167 | |||
17168 | |||
17169 | |||
17170 | # Extract the first word of "arp", so it can be a program name with args. | ||
17171 | set dummy arp; ac_word=$2 | ||
17172 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17174 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
17175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17176 | else | ||
17177 | case $PROG_ARP in | ||
17178 | [\\/]* | ?:[\\/]*) | ||
17179 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
17180 | ;; | ||
17181 | *) | ||
17182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17183 | for as_dir in $PATH | ||
17184 | do | ||
17185 | IFS=$as_save_IFS | ||
17186 | test -z "$as_dir" && as_dir=. | ||
17187 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17188 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17189 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
17190 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17191 | break 2 | ||
17192 | fi | ||
17193 | done | ||
17194 | done | ||
17195 | IFS=$as_save_IFS | ||
17196 | |||
17197 | ;; | ||
17198 | esac | ||
17199 | fi | ||
17200 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
17201 | if test -n "$PROG_ARP"; then | ||
17202 | { echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
17203 | echo "${ECHO_T}$PROG_ARP" >&6; } | ||
17204 | else | ||
17205 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17206 | echo "${ECHO_T}no" >&6; } | ||
17207 | fi | ||
17208 | |||
17209 | |||
17210 | if test -z "$PROG_ARP" ; then | ||
17211 | PROG_ARP="undef" | ||
17212 | fi | ||
17213 | |||
17214 | |||
17215 | |||
17216 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
17217 | set dummy ifconfig; ac_word=$2 | ||
17218 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17220 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
17221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17222 | else | ||
17223 | case $PROG_IFCONFIG in | ||
17224 | [\\/]* | ?:[\\/]*) | ||
17225 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
17226 | ;; | ||
17227 | *) | ||
17228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17229 | for as_dir in $PATH | ||
17230 | do | ||
17231 | IFS=$as_save_IFS | ||
17232 | test -z "$as_dir" && as_dir=. | ||
17233 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17235 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
17236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17237 | break 2 | ||
17238 | fi | ||
17239 | done | ||
17240 | done | ||
17241 | IFS=$as_save_IFS | ||
17242 | |||
17243 | ;; | ||
17244 | esac | ||
17245 | fi | ||
17246 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
17247 | if test -n "$PROG_IFCONFIG"; then | ||
17248 | { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
17249 | echo "${ECHO_T}$PROG_IFCONFIG" >&6; } | ||
17250 | else | ||
17251 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17252 | echo "${ECHO_T}no" >&6; } | ||
17253 | fi | ||
17254 | |||
17255 | |||
17256 | if test -z "$PROG_IFCONFIG" ; then | ||
17257 | PROG_IFCONFIG="undef" | ||
17258 | fi | ||
17259 | |||
17260 | |||
17261 | |||
17262 | # Extract the first word of "jstat", so it can be a program name with args. | ||
17263 | set dummy jstat; ac_word=$2 | ||
17264 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17265 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17266 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
17267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17268 | else | ||
17269 | case $PROG_JSTAT in | ||
17270 | [\\/]* | ?:[\\/]*) | ||
17271 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
17272 | ;; | ||
17273 | *) | ||
17274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17275 | for as_dir in $PATH | ||
17276 | do | ||
17277 | IFS=$as_save_IFS | ||
17278 | test -z "$as_dir" && as_dir=. | ||
17279 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17281 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
17282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17283 | break 2 | ||
17284 | fi | ||
17285 | done | ||
17286 | done | ||
17287 | IFS=$as_save_IFS | ||
17288 | |||
17289 | ;; | ||
17290 | esac | ||
17291 | fi | ||
17292 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
17293 | if test -n "$PROG_JSTAT"; then | ||
17294 | { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
17295 | echo "${ECHO_T}$PROG_JSTAT" >&6; } | ||
17296 | else | ||
17297 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17298 | echo "${ECHO_T}no" >&6; } | ||
17299 | fi | ||
17300 | |||
17301 | |||
17302 | if test -z "$PROG_JSTAT" ; then | ||
17303 | PROG_JSTAT="undef" | ||
17304 | fi | ||
17305 | |||
17306 | |||
17307 | |||
17308 | # Extract the first word of "ps", so it can be a program name with args. | ||
17309 | set dummy ps; ac_word=$2 | ||
17310 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17312 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
17313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17314 | else | ||
17315 | case $PROG_PS in | ||
17316 | [\\/]* | ?:[\\/]*) | ||
17317 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
17318 | ;; | ||
17319 | *) | ||
17320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17321 | for as_dir in $PATH | ||
17322 | do | ||
17323 | IFS=$as_save_IFS | ||
17324 | test -z "$as_dir" && as_dir=. | ||
17325 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17327 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
17328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17329 | break 2 | ||
17330 | fi | ||
17331 | done | ||
17332 | done | ||
17333 | IFS=$as_save_IFS | ||
17334 | |||
17335 | ;; | ||
17336 | esac | ||
17337 | fi | ||
17338 | PROG_PS=$ac_cv_path_PROG_PS | ||
17339 | if test -n "$PROG_PS"; then | ||
17340 | { echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
17341 | echo "${ECHO_T}$PROG_PS" >&6; } | ||
17342 | else | ||
17343 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17344 | echo "${ECHO_T}no" >&6; } | ||
17345 | fi | ||
17346 | |||
17347 | |||
17348 | if test -z "$PROG_PS" ; then | ||
17349 | PROG_PS="undef" | ||
17350 | fi | ||
17351 | |||
17352 | |||
17353 | |||
17354 | # Extract the first word of "sar", so it can be a program name with args. | ||
17355 | set dummy sar; ac_word=$2 | ||
17356 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17358 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
17359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17360 | else | ||
17361 | case $PROG_SAR in | ||
17362 | [\\/]* | ?:[\\/]*) | ||
17363 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
17364 | ;; | ||
17365 | *) | ||
17366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17367 | for as_dir in $PATH | ||
17368 | do | ||
17369 | IFS=$as_save_IFS | ||
17370 | test -z "$as_dir" && as_dir=. | ||
17371 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17373 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
17374 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17375 | break 2 | ||
17376 | fi | ||
17377 | done | ||
17378 | done | ||
17379 | IFS=$as_save_IFS | ||
17380 | |||
17381 | ;; | ||
17382 | esac | ||
17383 | fi | ||
17384 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
17385 | if test -n "$PROG_SAR"; then | ||
17386 | { echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
17387 | echo "${ECHO_T}$PROG_SAR" >&6; } | ||
17388 | else | ||
17389 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17390 | echo "${ECHO_T}no" >&6; } | ||
17391 | fi | ||
17392 | |||
17393 | |||
17394 | if test -z "$PROG_SAR" ; then | ||
17395 | PROG_SAR="undef" | ||
17396 | fi | ||
17397 | |||
17398 | |||
17399 | |||
17400 | # Extract the first word of "w", so it can be a program name with args. | ||
17401 | set dummy w; ac_word=$2 | ||
17402 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17403 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17404 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
17405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17406 | else | ||
17407 | case $PROG_W in | ||
17408 | [\\/]* | ?:[\\/]*) | ||
17409 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
17410 | ;; | ||
17411 | *) | ||
17412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17413 | for as_dir in $PATH | ||
17414 | do | ||
17415 | IFS=$as_save_IFS | ||
17416 | test -z "$as_dir" && as_dir=. | ||
17417 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17419 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
17420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17421 | break 2 | ||
17422 | fi | ||
17423 | done | ||
17424 | done | ||
17425 | IFS=$as_save_IFS | ||
17426 | |||
17427 | ;; | ||
17428 | esac | ||
17429 | fi | ||
17430 | PROG_W=$ac_cv_path_PROG_W | ||
17431 | if test -n "$PROG_W"; then | ||
17432 | { echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
17433 | echo "${ECHO_T}$PROG_W" >&6; } | ||
17434 | else | ||
17435 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17436 | echo "${ECHO_T}no" >&6; } | ||
17437 | fi | ||
17438 | |||
17439 | |||
17440 | if test -z "$PROG_W" ; then | ||
17441 | PROG_W="undef" | ||
17442 | fi | ||
17443 | |||
17444 | |||
17445 | |||
17446 | # Extract the first word of "who", so it can be a program name with args. | ||
17447 | set dummy who; ac_word=$2 | ||
17448 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17450 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
17451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17452 | else | ||
17453 | case $PROG_WHO in | ||
17454 | [\\/]* | ?:[\\/]*) | ||
17455 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
17456 | ;; | ||
17457 | *) | ||
17458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17459 | for as_dir in $PATH | ||
17460 | do | ||
17461 | IFS=$as_save_IFS | ||
17462 | test -z "$as_dir" && as_dir=. | ||
17463 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17464 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17465 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
17466 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17467 | break 2 | ||
17468 | fi | ||
17469 | done | ||
17470 | done | ||
17471 | IFS=$as_save_IFS | ||
17472 | |||
17473 | ;; | ||
17474 | esac | ||
17475 | fi | ||
17476 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
17477 | if test -n "$PROG_WHO"; then | ||
17478 | { echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
17479 | echo "${ECHO_T}$PROG_WHO" >&6; } | ||
17480 | else | ||
17481 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17482 | echo "${ECHO_T}no" >&6; } | ||
17483 | fi | ||
17484 | |||
17485 | |||
17486 | if test -z "$PROG_WHO" ; then | ||
17487 | PROG_WHO="undef" | ||
17488 | fi | ||
17489 | |||
17490 | |||
17491 | |||
17492 | # Extract the first word of "last", so it can be a program name with args. | ||
17493 | set dummy last; ac_word=$2 | ||
17494 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17496 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
17497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17498 | else | ||
17499 | case $PROG_LAST in | ||
17500 | [\\/]* | ?:[\\/]*) | ||
17501 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
17502 | ;; | ||
17503 | *) | ||
17504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17505 | for as_dir in $PATH | ||
17506 | do | ||
17507 | IFS=$as_save_IFS | ||
17508 | test -z "$as_dir" && as_dir=. | ||
17509 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17510 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17511 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
17512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17513 | break 2 | ||
17514 | fi | ||
17515 | done | ||
17516 | done | ||
17517 | IFS=$as_save_IFS | ||
17518 | |||
17519 | ;; | ||
17520 | esac | ||
17521 | fi | ||
17522 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
17523 | if test -n "$PROG_LAST"; then | ||
17524 | { echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
17525 | echo "${ECHO_T}$PROG_LAST" >&6; } | ||
17526 | else | ||
17527 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17528 | echo "${ECHO_T}no" >&6; } | ||
17529 | fi | ||
17530 | |||
17531 | |||
17532 | if test -z "$PROG_LAST" ; then | ||
17533 | PROG_LAST="undef" | ||
17534 | fi | ||
17535 | |||
17536 | |||
17537 | |||
17538 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
17539 | set dummy lastlog; ac_word=$2 | ||
17540 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17542 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
17543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17544 | else | ||
17545 | case $PROG_LASTLOG in | ||
17546 | [\\/]* | ?:[\\/]*) | ||
17547 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
17548 | ;; | ||
17549 | *) | ||
17550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17551 | for as_dir in $PATH | ||
17552 | do | ||
17553 | IFS=$as_save_IFS | ||
17554 | test -z "$as_dir" && as_dir=. | ||
17555 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17557 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
17558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17559 | break 2 | ||
17560 | fi | ||
17561 | done | ||
17562 | done | ||
17563 | IFS=$as_save_IFS | ||
17564 | |||
17565 | ;; | ||
17566 | esac | ||
17567 | fi | ||
17568 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
17569 | if test -n "$PROG_LASTLOG"; then | ||
17570 | { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
17571 | echo "${ECHO_T}$PROG_LASTLOG" >&6; } | ||
17572 | else | ||
17573 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17574 | echo "${ECHO_T}no" >&6; } | ||
17575 | fi | ||
17576 | |||
17577 | |||
17578 | if test -z "$PROG_LASTLOG" ; then | ||
17579 | PROG_LASTLOG="undef" | ||
17580 | fi | ||
17581 | |||
17582 | |||
17583 | |||
17584 | # Extract the first word of "df", so it can be a program name with args. | ||
17585 | set dummy df; ac_word=$2 | ||
17586 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17588 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
17589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17590 | else | ||
17591 | case $PROG_DF in | ||
17592 | [\\/]* | ?:[\\/]*) | ||
17593 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
17594 | ;; | ||
17595 | *) | ||
17596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17597 | for as_dir in $PATH | ||
17598 | do | ||
17599 | IFS=$as_save_IFS | ||
17600 | test -z "$as_dir" && as_dir=. | ||
17601 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17603 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
17604 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17605 | break 2 | ||
17606 | fi | ||
17607 | done | ||
17608 | done | ||
17609 | IFS=$as_save_IFS | ||
17610 | |||
17611 | ;; | ||
17612 | esac | ||
17613 | fi | ||
17614 | PROG_DF=$ac_cv_path_PROG_DF | ||
17615 | if test -n "$PROG_DF"; then | ||
17616 | { echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
17617 | echo "${ECHO_T}$PROG_DF" >&6; } | ||
17618 | else | ||
17619 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17620 | echo "${ECHO_T}no" >&6; } | ||
17621 | fi | ||
17622 | |||
17623 | |||
17624 | if test -z "$PROG_DF" ; then | ||
17625 | PROG_DF="undef" | ||
17626 | fi | ||
17627 | |||
17628 | |||
17629 | |||
17630 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
17631 | set dummy vmstat; ac_word=$2 | ||
17632 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17634 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
17635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17636 | else | ||
17637 | case $PROG_VMSTAT in | ||
17638 | [\\/]* | ?:[\\/]*) | ||
17639 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
17640 | ;; | ||
17641 | *) | ||
17642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17643 | for as_dir in $PATH | ||
17644 | do | ||
17645 | IFS=$as_save_IFS | ||
17646 | test -z "$as_dir" && as_dir=. | ||
17647 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17649 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
17650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17651 | break 2 | ||
17652 | fi | ||
17653 | done | ||
17654 | done | ||
17655 | IFS=$as_save_IFS | ||
17656 | |||
17657 | ;; | ||
17658 | esac | ||
17659 | fi | ||
17660 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
17661 | if test -n "$PROG_VMSTAT"; then | ||
17662 | { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
17663 | echo "${ECHO_T}$PROG_VMSTAT" >&6; } | ||
17664 | else | ||
17665 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17666 | echo "${ECHO_T}no" >&6; } | ||
17667 | fi | ||
17668 | |||
17669 | |||
17670 | if test -z "$PROG_VMSTAT" ; then | ||
17671 | PROG_VMSTAT="undef" | ||
17672 | fi | ||
17673 | |||
17674 | |||
17675 | |||
17676 | # Extract the first word of "uptime", so it can be a program name with args. | ||
17677 | set dummy uptime; ac_word=$2 | ||
17678 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17680 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
17681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17682 | else | ||
17683 | case $PROG_UPTIME in | ||
17684 | [\\/]* | ?:[\\/]*) | ||
17685 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
17686 | ;; | ||
17687 | *) | ||
17688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17689 | for as_dir in $PATH | ||
17690 | do | ||
17691 | IFS=$as_save_IFS | ||
17692 | test -z "$as_dir" && as_dir=. | ||
17693 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17694 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17695 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
17696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17697 | break 2 | ||
17698 | fi | ||
17699 | done | ||
17700 | done | ||
17701 | IFS=$as_save_IFS | ||
17702 | |||
17703 | ;; | ||
17704 | esac | ||
17705 | fi | ||
17706 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
17707 | if test -n "$PROG_UPTIME"; then | ||
17708 | { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
17709 | echo "${ECHO_T}$PROG_UPTIME" >&6; } | ||
17710 | else | ||
17711 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17712 | echo "${ECHO_T}no" >&6; } | ||
17713 | fi | ||
17714 | |||
17715 | |||
17716 | if test -z "$PROG_UPTIME" ; then | ||
17717 | PROG_UPTIME="undef" | ||
17718 | fi | ||
17719 | |||
17720 | |||
17721 | |||
17722 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
17723 | set dummy ipcs; ac_word=$2 | ||
17724 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17726 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
17727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17728 | else | ||
17729 | case $PROG_IPCS in | ||
17730 | [\\/]* | ?:[\\/]*) | ||
17731 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
17732 | ;; | ||
17733 | *) | ||
17734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17735 | for as_dir in $PATH | ||
17736 | do | ||
17737 | IFS=$as_save_IFS | ||
17738 | test -z "$as_dir" && as_dir=. | ||
17739 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17741 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
17742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17743 | break 2 | ||
17744 | fi | ||
17745 | done | ||
17746 | done | ||
17747 | IFS=$as_save_IFS | ||
17748 | |||
17749 | ;; | ||
17750 | esac | ||
17751 | fi | ||
17752 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
17753 | if test -n "$PROG_IPCS"; then | ||
17754 | { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
17755 | echo "${ECHO_T}$PROG_IPCS" >&6; } | ||
17756 | else | ||
17757 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17758 | echo "${ECHO_T}no" >&6; } | ||
17759 | fi | ||
17760 | |||
17761 | |||
17762 | if test -z "$PROG_IPCS" ; then | ||
17763 | PROG_IPCS="undef" | ||
17764 | fi | ||
17765 | |||
17766 | |||
17767 | |||
17768 | # Extract the first word of "tail", so it can be a program name with args. | ||
17769 | set dummy tail; ac_word=$2 | ||
17770 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17772 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
17773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17774 | else | ||
17775 | case $PROG_TAIL in | ||
17776 | [\\/]* | ?:[\\/]*) | ||
17777 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
17778 | ;; | ||
17779 | *) | ||
17780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17781 | for as_dir in $PATH | ||
17782 | do | ||
17783 | IFS=$as_save_IFS | ||
17784 | test -z "$as_dir" && as_dir=. | ||
17785 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17787 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
17788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17789 | break 2 | ||
17790 | fi | ||
17791 | done | ||
17792 | done | ||
17793 | IFS=$as_save_IFS | ||
17794 | |||
17795 | ;; | ||
17796 | esac | ||
17797 | fi | ||
17798 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
17799 | if test -n "$PROG_TAIL"; then | ||
17800 | { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
17801 | echo "${ECHO_T}$PROG_TAIL" >&6; } | ||
17802 | else | ||
17803 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17804 | echo "${ECHO_T}no" >&6; } | ||
17805 | fi | ||
17806 | |||
17807 | |||
17808 | if test -z "$PROG_TAIL" ; then | ||
17809 | PROG_TAIL="undef" | ||
17810 | fi | ||
17811 | |||
17812 | |||
17813 | # restore PATH | ||
17814 | PATH=$OPATH | ||
17815 | |||
17816 | # Where does ssh-rand-helper get its randomness from? | ||
17817 | INSTALL_SSH_PRNG_CMDS="" | ||
17818 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
17819 | if test ! -z "$PRNGD_PORT" ; then | ||
17820 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
17821 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
17822 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
17823 | else | ||
17824 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
17825 | RAND_HELPER_CMDHASH=yes | ||
17826 | INSTALL_SSH_PRNG_CMDS="yes" | ||
17827 | fi | ||
17828 | fi | ||
17829 | |||
17830 | |||
17831 | |||
17832 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
17833 | if test ! -z "$SONY" ; then | ||
17834 | LIBS="$LIBS -liberty"; | ||
17835 | fi | ||
17836 | |||
17837 | # Check for long long datatypes | ||
17838 | { echo "$as_me:$LINENO: checking for long long" >&5 | ||
17839 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | ||
17840 | if test "${ac_cv_type_long_long+set}" = set; then | ||
17841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17842 | else | ||
17843 | cat >conftest.$ac_ext <<_ACEOF | ||
17844 | /* confdefs.h. */ | ||
17845 | _ACEOF | ||
17846 | cat confdefs.h >>conftest.$ac_ext | ||
17847 | cat >>conftest.$ac_ext <<_ACEOF | ||
17848 | /* end confdefs.h. */ | ||
17849 | $ac_includes_default | ||
17850 | typedef long long ac__type_new_; | ||
17851 | int | ||
17852 | main () | ||
17853 | { | ||
17854 | if ((ac__type_new_ *) 0) | ||
17855 | return 0; | ||
17856 | if (sizeof (ac__type_new_)) | ||
17857 | return 0; | ||
17858 | ; | ||
17859 | return 0; | ||
17860 | } | ||
17861 | _ACEOF | ||
17862 | rm -f conftest.$ac_objext | ||
17863 | if { (ac_try="$ac_compile" | ||
17864 | case "(($ac_try" in | ||
17865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17866 | *) ac_try_echo=$ac_try;; | ||
17867 | esac | ||
17868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17869 | (eval "$ac_compile") 2>conftest.er1 | ||
17870 | ac_status=$? | ||
17871 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17872 | rm -f conftest.er1 | ||
17873 | cat conftest.err >&5 | ||
17874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17875 | (exit $ac_status); } && { | ||
17876 | test -z "$ac_c_werror_flag" || | ||
17877 | test ! -s conftest.err | ||
17878 | } && test -s conftest.$ac_objext; then | ||
17879 | ac_cv_type_long_long=yes | ||
17880 | else | ||
17881 | echo "$as_me: failed program was:" >&5 | ||
17882 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17883 | |||
17884 | ac_cv_type_long_long=no | ||
17885 | fi | ||
17886 | |||
17887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17888 | fi | ||
17889 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | ||
17890 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | ||
17891 | if test $ac_cv_type_long_long = yes; then | ||
17892 | |||
17893 | cat >>confdefs.h <<_ACEOF | ||
17894 | #define HAVE_LONG_LONG 1 | ||
17895 | _ACEOF | ||
17896 | |||
17897 | |||
17898 | fi | ||
17899 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 | ||
17900 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } | ||
17901 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | ||
17902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17903 | else | ||
17904 | cat >conftest.$ac_ext <<_ACEOF | ||
17905 | /* confdefs.h. */ | ||
17906 | _ACEOF | ||
17907 | cat confdefs.h >>conftest.$ac_ext | ||
17908 | cat >>conftest.$ac_ext <<_ACEOF | ||
17909 | /* end confdefs.h. */ | ||
17910 | $ac_includes_default | ||
17911 | typedef unsigned long long ac__type_new_; | ||
17912 | int | ||
17913 | main () | ||
17914 | { | ||
17915 | if ((ac__type_new_ *) 0) | ||
17916 | return 0; | ||
17917 | if (sizeof (ac__type_new_)) | ||
17918 | return 0; | ||
17919 | ; | ||
17920 | return 0; | ||
17921 | } | ||
17922 | _ACEOF | ||
17923 | rm -f conftest.$ac_objext | ||
17924 | if { (ac_try="$ac_compile" | ||
17925 | case "(($ac_try" in | ||
17926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17927 | *) ac_try_echo=$ac_try;; | ||
17928 | esac | ||
17929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17930 | (eval "$ac_compile") 2>conftest.er1 | ||
17931 | ac_status=$? | ||
17932 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17933 | rm -f conftest.er1 | ||
17934 | cat conftest.err >&5 | ||
17935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17936 | (exit $ac_status); } && { | ||
17937 | test -z "$ac_c_werror_flag" || | ||
17938 | test ! -s conftest.err | ||
17939 | } && test -s conftest.$ac_objext; then | ||
17940 | ac_cv_type_unsigned_long_long=yes | ||
17941 | else | ||
17942 | echo "$as_me: failed program was:" >&5 | ||
17943 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17944 | |||
17945 | ac_cv_type_unsigned_long_long=no | ||
17946 | fi | ||
17947 | |||
17948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17949 | fi | ||
17950 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | ||
17951 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } | ||
17952 | if test $ac_cv_type_unsigned_long_long = yes; then | ||
17953 | |||
17954 | cat >>confdefs.h <<_ACEOF | ||
17955 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
17956 | _ACEOF | ||
17957 | |||
17958 | |||
17959 | fi | ||
17960 | { echo "$as_me:$LINENO: checking for long double" >&5 | ||
17961 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } | ||
17962 | if test "${ac_cv_type_long_double+set}" = set; then | ||
17963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17964 | else | ||
17965 | cat >conftest.$ac_ext <<_ACEOF | ||
17966 | /* confdefs.h. */ | ||
17967 | _ACEOF | ||
17968 | cat confdefs.h >>conftest.$ac_ext | ||
17969 | cat >>conftest.$ac_ext <<_ACEOF | ||
17970 | /* end confdefs.h. */ | ||
17971 | $ac_includes_default | ||
17972 | typedef long double ac__type_new_; | ||
17973 | int | ||
17974 | main () | ||
17975 | { | ||
17976 | if ((ac__type_new_ *) 0) | ||
17977 | return 0; | ||
17978 | if (sizeof (ac__type_new_)) | ||
17979 | return 0; | ||
17980 | ; | ||
17981 | return 0; | ||
17982 | } | ||
17983 | _ACEOF | ||
17984 | rm -f conftest.$ac_objext | ||
17985 | if { (ac_try="$ac_compile" | ||
17986 | case "(($ac_try" in | ||
17987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17988 | *) ac_try_echo=$ac_try;; | ||
17989 | esac | ||
17990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17991 | (eval "$ac_compile") 2>conftest.er1 | ||
17992 | ac_status=$? | ||
17993 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17994 | rm -f conftest.er1 | ||
17995 | cat conftest.err >&5 | ||
17996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17997 | (exit $ac_status); } && { | ||
17998 | test -z "$ac_c_werror_flag" || | ||
17999 | test ! -s conftest.err | ||
18000 | } && test -s conftest.$ac_objext; then | ||
18001 | ac_cv_type_long_double=yes | ||
18002 | else | ||
18003 | echo "$as_me: failed program was:" >&5 | ||
18004 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18005 | |||
18006 | ac_cv_type_long_double=no | ||
18007 | fi | ||
18008 | |||
18009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18010 | fi | ||
18011 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | ||
18012 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } | ||
18013 | if test $ac_cv_type_long_double = yes; then | ||
18014 | |||
18015 | cat >>confdefs.h <<_ACEOF | ||
18016 | #define HAVE_LONG_DOUBLE 1 | ||
18017 | _ACEOF | ||
18018 | |||
18019 | |||
18020 | fi | ||
18021 | |||
18022 | |||
18023 | # Check datatype sizes | ||
18024 | { echo "$as_me:$LINENO: checking for char" >&5 | ||
18025 | echo $ECHO_N "checking for char... $ECHO_C" >&6; } | ||
18026 | if test "${ac_cv_type_char+set}" = set; then | ||
18027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18028 | else | ||
18029 | cat >conftest.$ac_ext <<_ACEOF | ||
18030 | /* confdefs.h. */ | ||
18031 | _ACEOF | ||
18032 | cat confdefs.h >>conftest.$ac_ext | ||
18033 | cat >>conftest.$ac_ext <<_ACEOF | ||
18034 | /* end confdefs.h. */ | ||
18035 | $ac_includes_default | ||
18036 | typedef char ac__type_new_; | ||
18037 | int | ||
18038 | main () | ||
18039 | { | ||
18040 | if ((ac__type_new_ *) 0) | ||
18041 | return 0; | ||
18042 | if (sizeof (ac__type_new_)) | ||
18043 | return 0; | ||
18044 | ; | ||
18045 | return 0; | ||
18046 | } | ||
18047 | _ACEOF | ||
18048 | rm -f conftest.$ac_objext | ||
18049 | if { (ac_try="$ac_compile" | ||
18050 | case "(($ac_try" in | ||
18051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18052 | *) ac_try_echo=$ac_try;; | ||
18053 | esac | ||
18054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18055 | (eval "$ac_compile") 2>conftest.er1 | ||
18056 | ac_status=$? | ||
18057 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18058 | rm -f conftest.er1 | ||
18059 | cat conftest.err >&5 | ||
18060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18061 | (exit $ac_status); } && { | ||
18062 | test -z "$ac_c_werror_flag" || | ||
18063 | test ! -s conftest.err | ||
18064 | } && test -s conftest.$ac_objext; then | ||
18065 | ac_cv_type_char=yes | ||
18066 | else | ||
18067 | echo "$as_me: failed program was:" >&5 | ||
18068 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18069 | |||
18070 | ac_cv_type_char=no | ||
18071 | fi | ||
18072 | |||
18073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18074 | fi | ||
18075 | { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
18076 | echo "${ECHO_T}$ac_cv_type_char" >&6; } | ||
18077 | |||
18078 | # The cast to long int works around a bug in the HP C Compiler | ||
18079 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
18080 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
18081 | # This bug is HP SR number 8606223364. | ||
18082 | { echo "$as_me:$LINENO: checking size of char" >&5 | ||
18083 | echo $ECHO_N "checking size of char... $ECHO_C" >&6; } | ||
18084 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
18085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18086 | else | ||
18087 | if test "$cross_compiling" = yes; then | ||
18088 | # Depending upon the size, compute the lo and hi bounds. | ||
18089 | cat >conftest.$ac_ext <<_ACEOF | ||
18090 | /* confdefs.h. */ | ||
18091 | _ACEOF | ||
18092 | cat confdefs.h >>conftest.$ac_ext | ||
18093 | cat >>conftest.$ac_ext <<_ACEOF | ||
18094 | /* end confdefs.h. */ | ||
18095 | $ac_includes_default | ||
18096 | typedef char ac__type_sizeof_; | ||
18097 | int | ||
18098 | main () | ||
18099 | { | ||
18100 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
18101 | test_array [0] = 0 | ||
18102 | |||
18103 | ; | ||
18104 | return 0; | ||
18105 | } | ||
18106 | _ACEOF | ||
18107 | rm -f conftest.$ac_objext | ||
18108 | if { (ac_try="$ac_compile" | ||
18109 | case "(($ac_try" in | ||
18110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18111 | *) ac_try_echo=$ac_try;; | ||
18112 | esac | ||
18113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18114 | (eval "$ac_compile") 2>conftest.er1 | ||
18115 | ac_status=$? | ||
18116 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18117 | rm -f conftest.er1 | ||
18118 | cat conftest.err >&5 | ||
18119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18120 | (exit $ac_status); } && { | ||
18121 | test -z "$ac_c_werror_flag" || | ||
18122 | test ! -s conftest.err | ||
18123 | } && test -s conftest.$ac_objext; then | ||
18124 | ac_lo=0 ac_mid=0 | ||
18125 | while :; do | ||
18126 | cat >conftest.$ac_ext <<_ACEOF | ||
18127 | /* confdefs.h. */ | ||
18128 | _ACEOF | ||
18129 | cat confdefs.h >>conftest.$ac_ext | ||
18130 | cat >>conftest.$ac_ext <<_ACEOF | ||
18131 | /* end confdefs.h. */ | ||
18132 | $ac_includes_default | ||
18133 | typedef char ac__type_sizeof_; | ||
18134 | int | ||
18135 | main () | ||
18136 | { | ||
18137 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
18138 | test_array [0] = 0 | ||
18139 | |||
18140 | ; | ||
18141 | return 0; | ||
18142 | } | ||
18143 | _ACEOF | ||
18144 | rm -f conftest.$ac_objext | ||
18145 | if { (ac_try="$ac_compile" | ||
18146 | case "(($ac_try" in | ||
18147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18148 | *) ac_try_echo=$ac_try;; | ||
18149 | esac | ||
18150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18151 | (eval "$ac_compile") 2>conftest.er1 | ||
18152 | ac_status=$? | ||
18153 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18154 | rm -f conftest.er1 | ||
18155 | cat conftest.err >&5 | ||
18156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18157 | (exit $ac_status); } && { | ||
18158 | test -z "$ac_c_werror_flag" || | ||
18159 | test ! -s conftest.err | ||
18160 | } && test -s conftest.$ac_objext; then | ||
18161 | ac_hi=$ac_mid; break | ||
18162 | else | ||
18163 | echo "$as_me: failed program was:" >&5 | ||
18164 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18165 | |||
18166 | ac_lo=`expr $ac_mid + 1` | ||
18167 | if test $ac_lo -le $ac_mid; then | ||
18168 | ac_lo= ac_hi= | ||
18169 | break | ||
18170 | fi | ||
18171 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
18172 | fi | ||
18173 | |||
18174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18175 | done | ||
18176 | else | ||
18177 | echo "$as_me: failed program was:" >&5 | ||
18178 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18179 | |||
18180 | cat >conftest.$ac_ext <<_ACEOF | ||
18181 | /* confdefs.h. */ | ||
18182 | _ACEOF | ||
18183 | cat confdefs.h >>conftest.$ac_ext | ||
18184 | cat >>conftest.$ac_ext <<_ACEOF | ||
18185 | /* end confdefs.h. */ | ||
18186 | $ac_includes_default | ||
18187 | typedef char ac__type_sizeof_; | ||
18188 | int | ||
18189 | main () | ||
18190 | { | ||
18191 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
18192 | test_array [0] = 0 | ||
18193 | |||
18194 | ; | ||
18195 | return 0; | ||
18196 | } | ||
18197 | _ACEOF | ||
18198 | rm -f conftest.$ac_objext | ||
18199 | if { (ac_try="$ac_compile" | ||
18200 | case "(($ac_try" in | ||
18201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18202 | *) ac_try_echo=$ac_try;; | ||
18203 | esac | ||
18204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18205 | (eval "$ac_compile") 2>conftest.er1 | ||
18206 | ac_status=$? | ||
18207 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18208 | rm -f conftest.er1 | ||
18209 | cat conftest.err >&5 | ||
18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18211 | (exit $ac_status); } && { | ||
18212 | test -z "$ac_c_werror_flag" || | ||
18213 | test ! -s conftest.err | ||
18214 | } && test -s conftest.$ac_objext; then | ||
18215 | ac_hi=-1 ac_mid=-1 | ||
18216 | while :; do | ||
18217 | cat >conftest.$ac_ext <<_ACEOF | ||
18218 | /* confdefs.h. */ | ||
18219 | _ACEOF | ||
18220 | cat confdefs.h >>conftest.$ac_ext | ||
18221 | cat >>conftest.$ac_ext <<_ACEOF | ||
18222 | /* end confdefs.h. */ | ||
18223 | $ac_includes_default | ||
18224 | typedef char ac__type_sizeof_; | ||
18225 | int | ||
18226 | main () | ||
18227 | { | ||
18228 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
18229 | test_array [0] = 0 | ||
18230 | |||
18231 | ; | ||
18232 | return 0; | ||
18233 | } | ||
18234 | _ACEOF | ||
18235 | rm -f conftest.$ac_objext | ||
18236 | if { (ac_try="$ac_compile" | ||
18237 | case "(($ac_try" in | ||
18238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18239 | *) ac_try_echo=$ac_try;; | ||
18240 | esac | ||
18241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18242 | (eval "$ac_compile") 2>conftest.er1 | ||
18243 | ac_status=$? | ||
18244 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18245 | rm -f conftest.er1 | ||
18246 | cat conftest.err >&5 | ||
18247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18248 | (exit $ac_status); } && { | ||
18249 | test -z "$ac_c_werror_flag" || | ||
18250 | test ! -s conftest.err | ||
18251 | } && test -s conftest.$ac_objext; then | ||
18252 | ac_lo=$ac_mid; break | ||
18253 | else | ||
18254 | echo "$as_me: failed program was:" >&5 | ||
18255 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18256 | |||
18257 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
18258 | if test $ac_mid -le $ac_hi; then | ||
18259 | ac_lo= ac_hi= | ||
18260 | break | ||
18261 | fi | ||
18262 | ac_mid=`expr 2 '*' $ac_mid` | ||
18263 | fi | ||
18264 | |||
18265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18266 | done | ||
18267 | else | ||
18268 | echo "$as_me: failed program was:" >&5 | ||
18269 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18270 | |||
18271 | ac_lo= ac_hi= | ||
18272 | fi | ||
18273 | |||
18274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18275 | fi | ||
18276 | |||
18277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18278 | # Binary search between lo and hi bounds. | ||
18279 | while test "x$ac_lo" != "x$ac_hi"; do | ||
18280 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
18281 | cat >conftest.$ac_ext <<_ACEOF | ||
18282 | /* confdefs.h. */ | ||
18283 | _ACEOF | ||
18284 | cat confdefs.h >>conftest.$ac_ext | ||
18285 | cat >>conftest.$ac_ext <<_ACEOF | ||
18286 | /* end confdefs.h. */ | ||
18287 | $ac_includes_default | ||
18288 | typedef char ac__type_sizeof_; | ||
18289 | int | ||
18290 | main () | ||
18291 | { | ||
18292 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
18293 | test_array [0] = 0 | ||
18294 | |||
18295 | ; | ||
18296 | return 0; | ||
18297 | } | ||
18298 | _ACEOF | ||
18299 | rm -f conftest.$ac_objext | ||
18300 | if { (ac_try="$ac_compile" | ||
18301 | case "(($ac_try" in | ||
18302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18303 | *) ac_try_echo=$ac_try;; | ||
18304 | esac | ||
18305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18306 | (eval "$ac_compile") 2>conftest.er1 | ||
18307 | ac_status=$? | ||
18308 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18309 | rm -f conftest.er1 | ||
18310 | cat conftest.err >&5 | ||
18311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18312 | (exit $ac_status); } && { | ||
18313 | test -z "$ac_c_werror_flag" || | ||
18314 | test ! -s conftest.err | ||
18315 | } && test -s conftest.$ac_objext; then | ||
18316 | ac_hi=$ac_mid | ||
18317 | else | ||
18318 | echo "$as_me: failed program was:" >&5 | ||
18319 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18320 | |||
18321 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
18322 | fi | ||
18323 | |||
18324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18325 | done | ||
18326 | case $ac_lo in | ||
18327 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
18328 | '') if test "$ac_cv_type_char" = yes; then | ||
18329 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
18330 | See \`config.log' for more details." >&5 | ||
18331 | echo "$as_me: error: cannot compute sizeof (char) | ||
18332 | See \`config.log' for more details." >&2;} | ||
18333 | { (exit 77); exit 77; }; } | ||
18334 | else | ||
18335 | ac_cv_sizeof_char=0 | ||
18336 | fi ;; | ||
18337 | esac | ||
18338 | else | ||
18339 | cat >conftest.$ac_ext <<_ACEOF | ||
18340 | /* confdefs.h. */ | ||
18341 | _ACEOF | ||
18342 | cat confdefs.h >>conftest.$ac_ext | ||
18343 | cat >>conftest.$ac_ext <<_ACEOF | ||
18344 | /* end confdefs.h. */ | ||
18345 | $ac_includes_default | ||
18346 | typedef char ac__type_sizeof_; | ||
18347 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
18348 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
18349 | #include <stdio.h> | ||
18350 | #include <stdlib.h> | ||
18351 | int | ||
18352 | main () | ||
18353 | { | ||
18354 | |||
18355 | FILE *f = fopen ("conftest.val", "w"); | ||
18356 | if (! f) | ||
18357 | return 1; | ||
18358 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
18359 | { | ||
18360 | long int i = longval (); | ||
18361 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
18362 | return 1; | ||
18363 | fprintf (f, "%ld\n", i); | ||
18364 | } | ||
18365 | else | ||
18366 | { | ||
18367 | unsigned long int i = ulongval (); | ||
18368 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
18369 | return 1; | ||
18370 | fprintf (f, "%lu\n", i); | ||
18371 | } | ||
18372 | return ferror (f) || fclose (f) != 0; | ||
18373 | |||
18374 | ; | ||
18375 | return 0; | ||
18376 | } | ||
18377 | _ACEOF | ||
18378 | rm -f conftest$ac_exeext | ||
18379 | if { (ac_try="$ac_link" | ||
18380 | case "(($ac_try" in | ||
18381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18382 | *) ac_try_echo=$ac_try;; | ||
18383 | esac | ||
18384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18385 | (eval "$ac_link") 2>&5 | ||
18386 | ac_status=$? | ||
18387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18389 | { (case "(($ac_try" in | ||
18390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18391 | *) ac_try_echo=$ac_try;; | ||
18392 | esac | ||
18393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18394 | (eval "$ac_try") 2>&5 | ||
18395 | ac_status=$? | ||
18396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18397 | (exit $ac_status); }; }; then | ||
18398 | ac_cv_sizeof_char=`cat conftest.val` | ||
18399 | else | ||
18400 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18401 | echo "$as_me: failed program was:" >&5 | ||
18402 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18403 | |||
18404 | ( exit $ac_status ) | ||
18405 | if test "$ac_cv_type_char" = yes; then | ||
18406 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
18407 | See \`config.log' for more details." >&5 | ||
18408 | echo "$as_me: error: cannot compute sizeof (char) | ||
18409 | See \`config.log' for more details." >&2;} | ||
18410 | { (exit 77); exit 77; }; } | ||
18411 | else | ||
18412 | ac_cv_sizeof_char=0 | ||
18413 | fi | ||
18414 | fi | ||
18415 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18416 | fi | ||
18417 | rm -f conftest.val | ||
18418 | fi | ||
18419 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
18420 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } | ||
18421 | |||
18422 | |||
18423 | |||
18424 | cat >>confdefs.h <<_ACEOF | ||
18425 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
18426 | _ACEOF | ||
18427 | |||
18428 | |||
18429 | { echo "$as_me:$LINENO: checking for short int" >&5 | ||
18430 | echo $ECHO_N "checking for short int... $ECHO_C" >&6; } | ||
18431 | if test "${ac_cv_type_short_int+set}" = set; then | ||
18432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18433 | else | ||
18434 | cat >conftest.$ac_ext <<_ACEOF | ||
18435 | /* confdefs.h. */ | ||
18436 | _ACEOF | ||
18437 | cat confdefs.h >>conftest.$ac_ext | ||
18438 | cat >>conftest.$ac_ext <<_ACEOF | ||
18439 | /* end confdefs.h. */ | ||
18440 | $ac_includes_default | ||
18441 | typedef short int ac__type_new_; | ||
18442 | int | ||
18443 | main () | ||
18444 | { | ||
18445 | if ((ac__type_new_ *) 0) | ||
18446 | return 0; | ||
18447 | if (sizeof (ac__type_new_)) | ||
18448 | return 0; | ||
18449 | ; | ||
18450 | return 0; | ||
18451 | } | ||
18452 | _ACEOF | ||
18453 | rm -f conftest.$ac_objext | ||
18454 | if { (ac_try="$ac_compile" | ||
18455 | case "(($ac_try" in | ||
18456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18457 | *) ac_try_echo=$ac_try;; | ||
18458 | esac | ||
18459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18460 | (eval "$ac_compile") 2>conftest.er1 | ||
18461 | ac_status=$? | ||
18462 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18463 | rm -f conftest.er1 | ||
18464 | cat conftest.err >&5 | ||
18465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18466 | (exit $ac_status); } && { | ||
18467 | test -z "$ac_c_werror_flag" || | ||
18468 | test ! -s conftest.err | ||
18469 | } && test -s conftest.$ac_objext; then | ||
18470 | ac_cv_type_short_int=yes | ||
18471 | else | ||
18472 | echo "$as_me: failed program was:" >&5 | ||
18473 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18474 | |||
18475 | ac_cv_type_short_int=no | ||
18476 | fi | ||
18477 | |||
18478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18479 | fi | ||
18480 | { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
18481 | echo "${ECHO_T}$ac_cv_type_short_int" >&6; } | ||
18482 | |||
18483 | # The cast to long int works around a bug in the HP C Compiler | ||
18484 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
18485 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
18486 | # This bug is HP SR number 8606223364. | ||
18487 | { echo "$as_me:$LINENO: checking size of short int" >&5 | ||
18488 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6; } | ||
18489 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
18490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18491 | else | ||
18492 | if test "$cross_compiling" = yes; then | ||
18493 | # Depending upon the size, compute the lo and hi bounds. | ||
18494 | cat >conftest.$ac_ext <<_ACEOF | ||
18495 | /* confdefs.h. */ | ||
18496 | _ACEOF | ||
18497 | cat confdefs.h >>conftest.$ac_ext | ||
18498 | cat >>conftest.$ac_ext <<_ACEOF | ||
18499 | /* end confdefs.h. */ | ||
18500 | $ac_includes_default | ||
18501 | typedef short int ac__type_sizeof_; | ||
18502 | int | ||
18503 | main () | ||
18504 | { | ||
18505 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
18506 | test_array [0] = 0 | ||
18507 | |||
18508 | ; | ||
18509 | return 0; | ||
18510 | } | ||
18511 | _ACEOF | ||
18512 | rm -f conftest.$ac_objext | ||
18513 | if { (ac_try="$ac_compile" | ||
18514 | case "(($ac_try" in | ||
18515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18516 | *) ac_try_echo=$ac_try;; | ||
18517 | esac | ||
18518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18519 | (eval "$ac_compile") 2>conftest.er1 | ||
18520 | ac_status=$? | ||
18521 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18522 | rm -f conftest.er1 | ||
18523 | cat conftest.err >&5 | ||
18524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18525 | (exit $ac_status); } && { | ||
18526 | test -z "$ac_c_werror_flag" || | ||
18527 | test ! -s conftest.err | ||
18528 | } && test -s conftest.$ac_objext; then | ||
18529 | ac_lo=0 ac_mid=0 | ||
18530 | while :; do | ||
18531 | cat >conftest.$ac_ext <<_ACEOF | ||
18532 | /* confdefs.h. */ | ||
18533 | _ACEOF | ||
18534 | cat confdefs.h >>conftest.$ac_ext | ||
18535 | cat >>conftest.$ac_ext <<_ACEOF | ||
18536 | /* end confdefs.h. */ | ||
18537 | $ac_includes_default | ||
18538 | typedef short int ac__type_sizeof_; | ||
18539 | int | ||
18540 | main () | ||
18541 | { | ||
18542 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
18543 | test_array [0] = 0 | ||
18544 | |||
18545 | ; | ||
18546 | return 0; | ||
18547 | } | ||
18548 | _ACEOF | ||
18549 | rm -f conftest.$ac_objext | ||
18550 | if { (ac_try="$ac_compile" | ||
18551 | case "(($ac_try" in | ||
18552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18553 | *) ac_try_echo=$ac_try;; | ||
18554 | esac | ||
18555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18556 | (eval "$ac_compile") 2>conftest.er1 | ||
18557 | ac_status=$? | ||
18558 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18559 | rm -f conftest.er1 | ||
18560 | cat conftest.err >&5 | ||
18561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18562 | (exit $ac_status); } && { | ||
18563 | test -z "$ac_c_werror_flag" || | ||
18564 | test ! -s conftest.err | ||
18565 | } && test -s conftest.$ac_objext; then | ||
18566 | ac_hi=$ac_mid; break | ||
18567 | else | ||
18568 | echo "$as_me: failed program was:" >&5 | ||
18569 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18570 | |||
18571 | ac_lo=`expr $ac_mid + 1` | ||
18572 | if test $ac_lo -le $ac_mid; then | ||
18573 | ac_lo= ac_hi= | ||
18574 | break | ||
18575 | fi | ||
18576 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
18577 | fi | ||
18578 | |||
18579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18580 | done | ||
18581 | else | ||
18582 | echo "$as_me: failed program was:" >&5 | ||
18583 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18584 | |||
18585 | cat >conftest.$ac_ext <<_ACEOF | ||
18586 | /* confdefs.h. */ | ||
18587 | _ACEOF | ||
18588 | cat confdefs.h >>conftest.$ac_ext | ||
18589 | cat >>conftest.$ac_ext <<_ACEOF | ||
18590 | /* end confdefs.h. */ | ||
18591 | $ac_includes_default | ||
18592 | typedef short int ac__type_sizeof_; | ||
18593 | int | ||
18594 | main () | ||
18595 | { | ||
18596 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
18597 | test_array [0] = 0 | ||
18598 | |||
18599 | ; | ||
18600 | return 0; | ||
18601 | } | ||
18602 | _ACEOF | ||
18603 | rm -f conftest.$ac_objext | ||
18604 | if { (ac_try="$ac_compile" | ||
18605 | case "(($ac_try" in | ||
18606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18607 | *) ac_try_echo=$ac_try;; | ||
18608 | esac | ||
18609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18610 | (eval "$ac_compile") 2>conftest.er1 | ||
18611 | ac_status=$? | ||
18612 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18613 | rm -f conftest.er1 | ||
18614 | cat conftest.err >&5 | ||
18615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18616 | (exit $ac_status); } && { | ||
18617 | test -z "$ac_c_werror_flag" || | ||
18618 | test ! -s conftest.err | ||
18619 | } && test -s conftest.$ac_objext; then | ||
18620 | ac_hi=-1 ac_mid=-1 | ||
18621 | while :; do | ||
18622 | cat >conftest.$ac_ext <<_ACEOF | ||
18623 | /* confdefs.h. */ | ||
18624 | _ACEOF | ||
18625 | cat confdefs.h >>conftest.$ac_ext | ||
18626 | cat >>conftest.$ac_ext <<_ACEOF | ||
18627 | /* end confdefs.h. */ | ||
18628 | $ac_includes_default | ||
18629 | typedef short int ac__type_sizeof_; | ||
18630 | int | ||
18631 | main () | ||
18632 | { | ||
18633 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
18634 | test_array [0] = 0 | ||
18635 | |||
18636 | ; | ||
18637 | return 0; | ||
18638 | } | ||
18639 | _ACEOF | ||
18640 | rm -f conftest.$ac_objext | ||
18641 | if { (ac_try="$ac_compile" | ||
18642 | case "(($ac_try" in | ||
18643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18644 | *) ac_try_echo=$ac_try;; | ||
18645 | esac | ||
18646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18647 | (eval "$ac_compile") 2>conftest.er1 | ||
18648 | ac_status=$? | ||
18649 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18650 | rm -f conftest.er1 | ||
18651 | cat conftest.err >&5 | ||
18652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18653 | (exit $ac_status); } && { | ||
18654 | test -z "$ac_c_werror_flag" || | ||
18655 | test ! -s conftest.err | ||
18656 | } && test -s conftest.$ac_objext; then | ||
18657 | ac_lo=$ac_mid; break | ||
18658 | else | ||
18659 | echo "$as_me: failed program was:" >&5 | ||
18660 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18661 | |||
18662 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
18663 | if test $ac_mid -le $ac_hi; then | ||
18664 | ac_lo= ac_hi= | ||
18665 | break | ||
18666 | fi | ||
18667 | ac_mid=`expr 2 '*' $ac_mid` | ||
18668 | fi | ||
18669 | |||
18670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18671 | done | ||
18672 | else | ||
18673 | echo "$as_me: failed program was:" >&5 | ||
18674 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18675 | |||
18676 | ac_lo= ac_hi= | ||
18677 | fi | ||
18678 | |||
18679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18680 | fi | ||
18681 | |||
18682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18683 | # Binary search between lo and hi bounds. | ||
18684 | while test "x$ac_lo" != "x$ac_hi"; do | ||
18685 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
18686 | cat >conftest.$ac_ext <<_ACEOF | ||
18687 | /* confdefs.h. */ | ||
18688 | _ACEOF | ||
18689 | cat confdefs.h >>conftest.$ac_ext | ||
18690 | cat >>conftest.$ac_ext <<_ACEOF | ||
18691 | /* end confdefs.h. */ | ||
18692 | $ac_includes_default | ||
18693 | typedef short int ac__type_sizeof_; | ||
18694 | int | ||
18695 | main () | ||
18696 | { | ||
18697 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
18698 | test_array [0] = 0 | ||
18699 | |||
18700 | ; | ||
18701 | return 0; | ||
18702 | } | ||
18703 | _ACEOF | ||
18704 | rm -f conftest.$ac_objext | ||
18705 | if { (ac_try="$ac_compile" | ||
18706 | case "(($ac_try" in | ||
18707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18708 | *) ac_try_echo=$ac_try;; | ||
18709 | esac | ||
18710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18711 | (eval "$ac_compile") 2>conftest.er1 | ||
18712 | ac_status=$? | ||
18713 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18714 | rm -f conftest.er1 | ||
18715 | cat conftest.err >&5 | ||
18716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18717 | (exit $ac_status); } && { | ||
18718 | test -z "$ac_c_werror_flag" || | ||
18719 | test ! -s conftest.err | ||
18720 | } && test -s conftest.$ac_objext; then | ||
18721 | ac_hi=$ac_mid | ||
18722 | else | ||
18723 | echo "$as_me: failed program was:" >&5 | ||
18724 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18725 | |||
18726 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
18727 | fi | ||
18728 | |||
18729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18730 | done | ||
18731 | case $ac_lo in | ||
18732 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
18733 | '') if test "$ac_cv_type_short_int" = yes; then | ||
18734 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
18735 | See \`config.log' for more details." >&5 | ||
18736 | echo "$as_me: error: cannot compute sizeof (short int) | ||
18737 | See \`config.log' for more details." >&2;} | ||
18738 | { (exit 77); exit 77; }; } | ||
18739 | else | ||
18740 | ac_cv_sizeof_short_int=0 | ||
18741 | fi ;; | ||
18742 | esac | ||
18743 | else | ||
18744 | cat >conftest.$ac_ext <<_ACEOF | ||
18745 | /* confdefs.h. */ | ||
18746 | _ACEOF | ||
18747 | cat confdefs.h >>conftest.$ac_ext | ||
18748 | cat >>conftest.$ac_ext <<_ACEOF | ||
18749 | /* end confdefs.h. */ | ||
18750 | $ac_includes_default | ||
18751 | typedef short int ac__type_sizeof_; | ||
18752 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
18753 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
18754 | #include <stdio.h> | ||
18755 | #include <stdlib.h> | ||
18756 | int | ||
18757 | main () | ||
18758 | { | ||
18759 | |||
18760 | FILE *f = fopen ("conftest.val", "w"); | ||
18761 | if (! f) | ||
18762 | return 1; | ||
18763 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
18764 | { | ||
18765 | long int i = longval (); | ||
18766 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
18767 | return 1; | ||
18768 | fprintf (f, "%ld\n", i); | ||
18769 | } | ||
18770 | else | ||
18771 | { | ||
18772 | unsigned long int i = ulongval (); | ||
18773 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
18774 | return 1; | ||
18775 | fprintf (f, "%lu\n", i); | ||
18776 | } | ||
18777 | return ferror (f) || fclose (f) != 0; | ||
18778 | |||
18779 | ; | ||
18780 | return 0; | ||
18781 | } | ||
18782 | _ACEOF | ||
18783 | rm -f conftest$ac_exeext | ||
18784 | if { (ac_try="$ac_link" | ||
18785 | case "(($ac_try" in | ||
18786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18787 | *) ac_try_echo=$ac_try;; | ||
18788 | esac | ||
18789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18790 | (eval "$ac_link") 2>&5 | ||
18791 | ac_status=$? | ||
18792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18793 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18794 | { (case "(($ac_try" in | ||
18795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18796 | *) ac_try_echo=$ac_try;; | ||
18797 | esac | ||
18798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18799 | (eval "$ac_try") 2>&5 | ||
18800 | ac_status=$? | ||
18801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18802 | (exit $ac_status); }; }; then | ||
18803 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
18804 | else | ||
18805 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18806 | echo "$as_me: failed program was:" >&5 | ||
18807 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18808 | |||
18809 | ( exit $ac_status ) | ||
18810 | if test "$ac_cv_type_short_int" = yes; then | ||
18811 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
18812 | See \`config.log' for more details." >&5 | ||
18813 | echo "$as_me: error: cannot compute sizeof (short int) | ||
18814 | See \`config.log' for more details." >&2;} | ||
18815 | { (exit 77); exit 77; }; } | ||
18816 | else | ||
18817 | ac_cv_sizeof_short_int=0 | ||
18818 | fi | ||
18819 | fi | ||
18820 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18821 | fi | ||
18822 | rm -f conftest.val | ||
18823 | fi | ||
18824 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
18825 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; } | ||
18826 | |||
18827 | |||
18828 | |||
18829 | cat >>confdefs.h <<_ACEOF | ||
18830 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
18831 | _ACEOF | ||
18832 | |||
18833 | |||
18834 | { echo "$as_me:$LINENO: checking for int" >&5 | ||
18835 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | ||
18836 | if test "${ac_cv_type_int+set}" = set; then | ||
18837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18838 | else | ||
18839 | cat >conftest.$ac_ext <<_ACEOF | ||
18840 | /* confdefs.h. */ | ||
18841 | _ACEOF | ||
18842 | cat confdefs.h >>conftest.$ac_ext | ||
18843 | cat >>conftest.$ac_ext <<_ACEOF | ||
18844 | /* end confdefs.h. */ | ||
18845 | $ac_includes_default | ||
18846 | typedef int ac__type_new_; | ||
18847 | int | ||
18848 | main () | ||
18849 | { | ||
18850 | if ((ac__type_new_ *) 0) | ||
18851 | return 0; | ||
18852 | if (sizeof (ac__type_new_)) | ||
18853 | return 0; | ||
18854 | ; | ||
18855 | return 0; | ||
18856 | } | ||
18857 | _ACEOF | ||
18858 | rm -f conftest.$ac_objext | ||
18859 | if { (ac_try="$ac_compile" | ||
18860 | case "(($ac_try" in | ||
18861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18862 | *) ac_try_echo=$ac_try;; | ||
18863 | esac | ||
18864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18865 | (eval "$ac_compile") 2>conftest.er1 | ||
18866 | ac_status=$? | ||
18867 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18868 | rm -f conftest.er1 | ||
18869 | cat conftest.err >&5 | ||
18870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18871 | (exit $ac_status); } && { | ||
18872 | test -z "$ac_c_werror_flag" || | ||
18873 | test ! -s conftest.err | ||
18874 | } && test -s conftest.$ac_objext; then | ||
18875 | ac_cv_type_int=yes | ||
18876 | else | ||
18877 | echo "$as_me: failed program was:" >&5 | ||
18878 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18879 | |||
18880 | ac_cv_type_int=no | ||
18881 | fi | ||
18882 | |||
18883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18884 | fi | ||
18885 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
18886 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | ||
18887 | |||
18888 | # The cast to long int works around a bug in the HP C Compiler | ||
18889 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
18890 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
18891 | # This bug is HP SR number 8606223364. | ||
18892 | { echo "$as_me:$LINENO: checking size of int" >&5 | ||
18893 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | ||
18894 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
18895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18896 | else | ||
18897 | if test "$cross_compiling" = yes; then | ||
18898 | # Depending upon the size, compute the lo and hi bounds. | ||
18899 | cat >conftest.$ac_ext <<_ACEOF | ||
18900 | /* confdefs.h. */ | ||
18901 | _ACEOF | ||
18902 | cat confdefs.h >>conftest.$ac_ext | ||
18903 | cat >>conftest.$ac_ext <<_ACEOF | ||
18904 | /* end confdefs.h. */ | ||
18905 | $ac_includes_default | ||
18906 | typedef int ac__type_sizeof_; | ||
18907 | int | ||
18908 | main () | ||
18909 | { | ||
18910 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
18911 | test_array [0] = 0 | ||
18912 | |||
18913 | ; | ||
18914 | return 0; | ||
18915 | } | ||
18916 | _ACEOF | ||
18917 | rm -f conftest.$ac_objext | ||
18918 | if { (ac_try="$ac_compile" | ||
18919 | case "(($ac_try" in | ||
18920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18921 | *) ac_try_echo=$ac_try;; | ||
18922 | esac | ||
18923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18924 | (eval "$ac_compile") 2>conftest.er1 | ||
18925 | ac_status=$? | ||
18926 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18927 | rm -f conftest.er1 | ||
18928 | cat conftest.err >&5 | ||
18929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18930 | (exit $ac_status); } && { | ||
18931 | test -z "$ac_c_werror_flag" || | ||
18932 | test ! -s conftest.err | ||
18933 | } && test -s conftest.$ac_objext; then | ||
18934 | ac_lo=0 ac_mid=0 | ||
18935 | while :; do | ||
18936 | cat >conftest.$ac_ext <<_ACEOF | ||
18937 | /* confdefs.h. */ | ||
18938 | _ACEOF | ||
18939 | cat confdefs.h >>conftest.$ac_ext | ||
18940 | cat >>conftest.$ac_ext <<_ACEOF | ||
18941 | /* end confdefs.h. */ | ||
18942 | $ac_includes_default | ||
18943 | typedef int ac__type_sizeof_; | ||
18944 | int | ||
18945 | main () | ||
18946 | { | ||
18947 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
18948 | test_array [0] = 0 | ||
18949 | |||
18950 | ; | ||
18951 | return 0; | ||
18952 | } | ||
18953 | _ACEOF | ||
18954 | rm -f conftest.$ac_objext | ||
18955 | if { (ac_try="$ac_compile" | ||
18956 | case "(($ac_try" in | ||
18957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18958 | *) ac_try_echo=$ac_try;; | ||
18959 | esac | ||
18960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18961 | (eval "$ac_compile") 2>conftest.er1 | ||
18962 | ac_status=$? | ||
18963 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18964 | rm -f conftest.er1 | ||
18965 | cat conftest.err >&5 | ||
18966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18967 | (exit $ac_status); } && { | ||
18968 | test -z "$ac_c_werror_flag" || | ||
18969 | test ! -s conftest.err | ||
18970 | } && test -s conftest.$ac_objext; then | ||
18971 | ac_hi=$ac_mid; break | ||
18972 | else | ||
18973 | echo "$as_me: failed program was:" >&5 | ||
18974 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18975 | |||
18976 | ac_lo=`expr $ac_mid + 1` | ||
18977 | if test $ac_lo -le $ac_mid; then | ||
18978 | ac_lo= ac_hi= | ||
18979 | break | ||
18980 | fi | ||
18981 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
18982 | fi | ||
18983 | |||
18984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18985 | done | ||
18986 | else | ||
18987 | echo "$as_me: failed program was:" >&5 | ||
18988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18989 | |||
18990 | cat >conftest.$ac_ext <<_ACEOF | ||
18991 | /* confdefs.h. */ | ||
18992 | _ACEOF | ||
18993 | cat confdefs.h >>conftest.$ac_ext | ||
18994 | cat >>conftest.$ac_ext <<_ACEOF | ||
18995 | /* end confdefs.h. */ | ||
18996 | $ac_includes_default | ||
18997 | typedef int ac__type_sizeof_; | ||
18998 | int | ||
18999 | main () | ||
19000 | { | ||
19001 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19002 | test_array [0] = 0 | ||
19003 | |||
19004 | ; | ||
19005 | return 0; | ||
19006 | } | ||
19007 | _ACEOF | ||
19008 | rm -f conftest.$ac_objext | ||
19009 | if { (ac_try="$ac_compile" | ||
19010 | case "(($ac_try" in | ||
19011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19012 | *) ac_try_echo=$ac_try;; | ||
19013 | esac | ||
19014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19015 | (eval "$ac_compile") 2>conftest.er1 | ||
19016 | ac_status=$? | ||
19017 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19018 | rm -f conftest.er1 | ||
19019 | cat conftest.err >&5 | ||
19020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19021 | (exit $ac_status); } && { | ||
19022 | test -z "$ac_c_werror_flag" || | ||
19023 | test ! -s conftest.err | ||
19024 | } && test -s conftest.$ac_objext; then | ||
19025 | ac_hi=-1 ac_mid=-1 | ||
19026 | while :; do | ||
19027 | cat >conftest.$ac_ext <<_ACEOF | ||
19028 | /* confdefs.h. */ | ||
19029 | _ACEOF | ||
19030 | cat confdefs.h >>conftest.$ac_ext | ||
19031 | cat >>conftest.$ac_ext <<_ACEOF | ||
19032 | /* end confdefs.h. */ | ||
19033 | $ac_includes_default | ||
19034 | typedef int ac__type_sizeof_; | ||
19035 | int | ||
19036 | main () | ||
19037 | { | ||
19038 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19039 | test_array [0] = 0 | ||
19040 | |||
19041 | ; | ||
19042 | return 0; | ||
19043 | } | ||
19044 | _ACEOF | ||
19045 | rm -f conftest.$ac_objext | ||
19046 | if { (ac_try="$ac_compile" | ||
19047 | case "(($ac_try" in | ||
19048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19049 | *) ac_try_echo=$ac_try;; | ||
19050 | esac | ||
19051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19052 | (eval "$ac_compile") 2>conftest.er1 | ||
19053 | ac_status=$? | ||
19054 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19055 | rm -f conftest.er1 | ||
19056 | cat conftest.err >&5 | ||
19057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19058 | (exit $ac_status); } && { | ||
19059 | test -z "$ac_c_werror_flag" || | ||
19060 | test ! -s conftest.err | ||
19061 | } && test -s conftest.$ac_objext; then | ||
19062 | ac_lo=$ac_mid; break | ||
19063 | else | ||
19064 | echo "$as_me: failed program was:" >&5 | ||
19065 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19066 | |||
19067 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
19068 | if test $ac_mid -le $ac_hi; then | ||
19069 | ac_lo= ac_hi= | ||
19070 | break | ||
19071 | fi | ||
19072 | ac_mid=`expr 2 '*' $ac_mid` | ||
19073 | fi | ||
19074 | |||
19075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19076 | done | ||
19077 | else | ||
19078 | echo "$as_me: failed program was:" >&5 | ||
19079 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19080 | |||
19081 | ac_lo= ac_hi= | ||
19082 | fi | ||
19083 | |||
19084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19085 | fi | ||
19086 | |||
19087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19088 | # Binary search between lo and hi bounds. | ||
19089 | while test "x$ac_lo" != "x$ac_hi"; do | ||
19090 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
19091 | cat >conftest.$ac_ext <<_ACEOF | ||
19092 | /* confdefs.h. */ | ||
19093 | _ACEOF | ||
19094 | cat confdefs.h >>conftest.$ac_ext | ||
19095 | cat >>conftest.$ac_ext <<_ACEOF | ||
19096 | /* end confdefs.h. */ | ||
19097 | $ac_includes_default | ||
19098 | typedef int ac__type_sizeof_; | ||
19099 | int | ||
19100 | main () | ||
19101 | { | ||
19102 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19103 | test_array [0] = 0 | ||
19104 | |||
19105 | ; | ||
19106 | return 0; | ||
19107 | } | ||
19108 | _ACEOF | ||
19109 | rm -f conftest.$ac_objext | ||
19110 | if { (ac_try="$ac_compile" | ||
19111 | case "(($ac_try" in | ||
19112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19113 | *) ac_try_echo=$ac_try;; | ||
19114 | esac | ||
19115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19116 | (eval "$ac_compile") 2>conftest.er1 | ||
19117 | ac_status=$? | ||
19118 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19119 | rm -f conftest.er1 | ||
19120 | cat conftest.err >&5 | ||
19121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19122 | (exit $ac_status); } && { | ||
19123 | test -z "$ac_c_werror_flag" || | ||
19124 | test ! -s conftest.err | ||
19125 | } && test -s conftest.$ac_objext; then | ||
19126 | ac_hi=$ac_mid | ||
19127 | else | ||
19128 | echo "$as_me: failed program was:" >&5 | ||
19129 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19130 | |||
19131 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
19132 | fi | ||
19133 | |||
19134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19135 | done | ||
19136 | case $ac_lo in | ||
19137 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
19138 | '') if test "$ac_cv_type_int" = yes; then | ||
19139 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
19140 | See \`config.log' for more details." >&5 | ||
19141 | echo "$as_me: error: cannot compute sizeof (int) | ||
19142 | See \`config.log' for more details." >&2;} | ||
19143 | { (exit 77); exit 77; }; } | ||
19144 | else | ||
19145 | ac_cv_sizeof_int=0 | ||
19146 | fi ;; | ||
19147 | esac | ||
19148 | else | ||
19149 | cat >conftest.$ac_ext <<_ACEOF | ||
19150 | /* confdefs.h. */ | ||
19151 | _ACEOF | ||
19152 | cat confdefs.h >>conftest.$ac_ext | ||
19153 | cat >>conftest.$ac_ext <<_ACEOF | ||
19154 | /* end confdefs.h. */ | ||
19155 | $ac_includes_default | ||
19156 | typedef int ac__type_sizeof_; | ||
19157 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19158 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19159 | #include <stdio.h> | ||
19160 | #include <stdlib.h> | ||
19161 | int | ||
19162 | main () | ||
19163 | { | ||
19164 | |||
19165 | FILE *f = fopen ("conftest.val", "w"); | ||
19166 | if (! f) | ||
19167 | return 1; | ||
19168 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
19169 | { | ||
19170 | long int i = longval (); | ||
19171 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19172 | return 1; | ||
19173 | fprintf (f, "%ld\n", i); | ||
19174 | } | ||
19175 | else | ||
19176 | { | ||
19177 | unsigned long int i = ulongval (); | ||
19178 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19179 | return 1; | ||
19180 | fprintf (f, "%lu\n", i); | ||
19181 | } | ||
19182 | return ferror (f) || fclose (f) != 0; | ||
19183 | |||
19184 | ; | ||
19185 | return 0; | ||
19186 | } | ||
19187 | _ACEOF | ||
19188 | rm -f conftest$ac_exeext | ||
19189 | if { (ac_try="$ac_link" | ||
19190 | case "(($ac_try" in | ||
19191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19192 | *) ac_try_echo=$ac_try;; | ||
19193 | esac | ||
19194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19195 | (eval "$ac_link") 2>&5 | ||
19196 | ac_status=$? | ||
19197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19198 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19199 | { (case "(($ac_try" in | ||
19200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19201 | *) ac_try_echo=$ac_try;; | ||
19202 | esac | ||
19203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19204 | (eval "$ac_try") 2>&5 | ||
19205 | ac_status=$? | ||
19206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19207 | (exit $ac_status); }; }; then | ||
19208 | ac_cv_sizeof_int=`cat conftest.val` | ||
19209 | else | ||
19210 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19211 | echo "$as_me: failed program was:" >&5 | ||
19212 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19213 | |||
19214 | ( exit $ac_status ) | ||
19215 | if test "$ac_cv_type_int" = yes; then | ||
19216 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
19217 | See \`config.log' for more details." >&5 | ||
19218 | echo "$as_me: error: cannot compute sizeof (int) | ||
19219 | See \`config.log' for more details." >&2;} | ||
19220 | { (exit 77); exit 77; }; } | ||
19221 | else | ||
19222 | ac_cv_sizeof_int=0 | ||
19223 | fi | ||
19224 | fi | ||
19225 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19226 | fi | ||
19227 | rm -f conftest.val | ||
19228 | fi | ||
19229 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
19230 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | ||
19231 | |||
19232 | |||
19233 | |||
19234 | cat >>confdefs.h <<_ACEOF | ||
19235 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
19236 | _ACEOF | ||
19237 | |||
19238 | |||
19239 | { echo "$as_me:$LINENO: checking for long int" >&5 | ||
19240 | echo $ECHO_N "checking for long int... $ECHO_C" >&6; } | ||
19241 | if test "${ac_cv_type_long_int+set}" = set; then | ||
19242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19243 | else | ||
19244 | cat >conftest.$ac_ext <<_ACEOF | ||
19245 | /* confdefs.h. */ | ||
19246 | _ACEOF | ||
19247 | cat confdefs.h >>conftest.$ac_ext | ||
19248 | cat >>conftest.$ac_ext <<_ACEOF | ||
19249 | /* end confdefs.h. */ | ||
19250 | $ac_includes_default | ||
19251 | typedef long int ac__type_new_; | ||
19252 | int | ||
19253 | main () | ||
19254 | { | ||
19255 | if ((ac__type_new_ *) 0) | ||
19256 | return 0; | ||
19257 | if (sizeof (ac__type_new_)) | ||
19258 | return 0; | ||
19259 | ; | ||
19260 | return 0; | ||
19261 | } | ||
19262 | _ACEOF | ||
19263 | rm -f conftest.$ac_objext | ||
19264 | if { (ac_try="$ac_compile" | ||
19265 | case "(($ac_try" in | ||
19266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19267 | *) ac_try_echo=$ac_try;; | ||
19268 | esac | ||
19269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19270 | (eval "$ac_compile") 2>conftest.er1 | ||
19271 | ac_status=$? | ||
19272 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19273 | rm -f conftest.er1 | ||
19274 | cat conftest.err >&5 | ||
19275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19276 | (exit $ac_status); } && { | ||
19277 | test -z "$ac_c_werror_flag" || | ||
19278 | test ! -s conftest.err | ||
19279 | } && test -s conftest.$ac_objext; then | ||
19280 | ac_cv_type_long_int=yes | ||
19281 | else | ||
19282 | echo "$as_me: failed program was:" >&5 | ||
19283 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19284 | |||
19285 | ac_cv_type_long_int=no | ||
19286 | fi | ||
19287 | |||
19288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19289 | fi | ||
19290 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
19291 | echo "${ECHO_T}$ac_cv_type_long_int" >&6; } | ||
19292 | |||
19293 | # The cast to long int works around a bug in the HP C Compiler | ||
19294 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19295 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19296 | # This bug is HP SR number 8606223364. | ||
19297 | { echo "$as_me:$LINENO: checking size of long int" >&5 | ||
19298 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } | ||
19299 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
19300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19301 | else | ||
19302 | if test "$cross_compiling" = yes; then | ||
19303 | # Depending upon the size, compute the lo and hi bounds. | ||
19304 | cat >conftest.$ac_ext <<_ACEOF | ||
19305 | /* confdefs.h. */ | ||
19306 | _ACEOF | ||
19307 | cat confdefs.h >>conftest.$ac_ext | ||
19308 | cat >>conftest.$ac_ext <<_ACEOF | ||
19309 | /* end confdefs.h. */ | ||
19310 | $ac_includes_default | ||
19311 | typedef long int ac__type_sizeof_; | ||
19312 | int | ||
19313 | main () | ||
19314 | { | ||
19315 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
19316 | test_array [0] = 0 | ||
19317 | |||
19318 | ; | ||
19319 | return 0; | ||
19320 | } | ||
19321 | _ACEOF | ||
19322 | rm -f conftest.$ac_objext | ||
19323 | if { (ac_try="$ac_compile" | ||
19324 | case "(($ac_try" in | ||
19325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19326 | *) ac_try_echo=$ac_try;; | ||
19327 | esac | ||
19328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19329 | (eval "$ac_compile") 2>conftest.er1 | ||
19330 | ac_status=$? | ||
19331 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19332 | rm -f conftest.er1 | ||
19333 | cat conftest.err >&5 | ||
19334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19335 | (exit $ac_status); } && { | ||
19336 | test -z "$ac_c_werror_flag" || | ||
19337 | test ! -s conftest.err | ||
19338 | } && test -s conftest.$ac_objext; then | ||
19339 | ac_lo=0 ac_mid=0 | ||
19340 | while :; do | ||
19341 | cat >conftest.$ac_ext <<_ACEOF | ||
19342 | /* confdefs.h. */ | ||
19343 | _ACEOF | ||
19344 | cat confdefs.h >>conftest.$ac_ext | ||
19345 | cat >>conftest.$ac_ext <<_ACEOF | ||
19346 | /* end confdefs.h. */ | ||
19347 | $ac_includes_default | ||
19348 | typedef long int ac__type_sizeof_; | ||
19349 | int | ||
19350 | main () | ||
19351 | { | ||
19352 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19353 | test_array [0] = 0 | ||
19354 | |||
19355 | ; | ||
19356 | return 0; | ||
19357 | } | ||
19358 | _ACEOF | ||
19359 | rm -f conftest.$ac_objext | ||
19360 | if { (ac_try="$ac_compile" | ||
19361 | case "(($ac_try" in | ||
19362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19363 | *) ac_try_echo=$ac_try;; | ||
19364 | esac | ||
19365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19366 | (eval "$ac_compile") 2>conftest.er1 | ||
19367 | ac_status=$? | ||
19368 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19369 | rm -f conftest.er1 | ||
19370 | cat conftest.err >&5 | ||
19371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19372 | (exit $ac_status); } && { | ||
19373 | test -z "$ac_c_werror_flag" || | ||
19374 | test ! -s conftest.err | ||
19375 | } && test -s conftest.$ac_objext; then | ||
19376 | ac_hi=$ac_mid; break | ||
19377 | else | ||
19378 | echo "$as_me: failed program was:" >&5 | ||
19379 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19380 | |||
19381 | ac_lo=`expr $ac_mid + 1` | ||
19382 | if test $ac_lo -le $ac_mid; then | ||
19383 | ac_lo= ac_hi= | ||
19384 | break | ||
19385 | fi | ||
19386 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19387 | fi | ||
19388 | |||
19389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19390 | done | ||
19391 | else | ||
19392 | echo "$as_me: failed program was:" >&5 | ||
19393 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19394 | |||
19395 | cat >conftest.$ac_ext <<_ACEOF | ||
19396 | /* confdefs.h. */ | ||
19397 | _ACEOF | ||
19398 | cat confdefs.h >>conftest.$ac_ext | ||
19399 | cat >>conftest.$ac_ext <<_ACEOF | ||
19400 | /* end confdefs.h. */ | ||
19401 | $ac_includes_default | ||
19402 | typedef long int ac__type_sizeof_; | ||
19403 | int | ||
19404 | main () | ||
19405 | { | ||
19406 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19407 | test_array [0] = 0 | ||
19408 | |||
19409 | ; | ||
19410 | return 0; | ||
19411 | } | ||
19412 | _ACEOF | ||
19413 | rm -f conftest.$ac_objext | ||
19414 | if { (ac_try="$ac_compile" | ||
19415 | case "(($ac_try" in | ||
19416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19417 | *) ac_try_echo=$ac_try;; | ||
19418 | esac | ||
19419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19420 | (eval "$ac_compile") 2>conftest.er1 | ||
19421 | ac_status=$? | ||
19422 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19423 | rm -f conftest.er1 | ||
19424 | cat conftest.err >&5 | ||
19425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19426 | (exit $ac_status); } && { | ||
19427 | test -z "$ac_c_werror_flag" || | ||
19428 | test ! -s conftest.err | ||
19429 | } && test -s conftest.$ac_objext; then | ||
19430 | ac_hi=-1 ac_mid=-1 | ||
19431 | while :; do | ||
19432 | cat >conftest.$ac_ext <<_ACEOF | ||
19433 | /* confdefs.h. */ | ||
19434 | _ACEOF | ||
19435 | cat confdefs.h >>conftest.$ac_ext | ||
19436 | cat >>conftest.$ac_ext <<_ACEOF | ||
19437 | /* end confdefs.h. */ | ||
19438 | $ac_includes_default | ||
19439 | typedef long int ac__type_sizeof_; | ||
19440 | int | ||
19441 | main () | ||
19442 | { | ||
19443 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19444 | test_array [0] = 0 | ||
19445 | |||
19446 | ; | ||
19447 | return 0; | ||
19448 | } | ||
19449 | _ACEOF | ||
19450 | rm -f conftest.$ac_objext | ||
19451 | if { (ac_try="$ac_compile" | ||
19452 | case "(($ac_try" in | ||
19453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19454 | *) ac_try_echo=$ac_try;; | ||
19455 | esac | ||
19456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19457 | (eval "$ac_compile") 2>conftest.er1 | ||
19458 | ac_status=$? | ||
19459 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19460 | rm -f conftest.er1 | ||
19461 | cat conftest.err >&5 | ||
19462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19463 | (exit $ac_status); } && { | ||
19464 | test -z "$ac_c_werror_flag" || | ||
19465 | test ! -s conftest.err | ||
19466 | } && test -s conftest.$ac_objext; then | ||
19467 | ac_lo=$ac_mid; break | ||
19468 | else | ||
19469 | echo "$as_me: failed program was:" >&5 | ||
19470 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19471 | |||
19472 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
19473 | if test $ac_mid -le $ac_hi; then | ||
19474 | ac_lo= ac_hi= | ||
19475 | break | ||
19476 | fi | ||
19477 | ac_mid=`expr 2 '*' $ac_mid` | ||
19478 | fi | ||
19479 | |||
19480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19481 | done | ||
19482 | else | ||
19483 | echo "$as_me: failed program was:" >&5 | ||
19484 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19485 | |||
19486 | ac_lo= ac_hi= | ||
19487 | fi | ||
19488 | |||
19489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19490 | fi | ||
19491 | |||
19492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19493 | # Binary search between lo and hi bounds. | ||
19494 | while test "x$ac_lo" != "x$ac_hi"; do | ||
19495 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
19496 | cat >conftest.$ac_ext <<_ACEOF | ||
19497 | /* confdefs.h. */ | ||
19498 | _ACEOF | ||
19499 | cat confdefs.h >>conftest.$ac_ext | ||
19500 | cat >>conftest.$ac_ext <<_ACEOF | ||
19501 | /* end confdefs.h. */ | ||
19502 | $ac_includes_default | ||
19503 | typedef long int ac__type_sizeof_; | ||
19504 | int | ||
19505 | main () | ||
19506 | { | ||
19507 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19508 | test_array [0] = 0 | ||
19509 | |||
19510 | ; | ||
19511 | return 0; | ||
19512 | } | ||
19513 | _ACEOF | ||
19514 | rm -f conftest.$ac_objext | ||
19515 | if { (ac_try="$ac_compile" | ||
19516 | case "(($ac_try" in | ||
19517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19518 | *) ac_try_echo=$ac_try;; | ||
19519 | esac | ||
19520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19521 | (eval "$ac_compile") 2>conftest.er1 | ||
19522 | ac_status=$? | ||
19523 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19524 | rm -f conftest.er1 | ||
19525 | cat conftest.err >&5 | ||
19526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19527 | (exit $ac_status); } && { | ||
19528 | test -z "$ac_c_werror_flag" || | ||
19529 | test ! -s conftest.err | ||
19530 | } && test -s conftest.$ac_objext; then | ||
19531 | ac_hi=$ac_mid | ||
19532 | else | ||
19533 | echo "$as_me: failed program was:" >&5 | ||
19534 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19535 | |||
19536 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
19537 | fi | ||
19538 | |||
19539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19540 | done | ||
19541 | case $ac_lo in | ||
19542 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
19543 | '') if test "$ac_cv_type_long_int" = yes; then | ||
19544 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
19545 | See \`config.log' for more details." >&5 | ||
19546 | echo "$as_me: error: cannot compute sizeof (long int) | ||
19547 | See \`config.log' for more details." >&2;} | ||
19548 | { (exit 77); exit 77; }; } | ||
19549 | else | ||
19550 | ac_cv_sizeof_long_int=0 | ||
19551 | fi ;; | ||
19552 | esac | ||
19553 | else | ||
19554 | cat >conftest.$ac_ext <<_ACEOF | ||
19555 | /* confdefs.h. */ | ||
19556 | _ACEOF | ||
19557 | cat confdefs.h >>conftest.$ac_ext | ||
19558 | cat >>conftest.$ac_ext <<_ACEOF | ||
19559 | /* end confdefs.h. */ | ||
19560 | $ac_includes_default | ||
19561 | typedef long int ac__type_sizeof_; | ||
19562 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19563 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19564 | #include <stdio.h> | ||
19565 | #include <stdlib.h> | ||
19566 | int | ||
19567 | main () | ||
19568 | { | ||
19569 | |||
19570 | FILE *f = fopen ("conftest.val", "w"); | ||
19571 | if (! f) | ||
19572 | return 1; | ||
19573 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
19574 | { | ||
19575 | long int i = longval (); | ||
19576 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19577 | return 1; | ||
19578 | fprintf (f, "%ld\n", i); | ||
19579 | } | ||
19580 | else | ||
19581 | { | ||
19582 | unsigned long int i = ulongval (); | ||
19583 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19584 | return 1; | ||
19585 | fprintf (f, "%lu\n", i); | ||
19586 | } | ||
19587 | return ferror (f) || fclose (f) != 0; | ||
19588 | |||
19589 | ; | ||
19590 | return 0; | ||
19591 | } | ||
19592 | _ACEOF | ||
19593 | rm -f conftest$ac_exeext | ||
19594 | if { (ac_try="$ac_link" | ||
19595 | case "(($ac_try" in | ||
19596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19597 | *) ac_try_echo=$ac_try;; | ||
19598 | esac | ||
19599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19600 | (eval "$ac_link") 2>&5 | ||
19601 | ac_status=$? | ||
19602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19603 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19604 | { (case "(($ac_try" in | ||
19605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19606 | *) ac_try_echo=$ac_try;; | ||
19607 | esac | ||
19608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19609 | (eval "$ac_try") 2>&5 | ||
19610 | ac_status=$? | ||
19611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19612 | (exit $ac_status); }; }; then | ||
19613 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
19614 | else | ||
19615 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19616 | echo "$as_me: failed program was:" >&5 | ||
19617 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19618 | |||
19619 | ( exit $ac_status ) | ||
19620 | if test "$ac_cv_type_long_int" = yes; then | ||
19621 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
19622 | See \`config.log' for more details." >&5 | ||
19623 | echo "$as_me: error: cannot compute sizeof (long int) | ||
19624 | See \`config.log' for more details." >&2;} | ||
19625 | { (exit 77); exit 77; }; } | ||
19626 | else | ||
19627 | ac_cv_sizeof_long_int=0 | ||
19628 | fi | ||
19629 | fi | ||
19630 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19631 | fi | ||
19632 | rm -f conftest.val | ||
19633 | fi | ||
19634 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
19635 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } | ||
19636 | |||
19637 | |||
19638 | |||
19639 | cat >>confdefs.h <<_ACEOF | ||
19640 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
19641 | _ACEOF | ||
19642 | |||
19643 | |||
19644 | { echo "$as_me:$LINENO: checking for long long int" >&5 | ||
19645 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } | ||
19646 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
19647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19648 | else | ||
19649 | cat >conftest.$ac_ext <<_ACEOF | ||
19650 | /* confdefs.h. */ | ||
19651 | _ACEOF | ||
19652 | cat confdefs.h >>conftest.$ac_ext | ||
19653 | cat >>conftest.$ac_ext <<_ACEOF | ||
19654 | /* end confdefs.h. */ | ||
19655 | $ac_includes_default | ||
19656 | typedef long long int ac__type_new_; | ||
19657 | int | ||
19658 | main () | ||
19659 | { | ||
19660 | if ((ac__type_new_ *) 0) | ||
19661 | return 0; | ||
19662 | if (sizeof (ac__type_new_)) | ||
19663 | return 0; | ||
19664 | ; | ||
19665 | return 0; | ||
19666 | } | ||
19667 | _ACEOF | ||
19668 | rm -f conftest.$ac_objext | ||
19669 | if { (ac_try="$ac_compile" | ||
19670 | case "(($ac_try" in | ||
19671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19672 | *) ac_try_echo=$ac_try;; | ||
19673 | esac | ||
19674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19675 | (eval "$ac_compile") 2>conftest.er1 | ||
19676 | ac_status=$? | ||
19677 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19678 | rm -f conftest.er1 | ||
19679 | cat conftest.err >&5 | ||
19680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19681 | (exit $ac_status); } && { | ||
19682 | test -z "$ac_c_werror_flag" || | ||
19683 | test ! -s conftest.err | ||
19684 | } && test -s conftest.$ac_objext; then | ||
19685 | ac_cv_type_long_long_int=yes | ||
19686 | else | ||
19687 | echo "$as_me: failed program was:" >&5 | ||
19688 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19689 | |||
19690 | ac_cv_type_long_long_int=no | ||
19691 | fi | ||
19692 | |||
19693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19694 | fi | ||
19695 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
19696 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } | ||
19697 | |||
19698 | # The cast to long int works around a bug in the HP C Compiler | ||
19699 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19700 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19701 | # This bug is HP SR number 8606223364. | ||
19702 | { echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
19703 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; } | ||
19704 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
19705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19706 | else | ||
19707 | if test "$cross_compiling" = yes; then | ||
19708 | # Depending upon the size, compute the lo and hi bounds. | ||
19709 | cat >conftest.$ac_ext <<_ACEOF | ||
19710 | /* confdefs.h. */ | ||
19711 | _ACEOF | ||
19712 | cat confdefs.h >>conftest.$ac_ext | ||
19713 | cat >>conftest.$ac_ext <<_ACEOF | ||
19714 | /* end confdefs.h. */ | ||
19715 | $ac_includes_default | ||
19716 | typedef long long int ac__type_sizeof_; | ||
19717 | int | ||
19718 | main () | ||
19719 | { | ||
19720 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
19721 | test_array [0] = 0 | ||
19722 | |||
19723 | ; | ||
19724 | return 0; | ||
19725 | } | ||
19726 | _ACEOF | ||
19727 | rm -f conftest.$ac_objext | ||
19728 | if { (ac_try="$ac_compile" | ||
19729 | case "(($ac_try" in | ||
19730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19731 | *) ac_try_echo=$ac_try;; | ||
19732 | esac | ||
19733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19734 | (eval "$ac_compile") 2>conftest.er1 | ||
19735 | ac_status=$? | ||
19736 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19737 | rm -f conftest.er1 | ||
19738 | cat conftest.err >&5 | ||
19739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19740 | (exit $ac_status); } && { | ||
19741 | test -z "$ac_c_werror_flag" || | ||
19742 | test ! -s conftest.err | ||
19743 | } && test -s conftest.$ac_objext; then | ||
19744 | ac_lo=0 ac_mid=0 | ||
19745 | while :; do | ||
19746 | cat >conftest.$ac_ext <<_ACEOF | ||
19747 | /* confdefs.h. */ | ||
19748 | _ACEOF | ||
19749 | cat confdefs.h >>conftest.$ac_ext | ||
19750 | cat >>conftest.$ac_ext <<_ACEOF | ||
19751 | /* end confdefs.h. */ | ||
19752 | $ac_includes_default | ||
19753 | typedef long long int ac__type_sizeof_; | ||
19754 | int | ||
19755 | main () | ||
19756 | { | ||
19757 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19758 | test_array [0] = 0 | ||
19759 | |||
19760 | ; | ||
19761 | return 0; | ||
19762 | } | ||
19763 | _ACEOF | ||
19764 | rm -f conftest.$ac_objext | ||
19765 | if { (ac_try="$ac_compile" | ||
19766 | case "(($ac_try" in | ||
19767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19768 | *) ac_try_echo=$ac_try;; | ||
19769 | esac | ||
19770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19771 | (eval "$ac_compile") 2>conftest.er1 | ||
19772 | ac_status=$? | ||
19773 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19774 | rm -f conftest.er1 | ||
19775 | cat conftest.err >&5 | ||
19776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19777 | (exit $ac_status); } && { | ||
19778 | test -z "$ac_c_werror_flag" || | ||
19779 | test ! -s conftest.err | ||
19780 | } && test -s conftest.$ac_objext; then | ||
19781 | ac_hi=$ac_mid; break | ||
19782 | else | ||
19783 | echo "$as_me: failed program was:" >&5 | ||
19784 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19785 | |||
19786 | ac_lo=`expr $ac_mid + 1` | ||
19787 | if test $ac_lo -le $ac_mid; then | ||
19788 | ac_lo= ac_hi= | ||
19789 | break | ||
19790 | fi | ||
19791 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19792 | fi | ||
19793 | |||
19794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19795 | done | ||
19796 | else | ||
19797 | echo "$as_me: failed program was:" >&5 | ||
19798 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19799 | |||
19800 | cat >conftest.$ac_ext <<_ACEOF | ||
19801 | /* confdefs.h. */ | ||
19802 | _ACEOF | ||
19803 | cat confdefs.h >>conftest.$ac_ext | ||
19804 | cat >>conftest.$ac_ext <<_ACEOF | ||
19805 | /* end confdefs.h. */ | ||
19806 | $ac_includes_default | ||
19807 | typedef long long int ac__type_sizeof_; | ||
19808 | int | ||
19809 | main () | ||
19810 | { | ||
19811 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19812 | test_array [0] = 0 | ||
19813 | |||
19814 | ; | ||
19815 | return 0; | ||
19816 | } | ||
19817 | _ACEOF | ||
19818 | rm -f conftest.$ac_objext | ||
19819 | if { (ac_try="$ac_compile" | ||
19820 | case "(($ac_try" in | ||
19821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19822 | *) ac_try_echo=$ac_try;; | ||
19823 | esac | ||
19824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19825 | (eval "$ac_compile") 2>conftest.er1 | ||
19826 | ac_status=$? | ||
19827 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19828 | rm -f conftest.er1 | ||
19829 | cat conftest.err >&5 | ||
19830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19831 | (exit $ac_status); } && { | ||
19832 | test -z "$ac_c_werror_flag" || | ||
19833 | test ! -s conftest.err | ||
19834 | } && test -s conftest.$ac_objext; then | ||
19835 | ac_hi=-1 ac_mid=-1 | ||
19836 | while :; do | ||
19837 | cat >conftest.$ac_ext <<_ACEOF | ||
19838 | /* confdefs.h. */ | ||
19839 | _ACEOF | ||
19840 | cat confdefs.h >>conftest.$ac_ext | ||
19841 | cat >>conftest.$ac_ext <<_ACEOF | ||
19842 | /* end confdefs.h. */ | ||
19843 | $ac_includes_default | ||
19844 | typedef long long int ac__type_sizeof_; | ||
19845 | int | ||
19846 | main () | ||
19847 | { | ||
19848 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19849 | test_array [0] = 0 | ||
19850 | |||
19851 | ; | ||
19852 | return 0; | ||
19853 | } | ||
19854 | _ACEOF | ||
19855 | rm -f conftest.$ac_objext | ||
19856 | if { (ac_try="$ac_compile" | ||
19857 | case "(($ac_try" in | ||
19858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19859 | *) ac_try_echo=$ac_try;; | ||
19860 | esac | ||
19861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19862 | (eval "$ac_compile") 2>conftest.er1 | ||
19863 | ac_status=$? | ||
19864 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19865 | rm -f conftest.er1 | ||
19866 | cat conftest.err >&5 | ||
19867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19868 | (exit $ac_status); } && { | ||
19869 | test -z "$ac_c_werror_flag" || | ||
19870 | test ! -s conftest.err | ||
19871 | } && test -s conftest.$ac_objext; then | ||
19872 | ac_lo=$ac_mid; break | ||
19873 | else | ||
19874 | echo "$as_me: failed program was:" >&5 | ||
19875 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19876 | |||
19877 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
19878 | if test $ac_mid -le $ac_hi; then | ||
19879 | ac_lo= ac_hi= | ||
19880 | break | ||
19881 | fi | ||
19882 | ac_mid=`expr 2 '*' $ac_mid` | ||
19883 | fi | ||
19884 | |||
19885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19886 | done | ||
19887 | else | ||
19888 | echo "$as_me: failed program was:" >&5 | ||
19889 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19890 | |||
19891 | ac_lo= ac_hi= | ||
19892 | fi | ||
19893 | |||
19894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19895 | fi | ||
19896 | |||
19897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19898 | # Binary search between lo and hi bounds. | ||
19899 | while test "x$ac_lo" != "x$ac_hi"; do | ||
19900 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
19901 | cat >conftest.$ac_ext <<_ACEOF | ||
19902 | /* confdefs.h. */ | ||
19903 | _ACEOF | ||
19904 | cat confdefs.h >>conftest.$ac_ext | ||
19905 | cat >>conftest.$ac_ext <<_ACEOF | ||
19906 | /* end confdefs.h. */ | ||
19907 | $ac_includes_default | ||
19908 | typedef long long int ac__type_sizeof_; | ||
19909 | int | ||
19910 | main () | ||
19911 | { | ||
19912 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19913 | test_array [0] = 0 | ||
19914 | |||
19915 | ; | ||
19916 | return 0; | ||
19917 | } | ||
19918 | _ACEOF | ||
19919 | rm -f conftest.$ac_objext | ||
19920 | if { (ac_try="$ac_compile" | ||
19921 | case "(($ac_try" in | ||
19922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19923 | *) ac_try_echo=$ac_try;; | ||
19924 | esac | ||
19925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19926 | (eval "$ac_compile") 2>conftest.er1 | ||
19927 | ac_status=$? | ||
19928 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19929 | rm -f conftest.er1 | ||
19930 | cat conftest.err >&5 | ||
19931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19932 | (exit $ac_status); } && { | ||
19933 | test -z "$ac_c_werror_flag" || | ||
19934 | test ! -s conftest.err | ||
19935 | } && test -s conftest.$ac_objext; then | ||
19936 | ac_hi=$ac_mid | ||
19937 | else | ||
19938 | echo "$as_me: failed program was:" >&5 | ||
19939 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19940 | |||
19941 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
19942 | fi | ||
19943 | |||
19944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19945 | done | ||
19946 | case $ac_lo in | ||
19947 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
19948 | '') if test "$ac_cv_type_long_long_int" = yes; then | ||
19949 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
19950 | See \`config.log' for more details." >&5 | ||
19951 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
19952 | See \`config.log' for more details." >&2;} | ||
19953 | { (exit 77); exit 77; }; } | ||
19954 | else | ||
19955 | ac_cv_sizeof_long_long_int=0 | ||
19956 | fi ;; | ||
19957 | esac | ||
19958 | else | ||
19959 | cat >conftest.$ac_ext <<_ACEOF | ||
19960 | /* confdefs.h. */ | ||
19961 | _ACEOF | ||
19962 | cat confdefs.h >>conftest.$ac_ext | ||
19963 | cat >>conftest.$ac_ext <<_ACEOF | ||
19964 | /* end confdefs.h. */ | ||
19965 | $ac_includes_default | ||
19966 | typedef long long int ac__type_sizeof_; | ||
19967 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19968 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19969 | #include <stdio.h> | ||
19970 | #include <stdlib.h> | ||
19971 | int | ||
19972 | main () | ||
19973 | { | ||
19974 | |||
19975 | FILE *f = fopen ("conftest.val", "w"); | ||
19976 | if (! f) | ||
19977 | return 1; | ||
19978 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
19979 | { | ||
19980 | long int i = longval (); | ||
19981 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19982 | return 1; | ||
19983 | fprintf (f, "%ld\n", i); | ||
19984 | } | ||
19985 | else | ||
19986 | { | ||
19987 | unsigned long int i = ulongval (); | ||
19988 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19989 | return 1; | ||
19990 | fprintf (f, "%lu\n", i); | ||
19991 | } | ||
19992 | return ferror (f) || fclose (f) != 0; | ||
19993 | |||
19994 | ; | ||
19995 | return 0; | ||
19996 | } | ||
19997 | _ACEOF | ||
19998 | rm -f conftest$ac_exeext | ||
19999 | if { (ac_try="$ac_link" | ||
20000 | case "(($ac_try" in | ||
20001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20002 | *) ac_try_echo=$ac_try;; | ||
20003 | esac | ||
20004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20005 | (eval "$ac_link") 2>&5 | ||
20006 | ac_status=$? | ||
20007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20008 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20009 | { (case "(($ac_try" in | ||
20010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20011 | *) ac_try_echo=$ac_try;; | ||
20012 | esac | ||
20013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20014 | (eval "$ac_try") 2>&5 | ||
20015 | ac_status=$? | ||
20016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20017 | (exit $ac_status); }; }; then | ||
20018 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
20019 | else | ||
20020 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20021 | echo "$as_me: failed program was:" >&5 | ||
20022 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20023 | |||
20024 | ( exit $ac_status ) | ||
20025 | if test "$ac_cv_type_long_long_int" = yes; then | ||
20026 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
20027 | See \`config.log' for more details." >&5 | ||
20028 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
20029 | See \`config.log' for more details." >&2;} | ||
20030 | { (exit 77); exit 77; }; } | ||
20031 | else | ||
20032 | ac_cv_sizeof_long_long_int=0 | ||
20033 | fi | ||
20034 | fi | ||
20035 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20036 | fi | ||
20037 | rm -f conftest.val | ||
20038 | fi | ||
20039 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
20040 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; } | ||
20041 | |||
20042 | |||
20043 | |||
20044 | cat >>confdefs.h <<_ACEOF | ||
20045 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
20046 | _ACEOF | ||
20047 | |||
20048 | |||
20049 | |||
20050 | # Sanity check long long for some platforms (AIX) | ||
20051 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
20052 | ac_cv_sizeof_long_long_int=0 | ||
20053 | fi | ||
20054 | |||
20055 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
20056 | if test -z "$have_llong_max"; then | ||
20057 | { echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
20058 | echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; } | ||
20059 | if test "$cross_compiling" = yes; then | ||
20060 | |||
20061 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
20062 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
20063 | |||
20064 | |||
20065 | else | ||
20066 | cat >conftest.$ac_ext <<_ACEOF | ||
20067 | /* confdefs.h. */ | ||
20068 | _ACEOF | ||
20069 | cat confdefs.h >>conftest.$ac_ext | ||
20070 | cat >>conftest.$ac_ext <<_ACEOF | ||
20071 | /* end confdefs.h. */ | ||
20072 | |||
20073 | #include <stdio.h> | ||
20074 | /* Why is this so damn hard? */ | ||
20075 | #ifdef __GNUC__ | ||
20076 | # undef __GNUC__ | ||
20077 | #endif | ||
20078 | #define __USE_ISOC99 | ||
20079 | #include <limits.h> | ||
20080 | #define DATA "conftest.llminmax" | ||
20081 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
20082 | |||
20083 | /* | ||
20084 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
20085 | * we do this the hard way. | ||
20086 | */ | ||
20087 | static int | ||
20088 | fprint_ll(FILE *f, long long n) | ||
20089 | { | ||
20090 | unsigned int i; | ||
20091 | int l[sizeof(long long) * 8]; | ||
20092 | |||
20093 | if (n < 0) | ||
20094 | if (fprintf(f, "-") < 0) | ||
20095 | return -1; | ||
20096 | for (i = 0; n != 0; i++) { | ||
20097 | l[i] = my_abs(n % 10); | ||
20098 | n /= 10; | ||
20099 | } | ||
20100 | do { | ||
20101 | if (fprintf(f, "%d", l[--i]) < 0) | ||
20102 | return -1; | ||
20103 | } while (i != 0); | ||
20104 | if (fprintf(f, " ") < 0) | ||
20105 | return -1; | ||
20106 | return 0; | ||
20107 | } | ||
20108 | |||
20109 | int main(void) { | ||
20110 | FILE *f; | ||
20111 | long long i, llmin, llmax = 0; | ||
20112 | |||
20113 | if((f = fopen(DATA,"w")) == NULL) | ||
20114 | exit(1); | ||
20115 | |||
20116 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
20117 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
20118 | llmin = LLONG_MIN; | ||
20119 | llmax = LLONG_MAX; | ||
20120 | #else | ||
20121 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
20122 | /* This will work on one's complement and two's complement */ | ||
20123 | for (i = 1; i > llmax; i <<= 1, i++) | ||
20124 | llmax = i; | ||
20125 | llmin = llmax + 1LL; /* wrap */ | ||
20126 | #endif | ||
20127 | |||
20128 | /* Sanity check */ | ||
20129 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
20130 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
20131 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
20132 | fprintf(f, "unknown unknown\n"); | ||
20133 | exit(2); | ||
20134 | } | ||
20135 | |||
20136 | if (fprint_ll(f, llmin) < 0) | ||
20137 | exit(3); | ||
20138 | if (fprint_ll(f, llmax) < 0) | ||
20139 | exit(4); | ||
20140 | if (fclose(f) < 0) | ||
20141 | exit(5); | ||
20142 | exit(0); | ||
20143 | } | ||
20144 | |||
20145 | _ACEOF | ||
20146 | rm -f conftest$ac_exeext | ||
20147 | if { (ac_try="$ac_link" | ||
20148 | case "(($ac_try" in | ||
20149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20150 | *) ac_try_echo=$ac_try;; | ||
20151 | esac | ||
20152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20153 | (eval "$ac_link") 2>&5 | ||
20154 | ac_status=$? | ||
20155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20156 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20157 | { (case "(($ac_try" in | ||
20158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20159 | *) ac_try_echo=$ac_try;; | ||
20160 | esac | ||
20161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20162 | (eval "$ac_try") 2>&5 | ||
20163 | ac_status=$? | ||
20164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20165 | (exit $ac_status); }; }; then | ||
20166 | |||
20167 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
20168 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
20169 | |||
20170 | { echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
20171 | echo "${ECHO_T}$llong_max" >&6; } | ||
20172 | |||
20173 | cat >>confdefs.h <<_ACEOF | ||
20174 | #define LLONG_MAX ${llong_max}LL | ||
20175 | _ACEOF | ||
20176 | |||
20177 | { echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
20178 | echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; } | ||
20179 | { echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
20180 | echo "${ECHO_T}$llong_min" >&6; } | ||
20181 | |||
20182 | cat >>confdefs.h <<_ACEOF | ||
20183 | #define LLONG_MIN ${llong_min}LL | ||
20184 | _ACEOF | ||
20185 | |||
20186 | |||
20187 | else | ||
20188 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20189 | echo "$as_me: failed program was:" >&5 | ||
20190 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20191 | |||
20192 | ( exit $ac_status ) | ||
20193 | |||
20194 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
20195 | echo "${ECHO_T}not found" >&6; } | ||
20196 | |||
20197 | fi | ||
20198 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20199 | fi | ||
20200 | |||
20201 | |||
20202 | fi | ||
20203 | |||
20204 | |||
20205 | # More checks for data types | ||
20206 | { echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
20207 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; } | ||
20208 | if test "${ac_cv_have_u_int+set}" = set; then | ||
20209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20210 | else | ||
20211 | |||
20212 | cat >conftest.$ac_ext <<_ACEOF | ||
20213 | /* confdefs.h. */ | ||
20214 | _ACEOF | ||
20215 | cat confdefs.h >>conftest.$ac_ext | ||
20216 | cat >>conftest.$ac_ext <<_ACEOF | ||
20217 | /* end confdefs.h. */ | ||
20218 | #include <sys/types.h> | ||
20219 | int | ||
20220 | main () | ||
20221 | { | ||
20222 | u_int a; a = 1; | ||
20223 | ; | ||
20224 | return 0; | ||
20225 | } | ||
20226 | _ACEOF | ||
20227 | rm -f conftest.$ac_objext | ||
20228 | if { (ac_try="$ac_compile" | ||
20229 | case "(($ac_try" in | ||
20230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20231 | *) ac_try_echo=$ac_try;; | ||
20232 | esac | ||
20233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20234 | (eval "$ac_compile") 2>conftest.er1 | ||
20235 | ac_status=$? | ||
20236 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20237 | rm -f conftest.er1 | ||
20238 | cat conftest.err >&5 | ||
20239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20240 | (exit $ac_status); } && { | ||
20241 | test -z "$ac_c_werror_flag" || | ||
20242 | test ! -s conftest.err | ||
20243 | } && test -s conftest.$ac_objext; then | ||
20244 | ac_cv_have_u_int="yes" | ||
20245 | else | ||
20246 | echo "$as_me: failed program was:" >&5 | ||
20247 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20248 | |||
20249 | ac_cv_have_u_int="no" | ||
20250 | |||
20251 | fi | ||
20252 | |||
20253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20254 | |||
20255 | fi | ||
20256 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
20257 | echo "${ECHO_T}$ac_cv_have_u_int" >&6; } | ||
20258 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
20259 | |||
20260 | cat >>confdefs.h <<\_ACEOF | ||
20261 | #define HAVE_U_INT 1 | ||
20262 | _ACEOF | ||
20263 | |||
20264 | have_u_int=1 | ||
20265 | fi | ||
20266 | |||
20267 | { echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
20268 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; } | ||
20269 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
20270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20271 | else | ||
20272 | |||
20273 | cat >conftest.$ac_ext <<_ACEOF | ||
20274 | /* confdefs.h. */ | ||
20275 | _ACEOF | ||
20276 | cat confdefs.h >>conftest.$ac_ext | ||
20277 | cat >>conftest.$ac_ext <<_ACEOF | ||
20278 | /* end confdefs.h. */ | ||
20279 | #include <sys/types.h> | ||
20280 | int | ||
20281 | main () | ||
20282 | { | ||
20283 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
20284 | ; | ||
20285 | return 0; | ||
20286 | } | ||
20287 | _ACEOF | ||
20288 | rm -f conftest.$ac_objext | ||
20289 | if { (ac_try="$ac_compile" | ||
20290 | case "(($ac_try" in | ||
20291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20292 | *) ac_try_echo=$ac_try;; | ||
20293 | esac | ||
20294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20295 | (eval "$ac_compile") 2>conftest.er1 | ||
20296 | ac_status=$? | ||
20297 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20298 | rm -f conftest.er1 | ||
20299 | cat conftest.err >&5 | ||
20300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20301 | (exit $ac_status); } && { | ||
20302 | test -z "$ac_c_werror_flag" || | ||
20303 | test ! -s conftest.err | ||
20304 | } && test -s conftest.$ac_objext; then | ||
20305 | ac_cv_have_intxx_t="yes" | ||
20306 | else | ||
20307 | echo "$as_me: failed program was:" >&5 | ||
20308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20309 | |||
20310 | ac_cv_have_intxx_t="no" | ||
20311 | |||
20312 | fi | ||
20313 | |||
20314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20315 | |||
20316 | fi | ||
20317 | { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
20318 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; } | ||
20319 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
20320 | |||
20321 | cat >>confdefs.h <<\_ACEOF | ||
20322 | #define HAVE_INTXX_T 1 | ||
20323 | _ACEOF | ||
20324 | |||
20325 | have_intxx_t=1 | ||
20326 | fi | ||
20327 | |||
20328 | if (test -z "$have_intxx_t" && \ | ||
20329 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
20330 | then | ||
20331 | { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
20332 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; } | ||
20333 | cat >conftest.$ac_ext <<_ACEOF | ||
20334 | /* confdefs.h. */ | ||
20335 | _ACEOF | ||
20336 | cat confdefs.h >>conftest.$ac_ext | ||
20337 | cat >>conftest.$ac_ext <<_ACEOF | ||
20338 | /* end confdefs.h. */ | ||
20339 | #include <stdint.h> | ||
20340 | int | ||
20341 | main () | ||
20342 | { | ||
20343 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
20344 | ; | ||
20345 | return 0; | ||
20346 | } | ||
20347 | _ACEOF | ||
20348 | rm -f conftest.$ac_objext | ||
20349 | if { (ac_try="$ac_compile" | ||
20350 | case "(($ac_try" in | ||
20351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20352 | *) ac_try_echo=$ac_try;; | ||
20353 | esac | ||
20354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20355 | (eval "$ac_compile") 2>conftest.er1 | ||
20356 | ac_status=$? | ||
20357 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20358 | rm -f conftest.er1 | ||
20359 | cat conftest.err >&5 | ||
20360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20361 | (exit $ac_status); } && { | ||
20362 | test -z "$ac_c_werror_flag" || | ||
20363 | test ! -s conftest.err | ||
20364 | } && test -s conftest.$ac_objext; then | ||
20365 | |||
20366 | cat >>confdefs.h <<\_ACEOF | ||
20367 | #define HAVE_INTXX_T 1 | ||
20368 | _ACEOF | ||
20369 | |||
20370 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20371 | echo "${ECHO_T}yes" >&6; } | ||
20372 | |||
20373 | else | ||
20374 | echo "$as_me: failed program was:" >&5 | ||
20375 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20376 | |||
20377 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20378 | echo "${ECHO_T}no" >&6; } | ||
20379 | |||
20380 | fi | ||
20381 | |||
20382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20383 | fi | ||
20384 | |||
20385 | { echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
20386 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; } | ||
20387 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
20388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20389 | else | ||
20390 | |||
20391 | cat >conftest.$ac_ext <<_ACEOF | ||
20392 | /* confdefs.h. */ | ||
20393 | _ACEOF | ||
20394 | cat confdefs.h >>conftest.$ac_ext | ||
20395 | cat >>conftest.$ac_ext <<_ACEOF | ||
20396 | /* end confdefs.h. */ | ||
20397 | |||
20398 | #include <sys/types.h> | ||
20399 | #ifdef HAVE_STDINT_H | ||
20400 | # include <stdint.h> | ||
20401 | #endif | ||
20402 | #include <sys/socket.h> | ||
20403 | #ifdef HAVE_SYS_BITYPES_H | ||
20404 | # include <sys/bitypes.h> | ||
20405 | #endif | ||
20406 | |||
20407 | int | ||
20408 | main () | ||
20409 | { | ||
20410 | int64_t a; a = 1; | ||
20411 | ; | ||
20412 | return 0; | ||
20413 | } | ||
20414 | _ACEOF | ||
20415 | rm -f conftest.$ac_objext | ||
20416 | if { (ac_try="$ac_compile" | ||
20417 | case "(($ac_try" in | ||
20418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20419 | *) ac_try_echo=$ac_try;; | ||
20420 | esac | ||
20421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20422 | (eval "$ac_compile") 2>conftest.er1 | ||
20423 | ac_status=$? | ||
20424 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20425 | rm -f conftest.er1 | ||
20426 | cat conftest.err >&5 | ||
20427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20428 | (exit $ac_status); } && { | ||
20429 | test -z "$ac_c_werror_flag" || | ||
20430 | test ! -s conftest.err | ||
20431 | } && test -s conftest.$ac_objext; then | ||
20432 | ac_cv_have_int64_t="yes" | ||
20433 | else | ||
20434 | echo "$as_me: failed program was:" >&5 | ||
20435 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20436 | |||
20437 | ac_cv_have_int64_t="no" | ||
20438 | |||
20439 | fi | ||
20440 | |||
20441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20442 | |||
20443 | fi | ||
20444 | { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
20445 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6; } | ||
20446 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
20447 | |||
20448 | cat >>confdefs.h <<\_ACEOF | ||
20449 | #define HAVE_INT64_T 1 | ||
20450 | _ACEOF | ||
20451 | |||
20452 | fi | ||
20453 | |||
20454 | { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
20455 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; } | ||
20456 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
20457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20458 | else | ||
20459 | |||
20460 | cat >conftest.$ac_ext <<_ACEOF | ||
20461 | /* confdefs.h. */ | ||
20462 | _ACEOF | ||
20463 | cat confdefs.h >>conftest.$ac_ext | ||
20464 | cat >>conftest.$ac_ext <<_ACEOF | ||
20465 | /* end confdefs.h. */ | ||
20466 | #include <sys/types.h> | ||
20467 | int | ||
20468 | main () | ||
20469 | { | ||
20470 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
20471 | ; | ||
20472 | return 0; | ||
20473 | } | ||
20474 | _ACEOF | ||
20475 | rm -f conftest.$ac_objext | ||
20476 | if { (ac_try="$ac_compile" | ||
20477 | case "(($ac_try" in | ||
20478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20479 | *) ac_try_echo=$ac_try;; | ||
20480 | esac | ||
20481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20482 | (eval "$ac_compile") 2>conftest.er1 | ||
20483 | ac_status=$? | ||
20484 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20485 | rm -f conftest.er1 | ||
20486 | cat conftest.err >&5 | ||
20487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20488 | (exit $ac_status); } && { | ||
20489 | test -z "$ac_c_werror_flag" || | ||
20490 | test ! -s conftest.err | ||
20491 | } && test -s conftest.$ac_objext; then | ||
20492 | ac_cv_have_u_intxx_t="yes" | ||
20493 | else | ||
20494 | echo "$as_me: failed program was:" >&5 | ||
20495 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20496 | |||
20497 | ac_cv_have_u_intxx_t="no" | ||
20498 | |||
20499 | fi | ||
20500 | |||
20501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20502 | |||
20503 | fi | ||
20504 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
20505 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; } | ||
20506 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
20507 | |||
20508 | cat >>confdefs.h <<\_ACEOF | ||
20509 | #define HAVE_U_INTXX_T 1 | ||
20510 | _ACEOF | ||
20511 | |||
20512 | have_u_intxx_t=1 | ||
20513 | fi | ||
20514 | |||
20515 | if test -z "$have_u_intxx_t" ; then | ||
20516 | { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
20517 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; } | ||
20518 | cat >conftest.$ac_ext <<_ACEOF | ||
20519 | /* confdefs.h. */ | ||
20520 | _ACEOF | ||
20521 | cat confdefs.h >>conftest.$ac_ext | ||
20522 | cat >>conftest.$ac_ext <<_ACEOF | ||
20523 | /* end confdefs.h. */ | ||
20524 | #include <sys/socket.h> | ||
20525 | int | ||
20526 | main () | ||
20527 | { | ||
20528 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
20529 | ; | ||
20530 | return 0; | ||
20531 | } | ||
20532 | _ACEOF | ||
20533 | rm -f conftest.$ac_objext | ||
20534 | if { (ac_try="$ac_compile" | ||
20535 | case "(($ac_try" in | ||
20536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20537 | *) ac_try_echo=$ac_try;; | ||
20538 | esac | ||
20539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20540 | (eval "$ac_compile") 2>conftest.er1 | ||
20541 | ac_status=$? | ||
20542 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20543 | rm -f conftest.er1 | ||
20544 | cat conftest.err >&5 | ||
20545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20546 | (exit $ac_status); } && { | ||
20547 | test -z "$ac_c_werror_flag" || | ||
20548 | test ! -s conftest.err | ||
20549 | } && test -s conftest.$ac_objext; then | ||
20550 | |||
20551 | cat >>confdefs.h <<\_ACEOF | ||
20552 | #define HAVE_U_INTXX_T 1 | ||
20553 | _ACEOF | ||
20554 | |||
20555 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20556 | echo "${ECHO_T}yes" >&6; } | ||
20557 | |||
20558 | else | ||
20559 | echo "$as_me: failed program was:" >&5 | ||
20560 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20561 | |||
20562 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20563 | echo "${ECHO_T}no" >&6; } | ||
20564 | |||
20565 | fi | ||
20566 | |||
20567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20568 | fi | ||
20569 | |||
20570 | { echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
20571 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; } | ||
20572 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
20573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20574 | else | ||
20575 | |||
20576 | cat >conftest.$ac_ext <<_ACEOF | ||
20577 | /* confdefs.h. */ | ||
20578 | _ACEOF | ||
20579 | cat confdefs.h >>conftest.$ac_ext | ||
20580 | cat >>conftest.$ac_ext <<_ACEOF | ||
20581 | /* end confdefs.h. */ | ||
20582 | #include <sys/types.h> | ||
20583 | int | ||
20584 | main () | ||
20585 | { | ||
20586 | u_int64_t a; a = 1; | ||
20587 | ; | ||
20588 | return 0; | ||
20589 | } | ||
20590 | _ACEOF | ||
20591 | rm -f conftest.$ac_objext | ||
20592 | if { (ac_try="$ac_compile" | ||
20593 | case "(($ac_try" in | ||
20594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20595 | *) ac_try_echo=$ac_try;; | ||
20596 | esac | ||
20597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20598 | (eval "$ac_compile") 2>conftest.er1 | ||
20599 | ac_status=$? | ||
20600 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20601 | rm -f conftest.er1 | ||
20602 | cat conftest.err >&5 | ||
20603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20604 | (exit $ac_status); } && { | ||
20605 | test -z "$ac_c_werror_flag" || | ||
20606 | test ! -s conftest.err | ||
20607 | } && test -s conftest.$ac_objext; then | ||
20608 | ac_cv_have_u_int64_t="yes" | ||
20609 | else | ||
20610 | echo "$as_me: failed program was:" >&5 | ||
20611 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20612 | |||
20613 | ac_cv_have_u_int64_t="no" | ||
20614 | |||
20615 | fi | ||
20616 | |||
20617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20618 | |||
20619 | fi | ||
20620 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
20621 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; } | ||
20622 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
20623 | |||
20624 | cat >>confdefs.h <<\_ACEOF | ||
20625 | #define HAVE_U_INT64_T 1 | ||
20626 | _ACEOF | ||
20627 | |||
20628 | have_u_int64_t=1 | ||
20629 | fi | ||
20630 | |||
20631 | if test -z "$have_u_int64_t" ; then | ||
20632 | { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
20633 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; } | ||
20634 | cat >conftest.$ac_ext <<_ACEOF | ||
20635 | /* confdefs.h. */ | ||
20636 | _ACEOF | ||
20637 | cat confdefs.h >>conftest.$ac_ext | ||
20638 | cat >>conftest.$ac_ext <<_ACEOF | ||
20639 | /* end confdefs.h. */ | ||
20640 | #include <sys/bitypes.h> | ||
20641 | int | ||
20642 | main () | ||
20643 | { | ||
20644 | u_int64_t a; a = 1 | ||
20645 | ; | ||
20646 | return 0; | ||
20647 | } | ||
20648 | _ACEOF | ||
20649 | rm -f conftest.$ac_objext | ||
20650 | if { (ac_try="$ac_compile" | ||
20651 | case "(($ac_try" in | ||
20652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20653 | *) ac_try_echo=$ac_try;; | ||
20654 | esac | ||
20655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20656 | (eval "$ac_compile") 2>conftest.er1 | ||
20657 | ac_status=$? | ||
20658 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20659 | rm -f conftest.er1 | ||
20660 | cat conftest.err >&5 | ||
20661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20662 | (exit $ac_status); } && { | ||
20663 | test -z "$ac_c_werror_flag" || | ||
20664 | test ! -s conftest.err | ||
20665 | } && test -s conftest.$ac_objext; then | ||
20666 | |||
20667 | cat >>confdefs.h <<\_ACEOF | ||
20668 | #define HAVE_U_INT64_T 1 | ||
20669 | _ACEOF | ||
20670 | |||
20671 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20672 | echo "${ECHO_T}yes" >&6; } | ||
20673 | |||
20674 | else | ||
20675 | echo "$as_me: failed program was:" >&5 | ||
20676 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20677 | |||
20678 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20679 | echo "${ECHO_T}no" >&6; } | ||
20680 | |||
20681 | fi | ||
20682 | |||
20683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20684 | fi | ||
20685 | |||
20686 | if test -z "$have_u_intxx_t" ; then | ||
20687 | { echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
20688 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; } | ||
20689 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
20690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20691 | else | ||
20692 | |||
20693 | cat >conftest.$ac_ext <<_ACEOF | ||
20694 | /* confdefs.h. */ | ||
20695 | _ACEOF | ||
20696 | cat confdefs.h >>conftest.$ac_ext | ||
20697 | cat >>conftest.$ac_ext <<_ACEOF | ||
20698 | /* end confdefs.h. */ | ||
20699 | |||
20700 | #include <sys/types.h> | ||
20701 | |||
20702 | int | ||
20703 | main () | ||
20704 | { | ||
20705 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
20706 | ; | ||
20707 | return 0; | ||
20708 | } | ||
20709 | _ACEOF | ||
20710 | rm -f conftest.$ac_objext | ||
20711 | if { (ac_try="$ac_compile" | ||
20712 | case "(($ac_try" in | ||
20713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20714 | *) ac_try_echo=$ac_try;; | ||
20715 | esac | ||
20716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20717 | (eval "$ac_compile") 2>conftest.er1 | ||
20718 | ac_status=$? | ||
20719 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20720 | rm -f conftest.er1 | ||
20721 | cat conftest.err >&5 | ||
20722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20723 | (exit $ac_status); } && { | ||
20724 | test -z "$ac_c_werror_flag" || | ||
20725 | test ! -s conftest.err | ||
20726 | } && test -s conftest.$ac_objext; then | ||
20727 | ac_cv_have_uintxx_t="yes" | ||
20728 | else | ||
20729 | echo "$as_me: failed program was:" >&5 | ||
20730 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20731 | |||
20732 | ac_cv_have_uintxx_t="no" | ||
20733 | |||
20734 | fi | ||
20735 | |||
20736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20737 | |||
20738 | fi | ||
20739 | { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
20740 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; } | ||
20741 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
20742 | |||
20743 | cat >>confdefs.h <<\_ACEOF | ||
20744 | #define HAVE_UINTXX_T 1 | ||
20745 | _ACEOF | ||
20746 | |||
20747 | fi | ||
20748 | fi | ||
20749 | |||
20750 | if test -z "$have_uintxx_t" ; then | ||
20751 | { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
20752 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; } | ||
20753 | cat >conftest.$ac_ext <<_ACEOF | ||
20754 | /* confdefs.h. */ | ||
20755 | _ACEOF | ||
20756 | cat confdefs.h >>conftest.$ac_ext | ||
20757 | cat >>conftest.$ac_ext <<_ACEOF | ||
20758 | /* end confdefs.h. */ | ||
20759 | #include <stdint.h> | ||
20760 | int | ||
20761 | main () | ||
20762 | { | ||
20763 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
20764 | ; | ||
20765 | return 0; | ||
20766 | } | ||
20767 | _ACEOF | ||
20768 | rm -f conftest.$ac_objext | ||
20769 | if { (ac_try="$ac_compile" | ||
20770 | case "(($ac_try" in | ||
20771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20772 | *) ac_try_echo=$ac_try;; | ||
20773 | esac | ||
20774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20775 | (eval "$ac_compile") 2>conftest.er1 | ||
20776 | ac_status=$? | ||
20777 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20778 | rm -f conftest.er1 | ||
20779 | cat conftest.err >&5 | ||
20780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20781 | (exit $ac_status); } && { | ||
20782 | test -z "$ac_c_werror_flag" || | ||
20783 | test ! -s conftest.err | ||
20784 | } && test -s conftest.$ac_objext; then | ||
20785 | |||
20786 | cat >>confdefs.h <<\_ACEOF | ||
20787 | #define HAVE_UINTXX_T 1 | ||
20788 | _ACEOF | ||
20789 | |||
20790 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20791 | echo "${ECHO_T}yes" >&6; } | ||
20792 | |||
20793 | else | ||
20794 | echo "$as_me: failed program was:" >&5 | ||
20795 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20796 | |||
20797 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20798 | echo "${ECHO_T}no" >&6; } | ||
20799 | |||
20800 | fi | ||
20801 | |||
20802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20803 | fi | ||
20804 | |||
20805 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
20806 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
20807 | then | ||
20808 | { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
20809 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; } | ||
20810 | cat >conftest.$ac_ext <<_ACEOF | ||
20811 | /* confdefs.h. */ | ||
20812 | _ACEOF | ||
20813 | cat confdefs.h >>conftest.$ac_ext | ||
20814 | cat >>conftest.$ac_ext <<_ACEOF | ||
20815 | /* end confdefs.h. */ | ||
20816 | |||
20817 | #include <sys/bitypes.h> | ||
20818 | |||
20819 | int | ||
20820 | main () | ||
20821 | { | ||
20822 | |||
20823 | int8_t a; int16_t b; int32_t c; | ||
20824 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
20825 | a = b = c = e = f = g = 1; | ||
20826 | |||
20827 | ; | ||
20828 | return 0; | ||
20829 | } | ||
20830 | _ACEOF | ||
20831 | rm -f conftest.$ac_objext | ||
20832 | if { (ac_try="$ac_compile" | ||
20833 | case "(($ac_try" in | ||
20834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20835 | *) ac_try_echo=$ac_try;; | ||
20836 | esac | ||
20837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20838 | (eval "$ac_compile") 2>conftest.er1 | ||
20839 | ac_status=$? | ||
20840 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20841 | rm -f conftest.er1 | ||
20842 | cat conftest.err >&5 | ||
20843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20844 | (exit $ac_status); } && { | ||
20845 | test -z "$ac_c_werror_flag" || | ||
20846 | test ! -s conftest.err | ||
20847 | } && test -s conftest.$ac_objext; then | ||
20848 | |||
20849 | cat >>confdefs.h <<\_ACEOF | ||
20850 | #define HAVE_U_INTXX_T 1 | ||
20851 | _ACEOF | ||
20852 | |||
20853 | cat >>confdefs.h <<\_ACEOF | ||
20854 | #define HAVE_INTXX_T 1 | ||
20855 | _ACEOF | ||
20856 | |||
20857 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20858 | echo "${ECHO_T}yes" >&6; } | ||
20859 | |||
20860 | else | ||
20861 | echo "$as_me: failed program was:" >&5 | ||
20862 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20863 | |||
20864 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20865 | echo "${ECHO_T}no" >&6; } | ||
20866 | |||
20867 | fi | ||
20868 | |||
20869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20870 | fi | ||
20871 | |||
20872 | |||
20873 | { echo "$as_me:$LINENO: checking for u_char" >&5 | ||
20874 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6; } | ||
20875 | if test "${ac_cv_have_u_char+set}" = set; then | ||
20876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20877 | else | ||
20878 | |||
20879 | cat >conftest.$ac_ext <<_ACEOF | ||
20880 | /* confdefs.h. */ | ||
20881 | _ACEOF | ||
20882 | cat confdefs.h >>conftest.$ac_ext | ||
20883 | cat >>conftest.$ac_ext <<_ACEOF | ||
20884 | /* end confdefs.h. */ | ||
20885 | |||
20886 | #include <sys/types.h> | ||
20887 | |||
20888 | int | ||
20889 | main () | ||
20890 | { | ||
20891 | u_char foo; foo = 125; | ||
20892 | ; | ||
20893 | return 0; | ||
20894 | } | ||
20895 | _ACEOF | ||
20896 | rm -f conftest.$ac_objext | ||
20897 | if { (ac_try="$ac_compile" | ||
20898 | case "(($ac_try" in | ||
20899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20900 | *) ac_try_echo=$ac_try;; | ||
20901 | esac | ||
20902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20903 | (eval "$ac_compile") 2>conftest.er1 | ||
20904 | ac_status=$? | ||
20905 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20906 | rm -f conftest.er1 | ||
20907 | cat conftest.err >&5 | ||
20908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20909 | (exit $ac_status); } && { | ||
20910 | test -z "$ac_c_werror_flag" || | ||
20911 | test ! -s conftest.err | ||
20912 | } && test -s conftest.$ac_objext; then | ||
20913 | ac_cv_have_u_char="yes" | ||
20914 | else | ||
20915 | echo "$as_me: failed program was:" >&5 | ||
20916 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20917 | |||
20918 | ac_cv_have_u_char="no" | ||
20919 | |||
20920 | fi | ||
20921 | |||
20922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20923 | |||
20924 | fi | ||
20925 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
20926 | echo "${ECHO_T}$ac_cv_have_u_char" >&6; } | ||
20927 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
20928 | |||
20929 | cat >>confdefs.h <<\_ACEOF | ||
20930 | #define HAVE_U_CHAR 1 | ||
20931 | _ACEOF | ||
20932 | |||
20933 | fi | ||
20934 | |||
20935 | |||
20936 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
20937 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | ||
20938 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
20939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20940 | else | ||
20941 | cat >conftest.$ac_ext <<_ACEOF | ||
20942 | /* confdefs.h. */ | ||
20943 | _ACEOF | ||
20944 | cat confdefs.h >>conftest.$ac_ext | ||
20945 | cat >>conftest.$ac_ext <<_ACEOF | ||
20946 | /* end confdefs.h. */ | ||
20947 | #include <sys/types.h> | ||
20948 | #include <sys/socket.h> | ||
20949 | |||
20950 | typedef socklen_t ac__type_new_; | ||
20951 | int | ||
20952 | main () | ||
20953 | { | ||
20954 | if ((ac__type_new_ *) 0) | ||
20955 | return 0; | ||
20956 | if (sizeof (ac__type_new_)) | ||
20957 | return 0; | ||
20958 | ; | ||
20959 | return 0; | ||
20960 | } | ||
20961 | _ACEOF | ||
20962 | rm -f conftest.$ac_objext | ||
20963 | if { (ac_try="$ac_compile" | ||
20964 | case "(($ac_try" in | ||
20965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20966 | *) ac_try_echo=$ac_try;; | ||
20967 | esac | ||
20968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20969 | (eval "$ac_compile") 2>conftest.er1 | ||
20970 | ac_status=$? | ||
20971 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20972 | rm -f conftest.er1 | ||
20973 | cat conftest.err >&5 | ||
20974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20975 | (exit $ac_status); } && { | ||
20976 | test -z "$ac_c_werror_flag" || | ||
20977 | test ! -s conftest.err | ||
20978 | } && test -s conftest.$ac_objext; then | ||
20979 | ac_cv_type_socklen_t=yes | ||
20980 | else | ||
20981 | echo "$as_me: failed program was:" >&5 | ||
20982 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20983 | |||
20984 | ac_cv_type_socklen_t=no | ||
20985 | fi | ||
20986 | |||
20987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20988 | fi | ||
20989 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
20990 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | ||
20991 | if test $ac_cv_type_socklen_t = yes; then | ||
20992 | : | ||
20993 | else | ||
20994 | |||
20995 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
20996 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | ||
20997 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
20998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20999 | else | ||
21000 | |||
21001 | # Systems have either "struct sockaddr *" or | ||
21002 | # "void *" as the second argument to getpeername | ||
21003 | curl_cv_socklen_t_equiv= | ||
21004 | for arg2 in "struct sockaddr" void; do | ||
21005 | for t in int size_t unsigned long "unsigned long"; do | ||
21006 | cat >conftest.$ac_ext <<_ACEOF | ||
21007 | /* confdefs.h. */ | ||
21008 | _ACEOF | ||
21009 | cat confdefs.h >>conftest.$ac_ext | ||
21010 | cat >>conftest.$ac_ext <<_ACEOF | ||
21011 | /* end confdefs.h. */ | ||
21012 | |||
21013 | #include <sys/types.h> | ||
21014 | #include <sys/socket.h> | ||
21015 | |||
21016 | int getpeername (int, $arg2 *, $t *); | ||
21017 | |||
21018 | int | ||
21019 | main () | ||
21020 | { | ||
21021 | |||
21022 | $t len; | ||
21023 | getpeername(0,0,&len); | ||
21024 | |||
21025 | ; | ||
21026 | return 0; | ||
21027 | } | ||
21028 | _ACEOF | ||
21029 | rm -f conftest.$ac_objext | ||
21030 | if { (ac_try="$ac_compile" | ||
21031 | case "(($ac_try" in | ||
21032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21033 | *) ac_try_echo=$ac_try;; | ||
21034 | esac | ||
21035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21036 | (eval "$ac_compile") 2>conftest.er1 | ||
21037 | ac_status=$? | ||
21038 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21039 | rm -f conftest.er1 | ||
21040 | cat conftest.err >&5 | ||
21041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21042 | (exit $ac_status); } && { | ||
21043 | test -z "$ac_c_werror_flag" || | ||
21044 | test ! -s conftest.err | ||
21045 | } && test -s conftest.$ac_objext; then | ||
21046 | |||
21047 | curl_cv_socklen_t_equiv="$t" | ||
21048 | break | ||
21049 | |||
21050 | else | ||
21051 | echo "$as_me: failed program was:" >&5 | ||
21052 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21053 | |||
21054 | |||
21055 | fi | ||
21056 | |||
21057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21058 | done | ||
21059 | done | ||
21060 | |||
21061 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
21062 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
21063 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
21064 | { (exit 1); exit 1; }; } | ||
21065 | fi | ||
21066 | |||
21067 | fi | ||
21068 | |||
21069 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
21070 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | ||
21071 | |||
21072 | cat >>confdefs.h <<_ACEOF | ||
21073 | #define socklen_t $curl_cv_socklen_t_equiv | ||
21074 | _ACEOF | ||
21075 | |||
21076 | fi | ||
21077 | |||
21078 | |||
21079 | |||
21080 | { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
21081 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } | ||
21082 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
21083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21084 | else | ||
21085 | cat >conftest.$ac_ext <<_ACEOF | ||
21086 | /* confdefs.h. */ | ||
21087 | _ACEOF | ||
21088 | cat confdefs.h >>conftest.$ac_ext | ||
21089 | cat >>conftest.$ac_ext <<_ACEOF | ||
21090 | /* end confdefs.h. */ | ||
21091 | #include <signal.h> | ||
21092 | |||
21093 | typedef sig_atomic_t ac__type_new_; | ||
21094 | int | ||
21095 | main () | ||
21096 | { | ||
21097 | if ((ac__type_new_ *) 0) | ||
21098 | return 0; | ||
21099 | if (sizeof (ac__type_new_)) | ||
21100 | return 0; | ||
21101 | ; | ||
21102 | return 0; | ||
21103 | } | ||
21104 | _ACEOF | ||
21105 | rm -f conftest.$ac_objext | ||
21106 | if { (ac_try="$ac_compile" | ||
21107 | case "(($ac_try" in | ||
21108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21109 | *) ac_try_echo=$ac_try;; | ||
21110 | esac | ||
21111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21112 | (eval "$ac_compile") 2>conftest.er1 | ||
21113 | ac_status=$? | ||
21114 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21115 | rm -f conftest.er1 | ||
21116 | cat conftest.err >&5 | ||
21117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21118 | (exit $ac_status); } && { | ||
21119 | test -z "$ac_c_werror_flag" || | ||
21120 | test ! -s conftest.err | ||
21121 | } && test -s conftest.$ac_objext; then | ||
21122 | ac_cv_type_sig_atomic_t=yes | ||
21123 | else | ||
21124 | echo "$as_me: failed program was:" >&5 | ||
21125 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21126 | |||
21127 | ac_cv_type_sig_atomic_t=no | ||
21128 | fi | ||
21129 | |||
21130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21131 | fi | ||
21132 | { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
21133 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } | ||
21134 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
21135 | |||
21136 | cat >>confdefs.h <<_ACEOF | ||
21137 | #define HAVE_SIG_ATOMIC_T 1 | ||
21138 | _ACEOF | ||
21139 | |||
21140 | |||
21141 | fi | ||
21142 | |||
21143 | |||
21144 | { echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
21145 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; } | ||
21146 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
21147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21148 | else | ||
21149 | cat >conftest.$ac_ext <<_ACEOF | ||
21150 | /* confdefs.h. */ | ||
21151 | _ACEOF | ||
21152 | cat confdefs.h >>conftest.$ac_ext | ||
21153 | cat >>conftest.$ac_ext <<_ACEOF | ||
21154 | /* end confdefs.h. */ | ||
21155 | #include <sys/types.h> | ||
21156 | #include <netinet/in.h> | ||
21157 | |||
21158 | typedef in_addr_t ac__type_new_; | ||
21159 | int | ||
21160 | main () | ||
21161 | { | ||
21162 | if ((ac__type_new_ *) 0) | ||
21163 | return 0; | ||
21164 | if (sizeof (ac__type_new_)) | ||
21165 | return 0; | ||
21166 | ; | ||
21167 | return 0; | ||
21168 | } | ||
21169 | _ACEOF | ||
21170 | rm -f conftest.$ac_objext | ||
21171 | if { (ac_try="$ac_compile" | ||
21172 | case "(($ac_try" in | ||
21173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21174 | *) ac_try_echo=$ac_try;; | ||
21175 | esac | ||
21176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21177 | (eval "$ac_compile") 2>conftest.er1 | ||
21178 | ac_status=$? | ||
21179 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21180 | rm -f conftest.er1 | ||
21181 | cat conftest.err >&5 | ||
21182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21183 | (exit $ac_status); } && { | ||
21184 | test -z "$ac_c_werror_flag" || | ||
21185 | test ! -s conftest.err | ||
21186 | } && test -s conftest.$ac_objext; then | ||
21187 | ac_cv_type_in_addr_t=yes | ||
21188 | else | ||
21189 | echo "$as_me: failed program was:" >&5 | ||
21190 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21191 | |||
21192 | ac_cv_type_in_addr_t=no | ||
21193 | fi | ||
21194 | |||
21195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21196 | fi | ||
21197 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
21198 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; } | ||
21199 | if test $ac_cv_type_in_addr_t = yes; then | ||
21200 | |||
21201 | cat >>confdefs.h <<_ACEOF | ||
21202 | #define HAVE_IN_ADDR_T 1 | ||
21203 | _ACEOF | ||
21204 | |||
21205 | |||
21206 | fi | ||
21207 | |||
21208 | |||
21209 | { echo "$as_me:$LINENO: checking for size_t" >&5 | ||
21210 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | ||
21211 | if test "${ac_cv_have_size_t+set}" = set; then | ||
21212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21213 | else | ||
21214 | |||
21215 | cat >conftest.$ac_ext <<_ACEOF | ||
21216 | /* confdefs.h. */ | ||
21217 | _ACEOF | ||
21218 | cat confdefs.h >>conftest.$ac_ext | ||
21219 | cat >>conftest.$ac_ext <<_ACEOF | ||
21220 | /* end confdefs.h. */ | ||
21221 | |||
21222 | #include <sys/types.h> | ||
21223 | |||
21224 | int | ||
21225 | main () | ||
21226 | { | ||
21227 | size_t foo; foo = 1235; | ||
21228 | ; | ||
21229 | return 0; | ||
21230 | } | ||
21231 | _ACEOF | ||
21232 | rm -f conftest.$ac_objext | ||
21233 | if { (ac_try="$ac_compile" | ||
21234 | case "(($ac_try" in | ||
21235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21236 | *) ac_try_echo=$ac_try;; | ||
21237 | esac | ||
21238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21239 | (eval "$ac_compile") 2>conftest.er1 | ||
21240 | ac_status=$? | ||
21241 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21242 | rm -f conftest.er1 | ||
21243 | cat conftest.err >&5 | ||
21244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21245 | (exit $ac_status); } && { | ||
21246 | test -z "$ac_c_werror_flag" || | ||
21247 | test ! -s conftest.err | ||
21248 | } && test -s conftest.$ac_objext; then | ||
21249 | ac_cv_have_size_t="yes" | ||
21250 | else | ||
21251 | echo "$as_me: failed program was:" >&5 | ||
21252 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21253 | |||
21254 | ac_cv_have_size_t="no" | ||
21255 | |||
21256 | fi | ||
21257 | |||
21258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21259 | |||
21260 | fi | ||
21261 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
21262 | echo "${ECHO_T}$ac_cv_have_size_t" >&6; } | ||
21263 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
21264 | |||
21265 | cat >>confdefs.h <<\_ACEOF | ||
21266 | #define HAVE_SIZE_T 1 | ||
21267 | _ACEOF | ||
21268 | |||
21269 | fi | ||
21270 | |||
21271 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
21272 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | ||
21273 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
21274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21275 | else | ||
21276 | |||
21277 | cat >conftest.$ac_ext <<_ACEOF | ||
21278 | /* confdefs.h. */ | ||
21279 | _ACEOF | ||
21280 | cat confdefs.h >>conftest.$ac_ext | ||
21281 | cat >>conftest.$ac_ext <<_ACEOF | ||
21282 | /* end confdefs.h. */ | ||
21283 | |||
21284 | #include <sys/types.h> | ||
21285 | |||
21286 | int | ||
21287 | main () | ||
21288 | { | ||
21289 | ssize_t foo; foo = 1235; | ||
21290 | ; | ||
21291 | return 0; | ||
21292 | } | ||
21293 | _ACEOF | ||
21294 | rm -f conftest.$ac_objext | ||
21295 | if { (ac_try="$ac_compile" | ||
21296 | case "(($ac_try" in | ||
21297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21298 | *) ac_try_echo=$ac_try;; | ||
21299 | esac | ||
21300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21301 | (eval "$ac_compile") 2>conftest.er1 | ||
21302 | ac_status=$? | ||
21303 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21304 | rm -f conftest.er1 | ||
21305 | cat conftest.err >&5 | ||
21306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21307 | (exit $ac_status); } && { | ||
21308 | test -z "$ac_c_werror_flag" || | ||
21309 | test ! -s conftest.err | ||
21310 | } && test -s conftest.$ac_objext; then | ||
21311 | ac_cv_have_ssize_t="yes" | ||
21312 | else | ||
21313 | echo "$as_me: failed program was:" >&5 | ||
21314 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21315 | |||
21316 | ac_cv_have_ssize_t="no" | ||
21317 | |||
21318 | fi | ||
21319 | |||
21320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21321 | |||
21322 | fi | ||
21323 | { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
21324 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; } | ||
21325 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
21326 | |||
21327 | cat >>confdefs.h <<\_ACEOF | ||
21328 | #define HAVE_SSIZE_T 1 | ||
21329 | _ACEOF | ||
21330 | |||
21331 | fi | ||
21332 | |||
21333 | { echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
21334 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } | ||
21335 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
21336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21337 | else | ||
21338 | |||
21339 | cat >conftest.$ac_ext <<_ACEOF | ||
21340 | /* confdefs.h. */ | ||
21341 | _ACEOF | ||
21342 | cat confdefs.h >>conftest.$ac_ext | ||
21343 | cat >>conftest.$ac_ext <<_ACEOF | ||
21344 | /* end confdefs.h. */ | ||
21345 | |||
21346 | #include <time.h> | ||
21347 | |||
21348 | int | ||
21349 | main () | ||
21350 | { | ||
21351 | clock_t foo; foo = 1235; | ||
21352 | ; | ||
21353 | return 0; | ||
21354 | } | ||
21355 | _ACEOF | ||
21356 | rm -f conftest.$ac_objext | ||
21357 | if { (ac_try="$ac_compile" | ||
21358 | case "(($ac_try" in | ||
21359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21360 | *) ac_try_echo=$ac_try;; | ||
21361 | esac | ||
21362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21363 | (eval "$ac_compile") 2>conftest.er1 | ||
21364 | ac_status=$? | ||
21365 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21366 | rm -f conftest.er1 | ||
21367 | cat conftest.err >&5 | ||
21368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21369 | (exit $ac_status); } && { | ||
21370 | test -z "$ac_c_werror_flag" || | ||
21371 | test ! -s conftest.err | ||
21372 | } && test -s conftest.$ac_objext; then | ||
21373 | ac_cv_have_clock_t="yes" | ||
21374 | else | ||
21375 | echo "$as_me: failed program was:" >&5 | ||
21376 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21377 | |||
21378 | ac_cv_have_clock_t="no" | ||
21379 | |||
21380 | fi | ||
21381 | |||
21382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21383 | |||
21384 | fi | ||
21385 | { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
21386 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6; } | ||
21387 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
21388 | |||
21389 | cat >>confdefs.h <<\_ACEOF | ||
21390 | #define HAVE_CLOCK_T 1 | ||
21391 | _ACEOF | ||
21392 | |||
21393 | fi | ||
21394 | |||
21395 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
21396 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | ||
21397 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
21398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21399 | else | ||
21400 | |||
21401 | cat >conftest.$ac_ext <<_ACEOF | ||
21402 | /* confdefs.h. */ | ||
21403 | _ACEOF | ||
21404 | cat confdefs.h >>conftest.$ac_ext | ||
21405 | cat >>conftest.$ac_ext <<_ACEOF | ||
21406 | /* end confdefs.h. */ | ||
21407 | |||
21408 | #include <sys/types.h> | ||
21409 | #include <sys/socket.h> | ||
21410 | |||
21411 | int | ||
21412 | main () | ||
21413 | { | ||
21414 | sa_family_t foo; foo = 1235; | ||
21415 | ; | ||
21416 | return 0; | ||
21417 | } | ||
21418 | _ACEOF | ||
21419 | rm -f conftest.$ac_objext | ||
21420 | if { (ac_try="$ac_compile" | ||
21421 | case "(($ac_try" in | ||
21422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21423 | *) ac_try_echo=$ac_try;; | ||
21424 | esac | ||
21425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21426 | (eval "$ac_compile") 2>conftest.er1 | ||
21427 | ac_status=$? | ||
21428 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21429 | rm -f conftest.er1 | ||
21430 | cat conftest.err >&5 | ||
21431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21432 | (exit $ac_status); } && { | ||
21433 | test -z "$ac_c_werror_flag" || | ||
21434 | test ! -s conftest.err | ||
21435 | } && test -s conftest.$ac_objext; then | ||
21436 | ac_cv_have_sa_family_t="yes" | ||
21437 | else | ||
21438 | echo "$as_me: failed program was:" >&5 | ||
21439 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21440 | |||
21441 | cat >conftest.$ac_ext <<_ACEOF | ||
21442 | /* confdefs.h. */ | ||
21443 | _ACEOF | ||
21444 | cat confdefs.h >>conftest.$ac_ext | ||
21445 | cat >>conftest.$ac_ext <<_ACEOF | ||
21446 | /* end confdefs.h. */ | ||
21447 | |||
21448 | #include <sys/types.h> | ||
21449 | #include <sys/socket.h> | ||
21450 | #include <netinet/in.h> | ||
21451 | |||
21452 | int | ||
21453 | main () | ||
21454 | { | ||
21455 | sa_family_t foo; foo = 1235; | ||
21456 | ; | ||
21457 | return 0; | ||
21458 | } | ||
21459 | _ACEOF | ||
21460 | rm -f conftest.$ac_objext | ||
21461 | if { (ac_try="$ac_compile" | ||
21462 | case "(($ac_try" in | ||
21463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21464 | *) ac_try_echo=$ac_try;; | ||
21465 | esac | ||
21466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21467 | (eval "$ac_compile") 2>conftest.er1 | ||
21468 | ac_status=$? | ||
21469 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21470 | rm -f conftest.er1 | ||
21471 | cat conftest.err >&5 | ||
21472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21473 | (exit $ac_status); } && { | ||
21474 | test -z "$ac_c_werror_flag" || | ||
21475 | test ! -s conftest.err | ||
21476 | } && test -s conftest.$ac_objext; then | ||
21477 | ac_cv_have_sa_family_t="yes" | ||
21478 | else | ||
21479 | echo "$as_me: failed program was:" >&5 | ||
21480 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21481 | |||
21482 | ac_cv_have_sa_family_t="no" | ||
21483 | |||
21484 | fi | ||
21485 | |||
21486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21487 | |||
21488 | fi | ||
21489 | |||
21490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21491 | |||
21492 | fi | ||
21493 | { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
21494 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; } | ||
21495 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
21496 | |||
21497 | cat >>confdefs.h <<\_ACEOF | ||
21498 | #define HAVE_SA_FAMILY_T 1 | ||
21499 | _ACEOF | ||
21500 | |||
21501 | fi | ||
21502 | |||
21503 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
21504 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | ||
21505 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
21506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21507 | else | ||
21508 | |||
21509 | cat >conftest.$ac_ext <<_ACEOF | ||
21510 | /* confdefs.h. */ | ||
21511 | _ACEOF | ||
21512 | cat confdefs.h >>conftest.$ac_ext | ||
21513 | cat >>conftest.$ac_ext <<_ACEOF | ||
21514 | /* end confdefs.h. */ | ||
21515 | |||
21516 | #include <sys/types.h> | ||
21517 | |||
21518 | int | ||
21519 | main () | ||
21520 | { | ||
21521 | pid_t foo; foo = 1235; | ||
21522 | ; | ||
21523 | return 0; | ||
21524 | } | ||
21525 | _ACEOF | ||
21526 | rm -f conftest.$ac_objext | ||
21527 | if { (ac_try="$ac_compile" | ||
21528 | case "(($ac_try" in | ||
21529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21530 | *) ac_try_echo=$ac_try;; | ||
21531 | esac | ||
21532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21533 | (eval "$ac_compile") 2>conftest.er1 | ||
21534 | ac_status=$? | ||
21535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21536 | rm -f conftest.er1 | ||
21537 | cat conftest.err >&5 | ||
21538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21539 | (exit $ac_status); } && { | ||
21540 | test -z "$ac_c_werror_flag" || | ||
21541 | test ! -s conftest.err | ||
21542 | } && test -s conftest.$ac_objext; then | ||
21543 | ac_cv_have_pid_t="yes" | ||
21544 | else | ||
21545 | echo "$as_me: failed program was:" >&5 | ||
21546 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21547 | |||
21548 | ac_cv_have_pid_t="no" | ||
21549 | |||
21550 | fi | ||
21551 | |||
21552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21553 | |||
21554 | fi | ||
21555 | { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
21556 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6; } | ||
21557 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
21558 | |||
21559 | cat >>confdefs.h <<\_ACEOF | ||
21560 | #define HAVE_PID_T 1 | ||
21561 | _ACEOF | ||
21562 | |||
21563 | fi | ||
21564 | |||
21565 | { echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
21566 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | ||
21567 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
21568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21569 | else | ||
21570 | |||
21571 | cat >conftest.$ac_ext <<_ACEOF | ||
21572 | /* confdefs.h. */ | ||
21573 | _ACEOF | ||
21574 | cat confdefs.h >>conftest.$ac_ext | ||
21575 | cat >>conftest.$ac_ext <<_ACEOF | ||
21576 | /* end confdefs.h. */ | ||
21577 | |||
21578 | #include <sys/types.h> | ||
21579 | |||
21580 | int | ||
21581 | main () | ||
21582 | { | ||
21583 | mode_t foo; foo = 1235; | ||
21584 | ; | ||
21585 | return 0; | ||
21586 | } | ||
21587 | _ACEOF | ||
21588 | rm -f conftest.$ac_objext | ||
21589 | if { (ac_try="$ac_compile" | ||
21590 | case "(($ac_try" in | ||
21591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21592 | *) ac_try_echo=$ac_try;; | ||
21593 | esac | ||
21594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21595 | (eval "$ac_compile") 2>conftest.er1 | ||
21596 | ac_status=$? | ||
21597 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21598 | rm -f conftest.er1 | ||
21599 | cat conftest.err >&5 | ||
21600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21601 | (exit $ac_status); } && { | ||
21602 | test -z "$ac_c_werror_flag" || | ||
21603 | test ! -s conftest.err | ||
21604 | } && test -s conftest.$ac_objext; then | ||
21605 | ac_cv_have_mode_t="yes" | ||
21606 | else | ||
21607 | echo "$as_me: failed program was:" >&5 | ||
21608 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21609 | |||
21610 | ac_cv_have_mode_t="no" | ||
21611 | |||
21612 | fi | ||
21613 | |||
21614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21615 | |||
21616 | fi | ||
21617 | { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
21618 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6; } | ||
21619 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
21620 | |||
21621 | cat >>confdefs.h <<\_ACEOF | ||
21622 | #define HAVE_MODE_T 1 | ||
21623 | _ACEOF | ||
21624 | |||
21625 | fi | ||
21626 | |||
21627 | |||
21628 | { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
21629 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } | ||
21630 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
21631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21632 | else | ||
21633 | |||
21634 | cat >conftest.$ac_ext <<_ACEOF | ||
21635 | /* confdefs.h. */ | ||
21636 | _ACEOF | ||
21637 | cat confdefs.h >>conftest.$ac_ext | ||
21638 | cat >>conftest.$ac_ext <<_ACEOF | ||
21639 | /* end confdefs.h. */ | ||
21640 | |||
21641 | #include <sys/types.h> | ||
21642 | #include <sys/socket.h> | ||
21643 | |||
21644 | int | ||
21645 | main () | ||
21646 | { | ||
21647 | struct sockaddr_storage s; | ||
21648 | ; | ||
21649 | return 0; | ||
21650 | } | ||
21651 | _ACEOF | ||
21652 | rm -f conftest.$ac_objext | ||
21653 | if { (ac_try="$ac_compile" | ||
21654 | case "(($ac_try" in | ||
21655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21656 | *) ac_try_echo=$ac_try;; | ||
21657 | esac | ||
21658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21659 | (eval "$ac_compile") 2>conftest.er1 | ||
21660 | ac_status=$? | ||
21661 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21662 | rm -f conftest.er1 | ||
21663 | cat conftest.err >&5 | ||
21664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21665 | (exit $ac_status); } && { | ||
21666 | test -z "$ac_c_werror_flag" || | ||
21667 | test ! -s conftest.err | ||
21668 | } && test -s conftest.$ac_objext; then | ||
21669 | ac_cv_have_struct_sockaddr_storage="yes" | ||
21670 | else | ||
21671 | echo "$as_me: failed program was:" >&5 | ||
21672 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21673 | |||
21674 | ac_cv_have_struct_sockaddr_storage="no" | ||
21675 | |||
21676 | fi | ||
21677 | |||
21678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21679 | |||
21680 | fi | ||
21681 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
21682 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
21683 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
21684 | |||
21685 | cat >>confdefs.h <<\_ACEOF | ||
21686 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
21687 | _ACEOF | ||
21688 | |||
21689 | fi | ||
21690 | |||
21691 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
21692 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } | ||
21693 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
21694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21695 | else | ||
21696 | |||
21697 | cat >conftest.$ac_ext <<_ACEOF | ||
21698 | /* confdefs.h. */ | ||
21699 | _ACEOF | ||
21700 | cat confdefs.h >>conftest.$ac_ext | ||
21701 | cat >>conftest.$ac_ext <<_ACEOF | ||
21702 | /* end confdefs.h. */ | ||
21703 | |||
21704 | #include <sys/types.h> | ||
21705 | #include <netinet/in.h> | ||
21706 | |||
21707 | int | ||
21708 | main () | ||
21709 | { | ||
21710 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
21711 | ; | ||
21712 | return 0; | ||
21713 | } | ||
21714 | _ACEOF | ||
21715 | rm -f conftest.$ac_objext | ||
21716 | if { (ac_try="$ac_compile" | ||
21717 | case "(($ac_try" in | ||
21718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21719 | *) ac_try_echo=$ac_try;; | ||
21720 | esac | ||
21721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21722 | (eval "$ac_compile") 2>conftest.er1 | ||
21723 | ac_status=$? | ||
21724 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21725 | rm -f conftest.er1 | ||
21726 | cat conftest.err >&5 | ||
21727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21728 | (exit $ac_status); } && { | ||
21729 | test -z "$ac_c_werror_flag" || | ||
21730 | test ! -s conftest.err | ||
21731 | } && test -s conftest.$ac_objext; then | ||
21732 | ac_cv_have_struct_sockaddr_in6="yes" | ||
21733 | else | ||
21734 | echo "$as_me: failed program was:" >&5 | ||
21735 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21736 | |||
21737 | ac_cv_have_struct_sockaddr_in6="no" | ||
21738 | |||
21739 | fi | ||
21740 | |||
21741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21742 | |||
21743 | fi | ||
21744 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
21745 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
21746 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
21747 | |||
21748 | cat >>confdefs.h <<\_ACEOF | ||
21749 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
21750 | _ACEOF | ||
21751 | |||
21752 | fi | ||
21753 | |||
21754 | { echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
21755 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; } | ||
21756 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
21757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21758 | else | ||
21759 | |||
21760 | cat >conftest.$ac_ext <<_ACEOF | ||
21761 | /* confdefs.h. */ | ||
21762 | _ACEOF | ||
21763 | cat confdefs.h >>conftest.$ac_ext | ||
21764 | cat >>conftest.$ac_ext <<_ACEOF | ||
21765 | /* end confdefs.h. */ | ||
21766 | |||
21767 | #include <sys/types.h> | ||
21768 | #include <netinet/in.h> | ||
21769 | |||
21770 | int | ||
21771 | main () | ||
21772 | { | ||
21773 | struct in6_addr s; s.s6_addr[0] = 0; | ||
21774 | ; | ||
21775 | return 0; | ||
21776 | } | ||
21777 | _ACEOF | ||
21778 | rm -f conftest.$ac_objext | ||
21779 | if { (ac_try="$ac_compile" | ||
21780 | case "(($ac_try" in | ||
21781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21782 | *) ac_try_echo=$ac_try;; | ||
21783 | esac | ||
21784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21785 | (eval "$ac_compile") 2>conftest.er1 | ||
21786 | ac_status=$? | ||
21787 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21788 | rm -f conftest.er1 | ||
21789 | cat conftest.err >&5 | ||
21790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21791 | (exit $ac_status); } && { | ||
21792 | test -z "$ac_c_werror_flag" || | ||
21793 | test ! -s conftest.err | ||
21794 | } && test -s conftest.$ac_objext; then | ||
21795 | ac_cv_have_struct_in6_addr="yes" | ||
21796 | else | ||
21797 | echo "$as_me: failed program was:" >&5 | ||
21798 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21799 | |||
21800 | ac_cv_have_struct_in6_addr="no" | ||
21801 | |||
21802 | fi | ||
21803 | |||
21804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21805 | |||
21806 | fi | ||
21807 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
21808 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; } | ||
21809 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
21810 | |||
21811 | cat >>confdefs.h <<\_ACEOF | ||
21812 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
21813 | _ACEOF | ||
21814 | |||
21815 | fi | ||
21816 | |||
21817 | { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
21818 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } | ||
21819 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
21820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21821 | else | ||
21822 | |||
21823 | cat >conftest.$ac_ext <<_ACEOF | ||
21824 | /* confdefs.h. */ | ||
21825 | _ACEOF | ||
21826 | cat confdefs.h >>conftest.$ac_ext | ||
21827 | cat >>conftest.$ac_ext <<_ACEOF | ||
21828 | /* end confdefs.h. */ | ||
21829 | |||
21830 | #include <sys/types.h> | ||
21831 | #include <sys/socket.h> | ||
21832 | #include <netdb.h> | ||
21833 | |||
21834 | int | ||
21835 | main () | ||
21836 | { | ||
21837 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
21838 | ; | ||
21839 | return 0; | ||
21840 | } | ||
21841 | _ACEOF | ||
21842 | rm -f conftest.$ac_objext | ||
21843 | if { (ac_try="$ac_compile" | ||
21844 | case "(($ac_try" in | ||
21845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21846 | *) ac_try_echo=$ac_try;; | ||
21847 | esac | ||
21848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21849 | (eval "$ac_compile") 2>conftest.er1 | ||
21850 | ac_status=$? | ||
21851 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21852 | rm -f conftest.er1 | ||
21853 | cat conftest.err >&5 | ||
21854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21855 | (exit $ac_status); } && { | ||
21856 | test -z "$ac_c_werror_flag" || | ||
21857 | test ! -s conftest.err | ||
21858 | } && test -s conftest.$ac_objext; then | ||
21859 | ac_cv_have_struct_addrinfo="yes" | ||
21860 | else | ||
21861 | echo "$as_me: failed program was:" >&5 | ||
21862 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21863 | |||
21864 | ac_cv_have_struct_addrinfo="no" | ||
21865 | |||
21866 | fi | ||
21867 | |||
21868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21869 | |||
21870 | fi | ||
21871 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
21872 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; } | ||
21873 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
21874 | |||
21875 | cat >>confdefs.h <<\_ACEOF | ||
21876 | #define HAVE_STRUCT_ADDRINFO 1 | ||
21877 | _ACEOF | ||
21878 | |||
21879 | fi | ||
21880 | |||
21881 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
21882 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | ||
21883 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
21884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21885 | else | ||
21886 | |||
21887 | cat >conftest.$ac_ext <<_ACEOF | ||
21888 | /* confdefs.h. */ | ||
21889 | _ACEOF | ||
21890 | cat confdefs.h >>conftest.$ac_ext | ||
21891 | cat >>conftest.$ac_ext <<_ACEOF | ||
21892 | /* end confdefs.h. */ | ||
21893 | #include <sys/time.h> | ||
21894 | int | ||
21895 | main () | ||
21896 | { | ||
21897 | struct timeval tv; tv.tv_sec = 1; | ||
21898 | ; | ||
21899 | return 0; | ||
21900 | } | ||
21901 | _ACEOF | ||
21902 | rm -f conftest.$ac_objext | ||
21903 | if { (ac_try="$ac_compile" | ||
21904 | case "(($ac_try" in | ||
21905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21906 | *) ac_try_echo=$ac_try;; | ||
21907 | esac | ||
21908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21909 | (eval "$ac_compile") 2>conftest.er1 | ||
21910 | ac_status=$? | ||
21911 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21912 | rm -f conftest.er1 | ||
21913 | cat conftest.err >&5 | ||
21914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21915 | (exit $ac_status); } && { | ||
21916 | test -z "$ac_c_werror_flag" || | ||
21917 | test ! -s conftest.err | ||
21918 | } && test -s conftest.$ac_objext; then | ||
21919 | ac_cv_have_struct_timeval="yes" | ||
21920 | else | ||
21921 | echo "$as_me: failed program was:" >&5 | ||
21922 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21923 | |||
21924 | ac_cv_have_struct_timeval="no" | ||
21925 | |||
21926 | fi | ||
21927 | |||
21928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21929 | |||
21930 | fi | ||
21931 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
21932 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; } | ||
21933 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
21934 | |||
21935 | cat >>confdefs.h <<\_ACEOF | ||
21936 | #define HAVE_STRUCT_TIMEVAL 1 | ||
21937 | _ACEOF | ||
21938 | |||
21939 | have_struct_timeval=1 | ||
21940 | fi | ||
21941 | |||
21942 | { echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
21943 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } | ||
21944 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
21945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21946 | else | ||
21947 | cat >conftest.$ac_ext <<_ACEOF | ||
21948 | /* confdefs.h. */ | ||
21949 | _ACEOF | ||
21950 | cat confdefs.h >>conftest.$ac_ext | ||
21951 | cat >>conftest.$ac_ext <<_ACEOF | ||
21952 | /* end confdefs.h. */ | ||
21953 | $ac_includes_default | ||
21954 | typedef struct timespec ac__type_new_; | ||
21955 | int | ||
21956 | main () | ||
21957 | { | ||
21958 | if ((ac__type_new_ *) 0) | ||
21959 | return 0; | ||
21960 | if (sizeof (ac__type_new_)) | ||
21961 | return 0; | ||
21962 | ; | ||
21963 | return 0; | ||
21964 | } | ||
21965 | _ACEOF | ||
21966 | rm -f conftest.$ac_objext | ||
21967 | if { (ac_try="$ac_compile" | ||
21968 | case "(($ac_try" in | ||
21969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21970 | *) ac_try_echo=$ac_try;; | ||
21971 | esac | ||
21972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21973 | (eval "$ac_compile") 2>conftest.er1 | ||
21974 | ac_status=$? | ||
21975 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21976 | rm -f conftest.er1 | ||
21977 | cat conftest.err >&5 | ||
21978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21979 | (exit $ac_status); } && { | ||
21980 | test -z "$ac_c_werror_flag" || | ||
21981 | test ! -s conftest.err | ||
21982 | } && test -s conftest.$ac_objext; then | ||
21983 | ac_cv_type_struct_timespec=yes | ||
21984 | else | ||
21985 | echo "$as_me: failed program was:" >&5 | ||
21986 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21987 | |||
21988 | ac_cv_type_struct_timespec=no | ||
21989 | fi | ||
21990 | |||
21991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21992 | fi | ||
21993 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
21994 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; } | ||
21995 | if test $ac_cv_type_struct_timespec = yes; then | ||
21996 | |||
21997 | cat >>confdefs.h <<_ACEOF | ||
21998 | #define HAVE_STRUCT_TIMESPEC 1 | ||
21999 | _ACEOF | ||
22000 | |||
22001 | |||
22002 | fi | ||
22003 | |||
22004 | |||
22005 | # We need int64_t or else certian parts of the compile will fail. | ||
22006 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
22007 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
22008 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
22009 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
22010 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
22011 | echo "" | ||
22012 | exit 1; | ||
22013 | else | ||
22014 | if test "$cross_compiling" = yes; then | ||
22015 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
22016 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
22017 | |||
22018 | else | ||
22019 | cat >conftest.$ac_ext <<_ACEOF | ||
22020 | /* confdefs.h. */ | ||
22021 | _ACEOF | ||
22022 | cat confdefs.h >>conftest.$ac_ext | ||
22023 | cat >>conftest.$ac_ext <<_ACEOF | ||
22024 | /* end confdefs.h. */ | ||
22025 | |||
22026 | #include <stdio.h> | ||
22027 | #include <string.h> | ||
22028 | #ifdef HAVE_SNPRINTF | ||
22029 | main() | ||
22030 | { | ||
22031 | char buf[50]; | ||
22032 | char expected_out[50]; | ||
22033 | int mazsize = 50 ; | ||
22034 | #if (SIZEOF_LONG_INT == 8) | ||
22035 | long int num = 0x7fffffffffffffff; | ||
22036 | #else | ||
22037 | long long num = 0x7fffffffffffffffll; | ||
22038 | #endif | ||
22039 | strcpy(expected_out, "9223372036854775807"); | ||
22040 | snprintf(buf, mazsize, "%lld", num); | ||
22041 | if(strcmp(buf, expected_out) != 0) | ||
22042 | exit(1); | ||
22043 | exit(0); | ||
22044 | } | ||
22045 | #else | ||
22046 | main() { exit(0); } | ||
22047 | #endif | ||
22048 | |||
22049 | _ACEOF | ||
22050 | rm -f conftest$ac_exeext | ||
22051 | if { (ac_try="$ac_link" | ||
22052 | case "(($ac_try" in | ||
22053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22054 | *) ac_try_echo=$ac_try;; | ||
22055 | esac | ||
22056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22057 | (eval "$ac_link") 2>&5 | ||
22058 | ac_status=$? | ||
22059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22060 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
22061 | { (case "(($ac_try" in | ||
22062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22063 | *) ac_try_echo=$ac_try;; | ||
22064 | esac | ||
22065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22066 | (eval "$ac_try") 2>&5 | ||
22067 | ac_status=$? | ||
22068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22069 | (exit $ac_status); }; }; then | ||
22070 | true | ||
22071 | else | ||
22072 | echo "$as_me: program exited with status $ac_status" >&5 | ||
22073 | echo "$as_me: failed program was:" >&5 | ||
22074 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22075 | |||
22076 | ( exit $ac_status ) | ||
22077 | cat >>confdefs.h <<\_ACEOF | ||
22078 | #define BROKEN_SNPRINTF 1 | ||
22079 | _ACEOF | ||
22080 | |||
22081 | fi | ||
22082 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
22083 | fi | ||
22084 | |||
22085 | |||
22086 | fi | ||
22087 | |||
22088 | |||
22089 | # look for field 'ut_host' in header 'utmp.h' | ||
22090 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22091 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
22092 | { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
22093 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; } | ||
22094 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22096 | else | ||
22097 | |||
22098 | cat >conftest.$ac_ext <<_ACEOF | ||
22099 | /* confdefs.h. */ | ||
22100 | _ACEOF | ||
22101 | cat confdefs.h >>conftest.$ac_ext | ||
22102 | cat >>conftest.$ac_ext <<_ACEOF | ||
22103 | /* end confdefs.h. */ | ||
22104 | #include <utmp.h> | ||
22105 | |||
22106 | _ACEOF | ||
22107 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22108 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
22109 | eval "$ossh_varname=yes" | ||
22110 | else | ||
22111 | eval "$ossh_varname=no" | ||
22112 | fi | ||
22113 | rm -f conftest* | ||
22114 | |||
22115 | fi | ||
22116 | |||
22117 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22118 | if test -n "`echo $ossh_varname`"; then | ||
22119 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22120 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22121 | if test "x$ossh_result" = "xyes"; then | ||
22122 | |||
22123 | cat >>confdefs.h <<\_ACEOF | ||
22124 | #define HAVE_HOST_IN_UTMP 1 | ||
22125 | _ACEOF | ||
22126 | |||
22127 | fi | ||
22128 | else | ||
22129 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22130 | echo "${ECHO_T}no" >&6; } | ||
22131 | fi | ||
22132 | |||
22133 | |||
22134 | # look for field 'ut_host' in header 'utmpx.h' | ||
22135 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
22136 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
22137 | { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
22138 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; } | ||
22139 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22141 | else | ||
22142 | |||
22143 | cat >conftest.$ac_ext <<_ACEOF | ||
22144 | /* confdefs.h. */ | ||
22145 | _ACEOF | ||
22146 | cat confdefs.h >>conftest.$ac_ext | ||
22147 | cat >>conftest.$ac_ext <<_ACEOF | ||
22148 | /* end confdefs.h. */ | ||
22149 | #include <utmpx.h> | ||
22150 | |||
22151 | _ACEOF | ||
22152 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22153 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
22154 | eval "$ossh_varname=yes" | ||
22155 | else | ||
22156 | eval "$ossh_varname=no" | ||
22157 | fi | ||
22158 | rm -f conftest* | ||
22159 | |||
22160 | fi | ||
22161 | |||
22162 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22163 | if test -n "`echo $ossh_varname`"; then | ||
22164 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22165 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22166 | if test "x$ossh_result" = "xyes"; then | ||
22167 | |||
22168 | cat >>confdefs.h <<\_ACEOF | ||
22169 | #define HAVE_HOST_IN_UTMPX 1 | ||
22170 | _ACEOF | ||
22171 | |||
22172 | fi | ||
22173 | else | ||
22174 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22175 | echo "${ECHO_T}no" >&6; } | ||
22176 | fi | ||
22177 | |||
22178 | |||
22179 | # look for field 'syslen' in header 'utmpx.h' | ||
22180 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
22181 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
22182 | { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
22183 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; } | ||
22184 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22186 | else | ||
22187 | |||
22188 | cat >conftest.$ac_ext <<_ACEOF | ||
22189 | /* confdefs.h. */ | ||
22190 | _ACEOF | ||
22191 | cat confdefs.h >>conftest.$ac_ext | ||
22192 | cat >>conftest.$ac_ext <<_ACEOF | ||
22193 | /* end confdefs.h. */ | ||
22194 | #include <utmpx.h> | ||
22195 | |||
22196 | _ACEOF | ||
22197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22198 | $EGREP "syslen" >/dev/null 2>&1; then | ||
22199 | eval "$ossh_varname=yes" | ||
22200 | else | ||
22201 | eval "$ossh_varname=no" | ||
22202 | fi | ||
22203 | rm -f conftest* | ||
22204 | |||
22205 | fi | ||
22206 | |||
22207 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22208 | if test -n "`echo $ossh_varname`"; then | ||
22209 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22210 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22211 | if test "x$ossh_result" = "xyes"; then | ||
22212 | |||
22213 | cat >>confdefs.h <<\_ACEOF | ||
22214 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
22215 | _ACEOF | ||
22216 | |||
22217 | fi | ||
22218 | else | ||
22219 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22220 | echo "${ECHO_T}no" >&6; } | ||
22221 | fi | ||
22222 | |||
22223 | |||
22224 | # look for field 'ut_pid' in header 'utmp.h' | ||
22225 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22226 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
22227 | { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
22228 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; } | ||
22229 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22231 | else | ||
22232 | |||
22233 | cat >conftest.$ac_ext <<_ACEOF | ||
22234 | /* confdefs.h. */ | ||
22235 | _ACEOF | ||
22236 | cat confdefs.h >>conftest.$ac_ext | ||
22237 | cat >>conftest.$ac_ext <<_ACEOF | ||
22238 | /* end confdefs.h. */ | ||
22239 | #include <utmp.h> | ||
22240 | |||
22241 | _ACEOF | ||
22242 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22243 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
22244 | eval "$ossh_varname=yes" | ||
22245 | else | ||
22246 | eval "$ossh_varname=no" | ||
22247 | fi | ||
22248 | rm -f conftest* | ||
22249 | |||
22250 | fi | ||
22251 | |||
22252 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22253 | if test -n "`echo $ossh_varname`"; then | ||
22254 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22255 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22256 | if test "x$ossh_result" = "xyes"; then | ||
22257 | |||
22258 | cat >>confdefs.h <<\_ACEOF | ||
22259 | #define HAVE_PID_IN_UTMP 1 | ||
22260 | _ACEOF | ||
22261 | |||
22262 | fi | ||
22263 | else | ||
22264 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22265 | echo "${ECHO_T}no" >&6; } | ||
22266 | fi | ||
22267 | |||
22268 | |||
22269 | # look for field 'ut_type' in header 'utmp.h' | ||
22270 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22271 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
22272 | { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
22273 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; } | ||
22274 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22276 | else | ||
22277 | |||
22278 | cat >conftest.$ac_ext <<_ACEOF | ||
22279 | /* confdefs.h. */ | ||
22280 | _ACEOF | ||
22281 | cat confdefs.h >>conftest.$ac_ext | ||
22282 | cat >>conftest.$ac_ext <<_ACEOF | ||
22283 | /* end confdefs.h. */ | ||
22284 | #include <utmp.h> | ||
22285 | |||
22286 | _ACEOF | ||
22287 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22288 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
22289 | eval "$ossh_varname=yes" | ||
22290 | else | ||
22291 | eval "$ossh_varname=no" | ||
22292 | fi | ||
22293 | rm -f conftest* | ||
22294 | |||
22295 | fi | ||
22296 | |||
22297 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22298 | if test -n "`echo $ossh_varname`"; then | ||
22299 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22300 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22301 | if test "x$ossh_result" = "xyes"; then | ||
22302 | |||
22303 | cat >>confdefs.h <<\_ACEOF | ||
22304 | #define HAVE_TYPE_IN_UTMP 1 | ||
22305 | _ACEOF | ||
22306 | |||
22307 | fi | ||
22308 | else | ||
22309 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22310 | echo "${ECHO_T}no" >&6; } | ||
22311 | fi | ||
22312 | |||
22313 | |||
22314 | # look for field 'ut_type' in header 'utmpx.h' | ||
22315 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
22316 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
22317 | { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
22318 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; } | ||
22319 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22321 | else | ||
22322 | |||
22323 | cat >conftest.$ac_ext <<_ACEOF | ||
22324 | /* confdefs.h. */ | ||
22325 | _ACEOF | ||
22326 | cat confdefs.h >>conftest.$ac_ext | ||
22327 | cat >>conftest.$ac_ext <<_ACEOF | ||
22328 | /* end confdefs.h. */ | ||
22329 | #include <utmpx.h> | ||
22330 | |||
22331 | _ACEOF | ||
22332 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22333 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
22334 | eval "$ossh_varname=yes" | ||
22335 | else | ||
22336 | eval "$ossh_varname=no" | ||
22337 | fi | ||
22338 | rm -f conftest* | ||
22339 | |||
22340 | fi | ||
22341 | |||
22342 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22343 | if test -n "`echo $ossh_varname`"; then | ||
22344 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22345 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22346 | if test "x$ossh_result" = "xyes"; then | ||
22347 | |||
22348 | cat >>confdefs.h <<\_ACEOF | ||
22349 | #define HAVE_TYPE_IN_UTMPX 1 | ||
22350 | _ACEOF | ||
22351 | |||
22352 | fi | ||
22353 | else | ||
22354 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22355 | echo "${ECHO_T}no" >&6; } | ||
22356 | fi | ||
22357 | |||
22358 | |||
22359 | # look for field 'ut_tv' in header 'utmp.h' | ||
22360 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22361 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
22362 | { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
22363 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; } | ||
22364 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22366 | else | ||
22367 | |||
22368 | cat >conftest.$ac_ext <<_ACEOF | ||
22369 | /* confdefs.h. */ | ||
22370 | _ACEOF | ||
22371 | cat confdefs.h >>conftest.$ac_ext | ||
22372 | cat >>conftest.$ac_ext <<_ACEOF | ||
22373 | /* end confdefs.h. */ | ||
22374 | #include <utmp.h> | ||
22375 | |||
22376 | _ACEOF | ||
22377 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22378 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
22379 | eval "$ossh_varname=yes" | ||
22380 | else | ||
22381 | eval "$ossh_varname=no" | ||
22382 | fi | ||
22383 | rm -f conftest* | ||
22384 | |||
22385 | fi | ||
22386 | |||
22387 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22388 | if test -n "`echo $ossh_varname`"; then | ||
22389 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22390 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22391 | if test "x$ossh_result" = "xyes"; then | ||
22392 | |||
22393 | cat >>confdefs.h <<\_ACEOF | ||
22394 | #define HAVE_TV_IN_UTMP 1 | ||
22395 | _ACEOF | ||
22396 | |||
22397 | fi | ||
22398 | else | ||
22399 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22400 | echo "${ECHO_T}no" >&6; } | ||
22401 | fi | ||
22402 | |||
22403 | |||
22404 | # look for field 'ut_id' in header 'utmp.h' | ||
22405 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22406 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
22407 | { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
22408 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; } | ||
22409 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22411 | else | ||
22412 | |||
22413 | cat >conftest.$ac_ext <<_ACEOF | ||
22414 | /* confdefs.h. */ | ||
22415 | _ACEOF | ||
22416 | cat confdefs.h >>conftest.$ac_ext | ||
22417 | cat >>conftest.$ac_ext <<_ACEOF | ||
22418 | /* end confdefs.h. */ | ||
22419 | #include <utmp.h> | ||
22420 | |||
22421 | _ACEOF | ||
22422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22423 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
22424 | eval "$ossh_varname=yes" | ||
22425 | else | ||
22426 | eval "$ossh_varname=no" | ||
22427 | fi | ||
22428 | rm -f conftest* | ||
22429 | |||
22430 | fi | ||
22431 | |||
22432 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22433 | if test -n "`echo $ossh_varname`"; then | ||
22434 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22435 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22436 | if test "x$ossh_result" = "xyes"; then | ||
22437 | |||
22438 | cat >>confdefs.h <<\_ACEOF | ||
22439 | #define HAVE_ID_IN_UTMP 1 | ||
22440 | _ACEOF | ||
22441 | |||
22442 | fi | ||
22443 | else | ||
22444 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22445 | echo "${ECHO_T}no" >&6; } | ||
22446 | fi | ||
22447 | |||
22448 | |||
22449 | # look for field 'ut_id' in header 'utmpx.h' | ||
22450 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
22451 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
22452 | { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
22453 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; } | ||
22454 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22456 | else | ||
22457 | |||
22458 | cat >conftest.$ac_ext <<_ACEOF | ||
22459 | /* confdefs.h. */ | ||
22460 | _ACEOF | ||
22461 | cat confdefs.h >>conftest.$ac_ext | ||
22462 | cat >>conftest.$ac_ext <<_ACEOF | ||
22463 | /* end confdefs.h. */ | ||
22464 | #include <utmpx.h> | ||
22465 | |||
22466 | _ACEOF | ||
22467 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22468 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
22469 | eval "$ossh_varname=yes" | ||
22470 | else | ||
22471 | eval "$ossh_varname=no" | ||
22472 | fi | ||
22473 | rm -f conftest* | ||
22474 | |||
22475 | fi | ||
22476 | |||
22477 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22478 | if test -n "`echo $ossh_varname`"; then | ||
22479 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22480 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22481 | if test "x$ossh_result" = "xyes"; then | ||
22482 | |||
22483 | cat >>confdefs.h <<\_ACEOF | ||
22484 | #define HAVE_ID_IN_UTMPX 1 | ||
22485 | _ACEOF | ||
22486 | |||
22487 | fi | ||
22488 | else | ||
22489 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22490 | echo "${ECHO_T}no" >&6; } | ||
22491 | fi | ||
22492 | |||
22493 | |||
22494 | # look for field 'ut_addr' in header 'utmp.h' | ||
22495 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22496 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
22497 | { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
22498 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; } | ||
22499 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22501 | else | ||
22502 | |||
22503 | cat >conftest.$ac_ext <<_ACEOF | ||
22504 | /* confdefs.h. */ | ||
22505 | _ACEOF | ||
22506 | cat confdefs.h >>conftest.$ac_ext | ||
22507 | cat >>conftest.$ac_ext <<_ACEOF | ||
22508 | /* end confdefs.h. */ | ||
22509 | #include <utmp.h> | ||
22510 | |||
22511 | _ACEOF | ||
22512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22513 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
22514 | eval "$ossh_varname=yes" | ||
22515 | else | ||
22516 | eval "$ossh_varname=no" | ||
22517 | fi | ||
22518 | rm -f conftest* | ||
22519 | |||
22520 | fi | ||
22521 | |||
22522 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22523 | if test -n "`echo $ossh_varname`"; then | ||
22524 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22525 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22526 | if test "x$ossh_result" = "xyes"; then | ||
22527 | |||
22528 | cat >>confdefs.h <<\_ACEOF | ||
22529 | #define HAVE_ADDR_IN_UTMP 1 | ||
22530 | _ACEOF | ||
22531 | |||
22532 | fi | ||
22533 | else | ||
22534 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22535 | echo "${ECHO_T}no" >&6; } | ||
22536 | fi | ||
22537 | |||
22538 | |||
22539 | # look for field 'ut_addr' in header 'utmpx.h' | ||
22540 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
22541 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
22542 | { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
22543 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; } | ||
22544 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22546 | else | ||
22547 | |||
22548 | cat >conftest.$ac_ext <<_ACEOF | ||
22549 | /* confdefs.h. */ | ||
22550 | _ACEOF | ||
22551 | cat confdefs.h >>conftest.$ac_ext | ||
22552 | cat >>conftest.$ac_ext <<_ACEOF | ||
22553 | /* end confdefs.h. */ | ||
22554 | #include <utmpx.h> | ||
22555 | |||
22556 | _ACEOF | ||
22557 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22558 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
22559 | eval "$ossh_varname=yes" | ||
22560 | else | ||
22561 | eval "$ossh_varname=no" | ||
22562 | fi | ||
22563 | rm -f conftest* | ||
22564 | |||
22565 | fi | ||
22566 | |||
22567 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22568 | if test -n "`echo $ossh_varname`"; then | ||
22569 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22570 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22571 | if test "x$ossh_result" = "xyes"; then | ||
22572 | |||
22573 | cat >>confdefs.h <<\_ACEOF | ||
22574 | #define HAVE_ADDR_IN_UTMPX 1 | ||
22575 | _ACEOF | ||
22576 | |||
22577 | fi | ||
22578 | else | ||
22579 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22580 | echo "${ECHO_T}no" >&6; } | ||
22581 | fi | ||
22582 | |||
22583 | |||
22584 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
22585 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22586 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
22587 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
22588 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; } | ||
22589 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22591 | else | ||
22592 | |||
22593 | cat >conftest.$ac_ext <<_ACEOF | ||
22594 | /* confdefs.h. */ | ||
22595 | _ACEOF | ||
22596 | cat confdefs.h >>conftest.$ac_ext | ||
22597 | cat >>conftest.$ac_ext <<_ACEOF | ||
22598 | /* end confdefs.h. */ | ||
22599 | #include <utmp.h> | ||
22600 | |||
22601 | _ACEOF | ||
22602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22603 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
22604 | eval "$ossh_varname=yes" | ||
22605 | else | ||
22606 | eval "$ossh_varname=no" | ||
22607 | fi | ||
22608 | rm -f conftest* | ||
22609 | |||
22610 | fi | ||
22611 | |||
22612 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22613 | if test -n "`echo $ossh_varname`"; then | ||
22614 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22615 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22616 | if test "x$ossh_result" = "xyes"; then | ||
22617 | |||
22618 | cat >>confdefs.h <<\_ACEOF | ||
22619 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
22620 | _ACEOF | ||
22621 | |||
22622 | fi | ||
22623 | else | ||
22624 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22625 | echo "${ECHO_T}no" >&6; } | ||
22626 | fi | ||
22627 | |||
22628 | |||
22629 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
22630 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
22631 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
22632 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
22633 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; } | ||
22634 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22636 | else | ||
22637 | |||
22638 | cat >conftest.$ac_ext <<_ACEOF | ||
22639 | /* confdefs.h. */ | ||
22640 | _ACEOF | ||
22641 | cat confdefs.h >>conftest.$ac_ext | ||
22642 | cat >>conftest.$ac_ext <<_ACEOF | ||
22643 | /* end confdefs.h. */ | ||
22644 | #include <utmpx.h> | ||
22645 | |||
22646 | _ACEOF | ||
22647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22648 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
22649 | eval "$ossh_varname=yes" | ||
22650 | else | ||
22651 | eval "$ossh_varname=no" | ||
22652 | fi | ||
22653 | rm -f conftest* | ||
22654 | |||
22655 | fi | ||
22656 | |||
22657 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22658 | if test -n "`echo $ossh_varname`"; then | ||
22659 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22660 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22661 | if test "x$ossh_result" = "xyes"; then | ||
22662 | |||
22663 | cat >>confdefs.h <<\_ACEOF | ||
22664 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
22665 | _ACEOF | ||
22666 | |||
22667 | fi | ||
22668 | else | ||
22669 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22670 | echo "${ECHO_T}no" >&6; } | ||
22671 | fi | ||
22672 | |||
22673 | |||
22674 | # look for field 'ut_exit' in header 'utmp.h' | ||
22675 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22676 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
22677 | { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
22678 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; } | ||
22679 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22681 | else | ||
22682 | |||
22683 | cat >conftest.$ac_ext <<_ACEOF | ||
22684 | /* confdefs.h. */ | ||
22685 | _ACEOF | ||
22686 | cat confdefs.h >>conftest.$ac_ext | ||
22687 | cat >>conftest.$ac_ext <<_ACEOF | ||
22688 | /* end confdefs.h. */ | ||
22689 | #include <utmp.h> | ||
22690 | |||
22691 | _ACEOF | ||
22692 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22693 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
22694 | eval "$ossh_varname=yes" | ||
22695 | else | ||
22696 | eval "$ossh_varname=no" | ||
22697 | fi | ||
22698 | rm -f conftest* | ||
22699 | |||
22700 | fi | ||
22701 | |||
22702 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22703 | if test -n "`echo $ossh_varname`"; then | ||
22704 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22705 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22706 | if test "x$ossh_result" = "xyes"; then | ||
22707 | |||
22708 | cat >>confdefs.h <<\_ACEOF | ||
22709 | #define HAVE_EXIT_IN_UTMP 1 | ||
22710 | _ACEOF | ||
22711 | |||
22712 | fi | ||
22713 | else | ||
22714 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22715 | echo "${ECHO_T}no" >&6; } | ||
22716 | fi | ||
22717 | |||
22718 | |||
22719 | # look for field 'ut_time' in header 'utmp.h' | ||
22720 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22721 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
22722 | { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
22723 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; } | ||
22724 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22726 | else | ||
22727 | |||
22728 | cat >conftest.$ac_ext <<_ACEOF | ||
22729 | /* confdefs.h. */ | ||
22730 | _ACEOF | ||
22731 | cat confdefs.h >>conftest.$ac_ext | ||
22732 | cat >>conftest.$ac_ext <<_ACEOF | ||
22733 | /* end confdefs.h. */ | ||
22734 | #include <utmp.h> | ||
22735 | |||
22736 | _ACEOF | ||
22737 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22738 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
22739 | eval "$ossh_varname=yes" | ||
22740 | else | ||
22741 | eval "$ossh_varname=no" | ||
22742 | fi | ||
22743 | rm -f conftest* | ||
22744 | |||
22745 | fi | ||
22746 | |||
22747 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22748 | if test -n "`echo $ossh_varname`"; then | ||
22749 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22750 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22751 | if test "x$ossh_result" = "xyes"; then | ||
22752 | |||
22753 | cat >>confdefs.h <<\_ACEOF | ||
22754 | #define HAVE_TIME_IN_UTMP 1 | ||
22755 | _ACEOF | ||
22756 | |||
22757 | fi | ||
22758 | else | ||
22759 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22760 | echo "${ECHO_T}no" >&6; } | ||
22761 | fi | ||
22762 | |||
22763 | |||
22764 | # look for field 'ut_time' in header 'utmpx.h' | ||
22765 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
22766 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
22767 | { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
22768 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; } | ||
22769 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22771 | else | ||
22772 | |||
22773 | cat >conftest.$ac_ext <<_ACEOF | ||
22774 | /* confdefs.h. */ | ||
22775 | _ACEOF | ||
22776 | cat confdefs.h >>conftest.$ac_ext | ||
22777 | cat >>conftest.$ac_ext <<_ACEOF | ||
22778 | /* end confdefs.h. */ | ||
22779 | #include <utmpx.h> | ||
22780 | |||
22781 | _ACEOF | ||
22782 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22783 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
22784 | eval "$ossh_varname=yes" | ||
22785 | else | ||
22786 | eval "$ossh_varname=no" | ||
22787 | fi | ||
22788 | rm -f conftest* | ||
22789 | |||
22790 | fi | ||
22791 | |||
22792 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22793 | if test -n "`echo $ossh_varname`"; then | ||
22794 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22795 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22796 | if test "x$ossh_result" = "xyes"; then | ||
22797 | |||
22798 | cat >>confdefs.h <<\_ACEOF | ||
22799 | #define HAVE_TIME_IN_UTMPX 1 | ||
22800 | _ACEOF | ||
22801 | |||
22802 | fi | ||
22803 | else | ||
22804 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22805 | echo "${ECHO_T}no" >&6; } | ||
22806 | fi | ||
22807 | |||
22808 | |||
22809 | # look for field 'ut_tv' in header 'utmpx.h' | ||
22810 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
22811 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
22812 | { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
22813 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; } | ||
22814 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22816 | else | ||
22817 | |||
22818 | cat >conftest.$ac_ext <<_ACEOF | ||
22819 | /* confdefs.h. */ | ||
22820 | _ACEOF | ||
22821 | cat confdefs.h >>conftest.$ac_ext | ||
22822 | cat >>conftest.$ac_ext <<_ACEOF | ||
22823 | /* end confdefs.h. */ | ||
22824 | #include <utmpx.h> | ||
22825 | |||
22826 | _ACEOF | ||
22827 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22828 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
22829 | eval "$ossh_varname=yes" | ||
22830 | else | ||
22831 | eval "$ossh_varname=no" | ||
22832 | fi | ||
22833 | rm -f conftest* | ||
22834 | |||
22835 | fi | ||
22836 | |||
22837 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22838 | if test -n "`echo $ossh_varname`"; then | ||
22839 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22840 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22841 | if test "x$ossh_result" = "xyes"; then | ||
22842 | |||
22843 | cat >>confdefs.h <<\_ACEOF | ||
22844 | #define HAVE_TV_IN_UTMPX 1 | ||
22845 | _ACEOF | ||
22846 | |||
22847 | fi | ||
22848 | else | ||
22849 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22850 | echo "${ECHO_T}no" >&6; } | ||
22851 | fi | ||
22852 | |||
22853 | |||
22854 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
22855 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } | ||
22856 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
22857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22858 | else | ||
22859 | cat >conftest.$ac_ext <<_ACEOF | ||
22860 | /* confdefs.h. */ | ||
22861 | _ACEOF | ||
22862 | cat confdefs.h >>conftest.$ac_ext | ||
22863 | cat >>conftest.$ac_ext <<_ACEOF | ||
22864 | /* end confdefs.h. */ | ||
22865 | $ac_includes_default | ||
22866 | int | ||
22867 | main () | ||
22868 | { | ||
22869 | static struct stat ac_aggr; | ||
22870 | if (ac_aggr.st_blksize) | ||
22871 | return 0; | ||
22872 | ; | ||
22873 | return 0; | ||
22874 | } | ||
22875 | _ACEOF | ||
22876 | rm -f conftest.$ac_objext | ||
22877 | if { (ac_try="$ac_compile" | ||
22878 | case "(($ac_try" in | ||
22879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22880 | *) ac_try_echo=$ac_try;; | ||
22881 | esac | ||
22882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22883 | (eval "$ac_compile") 2>conftest.er1 | ||
22884 | ac_status=$? | ||
22885 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22886 | rm -f conftest.er1 | ||
22887 | cat conftest.err >&5 | ||
22888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22889 | (exit $ac_status); } && { | ||
22890 | test -z "$ac_c_werror_flag" || | ||
22891 | test ! -s conftest.err | ||
22892 | } && test -s conftest.$ac_objext; then | ||
22893 | ac_cv_member_struct_stat_st_blksize=yes | ||
22894 | else | ||
22895 | echo "$as_me: failed program was:" >&5 | ||
22896 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22897 | |||
22898 | cat >conftest.$ac_ext <<_ACEOF | ||
22899 | /* confdefs.h. */ | ||
22900 | _ACEOF | ||
22901 | cat confdefs.h >>conftest.$ac_ext | ||
22902 | cat >>conftest.$ac_ext <<_ACEOF | ||
22903 | /* end confdefs.h. */ | ||
22904 | $ac_includes_default | ||
22905 | int | ||
22906 | main () | ||
22907 | { | ||
22908 | static struct stat ac_aggr; | ||
22909 | if (sizeof ac_aggr.st_blksize) | ||
22910 | return 0; | ||
22911 | ; | ||
22912 | return 0; | ||
22913 | } | ||
22914 | _ACEOF | ||
22915 | rm -f conftest.$ac_objext | ||
22916 | if { (ac_try="$ac_compile" | ||
22917 | case "(($ac_try" in | ||
22918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22919 | *) ac_try_echo=$ac_try;; | ||
22920 | esac | ||
22921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22922 | (eval "$ac_compile") 2>conftest.er1 | ||
22923 | ac_status=$? | ||
22924 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22925 | rm -f conftest.er1 | ||
22926 | cat conftest.err >&5 | ||
22927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22928 | (exit $ac_status); } && { | ||
22929 | test -z "$ac_c_werror_flag" || | ||
22930 | test ! -s conftest.err | ||
22931 | } && test -s conftest.$ac_objext; then | ||
22932 | ac_cv_member_struct_stat_st_blksize=yes | ||
22933 | else | ||
22934 | echo "$as_me: failed program was:" >&5 | ||
22935 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22936 | |||
22937 | ac_cv_member_struct_stat_st_blksize=no | ||
22938 | fi | ||
22939 | |||
22940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22941 | fi | ||
22942 | |||
22943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22944 | fi | ||
22945 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
22946 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } | ||
22947 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
22948 | |||
22949 | cat >>confdefs.h <<_ACEOF | ||
22950 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
22951 | _ACEOF | ||
22952 | |||
22953 | |||
22954 | fi | ||
22955 | |||
22956 | { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 | ||
22957 | echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; } | ||
22958 | if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then | ||
22959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22960 | else | ||
22961 | cat >conftest.$ac_ext <<_ACEOF | ||
22962 | /* confdefs.h. */ | ||
22963 | _ACEOF | ||
22964 | cat confdefs.h >>conftest.$ac_ext | ||
22965 | cat >>conftest.$ac_ext <<_ACEOF | ||
22966 | /* end confdefs.h. */ | ||
22967 | |||
22968 | #include <stdio.h> | ||
22969 | #if HAVE_SYS_TYPES_H | ||
22970 | # include <sys/types.h> | ||
22971 | #endif | ||
22972 | #include <netinet/in.h> | ||
22973 | #include <arpa/nameser.h> | ||
22974 | #include <resolv.h> | ||
22975 | |||
22976 | |||
22977 | int | ||
22978 | main () | ||
22979 | { | ||
22980 | static struct __res_state ac_aggr; | ||
22981 | if (ac_aggr.retrans) | ||
22982 | return 0; | ||
22983 | ; | ||
22984 | return 0; | ||
22985 | } | ||
22986 | _ACEOF | ||
22987 | rm -f conftest.$ac_objext | ||
22988 | if { (ac_try="$ac_compile" | ||
22989 | case "(($ac_try" in | ||
22990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22991 | *) ac_try_echo=$ac_try;; | ||
22992 | esac | ||
22993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22994 | (eval "$ac_compile") 2>conftest.er1 | ||
22995 | ac_status=$? | ||
22996 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22997 | rm -f conftest.er1 | ||
22998 | cat conftest.err >&5 | ||
22999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23000 | (exit $ac_status); } && { | ||
23001 | test -z "$ac_c_werror_flag" || | ||
23002 | test ! -s conftest.err | ||
23003 | } && test -s conftest.$ac_objext; then | ||
23004 | ac_cv_member_struct___res_state_retrans=yes | ||
23005 | else | ||
23006 | echo "$as_me: failed program was:" >&5 | ||
23007 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23008 | |||
23009 | cat >conftest.$ac_ext <<_ACEOF | ||
23010 | /* confdefs.h. */ | ||
23011 | _ACEOF | ||
23012 | cat confdefs.h >>conftest.$ac_ext | ||
23013 | cat >>conftest.$ac_ext <<_ACEOF | ||
23014 | /* end confdefs.h. */ | ||
23015 | |||
23016 | #include <stdio.h> | ||
23017 | #if HAVE_SYS_TYPES_H | ||
23018 | # include <sys/types.h> | ||
23019 | #endif | ||
23020 | #include <netinet/in.h> | ||
23021 | #include <arpa/nameser.h> | ||
23022 | #include <resolv.h> | ||
23023 | |||
23024 | |||
23025 | int | ||
23026 | main () | ||
23027 | { | ||
23028 | static struct __res_state ac_aggr; | ||
23029 | if (sizeof ac_aggr.retrans) | ||
23030 | return 0; | ||
23031 | ; | ||
23032 | return 0; | ||
23033 | } | ||
23034 | _ACEOF | ||
23035 | rm -f conftest.$ac_objext | ||
23036 | if { (ac_try="$ac_compile" | ||
23037 | case "(($ac_try" in | ||
23038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23039 | *) ac_try_echo=$ac_try;; | ||
23040 | esac | ||
23041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23042 | (eval "$ac_compile") 2>conftest.er1 | ||
23043 | ac_status=$? | ||
23044 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23045 | rm -f conftest.er1 | ||
23046 | cat conftest.err >&5 | ||
23047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23048 | (exit $ac_status); } && { | ||
23049 | test -z "$ac_c_werror_flag" || | ||
23050 | test ! -s conftest.err | ||
23051 | } && test -s conftest.$ac_objext; then | ||
23052 | ac_cv_member_struct___res_state_retrans=yes | ||
23053 | else | ||
23054 | echo "$as_me: failed program was:" >&5 | ||
23055 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23056 | |||
23057 | ac_cv_member_struct___res_state_retrans=no | ||
23058 | fi | ||
23059 | |||
23060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23061 | fi | ||
23062 | |||
23063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23064 | fi | ||
23065 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 | ||
23066 | echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; } | ||
23067 | if test $ac_cv_member_struct___res_state_retrans = yes; then | ||
23068 | : | ||
23069 | else | ||
23070 | |||
23071 | cat >>confdefs.h <<\_ACEOF | ||
23072 | #define __res_state state | ||
23073 | _ACEOF | ||
23074 | |||
23075 | fi | ||
23076 | |||
23077 | |||
23078 | { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
23079 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
23080 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
23081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23082 | else | ||
23083 | |||
23084 | cat >conftest.$ac_ext <<_ACEOF | ||
23085 | /* confdefs.h. */ | ||
23086 | _ACEOF | ||
23087 | cat confdefs.h >>conftest.$ac_ext | ||
23088 | cat >>conftest.$ac_ext <<_ACEOF | ||
23089 | /* end confdefs.h. */ | ||
23090 | |||
23091 | #include <sys/types.h> | ||
23092 | #include <sys/socket.h> | ||
23093 | |||
23094 | int | ||
23095 | main () | ||
23096 | { | ||
23097 | struct sockaddr_storage s; s.ss_family = 1; | ||
23098 | ; | ||
23099 | return 0; | ||
23100 | } | ||
23101 | _ACEOF | ||
23102 | rm -f conftest.$ac_objext | ||
23103 | if { (ac_try="$ac_compile" | ||
23104 | case "(($ac_try" in | ||
23105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23106 | *) ac_try_echo=$ac_try;; | ||
23107 | esac | ||
23108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23109 | (eval "$ac_compile") 2>conftest.er1 | ||
23110 | ac_status=$? | ||
23111 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23112 | rm -f conftest.er1 | ||
23113 | cat conftest.err >&5 | ||
23114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23115 | (exit $ac_status); } && { | ||
23116 | test -z "$ac_c_werror_flag" || | ||
23117 | test ! -s conftest.err | ||
23118 | } && test -s conftest.$ac_objext; then | ||
23119 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
23120 | else | ||
23121 | echo "$as_me: failed program was:" >&5 | ||
23122 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23123 | |||
23124 | ac_cv_have_ss_family_in_struct_ss="no" | ||
23125 | fi | ||
23126 | |||
23127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23128 | |||
23129 | fi | ||
23130 | { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
23131 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
23132 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
23133 | |||
23134 | cat >>confdefs.h <<\_ACEOF | ||
23135 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
23136 | _ACEOF | ||
23137 | |||
23138 | fi | ||
23139 | |||
23140 | { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
23141 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
23142 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
23143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23144 | else | ||
23145 | |||
23146 | cat >conftest.$ac_ext <<_ACEOF | ||
23147 | /* confdefs.h. */ | ||
23148 | _ACEOF | ||
23149 | cat confdefs.h >>conftest.$ac_ext | ||
23150 | cat >>conftest.$ac_ext <<_ACEOF | ||
23151 | /* end confdefs.h. */ | ||
23152 | |||
23153 | #include <sys/types.h> | ||
23154 | #include <sys/socket.h> | ||
23155 | |||
23156 | int | ||
23157 | main () | ||
23158 | { | ||
23159 | struct sockaddr_storage s; s.__ss_family = 1; | ||
23160 | ; | ||
23161 | return 0; | ||
23162 | } | ||
23163 | _ACEOF | ||
23164 | rm -f conftest.$ac_objext | ||
23165 | if { (ac_try="$ac_compile" | ||
23166 | case "(($ac_try" in | ||
23167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23168 | *) ac_try_echo=$ac_try;; | ||
23169 | esac | ||
23170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23171 | (eval "$ac_compile") 2>conftest.er1 | ||
23172 | ac_status=$? | ||
23173 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23174 | rm -f conftest.er1 | ||
23175 | cat conftest.err >&5 | ||
23176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23177 | (exit $ac_status); } && { | ||
23178 | test -z "$ac_c_werror_flag" || | ||
23179 | test ! -s conftest.err | ||
23180 | } && test -s conftest.$ac_objext; then | ||
23181 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
23182 | else | ||
23183 | echo "$as_me: failed program was:" >&5 | ||
23184 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23185 | |||
23186 | ac_cv_have___ss_family_in_struct_ss="no" | ||
23187 | |||
23188 | fi | ||
23189 | |||
23190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23191 | |||
23192 | fi | ||
23193 | { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
23194 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
23195 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
23196 | |||
23197 | cat >>confdefs.h <<\_ACEOF | ||
23198 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
23199 | _ACEOF | ||
23200 | |||
23201 | fi | ||
23202 | |||
23203 | { echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
23204 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; } | ||
23205 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
23206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23207 | else | ||
23208 | |||
23209 | cat >conftest.$ac_ext <<_ACEOF | ||
23210 | /* confdefs.h. */ | ||
23211 | _ACEOF | ||
23212 | cat confdefs.h >>conftest.$ac_ext | ||
23213 | cat >>conftest.$ac_ext <<_ACEOF | ||
23214 | /* end confdefs.h. */ | ||
23215 | |||
23216 | #include <pwd.h> | ||
23217 | |||
23218 | int | ||
23219 | main () | ||
23220 | { | ||
23221 | struct passwd p; p.pw_class = 0; | ||
23222 | ; | ||
23223 | return 0; | ||
23224 | } | ||
23225 | _ACEOF | ||
23226 | rm -f conftest.$ac_objext | ||
23227 | if { (ac_try="$ac_compile" | ||
23228 | case "(($ac_try" in | ||
23229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23230 | *) ac_try_echo=$ac_try;; | ||
23231 | esac | ||
23232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23233 | (eval "$ac_compile") 2>conftest.er1 | ||
23234 | ac_status=$? | ||
23235 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23236 | rm -f conftest.er1 | ||
23237 | cat conftest.err >&5 | ||
23238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23239 | (exit $ac_status); } && { | ||
23240 | test -z "$ac_c_werror_flag" || | ||
23241 | test ! -s conftest.err | ||
23242 | } && test -s conftest.$ac_objext; then | ||
23243 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
23244 | else | ||
23245 | echo "$as_me: failed program was:" >&5 | ||
23246 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23247 | |||
23248 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
23249 | |||
23250 | fi | ||
23251 | |||
23252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23253 | |||
23254 | fi | ||
23255 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
23256 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; } | ||
23257 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
23258 | |||
23259 | cat >>confdefs.h <<\_ACEOF | ||
23260 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
23261 | _ACEOF | ||
23262 | |||
23263 | fi | ||
23264 | |||
23265 | { echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
23266 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; } | ||
23267 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
23268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23269 | else | ||
23270 | |||
23271 | cat >conftest.$ac_ext <<_ACEOF | ||
23272 | /* confdefs.h. */ | ||
23273 | _ACEOF | ||
23274 | cat confdefs.h >>conftest.$ac_ext | ||
23275 | cat >>conftest.$ac_ext <<_ACEOF | ||
23276 | /* end confdefs.h. */ | ||
23277 | |||
23278 | #include <pwd.h> | ||
23279 | |||
23280 | int | ||
23281 | main () | ||
23282 | { | ||
23283 | struct passwd p; p.pw_expire = 0; | ||
23284 | ; | ||
23285 | return 0; | ||
23286 | } | ||
23287 | _ACEOF | ||
23288 | rm -f conftest.$ac_objext | ||
23289 | if { (ac_try="$ac_compile" | ||
23290 | case "(($ac_try" in | ||
23291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23292 | *) ac_try_echo=$ac_try;; | ||
23293 | esac | ||
23294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23295 | (eval "$ac_compile") 2>conftest.er1 | ||
23296 | ac_status=$? | ||
23297 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23298 | rm -f conftest.er1 | ||
23299 | cat conftest.err >&5 | ||
23300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23301 | (exit $ac_status); } && { | ||
23302 | test -z "$ac_c_werror_flag" || | ||
23303 | test ! -s conftest.err | ||
23304 | } && test -s conftest.$ac_objext; then | ||
23305 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
23306 | else | ||
23307 | echo "$as_me: failed program was:" >&5 | ||
23308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23309 | |||
23310 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
23311 | |||
23312 | fi | ||
23313 | |||
23314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23315 | |||
23316 | fi | ||
23317 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
23318 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; } | ||
23319 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
23320 | |||
23321 | cat >>confdefs.h <<\_ACEOF | ||
23322 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
23323 | _ACEOF | ||
23324 | |||
23325 | fi | ||
23326 | |||
23327 | { echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
23328 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; } | ||
23329 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
23330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23331 | else | ||
23332 | |||
23333 | cat >conftest.$ac_ext <<_ACEOF | ||
23334 | /* confdefs.h. */ | ||
23335 | _ACEOF | ||
23336 | cat confdefs.h >>conftest.$ac_ext | ||
23337 | cat >>conftest.$ac_ext <<_ACEOF | ||
23338 | /* end confdefs.h. */ | ||
23339 | |||
23340 | #include <pwd.h> | ||
23341 | |||
23342 | int | ||
23343 | main () | ||
23344 | { | ||
23345 | struct passwd p; p.pw_change = 0; | ||
23346 | ; | ||
23347 | return 0; | ||
23348 | } | ||
23349 | _ACEOF | ||
23350 | rm -f conftest.$ac_objext | ||
23351 | if { (ac_try="$ac_compile" | ||
23352 | case "(($ac_try" in | ||
23353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23354 | *) ac_try_echo=$ac_try;; | ||
23355 | esac | ||
23356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23357 | (eval "$ac_compile") 2>conftest.er1 | ||
23358 | ac_status=$? | ||
23359 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23360 | rm -f conftest.er1 | ||
23361 | cat conftest.err >&5 | ||
23362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23363 | (exit $ac_status); } && { | ||
23364 | test -z "$ac_c_werror_flag" || | ||
23365 | test ! -s conftest.err | ||
23366 | } && test -s conftest.$ac_objext; then | ||
23367 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
23368 | else | ||
23369 | echo "$as_me: failed program was:" >&5 | ||
23370 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23371 | |||
23372 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
23373 | |||
23374 | fi | ||
23375 | |||
23376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23377 | |||
23378 | fi | ||
23379 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
23380 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; } | ||
23381 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
23382 | |||
23383 | cat >>confdefs.h <<\_ACEOF | ||
23384 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
23385 | _ACEOF | ||
23386 | |||
23387 | fi | ||
23388 | |||
23389 | { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
23390 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; } | ||
23391 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
23392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23393 | else | ||
23394 | |||
23395 | cat >conftest.$ac_ext <<_ACEOF | ||
23396 | |||
23397 | #include <sys/types.h> | ||
23398 | #include <sys/socket.h> | ||
23399 | #include <sys/uio.h> | ||
23400 | int main() { | ||
23401 | #ifdef msg_accrights | ||
23402 | #error "msg_accrights is a macro" | ||
23403 | exit(1); | ||
23404 | #endif | ||
23405 | struct msghdr m; | ||
23406 | m.msg_accrights = 0; | ||
23407 | exit(0); | ||
23408 | } | ||
23409 | |||
23410 | _ACEOF | ||
23411 | rm -f conftest.$ac_objext | ||
23412 | if { (ac_try="$ac_compile" | ||
23413 | case "(($ac_try" in | ||
23414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23415 | *) ac_try_echo=$ac_try;; | ||
23416 | esac | ||
23417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23418 | (eval "$ac_compile") 2>conftest.er1 | ||
23419 | ac_status=$? | ||
23420 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23421 | rm -f conftest.er1 | ||
23422 | cat conftest.err >&5 | ||
23423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23424 | (exit $ac_status); } && { | ||
23425 | test -z "$ac_c_werror_flag" || | ||
23426 | test ! -s conftest.err | ||
23427 | } && test -s conftest.$ac_objext; then | ||
23428 | ac_cv_have_accrights_in_msghdr="yes" | ||
23429 | else | ||
23430 | echo "$as_me: failed program was:" >&5 | ||
23431 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23432 | |||
23433 | ac_cv_have_accrights_in_msghdr="no" | ||
23434 | |||
23435 | fi | ||
23436 | |||
23437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23438 | |||
23439 | fi | ||
23440 | { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
23441 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; } | ||
23442 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
23443 | |||
23444 | cat >>confdefs.h <<\_ACEOF | ||
23445 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
23446 | _ACEOF | ||
23447 | |||
23448 | fi | ||
23449 | |||
23450 | { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
23451 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; } | ||
23452 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
23453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23454 | else | ||
23455 | |||
23456 | cat >conftest.$ac_ext <<_ACEOF | ||
23457 | |||
23458 | #include <sys/types.h> | ||
23459 | #include <sys/socket.h> | ||
23460 | #include <sys/uio.h> | ||
23461 | int main() { | ||
23462 | #ifdef msg_control | ||
23463 | #error "msg_control is a macro" | ||
23464 | exit(1); | ||
23465 | #endif | ||
23466 | struct msghdr m; | ||
23467 | m.msg_control = 0; | ||
23468 | exit(0); | ||
23469 | } | ||
23470 | |||
23471 | _ACEOF | ||
23472 | rm -f conftest.$ac_objext | ||
23473 | if { (ac_try="$ac_compile" | ||
23474 | case "(($ac_try" in | ||
23475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23476 | *) ac_try_echo=$ac_try;; | ||
23477 | esac | ||
23478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23479 | (eval "$ac_compile") 2>conftest.er1 | ||
23480 | ac_status=$? | ||
23481 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23482 | rm -f conftest.er1 | ||
23483 | cat conftest.err >&5 | ||
23484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23485 | (exit $ac_status); } && { | ||
23486 | test -z "$ac_c_werror_flag" || | ||
23487 | test ! -s conftest.err | ||
23488 | } && test -s conftest.$ac_objext; then | ||
23489 | ac_cv_have_control_in_msghdr="yes" | ||
23490 | else | ||
23491 | echo "$as_me: failed program was:" >&5 | ||
23492 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23493 | |||
23494 | ac_cv_have_control_in_msghdr="no" | ||
23495 | |||
23496 | fi | ||
23497 | |||
23498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23499 | |||
23500 | fi | ||
23501 | { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
23502 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; } | ||
23503 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
23504 | |||
23505 | cat >>confdefs.h <<\_ACEOF | ||
23506 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
23507 | _ACEOF | ||
23508 | |||
23509 | fi | ||
23510 | |||
23511 | { echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
23512 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; } | ||
23513 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
23514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23515 | else | ||
23516 | |||
23517 | cat >conftest.$ac_ext <<_ACEOF | ||
23518 | /* confdefs.h. */ | ||
23519 | _ACEOF | ||
23520 | cat confdefs.h >>conftest.$ac_ext | ||
23521 | cat >>conftest.$ac_ext <<_ACEOF | ||
23522 | /* end confdefs.h. */ | ||
23523 | |||
23524 | int | ||
23525 | main () | ||
23526 | { | ||
23527 | extern char *__progname; printf("%s", __progname); | ||
23528 | ; | ||
23529 | return 0; | ||
23530 | } | ||
23531 | _ACEOF | ||
23532 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23533 | if { (ac_try="$ac_link" | ||
23534 | case "(($ac_try" in | ||
23535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23536 | *) ac_try_echo=$ac_try;; | ||
23537 | esac | ||
23538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23539 | (eval "$ac_link") 2>conftest.er1 | ||
23540 | ac_status=$? | ||
23541 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23542 | rm -f conftest.er1 | ||
23543 | cat conftest.err >&5 | ||
23544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23545 | (exit $ac_status); } && { | ||
23546 | test -z "$ac_c_werror_flag" || | ||
23547 | test ! -s conftest.err | ||
23548 | } && test -s conftest$ac_exeext && | ||
23549 | $as_test_x conftest$ac_exeext; then | ||
23550 | ac_cv_libc_defines___progname="yes" | ||
23551 | else | ||
23552 | echo "$as_me: failed program was:" >&5 | ||
23553 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23554 | |||
23555 | ac_cv_libc_defines___progname="no" | ||
23556 | |||
23557 | fi | ||
23558 | |||
23559 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23560 | conftest$ac_exeext conftest.$ac_ext | ||
23561 | |||
23562 | fi | ||
23563 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
23564 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; } | ||
23565 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
23566 | |||
23567 | cat >>confdefs.h <<\_ACEOF | ||
23568 | #define HAVE___PROGNAME 1 | ||
23569 | _ACEOF | ||
23570 | |||
23571 | fi | ||
23572 | |||
23573 | { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
23574 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; } | ||
23575 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
23576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23577 | else | ||
23578 | |||
23579 | cat >conftest.$ac_ext <<_ACEOF | ||
23580 | /* confdefs.h. */ | ||
23581 | _ACEOF | ||
23582 | cat confdefs.h >>conftest.$ac_ext | ||
23583 | cat >>conftest.$ac_ext <<_ACEOF | ||
23584 | /* end confdefs.h. */ | ||
23585 | |||
23586 | #include <stdio.h> | ||
23587 | |||
23588 | int | ||
23589 | main () | ||
23590 | { | ||
23591 | printf("%s", __FUNCTION__); | ||
23592 | ; | ||
23593 | return 0; | ||
23594 | } | ||
23595 | _ACEOF | ||
23596 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23597 | if { (ac_try="$ac_link" | ||
23598 | case "(($ac_try" in | ||
23599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23600 | *) ac_try_echo=$ac_try;; | ||
23601 | esac | ||
23602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23603 | (eval "$ac_link") 2>conftest.er1 | ||
23604 | ac_status=$? | ||
23605 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23606 | rm -f conftest.er1 | ||
23607 | cat conftest.err >&5 | ||
23608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23609 | (exit $ac_status); } && { | ||
23610 | test -z "$ac_c_werror_flag" || | ||
23611 | test ! -s conftest.err | ||
23612 | } && test -s conftest$ac_exeext && | ||
23613 | $as_test_x conftest$ac_exeext; then | ||
23614 | ac_cv_cc_implements___FUNCTION__="yes" | ||
23615 | else | ||
23616 | echo "$as_me: failed program was:" >&5 | ||
23617 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23618 | |||
23619 | ac_cv_cc_implements___FUNCTION__="no" | ||
23620 | |||
23621 | fi | ||
23622 | |||
23623 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23624 | conftest$ac_exeext conftest.$ac_ext | ||
23625 | |||
23626 | fi | ||
23627 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
23628 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
23629 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
23630 | |||
23631 | cat >>confdefs.h <<\_ACEOF | ||
23632 | #define HAVE___FUNCTION__ 1 | ||
23633 | _ACEOF | ||
23634 | |||
23635 | fi | ||
23636 | |||
23637 | { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
23638 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; } | ||
23639 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
23640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23641 | else | ||
23642 | |||
23643 | cat >conftest.$ac_ext <<_ACEOF | ||
23644 | /* confdefs.h. */ | ||
23645 | _ACEOF | ||
23646 | cat confdefs.h >>conftest.$ac_ext | ||
23647 | cat >>conftest.$ac_ext <<_ACEOF | ||
23648 | /* end confdefs.h. */ | ||
23649 | |||
23650 | #include <stdio.h> | ||
23651 | |||
23652 | int | ||
23653 | main () | ||
23654 | { | ||
23655 | printf("%s", __func__); | ||
23656 | ; | ||
23657 | return 0; | ||
23658 | } | ||
23659 | _ACEOF | ||
23660 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23661 | if { (ac_try="$ac_link" | ||
23662 | case "(($ac_try" in | ||
23663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23664 | *) ac_try_echo=$ac_try;; | ||
23665 | esac | ||
23666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23667 | (eval "$ac_link") 2>conftest.er1 | ||
23668 | ac_status=$? | ||
23669 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23670 | rm -f conftest.er1 | ||
23671 | cat conftest.err >&5 | ||
23672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23673 | (exit $ac_status); } && { | ||
23674 | test -z "$ac_c_werror_flag" || | ||
23675 | test ! -s conftest.err | ||
23676 | } && test -s conftest$ac_exeext && | ||
23677 | $as_test_x conftest$ac_exeext; then | ||
23678 | ac_cv_cc_implements___func__="yes" | ||
23679 | else | ||
23680 | echo "$as_me: failed program was:" >&5 | ||
23681 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23682 | |||
23683 | ac_cv_cc_implements___func__="no" | ||
23684 | |||
23685 | fi | ||
23686 | |||
23687 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23688 | conftest$ac_exeext conftest.$ac_ext | ||
23689 | |||
23690 | fi | ||
23691 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
23692 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; } | ||
23693 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
23694 | |||
23695 | cat >>confdefs.h <<\_ACEOF | ||
23696 | #define HAVE___func__ 1 | ||
23697 | _ACEOF | ||
23698 | |||
23699 | fi | ||
23700 | |||
23701 | { echo "$as_me:$LINENO: checking whether va_copy exists" >&5 | ||
23702 | echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; } | ||
23703 | if test "${ac_cv_have_va_copy+set}" = set; then | ||
23704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23705 | else | ||
23706 | |||
23707 | cat >conftest.$ac_ext <<_ACEOF | ||
23708 | /* confdefs.h. */ | ||
23709 | _ACEOF | ||
23710 | cat confdefs.h >>conftest.$ac_ext | ||
23711 | cat >>conftest.$ac_ext <<_ACEOF | ||
23712 | /* end confdefs.h. */ | ||
23713 | #include <stdarg.h> | ||
23714 | va_list x,y; | ||
23715 | int | ||
23716 | main () | ||
23717 | { | ||
23718 | va_copy(x,y); | ||
23719 | ; | ||
23720 | return 0; | ||
23721 | } | ||
23722 | _ACEOF | ||
23723 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23724 | if { (ac_try="$ac_link" | ||
23725 | case "(($ac_try" in | ||
23726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23727 | *) ac_try_echo=$ac_try;; | ||
23728 | esac | ||
23729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23730 | (eval "$ac_link") 2>conftest.er1 | ||
23731 | ac_status=$? | ||
23732 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23733 | rm -f conftest.er1 | ||
23734 | cat conftest.err >&5 | ||
23735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23736 | (exit $ac_status); } && { | ||
23737 | test -z "$ac_c_werror_flag" || | ||
23738 | test ! -s conftest.err | ||
23739 | } && test -s conftest$ac_exeext && | ||
23740 | $as_test_x conftest$ac_exeext; then | ||
23741 | ac_cv_have_va_copy="yes" | ||
23742 | else | ||
23743 | echo "$as_me: failed program was:" >&5 | ||
23744 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23745 | |||
23746 | ac_cv_have_va_copy="no" | ||
23747 | |||
23748 | fi | ||
23749 | |||
23750 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23751 | conftest$ac_exeext conftest.$ac_ext | ||
23752 | |||
23753 | fi | ||
23754 | { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 | ||
23755 | echo "${ECHO_T}$ac_cv_have_va_copy" >&6; } | ||
23756 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
23757 | |||
23758 | cat >>confdefs.h <<\_ACEOF | ||
23759 | #define HAVE_VA_COPY 1 | ||
23760 | _ACEOF | ||
23761 | |||
23762 | fi | ||
23763 | |||
23764 | { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 | ||
23765 | echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; } | ||
23766 | if test "${ac_cv_have___va_copy+set}" = set; then | ||
23767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23768 | else | ||
23769 | |||
23770 | cat >conftest.$ac_ext <<_ACEOF | ||
23771 | /* confdefs.h. */ | ||
23772 | _ACEOF | ||
23773 | cat confdefs.h >>conftest.$ac_ext | ||
23774 | cat >>conftest.$ac_ext <<_ACEOF | ||
23775 | /* end confdefs.h. */ | ||
23776 | #include <stdarg.h> | ||
23777 | va_list x,y; | ||
23778 | int | ||
23779 | main () | ||
23780 | { | ||
23781 | __va_copy(x,y); | ||
23782 | ; | ||
23783 | return 0; | ||
23784 | } | ||
23785 | _ACEOF | ||
23786 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23787 | if { (ac_try="$ac_link" | ||
23788 | case "(($ac_try" in | ||
23789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23790 | *) ac_try_echo=$ac_try;; | ||
23791 | esac | ||
23792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23793 | (eval "$ac_link") 2>conftest.er1 | ||
23794 | ac_status=$? | ||
23795 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23796 | rm -f conftest.er1 | ||
23797 | cat conftest.err >&5 | ||
23798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23799 | (exit $ac_status); } && { | ||
23800 | test -z "$ac_c_werror_flag" || | ||
23801 | test ! -s conftest.err | ||
23802 | } && test -s conftest$ac_exeext && | ||
23803 | $as_test_x conftest$ac_exeext; then | ||
23804 | ac_cv_have___va_copy="yes" | ||
23805 | else | ||
23806 | echo "$as_me: failed program was:" >&5 | ||
23807 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23808 | |||
23809 | ac_cv_have___va_copy="no" | ||
23810 | |||
23811 | fi | ||
23812 | |||
23813 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23814 | conftest$ac_exeext conftest.$ac_ext | ||
23815 | |||
23816 | fi | ||
23817 | { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 | ||
23818 | echo "${ECHO_T}$ac_cv_have___va_copy" >&6; } | ||
23819 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
23820 | |||
23821 | cat >>confdefs.h <<\_ACEOF | ||
23822 | #define HAVE___VA_COPY 1 | ||
23823 | _ACEOF | ||
23824 | |||
23825 | fi | ||
23826 | |||
23827 | { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
23828 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; } | ||
23829 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
23830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23831 | else | ||
23832 | |||
23833 | cat >conftest.$ac_ext <<_ACEOF | ||
23834 | /* confdefs.h. */ | ||
23835 | _ACEOF | ||
23836 | cat confdefs.h >>conftest.$ac_ext | ||
23837 | cat >>conftest.$ac_ext <<_ACEOF | ||
23838 | /* end confdefs.h. */ | ||
23839 | |||
23840 | #include <getopt.h> | ||
23841 | |||
23842 | int | ||
23843 | main () | ||
23844 | { | ||
23845 | extern int optreset; optreset = 0; | ||
23846 | ; | ||
23847 | return 0; | ||
23848 | } | ||
23849 | _ACEOF | ||
23850 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23851 | if { (ac_try="$ac_link" | ||
23852 | case "(($ac_try" in | ||
23853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23854 | *) ac_try_echo=$ac_try;; | ||
23855 | esac | ||
23856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23857 | (eval "$ac_link") 2>conftest.er1 | ||
23858 | ac_status=$? | ||
23859 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23860 | rm -f conftest.er1 | ||
23861 | cat conftest.err >&5 | ||
23862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23863 | (exit $ac_status); } && { | ||
23864 | test -z "$ac_c_werror_flag" || | ||
23865 | test ! -s conftest.err | ||
23866 | } && test -s conftest$ac_exeext && | ||
23867 | $as_test_x conftest$ac_exeext; then | ||
23868 | ac_cv_have_getopt_optreset="yes" | ||
23869 | else | ||
23870 | echo "$as_me: failed program was:" >&5 | ||
23871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23872 | |||
23873 | ac_cv_have_getopt_optreset="no" | ||
23874 | |||
23875 | fi | ||
23876 | |||
23877 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23878 | conftest$ac_exeext conftest.$ac_ext | ||
23879 | |||
23880 | fi | ||
23881 | { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
23882 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; } | ||
23883 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
23884 | |||
23885 | cat >>confdefs.h <<\_ACEOF | ||
23886 | #define HAVE_GETOPT_OPTRESET 1 | ||
23887 | _ACEOF | ||
23888 | |||
23889 | fi | ||
23890 | |||
23891 | { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
23892 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; } | ||
23893 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
23894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23895 | else | ||
23896 | |||
23897 | cat >conftest.$ac_ext <<_ACEOF | ||
23898 | /* confdefs.h. */ | ||
23899 | _ACEOF | ||
23900 | cat confdefs.h >>conftest.$ac_ext | ||
23901 | cat >>conftest.$ac_ext <<_ACEOF | ||
23902 | /* end confdefs.h. */ | ||
23903 | |||
23904 | int | ||
23905 | main () | ||
23906 | { | ||
23907 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
23908 | ; | ||
23909 | return 0; | ||
23910 | } | ||
23911 | _ACEOF | ||
23912 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23913 | if { (ac_try="$ac_link" | ||
23914 | case "(($ac_try" in | ||
23915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23916 | *) ac_try_echo=$ac_try;; | ||
23917 | esac | ||
23918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23919 | (eval "$ac_link") 2>conftest.er1 | ||
23920 | ac_status=$? | ||
23921 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23922 | rm -f conftest.er1 | ||
23923 | cat conftest.err >&5 | ||
23924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23925 | (exit $ac_status); } && { | ||
23926 | test -z "$ac_c_werror_flag" || | ||
23927 | test ! -s conftest.err | ||
23928 | } && test -s conftest$ac_exeext && | ||
23929 | $as_test_x conftest$ac_exeext; then | ||
23930 | ac_cv_libc_defines_sys_errlist="yes" | ||
23931 | else | ||
23932 | echo "$as_me: failed program was:" >&5 | ||
23933 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23934 | |||
23935 | ac_cv_libc_defines_sys_errlist="no" | ||
23936 | |||
23937 | fi | ||
23938 | |||
23939 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23940 | conftest$ac_exeext conftest.$ac_ext | ||
23941 | |||
23942 | fi | ||
23943 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
23944 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; } | ||
23945 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
23946 | |||
23947 | cat >>confdefs.h <<\_ACEOF | ||
23948 | #define HAVE_SYS_ERRLIST 1 | ||
23949 | _ACEOF | ||
23950 | |||
23951 | fi | ||
23952 | |||
23953 | |||
23954 | { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
23955 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; } | ||
23956 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
23957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23958 | else | ||
23959 | |||
23960 | cat >conftest.$ac_ext <<_ACEOF | ||
23961 | /* confdefs.h. */ | ||
23962 | _ACEOF | ||
23963 | cat confdefs.h >>conftest.$ac_ext | ||
23964 | cat >>conftest.$ac_ext <<_ACEOF | ||
23965 | /* end confdefs.h. */ | ||
23966 | |||
23967 | int | ||
23968 | main () | ||
23969 | { | ||
23970 | extern int sys_nerr; printf("%i", sys_nerr); | ||
23971 | ; | ||
23972 | return 0; | ||
23973 | } | ||
23974 | _ACEOF | ||
23975 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23976 | if { (ac_try="$ac_link" | ||
23977 | case "(($ac_try" in | ||
23978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23979 | *) ac_try_echo=$ac_try;; | ||
23980 | esac | ||
23981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23982 | (eval "$ac_link") 2>conftest.er1 | ||
23983 | ac_status=$? | ||
23984 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23985 | rm -f conftest.er1 | ||
23986 | cat conftest.err >&5 | ||
23987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23988 | (exit $ac_status); } && { | ||
23989 | test -z "$ac_c_werror_flag" || | ||
23990 | test ! -s conftest.err | ||
23991 | } && test -s conftest$ac_exeext && | ||
23992 | $as_test_x conftest$ac_exeext; then | ||
23993 | ac_cv_libc_defines_sys_nerr="yes" | ||
23994 | else | ||
23995 | echo "$as_me: failed program was:" >&5 | ||
23996 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23997 | |||
23998 | ac_cv_libc_defines_sys_nerr="no" | ||
23999 | |||
24000 | fi | ||
24001 | |||
24002 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24003 | conftest$ac_exeext conftest.$ac_ext | ||
24004 | |||
24005 | fi | ||
24006 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
24007 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; } | ||
24008 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
24009 | |||
24010 | cat >>confdefs.h <<\_ACEOF | ||
24011 | #define HAVE_SYS_NERR 1 | ||
24012 | _ACEOF | ||
24013 | |||
24014 | fi | ||
24015 | |||
24016 | SCARD_MSG="no" | ||
24017 | # Check whether user wants sectok support | ||
24018 | |||
24019 | # Check whether --with-sectok was given. | ||
24020 | if test "${with_sectok+set}" = set; then | ||
24021 | withval=$with_sectok; | ||
24022 | if test "x$withval" != "xno" ; then | ||
24023 | if test "x$withval" != "xyes" ; then | ||
24024 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
24025 | LDFLAGS="$LDFLAGS -L${withval}" | ||
24026 | if test ! -z "$need_dash_r" ; then | ||
24027 | LDFLAGS="$LDFLAGS -R${withval}" | ||
24028 | fi | ||
24029 | if test ! -z "$blibpath" ; then | ||
24030 | blibpath="$blibpath:${withval}" | ||
24031 | fi | ||
24032 | fi | ||
24033 | |||
24034 | for ac_header in sectok.h | ||
24035 | do | ||
24036 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
24037 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24038 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
24039 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
24040 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24042 | fi | ||
24043 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
24044 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
24045 | echo "${ECHO_T}$ac_res" >&6; } | ||
24046 | else | ||
24047 | # Is the header compilable? | ||
24048 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
24049 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
24050 | cat >conftest.$ac_ext <<_ACEOF | ||
24051 | /* confdefs.h. */ | ||
24052 | _ACEOF | ||
24053 | cat confdefs.h >>conftest.$ac_ext | ||
24054 | cat >>conftest.$ac_ext <<_ACEOF | ||
24055 | /* end confdefs.h. */ | ||
24056 | $ac_includes_default | ||
24057 | #include <$ac_header> | ||
24058 | _ACEOF | ||
24059 | rm -f conftest.$ac_objext | ||
24060 | if { (ac_try="$ac_compile" | ||
24061 | case "(($ac_try" in | ||
24062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24063 | *) ac_try_echo=$ac_try;; | ||
24064 | esac | ||
24065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24066 | (eval "$ac_compile") 2>conftest.er1 | ||
24067 | ac_status=$? | ||
24068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24069 | rm -f conftest.er1 | ||
24070 | cat conftest.err >&5 | ||
24071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24072 | (exit $ac_status); } && { | ||
24073 | test -z "$ac_c_werror_flag" || | ||
24074 | test ! -s conftest.err | ||
24075 | } && test -s conftest.$ac_objext; then | ||
24076 | ac_header_compiler=yes | ||
24077 | else | ||
24078 | echo "$as_me: failed program was:" >&5 | ||
24079 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24080 | |||
24081 | ac_header_compiler=no | ||
24082 | fi | ||
24083 | |||
24084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24085 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
24086 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
24087 | |||
24088 | # Is the header present? | ||
24089 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
24090 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
24091 | cat >conftest.$ac_ext <<_ACEOF | ||
24092 | /* confdefs.h. */ | ||
24093 | _ACEOF | ||
24094 | cat confdefs.h >>conftest.$ac_ext | ||
24095 | cat >>conftest.$ac_ext <<_ACEOF | ||
24096 | /* end confdefs.h. */ | ||
24097 | #include <$ac_header> | ||
24098 | _ACEOF | ||
24099 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
24100 | case "(($ac_try" in | ||
24101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24102 | *) ac_try_echo=$ac_try;; | ||
24103 | esac | ||
24104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24105 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
24106 | ac_status=$? | ||
24107 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24108 | rm -f conftest.er1 | ||
24109 | cat conftest.err >&5 | ||
24110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24111 | (exit $ac_status); } >/dev/null && { | ||
24112 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
24113 | test ! -s conftest.err | ||
24114 | }; then | ||
24115 | ac_header_preproc=yes | ||
24116 | else | ||
24117 | echo "$as_me: failed program was:" >&5 | ||
24118 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24119 | |||
24120 | ac_header_preproc=no | ||
24121 | fi | ||
24122 | |||
24123 | rm -f conftest.err conftest.$ac_ext | ||
24124 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
24125 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
24126 | |||
24127 | # So? What about this header? | ||
24128 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
24129 | yes:no: ) | ||
24130 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
24131 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
24132 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
24133 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
24134 | ac_header_preproc=yes | ||
24135 | ;; | ||
24136 | no:yes:* ) | ||
24137 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
24138 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
24139 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
24140 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
24141 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
24142 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
24143 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
24144 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
24145 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
24146 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
24147 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
24148 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
24149 | ( cat <<\_ASBOX | ||
24150 | ## ------------------------------------------- ## | ||
24151 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
24152 | ## ------------------------------------------- ## | ||
24153 | _ASBOX | ||
24154 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
24155 | ;; | ||
24156 | esac | ||
24157 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
24158 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
24159 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24161 | else | ||
24162 | eval "$as_ac_Header=\$ac_header_preproc" | ||
24163 | fi | ||
24164 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
24165 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
24166 | echo "${ECHO_T}$ac_res" >&6; } | ||
24167 | |||
24168 | fi | ||
24169 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
24170 | cat >>confdefs.h <<_ACEOF | ||
24171 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
24172 | _ACEOF | ||
24173 | |||
24174 | fi | ||
24175 | |||
24176 | done | ||
24177 | |||
24178 | if test "$ac_cv_header_sectok_h" != yes; then | ||
24179 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
24180 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
24181 | { (exit 1); exit 1; }; } | ||
24182 | fi | ||
24183 | |||
24184 | { echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
24185 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; } | ||
24186 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
24187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24188 | else | ||
24189 | ac_check_lib_save_LIBS=$LIBS | ||
24190 | LIBS="-lsectok $LIBS" | ||
24191 | cat >conftest.$ac_ext <<_ACEOF | ||
24192 | /* confdefs.h. */ | ||
24193 | _ACEOF | ||
24194 | cat confdefs.h >>conftest.$ac_ext | ||
24195 | cat >>conftest.$ac_ext <<_ACEOF | ||
24196 | /* end confdefs.h. */ | ||
24197 | |||
24198 | /* Override any GCC internal prototype to avoid an error. | ||
24199 | Use char because int might match the return type of a GCC | ||
24200 | builtin and then its argument prototype would still apply. */ | ||
24201 | #ifdef __cplusplus | ||
24202 | extern "C" | ||
24203 | #endif | ||
24204 | char sectok_open (); | ||
24205 | int | ||
24206 | main () | ||
24207 | { | ||
24208 | return sectok_open (); | ||
24209 | ; | ||
24210 | return 0; | ||
24211 | } | ||
24212 | _ACEOF | ||
24213 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24214 | if { (ac_try="$ac_link" | ||
24215 | case "(($ac_try" in | ||
24216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24217 | *) ac_try_echo=$ac_try;; | ||
24218 | esac | ||
24219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24220 | (eval "$ac_link") 2>conftest.er1 | ||
24221 | ac_status=$? | ||
24222 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24223 | rm -f conftest.er1 | ||
24224 | cat conftest.err >&5 | ||
24225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24226 | (exit $ac_status); } && { | ||
24227 | test -z "$ac_c_werror_flag" || | ||
24228 | test ! -s conftest.err | ||
24229 | } && test -s conftest$ac_exeext && | ||
24230 | $as_test_x conftest$ac_exeext; then | ||
24231 | ac_cv_lib_sectok_sectok_open=yes | ||
24232 | else | ||
24233 | echo "$as_me: failed program was:" >&5 | ||
24234 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24235 | |||
24236 | ac_cv_lib_sectok_sectok_open=no | ||
24237 | fi | ||
24238 | |||
24239 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24240 | conftest$ac_exeext conftest.$ac_ext | ||
24241 | LIBS=$ac_check_lib_save_LIBS | ||
24242 | fi | ||
24243 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
24244 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; } | ||
24245 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
24246 | cat >>confdefs.h <<_ACEOF | ||
24247 | #define HAVE_LIBSECTOK 1 | ||
24248 | _ACEOF | ||
24249 | |||
24250 | LIBS="-lsectok $LIBS" | ||
24251 | |||
24252 | fi | ||
24253 | |||
24254 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
24255 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
24256 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
24257 | { (exit 1); exit 1; }; } | ||
24258 | fi | ||
24259 | |||
24260 | cat >>confdefs.h <<\_ACEOF | ||
24261 | #define SMARTCARD 1 | ||
24262 | _ACEOF | ||
24263 | |||
24264 | |||
24265 | cat >>confdefs.h <<\_ACEOF | ||
24266 | #define USE_SECTOK 1 | ||
24267 | _ACEOF | ||
24268 | |||
24269 | SCARD_MSG="yes, using sectok" | ||
24270 | fi | ||
24271 | |||
24272 | |||
24273 | fi | ||
24274 | |||
24275 | |||
24276 | # Check whether user wants OpenSC support | ||
24277 | OPENSC_CONFIG="no" | ||
24278 | |||
24279 | # Check whether --with-opensc was given. | ||
24280 | if test "${with_opensc+set}" = set; then | ||
24281 | withval=$with_opensc; | ||
24282 | if test "x$withval" != "xno" ; then | ||
24283 | if test "x$withval" != "xyes" ; then | ||
24284 | OPENSC_CONFIG=$withval/bin/opensc-config | ||
24285 | else | ||
24286 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
24287 | set dummy opensc-config; ac_word=$2 | ||
24288 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
24289 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
24290 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
24291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24292 | else | ||
24293 | case $OPENSC_CONFIG in | ||
24294 | [\\/]* | ?:[\\/]*) | ||
24295 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
24296 | ;; | ||
24297 | *) | ||
24298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
24299 | for as_dir in $PATH | ||
24300 | do | ||
24301 | IFS=$as_save_IFS | ||
24302 | test -z "$as_dir" && as_dir=. | ||
24303 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
24304 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
24305 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
24306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
24307 | break 2 | ||
24308 | fi | ||
24309 | done | ||
24310 | done | ||
24311 | IFS=$as_save_IFS | ||
24312 | |||
24313 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
24314 | ;; | ||
24315 | esac | ||
24316 | fi | ||
24317 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
24318 | if test -n "$OPENSC_CONFIG"; then | ||
24319 | { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
24320 | echo "${ECHO_T}$OPENSC_CONFIG" >&6; } | ||
24321 | else | ||
24322 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24323 | echo "${ECHO_T}no" >&6; } | ||
24324 | fi | ||
24325 | |||
24326 | |||
24327 | fi | ||
24328 | if test "$OPENSC_CONFIG" != "no"; then | ||
24329 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
24330 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
24331 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
24332 | LIBS="$LIBS $LIBOPENSC_LIBS" | ||
24333 | cat >>confdefs.h <<\_ACEOF | ||
24334 | #define SMARTCARD 1 | ||
24335 | _ACEOF | ||
24336 | |||
24337 | |||
24338 | cat >>confdefs.h <<\_ACEOF | ||
24339 | #define USE_OPENSC 1 | ||
24340 | _ACEOF | ||
24341 | |||
24342 | SCARD_MSG="yes, using OpenSC" | ||
24343 | fi | ||
24344 | fi | ||
24345 | |||
24346 | |||
24347 | fi | ||
24348 | |||
24349 | |||
24350 | # Check libraries needed by DNS fingerprint support | ||
24351 | { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
24352 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; } | ||
24353 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
24354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24355 | else | ||
24356 | ac_func_search_save_LIBS=$LIBS | ||
24357 | cat >conftest.$ac_ext <<_ACEOF | ||
24358 | /* confdefs.h. */ | ||
24359 | _ACEOF | ||
24360 | cat confdefs.h >>conftest.$ac_ext | ||
24361 | cat >>conftest.$ac_ext <<_ACEOF | ||
24362 | /* end confdefs.h. */ | ||
24363 | |||
24364 | /* Override any GCC internal prototype to avoid an error. | ||
24365 | Use char because int might match the return type of a GCC | ||
24366 | builtin and then its argument prototype would still apply. */ | ||
24367 | #ifdef __cplusplus | ||
24368 | extern "C" | ||
24369 | #endif | ||
24370 | char getrrsetbyname (); | ||
24371 | int | ||
24372 | main () | ||
24373 | { | ||
24374 | return getrrsetbyname (); | ||
24375 | ; | ||
24376 | return 0; | ||
24377 | } | ||
24378 | _ACEOF | ||
24379 | for ac_lib in '' resolv; do | ||
24380 | if test -z "$ac_lib"; then | ||
24381 | ac_res="none required" | ||
24382 | else | ||
24383 | ac_res=-l$ac_lib | ||
24384 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
24385 | fi | ||
24386 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24387 | if { (ac_try="$ac_link" | ||
24388 | case "(($ac_try" in | ||
24389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24390 | *) ac_try_echo=$ac_try;; | ||
24391 | esac | ||
24392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24393 | (eval "$ac_link") 2>conftest.er1 | ||
24394 | ac_status=$? | ||
24395 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24396 | rm -f conftest.er1 | ||
24397 | cat conftest.err >&5 | ||
24398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24399 | (exit $ac_status); } && { | ||
24400 | test -z "$ac_c_werror_flag" || | ||
24401 | test ! -s conftest.err | ||
24402 | } && test -s conftest$ac_exeext && | ||
24403 | $as_test_x conftest$ac_exeext; then | ||
24404 | ac_cv_search_getrrsetbyname=$ac_res | ||
24405 | else | ||
24406 | echo "$as_me: failed program was:" >&5 | ||
24407 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24408 | |||
24409 | |||
24410 | fi | ||
24411 | |||
24412 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24413 | conftest$ac_exeext | ||
24414 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
24415 | break | ||
24416 | fi | ||
24417 | done | ||
24418 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
24419 | : | ||
24420 | else | ||
24421 | ac_cv_search_getrrsetbyname=no | ||
24422 | fi | ||
24423 | rm conftest.$ac_ext | ||
24424 | LIBS=$ac_func_search_save_LIBS | ||
24425 | fi | ||
24426 | { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
24427 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; } | ||
24428 | ac_res=$ac_cv_search_getrrsetbyname | ||
24429 | if test "$ac_res" != no; then | ||
24430 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
24431 | |||
24432 | cat >>confdefs.h <<\_ACEOF | ||
24433 | #define HAVE_GETRRSETBYNAME 1 | ||
24434 | _ACEOF | ||
24435 | |||
24436 | else | ||
24437 | |||
24438 | # Needed by our getrrsetbyname() | ||
24439 | { echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
24440 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; } | ||
24441 | if test "${ac_cv_search_res_query+set}" = set; then | ||
24442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24443 | else | ||
24444 | ac_func_search_save_LIBS=$LIBS | ||
24445 | cat >conftest.$ac_ext <<_ACEOF | ||
24446 | /* confdefs.h. */ | ||
24447 | _ACEOF | ||
24448 | cat confdefs.h >>conftest.$ac_ext | ||
24449 | cat >>conftest.$ac_ext <<_ACEOF | ||
24450 | /* end confdefs.h. */ | ||
24451 | |||
24452 | /* Override any GCC internal prototype to avoid an error. | ||
24453 | Use char because int might match the return type of a GCC | ||
24454 | builtin and then its argument prototype would still apply. */ | ||
24455 | #ifdef __cplusplus | ||
24456 | extern "C" | ||
24457 | #endif | ||
24458 | char res_query (); | ||
24459 | int | ||
24460 | main () | ||
24461 | { | ||
24462 | return res_query (); | ||
24463 | ; | ||
24464 | return 0; | ||
24465 | } | ||
24466 | _ACEOF | ||
24467 | for ac_lib in '' resolv; do | ||
24468 | if test -z "$ac_lib"; then | ||
24469 | ac_res="none required" | ||
24470 | else | ||
24471 | ac_res=-l$ac_lib | ||
24472 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
24473 | fi | ||
24474 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24475 | if { (ac_try="$ac_link" | ||
24476 | case "(($ac_try" in | ||
24477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24478 | *) ac_try_echo=$ac_try;; | ||
24479 | esac | ||
24480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24481 | (eval "$ac_link") 2>conftest.er1 | ||
24482 | ac_status=$? | ||
24483 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24484 | rm -f conftest.er1 | ||
24485 | cat conftest.err >&5 | ||
24486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24487 | (exit $ac_status); } && { | ||
24488 | test -z "$ac_c_werror_flag" || | ||
24489 | test ! -s conftest.err | ||
24490 | } && test -s conftest$ac_exeext && | ||
24491 | $as_test_x conftest$ac_exeext; then | ||
24492 | ac_cv_search_res_query=$ac_res | ||
24493 | else | ||
24494 | echo "$as_me: failed program was:" >&5 | ||
24495 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24496 | |||
24497 | |||
24498 | fi | ||
24499 | |||
24500 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24501 | conftest$ac_exeext | ||
24502 | if test "${ac_cv_search_res_query+set}" = set; then | ||
24503 | break | ||
24504 | fi | ||
24505 | done | ||
24506 | if test "${ac_cv_search_res_query+set}" = set; then | ||
24507 | : | ||
24508 | else | ||
24509 | ac_cv_search_res_query=no | ||
24510 | fi | ||
24511 | rm conftest.$ac_ext | ||
24512 | LIBS=$ac_func_search_save_LIBS | ||
24513 | fi | ||
24514 | { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
24515 | echo "${ECHO_T}$ac_cv_search_res_query" >&6; } | ||
24516 | ac_res=$ac_cv_search_res_query | ||
24517 | if test "$ac_res" != no; then | ||
24518 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
24519 | |||
24520 | fi | ||
24521 | |||
24522 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
24523 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
24524 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
24525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24526 | else | ||
24527 | ac_func_search_save_LIBS=$LIBS | ||
24528 | cat >conftest.$ac_ext <<_ACEOF | ||
24529 | /* confdefs.h. */ | ||
24530 | _ACEOF | ||
24531 | cat confdefs.h >>conftest.$ac_ext | ||
24532 | cat >>conftest.$ac_ext <<_ACEOF | ||
24533 | /* end confdefs.h. */ | ||
24534 | |||
24535 | /* Override any GCC internal prototype to avoid an error. | ||
24536 | Use char because int might match the return type of a GCC | ||
24537 | builtin and then its argument prototype would still apply. */ | ||
24538 | #ifdef __cplusplus | ||
24539 | extern "C" | ||
24540 | #endif | ||
24541 | char dn_expand (); | ||
24542 | int | ||
24543 | main () | ||
24544 | { | ||
24545 | return dn_expand (); | ||
24546 | ; | ||
24547 | return 0; | ||
24548 | } | ||
24549 | _ACEOF | ||
24550 | for ac_lib in '' resolv; do | ||
24551 | if test -z "$ac_lib"; then | ||
24552 | ac_res="none required" | ||
24553 | else | ||
24554 | ac_res=-l$ac_lib | ||
24555 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
24556 | fi | ||
24557 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24558 | if { (ac_try="$ac_link" | ||
24559 | case "(($ac_try" in | ||
24560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24561 | *) ac_try_echo=$ac_try;; | ||
24562 | esac | ||
24563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24564 | (eval "$ac_link") 2>conftest.er1 | ||
24565 | ac_status=$? | ||
24566 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24567 | rm -f conftest.er1 | ||
24568 | cat conftest.err >&5 | ||
24569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24570 | (exit $ac_status); } && { | ||
24571 | test -z "$ac_c_werror_flag" || | ||
24572 | test ! -s conftest.err | ||
24573 | } && test -s conftest$ac_exeext && | ||
24574 | $as_test_x conftest$ac_exeext; then | ||
24575 | ac_cv_search_dn_expand=$ac_res | ||
24576 | else | ||
24577 | echo "$as_me: failed program was:" >&5 | ||
24578 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24579 | |||
24580 | |||
24581 | fi | ||
24582 | |||
24583 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24584 | conftest$ac_exeext | ||
24585 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
24586 | break | ||
24587 | fi | ||
24588 | done | ||
24589 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
24590 | : | ||
24591 | else | ||
24592 | ac_cv_search_dn_expand=no | ||
24593 | fi | ||
24594 | rm conftest.$ac_ext | ||
24595 | LIBS=$ac_func_search_save_LIBS | ||
24596 | fi | ||
24597 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
24598 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
24599 | ac_res=$ac_cv_search_dn_expand | ||
24600 | if test "$ac_res" != no; then | ||
24601 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
24602 | |||
24603 | fi | ||
24604 | |||
24605 | { echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
24606 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; } | ||
24607 | cat >conftest.$ac_ext <<_ACEOF | ||
24608 | /* confdefs.h. */ | ||
24609 | _ACEOF | ||
24610 | cat confdefs.h >>conftest.$ac_ext | ||
24611 | cat >>conftest.$ac_ext <<_ACEOF | ||
24612 | /* end confdefs.h. */ | ||
24613 | |||
24614 | /* Override any GCC internal prototype to avoid an error. | ||
24615 | Use char because int might match the return type of a GCC | ||
24616 | builtin and then its argument prototype would still apply. */ | ||
24617 | #ifdef __cplusplus | ||
24618 | extern "C" | ||
24619 | #endif | ||
24620 | char res_query (); | ||
24621 | int | ||
24622 | main () | ||
24623 | { | ||
24624 | return res_query (); | ||
24625 | ; | ||
24626 | return 0; | ||
24627 | } | ||
24628 | _ACEOF | ||
24629 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24630 | if { (ac_try="$ac_link" | ||
24631 | case "(($ac_try" in | ||
24632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24633 | *) ac_try_echo=$ac_try;; | ||
24634 | esac | ||
24635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24636 | (eval "$ac_link") 2>conftest.er1 | ||
24637 | ac_status=$? | ||
24638 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24639 | rm -f conftest.er1 | ||
24640 | cat conftest.err >&5 | ||
24641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24642 | (exit $ac_status); } && { | ||
24643 | test -z "$ac_c_werror_flag" || | ||
24644 | test ! -s conftest.err | ||
24645 | } && test -s conftest$ac_exeext && | ||
24646 | $as_test_x conftest$ac_exeext; then | ||
24647 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
24648 | echo "${ECHO_T}yes" >&6; } | ||
24649 | else | ||
24650 | echo "$as_me: failed program was:" >&5 | ||
24651 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24652 | |||
24653 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24654 | echo "${ECHO_T}no" >&6; } | ||
24655 | saved_LIBS="$LIBS" | ||
24656 | LIBS="$LIBS -lresolv" | ||
24657 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
24658 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
24659 | cat >conftest.$ac_ext <<_ACEOF | ||
24660 | |||
24661 | #include <resolv.h> | ||
24662 | int main() | ||
24663 | { | ||
24664 | res_query (0, 0, 0, 0, 0); | ||
24665 | return 0; | ||
24666 | } | ||
24667 | |||
24668 | _ACEOF | ||
24669 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24670 | if { (ac_try="$ac_link" | ||
24671 | case "(($ac_try" in | ||
24672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24673 | *) ac_try_echo=$ac_try;; | ||
24674 | esac | ||
24675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24676 | (eval "$ac_link") 2>conftest.er1 | ||
24677 | ac_status=$? | ||
24678 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24679 | rm -f conftest.er1 | ||
24680 | cat conftest.err >&5 | ||
24681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24682 | (exit $ac_status); } && { | ||
24683 | test -z "$ac_c_werror_flag" || | ||
24684 | test ! -s conftest.err | ||
24685 | } && test -s conftest$ac_exeext && | ||
24686 | $as_test_x conftest$ac_exeext; then | ||
24687 | LIBS="$LIBS -lresolv" | ||
24688 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
24689 | echo "${ECHO_T}yes" >&6; } | ||
24690 | else | ||
24691 | echo "$as_me: failed program was:" >&5 | ||
24692 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24693 | |||
24694 | LIBS="$saved_LIBS" | ||
24695 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24696 | echo "${ECHO_T}no" >&6; } | ||
24697 | fi | ||
24698 | |||
24699 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24700 | conftest$ac_exeext conftest.$ac_ext | ||
24701 | |||
24702 | fi | ||
24703 | |||
24704 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24705 | conftest$ac_exeext conftest.$ac_ext | ||
24706 | |||
24707 | |||
24708 | for ac_func in _getshort _getlong | ||
24709 | do | ||
24710 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
24711 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
24712 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
24713 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24715 | else | ||
24716 | cat >conftest.$ac_ext <<_ACEOF | ||
24717 | /* confdefs.h. */ | ||
24718 | _ACEOF | ||
24719 | cat confdefs.h >>conftest.$ac_ext | ||
24720 | cat >>conftest.$ac_ext <<_ACEOF | ||
24721 | /* end confdefs.h. */ | ||
24722 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
24723 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
24724 | #define $ac_func innocuous_$ac_func | ||
24725 | |||
24726 | /* System header to define __stub macros and hopefully few prototypes, | ||
24727 | which can conflict with char $ac_func (); below. | ||
24728 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
24729 | <limits.h> exists even on freestanding compilers. */ | ||
24730 | |||
24731 | #ifdef __STDC__ | ||
24732 | # include <limits.h> | ||
24733 | #else | ||
24734 | # include <assert.h> | ||
24735 | #endif | ||
24736 | |||
24737 | #undef $ac_func | ||
24738 | |||
24739 | /* Override any GCC internal prototype to avoid an error. | ||
24740 | Use char because int might match the return type of a GCC | ||
24741 | builtin and then its argument prototype would still apply. */ | ||
24742 | #ifdef __cplusplus | ||
24743 | extern "C" | ||
24744 | #endif | ||
24745 | char $ac_func (); | ||
24746 | /* The GNU C library defines this for functions which it implements | ||
24747 | to always fail with ENOSYS. Some functions are actually named | ||
24748 | something starting with __ and the normal name is an alias. */ | ||
24749 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
24750 | choke me | ||
24751 | #endif | ||
24752 | |||
24753 | int | ||
24754 | main () | ||
24755 | { | ||
24756 | return $ac_func (); | ||
24757 | ; | ||
24758 | return 0; | ||
24759 | } | ||
24760 | _ACEOF | ||
24761 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24762 | if { (ac_try="$ac_link" | ||
24763 | case "(($ac_try" in | ||
24764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24765 | *) ac_try_echo=$ac_try;; | ||
24766 | esac | ||
24767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24768 | (eval "$ac_link") 2>conftest.er1 | ||
24769 | ac_status=$? | ||
24770 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24771 | rm -f conftest.er1 | ||
24772 | cat conftest.err >&5 | ||
24773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24774 | (exit $ac_status); } && { | ||
24775 | test -z "$ac_c_werror_flag" || | ||
24776 | test ! -s conftest.err | ||
24777 | } && test -s conftest$ac_exeext && | ||
24778 | $as_test_x conftest$ac_exeext; then | ||
24779 | eval "$as_ac_var=yes" | ||
24780 | else | ||
24781 | echo "$as_me: failed program was:" >&5 | ||
24782 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24783 | |||
24784 | eval "$as_ac_var=no" | ||
24785 | fi | ||
24786 | |||
24787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24788 | conftest$ac_exeext conftest.$ac_ext | ||
24789 | fi | ||
24790 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
24791 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
24792 | echo "${ECHO_T}$ac_res" >&6; } | ||
24793 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
24794 | cat >>confdefs.h <<_ACEOF | ||
24795 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
24796 | _ACEOF | ||
24797 | |||
24798 | fi | ||
24799 | done | ||
24800 | |||
24801 | { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
24802 | echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; } | ||
24803 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
24804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24805 | else | ||
24806 | cat >conftest.$ac_ext <<_ACEOF | ||
24807 | /* confdefs.h. */ | ||
24808 | _ACEOF | ||
24809 | cat confdefs.h >>conftest.$ac_ext | ||
24810 | cat >>conftest.$ac_ext <<_ACEOF | ||
24811 | /* end confdefs.h. */ | ||
24812 | #include <sys/types.h> | ||
24813 | #include <arpa/nameser.h> | ||
24814 | |||
24815 | int | ||
24816 | main () | ||
24817 | { | ||
24818 | #ifndef _getshort | ||
24819 | (void) _getshort; | ||
24820 | #endif | ||
24821 | |||
24822 | ; | ||
24823 | return 0; | ||
24824 | } | ||
24825 | _ACEOF | ||
24826 | rm -f conftest.$ac_objext | ||
24827 | if { (ac_try="$ac_compile" | ||
24828 | case "(($ac_try" in | ||
24829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24830 | *) ac_try_echo=$ac_try;; | ||
24831 | esac | ||
24832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24833 | (eval "$ac_compile") 2>conftest.er1 | ||
24834 | ac_status=$? | ||
24835 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24836 | rm -f conftest.er1 | ||
24837 | cat conftest.err >&5 | ||
24838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24839 | (exit $ac_status); } && { | ||
24840 | test -z "$ac_c_werror_flag" || | ||
24841 | test ! -s conftest.err | ||
24842 | } && test -s conftest.$ac_objext; then | ||
24843 | ac_cv_have_decl__getshort=yes | ||
24844 | else | ||
24845 | echo "$as_me: failed program was:" >&5 | ||
24846 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24847 | |||
24848 | ac_cv_have_decl__getshort=no | ||
24849 | fi | ||
24850 | |||
24851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24852 | fi | ||
24853 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
24854 | echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; } | ||
24855 | if test $ac_cv_have_decl__getshort = yes; then | ||
24856 | |||
24857 | cat >>confdefs.h <<_ACEOF | ||
24858 | #define HAVE_DECL__GETSHORT 1 | ||
24859 | _ACEOF | ||
24860 | |||
24861 | |||
24862 | else | ||
24863 | cat >>confdefs.h <<_ACEOF | ||
24864 | #define HAVE_DECL__GETSHORT 0 | ||
24865 | _ACEOF | ||
24866 | |||
24867 | |||
24868 | fi | ||
24869 | { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
24870 | echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; } | ||
24871 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
24872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24873 | else | ||
24874 | cat >conftest.$ac_ext <<_ACEOF | ||
24875 | /* confdefs.h. */ | ||
24876 | _ACEOF | ||
24877 | cat confdefs.h >>conftest.$ac_ext | ||
24878 | cat >>conftest.$ac_ext <<_ACEOF | ||
24879 | /* end confdefs.h. */ | ||
24880 | #include <sys/types.h> | ||
24881 | #include <arpa/nameser.h> | ||
24882 | |||
24883 | int | ||
24884 | main () | ||
24885 | { | ||
24886 | #ifndef _getlong | ||
24887 | (void) _getlong; | ||
24888 | #endif | ||
24889 | |||
24890 | ; | ||
24891 | return 0; | ||
24892 | } | ||
24893 | _ACEOF | ||
24894 | rm -f conftest.$ac_objext | ||
24895 | if { (ac_try="$ac_compile" | ||
24896 | case "(($ac_try" in | ||
24897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24898 | *) ac_try_echo=$ac_try;; | ||
24899 | esac | ||
24900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24901 | (eval "$ac_compile") 2>conftest.er1 | ||
24902 | ac_status=$? | ||
24903 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24904 | rm -f conftest.er1 | ||
24905 | cat conftest.err >&5 | ||
24906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24907 | (exit $ac_status); } && { | ||
24908 | test -z "$ac_c_werror_flag" || | ||
24909 | test ! -s conftest.err | ||
24910 | } && test -s conftest.$ac_objext; then | ||
24911 | ac_cv_have_decl__getlong=yes | ||
24912 | else | ||
24913 | echo "$as_me: failed program was:" >&5 | ||
24914 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24915 | |||
24916 | ac_cv_have_decl__getlong=no | ||
24917 | fi | ||
24918 | |||
24919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24920 | fi | ||
24921 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
24922 | echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; } | ||
24923 | if test $ac_cv_have_decl__getlong = yes; then | ||
24924 | |||
24925 | cat >>confdefs.h <<_ACEOF | ||
24926 | #define HAVE_DECL__GETLONG 1 | ||
24927 | _ACEOF | ||
24928 | |||
24929 | |||
24930 | else | ||
24931 | cat >>confdefs.h <<_ACEOF | ||
24932 | #define HAVE_DECL__GETLONG 0 | ||
24933 | _ACEOF | ||
24934 | |||
24935 | |||
24936 | fi | ||
24937 | |||
24938 | |||
24939 | { echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
24940 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; } | ||
24941 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
24942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24943 | else | ||
24944 | cat >conftest.$ac_ext <<_ACEOF | ||
24945 | /* confdefs.h. */ | ||
24946 | _ACEOF | ||
24947 | cat confdefs.h >>conftest.$ac_ext | ||
24948 | cat >>conftest.$ac_ext <<_ACEOF | ||
24949 | /* end confdefs.h. */ | ||
24950 | #include <arpa/nameser.h> | ||
24951 | |||
24952 | int | ||
24953 | main () | ||
24954 | { | ||
24955 | static HEADER ac_aggr; | ||
24956 | if (ac_aggr.ad) | ||
24957 | return 0; | ||
24958 | ; | ||
24959 | return 0; | ||
24960 | } | ||
24961 | _ACEOF | ||
24962 | rm -f conftest.$ac_objext | ||
24963 | if { (ac_try="$ac_compile" | ||
24964 | case "(($ac_try" in | ||
24965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24966 | *) ac_try_echo=$ac_try;; | ||
24967 | esac | ||
24968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24969 | (eval "$ac_compile") 2>conftest.er1 | ||
24970 | ac_status=$? | ||
24971 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24972 | rm -f conftest.er1 | ||
24973 | cat conftest.err >&5 | ||
24974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24975 | (exit $ac_status); } && { | ||
24976 | test -z "$ac_c_werror_flag" || | ||
24977 | test ! -s conftest.err | ||
24978 | } && test -s conftest.$ac_objext; then | ||
24979 | ac_cv_member_HEADER_ad=yes | ||
24980 | else | ||
24981 | echo "$as_me: failed program was:" >&5 | ||
24982 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24983 | |||
24984 | cat >conftest.$ac_ext <<_ACEOF | ||
24985 | /* confdefs.h. */ | ||
24986 | _ACEOF | ||
24987 | cat confdefs.h >>conftest.$ac_ext | ||
24988 | cat >>conftest.$ac_ext <<_ACEOF | ||
24989 | /* end confdefs.h. */ | ||
24990 | #include <arpa/nameser.h> | ||
24991 | |||
24992 | int | ||
24993 | main () | ||
24994 | { | ||
24995 | static HEADER ac_aggr; | ||
24996 | if (sizeof ac_aggr.ad) | ||
24997 | return 0; | ||
24998 | ; | ||
24999 | return 0; | ||
25000 | } | ||
25001 | _ACEOF | ||
25002 | rm -f conftest.$ac_objext | ||
25003 | if { (ac_try="$ac_compile" | ||
25004 | case "(($ac_try" in | ||
25005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25006 | *) ac_try_echo=$ac_try;; | ||
25007 | esac | ||
25008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25009 | (eval "$ac_compile") 2>conftest.er1 | ||
25010 | ac_status=$? | ||
25011 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25012 | rm -f conftest.er1 | ||
25013 | cat conftest.err >&5 | ||
25014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25015 | (exit $ac_status); } && { | ||
25016 | test -z "$ac_c_werror_flag" || | ||
25017 | test ! -s conftest.err | ||
25018 | } && test -s conftest.$ac_objext; then | ||
25019 | ac_cv_member_HEADER_ad=yes | ||
25020 | else | ||
25021 | echo "$as_me: failed program was:" >&5 | ||
25022 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25023 | |||
25024 | ac_cv_member_HEADER_ad=no | ||
25025 | fi | ||
25026 | |||
25027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25028 | fi | ||
25029 | |||
25030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25031 | fi | ||
25032 | { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
25033 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; } | ||
25034 | if test $ac_cv_member_HEADER_ad = yes; then | ||
25035 | |||
25036 | cat >>confdefs.h <<\_ACEOF | ||
25037 | #define HAVE_HEADER_AD 1 | ||
25038 | _ACEOF | ||
25039 | |||
25040 | fi | ||
25041 | |||
25042 | |||
25043 | fi | ||
25044 | |||
25045 | |||
25046 | # Check whether user wants SELinux support | ||
25047 | SELINUX_MSG="no" | ||
25048 | LIBSELINUX="" | ||
25049 | |||
25050 | # Check whether --with-selinux was given. | ||
25051 | if test "${with_selinux+set}" = set; then | ||
25052 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
25053 | |||
25054 | cat >>confdefs.h <<\_ACEOF | ||
25055 | #define WITH_SELINUX 1 | ||
25056 | _ACEOF | ||
25057 | |||
25058 | SELINUX_MSG="yes" | ||
25059 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
25060 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
25061 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
25062 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
25063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25064 | fi | ||
25065 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
25066 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
25067 | else | ||
25068 | # Is the header compilable? | ||
25069 | { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | ||
25070 | echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; } | ||
25071 | cat >conftest.$ac_ext <<_ACEOF | ||
25072 | /* confdefs.h. */ | ||
25073 | _ACEOF | ||
25074 | cat confdefs.h >>conftest.$ac_ext | ||
25075 | cat >>conftest.$ac_ext <<_ACEOF | ||
25076 | /* end confdefs.h. */ | ||
25077 | $ac_includes_default | ||
25078 | #include <selinux/selinux.h> | ||
25079 | _ACEOF | ||
25080 | rm -f conftest.$ac_objext | ||
25081 | if { (ac_try="$ac_compile" | ||
25082 | case "(($ac_try" in | ||
25083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25084 | *) ac_try_echo=$ac_try;; | ||
25085 | esac | ||
25086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25087 | (eval "$ac_compile") 2>conftest.er1 | ||
25088 | ac_status=$? | ||
25089 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25090 | rm -f conftest.er1 | ||
25091 | cat conftest.err >&5 | ||
25092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25093 | (exit $ac_status); } && { | ||
25094 | test -z "$ac_c_werror_flag" || | ||
25095 | test ! -s conftest.err | ||
25096 | } && test -s conftest.$ac_objext; then | ||
25097 | ac_header_compiler=yes | ||
25098 | else | ||
25099 | echo "$as_me: failed program was:" >&5 | ||
25100 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25101 | |||
25102 | ac_header_compiler=no | ||
25103 | fi | ||
25104 | |||
25105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25106 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
25107 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
25108 | |||
25109 | # Is the header present? | ||
25110 | { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | ||
25111 | echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; } | ||
25112 | cat >conftest.$ac_ext <<_ACEOF | ||
25113 | /* confdefs.h. */ | ||
25114 | _ACEOF | ||
25115 | cat confdefs.h >>conftest.$ac_ext | ||
25116 | cat >>conftest.$ac_ext <<_ACEOF | ||
25117 | /* end confdefs.h. */ | ||
25118 | #include <selinux/selinux.h> | ||
25119 | _ACEOF | ||
25120 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
25121 | case "(($ac_try" in | ||
25122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25123 | *) ac_try_echo=$ac_try;; | ||
25124 | esac | ||
25125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25126 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
25127 | ac_status=$? | ||
25128 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25129 | rm -f conftest.er1 | ||
25130 | cat conftest.err >&5 | ||
25131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25132 | (exit $ac_status); } >/dev/null && { | ||
25133 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
25134 | test ! -s conftest.err | ||
25135 | }; then | ||
25136 | ac_header_preproc=yes | ||
25137 | else | ||
25138 | echo "$as_me: failed program was:" >&5 | ||
25139 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25140 | |||
25141 | ac_header_preproc=no | ||
25142 | fi | ||
25143 | |||
25144 | rm -f conftest.err conftest.$ac_ext | ||
25145 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
25146 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
25147 | |||
25148 | # So? What about this header? | ||
25149 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
25150 | yes:no: ) | ||
25151 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
25152 | echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
25153 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | ||
25154 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | ||
25155 | ac_header_preproc=yes | ||
25156 | ;; | ||
25157 | no:yes:* ) | ||
25158 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | ||
25159 | echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | ||
25160 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | ||
25161 | echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | ||
25162 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | ||
25163 | echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | ||
25164 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
25165 | echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
25166 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | ||
25167 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | ||
25168 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | ||
25169 | echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | ||
25170 | ( cat <<\_ASBOX | ||
25171 | ## ------------------------------------------- ## | ||
25172 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
25173 | ## ------------------------------------------- ## | ||
25174 | _ASBOX | ||
25175 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
25176 | ;; | ||
25177 | esac | ||
25178 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
25179 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
25180 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
25181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25182 | else | ||
25183 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | ||
25184 | fi | ||
25185 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
25186 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
25187 | |||
25188 | fi | ||
25189 | if test $ac_cv_header_selinux_selinux_h = yes; then | ||
25190 | : | ||
25191 | else | ||
25192 | { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 | ||
25193 | echo "$as_me: error: SELinux support requires selinux.h header" >&2;} | ||
25194 | { (exit 1); exit 1; }; } | ||
25195 | fi | ||
25196 | |||
25197 | |||
25198 | { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 | ||
25199 | echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; } | ||
25200 | if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then | ||
25201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25202 | else | ||
25203 | ac_check_lib_save_LIBS=$LIBS | ||
25204 | LIBS="-lselinux $LIBS" | ||
25205 | cat >conftest.$ac_ext <<_ACEOF | ||
25206 | /* confdefs.h. */ | ||
25207 | _ACEOF | ||
25208 | cat confdefs.h >>conftest.$ac_ext | ||
25209 | cat >>conftest.$ac_ext <<_ACEOF | ||
25210 | /* end confdefs.h. */ | ||
25211 | |||
25212 | /* Override any GCC internal prototype to avoid an error. | ||
25213 | Use char because int might match the return type of a GCC | ||
25214 | builtin and then its argument prototype would still apply. */ | ||
25215 | #ifdef __cplusplus | ||
25216 | extern "C" | ||
25217 | #endif | ||
25218 | char setexeccon (); | ||
25219 | int | ||
25220 | main () | ||
25221 | { | ||
25222 | return setexeccon (); | ||
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_lib_selinux_setexeccon=yes | ||
25246 | else | ||
25247 | echo "$as_me: failed program was:" >&5 | ||
25248 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25249 | |||
25250 | ac_cv_lib_selinux_setexeccon=no | ||
25251 | fi | ||
25252 | |||
25253 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25254 | conftest$ac_exeext conftest.$ac_ext | ||
25255 | LIBS=$ac_check_lib_save_LIBS | ||
25256 | fi | ||
25257 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
25258 | echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; } | ||
25259 | if test $ac_cv_lib_selinux_setexeccon = yes; then | ||
25260 | LIBSELINUX="-lselinux" | ||
25261 | else | ||
25262 | { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 | ||
25263 | echo "$as_me: error: SELinux support requires libselinux library" >&2;} | ||
25264 | { (exit 1); exit 1; }; } | ||
25265 | fi | ||
25266 | |||
25267 | save_LIBS="$LIBS" | ||
25268 | LIBS="$LIBS $LIBSELINUX" | ||
25269 | |||
25270 | |||
25271 | for ac_func in getseuserbyname get_default_context_with_level | ||
25272 | do | ||
25273 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
25274 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
25275 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
25276 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25278 | else | ||
25279 | cat >conftest.$ac_ext <<_ACEOF | ||
25280 | /* confdefs.h. */ | ||
25281 | _ACEOF | ||
25282 | cat confdefs.h >>conftest.$ac_ext | ||
25283 | cat >>conftest.$ac_ext <<_ACEOF | ||
25284 | /* end confdefs.h. */ | ||
25285 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
25286 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
25287 | #define $ac_func innocuous_$ac_func | ||
25288 | |||
25289 | /* System header to define __stub macros and hopefully few prototypes, | ||
25290 | which can conflict with char $ac_func (); below. | ||
25291 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
25292 | <limits.h> exists even on freestanding compilers. */ | ||
25293 | |||
25294 | #ifdef __STDC__ | ||
25295 | # include <limits.h> | ||
25296 | #else | ||
25297 | # include <assert.h> | ||
25298 | #endif | ||
25299 | |||
25300 | #undef $ac_func | ||
25301 | |||
25302 | /* Override any GCC internal prototype to avoid an error. | ||
25303 | Use char because int might match the return type of a GCC | ||
25304 | builtin and then its argument prototype would still apply. */ | ||
25305 | #ifdef __cplusplus | ||
25306 | extern "C" | ||
25307 | #endif | ||
25308 | char $ac_func (); | ||
25309 | /* The GNU C library defines this for functions which it implements | ||
25310 | to always fail with ENOSYS. Some functions are actually named | ||
25311 | something starting with __ and the normal name is an alias. */ | ||
25312 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
25313 | choke me | ||
25314 | #endif | ||
25315 | |||
25316 | int | ||
25317 | main () | ||
25318 | { | ||
25319 | return $ac_func (); | ||
25320 | ; | ||
25321 | return 0; | ||
25322 | } | ||
25323 | _ACEOF | ||
25324 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25325 | if { (ac_try="$ac_link" | ||
25326 | case "(($ac_try" in | ||
25327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25328 | *) ac_try_echo=$ac_try;; | ||
25329 | esac | ||
25330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25331 | (eval "$ac_link") 2>conftest.er1 | ||
25332 | ac_status=$? | ||
25333 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25334 | rm -f conftest.er1 | ||
25335 | cat conftest.err >&5 | ||
25336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25337 | (exit $ac_status); } && { | ||
25338 | test -z "$ac_c_werror_flag" || | ||
25339 | test ! -s conftest.err | ||
25340 | } && test -s conftest$ac_exeext && | ||
25341 | $as_test_x conftest$ac_exeext; then | ||
25342 | eval "$as_ac_var=yes" | ||
25343 | else | ||
25344 | echo "$as_me: failed program was:" >&5 | ||
25345 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25346 | |||
25347 | eval "$as_ac_var=no" | ||
25348 | fi | ||
25349 | |||
25350 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25351 | conftest$ac_exeext conftest.$ac_ext | ||
25352 | fi | ||
25353 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
25354 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
25355 | echo "${ECHO_T}$ac_res" >&6; } | ||
25356 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
25357 | cat >>confdefs.h <<_ACEOF | ||
25358 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
25359 | _ACEOF | ||
25360 | |||
25361 | fi | ||
25362 | done | ||
25363 | |||
25364 | LIBS="$save_LIBS" | ||
25365 | fi | ||
25366 | |||
25367 | fi | ||
25368 | |||
25369 | |||
25370 | |||
25371 | # Check whether user wants Kerberos 5 support | ||
25372 | KRB5_MSG="no" | ||
25373 | |||
25374 | # Check whether --with-kerberos5 was given. | ||
25375 | if test "${with_kerberos5+set}" = set; then | ||
25376 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
25377 | if test "x$withval" = "xyes" ; then | ||
25378 | KRB5ROOT="/usr/local" | ||
25379 | else | ||
25380 | KRB5ROOT=${withval} | ||
25381 | fi | ||
25382 | |||
25383 | |||
25384 | cat >>confdefs.h <<\_ACEOF | ||
25385 | #define KRB5 1 | ||
25386 | _ACEOF | ||
25387 | |||
25388 | KRB5_MSG="yes" | ||
25389 | |||
25390 | { echo "$as_me:$LINENO: checking for krb5-config" >&5 | ||
25391 | echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; } | ||
25392 | if test -x $KRB5ROOT/bin/krb5-config ; then | ||
25393 | KRB5CONF=$KRB5ROOT/bin/krb5-config | ||
25394 | { echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
25395 | echo "${ECHO_T}$KRB5CONF" >&6; } | ||
25396 | |||
25397 | { echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
25398 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; } | ||
25399 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
25400 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25401 | echo "${ECHO_T}yes" >&6; } | ||
25402 | |||
25403 | cat >>confdefs.h <<\_ACEOF | ||
25404 | #define GSSAPI 1 | ||
25405 | _ACEOF | ||
25406 | |||
25407 | k5confopts=gssapi | ||
25408 | else | ||
25409 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25410 | echo "${ECHO_T}no" >&6; } | ||
25411 | k5confopts="" | ||
25412 | fi | ||
25413 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
25414 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
25415 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
25416 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
25417 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
25418 | cat >conftest.$ac_ext <<_ACEOF | ||
25419 | /* confdefs.h. */ | ||
25420 | _ACEOF | ||
25421 | cat confdefs.h >>conftest.$ac_ext | ||
25422 | cat >>conftest.$ac_ext <<_ACEOF | ||
25423 | /* end confdefs.h. */ | ||
25424 | #include <krb5.h> | ||
25425 | int | ||
25426 | main () | ||
25427 | { | ||
25428 | char *tmp = heimdal_version; | ||
25429 | ; | ||
25430 | return 0; | ||
25431 | } | ||
25432 | _ACEOF | ||
25433 | rm -f conftest.$ac_objext | ||
25434 | if { (ac_try="$ac_compile" | ||
25435 | case "(($ac_try" in | ||
25436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25437 | *) ac_try_echo=$ac_try;; | ||
25438 | esac | ||
25439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25440 | (eval "$ac_compile") 2>conftest.er1 | ||
25441 | ac_status=$? | ||
25442 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25443 | rm -f conftest.er1 | ||
25444 | cat conftest.err >&5 | ||
25445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25446 | (exit $ac_status); } && { | ||
25447 | test -z "$ac_c_werror_flag" || | ||
25448 | test ! -s conftest.err | ||
25449 | } && test -s conftest.$ac_objext; then | ||
25450 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25451 | echo "${ECHO_T}yes" >&6; } | ||
25452 | |||
25453 | cat >>confdefs.h <<\_ACEOF | ||
25454 | #define HEIMDAL 1 | ||
25455 | _ACEOF | ||
25456 | |||
25457 | else | ||
25458 | echo "$as_me: failed program was:" >&5 | ||
25459 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25460 | |||
25461 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25462 | echo "${ECHO_T}no" >&6; } | ||
25463 | |||
25464 | fi | ||
25465 | |||
25466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25467 | else | ||
25468 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25469 | echo "${ECHO_T}no" >&6; } | ||
25470 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
25471 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
25472 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
25473 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
25474 | cat >conftest.$ac_ext <<_ACEOF | ||
25475 | /* confdefs.h. */ | ||
25476 | _ACEOF | ||
25477 | cat confdefs.h >>conftest.$ac_ext | ||
25478 | cat >>conftest.$ac_ext <<_ACEOF | ||
25479 | /* end confdefs.h. */ | ||
25480 | #include <krb5.h> | ||
25481 | int | ||
25482 | main () | ||
25483 | { | ||
25484 | char *tmp = heimdal_version; | ||
25485 | ; | ||
25486 | return 0; | ||
25487 | } | ||
25488 | _ACEOF | ||
25489 | rm -f conftest.$ac_objext | ||
25490 | if { (ac_try="$ac_compile" | ||
25491 | case "(($ac_try" in | ||
25492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25493 | *) ac_try_echo=$ac_try;; | ||
25494 | esac | ||
25495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25496 | (eval "$ac_compile") 2>conftest.er1 | ||
25497 | ac_status=$? | ||
25498 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25499 | rm -f conftest.er1 | ||
25500 | cat conftest.err >&5 | ||
25501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25502 | (exit $ac_status); } && { | ||
25503 | test -z "$ac_c_werror_flag" || | ||
25504 | test ! -s conftest.err | ||
25505 | } && test -s conftest.$ac_objext; then | ||
25506 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25507 | echo "${ECHO_T}yes" >&6; } | ||
25508 | cat >>confdefs.h <<\_ACEOF | ||
25509 | #define HEIMDAL 1 | ||
25510 | _ACEOF | ||
25511 | |||
25512 | K5LIBS="-lkrb5 -ldes" | ||
25513 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
25514 | { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
25515 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; } | ||
25516 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
25517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25518 | else | ||
25519 | ac_check_lib_save_LIBS=$LIBS | ||
25520 | LIBS="-lroken $LIBS" | ||
25521 | cat >conftest.$ac_ext <<_ACEOF | ||
25522 | /* confdefs.h. */ | ||
25523 | _ACEOF | ||
25524 | cat confdefs.h >>conftest.$ac_ext | ||
25525 | cat >>conftest.$ac_ext <<_ACEOF | ||
25526 | /* end confdefs.h. */ | ||
25527 | |||
25528 | /* Override any GCC internal prototype to avoid an error. | ||
25529 | Use char because int might match the return type of a GCC | ||
25530 | builtin and then its argument prototype would still apply. */ | ||
25531 | #ifdef __cplusplus | ||
25532 | extern "C" | ||
25533 | #endif | ||
25534 | char net_write (); | ||
25535 | int | ||
25536 | main () | ||
25537 | { | ||
25538 | return net_write (); | ||
25539 | ; | ||
25540 | return 0; | ||
25541 | } | ||
25542 | _ACEOF | ||
25543 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25544 | if { (ac_try="$ac_link" | ||
25545 | case "(($ac_try" in | ||
25546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25547 | *) ac_try_echo=$ac_try;; | ||
25548 | esac | ||
25549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25550 | (eval "$ac_link") 2>conftest.er1 | ||
25551 | ac_status=$? | ||
25552 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25553 | rm -f conftest.er1 | ||
25554 | cat conftest.err >&5 | ||
25555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25556 | (exit $ac_status); } && { | ||
25557 | test -z "$ac_c_werror_flag" || | ||
25558 | test ! -s conftest.err | ||
25559 | } && test -s conftest$ac_exeext && | ||
25560 | $as_test_x conftest$ac_exeext; then | ||
25561 | ac_cv_lib_roken_net_write=yes | ||
25562 | else | ||
25563 | echo "$as_me: failed program was:" >&5 | ||
25564 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25565 | |||
25566 | ac_cv_lib_roken_net_write=no | ||
25567 | fi | ||
25568 | |||
25569 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25570 | conftest$ac_exeext conftest.$ac_ext | ||
25571 | LIBS=$ac_check_lib_save_LIBS | ||
25572 | fi | ||
25573 | { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
25574 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; } | ||
25575 | if test $ac_cv_lib_roken_net_write = yes; then | ||
25576 | K5LIBS="$K5LIBS -lroken" | ||
25577 | fi | ||
25578 | |||
25579 | |||
25580 | else | ||
25581 | echo "$as_me: failed program was:" >&5 | ||
25582 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25583 | |||
25584 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25585 | echo "${ECHO_T}no" >&6; } | ||
25586 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
25587 | |||
25588 | |||
25589 | fi | ||
25590 | |||
25591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25592 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
25593 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
25594 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25596 | else | ||
25597 | ac_func_search_save_LIBS=$LIBS | ||
25598 | cat >conftest.$ac_ext <<_ACEOF | ||
25599 | /* confdefs.h. */ | ||
25600 | _ACEOF | ||
25601 | cat confdefs.h >>conftest.$ac_ext | ||
25602 | cat >>conftest.$ac_ext <<_ACEOF | ||
25603 | /* end confdefs.h. */ | ||
25604 | |||
25605 | /* Override any GCC internal prototype to avoid an error. | ||
25606 | Use char because int might match the return type of a GCC | ||
25607 | builtin and then its argument prototype would still apply. */ | ||
25608 | #ifdef __cplusplus | ||
25609 | extern "C" | ||
25610 | #endif | ||
25611 | char dn_expand (); | ||
25612 | int | ||
25613 | main () | ||
25614 | { | ||
25615 | return dn_expand (); | ||
25616 | ; | ||
25617 | return 0; | ||
25618 | } | ||
25619 | _ACEOF | ||
25620 | for ac_lib in '' resolv; do | ||
25621 | if test -z "$ac_lib"; then | ||
25622 | ac_res="none required" | ||
25623 | else | ||
25624 | ac_res=-l$ac_lib | ||
25625 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25626 | fi | ||
25627 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25628 | if { (ac_try="$ac_link" | ||
25629 | case "(($ac_try" in | ||
25630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25631 | *) ac_try_echo=$ac_try;; | ||
25632 | esac | ||
25633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25634 | (eval "$ac_link") 2>conftest.er1 | ||
25635 | ac_status=$? | ||
25636 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25637 | rm -f conftest.er1 | ||
25638 | cat conftest.err >&5 | ||
25639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25640 | (exit $ac_status); } && { | ||
25641 | test -z "$ac_c_werror_flag" || | ||
25642 | test ! -s conftest.err | ||
25643 | } && test -s conftest$ac_exeext && | ||
25644 | $as_test_x conftest$ac_exeext; then | ||
25645 | ac_cv_search_dn_expand=$ac_res | ||
25646 | else | ||
25647 | echo "$as_me: failed program was:" >&5 | ||
25648 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25649 | |||
25650 | |||
25651 | fi | ||
25652 | |||
25653 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25654 | conftest$ac_exeext | ||
25655 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25656 | break | ||
25657 | fi | ||
25658 | done | ||
25659 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25660 | : | ||
25661 | else | ||
25662 | ac_cv_search_dn_expand=no | ||
25663 | fi | ||
25664 | rm conftest.$ac_ext | ||
25665 | LIBS=$ac_func_search_save_LIBS | ||
25666 | fi | ||
25667 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
25668 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
25669 | ac_res=$ac_cv_search_dn_expand | ||
25670 | if test "$ac_res" != no; then | ||
25671 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
25672 | |||
25673 | fi | ||
25674 | |||
25675 | |||
25676 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
25677 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; } | ||
25678 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
25679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25680 | else | ||
25681 | ac_check_lib_save_LIBS=$LIBS | ||
25682 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
25683 | cat >conftest.$ac_ext <<_ACEOF | ||
25684 | /* confdefs.h. */ | ||
25685 | _ACEOF | ||
25686 | cat confdefs.h >>conftest.$ac_ext | ||
25687 | cat >>conftest.$ac_ext <<_ACEOF | ||
25688 | /* end confdefs.h. */ | ||
25689 | |||
25690 | /* Override any GCC internal prototype to avoid an error. | ||
25691 | Use char because int might match the return type of a GCC | ||
25692 | builtin and then its argument prototype would still apply. */ | ||
25693 | #ifdef __cplusplus | ||
25694 | extern "C" | ||
25695 | #endif | ||
25696 | char gss_init_sec_context (); | ||
25697 | int | ||
25698 | main () | ||
25699 | { | ||
25700 | return gss_init_sec_context (); | ||
25701 | ; | ||
25702 | return 0; | ||
25703 | } | ||
25704 | _ACEOF | ||
25705 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25706 | if { (ac_try="$ac_link" | ||
25707 | case "(($ac_try" in | ||
25708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25709 | *) ac_try_echo=$ac_try;; | ||
25710 | esac | ||
25711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25712 | (eval "$ac_link") 2>conftest.er1 | ||
25713 | ac_status=$? | ||
25714 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25715 | rm -f conftest.er1 | ||
25716 | cat conftest.err >&5 | ||
25717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25718 | (exit $ac_status); } && { | ||
25719 | test -z "$ac_c_werror_flag" || | ||
25720 | test ! -s conftest.err | ||
25721 | } && test -s conftest$ac_exeext && | ||
25722 | $as_test_x conftest$ac_exeext; then | ||
25723 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
25724 | else | ||
25725 | echo "$as_me: failed program was:" >&5 | ||
25726 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25727 | |||
25728 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
25729 | fi | ||
25730 | |||
25731 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25732 | conftest$ac_exeext conftest.$ac_ext | ||
25733 | LIBS=$ac_check_lib_save_LIBS | ||
25734 | fi | ||
25735 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
25736 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
25737 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
25738 | cat >>confdefs.h <<\_ACEOF | ||
25739 | #define GSSAPI 1 | ||
25740 | _ACEOF | ||
25741 | |||
25742 | K5LIBS="-lgssapi $K5LIBS" | ||
25743 | else | ||
25744 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
25745 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; } | ||
25746 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
25747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25748 | else | ||
25749 | ac_check_lib_save_LIBS=$LIBS | ||
25750 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
25751 | cat >conftest.$ac_ext <<_ACEOF | ||
25752 | /* confdefs.h. */ | ||
25753 | _ACEOF | ||
25754 | cat confdefs.h >>conftest.$ac_ext | ||
25755 | cat >>conftest.$ac_ext <<_ACEOF | ||
25756 | /* end confdefs.h. */ | ||
25757 | |||
25758 | /* Override any GCC internal prototype to avoid an error. | ||
25759 | Use char because int might match the return type of a GCC | ||
25760 | builtin and then its argument prototype would still apply. */ | ||
25761 | #ifdef __cplusplus | ||
25762 | extern "C" | ||
25763 | #endif | ||
25764 | char gss_init_sec_context (); | ||
25765 | int | ||
25766 | main () | ||
25767 | { | ||
25768 | return gss_init_sec_context (); | ||
25769 | ; | ||
25770 | return 0; | ||
25771 | } | ||
25772 | _ACEOF | ||
25773 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25774 | if { (ac_try="$ac_link" | ||
25775 | case "(($ac_try" in | ||
25776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25777 | *) ac_try_echo=$ac_try;; | ||
25778 | esac | ||
25779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25780 | (eval "$ac_link") 2>conftest.er1 | ||
25781 | ac_status=$? | ||
25782 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25783 | rm -f conftest.er1 | ||
25784 | cat conftest.err >&5 | ||
25785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25786 | (exit $ac_status); } && { | ||
25787 | test -z "$ac_c_werror_flag" || | ||
25788 | test ! -s conftest.err | ||
25789 | } && test -s conftest$ac_exeext && | ||
25790 | $as_test_x conftest$ac_exeext; then | ||
25791 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
25792 | else | ||
25793 | echo "$as_me: failed program was:" >&5 | ||
25794 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25795 | |||
25796 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
25797 | fi | ||
25798 | |||
25799 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25800 | conftest$ac_exeext conftest.$ac_ext | ||
25801 | LIBS=$ac_check_lib_save_LIBS | ||
25802 | fi | ||
25803 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
25804 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
25805 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
25806 | cat >>confdefs.h <<\_ACEOF | ||
25807 | #define GSSAPI 1 | ||
25808 | _ACEOF | ||
25809 | |||
25810 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
25811 | else | ||
25812 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
25813 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
25814 | fi | ||
25815 | |||
25816 | |||
25817 | fi | ||
25818 | |||
25819 | |||
25820 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
25821 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
25822 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
25823 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
25824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25825 | fi | ||
25826 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
25827 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
25828 | else | ||
25829 | # Is the header compilable? | ||
25830 | { echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
25831 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; } | ||
25832 | cat >conftest.$ac_ext <<_ACEOF | ||
25833 | /* confdefs.h. */ | ||
25834 | _ACEOF | ||
25835 | cat confdefs.h >>conftest.$ac_ext | ||
25836 | cat >>conftest.$ac_ext <<_ACEOF | ||
25837 | /* end confdefs.h. */ | ||
25838 | $ac_includes_default | ||
25839 | #include <gssapi.h> | ||
25840 | _ACEOF | ||
25841 | rm -f conftest.$ac_objext | ||
25842 | if { (ac_try="$ac_compile" | ||
25843 | case "(($ac_try" in | ||
25844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25845 | *) ac_try_echo=$ac_try;; | ||
25846 | esac | ||
25847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25848 | (eval "$ac_compile") 2>conftest.er1 | ||
25849 | ac_status=$? | ||
25850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25851 | rm -f conftest.er1 | ||
25852 | cat conftest.err >&5 | ||
25853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25854 | (exit $ac_status); } && { | ||
25855 | test -z "$ac_c_werror_flag" || | ||
25856 | test ! -s conftest.err | ||
25857 | } && test -s conftest.$ac_objext; then | ||
25858 | ac_header_compiler=yes | ||
25859 | else | ||
25860 | echo "$as_me: failed program was:" >&5 | ||
25861 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25862 | |||
25863 | ac_header_compiler=no | ||
25864 | fi | ||
25865 | |||
25866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25867 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
25868 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
25869 | |||
25870 | # Is the header present? | ||
25871 | { echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
25872 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; } | ||
25873 | cat >conftest.$ac_ext <<_ACEOF | ||
25874 | /* confdefs.h. */ | ||
25875 | _ACEOF | ||
25876 | cat confdefs.h >>conftest.$ac_ext | ||
25877 | cat >>conftest.$ac_ext <<_ACEOF | ||
25878 | /* end confdefs.h. */ | ||
25879 | #include <gssapi.h> | ||
25880 | _ACEOF | ||
25881 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
25882 | case "(($ac_try" in | ||
25883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25884 | *) ac_try_echo=$ac_try;; | ||
25885 | esac | ||
25886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25887 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
25888 | ac_status=$? | ||
25889 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25890 | rm -f conftest.er1 | ||
25891 | cat conftest.err >&5 | ||
25892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25893 | (exit $ac_status); } >/dev/null && { | ||
25894 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
25895 | test ! -s conftest.err | ||
25896 | }; then | ||
25897 | ac_header_preproc=yes | ||
25898 | else | ||
25899 | echo "$as_me: failed program was:" >&5 | ||
25900 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25901 | |||
25902 | ac_header_preproc=no | ||
25903 | fi | ||
25904 | |||
25905 | rm -f conftest.err conftest.$ac_ext | ||
25906 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
25907 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
25908 | |||
25909 | # So? What about this header? | ||
25910 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
25911 | yes:no: ) | ||
25912 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
25913 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
25914 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
25915 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
25916 | ac_header_preproc=yes | ||
25917 | ;; | ||
25918 | no:yes:* ) | ||
25919 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
25920 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
25921 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
25922 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
25923 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
25924 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
25925 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
25926 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
25927 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
25928 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
25929 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
25930 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
25931 | ( cat <<\_ASBOX | ||
25932 | ## ------------------------------------------- ## | ||
25933 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
25934 | ## ------------------------------------------- ## | ||
25935 | _ASBOX | ||
25936 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
25937 | ;; | ||
25938 | esac | ||
25939 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
25940 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
25941 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
25942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25943 | else | ||
25944 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
25945 | fi | ||
25946 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
25947 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
25948 | |||
25949 | fi | ||
25950 | if test $ac_cv_header_gssapi_h = yes; then | ||
25951 | : | ||
25952 | else | ||
25953 | unset ac_cv_header_gssapi_h | ||
25954 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
25955 | |||
25956 | for ac_header in gssapi.h | ||
25957 | do | ||
25958 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
25959 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25960 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
25961 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
25962 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25964 | fi | ||
25965 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
25966 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
25967 | echo "${ECHO_T}$ac_res" >&6; } | ||
25968 | else | ||
25969 | # Is the header compilable? | ||
25970 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
25971 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
25972 | cat >conftest.$ac_ext <<_ACEOF | ||
25973 | /* confdefs.h. */ | ||
25974 | _ACEOF | ||
25975 | cat confdefs.h >>conftest.$ac_ext | ||
25976 | cat >>conftest.$ac_ext <<_ACEOF | ||
25977 | /* end confdefs.h. */ | ||
25978 | $ac_includes_default | ||
25979 | #include <$ac_header> | ||
25980 | _ACEOF | ||
25981 | rm -f conftest.$ac_objext | ||
25982 | if { (ac_try="$ac_compile" | ||
25983 | case "(($ac_try" in | ||
25984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25985 | *) ac_try_echo=$ac_try;; | ||
25986 | esac | ||
25987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25988 | (eval "$ac_compile") 2>conftest.er1 | ||
25989 | ac_status=$? | ||
25990 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25991 | rm -f conftest.er1 | ||
25992 | cat conftest.err >&5 | ||
25993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25994 | (exit $ac_status); } && { | ||
25995 | test -z "$ac_c_werror_flag" || | ||
25996 | test ! -s conftest.err | ||
25997 | } && test -s conftest.$ac_objext; then | ||
25998 | ac_header_compiler=yes | ||
25999 | else | ||
26000 | echo "$as_me: failed program was:" >&5 | ||
26001 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26002 | |||
26003 | ac_header_compiler=no | ||
26004 | fi | ||
26005 | |||
26006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26007 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26008 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
26009 | |||
26010 | # Is the header present? | ||
26011 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
26012 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
26013 | cat >conftest.$ac_ext <<_ACEOF | ||
26014 | /* confdefs.h. */ | ||
26015 | _ACEOF | ||
26016 | cat confdefs.h >>conftest.$ac_ext | ||
26017 | cat >>conftest.$ac_ext <<_ACEOF | ||
26018 | /* end confdefs.h. */ | ||
26019 | #include <$ac_header> | ||
26020 | _ACEOF | ||
26021 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26022 | case "(($ac_try" in | ||
26023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26024 | *) ac_try_echo=$ac_try;; | ||
26025 | esac | ||
26026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26027 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26028 | ac_status=$? | ||
26029 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26030 | rm -f conftest.er1 | ||
26031 | cat conftest.err >&5 | ||
26032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26033 | (exit $ac_status); } >/dev/null && { | ||
26034 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26035 | test ! -s conftest.err | ||
26036 | }; then | ||
26037 | ac_header_preproc=yes | ||
26038 | else | ||
26039 | echo "$as_me: failed program was:" >&5 | ||
26040 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26041 | |||
26042 | ac_header_preproc=no | ||
26043 | fi | ||
26044 | |||
26045 | rm -f conftest.err conftest.$ac_ext | ||
26046 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26047 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
26048 | |||
26049 | # So? What about this header? | ||
26050 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26051 | yes:no: ) | ||
26052 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
26053 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
26054 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
26055 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
26056 | ac_header_preproc=yes | ||
26057 | ;; | ||
26058 | no:yes:* ) | ||
26059 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
26060 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
26061 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
26062 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
26063 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
26064 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
26065 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
26066 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
26067 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
26068 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
26069 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
26070 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
26071 | ( cat <<\_ASBOX | ||
26072 | ## ------------------------------------------- ## | ||
26073 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
26074 | ## ------------------------------------------- ## | ||
26075 | _ASBOX | ||
26076 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
26077 | ;; | ||
26078 | esac | ||
26079 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
26080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
26081 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26083 | else | ||
26084 | eval "$as_ac_Header=\$ac_header_preproc" | ||
26085 | fi | ||
26086 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
26087 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26088 | echo "${ECHO_T}$ac_res" >&6; } | ||
26089 | |||
26090 | fi | ||
26091 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
26092 | cat >>confdefs.h <<_ACEOF | ||
26093 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
26094 | _ACEOF | ||
26095 | |||
26096 | else | ||
26097 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
26098 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
26099 | |||
26100 | fi | ||
26101 | |||
26102 | done | ||
26103 | |||
26104 | |||
26105 | |||
26106 | fi | ||
26107 | |||
26108 | |||
26109 | |||
26110 | oldCPP="$CPPFLAGS" | ||
26111 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
26112 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
26113 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
26114 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
26115 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
26116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26117 | fi | ||
26118 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
26119 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
26120 | else | ||
26121 | # Is the header compilable? | ||
26122 | { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
26123 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; } | ||
26124 | cat >conftest.$ac_ext <<_ACEOF | ||
26125 | /* confdefs.h. */ | ||
26126 | _ACEOF | ||
26127 | cat confdefs.h >>conftest.$ac_ext | ||
26128 | cat >>conftest.$ac_ext <<_ACEOF | ||
26129 | /* end confdefs.h. */ | ||
26130 | $ac_includes_default | ||
26131 | #include <gssapi_krb5.h> | ||
26132 | _ACEOF | ||
26133 | rm -f conftest.$ac_objext | ||
26134 | if { (ac_try="$ac_compile" | ||
26135 | case "(($ac_try" in | ||
26136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26137 | *) ac_try_echo=$ac_try;; | ||
26138 | esac | ||
26139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26140 | (eval "$ac_compile") 2>conftest.er1 | ||
26141 | ac_status=$? | ||
26142 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26143 | rm -f conftest.er1 | ||
26144 | cat conftest.err >&5 | ||
26145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26146 | (exit $ac_status); } && { | ||
26147 | test -z "$ac_c_werror_flag" || | ||
26148 | test ! -s conftest.err | ||
26149 | } && test -s conftest.$ac_objext; then | ||
26150 | ac_header_compiler=yes | ||
26151 | else | ||
26152 | echo "$as_me: failed program was:" >&5 | ||
26153 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26154 | |||
26155 | ac_header_compiler=no | ||
26156 | fi | ||
26157 | |||
26158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26159 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26160 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
26161 | |||
26162 | # Is the header present? | ||
26163 | { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
26164 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; } | ||
26165 | cat >conftest.$ac_ext <<_ACEOF | ||
26166 | /* confdefs.h. */ | ||
26167 | _ACEOF | ||
26168 | cat confdefs.h >>conftest.$ac_ext | ||
26169 | cat >>conftest.$ac_ext <<_ACEOF | ||
26170 | /* end confdefs.h. */ | ||
26171 | #include <gssapi_krb5.h> | ||
26172 | _ACEOF | ||
26173 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26174 | case "(($ac_try" in | ||
26175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26176 | *) ac_try_echo=$ac_try;; | ||
26177 | esac | ||
26178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26179 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26180 | ac_status=$? | ||
26181 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26182 | rm -f conftest.er1 | ||
26183 | cat conftest.err >&5 | ||
26184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26185 | (exit $ac_status); } >/dev/null && { | ||
26186 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26187 | test ! -s conftest.err | ||
26188 | }; then | ||
26189 | ac_header_preproc=yes | ||
26190 | else | ||
26191 | echo "$as_me: failed program was:" >&5 | ||
26192 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26193 | |||
26194 | ac_header_preproc=no | ||
26195 | fi | ||
26196 | |||
26197 | rm -f conftest.err conftest.$ac_ext | ||
26198 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26199 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
26200 | |||
26201 | # So? What about this header? | ||
26202 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26203 | yes:no: ) | ||
26204 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
26205 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
26206 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
26207 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
26208 | ac_header_preproc=yes | ||
26209 | ;; | ||
26210 | no:yes:* ) | ||
26211 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
26212 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
26213 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
26214 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
26215 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
26216 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
26217 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
26218 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
26219 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
26220 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
26221 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
26222 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
26223 | ( cat <<\_ASBOX | ||
26224 | ## ------------------------------------------- ## | ||
26225 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
26226 | ## ------------------------------------------- ## | ||
26227 | _ASBOX | ||
26228 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
26229 | ;; | ||
26230 | esac | ||
26231 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
26232 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
26233 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
26234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26235 | else | ||
26236 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
26237 | fi | ||
26238 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
26239 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
26240 | |||
26241 | fi | ||
26242 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
26243 | : | ||
26244 | else | ||
26245 | CPPFLAGS="$oldCPP" | ||
26246 | fi | ||
26247 | |||
26248 | |||
26249 | |||
26250 | fi | ||
26251 | if test ! -z "$need_dash_r" ; then | ||
26252 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
26253 | fi | ||
26254 | if test ! -z "$blibpath" ; then | ||
26255 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
26256 | fi | ||
26257 | |||
26258 | |||
26259 | |||
26260 | for ac_header in gssapi.h gssapi/gssapi.h | ||
26261 | do | ||
26262 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
26263 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26264 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
26265 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
26266 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26268 | fi | ||
26269 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
26270 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26271 | echo "${ECHO_T}$ac_res" >&6; } | ||
26272 | else | ||
26273 | # Is the header compilable? | ||
26274 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
26275 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
26276 | cat >conftest.$ac_ext <<_ACEOF | ||
26277 | /* confdefs.h. */ | ||
26278 | _ACEOF | ||
26279 | cat confdefs.h >>conftest.$ac_ext | ||
26280 | cat >>conftest.$ac_ext <<_ACEOF | ||
26281 | /* end confdefs.h. */ | ||
26282 | $ac_includes_default | ||
26283 | #include <$ac_header> | ||
26284 | _ACEOF | ||
26285 | rm -f conftest.$ac_objext | ||
26286 | if { (ac_try="$ac_compile" | ||
26287 | case "(($ac_try" in | ||
26288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26289 | *) ac_try_echo=$ac_try;; | ||
26290 | esac | ||
26291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26292 | (eval "$ac_compile") 2>conftest.er1 | ||
26293 | ac_status=$? | ||
26294 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26295 | rm -f conftest.er1 | ||
26296 | cat conftest.err >&5 | ||
26297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26298 | (exit $ac_status); } && { | ||
26299 | test -z "$ac_c_werror_flag" || | ||
26300 | test ! -s conftest.err | ||
26301 | } && test -s conftest.$ac_objext; then | ||
26302 | ac_header_compiler=yes | ||
26303 | else | ||
26304 | echo "$as_me: failed program was:" >&5 | ||
26305 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26306 | |||
26307 | ac_header_compiler=no | ||
26308 | fi | ||
26309 | |||
26310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26311 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26312 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
26313 | |||
26314 | # Is the header present? | ||
26315 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
26316 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
26317 | cat >conftest.$ac_ext <<_ACEOF | ||
26318 | /* confdefs.h. */ | ||
26319 | _ACEOF | ||
26320 | cat confdefs.h >>conftest.$ac_ext | ||
26321 | cat >>conftest.$ac_ext <<_ACEOF | ||
26322 | /* end confdefs.h. */ | ||
26323 | #include <$ac_header> | ||
26324 | _ACEOF | ||
26325 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26326 | case "(($ac_try" in | ||
26327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26328 | *) ac_try_echo=$ac_try;; | ||
26329 | esac | ||
26330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26331 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26332 | ac_status=$? | ||
26333 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26334 | rm -f conftest.er1 | ||
26335 | cat conftest.err >&5 | ||
26336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26337 | (exit $ac_status); } >/dev/null && { | ||
26338 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26339 | test ! -s conftest.err | ||
26340 | }; then | ||
26341 | ac_header_preproc=yes | ||
26342 | else | ||
26343 | echo "$as_me: failed program was:" >&5 | ||
26344 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26345 | |||
26346 | ac_header_preproc=no | ||
26347 | fi | ||
26348 | |||
26349 | rm -f conftest.err conftest.$ac_ext | ||
26350 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26351 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
26352 | |||
26353 | # So? What about this header? | ||
26354 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26355 | yes:no: ) | ||
26356 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
26357 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
26358 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
26359 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
26360 | ac_header_preproc=yes | ||
26361 | ;; | ||
26362 | no:yes:* ) | ||
26363 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
26364 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
26365 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
26366 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
26367 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
26368 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
26369 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
26370 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
26371 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
26372 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
26373 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
26374 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
26375 | ( cat <<\_ASBOX | ||
26376 | ## ------------------------------------------- ## | ||
26377 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
26378 | ## ------------------------------------------- ## | ||
26379 | _ASBOX | ||
26380 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
26381 | ;; | ||
26382 | esac | ||
26383 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
26384 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
26385 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26387 | else | ||
26388 | eval "$as_ac_Header=\$ac_header_preproc" | ||
26389 | fi | ||
26390 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
26391 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26392 | echo "${ECHO_T}$ac_res" >&6; } | ||
26393 | |||
26394 | fi | ||
26395 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
26396 | cat >>confdefs.h <<_ACEOF | ||
26397 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
26398 | _ACEOF | ||
26399 | |||
26400 | fi | ||
26401 | |||
26402 | done | ||
26403 | |||
26404 | |||
26405 | |||
26406 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
26407 | do | ||
26408 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
26409 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26410 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
26411 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
26412 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26414 | fi | ||
26415 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
26416 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26417 | echo "${ECHO_T}$ac_res" >&6; } | ||
26418 | else | ||
26419 | # Is the header compilable? | ||
26420 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
26421 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
26422 | cat >conftest.$ac_ext <<_ACEOF | ||
26423 | /* confdefs.h. */ | ||
26424 | _ACEOF | ||
26425 | cat confdefs.h >>conftest.$ac_ext | ||
26426 | cat >>conftest.$ac_ext <<_ACEOF | ||
26427 | /* end confdefs.h. */ | ||
26428 | $ac_includes_default | ||
26429 | #include <$ac_header> | ||
26430 | _ACEOF | ||
26431 | rm -f conftest.$ac_objext | ||
26432 | if { (ac_try="$ac_compile" | ||
26433 | case "(($ac_try" in | ||
26434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26435 | *) ac_try_echo=$ac_try;; | ||
26436 | esac | ||
26437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26438 | (eval "$ac_compile") 2>conftest.er1 | ||
26439 | ac_status=$? | ||
26440 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26441 | rm -f conftest.er1 | ||
26442 | cat conftest.err >&5 | ||
26443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26444 | (exit $ac_status); } && { | ||
26445 | test -z "$ac_c_werror_flag" || | ||
26446 | test ! -s conftest.err | ||
26447 | } && test -s conftest.$ac_objext; then | ||
26448 | ac_header_compiler=yes | ||
26449 | else | ||
26450 | echo "$as_me: failed program was:" >&5 | ||
26451 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26452 | |||
26453 | ac_header_compiler=no | ||
26454 | fi | ||
26455 | |||
26456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26457 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26458 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
26459 | |||
26460 | # Is the header present? | ||
26461 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
26462 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
26463 | cat >conftest.$ac_ext <<_ACEOF | ||
26464 | /* confdefs.h. */ | ||
26465 | _ACEOF | ||
26466 | cat confdefs.h >>conftest.$ac_ext | ||
26467 | cat >>conftest.$ac_ext <<_ACEOF | ||
26468 | /* end confdefs.h. */ | ||
26469 | #include <$ac_header> | ||
26470 | _ACEOF | ||
26471 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26472 | case "(($ac_try" in | ||
26473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26474 | *) ac_try_echo=$ac_try;; | ||
26475 | esac | ||
26476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26478 | ac_status=$? | ||
26479 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26480 | rm -f conftest.er1 | ||
26481 | cat conftest.err >&5 | ||
26482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26483 | (exit $ac_status); } >/dev/null && { | ||
26484 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26485 | test ! -s conftest.err | ||
26486 | }; then | ||
26487 | ac_header_preproc=yes | ||
26488 | else | ||
26489 | echo "$as_me: failed program was:" >&5 | ||
26490 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26491 | |||
26492 | ac_header_preproc=no | ||
26493 | fi | ||
26494 | |||
26495 | rm -f conftest.err conftest.$ac_ext | ||
26496 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26497 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
26498 | |||
26499 | # So? What about this header? | ||
26500 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26501 | yes:no: ) | ||
26502 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
26503 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
26504 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
26505 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
26506 | ac_header_preproc=yes | ||
26507 | ;; | ||
26508 | no:yes:* ) | ||
26509 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
26510 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
26511 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
26512 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
26513 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
26514 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
26515 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
26516 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
26517 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
26518 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
26519 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
26520 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
26521 | ( cat <<\_ASBOX | ||
26522 | ## ------------------------------------------- ## | ||
26523 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
26524 | ## ------------------------------------------- ## | ||
26525 | _ASBOX | ||
26526 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
26527 | ;; | ||
26528 | esac | ||
26529 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
26530 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
26531 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26533 | else | ||
26534 | eval "$as_ac_Header=\$ac_header_preproc" | ||
26535 | fi | ||
26536 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
26537 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26538 | echo "${ECHO_T}$ac_res" >&6; } | ||
26539 | |||
26540 | fi | ||
26541 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
26542 | cat >>confdefs.h <<_ACEOF | ||
26543 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
26544 | _ACEOF | ||
26545 | |||
26546 | fi | ||
26547 | |||
26548 | done | ||
26549 | |||
26550 | |||
26551 | |||
26552 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
26553 | do | ||
26554 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
26555 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26556 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
26557 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
26558 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26560 | fi | ||
26561 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
26562 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26563 | echo "${ECHO_T}$ac_res" >&6; } | ||
26564 | else | ||
26565 | # Is the header compilable? | ||
26566 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
26567 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
26568 | cat >conftest.$ac_ext <<_ACEOF | ||
26569 | /* confdefs.h. */ | ||
26570 | _ACEOF | ||
26571 | cat confdefs.h >>conftest.$ac_ext | ||
26572 | cat >>conftest.$ac_ext <<_ACEOF | ||
26573 | /* end confdefs.h. */ | ||
26574 | $ac_includes_default | ||
26575 | #include <$ac_header> | ||
26576 | _ACEOF | ||
26577 | rm -f conftest.$ac_objext | ||
26578 | if { (ac_try="$ac_compile" | ||
26579 | case "(($ac_try" in | ||
26580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26581 | *) ac_try_echo=$ac_try;; | ||
26582 | esac | ||
26583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26584 | (eval "$ac_compile") 2>conftest.er1 | ||
26585 | ac_status=$? | ||
26586 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26587 | rm -f conftest.er1 | ||
26588 | cat conftest.err >&5 | ||
26589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26590 | (exit $ac_status); } && { | ||
26591 | test -z "$ac_c_werror_flag" || | ||
26592 | test ! -s conftest.err | ||
26593 | } && test -s conftest.$ac_objext; then | ||
26594 | ac_header_compiler=yes | ||
26595 | else | ||
26596 | echo "$as_me: failed program was:" >&5 | ||
26597 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26598 | |||
26599 | ac_header_compiler=no | ||
26600 | fi | ||
26601 | |||
26602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26603 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26604 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
26605 | |||
26606 | # Is the header present? | ||
26607 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
26608 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
26609 | cat >conftest.$ac_ext <<_ACEOF | ||
26610 | /* confdefs.h. */ | ||
26611 | _ACEOF | ||
26612 | cat confdefs.h >>conftest.$ac_ext | ||
26613 | cat >>conftest.$ac_ext <<_ACEOF | ||
26614 | /* end confdefs.h. */ | ||
26615 | #include <$ac_header> | ||
26616 | _ACEOF | ||
26617 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26618 | case "(($ac_try" in | ||
26619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26620 | *) ac_try_echo=$ac_try;; | ||
26621 | esac | ||
26622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26623 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26624 | ac_status=$? | ||
26625 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26626 | rm -f conftest.er1 | ||
26627 | cat conftest.err >&5 | ||
26628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26629 | (exit $ac_status); } >/dev/null && { | ||
26630 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26631 | test ! -s conftest.err | ||
26632 | }; then | ||
26633 | ac_header_preproc=yes | ||
26634 | else | ||
26635 | echo "$as_me: failed program was:" >&5 | ||
26636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26637 | |||
26638 | ac_header_preproc=no | ||
26639 | fi | ||
26640 | |||
26641 | rm -f conftest.err conftest.$ac_ext | ||
26642 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26643 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
26644 | |||
26645 | # So? What about this header? | ||
26646 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26647 | yes:no: ) | ||
26648 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
26649 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
26650 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
26651 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
26652 | ac_header_preproc=yes | ||
26653 | ;; | ||
26654 | no:yes:* ) | ||
26655 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
26656 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
26657 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
26658 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
26659 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
26660 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
26661 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
26662 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
26663 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
26664 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
26665 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
26666 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
26667 | ( cat <<\_ASBOX | ||
26668 | ## ------------------------------------------- ## | ||
26669 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
26670 | ## ------------------------------------------- ## | ||
26671 | _ASBOX | ||
26672 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
26673 | ;; | ||
26674 | esac | ||
26675 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
26676 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
26677 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26679 | else | ||
26680 | eval "$as_ac_Header=\$ac_header_preproc" | ||
26681 | fi | ||
26682 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
26683 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26684 | echo "${ECHO_T}$ac_res" >&6; } | ||
26685 | |||
26686 | fi | ||
26687 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
26688 | cat >>confdefs.h <<_ACEOF | ||
26689 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
26690 | _ACEOF | ||
26691 | |||
26692 | fi | ||
26693 | |||
26694 | done | ||
26695 | |||
26696 | |||
26697 | LIBS="$LIBS $K5LIBS" | ||
26698 | { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
26699 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; } | ||
26700 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
26701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26702 | else | ||
26703 | ac_func_search_save_LIBS=$LIBS | ||
26704 | cat >conftest.$ac_ext <<_ACEOF | ||
26705 | /* confdefs.h. */ | ||
26706 | _ACEOF | ||
26707 | cat confdefs.h >>conftest.$ac_ext | ||
26708 | cat >>conftest.$ac_ext <<_ACEOF | ||
26709 | /* end confdefs.h. */ | ||
26710 | |||
26711 | /* Override any GCC internal prototype to avoid an error. | ||
26712 | Use char because int might match the return type of a GCC | ||
26713 | builtin and then its argument prototype would still apply. */ | ||
26714 | #ifdef __cplusplus | ||
26715 | extern "C" | ||
26716 | #endif | ||
26717 | char k_hasafs (); | ||
26718 | int | ||
26719 | main () | ||
26720 | { | ||
26721 | return k_hasafs (); | ||
26722 | ; | ||
26723 | return 0; | ||
26724 | } | ||
26725 | _ACEOF | ||
26726 | for ac_lib in '' kafs; do | ||
26727 | if test -z "$ac_lib"; then | ||
26728 | ac_res="none required" | ||
26729 | else | ||
26730 | ac_res=-l$ac_lib | ||
26731 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
26732 | fi | ||
26733 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26734 | if { (ac_try="$ac_link" | ||
26735 | case "(($ac_try" in | ||
26736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26737 | *) ac_try_echo=$ac_try;; | ||
26738 | esac | ||
26739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26740 | (eval "$ac_link") 2>conftest.er1 | ||
26741 | ac_status=$? | ||
26742 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26743 | rm -f conftest.er1 | ||
26744 | cat conftest.err >&5 | ||
26745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26746 | (exit $ac_status); } && { | ||
26747 | test -z "$ac_c_werror_flag" || | ||
26748 | test ! -s conftest.err | ||
26749 | } && test -s conftest$ac_exeext && | ||
26750 | $as_test_x conftest$ac_exeext; then | ||
26751 | ac_cv_search_k_hasafs=$ac_res | ||
26752 | else | ||
26753 | echo "$as_me: failed program was:" >&5 | ||
26754 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26755 | |||
26756 | |||
26757 | fi | ||
26758 | |||
26759 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26760 | conftest$ac_exeext | ||
26761 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
26762 | break | ||
26763 | fi | ||
26764 | done | ||
26765 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
26766 | : | ||
26767 | else | ||
26768 | ac_cv_search_k_hasafs=no | ||
26769 | fi | ||
26770 | rm conftest.$ac_ext | ||
26771 | LIBS=$ac_func_search_save_LIBS | ||
26772 | fi | ||
26773 | { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
26774 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; } | ||
26775 | ac_res=$ac_cv_search_k_hasafs | ||
26776 | if test "$ac_res" != no; then | ||
26777 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
26778 | |||
26779 | cat >>confdefs.h <<\_ACEOF | ||
26780 | #define USE_AFS 1 | ||
26781 | _ACEOF | ||
26782 | |||
26783 | fi | ||
26784 | |||
26785 | fi | ||
26786 | |||
26787 | |||
26788 | fi | ||
26789 | |||
26790 | |||
26791 | # Looking for programs, paths and files | ||
26792 | |||
26793 | PRIVSEP_PATH=/var/empty | ||
26794 | |||
26795 | # Check whether --with-privsep-path was given. | ||
26796 | if test "${with_privsep_path+set}" = set; then | ||
26797 | withval=$with_privsep_path; | ||
26798 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
26799 | test "x${withval}" != "xyes"; then | ||
26800 | PRIVSEP_PATH=$withval | ||
26801 | fi | ||
26802 | |||
26803 | |||
26804 | fi | ||
26805 | |||
26806 | |||
26807 | |||
26808 | |||
26809 | # Check whether --with-xauth was given. | ||
26810 | if test "${with_xauth+set}" = set; then | ||
26811 | withval=$with_xauth; | ||
26812 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
26813 | test "x${withval}" != "xyes"; then | ||
26814 | xauth_path=$withval | ||
26815 | fi | ||
26816 | |||
26817 | else | ||
26818 | |||
26819 | TestPath="$PATH" | ||
26820 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
26821 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
26822 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
26823 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
26824 | # Extract the first word of "xauth", so it can be a program name with args. | ||
26825 | set dummy xauth; ac_word=$2 | ||
26826 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
26827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
26828 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
26829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26830 | else | ||
26831 | case $xauth_path in | ||
26832 | [\\/]* | ?:[\\/]*) | ||
26833 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
26834 | ;; | ||
26835 | *) | ||
26836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
26837 | for as_dir in $TestPath | ||
26838 | do | ||
26839 | IFS=$as_save_IFS | ||
26840 | test -z "$as_dir" && as_dir=. | ||
26841 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
26842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
26843 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
26844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
26845 | break 2 | ||
26846 | fi | ||
26847 | done | ||
26848 | done | ||
26849 | IFS=$as_save_IFS | ||
26850 | |||
26851 | ;; | ||
26852 | esac | ||
26853 | fi | ||
26854 | xauth_path=$ac_cv_path_xauth_path | ||
26855 | if test -n "$xauth_path"; then | ||
26856 | { echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
26857 | echo "${ECHO_T}$xauth_path" >&6; } | ||
26858 | else | ||
26859 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26860 | echo "${ECHO_T}no" >&6; } | ||
26861 | fi | ||
26862 | |||
26863 | |||
26864 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
26865 | xauth_path="/usr/openwin/bin/xauth" | ||
26866 | fi | ||
26867 | |||
26868 | |||
26869 | fi | ||
26870 | |||
26871 | |||
26872 | STRIP_OPT=-s | ||
26873 | # Check whether --enable-strip was given. | ||
26874 | if test "${enable_strip+set}" = set; then | ||
26875 | enableval=$enable_strip; | ||
26876 | if test "x$enableval" = "xno" ; then | ||
26877 | STRIP_OPT= | ||
26878 | fi | ||
26879 | |||
26880 | |||
26881 | fi | ||
26882 | |||
26883 | |||
26884 | |||
26885 | if test -z "$xauth_path" ; then | ||
26886 | XAUTH_PATH="undefined" | ||
26887 | |||
26888 | else | ||
26889 | |||
26890 | cat >>confdefs.h <<_ACEOF | ||
26891 | #define XAUTH_PATH "$xauth_path" | ||
26892 | _ACEOF | ||
26893 | |||
26894 | XAUTH_PATH=$xauth_path | ||
26895 | |||
26896 | fi | ||
26897 | |||
26898 | # Check for mail directory (last resort if we cannot get it from headers) | ||
26899 | if test ! -z "$MAIL" ; then | ||
26900 | maildir=`dirname $MAIL` | ||
26901 | |||
26902 | cat >>confdefs.h <<_ACEOF | ||
26903 | #define MAIL_DIRECTORY "$maildir" | ||
26904 | _ACEOF | ||
26905 | |||
26906 | fi | ||
26907 | |||
26908 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
26909 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
26910 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
26911 | disable_ptmx_check=yes | ||
26912 | fi | ||
26913 | if test -z "$no_dev_ptmx" ; then | ||
26914 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
26915 | { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
26916 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; } | ||
26917 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
26918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26919 | else | ||
26920 | test "$cross_compiling" = yes && | ||
26921 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
26922 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
26923 | { (exit 1); exit 1; }; } | ||
26924 | if test -r ""/dev/ptmx""; then | ||
26925 | ac_cv_file___dev_ptmx_=yes | ||
26926 | else | ||
26927 | ac_cv_file___dev_ptmx_=no | ||
26928 | fi | ||
26929 | fi | ||
26930 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
26931 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; } | ||
26932 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
26933 | |||
26934 | |||
26935 | cat >>confdefs.h <<_ACEOF | ||
26936 | #define HAVE_DEV_PTMX 1 | ||
26937 | _ACEOF | ||
26938 | |||
26939 | have_dev_ptmx=1 | ||
26940 | |||
26941 | |||
26942 | fi | ||
26943 | |||
26944 | fi | ||
26945 | fi | ||
26946 | |||
26947 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
26948 | { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
26949 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; } | ||
26950 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
26951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26952 | else | ||
26953 | test "$cross_compiling" = yes && | ||
26954 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
26955 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
26956 | { (exit 1); exit 1; }; } | ||
26957 | if test -r ""/dev/ptc""; then | ||
26958 | ac_cv_file___dev_ptc_=yes | ||
26959 | else | ||
26960 | ac_cv_file___dev_ptc_=no | ||
26961 | fi | ||
26962 | fi | ||
26963 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
26964 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; } | ||
26965 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
26966 | |||
26967 | |||
26968 | cat >>confdefs.h <<_ACEOF | ||
26969 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
26970 | _ACEOF | ||
26971 | |||
26972 | have_dev_ptc=1 | ||
26973 | |||
26974 | |||
26975 | fi | ||
26976 | |||
26977 | else | ||
26978 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
26979 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
26980 | fi | ||
26981 | |||
26982 | # Options from here on. Some of these are preset by platform above | ||
26983 | |||
26984 | # Check whether --with-mantype was given. | ||
26985 | if test "${with_mantype+set}" = set; then | ||
26986 | withval=$with_mantype; | ||
26987 | case "$withval" in | ||
26988 | man|cat|doc) | ||
26989 | MANTYPE=$withval | ||
26990 | ;; | ||
26991 | *) | ||
26992 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
26993 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
26994 | { (exit 1); exit 1; }; } | ||
26995 | ;; | ||
26996 | esac | ||
26997 | |||
26998 | |||
26999 | fi | ||
27000 | |||
27001 | if test -z "$MANTYPE"; then | ||
27002 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
27003 | for ac_prog in nroff awf | ||
27004 | do | ||
27005 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
27006 | set dummy $ac_prog; ac_word=$2 | ||
27007 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
27008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
27009 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
27010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27011 | else | ||
27012 | case $NROFF in | ||
27013 | [\\/]* | ?:[\\/]*) | ||
27014 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
27015 | ;; | ||
27016 | *) | ||
27017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
27018 | for as_dir in $TestPath | ||
27019 | do | ||
27020 | IFS=$as_save_IFS | ||
27021 | test -z "$as_dir" && as_dir=. | ||
27022 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
27023 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
27024 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
27025 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
27026 | break 2 | ||
27027 | fi | ||
27028 | done | ||
27029 | done | ||
27030 | IFS=$as_save_IFS | ||
27031 | |||
27032 | ;; | ||
27033 | esac | ||
27034 | fi | ||
27035 | NROFF=$ac_cv_path_NROFF | ||
27036 | if test -n "$NROFF"; then | ||
27037 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
27038 | echo "${ECHO_T}$NROFF" >&6; } | ||
27039 | else | ||
27040 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27041 | echo "${ECHO_T}no" >&6; } | ||
27042 | fi | ||
27043 | |||
27044 | |||
27045 | test -n "$NROFF" && break | ||
27046 | done | ||
27047 | test -n "$NROFF" || NROFF="/bin/false" | ||
27048 | |||
27049 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
27050 | MANTYPE=doc | ||
27051 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
27052 | MANTYPE=man | ||
27053 | else | ||
27054 | MANTYPE=cat | ||
27055 | fi | ||
27056 | fi | ||
27057 | |||
27058 | if test "$MANTYPE" = "doc"; then | ||
27059 | mansubdir=man; | ||
27060 | else | ||
27061 | mansubdir=$MANTYPE; | ||
27062 | fi | ||
27063 | |||
27064 | |||
27065 | # Check whether to enable MD5 passwords | ||
27066 | MD5_MSG="no" | ||
27067 | |||
27068 | # Check whether --with-md5-passwords was given. | ||
27069 | if test "${with_md5_passwords+set}" = set; then | ||
27070 | withval=$with_md5_passwords; | ||
27071 | if test "x$withval" != "xno" ; then | ||
27072 | |||
27073 | cat >>confdefs.h <<\_ACEOF | ||
27074 | #define HAVE_MD5_PASSWORDS 1 | ||
27075 | _ACEOF | ||
27076 | |||
27077 | MD5_MSG="yes" | ||
27078 | fi | ||
27079 | |||
27080 | |||
27081 | fi | ||
27082 | |||
27083 | |||
27084 | # Whether to disable shadow password support | ||
27085 | |||
27086 | # Check whether --with-shadow was given. | ||
27087 | if test "${with_shadow+set}" = set; then | ||
27088 | withval=$with_shadow; | ||
27089 | if test "x$withval" = "xno" ; then | ||
27090 | cat >>confdefs.h <<\_ACEOF | ||
27091 | #define DISABLE_SHADOW 1 | ||
27092 | _ACEOF | ||
27093 | |||
27094 | disable_shadow=yes | ||
27095 | fi | ||
27096 | |||
27097 | |||
27098 | fi | ||
27099 | |||
27100 | |||
27101 | if test -z "$disable_shadow" ; then | ||
27102 | { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
27103 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; } | ||
27104 | cat >conftest.$ac_ext <<_ACEOF | ||
27105 | /* confdefs.h. */ | ||
27106 | _ACEOF | ||
27107 | cat confdefs.h >>conftest.$ac_ext | ||
27108 | cat >>conftest.$ac_ext <<_ACEOF | ||
27109 | /* end confdefs.h. */ | ||
27110 | |||
27111 | #include <sys/types.h> | ||
27112 | #include <shadow.h> | ||
27113 | struct spwd sp; | ||
27114 | |||
27115 | int | ||
27116 | main () | ||
27117 | { | ||
27118 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
27119 | ; | ||
27120 | return 0; | ||
27121 | } | ||
27122 | _ACEOF | ||
27123 | rm -f conftest.$ac_objext | ||
27124 | if { (ac_try="$ac_compile" | ||
27125 | case "(($ac_try" in | ||
27126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27127 | *) ac_try_echo=$ac_try;; | ||
27128 | esac | ||
27129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27130 | (eval "$ac_compile") 2>conftest.er1 | ||
27131 | ac_status=$? | ||
27132 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27133 | rm -f conftest.er1 | ||
27134 | cat conftest.err >&5 | ||
27135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27136 | (exit $ac_status); } && { | ||
27137 | test -z "$ac_c_werror_flag" || | ||
27138 | test ! -s conftest.err | ||
27139 | } && test -s conftest.$ac_objext; then | ||
27140 | sp_expire_available=yes | ||
27141 | else | ||
27142 | echo "$as_me: failed program was:" >&5 | ||
27143 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27144 | |||
27145 | |||
27146 | |||
27147 | fi | ||
27148 | |||
27149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27150 | |||
27151 | if test "x$sp_expire_available" = "xyes" ; then | ||
27152 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27153 | echo "${ECHO_T}yes" >&6; } | ||
27154 | |||
27155 | cat >>confdefs.h <<\_ACEOF | ||
27156 | #define HAS_SHADOW_EXPIRE 1 | ||
27157 | _ACEOF | ||
27158 | |||
27159 | else | ||
27160 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27161 | echo "${ECHO_T}no" >&6; } | ||
27162 | fi | ||
27163 | fi | ||
27164 | |||
27165 | # Use ip address instead of hostname in $DISPLAY | ||
27166 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
27167 | DISPLAY_HACK_MSG="yes" | ||
27168 | |||
27169 | cat >>confdefs.h <<\_ACEOF | ||
27170 | #define IPADDR_IN_DISPLAY 1 | ||
27171 | _ACEOF | ||
27172 | |||
27173 | else | ||
27174 | DISPLAY_HACK_MSG="no" | ||
27175 | |||
27176 | # Check whether --with-ipaddr-display was given. | ||
27177 | if test "${with_ipaddr_display+set}" = set; then | ||
27178 | withval=$with_ipaddr_display; | ||
27179 | if test "x$withval" != "xno" ; then | ||
27180 | cat >>confdefs.h <<\_ACEOF | ||
27181 | #define IPADDR_IN_DISPLAY 1 | ||
27182 | _ACEOF | ||
27183 | |||
27184 | DISPLAY_HACK_MSG="yes" | ||
27185 | fi | ||
27186 | |||
27187 | |||
27188 | fi | ||
27189 | |||
27190 | fi | ||
27191 | |||
27192 | # check for /etc/default/login and use it if present. | ||
27193 | # Check whether --enable-etc-default-login was given. | ||
27194 | if test "${enable_etc_default_login+set}" = set; then | ||
27195 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
27196 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
27197 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
27198 | etc_default_login=no | ||
27199 | else | ||
27200 | etc_default_login=yes | ||
27201 | fi | ||
27202 | else | ||
27203 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
27204 | then | ||
27205 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
27206 | echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
27207 | etc_default_login=no | ||
27208 | else | ||
27209 | etc_default_login=yes | ||
27210 | fi | ||
27211 | |||
27212 | fi | ||
27213 | |||
27214 | |||
27215 | if test "x$etc_default_login" != "xno"; then | ||
27216 | { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
27217 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; } | ||
27218 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
27219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27220 | else | ||
27221 | test "$cross_compiling" = yes && | ||
27222 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
27223 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
27224 | { (exit 1); exit 1; }; } | ||
27225 | if test -r ""/etc/default/login""; then | ||
27226 | ac_cv_file___etc_default_login_=yes | ||
27227 | else | ||
27228 | ac_cv_file___etc_default_login_=no | ||
27229 | fi | ||
27230 | fi | ||
27231 | { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
27232 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; } | ||
27233 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
27234 | external_path_file=/etc/default/login | ||
27235 | fi | ||
27236 | |||
27237 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
27238 | |||
27239 | cat >>confdefs.h <<\_ACEOF | ||
27240 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
27241 | _ACEOF | ||
27242 | |||
27243 | fi | ||
27244 | fi | ||
27245 | |||
27246 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
27247 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
27248 | external_path_file=/etc/login.conf | ||
27249 | fi | ||
27250 | |||
27251 | # Whether to mess with the default path | ||
27252 | SERVER_PATH_MSG="(default)" | ||
27253 | |||
27254 | # Check whether --with-default-path was given. | ||
27255 | if test "${with_default_path+set}" = set; then | ||
27256 | withval=$with_default_path; | ||
27257 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
27258 | { echo "$as_me:$LINENO: WARNING: | ||
27259 | --with-default-path=PATH has no effect on this system. | ||
27260 | Edit /etc/login.conf instead." >&5 | ||
27261 | echo "$as_me: WARNING: | ||
27262 | --with-default-path=PATH has no effect on this system. | ||
27263 | Edit /etc/login.conf instead." >&2;} | ||
27264 | elif test "x$withval" != "xno" ; then | ||
27265 | if test ! -z "$external_path_file" ; then | ||
27266 | { echo "$as_me:$LINENO: WARNING: | ||
27267 | --with-default-path=PATH will only be used if PATH is not defined in | ||
27268 | $external_path_file ." >&5 | ||
27269 | echo "$as_me: WARNING: | ||
27270 | --with-default-path=PATH will only be used if PATH is not defined in | ||
27271 | $external_path_file ." >&2;} | ||
27272 | fi | ||
27273 | user_path="$withval" | ||
27274 | SERVER_PATH_MSG="$withval" | ||
27275 | fi | ||
27276 | |||
27277 | else | ||
27278 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
27279 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
27280 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
27281 | else | ||
27282 | if test ! -z "$external_path_file" ; then | ||
27283 | { echo "$as_me:$LINENO: WARNING: | ||
27284 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
27285 | otherwise scp will not work." >&5 | ||
27286 | echo "$as_me: WARNING: | ||
27287 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
27288 | otherwise scp will not work." >&2;} | ||
27289 | fi | ||
27290 | if test "$cross_compiling" = yes; then | ||
27291 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
27292 | |||
27293 | else | ||
27294 | cat >conftest.$ac_ext <<_ACEOF | ||
27295 | /* confdefs.h. */ | ||
27296 | _ACEOF | ||
27297 | cat confdefs.h >>conftest.$ac_ext | ||
27298 | cat >>conftest.$ac_ext <<_ACEOF | ||
27299 | /* end confdefs.h. */ | ||
27300 | |||
27301 | /* find out what STDPATH is */ | ||
27302 | #include <stdio.h> | ||
27303 | #ifdef HAVE_PATHS_H | ||
27304 | # include <paths.h> | ||
27305 | #endif | ||
27306 | #ifndef _PATH_STDPATH | ||
27307 | # ifdef _PATH_USERPATH /* Irix */ | ||
27308 | # define _PATH_STDPATH _PATH_USERPATH | ||
27309 | # else | ||
27310 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
27311 | # endif | ||
27312 | #endif | ||
27313 | #include <sys/types.h> | ||
27314 | #include <sys/stat.h> | ||
27315 | #include <fcntl.h> | ||
27316 | #define DATA "conftest.stdpath" | ||
27317 | |||
27318 | main() | ||
27319 | { | ||
27320 | FILE *fd; | ||
27321 | int rc; | ||
27322 | |||
27323 | fd = fopen(DATA,"w"); | ||
27324 | if(fd == NULL) | ||
27325 | exit(1); | ||
27326 | |||
27327 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
27328 | exit(1); | ||
27329 | |||
27330 | exit(0); | ||
27331 | } | ||
27332 | |||
27333 | _ACEOF | ||
27334 | rm -f conftest$ac_exeext | ||
27335 | if { (ac_try="$ac_link" | ||
27336 | case "(($ac_try" in | ||
27337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27338 | *) ac_try_echo=$ac_try;; | ||
27339 | esac | ||
27340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27341 | (eval "$ac_link") 2>&5 | ||
27342 | ac_status=$? | ||
27343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27344 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
27345 | { (case "(($ac_try" in | ||
27346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27347 | *) ac_try_echo=$ac_try;; | ||
27348 | esac | ||
27349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27350 | (eval "$ac_try") 2>&5 | ||
27351 | ac_status=$? | ||
27352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27353 | (exit $ac_status); }; }; then | ||
27354 | user_path=`cat conftest.stdpath` | ||
27355 | else | ||
27356 | echo "$as_me: program exited with status $ac_status" >&5 | ||
27357 | echo "$as_me: failed program was:" >&5 | ||
27358 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27359 | |||
27360 | ( exit $ac_status ) | ||
27361 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
27362 | fi | ||
27363 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
27364 | fi | ||
27365 | |||
27366 | |||
27367 | # make sure $bindir is in USER_PATH so scp will work | ||
27368 | t_bindir=`eval echo ${bindir}` | ||
27369 | case $t_bindir in | ||
27370 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
27371 | esac | ||
27372 | case $t_bindir in | ||
27373 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
27374 | esac | ||
27375 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
27376 | if test $? -ne 0 ; then | ||
27377 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
27378 | if test $? -ne 0 ; then | ||
27379 | user_path=$user_path:$t_bindir | ||
27380 | { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
27381 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
27382 | fi | ||
27383 | fi | ||
27384 | fi | ||
27385 | |||
27386 | fi | ||
27387 | |||
27388 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
27389 | |||
27390 | cat >>confdefs.h <<_ACEOF | ||
27391 | #define USER_PATH "$user_path" | ||
27392 | _ACEOF | ||
27393 | |||
27394 | |||
27395 | fi | ||
27396 | |||
27397 | # Set superuser path separately to user path | ||
27398 | |||
27399 | # Check whether --with-superuser-path was given. | ||
27400 | if test "${with_superuser_path+set}" = set; then | ||
27401 | withval=$with_superuser_path; | ||
27402 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
27403 | test "x${withval}" != "xyes"; then | ||
27404 | |||
27405 | cat >>confdefs.h <<_ACEOF | ||
27406 | #define SUPERUSER_PATH "$withval" | ||
27407 | _ACEOF | ||
27408 | |||
27409 | superuser_path=$withval | ||
27410 | fi | ||
27411 | |||
27412 | |||
27413 | fi | ||
27414 | |||
27415 | |||
27416 | |||
27417 | { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
27418 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; } | ||
27419 | IPV4_IN6_HACK_MSG="no" | ||
27420 | |||
27421 | # Check whether --with-4in6 was given. | ||
27422 | if test "${with_4in6+set}" = set; then | ||
27423 | withval=$with_4in6; | ||
27424 | if test "x$withval" != "xno" ; then | ||
27425 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27426 | echo "${ECHO_T}yes" >&6; } | ||
27427 | |||
27428 | cat >>confdefs.h <<\_ACEOF | ||
27429 | #define IPV4_IN_IPV6 1 | ||
27430 | _ACEOF | ||
27431 | |||
27432 | IPV4_IN6_HACK_MSG="yes" | ||
27433 | else | ||
27434 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27435 | echo "${ECHO_T}no" >&6; } | ||
27436 | fi | ||
27437 | |||
27438 | else | ||
27439 | |||
27440 | if test "x$inet6_default_4in6" = "xyes"; then | ||
27441 | { echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
27442 | echo "${ECHO_T}yes (default)" >&6; } | ||
27443 | cat >>confdefs.h <<\_ACEOF | ||
27444 | #define IPV4_IN_IPV6 1 | ||
27445 | _ACEOF | ||
27446 | |||
27447 | IPV4_IN6_HACK_MSG="yes" | ||
27448 | else | ||
27449 | { echo "$as_me:$LINENO: result: no (default)" >&5 | ||
27450 | echo "${ECHO_T}no (default)" >&6; } | ||
27451 | fi | ||
27452 | |||
27453 | |||
27454 | fi | ||
27455 | |||
27456 | |||
27457 | # Whether to enable BSD auth support | ||
27458 | BSD_AUTH_MSG=no | ||
27459 | |||
27460 | # Check whether --with-bsd-auth was given. | ||
27461 | if test "${with_bsd_auth+set}" = set; then | ||
27462 | withval=$with_bsd_auth; | ||
27463 | if test "x$withval" != "xno" ; then | ||
27464 | |||
27465 | cat >>confdefs.h <<\_ACEOF | ||
27466 | #define BSD_AUTH 1 | ||
27467 | _ACEOF | ||
27468 | |||
27469 | BSD_AUTH_MSG=yes | ||
27470 | fi | ||
27471 | |||
27472 | |||
27473 | fi | ||
27474 | |||
27475 | |||
27476 | # Where to place sshd.pid | ||
27477 | piddir=/var/run | ||
27478 | # make sure the directory exists | ||
27479 | if test ! -d $piddir ; then | ||
27480 | piddir=`eval echo ${sysconfdir}` | ||
27481 | case $piddir in | ||
27482 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
27483 | esac | ||
27484 | fi | ||
27485 | |||
27486 | |||
27487 | # Check whether --with-pid-dir was given. | ||
27488 | if test "${with_pid_dir+set}" = set; then | ||
27489 | withval=$with_pid_dir; | ||
27490 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
27491 | test "x${withval}" != "xyes"; then | ||
27492 | piddir=$withval | ||
27493 | if test ! -d $piddir ; then | ||
27494 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
27495 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
27496 | fi | ||
27497 | fi | ||
27498 | |||
27499 | |||
27500 | fi | ||
27501 | |||
27502 | |||
27503 | |||
27504 | cat >>confdefs.h <<_ACEOF | ||
27505 | #define _PATH_SSH_PIDDIR "$piddir" | ||
27506 | _ACEOF | ||
27507 | |||
27508 | |||
27509 | |||
27510 | # Check whether --enable-lastlog was given. | ||
27511 | if test "${enable_lastlog+set}" = set; then | ||
27512 | enableval=$enable_lastlog; | ||
27513 | if test "x$enableval" = "xno" ; then | ||
27514 | cat >>confdefs.h <<\_ACEOF | ||
27515 | #define DISABLE_LASTLOG 1 | ||
27516 | _ACEOF | ||
27517 | |||
27518 | fi | ||
27519 | |||
27520 | |||
27521 | fi | ||
27522 | |||
27523 | # Check whether --enable-utmp was given. | ||
27524 | if test "${enable_utmp+set}" = set; then | ||
27525 | enableval=$enable_utmp; | ||
27526 | if test "x$enableval" = "xno" ; then | ||
27527 | cat >>confdefs.h <<\_ACEOF | ||
27528 | #define DISABLE_UTMP 1 | ||
27529 | _ACEOF | ||
27530 | |||
27531 | fi | ||
27532 | |||
27533 | |||
27534 | fi | ||
27535 | |||
27536 | # Check whether --enable-utmpx was given. | ||
27537 | if test "${enable_utmpx+set}" = set; then | ||
27538 | enableval=$enable_utmpx; | ||
27539 | if test "x$enableval" = "xno" ; then | ||
27540 | |||
27541 | cat >>confdefs.h <<\_ACEOF | ||
27542 | #define DISABLE_UTMPX 1 | ||
27543 | _ACEOF | ||
27544 | |||
27545 | fi | ||
27546 | |||
27547 | |||
27548 | fi | ||
27549 | |||
27550 | # Check whether --enable-wtmp was given. | ||
27551 | if test "${enable_wtmp+set}" = set; then | ||
27552 | enableval=$enable_wtmp; | ||
27553 | if test "x$enableval" = "xno" ; then | ||
27554 | cat >>confdefs.h <<\_ACEOF | ||
27555 | #define DISABLE_WTMP 1 | ||
27556 | _ACEOF | ||
27557 | |||
27558 | fi | ||
27559 | |||
27560 | |||
27561 | fi | ||
27562 | |||
27563 | # Check whether --enable-wtmpx was given. | ||
27564 | if test "${enable_wtmpx+set}" = set; then | ||
27565 | enableval=$enable_wtmpx; | ||
27566 | if test "x$enableval" = "xno" ; then | ||
27567 | |||
27568 | cat >>confdefs.h <<\_ACEOF | ||
27569 | #define DISABLE_WTMPX 1 | ||
27570 | _ACEOF | ||
27571 | |||
27572 | fi | ||
27573 | |||
27574 | |||
27575 | fi | ||
27576 | |||
27577 | # Check whether --enable-libutil was given. | ||
27578 | if test "${enable_libutil+set}" = set; then | ||
27579 | enableval=$enable_libutil; | ||
27580 | if test "x$enableval" = "xno" ; then | ||
27581 | cat >>confdefs.h <<\_ACEOF | ||
27582 | #define DISABLE_LOGIN 1 | ||
27583 | _ACEOF | ||
27584 | |||
27585 | fi | ||
27586 | |||
27587 | |||
27588 | fi | ||
27589 | |||
27590 | # Check whether --enable-pututline was given. | ||
27591 | if test "${enable_pututline+set}" = set; then | ||
27592 | enableval=$enable_pututline; | ||
27593 | if test "x$enableval" = "xno" ; then | ||
27594 | |||
27595 | cat >>confdefs.h <<\_ACEOF | ||
27596 | #define DISABLE_PUTUTLINE 1 | ||
27597 | _ACEOF | ||
27598 | |||
27599 | fi | ||
27600 | |||
27601 | |||
27602 | fi | ||
27603 | |||
27604 | # Check whether --enable-pututxline was given. | ||
27605 | if test "${enable_pututxline+set}" = set; then | ||
27606 | enableval=$enable_pututxline; | ||
27607 | if test "x$enableval" = "xno" ; then | ||
27608 | |||
27609 | cat >>confdefs.h <<\_ACEOF | ||
27610 | #define DISABLE_PUTUTXLINE 1 | ||
27611 | _ACEOF | ||
27612 | |||
27613 | fi | ||
27614 | |||
27615 | |||
27616 | fi | ||
27617 | |||
27618 | |||
27619 | # Check whether --with-lastlog was given. | ||
27620 | if test "${with_lastlog+set}" = set; then | ||
27621 | withval=$with_lastlog; | ||
27622 | if test "x$withval" = "xno" ; then | ||
27623 | cat >>confdefs.h <<\_ACEOF | ||
27624 | #define DISABLE_LASTLOG 1 | ||
27625 | _ACEOF | ||
27626 | |||
27627 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
27628 | conf_lastlog_location=$withval | ||
27629 | fi | ||
27630 | |||
27631 | |||
27632 | fi | ||
27633 | |||
27634 | |||
27635 | |||
27636 | { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
27637 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; } | ||
27638 | cat >conftest.$ac_ext <<_ACEOF | ||
27639 | /* confdefs.h. */ | ||
27640 | _ACEOF | ||
27641 | cat confdefs.h >>conftest.$ac_ext | ||
27642 | cat >>conftest.$ac_ext <<_ACEOF | ||
27643 | /* end confdefs.h. */ | ||
27644 | |||
27645 | #include <sys/types.h> | ||
27646 | #include <utmp.h> | ||
27647 | #ifdef HAVE_LASTLOG_H | ||
27648 | # include <lastlog.h> | ||
27649 | #endif | ||
27650 | #ifdef HAVE_PATHS_H | ||
27651 | # include <paths.h> | ||
27652 | #endif | ||
27653 | #ifdef HAVE_LOGIN_H | ||
27654 | # include <login.h> | ||
27655 | #endif | ||
27656 | |||
27657 | int | ||
27658 | main () | ||
27659 | { | ||
27660 | char *lastlog = LASTLOG_FILE; | ||
27661 | ; | ||
27662 | return 0; | ||
27663 | } | ||
27664 | _ACEOF | ||
27665 | rm -f conftest.$ac_objext | ||
27666 | if { (ac_try="$ac_compile" | ||
27667 | case "(($ac_try" in | ||
27668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27669 | *) ac_try_echo=$ac_try;; | ||
27670 | esac | ||
27671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27672 | (eval "$ac_compile") 2>conftest.er1 | ||
27673 | ac_status=$? | ||
27674 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27675 | rm -f conftest.er1 | ||
27676 | cat conftest.err >&5 | ||
27677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27678 | (exit $ac_status); } && { | ||
27679 | test -z "$ac_c_werror_flag" || | ||
27680 | test ! -s conftest.err | ||
27681 | } && test -s conftest.$ac_objext; then | ||
27682 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27683 | echo "${ECHO_T}yes" >&6; } | ||
27684 | else | ||
27685 | echo "$as_me: failed program was:" >&5 | ||
27686 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27687 | |||
27688 | |||
27689 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27690 | echo "${ECHO_T}no" >&6; } | ||
27691 | { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
27692 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; } | ||
27693 | cat >conftest.$ac_ext <<_ACEOF | ||
27694 | /* confdefs.h. */ | ||
27695 | _ACEOF | ||
27696 | cat confdefs.h >>conftest.$ac_ext | ||
27697 | cat >>conftest.$ac_ext <<_ACEOF | ||
27698 | /* end confdefs.h. */ | ||
27699 | |||
27700 | #include <sys/types.h> | ||
27701 | #include <utmp.h> | ||
27702 | #ifdef HAVE_LASTLOG_H | ||
27703 | # include <lastlog.h> | ||
27704 | #endif | ||
27705 | #ifdef HAVE_PATHS_H | ||
27706 | # include <paths.h> | ||
27707 | #endif | ||
27708 | |||
27709 | int | ||
27710 | main () | ||
27711 | { | ||
27712 | char *lastlog = _PATH_LASTLOG; | ||
27713 | ; | ||
27714 | return 0; | ||
27715 | } | ||
27716 | _ACEOF | ||
27717 | rm -f conftest.$ac_objext | ||
27718 | if { (ac_try="$ac_compile" | ||
27719 | case "(($ac_try" in | ||
27720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27721 | *) ac_try_echo=$ac_try;; | ||
27722 | esac | ||
27723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27724 | (eval "$ac_compile") 2>conftest.er1 | ||
27725 | ac_status=$? | ||
27726 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27727 | rm -f conftest.er1 | ||
27728 | cat conftest.err >&5 | ||
27729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27730 | (exit $ac_status); } && { | ||
27731 | test -z "$ac_c_werror_flag" || | ||
27732 | test ! -s conftest.err | ||
27733 | } && test -s conftest.$ac_objext; then | ||
27734 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27735 | echo "${ECHO_T}yes" >&6; } | ||
27736 | else | ||
27737 | echo "$as_me: failed program was:" >&5 | ||
27738 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27739 | |||
27740 | |||
27741 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27742 | echo "${ECHO_T}no" >&6; } | ||
27743 | system_lastlog_path=no | ||
27744 | |||
27745 | fi | ||
27746 | |||
27747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27748 | |||
27749 | |||
27750 | fi | ||
27751 | |||
27752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27753 | |||
27754 | if test -z "$conf_lastlog_location"; then | ||
27755 | if test x"$system_lastlog_path" = x"no" ; then | ||
27756 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
27757 | if (test -d "$f" || test -f "$f") ; then | ||
27758 | conf_lastlog_location=$f | ||
27759 | fi | ||
27760 | done | ||
27761 | if test -z "$conf_lastlog_location"; then | ||
27762 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
27763 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
27764 | fi | ||
27765 | fi | ||
27766 | fi | ||
27767 | |||
27768 | if test -n "$conf_lastlog_location"; then | ||
27769 | |||
27770 | cat >>confdefs.h <<_ACEOF | ||
27771 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
27772 | _ACEOF | ||
27773 | |||
27774 | fi | ||
27775 | |||
27776 | { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
27777 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; } | ||
27778 | cat >conftest.$ac_ext <<_ACEOF | ||
27779 | /* confdefs.h. */ | ||
27780 | _ACEOF | ||
27781 | cat confdefs.h >>conftest.$ac_ext | ||
27782 | cat >>conftest.$ac_ext <<_ACEOF | ||
27783 | /* end confdefs.h. */ | ||
27784 | |||
27785 | #include <sys/types.h> | ||
27786 | #include <utmp.h> | ||
27787 | #ifdef HAVE_PATHS_H | ||
27788 | # include <paths.h> | ||
27789 | #endif | ||
27790 | |||
27791 | int | ||
27792 | main () | ||
27793 | { | ||
27794 | char *utmp = UTMP_FILE; | ||
27795 | ; | ||
27796 | return 0; | ||
27797 | } | ||
27798 | _ACEOF | ||
27799 | rm -f conftest.$ac_objext | ||
27800 | if { (ac_try="$ac_compile" | ||
27801 | case "(($ac_try" in | ||
27802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27803 | *) ac_try_echo=$ac_try;; | ||
27804 | esac | ||
27805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27806 | (eval "$ac_compile") 2>conftest.er1 | ||
27807 | ac_status=$? | ||
27808 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27809 | rm -f conftest.er1 | ||
27810 | cat conftest.err >&5 | ||
27811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27812 | (exit $ac_status); } && { | ||
27813 | test -z "$ac_c_werror_flag" || | ||
27814 | test ! -s conftest.err | ||
27815 | } && test -s conftest.$ac_objext; then | ||
27816 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27817 | echo "${ECHO_T}yes" >&6; } | ||
27818 | else | ||
27819 | echo "$as_me: failed program was:" >&5 | ||
27820 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27821 | |||
27822 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27823 | echo "${ECHO_T}no" >&6; } | ||
27824 | system_utmp_path=no | ||
27825 | |||
27826 | fi | ||
27827 | |||
27828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27829 | if test -z "$conf_utmp_location"; then | ||
27830 | if test x"$system_utmp_path" = x"no" ; then | ||
27831 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
27832 | if test -f $f ; then | ||
27833 | conf_utmp_location=$f | ||
27834 | fi | ||
27835 | done | ||
27836 | if test -z "$conf_utmp_location"; then | ||
27837 | cat >>confdefs.h <<\_ACEOF | ||
27838 | #define DISABLE_UTMP 1 | ||
27839 | _ACEOF | ||
27840 | |||
27841 | fi | ||
27842 | fi | ||
27843 | fi | ||
27844 | if test -n "$conf_utmp_location"; then | ||
27845 | |||
27846 | cat >>confdefs.h <<_ACEOF | ||
27847 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
27848 | _ACEOF | ||
27849 | |||
27850 | fi | ||
27851 | |||
27852 | { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
27853 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; } | ||
27854 | cat >conftest.$ac_ext <<_ACEOF | ||
27855 | /* confdefs.h. */ | ||
27856 | _ACEOF | ||
27857 | cat confdefs.h >>conftest.$ac_ext | ||
27858 | cat >>conftest.$ac_ext <<_ACEOF | ||
27859 | /* end confdefs.h. */ | ||
27860 | |||
27861 | #include <sys/types.h> | ||
27862 | #include <utmp.h> | ||
27863 | #ifdef HAVE_PATHS_H | ||
27864 | # include <paths.h> | ||
27865 | #endif | ||
27866 | |||
27867 | int | ||
27868 | main () | ||
27869 | { | ||
27870 | char *wtmp = WTMP_FILE; | ||
27871 | ; | ||
27872 | return 0; | ||
27873 | } | ||
27874 | _ACEOF | ||
27875 | rm -f conftest.$ac_objext | ||
27876 | if { (ac_try="$ac_compile" | ||
27877 | case "(($ac_try" in | ||
27878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27879 | *) ac_try_echo=$ac_try;; | ||
27880 | esac | ||
27881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27882 | (eval "$ac_compile") 2>conftest.er1 | ||
27883 | ac_status=$? | ||
27884 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27885 | rm -f conftest.er1 | ||
27886 | cat conftest.err >&5 | ||
27887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27888 | (exit $ac_status); } && { | ||
27889 | test -z "$ac_c_werror_flag" || | ||
27890 | test ! -s conftest.err | ||
27891 | } && test -s conftest.$ac_objext; then | ||
27892 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27893 | echo "${ECHO_T}yes" >&6; } | ||
27894 | else | ||
27895 | echo "$as_me: failed program was:" >&5 | ||
27896 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27897 | |||
27898 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27899 | echo "${ECHO_T}no" >&6; } | ||
27900 | system_wtmp_path=no | ||
27901 | |||
27902 | fi | ||
27903 | |||
27904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27905 | if test -z "$conf_wtmp_location"; then | ||
27906 | if test x"$system_wtmp_path" = x"no" ; then | ||
27907 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
27908 | if test -f $f ; then | ||
27909 | conf_wtmp_location=$f | ||
27910 | fi | ||
27911 | done | ||
27912 | if test -z "$conf_wtmp_location"; then | ||
27913 | cat >>confdefs.h <<\_ACEOF | ||
27914 | #define DISABLE_WTMP 1 | ||
27915 | _ACEOF | ||
27916 | |||
27917 | fi | ||
27918 | fi | ||
27919 | fi | ||
27920 | if test -n "$conf_wtmp_location"; then | ||
27921 | |||
27922 | cat >>confdefs.h <<_ACEOF | ||
27923 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
27924 | _ACEOF | ||
27925 | |||
27926 | fi | ||
27927 | |||
27928 | |||
27929 | { echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
27930 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; } | ||
27931 | cat >conftest.$ac_ext <<_ACEOF | ||
27932 | /* confdefs.h. */ | ||
27933 | _ACEOF | ||
27934 | cat confdefs.h >>conftest.$ac_ext | ||
27935 | cat >>conftest.$ac_ext <<_ACEOF | ||
27936 | /* end confdefs.h. */ | ||
27937 | |||
27938 | #include <sys/types.h> | ||
27939 | #include <utmp.h> | ||
27940 | #ifdef HAVE_UTMPX_H | ||
27941 | #include <utmpx.h> | ||
27942 | #endif | ||
27943 | #ifdef HAVE_PATHS_H | ||
27944 | # include <paths.h> | ||
27945 | #endif | ||
27946 | |||
27947 | int | ||
27948 | main () | ||
27949 | { | ||
27950 | char *utmpx = UTMPX_FILE; | ||
27951 | ; | ||
27952 | return 0; | ||
27953 | } | ||
27954 | _ACEOF | ||
27955 | rm -f conftest.$ac_objext | ||
27956 | if { (ac_try="$ac_compile" | ||
27957 | case "(($ac_try" in | ||
27958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27959 | *) ac_try_echo=$ac_try;; | ||
27960 | esac | ||
27961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27962 | (eval "$ac_compile") 2>conftest.er1 | ||
27963 | ac_status=$? | ||
27964 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27965 | rm -f conftest.er1 | ||
27966 | cat conftest.err >&5 | ||
27967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27968 | (exit $ac_status); } && { | ||
27969 | test -z "$ac_c_werror_flag" || | ||
27970 | test ! -s conftest.err | ||
27971 | } && test -s conftest.$ac_objext; then | ||
27972 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27973 | echo "${ECHO_T}yes" >&6; } | ||
27974 | else | ||
27975 | echo "$as_me: failed program was:" >&5 | ||
27976 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27977 | |||
27978 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27979 | echo "${ECHO_T}no" >&6; } | ||
27980 | system_utmpx_path=no | ||
27981 | |||
27982 | fi | ||
27983 | |||
27984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27985 | if test -z "$conf_utmpx_location"; then | ||
27986 | if test x"$system_utmpx_path" = x"no" ; then | ||
27987 | cat >>confdefs.h <<\_ACEOF | ||
27988 | #define DISABLE_UTMPX 1 | ||
27989 | _ACEOF | ||
27990 | |||
27991 | fi | ||
27992 | else | ||
27993 | |||
27994 | cat >>confdefs.h <<_ACEOF | ||
27995 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
27996 | _ACEOF | ||
27997 | |||
27998 | fi | ||
27999 | |||
28000 | { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
28001 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; } | ||
28002 | cat >conftest.$ac_ext <<_ACEOF | ||
28003 | /* confdefs.h. */ | ||
28004 | _ACEOF | ||
28005 | cat confdefs.h >>conftest.$ac_ext | ||
28006 | cat >>conftest.$ac_ext <<_ACEOF | ||
28007 | /* end confdefs.h. */ | ||
28008 | |||
28009 | #include <sys/types.h> | ||
28010 | #include <utmp.h> | ||
28011 | #ifdef HAVE_UTMPX_H | ||
28012 | #include <utmpx.h> | ||
28013 | #endif | ||
28014 | #ifdef HAVE_PATHS_H | ||
28015 | # include <paths.h> | ||
28016 | #endif | ||
28017 | |||
28018 | int | ||
28019 | main () | ||
28020 | { | ||
28021 | char *wtmpx = WTMPX_FILE; | ||
28022 | ; | ||
28023 | return 0; | ||
28024 | } | ||
28025 | _ACEOF | ||
28026 | rm -f conftest.$ac_objext | ||
28027 | if { (ac_try="$ac_compile" | ||
28028 | case "(($ac_try" in | ||
28029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28030 | *) ac_try_echo=$ac_try;; | ||
28031 | esac | ||
28032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28033 | (eval "$ac_compile") 2>conftest.er1 | ||
28034 | ac_status=$? | ||
28035 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28036 | rm -f conftest.er1 | ||
28037 | cat conftest.err >&5 | ||
28038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28039 | (exit $ac_status); } && { | ||
28040 | test -z "$ac_c_werror_flag" || | ||
28041 | test ! -s conftest.err | ||
28042 | } && test -s conftest.$ac_objext; then | ||
28043 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28044 | echo "${ECHO_T}yes" >&6; } | ||
28045 | else | ||
28046 | echo "$as_me: failed program was:" >&5 | ||
28047 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28048 | |||
28049 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28050 | echo "${ECHO_T}no" >&6; } | ||
28051 | system_wtmpx_path=no | ||
28052 | |||
28053 | fi | ||
28054 | |||
28055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28056 | if test -z "$conf_wtmpx_location"; then | ||
28057 | if test x"$system_wtmpx_path" = x"no" ; then | ||
28058 | cat >>confdefs.h <<\_ACEOF | ||
28059 | #define DISABLE_WTMPX 1 | ||
28060 | _ACEOF | ||
28061 | |||
28062 | fi | ||
28063 | else | ||
28064 | |||
28065 | cat >>confdefs.h <<_ACEOF | ||
28066 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
28067 | _ACEOF | ||
28068 | |||
28069 | fi | ||
28070 | |||
28071 | |||
28072 | if test ! -z "$blibpath" ; then | ||
28073 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
28074 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
28075 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
28076 | fi | ||
28077 | |||
28078 | CFLAGS="$CFLAGS $werror_flags" | ||
28079 | |||
28080 | |||
28081 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh" | ||
28082 | |||
28083 | cat >confcache <<\_ACEOF | ||
28084 | # This file is a shell script that caches the results of configure | ||
28085 | # tests run on this system so they can be shared between configure | ||
28086 | # scripts and configure runs, see configure's option --config-cache. | ||
28087 | # It is not useful on other systems. If it contains results you don't | ||
28088 | # want to keep, you may remove or edit it. | ||
28089 | # | ||
28090 | # config.status only pays attention to the cache file if you give it | ||
28091 | # the --recheck option to rerun configure. | ||
28092 | # | ||
28093 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
28094 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
28095 | # following values. | ||
28096 | |||
28097 | _ACEOF | ||
28098 | |||
28099 | # The following way of writing the cache mishandles newlines in values, | ||
28100 | # but we know of no workaround that is simple, portable, and efficient. | ||
28101 | # So, we kill variables containing newlines. | ||
28102 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
28103 | # and sets the high bit in the cache file unless we assign to the vars. | ||
28104 | ( | ||
28105 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
28106 | eval ac_val=\$$ac_var | ||
28107 | case $ac_val in #( | ||
28108 | *${as_nl}*) | ||
28109 | case $ac_var in #( | ||
28110 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
28111 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
28112 | esac | ||
28113 | case $ac_var in #( | ||
28114 | _ | IFS | as_nl) ;; #( | ||
28115 | *) $as_unset $ac_var ;; | ||
28116 | esac ;; | ||
28117 | esac | ||
28118 | done | ||
28119 | |||
28120 | (set) 2>&1 | | ||
28121 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
28122 | *${as_nl}ac_space=\ *) | ||
28123 | # `set' does not quote correctly, so add quotes (double-quote | ||
28124 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
28125 | sed -n \ | ||
28126 | "s/'/'\\\\''/g; | ||
28127 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
28128 | ;; #( | ||
28129 | *) | ||
28130 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
28131 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
28132 | ;; | ||
28133 | esac | | ||
28134 | sort | ||
28135 | ) | | ||
28136 | sed ' | ||
28137 | /^ac_cv_env_/b end | ||
28138 | t clear | ||
28139 | :clear | ||
28140 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
28141 | t end | ||
28142 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
28143 | :end' >>confcache | ||
28144 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
28145 | if test -w "$cache_file"; then | ||
28146 | test "x$cache_file" != "x/dev/null" && | ||
28147 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
28148 | echo "$as_me: updating cache $cache_file" >&6;} | ||
28149 | cat confcache >$cache_file | ||
28150 | else | ||
28151 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
28152 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
28153 | fi | ||
28154 | fi | ||
28155 | rm -f confcache | ||
28156 | |||
28157 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
28158 | # Let make expand exec_prefix. | ||
28159 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
28160 | |||
28161 | DEFS=-DHAVE_CONFIG_H | ||
28162 | |||
28163 | ac_libobjs= | ||
28164 | ac_ltlibobjs= | ||
28165 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
28166 | # 1. Remove the extension, and $U if already installed. | ||
28167 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
28168 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
28169 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
28170 | # will be set to the directory where LIBOBJS objects are built. | ||
28171 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
28172 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
28173 | done | ||
28174 | LIBOBJS=$ac_libobjs | ||
28175 | |||
28176 | LTLIBOBJS=$ac_ltlibobjs | ||
28177 | |||
28178 | |||
28179 | |||
28180 | : ${CONFIG_STATUS=./config.status} | ||
28181 | ac_clean_files_save=$ac_clean_files | ||
28182 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
28183 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
28184 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
28185 | cat >$CONFIG_STATUS <<_ACEOF | ||
28186 | #! $SHELL | ||
28187 | # Generated by $as_me. | ||
28188 | # Run this file to recreate the current configuration. | ||
28189 | # Compiler output produced by configure, useful for debugging | ||
28190 | # configure, is in config.log if it exists. | ||
28191 | |||
28192 | debug=false | ||
28193 | ac_cs_recheck=false | ||
28194 | ac_cs_silent=false | ||
28195 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
28196 | _ACEOF | ||
28197 | |||
28198 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
28199 | ## --------------------- ## | ||
28200 | ## M4sh Initialization. ## | ||
28201 | ## --------------------- ## | ||
28202 | |||
28203 | # Be more Bourne compatible | ||
28204 | DUALCASE=1; export DUALCASE # for MKS sh | ||
28205 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
28206 | emulate sh | ||
28207 | NULLCMD=: | ||
28208 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
28209 | # is contrary to our usage. Disable this feature. | ||
28210 | alias -g '${1+"$@"}'='"$@"' | ||
28211 | setopt NO_GLOB_SUBST | ||
28212 | else | ||
28213 | case `(set -o) 2>/dev/null` in | ||
28214 | *posix*) set -o posix ;; | ||
28215 | esac | ||
28216 | |||
28217 | fi | ||
28218 | |||
28219 | |||
28220 | |||
28221 | |||
28222 | # PATH needs CR | ||
28223 | # Avoid depending upon Character Ranges. | ||
28224 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
28225 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
28226 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
28227 | as_cr_digits='0123456789' | ||
28228 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
28229 | |||
28230 | # The user is always right. | ||
28231 | if test "${PATH_SEPARATOR+set}" != set; then | ||
28232 | echo "#! /bin/sh" >conf$$.sh | ||
28233 | echo "exit 0" >>conf$$.sh | ||
28234 | chmod +x conf$$.sh | ||
28235 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
28236 | PATH_SEPARATOR=';' | ||
28237 | else | ||
28238 | PATH_SEPARATOR=: | ||
28239 | fi | ||
28240 | rm -f conf$$.sh | ||
28241 | fi | ||
28242 | |||
28243 | # Support unset when possible. | ||
28244 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
28245 | as_unset=unset | ||
28246 | else | ||
28247 | as_unset=false | ||
28248 | fi | ||
28249 | |||
28250 | |||
28251 | # IFS | ||
28252 | # We need space, tab and new line, in precisely that order. Quoting is | ||
28253 | # there to prevent editors from complaining about space-tab. | ||
28254 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
28255 | # splitting by setting IFS to empty value.) | ||
28256 | as_nl=' | ||
28257 | ' | ||
28258 | IFS=" "" $as_nl" | ||
28259 | |||
28260 | # Find who we are. Look in the path if we contain no directory separator. | ||
28261 | case $0 in | ||
28262 | *[\\/]* ) as_myself=$0 ;; | ||
28263 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28264 | for as_dir in $PATH | ||
28265 | do | ||
28266 | IFS=$as_save_IFS | ||
28267 | test -z "$as_dir" && as_dir=. | ||
28268 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
28269 | done | ||
28270 | IFS=$as_save_IFS | ||
28271 | |||
28272 | ;; | ||
28273 | esac | ||
28274 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
28275 | # in which case we are not to be found in the path. | ||
28276 | if test "x$as_myself" = x; then | ||
28277 | as_myself=$0 | ||
28278 | fi | ||
28279 | if test ! -f "$as_myself"; then | ||
28280 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
28281 | { (exit 1); exit 1; } | ||
28282 | fi | ||
28283 | |||
28284 | # Work around bugs in pre-3.0 UWIN ksh. | ||
28285 | for as_var in ENV MAIL MAILPATH | ||
28286 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
28287 | done | ||
28288 | PS1='$ ' | ||
28289 | PS2='> ' | ||
28290 | PS4='+ ' | ||
28291 | |||
28292 | # NLS nuisances. | ||
28293 | for as_var in \ | ||
28294 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
28295 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
28296 | LC_TELEPHONE LC_TIME | ||
28297 | do | ||
28298 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
28299 | eval $as_var=C; export $as_var | ||
28300 | else | ||
28301 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
28302 | fi | ||
28303 | done | ||
28304 | |||
28305 | # Required to use basename. | ||
28306 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
28307 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
28308 | as_expr=expr | ||
28309 | else | ||
28310 | as_expr=false | ||
28311 | fi | ||
28312 | |||
28313 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
28314 | as_basename=basename | ||
28315 | else | ||
28316 | as_basename=false | ||
28317 | fi | ||
28318 | |||
28319 | |||
28320 | # Name of the executable. | ||
28321 | as_me=`$as_basename -- "$0" || | ||
28322 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
28323 | X"$0" : 'X\(//\)$' \| \ | ||
28324 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
28325 | echo X/"$0" | | ||
28326 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
28327 | s//\1/ | ||
28328 | q | ||
28329 | } | ||
28330 | /^X\/\(\/\/\)$/{ | ||
28331 | s//\1/ | ||
28332 | q | ||
28333 | } | ||
28334 | /^X\/\(\/\).*/{ | ||
28335 | s//\1/ | ||
28336 | q | ||
28337 | } | ||
28338 | s/.*/./; q'` | ||
28339 | |||
28340 | # CDPATH. | ||
28341 | $as_unset CDPATH | ||
28342 | |||
28343 | |||
28344 | |||
28345 | as_lineno_1=$LINENO | ||
28346 | as_lineno_2=$LINENO | ||
28347 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
28348 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
28349 | |||
28350 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
28351 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
28352 | # line-number line after each line using $LINENO; the second 'sed' | ||
28353 | # does the real work. The second script uses 'N' to pair each | ||
28354 | # line-number line with the line containing $LINENO, and appends | ||
28355 | # trailing '-' during substitution so that $LINENO is not a special | ||
28356 | # case at line end. | ||
28357 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
28358 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
28359 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
28360 | sed -n ' | ||
28361 | p | ||
28362 | /[$]LINENO/= | ||
28363 | ' <$as_myself | | ||
28364 | sed ' | ||
28365 | s/[$]LINENO.*/&-/ | ||
28366 | t lineno | ||
28367 | b | ||
28368 | :lineno | ||
28369 | N | ||
28370 | :loop | ||
28371 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
28372 | t loop | ||
28373 | s/-\n.*// | ||
28374 | ' >$as_me.lineno && | ||
28375 | chmod +x "$as_me.lineno" || | ||
28376 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
28377 | { (exit 1); exit 1; }; } | ||
28378 | |||
28379 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
28380 | # (the dirname of $[0] is not the place where we might find the | ||
28381 | # original and so on. Autoconf is especially sensitive to this). | ||
28382 | . "./$as_me.lineno" | ||
28383 | # Exit status is that of the last command. | ||
28384 | exit | ||
28385 | } | ||
28386 | |||
28387 | |||
28388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
28389 | as_dirname=dirname | ||
28390 | else | ||
28391 | as_dirname=false | ||
28392 | fi | ||
28393 | |||
28394 | ECHO_C= ECHO_N= ECHO_T= | ||
28395 | case `echo -n x` in | ||
28396 | -n*) | ||
28397 | case `echo 'x\c'` in | ||
28398 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
28399 | *) ECHO_C='\c';; | ||
28400 | esac;; | ||
28401 | *) | ||
28402 | ECHO_N='-n';; | ||
28403 | esac | ||
28404 | |||
28405 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
28406 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
28407 | as_expr=expr | ||
28408 | else | ||
28409 | as_expr=false | ||
28410 | fi | ||
28411 | |||
28412 | rm -f conf$$ conf$$.exe conf$$.file | ||
28413 | if test -d conf$$.dir; then | ||
28414 | rm -f conf$$.dir/conf$$.file | ||
28415 | else | ||
28416 | rm -f conf$$.dir | ||
28417 | mkdir conf$$.dir | ||
28418 | fi | ||
28419 | echo >conf$$.file | ||
28420 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
28421 | as_ln_s='ln -s' | ||
28422 | # ... but there are two gotchas: | ||
28423 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
28424 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
28425 | # In both cases, we have to default to `cp -p'. | ||
28426 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
28427 | as_ln_s='cp -p' | ||
28428 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
28429 | as_ln_s=ln | ||
28430 | else | ||
28431 | as_ln_s='cp -p' | ||
28432 | fi | ||
28433 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
28434 | rmdir conf$$.dir 2>/dev/null | ||
28435 | |||
28436 | if mkdir -p . 2>/dev/null; then | ||
28437 | as_mkdir_p=: | ||
28438 | else | ||
28439 | test -d ./-p && rmdir ./-p | ||
28440 | as_mkdir_p=false | ||
28441 | fi | ||
28442 | |||
28443 | if test -x / >/dev/null 2>&1; then | ||
28444 | as_test_x='test -x' | ||
28445 | else | ||
28446 | if ls -dL / >/dev/null 2>&1; then | ||
28447 | as_ls_L_option=L | ||
28448 | else | ||
28449 | as_ls_L_option= | ||
28450 | fi | ||
28451 | as_test_x=' | ||
28452 | eval sh -c '\'' | ||
28453 | if test -d "$1"; then | ||
28454 | test -d "$1/."; | ||
28455 | else | ||
28456 | case $1 in | ||
28457 | -*)set "./$1";; | ||
28458 | esac; | ||
28459 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
28460 | ???[sx]*):;;*)false;;esac;fi | ||
28461 | '\'' sh | ||
28462 | ' | ||
28463 | fi | ||
28464 | as_executable_p=$as_test_x | ||
28465 | |||
28466 | # Sed expression to map a string onto a valid CPP name. | ||
28467 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
28468 | |||
28469 | # Sed expression to map a string onto a valid variable name. | ||
28470 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
28471 | |||
28472 | |||
28473 | exec 6>&1 | ||
28474 | |||
28475 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
28476 | # report actual input values of CONFIG_FILES etc. instead of their | ||
28477 | # values after options handling. | ||
28478 | ac_log=" | ||
28479 | This file was extended by OpenSSH $as_me Portable, which was | ||
28480 | generated by GNU Autoconf 2.61. Invocation command line was | ||
28481 | |||
28482 | CONFIG_FILES = $CONFIG_FILES | ||
28483 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
28484 | CONFIG_LINKS = $CONFIG_LINKS | ||
28485 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
28486 | $ $0 $@ | ||
28487 | |||
28488 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
28489 | " | ||
28490 | |||
28491 | _ACEOF | ||
28492 | |||
28493 | cat >>$CONFIG_STATUS <<_ACEOF | ||
28494 | # Files that config.status was made for. | ||
28495 | config_files="$ac_config_files" | ||
28496 | config_headers="$ac_config_headers" | ||
28497 | |||
28498 | _ACEOF | ||
28499 | |||
28500 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
28501 | ac_cs_usage="\ | ||
28502 | \`$as_me' instantiates files from templates according to the | ||
28503 | current configuration. | ||
28504 | |||
28505 | Usage: $0 [OPTIONS] [FILE]... | ||
28506 | |||
28507 | -h, --help print this help, then exit | ||
28508 | -V, --version print version number and configuration settings, then exit | ||
28509 | -q, --quiet do not print progress messages | ||
28510 | -d, --debug don't remove temporary files | ||
28511 | --recheck update $as_me by reconfiguring in the same conditions | ||
28512 | --file=FILE[:TEMPLATE] | ||
28513 | instantiate the configuration file FILE | ||
28514 | --header=FILE[:TEMPLATE] | ||
28515 | instantiate the configuration header FILE | ||
28516 | |||
28517 | Configuration files: | ||
28518 | $config_files | ||
28519 | |||
28520 | Configuration headers: | ||
28521 | $config_headers | ||
28522 | |||
28523 | Report bugs to <bug-autoconf@gnu.org>." | ||
28524 | |||
28525 | _ACEOF | ||
28526 | cat >>$CONFIG_STATUS <<_ACEOF | ||
28527 | ac_cs_version="\\ | ||
28528 | OpenSSH config.status Portable | ||
28529 | configured by $0, generated by GNU Autoconf 2.61, | ||
28530 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
28531 | |||
28532 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
28533 | This config.status script is free software; the Free Software Foundation | ||
28534 | gives unlimited permission to copy, distribute and modify it." | ||
28535 | |||
28536 | ac_pwd='$ac_pwd' | ||
28537 | srcdir='$srcdir' | ||
28538 | INSTALL='$INSTALL' | ||
28539 | _ACEOF | ||
28540 | |||
28541 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
28542 | # If no file are specified by the user, then we need to provide default | ||
28543 | # value. By we need to know if files were specified by the user. | ||
28544 | ac_need_defaults=: | ||
28545 | while test $# != 0 | ||
28546 | do | ||
28547 | case $1 in | ||
28548 | --*=*) | ||
28549 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
28550 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
28551 | ac_shift=: | ||
28552 | ;; | ||
28553 | *) | ||
28554 | ac_option=$1 | ||
28555 | ac_optarg=$2 | ||
28556 | ac_shift=shift | ||
28557 | ;; | ||
28558 | esac | ||
28559 | |||
28560 | case $ac_option in | ||
28561 | # Handling of the options. | ||
28562 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
28563 | ac_cs_recheck=: ;; | ||
28564 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
28565 | echo "$ac_cs_version"; exit ;; | ||
28566 | --debug | --debu | --deb | --de | --d | -d ) | ||
28567 | debug=: ;; | ||
28568 | --file | --fil | --fi | --f ) | ||
28569 | $ac_shift | ||
28570 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
28571 | ac_need_defaults=false;; | ||
28572 | --header | --heade | --head | --hea ) | ||
28573 | $ac_shift | ||
28574 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
28575 | ac_need_defaults=false;; | ||
28576 | --he | --h) | ||
28577 | # Conflict between --help and --header | ||
28578 | { echo "$as_me: error: ambiguous option: $1 | ||
28579 | Try \`$0 --help' for more information." >&2 | ||
28580 | { (exit 1); exit 1; }; };; | ||
28581 | --help | --hel | -h ) | ||
28582 | echo "$ac_cs_usage"; exit ;; | ||
28583 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
28584 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
28585 | ac_cs_silent=: ;; | ||
28586 | |||
28587 | # This is an error. | ||
28588 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
28589 | Try \`$0 --help' for more information." >&2 | ||
28590 | { (exit 1); exit 1; }; } ;; | ||
28591 | |||
28592 | *) ac_config_targets="$ac_config_targets $1" | ||
28593 | ac_need_defaults=false ;; | ||
28594 | |||
28595 | esac | ||
28596 | shift | ||
28597 | done | ||
28598 | |||
28599 | ac_configure_extra_args= | ||
28600 | |||
28601 | if $ac_cs_silent; then | ||
28602 | exec 6>/dev/null | ||
28603 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
28604 | fi | ||
28605 | |||
28606 | _ACEOF | ||
28607 | cat >>$CONFIG_STATUS <<_ACEOF | ||
28608 | if \$ac_cs_recheck; then | ||
28609 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
28610 | CONFIG_SHELL=$SHELL | ||
28611 | export CONFIG_SHELL | ||
28612 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
28613 | fi | ||
28614 | |||
28615 | _ACEOF | ||
28616 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
28617 | exec 5>>config.log | ||
28618 | { | ||
28619 | echo | ||
28620 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
28621 | ## Running $as_me. ## | ||
28622 | _ASBOX | ||
28623 | echo "$ac_log" | ||
28624 | } >&5 | ||
28625 | |||
28626 | _ACEOF | ||
28627 | cat >>$CONFIG_STATUS <<_ACEOF | ||
28628 | _ACEOF | ||
28629 | |||
28630 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
28631 | |||
28632 | # Handling of arguments. | ||
28633 | for ac_config_target in $ac_config_targets | ||
28634 | do | ||
28635 | case $ac_config_target in | ||
28636 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
28637 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
28638 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
28639 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
28640 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
28641 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
28642 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
28643 | "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
28644 | "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
28645 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
28646 | |||
28647 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
28648 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
28649 | { (exit 1); exit 1; }; };; | ||
28650 | esac | ||
28651 | done | ||
28652 | |||
28653 | |||
28654 | # If the user did not use the arguments to specify the items to instantiate, | ||
28655 | # then the envvar interface is used. Set only those that are not. | ||
28656 | # We use the long form for the default assignment because of an extremely | ||
28657 | # bizarre bug on SunOS 4.1.3. | ||
28658 | if $ac_need_defaults; then | ||
28659 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
28660 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
28661 | fi | ||
28662 | |||
28663 | # Have a temporary directory for convenience. Make it in the build tree | ||
28664 | # simply because there is no reason against having it here, and in addition, | ||
28665 | # creating and moving files from /tmp can sometimes cause problems. | ||
28666 | # Hook for its removal unless debugging. | ||
28667 | # Note that there is a small window in which the directory will not be cleaned: | ||
28668 | # after its creation but before its name has been assigned to `$tmp'. | ||
28669 | $debug || | ||
28670 | { | ||
28671 | tmp= | ||
28672 | trap 'exit_status=$? | ||
28673 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
28674 | ' 0 | ||
28675 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
28676 | } | ||
28677 | # Create a (secure) tmp directory for tmp files. | ||
28678 | |||
28679 | { | ||
28680 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
28681 | test -n "$tmp" && test -d "$tmp" | ||
28682 | } || | ||
28683 | { | ||
28684 | tmp=./conf$$-$RANDOM | ||
28685 | (umask 077 && mkdir "$tmp") | ||
28686 | } || | ||
28687 | { | ||
28688 | echo "$me: cannot create a temporary directory in ." >&2 | ||
28689 | { (exit 1); exit 1; } | ||
28690 | } | ||
28691 | |||
28692 | # | ||
28693 | # Set up the sed scripts for CONFIG_FILES section. | ||
28694 | # | ||
28695 | |||
28696 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
28697 | # This happens for instance when ./config.status config.h | ||
28698 | if test -n "$CONFIG_FILES"; then | ||
28699 | |||
28700 | _ACEOF | ||
28701 | |||
28702 | |||
28703 | |||
28704 | ac_delim='%!_!# ' | ||
28705 | for ac_last_try in false false false false false :; do | ||
28706 | cat >conf$$subs.sed <<_ACEOF | ||
28707 | SHELL!$SHELL$ac_delim | ||
28708 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
28709 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
28710 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
28711 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
28712 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
28713 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
28714 | exec_prefix!$exec_prefix$ac_delim | ||
28715 | prefix!$prefix$ac_delim | ||
28716 | program_transform_name!$program_transform_name$ac_delim | ||
28717 | bindir!$bindir$ac_delim | ||
28718 | sbindir!$sbindir$ac_delim | ||
28719 | libexecdir!$libexecdir$ac_delim | ||
28720 | datarootdir!$datarootdir$ac_delim | ||
28721 | datadir!$datadir$ac_delim | ||
28722 | sysconfdir!$sysconfdir$ac_delim | ||
28723 | sharedstatedir!$sharedstatedir$ac_delim | ||
28724 | localstatedir!$localstatedir$ac_delim | ||
28725 | includedir!$includedir$ac_delim | ||
28726 | oldincludedir!$oldincludedir$ac_delim | ||
28727 | docdir!$docdir$ac_delim | ||
28728 | infodir!$infodir$ac_delim | ||
28729 | htmldir!$htmldir$ac_delim | ||
28730 | dvidir!$dvidir$ac_delim | ||
28731 | pdfdir!$pdfdir$ac_delim | ||
28732 | psdir!$psdir$ac_delim | ||
28733 | libdir!$libdir$ac_delim | ||
28734 | localedir!$localedir$ac_delim | ||
28735 | mandir!$mandir$ac_delim | ||
28736 | DEFS!$DEFS$ac_delim | ||
28737 | ECHO_C!$ECHO_C$ac_delim | ||
28738 | ECHO_N!$ECHO_N$ac_delim | ||
28739 | ECHO_T!$ECHO_T$ac_delim | ||
28740 | LIBS!$LIBS$ac_delim | ||
28741 | build_alias!$build_alias$ac_delim | ||
28742 | host_alias!$host_alias$ac_delim | ||
28743 | target_alias!$target_alias$ac_delim | ||
28744 | CC!$CC$ac_delim | ||
28745 | CFLAGS!$CFLAGS$ac_delim | ||
28746 | LDFLAGS!$LDFLAGS$ac_delim | ||
28747 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
28748 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
28749 | EXEEXT!$EXEEXT$ac_delim | ||
28750 | OBJEXT!$OBJEXT$ac_delim | ||
28751 | build!$build$ac_delim | ||
28752 | build_cpu!$build_cpu$ac_delim | ||
28753 | build_vendor!$build_vendor$ac_delim | ||
28754 | build_os!$build_os$ac_delim | ||
28755 | host!$host$ac_delim | ||
28756 | host_cpu!$host_cpu$ac_delim | ||
28757 | host_vendor!$host_vendor$ac_delim | ||
28758 | host_os!$host_os$ac_delim | ||
28759 | CPP!$CPP$ac_delim | ||
28760 | GREP!$GREP$ac_delim | ||
28761 | EGREP!$EGREP$ac_delim | ||
28762 | AWK!$AWK$ac_delim | ||
28763 | RANLIB!$RANLIB$ac_delim | ||
28764 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
28765 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
28766 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
28767 | AR!$AR$ac_delim | ||
28768 | CAT!$CAT$ac_delim | ||
28769 | KILL!$KILL$ac_delim | ||
28770 | PERL!$PERL$ac_delim | ||
28771 | SED!$SED$ac_delim | ||
28772 | ENT!$ENT$ac_delim | ||
28773 | TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim | ||
28774 | SH!$SH$ac_delim | ||
28775 | TEST_SHELL!$TEST_SHELL$ac_delim | ||
28776 | PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim | ||
28777 | PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim | ||
28778 | MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim | ||
28779 | STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim | ||
28780 | LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim | ||
28781 | PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim | ||
28782 | LD!$LD$ac_delim | ||
28783 | SSHDLIBS!$SSHDLIBS$ac_delim | ||
28784 | LIBWRAP!$LIBWRAP$ac_delim | ||
28785 | LIBEDIT!$LIBEDIT$ac_delim | ||
28786 | LIBPAM!$LIBPAM$ac_delim | ||
28787 | INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim | ||
28788 | SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim | ||
28789 | PROG_LS!$PROG_LS$ac_delim | ||
28790 | PROG_NETSTAT!$PROG_NETSTAT$ac_delim | ||
28791 | PROG_ARP!$PROG_ARP$ac_delim | ||
28792 | PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim | ||
28793 | PROG_JSTAT!$PROG_JSTAT$ac_delim | ||
28794 | PROG_PS!$PROG_PS$ac_delim | ||
28795 | PROG_SAR!$PROG_SAR$ac_delim | ||
28796 | PROG_W!$PROG_W$ac_delim | ||
28797 | PROG_WHO!$PROG_WHO$ac_delim | ||
28798 | PROG_LAST!$PROG_LAST$ac_delim | ||
28799 | PROG_LASTLOG!$PROG_LASTLOG$ac_delim | ||
28800 | PROG_DF!$PROG_DF$ac_delim | ||
28801 | PROG_VMSTAT!$PROG_VMSTAT$ac_delim | ||
28802 | PROG_UPTIME!$PROG_UPTIME$ac_delim | ||
28803 | PROG_IPCS!$PROG_IPCS$ac_delim | ||
28804 | _ACEOF | ||
28805 | |||
28806 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
28807 | break | ||
28808 | elif $ac_last_try; then | ||
28809 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
28810 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
28811 | { (exit 1); exit 1; }; } | ||
28812 | else | ||
28813 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
28814 | fi | ||
28815 | done | ||
28816 | |||
28817 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
28818 | if test -n "$ac_eof"; then | ||
28819 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
28820 | ac_eof=`expr $ac_eof + 1` | ||
28821 | fi | ||
28822 | |||
28823 | cat >>$CONFIG_STATUS <<_ACEOF | ||
28824 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
28825 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
28826 | _ACEOF | ||
28827 | sed ' | ||
28828 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
28829 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
28830 | :n | ||
28831 | t n | ||
28832 | s/'"$ac_delim"'$/,g/; t | ||
28833 | s/$/\\/; p | ||
28834 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
28835 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
28836 | rm -f conf$$subs.sed | ||
28837 | cat >>$CONFIG_STATUS <<_ACEOF | ||
28838 | CEOF$ac_eof | ||
28839 | _ACEOF | ||
28840 | |||
28841 | |||
28842 | ac_delim='%!_!# ' | ||
28843 | for ac_last_try in false false false false false :; do | ||
28844 | cat >conf$$subs.sed <<_ACEOF | ||
28845 | PROG_TAIL!$PROG_TAIL$ac_delim | ||
28846 | INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim | ||
28847 | OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim | ||
28848 | LIBSELINUX!$LIBSELINUX$ac_delim | ||
28849 | PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim | ||
28850 | xauth_path!$xauth_path$ac_delim | ||
28851 | STRIP_OPT!$STRIP_OPT$ac_delim | ||
28852 | XAUTH_PATH!$XAUTH_PATH$ac_delim | ||
28853 | NROFF!$NROFF$ac_delim | ||
28854 | MANTYPE!$MANTYPE$ac_delim | ||
28855 | mansubdir!$mansubdir$ac_delim | ||
28856 | user_path!$user_path$ac_delim | ||
28857 | piddir!$piddir$ac_delim | ||
28858 | LIBOBJS!$LIBOBJS$ac_delim | ||
28859 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
28860 | _ACEOF | ||
28861 | |||
28862 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then | ||
28863 | break | ||
28864 | elif $ac_last_try; then | ||
28865 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
28866 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
28867 | { (exit 1); exit 1; }; } | ||
28868 | else | ||
28869 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
28870 | fi | ||
28871 | done | ||
28872 | |||
28873 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
28874 | if test -n "$ac_eof"; then | ||
28875 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
28876 | ac_eof=`expr $ac_eof + 1` | ||
28877 | fi | ||
28878 | |||
28879 | cat >>$CONFIG_STATUS <<_ACEOF | ||
28880 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
28881 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
28882 | _ACEOF | ||
28883 | sed ' | ||
28884 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
28885 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
28886 | :n | ||
28887 | t n | ||
28888 | s/'"$ac_delim"'$/,g/; t | ||
28889 | s/$/\\/; p | ||
28890 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
28891 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
28892 | rm -f conf$$subs.sed | ||
28893 | cat >>$CONFIG_STATUS <<_ACEOF | ||
28894 | :end | ||
28895 | s/|#_!!_#|//g | ||
28896 | CEOF$ac_eof | ||
28897 | _ACEOF | ||
28898 | |||
28899 | |||
28900 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
28901 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
28902 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
28903 | # (actually we leave an empty line to preserve line numbers). | ||
28904 | if test "x$srcdir" = x.; then | ||
28905 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
28906 | s/:*\$(srcdir):*/:/ | ||
28907 | s/:*\${srcdir}:*/:/ | ||
28908 | s/:*@srcdir@:*/:/ | ||
28909 | s/^\([^=]*=[ ]*\):*/\1/ | ||
28910 | s/:*$// | ||
28911 | s/^[^=]*=[ ]*$// | ||
28912 | }' | ||
28913 | fi | ||
28914 | |||
28915 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
28916 | fi # test -n "$CONFIG_FILES" | ||
28917 | |||
28918 | |||
28919 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | ||
28920 | do | ||
28921 | case $ac_tag in | ||
28922 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
28923 | esac | ||
28924 | case $ac_mode$ac_tag in | ||
28925 | :[FHL]*:*);; | ||
28926 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
28927 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
28928 | { (exit 1); exit 1; }; };; | ||
28929 | :[FH]-) ac_tag=-:-;; | ||
28930 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
28931 | esac | ||
28932 | ac_save_IFS=$IFS | ||
28933 | IFS=: | ||
28934 | set x $ac_tag | ||
28935 | IFS=$ac_save_IFS | ||
28936 | shift | ||
28937 | ac_file=$1 | ||
28938 | shift | ||
28939 | |||
28940 | case $ac_mode in | ||
28941 | :L) ac_source=$1;; | ||
28942 | :[FH]) | ||
28943 | ac_file_inputs= | ||
28944 | for ac_f | ||
28945 | do | ||
28946 | case $ac_f in | ||
28947 | -) ac_f="$tmp/stdin";; | ||
28948 | *) # Look for the file first in the build tree, then in the source tree | ||
28949 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
28950 | # because $ac_f cannot contain `:'. | ||
28951 | test -f "$ac_f" || | ||
28952 | case $ac_f in | ||
28953 | [\\/$]*) false;; | ||
28954 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
28955 | esac || | ||
28956 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
28957 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
28958 | { (exit 1); exit 1; }; };; | ||
28959 | esac | ||
28960 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
28961 | done | ||
28962 | |||
28963 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
28964 | # use $as_me), people would be surprised to read: | ||
28965 | # /* config.h. Generated by config.status. */ | ||
28966 | configure_input="Generated from "`IFS=: | ||
28967 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
28968 | if test x"$ac_file" != x-; then | ||
28969 | configure_input="$ac_file. $configure_input" | ||
28970 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
28971 | echo "$as_me: creating $ac_file" >&6;} | ||
28972 | fi | ||
28973 | |||
28974 | case $ac_tag in | ||
28975 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
28976 | esac | ||
28977 | ;; | ||
28978 | esac | ||
28979 | |||
28980 | ac_dir=`$as_dirname -- "$ac_file" || | ||
28981 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
28982 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
28983 | X"$ac_file" : 'X\(//\)$' \| \ | ||
28984 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
28985 | echo X"$ac_file" | | ||
28986 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
28987 | s//\1/ | ||
28988 | q | ||
28989 | } | ||
28990 | /^X\(\/\/\)[^/].*/{ | ||
28991 | s//\1/ | ||
28992 | q | ||
28993 | } | ||
28994 | /^X\(\/\/\)$/{ | ||
28995 | s//\1/ | ||
28996 | q | ||
28997 | } | ||
28998 | /^X\(\/\).*/{ | ||
28999 | s//\1/ | ||
29000 | q | ||
29001 | } | ||
29002 | s/.*/./; q'` | ||
29003 | { as_dir="$ac_dir" | ||
29004 | case $as_dir in #( | ||
29005 | -*) as_dir=./$as_dir;; | ||
29006 | esac | ||
29007 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
29008 | as_dirs= | ||
29009 | while :; do | ||
29010 | case $as_dir in #( | ||
29011 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
29012 | *) as_qdir=$as_dir;; | ||
29013 | esac | ||
29014 | as_dirs="'$as_qdir' $as_dirs" | ||
29015 | as_dir=`$as_dirname -- "$as_dir" || | ||
29016 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
29017 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
29018 | X"$as_dir" : 'X\(//\)$' \| \ | ||
29019 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
29020 | echo X"$as_dir" | | ||
29021 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
29022 | s//\1/ | ||
29023 | q | ||
29024 | } | ||
29025 | /^X\(\/\/\)[^/].*/{ | ||
29026 | s//\1/ | ||
29027 | q | ||
29028 | } | ||
29029 | /^X\(\/\/\)$/{ | ||
29030 | s//\1/ | ||
29031 | q | ||
29032 | } | ||
29033 | /^X\(\/\).*/{ | ||
29034 | s//\1/ | ||
29035 | q | ||
29036 | } | ||
29037 | s/.*/./; q'` | ||
29038 | test -d "$as_dir" && break | ||
29039 | done | ||
29040 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
29041 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
29042 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
29043 | { (exit 1); exit 1; }; }; } | ||
29044 | ac_builddir=. | ||
29045 | |||
29046 | case "$ac_dir" in | ||
29047 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
29048 | *) | ||
29049 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
29050 | # A ".." for each directory in $ac_dir_suffix. | ||
29051 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
29052 | case $ac_top_builddir_sub in | ||
29053 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
29054 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
29055 | esac ;; | ||
29056 | esac | ||
29057 | ac_abs_top_builddir=$ac_pwd | ||
29058 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
29059 | # for backward compatibility: | ||
29060 | ac_top_builddir=$ac_top_build_prefix | ||
29061 | |||
29062 | case $srcdir in | ||
29063 | .) # We are building in place. | ||
29064 | ac_srcdir=. | ||
29065 | ac_top_srcdir=$ac_top_builddir_sub | ||
29066 | ac_abs_top_srcdir=$ac_pwd ;; | ||
29067 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
29068 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
29069 | ac_top_srcdir=$srcdir | ||
29070 | ac_abs_top_srcdir=$srcdir ;; | ||
29071 | *) # Relative name. | ||
29072 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
29073 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
29074 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
29075 | esac | ||
29076 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
29077 | |||
29078 | |||
29079 | case $ac_mode in | ||
29080 | :F) | ||
29081 | # | ||
29082 | # CONFIG_FILE | ||
29083 | # | ||
29084 | |||
29085 | case $INSTALL in | ||
29086 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
29087 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
29088 | esac | ||
29089 | _ACEOF | ||
29090 | |||
29091 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29092 | # If the template does not know about datarootdir, expand it. | ||
29093 | # FIXME: This hack should be removed a few years after 2.60. | ||
29094 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
29095 | |||
29096 | case `sed -n '/datarootdir/ { | ||
29097 | p | ||
29098 | q | ||
29099 | } | ||
29100 | /@datadir@/p | ||
29101 | /@docdir@/p | ||
29102 | /@infodir@/p | ||
29103 | /@localedir@/p | ||
29104 | /@mandir@/p | ||
29105 | ' $ac_file_inputs` in | ||
29106 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
29107 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
29108 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
29109 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
29110 | _ACEOF | ||
29111 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29112 | ac_datarootdir_hack=' | ||
29113 | s&@datadir@&$datadir&g | ||
29114 | s&@docdir@&$docdir&g | ||
29115 | s&@infodir@&$infodir&g | ||
29116 | s&@localedir@&$localedir&g | ||
29117 | s&@mandir@&$mandir&g | ||
29118 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
29119 | esac | ||
29120 | _ACEOF | ||
29121 | |||
29122 | # Neutralize VPATH when `$srcdir' = `.'. | ||
29123 | # Shell code in configure.ac might set extrasub. | ||
29124 | # FIXME: do we really want to maintain this feature? | ||
29125 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29126 | sed "$ac_vpsub | ||
29127 | $extrasub | ||
29128 | _ACEOF | ||
29129 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29130 | :t | ||
29131 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
29132 | s&@configure_input@&$configure_input&;t t | ||
29133 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
29134 | s&@srcdir@&$ac_srcdir&;t t | ||
29135 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
29136 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
29137 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
29138 | s&@builddir@&$ac_builddir&;t t | ||
29139 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
29140 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
29141 | s&@INSTALL@&$ac_INSTALL&;t t | ||
29142 | $ac_datarootdir_hack | ||
29143 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
29144 | |||
29145 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
29146 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
29147 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
29148 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
29149 | which seems to be undefined. Please make sure it is defined." >&5 | ||
29150 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
29151 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
29152 | |||
29153 | rm -f "$tmp/stdin" | ||
29154 | case $ac_file in | ||
29155 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
29156 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
29157 | esac | ||
29158 | ;; | ||
29159 | :H) | ||
29160 | # | ||
29161 | # CONFIG_HEADER | ||
29162 | # | ||
29163 | _ACEOF | ||
29164 | |||
29165 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
29166 | # substitutes the proper values into config.h.in to produce config.h. | ||
29167 | rm -f conftest.defines conftest.tail | ||
29168 | # First, append a space to every undef/define line, to ease matching. | ||
29169 | echo 's/$/ /' >conftest.defines | ||
29170 | # Then, protect against being on the right side of a sed subst, or in | ||
29171 | # an unquoted here document, in config.status. If some macros were | ||
29172 | # called several times there might be several #defines for the same | ||
29173 | # symbol, which is useless. But do not sort them, since the last | ||
29174 | # AC_DEFINE must be honored. | ||
29175 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
29176 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
29177 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
29178 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
29179 | # just an empty string. | ||
29180 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
29181 | ac_dB='\\)[ (].*,\\1define\\2' | ||
29182 | ac_dC=' ' | ||
29183 | ac_dD=' ,' | ||
29184 | |||
29185 | uniq confdefs.h | | ||
29186 | sed -n ' | ||
29187 | t rset | ||
29188 | :rset | ||
29189 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
29190 | t ok | ||
29191 | d | ||
29192 | :ok | ||
29193 | s/[\\&,]/\\&/g | ||
29194 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
29195 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
29196 | ' >>conftest.defines | ||
29197 | |||
29198 | # Remove the space that was appended to ease matching. | ||
29199 | # Then replace #undef with comments. This is necessary, for | ||
29200 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
29201 | # on some systems where configure will not decide to define it. | ||
29202 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
29203 | echo 's/ $// | ||
29204 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
29205 | |||
29206 | # Break up conftest.defines: | ||
29207 | ac_max_sed_lines=50 | ||
29208 | |||
29209 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
29210 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
29211 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
29212 | # et cetera. | ||
29213 | ac_in='$ac_file_inputs' | ||
29214 | ac_out='"$tmp/out1"' | ||
29215 | ac_nxt='"$tmp/out2"' | ||
29216 | |||
29217 | while : | ||
29218 | do | ||
29219 | # Write a here document: | ||
29220 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29221 | # First, check the format of the line: | ||
29222 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
29223 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
29224 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
29225 | b | ||
29226 | :def | ||
29227 | _ACEOF | ||
29228 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
29229 | echo 'CEOF | ||
29230 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
29231 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
29232 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
29233 | grep . conftest.tail >/dev/null || break | ||
29234 | rm -f conftest.defines | ||
29235 | mv conftest.tail conftest.defines | ||
29236 | done | ||
29237 | rm -f conftest.defines conftest.tail | ||
29238 | |||
29239 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
29240 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29241 | if test x"$ac_file" != x-; then | ||
29242 | echo "/* $configure_input */" >"$tmp/config.h" | ||
29243 | cat "$ac_result" >>"$tmp/config.h" | ||
29244 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
29245 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
29246 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
29247 | else | ||
29248 | rm -f $ac_file | ||
29249 | mv "$tmp/config.h" $ac_file | ||
29250 | fi | ||
29251 | else | ||
29252 | echo "/* $configure_input */" | ||
29253 | cat "$ac_result" | ||
29254 | fi | ||
29255 | rm -f "$tmp/out12" | ||
29256 | ;; | ||
29257 | |||
29258 | |||
29259 | esac | ||
29260 | |||
29261 | done # for ac_tag | ||
29262 | |||
29263 | |||
29264 | { (exit 0); exit 0; } | ||
29265 | _ACEOF | ||
29266 | chmod +x $CONFIG_STATUS | ||
29267 | ac_clean_files=$ac_clean_files_save | ||
29268 | |||
29269 | |||
29270 | # configure is writing to config.log, and then calls config.status. | ||
29271 | # config.status does its own redirection, appending to config.log. | ||
29272 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
29273 | # by configure, so config.status won't be able to write to it; its | ||
29274 | # output is simply discarded. So we exec the FD to /dev/null, | ||
29275 | # effectively closing config.log, so it can be properly (re)opened and | ||
29276 | # appended to by config.status. When coming back to configure, we | ||
29277 | # need to make the FD available again. | ||
29278 | if test "$no_create" != yes; then | ||
29279 | ac_cs_success=: | ||
29280 | ac_config_status_args= | ||
29281 | test "$silent" = yes && | ||
29282 | ac_config_status_args="$ac_config_status_args --quiet" | ||
29283 | exec 5>/dev/null | ||
29284 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
29285 | exec 5>>config.log | ||
29286 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
29287 | # would make configure fail if this is the last instruction. | ||
29288 | $ac_cs_success || { (exit 1); exit 1; } | ||
29289 | fi | ||
29290 | |||
29291 | |||
29292 | # Print summary of options | ||
29293 | |||
29294 | # Someone please show me a better way :) | ||
29295 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
29296 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
29297 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
29298 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
29299 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
29300 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
29301 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
29302 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
29303 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
29304 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
29305 | |||
29306 | echo "" | ||
29307 | echo "OpenSSH has been configured with the following options:" | ||
29308 | echo " User binaries: $B" | ||
29309 | echo " System binaries: $C" | ||
29310 | echo " Configuration files: $D" | ||
29311 | echo " Askpass program: $E" | ||
29312 | echo " Manual pages: $F" | ||
29313 | echo " PID file: $G" | ||
29314 | echo " Privilege separation chroot path: $H" | ||
29315 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
29316 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
29317 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
29318 | else | ||
29319 | echo " sshd default user PATH: $I" | ||
29320 | if test ! -z "$external_path_file"; then | ||
29321 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
29322 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
29323 | fi | ||
29324 | fi | ||
29325 | if test ! -z "$superuser_path" ; then | ||
29326 | echo " sshd superuser user PATH: $J" | ||
29327 | fi | ||
29328 | echo " Manpage format: $MANTYPE" | ||
29329 | echo " PAM support: $PAM_MSG" | ||
29330 | echo " OSF SIA support: $SIA_MSG" | ||
29331 | echo " KerberosV support: $KRB5_MSG" | ||
29332 | echo " SELinux support: $SELINUX_MSG" | ||
29333 | echo " Smartcard support: $SCARD_MSG" | ||
29334 | echo " S/KEY support: $SKEY_MSG" | ||
29335 | echo " TCP Wrappers support: $TCPW_MSG" | ||
29336 | echo " MD5 password support: $MD5_MSG" | ||
29337 | echo " libedit support: $LIBEDIT_MSG" | ||
29338 | echo " Solaris process contract support: $SPC_MSG" | ||
29339 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
29340 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
29341 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
29342 | echo " Random number source: $RAND_MSG" | ||
29343 | if test ! -z "$USE_RAND_HELPER" ; then | ||
29344 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
29345 | fi | ||
29346 | |||
29347 | echo "" | ||
29348 | |||
29349 | echo " Host: ${host}" | ||
29350 | echo " Compiler: ${CC}" | ||
29351 | echo " Compiler flags: ${CFLAGS}" | ||
29352 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
29353 | echo " Linker flags: ${LDFLAGS}" | ||
29354 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
29355 | |||
29356 | echo "" | ||
29357 | |||
29358 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
29359 | echo "SVR4 style packages are supported with \"make package\"" | ||
29360 | echo "" | ||
29361 | fi | ||
29362 | |||
29363 | if test "x$PAM_MSG" = "xyes" ; then | ||
29364 | echo "PAM is enabled. You may need to install a PAM control file " | ||
29365 | echo "for sshd, otherwise password authentication may fail. " | ||
29366 | echo "Example PAM control files can be found in the contrib/ " | ||
29367 | echo "subdirectory" | ||
29368 | echo "" | ||
29369 | fi | ||
29370 | |||
29371 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
29372 | echo "WARNING: you are using the builtin random number collection " | ||
29373 | echo "service. Please read WARNING.RNG and request that your OS " | ||
29374 | echo "vendor includes kernel-based random number collection in " | ||
29375 | echo "future versions of your OS." | ||
29376 | echo "" | ||
29377 | fi | ||
29378 | |||
29379 | if test ! -z "$NO_PEERCHECK" ; then | ||
29380 | echo "WARNING: the operating system that you are using does not " | ||
29381 | echo "appear to support either the getpeereid() API nor the " | ||
29382 | echo "SO_PEERCRED getsockopt() option. These facilities are used to " | ||
29383 | echo "enforce security checks to prevent unauthorised connections to " | ||
29384 | echo "ssh-agent. Their absence increases the risk that a malicious " | ||
29385 | echo "user can connect to your agent. " | ||
29386 | echo "" | ||
29387 | fi | ||
29388 | |||
29389 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
29390 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
29391 | echo "See the Solaris section in README.platform for details." | ||
29392 | fi | ||