diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 36863 |
1 files changed, 36863 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..0d7a5b97e --- /dev/null +++ b/configure | |||
@@ -0,0 +1,36863 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.583 . | ||
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 | ac_ct_AR | ||
681 | CAT | ||
682 | KILL | ||
683 | PERL | ||
684 | SED | ||
685 | ENT | ||
686 | TEST_MINUS_S_SH | ||
687 | SH | ||
688 | GROFF | ||
689 | NROFF | ||
690 | MANDOC | ||
691 | TEST_SHELL | ||
692 | MANFMT | ||
693 | PATH_GROUPADD_PROG | ||
694 | PATH_USERADD_PROG | ||
695 | MAKE_PACKAGE_SUPPORTED | ||
696 | STARTUP_SCRIPT_SHELL | ||
697 | LOGIN_PROGRAM_FALLBACK | ||
698 | PATH_PASSWD_PROG | ||
699 | LD | ||
700 | PKGCONFIG | ||
701 | LIBEDIT | ||
702 | TEST_SSH_ECC | ||
703 | COMMENT_OUT_ECC | ||
704 | SSH_PRIVSEP_USER | ||
705 | SSHLIBS | ||
706 | SSHDLIBS | ||
707 | KRB5CONF | ||
708 | GSSLIBS | ||
709 | K5LIBS | ||
710 | PRIVSEP_PATH | ||
711 | xauth_path | ||
712 | STRIP_OPT | ||
713 | XAUTH_PATH | ||
714 | MANTYPE | ||
715 | mansubdir | ||
716 | user_path | ||
717 | piddir | ||
718 | TEST_SSH_IPV6 | ||
719 | TEST_MALLOC_OPTIONS | ||
720 | UNSUPPORTED_ALGORITHMS | ||
721 | LIBOBJS | ||
722 | LTLIBOBJS' | ||
723 | ac_subst_files='' | ||
724 | ac_precious_vars='build_alias | ||
725 | host_alias | ||
726 | target_alias | ||
727 | CC | ||
728 | CFLAGS | ||
729 | LDFLAGS | ||
730 | LIBS | ||
731 | CPPFLAGS | ||
732 | CPP' | ||
733 | |||
734 | |||
735 | # Initialize some variables set by options. | ||
736 | ac_init_help= | ||
737 | ac_init_version=false | ||
738 | # The variables have the same names as the options, with | ||
739 | # dashes changed to underlines. | ||
740 | cache_file=/dev/null | ||
741 | exec_prefix=NONE | ||
742 | no_create= | ||
743 | no_recursion= | ||
744 | prefix=NONE | ||
745 | program_prefix=NONE | ||
746 | program_suffix=NONE | ||
747 | program_transform_name=s,x,x, | ||
748 | silent= | ||
749 | site= | ||
750 | srcdir= | ||
751 | verbose= | ||
752 | x_includes=NONE | ||
753 | x_libraries=NONE | ||
754 | |||
755 | # Installation directory options. | ||
756 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
757 | # and all the variables that are supposed to be based on exec_prefix | ||
758 | # by default will actually change. | ||
759 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
760 | # (The list follows the same order as the GNU Coding Standards.) | ||
761 | bindir='${exec_prefix}/bin' | ||
762 | sbindir='${exec_prefix}/sbin' | ||
763 | libexecdir='${exec_prefix}/libexec' | ||
764 | datarootdir='${prefix}/share' | ||
765 | datadir='${datarootdir}' | ||
766 | sysconfdir='${prefix}/etc' | ||
767 | sharedstatedir='${prefix}/com' | ||
768 | localstatedir='${prefix}/var' | ||
769 | includedir='${prefix}/include' | ||
770 | oldincludedir='/usr/include' | ||
771 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
772 | infodir='${datarootdir}/info' | ||
773 | htmldir='${docdir}' | ||
774 | dvidir='${docdir}' | ||
775 | pdfdir='${docdir}' | ||
776 | psdir='${docdir}' | ||
777 | libdir='${exec_prefix}/lib' | ||
778 | localedir='${datarootdir}/locale' | ||
779 | mandir='${datarootdir}/man' | ||
780 | |||
781 | ac_prev= | ||
782 | ac_dashdash= | ||
783 | for ac_option | ||
784 | do | ||
785 | # If the previous option needs an argument, assign it. | ||
786 | if test -n "$ac_prev"; then | ||
787 | eval $ac_prev=\$ac_option | ||
788 | ac_prev= | ||
789 | continue | ||
790 | fi | ||
791 | |||
792 | case $ac_option in | ||
793 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
794 | *) ac_optarg=yes ;; | ||
795 | esac | ||
796 | |||
797 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
798 | |||
799 | case $ac_dashdash$ac_option in | ||
800 | --) | ||
801 | ac_dashdash=yes ;; | ||
802 | |||
803 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
804 | ac_prev=bindir ;; | ||
805 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
806 | bindir=$ac_optarg ;; | ||
807 | |||
808 | -build | --build | --buil | --bui | --bu) | ||
809 | ac_prev=build_alias ;; | ||
810 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
811 | build_alias=$ac_optarg ;; | ||
812 | |||
813 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
814 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
815 | ac_prev=cache_file ;; | ||
816 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
817 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
818 | cache_file=$ac_optarg ;; | ||
819 | |||
820 | --config-cache | -C) | ||
821 | cache_file=config.cache ;; | ||
822 | |||
823 | -datadir | --datadir | --datadi | --datad) | ||
824 | ac_prev=datadir ;; | ||
825 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
826 | datadir=$ac_optarg ;; | ||
827 | |||
828 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
829 | | --dataroo | --dataro | --datar) | ||
830 | ac_prev=datarootdir ;; | ||
831 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
832 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
833 | datarootdir=$ac_optarg ;; | ||
834 | |||
835 | -disable-* | --disable-*) | ||
836 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
837 | # Reject names that are not valid shell variable names. | ||
838 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
839 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
840 | { (exit 1); exit 1; }; } | ||
841 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
842 | eval enable_$ac_feature=no ;; | ||
843 | |||
844 | -docdir | --docdir | --docdi | --doc | --do) | ||
845 | ac_prev=docdir ;; | ||
846 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
847 | docdir=$ac_optarg ;; | ||
848 | |||
849 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
850 | ac_prev=dvidir ;; | ||
851 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
852 | dvidir=$ac_optarg ;; | ||
853 | |||
854 | -enable-* | --enable-*) | ||
855 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
856 | # Reject names that are not valid shell variable names. | ||
857 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
858 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
859 | { (exit 1); exit 1; }; } | ||
860 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
861 | eval enable_$ac_feature=\$ac_optarg ;; | ||
862 | |||
863 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
864 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
865 | | --exec | --exe | --ex) | ||
866 | ac_prev=exec_prefix ;; | ||
867 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
868 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
869 | | --exec=* | --exe=* | --ex=*) | ||
870 | exec_prefix=$ac_optarg ;; | ||
871 | |||
872 | -gas | --gas | --ga | --g) | ||
873 | # Obsolete; use --with-gas. | ||
874 | with_gas=yes ;; | ||
875 | |||
876 | -help | --help | --hel | --he | -h) | ||
877 | ac_init_help=long ;; | ||
878 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
879 | ac_init_help=recursive ;; | ||
880 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
881 | ac_init_help=short ;; | ||
882 | |||
883 | -host | --host | --hos | --ho) | ||
884 | ac_prev=host_alias ;; | ||
885 | -host=* | --host=* | --hos=* | --ho=*) | ||
886 | host_alias=$ac_optarg ;; | ||
887 | |||
888 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
889 | ac_prev=htmldir ;; | ||
890 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
891 | | --ht=*) | ||
892 | htmldir=$ac_optarg ;; | ||
893 | |||
894 | -includedir | --includedir | --includedi | --included | --include \ | ||
895 | | --includ | --inclu | --incl | --inc) | ||
896 | ac_prev=includedir ;; | ||
897 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
898 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
899 | includedir=$ac_optarg ;; | ||
900 | |||
901 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
902 | ac_prev=infodir ;; | ||
903 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
904 | infodir=$ac_optarg ;; | ||
905 | |||
906 | -libdir | --libdir | --libdi | --libd) | ||
907 | ac_prev=libdir ;; | ||
908 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
909 | libdir=$ac_optarg ;; | ||
910 | |||
911 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
912 | | --libexe | --libex | --libe) | ||
913 | ac_prev=libexecdir ;; | ||
914 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
915 | | --libexe=* | --libex=* | --libe=*) | ||
916 | libexecdir=$ac_optarg ;; | ||
917 | |||
918 | -localedir | --localedir | --localedi | --localed | --locale) | ||
919 | ac_prev=localedir ;; | ||
920 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
921 | localedir=$ac_optarg ;; | ||
922 | |||
923 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
924 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
925 | ac_prev=localstatedir ;; | ||
926 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
927 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
928 | localstatedir=$ac_optarg ;; | ||
929 | |||
930 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
931 | ac_prev=mandir ;; | ||
932 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
933 | mandir=$ac_optarg ;; | ||
934 | |||
935 | -nfp | --nfp | --nf) | ||
936 | # Obsolete; use --without-fp. | ||
937 | with_fp=no ;; | ||
938 | |||
939 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
940 | | --no-cr | --no-c | -n) | ||
941 | no_create=yes ;; | ||
942 | |||
943 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
944 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
945 | no_recursion=yes ;; | ||
946 | |||
947 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
948 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
949 | | --oldin | --oldi | --old | --ol | --o) | ||
950 | ac_prev=oldincludedir ;; | ||
951 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
952 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
953 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
954 | oldincludedir=$ac_optarg ;; | ||
955 | |||
956 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
957 | ac_prev=prefix ;; | ||
958 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
959 | prefix=$ac_optarg ;; | ||
960 | |||
961 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
962 | | --program-pre | --program-pr | --program-p) | ||
963 | ac_prev=program_prefix ;; | ||
964 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
965 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
966 | program_prefix=$ac_optarg ;; | ||
967 | |||
968 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
969 | | --program-suf | --program-su | --program-s) | ||
970 | ac_prev=program_suffix ;; | ||
971 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
972 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
973 | program_suffix=$ac_optarg ;; | ||
974 | |||
975 | -program-transform-name | --program-transform-name \ | ||
976 | | --program-transform-nam | --program-transform-na \ | ||
977 | | --program-transform-n | --program-transform- \ | ||
978 | | --program-transform | --program-transfor \ | ||
979 | | --program-transfo | --program-transf \ | ||
980 | | --program-trans | --program-tran \ | ||
981 | | --progr-tra | --program-tr | --program-t) | ||
982 | ac_prev=program_transform_name ;; | ||
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 | program_transform_name=$ac_optarg ;; | ||
991 | |||
992 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
993 | ac_prev=pdfdir ;; | ||
994 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
995 | pdfdir=$ac_optarg ;; | ||
996 | |||
997 | -psdir | --psdir | --psdi | --psd | --ps) | ||
998 | ac_prev=psdir ;; | ||
999 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1000 | psdir=$ac_optarg ;; | ||
1001 | |||
1002 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1003 | | -silent | --silent | --silen | --sile | --sil) | ||
1004 | silent=yes ;; | ||
1005 | |||
1006 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1007 | ac_prev=sbindir ;; | ||
1008 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1009 | | --sbi=* | --sb=*) | ||
1010 | sbindir=$ac_optarg ;; | ||
1011 | |||
1012 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1013 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1014 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1015 | | --sha | --sh) | ||
1016 | ac_prev=sharedstatedir ;; | ||
1017 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1018 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1019 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1020 | | --sha=* | --sh=*) | ||
1021 | sharedstatedir=$ac_optarg ;; | ||
1022 | |||
1023 | -site | --site | --sit) | ||
1024 | ac_prev=site ;; | ||
1025 | -site=* | --site=* | --sit=*) | ||
1026 | site=$ac_optarg ;; | ||
1027 | |||
1028 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1029 | ac_prev=srcdir ;; | ||
1030 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1031 | srcdir=$ac_optarg ;; | ||
1032 | |||
1033 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1034 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1035 | ac_prev=sysconfdir ;; | ||
1036 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1037 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1038 | sysconfdir=$ac_optarg ;; | ||
1039 | |||
1040 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1041 | ac_prev=target_alias ;; | ||
1042 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1043 | target_alias=$ac_optarg ;; | ||
1044 | |||
1045 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1046 | verbose=yes ;; | ||
1047 | |||
1048 | -version | --version | --versio | --versi | --vers | -V) | ||
1049 | ac_init_version=: ;; | ||
1050 | |||
1051 | -with-* | --with-*) | ||
1052 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1053 | # Reject names that are not valid shell variable names. | ||
1054 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1055 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1056 | { (exit 1); exit 1; }; } | ||
1057 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1058 | eval with_$ac_package=\$ac_optarg ;; | ||
1059 | |||
1060 | -without-* | --without-*) | ||
1061 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1062 | # Reject names that are not valid shell variable names. | ||
1063 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1064 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1065 | { (exit 1); exit 1; }; } | ||
1066 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1067 | eval with_$ac_package=no ;; | ||
1068 | |||
1069 | --x) | ||
1070 | # Obsolete; use --with-x. | ||
1071 | with_x=yes ;; | ||
1072 | |||
1073 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1074 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1075 | ac_prev=x_includes ;; | ||
1076 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1077 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1078 | x_includes=$ac_optarg ;; | ||
1079 | |||
1080 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1081 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1082 | ac_prev=x_libraries ;; | ||
1083 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1084 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1085 | x_libraries=$ac_optarg ;; | ||
1086 | |||
1087 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1088 | Try \`$0 --help' for more information." >&2 | ||
1089 | { (exit 1); exit 1; }; } | ||
1090 | ;; | ||
1091 | |||
1092 | *=*) | ||
1093 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1094 | # Reject names that are not valid shell variable names. | ||
1095 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1096 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1097 | { (exit 1); exit 1; }; } | ||
1098 | eval $ac_envvar=\$ac_optarg | ||
1099 | export $ac_envvar ;; | ||
1100 | |||
1101 | *) | ||
1102 | # FIXME: should be removed in autoconf 3.0. | ||
1103 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1104 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1105 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1106 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1107 | ;; | ||
1108 | |||
1109 | esac | ||
1110 | done | ||
1111 | |||
1112 | if test -n "$ac_prev"; then | ||
1113 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1114 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1115 | { (exit 1); exit 1; }; } | ||
1116 | fi | ||
1117 | |||
1118 | # Be sure to have absolute directory names. | ||
1119 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1120 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1121 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1122 | libdir localedir mandir | ||
1123 | do | ||
1124 | eval ac_val=\$$ac_var | ||
1125 | case $ac_val in | ||
1126 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1127 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1128 | esac | ||
1129 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1130 | { (exit 1); exit 1; }; } | ||
1131 | done | ||
1132 | |||
1133 | # There might be people who depend on the old broken behavior: `$host' | ||
1134 | # used to hold the argument of --host etc. | ||
1135 | # FIXME: To remove some day. | ||
1136 | build=$build_alias | ||
1137 | host=$host_alias | ||
1138 | target=$target_alias | ||
1139 | |||
1140 | # FIXME: To remove some day. | ||
1141 | if test "x$host_alias" != x; then | ||
1142 | if test "x$build_alias" = x; then | ||
1143 | cross_compiling=maybe | ||
1144 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1145 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1146 | elif test "x$build_alias" != "x$host_alias"; then | ||
1147 | cross_compiling=yes | ||
1148 | fi | ||
1149 | fi | ||
1150 | |||
1151 | ac_tool_prefix= | ||
1152 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1153 | |||
1154 | test "$silent" = yes && exec 6>/dev/null | ||
1155 | |||
1156 | |||
1157 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1158 | ac_ls_di=`ls -di .` && | ||
1159 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1160 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1161 | { (exit 1); exit 1; }; } | ||
1162 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1163 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1164 | { (exit 1); exit 1; }; } | ||
1165 | |||
1166 | |||
1167 | # Find the source files, if location was not specified. | ||
1168 | if test -z "$srcdir"; then | ||
1169 | ac_srcdir_defaulted=yes | ||
1170 | # Try the directory containing this script, then the parent directory. | ||
1171 | ac_confdir=`$as_dirname -- "$0" || | ||
1172 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1173 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1174 | X"$0" : 'X\(//\)$' \| \ | ||
1175 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1176 | echo X"$0" | | ||
1177 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1178 | s//\1/ | ||
1179 | q | ||
1180 | } | ||
1181 | /^X\(\/\/\)[^/].*/{ | ||
1182 | s//\1/ | ||
1183 | q | ||
1184 | } | ||
1185 | /^X\(\/\/\)$/{ | ||
1186 | s//\1/ | ||
1187 | q | ||
1188 | } | ||
1189 | /^X\(\/\).*/{ | ||
1190 | s//\1/ | ||
1191 | q | ||
1192 | } | ||
1193 | s/.*/./; q'` | ||
1194 | srcdir=$ac_confdir | ||
1195 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1196 | srcdir=.. | ||
1197 | fi | ||
1198 | else | ||
1199 | ac_srcdir_defaulted=no | ||
1200 | fi | ||
1201 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1202 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1203 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1204 | { (exit 1); exit 1; }; } | ||
1205 | fi | ||
1206 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1207 | ac_abs_confdir=`( | ||
1208 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1209 | { (exit 1); exit 1; }; } | ||
1210 | pwd)` | ||
1211 | # When building in place, set srcdir=. | ||
1212 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1213 | srcdir=. | ||
1214 | fi | ||
1215 | # Remove unnecessary trailing slashes from srcdir. | ||
1216 | # Double slashes in file names in object file debugging info | ||
1217 | # mess up M-x gdb in Emacs. | ||
1218 | case $srcdir in | ||
1219 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1220 | esac | ||
1221 | for ac_var in $ac_precious_vars; do | ||
1222 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1223 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1224 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1225 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1226 | done | ||
1227 | |||
1228 | # | ||
1229 | # Report the --help message. | ||
1230 | # | ||
1231 | if test "$ac_init_help" = "long"; then | ||
1232 | # Omit some internal or obsolete options to make the list less imposing. | ||
1233 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1234 | cat <<_ACEOF | ||
1235 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1236 | |||
1237 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1238 | |||
1239 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1240 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1241 | |||
1242 | Defaults for the options are specified in brackets. | ||
1243 | |||
1244 | Configuration: | ||
1245 | -h, --help display this help and exit | ||
1246 | --help=short display options specific to this package | ||
1247 | --help=recursive display the short help of all the included packages | ||
1248 | -V, --version display version information and exit | ||
1249 | -q, --quiet, --silent do not print \`checking...' messages | ||
1250 | --cache-file=FILE cache test results in FILE [disabled] | ||
1251 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1252 | -n, --no-create do not create output files | ||
1253 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1254 | |||
1255 | Installation directories: | ||
1256 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1257 | [$ac_default_prefix] | ||
1258 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1259 | [PREFIX] | ||
1260 | |||
1261 | By default, \`make install' will install all the files in | ||
1262 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1263 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1264 | for instance \`--prefix=\$HOME'. | ||
1265 | |||
1266 | For better control, use the options below. | ||
1267 | |||
1268 | Fine tuning of the installation directories: | ||
1269 | --bindir=DIR user executables [EPREFIX/bin] | ||
1270 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1271 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1272 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1273 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1274 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1275 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1276 | --includedir=DIR C header files [PREFIX/include] | ||
1277 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1278 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1279 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1280 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1281 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1282 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1283 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1284 | --htmldir=DIR html documentation [DOCDIR] | ||
1285 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1286 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1287 | --psdir=DIR ps documentation [DOCDIR] | ||
1288 | _ACEOF | ||
1289 | |||
1290 | cat <<\_ACEOF | ||
1291 | |||
1292 | System types: | ||
1293 | --build=BUILD configure for building on BUILD [guessed] | ||
1294 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1295 | _ACEOF | ||
1296 | fi | ||
1297 | |||
1298 | if test -n "$ac_init_help"; then | ||
1299 | case $ac_init_help in | ||
1300 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1301 | esac | ||
1302 | cat <<\_ACEOF | ||
1303 | |||
1304 | Optional Features: | ||
1305 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1306 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1307 | --disable-largefile omit support for large files | ||
1308 | --disable-strip Disable calling strip(1) on install | ||
1309 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1310 | --disable-lastlog disable use of lastlog even if detected no | ||
1311 | --disable-utmp disable use of utmp even if detected no | ||
1312 | --disable-utmpx disable use of utmpx even if detected no | ||
1313 | --disable-wtmp disable use of wtmp even if detected no | ||
1314 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1315 | --disable-libutil disable use of libutil (login() etc.) no | ||
1316 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1317 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1318 | |||
1319 | Optional Packages: | ||
1320 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1321 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1322 | --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** | ||
1323 | --without-ssh1 Enable support for SSH protocol 1 | ||
1324 | --without-stackprotect Don't use compiler's stack protection | ||
1325 | --without-hardening Don't use toolchain hardening flags | ||
1326 | --without-rpath Disable auto-added -R linker paths | ||
1327 | --with-cflags Specify additional flags to pass to compiler | ||
1328 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1329 | --with-ldflags Specify additional flags to pass to linker | ||
1330 | --with-libs Specify additional libraries to link with | ||
1331 | --with-Werror Build main code with -Werror | ||
1332 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1333 | --with-solaris-projects Enable Solaris projects (experimental) | ||
1334 | --with-osfsia Enable Digital Unix SIA | ||
1335 | --with-zlib=PATH Use zlib in PATH | ||
1336 | --without-zlib-version-check Disable zlib version check | ||
1337 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1338 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) | ||
1339 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1340 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | ||
1341 | --with-pie Build Position Independent Executables if possible | ||
1342 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1343 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1344 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1345 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1346 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1347 | --with-pam Enable PAM support | ||
1348 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1349 | --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum) | ||
1350 | --with-selinux Enable SELinux support | ||
1351 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1352 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1353 | --with-xauth=PATH Specify path to xauth program | ||
1354 | --with-maildir=/path/to/mail Specify your system mail directory | ||
1355 | --with-mantype=man|cat|doc Set man page type | ||
1356 | --with-md5-passwords Enable use of MD5 passwords | ||
1357 | --without-shadow Disable shadow password support | ||
1358 | --with-ipaddr-display Use ip address instead of hostname in $DISPLAY | ||
1359 | --with-default-path= Specify default $PATH environment for server | ||
1360 | --with-superuser-path= Specify different path for super-user | ||
1361 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1362 | --with-bsd-auth Enable BSD auth support | ||
1363 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1364 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1365 | |||
1366 | Some influential environment variables: | ||
1367 | CC C compiler command | ||
1368 | CFLAGS C compiler flags | ||
1369 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1370 | nonstandard directory <lib dir> | ||
1371 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1372 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1373 | you have headers in a nonstandard directory <include dir> | ||
1374 | CPP C preprocessor | ||
1375 | |||
1376 | Use these variables to override the choices made by `configure' or to help | ||
1377 | it to find libraries and programs with nonstandard names/locations. | ||
1378 | |||
1379 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1380 | _ACEOF | ||
1381 | ac_status=$? | ||
1382 | fi | ||
1383 | |||
1384 | if test "$ac_init_help" = "recursive"; then | ||
1385 | # If there are subdirs, report their specific --help. | ||
1386 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1387 | test -d "$ac_dir" || continue | ||
1388 | ac_builddir=. | ||
1389 | |||
1390 | case "$ac_dir" in | ||
1391 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1392 | *) | ||
1393 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1394 | # A ".." for each directory in $ac_dir_suffix. | ||
1395 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1396 | case $ac_top_builddir_sub in | ||
1397 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1398 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1399 | esac ;; | ||
1400 | esac | ||
1401 | ac_abs_top_builddir=$ac_pwd | ||
1402 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1403 | # for backward compatibility: | ||
1404 | ac_top_builddir=$ac_top_build_prefix | ||
1405 | |||
1406 | case $srcdir in | ||
1407 | .) # We are building in place. | ||
1408 | ac_srcdir=. | ||
1409 | ac_top_srcdir=$ac_top_builddir_sub | ||
1410 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1411 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1412 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1413 | ac_top_srcdir=$srcdir | ||
1414 | ac_abs_top_srcdir=$srcdir ;; | ||
1415 | *) # Relative name. | ||
1416 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1417 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1418 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1419 | esac | ||
1420 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1421 | |||
1422 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1423 | # Check for guested configure. | ||
1424 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1425 | echo && | ||
1426 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1427 | elif test -f "$ac_srcdir/configure"; then | ||
1428 | echo && | ||
1429 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1430 | else | ||
1431 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1432 | fi || ac_status=$? | ||
1433 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1434 | done | ||
1435 | fi | ||
1436 | |||
1437 | test -n "$ac_init_help" && exit $ac_status | ||
1438 | if $ac_init_version; then | ||
1439 | cat <<\_ACEOF | ||
1440 | OpenSSH configure Portable | ||
1441 | generated by GNU Autoconf 2.61 | ||
1442 | |||
1443 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1444 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1445 | This configure script is free software; the Free Software Foundation | ||
1446 | gives unlimited permission to copy, distribute and modify it. | ||
1447 | _ACEOF | ||
1448 | exit | ||
1449 | fi | ||
1450 | cat >config.log <<_ACEOF | ||
1451 | This file contains any messages produced by compilers while | ||
1452 | running configure, to aid debugging if configure makes a mistake. | ||
1453 | |||
1454 | It was created by OpenSSH $as_me Portable, which was | ||
1455 | generated by GNU Autoconf 2.61. Invocation command line was | ||
1456 | |||
1457 | $ $0 $@ | ||
1458 | |||
1459 | _ACEOF | ||
1460 | exec 5>>config.log | ||
1461 | { | ||
1462 | cat <<_ASUNAME | ||
1463 | ## --------- ## | ||
1464 | ## Platform. ## | ||
1465 | ## --------- ## | ||
1466 | |||
1467 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1468 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1469 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1470 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1471 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1472 | |||
1473 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1474 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1475 | |||
1476 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1477 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1478 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1479 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1480 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1481 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1482 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1483 | |||
1484 | _ASUNAME | ||
1485 | |||
1486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1487 | for as_dir in $PATH | ||
1488 | do | ||
1489 | IFS=$as_save_IFS | ||
1490 | test -z "$as_dir" && as_dir=. | ||
1491 | echo "PATH: $as_dir" | ||
1492 | done | ||
1493 | IFS=$as_save_IFS | ||
1494 | |||
1495 | } >&5 | ||
1496 | |||
1497 | cat >&5 <<_ACEOF | ||
1498 | |||
1499 | |||
1500 | ## ----------- ## | ||
1501 | ## Core tests. ## | ||
1502 | ## ----------- ## | ||
1503 | |||
1504 | _ACEOF | ||
1505 | |||
1506 | |||
1507 | # Keep a trace of the command line. | ||
1508 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1509 | # Strip out --silent because we don't want to record it for future runs. | ||
1510 | # Also quote any args containing shell meta-characters. | ||
1511 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1512 | ac_configure_args= | ||
1513 | ac_configure_args0= | ||
1514 | ac_configure_args1= | ||
1515 | ac_must_keep_next=false | ||
1516 | for ac_pass in 1 2 | ||
1517 | do | ||
1518 | for ac_arg | ||
1519 | do | ||
1520 | case $ac_arg in | ||
1521 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1522 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1523 | | -silent | --silent | --silen | --sile | --sil) | ||
1524 | continue ;; | ||
1525 | *\'*) | ||
1526 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1527 | esac | ||
1528 | case $ac_pass in | ||
1529 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1530 | 2) | ||
1531 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1532 | if test $ac_must_keep_next = true; then | ||
1533 | ac_must_keep_next=false # Got value, back to normal. | ||
1534 | else | ||
1535 | case $ac_arg in | ||
1536 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1537 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1538 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1539 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1540 | case "$ac_configure_args0 " in | ||
1541 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1542 | esac | ||
1543 | ;; | ||
1544 | -* ) ac_must_keep_next=true ;; | ||
1545 | esac | ||
1546 | fi | ||
1547 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1548 | ;; | ||
1549 | esac | ||
1550 | done | ||
1551 | done | ||
1552 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1553 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1554 | |||
1555 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1556 | # config.log. We remove comments because anyway the quotes in there | ||
1557 | # would cause problems or look ugly. | ||
1558 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1559 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1560 | trap 'exit_status=$? | ||
1561 | # Save into config.log some information that might help in debugging. | ||
1562 | { | ||
1563 | echo | ||
1564 | |||
1565 | cat <<\_ASBOX | ||
1566 | ## ---------------- ## | ||
1567 | ## Cache variables. ## | ||
1568 | ## ---------------- ## | ||
1569 | _ASBOX | ||
1570 | echo | ||
1571 | # The following way of writing the cache mishandles newlines in values, | ||
1572 | ( | ||
1573 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1574 | eval ac_val=\$$ac_var | ||
1575 | case $ac_val in #( | ||
1576 | *${as_nl}*) | ||
1577 | case $ac_var in #( | ||
1578 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1579 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1580 | esac | ||
1581 | case $ac_var in #( | ||
1582 | _ | IFS | as_nl) ;; #( | ||
1583 | *) $as_unset $ac_var ;; | ||
1584 | esac ;; | ||
1585 | esac | ||
1586 | done | ||
1587 | (set) 2>&1 | | ||
1588 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1589 | *${as_nl}ac_space=\ *) | ||
1590 | sed -n \ | ||
1591 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1592 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1593 | ;; #( | ||
1594 | *) | ||
1595 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1596 | ;; | ||
1597 | esac | | ||
1598 | sort | ||
1599 | ) | ||
1600 | echo | ||
1601 | |||
1602 | cat <<\_ASBOX | ||
1603 | ## ----------------- ## | ||
1604 | ## Output variables. ## | ||
1605 | ## ----------------- ## | ||
1606 | _ASBOX | ||
1607 | echo | ||
1608 | for ac_var in $ac_subst_vars | ||
1609 | do | ||
1610 | eval ac_val=\$$ac_var | ||
1611 | case $ac_val in | ||
1612 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1613 | esac | ||
1614 | echo "$ac_var='\''$ac_val'\''" | ||
1615 | done | sort | ||
1616 | echo | ||
1617 | |||
1618 | if test -n "$ac_subst_files"; then | ||
1619 | cat <<\_ASBOX | ||
1620 | ## ------------------- ## | ||
1621 | ## File substitutions. ## | ||
1622 | ## ------------------- ## | ||
1623 | _ASBOX | ||
1624 | echo | ||
1625 | for ac_var in $ac_subst_files | ||
1626 | do | ||
1627 | eval ac_val=\$$ac_var | ||
1628 | case $ac_val in | ||
1629 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1630 | esac | ||
1631 | echo "$ac_var='\''$ac_val'\''" | ||
1632 | done | sort | ||
1633 | echo | ||
1634 | fi | ||
1635 | |||
1636 | if test -s confdefs.h; then | ||
1637 | cat <<\_ASBOX | ||
1638 | ## ----------- ## | ||
1639 | ## confdefs.h. ## | ||
1640 | ## ----------- ## | ||
1641 | _ASBOX | ||
1642 | echo | ||
1643 | cat confdefs.h | ||
1644 | echo | ||
1645 | fi | ||
1646 | test "$ac_signal" != 0 && | ||
1647 | echo "$as_me: caught signal $ac_signal" | ||
1648 | echo "$as_me: exit $exit_status" | ||
1649 | } >&5 | ||
1650 | rm -f core *.core core.conftest.* && | ||
1651 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1652 | exit $exit_status | ||
1653 | ' 0 | ||
1654 | for ac_signal in 1 2 13 15; do | ||
1655 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1656 | done | ||
1657 | ac_signal=0 | ||
1658 | |||
1659 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1660 | rm -f -r conftest* confdefs.h | ||
1661 | |||
1662 | # Predefined preprocessor variables. | ||
1663 | |||
1664 | cat >>confdefs.h <<_ACEOF | ||
1665 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1666 | _ACEOF | ||
1667 | |||
1668 | |||
1669 | cat >>confdefs.h <<_ACEOF | ||
1670 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1671 | _ACEOF | ||
1672 | |||
1673 | |||
1674 | cat >>confdefs.h <<_ACEOF | ||
1675 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1676 | _ACEOF | ||
1677 | |||
1678 | |||
1679 | cat >>confdefs.h <<_ACEOF | ||
1680 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1681 | _ACEOF | ||
1682 | |||
1683 | |||
1684 | cat >>confdefs.h <<_ACEOF | ||
1685 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1686 | _ACEOF | ||
1687 | |||
1688 | |||
1689 | # Let the site file select an alternate cache file if it wants to. | ||
1690 | # Prefer explicitly selected file to automatically selected ones. | ||
1691 | if test -n "$CONFIG_SITE"; then | ||
1692 | set x "$CONFIG_SITE" | ||
1693 | elif test "x$prefix" != xNONE; then | ||
1694 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1695 | else | ||
1696 | set x "$ac_default_prefix/share/config.site" \ | ||
1697 | "$ac_default_prefix/etc/config.site" | ||
1698 | fi | ||
1699 | shift | ||
1700 | for ac_site_file | ||
1701 | do | ||
1702 | if test -r "$ac_site_file"; then | ||
1703 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1704 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1705 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1706 | . "$ac_site_file" | ||
1707 | fi | ||
1708 | done | ||
1709 | |||
1710 | if test -r "$cache_file"; then | ||
1711 | # Some versions of bash will fail to source /dev/null (special | ||
1712 | # files actually), so we avoid doing that. | ||
1713 | if test -f "$cache_file"; then | ||
1714 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1715 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1716 | case $cache_file in | ||
1717 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1718 | *) . "./$cache_file";; | ||
1719 | esac | ||
1720 | fi | ||
1721 | else | ||
1722 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1723 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1724 | >$cache_file | ||
1725 | fi | ||
1726 | |||
1727 | # Check that the precious variables saved in the cache have kept the same | ||
1728 | # value. | ||
1729 | ac_cache_corrupted=false | ||
1730 | for ac_var in $ac_precious_vars; do | ||
1731 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1732 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1733 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1734 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1735 | case $ac_old_set,$ac_new_set in | ||
1736 | set,) | ||
1737 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1738 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1739 | ac_cache_corrupted=: ;; | ||
1740 | ,set) | ||
1741 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1742 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1743 | ac_cache_corrupted=: ;; | ||
1744 | ,);; | ||
1745 | *) | ||
1746 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1747 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1748 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1749 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1750 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1751 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1752 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1753 | ac_cache_corrupted=: | ||
1754 | fi;; | ||
1755 | esac | ||
1756 | # Pass precious variables to config.status. | ||
1757 | if test "$ac_new_set" = set; then | ||
1758 | case $ac_new_val in | ||
1759 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1760 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1761 | esac | ||
1762 | case " $ac_configure_args " in | ||
1763 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1764 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1765 | esac | ||
1766 | fi | ||
1767 | done | ||
1768 | if $ac_cache_corrupted; then | ||
1769 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1770 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1771 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1772 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1773 | { (exit 1); exit 1; }; } | ||
1774 | fi | ||
1775 | |||
1776 | |||
1777 | |||
1778 | |||
1779 | |||
1780 | |||
1781 | |||
1782 | |||
1783 | |||
1784 | |||
1785 | |||
1786 | |||
1787 | |||
1788 | |||
1789 | |||
1790 | |||
1791 | |||
1792 | |||
1793 | |||
1794 | |||
1795 | |||
1796 | |||
1797 | |||
1798 | |||
1799 | |||
1800 | ac_ext=c | ||
1801 | ac_cpp='$CPP $CPPFLAGS' | ||
1802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1805 | |||
1806 | |||
1807 | |||
1808 | |||
1809 | ac_ext=c | ||
1810 | ac_cpp='$CPP $CPPFLAGS' | ||
1811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1814 | |||
1815 | |||
1816 | ac_config_headers="$ac_config_headers config.h" | ||
1817 | |||
1818 | ac_ext=c | ||
1819 | ac_cpp='$CPP $CPPFLAGS' | ||
1820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1823 | if test -n "$ac_tool_prefix"; then | ||
1824 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1825 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1826 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1828 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1830 | else | ||
1831 | if test -n "$CC"; then | ||
1832 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1833 | else | ||
1834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1835 | for as_dir in $PATH | ||
1836 | do | ||
1837 | IFS=$as_save_IFS | ||
1838 | test -z "$as_dir" && as_dir=. | ||
1839 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1841 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1843 | break 2 | ||
1844 | fi | ||
1845 | done | ||
1846 | done | ||
1847 | IFS=$as_save_IFS | ||
1848 | |||
1849 | fi | ||
1850 | fi | ||
1851 | CC=$ac_cv_prog_CC | ||
1852 | if test -n "$CC"; then | ||
1853 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1854 | echo "${ECHO_T}$CC" >&6; } | ||
1855 | else | ||
1856 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1857 | echo "${ECHO_T}no" >&6; } | ||
1858 | fi | ||
1859 | |||
1860 | |||
1861 | fi | ||
1862 | if test -z "$ac_cv_prog_CC"; then | ||
1863 | ac_ct_CC=$CC | ||
1864 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1865 | set dummy gcc; ac_word=$2 | ||
1866 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1868 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1870 | else | ||
1871 | if test -n "$ac_ct_CC"; then | ||
1872 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1873 | else | ||
1874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1875 | for as_dir in $PATH | ||
1876 | do | ||
1877 | IFS=$as_save_IFS | ||
1878 | test -z "$as_dir" && as_dir=. | ||
1879 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1881 | ac_cv_prog_ac_ct_CC="gcc" | ||
1882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1883 | break 2 | ||
1884 | fi | ||
1885 | done | ||
1886 | done | ||
1887 | IFS=$as_save_IFS | ||
1888 | |||
1889 | fi | ||
1890 | fi | ||
1891 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1892 | if test -n "$ac_ct_CC"; then | ||
1893 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1894 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
1895 | else | ||
1896 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1897 | echo "${ECHO_T}no" >&6; } | ||
1898 | fi | ||
1899 | |||
1900 | if test "x$ac_ct_CC" = x; then | ||
1901 | CC="" | ||
1902 | else | ||
1903 | case $cross_compiling:$ac_tool_warned in | ||
1904 | yes:) | ||
1905 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
1906 | whose name does not start with the host triplet. If you think this | ||
1907 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
1908 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
1909 | whose name does not start with the host triplet. If you think this | ||
1910 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
1911 | ac_tool_warned=yes ;; | ||
1912 | esac | ||
1913 | CC=$ac_ct_CC | ||
1914 | fi | ||
1915 | else | ||
1916 | CC="$ac_cv_prog_CC" | ||
1917 | fi | ||
1918 | |||
1919 | if test -z "$CC"; then | ||
1920 | if test -n "$ac_tool_prefix"; then | ||
1921 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1922 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1923 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1925 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1927 | else | ||
1928 | if test -n "$CC"; then | ||
1929 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1930 | else | ||
1931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1932 | for as_dir in $PATH | ||
1933 | do | ||
1934 | IFS=$as_save_IFS | ||
1935 | test -z "$as_dir" && as_dir=. | ||
1936 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1938 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1940 | break 2 | ||
1941 | fi | ||
1942 | done | ||
1943 | done | ||
1944 | IFS=$as_save_IFS | ||
1945 | |||
1946 | fi | ||
1947 | fi | ||
1948 | CC=$ac_cv_prog_CC | ||
1949 | if test -n "$CC"; then | ||
1950 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1951 | echo "${ECHO_T}$CC" >&6; } | ||
1952 | else | ||
1953 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1954 | echo "${ECHO_T}no" >&6; } | ||
1955 | fi | ||
1956 | |||
1957 | |||
1958 | fi | ||
1959 | fi | ||
1960 | if test -z "$CC"; then | ||
1961 | # Extract the first word of "cc", so it can be a program name with args. | ||
1962 | set dummy cc; ac_word=$2 | ||
1963 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1965 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1967 | else | ||
1968 | if test -n "$CC"; then | ||
1969 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1970 | else | ||
1971 | ac_prog_rejected=no | ||
1972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1973 | for as_dir in $PATH | ||
1974 | do | ||
1975 | IFS=$as_save_IFS | ||
1976 | test -z "$as_dir" && as_dir=. | ||
1977 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1979 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1980 | ac_prog_rejected=yes | ||
1981 | continue | ||
1982 | fi | ||
1983 | ac_cv_prog_CC="cc" | ||
1984 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1985 | break 2 | ||
1986 | fi | ||
1987 | done | ||
1988 | done | ||
1989 | IFS=$as_save_IFS | ||
1990 | |||
1991 | if test $ac_prog_rejected = yes; then | ||
1992 | # We found a bogon in the path, so make sure we never use it. | ||
1993 | set dummy $ac_cv_prog_CC | ||
1994 | shift | ||
1995 | if test $# != 0; then | ||
1996 | # We chose a different compiler from the bogus one. | ||
1997 | # However, it has the same basename, so the bogon will be chosen | ||
1998 | # first if we set CC to just the basename; use the full file name. | ||
1999 | shift | ||
2000 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2001 | fi | ||
2002 | fi | ||
2003 | fi | ||
2004 | fi | ||
2005 | CC=$ac_cv_prog_CC | ||
2006 | if test -n "$CC"; then | ||
2007 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2008 | echo "${ECHO_T}$CC" >&6; } | ||
2009 | else | ||
2010 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2011 | echo "${ECHO_T}no" >&6; } | ||
2012 | fi | ||
2013 | |||
2014 | |||
2015 | fi | ||
2016 | if test -z "$CC"; then | ||
2017 | if test -n "$ac_tool_prefix"; then | ||
2018 | for ac_prog in cl.exe | ||
2019 | do | ||
2020 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2021 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2022 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2024 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2026 | else | ||
2027 | if test -n "$CC"; then | ||
2028 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2029 | else | ||
2030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2031 | for as_dir in $PATH | ||
2032 | do | ||
2033 | IFS=$as_save_IFS | ||
2034 | test -z "$as_dir" && as_dir=. | ||
2035 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2037 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2038 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2039 | break 2 | ||
2040 | fi | ||
2041 | done | ||
2042 | done | ||
2043 | IFS=$as_save_IFS | ||
2044 | |||
2045 | fi | ||
2046 | fi | ||
2047 | CC=$ac_cv_prog_CC | ||
2048 | if test -n "$CC"; then | ||
2049 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2050 | echo "${ECHO_T}$CC" >&6; } | ||
2051 | else | ||
2052 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2053 | echo "${ECHO_T}no" >&6; } | ||
2054 | fi | ||
2055 | |||
2056 | |||
2057 | test -n "$CC" && break | ||
2058 | done | ||
2059 | fi | ||
2060 | if test -z "$CC"; then | ||
2061 | ac_ct_CC=$CC | ||
2062 | for ac_prog in cl.exe | ||
2063 | do | ||
2064 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2065 | set dummy $ac_prog; ac_word=$2 | ||
2066 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2068 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2070 | else | ||
2071 | if test -n "$ac_ct_CC"; then | ||
2072 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2073 | else | ||
2074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2075 | for as_dir in $PATH | ||
2076 | do | ||
2077 | IFS=$as_save_IFS | ||
2078 | test -z "$as_dir" && as_dir=. | ||
2079 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2081 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2083 | break 2 | ||
2084 | fi | ||
2085 | done | ||
2086 | done | ||
2087 | IFS=$as_save_IFS | ||
2088 | |||
2089 | fi | ||
2090 | fi | ||
2091 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2092 | if test -n "$ac_ct_CC"; then | ||
2093 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2094 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2095 | else | ||
2096 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2097 | echo "${ECHO_T}no" >&6; } | ||
2098 | fi | ||
2099 | |||
2100 | |||
2101 | test -n "$ac_ct_CC" && break | ||
2102 | done | ||
2103 | |||
2104 | if test "x$ac_ct_CC" = x; then | ||
2105 | CC="" | ||
2106 | else | ||
2107 | case $cross_compiling:$ac_tool_warned in | ||
2108 | yes:) | ||
2109 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2110 | whose name does not start with the host triplet. If you think this | ||
2111 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2112 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2113 | whose name does not start with the host triplet. If you think this | ||
2114 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2115 | ac_tool_warned=yes ;; | ||
2116 | esac | ||
2117 | CC=$ac_ct_CC | ||
2118 | fi | ||
2119 | fi | ||
2120 | |||
2121 | fi | ||
2122 | |||
2123 | |||
2124 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2125 | See \`config.log' for more details." >&5 | ||
2126 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2127 | See \`config.log' for more details." >&2;} | ||
2128 | { (exit 1); exit 1; }; } | ||
2129 | |||
2130 | # Provide some information about the compiler. | ||
2131 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2132 | ac_compiler=`set X $ac_compile; echo $2` | ||
2133 | { (ac_try="$ac_compiler --version >&5" | ||
2134 | case "(($ac_try" in | ||
2135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2136 | *) ac_try_echo=$ac_try;; | ||
2137 | esac | ||
2138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2139 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2140 | ac_status=$? | ||
2141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2142 | (exit $ac_status); } | ||
2143 | { (ac_try="$ac_compiler -v >&5" | ||
2144 | case "(($ac_try" in | ||
2145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2146 | *) ac_try_echo=$ac_try;; | ||
2147 | esac | ||
2148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2149 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2150 | ac_status=$? | ||
2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2152 | (exit $ac_status); } | ||
2153 | { (ac_try="$ac_compiler -V >&5" | ||
2154 | case "(($ac_try" in | ||
2155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2156 | *) ac_try_echo=$ac_try;; | ||
2157 | esac | ||
2158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2159 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2160 | ac_status=$? | ||
2161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2162 | (exit $ac_status); } | ||
2163 | |||
2164 | cat >conftest.$ac_ext <<_ACEOF | ||
2165 | /* confdefs.h. */ | ||
2166 | _ACEOF | ||
2167 | cat confdefs.h >>conftest.$ac_ext | ||
2168 | cat >>conftest.$ac_ext <<_ACEOF | ||
2169 | /* end confdefs.h. */ | ||
2170 | |||
2171 | int | ||
2172 | main () | ||
2173 | { | ||
2174 | |||
2175 | ; | ||
2176 | return 0; | ||
2177 | } | ||
2178 | _ACEOF | ||
2179 | ac_clean_files_save=$ac_clean_files | ||
2180 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2181 | # Try to create an executable without -o first, disregard a.out. | ||
2182 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2183 | # of exeext. | ||
2184 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2185 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2186 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2187 | # | ||
2188 | # List of possible output files, starting from the most likely. | ||
2189 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2190 | # only as a last resort. b.out is created by i960 compilers. | ||
2191 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2192 | # | ||
2193 | # The IRIX 6 linker writes into existing files which may not be | ||
2194 | # executable, retaining their permissions. Remove them first so a | ||
2195 | # subsequent execution test works. | ||
2196 | ac_rmfiles= | ||
2197 | for ac_file in $ac_files | ||
2198 | do | ||
2199 | case $ac_file in | ||
2200 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2201 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2202 | esac | ||
2203 | done | ||
2204 | rm -f $ac_rmfiles | ||
2205 | |||
2206 | if { (ac_try="$ac_link_default" | ||
2207 | case "(($ac_try" in | ||
2208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2209 | *) ac_try_echo=$ac_try;; | ||
2210 | esac | ||
2211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2212 | (eval "$ac_link_default") 2>&5 | ||
2213 | ac_status=$? | ||
2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2215 | (exit $ac_status); }; then | ||
2216 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2217 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2218 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2219 | # so that the user can short-circuit this test for compilers unknown to | ||
2220 | # Autoconf. | ||
2221 | for ac_file in $ac_files '' | ||
2222 | do | ||
2223 | test -f "$ac_file" || continue | ||
2224 | case $ac_file in | ||
2225 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2226 | ;; | ||
2227 | [ab].out ) | ||
2228 | # We found the default executable, but exeext='' is most | ||
2229 | # certainly right. | ||
2230 | break;; | ||
2231 | *.* ) | ||
2232 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2233 | then :; else | ||
2234 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2235 | fi | ||
2236 | # We set ac_cv_exeext here because the later test for it is not | ||
2237 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2238 | # argument, so we may need to know it at that point already. | ||
2239 | # Even if this section looks crufty: it has the advantage of | ||
2240 | # actually working. | ||
2241 | break;; | ||
2242 | * ) | ||
2243 | break;; | ||
2244 | esac | ||
2245 | done | ||
2246 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2247 | |||
2248 | else | ||
2249 | ac_file='' | ||
2250 | fi | ||
2251 | |||
2252 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2253 | echo "${ECHO_T}$ac_file" >&6; } | ||
2254 | if test -z "$ac_file"; then | ||
2255 | echo "$as_me: failed program was:" >&5 | ||
2256 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2257 | |||
2258 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2259 | See \`config.log' for more details." >&5 | ||
2260 | echo "$as_me: error: C compiler cannot create executables | ||
2261 | See \`config.log' for more details." >&2;} | ||
2262 | { (exit 77); exit 77; }; } | ||
2263 | fi | ||
2264 | |||
2265 | ac_exeext=$ac_cv_exeext | ||
2266 | |||
2267 | # Check that the compiler produces executables we can run. If not, either | ||
2268 | # the compiler is broken, or we cross compile. | ||
2269 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2270 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2271 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2272 | # If not cross compiling, check that we can run a simple program. | ||
2273 | if test "$cross_compiling" != yes; then | ||
2274 | if { ac_try='./$ac_file' | ||
2275 | { (case "(($ac_try" in | ||
2276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2277 | *) ac_try_echo=$ac_try;; | ||
2278 | esac | ||
2279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2280 | (eval "$ac_try") 2>&5 | ||
2281 | ac_status=$? | ||
2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2283 | (exit $ac_status); }; }; then | ||
2284 | cross_compiling=no | ||
2285 | else | ||
2286 | if test "$cross_compiling" = maybe; then | ||
2287 | cross_compiling=yes | ||
2288 | else | ||
2289 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2290 | If you meant to cross compile, use \`--host'. | ||
2291 | See \`config.log' for more details." >&5 | ||
2292 | echo "$as_me: error: cannot run C compiled programs. | ||
2293 | If you meant to cross compile, use \`--host'. | ||
2294 | See \`config.log' for more details." >&2;} | ||
2295 | { (exit 1); exit 1; }; } | ||
2296 | fi | ||
2297 | fi | ||
2298 | fi | ||
2299 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2300 | echo "${ECHO_T}yes" >&6; } | ||
2301 | |||
2302 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2303 | ac_clean_files=$ac_clean_files_save | ||
2304 | # Check that the compiler produces executables we can run. If not, either | ||
2305 | # the compiler is broken, or we cross compile. | ||
2306 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2307 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2308 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2309 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2310 | |||
2311 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2312 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2313 | if { (ac_try="$ac_link" | ||
2314 | case "(($ac_try" in | ||
2315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2316 | *) ac_try_echo=$ac_try;; | ||
2317 | esac | ||
2318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2319 | (eval "$ac_link") 2>&5 | ||
2320 | ac_status=$? | ||
2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2322 | (exit $ac_status); }; then | ||
2323 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2324 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2325 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2326 | # `rm'. | ||
2327 | for ac_file in conftest.exe conftest conftest.*; do | ||
2328 | test -f "$ac_file" || continue | ||
2329 | case $ac_file in | ||
2330 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2331 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2332 | break;; | ||
2333 | * ) break;; | ||
2334 | esac | ||
2335 | done | ||
2336 | else | ||
2337 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2338 | See \`config.log' for more details." >&5 | ||
2339 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2340 | See \`config.log' for more details." >&2;} | ||
2341 | { (exit 1); exit 1; }; } | ||
2342 | fi | ||
2343 | |||
2344 | rm -f conftest$ac_cv_exeext | ||
2345 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2346 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2347 | |||
2348 | rm -f conftest.$ac_ext | ||
2349 | EXEEXT=$ac_cv_exeext | ||
2350 | ac_exeext=$EXEEXT | ||
2351 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2352 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2353 | if test "${ac_cv_objext+set}" = set; then | ||
2354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2355 | else | ||
2356 | cat >conftest.$ac_ext <<_ACEOF | ||
2357 | /* confdefs.h. */ | ||
2358 | _ACEOF | ||
2359 | cat confdefs.h >>conftest.$ac_ext | ||
2360 | cat >>conftest.$ac_ext <<_ACEOF | ||
2361 | /* end confdefs.h. */ | ||
2362 | |||
2363 | int | ||
2364 | main () | ||
2365 | { | ||
2366 | |||
2367 | ; | ||
2368 | return 0; | ||
2369 | } | ||
2370 | _ACEOF | ||
2371 | rm -f conftest.o conftest.obj | ||
2372 | if { (ac_try="$ac_compile" | ||
2373 | case "(($ac_try" in | ||
2374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2375 | *) ac_try_echo=$ac_try;; | ||
2376 | esac | ||
2377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2378 | (eval "$ac_compile") 2>&5 | ||
2379 | ac_status=$? | ||
2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2381 | (exit $ac_status); }; then | ||
2382 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2383 | test -f "$ac_file" || continue; | ||
2384 | case $ac_file in | ||
2385 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2386 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2387 | break;; | ||
2388 | esac | ||
2389 | done | ||
2390 | else | ||
2391 | echo "$as_me: failed program was:" >&5 | ||
2392 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2393 | |||
2394 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2395 | See \`config.log' for more details." >&5 | ||
2396 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2397 | See \`config.log' for more details." >&2;} | ||
2398 | { (exit 1); exit 1; }; } | ||
2399 | fi | ||
2400 | |||
2401 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2402 | fi | ||
2403 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2404 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
2405 | OBJEXT=$ac_cv_objext | ||
2406 | ac_objext=$OBJEXT | ||
2407 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2408 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
2409 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2411 | else | ||
2412 | cat >conftest.$ac_ext <<_ACEOF | ||
2413 | /* confdefs.h. */ | ||
2414 | _ACEOF | ||
2415 | cat confdefs.h >>conftest.$ac_ext | ||
2416 | cat >>conftest.$ac_ext <<_ACEOF | ||
2417 | /* end confdefs.h. */ | ||
2418 | |||
2419 | int | ||
2420 | main () | ||
2421 | { | ||
2422 | #ifndef __GNUC__ | ||
2423 | choke me | ||
2424 | #endif | ||
2425 | |||
2426 | ; | ||
2427 | return 0; | ||
2428 | } | ||
2429 | _ACEOF | ||
2430 | rm -f conftest.$ac_objext | ||
2431 | if { (ac_try="$ac_compile" | ||
2432 | case "(($ac_try" in | ||
2433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2434 | *) ac_try_echo=$ac_try;; | ||
2435 | esac | ||
2436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2437 | (eval "$ac_compile") 2>conftest.er1 | ||
2438 | ac_status=$? | ||
2439 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2440 | rm -f conftest.er1 | ||
2441 | cat conftest.err >&5 | ||
2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2443 | (exit $ac_status); } && { | ||
2444 | test -z "$ac_c_werror_flag" || | ||
2445 | test ! -s conftest.err | ||
2446 | } && test -s conftest.$ac_objext; then | ||
2447 | ac_compiler_gnu=yes | ||
2448 | else | ||
2449 | echo "$as_me: failed program was:" >&5 | ||
2450 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2451 | |||
2452 | ac_compiler_gnu=no | ||
2453 | fi | ||
2454 | |||
2455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2456 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2457 | |||
2458 | fi | ||
2459 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2460 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
2461 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2462 | ac_test_CFLAGS=${CFLAGS+set} | ||
2463 | ac_save_CFLAGS=$CFLAGS | ||
2464 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2465 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
2466 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2468 | else | ||
2469 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2470 | ac_c_werror_flag=yes | ||
2471 | ac_cv_prog_cc_g=no | ||
2472 | CFLAGS="-g" | ||
2473 | cat >conftest.$ac_ext <<_ACEOF | ||
2474 | /* confdefs.h. */ | ||
2475 | _ACEOF | ||
2476 | cat confdefs.h >>conftest.$ac_ext | ||
2477 | cat >>conftest.$ac_ext <<_ACEOF | ||
2478 | /* end confdefs.h. */ | ||
2479 | |||
2480 | int | ||
2481 | main () | ||
2482 | { | ||
2483 | |||
2484 | ; | ||
2485 | return 0; | ||
2486 | } | ||
2487 | _ACEOF | ||
2488 | rm -f conftest.$ac_objext | ||
2489 | if { (ac_try="$ac_compile" | ||
2490 | case "(($ac_try" in | ||
2491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2492 | *) ac_try_echo=$ac_try;; | ||
2493 | esac | ||
2494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2495 | (eval "$ac_compile") 2>conftest.er1 | ||
2496 | ac_status=$? | ||
2497 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2498 | rm -f conftest.er1 | ||
2499 | cat conftest.err >&5 | ||
2500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2501 | (exit $ac_status); } && { | ||
2502 | test -z "$ac_c_werror_flag" || | ||
2503 | test ! -s conftest.err | ||
2504 | } && test -s conftest.$ac_objext; then | ||
2505 | ac_cv_prog_cc_g=yes | ||
2506 | else | ||
2507 | echo "$as_me: failed program was:" >&5 | ||
2508 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2509 | |||
2510 | CFLAGS="" | ||
2511 | cat >conftest.$ac_ext <<_ACEOF | ||
2512 | /* confdefs.h. */ | ||
2513 | _ACEOF | ||
2514 | cat confdefs.h >>conftest.$ac_ext | ||
2515 | cat >>conftest.$ac_ext <<_ACEOF | ||
2516 | /* end confdefs.h. */ | ||
2517 | |||
2518 | int | ||
2519 | main () | ||
2520 | { | ||
2521 | |||
2522 | ; | ||
2523 | return 0; | ||
2524 | } | ||
2525 | _ACEOF | ||
2526 | rm -f conftest.$ac_objext | ||
2527 | if { (ac_try="$ac_compile" | ||
2528 | case "(($ac_try" in | ||
2529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2530 | *) ac_try_echo=$ac_try;; | ||
2531 | esac | ||
2532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2533 | (eval "$ac_compile") 2>conftest.er1 | ||
2534 | ac_status=$? | ||
2535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2536 | rm -f conftest.er1 | ||
2537 | cat conftest.err >&5 | ||
2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2539 | (exit $ac_status); } && { | ||
2540 | test -z "$ac_c_werror_flag" || | ||
2541 | test ! -s conftest.err | ||
2542 | } && test -s conftest.$ac_objext; then | ||
2543 | : | ||
2544 | else | ||
2545 | echo "$as_me: failed program was:" >&5 | ||
2546 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2547 | |||
2548 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2549 | CFLAGS="-g" | ||
2550 | cat >conftest.$ac_ext <<_ACEOF | ||
2551 | /* confdefs.h. */ | ||
2552 | _ACEOF | ||
2553 | cat confdefs.h >>conftest.$ac_ext | ||
2554 | cat >>conftest.$ac_ext <<_ACEOF | ||
2555 | /* end confdefs.h. */ | ||
2556 | |||
2557 | int | ||
2558 | main () | ||
2559 | { | ||
2560 | |||
2561 | ; | ||
2562 | return 0; | ||
2563 | } | ||
2564 | _ACEOF | ||
2565 | rm -f conftest.$ac_objext | ||
2566 | if { (ac_try="$ac_compile" | ||
2567 | case "(($ac_try" in | ||
2568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2569 | *) ac_try_echo=$ac_try;; | ||
2570 | esac | ||
2571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2572 | (eval "$ac_compile") 2>conftest.er1 | ||
2573 | ac_status=$? | ||
2574 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2575 | rm -f conftest.er1 | ||
2576 | cat conftest.err >&5 | ||
2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2578 | (exit $ac_status); } && { | ||
2579 | test -z "$ac_c_werror_flag" || | ||
2580 | test ! -s conftest.err | ||
2581 | } && test -s conftest.$ac_objext; then | ||
2582 | ac_cv_prog_cc_g=yes | ||
2583 | else | ||
2584 | echo "$as_me: failed program was:" >&5 | ||
2585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2586 | |||
2587 | |||
2588 | fi | ||
2589 | |||
2590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2591 | fi | ||
2592 | |||
2593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2594 | fi | ||
2595 | |||
2596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2597 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2598 | fi | ||
2599 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2600 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
2601 | if test "$ac_test_CFLAGS" = set; then | ||
2602 | CFLAGS=$ac_save_CFLAGS | ||
2603 | elif test $ac_cv_prog_cc_g = yes; then | ||
2604 | if test "$GCC" = yes; then | ||
2605 | CFLAGS="-g -O2" | ||
2606 | else | ||
2607 | CFLAGS="-g" | ||
2608 | fi | ||
2609 | else | ||
2610 | if test "$GCC" = yes; then | ||
2611 | CFLAGS="-O2" | ||
2612 | else | ||
2613 | CFLAGS= | ||
2614 | fi | ||
2615 | fi | ||
2616 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
2617 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
2618 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
2619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2620 | else | ||
2621 | ac_cv_prog_cc_c89=no | ||
2622 | ac_save_CC=$CC | ||
2623 | cat >conftest.$ac_ext <<_ACEOF | ||
2624 | /* confdefs.h. */ | ||
2625 | _ACEOF | ||
2626 | cat confdefs.h >>conftest.$ac_ext | ||
2627 | cat >>conftest.$ac_ext <<_ACEOF | ||
2628 | /* end confdefs.h. */ | ||
2629 | #include <stdarg.h> | ||
2630 | #include <stdio.h> | ||
2631 | #include <sys/types.h> | ||
2632 | #include <sys/stat.h> | ||
2633 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2634 | struct buf { int x; }; | ||
2635 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2636 | static char *e (p, i) | ||
2637 | char **p; | ||
2638 | int i; | ||
2639 | { | ||
2640 | return p[i]; | ||
2641 | } | ||
2642 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2643 | { | ||
2644 | char *s; | ||
2645 | va_list v; | ||
2646 | va_start (v,p); | ||
2647 | s = g (p, va_arg (v,int)); | ||
2648 | va_end (v); | ||
2649 | return s; | ||
2650 | } | ||
2651 | |||
2652 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2653 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2654 | These don't provoke an error unfortunately, instead are silently treated | ||
2655 | as 'x'. The following induces an error, until -std is added to get | ||
2656 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2657 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2658 | that's true only with -std. */ | ||
2659 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2660 | |||
2661 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
2662 | inside strings and character constants. */ | ||
2663 | #define FOO(x) 'x' | ||
2664 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
2665 | |||
2666 | int test (int i, double x); | ||
2667 | struct s1 {int (*f) (int a);}; | ||
2668 | struct s2 {int (*f) (double a);}; | ||
2669 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2670 | int argc; | ||
2671 | char **argv; | ||
2672 | int | ||
2673 | main () | ||
2674 | { | ||
2675 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2676 | ; | ||
2677 | return 0; | ||
2678 | } | ||
2679 | _ACEOF | ||
2680 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2681 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2682 | do | ||
2683 | CC="$ac_save_CC $ac_arg" | ||
2684 | rm -f conftest.$ac_objext | ||
2685 | if { (ac_try="$ac_compile" | ||
2686 | case "(($ac_try" in | ||
2687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2688 | *) ac_try_echo=$ac_try;; | ||
2689 | esac | ||
2690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2691 | (eval "$ac_compile") 2>conftest.er1 | ||
2692 | ac_status=$? | ||
2693 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2694 | rm -f conftest.er1 | ||
2695 | cat conftest.err >&5 | ||
2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2697 | (exit $ac_status); } && { | ||
2698 | test -z "$ac_c_werror_flag" || | ||
2699 | test ! -s conftest.err | ||
2700 | } && test -s conftest.$ac_objext; then | ||
2701 | ac_cv_prog_cc_c89=$ac_arg | ||
2702 | else | ||
2703 | echo "$as_me: failed program was:" >&5 | ||
2704 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2705 | |||
2706 | |||
2707 | fi | ||
2708 | |||
2709 | rm -f core conftest.err conftest.$ac_objext | ||
2710 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
2711 | done | ||
2712 | rm -f conftest.$ac_ext | ||
2713 | CC=$ac_save_CC | ||
2714 | |||
2715 | fi | ||
2716 | # AC_CACHE_VAL | ||
2717 | case "x$ac_cv_prog_cc_c89" in | ||
2718 | x) | ||
2719 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
2720 | echo "${ECHO_T}none needed" >&6; } ;; | ||
2721 | xno) | ||
2722 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
2723 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
2724 | *) | ||
2725 | CC="$CC $ac_cv_prog_cc_c89" | ||
2726 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
2727 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
2728 | esac | ||
2729 | |||
2730 | |||
2731 | ac_ext=c | ||
2732 | ac_cpp='$CPP $CPPFLAGS' | ||
2733 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2734 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2735 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2736 | |||
2737 | ac_aux_dir= | ||
2738 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2739 | if test -f "$ac_dir/install-sh"; then | ||
2740 | ac_aux_dir=$ac_dir | ||
2741 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2742 | break | ||
2743 | elif test -f "$ac_dir/install.sh"; then | ||
2744 | ac_aux_dir=$ac_dir | ||
2745 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2746 | break | ||
2747 | elif test -f "$ac_dir/shtool"; then | ||
2748 | ac_aux_dir=$ac_dir | ||
2749 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2750 | break | ||
2751 | fi | ||
2752 | done | ||
2753 | if test -z "$ac_aux_dir"; then | ||
2754 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
2755 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
2756 | { (exit 1); exit 1; }; } | ||
2757 | fi | ||
2758 | |||
2759 | # These three variables are undocumented and unsupported, | ||
2760 | # and are intended to be withdrawn in a future Autoconf release. | ||
2761 | # They can cause serious problems if a builder's source tree is in a directory | ||
2762 | # whose full name contains unusual characters. | ||
2763 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2764 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2765 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2766 | |||
2767 | |||
2768 | # Make sure we can run config.sub. | ||
2769 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2770 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
2771 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
2772 | { (exit 1); exit 1; }; } | ||
2773 | |||
2774 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
2775 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
2776 | if test "${ac_cv_build+set}" = set; then | ||
2777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2778 | else | ||
2779 | ac_build_alias=$build_alias | ||
2780 | test "x$ac_build_alias" = x && | ||
2781 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2782 | test "x$ac_build_alias" = x && | ||
2783 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2784 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2785 | { (exit 1); exit 1; }; } | ||
2786 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2787 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
2788 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
2789 | { (exit 1); exit 1; }; } | ||
2790 | |||
2791 | fi | ||
2792 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2793 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
2794 | case $ac_cv_build in | ||
2795 | *-*-*) ;; | ||
2796 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
2797 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
2798 | { (exit 1); exit 1; }; };; | ||
2799 | esac | ||
2800 | build=$ac_cv_build | ||
2801 | ac_save_IFS=$IFS; IFS='-' | ||
2802 | set x $ac_cv_build | ||
2803 | shift | ||
2804 | build_cpu=$1 | ||
2805 | build_vendor=$2 | ||
2806 | shift; shift | ||
2807 | # Remember, the first character of IFS is used to create $*, | ||
2808 | # except with old shells: | ||
2809 | build_os=$* | ||
2810 | IFS=$ac_save_IFS | ||
2811 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2812 | |||
2813 | |||
2814 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
2815 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
2816 | if test "${ac_cv_host+set}" = set; then | ||
2817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2818 | else | ||
2819 | if test "x$host_alias" = x; then | ||
2820 | ac_cv_host=$ac_cv_build | ||
2821 | else | ||
2822 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2823 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
2824 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
2825 | { (exit 1); exit 1; }; } | ||
2826 | fi | ||
2827 | |||
2828 | fi | ||
2829 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2830 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
2831 | case $ac_cv_host in | ||
2832 | *-*-*) ;; | ||
2833 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
2834 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
2835 | { (exit 1); exit 1; }; };; | ||
2836 | esac | ||
2837 | host=$ac_cv_host | ||
2838 | ac_save_IFS=$IFS; IFS='-' | ||
2839 | set x $ac_cv_host | ||
2840 | shift | ||
2841 | host_cpu=$1 | ||
2842 | host_vendor=$2 | ||
2843 | shift; shift | ||
2844 | # Remember, the first character of IFS is used to create $*, | ||
2845 | # except with old shells: | ||
2846 | host_os=$* | ||
2847 | IFS=$ac_save_IFS | ||
2848 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2849 | |||
2850 | |||
2851 | |||
2852 | ac_ext=c | ||
2853 | ac_cpp='$CPP $CPPFLAGS' | ||
2854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2857 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2858 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
2859 | # On Suns, sometimes $CPP names a directory. | ||
2860 | if test -n "$CPP" && test -d "$CPP"; then | ||
2861 | CPP= | ||
2862 | fi | ||
2863 | if test -z "$CPP"; then | ||
2864 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2866 | else | ||
2867 | # Double quotes because CPP needs to be expanded | ||
2868 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2869 | do | ||
2870 | ac_preproc_ok=false | ||
2871 | for ac_c_preproc_warn_flag in '' yes | ||
2872 | do | ||
2873 | # Use a header file that comes with gcc, so configuring glibc | ||
2874 | # with a fresh cross-compiler works. | ||
2875 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2876 | # <limits.h> exists even on freestanding compilers. | ||
2877 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2878 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2879 | cat >conftest.$ac_ext <<_ACEOF | ||
2880 | /* confdefs.h. */ | ||
2881 | _ACEOF | ||
2882 | cat confdefs.h >>conftest.$ac_ext | ||
2883 | cat >>conftest.$ac_ext <<_ACEOF | ||
2884 | /* end confdefs.h. */ | ||
2885 | #ifdef __STDC__ | ||
2886 | # include <limits.h> | ||
2887 | #else | ||
2888 | # include <assert.h> | ||
2889 | #endif | ||
2890 | Syntax error | ||
2891 | _ACEOF | ||
2892 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2893 | case "(($ac_try" in | ||
2894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2895 | *) ac_try_echo=$ac_try;; | ||
2896 | esac | ||
2897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2898 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2899 | ac_status=$? | ||
2900 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2901 | rm -f conftest.er1 | ||
2902 | cat conftest.err >&5 | ||
2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2904 | (exit $ac_status); } >/dev/null && { | ||
2905 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2906 | test ! -s conftest.err | ||
2907 | }; then | ||
2908 | : | ||
2909 | else | ||
2910 | echo "$as_me: failed program was:" >&5 | ||
2911 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2912 | |||
2913 | # Broken: fails on valid input. | ||
2914 | continue | ||
2915 | fi | ||
2916 | |||
2917 | rm -f conftest.err conftest.$ac_ext | ||
2918 | |||
2919 | # OK, works on sane cases. Now check whether nonexistent headers | ||
2920 | # can be detected and how. | ||
2921 | cat >conftest.$ac_ext <<_ACEOF | ||
2922 | /* confdefs.h. */ | ||
2923 | _ACEOF | ||
2924 | cat confdefs.h >>conftest.$ac_ext | ||
2925 | cat >>conftest.$ac_ext <<_ACEOF | ||
2926 | /* end confdefs.h. */ | ||
2927 | #include <ac_nonexistent.h> | ||
2928 | _ACEOF | ||
2929 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2930 | case "(($ac_try" in | ||
2931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2932 | *) ac_try_echo=$ac_try;; | ||
2933 | esac | ||
2934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2935 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2936 | ac_status=$? | ||
2937 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2938 | rm -f conftest.er1 | ||
2939 | cat conftest.err >&5 | ||
2940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2941 | (exit $ac_status); } >/dev/null && { | ||
2942 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2943 | test ! -s conftest.err | ||
2944 | }; then | ||
2945 | # Broken: success on invalid input. | ||
2946 | continue | ||
2947 | else | ||
2948 | echo "$as_me: failed program was:" >&5 | ||
2949 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2950 | |||
2951 | # Passes both tests. | ||
2952 | ac_preproc_ok=: | ||
2953 | break | ||
2954 | fi | ||
2955 | |||
2956 | rm -f conftest.err conftest.$ac_ext | ||
2957 | |||
2958 | done | ||
2959 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2960 | rm -f conftest.err conftest.$ac_ext | ||
2961 | if $ac_preproc_ok; then | ||
2962 | break | ||
2963 | fi | ||
2964 | |||
2965 | done | ||
2966 | ac_cv_prog_CPP=$CPP | ||
2967 | |||
2968 | fi | ||
2969 | CPP=$ac_cv_prog_CPP | ||
2970 | else | ||
2971 | ac_cv_prog_CPP=$CPP | ||
2972 | fi | ||
2973 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2974 | echo "${ECHO_T}$CPP" >&6; } | ||
2975 | ac_preproc_ok=false | ||
2976 | for ac_c_preproc_warn_flag in '' yes | ||
2977 | do | ||
2978 | # Use a header file that comes with gcc, so configuring glibc | ||
2979 | # with a fresh cross-compiler works. | ||
2980 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2981 | # <limits.h> exists even on freestanding compilers. | ||
2982 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2983 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2984 | cat >conftest.$ac_ext <<_ACEOF | ||
2985 | /* confdefs.h. */ | ||
2986 | _ACEOF | ||
2987 | cat confdefs.h >>conftest.$ac_ext | ||
2988 | cat >>conftest.$ac_ext <<_ACEOF | ||
2989 | /* end confdefs.h. */ | ||
2990 | #ifdef __STDC__ | ||
2991 | # include <limits.h> | ||
2992 | #else | ||
2993 | # include <assert.h> | ||
2994 | #endif | ||
2995 | Syntax error | ||
2996 | _ACEOF | ||
2997 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2998 | case "(($ac_try" in | ||
2999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3000 | *) ac_try_echo=$ac_try;; | ||
3001 | esac | ||
3002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3003 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3004 | ac_status=$? | ||
3005 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3006 | rm -f conftest.er1 | ||
3007 | cat conftest.err >&5 | ||
3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3009 | (exit $ac_status); } >/dev/null && { | ||
3010 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3011 | test ! -s conftest.err | ||
3012 | }; then | ||
3013 | : | ||
3014 | else | ||
3015 | echo "$as_me: failed program was:" >&5 | ||
3016 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3017 | |||
3018 | # Broken: fails on valid input. | ||
3019 | continue | ||
3020 | fi | ||
3021 | |||
3022 | rm -f conftest.err conftest.$ac_ext | ||
3023 | |||
3024 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3025 | # can be detected and how. | ||
3026 | cat >conftest.$ac_ext <<_ACEOF | ||
3027 | /* confdefs.h. */ | ||
3028 | _ACEOF | ||
3029 | cat confdefs.h >>conftest.$ac_ext | ||
3030 | cat >>conftest.$ac_ext <<_ACEOF | ||
3031 | /* end confdefs.h. */ | ||
3032 | #include <ac_nonexistent.h> | ||
3033 | _ACEOF | ||
3034 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3035 | case "(($ac_try" in | ||
3036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3037 | *) ac_try_echo=$ac_try;; | ||
3038 | esac | ||
3039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3040 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3041 | ac_status=$? | ||
3042 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3043 | rm -f conftest.er1 | ||
3044 | cat conftest.err >&5 | ||
3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3046 | (exit $ac_status); } >/dev/null && { | ||
3047 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3048 | test ! -s conftest.err | ||
3049 | }; then | ||
3050 | # Broken: success on invalid input. | ||
3051 | continue | ||
3052 | else | ||
3053 | echo "$as_me: failed program was:" >&5 | ||
3054 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3055 | |||
3056 | # Passes both tests. | ||
3057 | ac_preproc_ok=: | ||
3058 | break | ||
3059 | fi | ||
3060 | |||
3061 | rm -f conftest.err conftest.$ac_ext | ||
3062 | |||
3063 | done | ||
3064 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3065 | rm -f conftest.err conftest.$ac_ext | ||
3066 | if $ac_preproc_ok; then | ||
3067 | : | ||
3068 | else | ||
3069 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3070 | See \`config.log' for more details." >&5 | ||
3071 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3072 | See \`config.log' for more details." >&2;} | ||
3073 | { (exit 1); exit 1; }; } | ||
3074 | fi | ||
3075 | |||
3076 | ac_ext=c | ||
3077 | ac_cpp='$CPP $CPPFLAGS' | ||
3078 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3079 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3080 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3081 | |||
3082 | |||
3083 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3084 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3085 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3087 | else | ||
3088 | # Extract the first word of "grep ggrep" to use in msg output | ||
3089 | if test -z "$GREP"; then | ||
3090 | set dummy grep ggrep; ac_prog_name=$2 | ||
3091 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3093 | else | ||
3094 | ac_path_GREP_found=false | ||
3095 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3097 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3098 | do | ||
3099 | IFS=$as_save_IFS | ||
3100 | test -z "$as_dir" && as_dir=. | ||
3101 | for ac_prog in grep ggrep; do | ||
3102 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3103 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3104 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3105 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3106 | # Check for GNU $ac_path_GREP | ||
3107 | case `"$ac_path_GREP" --version 2>&1` in | ||
3108 | *GNU*) | ||
3109 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3110 | *) | ||
3111 | ac_count=0 | ||
3112 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3113 | while : | ||
3114 | do | ||
3115 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3116 | mv "conftest.tmp" "conftest.in" | ||
3117 | cp "conftest.in" "conftest.nl" | ||
3118 | echo 'GREP' >> "conftest.nl" | ||
3119 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3120 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3121 | ac_count=`expr $ac_count + 1` | ||
3122 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3123 | # Best one so far, save it but keep looking for a better one | ||
3124 | ac_cv_path_GREP="$ac_path_GREP" | ||
3125 | ac_path_GREP_max=$ac_count | ||
3126 | fi | ||
3127 | # 10*(2^10) chars as input seems more than enough | ||
3128 | test $ac_count -gt 10 && break | ||
3129 | done | ||
3130 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3131 | esac | ||
3132 | |||
3133 | |||
3134 | $ac_path_GREP_found && break 3 | ||
3135 | done | ||
3136 | done | ||
3137 | |||
3138 | done | ||
3139 | IFS=$as_save_IFS | ||
3140 | |||
3141 | |||
3142 | fi | ||
3143 | |||
3144 | GREP="$ac_cv_path_GREP" | ||
3145 | if test -z "$GREP"; then | ||
3146 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3147 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3148 | { (exit 1); exit 1; }; } | ||
3149 | fi | ||
3150 | |||
3151 | else | ||
3152 | ac_cv_path_GREP=$GREP | ||
3153 | fi | ||
3154 | |||
3155 | |||
3156 | fi | ||
3157 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3158 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3159 | GREP="$ac_cv_path_GREP" | ||
3160 | |||
3161 | |||
3162 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3163 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3164 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3166 | else | ||
3167 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3168 | then ac_cv_path_EGREP="$GREP -E" | ||
3169 | else | ||
3170 | # Extract the first word of "egrep" to use in msg output | ||
3171 | if test -z "$EGREP"; then | ||
3172 | set dummy egrep; ac_prog_name=$2 | ||
3173 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3175 | else | ||
3176 | ac_path_EGREP_found=false | ||
3177 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3179 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3180 | do | ||
3181 | IFS=$as_save_IFS | ||
3182 | test -z "$as_dir" && as_dir=. | ||
3183 | for ac_prog in egrep; do | ||
3184 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3185 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3186 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3187 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3188 | # Check for GNU $ac_path_EGREP | ||
3189 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3190 | *GNU*) | ||
3191 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3192 | *) | ||
3193 | ac_count=0 | ||
3194 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3195 | while : | ||
3196 | do | ||
3197 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3198 | mv "conftest.tmp" "conftest.in" | ||
3199 | cp "conftest.in" "conftest.nl" | ||
3200 | echo 'EGREP' >> "conftest.nl" | ||
3201 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3202 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3203 | ac_count=`expr $ac_count + 1` | ||
3204 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3205 | # Best one so far, save it but keep looking for a better one | ||
3206 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3207 | ac_path_EGREP_max=$ac_count | ||
3208 | fi | ||
3209 | # 10*(2^10) chars as input seems more than enough | ||
3210 | test $ac_count -gt 10 && break | ||
3211 | done | ||
3212 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3213 | esac | ||
3214 | |||
3215 | |||
3216 | $ac_path_EGREP_found && break 3 | ||
3217 | done | ||
3218 | done | ||
3219 | |||
3220 | done | ||
3221 | IFS=$as_save_IFS | ||
3222 | |||
3223 | |||
3224 | fi | ||
3225 | |||
3226 | EGREP="$ac_cv_path_EGREP" | ||
3227 | if test -z "$EGREP"; then | ||
3228 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3229 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3230 | { (exit 1); exit 1; }; } | ||
3231 | fi | ||
3232 | |||
3233 | else | ||
3234 | ac_cv_path_EGREP=$EGREP | ||
3235 | fi | ||
3236 | |||
3237 | |||
3238 | fi | ||
3239 | fi | ||
3240 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3241 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3242 | EGREP="$ac_cv_path_EGREP" | ||
3243 | |||
3244 | |||
3245 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3246 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3247 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3249 | else | ||
3250 | cat >conftest.$ac_ext <<_ACEOF | ||
3251 | /* confdefs.h. */ | ||
3252 | _ACEOF | ||
3253 | cat confdefs.h >>conftest.$ac_ext | ||
3254 | cat >>conftest.$ac_ext <<_ACEOF | ||
3255 | /* end confdefs.h. */ | ||
3256 | #include <stdlib.h> | ||
3257 | #include <stdarg.h> | ||
3258 | #include <string.h> | ||
3259 | #include <float.h> | ||
3260 | |||
3261 | int | ||
3262 | main () | ||
3263 | { | ||
3264 | |||
3265 | ; | ||
3266 | return 0; | ||
3267 | } | ||
3268 | _ACEOF | ||
3269 | rm -f conftest.$ac_objext | ||
3270 | if { (ac_try="$ac_compile" | ||
3271 | case "(($ac_try" in | ||
3272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3273 | *) ac_try_echo=$ac_try;; | ||
3274 | esac | ||
3275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3276 | (eval "$ac_compile") 2>conftest.er1 | ||
3277 | ac_status=$? | ||
3278 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3279 | rm -f conftest.er1 | ||
3280 | cat conftest.err >&5 | ||
3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3282 | (exit $ac_status); } && { | ||
3283 | test -z "$ac_c_werror_flag" || | ||
3284 | test ! -s conftest.err | ||
3285 | } && test -s conftest.$ac_objext; then | ||
3286 | ac_cv_header_stdc=yes | ||
3287 | else | ||
3288 | echo "$as_me: failed program was:" >&5 | ||
3289 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3290 | |||
3291 | ac_cv_header_stdc=no | ||
3292 | fi | ||
3293 | |||
3294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3295 | |||
3296 | if test $ac_cv_header_stdc = yes; then | ||
3297 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3298 | cat >conftest.$ac_ext <<_ACEOF | ||
3299 | /* confdefs.h. */ | ||
3300 | _ACEOF | ||
3301 | cat confdefs.h >>conftest.$ac_ext | ||
3302 | cat >>conftest.$ac_ext <<_ACEOF | ||
3303 | /* end confdefs.h. */ | ||
3304 | #include <string.h> | ||
3305 | |||
3306 | _ACEOF | ||
3307 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3308 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3309 | : | ||
3310 | else | ||
3311 | ac_cv_header_stdc=no | ||
3312 | fi | ||
3313 | rm -f conftest* | ||
3314 | |||
3315 | fi | ||
3316 | |||
3317 | if test $ac_cv_header_stdc = yes; then | ||
3318 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3319 | cat >conftest.$ac_ext <<_ACEOF | ||
3320 | /* confdefs.h. */ | ||
3321 | _ACEOF | ||
3322 | cat confdefs.h >>conftest.$ac_ext | ||
3323 | cat >>conftest.$ac_ext <<_ACEOF | ||
3324 | /* end confdefs.h. */ | ||
3325 | #include <stdlib.h> | ||
3326 | |||
3327 | _ACEOF | ||
3328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3329 | $EGREP "free" >/dev/null 2>&1; then | ||
3330 | : | ||
3331 | else | ||
3332 | ac_cv_header_stdc=no | ||
3333 | fi | ||
3334 | rm -f conftest* | ||
3335 | |||
3336 | fi | ||
3337 | |||
3338 | if test $ac_cv_header_stdc = yes; then | ||
3339 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3340 | if test "$cross_compiling" = yes; then | ||
3341 | : | ||
3342 | else | ||
3343 | cat >conftest.$ac_ext <<_ACEOF | ||
3344 | /* confdefs.h. */ | ||
3345 | _ACEOF | ||
3346 | cat confdefs.h >>conftest.$ac_ext | ||
3347 | cat >>conftest.$ac_ext <<_ACEOF | ||
3348 | /* end confdefs.h. */ | ||
3349 | #include <ctype.h> | ||
3350 | #include <stdlib.h> | ||
3351 | #if ((' ' & 0x0FF) == 0x020) | ||
3352 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3353 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3354 | #else | ||
3355 | # define ISLOWER(c) \ | ||
3356 | (('a' <= (c) && (c) <= 'i') \ | ||
3357 | || ('j' <= (c) && (c) <= 'r') \ | ||
3358 | || ('s' <= (c) && (c) <= 'z')) | ||
3359 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3360 | #endif | ||
3361 | |||
3362 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3363 | int | ||
3364 | main () | ||
3365 | { | ||
3366 | int i; | ||
3367 | for (i = 0; i < 256; i++) | ||
3368 | if (XOR (islower (i), ISLOWER (i)) | ||
3369 | || toupper (i) != TOUPPER (i)) | ||
3370 | return 2; | ||
3371 | return 0; | ||
3372 | } | ||
3373 | _ACEOF | ||
3374 | rm -f conftest$ac_exeext | ||
3375 | if { (ac_try="$ac_link" | ||
3376 | case "(($ac_try" in | ||
3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3378 | *) ac_try_echo=$ac_try;; | ||
3379 | esac | ||
3380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3381 | (eval "$ac_link") 2>&5 | ||
3382 | ac_status=$? | ||
3383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3385 | { (case "(($ac_try" in | ||
3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3387 | *) ac_try_echo=$ac_try;; | ||
3388 | esac | ||
3389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3390 | (eval "$ac_try") 2>&5 | ||
3391 | ac_status=$? | ||
3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3393 | (exit $ac_status); }; }; then | ||
3394 | : | ||
3395 | else | ||
3396 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3397 | echo "$as_me: failed program was:" >&5 | ||
3398 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3399 | |||
3400 | ( exit $ac_status ) | ||
3401 | ac_cv_header_stdc=no | ||
3402 | fi | ||
3403 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3404 | fi | ||
3405 | |||
3406 | |||
3407 | fi | ||
3408 | fi | ||
3409 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3410 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
3411 | if test $ac_cv_header_stdc = yes; then | ||
3412 | |||
3413 | cat >>confdefs.h <<\_ACEOF | ||
3414 | #define STDC_HEADERS 1 | ||
3415 | _ACEOF | ||
3416 | |||
3417 | fi | ||
3418 | |||
3419 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3420 | |||
3421 | |||
3422 | |||
3423 | |||
3424 | |||
3425 | |||
3426 | |||
3427 | |||
3428 | |||
3429 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3430 | inttypes.h stdint.h unistd.h | ||
3431 | do | ||
3432 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3433 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3434 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
3435 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3437 | else | ||
3438 | cat >conftest.$ac_ext <<_ACEOF | ||
3439 | /* confdefs.h. */ | ||
3440 | _ACEOF | ||
3441 | cat confdefs.h >>conftest.$ac_ext | ||
3442 | cat >>conftest.$ac_ext <<_ACEOF | ||
3443 | /* end confdefs.h. */ | ||
3444 | $ac_includes_default | ||
3445 | |||
3446 | #include <$ac_header> | ||
3447 | _ACEOF | ||
3448 | rm -f conftest.$ac_objext | ||
3449 | if { (ac_try="$ac_compile" | ||
3450 | case "(($ac_try" in | ||
3451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3452 | *) ac_try_echo=$ac_try;; | ||
3453 | esac | ||
3454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3455 | (eval "$ac_compile") 2>conftest.er1 | ||
3456 | ac_status=$? | ||
3457 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3458 | rm -f conftest.er1 | ||
3459 | cat conftest.err >&5 | ||
3460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3461 | (exit $ac_status); } && { | ||
3462 | test -z "$ac_c_werror_flag" || | ||
3463 | test ! -s conftest.err | ||
3464 | } && test -s conftest.$ac_objext; then | ||
3465 | eval "$as_ac_Header=yes" | ||
3466 | else | ||
3467 | echo "$as_me: failed program was:" >&5 | ||
3468 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3469 | |||
3470 | eval "$as_ac_Header=no" | ||
3471 | fi | ||
3472 | |||
3473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3474 | fi | ||
3475 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
3476 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
3477 | echo "${ECHO_T}$ac_res" >&6; } | ||
3478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
3479 | cat >>confdefs.h <<_ACEOF | ||
3480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3481 | _ACEOF | ||
3482 | |||
3483 | fi | ||
3484 | |||
3485 | done | ||
3486 | |||
3487 | |||
3488 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
3489 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | ||
3490 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
3491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3492 | else | ||
3493 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3494 | cat >conftest.$ac_ext <<_ACEOF | ||
3495 | /* confdefs.h. */ | ||
3496 | _ACEOF | ||
3497 | cat confdefs.h >>conftest.$ac_ext | ||
3498 | cat >>conftest.$ac_ext <<_ACEOF | ||
3499 | /* end confdefs.h. */ | ||
3500 | #include <sys/types.h> | ||
3501 | #include <sys/param.h> | ||
3502 | |||
3503 | int | ||
3504 | main () | ||
3505 | { | ||
3506 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | ||
3507 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | ||
3508 | bogus endian macros | ||
3509 | #endif | ||
3510 | |||
3511 | ; | ||
3512 | return 0; | ||
3513 | } | ||
3514 | _ACEOF | ||
3515 | rm -f conftest.$ac_objext | ||
3516 | if { (ac_try="$ac_compile" | ||
3517 | case "(($ac_try" in | ||
3518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3519 | *) ac_try_echo=$ac_try;; | ||
3520 | esac | ||
3521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3522 | (eval "$ac_compile") 2>conftest.er1 | ||
3523 | ac_status=$? | ||
3524 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3525 | rm -f conftest.er1 | ||
3526 | cat conftest.err >&5 | ||
3527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3528 | (exit $ac_status); } && { | ||
3529 | test -z "$ac_c_werror_flag" || | ||
3530 | test ! -s conftest.err | ||
3531 | } && test -s conftest.$ac_objext; then | ||
3532 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3533 | cat >conftest.$ac_ext <<_ACEOF | ||
3534 | /* confdefs.h. */ | ||
3535 | _ACEOF | ||
3536 | cat confdefs.h >>conftest.$ac_ext | ||
3537 | cat >>conftest.$ac_ext <<_ACEOF | ||
3538 | /* end confdefs.h. */ | ||
3539 | #include <sys/types.h> | ||
3540 | #include <sys/param.h> | ||
3541 | |||
3542 | int | ||
3543 | main () | ||
3544 | { | ||
3545 | #if BYTE_ORDER != BIG_ENDIAN | ||
3546 | not big endian | ||
3547 | #endif | ||
3548 | |||
3549 | ; | ||
3550 | return 0; | ||
3551 | } | ||
3552 | _ACEOF | ||
3553 | rm -f conftest.$ac_objext | ||
3554 | if { (ac_try="$ac_compile" | ||
3555 | case "(($ac_try" in | ||
3556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3557 | *) ac_try_echo=$ac_try;; | ||
3558 | esac | ||
3559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3560 | (eval "$ac_compile") 2>conftest.er1 | ||
3561 | ac_status=$? | ||
3562 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3563 | rm -f conftest.er1 | ||
3564 | cat conftest.err >&5 | ||
3565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3566 | (exit $ac_status); } && { | ||
3567 | test -z "$ac_c_werror_flag" || | ||
3568 | test ! -s conftest.err | ||
3569 | } && test -s conftest.$ac_objext; then | ||
3570 | ac_cv_c_bigendian=yes | ||
3571 | else | ||
3572 | echo "$as_me: failed program was:" >&5 | ||
3573 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3574 | |||
3575 | ac_cv_c_bigendian=no | ||
3576 | fi | ||
3577 | |||
3578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3579 | else | ||
3580 | echo "$as_me: failed program was:" >&5 | ||
3581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3582 | |||
3583 | # It does not; compile a test program. | ||
3584 | if test "$cross_compiling" = yes; then | ||
3585 | # try to guess the endianness by grepping values into an object file | ||
3586 | ac_cv_c_bigendian=unknown | ||
3587 | cat >conftest.$ac_ext <<_ACEOF | ||
3588 | /* confdefs.h. */ | ||
3589 | _ACEOF | ||
3590 | cat confdefs.h >>conftest.$ac_ext | ||
3591 | cat >>conftest.$ac_ext <<_ACEOF | ||
3592 | /* end confdefs.h. */ | ||
3593 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
3594 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
3595 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
3596 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
3597 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
3598 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
3599 | int | ||
3600 | main () | ||
3601 | { | ||
3602 | _ascii (); _ebcdic (); | ||
3603 | ; | ||
3604 | return 0; | ||
3605 | } | ||
3606 | _ACEOF | ||
3607 | rm -f conftest.$ac_objext | ||
3608 | if { (ac_try="$ac_compile" | ||
3609 | case "(($ac_try" in | ||
3610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3611 | *) ac_try_echo=$ac_try;; | ||
3612 | esac | ||
3613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3614 | (eval "$ac_compile") 2>conftest.er1 | ||
3615 | ac_status=$? | ||
3616 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3617 | rm -f conftest.er1 | ||
3618 | cat conftest.err >&5 | ||
3619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3620 | (exit $ac_status); } && { | ||
3621 | test -z "$ac_c_werror_flag" || | ||
3622 | test ! -s conftest.err | ||
3623 | } && test -s conftest.$ac_objext; then | ||
3624 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
3625 | ac_cv_c_bigendian=yes | ||
3626 | fi | ||
3627 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
3628 | if test "$ac_cv_c_bigendian" = unknown; then | ||
3629 | ac_cv_c_bigendian=no | ||
3630 | else | ||
3631 | # finding both strings is unlikely to happen, but who knows? | ||
3632 | ac_cv_c_bigendian=unknown | ||
3633 | fi | ||
3634 | fi | ||
3635 | else | ||
3636 | echo "$as_me: failed program was:" >&5 | ||
3637 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3638 | |||
3639 | |||
3640 | fi | ||
3641 | |||
3642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3643 | else | ||
3644 | cat >conftest.$ac_ext <<_ACEOF | ||
3645 | /* confdefs.h. */ | ||
3646 | _ACEOF | ||
3647 | cat confdefs.h >>conftest.$ac_ext | ||
3648 | cat >>conftest.$ac_ext <<_ACEOF | ||
3649 | /* end confdefs.h. */ | ||
3650 | $ac_includes_default | ||
3651 | int | ||
3652 | main () | ||
3653 | { | ||
3654 | |||
3655 | /* Are we little or big endian? From Harbison&Steele. */ | ||
3656 | union | ||
3657 | { | ||
3658 | long int l; | ||
3659 | char c[sizeof (long int)]; | ||
3660 | } u; | ||
3661 | u.l = 1; | ||
3662 | return u.c[sizeof (long int) - 1] == 1; | ||
3663 | |||
3664 | ; | ||
3665 | return 0; | ||
3666 | } | ||
3667 | _ACEOF | ||
3668 | rm -f conftest$ac_exeext | ||
3669 | if { (ac_try="$ac_link" | ||
3670 | case "(($ac_try" in | ||
3671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3672 | *) ac_try_echo=$ac_try;; | ||
3673 | esac | ||
3674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3675 | (eval "$ac_link") 2>&5 | ||
3676 | ac_status=$? | ||
3677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3678 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3679 | { (case "(($ac_try" in | ||
3680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3681 | *) ac_try_echo=$ac_try;; | ||
3682 | esac | ||
3683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3684 | (eval "$ac_try") 2>&5 | ||
3685 | ac_status=$? | ||
3686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3687 | (exit $ac_status); }; }; then | ||
3688 | ac_cv_c_bigendian=no | ||
3689 | else | ||
3690 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3691 | echo "$as_me: failed program was:" >&5 | ||
3692 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3693 | |||
3694 | ( exit $ac_status ) | ||
3695 | ac_cv_c_bigendian=yes | ||
3696 | fi | ||
3697 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3698 | fi | ||
3699 | |||
3700 | |||
3701 | fi | ||
3702 | |||
3703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3704 | fi | ||
3705 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
3706 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | ||
3707 | case $ac_cv_c_bigendian in | ||
3708 | yes) | ||
3709 | |||
3710 | cat >>confdefs.h <<\_ACEOF | ||
3711 | #define WORDS_BIGENDIAN 1 | ||
3712 | _ACEOF | ||
3713 | ;; | ||
3714 | no) | ||
3715 | ;; | ||
3716 | *) | ||
3717 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
3718 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
3719 | echo "$as_me: error: unknown endianness | ||
3720 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
3721 | { (exit 1); exit 1; }; } ;; | ||
3722 | esac | ||
3723 | |||
3724 | |||
3725 | # Checks for programs. | ||
3726 | for ac_prog in gawk mawk nawk awk | ||
3727 | do | ||
3728 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3729 | set dummy $ac_prog; ac_word=$2 | ||
3730 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3732 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
3733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3734 | else | ||
3735 | if test -n "$AWK"; then | ||
3736 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3737 | else | ||
3738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3739 | for as_dir in $PATH | ||
3740 | do | ||
3741 | IFS=$as_save_IFS | ||
3742 | test -z "$as_dir" && as_dir=. | ||
3743 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3745 | ac_cv_prog_AWK="$ac_prog" | ||
3746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3747 | break 2 | ||
3748 | fi | ||
3749 | done | ||
3750 | done | ||
3751 | IFS=$as_save_IFS | ||
3752 | |||
3753 | fi | ||
3754 | fi | ||
3755 | AWK=$ac_cv_prog_AWK | ||
3756 | if test -n "$AWK"; then | ||
3757 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
3758 | echo "${ECHO_T}$AWK" >&6; } | ||
3759 | else | ||
3760 | { echo "$as_me:$LINENO: result: no" >&5 | ||
3761 | echo "${ECHO_T}no" >&6; } | ||
3762 | fi | ||
3763 | |||
3764 | |||
3765 | test -n "$AWK" && break | ||
3766 | done | ||
3767 | |||
3768 | ac_ext=c | ||
3769 | ac_cpp='$CPP $CPPFLAGS' | ||
3770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3773 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3774 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3775 | # On Suns, sometimes $CPP names a directory. | ||
3776 | if test -n "$CPP" && test -d "$CPP"; then | ||
3777 | CPP= | ||
3778 | fi | ||
3779 | if test -z "$CPP"; then | ||
3780 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3782 | else | ||
3783 | # Double quotes because CPP needs to be expanded | ||
3784 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3785 | do | ||
3786 | ac_preproc_ok=false | ||
3787 | for ac_c_preproc_warn_flag in '' yes | ||
3788 | do | ||
3789 | # Use a header file that comes with gcc, so configuring glibc | ||
3790 | # with a fresh cross-compiler works. | ||
3791 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3792 | # <limits.h> exists even on freestanding compilers. | ||
3793 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3794 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3795 | cat >conftest.$ac_ext <<_ACEOF | ||
3796 | /* confdefs.h. */ | ||
3797 | _ACEOF | ||
3798 | cat confdefs.h >>conftest.$ac_ext | ||
3799 | cat >>conftest.$ac_ext <<_ACEOF | ||
3800 | /* end confdefs.h. */ | ||
3801 | #ifdef __STDC__ | ||
3802 | # include <limits.h> | ||
3803 | #else | ||
3804 | # include <assert.h> | ||
3805 | #endif | ||
3806 | Syntax error | ||
3807 | _ACEOF | ||
3808 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3809 | case "(($ac_try" in | ||
3810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3811 | *) ac_try_echo=$ac_try;; | ||
3812 | esac | ||
3813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3814 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3815 | ac_status=$? | ||
3816 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3817 | rm -f conftest.er1 | ||
3818 | cat conftest.err >&5 | ||
3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3820 | (exit $ac_status); } >/dev/null && { | ||
3821 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3822 | test ! -s conftest.err | ||
3823 | }; then | ||
3824 | : | ||
3825 | else | ||
3826 | echo "$as_me: failed program was:" >&5 | ||
3827 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3828 | |||
3829 | # Broken: fails on valid input. | ||
3830 | continue | ||
3831 | fi | ||
3832 | |||
3833 | rm -f conftest.err conftest.$ac_ext | ||
3834 | |||
3835 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3836 | # can be detected and how. | ||
3837 | cat >conftest.$ac_ext <<_ACEOF | ||
3838 | /* confdefs.h. */ | ||
3839 | _ACEOF | ||
3840 | cat confdefs.h >>conftest.$ac_ext | ||
3841 | cat >>conftest.$ac_ext <<_ACEOF | ||
3842 | /* end confdefs.h. */ | ||
3843 | #include <ac_nonexistent.h> | ||
3844 | _ACEOF | ||
3845 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3846 | case "(($ac_try" in | ||
3847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3848 | *) ac_try_echo=$ac_try;; | ||
3849 | esac | ||
3850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3851 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3852 | ac_status=$? | ||
3853 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3854 | rm -f conftest.er1 | ||
3855 | cat conftest.err >&5 | ||
3856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3857 | (exit $ac_status); } >/dev/null && { | ||
3858 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3859 | test ! -s conftest.err | ||
3860 | }; then | ||
3861 | # Broken: success on invalid input. | ||
3862 | continue | ||
3863 | else | ||
3864 | echo "$as_me: failed program was:" >&5 | ||
3865 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3866 | |||
3867 | # Passes both tests. | ||
3868 | ac_preproc_ok=: | ||
3869 | break | ||
3870 | fi | ||
3871 | |||
3872 | rm -f conftest.err conftest.$ac_ext | ||
3873 | |||
3874 | done | ||
3875 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3876 | rm -f conftest.err conftest.$ac_ext | ||
3877 | if $ac_preproc_ok; then | ||
3878 | break | ||
3879 | fi | ||
3880 | |||
3881 | done | ||
3882 | ac_cv_prog_CPP=$CPP | ||
3883 | |||
3884 | fi | ||
3885 | CPP=$ac_cv_prog_CPP | ||
3886 | else | ||
3887 | ac_cv_prog_CPP=$CPP | ||
3888 | fi | ||
3889 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3890 | echo "${ECHO_T}$CPP" >&6; } | ||
3891 | ac_preproc_ok=false | ||
3892 | for ac_c_preproc_warn_flag in '' yes | ||
3893 | do | ||
3894 | # Use a header file that comes with gcc, so configuring glibc | ||
3895 | # with a fresh cross-compiler works. | ||
3896 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3897 | # <limits.h> exists even on freestanding compilers. | ||
3898 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3899 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3900 | cat >conftest.$ac_ext <<_ACEOF | ||
3901 | /* confdefs.h. */ | ||
3902 | _ACEOF | ||
3903 | cat confdefs.h >>conftest.$ac_ext | ||
3904 | cat >>conftest.$ac_ext <<_ACEOF | ||
3905 | /* end confdefs.h. */ | ||
3906 | #ifdef __STDC__ | ||
3907 | # include <limits.h> | ||
3908 | #else | ||
3909 | # include <assert.h> | ||
3910 | #endif | ||
3911 | Syntax error | ||
3912 | _ACEOF | ||
3913 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3914 | case "(($ac_try" in | ||
3915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3916 | *) ac_try_echo=$ac_try;; | ||
3917 | esac | ||
3918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3919 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3920 | ac_status=$? | ||
3921 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3922 | rm -f conftest.er1 | ||
3923 | cat conftest.err >&5 | ||
3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3925 | (exit $ac_status); } >/dev/null && { | ||
3926 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3927 | test ! -s conftest.err | ||
3928 | }; then | ||
3929 | : | ||
3930 | else | ||
3931 | echo "$as_me: failed program was:" >&5 | ||
3932 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3933 | |||
3934 | # Broken: fails on valid input. | ||
3935 | continue | ||
3936 | fi | ||
3937 | |||
3938 | rm -f conftest.err conftest.$ac_ext | ||
3939 | |||
3940 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3941 | # can be detected and how. | ||
3942 | cat >conftest.$ac_ext <<_ACEOF | ||
3943 | /* confdefs.h. */ | ||
3944 | _ACEOF | ||
3945 | cat confdefs.h >>conftest.$ac_ext | ||
3946 | cat >>conftest.$ac_ext <<_ACEOF | ||
3947 | /* end confdefs.h. */ | ||
3948 | #include <ac_nonexistent.h> | ||
3949 | _ACEOF | ||
3950 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3951 | case "(($ac_try" in | ||
3952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3953 | *) ac_try_echo=$ac_try;; | ||
3954 | esac | ||
3955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3956 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3957 | ac_status=$? | ||
3958 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3959 | rm -f conftest.er1 | ||
3960 | cat conftest.err >&5 | ||
3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3962 | (exit $ac_status); } >/dev/null && { | ||
3963 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3964 | test ! -s conftest.err | ||
3965 | }; then | ||
3966 | # Broken: success on invalid input. | ||
3967 | continue | ||
3968 | else | ||
3969 | echo "$as_me: failed program was:" >&5 | ||
3970 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3971 | |||
3972 | # Passes both tests. | ||
3973 | ac_preproc_ok=: | ||
3974 | break | ||
3975 | fi | ||
3976 | |||
3977 | rm -f conftest.err conftest.$ac_ext | ||
3978 | |||
3979 | done | ||
3980 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3981 | rm -f conftest.err conftest.$ac_ext | ||
3982 | if $ac_preproc_ok; then | ||
3983 | : | ||
3984 | else | ||
3985 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3986 | See \`config.log' for more details." >&5 | ||
3987 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3988 | See \`config.log' for more details." >&2;} | ||
3989 | { (exit 1); exit 1; }; } | ||
3990 | fi | ||
3991 | |||
3992 | ac_ext=c | ||
3993 | ac_cpp='$CPP $CPPFLAGS' | ||
3994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3997 | |||
3998 | if test -n "$ac_tool_prefix"; then | ||
3999 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4000 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4001 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4003 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4005 | else | ||
4006 | if test -n "$RANLIB"; then | ||
4007 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4008 | else | ||
4009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4010 | for as_dir in $PATH | ||
4011 | do | ||
4012 | IFS=$as_save_IFS | ||
4013 | test -z "$as_dir" && as_dir=. | ||
4014 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4016 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4018 | break 2 | ||
4019 | fi | ||
4020 | done | ||
4021 | done | ||
4022 | IFS=$as_save_IFS | ||
4023 | |||
4024 | fi | ||
4025 | fi | ||
4026 | RANLIB=$ac_cv_prog_RANLIB | ||
4027 | if test -n "$RANLIB"; then | ||
4028 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
4029 | echo "${ECHO_T}$RANLIB" >&6; } | ||
4030 | else | ||
4031 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4032 | echo "${ECHO_T}no" >&6; } | ||
4033 | fi | ||
4034 | |||
4035 | |||
4036 | fi | ||
4037 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4038 | ac_ct_RANLIB=$RANLIB | ||
4039 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4040 | set dummy ranlib; ac_word=$2 | ||
4041 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4043 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
4044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4045 | else | ||
4046 | if test -n "$ac_ct_RANLIB"; then | ||
4047 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4048 | else | ||
4049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4050 | for as_dir in $PATH | ||
4051 | do | ||
4052 | IFS=$as_save_IFS | ||
4053 | test -z "$as_dir" && as_dir=. | ||
4054 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4056 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4058 | break 2 | ||
4059 | fi | ||
4060 | done | ||
4061 | done | ||
4062 | IFS=$as_save_IFS | ||
4063 | |||
4064 | fi | ||
4065 | fi | ||
4066 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4067 | if test -n "$ac_ct_RANLIB"; then | ||
4068 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
4069 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
4070 | else | ||
4071 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4072 | echo "${ECHO_T}no" >&6; } | ||
4073 | fi | ||
4074 | |||
4075 | if test "x$ac_ct_RANLIB" = x; then | ||
4076 | RANLIB=":" | ||
4077 | else | ||
4078 | case $cross_compiling:$ac_tool_warned in | ||
4079 | yes:) | ||
4080 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4081 | whose name does not start with the host triplet. If you think this | ||
4082 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4083 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4084 | whose name does not start with the host triplet. If you think this | ||
4085 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4086 | ac_tool_warned=yes ;; | ||
4087 | esac | ||
4088 | RANLIB=$ac_ct_RANLIB | ||
4089 | fi | ||
4090 | else | ||
4091 | RANLIB="$ac_cv_prog_RANLIB" | ||
4092 | fi | ||
4093 | |||
4094 | # Find a good install program. We prefer a C program (faster), | ||
4095 | # so one script is as good as another. But avoid the broken or | ||
4096 | # incompatible versions: | ||
4097 | # SysV /etc/install, /usr/sbin/install | ||
4098 | # SunOS /usr/etc/install | ||
4099 | # IRIX /sbin/install | ||
4100 | # AIX /bin/install | ||
4101 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4102 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4103 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4104 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4105 | # OS/2's system install, which has a completely different semantic | ||
4106 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4107 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
4108 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
4109 | if test -z "$INSTALL"; then | ||
4110 | if test "${ac_cv_path_install+set}" = set; then | ||
4111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4112 | else | ||
4113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4114 | for as_dir in $PATH | ||
4115 | do | ||
4116 | IFS=$as_save_IFS | ||
4117 | test -z "$as_dir" && as_dir=. | ||
4118 | # Account for people who put trailing slashes in PATH elements. | ||
4119 | case $as_dir/ in | ||
4120 | ./ | .// | /cC/* | \ | ||
4121 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4122 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
4123 | /usr/ucb/* ) ;; | ||
4124 | *) | ||
4125 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4126 | # Don't use installbsd from OSF since it installs stuff as root | ||
4127 | # by default. | ||
4128 | for ac_prog in ginstall scoinst install; do | ||
4129 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4130 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4131 | if test $ac_prog = install && | ||
4132 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4133 | # AIX install. It has an incompatible calling convention. | ||
4134 | : | ||
4135 | elif test $ac_prog = install && | ||
4136 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4137 | # program-specific install script used by HP pwplus--don't use. | ||
4138 | : | ||
4139 | else | ||
4140 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4141 | break 3 | ||
4142 | fi | ||
4143 | fi | ||
4144 | done | ||
4145 | done | ||
4146 | ;; | ||
4147 | esac | ||
4148 | done | ||
4149 | IFS=$as_save_IFS | ||
4150 | |||
4151 | |||
4152 | fi | ||
4153 | if test "${ac_cv_path_install+set}" = set; then | ||
4154 | INSTALL=$ac_cv_path_install | ||
4155 | else | ||
4156 | # As a last resort, use the slow shell script. Don't cache a | ||
4157 | # value for INSTALL within a source directory, because that will | ||
4158 | # break other packages using the cache if that directory is | ||
4159 | # removed, or if the value is a relative name. | ||
4160 | INSTALL=$ac_install_sh | ||
4161 | fi | ||
4162 | fi | ||
4163 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
4164 | echo "${ECHO_T}$INSTALL" >&6; } | ||
4165 | |||
4166 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4167 | # It thinks the first close brace ends the variable substitution. | ||
4168 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4169 | |||
4170 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4171 | |||
4172 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4173 | |||
4174 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4175 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4176 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4178 | else | ||
4179 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4180 | then ac_cv_path_EGREP="$GREP -E" | ||
4181 | else | ||
4182 | # Extract the first word of "egrep" to use in msg output | ||
4183 | if test -z "$EGREP"; then | ||
4184 | set dummy egrep; ac_prog_name=$2 | ||
4185 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4187 | else | ||
4188 | ac_path_EGREP_found=false | ||
4189 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4191 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4192 | do | ||
4193 | IFS=$as_save_IFS | ||
4194 | test -z "$as_dir" && as_dir=. | ||
4195 | for ac_prog in egrep; do | ||
4196 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4197 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4198 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4199 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4200 | # Check for GNU $ac_path_EGREP | ||
4201 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4202 | *GNU*) | ||
4203 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4204 | *) | ||
4205 | ac_count=0 | ||
4206 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4207 | while : | ||
4208 | do | ||
4209 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4210 | mv "conftest.tmp" "conftest.in" | ||
4211 | cp "conftest.in" "conftest.nl" | ||
4212 | echo 'EGREP' >> "conftest.nl" | ||
4213 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4214 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4215 | ac_count=`expr $ac_count + 1` | ||
4216 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4217 | # Best one so far, save it but keep looking for a better one | ||
4218 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4219 | ac_path_EGREP_max=$ac_count | ||
4220 | fi | ||
4221 | # 10*(2^10) chars as input seems more than enough | ||
4222 | test $ac_count -gt 10 && break | ||
4223 | done | ||
4224 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4225 | esac | ||
4226 | |||
4227 | |||
4228 | $ac_path_EGREP_found && break 3 | ||
4229 | done | ||
4230 | done | ||
4231 | |||
4232 | done | ||
4233 | IFS=$as_save_IFS | ||
4234 | |||
4235 | |||
4236 | fi | ||
4237 | |||
4238 | EGREP="$ac_cv_path_EGREP" | ||
4239 | if test -z "$EGREP"; then | ||
4240 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4241 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4242 | { (exit 1); exit 1; }; } | ||
4243 | fi | ||
4244 | |||
4245 | else | ||
4246 | ac_cv_path_EGREP=$EGREP | ||
4247 | fi | ||
4248 | |||
4249 | |||
4250 | fi | ||
4251 | fi | ||
4252 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4253 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4254 | EGREP="$ac_cv_path_EGREP" | ||
4255 | |||
4256 | |||
4257 | if test -n "$ac_tool_prefix"; then | ||
4258 | for ac_prog in ar | ||
4259 | do | ||
4260 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4261 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4262 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4264 | if test "${ac_cv_prog_AR+set}" = set; then | ||
4265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4266 | else | ||
4267 | if test -n "$AR"; then | ||
4268 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
4269 | else | ||
4270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4271 | for as_dir in $PATH | ||
4272 | do | ||
4273 | IFS=$as_save_IFS | ||
4274 | test -z "$as_dir" && as_dir=. | ||
4275 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4277 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
4278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4279 | break 2 | ||
4280 | fi | ||
4281 | done | ||
4282 | done | ||
4283 | IFS=$as_save_IFS | ||
4284 | |||
4285 | fi | ||
4286 | fi | ||
4287 | AR=$ac_cv_prog_AR | ||
4288 | if test -n "$AR"; then | ||
4289 | { echo "$as_me:$LINENO: result: $AR" >&5 | ||
4290 | echo "${ECHO_T}$AR" >&6; } | ||
4291 | else | ||
4292 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4293 | echo "${ECHO_T}no" >&6; } | ||
4294 | fi | ||
4295 | |||
4296 | |||
4297 | test -n "$AR" && break | ||
4298 | done | ||
4299 | fi | ||
4300 | if test -z "$AR"; then | ||
4301 | ac_ct_AR=$AR | ||
4302 | for ac_prog in ar | ||
4303 | do | ||
4304 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4305 | set dummy $ac_prog; ac_word=$2 | ||
4306 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4308 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | ||
4309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4310 | else | ||
4311 | if test -n "$ac_ct_AR"; then | ||
4312 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
4313 | else | ||
4314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4315 | for as_dir in $PATH | ||
4316 | do | ||
4317 | IFS=$as_save_IFS | ||
4318 | test -z "$as_dir" && as_dir=. | ||
4319 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4321 | ac_cv_prog_ac_ct_AR="$ac_prog" | ||
4322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4323 | break 2 | ||
4324 | fi | ||
4325 | done | ||
4326 | done | ||
4327 | IFS=$as_save_IFS | ||
4328 | |||
4329 | fi | ||
4330 | fi | ||
4331 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
4332 | if test -n "$ac_ct_AR"; then | ||
4333 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | ||
4334 | echo "${ECHO_T}$ac_ct_AR" >&6; } | ||
4335 | else | ||
4336 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4337 | echo "${ECHO_T}no" >&6; } | ||
4338 | fi | ||
4339 | |||
4340 | |||
4341 | test -n "$ac_ct_AR" && break | ||
4342 | done | ||
4343 | |||
4344 | if test "x$ac_ct_AR" = x; then | ||
4345 | AR="" | ||
4346 | else | ||
4347 | case $cross_compiling:$ac_tool_warned in | ||
4348 | yes:) | ||
4349 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4350 | whose name does not start with the host triplet. If you think this | ||
4351 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4352 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4353 | whose name does not start with the host triplet. If you think this | ||
4354 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4355 | ac_tool_warned=yes ;; | ||
4356 | esac | ||
4357 | AR=$ac_ct_AR | ||
4358 | fi | ||
4359 | fi | ||
4360 | |||
4361 | # Extract the first word of "cat", so it can be a program name with args. | ||
4362 | set dummy cat; ac_word=$2 | ||
4363 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4365 | if test "${ac_cv_path_CAT+set}" = set; then | ||
4366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4367 | else | ||
4368 | case $CAT in | ||
4369 | [\\/]* | ?:[\\/]*) | ||
4370 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4371 | ;; | ||
4372 | *) | ||
4373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4374 | for as_dir in $PATH | ||
4375 | do | ||
4376 | IFS=$as_save_IFS | ||
4377 | test -z "$as_dir" && as_dir=. | ||
4378 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4379 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4380 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4381 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4382 | break 2 | ||
4383 | fi | ||
4384 | done | ||
4385 | done | ||
4386 | IFS=$as_save_IFS | ||
4387 | |||
4388 | ;; | ||
4389 | esac | ||
4390 | fi | ||
4391 | CAT=$ac_cv_path_CAT | ||
4392 | if test -n "$CAT"; then | ||
4393 | { echo "$as_me:$LINENO: result: $CAT" >&5 | ||
4394 | echo "${ECHO_T}$CAT" >&6; } | ||
4395 | else | ||
4396 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4397 | echo "${ECHO_T}no" >&6; } | ||
4398 | fi | ||
4399 | |||
4400 | |||
4401 | # Extract the first word of "kill", so it can be a program name with args. | ||
4402 | set dummy kill; ac_word=$2 | ||
4403 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4404 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4405 | if test "${ac_cv_path_KILL+set}" = set; then | ||
4406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4407 | else | ||
4408 | case $KILL in | ||
4409 | [\\/]* | ?:[\\/]*) | ||
4410 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4411 | ;; | ||
4412 | *) | ||
4413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4414 | for as_dir in $PATH | ||
4415 | do | ||
4416 | IFS=$as_save_IFS | ||
4417 | test -z "$as_dir" && as_dir=. | ||
4418 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4419 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4420 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4421 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4422 | break 2 | ||
4423 | fi | ||
4424 | done | ||
4425 | done | ||
4426 | IFS=$as_save_IFS | ||
4427 | |||
4428 | ;; | ||
4429 | esac | ||
4430 | fi | ||
4431 | KILL=$ac_cv_path_KILL | ||
4432 | if test -n "$KILL"; then | ||
4433 | { echo "$as_me:$LINENO: result: $KILL" >&5 | ||
4434 | echo "${ECHO_T}$KILL" >&6; } | ||
4435 | else | ||
4436 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4437 | echo "${ECHO_T}no" >&6; } | ||
4438 | fi | ||
4439 | |||
4440 | |||
4441 | for ac_prog in perl5 perl | ||
4442 | do | ||
4443 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4444 | set dummy $ac_prog; ac_word=$2 | ||
4445 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4447 | if test "${ac_cv_path_PERL+set}" = set; then | ||
4448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4449 | else | ||
4450 | case $PERL in | ||
4451 | [\\/]* | ?:[\\/]*) | ||
4452 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4453 | ;; | ||
4454 | *) | ||
4455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4456 | for as_dir in $PATH | ||
4457 | do | ||
4458 | IFS=$as_save_IFS | ||
4459 | test -z "$as_dir" && as_dir=. | ||
4460 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4462 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4464 | break 2 | ||
4465 | fi | ||
4466 | done | ||
4467 | done | ||
4468 | IFS=$as_save_IFS | ||
4469 | |||
4470 | ;; | ||
4471 | esac | ||
4472 | fi | ||
4473 | PERL=$ac_cv_path_PERL | ||
4474 | if test -n "$PERL"; then | ||
4475 | { echo "$as_me:$LINENO: result: $PERL" >&5 | ||
4476 | echo "${ECHO_T}$PERL" >&6; } | ||
4477 | else | ||
4478 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4479 | echo "${ECHO_T}no" >&6; } | ||
4480 | fi | ||
4481 | |||
4482 | |||
4483 | test -n "$PERL" && break | ||
4484 | done | ||
4485 | |||
4486 | # Extract the first word of "sed", so it can be a program name with args. | ||
4487 | set dummy sed; ac_word=$2 | ||
4488 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4490 | if test "${ac_cv_path_SED+set}" = set; then | ||
4491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4492 | else | ||
4493 | case $SED in | ||
4494 | [\\/]* | ?:[\\/]*) | ||
4495 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4496 | ;; | ||
4497 | *) | ||
4498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4499 | for as_dir in $PATH | ||
4500 | do | ||
4501 | IFS=$as_save_IFS | ||
4502 | test -z "$as_dir" && as_dir=. | ||
4503 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4504 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4505 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4507 | break 2 | ||
4508 | fi | ||
4509 | done | ||
4510 | done | ||
4511 | IFS=$as_save_IFS | ||
4512 | |||
4513 | ;; | ||
4514 | esac | ||
4515 | fi | ||
4516 | SED=$ac_cv_path_SED | ||
4517 | if test -n "$SED"; then | ||
4518 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4519 | echo "${ECHO_T}$SED" >&6; } | ||
4520 | else | ||
4521 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4522 | echo "${ECHO_T}no" >&6; } | ||
4523 | fi | ||
4524 | |||
4525 | |||
4526 | |||
4527 | # Extract the first word of "ent", so it can be a program name with args. | ||
4528 | set dummy ent; ac_word=$2 | ||
4529 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4531 | if test "${ac_cv_path_ENT+set}" = set; then | ||
4532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4533 | else | ||
4534 | case $ENT in | ||
4535 | [\\/]* | ?:[\\/]*) | ||
4536 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4537 | ;; | ||
4538 | *) | ||
4539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4540 | for as_dir in $PATH | ||
4541 | do | ||
4542 | IFS=$as_save_IFS | ||
4543 | test -z "$as_dir" && as_dir=. | ||
4544 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4546 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4548 | break 2 | ||
4549 | fi | ||
4550 | done | ||
4551 | done | ||
4552 | IFS=$as_save_IFS | ||
4553 | |||
4554 | ;; | ||
4555 | esac | ||
4556 | fi | ||
4557 | ENT=$ac_cv_path_ENT | ||
4558 | if test -n "$ENT"; then | ||
4559 | { echo "$as_me:$LINENO: result: $ENT" >&5 | ||
4560 | echo "${ECHO_T}$ENT" >&6; } | ||
4561 | else | ||
4562 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4563 | echo "${ECHO_T}no" >&6; } | ||
4564 | fi | ||
4565 | |||
4566 | |||
4567 | |||
4568 | # Extract the first word of "bash", so it can be a program name with args. | ||
4569 | set dummy bash; ac_word=$2 | ||
4570 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4572 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4574 | else | ||
4575 | case $TEST_MINUS_S_SH in | ||
4576 | [\\/]* | ?:[\\/]*) | ||
4577 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4578 | ;; | ||
4579 | *) | ||
4580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4581 | for as_dir in $PATH | ||
4582 | do | ||
4583 | IFS=$as_save_IFS | ||
4584 | test -z "$as_dir" && as_dir=. | ||
4585 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4587 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4589 | break 2 | ||
4590 | fi | ||
4591 | done | ||
4592 | done | ||
4593 | IFS=$as_save_IFS | ||
4594 | |||
4595 | ;; | ||
4596 | esac | ||
4597 | fi | ||
4598 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4599 | if test -n "$TEST_MINUS_S_SH"; then | ||
4600 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4601 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4602 | else | ||
4603 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4604 | echo "${ECHO_T}no" >&6; } | ||
4605 | fi | ||
4606 | |||
4607 | |||
4608 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4609 | set dummy ksh; ac_word=$2 | ||
4610 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4612 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4614 | else | ||
4615 | case $TEST_MINUS_S_SH in | ||
4616 | [\\/]* | ?:[\\/]*) | ||
4617 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4618 | ;; | ||
4619 | *) | ||
4620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4621 | for as_dir in $PATH | ||
4622 | do | ||
4623 | IFS=$as_save_IFS | ||
4624 | test -z "$as_dir" && as_dir=. | ||
4625 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4627 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4629 | break 2 | ||
4630 | fi | ||
4631 | done | ||
4632 | done | ||
4633 | IFS=$as_save_IFS | ||
4634 | |||
4635 | ;; | ||
4636 | esac | ||
4637 | fi | ||
4638 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4639 | if test -n "$TEST_MINUS_S_SH"; then | ||
4640 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4641 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4642 | else | ||
4643 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4644 | echo "${ECHO_T}no" >&6; } | ||
4645 | fi | ||
4646 | |||
4647 | |||
4648 | # Extract the first word of "sh", so it can be a program name with args. | ||
4649 | set dummy sh; ac_word=$2 | ||
4650 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4652 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4654 | else | ||
4655 | case $TEST_MINUS_S_SH in | ||
4656 | [\\/]* | ?:[\\/]*) | ||
4657 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4658 | ;; | ||
4659 | *) | ||
4660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4661 | for as_dir in $PATH | ||
4662 | do | ||
4663 | IFS=$as_save_IFS | ||
4664 | test -z "$as_dir" && as_dir=. | ||
4665 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4667 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4669 | break 2 | ||
4670 | fi | ||
4671 | done | ||
4672 | done | ||
4673 | IFS=$as_save_IFS | ||
4674 | |||
4675 | ;; | ||
4676 | esac | ||
4677 | fi | ||
4678 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4679 | if test -n "$TEST_MINUS_S_SH"; then | ||
4680 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4681 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4682 | else | ||
4683 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4684 | echo "${ECHO_T}no" >&6; } | ||
4685 | fi | ||
4686 | |||
4687 | |||
4688 | # Extract the first word of "sh", so it can be a program name with args. | ||
4689 | set dummy sh; ac_word=$2 | ||
4690 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4692 | if test "${ac_cv_path_SH+set}" = set; then | ||
4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4694 | else | ||
4695 | case $SH in | ||
4696 | [\\/]* | ?:[\\/]*) | ||
4697 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4698 | ;; | ||
4699 | *) | ||
4700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4701 | for as_dir in $PATH | ||
4702 | do | ||
4703 | IFS=$as_save_IFS | ||
4704 | test -z "$as_dir" && as_dir=. | ||
4705 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4706 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4707 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4709 | break 2 | ||
4710 | fi | ||
4711 | done | ||
4712 | done | ||
4713 | IFS=$as_save_IFS | ||
4714 | |||
4715 | ;; | ||
4716 | esac | ||
4717 | fi | ||
4718 | SH=$ac_cv_path_SH | ||
4719 | if test -n "$SH"; then | ||
4720 | { echo "$as_me:$LINENO: result: $SH" >&5 | ||
4721 | echo "${ECHO_T}$SH" >&6; } | ||
4722 | else | ||
4723 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4724 | echo "${ECHO_T}no" >&6; } | ||
4725 | fi | ||
4726 | |||
4727 | |||
4728 | # Extract the first word of "groff", so it can be a program name with args. | ||
4729 | set dummy groff; ac_word=$2 | ||
4730 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4732 | if test "${ac_cv_path_GROFF+set}" = set; then | ||
4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4734 | else | ||
4735 | case $GROFF in | ||
4736 | [\\/]* | ?:[\\/]*) | ||
4737 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | ||
4738 | ;; | ||
4739 | *) | ||
4740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4741 | for as_dir in $PATH | ||
4742 | do | ||
4743 | IFS=$as_save_IFS | ||
4744 | test -z "$as_dir" && as_dir=. | ||
4745 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4746 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4747 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4749 | break 2 | ||
4750 | fi | ||
4751 | done | ||
4752 | done | ||
4753 | IFS=$as_save_IFS | ||
4754 | |||
4755 | ;; | ||
4756 | esac | ||
4757 | fi | ||
4758 | GROFF=$ac_cv_path_GROFF | ||
4759 | if test -n "$GROFF"; then | ||
4760 | { echo "$as_me:$LINENO: result: $GROFF" >&5 | ||
4761 | echo "${ECHO_T}$GROFF" >&6; } | ||
4762 | else | ||
4763 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4764 | echo "${ECHO_T}no" >&6; } | ||
4765 | fi | ||
4766 | |||
4767 | |||
4768 | # Extract the first word of "nroff", so it can be a program name with args. | ||
4769 | set dummy nroff; ac_word=$2 | ||
4770 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4772 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4774 | else | ||
4775 | case $NROFF in | ||
4776 | [\\/]* | ?:[\\/]*) | ||
4777 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
4778 | ;; | ||
4779 | *) | ||
4780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4781 | for as_dir in $PATH | ||
4782 | do | ||
4783 | IFS=$as_save_IFS | ||
4784 | test -z "$as_dir" && as_dir=. | ||
4785 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4787 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4789 | break 2 | ||
4790 | fi | ||
4791 | done | ||
4792 | done | ||
4793 | IFS=$as_save_IFS | ||
4794 | |||
4795 | ;; | ||
4796 | esac | ||
4797 | fi | ||
4798 | NROFF=$ac_cv_path_NROFF | ||
4799 | if test -n "$NROFF"; then | ||
4800 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
4801 | echo "${ECHO_T}$NROFF" >&6; } | ||
4802 | else | ||
4803 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4804 | echo "${ECHO_T}no" >&6; } | ||
4805 | fi | ||
4806 | |||
4807 | |||
4808 | # Extract the first word of "mandoc", so it can be a program name with args. | ||
4809 | set dummy mandoc; ac_word=$2 | ||
4810 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4812 | if test "${ac_cv_path_MANDOC+set}" = set; then | ||
4813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4814 | else | ||
4815 | case $MANDOC in | ||
4816 | [\\/]* | ?:[\\/]*) | ||
4817 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. | ||
4818 | ;; | ||
4819 | *) | ||
4820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4821 | for as_dir in $PATH | ||
4822 | do | ||
4823 | IFS=$as_save_IFS | ||
4824 | test -z "$as_dir" && as_dir=. | ||
4825 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4827 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" | ||
4828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4829 | break 2 | ||
4830 | fi | ||
4831 | done | ||
4832 | done | ||
4833 | IFS=$as_save_IFS | ||
4834 | |||
4835 | ;; | ||
4836 | esac | ||
4837 | fi | ||
4838 | MANDOC=$ac_cv_path_MANDOC | ||
4839 | if test -n "$MANDOC"; then | ||
4840 | { echo "$as_me:$LINENO: result: $MANDOC" >&5 | ||
4841 | echo "${ECHO_T}$MANDOC" >&6; } | ||
4842 | else | ||
4843 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4844 | echo "${ECHO_T}no" >&6; } | ||
4845 | fi | ||
4846 | |||
4847 | |||
4848 | TEST_SHELL=sh | ||
4849 | |||
4850 | |||
4851 | if test "x$MANDOC" != "x" ; then | ||
4852 | MANFMT="$MANDOC" | ||
4853 | elif test "x$NROFF" != "x" ; then | ||
4854 | MANFMT="$NROFF -mandoc" | ||
4855 | elif test "x$GROFF" != "x" ; then | ||
4856 | MANFMT="$GROFF -mandoc -Tascii" | ||
4857 | else | ||
4858 | { echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5 | ||
4859 | echo "$as_me: WARNING: no manpage formatted found" >&2;} | ||
4860 | MANFMT="false" | ||
4861 | fi | ||
4862 | |||
4863 | |||
4864 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
4865 | set dummy groupadd; ac_word=$2 | ||
4866 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4868 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
4869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4870 | else | ||
4871 | case $PATH_GROUPADD_PROG in | ||
4872 | [\\/]* | ?:[\\/]*) | ||
4873 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
4874 | ;; | ||
4875 | *) | ||
4876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4877 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4878 | do | ||
4879 | IFS=$as_save_IFS | ||
4880 | test -z "$as_dir" && as_dir=. | ||
4881 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4883 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4885 | break 2 | ||
4886 | fi | ||
4887 | done | ||
4888 | done | ||
4889 | IFS=$as_save_IFS | ||
4890 | |||
4891 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
4892 | ;; | ||
4893 | esac | ||
4894 | fi | ||
4895 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
4896 | if test -n "$PATH_GROUPADD_PROG"; then | ||
4897 | { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
4898 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; } | ||
4899 | else | ||
4900 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4901 | echo "${ECHO_T}no" >&6; } | ||
4902 | fi | ||
4903 | |||
4904 | |||
4905 | # Extract the first word of "useradd", so it can be a program name with args. | ||
4906 | set dummy useradd; ac_word=$2 | ||
4907 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4909 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4911 | else | ||
4912 | case $PATH_USERADD_PROG in | ||
4913 | [\\/]* | ?:[\\/]*) | ||
4914 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
4915 | ;; | ||
4916 | *) | ||
4917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4918 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4919 | do | ||
4920 | IFS=$as_save_IFS | ||
4921 | test -z "$as_dir" && as_dir=. | ||
4922 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4924 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4925 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4926 | break 2 | ||
4927 | fi | ||
4928 | done | ||
4929 | done | ||
4930 | IFS=$as_save_IFS | ||
4931 | |||
4932 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
4933 | ;; | ||
4934 | esac | ||
4935 | fi | ||
4936 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
4937 | if test -n "$PATH_USERADD_PROG"; then | ||
4938 | { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
4939 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6; } | ||
4940 | else | ||
4941 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4942 | echo "${ECHO_T}no" >&6; } | ||
4943 | fi | ||
4944 | |||
4945 | |||
4946 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
4947 | set dummy pkgmk; ac_word=$2 | ||
4948 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4950 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
4951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4952 | else | ||
4953 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4954 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
4955 | else | ||
4956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4957 | for as_dir in $PATH | ||
4958 | do | ||
4959 | IFS=$as_save_IFS | ||
4960 | test -z "$as_dir" && as_dir=. | ||
4961 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4963 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
4964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4965 | break 2 | ||
4966 | fi | ||
4967 | done | ||
4968 | done | ||
4969 | IFS=$as_save_IFS | ||
4970 | |||
4971 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
4972 | fi | ||
4973 | fi | ||
4974 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
4975 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4976 | { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
4977 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
4978 | else | ||
4979 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4980 | echo "${ECHO_T}no" >&6; } | ||
4981 | fi | ||
4982 | |||
4983 | |||
4984 | if test -x /sbin/sh; then | ||
4985 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
4986 | |||
4987 | else | ||
4988 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
4989 | |||
4990 | fi | ||
4991 | |||
4992 | # System features | ||
4993 | # Check whether --enable-largefile was given. | ||
4994 | if test "${enable_largefile+set}" = set; then | ||
4995 | enableval=$enable_largefile; | ||
4996 | fi | ||
4997 | |||
4998 | if test "$enable_largefile" != no; then | ||
4999 | |||
5000 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
5001 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | ||
5002 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5004 | else | ||
5005 | ac_cv_sys_largefile_CC=no | ||
5006 | if test "$GCC" != yes; then | ||
5007 | ac_save_CC=$CC | ||
5008 | while :; do | ||
5009 | # IRIX 6.2 and later do not support large files by default, | ||
5010 | # so use the C compiler's -n32 option if that helps. | ||
5011 | cat >conftest.$ac_ext <<_ACEOF | ||
5012 | /* confdefs.h. */ | ||
5013 | _ACEOF | ||
5014 | cat confdefs.h >>conftest.$ac_ext | ||
5015 | cat >>conftest.$ac_ext <<_ACEOF | ||
5016 | /* end confdefs.h. */ | ||
5017 | #include <sys/types.h> | ||
5018 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5019 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5020 | since some C++ compilers masquerading as C compilers | ||
5021 | incorrectly reject 9223372036854775807. */ | ||
5022 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5023 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5024 | && LARGE_OFF_T % 2147483647 == 1) | ||
5025 | ? 1 : -1]; | ||
5026 | int | ||
5027 | main () | ||
5028 | { | ||
5029 | |||
5030 | ; | ||
5031 | return 0; | ||
5032 | } | ||
5033 | _ACEOF | ||
5034 | rm -f conftest.$ac_objext | ||
5035 | if { (ac_try="$ac_compile" | ||
5036 | case "(($ac_try" in | ||
5037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5038 | *) ac_try_echo=$ac_try;; | ||
5039 | esac | ||
5040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5041 | (eval "$ac_compile") 2>conftest.er1 | ||
5042 | ac_status=$? | ||
5043 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5044 | rm -f conftest.er1 | ||
5045 | cat conftest.err >&5 | ||
5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5047 | (exit $ac_status); } && { | ||
5048 | test -z "$ac_c_werror_flag" || | ||
5049 | test ! -s conftest.err | ||
5050 | } && test -s conftest.$ac_objext; then | ||
5051 | break | ||
5052 | else | ||
5053 | echo "$as_me: failed program was:" >&5 | ||
5054 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5055 | |||
5056 | |||
5057 | fi | ||
5058 | |||
5059 | rm -f core conftest.err conftest.$ac_objext | ||
5060 | CC="$CC -n32" | ||
5061 | rm -f conftest.$ac_objext | ||
5062 | if { (ac_try="$ac_compile" | ||
5063 | case "(($ac_try" in | ||
5064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5065 | *) ac_try_echo=$ac_try;; | ||
5066 | esac | ||
5067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5068 | (eval "$ac_compile") 2>conftest.er1 | ||
5069 | ac_status=$? | ||
5070 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5071 | rm -f conftest.er1 | ||
5072 | cat conftest.err >&5 | ||
5073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5074 | (exit $ac_status); } && { | ||
5075 | test -z "$ac_c_werror_flag" || | ||
5076 | test ! -s conftest.err | ||
5077 | } && test -s conftest.$ac_objext; then | ||
5078 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5079 | else | ||
5080 | echo "$as_me: failed program was:" >&5 | ||
5081 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5082 | |||
5083 | |||
5084 | fi | ||
5085 | |||
5086 | rm -f core conftest.err conftest.$ac_objext | ||
5087 | break | ||
5088 | done | ||
5089 | CC=$ac_save_CC | ||
5090 | rm -f conftest.$ac_ext | ||
5091 | fi | ||
5092 | fi | ||
5093 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
5094 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | ||
5095 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5096 | CC=$CC$ac_cv_sys_largefile_CC | ||
5097 | fi | ||
5098 | |||
5099 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5100 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | ||
5101 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
5102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5103 | else | ||
5104 | while :; do | ||
5105 | cat >conftest.$ac_ext <<_ACEOF | ||
5106 | /* confdefs.h. */ | ||
5107 | _ACEOF | ||
5108 | cat confdefs.h >>conftest.$ac_ext | ||
5109 | cat >>conftest.$ac_ext <<_ACEOF | ||
5110 | /* end confdefs.h. */ | ||
5111 | #include <sys/types.h> | ||
5112 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5113 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5114 | since some C++ compilers masquerading as C compilers | ||
5115 | incorrectly reject 9223372036854775807. */ | ||
5116 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5117 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5118 | && LARGE_OFF_T % 2147483647 == 1) | ||
5119 | ? 1 : -1]; | ||
5120 | int | ||
5121 | main () | ||
5122 | { | ||
5123 | |||
5124 | ; | ||
5125 | return 0; | ||
5126 | } | ||
5127 | _ACEOF | ||
5128 | rm -f conftest.$ac_objext | ||
5129 | if { (ac_try="$ac_compile" | ||
5130 | case "(($ac_try" in | ||
5131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5132 | *) ac_try_echo=$ac_try;; | ||
5133 | esac | ||
5134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5135 | (eval "$ac_compile") 2>conftest.er1 | ||
5136 | ac_status=$? | ||
5137 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5138 | rm -f conftest.er1 | ||
5139 | cat conftest.err >&5 | ||
5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5141 | (exit $ac_status); } && { | ||
5142 | test -z "$ac_c_werror_flag" || | ||
5143 | test ! -s conftest.err | ||
5144 | } && test -s conftest.$ac_objext; then | ||
5145 | ac_cv_sys_file_offset_bits=no; break | ||
5146 | else | ||
5147 | echo "$as_me: failed program was:" >&5 | ||
5148 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5149 | |||
5150 | |||
5151 | fi | ||
5152 | |||
5153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5154 | cat >conftest.$ac_ext <<_ACEOF | ||
5155 | /* confdefs.h. */ | ||
5156 | _ACEOF | ||
5157 | cat confdefs.h >>conftest.$ac_ext | ||
5158 | cat >>conftest.$ac_ext <<_ACEOF | ||
5159 | /* end confdefs.h. */ | ||
5160 | #define _FILE_OFFSET_BITS 64 | ||
5161 | #include <sys/types.h> | ||
5162 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5163 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5164 | since some C++ compilers masquerading as C compilers | ||
5165 | incorrectly reject 9223372036854775807. */ | ||
5166 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5167 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5168 | && LARGE_OFF_T % 2147483647 == 1) | ||
5169 | ? 1 : -1]; | ||
5170 | int | ||
5171 | main () | ||
5172 | { | ||
5173 | |||
5174 | ; | ||
5175 | return 0; | ||
5176 | } | ||
5177 | _ACEOF | ||
5178 | rm -f conftest.$ac_objext | ||
5179 | if { (ac_try="$ac_compile" | ||
5180 | case "(($ac_try" in | ||
5181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5182 | *) ac_try_echo=$ac_try;; | ||
5183 | esac | ||
5184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5185 | (eval "$ac_compile") 2>conftest.er1 | ||
5186 | ac_status=$? | ||
5187 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5188 | rm -f conftest.er1 | ||
5189 | cat conftest.err >&5 | ||
5190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5191 | (exit $ac_status); } && { | ||
5192 | test -z "$ac_c_werror_flag" || | ||
5193 | test ! -s conftest.err | ||
5194 | } && test -s conftest.$ac_objext; then | ||
5195 | ac_cv_sys_file_offset_bits=64; break | ||
5196 | else | ||
5197 | echo "$as_me: failed program was:" >&5 | ||
5198 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5199 | |||
5200 | |||
5201 | fi | ||
5202 | |||
5203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5204 | ac_cv_sys_file_offset_bits=unknown | ||
5205 | break | ||
5206 | done | ||
5207 | fi | ||
5208 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5209 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | ||
5210 | case $ac_cv_sys_file_offset_bits in #( | ||
5211 | no | unknown) ;; | ||
5212 | *) | ||
5213 | cat >>confdefs.h <<_ACEOF | ||
5214 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5215 | _ACEOF | ||
5216 | ;; | ||
5217 | esac | ||
5218 | rm -f conftest* | ||
5219 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5220 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
5221 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | ||
5222 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
5223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5224 | else | ||
5225 | while :; do | ||
5226 | cat >conftest.$ac_ext <<_ACEOF | ||
5227 | /* confdefs.h. */ | ||
5228 | _ACEOF | ||
5229 | cat confdefs.h >>conftest.$ac_ext | ||
5230 | cat >>conftest.$ac_ext <<_ACEOF | ||
5231 | /* end confdefs.h. */ | ||
5232 | #include <sys/types.h> | ||
5233 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5234 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5235 | since some C++ compilers masquerading as C compilers | ||
5236 | incorrectly reject 9223372036854775807. */ | ||
5237 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5238 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5239 | && LARGE_OFF_T % 2147483647 == 1) | ||
5240 | ? 1 : -1]; | ||
5241 | int | ||
5242 | main () | ||
5243 | { | ||
5244 | |||
5245 | ; | ||
5246 | return 0; | ||
5247 | } | ||
5248 | _ACEOF | ||
5249 | rm -f conftest.$ac_objext | ||
5250 | if { (ac_try="$ac_compile" | ||
5251 | case "(($ac_try" in | ||
5252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5253 | *) ac_try_echo=$ac_try;; | ||
5254 | esac | ||
5255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5256 | (eval "$ac_compile") 2>conftest.er1 | ||
5257 | ac_status=$? | ||
5258 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5259 | rm -f conftest.er1 | ||
5260 | cat conftest.err >&5 | ||
5261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5262 | (exit $ac_status); } && { | ||
5263 | test -z "$ac_c_werror_flag" || | ||
5264 | test ! -s conftest.err | ||
5265 | } && test -s conftest.$ac_objext; then | ||
5266 | ac_cv_sys_large_files=no; break | ||
5267 | else | ||
5268 | echo "$as_me: failed program was:" >&5 | ||
5269 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5270 | |||
5271 | |||
5272 | fi | ||
5273 | |||
5274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5275 | cat >conftest.$ac_ext <<_ACEOF | ||
5276 | /* confdefs.h. */ | ||
5277 | _ACEOF | ||
5278 | cat confdefs.h >>conftest.$ac_ext | ||
5279 | cat >>conftest.$ac_ext <<_ACEOF | ||
5280 | /* end confdefs.h. */ | ||
5281 | #define _LARGE_FILES 1 | ||
5282 | #include <sys/types.h> | ||
5283 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5284 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5285 | since some C++ compilers masquerading as C compilers | ||
5286 | incorrectly reject 9223372036854775807. */ | ||
5287 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5288 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5289 | && LARGE_OFF_T % 2147483647 == 1) | ||
5290 | ? 1 : -1]; | ||
5291 | int | ||
5292 | main () | ||
5293 | { | ||
5294 | |||
5295 | ; | ||
5296 | return 0; | ||
5297 | } | ||
5298 | _ACEOF | ||
5299 | rm -f conftest.$ac_objext | ||
5300 | if { (ac_try="$ac_compile" | ||
5301 | case "(($ac_try" in | ||
5302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5303 | *) ac_try_echo=$ac_try;; | ||
5304 | esac | ||
5305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5306 | (eval "$ac_compile") 2>conftest.er1 | ||
5307 | ac_status=$? | ||
5308 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5309 | rm -f conftest.er1 | ||
5310 | cat conftest.err >&5 | ||
5311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5312 | (exit $ac_status); } && { | ||
5313 | test -z "$ac_c_werror_flag" || | ||
5314 | test ! -s conftest.err | ||
5315 | } && test -s conftest.$ac_objext; then | ||
5316 | ac_cv_sys_large_files=1; break | ||
5317 | else | ||
5318 | echo "$as_me: failed program was:" >&5 | ||
5319 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5320 | |||
5321 | |||
5322 | fi | ||
5323 | |||
5324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5325 | ac_cv_sys_large_files=unknown | ||
5326 | break | ||
5327 | done | ||
5328 | fi | ||
5329 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
5330 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | ||
5331 | case $ac_cv_sys_large_files in #( | ||
5332 | no | unknown) ;; | ||
5333 | *) | ||
5334 | cat >>confdefs.h <<_ACEOF | ||
5335 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5336 | _ACEOF | ||
5337 | ;; | ||
5338 | esac | ||
5339 | rm -f conftest* | ||
5340 | fi | ||
5341 | fi | ||
5342 | |||
5343 | |||
5344 | if test -z "$AR" ; then | ||
5345 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
5346 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
5347 | { (exit 1); exit 1; }; } | ||
5348 | fi | ||
5349 | |||
5350 | # Use LOGIN_PROGRAM from environment if possible | ||
5351 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5352 | |||
5353 | cat >>confdefs.h <<_ACEOF | ||
5354 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5355 | _ACEOF | ||
5356 | |||
5357 | else | ||
5358 | # Search for login | ||
5359 | # Extract the first word of "login", so it can be a program name with args. | ||
5360 | set dummy login; ac_word=$2 | ||
5361 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5362 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5363 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
5364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5365 | else | ||
5366 | case $LOGIN_PROGRAM_FALLBACK in | ||
5367 | [\\/]* | ?:[\\/]*) | ||
5368 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5369 | ;; | ||
5370 | *) | ||
5371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5372 | for as_dir in $PATH | ||
5373 | do | ||
5374 | IFS=$as_save_IFS | ||
5375 | test -z "$as_dir" && as_dir=. | ||
5376 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5378 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5380 | break 2 | ||
5381 | fi | ||
5382 | done | ||
5383 | done | ||
5384 | IFS=$as_save_IFS | ||
5385 | |||
5386 | ;; | ||
5387 | esac | ||
5388 | fi | ||
5389 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5390 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5391 | { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5392 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5393 | else | ||
5394 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5395 | echo "${ECHO_T}no" >&6; } | ||
5396 | fi | ||
5397 | |||
5398 | |||
5399 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5400 | cat >>confdefs.h <<_ACEOF | ||
5401 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5402 | _ACEOF | ||
5403 | |||
5404 | fi | ||
5405 | fi | ||
5406 | |||
5407 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5408 | set dummy passwd; ac_word=$2 | ||
5409 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5411 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
5412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5413 | else | ||
5414 | case $PATH_PASSWD_PROG in | ||
5415 | [\\/]* | ?:[\\/]*) | ||
5416 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5417 | ;; | ||
5418 | *) | ||
5419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5420 | for as_dir in $PATH | ||
5421 | do | ||
5422 | IFS=$as_save_IFS | ||
5423 | test -z "$as_dir" && as_dir=. | ||
5424 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5425 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5426 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5428 | break 2 | ||
5429 | fi | ||
5430 | done | ||
5431 | done | ||
5432 | IFS=$as_save_IFS | ||
5433 | |||
5434 | ;; | ||
5435 | esac | ||
5436 | fi | ||
5437 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5438 | if test -n "$PATH_PASSWD_PROG"; then | ||
5439 | { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
5440 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; } | ||
5441 | else | ||
5442 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5443 | echo "${ECHO_T}no" >&6; } | ||
5444 | fi | ||
5445 | |||
5446 | |||
5447 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5448 | |||
5449 | cat >>confdefs.h <<_ACEOF | ||
5450 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5451 | _ACEOF | ||
5452 | |||
5453 | fi | ||
5454 | |||
5455 | if test -z "$LD" ; then | ||
5456 | LD=$CC | ||
5457 | fi | ||
5458 | |||
5459 | |||
5460 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
5461 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
5462 | if test "${ac_cv_c_inline+set}" = set; then | ||
5463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5464 | else | ||
5465 | ac_cv_c_inline=no | ||
5466 | for ac_kw in inline __inline__ __inline; do | ||
5467 | cat >conftest.$ac_ext <<_ACEOF | ||
5468 | /* confdefs.h. */ | ||
5469 | _ACEOF | ||
5470 | cat confdefs.h >>conftest.$ac_ext | ||
5471 | cat >>conftest.$ac_ext <<_ACEOF | ||
5472 | /* end confdefs.h. */ | ||
5473 | #ifndef __cplusplus | ||
5474 | typedef int foo_t; | ||
5475 | static $ac_kw foo_t static_foo () {return 0; } | ||
5476 | $ac_kw foo_t foo () {return 0; } | ||
5477 | #endif | ||
5478 | |||
5479 | _ACEOF | ||
5480 | rm -f conftest.$ac_objext | ||
5481 | if { (ac_try="$ac_compile" | ||
5482 | case "(($ac_try" in | ||
5483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5484 | *) ac_try_echo=$ac_try;; | ||
5485 | esac | ||
5486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5487 | (eval "$ac_compile") 2>conftest.er1 | ||
5488 | ac_status=$? | ||
5489 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5490 | rm -f conftest.er1 | ||
5491 | cat conftest.err >&5 | ||
5492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5493 | (exit $ac_status); } && { | ||
5494 | test -z "$ac_c_werror_flag" || | ||
5495 | test ! -s conftest.err | ||
5496 | } && test -s conftest.$ac_objext; then | ||
5497 | ac_cv_c_inline=$ac_kw | ||
5498 | else | ||
5499 | echo "$as_me: failed program was:" >&5 | ||
5500 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5501 | |||
5502 | |||
5503 | fi | ||
5504 | |||
5505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5506 | test "$ac_cv_c_inline" != no && break | ||
5507 | done | ||
5508 | |||
5509 | fi | ||
5510 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
5511 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
5512 | |||
5513 | |||
5514 | case $ac_cv_c_inline in | ||
5515 | inline | yes) ;; | ||
5516 | *) | ||
5517 | case $ac_cv_c_inline in | ||
5518 | no) ac_val=;; | ||
5519 | *) ac_val=$ac_cv_c_inline;; | ||
5520 | esac | ||
5521 | cat >>confdefs.h <<_ACEOF | ||
5522 | #ifndef __cplusplus | ||
5523 | #define inline $ac_val | ||
5524 | #endif | ||
5525 | _ACEOF | ||
5526 | ;; | ||
5527 | esac | ||
5528 | |||
5529 | |||
5530 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5531 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5532 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5534 | else | ||
5535 | cat >conftest.$ac_ext <<_ACEOF | ||
5536 | /* confdefs.h. */ | ||
5537 | _ACEOF | ||
5538 | cat confdefs.h >>conftest.$ac_ext | ||
5539 | cat >>conftest.$ac_ext <<_ACEOF | ||
5540 | /* end confdefs.h. */ | ||
5541 | #include <limits.h> | ||
5542 | |||
5543 | int | ||
5544 | main () | ||
5545 | { | ||
5546 | #ifndef LLONG_MAX | ||
5547 | (void) LLONG_MAX; | ||
5548 | #endif | ||
5549 | |||
5550 | ; | ||
5551 | return 0; | ||
5552 | } | ||
5553 | _ACEOF | ||
5554 | rm -f conftest.$ac_objext | ||
5555 | if { (ac_try="$ac_compile" | ||
5556 | case "(($ac_try" in | ||
5557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5558 | *) ac_try_echo=$ac_try;; | ||
5559 | esac | ||
5560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5561 | (eval "$ac_compile") 2>conftest.er1 | ||
5562 | ac_status=$? | ||
5563 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5564 | rm -f conftest.er1 | ||
5565 | cat conftest.err >&5 | ||
5566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5567 | (exit $ac_status); } && { | ||
5568 | test -z "$ac_c_werror_flag" || | ||
5569 | test ! -s conftest.err | ||
5570 | } && test -s conftest.$ac_objext; then | ||
5571 | ac_cv_have_decl_LLONG_MAX=yes | ||
5572 | else | ||
5573 | echo "$as_me: failed program was:" >&5 | ||
5574 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5575 | |||
5576 | ac_cv_have_decl_LLONG_MAX=no | ||
5577 | fi | ||
5578 | |||
5579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5580 | fi | ||
5581 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5582 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5583 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5584 | have_llong_max=1 | ||
5585 | fi | ||
5586 | |||
5587 | { echo "$as_me:$LINENO: checking whether SYSTR_POLICY_KILL is declared" >&5 | ||
5588 | echo $ECHO_N "checking whether SYSTR_POLICY_KILL is declared... $ECHO_C" >&6; } | ||
5589 | if test "${ac_cv_have_decl_SYSTR_POLICY_KILL+set}" = set; then | ||
5590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5591 | else | ||
5592 | cat >conftest.$ac_ext <<_ACEOF | ||
5593 | /* confdefs.h. */ | ||
5594 | _ACEOF | ||
5595 | cat confdefs.h >>conftest.$ac_ext | ||
5596 | cat >>conftest.$ac_ext <<_ACEOF | ||
5597 | /* end confdefs.h. */ | ||
5598 | |||
5599 | #include <sys/types.h> | ||
5600 | #include <sys/param.h> | ||
5601 | #include <dev/systrace.h> | ||
5602 | |||
5603 | |||
5604 | int | ||
5605 | main () | ||
5606 | { | ||
5607 | #ifndef SYSTR_POLICY_KILL | ||
5608 | (void) SYSTR_POLICY_KILL; | ||
5609 | #endif | ||
5610 | |||
5611 | ; | ||
5612 | return 0; | ||
5613 | } | ||
5614 | _ACEOF | ||
5615 | rm -f conftest.$ac_objext | ||
5616 | if { (ac_try="$ac_compile" | ||
5617 | case "(($ac_try" in | ||
5618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5619 | *) ac_try_echo=$ac_try;; | ||
5620 | esac | ||
5621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5622 | (eval "$ac_compile") 2>conftest.er1 | ||
5623 | ac_status=$? | ||
5624 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5625 | rm -f conftest.er1 | ||
5626 | cat conftest.err >&5 | ||
5627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5628 | (exit $ac_status); } && { | ||
5629 | test -z "$ac_c_werror_flag" || | ||
5630 | test ! -s conftest.err | ||
5631 | } && test -s conftest.$ac_objext; then | ||
5632 | ac_cv_have_decl_SYSTR_POLICY_KILL=yes | ||
5633 | else | ||
5634 | echo "$as_me: failed program was:" >&5 | ||
5635 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5636 | |||
5637 | ac_cv_have_decl_SYSTR_POLICY_KILL=no | ||
5638 | fi | ||
5639 | |||
5640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5641 | fi | ||
5642 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SYSTR_POLICY_KILL" >&5 | ||
5643 | echo "${ECHO_T}$ac_cv_have_decl_SYSTR_POLICY_KILL" >&6; } | ||
5644 | if test $ac_cv_have_decl_SYSTR_POLICY_KILL = yes; then | ||
5645 | have_systr_policy_kill=1 | ||
5646 | fi | ||
5647 | |||
5648 | { echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5 | ||
5649 | echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; } | ||
5650 | if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then | ||
5651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5652 | else | ||
5653 | cat >conftest.$ac_ext <<_ACEOF | ||
5654 | /* confdefs.h. */ | ||
5655 | _ACEOF | ||
5656 | cat confdefs.h >>conftest.$ac_ext | ||
5657 | cat >>conftest.$ac_ext <<_ACEOF | ||
5658 | /* end confdefs.h. */ | ||
5659 | |||
5660 | #include <sys/types.h> | ||
5661 | #include <sys/resource.h> | ||
5662 | |||
5663 | |||
5664 | int | ||
5665 | main () | ||
5666 | { | ||
5667 | #ifndef RLIMIT_NPROC | ||
5668 | (void) RLIMIT_NPROC; | ||
5669 | #endif | ||
5670 | |||
5671 | ; | ||
5672 | return 0; | ||
5673 | } | ||
5674 | _ACEOF | ||
5675 | rm -f conftest.$ac_objext | ||
5676 | if { (ac_try="$ac_compile" | ||
5677 | case "(($ac_try" in | ||
5678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5679 | *) ac_try_echo=$ac_try;; | ||
5680 | esac | ||
5681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5682 | (eval "$ac_compile") 2>conftest.er1 | ||
5683 | ac_status=$? | ||
5684 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5685 | rm -f conftest.er1 | ||
5686 | cat conftest.err >&5 | ||
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5688 | (exit $ac_status); } && { | ||
5689 | test -z "$ac_c_werror_flag" || | ||
5690 | test ! -s conftest.err | ||
5691 | } && test -s conftest.$ac_objext; then | ||
5692 | ac_cv_have_decl_RLIMIT_NPROC=yes | ||
5693 | else | ||
5694 | echo "$as_me: failed program was:" >&5 | ||
5695 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5696 | |||
5697 | ac_cv_have_decl_RLIMIT_NPROC=no | ||
5698 | fi | ||
5699 | |||
5700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5701 | fi | ||
5702 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5 | ||
5703 | echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; } | ||
5704 | if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then | ||
5705 | |||
5706 | cat >>confdefs.h <<\_ACEOF | ||
5707 | #define HAVE_RLIMIT_NPROC | ||
5708 | _ACEOF | ||
5709 | |||
5710 | fi | ||
5711 | |||
5712 | { echo "$as_me:$LINENO: checking whether PR_SET_NO_NEW_PRIVS is declared" >&5 | ||
5713 | echo $ECHO_N "checking whether PR_SET_NO_NEW_PRIVS is declared... $ECHO_C" >&6; } | ||
5714 | if test "${ac_cv_have_decl_PR_SET_NO_NEW_PRIVS+set}" = set; then | ||
5715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5716 | else | ||
5717 | cat >conftest.$ac_ext <<_ACEOF | ||
5718 | /* confdefs.h. */ | ||
5719 | _ACEOF | ||
5720 | cat confdefs.h >>conftest.$ac_ext | ||
5721 | cat >>conftest.$ac_ext <<_ACEOF | ||
5722 | /* end confdefs.h. */ | ||
5723 | |||
5724 | #include <sys/types.h> | ||
5725 | #include <linux/prctl.h> | ||
5726 | |||
5727 | |||
5728 | int | ||
5729 | main () | ||
5730 | { | ||
5731 | #ifndef PR_SET_NO_NEW_PRIVS | ||
5732 | (void) PR_SET_NO_NEW_PRIVS; | ||
5733 | #endif | ||
5734 | |||
5735 | ; | ||
5736 | return 0; | ||
5737 | } | ||
5738 | _ACEOF | ||
5739 | rm -f conftest.$ac_objext | ||
5740 | if { (ac_try="$ac_compile" | ||
5741 | case "(($ac_try" in | ||
5742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5743 | *) ac_try_echo=$ac_try;; | ||
5744 | esac | ||
5745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5746 | (eval "$ac_compile") 2>conftest.er1 | ||
5747 | ac_status=$? | ||
5748 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5749 | rm -f conftest.er1 | ||
5750 | cat conftest.err >&5 | ||
5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5752 | (exit $ac_status); } && { | ||
5753 | test -z "$ac_c_werror_flag" || | ||
5754 | test ! -s conftest.err | ||
5755 | } && test -s conftest.$ac_objext; then | ||
5756 | ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=yes | ||
5757 | else | ||
5758 | echo "$as_me: failed program was:" >&5 | ||
5759 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5760 | |||
5761 | ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=no | ||
5762 | fi | ||
5763 | |||
5764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5765 | fi | ||
5766 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&5 | ||
5767 | echo "${ECHO_T}$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&6; } | ||
5768 | if test $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS = yes; then | ||
5769 | have_linux_no_new_privs=1 | ||
5770 | fi | ||
5771 | |||
5772 | |||
5773 | openssl=yes | ||
5774 | ssh1=no | ||
5775 | |||
5776 | # Check whether --with-openssl was given. | ||
5777 | if test "${with_openssl+set}" = set; then | ||
5778 | withval=$with_openssl; if test "x$withval" = "xno" ; then | ||
5779 | openssl=no | ||
5780 | ssh1=no | ||
5781 | fi | ||
5782 | |||
5783 | |||
5784 | fi | ||
5785 | |||
5786 | { echo "$as_me:$LINENO: checking whether OpenSSL will be used for cryptography" >&5 | ||
5787 | echo $ECHO_N "checking whether OpenSSL will be used for cryptography... $ECHO_C" >&6; } | ||
5788 | if test "x$openssl" = "xyes" ; then | ||
5789 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5790 | echo "${ECHO_T}yes" >&6; } | ||
5791 | |||
5792 | cat >>confdefs.h <<_ACEOF | ||
5793 | #define WITH_OPENSSL 1 | ||
5794 | _ACEOF | ||
5795 | |||
5796 | else | ||
5797 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5798 | echo "${ECHO_T}no" >&6; } | ||
5799 | fi | ||
5800 | |||
5801 | |||
5802 | # Check whether --with-ssh1 was given. | ||
5803 | if test "${with_ssh1+set}" = set; then | ||
5804 | withval=$with_ssh1; | ||
5805 | if test "x$withval" = "xyes" ; then | ||
5806 | if test "x$openssl" = "xno" ; then | ||
5807 | { { echo "$as_me:$LINENO: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&5 | ||
5808 | echo "$as_me: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&2;} | ||
5809 | { (exit 1); exit 1; }; } | ||
5810 | fi | ||
5811 | ssh1=yes | ||
5812 | elif test "x$withval" = "xno" ; then | ||
5813 | ssh1=no | ||
5814 | else | ||
5815 | { { echo "$as_me:$LINENO: error: unknown --with-ssh1 argument" >&5 | ||
5816 | echo "$as_me: error: unknown --with-ssh1 argument" >&2;} | ||
5817 | { (exit 1); exit 1; }; } | ||
5818 | fi | ||
5819 | |||
5820 | |||
5821 | fi | ||
5822 | |||
5823 | { echo "$as_me:$LINENO: checking whether SSH protocol 1 support is enabled" >&5 | ||
5824 | echo $ECHO_N "checking whether SSH protocol 1 support is enabled... $ECHO_C" >&6; } | ||
5825 | if test "x$ssh1" = "xyes" ; then | ||
5826 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5827 | echo "${ECHO_T}yes" >&6; } | ||
5828 | |||
5829 | cat >>confdefs.h <<_ACEOF | ||
5830 | #define WITH_SSH1 1 | ||
5831 | _ACEOF | ||
5832 | |||
5833 | else | ||
5834 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5835 | echo "${ECHO_T}no" >&6; } | ||
5836 | fi | ||
5837 | |||
5838 | use_stack_protector=1 | ||
5839 | use_toolchain_hardening=1 | ||
5840 | |||
5841 | # Check whether --with-stackprotect was given. | ||
5842 | if test "${with_stackprotect+set}" = set; then | ||
5843 | withval=$with_stackprotect; | ||
5844 | if test "x$withval" = "xno"; then | ||
5845 | use_stack_protector=0 | ||
5846 | fi | ||
5847 | fi | ||
5848 | |||
5849 | |||
5850 | # Check whether --with-hardening was given. | ||
5851 | if test "${with_hardening+set}" = set; then | ||
5852 | withval=$with_hardening; | ||
5853 | if test "x$withval" = "xno"; then | ||
5854 | use_toolchain_hardening=0 | ||
5855 | fi | ||
5856 | fi | ||
5857 | |||
5858 | |||
5859 | # We use -Werror for the tests only so that we catch warnings like "this is | ||
5860 | # on by default" for things like -fPIE. | ||
5861 | { echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5 | ||
5862 | echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; } | ||
5863 | saved_CFLAGS="$CFLAGS" | ||
5864 | CFLAGS="$CFLAGS -Werror" | ||
5865 | cat >conftest.$ac_ext <<_ACEOF | ||
5866 | /* confdefs.h. */ | ||
5867 | _ACEOF | ||
5868 | cat confdefs.h >>conftest.$ac_ext | ||
5869 | cat >>conftest.$ac_ext <<_ACEOF | ||
5870 | /* end confdefs.h. */ | ||
5871 | int main(void) { return 0; } | ||
5872 | _ACEOF | ||
5873 | rm -f conftest.$ac_objext | ||
5874 | if { (ac_try="$ac_compile" | ||
5875 | case "(($ac_try" in | ||
5876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5877 | *) ac_try_echo=$ac_try;; | ||
5878 | esac | ||
5879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5880 | (eval "$ac_compile") 2>conftest.er1 | ||
5881 | ac_status=$? | ||
5882 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5883 | rm -f conftest.er1 | ||
5884 | cat conftest.err >&5 | ||
5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5886 | (exit $ac_status); } && { | ||
5887 | test -z "$ac_c_werror_flag" || | ||
5888 | test ! -s conftest.err | ||
5889 | } && test -s conftest.$ac_objext; then | ||
5890 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5891 | echo "${ECHO_T}yes" >&6; } | ||
5892 | WERROR="-Werror" | ||
5893 | else | ||
5894 | echo "$as_me: failed program was:" >&5 | ||
5895 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5896 | |||
5897 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5898 | echo "${ECHO_T}no" >&6; } | ||
5899 | WERROR="" | ||
5900 | |||
5901 | fi | ||
5902 | |||
5903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5904 | CFLAGS="$saved_CFLAGS" | ||
5905 | |||
5906 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5907 | { | ||
5908 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Qunused-arguments" >&5 | ||
5909 | echo $ECHO_N "checking if $CC supports compile flag -Qunused-arguments... $ECHO_C" >&6; } | ||
5910 | saved_CFLAGS="$CFLAGS" | ||
5911 | CFLAGS="$CFLAGS $WERROR -Qunused-arguments" | ||
5912 | _define_flag="" | ||
5913 | test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" | ||
5914 | cat >conftest.$ac_ext <<_ACEOF | ||
5915 | /* confdefs.h. */ | ||
5916 | _ACEOF | ||
5917 | cat confdefs.h >>conftest.$ac_ext | ||
5918 | cat >>conftest.$ac_ext <<_ACEOF | ||
5919 | /* end confdefs.h. */ | ||
5920 | |||
5921 | #include <stdlib.h> | ||
5922 | #include <stdio.h> | ||
5923 | int main(int argc, char **argv) { | ||
5924 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5925 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5926 | float l = i * 2.1; | ||
5927 | double m = l / 0.5; | ||
5928 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5929 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5930 | exit(0); | ||
5931 | } | ||
5932 | |||
5933 | _ACEOF | ||
5934 | rm -f conftest.$ac_objext | ||
5935 | if { (ac_try="$ac_compile" | ||
5936 | case "(($ac_try" in | ||
5937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5938 | *) ac_try_echo=$ac_try;; | ||
5939 | esac | ||
5940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5941 | (eval "$ac_compile") 2>conftest.er1 | ||
5942 | ac_status=$? | ||
5943 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5944 | rm -f conftest.er1 | ||
5945 | cat conftest.err >&5 | ||
5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5947 | (exit $ac_status); } && { | ||
5948 | test -z "$ac_c_werror_flag" || | ||
5949 | test ! -s conftest.err | ||
5950 | } && test -s conftest.$ac_objext; then | ||
5951 | |||
5952 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5953 | then | ||
5954 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5955 | echo "${ECHO_T}no" >&6; } | ||
5956 | CFLAGS="$saved_CFLAGS" | ||
5957 | else | ||
5958 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5959 | echo "${ECHO_T}yes" >&6; } | ||
5960 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5961 | fi | ||
5962 | else | ||
5963 | echo "$as_me: failed program was:" >&5 | ||
5964 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5965 | |||
5966 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5967 | echo "${ECHO_T}no" >&6; } | ||
5968 | CFLAGS="$saved_CFLAGS" | ||
5969 | |||
5970 | fi | ||
5971 | |||
5972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5973 | } | ||
5974 | { | ||
5975 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunknown-warning-option" >&5 | ||
5976 | echo $ECHO_N "checking if $CC supports compile flag -Wunknown-warning-option... $ECHO_C" >&6; } | ||
5977 | saved_CFLAGS="$CFLAGS" | ||
5978 | CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" | ||
5979 | _define_flag="" | ||
5980 | test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" | ||
5981 | cat >conftest.$ac_ext <<_ACEOF | ||
5982 | /* confdefs.h. */ | ||
5983 | _ACEOF | ||
5984 | cat confdefs.h >>conftest.$ac_ext | ||
5985 | cat >>conftest.$ac_ext <<_ACEOF | ||
5986 | /* end confdefs.h. */ | ||
5987 | |||
5988 | #include <stdlib.h> | ||
5989 | #include <stdio.h> | ||
5990 | int main(int argc, char **argv) { | ||
5991 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5992 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5993 | float l = i * 2.1; | ||
5994 | double m = l / 0.5; | ||
5995 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5996 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5997 | exit(0); | ||
5998 | } | ||
5999 | |||
6000 | _ACEOF | ||
6001 | rm -f conftest.$ac_objext | ||
6002 | if { (ac_try="$ac_compile" | ||
6003 | case "(($ac_try" in | ||
6004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6005 | *) ac_try_echo=$ac_try;; | ||
6006 | esac | ||
6007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6008 | (eval "$ac_compile") 2>conftest.er1 | ||
6009 | ac_status=$? | ||
6010 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6011 | rm -f conftest.er1 | ||
6012 | cat conftest.err >&5 | ||
6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6014 | (exit $ac_status); } && { | ||
6015 | test -z "$ac_c_werror_flag" || | ||
6016 | test ! -s conftest.err | ||
6017 | } && test -s conftest.$ac_objext; then | ||
6018 | |||
6019 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6020 | then | ||
6021 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6022 | echo "${ECHO_T}no" >&6; } | ||
6023 | CFLAGS="$saved_CFLAGS" | ||
6024 | else | ||
6025 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6026 | echo "${ECHO_T}yes" >&6; } | ||
6027 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6028 | fi | ||
6029 | else | ||
6030 | echo "$as_me: failed program was:" >&5 | ||
6031 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6032 | |||
6033 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6034 | echo "${ECHO_T}no" >&6; } | ||
6035 | CFLAGS="$saved_CFLAGS" | ||
6036 | |||
6037 | fi | ||
6038 | |||
6039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6040 | } | ||
6041 | { | ||
6042 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wall" >&5 | ||
6043 | echo $ECHO_N "checking if $CC supports compile flag -Wall... $ECHO_C" >&6; } | ||
6044 | saved_CFLAGS="$CFLAGS" | ||
6045 | CFLAGS="$CFLAGS $WERROR -Wall" | ||
6046 | _define_flag="" | ||
6047 | test "x$_define_flag" = "x" && _define_flag="-Wall" | ||
6048 | cat >conftest.$ac_ext <<_ACEOF | ||
6049 | /* confdefs.h. */ | ||
6050 | _ACEOF | ||
6051 | cat confdefs.h >>conftest.$ac_ext | ||
6052 | cat >>conftest.$ac_ext <<_ACEOF | ||
6053 | /* end confdefs.h. */ | ||
6054 | |||
6055 | #include <stdlib.h> | ||
6056 | #include <stdio.h> | ||
6057 | int main(int argc, char **argv) { | ||
6058 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6059 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6060 | float l = i * 2.1; | ||
6061 | double m = l / 0.5; | ||
6062 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6063 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6064 | exit(0); | ||
6065 | } | ||
6066 | |||
6067 | _ACEOF | ||
6068 | rm -f conftest.$ac_objext | ||
6069 | if { (ac_try="$ac_compile" | ||
6070 | case "(($ac_try" in | ||
6071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6072 | *) ac_try_echo=$ac_try;; | ||
6073 | esac | ||
6074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6075 | (eval "$ac_compile") 2>conftest.er1 | ||
6076 | ac_status=$? | ||
6077 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6078 | rm -f conftest.er1 | ||
6079 | cat conftest.err >&5 | ||
6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6081 | (exit $ac_status); } && { | ||
6082 | test -z "$ac_c_werror_flag" || | ||
6083 | test ! -s conftest.err | ||
6084 | } && test -s conftest.$ac_objext; then | ||
6085 | |||
6086 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6087 | then | ||
6088 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6089 | echo "${ECHO_T}no" >&6; } | ||
6090 | CFLAGS="$saved_CFLAGS" | ||
6091 | else | ||
6092 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6093 | echo "${ECHO_T}yes" >&6; } | ||
6094 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6095 | fi | ||
6096 | else | ||
6097 | echo "$as_me: failed program was:" >&5 | ||
6098 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6099 | |||
6100 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6101 | echo "${ECHO_T}no" >&6; } | ||
6102 | CFLAGS="$saved_CFLAGS" | ||
6103 | |||
6104 | fi | ||
6105 | |||
6106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6107 | } | ||
6108 | { | ||
6109 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-arith" >&5 | ||
6110 | echo $ECHO_N "checking if $CC supports compile flag -Wpointer-arith... $ECHO_C" >&6; } | ||
6111 | saved_CFLAGS="$CFLAGS" | ||
6112 | CFLAGS="$CFLAGS $WERROR -Wpointer-arith" | ||
6113 | _define_flag="" | ||
6114 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" | ||
6115 | cat >conftest.$ac_ext <<_ACEOF | ||
6116 | /* confdefs.h. */ | ||
6117 | _ACEOF | ||
6118 | cat confdefs.h >>conftest.$ac_ext | ||
6119 | cat >>conftest.$ac_ext <<_ACEOF | ||
6120 | /* end confdefs.h. */ | ||
6121 | |||
6122 | #include <stdlib.h> | ||
6123 | #include <stdio.h> | ||
6124 | int main(int argc, char **argv) { | ||
6125 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6126 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6127 | float l = i * 2.1; | ||
6128 | double m = l / 0.5; | ||
6129 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6130 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6131 | exit(0); | ||
6132 | } | ||
6133 | |||
6134 | _ACEOF | ||
6135 | rm -f conftest.$ac_objext | ||
6136 | if { (ac_try="$ac_compile" | ||
6137 | case "(($ac_try" in | ||
6138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6139 | *) ac_try_echo=$ac_try;; | ||
6140 | esac | ||
6141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6142 | (eval "$ac_compile") 2>conftest.er1 | ||
6143 | ac_status=$? | ||
6144 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6145 | rm -f conftest.er1 | ||
6146 | cat conftest.err >&5 | ||
6147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6148 | (exit $ac_status); } && { | ||
6149 | test -z "$ac_c_werror_flag" || | ||
6150 | test ! -s conftest.err | ||
6151 | } && test -s conftest.$ac_objext; then | ||
6152 | |||
6153 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6154 | then | ||
6155 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6156 | echo "${ECHO_T}no" >&6; } | ||
6157 | CFLAGS="$saved_CFLAGS" | ||
6158 | else | ||
6159 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6160 | echo "${ECHO_T}yes" >&6; } | ||
6161 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6162 | fi | ||
6163 | else | ||
6164 | echo "$as_me: failed program was:" >&5 | ||
6165 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6166 | |||
6167 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6168 | echo "${ECHO_T}no" >&6; } | ||
6169 | CFLAGS="$saved_CFLAGS" | ||
6170 | |||
6171 | fi | ||
6172 | |||
6173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6174 | } | ||
6175 | { | ||
6176 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wuninitialized" >&5 | ||
6177 | echo $ECHO_N "checking if $CC supports compile flag -Wuninitialized... $ECHO_C" >&6; } | ||
6178 | saved_CFLAGS="$CFLAGS" | ||
6179 | CFLAGS="$CFLAGS $WERROR -Wuninitialized" | ||
6180 | _define_flag="" | ||
6181 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" | ||
6182 | cat >conftest.$ac_ext <<_ACEOF | ||
6183 | /* confdefs.h. */ | ||
6184 | _ACEOF | ||
6185 | cat confdefs.h >>conftest.$ac_ext | ||
6186 | cat >>conftest.$ac_ext <<_ACEOF | ||
6187 | /* end confdefs.h. */ | ||
6188 | |||
6189 | #include <stdlib.h> | ||
6190 | #include <stdio.h> | ||
6191 | int main(int argc, char **argv) { | ||
6192 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6193 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6194 | float l = i * 2.1; | ||
6195 | double m = l / 0.5; | ||
6196 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6197 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6198 | exit(0); | ||
6199 | } | ||
6200 | |||
6201 | _ACEOF | ||
6202 | rm -f conftest.$ac_objext | ||
6203 | if { (ac_try="$ac_compile" | ||
6204 | case "(($ac_try" in | ||
6205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6206 | *) ac_try_echo=$ac_try;; | ||
6207 | esac | ||
6208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6209 | (eval "$ac_compile") 2>conftest.er1 | ||
6210 | ac_status=$? | ||
6211 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6212 | rm -f conftest.er1 | ||
6213 | cat conftest.err >&5 | ||
6214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6215 | (exit $ac_status); } && { | ||
6216 | test -z "$ac_c_werror_flag" || | ||
6217 | test ! -s conftest.err | ||
6218 | } && test -s conftest.$ac_objext; then | ||
6219 | |||
6220 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6221 | then | ||
6222 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6223 | echo "${ECHO_T}no" >&6; } | ||
6224 | CFLAGS="$saved_CFLAGS" | ||
6225 | else | ||
6226 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6227 | echo "${ECHO_T}yes" >&6; } | ||
6228 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6229 | fi | ||
6230 | else | ||
6231 | echo "$as_me: failed program was:" >&5 | ||
6232 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6233 | |||
6234 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6235 | echo "${ECHO_T}no" >&6; } | ||
6236 | CFLAGS="$saved_CFLAGS" | ||
6237 | |||
6238 | fi | ||
6239 | |||
6240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6241 | } | ||
6242 | { | ||
6243 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsign-compare" >&5 | ||
6244 | echo $ECHO_N "checking if $CC supports compile flag -Wsign-compare... $ECHO_C" >&6; } | ||
6245 | saved_CFLAGS="$CFLAGS" | ||
6246 | CFLAGS="$CFLAGS $WERROR -Wsign-compare" | ||
6247 | _define_flag="" | ||
6248 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" | ||
6249 | cat >conftest.$ac_ext <<_ACEOF | ||
6250 | /* confdefs.h. */ | ||
6251 | _ACEOF | ||
6252 | cat confdefs.h >>conftest.$ac_ext | ||
6253 | cat >>conftest.$ac_ext <<_ACEOF | ||
6254 | /* end confdefs.h. */ | ||
6255 | |||
6256 | #include <stdlib.h> | ||
6257 | #include <stdio.h> | ||
6258 | int main(int argc, char **argv) { | ||
6259 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6260 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6261 | float l = i * 2.1; | ||
6262 | double m = l / 0.5; | ||
6263 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6264 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6265 | exit(0); | ||
6266 | } | ||
6267 | |||
6268 | _ACEOF | ||
6269 | rm -f conftest.$ac_objext | ||
6270 | if { (ac_try="$ac_compile" | ||
6271 | case "(($ac_try" in | ||
6272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6273 | *) ac_try_echo=$ac_try;; | ||
6274 | esac | ||
6275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6276 | (eval "$ac_compile") 2>conftest.er1 | ||
6277 | ac_status=$? | ||
6278 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6279 | rm -f conftest.er1 | ||
6280 | cat conftest.err >&5 | ||
6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6282 | (exit $ac_status); } && { | ||
6283 | test -z "$ac_c_werror_flag" || | ||
6284 | test ! -s conftest.err | ||
6285 | } && test -s conftest.$ac_objext; then | ||
6286 | |||
6287 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6288 | then | ||
6289 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6290 | echo "${ECHO_T}no" >&6; } | ||
6291 | CFLAGS="$saved_CFLAGS" | ||
6292 | else | ||
6293 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6294 | echo "${ECHO_T}yes" >&6; } | ||
6295 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6296 | fi | ||
6297 | else | ||
6298 | echo "$as_me: failed program was:" >&5 | ||
6299 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6300 | |||
6301 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6302 | echo "${ECHO_T}no" >&6; } | ||
6303 | CFLAGS="$saved_CFLAGS" | ||
6304 | |||
6305 | fi | ||
6306 | |||
6307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6308 | } | ||
6309 | { | ||
6310 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wformat-security" >&5 | ||
6311 | echo $ECHO_N "checking if $CC supports compile flag -Wformat-security... $ECHO_C" >&6; } | ||
6312 | saved_CFLAGS="$CFLAGS" | ||
6313 | CFLAGS="$CFLAGS $WERROR -Wformat-security" | ||
6314 | _define_flag="" | ||
6315 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" | ||
6316 | cat >conftest.$ac_ext <<_ACEOF | ||
6317 | /* confdefs.h. */ | ||
6318 | _ACEOF | ||
6319 | cat confdefs.h >>conftest.$ac_ext | ||
6320 | cat >>conftest.$ac_ext <<_ACEOF | ||
6321 | /* end confdefs.h. */ | ||
6322 | |||
6323 | #include <stdlib.h> | ||
6324 | #include <stdio.h> | ||
6325 | int main(int argc, char **argv) { | ||
6326 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6327 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6328 | float l = i * 2.1; | ||
6329 | double m = l / 0.5; | ||
6330 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6331 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6332 | exit(0); | ||
6333 | } | ||
6334 | |||
6335 | _ACEOF | ||
6336 | rm -f conftest.$ac_objext | ||
6337 | if { (ac_try="$ac_compile" | ||
6338 | case "(($ac_try" in | ||
6339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6340 | *) ac_try_echo=$ac_try;; | ||
6341 | esac | ||
6342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6343 | (eval "$ac_compile") 2>conftest.er1 | ||
6344 | ac_status=$? | ||
6345 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6346 | rm -f conftest.er1 | ||
6347 | cat conftest.err >&5 | ||
6348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6349 | (exit $ac_status); } && { | ||
6350 | test -z "$ac_c_werror_flag" || | ||
6351 | test ! -s conftest.err | ||
6352 | } && test -s conftest.$ac_objext; then | ||
6353 | |||
6354 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6355 | then | ||
6356 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6357 | echo "${ECHO_T}no" >&6; } | ||
6358 | CFLAGS="$saved_CFLAGS" | ||
6359 | else | ||
6360 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6361 | echo "${ECHO_T}yes" >&6; } | ||
6362 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6363 | fi | ||
6364 | else | ||
6365 | echo "$as_me: failed program was:" >&5 | ||
6366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6367 | |||
6368 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6369 | echo "${ECHO_T}no" >&6; } | ||
6370 | CFLAGS="$saved_CFLAGS" | ||
6371 | |||
6372 | fi | ||
6373 | |||
6374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6375 | } | ||
6376 | { | ||
6377 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 | ||
6378 | echo $ECHO_N "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... $ECHO_C" >&6; } | ||
6379 | saved_CFLAGS="$CFLAGS" | ||
6380 | CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" | ||
6381 | _define_flag="" | ||
6382 | test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" | ||
6383 | cat >conftest.$ac_ext <<_ACEOF | ||
6384 | /* confdefs.h. */ | ||
6385 | _ACEOF | ||
6386 | cat confdefs.h >>conftest.$ac_ext | ||
6387 | cat >>conftest.$ac_ext <<_ACEOF | ||
6388 | /* end confdefs.h. */ | ||
6389 | |||
6390 | #include <stdlib.h> | ||
6391 | #include <stdio.h> | ||
6392 | int main(int argc, char **argv) { | ||
6393 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6394 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6395 | float l = i * 2.1; | ||
6396 | double m = l / 0.5; | ||
6397 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6398 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6399 | exit(0); | ||
6400 | } | ||
6401 | |||
6402 | _ACEOF | ||
6403 | rm -f conftest.$ac_objext | ||
6404 | if { (ac_try="$ac_compile" | ||
6405 | case "(($ac_try" in | ||
6406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6407 | *) ac_try_echo=$ac_try;; | ||
6408 | esac | ||
6409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6410 | (eval "$ac_compile") 2>conftest.er1 | ||
6411 | ac_status=$? | ||
6412 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6413 | rm -f conftest.er1 | ||
6414 | cat conftest.err >&5 | ||
6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6416 | (exit $ac_status); } && { | ||
6417 | test -z "$ac_c_werror_flag" || | ||
6418 | test ! -s conftest.err | ||
6419 | } && test -s conftest.$ac_objext; then | ||
6420 | |||
6421 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6422 | then | ||
6423 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6424 | echo "${ECHO_T}no" >&6; } | ||
6425 | CFLAGS="$saved_CFLAGS" | ||
6426 | else | ||
6427 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6428 | echo "${ECHO_T}yes" >&6; } | ||
6429 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6430 | fi | ||
6431 | else | ||
6432 | echo "$as_me: failed program was:" >&5 | ||
6433 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6434 | |||
6435 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6436 | echo "${ECHO_T}no" >&6; } | ||
6437 | CFLAGS="$saved_CFLAGS" | ||
6438 | |||
6439 | fi | ||
6440 | |||
6441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6442 | } | ||
6443 | { | ||
6444 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-sign" >&5 | ||
6445 | echo $ECHO_N "checking if $CC supports compile flag -Wpointer-sign... $ECHO_C" >&6; } | ||
6446 | saved_CFLAGS="$CFLAGS" | ||
6447 | CFLAGS="$CFLAGS $WERROR -Wpointer-sign" | ||
6448 | _define_flag="-Wno-pointer-sign" | ||
6449 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" | ||
6450 | cat >conftest.$ac_ext <<_ACEOF | ||
6451 | /* confdefs.h. */ | ||
6452 | _ACEOF | ||
6453 | cat confdefs.h >>conftest.$ac_ext | ||
6454 | cat >>conftest.$ac_ext <<_ACEOF | ||
6455 | /* end confdefs.h. */ | ||
6456 | |||
6457 | #include <stdlib.h> | ||
6458 | #include <stdio.h> | ||
6459 | int main(int argc, char **argv) { | ||
6460 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6461 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6462 | float l = i * 2.1; | ||
6463 | double m = l / 0.5; | ||
6464 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6465 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6466 | exit(0); | ||
6467 | } | ||
6468 | |||
6469 | _ACEOF | ||
6470 | rm -f conftest.$ac_objext | ||
6471 | if { (ac_try="$ac_compile" | ||
6472 | case "(($ac_try" in | ||
6473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6474 | *) ac_try_echo=$ac_try;; | ||
6475 | esac | ||
6476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6477 | (eval "$ac_compile") 2>conftest.er1 | ||
6478 | ac_status=$? | ||
6479 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6480 | rm -f conftest.er1 | ||
6481 | cat conftest.err >&5 | ||
6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6483 | (exit $ac_status); } && { | ||
6484 | test -z "$ac_c_werror_flag" || | ||
6485 | test ! -s conftest.err | ||
6486 | } && test -s conftest.$ac_objext; then | ||
6487 | |||
6488 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6489 | then | ||
6490 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6491 | echo "${ECHO_T}no" >&6; } | ||
6492 | CFLAGS="$saved_CFLAGS" | ||
6493 | else | ||
6494 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6495 | echo "${ECHO_T}yes" >&6; } | ||
6496 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6497 | fi | ||
6498 | else | ||
6499 | echo "$as_me: failed program was:" >&5 | ||
6500 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6501 | |||
6502 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6503 | echo "${ECHO_T}no" >&6; } | ||
6504 | CFLAGS="$saved_CFLAGS" | ||
6505 | |||
6506 | fi | ||
6507 | |||
6508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6509 | } | ||
6510 | { | ||
6511 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunused-result" >&5 | ||
6512 | echo $ECHO_N "checking if $CC supports compile flag -Wunused-result... $ECHO_C" >&6; } | ||
6513 | saved_CFLAGS="$CFLAGS" | ||
6514 | CFLAGS="$CFLAGS $WERROR -Wunused-result" | ||
6515 | _define_flag="-Wno-unused-result" | ||
6516 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" | ||
6517 | cat >conftest.$ac_ext <<_ACEOF | ||
6518 | /* confdefs.h. */ | ||
6519 | _ACEOF | ||
6520 | cat confdefs.h >>conftest.$ac_ext | ||
6521 | cat >>conftest.$ac_ext <<_ACEOF | ||
6522 | /* end confdefs.h. */ | ||
6523 | |||
6524 | #include <stdlib.h> | ||
6525 | #include <stdio.h> | ||
6526 | int main(int argc, char **argv) { | ||
6527 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6528 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6529 | float l = i * 2.1; | ||
6530 | double m = l / 0.5; | ||
6531 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6532 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6533 | exit(0); | ||
6534 | } | ||
6535 | |||
6536 | _ACEOF | ||
6537 | rm -f conftest.$ac_objext | ||
6538 | if { (ac_try="$ac_compile" | ||
6539 | case "(($ac_try" in | ||
6540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6541 | *) ac_try_echo=$ac_try;; | ||
6542 | esac | ||
6543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6544 | (eval "$ac_compile") 2>conftest.er1 | ||
6545 | ac_status=$? | ||
6546 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6547 | rm -f conftest.er1 | ||
6548 | cat conftest.err >&5 | ||
6549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6550 | (exit $ac_status); } && { | ||
6551 | test -z "$ac_c_werror_flag" || | ||
6552 | test ! -s conftest.err | ||
6553 | } && test -s conftest.$ac_objext; then | ||
6554 | |||
6555 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6556 | then | ||
6557 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6558 | echo "${ECHO_T}no" >&6; } | ||
6559 | CFLAGS="$saved_CFLAGS" | ||
6560 | else | ||
6561 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6562 | echo "${ECHO_T}yes" >&6; } | ||
6563 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6564 | fi | ||
6565 | else | ||
6566 | echo "$as_me: failed program was:" >&5 | ||
6567 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6568 | |||
6569 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6570 | echo "${ECHO_T}no" >&6; } | ||
6571 | CFLAGS="$saved_CFLAGS" | ||
6572 | |||
6573 | fi | ||
6574 | |||
6575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6576 | } | ||
6577 | { | ||
6578 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -fno-strict-aliasing" >&5 | ||
6579 | echo $ECHO_N "checking if $CC supports compile flag -fno-strict-aliasing... $ECHO_C" >&6; } | ||
6580 | saved_CFLAGS="$CFLAGS" | ||
6581 | CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" | ||
6582 | _define_flag="" | ||
6583 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" | ||
6584 | cat >conftest.$ac_ext <<_ACEOF | ||
6585 | /* confdefs.h. */ | ||
6586 | _ACEOF | ||
6587 | cat confdefs.h >>conftest.$ac_ext | ||
6588 | cat >>conftest.$ac_ext <<_ACEOF | ||
6589 | /* end confdefs.h. */ | ||
6590 | |||
6591 | #include <stdlib.h> | ||
6592 | #include <stdio.h> | ||
6593 | int main(int argc, char **argv) { | ||
6594 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6595 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6596 | float l = i * 2.1; | ||
6597 | double m = l / 0.5; | ||
6598 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6599 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6600 | exit(0); | ||
6601 | } | ||
6602 | |||
6603 | _ACEOF | ||
6604 | rm -f conftest.$ac_objext | ||
6605 | if { (ac_try="$ac_compile" | ||
6606 | case "(($ac_try" in | ||
6607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6608 | *) ac_try_echo=$ac_try;; | ||
6609 | esac | ||
6610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6611 | (eval "$ac_compile") 2>conftest.er1 | ||
6612 | ac_status=$? | ||
6613 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6614 | rm -f conftest.er1 | ||
6615 | cat conftest.err >&5 | ||
6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6617 | (exit $ac_status); } && { | ||
6618 | test -z "$ac_c_werror_flag" || | ||
6619 | test ! -s conftest.err | ||
6620 | } && test -s conftest.$ac_objext; then | ||
6621 | |||
6622 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6623 | then | ||
6624 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6625 | echo "${ECHO_T}no" >&6; } | ||
6626 | CFLAGS="$saved_CFLAGS" | ||
6627 | else | ||
6628 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6629 | echo "${ECHO_T}yes" >&6; } | ||
6630 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6631 | fi | ||
6632 | else | ||
6633 | echo "$as_me: failed program was:" >&5 | ||
6634 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6635 | |||
6636 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6637 | echo "${ECHO_T}no" >&6; } | ||
6638 | CFLAGS="$saved_CFLAGS" | ||
6639 | |||
6640 | fi | ||
6641 | |||
6642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6643 | } | ||
6644 | { | ||
6645 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 | ||
6646 | echo $ECHO_N "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... $ECHO_C" >&6; } | ||
6647 | saved_CFLAGS="$CFLAGS" | ||
6648 | CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" | ||
6649 | _define_flag="" | ||
6650 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" | ||
6651 | cat >conftest.$ac_ext <<_ACEOF | ||
6652 | /* confdefs.h. */ | ||
6653 | _ACEOF | ||
6654 | cat confdefs.h >>conftest.$ac_ext | ||
6655 | cat >>conftest.$ac_ext <<_ACEOF | ||
6656 | /* end confdefs.h. */ | ||
6657 | |||
6658 | #include <stdlib.h> | ||
6659 | #include <stdio.h> | ||
6660 | int main(int argc, char **argv) { | ||
6661 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6662 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6663 | float l = i * 2.1; | ||
6664 | double m = l / 0.5; | ||
6665 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6666 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6667 | exit(0); | ||
6668 | } | ||
6669 | |||
6670 | _ACEOF | ||
6671 | rm -f conftest.$ac_objext | ||
6672 | if { (ac_try="$ac_compile" | ||
6673 | case "(($ac_try" in | ||
6674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6675 | *) ac_try_echo=$ac_try;; | ||
6676 | esac | ||
6677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6678 | (eval "$ac_compile") 2>conftest.er1 | ||
6679 | ac_status=$? | ||
6680 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6681 | rm -f conftest.er1 | ||
6682 | cat conftest.err >&5 | ||
6683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6684 | (exit $ac_status); } && { | ||
6685 | test -z "$ac_c_werror_flag" || | ||
6686 | test ! -s conftest.err | ||
6687 | } && test -s conftest.$ac_objext; then | ||
6688 | |||
6689 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6690 | then | ||
6691 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6692 | echo "${ECHO_T}no" >&6; } | ||
6693 | CFLAGS="$saved_CFLAGS" | ||
6694 | else | ||
6695 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6696 | echo "${ECHO_T}yes" >&6; } | ||
6697 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6698 | fi | ||
6699 | else | ||
6700 | echo "$as_me: failed program was:" >&5 | ||
6701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6702 | |||
6703 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6704 | echo "${ECHO_T}no" >&6; } | ||
6705 | CFLAGS="$saved_CFLAGS" | ||
6706 | |||
6707 | fi | ||
6708 | |||
6709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6710 | } | ||
6711 | if test "x$use_toolchain_hardening" = "x1"; then | ||
6712 | { | ||
6713 | { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,relro" >&5 | ||
6714 | echo $ECHO_N "checking if $LD supports link flag -Wl,-z,relro... $ECHO_C" >&6; } | ||
6715 | saved_LDFLAGS="$LDFLAGS" | ||
6716 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" | ||
6717 | _define_flag="" | ||
6718 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" | ||
6719 | cat >conftest.$ac_ext <<_ACEOF | ||
6720 | /* confdefs.h. */ | ||
6721 | _ACEOF | ||
6722 | cat confdefs.h >>conftest.$ac_ext | ||
6723 | cat >>conftest.$ac_ext <<_ACEOF | ||
6724 | /* end confdefs.h. */ | ||
6725 | |||
6726 | #include <stdlib.h> | ||
6727 | #include <stdio.h> | ||
6728 | int main(int argc, char **argv) { | ||
6729 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6730 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6731 | float l = i * 2.1; | ||
6732 | double m = l / 0.5; | ||
6733 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6734 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6735 | exit(0); | ||
6736 | } | ||
6737 | |||
6738 | _ACEOF | ||
6739 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6740 | if { (ac_try="$ac_link" | ||
6741 | case "(($ac_try" in | ||
6742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6743 | *) ac_try_echo=$ac_try;; | ||
6744 | esac | ||
6745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6746 | (eval "$ac_link") 2>conftest.er1 | ||
6747 | ac_status=$? | ||
6748 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6749 | rm -f conftest.er1 | ||
6750 | cat conftest.err >&5 | ||
6751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6752 | (exit $ac_status); } && { | ||
6753 | test -z "$ac_c_werror_flag" || | ||
6754 | test ! -s conftest.err | ||
6755 | } && test -s conftest$ac_exeext && | ||
6756 | $as_test_x conftest$ac_exeext; then | ||
6757 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6758 | echo "${ECHO_T}yes" >&6; } | ||
6759 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6760 | else | ||
6761 | echo "$as_me: failed program was:" >&5 | ||
6762 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6763 | |||
6764 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6765 | echo "${ECHO_T}no" >&6; } | ||
6766 | LDFLAGS="$saved_LDFLAGS" | ||
6767 | |||
6768 | fi | ||
6769 | |||
6770 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6771 | conftest$ac_exeext conftest.$ac_ext | ||
6772 | } | ||
6773 | { | ||
6774 | { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,now" >&5 | ||
6775 | echo $ECHO_N "checking if $LD supports link flag -Wl,-z,now... $ECHO_C" >&6; } | ||
6776 | saved_LDFLAGS="$LDFLAGS" | ||
6777 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" | ||
6778 | _define_flag="" | ||
6779 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" | ||
6780 | cat >conftest.$ac_ext <<_ACEOF | ||
6781 | /* confdefs.h. */ | ||
6782 | _ACEOF | ||
6783 | cat confdefs.h >>conftest.$ac_ext | ||
6784 | cat >>conftest.$ac_ext <<_ACEOF | ||
6785 | /* end confdefs.h. */ | ||
6786 | |||
6787 | #include <stdlib.h> | ||
6788 | #include <stdio.h> | ||
6789 | int main(int argc, char **argv) { | ||
6790 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6791 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6792 | float l = i * 2.1; | ||
6793 | double m = l / 0.5; | ||
6794 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6795 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6796 | exit(0); | ||
6797 | } | ||
6798 | |||
6799 | _ACEOF | ||
6800 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6801 | if { (ac_try="$ac_link" | ||
6802 | case "(($ac_try" in | ||
6803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6804 | *) ac_try_echo=$ac_try;; | ||
6805 | esac | ||
6806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6807 | (eval "$ac_link") 2>conftest.er1 | ||
6808 | ac_status=$? | ||
6809 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6810 | rm -f conftest.er1 | ||
6811 | cat conftest.err >&5 | ||
6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6813 | (exit $ac_status); } && { | ||
6814 | test -z "$ac_c_werror_flag" || | ||
6815 | test ! -s conftest.err | ||
6816 | } && test -s conftest$ac_exeext && | ||
6817 | $as_test_x conftest$ac_exeext; then | ||
6818 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6819 | echo "${ECHO_T}yes" >&6; } | ||
6820 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6821 | else | ||
6822 | echo "$as_me: failed program was:" >&5 | ||
6823 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6824 | |||
6825 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6826 | echo "${ECHO_T}no" >&6; } | ||
6827 | LDFLAGS="$saved_LDFLAGS" | ||
6828 | |||
6829 | fi | ||
6830 | |||
6831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6832 | conftest$ac_exeext conftest.$ac_ext | ||
6833 | } | ||
6834 | { | ||
6835 | { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 | ||
6836 | echo $ECHO_N "checking if $LD supports link flag -Wl,-z,noexecstack... $ECHO_C" >&6; } | ||
6837 | saved_LDFLAGS="$LDFLAGS" | ||
6838 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" | ||
6839 | _define_flag="" | ||
6840 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" | ||
6841 | cat >conftest.$ac_ext <<_ACEOF | ||
6842 | /* confdefs.h. */ | ||
6843 | _ACEOF | ||
6844 | cat confdefs.h >>conftest.$ac_ext | ||
6845 | cat >>conftest.$ac_ext <<_ACEOF | ||
6846 | /* end confdefs.h. */ | ||
6847 | |||
6848 | #include <stdlib.h> | ||
6849 | #include <stdio.h> | ||
6850 | int main(int argc, char **argv) { | ||
6851 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6852 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6853 | float l = i * 2.1; | ||
6854 | double m = l / 0.5; | ||
6855 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6856 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6857 | exit(0); | ||
6858 | } | ||
6859 | |||
6860 | _ACEOF | ||
6861 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6862 | if { (ac_try="$ac_link" | ||
6863 | case "(($ac_try" in | ||
6864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6865 | *) ac_try_echo=$ac_try;; | ||
6866 | esac | ||
6867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6868 | (eval "$ac_link") 2>conftest.er1 | ||
6869 | ac_status=$? | ||
6870 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6871 | rm -f conftest.er1 | ||
6872 | cat conftest.err >&5 | ||
6873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6874 | (exit $ac_status); } && { | ||
6875 | test -z "$ac_c_werror_flag" || | ||
6876 | test ! -s conftest.err | ||
6877 | } && test -s conftest$ac_exeext && | ||
6878 | $as_test_x conftest$ac_exeext; then | ||
6879 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6880 | echo "${ECHO_T}yes" >&6; } | ||
6881 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6882 | else | ||
6883 | echo "$as_me: failed program was:" >&5 | ||
6884 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6885 | |||
6886 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6887 | echo "${ECHO_T}no" >&6; } | ||
6888 | LDFLAGS="$saved_LDFLAGS" | ||
6889 | |||
6890 | fi | ||
6891 | |||
6892 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6893 | conftest$ac_exeext conftest.$ac_ext | ||
6894 | } | ||
6895 | # NB. -ftrapv expects certain support functions to be present in | ||
6896 | # the compiler library (libgcc or similar) to detect integer operations | ||
6897 | # that can overflow. We must check that the result of enabling it | ||
6898 | # actually links. The test program compiled/linked includes a number | ||
6899 | # of integer operations that should exercise this. | ||
6900 | { | ||
6901 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 | ||
6902 | echo $ECHO_N "checking if $CC supports compile flag -ftrapv and linking succeeds... $ECHO_C" >&6; } | ||
6903 | saved_CFLAGS="$CFLAGS" | ||
6904 | CFLAGS="$CFLAGS $WERROR -ftrapv" | ||
6905 | _define_flag="" | ||
6906 | test "x$_define_flag" = "x" && _define_flag="-ftrapv" | ||
6907 | cat >conftest.$ac_ext <<_ACEOF | ||
6908 | /* confdefs.h. */ | ||
6909 | _ACEOF | ||
6910 | cat confdefs.h >>conftest.$ac_ext | ||
6911 | cat >>conftest.$ac_ext <<_ACEOF | ||
6912 | /* end confdefs.h. */ | ||
6913 | |||
6914 | #include <stdlib.h> | ||
6915 | #include <stdio.h> | ||
6916 | int main(int argc, char **argv) { | ||
6917 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6918 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6919 | float l = i * 2.1; | ||
6920 | double m = l / 0.5; | ||
6921 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6922 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6923 | exit(0); | ||
6924 | } | ||
6925 | |||
6926 | _ACEOF | ||
6927 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6928 | if { (ac_try="$ac_link" | ||
6929 | case "(($ac_try" in | ||
6930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6931 | *) ac_try_echo=$ac_try;; | ||
6932 | esac | ||
6933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6934 | (eval "$ac_link") 2>conftest.er1 | ||
6935 | ac_status=$? | ||
6936 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6937 | rm -f conftest.er1 | ||
6938 | cat conftest.err >&5 | ||
6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6940 | (exit $ac_status); } && { | ||
6941 | test -z "$ac_c_werror_flag" || | ||
6942 | test ! -s conftest.err | ||
6943 | } && test -s conftest$ac_exeext && | ||
6944 | $as_test_x conftest$ac_exeext; then | ||
6945 | |||
6946 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6947 | then | ||
6948 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6949 | echo "${ECHO_T}no" >&6; } | ||
6950 | CFLAGS="$saved_CFLAGS" | ||
6951 | else | ||
6952 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6953 | echo "${ECHO_T}yes" >&6; } | ||
6954 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6955 | fi | ||
6956 | else | ||
6957 | echo "$as_me: failed program was:" >&5 | ||
6958 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6959 | |||
6960 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6961 | echo "${ECHO_T}no" >&6; } | ||
6962 | CFLAGS="$saved_CFLAGS" | ||
6963 | |||
6964 | fi | ||
6965 | |||
6966 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6967 | conftest$ac_exeext conftest.$ac_ext | ||
6968 | } | ||
6969 | fi | ||
6970 | { echo "$as_me:$LINENO: checking gcc version" >&5 | ||
6971 | echo $ECHO_N "checking gcc version... $ECHO_C" >&6; } | ||
6972 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
6973 | case $GCC_VER in | ||
6974 | 1.*) no_attrib_nonnull=1 ;; | ||
6975 | 2.8* | 2.9*) | ||
6976 | no_attrib_nonnull=1 | ||
6977 | ;; | ||
6978 | 2.*) no_attrib_nonnull=1 ;; | ||
6979 | *) ;; | ||
6980 | esac | ||
6981 | { echo "$as_me:$LINENO: result: $GCC_VER" >&5 | ||
6982 | echo "${ECHO_T}$GCC_VER" >&6; } | ||
6983 | |||
6984 | { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5 | ||
6985 | echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; } | ||
6986 | saved_CFLAGS="$CFLAGS" | ||
6987 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
6988 | cat >conftest.$ac_ext <<_ACEOF | ||
6989 | /* confdefs.h. */ | ||
6990 | _ACEOF | ||
6991 | cat confdefs.h >>conftest.$ac_ext | ||
6992 | cat >>conftest.$ac_ext <<_ACEOF | ||
6993 | /* end confdefs.h. */ | ||
6994 | #include <string.h> | ||
6995 | int | ||
6996 | main () | ||
6997 | { | ||
6998 | char b[10]; memset(b, 0, sizeof(b)); | ||
6999 | ; | ||
7000 | return 0; | ||
7001 | } | ||
7002 | _ACEOF | ||
7003 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7004 | if { (ac_try="$ac_link" | ||
7005 | case "(($ac_try" in | ||
7006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7007 | *) ac_try_echo=$ac_try;; | ||
7008 | esac | ||
7009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7010 | (eval "$ac_link") 2>conftest.er1 | ||
7011 | ac_status=$? | ||
7012 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7013 | rm -f conftest.er1 | ||
7014 | cat conftest.err >&5 | ||
7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7016 | (exit $ac_status); } && { | ||
7017 | test -z "$ac_c_werror_flag" || | ||
7018 | test ! -s conftest.err | ||
7019 | } && test -s conftest$ac_exeext && | ||
7020 | $as_test_x conftest$ac_exeext; then | ||
7021 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7022 | echo "${ECHO_T}yes" >&6; } | ||
7023 | else | ||
7024 | echo "$as_me: failed program was:" >&5 | ||
7025 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7026 | |||
7027 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7028 | echo "${ECHO_T}no" >&6; } | ||
7029 | CFLAGS="$saved_CFLAGS" | ||
7030 | |||
7031 | fi | ||
7032 | |||
7033 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7034 | conftest$ac_exeext conftest.$ac_ext | ||
7035 | |||
7036 | # -fstack-protector-all doesn't always work for some GCC versions | ||
7037 | # and/or platforms, so we test if we can. If it's not supported | ||
7038 | # on a given platform gcc will emit a warning so we use -Werror. | ||
7039 | if test "x$use_stack_protector" = "x1"; then | ||
7040 | for t in -fstack-protector-strong -fstack-protector-all \ | ||
7041 | -fstack-protector; do | ||
7042 | { echo "$as_me:$LINENO: checking if $CC supports $t" >&5 | ||
7043 | echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; } | ||
7044 | saved_CFLAGS="$CFLAGS" | ||
7045 | saved_LDFLAGS="$LDFLAGS" | ||
7046 | CFLAGS="$CFLAGS $t -Werror" | ||
7047 | LDFLAGS="$LDFLAGS $t -Werror" | ||
7048 | cat >conftest.$ac_ext <<_ACEOF | ||
7049 | /* confdefs.h. */ | ||
7050 | _ACEOF | ||
7051 | cat confdefs.h >>conftest.$ac_ext | ||
7052 | cat >>conftest.$ac_ext <<_ACEOF | ||
7053 | /* end confdefs.h. */ | ||
7054 | #include <stdio.h> | ||
7055 | int | ||
7056 | main () | ||
7057 | { | ||
7058 | |||
7059 | char x[256]; | ||
7060 | snprintf(x, sizeof(x), "XXX"); | ||
7061 | |||
7062 | ; | ||
7063 | return 0; | ||
7064 | } | ||
7065 | _ACEOF | ||
7066 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7067 | if { (ac_try="$ac_link" | ||
7068 | case "(($ac_try" in | ||
7069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7070 | *) ac_try_echo=$ac_try;; | ||
7071 | esac | ||
7072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7073 | (eval "$ac_link") 2>conftest.er1 | ||
7074 | ac_status=$? | ||
7075 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7076 | rm -f conftest.er1 | ||
7077 | cat conftest.err >&5 | ||
7078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7079 | (exit $ac_status); } && { | ||
7080 | test -z "$ac_c_werror_flag" || | ||
7081 | test ! -s conftest.err | ||
7082 | } && test -s conftest$ac_exeext && | ||
7083 | $as_test_x conftest$ac_exeext; then | ||
7084 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7085 | echo "${ECHO_T}yes" >&6; } | ||
7086 | CFLAGS="$saved_CFLAGS $t" | ||
7087 | LDFLAGS="$saved_LDFLAGS $t" | ||
7088 | { echo "$as_me:$LINENO: checking if $t works" >&5 | ||
7089 | echo $ECHO_N "checking if $t works... $ECHO_C" >&6; } | ||
7090 | if test "$cross_compiling" = yes; then | ||
7091 | { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5 | ||
7092 | echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
7093 | break | ||
7094 | |||
7095 | else | ||
7096 | cat >conftest.$ac_ext <<_ACEOF | ||
7097 | /* confdefs.h. */ | ||
7098 | _ACEOF | ||
7099 | cat confdefs.h >>conftest.$ac_ext | ||
7100 | cat >>conftest.$ac_ext <<_ACEOF | ||
7101 | /* end confdefs.h. */ | ||
7102 | #include <stdio.h> | ||
7103 | int | ||
7104 | main () | ||
7105 | { | ||
7106 | |||
7107 | char x[256]; | ||
7108 | snprintf(x, sizeof(x), "XXX"); | ||
7109 | |||
7110 | ; | ||
7111 | return 0; | ||
7112 | } | ||
7113 | _ACEOF | ||
7114 | rm -f conftest$ac_exeext | ||
7115 | if { (ac_try="$ac_link" | ||
7116 | case "(($ac_try" in | ||
7117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7118 | *) ac_try_echo=$ac_try;; | ||
7119 | esac | ||
7120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7121 | (eval "$ac_link") 2>&5 | ||
7122 | ac_status=$? | ||
7123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7124 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7125 | { (case "(($ac_try" in | ||
7126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7127 | *) ac_try_echo=$ac_try;; | ||
7128 | esac | ||
7129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7130 | (eval "$ac_try") 2>&5 | ||
7131 | ac_status=$? | ||
7132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7133 | (exit $ac_status); }; }; then | ||
7134 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7135 | echo "${ECHO_T}yes" >&6; } | ||
7136 | break | ||
7137 | else | ||
7138 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7139 | echo "$as_me: failed program was:" >&5 | ||
7140 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7141 | |||
7142 | ( exit $ac_status ) | ||
7143 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7144 | echo "${ECHO_T}no" >&6; } | ||
7145 | fi | ||
7146 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7147 | fi | ||
7148 | |||
7149 | |||
7150 | |||
7151 | else | ||
7152 | echo "$as_me: failed program was:" >&5 | ||
7153 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7154 | |||
7155 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7156 | echo "${ECHO_T}no" >&6; } | ||
7157 | |||
7158 | fi | ||
7159 | |||
7160 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7161 | conftest$ac_exeext conftest.$ac_ext | ||
7162 | CFLAGS="$saved_CFLAGS" | ||
7163 | LDFLAGS="$saved_LDFLAGS" | ||
7164 | done | ||
7165 | fi | ||
7166 | |||
7167 | if test -z "$have_llong_max"; then | ||
7168 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
7169 | unset ac_cv_have_decl_LLONG_MAX | ||
7170 | saved_CFLAGS="$CFLAGS" | ||
7171 | CFLAGS="$CFLAGS -std=gnu99" | ||
7172 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
7173 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
7174 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
7175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7176 | else | ||
7177 | cat >conftest.$ac_ext <<_ACEOF | ||
7178 | /* confdefs.h. */ | ||
7179 | _ACEOF | ||
7180 | cat confdefs.h >>conftest.$ac_ext | ||
7181 | cat >>conftest.$ac_ext <<_ACEOF | ||
7182 | /* end confdefs.h. */ | ||
7183 | #include <limits.h> | ||
7184 | |||
7185 | |||
7186 | int | ||
7187 | main () | ||
7188 | { | ||
7189 | #ifndef LLONG_MAX | ||
7190 | (void) LLONG_MAX; | ||
7191 | #endif | ||
7192 | |||
7193 | ; | ||
7194 | return 0; | ||
7195 | } | ||
7196 | _ACEOF | ||
7197 | rm -f conftest.$ac_objext | ||
7198 | if { (ac_try="$ac_compile" | ||
7199 | case "(($ac_try" in | ||
7200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7201 | *) ac_try_echo=$ac_try;; | ||
7202 | esac | ||
7203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7204 | (eval "$ac_compile") 2>conftest.er1 | ||
7205 | ac_status=$? | ||
7206 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7207 | rm -f conftest.er1 | ||
7208 | cat conftest.err >&5 | ||
7209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7210 | (exit $ac_status); } && { | ||
7211 | test -z "$ac_c_werror_flag" || | ||
7212 | test ! -s conftest.err | ||
7213 | } && test -s conftest.$ac_objext; then | ||
7214 | ac_cv_have_decl_LLONG_MAX=yes | ||
7215 | else | ||
7216 | echo "$as_me: failed program was:" >&5 | ||
7217 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7218 | |||
7219 | ac_cv_have_decl_LLONG_MAX=no | ||
7220 | fi | ||
7221 | |||
7222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7223 | fi | ||
7224 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
7225 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
7226 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
7227 | have_llong_max=1 | ||
7228 | else | ||
7229 | CFLAGS="$saved_CFLAGS" | ||
7230 | fi | ||
7231 | |||
7232 | fi | ||
7233 | fi | ||
7234 | |||
7235 | { echo "$as_me:$LINENO: checking if compiler allows __attribute__ on return types" >&5 | ||
7236 | echo $ECHO_N "checking if compiler allows __attribute__ on return types... $ECHO_C" >&6; } | ||
7237 | cat >conftest.$ac_ext <<_ACEOF | ||
7238 | /* confdefs.h. */ | ||
7239 | _ACEOF | ||
7240 | cat confdefs.h >>conftest.$ac_ext | ||
7241 | cat >>conftest.$ac_ext <<_ACEOF | ||
7242 | /* end confdefs.h. */ | ||
7243 | |||
7244 | #include <stdlib.h> | ||
7245 | __attribute__((__unused__)) static void foo(void){return;} | ||
7246 | int | ||
7247 | main () | ||
7248 | { | ||
7249 | exit(0); | ||
7250 | ; | ||
7251 | return 0; | ||
7252 | } | ||
7253 | _ACEOF | ||
7254 | rm -f conftest.$ac_objext | ||
7255 | if { (ac_try="$ac_compile" | ||
7256 | case "(($ac_try" in | ||
7257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7258 | *) ac_try_echo=$ac_try;; | ||
7259 | esac | ||
7260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7261 | (eval "$ac_compile") 2>conftest.er1 | ||
7262 | ac_status=$? | ||
7263 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7264 | rm -f conftest.er1 | ||
7265 | cat conftest.err >&5 | ||
7266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7267 | (exit $ac_status); } && { | ||
7268 | test -z "$ac_c_werror_flag" || | ||
7269 | test ! -s conftest.err | ||
7270 | } && test -s conftest.$ac_objext; then | ||
7271 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7272 | echo "${ECHO_T}yes" >&6; } | ||
7273 | else | ||
7274 | echo "$as_me: failed program was:" >&5 | ||
7275 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7276 | |||
7277 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7278 | echo "${ECHO_T}no" >&6; } | ||
7279 | |||
7280 | cat >>confdefs.h <<\_ACEOF | ||
7281 | #define NO_ATTRIBUTE_ON_RETURN_TYPE 1 | ||
7282 | _ACEOF | ||
7283 | |||
7284 | |||
7285 | fi | ||
7286 | |||
7287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7288 | |||
7289 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
7290 | |||
7291 | cat >>confdefs.h <<\_ACEOF | ||
7292 | #define HAVE_ATTRIBUTE__NONNULL__ 1 | ||
7293 | _ACEOF | ||
7294 | |||
7295 | fi | ||
7296 | |||
7297 | |||
7298 | # Check whether --with-rpath was given. | ||
7299 | if test "${with_rpath+set}" = set; then | ||
7300 | withval=$with_rpath; | ||
7301 | if test "x$withval" = "xno" ; then | ||
7302 | need_dash_r="" | ||
7303 | fi | ||
7304 | if test "x$withval" = "xyes" ; then | ||
7305 | need_dash_r=1 | ||
7306 | fi | ||
7307 | |||
7308 | |||
7309 | fi | ||
7310 | |||
7311 | |||
7312 | # Allow user to specify flags | ||
7313 | |||
7314 | # Check whether --with-cflags was given. | ||
7315 | if test "${with_cflags+set}" = set; then | ||
7316 | withval=$with_cflags; | ||
7317 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7318 | test "x${withval}" != "xyes"; then | ||
7319 | CFLAGS="$CFLAGS $withval" | ||
7320 | fi | ||
7321 | |||
7322 | |||
7323 | fi | ||
7324 | |||
7325 | |||
7326 | # Check whether --with-cppflags was given. | ||
7327 | if test "${with_cppflags+set}" = set; then | ||
7328 | withval=$with_cppflags; | ||
7329 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7330 | test "x${withval}" != "xyes"; then | ||
7331 | CPPFLAGS="$CPPFLAGS $withval" | ||
7332 | fi | ||
7333 | |||
7334 | |||
7335 | fi | ||
7336 | |||
7337 | |||
7338 | # Check whether --with-ldflags was given. | ||
7339 | if test "${with_ldflags+set}" = set; then | ||
7340 | withval=$with_ldflags; | ||
7341 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7342 | test "x${withval}" != "xyes"; then | ||
7343 | LDFLAGS="$LDFLAGS $withval" | ||
7344 | fi | ||
7345 | |||
7346 | |||
7347 | fi | ||
7348 | |||
7349 | |||
7350 | # Check whether --with-libs was given. | ||
7351 | if test "${with_libs+set}" = set; then | ||
7352 | withval=$with_libs; | ||
7353 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7354 | test "x${withval}" != "xyes"; then | ||
7355 | LIBS="$LIBS $withval" | ||
7356 | fi | ||
7357 | |||
7358 | |||
7359 | fi | ||
7360 | |||
7361 | |||
7362 | # Check whether --with-Werror was given. | ||
7363 | if test "${with_Werror+set}" = set; then | ||
7364 | withval=$with_Werror; | ||
7365 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
7366 | werror_flags="-Werror" | ||
7367 | if test "x${withval}" != "xyes"; then | ||
7368 | werror_flags="$withval" | ||
7369 | fi | ||
7370 | fi | ||
7371 | |||
7372 | |||
7373 | fi | ||
7374 | |||
7375 | |||
7376 | |||
7377 | |||
7378 | |||
7379 | |||
7380 | |||
7381 | |||
7382 | |||
7383 | |||
7384 | |||
7385 | |||
7386 | |||
7387 | |||
7388 | |||
7389 | |||
7390 | |||
7391 | |||
7392 | |||
7393 | |||
7394 | |||
7395 | |||
7396 | |||
7397 | |||
7398 | |||
7399 | |||
7400 | |||
7401 | |||
7402 | |||
7403 | |||
7404 | |||
7405 | |||
7406 | |||
7407 | |||
7408 | |||
7409 | |||
7410 | |||
7411 | |||
7412 | |||
7413 | |||
7414 | |||
7415 | |||
7416 | |||
7417 | |||
7418 | |||
7419 | |||
7420 | |||
7421 | |||
7422 | |||
7423 | |||
7424 | |||
7425 | |||
7426 | |||
7427 | |||
7428 | |||
7429 | |||
7430 | |||
7431 | |||
7432 | |||
7433 | |||
7434 | |||
7435 | |||
7436 | |||
7437 | |||
7438 | |||
7439 | |||
7440 | |||
7441 | |||
7442 | |||
7443 | for ac_header in \ | ||
7444 | blf.h \ | ||
7445 | bstring.h \ | ||
7446 | crypt.h \ | ||
7447 | crypto/sha2.h \ | ||
7448 | dirent.h \ | ||
7449 | endian.h \ | ||
7450 | elf.h \ | ||
7451 | features.h \ | ||
7452 | fcntl.h \ | ||
7453 | floatingpoint.h \ | ||
7454 | getopt.h \ | ||
7455 | glob.h \ | ||
7456 | ia.h \ | ||
7457 | iaf.h \ | ||
7458 | inttypes.h \ | ||
7459 | limits.h \ | ||
7460 | locale.h \ | ||
7461 | login.h \ | ||
7462 | maillock.h \ | ||
7463 | ndir.h \ | ||
7464 | net/if_tun.h \ | ||
7465 | netdb.h \ | ||
7466 | netgroup.h \ | ||
7467 | pam/pam_appl.h \ | ||
7468 | paths.h \ | ||
7469 | poll.h \ | ||
7470 | pty.h \ | ||
7471 | readpassphrase.h \ | ||
7472 | rpc/types.h \ | ||
7473 | security/pam_appl.h \ | ||
7474 | sha2.h \ | ||
7475 | shadow.h \ | ||
7476 | stddef.h \ | ||
7477 | stdint.h \ | ||
7478 | string.h \ | ||
7479 | strings.h \ | ||
7480 | sys/audit.h \ | ||
7481 | sys/bitypes.h \ | ||
7482 | sys/bsdtty.h \ | ||
7483 | sys/capability.h \ | ||
7484 | sys/cdefs.h \ | ||
7485 | sys/dir.h \ | ||
7486 | sys/mman.h \ | ||
7487 | sys/ndir.h \ | ||
7488 | sys/poll.h \ | ||
7489 | sys/prctl.h \ | ||
7490 | sys/pstat.h \ | ||
7491 | sys/select.h \ | ||
7492 | sys/stat.h \ | ||
7493 | sys/stream.h \ | ||
7494 | sys/stropts.h \ | ||
7495 | sys/strtio.h \ | ||
7496 | sys/statvfs.h \ | ||
7497 | sys/sysmacros.h \ | ||
7498 | sys/time.h \ | ||
7499 | sys/timers.h \ | ||
7500 | time.h \ | ||
7501 | tmpdir.h \ | ||
7502 | ttyent.h \ | ||
7503 | ucred.h \ | ||
7504 | unistd.h \ | ||
7505 | usersec.h \ | ||
7506 | util.h \ | ||
7507 | utime.h \ | ||
7508 | utmp.h \ | ||
7509 | utmpx.h \ | ||
7510 | vis.h \ | ||
7511 | |||
7512 | do | ||
7513 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7514 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7515 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7516 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7517 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7519 | fi | ||
7520 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7521 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7522 | echo "${ECHO_T}$ac_res" >&6; } | ||
7523 | else | ||
7524 | # Is the header compilable? | ||
7525 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7526 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
7527 | cat >conftest.$ac_ext <<_ACEOF | ||
7528 | /* confdefs.h. */ | ||
7529 | _ACEOF | ||
7530 | cat confdefs.h >>conftest.$ac_ext | ||
7531 | cat >>conftest.$ac_ext <<_ACEOF | ||
7532 | /* end confdefs.h. */ | ||
7533 | $ac_includes_default | ||
7534 | #include <$ac_header> | ||
7535 | _ACEOF | ||
7536 | rm -f conftest.$ac_objext | ||
7537 | if { (ac_try="$ac_compile" | ||
7538 | case "(($ac_try" in | ||
7539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7540 | *) ac_try_echo=$ac_try;; | ||
7541 | esac | ||
7542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7543 | (eval "$ac_compile") 2>conftest.er1 | ||
7544 | ac_status=$? | ||
7545 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7546 | rm -f conftest.er1 | ||
7547 | cat conftest.err >&5 | ||
7548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7549 | (exit $ac_status); } && { | ||
7550 | test -z "$ac_c_werror_flag" || | ||
7551 | test ! -s conftest.err | ||
7552 | } && test -s conftest.$ac_objext; then | ||
7553 | ac_header_compiler=yes | ||
7554 | else | ||
7555 | echo "$as_me: failed program was:" >&5 | ||
7556 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7557 | |||
7558 | ac_header_compiler=no | ||
7559 | fi | ||
7560 | |||
7561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7562 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7563 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7564 | |||
7565 | # Is the header present? | ||
7566 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7567 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
7568 | cat >conftest.$ac_ext <<_ACEOF | ||
7569 | /* confdefs.h. */ | ||
7570 | _ACEOF | ||
7571 | cat confdefs.h >>conftest.$ac_ext | ||
7572 | cat >>conftest.$ac_ext <<_ACEOF | ||
7573 | /* end confdefs.h. */ | ||
7574 | #include <$ac_header> | ||
7575 | _ACEOF | ||
7576 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7577 | case "(($ac_try" in | ||
7578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7579 | *) ac_try_echo=$ac_try;; | ||
7580 | esac | ||
7581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7582 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7583 | ac_status=$? | ||
7584 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7585 | rm -f conftest.er1 | ||
7586 | cat conftest.err >&5 | ||
7587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7588 | (exit $ac_status); } >/dev/null && { | ||
7589 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7590 | test ! -s conftest.err | ||
7591 | }; then | ||
7592 | ac_header_preproc=yes | ||
7593 | else | ||
7594 | echo "$as_me: failed program was:" >&5 | ||
7595 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7596 | |||
7597 | ac_header_preproc=no | ||
7598 | fi | ||
7599 | |||
7600 | rm -f conftest.err conftest.$ac_ext | ||
7601 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7602 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7603 | |||
7604 | # So? What about this header? | ||
7605 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7606 | yes:no: ) | ||
7607 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7608 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7609 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7610 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7611 | ac_header_preproc=yes | ||
7612 | ;; | ||
7613 | no:yes:* ) | ||
7614 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7615 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7616 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7617 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7618 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7619 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7620 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7621 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7623 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7624 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7625 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7626 | ( cat <<\_ASBOX | ||
7627 | ## ------------------------------------------- ## | ||
7628 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7629 | ## ------------------------------------------- ## | ||
7630 | _ASBOX | ||
7631 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
7632 | ;; | ||
7633 | esac | ||
7634 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7636 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7638 | else | ||
7639 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7640 | fi | ||
7641 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7642 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7643 | echo "${ECHO_T}$ac_res" >&6; } | ||
7644 | |||
7645 | fi | ||
7646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7647 | cat >>confdefs.h <<_ACEOF | ||
7648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7649 | _ACEOF | ||
7650 | |||
7651 | fi | ||
7652 | |||
7653 | done | ||
7654 | |||
7655 | |||
7656 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
7657 | |||
7658 | for ac_header in lastlog.h | ||
7659 | do | ||
7660 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7661 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7663 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7665 | else | ||
7666 | cat >conftest.$ac_ext <<_ACEOF | ||
7667 | /* confdefs.h. */ | ||
7668 | _ACEOF | ||
7669 | cat confdefs.h >>conftest.$ac_ext | ||
7670 | cat >>conftest.$ac_ext <<_ACEOF | ||
7671 | /* end confdefs.h. */ | ||
7672 | |||
7673 | #ifdef HAVE_SYS_TIME_H | ||
7674 | # include <sys/time.h> | ||
7675 | #endif | ||
7676 | |||
7677 | |||
7678 | #include <$ac_header> | ||
7679 | _ACEOF | ||
7680 | rm -f conftest.$ac_objext | ||
7681 | if { (ac_try="$ac_compile" | ||
7682 | case "(($ac_try" in | ||
7683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7684 | *) ac_try_echo=$ac_try;; | ||
7685 | esac | ||
7686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7687 | (eval "$ac_compile") 2>conftest.er1 | ||
7688 | ac_status=$? | ||
7689 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7690 | rm -f conftest.er1 | ||
7691 | cat conftest.err >&5 | ||
7692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7693 | (exit $ac_status); } && { | ||
7694 | test -z "$ac_c_werror_flag" || | ||
7695 | test ! -s conftest.err | ||
7696 | } && test -s conftest.$ac_objext; then | ||
7697 | eval "$as_ac_Header=yes" | ||
7698 | else | ||
7699 | echo "$as_me: failed program was:" >&5 | ||
7700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7701 | |||
7702 | eval "$as_ac_Header=no" | ||
7703 | fi | ||
7704 | |||
7705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7706 | fi | ||
7707 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7708 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7709 | echo "${ECHO_T}$ac_res" >&6; } | ||
7710 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7711 | cat >>confdefs.h <<_ACEOF | ||
7712 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7713 | _ACEOF | ||
7714 | |||
7715 | fi | ||
7716 | |||
7717 | done | ||
7718 | |||
7719 | |||
7720 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
7721 | |||
7722 | for ac_header in sys/ptms.h | ||
7723 | do | ||
7724 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7725 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7727 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7729 | else | ||
7730 | cat >conftest.$ac_ext <<_ACEOF | ||
7731 | /* confdefs.h. */ | ||
7732 | _ACEOF | ||
7733 | cat confdefs.h >>conftest.$ac_ext | ||
7734 | cat >>conftest.$ac_ext <<_ACEOF | ||
7735 | /* end confdefs.h. */ | ||
7736 | |||
7737 | #ifdef HAVE_SYS_STREAM_H | ||
7738 | # include <sys/stream.h> | ||
7739 | #endif | ||
7740 | |||
7741 | |||
7742 | #include <$ac_header> | ||
7743 | _ACEOF | ||
7744 | rm -f conftest.$ac_objext | ||
7745 | if { (ac_try="$ac_compile" | ||
7746 | case "(($ac_try" in | ||
7747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7748 | *) ac_try_echo=$ac_try;; | ||
7749 | esac | ||
7750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7751 | (eval "$ac_compile") 2>conftest.er1 | ||
7752 | ac_status=$? | ||
7753 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7754 | rm -f conftest.er1 | ||
7755 | cat conftest.err >&5 | ||
7756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7757 | (exit $ac_status); } && { | ||
7758 | test -z "$ac_c_werror_flag" || | ||
7759 | test ! -s conftest.err | ||
7760 | } && test -s conftest.$ac_objext; then | ||
7761 | eval "$as_ac_Header=yes" | ||
7762 | else | ||
7763 | echo "$as_me: failed program was:" >&5 | ||
7764 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7765 | |||
7766 | eval "$as_ac_Header=no" | ||
7767 | fi | ||
7768 | |||
7769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7770 | fi | ||
7771 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7772 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7773 | echo "${ECHO_T}$ac_res" >&6; } | ||
7774 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7775 | cat >>confdefs.h <<_ACEOF | ||
7776 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7777 | _ACEOF | ||
7778 | |||
7779 | fi | ||
7780 | |||
7781 | done | ||
7782 | |||
7783 | |||
7784 | # login_cap.h requires sys/types.h on NetBSD | ||
7785 | |||
7786 | for ac_header in login_cap.h | ||
7787 | do | ||
7788 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7789 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7790 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7791 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7793 | else | ||
7794 | cat >conftest.$ac_ext <<_ACEOF | ||
7795 | /* confdefs.h. */ | ||
7796 | _ACEOF | ||
7797 | cat confdefs.h >>conftest.$ac_ext | ||
7798 | cat >>conftest.$ac_ext <<_ACEOF | ||
7799 | /* end confdefs.h. */ | ||
7800 | |||
7801 | #include <sys/types.h> | ||
7802 | |||
7803 | |||
7804 | #include <$ac_header> | ||
7805 | _ACEOF | ||
7806 | rm -f conftest.$ac_objext | ||
7807 | if { (ac_try="$ac_compile" | ||
7808 | case "(($ac_try" in | ||
7809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7810 | *) ac_try_echo=$ac_try;; | ||
7811 | esac | ||
7812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7813 | (eval "$ac_compile") 2>conftest.er1 | ||
7814 | ac_status=$? | ||
7815 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7816 | rm -f conftest.er1 | ||
7817 | cat conftest.err >&5 | ||
7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7819 | (exit $ac_status); } && { | ||
7820 | test -z "$ac_c_werror_flag" || | ||
7821 | test ! -s conftest.err | ||
7822 | } && test -s conftest.$ac_objext; then | ||
7823 | eval "$as_ac_Header=yes" | ||
7824 | else | ||
7825 | echo "$as_me: failed program was:" >&5 | ||
7826 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7827 | |||
7828 | eval "$as_ac_Header=no" | ||
7829 | fi | ||
7830 | |||
7831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7832 | fi | ||
7833 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7834 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7835 | echo "${ECHO_T}$ac_res" >&6; } | ||
7836 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7837 | cat >>confdefs.h <<_ACEOF | ||
7838 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7839 | _ACEOF | ||
7840 | |||
7841 | fi | ||
7842 | |||
7843 | done | ||
7844 | |||
7845 | |||
7846 | # older BSDs need sys/param.h before sys/mount.h | ||
7847 | |||
7848 | for ac_header in sys/mount.h | ||
7849 | do | ||
7850 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7851 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7852 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7853 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7855 | else | ||
7856 | cat >conftest.$ac_ext <<_ACEOF | ||
7857 | /* confdefs.h. */ | ||
7858 | _ACEOF | ||
7859 | cat confdefs.h >>conftest.$ac_ext | ||
7860 | cat >>conftest.$ac_ext <<_ACEOF | ||
7861 | /* end confdefs.h. */ | ||
7862 | |||
7863 | #include <sys/param.h> | ||
7864 | |||
7865 | |||
7866 | #include <$ac_header> | ||
7867 | _ACEOF | ||
7868 | rm -f conftest.$ac_objext | ||
7869 | if { (ac_try="$ac_compile" | ||
7870 | case "(($ac_try" in | ||
7871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7872 | *) ac_try_echo=$ac_try;; | ||
7873 | esac | ||
7874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7875 | (eval "$ac_compile") 2>conftest.er1 | ||
7876 | ac_status=$? | ||
7877 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7878 | rm -f conftest.er1 | ||
7879 | cat conftest.err >&5 | ||
7880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7881 | (exit $ac_status); } && { | ||
7882 | test -z "$ac_c_werror_flag" || | ||
7883 | test ! -s conftest.err | ||
7884 | } && test -s conftest.$ac_objext; then | ||
7885 | eval "$as_ac_Header=yes" | ||
7886 | else | ||
7887 | echo "$as_me: failed program was:" >&5 | ||
7888 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7889 | |||
7890 | eval "$as_ac_Header=no" | ||
7891 | fi | ||
7892 | |||
7893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7894 | fi | ||
7895 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7897 | echo "${ECHO_T}$ac_res" >&6; } | ||
7898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7899 | cat >>confdefs.h <<_ACEOF | ||
7900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7901 | _ACEOF | ||
7902 | |||
7903 | fi | ||
7904 | |||
7905 | done | ||
7906 | |||
7907 | |||
7908 | # Android requires sys/socket.h to be included before sys/un.h | ||
7909 | |||
7910 | for ac_header in sys/un.h | ||
7911 | do | ||
7912 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7913 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7914 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7917 | else | ||
7918 | cat >conftest.$ac_ext <<_ACEOF | ||
7919 | /* confdefs.h. */ | ||
7920 | _ACEOF | ||
7921 | cat confdefs.h >>conftest.$ac_ext | ||
7922 | cat >>conftest.$ac_ext <<_ACEOF | ||
7923 | /* end confdefs.h. */ | ||
7924 | |||
7925 | #include <sys/types.h> | ||
7926 | #include <sys/socket.h> | ||
7927 | |||
7928 | |||
7929 | #include <$ac_header> | ||
7930 | _ACEOF | ||
7931 | rm -f conftest.$ac_objext | ||
7932 | if { (ac_try="$ac_compile" | ||
7933 | case "(($ac_try" in | ||
7934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7935 | *) ac_try_echo=$ac_try;; | ||
7936 | esac | ||
7937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7938 | (eval "$ac_compile") 2>conftest.er1 | ||
7939 | ac_status=$? | ||
7940 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7941 | rm -f conftest.er1 | ||
7942 | cat conftest.err >&5 | ||
7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7944 | (exit $ac_status); } && { | ||
7945 | test -z "$ac_c_werror_flag" || | ||
7946 | test ! -s conftest.err | ||
7947 | } && test -s conftest.$ac_objext; then | ||
7948 | eval "$as_ac_Header=yes" | ||
7949 | else | ||
7950 | echo "$as_me: failed program was:" >&5 | ||
7951 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7952 | |||
7953 | eval "$as_ac_Header=no" | ||
7954 | fi | ||
7955 | |||
7956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7957 | fi | ||
7958 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7959 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7960 | echo "${ECHO_T}$ac_res" >&6; } | ||
7961 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7962 | cat >>confdefs.h <<_ACEOF | ||
7963 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7964 | _ACEOF | ||
7965 | |||
7966 | fi | ||
7967 | |||
7968 | done | ||
7969 | |||
7970 | |||
7971 | # Messages for features tested for in target-specific section | ||
7972 | SIA_MSG="no" | ||
7973 | SPC_MSG="no" | ||
7974 | SP_MSG="no" | ||
7975 | |||
7976 | # Check for some target-specific stuff | ||
7977 | case "$host" in | ||
7978 | *-*-aix*) | ||
7979 | # Some versions of VAC won't allow macro redefinitions at | ||
7980 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
7981 | # particularly with older versions of vac or xlc. | ||
7982 | # It also throws errors about null macro argments, but these are | ||
7983 | # not fatal. | ||
7984 | { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 | ||
7985 | echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; } | ||
7986 | cat >conftest.$ac_ext <<_ACEOF | ||
7987 | /* confdefs.h. */ | ||
7988 | _ACEOF | ||
7989 | cat confdefs.h >>conftest.$ac_ext | ||
7990 | cat >>conftest.$ac_ext <<_ACEOF | ||
7991 | /* end confdefs.h. */ | ||
7992 | |||
7993 | #define testmacro foo | ||
7994 | #define testmacro bar | ||
7995 | int | ||
7996 | main () | ||
7997 | { | ||
7998 | exit(0); | ||
7999 | ; | ||
8000 | return 0; | ||
8001 | } | ||
8002 | _ACEOF | ||
8003 | rm -f conftest.$ac_objext | ||
8004 | if { (ac_try="$ac_compile" | ||
8005 | case "(($ac_try" in | ||
8006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8007 | *) ac_try_echo=$ac_try;; | ||
8008 | esac | ||
8009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8010 | (eval "$ac_compile") 2>conftest.er1 | ||
8011 | ac_status=$? | ||
8012 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8013 | rm -f conftest.er1 | ||
8014 | cat conftest.err >&5 | ||
8015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8016 | (exit $ac_status); } && { | ||
8017 | test -z "$ac_c_werror_flag" || | ||
8018 | test ! -s conftest.err | ||
8019 | } && test -s conftest.$ac_objext; then | ||
8020 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8021 | echo "${ECHO_T}yes" >&6; } | ||
8022 | else | ||
8023 | echo "$as_me: failed program was:" >&5 | ||
8024 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8025 | |||
8026 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8027 | echo "${ECHO_T}no" >&6; } | ||
8028 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
8029 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
8030 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
8031 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
8032 | |||
8033 | |||
8034 | fi | ||
8035 | |||
8036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8037 | |||
8038 | { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
8039 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } | ||
8040 | if (test -z "$blibpath"); then | ||
8041 | blibpath="/usr/lib:/lib" | ||
8042 | fi | ||
8043 | saved_LDFLAGS="$LDFLAGS" | ||
8044 | if test "$GCC" = "yes"; then | ||
8045 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
8046 | else | ||
8047 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
8048 | fi | ||
8049 | for tryflags in $flags ;do | ||
8050 | if (test -z "$blibflags"); then | ||
8051 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
8052 | cat >conftest.$ac_ext <<_ACEOF | ||
8053 | /* confdefs.h. */ | ||
8054 | _ACEOF | ||
8055 | cat confdefs.h >>conftest.$ac_ext | ||
8056 | cat >>conftest.$ac_ext <<_ACEOF | ||
8057 | /* end confdefs.h. */ | ||
8058 | |||
8059 | int | ||
8060 | main () | ||
8061 | { | ||
8062 | |||
8063 | ; | ||
8064 | return 0; | ||
8065 | } | ||
8066 | _ACEOF | ||
8067 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8068 | if { (ac_try="$ac_link" | ||
8069 | case "(($ac_try" in | ||
8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8071 | *) ac_try_echo=$ac_try;; | ||
8072 | esac | ||
8073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8074 | (eval "$ac_link") 2>conftest.er1 | ||
8075 | ac_status=$? | ||
8076 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8077 | rm -f conftest.er1 | ||
8078 | cat conftest.err >&5 | ||
8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8080 | (exit $ac_status); } && { | ||
8081 | test -z "$ac_c_werror_flag" || | ||
8082 | test ! -s conftest.err | ||
8083 | } && test -s conftest$ac_exeext && | ||
8084 | $as_test_x conftest$ac_exeext; then | ||
8085 | blibflags=$tryflags | ||
8086 | else | ||
8087 | echo "$as_me: failed program was:" >&5 | ||
8088 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8089 | |||
8090 | |||
8091 | fi | ||
8092 | |||
8093 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8094 | conftest$ac_exeext conftest.$ac_ext | ||
8095 | fi | ||
8096 | done | ||
8097 | if (test -z "$blibflags"); then | ||
8098 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
8099 | echo "${ECHO_T}not found" >&6; } | ||
8100 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
8101 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
8102 | { (exit 1); exit 1; }; } | ||
8103 | else | ||
8104 | { echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
8105 | echo "${ECHO_T}$blibflags" >&6; } | ||
8106 | fi | ||
8107 | LDFLAGS="$saved_LDFLAGS" | ||
8108 | { echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
8109 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; } | ||
8110 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
8111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8112 | else | ||
8113 | cat >conftest.$ac_ext <<_ACEOF | ||
8114 | /* confdefs.h. */ | ||
8115 | _ACEOF | ||
8116 | cat confdefs.h >>conftest.$ac_ext | ||
8117 | cat >>conftest.$ac_ext <<_ACEOF | ||
8118 | /* end confdefs.h. */ | ||
8119 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
8120 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8121 | #define authenticate innocuous_authenticate | ||
8122 | |||
8123 | /* System header to define __stub macros and hopefully few prototypes, | ||
8124 | which can conflict with char authenticate (); below. | ||
8125 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8126 | <limits.h> exists even on freestanding compilers. */ | ||
8127 | |||
8128 | #ifdef __STDC__ | ||
8129 | # include <limits.h> | ||
8130 | #else | ||
8131 | # include <assert.h> | ||
8132 | #endif | ||
8133 | |||
8134 | #undef authenticate | ||
8135 | |||
8136 | /* Override any GCC internal prototype to avoid an error. | ||
8137 | Use char because int might match the return type of a GCC | ||
8138 | builtin and then its argument prototype would still apply. */ | ||
8139 | #ifdef __cplusplus | ||
8140 | extern "C" | ||
8141 | #endif | ||
8142 | char authenticate (); | ||
8143 | /* The GNU C library defines this for functions which it implements | ||
8144 | to always fail with ENOSYS. Some functions are actually named | ||
8145 | something starting with __ and the normal name is an alias. */ | ||
8146 | #if defined __stub_authenticate || defined __stub___authenticate | ||
8147 | choke me | ||
8148 | #endif | ||
8149 | |||
8150 | int | ||
8151 | main () | ||
8152 | { | ||
8153 | return authenticate (); | ||
8154 | ; | ||
8155 | return 0; | ||
8156 | } | ||
8157 | _ACEOF | ||
8158 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8159 | if { (ac_try="$ac_link" | ||
8160 | case "(($ac_try" in | ||
8161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8162 | *) ac_try_echo=$ac_try;; | ||
8163 | esac | ||
8164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8165 | (eval "$ac_link") 2>conftest.er1 | ||
8166 | ac_status=$? | ||
8167 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8168 | rm -f conftest.er1 | ||
8169 | cat conftest.err >&5 | ||
8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8171 | (exit $ac_status); } && { | ||
8172 | test -z "$ac_c_werror_flag" || | ||
8173 | test ! -s conftest.err | ||
8174 | } && test -s conftest$ac_exeext && | ||
8175 | $as_test_x conftest$ac_exeext; then | ||
8176 | ac_cv_func_authenticate=yes | ||
8177 | else | ||
8178 | echo "$as_me: failed program was:" >&5 | ||
8179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8180 | |||
8181 | ac_cv_func_authenticate=no | ||
8182 | fi | ||
8183 | |||
8184 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8185 | conftest$ac_exeext conftest.$ac_ext | ||
8186 | fi | ||
8187 | { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
8188 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6; } | ||
8189 | if test $ac_cv_func_authenticate = yes; then | ||
8190 | |||
8191 | cat >>confdefs.h <<\_ACEOF | ||
8192 | #define WITH_AIXAUTHENTICATE 1 | ||
8193 | _ACEOF | ||
8194 | |||
8195 | else | ||
8196 | { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
8197 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; } | ||
8198 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
8199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8200 | else | ||
8201 | ac_check_lib_save_LIBS=$LIBS | ||
8202 | LIBS="-ls $LIBS" | ||
8203 | cat >conftest.$ac_ext <<_ACEOF | ||
8204 | /* confdefs.h. */ | ||
8205 | _ACEOF | ||
8206 | cat confdefs.h >>conftest.$ac_ext | ||
8207 | cat >>conftest.$ac_ext <<_ACEOF | ||
8208 | /* end confdefs.h. */ | ||
8209 | |||
8210 | /* Override any GCC internal prototype to avoid an error. | ||
8211 | Use char because int might match the return type of a GCC | ||
8212 | builtin and then its argument prototype would still apply. */ | ||
8213 | #ifdef __cplusplus | ||
8214 | extern "C" | ||
8215 | #endif | ||
8216 | char authenticate (); | ||
8217 | int | ||
8218 | main () | ||
8219 | { | ||
8220 | return authenticate (); | ||
8221 | ; | ||
8222 | return 0; | ||
8223 | } | ||
8224 | _ACEOF | ||
8225 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8226 | if { (ac_try="$ac_link" | ||
8227 | case "(($ac_try" in | ||
8228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8229 | *) ac_try_echo=$ac_try;; | ||
8230 | esac | ||
8231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8232 | (eval "$ac_link") 2>conftest.er1 | ||
8233 | ac_status=$? | ||
8234 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8235 | rm -f conftest.er1 | ||
8236 | cat conftest.err >&5 | ||
8237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8238 | (exit $ac_status); } && { | ||
8239 | test -z "$ac_c_werror_flag" || | ||
8240 | test ! -s conftest.err | ||
8241 | } && test -s conftest$ac_exeext && | ||
8242 | $as_test_x conftest$ac_exeext; then | ||
8243 | ac_cv_lib_s_authenticate=yes | ||
8244 | else | ||
8245 | echo "$as_me: failed program was:" >&5 | ||
8246 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8247 | |||
8248 | ac_cv_lib_s_authenticate=no | ||
8249 | fi | ||
8250 | |||
8251 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8252 | conftest$ac_exeext conftest.$ac_ext | ||
8253 | LIBS=$ac_check_lib_save_LIBS | ||
8254 | fi | ||
8255 | { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
8256 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; } | ||
8257 | if test $ac_cv_lib_s_authenticate = yes; then | ||
8258 | cat >>confdefs.h <<\_ACEOF | ||
8259 | #define WITH_AIXAUTHENTICATE 1 | ||
8260 | _ACEOF | ||
8261 | |||
8262 | LIBS="$LIBS -ls" | ||
8263 | |||
8264 | fi | ||
8265 | |||
8266 | |||
8267 | fi | ||
8268 | |||
8269 | { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
8270 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; } | ||
8271 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
8272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8273 | else | ||
8274 | cat >conftest.$ac_ext <<_ACEOF | ||
8275 | /* confdefs.h. */ | ||
8276 | _ACEOF | ||
8277 | cat confdefs.h >>conftest.$ac_ext | ||
8278 | cat >>conftest.$ac_ext <<_ACEOF | ||
8279 | /* end confdefs.h. */ | ||
8280 | #include <usersec.h> | ||
8281 | |||
8282 | int | ||
8283 | main () | ||
8284 | { | ||
8285 | #ifndef authenticate | ||
8286 | (void) authenticate; | ||
8287 | #endif | ||
8288 | |||
8289 | ; | ||
8290 | return 0; | ||
8291 | } | ||
8292 | _ACEOF | ||
8293 | rm -f conftest.$ac_objext | ||
8294 | if { (ac_try="$ac_compile" | ||
8295 | case "(($ac_try" in | ||
8296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8297 | *) ac_try_echo=$ac_try;; | ||
8298 | esac | ||
8299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8300 | (eval "$ac_compile") 2>conftest.er1 | ||
8301 | ac_status=$? | ||
8302 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8303 | rm -f conftest.er1 | ||
8304 | cat conftest.err >&5 | ||
8305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8306 | (exit $ac_status); } && { | ||
8307 | test -z "$ac_c_werror_flag" || | ||
8308 | test ! -s conftest.err | ||
8309 | } && test -s conftest.$ac_objext; then | ||
8310 | ac_cv_have_decl_authenticate=yes | ||
8311 | else | ||
8312 | echo "$as_me: failed program was:" >&5 | ||
8313 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8314 | |||
8315 | ac_cv_have_decl_authenticate=no | ||
8316 | fi | ||
8317 | |||
8318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8319 | fi | ||
8320 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
8321 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; } | ||
8322 | if test $ac_cv_have_decl_authenticate = yes; then | ||
8323 | |||
8324 | cat >>confdefs.h <<_ACEOF | ||
8325 | #define HAVE_DECL_AUTHENTICATE 1 | ||
8326 | _ACEOF | ||
8327 | |||
8328 | |||
8329 | else | ||
8330 | cat >>confdefs.h <<_ACEOF | ||
8331 | #define HAVE_DECL_AUTHENTICATE 0 | ||
8332 | _ACEOF | ||
8333 | |||
8334 | |||
8335 | fi | ||
8336 | { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
8337 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; } | ||
8338 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
8339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8340 | else | ||
8341 | cat >conftest.$ac_ext <<_ACEOF | ||
8342 | /* confdefs.h. */ | ||
8343 | _ACEOF | ||
8344 | cat confdefs.h >>conftest.$ac_ext | ||
8345 | cat >>conftest.$ac_ext <<_ACEOF | ||
8346 | /* end confdefs.h. */ | ||
8347 | #include <usersec.h> | ||
8348 | |||
8349 | int | ||
8350 | main () | ||
8351 | { | ||
8352 | #ifndef loginrestrictions | ||
8353 | (void) loginrestrictions; | ||
8354 | #endif | ||
8355 | |||
8356 | ; | ||
8357 | return 0; | ||
8358 | } | ||
8359 | _ACEOF | ||
8360 | rm -f conftest.$ac_objext | ||
8361 | if { (ac_try="$ac_compile" | ||
8362 | case "(($ac_try" in | ||
8363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8364 | *) ac_try_echo=$ac_try;; | ||
8365 | esac | ||
8366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8367 | (eval "$ac_compile") 2>conftest.er1 | ||
8368 | ac_status=$? | ||
8369 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8370 | rm -f conftest.er1 | ||
8371 | cat conftest.err >&5 | ||
8372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8373 | (exit $ac_status); } && { | ||
8374 | test -z "$ac_c_werror_flag" || | ||
8375 | test ! -s conftest.err | ||
8376 | } && test -s conftest.$ac_objext; then | ||
8377 | ac_cv_have_decl_loginrestrictions=yes | ||
8378 | else | ||
8379 | echo "$as_me: failed program was:" >&5 | ||
8380 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8381 | |||
8382 | ac_cv_have_decl_loginrestrictions=no | ||
8383 | fi | ||
8384 | |||
8385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8386 | fi | ||
8387 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
8388 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; } | ||
8389 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
8390 | |||
8391 | cat >>confdefs.h <<_ACEOF | ||
8392 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
8393 | _ACEOF | ||
8394 | |||
8395 | |||
8396 | else | ||
8397 | cat >>confdefs.h <<_ACEOF | ||
8398 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
8399 | _ACEOF | ||
8400 | |||
8401 | |||
8402 | fi | ||
8403 | { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
8404 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; } | ||
8405 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
8406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8407 | else | ||
8408 | cat >conftest.$ac_ext <<_ACEOF | ||
8409 | /* confdefs.h. */ | ||
8410 | _ACEOF | ||
8411 | cat confdefs.h >>conftest.$ac_ext | ||
8412 | cat >>conftest.$ac_ext <<_ACEOF | ||
8413 | /* end confdefs.h. */ | ||
8414 | #include <usersec.h> | ||
8415 | |||
8416 | int | ||
8417 | main () | ||
8418 | { | ||
8419 | #ifndef loginsuccess | ||
8420 | (void) loginsuccess; | ||
8421 | #endif | ||
8422 | |||
8423 | ; | ||
8424 | return 0; | ||
8425 | } | ||
8426 | _ACEOF | ||
8427 | rm -f conftest.$ac_objext | ||
8428 | if { (ac_try="$ac_compile" | ||
8429 | case "(($ac_try" in | ||
8430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8431 | *) ac_try_echo=$ac_try;; | ||
8432 | esac | ||
8433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8434 | (eval "$ac_compile") 2>conftest.er1 | ||
8435 | ac_status=$? | ||
8436 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8437 | rm -f conftest.er1 | ||
8438 | cat conftest.err >&5 | ||
8439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8440 | (exit $ac_status); } && { | ||
8441 | test -z "$ac_c_werror_flag" || | ||
8442 | test ! -s conftest.err | ||
8443 | } && test -s conftest.$ac_objext; then | ||
8444 | ac_cv_have_decl_loginsuccess=yes | ||
8445 | else | ||
8446 | echo "$as_me: failed program was:" >&5 | ||
8447 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8448 | |||
8449 | ac_cv_have_decl_loginsuccess=no | ||
8450 | fi | ||
8451 | |||
8452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8453 | fi | ||
8454 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
8455 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; } | ||
8456 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
8457 | |||
8458 | cat >>confdefs.h <<_ACEOF | ||
8459 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
8460 | _ACEOF | ||
8461 | |||
8462 | |||
8463 | else | ||
8464 | cat >>confdefs.h <<_ACEOF | ||
8465 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
8466 | _ACEOF | ||
8467 | |||
8468 | |||
8469 | fi | ||
8470 | { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
8471 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; } | ||
8472 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
8473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8474 | else | ||
8475 | cat >conftest.$ac_ext <<_ACEOF | ||
8476 | /* confdefs.h. */ | ||
8477 | _ACEOF | ||
8478 | cat confdefs.h >>conftest.$ac_ext | ||
8479 | cat >>conftest.$ac_ext <<_ACEOF | ||
8480 | /* end confdefs.h. */ | ||
8481 | #include <usersec.h> | ||
8482 | |||
8483 | int | ||
8484 | main () | ||
8485 | { | ||
8486 | #ifndef passwdexpired | ||
8487 | (void) passwdexpired; | ||
8488 | #endif | ||
8489 | |||
8490 | ; | ||
8491 | return 0; | ||
8492 | } | ||
8493 | _ACEOF | ||
8494 | rm -f conftest.$ac_objext | ||
8495 | if { (ac_try="$ac_compile" | ||
8496 | case "(($ac_try" in | ||
8497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8498 | *) ac_try_echo=$ac_try;; | ||
8499 | esac | ||
8500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8501 | (eval "$ac_compile") 2>conftest.er1 | ||
8502 | ac_status=$? | ||
8503 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8504 | rm -f conftest.er1 | ||
8505 | cat conftest.err >&5 | ||
8506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8507 | (exit $ac_status); } && { | ||
8508 | test -z "$ac_c_werror_flag" || | ||
8509 | test ! -s conftest.err | ||
8510 | } && test -s conftest.$ac_objext; then | ||
8511 | ac_cv_have_decl_passwdexpired=yes | ||
8512 | else | ||
8513 | echo "$as_me: failed program was:" >&5 | ||
8514 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8515 | |||
8516 | ac_cv_have_decl_passwdexpired=no | ||
8517 | fi | ||
8518 | |||
8519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8520 | fi | ||
8521 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
8522 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; } | ||
8523 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
8524 | |||
8525 | cat >>confdefs.h <<_ACEOF | ||
8526 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
8527 | _ACEOF | ||
8528 | |||
8529 | |||
8530 | else | ||
8531 | cat >>confdefs.h <<_ACEOF | ||
8532 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
8533 | _ACEOF | ||
8534 | |||
8535 | |||
8536 | fi | ||
8537 | { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
8538 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; } | ||
8539 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
8540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8541 | else | ||
8542 | cat >conftest.$ac_ext <<_ACEOF | ||
8543 | /* confdefs.h. */ | ||
8544 | _ACEOF | ||
8545 | cat confdefs.h >>conftest.$ac_ext | ||
8546 | cat >>conftest.$ac_ext <<_ACEOF | ||
8547 | /* end confdefs.h. */ | ||
8548 | #include <usersec.h> | ||
8549 | |||
8550 | int | ||
8551 | main () | ||
8552 | { | ||
8553 | #ifndef setauthdb | ||
8554 | (void) setauthdb; | ||
8555 | #endif | ||
8556 | |||
8557 | ; | ||
8558 | return 0; | ||
8559 | } | ||
8560 | _ACEOF | ||
8561 | rm -f conftest.$ac_objext | ||
8562 | if { (ac_try="$ac_compile" | ||
8563 | case "(($ac_try" in | ||
8564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8565 | *) ac_try_echo=$ac_try;; | ||
8566 | esac | ||
8567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8568 | (eval "$ac_compile") 2>conftest.er1 | ||
8569 | ac_status=$? | ||
8570 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8571 | rm -f conftest.er1 | ||
8572 | cat conftest.err >&5 | ||
8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8574 | (exit $ac_status); } && { | ||
8575 | test -z "$ac_c_werror_flag" || | ||
8576 | test ! -s conftest.err | ||
8577 | } && test -s conftest.$ac_objext; then | ||
8578 | ac_cv_have_decl_setauthdb=yes | ||
8579 | else | ||
8580 | echo "$as_me: failed program was:" >&5 | ||
8581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8582 | |||
8583 | ac_cv_have_decl_setauthdb=no | ||
8584 | fi | ||
8585 | |||
8586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8587 | fi | ||
8588 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
8589 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; } | ||
8590 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
8591 | |||
8592 | cat >>confdefs.h <<_ACEOF | ||
8593 | #define HAVE_DECL_SETAUTHDB 1 | ||
8594 | _ACEOF | ||
8595 | |||
8596 | |||
8597 | else | ||
8598 | cat >>confdefs.h <<_ACEOF | ||
8599 | #define HAVE_DECL_SETAUTHDB 0 | ||
8600 | _ACEOF | ||
8601 | |||
8602 | |||
8603 | fi | ||
8604 | |||
8605 | |||
8606 | { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
8607 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; } | ||
8608 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
8609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8610 | else | ||
8611 | cat >conftest.$ac_ext <<_ACEOF | ||
8612 | /* confdefs.h. */ | ||
8613 | _ACEOF | ||
8614 | cat confdefs.h >>conftest.$ac_ext | ||
8615 | cat >>conftest.$ac_ext <<_ACEOF | ||
8616 | /* end confdefs.h. */ | ||
8617 | #include <usersec.h> | ||
8618 | |||
8619 | |||
8620 | int | ||
8621 | main () | ||
8622 | { | ||
8623 | #ifndef loginfailed | ||
8624 | (void) loginfailed; | ||
8625 | #endif | ||
8626 | |||
8627 | ; | ||
8628 | return 0; | ||
8629 | } | ||
8630 | _ACEOF | ||
8631 | rm -f conftest.$ac_objext | ||
8632 | if { (ac_try="$ac_compile" | ||
8633 | case "(($ac_try" in | ||
8634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8635 | *) ac_try_echo=$ac_try;; | ||
8636 | esac | ||
8637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8638 | (eval "$ac_compile") 2>conftest.er1 | ||
8639 | ac_status=$? | ||
8640 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8641 | rm -f conftest.er1 | ||
8642 | cat conftest.err >&5 | ||
8643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8644 | (exit $ac_status); } && { | ||
8645 | test -z "$ac_c_werror_flag" || | ||
8646 | test ! -s conftest.err | ||
8647 | } && test -s conftest.$ac_objext; then | ||
8648 | ac_cv_have_decl_loginfailed=yes | ||
8649 | else | ||
8650 | echo "$as_me: failed program was:" >&5 | ||
8651 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8652 | |||
8653 | ac_cv_have_decl_loginfailed=no | ||
8654 | fi | ||
8655 | |||
8656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8657 | fi | ||
8658 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
8659 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; } | ||
8660 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
8661 | |||
8662 | cat >>confdefs.h <<_ACEOF | ||
8663 | #define HAVE_DECL_LOGINFAILED 1 | ||
8664 | _ACEOF | ||
8665 | |||
8666 | { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
8667 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; } | ||
8668 | cat >conftest.$ac_ext <<_ACEOF | ||
8669 | /* confdefs.h. */ | ||
8670 | _ACEOF | ||
8671 | cat confdefs.h >>conftest.$ac_ext | ||
8672 | cat >>conftest.$ac_ext <<_ACEOF | ||
8673 | /* end confdefs.h. */ | ||
8674 | #include <usersec.h> | ||
8675 | int | ||
8676 | main () | ||
8677 | { | ||
8678 | (void)loginfailed("user","host","tty",0); | ||
8679 | ; | ||
8680 | return 0; | ||
8681 | } | ||
8682 | _ACEOF | ||
8683 | rm -f conftest.$ac_objext | ||
8684 | if { (ac_try="$ac_compile" | ||
8685 | case "(($ac_try" in | ||
8686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8687 | *) ac_try_echo=$ac_try;; | ||
8688 | esac | ||
8689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8690 | (eval "$ac_compile") 2>conftest.er1 | ||
8691 | ac_status=$? | ||
8692 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8693 | rm -f conftest.er1 | ||
8694 | cat conftest.err >&5 | ||
8695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8696 | (exit $ac_status); } && { | ||
8697 | test -z "$ac_c_werror_flag" || | ||
8698 | test ! -s conftest.err | ||
8699 | } && test -s conftest.$ac_objext; then | ||
8700 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8701 | echo "${ECHO_T}yes" >&6; } | ||
8702 | |||
8703 | cat >>confdefs.h <<\_ACEOF | ||
8704 | #define AIX_LOGINFAILED_4ARG 1 | ||
8705 | _ACEOF | ||
8706 | |||
8707 | else | ||
8708 | echo "$as_me: failed program was:" >&5 | ||
8709 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8710 | |||
8711 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8712 | echo "${ECHO_T}no" >&6; } | ||
8713 | |||
8714 | fi | ||
8715 | |||
8716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8717 | else | ||
8718 | cat >>confdefs.h <<_ACEOF | ||
8719 | #define HAVE_DECL_LOGINFAILED 0 | ||
8720 | _ACEOF | ||
8721 | |||
8722 | |||
8723 | fi | ||
8724 | |||
8725 | |||
8726 | |||
8727 | |||
8728 | for ac_func in getgrset setauthdb | ||
8729 | do | ||
8730 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8731 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8732 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8733 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8735 | else | ||
8736 | cat >conftest.$ac_ext <<_ACEOF | ||
8737 | /* confdefs.h. */ | ||
8738 | _ACEOF | ||
8739 | cat confdefs.h >>conftest.$ac_ext | ||
8740 | cat >>conftest.$ac_ext <<_ACEOF | ||
8741 | /* end confdefs.h. */ | ||
8742 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8743 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8744 | #define $ac_func innocuous_$ac_func | ||
8745 | |||
8746 | /* System header to define __stub macros and hopefully few prototypes, | ||
8747 | which can conflict with char $ac_func (); below. | ||
8748 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8749 | <limits.h> exists even on freestanding compilers. */ | ||
8750 | |||
8751 | #ifdef __STDC__ | ||
8752 | # include <limits.h> | ||
8753 | #else | ||
8754 | # include <assert.h> | ||
8755 | #endif | ||
8756 | |||
8757 | #undef $ac_func | ||
8758 | |||
8759 | /* Override any GCC internal prototype to avoid an error. | ||
8760 | Use char because int might match the return type of a GCC | ||
8761 | builtin and then its argument prototype would still apply. */ | ||
8762 | #ifdef __cplusplus | ||
8763 | extern "C" | ||
8764 | #endif | ||
8765 | char $ac_func (); | ||
8766 | /* The GNU C library defines this for functions which it implements | ||
8767 | to always fail with ENOSYS. Some functions are actually named | ||
8768 | something starting with __ and the normal name is an alias. */ | ||
8769 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8770 | choke me | ||
8771 | #endif | ||
8772 | |||
8773 | int | ||
8774 | main () | ||
8775 | { | ||
8776 | return $ac_func (); | ||
8777 | ; | ||
8778 | return 0; | ||
8779 | } | ||
8780 | _ACEOF | ||
8781 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8782 | if { (ac_try="$ac_link" | ||
8783 | case "(($ac_try" in | ||
8784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8785 | *) ac_try_echo=$ac_try;; | ||
8786 | esac | ||
8787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8788 | (eval "$ac_link") 2>conftest.er1 | ||
8789 | ac_status=$? | ||
8790 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8791 | rm -f conftest.er1 | ||
8792 | cat conftest.err >&5 | ||
8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8794 | (exit $ac_status); } && { | ||
8795 | test -z "$ac_c_werror_flag" || | ||
8796 | test ! -s conftest.err | ||
8797 | } && test -s conftest$ac_exeext && | ||
8798 | $as_test_x conftest$ac_exeext; then | ||
8799 | eval "$as_ac_var=yes" | ||
8800 | else | ||
8801 | echo "$as_me: failed program was:" >&5 | ||
8802 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8803 | |||
8804 | eval "$as_ac_var=no" | ||
8805 | fi | ||
8806 | |||
8807 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8808 | conftest$ac_exeext conftest.$ac_ext | ||
8809 | fi | ||
8810 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
8811 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8812 | echo "${ECHO_T}$ac_res" >&6; } | ||
8813 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8814 | cat >>confdefs.h <<_ACEOF | ||
8815 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8816 | _ACEOF | ||
8817 | |||
8818 | fi | ||
8819 | done | ||
8820 | |||
8821 | { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 | ||
8822 | echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; } | ||
8823 | if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then | ||
8824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8825 | else | ||
8826 | cat >conftest.$ac_ext <<_ACEOF | ||
8827 | /* confdefs.h. */ | ||
8828 | _ACEOF | ||
8829 | cat confdefs.h >>conftest.$ac_ext | ||
8830 | cat >>conftest.$ac_ext <<_ACEOF | ||
8831 | /* end confdefs.h. */ | ||
8832 | #include <limits.h> | ||
8833 | #include <fcntl.h> | ||
8834 | |||
8835 | |||
8836 | int | ||
8837 | main () | ||
8838 | { | ||
8839 | #ifndef F_CLOSEM | ||
8840 | (void) F_CLOSEM; | ||
8841 | #endif | ||
8842 | |||
8843 | ; | ||
8844 | return 0; | ||
8845 | } | ||
8846 | _ACEOF | ||
8847 | rm -f conftest.$ac_objext | ||
8848 | if { (ac_try="$ac_compile" | ||
8849 | case "(($ac_try" in | ||
8850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8851 | *) ac_try_echo=$ac_try;; | ||
8852 | esac | ||
8853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8854 | (eval "$ac_compile") 2>conftest.er1 | ||
8855 | ac_status=$? | ||
8856 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8857 | rm -f conftest.er1 | ||
8858 | cat conftest.err >&5 | ||
8859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8860 | (exit $ac_status); } && { | ||
8861 | test -z "$ac_c_werror_flag" || | ||
8862 | test ! -s conftest.err | ||
8863 | } && test -s conftest.$ac_objext; then | ||
8864 | ac_cv_have_decl_F_CLOSEM=yes | ||
8865 | else | ||
8866 | echo "$as_me: failed program was:" >&5 | ||
8867 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8868 | |||
8869 | ac_cv_have_decl_F_CLOSEM=no | ||
8870 | fi | ||
8871 | |||
8872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8873 | fi | ||
8874 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 | ||
8875 | echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; } | ||
8876 | if test $ac_cv_have_decl_F_CLOSEM = yes; then | ||
8877 | |||
8878 | cat >>confdefs.h <<\_ACEOF | ||
8879 | #define HAVE_FCNTL_CLOSEM 1 | ||
8880 | _ACEOF | ||
8881 | |||
8882 | fi | ||
8883 | |||
8884 | check_for_aix_broken_getaddrinfo=1 | ||
8885 | |||
8886 | cat >>confdefs.h <<\_ACEOF | ||
8887 | #define BROKEN_REALPATH 1 | ||
8888 | _ACEOF | ||
8889 | |||
8890 | |||
8891 | cat >>confdefs.h <<\_ACEOF | ||
8892 | #define SETEUID_BREAKS_SETUID 1 | ||
8893 | _ACEOF | ||
8894 | |||
8895 | |||
8896 | cat >>confdefs.h <<\_ACEOF | ||
8897 | #define BROKEN_SETREUID 1 | ||
8898 | _ACEOF | ||
8899 | |||
8900 | |||
8901 | cat >>confdefs.h <<\_ACEOF | ||
8902 | #define BROKEN_SETREGID 1 | ||
8903 | _ACEOF | ||
8904 | |||
8905 | |||
8906 | cat >>confdefs.h <<\_ACEOF | ||
8907 | #define DISABLE_LASTLOG 1 | ||
8908 | _ACEOF | ||
8909 | |||
8910 | |||
8911 | cat >>confdefs.h <<\_ACEOF | ||
8912 | #define LOGIN_NEEDS_UTMPX 1 | ||
8913 | _ACEOF | ||
8914 | |||
8915 | |||
8916 | cat >>confdefs.h <<\_ACEOF | ||
8917 | #define SPT_TYPE SPT_REUSEARGV | ||
8918 | _ACEOF | ||
8919 | |||
8920 | |||
8921 | cat >>confdefs.h <<\_ACEOF | ||
8922 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
8923 | _ACEOF | ||
8924 | |||
8925 | |||
8926 | cat >>confdefs.h <<\_ACEOF | ||
8927 | #define PTY_ZEROREAD 1 | ||
8928 | _ACEOF | ||
8929 | |||
8930 | |||
8931 | cat >>confdefs.h <<\_ACEOF | ||
8932 | #define PLATFORM_SYS_DIR_UID 2 | ||
8933 | _ACEOF | ||
8934 | |||
8935 | ;; | ||
8936 | *-*-android*) | ||
8937 | |||
8938 | cat >>confdefs.h <<\_ACEOF | ||
8939 | #define DISABLE_UTMP 1 | ||
8940 | _ACEOF | ||
8941 | |||
8942 | |||
8943 | cat >>confdefs.h <<\_ACEOF | ||
8944 | #define DISABLE_WTMP 1 | ||
8945 | _ACEOF | ||
8946 | |||
8947 | ;; | ||
8948 | *-*-cygwin*) | ||
8949 | check_for_libcrypt_later=1 | ||
8950 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
8951 | |||
8952 | cat >>confdefs.h <<\_ACEOF | ||
8953 | #define HAVE_CYGWIN 1 | ||
8954 | _ACEOF | ||
8955 | |||
8956 | |||
8957 | cat >>confdefs.h <<\_ACEOF | ||
8958 | #define USE_PIPES 1 | ||
8959 | _ACEOF | ||
8960 | |||
8961 | |||
8962 | cat >>confdefs.h <<\_ACEOF | ||
8963 | #define DISABLE_SHADOW 1 | ||
8964 | _ACEOF | ||
8965 | |||
8966 | |||
8967 | cat >>confdefs.h <<\_ACEOF | ||
8968 | #define NO_X11_UNIX_SOCKETS 1 | ||
8969 | _ACEOF | ||
8970 | |||
8971 | |||
8972 | cat >>confdefs.h <<\_ACEOF | ||
8973 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
8974 | _ACEOF | ||
8975 | |||
8976 | |||
8977 | cat >>confdefs.h <<\_ACEOF | ||
8978 | #define DISABLE_FD_PASSING 1 | ||
8979 | _ACEOF | ||
8980 | |||
8981 | |||
8982 | cat >>confdefs.h <<\_ACEOF | ||
8983 | #define SSH_IOBUFSZ 65535 | ||
8984 | _ACEOF | ||
8985 | |||
8986 | |||
8987 | cat >>confdefs.h <<\_ACEOF | ||
8988 | #define FILESYSTEM_NO_BACKSLASH 1 | ||
8989 | _ACEOF | ||
8990 | |||
8991 | # Cygwin defines optargs, optargs as declspec(dllimport) for historical | ||
8992 | # reasons which cause compile warnings, so we disable those warnings. | ||
8993 | { | ||
8994 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wno-attributes" >&5 | ||
8995 | echo $ECHO_N "checking if $CC supports compile flag -Wno-attributes... $ECHO_C" >&6; } | ||
8996 | saved_CFLAGS="$CFLAGS" | ||
8997 | CFLAGS="$CFLAGS $WERROR -Wno-attributes" | ||
8998 | _define_flag="" | ||
8999 | test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" | ||
9000 | cat >conftest.$ac_ext <<_ACEOF | ||
9001 | /* confdefs.h. */ | ||
9002 | _ACEOF | ||
9003 | cat confdefs.h >>conftest.$ac_ext | ||
9004 | cat >>conftest.$ac_ext <<_ACEOF | ||
9005 | /* end confdefs.h. */ | ||
9006 | |||
9007 | #include <stdlib.h> | ||
9008 | #include <stdio.h> | ||
9009 | int main(int argc, char **argv) { | ||
9010 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
9011 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
9012 | float l = i * 2.1; | ||
9013 | double m = l / 0.5; | ||
9014 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
9015 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
9016 | exit(0); | ||
9017 | } | ||
9018 | |||
9019 | _ACEOF | ||
9020 | rm -f conftest.$ac_objext | ||
9021 | if { (ac_try="$ac_compile" | ||
9022 | case "(($ac_try" in | ||
9023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9024 | *) ac_try_echo=$ac_try;; | ||
9025 | esac | ||
9026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9027 | (eval "$ac_compile") 2>conftest.er1 | ||
9028 | ac_status=$? | ||
9029 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9030 | rm -f conftest.er1 | ||
9031 | cat conftest.err >&5 | ||
9032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9033 | (exit $ac_status); } && { | ||
9034 | test -z "$ac_c_werror_flag" || | ||
9035 | test ! -s conftest.err | ||
9036 | } && test -s conftest.$ac_objext; then | ||
9037 | |||
9038 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
9039 | then | ||
9040 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9041 | echo "${ECHO_T}no" >&6; } | ||
9042 | CFLAGS="$saved_CFLAGS" | ||
9043 | else | ||
9044 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9045 | echo "${ECHO_T}yes" >&6; } | ||
9046 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
9047 | fi | ||
9048 | else | ||
9049 | echo "$as_me: failed program was:" >&5 | ||
9050 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9051 | |||
9052 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9053 | echo "${ECHO_T}no" >&6; } | ||
9054 | CFLAGS="$saved_CFLAGS" | ||
9055 | |||
9056 | fi | ||
9057 | |||
9058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9059 | } | ||
9060 | ;; | ||
9061 | *-*-dgux*) | ||
9062 | |||
9063 | cat >>confdefs.h <<\_ACEOF | ||
9064 | #define IP_TOS_IS_BROKEN 1 | ||
9065 | _ACEOF | ||
9066 | |||
9067 | cat >>confdefs.h <<\_ACEOF | ||
9068 | #define SETEUID_BREAKS_SETUID 1 | ||
9069 | _ACEOF | ||
9070 | |||
9071 | cat >>confdefs.h <<\_ACEOF | ||
9072 | #define BROKEN_SETREUID 1 | ||
9073 | _ACEOF | ||
9074 | |||
9075 | cat >>confdefs.h <<\_ACEOF | ||
9076 | #define BROKEN_SETREGID 1 | ||
9077 | _ACEOF | ||
9078 | |||
9079 | ;; | ||
9080 | *-*-darwin*) | ||
9081 | use_pie=auto | ||
9082 | { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
9083 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; } | ||
9084 | if test "$cross_compiling" = yes; then | ||
9085 | { echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
9086 | echo "${ECHO_T}assume it is working" >&6; } | ||
9087 | else | ||
9088 | cat >conftest.$ac_ext <<_ACEOF | ||
9089 | /* confdefs.h. */ | ||
9090 | _ACEOF | ||
9091 | cat confdefs.h >>conftest.$ac_ext | ||
9092 | cat >>conftest.$ac_ext <<_ACEOF | ||
9093 | /* end confdefs.h. */ | ||
9094 | #include <mach-o/dyld.h> | ||
9095 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
9096 | exit(0); | ||
9097 | else | ||
9098 | exit(1); | ||
9099 | } | ||
9100 | |||
9101 | _ACEOF | ||
9102 | rm -f conftest$ac_exeext | ||
9103 | if { (ac_try="$ac_link" | ||
9104 | case "(($ac_try" in | ||
9105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9106 | *) ac_try_echo=$ac_try;; | ||
9107 | esac | ||
9108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9109 | (eval "$ac_link") 2>&5 | ||
9110 | ac_status=$? | ||
9111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9113 | { (case "(($ac_try" in | ||
9114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9115 | *) ac_try_echo=$ac_try;; | ||
9116 | esac | ||
9117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9118 | (eval "$ac_try") 2>&5 | ||
9119 | ac_status=$? | ||
9120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9121 | (exit $ac_status); }; }; then | ||
9122 | { echo "$as_me:$LINENO: result: working" >&5 | ||
9123 | echo "${ECHO_T}working" >&6; } | ||
9124 | else | ||
9125 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9126 | echo "$as_me: failed program was:" >&5 | ||
9127 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9128 | |||
9129 | ( exit $ac_status ) | ||
9130 | { echo "$as_me:$LINENO: result: buggy" >&5 | ||
9131 | echo "${ECHO_T}buggy" >&6; } | ||
9132 | |||
9133 | cat >>confdefs.h <<\_ACEOF | ||
9134 | #define BROKEN_GETADDRINFO 1 | ||
9135 | _ACEOF | ||
9136 | |||
9137 | |||
9138 | fi | ||
9139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9140 | fi | ||
9141 | |||
9142 | |||
9143 | cat >>confdefs.h <<\_ACEOF | ||
9144 | #define SETEUID_BREAKS_SETUID 1 | ||
9145 | _ACEOF | ||
9146 | |||
9147 | cat >>confdefs.h <<\_ACEOF | ||
9148 | #define BROKEN_SETREUID 1 | ||
9149 | _ACEOF | ||
9150 | |||
9151 | cat >>confdefs.h <<\_ACEOF | ||
9152 | #define BROKEN_SETREGID 1 | ||
9153 | _ACEOF | ||
9154 | |||
9155 | |||
9156 | cat >>confdefs.h <<\_ACEOF | ||
9157 | #define BROKEN_GLOB 1 | ||
9158 | _ACEOF | ||
9159 | |||
9160 | |||
9161 | cat >>confdefs.h <<_ACEOF | ||
9162 | #define BIND_8_COMPAT 1 | ||
9163 | _ACEOF | ||
9164 | |||
9165 | |||
9166 | cat >>confdefs.h <<\_ACEOF | ||
9167 | #define SSH_TUN_FREEBSD 1 | ||
9168 | _ACEOF | ||
9169 | |||
9170 | |||
9171 | cat >>confdefs.h <<\_ACEOF | ||
9172 | #define SSH_TUN_COMPAT_AF 1 | ||
9173 | _ACEOF | ||
9174 | |||
9175 | |||
9176 | cat >>confdefs.h <<\_ACEOF | ||
9177 | #define SSH_TUN_PREPEND_AF 1 | ||
9178 | _ACEOF | ||
9179 | |||
9180 | |||
9181 | { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5 | ||
9182 | echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; } | ||
9183 | if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then | ||
9184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9185 | else | ||
9186 | cat >conftest.$ac_ext <<_ACEOF | ||
9187 | /* confdefs.h. */ | ||
9188 | _ACEOF | ||
9189 | cat confdefs.h >>conftest.$ac_ext | ||
9190 | cat >>conftest.$ac_ext <<_ACEOF | ||
9191 | /* end confdefs.h. */ | ||
9192 | $ac_includes_default | ||
9193 | int | ||
9194 | main () | ||
9195 | { | ||
9196 | #ifndef AU_IPv4 | ||
9197 | (void) AU_IPv4; | ||
9198 | #endif | ||
9199 | |||
9200 | ; | ||
9201 | return 0; | ||
9202 | } | ||
9203 | _ACEOF | ||
9204 | rm -f conftest.$ac_objext | ||
9205 | if { (ac_try="$ac_compile" | ||
9206 | case "(($ac_try" in | ||
9207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9208 | *) ac_try_echo=$ac_try;; | ||
9209 | esac | ||
9210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9211 | (eval "$ac_compile") 2>conftest.er1 | ||
9212 | ac_status=$? | ||
9213 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9214 | rm -f conftest.er1 | ||
9215 | cat conftest.err >&5 | ||
9216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9217 | (exit $ac_status); } && { | ||
9218 | test -z "$ac_c_werror_flag" || | ||
9219 | test ! -s conftest.err | ||
9220 | } && test -s conftest.$ac_objext; then | ||
9221 | ac_cv_have_decl_AU_IPv4=yes | ||
9222 | else | ||
9223 | echo "$as_me: failed program was:" >&5 | ||
9224 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9225 | |||
9226 | ac_cv_have_decl_AU_IPv4=no | ||
9227 | fi | ||
9228 | |||
9229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9230 | fi | ||
9231 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5 | ||
9232 | echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; } | ||
9233 | if test $ac_cv_have_decl_AU_IPv4 = yes; then | ||
9234 | : | ||
9235 | else | ||
9236 | |||
9237 | cat >>confdefs.h <<\_ACEOF | ||
9238 | #define AU_IPv4 0 | ||
9239 | _ACEOF | ||
9240 | |||
9241 | #include <bsm/audit.h> | ||
9242 | |||
9243 | cat >>confdefs.h <<\_ACEOF | ||
9244 | #define LASTLOG_WRITE_PUTUTXLINE 1 | ||
9245 | _ACEOF | ||
9246 | |||
9247 | |||
9248 | fi | ||
9249 | |||
9250 | |||
9251 | cat >>confdefs.h <<\_ACEOF | ||
9252 | #define SPT_TYPE SPT_REUSEARGV | ||
9253 | _ACEOF | ||
9254 | |||
9255 | |||
9256 | for ac_func in sandbox_init | ||
9257 | do | ||
9258 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9259 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9260 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9261 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9263 | else | ||
9264 | cat >conftest.$ac_ext <<_ACEOF | ||
9265 | /* confdefs.h. */ | ||
9266 | _ACEOF | ||
9267 | cat confdefs.h >>conftest.$ac_ext | ||
9268 | cat >>conftest.$ac_ext <<_ACEOF | ||
9269 | /* end confdefs.h. */ | ||
9270 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9271 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9272 | #define $ac_func innocuous_$ac_func | ||
9273 | |||
9274 | /* System header to define __stub macros and hopefully few prototypes, | ||
9275 | which can conflict with char $ac_func (); below. | ||
9276 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9277 | <limits.h> exists even on freestanding compilers. */ | ||
9278 | |||
9279 | #ifdef __STDC__ | ||
9280 | # include <limits.h> | ||
9281 | #else | ||
9282 | # include <assert.h> | ||
9283 | #endif | ||
9284 | |||
9285 | #undef $ac_func | ||
9286 | |||
9287 | /* Override any GCC internal prototype to avoid an error. | ||
9288 | Use char because int might match the return type of a GCC | ||
9289 | builtin and then its argument prototype would still apply. */ | ||
9290 | #ifdef __cplusplus | ||
9291 | extern "C" | ||
9292 | #endif | ||
9293 | char $ac_func (); | ||
9294 | /* The GNU C library defines this for functions which it implements | ||
9295 | to always fail with ENOSYS. Some functions are actually named | ||
9296 | something starting with __ and the normal name is an alias. */ | ||
9297 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9298 | choke me | ||
9299 | #endif | ||
9300 | |||
9301 | int | ||
9302 | main () | ||
9303 | { | ||
9304 | return $ac_func (); | ||
9305 | ; | ||
9306 | return 0; | ||
9307 | } | ||
9308 | _ACEOF | ||
9309 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9310 | if { (ac_try="$ac_link" | ||
9311 | case "(($ac_try" in | ||
9312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9313 | *) ac_try_echo=$ac_try;; | ||
9314 | esac | ||
9315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9316 | (eval "$ac_link") 2>conftest.er1 | ||
9317 | ac_status=$? | ||
9318 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9319 | rm -f conftest.er1 | ||
9320 | cat conftest.err >&5 | ||
9321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9322 | (exit $ac_status); } && { | ||
9323 | test -z "$ac_c_werror_flag" || | ||
9324 | test ! -s conftest.err | ||
9325 | } && test -s conftest$ac_exeext && | ||
9326 | $as_test_x conftest$ac_exeext; then | ||
9327 | eval "$as_ac_var=yes" | ||
9328 | else | ||
9329 | echo "$as_me: failed program was:" >&5 | ||
9330 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9331 | |||
9332 | eval "$as_ac_var=no" | ||
9333 | fi | ||
9334 | |||
9335 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9336 | conftest$ac_exeext conftest.$ac_ext | ||
9337 | fi | ||
9338 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9340 | echo "${ECHO_T}$ac_res" >&6; } | ||
9341 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9342 | cat >>confdefs.h <<_ACEOF | ||
9343 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9344 | _ACEOF | ||
9345 | |||
9346 | fi | ||
9347 | done | ||
9348 | |||
9349 | |||
9350 | for ac_header in sandbox.h | ||
9351 | do | ||
9352 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9354 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9356 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9358 | fi | ||
9359 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9360 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9361 | echo "${ECHO_T}$ac_res" >&6; } | ||
9362 | else | ||
9363 | # Is the header compilable? | ||
9364 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9365 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
9366 | cat >conftest.$ac_ext <<_ACEOF | ||
9367 | /* confdefs.h. */ | ||
9368 | _ACEOF | ||
9369 | cat confdefs.h >>conftest.$ac_ext | ||
9370 | cat >>conftest.$ac_ext <<_ACEOF | ||
9371 | /* end confdefs.h. */ | ||
9372 | $ac_includes_default | ||
9373 | #include <$ac_header> | ||
9374 | _ACEOF | ||
9375 | rm -f conftest.$ac_objext | ||
9376 | if { (ac_try="$ac_compile" | ||
9377 | case "(($ac_try" in | ||
9378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9379 | *) ac_try_echo=$ac_try;; | ||
9380 | esac | ||
9381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9382 | (eval "$ac_compile") 2>conftest.er1 | ||
9383 | ac_status=$? | ||
9384 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9385 | rm -f conftest.er1 | ||
9386 | cat conftest.err >&5 | ||
9387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9388 | (exit $ac_status); } && { | ||
9389 | test -z "$ac_c_werror_flag" || | ||
9390 | test ! -s conftest.err | ||
9391 | } && test -s conftest.$ac_objext; then | ||
9392 | ac_header_compiler=yes | ||
9393 | else | ||
9394 | echo "$as_me: failed program was:" >&5 | ||
9395 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9396 | |||
9397 | ac_header_compiler=no | ||
9398 | fi | ||
9399 | |||
9400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9401 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9402 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
9403 | |||
9404 | # Is the header present? | ||
9405 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9406 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
9407 | cat >conftest.$ac_ext <<_ACEOF | ||
9408 | /* confdefs.h. */ | ||
9409 | _ACEOF | ||
9410 | cat confdefs.h >>conftest.$ac_ext | ||
9411 | cat >>conftest.$ac_ext <<_ACEOF | ||
9412 | /* end confdefs.h. */ | ||
9413 | #include <$ac_header> | ||
9414 | _ACEOF | ||
9415 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
9416 | case "(($ac_try" in | ||
9417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9418 | *) ac_try_echo=$ac_try;; | ||
9419 | esac | ||
9420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9421 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
9422 | ac_status=$? | ||
9423 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9424 | rm -f conftest.er1 | ||
9425 | cat conftest.err >&5 | ||
9426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9427 | (exit $ac_status); } >/dev/null && { | ||
9428 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
9429 | test ! -s conftest.err | ||
9430 | }; then | ||
9431 | ac_header_preproc=yes | ||
9432 | else | ||
9433 | echo "$as_me: failed program was:" >&5 | ||
9434 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9435 | |||
9436 | ac_header_preproc=no | ||
9437 | fi | ||
9438 | |||
9439 | rm -f conftest.err conftest.$ac_ext | ||
9440 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9441 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
9442 | |||
9443 | # So? What about this header? | ||
9444 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9445 | yes:no: ) | ||
9446 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9447 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9448 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
9449 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
9450 | ac_header_preproc=yes | ||
9451 | ;; | ||
9452 | no:yes:* ) | ||
9453 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
9454 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
9455 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
9456 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
9457 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
9458 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
9459 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
9460 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
9462 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
9463 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
9464 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
9465 | ( cat <<\_ASBOX | ||
9466 | ## ------------------------------------------- ## | ||
9467 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
9468 | ## ------------------------------------------- ## | ||
9469 | _ASBOX | ||
9470 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
9471 | ;; | ||
9472 | esac | ||
9473 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9474 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9475 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9477 | else | ||
9478 | eval "$as_ac_Header=\$ac_header_preproc" | ||
9479 | fi | ||
9480 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9481 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9482 | echo "${ECHO_T}$ac_res" >&6; } | ||
9483 | |||
9484 | fi | ||
9485 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
9486 | cat >>confdefs.h <<_ACEOF | ||
9487 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9488 | _ACEOF | ||
9489 | |||
9490 | fi | ||
9491 | |||
9492 | done | ||
9493 | |||
9494 | ;; | ||
9495 | *-*-dragonfly*) | ||
9496 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
9497 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
9498 | ;; | ||
9499 | *-*-haiku*) | ||
9500 | LIBS="$LIBS -lbsd " | ||
9501 | |||
9502 | { echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5 | ||
9503 | echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; } | ||
9504 | if test "${ac_cv_lib_network_socket+set}" = set; then | ||
9505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9506 | else | ||
9507 | ac_check_lib_save_LIBS=$LIBS | ||
9508 | LIBS="-lnetwork $LIBS" | ||
9509 | cat >conftest.$ac_ext <<_ACEOF | ||
9510 | /* confdefs.h. */ | ||
9511 | _ACEOF | ||
9512 | cat confdefs.h >>conftest.$ac_ext | ||
9513 | cat >>conftest.$ac_ext <<_ACEOF | ||
9514 | /* end confdefs.h. */ | ||
9515 | |||
9516 | /* Override any GCC internal prototype to avoid an error. | ||
9517 | Use char because int might match the return type of a GCC | ||
9518 | builtin and then its argument prototype would still apply. */ | ||
9519 | #ifdef __cplusplus | ||
9520 | extern "C" | ||
9521 | #endif | ||
9522 | char socket (); | ||
9523 | int | ||
9524 | main () | ||
9525 | { | ||
9526 | return socket (); | ||
9527 | ; | ||
9528 | return 0; | ||
9529 | } | ||
9530 | _ACEOF | ||
9531 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9532 | if { (ac_try="$ac_link" | ||
9533 | case "(($ac_try" in | ||
9534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9535 | *) ac_try_echo=$ac_try;; | ||
9536 | esac | ||
9537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9538 | (eval "$ac_link") 2>conftest.er1 | ||
9539 | ac_status=$? | ||
9540 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9541 | rm -f conftest.er1 | ||
9542 | cat conftest.err >&5 | ||
9543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9544 | (exit $ac_status); } && { | ||
9545 | test -z "$ac_c_werror_flag" || | ||
9546 | test ! -s conftest.err | ||
9547 | } && test -s conftest$ac_exeext && | ||
9548 | $as_test_x conftest$ac_exeext; then | ||
9549 | ac_cv_lib_network_socket=yes | ||
9550 | else | ||
9551 | echo "$as_me: failed program was:" >&5 | ||
9552 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9553 | |||
9554 | ac_cv_lib_network_socket=no | ||
9555 | fi | ||
9556 | |||
9557 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9558 | conftest$ac_exeext conftest.$ac_ext | ||
9559 | LIBS=$ac_check_lib_save_LIBS | ||
9560 | fi | ||
9561 | { echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5 | ||
9562 | echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; } | ||
9563 | if test $ac_cv_lib_network_socket = yes; then | ||
9564 | cat >>confdefs.h <<_ACEOF | ||
9565 | #define HAVE_LIBNETWORK 1 | ||
9566 | _ACEOF | ||
9567 | |||
9568 | LIBS="-lnetwork $LIBS" | ||
9569 | |||
9570 | fi | ||
9571 | |||
9572 | cat >>confdefs.h <<\_ACEOF | ||
9573 | #define HAVE_U_INT64_T 1 | ||
9574 | _ACEOF | ||
9575 | |||
9576 | MANTYPE=man | ||
9577 | ;; | ||
9578 | *-*-hpux*) | ||
9579 | # first we define all of the options common to all HP-UX releases | ||
9580 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
9581 | IPADDR_IN_DISPLAY=yes | ||
9582 | cat >>confdefs.h <<\_ACEOF | ||
9583 | #define USE_PIPES 1 | ||
9584 | _ACEOF | ||
9585 | |||
9586 | |||
9587 | cat >>confdefs.h <<\_ACEOF | ||
9588 | #define LOGIN_NO_ENDOPT 1 | ||
9589 | _ACEOF | ||
9590 | |||
9591 | cat >>confdefs.h <<\_ACEOF | ||
9592 | #define LOGIN_NEEDS_UTMPX 1 | ||
9593 | _ACEOF | ||
9594 | |||
9595 | |||
9596 | cat >>confdefs.h <<\_ACEOF | ||
9597 | #define LOCKED_PASSWD_STRING "*" | ||
9598 | _ACEOF | ||
9599 | |||
9600 | cat >>confdefs.h <<\_ACEOF | ||
9601 | #define SPT_TYPE SPT_PSTAT | ||
9602 | _ACEOF | ||
9603 | |||
9604 | |||
9605 | cat >>confdefs.h <<\_ACEOF | ||
9606 | #define PLATFORM_SYS_DIR_UID 2 | ||
9607 | _ACEOF | ||
9608 | |||
9609 | maildir="/var/mail" | ||
9610 | LIBS="$LIBS -lsec" | ||
9611 | |||
9612 | { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
9613 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; } | ||
9614 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
9615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9616 | else | ||
9617 | ac_check_lib_save_LIBS=$LIBS | ||
9618 | LIBS="-lxnet $LIBS" | ||
9619 | cat >conftest.$ac_ext <<_ACEOF | ||
9620 | /* confdefs.h. */ | ||
9621 | _ACEOF | ||
9622 | cat confdefs.h >>conftest.$ac_ext | ||
9623 | cat >>conftest.$ac_ext <<_ACEOF | ||
9624 | /* end confdefs.h. */ | ||
9625 | |||
9626 | /* Override any GCC internal prototype to avoid an error. | ||
9627 | Use char because int might match the return type of a GCC | ||
9628 | builtin and then its argument prototype would still apply. */ | ||
9629 | #ifdef __cplusplus | ||
9630 | extern "C" | ||
9631 | #endif | ||
9632 | char t_error (); | ||
9633 | int | ||
9634 | main () | ||
9635 | { | ||
9636 | return t_error (); | ||
9637 | ; | ||
9638 | return 0; | ||
9639 | } | ||
9640 | _ACEOF | ||
9641 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9642 | if { (ac_try="$ac_link" | ||
9643 | case "(($ac_try" in | ||
9644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9645 | *) ac_try_echo=$ac_try;; | ||
9646 | esac | ||
9647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9648 | (eval "$ac_link") 2>conftest.er1 | ||
9649 | ac_status=$? | ||
9650 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9651 | rm -f conftest.er1 | ||
9652 | cat conftest.err >&5 | ||
9653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9654 | (exit $ac_status); } && { | ||
9655 | test -z "$ac_c_werror_flag" || | ||
9656 | test ! -s conftest.err | ||
9657 | } && test -s conftest$ac_exeext && | ||
9658 | $as_test_x conftest$ac_exeext; then | ||
9659 | ac_cv_lib_xnet_t_error=yes | ||
9660 | else | ||
9661 | echo "$as_me: failed program was:" >&5 | ||
9662 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9663 | |||
9664 | ac_cv_lib_xnet_t_error=no | ||
9665 | fi | ||
9666 | |||
9667 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9668 | conftest$ac_exeext conftest.$ac_ext | ||
9669 | LIBS=$ac_check_lib_save_LIBS | ||
9670 | fi | ||
9671 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
9672 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; } | ||
9673 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
9674 | cat >>confdefs.h <<_ACEOF | ||
9675 | #define HAVE_LIBXNET 1 | ||
9676 | _ACEOF | ||
9677 | |||
9678 | LIBS="-lxnet $LIBS" | ||
9679 | |||
9680 | else | ||
9681 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
9682 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
9683 | { (exit 1); exit 1; }; } | ||
9684 | fi | ||
9685 | |||
9686 | |||
9687 | # next, we define all of the options specific to major releases | ||
9688 | case "$host" in | ||
9689 | *-*-hpux10*) | ||
9690 | if test -z "$GCC"; then | ||
9691 | CFLAGS="$CFLAGS -Ae" | ||
9692 | fi | ||
9693 | ;; | ||
9694 | *-*-hpux11*) | ||
9695 | |||
9696 | cat >>confdefs.h <<\_ACEOF | ||
9697 | #define PAM_SUN_CODEBASE 1 | ||
9698 | _ACEOF | ||
9699 | |||
9700 | |||
9701 | cat >>confdefs.h <<\_ACEOF | ||
9702 | #define DISABLE_UTMP 1 | ||
9703 | _ACEOF | ||
9704 | |||
9705 | |||
9706 | cat >>confdefs.h <<\_ACEOF | ||
9707 | #define USE_BTMP 1 | ||
9708 | _ACEOF | ||
9709 | |||
9710 | check_for_hpux_broken_getaddrinfo=1 | ||
9711 | check_for_conflicting_getspnam=1 | ||
9712 | ;; | ||
9713 | esac | ||
9714 | |||
9715 | # lastly, we define options specific to minor releases | ||
9716 | case "$host" in | ||
9717 | *-*-hpux10.26) | ||
9718 | |||
9719 | cat >>confdefs.h <<\_ACEOF | ||
9720 | #define HAVE_SECUREWARE 1 | ||
9721 | _ACEOF | ||
9722 | |||
9723 | disable_ptmx_check=yes | ||
9724 | LIBS="$LIBS -lsecpw" | ||
9725 | ;; | ||
9726 | esac | ||
9727 | ;; | ||
9728 | *-*-irix5*) | ||
9729 | PATH="$PATH:/usr/etc" | ||
9730 | |||
9731 | cat >>confdefs.h <<\_ACEOF | ||
9732 | #define BROKEN_INET_NTOA 1 | ||
9733 | _ACEOF | ||
9734 | |||
9735 | cat >>confdefs.h <<\_ACEOF | ||
9736 | #define SETEUID_BREAKS_SETUID 1 | ||
9737 | _ACEOF | ||
9738 | |||
9739 | cat >>confdefs.h <<\_ACEOF | ||
9740 | #define BROKEN_SETREUID 1 | ||
9741 | _ACEOF | ||
9742 | |||
9743 | cat >>confdefs.h <<\_ACEOF | ||
9744 | #define BROKEN_SETREGID 1 | ||
9745 | _ACEOF | ||
9746 | |||
9747 | |||
9748 | cat >>confdefs.h <<\_ACEOF | ||
9749 | #define WITH_ABBREV_NO_TTY 1 | ||
9750 | _ACEOF | ||
9751 | |||
9752 | cat >>confdefs.h <<\_ACEOF | ||
9753 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9754 | _ACEOF | ||
9755 | |||
9756 | ;; | ||
9757 | *-*-irix6*) | ||
9758 | PATH="$PATH:/usr/etc" | ||
9759 | |||
9760 | cat >>confdefs.h <<\_ACEOF | ||
9761 | #define WITH_IRIX_ARRAY 1 | ||
9762 | _ACEOF | ||
9763 | |||
9764 | |||
9765 | cat >>confdefs.h <<\_ACEOF | ||
9766 | #define WITH_IRIX_PROJECT 1 | ||
9767 | _ACEOF | ||
9768 | |||
9769 | |||
9770 | cat >>confdefs.h <<\_ACEOF | ||
9771 | #define WITH_IRIX_AUDIT 1 | ||
9772 | _ACEOF | ||
9773 | |||
9774 | { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
9775 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; } | ||
9776 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
9777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9778 | else | ||
9779 | cat >conftest.$ac_ext <<_ACEOF | ||
9780 | /* confdefs.h. */ | ||
9781 | _ACEOF | ||
9782 | cat confdefs.h >>conftest.$ac_ext | ||
9783 | cat >>conftest.$ac_ext <<_ACEOF | ||
9784 | /* end confdefs.h. */ | ||
9785 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
9786 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9787 | #define jlimit_startjob innocuous_jlimit_startjob | ||
9788 | |||
9789 | /* System header to define __stub macros and hopefully few prototypes, | ||
9790 | which can conflict with char jlimit_startjob (); below. | ||
9791 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9792 | <limits.h> exists even on freestanding compilers. */ | ||
9793 | |||
9794 | #ifdef __STDC__ | ||
9795 | # include <limits.h> | ||
9796 | #else | ||
9797 | # include <assert.h> | ||
9798 | #endif | ||
9799 | |||
9800 | #undef jlimit_startjob | ||
9801 | |||
9802 | /* Override any GCC internal prototype to avoid an error. | ||
9803 | Use char because int might match the return type of a GCC | ||
9804 | builtin and then its argument prototype would still apply. */ | ||
9805 | #ifdef __cplusplus | ||
9806 | extern "C" | ||
9807 | #endif | ||
9808 | char jlimit_startjob (); | ||
9809 | /* The GNU C library defines this for functions which it implements | ||
9810 | to always fail with ENOSYS. Some functions are actually named | ||
9811 | something starting with __ and the normal name is an alias. */ | ||
9812 | #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob | ||
9813 | choke me | ||
9814 | #endif | ||
9815 | |||
9816 | int | ||
9817 | main () | ||
9818 | { | ||
9819 | return jlimit_startjob (); | ||
9820 | ; | ||
9821 | return 0; | ||
9822 | } | ||
9823 | _ACEOF | ||
9824 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9825 | if { (ac_try="$ac_link" | ||
9826 | case "(($ac_try" in | ||
9827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9828 | *) ac_try_echo=$ac_try;; | ||
9829 | esac | ||
9830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9831 | (eval "$ac_link") 2>conftest.er1 | ||
9832 | ac_status=$? | ||
9833 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9834 | rm -f conftest.er1 | ||
9835 | cat conftest.err >&5 | ||
9836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9837 | (exit $ac_status); } && { | ||
9838 | test -z "$ac_c_werror_flag" || | ||
9839 | test ! -s conftest.err | ||
9840 | } && test -s conftest$ac_exeext && | ||
9841 | $as_test_x conftest$ac_exeext; then | ||
9842 | ac_cv_func_jlimit_startjob=yes | ||
9843 | else | ||
9844 | echo "$as_me: failed program was:" >&5 | ||
9845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9846 | |||
9847 | ac_cv_func_jlimit_startjob=no | ||
9848 | fi | ||
9849 | |||
9850 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9851 | conftest$ac_exeext conftest.$ac_ext | ||
9852 | fi | ||
9853 | { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
9854 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; } | ||
9855 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
9856 | |||
9857 | cat >>confdefs.h <<\_ACEOF | ||
9858 | #define WITH_IRIX_JOBS 1 | ||
9859 | _ACEOF | ||
9860 | |||
9861 | fi | ||
9862 | |||
9863 | cat >>confdefs.h <<\_ACEOF | ||
9864 | #define BROKEN_INET_NTOA 1 | ||
9865 | _ACEOF | ||
9866 | |||
9867 | cat >>confdefs.h <<\_ACEOF | ||
9868 | #define SETEUID_BREAKS_SETUID 1 | ||
9869 | _ACEOF | ||
9870 | |||
9871 | cat >>confdefs.h <<\_ACEOF | ||
9872 | #define BROKEN_SETREUID 1 | ||
9873 | _ACEOF | ||
9874 | |||
9875 | cat >>confdefs.h <<\_ACEOF | ||
9876 | #define BROKEN_SETREGID 1 | ||
9877 | _ACEOF | ||
9878 | |||
9879 | |||
9880 | cat >>confdefs.h <<\_ACEOF | ||
9881 | #define BROKEN_UPDWTMPX 1 | ||
9882 | _ACEOF | ||
9883 | |||
9884 | cat >>confdefs.h <<\_ACEOF | ||
9885 | #define WITH_ABBREV_NO_TTY 1 | ||
9886 | _ACEOF | ||
9887 | |||
9888 | cat >>confdefs.h <<\_ACEOF | ||
9889 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9890 | _ACEOF | ||
9891 | |||
9892 | ;; | ||
9893 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
9894 | check_for_libcrypt_later=1 | ||
9895 | cat >>confdefs.h <<\_ACEOF | ||
9896 | #define PAM_TTY_KLUDGE 1 | ||
9897 | _ACEOF | ||
9898 | |||
9899 | cat >>confdefs.h <<\_ACEOF | ||
9900 | #define LOCKED_PASSWD_PREFIX "!" | ||
9901 | _ACEOF | ||
9902 | |||
9903 | cat >>confdefs.h <<\_ACEOF | ||
9904 | #define SPT_TYPE SPT_REUSEARGV | ||
9905 | _ACEOF | ||
9906 | |||
9907 | |||
9908 | cat >>confdefs.h <<\_ACEOF | ||
9909 | #define _PATH_BTMP "/var/log/btmp" | ||
9910 | _ACEOF | ||
9911 | |||
9912 | |||
9913 | cat >>confdefs.h <<\_ACEOF | ||
9914 | #define USE_BTMP 1 | ||
9915 | _ACEOF | ||
9916 | |||
9917 | ;; | ||
9918 | *-*-linux*) | ||
9919 | no_dev_ptmx=1 | ||
9920 | use_pie=auto | ||
9921 | check_for_libcrypt_later=1 | ||
9922 | check_for_openpty_ctty_bug=1 | ||
9923 | |||
9924 | cat >>confdefs.h <<\_ACEOF | ||
9925 | #define PAM_TTY_KLUDGE 1 | ||
9926 | _ACEOF | ||
9927 | |||
9928 | |||
9929 | cat >>confdefs.h <<\_ACEOF | ||
9930 | #define LOCKED_PASSWD_PREFIX "!" | ||
9931 | _ACEOF | ||
9932 | |||
9933 | cat >>confdefs.h <<\_ACEOF | ||
9934 | #define SPT_TYPE SPT_REUSEARGV | ||
9935 | _ACEOF | ||
9936 | |||
9937 | |||
9938 | cat >>confdefs.h <<\_ACEOF | ||
9939 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
9940 | _ACEOF | ||
9941 | |||
9942 | |||
9943 | cat >>confdefs.h <<\_ACEOF | ||
9944 | #define _PATH_BTMP "/var/log/btmp" | ||
9945 | _ACEOF | ||
9946 | |||
9947 | cat >>confdefs.h <<\_ACEOF | ||
9948 | #define USE_BTMP 1 | ||
9949 | _ACEOF | ||
9950 | |||
9951 | |||
9952 | cat >>confdefs.h <<\_ACEOF | ||
9953 | #define LINUX_OOM_ADJUST 1 | ||
9954 | _ACEOF | ||
9955 | |||
9956 | inet6_default_4in6=yes | ||
9957 | case `uname -r` in | ||
9958 | 1.*|2.0.*) | ||
9959 | |||
9960 | cat >>confdefs.h <<\_ACEOF | ||
9961 | #define BROKEN_CMSG_TYPE 1 | ||
9962 | _ACEOF | ||
9963 | |||
9964 | ;; | ||
9965 | esac | ||
9966 | # tun(4) forwarding compat code | ||
9967 | |||
9968 | for ac_header in linux/if_tun.h | ||
9969 | do | ||
9970 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9971 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9972 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9974 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9976 | fi | ||
9977 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9978 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9979 | echo "${ECHO_T}$ac_res" >&6; } | ||
9980 | else | ||
9981 | # Is the header compilable? | ||
9982 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9983 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
9984 | cat >conftest.$ac_ext <<_ACEOF | ||
9985 | /* confdefs.h. */ | ||
9986 | _ACEOF | ||
9987 | cat confdefs.h >>conftest.$ac_ext | ||
9988 | cat >>conftest.$ac_ext <<_ACEOF | ||
9989 | /* end confdefs.h. */ | ||
9990 | $ac_includes_default | ||
9991 | #include <$ac_header> | ||
9992 | _ACEOF | ||
9993 | rm -f conftest.$ac_objext | ||
9994 | if { (ac_try="$ac_compile" | ||
9995 | case "(($ac_try" in | ||
9996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9997 | *) ac_try_echo=$ac_try;; | ||
9998 | esac | ||
9999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10000 | (eval "$ac_compile") 2>conftest.er1 | ||
10001 | ac_status=$? | ||
10002 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10003 | rm -f conftest.er1 | ||
10004 | cat conftest.err >&5 | ||
10005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10006 | (exit $ac_status); } && { | ||
10007 | test -z "$ac_c_werror_flag" || | ||
10008 | test ! -s conftest.err | ||
10009 | } && test -s conftest.$ac_objext; then | ||
10010 | ac_header_compiler=yes | ||
10011 | else | ||
10012 | echo "$as_me: failed program was:" >&5 | ||
10013 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10014 | |||
10015 | ac_header_compiler=no | ||
10016 | fi | ||
10017 | |||
10018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10019 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10020 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10021 | |||
10022 | # Is the header present? | ||
10023 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10024 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
10025 | cat >conftest.$ac_ext <<_ACEOF | ||
10026 | /* confdefs.h. */ | ||
10027 | _ACEOF | ||
10028 | cat confdefs.h >>conftest.$ac_ext | ||
10029 | cat >>conftest.$ac_ext <<_ACEOF | ||
10030 | /* end confdefs.h. */ | ||
10031 | #include <$ac_header> | ||
10032 | _ACEOF | ||
10033 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10034 | case "(($ac_try" in | ||
10035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10036 | *) ac_try_echo=$ac_try;; | ||
10037 | esac | ||
10038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10039 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10040 | ac_status=$? | ||
10041 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10042 | rm -f conftest.er1 | ||
10043 | cat conftest.err >&5 | ||
10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10045 | (exit $ac_status); } >/dev/null && { | ||
10046 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10047 | test ! -s conftest.err | ||
10048 | }; then | ||
10049 | ac_header_preproc=yes | ||
10050 | else | ||
10051 | echo "$as_me: failed program was:" >&5 | ||
10052 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10053 | |||
10054 | ac_header_preproc=no | ||
10055 | fi | ||
10056 | |||
10057 | rm -f conftest.err conftest.$ac_ext | ||
10058 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10059 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10060 | |||
10061 | # So? What about this header? | ||
10062 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10063 | yes:no: ) | ||
10064 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10065 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10066 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10067 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10068 | ac_header_preproc=yes | ||
10069 | ;; | ||
10070 | no:yes:* ) | ||
10071 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10072 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10073 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10074 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10075 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10076 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10077 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10078 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10080 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10081 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10082 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10083 | ( cat <<\_ASBOX | ||
10084 | ## ------------------------------------------- ## | ||
10085 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10086 | ## ------------------------------------------- ## | ||
10087 | _ASBOX | ||
10088 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10089 | ;; | ||
10090 | esac | ||
10091 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10092 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10093 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10095 | else | ||
10096 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10097 | fi | ||
10098 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10099 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10100 | echo "${ECHO_T}$ac_res" >&6; } | ||
10101 | |||
10102 | fi | ||
10103 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10104 | cat >>confdefs.h <<_ACEOF | ||
10105 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10106 | _ACEOF | ||
10107 | |||
10108 | fi | ||
10109 | |||
10110 | done | ||
10111 | |||
10112 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
10113 | |||
10114 | cat >>confdefs.h <<\_ACEOF | ||
10115 | #define SSH_TUN_LINUX 1 | ||
10116 | _ACEOF | ||
10117 | |||
10118 | |||
10119 | cat >>confdefs.h <<\_ACEOF | ||
10120 | #define SSH_TUN_COMPAT_AF 1 | ||
10121 | _ACEOF | ||
10122 | |||
10123 | |||
10124 | cat >>confdefs.h <<\_ACEOF | ||
10125 | #define SSH_TUN_PREPEND_AF 1 | ||
10126 | _ACEOF | ||
10127 | |||
10128 | fi | ||
10129 | |||
10130 | |||
10131 | |||
10132 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | ||
10133 | do | ||
10134 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10135 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10136 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10137 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10139 | else | ||
10140 | cat >conftest.$ac_ext <<_ACEOF | ||
10141 | /* confdefs.h. */ | ||
10142 | _ACEOF | ||
10143 | cat confdefs.h >>conftest.$ac_ext | ||
10144 | cat >>conftest.$ac_ext <<_ACEOF | ||
10145 | /* end confdefs.h. */ | ||
10146 | #include <linux/types.h> | ||
10147 | |||
10148 | #include <$ac_header> | ||
10149 | _ACEOF | ||
10150 | rm -f conftest.$ac_objext | ||
10151 | if { (ac_try="$ac_compile" | ||
10152 | case "(($ac_try" in | ||
10153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10154 | *) ac_try_echo=$ac_try;; | ||
10155 | esac | ||
10156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10157 | (eval "$ac_compile") 2>conftest.er1 | ||
10158 | ac_status=$? | ||
10159 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10160 | rm -f conftest.er1 | ||
10161 | cat conftest.err >&5 | ||
10162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10163 | (exit $ac_status); } && { | ||
10164 | test -z "$ac_c_werror_flag" || | ||
10165 | test ! -s conftest.err | ||
10166 | } && test -s conftest.$ac_objext; then | ||
10167 | eval "$as_ac_Header=yes" | ||
10168 | else | ||
10169 | echo "$as_me: failed program was:" >&5 | ||
10170 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10171 | |||
10172 | eval "$as_ac_Header=no" | ||
10173 | fi | ||
10174 | |||
10175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10176 | fi | ||
10177 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10178 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10179 | echo "${ECHO_T}$ac_res" >&6; } | ||
10180 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10181 | cat >>confdefs.h <<_ACEOF | ||
10182 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10183 | _ACEOF | ||
10184 | |||
10185 | fi | ||
10186 | |||
10187 | done | ||
10188 | |||
10189 | |||
10190 | for ac_func in prctl | ||
10191 | do | ||
10192 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10193 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10194 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
10195 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10197 | else | ||
10198 | cat >conftest.$ac_ext <<_ACEOF | ||
10199 | /* confdefs.h. */ | ||
10200 | _ACEOF | ||
10201 | cat confdefs.h >>conftest.$ac_ext | ||
10202 | cat >>conftest.$ac_ext <<_ACEOF | ||
10203 | /* end confdefs.h. */ | ||
10204 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10205 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10206 | #define $ac_func innocuous_$ac_func | ||
10207 | |||
10208 | /* System header to define __stub macros and hopefully few prototypes, | ||
10209 | which can conflict with char $ac_func (); below. | ||
10210 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10211 | <limits.h> exists even on freestanding compilers. */ | ||
10212 | |||
10213 | #ifdef __STDC__ | ||
10214 | # include <limits.h> | ||
10215 | #else | ||
10216 | # include <assert.h> | ||
10217 | #endif | ||
10218 | |||
10219 | #undef $ac_func | ||
10220 | |||
10221 | /* Override any GCC internal prototype to avoid an error. | ||
10222 | Use char because int might match the return type of a GCC | ||
10223 | builtin and then its argument prototype would still apply. */ | ||
10224 | #ifdef __cplusplus | ||
10225 | extern "C" | ||
10226 | #endif | ||
10227 | char $ac_func (); | ||
10228 | /* The GNU C library defines this for functions which it implements | ||
10229 | to always fail with ENOSYS. Some functions are actually named | ||
10230 | something starting with __ and the normal name is an alias. */ | ||
10231 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
10232 | choke me | ||
10233 | #endif | ||
10234 | |||
10235 | int | ||
10236 | main () | ||
10237 | { | ||
10238 | return $ac_func (); | ||
10239 | ; | ||
10240 | return 0; | ||
10241 | } | ||
10242 | _ACEOF | ||
10243 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10244 | if { (ac_try="$ac_link" | ||
10245 | case "(($ac_try" in | ||
10246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10247 | *) ac_try_echo=$ac_try;; | ||
10248 | esac | ||
10249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10250 | (eval "$ac_link") 2>conftest.er1 | ||
10251 | ac_status=$? | ||
10252 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10253 | rm -f conftest.er1 | ||
10254 | cat conftest.err >&5 | ||
10255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10256 | (exit $ac_status); } && { | ||
10257 | test -z "$ac_c_werror_flag" || | ||
10258 | test ! -s conftest.err | ||
10259 | } && test -s conftest$ac_exeext && | ||
10260 | $as_test_x conftest$ac_exeext; then | ||
10261 | eval "$as_ac_var=yes" | ||
10262 | else | ||
10263 | echo "$as_me: failed program was:" >&5 | ||
10264 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10265 | |||
10266 | eval "$as_ac_var=no" | ||
10267 | fi | ||
10268 | |||
10269 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10270 | conftest$ac_exeext conftest.$ac_ext | ||
10271 | fi | ||
10272 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
10273 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10274 | echo "${ECHO_T}$ac_res" >&6; } | ||
10275 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10276 | cat >>confdefs.h <<_ACEOF | ||
10277 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10278 | _ACEOF | ||
10279 | |||
10280 | fi | ||
10281 | done | ||
10282 | |||
10283 | { echo "$as_me:$LINENO: checking for seccomp architecture" >&5 | ||
10284 | echo $ECHO_N "checking for seccomp architecture... $ECHO_C" >&6; } | ||
10285 | seccomp_audit_arch= | ||
10286 | case "$host" in | ||
10287 | x86_64-*) | ||
10288 | seccomp_audit_arch=AUDIT_ARCH_X86_64 | ||
10289 | ;; | ||
10290 | i*86-*) | ||
10291 | seccomp_audit_arch=AUDIT_ARCH_I386 | ||
10292 | ;; | ||
10293 | arm*-*) | ||
10294 | seccomp_audit_arch=AUDIT_ARCH_ARM | ||
10295 | ;; | ||
10296 | aarch64*-*) | ||
10297 | seccomp_audit_arch=AUDIT_ARCH_AARCH64 | ||
10298 | ;; | ||
10299 | esac | ||
10300 | if test "x$seccomp_audit_arch" != "x" ; then | ||
10301 | { echo "$as_me:$LINENO: result: \"$seccomp_audit_arch\"" >&5 | ||
10302 | echo "${ECHO_T}\"$seccomp_audit_arch\"" >&6; } | ||
10303 | |||
10304 | cat >>confdefs.h <<_ACEOF | ||
10305 | #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch | ||
10306 | _ACEOF | ||
10307 | |||
10308 | else | ||
10309 | { echo "$as_me:$LINENO: result: architecture not supported" >&5 | ||
10310 | echo "${ECHO_T}architecture not supported" >&6; } | ||
10311 | fi | ||
10312 | ;; | ||
10313 | mips-sony-bsd|mips-sony-newsos4) | ||
10314 | |||
10315 | cat >>confdefs.h <<\_ACEOF | ||
10316 | #define NEED_SETPGRP 1 | ||
10317 | _ACEOF | ||
10318 | |||
10319 | SONY=1 | ||
10320 | ;; | ||
10321 | *-*-netbsd*) | ||
10322 | check_for_libcrypt_before=1 | ||
10323 | if test "x$withval" != "xno" ; then | ||
10324 | need_dash_r=1 | ||
10325 | fi | ||
10326 | |||
10327 | cat >>confdefs.h <<\_ACEOF | ||
10328 | #define SSH_TUN_FREEBSD 1 | ||
10329 | _ACEOF | ||
10330 | |||
10331 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10332 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10333 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10334 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10336 | fi | ||
10337 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10338 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10339 | else | ||
10340 | # Is the header compilable? | ||
10341 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
10342 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
10343 | cat >conftest.$ac_ext <<_ACEOF | ||
10344 | /* confdefs.h. */ | ||
10345 | _ACEOF | ||
10346 | cat confdefs.h >>conftest.$ac_ext | ||
10347 | cat >>conftest.$ac_ext <<_ACEOF | ||
10348 | /* end confdefs.h. */ | ||
10349 | $ac_includes_default | ||
10350 | #include <net/if_tap.h> | ||
10351 | _ACEOF | ||
10352 | rm -f conftest.$ac_objext | ||
10353 | if { (ac_try="$ac_compile" | ||
10354 | case "(($ac_try" in | ||
10355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10356 | *) ac_try_echo=$ac_try;; | ||
10357 | esac | ||
10358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10359 | (eval "$ac_compile") 2>conftest.er1 | ||
10360 | ac_status=$? | ||
10361 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10362 | rm -f conftest.er1 | ||
10363 | cat conftest.err >&5 | ||
10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10365 | (exit $ac_status); } && { | ||
10366 | test -z "$ac_c_werror_flag" || | ||
10367 | test ! -s conftest.err | ||
10368 | } && test -s conftest.$ac_objext; then | ||
10369 | ac_header_compiler=yes | ||
10370 | else | ||
10371 | echo "$as_me: failed program was:" >&5 | ||
10372 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10373 | |||
10374 | ac_header_compiler=no | ||
10375 | fi | ||
10376 | |||
10377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10378 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10379 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10380 | |||
10381 | # Is the header present? | ||
10382 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
10383 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
10384 | cat >conftest.$ac_ext <<_ACEOF | ||
10385 | /* confdefs.h. */ | ||
10386 | _ACEOF | ||
10387 | cat confdefs.h >>conftest.$ac_ext | ||
10388 | cat >>conftest.$ac_ext <<_ACEOF | ||
10389 | /* end confdefs.h. */ | ||
10390 | #include <net/if_tap.h> | ||
10391 | _ACEOF | ||
10392 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10393 | case "(($ac_try" in | ||
10394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10395 | *) ac_try_echo=$ac_try;; | ||
10396 | esac | ||
10397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10398 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10399 | ac_status=$? | ||
10400 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10401 | rm -f conftest.er1 | ||
10402 | cat conftest.err >&5 | ||
10403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10404 | (exit $ac_status); } >/dev/null && { | ||
10405 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10406 | test ! -s conftest.err | ||
10407 | }; then | ||
10408 | ac_header_preproc=yes | ||
10409 | else | ||
10410 | echo "$as_me: failed program was:" >&5 | ||
10411 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10412 | |||
10413 | ac_header_preproc=no | ||
10414 | fi | ||
10415 | |||
10416 | rm -f conftest.err conftest.$ac_ext | ||
10417 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10418 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10419 | |||
10420 | # So? What about this header? | ||
10421 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10422 | yes:no: ) | ||
10423 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10424 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10425 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
10426 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
10427 | ac_header_preproc=yes | ||
10428 | ;; | ||
10429 | no:yes:* ) | ||
10430 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
10431 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
10432 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
10433 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
10434 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
10435 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
10436 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
10437 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10438 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
10439 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
10440 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
10441 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
10442 | ( cat <<\_ASBOX | ||
10443 | ## ------------------------------------------- ## | ||
10444 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10445 | ## ------------------------------------------- ## | ||
10446 | _ASBOX | ||
10447 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10448 | ;; | ||
10449 | esac | ||
10450 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10451 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10452 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10454 | else | ||
10455 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
10456 | fi | ||
10457 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10458 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10459 | |||
10460 | fi | ||
10461 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
10462 | : | ||
10463 | else | ||
10464 | |||
10465 | cat >>confdefs.h <<\_ACEOF | ||
10466 | #define SSH_TUN_NO_L2 1 | ||
10467 | _ACEOF | ||
10468 | |||
10469 | fi | ||
10470 | |||
10471 | |||
10472 | |||
10473 | cat >>confdefs.h <<\_ACEOF | ||
10474 | #define SSH_TUN_PREPEND_AF 1 | ||
10475 | _ACEOF | ||
10476 | |||
10477 | TEST_MALLOC_OPTIONS="AJRX" | ||
10478 | |||
10479 | cat >>confdefs.h <<\_ACEOF | ||
10480 | #define BROKEN_STRNVIS 1 | ||
10481 | _ACEOF | ||
10482 | |||
10483 | |||
10484 | cat >>confdefs.h <<\_ACEOF | ||
10485 | #define BROKEN_READ_COMPARISON 1 | ||
10486 | _ACEOF | ||
10487 | |||
10488 | ;; | ||
10489 | *-*-freebsd*) | ||
10490 | check_for_libcrypt_later=1 | ||
10491 | |||
10492 | cat >>confdefs.h <<\_ACEOF | ||
10493 | #define LOCKED_PASSWD_PREFIX "*LOCKED*" | ||
10494 | _ACEOF | ||
10495 | |||
10496 | |||
10497 | cat >>confdefs.h <<\_ACEOF | ||
10498 | #define SSH_TUN_FREEBSD 1 | ||
10499 | _ACEOF | ||
10500 | |||
10501 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10502 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10503 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10504 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10506 | fi | ||
10507 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10508 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10509 | else | ||
10510 | # Is the header compilable? | ||
10511 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
10512 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
10513 | cat >conftest.$ac_ext <<_ACEOF | ||
10514 | /* confdefs.h. */ | ||
10515 | _ACEOF | ||
10516 | cat confdefs.h >>conftest.$ac_ext | ||
10517 | cat >>conftest.$ac_ext <<_ACEOF | ||
10518 | /* end confdefs.h. */ | ||
10519 | $ac_includes_default | ||
10520 | #include <net/if_tap.h> | ||
10521 | _ACEOF | ||
10522 | rm -f conftest.$ac_objext | ||
10523 | if { (ac_try="$ac_compile" | ||
10524 | case "(($ac_try" in | ||
10525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10526 | *) ac_try_echo=$ac_try;; | ||
10527 | esac | ||
10528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10529 | (eval "$ac_compile") 2>conftest.er1 | ||
10530 | ac_status=$? | ||
10531 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10532 | rm -f conftest.er1 | ||
10533 | cat conftest.err >&5 | ||
10534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10535 | (exit $ac_status); } && { | ||
10536 | test -z "$ac_c_werror_flag" || | ||
10537 | test ! -s conftest.err | ||
10538 | } && test -s conftest.$ac_objext; then | ||
10539 | ac_header_compiler=yes | ||
10540 | else | ||
10541 | echo "$as_me: failed program was:" >&5 | ||
10542 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10543 | |||
10544 | ac_header_compiler=no | ||
10545 | fi | ||
10546 | |||
10547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10548 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10549 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10550 | |||
10551 | # Is the header present? | ||
10552 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
10553 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
10554 | cat >conftest.$ac_ext <<_ACEOF | ||
10555 | /* confdefs.h. */ | ||
10556 | _ACEOF | ||
10557 | cat confdefs.h >>conftest.$ac_ext | ||
10558 | cat >>conftest.$ac_ext <<_ACEOF | ||
10559 | /* end confdefs.h. */ | ||
10560 | #include <net/if_tap.h> | ||
10561 | _ACEOF | ||
10562 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10563 | case "(($ac_try" in | ||
10564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10565 | *) ac_try_echo=$ac_try;; | ||
10566 | esac | ||
10567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10568 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10569 | ac_status=$? | ||
10570 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10571 | rm -f conftest.er1 | ||
10572 | cat conftest.err >&5 | ||
10573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10574 | (exit $ac_status); } >/dev/null && { | ||
10575 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10576 | test ! -s conftest.err | ||
10577 | }; then | ||
10578 | ac_header_preproc=yes | ||
10579 | else | ||
10580 | echo "$as_me: failed program was:" >&5 | ||
10581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10582 | |||
10583 | ac_header_preproc=no | ||
10584 | fi | ||
10585 | |||
10586 | rm -f conftest.err conftest.$ac_ext | ||
10587 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10588 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10589 | |||
10590 | # So? What about this header? | ||
10591 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10592 | yes:no: ) | ||
10593 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10594 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10595 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
10596 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
10597 | ac_header_preproc=yes | ||
10598 | ;; | ||
10599 | no:yes:* ) | ||
10600 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
10601 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
10602 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
10603 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
10604 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
10605 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
10606 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
10607 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10608 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
10609 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
10610 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
10611 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
10612 | ( cat <<\_ASBOX | ||
10613 | ## ------------------------------------------- ## | ||
10614 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10615 | ## ------------------------------------------- ## | ||
10616 | _ASBOX | ||
10617 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10618 | ;; | ||
10619 | esac | ||
10620 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10621 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10622 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10624 | else | ||
10625 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
10626 | fi | ||
10627 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10628 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10629 | |||
10630 | fi | ||
10631 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
10632 | : | ||
10633 | else | ||
10634 | |||
10635 | cat >>confdefs.h <<\_ACEOF | ||
10636 | #define SSH_TUN_NO_L2 1 | ||
10637 | _ACEOF | ||
10638 | |||
10639 | fi | ||
10640 | |||
10641 | |||
10642 | |||
10643 | cat >>confdefs.h <<\_ACEOF | ||
10644 | #define BROKEN_GLOB 1 | ||
10645 | _ACEOF | ||
10646 | |||
10647 | |||
10648 | cat >>confdefs.h <<\_ACEOF | ||
10649 | #define BROKEN_STRNVIS 1 | ||
10650 | _ACEOF | ||
10651 | |||
10652 | TEST_MALLOC_OPTIONS="AJRX" | ||
10653 | # Preauth crypto occasionally uses file descriptors for crypto offload | ||
10654 | # and will crash if they cannot be opened. | ||
10655 | |||
10656 | cat >>confdefs.h <<\_ACEOF | ||
10657 | #define SANDBOX_SKIP_RLIMIT_NOFILE 1 | ||
10658 | _ACEOF | ||
10659 | |||
10660 | ;; | ||
10661 | *-*-bsdi*) | ||
10662 | cat >>confdefs.h <<\_ACEOF | ||
10663 | #define SETEUID_BREAKS_SETUID 1 | ||
10664 | _ACEOF | ||
10665 | |||
10666 | cat >>confdefs.h <<\_ACEOF | ||
10667 | #define BROKEN_SETREUID 1 | ||
10668 | _ACEOF | ||
10669 | |||
10670 | cat >>confdefs.h <<\_ACEOF | ||
10671 | #define BROKEN_SETREGID 1 | ||
10672 | _ACEOF | ||
10673 | |||
10674 | ;; | ||
10675 | *-next-*) | ||
10676 | conf_lastlog_location="/usr/adm/lastlog" | ||
10677 | conf_utmp_location=/etc/utmp | ||
10678 | conf_wtmp_location=/usr/adm/wtmp | ||
10679 | maildir=/usr/spool/mail | ||
10680 | |||
10681 | cat >>confdefs.h <<\_ACEOF | ||
10682 | #define HAVE_NEXT 1 | ||
10683 | _ACEOF | ||
10684 | |||
10685 | cat >>confdefs.h <<\_ACEOF | ||
10686 | #define BROKEN_REALPATH 1 | ||
10687 | _ACEOF | ||
10688 | |||
10689 | cat >>confdefs.h <<\_ACEOF | ||
10690 | #define USE_PIPES 1 | ||
10691 | _ACEOF | ||
10692 | |||
10693 | |||
10694 | cat >>confdefs.h <<\_ACEOF | ||
10695 | #define BROKEN_SAVED_UIDS 1 | ||
10696 | _ACEOF | ||
10697 | |||
10698 | ;; | ||
10699 | *-*-openbsd*) | ||
10700 | use_pie=auto | ||
10701 | |||
10702 | cat >>confdefs.h <<\_ACEOF | ||
10703 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
10704 | _ACEOF | ||
10705 | |||
10706 | |||
10707 | cat >>confdefs.h <<\_ACEOF | ||
10708 | #define HAVE_ATTRIBUTE__BOUNDED__ 1 | ||
10709 | _ACEOF | ||
10710 | |||
10711 | |||
10712 | cat >>confdefs.h <<\_ACEOF | ||
10713 | #define SSH_TUN_OPENBSD 1 | ||
10714 | _ACEOF | ||
10715 | |||
10716 | |||
10717 | cat >>confdefs.h <<\_ACEOF | ||
10718 | #define SYSLOG_R_SAFE_IN_SIGHAND 1 | ||
10719 | _ACEOF | ||
10720 | |||
10721 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
10722 | ;; | ||
10723 | *-*-solaris*) | ||
10724 | if test "x$withval" != "xno" ; then | ||
10725 | need_dash_r=1 | ||
10726 | fi | ||
10727 | cat >>confdefs.h <<\_ACEOF | ||
10728 | #define PAM_SUN_CODEBASE 1 | ||
10729 | _ACEOF | ||
10730 | |||
10731 | cat >>confdefs.h <<\_ACEOF | ||
10732 | #define LOGIN_NEEDS_UTMPX 1 | ||
10733 | _ACEOF | ||
10734 | |||
10735 | |||
10736 | cat >>confdefs.h <<\_ACEOF | ||
10737 | #define LOGIN_NEEDS_TERM 1 | ||
10738 | _ACEOF | ||
10739 | |||
10740 | cat >>confdefs.h <<\_ACEOF | ||
10741 | #define PAM_TTY_KLUDGE 1 | ||
10742 | _ACEOF | ||
10743 | |||
10744 | |||
10745 | cat >>confdefs.h <<\_ACEOF | ||
10746 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
10747 | _ACEOF | ||
10748 | |||
10749 | cat >>confdefs.h <<\_ACEOF | ||
10750 | #define LOCKED_PASSWD_STRING "*LK*" | ||
10751 | _ACEOF | ||
10752 | |||
10753 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
10754 | |||
10755 | cat >>confdefs.h <<\_ACEOF | ||
10756 | #define SSHD_ACQUIRES_CTTY 1 | ||
10757 | _ACEOF | ||
10758 | |||
10759 | |||
10760 | cat >>confdefs.h <<\_ACEOF | ||
10761 | #define PASSWD_NEEDS_USERNAME 1 | ||
10762 | _ACEOF | ||
10763 | |||
10764 | |||
10765 | cat >>confdefs.h <<\_ACEOF | ||
10766 | #define BROKEN_TCGETATTR_ICANON 1 | ||
10767 | _ACEOF | ||
10768 | |||
10769 | external_path_file=/etc/default/login | ||
10770 | # hardwire lastlog location (can't detect it on some versions) | ||
10771 | conf_lastlog_location="/var/adm/lastlog" | ||
10772 | { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
10773 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; } | ||
10774 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
10775 | if test "$sol2ver" -ge 8; then | ||
10776 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
10777 | echo "${ECHO_T}yes" >&6; } | ||
10778 | cat >>confdefs.h <<\_ACEOF | ||
10779 | #define DISABLE_UTMP 1 | ||
10780 | _ACEOF | ||
10781 | |||
10782 | |||
10783 | cat >>confdefs.h <<\_ACEOF | ||
10784 | #define DISABLE_WTMP 1 | ||
10785 | _ACEOF | ||
10786 | |||
10787 | else | ||
10788 | { echo "$as_me:$LINENO: result: no" >&5 | ||
10789 | echo "${ECHO_T}no" >&6; } | ||
10790 | fi | ||
10791 | |||
10792 | # Check whether --with-solaris-contracts was given. | ||
10793 | if test "${with_solaris_contracts+set}" = set; then | ||
10794 | withval=$with_solaris_contracts; | ||
10795 | { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 | ||
10796 | echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; } | ||
10797 | if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then | ||
10798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10799 | else | ||
10800 | ac_check_lib_save_LIBS=$LIBS | ||
10801 | LIBS="-lcontract $LIBS" | ||
10802 | cat >conftest.$ac_ext <<_ACEOF | ||
10803 | /* confdefs.h. */ | ||
10804 | _ACEOF | ||
10805 | cat confdefs.h >>conftest.$ac_ext | ||
10806 | cat >>conftest.$ac_ext <<_ACEOF | ||
10807 | /* end confdefs.h. */ | ||
10808 | |||
10809 | /* Override any GCC internal prototype to avoid an error. | ||
10810 | Use char because int might match the return type of a GCC | ||
10811 | builtin and then its argument prototype would still apply. */ | ||
10812 | #ifdef __cplusplus | ||
10813 | extern "C" | ||
10814 | #endif | ||
10815 | char ct_tmpl_activate (); | ||
10816 | int | ||
10817 | main () | ||
10818 | { | ||
10819 | return ct_tmpl_activate (); | ||
10820 | ; | ||
10821 | return 0; | ||
10822 | } | ||
10823 | _ACEOF | ||
10824 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10825 | if { (ac_try="$ac_link" | ||
10826 | case "(($ac_try" in | ||
10827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10828 | *) ac_try_echo=$ac_try;; | ||
10829 | esac | ||
10830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10831 | (eval "$ac_link") 2>conftest.er1 | ||
10832 | ac_status=$? | ||
10833 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10834 | rm -f conftest.er1 | ||
10835 | cat conftest.err >&5 | ||
10836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10837 | (exit $ac_status); } && { | ||
10838 | test -z "$ac_c_werror_flag" || | ||
10839 | test ! -s conftest.err | ||
10840 | } && test -s conftest$ac_exeext && | ||
10841 | $as_test_x conftest$ac_exeext; then | ||
10842 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
10843 | else | ||
10844 | echo "$as_me: failed program was:" >&5 | ||
10845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10846 | |||
10847 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
10848 | fi | ||
10849 | |||
10850 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10851 | conftest$ac_exeext conftest.$ac_ext | ||
10852 | LIBS=$ac_check_lib_save_LIBS | ||
10853 | fi | ||
10854 | { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
10855 | echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
10856 | if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then | ||
10857 | |||
10858 | cat >>confdefs.h <<\_ACEOF | ||
10859 | #define USE_SOLARIS_PROCESS_CONTRACTS 1 | ||
10860 | _ACEOF | ||
10861 | |||
10862 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
10863 | SPC_MSG="yes" | ||
10864 | fi | ||
10865 | |||
10866 | |||
10867 | fi | ||
10868 | |||
10869 | |||
10870 | # Check whether --with-solaris-projects was given. | ||
10871 | if test "${with_solaris_projects+set}" = set; then | ||
10872 | withval=$with_solaris_projects; | ||
10873 | { echo "$as_me:$LINENO: checking for setproject in -lproject" >&5 | ||
10874 | echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; } | ||
10875 | if test "${ac_cv_lib_project_setproject+set}" = set; then | ||
10876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10877 | else | ||
10878 | ac_check_lib_save_LIBS=$LIBS | ||
10879 | LIBS="-lproject $LIBS" | ||
10880 | cat >conftest.$ac_ext <<_ACEOF | ||
10881 | /* confdefs.h. */ | ||
10882 | _ACEOF | ||
10883 | cat confdefs.h >>conftest.$ac_ext | ||
10884 | cat >>conftest.$ac_ext <<_ACEOF | ||
10885 | /* end confdefs.h. */ | ||
10886 | |||
10887 | /* Override any GCC internal prototype to avoid an error. | ||
10888 | Use char because int might match the return type of a GCC | ||
10889 | builtin and then its argument prototype would still apply. */ | ||
10890 | #ifdef __cplusplus | ||
10891 | extern "C" | ||
10892 | #endif | ||
10893 | char setproject (); | ||
10894 | int | ||
10895 | main () | ||
10896 | { | ||
10897 | return setproject (); | ||
10898 | ; | ||
10899 | return 0; | ||
10900 | } | ||
10901 | _ACEOF | ||
10902 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10903 | if { (ac_try="$ac_link" | ||
10904 | case "(($ac_try" in | ||
10905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10906 | *) ac_try_echo=$ac_try;; | ||
10907 | esac | ||
10908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10909 | (eval "$ac_link") 2>conftest.er1 | ||
10910 | ac_status=$? | ||
10911 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10912 | rm -f conftest.er1 | ||
10913 | cat conftest.err >&5 | ||
10914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10915 | (exit $ac_status); } && { | ||
10916 | test -z "$ac_c_werror_flag" || | ||
10917 | test ! -s conftest.err | ||
10918 | } && test -s conftest$ac_exeext && | ||
10919 | $as_test_x conftest$ac_exeext; then | ||
10920 | ac_cv_lib_project_setproject=yes | ||
10921 | else | ||
10922 | echo "$as_me: failed program was:" >&5 | ||
10923 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10924 | |||
10925 | ac_cv_lib_project_setproject=no | ||
10926 | fi | ||
10927 | |||
10928 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10929 | conftest$ac_exeext conftest.$ac_ext | ||
10930 | LIBS=$ac_check_lib_save_LIBS | ||
10931 | fi | ||
10932 | { echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5 | ||
10933 | echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; } | ||
10934 | if test $ac_cv_lib_project_setproject = yes; then | ||
10935 | |||
10936 | cat >>confdefs.h <<\_ACEOF | ||
10937 | #define USE_SOLARIS_PROJECTS 1 | ||
10938 | _ACEOF | ||
10939 | |||
10940 | SSHDLIBS="$SSHDLIBS -lproject" | ||
10941 | SP_MSG="yes" | ||
10942 | fi | ||
10943 | |||
10944 | |||
10945 | fi | ||
10946 | |||
10947 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
10948 | ;; | ||
10949 | *-*-sunos4*) | ||
10950 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
10951 | |||
10952 | for ac_func in getpwanam | ||
10953 | do | ||
10954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10955 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
10957 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10959 | else | ||
10960 | cat >conftest.$ac_ext <<_ACEOF | ||
10961 | /* confdefs.h. */ | ||
10962 | _ACEOF | ||
10963 | cat confdefs.h >>conftest.$ac_ext | ||
10964 | cat >>conftest.$ac_ext <<_ACEOF | ||
10965 | /* end confdefs.h. */ | ||
10966 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10968 | #define $ac_func innocuous_$ac_func | ||
10969 | |||
10970 | /* System header to define __stub macros and hopefully few prototypes, | ||
10971 | which can conflict with char $ac_func (); below. | ||
10972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10973 | <limits.h> exists even on freestanding compilers. */ | ||
10974 | |||
10975 | #ifdef __STDC__ | ||
10976 | # include <limits.h> | ||
10977 | #else | ||
10978 | # include <assert.h> | ||
10979 | #endif | ||
10980 | |||
10981 | #undef $ac_func | ||
10982 | |||
10983 | /* Override any GCC internal prototype to avoid an error. | ||
10984 | Use char because int might match the return type of a GCC | ||
10985 | builtin and then its argument prototype would still apply. */ | ||
10986 | #ifdef __cplusplus | ||
10987 | extern "C" | ||
10988 | #endif | ||
10989 | char $ac_func (); | ||
10990 | /* The GNU C library defines this for functions which it implements | ||
10991 | to always fail with ENOSYS. Some functions are actually named | ||
10992 | something starting with __ and the normal name is an alias. */ | ||
10993 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
10994 | choke me | ||
10995 | #endif | ||
10996 | |||
10997 | int | ||
10998 | main () | ||
10999 | { | ||
11000 | return $ac_func (); | ||
11001 | ; | ||
11002 | return 0; | ||
11003 | } | ||
11004 | _ACEOF | ||
11005 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11006 | if { (ac_try="$ac_link" | ||
11007 | case "(($ac_try" in | ||
11008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11009 | *) ac_try_echo=$ac_try;; | ||
11010 | esac | ||
11011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11012 | (eval "$ac_link") 2>conftest.er1 | ||
11013 | ac_status=$? | ||
11014 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11015 | rm -f conftest.er1 | ||
11016 | cat conftest.err >&5 | ||
11017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11018 | (exit $ac_status); } && { | ||
11019 | test -z "$ac_c_werror_flag" || | ||
11020 | test ! -s conftest.err | ||
11021 | } && test -s conftest$ac_exeext && | ||
11022 | $as_test_x conftest$ac_exeext; then | ||
11023 | eval "$as_ac_var=yes" | ||
11024 | else | ||
11025 | echo "$as_me: failed program was:" >&5 | ||
11026 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11027 | |||
11028 | eval "$as_ac_var=no" | ||
11029 | fi | ||
11030 | |||
11031 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11032 | conftest$ac_exeext conftest.$ac_ext | ||
11033 | fi | ||
11034 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11035 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11036 | echo "${ECHO_T}$ac_res" >&6; } | ||
11037 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11038 | cat >>confdefs.h <<_ACEOF | ||
11039 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11040 | _ACEOF | ||
11041 | |||
11042 | fi | ||
11043 | done | ||
11044 | |||
11045 | cat >>confdefs.h <<\_ACEOF | ||
11046 | #define PAM_SUN_CODEBASE 1 | ||
11047 | _ACEOF | ||
11048 | |||
11049 | conf_utmp_location=/etc/utmp | ||
11050 | conf_wtmp_location=/var/adm/wtmp | ||
11051 | conf_lastlog_location=/var/adm/lastlog | ||
11052 | cat >>confdefs.h <<\_ACEOF | ||
11053 | #define USE_PIPES 1 | ||
11054 | _ACEOF | ||
11055 | |||
11056 | ;; | ||
11057 | *-ncr-sysv*) | ||
11058 | LIBS="$LIBS -lc89" | ||
11059 | cat >>confdefs.h <<\_ACEOF | ||
11060 | #define USE_PIPES 1 | ||
11061 | _ACEOF | ||
11062 | |||
11063 | cat >>confdefs.h <<\_ACEOF | ||
11064 | #define SSHD_ACQUIRES_CTTY 1 | ||
11065 | _ACEOF | ||
11066 | |||
11067 | cat >>confdefs.h <<\_ACEOF | ||
11068 | #define SETEUID_BREAKS_SETUID 1 | ||
11069 | _ACEOF | ||
11070 | |||
11071 | cat >>confdefs.h <<\_ACEOF | ||
11072 | #define BROKEN_SETREUID 1 | ||
11073 | _ACEOF | ||
11074 | |||
11075 | cat >>confdefs.h <<\_ACEOF | ||
11076 | #define BROKEN_SETREGID 1 | ||
11077 | _ACEOF | ||
11078 | |||
11079 | ;; | ||
11080 | *-sni-sysv*) | ||
11081 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
11082 | |||
11083 | { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
11084 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } | ||
11085 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
11086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11087 | else | ||
11088 | ac_check_lib_save_LIBS=$LIBS | ||
11089 | LIBS="-ldl $LIBS" | ||
11090 | cat >conftest.$ac_ext <<_ACEOF | ||
11091 | /* confdefs.h. */ | ||
11092 | _ACEOF | ||
11093 | cat confdefs.h >>conftest.$ac_ext | ||
11094 | cat >>conftest.$ac_ext <<_ACEOF | ||
11095 | /* end confdefs.h. */ | ||
11096 | |||
11097 | /* Override any GCC internal prototype to avoid an error. | ||
11098 | Use char because int might match the return type of a GCC | ||
11099 | builtin and then its argument prototype would still apply. */ | ||
11100 | #ifdef __cplusplus | ||
11101 | extern "C" | ||
11102 | #endif | ||
11103 | char dlsym (); | ||
11104 | int | ||
11105 | main () | ||
11106 | { | ||
11107 | return dlsym (); | ||
11108 | ; | ||
11109 | return 0; | ||
11110 | } | ||
11111 | _ACEOF | ||
11112 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11113 | if { (ac_try="$ac_link" | ||
11114 | case "(($ac_try" in | ||
11115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11116 | *) ac_try_echo=$ac_try;; | ||
11117 | esac | ||
11118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11119 | (eval "$ac_link") 2>conftest.er1 | ||
11120 | ac_status=$? | ||
11121 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11122 | rm -f conftest.er1 | ||
11123 | cat conftest.err >&5 | ||
11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11125 | (exit $ac_status); } && { | ||
11126 | test -z "$ac_c_werror_flag" || | ||
11127 | test ! -s conftest.err | ||
11128 | } && test -s conftest$ac_exeext && | ||
11129 | $as_test_x conftest$ac_exeext; then | ||
11130 | ac_cv_lib_dl_dlsym=yes | ||
11131 | else | ||
11132 | echo "$as_me: failed program was:" >&5 | ||
11133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11134 | |||
11135 | ac_cv_lib_dl_dlsym=no | ||
11136 | fi | ||
11137 | |||
11138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11139 | conftest$ac_exeext conftest.$ac_ext | ||
11140 | LIBS=$ac_check_lib_save_LIBS | ||
11141 | fi | ||
11142 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
11143 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } | ||
11144 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
11145 | cat >>confdefs.h <<_ACEOF | ||
11146 | #define HAVE_LIBDL 1 | ||
11147 | _ACEOF | ||
11148 | |||
11149 | LIBS="-ldl $LIBS" | ||
11150 | |||
11151 | fi | ||
11152 | |||
11153 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
11154 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
11155 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
11156 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then | ||
11157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11158 | else | ||
11159 | ac_check_lib_save_LIBS=$LIBS | ||
11160 | LIBS="-lresolv $LIBS" | ||
11161 | cat >conftest.$ac_ext <<_ACEOF | ||
11162 | /* confdefs.h. */ | ||
11163 | _ACEOF | ||
11164 | cat confdefs.h >>conftest.$ac_ext | ||
11165 | cat >>conftest.$ac_ext <<_ACEOF | ||
11166 | /* end confdefs.h. */ | ||
11167 | |||
11168 | /* Override any GCC internal prototype to avoid an error. | ||
11169 | Use char because int might match the return type of a GCC | ||
11170 | builtin and then its argument prototype would still apply. */ | ||
11171 | #ifdef __cplusplus | ||
11172 | extern "C" | ||
11173 | #endif | ||
11174 | char res_query (); | ||
11175 | int | ||
11176 | main () | ||
11177 | { | ||
11178 | return res_query (); | ||
11179 | ; | ||
11180 | return 0; | ||
11181 | } | ||
11182 | _ACEOF | ||
11183 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11184 | if { (ac_try="$ac_link" | ||
11185 | case "(($ac_try" in | ||
11186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11187 | *) ac_try_echo=$ac_try;; | ||
11188 | esac | ||
11189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11190 | (eval "$ac_link") 2>conftest.er1 | ||
11191 | ac_status=$? | ||
11192 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11193 | rm -f conftest.er1 | ||
11194 | cat conftest.err >&5 | ||
11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11196 | (exit $ac_status); } && { | ||
11197 | test -z "$ac_c_werror_flag" || | ||
11198 | test ! -s conftest.err | ||
11199 | } && test -s conftest$ac_exeext && | ||
11200 | $as_test_x conftest$ac_exeext; then | ||
11201 | ac_cv_lib_resolv_res_query=yes | ||
11202 | else | ||
11203 | echo "$as_me: failed program was:" >&5 | ||
11204 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11205 | |||
11206 | ac_cv_lib_resolv_res_query=no | ||
11207 | fi | ||
11208 | |||
11209 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11210 | conftest$ac_exeext conftest.$ac_ext | ||
11211 | LIBS=$ac_check_lib_save_LIBS | ||
11212 | fi | ||
11213 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 | ||
11214 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } | ||
11215 | if test $ac_cv_lib_resolv_res_query = yes; then | ||
11216 | LIBS="$LIBS -lresolv" | ||
11217 | fi | ||
11218 | |||
11219 | IPADDR_IN_DISPLAY=yes | ||
11220 | cat >>confdefs.h <<\_ACEOF | ||
11221 | #define USE_PIPES 1 | ||
11222 | _ACEOF | ||
11223 | |||
11224 | cat >>confdefs.h <<\_ACEOF | ||
11225 | #define IP_TOS_IS_BROKEN 1 | ||
11226 | _ACEOF | ||
11227 | |||
11228 | cat >>confdefs.h <<\_ACEOF | ||
11229 | #define SETEUID_BREAKS_SETUID 1 | ||
11230 | _ACEOF | ||
11231 | |||
11232 | cat >>confdefs.h <<\_ACEOF | ||
11233 | #define BROKEN_SETREUID 1 | ||
11234 | _ACEOF | ||
11235 | |||
11236 | cat >>confdefs.h <<\_ACEOF | ||
11237 | #define BROKEN_SETREGID 1 | ||
11238 | _ACEOF | ||
11239 | |||
11240 | cat >>confdefs.h <<\_ACEOF | ||
11241 | #define SSHD_ACQUIRES_CTTY 1 | ||
11242 | _ACEOF | ||
11243 | |||
11244 | external_path_file=/etc/default/login | ||
11245 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
11246 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
11247 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
11248 | ;; | ||
11249 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
11250 | *-*-sysv4.2*) | ||
11251 | cat >>confdefs.h <<\_ACEOF | ||
11252 | #define USE_PIPES 1 | ||
11253 | _ACEOF | ||
11254 | |||
11255 | cat >>confdefs.h <<\_ACEOF | ||
11256 | #define SETEUID_BREAKS_SETUID 1 | ||
11257 | _ACEOF | ||
11258 | |||
11259 | cat >>confdefs.h <<\_ACEOF | ||
11260 | #define BROKEN_SETREUID 1 | ||
11261 | _ACEOF | ||
11262 | |||
11263 | cat >>confdefs.h <<\_ACEOF | ||
11264 | #define BROKEN_SETREGID 1 | ||
11265 | _ACEOF | ||
11266 | |||
11267 | |||
11268 | cat >>confdefs.h <<\_ACEOF | ||
11269 | #define PASSWD_NEEDS_USERNAME 1 | ||
11270 | _ACEOF | ||
11271 | |||
11272 | cat >>confdefs.h <<\_ACEOF | ||
11273 | #define LOCKED_PASSWD_STRING "*LK*" | ||
11274 | _ACEOF | ||
11275 | |||
11276 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
11277 | ;; | ||
11278 | # UnixWare 7.x, OpenUNIX 8 | ||
11279 | *-*-sysv5*) | ||
11280 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
11281 | |||
11282 | cat >>confdefs.h <<\_ACEOF | ||
11283 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
11284 | _ACEOF | ||
11285 | |||
11286 | cat >>confdefs.h <<\_ACEOF | ||
11287 | #define USE_PIPES 1 | ||
11288 | _ACEOF | ||
11289 | |||
11290 | cat >>confdefs.h <<\_ACEOF | ||
11291 | #define SETEUID_BREAKS_SETUID 1 | ||
11292 | _ACEOF | ||
11293 | |||
11294 | cat >>confdefs.h <<\_ACEOF | ||
11295 | #define BROKEN_GETADDRINFO 1 | ||
11296 | _ACEOF | ||
11297 | |||
11298 | cat >>confdefs.h <<\_ACEOF | ||
11299 | #define BROKEN_SETREUID 1 | ||
11300 | _ACEOF | ||
11301 | |||
11302 | cat >>confdefs.h <<\_ACEOF | ||
11303 | #define BROKEN_SETREGID 1 | ||
11304 | _ACEOF | ||
11305 | |||
11306 | cat >>confdefs.h <<\_ACEOF | ||
11307 | #define PASSWD_NEEDS_USERNAME 1 | ||
11308 | _ACEOF | ||
11309 | |||
11310 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
11311 | case "$host" in | ||
11312 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
11313 | maildir=/var/spool/mail | ||
11314 | |||
11315 | cat >>confdefs.h <<\_ACEOF | ||
11316 | #define BROKEN_LIBIAF 1 | ||
11317 | _ACEOF | ||
11318 | |||
11319 | cat >>confdefs.h <<\_ACEOF | ||
11320 | #define BROKEN_UPDWTMPX 1 | ||
11321 | _ACEOF | ||
11322 | |||
11323 | { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5 | ||
11324 | echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; } | ||
11325 | if test "${ac_cv_lib_prot_getluid+set}" = set; then | ||
11326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11327 | else | ||
11328 | ac_check_lib_save_LIBS=$LIBS | ||
11329 | LIBS="-lprot $LIBS" | ||
11330 | cat >conftest.$ac_ext <<_ACEOF | ||
11331 | /* confdefs.h. */ | ||
11332 | _ACEOF | ||
11333 | cat confdefs.h >>conftest.$ac_ext | ||
11334 | cat >>conftest.$ac_ext <<_ACEOF | ||
11335 | /* end confdefs.h. */ | ||
11336 | |||
11337 | /* Override any GCC internal prototype to avoid an error. | ||
11338 | Use char because int might match the return type of a GCC | ||
11339 | builtin and then its argument prototype would still apply. */ | ||
11340 | #ifdef __cplusplus | ||
11341 | extern "C" | ||
11342 | #endif | ||
11343 | char getluid (); | ||
11344 | int | ||
11345 | main () | ||
11346 | { | ||
11347 | return getluid (); | ||
11348 | ; | ||
11349 | return 0; | ||
11350 | } | ||
11351 | _ACEOF | ||
11352 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11353 | if { (ac_try="$ac_link" | ||
11354 | case "(($ac_try" in | ||
11355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11356 | *) ac_try_echo=$ac_try;; | ||
11357 | esac | ||
11358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11359 | (eval "$ac_link") 2>conftest.er1 | ||
11360 | ac_status=$? | ||
11361 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11362 | rm -f conftest.er1 | ||
11363 | cat conftest.err >&5 | ||
11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11365 | (exit $ac_status); } && { | ||
11366 | test -z "$ac_c_werror_flag" || | ||
11367 | test ! -s conftest.err | ||
11368 | } && test -s conftest$ac_exeext && | ||
11369 | $as_test_x conftest$ac_exeext; then | ||
11370 | ac_cv_lib_prot_getluid=yes | ||
11371 | else | ||
11372 | echo "$as_me: failed program was:" >&5 | ||
11373 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11374 | |||
11375 | ac_cv_lib_prot_getluid=no | ||
11376 | fi | ||
11377 | |||
11378 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11379 | conftest$ac_exeext conftest.$ac_ext | ||
11380 | LIBS=$ac_check_lib_save_LIBS | ||
11381 | fi | ||
11382 | { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5 | ||
11383 | echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; } | ||
11384 | if test $ac_cv_lib_prot_getluid = yes; then | ||
11385 | LIBS="$LIBS -lprot" | ||
11386 | |||
11387 | |||
11388 | for ac_func in getluid setluid | ||
11389 | do | ||
11390 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11391 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11392 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11393 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11395 | else | ||
11396 | cat >conftest.$ac_ext <<_ACEOF | ||
11397 | /* confdefs.h. */ | ||
11398 | _ACEOF | ||
11399 | cat confdefs.h >>conftest.$ac_ext | ||
11400 | cat >>conftest.$ac_ext <<_ACEOF | ||
11401 | /* end confdefs.h. */ | ||
11402 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11403 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11404 | #define $ac_func innocuous_$ac_func | ||
11405 | |||
11406 | /* System header to define __stub macros and hopefully few prototypes, | ||
11407 | which can conflict with char $ac_func (); below. | ||
11408 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11409 | <limits.h> exists even on freestanding compilers. */ | ||
11410 | |||
11411 | #ifdef __STDC__ | ||
11412 | # include <limits.h> | ||
11413 | #else | ||
11414 | # include <assert.h> | ||
11415 | #endif | ||
11416 | |||
11417 | #undef $ac_func | ||
11418 | |||
11419 | /* Override any GCC internal prototype to avoid an error. | ||
11420 | Use char because int might match the return type of a GCC | ||
11421 | builtin and then its argument prototype would still apply. */ | ||
11422 | #ifdef __cplusplus | ||
11423 | extern "C" | ||
11424 | #endif | ||
11425 | char $ac_func (); | ||
11426 | /* The GNU C library defines this for functions which it implements | ||
11427 | to always fail with ENOSYS. Some functions are actually named | ||
11428 | something starting with __ and the normal name is an alias. */ | ||
11429 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11430 | choke me | ||
11431 | #endif | ||
11432 | |||
11433 | int | ||
11434 | main () | ||
11435 | { | ||
11436 | return $ac_func (); | ||
11437 | ; | ||
11438 | return 0; | ||
11439 | } | ||
11440 | _ACEOF | ||
11441 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11442 | if { (ac_try="$ac_link" | ||
11443 | case "(($ac_try" in | ||
11444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11445 | *) ac_try_echo=$ac_try;; | ||
11446 | esac | ||
11447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11448 | (eval "$ac_link") 2>conftest.er1 | ||
11449 | ac_status=$? | ||
11450 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11451 | rm -f conftest.er1 | ||
11452 | cat conftest.err >&5 | ||
11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11454 | (exit $ac_status); } && { | ||
11455 | test -z "$ac_c_werror_flag" || | ||
11456 | test ! -s conftest.err | ||
11457 | } && test -s conftest$ac_exeext && | ||
11458 | $as_test_x conftest$ac_exeext; then | ||
11459 | eval "$as_ac_var=yes" | ||
11460 | else | ||
11461 | echo "$as_me: failed program was:" >&5 | ||
11462 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11463 | |||
11464 | eval "$as_ac_var=no" | ||
11465 | fi | ||
11466 | |||
11467 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11468 | conftest$ac_exeext conftest.$ac_ext | ||
11469 | fi | ||
11470 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11471 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11472 | echo "${ECHO_T}$ac_res" >&6; } | ||
11473 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11474 | cat >>confdefs.h <<_ACEOF | ||
11475 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11476 | _ACEOF | ||
11477 | |||
11478 | fi | ||
11479 | done | ||
11480 | |||
11481 | cat >>confdefs.h <<\_ACEOF | ||
11482 | #define HAVE_SECUREWARE 1 | ||
11483 | _ACEOF | ||
11484 | |||
11485 | cat >>confdefs.h <<\_ACEOF | ||
11486 | #define DISABLE_SHADOW 1 | ||
11487 | _ACEOF | ||
11488 | |||
11489 | |||
11490 | fi | ||
11491 | |||
11492 | ;; | ||
11493 | *) cat >>confdefs.h <<\_ACEOF | ||
11494 | #define LOCKED_PASSWD_STRING "*LK*" | ||
11495 | _ACEOF | ||
11496 | |||
11497 | check_for_libcrypt_later=1 | ||
11498 | ;; | ||
11499 | esac | ||
11500 | ;; | ||
11501 | *-*-sysv*) | ||
11502 | ;; | ||
11503 | # SCO UNIX and OEM versions of SCO UNIX | ||
11504 | *-*-sco3.2v4*) | ||
11505 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
11506 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
11507 | { (exit 1); exit 1; }; } | ||
11508 | ;; | ||
11509 | # SCO OpenServer 5.x | ||
11510 | *-*-sco3.2v5*) | ||
11511 | if test -z "$GCC"; then | ||
11512 | CFLAGS="$CFLAGS -belf" | ||
11513 | fi | ||
11514 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
11515 | no_dev_ptmx=1 | ||
11516 | cat >>confdefs.h <<\_ACEOF | ||
11517 | #define USE_PIPES 1 | ||
11518 | _ACEOF | ||
11519 | |||
11520 | cat >>confdefs.h <<\_ACEOF | ||
11521 | #define HAVE_SECUREWARE 1 | ||
11522 | _ACEOF | ||
11523 | |||
11524 | cat >>confdefs.h <<\_ACEOF | ||
11525 | #define DISABLE_SHADOW 1 | ||
11526 | _ACEOF | ||
11527 | |||
11528 | cat >>confdefs.h <<\_ACEOF | ||
11529 | #define DISABLE_FD_PASSING 1 | ||
11530 | _ACEOF | ||
11531 | |||
11532 | cat >>confdefs.h <<\_ACEOF | ||
11533 | #define SETEUID_BREAKS_SETUID 1 | ||
11534 | _ACEOF | ||
11535 | |||
11536 | cat >>confdefs.h <<\_ACEOF | ||
11537 | #define BROKEN_GETADDRINFO 1 | ||
11538 | _ACEOF | ||
11539 | |||
11540 | cat >>confdefs.h <<\_ACEOF | ||
11541 | #define BROKEN_SETREUID 1 | ||
11542 | _ACEOF | ||
11543 | |||
11544 | cat >>confdefs.h <<\_ACEOF | ||
11545 | #define BROKEN_SETREGID 1 | ||
11546 | _ACEOF | ||
11547 | |||
11548 | cat >>confdefs.h <<\_ACEOF | ||
11549 | #define WITH_ABBREV_NO_TTY 1 | ||
11550 | _ACEOF | ||
11551 | |||
11552 | cat >>confdefs.h <<\_ACEOF | ||
11553 | #define BROKEN_UPDWTMPX 1 | ||
11554 | _ACEOF | ||
11555 | |||
11556 | cat >>confdefs.h <<\_ACEOF | ||
11557 | #define PASSWD_NEEDS_USERNAME 1 | ||
11558 | _ACEOF | ||
11559 | |||
11560 | |||
11561 | |||
11562 | for ac_func in getluid setluid | ||
11563 | do | ||
11564 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11565 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11566 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11567 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11569 | else | ||
11570 | cat >conftest.$ac_ext <<_ACEOF | ||
11571 | /* confdefs.h. */ | ||
11572 | _ACEOF | ||
11573 | cat confdefs.h >>conftest.$ac_ext | ||
11574 | cat >>conftest.$ac_ext <<_ACEOF | ||
11575 | /* end confdefs.h. */ | ||
11576 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11577 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11578 | #define $ac_func innocuous_$ac_func | ||
11579 | |||
11580 | /* System header to define __stub macros and hopefully few prototypes, | ||
11581 | which can conflict with char $ac_func (); below. | ||
11582 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11583 | <limits.h> exists even on freestanding compilers. */ | ||
11584 | |||
11585 | #ifdef __STDC__ | ||
11586 | # include <limits.h> | ||
11587 | #else | ||
11588 | # include <assert.h> | ||
11589 | #endif | ||
11590 | |||
11591 | #undef $ac_func | ||
11592 | |||
11593 | /* Override any GCC internal prototype to avoid an error. | ||
11594 | Use char because int might match the return type of a GCC | ||
11595 | builtin and then its argument prototype would still apply. */ | ||
11596 | #ifdef __cplusplus | ||
11597 | extern "C" | ||
11598 | #endif | ||
11599 | char $ac_func (); | ||
11600 | /* The GNU C library defines this for functions which it implements | ||
11601 | to always fail with ENOSYS. Some functions are actually named | ||
11602 | something starting with __ and the normal name is an alias. */ | ||
11603 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11604 | choke me | ||
11605 | #endif | ||
11606 | |||
11607 | int | ||
11608 | main () | ||
11609 | { | ||
11610 | return $ac_func (); | ||
11611 | ; | ||
11612 | return 0; | ||
11613 | } | ||
11614 | _ACEOF | ||
11615 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11616 | if { (ac_try="$ac_link" | ||
11617 | case "(($ac_try" in | ||
11618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11619 | *) ac_try_echo=$ac_try;; | ||
11620 | esac | ||
11621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11622 | (eval "$ac_link") 2>conftest.er1 | ||
11623 | ac_status=$? | ||
11624 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11625 | rm -f conftest.er1 | ||
11626 | cat conftest.err >&5 | ||
11627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11628 | (exit $ac_status); } && { | ||
11629 | test -z "$ac_c_werror_flag" || | ||
11630 | test ! -s conftest.err | ||
11631 | } && test -s conftest$ac_exeext && | ||
11632 | $as_test_x conftest$ac_exeext; then | ||
11633 | eval "$as_ac_var=yes" | ||
11634 | else | ||
11635 | echo "$as_me: failed program was:" >&5 | ||
11636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11637 | |||
11638 | eval "$as_ac_var=no" | ||
11639 | fi | ||
11640 | |||
11641 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11642 | conftest$ac_exeext conftest.$ac_ext | ||
11643 | fi | ||
11644 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11645 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11646 | echo "${ECHO_T}$ac_res" >&6; } | ||
11647 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11648 | cat >>confdefs.h <<_ACEOF | ||
11649 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11650 | _ACEOF | ||
11651 | |||
11652 | fi | ||
11653 | done | ||
11654 | |||
11655 | MANTYPE=man | ||
11656 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
11657 | SKIP_DISABLE_LASTLOG_DEFINE=yes | ||
11658 | ;; | ||
11659 | *-*-unicosmk*) | ||
11660 | |||
11661 | cat >>confdefs.h <<\_ACEOF | ||
11662 | #define NO_SSH_LASTLOG 1 | ||
11663 | _ACEOF | ||
11664 | |||
11665 | cat >>confdefs.h <<\_ACEOF | ||
11666 | #define SETEUID_BREAKS_SETUID 1 | ||
11667 | _ACEOF | ||
11668 | |||
11669 | cat >>confdefs.h <<\_ACEOF | ||
11670 | #define BROKEN_SETREUID 1 | ||
11671 | _ACEOF | ||
11672 | |||
11673 | cat >>confdefs.h <<\_ACEOF | ||
11674 | #define BROKEN_SETREGID 1 | ||
11675 | _ACEOF | ||
11676 | |||
11677 | cat >>confdefs.h <<\_ACEOF | ||
11678 | #define USE_PIPES 1 | ||
11679 | _ACEOF | ||
11680 | |||
11681 | cat >>confdefs.h <<\_ACEOF | ||
11682 | #define DISABLE_FD_PASSING 1 | ||
11683 | _ACEOF | ||
11684 | |||
11685 | LDFLAGS="$LDFLAGS" | ||
11686 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
11687 | MANTYPE=cat | ||
11688 | ;; | ||
11689 | *-*-unicosmp*) | ||
11690 | cat >>confdefs.h <<\_ACEOF | ||
11691 | #define SETEUID_BREAKS_SETUID 1 | ||
11692 | _ACEOF | ||
11693 | |||
11694 | cat >>confdefs.h <<\_ACEOF | ||
11695 | #define BROKEN_SETREUID 1 | ||
11696 | _ACEOF | ||
11697 | |||
11698 | cat >>confdefs.h <<\_ACEOF | ||
11699 | #define BROKEN_SETREGID 1 | ||
11700 | _ACEOF | ||
11701 | |||
11702 | cat >>confdefs.h <<\_ACEOF | ||
11703 | #define WITH_ABBREV_NO_TTY 1 | ||
11704 | _ACEOF | ||
11705 | |||
11706 | cat >>confdefs.h <<\_ACEOF | ||
11707 | #define USE_PIPES 1 | ||
11708 | _ACEOF | ||
11709 | |||
11710 | cat >>confdefs.h <<\_ACEOF | ||
11711 | #define DISABLE_FD_PASSING 1 | ||
11712 | _ACEOF | ||
11713 | |||
11714 | LDFLAGS="$LDFLAGS" | ||
11715 | LIBS="$LIBS -lgen -lacid -ldb" | ||
11716 | MANTYPE=cat | ||
11717 | ;; | ||
11718 | *-*-unicos*) | ||
11719 | cat >>confdefs.h <<\_ACEOF | ||
11720 | #define SETEUID_BREAKS_SETUID 1 | ||
11721 | _ACEOF | ||
11722 | |||
11723 | cat >>confdefs.h <<\_ACEOF | ||
11724 | #define BROKEN_SETREUID 1 | ||
11725 | _ACEOF | ||
11726 | |||
11727 | cat >>confdefs.h <<\_ACEOF | ||
11728 | #define BROKEN_SETREGID 1 | ||
11729 | _ACEOF | ||
11730 | |||
11731 | cat >>confdefs.h <<\_ACEOF | ||
11732 | #define USE_PIPES 1 | ||
11733 | _ACEOF | ||
11734 | |||
11735 | cat >>confdefs.h <<\_ACEOF | ||
11736 | #define DISABLE_FD_PASSING 1 | ||
11737 | _ACEOF | ||
11738 | |||
11739 | cat >>confdefs.h <<\_ACEOF | ||
11740 | #define NO_SSH_LASTLOG 1 | ||
11741 | _ACEOF | ||
11742 | |||
11743 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
11744 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
11745 | MANTYPE=cat | ||
11746 | ;; | ||
11747 | *-dec-osf*) | ||
11748 | { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
11749 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; } | ||
11750 | no_osfsia="" | ||
11751 | |||
11752 | # Check whether --with-osfsia was given. | ||
11753 | if test "${with_osfsia+set}" = set; then | ||
11754 | withval=$with_osfsia; | ||
11755 | if test "x$withval" = "xno" ; then | ||
11756 | { echo "$as_me:$LINENO: result: disabled" >&5 | ||
11757 | echo "${ECHO_T}disabled" >&6; } | ||
11758 | no_osfsia=1 | ||
11759 | fi | ||
11760 | |||
11761 | fi | ||
11762 | |||
11763 | if test -z "$no_osfsia" ; then | ||
11764 | if test -f /etc/sia/matrix.conf; then | ||
11765 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11766 | echo "${ECHO_T}yes" >&6; } | ||
11767 | |||
11768 | cat >>confdefs.h <<\_ACEOF | ||
11769 | #define HAVE_OSF_SIA 1 | ||
11770 | _ACEOF | ||
11771 | |||
11772 | |||
11773 | cat >>confdefs.h <<\_ACEOF | ||
11774 | #define DISABLE_LOGIN 1 | ||
11775 | _ACEOF | ||
11776 | |||
11777 | cat >>confdefs.h <<\_ACEOF | ||
11778 | #define DISABLE_FD_PASSING 1 | ||
11779 | _ACEOF | ||
11780 | |||
11781 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
11782 | SIA_MSG="yes" | ||
11783 | else | ||
11784 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11785 | echo "${ECHO_T}no" >&6; } | ||
11786 | |||
11787 | cat >>confdefs.h <<\_ACEOF | ||
11788 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
11789 | _ACEOF | ||
11790 | |||
11791 | fi | ||
11792 | fi | ||
11793 | cat >>confdefs.h <<\_ACEOF | ||
11794 | #define BROKEN_GETADDRINFO 1 | ||
11795 | _ACEOF | ||
11796 | |||
11797 | cat >>confdefs.h <<\_ACEOF | ||
11798 | #define SETEUID_BREAKS_SETUID 1 | ||
11799 | _ACEOF | ||
11800 | |||
11801 | cat >>confdefs.h <<\_ACEOF | ||
11802 | #define BROKEN_SETREUID 1 | ||
11803 | _ACEOF | ||
11804 | |||
11805 | cat >>confdefs.h <<\_ACEOF | ||
11806 | #define BROKEN_SETREGID 1 | ||
11807 | _ACEOF | ||
11808 | |||
11809 | |||
11810 | cat >>confdefs.h <<\_ACEOF | ||
11811 | #define BROKEN_READV_COMPARISON 1 | ||
11812 | _ACEOF | ||
11813 | |||
11814 | ;; | ||
11815 | |||
11816 | *-*-nto-qnx*) | ||
11817 | cat >>confdefs.h <<\_ACEOF | ||
11818 | #define USE_PIPES 1 | ||
11819 | _ACEOF | ||
11820 | |||
11821 | cat >>confdefs.h <<\_ACEOF | ||
11822 | #define NO_X11_UNIX_SOCKETS 1 | ||
11823 | _ACEOF | ||
11824 | |||
11825 | cat >>confdefs.h <<\_ACEOF | ||
11826 | #define DISABLE_LASTLOG 1 | ||
11827 | _ACEOF | ||
11828 | |||
11829 | cat >>confdefs.h <<\_ACEOF | ||
11830 | #define SSHD_ACQUIRES_CTTY 1 | ||
11831 | _ACEOF | ||
11832 | |||
11833 | |||
11834 | cat >>confdefs.h <<\_ACEOF | ||
11835 | #define BROKEN_SHADOW_EXPIRE 1 | ||
11836 | _ACEOF | ||
11837 | |||
11838 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
11839 | case "$host" in | ||
11840 | *-*-nto-qnx6*) | ||
11841 | cat >>confdefs.h <<\_ACEOF | ||
11842 | #define DISABLE_FD_PASSING 1 | ||
11843 | _ACEOF | ||
11844 | |||
11845 | ;; | ||
11846 | esac | ||
11847 | ;; | ||
11848 | |||
11849 | *-*-ultrix*) | ||
11850 | |||
11851 | cat >>confdefs.h <<\_ACEOF | ||
11852 | #define BROKEN_GETGROUPS 1 | ||
11853 | _ACEOF | ||
11854 | |||
11855 | |||
11856 | cat >>confdefs.h <<\_ACEOF | ||
11857 | #define BROKEN_MMAP 1 | ||
11858 | _ACEOF | ||
11859 | |||
11860 | cat >>confdefs.h <<\_ACEOF | ||
11861 | #define NEED_SETPGRP 1 | ||
11862 | _ACEOF | ||
11863 | |||
11864 | |||
11865 | cat >>confdefs.h <<\_ACEOF | ||
11866 | #define HAVE_SYS_SYSLOG_H 1 | ||
11867 | _ACEOF | ||
11868 | |||
11869 | ;; | ||
11870 | |||
11871 | *-*-lynxos) | ||
11872 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
11873 | |||
11874 | cat >>confdefs.h <<\_ACEOF | ||
11875 | #define BROKEN_SETVBUF 1 | ||
11876 | _ACEOF | ||
11877 | |||
11878 | ;; | ||
11879 | esac | ||
11880 | |||
11881 | { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
11882 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } | ||
11883 | if test "$cross_compiling" = yes; then | ||
11884 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
11885 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
11886 | |||
11887 | else | ||
11888 | cat >conftest.$ac_ext <<_ACEOF | ||
11889 | /* confdefs.h. */ | ||
11890 | _ACEOF | ||
11891 | cat confdefs.h >>conftest.$ac_ext | ||
11892 | cat >>conftest.$ac_ext <<_ACEOF | ||
11893 | /* end confdefs.h. */ | ||
11894 | #include <stdio.h> | ||
11895 | int | ||
11896 | main () | ||
11897 | { | ||
11898 | exit(0); | ||
11899 | ; | ||
11900 | return 0; | ||
11901 | } | ||
11902 | _ACEOF | ||
11903 | rm -f conftest$ac_exeext | ||
11904 | if { (ac_try="$ac_link" | ||
11905 | case "(($ac_try" in | ||
11906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11907 | *) ac_try_echo=$ac_try;; | ||
11908 | esac | ||
11909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11910 | (eval "$ac_link") 2>&5 | ||
11911 | ac_status=$? | ||
11912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11914 | { (case "(($ac_try" in | ||
11915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11916 | *) ac_try_echo=$ac_try;; | ||
11917 | esac | ||
11918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11919 | (eval "$ac_try") 2>&5 | ||
11920 | ac_status=$? | ||
11921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11922 | (exit $ac_status); }; }; then | ||
11923 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11924 | echo "${ECHO_T}yes" >&6; } | ||
11925 | else | ||
11926 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11927 | echo "$as_me: failed program was:" >&5 | ||
11928 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11929 | |||
11930 | ( exit $ac_status ) | ||
11931 | |||
11932 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11933 | echo "${ECHO_T}no" >&6; } | ||
11934 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
11935 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
11936 | { (exit 1); exit 1; }; } | ||
11937 | |||
11938 | fi | ||
11939 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11940 | fi | ||
11941 | |||
11942 | |||
11943 | |||
11944 | # Checks for libraries. | ||
11945 | { echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
11946 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } | ||
11947 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
11948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11949 | else | ||
11950 | cat >conftest.$ac_ext <<_ACEOF | ||
11951 | /* confdefs.h. */ | ||
11952 | _ACEOF | ||
11953 | cat confdefs.h >>conftest.$ac_ext | ||
11954 | cat >>conftest.$ac_ext <<_ACEOF | ||
11955 | /* end confdefs.h. */ | ||
11956 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
11957 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11958 | #define yp_match innocuous_yp_match | ||
11959 | |||
11960 | /* System header to define __stub macros and hopefully few prototypes, | ||
11961 | which can conflict with char yp_match (); below. | ||
11962 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11963 | <limits.h> exists even on freestanding compilers. */ | ||
11964 | |||
11965 | #ifdef __STDC__ | ||
11966 | # include <limits.h> | ||
11967 | #else | ||
11968 | # include <assert.h> | ||
11969 | #endif | ||
11970 | |||
11971 | #undef yp_match | ||
11972 | |||
11973 | /* Override any GCC internal prototype to avoid an error. | ||
11974 | Use char because int might match the return type of a GCC | ||
11975 | builtin and then its argument prototype would still apply. */ | ||
11976 | #ifdef __cplusplus | ||
11977 | extern "C" | ||
11978 | #endif | ||
11979 | char yp_match (); | ||
11980 | /* The GNU C library defines this for functions which it implements | ||
11981 | to always fail with ENOSYS. Some functions are actually named | ||
11982 | something starting with __ and the normal name is an alias. */ | ||
11983 | #if defined __stub_yp_match || defined __stub___yp_match | ||
11984 | choke me | ||
11985 | #endif | ||
11986 | |||
11987 | int | ||
11988 | main () | ||
11989 | { | ||
11990 | return yp_match (); | ||
11991 | ; | ||
11992 | return 0; | ||
11993 | } | ||
11994 | _ACEOF | ||
11995 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11996 | if { (ac_try="$ac_link" | ||
11997 | case "(($ac_try" in | ||
11998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11999 | *) ac_try_echo=$ac_try;; | ||
12000 | esac | ||
12001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12002 | (eval "$ac_link") 2>conftest.er1 | ||
12003 | ac_status=$? | ||
12004 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12005 | rm -f conftest.er1 | ||
12006 | cat conftest.err >&5 | ||
12007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12008 | (exit $ac_status); } && { | ||
12009 | test -z "$ac_c_werror_flag" || | ||
12010 | test ! -s conftest.err | ||
12011 | } && test -s conftest$ac_exeext && | ||
12012 | $as_test_x conftest$ac_exeext; then | ||
12013 | ac_cv_func_yp_match=yes | ||
12014 | else | ||
12015 | echo "$as_me: failed program was:" >&5 | ||
12016 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12017 | |||
12018 | ac_cv_func_yp_match=no | ||
12019 | fi | ||
12020 | |||
12021 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12022 | conftest$ac_exeext conftest.$ac_ext | ||
12023 | fi | ||
12024 | { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
12025 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6; } | ||
12026 | if test $ac_cv_func_yp_match = yes; then | ||
12027 | : | ||
12028 | else | ||
12029 | |||
12030 | { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
12031 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; } | ||
12032 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
12033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12034 | else | ||
12035 | ac_check_lib_save_LIBS=$LIBS | ||
12036 | LIBS="-lnsl $LIBS" | ||
12037 | cat >conftest.$ac_ext <<_ACEOF | ||
12038 | /* confdefs.h. */ | ||
12039 | _ACEOF | ||
12040 | cat confdefs.h >>conftest.$ac_ext | ||
12041 | cat >>conftest.$ac_ext <<_ACEOF | ||
12042 | /* end confdefs.h. */ | ||
12043 | |||
12044 | /* Override any GCC internal prototype to avoid an error. | ||
12045 | Use char because int might match the return type of a GCC | ||
12046 | builtin and then its argument prototype would still apply. */ | ||
12047 | #ifdef __cplusplus | ||
12048 | extern "C" | ||
12049 | #endif | ||
12050 | char yp_match (); | ||
12051 | int | ||
12052 | main () | ||
12053 | { | ||
12054 | return yp_match (); | ||
12055 | ; | ||
12056 | return 0; | ||
12057 | } | ||
12058 | _ACEOF | ||
12059 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12060 | if { (ac_try="$ac_link" | ||
12061 | case "(($ac_try" in | ||
12062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12063 | *) ac_try_echo=$ac_try;; | ||
12064 | esac | ||
12065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12066 | (eval "$ac_link") 2>conftest.er1 | ||
12067 | ac_status=$? | ||
12068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12069 | rm -f conftest.er1 | ||
12070 | cat conftest.err >&5 | ||
12071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12072 | (exit $ac_status); } && { | ||
12073 | test -z "$ac_c_werror_flag" || | ||
12074 | test ! -s conftest.err | ||
12075 | } && test -s conftest$ac_exeext && | ||
12076 | $as_test_x conftest$ac_exeext; then | ||
12077 | ac_cv_lib_nsl_yp_match=yes | ||
12078 | else | ||
12079 | echo "$as_me: failed program was:" >&5 | ||
12080 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12081 | |||
12082 | ac_cv_lib_nsl_yp_match=no | ||
12083 | fi | ||
12084 | |||
12085 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12086 | conftest$ac_exeext conftest.$ac_ext | ||
12087 | LIBS=$ac_check_lib_save_LIBS | ||
12088 | fi | ||
12089 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
12090 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; } | ||
12091 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
12092 | cat >>confdefs.h <<_ACEOF | ||
12093 | #define HAVE_LIBNSL 1 | ||
12094 | _ACEOF | ||
12095 | |||
12096 | LIBS="-lnsl $LIBS" | ||
12097 | |||
12098 | fi | ||
12099 | |||
12100 | fi | ||
12101 | |||
12102 | { echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
12103 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } | ||
12104 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
12105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12106 | else | ||
12107 | cat >conftest.$ac_ext <<_ACEOF | ||
12108 | /* confdefs.h. */ | ||
12109 | _ACEOF | ||
12110 | cat confdefs.h >>conftest.$ac_ext | ||
12111 | cat >>conftest.$ac_ext <<_ACEOF | ||
12112 | /* end confdefs.h. */ | ||
12113 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
12114 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12115 | #define setsockopt innocuous_setsockopt | ||
12116 | |||
12117 | /* System header to define __stub macros and hopefully few prototypes, | ||
12118 | which can conflict with char setsockopt (); below. | ||
12119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12120 | <limits.h> exists even on freestanding compilers. */ | ||
12121 | |||
12122 | #ifdef __STDC__ | ||
12123 | # include <limits.h> | ||
12124 | #else | ||
12125 | # include <assert.h> | ||
12126 | #endif | ||
12127 | |||
12128 | #undef setsockopt | ||
12129 | |||
12130 | /* Override any GCC internal prototype to avoid an error. | ||
12131 | Use char because int might match the return type of a GCC | ||
12132 | builtin and then its argument prototype would still apply. */ | ||
12133 | #ifdef __cplusplus | ||
12134 | extern "C" | ||
12135 | #endif | ||
12136 | char setsockopt (); | ||
12137 | /* The GNU C library defines this for functions which it implements | ||
12138 | to always fail with ENOSYS. Some functions are actually named | ||
12139 | something starting with __ and the normal name is an alias. */ | ||
12140 | #if defined __stub_setsockopt || defined __stub___setsockopt | ||
12141 | choke me | ||
12142 | #endif | ||
12143 | |||
12144 | int | ||
12145 | main () | ||
12146 | { | ||
12147 | return setsockopt (); | ||
12148 | ; | ||
12149 | return 0; | ||
12150 | } | ||
12151 | _ACEOF | ||
12152 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12153 | if { (ac_try="$ac_link" | ||
12154 | case "(($ac_try" in | ||
12155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12156 | *) ac_try_echo=$ac_try;; | ||
12157 | esac | ||
12158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12159 | (eval "$ac_link") 2>conftest.er1 | ||
12160 | ac_status=$? | ||
12161 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12162 | rm -f conftest.er1 | ||
12163 | cat conftest.err >&5 | ||
12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12165 | (exit $ac_status); } && { | ||
12166 | test -z "$ac_c_werror_flag" || | ||
12167 | test ! -s conftest.err | ||
12168 | } && test -s conftest$ac_exeext && | ||
12169 | $as_test_x conftest$ac_exeext; then | ||
12170 | ac_cv_func_setsockopt=yes | ||
12171 | else | ||
12172 | echo "$as_me: failed program was:" >&5 | ||
12173 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12174 | |||
12175 | ac_cv_func_setsockopt=no | ||
12176 | fi | ||
12177 | |||
12178 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12179 | conftest$ac_exeext conftest.$ac_ext | ||
12180 | fi | ||
12181 | { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
12182 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } | ||
12183 | if test $ac_cv_func_setsockopt = yes; then | ||
12184 | : | ||
12185 | else | ||
12186 | |||
12187 | { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
12188 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } | ||
12189 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
12190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12191 | else | ||
12192 | ac_check_lib_save_LIBS=$LIBS | ||
12193 | LIBS="-lsocket $LIBS" | ||
12194 | cat >conftest.$ac_ext <<_ACEOF | ||
12195 | /* confdefs.h. */ | ||
12196 | _ACEOF | ||
12197 | cat confdefs.h >>conftest.$ac_ext | ||
12198 | cat >>conftest.$ac_ext <<_ACEOF | ||
12199 | /* end confdefs.h. */ | ||
12200 | |||
12201 | /* Override any GCC internal prototype to avoid an error. | ||
12202 | Use char because int might match the return type of a GCC | ||
12203 | builtin and then its argument prototype would still apply. */ | ||
12204 | #ifdef __cplusplus | ||
12205 | extern "C" | ||
12206 | #endif | ||
12207 | char setsockopt (); | ||
12208 | int | ||
12209 | main () | ||
12210 | { | ||
12211 | return setsockopt (); | ||
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 | ac_cv_lib_socket_setsockopt=yes | ||
12235 | else | ||
12236 | echo "$as_me: failed program was:" >&5 | ||
12237 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12238 | |||
12239 | ac_cv_lib_socket_setsockopt=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 | LIBS=$ac_check_lib_save_LIBS | ||
12245 | fi | ||
12246 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
12247 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } | ||
12248 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
12249 | cat >>confdefs.h <<_ACEOF | ||
12250 | #define HAVE_LIBSOCKET 1 | ||
12251 | _ACEOF | ||
12252 | |||
12253 | LIBS="-lsocket $LIBS" | ||
12254 | |||
12255 | fi | ||
12256 | |||
12257 | fi | ||
12258 | |||
12259 | |||
12260 | |||
12261 | for ac_func in dirname | ||
12262 | do | ||
12263 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12264 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12265 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12266 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12268 | else | ||
12269 | cat >conftest.$ac_ext <<_ACEOF | ||
12270 | /* confdefs.h. */ | ||
12271 | _ACEOF | ||
12272 | cat confdefs.h >>conftest.$ac_ext | ||
12273 | cat >>conftest.$ac_ext <<_ACEOF | ||
12274 | /* end confdefs.h. */ | ||
12275 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12276 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12277 | #define $ac_func innocuous_$ac_func | ||
12278 | |||
12279 | /* System header to define __stub macros and hopefully few prototypes, | ||
12280 | which can conflict with char $ac_func (); below. | ||
12281 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12282 | <limits.h> exists even on freestanding compilers. */ | ||
12283 | |||
12284 | #ifdef __STDC__ | ||
12285 | # include <limits.h> | ||
12286 | #else | ||
12287 | # include <assert.h> | ||
12288 | #endif | ||
12289 | |||
12290 | #undef $ac_func | ||
12291 | |||
12292 | /* Override any GCC internal prototype to avoid an error. | ||
12293 | Use char because int might match the return type of a GCC | ||
12294 | builtin and then its argument prototype would still apply. */ | ||
12295 | #ifdef __cplusplus | ||
12296 | extern "C" | ||
12297 | #endif | ||
12298 | char $ac_func (); | ||
12299 | /* The GNU C library defines this for functions which it implements | ||
12300 | to always fail with ENOSYS. Some functions are actually named | ||
12301 | something starting with __ and the normal name is an alias. */ | ||
12302 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12303 | choke me | ||
12304 | #endif | ||
12305 | |||
12306 | int | ||
12307 | main () | ||
12308 | { | ||
12309 | return $ac_func (); | ||
12310 | ; | ||
12311 | return 0; | ||
12312 | } | ||
12313 | _ACEOF | ||
12314 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12315 | if { (ac_try="$ac_link" | ||
12316 | case "(($ac_try" in | ||
12317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12318 | *) ac_try_echo=$ac_try;; | ||
12319 | esac | ||
12320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12321 | (eval "$ac_link") 2>conftest.er1 | ||
12322 | ac_status=$? | ||
12323 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12324 | rm -f conftest.er1 | ||
12325 | cat conftest.err >&5 | ||
12326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12327 | (exit $ac_status); } && { | ||
12328 | test -z "$ac_c_werror_flag" || | ||
12329 | test ! -s conftest.err | ||
12330 | } && test -s conftest$ac_exeext && | ||
12331 | $as_test_x conftest$ac_exeext; then | ||
12332 | eval "$as_ac_var=yes" | ||
12333 | else | ||
12334 | echo "$as_me: failed program was:" >&5 | ||
12335 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12336 | |||
12337 | eval "$as_ac_var=no" | ||
12338 | fi | ||
12339 | |||
12340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12341 | conftest$ac_exeext conftest.$ac_ext | ||
12342 | fi | ||
12343 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12344 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12345 | echo "${ECHO_T}$ac_res" >&6; } | ||
12346 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12347 | cat >>confdefs.h <<_ACEOF | ||
12348 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12349 | _ACEOF | ||
12350 | |||
12351 | for ac_header in libgen.h | ||
12352 | do | ||
12353 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
12354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12355 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12356 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12357 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12359 | fi | ||
12360 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12361 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12362 | echo "${ECHO_T}$ac_res" >&6; } | ||
12363 | else | ||
12364 | # Is the header compilable? | ||
12365 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
12366 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
12367 | cat >conftest.$ac_ext <<_ACEOF | ||
12368 | /* confdefs.h. */ | ||
12369 | _ACEOF | ||
12370 | cat confdefs.h >>conftest.$ac_ext | ||
12371 | cat >>conftest.$ac_ext <<_ACEOF | ||
12372 | /* end confdefs.h. */ | ||
12373 | $ac_includes_default | ||
12374 | #include <$ac_header> | ||
12375 | _ACEOF | ||
12376 | rm -f conftest.$ac_objext | ||
12377 | if { (ac_try="$ac_compile" | ||
12378 | case "(($ac_try" in | ||
12379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12380 | *) ac_try_echo=$ac_try;; | ||
12381 | esac | ||
12382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12383 | (eval "$ac_compile") 2>conftest.er1 | ||
12384 | ac_status=$? | ||
12385 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12386 | rm -f conftest.er1 | ||
12387 | cat conftest.err >&5 | ||
12388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12389 | (exit $ac_status); } && { | ||
12390 | test -z "$ac_c_werror_flag" || | ||
12391 | test ! -s conftest.err | ||
12392 | } && test -s conftest.$ac_objext; then | ||
12393 | ac_header_compiler=yes | ||
12394 | else | ||
12395 | echo "$as_me: failed program was:" >&5 | ||
12396 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12397 | |||
12398 | ac_header_compiler=no | ||
12399 | fi | ||
12400 | |||
12401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12402 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
12403 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
12404 | |||
12405 | # Is the header present? | ||
12406 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
12407 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
12408 | cat >conftest.$ac_ext <<_ACEOF | ||
12409 | /* confdefs.h. */ | ||
12410 | _ACEOF | ||
12411 | cat confdefs.h >>conftest.$ac_ext | ||
12412 | cat >>conftest.$ac_ext <<_ACEOF | ||
12413 | /* end confdefs.h. */ | ||
12414 | #include <$ac_header> | ||
12415 | _ACEOF | ||
12416 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
12417 | case "(($ac_try" in | ||
12418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12419 | *) ac_try_echo=$ac_try;; | ||
12420 | esac | ||
12421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12422 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
12423 | ac_status=$? | ||
12424 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12425 | rm -f conftest.er1 | ||
12426 | cat conftest.err >&5 | ||
12427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12428 | (exit $ac_status); } >/dev/null && { | ||
12429 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
12430 | test ! -s conftest.err | ||
12431 | }; then | ||
12432 | ac_header_preproc=yes | ||
12433 | else | ||
12434 | echo "$as_me: failed program was:" >&5 | ||
12435 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12436 | |||
12437 | ac_header_preproc=no | ||
12438 | fi | ||
12439 | |||
12440 | rm -f conftest.err conftest.$ac_ext | ||
12441 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
12442 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
12443 | |||
12444 | # So? What about this header? | ||
12445 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
12446 | yes:no: ) | ||
12447 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
12448 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
12449 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
12450 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
12451 | ac_header_preproc=yes | ||
12452 | ;; | ||
12453 | no:yes:* ) | ||
12454 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
12455 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
12456 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
12457 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
12458 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
12459 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
12460 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
12461 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
12462 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
12463 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
12464 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
12465 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
12466 | ( cat <<\_ASBOX | ||
12467 | ## ------------------------------------------- ## | ||
12468 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
12469 | ## ------------------------------------------- ## | ||
12470 | _ASBOX | ||
12471 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
12472 | ;; | ||
12473 | esac | ||
12474 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12475 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12476 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12478 | else | ||
12479 | eval "$as_ac_Header=\$ac_header_preproc" | ||
12480 | fi | ||
12481 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12482 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12483 | echo "${ECHO_T}$ac_res" >&6; } | ||
12484 | |||
12485 | fi | ||
12486 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12487 | cat >>confdefs.h <<_ACEOF | ||
12488 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12489 | _ACEOF | ||
12490 | |||
12491 | fi | ||
12492 | |||
12493 | done | ||
12494 | |||
12495 | else | ||
12496 | |||
12497 | { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
12498 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; } | ||
12499 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
12500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12501 | else | ||
12502 | ac_check_lib_save_LIBS=$LIBS | ||
12503 | LIBS="-lgen $LIBS" | ||
12504 | cat >conftest.$ac_ext <<_ACEOF | ||
12505 | /* confdefs.h. */ | ||
12506 | _ACEOF | ||
12507 | cat confdefs.h >>conftest.$ac_ext | ||
12508 | cat >>conftest.$ac_ext <<_ACEOF | ||
12509 | /* end confdefs.h. */ | ||
12510 | |||
12511 | /* Override any GCC internal prototype to avoid an error. | ||
12512 | Use char because int might match the return type of a GCC | ||
12513 | builtin and then its argument prototype would still apply. */ | ||
12514 | #ifdef __cplusplus | ||
12515 | extern "C" | ||
12516 | #endif | ||
12517 | char dirname (); | ||
12518 | int | ||
12519 | main () | ||
12520 | { | ||
12521 | return dirname (); | ||
12522 | ; | ||
12523 | return 0; | ||
12524 | } | ||
12525 | _ACEOF | ||
12526 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12527 | if { (ac_try="$ac_link" | ||
12528 | case "(($ac_try" in | ||
12529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12530 | *) ac_try_echo=$ac_try;; | ||
12531 | esac | ||
12532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12533 | (eval "$ac_link") 2>conftest.er1 | ||
12534 | ac_status=$? | ||
12535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12536 | rm -f conftest.er1 | ||
12537 | cat conftest.err >&5 | ||
12538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12539 | (exit $ac_status); } && { | ||
12540 | test -z "$ac_c_werror_flag" || | ||
12541 | test ! -s conftest.err | ||
12542 | } && test -s conftest$ac_exeext && | ||
12543 | $as_test_x conftest$ac_exeext; then | ||
12544 | ac_cv_lib_gen_dirname=yes | ||
12545 | else | ||
12546 | echo "$as_me: failed program was:" >&5 | ||
12547 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12548 | |||
12549 | ac_cv_lib_gen_dirname=no | ||
12550 | fi | ||
12551 | |||
12552 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12553 | conftest$ac_exeext conftest.$ac_ext | ||
12554 | LIBS=$ac_check_lib_save_LIBS | ||
12555 | fi | ||
12556 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
12557 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; } | ||
12558 | if test $ac_cv_lib_gen_dirname = yes; then | ||
12559 | |||
12560 | { echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
12561 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; } | ||
12562 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
12563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12564 | else | ||
12565 | |||
12566 | save_LIBS="$LIBS" | ||
12567 | LIBS="$LIBS -lgen" | ||
12568 | if test "$cross_compiling" = yes; then | ||
12569 | ac_cv_have_broken_dirname="no" | ||
12570 | else | ||
12571 | cat >conftest.$ac_ext <<_ACEOF | ||
12572 | /* confdefs.h. */ | ||
12573 | _ACEOF | ||
12574 | cat confdefs.h >>conftest.$ac_ext | ||
12575 | cat >>conftest.$ac_ext <<_ACEOF | ||
12576 | /* end confdefs.h. */ | ||
12577 | |||
12578 | #include <libgen.h> | ||
12579 | #include <string.h> | ||
12580 | |||
12581 | int main(int argc, char **argv) { | ||
12582 | char *s, buf[32]; | ||
12583 | |||
12584 | strncpy(buf,"/etc", 32); | ||
12585 | s = dirname(buf); | ||
12586 | if (!s || strncmp(s, "/", 32) != 0) { | ||
12587 | exit(1); | ||
12588 | } else { | ||
12589 | exit(0); | ||
12590 | } | ||
12591 | } | ||
12592 | |||
12593 | _ACEOF | ||
12594 | rm -f conftest$ac_exeext | ||
12595 | if { (ac_try="$ac_link" | ||
12596 | case "(($ac_try" in | ||
12597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12598 | *) ac_try_echo=$ac_try;; | ||
12599 | esac | ||
12600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12601 | (eval "$ac_link") 2>&5 | ||
12602 | ac_status=$? | ||
12603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12605 | { (case "(($ac_try" in | ||
12606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12607 | *) ac_try_echo=$ac_try;; | ||
12608 | esac | ||
12609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12610 | (eval "$ac_try") 2>&5 | ||
12611 | ac_status=$? | ||
12612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12613 | (exit $ac_status); }; }; then | ||
12614 | ac_cv_have_broken_dirname="no" | ||
12615 | else | ||
12616 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12617 | echo "$as_me: failed program was:" >&5 | ||
12618 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12619 | |||
12620 | ( exit $ac_status ) | ||
12621 | ac_cv_have_broken_dirname="yes" | ||
12622 | fi | ||
12623 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12624 | fi | ||
12625 | |||
12626 | |||
12627 | LIBS="$save_LIBS" | ||
12628 | |||
12629 | fi | ||
12630 | { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
12631 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; } | ||
12632 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
12633 | LIBS="$LIBS -lgen" | ||
12634 | cat >>confdefs.h <<\_ACEOF | ||
12635 | #define HAVE_DIRNAME 1 | ||
12636 | _ACEOF | ||
12637 | |||
12638 | |||
12639 | for ac_header in libgen.h | ||
12640 | do | ||
12641 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
12642 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12643 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12647 | fi | ||
12648 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12650 | echo "${ECHO_T}$ac_res" >&6; } | ||
12651 | else | ||
12652 | # Is the header compilable? | ||
12653 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
12654 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
12655 | cat >conftest.$ac_ext <<_ACEOF | ||
12656 | /* confdefs.h. */ | ||
12657 | _ACEOF | ||
12658 | cat confdefs.h >>conftest.$ac_ext | ||
12659 | cat >>conftest.$ac_ext <<_ACEOF | ||
12660 | /* end confdefs.h. */ | ||
12661 | $ac_includes_default | ||
12662 | #include <$ac_header> | ||
12663 | _ACEOF | ||
12664 | rm -f conftest.$ac_objext | ||
12665 | if { (ac_try="$ac_compile" | ||
12666 | case "(($ac_try" in | ||
12667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12668 | *) ac_try_echo=$ac_try;; | ||
12669 | esac | ||
12670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12671 | (eval "$ac_compile") 2>conftest.er1 | ||
12672 | ac_status=$? | ||
12673 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12674 | rm -f conftest.er1 | ||
12675 | cat conftest.err >&5 | ||
12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12677 | (exit $ac_status); } && { | ||
12678 | test -z "$ac_c_werror_flag" || | ||
12679 | test ! -s conftest.err | ||
12680 | } && test -s conftest.$ac_objext; then | ||
12681 | ac_header_compiler=yes | ||
12682 | else | ||
12683 | echo "$as_me: failed program was:" >&5 | ||
12684 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12685 | |||
12686 | ac_header_compiler=no | ||
12687 | fi | ||
12688 | |||
12689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12690 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
12691 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
12692 | |||
12693 | # Is the header present? | ||
12694 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
12695 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
12696 | cat >conftest.$ac_ext <<_ACEOF | ||
12697 | /* confdefs.h. */ | ||
12698 | _ACEOF | ||
12699 | cat confdefs.h >>conftest.$ac_ext | ||
12700 | cat >>conftest.$ac_ext <<_ACEOF | ||
12701 | /* end confdefs.h. */ | ||
12702 | #include <$ac_header> | ||
12703 | _ACEOF | ||
12704 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
12705 | case "(($ac_try" in | ||
12706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12707 | *) ac_try_echo=$ac_try;; | ||
12708 | esac | ||
12709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12710 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
12711 | ac_status=$? | ||
12712 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12713 | rm -f conftest.er1 | ||
12714 | cat conftest.err >&5 | ||
12715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12716 | (exit $ac_status); } >/dev/null && { | ||
12717 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
12718 | test ! -s conftest.err | ||
12719 | }; then | ||
12720 | ac_header_preproc=yes | ||
12721 | else | ||
12722 | echo "$as_me: failed program was:" >&5 | ||
12723 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12724 | |||
12725 | ac_header_preproc=no | ||
12726 | fi | ||
12727 | |||
12728 | rm -f conftest.err conftest.$ac_ext | ||
12729 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
12730 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
12731 | |||
12732 | # So? What about this header? | ||
12733 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
12734 | yes:no: ) | ||
12735 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
12736 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
12737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
12738 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
12739 | ac_header_preproc=yes | ||
12740 | ;; | ||
12741 | no:yes:* ) | ||
12742 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
12743 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
12744 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
12745 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
12746 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
12747 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
12748 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
12749 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
12750 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
12751 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
12752 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
12753 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
12754 | ( cat <<\_ASBOX | ||
12755 | ## ------------------------------------------- ## | ||
12756 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
12757 | ## ------------------------------------------- ## | ||
12758 | _ASBOX | ||
12759 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
12760 | ;; | ||
12761 | esac | ||
12762 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12764 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12766 | else | ||
12767 | eval "$as_ac_Header=\$ac_header_preproc" | ||
12768 | fi | ||
12769 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12770 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12771 | echo "${ECHO_T}$ac_res" >&6; } | ||
12772 | |||
12773 | fi | ||
12774 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12775 | cat >>confdefs.h <<_ACEOF | ||
12776 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12777 | _ACEOF | ||
12778 | |||
12779 | fi | ||
12780 | |||
12781 | done | ||
12782 | |||
12783 | fi | ||
12784 | |||
12785 | fi | ||
12786 | |||
12787 | |||
12788 | fi | ||
12789 | done | ||
12790 | |||
12791 | |||
12792 | { echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
12793 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; } | ||
12794 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
12795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12796 | else | ||
12797 | cat >conftest.$ac_ext <<_ACEOF | ||
12798 | /* confdefs.h. */ | ||
12799 | _ACEOF | ||
12800 | cat confdefs.h >>conftest.$ac_ext | ||
12801 | cat >>conftest.$ac_ext <<_ACEOF | ||
12802 | /* end confdefs.h. */ | ||
12803 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
12804 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12805 | #define getspnam innocuous_getspnam | ||
12806 | |||
12807 | /* System header to define __stub macros and hopefully few prototypes, | ||
12808 | which can conflict with char getspnam (); below. | ||
12809 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12810 | <limits.h> exists even on freestanding compilers. */ | ||
12811 | |||
12812 | #ifdef __STDC__ | ||
12813 | # include <limits.h> | ||
12814 | #else | ||
12815 | # include <assert.h> | ||
12816 | #endif | ||
12817 | |||
12818 | #undef getspnam | ||
12819 | |||
12820 | /* Override any GCC internal prototype to avoid an error. | ||
12821 | Use char because int might match the return type of a GCC | ||
12822 | builtin and then its argument prototype would still apply. */ | ||
12823 | #ifdef __cplusplus | ||
12824 | extern "C" | ||
12825 | #endif | ||
12826 | char getspnam (); | ||
12827 | /* The GNU C library defines this for functions which it implements | ||
12828 | to always fail with ENOSYS. Some functions are actually named | ||
12829 | something starting with __ and the normal name is an alias. */ | ||
12830 | #if defined __stub_getspnam || defined __stub___getspnam | ||
12831 | choke me | ||
12832 | #endif | ||
12833 | |||
12834 | int | ||
12835 | main () | ||
12836 | { | ||
12837 | return getspnam (); | ||
12838 | ; | ||
12839 | return 0; | ||
12840 | } | ||
12841 | _ACEOF | ||
12842 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12843 | if { (ac_try="$ac_link" | ||
12844 | case "(($ac_try" in | ||
12845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12846 | *) ac_try_echo=$ac_try;; | ||
12847 | esac | ||
12848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12849 | (eval "$ac_link") 2>conftest.er1 | ||
12850 | ac_status=$? | ||
12851 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12852 | rm -f conftest.er1 | ||
12853 | cat conftest.err >&5 | ||
12854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12855 | (exit $ac_status); } && { | ||
12856 | test -z "$ac_c_werror_flag" || | ||
12857 | test ! -s conftest.err | ||
12858 | } && test -s conftest$ac_exeext && | ||
12859 | $as_test_x conftest$ac_exeext; then | ||
12860 | ac_cv_func_getspnam=yes | ||
12861 | else | ||
12862 | echo "$as_me: failed program was:" >&5 | ||
12863 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12864 | |||
12865 | ac_cv_func_getspnam=no | ||
12866 | fi | ||
12867 | |||
12868 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12869 | conftest$ac_exeext conftest.$ac_ext | ||
12870 | fi | ||
12871 | { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
12872 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6; } | ||
12873 | if test $ac_cv_func_getspnam = yes; then | ||
12874 | : | ||
12875 | else | ||
12876 | { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
12877 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; } | ||
12878 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
12879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12880 | else | ||
12881 | ac_check_lib_save_LIBS=$LIBS | ||
12882 | LIBS="-lgen $LIBS" | ||
12883 | cat >conftest.$ac_ext <<_ACEOF | ||
12884 | /* confdefs.h. */ | ||
12885 | _ACEOF | ||
12886 | cat confdefs.h >>conftest.$ac_ext | ||
12887 | cat >>conftest.$ac_ext <<_ACEOF | ||
12888 | /* end confdefs.h. */ | ||
12889 | |||
12890 | /* Override any GCC internal prototype to avoid an error. | ||
12891 | Use char because int might match the return type of a GCC | ||
12892 | builtin and then its argument prototype would still apply. */ | ||
12893 | #ifdef __cplusplus | ||
12894 | extern "C" | ||
12895 | #endif | ||
12896 | char getspnam (); | ||
12897 | int | ||
12898 | main () | ||
12899 | { | ||
12900 | return getspnam (); | ||
12901 | ; | ||
12902 | return 0; | ||
12903 | } | ||
12904 | _ACEOF | ||
12905 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12906 | if { (ac_try="$ac_link" | ||
12907 | case "(($ac_try" in | ||
12908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12909 | *) ac_try_echo=$ac_try;; | ||
12910 | esac | ||
12911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12912 | (eval "$ac_link") 2>conftest.er1 | ||
12913 | ac_status=$? | ||
12914 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12915 | rm -f conftest.er1 | ||
12916 | cat conftest.err >&5 | ||
12917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12918 | (exit $ac_status); } && { | ||
12919 | test -z "$ac_c_werror_flag" || | ||
12920 | test ! -s conftest.err | ||
12921 | } && test -s conftest$ac_exeext && | ||
12922 | $as_test_x conftest$ac_exeext; then | ||
12923 | ac_cv_lib_gen_getspnam=yes | ||
12924 | else | ||
12925 | echo "$as_me: failed program was:" >&5 | ||
12926 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12927 | |||
12928 | ac_cv_lib_gen_getspnam=no | ||
12929 | fi | ||
12930 | |||
12931 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12932 | conftest$ac_exeext conftest.$ac_ext | ||
12933 | LIBS=$ac_check_lib_save_LIBS | ||
12934 | fi | ||
12935 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
12936 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; } | ||
12937 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
12938 | LIBS="$LIBS -lgen" | ||
12939 | fi | ||
12940 | |||
12941 | fi | ||
12942 | |||
12943 | { echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
12944 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; } | ||
12945 | if test "${ac_cv_search_basename+set}" = set; then | ||
12946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12947 | else | ||
12948 | ac_func_search_save_LIBS=$LIBS | ||
12949 | cat >conftest.$ac_ext <<_ACEOF | ||
12950 | /* confdefs.h. */ | ||
12951 | _ACEOF | ||
12952 | cat confdefs.h >>conftest.$ac_ext | ||
12953 | cat >>conftest.$ac_ext <<_ACEOF | ||
12954 | /* end confdefs.h. */ | ||
12955 | |||
12956 | /* Override any GCC internal prototype to avoid an error. | ||
12957 | Use char because int might match the return type of a GCC | ||
12958 | builtin and then its argument prototype would still apply. */ | ||
12959 | #ifdef __cplusplus | ||
12960 | extern "C" | ||
12961 | #endif | ||
12962 | char basename (); | ||
12963 | int | ||
12964 | main () | ||
12965 | { | ||
12966 | return basename (); | ||
12967 | ; | ||
12968 | return 0; | ||
12969 | } | ||
12970 | _ACEOF | ||
12971 | for ac_lib in '' gen; do | ||
12972 | if test -z "$ac_lib"; then | ||
12973 | ac_res="none required" | ||
12974 | else | ||
12975 | ac_res=-l$ac_lib | ||
12976 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
12977 | fi | ||
12978 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12979 | if { (ac_try="$ac_link" | ||
12980 | case "(($ac_try" in | ||
12981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12982 | *) ac_try_echo=$ac_try;; | ||
12983 | esac | ||
12984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12985 | (eval "$ac_link") 2>conftest.er1 | ||
12986 | ac_status=$? | ||
12987 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12988 | rm -f conftest.er1 | ||
12989 | cat conftest.err >&5 | ||
12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12991 | (exit $ac_status); } && { | ||
12992 | test -z "$ac_c_werror_flag" || | ||
12993 | test ! -s conftest.err | ||
12994 | } && test -s conftest$ac_exeext && | ||
12995 | $as_test_x conftest$ac_exeext; then | ||
12996 | ac_cv_search_basename=$ac_res | ||
12997 | else | ||
12998 | echo "$as_me: failed program was:" >&5 | ||
12999 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13000 | |||
13001 | |||
13002 | fi | ||
13003 | |||
13004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13005 | conftest$ac_exeext | ||
13006 | if test "${ac_cv_search_basename+set}" = set; then | ||
13007 | break | ||
13008 | fi | ||
13009 | done | ||
13010 | if test "${ac_cv_search_basename+set}" = set; then | ||
13011 | : | ||
13012 | else | ||
13013 | ac_cv_search_basename=no | ||
13014 | fi | ||
13015 | rm conftest.$ac_ext | ||
13016 | LIBS=$ac_func_search_save_LIBS | ||
13017 | fi | ||
13018 | { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
13019 | echo "${ECHO_T}$ac_cv_search_basename" >&6; } | ||
13020 | ac_res=$ac_cv_search_basename | ||
13021 | if test "$ac_res" != no; then | ||
13022 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13023 | |||
13024 | cat >>confdefs.h <<\_ACEOF | ||
13025 | #define HAVE_BASENAME 1 | ||
13026 | _ACEOF | ||
13027 | |||
13028 | fi | ||
13029 | |||
13030 | |||
13031 | |||
13032 | # Check whether --with-zlib was given. | ||
13033 | if test "${with_zlib+set}" = set; then | ||
13034 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
13035 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
13036 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
13037 | { (exit 1); exit 1; }; } | ||
13038 | elif test "x$withval" != "xyes"; then | ||
13039 | if test -d "$withval/lib"; then | ||
13040 | if test -n "${need_dash_r}"; then | ||
13041 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
13042 | else | ||
13043 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
13044 | fi | ||
13045 | else | ||
13046 | if test -n "${need_dash_r}"; then | ||
13047 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
13048 | else | ||
13049 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
13050 | fi | ||
13051 | fi | ||
13052 | if test -d "$withval/include"; then | ||
13053 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
13054 | else | ||
13055 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
13056 | fi | ||
13057 | fi | ||
13058 | |||
13059 | fi | ||
13060 | |||
13061 | |||
13062 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
13063 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
13064 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
13065 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
13066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13067 | fi | ||
13068 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
13069 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
13070 | else | ||
13071 | # Is the header compilable? | ||
13072 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
13073 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | ||
13074 | cat >conftest.$ac_ext <<_ACEOF | ||
13075 | /* confdefs.h. */ | ||
13076 | _ACEOF | ||
13077 | cat confdefs.h >>conftest.$ac_ext | ||
13078 | cat >>conftest.$ac_ext <<_ACEOF | ||
13079 | /* end confdefs.h. */ | ||
13080 | $ac_includes_default | ||
13081 | #include <zlib.h> | ||
13082 | _ACEOF | ||
13083 | rm -f conftest.$ac_objext | ||
13084 | if { (ac_try="$ac_compile" | ||
13085 | case "(($ac_try" in | ||
13086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13087 | *) ac_try_echo=$ac_try;; | ||
13088 | esac | ||
13089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13090 | (eval "$ac_compile") 2>conftest.er1 | ||
13091 | ac_status=$? | ||
13092 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13093 | rm -f conftest.er1 | ||
13094 | cat conftest.err >&5 | ||
13095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13096 | (exit $ac_status); } && { | ||
13097 | test -z "$ac_c_werror_flag" || | ||
13098 | test ! -s conftest.err | ||
13099 | } && test -s conftest.$ac_objext; then | ||
13100 | ac_header_compiler=yes | ||
13101 | else | ||
13102 | echo "$as_me: failed program was:" >&5 | ||
13103 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13104 | |||
13105 | ac_header_compiler=no | ||
13106 | fi | ||
13107 | |||
13108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13109 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
13110 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
13111 | |||
13112 | # Is the header present? | ||
13113 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
13114 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | ||
13115 | cat >conftest.$ac_ext <<_ACEOF | ||
13116 | /* confdefs.h. */ | ||
13117 | _ACEOF | ||
13118 | cat confdefs.h >>conftest.$ac_ext | ||
13119 | cat >>conftest.$ac_ext <<_ACEOF | ||
13120 | /* end confdefs.h. */ | ||
13121 | #include <zlib.h> | ||
13122 | _ACEOF | ||
13123 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
13124 | case "(($ac_try" in | ||
13125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13126 | *) ac_try_echo=$ac_try;; | ||
13127 | esac | ||
13128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13129 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
13130 | ac_status=$? | ||
13131 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13132 | rm -f conftest.er1 | ||
13133 | cat conftest.err >&5 | ||
13134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13135 | (exit $ac_status); } >/dev/null && { | ||
13136 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
13137 | test ! -s conftest.err | ||
13138 | }; then | ||
13139 | ac_header_preproc=yes | ||
13140 | else | ||
13141 | echo "$as_me: failed program was:" >&5 | ||
13142 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13143 | |||
13144 | ac_header_preproc=no | ||
13145 | fi | ||
13146 | |||
13147 | rm -f conftest.err conftest.$ac_ext | ||
13148 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
13149 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
13150 | |||
13151 | # So? What about this header? | ||
13152 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
13153 | yes:no: ) | ||
13154 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
13155 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
13156 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
13157 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
13158 | ac_header_preproc=yes | ||
13159 | ;; | ||
13160 | no:yes:* ) | ||
13161 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
13162 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
13163 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
13164 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
13165 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
13166 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
13167 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
13168 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
13169 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
13170 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
13171 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
13172 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
13173 | ( cat <<\_ASBOX | ||
13174 | ## ------------------------------------------- ## | ||
13175 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
13176 | ## ------------------------------------------- ## | ||
13177 | _ASBOX | ||
13178 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
13179 | ;; | ||
13180 | esac | ||
13181 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
13182 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
13183 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
13184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13185 | else | ||
13186 | ac_cv_header_zlib_h=$ac_header_preproc | ||
13187 | fi | ||
13188 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
13189 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
13190 | |||
13191 | fi | ||
13192 | if test $ac_cv_header_zlib_h = yes; then | ||
13193 | : | ||
13194 | else | ||
13195 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
13196 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
13197 | { (exit 1); exit 1; }; } | ||
13198 | fi | ||
13199 | |||
13200 | |||
13201 | |||
13202 | { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
13203 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } | ||
13204 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
13205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13206 | else | ||
13207 | ac_check_lib_save_LIBS=$LIBS | ||
13208 | LIBS="-lz $LIBS" | ||
13209 | cat >conftest.$ac_ext <<_ACEOF | ||
13210 | /* confdefs.h. */ | ||
13211 | _ACEOF | ||
13212 | cat confdefs.h >>conftest.$ac_ext | ||
13213 | cat >>conftest.$ac_ext <<_ACEOF | ||
13214 | /* end confdefs.h. */ | ||
13215 | |||
13216 | /* Override any GCC internal prototype to avoid an error. | ||
13217 | Use char because int might match the return type of a GCC | ||
13218 | builtin and then its argument prototype would still apply. */ | ||
13219 | #ifdef __cplusplus | ||
13220 | extern "C" | ||
13221 | #endif | ||
13222 | char deflate (); | ||
13223 | int | ||
13224 | main () | ||
13225 | { | ||
13226 | return deflate (); | ||
13227 | ; | ||
13228 | return 0; | ||
13229 | } | ||
13230 | _ACEOF | ||
13231 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13232 | if { (ac_try="$ac_link" | ||
13233 | case "(($ac_try" in | ||
13234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13235 | *) ac_try_echo=$ac_try;; | ||
13236 | esac | ||
13237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13238 | (eval "$ac_link") 2>conftest.er1 | ||
13239 | ac_status=$? | ||
13240 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13241 | rm -f conftest.er1 | ||
13242 | cat conftest.err >&5 | ||
13243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13244 | (exit $ac_status); } && { | ||
13245 | test -z "$ac_c_werror_flag" || | ||
13246 | test ! -s conftest.err | ||
13247 | } && test -s conftest$ac_exeext && | ||
13248 | $as_test_x conftest$ac_exeext; then | ||
13249 | ac_cv_lib_z_deflate=yes | ||
13250 | else | ||
13251 | echo "$as_me: failed program was:" >&5 | ||
13252 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13253 | |||
13254 | ac_cv_lib_z_deflate=no | ||
13255 | fi | ||
13256 | |||
13257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13258 | conftest$ac_exeext conftest.$ac_ext | ||
13259 | LIBS=$ac_check_lib_save_LIBS | ||
13260 | fi | ||
13261 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
13262 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } | ||
13263 | if test $ac_cv_lib_z_deflate = yes; then | ||
13264 | cat >>confdefs.h <<_ACEOF | ||
13265 | #define HAVE_LIBZ 1 | ||
13266 | _ACEOF | ||
13267 | |||
13268 | LIBS="-lz $LIBS" | ||
13269 | |||
13270 | else | ||
13271 | |||
13272 | saved_CPPFLAGS="$CPPFLAGS" | ||
13273 | saved_LDFLAGS="$LDFLAGS" | ||
13274 | save_LIBS="$LIBS" | ||
13275 | if test -n "${need_dash_r}"; then | ||
13276 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
13277 | else | ||
13278 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
13279 | fi | ||
13280 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
13281 | LIBS="$LIBS -lz" | ||
13282 | cat >conftest.$ac_ext <<_ACEOF | ||
13283 | /* confdefs.h. */ | ||
13284 | _ACEOF | ||
13285 | cat confdefs.h >>conftest.$ac_ext | ||
13286 | cat >>conftest.$ac_ext <<_ACEOF | ||
13287 | /* end confdefs.h. */ | ||
13288 | |||
13289 | /* Override any GCC internal prototype to avoid an error. | ||
13290 | Use char because int might match the return type of a GCC | ||
13291 | builtin and then its argument prototype would still apply. */ | ||
13292 | #ifdef __cplusplus | ||
13293 | extern "C" | ||
13294 | #endif | ||
13295 | char deflate (); | ||
13296 | int | ||
13297 | main () | ||
13298 | { | ||
13299 | return deflate (); | ||
13300 | ; | ||
13301 | return 0; | ||
13302 | } | ||
13303 | _ACEOF | ||
13304 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13305 | if { (ac_try="$ac_link" | ||
13306 | case "(($ac_try" in | ||
13307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13308 | *) ac_try_echo=$ac_try;; | ||
13309 | esac | ||
13310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13311 | (eval "$ac_link") 2>conftest.er1 | ||
13312 | ac_status=$? | ||
13313 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13314 | rm -f conftest.er1 | ||
13315 | cat conftest.err >&5 | ||
13316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13317 | (exit $ac_status); } && { | ||
13318 | test -z "$ac_c_werror_flag" || | ||
13319 | test ! -s conftest.err | ||
13320 | } && test -s conftest$ac_exeext && | ||
13321 | $as_test_x conftest$ac_exeext; then | ||
13322 | cat >>confdefs.h <<\_ACEOF | ||
13323 | #define HAVE_LIBZ 1 | ||
13324 | _ACEOF | ||
13325 | |||
13326 | else | ||
13327 | echo "$as_me: failed program was:" >&5 | ||
13328 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13329 | |||
13330 | |||
13331 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
13332 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
13333 | { (exit 1); exit 1; }; } | ||
13334 | |||
13335 | |||
13336 | fi | ||
13337 | |||
13338 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13339 | conftest$ac_exeext conftest.$ac_ext | ||
13340 | |||
13341 | |||
13342 | fi | ||
13343 | |||
13344 | |||
13345 | |||
13346 | # Check whether --with-zlib-version-check was given. | ||
13347 | if test "${with_zlib_version_check+set}" = set; then | ||
13348 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
13349 | zlib_check_nonfatal=1 | ||
13350 | fi | ||
13351 | |||
13352 | |||
13353 | fi | ||
13354 | |||
13355 | |||
13356 | { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
13357 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; } | ||
13358 | if test "$cross_compiling" = yes; then | ||
13359 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
13360 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
13361 | |||
13362 | else | ||
13363 | cat >conftest.$ac_ext <<_ACEOF | ||
13364 | /* confdefs.h. */ | ||
13365 | _ACEOF | ||
13366 | cat confdefs.h >>conftest.$ac_ext | ||
13367 | cat >>conftest.$ac_ext <<_ACEOF | ||
13368 | /* end confdefs.h. */ | ||
13369 | |||
13370 | #include <stdio.h> | ||
13371 | #include <stdlib.h> | ||
13372 | #include <zlib.h> | ||
13373 | |||
13374 | int | ||
13375 | main () | ||
13376 | { | ||
13377 | |||
13378 | int a=0, b=0, c=0, d=0, n, v; | ||
13379 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
13380 | if (n != 3 && n != 4) | ||
13381 | exit(1); | ||
13382 | v = a*1000000 + b*10000 + c*100 + d; | ||
13383 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
13384 | |||
13385 | /* 1.1.4 is OK */ | ||
13386 | if (a == 1 && b == 1 && c >= 4) | ||
13387 | exit(0); | ||
13388 | |||
13389 | /* 1.2.3 and up are OK */ | ||
13390 | if (v >= 1020300) | ||
13391 | exit(0); | ||
13392 | |||
13393 | exit(2); | ||
13394 | |||
13395 | ; | ||
13396 | return 0; | ||
13397 | } | ||
13398 | _ACEOF | ||
13399 | rm -f conftest$ac_exeext | ||
13400 | if { (ac_try="$ac_link" | ||
13401 | case "(($ac_try" in | ||
13402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13403 | *) ac_try_echo=$ac_try;; | ||
13404 | esac | ||
13405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13406 | (eval "$ac_link") 2>&5 | ||
13407 | ac_status=$? | ||
13408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13409 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13410 | { (case "(($ac_try" in | ||
13411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13412 | *) ac_try_echo=$ac_try;; | ||
13413 | esac | ||
13414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13415 | (eval "$ac_try") 2>&5 | ||
13416 | ac_status=$? | ||
13417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13418 | (exit $ac_status); }; }; then | ||
13419 | { echo "$as_me:$LINENO: result: no" >&5 | ||
13420 | echo "${ECHO_T}no" >&6; } | ||
13421 | else | ||
13422 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13423 | echo "$as_me: failed program was:" >&5 | ||
13424 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13425 | |||
13426 | ( exit $ac_status ) | ||
13427 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
13428 | echo "${ECHO_T}yes" >&6; } | ||
13429 | if test -z "$zlib_check_nonfatal" ; then | ||
13430 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
13431 | Your reported zlib version has known security problems. It's possible your | ||
13432 | vendor has fixed these problems without changing the version number. If you | ||
13433 | are sure this is the case, you can disable the check by running | ||
13434 | \"./configure --without-zlib-version-check\". | ||
13435 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
13436 | See http://www.gzip.org/zlib/ for details." >&5 | ||
13437 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
13438 | Your reported zlib version has known security problems. It's possible your | ||
13439 | vendor has fixed these problems without changing the version number. If you | ||
13440 | are sure this is the case, you can disable the check by running | ||
13441 | \"./configure --without-zlib-version-check\". | ||
13442 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
13443 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
13444 | { (exit 1); exit 1; }; } | ||
13445 | else | ||
13446 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
13447 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
13448 | fi | ||
13449 | |||
13450 | fi | ||
13451 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13452 | fi | ||
13453 | |||
13454 | |||
13455 | |||
13456 | { echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
13457 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; } | ||
13458 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
13459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13460 | else | ||
13461 | cat >conftest.$ac_ext <<_ACEOF | ||
13462 | /* confdefs.h. */ | ||
13463 | _ACEOF | ||
13464 | cat confdefs.h >>conftest.$ac_ext | ||
13465 | cat >>conftest.$ac_ext <<_ACEOF | ||
13466 | /* end confdefs.h. */ | ||
13467 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
13468 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13469 | #define strcasecmp innocuous_strcasecmp | ||
13470 | |||
13471 | /* System header to define __stub macros and hopefully few prototypes, | ||
13472 | which can conflict with char strcasecmp (); below. | ||
13473 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13474 | <limits.h> exists even on freestanding compilers. */ | ||
13475 | |||
13476 | #ifdef __STDC__ | ||
13477 | # include <limits.h> | ||
13478 | #else | ||
13479 | # include <assert.h> | ||
13480 | #endif | ||
13481 | |||
13482 | #undef strcasecmp | ||
13483 | |||
13484 | /* Override any GCC internal prototype to avoid an error. | ||
13485 | Use char because int might match the return type of a GCC | ||
13486 | builtin and then its argument prototype would still apply. */ | ||
13487 | #ifdef __cplusplus | ||
13488 | extern "C" | ||
13489 | #endif | ||
13490 | char strcasecmp (); | ||
13491 | /* The GNU C library defines this for functions which it implements | ||
13492 | to always fail with ENOSYS. Some functions are actually named | ||
13493 | something starting with __ and the normal name is an alias. */ | ||
13494 | #if defined __stub_strcasecmp || defined __stub___strcasecmp | ||
13495 | choke me | ||
13496 | #endif | ||
13497 | |||
13498 | int | ||
13499 | main () | ||
13500 | { | ||
13501 | return strcasecmp (); | ||
13502 | ; | ||
13503 | return 0; | ||
13504 | } | ||
13505 | _ACEOF | ||
13506 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13507 | if { (ac_try="$ac_link" | ||
13508 | case "(($ac_try" in | ||
13509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13510 | *) ac_try_echo=$ac_try;; | ||
13511 | esac | ||
13512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13513 | (eval "$ac_link") 2>conftest.er1 | ||
13514 | ac_status=$? | ||
13515 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13516 | rm -f conftest.er1 | ||
13517 | cat conftest.err >&5 | ||
13518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13519 | (exit $ac_status); } && { | ||
13520 | test -z "$ac_c_werror_flag" || | ||
13521 | test ! -s conftest.err | ||
13522 | } && test -s conftest$ac_exeext && | ||
13523 | $as_test_x conftest$ac_exeext; then | ||
13524 | ac_cv_func_strcasecmp=yes | ||
13525 | else | ||
13526 | echo "$as_me: failed program was:" >&5 | ||
13527 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13528 | |||
13529 | ac_cv_func_strcasecmp=no | ||
13530 | fi | ||
13531 | |||
13532 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13533 | conftest$ac_exeext conftest.$ac_ext | ||
13534 | fi | ||
13535 | { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
13536 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; } | ||
13537 | if test $ac_cv_func_strcasecmp = yes; then | ||
13538 | : | ||
13539 | else | ||
13540 | { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
13541 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; } | ||
13542 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
13543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13544 | else | ||
13545 | ac_check_lib_save_LIBS=$LIBS | ||
13546 | LIBS="-lresolv $LIBS" | ||
13547 | cat >conftest.$ac_ext <<_ACEOF | ||
13548 | /* confdefs.h. */ | ||
13549 | _ACEOF | ||
13550 | cat confdefs.h >>conftest.$ac_ext | ||
13551 | cat >>conftest.$ac_ext <<_ACEOF | ||
13552 | /* end confdefs.h. */ | ||
13553 | |||
13554 | /* Override any GCC internal prototype to avoid an error. | ||
13555 | Use char because int might match the return type of a GCC | ||
13556 | builtin and then its argument prototype would still apply. */ | ||
13557 | #ifdef __cplusplus | ||
13558 | extern "C" | ||
13559 | #endif | ||
13560 | char strcasecmp (); | ||
13561 | int | ||
13562 | main () | ||
13563 | { | ||
13564 | return strcasecmp (); | ||
13565 | ; | ||
13566 | return 0; | ||
13567 | } | ||
13568 | _ACEOF | ||
13569 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13570 | if { (ac_try="$ac_link" | ||
13571 | case "(($ac_try" in | ||
13572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13573 | *) ac_try_echo=$ac_try;; | ||
13574 | esac | ||
13575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13576 | (eval "$ac_link") 2>conftest.er1 | ||
13577 | ac_status=$? | ||
13578 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13579 | rm -f conftest.er1 | ||
13580 | cat conftest.err >&5 | ||
13581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13582 | (exit $ac_status); } && { | ||
13583 | test -z "$ac_c_werror_flag" || | ||
13584 | test ! -s conftest.err | ||
13585 | } && test -s conftest$ac_exeext && | ||
13586 | $as_test_x conftest$ac_exeext; then | ||
13587 | ac_cv_lib_resolv_strcasecmp=yes | ||
13588 | else | ||
13589 | echo "$as_me: failed program was:" >&5 | ||
13590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13591 | |||
13592 | ac_cv_lib_resolv_strcasecmp=no | ||
13593 | fi | ||
13594 | |||
13595 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13596 | conftest$ac_exeext conftest.$ac_ext | ||
13597 | LIBS=$ac_check_lib_save_LIBS | ||
13598 | fi | ||
13599 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
13600 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
13601 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
13602 | LIBS="$LIBS -lresolv" | ||
13603 | fi | ||
13604 | |||
13605 | |||
13606 | fi | ||
13607 | |||
13608 | |||
13609 | for ac_func in utimes | ||
13610 | do | ||
13611 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13612 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13613 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13614 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13616 | else | ||
13617 | cat >conftest.$ac_ext <<_ACEOF | ||
13618 | /* confdefs.h. */ | ||
13619 | _ACEOF | ||
13620 | cat confdefs.h >>conftest.$ac_ext | ||
13621 | cat >>conftest.$ac_ext <<_ACEOF | ||
13622 | /* end confdefs.h. */ | ||
13623 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13624 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13625 | #define $ac_func innocuous_$ac_func | ||
13626 | |||
13627 | /* System header to define __stub macros and hopefully few prototypes, | ||
13628 | which can conflict with char $ac_func (); below. | ||
13629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13630 | <limits.h> exists even on freestanding compilers. */ | ||
13631 | |||
13632 | #ifdef __STDC__ | ||
13633 | # include <limits.h> | ||
13634 | #else | ||
13635 | # include <assert.h> | ||
13636 | #endif | ||
13637 | |||
13638 | #undef $ac_func | ||
13639 | |||
13640 | /* Override any GCC internal prototype to avoid an error. | ||
13641 | Use char because int might match the return type of a GCC | ||
13642 | builtin and then its argument prototype would still apply. */ | ||
13643 | #ifdef __cplusplus | ||
13644 | extern "C" | ||
13645 | #endif | ||
13646 | char $ac_func (); | ||
13647 | /* The GNU C library defines this for functions which it implements | ||
13648 | to always fail with ENOSYS. Some functions are actually named | ||
13649 | something starting with __ and the normal name is an alias. */ | ||
13650 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13651 | choke me | ||
13652 | #endif | ||
13653 | |||
13654 | int | ||
13655 | main () | ||
13656 | { | ||
13657 | return $ac_func (); | ||
13658 | ; | ||
13659 | return 0; | ||
13660 | } | ||
13661 | _ACEOF | ||
13662 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13663 | if { (ac_try="$ac_link" | ||
13664 | case "(($ac_try" in | ||
13665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13666 | *) ac_try_echo=$ac_try;; | ||
13667 | esac | ||
13668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13669 | (eval "$ac_link") 2>conftest.er1 | ||
13670 | ac_status=$? | ||
13671 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13672 | rm -f conftest.er1 | ||
13673 | cat conftest.err >&5 | ||
13674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13675 | (exit $ac_status); } && { | ||
13676 | test -z "$ac_c_werror_flag" || | ||
13677 | test ! -s conftest.err | ||
13678 | } && test -s conftest$ac_exeext && | ||
13679 | $as_test_x conftest$ac_exeext; then | ||
13680 | eval "$as_ac_var=yes" | ||
13681 | else | ||
13682 | echo "$as_me: failed program was:" >&5 | ||
13683 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13684 | |||
13685 | eval "$as_ac_var=no" | ||
13686 | fi | ||
13687 | |||
13688 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13689 | conftest$ac_exeext conftest.$ac_ext | ||
13690 | fi | ||
13691 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13692 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13693 | echo "${ECHO_T}$ac_res" >&6; } | ||
13694 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13695 | cat >>confdefs.h <<_ACEOF | ||
13696 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13697 | _ACEOF | ||
13698 | |||
13699 | else | ||
13700 | { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
13701 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; } | ||
13702 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
13703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13704 | else | ||
13705 | ac_check_lib_save_LIBS=$LIBS | ||
13706 | LIBS="-lc89 $LIBS" | ||
13707 | cat >conftest.$ac_ext <<_ACEOF | ||
13708 | /* confdefs.h. */ | ||
13709 | _ACEOF | ||
13710 | cat confdefs.h >>conftest.$ac_ext | ||
13711 | cat >>conftest.$ac_ext <<_ACEOF | ||
13712 | /* end confdefs.h. */ | ||
13713 | |||
13714 | /* Override any GCC internal prototype to avoid an error. | ||
13715 | Use char because int might match the return type of a GCC | ||
13716 | builtin and then its argument prototype would still apply. */ | ||
13717 | #ifdef __cplusplus | ||
13718 | extern "C" | ||
13719 | #endif | ||
13720 | char utimes (); | ||
13721 | int | ||
13722 | main () | ||
13723 | { | ||
13724 | return utimes (); | ||
13725 | ; | ||
13726 | return 0; | ||
13727 | } | ||
13728 | _ACEOF | ||
13729 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13730 | if { (ac_try="$ac_link" | ||
13731 | case "(($ac_try" in | ||
13732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13733 | *) ac_try_echo=$ac_try;; | ||
13734 | esac | ||
13735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13736 | (eval "$ac_link") 2>conftest.er1 | ||
13737 | ac_status=$? | ||
13738 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13739 | rm -f conftest.er1 | ||
13740 | cat conftest.err >&5 | ||
13741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13742 | (exit $ac_status); } && { | ||
13743 | test -z "$ac_c_werror_flag" || | ||
13744 | test ! -s conftest.err | ||
13745 | } && test -s conftest$ac_exeext && | ||
13746 | $as_test_x conftest$ac_exeext; then | ||
13747 | ac_cv_lib_c89_utimes=yes | ||
13748 | else | ||
13749 | echo "$as_me: failed program was:" >&5 | ||
13750 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13751 | |||
13752 | ac_cv_lib_c89_utimes=no | ||
13753 | fi | ||
13754 | |||
13755 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13756 | conftest$ac_exeext conftest.$ac_ext | ||
13757 | LIBS=$ac_check_lib_save_LIBS | ||
13758 | fi | ||
13759 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
13760 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; } | ||
13761 | if test $ac_cv_lib_c89_utimes = yes; then | ||
13762 | cat >>confdefs.h <<\_ACEOF | ||
13763 | #define HAVE_UTIMES 1 | ||
13764 | _ACEOF | ||
13765 | |||
13766 | LIBS="$LIBS -lc89" | ||
13767 | fi | ||
13768 | |||
13769 | |||
13770 | fi | ||
13771 | done | ||
13772 | |||
13773 | |||
13774 | |||
13775 | |||
13776 | for ac_header in bsd/libutil.h libutil.h | ||
13777 | do | ||
13778 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
13779 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13780 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
13781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
13782 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13784 | fi | ||
13785 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
13786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13787 | echo "${ECHO_T}$ac_res" >&6; } | ||
13788 | else | ||
13789 | # Is the header compilable? | ||
13790 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
13791 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
13792 | cat >conftest.$ac_ext <<_ACEOF | ||
13793 | /* confdefs.h. */ | ||
13794 | _ACEOF | ||
13795 | cat confdefs.h >>conftest.$ac_ext | ||
13796 | cat >>conftest.$ac_ext <<_ACEOF | ||
13797 | /* end confdefs.h. */ | ||
13798 | $ac_includes_default | ||
13799 | #include <$ac_header> | ||
13800 | _ACEOF | ||
13801 | rm -f conftest.$ac_objext | ||
13802 | if { (ac_try="$ac_compile" | ||
13803 | case "(($ac_try" in | ||
13804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13805 | *) ac_try_echo=$ac_try;; | ||
13806 | esac | ||
13807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13808 | (eval "$ac_compile") 2>conftest.er1 | ||
13809 | ac_status=$? | ||
13810 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13811 | rm -f conftest.er1 | ||
13812 | cat conftest.err >&5 | ||
13813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13814 | (exit $ac_status); } && { | ||
13815 | test -z "$ac_c_werror_flag" || | ||
13816 | test ! -s conftest.err | ||
13817 | } && test -s conftest.$ac_objext; then | ||
13818 | ac_header_compiler=yes | ||
13819 | else | ||
13820 | echo "$as_me: failed program was:" >&5 | ||
13821 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13822 | |||
13823 | ac_header_compiler=no | ||
13824 | fi | ||
13825 | |||
13826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13827 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
13828 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
13829 | |||
13830 | # Is the header present? | ||
13831 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
13832 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
13833 | cat >conftest.$ac_ext <<_ACEOF | ||
13834 | /* confdefs.h. */ | ||
13835 | _ACEOF | ||
13836 | cat confdefs.h >>conftest.$ac_ext | ||
13837 | cat >>conftest.$ac_ext <<_ACEOF | ||
13838 | /* end confdefs.h. */ | ||
13839 | #include <$ac_header> | ||
13840 | _ACEOF | ||
13841 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
13842 | case "(($ac_try" in | ||
13843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13844 | *) ac_try_echo=$ac_try;; | ||
13845 | esac | ||
13846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13847 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
13848 | ac_status=$? | ||
13849 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13850 | rm -f conftest.er1 | ||
13851 | cat conftest.err >&5 | ||
13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13853 | (exit $ac_status); } >/dev/null && { | ||
13854 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
13855 | test ! -s conftest.err | ||
13856 | }; then | ||
13857 | ac_header_preproc=yes | ||
13858 | else | ||
13859 | echo "$as_me: failed program was:" >&5 | ||
13860 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13861 | |||
13862 | ac_header_preproc=no | ||
13863 | fi | ||
13864 | |||
13865 | rm -f conftest.err conftest.$ac_ext | ||
13866 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
13867 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
13868 | |||
13869 | # So? What about this header? | ||
13870 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
13871 | yes:no: ) | ||
13872 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
13873 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
13874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
13875 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
13876 | ac_header_preproc=yes | ||
13877 | ;; | ||
13878 | no:yes:* ) | ||
13879 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
13880 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
13881 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
13882 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
13883 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
13884 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
13885 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
13886 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
13887 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
13888 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
13889 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
13890 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
13891 | ( cat <<\_ASBOX | ||
13892 | ## ------------------------------------------- ## | ||
13893 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
13894 | ## ------------------------------------------- ## | ||
13895 | _ASBOX | ||
13896 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
13897 | ;; | ||
13898 | esac | ||
13899 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
13900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
13901 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13903 | else | ||
13904 | eval "$as_ac_Header=\$ac_header_preproc" | ||
13905 | fi | ||
13906 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
13907 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13908 | echo "${ECHO_T}$ac_res" >&6; } | ||
13909 | |||
13910 | fi | ||
13911 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
13912 | cat >>confdefs.h <<_ACEOF | ||
13913 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
13914 | _ACEOF | ||
13915 | |||
13916 | fi | ||
13917 | |||
13918 | done | ||
13919 | |||
13920 | { echo "$as_me:$LINENO: checking for library containing fmt_scaled" >&5 | ||
13921 | echo $ECHO_N "checking for library containing fmt_scaled... $ECHO_C" >&6; } | ||
13922 | if test "${ac_cv_search_fmt_scaled+set}" = set; then | ||
13923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13924 | else | ||
13925 | ac_func_search_save_LIBS=$LIBS | ||
13926 | cat >conftest.$ac_ext <<_ACEOF | ||
13927 | /* confdefs.h. */ | ||
13928 | _ACEOF | ||
13929 | cat confdefs.h >>conftest.$ac_ext | ||
13930 | cat >>conftest.$ac_ext <<_ACEOF | ||
13931 | /* end confdefs.h. */ | ||
13932 | |||
13933 | /* Override any GCC internal prototype to avoid an error. | ||
13934 | Use char because int might match the return type of a GCC | ||
13935 | builtin and then its argument prototype would still apply. */ | ||
13936 | #ifdef __cplusplus | ||
13937 | extern "C" | ||
13938 | #endif | ||
13939 | char fmt_scaled (); | ||
13940 | int | ||
13941 | main () | ||
13942 | { | ||
13943 | return fmt_scaled (); | ||
13944 | ; | ||
13945 | return 0; | ||
13946 | } | ||
13947 | _ACEOF | ||
13948 | for ac_lib in '' util bsd; do | ||
13949 | if test -z "$ac_lib"; then | ||
13950 | ac_res="none required" | ||
13951 | else | ||
13952 | ac_res=-l$ac_lib | ||
13953 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13954 | fi | ||
13955 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13956 | if { (ac_try="$ac_link" | ||
13957 | case "(($ac_try" in | ||
13958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13959 | *) ac_try_echo=$ac_try;; | ||
13960 | esac | ||
13961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13962 | (eval "$ac_link") 2>conftest.er1 | ||
13963 | ac_status=$? | ||
13964 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13965 | rm -f conftest.er1 | ||
13966 | cat conftest.err >&5 | ||
13967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13968 | (exit $ac_status); } && { | ||
13969 | test -z "$ac_c_werror_flag" || | ||
13970 | test ! -s conftest.err | ||
13971 | } && test -s conftest$ac_exeext && | ||
13972 | $as_test_x conftest$ac_exeext; then | ||
13973 | ac_cv_search_fmt_scaled=$ac_res | ||
13974 | else | ||
13975 | echo "$as_me: failed program was:" >&5 | ||
13976 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13977 | |||
13978 | |||
13979 | fi | ||
13980 | |||
13981 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13982 | conftest$ac_exeext | ||
13983 | if test "${ac_cv_search_fmt_scaled+set}" = set; then | ||
13984 | break | ||
13985 | fi | ||
13986 | done | ||
13987 | if test "${ac_cv_search_fmt_scaled+set}" = set; then | ||
13988 | : | ||
13989 | else | ||
13990 | ac_cv_search_fmt_scaled=no | ||
13991 | fi | ||
13992 | rm conftest.$ac_ext | ||
13993 | LIBS=$ac_func_search_save_LIBS | ||
13994 | fi | ||
13995 | { echo "$as_me:$LINENO: result: $ac_cv_search_fmt_scaled" >&5 | ||
13996 | echo "${ECHO_T}$ac_cv_search_fmt_scaled" >&6; } | ||
13997 | ac_res=$ac_cv_search_fmt_scaled | ||
13998 | if test "$ac_res" != no; then | ||
13999 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14000 | |||
14001 | fi | ||
14002 | |||
14003 | { echo "$as_me:$LINENO: checking for library containing scan_scaled" >&5 | ||
14004 | echo $ECHO_N "checking for library containing scan_scaled... $ECHO_C" >&6; } | ||
14005 | if test "${ac_cv_search_scan_scaled+set}" = set; then | ||
14006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14007 | else | ||
14008 | ac_func_search_save_LIBS=$LIBS | ||
14009 | cat >conftest.$ac_ext <<_ACEOF | ||
14010 | /* confdefs.h. */ | ||
14011 | _ACEOF | ||
14012 | cat confdefs.h >>conftest.$ac_ext | ||
14013 | cat >>conftest.$ac_ext <<_ACEOF | ||
14014 | /* end confdefs.h. */ | ||
14015 | |||
14016 | /* Override any GCC internal prototype to avoid an error. | ||
14017 | Use char because int might match the return type of a GCC | ||
14018 | builtin and then its argument prototype would still apply. */ | ||
14019 | #ifdef __cplusplus | ||
14020 | extern "C" | ||
14021 | #endif | ||
14022 | char scan_scaled (); | ||
14023 | int | ||
14024 | main () | ||
14025 | { | ||
14026 | return scan_scaled (); | ||
14027 | ; | ||
14028 | return 0; | ||
14029 | } | ||
14030 | _ACEOF | ||
14031 | for ac_lib in '' util bsd; do | ||
14032 | if test -z "$ac_lib"; then | ||
14033 | ac_res="none required" | ||
14034 | else | ||
14035 | ac_res=-l$ac_lib | ||
14036 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14037 | fi | ||
14038 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14039 | if { (ac_try="$ac_link" | ||
14040 | case "(($ac_try" in | ||
14041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14042 | *) ac_try_echo=$ac_try;; | ||
14043 | esac | ||
14044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14045 | (eval "$ac_link") 2>conftest.er1 | ||
14046 | ac_status=$? | ||
14047 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14048 | rm -f conftest.er1 | ||
14049 | cat conftest.err >&5 | ||
14050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14051 | (exit $ac_status); } && { | ||
14052 | test -z "$ac_c_werror_flag" || | ||
14053 | test ! -s conftest.err | ||
14054 | } && test -s conftest$ac_exeext && | ||
14055 | $as_test_x conftest$ac_exeext; then | ||
14056 | ac_cv_search_scan_scaled=$ac_res | ||
14057 | else | ||
14058 | echo "$as_me: failed program was:" >&5 | ||
14059 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14060 | |||
14061 | |||
14062 | fi | ||
14063 | |||
14064 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14065 | conftest$ac_exeext | ||
14066 | if test "${ac_cv_search_scan_scaled+set}" = set; then | ||
14067 | break | ||
14068 | fi | ||
14069 | done | ||
14070 | if test "${ac_cv_search_scan_scaled+set}" = set; then | ||
14071 | : | ||
14072 | else | ||
14073 | ac_cv_search_scan_scaled=no | ||
14074 | fi | ||
14075 | rm conftest.$ac_ext | ||
14076 | LIBS=$ac_func_search_save_LIBS | ||
14077 | fi | ||
14078 | { echo "$as_me:$LINENO: result: $ac_cv_search_scan_scaled" >&5 | ||
14079 | echo "${ECHO_T}$ac_cv_search_scan_scaled" >&6; } | ||
14080 | ac_res=$ac_cv_search_scan_scaled | ||
14081 | if test "$ac_res" != no; then | ||
14082 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14083 | |||
14084 | fi | ||
14085 | |||
14086 | { echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
14087 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; } | ||
14088 | if test "${ac_cv_search_login+set}" = set; then | ||
14089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14090 | else | ||
14091 | ac_func_search_save_LIBS=$LIBS | ||
14092 | cat >conftest.$ac_ext <<_ACEOF | ||
14093 | /* confdefs.h. */ | ||
14094 | _ACEOF | ||
14095 | cat confdefs.h >>conftest.$ac_ext | ||
14096 | cat >>conftest.$ac_ext <<_ACEOF | ||
14097 | /* end confdefs.h. */ | ||
14098 | |||
14099 | /* Override any GCC internal prototype to avoid an error. | ||
14100 | Use char because int might match the return type of a GCC | ||
14101 | builtin and then its argument prototype would still apply. */ | ||
14102 | #ifdef __cplusplus | ||
14103 | extern "C" | ||
14104 | #endif | ||
14105 | char login (); | ||
14106 | int | ||
14107 | main () | ||
14108 | { | ||
14109 | return login (); | ||
14110 | ; | ||
14111 | return 0; | ||
14112 | } | ||
14113 | _ACEOF | ||
14114 | for ac_lib in '' util bsd; do | ||
14115 | if test -z "$ac_lib"; then | ||
14116 | ac_res="none required" | ||
14117 | else | ||
14118 | ac_res=-l$ac_lib | ||
14119 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14120 | fi | ||
14121 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14122 | if { (ac_try="$ac_link" | ||
14123 | case "(($ac_try" in | ||
14124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14125 | *) ac_try_echo=$ac_try;; | ||
14126 | esac | ||
14127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14128 | (eval "$ac_link") 2>conftest.er1 | ||
14129 | ac_status=$? | ||
14130 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14131 | rm -f conftest.er1 | ||
14132 | cat conftest.err >&5 | ||
14133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14134 | (exit $ac_status); } && { | ||
14135 | test -z "$ac_c_werror_flag" || | ||
14136 | test ! -s conftest.err | ||
14137 | } && test -s conftest$ac_exeext && | ||
14138 | $as_test_x conftest$ac_exeext; then | ||
14139 | ac_cv_search_login=$ac_res | ||
14140 | else | ||
14141 | echo "$as_me: failed program was:" >&5 | ||
14142 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14143 | |||
14144 | |||
14145 | fi | ||
14146 | |||
14147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14148 | conftest$ac_exeext | ||
14149 | if test "${ac_cv_search_login+set}" = set; then | ||
14150 | break | ||
14151 | fi | ||
14152 | done | ||
14153 | if test "${ac_cv_search_login+set}" = set; then | ||
14154 | : | ||
14155 | else | ||
14156 | ac_cv_search_login=no | ||
14157 | fi | ||
14158 | rm conftest.$ac_ext | ||
14159 | LIBS=$ac_func_search_save_LIBS | ||
14160 | fi | ||
14161 | { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
14162 | echo "${ECHO_T}$ac_cv_search_login" >&6; } | ||
14163 | ac_res=$ac_cv_search_login | ||
14164 | if test "$ac_res" != no; then | ||
14165 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14166 | |||
14167 | fi | ||
14168 | |||
14169 | { echo "$as_me:$LINENO: checking for library containing logout" >&5 | ||
14170 | echo $ECHO_N "checking for library containing logout... $ECHO_C" >&6; } | ||
14171 | if test "${ac_cv_search_logout+set}" = set; then | ||
14172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14173 | else | ||
14174 | ac_func_search_save_LIBS=$LIBS | ||
14175 | cat >conftest.$ac_ext <<_ACEOF | ||
14176 | /* confdefs.h. */ | ||
14177 | _ACEOF | ||
14178 | cat confdefs.h >>conftest.$ac_ext | ||
14179 | cat >>conftest.$ac_ext <<_ACEOF | ||
14180 | /* end confdefs.h. */ | ||
14181 | |||
14182 | /* Override any GCC internal prototype to avoid an error. | ||
14183 | Use char because int might match the return type of a GCC | ||
14184 | builtin and then its argument prototype would still apply. */ | ||
14185 | #ifdef __cplusplus | ||
14186 | extern "C" | ||
14187 | #endif | ||
14188 | char logout (); | ||
14189 | int | ||
14190 | main () | ||
14191 | { | ||
14192 | return logout (); | ||
14193 | ; | ||
14194 | return 0; | ||
14195 | } | ||
14196 | _ACEOF | ||
14197 | for ac_lib in '' util bsd; do | ||
14198 | if test -z "$ac_lib"; then | ||
14199 | ac_res="none required" | ||
14200 | else | ||
14201 | ac_res=-l$ac_lib | ||
14202 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14203 | fi | ||
14204 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14205 | if { (ac_try="$ac_link" | ||
14206 | case "(($ac_try" in | ||
14207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14208 | *) ac_try_echo=$ac_try;; | ||
14209 | esac | ||
14210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14211 | (eval "$ac_link") 2>conftest.er1 | ||
14212 | ac_status=$? | ||
14213 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14214 | rm -f conftest.er1 | ||
14215 | cat conftest.err >&5 | ||
14216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14217 | (exit $ac_status); } && { | ||
14218 | test -z "$ac_c_werror_flag" || | ||
14219 | test ! -s conftest.err | ||
14220 | } && test -s conftest$ac_exeext && | ||
14221 | $as_test_x conftest$ac_exeext; then | ||
14222 | ac_cv_search_logout=$ac_res | ||
14223 | else | ||
14224 | echo "$as_me: failed program was:" >&5 | ||
14225 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14226 | |||
14227 | |||
14228 | fi | ||
14229 | |||
14230 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14231 | conftest$ac_exeext | ||
14232 | if test "${ac_cv_search_logout+set}" = set; then | ||
14233 | break | ||
14234 | fi | ||
14235 | done | ||
14236 | if test "${ac_cv_search_logout+set}" = set; then | ||
14237 | : | ||
14238 | else | ||
14239 | ac_cv_search_logout=no | ||
14240 | fi | ||
14241 | rm conftest.$ac_ext | ||
14242 | LIBS=$ac_func_search_save_LIBS | ||
14243 | fi | ||
14244 | { echo "$as_me:$LINENO: result: $ac_cv_search_logout" >&5 | ||
14245 | echo "${ECHO_T}$ac_cv_search_logout" >&6; } | ||
14246 | ac_res=$ac_cv_search_logout | ||
14247 | if test "$ac_res" != no; then | ||
14248 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14249 | |||
14250 | fi | ||
14251 | |||
14252 | { echo "$as_me:$LINENO: checking for library containing logwtmp" >&5 | ||
14253 | echo $ECHO_N "checking for library containing logwtmp... $ECHO_C" >&6; } | ||
14254 | if test "${ac_cv_search_logwtmp+set}" = set; then | ||
14255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14256 | else | ||
14257 | ac_func_search_save_LIBS=$LIBS | ||
14258 | cat >conftest.$ac_ext <<_ACEOF | ||
14259 | /* confdefs.h. */ | ||
14260 | _ACEOF | ||
14261 | cat confdefs.h >>conftest.$ac_ext | ||
14262 | cat >>conftest.$ac_ext <<_ACEOF | ||
14263 | /* end confdefs.h. */ | ||
14264 | |||
14265 | /* Override any GCC internal prototype to avoid an error. | ||
14266 | Use char because int might match the return type of a GCC | ||
14267 | builtin and then its argument prototype would still apply. */ | ||
14268 | #ifdef __cplusplus | ||
14269 | extern "C" | ||
14270 | #endif | ||
14271 | char logwtmp (); | ||
14272 | int | ||
14273 | main () | ||
14274 | { | ||
14275 | return logwtmp (); | ||
14276 | ; | ||
14277 | return 0; | ||
14278 | } | ||
14279 | _ACEOF | ||
14280 | for ac_lib in '' util bsd; do | ||
14281 | if test -z "$ac_lib"; then | ||
14282 | ac_res="none required" | ||
14283 | else | ||
14284 | ac_res=-l$ac_lib | ||
14285 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14286 | fi | ||
14287 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14288 | if { (ac_try="$ac_link" | ||
14289 | case "(($ac_try" in | ||
14290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14291 | *) ac_try_echo=$ac_try;; | ||
14292 | esac | ||
14293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14294 | (eval "$ac_link") 2>conftest.er1 | ||
14295 | ac_status=$? | ||
14296 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14297 | rm -f conftest.er1 | ||
14298 | cat conftest.err >&5 | ||
14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14300 | (exit $ac_status); } && { | ||
14301 | test -z "$ac_c_werror_flag" || | ||
14302 | test ! -s conftest.err | ||
14303 | } && test -s conftest$ac_exeext && | ||
14304 | $as_test_x conftest$ac_exeext; then | ||
14305 | ac_cv_search_logwtmp=$ac_res | ||
14306 | else | ||
14307 | echo "$as_me: failed program was:" >&5 | ||
14308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14309 | |||
14310 | |||
14311 | fi | ||
14312 | |||
14313 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14314 | conftest$ac_exeext | ||
14315 | if test "${ac_cv_search_logwtmp+set}" = set; then | ||
14316 | break | ||
14317 | fi | ||
14318 | done | ||
14319 | if test "${ac_cv_search_logwtmp+set}" = set; then | ||
14320 | : | ||
14321 | else | ||
14322 | ac_cv_search_logwtmp=no | ||
14323 | fi | ||
14324 | rm conftest.$ac_ext | ||
14325 | LIBS=$ac_func_search_save_LIBS | ||
14326 | fi | ||
14327 | { echo "$as_me:$LINENO: result: $ac_cv_search_logwtmp" >&5 | ||
14328 | echo "${ECHO_T}$ac_cv_search_logwtmp" >&6; } | ||
14329 | ac_res=$ac_cv_search_logwtmp | ||
14330 | if test "$ac_res" != no; then | ||
14331 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14332 | |||
14333 | fi | ||
14334 | |||
14335 | { echo "$as_me:$LINENO: checking for library containing openpty" >&5 | ||
14336 | echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; } | ||
14337 | if test "${ac_cv_search_openpty+set}" = set; then | ||
14338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14339 | else | ||
14340 | ac_func_search_save_LIBS=$LIBS | ||
14341 | cat >conftest.$ac_ext <<_ACEOF | ||
14342 | /* confdefs.h. */ | ||
14343 | _ACEOF | ||
14344 | cat confdefs.h >>conftest.$ac_ext | ||
14345 | cat >>conftest.$ac_ext <<_ACEOF | ||
14346 | /* end confdefs.h. */ | ||
14347 | |||
14348 | /* Override any GCC internal prototype to avoid an error. | ||
14349 | Use char because int might match the return type of a GCC | ||
14350 | builtin and then its argument prototype would still apply. */ | ||
14351 | #ifdef __cplusplus | ||
14352 | extern "C" | ||
14353 | #endif | ||
14354 | char openpty (); | ||
14355 | int | ||
14356 | main () | ||
14357 | { | ||
14358 | return openpty (); | ||
14359 | ; | ||
14360 | return 0; | ||
14361 | } | ||
14362 | _ACEOF | ||
14363 | for ac_lib in '' util bsd; do | ||
14364 | if test -z "$ac_lib"; then | ||
14365 | ac_res="none required" | ||
14366 | else | ||
14367 | ac_res=-l$ac_lib | ||
14368 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14369 | fi | ||
14370 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14371 | if { (ac_try="$ac_link" | ||
14372 | case "(($ac_try" in | ||
14373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14374 | *) ac_try_echo=$ac_try;; | ||
14375 | esac | ||
14376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14377 | (eval "$ac_link") 2>conftest.er1 | ||
14378 | ac_status=$? | ||
14379 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14380 | rm -f conftest.er1 | ||
14381 | cat conftest.err >&5 | ||
14382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14383 | (exit $ac_status); } && { | ||
14384 | test -z "$ac_c_werror_flag" || | ||
14385 | test ! -s conftest.err | ||
14386 | } && test -s conftest$ac_exeext && | ||
14387 | $as_test_x conftest$ac_exeext; then | ||
14388 | ac_cv_search_openpty=$ac_res | ||
14389 | else | ||
14390 | echo "$as_me: failed program was:" >&5 | ||
14391 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14392 | |||
14393 | |||
14394 | fi | ||
14395 | |||
14396 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14397 | conftest$ac_exeext | ||
14398 | if test "${ac_cv_search_openpty+set}" = set; then | ||
14399 | break | ||
14400 | fi | ||
14401 | done | ||
14402 | if test "${ac_cv_search_openpty+set}" = set; then | ||
14403 | : | ||
14404 | else | ||
14405 | ac_cv_search_openpty=no | ||
14406 | fi | ||
14407 | rm conftest.$ac_ext | ||
14408 | LIBS=$ac_func_search_save_LIBS | ||
14409 | fi | ||
14410 | { echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5 | ||
14411 | echo "${ECHO_T}$ac_cv_search_openpty" >&6; } | ||
14412 | ac_res=$ac_cv_search_openpty | ||
14413 | if test "$ac_res" != no; then | ||
14414 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14415 | |||
14416 | fi | ||
14417 | |||
14418 | { echo "$as_me:$LINENO: checking for library containing updwtmp" >&5 | ||
14419 | echo $ECHO_N "checking for library containing updwtmp... $ECHO_C" >&6; } | ||
14420 | if test "${ac_cv_search_updwtmp+set}" = set; then | ||
14421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14422 | else | ||
14423 | ac_func_search_save_LIBS=$LIBS | ||
14424 | cat >conftest.$ac_ext <<_ACEOF | ||
14425 | /* confdefs.h. */ | ||
14426 | _ACEOF | ||
14427 | cat confdefs.h >>conftest.$ac_ext | ||
14428 | cat >>conftest.$ac_ext <<_ACEOF | ||
14429 | /* end confdefs.h. */ | ||
14430 | |||
14431 | /* Override any GCC internal prototype to avoid an error. | ||
14432 | Use char because int might match the return type of a GCC | ||
14433 | builtin and then its argument prototype would still apply. */ | ||
14434 | #ifdef __cplusplus | ||
14435 | extern "C" | ||
14436 | #endif | ||
14437 | char updwtmp (); | ||
14438 | int | ||
14439 | main () | ||
14440 | { | ||
14441 | return updwtmp (); | ||
14442 | ; | ||
14443 | return 0; | ||
14444 | } | ||
14445 | _ACEOF | ||
14446 | for ac_lib in '' util bsd; do | ||
14447 | if test -z "$ac_lib"; then | ||
14448 | ac_res="none required" | ||
14449 | else | ||
14450 | ac_res=-l$ac_lib | ||
14451 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14452 | fi | ||
14453 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14454 | if { (ac_try="$ac_link" | ||
14455 | case "(($ac_try" in | ||
14456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14457 | *) ac_try_echo=$ac_try;; | ||
14458 | esac | ||
14459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14460 | (eval "$ac_link") 2>conftest.er1 | ||
14461 | ac_status=$? | ||
14462 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14463 | rm -f conftest.er1 | ||
14464 | cat conftest.err >&5 | ||
14465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14466 | (exit $ac_status); } && { | ||
14467 | test -z "$ac_c_werror_flag" || | ||
14468 | test ! -s conftest.err | ||
14469 | } && test -s conftest$ac_exeext && | ||
14470 | $as_test_x conftest$ac_exeext; then | ||
14471 | ac_cv_search_updwtmp=$ac_res | ||
14472 | else | ||
14473 | echo "$as_me: failed program was:" >&5 | ||
14474 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14475 | |||
14476 | |||
14477 | fi | ||
14478 | |||
14479 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14480 | conftest$ac_exeext | ||
14481 | if test "${ac_cv_search_updwtmp+set}" = set; then | ||
14482 | break | ||
14483 | fi | ||
14484 | done | ||
14485 | if test "${ac_cv_search_updwtmp+set}" = set; then | ||
14486 | : | ||
14487 | else | ||
14488 | ac_cv_search_updwtmp=no | ||
14489 | fi | ||
14490 | rm conftest.$ac_ext | ||
14491 | LIBS=$ac_func_search_save_LIBS | ||
14492 | fi | ||
14493 | { echo "$as_me:$LINENO: result: $ac_cv_search_updwtmp" >&5 | ||
14494 | echo "${ECHO_T}$ac_cv_search_updwtmp" >&6; } | ||
14495 | ac_res=$ac_cv_search_updwtmp | ||
14496 | if test "$ac_res" != no; then | ||
14497 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14498 | |||
14499 | fi | ||
14500 | |||
14501 | |||
14502 | |||
14503 | |||
14504 | |||
14505 | |||
14506 | |||
14507 | |||
14508 | for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp | ||
14509 | do | ||
14510 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14511 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14512 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14513 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14515 | else | ||
14516 | cat >conftest.$ac_ext <<_ACEOF | ||
14517 | /* confdefs.h. */ | ||
14518 | _ACEOF | ||
14519 | cat confdefs.h >>conftest.$ac_ext | ||
14520 | cat >>conftest.$ac_ext <<_ACEOF | ||
14521 | /* end confdefs.h. */ | ||
14522 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14523 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14524 | #define $ac_func innocuous_$ac_func | ||
14525 | |||
14526 | /* System header to define __stub macros and hopefully few prototypes, | ||
14527 | which can conflict with char $ac_func (); below. | ||
14528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14529 | <limits.h> exists even on freestanding compilers. */ | ||
14530 | |||
14531 | #ifdef __STDC__ | ||
14532 | # include <limits.h> | ||
14533 | #else | ||
14534 | # include <assert.h> | ||
14535 | #endif | ||
14536 | |||
14537 | #undef $ac_func | ||
14538 | |||
14539 | /* Override any GCC internal prototype to avoid an error. | ||
14540 | Use char because int might match the return type of a GCC | ||
14541 | builtin and then its argument prototype would still apply. */ | ||
14542 | #ifdef __cplusplus | ||
14543 | extern "C" | ||
14544 | #endif | ||
14545 | char $ac_func (); | ||
14546 | /* The GNU C library defines this for functions which it implements | ||
14547 | to always fail with ENOSYS. Some functions are actually named | ||
14548 | something starting with __ and the normal name is an alias. */ | ||
14549 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14550 | choke me | ||
14551 | #endif | ||
14552 | |||
14553 | int | ||
14554 | main () | ||
14555 | { | ||
14556 | return $ac_func (); | ||
14557 | ; | ||
14558 | return 0; | ||
14559 | } | ||
14560 | _ACEOF | ||
14561 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14562 | if { (ac_try="$ac_link" | ||
14563 | case "(($ac_try" in | ||
14564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14565 | *) ac_try_echo=$ac_try;; | ||
14566 | esac | ||
14567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14568 | (eval "$ac_link") 2>conftest.er1 | ||
14569 | ac_status=$? | ||
14570 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14571 | rm -f conftest.er1 | ||
14572 | cat conftest.err >&5 | ||
14573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14574 | (exit $ac_status); } && { | ||
14575 | test -z "$ac_c_werror_flag" || | ||
14576 | test ! -s conftest.err | ||
14577 | } && test -s conftest$ac_exeext && | ||
14578 | $as_test_x conftest$ac_exeext; then | ||
14579 | eval "$as_ac_var=yes" | ||
14580 | else | ||
14581 | echo "$as_me: failed program was:" >&5 | ||
14582 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14583 | |||
14584 | eval "$as_ac_var=no" | ||
14585 | fi | ||
14586 | |||
14587 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14588 | conftest$ac_exeext conftest.$ac_ext | ||
14589 | fi | ||
14590 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14591 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14592 | echo "${ECHO_T}$ac_res" >&6; } | ||
14593 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14594 | cat >>confdefs.h <<_ACEOF | ||
14595 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14596 | _ACEOF | ||
14597 | |||
14598 | fi | ||
14599 | done | ||
14600 | |||
14601 | |||
14602 | # On some platforms, inet_ntop may be found in libresolv or libnsl. | ||
14603 | { echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5 | ||
14604 | echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; } | ||
14605 | if test "${ac_cv_search_inet_ntop+set}" = set; then | ||
14606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14607 | else | ||
14608 | ac_func_search_save_LIBS=$LIBS | ||
14609 | cat >conftest.$ac_ext <<_ACEOF | ||
14610 | /* confdefs.h. */ | ||
14611 | _ACEOF | ||
14612 | cat confdefs.h >>conftest.$ac_ext | ||
14613 | cat >>conftest.$ac_ext <<_ACEOF | ||
14614 | /* end confdefs.h. */ | ||
14615 | |||
14616 | /* Override any GCC internal prototype to avoid an error. | ||
14617 | Use char because int might match the return type of a GCC | ||
14618 | builtin and then its argument prototype would still apply. */ | ||
14619 | #ifdef __cplusplus | ||
14620 | extern "C" | ||
14621 | #endif | ||
14622 | char inet_ntop (); | ||
14623 | int | ||
14624 | main () | ||
14625 | { | ||
14626 | return inet_ntop (); | ||
14627 | ; | ||
14628 | return 0; | ||
14629 | } | ||
14630 | _ACEOF | ||
14631 | for ac_lib in '' resolv nsl; do | ||
14632 | if test -z "$ac_lib"; then | ||
14633 | ac_res="none required" | ||
14634 | else | ||
14635 | ac_res=-l$ac_lib | ||
14636 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14637 | fi | ||
14638 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14639 | if { (ac_try="$ac_link" | ||
14640 | case "(($ac_try" in | ||
14641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14642 | *) ac_try_echo=$ac_try;; | ||
14643 | esac | ||
14644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14645 | (eval "$ac_link") 2>conftest.er1 | ||
14646 | ac_status=$? | ||
14647 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14648 | rm -f conftest.er1 | ||
14649 | cat conftest.err >&5 | ||
14650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14651 | (exit $ac_status); } && { | ||
14652 | test -z "$ac_c_werror_flag" || | ||
14653 | test ! -s conftest.err | ||
14654 | } && test -s conftest$ac_exeext && | ||
14655 | $as_test_x conftest$ac_exeext; then | ||
14656 | ac_cv_search_inet_ntop=$ac_res | ||
14657 | else | ||
14658 | echo "$as_me: failed program was:" >&5 | ||
14659 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14660 | |||
14661 | |||
14662 | fi | ||
14663 | |||
14664 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14665 | conftest$ac_exeext | ||
14666 | if test "${ac_cv_search_inet_ntop+set}" = set; then | ||
14667 | break | ||
14668 | fi | ||
14669 | done | ||
14670 | if test "${ac_cv_search_inet_ntop+set}" = set; then | ||
14671 | : | ||
14672 | else | ||
14673 | ac_cv_search_inet_ntop=no | ||
14674 | fi | ||
14675 | rm conftest.$ac_ext | ||
14676 | LIBS=$ac_func_search_save_LIBS | ||
14677 | fi | ||
14678 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5 | ||
14679 | echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; } | ||
14680 | ac_res=$ac_cv_search_inet_ntop | ||
14681 | if test "$ac_res" != no; then | ||
14682 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14683 | |||
14684 | fi | ||
14685 | |||
14686 | |||
14687 | |||
14688 | for ac_func in strftime | ||
14689 | do | ||
14690 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14691 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14692 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14693 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14695 | else | ||
14696 | cat >conftest.$ac_ext <<_ACEOF | ||
14697 | /* confdefs.h. */ | ||
14698 | _ACEOF | ||
14699 | cat confdefs.h >>conftest.$ac_ext | ||
14700 | cat >>conftest.$ac_ext <<_ACEOF | ||
14701 | /* end confdefs.h. */ | ||
14702 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14703 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14704 | #define $ac_func innocuous_$ac_func | ||
14705 | |||
14706 | /* System header to define __stub macros and hopefully few prototypes, | ||
14707 | which can conflict with char $ac_func (); below. | ||
14708 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14709 | <limits.h> exists even on freestanding compilers. */ | ||
14710 | |||
14711 | #ifdef __STDC__ | ||
14712 | # include <limits.h> | ||
14713 | #else | ||
14714 | # include <assert.h> | ||
14715 | #endif | ||
14716 | |||
14717 | #undef $ac_func | ||
14718 | |||
14719 | /* Override any GCC internal prototype to avoid an error. | ||
14720 | Use char because int might match the return type of a GCC | ||
14721 | builtin and then its argument prototype would still apply. */ | ||
14722 | #ifdef __cplusplus | ||
14723 | extern "C" | ||
14724 | #endif | ||
14725 | char $ac_func (); | ||
14726 | /* The GNU C library defines this for functions which it implements | ||
14727 | to always fail with ENOSYS. Some functions are actually named | ||
14728 | something starting with __ and the normal name is an alias. */ | ||
14729 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14730 | choke me | ||
14731 | #endif | ||
14732 | |||
14733 | int | ||
14734 | main () | ||
14735 | { | ||
14736 | return $ac_func (); | ||
14737 | ; | ||
14738 | return 0; | ||
14739 | } | ||
14740 | _ACEOF | ||
14741 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14742 | if { (ac_try="$ac_link" | ||
14743 | case "(($ac_try" in | ||
14744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14745 | *) ac_try_echo=$ac_try;; | ||
14746 | esac | ||
14747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14748 | (eval "$ac_link") 2>conftest.er1 | ||
14749 | ac_status=$? | ||
14750 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14751 | rm -f conftest.er1 | ||
14752 | cat conftest.err >&5 | ||
14753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14754 | (exit $ac_status); } && { | ||
14755 | test -z "$ac_c_werror_flag" || | ||
14756 | test ! -s conftest.err | ||
14757 | } && test -s conftest$ac_exeext && | ||
14758 | $as_test_x conftest$ac_exeext; then | ||
14759 | eval "$as_ac_var=yes" | ||
14760 | else | ||
14761 | echo "$as_me: failed program was:" >&5 | ||
14762 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14763 | |||
14764 | eval "$as_ac_var=no" | ||
14765 | fi | ||
14766 | |||
14767 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14768 | conftest$ac_exeext conftest.$ac_ext | ||
14769 | fi | ||
14770 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14771 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14772 | echo "${ECHO_T}$ac_res" >&6; } | ||
14773 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14774 | cat >>confdefs.h <<_ACEOF | ||
14775 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14776 | _ACEOF | ||
14777 | |||
14778 | else | ||
14779 | # strftime is in -lintl on SCO UNIX. | ||
14780 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
14781 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | ||
14782 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
14783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14784 | else | ||
14785 | ac_check_lib_save_LIBS=$LIBS | ||
14786 | LIBS="-lintl $LIBS" | ||
14787 | cat >conftest.$ac_ext <<_ACEOF | ||
14788 | /* confdefs.h. */ | ||
14789 | _ACEOF | ||
14790 | cat confdefs.h >>conftest.$ac_ext | ||
14791 | cat >>conftest.$ac_ext <<_ACEOF | ||
14792 | /* end confdefs.h. */ | ||
14793 | |||
14794 | /* Override any GCC internal prototype to avoid an error. | ||
14795 | Use char because int might match the return type of a GCC | ||
14796 | builtin and then its argument prototype would still apply. */ | ||
14797 | #ifdef __cplusplus | ||
14798 | extern "C" | ||
14799 | #endif | ||
14800 | char strftime (); | ||
14801 | int | ||
14802 | main () | ||
14803 | { | ||
14804 | return strftime (); | ||
14805 | ; | ||
14806 | return 0; | ||
14807 | } | ||
14808 | _ACEOF | ||
14809 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14810 | if { (ac_try="$ac_link" | ||
14811 | case "(($ac_try" in | ||
14812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14813 | *) ac_try_echo=$ac_try;; | ||
14814 | esac | ||
14815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14816 | (eval "$ac_link") 2>conftest.er1 | ||
14817 | ac_status=$? | ||
14818 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14819 | rm -f conftest.er1 | ||
14820 | cat conftest.err >&5 | ||
14821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14822 | (exit $ac_status); } && { | ||
14823 | test -z "$ac_c_werror_flag" || | ||
14824 | test ! -s conftest.err | ||
14825 | } && test -s conftest$ac_exeext && | ||
14826 | $as_test_x conftest$ac_exeext; then | ||
14827 | ac_cv_lib_intl_strftime=yes | ||
14828 | else | ||
14829 | echo "$as_me: failed program was:" >&5 | ||
14830 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14831 | |||
14832 | ac_cv_lib_intl_strftime=no | ||
14833 | fi | ||
14834 | |||
14835 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14836 | conftest$ac_exeext conftest.$ac_ext | ||
14837 | LIBS=$ac_check_lib_save_LIBS | ||
14838 | fi | ||
14839 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
14840 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | ||
14841 | if test $ac_cv_lib_intl_strftime = yes; then | ||
14842 | cat >>confdefs.h <<\_ACEOF | ||
14843 | #define HAVE_STRFTIME 1 | ||
14844 | _ACEOF | ||
14845 | |||
14846 | LIBS="-lintl $LIBS" | ||
14847 | fi | ||
14848 | |||
14849 | fi | ||
14850 | done | ||
14851 | |||
14852 | |||
14853 | # Check for ALTDIRFUNC glob() extension | ||
14854 | { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
14855 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; } | ||
14856 | cat >conftest.$ac_ext <<_ACEOF | ||
14857 | /* confdefs.h. */ | ||
14858 | _ACEOF | ||
14859 | cat confdefs.h >>conftest.$ac_ext | ||
14860 | cat >>conftest.$ac_ext <<_ACEOF | ||
14861 | /* end confdefs.h. */ | ||
14862 | |||
14863 | #include <glob.h> | ||
14864 | #ifdef GLOB_ALTDIRFUNC | ||
14865 | FOUNDIT | ||
14866 | #endif | ||
14867 | |||
14868 | _ACEOF | ||
14869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14870 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
14871 | |||
14872 | |||
14873 | cat >>confdefs.h <<\_ACEOF | ||
14874 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
14875 | _ACEOF | ||
14876 | |||
14877 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14878 | echo "${ECHO_T}yes" >&6; } | ||
14879 | |||
14880 | else | ||
14881 | |||
14882 | { echo "$as_me:$LINENO: result: no" >&5 | ||
14883 | echo "${ECHO_T}no" >&6; } | ||
14884 | |||
14885 | |||
14886 | fi | ||
14887 | rm -f conftest* | ||
14888 | |||
14889 | |||
14890 | # Check for g.gl_matchc glob() extension | ||
14891 | { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
14892 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; } | ||
14893 | cat >conftest.$ac_ext <<_ACEOF | ||
14894 | /* confdefs.h. */ | ||
14895 | _ACEOF | ||
14896 | cat confdefs.h >>conftest.$ac_ext | ||
14897 | cat >>conftest.$ac_ext <<_ACEOF | ||
14898 | /* end confdefs.h. */ | ||
14899 | #include <glob.h> | ||
14900 | int | ||
14901 | main () | ||
14902 | { | ||
14903 | glob_t g; g.gl_matchc = 1; | ||
14904 | ; | ||
14905 | return 0; | ||
14906 | } | ||
14907 | _ACEOF | ||
14908 | rm -f conftest.$ac_objext | ||
14909 | if { (ac_try="$ac_compile" | ||
14910 | case "(($ac_try" in | ||
14911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14912 | *) ac_try_echo=$ac_try;; | ||
14913 | esac | ||
14914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14915 | (eval "$ac_compile") 2>conftest.er1 | ||
14916 | ac_status=$? | ||
14917 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14918 | rm -f conftest.er1 | ||
14919 | cat conftest.err >&5 | ||
14920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14921 | (exit $ac_status); } && { | ||
14922 | test -z "$ac_c_werror_flag" || | ||
14923 | test ! -s conftest.err | ||
14924 | } && test -s conftest.$ac_objext; then | ||
14925 | |||
14926 | |||
14927 | cat >>confdefs.h <<\_ACEOF | ||
14928 | #define GLOB_HAS_GL_MATCHC 1 | ||
14929 | _ACEOF | ||
14930 | |||
14931 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14932 | echo "${ECHO_T}yes" >&6; } | ||
14933 | |||
14934 | else | ||
14935 | echo "$as_me: failed program was:" >&5 | ||
14936 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14937 | |||
14938 | |||
14939 | { echo "$as_me:$LINENO: result: no" >&5 | ||
14940 | echo "${ECHO_T}no" >&6; } | ||
14941 | |||
14942 | fi | ||
14943 | |||
14944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14945 | |||
14946 | # Check for g.gl_statv glob() extension | ||
14947 | { echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 | ||
14948 | echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; } | ||
14949 | cat >conftest.$ac_ext <<_ACEOF | ||
14950 | /* confdefs.h. */ | ||
14951 | _ACEOF | ||
14952 | cat confdefs.h >>conftest.$ac_ext | ||
14953 | cat >>conftest.$ac_ext <<_ACEOF | ||
14954 | /* end confdefs.h. */ | ||
14955 | #include <glob.h> | ||
14956 | int | ||
14957 | main () | ||
14958 | { | ||
14959 | |||
14960 | #ifndef GLOB_KEEPSTAT | ||
14961 | #error "glob does not support GLOB_KEEPSTAT extension" | ||
14962 | #endif | ||
14963 | glob_t g; | ||
14964 | g.gl_statv = NULL; | ||
14965 | |||
14966 | ; | ||
14967 | return 0; | ||
14968 | } | ||
14969 | _ACEOF | ||
14970 | rm -f conftest.$ac_objext | ||
14971 | if { (ac_try="$ac_compile" | ||
14972 | case "(($ac_try" in | ||
14973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14974 | *) ac_try_echo=$ac_try;; | ||
14975 | esac | ||
14976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14977 | (eval "$ac_compile") 2>conftest.er1 | ||
14978 | ac_status=$? | ||
14979 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14980 | rm -f conftest.er1 | ||
14981 | cat conftest.err >&5 | ||
14982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14983 | (exit $ac_status); } && { | ||
14984 | test -z "$ac_c_werror_flag" || | ||
14985 | test ! -s conftest.err | ||
14986 | } && test -s conftest.$ac_objext; then | ||
14987 | |||
14988 | |||
14989 | cat >>confdefs.h <<\_ACEOF | ||
14990 | #define GLOB_HAS_GL_STATV 1 | ||
14991 | _ACEOF | ||
14992 | |||
14993 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14994 | echo "${ECHO_T}yes" >&6; } | ||
14995 | |||
14996 | else | ||
14997 | echo "$as_me: failed program was:" >&5 | ||
14998 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14999 | |||
15000 | |||
15001 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15002 | echo "${ECHO_T}no" >&6; } | ||
15003 | |||
15004 | |||
15005 | fi | ||
15006 | |||
15007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15008 | |||
15009 | { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 | ||
15010 | echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; } | ||
15011 | if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then | ||
15012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15013 | else | ||
15014 | cat >conftest.$ac_ext <<_ACEOF | ||
15015 | /* confdefs.h. */ | ||
15016 | _ACEOF | ||
15017 | cat confdefs.h >>conftest.$ac_ext | ||
15018 | cat >>conftest.$ac_ext <<_ACEOF | ||
15019 | /* end confdefs.h. */ | ||
15020 | #include <glob.h> | ||
15021 | |||
15022 | int | ||
15023 | main () | ||
15024 | { | ||
15025 | #ifndef GLOB_NOMATCH | ||
15026 | (void) GLOB_NOMATCH; | ||
15027 | #endif | ||
15028 | |||
15029 | ; | ||
15030 | return 0; | ||
15031 | } | ||
15032 | _ACEOF | ||
15033 | rm -f conftest.$ac_objext | ||
15034 | if { (ac_try="$ac_compile" | ||
15035 | case "(($ac_try" in | ||
15036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15037 | *) ac_try_echo=$ac_try;; | ||
15038 | esac | ||
15039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15040 | (eval "$ac_compile") 2>conftest.er1 | ||
15041 | ac_status=$? | ||
15042 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15043 | rm -f conftest.er1 | ||
15044 | cat conftest.err >&5 | ||
15045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15046 | (exit $ac_status); } && { | ||
15047 | test -z "$ac_c_werror_flag" || | ||
15048 | test ! -s conftest.err | ||
15049 | } && test -s conftest.$ac_objext; then | ||
15050 | ac_cv_have_decl_GLOB_NOMATCH=yes | ||
15051 | else | ||
15052 | echo "$as_me: failed program was:" >&5 | ||
15053 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15054 | |||
15055 | ac_cv_have_decl_GLOB_NOMATCH=no | ||
15056 | fi | ||
15057 | |||
15058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15059 | fi | ||
15060 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 | ||
15061 | echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; } | ||
15062 | if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then | ||
15063 | |||
15064 | cat >>confdefs.h <<_ACEOF | ||
15065 | #define HAVE_DECL_GLOB_NOMATCH 1 | ||
15066 | _ACEOF | ||
15067 | |||
15068 | |||
15069 | else | ||
15070 | cat >>confdefs.h <<_ACEOF | ||
15071 | #define HAVE_DECL_GLOB_NOMATCH 0 | ||
15072 | _ACEOF | ||
15073 | |||
15074 | |||
15075 | fi | ||
15076 | |||
15077 | |||
15078 | |||
15079 | { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
15080 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; } | ||
15081 | if test "$cross_compiling" = yes; then | ||
15082 | |||
15083 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
15084 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
15085 | cat >>confdefs.h <<\_ACEOF | ||
15086 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
15087 | _ACEOF | ||
15088 | |||
15089 | |||
15090 | |||
15091 | else | ||
15092 | cat >conftest.$ac_ext <<_ACEOF | ||
15093 | /* confdefs.h. */ | ||
15094 | _ACEOF | ||
15095 | cat confdefs.h >>conftest.$ac_ext | ||
15096 | cat >>conftest.$ac_ext <<_ACEOF | ||
15097 | /* end confdefs.h. */ | ||
15098 | |||
15099 | #include <sys/types.h> | ||
15100 | #include <dirent.h> | ||
15101 | int | ||
15102 | main () | ||
15103 | { | ||
15104 | |||
15105 | struct dirent d; | ||
15106 | exit(sizeof(d.d_name)<=sizeof(char)); | ||
15107 | |||
15108 | ; | ||
15109 | return 0; | ||
15110 | } | ||
15111 | _ACEOF | ||
15112 | rm -f conftest$ac_exeext | ||
15113 | if { (ac_try="$ac_link" | ||
15114 | case "(($ac_try" in | ||
15115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15116 | *) ac_try_echo=$ac_try;; | ||
15117 | esac | ||
15118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15119 | (eval "$ac_link") 2>&5 | ||
15120 | ac_status=$? | ||
15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15122 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15123 | { (case "(($ac_try" in | ||
15124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15125 | *) ac_try_echo=$ac_try;; | ||
15126 | esac | ||
15127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15128 | (eval "$ac_try") 2>&5 | ||
15129 | ac_status=$? | ||
15130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15131 | (exit $ac_status); }; }; then | ||
15132 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15133 | echo "${ECHO_T}yes" >&6; } | ||
15134 | else | ||
15135 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15136 | echo "$as_me: failed program was:" >&5 | ||
15137 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15138 | |||
15139 | ( exit $ac_status ) | ||
15140 | |||
15141 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15142 | echo "${ECHO_T}no" >&6; } | ||
15143 | |||
15144 | cat >>confdefs.h <<\_ACEOF | ||
15145 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
15146 | _ACEOF | ||
15147 | |||
15148 | |||
15149 | fi | ||
15150 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15151 | fi | ||
15152 | |||
15153 | |||
15154 | |||
15155 | { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
15156 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; } | ||
15157 | if test -d "/proc/$$/fd" ; then | ||
15158 | |||
15159 | cat >>confdefs.h <<\_ACEOF | ||
15160 | #define HAVE_PROC_PID 1 | ||
15161 | _ACEOF | ||
15162 | |||
15163 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15164 | echo "${ECHO_T}yes" >&6; } | ||
15165 | else | ||
15166 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15167 | echo "${ECHO_T}no" >&6; } | ||
15168 | fi | ||
15169 | |||
15170 | # Check whether user wants S/Key support | ||
15171 | SKEY_MSG="no" | ||
15172 | |||
15173 | # Check whether --with-skey was given. | ||
15174 | if test "${with_skey+set}" = set; then | ||
15175 | withval=$with_skey; | ||
15176 | if test "x$withval" != "xno" ; then | ||
15177 | |||
15178 | if test "x$withval" != "xyes" ; then | ||
15179 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15180 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
15181 | fi | ||
15182 | |||
15183 | |||
15184 | cat >>confdefs.h <<\_ACEOF | ||
15185 | #define SKEY 1 | ||
15186 | _ACEOF | ||
15187 | |||
15188 | LIBS="-lskey $LIBS" | ||
15189 | SKEY_MSG="yes" | ||
15190 | |||
15191 | { echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
15192 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; } | ||
15193 | cat >conftest.$ac_ext <<_ACEOF | ||
15194 | /* confdefs.h. */ | ||
15195 | _ACEOF | ||
15196 | cat confdefs.h >>conftest.$ac_ext | ||
15197 | cat >>conftest.$ac_ext <<_ACEOF | ||
15198 | /* end confdefs.h. */ | ||
15199 | |||
15200 | #include <stdio.h> | ||
15201 | #include <skey.h> | ||
15202 | |||
15203 | int | ||
15204 | main () | ||
15205 | { | ||
15206 | |||
15207 | char *ff = skey_keyinfo(""); ff=""; | ||
15208 | exit(0); | ||
15209 | |||
15210 | ; | ||
15211 | return 0; | ||
15212 | } | ||
15213 | _ACEOF | ||
15214 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15215 | if { (ac_try="$ac_link" | ||
15216 | case "(($ac_try" in | ||
15217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15218 | *) ac_try_echo=$ac_try;; | ||
15219 | esac | ||
15220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15221 | (eval "$ac_link") 2>conftest.er1 | ||
15222 | ac_status=$? | ||
15223 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15224 | rm -f conftest.er1 | ||
15225 | cat conftest.err >&5 | ||
15226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15227 | (exit $ac_status); } && { | ||
15228 | test -z "$ac_c_werror_flag" || | ||
15229 | test ! -s conftest.err | ||
15230 | } && test -s conftest$ac_exeext && | ||
15231 | $as_test_x conftest$ac_exeext; then | ||
15232 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15233 | echo "${ECHO_T}yes" >&6; } | ||
15234 | else | ||
15235 | echo "$as_me: failed program was:" >&5 | ||
15236 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15237 | |||
15238 | |||
15239 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15240 | echo "${ECHO_T}no" >&6; } | ||
15241 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
15242 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
15243 | { (exit 1); exit 1; }; } | ||
15244 | |||
15245 | fi | ||
15246 | |||
15247 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15248 | conftest$ac_exeext conftest.$ac_ext | ||
15249 | { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
15250 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; } | ||
15251 | cat >conftest.$ac_ext <<_ACEOF | ||
15252 | /* confdefs.h. */ | ||
15253 | _ACEOF | ||
15254 | cat confdefs.h >>conftest.$ac_ext | ||
15255 | cat >>conftest.$ac_ext <<_ACEOF | ||
15256 | /* end confdefs.h. */ | ||
15257 | |||
15258 | #include <stdio.h> | ||
15259 | #include <skey.h> | ||
15260 | |||
15261 | int | ||
15262 | main () | ||
15263 | { | ||
15264 | |||
15265 | (void)skeychallenge(NULL,"name","",0); | ||
15266 | |||
15267 | ; | ||
15268 | return 0; | ||
15269 | } | ||
15270 | _ACEOF | ||
15271 | rm -f conftest.$ac_objext | ||
15272 | if { (ac_try="$ac_compile" | ||
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_compile") 2>conftest.er1 | ||
15279 | ac_status=$? | ||
15280 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15281 | rm -f conftest.er1 | ||
15282 | cat conftest.err >&5 | ||
15283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15284 | (exit $ac_status); } && { | ||
15285 | test -z "$ac_c_werror_flag" || | ||
15286 | test ! -s conftest.err | ||
15287 | } && test -s conftest.$ac_objext; then | ||
15288 | |||
15289 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15290 | echo "${ECHO_T}yes" >&6; } | ||
15291 | |||
15292 | cat >>confdefs.h <<\_ACEOF | ||
15293 | #define SKEYCHALLENGE_4ARG 1 | ||
15294 | _ACEOF | ||
15295 | |||
15296 | else | ||
15297 | echo "$as_me: failed program was:" >&5 | ||
15298 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15299 | |||
15300 | |||
15301 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15302 | echo "${ECHO_T}no" >&6; } | ||
15303 | |||
15304 | fi | ||
15305 | |||
15306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15307 | fi | ||
15308 | |||
15309 | |||
15310 | fi | ||
15311 | |||
15312 | |||
15313 | # Check whether user wants to use ldns | ||
15314 | LDNS_MSG="no" | ||
15315 | |||
15316 | # Check whether --with-ldns was given. | ||
15317 | if test "${with_ldns+set}" = set; then | ||
15318 | withval=$with_ldns; | ||
15319 | if test "x$withval" != "xno" ; then | ||
15320 | |||
15321 | if test "x$withval" != "xyes" ; then | ||
15322 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15323 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
15324 | fi | ||
15325 | |||
15326 | |||
15327 | cat >>confdefs.h <<\_ACEOF | ||
15328 | #define HAVE_LDNS 1 | ||
15329 | _ACEOF | ||
15330 | |||
15331 | LIBS="-lldns $LIBS" | ||
15332 | LDNS_MSG="yes" | ||
15333 | |||
15334 | { echo "$as_me:$LINENO: checking for ldns support" >&5 | ||
15335 | echo $ECHO_N "checking for ldns support... $ECHO_C" >&6; } | ||
15336 | cat >conftest.$ac_ext <<_ACEOF | ||
15337 | /* confdefs.h. */ | ||
15338 | _ACEOF | ||
15339 | cat confdefs.h >>conftest.$ac_ext | ||
15340 | cat >>conftest.$ac_ext <<_ACEOF | ||
15341 | /* end confdefs.h. */ | ||
15342 | |||
15343 | #include <stdio.h> | ||
15344 | #include <stdlib.h> | ||
15345 | #include <stdint.h> | ||
15346 | #include <ldns/ldns.h> | ||
15347 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } | ||
15348 | |||
15349 | |||
15350 | _ACEOF | ||
15351 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15352 | if { (ac_try="$ac_link" | ||
15353 | case "(($ac_try" in | ||
15354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15355 | *) ac_try_echo=$ac_try;; | ||
15356 | esac | ||
15357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15358 | (eval "$ac_link") 2>conftest.er1 | ||
15359 | ac_status=$? | ||
15360 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15361 | rm -f conftest.er1 | ||
15362 | cat conftest.err >&5 | ||
15363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15364 | (exit $ac_status); } && { | ||
15365 | test -z "$ac_c_werror_flag" || | ||
15366 | test ! -s conftest.err | ||
15367 | } && test -s conftest$ac_exeext && | ||
15368 | $as_test_x conftest$ac_exeext; then | ||
15369 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15370 | echo "${ECHO_T}yes" >&6; } | ||
15371 | else | ||
15372 | echo "$as_me: failed program was:" >&5 | ||
15373 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15374 | |||
15375 | |||
15376 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15377 | echo "${ECHO_T}no" >&6; } | ||
15378 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing ldns libraries." >&5 | ||
15379 | echo "$as_me: error: ** Incomplete or missing ldns libraries." >&2;} | ||
15380 | { (exit 1); exit 1; }; } | ||
15381 | |||
15382 | fi | ||
15383 | |||
15384 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15385 | conftest$ac_exeext conftest.$ac_ext | ||
15386 | fi | ||
15387 | |||
15388 | |||
15389 | fi | ||
15390 | |||
15391 | |||
15392 | # Check whether user wants libedit support | ||
15393 | LIBEDIT_MSG="no" | ||
15394 | |||
15395 | # Check whether --with-libedit was given. | ||
15396 | if test "${with_libedit+set}" = set; then | ||
15397 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
15398 | if test "x$withval" = "xyes" ; then | ||
15399 | if test -n "$ac_tool_prefix"; then | ||
15400 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
15401 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
15402 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15403 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
15404 | if test "${ac_cv_path_PKGCONFIG+set}" = set; then | ||
15405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15406 | else | ||
15407 | case $PKGCONFIG in | ||
15408 | [\\/]* | ?:[\\/]*) | ||
15409 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
15410 | ;; | ||
15411 | *) | ||
15412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15413 | for as_dir in $PATH | ||
15414 | do | ||
15415 | IFS=$as_save_IFS | ||
15416 | test -z "$as_dir" && as_dir=. | ||
15417 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15419 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
15420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15421 | break 2 | ||
15422 | fi | ||
15423 | done | ||
15424 | done | ||
15425 | IFS=$as_save_IFS | ||
15426 | |||
15427 | ;; | ||
15428 | esac | ||
15429 | fi | ||
15430 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
15431 | if test -n "$PKGCONFIG"; then | ||
15432 | { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5 | ||
15433 | echo "${ECHO_T}$PKGCONFIG" >&6; } | ||
15434 | else | ||
15435 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15436 | echo "${ECHO_T}no" >&6; } | ||
15437 | fi | ||
15438 | |||
15439 | |||
15440 | fi | ||
15441 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
15442 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
15443 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
15444 | set dummy pkg-config; ac_word=$2 | ||
15445 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
15447 | if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then | ||
15448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15449 | else | ||
15450 | case $ac_pt_PKGCONFIG in | ||
15451 | [\\/]* | ?:[\\/]*) | ||
15452 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
15453 | ;; | ||
15454 | *) | ||
15455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15456 | for as_dir in $PATH | ||
15457 | do | ||
15458 | IFS=$as_save_IFS | ||
15459 | test -z "$as_dir" && as_dir=. | ||
15460 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15462 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
15463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15464 | break 2 | ||
15465 | fi | ||
15466 | done | ||
15467 | done | ||
15468 | IFS=$as_save_IFS | ||
15469 | |||
15470 | ;; | ||
15471 | esac | ||
15472 | fi | ||
15473 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
15474 | if test -n "$ac_pt_PKGCONFIG"; then | ||
15475 | { echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5 | ||
15476 | echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; } | ||
15477 | else | ||
15478 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15479 | echo "${ECHO_T}no" >&6; } | ||
15480 | fi | ||
15481 | |||
15482 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
15483 | PKGCONFIG="no" | ||
15484 | else | ||
15485 | case $cross_compiling:$ac_tool_warned in | ||
15486 | yes:) | ||
15487 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
15488 | whose name does not start with the host triplet. If you think this | ||
15489 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
15490 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
15491 | whose name does not start with the host triplet. If you think this | ||
15492 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
15493 | ac_tool_warned=yes ;; | ||
15494 | esac | ||
15495 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
15496 | fi | ||
15497 | else | ||
15498 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
15499 | fi | ||
15500 | |||
15501 | if test "x$PKGCONFIG" != "xno"; then | ||
15502 | { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5 | ||
15503 | echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; } | ||
15504 | if "$PKGCONFIG" libedit; then | ||
15505 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15506 | echo "${ECHO_T}yes" >&6; } | ||
15507 | use_pkgconfig_for_libedit=yes | ||
15508 | else | ||
15509 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15510 | echo "${ECHO_T}no" >&6; } | ||
15511 | fi | ||
15512 | fi | ||
15513 | else | ||
15514 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15515 | if test -n "${need_dash_r}"; then | ||
15516 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
15517 | else | ||
15518 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
15519 | fi | ||
15520 | fi | ||
15521 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then | ||
15522 | LIBEDIT=`$PKGCONFIG --libs libedit` | ||
15523 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
15524 | else | ||
15525 | LIBEDIT="-ledit -lcurses" | ||
15526 | fi | ||
15527 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
15528 | { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
15529 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; } | ||
15530 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
15531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15532 | else | ||
15533 | ac_check_lib_save_LIBS=$LIBS | ||
15534 | LIBS="-ledit $OTHERLIBS | ||
15535 | $LIBS" | ||
15536 | cat >conftest.$ac_ext <<_ACEOF | ||
15537 | /* confdefs.h. */ | ||
15538 | _ACEOF | ||
15539 | cat confdefs.h >>conftest.$ac_ext | ||
15540 | cat >>conftest.$ac_ext <<_ACEOF | ||
15541 | /* end confdefs.h. */ | ||
15542 | |||
15543 | /* Override any GCC internal prototype to avoid an error. | ||
15544 | Use char because int might match the return type of a GCC | ||
15545 | builtin and then its argument prototype would still apply. */ | ||
15546 | #ifdef __cplusplus | ||
15547 | extern "C" | ||
15548 | #endif | ||
15549 | char el_init (); | ||
15550 | int | ||
15551 | main () | ||
15552 | { | ||
15553 | return el_init (); | ||
15554 | ; | ||
15555 | return 0; | ||
15556 | } | ||
15557 | _ACEOF | ||
15558 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15559 | if { (ac_try="$ac_link" | ||
15560 | case "(($ac_try" in | ||
15561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15562 | *) ac_try_echo=$ac_try;; | ||
15563 | esac | ||
15564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15565 | (eval "$ac_link") 2>conftest.er1 | ||
15566 | ac_status=$? | ||
15567 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15568 | rm -f conftest.er1 | ||
15569 | cat conftest.err >&5 | ||
15570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15571 | (exit $ac_status); } && { | ||
15572 | test -z "$ac_c_werror_flag" || | ||
15573 | test ! -s conftest.err | ||
15574 | } && test -s conftest$ac_exeext && | ||
15575 | $as_test_x conftest$ac_exeext; then | ||
15576 | ac_cv_lib_edit_el_init=yes | ||
15577 | else | ||
15578 | echo "$as_me: failed program was:" >&5 | ||
15579 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15580 | |||
15581 | ac_cv_lib_edit_el_init=no | ||
15582 | fi | ||
15583 | |||
15584 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15585 | conftest$ac_exeext conftest.$ac_ext | ||
15586 | LIBS=$ac_check_lib_save_LIBS | ||
15587 | fi | ||
15588 | { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
15589 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; } | ||
15590 | if test $ac_cv_lib_edit_el_init = yes; then | ||
15591 | |||
15592 | cat >>confdefs.h <<\_ACEOF | ||
15593 | #define USE_LIBEDIT 1 | ||
15594 | _ACEOF | ||
15595 | |||
15596 | LIBEDIT_MSG="yes" | ||
15597 | |||
15598 | |||
15599 | else | ||
15600 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
15601 | echo "$as_me: error: libedit not found" >&2;} | ||
15602 | { (exit 1); exit 1; }; } | ||
15603 | fi | ||
15604 | |||
15605 | { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
15606 | echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; } | ||
15607 | cat >conftest.$ac_ext <<_ACEOF | ||
15608 | /* confdefs.h. */ | ||
15609 | _ACEOF | ||
15610 | cat confdefs.h >>conftest.$ac_ext | ||
15611 | cat >>conftest.$ac_ext <<_ACEOF | ||
15612 | /* end confdefs.h. */ | ||
15613 | #include <histedit.h> | ||
15614 | int | ||
15615 | main () | ||
15616 | { | ||
15617 | |||
15618 | int i = H_SETSIZE; | ||
15619 | el_init("", NULL, NULL, NULL); | ||
15620 | exit(0); | ||
15621 | |||
15622 | ; | ||
15623 | return 0; | ||
15624 | } | ||
15625 | _ACEOF | ||
15626 | rm -f conftest.$ac_objext | ||
15627 | if { (ac_try="$ac_compile" | ||
15628 | case "(($ac_try" in | ||
15629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15630 | *) ac_try_echo=$ac_try;; | ||
15631 | esac | ||
15632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15633 | (eval "$ac_compile") 2>conftest.er1 | ||
15634 | ac_status=$? | ||
15635 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15636 | rm -f conftest.er1 | ||
15637 | cat conftest.err >&5 | ||
15638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15639 | (exit $ac_status); } && { | ||
15640 | test -z "$ac_c_werror_flag" || | ||
15641 | test ! -s conftest.err | ||
15642 | } && test -s conftest.$ac_objext; then | ||
15643 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15644 | echo "${ECHO_T}yes" >&6; } | ||
15645 | else | ||
15646 | echo "$as_me: failed program was:" >&5 | ||
15647 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15648 | |||
15649 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15650 | echo "${ECHO_T}no" >&6; } | ||
15651 | { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
15652 | echo "$as_me: error: libedit version is not compatible" >&2;} | ||
15653 | { (exit 1); exit 1; }; } | ||
15654 | |||
15655 | fi | ||
15656 | |||
15657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15658 | fi | ||
15659 | |||
15660 | fi | ||
15661 | |||
15662 | |||
15663 | AUDIT_MODULE=none | ||
15664 | |||
15665 | # Check whether --with-audit was given. | ||
15666 | if test "${with_audit+set}" = set; then | ||
15667 | withval=$with_audit; | ||
15668 | { echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
15669 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; } | ||
15670 | case "$withval" in | ||
15671 | bsm) | ||
15672 | { echo "$as_me:$LINENO: result: bsm" >&5 | ||
15673 | echo "${ECHO_T}bsm" >&6; } | ||
15674 | AUDIT_MODULE=bsm | ||
15675 | |||
15676 | for ac_header in bsm/audit.h | ||
15677 | do | ||
15678 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15679 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
15681 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15683 | else | ||
15684 | cat >conftest.$ac_ext <<_ACEOF | ||
15685 | /* confdefs.h. */ | ||
15686 | _ACEOF | ||
15687 | cat confdefs.h >>conftest.$ac_ext | ||
15688 | cat >>conftest.$ac_ext <<_ACEOF | ||
15689 | /* end confdefs.h. */ | ||
15690 | |||
15691 | #ifdef HAVE_TIME_H | ||
15692 | # include <time.h> | ||
15693 | #endif | ||
15694 | |||
15695 | |||
15696 | |||
15697 | #include <$ac_header> | ||
15698 | _ACEOF | ||
15699 | rm -f conftest.$ac_objext | ||
15700 | if { (ac_try="$ac_compile" | ||
15701 | case "(($ac_try" in | ||
15702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15703 | *) ac_try_echo=$ac_try;; | ||
15704 | esac | ||
15705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15706 | (eval "$ac_compile") 2>conftest.er1 | ||
15707 | ac_status=$? | ||
15708 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15709 | rm -f conftest.er1 | ||
15710 | cat conftest.err >&5 | ||
15711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15712 | (exit $ac_status); } && { | ||
15713 | test -z "$ac_c_werror_flag" || | ||
15714 | test ! -s conftest.err | ||
15715 | } && test -s conftest.$ac_objext; then | ||
15716 | eval "$as_ac_Header=yes" | ||
15717 | else | ||
15718 | echo "$as_me: failed program was:" >&5 | ||
15719 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15720 | |||
15721 | eval "$as_ac_Header=no" | ||
15722 | fi | ||
15723 | |||
15724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15725 | fi | ||
15726 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
15727 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15728 | echo "${ECHO_T}$ac_res" >&6; } | ||
15729 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15730 | cat >>confdefs.h <<_ACEOF | ||
15731 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15732 | _ACEOF | ||
15733 | |||
15734 | else | ||
15735 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
15736 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
15737 | { (exit 1); exit 1; }; } | ||
15738 | fi | ||
15739 | |||
15740 | done | ||
15741 | |||
15742 | |||
15743 | { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
15744 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; } | ||
15745 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
15746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15747 | else | ||
15748 | ac_check_lib_save_LIBS=$LIBS | ||
15749 | LIBS="-lbsm $LIBS" | ||
15750 | cat >conftest.$ac_ext <<_ACEOF | ||
15751 | /* confdefs.h. */ | ||
15752 | _ACEOF | ||
15753 | cat confdefs.h >>conftest.$ac_ext | ||
15754 | cat >>conftest.$ac_ext <<_ACEOF | ||
15755 | /* end confdefs.h. */ | ||
15756 | |||
15757 | /* Override any GCC internal prototype to avoid an error. | ||
15758 | Use char because int might match the return type of a GCC | ||
15759 | builtin and then its argument prototype would still apply. */ | ||
15760 | #ifdef __cplusplus | ||
15761 | extern "C" | ||
15762 | #endif | ||
15763 | char getaudit (); | ||
15764 | int | ||
15765 | main () | ||
15766 | { | ||
15767 | return getaudit (); | ||
15768 | ; | ||
15769 | return 0; | ||
15770 | } | ||
15771 | _ACEOF | ||
15772 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15773 | if { (ac_try="$ac_link" | ||
15774 | case "(($ac_try" in | ||
15775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15776 | *) ac_try_echo=$ac_try;; | ||
15777 | esac | ||
15778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15779 | (eval "$ac_link") 2>conftest.er1 | ||
15780 | ac_status=$? | ||
15781 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15782 | rm -f conftest.er1 | ||
15783 | cat conftest.err >&5 | ||
15784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15785 | (exit $ac_status); } && { | ||
15786 | test -z "$ac_c_werror_flag" || | ||
15787 | test ! -s conftest.err | ||
15788 | } && test -s conftest$ac_exeext && | ||
15789 | $as_test_x conftest$ac_exeext; then | ||
15790 | ac_cv_lib_bsm_getaudit=yes | ||
15791 | else | ||
15792 | echo "$as_me: failed program was:" >&5 | ||
15793 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15794 | |||
15795 | ac_cv_lib_bsm_getaudit=no | ||
15796 | fi | ||
15797 | |||
15798 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15799 | conftest$ac_exeext conftest.$ac_ext | ||
15800 | LIBS=$ac_check_lib_save_LIBS | ||
15801 | fi | ||
15802 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
15803 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; } | ||
15804 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
15805 | cat >>confdefs.h <<_ACEOF | ||
15806 | #define HAVE_LIBBSM 1 | ||
15807 | _ACEOF | ||
15808 | |||
15809 | LIBS="-lbsm $LIBS" | ||
15810 | |||
15811 | else | ||
15812 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
15813 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
15814 | { (exit 1); exit 1; }; } | ||
15815 | fi | ||
15816 | |||
15817 | |||
15818 | for ac_func in getaudit | ||
15819 | do | ||
15820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15821 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15823 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15825 | else | ||
15826 | cat >conftest.$ac_ext <<_ACEOF | ||
15827 | /* confdefs.h. */ | ||
15828 | _ACEOF | ||
15829 | cat confdefs.h >>conftest.$ac_ext | ||
15830 | cat >>conftest.$ac_ext <<_ACEOF | ||
15831 | /* end confdefs.h. */ | ||
15832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15834 | #define $ac_func innocuous_$ac_func | ||
15835 | |||
15836 | /* System header to define __stub macros and hopefully few prototypes, | ||
15837 | which can conflict with char $ac_func (); below. | ||
15838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15839 | <limits.h> exists even on freestanding compilers. */ | ||
15840 | |||
15841 | #ifdef __STDC__ | ||
15842 | # include <limits.h> | ||
15843 | #else | ||
15844 | # include <assert.h> | ||
15845 | #endif | ||
15846 | |||
15847 | #undef $ac_func | ||
15848 | |||
15849 | /* Override any GCC internal prototype to avoid an error. | ||
15850 | Use char because int might match the return type of a GCC | ||
15851 | builtin and then its argument prototype would still apply. */ | ||
15852 | #ifdef __cplusplus | ||
15853 | extern "C" | ||
15854 | #endif | ||
15855 | char $ac_func (); | ||
15856 | /* The GNU C library defines this for functions which it implements | ||
15857 | to always fail with ENOSYS. Some functions are actually named | ||
15858 | something starting with __ and the normal name is an alias. */ | ||
15859 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15860 | choke me | ||
15861 | #endif | ||
15862 | |||
15863 | int | ||
15864 | main () | ||
15865 | { | ||
15866 | return $ac_func (); | ||
15867 | ; | ||
15868 | return 0; | ||
15869 | } | ||
15870 | _ACEOF | ||
15871 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15872 | if { (ac_try="$ac_link" | ||
15873 | case "(($ac_try" in | ||
15874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15875 | *) ac_try_echo=$ac_try;; | ||
15876 | esac | ||
15877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15878 | (eval "$ac_link") 2>conftest.er1 | ||
15879 | ac_status=$? | ||
15880 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15881 | rm -f conftest.er1 | ||
15882 | cat conftest.err >&5 | ||
15883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15884 | (exit $ac_status); } && { | ||
15885 | test -z "$ac_c_werror_flag" || | ||
15886 | test ! -s conftest.err | ||
15887 | } && test -s conftest$ac_exeext && | ||
15888 | $as_test_x conftest$ac_exeext; then | ||
15889 | eval "$as_ac_var=yes" | ||
15890 | else | ||
15891 | echo "$as_me: failed program was:" >&5 | ||
15892 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15893 | |||
15894 | eval "$as_ac_var=no" | ||
15895 | fi | ||
15896 | |||
15897 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15898 | conftest$ac_exeext conftest.$ac_ext | ||
15899 | fi | ||
15900 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15901 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15902 | echo "${ECHO_T}$ac_res" >&6; } | ||
15903 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15904 | cat >>confdefs.h <<_ACEOF | ||
15905 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15906 | _ACEOF | ||
15907 | |||
15908 | else | ||
15909 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
15910 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
15911 | { (exit 1); exit 1; }; } | ||
15912 | fi | ||
15913 | done | ||
15914 | |||
15915 | # These are optional | ||
15916 | |||
15917 | |||
15918 | for ac_func in getaudit_addr aug_get_machine | ||
15919 | do | ||
15920 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15921 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15922 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15923 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15925 | else | ||
15926 | cat >conftest.$ac_ext <<_ACEOF | ||
15927 | /* confdefs.h. */ | ||
15928 | _ACEOF | ||
15929 | cat confdefs.h >>conftest.$ac_ext | ||
15930 | cat >>conftest.$ac_ext <<_ACEOF | ||
15931 | /* end confdefs.h. */ | ||
15932 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15933 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15934 | #define $ac_func innocuous_$ac_func | ||
15935 | |||
15936 | /* System header to define __stub macros and hopefully few prototypes, | ||
15937 | which can conflict with char $ac_func (); below. | ||
15938 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15939 | <limits.h> exists even on freestanding compilers. */ | ||
15940 | |||
15941 | #ifdef __STDC__ | ||
15942 | # include <limits.h> | ||
15943 | #else | ||
15944 | # include <assert.h> | ||
15945 | #endif | ||
15946 | |||
15947 | #undef $ac_func | ||
15948 | |||
15949 | /* Override any GCC internal prototype to avoid an error. | ||
15950 | Use char because int might match the return type of a GCC | ||
15951 | builtin and then its argument prototype would still apply. */ | ||
15952 | #ifdef __cplusplus | ||
15953 | extern "C" | ||
15954 | #endif | ||
15955 | char $ac_func (); | ||
15956 | /* The GNU C library defines this for functions which it implements | ||
15957 | to always fail with ENOSYS. Some functions are actually named | ||
15958 | something starting with __ and the normal name is an alias. */ | ||
15959 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15960 | choke me | ||
15961 | #endif | ||
15962 | |||
15963 | int | ||
15964 | main () | ||
15965 | { | ||
15966 | return $ac_func (); | ||
15967 | ; | ||
15968 | return 0; | ||
15969 | } | ||
15970 | _ACEOF | ||
15971 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15972 | if { (ac_try="$ac_link" | ||
15973 | case "(($ac_try" in | ||
15974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15975 | *) ac_try_echo=$ac_try;; | ||
15976 | esac | ||
15977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15978 | (eval "$ac_link") 2>conftest.er1 | ||
15979 | ac_status=$? | ||
15980 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15981 | rm -f conftest.er1 | ||
15982 | cat conftest.err >&5 | ||
15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15984 | (exit $ac_status); } && { | ||
15985 | test -z "$ac_c_werror_flag" || | ||
15986 | test ! -s conftest.err | ||
15987 | } && test -s conftest$ac_exeext && | ||
15988 | $as_test_x conftest$ac_exeext; then | ||
15989 | eval "$as_ac_var=yes" | ||
15990 | else | ||
15991 | echo "$as_me: failed program was:" >&5 | ||
15992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15993 | |||
15994 | eval "$as_ac_var=no" | ||
15995 | fi | ||
15996 | |||
15997 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15998 | conftest$ac_exeext conftest.$ac_ext | ||
15999 | fi | ||
16000 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16001 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16002 | echo "${ECHO_T}$ac_res" >&6; } | ||
16003 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16004 | cat >>confdefs.h <<_ACEOF | ||
16005 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16006 | _ACEOF | ||
16007 | |||
16008 | fi | ||
16009 | done | ||
16010 | |||
16011 | |||
16012 | cat >>confdefs.h <<\_ACEOF | ||
16013 | #define USE_BSM_AUDIT 1 | ||
16014 | _ACEOF | ||
16015 | |||
16016 | if test "$sol2ver" -ge 11; then | ||
16017 | SSHDLIBS="$SSHDLIBS -lscf" | ||
16018 | |||
16019 | cat >>confdefs.h <<\_ACEOF | ||
16020 | #define BROKEN_BSM_API 1 | ||
16021 | _ACEOF | ||
16022 | |||
16023 | fi | ||
16024 | ;; | ||
16025 | linux) | ||
16026 | { echo "$as_me:$LINENO: result: linux" >&5 | ||
16027 | echo "${ECHO_T}linux" >&6; } | ||
16028 | AUDIT_MODULE=linux | ||
16029 | |||
16030 | for ac_header in libaudit.h | ||
16031 | do | ||
16032 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
16033 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16034 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
16035 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
16036 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16038 | fi | ||
16039 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
16040 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16041 | echo "${ECHO_T}$ac_res" >&6; } | ||
16042 | else | ||
16043 | # Is the header compilable? | ||
16044 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
16045 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
16046 | cat >conftest.$ac_ext <<_ACEOF | ||
16047 | /* confdefs.h. */ | ||
16048 | _ACEOF | ||
16049 | cat confdefs.h >>conftest.$ac_ext | ||
16050 | cat >>conftest.$ac_ext <<_ACEOF | ||
16051 | /* end confdefs.h. */ | ||
16052 | $ac_includes_default | ||
16053 | #include <$ac_header> | ||
16054 | _ACEOF | ||
16055 | rm -f conftest.$ac_objext | ||
16056 | if { (ac_try="$ac_compile" | ||
16057 | case "(($ac_try" in | ||
16058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16059 | *) ac_try_echo=$ac_try;; | ||
16060 | esac | ||
16061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16062 | (eval "$ac_compile") 2>conftest.er1 | ||
16063 | ac_status=$? | ||
16064 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16065 | rm -f conftest.er1 | ||
16066 | cat conftest.err >&5 | ||
16067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16068 | (exit $ac_status); } && { | ||
16069 | test -z "$ac_c_werror_flag" || | ||
16070 | test ! -s conftest.err | ||
16071 | } && test -s conftest.$ac_objext; then | ||
16072 | ac_header_compiler=yes | ||
16073 | else | ||
16074 | echo "$as_me: failed program was:" >&5 | ||
16075 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16076 | |||
16077 | ac_header_compiler=no | ||
16078 | fi | ||
16079 | |||
16080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16081 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
16082 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
16083 | |||
16084 | # Is the header present? | ||
16085 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
16086 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
16087 | cat >conftest.$ac_ext <<_ACEOF | ||
16088 | /* confdefs.h. */ | ||
16089 | _ACEOF | ||
16090 | cat confdefs.h >>conftest.$ac_ext | ||
16091 | cat >>conftest.$ac_ext <<_ACEOF | ||
16092 | /* end confdefs.h. */ | ||
16093 | #include <$ac_header> | ||
16094 | _ACEOF | ||
16095 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
16096 | case "(($ac_try" in | ||
16097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16098 | *) ac_try_echo=$ac_try;; | ||
16099 | esac | ||
16100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16101 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
16102 | ac_status=$? | ||
16103 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16104 | rm -f conftest.er1 | ||
16105 | cat conftest.err >&5 | ||
16106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16107 | (exit $ac_status); } >/dev/null && { | ||
16108 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
16109 | test ! -s conftest.err | ||
16110 | }; then | ||
16111 | ac_header_preproc=yes | ||
16112 | else | ||
16113 | echo "$as_me: failed program was:" >&5 | ||
16114 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16115 | |||
16116 | ac_header_preproc=no | ||
16117 | fi | ||
16118 | |||
16119 | rm -f conftest.err conftest.$ac_ext | ||
16120 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
16121 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
16122 | |||
16123 | # So? What about this header? | ||
16124 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
16125 | yes:no: ) | ||
16126 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
16127 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
16128 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
16129 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
16130 | ac_header_preproc=yes | ||
16131 | ;; | ||
16132 | no:yes:* ) | ||
16133 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
16134 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
16135 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
16136 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
16137 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
16138 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
16139 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
16140 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
16141 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
16142 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
16143 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
16144 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
16145 | ( cat <<\_ASBOX | ||
16146 | ## ------------------------------------------- ## | ||
16147 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
16148 | ## ------------------------------------------- ## | ||
16149 | _ASBOX | ||
16150 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
16151 | ;; | ||
16152 | esac | ||
16153 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
16154 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
16155 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16157 | else | ||
16158 | eval "$as_ac_Header=\$ac_header_preproc" | ||
16159 | fi | ||
16160 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
16161 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16162 | echo "${ECHO_T}$ac_res" >&6; } | ||
16163 | |||
16164 | fi | ||
16165 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
16166 | cat >>confdefs.h <<_ACEOF | ||
16167 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
16168 | _ACEOF | ||
16169 | |||
16170 | fi | ||
16171 | |||
16172 | done | ||
16173 | |||
16174 | SSHDLIBS="$SSHDLIBS -laudit" | ||
16175 | |||
16176 | cat >>confdefs.h <<\_ACEOF | ||
16177 | #define USE_LINUX_AUDIT 1 | ||
16178 | _ACEOF | ||
16179 | |||
16180 | ;; | ||
16181 | debug) | ||
16182 | AUDIT_MODULE=debug | ||
16183 | { echo "$as_me:$LINENO: result: debug" >&5 | ||
16184 | echo "${ECHO_T}debug" >&6; } | ||
16185 | |||
16186 | cat >>confdefs.h <<\_ACEOF | ||
16187 | #define SSH_AUDIT_EVENTS 1 | ||
16188 | _ACEOF | ||
16189 | |||
16190 | ;; | ||
16191 | no) | ||
16192 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16193 | echo "${ECHO_T}no" >&6; } | ||
16194 | ;; | ||
16195 | *) | ||
16196 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
16197 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
16198 | { (exit 1); exit 1; }; } | ||
16199 | ;; | ||
16200 | esac | ||
16201 | |||
16202 | fi | ||
16203 | |||
16204 | |||
16205 | |||
16206 | # Check whether --with-pie was given. | ||
16207 | if test "${with_pie+set}" = set; then | ||
16208 | withval=$with_pie; | ||
16209 | if test "x$withval" = "xno"; then | ||
16210 | use_pie=no | ||
16211 | fi | ||
16212 | if test "x$withval" = "xyes"; then | ||
16213 | use_pie=yes | ||
16214 | fi | ||
16215 | |||
16216 | |||
16217 | fi | ||
16218 | |||
16219 | if test "x$use_pie" = "x"; then | ||
16220 | use_pie=no | ||
16221 | fi | ||
16222 | if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then | ||
16223 | # Turn off automatic PIE when toolchain hardening is off. | ||
16224 | use_pie=no | ||
16225 | fi | ||
16226 | if test "x$use_pie" = "xauto"; then | ||
16227 | # Automatic PIE requires gcc >= 4.x | ||
16228 | { echo "$as_me:$LINENO: checking for gcc >= 4.x" >&5 | ||
16229 | echo $ECHO_N "checking for gcc >= 4.x... $ECHO_C" >&6; } | ||
16230 | cat >conftest.$ac_ext <<_ACEOF | ||
16231 | /* confdefs.h. */ | ||
16232 | _ACEOF | ||
16233 | cat confdefs.h >>conftest.$ac_ext | ||
16234 | cat >>conftest.$ac_ext <<_ACEOF | ||
16235 | /* end confdefs.h. */ | ||
16236 | |||
16237 | #if !defined(__GNUC__) || __GNUC__ < 4 | ||
16238 | #error gcc is too old | ||
16239 | #endif | ||
16240 | |||
16241 | _ACEOF | ||
16242 | rm -f conftest.$ac_objext | ||
16243 | if { (ac_try="$ac_compile" | ||
16244 | case "(($ac_try" in | ||
16245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16246 | *) ac_try_echo=$ac_try;; | ||
16247 | esac | ||
16248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16249 | (eval "$ac_compile") 2>conftest.er1 | ||
16250 | ac_status=$? | ||
16251 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16252 | rm -f conftest.er1 | ||
16253 | cat conftest.err >&5 | ||
16254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16255 | (exit $ac_status); } && { | ||
16256 | test -z "$ac_c_werror_flag" || | ||
16257 | test ! -s conftest.err | ||
16258 | } && test -s conftest.$ac_objext; then | ||
16259 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16260 | echo "${ECHO_T}yes" >&6; } | ||
16261 | else | ||
16262 | echo "$as_me: failed program was:" >&5 | ||
16263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16264 | |||
16265 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16266 | echo "${ECHO_T}no" >&6; } | ||
16267 | use_pie=no | ||
16268 | |||
16269 | fi | ||
16270 | |||
16271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16272 | fi | ||
16273 | if test "x$use_pie" != "xno"; then | ||
16274 | SAVED_CFLAGS="$CFLAGS" | ||
16275 | SAVED_LDFLAGS="$LDFLAGS" | ||
16276 | { | ||
16277 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -fPIE" >&5 | ||
16278 | echo $ECHO_N "checking if $CC supports compile flag -fPIE... $ECHO_C" >&6; } | ||
16279 | saved_CFLAGS="$CFLAGS" | ||
16280 | CFLAGS="$CFLAGS $WERROR -fPIE" | ||
16281 | _define_flag="" | ||
16282 | test "x$_define_flag" = "x" && _define_flag="-fPIE" | ||
16283 | cat >conftest.$ac_ext <<_ACEOF | ||
16284 | /* confdefs.h. */ | ||
16285 | _ACEOF | ||
16286 | cat confdefs.h >>conftest.$ac_ext | ||
16287 | cat >>conftest.$ac_ext <<_ACEOF | ||
16288 | /* end confdefs.h. */ | ||
16289 | |||
16290 | #include <stdlib.h> | ||
16291 | #include <stdio.h> | ||
16292 | int main(int argc, char **argv) { | ||
16293 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
16294 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
16295 | float l = i * 2.1; | ||
16296 | double m = l / 0.5; | ||
16297 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
16298 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
16299 | exit(0); | ||
16300 | } | ||
16301 | |||
16302 | _ACEOF | ||
16303 | rm -f conftest.$ac_objext | ||
16304 | if { (ac_try="$ac_compile" | ||
16305 | case "(($ac_try" in | ||
16306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16307 | *) ac_try_echo=$ac_try;; | ||
16308 | esac | ||
16309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16310 | (eval "$ac_compile") 2>conftest.er1 | ||
16311 | ac_status=$? | ||
16312 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16313 | rm -f conftest.er1 | ||
16314 | cat conftest.err >&5 | ||
16315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16316 | (exit $ac_status); } && { | ||
16317 | test -z "$ac_c_werror_flag" || | ||
16318 | test ! -s conftest.err | ||
16319 | } && test -s conftest.$ac_objext; then | ||
16320 | |||
16321 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
16322 | then | ||
16323 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16324 | echo "${ECHO_T}no" >&6; } | ||
16325 | CFLAGS="$saved_CFLAGS" | ||
16326 | else | ||
16327 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16328 | echo "${ECHO_T}yes" >&6; } | ||
16329 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
16330 | fi | ||
16331 | else | ||
16332 | echo "$as_me: failed program was:" >&5 | ||
16333 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16334 | |||
16335 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16336 | echo "${ECHO_T}no" >&6; } | ||
16337 | CFLAGS="$saved_CFLAGS" | ||
16338 | |||
16339 | fi | ||
16340 | |||
16341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16342 | } | ||
16343 | { | ||
16344 | { echo "$as_me:$LINENO: checking if $LD supports link flag -pie" >&5 | ||
16345 | echo $ECHO_N "checking if $LD supports link flag -pie... $ECHO_C" >&6; } | ||
16346 | saved_LDFLAGS="$LDFLAGS" | ||
16347 | LDFLAGS="$LDFLAGS $WERROR -pie" | ||
16348 | _define_flag="" | ||
16349 | test "x$_define_flag" = "x" && _define_flag="-pie" | ||
16350 | cat >conftest.$ac_ext <<_ACEOF | ||
16351 | /* confdefs.h. */ | ||
16352 | _ACEOF | ||
16353 | cat confdefs.h >>conftest.$ac_ext | ||
16354 | cat >>conftest.$ac_ext <<_ACEOF | ||
16355 | /* end confdefs.h. */ | ||
16356 | |||
16357 | #include <stdlib.h> | ||
16358 | #include <stdio.h> | ||
16359 | int main(int argc, char **argv) { | ||
16360 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
16361 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
16362 | float l = i * 2.1; | ||
16363 | double m = l / 0.5; | ||
16364 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
16365 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
16366 | exit(0); | ||
16367 | } | ||
16368 | |||
16369 | _ACEOF | ||
16370 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16371 | if { (ac_try="$ac_link" | ||
16372 | case "(($ac_try" in | ||
16373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16374 | *) ac_try_echo=$ac_try;; | ||
16375 | esac | ||
16376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16377 | (eval "$ac_link") 2>conftest.er1 | ||
16378 | ac_status=$? | ||
16379 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16380 | rm -f conftest.er1 | ||
16381 | cat conftest.err >&5 | ||
16382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16383 | (exit $ac_status); } && { | ||
16384 | test -z "$ac_c_werror_flag" || | ||
16385 | test ! -s conftest.err | ||
16386 | } && test -s conftest$ac_exeext && | ||
16387 | $as_test_x conftest$ac_exeext; then | ||
16388 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16389 | echo "${ECHO_T}yes" >&6; } | ||
16390 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
16391 | else | ||
16392 | echo "$as_me: failed program was:" >&5 | ||
16393 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16394 | |||
16395 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16396 | echo "${ECHO_T}no" >&6; } | ||
16397 | LDFLAGS="$saved_LDFLAGS" | ||
16398 | |||
16399 | fi | ||
16400 | |||
16401 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16402 | conftest$ac_exeext conftest.$ac_ext | ||
16403 | } | ||
16404 | # We use both -fPIE and -pie or neither. | ||
16405 | { echo "$as_me:$LINENO: checking whether both -fPIE and -pie are supported" >&5 | ||
16406 | echo $ECHO_N "checking whether both -fPIE and -pie are supported... $ECHO_C" >&6; } | ||
16407 | if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ | ||
16408 | echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then | ||
16409 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16410 | echo "${ECHO_T}yes" >&6; } | ||
16411 | else | ||
16412 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16413 | echo "${ECHO_T}no" >&6; } | ||
16414 | CFLAGS="$SAVED_CFLAGS" | ||
16415 | LDFLAGS="$SAVED_LDFLAGS" | ||
16416 | fi | ||
16417 | fi | ||
16418 | |||
16419 | |||
16420 | |||
16421 | |||
16422 | |||
16423 | |||
16424 | |||
16425 | |||
16426 | |||
16427 | |||
16428 | |||
16429 | |||
16430 | |||
16431 | |||
16432 | |||
16433 | |||
16434 | |||
16435 | |||
16436 | |||
16437 | |||
16438 | |||
16439 | |||
16440 | |||
16441 | |||
16442 | |||
16443 | |||
16444 | |||
16445 | |||
16446 | |||
16447 | |||
16448 | |||
16449 | |||
16450 | |||
16451 | |||
16452 | |||
16453 | |||
16454 | |||
16455 | |||
16456 | |||
16457 | |||
16458 | |||
16459 | |||
16460 | |||
16461 | |||
16462 | |||
16463 | |||
16464 | |||
16465 | |||
16466 | |||
16467 | |||
16468 | |||
16469 | |||
16470 | |||
16471 | |||
16472 | |||
16473 | |||
16474 | |||
16475 | |||
16476 | |||
16477 | |||
16478 | |||
16479 | |||
16480 | |||
16481 | |||
16482 | |||
16483 | |||
16484 | |||
16485 | |||
16486 | |||
16487 | |||
16488 | |||
16489 | |||
16490 | |||
16491 | |||
16492 | |||
16493 | |||
16494 | |||
16495 | |||
16496 | |||
16497 | |||
16498 | |||
16499 | |||
16500 | |||
16501 | |||
16502 | |||
16503 | |||
16504 | |||
16505 | |||
16506 | |||
16507 | |||
16508 | |||
16509 | |||
16510 | |||
16511 | |||
16512 | |||
16513 | |||
16514 | |||
16515 | |||
16516 | |||
16517 | |||
16518 | |||
16519 | |||
16520 | |||
16521 | |||
16522 | |||
16523 | |||
16524 | |||
16525 | |||
16526 | |||
16527 | for ac_func in \ | ||
16528 | Blowfish_initstate \ | ||
16529 | Blowfish_expandstate \ | ||
16530 | Blowfish_expand0state \ | ||
16531 | Blowfish_stream2word \ | ||
16532 | asprintf \ | ||
16533 | b64_ntop \ | ||
16534 | __b64_ntop \ | ||
16535 | b64_pton \ | ||
16536 | __b64_pton \ | ||
16537 | bcopy \ | ||
16538 | bcrypt_pbkdf \ | ||
16539 | bindresvport_sa \ | ||
16540 | blf_enc \ | ||
16541 | cap_rights_limit \ | ||
16542 | clock \ | ||
16543 | closefrom \ | ||
16544 | dirfd \ | ||
16545 | endgrent \ | ||
16546 | explicit_bzero \ | ||
16547 | fchmod \ | ||
16548 | fchown \ | ||
16549 | freeaddrinfo \ | ||
16550 | fstatfs \ | ||
16551 | fstatvfs \ | ||
16552 | futimes \ | ||
16553 | getaddrinfo \ | ||
16554 | getcwd \ | ||
16555 | getgrouplist \ | ||
16556 | getnameinfo \ | ||
16557 | getopt \ | ||
16558 | getpeereid \ | ||
16559 | getpeerucred \ | ||
16560 | getpgid \ | ||
16561 | getpgrp \ | ||
16562 | _getpty \ | ||
16563 | getrlimit \ | ||
16564 | getttyent \ | ||
16565 | glob \ | ||
16566 | group_from_gid \ | ||
16567 | inet_aton \ | ||
16568 | inet_ntoa \ | ||
16569 | inet_ntop \ | ||
16570 | innetgr \ | ||
16571 | login_getcapbool \ | ||
16572 | mblen \ | ||
16573 | md5_crypt \ | ||
16574 | memmove \ | ||
16575 | memset_s \ | ||
16576 | mkdtemp \ | ||
16577 | mmap \ | ||
16578 | ngetaddrinfo \ | ||
16579 | nsleep \ | ||
16580 | ogetaddrinfo \ | ||
16581 | openlog_r \ | ||
16582 | poll \ | ||
16583 | prctl \ | ||
16584 | pstat \ | ||
16585 | readpassphrase \ | ||
16586 | reallocarray \ | ||
16587 | recvmsg \ | ||
16588 | rresvport_af \ | ||
16589 | sendmsg \ | ||
16590 | setdtablesize \ | ||
16591 | setegid \ | ||
16592 | setenv \ | ||
16593 | seteuid \ | ||
16594 | setgroupent \ | ||
16595 | setgroups \ | ||
16596 | setlinebuf \ | ||
16597 | setlogin \ | ||
16598 | setpassent\ | ||
16599 | setpcred \ | ||
16600 | setproctitle \ | ||
16601 | setregid \ | ||
16602 | setreuid \ | ||
16603 | setrlimit \ | ||
16604 | setsid \ | ||
16605 | setvbuf \ | ||
16606 | sigaction \ | ||
16607 | sigvec \ | ||
16608 | snprintf \ | ||
16609 | socketpair \ | ||
16610 | statfs \ | ||
16611 | statvfs \ | ||
16612 | strdup \ | ||
16613 | strerror \ | ||
16614 | strlcat \ | ||
16615 | strlcpy \ | ||
16616 | strmode \ | ||
16617 | strnlen \ | ||
16618 | strnvis \ | ||
16619 | strptime \ | ||
16620 | strtonum \ | ||
16621 | strtoll \ | ||
16622 | strtoul \ | ||
16623 | strtoull \ | ||
16624 | swap32 \ | ||
16625 | sysconf \ | ||
16626 | tcgetpgrp \ | ||
16627 | timingsafe_bcmp \ | ||
16628 | truncate \ | ||
16629 | unsetenv \ | ||
16630 | updwtmpx \ | ||
16631 | user_from_uid \ | ||
16632 | usleep \ | ||
16633 | vasprintf \ | ||
16634 | vsnprintf \ | ||
16635 | waitpid \ | ||
16636 | |||
16637 | do | ||
16638 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16639 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16640 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16641 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16643 | else | ||
16644 | cat >conftest.$ac_ext <<_ACEOF | ||
16645 | /* confdefs.h. */ | ||
16646 | _ACEOF | ||
16647 | cat confdefs.h >>conftest.$ac_ext | ||
16648 | cat >>conftest.$ac_ext <<_ACEOF | ||
16649 | /* end confdefs.h. */ | ||
16650 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16651 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16652 | #define $ac_func innocuous_$ac_func | ||
16653 | |||
16654 | /* System header to define __stub macros and hopefully few prototypes, | ||
16655 | which can conflict with char $ac_func (); below. | ||
16656 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16657 | <limits.h> exists even on freestanding compilers. */ | ||
16658 | |||
16659 | #ifdef __STDC__ | ||
16660 | # include <limits.h> | ||
16661 | #else | ||
16662 | # include <assert.h> | ||
16663 | #endif | ||
16664 | |||
16665 | #undef $ac_func | ||
16666 | |||
16667 | /* Override any GCC internal prototype to avoid an error. | ||
16668 | Use char because int might match the return type of a GCC | ||
16669 | builtin and then its argument prototype would still apply. */ | ||
16670 | #ifdef __cplusplus | ||
16671 | extern "C" | ||
16672 | #endif | ||
16673 | char $ac_func (); | ||
16674 | /* The GNU C library defines this for functions which it implements | ||
16675 | to always fail with ENOSYS. Some functions are actually named | ||
16676 | something starting with __ and the normal name is an alias. */ | ||
16677 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16678 | choke me | ||
16679 | #endif | ||
16680 | |||
16681 | int | ||
16682 | main () | ||
16683 | { | ||
16684 | return $ac_func (); | ||
16685 | ; | ||
16686 | return 0; | ||
16687 | } | ||
16688 | _ACEOF | ||
16689 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16690 | if { (ac_try="$ac_link" | ||
16691 | case "(($ac_try" in | ||
16692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16693 | *) ac_try_echo=$ac_try;; | ||
16694 | esac | ||
16695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16696 | (eval "$ac_link") 2>conftest.er1 | ||
16697 | ac_status=$? | ||
16698 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16699 | rm -f conftest.er1 | ||
16700 | cat conftest.err >&5 | ||
16701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16702 | (exit $ac_status); } && { | ||
16703 | test -z "$ac_c_werror_flag" || | ||
16704 | test ! -s conftest.err | ||
16705 | } && test -s conftest$ac_exeext && | ||
16706 | $as_test_x conftest$ac_exeext; then | ||
16707 | eval "$as_ac_var=yes" | ||
16708 | else | ||
16709 | echo "$as_me: failed program was:" >&5 | ||
16710 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16711 | |||
16712 | eval "$as_ac_var=no" | ||
16713 | fi | ||
16714 | |||
16715 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16716 | conftest$ac_exeext conftest.$ac_ext | ||
16717 | fi | ||
16718 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16719 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16720 | echo "${ECHO_T}$ac_res" >&6; } | ||
16721 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16722 | cat >>confdefs.h <<_ACEOF | ||
16723 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16724 | _ACEOF | ||
16725 | |||
16726 | fi | ||
16727 | done | ||
16728 | |||
16729 | |||
16730 | cat >conftest.$ac_ext <<_ACEOF | ||
16731 | /* confdefs.h. */ | ||
16732 | _ACEOF | ||
16733 | cat confdefs.h >>conftest.$ac_ext | ||
16734 | cat >>conftest.$ac_ext <<_ACEOF | ||
16735 | /* end confdefs.h. */ | ||
16736 | #include <ctype.h> | ||
16737 | int | ||
16738 | main () | ||
16739 | { | ||
16740 | return (isblank('a')); | ||
16741 | ; | ||
16742 | return 0; | ||
16743 | } | ||
16744 | _ACEOF | ||
16745 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16746 | if { (ac_try="$ac_link" | ||
16747 | case "(($ac_try" in | ||
16748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16749 | *) ac_try_echo=$ac_try;; | ||
16750 | esac | ||
16751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16752 | (eval "$ac_link") 2>conftest.er1 | ||
16753 | ac_status=$? | ||
16754 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16755 | rm -f conftest.er1 | ||
16756 | cat conftest.err >&5 | ||
16757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16758 | (exit $ac_status); } && { | ||
16759 | test -z "$ac_c_werror_flag" || | ||
16760 | test ! -s conftest.err | ||
16761 | } && test -s conftest$ac_exeext && | ||
16762 | $as_test_x conftest$ac_exeext; then | ||
16763 | |||
16764 | cat >>confdefs.h <<\_ACEOF | ||
16765 | #define HAVE_ISBLANK 1 | ||
16766 | _ACEOF | ||
16767 | |||
16768 | |||
16769 | else | ||
16770 | echo "$as_me: failed program was:" >&5 | ||
16771 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16772 | |||
16773 | |||
16774 | fi | ||
16775 | |||
16776 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16777 | conftest$ac_exeext conftest.$ac_ext | ||
16778 | |||
16779 | # PKCS11 depends on OpenSSL. | ||
16780 | if test "x$openssl" = "xyes" ; then | ||
16781 | # PKCS#11 support requires dlopen() and co | ||
16782 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | ||
16783 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | ||
16784 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
16785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16786 | else | ||
16787 | ac_func_search_save_LIBS=$LIBS | ||
16788 | cat >conftest.$ac_ext <<_ACEOF | ||
16789 | /* confdefs.h. */ | ||
16790 | _ACEOF | ||
16791 | cat confdefs.h >>conftest.$ac_ext | ||
16792 | cat >>conftest.$ac_ext <<_ACEOF | ||
16793 | /* end confdefs.h. */ | ||
16794 | |||
16795 | /* Override any GCC internal prototype to avoid an error. | ||
16796 | Use char because int might match the return type of a GCC | ||
16797 | builtin and then its argument prototype would still apply. */ | ||
16798 | #ifdef __cplusplus | ||
16799 | extern "C" | ||
16800 | #endif | ||
16801 | char dlopen (); | ||
16802 | int | ||
16803 | main () | ||
16804 | { | ||
16805 | return dlopen (); | ||
16806 | ; | ||
16807 | return 0; | ||
16808 | } | ||
16809 | _ACEOF | ||
16810 | for ac_lib in '' dl; do | ||
16811 | if test -z "$ac_lib"; then | ||
16812 | ac_res="none required" | ||
16813 | else | ||
16814 | ac_res=-l$ac_lib | ||
16815 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
16816 | fi | ||
16817 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16818 | if { (ac_try="$ac_link" | ||
16819 | case "(($ac_try" in | ||
16820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16821 | *) ac_try_echo=$ac_try;; | ||
16822 | esac | ||
16823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16824 | (eval "$ac_link") 2>conftest.er1 | ||
16825 | ac_status=$? | ||
16826 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16827 | rm -f conftest.er1 | ||
16828 | cat conftest.err >&5 | ||
16829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16830 | (exit $ac_status); } && { | ||
16831 | test -z "$ac_c_werror_flag" || | ||
16832 | test ! -s conftest.err | ||
16833 | } && test -s conftest$ac_exeext && | ||
16834 | $as_test_x conftest$ac_exeext; then | ||
16835 | ac_cv_search_dlopen=$ac_res | ||
16836 | else | ||
16837 | echo "$as_me: failed program was:" >&5 | ||
16838 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16839 | |||
16840 | |||
16841 | fi | ||
16842 | |||
16843 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16844 | conftest$ac_exeext | ||
16845 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
16846 | break | ||
16847 | fi | ||
16848 | done | ||
16849 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
16850 | : | ||
16851 | else | ||
16852 | ac_cv_search_dlopen=no | ||
16853 | fi | ||
16854 | rm conftest.$ac_ext | ||
16855 | LIBS=$ac_func_search_save_LIBS | ||
16856 | fi | ||
16857 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | ||
16858 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | ||
16859 | ac_res=$ac_cv_search_dlopen | ||
16860 | if test "$ac_res" != no; then | ||
16861 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
16862 | |||
16863 | cat >>confdefs.h <<\_ACEOF | ||
16864 | #define ENABLE_PKCS11 | ||
16865 | _ACEOF | ||
16866 | |||
16867 | |||
16868 | fi | ||
16869 | |||
16870 | fi | ||
16871 | |||
16872 | # IRIX has a const char return value for gai_strerror() | ||
16873 | |||
16874 | for ac_func in gai_strerror | ||
16875 | do | ||
16876 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16877 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16878 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16879 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16881 | else | ||
16882 | cat >conftest.$ac_ext <<_ACEOF | ||
16883 | /* confdefs.h. */ | ||
16884 | _ACEOF | ||
16885 | cat confdefs.h >>conftest.$ac_ext | ||
16886 | cat >>conftest.$ac_ext <<_ACEOF | ||
16887 | /* end confdefs.h. */ | ||
16888 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16889 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16890 | #define $ac_func innocuous_$ac_func | ||
16891 | |||
16892 | /* System header to define __stub macros and hopefully few prototypes, | ||
16893 | which can conflict with char $ac_func (); below. | ||
16894 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16895 | <limits.h> exists even on freestanding compilers. */ | ||
16896 | |||
16897 | #ifdef __STDC__ | ||
16898 | # include <limits.h> | ||
16899 | #else | ||
16900 | # include <assert.h> | ||
16901 | #endif | ||
16902 | |||
16903 | #undef $ac_func | ||
16904 | |||
16905 | /* Override any GCC internal prototype to avoid an error. | ||
16906 | Use char because int might match the return type of a GCC | ||
16907 | builtin and then its argument prototype would still apply. */ | ||
16908 | #ifdef __cplusplus | ||
16909 | extern "C" | ||
16910 | #endif | ||
16911 | char $ac_func (); | ||
16912 | /* The GNU C library defines this for functions which it implements | ||
16913 | to always fail with ENOSYS. Some functions are actually named | ||
16914 | something starting with __ and the normal name is an alias. */ | ||
16915 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16916 | choke me | ||
16917 | #endif | ||
16918 | |||
16919 | int | ||
16920 | main () | ||
16921 | { | ||
16922 | return $ac_func (); | ||
16923 | ; | ||
16924 | return 0; | ||
16925 | } | ||
16926 | _ACEOF | ||
16927 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16928 | if { (ac_try="$ac_link" | ||
16929 | case "(($ac_try" in | ||
16930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16931 | *) ac_try_echo=$ac_try;; | ||
16932 | esac | ||
16933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16934 | (eval "$ac_link") 2>conftest.er1 | ||
16935 | ac_status=$? | ||
16936 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16937 | rm -f conftest.er1 | ||
16938 | cat conftest.err >&5 | ||
16939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16940 | (exit $ac_status); } && { | ||
16941 | test -z "$ac_c_werror_flag" || | ||
16942 | test ! -s conftest.err | ||
16943 | } && test -s conftest$ac_exeext && | ||
16944 | $as_test_x conftest$ac_exeext; then | ||
16945 | eval "$as_ac_var=yes" | ||
16946 | else | ||
16947 | echo "$as_me: failed program was:" >&5 | ||
16948 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16949 | |||
16950 | eval "$as_ac_var=no" | ||
16951 | fi | ||
16952 | |||
16953 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16954 | conftest$ac_exeext conftest.$ac_ext | ||
16955 | fi | ||
16956 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16957 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16958 | echo "${ECHO_T}$ac_res" >&6; } | ||
16959 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16960 | cat >>confdefs.h <<_ACEOF | ||
16961 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16962 | _ACEOF | ||
16963 | |||
16964 | cat >>confdefs.h <<\_ACEOF | ||
16965 | #define HAVE_GAI_STRERROR 1 | ||
16966 | _ACEOF | ||
16967 | |||
16968 | cat >conftest.$ac_ext <<_ACEOF | ||
16969 | /* confdefs.h. */ | ||
16970 | _ACEOF | ||
16971 | cat confdefs.h >>conftest.$ac_ext | ||
16972 | cat >>conftest.$ac_ext <<_ACEOF | ||
16973 | /* end confdefs.h. */ | ||
16974 | |||
16975 | #include <sys/types.h> | ||
16976 | #include <sys/socket.h> | ||
16977 | #include <netdb.h> | ||
16978 | |||
16979 | const char *gai_strerror(int); | ||
16980 | |||
16981 | int | ||
16982 | main () | ||
16983 | { | ||
16984 | |||
16985 | char *str; | ||
16986 | str = gai_strerror(0); | ||
16987 | |||
16988 | ; | ||
16989 | return 0; | ||
16990 | } | ||
16991 | _ACEOF | ||
16992 | rm -f conftest.$ac_objext | ||
16993 | if { (ac_try="$ac_compile" | ||
16994 | case "(($ac_try" in | ||
16995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16996 | *) ac_try_echo=$ac_try;; | ||
16997 | esac | ||
16998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16999 | (eval "$ac_compile") 2>conftest.er1 | ||
17000 | ac_status=$? | ||
17001 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17002 | rm -f conftest.er1 | ||
17003 | cat conftest.err >&5 | ||
17004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17005 | (exit $ac_status); } && { | ||
17006 | test -z "$ac_c_werror_flag" || | ||
17007 | test ! -s conftest.err | ||
17008 | } && test -s conftest.$ac_objext; then | ||
17009 | |||
17010 | |||
17011 | cat >>confdefs.h <<\_ACEOF | ||
17012 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
17013 | _ACEOF | ||
17014 | |||
17015 | else | ||
17016 | echo "$as_me: failed program was:" >&5 | ||
17017 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17018 | |||
17019 | |||
17020 | fi | ||
17021 | |||
17022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17023 | fi | ||
17024 | done | ||
17025 | |||
17026 | |||
17027 | { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
17028 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } | ||
17029 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
17030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17031 | else | ||
17032 | ac_func_search_save_LIBS=$LIBS | ||
17033 | cat >conftest.$ac_ext <<_ACEOF | ||
17034 | /* confdefs.h. */ | ||
17035 | _ACEOF | ||
17036 | cat confdefs.h >>conftest.$ac_ext | ||
17037 | cat >>conftest.$ac_ext <<_ACEOF | ||
17038 | /* end confdefs.h. */ | ||
17039 | |||
17040 | /* Override any GCC internal prototype to avoid an error. | ||
17041 | Use char because int might match the return type of a GCC | ||
17042 | builtin and then its argument prototype would still apply. */ | ||
17043 | #ifdef __cplusplus | ||
17044 | extern "C" | ||
17045 | #endif | ||
17046 | char nanosleep (); | ||
17047 | int | ||
17048 | main () | ||
17049 | { | ||
17050 | return nanosleep (); | ||
17051 | ; | ||
17052 | return 0; | ||
17053 | } | ||
17054 | _ACEOF | ||
17055 | for ac_lib in '' rt posix4; do | ||
17056 | if test -z "$ac_lib"; then | ||
17057 | ac_res="none required" | ||
17058 | else | ||
17059 | ac_res=-l$ac_lib | ||
17060 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17061 | fi | ||
17062 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17063 | if { (ac_try="$ac_link" | ||
17064 | case "(($ac_try" in | ||
17065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17066 | *) ac_try_echo=$ac_try;; | ||
17067 | esac | ||
17068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17069 | (eval "$ac_link") 2>conftest.er1 | ||
17070 | ac_status=$? | ||
17071 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17072 | rm -f conftest.er1 | ||
17073 | cat conftest.err >&5 | ||
17074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17075 | (exit $ac_status); } && { | ||
17076 | test -z "$ac_c_werror_flag" || | ||
17077 | test ! -s conftest.err | ||
17078 | } && test -s conftest$ac_exeext && | ||
17079 | $as_test_x conftest$ac_exeext; then | ||
17080 | ac_cv_search_nanosleep=$ac_res | ||
17081 | else | ||
17082 | echo "$as_me: failed program was:" >&5 | ||
17083 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17084 | |||
17085 | |||
17086 | fi | ||
17087 | |||
17088 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17089 | conftest$ac_exeext | ||
17090 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
17091 | break | ||
17092 | fi | ||
17093 | done | ||
17094 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
17095 | : | ||
17096 | else | ||
17097 | ac_cv_search_nanosleep=no | ||
17098 | fi | ||
17099 | rm conftest.$ac_ext | ||
17100 | LIBS=$ac_func_search_save_LIBS | ||
17101 | fi | ||
17102 | { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
17103 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } | ||
17104 | ac_res=$ac_cv_search_nanosleep | ||
17105 | if test "$ac_res" != no; then | ||
17106 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17107 | |||
17108 | cat >>confdefs.h <<\_ACEOF | ||
17109 | #define HAVE_NANOSLEEP 1 | ||
17110 | _ACEOF | ||
17111 | |||
17112 | fi | ||
17113 | |||
17114 | |||
17115 | { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 | ||
17116 | echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } | ||
17117 | if test "${ac_cv_search_clock_gettime+set}" = set; then | ||
17118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17119 | else | ||
17120 | ac_func_search_save_LIBS=$LIBS | ||
17121 | cat >conftest.$ac_ext <<_ACEOF | ||
17122 | /* confdefs.h. */ | ||
17123 | _ACEOF | ||
17124 | cat confdefs.h >>conftest.$ac_ext | ||
17125 | cat >>conftest.$ac_ext <<_ACEOF | ||
17126 | /* end confdefs.h. */ | ||
17127 | |||
17128 | /* Override any GCC internal prototype to avoid an error. | ||
17129 | Use char because int might match the return type of a GCC | ||
17130 | builtin and then its argument prototype would still apply. */ | ||
17131 | #ifdef __cplusplus | ||
17132 | extern "C" | ||
17133 | #endif | ||
17134 | char clock_gettime (); | ||
17135 | int | ||
17136 | main () | ||
17137 | { | ||
17138 | return clock_gettime (); | ||
17139 | ; | ||
17140 | return 0; | ||
17141 | } | ||
17142 | _ACEOF | ||
17143 | for ac_lib in '' rt; do | ||
17144 | if test -z "$ac_lib"; then | ||
17145 | ac_res="none required" | ||
17146 | else | ||
17147 | ac_res=-l$ac_lib | ||
17148 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17149 | fi | ||
17150 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17151 | if { (ac_try="$ac_link" | ||
17152 | case "(($ac_try" in | ||
17153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17154 | *) ac_try_echo=$ac_try;; | ||
17155 | esac | ||
17156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17157 | (eval "$ac_link") 2>conftest.er1 | ||
17158 | ac_status=$? | ||
17159 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17160 | rm -f conftest.er1 | ||
17161 | cat conftest.err >&5 | ||
17162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17163 | (exit $ac_status); } && { | ||
17164 | test -z "$ac_c_werror_flag" || | ||
17165 | test ! -s conftest.err | ||
17166 | } && test -s conftest$ac_exeext && | ||
17167 | $as_test_x conftest$ac_exeext; then | ||
17168 | ac_cv_search_clock_gettime=$ac_res | ||
17169 | else | ||
17170 | echo "$as_me: failed program was:" >&5 | ||
17171 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17172 | |||
17173 | |||
17174 | fi | ||
17175 | |||
17176 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17177 | conftest$ac_exeext | ||
17178 | if test "${ac_cv_search_clock_gettime+set}" = set; then | ||
17179 | break | ||
17180 | fi | ||
17181 | done | ||
17182 | if test "${ac_cv_search_clock_gettime+set}" = set; then | ||
17183 | : | ||
17184 | else | ||
17185 | ac_cv_search_clock_gettime=no | ||
17186 | fi | ||
17187 | rm conftest.$ac_ext | ||
17188 | LIBS=$ac_func_search_save_LIBS | ||
17189 | fi | ||
17190 | { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 | ||
17191 | echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } | ||
17192 | ac_res=$ac_cv_search_clock_gettime | ||
17193 | if test "$ac_res" != no; then | ||
17194 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17195 | |||
17196 | cat >>confdefs.h <<\_ACEOF | ||
17197 | #define HAVE_CLOCK_GETTIME 1 | ||
17198 | _ACEOF | ||
17199 | |||
17200 | fi | ||
17201 | |||
17202 | |||
17203 | { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
17204 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; } | ||
17205 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
17206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17207 | else | ||
17208 | cat >conftest.$ac_ext <<_ACEOF | ||
17209 | /* confdefs.h. */ | ||
17210 | _ACEOF | ||
17211 | cat confdefs.h >>conftest.$ac_ext | ||
17212 | cat >>conftest.$ac_ext <<_ACEOF | ||
17213 | /* end confdefs.h. */ | ||
17214 | $ac_includes_default | ||
17215 | int | ||
17216 | main () | ||
17217 | { | ||
17218 | #ifndef getrusage | ||
17219 | (void) getrusage; | ||
17220 | #endif | ||
17221 | |||
17222 | ; | ||
17223 | return 0; | ||
17224 | } | ||
17225 | _ACEOF | ||
17226 | rm -f conftest.$ac_objext | ||
17227 | if { (ac_try="$ac_compile" | ||
17228 | case "(($ac_try" in | ||
17229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17230 | *) ac_try_echo=$ac_try;; | ||
17231 | esac | ||
17232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17233 | (eval "$ac_compile") 2>conftest.er1 | ||
17234 | ac_status=$? | ||
17235 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17236 | rm -f conftest.er1 | ||
17237 | cat conftest.err >&5 | ||
17238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17239 | (exit $ac_status); } && { | ||
17240 | test -z "$ac_c_werror_flag" || | ||
17241 | test ! -s conftest.err | ||
17242 | } && test -s conftest.$ac_objext; then | ||
17243 | ac_cv_have_decl_getrusage=yes | ||
17244 | else | ||
17245 | echo "$as_me: failed program was:" >&5 | ||
17246 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17247 | |||
17248 | ac_cv_have_decl_getrusage=no | ||
17249 | fi | ||
17250 | |||
17251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17252 | fi | ||
17253 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
17254 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; } | ||
17255 | if test $ac_cv_have_decl_getrusage = yes; then | ||
17256 | |||
17257 | for ac_func in getrusage | ||
17258 | do | ||
17259 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17260 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17261 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17262 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17264 | else | ||
17265 | cat >conftest.$ac_ext <<_ACEOF | ||
17266 | /* confdefs.h. */ | ||
17267 | _ACEOF | ||
17268 | cat confdefs.h >>conftest.$ac_ext | ||
17269 | cat >>conftest.$ac_ext <<_ACEOF | ||
17270 | /* end confdefs.h. */ | ||
17271 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17272 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17273 | #define $ac_func innocuous_$ac_func | ||
17274 | |||
17275 | /* System header to define __stub macros and hopefully few prototypes, | ||
17276 | which can conflict with char $ac_func (); below. | ||
17277 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17278 | <limits.h> exists even on freestanding compilers. */ | ||
17279 | |||
17280 | #ifdef __STDC__ | ||
17281 | # include <limits.h> | ||
17282 | #else | ||
17283 | # include <assert.h> | ||
17284 | #endif | ||
17285 | |||
17286 | #undef $ac_func | ||
17287 | |||
17288 | /* Override any GCC internal prototype to avoid an error. | ||
17289 | Use char because int might match the return type of a GCC | ||
17290 | builtin and then its argument prototype would still apply. */ | ||
17291 | #ifdef __cplusplus | ||
17292 | extern "C" | ||
17293 | #endif | ||
17294 | char $ac_func (); | ||
17295 | /* The GNU C library defines this for functions which it implements | ||
17296 | to always fail with ENOSYS. Some functions are actually named | ||
17297 | something starting with __ and the normal name is an alias. */ | ||
17298 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17299 | choke me | ||
17300 | #endif | ||
17301 | |||
17302 | int | ||
17303 | main () | ||
17304 | { | ||
17305 | return $ac_func (); | ||
17306 | ; | ||
17307 | return 0; | ||
17308 | } | ||
17309 | _ACEOF | ||
17310 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17311 | if { (ac_try="$ac_link" | ||
17312 | case "(($ac_try" in | ||
17313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17314 | *) ac_try_echo=$ac_try;; | ||
17315 | esac | ||
17316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17317 | (eval "$ac_link") 2>conftest.er1 | ||
17318 | ac_status=$? | ||
17319 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17320 | rm -f conftest.er1 | ||
17321 | cat conftest.err >&5 | ||
17322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17323 | (exit $ac_status); } && { | ||
17324 | test -z "$ac_c_werror_flag" || | ||
17325 | test ! -s conftest.err | ||
17326 | } && test -s conftest$ac_exeext && | ||
17327 | $as_test_x conftest$ac_exeext; then | ||
17328 | eval "$as_ac_var=yes" | ||
17329 | else | ||
17330 | echo "$as_me: failed program was:" >&5 | ||
17331 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17332 | |||
17333 | eval "$as_ac_var=no" | ||
17334 | fi | ||
17335 | |||
17336 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17337 | conftest$ac_exeext conftest.$ac_ext | ||
17338 | fi | ||
17339 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17340 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17341 | echo "${ECHO_T}$ac_res" >&6; } | ||
17342 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17343 | cat >>confdefs.h <<_ACEOF | ||
17344 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17345 | _ACEOF | ||
17346 | |||
17347 | fi | ||
17348 | done | ||
17349 | |||
17350 | fi | ||
17351 | |||
17352 | { echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
17353 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; } | ||
17354 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
17355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17356 | else | ||
17357 | cat >conftest.$ac_ext <<_ACEOF | ||
17358 | /* confdefs.h. */ | ||
17359 | _ACEOF | ||
17360 | cat confdefs.h >>conftest.$ac_ext | ||
17361 | cat >>conftest.$ac_ext <<_ACEOF | ||
17362 | /* end confdefs.h. */ | ||
17363 | |||
17364 | #ifdef HAVE_STRING_H | ||
17365 | # include <string.h> | ||
17366 | #endif | ||
17367 | |||
17368 | |||
17369 | int | ||
17370 | main () | ||
17371 | { | ||
17372 | #ifndef strsep | ||
17373 | (void) strsep; | ||
17374 | #endif | ||
17375 | |||
17376 | ; | ||
17377 | return 0; | ||
17378 | } | ||
17379 | _ACEOF | ||
17380 | rm -f conftest.$ac_objext | ||
17381 | if { (ac_try="$ac_compile" | ||
17382 | case "(($ac_try" in | ||
17383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17384 | *) ac_try_echo=$ac_try;; | ||
17385 | esac | ||
17386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17387 | (eval "$ac_compile") 2>conftest.er1 | ||
17388 | ac_status=$? | ||
17389 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17390 | rm -f conftest.er1 | ||
17391 | cat conftest.err >&5 | ||
17392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17393 | (exit $ac_status); } && { | ||
17394 | test -z "$ac_c_werror_flag" || | ||
17395 | test ! -s conftest.err | ||
17396 | } && test -s conftest.$ac_objext; then | ||
17397 | ac_cv_have_decl_strsep=yes | ||
17398 | else | ||
17399 | echo "$as_me: failed program was:" >&5 | ||
17400 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17401 | |||
17402 | ac_cv_have_decl_strsep=no | ||
17403 | fi | ||
17404 | |||
17405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17406 | fi | ||
17407 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
17408 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; } | ||
17409 | if test $ac_cv_have_decl_strsep = yes; then | ||
17410 | |||
17411 | for ac_func in strsep | ||
17412 | do | ||
17413 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17414 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17415 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17416 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17418 | else | ||
17419 | cat >conftest.$ac_ext <<_ACEOF | ||
17420 | /* confdefs.h. */ | ||
17421 | _ACEOF | ||
17422 | cat confdefs.h >>conftest.$ac_ext | ||
17423 | cat >>conftest.$ac_ext <<_ACEOF | ||
17424 | /* end confdefs.h. */ | ||
17425 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17426 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17427 | #define $ac_func innocuous_$ac_func | ||
17428 | |||
17429 | /* System header to define __stub macros and hopefully few prototypes, | ||
17430 | which can conflict with char $ac_func (); below. | ||
17431 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17432 | <limits.h> exists even on freestanding compilers. */ | ||
17433 | |||
17434 | #ifdef __STDC__ | ||
17435 | # include <limits.h> | ||
17436 | #else | ||
17437 | # include <assert.h> | ||
17438 | #endif | ||
17439 | |||
17440 | #undef $ac_func | ||
17441 | |||
17442 | /* Override any GCC internal prototype to avoid an error. | ||
17443 | Use char because int might match the return type of a GCC | ||
17444 | builtin and then its argument prototype would still apply. */ | ||
17445 | #ifdef __cplusplus | ||
17446 | extern "C" | ||
17447 | #endif | ||
17448 | char $ac_func (); | ||
17449 | /* The GNU C library defines this for functions which it implements | ||
17450 | to always fail with ENOSYS. Some functions are actually named | ||
17451 | something starting with __ and the normal name is an alias. */ | ||
17452 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17453 | choke me | ||
17454 | #endif | ||
17455 | |||
17456 | int | ||
17457 | main () | ||
17458 | { | ||
17459 | return $ac_func (); | ||
17460 | ; | ||
17461 | return 0; | ||
17462 | } | ||
17463 | _ACEOF | ||
17464 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17465 | if { (ac_try="$ac_link" | ||
17466 | case "(($ac_try" in | ||
17467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17468 | *) ac_try_echo=$ac_try;; | ||
17469 | esac | ||
17470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17471 | (eval "$ac_link") 2>conftest.er1 | ||
17472 | ac_status=$? | ||
17473 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17474 | rm -f conftest.er1 | ||
17475 | cat conftest.err >&5 | ||
17476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17477 | (exit $ac_status); } && { | ||
17478 | test -z "$ac_c_werror_flag" || | ||
17479 | test ! -s conftest.err | ||
17480 | } && test -s conftest$ac_exeext && | ||
17481 | $as_test_x conftest$ac_exeext; then | ||
17482 | eval "$as_ac_var=yes" | ||
17483 | else | ||
17484 | echo "$as_me: failed program was:" >&5 | ||
17485 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17486 | |||
17487 | eval "$as_ac_var=no" | ||
17488 | fi | ||
17489 | |||
17490 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17491 | conftest$ac_exeext conftest.$ac_ext | ||
17492 | fi | ||
17493 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17494 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17495 | echo "${ECHO_T}$ac_res" >&6; } | ||
17496 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17497 | cat >>confdefs.h <<_ACEOF | ||
17498 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17499 | _ACEOF | ||
17500 | |||
17501 | fi | ||
17502 | done | ||
17503 | |||
17504 | fi | ||
17505 | |||
17506 | |||
17507 | { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
17508 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; } | ||
17509 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
17510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17511 | else | ||
17512 | cat >conftest.$ac_ext <<_ACEOF | ||
17513 | /* confdefs.h. */ | ||
17514 | _ACEOF | ||
17515 | cat confdefs.h >>conftest.$ac_ext | ||
17516 | cat >>conftest.$ac_ext <<_ACEOF | ||
17517 | /* end confdefs.h. */ | ||
17518 | #include <termios.h> | ||
17519 | |||
17520 | |||
17521 | int | ||
17522 | main () | ||
17523 | { | ||
17524 | #ifndef tcsendbreak | ||
17525 | (void) tcsendbreak; | ||
17526 | #endif | ||
17527 | |||
17528 | ; | ||
17529 | return 0; | ||
17530 | } | ||
17531 | _ACEOF | ||
17532 | rm -f conftest.$ac_objext | ||
17533 | if { (ac_try="$ac_compile" | ||
17534 | case "(($ac_try" in | ||
17535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17536 | *) ac_try_echo=$ac_try;; | ||
17537 | esac | ||
17538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17539 | (eval "$ac_compile") 2>conftest.er1 | ||
17540 | ac_status=$? | ||
17541 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17542 | rm -f conftest.er1 | ||
17543 | cat conftest.err >&5 | ||
17544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17545 | (exit $ac_status); } && { | ||
17546 | test -z "$ac_c_werror_flag" || | ||
17547 | test ! -s conftest.err | ||
17548 | } && test -s conftest.$ac_objext; then | ||
17549 | ac_cv_have_decl_tcsendbreak=yes | ||
17550 | else | ||
17551 | echo "$as_me: failed program was:" >&5 | ||
17552 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17553 | |||
17554 | ac_cv_have_decl_tcsendbreak=no | ||
17555 | fi | ||
17556 | |||
17557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17558 | fi | ||
17559 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
17560 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; } | ||
17561 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
17562 | cat >>confdefs.h <<\_ACEOF | ||
17563 | #define HAVE_TCSENDBREAK 1 | ||
17564 | _ACEOF | ||
17565 | |||
17566 | else | ||
17567 | |||
17568 | for ac_func in tcsendbreak | ||
17569 | do | ||
17570 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17571 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17572 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17573 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17575 | else | ||
17576 | cat >conftest.$ac_ext <<_ACEOF | ||
17577 | /* confdefs.h. */ | ||
17578 | _ACEOF | ||
17579 | cat confdefs.h >>conftest.$ac_ext | ||
17580 | cat >>conftest.$ac_ext <<_ACEOF | ||
17581 | /* end confdefs.h. */ | ||
17582 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17583 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17584 | #define $ac_func innocuous_$ac_func | ||
17585 | |||
17586 | /* System header to define __stub macros and hopefully few prototypes, | ||
17587 | which can conflict with char $ac_func (); below. | ||
17588 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17589 | <limits.h> exists even on freestanding compilers. */ | ||
17590 | |||
17591 | #ifdef __STDC__ | ||
17592 | # include <limits.h> | ||
17593 | #else | ||
17594 | # include <assert.h> | ||
17595 | #endif | ||
17596 | |||
17597 | #undef $ac_func | ||
17598 | |||
17599 | /* Override any GCC internal prototype to avoid an error. | ||
17600 | Use char because int might match the return type of a GCC | ||
17601 | builtin and then its argument prototype would still apply. */ | ||
17602 | #ifdef __cplusplus | ||
17603 | extern "C" | ||
17604 | #endif | ||
17605 | char $ac_func (); | ||
17606 | /* The GNU C library defines this for functions which it implements | ||
17607 | to always fail with ENOSYS. Some functions are actually named | ||
17608 | something starting with __ and the normal name is an alias. */ | ||
17609 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17610 | choke me | ||
17611 | #endif | ||
17612 | |||
17613 | int | ||
17614 | main () | ||
17615 | { | ||
17616 | return $ac_func (); | ||
17617 | ; | ||
17618 | return 0; | ||
17619 | } | ||
17620 | _ACEOF | ||
17621 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17622 | if { (ac_try="$ac_link" | ||
17623 | case "(($ac_try" in | ||
17624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17625 | *) ac_try_echo=$ac_try;; | ||
17626 | esac | ||
17627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17628 | (eval "$ac_link") 2>conftest.er1 | ||
17629 | ac_status=$? | ||
17630 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17631 | rm -f conftest.er1 | ||
17632 | cat conftest.err >&5 | ||
17633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17634 | (exit $ac_status); } && { | ||
17635 | test -z "$ac_c_werror_flag" || | ||
17636 | test ! -s conftest.err | ||
17637 | } && test -s conftest$ac_exeext && | ||
17638 | $as_test_x conftest$ac_exeext; then | ||
17639 | eval "$as_ac_var=yes" | ||
17640 | else | ||
17641 | echo "$as_me: failed program was:" >&5 | ||
17642 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17643 | |||
17644 | eval "$as_ac_var=no" | ||
17645 | fi | ||
17646 | |||
17647 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17648 | conftest$ac_exeext conftest.$ac_ext | ||
17649 | fi | ||
17650 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17651 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17652 | echo "${ECHO_T}$ac_res" >&6; } | ||
17653 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17654 | cat >>confdefs.h <<_ACEOF | ||
17655 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17656 | _ACEOF | ||
17657 | |||
17658 | fi | ||
17659 | done | ||
17660 | |||
17661 | fi | ||
17662 | |||
17663 | |||
17664 | { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
17665 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } | ||
17666 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
17667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17668 | else | ||
17669 | cat >conftest.$ac_ext <<_ACEOF | ||
17670 | /* confdefs.h. */ | ||
17671 | _ACEOF | ||
17672 | cat confdefs.h >>conftest.$ac_ext | ||
17673 | cat >>conftest.$ac_ext <<_ACEOF | ||
17674 | /* end confdefs.h. */ | ||
17675 | #include <netdb.h> | ||
17676 | |||
17677 | int | ||
17678 | main () | ||
17679 | { | ||
17680 | #ifndef h_errno | ||
17681 | (void) h_errno; | ||
17682 | #endif | ||
17683 | |||
17684 | ; | ||
17685 | return 0; | ||
17686 | } | ||
17687 | _ACEOF | ||
17688 | rm -f conftest.$ac_objext | ||
17689 | if { (ac_try="$ac_compile" | ||
17690 | case "(($ac_try" in | ||
17691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17692 | *) ac_try_echo=$ac_try;; | ||
17693 | esac | ||
17694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17695 | (eval "$ac_compile") 2>conftest.er1 | ||
17696 | ac_status=$? | ||
17697 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17698 | rm -f conftest.er1 | ||
17699 | cat conftest.err >&5 | ||
17700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17701 | (exit $ac_status); } && { | ||
17702 | test -z "$ac_c_werror_flag" || | ||
17703 | test ! -s conftest.err | ||
17704 | } && test -s conftest.$ac_objext; then | ||
17705 | ac_cv_have_decl_h_errno=yes | ||
17706 | else | ||
17707 | echo "$as_me: failed program was:" >&5 | ||
17708 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17709 | |||
17710 | ac_cv_have_decl_h_errno=no | ||
17711 | fi | ||
17712 | |||
17713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17714 | fi | ||
17715 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
17716 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } | ||
17717 | if test $ac_cv_have_decl_h_errno = yes; then | ||
17718 | |||
17719 | cat >>confdefs.h <<_ACEOF | ||
17720 | #define HAVE_DECL_H_ERRNO 1 | ||
17721 | _ACEOF | ||
17722 | |||
17723 | |||
17724 | else | ||
17725 | cat >>confdefs.h <<_ACEOF | ||
17726 | #define HAVE_DECL_H_ERRNO 0 | ||
17727 | _ACEOF | ||
17728 | |||
17729 | |||
17730 | fi | ||
17731 | |||
17732 | |||
17733 | |||
17734 | { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 | ||
17735 | echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; } | ||
17736 | if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then | ||
17737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17738 | else | ||
17739 | cat >conftest.$ac_ext <<_ACEOF | ||
17740 | /* confdefs.h. */ | ||
17741 | _ACEOF | ||
17742 | cat confdefs.h >>conftest.$ac_ext | ||
17743 | cat >>conftest.$ac_ext <<_ACEOF | ||
17744 | /* end confdefs.h. */ | ||
17745 | |||
17746 | #include <sys/types.h> | ||
17747 | #include <sys/socket.h> | ||
17748 | |||
17749 | |||
17750 | int | ||
17751 | main () | ||
17752 | { | ||
17753 | #ifndef SHUT_RD | ||
17754 | (void) SHUT_RD; | ||
17755 | #endif | ||
17756 | |||
17757 | ; | ||
17758 | return 0; | ||
17759 | } | ||
17760 | _ACEOF | ||
17761 | rm -f conftest.$ac_objext | ||
17762 | if { (ac_try="$ac_compile" | ||
17763 | case "(($ac_try" in | ||
17764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17765 | *) ac_try_echo=$ac_try;; | ||
17766 | esac | ||
17767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17768 | (eval "$ac_compile") 2>conftest.er1 | ||
17769 | ac_status=$? | ||
17770 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17771 | rm -f conftest.er1 | ||
17772 | cat conftest.err >&5 | ||
17773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17774 | (exit $ac_status); } && { | ||
17775 | test -z "$ac_c_werror_flag" || | ||
17776 | test ! -s conftest.err | ||
17777 | } && test -s conftest.$ac_objext; then | ||
17778 | ac_cv_have_decl_SHUT_RD=yes | ||
17779 | else | ||
17780 | echo "$as_me: failed program was:" >&5 | ||
17781 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17782 | |||
17783 | ac_cv_have_decl_SHUT_RD=no | ||
17784 | fi | ||
17785 | |||
17786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17787 | fi | ||
17788 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 | ||
17789 | echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; } | ||
17790 | if test $ac_cv_have_decl_SHUT_RD = yes; then | ||
17791 | |||
17792 | cat >>confdefs.h <<_ACEOF | ||
17793 | #define HAVE_DECL_SHUT_RD 1 | ||
17794 | _ACEOF | ||
17795 | |||
17796 | |||
17797 | else | ||
17798 | cat >>confdefs.h <<_ACEOF | ||
17799 | #define HAVE_DECL_SHUT_RD 0 | ||
17800 | _ACEOF | ||
17801 | |||
17802 | |||
17803 | fi | ||
17804 | |||
17805 | |||
17806 | |||
17807 | { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 | ||
17808 | echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; } | ||
17809 | if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then | ||
17810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17811 | else | ||
17812 | cat >conftest.$ac_ext <<_ACEOF | ||
17813 | /* confdefs.h. */ | ||
17814 | _ACEOF | ||
17815 | cat confdefs.h >>conftest.$ac_ext | ||
17816 | cat >>conftest.$ac_ext <<_ACEOF | ||
17817 | /* end confdefs.h. */ | ||
17818 | |||
17819 | #include <sys/types.h> | ||
17820 | #ifdef HAVE_SYS_STAT_H | ||
17821 | # include <sys/stat.h> | ||
17822 | #endif | ||
17823 | #ifdef HAVE_FCNTL_H | ||
17824 | # include <fcntl.h> | ||
17825 | #endif | ||
17826 | |||
17827 | |||
17828 | int | ||
17829 | main () | ||
17830 | { | ||
17831 | #ifndef O_NONBLOCK | ||
17832 | (void) O_NONBLOCK; | ||
17833 | #endif | ||
17834 | |||
17835 | ; | ||
17836 | return 0; | ||
17837 | } | ||
17838 | _ACEOF | ||
17839 | rm -f conftest.$ac_objext | ||
17840 | if { (ac_try="$ac_compile" | ||
17841 | case "(($ac_try" in | ||
17842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17843 | *) ac_try_echo=$ac_try;; | ||
17844 | esac | ||
17845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17846 | (eval "$ac_compile") 2>conftest.er1 | ||
17847 | ac_status=$? | ||
17848 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17849 | rm -f conftest.er1 | ||
17850 | cat conftest.err >&5 | ||
17851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17852 | (exit $ac_status); } && { | ||
17853 | test -z "$ac_c_werror_flag" || | ||
17854 | test ! -s conftest.err | ||
17855 | } && test -s conftest.$ac_objext; then | ||
17856 | ac_cv_have_decl_O_NONBLOCK=yes | ||
17857 | else | ||
17858 | echo "$as_me: failed program was:" >&5 | ||
17859 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17860 | |||
17861 | ac_cv_have_decl_O_NONBLOCK=no | ||
17862 | fi | ||
17863 | |||
17864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17865 | fi | ||
17866 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 | ||
17867 | echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; } | ||
17868 | if test $ac_cv_have_decl_O_NONBLOCK = yes; then | ||
17869 | |||
17870 | cat >>confdefs.h <<_ACEOF | ||
17871 | #define HAVE_DECL_O_NONBLOCK 1 | ||
17872 | _ACEOF | ||
17873 | |||
17874 | |||
17875 | else | ||
17876 | cat >>confdefs.h <<_ACEOF | ||
17877 | #define HAVE_DECL_O_NONBLOCK 0 | ||
17878 | _ACEOF | ||
17879 | |||
17880 | |||
17881 | fi | ||
17882 | |||
17883 | |||
17884 | |||
17885 | { echo "$as_me:$LINENO: checking whether writev is declared" >&5 | ||
17886 | echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; } | ||
17887 | if test "${ac_cv_have_decl_writev+set}" = set; then | ||
17888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17889 | else | ||
17890 | cat >conftest.$ac_ext <<_ACEOF | ||
17891 | /* confdefs.h. */ | ||
17892 | _ACEOF | ||
17893 | cat confdefs.h >>conftest.$ac_ext | ||
17894 | cat >>conftest.$ac_ext <<_ACEOF | ||
17895 | /* end confdefs.h. */ | ||
17896 | |||
17897 | #include <sys/types.h> | ||
17898 | #include <sys/uio.h> | ||
17899 | #include <unistd.h> | ||
17900 | |||
17901 | |||
17902 | int | ||
17903 | main () | ||
17904 | { | ||
17905 | #ifndef writev | ||
17906 | (void) writev; | ||
17907 | #endif | ||
17908 | |||
17909 | ; | ||
17910 | return 0; | ||
17911 | } | ||
17912 | _ACEOF | ||
17913 | rm -f conftest.$ac_objext | ||
17914 | if { (ac_try="$ac_compile" | ||
17915 | case "(($ac_try" in | ||
17916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17917 | *) ac_try_echo=$ac_try;; | ||
17918 | esac | ||
17919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17920 | (eval "$ac_compile") 2>conftest.er1 | ||
17921 | ac_status=$? | ||
17922 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17923 | rm -f conftest.er1 | ||
17924 | cat conftest.err >&5 | ||
17925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17926 | (exit $ac_status); } && { | ||
17927 | test -z "$ac_c_werror_flag" || | ||
17928 | test ! -s conftest.err | ||
17929 | } && test -s conftest.$ac_objext; then | ||
17930 | ac_cv_have_decl_writev=yes | ||
17931 | else | ||
17932 | echo "$as_me: failed program was:" >&5 | ||
17933 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17934 | |||
17935 | ac_cv_have_decl_writev=no | ||
17936 | fi | ||
17937 | |||
17938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17939 | fi | ||
17940 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 | ||
17941 | echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; } | ||
17942 | if test $ac_cv_have_decl_writev = yes; then | ||
17943 | |||
17944 | cat >>confdefs.h <<_ACEOF | ||
17945 | #define HAVE_DECL_WRITEV 1 | ||
17946 | _ACEOF | ||
17947 | |||
17948 | |||
17949 | else | ||
17950 | cat >>confdefs.h <<_ACEOF | ||
17951 | #define HAVE_DECL_WRITEV 0 | ||
17952 | _ACEOF | ||
17953 | |||
17954 | |||
17955 | fi | ||
17956 | |||
17957 | |||
17958 | |||
17959 | { echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5 | ||
17960 | echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; } | ||
17961 | if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then | ||
17962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17963 | else | ||
17964 | cat >conftest.$ac_ext <<_ACEOF | ||
17965 | /* confdefs.h. */ | ||
17966 | _ACEOF | ||
17967 | cat confdefs.h >>conftest.$ac_ext | ||
17968 | cat >>conftest.$ac_ext <<_ACEOF | ||
17969 | /* end confdefs.h. */ | ||
17970 | |||
17971 | #include <sys/param.h> | ||
17972 | |||
17973 | |||
17974 | int | ||
17975 | main () | ||
17976 | { | ||
17977 | #ifndef MAXSYMLINKS | ||
17978 | (void) MAXSYMLINKS; | ||
17979 | #endif | ||
17980 | |||
17981 | ; | ||
17982 | return 0; | ||
17983 | } | ||
17984 | _ACEOF | ||
17985 | rm -f conftest.$ac_objext | ||
17986 | if { (ac_try="$ac_compile" | ||
17987 | case "(($ac_try" in | ||
17988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17989 | *) ac_try_echo=$ac_try;; | ||
17990 | esac | ||
17991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17992 | (eval "$ac_compile") 2>conftest.er1 | ||
17993 | ac_status=$? | ||
17994 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17995 | rm -f conftest.er1 | ||
17996 | cat conftest.err >&5 | ||
17997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17998 | (exit $ac_status); } && { | ||
17999 | test -z "$ac_c_werror_flag" || | ||
18000 | test ! -s conftest.err | ||
18001 | } && test -s conftest.$ac_objext; then | ||
18002 | ac_cv_have_decl_MAXSYMLINKS=yes | ||
18003 | else | ||
18004 | echo "$as_me: failed program was:" >&5 | ||
18005 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18006 | |||
18007 | ac_cv_have_decl_MAXSYMLINKS=no | ||
18008 | fi | ||
18009 | |||
18010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18011 | fi | ||
18012 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5 | ||
18013 | echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; } | ||
18014 | if test $ac_cv_have_decl_MAXSYMLINKS = yes; then | ||
18015 | |||
18016 | cat >>confdefs.h <<_ACEOF | ||
18017 | #define HAVE_DECL_MAXSYMLINKS 1 | ||
18018 | _ACEOF | ||
18019 | |||
18020 | |||
18021 | else | ||
18022 | cat >>confdefs.h <<_ACEOF | ||
18023 | #define HAVE_DECL_MAXSYMLINKS 0 | ||
18024 | _ACEOF | ||
18025 | |||
18026 | |||
18027 | fi | ||
18028 | |||
18029 | |||
18030 | |||
18031 | { echo "$as_me:$LINENO: checking whether offsetof is declared" >&5 | ||
18032 | echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; } | ||
18033 | if test "${ac_cv_have_decl_offsetof+set}" = set; then | ||
18034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18035 | else | ||
18036 | cat >conftest.$ac_ext <<_ACEOF | ||
18037 | /* confdefs.h. */ | ||
18038 | _ACEOF | ||
18039 | cat confdefs.h >>conftest.$ac_ext | ||
18040 | cat >>conftest.$ac_ext <<_ACEOF | ||
18041 | /* end confdefs.h. */ | ||
18042 | |||
18043 | #include <stddef.h> | ||
18044 | |||
18045 | |||
18046 | int | ||
18047 | main () | ||
18048 | { | ||
18049 | #ifndef offsetof | ||
18050 | (void) offsetof; | ||
18051 | #endif | ||
18052 | |||
18053 | ; | ||
18054 | return 0; | ||
18055 | } | ||
18056 | _ACEOF | ||
18057 | rm -f conftest.$ac_objext | ||
18058 | if { (ac_try="$ac_compile" | ||
18059 | case "(($ac_try" in | ||
18060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18061 | *) ac_try_echo=$ac_try;; | ||
18062 | esac | ||
18063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18064 | (eval "$ac_compile") 2>conftest.er1 | ||
18065 | ac_status=$? | ||
18066 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18067 | rm -f conftest.er1 | ||
18068 | cat conftest.err >&5 | ||
18069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18070 | (exit $ac_status); } && { | ||
18071 | test -z "$ac_c_werror_flag" || | ||
18072 | test ! -s conftest.err | ||
18073 | } && test -s conftest.$ac_objext; then | ||
18074 | ac_cv_have_decl_offsetof=yes | ||
18075 | else | ||
18076 | echo "$as_me: failed program was:" >&5 | ||
18077 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18078 | |||
18079 | ac_cv_have_decl_offsetof=no | ||
18080 | fi | ||
18081 | |||
18082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18083 | fi | ||
18084 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5 | ||
18085 | echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; } | ||
18086 | if test $ac_cv_have_decl_offsetof = yes; then | ||
18087 | |||
18088 | cat >>confdefs.h <<_ACEOF | ||
18089 | #define HAVE_DECL_OFFSETOF 1 | ||
18090 | _ACEOF | ||
18091 | |||
18092 | |||
18093 | else | ||
18094 | cat >>confdefs.h <<_ACEOF | ||
18095 | #define HAVE_DECL_OFFSETOF 0 | ||
18096 | _ACEOF | ||
18097 | |||
18098 | |||
18099 | fi | ||
18100 | |||
18101 | |||
18102 | |||
18103 | # extra bits for select(2) | ||
18104 | { echo "$as_me:$LINENO: checking whether howmany is declared" >&5 | ||
18105 | echo $ECHO_N "checking whether howmany is declared... $ECHO_C" >&6; } | ||
18106 | if test "${ac_cv_have_decl_howmany+set}" = set; then | ||
18107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18108 | else | ||
18109 | cat >conftest.$ac_ext <<_ACEOF | ||
18110 | /* confdefs.h. */ | ||
18111 | _ACEOF | ||
18112 | cat confdefs.h >>conftest.$ac_ext | ||
18113 | cat >>conftest.$ac_ext <<_ACEOF | ||
18114 | /* end confdefs.h. */ | ||
18115 | |||
18116 | #include <sys/param.h> | ||
18117 | #include <sys/types.h> | ||
18118 | #ifdef HAVE_SYS_SYSMACROS_H | ||
18119 | #include <sys/sysmacros.h> | ||
18120 | #endif | ||
18121 | #ifdef HAVE_SYS_SELECT_H | ||
18122 | #include <sys/select.h> | ||
18123 | #endif | ||
18124 | #ifdef HAVE_SYS_TIME_H | ||
18125 | #include <sys/time.h> | ||
18126 | #endif | ||
18127 | #ifdef HAVE_UNISTD_H | ||
18128 | #include <unistd.h> | ||
18129 | #endif | ||
18130 | |||
18131 | |||
18132 | int | ||
18133 | main () | ||
18134 | { | ||
18135 | #ifndef howmany | ||
18136 | (void) howmany; | ||
18137 | #endif | ||
18138 | |||
18139 | ; | ||
18140 | return 0; | ||
18141 | } | ||
18142 | _ACEOF | ||
18143 | rm -f conftest.$ac_objext | ||
18144 | if { (ac_try="$ac_compile" | ||
18145 | case "(($ac_try" in | ||
18146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18147 | *) ac_try_echo=$ac_try;; | ||
18148 | esac | ||
18149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18150 | (eval "$ac_compile") 2>conftest.er1 | ||
18151 | ac_status=$? | ||
18152 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18153 | rm -f conftest.er1 | ||
18154 | cat conftest.err >&5 | ||
18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18156 | (exit $ac_status); } && { | ||
18157 | test -z "$ac_c_werror_flag" || | ||
18158 | test ! -s conftest.err | ||
18159 | } && test -s conftest.$ac_objext; then | ||
18160 | ac_cv_have_decl_howmany=yes | ||
18161 | else | ||
18162 | echo "$as_me: failed program was:" >&5 | ||
18163 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18164 | |||
18165 | ac_cv_have_decl_howmany=no | ||
18166 | fi | ||
18167 | |||
18168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18169 | fi | ||
18170 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_howmany" >&5 | ||
18171 | echo "${ECHO_T}$ac_cv_have_decl_howmany" >&6; } | ||
18172 | if test $ac_cv_have_decl_howmany = yes; then | ||
18173 | |||
18174 | cat >>confdefs.h <<_ACEOF | ||
18175 | #define HAVE_DECL_HOWMANY 1 | ||
18176 | _ACEOF | ||
18177 | |||
18178 | |||
18179 | else | ||
18180 | cat >>confdefs.h <<_ACEOF | ||
18181 | #define HAVE_DECL_HOWMANY 0 | ||
18182 | _ACEOF | ||
18183 | |||
18184 | |||
18185 | fi | ||
18186 | { echo "$as_me:$LINENO: checking whether NFDBITS is declared" >&5 | ||
18187 | echo $ECHO_N "checking whether NFDBITS is declared... $ECHO_C" >&6; } | ||
18188 | if test "${ac_cv_have_decl_NFDBITS+set}" = set; then | ||
18189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18190 | else | ||
18191 | cat >conftest.$ac_ext <<_ACEOF | ||
18192 | /* confdefs.h. */ | ||
18193 | _ACEOF | ||
18194 | cat confdefs.h >>conftest.$ac_ext | ||
18195 | cat >>conftest.$ac_ext <<_ACEOF | ||
18196 | /* end confdefs.h. */ | ||
18197 | |||
18198 | #include <sys/param.h> | ||
18199 | #include <sys/types.h> | ||
18200 | #ifdef HAVE_SYS_SYSMACROS_H | ||
18201 | #include <sys/sysmacros.h> | ||
18202 | #endif | ||
18203 | #ifdef HAVE_SYS_SELECT_H | ||
18204 | #include <sys/select.h> | ||
18205 | #endif | ||
18206 | #ifdef HAVE_SYS_TIME_H | ||
18207 | #include <sys/time.h> | ||
18208 | #endif | ||
18209 | #ifdef HAVE_UNISTD_H | ||
18210 | #include <unistd.h> | ||
18211 | #endif | ||
18212 | |||
18213 | |||
18214 | int | ||
18215 | main () | ||
18216 | { | ||
18217 | #ifndef NFDBITS | ||
18218 | (void) NFDBITS; | ||
18219 | #endif | ||
18220 | |||
18221 | ; | ||
18222 | return 0; | ||
18223 | } | ||
18224 | _ACEOF | ||
18225 | rm -f conftest.$ac_objext | ||
18226 | if { (ac_try="$ac_compile" | ||
18227 | case "(($ac_try" in | ||
18228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18229 | *) ac_try_echo=$ac_try;; | ||
18230 | esac | ||
18231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18232 | (eval "$ac_compile") 2>conftest.er1 | ||
18233 | ac_status=$? | ||
18234 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18235 | rm -f conftest.er1 | ||
18236 | cat conftest.err >&5 | ||
18237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18238 | (exit $ac_status); } && { | ||
18239 | test -z "$ac_c_werror_flag" || | ||
18240 | test ! -s conftest.err | ||
18241 | } && test -s conftest.$ac_objext; then | ||
18242 | ac_cv_have_decl_NFDBITS=yes | ||
18243 | else | ||
18244 | echo "$as_me: failed program was:" >&5 | ||
18245 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18246 | |||
18247 | ac_cv_have_decl_NFDBITS=no | ||
18248 | fi | ||
18249 | |||
18250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18251 | fi | ||
18252 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_NFDBITS" >&5 | ||
18253 | echo "${ECHO_T}$ac_cv_have_decl_NFDBITS" >&6; } | ||
18254 | if test $ac_cv_have_decl_NFDBITS = yes; then | ||
18255 | |||
18256 | cat >>confdefs.h <<_ACEOF | ||
18257 | #define HAVE_DECL_NFDBITS 1 | ||
18258 | _ACEOF | ||
18259 | |||
18260 | |||
18261 | else | ||
18262 | cat >>confdefs.h <<_ACEOF | ||
18263 | #define HAVE_DECL_NFDBITS 0 | ||
18264 | _ACEOF | ||
18265 | |||
18266 | |||
18267 | fi | ||
18268 | |||
18269 | |||
18270 | { echo "$as_me:$LINENO: checking for fd_mask" >&5 | ||
18271 | echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; } | ||
18272 | if test "${ac_cv_type_fd_mask+set}" = set; then | ||
18273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18274 | else | ||
18275 | cat >conftest.$ac_ext <<_ACEOF | ||
18276 | /* confdefs.h. */ | ||
18277 | _ACEOF | ||
18278 | cat confdefs.h >>conftest.$ac_ext | ||
18279 | cat >>conftest.$ac_ext <<_ACEOF | ||
18280 | /* end confdefs.h. */ | ||
18281 | |||
18282 | #include <sys/param.h> | ||
18283 | #include <sys/types.h> | ||
18284 | #ifdef HAVE_SYS_SELECT_H | ||
18285 | #include <sys/select.h> | ||
18286 | #endif | ||
18287 | #ifdef HAVE_SYS_TIME_H | ||
18288 | #include <sys/time.h> | ||
18289 | #endif | ||
18290 | #ifdef HAVE_UNISTD_H | ||
18291 | #include <unistd.h> | ||
18292 | #endif | ||
18293 | |||
18294 | |||
18295 | typedef fd_mask ac__type_new_; | ||
18296 | int | ||
18297 | main () | ||
18298 | { | ||
18299 | if ((ac__type_new_ *) 0) | ||
18300 | return 0; | ||
18301 | if (sizeof (ac__type_new_)) | ||
18302 | return 0; | ||
18303 | ; | ||
18304 | return 0; | ||
18305 | } | ||
18306 | _ACEOF | ||
18307 | rm -f conftest.$ac_objext | ||
18308 | if { (ac_try="$ac_compile" | ||
18309 | case "(($ac_try" in | ||
18310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18311 | *) ac_try_echo=$ac_try;; | ||
18312 | esac | ||
18313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18314 | (eval "$ac_compile") 2>conftest.er1 | ||
18315 | ac_status=$? | ||
18316 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18317 | rm -f conftest.er1 | ||
18318 | cat conftest.err >&5 | ||
18319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18320 | (exit $ac_status); } && { | ||
18321 | test -z "$ac_c_werror_flag" || | ||
18322 | test ! -s conftest.err | ||
18323 | } && test -s conftest.$ac_objext; then | ||
18324 | ac_cv_type_fd_mask=yes | ||
18325 | else | ||
18326 | echo "$as_me: failed program was:" >&5 | ||
18327 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18328 | |||
18329 | ac_cv_type_fd_mask=no | ||
18330 | fi | ||
18331 | |||
18332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18333 | fi | ||
18334 | { echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5 | ||
18335 | echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; } | ||
18336 | if test $ac_cv_type_fd_mask = yes; then | ||
18337 | |||
18338 | cat >>confdefs.h <<_ACEOF | ||
18339 | #define HAVE_FD_MASK 1 | ||
18340 | _ACEOF | ||
18341 | |||
18342 | |||
18343 | fi | ||
18344 | |||
18345 | |||
18346 | |||
18347 | for ac_func in setresuid | ||
18348 | do | ||
18349 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18350 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18351 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18352 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18354 | else | ||
18355 | cat >conftest.$ac_ext <<_ACEOF | ||
18356 | /* confdefs.h. */ | ||
18357 | _ACEOF | ||
18358 | cat confdefs.h >>conftest.$ac_ext | ||
18359 | cat >>conftest.$ac_ext <<_ACEOF | ||
18360 | /* end confdefs.h. */ | ||
18361 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18362 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18363 | #define $ac_func innocuous_$ac_func | ||
18364 | |||
18365 | /* System header to define __stub macros and hopefully few prototypes, | ||
18366 | which can conflict with char $ac_func (); below. | ||
18367 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18368 | <limits.h> exists even on freestanding compilers. */ | ||
18369 | |||
18370 | #ifdef __STDC__ | ||
18371 | # include <limits.h> | ||
18372 | #else | ||
18373 | # include <assert.h> | ||
18374 | #endif | ||
18375 | |||
18376 | #undef $ac_func | ||
18377 | |||
18378 | /* Override any GCC internal prototype to avoid an error. | ||
18379 | Use char because int might match the return type of a GCC | ||
18380 | builtin and then its argument prototype would still apply. */ | ||
18381 | #ifdef __cplusplus | ||
18382 | extern "C" | ||
18383 | #endif | ||
18384 | char $ac_func (); | ||
18385 | /* The GNU C library defines this for functions which it implements | ||
18386 | to always fail with ENOSYS. Some functions are actually named | ||
18387 | something starting with __ and the normal name is an alias. */ | ||
18388 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18389 | choke me | ||
18390 | #endif | ||
18391 | |||
18392 | int | ||
18393 | main () | ||
18394 | { | ||
18395 | return $ac_func (); | ||
18396 | ; | ||
18397 | return 0; | ||
18398 | } | ||
18399 | _ACEOF | ||
18400 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18401 | if { (ac_try="$ac_link" | ||
18402 | case "(($ac_try" in | ||
18403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18404 | *) ac_try_echo=$ac_try;; | ||
18405 | esac | ||
18406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18407 | (eval "$ac_link") 2>conftest.er1 | ||
18408 | ac_status=$? | ||
18409 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18410 | rm -f conftest.er1 | ||
18411 | cat conftest.err >&5 | ||
18412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18413 | (exit $ac_status); } && { | ||
18414 | test -z "$ac_c_werror_flag" || | ||
18415 | test ! -s conftest.err | ||
18416 | } && test -s conftest$ac_exeext && | ||
18417 | $as_test_x conftest$ac_exeext; then | ||
18418 | eval "$as_ac_var=yes" | ||
18419 | else | ||
18420 | echo "$as_me: failed program was:" >&5 | ||
18421 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18422 | |||
18423 | eval "$as_ac_var=no" | ||
18424 | fi | ||
18425 | |||
18426 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18427 | conftest$ac_exeext conftest.$ac_ext | ||
18428 | fi | ||
18429 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18430 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18431 | echo "${ECHO_T}$ac_res" >&6; } | ||
18432 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18433 | cat >>confdefs.h <<_ACEOF | ||
18434 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18435 | _ACEOF | ||
18436 | |||
18437 | { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
18438 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; } | ||
18439 | if test "$cross_compiling" = yes; then | ||
18440 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
18441 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
18442 | |||
18443 | else | ||
18444 | cat >conftest.$ac_ext <<_ACEOF | ||
18445 | /* confdefs.h. */ | ||
18446 | _ACEOF | ||
18447 | cat confdefs.h >>conftest.$ac_ext | ||
18448 | cat >>conftest.$ac_ext <<_ACEOF | ||
18449 | /* end confdefs.h. */ | ||
18450 | |||
18451 | #include <stdlib.h> | ||
18452 | #include <errno.h> | ||
18453 | |||
18454 | int | ||
18455 | main () | ||
18456 | { | ||
18457 | |||
18458 | errno=0; | ||
18459 | setresuid(0,0,0); | ||
18460 | if (errno==ENOSYS) | ||
18461 | exit(1); | ||
18462 | else | ||
18463 | exit(0); | ||
18464 | |||
18465 | ; | ||
18466 | return 0; | ||
18467 | } | ||
18468 | _ACEOF | ||
18469 | rm -f conftest$ac_exeext | ||
18470 | if { (ac_try="$ac_link" | ||
18471 | case "(($ac_try" in | ||
18472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18473 | *) ac_try_echo=$ac_try;; | ||
18474 | esac | ||
18475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18476 | (eval "$ac_link") 2>&5 | ||
18477 | ac_status=$? | ||
18478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18479 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18480 | { (case "(($ac_try" in | ||
18481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18482 | *) ac_try_echo=$ac_try;; | ||
18483 | esac | ||
18484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18485 | (eval "$ac_try") 2>&5 | ||
18486 | ac_status=$? | ||
18487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18488 | (exit $ac_status); }; }; then | ||
18489 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18490 | echo "${ECHO_T}yes" >&6; } | ||
18491 | else | ||
18492 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18493 | echo "$as_me: failed program was:" >&5 | ||
18494 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18495 | |||
18496 | ( exit $ac_status ) | ||
18497 | |||
18498 | cat >>confdefs.h <<\_ACEOF | ||
18499 | #define BROKEN_SETRESUID 1 | ||
18500 | _ACEOF | ||
18501 | |||
18502 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
18503 | echo "${ECHO_T}not implemented" >&6; } | ||
18504 | fi | ||
18505 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18506 | fi | ||
18507 | |||
18508 | |||
18509 | |||
18510 | fi | ||
18511 | done | ||
18512 | |||
18513 | |||
18514 | |||
18515 | for ac_func in setresgid | ||
18516 | do | ||
18517 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18518 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18519 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18520 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18522 | else | ||
18523 | cat >conftest.$ac_ext <<_ACEOF | ||
18524 | /* confdefs.h. */ | ||
18525 | _ACEOF | ||
18526 | cat confdefs.h >>conftest.$ac_ext | ||
18527 | cat >>conftest.$ac_ext <<_ACEOF | ||
18528 | /* end confdefs.h. */ | ||
18529 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18530 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18531 | #define $ac_func innocuous_$ac_func | ||
18532 | |||
18533 | /* System header to define __stub macros and hopefully few prototypes, | ||
18534 | which can conflict with char $ac_func (); below. | ||
18535 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18536 | <limits.h> exists even on freestanding compilers. */ | ||
18537 | |||
18538 | #ifdef __STDC__ | ||
18539 | # include <limits.h> | ||
18540 | #else | ||
18541 | # include <assert.h> | ||
18542 | #endif | ||
18543 | |||
18544 | #undef $ac_func | ||
18545 | |||
18546 | /* Override any GCC internal prototype to avoid an error. | ||
18547 | Use char because int might match the return type of a GCC | ||
18548 | builtin and then its argument prototype would still apply. */ | ||
18549 | #ifdef __cplusplus | ||
18550 | extern "C" | ||
18551 | #endif | ||
18552 | char $ac_func (); | ||
18553 | /* The GNU C library defines this for functions which it implements | ||
18554 | to always fail with ENOSYS. Some functions are actually named | ||
18555 | something starting with __ and the normal name is an alias. */ | ||
18556 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18557 | choke me | ||
18558 | #endif | ||
18559 | |||
18560 | int | ||
18561 | main () | ||
18562 | { | ||
18563 | return $ac_func (); | ||
18564 | ; | ||
18565 | return 0; | ||
18566 | } | ||
18567 | _ACEOF | ||
18568 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18569 | if { (ac_try="$ac_link" | ||
18570 | case "(($ac_try" in | ||
18571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18572 | *) ac_try_echo=$ac_try;; | ||
18573 | esac | ||
18574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18575 | (eval "$ac_link") 2>conftest.er1 | ||
18576 | ac_status=$? | ||
18577 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18578 | rm -f conftest.er1 | ||
18579 | cat conftest.err >&5 | ||
18580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18581 | (exit $ac_status); } && { | ||
18582 | test -z "$ac_c_werror_flag" || | ||
18583 | test ! -s conftest.err | ||
18584 | } && test -s conftest$ac_exeext && | ||
18585 | $as_test_x conftest$ac_exeext; then | ||
18586 | eval "$as_ac_var=yes" | ||
18587 | else | ||
18588 | echo "$as_me: failed program was:" >&5 | ||
18589 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18590 | |||
18591 | eval "$as_ac_var=no" | ||
18592 | fi | ||
18593 | |||
18594 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18595 | conftest$ac_exeext conftest.$ac_ext | ||
18596 | fi | ||
18597 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18598 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18599 | echo "${ECHO_T}$ac_res" >&6; } | ||
18600 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18601 | cat >>confdefs.h <<_ACEOF | ||
18602 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18603 | _ACEOF | ||
18604 | |||
18605 | { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
18606 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; } | ||
18607 | if test "$cross_compiling" = yes; then | ||
18608 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
18609 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
18610 | |||
18611 | else | ||
18612 | cat >conftest.$ac_ext <<_ACEOF | ||
18613 | /* confdefs.h. */ | ||
18614 | _ACEOF | ||
18615 | cat confdefs.h >>conftest.$ac_ext | ||
18616 | cat >>conftest.$ac_ext <<_ACEOF | ||
18617 | /* end confdefs.h. */ | ||
18618 | |||
18619 | #include <stdlib.h> | ||
18620 | #include <errno.h> | ||
18621 | |||
18622 | int | ||
18623 | main () | ||
18624 | { | ||
18625 | |||
18626 | errno=0; | ||
18627 | setresgid(0,0,0); | ||
18628 | if (errno==ENOSYS) | ||
18629 | exit(1); | ||
18630 | else | ||
18631 | exit(0); | ||
18632 | |||
18633 | ; | ||
18634 | return 0; | ||
18635 | } | ||
18636 | _ACEOF | ||
18637 | rm -f conftest$ac_exeext | ||
18638 | if { (ac_try="$ac_link" | ||
18639 | case "(($ac_try" in | ||
18640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18641 | *) ac_try_echo=$ac_try;; | ||
18642 | esac | ||
18643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18644 | (eval "$ac_link") 2>&5 | ||
18645 | ac_status=$? | ||
18646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18648 | { (case "(($ac_try" in | ||
18649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18650 | *) ac_try_echo=$ac_try;; | ||
18651 | esac | ||
18652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18653 | (eval "$ac_try") 2>&5 | ||
18654 | ac_status=$? | ||
18655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18656 | (exit $ac_status); }; }; then | ||
18657 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18658 | echo "${ECHO_T}yes" >&6; } | ||
18659 | else | ||
18660 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18661 | echo "$as_me: failed program was:" >&5 | ||
18662 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18663 | |||
18664 | ( exit $ac_status ) | ||
18665 | |||
18666 | cat >>confdefs.h <<\_ACEOF | ||
18667 | #define BROKEN_SETRESGID 1 | ||
18668 | _ACEOF | ||
18669 | |||
18670 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
18671 | echo "${ECHO_T}not implemented" >&6; } | ||
18672 | fi | ||
18673 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18674 | fi | ||
18675 | |||
18676 | |||
18677 | |||
18678 | fi | ||
18679 | done | ||
18680 | |||
18681 | |||
18682 | |||
18683 | for ac_func in realpath | ||
18684 | do | ||
18685 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18686 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18687 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18688 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18690 | else | ||
18691 | cat >conftest.$ac_ext <<_ACEOF | ||
18692 | /* confdefs.h. */ | ||
18693 | _ACEOF | ||
18694 | cat confdefs.h >>conftest.$ac_ext | ||
18695 | cat >>conftest.$ac_ext <<_ACEOF | ||
18696 | /* end confdefs.h. */ | ||
18697 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18698 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18699 | #define $ac_func innocuous_$ac_func | ||
18700 | |||
18701 | /* System header to define __stub macros and hopefully few prototypes, | ||
18702 | which can conflict with char $ac_func (); below. | ||
18703 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18704 | <limits.h> exists even on freestanding compilers. */ | ||
18705 | |||
18706 | #ifdef __STDC__ | ||
18707 | # include <limits.h> | ||
18708 | #else | ||
18709 | # include <assert.h> | ||
18710 | #endif | ||
18711 | |||
18712 | #undef $ac_func | ||
18713 | |||
18714 | /* Override any GCC internal prototype to avoid an error. | ||
18715 | Use char because int might match the return type of a GCC | ||
18716 | builtin and then its argument prototype would still apply. */ | ||
18717 | #ifdef __cplusplus | ||
18718 | extern "C" | ||
18719 | #endif | ||
18720 | char $ac_func (); | ||
18721 | /* The GNU C library defines this for functions which it implements | ||
18722 | to always fail with ENOSYS. Some functions are actually named | ||
18723 | something starting with __ and the normal name is an alias. */ | ||
18724 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18725 | choke me | ||
18726 | #endif | ||
18727 | |||
18728 | int | ||
18729 | main () | ||
18730 | { | ||
18731 | return $ac_func (); | ||
18732 | ; | ||
18733 | return 0; | ||
18734 | } | ||
18735 | _ACEOF | ||
18736 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18737 | if { (ac_try="$ac_link" | ||
18738 | case "(($ac_try" in | ||
18739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18740 | *) ac_try_echo=$ac_try;; | ||
18741 | esac | ||
18742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18743 | (eval "$ac_link") 2>conftest.er1 | ||
18744 | ac_status=$? | ||
18745 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18746 | rm -f conftest.er1 | ||
18747 | cat conftest.err >&5 | ||
18748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18749 | (exit $ac_status); } && { | ||
18750 | test -z "$ac_c_werror_flag" || | ||
18751 | test ! -s conftest.err | ||
18752 | } && test -s conftest$ac_exeext && | ||
18753 | $as_test_x conftest$ac_exeext; then | ||
18754 | eval "$as_ac_var=yes" | ||
18755 | else | ||
18756 | echo "$as_me: failed program was:" >&5 | ||
18757 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18758 | |||
18759 | eval "$as_ac_var=no" | ||
18760 | fi | ||
18761 | |||
18762 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18763 | conftest$ac_exeext conftest.$ac_ext | ||
18764 | fi | ||
18765 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18766 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18767 | echo "${ECHO_T}$ac_res" >&6; } | ||
18768 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18769 | cat >>confdefs.h <<_ACEOF | ||
18770 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18771 | _ACEOF | ||
18772 | |||
18773 | { echo "$as_me:$LINENO: checking if realpath works with non-existent files" >&5 | ||
18774 | echo $ECHO_N "checking if realpath works with non-existent files... $ECHO_C" >&6; } | ||
18775 | if test "$cross_compiling" = yes; then | ||
18776 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming working" >&5 | ||
18777 | echo "$as_me: WARNING: cross compiling: assuming working" >&2;} | ||
18778 | |||
18779 | else | ||
18780 | cat >conftest.$ac_ext <<_ACEOF | ||
18781 | /* confdefs.h. */ | ||
18782 | _ACEOF | ||
18783 | cat confdefs.h >>conftest.$ac_ext | ||
18784 | cat >>conftest.$ac_ext <<_ACEOF | ||
18785 | /* end confdefs.h. */ | ||
18786 | |||
18787 | #include <limits.h> | ||
18788 | #include <stdlib.h> | ||
18789 | #include <errno.h> | ||
18790 | |||
18791 | int | ||
18792 | main () | ||
18793 | { | ||
18794 | |||
18795 | char buf[PATH_MAX]; | ||
18796 | if (realpath("/opensshnonexistentfilename1234", buf) == NULL) | ||
18797 | if (errno == ENOENT) | ||
18798 | exit(1); | ||
18799 | exit(0); | ||
18800 | |||
18801 | ; | ||
18802 | return 0; | ||
18803 | } | ||
18804 | _ACEOF | ||
18805 | rm -f conftest$ac_exeext | ||
18806 | if { (ac_try="$ac_link" | ||
18807 | case "(($ac_try" in | ||
18808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18809 | *) ac_try_echo=$ac_try;; | ||
18810 | esac | ||
18811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18812 | (eval "$ac_link") 2>&5 | ||
18813 | ac_status=$? | ||
18814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18815 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18816 | { (case "(($ac_try" in | ||
18817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18818 | *) ac_try_echo=$ac_try;; | ||
18819 | esac | ||
18820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18821 | (eval "$ac_try") 2>&5 | ||
18822 | ac_status=$? | ||
18823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18824 | (exit $ac_status); }; }; then | ||
18825 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18826 | echo "${ECHO_T}yes" >&6; } | ||
18827 | else | ||
18828 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18829 | echo "$as_me: failed program was:" >&5 | ||
18830 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18831 | |||
18832 | ( exit $ac_status ) | ||
18833 | |||
18834 | cat >>confdefs.h <<\_ACEOF | ||
18835 | #define BROKEN_REALPATH 1 | ||
18836 | _ACEOF | ||
18837 | |||
18838 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18839 | echo "${ECHO_T}no" >&6; } | ||
18840 | fi | ||
18841 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18842 | fi | ||
18843 | |||
18844 | |||
18845 | |||
18846 | fi | ||
18847 | done | ||
18848 | |||
18849 | |||
18850 | |||
18851 | |||
18852 | for ac_func in gettimeofday time | ||
18853 | do | ||
18854 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18855 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18856 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18857 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18859 | else | ||
18860 | cat >conftest.$ac_ext <<_ACEOF | ||
18861 | /* confdefs.h. */ | ||
18862 | _ACEOF | ||
18863 | cat confdefs.h >>conftest.$ac_ext | ||
18864 | cat >>conftest.$ac_ext <<_ACEOF | ||
18865 | /* end confdefs.h. */ | ||
18866 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18867 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18868 | #define $ac_func innocuous_$ac_func | ||
18869 | |||
18870 | /* System header to define __stub macros and hopefully few prototypes, | ||
18871 | which can conflict with char $ac_func (); below. | ||
18872 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18873 | <limits.h> exists even on freestanding compilers. */ | ||
18874 | |||
18875 | #ifdef __STDC__ | ||
18876 | # include <limits.h> | ||
18877 | #else | ||
18878 | # include <assert.h> | ||
18879 | #endif | ||
18880 | |||
18881 | #undef $ac_func | ||
18882 | |||
18883 | /* Override any GCC internal prototype to avoid an error. | ||
18884 | Use char because int might match the return type of a GCC | ||
18885 | builtin and then its argument prototype would still apply. */ | ||
18886 | #ifdef __cplusplus | ||
18887 | extern "C" | ||
18888 | #endif | ||
18889 | char $ac_func (); | ||
18890 | /* The GNU C library defines this for functions which it implements | ||
18891 | to always fail with ENOSYS. Some functions are actually named | ||
18892 | something starting with __ and the normal name is an alias. */ | ||
18893 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18894 | choke me | ||
18895 | #endif | ||
18896 | |||
18897 | int | ||
18898 | main () | ||
18899 | { | ||
18900 | return $ac_func (); | ||
18901 | ; | ||
18902 | return 0; | ||
18903 | } | ||
18904 | _ACEOF | ||
18905 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18906 | if { (ac_try="$ac_link" | ||
18907 | case "(($ac_try" in | ||
18908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18909 | *) ac_try_echo=$ac_try;; | ||
18910 | esac | ||
18911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18912 | (eval "$ac_link") 2>conftest.er1 | ||
18913 | ac_status=$? | ||
18914 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18915 | rm -f conftest.er1 | ||
18916 | cat conftest.err >&5 | ||
18917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18918 | (exit $ac_status); } && { | ||
18919 | test -z "$ac_c_werror_flag" || | ||
18920 | test ! -s conftest.err | ||
18921 | } && test -s conftest$ac_exeext && | ||
18922 | $as_test_x conftest$ac_exeext; then | ||
18923 | eval "$as_ac_var=yes" | ||
18924 | else | ||
18925 | echo "$as_me: failed program was:" >&5 | ||
18926 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18927 | |||
18928 | eval "$as_ac_var=no" | ||
18929 | fi | ||
18930 | |||
18931 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18932 | conftest$ac_exeext conftest.$ac_ext | ||
18933 | fi | ||
18934 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18935 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18936 | echo "${ECHO_T}$ac_res" >&6; } | ||
18937 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18938 | cat >>confdefs.h <<_ACEOF | ||
18939 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18940 | _ACEOF | ||
18941 | |||
18942 | fi | ||
18943 | done | ||
18944 | |||
18945 | |||
18946 | |||
18947 | |||
18948 | |||
18949 | |||
18950 | |||
18951 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
18952 | do | ||
18953 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18954 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18955 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18956 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18958 | else | ||
18959 | cat >conftest.$ac_ext <<_ACEOF | ||
18960 | /* confdefs.h. */ | ||
18961 | _ACEOF | ||
18962 | cat confdefs.h >>conftest.$ac_ext | ||
18963 | cat >>conftest.$ac_ext <<_ACEOF | ||
18964 | /* end confdefs.h. */ | ||
18965 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18966 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18967 | #define $ac_func innocuous_$ac_func | ||
18968 | |||
18969 | /* System header to define __stub macros and hopefully few prototypes, | ||
18970 | which can conflict with char $ac_func (); below. | ||
18971 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18972 | <limits.h> exists even on freestanding compilers. */ | ||
18973 | |||
18974 | #ifdef __STDC__ | ||
18975 | # include <limits.h> | ||
18976 | #else | ||
18977 | # include <assert.h> | ||
18978 | #endif | ||
18979 | |||
18980 | #undef $ac_func | ||
18981 | |||
18982 | /* Override any GCC internal prototype to avoid an error. | ||
18983 | Use char because int might match the return type of a GCC | ||
18984 | builtin and then its argument prototype would still apply. */ | ||
18985 | #ifdef __cplusplus | ||
18986 | extern "C" | ||
18987 | #endif | ||
18988 | char $ac_func (); | ||
18989 | /* The GNU C library defines this for functions which it implements | ||
18990 | to always fail with ENOSYS. Some functions are actually named | ||
18991 | something starting with __ and the normal name is an alias. */ | ||
18992 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18993 | choke me | ||
18994 | #endif | ||
18995 | |||
18996 | int | ||
18997 | main () | ||
18998 | { | ||
18999 | return $ac_func (); | ||
19000 | ; | ||
19001 | return 0; | ||
19002 | } | ||
19003 | _ACEOF | ||
19004 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19005 | if { (ac_try="$ac_link" | ||
19006 | case "(($ac_try" in | ||
19007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19008 | *) ac_try_echo=$ac_try;; | ||
19009 | esac | ||
19010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19011 | (eval "$ac_link") 2>conftest.er1 | ||
19012 | ac_status=$? | ||
19013 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19014 | rm -f conftest.er1 | ||
19015 | cat conftest.err >&5 | ||
19016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19017 | (exit $ac_status); } && { | ||
19018 | test -z "$ac_c_werror_flag" || | ||
19019 | test ! -s conftest.err | ||
19020 | } && test -s conftest$ac_exeext && | ||
19021 | $as_test_x conftest$ac_exeext; then | ||
19022 | eval "$as_ac_var=yes" | ||
19023 | else | ||
19024 | echo "$as_me: failed program was:" >&5 | ||
19025 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19026 | |||
19027 | eval "$as_ac_var=no" | ||
19028 | fi | ||
19029 | |||
19030 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19031 | conftest$ac_exeext conftest.$ac_ext | ||
19032 | fi | ||
19033 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19034 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19035 | echo "${ECHO_T}$ac_res" >&6; } | ||
19036 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19037 | cat >>confdefs.h <<_ACEOF | ||
19038 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19039 | _ACEOF | ||
19040 | |||
19041 | fi | ||
19042 | done | ||
19043 | |||
19044 | |||
19045 | for ac_func in utmpname | ||
19046 | do | ||
19047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19048 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19050 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19052 | else | ||
19053 | cat >conftest.$ac_ext <<_ACEOF | ||
19054 | /* confdefs.h. */ | ||
19055 | _ACEOF | ||
19056 | cat confdefs.h >>conftest.$ac_ext | ||
19057 | cat >>conftest.$ac_ext <<_ACEOF | ||
19058 | /* end confdefs.h. */ | ||
19059 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19061 | #define $ac_func innocuous_$ac_func | ||
19062 | |||
19063 | /* System header to define __stub macros and hopefully few prototypes, | ||
19064 | which can conflict with char $ac_func (); below. | ||
19065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19066 | <limits.h> exists even on freestanding compilers. */ | ||
19067 | |||
19068 | #ifdef __STDC__ | ||
19069 | # include <limits.h> | ||
19070 | #else | ||
19071 | # include <assert.h> | ||
19072 | #endif | ||
19073 | |||
19074 | #undef $ac_func | ||
19075 | |||
19076 | /* Override any GCC internal prototype to avoid an error. | ||
19077 | Use char because int might match the return type of a GCC | ||
19078 | builtin and then its argument prototype would still apply. */ | ||
19079 | #ifdef __cplusplus | ||
19080 | extern "C" | ||
19081 | #endif | ||
19082 | char $ac_func (); | ||
19083 | /* The GNU C library defines this for functions which it implements | ||
19084 | to always fail with ENOSYS. Some functions are actually named | ||
19085 | something starting with __ and the normal name is an alias. */ | ||
19086 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19087 | choke me | ||
19088 | #endif | ||
19089 | |||
19090 | int | ||
19091 | main () | ||
19092 | { | ||
19093 | return $ac_func (); | ||
19094 | ; | ||
19095 | return 0; | ||
19096 | } | ||
19097 | _ACEOF | ||
19098 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19099 | if { (ac_try="$ac_link" | ||
19100 | case "(($ac_try" in | ||
19101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19102 | *) ac_try_echo=$ac_try;; | ||
19103 | esac | ||
19104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19105 | (eval "$ac_link") 2>conftest.er1 | ||
19106 | ac_status=$? | ||
19107 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19108 | rm -f conftest.er1 | ||
19109 | cat conftest.err >&5 | ||
19110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19111 | (exit $ac_status); } && { | ||
19112 | test -z "$ac_c_werror_flag" || | ||
19113 | test ! -s conftest.err | ||
19114 | } && test -s conftest$ac_exeext && | ||
19115 | $as_test_x conftest$ac_exeext; then | ||
19116 | eval "$as_ac_var=yes" | ||
19117 | else | ||
19118 | echo "$as_me: failed program was:" >&5 | ||
19119 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19120 | |||
19121 | eval "$as_ac_var=no" | ||
19122 | fi | ||
19123 | |||
19124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19125 | conftest$ac_exeext conftest.$ac_ext | ||
19126 | fi | ||
19127 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19128 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19129 | echo "${ECHO_T}$ac_res" >&6; } | ||
19130 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19131 | cat >>confdefs.h <<_ACEOF | ||
19132 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19133 | _ACEOF | ||
19134 | |||
19135 | fi | ||
19136 | done | ||
19137 | |||
19138 | |||
19139 | |||
19140 | |||
19141 | |||
19142 | |||
19143 | |||
19144 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
19145 | do | ||
19146 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19147 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19148 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19149 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19151 | else | ||
19152 | cat >conftest.$ac_ext <<_ACEOF | ||
19153 | /* confdefs.h. */ | ||
19154 | _ACEOF | ||
19155 | cat confdefs.h >>conftest.$ac_ext | ||
19156 | cat >>conftest.$ac_ext <<_ACEOF | ||
19157 | /* end confdefs.h. */ | ||
19158 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19159 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19160 | #define $ac_func innocuous_$ac_func | ||
19161 | |||
19162 | /* System header to define __stub macros and hopefully few prototypes, | ||
19163 | which can conflict with char $ac_func (); below. | ||
19164 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19165 | <limits.h> exists even on freestanding compilers. */ | ||
19166 | |||
19167 | #ifdef __STDC__ | ||
19168 | # include <limits.h> | ||
19169 | #else | ||
19170 | # include <assert.h> | ||
19171 | #endif | ||
19172 | |||
19173 | #undef $ac_func | ||
19174 | |||
19175 | /* Override any GCC internal prototype to avoid an error. | ||
19176 | Use char because int might match the return type of a GCC | ||
19177 | builtin and then its argument prototype would still apply. */ | ||
19178 | #ifdef __cplusplus | ||
19179 | extern "C" | ||
19180 | #endif | ||
19181 | char $ac_func (); | ||
19182 | /* The GNU C library defines this for functions which it implements | ||
19183 | to always fail with ENOSYS. Some functions are actually named | ||
19184 | something starting with __ and the normal name is an alias. */ | ||
19185 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19186 | choke me | ||
19187 | #endif | ||
19188 | |||
19189 | int | ||
19190 | main () | ||
19191 | { | ||
19192 | return $ac_func (); | ||
19193 | ; | ||
19194 | return 0; | ||
19195 | } | ||
19196 | _ACEOF | ||
19197 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19198 | if { (ac_try="$ac_link" | ||
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_link") 2>conftest.er1 | ||
19205 | ac_status=$? | ||
19206 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19207 | rm -f conftest.er1 | ||
19208 | cat conftest.err >&5 | ||
19209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19210 | (exit $ac_status); } && { | ||
19211 | test -z "$ac_c_werror_flag" || | ||
19212 | test ! -s conftest.err | ||
19213 | } && test -s conftest$ac_exeext && | ||
19214 | $as_test_x conftest$ac_exeext; then | ||
19215 | eval "$as_ac_var=yes" | ||
19216 | else | ||
19217 | echo "$as_me: failed program was:" >&5 | ||
19218 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19219 | |||
19220 | eval "$as_ac_var=no" | ||
19221 | fi | ||
19222 | |||
19223 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19224 | conftest$ac_exeext conftest.$ac_ext | ||
19225 | fi | ||
19226 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19227 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19228 | echo "${ECHO_T}$ac_res" >&6; } | ||
19229 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19230 | cat >>confdefs.h <<_ACEOF | ||
19231 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19232 | _ACEOF | ||
19233 | |||
19234 | fi | ||
19235 | done | ||
19236 | |||
19237 | |||
19238 | |||
19239 | |||
19240 | for ac_func in setutxdb setutxent utmpxname | ||
19241 | do | ||
19242 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19243 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19244 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19245 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19247 | else | ||
19248 | cat >conftest.$ac_ext <<_ACEOF | ||
19249 | /* confdefs.h. */ | ||
19250 | _ACEOF | ||
19251 | cat confdefs.h >>conftest.$ac_ext | ||
19252 | cat >>conftest.$ac_ext <<_ACEOF | ||
19253 | /* end confdefs.h. */ | ||
19254 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19256 | #define $ac_func innocuous_$ac_func | ||
19257 | |||
19258 | /* System header to define __stub macros and hopefully few prototypes, | ||
19259 | which can conflict with char $ac_func (); below. | ||
19260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19261 | <limits.h> exists even on freestanding compilers. */ | ||
19262 | |||
19263 | #ifdef __STDC__ | ||
19264 | # include <limits.h> | ||
19265 | #else | ||
19266 | # include <assert.h> | ||
19267 | #endif | ||
19268 | |||
19269 | #undef $ac_func | ||
19270 | |||
19271 | /* Override any GCC internal prototype to avoid an error. | ||
19272 | Use char because int might match the return type of a GCC | ||
19273 | builtin and then its argument prototype would still apply. */ | ||
19274 | #ifdef __cplusplus | ||
19275 | extern "C" | ||
19276 | #endif | ||
19277 | char $ac_func (); | ||
19278 | /* The GNU C library defines this for functions which it implements | ||
19279 | to always fail with ENOSYS. Some functions are actually named | ||
19280 | something starting with __ and the normal name is an alias. */ | ||
19281 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19282 | choke me | ||
19283 | #endif | ||
19284 | |||
19285 | int | ||
19286 | main () | ||
19287 | { | ||
19288 | return $ac_func (); | ||
19289 | ; | ||
19290 | return 0; | ||
19291 | } | ||
19292 | _ACEOF | ||
19293 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19294 | if { (ac_try="$ac_link" | ||
19295 | case "(($ac_try" in | ||
19296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19297 | *) ac_try_echo=$ac_try;; | ||
19298 | esac | ||
19299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19300 | (eval "$ac_link") 2>conftest.er1 | ||
19301 | ac_status=$? | ||
19302 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19303 | rm -f conftest.er1 | ||
19304 | cat conftest.err >&5 | ||
19305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19306 | (exit $ac_status); } && { | ||
19307 | test -z "$ac_c_werror_flag" || | ||
19308 | test ! -s conftest.err | ||
19309 | } && test -s conftest$ac_exeext && | ||
19310 | $as_test_x conftest$ac_exeext; then | ||
19311 | eval "$as_ac_var=yes" | ||
19312 | else | ||
19313 | echo "$as_me: failed program was:" >&5 | ||
19314 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19315 | |||
19316 | eval "$as_ac_var=no" | ||
19317 | fi | ||
19318 | |||
19319 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19320 | conftest$ac_exeext conftest.$ac_ext | ||
19321 | fi | ||
19322 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19323 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19324 | echo "${ECHO_T}$ac_res" >&6; } | ||
19325 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19326 | cat >>confdefs.h <<_ACEOF | ||
19327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19328 | _ACEOF | ||
19329 | |||
19330 | fi | ||
19331 | done | ||
19332 | |||
19333 | |||
19334 | for ac_func in getlastlogxbyname | ||
19335 | do | ||
19336 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19337 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19338 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19339 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19341 | else | ||
19342 | cat >conftest.$ac_ext <<_ACEOF | ||
19343 | /* confdefs.h. */ | ||
19344 | _ACEOF | ||
19345 | cat confdefs.h >>conftest.$ac_ext | ||
19346 | cat >>conftest.$ac_ext <<_ACEOF | ||
19347 | /* end confdefs.h. */ | ||
19348 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19349 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19350 | #define $ac_func innocuous_$ac_func | ||
19351 | |||
19352 | /* System header to define __stub macros and hopefully few prototypes, | ||
19353 | which can conflict with char $ac_func (); below. | ||
19354 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19355 | <limits.h> exists even on freestanding compilers. */ | ||
19356 | |||
19357 | #ifdef __STDC__ | ||
19358 | # include <limits.h> | ||
19359 | #else | ||
19360 | # include <assert.h> | ||
19361 | #endif | ||
19362 | |||
19363 | #undef $ac_func | ||
19364 | |||
19365 | /* Override any GCC internal prototype to avoid an error. | ||
19366 | Use char because int might match the return type of a GCC | ||
19367 | builtin and then its argument prototype would still apply. */ | ||
19368 | #ifdef __cplusplus | ||
19369 | extern "C" | ||
19370 | #endif | ||
19371 | char $ac_func (); | ||
19372 | /* The GNU C library defines this for functions which it implements | ||
19373 | to always fail with ENOSYS. Some functions are actually named | ||
19374 | something starting with __ and the normal name is an alias. */ | ||
19375 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19376 | choke me | ||
19377 | #endif | ||
19378 | |||
19379 | int | ||
19380 | main () | ||
19381 | { | ||
19382 | return $ac_func (); | ||
19383 | ; | ||
19384 | return 0; | ||
19385 | } | ||
19386 | _ACEOF | ||
19387 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19388 | if { (ac_try="$ac_link" | ||
19389 | case "(($ac_try" in | ||
19390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19391 | *) ac_try_echo=$ac_try;; | ||
19392 | esac | ||
19393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19394 | (eval "$ac_link") 2>conftest.er1 | ||
19395 | ac_status=$? | ||
19396 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19397 | rm -f conftest.er1 | ||
19398 | cat conftest.err >&5 | ||
19399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19400 | (exit $ac_status); } && { | ||
19401 | test -z "$ac_c_werror_flag" || | ||
19402 | test ! -s conftest.err | ||
19403 | } && test -s conftest$ac_exeext && | ||
19404 | $as_test_x conftest$ac_exeext; then | ||
19405 | eval "$as_ac_var=yes" | ||
19406 | else | ||
19407 | echo "$as_me: failed program was:" >&5 | ||
19408 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19409 | |||
19410 | eval "$as_ac_var=no" | ||
19411 | fi | ||
19412 | |||
19413 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19414 | conftest$ac_exeext conftest.$ac_ext | ||
19415 | fi | ||
19416 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19417 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19418 | echo "${ECHO_T}$ac_res" >&6; } | ||
19419 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19420 | cat >>confdefs.h <<_ACEOF | ||
19421 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19422 | _ACEOF | ||
19423 | |||
19424 | fi | ||
19425 | done | ||
19426 | |||
19427 | |||
19428 | { echo "$as_me:$LINENO: checking for daemon" >&5 | ||
19429 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } | ||
19430 | if test "${ac_cv_func_daemon+set}" = set; then | ||
19431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19432 | else | ||
19433 | cat >conftest.$ac_ext <<_ACEOF | ||
19434 | /* confdefs.h. */ | ||
19435 | _ACEOF | ||
19436 | cat confdefs.h >>conftest.$ac_ext | ||
19437 | cat >>conftest.$ac_ext <<_ACEOF | ||
19438 | /* end confdefs.h. */ | ||
19439 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
19440 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19441 | #define daemon innocuous_daemon | ||
19442 | |||
19443 | /* System header to define __stub macros and hopefully few prototypes, | ||
19444 | which can conflict with char daemon (); below. | ||
19445 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19446 | <limits.h> exists even on freestanding compilers. */ | ||
19447 | |||
19448 | #ifdef __STDC__ | ||
19449 | # include <limits.h> | ||
19450 | #else | ||
19451 | # include <assert.h> | ||
19452 | #endif | ||
19453 | |||
19454 | #undef daemon | ||
19455 | |||
19456 | /* Override any GCC internal prototype to avoid an error. | ||
19457 | Use char because int might match the return type of a GCC | ||
19458 | builtin and then its argument prototype would still apply. */ | ||
19459 | #ifdef __cplusplus | ||
19460 | extern "C" | ||
19461 | #endif | ||
19462 | char daemon (); | ||
19463 | /* The GNU C library defines this for functions which it implements | ||
19464 | to always fail with ENOSYS. Some functions are actually named | ||
19465 | something starting with __ and the normal name is an alias. */ | ||
19466 | #if defined __stub_daemon || defined __stub___daemon | ||
19467 | choke me | ||
19468 | #endif | ||
19469 | |||
19470 | int | ||
19471 | main () | ||
19472 | { | ||
19473 | return daemon (); | ||
19474 | ; | ||
19475 | return 0; | ||
19476 | } | ||
19477 | _ACEOF | ||
19478 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19479 | if { (ac_try="$ac_link" | ||
19480 | case "(($ac_try" in | ||
19481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19482 | *) ac_try_echo=$ac_try;; | ||
19483 | esac | ||
19484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19485 | (eval "$ac_link") 2>conftest.er1 | ||
19486 | ac_status=$? | ||
19487 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19488 | rm -f conftest.er1 | ||
19489 | cat conftest.err >&5 | ||
19490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19491 | (exit $ac_status); } && { | ||
19492 | test -z "$ac_c_werror_flag" || | ||
19493 | test ! -s conftest.err | ||
19494 | } && test -s conftest$ac_exeext && | ||
19495 | $as_test_x conftest$ac_exeext; then | ||
19496 | ac_cv_func_daemon=yes | ||
19497 | else | ||
19498 | echo "$as_me: failed program was:" >&5 | ||
19499 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19500 | |||
19501 | ac_cv_func_daemon=no | ||
19502 | fi | ||
19503 | |||
19504 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19505 | conftest$ac_exeext conftest.$ac_ext | ||
19506 | fi | ||
19507 | { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
19508 | echo "${ECHO_T}$ac_cv_func_daemon" >&6; } | ||
19509 | if test $ac_cv_func_daemon = yes; then | ||
19510 | |||
19511 | cat >>confdefs.h <<\_ACEOF | ||
19512 | #define HAVE_DAEMON 1 | ||
19513 | _ACEOF | ||
19514 | |||
19515 | else | ||
19516 | { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
19517 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; } | ||
19518 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
19519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19520 | else | ||
19521 | ac_check_lib_save_LIBS=$LIBS | ||
19522 | LIBS="-lbsd $LIBS" | ||
19523 | cat >conftest.$ac_ext <<_ACEOF | ||
19524 | /* confdefs.h. */ | ||
19525 | _ACEOF | ||
19526 | cat confdefs.h >>conftest.$ac_ext | ||
19527 | cat >>conftest.$ac_ext <<_ACEOF | ||
19528 | /* end confdefs.h. */ | ||
19529 | |||
19530 | /* Override any GCC internal prototype to avoid an error. | ||
19531 | Use char because int might match the return type of a GCC | ||
19532 | builtin and then its argument prototype would still apply. */ | ||
19533 | #ifdef __cplusplus | ||
19534 | extern "C" | ||
19535 | #endif | ||
19536 | char daemon (); | ||
19537 | int | ||
19538 | main () | ||
19539 | { | ||
19540 | return daemon (); | ||
19541 | ; | ||
19542 | return 0; | ||
19543 | } | ||
19544 | _ACEOF | ||
19545 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19546 | if { (ac_try="$ac_link" | ||
19547 | case "(($ac_try" in | ||
19548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19549 | *) ac_try_echo=$ac_try;; | ||
19550 | esac | ||
19551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19552 | (eval "$ac_link") 2>conftest.er1 | ||
19553 | ac_status=$? | ||
19554 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19555 | rm -f conftest.er1 | ||
19556 | cat conftest.err >&5 | ||
19557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19558 | (exit $ac_status); } && { | ||
19559 | test -z "$ac_c_werror_flag" || | ||
19560 | test ! -s conftest.err | ||
19561 | } && test -s conftest$ac_exeext && | ||
19562 | $as_test_x conftest$ac_exeext; then | ||
19563 | ac_cv_lib_bsd_daemon=yes | ||
19564 | else | ||
19565 | echo "$as_me: failed program was:" >&5 | ||
19566 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19567 | |||
19568 | ac_cv_lib_bsd_daemon=no | ||
19569 | fi | ||
19570 | |||
19571 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19572 | conftest$ac_exeext conftest.$ac_ext | ||
19573 | LIBS=$ac_check_lib_save_LIBS | ||
19574 | fi | ||
19575 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
19576 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; } | ||
19577 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
19578 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
19579 | #define HAVE_DAEMON 1 | ||
19580 | _ACEOF | ||
19581 | |||
19582 | fi | ||
19583 | |||
19584 | |||
19585 | fi | ||
19586 | |||
19587 | |||
19588 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
19589 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } | ||
19590 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
19591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19592 | else | ||
19593 | cat >conftest.$ac_ext <<_ACEOF | ||
19594 | /* confdefs.h. */ | ||
19595 | _ACEOF | ||
19596 | cat confdefs.h >>conftest.$ac_ext | ||
19597 | cat >>conftest.$ac_ext <<_ACEOF | ||
19598 | /* end confdefs.h. */ | ||
19599 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
19600 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19601 | #define getpagesize innocuous_getpagesize | ||
19602 | |||
19603 | /* System header to define __stub macros and hopefully few prototypes, | ||
19604 | which can conflict with char getpagesize (); below. | ||
19605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19606 | <limits.h> exists even on freestanding compilers. */ | ||
19607 | |||
19608 | #ifdef __STDC__ | ||
19609 | # include <limits.h> | ||
19610 | #else | ||
19611 | # include <assert.h> | ||
19612 | #endif | ||
19613 | |||
19614 | #undef getpagesize | ||
19615 | |||
19616 | /* Override any GCC internal prototype to avoid an error. | ||
19617 | Use char because int might match the return type of a GCC | ||
19618 | builtin and then its argument prototype would still apply. */ | ||
19619 | #ifdef __cplusplus | ||
19620 | extern "C" | ||
19621 | #endif | ||
19622 | char getpagesize (); | ||
19623 | /* The GNU C library defines this for functions which it implements | ||
19624 | to always fail with ENOSYS. Some functions are actually named | ||
19625 | something starting with __ and the normal name is an alias. */ | ||
19626 | #if defined __stub_getpagesize || defined __stub___getpagesize | ||
19627 | choke me | ||
19628 | #endif | ||
19629 | |||
19630 | int | ||
19631 | main () | ||
19632 | { | ||
19633 | return getpagesize (); | ||
19634 | ; | ||
19635 | return 0; | ||
19636 | } | ||
19637 | _ACEOF | ||
19638 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19639 | if { (ac_try="$ac_link" | ||
19640 | case "(($ac_try" in | ||
19641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19642 | *) ac_try_echo=$ac_try;; | ||
19643 | esac | ||
19644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19645 | (eval "$ac_link") 2>conftest.er1 | ||
19646 | ac_status=$? | ||
19647 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19648 | rm -f conftest.er1 | ||
19649 | cat conftest.err >&5 | ||
19650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19651 | (exit $ac_status); } && { | ||
19652 | test -z "$ac_c_werror_flag" || | ||
19653 | test ! -s conftest.err | ||
19654 | } && test -s conftest$ac_exeext && | ||
19655 | $as_test_x conftest$ac_exeext; then | ||
19656 | ac_cv_func_getpagesize=yes | ||
19657 | else | ||
19658 | echo "$as_me: failed program was:" >&5 | ||
19659 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19660 | |||
19661 | ac_cv_func_getpagesize=no | ||
19662 | fi | ||
19663 | |||
19664 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19665 | conftest$ac_exeext conftest.$ac_ext | ||
19666 | fi | ||
19667 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
19668 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; } | ||
19669 | if test $ac_cv_func_getpagesize = yes; then | ||
19670 | |||
19671 | cat >>confdefs.h <<\_ACEOF | ||
19672 | #define HAVE_GETPAGESIZE 1 | ||
19673 | _ACEOF | ||
19674 | |||
19675 | else | ||
19676 | { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
19677 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; } | ||
19678 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
19679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19680 | else | ||
19681 | ac_check_lib_save_LIBS=$LIBS | ||
19682 | LIBS="-lucb $LIBS" | ||
19683 | cat >conftest.$ac_ext <<_ACEOF | ||
19684 | /* confdefs.h. */ | ||
19685 | _ACEOF | ||
19686 | cat confdefs.h >>conftest.$ac_ext | ||
19687 | cat >>conftest.$ac_ext <<_ACEOF | ||
19688 | /* end confdefs.h. */ | ||
19689 | |||
19690 | /* Override any GCC internal prototype to avoid an error. | ||
19691 | Use char because int might match the return type of a GCC | ||
19692 | builtin and then its argument prototype would still apply. */ | ||
19693 | #ifdef __cplusplus | ||
19694 | extern "C" | ||
19695 | #endif | ||
19696 | char getpagesize (); | ||
19697 | int | ||
19698 | main () | ||
19699 | { | ||
19700 | return getpagesize (); | ||
19701 | ; | ||
19702 | return 0; | ||
19703 | } | ||
19704 | _ACEOF | ||
19705 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19706 | if { (ac_try="$ac_link" | ||
19707 | case "(($ac_try" in | ||
19708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19709 | *) ac_try_echo=$ac_try;; | ||
19710 | esac | ||
19711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19712 | (eval "$ac_link") 2>conftest.er1 | ||
19713 | ac_status=$? | ||
19714 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19715 | rm -f conftest.er1 | ||
19716 | cat conftest.err >&5 | ||
19717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19718 | (exit $ac_status); } && { | ||
19719 | test -z "$ac_c_werror_flag" || | ||
19720 | test ! -s conftest.err | ||
19721 | } && test -s conftest$ac_exeext && | ||
19722 | $as_test_x conftest$ac_exeext; then | ||
19723 | ac_cv_lib_ucb_getpagesize=yes | ||
19724 | else | ||
19725 | echo "$as_me: failed program was:" >&5 | ||
19726 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19727 | |||
19728 | ac_cv_lib_ucb_getpagesize=no | ||
19729 | fi | ||
19730 | |||
19731 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19732 | conftest$ac_exeext conftest.$ac_ext | ||
19733 | LIBS=$ac_check_lib_save_LIBS | ||
19734 | fi | ||
19735 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
19736 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; } | ||
19737 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
19738 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
19739 | #define HAVE_GETPAGESIZE 1 | ||
19740 | _ACEOF | ||
19741 | |||
19742 | fi | ||
19743 | |||
19744 | |||
19745 | fi | ||
19746 | |||
19747 | |||
19748 | # Check for broken snprintf | ||
19749 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
19750 | { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
19751 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; } | ||
19752 | if test "$cross_compiling" = yes; then | ||
19753 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
19754 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
19755 | |||
19756 | else | ||
19757 | cat >conftest.$ac_ext <<_ACEOF | ||
19758 | /* confdefs.h. */ | ||
19759 | _ACEOF | ||
19760 | cat confdefs.h >>conftest.$ac_ext | ||
19761 | cat >>conftest.$ac_ext <<_ACEOF | ||
19762 | /* end confdefs.h. */ | ||
19763 | #include <stdio.h> | ||
19764 | int | ||
19765 | main () | ||
19766 | { | ||
19767 | |||
19768 | char b[5]; | ||
19769 | snprintf(b,5,"123456789"); | ||
19770 | exit(b[4]!='\0'); | ||
19771 | |||
19772 | ; | ||
19773 | return 0; | ||
19774 | } | ||
19775 | _ACEOF | ||
19776 | rm -f conftest$ac_exeext | ||
19777 | if { (ac_try="$ac_link" | ||
19778 | case "(($ac_try" in | ||
19779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19780 | *) ac_try_echo=$ac_try;; | ||
19781 | esac | ||
19782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19783 | (eval "$ac_link") 2>&5 | ||
19784 | ac_status=$? | ||
19785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19787 | { (case "(($ac_try" in | ||
19788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19789 | *) ac_try_echo=$ac_try;; | ||
19790 | esac | ||
19791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19792 | (eval "$ac_try") 2>&5 | ||
19793 | ac_status=$? | ||
19794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19795 | (exit $ac_status); }; }; then | ||
19796 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19797 | echo "${ECHO_T}yes" >&6; } | ||
19798 | else | ||
19799 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19800 | echo "$as_me: failed program was:" >&5 | ||
19801 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19802 | |||
19803 | ( exit $ac_status ) | ||
19804 | |||
19805 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19806 | echo "${ECHO_T}no" >&6; } | ||
19807 | |||
19808 | cat >>confdefs.h <<\_ACEOF | ||
19809 | #define BROKEN_SNPRINTF 1 | ||
19810 | _ACEOF | ||
19811 | |||
19812 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
19813 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
19814 | |||
19815 | fi | ||
19816 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19817 | fi | ||
19818 | |||
19819 | |||
19820 | fi | ||
19821 | |||
19822 | # We depend on vsnprintf returning the right thing on overflow: the | ||
19823 | # number of characters it tried to create (as per SUSv3) | ||
19824 | if test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
19825 | { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 | ||
19826 | echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; } | ||
19827 | if test "$cross_compiling" = yes; then | ||
19828 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
19829 | echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
19830 | |||
19831 | else | ||
19832 | cat >conftest.$ac_ext <<_ACEOF | ||
19833 | /* confdefs.h. */ | ||
19834 | _ACEOF | ||
19835 | cat confdefs.h >>conftest.$ac_ext | ||
19836 | cat >>conftest.$ac_ext <<_ACEOF | ||
19837 | /* end confdefs.h. */ | ||
19838 | |||
19839 | #include <sys/types.h> | ||
19840 | #include <stdio.h> | ||
19841 | #include <stdarg.h> | ||
19842 | |||
19843 | int x_snprintf(char *str, size_t count, const char *fmt, ...) | ||
19844 | { | ||
19845 | size_t ret; | ||
19846 | va_list ap; | ||
19847 | |||
19848 | va_start(ap, fmt); | ||
19849 | ret = vsnprintf(str, count, fmt, ap); | ||
19850 | va_end(ap); | ||
19851 | return ret; | ||
19852 | } | ||
19853 | |||
19854 | int | ||
19855 | main () | ||
19856 | { | ||
19857 | |||
19858 | char x[1]; | ||
19859 | if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11) | ||
19860 | return 1; | ||
19861 | if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11) | ||
19862 | return 1; | ||
19863 | return 0; | ||
19864 | |||
19865 | ; | ||
19866 | return 0; | ||
19867 | } | ||
19868 | _ACEOF | ||
19869 | rm -f conftest$ac_exeext | ||
19870 | if { (ac_try="$ac_link" | ||
19871 | case "(($ac_try" in | ||
19872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19873 | *) ac_try_echo=$ac_try;; | ||
19874 | esac | ||
19875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19876 | (eval "$ac_link") 2>&5 | ||
19877 | ac_status=$? | ||
19878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19879 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19880 | { (case "(($ac_try" in | ||
19881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19882 | *) ac_try_echo=$ac_try;; | ||
19883 | esac | ||
19884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19885 | (eval "$ac_try") 2>&5 | ||
19886 | ac_status=$? | ||
19887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19888 | (exit $ac_status); }; }; then | ||
19889 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19890 | echo "${ECHO_T}yes" >&6; } | ||
19891 | else | ||
19892 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19893 | echo "$as_me: failed program was:" >&5 | ||
19894 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19895 | |||
19896 | ( exit $ac_status ) | ||
19897 | |||
19898 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19899 | echo "${ECHO_T}no" >&6; } | ||
19900 | |||
19901 | cat >>confdefs.h <<\_ACEOF | ||
19902 | #define BROKEN_SNPRINTF 1 | ||
19903 | _ACEOF | ||
19904 | |||
19905 | { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
19906 | echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
19907 | |||
19908 | fi | ||
19909 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19910 | fi | ||
19911 | |||
19912 | |||
19913 | fi | ||
19914 | |||
19915 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
19916 | # check that the fmt argument is const char * or just char *. | ||
19917 | # This is only useful for when BROKEN_SNPRINTF | ||
19918 | { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 | ||
19919 | echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; } | ||
19920 | cat >conftest.$ac_ext <<_ACEOF | ||
19921 | /* confdefs.h. */ | ||
19922 | _ACEOF | ||
19923 | cat confdefs.h >>conftest.$ac_ext | ||
19924 | cat >>conftest.$ac_ext <<_ACEOF | ||
19925 | /* end confdefs.h. */ | ||
19926 | |||
19927 | #include <stdio.h> | ||
19928 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
19929 | |||
19930 | int | ||
19931 | main () | ||
19932 | { | ||
19933 | |||
19934 | snprintf(0, 0, 0); | ||
19935 | |||
19936 | ; | ||
19937 | return 0; | ||
19938 | } | ||
19939 | _ACEOF | ||
19940 | rm -f conftest.$ac_objext | ||
19941 | if { (ac_try="$ac_compile" | ||
19942 | case "(($ac_try" in | ||
19943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19944 | *) ac_try_echo=$ac_try;; | ||
19945 | esac | ||
19946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19947 | (eval "$ac_compile") 2>conftest.er1 | ||
19948 | ac_status=$? | ||
19949 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19950 | rm -f conftest.er1 | ||
19951 | cat conftest.err >&5 | ||
19952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19953 | (exit $ac_status); } && { | ||
19954 | test -z "$ac_c_werror_flag" || | ||
19955 | test ! -s conftest.err | ||
19956 | } && test -s conftest.$ac_objext; then | ||
19957 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19958 | echo "${ECHO_T}yes" >&6; } | ||
19959 | |||
19960 | cat >>confdefs.h <<\_ACEOF | ||
19961 | #define SNPRINTF_CONST const | ||
19962 | _ACEOF | ||
19963 | |||
19964 | else | ||
19965 | echo "$as_me: failed program was:" >&5 | ||
19966 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19967 | |||
19968 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19969 | echo "${ECHO_T}no" >&6; } | ||
19970 | cat >>confdefs.h <<\_ACEOF | ||
19971 | #define SNPRINTF_CONST /* not const */ | ||
19972 | _ACEOF | ||
19973 | |||
19974 | fi | ||
19975 | |||
19976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19977 | |||
19978 | # Check for missing getpeereid (or equiv) support | ||
19979 | NO_PEERCHECK="" | ||
19980 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
19981 | { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
19982 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; } | ||
19983 | cat >conftest.$ac_ext <<_ACEOF | ||
19984 | /* confdefs.h. */ | ||
19985 | _ACEOF | ||
19986 | cat confdefs.h >>conftest.$ac_ext | ||
19987 | cat >>conftest.$ac_ext <<_ACEOF | ||
19988 | /* end confdefs.h. */ | ||
19989 | |||
19990 | #include <sys/types.h> | ||
19991 | #include <sys/socket.h> | ||
19992 | int | ||
19993 | main () | ||
19994 | { | ||
19995 | int i = SO_PEERCRED; | ||
19996 | ; | ||
19997 | return 0; | ||
19998 | } | ||
19999 | _ACEOF | ||
20000 | rm -f conftest.$ac_objext | ||
20001 | if { (ac_try="$ac_compile" | ||
20002 | case "(($ac_try" in | ||
20003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20004 | *) ac_try_echo=$ac_try;; | ||
20005 | esac | ||
20006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20007 | (eval "$ac_compile") 2>conftest.er1 | ||
20008 | ac_status=$? | ||
20009 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20010 | rm -f conftest.er1 | ||
20011 | cat conftest.err >&5 | ||
20012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20013 | (exit $ac_status); } && { | ||
20014 | test -z "$ac_c_werror_flag" || | ||
20015 | test ! -s conftest.err | ||
20016 | } && test -s conftest.$ac_objext; then | ||
20017 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20018 | echo "${ECHO_T}yes" >&6; } | ||
20019 | |||
20020 | cat >>confdefs.h <<\_ACEOF | ||
20021 | #define HAVE_SO_PEERCRED 1 | ||
20022 | _ACEOF | ||
20023 | |||
20024 | |||
20025 | else | ||
20026 | echo "$as_me: failed program was:" >&5 | ||
20027 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20028 | |||
20029 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20030 | echo "${ECHO_T}no" >&6; } | ||
20031 | NO_PEERCHECK=1 | ||
20032 | |||
20033 | fi | ||
20034 | |||
20035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20036 | fi | ||
20037 | |||
20038 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
20039 | { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
20040 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; } | ||
20041 | if test "$cross_compiling" = yes; then | ||
20042 | |||
20043 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20044 | echo "${ECHO_T}yes" >&6; } | ||
20045 | cat >>confdefs.h <<\_ACEOF | ||
20046 | #define HAVE_STRICT_MKSTEMP 1 | ||
20047 | _ACEOF | ||
20048 | |||
20049 | |||
20050 | |||
20051 | else | ||
20052 | cat >conftest.$ac_ext <<_ACEOF | ||
20053 | /* confdefs.h. */ | ||
20054 | _ACEOF | ||
20055 | cat confdefs.h >>conftest.$ac_ext | ||
20056 | cat >>conftest.$ac_ext <<_ACEOF | ||
20057 | /* end confdefs.h. */ | ||
20058 | |||
20059 | #include <stdlib.h> | ||
20060 | |||
20061 | int | ||
20062 | main () | ||
20063 | { | ||
20064 | |||
20065 | char template[]="conftest.mkstemp-test"; | ||
20066 | if (mkstemp(template) == -1) | ||
20067 | exit(1); | ||
20068 | unlink(template); | ||
20069 | exit(0); | ||
20070 | |||
20071 | ; | ||
20072 | return 0; | ||
20073 | } | ||
20074 | _ACEOF | ||
20075 | rm -f conftest$ac_exeext | ||
20076 | if { (ac_try="$ac_link" | ||
20077 | case "(($ac_try" in | ||
20078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20079 | *) ac_try_echo=$ac_try;; | ||
20080 | esac | ||
20081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20082 | (eval "$ac_link") 2>&5 | ||
20083 | ac_status=$? | ||
20084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20085 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20086 | { (case "(($ac_try" in | ||
20087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20088 | *) ac_try_echo=$ac_try;; | ||
20089 | esac | ||
20090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20091 | (eval "$ac_try") 2>&5 | ||
20092 | ac_status=$? | ||
20093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20094 | (exit $ac_status); }; }; then | ||
20095 | |||
20096 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20097 | echo "${ECHO_T}no" >&6; } | ||
20098 | |||
20099 | else | ||
20100 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20101 | echo "$as_me: failed program was:" >&5 | ||
20102 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20103 | |||
20104 | ( exit $ac_status ) | ||
20105 | |||
20106 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20107 | echo "${ECHO_T}yes" >&6; } | ||
20108 | |||
20109 | cat >>confdefs.h <<\_ACEOF | ||
20110 | #define HAVE_STRICT_MKSTEMP 1 | ||
20111 | _ACEOF | ||
20112 | |||
20113 | |||
20114 | fi | ||
20115 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20116 | fi | ||
20117 | |||
20118 | |||
20119 | fi | ||
20120 | |||
20121 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
20122 | { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
20123 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; } | ||
20124 | if test "$cross_compiling" = yes; then | ||
20125 | |||
20126 | { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5 | ||
20127 | echo "${ECHO_T}cross-compiling, assuming yes" >&6; } | ||
20128 | |||
20129 | |||
20130 | else | ||
20131 | cat >conftest.$ac_ext <<_ACEOF | ||
20132 | /* confdefs.h. */ | ||
20133 | _ACEOF | ||
20134 | cat confdefs.h >>conftest.$ac_ext | ||
20135 | cat >>conftest.$ac_ext <<_ACEOF | ||
20136 | /* end confdefs.h. */ | ||
20137 | |||
20138 | #include <stdio.h> | ||
20139 | #include <sys/fcntl.h> | ||
20140 | #include <sys/types.h> | ||
20141 | #include <sys/wait.h> | ||
20142 | |||
20143 | int | ||
20144 | main () | ||
20145 | { | ||
20146 | |||
20147 | pid_t pid; | ||
20148 | int fd, ptyfd, ttyfd, status; | ||
20149 | |||
20150 | pid = fork(); | ||
20151 | if (pid < 0) { /* failed */ | ||
20152 | exit(1); | ||
20153 | } else if (pid > 0) { /* parent */ | ||
20154 | waitpid(pid, &status, 0); | ||
20155 | if (WIFEXITED(status)) | ||
20156 | exit(WEXITSTATUS(status)); | ||
20157 | else | ||
20158 | exit(2); | ||
20159 | } else { /* child */ | ||
20160 | close(0); close(1); close(2); | ||
20161 | setsid(); | ||
20162 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
20163 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
20164 | if (fd >= 0) | ||
20165 | exit(3); /* Acquired ctty: broken */ | ||
20166 | else | ||
20167 | exit(0); /* Did not acquire ctty: OK */ | ||
20168 | } | ||
20169 | |||
20170 | ; | ||
20171 | return 0; | ||
20172 | } | ||
20173 | _ACEOF | ||
20174 | rm -f conftest$ac_exeext | ||
20175 | if { (ac_try="$ac_link" | ||
20176 | case "(($ac_try" in | ||
20177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20178 | *) ac_try_echo=$ac_try;; | ||
20179 | esac | ||
20180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20181 | (eval "$ac_link") 2>&5 | ||
20182 | ac_status=$? | ||
20183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20184 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20185 | { (case "(($ac_try" in | ||
20186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20187 | *) ac_try_echo=$ac_try;; | ||
20188 | esac | ||
20189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20190 | (eval "$ac_try") 2>&5 | ||
20191 | ac_status=$? | ||
20192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20193 | (exit $ac_status); }; }; then | ||
20194 | |||
20195 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20196 | echo "${ECHO_T}yes" >&6; } | ||
20197 | |||
20198 | else | ||
20199 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20200 | echo "$as_me: failed program was:" >&5 | ||
20201 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20202 | |||
20203 | ( exit $ac_status ) | ||
20204 | |||
20205 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20206 | echo "${ECHO_T}no" >&6; } | ||
20207 | cat >>confdefs.h <<\_ACEOF | ||
20208 | #define SSHD_ACQUIRES_CTTY 1 | ||
20209 | _ACEOF | ||
20210 | |||
20211 | |||
20212 | fi | ||
20213 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20214 | fi | ||
20215 | |||
20216 | |||
20217 | fi | ||
20218 | |||
20219 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
20220 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
20221 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
20222 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
20223 | if test "$cross_compiling" = yes; then | ||
20224 | |||
20225 | { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5 | ||
20226 | echo "${ECHO_T}cross-compiling, assuming yes" >&6; } | ||
20227 | |||
20228 | |||
20229 | else | ||
20230 | cat >conftest.$ac_ext <<_ACEOF | ||
20231 | /* confdefs.h. */ | ||
20232 | _ACEOF | ||
20233 | cat confdefs.h >>conftest.$ac_ext | ||
20234 | cat >>conftest.$ac_ext <<_ACEOF | ||
20235 | /* end confdefs.h. */ | ||
20236 | |||
20237 | #include <stdio.h> | ||
20238 | #include <sys/socket.h> | ||
20239 | #include <netdb.h> | ||
20240 | #include <errno.h> | ||
20241 | #include <netinet/in.h> | ||
20242 | |||
20243 | #define TEST_PORT "2222" | ||
20244 | |||
20245 | int | ||
20246 | main () | ||
20247 | { | ||
20248 | |||
20249 | int err, sock; | ||
20250 | struct addrinfo *gai_ai, *ai, hints; | ||
20251 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
20252 | |||
20253 | memset(&hints, 0, sizeof(hints)); | ||
20254 | hints.ai_family = PF_UNSPEC; | ||
20255 | hints.ai_socktype = SOCK_STREAM; | ||
20256 | hints.ai_flags = AI_PASSIVE; | ||
20257 | |||
20258 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
20259 | if (err != 0) { | ||
20260 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
20261 | exit(1); | ||
20262 | } | ||
20263 | |||
20264 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
20265 | if (ai->ai_family != AF_INET6) | ||
20266 | continue; | ||
20267 | |||
20268 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
20269 | sizeof(ntop), strport, sizeof(strport), | ||
20270 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
20271 | |||
20272 | if (err != 0) { | ||
20273 | if (err == EAI_SYSTEM) | ||
20274 | perror("getnameinfo EAI_SYSTEM"); | ||
20275 | else | ||
20276 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
20277 | gai_strerror(err)); | ||
20278 | exit(2); | ||
20279 | } | ||
20280 | |||
20281 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
20282 | if (sock < 0) | ||
20283 | perror("socket"); | ||
20284 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
20285 | if (errno == EBADF) | ||
20286 | exit(3); | ||
20287 | } | ||
20288 | } | ||
20289 | exit(0); | ||
20290 | |||
20291 | ; | ||
20292 | return 0; | ||
20293 | } | ||
20294 | _ACEOF | ||
20295 | rm -f conftest$ac_exeext | ||
20296 | if { (ac_try="$ac_link" | ||
20297 | case "(($ac_try" in | ||
20298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20299 | *) ac_try_echo=$ac_try;; | ||
20300 | esac | ||
20301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20302 | (eval "$ac_link") 2>&5 | ||
20303 | ac_status=$? | ||
20304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20305 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20306 | { (case "(($ac_try" in | ||
20307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20308 | *) ac_try_echo=$ac_try;; | ||
20309 | esac | ||
20310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20311 | (eval "$ac_try") 2>&5 | ||
20312 | ac_status=$? | ||
20313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20314 | (exit $ac_status); }; }; then | ||
20315 | |||
20316 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20317 | echo "${ECHO_T}yes" >&6; } | ||
20318 | |||
20319 | else | ||
20320 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20321 | echo "$as_me: failed program was:" >&5 | ||
20322 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20323 | |||
20324 | ( exit $ac_status ) | ||
20325 | |||
20326 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20327 | echo "${ECHO_T}no" >&6; } | ||
20328 | cat >>confdefs.h <<\_ACEOF | ||
20329 | #define BROKEN_GETADDRINFO 1 | ||
20330 | _ACEOF | ||
20331 | |||
20332 | |||
20333 | fi | ||
20334 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20335 | fi | ||
20336 | |||
20337 | |||
20338 | fi | ||
20339 | |||
20340 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
20341 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
20342 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
20343 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
20344 | if test "$cross_compiling" = yes; then | ||
20345 | |||
20346 | { echo "$as_me:$LINENO: result: cross-compiling, assuming no" >&5 | ||
20347 | echo "${ECHO_T}cross-compiling, assuming no" >&6; } | ||
20348 | |||
20349 | |||
20350 | else | ||
20351 | cat >conftest.$ac_ext <<_ACEOF | ||
20352 | /* confdefs.h. */ | ||
20353 | _ACEOF | ||
20354 | cat confdefs.h >>conftest.$ac_ext | ||
20355 | cat >>conftest.$ac_ext <<_ACEOF | ||
20356 | /* end confdefs.h. */ | ||
20357 | |||
20358 | #include <stdio.h> | ||
20359 | #include <sys/socket.h> | ||
20360 | #include <netdb.h> | ||
20361 | #include <errno.h> | ||
20362 | #include <netinet/in.h> | ||
20363 | |||
20364 | #define TEST_PORT "2222" | ||
20365 | |||
20366 | int | ||
20367 | main () | ||
20368 | { | ||
20369 | |||
20370 | int err, sock; | ||
20371 | struct addrinfo *gai_ai, *ai, hints; | ||
20372 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
20373 | |||
20374 | memset(&hints, 0, sizeof(hints)); | ||
20375 | hints.ai_family = PF_UNSPEC; | ||
20376 | hints.ai_socktype = SOCK_STREAM; | ||
20377 | hints.ai_flags = AI_PASSIVE; | ||
20378 | |||
20379 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
20380 | if (err != 0) { | ||
20381 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
20382 | exit(1); | ||
20383 | } | ||
20384 | |||
20385 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
20386 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
20387 | continue; | ||
20388 | |||
20389 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
20390 | sizeof(ntop), strport, sizeof(strport), | ||
20391 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
20392 | |||
20393 | if (ai->ai_family == AF_INET && err != 0) { | ||
20394 | perror("getnameinfo"); | ||
20395 | exit(2); | ||
20396 | } | ||
20397 | } | ||
20398 | exit(0); | ||
20399 | |||
20400 | ; | ||
20401 | return 0; | ||
20402 | } | ||
20403 | _ACEOF | ||
20404 | rm -f conftest$ac_exeext | ||
20405 | if { (ac_try="$ac_link" | ||
20406 | case "(($ac_try" in | ||
20407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20408 | *) ac_try_echo=$ac_try;; | ||
20409 | esac | ||
20410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20411 | (eval "$ac_link") 2>&5 | ||
20412 | ac_status=$? | ||
20413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20414 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20415 | { (case "(($ac_try" in | ||
20416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20417 | *) ac_try_echo=$ac_try;; | ||
20418 | esac | ||
20419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20420 | (eval "$ac_try") 2>&5 | ||
20421 | ac_status=$? | ||
20422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20423 | (exit $ac_status); }; }; then | ||
20424 | |||
20425 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20426 | echo "${ECHO_T}yes" >&6; } | ||
20427 | |||
20428 | cat >>confdefs.h <<\_ACEOF | ||
20429 | #define AIX_GETNAMEINFO_HACK 1 | ||
20430 | _ACEOF | ||
20431 | |||
20432 | |||
20433 | else | ||
20434 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20435 | echo "$as_me: failed program was:" >&5 | ||
20436 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20437 | |||
20438 | ( exit $ac_status ) | ||
20439 | |||
20440 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20441 | echo "${ECHO_T}no" >&6; } | ||
20442 | cat >>confdefs.h <<\_ACEOF | ||
20443 | #define BROKEN_GETADDRINFO 1 | ||
20444 | _ACEOF | ||
20445 | |||
20446 | |||
20447 | fi | ||
20448 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20449 | fi | ||
20450 | |||
20451 | |||
20452 | fi | ||
20453 | |||
20454 | if test "x$ac_cv_func_getaddrinfo" = "xyes"; then | ||
20455 | { echo "$as_me:$LINENO: checking whether AI_NUMERICSERV is declared" >&5 | ||
20456 | echo $ECHO_N "checking whether AI_NUMERICSERV is declared... $ECHO_C" >&6; } | ||
20457 | if test "${ac_cv_have_decl_AI_NUMERICSERV+set}" = set; then | ||
20458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20459 | else | ||
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 | #include <sys/socket.h> | ||
20468 | #include <netdb.h> | ||
20469 | |||
20470 | int | ||
20471 | main () | ||
20472 | { | ||
20473 | #ifndef AI_NUMERICSERV | ||
20474 | (void) AI_NUMERICSERV; | ||
20475 | #endif | ||
20476 | |||
20477 | ; | ||
20478 | return 0; | ||
20479 | } | ||
20480 | _ACEOF | ||
20481 | rm -f conftest.$ac_objext | ||
20482 | if { (ac_try="$ac_compile" | ||
20483 | case "(($ac_try" in | ||
20484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20485 | *) ac_try_echo=$ac_try;; | ||
20486 | esac | ||
20487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20488 | (eval "$ac_compile") 2>conftest.er1 | ||
20489 | ac_status=$? | ||
20490 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20491 | rm -f conftest.er1 | ||
20492 | cat conftest.err >&5 | ||
20493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20494 | (exit $ac_status); } && { | ||
20495 | test -z "$ac_c_werror_flag" || | ||
20496 | test ! -s conftest.err | ||
20497 | } && test -s conftest.$ac_objext; then | ||
20498 | ac_cv_have_decl_AI_NUMERICSERV=yes | ||
20499 | else | ||
20500 | echo "$as_me: failed program was:" >&5 | ||
20501 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20502 | |||
20503 | ac_cv_have_decl_AI_NUMERICSERV=no | ||
20504 | fi | ||
20505 | |||
20506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20507 | fi | ||
20508 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_NUMERICSERV" >&5 | ||
20509 | echo "${ECHO_T}$ac_cv_have_decl_AI_NUMERICSERV" >&6; } | ||
20510 | if test $ac_cv_have_decl_AI_NUMERICSERV = yes; then | ||
20511 | |||
20512 | cat >>confdefs.h <<_ACEOF | ||
20513 | #define HAVE_DECL_AI_NUMERICSERV 1 | ||
20514 | _ACEOF | ||
20515 | |||
20516 | |||
20517 | else | ||
20518 | cat >>confdefs.h <<_ACEOF | ||
20519 | #define HAVE_DECL_AI_NUMERICSERV 0 | ||
20520 | _ACEOF | ||
20521 | |||
20522 | |||
20523 | fi | ||
20524 | |||
20525 | |||
20526 | fi | ||
20527 | |||
20528 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
20529 | { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
20530 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; } | ||
20531 | cat >conftest.$ac_ext <<_ACEOF | ||
20532 | /* confdefs.h. */ | ||
20533 | _ACEOF | ||
20534 | cat confdefs.h >>conftest.$ac_ext | ||
20535 | cat >>conftest.$ac_ext <<_ACEOF | ||
20536 | /* end confdefs.h. */ | ||
20537 | #include <shadow.h> | ||
20538 | int | ||
20539 | main () | ||
20540 | { | ||
20541 | exit(0); | ||
20542 | ; | ||
20543 | return 0; | ||
20544 | } | ||
20545 | _ACEOF | ||
20546 | rm -f conftest.$ac_objext | ||
20547 | if { (ac_try="$ac_compile" | ||
20548 | case "(($ac_try" in | ||
20549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20550 | *) ac_try_echo=$ac_try;; | ||
20551 | esac | ||
20552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20553 | (eval "$ac_compile") 2>conftest.er1 | ||
20554 | ac_status=$? | ||
20555 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20556 | rm -f conftest.er1 | ||
20557 | cat conftest.err >&5 | ||
20558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20559 | (exit $ac_status); } && { | ||
20560 | test -z "$ac_c_werror_flag" || | ||
20561 | test ! -s conftest.err | ||
20562 | } && test -s conftest.$ac_objext; then | ||
20563 | |||
20564 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20565 | echo "${ECHO_T}no" >&6; } | ||
20566 | |||
20567 | else | ||
20568 | echo "$as_me: failed program was:" >&5 | ||
20569 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20570 | |||
20571 | |||
20572 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20573 | echo "${ECHO_T}yes" >&6; } | ||
20574 | |||
20575 | cat >>confdefs.h <<\_ACEOF | ||
20576 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
20577 | _ACEOF | ||
20578 | |||
20579 | |||
20580 | |||
20581 | fi | ||
20582 | |||
20583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20584 | fi | ||
20585 | |||
20586 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
20587 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | ||
20588 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
20589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20590 | else | ||
20591 | # Use it with a single arg. | ||
20592 | cat >conftest.$ac_ext <<_ACEOF | ||
20593 | /* confdefs.h. */ | ||
20594 | _ACEOF | ||
20595 | cat confdefs.h >>conftest.$ac_ext | ||
20596 | cat >>conftest.$ac_ext <<_ACEOF | ||
20597 | /* end confdefs.h. */ | ||
20598 | $ac_includes_default | ||
20599 | int | ||
20600 | main () | ||
20601 | { | ||
20602 | getpgrp (0); | ||
20603 | ; | ||
20604 | return 0; | ||
20605 | } | ||
20606 | _ACEOF | ||
20607 | rm -f conftest.$ac_objext | ||
20608 | if { (ac_try="$ac_compile" | ||
20609 | case "(($ac_try" in | ||
20610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20611 | *) ac_try_echo=$ac_try;; | ||
20612 | esac | ||
20613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20614 | (eval "$ac_compile") 2>conftest.er1 | ||
20615 | ac_status=$? | ||
20616 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20617 | rm -f conftest.er1 | ||
20618 | cat conftest.err >&5 | ||
20619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20620 | (exit $ac_status); } && { | ||
20621 | test -z "$ac_c_werror_flag" || | ||
20622 | test ! -s conftest.err | ||
20623 | } && test -s conftest.$ac_objext; then | ||
20624 | ac_cv_func_getpgrp_void=no | ||
20625 | else | ||
20626 | echo "$as_me: failed program was:" >&5 | ||
20627 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20628 | |||
20629 | ac_cv_func_getpgrp_void=yes | ||
20630 | fi | ||
20631 | |||
20632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20633 | |||
20634 | fi | ||
20635 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
20636 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | ||
20637 | if test $ac_cv_func_getpgrp_void = yes; then | ||
20638 | |||
20639 | cat >>confdefs.h <<\_ACEOF | ||
20640 | #define GETPGRP_VOID 1 | ||
20641 | _ACEOF | ||
20642 | |||
20643 | fi | ||
20644 | |||
20645 | |||
20646 | # Search for OpenSSL | ||
20647 | saved_CPPFLAGS="$CPPFLAGS" | ||
20648 | saved_LDFLAGS="$LDFLAGS" | ||
20649 | |||
20650 | # Check whether --with-ssl-dir was given. | ||
20651 | if test "${with_ssl_dir+set}" = set; then | ||
20652 | withval=$with_ssl_dir; | ||
20653 | if test "x$openssl" = "xno" ; then | ||
20654 | { { echo "$as_me:$LINENO: error: cannot use --with-ssl-dir when OpenSSL disabled" >&5 | ||
20655 | echo "$as_me: error: cannot use --with-ssl-dir when OpenSSL disabled" >&2;} | ||
20656 | { (exit 1); exit 1; }; } | ||
20657 | fi | ||
20658 | if test "x$withval" != "xno" ; then | ||
20659 | case "$withval" in | ||
20660 | # Relative paths | ||
20661 | ./*|../*) withval="`pwd`/$withval" | ||
20662 | esac | ||
20663 | if test -d "$withval/lib"; then | ||
20664 | if test -n "${need_dash_r}"; then | ||
20665 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
20666 | else | ||
20667 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
20668 | fi | ||
20669 | elif test -d "$withval/lib64"; then | ||
20670 | if test -n "${need_dash_r}"; then | ||
20671 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" | ||
20672 | else | ||
20673 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" | ||
20674 | fi | ||
20675 | else | ||
20676 | if test -n "${need_dash_r}"; then | ||
20677 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
20678 | else | ||
20679 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
20680 | fi | ||
20681 | fi | ||
20682 | if test -d "$withval/include"; then | ||
20683 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
20684 | else | ||
20685 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
20686 | fi | ||
20687 | fi | ||
20688 | |||
20689 | |||
20690 | fi | ||
20691 | |||
20692 | |||
20693 | |||
20694 | # Check whether --with-openssl-header-check was given. | ||
20695 | if test "${with_openssl_header_check+set}" = set; then | ||
20696 | withval=$with_openssl_header_check; | ||
20697 | if test "x$withval" = "xno" ; then | ||
20698 | openssl_check_nonfatal=1 | ||
20699 | fi | ||
20700 | |||
20701 | |||
20702 | fi | ||
20703 | |||
20704 | |||
20705 | openssl_engine=no | ||
20706 | |||
20707 | # Check whether --with-ssl-engine was given. | ||
20708 | if test "${with_ssl_engine+set}" = set; then | ||
20709 | withval=$with_ssl_engine; | ||
20710 | if test "x$openssl" = "xno" ; then | ||
20711 | { { echo "$as_me:$LINENO: error: cannot use --with-ssl-engine when OpenSSL disabled" >&5 | ||
20712 | echo "$as_me: error: cannot use --with-ssl-engine when OpenSSL disabled" >&2;} | ||
20713 | { (exit 1); exit 1; }; } | ||
20714 | fi | ||
20715 | if test "x$withval" != "xno" ; then | ||
20716 | openssl_engine=yes | ||
20717 | fi | ||
20718 | |||
20719 | |||
20720 | fi | ||
20721 | |||
20722 | |||
20723 | if test "x$openssl" = "xyes" ; then | ||
20724 | LIBS="-lcrypto $LIBS" | ||
20725 | cat >conftest.$ac_ext <<_ACEOF | ||
20726 | /* confdefs.h. */ | ||
20727 | _ACEOF | ||
20728 | cat confdefs.h >>conftest.$ac_ext | ||
20729 | cat >>conftest.$ac_ext <<_ACEOF | ||
20730 | /* end confdefs.h. */ | ||
20731 | |||
20732 | /* Override any GCC internal prototype to avoid an error. | ||
20733 | Use char because int might match the return type of a GCC | ||
20734 | builtin and then its argument prototype would still apply. */ | ||
20735 | #ifdef __cplusplus | ||
20736 | extern "C" | ||
20737 | #endif | ||
20738 | char RAND_add (); | ||
20739 | int | ||
20740 | main () | ||
20741 | { | ||
20742 | return RAND_add (); | ||
20743 | ; | ||
20744 | return 0; | ||
20745 | } | ||
20746 | _ACEOF | ||
20747 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20748 | if { (ac_try="$ac_link" | ||
20749 | case "(($ac_try" in | ||
20750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20751 | *) ac_try_echo=$ac_try;; | ||
20752 | esac | ||
20753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20754 | (eval "$ac_link") 2>conftest.er1 | ||
20755 | ac_status=$? | ||
20756 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20757 | rm -f conftest.er1 | ||
20758 | cat conftest.err >&5 | ||
20759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20760 | (exit $ac_status); } && { | ||
20761 | test -z "$ac_c_werror_flag" || | ||
20762 | test ! -s conftest.err | ||
20763 | } && test -s conftest$ac_exeext && | ||
20764 | $as_test_x conftest$ac_exeext; then | ||
20765 | |||
20766 | cat >>confdefs.h <<\_ACEOF | ||
20767 | #define HAVE_OPENSSL 1 | ||
20768 | _ACEOF | ||
20769 | |||
20770 | else | ||
20771 | echo "$as_me: failed program was:" >&5 | ||
20772 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20773 | |||
20774 | |||
20775 | if test -n "${need_dash_r}"; then | ||
20776 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
20777 | else | ||
20778 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
20779 | fi | ||
20780 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
20781 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
20782 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
20783 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
20784 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
20785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20786 | fi | ||
20787 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
20788 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
20789 | else | ||
20790 | # Is the header compilable? | ||
20791 | { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5 | ||
20792 | echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; } | ||
20793 | cat >conftest.$ac_ext <<_ACEOF | ||
20794 | /* confdefs.h. */ | ||
20795 | _ACEOF | ||
20796 | cat confdefs.h >>conftest.$ac_ext | ||
20797 | cat >>conftest.$ac_ext <<_ACEOF | ||
20798 | /* end confdefs.h. */ | ||
20799 | $ac_includes_default | ||
20800 | #include <openssl/opensslv.h> | ||
20801 | _ACEOF | ||
20802 | rm -f conftest.$ac_objext | ||
20803 | if { (ac_try="$ac_compile" | ||
20804 | case "(($ac_try" in | ||
20805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20806 | *) ac_try_echo=$ac_try;; | ||
20807 | esac | ||
20808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20809 | (eval "$ac_compile") 2>conftest.er1 | ||
20810 | ac_status=$? | ||
20811 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20812 | rm -f conftest.er1 | ||
20813 | cat conftest.err >&5 | ||
20814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20815 | (exit $ac_status); } && { | ||
20816 | test -z "$ac_c_werror_flag" || | ||
20817 | test ! -s conftest.err | ||
20818 | } && test -s conftest.$ac_objext; then | ||
20819 | ac_header_compiler=yes | ||
20820 | else | ||
20821 | echo "$as_me: failed program was:" >&5 | ||
20822 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20823 | |||
20824 | ac_header_compiler=no | ||
20825 | fi | ||
20826 | |||
20827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20828 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
20829 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
20830 | |||
20831 | # Is the header present? | ||
20832 | { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5 | ||
20833 | echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; } | ||
20834 | cat >conftest.$ac_ext <<_ACEOF | ||
20835 | /* confdefs.h. */ | ||
20836 | _ACEOF | ||
20837 | cat confdefs.h >>conftest.$ac_ext | ||
20838 | cat >>conftest.$ac_ext <<_ACEOF | ||
20839 | /* end confdefs.h. */ | ||
20840 | #include <openssl/opensslv.h> | ||
20841 | _ACEOF | ||
20842 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
20843 | case "(($ac_try" in | ||
20844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20845 | *) ac_try_echo=$ac_try;; | ||
20846 | esac | ||
20847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20848 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
20849 | ac_status=$? | ||
20850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20851 | rm -f conftest.er1 | ||
20852 | cat conftest.err >&5 | ||
20853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20854 | (exit $ac_status); } >/dev/null && { | ||
20855 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
20856 | test ! -s conftest.err | ||
20857 | }; then | ||
20858 | ac_header_preproc=yes | ||
20859 | else | ||
20860 | echo "$as_me: failed program was:" >&5 | ||
20861 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20862 | |||
20863 | ac_header_preproc=no | ||
20864 | fi | ||
20865 | |||
20866 | rm -f conftest.err conftest.$ac_ext | ||
20867 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
20868 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
20869 | |||
20870 | # So? What about this header? | ||
20871 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
20872 | yes:no: ) | ||
20873 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
20874 | echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
20875 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5 | ||
20876 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;} | ||
20877 | ac_header_preproc=yes | ||
20878 | ;; | ||
20879 | no:yes:* ) | ||
20880 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5 | ||
20881 | echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;} | ||
20882 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5 | ||
20883 | echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;} | ||
20884 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5 | ||
20885 | echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;} | ||
20886 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
20887 | echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
20888 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5 | ||
20889 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;} | ||
20890 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5 | ||
20891 | echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;} | ||
20892 | ( cat <<\_ASBOX | ||
20893 | ## ------------------------------------------- ## | ||
20894 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
20895 | ## ------------------------------------------- ## | ||
20896 | _ASBOX | ||
20897 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
20898 | ;; | ||
20899 | esac | ||
20900 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
20901 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
20902 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
20903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20904 | else | ||
20905 | ac_cv_header_openssl_opensslv_h=$ac_header_preproc | ||
20906 | fi | ||
20907 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
20908 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
20909 | |||
20910 | fi | ||
20911 | if test $ac_cv_header_openssl_opensslv_h = yes; then | ||
20912 | : | ||
20913 | else | ||
20914 | { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5 | ||
20915 | echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;} | ||
20916 | { (exit 1); exit 1; }; } | ||
20917 | fi | ||
20918 | |||
20919 | |||
20920 | cat >conftest.$ac_ext <<_ACEOF | ||
20921 | /* confdefs.h. */ | ||
20922 | _ACEOF | ||
20923 | cat confdefs.h >>conftest.$ac_ext | ||
20924 | cat >>conftest.$ac_ext <<_ACEOF | ||
20925 | /* end confdefs.h. */ | ||
20926 | |||
20927 | /* Override any GCC internal prototype to avoid an error. | ||
20928 | Use char because int might match the return type of a GCC | ||
20929 | builtin and then its argument prototype would still apply. */ | ||
20930 | #ifdef __cplusplus | ||
20931 | extern "C" | ||
20932 | #endif | ||
20933 | char RAND_add (); | ||
20934 | int | ||
20935 | main () | ||
20936 | { | ||
20937 | return RAND_add (); | ||
20938 | ; | ||
20939 | return 0; | ||
20940 | } | ||
20941 | _ACEOF | ||
20942 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20943 | if { (ac_try="$ac_link" | ||
20944 | case "(($ac_try" in | ||
20945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20946 | *) ac_try_echo=$ac_try;; | ||
20947 | esac | ||
20948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20949 | (eval "$ac_link") 2>conftest.er1 | ||
20950 | ac_status=$? | ||
20951 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20952 | rm -f conftest.er1 | ||
20953 | cat conftest.err >&5 | ||
20954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20955 | (exit $ac_status); } && { | ||
20956 | test -z "$ac_c_werror_flag" || | ||
20957 | test ! -s conftest.err | ||
20958 | } && test -s conftest$ac_exeext && | ||
20959 | $as_test_x conftest$ac_exeext; then | ||
20960 | cat >>confdefs.h <<\_ACEOF | ||
20961 | #define HAVE_OPENSSL 1 | ||
20962 | _ACEOF | ||
20963 | |||
20964 | else | ||
20965 | echo "$as_me: failed program was:" >&5 | ||
20966 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20967 | |||
20968 | |||
20969 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
20970 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
20971 | { (exit 1); exit 1; }; } | ||
20972 | |||
20973 | |||
20974 | fi | ||
20975 | |||
20976 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20977 | conftest$ac_exeext conftest.$ac_ext | ||
20978 | |||
20979 | |||
20980 | fi | ||
20981 | |||
20982 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20983 | conftest$ac_exeext conftest.$ac_ext | ||
20984 | |||
20985 | # Determine OpenSSL header version | ||
20986 | { echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
20987 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; } | ||
20988 | if test "$cross_compiling" = yes; then | ||
20989 | |||
20990 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
20991 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
20992 | |||
20993 | |||
20994 | else | ||
20995 | cat >conftest.$ac_ext <<_ACEOF | ||
20996 | /* confdefs.h. */ | ||
20997 | _ACEOF | ||
20998 | cat confdefs.h >>conftest.$ac_ext | ||
20999 | cat >>conftest.$ac_ext <<_ACEOF | ||
21000 | /* end confdefs.h. */ | ||
21001 | |||
21002 | #include <stdio.h> | ||
21003 | #include <string.h> | ||
21004 | #include <openssl/opensslv.h> | ||
21005 | #define DATA "conftest.sslincver" | ||
21006 | |||
21007 | int | ||
21008 | main () | ||
21009 | { | ||
21010 | |||
21011 | FILE *fd; | ||
21012 | int rc; | ||
21013 | |||
21014 | fd = fopen(DATA,"w"); | ||
21015 | if(fd == NULL) | ||
21016 | exit(1); | ||
21017 | |||
21018 | if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
21019 | exit(1); | ||
21020 | |||
21021 | exit(0); | ||
21022 | |||
21023 | ; | ||
21024 | return 0; | ||
21025 | } | ||
21026 | _ACEOF | ||
21027 | rm -f conftest$ac_exeext | ||
21028 | if { (ac_try="$ac_link" | ||
21029 | case "(($ac_try" in | ||
21030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21031 | *) ac_try_echo=$ac_try;; | ||
21032 | esac | ||
21033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21034 | (eval "$ac_link") 2>&5 | ||
21035 | ac_status=$? | ||
21036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21037 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21038 | { (case "(($ac_try" in | ||
21039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21040 | *) ac_try_echo=$ac_try;; | ||
21041 | esac | ||
21042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21043 | (eval "$ac_try") 2>&5 | ||
21044 | ac_status=$? | ||
21045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21046 | (exit $ac_status); }; }; then | ||
21047 | |||
21048 | ssl_header_ver=`cat conftest.sslincver` | ||
21049 | { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
21050 | echo "${ECHO_T}$ssl_header_ver" >&6; } | ||
21051 | |||
21052 | else | ||
21053 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21054 | echo "$as_me: failed program was:" >&5 | ||
21055 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21056 | |||
21057 | ( exit $ac_status ) | ||
21058 | |||
21059 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
21060 | echo "${ECHO_T}not found" >&6; } | ||
21061 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
21062 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
21063 | { (exit 1); exit 1; }; } | ||
21064 | |||
21065 | fi | ||
21066 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21067 | fi | ||
21068 | |||
21069 | |||
21070 | |||
21071 | # Determine OpenSSL library version | ||
21072 | { echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
21073 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; } | ||
21074 | if test "$cross_compiling" = yes; then | ||
21075 | |||
21076 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
21077 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
21078 | |||
21079 | |||
21080 | else | ||
21081 | cat >conftest.$ac_ext <<_ACEOF | ||
21082 | /* confdefs.h. */ | ||
21083 | _ACEOF | ||
21084 | cat confdefs.h >>conftest.$ac_ext | ||
21085 | cat >>conftest.$ac_ext <<_ACEOF | ||
21086 | /* end confdefs.h. */ | ||
21087 | |||
21088 | #include <stdio.h> | ||
21089 | #include <string.h> | ||
21090 | #include <openssl/opensslv.h> | ||
21091 | #include <openssl/crypto.h> | ||
21092 | #define DATA "conftest.ssllibver" | ||
21093 | |||
21094 | int | ||
21095 | main () | ||
21096 | { | ||
21097 | |||
21098 | FILE *fd; | ||
21099 | int rc; | ||
21100 | |||
21101 | fd = fopen(DATA,"w"); | ||
21102 | if(fd == NULL) | ||
21103 | exit(1); | ||
21104 | |||
21105 | if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(), | ||
21106 | SSLeay_version(SSLEAY_VERSION))) <0) | ||
21107 | exit(1); | ||
21108 | |||
21109 | exit(0); | ||
21110 | |||
21111 | ; | ||
21112 | return 0; | ||
21113 | } | ||
21114 | _ACEOF | ||
21115 | rm -f conftest$ac_exeext | ||
21116 | if { (ac_try="$ac_link" | ||
21117 | case "(($ac_try" in | ||
21118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21119 | *) ac_try_echo=$ac_try;; | ||
21120 | esac | ||
21121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21122 | (eval "$ac_link") 2>&5 | ||
21123 | ac_status=$? | ||
21124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21125 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21126 | { (case "(($ac_try" in | ||
21127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21128 | *) ac_try_echo=$ac_try;; | ||
21129 | esac | ||
21130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21131 | (eval "$ac_try") 2>&5 | ||
21132 | ac_status=$? | ||
21133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21134 | (exit $ac_status); }; }; then | ||
21135 | |||
21136 | ssl_library_ver=`cat conftest.ssllibver` | ||
21137 | # Check version is supported. | ||
21138 | case "$ssl_library_ver" in | ||
21139 | 0090[0-7]*|009080[0-5]*) | ||
21140 | { { echo "$as_me:$LINENO: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&5 | ||
21141 | echo "$as_me: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&2;} | ||
21142 | { (exit 1); exit 1; }; } | ||
21143 | ;; | ||
21144 | *) ;; | ||
21145 | esac | ||
21146 | { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
21147 | echo "${ECHO_T}$ssl_library_ver" >&6; } | ||
21148 | |||
21149 | else | ||
21150 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21151 | echo "$as_me: failed program was:" >&5 | ||
21152 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21153 | |||
21154 | ( exit $ac_status ) | ||
21155 | |||
21156 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
21157 | echo "${ECHO_T}not found" >&6; } | ||
21158 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
21159 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
21160 | { (exit 1); exit 1; }; } | ||
21161 | |||
21162 | fi | ||
21163 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21164 | fi | ||
21165 | |||
21166 | |||
21167 | |||
21168 | # Sanity check OpenSSL headers | ||
21169 | { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
21170 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } | ||
21171 | if test "$cross_compiling" = yes; then | ||
21172 | |||
21173 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
21174 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
21175 | |||
21176 | |||
21177 | else | ||
21178 | cat >conftest.$ac_ext <<_ACEOF | ||
21179 | /* confdefs.h. */ | ||
21180 | _ACEOF | ||
21181 | cat confdefs.h >>conftest.$ac_ext | ||
21182 | cat >>conftest.$ac_ext <<_ACEOF | ||
21183 | /* end confdefs.h. */ | ||
21184 | |||
21185 | #include <string.h> | ||
21186 | #include <openssl/opensslv.h> | ||
21187 | |||
21188 | int | ||
21189 | main () | ||
21190 | { | ||
21191 | |||
21192 | exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); | ||
21193 | |||
21194 | ; | ||
21195 | return 0; | ||
21196 | } | ||
21197 | _ACEOF | ||
21198 | rm -f conftest$ac_exeext | ||
21199 | if { (ac_try="$ac_link" | ||
21200 | case "(($ac_try" in | ||
21201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21202 | *) ac_try_echo=$ac_try;; | ||
21203 | esac | ||
21204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21205 | (eval "$ac_link") 2>&5 | ||
21206 | ac_status=$? | ||
21207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21209 | { (case "(($ac_try" in | ||
21210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21211 | *) ac_try_echo=$ac_try;; | ||
21212 | esac | ||
21213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21214 | (eval "$ac_try") 2>&5 | ||
21215 | ac_status=$? | ||
21216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21217 | (exit $ac_status); }; }; then | ||
21218 | |||
21219 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21220 | echo "${ECHO_T}yes" >&6; } | ||
21221 | |||
21222 | else | ||
21223 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21224 | echo "$as_me: failed program was:" >&5 | ||
21225 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21226 | |||
21227 | ( exit $ac_status ) | ||
21228 | |||
21229 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21230 | echo "${ECHO_T}no" >&6; } | ||
21231 | if test "x$openssl_check_nonfatal" = "x"; then | ||
21232 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your | ||
21233 | library. Check config.log for details. | ||
21234 | If you are sure your installation is consistent, you can disable the check | ||
21235 | by running \"./configure --without-openssl-header-check\". | ||
21236 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
21237 | " >&5 | ||
21238 | echo "$as_me: error: Your OpenSSL headers do not match your | ||
21239 | library. Check config.log for details. | ||
21240 | If you are sure your installation is consistent, you can disable the check | ||
21241 | by running \"./configure --without-openssl-header-check\". | ||
21242 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
21243 | " >&2;} | ||
21244 | { (exit 1); exit 1; }; } | ||
21245 | else | ||
21246 | { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your | ||
21247 | library. Check config.log for details. | ||
21248 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
21249 | echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
21250 | library. Check config.log for details. | ||
21251 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
21252 | fi | ||
21253 | |||
21254 | fi | ||
21255 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21256 | fi | ||
21257 | |||
21258 | |||
21259 | |||
21260 | { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 | ||
21261 | echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; } | ||
21262 | cat >conftest.$ac_ext <<_ACEOF | ||
21263 | /* confdefs.h. */ | ||
21264 | _ACEOF | ||
21265 | cat confdefs.h >>conftest.$ac_ext | ||
21266 | cat >>conftest.$ac_ext <<_ACEOF | ||
21267 | /* end confdefs.h. */ | ||
21268 | #include <openssl/evp.h> | ||
21269 | int | ||
21270 | main () | ||
21271 | { | ||
21272 | SSLeay_add_all_algorithms(); | ||
21273 | ; | ||
21274 | return 0; | ||
21275 | } | ||
21276 | _ACEOF | ||
21277 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21278 | if { (ac_try="$ac_link" | ||
21279 | case "(($ac_try" in | ||
21280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21281 | *) ac_try_echo=$ac_try;; | ||
21282 | esac | ||
21283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21284 | (eval "$ac_link") 2>conftest.er1 | ||
21285 | ac_status=$? | ||
21286 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21287 | rm -f conftest.er1 | ||
21288 | cat conftest.err >&5 | ||
21289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21290 | (exit $ac_status); } && { | ||
21291 | test -z "$ac_c_werror_flag" || | ||
21292 | test ! -s conftest.err | ||
21293 | } && test -s conftest$ac_exeext && | ||
21294 | $as_test_x conftest$ac_exeext; then | ||
21295 | |||
21296 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21297 | echo "${ECHO_T}yes" >&6; } | ||
21298 | |||
21299 | else | ||
21300 | echo "$as_me: failed program was:" >&5 | ||
21301 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21302 | |||
21303 | |||
21304 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21305 | echo "${ECHO_T}no" >&6; } | ||
21306 | saved_LIBS="$LIBS" | ||
21307 | LIBS="$LIBS -ldl" | ||
21308 | { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 | ||
21309 | echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; } | ||
21310 | cat >conftest.$ac_ext <<_ACEOF | ||
21311 | /* confdefs.h. */ | ||
21312 | _ACEOF | ||
21313 | cat confdefs.h >>conftest.$ac_ext | ||
21314 | cat >>conftest.$ac_ext <<_ACEOF | ||
21315 | /* end confdefs.h. */ | ||
21316 | #include <openssl/evp.h> | ||
21317 | int | ||
21318 | main () | ||
21319 | { | ||
21320 | SSLeay_add_all_algorithms(); | ||
21321 | ; | ||
21322 | return 0; | ||
21323 | } | ||
21324 | _ACEOF | ||
21325 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21326 | if { (ac_try="$ac_link" | ||
21327 | case "(($ac_try" in | ||
21328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21329 | *) ac_try_echo=$ac_try;; | ||
21330 | esac | ||
21331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21332 | (eval "$ac_link") 2>conftest.er1 | ||
21333 | ac_status=$? | ||
21334 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21335 | rm -f conftest.er1 | ||
21336 | cat conftest.err >&5 | ||
21337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21338 | (exit $ac_status); } && { | ||
21339 | test -z "$ac_c_werror_flag" || | ||
21340 | test ! -s conftest.err | ||
21341 | } && test -s conftest$ac_exeext && | ||
21342 | $as_test_x conftest$ac_exeext; then | ||
21343 | |||
21344 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21345 | echo "${ECHO_T}yes" >&6; } | ||
21346 | |||
21347 | else | ||
21348 | echo "$as_me: failed program was:" >&5 | ||
21349 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21350 | |||
21351 | |||
21352 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21353 | echo "${ECHO_T}no" >&6; } | ||
21354 | LIBS="$saved_LIBS" | ||
21355 | |||
21356 | |||
21357 | fi | ||
21358 | |||
21359 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21360 | conftest$ac_exeext conftest.$ac_ext | ||
21361 | |||
21362 | |||
21363 | fi | ||
21364 | |||
21365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21366 | conftest$ac_exeext conftest.$ac_ext | ||
21367 | |||
21368 | |||
21369 | |||
21370 | |||
21371 | |||
21372 | |||
21373 | |||
21374 | |||
21375 | |||
21376 | |||
21377 | |||
21378 | for ac_func in \ | ||
21379 | BN_is_prime_ex \ | ||
21380 | DSA_generate_parameters_ex \ | ||
21381 | EVP_DigestInit_ex \ | ||
21382 | EVP_DigestFinal_ex \ | ||
21383 | EVP_MD_CTX_init \ | ||
21384 | EVP_MD_CTX_cleanup \ | ||
21385 | EVP_MD_CTX_copy_ex \ | ||
21386 | HMAC_CTX_init \ | ||
21387 | RSA_generate_key_ex \ | ||
21388 | RSA_get_default_method \ | ||
21389 | |||
21390 | do | ||
21391 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21392 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21393 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
21394 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
21395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21396 | else | ||
21397 | cat >conftest.$ac_ext <<_ACEOF | ||
21398 | /* confdefs.h. */ | ||
21399 | _ACEOF | ||
21400 | cat confdefs.h >>conftest.$ac_ext | ||
21401 | cat >>conftest.$ac_ext <<_ACEOF | ||
21402 | /* end confdefs.h. */ | ||
21403 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21404 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21405 | #define $ac_func innocuous_$ac_func | ||
21406 | |||
21407 | /* System header to define __stub macros and hopefully few prototypes, | ||
21408 | which can conflict with char $ac_func (); below. | ||
21409 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21410 | <limits.h> exists even on freestanding compilers. */ | ||
21411 | |||
21412 | #ifdef __STDC__ | ||
21413 | # include <limits.h> | ||
21414 | #else | ||
21415 | # include <assert.h> | ||
21416 | #endif | ||
21417 | |||
21418 | #undef $ac_func | ||
21419 | |||
21420 | /* Override any GCC internal prototype to avoid an error. | ||
21421 | Use char because int might match the return type of a GCC | ||
21422 | builtin and then its argument prototype would still apply. */ | ||
21423 | #ifdef __cplusplus | ||
21424 | extern "C" | ||
21425 | #endif | ||
21426 | char $ac_func (); | ||
21427 | /* The GNU C library defines this for functions which it implements | ||
21428 | to always fail with ENOSYS. Some functions are actually named | ||
21429 | something starting with __ and the normal name is an alias. */ | ||
21430 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
21431 | choke me | ||
21432 | #endif | ||
21433 | |||
21434 | int | ||
21435 | main () | ||
21436 | { | ||
21437 | return $ac_func (); | ||
21438 | ; | ||
21439 | return 0; | ||
21440 | } | ||
21441 | _ACEOF | ||
21442 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21443 | if { (ac_try="$ac_link" | ||
21444 | case "(($ac_try" in | ||
21445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21446 | *) ac_try_echo=$ac_try;; | ||
21447 | esac | ||
21448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21449 | (eval "$ac_link") 2>conftest.er1 | ||
21450 | ac_status=$? | ||
21451 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21452 | rm -f conftest.er1 | ||
21453 | cat conftest.err >&5 | ||
21454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21455 | (exit $ac_status); } && { | ||
21456 | test -z "$ac_c_werror_flag" || | ||
21457 | test ! -s conftest.err | ||
21458 | } && test -s conftest$ac_exeext && | ||
21459 | $as_test_x conftest$ac_exeext; then | ||
21460 | eval "$as_ac_var=yes" | ||
21461 | else | ||
21462 | echo "$as_me: failed program was:" >&5 | ||
21463 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21464 | |||
21465 | eval "$as_ac_var=no" | ||
21466 | fi | ||
21467 | |||
21468 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21469 | conftest$ac_exeext conftest.$ac_ext | ||
21470 | fi | ||
21471 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
21472 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
21473 | echo "${ECHO_T}$ac_res" >&6; } | ||
21474 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
21475 | cat >>confdefs.h <<_ACEOF | ||
21476 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
21477 | _ACEOF | ||
21478 | |||
21479 | fi | ||
21480 | done | ||
21481 | |||
21482 | |||
21483 | if test "x$openssl_engine" = "xyes" ; then | ||
21484 | { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 | ||
21485 | echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; } | ||
21486 | cat >conftest.$ac_ext <<_ACEOF | ||
21487 | /* confdefs.h. */ | ||
21488 | _ACEOF | ||
21489 | cat confdefs.h >>conftest.$ac_ext | ||
21490 | cat >>conftest.$ac_ext <<_ACEOF | ||
21491 | /* end confdefs.h. */ | ||
21492 | |||
21493 | #include <openssl/engine.h> | ||
21494 | |||
21495 | int | ||
21496 | main () | ||
21497 | { | ||
21498 | |||
21499 | ENGINE_load_builtin_engines(); | ||
21500 | ENGINE_register_all_complete(); | ||
21501 | |||
21502 | ; | ||
21503 | return 0; | ||
21504 | } | ||
21505 | _ACEOF | ||
21506 | rm -f conftest.$ac_objext | ||
21507 | if { (ac_try="$ac_compile" | ||
21508 | case "(($ac_try" in | ||
21509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21510 | *) ac_try_echo=$ac_try;; | ||
21511 | esac | ||
21512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21513 | (eval "$ac_compile") 2>conftest.er1 | ||
21514 | ac_status=$? | ||
21515 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21516 | rm -f conftest.er1 | ||
21517 | cat conftest.err >&5 | ||
21518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21519 | (exit $ac_status); } && { | ||
21520 | test -z "$ac_c_werror_flag" || | ||
21521 | test ! -s conftest.err | ||
21522 | } && test -s conftest.$ac_objext; then | ||
21523 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21524 | echo "${ECHO_T}yes" >&6; } | ||
21525 | |||
21526 | cat >>confdefs.h <<\_ACEOF | ||
21527 | #define USE_OPENSSL_ENGINE 1 | ||
21528 | _ACEOF | ||
21529 | |||
21530 | |||
21531 | else | ||
21532 | echo "$as_me: failed program was:" >&5 | ||
21533 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21534 | |||
21535 | { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 | ||
21536 | echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} | ||
21537 | { (exit 1); exit 1; }; } | ||
21538 | |||
21539 | fi | ||
21540 | |||
21541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21542 | fi | ||
21543 | |||
21544 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
21545 | { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | ||
21546 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } | ||
21547 | cat >conftest.$ac_ext <<_ACEOF | ||
21548 | /* confdefs.h. */ | ||
21549 | _ACEOF | ||
21550 | cat confdefs.h >>conftest.$ac_ext | ||
21551 | cat >>conftest.$ac_ext <<_ACEOF | ||
21552 | /* end confdefs.h. */ | ||
21553 | |||
21554 | #include <string.h> | ||
21555 | #include <openssl/evp.h> | ||
21556 | |||
21557 | int | ||
21558 | main () | ||
21559 | { | ||
21560 | |||
21561 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); | ||
21562 | |||
21563 | ; | ||
21564 | return 0; | ||
21565 | } | ||
21566 | _ACEOF | ||
21567 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21568 | if { (ac_try="$ac_link" | ||
21569 | case "(($ac_try" in | ||
21570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21571 | *) ac_try_echo=$ac_try;; | ||
21572 | esac | ||
21573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21574 | (eval "$ac_link") 2>conftest.er1 | ||
21575 | ac_status=$? | ||
21576 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21577 | rm -f conftest.er1 | ||
21578 | cat conftest.err >&5 | ||
21579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21580 | (exit $ac_status); } && { | ||
21581 | test -z "$ac_c_werror_flag" || | ||
21582 | test ! -s conftest.err | ||
21583 | } && test -s conftest$ac_exeext && | ||
21584 | $as_test_x conftest$ac_exeext; then | ||
21585 | |||
21586 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21587 | echo "${ECHO_T}no" >&6; } | ||
21588 | |||
21589 | else | ||
21590 | echo "$as_me: failed program was:" >&5 | ||
21591 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21592 | |||
21593 | |||
21594 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21595 | echo "${ECHO_T}yes" >&6; } | ||
21596 | |||
21597 | cat >>confdefs.h <<\_ACEOF | ||
21598 | #define OPENSSL_LOBOTOMISED_AES 1 | ||
21599 | _ACEOF | ||
21600 | |||
21601 | |||
21602 | |||
21603 | fi | ||
21604 | |||
21605 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21606 | conftest$ac_exeext conftest.$ac_ext | ||
21607 | |||
21608 | # Check for OpenSSL with EVP_aes_*ctr | ||
21609 | { echo "$as_me:$LINENO: checking whether OpenSSL has AES CTR via EVP" >&5 | ||
21610 | echo $ECHO_N "checking whether OpenSSL has AES CTR via EVP... $ECHO_C" >&6; } | ||
21611 | cat >conftest.$ac_ext <<_ACEOF | ||
21612 | /* confdefs.h. */ | ||
21613 | _ACEOF | ||
21614 | cat confdefs.h >>conftest.$ac_ext | ||
21615 | cat >>conftest.$ac_ext <<_ACEOF | ||
21616 | /* end confdefs.h. */ | ||
21617 | |||
21618 | #include <string.h> | ||
21619 | #include <openssl/evp.h> | ||
21620 | |||
21621 | int | ||
21622 | main () | ||
21623 | { | ||
21624 | |||
21625 | exit(EVP_aes_128_ctr() == NULL || | ||
21626 | EVP_aes_192_cbc() == NULL || | ||
21627 | EVP_aes_256_cbc() == NULL); | ||
21628 | |||
21629 | ; | ||
21630 | return 0; | ||
21631 | } | ||
21632 | _ACEOF | ||
21633 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21634 | if { (ac_try="$ac_link" | ||
21635 | case "(($ac_try" in | ||
21636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21637 | *) ac_try_echo=$ac_try;; | ||
21638 | esac | ||
21639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21640 | (eval "$ac_link") 2>conftest.er1 | ||
21641 | ac_status=$? | ||
21642 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21643 | rm -f conftest.er1 | ||
21644 | cat conftest.err >&5 | ||
21645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21646 | (exit $ac_status); } && { | ||
21647 | test -z "$ac_c_werror_flag" || | ||
21648 | test ! -s conftest.err | ||
21649 | } && test -s conftest$ac_exeext && | ||
21650 | $as_test_x conftest$ac_exeext; then | ||
21651 | |||
21652 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21653 | echo "${ECHO_T}yes" >&6; } | ||
21654 | |||
21655 | cat >>confdefs.h <<\_ACEOF | ||
21656 | #define OPENSSL_HAVE_EVPCTR 1 | ||
21657 | _ACEOF | ||
21658 | |||
21659 | |||
21660 | else | ||
21661 | echo "$as_me: failed program was:" >&5 | ||
21662 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21663 | |||
21664 | |||
21665 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21666 | echo "${ECHO_T}no" >&6; } | ||
21667 | |||
21668 | |||
21669 | fi | ||
21670 | |||
21671 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21672 | conftest$ac_exeext conftest.$ac_ext | ||
21673 | |||
21674 | # Check for OpenSSL with EVP_aes_*gcm | ||
21675 | { echo "$as_me:$LINENO: checking whether OpenSSL has AES GCM via EVP" >&5 | ||
21676 | echo $ECHO_N "checking whether OpenSSL has AES GCM via EVP... $ECHO_C" >&6; } | ||
21677 | cat >conftest.$ac_ext <<_ACEOF | ||
21678 | /* confdefs.h. */ | ||
21679 | _ACEOF | ||
21680 | cat confdefs.h >>conftest.$ac_ext | ||
21681 | cat >>conftest.$ac_ext <<_ACEOF | ||
21682 | /* end confdefs.h. */ | ||
21683 | |||
21684 | #include <string.h> | ||
21685 | #include <openssl/evp.h> | ||
21686 | |||
21687 | int | ||
21688 | main () | ||
21689 | { | ||
21690 | |||
21691 | exit(EVP_aes_128_gcm() == NULL || | ||
21692 | EVP_aes_256_gcm() == NULL || | ||
21693 | EVP_CTRL_GCM_SET_IV_FIXED == 0 || | ||
21694 | EVP_CTRL_GCM_IV_GEN == 0 || | ||
21695 | EVP_CTRL_GCM_SET_TAG == 0 || | ||
21696 | EVP_CTRL_GCM_GET_TAG == 0 || | ||
21697 | EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); | ||
21698 | |||
21699 | ; | ||
21700 | return 0; | ||
21701 | } | ||
21702 | _ACEOF | ||
21703 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21704 | if { (ac_try="$ac_link" | ||
21705 | case "(($ac_try" in | ||
21706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21707 | *) ac_try_echo=$ac_try;; | ||
21708 | esac | ||
21709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21710 | (eval "$ac_link") 2>conftest.er1 | ||
21711 | ac_status=$? | ||
21712 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21713 | rm -f conftest.er1 | ||
21714 | cat conftest.err >&5 | ||
21715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21716 | (exit $ac_status); } && { | ||
21717 | test -z "$ac_c_werror_flag" || | ||
21718 | test ! -s conftest.err | ||
21719 | } && test -s conftest$ac_exeext && | ||
21720 | $as_test_x conftest$ac_exeext; then | ||
21721 | |||
21722 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21723 | echo "${ECHO_T}yes" >&6; } | ||
21724 | |||
21725 | cat >>confdefs.h <<\_ACEOF | ||
21726 | #define OPENSSL_HAVE_EVPGCM 1 | ||
21727 | _ACEOF | ||
21728 | |||
21729 | |||
21730 | else | ||
21731 | echo "$as_me: failed program was:" >&5 | ||
21732 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21733 | |||
21734 | |||
21735 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21736 | echo "${ECHO_T}no" >&6; } | ||
21737 | unsupported_algorithms="$unsupported_cipers \ | ||
21738 | aes128-gcm@openssh.com aes256-gcm@openssh.com" | ||
21739 | |||
21740 | |||
21741 | fi | ||
21742 | |||
21743 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21744 | conftest$ac_exeext conftest.$ac_ext | ||
21745 | |||
21746 | { echo "$as_me:$LINENO: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 | ||
21747 | echo $ECHO_N "checking for library containing EVP_CIPHER_CTX_ctrl... $ECHO_C" >&6; } | ||
21748 | if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then | ||
21749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21750 | else | ||
21751 | ac_func_search_save_LIBS=$LIBS | ||
21752 | cat >conftest.$ac_ext <<_ACEOF | ||
21753 | /* confdefs.h. */ | ||
21754 | _ACEOF | ||
21755 | cat confdefs.h >>conftest.$ac_ext | ||
21756 | cat >>conftest.$ac_ext <<_ACEOF | ||
21757 | /* end confdefs.h. */ | ||
21758 | |||
21759 | /* Override any GCC internal prototype to avoid an error. | ||
21760 | Use char because int might match the return type of a GCC | ||
21761 | builtin and then its argument prototype would still apply. */ | ||
21762 | #ifdef __cplusplus | ||
21763 | extern "C" | ||
21764 | #endif | ||
21765 | char EVP_CIPHER_CTX_ctrl (); | ||
21766 | int | ||
21767 | main () | ||
21768 | { | ||
21769 | return EVP_CIPHER_CTX_ctrl (); | ||
21770 | ; | ||
21771 | return 0; | ||
21772 | } | ||
21773 | _ACEOF | ||
21774 | for ac_lib in '' crypto; do | ||
21775 | if test -z "$ac_lib"; then | ||
21776 | ac_res="none required" | ||
21777 | else | ||
21778 | ac_res=-l$ac_lib | ||
21779 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
21780 | fi | ||
21781 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21782 | if { (ac_try="$ac_link" | ||
21783 | case "(($ac_try" in | ||
21784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21785 | *) ac_try_echo=$ac_try;; | ||
21786 | esac | ||
21787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21788 | (eval "$ac_link") 2>conftest.er1 | ||
21789 | ac_status=$? | ||
21790 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21791 | rm -f conftest.er1 | ||
21792 | cat conftest.err >&5 | ||
21793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21794 | (exit $ac_status); } && { | ||
21795 | test -z "$ac_c_werror_flag" || | ||
21796 | test ! -s conftest.err | ||
21797 | } && test -s conftest$ac_exeext && | ||
21798 | $as_test_x conftest$ac_exeext; then | ||
21799 | ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res | ||
21800 | else | ||
21801 | echo "$as_me: failed program was:" >&5 | ||
21802 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21803 | |||
21804 | |||
21805 | fi | ||
21806 | |||
21807 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21808 | conftest$ac_exeext | ||
21809 | if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then | ||
21810 | break | ||
21811 | fi | ||
21812 | done | ||
21813 | if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then | ||
21814 | : | ||
21815 | else | ||
21816 | ac_cv_search_EVP_CIPHER_CTX_ctrl=no | ||
21817 | fi | ||
21818 | rm conftest.$ac_ext | ||
21819 | LIBS=$ac_func_search_save_LIBS | ||
21820 | fi | ||
21821 | { echo "$as_me:$LINENO: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 | ||
21822 | echo "${ECHO_T}$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } | ||
21823 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl | ||
21824 | if test "$ac_res" != no; then | ||
21825 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
21826 | |||
21827 | cat >>confdefs.h <<\_ACEOF | ||
21828 | #define HAVE_EVP_CIPHER_CTX_CTRL 1 | ||
21829 | _ACEOF | ||
21830 | |||
21831 | fi | ||
21832 | |||
21833 | |||
21834 | { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5 | ||
21835 | echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; } | ||
21836 | cat >conftest.$ac_ext <<_ACEOF | ||
21837 | /* confdefs.h. */ | ||
21838 | _ACEOF | ||
21839 | cat confdefs.h >>conftest.$ac_ext | ||
21840 | cat >>conftest.$ac_ext <<_ACEOF | ||
21841 | /* end confdefs.h. */ | ||
21842 | |||
21843 | #include <string.h> | ||
21844 | #include <openssl/evp.h> | ||
21845 | |||
21846 | int | ||
21847 | main () | ||
21848 | { | ||
21849 | |||
21850 | if(EVP_DigestUpdate(NULL, NULL,0)) | ||
21851 | exit(0); | ||
21852 | |||
21853 | ; | ||
21854 | return 0; | ||
21855 | } | ||
21856 | _ACEOF | ||
21857 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21858 | if { (ac_try="$ac_link" | ||
21859 | case "(($ac_try" in | ||
21860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21861 | *) ac_try_echo=$ac_try;; | ||
21862 | esac | ||
21863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21864 | (eval "$ac_link") 2>conftest.er1 | ||
21865 | ac_status=$? | ||
21866 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21867 | rm -f conftest.er1 | ||
21868 | cat conftest.err >&5 | ||
21869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21870 | (exit $ac_status); } && { | ||
21871 | test -z "$ac_c_werror_flag" || | ||
21872 | test ! -s conftest.err | ||
21873 | } && test -s conftest$ac_exeext && | ||
21874 | $as_test_x conftest$ac_exeext; then | ||
21875 | |||
21876 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21877 | echo "${ECHO_T}yes" >&6; } | ||
21878 | |||
21879 | else | ||
21880 | echo "$as_me: failed program was:" >&5 | ||
21881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21882 | |||
21883 | |||
21884 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21885 | echo "${ECHO_T}no" >&6; } | ||
21886 | |||
21887 | cat >>confdefs.h <<\_ACEOF | ||
21888 | #define OPENSSL_EVP_DIGESTUPDATE_VOID 1 | ||
21889 | _ACEOF | ||
21890 | |||
21891 | |||
21892 | |||
21893 | fi | ||
21894 | |||
21895 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21896 | conftest$ac_exeext conftest.$ac_ext | ||
21897 | |||
21898 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
21899 | # because the system crypt() is more featureful. | ||
21900 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
21901 | |||
21902 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
21903 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
21904 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
21905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21906 | else | ||
21907 | ac_check_lib_save_LIBS=$LIBS | ||
21908 | LIBS="-lcrypt $LIBS" | ||
21909 | cat >conftest.$ac_ext <<_ACEOF | ||
21910 | /* confdefs.h. */ | ||
21911 | _ACEOF | ||
21912 | cat confdefs.h >>conftest.$ac_ext | ||
21913 | cat >>conftest.$ac_ext <<_ACEOF | ||
21914 | /* end confdefs.h. */ | ||
21915 | |||
21916 | /* Override any GCC internal prototype to avoid an error. | ||
21917 | Use char because int might match the return type of a GCC | ||
21918 | builtin and then its argument prototype would still apply. */ | ||
21919 | #ifdef __cplusplus | ||
21920 | extern "C" | ||
21921 | #endif | ||
21922 | char crypt (); | ||
21923 | int | ||
21924 | main () | ||
21925 | { | ||
21926 | return crypt (); | ||
21927 | ; | ||
21928 | return 0; | ||
21929 | } | ||
21930 | _ACEOF | ||
21931 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21932 | if { (ac_try="$ac_link" | ||
21933 | case "(($ac_try" in | ||
21934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21935 | *) ac_try_echo=$ac_try;; | ||
21936 | esac | ||
21937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21938 | (eval "$ac_link") 2>conftest.er1 | ||
21939 | ac_status=$? | ||
21940 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21941 | rm -f conftest.er1 | ||
21942 | cat conftest.err >&5 | ||
21943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21944 | (exit $ac_status); } && { | ||
21945 | test -z "$ac_c_werror_flag" || | ||
21946 | test ! -s conftest.err | ||
21947 | } && test -s conftest$ac_exeext && | ||
21948 | $as_test_x conftest$ac_exeext; then | ||
21949 | ac_cv_lib_crypt_crypt=yes | ||
21950 | else | ||
21951 | echo "$as_me: failed program was:" >&5 | ||
21952 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21953 | |||
21954 | ac_cv_lib_crypt_crypt=no | ||
21955 | fi | ||
21956 | |||
21957 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21958 | conftest$ac_exeext conftest.$ac_ext | ||
21959 | LIBS=$ac_check_lib_save_LIBS | ||
21960 | fi | ||
21961 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
21962 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
21963 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
21964 | cat >>confdefs.h <<_ACEOF | ||
21965 | #define HAVE_LIBCRYPT 1 | ||
21966 | _ACEOF | ||
21967 | |||
21968 | LIBS="-lcrypt $LIBS" | ||
21969 | |||
21970 | fi | ||
21971 | |||
21972 | fi | ||
21973 | |||
21974 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
21975 | # version in OpenSSL. | ||
21976 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
21977 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
21978 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
21979 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
21980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21981 | else | ||
21982 | ac_check_lib_save_LIBS=$LIBS | ||
21983 | LIBS="-lcrypt $LIBS" | ||
21984 | cat >conftest.$ac_ext <<_ACEOF | ||
21985 | /* confdefs.h. */ | ||
21986 | _ACEOF | ||
21987 | cat confdefs.h >>conftest.$ac_ext | ||
21988 | cat >>conftest.$ac_ext <<_ACEOF | ||
21989 | /* end confdefs.h. */ | ||
21990 | |||
21991 | /* Override any GCC internal prototype to avoid an error. | ||
21992 | Use char because int might match the return type of a GCC | ||
21993 | builtin and then its argument prototype would still apply. */ | ||
21994 | #ifdef __cplusplus | ||
21995 | extern "C" | ||
21996 | #endif | ||
21997 | char crypt (); | ||
21998 | int | ||
21999 | main () | ||
22000 | { | ||
22001 | return crypt (); | ||
22002 | ; | ||
22003 | return 0; | ||
22004 | } | ||
22005 | _ACEOF | ||
22006 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22007 | if { (ac_try="$ac_link" | ||
22008 | case "(($ac_try" in | ||
22009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22010 | *) ac_try_echo=$ac_try;; | ||
22011 | esac | ||
22012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22013 | (eval "$ac_link") 2>conftest.er1 | ||
22014 | ac_status=$? | ||
22015 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22016 | rm -f conftest.er1 | ||
22017 | cat conftest.err >&5 | ||
22018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22019 | (exit $ac_status); } && { | ||
22020 | test -z "$ac_c_werror_flag" || | ||
22021 | test ! -s conftest.err | ||
22022 | } && test -s conftest$ac_exeext && | ||
22023 | $as_test_x conftest$ac_exeext; then | ||
22024 | ac_cv_lib_crypt_crypt=yes | ||
22025 | else | ||
22026 | echo "$as_me: failed program was:" >&5 | ||
22027 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22028 | |||
22029 | ac_cv_lib_crypt_crypt=no | ||
22030 | fi | ||
22031 | |||
22032 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22033 | conftest$ac_exeext conftest.$ac_ext | ||
22034 | LIBS=$ac_check_lib_save_LIBS | ||
22035 | fi | ||
22036 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
22037 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
22038 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
22039 | LIBS="$LIBS -lcrypt" | ||
22040 | fi | ||
22041 | |||
22042 | fi | ||
22043 | |||
22044 | |||
22045 | for ac_func in crypt DES_crypt | ||
22046 | do | ||
22047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22048 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22050 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22052 | else | ||
22053 | cat >conftest.$ac_ext <<_ACEOF | ||
22054 | /* confdefs.h. */ | ||
22055 | _ACEOF | ||
22056 | cat confdefs.h >>conftest.$ac_ext | ||
22057 | cat >>conftest.$ac_ext <<_ACEOF | ||
22058 | /* end confdefs.h. */ | ||
22059 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22061 | #define $ac_func innocuous_$ac_func | ||
22062 | |||
22063 | /* System header to define __stub macros and hopefully few prototypes, | ||
22064 | which can conflict with char $ac_func (); below. | ||
22065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22066 | <limits.h> exists even on freestanding compilers. */ | ||
22067 | |||
22068 | #ifdef __STDC__ | ||
22069 | # include <limits.h> | ||
22070 | #else | ||
22071 | # include <assert.h> | ||
22072 | #endif | ||
22073 | |||
22074 | #undef $ac_func | ||
22075 | |||
22076 | /* Override any GCC internal prototype to avoid an error. | ||
22077 | Use char because int might match the return type of a GCC | ||
22078 | builtin and then its argument prototype would still apply. */ | ||
22079 | #ifdef __cplusplus | ||
22080 | extern "C" | ||
22081 | #endif | ||
22082 | char $ac_func (); | ||
22083 | /* The GNU C library defines this for functions which it implements | ||
22084 | to always fail with ENOSYS. Some functions are actually named | ||
22085 | something starting with __ and the normal name is an alias. */ | ||
22086 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22087 | choke me | ||
22088 | #endif | ||
22089 | |||
22090 | int | ||
22091 | main () | ||
22092 | { | ||
22093 | return $ac_func (); | ||
22094 | ; | ||
22095 | return 0; | ||
22096 | } | ||
22097 | _ACEOF | ||
22098 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22099 | if { (ac_try="$ac_link" | ||
22100 | case "(($ac_try" in | ||
22101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22102 | *) ac_try_echo=$ac_try;; | ||
22103 | esac | ||
22104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22105 | (eval "$ac_link") 2>conftest.er1 | ||
22106 | ac_status=$? | ||
22107 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22108 | rm -f conftest.er1 | ||
22109 | cat conftest.err >&5 | ||
22110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22111 | (exit $ac_status); } && { | ||
22112 | test -z "$ac_c_werror_flag" || | ||
22113 | test ! -s conftest.err | ||
22114 | } && test -s conftest$ac_exeext && | ||
22115 | $as_test_x conftest$ac_exeext; then | ||
22116 | eval "$as_ac_var=yes" | ||
22117 | else | ||
22118 | echo "$as_me: failed program was:" >&5 | ||
22119 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22120 | |||
22121 | eval "$as_ac_var=no" | ||
22122 | fi | ||
22123 | |||
22124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22125 | conftest$ac_exeext conftest.$ac_ext | ||
22126 | fi | ||
22127 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22128 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22129 | echo "${ECHO_T}$ac_res" >&6; } | ||
22130 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22131 | cat >>confdefs.h <<_ACEOF | ||
22132 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22133 | _ACEOF | ||
22134 | |||
22135 | fi | ||
22136 | done | ||
22137 | |||
22138 | |||
22139 | # Search for SHA256 support in libc and/or OpenSSL | ||
22140 | |||
22141 | |||
22142 | for ac_func in SHA256_Update EVP_sha256 | ||
22143 | do | ||
22144 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22145 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22146 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22147 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22149 | else | ||
22150 | cat >conftest.$ac_ext <<_ACEOF | ||
22151 | /* confdefs.h. */ | ||
22152 | _ACEOF | ||
22153 | cat confdefs.h >>conftest.$ac_ext | ||
22154 | cat >>conftest.$ac_ext <<_ACEOF | ||
22155 | /* end confdefs.h. */ | ||
22156 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22157 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22158 | #define $ac_func innocuous_$ac_func | ||
22159 | |||
22160 | /* System header to define __stub macros and hopefully few prototypes, | ||
22161 | which can conflict with char $ac_func (); below. | ||
22162 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22163 | <limits.h> exists even on freestanding compilers. */ | ||
22164 | |||
22165 | #ifdef __STDC__ | ||
22166 | # include <limits.h> | ||
22167 | #else | ||
22168 | # include <assert.h> | ||
22169 | #endif | ||
22170 | |||
22171 | #undef $ac_func | ||
22172 | |||
22173 | /* Override any GCC internal prototype to avoid an error. | ||
22174 | Use char because int might match the return type of a GCC | ||
22175 | builtin and then its argument prototype would still apply. */ | ||
22176 | #ifdef __cplusplus | ||
22177 | extern "C" | ||
22178 | #endif | ||
22179 | char $ac_func (); | ||
22180 | /* The GNU C library defines this for functions which it implements | ||
22181 | to always fail with ENOSYS. Some functions are actually named | ||
22182 | something starting with __ and the normal name is an alias. */ | ||
22183 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22184 | choke me | ||
22185 | #endif | ||
22186 | |||
22187 | int | ||
22188 | main () | ||
22189 | { | ||
22190 | return $ac_func (); | ||
22191 | ; | ||
22192 | return 0; | ||
22193 | } | ||
22194 | _ACEOF | ||
22195 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22196 | if { (ac_try="$ac_link" | ||
22197 | case "(($ac_try" in | ||
22198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22199 | *) ac_try_echo=$ac_try;; | ||
22200 | esac | ||
22201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22202 | (eval "$ac_link") 2>conftest.er1 | ||
22203 | ac_status=$? | ||
22204 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22205 | rm -f conftest.er1 | ||
22206 | cat conftest.err >&5 | ||
22207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22208 | (exit $ac_status); } && { | ||
22209 | test -z "$ac_c_werror_flag" || | ||
22210 | test ! -s conftest.err | ||
22211 | } && test -s conftest$ac_exeext && | ||
22212 | $as_test_x conftest$ac_exeext; then | ||
22213 | eval "$as_ac_var=yes" | ||
22214 | else | ||
22215 | echo "$as_me: failed program was:" >&5 | ||
22216 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22217 | |||
22218 | eval "$as_ac_var=no" | ||
22219 | fi | ||
22220 | |||
22221 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22222 | conftest$ac_exeext conftest.$ac_ext | ||
22223 | fi | ||
22224 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22225 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22226 | echo "${ECHO_T}$ac_res" >&6; } | ||
22227 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22228 | cat >>confdefs.h <<_ACEOF | ||
22229 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22230 | _ACEOF | ||
22231 | |||
22232 | else | ||
22233 | unsupported_algorithms="$unsupported_algorithms \ | ||
22234 | hmac-sha2-256 hmac-sha2-512 \ | ||
22235 | diffie-hellman-group-exchange-sha256 \ | ||
22236 | hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com" | ||
22237 | |||
22238 | |||
22239 | fi | ||
22240 | done | ||
22241 | |||
22242 | # Search for RIPE-MD support in OpenSSL | ||
22243 | |||
22244 | for ac_func in EVP_ripemd160 | ||
22245 | do | ||
22246 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22247 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22248 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22249 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22251 | else | ||
22252 | cat >conftest.$ac_ext <<_ACEOF | ||
22253 | /* confdefs.h. */ | ||
22254 | _ACEOF | ||
22255 | cat confdefs.h >>conftest.$ac_ext | ||
22256 | cat >>conftest.$ac_ext <<_ACEOF | ||
22257 | /* end confdefs.h. */ | ||
22258 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22259 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22260 | #define $ac_func innocuous_$ac_func | ||
22261 | |||
22262 | /* System header to define __stub macros and hopefully few prototypes, | ||
22263 | which can conflict with char $ac_func (); below. | ||
22264 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22265 | <limits.h> exists even on freestanding compilers. */ | ||
22266 | |||
22267 | #ifdef __STDC__ | ||
22268 | # include <limits.h> | ||
22269 | #else | ||
22270 | # include <assert.h> | ||
22271 | #endif | ||
22272 | |||
22273 | #undef $ac_func | ||
22274 | |||
22275 | /* Override any GCC internal prototype to avoid an error. | ||
22276 | Use char because int might match the return type of a GCC | ||
22277 | builtin and then its argument prototype would still apply. */ | ||
22278 | #ifdef __cplusplus | ||
22279 | extern "C" | ||
22280 | #endif | ||
22281 | char $ac_func (); | ||
22282 | /* The GNU C library defines this for functions which it implements | ||
22283 | to always fail with ENOSYS. Some functions are actually named | ||
22284 | something starting with __ and the normal name is an alias. */ | ||
22285 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22286 | choke me | ||
22287 | #endif | ||
22288 | |||
22289 | int | ||
22290 | main () | ||
22291 | { | ||
22292 | return $ac_func (); | ||
22293 | ; | ||
22294 | return 0; | ||
22295 | } | ||
22296 | _ACEOF | ||
22297 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22298 | if { (ac_try="$ac_link" | ||
22299 | case "(($ac_try" in | ||
22300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22301 | *) ac_try_echo=$ac_try;; | ||
22302 | esac | ||
22303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22304 | (eval "$ac_link") 2>conftest.er1 | ||
22305 | ac_status=$? | ||
22306 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22307 | rm -f conftest.er1 | ||
22308 | cat conftest.err >&5 | ||
22309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22310 | (exit $ac_status); } && { | ||
22311 | test -z "$ac_c_werror_flag" || | ||
22312 | test ! -s conftest.err | ||
22313 | } && test -s conftest$ac_exeext && | ||
22314 | $as_test_x conftest$ac_exeext; then | ||
22315 | eval "$as_ac_var=yes" | ||
22316 | else | ||
22317 | echo "$as_me: failed program was:" >&5 | ||
22318 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22319 | |||
22320 | eval "$as_ac_var=no" | ||
22321 | fi | ||
22322 | |||
22323 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22324 | conftest$ac_exeext conftest.$ac_ext | ||
22325 | fi | ||
22326 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22327 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22328 | echo "${ECHO_T}$ac_res" >&6; } | ||
22329 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22330 | cat >>confdefs.h <<_ACEOF | ||
22331 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22332 | _ACEOF | ||
22333 | |||
22334 | else | ||
22335 | unsupported_algorithms="$unsupported_algorithms \ | ||
22336 | hmac-ripemd160 | ||
22337 | hmac-ripemd160@openssh.com | ||
22338 | hmac-ripemd160-etm@openssh.com" | ||
22339 | |||
22340 | |||
22341 | fi | ||
22342 | done | ||
22343 | |||
22344 | |||
22345 | # Check complete ECC support in OpenSSL | ||
22346 | { echo "$as_me:$LINENO: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 | ||
22347 | echo $ECHO_N "checking whether OpenSSL has NID_X9_62_prime256v1... $ECHO_C" >&6; } | ||
22348 | cat >conftest.$ac_ext <<_ACEOF | ||
22349 | /* confdefs.h. */ | ||
22350 | _ACEOF | ||
22351 | cat confdefs.h >>conftest.$ac_ext | ||
22352 | cat >>conftest.$ac_ext <<_ACEOF | ||
22353 | /* end confdefs.h. */ | ||
22354 | |||
22355 | #include <openssl/ec.h> | ||
22356 | #include <openssl/ecdh.h> | ||
22357 | #include <openssl/ecdsa.h> | ||
22358 | #include <openssl/evp.h> | ||
22359 | #include <openssl/objects.h> | ||
22360 | #include <openssl/opensslv.h> | ||
22361 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
22362 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
22363 | #endif | ||
22364 | |||
22365 | int | ||
22366 | main () | ||
22367 | { | ||
22368 | |||
22369 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); | ||
22370 | const EVP_MD *m = EVP_sha256(); /* We need this too */ | ||
22371 | |||
22372 | ; | ||
22373 | return 0; | ||
22374 | } | ||
22375 | _ACEOF | ||
22376 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22377 | if { (ac_try="$ac_link" | ||
22378 | case "(($ac_try" in | ||
22379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22380 | *) ac_try_echo=$ac_try;; | ||
22381 | esac | ||
22382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22383 | (eval "$ac_link") 2>conftest.er1 | ||
22384 | ac_status=$? | ||
22385 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22386 | rm -f conftest.er1 | ||
22387 | cat conftest.err >&5 | ||
22388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22389 | (exit $ac_status); } && { | ||
22390 | test -z "$ac_c_werror_flag" || | ||
22391 | test ! -s conftest.err | ||
22392 | } && test -s conftest$ac_exeext && | ||
22393 | $as_test_x conftest$ac_exeext; then | ||
22394 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22395 | echo "${ECHO_T}yes" >&6; } | ||
22396 | enable_nistp256=1 | ||
22397 | else | ||
22398 | echo "$as_me: failed program was:" >&5 | ||
22399 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22400 | |||
22401 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22402 | echo "${ECHO_T}no" >&6; } | ||
22403 | |||
22404 | fi | ||
22405 | |||
22406 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22407 | conftest$ac_exeext conftest.$ac_ext | ||
22408 | |||
22409 | { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp384r1" >&5 | ||
22410 | echo $ECHO_N "checking whether OpenSSL has NID_secp384r1... $ECHO_C" >&6; } | ||
22411 | cat >conftest.$ac_ext <<_ACEOF | ||
22412 | /* confdefs.h. */ | ||
22413 | _ACEOF | ||
22414 | cat confdefs.h >>conftest.$ac_ext | ||
22415 | cat >>conftest.$ac_ext <<_ACEOF | ||
22416 | /* end confdefs.h. */ | ||
22417 | |||
22418 | #include <openssl/ec.h> | ||
22419 | #include <openssl/ecdh.h> | ||
22420 | #include <openssl/ecdsa.h> | ||
22421 | #include <openssl/evp.h> | ||
22422 | #include <openssl/objects.h> | ||
22423 | #include <openssl/opensslv.h> | ||
22424 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
22425 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
22426 | #endif | ||
22427 | |||
22428 | int | ||
22429 | main () | ||
22430 | { | ||
22431 | |||
22432 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); | ||
22433 | const EVP_MD *m = EVP_sha384(); /* We need this too */ | ||
22434 | |||
22435 | ; | ||
22436 | return 0; | ||
22437 | } | ||
22438 | _ACEOF | ||
22439 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22440 | if { (ac_try="$ac_link" | ||
22441 | case "(($ac_try" in | ||
22442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22443 | *) ac_try_echo=$ac_try;; | ||
22444 | esac | ||
22445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22446 | (eval "$ac_link") 2>conftest.er1 | ||
22447 | ac_status=$? | ||
22448 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22449 | rm -f conftest.er1 | ||
22450 | cat conftest.err >&5 | ||
22451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22452 | (exit $ac_status); } && { | ||
22453 | test -z "$ac_c_werror_flag" || | ||
22454 | test ! -s conftest.err | ||
22455 | } && test -s conftest$ac_exeext && | ||
22456 | $as_test_x conftest$ac_exeext; then | ||
22457 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22458 | echo "${ECHO_T}yes" >&6; } | ||
22459 | enable_nistp384=1 | ||
22460 | else | ||
22461 | echo "$as_me: failed program was:" >&5 | ||
22462 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22463 | |||
22464 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22465 | echo "${ECHO_T}no" >&6; } | ||
22466 | |||
22467 | fi | ||
22468 | |||
22469 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22470 | conftest$ac_exeext conftest.$ac_ext | ||
22471 | |||
22472 | { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp521r1" >&5 | ||
22473 | echo $ECHO_N "checking whether OpenSSL has NID_secp521r1... $ECHO_C" >&6; } | ||
22474 | cat >conftest.$ac_ext <<_ACEOF | ||
22475 | /* confdefs.h. */ | ||
22476 | _ACEOF | ||
22477 | cat confdefs.h >>conftest.$ac_ext | ||
22478 | cat >>conftest.$ac_ext <<_ACEOF | ||
22479 | /* end confdefs.h. */ | ||
22480 | |||
22481 | #include <openssl/ec.h> | ||
22482 | #include <openssl/ecdh.h> | ||
22483 | #include <openssl/ecdsa.h> | ||
22484 | #include <openssl/evp.h> | ||
22485 | #include <openssl/objects.h> | ||
22486 | #include <openssl/opensslv.h> | ||
22487 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
22488 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
22489 | #endif | ||
22490 | |||
22491 | int | ||
22492 | main () | ||
22493 | { | ||
22494 | |||
22495 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
22496 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
22497 | |||
22498 | ; | ||
22499 | return 0; | ||
22500 | } | ||
22501 | _ACEOF | ||
22502 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22503 | if { (ac_try="$ac_link" | ||
22504 | case "(($ac_try" in | ||
22505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22506 | *) ac_try_echo=$ac_try;; | ||
22507 | esac | ||
22508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22509 | (eval "$ac_link") 2>conftest.er1 | ||
22510 | ac_status=$? | ||
22511 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22512 | rm -f conftest.er1 | ||
22513 | cat conftest.err >&5 | ||
22514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22515 | (exit $ac_status); } && { | ||
22516 | test -z "$ac_c_werror_flag" || | ||
22517 | test ! -s conftest.err | ||
22518 | } && test -s conftest$ac_exeext && | ||
22519 | $as_test_x conftest$ac_exeext; then | ||
22520 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22521 | echo "${ECHO_T}yes" >&6; } | ||
22522 | { echo "$as_me:$LINENO: checking if OpenSSL's NID_secp521r1 is functional" >&5 | ||
22523 | echo $ECHO_N "checking if OpenSSL's NID_secp521r1 is functional... $ECHO_C" >&6; } | ||
22524 | if test "$cross_compiling" = yes; then | ||
22525 | { echo "$as_me:$LINENO: WARNING: cross-compiling: assuming yes" >&5 | ||
22526 | echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} | ||
22527 | enable_nistp521=1 | ||
22528 | |||
22529 | else | ||
22530 | cat >conftest.$ac_ext <<_ACEOF | ||
22531 | /* confdefs.h. */ | ||
22532 | _ACEOF | ||
22533 | cat confdefs.h >>conftest.$ac_ext | ||
22534 | cat >>conftest.$ac_ext <<_ACEOF | ||
22535 | /* end confdefs.h. */ | ||
22536 | |||
22537 | #include <openssl/ec.h> | ||
22538 | #include <openssl/ecdh.h> | ||
22539 | #include <openssl/ecdsa.h> | ||
22540 | #include <openssl/evp.h> | ||
22541 | #include <openssl/objects.h> | ||
22542 | #include <openssl/opensslv.h> | ||
22543 | |||
22544 | int | ||
22545 | main () | ||
22546 | { | ||
22547 | |||
22548 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
22549 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
22550 | exit(e == NULL || m == NULL); | ||
22551 | |||
22552 | ; | ||
22553 | return 0; | ||
22554 | } | ||
22555 | _ACEOF | ||
22556 | rm -f conftest$ac_exeext | ||
22557 | if { (ac_try="$ac_link" | ||
22558 | case "(($ac_try" in | ||
22559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22560 | *) ac_try_echo=$ac_try;; | ||
22561 | esac | ||
22562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22563 | (eval "$ac_link") 2>&5 | ||
22564 | ac_status=$? | ||
22565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22566 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
22567 | { (case "(($ac_try" in | ||
22568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22569 | *) ac_try_echo=$ac_try;; | ||
22570 | esac | ||
22571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22572 | (eval "$ac_try") 2>&5 | ||
22573 | ac_status=$? | ||
22574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22575 | (exit $ac_status); }; }; then | ||
22576 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22577 | echo "${ECHO_T}yes" >&6; } | ||
22578 | enable_nistp521=1 | ||
22579 | else | ||
22580 | echo "$as_me: program exited with status $ac_status" >&5 | ||
22581 | echo "$as_me: failed program was:" >&5 | ||
22582 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22583 | |||
22584 | ( exit $ac_status ) | ||
22585 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22586 | echo "${ECHO_T}no" >&6; } | ||
22587 | fi | ||
22588 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
22589 | fi | ||
22590 | |||
22591 | |||
22592 | else | ||
22593 | echo "$as_me: failed program was:" >&5 | ||
22594 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22595 | |||
22596 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22597 | echo "${ECHO_T}no" >&6; } | ||
22598 | |||
22599 | fi | ||
22600 | |||
22601 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22602 | conftest$ac_exeext conftest.$ac_ext | ||
22603 | |||
22604 | COMMENT_OUT_ECC="#no ecc#" | ||
22605 | TEST_SSH_ECC=no | ||
22606 | |||
22607 | if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ | ||
22608 | test x$enable_nistp521 = x1; then | ||
22609 | |||
22610 | cat >>confdefs.h <<\_ACEOF | ||
22611 | #define OPENSSL_HAS_ECC 1 | ||
22612 | _ACEOF | ||
22613 | |||
22614 | fi | ||
22615 | if test x$enable_nistp256 = x1; then | ||
22616 | |||
22617 | cat >>confdefs.h <<\_ACEOF | ||
22618 | #define OPENSSL_HAS_NISTP256 1 | ||
22619 | _ACEOF | ||
22620 | |||
22621 | TEST_SSH_ECC=yes | ||
22622 | COMMENT_OUT_ECC="" | ||
22623 | else | ||
22624 | unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \ | ||
22625 | ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com" | ||
22626 | fi | ||
22627 | if test x$enable_nistp384 = x1; then | ||
22628 | |||
22629 | cat >>confdefs.h <<\_ACEOF | ||
22630 | #define OPENSSL_HAS_NISTP384 1 | ||
22631 | _ACEOF | ||
22632 | |||
22633 | TEST_SSH_ECC=yes | ||
22634 | COMMENT_OUT_ECC="" | ||
22635 | else | ||
22636 | unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \ | ||
22637 | ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com" | ||
22638 | fi | ||
22639 | if test x$enable_nistp521 = x1; then | ||
22640 | |||
22641 | cat >>confdefs.h <<\_ACEOF | ||
22642 | #define OPENSSL_HAS_NISTP521 1 | ||
22643 | _ACEOF | ||
22644 | |||
22645 | TEST_SSH_ECC=yes | ||
22646 | COMMENT_OUT_ECC="" | ||
22647 | else | ||
22648 | unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \ | ||
22649 | ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com" | ||
22650 | fi | ||
22651 | |||
22652 | |||
22653 | |||
22654 | else | ||
22655 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
22656 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
22657 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
22658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22659 | else | ||
22660 | ac_check_lib_save_LIBS=$LIBS | ||
22661 | LIBS="-lcrypt $LIBS" | ||
22662 | cat >conftest.$ac_ext <<_ACEOF | ||
22663 | /* confdefs.h. */ | ||
22664 | _ACEOF | ||
22665 | cat confdefs.h >>conftest.$ac_ext | ||
22666 | cat >>conftest.$ac_ext <<_ACEOF | ||
22667 | /* end confdefs.h. */ | ||
22668 | |||
22669 | /* Override any GCC internal prototype to avoid an error. | ||
22670 | Use char because int might match the return type of a GCC | ||
22671 | builtin and then its argument prototype would still apply. */ | ||
22672 | #ifdef __cplusplus | ||
22673 | extern "C" | ||
22674 | #endif | ||
22675 | char crypt (); | ||
22676 | int | ||
22677 | main () | ||
22678 | { | ||
22679 | return crypt (); | ||
22680 | ; | ||
22681 | return 0; | ||
22682 | } | ||
22683 | _ACEOF | ||
22684 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22685 | if { (ac_try="$ac_link" | ||
22686 | case "(($ac_try" in | ||
22687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22688 | *) ac_try_echo=$ac_try;; | ||
22689 | esac | ||
22690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22691 | (eval "$ac_link") 2>conftest.er1 | ||
22692 | ac_status=$? | ||
22693 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22694 | rm -f conftest.er1 | ||
22695 | cat conftest.err >&5 | ||
22696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22697 | (exit $ac_status); } && { | ||
22698 | test -z "$ac_c_werror_flag" || | ||
22699 | test ! -s conftest.err | ||
22700 | } && test -s conftest$ac_exeext && | ||
22701 | $as_test_x conftest$ac_exeext; then | ||
22702 | ac_cv_lib_crypt_crypt=yes | ||
22703 | else | ||
22704 | echo "$as_me: failed program was:" >&5 | ||
22705 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22706 | |||
22707 | ac_cv_lib_crypt_crypt=no | ||
22708 | fi | ||
22709 | |||
22710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22711 | conftest$ac_exeext conftest.$ac_ext | ||
22712 | LIBS=$ac_check_lib_save_LIBS | ||
22713 | fi | ||
22714 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
22715 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
22716 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
22717 | LIBS="$LIBS -lcrypt" | ||
22718 | fi | ||
22719 | |||
22720 | |||
22721 | for ac_func in crypt | ||
22722 | do | ||
22723 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22724 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22725 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22726 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22728 | else | ||
22729 | cat >conftest.$ac_ext <<_ACEOF | ||
22730 | /* confdefs.h. */ | ||
22731 | _ACEOF | ||
22732 | cat confdefs.h >>conftest.$ac_ext | ||
22733 | cat >>conftest.$ac_ext <<_ACEOF | ||
22734 | /* end confdefs.h. */ | ||
22735 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22736 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22737 | #define $ac_func innocuous_$ac_func | ||
22738 | |||
22739 | /* System header to define __stub macros and hopefully few prototypes, | ||
22740 | which can conflict with char $ac_func (); below. | ||
22741 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22742 | <limits.h> exists even on freestanding compilers. */ | ||
22743 | |||
22744 | #ifdef __STDC__ | ||
22745 | # include <limits.h> | ||
22746 | #else | ||
22747 | # include <assert.h> | ||
22748 | #endif | ||
22749 | |||
22750 | #undef $ac_func | ||
22751 | |||
22752 | /* Override any GCC internal prototype to avoid an error. | ||
22753 | Use char because int might match the return type of a GCC | ||
22754 | builtin and then its argument prototype would still apply. */ | ||
22755 | #ifdef __cplusplus | ||
22756 | extern "C" | ||
22757 | #endif | ||
22758 | char $ac_func (); | ||
22759 | /* The GNU C library defines this for functions which it implements | ||
22760 | to always fail with ENOSYS. Some functions are actually named | ||
22761 | something starting with __ and the normal name is an alias. */ | ||
22762 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22763 | choke me | ||
22764 | #endif | ||
22765 | |||
22766 | int | ||
22767 | main () | ||
22768 | { | ||
22769 | return $ac_func (); | ||
22770 | ; | ||
22771 | return 0; | ||
22772 | } | ||
22773 | _ACEOF | ||
22774 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22775 | if { (ac_try="$ac_link" | ||
22776 | case "(($ac_try" in | ||
22777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22778 | *) ac_try_echo=$ac_try;; | ||
22779 | esac | ||
22780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22781 | (eval "$ac_link") 2>conftest.er1 | ||
22782 | ac_status=$? | ||
22783 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22784 | rm -f conftest.er1 | ||
22785 | cat conftest.err >&5 | ||
22786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22787 | (exit $ac_status); } && { | ||
22788 | test -z "$ac_c_werror_flag" || | ||
22789 | test ! -s conftest.err | ||
22790 | } && test -s conftest$ac_exeext && | ||
22791 | $as_test_x conftest$ac_exeext; then | ||
22792 | eval "$as_ac_var=yes" | ||
22793 | else | ||
22794 | echo "$as_me: failed program was:" >&5 | ||
22795 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22796 | |||
22797 | eval "$as_ac_var=no" | ||
22798 | fi | ||
22799 | |||
22800 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22801 | conftest$ac_exeext conftest.$ac_ext | ||
22802 | fi | ||
22803 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22804 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22805 | echo "${ECHO_T}$ac_res" >&6; } | ||
22806 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22807 | cat >>confdefs.h <<_ACEOF | ||
22808 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22809 | _ACEOF | ||
22810 | |||
22811 | fi | ||
22812 | done | ||
22813 | |||
22814 | fi | ||
22815 | |||
22816 | |||
22817 | |||
22818 | |||
22819 | |||
22820 | for ac_func in \ | ||
22821 | arc4random \ | ||
22822 | arc4random_buf \ | ||
22823 | arc4random_stir \ | ||
22824 | arc4random_uniform \ | ||
22825 | |||
22826 | do | ||
22827 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22828 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22829 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22830 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22832 | else | ||
22833 | cat >conftest.$ac_ext <<_ACEOF | ||
22834 | /* confdefs.h. */ | ||
22835 | _ACEOF | ||
22836 | cat confdefs.h >>conftest.$ac_ext | ||
22837 | cat >>conftest.$ac_ext <<_ACEOF | ||
22838 | /* end confdefs.h. */ | ||
22839 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22840 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22841 | #define $ac_func innocuous_$ac_func | ||
22842 | |||
22843 | /* System header to define __stub macros and hopefully few prototypes, | ||
22844 | which can conflict with char $ac_func (); below. | ||
22845 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22846 | <limits.h> exists even on freestanding compilers. */ | ||
22847 | |||
22848 | #ifdef __STDC__ | ||
22849 | # include <limits.h> | ||
22850 | #else | ||
22851 | # include <assert.h> | ||
22852 | #endif | ||
22853 | |||
22854 | #undef $ac_func | ||
22855 | |||
22856 | /* Override any GCC internal prototype to avoid an error. | ||
22857 | Use char because int might match the return type of a GCC | ||
22858 | builtin and then its argument prototype would still apply. */ | ||
22859 | #ifdef __cplusplus | ||
22860 | extern "C" | ||
22861 | #endif | ||
22862 | char $ac_func (); | ||
22863 | /* The GNU C library defines this for functions which it implements | ||
22864 | to always fail with ENOSYS. Some functions are actually named | ||
22865 | something starting with __ and the normal name is an alias. */ | ||
22866 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22867 | choke me | ||
22868 | #endif | ||
22869 | |||
22870 | int | ||
22871 | main () | ||
22872 | { | ||
22873 | return $ac_func (); | ||
22874 | ; | ||
22875 | return 0; | ||
22876 | } | ||
22877 | _ACEOF | ||
22878 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22879 | if { (ac_try="$ac_link" | ||
22880 | case "(($ac_try" in | ||
22881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22882 | *) ac_try_echo=$ac_try;; | ||
22883 | esac | ||
22884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22885 | (eval "$ac_link") 2>conftest.er1 | ||
22886 | ac_status=$? | ||
22887 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22888 | rm -f conftest.er1 | ||
22889 | cat conftest.err >&5 | ||
22890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22891 | (exit $ac_status); } && { | ||
22892 | test -z "$ac_c_werror_flag" || | ||
22893 | test ! -s conftest.err | ||
22894 | } && test -s conftest$ac_exeext && | ||
22895 | $as_test_x conftest$ac_exeext; then | ||
22896 | eval "$as_ac_var=yes" | ||
22897 | else | ||
22898 | echo "$as_me: failed program was:" >&5 | ||
22899 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22900 | |||
22901 | eval "$as_ac_var=no" | ||
22902 | fi | ||
22903 | |||
22904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22905 | conftest$ac_exeext conftest.$ac_ext | ||
22906 | fi | ||
22907 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22908 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22909 | echo "${ECHO_T}$ac_res" >&6; } | ||
22910 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22911 | cat >>confdefs.h <<_ACEOF | ||
22912 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22913 | _ACEOF | ||
22914 | |||
22915 | fi | ||
22916 | done | ||
22917 | |||
22918 | |||
22919 | saved_LIBS="$LIBS" | ||
22920 | { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
22921 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } | ||
22922 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
22923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22924 | else | ||
22925 | ac_check_lib_save_LIBS=$LIBS | ||
22926 | LIBS="-liaf $LIBS" | ||
22927 | cat >conftest.$ac_ext <<_ACEOF | ||
22928 | /* confdefs.h. */ | ||
22929 | _ACEOF | ||
22930 | cat confdefs.h >>conftest.$ac_ext | ||
22931 | cat >>conftest.$ac_ext <<_ACEOF | ||
22932 | /* end confdefs.h. */ | ||
22933 | |||
22934 | /* Override any GCC internal prototype to avoid an error. | ||
22935 | Use char because int might match the return type of a GCC | ||
22936 | builtin and then its argument prototype would still apply. */ | ||
22937 | #ifdef __cplusplus | ||
22938 | extern "C" | ||
22939 | #endif | ||
22940 | char ia_openinfo (); | ||
22941 | int | ||
22942 | main () | ||
22943 | { | ||
22944 | return ia_openinfo (); | ||
22945 | ; | ||
22946 | return 0; | ||
22947 | } | ||
22948 | _ACEOF | ||
22949 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22950 | if { (ac_try="$ac_link" | ||
22951 | case "(($ac_try" in | ||
22952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22953 | *) ac_try_echo=$ac_try;; | ||
22954 | esac | ||
22955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22956 | (eval "$ac_link") 2>conftest.er1 | ||
22957 | ac_status=$? | ||
22958 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22959 | rm -f conftest.er1 | ||
22960 | cat conftest.err >&5 | ||
22961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22962 | (exit $ac_status); } && { | ||
22963 | test -z "$ac_c_werror_flag" || | ||
22964 | test ! -s conftest.err | ||
22965 | } && test -s conftest$ac_exeext && | ||
22966 | $as_test_x conftest$ac_exeext; then | ||
22967 | ac_cv_lib_iaf_ia_openinfo=yes | ||
22968 | else | ||
22969 | echo "$as_me: failed program was:" >&5 | ||
22970 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22971 | |||
22972 | ac_cv_lib_iaf_ia_openinfo=no | ||
22973 | fi | ||
22974 | |||
22975 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22976 | conftest$ac_exeext conftest.$ac_ext | ||
22977 | LIBS=$ac_check_lib_save_LIBS | ||
22978 | fi | ||
22979 | { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
22980 | echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
22981 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
22982 | |||
22983 | LIBS="$LIBS -liaf" | ||
22984 | |||
22985 | for ac_func in set_id | ||
22986 | do | ||
22987 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22988 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22989 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22990 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22992 | else | ||
22993 | cat >conftest.$ac_ext <<_ACEOF | ||
22994 | /* confdefs.h. */ | ||
22995 | _ACEOF | ||
22996 | cat confdefs.h >>conftest.$ac_ext | ||
22997 | cat >>conftest.$ac_ext <<_ACEOF | ||
22998 | /* end confdefs.h. */ | ||
22999 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
23000 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
23001 | #define $ac_func innocuous_$ac_func | ||
23002 | |||
23003 | /* System header to define __stub macros and hopefully few prototypes, | ||
23004 | which can conflict with char $ac_func (); below. | ||
23005 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
23006 | <limits.h> exists even on freestanding compilers. */ | ||
23007 | |||
23008 | #ifdef __STDC__ | ||
23009 | # include <limits.h> | ||
23010 | #else | ||
23011 | # include <assert.h> | ||
23012 | #endif | ||
23013 | |||
23014 | #undef $ac_func | ||
23015 | |||
23016 | /* Override any GCC internal prototype to avoid an error. | ||
23017 | Use char because int might match the return type of a GCC | ||
23018 | builtin and then its argument prototype would still apply. */ | ||
23019 | #ifdef __cplusplus | ||
23020 | extern "C" | ||
23021 | #endif | ||
23022 | char $ac_func (); | ||
23023 | /* The GNU C library defines this for functions which it implements | ||
23024 | to always fail with ENOSYS. Some functions are actually named | ||
23025 | something starting with __ and the normal name is an alias. */ | ||
23026 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
23027 | choke me | ||
23028 | #endif | ||
23029 | |||
23030 | int | ||
23031 | main () | ||
23032 | { | ||
23033 | return $ac_func (); | ||
23034 | ; | ||
23035 | return 0; | ||
23036 | } | ||
23037 | _ACEOF | ||
23038 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23039 | if { (ac_try="$ac_link" | ||
23040 | case "(($ac_try" in | ||
23041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23042 | *) ac_try_echo=$ac_try;; | ||
23043 | esac | ||
23044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23045 | (eval "$ac_link") 2>conftest.er1 | ||
23046 | ac_status=$? | ||
23047 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23048 | rm -f conftest.er1 | ||
23049 | cat conftest.err >&5 | ||
23050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23051 | (exit $ac_status); } && { | ||
23052 | test -z "$ac_c_werror_flag" || | ||
23053 | test ! -s conftest.err | ||
23054 | } && test -s conftest$ac_exeext && | ||
23055 | $as_test_x conftest$ac_exeext; then | ||
23056 | eval "$as_ac_var=yes" | ||
23057 | else | ||
23058 | echo "$as_me: failed program was:" >&5 | ||
23059 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23060 | |||
23061 | eval "$as_ac_var=no" | ||
23062 | fi | ||
23063 | |||
23064 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23065 | conftest$ac_exeext conftest.$ac_ext | ||
23066 | fi | ||
23067 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
23068 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
23069 | echo "${ECHO_T}$ac_res" >&6; } | ||
23070 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
23071 | cat >>confdefs.h <<_ACEOF | ||
23072 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23073 | _ACEOF | ||
23074 | SSHDLIBS="$SSHDLIBS -liaf" | ||
23075 | |||
23076 | cat >>confdefs.h <<\_ACEOF | ||
23077 | #define HAVE_LIBIAF 1 | ||
23078 | _ACEOF | ||
23079 | |||
23080 | |||
23081 | fi | ||
23082 | done | ||
23083 | |||
23084 | |||
23085 | fi | ||
23086 | |||
23087 | LIBS="$saved_LIBS" | ||
23088 | |||
23089 | ### Configure cryptographic random number support | ||
23090 | |||
23091 | # Check wheter OpenSSL seeds itself | ||
23092 | if test "x$openssl" = "xyes" ; then | ||
23093 | { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
23094 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; } | ||
23095 | if test "$cross_compiling" = yes; then | ||
23096 | |||
23097 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
23098 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
23099 | # This is safe, since we will fatal() at runtime if | ||
23100 | # OpenSSL is not seeded correctly. | ||
23101 | OPENSSL_SEEDS_ITSELF=yes | ||
23102 | |||
23103 | |||
23104 | else | ||
23105 | cat >conftest.$ac_ext <<_ACEOF | ||
23106 | /* confdefs.h. */ | ||
23107 | _ACEOF | ||
23108 | cat confdefs.h >>conftest.$ac_ext | ||
23109 | cat >>conftest.$ac_ext <<_ACEOF | ||
23110 | /* end confdefs.h. */ | ||
23111 | |||
23112 | #include <string.h> | ||
23113 | #include <openssl/rand.h> | ||
23114 | |||
23115 | int | ||
23116 | main () | ||
23117 | { | ||
23118 | |||
23119 | exit(RAND_status() == 1 ? 0 : 1); | ||
23120 | |||
23121 | ; | ||
23122 | return 0; | ||
23123 | } | ||
23124 | _ACEOF | ||
23125 | rm -f conftest$ac_exeext | ||
23126 | if { (ac_try="$ac_link" | ||
23127 | case "(($ac_try" in | ||
23128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23129 | *) ac_try_echo=$ac_try;; | ||
23130 | esac | ||
23131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23132 | (eval "$ac_link") 2>&5 | ||
23133 | ac_status=$? | ||
23134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23135 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
23136 | { (case "(($ac_try" in | ||
23137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23138 | *) ac_try_echo=$ac_try;; | ||
23139 | esac | ||
23140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23141 | (eval "$ac_try") 2>&5 | ||
23142 | ac_status=$? | ||
23143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23144 | (exit $ac_status); }; }; then | ||
23145 | |||
23146 | OPENSSL_SEEDS_ITSELF=yes | ||
23147 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23148 | echo "${ECHO_T}yes" >&6; } | ||
23149 | |||
23150 | else | ||
23151 | echo "$as_me: program exited with status $ac_status" >&5 | ||
23152 | echo "$as_me: failed program was:" >&5 | ||
23153 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23154 | |||
23155 | ( exit $ac_status ) | ||
23156 | |||
23157 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23158 | echo "${ECHO_T}no" >&6; } | ||
23159 | |||
23160 | fi | ||
23161 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
23162 | fi | ||
23163 | |||
23164 | |||
23165 | fi | ||
23166 | |||
23167 | # PRNGD TCP socket | ||
23168 | |||
23169 | # Check whether --with-prngd-port was given. | ||
23170 | if test "${with_prngd_port+set}" = set; then | ||
23171 | withval=$with_prngd_port; | ||
23172 | case "$withval" in | ||
23173 | no) | ||
23174 | withval="" | ||
23175 | ;; | ||
23176 | [0-9]*) | ||
23177 | ;; | ||
23178 | *) | ||
23179 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
23180 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
23181 | { (exit 1); exit 1; }; } | ||
23182 | ;; | ||
23183 | esac | ||
23184 | if test ! -z "$withval" ; then | ||
23185 | PRNGD_PORT="$withval" | ||
23186 | |||
23187 | cat >>confdefs.h <<_ACEOF | ||
23188 | #define PRNGD_PORT $PRNGD_PORT | ||
23189 | _ACEOF | ||
23190 | |||
23191 | fi | ||
23192 | |||
23193 | |||
23194 | fi | ||
23195 | |||
23196 | |||
23197 | # PRNGD Unix domain socket | ||
23198 | |||
23199 | # Check whether --with-prngd-socket was given. | ||
23200 | if test "${with_prngd_socket+set}" = set; then | ||
23201 | withval=$with_prngd_socket; | ||
23202 | case "$withval" in | ||
23203 | yes) | ||
23204 | withval="/var/run/egd-pool" | ||
23205 | ;; | ||
23206 | no) | ||
23207 | withval="" | ||
23208 | ;; | ||
23209 | /*) | ||
23210 | ;; | ||
23211 | *) | ||
23212 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
23213 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
23214 | { (exit 1); exit 1; }; } | ||
23215 | ;; | ||
23216 | esac | ||
23217 | |||
23218 | if test ! -z "$withval" ; then | ||
23219 | if test ! -z "$PRNGD_PORT" ; then | ||
23220 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
23221 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
23222 | { (exit 1); exit 1; }; } | ||
23223 | fi | ||
23224 | if test ! -r "$withval" ; then | ||
23225 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
23226 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
23227 | fi | ||
23228 | PRNGD_SOCKET="$withval" | ||
23229 | |||
23230 | cat >>confdefs.h <<_ACEOF | ||
23231 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
23232 | _ACEOF | ||
23233 | |||
23234 | fi | ||
23235 | |||
23236 | else | ||
23237 | |||
23238 | # Check for existing socket only if we don't have a random device already | ||
23239 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then | ||
23240 | { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
23241 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; } | ||
23242 | # Insert other locations here | ||
23243 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
23244 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
23245 | PRNGD_SOCKET="$sock" | ||
23246 | cat >>confdefs.h <<_ACEOF | ||
23247 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
23248 | _ACEOF | ||
23249 | |||
23250 | break; | ||
23251 | fi | ||
23252 | done | ||
23253 | if test ! -z "$PRNGD_SOCKET" ; then | ||
23254 | { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
23255 | echo "${ECHO_T}$PRNGD_SOCKET" >&6; } | ||
23256 | else | ||
23257 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
23258 | echo "${ECHO_T}not found" >&6; } | ||
23259 | fi | ||
23260 | fi | ||
23261 | |||
23262 | |||
23263 | fi | ||
23264 | |||
23265 | |||
23266 | # Which randomness source do we use? | ||
23267 | if test ! -z "$PRNGD_PORT" ; then | ||
23268 | RAND_MSG="PRNGd port $PRNGD_PORT" | ||
23269 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
23270 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" | ||
23271 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
23272 | |||
23273 | cat >>confdefs.h <<\_ACEOF | ||
23274 | #define OPENSSL_PRNG_ONLY 1 | ||
23275 | _ACEOF | ||
23276 | |||
23277 | RAND_MSG="OpenSSL internal ONLY" | ||
23278 | elif test "x$openssl" = "xno" ; then | ||
23279 | { echo "$as_me:$LINENO: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5 | ||
23280 | echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;} | ||
23281 | else | ||
23282 | { { echo "$as_me:$LINENO: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&5 | ||
23283 | echo "$as_me: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&2;} | ||
23284 | { (exit 1); exit 1; }; } | ||
23285 | fi | ||
23286 | |||
23287 | # Check for PAM libs | ||
23288 | PAM_MSG="no" | ||
23289 | |||
23290 | # Check whether --with-pam was given. | ||
23291 | if test "${with_pam+set}" = set; then | ||
23292 | withval=$with_pam; | ||
23293 | if test "x$withval" != "xno" ; then | ||
23294 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
23295 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
23296 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
23297 | echo "$as_me: error: PAM headers not found" >&2;} | ||
23298 | { (exit 1); exit 1; }; } | ||
23299 | fi | ||
23300 | |||
23301 | saved_LIBS="$LIBS" | ||
23302 | |||
23303 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
23304 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
23305 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
23306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23307 | else | ||
23308 | ac_check_lib_save_LIBS=$LIBS | ||
23309 | LIBS="-ldl $LIBS" | ||
23310 | cat >conftest.$ac_ext <<_ACEOF | ||
23311 | /* confdefs.h. */ | ||
23312 | _ACEOF | ||
23313 | cat confdefs.h >>conftest.$ac_ext | ||
23314 | cat >>conftest.$ac_ext <<_ACEOF | ||
23315 | /* end confdefs.h. */ | ||
23316 | |||
23317 | /* Override any GCC internal prototype to avoid an error. | ||
23318 | Use char because int might match the return type of a GCC | ||
23319 | builtin and then its argument prototype would still apply. */ | ||
23320 | #ifdef __cplusplus | ||
23321 | extern "C" | ||
23322 | #endif | ||
23323 | char dlopen (); | ||
23324 | int | ||
23325 | main () | ||
23326 | { | ||
23327 | return dlopen (); | ||
23328 | ; | ||
23329 | return 0; | ||
23330 | } | ||
23331 | _ACEOF | ||
23332 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23333 | if { (ac_try="$ac_link" | ||
23334 | case "(($ac_try" in | ||
23335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23336 | *) ac_try_echo=$ac_try;; | ||
23337 | esac | ||
23338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23339 | (eval "$ac_link") 2>conftest.er1 | ||
23340 | ac_status=$? | ||
23341 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23342 | rm -f conftest.er1 | ||
23343 | cat conftest.err >&5 | ||
23344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23345 | (exit $ac_status); } && { | ||
23346 | test -z "$ac_c_werror_flag" || | ||
23347 | test ! -s conftest.err | ||
23348 | } && test -s conftest$ac_exeext && | ||
23349 | $as_test_x conftest$ac_exeext; then | ||
23350 | ac_cv_lib_dl_dlopen=yes | ||
23351 | else | ||
23352 | echo "$as_me: failed program was:" >&5 | ||
23353 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23354 | |||
23355 | ac_cv_lib_dl_dlopen=no | ||
23356 | fi | ||
23357 | |||
23358 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23359 | conftest$ac_exeext conftest.$ac_ext | ||
23360 | LIBS=$ac_check_lib_save_LIBS | ||
23361 | fi | ||
23362 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
23363 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
23364 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
23365 | cat >>confdefs.h <<_ACEOF | ||
23366 | #define HAVE_LIBDL 1 | ||
23367 | _ACEOF | ||
23368 | |||
23369 | LIBS="-ldl $LIBS" | ||
23370 | |||
23371 | fi | ||
23372 | |||
23373 | |||
23374 | { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
23375 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } | ||
23376 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
23377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23378 | else | ||
23379 | ac_check_lib_save_LIBS=$LIBS | ||
23380 | LIBS="-lpam $LIBS" | ||
23381 | cat >conftest.$ac_ext <<_ACEOF | ||
23382 | /* confdefs.h. */ | ||
23383 | _ACEOF | ||
23384 | cat confdefs.h >>conftest.$ac_ext | ||
23385 | cat >>conftest.$ac_ext <<_ACEOF | ||
23386 | /* end confdefs.h. */ | ||
23387 | |||
23388 | /* Override any GCC internal prototype to avoid an error. | ||
23389 | Use char because int might match the return type of a GCC | ||
23390 | builtin and then its argument prototype would still apply. */ | ||
23391 | #ifdef __cplusplus | ||
23392 | extern "C" | ||
23393 | #endif | ||
23394 | char pam_set_item (); | ||
23395 | int | ||
23396 | main () | ||
23397 | { | ||
23398 | return pam_set_item (); | ||
23399 | ; | ||
23400 | return 0; | ||
23401 | } | ||
23402 | _ACEOF | ||
23403 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23404 | if { (ac_try="$ac_link" | ||
23405 | case "(($ac_try" in | ||
23406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23407 | *) ac_try_echo=$ac_try;; | ||
23408 | esac | ||
23409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23410 | (eval "$ac_link") 2>conftest.er1 | ||
23411 | ac_status=$? | ||
23412 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23413 | rm -f conftest.er1 | ||
23414 | cat conftest.err >&5 | ||
23415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23416 | (exit $ac_status); } && { | ||
23417 | test -z "$ac_c_werror_flag" || | ||
23418 | test ! -s conftest.err | ||
23419 | } && test -s conftest$ac_exeext && | ||
23420 | $as_test_x conftest$ac_exeext; then | ||
23421 | ac_cv_lib_pam_pam_set_item=yes | ||
23422 | else | ||
23423 | echo "$as_me: failed program was:" >&5 | ||
23424 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23425 | |||
23426 | ac_cv_lib_pam_pam_set_item=no | ||
23427 | fi | ||
23428 | |||
23429 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23430 | conftest$ac_exeext conftest.$ac_ext | ||
23431 | LIBS=$ac_check_lib_save_LIBS | ||
23432 | fi | ||
23433 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
23434 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } | ||
23435 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
23436 | cat >>confdefs.h <<_ACEOF | ||
23437 | #define HAVE_LIBPAM 1 | ||
23438 | _ACEOF | ||
23439 | |||
23440 | LIBS="-lpam $LIBS" | ||
23441 | |||
23442 | else | ||
23443 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
23444 | echo "$as_me: error: *** libpam missing" >&2;} | ||
23445 | { (exit 1); exit 1; }; } | ||
23446 | fi | ||
23447 | |||
23448 | |||
23449 | for ac_func in pam_getenvlist | ||
23450 | do | ||
23451 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
23452 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
23453 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
23454 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23456 | else | ||
23457 | cat >conftest.$ac_ext <<_ACEOF | ||
23458 | /* confdefs.h. */ | ||
23459 | _ACEOF | ||
23460 | cat confdefs.h >>conftest.$ac_ext | ||
23461 | cat >>conftest.$ac_ext <<_ACEOF | ||
23462 | /* end confdefs.h. */ | ||
23463 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
23464 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
23465 | #define $ac_func innocuous_$ac_func | ||
23466 | |||
23467 | /* System header to define __stub macros and hopefully few prototypes, | ||
23468 | which can conflict with char $ac_func (); below. | ||
23469 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
23470 | <limits.h> exists even on freestanding compilers. */ | ||
23471 | |||
23472 | #ifdef __STDC__ | ||
23473 | # include <limits.h> | ||
23474 | #else | ||
23475 | # include <assert.h> | ||
23476 | #endif | ||
23477 | |||
23478 | #undef $ac_func | ||
23479 | |||
23480 | /* Override any GCC internal prototype to avoid an error. | ||
23481 | Use char because int might match the return type of a GCC | ||
23482 | builtin and then its argument prototype would still apply. */ | ||
23483 | #ifdef __cplusplus | ||
23484 | extern "C" | ||
23485 | #endif | ||
23486 | char $ac_func (); | ||
23487 | /* The GNU C library defines this for functions which it implements | ||
23488 | to always fail with ENOSYS. Some functions are actually named | ||
23489 | something starting with __ and the normal name is an alias. */ | ||
23490 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
23491 | choke me | ||
23492 | #endif | ||
23493 | |||
23494 | int | ||
23495 | main () | ||
23496 | { | ||
23497 | return $ac_func (); | ||
23498 | ; | ||
23499 | return 0; | ||
23500 | } | ||
23501 | _ACEOF | ||
23502 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23503 | if { (ac_try="$ac_link" | ||
23504 | case "(($ac_try" in | ||
23505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23506 | *) ac_try_echo=$ac_try;; | ||
23507 | esac | ||
23508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23509 | (eval "$ac_link") 2>conftest.er1 | ||
23510 | ac_status=$? | ||
23511 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23512 | rm -f conftest.er1 | ||
23513 | cat conftest.err >&5 | ||
23514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23515 | (exit $ac_status); } && { | ||
23516 | test -z "$ac_c_werror_flag" || | ||
23517 | test ! -s conftest.err | ||
23518 | } && test -s conftest$ac_exeext && | ||
23519 | $as_test_x conftest$ac_exeext; then | ||
23520 | eval "$as_ac_var=yes" | ||
23521 | else | ||
23522 | echo "$as_me: failed program was:" >&5 | ||
23523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23524 | |||
23525 | eval "$as_ac_var=no" | ||
23526 | fi | ||
23527 | |||
23528 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23529 | conftest$ac_exeext conftest.$ac_ext | ||
23530 | fi | ||
23531 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
23532 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
23533 | echo "${ECHO_T}$ac_res" >&6; } | ||
23534 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
23535 | cat >>confdefs.h <<_ACEOF | ||
23536 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23537 | _ACEOF | ||
23538 | |||
23539 | fi | ||
23540 | done | ||
23541 | |||
23542 | |||
23543 | for ac_func in pam_putenv | ||
23544 | do | ||
23545 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
23546 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
23547 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
23548 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23550 | else | ||
23551 | cat >conftest.$ac_ext <<_ACEOF | ||
23552 | /* confdefs.h. */ | ||
23553 | _ACEOF | ||
23554 | cat confdefs.h >>conftest.$ac_ext | ||
23555 | cat >>conftest.$ac_ext <<_ACEOF | ||
23556 | /* end confdefs.h. */ | ||
23557 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
23558 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
23559 | #define $ac_func innocuous_$ac_func | ||
23560 | |||
23561 | /* System header to define __stub macros and hopefully few prototypes, | ||
23562 | which can conflict with char $ac_func (); below. | ||
23563 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
23564 | <limits.h> exists even on freestanding compilers. */ | ||
23565 | |||
23566 | #ifdef __STDC__ | ||
23567 | # include <limits.h> | ||
23568 | #else | ||
23569 | # include <assert.h> | ||
23570 | #endif | ||
23571 | |||
23572 | #undef $ac_func | ||
23573 | |||
23574 | /* Override any GCC internal prototype to avoid an error. | ||
23575 | Use char because int might match the return type of a GCC | ||
23576 | builtin and then its argument prototype would still apply. */ | ||
23577 | #ifdef __cplusplus | ||
23578 | extern "C" | ||
23579 | #endif | ||
23580 | char $ac_func (); | ||
23581 | /* The GNU C library defines this for functions which it implements | ||
23582 | to always fail with ENOSYS. Some functions are actually named | ||
23583 | something starting with __ and the normal name is an alias. */ | ||
23584 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
23585 | choke me | ||
23586 | #endif | ||
23587 | |||
23588 | int | ||
23589 | main () | ||
23590 | { | ||
23591 | return $ac_func (); | ||
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 | eval "$as_ac_var=yes" | ||
23615 | else | ||
23616 | echo "$as_me: failed program was:" >&5 | ||
23617 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23618 | |||
23619 | eval "$as_ac_var=no" | ||
23620 | fi | ||
23621 | |||
23622 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23623 | conftest$ac_exeext conftest.$ac_ext | ||
23624 | fi | ||
23625 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
23626 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
23627 | echo "${ECHO_T}$ac_res" >&6; } | ||
23628 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
23629 | cat >>confdefs.h <<_ACEOF | ||
23630 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23631 | _ACEOF | ||
23632 | |||
23633 | fi | ||
23634 | done | ||
23635 | |||
23636 | LIBS="$saved_LIBS" | ||
23637 | |||
23638 | PAM_MSG="yes" | ||
23639 | |||
23640 | SSHDLIBS="$SSHDLIBS -lpam" | ||
23641 | |||
23642 | cat >>confdefs.h <<\_ACEOF | ||
23643 | #define USE_PAM 1 | ||
23644 | _ACEOF | ||
23645 | |||
23646 | |||
23647 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
23648 | case "$LIBS" in | ||
23649 | *-ldl*) | ||
23650 | # libdl already in LIBS | ||
23651 | ;; | ||
23652 | *) | ||
23653 | SSHDLIBS="$SSHDLIBS -ldl" | ||
23654 | ;; | ||
23655 | esac | ||
23656 | fi | ||
23657 | fi | ||
23658 | |||
23659 | |||
23660 | fi | ||
23661 | |||
23662 | |||
23663 | # Check for older PAM | ||
23664 | if test "x$PAM_MSG" = "xyes" ; then | ||
23665 | # Check PAM strerror arguments (old PAM) | ||
23666 | { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
23667 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } | ||
23668 | cat >conftest.$ac_ext <<_ACEOF | ||
23669 | /* confdefs.h. */ | ||
23670 | _ACEOF | ||
23671 | cat confdefs.h >>conftest.$ac_ext | ||
23672 | cat >>conftest.$ac_ext <<_ACEOF | ||
23673 | /* end confdefs.h. */ | ||
23674 | |||
23675 | #include <stdlib.h> | ||
23676 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
23677 | #include <security/pam_appl.h> | ||
23678 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
23679 | #include <pam/pam_appl.h> | ||
23680 | #endif | ||
23681 | |||
23682 | int | ||
23683 | main () | ||
23684 | { | ||
23685 | |||
23686 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
23687 | |||
23688 | ; | ||
23689 | return 0; | ||
23690 | } | ||
23691 | _ACEOF | ||
23692 | rm -f conftest.$ac_objext | ||
23693 | if { (ac_try="$ac_compile" | ||
23694 | case "(($ac_try" in | ||
23695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23696 | *) ac_try_echo=$ac_try;; | ||
23697 | esac | ||
23698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23699 | (eval "$ac_compile") 2>conftest.er1 | ||
23700 | ac_status=$? | ||
23701 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23702 | rm -f conftest.er1 | ||
23703 | cat conftest.err >&5 | ||
23704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23705 | (exit $ac_status); } && { | ||
23706 | test -z "$ac_c_werror_flag" || | ||
23707 | test ! -s conftest.err | ||
23708 | } && test -s conftest.$ac_objext; then | ||
23709 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23710 | echo "${ECHO_T}no" >&6; } | ||
23711 | else | ||
23712 | echo "$as_me: failed program was:" >&5 | ||
23713 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23714 | |||
23715 | |||
23716 | |||
23717 | cat >>confdefs.h <<\_ACEOF | ||
23718 | #define HAVE_OLD_PAM 1 | ||
23719 | _ACEOF | ||
23720 | |||
23721 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23722 | echo "${ECHO_T}yes" >&6; } | ||
23723 | PAM_MSG="yes (old library)" | ||
23724 | |||
23725 | |||
23726 | fi | ||
23727 | |||
23728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23729 | fi | ||
23730 | |||
23731 | case "$host" in | ||
23732 | *-*-cygwin*) | ||
23733 | SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER | ||
23734 | ;; | ||
23735 | *) | ||
23736 | SSH_PRIVSEP_USER=sshd | ||
23737 | ;; | ||
23738 | esac | ||
23739 | |||
23740 | # Check whether --with-privsep-user was given. | ||
23741 | if test "${with_privsep_user+set}" = set; then | ||
23742 | withval=$with_privsep_user; | ||
23743 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
23744 | test "x${withval}" != "xyes"; then | ||
23745 | SSH_PRIVSEP_USER=$withval | ||
23746 | fi | ||
23747 | |||
23748 | |||
23749 | fi | ||
23750 | |||
23751 | if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then | ||
23752 | |||
23753 | cat >>confdefs.h <<_ACEOF | ||
23754 | #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER | ||
23755 | _ACEOF | ||
23756 | |||
23757 | else | ||
23758 | |||
23759 | cat >>confdefs.h <<_ACEOF | ||
23760 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
23761 | _ACEOF | ||
23762 | |||
23763 | fi | ||
23764 | |||
23765 | |||
23766 | if test "x$have_linux_no_new_privs" = "x1" ; then | ||
23767 | { echo "$as_me:$LINENO: checking whether SECCOMP_MODE_FILTER is declared" >&5 | ||
23768 | echo $ECHO_N "checking whether SECCOMP_MODE_FILTER is declared... $ECHO_C" >&6; } | ||
23769 | if test "${ac_cv_have_decl_SECCOMP_MODE_FILTER+set}" = set; then | ||
23770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23771 | else | ||
23772 | cat >conftest.$ac_ext <<_ACEOF | ||
23773 | /* confdefs.h. */ | ||
23774 | _ACEOF | ||
23775 | cat confdefs.h >>conftest.$ac_ext | ||
23776 | cat >>conftest.$ac_ext <<_ACEOF | ||
23777 | /* end confdefs.h. */ | ||
23778 | |||
23779 | #include <sys/types.h> | ||
23780 | #include <linux/seccomp.h> | ||
23781 | |||
23782 | |||
23783 | int | ||
23784 | main () | ||
23785 | { | ||
23786 | #ifndef SECCOMP_MODE_FILTER | ||
23787 | (void) SECCOMP_MODE_FILTER; | ||
23788 | #endif | ||
23789 | |||
23790 | ; | ||
23791 | return 0; | ||
23792 | } | ||
23793 | _ACEOF | ||
23794 | rm -f conftest.$ac_objext | ||
23795 | if { (ac_try="$ac_compile" | ||
23796 | case "(($ac_try" in | ||
23797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23798 | *) ac_try_echo=$ac_try;; | ||
23799 | esac | ||
23800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23801 | (eval "$ac_compile") 2>conftest.er1 | ||
23802 | ac_status=$? | ||
23803 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23804 | rm -f conftest.er1 | ||
23805 | cat conftest.err >&5 | ||
23806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23807 | (exit $ac_status); } && { | ||
23808 | test -z "$ac_c_werror_flag" || | ||
23809 | test ! -s conftest.err | ||
23810 | } && test -s conftest.$ac_objext; then | ||
23811 | ac_cv_have_decl_SECCOMP_MODE_FILTER=yes | ||
23812 | else | ||
23813 | echo "$as_me: failed program was:" >&5 | ||
23814 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23815 | |||
23816 | ac_cv_have_decl_SECCOMP_MODE_FILTER=no | ||
23817 | fi | ||
23818 | |||
23819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23820 | fi | ||
23821 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SECCOMP_MODE_FILTER" >&5 | ||
23822 | echo "${ECHO_T}$ac_cv_have_decl_SECCOMP_MODE_FILTER" >&6; } | ||
23823 | if test $ac_cv_have_decl_SECCOMP_MODE_FILTER = yes; then | ||
23824 | have_seccomp_filter=1 | ||
23825 | fi | ||
23826 | |||
23827 | fi | ||
23828 | if test "x$have_seccomp_filter" = "x1" ; then | ||
23829 | { echo "$as_me:$LINENO: checking kernel for seccomp_filter support" >&5 | ||
23830 | echo $ECHO_N "checking kernel for seccomp_filter support... $ECHO_C" >&6; } | ||
23831 | cat >conftest.$ac_ext <<_ACEOF | ||
23832 | /* confdefs.h. */ | ||
23833 | _ACEOF | ||
23834 | cat confdefs.h >>conftest.$ac_ext | ||
23835 | cat >>conftest.$ac_ext <<_ACEOF | ||
23836 | /* end confdefs.h. */ | ||
23837 | |||
23838 | #include <errno.h> | ||
23839 | #include <elf.h> | ||
23840 | #include <linux/audit.h> | ||
23841 | #include <linux/seccomp.h> | ||
23842 | #include <stdlib.h> | ||
23843 | #include <sys/prctl.h> | ||
23844 | |||
23845 | int | ||
23846 | main () | ||
23847 | { | ||
23848 | int i = $seccomp_audit_arch; | ||
23849 | errno = 0; | ||
23850 | prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); | ||
23851 | exit(errno == EFAULT ? 0 : 1); | ||
23852 | ; | ||
23853 | return 0; | ||
23854 | } | ||
23855 | _ACEOF | ||
23856 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23857 | if { (ac_try="$ac_link" | ||
23858 | case "(($ac_try" in | ||
23859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23860 | *) ac_try_echo=$ac_try;; | ||
23861 | esac | ||
23862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23863 | (eval "$ac_link") 2>conftest.er1 | ||
23864 | ac_status=$? | ||
23865 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23866 | rm -f conftest.er1 | ||
23867 | cat conftest.err >&5 | ||
23868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23869 | (exit $ac_status); } && { | ||
23870 | test -z "$ac_c_werror_flag" || | ||
23871 | test ! -s conftest.err | ||
23872 | } && test -s conftest$ac_exeext && | ||
23873 | $as_test_x conftest$ac_exeext; then | ||
23874 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23875 | echo "${ECHO_T}yes" >&6; } | ||
23876 | else | ||
23877 | echo "$as_me: failed program was:" >&5 | ||
23878 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23879 | |||
23880 | |||
23881 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23882 | echo "${ECHO_T}no" >&6; } | ||
23883 | # Disable seccomp filter as a target | ||
23884 | have_seccomp_filter=0 | ||
23885 | |||
23886 | |||
23887 | fi | ||
23888 | |||
23889 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23890 | conftest$ac_exeext conftest.$ac_ext | ||
23891 | fi | ||
23892 | |||
23893 | # Decide which sandbox style to use | ||
23894 | sandbox_arg="" | ||
23895 | |||
23896 | # Check whether --with-sandbox was given. | ||
23897 | if test "${with_sandbox+set}" = set; then | ||
23898 | withval=$with_sandbox; | ||
23899 | if test "x$withval" = "xyes" ; then | ||
23900 | sandbox_arg="" | ||
23901 | else | ||
23902 | sandbox_arg="$withval" | ||
23903 | fi | ||
23904 | |||
23905 | |||
23906 | fi | ||
23907 | |||
23908 | |||
23909 | # Some platforms (seems to be the ones that have a kernel poll(2)-type | ||
23910 | # function with which they implement select(2)) use an extra file descriptor | ||
23911 | # when calling select(2), which means we can't use the rlimit sandbox. | ||
23912 | { echo "$as_me:$LINENO: checking if select works with descriptor rlimit" >&5 | ||
23913 | echo $ECHO_N "checking if select works with descriptor rlimit... $ECHO_C" >&6; } | ||
23914 | if test "$cross_compiling" = yes; then | ||
23915 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
23916 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
23917 | |||
23918 | else | ||
23919 | cat >conftest.$ac_ext <<_ACEOF | ||
23920 | /* confdefs.h. */ | ||
23921 | _ACEOF | ||
23922 | cat confdefs.h >>conftest.$ac_ext | ||
23923 | cat >>conftest.$ac_ext <<_ACEOF | ||
23924 | /* end confdefs.h. */ | ||
23925 | |||
23926 | #include <sys/types.h> | ||
23927 | #ifdef HAVE_SYS_TIME_H | ||
23928 | # include <sys/time.h> | ||
23929 | #endif | ||
23930 | #include <sys/resource.h> | ||
23931 | #ifdef HAVE_SYS_SELECT_H | ||
23932 | # include <sys/select.h> | ||
23933 | #endif | ||
23934 | #include <errno.h> | ||
23935 | #include <fcntl.h> | ||
23936 | #include <stdlib.h> | ||
23937 | |||
23938 | int | ||
23939 | main () | ||
23940 | { | ||
23941 | |||
23942 | struct rlimit rl_zero; | ||
23943 | int fd, r; | ||
23944 | fd_set fds; | ||
23945 | struct timeval tv; | ||
23946 | |||
23947 | fd = open("/dev/null", O_RDONLY); | ||
23948 | FD_ZERO(&fds); | ||
23949 | FD_SET(fd, &fds); | ||
23950 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
23951 | setrlimit(RLIMIT_FSIZE, &rl_zero); | ||
23952 | setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
23953 | tv.tv_sec = 1; | ||
23954 | tv.tv_usec = 0; | ||
23955 | r = select(fd+1, &fds, NULL, NULL, &tv); | ||
23956 | exit (r == -1 ? 1 : 0); | ||
23957 | |||
23958 | ; | ||
23959 | return 0; | ||
23960 | } | ||
23961 | _ACEOF | ||
23962 | rm -f conftest$ac_exeext | ||
23963 | if { (ac_try="$ac_link" | ||
23964 | case "(($ac_try" in | ||
23965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23966 | *) ac_try_echo=$ac_try;; | ||
23967 | esac | ||
23968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23969 | (eval "$ac_link") 2>&5 | ||
23970 | ac_status=$? | ||
23971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23972 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
23973 | { (case "(($ac_try" in | ||
23974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23975 | *) ac_try_echo=$ac_try;; | ||
23976 | esac | ||
23977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23978 | (eval "$ac_try") 2>&5 | ||
23979 | ac_status=$? | ||
23980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23981 | (exit $ac_status); }; }; then | ||
23982 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23983 | echo "${ECHO_T}yes" >&6; } | ||
23984 | select_works_with_rlimit=yes | ||
23985 | else | ||
23986 | echo "$as_me: program exited with status $ac_status" >&5 | ||
23987 | echo "$as_me: failed program was:" >&5 | ||
23988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23989 | |||
23990 | ( exit $ac_status ) | ||
23991 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23992 | echo "${ECHO_T}no" >&6; } | ||
23993 | select_works_with_rlimit=no | ||
23994 | fi | ||
23995 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
23996 | fi | ||
23997 | |||
23998 | |||
23999 | |||
24000 | { echo "$as_me:$LINENO: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 | ||
24001 | echo $ECHO_N "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... $ECHO_C" >&6; } | ||
24002 | if test "$cross_compiling" = yes; then | ||
24003 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
24004 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
24005 | |||
24006 | else | ||
24007 | cat >conftest.$ac_ext <<_ACEOF | ||
24008 | /* confdefs.h. */ | ||
24009 | _ACEOF | ||
24010 | cat confdefs.h >>conftest.$ac_ext | ||
24011 | cat >>conftest.$ac_ext <<_ACEOF | ||
24012 | /* end confdefs.h. */ | ||
24013 | |||
24014 | #include <sys/types.h> | ||
24015 | #ifdef HAVE_SYS_TIME_H | ||
24016 | # include <sys/time.h> | ||
24017 | #endif | ||
24018 | #include <sys/resource.h> | ||
24019 | #include <errno.h> | ||
24020 | #include <stdlib.h> | ||
24021 | |||
24022 | int | ||
24023 | main () | ||
24024 | { | ||
24025 | |||
24026 | struct rlimit rl_zero; | ||
24027 | int fd, r; | ||
24028 | fd_set fds; | ||
24029 | |||
24030 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
24031 | r = setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
24032 | exit (r == -1 ? 1 : 0); | ||
24033 | |||
24034 | ; | ||
24035 | return 0; | ||
24036 | } | ||
24037 | _ACEOF | ||
24038 | rm -f conftest$ac_exeext | ||
24039 | if { (ac_try="$ac_link" | ||
24040 | case "(($ac_try" in | ||
24041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24042 | *) ac_try_echo=$ac_try;; | ||
24043 | esac | ||
24044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24045 | (eval "$ac_link") 2>&5 | ||
24046 | ac_status=$? | ||
24047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24048 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24049 | { (case "(($ac_try" in | ||
24050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24051 | *) ac_try_echo=$ac_try;; | ||
24052 | esac | ||
24053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24054 | (eval "$ac_try") 2>&5 | ||
24055 | ac_status=$? | ||
24056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24057 | (exit $ac_status); }; }; then | ||
24058 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
24059 | echo "${ECHO_T}yes" >&6; } | ||
24060 | rlimit_nofile_zero_works=yes | ||
24061 | else | ||
24062 | echo "$as_me: program exited with status $ac_status" >&5 | ||
24063 | echo "$as_me: failed program was:" >&5 | ||
24064 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24065 | |||
24066 | ( exit $ac_status ) | ||
24067 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24068 | echo "${ECHO_T}no" >&6; } | ||
24069 | rlimit_nofile_zero_works=no | ||
24070 | fi | ||
24071 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24072 | fi | ||
24073 | |||
24074 | |||
24075 | |||
24076 | { echo "$as_me:$LINENO: checking if setrlimit RLIMIT_FSIZE works" >&5 | ||
24077 | echo $ECHO_N "checking if setrlimit RLIMIT_FSIZE works... $ECHO_C" >&6; } | ||
24078 | if test "$cross_compiling" = yes; then | ||
24079 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
24080 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
24081 | |||
24082 | else | ||
24083 | cat >conftest.$ac_ext <<_ACEOF | ||
24084 | /* confdefs.h. */ | ||
24085 | _ACEOF | ||
24086 | cat confdefs.h >>conftest.$ac_ext | ||
24087 | cat >>conftest.$ac_ext <<_ACEOF | ||
24088 | /* end confdefs.h. */ | ||
24089 | |||
24090 | #include <sys/types.h> | ||
24091 | #include <sys/resource.h> | ||
24092 | #include <stdlib.h> | ||
24093 | |||
24094 | int | ||
24095 | main () | ||
24096 | { | ||
24097 | |||
24098 | struct rlimit rl_zero; | ||
24099 | |||
24100 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
24101 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); | ||
24102 | |||
24103 | ; | ||
24104 | return 0; | ||
24105 | } | ||
24106 | _ACEOF | ||
24107 | rm -f conftest$ac_exeext | ||
24108 | if { (ac_try="$ac_link" | ||
24109 | case "(($ac_try" in | ||
24110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24111 | *) ac_try_echo=$ac_try;; | ||
24112 | esac | ||
24113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24114 | (eval "$ac_link") 2>&5 | ||
24115 | ac_status=$? | ||
24116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24117 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24118 | { (case "(($ac_try" in | ||
24119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24120 | *) ac_try_echo=$ac_try;; | ||
24121 | esac | ||
24122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24123 | (eval "$ac_try") 2>&5 | ||
24124 | ac_status=$? | ||
24125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24126 | (exit $ac_status); }; }; then | ||
24127 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
24128 | echo "${ECHO_T}yes" >&6; } | ||
24129 | else | ||
24130 | echo "$as_me: program exited with status $ac_status" >&5 | ||
24131 | echo "$as_me: failed program was:" >&5 | ||
24132 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24133 | |||
24134 | ( exit $ac_status ) | ||
24135 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24136 | echo "${ECHO_T}no" >&6; } | ||
24137 | |||
24138 | cat >>confdefs.h <<\_ACEOF | ||
24139 | #define SANDBOX_SKIP_RLIMIT_FSIZE 1 | ||
24140 | _ACEOF | ||
24141 | |||
24142 | fi | ||
24143 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24144 | fi | ||
24145 | |||
24146 | |||
24147 | |||
24148 | if test "x$sandbox_arg" = "xsystrace" || \ | ||
24149 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | ||
24150 | test "x$have_systr_policy_kill" != "x1" && \ | ||
24151 | { { echo "$as_me:$LINENO: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&5 | ||
24152 | echo "$as_me: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&2;} | ||
24153 | { (exit 1); exit 1; }; } | ||
24154 | SANDBOX_STYLE="systrace" | ||
24155 | |||
24156 | cat >>confdefs.h <<\_ACEOF | ||
24157 | #define SANDBOX_SYSTRACE 1 | ||
24158 | _ACEOF | ||
24159 | |||
24160 | elif test "x$sandbox_arg" = "xdarwin" || \ | ||
24161 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ | ||
24162 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then | ||
24163 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ | ||
24164 | "x$ac_cv_header_sandbox_h" != "xyes" && \ | ||
24165 | { { echo "$as_me:$LINENO: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&5 | ||
24166 | echo "$as_me: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&2;} | ||
24167 | { (exit 1); exit 1; }; } | ||
24168 | SANDBOX_STYLE="darwin" | ||
24169 | |||
24170 | cat >>confdefs.h <<\_ACEOF | ||
24171 | #define SANDBOX_DARWIN 1 | ||
24172 | _ACEOF | ||
24173 | |||
24174 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | ||
24175 | ( test -z "$sandbox_arg" && \ | ||
24176 | test "x$have_seccomp_filter" = "x1" && \ | ||
24177 | test "x$ac_cv_header_elf_h" = "xyes" && \ | ||
24178 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | ||
24179 | test "x$ac_cv_header_linux_filter_h" = "xyes" && \ | ||
24180 | test "x$seccomp_audit_arch" != "x" && \ | ||
24181 | test "x$have_linux_no_new_privs" = "x1" && \ | ||
24182 | test "x$ac_cv_func_prctl" = "xyes" ) ; then | ||
24183 | test "x$seccomp_audit_arch" = "x" && \ | ||
24184 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox not supported on $host" >&5 | ||
24185 | echo "$as_me: error: seccomp_filter sandbox not supported on $host" >&2;} | ||
24186 | { (exit 1); exit 1; }; } | ||
24187 | test "x$have_linux_no_new_privs" != "x1" && \ | ||
24188 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&5 | ||
24189 | echo "$as_me: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&2;} | ||
24190 | { (exit 1); exit 1; }; } | ||
24191 | test "x$have_seccomp_filter" != "x1" && \ | ||
24192 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires seccomp headers" >&5 | ||
24193 | echo "$as_me: error: seccomp_filter sandbox requires seccomp headers" >&2;} | ||
24194 | { (exit 1); exit 1; }; } | ||
24195 | test "x$ac_cv_func_prctl" != "xyes" && \ | ||
24196 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires prctl function" >&5 | ||
24197 | echo "$as_me: error: seccomp_filter sandbox requires prctl function" >&2;} | ||
24198 | { (exit 1); exit 1; }; } | ||
24199 | SANDBOX_STYLE="seccomp_filter" | ||
24200 | |||
24201 | cat >>confdefs.h <<\_ACEOF | ||
24202 | #define SANDBOX_SECCOMP_FILTER 1 | ||
24203 | _ACEOF | ||
24204 | |||
24205 | elif test "x$sandbox_arg" = "xcapsicum" || \ | ||
24206 | ( test -z "$sandbox_arg" && \ | ||
24207 | test "x$ac_cv_header_sys_capability_h" = "xyes" && \ | ||
24208 | test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then | ||
24209 | test "x$ac_cv_header_sys_capability_h" != "xyes" && \ | ||
24210 | { { echo "$as_me:$LINENO: error: capsicum sandbox requires sys/capability.h header" >&5 | ||
24211 | echo "$as_me: error: capsicum sandbox requires sys/capability.h header" >&2;} | ||
24212 | { (exit 1); exit 1; }; } | ||
24213 | test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ | ||
24214 | { { echo "$as_me:$LINENO: error: capsicum sandbox requires cap_rights_limit function" >&5 | ||
24215 | echo "$as_me: error: capsicum sandbox requires cap_rights_limit function" >&2;} | ||
24216 | { (exit 1); exit 1; }; } | ||
24217 | SANDBOX_STYLE="capsicum" | ||
24218 | |||
24219 | cat >>confdefs.h <<\_ACEOF | ||
24220 | #define SANDBOX_CAPSICUM 1 | ||
24221 | _ACEOF | ||
24222 | |||
24223 | elif test "x$sandbox_arg" = "xrlimit" || \ | ||
24224 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ | ||
24225 | test "x$select_works_with_rlimit" = "xyes" && \ | ||
24226 | test "x$rlimit_nofile_zero_works" = "xyes" ) ; then | ||
24227 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | ||
24228 | { { echo "$as_me:$LINENO: error: rlimit sandbox requires setrlimit function" >&5 | ||
24229 | echo "$as_me: error: rlimit sandbox requires setrlimit function" >&2;} | ||
24230 | { (exit 1); exit 1; }; } | ||
24231 | test "x$select_works_with_rlimit" != "xyes" && \ | ||
24232 | { { echo "$as_me:$LINENO: error: rlimit sandbox requires select to work with rlimit" >&5 | ||
24233 | echo "$as_me: error: rlimit sandbox requires select to work with rlimit" >&2;} | ||
24234 | { (exit 1); exit 1; }; } | ||
24235 | SANDBOX_STYLE="rlimit" | ||
24236 | |||
24237 | cat >>confdefs.h <<\_ACEOF | ||
24238 | #define SANDBOX_RLIMIT 1 | ||
24239 | _ACEOF | ||
24240 | |||
24241 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ | ||
24242 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then | ||
24243 | SANDBOX_STYLE="none" | ||
24244 | |||
24245 | cat >>confdefs.h <<\_ACEOF | ||
24246 | #define SANDBOX_NULL 1 | ||
24247 | _ACEOF | ||
24248 | |||
24249 | else | ||
24250 | { { echo "$as_me:$LINENO: error: unsupported --with-sandbox" >&5 | ||
24251 | echo "$as_me: error: unsupported --with-sandbox" >&2;} | ||
24252 | { (exit 1); exit 1; }; } | ||
24253 | fi | ||
24254 | |||
24255 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
24256 | if test ! -z "$SONY" ; then | ||
24257 | LIBS="$LIBS -liberty"; | ||
24258 | fi | ||
24259 | |||
24260 | # Check for long long datatypes | ||
24261 | { echo "$as_me:$LINENO: checking for long long" >&5 | ||
24262 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | ||
24263 | if test "${ac_cv_type_long_long+set}" = set; then | ||
24264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24265 | else | ||
24266 | cat >conftest.$ac_ext <<_ACEOF | ||
24267 | /* confdefs.h. */ | ||
24268 | _ACEOF | ||
24269 | cat confdefs.h >>conftest.$ac_ext | ||
24270 | cat >>conftest.$ac_ext <<_ACEOF | ||
24271 | /* end confdefs.h. */ | ||
24272 | $ac_includes_default | ||
24273 | typedef long long ac__type_new_; | ||
24274 | int | ||
24275 | main () | ||
24276 | { | ||
24277 | if ((ac__type_new_ *) 0) | ||
24278 | return 0; | ||
24279 | if (sizeof (ac__type_new_)) | ||
24280 | return 0; | ||
24281 | ; | ||
24282 | return 0; | ||
24283 | } | ||
24284 | _ACEOF | ||
24285 | rm -f conftest.$ac_objext | ||
24286 | if { (ac_try="$ac_compile" | ||
24287 | case "(($ac_try" in | ||
24288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24289 | *) ac_try_echo=$ac_try;; | ||
24290 | esac | ||
24291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24292 | (eval "$ac_compile") 2>conftest.er1 | ||
24293 | ac_status=$? | ||
24294 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24295 | rm -f conftest.er1 | ||
24296 | cat conftest.err >&5 | ||
24297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24298 | (exit $ac_status); } && { | ||
24299 | test -z "$ac_c_werror_flag" || | ||
24300 | test ! -s conftest.err | ||
24301 | } && test -s conftest.$ac_objext; then | ||
24302 | ac_cv_type_long_long=yes | ||
24303 | else | ||
24304 | echo "$as_me: failed program was:" >&5 | ||
24305 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24306 | |||
24307 | ac_cv_type_long_long=no | ||
24308 | fi | ||
24309 | |||
24310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24311 | fi | ||
24312 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | ||
24313 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | ||
24314 | if test $ac_cv_type_long_long = yes; then | ||
24315 | |||
24316 | cat >>confdefs.h <<_ACEOF | ||
24317 | #define HAVE_LONG_LONG 1 | ||
24318 | _ACEOF | ||
24319 | |||
24320 | |||
24321 | fi | ||
24322 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 | ||
24323 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } | ||
24324 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | ||
24325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24326 | else | ||
24327 | cat >conftest.$ac_ext <<_ACEOF | ||
24328 | /* confdefs.h. */ | ||
24329 | _ACEOF | ||
24330 | cat confdefs.h >>conftest.$ac_ext | ||
24331 | cat >>conftest.$ac_ext <<_ACEOF | ||
24332 | /* end confdefs.h. */ | ||
24333 | $ac_includes_default | ||
24334 | typedef unsigned long long ac__type_new_; | ||
24335 | int | ||
24336 | main () | ||
24337 | { | ||
24338 | if ((ac__type_new_ *) 0) | ||
24339 | return 0; | ||
24340 | if (sizeof (ac__type_new_)) | ||
24341 | return 0; | ||
24342 | ; | ||
24343 | return 0; | ||
24344 | } | ||
24345 | _ACEOF | ||
24346 | rm -f conftest.$ac_objext | ||
24347 | if { (ac_try="$ac_compile" | ||
24348 | case "(($ac_try" in | ||
24349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24350 | *) ac_try_echo=$ac_try;; | ||
24351 | esac | ||
24352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24353 | (eval "$ac_compile") 2>conftest.er1 | ||
24354 | ac_status=$? | ||
24355 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24356 | rm -f conftest.er1 | ||
24357 | cat conftest.err >&5 | ||
24358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24359 | (exit $ac_status); } && { | ||
24360 | test -z "$ac_c_werror_flag" || | ||
24361 | test ! -s conftest.err | ||
24362 | } && test -s conftest.$ac_objext; then | ||
24363 | ac_cv_type_unsigned_long_long=yes | ||
24364 | else | ||
24365 | echo "$as_me: failed program was:" >&5 | ||
24366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24367 | |||
24368 | ac_cv_type_unsigned_long_long=no | ||
24369 | fi | ||
24370 | |||
24371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24372 | fi | ||
24373 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | ||
24374 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } | ||
24375 | if test $ac_cv_type_unsigned_long_long = yes; then | ||
24376 | |||
24377 | cat >>confdefs.h <<_ACEOF | ||
24378 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
24379 | _ACEOF | ||
24380 | |||
24381 | |||
24382 | fi | ||
24383 | { echo "$as_me:$LINENO: checking for long double" >&5 | ||
24384 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } | ||
24385 | if test "${ac_cv_type_long_double+set}" = set; then | ||
24386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24387 | else | ||
24388 | cat >conftest.$ac_ext <<_ACEOF | ||
24389 | /* confdefs.h. */ | ||
24390 | _ACEOF | ||
24391 | cat confdefs.h >>conftest.$ac_ext | ||
24392 | cat >>conftest.$ac_ext <<_ACEOF | ||
24393 | /* end confdefs.h. */ | ||
24394 | $ac_includes_default | ||
24395 | typedef long double ac__type_new_; | ||
24396 | int | ||
24397 | main () | ||
24398 | { | ||
24399 | if ((ac__type_new_ *) 0) | ||
24400 | return 0; | ||
24401 | if (sizeof (ac__type_new_)) | ||
24402 | return 0; | ||
24403 | ; | ||
24404 | return 0; | ||
24405 | } | ||
24406 | _ACEOF | ||
24407 | rm -f conftest.$ac_objext | ||
24408 | if { (ac_try="$ac_compile" | ||
24409 | case "(($ac_try" in | ||
24410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24411 | *) ac_try_echo=$ac_try;; | ||
24412 | esac | ||
24413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24414 | (eval "$ac_compile") 2>conftest.er1 | ||
24415 | ac_status=$? | ||
24416 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24417 | rm -f conftest.er1 | ||
24418 | cat conftest.err >&5 | ||
24419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24420 | (exit $ac_status); } && { | ||
24421 | test -z "$ac_c_werror_flag" || | ||
24422 | test ! -s conftest.err | ||
24423 | } && test -s conftest.$ac_objext; then | ||
24424 | ac_cv_type_long_double=yes | ||
24425 | else | ||
24426 | echo "$as_me: failed program was:" >&5 | ||
24427 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24428 | |||
24429 | ac_cv_type_long_double=no | ||
24430 | fi | ||
24431 | |||
24432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24433 | fi | ||
24434 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | ||
24435 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } | ||
24436 | if test $ac_cv_type_long_double = yes; then | ||
24437 | |||
24438 | cat >>confdefs.h <<_ACEOF | ||
24439 | #define HAVE_LONG_DOUBLE 1 | ||
24440 | _ACEOF | ||
24441 | |||
24442 | |||
24443 | fi | ||
24444 | |||
24445 | |||
24446 | # Check datatype sizes | ||
24447 | { echo "$as_me:$LINENO: checking for short int" >&5 | ||
24448 | echo $ECHO_N "checking for short int... $ECHO_C" >&6; } | ||
24449 | if test "${ac_cv_type_short_int+set}" = set; then | ||
24450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24451 | else | ||
24452 | cat >conftest.$ac_ext <<_ACEOF | ||
24453 | /* confdefs.h. */ | ||
24454 | _ACEOF | ||
24455 | cat confdefs.h >>conftest.$ac_ext | ||
24456 | cat >>conftest.$ac_ext <<_ACEOF | ||
24457 | /* end confdefs.h. */ | ||
24458 | $ac_includes_default | ||
24459 | typedef short int ac__type_new_; | ||
24460 | int | ||
24461 | main () | ||
24462 | { | ||
24463 | if ((ac__type_new_ *) 0) | ||
24464 | return 0; | ||
24465 | if (sizeof (ac__type_new_)) | ||
24466 | return 0; | ||
24467 | ; | ||
24468 | return 0; | ||
24469 | } | ||
24470 | _ACEOF | ||
24471 | rm -f conftest.$ac_objext | ||
24472 | if { (ac_try="$ac_compile" | ||
24473 | case "(($ac_try" in | ||
24474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24475 | *) ac_try_echo=$ac_try;; | ||
24476 | esac | ||
24477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24478 | (eval "$ac_compile") 2>conftest.er1 | ||
24479 | ac_status=$? | ||
24480 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24481 | rm -f conftest.er1 | ||
24482 | cat conftest.err >&5 | ||
24483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24484 | (exit $ac_status); } && { | ||
24485 | test -z "$ac_c_werror_flag" || | ||
24486 | test ! -s conftest.err | ||
24487 | } && test -s conftest.$ac_objext; then | ||
24488 | ac_cv_type_short_int=yes | ||
24489 | else | ||
24490 | echo "$as_me: failed program was:" >&5 | ||
24491 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24492 | |||
24493 | ac_cv_type_short_int=no | ||
24494 | fi | ||
24495 | |||
24496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24497 | fi | ||
24498 | { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
24499 | echo "${ECHO_T}$ac_cv_type_short_int" >&6; } | ||
24500 | |||
24501 | # The cast to long int works around a bug in the HP C Compiler | ||
24502 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
24503 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
24504 | # This bug is HP SR number 8606223364. | ||
24505 | { echo "$as_me:$LINENO: checking size of short int" >&5 | ||
24506 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6; } | ||
24507 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
24508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24509 | else | ||
24510 | if test "$cross_compiling" = yes; then | ||
24511 | # Depending upon the size, compute the lo and hi bounds. | ||
24512 | cat >conftest.$ac_ext <<_ACEOF | ||
24513 | /* confdefs.h. */ | ||
24514 | _ACEOF | ||
24515 | cat confdefs.h >>conftest.$ac_ext | ||
24516 | cat >>conftest.$ac_ext <<_ACEOF | ||
24517 | /* end confdefs.h. */ | ||
24518 | $ac_includes_default | ||
24519 | typedef short int ac__type_sizeof_; | ||
24520 | int | ||
24521 | main () | ||
24522 | { | ||
24523 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
24524 | test_array [0] = 0 | ||
24525 | |||
24526 | ; | ||
24527 | return 0; | ||
24528 | } | ||
24529 | _ACEOF | ||
24530 | rm -f conftest.$ac_objext | ||
24531 | if { (ac_try="$ac_compile" | ||
24532 | case "(($ac_try" in | ||
24533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24534 | *) ac_try_echo=$ac_try;; | ||
24535 | esac | ||
24536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24537 | (eval "$ac_compile") 2>conftest.er1 | ||
24538 | ac_status=$? | ||
24539 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24540 | rm -f conftest.er1 | ||
24541 | cat conftest.err >&5 | ||
24542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24543 | (exit $ac_status); } && { | ||
24544 | test -z "$ac_c_werror_flag" || | ||
24545 | test ! -s conftest.err | ||
24546 | } && test -s conftest.$ac_objext; then | ||
24547 | ac_lo=0 ac_mid=0 | ||
24548 | while :; do | ||
24549 | cat >conftest.$ac_ext <<_ACEOF | ||
24550 | /* confdefs.h. */ | ||
24551 | _ACEOF | ||
24552 | cat confdefs.h >>conftest.$ac_ext | ||
24553 | cat >>conftest.$ac_ext <<_ACEOF | ||
24554 | /* end confdefs.h. */ | ||
24555 | $ac_includes_default | ||
24556 | typedef short int ac__type_sizeof_; | ||
24557 | int | ||
24558 | main () | ||
24559 | { | ||
24560 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
24561 | test_array [0] = 0 | ||
24562 | |||
24563 | ; | ||
24564 | return 0; | ||
24565 | } | ||
24566 | _ACEOF | ||
24567 | rm -f conftest.$ac_objext | ||
24568 | if { (ac_try="$ac_compile" | ||
24569 | case "(($ac_try" in | ||
24570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24571 | *) ac_try_echo=$ac_try;; | ||
24572 | esac | ||
24573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24574 | (eval "$ac_compile") 2>conftest.er1 | ||
24575 | ac_status=$? | ||
24576 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24577 | rm -f conftest.er1 | ||
24578 | cat conftest.err >&5 | ||
24579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24580 | (exit $ac_status); } && { | ||
24581 | test -z "$ac_c_werror_flag" || | ||
24582 | test ! -s conftest.err | ||
24583 | } && test -s conftest.$ac_objext; then | ||
24584 | ac_hi=$ac_mid; break | ||
24585 | else | ||
24586 | echo "$as_me: failed program was:" >&5 | ||
24587 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24588 | |||
24589 | ac_lo=`expr $ac_mid + 1` | ||
24590 | if test $ac_lo -le $ac_mid; then | ||
24591 | ac_lo= ac_hi= | ||
24592 | break | ||
24593 | fi | ||
24594 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
24595 | fi | ||
24596 | |||
24597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24598 | done | ||
24599 | else | ||
24600 | echo "$as_me: failed program was:" >&5 | ||
24601 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24602 | |||
24603 | cat >conftest.$ac_ext <<_ACEOF | ||
24604 | /* confdefs.h. */ | ||
24605 | _ACEOF | ||
24606 | cat confdefs.h >>conftest.$ac_ext | ||
24607 | cat >>conftest.$ac_ext <<_ACEOF | ||
24608 | /* end confdefs.h. */ | ||
24609 | $ac_includes_default | ||
24610 | typedef short int ac__type_sizeof_; | ||
24611 | int | ||
24612 | main () | ||
24613 | { | ||
24614 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
24615 | test_array [0] = 0 | ||
24616 | |||
24617 | ; | ||
24618 | return 0; | ||
24619 | } | ||
24620 | _ACEOF | ||
24621 | rm -f conftest.$ac_objext | ||
24622 | if { (ac_try="$ac_compile" | ||
24623 | case "(($ac_try" in | ||
24624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24625 | *) ac_try_echo=$ac_try;; | ||
24626 | esac | ||
24627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24628 | (eval "$ac_compile") 2>conftest.er1 | ||
24629 | ac_status=$? | ||
24630 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24631 | rm -f conftest.er1 | ||
24632 | cat conftest.err >&5 | ||
24633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24634 | (exit $ac_status); } && { | ||
24635 | test -z "$ac_c_werror_flag" || | ||
24636 | test ! -s conftest.err | ||
24637 | } && test -s conftest.$ac_objext; then | ||
24638 | ac_hi=-1 ac_mid=-1 | ||
24639 | while :; do | ||
24640 | cat >conftest.$ac_ext <<_ACEOF | ||
24641 | /* confdefs.h. */ | ||
24642 | _ACEOF | ||
24643 | cat confdefs.h >>conftest.$ac_ext | ||
24644 | cat >>conftest.$ac_ext <<_ACEOF | ||
24645 | /* end confdefs.h. */ | ||
24646 | $ac_includes_default | ||
24647 | typedef short int ac__type_sizeof_; | ||
24648 | int | ||
24649 | main () | ||
24650 | { | ||
24651 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
24652 | test_array [0] = 0 | ||
24653 | |||
24654 | ; | ||
24655 | return 0; | ||
24656 | } | ||
24657 | _ACEOF | ||
24658 | rm -f conftest.$ac_objext | ||
24659 | if { (ac_try="$ac_compile" | ||
24660 | case "(($ac_try" in | ||
24661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24662 | *) ac_try_echo=$ac_try;; | ||
24663 | esac | ||
24664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24665 | (eval "$ac_compile") 2>conftest.er1 | ||
24666 | ac_status=$? | ||
24667 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24668 | rm -f conftest.er1 | ||
24669 | cat conftest.err >&5 | ||
24670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24671 | (exit $ac_status); } && { | ||
24672 | test -z "$ac_c_werror_flag" || | ||
24673 | test ! -s conftest.err | ||
24674 | } && test -s conftest.$ac_objext; then | ||
24675 | ac_lo=$ac_mid; break | ||
24676 | else | ||
24677 | echo "$as_me: failed program was:" >&5 | ||
24678 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24679 | |||
24680 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
24681 | if test $ac_mid -le $ac_hi; then | ||
24682 | ac_lo= ac_hi= | ||
24683 | break | ||
24684 | fi | ||
24685 | ac_mid=`expr 2 '*' $ac_mid` | ||
24686 | fi | ||
24687 | |||
24688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24689 | done | ||
24690 | else | ||
24691 | echo "$as_me: failed program was:" >&5 | ||
24692 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24693 | |||
24694 | ac_lo= ac_hi= | ||
24695 | fi | ||
24696 | |||
24697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24698 | fi | ||
24699 | |||
24700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24701 | # Binary search between lo and hi bounds. | ||
24702 | while test "x$ac_lo" != "x$ac_hi"; do | ||
24703 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
24704 | cat >conftest.$ac_ext <<_ACEOF | ||
24705 | /* confdefs.h. */ | ||
24706 | _ACEOF | ||
24707 | cat confdefs.h >>conftest.$ac_ext | ||
24708 | cat >>conftest.$ac_ext <<_ACEOF | ||
24709 | /* end confdefs.h. */ | ||
24710 | $ac_includes_default | ||
24711 | typedef short int ac__type_sizeof_; | ||
24712 | int | ||
24713 | main () | ||
24714 | { | ||
24715 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
24716 | test_array [0] = 0 | ||
24717 | |||
24718 | ; | ||
24719 | return 0; | ||
24720 | } | ||
24721 | _ACEOF | ||
24722 | rm -f conftest.$ac_objext | ||
24723 | if { (ac_try="$ac_compile" | ||
24724 | case "(($ac_try" in | ||
24725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24726 | *) ac_try_echo=$ac_try;; | ||
24727 | esac | ||
24728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24729 | (eval "$ac_compile") 2>conftest.er1 | ||
24730 | ac_status=$? | ||
24731 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24732 | rm -f conftest.er1 | ||
24733 | cat conftest.err >&5 | ||
24734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24735 | (exit $ac_status); } && { | ||
24736 | test -z "$ac_c_werror_flag" || | ||
24737 | test ! -s conftest.err | ||
24738 | } && test -s conftest.$ac_objext; then | ||
24739 | ac_hi=$ac_mid | ||
24740 | else | ||
24741 | echo "$as_me: failed program was:" >&5 | ||
24742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24743 | |||
24744 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
24745 | fi | ||
24746 | |||
24747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24748 | done | ||
24749 | case $ac_lo in | ||
24750 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
24751 | '') if test "$ac_cv_type_short_int" = yes; then | ||
24752 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
24753 | See \`config.log' for more details." >&5 | ||
24754 | echo "$as_me: error: cannot compute sizeof (short int) | ||
24755 | See \`config.log' for more details." >&2;} | ||
24756 | { (exit 77); exit 77; }; } | ||
24757 | else | ||
24758 | ac_cv_sizeof_short_int=0 | ||
24759 | fi ;; | ||
24760 | esac | ||
24761 | else | ||
24762 | cat >conftest.$ac_ext <<_ACEOF | ||
24763 | /* confdefs.h. */ | ||
24764 | _ACEOF | ||
24765 | cat confdefs.h >>conftest.$ac_ext | ||
24766 | cat >>conftest.$ac_ext <<_ACEOF | ||
24767 | /* end confdefs.h. */ | ||
24768 | $ac_includes_default | ||
24769 | typedef short int ac__type_sizeof_; | ||
24770 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
24771 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
24772 | #include <stdio.h> | ||
24773 | #include <stdlib.h> | ||
24774 | int | ||
24775 | main () | ||
24776 | { | ||
24777 | |||
24778 | FILE *f = fopen ("conftest.val", "w"); | ||
24779 | if (! f) | ||
24780 | return 1; | ||
24781 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
24782 | { | ||
24783 | long int i = longval (); | ||
24784 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
24785 | return 1; | ||
24786 | fprintf (f, "%ld\n", i); | ||
24787 | } | ||
24788 | else | ||
24789 | { | ||
24790 | unsigned long int i = ulongval (); | ||
24791 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
24792 | return 1; | ||
24793 | fprintf (f, "%lu\n", i); | ||
24794 | } | ||
24795 | return ferror (f) || fclose (f) != 0; | ||
24796 | |||
24797 | ; | ||
24798 | return 0; | ||
24799 | } | ||
24800 | _ACEOF | ||
24801 | rm -f conftest$ac_exeext | ||
24802 | if { (ac_try="$ac_link" | ||
24803 | case "(($ac_try" in | ||
24804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24805 | *) ac_try_echo=$ac_try;; | ||
24806 | esac | ||
24807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24808 | (eval "$ac_link") 2>&5 | ||
24809 | ac_status=$? | ||
24810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24811 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24812 | { (case "(($ac_try" in | ||
24813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24814 | *) ac_try_echo=$ac_try;; | ||
24815 | esac | ||
24816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24817 | (eval "$ac_try") 2>&5 | ||
24818 | ac_status=$? | ||
24819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24820 | (exit $ac_status); }; }; then | ||
24821 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
24822 | else | ||
24823 | echo "$as_me: program exited with status $ac_status" >&5 | ||
24824 | echo "$as_me: failed program was:" >&5 | ||
24825 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24826 | |||
24827 | ( exit $ac_status ) | ||
24828 | if test "$ac_cv_type_short_int" = yes; then | ||
24829 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
24830 | See \`config.log' for more details." >&5 | ||
24831 | echo "$as_me: error: cannot compute sizeof (short int) | ||
24832 | See \`config.log' for more details." >&2;} | ||
24833 | { (exit 77); exit 77; }; } | ||
24834 | else | ||
24835 | ac_cv_sizeof_short_int=0 | ||
24836 | fi | ||
24837 | fi | ||
24838 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24839 | fi | ||
24840 | rm -f conftest.val | ||
24841 | fi | ||
24842 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
24843 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; } | ||
24844 | |||
24845 | |||
24846 | |||
24847 | cat >>confdefs.h <<_ACEOF | ||
24848 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
24849 | _ACEOF | ||
24850 | |||
24851 | |||
24852 | { echo "$as_me:$LINENO: checking for int" >&5 | ||
24853 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | ||
24854 | if test "${ac_cv_type_int+set}" = set; then | ||
24855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24856 | else | ||
24857 | cat >conftest.$ac_ext <<_ACEOF | ||
24858 | /* confdefs.h. */ | ||
24859 | _ACEOF | ||
24860 | cat confdefs.h >>conftest.$ac_ext | ||
24861 | cat >>conftest.$ac_ext <<_ACEOF | ||
24862 | /* end confdefs.h. */ | ||
24863 | $ac_includes_default | ||
24864 | typedef int ac__type_new_; | ||
24865 | int | ||
24866 | main () | ||
24867 | { | ||
24868 | if ((ac__type_new_ *) 0) | ||
24869 | return 0; | ||
24870 | if (sizeof (ac__type_new_)) | ||
24871 | return 0; | ||
24872 | ; | ||
24873 | return 0; | ||
24874 | } | ||
24875 | _ACEOF | ||
24876 | rm -f conftest.$ac_objext | ||
24877 | if { (ac_try="$ac_compile" | ||
24878 | case "(($ac_try" in | ||
24879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24880 | *) ac_try_echo=$ac_try;; | ||
24881 | esac | ||
24882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24883 | (eval "$ac_compile") 2>conftest.er1 | ||
24884 | ac_status=$? | ||
24885 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24886 | rm -f conftest.er1 | ||
24887 | cat conftest.err >&5 | ||
24888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24889 | (exit $ac_status); } && { | ||
24890 | test -z "$ac_c_werror_flag" || | ||
24891 | test ! -s conftest.err | ||
24892 | } && test -s conftest.$ac_objext; then | ||
24893 | ac_cv_type_int=yes | ||
24894 | else | ||
24895 | echo "$as_me: failed program was:" >&5 | ||
24896 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24897 | |||
24898 | ac_cv_type_int=no | ||
24899 | fi | ||
24900 | |||
24901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24902 | fi | ||
24903 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
24904 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | ||
24905 | |||
24906 | # The cast to long int works around a bug in the HP C Compiler | ||
24907 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
24908 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
24909 | # This bug is HP SR number 8606223364. | ||
24910 | { echo "$as_me:$LINENO: checking size of int" >&5 | ||
24911 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | ||
24912 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
24913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24914 | else | ||
24915 | if test "$cross_compiling" = yes; then | ||
24916 | # Depending upon the size, compute the lo and hi bounds. | ||
24917 | cat >conftest.$ac_ext <<_ACEOF | ||
24918 | /* confdefs.h. */ | ||
24919 | _ACEOF | ||
24920 | cat confdefs.h >>conftest.$ac_ext | ||
24921 | cat >>conftest.$ac_ext <<_ACEOF | ||
24922 | /* end confdefs.h. */ | ||
24923 | $ac_includes_default | ||
24924 | typedef int ac__type_sizeof_; | ||
24925 | int | ||
24926 | main () | ||
24927 | { | ||
24928 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
24929 | test_array [0] = 0 | ||
24930 | |||
24931 | ; | ||
24932 | return 0; | ||
24933 | } | ||
24934 | _ACEOF | ||
24935 | rm -f conftest.$ac_objext | ||
24936 | if { (ac_try="$ac_compile" | ||
24937 | case "(($ac_try" in | ||
24938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24939 | *) ac_try_echo=$ac_try;; | ||
24940 | esac | ||
24941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24942 | (eval "$ac_compile") 2>conftest.er1 | ||
24943 | ac_status=$? | ||
24944 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24945 | rm -f conftest.er1 | ||
24946 | cat conftest.err >&5 | ||
24947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24948 | (exit $ac_status); } && { | ||
24949 | test -z "$ac_c_werror_flag" || | ||
24950 | test ! -s conftest.err | ||
24951 | } && test -s conftest.$ac_objext; then | ||
24952 | ac_lo=0 ac_mid=0 | ||
24953 | while :; do | ||
24954 | cat >conftest.$ac_ext <<_ACEOF | ||
24955 | /* confdefs.h. */ | ||
24956 | _ACEOF | ||
24957 | cat confdefs.h >>conftest.$ac_ext | ||
24958 | cat >>conftest.$ac_ext <<_ACEOF | ||
24959 | /* end confdefs.h. */ | ||
24960 | $ac_includes_default | ||
24961 | typedef int ac__type_sizeof_; | ||
24962 | int | ||
24963 | main () | ||
24964 | { | ||
24965 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
24966 | test_array [0] = 0 | ||
24967 | |||
24968 | ; | ||
24969 | return 0; | ||
24970 | } | ||
24971 | _ACEOF | ||
24972 | rm -f conftest.$ac_objext | ||
24973 | if { (ac_try="$ac_compile" | ||
24974 | case "(($ac_try" in | ||
24975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24976 | *) ac_try_echo=$ac_try;; | ||
24977 | esac | ||
24978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24979 | (eval "$ac_compile") 2>conftest.er1 | ||
24980 | ac_status=$? | ||
24981 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24982 | rm -f conftest.er1 | ||
24983 | cat conftest.err >&5 | ||
24984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24985 | (exit $ac_status); } && { | ||
24986 | test -z "$ac_c_werror_flag" || | ||
24987 | test ! -s conftest.err | ||
24988 | } && test -s conftest.$ac_objext; then | ||
24989 | ac_hi=$ac_mid; break | ||
24990 | else | ||
24991 | echo "$as_me: failed program was:" >&5 | ||
24992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24993 | |||
24994 | ac_lo=`expr $ac_mid + 1` | ||
24995 | if test $ac_lo -le $ac_mid; then | ||
24996 | ac_lo= ac_hi= | ||
24997 | break | ||
24998 | fi | ||
24999 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
25000 | fi | ||
25001 | |||
25002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25003 | done | ||
25004 | else | ||
25005 | echo "$as_me: failed program was:" >&5 | ||
25006 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25007 | |||
25008 | cat >conftest.$ac_ext <<_ACEOF | ||
25009 | /* confdefs.h. */ | ||
25010 | _ACEOF | ||
25011 | cat confdefs.h >>conftest.$ac_ext | ||
25012 | cat >>conftest.$ac_ext <<_ACEOF | ||
25013 | /* end confdefs.h. */ | ||
25014 | $ac_includes_default | ||
25015 | typedef int ac__type_sizeof_; | ||
25016 | int | ||
25017 | main () | ||
25018 | { | ||
25019 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
25020 | test_array [0] = 0 | ||
25021 | |||
25022 | ; | ||
25023 | return 0; | ||
25024 | } | ||
25025 | _ACEOF | ||
25026 | rm -f conftest.$ac_objext | ||
25027 | if { (ac_try="$ac_compile" | ||
25028 | case "(($ac_try" in | ||
25029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25030 | *) ac_try_echo=$ac_try;; | ||
25031 | esac | ||
25032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25033 | (eval "$ac_compile") 2>conftest.er1 | ||
25034 | ac_status=$? | ||
25035 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25036 | rm -f conftest.er1 | ||
25037 | cat conftest.err >&5 | ||
25038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25039 | (exit $ac_status); } && { | ||
25040 | test -z "$ac_c_werror_flag" || | ||
25041 | test ! -s conftest.err | ||
25042 | } && test -s conftest.$ac_objext; then | ||
25043 | ac_hi=-1 ac_mid=-1 | ||
25044 | while :; do | ||
25045 | cat >conftest.$ac_ext <<_ACEOF | ||
25046 | /* confdefs.h. */ | ||
25047 | _ACEOF | ||
25048 | cat confdefs.h >>conftest.$ac_ext | ||
25049 | cat >>conftest.$ac_ext <<_ACEOF | ||
25050 | /* end confdefs.h. */ | ||
25051 | $ac_includes_default | ||
25052 | typedef int ac__type_sizeof_; | ||
25053 | int | ||
25054 | main () | ||
25055 | { | ||
25056 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
25057 | test_array [0] = 0 | ||
25058 | |||
25059 | ; | ||
25060 | return 0; | ||
25061 | } | ||
25062 | _ACEOF | ||
25063 | rm -f conftest.$ac_objext | ||
25064 | if { (ac_try="$ac_compile" | ||
25065 | case "(($ac_try" in | ||
25066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25067 | *) ac_try_echo=$ac_try;; | ||
25068 | esac | ||
25069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25070 | (eval "$ac_compile") 2>conftest.er1 | ||
25071 | ac_status=$? | ||
25072 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25073 | rm -f conftest.er1 | ||
25074 | cat conftest.err >&5 | ||
25075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25076 | (exit $ac_status); } && { | ||
25077 | test -z "$ac_c_werror_flag" || | ||
25078 | test ! -s conftest.err | ||
25079 | } && test -s conftest.$ac_objext; then | ||
25080 | ac_lo=$ac_mid; break | ||
25081 | else | ||
25082 | echo "$as_me: failed program was:" >&5 | ||
25083 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25084 | |||
25085 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
25086 | if test $ac_mid -le $ac_hi; then | ||
25087 | ac_lo= ac_hi= | ||
25088 | break | ||
25089 | fi | ||
25090 | ac_mid=`expr 2 '*' $ac_mid` | ||
25091 | fi | ||
25092 | |||
25093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25094 | done | ||
25095 | else | ||
25096 | echo "$as_me: failed program was:" >&5 | ||
25097 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25098 | |||
25099 | ac_lo= ac_hi= | ||
25100 | fi | ||
25101 | |||
25102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25103 | fi | ||
25104 | |||
25105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25106 | # Binary search between lo and hi bounds. | ||
25107 | while test "x$ac_lo" != "x$ac_hi"; do | ||
25108 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
25109 | cat >conftest.$ac_ext <<_ACEOF | ||
25110 | /* confdefs.h. */ | ||
25111 | _ACEOF | ||
25112 | cat confdefs.h >>conftest.$ac_ext | ||
25113 | cat >>conftest.$ac_ext <<_ACEOF | ||
25114 | /* end confdefs.h. */ | ||
25115 | $ac_includes_default | ||
25116 | typedef int ac__type_sizeof_; | ||
25117 | int | ||
25118 | main () | ||
25119 | { | ||
25120 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25121 | test_array [0] = 0 | ||
25122 | |||
25123 | ; | ||
25124 | return 0; | ||
25125 | } | ||
25126 | _ACEOF | ||
25127 | rm -f conftest.$ac_objext | ||
25128 | if { (ac_try="$ac_compile" | ||
25129 | case "(($ac_try" in | ||
25130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25131 | *) ac_try_echo=$ac_try;; | ||
25132 | esac | ||
25133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25134 | (eval "$ac_compile") 2>conftest.er1 | ||
25135 | ac_status=$? | ||
25136 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25137 | rm -f conftest.er1 | ||
25138 | cat conftest.err >&5 | ||
25139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25140 | (exit $ac_status); } && { | ||
25141 | test -z "$ac_c_werror_flag" || | ||
25142 | test ! -s conftest.err | ||
25143 | } && test -s conftest.$ac_objext; then | ||
25144 | ac_hi=$ac_mid | ||
25145 | else | ||
25146 | echo "$as_me: failed program was:" >&5 | ||
25147 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25148 | |||
25149 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
25150 | fi | ||
25151 | |||
25152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25153 | done | ||
25154 | case $ac_lo in | ||
25155 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
25156 | '') if test "$ac_cv_type_int" = yes; then | ||
25157 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
25158 | See \`config.log' for more details." >&5 | ||
25159 | echo "$as_me: error: cannot compute sizeof (int) | ||
25160 | See \`config.log' for more details." >&2;} | ||
25161 | { (exit 77); exit 77; }; } | ||
25162 | else | ||
25163 | ac_cv_sizeof_int=0 | ||
25164 | fi ;; | ||
25165 | esac | ||
25166 | else | ||
25167 | cat >conftest.$ac_ext <<_ACEOF | ||
25168 | /* confdefs.h. */ | ||
25169 | _ACEOF | ||
25170 | cat confdefs.h >>conftest.$ac_ext | ||
25171 | cat >>conftest.$ac_ext <<_ACEOF | ||
25172 | /* end confdefs.h. */ | ||
25173 | $ac_includes_default | ||
25174 | typedef int ac__type_sizeof_; | ||
25175 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25176 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25177 | #include <stdio.h> | ||
25178 | #include <stdlib.h> | ||
25179 | int | ||
25180 | main () | ||
25181 | { | ||
25182 | |||
25183 | FILE *f = fopen ("conftest.val", "w"); | ||
25184 | if (! f) | ||
25185 | return 1; | ||
25186 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
25187 | { | ||
25188 | long int i = longval (); | ||
25189 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25190 | return 1; | ||
25191 | fprintf (f, "%ld\n", i); | ||
25192 | } | ||
25193 | else | ||
25194 | { | ||
25195 | unsigned long int i = ulongval (); | ||
25196 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25197 | return 1; | ||
25198 | fprintf (f, "%lu\n", i); | ||
25199 | } | ||
25200 | return ferror (f) || fclose (f) != 0; | ||
25201 | |||
25202 | ; | ||
25203 | return 0; | ||
25204 | } | ||
25205 | _ACEOF | ||
25206 | rm -f conftest$ac_exeext | ||
25207 | if { (ac_try="$ac_link" | ||
25208 | case "(($ac_try" in | ||
25209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25210 | *) ac_try_echo=$ac_try;; | ||
25211 | esac | ||
25212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25213 | (eval "$ac_link") 2>&5 | ||
25214 | ac_status=$? | ||
25215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25216 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
25217 | { (case "(($ac_try" in | ||
25218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25219 | *) ac_try_echo=$ac_try;; | ||
25220 | esac | ||
25221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25222 | (eval "$ac_try") 2>&5 | ||
25223 | ac_status=$? | ||
25224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25225 | (exit $ac_status); }; }; then | ||
25226 | ac_cv_sizeof_int=`cat conftest.val` | ||
25227 | else | ||
25228 | echo "$as_me: program exited with status $ac_status" >&5 | ||
25229 | echo "$as_me: failed program was:" >&5 | ||
25230 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25231 | |||
25232 | ( exit $ac_status ) | ||
25233 | if test "$ac_cv_type_int" = yes; then | ||
25234 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
25235 | See \`config.log' for more details." >&5 | ||
25236 | echo "$as_me: error: cannot compute sizeof (int) | ||
25237 | See \`config.log' for more details." >&2;} | ||
25238 | { (exit 77); exit 77; }; } | ||
25239 | else | ||
25240 | ac_cv_sizeof_int=0 | ||
25241 | fi | ||
25242 | fi | ||
25243 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
25244 | fi | ||
25245 | rm -f conftest.val | ||
25246 | fi | ||
25247 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
25248 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | ||
25249 | |||
25250 | |||
25251 | |||
25252 | cat >>confdefs.h <<_ACEOF | ||
25253 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
25254 | _ACEOF | ||
25255 | |||
25256 | |||
25257 | { echo "$as_me:$LINENO: checking for long int" >&5 | ||
25258 | echo $ECHO_N "checking for long int... $ECHO_C" >&6; } | ||
25259 | if test "${ac_cv_type_long_int+set}" = set; then | ||
25260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25261 | else | ||
25262 | cat >conftest.$ac_ext <<_ACEOF | ||
25263 | /* confdefs.h. */ | ||
25264 | _ACEOF | ||
25265 | cat confdefs.h >>conftest.$ac_ext | ||
25266 | cat >>conftest.$ac_ext <<_ACEOF | ||
25267 | /* end confdefs.h. */ | ||
25268 | $ac_includes_default | ||
25269 | typedef long int ac__type_new_; | ||
25270 | int | ||
25271 | main () | ||
25272 | { | ||
25273 | if ((ac__type_new_ *) 0) | ||
25274 | return 0; | ||
25275 | if (sizeof (ac__type_new_)) | ||
25276 | return 0; | ||
25277 | ; | ||
25278 | return 0; | ||
25279 | } | ||
25280 | _ACEOF | ||
25281 | rm -f conftest.$ac_objext | ||
25282 | if { (ac_try="$ac_compile" | ||
25283 | case "(($ac_try" in | ||
25284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25285 | *) ac_try_echo=$ac_try;; | ||
25286 | esac | ||
25287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25288 | (eval "$ac_compile") 2>conftest.er1 | ||
25289 | ac_status=$? | ||
25290 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25291 | rm -f conftest.er1 | ||
25292 | cat conftest.err >&5 | ||
25293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25294 | (exit $ac_status); } && { | ||
25295 | test -z "$ac_c_werror_flag" || | ||
25296 | test ! -s conftest.err | ||
25297 | } && test -s conftest.$ac_objext; then | ||
25298 | ac_cv_type_long_int=yes | ||
25299 | else | ||
25300 | echo "$as_me: failed program was:" >&5 | ||
25301 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25302 | |||
25303 | ac_cv_type_long_int=no | ||
25304 | fi | ||
25305 | |||
25306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25307 | fi | ||
25308 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
25309 | echo "${ECHO_T}$ac_cv_type_long_int" >&6; } | ||
25310 | |||
25311 | # The cast to long int works around a bug in the HP C Compiler | ||
25312 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
25313 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
25314 | # This bug is HP SR number 8606223364. | ||
25315 | { echo "$as_me:$LINENO: checking size of long int" >&5 | ||
25316 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } | ||
25317 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
25318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25319 | else | ||
25320 | if test "$cross_compiling" = yes; then | ||
25321 | # Depending upon the size, compute the lo and hi bounds. | ||
25322 | cat >conftest.$ac_ext <<_ACEOF | ||
25323 | /* confdefs.h. */ | ||
25324 | _ACEOF | ||
25325 | cat confdefs.h >>conftest.$ac_ext | ||
25326 | cat >>conftest.$ac_ext <<_ACEOF | ||
25327 | /* end confdefs.h. */ | ||
25328 | $ac_includes_default | ||
25329 | typedef long int ac__type_sizeof_; | ||
25330 | int | ||
25331 | main () | ||
25332 | { | ||
25333 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
25334 | test_array [0] = 0 | ||
25335 | |||
25336 | ; | ||
25337 | return 0; | ||
25338 | } | ||
25339 | _ACEOF | ||
25340 | rm -f conftest.$ac_objext | ||
25341 | if { (ac_try="$ac_compile" | ||
25342 | case "(($ac_try" in | ||
25343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25344 | *) ac_try_echo=$ac_try;; | ||
25345 | esac | ||
25346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25347 | (eval "$ac_compile") 2>conftest.er1 | ||
25348 | ac_status=$? | ||
25349 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25350 | rm -f conftest.er1 | ||
25351 | cat conftest.err >&5 | ||
25352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25353 | (exit $ac_status); } && { | ||
25354 | test -z "$ac_c_werror_flag" || | ||
25355 | test ! -s conftest.err | ||
25356 | } && test -s conftest.$ac_objext; then | ||
25357 | ac_lo=0 ac_mid=0 | ||
25358 | while :; do | ||
25359 | cat >conftest.$ac_ext <<_ACEOF | ||
25360 | /* confdefs.h. */ | ||
25361 | _ACEOF | ||
25362 | cat confdefs.h >>conftest.$ac_ext | ||
25363 | cat >>conftest.$ac_ext <<_ACEOF | ||
25364 | /* end confdefs.h. */ | ||
25365 | $ac_includes_default | ||
25366 | typedef long int ac__type_sizeof_; | ||
25367 | int | ||
25368 | main () | ||
25369 | { | ||
25370 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25371 | test_array [0] = 0 | ||
25372 | |||
25373 | ; | ||
25374 | return 0; | ||
25375 | } | ||
25376 | _ACEOF | ||
25377 | rm -f conftest.$ac_objext | ||
25378 | if { (ac_try="$ac_compile" | ||
25379 | case "(($ac_try" in | ||
25380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25381 | *) ac_try_echo=$ac_try;; | ||
25382 | esac | ||
25383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25384 | (eval "$ac_compile") 2>conftest.er1 | ||
25385 | ac_status=$? | ||
25386 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25387 | rm -f conftest.er1 | ||
25388 | cat conftest.err >&5 | ||
25389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25390 | (exit $ac_status); } && { | ||
25391 | test -z "$ac_c_werror_flag" || | ||
25392 | test ! -s conftest.err | ||
25393 | } && test -s conftest.$ac_objext; then | ||
25394 | ac_hi=$ac_mid; break | ||
25395 | else | ||
25396 | echo "$as_me: failed program was:" >&5 | ||
25397 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25398 | |||
25399 | ac_lo=`expr $ac_mid + 1` | ||
25400 | if test $ac_lo -le $ac_mid; then | ||
25401 | ac_lo= ac_hi= | ||
25402 | break | ||
25403 | fi | ||
25404 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
25405 | fi | ||
25406 | |||
25407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25408 | done | ||
25409 | else | ||
25410 | echo "$as_me: failed program was:" >&5 | ||
25411 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25412 | |||
25413 | cat >conftest.$ac_ext <<_ACEOF | ||
25414 | /* confdefs.h. */ | ||
25415 | _ACEOF | ||
25416 | cat confdefs.h >>conftest.$ac_ext | ||
25417 | cat >>conftest.$ac_ext <<_ACEOF | ||
25418 | /* end confdefs.h. */ | ||
25419 | $ac_includes_default | ||
25420 | typedef long int ac__type_sizeof_; | ||
25421 | int | ||
25422 | main () | ||
25423 | { | ||
25424 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
25425 | test_array [0] = 0 | ||
25426 | |||
25427 | ; | ||
25428 | return 0; | ||
25429 | } | ||
25430 | _ACEOF | ||
25431 | rm -f conftest.$ac_objext | ||
25432 | if { (ac_try="$ac_compile" | ||
25433 | case "(($ac_try" in | ||
25434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25435 | *) ac_try_echo=$ac_try;; | ||
25436 | esac | ||
25437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25438 | (eval "$ac_compile") 2>conftest.er1 | ||
25439 | ac_status=$? | ||
25440 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25441 | rm -f conftest.er1 | ||
25442 | cat conftest.err >&5 | ||
25443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25444 | (exit $ac_status); } && { | ||
25445 | test -z "$ac_c_werror_flag" || | ||
25446 | test ! -s conftest.err | ||
25447 | } && test -s conftest.$ac_objext; then | ||
25448 | ac_hi=-1 ac_mid=-1 | ||
25449 | while :; do | ||
25450 | cat >conftest.$ac_ext <<_ACEOF | ||
25451 | /* confdefs.h. */ | ||
25452 | _ACEOF | ||
25453 | cat confdefs.h >>conftest.$ac_ext | ||
25454 | cat >>conftest.$ac_ext <<_ACEOF | ||
25455 | /* end confdefs.h. */ | ||
25456 | $ac_includes_default | ||
25457 | typedef long int ac__type_sizeof_; | ||
25458 | int | ||
25459 | main () | ||
25460 | { | ||
25461 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
25462 | test_array [0] = 0 | ||
25463 | |||
25464 | ; | ||
25465 | return 0; | ||
25466 | } | ||
25467 | _ACEOF | ||
25468 | rm -f conftest.$ac_objext | ||
25469 | if { (ac_try="$ac_compile" | ||
25470 | case "(($ac_try" in | ||
25471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25472 | *) ac_try_echo=$ac_try;; | ||
25473 | esac | ||
25474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25475 | (eval "$ac_compile") 2>conftest.er1 | ||
25476 | ac_status=$? | ||
25477 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25478 | rm -f conftest.er1 | ||
25479 | cat conftest.err >&5 | ||
25480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25481 | (exit $ac_status); } && { | ||
25482 | test -z "$ac_c_werror_flag" || | ||
25483 | test ! -s conftest.err | ||
25484 | } && test -s conftest.$ac_objext; then | ||
25485 | ac_lo=$ac_mid; break | ||
25486 | else | ||
25487 | echo "$as_me: failed program was:" >&5 | ||
25488 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25489 | |||
25490 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
25491 | if test $ac_mid -le $ac_hi; then | ||
25492 | ac_lo= ac_hi= | ||
25493 | break | ||
25494 | fi | ||
25495 | ac_mid=`expr 2 '*' $ac_mid` | ||
25496 | fi | ||
25497 | |||
25498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25499 | done | ||
25500 | else | ||
25501 | echo "$as_me: failed program was:" >&5 | ||
25502 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25503 | |||
25504 | ac_lo= ac_hi= | ||
25505 | fi | ||
25506 | |||
25507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25508 | fi | ||
25509 | |||
25510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25511 | # Binary search between lo and hi bounds. | ||
25512 | while test "x$ac_lo" != "x$ac_hi"; do | ||
25513 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
25514 | cat >conftest.$ac_ext <<_ACEOF | ||
25515 | /* confdefs.h. */ | ||
25516 | _ACEOF | ||
25517 | cat confdefs.h >>conftest.$ac_ext | ||
25518 | cat >>conftest.$ac_ext <<_ACEOF | ||
25519 | /* end confdefs.h. */ | ||
25520 | $ac_includes_default | ||
25521 | typedef long int ac__type_sizeof_; | ||
25522 | int | ||
25523 | main () | ||
25524 | { | ||
25525 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25526 | test_array [0] = 0 | ||
25527 | |||
25528 | ; | ||
25529 | return 0; | ||
25530 | } | ||
25531 | _ACEOF | ||
25532 | rm -f conftest.$ac_objext | ||
25533 | if { (ac_try="$ac_compile" | ||
25534 | case "(($ac_try" in | ||
25535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25536 | *) ac_try_echo=$ac_try;; | ||
25537 | esac | ||
25538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25539 | (eval "$ac_compile") 2>conftest.er1 | ||
25540 | ac_status=$? | ||
25541 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25542 | rm -f conftest.er1 | ||
25543 | cat conftest.err >&5 | ||
25544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25545 | (exit $ac_status); } && { | ||
25546 | test -z "$ac_c_werror_flag" || | ||
25547 | test ! -s conftest.err | ||
25548 | } && test -s conftest.$ac_objext; then | ||
25549 | ac_hi=$ac_mid | ||
25550 | else | ||
25551 | echo "$as_me: failed program was:" >&5 | ||
25552 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25553 | |||
25554 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
25555 | fi | ||
25556 | |||
25557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25558 | done | ||
25559 | case $ac_lo in | ||
25560 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
25561 | '') if test "$ac_cv_type_long_int" = yes; then | ||
25562 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
25563 | See \`config.log' for more details." >&5 | ||
25564 | echo "$as_me: error: cannot compute sizeof (long int) | ||
25565 | See \`config.log' for more details." >&2;} | ||
25566 | { (exit 77); exit 77; }; } | ||
25567 | else | ||
25568 | ac_cv_sizeof_long_int=0 | ||
25569 | fi ;; | ||
25570 | esac | ||
25571 | else | ||
25572 | cat >conftest.$ac_ext <<_ACEOF | ||
25573 | /* confdefs.h. */ | ||
25574 | _ACEOF | ||
25575 | cat confdefs.h >>conftest.$ac_ext | ||
25576 | cat >>conftest.$ac_ext <<_ACEOF | ||
25577 | /* end confdefs.h. */ | ||
25578 | $ac_includes_default | ||
25579 | typedef long int ac__type_sizeof_; | ||
25580 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25581 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25582 | #include <stdio.h> | ||
25583 | #include <stdlib.h> | ||
25584 | int | ||
25585 | main () | ||
25586 | { | ||
25587 | |||
25588 | FILE *f = fopen ("conftest.val", "w"); | ||
25589 | if (! f) | ||
25590 | return 1; | ||
25591 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
25592 | { | ||
25593 | long int i = longval (); | ||
25594 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25595 | return 1; | ||
25596 | fprintf (f, "%ld\n", i); | ||
25597 | } | ||
25598 | else | ||
25599 | { | ||
25600 | unsigned long int i = ulongval (); | ||
25601 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25602 | return 1; | ||
25603 | fprintf (f, "%lu\n", i); | ||
25604 | } | ||
25605 | return ferror (f) || fclose (f) != 0; | ||
25606 | |||
25607 | ; | ||
25608 | return 0; | ||
25609 | } | ||
25610 | _ACEOF | ||
25611 | rm -f conftest$ac_exeext | ||
25612 | if { (ac_try="$ac_link" | ||
25613 | case "(($ac_try" in | ||
25614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25615 | *) ac_try_echo=$ac_try;; | ||
25616 | esac | ||
25617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25618 | (eval "$ac_link") 2>&5 | ||
25619 | ac_status=$? | ||
25620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25621 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
25622 | { (case "(($ac_try" in | ||
25623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25624 | *) ac_try_echo=$ac_try;; | ||
25625 | esac | ||
25626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25627 | (eval "$ac_try") 2>&5 | ||
25628 | ac_status=$? | ||
25629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25630 | (exit $ac_status); }; }; then | ||
25631 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
25632 | else | ||
25633 | echo "$as_me: program exited with status $ac_status" >&5 | ||
25634 | echo "$as_me: failed program was:" >&5 | ||
25635 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25636 | |||
25637 | ( exit $ac_status ) | ||
25638 | if test "$ac_cv_type_long_int" = yes; then | ||
25639 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
25640 | See \`config.log' for more details." >&5 | ||
25641 | echo "$as_me: error: cannot compute sizeof (long int) | ||
25642 | See \`config.log' for more details." >&2;} | ||
25643 | { (exit 77); exit 77; }; } | ||
25644 | else | ||
25645 | ac_cv_sizeof_long_int=0 | ||
25646 | fi | ||
25647 | fi | ||
25648 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
25649 | fi | ||
25650 | rm -f conftest.val | ||
25651 | fi | ||
25652 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
25653 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } | ||
25654 | |||
25655 | |||
25656 | |||
25657 | cat >>confdefs.h <<_ACEOF | ||
25658 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
25659 | _ACEOF | ||
25660 | |||
25661 | |||
25662 | { echo "$as_me:$LINENO: checking for long long int" >&5 | ||
25663 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } | ||
25664 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
25665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25666 | else | ||
25667 | cat >conftest.$ac_ext <<_ACEOF | ||
25668 | /* confdefs.h. */ | ||
25669 | _ACEOF | ||
25670 | cat confdefs.h >>conftest.$ac_ext | ||
25671 | cat >>conftest.$ac_ext <<_ACEOF | ||
25672 | /* end confdefs.h. */ | ||
25673 | $ac_includes_default | ||
25674 | typedef long long int ac__type_new_; | ||
25675 | int | ||
25676 | main () | ||
25677 | { | ||
25678 | if ((ac__type_new_ *) 0) | ||
25679 | return 0; | ||
25680 | if (sizeof (ac__type_new_)) | ||
25681 | return 0; | ||
25682 | ; | ||
25683 | return 0; | ||
25684 | } | ||
25685 | _ACEOF | ||
25686 | rm -f conftest.$ac_objext | ||
25687 | if { (ac_try="$ac_compile" | ||
25688 | case "(($ac_try" in | ||
25689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25690 | *) ac_try_echo=$ac_try;; | ||
25691 | esac | ||
25692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25693 | (eval "$ac_compile") 2>conftest.er1 | ||
25694 | ac_status=$? | ||
25695 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25696 | rm -f conftest.er1 | ||
25697 | cat conftest.err >&5 | ||
25698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25699 | (exit $ac_status); } && { | ||
25700 | test -z "$ac_c_werror_flag" || | ||
25701 | test ! -s conftest.err | ||
25702 | } && test -s conftest.$ac_objext; then | ||
25703 | ac_cv_type_long_long_int=yes | ||
25704 | else | ||
25705 | echo "$as_me: failed program was:" >&5 | ||
25706 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25707 | |||
25708 | ac_cv_type_long_long_int=no | ||
25709 | fi | ||
25710 | |||
25711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25712 | fi | ||
25713 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
25714 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } | ||
25715 | |||
25716 | # The cast to long int works around a bug in the HP C Compiler | ||
25717 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
25718 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
25719 | # This bug is HP SR number 8606223364. | ||
25720 | { echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
25721 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; } | ||
25722 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
25723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25724 | else | ||
25725 | if test "$cross_compiling" = yes; then | ||
25726 | # Depending upon the size, compute the lo and hi bounds. | ||
25727 | cat >conftest.$ac_ext <<_ACEOF | ||
25728 | /* confdefs.h. */ | ||
25729 | _ACEOF | ||
25730 | cat confdefs.h >>conftest.$ac_ext | ||
25731 | cat >>conftest.$ac_ext <<_ACEOF | ||
25732 | /* end confdefs.h. */ | ||
25733 | $ac_includes_default | ||
25734 | typedef long long int ac__type_sizeof_; | ||
25735 | int | ||
25736 | main () | ||
25737 | { | ||
25738 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
25739 | test_array [0] = 0 | ||
25740 | |||
25741 | ; | ||
25742 | return 0; | ||
25743 | } | ||
25744 | _ACEOF | ||
25745 | rm -f conftest.$ac_objext | ||
25746 | if { (ac_try="$ac_compile" | ||
25747 | case "(($ac_try" in | ||
25748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25749 | *) ac_try_echo=$ac_try;; | ||
25750 | esac | ||
25751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25752 | (eval "$ac_compile") 2>conftest.er1 | ||
25753 | ac_status=$? | ||
25754 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25755 | rm -f conftest.er1 | ||
25756 | cat conftest.err >&5 | ||
25757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25758 | (exit $ac_status); } && { | ||
25759 | test -z "$ac_c_werror_flag" || | ||
25760 | test ! -s conftest.err | ||
25761 | } && test -s conftest.$ac_objext; then | ||
25762 | ac_lo=0 ac_mid=0 | ||
25763 | while :; do | ||
25764 | cat >conftest.$ac_ext <<_ACEOF | ||
25765 | /* confdefs.h. */ | ||
25766 | _ACEOF | ||
25767 | cat confdefs.h >>conftest.$ac_ext | ||
25768 | cat >>conftest.$ac_ext <<_ACEOF | ||
25769 | /* end confdefs.h. */ | ||
25770 | $ac_includes_default | ||
25771 | typedef long long int ac__type_sizeof_; | ||
25772 | int | ||
25773 | main () | ||
25774 | { | ||
25775 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25776 | test_array [0] = 0 | ||
25777 | |||
25778 | ; | ||
25779 | return 0; | ||
25780 | } | ||
25781 | _ACEOF | ||
25782 | rm -f conftest.$ac_objext | ||
25783 | if { (ac_try="$ac_compile" | ||
25784 | case "(($ac_try" in | ||
25785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25786 | *) ac_try_echo=$ac_try;; | ||
25787 | esac | ||
25788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25789 | (eval "$ac_compile") 2>conftest.er1 | ||
25790 | ac_status=$? | ||
25791 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25792 | rm -f conftest.er1 | ||
25793 | cat conftest.err >&5 | ||
25794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25795 | (exit $ac_status); } && { | ||
25796 | test -z "$ac_c_werror_flag" || | ||
25797 | test ! -s conftest.err | ||
25798 | } && test -s conftest.$ac_objext; then | ||
25799 | ac_hi=$ac_mid; break | ||
25800 | else | ||
25801 | echo "$as_me: failed program was:" >&5 | ||
25802 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25803 | |||
25804 | ac_lo=`expr $ac_mid + 1` | ||
25805 | if test $ac_lo -le $ac_mid; then | ||
25806 | ac_lo= ac_hi= | ||
25807 | break | ||
25808 | fi | ||
25809 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
25810 | fi | ||
25811 | |||
25812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25813 | done | ||
25814 | else | ||
25815 | echo "$as_me: failed program was:" >&5 | ||
25816 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25817 | |||
25818 | cat >conftest.$ac_ext <<_ACEOF | ||
25819 | /* confdefs.h. */ | ||
25820 | _ACEOF | ||
25821 | cat confdefs.h >>conftest.$ac_ext | ||
25822 | cat >>conftest.$ac_ext <<_ACEOF | ||
25823 | /* end confdefs.h. */ | ||
25824 | $ac_includes_default | ||
25825 | typedef long long int ac__type_sizeof_; | ||
25826 | int | ||
25827 | main () | ||
25828 | { | ||
25829 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
25830 | test_array [0] = 0 | ||
25831 | |||
25832 | ; | ||
25833 | return 0; | ||
25834 | } | ||
25835 | _ACEOF | ||
25836 | rm -f conftest.$ac_objext | ||
25837 | if { (ac_try="$ac_compile" | ||
25838 | case "(($ac_try" in | ||
25839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25840 | *) ac_try_echo=$ac_try;; | ||
25841 | esac | ||
25842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25843 | (eval "$ac_compile") 2>conftest.er1 | ||
25844 | ac_status=$? | ||
25845 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25846 | rm -f conftest.er1 | ||
25847 | cat conftest.err >&5 | ||
25848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25849 | (exit $ac_status); } && { | ||
25850 | test -z "$ac_c_werror_flag" || | ||
25851 | test ! -s conftest.err | ||
25852 | } && test -s conftest.$ac_objext; then | ||
25853 | ac_hi=-1 ac_mid=-1 | ||
25854 | while :; do | ||
25855 | cat >conftest.$ac_ext <<_ACEOF | ||
25856 | /* confdefs.h. */ | ||
25857 | _ACEOF | ||
25858 | cat confdefs.h >>conftest.$ac_ext | ||
25859 | cat >>conftest.$ac_ext <<_ACEOF | ||
25860 | /* end confdefs.h. */ | ||
25861 | $ac_includes_default | ||
25862 | typedef long long int ac__type_sizeof_; | ||
25863 | int | ||
25864 | main () | ||
25865 | { | ||
25866 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
25867 | test_array [0] = 0 | ||
25868 | |||
25869 | ; | ||
25870 | return 0; | ||
25871 | } | ||
25872 | _ACEOF | ||
25873 | rm -f conftest.$ac_objext | ||
25874 | if { (ac_try="$ac_compile" | ||
25875 | case "(($ac_try" in | ||
25876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25877 | *) ac_try_echo=$ac_try;; | ||
25878 | esac | ||
25879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25880 | (eval "$ac_compile") 2>conftest.er1 | ||
25881 | ac_status=$? | ||
25882 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25883 | rm -f conftest.er1 | ||
25884 | cat conftest.err >&5 | ||
25885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25886 | (exit $ac_status); } && { | ||
25887 | test -z "$ac_c_werror_flag" || | ||
25888 | test ! -s conftest.err | ||
25889 | } && test -s conftest.$ac_objext; then | ||
25890 | ac_lo=$ac_mid; break | ||
25891 | else | ||
25892 | echo "$as_me: failed program was:" >&5 | ||
25893 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25894 | |||
25895 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
25896 | if test $ac_mid -le $ac_hi; then | ||
25897 | ac_lo= ac_hi= | ||
25898 | break | ||
25899 | fi | ||
25900 | ac_mid=`expr 2 '*' $ac_mid` | ||
25901 | fi | ||
25902 | |||
25903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25904 | done | ||
25905 | else | ||
25906 | echo "$as_me: failed program was:" >&5 | ||
25907 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25908 | |||
25909 | ac_lo= ac_hi= | ||
25910 | fi | ||
25911 | |||
25912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25913 | fi | ||
25914 | |||
25915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25916 | # Binary search between lo and hi bounds. | ||
25917 | while test "x$ac_lo" != "x$ac_hi"; do | ||
25918 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
25919 | cat >conftest.$ac_ext <<_ACEOF | ||
25920 | /* confdefs.h. */ | ||
25921 | _ACEOF | ||
25922 | cat confdefs.h >>conftest.$ac_ext | ||
25923 | cat >>conftest.$ac_ext <<_ACEOF | ||
25924 | /* end confdefs.h. */ | ||
25925 | $ac_includes_default | ||
25926 | typedef long long int ac__type_sizeof_; | ||
25927 | int | ||
25928 | main () | ||
25929 | { | ||
25930 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25931 | test_array [0] = 0 | ||
25932 | |||
25933 | ; | ||
25934 | return 0; | ||
25935 | } | ||
25936 | _ACEOF | ||
25937 | rm -f conftest.$ac_objext | ||
25938 | if { (ac_try="$ac_compile" | ||
25939 | case "(($ac_try" in | ||
25940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25941 | *) ac_try_echo=$ac_try;; | ||
25942 | esac | ||
25943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25944 | (eval "$ac_compile") 2>conftest.er1 | ||
25945 | ac_status=$? | ||
25946 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25947 | rm -f conftest.er1 | ||
25948 | cat conftest.err >&5 | ||
25949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25950 | (exit $ac_status); } && { | ||
25951 | test -z "$ac_c_werror_flag" || | ||
25952 | test ! -s conftest.err | ||
25953 | } && test -s conftest.$ac_objext; then | ||
25954 | ac_hi=$ac_mid | ||
25955 | else | ||
25956 | echo "$as_me: failed program was:" >&5 | ||
25957 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25958 | |||
25959 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
25960 | fi | ||
25961 | |||
25962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25963 | done | ||
25964 | case $ac_lo in | ||
25965 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
25966 | '') if test "$ac_cv_type_long_long_int" = yes; then | ||
25967 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
25968 | See \`config.log' for more details." >&5 | ||
25969 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
25970 | See \`config.log' for more details." >&2;} | ||
25971 | { (exit 77); exit 77; }; } | ||
25972 | else | ||
25973 | ac_cv_sizeof_long_long_int=0 | ||
25974 | fi ;; | ||
25975 | esac | ||
25976 | else | ||
25977 | cat >conftest.$ac_ext <<_ACEOF | ||
25978 | /* confdefs.h. */ | ||
25979 | _ACEOF | ||
25980 | cat confdefs.h >>conftest.$ac_ext | ||
25981 | cat >>conftest.$ac_ext <<_ACEOF | ||
25982 | /* end confdefs.h. */ | ||
25983 | $ac_includes_default | ||
25984 | typedef long long int ac__type_sizeof_; | ||
25985 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25986 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25987 | #include <stdio.h> | ||
25988 | #include <stdlib.h> | ||
25989 | int | ||
25990 | main () | ||
25991 | { | ||
25992 | |||
25993 | FILE *f = fopen ("conftest.val", "w"); | ||
25994 | if (! f) | ||
25995 | return 1; | ||
25996 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
25997 | { | ||
25998 | long int i = longval (); | ||
25999 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
26000 | return 1; | ||
26001 | fprintf (f, "%ld\n", i); | ||
26002 | } | ||
26003 | else | ||
26004 | { | ||
26005 | unsigned long int i = ulongval (); | ||
26006 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
26007 | return 1; | ||
26008 | fprintf (f, "%lu\n", i); | ||
26009 | } | ||
26010 | return ferror (f) || fclose (f) != 0; | ||
26011 | |||
26012 | ; | ||
26013 | return 0; | ||
26014 | } | ||
26015 | _ACEOF | ||
26016 | rm -f conftest$ac_exeext | ||
26017 | if { (ac_try="$ac_link" | ||
26018 | case "(($ac_try" in | ||
26019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26020 | *) ac_try_echo=$ac_try;; | ||
26021 | esac | ||
26022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26023 | (eval "$ac_link") 2>&5 | ||
26024 | ac_status=$? | ||
26025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26026 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
26027 | { (case "(($ac_try" in | ||
26028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26029 | *) ac_try_echo=$ac_try;; | ||
26030 | esac | ||
26031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26032 | (eval "$ac_try") 2>&5 | ||
26033 | ac_status=$? | ||
26034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26035 | (exit $ac_status); }; }; then | ||
26036 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
26037 | else | ||
26038 | echo "$as_me: program exited with status $ac_status" >&5 | ||
26039 | echo "$as_me: failed program was:" >&5 | ||
26040 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26041 | |||
26042 | ( exit $ac_status ) | ||
26043 | if test "$ac_cv_type_long_long_int" = yes; then | ||
26044 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
26045 | See \`config.log' for more details." >&5 | ||
26046 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
26047 | See \`config.log' for more details." >&2;} | ||
26048 | { (exit 77); exit 77; }; } | ||
26049 | else | ||
26050 | ac_cv_sizeof_long_long_int=0 | ||
26051 | fi | ||
26052 | fi | ||
26053 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
26054 | fi | ||
26055 | rm -f conftest.val | ||
26056 | fi | ||
26057 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
26058 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; } | ||
26059 | |||
26060 | |||
26061 | |||
26062 | cat >>confdefs.h <<_ACEOF | ||
26063 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
26064 | _ACEOF | ||
26065 | |||
26066 | |||
26067 | |||
26068 | # Sanity check long long for some platforms (AIX) | ||
26069 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
26070 | ac_cv_sizeof_long_long_int=0 | ||
26071 | fi | ||
26072 | |||
26073 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
26074 | if test -z "$have_llong_max"; then | ||
26075 | { echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
26076 | echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; } | ||
26077 | if test "$cross_compiling" = yes; then | ||
26078 | |||
26079 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
26080 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
26081 | |||
26082 | |||
26083 | else | ||
26084 | cat >conftest.$ac_ext <<_ACEOF | ||
26085 | /* confdefs.h. */ | ||
26086 | _ACEOF | ||
26087 | cat confdefs.h >>conftest.$ac_ext | ||
26088 | cat >>conftest.$ac_ext <<_ACEOF | ||
26089 | /* end confdefs.h. */ | ||
26090 | |||
26091 | #include <stdio.h> | ||
26092 | /* Why is this so damn hard? */ | ||
26093 | #ifdef __GNUC__ | ||
26094 | # undef __GNUC__ | ||
26095 | #endif | ||
26096 | #define __USE_ISOC99 | ||
26097 | #include <limits.h> | ||
26098 | #define DATA "conftest.llminmax" | ||
26099 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
26100 | |||
26101 | /* | ||
26102 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
26103 | * we do this the hard way. | ||
26104 | */ | ||
26105 | static int | ||
26106 | fprint_ll(FILE *f, long long n) | ||
26107 | { | ||
26108 | unsigned int i; | ||
26109 | int l[sizeof(long long) * 8]; | ||
26110 | |||
26111 | if (n < 0) | ||
26112 | if (fprintf(f, "-") < 0) | ||
26113 | return -1; | ||
26114 | for (i = 0; n != 0; i++) { | ||
26115 | l[i] = my_abs(n % 10); | ||
26116 | n /= 10; | ||
26117 | } | ||
26118 | do { | ||
26119 | if (fprintf(f, "%d", l[--i]) < 0) | ||
26120 | return -1; | ||
26121 | } while (i != 0); | ||
26122 | if (fprintf(f, " ") < 0) | ||
26123 | return -1; | ||
26124 | return 0; | ||
26125 | } | ||
26126 | |||
26127 | int | ||
26128 | main () | ||
26129 | { | ||
26130 | |||
26131 | FILE *f; | ||
26132 | long long i, llmin, llmax = 0; | ||
26133 | |||
26134 | if((f = fopen(DATA,"w")) == NULL) | ||
26135 | exit(1); | ||
26136 | |||
26137 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
26138 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
26139 | llmin = LLONG_MIN; | ||
26140 | llmax = LLONG_MAX; | ||
26141 | #else | ||
26142 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
26143 | /* This will work on one's complement and two's complement */ | ||
26144 | for (i = 1; i > llmax; i <<= 1, i++) | ||
26145 | llmax = i; | ||
26146 | llmin = llmax + 1LL; /* wrap */ | ||
26147 | #endif | ||
26148 | |||
26149 | /* Sanity check */ | ||
26150 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
26151 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
26152 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
26153 | fprintf(f, "unknown unknown\n"); | ||
26154 | exit(2); | ||
26155 | } | ||
26156 | |||
26157 | if (fprint_ll(f, llmin) < 0) | ||
26158 | exit(3); | ||
26159 | if (fprint_ll(f, llmax) < 0) | ||
26160 | exit(4); | ||
26161 | if (fclose(f) < 0) | ||
26162 | exit(5); | ||
26163 | exit(0); | ||
26164 | |||
26165 | ; | ||
26166 | return 0; | ||
26167 | } | ||
26168 | _ACEOF | ||
26169 | rm -f conftest$ac_exeext | ||
26170 | if { (ac_try="$ac_link" | ||
26171 | case "(($ac_try" in | ||
26172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26173 | *) ac_try_echo=$ac_try;; | ||
26174 | esac | ||
26175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26176 | (eval "$ac_link") 2>&5 | ||
26177 | ac_status=$? | ||
26178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
26180 | { (case "(($ac_try" in | ||
26181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26182 | *) ac_try_echo=$ac_try;; | ||
26183 | esac | ||
26184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26185 | (eval "$ac_try") 2>&5 | ||
26186 | ac_status=$? | ||
26187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26188 | (exit $ac_status); }; }; then | ||
26189 | |||
26190 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
26191 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
26192 | |||
26193 | { echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
26194 | echo "${ECHO_T}$llong_max" >&6; } | ||
26195 | |||
26196 | cat >>confdefs.h <<_ACEOF | ||
26197 | #define LLONG_MAX ${llong_max}LL | ||
26198 | _ACEOF | ||
26199 | |||
26200 | { echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
26201 | echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; } | ||
26202 | { echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
26203 | echo "${ECHO_T}$llong_min" >&6; } | ||
26204 | |||
26205 | cat >>confdefs.h <<_ACEOF | ||
26206 | #define LLONG_MIN ${llong_min}LL | ||
26207 | _ACEOF | ||
26208 | |||
26209 | |||
26210 | else | ||
26211 | echo "$as_me: program exited with status $ac_status" >&5 | ||
26212 | echo "$as_me: failed program was:" >&5 | ||
26213 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26214 | |||
26215 | ( exit $ac_status ) | ||
26216 | |||
26217 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
26218 | echo "${ECHO_T}not found" >&6; } | ||
26219 | |||
26220 | fi | ||
26221 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
26222 | fi | ||
26223 | |||
26224 | |||
26225 | fi | ||
26226 | |||
26227 | |||
26228 | # More checks for data types | ||
26229 | { echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
26230 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; } | ||
26231 | if test "${ac_cv_have_u_int+set}" = set; then | ||
26232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26233 | else | ||
26234 | |||
26235 | cat >conftest.$ac_ext <<_ACEOF | ||
26236 | /* confdefs.h. */ | ||
26237 | _ACEOF | ||
26238 | cat confdefs.h >>conftest.$ac_ext | ||
26239 | cat >>conftest.$ac_ext <<_ACEOF | ||
26240 | /* end confdefs.h. */ | ||
26241 | #include <sys/types.h> | ||
26242 | int | ||
26243 | main () | ||
26244 | { | ||
26245 | u_int a; a = 1; | ||
26246 | ; | ||
26247 | return 0; | ||
26248 | } | ||
26249 | _ACEOF | ||
26250 | rm -f conftest.$ac_objext | ||
26251 | if { (ac_try="$ac_compile" | ||
26252 | case "(($ac_try" in | ||
26253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26254 | *) ac_try_echo=$ac_try;; | ||
26255 | esac | ||
26256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26257 | (eval "$ac_compile") 2>conftest.er1 | ||
26258 | ac_status=$? | ||
26259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26260 | rm -f conftest.er1 | ||
26261 | cat conftest.err >&5 | ||
26262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26263 | (exit $ac_status); } && { | ||
26264 | test -z "$ac_c_werror_flag" || | ||
26265 | test ! -s conftest.err | ||
26266 | } && test -s conftest.$ac_objext; then | ||
26267 | ac_cv_have_u_int="yes" | ||
26268 | else | ||
26269 | echo "$as_me: failed program was:" >&5 | ||
26270 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26271 | |||
26272 | ac_cv_have_u_int="no" | ||
26273 | |||
26274 | fi | ||
26275 | |||
26276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26277 | |||
26278 | fi | ||
26279 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
26280 | echo "${ECHO_T}$ac_cv_have_u_int" >&6; } | ||
26281 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
26282 | |||
26283 | cat >>confdefs.h <<\_ACEOF | ||
26284 | #define HAVE_U_INT 1 | ||
26285 | _ACEOF | ||
26286 | |||
26287 | have_u_int=1 | ||
26288 | fi | ||
26289 | |||
26290 | { echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
26291 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; } | ||
26292 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
26293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26294 | else | ||
26295 | |||
26296 | cat >conftest.$ac_ext <<_ACEOF | ||
26297 | /* confdefs.h. */ | ||
26298 | _ACEOF | ||
26299 | cat confdefs.h >>conftest.$ac_ext | ||
26300 | cat >>conftest.$ac_ext <<_ACEOF | ||
26301 | /* end confdefs.h. */ | ||
26302 | #include <sys/types.h> | ||
26303 | int | ||
26304 | main () | ||
26305 | { | ||
26306 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
26307 | ; | ||
26308 | return 0; | ||
26309 | } | ||
26310 | _ACEOF | ||
26311 | rm -f conftest.$ac_objext | ||
26312 | if { (ac_try="$ac_compile" | ||
26313 | case "(($ac_try" in | ||
26314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26315 | *) ac_try_echo=$ac_try;; | ||
26316 | esac | ||
26317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26318 | (eval "$ac_compile") 2>conftest.er1 | ||
26319 | ac_status=$? | ||
26320 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26321 | rm -f conftest.er1 | ||
26322 | cat conftest.err >&5 | ||
26323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26324 | (exit $ac_status); } && { | ||
26325 | test -z "$ac_c_werror_flag" || | ||
26326 | test ! -s conftest.err | ||
26327 | } && test -s conftest.$ac_objext; then | ||
26328 | ac_cv_have_intxx_t="yes" | ||
26329 | else | ||
26330 | echo "$as_me: failed program was:" >&5 | ||
26331 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26332 | |||
26333 | ac_cv_have_intxx_t="no" | ||
26334 | |||
26335 | fi | ||
26336 | |||
26337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26338 | |||
26339 | fi | ||
26340 | { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
26341 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; } | ||
26342 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
26343 | |||
26344 | cat >>confdefs.h <<\_ACEOF | ||
26345 | #define HAVE_INTXX_T 1 | ||
26346 | _ACEOF | ||
26347 | |||
26348 | have_intxx_t=1 | ||
26349 | fi | ||
26350 | |||
26351 | if (test -z "$have_intxx_t" && \ | ||
26352 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
26353 | then | ||
26354 | { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
26355 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; } | ||
26356 | cat >conftest.$ac_ext <<_ACEOF | ||
26357 | /* confdefs.h. */ | ||
26358 | _ACEOF | ||
26359 | cat confdefs.h >>conftest.$ac_ext | ||
26360 | cat >>conftest.$ac_ext <<_ACEOF | ||
26361 | /* end confdefs.h. */ | ||
26362 | #include <stdint.h> | ||
26363 | int | ||
26364 | main () | ||
26365 | { | ||
26366 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
26367 | ; | ||
26368 | return 0; | ||
26369 | } | ||
26370 | _ACEOF | ||
26371 | rm -f conftest.$ac_objext | ||
26372 | if { (ac_try="$ac_compile" | ||
26373 | case "(($ac_try" in | ||
26374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26375 | *) ac_try_echo=$ac_try;; | ||
26376 | esac | ||
26377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26378 | (eval "$ac_compile") 2>conftest.er1 | ||
26379 | ac_status=$? | ||
26380 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26381 | rm -f conftest.er1 | ||
26382 | cat conftest.err >&5 | ||
26383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26384 | (exit $ac_status); } && { | ||
26385 | test -z "$ac_c_werror_flag" || | ||
26386 | test ! -s conftest.err | ||
26387 | } && test -s conftest.$ac_objext; then | ||
26388 | |||
26389 | cat >>confdefs.h <<\_ACEOF | ||
26390 | #define HAVE_INTXX_T 1 | ||
26391 | _ACEOF | ||
26392 | |||
26393 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26394 | echo "${ECHO_T}yes" >&6; } | ||
26395 | |||
26396 | else | ||
26397 | echo "$as_me: failed program was:" >&5 | ||
26398 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26399 | |||
26400 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26401 | echo "${ECHO_T}no" >&6; } | ||
26402 | |||
26403 | fi | ||
26404 | |||
26405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26406 | fi | ||
26407 | |||
26408 | { echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
26409 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; } | ||
26410 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
26411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26412 | else | ||
26413 | |||
26414 | cat >conftest.$ac_ext <<_ACEOF | ||
26415 | /* confdefs.h. */ | ||
26416 | _ACEOF | ||
26417 | cat confdefs.h >>conftest.$ac_ext | ||
26418 | cat >>conftest.$ac_ext <<_ACEOF | ||
26419 | /* end confdefs.h. */ | ||
26420 | |||
26421 | #include <sys/types.h> | ||
26422 | #ifdef HAVE_STDINT_H | ||
26423 | # include <stdint.h> | ||
26424 | #endif | ||
26425 | #include <sys/socket.h> | ||
26426 | #ifdef HAVE_SYS_BITYPES_H | ||
26427 | # include <sys/bitypes.h> | ||
26428 | #endif | ||
26429 | |||
26430 | int | ||
26431 | main () | ||
26432 | { | ||
26433 | |||
26434 | int64_t a; a = 1; | ||
26435 | |||
26436 | ; | ||
26437 | return 0; | ||
26438 | } | ||
26439 | _ACEOF | ||
26440 | rm -f conftest.$ac_objext | ||
26441 | if { (ac_try="$ac_compile" | ||
26442 | case "(($ac_try" in | ||
26443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26444 | *) ac_try_echo=$ac_try;; | ||
26445 | esac | ||
26446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26447 | (eval "$ac_compile") 2>conftest.er1 | ||
26448 | ac_status=$? | ||
26449 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26450 | rm -f conftest.er1 | ||
26451 | cat conftest.err >&5 | ||
26452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26453 | (exit $ac_status); } && { | ||
26454 | test -z "$ac_c_werror_flag" || | ||
26455 | test ! -s conftest.err | ||
26456 | } && test -s conftest.$ac_objext; then | ||
26457 | ac_cv_have_int64_t="yes" | ||
26458 | else | ||
26459 | echo "$as_me: failed program was:" >&5 | ||
26460 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26461 | |||
26462 | ac_cv_have_int64_t="no" | ||
26463 | |||
26464 | fi | ||
26465 | |||
26466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26467 | |||
26468 | fi | ||
26469 | { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
26470 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6; } | ||
26471 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
26472 | |||
26473 | cat >>confdefs.h <<\_ACEOF | ||
26474 | #define HAVE_INT64_T 1 | ||
26475 | _ACEOF | ||
26476 | |||
26477 | fi | ||
26478 | |||
26479 | { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
26480 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; } | ||
26481 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
26482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26483 | else | ||
26484 | |||
26485 | cat >conftest.$ac_ext <<_ACEOF | ||
26486 | /* confdefs.h. */ | ||
26487 | _ACEOF | ||
26488 | cat confdefs.h >>conftest.$ac_ext | ||
26489 | cat >>conftest.$ac_ext <<_ACEOF | ||
26490 | /* end confdefs.h. */ | ||
26491 | #include <sys/types.h> | ||
26492 | int | ||
26493 | main () | ||
26494 | { | ||
26495 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
26496 | ; | ||
26497 | return 0; | ||
26498 | } | ||
26499 | _ACEOF | ||
26500 | rm -f conftest.$ac_objext | ||
26501 | if { (ac_try="$ac_compile" | ||
26502 | case "(($ac_try" in | ||
26503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26504 | *) ac_try_echo=$ac_try;; | ||
26505 | esac | ||
26506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26507 | (eval "$ac_compile") 2>conftest.er1 | ||
26508 | ac_status=$? | ||
26509 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26510 | rm -f conftest.er1 | ||
26511 | cat conftest.err >&5 | ||
26512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26513 | (exit $ac_status); } && { | ||
26514 | test -z "$ac_c_werror_flag" || | ||
26515 | test ! -s conftest.err | ||
26516 | } && test -s conftest.$ac_objext; then | ||
26517 | ac_cv_have_u_intxx_t="yes" | ||
26518 | else | ||
26519 | echo "$as_me: failed program was:" >&5 | ||
26520 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26521 | |||
26522 | ac_cv_have_u_intxx_t="no" | ||
26523 | |||
26524 | fi | ||
26525 | |||
26526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26527 | |||
26528 | fi | ||
26529 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
26530 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; } | ||
26531 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
26532 | |||
26533 | cat >>confdefs.h <<\_ACEOF | ||
26534 | #define HAVE_U_INTXX_T 1 | ||
26535 | _ACEOF | ||
26536 | |||
26537 | have_u_intxx_t=1 | ||
26538 | fi | ||
26539 | |||
26540 | if test -z "$have_u_intxx_t" ; then | ||
26541 | { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
26542 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; } | ||
26543 | cat >conftest.$ac_ext <<_ACEOF | ||
26544 | /* confdefs.h. */ | ||
26545 | _ACEOF | ||
26546 | cat confdefs.h >>conftest.$ac_ext | ||
26547 | cat >>conftest.$ac_ext <<_ACEOF | ||
26548 | /* end confdefs.h. */ | ||
26549 | #include <sys/socket.h> | ||
26550 | int | ||
26551 | main () | ||
26552 | { | ||
26553 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
26554 | ; | ||
26555 | return 0; | ||
26556 | } | ||
26557 | _ACEOF | ||
26558 | rm -f conftest.$ac_objext | ||
26559 | if { (ac_try="$ac_compile" | ||
26560 | case "(($ac_try" in | ||
26561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26562 | *) ac_try_echo=$ac_try;; | ||
26563 | esac | ||
26564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26565 | (eval "$ac_compile") 2>conftest.er1 | ||
26566 | ac_status=$? | ||
26567 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26568 | rm -f conftest.er1 | ||
26569 | cat conftest.err >&5 | ||
26570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26571 | (exit $ac_status); } && { | ||
26572 | test -z "$ac_c_werror_flag" || | ||
26573 | test ! -s conftest.err | ||
26574 | } && test -s conftest.$ac_objext; then | ||
26575 | |||
26576 | cat >>confdefs.h <<\_ACEOF | ||
26577 | #define HAVE_U_INTXX_T 1 | ||
26578 | _ACEOF | ||
26579 | |||
26580 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26581 | echo "${ECHO_T}yes" >&6; } | ||
26582 | |||
26583 | else | ||
26584 | echo "$as_me: failed program was:" >&5 | ||
26585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26586 | |||
26587 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26588 | echo "${ECHO_T}no" >&6; } | ||
26589 | |||
26590 | fi | ||
26591 | |||
26592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26593 | fi | ||
26594 | |||
26595 | { echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
26596 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; } | ||
26597 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
26598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26599 | else | ||
26600 | |||
26601 | cat >conftest.$ac_ext <<_ACEOF | ||
26602 | /* confdefs.h. */ | ||
26603 | _ACEOF | ||
26604 | cat confdefs.h >>conftest.$ac_ext | ||
26605 | cat >>conftest.$ac_ext <<_ACEOF | ||
26606 | /* end confdefs.h. */ | ||
26607 | #include <sys/types.h> | ||
26608 | int | ||
26609 | main () | ||
26610 | { | ||
26611 | u_int64_t a; a = 1; | ||
26612 | ; | ||
26613 | return 0; | ||
26614 | } | ||
26615 | _ACEOF | ||
26616 | rm -f conftest.$ac_objext | ||
26617 | if { (ac_try="$ac_compile" | ||
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_compile") 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); } && { | ||
26630 | test -z "$ac_c_werror_flag" || | ||
26631 | test ! -s conftest.err | ||
26632 | } && test -s conftest.$ac_objext; then | ||
26633 | ac_cv_have_u_int64_t="yes" | ||
26634 | else | ||
26635 | echo "$as_me: failed program was:" >&5 | ||
26636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26637 | |||
26638 | ac_cv_have_u_int64_t="no" | ||
26639 | |||
26640 | fi | ||
26641 | |||
26642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26643 | |||
26644 | fi | ||
26645 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
26646 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; } | ||
26647 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
26648 | |||
26649 | cat >>confdefs.h <<\_ACEOF | ||
26650 | #define HAVE_U_INT64_T 1 | ||
26651 | _ACEOF | ||
26652 | |||
26653 | have_u_int64_t=1 | ||
26654 | fi | ||
26655 | |||
26656 | if (test -z "$have_u_int64_t" && \ | ||
26657 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
26658 | then | ||
26659 | { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
26660 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; } | ||
26661 | cat >conftest.$ac_ext <<_ACEOF | ||
26662 | /* confdefs.h. */ | ||
26663 | _ACEOF | ||
26664 | cat confdefs.h >>conftest.$ac_ext | ||
26665 | cat >>conftest.$ac_ext <<_ACEOF | ||
26666 | /* end confdefs.h. */ | ||
26667 | #include <sys/bitypes.h> | ||
26668 | int | ||
26669 | main () | ||
26670 | { | ||
26671 | u_int64_t a; a = 1 | ||
26672 | ; | ||
26673 | return 0; | ||
26674 | } | ||
26675 | _ACEOF | ||
26676 | rm -f conftest.$ac_objext | ||
26677 | if { (ac_try="$ac_compile" | ||
26678 | case "(($ac_try" in | ||
26679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26680 | *) ac_try_echo=$ac_try;; | ||
26681 | esac | ||
26682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26683 | (eval "$ac_compile") 2>conftest.er1 | ||
26684 | ac_status=$? | ||
26685 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26686 | rm -f conftest.er1 | ||
26687 | cat conftest.err >&5 | ||
26688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26689 | (exit $ac_status); } && { | ||
26690 | test -z "$ac_c_werror_flag" || | ||
26691 | test ! -s conftest.err | ||
26692 | } && test -s conftest.$ac_objext; then | ||
26693 | |||
26694 | cat >>confdefs.h <<\_ACEOF | ||
26695 | #define HAVE_U_INT64_T 1 | ||
26696 | _ACEOF | ||
26697 | |||
26698 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26699 | echo "${ECHO_T}yes" >&6; } | ||
26700 | |||
26701 | else | ||
26702 | echo "$as_me: failed program was:" >&5 | ||
26703 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26704 | |||
26705 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26706 | echo "${ECHO_T}no" >&6; } | ||
26707 | |||
26708 | fi | ||
26709 | |||
26710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26711 | fi | ||
26712 | |||
26713 | if test -z "$have_u_intxx_t" ; then | ||
26714 | { echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
26715 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; } | ||
26716 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
26717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26718 | else | ||
26719 | |||
26720 | cat >conftest.$ac_ext <<_ACEOF | ||
26721 | /* confdefs.h. */ | ||
26722 | _ACEOF | ||
26723 | cat confdefs.h >>conftest.$ac_ext | ||
26724 | cat >>conftest.$ac_ext <<_ACEOF | ||
26725 | /* end confdefs.h. */ | ||
26726 | |||
26727 | #include <sys/types.h> | ||
26728 | |||
26729 | int | ||
26730 | main () | ||
26731 | { | ||
26732 | |||
26733 | uint8_t a; | ||
26734 | uint16_t b; | ||
26735 | uint32_t c; | ||
26736 | a = b = c = 1; | ||
26737 | |||
26738 | ; | ||
26739 | return 0; | ||
26740 | } | ||
26741 | _ACEOF | ||
26742 | rm -f conftest.$ac_objext | ||
26743 | if { (ac_try="$ac_compile" | ||
26744 | case "(($ac_try" in | ||
26745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26746 | *) ac_try_echo=$ac_try;; | ||
26747 | esac | ||
26748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26749 | (eval "$ac_compile") 2>conftest.er1 | ||
26750 | ac_status=$? | ||
26751 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26752 | rm -f conftest.er1 | ||
26753 | cat conftest.err >&5 | ||
26754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26755 | (exit $ac_status); } && { | ||
26756 | test -z "$ac_c_werror_flag" || | ||
26757 | test ! -s conftest.err | ||
26758 | } && test -s conftest.$ac_objext; then | ||
26759 | ac_cv_have_uintxx_t="yes" | ||
26760 | else | ||
26761 | echo "$as_me: failed program was:" >&5 | ||
26762 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26763 | |||
26764 | ac_cv_have_uintxx_t="no" | ||
26765 | |||
26766 | fi | ||
26767 | |||
26768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26769 | |||
26770 | fi | ||
26771 | { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
26772 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; } | ||
26773 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
26774 | |||
26775 | cat >>confdefs.h <<\_ACEOF | ||
26776 | #define HAVE_UINTXX_T 1 | ||
26777 | _ACEOF | ||
26778 | |||
26779 | fi | ||
26780 | fi | ||
26781 | |||
26782 | if (test -z "$have_uintxx_t" && \ | ||
26783 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
26784 | then | ||
26785 | { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
26786 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; } | ||
26787 | cat >conftest.$ac_ext <<_ACEOF | ||
26788 | /* confdefs.h. */ | ||
26789 | _ACEOF | ||
26790 | cat confdefs.h >>conftest.$ac_ext | ||
26791 | cat >>conftest.$ac_ext <<_ACEOF | ||
26792 | /* end confdefs.h. */ | ||
26793 | #include <stdint.h> | ||
26794 | int | ||
26795 | main () | ||
26796 | { | ||
26797 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
26798 | ; | ||
26799 | return 0; | ||
26800 | } | ||
26801 | _ACEOF | ||
26802 | rm -f conftest.$ac_objext | ||
26803 | if { (ac_try="$ac_compile" | ||
26804 | case "(($ac_try" in | ||
26805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26806 | *) ac_try_echo=$ac_try;; | ||
26807 | esac | ||
26808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26809 | (eval "$ac_compile") 2>conftest.er1 | ||
26810 | ac_status=$? | ||
26811 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26812 | rm -f conftest.er1 | ||
26813 | cat conftest.err >&5 | ||
26814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26815 | (exit $ac_status); } && { | ||
26816 | test -z "$ac_c_werror_flag" || | ||
26817 | test ! -s conftest.err | ||
26818 | } && test -s conftest.$ac_objext; then | ||
26819 | |||
26820 | cat >>confdefs.h <<\_ACEOF | ||
26821 | #define HAVE_UINTXX_T 1 | ||
26822 | _ACEOF | ||
26823 | |||
26824 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26825 | echo "${ECHO_T}yes" >&6; } | ||
26826 | |||
26827 | else | ||
26828 | echo "$as_me: failed program was:" >&5 | ||
26829 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26830 | |||
26831 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26832 | echo "${ECHO_T}no" >&6; } | ||
26833 | |||
26834 | fi | ||
26835 | |||
26836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26837 | fi | ||
26838 | |||
26839 | if (test -z "$have_uintxx_t" && \ | ||
26840 | test "x$ac_cv_header_inttypes_h" = "xyes") | ||
26841 | then | ||
26842 | { echo "$as_me:$LINENO: checking for uintXX_t types in inttypes.h" >&5 | ||
26843 | echo $ECHO_N "checking for uintXX_t types in inttypes.h... $ECHO_C" >&6; } | ||
26844 | cat >conftest.$ac_ext <<_ACEOF | ||
26845 | /* confdefs.h. */ | ||
26846 | _ACEOF | ||
26847 | cat confdefs.h >>conftest.$ac_ext | ||
26848 | cat >>conftest.$ac_ext <<_ACEOF | ||
26849 | /* end confdefs.h. */ | ||
26850 | #include <inttypes.h> | ||
26851 | int | ||
26852 | main () | ||
26853 | { | ||
26854 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
26855 | ; | ||
26856 | return 0; | ||
26857 | } | ||
26858 | _ACEOF | ||
26859 | rm -f conftest.$ac_objext | ||
26860 | if { (ac_try="$ac_compile" | ||
26861 | case "(($ac_try" in | ||
26862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26863 | *) ac_try_echo=$ac_try;; | ||
26864 | esac | ||
26865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26866 | (eval "$ac_compile") 2>conftest.er1 | ||
26867 | ac_status=$? | ||
26868 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26869 | rm -f conftest.er1 | ||
26870 | cat conftest.err >&5 | ||
26871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26872 | (exit $ac_status); } && { | ||
26873 | test -z "$ac_c_werror_flag" || | ||
26874 | test ! -s conftest.err | ||
26875 | } && test -s conftest.$ac_objext; then | ||
26876 | |||
26877 | cat >>confdefs.h <<\_ACEOF | ||
26878 | #define HAVE_UINTXX_T 1 | ||
26879 | _ACEOF | ||
26880 | |||
26881 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26882 | echo "${ECHO_T}yes" >&6; } | ||
26883 | |||
26884 | else | ||
26885 | echo "$as_me: failed program was:" >&5 | ||
26886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26887 | |||
26888 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26889 | echo "${ECHO_T}no" >&6; } | ||
26890 | |||
26891 | fi | ||
26892 | |||
26893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26894 | fi | ||
26895 | |||
26896 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
26897 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
26898 | then | ||
26899 | { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
26900 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; } | ||
26901 | cat >conftest.$ac_ext <<_ACEOF | ||
26902 | /* confdefs.h. */ | ||
26903 | _ACEOF | ||
26904 | cat confdefs.h >>conftest.$ac_ext | ||
26905 | cat >>conftest.$ac_ext <<_ACEOF | ||
26906 | /* end confdefs.h. */ | ||
26907 | |||
26908 | #include <sys/bitypes.h> | ||
26909 | |||
26910 | int | ||
26911 | main () | ||
26912 | { | ||
26913 | |||
26914 | int8_t a; int16_t b; int32_t c; | ||
26915 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
26916 | a = b = c = e = f = g = 1; | ||
26917 | |||
26918 | ; | ||
26919 | return 0; | ||
26920 | } | ||
26921 | _ACEOF | ||
26922 | rm -f conftest.$ac_objext | ||
26923 | if { (ac_try="$ac_compile" | ||
26924 | case "(($ac_try" in | ||
26925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26926 | *) ac_try_echo=$ac_try;; | ||
26927 | esac | ||
26928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26929 | (eval "$ac_compile") 2>conftest.er1 | ||
26930 | ac_status=$? | ||
26931 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26932 | rm -f conftest.er1 | ||
26933 | cat conftest.err >&5 | ||
26934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26935 | (exit $ac_status); } && { | ||
26936 | test -z "$ac_c_werror_flag" || | ||
26937 | test ! -s conftest.err | ||
26938 | } && test -s conftest.$ac_objext; then | ||
26939 | |||
26940 | cat >>confdefs.h <<\_ACEOF | ||
26941 | #define HAVE_U_INTXX_T 1 | ||
26942 | _ACEOF | ||
26943 | |||
26944 | cat >>confdefs.h <<\_ACEOF | ||
26945 | #define HAVE_INTXX_T 1 | ||
26946 | _ACEOF | ||
26947 | |||
26948 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26949 | echo "${ECHO_T}yes" >&6; } | ||
26950 | |||
26951 | else | ||
26952 | echo "$as_me: failed program was:" >&5 | ||
26953 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26954 | |||
26955 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26956 | echo "${ECHO_T}no" >&6; } | ||
26957 | |||
26958 | fi | ||
26959 | |||
26960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26961 | fi | ||
26962 | |||
26963 | |||
26964 | { echo "$as_me:$LINENO: checking for u_char" >&5 | ||
26965 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6; } | ||
26966 | if test "${ac_cv_have_u_char+set}" = set; then | ||
26967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26968 | else | ||
26969 | |||
26970 | cat >conftest.$ac_ext <<_ACEOF | ||
26971 | /* confdefs.h. */ | ||
26972 | _ACEOF | ||
26973 | cat confdefs.h >>conftest.$ac_ext | ||
26974 | cat >>conftest.$ac_ext <<_ACEOF | ||
26975 | /* end confdefs.h. */ | ||
26976 | #include <sys/types.h> | ||
26977 | int | ||
26978 | main () | ||
26979 | { | ||
26980 | u_char foo; foo = 125; | ||
26981 | ; | ||
26982 | return 0; | ||
26983 | } | ||
26984 | _ACEOF | ||
26985 | rm -f conftest.$ac_objext | ||
26986 | if { (ac_try="$ac_compile" | ||
26987 | case "(($ac_try" in | ||
26988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26989 | *) ac_try_echo=$ac_try;; | ||
26990 | esac | ||
26991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26992 | (eval "$ac_compile") 2>conftest.er1 | ||
26993 | ac_status=$? | ||
26994 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26995 | rm -f conftest.er1 | ||
26996 | cat conftest.err >&5 | ||
26997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26998 | (exit $ac_status); } && { | ||
26999 | test -z "$ac_c_werror_flag" || | ||
27000 | test ! -s conftest.err | ||
27001 | } && test -s conftest.$ac_objext; then | ||
27002 | ac_cv_have_u_char="yes" | ||
27003 | else | ||
27004 | echo "$as_me: failed program was:" >&5 | ||
27005 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27006 | |||
27007 | ac_cv_have_u_char="no" | ||
27008 | |||
27009 | fi | ||
27010 | |||
27011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27012 | |||
27013 | fi | ||
27014 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
27015 | echo "${ECHO_T}$ac_cv_have_u_char" >&6; } | ||
27016 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
27017 | |||
27018 | cat >>confdefs.h <<\_ACEOF | ||
27019 | #define HAVE_U_CHAR 1 | ||
27020 | _ACEOF | ||
27021 | |||
27022 | fi | ||
27023 | |||
27024 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 | ||
27025 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } | ||
27026 | if test "${ac_cv_type_intmax_t+set}" = set; then | ||
27027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27028 | else | ||
27029 | cat >conftest.$ac_ext <<_ACEOF | ||
27030 | /* confdefs.h. */ | ||
27031 | _ACEOF | ||
27032 | cat confdefs.h >>conftest.$ac_ext | ||
27033 | cat >>conftest.$ac_ext <<_ACEOF | ||
27034 | /* end confdefs.h. */ | ||
27035 | |||
27036 | #include <sys/types.h> | ||
27037 | #include <stdint.h> | ||
27038 | |||
27039 | |||
27040 | typedef intmax_t ac__type_new_; | ||
27041 | int | ||
27042 | main () | ||
27043 | { | ||
27044 | if ((ac__type_new_ *) 0) | ||
27045 | return 0; | ||
27046 | if (sizeof (ac__type_new_)) | ||
27047 | return 0; | ||
27048 | ; | ||
27049 | return 0; | ||
27050 | } | ||
27051 | _ACEOF | ||
27052 | rm -f conftest.$ac_objext | ||
27053 | if { (ac_try="$ac_compile" | ||
27054 | case "(($ac_try" in | ||
27055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27056 | *) ac_try_echo=$ac_try;; | ||
27057 | esac | ||
27058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27059 | (eval "$ac_compile") 2>conftest.er1 | ||
27060 | ac_status=$? | ||
27061 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27062 | rm -f conftest.er1 | ||
27063 | cat conftest.err >&5 | ||
27064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27065 | (exit $ac_status); } && { | ||
27066 | test -z "$ac_c_werror_flag" || | ||
27067 | test ! -s conftest.err | ||
27068 | } && test -s conftest.$ac_objext; then | ||
27069 | ac_cv_type_intmax_t=yes | ||
27070 | else | ||
27071 | echo "$as_me: failed program was:" >&5 | ||
27072 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27073 | |||
27074 | ac_cv_type_intmax_t=no | ||
27075 | fi | ||
27076 | |||
27077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27078 | fi | ||
27079 | { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 | ||
27080 | echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; } | ||
27081 | if test $ac_cv_type_intmax_t = yes; then | ||
27082 | |||
27083 | cat >>confdefs.h <<_ACEOF | ||
27084 | #define HAVE_INTMAX_T 1 | ||
27085 | _ACEOF | ||
27086 | |||
27087 | |||
27088 | fi | ||
27089 | { echo "$as_me:$LINENO: checking for uintmax_t" >&5 | ||
27090 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; } | ||
27091 | if test "${ac_cv_type_uintmax_t+set}" = set; then | ||
27092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27093 | else | ||
27094 | cat >conftest.$ac_ext <<_ACEOF | ||
27095 | /* confdefs.h. */ | ||
27096 | _ACEOF | ||
27097 | cat confdefs.h >>conftest.$ac_ext | ||
27098 | cat >>conftest.$ac_ext <<_ACEOF | ||
27099 | /* end confdefs.h. */ | ||
27100 | |||
27101 | #include <sys/types.h> | ||
27102 | #include <stdint.h> | ||
27103 | |||
27104 | |||
27105 | typedef uintmax_t ac__type_new_; | ||
27106 | int | ||
27107 | main () | ||
27108 | { | ||
27109 | if ((ac__type_new_ *) 0) | ||
27110 | return 0; | ||
27111 | if (sizeof (ac__type_new_)) | ||
27112 | return 0; | ||
27113 | ; | ||
27114 | return 0; | ||
27115 | } | ||
27116 | _ACEOF | ||
27117 | rm -f conftest.$ac_objext | ||
27118 | if { (ac_try="$ac_compile" | ||
27119 | case "(($ac_try" in | ||
27120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27121 | *) ac_try_echo=$ac_try;; | ||
27122 | esac | ||
27123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27124 | (eval "$ac_compile") 2>conftest.er1 | ||
27125 | ac_status=$? | ||
27126 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27127 | rm -f conftest.er1 | ||
27128 | cat conftest.err >&5 | ||
27129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27130 | (exit $ac_status); } && { | ||
27131 | test -z "$ac_c_werror_flag" || | ||
27132 | test ! -s conftest.err | ||
27133 | } && test -s conftest.$ac_objext; then | ||
27134 | ac_cv_type_uintmax_t=yes | ||
27135 | else | ||
27136 | echo "$as_me: failed program was:" >&5 | ||
27137 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27138 | |||
27139 | ac_cv_type_uintmax_t=no | ||
27140 | fi | ||
27141 | |||
27142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27143 | fi | ||
27144 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 | ||
27145 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; } | ||
27146 | if test $ac_cv_type_uintmax_t = yes; then | ||
27147 | |||
27148 | cat >>confdefs.h <<_ACEOF | ||
27149 | #define HAVE_UINTMAX_T 1 | ||
27150 | _ACEOF | ||
27151 | |||
27152 | |||
27153 | fi | ||
27154 | |||
27155 | |||
27156 | |||
27157 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
27158 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | ||
27159 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
27160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27161 | else | ||
27162 | cat >conftest.$ac_ext <<_ACEOF | ||
27163 | /* confdefs.h. */ | ||
27164 | _ACEOF | ||
27165 | cat confdefs.h >>conftest.$ac_ext | ||
27166 | cat >>conftest.$ac_ext <<_ACEOF | ||
27167 | /* end confdefs.h. */ | ||
27168 | #include <sys/types.h> | ||
27169 | #include <sys/socket.h> | ||
27170 | |||
27171 | typedef socklen_t ac__type_new_; | ||
27172 | int | ||
27173 | main () | ||
27174 | { | ||
27175 | if ((ac__type_new_ *) 0) | ||
27176 | return 0; | ||
27177 | if (sizeof (ac__type_new_)) | ||
27178 | return 0; | ||
27179 | ; | ||
27180 | return 0; | ||
27181 | } | ||
27182 | _ACEOF | ||
27183 | rm -f conftest.$ac_objext | ||
27184 | if { (ac_try="$ac_compile" | ||
27185 | case "(($ac_try" in | ||
27186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27187 | *) ac_try_echo=$ac_try;; | ||
27188 | esac | ||
27189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27190 | (eval "$ac_compile") 2>conftest.er1 | ||
27191 | ac_status=$? | ||
27192 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27193 | rm -f conftest.er1 | ||
27194 | cat conftest.err >&5 | ||
27195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27196 | (exit $ac_status); } && { | ||
27197 | test -z "$ac_c_werror_flag" || | ||
27198 | test ! -s conftest.err | ||
27199 | } && test -s conftest.$ac_objext; then | ||
27200 | ac_cv_type_socklen_t=yes | ||
27201 | else | ||
27202 | echo "$as_me: failed program was:" >&5 | ||
27203 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27204 | |||
27205 | ac_cv_type_socklen_t=no | ||
27206 | fi | ||
27207 | |||
27208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27209 | fi | ||
27210 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
27211 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | ||
27212 | if test $ac_cv_type_socklen_t = yes; then | ||
27213 | : | ||
27214 | else | ||
27215 | |||
27216 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
27217 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | ||
27218 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
27219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27220 | else | ||
27221 | |||
27222 | # Systems have either "struct sockaddr *" or | ||
27223 | # "void *" as the second argument to getpeername | ||
27224 | curl_cv_socklen_t_equiv= | ||
27225 | for arg2 in "struct sockaddr" void; do | ||
27226 | for t in int size_t unsigned long "unsigned long"; do | ||
27227 | cat >conftest.$ac_ext <<_ACEOF | ||
27228 | /* confdefs.h. */ | ||
27229 | _ACEOF | ||
27230 | cat confdefs.h >>conftest.$ac_ext | ||
27231 | cat >>conftest.$ac_ext <<_ACEOF | ||
27232 | /* end confdefs.h. */ | ||
27233 | |||
27234 | #include <sys/types.h> | ||
27235 | #include <sys/socket.h> | ||
27236 | |||
27237 | int getpeername (int, $arg2 *, $t *); | ||
27238 | |||
27239 | int | ||
27240 | main () | ||
27241 | { | ||
27242 | |||
27243 | $t len; | ||
27244 | getpeername(0,0,&len); | ||
27245 | |||
27246 | ; | ||
27247 | return 0; | ||
27248 | } | ||
27249 | _ACEOF | ||
27250 | rm -f conftest.$ac_objext | ||
27251 | if { (ac_try="$ac_compile" | ||
27252 | case "(($ac_try" in | ||
27253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27254 | *) ac_try_echo=$ac_try;; | ||
27255 | esac | ||
27256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27257 | (eval "$ac_compile") 2>conftest.er1 | ||
27258 | ac_status=$? | ||
27259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27260 | rm -f conftest.er1 | ||
27261 | cat conftest.err >&5 | ||
27262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27263 | (exit $ac_status); } && { | ||
27264 | test -z "$ac_c_werror_flag" || | ||
27265 | test ! -s conftest.err | ||
27266 | } && test -s conftest.$ac_objext; then | ||
27267 | |||
27268 | curl_cv_socklen_t_equiv="$t" | ||
27269 | break | ||
27270 | |||
27271 | else | ||
27272 | echo "$as_me: failed program was:" >&5 | ||
27273 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27274 | |||
27275 | |||
27276 | fi | ||
27277 | |||
27278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27279 | done | ||
27280 | done | ||
27281 | |||
27282 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
27283 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
27284 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
27285 | { (exit 1); exit 1; }; } | ||
27286 | fi | ||
27287 | |||
27288 | fi | ||
27289 | |||
27290 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
27291 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | ||
27292 | |||
27293 | cat >>confdefs.h <<_ACEOF | ||
27294 | #define socklen_t $curl_cv_socklen_t_equiv | ||
27295 | _ACEOF | ||
27296 | |||
27297 | fi | ||
27298 | |||
27299 | |||
27300 | |||
27301 | { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
27302 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } | ||
27303 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
27304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27305 | else | ||
27306 | cat >conftest.$ac_ext <<_ACEOF | ||
27307 | /* confdefs.h. */ | ||
27308 | _ACEOF | ||
27309 | cat confdefs.h >>conftest.$ac_ext | ||
27310 | cat >>conftest.$ac_ext <<_ACEOF | ||
27311 | /* end confdefs.h. */ | ||
27312 | #include <signal.h> | ||
27313 | |||
27314 | typedef sig_atomic_t ac__type_new_; | ||
27315 | int | ||
27316 | main () | ||
27317 | { | ||
27318 | if ((ac__type_new_ *) 0) | ||
27319 | return 0; | ||
27320 | if (sizeof (ac__type_new_)) | ||
27321 | return 0; | ||
27322 | ; | ||
27323 | return 0; | ||
27324 | } | ||
27325 | _ACEOF | ||
27326 | rm -f conftest.$ac_objext | ||
27327 | if { (ac_try="$ac_compile" | ||
27328 | case "(($ac_try" in | ||
27329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27330 | *) ac_try_echo=$ac_try;; | ||
27331 | esac | ||
27332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27333 | (eval "$ac_compile") 2>conftest.er1 | ||
27334 | ac_status=$? | ||
27335 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27336 | rm -f conftest.er1 | ||
27337 | cat conftest.err >&5 | ||
27338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27339 | (exit $ac_status); } && { | ||
27340 | test -z "$ac_c_werror_flag" || | ||
27341 | test ! -s conftest.err | ||
27342 | } && test -s conftest.$ac_objext; then | ||
27343 | ac_cv_type_sig_atomic_t=yes | ||
27344 | else | ||
27345 | echo "$as_me: failed program was:" >&5 | ||
27346 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27347 | |||
27348 | ac_cv_type_sig_atomic_t=no | ||
27349 | fi | ||
27350 | |||
27351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27352 | fi | ||
27353 | { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
27354 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } | ||
27355 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
27356 | |||
27357 | cat >>confdefs.h <<_ACEOF | ||
27358 | #define HAVE_SIG_ATOMIC_T 1 | ||
27359 | _ACEOF | ||
27360 | |||
27361 | |||
27362 | fi | ||
27363 | |||
27364 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 | ||
27365 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } | ||
27366 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then | ||
27367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27368 | else | ||
27369 | cat >conftest.$ac_ext <<_ACEOF | ||
27370 | /* confdefs.h. */ | ||
27371 | _ACEOF | ||
27372 | cat confdefs.h >>conftest.$ac_ext | ||
27373 | cat >>conftest.$ac_ext <<_ACEOF | ||
27374 | /* end confdefs.h. */ | ||
27375 | |||
27376 | #include <sys/types.h> | ||
27377 | #ifdef HAVE_SYS_BITYPES_H | ||
27378 | #include <sys/bitypes.h> | ||
27379 | #endif | ||
27380 | #ifdef HAVE_SYS_STATFS_H | ||
27381 | #include <sys/statfs.h> | ||
27382 | #endif | ||
27383 | #ifdef HAVE_SYS_STATVFS_H | ||
27384 | #include <sys/statvfs.h> | ||
27385 | #endif | ||
27386 | |||
27387 | |||
27388 | typedef fsblkcnt_t ac__type_new_; | ||
27389 | int | ||
27390 | main () | ||
27391 | { | ||
27392 | if ((ac__type_new_ *) 0) | ||
27393 | return 0; | ||
27394 | if (sizeof (ac__type_new_)) | ||
27395 | return 0; | ||
27396 | ; | ||
27397 | return 0; | ||
27398 | } | ||
27399 | _ACEOF | ||
27400 | rm -f conftest.$ac_objext | ||
27401 | if { (ac_try="$ac_compile" | ||
27402 | case "(($ac_try" in | ||
27403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27404 | *) ac_try_echo=$ac_try;; | ||
27405 | esac | ||
27406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27407 | (eval "$ac_compile") 2>conftest.er1 | ||
27408 | ac_status=$? | ||
27409 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27410 | rm -f conftest.er1 | ||
27411 | cat conftest.err >&5 | ||
27412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27413 | (exit $ac_status); } && { | ||
27414 | test -z "$ac_c_werror_flag" || | ||
27415 | test ! -s conftest.err | ||
27416 | } && test -s conftest.$ac_objext; then | ||
27417 | ac_cv_type_fsblkcnt_t=yes | ||
27418 | else | ||
27419 | echo "$as_me: failed program was:" >&5 | ||
27420 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27421 | |||
27422 | ac_cv_type_fsblkcnt_t=no | ||
27423 | fi | ||
27424 | |||
27425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27426 | fi | ||
27427 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 | ||
27428 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } | ||
27429 | if test $ac_cv_type_fsblkcnt_t = yes; then | ||
27430 | |||
27431 | cat >>confdefs.h <<_ACEOF | ||
27432 | #define HAVE_FSBLKCNT_T 1 | ||
27433 | _ACEOF | ||
27434 | |||
27435 | |||
27436 | fi | ||
27437 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 | ||
27438 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } | ||
27439 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then | ||
27440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27441 | else | ||
27442 | cat >conftest.$ac_ext <<_ACEOF | ||
27443 | /* confdefs.h. */ | ||
27444 | _ACEOF | ||
27445 | cat confdefs.h >>conftest.$ac_ext | ||
27446 | cat >>conftest.$ac_ext <<_ACEOF | ||
27447 | /* end confdefs.h. */ | ||
27448 | |||
27449 | #include <sys/types.h> | ||
27450 | #ifdef HAVE_SYS_BITYPES_H | ||
27451 | #include <sys/bitypes.h> | ||
27452 | #endif | ||
27453 | #ifdef HAVE_SYS_STATFS_H | ||
27454 | #include <sys/statfs.h> | ||
27455 | #endif | ||
27456 | #ifdef HAVE_SYS_STATVFS_H | ||
27457 | #include <sys/statvfs.h> | ||
27458 | #endif | ||
27459 | |||
27460 | |||
27461 | typedef fsfilcnt_t ac__type_new_; | ||
27462 | int | ||
27463 | main () | ||
27464 | { | ||
27465 | if ((ac__type_new_ *) 0) | ||
27466 | return 0; | ||
27467 | if (sizeof (ac__type_new_)) | ||
27468 | return 0; | ||
27469 | ; | ||
27470 | return 0; | ||
27471 | } | ||
27472 | _ACEOF | ||
27473 | rm -f conftest.$ac_objext | ||
27474 | if { (ac_try="$ac_compile" | ||
27475 | case "(($ac_try" in | ||
27476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27477 | *) ac_try_echo=$ac_try;; | ||
27478 | esac | ||
27479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27480 | (eval "$ac_compile") 2>conftest.er1 | ||
27481 | ac_status=$? | ||
27482 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27483 | rm -f conftest.er1 | ||
27484 | cat conftest.err >&5 | ||
27485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27486 | (exit $ac_status); } && { | ||
27487 | test -z "$ac_c_werror_flag" || | ||
27488 | test ! -s conftest.err | ||
27489 | } && test -s conftest.$ac_objext; then | ||
27490 | ac_cv_type_fsfilcnt_t=yes | ||
27491 | else | ||
27492 | echo "$as_me: failed program was:" >&5 | ||
27493 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27494 | |||
27495 | ac_cv_type_fsfilcnt_t=no | ||
27496 | fi | ||
27497 | |||
27498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27499 | fi | ||
27500 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 | ||
27501 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } | ||
27502 | if test $ac_cv_type_fsfilcnt_t = yes; then | ||
27503 | |||
27504 | cat >>confdefs.h <<_ACEOF | ||
27505 | #define HAVE_FSFILCNT_T 1 | ||
27506 | _ACEOF | ||
27507 | |||
27508 | |||
27509 | fi | ||
27510 | |||
27511 | |||
27512 | { echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
27513 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; } | ||
27514 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
27515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27516 | else | ||
27517 | cat >conftest.$ac_ext <<_ACEOF | ||
27518 | /* confdefs.h. */ | ||
27519 | _ACEOF | ||
27520 | cat confdefs.h >>conftest.$ac_ext | ||
27521 | cat >>conftest.$ac_ext <<_ACEOF | ||
27522 | /* end confdefs.h. */ | ||
27523 | #include <sys/types.h> | ||
27524 | #include <netinet/in.h> | ||
27525 | |||
27526 | typedef in_addr_t ac__type_new_; | ||
27527 | int | ||
27528 | main () | ||
27529 | { | ||
27530 | if ((ac__type_new_ *) 0) | ||
27531 | return 0; | ||
27532 | if (sizeof (ac__type_new_)) | ||
27533 | return 0; | ||
27534 | ; | ||
27535 | return 0; | ||
27536 | } | ||
27537 | _ACEOF | ||
27538 | rm -f conftest.$ac_objext | ||
27539 | if { (ac_try="$ac_compile" | ||
27540 | case "(($ac_try" in | ||
27541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27542 | *) ac_try_echo=$ac_try;; | ||
27543 | esac | ||
27544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27545 | (eval "$ac_compile") 2>conftest.er1 | ||
27546 | ac_status=$? | ||
27547 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27548 | rm -f conftest.er1 | ||
27549 | cat conftest.err >&5 | ||
27550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27551 | (exit $ac_status); } && { | ||
27552 | test -z "$ac_c_werror_flag" || | ||
27553 | test ! -s conftest.err | ||
27554 | } && test -s conftest.$ac_objext; then | ||
27555 | ac_cv_type_in_addr_t=yes | ||
27556 | else | ||
27557 | echo "$as_me: failed program was:" >&5 | ||
27558 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27559 | |||
27560 | ac_cv_type_in_addr_t=no | ||
27561 | fi | ||
27562 | |||
27563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27564 | fi | ||
27565 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
27566 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; } | ||
27567 | if test $ac_cv_type_in_addr_t = yes; then | ||
27568 | |||
27569 | cat >>confdefs.h <<_ACEOF | ||
27570 | #define HAVE_IN_ADDR_T 1 | ||
27571 | _ACEOF | ||
27572 | |||
27573 | |||
27574 | fi | ||
27575 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 | ||
27576 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | ||
27577 | if test "${ac_cv_type_in_port_t+set}" = set; then | ||
27578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27579 | else | ||
27580 | cat >conftest.$ac_ext <<_ACEOF | ||
27581 | /* confdefs.h. */ | ||
27582 | _ACEOF | ||
27583 | cat confdefs.h >>conftest.$ac_ext | ||
27584 | cat >>conftest.$ac_ext <<_ACEOF | ||
27585 | /* end confdefs.h. */ | ||
27586 | #include <sys/types.h> | ||
27587 | #include <netinet/in.h> | ||
27588 | |||
27589 | typedef in_port_t ac__type_new_; | ||
27590 | int | ||
27591 | main () | ||
27592 | { | ||
27593 | if ((ac__type_new_ *) 0) | ||
27594 | return 0; | ||
27595 | if (sizeof (ac__type_new_)) | ||
27596 | return 0; | ||
27597 | ; | ||
27598 | return 0; | ||
27599 | } | ||
27600 | _ACEOF | ||
27601 | rm -f conftest.$ac_objext | ||
27602 | if { (ac_try="$ac_compile" | ||
27603 | case "(($ac_try" in | ||
27604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27605 | *) ac_try_echo=$ac_try;; | ||
27606 | esac | ||
27607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27608 | (eval "$ac_compile") 2>conftest.er1 | ||
27609 | ac_status=$? | ||
27610 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27611 | rm -f conftest.er1 | ||
27612 | cat conftest.err >&5 | ||
27613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27614 | (exit $ac_status); } && { | ||
27615 | test -z "$ac_c_werror_flag" || | ||
27616 | test ! -s conftest.err | ||
27617 | } && test -s conftest.$ac_objext; then | ||
27618 | ac_cv_type_in_port_t=yes | ||
27619 | else | ||
27620 | echo "$as_me: failed program was:" >&5 | ||
27621 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27622 | |||
27623 | ac_cv_type_in_port_t=no | ||
27624 | fi | ||
27625 | |||
27626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27627 | fi | ||
27628 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 | ||
27629 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | ||
27630 | if test $ac_cv_type_in_port_t = yes; then | ||
27631 | |||
27632 | cat >>confdefs.h <<_ACEOF | ||
27633 | #define HAVE_IN_PORT_T 1 | ||
27634 | _ACEOF | ||
27635 | |||
27636 | |||
27637 | fi | ||
27638 | |||
27639 | |||
27640 | { echo "$as_me:$LINENO: checking for size_t" >&5 | ||
27641 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | ||
27642 | if test "${ac_cv_have_size_t+set}" = set; then | ||
27643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27644 | else | ||
27645 | |||
27646 | cat >conftest.$ac_ext <<_ACEOF | ||
27647 | /* confdefs.h. */ | ||
27648 | _ACEOF | ||
27649 | cat confdefs.h >>conftest.$ac_ext | ||
27650 | cat >>conftest.$ac_ext <<_ACEOF | ||
27651 | /* end confdefs.h. */ | ||
27652 | #include <sys/types.h> | ||
27653 | int | ||
27654 | main () | ||
27655 | { | ||
27656 | size_t foo; foo = 1235; | ||
27657 | ; | ||
27658 | return 0; | ||
27659 | } | ||
27660 | _ACEOF | ||
27661 | rm -f conftest.$ac_objext | ||
27662 | if { (ac_try="$ac_compile" | ||
27663 | case "(($ac_try" in | ||
27664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27665 | *) ac_try_echo=$ac_try;; | ||
27666 | esac | ||
27667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27668 | (eval "$ac_compile") 2>conftest.er1 | ||
27669 | ac_status=$? | ||
27670 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27671 | rm -f conftest.er1 | ||
27672 | cat conftest.err >&5 | ||
27673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27674 | (exit $ac_status); } && { | ||
27675 | test -z "$ac_c_werror_flag" || | ||
27676 | test ! -s conftest.err | ||
27677 | } && test -s conftest.$ac_objext; then | ||
27678 | ac_cv_have_size_t="yes" | ||
27679 | else | ||
27680 | echo "$as_me: failed program was:" >&5 | ||
27681 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27682 | |||
27683 | ac_cv_have_size_t="no" | ||
27684 | |||
27685 | fi | ||
27686 | |||
27687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27688 | |||
27689 | fi | ||
27690 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
27691 | echo "${ECHO_T}$ac_cv_have_size_t" >&6; } | ||
27692 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
27693 | |||
27694 | cat >>confdefs.h <<\_ACEOF | ||
27695 | #define HAVE_SIZE_T 1 | ||
27696 | _ACEOF | ||
27697 | |||
27698 | fi | ||
27699 | |||
27700 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
27701 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | ||
27702 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
27703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27704 | else | ||
27705 | |||
27706 | cat >conftest.$ac_ext <<_ACEOF | ||
27707 | /* confdefs.h. */ | ||
27708 | _ACEOF | ||
27709 | cat confdefs.h >>conftest.$ac_ext | ||
27710 | cat >>conftest.$ac_ext <<_ACEOF | ||
27711 | /* end confdefs.h. */ | ||
27712 | #include <sys/types.h> | ||
27713 | int | ||
27714 | main () | ||
27715 | { | ||
27716 | ssize_t foo; foo = 1235; | ||
27717 | ; | ||
27718 | return 0; | ||
27719 | } | ||
27720 | _ACEOF | ||
27721 | rm -f conftest.$ac_objext | ||
27722 | if { (ac_try="$ac_compile" | ||
27723 | case "(($ac_try" in | ||
27724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27725 | *) ac_try_echo=$ac_try;; | ||
27726 | esac | ||
27727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27728 | (eval "$ac_compile") 2>conftest.er1 | ||
27729 | ac_status=$? | ||
27730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27731 | rm -f conftest.er1 | ||
27732 | cat conftest.err >&5 | ||
27733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27734 | (exit $ac_status); } && { | ||
27735 | test -z "$ac_c_werror_flag" || | ||
27736 | test ! -s conftest.err | ||
27737 | } && test -s conftest.$ac_objext; then | ||
27738 | ac_cv_have_ssize_t="yes" | ||
27739 | else | ||
27740 | echo "$as_me: failed program was:" >&5 | ||
27741 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27742 | |||
27743 | ac_cv_have_ssize_t="no" | ||
27744 | |||
27745 | fi | ||
27746 | |||
27747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27748 | |||
27749 | fi | ||
27750 | { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
27751 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; } | ||
27752 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
27753 | |||
27754 | cat >>confdefs.h <<\_ACEOF | ||
27755 | #define HAVE_SSIZE_T 1 | ||
27756 | _ACEOF | ||
27757 | |||
27758 | fi | ||
27759 | |||
27760 | { echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
27761 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } | ||
27762 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
27763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27764 | else | ||
27765 | |||
27766 | cat >conftest.$ac_ext <<_ACEOF | ||
27767 | /* confdefs.h. */ | ||
27768 | _ACEOF | ||
27769 | cat confdefs.h >>conftest.$ac_ext | ||
27770 | cat >>conftest.$ac_ext <<_ACEOF | ||
27771 | /* end confdefs.h. */ | ||
27772 | #include <time.h> | ||
27773 | int | ||
27774 | main () | ||
27775 | { | ||
27776 | clock_t foo; foo = 1235; | ||
27777 | ; | ||
27778 | return 0; | ||
27779 | } | ||
27780 | _ACEOF | ||
27781 | rm -f conftest.$ac_objext | ||
27782 | if { (ac_try="$ac_compile" | ||
27783 | case "(($ac_try" in | ||
27784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27785 | *) ac_try_echo=$ac_try;; | ||
27786 | esac | ||
27787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27788 | (eval "$ac_compile") 2>conftest.er1 | ||
27789 | ac_status=$? | ||
27790 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27791 | rm -f conftest.er1 | ||
27792 | cat conftest.err >&5 | ||
27793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27794 | (exit $ac_status); } && { | ||
27795 | test -z "$ac_c_werror_flag" || | ||
27796 | test ! -s conftest.err | ||
27797 | } && test -s conftest.$ac_objext; then | ||
27798 | ac_cv_have_clock_t="yes" | ||
27799 | else | ||
27800 | echo "$as_me: failed program was:" >&5 | ||
27801 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27802 | |||
27803 | ac_cv_have_clock_t="no" | ||
27804 | |||
27805 | fi | ||
27806 | |||
27807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27808 | |||
27809 | fi | ||
27810 | { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
27811 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6; } | ||
27812 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
27813 | |||
27814 | cat >>confdefs.h <<\_ACEOF | ||
27815 | #define HAVE_CLOCK_T 1 | ||
27816 | _ACEOF | ||
27817 | |||
27818 | fi | ||
27819 | |||
27820 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
27821 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | ||
27822 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
27823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27824 | else | ||
27825 | |||
27826 | cat >conftest.$ac_ext <<_ACEOF | ||
27827 | /* confdefs.h. */ | ||
27828 | _ACEOF | ||
27829 | cat confdefs.h >>conftest.$ac_ext | ||
27830 | cat >>conftest.$ac_ext <<_ACEOF | ||
27831 | /* end confdefs.h. */ | ||
27832 | |||
27833 | #include <sys/types.h> | ||
27834 | #include <sys/socket.h> | ||
27835 | |||
27836 | int | ||
27837 | main () | ||
27838 | { | ||
27839 | sa_family_t foo; foo = 1235; | ||
27840 | ; | ||
27841 | return 0; | ||
27842 | } | ||
27843 | _ACEOF | ||
27844 | rm -f conftest.$ac_objext | ||
27845 | if { (ac_try="$ac_compile" | ||
27846 | case "(($ac_try" in | ||
27847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27848 | *) ac_try_echo=$ac_try;; | ||
27849 | esac | ||
27850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27851 | (eval "$ac_compile") 2>conftest.er1 | ||
27852 | ac_status=$? | ||
27853 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27854 | rm -f conftest.er1 | ||
27855 | cat conftest.err >&5 | ||
27856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27857 | (exit $ac_status); } && { | ||
27858 | test -z "$ac_c_werror_flag" || | ||
27859 | test ! -s conftest.err | ||
27860 | } && test -s conftest.$ac_objext; then | ||
27861 | ac_cv_have_sa_family_t="yes" | ||
27862 | else | ||
27863 | echo "$as_me: failed program was:" >&5 | ||
27864 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27865 | |||
27866 | cat >conftest.$ac_ext <<_ACEOF | ||
27867 | /* confdefs.h. */ | ||
27868 | _ACEOF | ||
27869 | cat confdefs.h >>conftest.$ac_ext | ||
27870 | cat >>conftest.$ac_ext <<_ACEOF | ||
27871 | /* end confdefs.h. */ | ||
27872 | |||
27873 | #include <sys/types.h> | ||
27874 | #include <sys/socket.h> | ||
27875 | #include <netinet/in.h> | ||
27876 | |||
27877 | int | ||
27878 | main () | ||
27879 | { | ||
27880 | sa_family_t foo; foo = 1235; | ||
27881 | ; | ||
27882 | return 0; | ||
27883 | } | ||
27884 | _ACEOF | ||
27885 | rm -f conftest.$ac_objext | ||
27886 | if { (ac_try="$ac_compile" | ||
27887 | case "(($ac_try" in | ||
27888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27889 | *) ac_try_echo=$ac_try;; | ||
27890 | esac | ||
27891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27892 | (eval "$ac_compile") 2>conftest.er1 | ||
27893 | ac_status=$? | ||
27894 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27895 | rm -f conftest.er1 | ||
27896 | cat conftest.err >&5 | ||
27897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27898 | (exit $ac_status); } && { | ||
27899 | test -z "$ac_c_werror_flag" || | ||
27900 | test ! -s conftest.err | ||
27901 | } && test -s conftest.$ac_objext; then | ||
27902 | ac_cv_have_sa_family_t="yes" | ||
27903 | else | ||
27904 | echo "$as_me: failed program was:" >&5 | ||
27905 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27906 | |||
27907 | ac_cv_have_sa_family_t="no" | ||
27908 | |||
27909 | fi | ||
27910 | |||
27911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27912 | |||
27913 | fi | ||
27914 | |||
27915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27916 | |||
27917 | fi | ||
27918 | { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
27919 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; } | ||
27920 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
27921 | |||
27922 | cat >>confdefs.h <<\_ACEOF | ||
27923 | #define HAVE_SA_FAMILY_T 1 | ||
27924 | _ACEOF | ||
27925 | |||
27926 | fi | ||
27927 | |||
27928 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
27929 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | ||
27930 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
27931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27932 | else | ||
27933 | |||
27934 | cat >conftest.$ac_ext <<_ACEOF | ||
27935 | /* confdefs.h. */ | ||
27936 | _ACEOF | ||
27937 | cat confdefs.h >>conftest.$ac_ext | ||
27938 | cat >>conftest.$ac_ext <<_ACEOF | ||
27939 | /* end confdefs.h. */ | ||
27940 | #include <sys/types.h> | ||
27941 | int | ||
27942 | main () | ||
27943 | { | ||
27944 | pid_t foo; foo = 1235; | ||
27945 | ; | ||
27946 | return 0; | ||
27947 | } | ||
27948 | _ACEOF | ||
27949 | rm -f conftest.$ac_objext | ||
27950 | if { (ac_try="$ac_compile" | ||
27951 | case "(($ac_try" in | ||
27952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27953 | *) ac_try_echo=$ac_try;; | ||
27954 | esac | ||
27955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27956 | (eval "$ac_compile") 2>conftest.er1 | ||
27957 | ac_status=$? | ||
27958 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27959 | rm -f conftest.er1 | ||
27960 | cat conftest.err >&5 | ||
27961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27962 | (exit $ac_status); } && { | ||
27963 | test -z "$ac_c_werror_flag" || | ||
27964 | test ! -s conftest.err | ||
27965 | } && test -s conftest.$ac_objext; then | ||
27966 | ac_cv_have_pid_t="yes" | ||
27967 | else | ||
27968 | echo "$as_me: failed program was:" >&5 | ||
27969 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27970 | |||
27971 | ac_cv_have_pid_t="no" | ||
27972 | |||
27973 | fi | ||
27974 | |||
27975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27976 | |||
27977 | fi | ||
27978 | { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
27979 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6; } | ||
27980 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
27981 | |||
27982 | cat >>confdefs.h <<\_ACEOF | ||
27983 | #define HAVE_PID_T 1 | ||
27984 | _ACEOF | ||
27985 | |||
27986 | fi | ||
27987 | |||
27988 | { echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
27989 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | ||
27990 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
27991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27992 | else | ||
27993 | |||
27994 | cat >conftest.$ac_ext <<_ACEOF | ||
27995 | /* confdefs.h. */ | ||
27996 | _ACEOF | ||
27997 | cat confdefs.h >>conftest.$ac_ext | ||
27998 | cat >>conftest.$ac_ext <<_ACEOF | ||
27999 | /* end confdefs.h. */ | ||
28000 | #include <sys/types.h> | ||
28001 | int | ||
28002 | main () | ||
28003 | { | ||
28004 | mode_t foo; foo = 1235; | ||
28005 | ; | ||
28006 | return 0; | ||
28007 | } | ||
28008 | _ACEOF | ||
28009 | rm -f conftest.$ac_objext | ||
28010 | if { (ac_try="$ac_compile" | ||
28011 | case "(($ac_try" in | ||
28012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28013 | *) ac_try_echo=$ac_try;; | ||
28014 | esac | ||
28015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28016 | (eval "$ac_compile") 2>conftest.er1 | ||
28017 | ac_status=$? | ||
28018 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28019 | rm -f conftest.er1 | ||
28020 | cat conftest.err >&5 | ||
28021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28022 | (exit $ac_status); } && { | ||
28023 | test -z "$ac_c_werror_flag" || | ||
28024 | test ! -s conftest.err | ||
28025 | } && test -s conftest.$ac_objext; then | ||
28026 | ac_cv_have_mode_t="yes" | ||
28027 | else | ||
28028 | echo "$as_me: failed program was:" >&5 | ||
28029 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28030 | |||
28031 | ac_cv_have_mode_t="no" | ||
28032 | |||
28033 | fi | ||
28034 | |||
28035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28036 | |||
28037 | fi | ||
28038 | { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
28039 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6; } | ||
28040 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
28041 | |||
28042 | cat >>confdefs.h <<\_ACEOF | ||
28043 | #define HAVE_MODE_T 1 | ||
28044 | _ACEOF | ||
28045 | |||
28046 | fi | ||
28047 | |||
28048 | |||
28049 | { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
28050 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } | ||
28051 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
28052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28053 | else | ||
28054 | |||
28055 | cat >conftest.$ac_ext <<_ACEOF | ||
28056 | /* confdefs.h. */ | ||
28057 | _ACEOF | ||
28058 | cat confdefs.h >>conftest.$ac_ext | ||
28059 | cat >>conftest.$ac_ext <<_ACEOF | ||
28060 | /* end confdefs.h. */ | ||
28061 | |||
28062 | #include <sys/types.h> | ||
28063 | #include <sys/socket.h> | ||
28064 | |||
28065 | int | ||
28066 | main () | ||
28067 | { | ||
28068 | struct sockaddr_storage s; | ||
28069 | ; | ||
28070 | return 0; | ||
28071 | } | ||
28072 | _ACEOF | ||
28073 | rm -f conftest.$ac_objext | ||
28074 | if { (ac_try="$ac_compile" | ||
28075 | case "(($ac_try" in | ||
28076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28077 | *) ac_try_echo=$ac_try;; | ||
28078 | esac | ||
28079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28080 | (eval "$ac_compile") 2>conftest.er1 | ||
28081 | ac_status=$? | ||
28082 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28083 | rm -f conftest.er1 | ||
28084 | cat conftest.err >&5 | ||
28085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28086 | (exit $ac_status); } && { | ||
28087 | test -z "$ac_c_werror_flag" || | ||
28088 | test ! -s conftest.err | ||
28089 | } && test -s conftest.$ac_objext; then | ||
28090 | ac_cv_have_struct_sockaddr_storage="yes" | ||
28091 | else | ||
28092 | echo "$as_me: failed program was:" >&5 | ||
28093 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28094 | |||
28095 | ac_cv_have_struct_sockaddr_storage="no" | ||
28096 | |||
28097 | fi | ||
28098 | |||
28099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28100 | |||
28101 | fi | ||
28102 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
28103 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
28104 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
28105 | |||
28106 | cat >>confdefs.h <<\_ACEOF | ||
28107 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
28108 | _ACEOF | ||
28109 | |||
28110 | fi | ||
28111 | |||
28112 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
28113 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } | ||
28114 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
28115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28116 | else | ||
28117 | |||
28118 | cat >conftest.$ac_ext <<_ACEOF | ||
28119 | /* confdefs.h. */ | ||
28120 | _ACEOF | ||
28121 | cat confdefs.h >>conftest.$ac_ext | ||
28122 | cat >>conftest.$ac_ext <<_ACEOF | ||
28123 | /* end confdefs.h. */ | ||
28124 | |||
28125 | #include <sys/types.h> | ||
28126 | #include <netinet/in.h> | ||
28127 | |||
28128 | int | ||
28129 | main () | ||
28130 | { | ||
28131 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
28132 | ; | ||
28133 | return 0; | ||
28134 | } | ||
28135 | _ACEOF | ||
28136 | rm -f conftest.$ac_objext | ||
28137 | if { (ac_try="$ac_compile" | ||
28138 | case "(($ac_try" in | ||
28139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28140 | *) ac_try_echo=$ac_try;; | ||
28141 | esac | ||
28142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28143 | (eval "$ac_compile") 2>conftest.er1 | ||
28144 | ac_status=$? | ||
28145 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28146 | rm -f conftest.er1 | ||
28147 | cat conftest.err >&5 | ||
28148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28149 | (exit $ac_status); } && { | ||
28150 | test -z "$ac_c_werror_flag" || | ||
28151 | test ! -s conftest.err | ||
28152 | } && test -s conftest.$ac_objext; then | ||
28153 | ac_cv_have_struct_sockaddr_in6="yes" | ||
28154 | else | ||
28155 | echo "$as_me: failed program was:" >&5 | ||
28156 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28157 | |||
28158 | ac_cv_have_struct_sockaddr_in6="no" | ||
28159 | |||
28160 | fi | ||
28161 | |||
28162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28163 | |||
28164 | fi | ||
28165 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
28166 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
28167 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
28168 | |||
28169 | cat >>confdefs.h <<\_ACEOF | ||
28170 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
28171 | _ACEOF | ||
28172 | |||
28173 | fi | ||
28174 | |||
28175 | { echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
28176 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; } | ||
28177 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
28178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28179 | else | ||
28180 | |||
28181 | cat >conftest.$ac_ext <<_ACEOF | ||
28182 | /* confdefs.h. */ | ||
28183 | _ACEOF | ||
28184 | cat confdefs.h >>conftest.$ac_ext | ||
28185 | cat >>conftest.$ac_ext <<_ACEOF | ||
28186 | /* end confdefs.h. */ | ||
28187 | |||
28188 | #include <sys/types.h> | ||
28189 | #include <netinet/in.h> | ||
28190 | |||
28191 | int | ||
28192 | main () | ||
28193 | { | ||
28194 | struct in6_addr s; s.s6_addr[0] = 0; | ||
28195 | ; | ||
28196 | return 0; | ||
28197 | } | ||
28198 | _ACEOF | ||
28199 | rm -f conftest.$ac_objext | ||
28200 | if { (ac_try="$ac_compile" | ||
28201 | case "(($ac_try" in | ||
28202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28203 | *) ac_try_echo=$ac_try;; | ||
28204 | esac | ||
28205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28206 | (eval "$ac_compile") 2>conftest.er1 | ||
28207 | ac_status=$? | ||
28208 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28209 | rm -f conftest.er1 | ||
28210 | cat conftest.err >&5 | ||
28211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28212 | (exit $ac_status); } && { | ||
28213 | test -z "$ac_c_werror_flag" || | ||
28214 | test ! -s conftest.err | ||
28215 | } && test -s conftest.$ac_objext; then | ||
28216 | ac_cv_have_struct_in6_addr="yes" | ||
28217 | else | ||
28218 | echo "$as_me: failed program was:" >&5 | ||
28219 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28220 | |||
28221 | ac_cv_have_struct_in6_addr="no" | ||
28222 | |||
28223 | fi | ||
28224 | |||
28225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28226 | |||
28227 | fi | ||
28228 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
28229 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; } | ||
28230 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
28231 | |||
28232 | cat >>confdefs.h <<\_ACEOF | ||
28233 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
28234 | _ACEOF | ||
28235 | |||
28236 | |||
28237 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 | ||
28238 | echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; } | ||
28239 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then | ||
28240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28241 | else | ||
28242 | cat >conftest.$ac_ext <<_ACEOF | ||
28243 | /* confdefs.h. */ | ||
28244 | _ACEOF | ||
28245 | cat confdefs.h >>conftest.$ac_ext | ||
28246 | cat >>conftest.$ac_ext <<_ACEOF | ||
28247 | /* end confdefs.h. */ | ||
28248 | |||
28249 | #ifdef HAVE_SYS_TYPES_H | ||
28250 | #include <sys/types.h> | ||
28251 | #endif | ||
28252 | #include <netinet/in.h> | ||
28253 | |||
28254 | |||
28255 | int | ||
28256 | main () | ||
28257 | { | ||
28258 | static struct sockaddr_in6 ac_aggr; | ||
28259 | if (ac_aggr.sin6_scope_id) | ||
28260 | return 0; | ||
28261 | ; | ||
28262 | return 0; | ||
28263 | } | ||
28264 | _ACEOF | ||
28265 | rm -f conftest.$ac_objext | ||
28266 | if { (ac_try="$ac_compile" | ||
28267 | case "(($ac_try" in | ||
28268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28269 | *) ac_try_echo=$ac_try;; | ||
28270 | esac | ||
28271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28272 | (eval "$ac_compile") 2>conftest.er1 | ||
28273 | ac_status=$? | ||
28274 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28275 | rm -f conftest.er1 | ||
28276 | cat conftest.err >&5 | ||
28277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28278 | (exit $ac_status); } && { | ||
28279 | test -z "$ac_c_werror_flag" || | ||
28280 | test ! -s conftest.err | ||
28281 | } && test -s conftest.$ac_objext; then | ||
28282 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
28283 | else | ||
28284 | echo "$as_me: failed program was:" >&5 | ||
28285 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28286 | |||
28287 | cat >conftest.$ac_ext <<_ACEOF | ||
28288 | /* confdefs.h. */ | ||
28289 | _ACEOF | ||
28290 | cat confdefs.h >>conftest.$ac_ext | ||
28291 | cat >>conftest.$ac_ext <<_ACEOF | ||
28292 | /* end confdefs.h. */ | ||
28293 | |||
28294 | #ifdef HAVE_SYS_TYPES_H | ||
28295 | #include <sys/types.h> | ||
28296 | #endif | ||
28297 | #include <netinet/in.h> | ||
28298 | |||
28299 | |||
28300 | int | ||
28301 | main () | ||
28302 | { | ||
28303 | static struct sockaddr_in6 ac_aggr; | ||
28304 | if (sizeof ac_aggr.sin6_scope_id) | ||
28305 | return 0; | ||
28306 | ; | ||
28307 | return 0; | ||
28308 | } | ||
28309 | _ACEOF | ||
28310 | rm -f conftest.$ac_objext | ||
28311 | if { (ac_try="$ac_compile" | ||
28312 | case "(($ac_try" in | ||
28313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28314 | *) ac_try_echo=$ac_try;; | ||
28315 | esac | ||
28316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28317 | (eval "$ac_compile") 2>conftest.er1 | ||
28318 | ac_status=$? | ||
28319 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28320 | rm -f conftest.er1 | ||
28321 | cat conftest.err >&5 | ||
28322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28323 | (exit $ac_status); } && { | ||
28324 | test -z "$ac_c_werror_flag" || | ||
28325 | test ! -s conftest.err | ||
28326 | } && test -s conftest.$ac_objext; then | ||
28327 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
28328 | else | ||
28329 | echo "$as_me: failed program was:" >&5 | ||
28330 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28331 | |||
28332 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no | ||
28333 | fi | ||
28334 | |||
28335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28336 | fi | ||
28337 | |||
28338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28339 | fi | ||
28340 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 | ||
28341 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } | ||
28342 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then | ||
28343 | |||
28344 | cat >>confdefs.h <<_ACEOF | ||
28345 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
28346 | _ACEOF | ||
28347 | |||
28348 | |||
28349 | fi | ||
28350 | |||
28351 | fi | ||
28352 | |||
28353 | { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
28354 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } | ||
28355 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
28356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28357 | else | ||
28358 | |||
28359 | cat >conftest.$ac_ext <<_ACEOF | ||
28360 | /* confdefs.h. */ | ||
28361 | _ACEOF | ||
28362 | cat confdefs.h >>conftest.$ac_ext | ||
28363 | cat >>conftest.$ac_ext <<_ACEOF | ||
28364 | /* end confdefs.h. */ | ||
28365 | |||
28366 | #include <sys/types.h> | ||
28367 | #include <sys/socket.h> | ||
28368 | #include <netdb.h> | ||
28369 | |||
28370 | int | ||
28371 | main () | ||
28372 | { | ||
28373 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
28374 | ; | ||
28375 | return 0; | ||
28376 | } | ||
28377 | _ACEOF | ||
28378 | rm -f conftest.$ac_objext | ||
28379 | if { (ac_try="$ac_compile" | ||
28380 | case "(($ac_try" in | ||
28381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28382 | *) ac_try_echo=$ac_try;; | ||
28383 | esac | ||
28384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28385 | (eval "$ac_compile") 2>conftest.er1 | ||
28386 | ac_status=$? | ||
28387 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28388 | rm -f conftest.er1 | ||
28389 | cat conftest.err >&5 | ||
28390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28391 | (exit $ac_status); } && { | ||
28392 | test -z "$ac_c_werror_flag" || | ||
28393 | test ! -s conftest.err | ||
28394 | } && test -s conftest.$ac_objext; then | ||
28395 | ac_cv_have_struct_addrinfo="yes" | ||
28396 | else | ||
28397 | echo "$as_me: failed program was:" >&5 | ||
28398 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28399 | |||
28400 | ac_cv_have_struct_addrinfo="no" | ||
28401 | |||
28402 | fi | ||
28403 | |||
28404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28405 | |||
28406 | fi | ||
28407 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
28408 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; } | ||
28409 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
28410 | |||
28411 | cat >>confdefs.h <<\_ACEOF | ||
28412 | #define HAVE_STRUCT_ADDRINFO 1 | ||
28413 | _ACEOF | ||
28414 | |||
28415 | fi | ||
28416 | |||
28417 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
28418 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | ||
28419 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
28420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28421 | else | ||
28422 | |||
28423 | cat >conftest.$ac_ext <<_ACEOF | ||
28424 | /* confdefs.h. */ | ||
28425 | _ACEOF | ||
28426 | cat confdefs.h >>conftest.$ac_ext | ||
28427 | cat >>conftest.$ac_ext <<_ACEOF | ||
28428 | /* end confdefs.h. */ | ||
28429 | #include <sys/time.h> | ||
28430 | int | ||
28431 | main () | ||
28432 | { | ||
28433 | struct timeval tv; tv.tv_sec = 1; | ||
28434 | ; | ||
28435 | return 0; | ||
28436 | } | ||
28437 | _ACEOF | ||
28438 | rm -f conftest.$ac_objext | ||
28439 | if { (ac_try="$ac_compile" | ||
28440 | case "(($ac_try" in | ||
28441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28442 | *) ac_try_echo=$ac_try;; | ||
28443 | esac | ||
28444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28445 | (eval "$ac_compile") 2>conftest.er1 | ||
28446 | ac_status=$? | ||
28447 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28448 | rm -f conftest.er1 | ||
28449 | cat conftest.err >&5 | ||
28450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28451 | (exit $ac_status); } && { | ||
28452 | test -z "$ac_c_werror_flag" || | ||
28453 | test ! -s conftest.err | ||
28454 | } && test -s conftest.$ac_objext; then | ||
28455 | ac_cv_have_struct_timeval="yes" | ||
28456 | else | ||
28457 | echo "$as_me: failed program was:" >&5 | ||
28458 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28459 | |||
28460 | ac_cv_have_struct_timeval="no" | ||
28461 | |||
28462 | fi | ||
28463 | |||
28464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28465 | |||
28466 | fi | ||
28467 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
28468 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; } | ||
28469 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
28470 | |||
28471 | cat >>confdefs.h <<\_ACEOF | ||
28472 | #define HAVE_STRUCT_TIMEVAL 1 | ||
28473 | _ACEOF | ||
28474 | |||
28475 | have_struct_timeval=1 | ||
28476 | fi | ||
28477 | |||
28478 | { echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
28479 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } | ||
28480 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
28481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28482 | else | ||
28483 | cat >conftest.$ac_ext <<_ACEOF | ||
28484 | /* confdefs.h. */ | ||
28485 | _ACEOF | ||
28486 | cat confdefs.h >>conftest.$ac_ext | ||
28487 | cat >>conftest.$ac_ext <<_ACEOF | ||
28488 | /* end confdefs.h. */ | ||
28489 | $ac_includes_default | ||
28490 | typedef struct timespec ac__type_new_; | ||
28491 | int | ||
28492 | main () | ||
28493 | { | ||
28494 | if ((ac__type_new_ *) 0) | ||
28495 | return 0; | ||
28496 | if (sizeof (ac__type_new_)) | ||
28497 | return 0; | ||
28498 | ; | ||
28499 | return 0; | ||
28500 | } | ||
28501 | _ACEOF | ||
28502 | rm -f conftest.$ac_objext | ||
28503 | if { (ac_try="$ac_compile" | ||
28504 | case "(($ac_try" in | ||
28505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28506 | *) ac_try_echo=$ac_try;; | ||
28507 | esac | ||
28508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28509 | (eval "$ac_compile") 2>conftest.er1 | ||
28510 | ac_status=$? | ||
28511 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28512 | rm -f conftest.er1 | ||
28513 | cat conftest.err >&5 | ||
28514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28515 | (exit $ac_status); } && { | ||
28516 | test -z "$ac_c_werror_flag" || | ||
28517 | test ! -s conftest.err | ||
28518 | } && test -s conftest.$ac_objext; then | ||
28519 | ac_cv_type_struct_timespec=yes | ||
28520 | else | ||
28521 | echo "$as_me: failed program was:" >&5 | ||
28522 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28523 | |||
28524 | ac_cv_type_struct_timespec=no | ||
28525 | fi | ||
28526 | |||
28527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28528 | fi | ||
28529 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
28530 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; } | ||
28531 | if test $ac_cv_type_struct_timespec = yes; then | ||
28532 | |||
28533 | cat >>confdefs.h <<_ACEOF | ||
28534 | #define HAVE_STRUCT_TIMESPEC 1 | ||
28535 | _ACEOF | ||
28536 | |||
28537 | |||
28538 | fi | ||
28539 | |||
28540 | |||
28541 | # We need int64_t or else certian parts of the compile will fail. | ||
28542 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
28543 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
28544 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
28545 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
28546 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
28547 | echo "" | ||
28548 | exit 1; | ||
28549 | else | ||
28550 | if test "$cross_compiling" = yes; then | ||
28551 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
28552 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
28553 | |||
28554 | else | ||
28555 | cat >conftest.$ac_ext <<_ACEOF | ||
28556 | /* confdefs.h. */ | ||
28557 | _ACEOF | ||
28558 | cat confdefs.h >>conftest.$ac_ext | ||
28559 | cat >>conftest.$ac_ext <<_ACEOF | ||
28560 | /* end confdefs.h. */ | ||
28561 | |||
28562 | #include <stdio.h> | ||
28563 | #include <string.h> | ||
28564 | #ifdef HAVE_SNPRINTF | ||
28565 | main() | ||
28566 | { | ||
28567 | char buf[50]; | ||
28568 | char expected_out[50]; | ||
28569 | int mazsize = 50 ; | ||
28570 | #if (SIZEOF_LONG_INT == 8) | ||
28571 | long int num = 0x7fffffffffffffff; | ||
28572 | #else | ||
28573 | long long num = 0x7fffffffffffffffll; | ||
28574 | #endif | ||
28575 | strcpy(expected_out, "9223372036854775807"); | ||
28576 | snprintf(buf, mazsize, "%lld", num); | ||
28577 | if(strcmp(buf, expected_out) != 0) | ||
28578 | exit(1); | ||
28579 | exit(0); | ||
28580 | } | ||
28581 | #else | ||
28582 | main() { exit(0); } | ||
28583 | #endif | ||
28584 | |||
28585 | _ACEOF | ||
28586 | rm -f conftest$ac_exeext | ||
28587 | if { (ac_try="$ac_link" | ||
28588 | case "(($ac_try" in | ||
28589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28590 | *) ac_try_echo=$ac_try;; | ||
28591 | esac | ||
28592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28593 | (eval "$ac_link") 2>&5 | ||
28594 | ac_status=$? | ||
28595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28596 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
28597 | { (case "(($ac_try" in | ||
28598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28599 | *) ac_try_echo=$ac_try;; | ||
28600 | esac | ||
28601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28602 | (eval "$ac_try") 2>&5 | ||
28603 | ac_status=$? | ||
28604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28605 | (exit $ac_status); }; }; then | ||
28606 | true | ||
28607 | else | ||
28608 | echo "$as_me: program exited with status $ac_status" >&5 | ||
28609 | echo "$as_me: failed program was:" >&5 | ||
28610 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28611 | |||
28612 | ( exit $ac_status ) | ||
28613 | cat >>confdefs.h <<\_ACEOF | ||
28614 | #define BROKEN_SNPRINTF 1 | ||
28615 | _ACEOF | ||
28616 | |||
28617 | fi | ||
28618 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
28619 | fi | ||
28620 | |||
28621 | |||
28622 | fi | ||
28623 | |||
28624 | |||
28625 | # look for field 'ut_host' in header 'utmp.h' | ||
28626 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28627 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
28628 | { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
28629 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; } | ||
28630 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28632 | else | ||
28633 | |||
28634 | cat >conftest.$ac_ext <<_ACEOF | ||
28635 | /* confdefs.h. */ | ||
28636 | _ACEOF | ||
28637 | cat confdefs.h >>conftest.$ac_ext | ||
28638 | cat >>conftest.$ac_ext <<_ACEOF | ||
28639 | /* end confdefs.h. */ | ||
28640 | #include <utmp.h> | ||
28641 | |||
28642 | _ACEOF | ||
28643 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28644 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
28645 | eval "$ossh_varname=yes" | ||
28646 | else | ||
28647 | eval "$ossh_varname=no" | ||
28648 | fi | ||
28649 | rm -f conftest* | ||
28650 | |||
28651 | fi | ||
28652 | |||
28653 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28654 | if test -n "`echo $ossh_varname`"; then | ||
28655 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28656 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28657 | if test "x$ossh_result" = "xyes"; then | ||
28658 | |||
28659 | cat >>confdefs.h <<\_ACEOF | ||
28660 | #define HAVE_HOST_IN_UTMP 1 | ||
28661 | _ACEOF | ||
28662 | |||
28663 | fi | ||
28664 | else | ||
28665 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28666 | echo "${ECHO_T}no" >&6; } | ||
28667 | fi | ||
28668 | |||
28669 | |||
28670 | # look for field 'ut_host' in header 'utmpx.h' | ||
28671 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
28672 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
28673 | { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
28674 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; } | ||
28675 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28677 | else | ||
28678 | |||
28679 | cat >conftest.$ac_ext <<_ACEOF | ||
28680 | /* confdefs.h. */ | ||
28681 | _ACEOF | ||
28682 | cat confdefs.h >>conftest.$ac_ext | ||
28683 | cat >>conftest.$ac_ext <<_ACEOF | ||
28684 | /* end confdefs.h. */ | ||
28685 | #include <utmpx.h> | ||
28686 | |||
28687 | _ACEOF | ||
28688 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28689 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
28690 | eval "$ossh_varname=yes" | ||
28691 | else | ||
28692 | eval "$ossh_varname=no" | ||
28693 | fi | ||
28694 | rm -f conftest* | ||
28695 | |||
28696 | fi | ||
28697 | |||
28698 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28699 | if test -n "`echo $ossh_varname`"; then | ||
28700 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28701 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28702 | if test "x$ossh_result" = "xyes"; then | ||
28703 | |||
28704 | cat >>confdefs.h <<\_ACEOF | ||
28705 | #define HAVE_HOST_IN_UTMPX 1 | ||
28706 | _ACEOF | ||
28707 | |||
28708 | fi | ||
28709 | else | ||
28710 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28711 | echo "${ECHO_T}no" >&6; } | ||
28712 | fi | ||
28713 | |||
28714 | |||
28715 | # look for field 'syslen' in header 'utmpx.h' | ||
28716 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
28717 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
28718 | { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
28719 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; } | ||
28720 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28722 | else | ||
28723 | |||
28724 | cat >conftest.$ac_ext <<_ACEOF | ||
28725 | /* confdefs.h. */ | ||
28726 | _ACEOF | ||
28727 | cat confdefs.h >>conftest.$ac_ext | ||
28728 | cat >>conftest.$ac_ext <<_ACEOF | ||
28729 | /* end confdefs.h. */ | ||
28730 | #include <utmpx.h> | ||
28731 | |||
28732 | _ACEOF | ||
28733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28734 | $EGREP "syslen" >/dev/null 2>&1; then | ||
28735 | eval "$ossh_varname=yes" | ||
28736 | else | ||
28737 | eval "$ossh_varname=no" | ||
28738 | fi | ||
28739 | rm -f conftest* | ||
28740 | |||
28741 | fi | ||
28742 | |||
28743 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28744 | if test -n "`echo $ossh_varname`"; then | ||
28745 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28746 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28747 | if test "x$ossh_result" = "xyes"; then | ||
28748 | |||
28749 | cat >>confdefs.h <<\_ACEOF | ||
28750 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
28751 | _ACEOF | ||
28752 | |||
28753 | fi | ||
28754 | else | ||
28755 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28756 | echo "${ECHO_T}no" >&6; } | ||
28757 | fi | ||
28758 | |||
28759 | |||
28760 | # look for field 'ut_pid' in header 'utmp.h' | ||
28761 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28762 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
28763 | { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
28764 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; } | ||
28765 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28767 | else | ||
28768 | |||
28769 | cat >conftest.$ac_ext <<_ACEOF | ||
28770 | /* confdefs.h. */ | ||
28771 | _ACEOF | ||
28772 | cat confdefs.h >>conftest.$ac_ext | ||
28773 | cat >>conftest.$ac_ext <<_ACEOF | ||
28774 | /* end confdefs.h. */ | ||
28775 | #include <utmp.h> | ||
28776 | |||
28777 | _ACEOF | ||
28778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28779 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
28780 | eval "$ossh_varname=yes" | ||
28781 | else | ||
28782 | eval "$ossh_varname=no" | ||
28783 | fi | ||
28784 | rm -f conftest* | ||
28785 | |||
28786 | fi | ||
28787 | |||
28788 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28789 | if test -n "`echo $ossh_varname`"; then | ||
28790 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28791 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28792 | if test "x$ossh_result" = "xyes"; then | ||
28793 | |||
28794 | cat >>confdefs.h <<\_ACEOF | ||
28795 | #define HAVE_PID_IN_UTMP 1 | ||
28796 | _ACEOF | ||
28797 | |||
28798 | fi | ||
28799 | else | ||
28800 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28801 | echo "${ECHO_T}no" >&6; } | ||
28802 | fi | ||
28803 | |||
28804 | |||
28805 | # look for field 'ut_type' in header 'utmp.h' | ||
28806 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28807 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
28808 | { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
28809 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; } | ||
28810 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28812 | else | ||
28813 | |||
28814 | cat >conftest.$ac_ext <<_ACEOF | ||
28815 | /* confdefs.h. */ | ||
28816 | _ACEOF | ||
28817 | cat confdefs.h >>conftest.$ac_ext | ||
28818 | cat >>conftest.$ac_ext <<_ACEOF | ||
28819 | /* end confdefs.h. */ | ||
28820 | #include <utmp.h> | ||
28821 | |||
28822 | _ACEOF | ||
28823 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28824 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
28825 | eval "$ossh_varname=yes" | ||
28826 | else | ||
28827 | eval "$ossh_varname=no" | ||
28828 | fi | ||
28829 | rm -f conftest* | ||
28830 | |||
28831 | fi | ||
28832 | |||
28833 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28834 | if test -n "`echo $ossh_varname`"; then | ||
28835 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28836 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28837 | if test "x$ossh_result" = "xyes"; then | ||
28838 | |||
28839 | cat >>confdefs.h <<\_ACEOF | ||
28840 | #define HAVE_TYPE_IN_UTMP 1 | ||
28841 | _ACEOF | ||
28842 | |||
28843 | fi | ||
28844 | else | ||
28845 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28846 | echo "${ECHO_T}no" >&6; } | ||
28847 | fi | ||
28848 | |||
28849 | |||
28850 | # look for field 'ut_type' in header 'utmpx.h' | ||
28851 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
28852 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
28853 | { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
28854 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; } | ||
28855 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28857 | else | ||
28858 | |||
28859 | cat >conftest.$ac_ext <<_ACEOF | ||
28860 | /* confdefs.h. */ | ||
28861 | _ACEOF | ||
28862 | cat confdefs.h >>conftest.$ac_ext | ||
28863 | cat >>conftest.$ac_ext <<_ACEOF | ||
28864 | /* end confdefs.h. */ | ||
28865 | #include <utmpx.h> | ||
28866 | |||
28867 | _ACEOF | ||
28868 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28869 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
28870 | eval "$ossh_varname=yes" | ||
28871 | else | ||
28872 | eval "$ossh_varname=no" | ||
28873 | fi | ||
28874 | rm -f conftest* | ||
28875 | |||
28876 | fi | ||
28877 | |||
28878 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28879 | if test -n "`echo $ossh_varname`"; then | ||
28880 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28881 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28882 | if test "x$ossh_result" = "xyes"; then | ||
28883 | |||
28884 | cat >>confdefs.h <<\_ACEOF | ||
28885 | #define HAVE_TYPE_IN_UTMPX 1 | ||
28886 | _ACEOF | ||
28887 | |||
28888 | fi | ||
28889 | else | ||
28890 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28891 | echo "${ECHO_T}no" >&6; } | ||
28892 | fi | ||
28893 | |||
28894 | |||
28895 | # look for field 'ut_tv' in header 'utmp.h' | ||
28896 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28897 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
28898 | { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
28899 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; } | ||
28900 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28902 | else | ||
28903 | |||
28904 | cat >conftest.$ac_ext <<_ACEOF | ||
28905 | /* confdefs.h. */ | ||
28906 | _ACEOF | ||
28907 | cat confdefs.h >>conftest.$ac_ext | ||
28908 | cat >>conftest.$ac_ext <<_ACEOF | ||
28909 | /* end confdefs.h. */ | ||
28910 | #include <utmp.h> | ||
28911 | |||
28912 | _ACEOF | ||
28913 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28914 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
28915 | eval "$ossh_varname=yes" | ||
28916 | else | ||
28917 | eval "$ossh_varname=no" | ||
28918 | fi | ||
28919 | rm -f conftest* | ||
28920 | |||
28921 | fi | ||
28922 | |||
28923 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28924 | if test -n "`echo $ossh_varname`"; then | ||
28925 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28926 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28927 | if test "x$ossh_result" = "xyes"; then | ||
28928 | |||
28929 | cat >>confdefs.h <<\_ACEOF | ||
28930 | #define HAVE_TV_IN_UTMP 1 | ||
28931 | _ACEOF | ||
28932 | |||
28933 | fi | ||
28934 | else | ||
28935 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28936 | echo "${ECHO_T}no" >&6; } | ||
28937 | fi | ||
28938 | |||
28939 | |||
28940 | # look for field 'ut_id' in header 'utmp.h' | ||
28941 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28942 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
28943 | { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
28944 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; } | ||
28945 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28947 | else | ||
28948 | |||
28949 | cat >conftest.$ac_ext <<_ACEOF | ||
28950 | /* confdefs.h. */ | ||
28951 | _ACEOF | ||
28952 | cat confdefs.h >>conftest.$ac_ext | ||
28953 | cat >>conftest.$ac_ext <<_ACEOF | ||
28954 | /* end confdefs.h. */ | ||
28955 | #include <utmp.h> | ||
28956 | |||
28957 | _ACEOF | ||
28958 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28959 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
28960 | eval "$ossh_varname=yes" | ||
28961 | else | ||
28962 | eval "$ossh_varname=no" | ||
28963 | fi | ||
28964 | rm -f conftest* | ||
28965 | |||
28966 | fi | ||
28967 | |||
28968 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28969 | if test -n "`echo $ossh_varname`"; then | ||
28970 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28971 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28972 | if test "x$ossh_result" = "xyes"; then | ||
28973 | |||
28974 | cat >>confdefs.h <<\_ACEOF | ||
28975 | #define HAVE_ID_IN_UTMP 1 | ||
28976 | _ACEOF | ||
28977 | |||
28978 | fi | ||
28979 | else | ||
28980 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28981 | echo "${ECHO_T}no" >&6; } | ||
28982 | fi | ||
28983 | |||
28984 | |||
28985 | # look for field 'ut_id' in header 'utmpx.h' | ||
28986 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
28987 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
28988 | { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
28989 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; } | ||
28990 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28992 | else | ||
28993 | |||
28994 | cat >conftest.$ac_ext <<_ACEOF | ||
28995 | /* confdefs.h. */ | ||
28996 | _ACEOF | ||
28997 | cat confdefs.h >>conftest.$ac_ext | ||
28998 | cat >>conftest.$ac_ext <<_ACEOF | ||
28999 | /* end confdefs.h. */ | ||
29000 | #include <utmpx.h> | ||
29001 | |||
29002 | _ACEOF | ||
29003 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29004 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
29005 | eval "$ossh_varname=yes" | ||
29006 | else | ||
29007 | eval "$ossh_varname=no" | ||
29008 | fi | ||
29009 | rm -f conftest* | ||
29010 | |||
29011 | fi | ||
29012 | |||
29013 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29014 | if test -n "`echo $ossh_varname`"; then | ||
29015 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29016 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29017 | if test "x$ossh_result" = "xyes"; then | ||
29018 | |||
29019 | cat >>confdefs.h <<\_ACEOF | ||
29020 | #define HAVE_ID_IN_UTMPX 1 | ||
29021 | _ACEOF | ||
29022 | |||
29023 | fi | ||
29024 | else | ||
29025 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29026 | echo "${ECHO_T}no" >&6; } | ||
29027 | fi | ||
29028 | |||
29029 | |||
29030 | # look for field 'ut_addr' in header 'utmp.h' | ||
29031 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29032 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
29033 | { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
29034 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; } | ||
29035 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29037 | else | ||
29038 | |||
29039 | cat >conftest.$ac_ext <<_ACEOF | ||
29040 | /* confdefs.h. */ | ||
29041 | _ACEOF | ||
29042 | cat confdefs.h >>conftest.$ac_ext | ||
29043 | cat >>conftest.$ac_ext <<_ACEOF | ||
29044 | /* end confdefs.h. */ | ||
29045 | #include <utmp.h> | ||
29046 | |||
29047 | _ACEOF | ||
29048 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29049 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
29050 | eval "$ossh_varname=yes" | ||
29051 | else | ||
29052 | eval "$ossh_varname=no" | ||
29053 | fi | ||
29054 | rm -f conftest* | ||
29055 | |||
29056 | fi | ||
29057 | |||
29058 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29059 | if test -n "`echo $ossh_varname`"; then | ||
29060 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29061 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29062 | if test "x$ossh_result" = "xyes"; then | ||
29063 | |||
29064 | cat >>confdefs.h <<\_ACEOF | ||
29065 | #define HAVE_ADDR_IN_UTMP 1 | ||
29066 | _ACEOF | ||
29067 | |||
29068 | fi | ||
29069 | else | ||
29070 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29071 | echo "${ECHO_T}no" >&6; } | ||
29072 | fi | ||
29073 | |||
29074 | |||
29075 | # look for field 'ut_addr' in header 'utmpx.h' | ||
29076 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29077 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
29078 | { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
29079 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; } | ||
29080 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29082 | else | ||
29083 | |||
29084 | cat >conftest.$ac_ext <<_ACEOF | ||
29085 | /* confdefs.h. */ | ||
29086 | _ACEOF | ||
29087 | cat confdefs.h >>conftest.$ac_ext | ||
29088 | cat >>conftest.$ac_ext <<_ACEOF | ||
29089 | /* end confdefs.h. */ | ||
29090 | #include <utmpx.h> | ||
29091 | |||
29092 | _ACEOF | ||
29093 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29094 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
29095 | eval "$ossh_varname=yes" | ||
29096 | else | ||
29097 | eval "$ossh_varname=no" | ||
29098 | fi | ||
29099 | rm -f conftest* | ||
29100 | |||
29101 | fi | ||
29102 | |||
29103 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29104 | if test -n "`echo $ossh_varname`"; then | ||
29105 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29106 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29107 | if test "x$ossh_result" = "xyes"; then | ||
29108 | |||
29109 | cat >>confdefs.h <<\_ACEOF | ||
29110 | #define HAVE_ADDR_IN_UTMPX 1 | ||
29111 | _ACEOF | ||
29112 | |||
29113 | fi | ||
29114 | else | ||
29115 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29116 | echo "${ECHO_T}no" >&6; } | ||
29117 | fi | ||
29118 | |||
29119 | |||
29120 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
29121 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29122 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
29123 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
29124 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; } | ||
29125 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29127 | else | ||
29128 | |||
29129 | cat >conftest.$ac_ext <<_ACEOF | ||
29130 | /* confdefs.h. */ | ||
29131 | _ACEOF | ||
29132 | cat confdefs.h >>conftest.$ac_ext | ||
29133 | cat >>conftest.$ac_ext <<_ACEOF | ||
29134 | /* end confdefs.h. */ | ||
29135 | #include <utmp.h> | ||
29136 | |||
29137 | _ACEOF | ||
29138 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29139 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
29140 | eval "$ossh_varname=yes" | ||
29141 | else | ||
29142 | eval "$ossh_varname=no" | ||
29143 | fi | ||
29144 | rm -f conftest* | ||
29145 | |||
29146 | fi | ||
29147 | |||
29148 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29149 | if test -n "`echo $ossh_varname`"; then | ||
29150 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29151 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29152 | if test "x$ossh_result" = "xyes"; then | ||
29153 | |||
29154 | cat >>confdefs.h <<\_ACEOF | ||
29155 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
29156 | _ACEOF | ||
29157 | |||
29158 | fi | ||
29159 | else | ||
29160 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29161 | echo "${ECHO_T}no" >&6; } | ||
29162 | fi | ||
29163 | |||
29164 | |||
29165 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
29166 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29167 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
29168 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
29169 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; } | ||
29170 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29172 | else | ||
29173 | |||
29174 | cat >conftest.$ac_ext <<_ACEOF | ||
29175 | /* confdefs.h. */ | ||
29176 | _ACEOF | ||
29177 | cat confdefs.h >>conftest.$ac_ext | ||
29178 | cat >>conftest.$ac_ext <<_ACEOF | ||
29179 | /* end confdefs.h. */ | ||
29180 | #include <utmpx.h> | ||
29181 | |||
29182 | _ACEOF | ||
29183 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29184 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
29185 | eval "$ossh_varname=yes" | ||
29186 | else | ||
29187 | eval "$ossh_varname=no" | ||
29188 | fi | ||
29189 | rm -f conftest* | ||
29190 | |||
29191 | fi | ||
29192 | |||
29193 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29194 | if test -n "`echo $ossh_varname`"; then | ||
29195 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29196 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29197 | if test "x$ossh_result" = "xyes"; then | ||
29198 | |||
29199 | cat >>confdefs.h <<\_ACEOF | ||
29200 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
29201 | _ACEOF | ||
29202 | |||
29203 | fi | ||
29204 | else | ||
29205 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29206 | echo "${ECHO_T}no" >&6; } | ||
29207 | fi | ||
29208 | |||
29209 | |||
29210 | # look for field 'ut_exit' in header 'utmp.h' | ||
29211 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29212 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
29213 | { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
29214 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; } | ||
29215 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29217 | else | ||
29218 | |||
29219 | cat >conftest.$ac_ext <<_ACEOF | ||
29220 | /* confdefs.h. */ | ||
29221 | _ACEOF | ||
29222 | cat confdefs.h >>conftest.$ac_ext | ||
29223 | cat >>conftest.$ac_ext <<_ACEOF | ||
29224 | /* end confdefs.h. */ | ||
29225 | #include <utmp.h> | ||
29226 | |||
29227 | _ACEOF | ||
29228 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29229 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
29230 | eval "$ossh_varname=yes" | ||
29231 | else | ||
29232 | eval "$ossh_varname=no" | ||
29233 | fi | ||
29234 | rm -f conftest* | ||
29235 | |||
29236 | fi | ||
29237 | |||
29238 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29239 | if test -n "`echo $ossh_varname`"; then | ||
29240 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29241 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29242 | if test "x$ossh_result" = "xyes"; then | ||
29243 | |||
29244 | cat >>confdefs.h <<\_ACEOF | ||
29245 | #define HAVE_EXIT_IN_UTMP 1 | ||
29246 | _ACEOF | ||
29247 | |||
29248 | fi | ||
29249 | else | ||
29250 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29251 | echo "${ECHO_T}no" >&6; } | ||
29252 | fi | ||
29253 | |||
29254 | |||
29255 | # look for field 'ut_time' in header 'utmp.h' | ||
29256 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29257 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
29258 | { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
29259 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; } | ||
29260 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29262 | else | ||
29263 | |||
29264 | cat >conftest.$ac_ext <<_ACEOF | ||
29265 | /* confdefs.h. */ | ||
29266 | _ACEOF | ||
29267 | cat confdefs.h >>conftest.$ac_ext | ||
29268 | cat >>conftest.$ac_ext <<_ACEOF | ||
29269 | /* end confdefs.h. */ | ||
29270 | #include <utmp.h> | ||
29271 | |||
29272 | _ACEOF | ||
29273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29274 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
29275 | eval "$ossh_varname=yes" | ||
29276 | else | ||
29277 | eval "$ossh_varname=no" | ||
29278 | fi | ||
29279 | rm -f conftest* | ||
29280 | |||
29281 | fi | ||
29282 | |||
29283 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29284 | if test -n "`echo $ossh_varname`"; then | ||
29285 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29286 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29287 | if test "x$ossh_result" = "xyes"; then | ||
29288 | |||
29289 | cat >>confdefs.h <<\_ACEOF | ||
29290 | #define HAVE_TIME_IN_UTMP 1 | ||
29291 | _ACEOF | ||
29292 | |||
29293 | fi | ||
29294 | else | ||
29295 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29296 | echo "${ECHO_T}no" >&6; } | ||
29297 | fi | ||
29298 | |||
29299 | |||
29300 | # look for field 'ut_time' in header 'utmpx.h' | ||
29301 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29302 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
29303 | { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
29304 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; } | ||
29305 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29307 | else | ||
29308 | |||
29309 | cat >conftest.$ac_ext <<_ACEOF | ||
29310 | /* confdefs.h. */ | ||
29311 | _ACEOF | ||
29312 | cat confdefs.h >>conftest.$ac_ext | ||
29313 | cat >>conftest.$ac_ext <<_ACEOF | ||
29314 | /* end confdefs.h. */ | ||
29315 | #include <utmpx.h> | ||
29316 | |||
29317 | _ACEOF | ||
29318 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29319 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
29320 | eval "$ossh_varname=yes" | ||
29321 | else | ||
29322 | eval "$ossh_varname=no" | ||
29323 | fi | ||
29324 | rm -f conftest* | ||
29325 | |||
29326 | fi | ||
29327 | |||
29328 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29329 | if test -n "`echo $ossh_varname`"; then | ||
29330 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29331 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29332 | if test "x$ossh_result" = "xyes"; then | ||
29333 | |||
29334 | cat >>confdefs.h <<\_ACEOF | ||
29335 | #define HAVE_TIME_IN_UTMPX 1 | ||
29336 | _ACEOF | ||
29337 | |||
29338 | fi | ||
29339 | else | ||
29340 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29341 | echo "${ECHO_T}no" >&6; } | ||
29342 | fi | ||
29343 | |||
29344 | |||
29345 | # look for field 'ut_tv' in header 'utmpx.h' | ||
29346 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29347 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
29348 | { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
29349 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; } | ||
29350 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29352 | else | ||
29353 | |||
29354 | cat >conftest.$ac_ext <<_ACEOF | ||
29355 | /* confdefs.h. */ | ||
29356 | _ACEOF | ||
29357 | cat confdefs.h >>conftest.$ac_ext | ||
29358 | cat >>conftest.$ac_ext <<_ACEOF | ||
29359 | /* end confdefs.h. */ | ||
29360 | #include <utmpx.h> | ||
29361 | |||
29362 | _ACEOF | ||
29363 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29364 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
29365 | eval "$ossh_varname=yes" | ||
29366 | else | ||
29367 | eval "$ossh_varname=no" | ||
29368 | fi | ||
29369 | rm -f conftest* | ||
29370 | |||
29371 | fi | ||
29372 | |||
29373 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29374 | if test -n "`echo $ossh_varname`"; then | ||
29375 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29376 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29377 | if test "x$ossh_result" = "xyes"; then | ||
29378 | |||
29379 | cat >>confdefs.h <<\_ACEOF | ||
29380 | #define HAVE_TV_IN_UTMPX 1 | ||
29381 | _ACEOF | ||
29382 | |||
29383 | fi | ||
29384 | else | ||
29385 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29386 | echo "${ECHO_T}no" >&6; } | ||
29387 | fi | ||
29388 | |||
29389 | |||
29390 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
29391 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } | ||
29392 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
29393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29394 | else | ||
29395 | cat >conftest.$ac_ext <<_ACEOF | ||
29396 | /* confdefs.h. */ | ||
29397 | _ACEOF | ||
29398 | cat confdefs.h >>conftest.$ac_ext | ||
29399 | cat >>conftest.$ac_ext <<_ACEOF | ||
29400 | /* end confdefs.h. */ | ||
29401 | $ac_includes_default | ||
29402 | int | ||
29403 | main () | ||
29404 | { | ||
29405 | static struct stat ac_aggr; | ||
29406 | if (ac_aggr.st_blksize) | ||
29407 | return 0; | ||
29408 | ; | ||
29409 | return 0; | ||
29410 | } | ||
29411 | _ACEOF | ||
29412 | rm -f conftest.$ac_objext | ||
29413 | if { (ac_try="$ac_compile" | ||
29414 | case "(($ac_try" in | ||
29415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29416 | *) ac_try_echo=$ac_try;; | ||
29417 | esac | ||
29418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29419 | (eval "$ac_compile") 2>conftest.er1 | ||
29420 | ac_status=$? | ||
29421 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29422 | rm -f conftest.er1 | ||
29423 | cat conftest.err >&5 | ||
29424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29425 | (exit $ac_status); } && { | ||
29426 | test -z "$ac_c_werror_flag" || | ||
29427 | test ! -s conftest.err | ||
29428 | } && test -s conftest.$ac_objext; then | ||
29429 | ac_cv_member_struct_stat_st_blksize=yes | ||
29430 | else | ||
29431 | echo "$as_me: failed program was:" >&5 | ||
29432 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29433 | |||
29434 | cat >conftest.$ac_ext <<_ACEOF | ||
29435 | /* confdefs.h. */ | ||
29436 | _ACEOF | ||
29437 | cat confdefs.h >>conftest.$ac_ext | ||
29438 | cat >>conftest.$ac_ext <<_ACEOF | ||
29439 | /* end confdefs.h. */ | ||
29440 | $ac_includes_default | ||
29441 | int | ||
29442 | main () | ||
29443 | { | ||
29444 | static struct stat ac_aggr; | ||
29445 | if (sizeof ac_aggr.st_blksize) | ||
29446 | return 0; | ||
29447 | ; | ||
29448 | return 0; | ||
29449 | } | ||
29450 | _ACEOF | ||
29451 | rm -f conftest.$ac_objext | ||
29452 | if { (ac_try="$ac_compile" | ||
29453 | case "(($ac_try" in | ||
29454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29455 | *) ac_try_echo=$ac_try;; | ||
29456 | esac | ||
29457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29458 | (eval "$ac_compile") 2>conftest.er1 | ||
29459 | ac_status=$? | ||
29460 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29461 | rm -f conftest.er1 | ||
29462 | cat conftest.err >&5 | ||
29463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29464 | (exit $ac_status); } && { | ||
29465 | test -z "$ac_c_werror_flag" || | ||
29466 | test ! -s conftest.err | ||
29467 | } && test -s conftest.$ac_objext; then | ||
29468 | ac_cv_member_struct_stat_st_blksize=yes | ||
29469 | else | ||
29470 | echo "$as_me: failed program was:" >&5 | ||
29471 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29472 | |||
29473 | ac_cv_member_struct_stat_st_blksize=no | ||
29474 | fi | ||
29475 | |||
29476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29477 | fi | ||
29478 | |||
29479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29480 | fi | ||
29481 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
29482 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } | ||
29483 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
29484 | |||
29485 | cat >>confdefs.h <<_ACEOF | ||
29486 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
29487 | _ACEOF | ||
29488 | |||
29489 | |||
29490 | fi | ||
29491 | |||
29492 | { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5 | ||
29493 | echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; } | ||
29494 | if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then | ||
29495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29496 | else | ||
29497 | cat >conftest.$ac_ext <<_ACEOF | ||
29498 | /* confdefs.h. */ | ||
29499 | _ACEOF | ||
29500 | cat confdefs.h >>conftest.$ac_ext | ||
29501 | cat >>conftest.$ac_ext <<_ACEOF | ||
29502 | /* end confdefs.h. */ | ||
29503 | |||
29504 | #include <sys/types.h> | ||
29505 | #include <pwd.h> | ||
29506 | |||
29507 | |||
29508 | int | ||
29509 | main () | ||
29510 | { | ||
29511 | static struct passwd ac_aggr; | ||
29512 | if (ac_aggr.pw_gecos) | ||
29513 | return 0; | ||
29514 | ; | ||
29515 | return 0; | ||
29516 | } | ||
29517 | _ACEOF | ||
29518 | rm -f conftest.$ac_objext | ||
29519 | if { (ac_try="$ac_compile" | ||
29520 | case "(($ac_try" in | ||
29521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29522 | *) ac_try_echo=$ac_try;; | ||
29523 | esac | ||
29524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29525 | (eval "$ac_compile") 2>conftest.er1 | ||
29526 | ac_status=$? | ||
29527 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29528 | rm -f conftest.er1 | ||
29529 | cat conftest.err >&5 | ||
29530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29531 | (exit $ac_status); } && { | ||
29532 | test -z "$ac_c_werror_flag" || | ||
29533 | test ! -s conftest.err | ||
29534 | } && test -s conftest.$ac_objext; then | ||
29535 | ac_cv_member_struct_passwd_pw_gecos=yes | ||
29536 | else | ||
29537 | echo "$as_me: failed program was:" >&5 | ||
29538 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29539 | |||
29540 | cat >conftest.$ac_ext <<_ACEOF | ||
29541 | /* confdefs.h. */ | ||
29542 | _ACEOF | ||
29543 | cat confdefs.h >>conftest.$ac_ext | ||
29544 | cat >>conftest.$ac_ext <<_ACEOF | ||
29545 | /* end confdefs.h. */ | ||
29546 | |||
29547 | #include <sys/types.h> | ||
29548 | #include <pwd.h> | ||
29549 | |||
29550 | |||
29551 | int | ||
29552 | main () | ||
29553 | { | ||
29554 | static struct passwd ac_aggr; | ||
29555 | if (sizeof ac_aggr.pw_gecos) | ||
29556 | return 0; | ||
29557 | ; | ||
29558 | return 0; | ||
29559 | } | ||
29560 | _ACEOF | ||
29561 | rm -f conftest.$ac_objext | ||
29562 | if { (ac_try="$ac_compile" | ||
29563 | case "(($ac_try" in | ||
29564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29565 | *) ac_try_echo=$ac_try;; | ||
29566 | esac | ||
29567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29568 | (eval "$ac_compile") 2>conftest.er1 | ||
29569 | ac_status=$? | ||
29570 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29571 | rm -f conftest.er1 | ||
29572 | cat conftest.err >&5 | ||
29573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29574 | (exit $ac_status); } && { | ||
29575 | test -z "$ac_c_werror_flag" || | ||
29576 | test ! -s conftest.err | ||
29577 | } && test -s conftest.$ac_objext; then | ||
29578 | ac_cv_member_struct_passwd_pw_gecos=yes | ||
29579 | else | ||
29580 | echo "$as_me: failed program was:" >&5 | ||
29581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29582 | |||
29583 | ac_cv_member_struct_passwd_pw_gecos=no | ||
29584 | fi | ||
29585 | |||
29586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29587 | fi | ||
29588 | |||
29589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29590 | fi | ||
29591 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5 | ||
29592 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; } | ||
29593 | if test $ac_cv_member_struct_passwd_pw_gecos = yes; then | ||
29594 | |||
29595 | cat >>confdefs.h <<_ACEOF | ||
29596 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||
29597 | _ACEOF | ||
29598 | |||
29599 | |||
29600 | fi | ||
29601 | { echo "$as_me:$LINENO: checking for struct passwd.pw_class" >&5 | ||
29602 | echo $ECHO_N "checking for struct passwd.pw_class... $ECHO_C" >&6; } | ||
29603 | if test "${ac_cv_member_struct_passwd_pw_class+set}" = set; then | ||
29604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29605 | else | ||
29606 | cat >conftest.$ac_ext <<_ACEOF | ||
29607 | /* confdefs.h. */ | ||
29608 | _ACEOF | ||
29609 | cat confdefs.h >>conftest.$ac_ext | ||
29610 | cat >>conftest.$ac_ext <<_ACEOF | ||
29611 | /* end confdefs.h. */ | ||
29612 | |||
29613 | #include <sys/types.h> | ||
29614 | #include <pwd.h> | ||
29615 | |||
29616 | |||
29617 | int | ||
29618 | main () | ||
29619 | { | ||
29620 | static struct passwd ac_aggr; | ||
29621 | if (ac_aggr.pw_class) | ||
29622 | return 0; | ||
29623 | ; | ||
29624 | return 0; | ||
29625 | } | ||
29626 | _ACEOF | ||
29627 | rm -f conftest.$ac_objext | ||
29628 | if { (ac_try="$ac_compile" | ||
29629 | case "(($ac_try" in | ||
29630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29631 | *) ac_try_echo=$ac_try;; | ||
29632 | esac | ||
29633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29634 | (eval "$ac_compile") 2>conftest.er1 | ||
29635 | ac_status=$? | ||
29636 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29637 | rm -f conftest.er1 | ||
29638 | cat conftest.err >&5 | ||
29639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29640 | (exit $ac_status); } && { | ||
29641 | test -z "$ac_c_werror_flag" || | ||
29642 | test ! -s conftest.err | ||
29643 | } && test -s conftest.$ac_objext; then | ||
29644 | ac_cv_member_struct_passwd_pw_class=yes | ||
29645 | else | ||
29646 | echo "$as_me: failed program was:" >&5 | ||
29647 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29648 | |||
29649 | cat >conftest.$ac_ext <<_ACEOF | ||
29650 | /* confdefs.h. */ | ||
29651 | _ACEOF | ||
29652 | cat confdefs.h >>conftest.$ac_ext | ||
29653 | cat >>conftest.$ac_ext <<_ACEOF | ||
29654 | /* end confdefs.h. */ | ||
29655 | |||
29656 | #include <sys/types.h> | ||
29657 | #include <pwd.h> | ||
29658 | |||
29659 | |||
29660 | int | ||
29661 | main () | ||
29662 | { | ||
29663 | static struct passwd ac_aggr; | ||
29664 | if (sizeof ac_aggr.pw_class) | ||
29665 | return 0; | ||
29666 | ; | ||
29667 | return 0; | ||
29668 | } | ||
29669 | _ACEOF | ||
29670 | rm -f conftest.$ac_objext | ||
29671 | if { (ac_try="$ac_compile" | ||
29672 | case "(($ac_try" in | ||
29673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29674 | *) ac_try_echo=$ac_try;; | ||
29675 | esac | ||
29676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29677 | (eval "$ac_compile") 2>conftest.er1 | ||
29678 | ac_status=$? | ||
29679 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29680 | rm -f conftest.er1 | ||
29681 | cat conftest.err >&5 | ||
29682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29683 | (exit $ac_status); } && { | ||
29684 | test -z "$ac_c_werror_flag" || | ||
29685 | test ! -s conftest.err | ||
29686 | } && test -s conftest.$ac_objext; then | ||
29687 | ac_cv_member_struct_passwd_pw_class=yes | ||
29688 | else | ||
29689 | echo "$as_me: failed program was:" >&5 | ||
29690 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29691 | |||
29692 | ac_cv_member_struct_passwd_pw_class=no | ||
29693 | fi | ||
29694 | |||
29695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29696 | fi | ||
29697 | |||
29698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29699 | fi | ||
29700 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_class" >&5 | ||
29701 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_class" >&6; } | ||
29702 | if test $ac_cv_member_struct_passwd_pw_class = yes; then | ||
29703 | |||
29704 | cat >>confdefs.h <<_ACEOF | ||
29705 | #define HAVE_STRUCT_PASSWD_PW_CLASS 1 | ||
29706 | _ACEOF | ||
29707 | |||
29708 | |||
29709 | fi | ||
29710 | { echo "$as_me:$LINENO: checking for struct passwd.pw_change" >&5 | ||
29711 | echo $ECHO_N "checking for struct passwd.pw_change... $ECHO_C" >&6; } | ||
29712 | if test "${ac_cv_member_struct_passwd_pw_change+set}" = set; then | ||
29713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29714 | else | ||
29715 | cat >conftest.$ac_ext <<_ACEOF | ||
29716 | /* confdefs.h. */ | ||
29717 | _ACEOF | ||
29718 | cat confdefs.h >>conftest.$ac_ext | ||
29719 | cat >>conftest.$ac_ext <<_ACEOF | ||
29720 | /* end confdefs.h. */ | ||
29721 | |||
29722 | #include <sys/types.h> | ||
29723 | #include <pwd.h> | ||
29724 | |||
29725 | |||
29726 | int | ||
29727 | main () | ||
29728 | { | ||
29729 | static struct passwd ac_aggr; | ||
29730 | if (ac_aggr.pw_change) | ||
29731 | return 0; | ||
29732 | ; | ||
29733 | return 0; | ||
29734 | } | ||
29735 | _ACEOF | ||
29736 | rm -f conftest.$ac_objext | ||
29737 | if { (ac_try="$ac_compile" | ||
29738 | case "(($ac_try" in | ||
29739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29740 | *) ac_try_echo=$ac_try;; | ||
29741 | esac | ||
29742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29743 | (eval "$ac_compile") 2>conftest.er1 | ||
29744 | ac_status=$? | ||
29745 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29746 | rm -f conftest.er1 | ||
29747 | cat conftest.err >&5 | ||
29748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29749 | (exit $ac_status); } && { | ||
29750 | test -z "$ac_c_werror_flag" || | ||
29751 | test ! -s conftest.err | ||
29752 | } && test -s conftest.$ac_objext; then | ||
29753 | ac_cv_member_struct_passwd_pw_change=yes | ||
29754 | else | ||
29755 | echo "$as_me: failed program was:" >&5 | ||
29756 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29757 | |||
29758 | cat >conftest.$ac_ext <<_ACEOF | ||
29759 | /* confdefs.h. */ | ||
29760 | _ACEOF | ||
29761 | cat confdefs.h >>conftest.$ac_ext | ||
29762 | cat >>conftest.$ac_ext <<_ACEOF | ||
29763 | /* end confdefs.h. */ | ||
29764 | |||
29765 | #include <sys/types.h> | ||
29766 | #include <pwd.h> | ||
29767 | |||
29768 | |||
29769 | int | ||
29770 | main () | ||
29771 | { | ||
29772 | static struct passwd ac_aggr; | ||
29773 | if (sizeof ac_aggr.pw_change) | ||
29774 | return 0; | ||
29775 | ; | ||
29776 | return 0; | ||
29777 | } | ||
29778 | _ACEOF | ||
29779 | rm -f conftest.$ac_objext | ||
29780 | if { (ac_try="$ac_compile" | ||
29781 | case "(($ac_try" in | ||
29782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29783 | *) ac_try_echo=$ac_try;; | ||
29784 | esac | ||
29785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29786 | (eval "$ac_compile") 2>conftest.er1 | ||
29787 | ac_status=$? | ||
29788 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29789 | rm -f conftest.er1 | ||
29790 | cat conftest.err >&5 | ||
29791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29792 | (exit $ac_status); } && { | ||
29793 | test -z "$ac_c_werror_flag" || | ||
29794 | test ! -s conftest.err | ||
29795 | } && test -s conftest.$ac_objext; then | ||
29796 | ac_cv_member_struct_passwd_pw_change=yes | ||
29797 | else | ||
29798 | echo "$as_me: failed program was:" >&5 | ||
29799 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29800 | |||
29801 | ac_cv_member_struct_passwd_pw_change=no | ||
29802 | fi | ||
29803 | |||
29804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29805 | fi | ||
29806 | |||
29807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29808 | fi | ||
29809 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_change" >&5 | ||
29810 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_change" >&6; } | ||
29811 | if test $ac_cv_member_struct_passwd_pw_change = yes; then | ||
29812 | |||
29813 | cat >>confdefs.h <<_ACEOF | ||
29814 | #define HAVE_STRUCT_PASSWD_PW_CHANGE 1 | ||
29815 | _ACEOF | ||
29816 | |||
29817 | |||
29818 | fi | ||
29819 | { echo "$as_me:$LINENO: checking for struct passwd.pw_expire" >&5 | ||
29820 | echo $ECHO_N "checking for struct passwd.pw_expire... $ECHO_C" >&6; } | ||
29821 | if test "${ac_cv_member_struct_passwd_pw_expire+set}" = set; then | ||
29822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29823 | else | ||
29824 | cat >conftest.$ac_ext <<_ACEOF | ||
29825 | /* confdefs.h. */ | ||
29826 | _ACEOF | ||
29827 | cat confdefs.h >>conftest.$ac_ext | ||
29828 | cat >>conftest.$ac_ext <<_ACEOF | ||
29829 | /* end confdefs.h. */ | ||
29830 | |||
29831 | #include <sys/types.h> | ||
29832 | #include <pwd.h> | ||
29833 | |||
29834 | |||
29835 | int | ||
29836 | main () | ||
29837 | { | ||
29838 | static struct passwd ac_aggr; | ||
29839 | if (ac_aggr.pw_expire) | ||
29840 | return 0; | ||
29841 | ; | ||
29842 | return 0; | ||
29843 | } | ||
29844 | _ACEOF | ||
29845 | rm -f conftest.$ac_objext | ||
29846 | if { (ac_try="$ac_compile" | ||
29847 | case "(($ac_try" in | ||
29848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29849 | *) ac_try_echo=$ac_try;; | ||
29850 | esac | ||
29851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29852 | (eval "$ac_compile") 2>conftest.er1 | ||
29853 | ac_status=$? | ||
29854 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29855 | rm -f conftest.er1 | ||
29856 | cat conftest.err >&5 | ||
29857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29858 | (exit $ac_status); } && { | ||
29859 | test -z "$ac_c_werror_flag" || | ||
29860 | test ! -s conftest.err | ||
29861 | } && test -s conftest.$ac_objext; then | ||
29862 | ac_cv_member_struct_passwd_pw_expire=yes | ||
29863 | else | ||
29864 | echo "$as_me: failed program was:" >&5 | ||
29865 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29866 | |||
29867 | cat >conftest.$ac_ext <<_ACEOF | ||
29868 | /* confdefs.h. */ | ||
29869 | _ACEOF | ||
29870 | cat confdefs.h >>conftest.$ac_ext | ||
29871 | cat >>conftest.$ac_ext <<_ACEOF | ||
29872 | /* end confdefs.h. */ | ||
29873 | |||
29874 | #include <sys/types.h> | ||
29875 | #include <pwd.h> | ||
29876 | |||
29877 | |||
29878 | int | ||
29879 | main () | ||
29880 | { | ||
29881 | static struct passwd ac_aggr; | ||
29882 | if (sizeof ac_aggr.pw_expire) | ||
29883 | return 0; | ||
29884 | ; | ||
29885 | return 0; | ||
29886 | } | ||
29887 | _ACEOF | ||
29888 | rm -f conftest.$ac_objext | ||
29889 | if { (ac_try="$ac_compile" | ||
29890 | case "(($ac_try" in | ||
29891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29892 | *) ac_try_echo=$ac_try;; | ||
29893 | esac | ||
29894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29895 | (eval "$ac_compile") 2>conftest.er1 | ||
29896 | ac_status=$? | ||
29897 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29898 | rm -f conftest.er1 | ||
29899 | cat conftest.err >&5 | ||
29900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29901 | (exit $ac_status); } && { | ||
29902 | test -z "$ac_c_werror_flag" || | ||
29903 | test ! -s conftest.err | ||
29904 | } && test -s conftest.$ac_objext; then | ||
29905 | ac_cv_member_struct_passwd_pw_expire=yes | ||
29906 | else | ||
29907 | echo "$as_me: failed program was:" >&5 | ||
29908 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29909 | |||
29910 | ac_cv_member_struct_passwd_pw_expire=no | ||
29911 | fi | ||
29912 | |||
29913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29914 | fi | ||
29915 | |||
29916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29917 | fi | ||
29918 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_expire" >&5 | ||
29919 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_expire" >&6; } | ||
29920 | if test $ac_cv_member_struct_passwd_pw_expire = yes; then | ||
29921 | |||
29922 | cat >>confdefs.h <<_ACEOF | ||
29923 | #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 | ||
29924 | _ACEOF | ||
29925 | |||
29926 | |||
29927 | fi | ||
29928 | |||
29929 | |||
29930 | { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 | ||
29931 | echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; } | ||
29932 | if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then | ||
29933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29934 | else | ||
29935 | cat >conftest.$ac_ext <<_ACEOF | ||
29936 | /* confdefs.h. */ | ||
29937 | _ACEOF | ||
29938 | cat confdefs.h >>conftest.$ac_ext | ||
29939 | cat >>conftest.$ac_ext <<_ACEOF | ||
29940 | /* end confdefs.h. */ | ||
29941 | |||
29942 | #include <stdio.h> | ||
29943 | #if HAVE_SYS_TYPES_H | ||
29944 | # include <sys/types.h> | ||
29945 | #endif | ||
29946 | #include <netinet/in.h> | ||
29947 | #include <arpa/nameser.h> | ||
29948 | #include <resolv.h> | ||
29949 | |||
29950 | |||
29951 | int | ||
29952 | main () | ||
29953 | { | ||
29954 | static struct __res_state ac_aggr; | ||
29955 | if (ac_aggr.retrans) | ||
29956 | return 0; | ||
29957 | ; | ||
29958 | return 0; | ||
29959 | } | ||
29960 | _ACEOF | ||
29961 | rm -f conftest.$ac_objext | ||
29962 | if { (ac_try="$ac_compile" | ||
29963 | case "(($ac_try" in | ||
29964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29965 | *) ac_try_echo=$ac_try;; | ||
29966 | esac | ||
29967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29968 | (eval "$ac_compile") 2>conftest.er1 | ||
29969 | ac_status=$? | ||
29970 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29971 | rm -f conftest.er1 | ||
29972 | cat conftest.err >&5 | ||
29973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29974 | (exit $ac_status); } && { | ||
29975 | test -z "$ac_c_werror_flag" || | ||
29976 | test ! -s conftest.err | ||
29977 | } && test -s conftest.$ac_objext; then | ||
29978 | ac_cv_member_struct___res_state_retrans=yes | ||
29979 | else | ||
29980 | echo "$as_me: failed program was:" >&5 | ||
29981 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29982 | |||
29983 | cat >conftest.$ac_ext <<_ACEOF | ||
29984 | /* confdefs.h. */ | ||
29985 | _ACEOF | ||
29986 | cat confdefs.h >>conftest.$ac_ext | ||
29987 | cat >>conftest.$ac_ext <<_ACEOF | ||
29988 | /* end confdefs.h. */ | ||
29989 | |||
29990 | #include <stdio.h> | ||
29991 | #if HAVE_SYS_TYPES_H | ||
29992 | # include <sys/types.h> | ||
29993 | #endif | ||
29994 | #include <netinet/in.h> | ||
29995 | #include <arpa/nameser.h> | ||
29996 | #include <resolv.h> | ||
29997 | |||
29998 | |||
29999 | int | ||
30000 | main () | ||
30001 | { | ||
30002 | static struct __res_state ac_aggr; | ||
30003 | if (sizeof ac_aggr.retrans) | ||
30004 | return 0; | ||
30005 | ; | ||
30006 | return 0; | ||
30007 | } | ||
30008 | _ACEOF | ||
30009 | rm -f conftest.$ac_objext | ||
30010 | if { (ac_try="$ac_compile" | ||
30011 | case "(($ac_try" in | ||
30012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30013 | *) ac_try_echo=$ac_try;; | ||
30014 | esac | ||
30015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30016 | (eval "$ac_compile") 2>conftest.er1 | ||
30017 | ac_status=$? | ||
30018 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30019 | rm -f conftest.er1 | ||
30020 | cat conftest.err >&5 | ||
30021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30022 | (exit $ac_status); } && { | ||
30023 | test -z "$ac_c_werror_flag" || | ||
30024 | test ! -s conftest.err | ||
30025 | } && test -s conftest.$ac_objext; then | ||
30026 | ac_cv_member_struct___res_state_retrans=yes | ||
30027 | else | ||
30028 | echo "$as_me: failed program was:" >&5 | ||
30029 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30030 | |||
30031 | ac_cv_member_struct___res_state_retrans=no | ||
30032 | fi | ||
30033 | |||
30034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30035 | fi | ||
30036 | |||
30037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30038 | fi | ||
30039 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 | ||
30040 | echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; } | ||
30041 | if test $ac_cv_member_struct___res_state_retrans = yes; then | ||
30042 | : | ||
30043 | else | ||
30044 | |||
30045 | cat >>confdefs.h <<\_ACEOF | ||
30046 | #define __res_state state | ||
30047 | _ACEOF | ||
30048 | |||
30049 | fi | ||
30050 | |||
30051 | |||
30052 | { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
30053 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
30054 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
30055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30056 | else | ||
30057 | |||
30058 | cat >conftest.$ac_ext <<_ACEOF | ||
30059 | /* confdefs.h. */ | ||
30060 | _ACEOF | ||
30061 | cat confdefs.h >>conftest.$ac_ext | ||
30062 | cat >>conftest.$ac_ext <<_ACEOF | ||
30063 | /* end confdefs.h. */ | ||
30064 | |||
30065 | #include <sys/types.h> | ||
30066 | #include <sys/socket.h> | ||
30067 | |||
30068 | int | ||
30069 | main () | ||
30070 | { | ||
30071 | struct sockaddr_storage s; s.ss_family = 1; | ||
30072 | ; | ||
30073 | return 0; | ||
30074 | } | ||
30075 | _ACEOF | ||
30076 | rm -f conftest.$ac_objext | ||
30077 | if { (ac_try="$ac_compile" | ||
30078 | case "(($ac_try" in | ||
30079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30080 | *) ac_try_echo=$ac_try;; | ||
30081 | esac | ||
30082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30083 | (eval "$ac_compile") 2>conftest.er1 | ||
30084 | ac_status=$? | ||
30085 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30086 | rm -f conftest.er1 | ||
30087 | cat conftest.err >&5 | ||
30088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30089 | (exit $ac_status); } && { | ||
30090 | test -z "$ac_c_werror_flag" || | ||
30091 | test ! -s conftest.err | ||
30092 | } && test -s conftest.$ac_objext; then | ||
30093 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
30094 | else | ||
30095 | echo "$as_me: failed program was:" >&5 | ||
30096 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30097 | |||
30098 | ac_cv_have_ss_family_in_struct_ss="no" | ||
30099 | fi | ||
30100 | |||
30101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30102 | |||
30103 | fi | ||
30104 | { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
30105 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
30106 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
30107 | |||
30108 | cat >>confdefs.h <<\_ACEOF | ||
30109 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
30110 | _ACEOF | ||
30111 | |||
30112 | fi | ||
30113 | |||
30114 | { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
30115 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
30116 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
30117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30118 | else | ||
30119 | |||
30120 | cat >conftest.$ac_ext <<_ACEOF | ||
30121 | /* confdefs.h. */ | ||
30122 | _ACEOF | ||
30123 | cat confdefs.h >>conftest.$ac_ext | ||
30124 | cat >>conftest.$ac_ext <<_ACEOF | ||
30125 | /* end confdefs.h. */ | ||
30126 | |||
30127 | #include <sys/types.h> | ||
30128 | #include <sys/socket.h> | ||
30129 | |||
30130 | int | ||
30131 | main () | ||
30132 | { | ||
30133 | struct sockaddr_storage s; s.__ss_family = 1; | ||
30134 | ; | ||
30135 | return 0; | ||
30136 | } | ||
30137 | _ACEOF | ||
30138 | rm -f conftest.$ac_objext | ||
30139 | if { (ac_try="$ac_compile" | ||
30140 | case "(($ac_try" in | ||
30141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30142 | *) ac_try_echo=$ac_try;; | ||
30143 | esac | ||
30144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30145 | (eval "$ac_compile") 2>conftest.er1 | ||
30146 | ac_status=$? | ||
30147 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30148 | rm -f conftest.er1 | ||
30149 | cat conftest.err >&5 | ||
30150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30151 | (exit $ac_status); } && { | ||
30152 | test -z "$ac_c_werror_flag" || | ||
30153 | test ! -s conftest.err | ||
30154 | } && test -s conftest.$ac_objext; then | ||
30155 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
30156 | else | ||
30157 | echo "$as_me: failed program was:" >&5 | ||
30158 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30159 | |||
30160 | ac_cv_have___ss_family_in_struct_ss="no" | ||
30161 | |||
30162 | fi | ||
30163 | |||
30164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30165 | |||
30166 | fi | ||
30167 | { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
30168 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
30169 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
30170 | |||
30171 | cat >>confdefs.h <<\_ACEOF | ||
30172 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
30173 | _ACEOF | ||
30174 | |||
30175 | fi | ||
30176 | |||
30177 | { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
30178 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; } | ||
30179 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
30180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30181 | else | ||
30182 | |||
30183 | cat >conftest.$ac_ext <<_ACEOF | ||
30184 | /* confdefs.h. */ | ||
30185 | _ACEOF | ||
30186 | cat confdefs.h >>conftest.$ac_ext | ||
30187 | cat >>conftest.$ac_ext <<_ACEOF | ||
30188 | /* end confdefs.h. */ | ||
30189 | |||
30190 | #include <sys/types.h> | ||
30191 | #include <sys/socket.h> | ||
30192 | #include <sys/uio.h> | ||
30193 | |||
30194 | int | ||
30195 | main () | ||
30196 | { | ||
30197 | |||
30198 | #ifdef msg_accrights | ||
30199 | #error "msg_accrights is a macro" | ||
30200 | exit(1); | ||
30201 | #endif | ||
30202 | struct msghdr m; | ||
30203 | m.msg_accrights = 0; | ||
30204 | exit(0); | ||
30205 | |||
30206 | ; | ||
30207 | return 0; | ||
30208 | } | ||
30209 | _ACEOF | ||
30210 | rm -f conftest.$ac_objext | ||
30211 | if { (ac_try="$ac_compile" | ||
30212 | case "(($ac_try" in | ||
30213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30214 | *) ac_try_echo=$ac_try;; | ||
30215 | esac | ||
30216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30217 | (eval "$ac_compile") 2>conftest.er1 | ||
30218 | ac_status=$? | ||
30219 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30220 | rm -f conftest.er1 | ||
30221 | cat conftest.err >&5 | ||
30222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30223 | (exit $ac_status); } && { | ||
30224 | test -z "$ac_c_werror_flag" || | ||
30225 | test ! -s conftest.err | ||
30226 | } && test -s conftest.$ac_objext; then | ||
30227 | ac_cv_have_accrights_in_msghdr="yes" | ||
30228 | else | ||
30229 | echo "$as_me: failed program was:" >&5 | ||
30230 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30231 | |||
30232 | ac_cv_have_accrights_in_msghdr="no" | ||
30233 | |||
30234 | fi | ||
30235 | |||
30236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30237 | |||
30238 | fi | ||
30239 | { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
30240 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; } | ||
30241 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
30242 | |||
30243 | cat >>confdefs.h <<\_ACEOF | ||
30244 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
30245 | _ACEOF | ||
30246 | |||
30247 | fi | ||
30248 | |||
30249 | { echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5 | ||
30250 | echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; } | ||
30251 | cat >conftest.$ac_ext <<_ACEOF | ||
30252 | /* confdefs.h. */ | ||
30253 | _ACEOF | ||
30254 | cat confdefs.h >>conftest.$ac_ext | ||
30255 | cat >>conftest.$ac_ext <<_ACEOF | ||
30256 | /* end confdefs.h. */ | ||
30257 | |||
30258 | #include <sys/param.h> | ||
30259 | #include <sys/stat.h> | ||
30260 | #ifdef HAVE_SYS_TIME_H | ||
30261 | # include <sys/time.h> | ||
30262 | #endif | ||
30263 | #ifdef HAVE_SYS_MOUNT_H | ||
30264 | #include <sys/mount.h> | ||
30265 | #endif | ||
30266 | #ifdef HAVE_SYS_STATVFS_H | ||
30267 | #include <sys/statvfs.h> | ||
30268 | #endif | ||
30269 | |||
30270 | int | ||
30271 | main () | ||
30272 | { | ||
30273 | struct statvfs s; s.f_fsid = 0; | ||
30274 | ; | ||
30275 | return 0; | ||
30276 | } | ||
30277 | _ACEOF | ||
30278 | rm -f conftest.$ac_objext | ||
30279 | if { (ac_try="$ac_compile" | ||
30280 | case "(($ac_try" in | ||
30281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30282 | *) ac_try_echo=$ac_try;; | ||
30283 | esac | ||
30284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30285 | (eval "$ac_compile") 2>conftest.er1 | ||
30286 | ac_status=$? | ||
30287 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30288 | rm -f conftest.er1 | ||
30289 | cat conftest.err >&5 | ||
30290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30291 | (exit $ac_status); } && { | ||
30292 | test -z "$ac_c_werror_flag" || | ||
30293 | test ! -s conftest.err | ||
30294 | } && test -s conftest.$ac_objext; then | ||
30295 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30296 | echo "${ECHO_T}yes" >&6; } | ||
30297 | else | ||
30298 | echo "$as_me: failed program was:" >&5 | ||
30299 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30300 | |||
30301 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30302 | echo "${ECHO_T}no" >&6; } | ||
30303 | |||
30304 | { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5 | ||
30305 | echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; } | ||
30306 | cat >conftest.$ac_ext <<_ACEOF | ||
30307 | /* confdefs.h. */ | ||
30308 | _ACEOF | ||
30309 | cat confdefs.h >>conftest.$ac_ext | ||
30310 | cat >>conftest.$ac_ext <<_ACEOF | ||
30311 | /* end confdefs.h. */ | ||
30312 | |||
30313 | #include <sys/types.h> | ||
30314 | #include <sys/statvfs.h> | ||
30315 | |||
30316 | int | ||
30317 | main () | ||
30318 | { | ||
30319 | fsid_t t; t.val[0] = 0; | ||
30320 | ; | ||
30321 | return 0; | ||
30322 | } | ||
30323 | _ACEOF | ||
30324 | rm -f conftest.$ac_objext | ||
30325 | if { (ac_try="$ac_compile" | ||
30326 | case "(($ac_try" in | ||
30327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30328 | *) ac_try_echo=$ac_try;; | ||
30329 | esac | ||
30330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30331 | (eval "$ac_compile") 2>conftest.er1 | ||
30332 | ac_status=$? | ||
30333 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30334 | rm -f conftest.er1 | ||
30335 | cat conftest.err >&5 | ||
30336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30337 | (exit $ac_status); } && { | ||
30338 | test -z "$ac_c_werror_flag" || | ||
30339 | test ! -s conftest.err | ||
30340 | } && test -s conftest.$ac_objext; then | ||
30341 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30342 | echo "${ECHO_T}yes" >&6; } | ||
30343 | |||
30344 | cat >>confdefs.h <<\_ACEOF | ||
30345 | #define FSID_HAS_VAL 1 | ||
30346 | _ACEOF | ||
30347 | |||
30348 | else | ||
30349 | echo "$as_me: failed program was:" >&5 | ||
30350 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30351 | |||
30352 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30353 | echo "${ECHO_T}no" >&6; } | ||
30354 | fi | ||
30355 | |||
30356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30357 | |||
30358 | { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5 | ||
30359 | echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; } | ||
30360 | cat >conftest.$ac_ext <<_ACEOF | ||
30361 | /* confdefs.h. */ | ||
30362 | _ACEOF | ||
30363 | cat confdefs.h >>conftest.$ac_ext | ||
30364 | cat >>conftest.$ac_ext <<_ACEOF | ||
30365 | /* end confdefs.h. */ | ||
30366 | |||
30367 | #include <sys/types.h> | ||
30368 | #include <sys/statvfs.h> | ||
30369 | |||
30370 | int | ||
30371 | main () | ||
30372 | { | ||
30373 | fsid_t t; t.__val[0] = 0; | ||
30374 | ; | ||
30375 | return 0; | ||
30376 | } | ||
30377 | _ACEOF | ||
30378 | rm -f conftest.$ac_objext | ||
30379 | if { (ac_try="$ac_compile" | ||
30380 | case "(($ac_try" in | ||
30381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30382 | *) ac_try_echo=$ac_try;; | ||
30383 | esac | ||
30384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30385 | (eval "$ac_compile") 2>conftest.er1 | ||
30386 | ac_status=$? | ||
30387 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30388 | rm -f conftest.er1 | ||
30389 | cat conftest.err >&5 | ||
30390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30391 | (exit $ac_status); } && { | ||
30392 | test -z "$ac_c_werror_flag" || | ||
30393 | test ! -s conftest.err | ||
30394 | } && test -s conftest.$ac_objext; then | ||
30395 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30396 | echo "${ECHO_T}yes" >&6; } | ||
30397 | |||
30398 | cat >>confdefs.h <<\_ACEOF | ||
30399 | #define FSID_HAS___VAL 1 | ||
30400 | _ACEOF | ||
30401 | |||
30402 | else | ||
30403 | echo "$as_me: failed program was:" >&5 | ||
30404 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30405 | |||
30406 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30407 | echo "${ECHO_T}no" >&6; } | ||
30408 | fi | ||
30409 | |||
30410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30411 | |||
30412 | fi | ||
30413 | |||
30414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30415 | |||
30416 | { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
30417 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; } | ||
30418 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
30419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30420 | else | ||
30421 | |||
30422 | cat >conftest.$ac_ext <<_ACEOF | ||
30423 | /* confdefs.h. */ | ||
30424 | _ACEOF | ||
30425 | cat confdefs.h >>conftest.$ac_ext | ||
30426 | cat >>conftest.$ac_ext <<_ACEOF | ||
30427 | /* end confdefs.h. */ | ||
30428 | |||
30429 | #include <sys/types.h> | ||
30430 | #include <sys/socket.h> | ||
30431 | #include <sys/uio.h> | ||
30432 | |||
30433 | int | ||
30434 | main () | ||
30435 | { | ||
30436 | |||
30437 | #ifdef msg_control | ||
30438 | #error "msg_control is a macro" | ||
30439 | exit(1); | ||
30440 | #endif | ||
30441 | struct msghdr m; | ||
30442 | m.msg_control = 0; | ||
30443 | exit(0); | ||
30444 | |||
30445 | ; | ||
30446 | return 0; | ||
30447 | } | ||
30448 | _ACEOF | ||
30449 | rm -f conftest.$ac_objext | ||
30450 | if { (ac_try="$ac_compile" | ||
30451 | case "(($ac_try" in | ||
30452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30453 | *) ac_try_echo=$ac_try;; | ||
30454 | esac | ||
30455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30456 | (eval "$ac_compile") 2>conftest.er1 | ||
30457 | ac_status=$? | ||
30458 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30459 | rm -f conftest.er1 | ||
30460 | cat conftest.err >&5 | ||
30461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30462 | (exit $ac_status); } && { | ||
30463 | test -z "$ac_c_werror_flag" || | ||
30464 | test ! -s conftest.err | ||
30465 | } && test -s conftest.$ac_objext; then | ||
30466 | ac_cv_have_control_in_msghdr="yes" | ||
30467 | else | ||
30468 | echo "$as_me: failed program was:" >&5 | ||
30469 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30470 | |||
30471 | ac_cv_have_control_in_msghdr="no" | ||
30472 | |||
30473 | fi | ||
30474 | |||
30475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30476 | |||
30477 | fi | ||
30478 | { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
30479 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; } | ||
30480 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
30481 | |||
30482 | cat >>confdefs.h <<\_ACEOF | ||
30483 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
30484 | _ACEOF | ||
30485 | |||
30486 | fi | ||
30487 | |||
30488 | { echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
30489 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; } | ||
30490 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
30491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30492 | else | ||
30493 | |||
30494 | cat >conftest.$ac_ext <<_ACEOF | ||
30495 | /* confdefs.h. */ | ||
30496 | _ACEOF | ||
30497 | cat confdefs.h >>conftest.$ac_ext | ||
30498 | cat >>conftest.$ac_ext <<_ACEOF | ||
30499 | /* end confdefs.h. */ | ||
30500 | |||
30501 | int | ||
30502 | main () | ||
30503 | { | ||
30504 | extern char *__progname; printf("%s", __progname); | ||
30505 | ; | ||
30506 | return 0; | ||
30507 | } | ||
30508 | _ACEOF | ||
30509 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30510 | if { (ac_try="$ac_link" | ||
30511 | case "(($ac_try" in | ||
30512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30513 | *) ac_try_echo=$ac_try;; | ||
30514 | esac | ||
30515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30516 | (eval "$ac_link") 2>conftest.er1 | ||
30517 | ac_status=$? | ||
30518 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30519 | rm -f conftest.er1 | ||
30520 | cat conftest.err >&5 | ||
30521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30522 | (exit $ac_status); } && { | ||
30523 | test -z "$ac_c_werror_flag" || | ||
30524 | test ! -s conftest.err | ||
30525 | } && test -s conftest$ac_exeext && | ||
30526 | $as_test_x conftest$ac_exeext; then | ||
30527 | ac_cv_libc_defines___progname="yes" | ||
30528 | else | ||
30529 | echo "$as_me: failed program was:" >&5 | ||
30530 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30531 | |||
30532 | ac_cv_libc_defines___progname="no" | ||
30533 | |||
30534 | fi | ||
30535 | |||
30536 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30537 | conftest$ac_exeext conftest.$ac_ext | ||
30538 | |||
30539 | fi | ||
30540 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
30541 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; } | ||
30542 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
30543 | |||
30544 | cat >>confdefs.h <<\_ACEOF | ||
30545 | #define HAVE___PROGNAME 1 | ||
30546 | _ACEOF | ||
30547 | |||
30548 | fi | ||
30549 | |||
30550 | { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
30551 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; } | ||
30552 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
30553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30554 | else | ||
30555 | |||
30556 | cat >conftest.$ac_ext <<_ACEOF | ||
30557 | /* confdefs.h. */ | ||
30558 | _ACEOF | ||
30559 | cat confdefs.h >>conftest.$ac_ext | ||
30560 | cat >>conftest.$ac_ext <<_ACEOF | ||
30561 | /* end confdefs.h. */ | ||
30562 | #include <stdio.h> | ||
30563 | int | ||
30564 | main () | ||
30565 | { | ||
30566 | printf("%s", __FUNCTION__); | ||
30567 | ; | ||
30568 | return 0; | ||
30569 | } | ||
30570 | _ACEOF | ||
30571 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30572 | if { (ac_try="$ac_link" | ||
30573 | case "(($ac_try" in | ||
30574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30575 | *) ac_try_echo=$ac_try;; | ||
30576 | esac | ||
30577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30578 | (eval "$ac_link") 2>conftest.er1 | ||
30579 | ac_status=$? | ||
30580 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30581 | rm -f conftest.er1 | ||
30582 | cat conftest.err >&5 | ||
30583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30584 | (exit $ac_status); } && { | ||
30585 | test -z "$ac_c_werror_flag" || | ||
30586 | test ! -s conftest.err | ||
30587 | } && test -s conftest$ac_exeext && | ||
30588 | $as_test_x conftest$ac_exeext; then | ||
30589 | ac_cv_cc_implements___FUNCTION__="yes" | ||
30590 | else | ||
30591 | echo "$as_me: failed program was:" >&5 | ||
30592 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30593 | |||
30594 | ac_cv_cc_implements___FUNCTION__="no" | ||
30595 | |||
30596 | fi | ||
30597 | |||
30598 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30599 | conftest$ac_exeext conftest.$ac_ext | ||
30600 | |||
30601 | fi | ||
30602 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
30603 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
30604 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
30605 | |||
30606 | cat >>confdefs.h <<\_ACEOF | ||
30607 | #define HAVE___FUNCTION__ 1 | ||
30608 | _ACEOF | ||
30609 | |||
30610 | fi | ||
30611 | |||
30612 | { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
30613 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; } | ||
30614 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
30615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30616 | else | ||
30617 | |||
30618 | cat >conftest.$ac_ext <<_ACEOF | ||
30619 | /* confdefs.h. */ | ||
30620 | _ACEOF | ||
30621 | cat confdefs.h >>conftest.$ac_ext | ||
30622 | cat >>conftest.$ac_ext <<_ACEOF | ||
30623 | /* end confdefs.h. */ | ||
30624 | #include <stdio.h> | ||
30625 | int | ||
30626 | main () | ||
30627 | { | ||
30628 | printf("%s", __func__); | ||
30629 | ; | ||
30630 | return 0; | ||
30631 | } | ||
30632 | _ACEOF | ||
30633 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30634 | if { (ac_try="$ac_link" | ||
30635 | case "(($ac_try" in | ||
30636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30637 | *) ac_try_echo=$ac_try;; | ||
30638 | esac | ||
30639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30640 | (eval "$ac_link") 2>conftest.er1 | ||
30641 | ac_status=$? | ||
30642 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30643 | rm -f conftest.er1 | ||
30644 | cat conftest.err >&5 | ||
30645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30646 | (exit $ac_status); } && { | ||
30647 | test -z "$ac_c_werror_flag" || | ||
30648 | test ! -s conftest.err | ||
30649 | } && test -s conftest$ac_exeext && | ||
30650 | $as_test_x conftest$ac_exeext; then | ||
30651 | ac_cv_cc_implements___func__="yes" | ||
30652 | else | ||
30653 | echo "$as_me: failed program was:" >&5 | ||
30654 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30655 | |||
30656 | ac_cv_cc_implements___func__="no" | ||
30657 | |||
30658 | fi | ||
30659 | |||
30660 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30661 | conftest$ac_exeext conftest.$ac_ext | ||
30662 | |||
30663 | fi | ||
30664 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
30665 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; } | ||
30666 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
30667 | |||
30668 | cat >>confdefs.h <<\_ACEOF | ||
30669 | #define HAVE___func__ 1 | ||
30670 | _ACEOF | ||
30671 | |||
30672 | fi | ||
30673 | |||
30674 | { echo "$as_me:$LINENO: checking whether va_copy exists" >&5 | ||
30675 | echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; } | ||
30676 | if test "${ac_cv_have_va_copy+set}" = set; then | ||
30677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30678 | else | ||
30679 | |||
30680 | cat >conftest.$ac_ext <<_ACEOF | ||
30681 | /* confdefs.h. */ | ||
30682 | _ACEOF | ||
30683 | cat confdefs.h >>conftest.$ac_ext | ||
30684 | cat >>conftest.$ac_ext <<_ACEOF | ||
30685 | /* end confdefs.h. */ | ||
30686 | |||
30687 | #include <stdarg.h> | ||
30688 | va_list x,y; | ||
30689 | |||
30690 | int | ||
30691 | main () | ||
30692 | { | ||
30693 | va_copy(x,y); | ||
30694 | ; | ||
30695 | return 0; | ||
30696 | } | ||
30697 | _ACEOF | ||
30698 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30699 | if { (ac_try="$ac_link" | ||
30700 | case "(($ac_try" in | ||
30701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30702 | *) ac_try_echo=$ac_try;; | ||
30703 | esac | ||
30704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30705 | (eval "$ac_link") 2>conftest.er1 | ||
30706 | ac_status=$? | ||
30707 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30708 | rm -f conftest.er1 | ||
30709 | cat conftest.err >&5 | ||
30710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30711 | (exit $ac_status); } && { | ||
30712 | test -z "$ac_c_werror_flag" || | ||
30713 | test ! -s conftest.err | ||
30714 | } && test -s conftest$ac_exeext && | ||
30715 | $as_test_x conftest$ac_exeext; then | ||
30716 | ac_cv_have_va_copy="yes" | ||
30717 | else | ||
30718 | echo "$as_me: failed program was:" >&5 | ||
30719 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30720 | |||
30721 | ac_cv_have_va_copy="no" | ||
30722 | |||
30723 | fi | ||
30724 | |||
30725 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30726 | conftest$ac_exeext conftest.$ac_ext | ||
30727 | |||
30728 | fi | ||
30729 | { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 | ||
30730 | echo "${ECHO_T}$ac_cv_have_va_copy" >&6; } | ||
30731 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
30732 | |||
30733 | cat >>confdefs.h <<\_ACEOF | ||
30734 | #define HAVE_VA_COPY 1 | ||
30735 | _ACEOF | ||
30736 | |||
30737 | fi | ||
30738 | |||
30739 | { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 | ||
30740 | echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; } | ||
30741 | if test "${ac_cv_have___va_copy+set}" = set; then | ||
30742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30743 | else | ||
30744 | |||
30745 | cat >conftest.$ac_ext <<_ACEOF | ||
30746 | /* confdefs.h. */ | ||
30747 | _ACEOF | ||
30748 | cat confdefs.h >>conftest.$ac_ext | ||
30749 | cat >>conftest.$ac_ext <<_ACEOF | ||
30750 | /* end confdefs.h. */ | ||
30751 | |||
30752 | #include <stdarg.h> | ||
30753 | va_list x,y; | ||
30754 | |||
30755 | int | ||
30756 | main () | ||
30757 | { | ||
30758 | __va_copy(x,y); | ||
30759 | ; | ||
30760 | return 0; | ||
30761 | } | ||
30762 | _ACEOF | ||
30763 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30764 | if { (ac_try="$ac_link" | ||
30765 | case "(($ac_try" in | ||
30766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30767 | *) ac_try_echo=$ac_try;; | ||
30768 | esac | ||
30769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30770 | (eval "$ac_link") 2>conftest.er1 | ||
30771 | ac_status=$? | ||
30772 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30773 | rm -f conftest.er1 | ||
30774 | cat conftest.err >&5 | ||
30775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30776 | (exit $ac_status); } && { | ||
30777 | test -z "$ac_c_werror_flag" || | ||
30778 | test ! -s conftest.err | ||
30779 | } && test -s conftest$ac_exeext && | ||
30780 | $as_test_x conftest$ac_exeext; then | ||
30781 | ac_cv_have___va_copy="yes" | ||
30782 | else | ||
30783 | echo "$as_me: failed program was:" >&5 | ||
30784 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30785 | |||
30786 | ac_cv_have___va_copy="no" | ||
30787 | |||
30788 | fi | ||
30789 | |||
30790 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30791 | conftest$ac_exeext conftest.$ac_ext | ||
30792 | |||
30793 | fi | ||
30794 | { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 | ||
30795 | echo "${ECHO_T}$ac_cv_have___va_copy" >&6; } | ||
30796 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
30797 | |||
30798 | cat >>confdefs.h <<\_ACEOF | ||
30799 | #define HAVE___VA_COPY 1 | ||
30800 | _ACEOF | ||
30801 | |||
30802 | fi | ||
30803 | |||
30804 | { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
30805 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; } | ||
30806 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
30807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30808 | else | ||
30809 | |||
30810 | cat >conftest.$ac_ext <<_ACEOF | ||
30811 | /* confdefs.h. */ | ||
30812 | _ACEOF | ||
30813 | cat confdefs.h >>conftest.$ac_ext | ||
30814 | cat >>conftest.$ac_ext <<_ACEOF | ||
30815 | /* end confdefs.h. */ | ||
30816 | #include <getopt.h> | ||
30817 | int | ||
30818 | main () | ||
30819 | { | ||
30820 | extern int optreset; optreset = 0; | ||
30821 | ; | ||
30822 | return 0; | ||
30823 | } | ||
30824 | _ACEOF | ||
30825 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30826 | if { (ac_try="$ac_link" | ||
30827 | case "(($ac_try" in | ||
30828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30829 | *) ac_try_echo=$ac_try;; | ||
30830 | esac | ||
30831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30832 | (eval "$ac_link") 2>conftest.er1 | ||
30833 | ac_status=$? | ||
30834 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30835 | rm -f conftest.er1 | ||
30836 | cat conftest.err >&5 | ||
30837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30838 | (exit $ac_status); } && { | ||
30839 | test -z "$ac_c_werror_flag" || | ||
30840 | test ! -s conftest.err | ||
30841 | } && test -s conftest$ac_exeext && | ||
30842 | $as_test_x conftest$ac_exeext; then | ||
30843 | ac_cv_have_getopt_optreset="yes" | ||
30844 | else | ||
30845 | echo "$as_me: failed program was:" >&5 | ||
30846 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30847 | |||
30848 | ac_cv_have_getopt_optreset="no" | ||
30849 | |||
30850 | fi | ||
30851 | |||
30852 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30853 | conftest$ac_exeext conftest.$ac_ext | ||
30854 | |||
30855 | fi | ||
30856 | { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
30857 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; } | ||
30858 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
30859 | |||
30860 | cat >>confdefs.h <<\_ACEOF | ||
30861 | #define HAVE_GETOPT_OPTRESET 1 | ||
30862 | _ACEOF | ||
30863 | |||
30864 | fi | ||
30865 | |||
30866 | { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
30867 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; } | ||
30868 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
30869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30870 | else | ||
30871 | |||
30872 | cat >conftest.$ac_ext <<_ACEOF | ||
30873 | /* confdefs.h. */ | ||
30874 | _ACEOF | ||
30875 | cat confdefs.h >>conftest.$ac_ext | ||
30876 | cat >>conftest.$ac_ext <<_ACEOF | ||
30877 | /* end confdefs.h. */ | ||
30878 | |||
30879 | int | ||
30880 | main () | ||
30881 | { | ||
30882 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
30883 | ; | ||
30884 | return 0; | ||
30885 | } | ||
30886 | _ACEOF | ||
30887 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30888 | if { (ac_try="$ac_link" | ||
30889 | case "(($ac_try" in | ||
30890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30891 | *) ac_try_echo=$ac_try;; | ||
30892 | esac | ||
30893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30894 | (eval "$ac_link") 2>conftest.er1 | ||
30895 | ac_status=$? | ||
30896 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30897 | rm -f conftest.er1 | ||
30898 | cat conftest.err >&5 | ||
30899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30900 | (exit $ac_status); } && { | ||
30901 | test -z "$ac_c_werror_flag" || | ||
30902 | test ! -s conftest.err | ||
30903 | } && test -s conftest$ac_exeext && | ||
30904 | $as_test_x conftest$ac_exeext; then | ||
30905 | ac_cv_libc_defines_sys_errlist="yes" | ||
30906 | else | ||
30907 | echo "$as_me: failed program was:" >&5 | ||
30908 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30909 | |||
30910 | ac_cv_libc_defines_sys_errlist="no" | ||
30911 | |||
30912 | fi | ||
30913 | |||
30914 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30915 | conftest$ac_exeext conftest.$ac_ext | ||
30916 | |||
30917 | fi | ||
30918 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
30919 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; } | ||
30920 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
30921 | |||
30922 | cat >>confdefs.h <<\_ACEOF | ||
30923 | #define HAVE_SYS_ERRLIST 1 | ||
30924 | _ACEOF | ||
30925 | |||
30926 | fi | ||
30927 | |||
30928 | |||
30929 | { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
30930 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; } | ||
30931 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
30932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30933 | else | ||
30934 | |||
30935 | cat >conftest.$ac_ext <<_ACEOF | ||
30936 | /* confdefs.h. */ | ||
30937 | _ACEOF | ||
30938 | cat confdefs.h >>conftest.$ac_ext | ||
30939 | cat >>conftest.$ac_ext <<_ACEOF | ||
30940 | /* end confdefs.h. */ | ||
30941 | |||
30942 | int | ||
30943 | main () | ||
30944 | { | ||
30945 | extern int sys_nerr; printf("%i", sys_nerr); | ||
30946 | ; | ||
30947 | return 0; | ||
30948 | } | ||
30949 | _ACEOF | ||
30950 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30951 | if { (ac_try="$ac_link" | ||
30952 | case "(($ac_try" in | ||
30953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30954 | *) ac_try_echo=$ac_try;; | ||
30955 | esac | ||
30956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30957 | (eval "$ac_link") 2>conftest.er1 | ||
30958 | ac_status=$? | ||
30959 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30960 | rm -f conftest.er1 | ||
30961 | cat conftest.err >&5 | ||
30962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30963 | (exit $ac_status); } && { | ||
30964 | test -z "$ac_c_werror_flag" || | ||
30965 | test ! -s conftest.err | ||
30966 | } && test -s conftest$ac_exeext && | ||
30967 | $as_test_x conftest$ac_exeext; then | ||
30968 | ac_cv_libc_defines_sys_nerr="yes" | ||
30969 | else | ||
30970 | echo "$as_me: failed program was:" >&5 | ||
30971 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30972 | |||
30973 | ac_cv_libc_defines_sys_nerr="no" | ||
30974 | |||
30975 | fi | ||
30976 | |||
30977 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30978 | conftest$ac_exeext conftest.$ac_ext | ||
30979 | |||
30980 | fi | ||
30981 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
30982 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; } | ||
30983 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
30984 | |||
30985 | cat >>confdefs.h <<\_ACEOF | ||
30986 | #define HAVE_SYS_NERR 1 | ||
30987 | _ACEOF | ||
30988 | |||
30989 | fi | ||
30990 | |||
30991 | # Check libraries needed by DNS fingerprint support | ||
30992 | { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
30993 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; } | ||
30994 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
30995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30996 | else | ||
30997 | ac_func_search_save_LIBS=$LIBS | ||
30998 | cat >conftest.$ac_ext <<_ACEOF | ||
30999 | /* confdefs.h. */ | ||
31000 | _ACEOF | ||
31001 | cat confdefs.h >>conftest.$ac_ext | ||
31002 | cat >>conftest.$ac_ext <<_ACEOF | ||
31003 | /* end confdefs.h. */ | ||
31004 | |||
31005 | /* Override any GCC internal prototype to avoid an error. | ||
31006 | Use char because int might match the return type of a GCC | ||
31007 | builtin and then its argument prototype would still apply. */ | ||
31008 | #ifdef __cplusplus | ||
31009 | extern "C" | ||
31010 | #endif | ||
31011 | char getrrsetbyname (); | ||
31012 | int | ||
31013 | main () | ||
31014 | { | ||
31015 | return getrrsetbyname (); | ||
31016 | ; | ||
31017 | return 0; | ||
31018 | } | ||
31019 | _ACEOF | ||
31020 | for ac_lib in '' resolv; do | ||
31021 | if test -z "$ac_lib"; then | ||
31022 | ac_res="none required" | ||
31023 | else | ||
31024 | ac_res=-l$ac_lib | ||
31025 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
31026 | fi | ||
31027 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31028 | if { (ac_try="$ac_link" | ||
31029 | case "(($ac_try" in | ||
31030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31031 | *) ac_try_echo=$ac_try;; | ||
31032 | esac | ||
31033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31034 | (eval "$ac_link") 2>conftest.er1 | ||
31035 | ac_status=$? | ||
31036 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31037 | rm -f conftest.er1 | ||
31038 | cat conftest.err >&5 | ||
31039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31040 | (exit $ac_status); } && { | ||
31041 | test -z "$ac_c_werror_flag" || | ||
31042 | test ! -s conftest.err | ||
31043 | } && test -s conftest$ac_exeext && | ||
31044 | $as_test_x conftest$ac_exeext; then | ||
31045 | ac_cv_search_getrrsetbyname=$ac_res | ||
31046 | else | ||
31047 | echo "$as_me: failed program was:" >&5 | ||
31048 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31049 | |||
31050 | |||
31051 | fi | ||
31052 | |||
31053 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31054 | conftest$ac_exeext | ||
31055 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
31056 | break | ||
31057 | fi | ||
31058 | done | ||
31059 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
31060 | : | ||
31061 | else | ||
31062 | ac_cv_search_getrrsetbyname=no | ||
31063 | fi | ||
31064 | rm conftest.$ac_ext | ||
31065 | LIBS=$ac_func_search_save_LIBS | ||
31066 | fi | ||
31067 | { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
31068 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; } | ||
31069 | ac_res=$ac_cv_search_getrrsetbyname | ||
31070 | if test "$ac_res" != no; then | ||
31071 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
31072 | |||
31073 | cat >>confdefs.h <<\_ACEOF | ||
31074 | #define HAVE_GETRRSETBYNAME 1 | ||
31075 | _ACEOF | ||
31076 | |||
31077 | else | ||
31078 | |||
31079 | # Needed by our getrrsetbyname() | ||
31080 | { echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
31081 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; } | ||
31082 | if test "${ac_cv_search_res_query+set}" = set; then | ||
31083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31084 | else | ||
31085 | ac_func_search_save_LIBS=$LIBS | ||
31086 | cat >conftest.$ac_ext <<_ACEOF | ||
31087 | /* confdefs.h. */ | ||
31088 | _ACEOF | ||
31089 | cat confdefs.h >>conftest.$ac_ext | ||
31090 | cat >>conftest.$ac_ext <<_ACEOF | ||
31091 | /* end confdefs.h. */ | ||
31092 | |||
31093 | /* Override any GCC internal prototype to avoid an error. | ||
31094 | Use char because int might match the return type of a GCC | ||
31095 | builtin and then its argument prototype would still apply. */ | ||
31096 | #ifdef __cplusplus | ||
31097 | extern "C" | ||
31098 | #endif | ||
31099 | char res_query (); | ||
31100 | int | ||
31101 | main () | ||
31102 | { | ||
31103 | return res_query (); | ||
31104 | ; | ||
31105 | return 0; | ||
31106 | } | ||
31107 | _ACEOF | ||
31108 | for ac_lib in '' resolv; do | ||
31109 | if test -z "$ac_lib"; then | ||
31110 | ac_res="none required" | ||
31111 | else | ||
31112 | ac_res=-l$ac_lib | ||
31113 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
31114 | fi | ||
31115 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31116 | if { (ac_try="$ac_link" | ||
31117 | case "(($ac_try" in | ||
31118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31119 | *) ac_try_echo=$ac_try;; | ||
31120 | esac | ||
31121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31122 | (eval "$ac_link") 2>conftest.er1 | ||
31123 | ac_status=$? | ||
31124 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31125 | rm -f conftest.er1 | ||
31126 | cat conftest.err >&5 | ||
31127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31128 | (exit $ac_status); } && { | ||
31129 | test -z "$ac_c_werror_flag" || | ||
31130 | test ! -s conftest.err | ||
31131 | } && test -s conftest$ac_exeext && | ||
31132 | $as_test_x conftest$ac_exeext; then | ||
31133 | ac_cv_search_res_query=$ac_res | ||
31134 | else | ||
31135 | echo "$as_me: failed program was:" >&5 | ||
31136 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31137 | |||
31138 | |||
31139 | fi | ||
31140 | |||
31141 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31142 | conftest$ac_exeext | ||
31143 | if test "${ac_cv_search_res_query+set}" = set; then | ||
31144 | break | ||
31145 | fi | ||
31146 | done | ||
31147 | if test "${ac_cv_search_res_query+set}" = set; then | ||
31148 | : | ||
31149 | else | ||
31150 | ac_cv_search_res_query=no | ||
31151 | fi | ||
31152 | rm conftest.$ac_ext | ||
31153 | LIBS=$ac_func_search_save_LIBS | ||
31154 | fi | ||
31155 | { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
31156 | echo "${ECHO_T}$ac_cv_search_res_query" >&6; } | ||
31157 | ac_res=$ac_cv_search_res_query | ||
31158 | if test "$ac_res" != no; then | ||
31159 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
31160 | |||
31161 | fi | ||
31162 | |||
31163 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
31164 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
31165 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
31166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31167 | else | ||
31168 | ac_func_search_save_LIBS=$LIBS | ||
31169 | cat >conftest.$ac_ext <<_ACEOF | ||
31170 | /* confdefs.h. */ | ||
31171 | _ACEOF | ||
31172 | cat confdefs.h >>conftest.$ac_ext | ||
31173 | cat >>conftest.$ac_ext <<_ACEOF | ||
31174 | /* end confdefs.h. */ | ||
31175 | |||
31176 | /* Override any GCC internal prototype to avoid an error. | ||
31177 | Use char because int might match the return type of a GCC | ||
31178 | builtin and then its argument prototype would still apply. */ | ||
31179 | #ifdef __cplusplus | ||
31180 | extern "C" | ||
31181 | #endif | ||
31182 | char dn_expand (); | ||
31183 | int | ||
31184 | main () | ||
31185 | { | ||
31186 | return dn_expand (); | ||
31187 | ; | ||
31188 | return 0; | ||
31189 | } | ||
31190 | _ACEOF | ||
31191 | for ac_lib in '' resolv; do | ||
31192 | if test -z "$ac_lib"; then | ||
31193 | ac_res="none required" | ||
31194 | else | ||
31195 | ac_res=-l$ac_lib | ||
31196 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
31197 | fi | ||
31198 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31199 | if { (ac_try="$ac_link" | ||
31200 | case "(($ac_try" in | ||
31201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31202 | *) ac_try_echo=$ac_try;; | ||
31203 | esac | ||
31204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31205 | (eval "$ac_link") 2>conftest.er1 | ||
31206 | ac_status=$? | ||
31207 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31208 | rm -f conftest.er1 | ||
31209 | cat conftest.err >&5 | ||
31210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31211 | (exit $ac_status); } && { | ||
31212 | test -z "$ac_c_werror_flag" || | ||
31213 | test ! -s conftest.err | ||
31214 | } && test -s conftest$ac_exeext && | ||
31215 | $as_test_x conftest$ac_exeext; then | ||
31216 | ac_cv_search_dn_expand=$ac_res | ||
31217 | else | ||
31218 | echo "$as_me: failed program was:" >&5 | ||
31219 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31220 | |||
31221 | |||
31222 | fi | ||
31223 | |||
31224 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31225 | conftest$ac_exeext | ||
31226 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
31227 | break | ||
31228 | fi | ||
31229 | done | ||
31230 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
31231 | : | ||
31232 | else | ||
31233 | ac_cv_search_dn_expand=no | ||
31234 | fi | ||
31235 | rm conftest.$ac_ext | ||
31236 | LIBS=$ac_func_search_save_LIBS | ||
31237 | fi | ||
31238 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
31239 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
31240 | ac_res=$ac_cv_search_dn_expand | ||
31241 | if test "$ac_res" != no; then | ||
31242 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
31243 | |||
31244 | fi | ||
31245 | |||
31246 | { echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
31247 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; } | ||
31248 | cat >conftest.$ac_ext <<_ACEOF | ||
31249 | /* confdefs.h. */ | ||
31250 | _ACEOF | ||
31251 | cat confdefs.h >>conftest.$ac_ext | ||
31252 | cat >>conftest.$ac_ext <<_ACEOF | ||
31253 | /* end confdefs.h. */ | ||
31254 | |||
31255 | #include <sys/types.h> | ||
31256 | #include <netinet/in.h> | ||
31257 | #include <arpa/nameser.h> | ||
31258 | #include <netdb.h> | ||
31259 | #include <resolv.h> | ||
31260 | |||
31261 | int | ||
31262 | main () | ||
31263 | { | ||
31264 | |||
31265 | res_query (0, 0, 0, 0, 0); | ||
31266 | |||
31267 | ; | ||
31268 | return 0; | ||
31269 | } | ||
31270 | _ACEOF | ||
31271 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31272 | if { (ac_try="$ac_link" | ||
31273 | case "(($ac_try" in | ||
31274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31275 | *) ac_try_echo=$ac_try;; | ||
31276 | esac | ||
31277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31278 | (eval "$ac_link") 2>conftest.er1 | ||
31279 | ac_status=$? | ||
31280 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31281 | rm -f conftest.er1 | ||
31282 | cat conftest.err >&5 | ||
31283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31284 | (exit $ac_status); } && { | ||
31285 | test -z "$ac_c_werror_flag" || | ||
31286 | test ! -s conftest.err | ||
31287 | } && test -s conftest$ac_exeext && | ||
31288 | $as_test_x conftest$ac_exeext; then | ||
31289 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
31290 | echo "${ECHO_T}yes" >&6; } | ||
31291 | else | ||
31292 | echo "$as_me: failed program was:" >&5 | ||
31293 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31294 | |||
31295 | { echo "$as_me:$LINENO: result: no" >&5 | ||
31296 | echo "${ECHO_T}no" >&6; } | ||
31297 | saved_LIBS="$LIBS" | ||
31298 | LIBS="$LIBS -lresolv" | ||
31299 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
31300 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
31301 | cat >conftest.$ac_ext <<_ACEOF | ||
31302 | /* confdefs.h. */ | ||
31303 | _ACEOF | ||
31304 | cat confdefs.h >>conftest.$ac_ext | ||
31305 | cat >>conftest.$ac_ext <<_ACEOF | ||
31306 | /* end confdefs.h. */ | ||
31307 | |||
31308 | #include <sys/types.h> | ||
31309 | #include <netinet/in.h> | ||
31310 | #include <arpa/nameser.h> | ||
31311 | #include <netdb.h> | ||
31312 | #include <resolv.h> | ||
31313 | |||
31314 | int | ||
31315 | main () | ||
31316 | { | ||
31317 | |||
31318 | res_query (0, 0, 0, 0, 0); | ||
31319 | |||
31320 | ; | ||
31321 | return 0; | ||
31322 | } | ||
31323 | _ACEOF | ||
31324 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31325 | if { (ac_try="$ac_link" | ||
31326 | case "(($ac_try" in | ||
31327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31328 | *) ac_try_echo=$ac_try;; | ||
31329 | esac | ||
31330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31331 | (eval "$ac_link") 2>conftest.er1 | ||
31332 | ac_status=$? | ||
31333 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31334 | rm -f conftest.er1 | ||
31335 | cat conftest.err >&5 | ||
31336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31337 | (exit $ac_status); } && { | ||
31338 | test -z "$ac_c_werror_flag" || | ||
31339 | test ! -s conftest.err | ||
31340 | } && test -s conftest$ac_exeext && | ||
31341 | $as_test_x conftest$ac_exeext; then | ||
31342 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
31343 | echo "${ECHO_T}yes" >&6; } | ||
31344 | else | ||
31345 | echo "$as_me: failed program was:" >&5 | ||
31346 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31347 | |||
31348 | LIBS="$saved_LIBS" | ||
31349 | { echo "$as_me:$LINENO: result: no" >&5 | ||
31350 | echo "${ECHO_T}no" >&6; } | ||
31351 | fi | ||
31352 | |||
31353 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31354 | conftest$ac_exeext conftest.$ac_ext | ||
31355 | |||
31356 | fi | ||
31357 | |||
31358 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31359 | conftest$ac_exeext conftest.$ac_ext | ||
31360 | |||
31361 | |||
31362 | for ac_func in _getshort _getlong | ||
31363 | do | ||
31364 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
31365 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
31366 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
31367 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
31368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31369 | else | ||
31370 | cat >conftest.$ac_ext <<_ACEOF | ||
31371 | /* confdefs.h. */ | ||
31372 | _ACEOF | ||
31373 | cat confdefs.h >>conftest.$ac_ext | ||
31374 | cat >>conftest.$ac_ext <<_ACEOF | ||
31375 | /* end confdefs.h. */ | ||
31376 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
31377 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
31378 | #define $ac_func innocuous_$ac_func | ||
31379 | |||
31380 | /* System header to define __stub macros and hopefully few prototypes, | ||
31381 | which can conflict with char $ac_func (); below. | ||
31382 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
31383 | <limits.h> exists even on freestanding compilers. */ | ||
31384 | |||
31385 | #ifdef __STDC__ | ||
31386 | # include <limits.h> | ||
31387 | #else | ||
31388 | # include <assert.h> | ||
31389 | #endif | ||
31390 | |||
31391 | #undef $ac_func | ||
31392 | |||
31393 | /* Override any GCC internal prototype to avoid an error. | ||
31394 | Use char because int might match the return type of a GCC | ||
31395 | builtin and then its argument prototype would still apply. */ | ||
31396 | #ifdef __cplusplus | ||
31397 | extern "C" | ||
31398 | #endif | ||
31399 | char $ac_func (); | ||
31400 | /* The GNU C library defines this for functions which it implements | ||
31401 | to always fail with ENOSYS. Some functions are actually named | ||
31402 | something starting with __ and the normal name is an alias. */ | ||
31403 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
31404 | choke me | ||
31405 | #endif | ||
31406 | |||
31407 | int | ||
31408 | main () | ||
31409 | { | ||
31410 | return $ac_func (); | ||
31411 | ; | ||
31412 | return 0; | ||
31413 | } | ||
31414 | _ACEOF | ||
31415 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31416 | if { (ac_try="$ac_link" | ||
31417 | case "(($ac_try" in | ||
31418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31419 | *) ac_try_echo=$ac_try;; | ||
31420 | esac | ||
31421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31422 | (eval "$ac_link") 2>conftest.er1 | ||
31423 | ac_status=$? | ||
31424 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31425 | rm -f conftest.er1 | ||
31426 | cat conftest.err >&5 | ||
31427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31428 | (exit $ac_status); } && { | ||
31429 | test -z "$ac_c_werror_flag" || | ||
31430 | test ! -s conftest.err | ||
31431 | } && test -s conftest$ac_exeext && | ||
31432 | $as_test_x conftest$ac_exeext; then | ||
31433 | eval "$as_ac_var=yes" | ||
31434 | else | ||
31435 | echo "$as_me: failed program was:" >&5 | ||
31436 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31437 | |||
31438 | eval "$as_ac_var=no" | ||
31439 | fi | ||
31440 | |||
31441 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31442 | conftest$ac_exeext conftest.$ac_ext | ||
31443 | fi | ||
31444 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
31445 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
31446 | echo "${ECHO_T}$ac_res" >&6; } | ||
31447 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
31448 | cat >>confdefs.h <<_ACEOF | ||
31449 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
31450 | _ACEOF | ||
31451 | |||
31452 | fi | ||
31453 | done | ||
31454 | |||
31455 | { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
31456 | echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; } | ||
31457 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
31458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31459 | else | ||
31460 | cat >conftest.$ac_ext <<_ACEOF | ||
31461 | /* confdefs.h. */ | ||
31462 | _ACEOF | ||
31463 | cat confdefs.h >>conftest.$ac_ext | ||
31464 | cat >>conftest.$ac_ext <<_ACEOF | ||
31465 | /* end confdefs.h. */ | ||
31466 | #include <sys/types.h> | ||
31467 | #include <arpa/nameser.h> | ||
31468 | |||
31469 | int | ||
31470 | main () | ||
31471 | { | ||
31472 | #ifndef _getshort | ||
31473 | (void) _getshort; | ||
31474 | #endif | ||
31475 | |||
31476 | ; | ||
31477 | return 0; | ||
31478 | } | ||
31479 | _ACEOF | ||
31480 | rm -f conftest.$ac_objext | ||
31481 | if { (ac_try="$ac_compile" | ||
31482 | case "(($ac_try" in | ||
31483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31484 | *) ac_try_echo=$ac_try;; | ||
31485 | esac | ||
31486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31487 | (eval "$ac_compile") 2>conftest.er1 | ||
31488 | ac_status=$? | ||
31489 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31490 | rm -f conftest.er1 | ||
31491 | cat conftest.err >&5 | ||
31492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31493 | (exit $ac_status); } && { | ||
31494 | test -z "$ac_c_werror_flag" || | ||
31495 | test ! -s conftest.err | ||
31496 | } && test -s conftest.$ac_objext; then | ||
31497 | ac_cv_have_decl__getshort=yes | ||
31498 | else | ||
31499 | echo "$as_me: failed program was:" >&5 | ||
31500 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31501 | |||
31502 | ac_cv_have_decl__getshort=no | ||
31503 | fi | ||
31504 | |||
31505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31506 | fi | ||
31507 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
31508 | echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; } | ||
31509 | if test $ac_cv_have_decl__getshort = yes; then | ||
31510 | |||
31511 | cat >>confdefs.h <<_ACEOF | ||
31512 | #define HAVE_DECL__GETSHORT 1 | ||
31513 | _ACEOF | ||
31514 | |||
31515 | |||
31516 | else | ||
31517 | cat >>confdefs.h <<_ACEOF | ||
31518 | #define HAVE_DECL__GETSHORT 0 | ||
31519 | _ACEOF | ||
31520 | |||
31521 | |||
31522 | fi | ||
31523 | { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
31524 | echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; } | ||
31525 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
31526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31527 | else | ||
31528 | cat >conftest.$ac_ext <<_ACEOF | ||
31529 | /* confdefs.h. */ | ||
31530 | _ACEOF | ||
31531 | cat confdefs.h >>conftest.$ac_ext | ||
31532 | cat >>conftest.$ac_ext <<_ACEOF | ||
31533 | /* end confdefs.h. */ | ||
31534 | #include <sys/types.h> | ||
31535 | #include <arpa/nameser.h> | ||
31536 | |||
31537 | int | ||
31538 | main () | ||
31539 | { | ||
31540 | #ifndef _getlong | ||
31541 | (void) _getlong; | ||
31542 | #endif | ||
31543 | |||
31544 | ; | ||
31545 | return 0; | ||
31546 | } | ||
31547 | _ACEOF | ||
31548 | rm -f conftest.$ac_objext | ||
31549 | if { (ac_try="$ac_compile" | ||
31550 | case "(($ac_try" in | ||
31551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31552 | *) ac_try_echo=$ac_try;; | ||
31553 | esac | ||
31554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31555 | (eval "$ac_compile") 2>conftest.er1 | ||
31556 | ac_status=$? | ||
31557 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31558 | rm -f conftest.er1 | ||
31559 | cat conftest.err >&5 | ||
31560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31561 | (exit $ac_status); } && { | ||
31562 | test -z "$ac_c_werror_flag" || | ||
31563 | test ! -s conftest.err | ||
31564 | } && test -s conftest.$ac_objext; then | ||
31565 | ac_cv_have_decl__getlong=yes | ||
31566 | else | ||
31567 | echo "$as_me: failed program was:" >&5 | ||
31568 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31569 | |||
31570 | ac_cv_have_decl__getlong=no | ||
31571 | fi | ||
31572 | |||
31573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31574 | fi | ||
31575 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
31576 | echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; } | ||
31577 | if test $ac_cv_have_decl__getlong = yes; then | ||
31578 | |||
31579 | cat >>confdefs.h <<_ACEOF | ||
31580 | #define HAVE_DECL__GETLONG 1 | ||
31581 | _ACEOF | ||
31582 | |||
31583 | |||
31584 | else | ||
31585 | cat >>confdefs.h <<_ACEOF | ||
31586 | #define HAVE_DECL__GETLONG 0 | ||
31587 | _ACEOF | ||
31588 | |||
31589 | |||
31590 | fi | ||
31591 | |||
31592 | |||
31593 | { echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
31594 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; } | ||
31595 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
31596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31597 | else | ||
31598 | cat >conftest.$ac_ext <<_ACEOF | ||
31599 | /* confdefs.h. */ | ||
31600 | _ACEOF | ||
31601 | cat confdefs.h >>conftest.$ac_ext | ||
31602 | cat >>conftest.$ac_ext <<_ACEOF | ||
31603 | /* end confdefs.h. */ | ||
31604 | #include <arpa/nameser.h> | ||
31605 | |||
31606 | int | ||
31607 | main () | ||
31608 | { | ||
31609 | static HEADER ac_aggr; | ||
31610 | if (ac_aggr.ad) | ||
31611 | return 0; | ||
31612 | ; | ||
31613 | return 0; | ||
31614 | } | ||
31615 | _ACEOF | ||
31616 | rm -f conftest.$ac_objext | ||
31617 | if { (ac_try="$ac_compile" | ||
31618 | case "(($ac_try" in | ||
31619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31620 | *) ac_try_echo=$ac_try;; | ||
31621 | esac | ||
31622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31623 | (eval "$ac_compile") 2>conftest.er1 | ||
31624 | ac_status=$? | ||
31625 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31626 | rm -f conftest.er1 | ||
31627 | cat conftest.err >&5 | ||
31628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31629 | (exit $ac_status); } && { | ||
31630 | test -z "$ac_c_werror_flag" || | ||
31631 | test ! -s conftest.err | ||
31632 | } && test -s conftest.$ac_objext; then | ||
31633 | ac_cv_member_HEADER_ad=yes | ||
31634 | else | ||
31635 | echo "$as_me: failed program was:" >&5 | ||
31636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31637 | |||
31638 | cat >conftest.$ac_ext <<_ACEOF | ||
31639 | /* confdefs.h. */ | ||
31640 | _ACEOF | ||
31641 | cat confdefs.h >>conftest.$ac_ext | ||
31642 | cat >>conftest.$ac_ext <<_ACEOF | ||
31643 | /* end confdefs.h. */ | ||
31644 | #include <arpa/nameser.h> | ||
31645 | |||
31646 | int | ||
31647 | main () | ||
31648 | { | ||
31649 | static HEADER ac_aggr; | ||
31650 | if (sizeof ac_aggr.ad) | ||
31651 | return 0; | ||
31652 | ; | ||
31653 | return 0; | ||
31654 | } | ||
31655 | _ACEOF | ||
31656 | rm -f conftest.$ac_objext | ||
31657 | if { (ac_try="$ac_compile" | ||
31658 | case "(($ac_try" in | ||
31659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31660 | *) ac_try_echo=$ac_try;; | ||
31661 | esac | ||
31662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31663 | (eval "$ac_compile") 2>conftest.er1 | ||
31664 | ac_status=$? | ||
31665 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31666 | rm -f conftest.er1 | ||
31667 | cat conftest.err >&5 | ||
31668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31669 | (exit $ac_status); } && { | ||
31670 | test -z "$ac_c_werror_flag" || | ||
31671 | test ! -s conftest.err | ||
31672 | } && test -s conftest.$ac_objext; then | ||
31673 | ac_cv_member_HEADER_ad=yes | ||
31674 | else | ||
31675 | echo "$as_me: failed program was:" >&5 | ||
31676 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31677 | |||
31678 | ac_cv_member_HEADER_ad=no | ||
31679 | fi | ||
31680 | |||
31681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31682 | fi | ||
31683 | |||
31684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31685 | fi | ||
31686 | { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
31687 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; } | ||
31688 | if test $ac_cv_member_HEADER_ad = yes; then | ||
31689 | |||
31690 | cat >>confdefs.h <<\_ACEOF | ||
31691 | #define HAVE_HEADER_AD 1 | ||
31692 | _ACEOF | ||
31693 | |||
31694 | fi | ||
31695 | |||
31696 | |||
31697 | fi | ||
31698 | |||
31699 | |||
31700 | { echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5 | ||
31701 | echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; } | ||
31702 | cat >conftest.$ac_ext <<_ACEOF | ||
31703 | /* confdefs.h. */ | ||
31704 | _ACEOF | ||
31705 | cat confdefs.h >>conftest.$ac_ext | ||
31706 | cat >>conftest.$ac_ext <<_ACEOF | ||
31707 | /* end confdefs.h. */ | ||
31708 | |||
31709 | #include <stdio.h> | ||
31710 | #if HAVE_SYS_TYPES_H | ||
31711 | # include <sys/types.h> | ||
31712 | #endif | ||
31713 | #include <netinet/in.h> | ||
31714 | #include <arpa/nameser.h> | ||
31715 | #include <resolv.h> | ||
31716 | extern struct __res_state _res; | ||
31717 | |||
31718 | int | ||
31719 | main () | ||
31720 | { | ||
31721 | |||
31722 | ; | ||
31723 | return 0; | ||
31724 | } | ||
31725 | _ACEOF | ||
31726 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31727 | if { (ac_try="$ac_link" | ||
31728 | case "(($ac_try" in | ||
31729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31730 | *) ac_try_echo=$ac_try;; | ||
31731 | esac | ||
31732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31733 | (eval "$ac_link") 2>conftest.er1 | ||
31734 | ac_status=$? | ||
31735 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31736 | rm -f conftest.er1 | ||
31737 | cat conftest.err >&5 | ||
31738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31739 | (exit $ac_status); } && { | ||
31740 | test -z "$ac_c_werror_flag" || | ||
31741 | test ! -s conftest.err | ||
31742 | } && test -s conftest$ac_exeext && | ||
31743 | $as_test_x conftest$ac_exeext; then | ||
31744 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
31745 | echo "${ECHO_T}yes" >&6; } | ||
31746 | |||
31747 | cat >>confdefs.h <<\_ACEOF | ||
31748 | #define HAVE__RES_EXTERN 1 | ||
31749 | _ACEOF | ||
31750 | |||
31751 | |||
31752 | else | ||
31753 | echo "$as_me: failed program was:" >&5 | ||
31754 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31755 | |||
31756 | { echo "$as_me:$LINENO: result: no" >&5 | ||
31757 | echo "${ECHO_T}no" >&6; } | ||
31758 | |||
31759 | fi | ||
31760 | |||
31761 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31762 | conftest$ac_exeext conftest.$ac_ext | ||
31763 | |||
31764 | # Check whether user wants SELinux support | ||
31765 | SELINUX_MSG="no" | ||
31766 | LIBSELINUX="" | ||
31767 | |||
31768 | # Check whether --with-selinux was given. | ||
31769 | if test "${with_selinux+set}" = set; then | ||
31770 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
31771 | save_LIBS="$LIBS" | ||
31772 | |||
31773 | cat >>confdefs.h <<\_ACEOF | ||
31774 | #define WITH_SELINUX 1 | ||
31775 | _ACEOF | ||
31776 | |||
31777 | SELINUX_MSG="yes" | ||
31778 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
31779 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
31780 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
31781 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
31782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31783 | fi | ||
31784 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
31785 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
31786 | else | ||
31787 | # Is the header compilable? | ||
31788 | { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | ||
31789 | echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; } | ||
31790 | cat >conftest.$ac_ext <<_ACEOF | ||
31791 | /* confdefs.h. */ | ||
31792 | _ACEOF | ||
31793 | cat confdefs.h >>conftest.$ac_ext | ||
31794 | cat >>conftest.$ac_ext <<_ACEOF | ||
31795 | /* end confdefs.h. */ | ||
31796 | $ac_includes_default | ||
31797 | #include <selinux/selinux.h> | ||
31798 | _ACEOF | ||
31799 | rm -f conftest.$ac_objext | ||
31800 | if { (ac_try="$ac_compile" | ||
31801 | case "(($ac_try" in | ||
31802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31803 | *) ac_try_echo=$ac_try;; | ||
31804 | esac | ||
31805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31806 | (eval "$ac_compile") 2>conftest.er1 | ||
31807 | ac_status=$? | ||
31808 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31809 | rm -f conftest.er1 | ||
31810 | cat conftest.err >&5 | ||
31811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31812 | (exit $ac_status); } && { | ||
31813 | test -z "$ac_c_werror_flag" || | ||
31814 | test ! -s conftest.err | ||
31815 | } && test -s conftest.$ac_objext; then | ||
31816 | ac_header_compiler=yes | ||
31817 | else | ||
31818 | echo "$as_me: failed program was:" >&5 | ||
31819 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31820 | |||
31821 | ac_header_compiler=no | ||
31822 | fi | ||
31823 | |||
31824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31825 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
31826 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
31827 | |||
31828 | # Is the header present? | ||
31829 | { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | ||
31830 | echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; } | ||
31831 | cat >conftest.$ac_ext <<_ACEOF | ||
31832 | /* confdefs.h. */ | ||
31833 | _ACEOF | ||
31834 | cat confdefs.h >>conftest.$ac_ext | ||
31835 | cat >>conftest.$ac_ext <<_ACEOF | ||
31836 | /* end confdefs.h. */ | ||
31837 | #include <selinux/selinux.h> | ||
31838 | _ACEOF | ||
31839 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
31840 | case "(($ac_try" in | ||
31841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31842 | *) ac_try_echo=$ac_try;; | ||
31843 | esac | ||
31844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31845 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
31846 | ac_status=$? | ||
31847 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31848 | rm -f conftest.er1 | ||
31849 | cat conftest.err >&5 | ||
31850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31851 | (exit $ac_status); } >/dev/null && { | ||
31852 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
31853 | test ! -s conftest.err | ||
31854 | }; then | ||
31855 | ac_header_preproc=yes | ||
31856 | else | ||
31857 | echo "$as_me: failed program was:" >&5 | ||
31858 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31859 | |||
31860 | ac_header_preproc=no | ||
31861 | fi | ||
31862 | |||
31863 | rm -f conftest.err conftest.$ac_ext | ||
31864 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
31865 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
31866 | |||
31867 | # So? What about this header? | ||
31868 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
31869 | yes:no: ) | ||
31870 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
31871 | echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
31872 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | ||
31873 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | ||
31874 | ac_header_preproc=yes | ||
31875 | ;; | ||
31876 | no:yes:* ) | ||
31877 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | ||
31878 | echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | ||
31879 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | ||
31880 | echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | ||
31881 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | ||
31882 | echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | ||
31883 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
31884 | echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
31885 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | ||
31886 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | ||
31887 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | ||
31888 | echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | ||
31889 | ( cat <<\_ASBOX | ||
31890 | ## ------------------------------------------- ## | ||
31891 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
31892 | ## ------------------------------------------- ## | ||
31893 | _ASBOX | ||
31894 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
31895 | ;; | ||
31896 | esac | ||
31897 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
31898 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
31899 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
31900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31901 | else | ||
31902 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | ||
31903 | fi | ||
31904 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
31905 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
31906 | |||
31907 | fi | ||
31908 | if test $ac_cv_header_selinux_selinux_h = yes; then | ||
31909 | : | ||
31910 | else | ||
31911 | { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 | ||
31912 | echo "$as_me: error: SELinux support requires selinux.h header" >&2;} | ||
31913 | { (exit 1); exit 1; }; } | ||
31914 | fi | ||
31915 | |||
31916 | |||
31917 | { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 | ||
31918 | echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; } | ||
31919 | if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then | ||
31920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31921 | else | ||
31922 | ac_check_lib_save_LIBS=$LIBS | ||
31923 | LIBS="-lselinux $LIBS" | ||
31924 | cat >conftest.$ac_ext <<_ACEOF | ||
31925 | /* confdefs.h. */ | ||
31926 | _ACEOF | ||
31927 | cat confdefs.h >>conftest.$ac_ext | ||
31928 | cat >>conftest.$ac_ext <<_ACEOF | ||
31929 | /* end confdefs.h. */ | ||
31930 | |||
31931 | /* Override any GCC internal prototype to avoid an error. | ||
31932 | Use char because int might match the return type of a GCC | ||
31933 | builtin and then its argument prototype would still apply. */ | ||
31934 | #ifdef __cplusplus | ||
31935 | extern "C" | ||
31936 | #endif | ||
31937 | char setexeccon (); | ||
31938 | int | ||
31939 | main () | ||
31940 | { | ||
31941 | return setexeccon (); | ||
31942 | ; | ||
31943 | return 0; | ||
31944 | } | ||
31945 | _ACEOF | ||
31946 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31947 | if { (ac_try="$ac_link" | ||
31948 | case "(($ac_try" in | ||
31949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31950 | *) ac_try_echo=$ac_try;; | ||
31951 | esac | ||
31952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31953 | (eval "$ac_link") 2>conftest.er1 | ||
31954 | ac_status=$? | ||
31955 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31956 | rm -f conftest.er1 | ||
31957 | cat conftest.err >&5 | ||
31958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31959 | (exit $ac_status); } && { | ||
31960 | test -z "$ac_c_werror_flag" || | ||
31961 | test ! -s conftest.err | ||
31962 | } && test -s conftest$ac_exeext && | ||
31963 | $as_test_x conftest$ac_exeext; then | ||
31964 | ac_cv_lib_selinux_setexeccon=yes | ||
31965 | else | ||
31966 | echo "$as_me: failed program was:" >&5 | ||
31967 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31968 | |||
31969 | ac_cv_lib_selinux_setexeccon=no | ||
31970 | fi | ||
31971 | |||
31972 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31973 | conftest$ac_exeext conftest.$ac_ext | ||
31974 | LIBS=$ac_check_lib_save_LIBS | ||
31975 | fi | ||
31976 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
31977 | echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; } | ||
31978 | if test $ac_cv_lib_selinux_setexeccon = yes; then | ||
31979 | LIBSELINUX="-lselinux" | ||
31980 | LIBS="$LIBS -lselinux" | ||
31981 | |||
31982 | else | ||
31983 | { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 | ||
31984 | echo "$as_me: error: SELinux support requires libselinux library" >&2;} | ||
31985 | { (exit 1); exit 1; }; } | ||
31986 | fi | ||
31987 | |||
31988 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
31989 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
31990 | |||
31991 | |||
31992 | for ac_func in getseuserbyname get_default_context_with_level | ||
31993 | do | ||
31994 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
31995 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
31996 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
31997 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
31998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31999 | else | ||
32000 | cat >conftest.$ac_ext <<_ACEOF | ||
32001 | /* confdefs.h. */ | ||
32002 | _ACEOF | ||
32003 | cat confdefs.h >>conftest.$ac_ext | ||
32004 | cat >>conftest.$ac_ext <<_ACEOF | ||
32005 | /* end confdefs.h. */ | ||
32006 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
32007 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
32008 | #define $ac_func innocuous_$ac_func | ||
32009 | |||
32010 | /* System header to define __stub macros and hopefully few prototypes, | ||
32011 | which can conflict with char $ac_func (); below. | ||
32012 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
32013 | <limits.h> exists even on freestanding compilers. */ | ||
32014 | |||
32015 | #ifdef __STDC__ | ||
32016 | # include <limits.h> | ||
32017 | #else | ||
32018 | # include <assert.h> | ||
32019 | #endif | ||
32020 | |||
32021 | #undef $ac_func | ||
32022 | |||
32023 | /* Override any GCC internal prototype to avoid an error. | ||
32024 | Use char because int might match the return type of a GCC | ||
32025 | builtin and then its argument prototype would still apply. */ | ||
32026 | #ifdef __cplusplus | ||
32027 | extern "C" | ||
32028 | #endif | ||
32029 | char $ac_func (); | ||
32030 | /* The GNU C library defines this for functions which it implements | ||
32031 | to always fail with ENOSYS. Some functions are actually named | ||
32032 | something starting with __ and the normal name is an alias. */ | ||
32033 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
32034 | choke me | ||
32035 | #endif | ||
32036 | |||
32037 | int | ||
32038 | main () | ||
32039 | { | ||
32040 | return $ac_func (); | ||
32041 | ; | ||
32042 | return 0; | ||
32043 | } | ||
32044 | _ACEOF | ||
32045 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32046 | if { (ac_try="$ac_link" | ||
32047 | case "(($ac_try" in | ||
32048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32049 | *) ac_try_echo=$ac_try;; | ||
32050 | esac | ||
32051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32052 | (eval "$ac_link") 2>conftest.er1 | ||
32053 | ac_status=$? | ||
32054 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32055 | rm -f conftest.er1 | ||
32056 | cat conftest.err >&5 | ||
32057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32058 | (exit $ac_status); } && { | ||
32059 | test -z "$ac_c_werror_flag" || | ||
32060 | test ! -s conftest.err | ||
32061 | } && test -s conftest$ac_exeext && | ||
32062 | $as_test_x conftest$ac_exeext; then | ||
32063 | eval "$as_ac_var=yes" | ||
32064 | else | ||
32065 | echo "$as_me: failed program was:" >&5 | ||
32066 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32067 | |||
32068 | eval "$as_ac_var=no" | ||
32069 | fi | ||
32070 | |||
32071 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32072 | conftest$ac_exeext conftest.$ac_ext | ||
32073 | fi | ||
32074 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
32075 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
32076 | echo "${ECHO_T}$ac_res" >&6; } | ||
32077 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
32078 | cat >>confdefs.h <<_ACEOF | ||
32079 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
32080 | _ACEOF | ||
32081 | |||
32082 | fi | ||
32083 | done | ||
32084 | |||
32085 | LIBS="$save_LIBS" | ||
32086 | fi | ||
32087 | |||
32088 | fi | ||
32089 | |||
32090 | |||
32091 | |||
32092 | |||
32093 | # Check whether user wants Kerberos 5 support | ||
32094 | KRB5_MSG="no" | ||
32095 | |||
32096 | # Check whether --with-kerberos5 was given. | ||
32097 | if test "${with_kerberos5+set}" = set; then | ||
32098 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
32099 | if test "x$withval" = "xyes" ; then | ||
32100 | KRB5ROOT="/usr/local" | ||
32101 | else | ||
32102 | KRB5ROOT=${withval} | ||
32103 | fi | ||
32104 | |||
32105 | |||
32106 | cat >>confdefs.h <<\_ACEOF | ||
32107 | #define KRB5 1 | ||
32108 | _ACEOF | ||
32109 | |||
32110 | KRB5_MSG="yes" | ||
32111 | |||
32112 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
32113 | set dummy krb5-config; ac_word=$2 | ||
32114 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
32115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
32116 | if test "${ac_cv_path_KRB5CONF+set}" = set; then | ||
32117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32118 | else | ||
32119 | case $KRB5CONF in | ||
32120 | [\\/]* | ?:[\\/]*) | ||
32121 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
32122 | ;; | ||
32123 | *) | ||
32124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
32125 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
32126 | for as_dir in $as_dummy | ||
32127 | do | ||
32128 | IFS=$as_save_IFS | ||
32129 | test -z "$as_dir" && as_dir=. | ||
32130 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
32131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
32132 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
32133 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
32134 | break 2 | ||
32135 | fi | ||
32136 | done | ||
32137 | done | ||
32138 | IFS=$as_save_IFS | ||
32139 | |||
32140 | test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
32141 | ;; | ||
32142 | esac | ||
32143 | fi | ||
32144 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
32145 | if test -n "$KRB5CONF"; then | ||
32146 | { echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
32147 | echo "${ECHO_T}$KRB5CONF" >&6; } | ||
32148 | else | ||
32149 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32150 | echo "${ECHO_T}no" >&6; } | ||
32151 | fi | ||
32152 | |||
32153 | |||
32154 | if test -x $KRB5CONF ; then | ||
32155 | K5CFLAGS="`$KRB5CONF --cflags`" | ||
32156 | K5LIBS="`$KRB5CONF --libs`" | ||
32157 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
32158 | |||
32159 | { echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
32160 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; } | ||
32161 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
32162 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
32163 | echo "${ECHO_T}yes" >&6; } | ||
32164 | |||
32165 | cat >>confdefs.h <<\_ACEOF | ||
32166 | #define GSSAPI 1 | ||
32167 | _ACEOF | ||
32168 | |||
32169 | GSSCFLAGS="`$KRB5CONF --cflags gssapi`" | ||
32170 | GSSLIBS="`$KRB5CONF --libs gssapi`" | ||
32171 | CPPFLAGS="$CPPFLAGS $GSSCFLAGS" | ||
32172 | else | ||
32173 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32174 | echo "${ECHO_T}no" >&6; } | ||
32175 | fi | ||
32176 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
32177 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
32178 | cat >conftest.$ac_ext <<_ACEOF | ||
32179 | /* confdefs.h. */ | ||
32180 | _ACEOF | ||
32181 | cat confdefs.h >>conftest.$ac_ext | ||
32182 | cat >>conftest.$ac_ext <<_ACEOF | ||
32183 | /* end confdefs.h. */ | ||
32184 | #include <krb5.h> | ||
32185 | |||
32186 | int | ||
32187 | main () | ||
32188 | { | ||
32189 | char *tmp = heimdal_version; | ||
32190 | ; | ||
32191 | return 0; | ||
32192 | } | ||
32193 | _ACEOF | ||
32194 | rm -f conftest.$ac_objext | ||
32195 | if { (ac_try="$ac_compile" | ||
32196 | case "(($ac_try" in | ||
32197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32198 | *) ac_try_echo=$ac_try;; | ||
32199 | esac | ||
32200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32201 | (eval "$ac_compile") 2>conftest.er1 | ||
32202 | ac_status=$? | ||
32203 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32204 | rm -f conftest.er1 | ||
32205 | cat conftest.err >&5 | ||
32206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32207 | (exit $ac_status); } && { | ||
32208 | test -z "$ac_c_werror_flag" || | ||
32209 | test ! -s conftest.err | ||
32210 | } && test -s conftest.$ac_objext; then | ||
32211 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
32212 | echo "${ECHO_T}yes" >&6; } | ||
32213 | |||
32214 | cat >>confdefs.h <<\_ACEOF | ||
32215 | #define HEIMDAL 1 | ||
32216 | _ACEOF | ||
32217 | |||
32218 | else | ||
32219 | echo "$as_me: failed program was:" >&5 | ||
32220 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32221 | |||
32222 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32223 | echo "${ECHO_T}no" >&6; } | ||
32224 | |||
32225 | fi | ||
32226 | |||
32227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32228 | else | ||
32229 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
32230 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
32231 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
32232 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
32233 | cat >conftest.$ac_ext <<_ACEOF | ||
32234 | /* confdefs.h. */ | ||
32235 | _ACEOF | ||
32236 | cat confdefs.h >>conftest.$ac_ext | ||
32237 | cat >>conftest.$ac_ext <<_ACEOF | ||
32238 | /* end confdefs.h. */ | ||
32239 | #include <krb5.h> | ||
32240 | |||
32241 | int | ||
32242 | main () | ||
32243 | { | ||
32244 | char *tmp = heimdal_version; | ||
32245 | ; | ||
32246 | return 0; | ||
32247 | } | ||
32248 | _ACEOF | ||
32249 | rm -f conftest.$ac_objext | ||
32250 | if { (ac_try="$ac_compile" | ||
32251 | case "(($ac_try" in | ||
32252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32253 | *) ac_try_echo=$ac_try;; | ||
32254 | esac | ||
32255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32256 | (eval "$ac_compile") 2>conftest.er1 | ||
32257 | ac_status=$? | ||
32258 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32259 | rm -f conftest.er1 | ||
32260 | cat conftest.err >&5 | ||
32261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32262 | (exit $ac_status); } && { | ||
32263 | test -z "$ac_c_werror_flag" || | ||
32264 | test ! -s conftest.err | ||
32265 | } && test -s conftest.$ac_objext; then | ||
32266 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
32267 | echo "${ECHO_T}yes" >&6; } | ||
32268 | cat >>confdefs.h <<\_ACEOF | ||
32269 | #define HEIMDAL 1 | ||
32270 | _ACEOF | ||
32271 | |||
32272 | K5LIBS="-lkrb5" | ||
32273 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
32274 | { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
32275 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; } | ||
32276 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
32277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32278 | else | ||
32279 | ac_check_lib_save_LIBS=$LIBS | ||
32280 | LIBS="-lroken $LIBS" | ||
32281 | cat >conftest.$ac_ext <<_ACEOF | ||
32282 | /* confdefs.h. */ | ||
32283 | _ACEOF | ||
32284 | cat confdefs.h >>conftest.$ac_ext | ||
32285 | cat >>conftest.$ac_ext <<_ACEOF | ||
32286 | /* end confdefs.h. */ | ||
32287 | |||
32288 | /* Override any GCC internal prototype to avoid an error. | ||
32289 | Use char because int might match the return type of a GCC | ||
32290 | builtin and then its argument prototype would still apply. */ | ||
32291 | #ifdef __cplusplus | ||
32292 | extern "C" | ||
32293 | #endif | ||
32294 | char net_write (); | ||
32295 | int | ||
32296 | main () | ||
32297 | { | ||
32298 | return net_write (); | ||
32299 | ; | ||
32300 | return 0; | ||
32301 | } | ||
32302 | _ACEOF | ||
32303 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32304 | if { (ac_try="$ac_link" | ||
32305 | case "(($ac_try" in | ||
32306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32307 | *) ac_try_echo=$ac_try;; | ||
32308 | esac | ||
32309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32310 | (eval "$ac_link") 2>conftest.er1 | ||
32311 | ac_status=$? | ||
32312 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32313 | rm -f conftest.er1 | ||
32314 | cat conftest.err >&5 | ||
32315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32316 | (exit $ac_status); } && { | ||
32317 | test -z "$ac_c_werror_flag" || | ||
32318 | test ! -s conftest.err | ||
32319 | } && test -s conftest$ac_exeext && | ||
32320 | $as_test_x conftest$ac_exeext; then | ||
32321 | ac_cv_lib_roken_net_write=yes | ||
32322 | else | ||
32323 | echo "$as_me: failed program was:" >&5 | ||
32324 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32325 | |||
32326 | ac_cv_lib_roken_net_write=no | ||
32327 | fi | ||
32328 | |||
32329 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32330 | conftest$ac_exeext conftest.$ac_ext | ||
32331 | LIBS=$ac_check_lib_save_LIBS | ||
32332 | fi | ||
32333 | { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
32334 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; } | ||
32335 | if test $ac_cv_lib_roken_net_write = yes; then | ||
32336 | K5LIBS="$K5LIBS -lroken" | ||
32337 | fi | ||
32338 | |||
32339 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | ||
32340 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; } | ||
32341 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | ||
32342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32343 | else | ||
32344 | ac_check_lib_save_LIBS=$LIBS | ||
32345 | LIBS="-ldes $LIBS" | ||
32346 | cat >conftest.$ac_ext <<_ACEOF | ||
32347 | /* confdefs.h. */ | ||
32348 | _ACEOF | ||
32349 | cat confdefs.h >>conftest.$ac_ext | ||
32350 | cat >>conftest.$ac_ext <<_ACEOF | ||
32351 | /* end confdefs.h. */ | ||
32352 | |||
32353 | /* Override any GCC internal prototype to avoid an error. | ||
32354 | Use char because int might match the return type of a GCC | ||
32355 | builtin and then its argument prototype would still apply. */ | ||
32356 | #ifdef __cplusplus | ||
32357 | extern "C" | ||
32358 | #endif | ||
32359 | char des_cbc_encrypt (); | ||
32360 | int | ||
32361 | main () | ||
32362 | { | ||
32363 | return des_cbc_encrypt (); | ||
32364 | ; | ||
32365 | return 0; | ||
32366 | } | ||
32367 | _ACEOF | ||
32368 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32369 | if { (ac_try="$ac_link" | ||
32370 | case "(($ac_try" in | ||
32371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32372 | *) ac_try_echo=$ac_try;; | ||
32373 | esac | ||
32374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32375 | (eval "$ac_link") 2>conftest.er1 | ||
32376 | ac_status=$? | ||
32377 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32378 | rm -f conftest.er1 | ||
32379 | cat conftest.err >&5 | ||
32380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32381 | (exit $ac_status); } && { | ||
32382 | test -z "$ac_c_werror_flag" || | ||
32383 | test ! -s conftest.err | ||
32384 | } && test -s conftest$ac_exeext && | ||
32385 | $as_test_x conftest$ac_exeext; then | ||
32386 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
32387 | else | ||
32388 | echo "$as_me: failed program was:" >&5 | ||
32389 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32390 | |||
32391 | ac_cv_lib_des_des_cbc_encrypt=no | ||
32392 | fi | ||
32393 | |||
32394 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32395 | conftest$ac_exeext conftest.$ac_ext | ||
32396 | LIBS=$ac_check_lib_save_LIBS | ||
32397 | fi | ||
32398 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
32399 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
32400 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | ||
32401 | K5LIBS="$K5LIBS -ldes" | ||
32402 | fi | ||
32403 | |||
32404 | |||
32405 | else | ||
32406 | echo "$as_me: failed program was:" >&5 | ||
32407 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32408 | |||
32409 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32410 | echo "${ECHO_T}no" >&6; } | ||
32411 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
32412 | |||
32413 | |||
32414 | fi | ||
32415 | |||
32416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32417 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
32418 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
32419 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
32420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32421 | else | ||
32422 | ac_func_search_save_LIBS=$LIBS | ||
32423 | cat >conftest.$ac_ext <<_ACEOF | ||
32424 | /* confdefs.h. */ | ||
32425 | _ACEOF | ||
32426 | cat confdefs.h >>conftest.$ac_ext | ||
32427 | cat >>conftest.$ac_ext <<_ACEOF | ||
32428 | /* end confdefs.h. */ | ||
32429 | |||
32430 | /* Override any GCC internal prototype to avoid an error. | ||
32431 | Use char because int might match the return type of a GCC | ||
32432 | builtin and then its argument prototype would still apply. */ | ||
32433 | #ifdef __cplusplus | ||
32434 | extern "C" | ||
32435 | #endif | ||
32436 | char dn_expand (); | ||
32437 | int | ||
32438 | main () | ||
32439 | { | ||
32440 | return dn_expand (); | ||
32441 | ; | ||
32442 | return 0; | ||
32443 | } | ||
32444 | _ACEOF | ||
32445 | for ac_lib in '' resolv; do | ||
32446 | if test -z "$ac_lib"; then | ||
32447 | ac_res="none required" | ||
32448 | else | ||
32449 | ac_res=-l$ac_lib | ||
32450 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
32451 | fi | ||
32452 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32453 | if { (ac_try="$ac_link" | ||
32454 | case "(($ac_try" in | ||
32455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32456 | *) ac_try_echo=$ac_try;; | ||
32457 | esac | ||
32458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32459 | (eval "$ac_link") 2>conftest.er1 | ||
32460 | ac_status=$? | ||
32461 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32462 | rm -f conftest.er1 | ||
32463 | cat conftest.err >&5 | ||
32464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32465 | (exit $ac_status); } && { | ||
32466 | test -z "$ac_c_werror_flag" || | ||
32467 | test ! -s conftest.err | ||
32468 | } && test -s conftest$ac_exeext && | ||
32469 | $as_test_x conftest$ac_exeext; then | ||
32470 | ac_cv_search_dn_expand=$ac_res | ||
32471 | else | ||
32472 | echo "$as_me: failed program was:" >&5 | ||
32473 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32474 | |||
32475 | |||
32476 | fi | ||
32477 | |||
32478 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32479 | conftest$ac_exeext | ||
32480 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
32481 | break | ||
32482 | fi | ||
32483 | done | ||
32484 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
32485 | : | ||
32486 | else | ||
32487 | ac_cv_search_dn_expand=no | ||
32488 | fi | ||
32489 | rm conftest.$ac_ext | ||
32490 | LIBS=$ac_func_search_save_LIBS | ||
32491 | fi | ||
32492 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
32493 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
32494 | ac_res=$ac_cv_search_dn_expand | ||
32495 | if test "$ac_res" != no; then | ||
32496 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
32497 | |||
32498 | fi | ||
32499 | |||
32500 | |||
32501 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
32502 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; } | ||
32503 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
32504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32505 | else | ||
32506 | ac_check_lib_save_LIBS=$LIBS | ||
32507 | LIBS="-lgssapi_krb5 $LIBS" | ||
32508 | cat >conftest.$ac_ext <<_ACEOF | ||
32509 | /* confdefs.h. */ | ||
32510 | _ACEOF | ||
32511 | cat confdefs.h >>conftest.$ac_ext | ||
32512 | cat >>conftest.$ac_ext <<_ACEOF | ||
32513 | /* end confdefs.h. */ | ||
32514 | |||
32515 | /* Override any GCC internal prototype to avoid an error. | ||
32516 | Use char because int might match the return type of a GCC | ||
32517 | builtin and then its argument prototype would still apply. */ | ||
32518 | #ifdef __cplusplus | ||
32519 | extern "C" | ||
32520 | #endif | ||
32521 | char gss_init_sec_context (); | ||
32522 | int | ||
32523 | main () | ||
32524 | { | ||
32525 | return gss_init_sec_context (); | ||
32526 | ; | ||
32527 | return 0; | ||
32528 | } | ||
32529 | _ACEOF | ||
32530 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32531 | if { (ac_try="$ac_link" | ||
32532 | case "(($ac_try" in | ||
32533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32534 | *) ac_try_echo=$ac_try;; | ||
32535 | esac | ||
32536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32537 | (eval "$ac_link") 2>conftest.er1 | ||
32538 | ac_status=$? | ||
32539 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32540 | rm -f conftest.er1 | ||
32541 | cat conftest.err >&5 | ||
32542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32543 | (exit $ac_status); } && { | ||
32544 | test -z "$ac_c_werror_flag" || | ||
32545 | test ! -s conftest.err | ||
32546 | } && test -s conftest$ac_exeext && | ||
32547 | $as_test_x conftest$ac_exeext; then | ||
32548 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
32549 | else | ||
32550 | echo "$as_me: failed program was:" >&5 | ||
32551 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32552 | |||
32553 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
32554 | fi | ||
32555 | |||
32556 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32557 | conftest$ac_exeext conftest.$ac_ext | ||
32558 | LIBS=$ac_check_lib_save_LIBS | ||
32559 | fi | ||
32560 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
32561 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
32562 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
32563 | cat >>confdefs.h <<\_ACEOF | ||
32564 | #define GSSAPI 1 | ||
32565 | _ACEOF | ||
32566 | |||
32567 | GSSLIBS="-lgssapi_krb5" | ||
32568 | else | ||
32569 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
32570 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; } | ||
32571 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
32572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32573 | else | ||
32574 | ac_check_lib_save_LIBS=$LIBS | ||
32575 | LIBS="-lgssapi $LIBS" | ||
32576 | cat >conftest.$ac_ext <<_ACEOF | ||
32577 | /* confdefs.h. */ | ||
32578 | _ACEOF | ||
32579 | cat confdefs.h >>conftest.$ac_ext | ||
32580 | cat >>conftest.$ac_ext <<_ACEOF | ||
32581 | /* end confdefs.h. */ | ||
32582 | |||
32583 | /* Override any GCC internal prototype to avoid an error. | ||
32584 | Use char because int might match the return type of a GCC | ||
32585 | builtin and then its argument prototype would still apply. */ | ||
32586 | #ifdef __cplusplus | ||
32587 | extern "C" | ||
32588 | #endif | ||
32589 | char gss_init_sec_context (); | ||
32590 | int | ||
32591 | main () | ||
32592 | { | ||
32593 | return gss_init_sec_context (); | ||
32594 | ; | ||
32595 | return 0; | ||
32596 | } | ||
32597 | _ACEOF | ||
32598 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32599 | if { (ac_try="$ac_link" | ||
32600 | case "(($ac_try" in | ||
32601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32602 | *) ac_try_echo=$ac_try;; | ||
32603 | esac | ||
32604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32605 | (eval "$ac_link") 2>conftest.er1 | ||
32606 | ac_status=$? | ||
32607 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32608 | rm -f conftest.er1 | ||
32609 | cat conftest.err >&5 | ||
32610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32611 | (exit $ac_status); } && { | ||
32612 | test -z "$ac_c_werror_flag" || | ||
32613 | test ! -s conftest.err | ||
32614 | } && test -s conftest$ac_exeext && | ||
32615 | $as_test_x conftest$ac_exeext; then | ||
32616 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
32617 | else | ||
32618 | echo "$as_me: failed program was:" >&5 | ||
32619 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32620 | |||
32621 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
32622 | fi | ||
32623 | |||
32624 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32625 | conftest$ac_exeext conftest.$ac_ext | ||
32626 | LIBS=$ac_check_lib_save_LIBS | ||
32627 | fi | ||
32628 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
32629 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
32630 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
32631 | cat >>confdefs.h <<\_ACEOF | ||
32632 | #define GSSAPI 1 | ||
32633 | _ACEOF | ||
32634 | |||
32635 | GSSLIBS="-lgssapi" | ||
32636 | else | ||
32637 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgss" >&5 | ||
32638 | echo $ECHO_N "checking for gss_init_sec_context in -lgss... $ECHO_C" >&6; } | ||
32639 | if test "${ac_cv_lib_gss_gss_init_sec_context+set}" = set; then | ||
32640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32641 | else | ||
32642 | ac_check_lib_save_LIBS=$LIBS | ||
32643 | LIBS="-lgss $LIBS" | ||
32644 | cat >conftest.$ac_ext <<_ACEOF | ||
32645 | /* confdefs.h. */ | ||
32646 | _ACEOF | ||
32647 | cat confdefs.h >>conftest.$ac_ext | ||
32648 | cat >>conftest.$ac_ext <<_ACEOF | ||
32649 | /* end confdefs.h. */ | ||
32650 | |||
32651 | /* Override any GCC internal prototype to avoid an error. | ||
32652 | Use char because int might match the return type of a GCC | ||
32653 | builtin and then its argument prototype would still apply. */ | ||
32654 | #ifdef __cplusplus | ||
32655 | extern "C" | ||
32656 | #endif | ||
32657 | char gss_init_sec_context (); | ||
32658 | int | ||
32659 | main () | ||
32660 | { | ||
32661 | return gss_init_sec_context (); | ||
32662 | ; | ||
32663 | return 0; | ||
32664 | } | ||
32665 | _ACEOF | ||
32666 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32667 | if { (ac_try="$ac_link" | ||
32668 | case "(($ac_try" in | ||
32669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32670 | *) ac_try_echo=$ac_try;; | ||
32671 | esac | ||
32672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32673 | (eval "$ac_link") 2>conftest.er1 | ||
32674 | ac_status=$? | ||
32675 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32676 | rm -f conftest.er1 | ||
32677 | cat conftest.err >&5 | ||
32678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32679 | (exit $ac_status); } && { | ||
32680 | test -z "$ac_c_werror_flag" || | ||
32681 | test ! -s conftest.err | ||
32682 | } && test -s conftest$ac_exeext && | ||
32683 | $as_test_x conftest$ac_exeext; then | ||
32684 | ac_cv_lib_gss_gss_init_sec_context=yes | ||
32685 | else | ||
32686 | echo "$as_me: failed program was:" >&5 | ||
32687 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32688 | |||
32689 | ac_cv_lib_gss_gss_init_sec_context=no | ||
32690 | fi | ||
32691 | |||
32692 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32693 | conftest$ac_exeext conftest.$ac_ext | ||
32694 | LIBS=$ac_check_lib_save_LIBS | ||
32695 | fi | ||
32696 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 | ||
32697 | echo "${ECHO_T}$ac_cv_lib_gss_gss_init_sec_context" >&6; } | ||
32698 | if test $ac_cv_lib_gss_gss_init_sec_context = yes; then | ||
32699 | cat >>confdefs.h <<\_ACEOF | ||
32700 | #define GSSAPI 1 | ||
32701 | _ACEOF | ||
32702 | |||
32703 | GSSLIBS="-lgss" | ||
32704 | else | ||
32705 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
32706 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
32707 | fi | ||
32708 | |||
32709 | |||
32710 | fi | ||
32711 | |||
32712 | |||
32713 | fi | ||
32714 | |||
32715 | |||
32716 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
32717 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
32718 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
32719 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
32720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32721 | fi | ||
32722 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
32723 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
32724 | else | ||
32725 | # Is the header compilable? | ||
32726 | { echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
32727 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; } | ||
32728 | cat >conftest.$ac_ext <<_ACEOF | ||
32729 | /* confdefs.h. */ | ||
32730 | _ACEOF | ||
32731 | cat confdefs.h >>conftest.$ac_ext | ||
32732 | cat >>conftest.$ac_ext <<_ACEOF | ||
32733 | /* end confdefs.h. */ | ||
32734 | $ac_includes_default | ||
32735 | #include <gssapi.h> | ||
32736 | _ACEOF | ||
32737 | rm -f conftest.$ac_objext | ||
32738 | if { (ac_try="$ac_compile" | ||
32739 | case "(($ac_try" in | ||
32740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32741 | *) ac_try_echo=$ac_try;; | ||
32742 | esac | ||
32743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32744 | (eval "$ac_compile") 2>conftest.er1 | ||
32745 | ac_status=$? | ||
32746 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32747 | rm -f conftest.er1 | ||
32748 | cat conftest.err >&5 | ||
32749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32750 | (exit $ac_status); } && { | ||
32751 | test -z "$ac_c_werror_flag" || | ||
32752 | test ! -s conftest.err | ||
32753 | } && test -s conftest.$ac_objext; then | ||
32754 | ac_header_compiler=yes | ||
32755 | else | ||
32756 | echo "$as_me: failed program was:" >&5 | ||
32757 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32758 | |||
32759 | ac_header_compiler=no | ||
32760 | fi | ||
32761 | |||
32762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32763 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
32764 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
32765 | |||
32766 | # Is the header present? | ||
32767 | { echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
32768 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; } | ||
32769 | cat >conftest.$ac_ext <<_ACEOF | ||
32770 | /* confdefs.h. */ | ||
32771 | _ACEOF | ||
32772 | cat confdefs.h >>conftest.$ac_ext | ||
32773 | cat >>conftest.$ac_ext <<_ACEOF | ||
32774 | /* end confdefs.h. */ | ||
32775 | #include <gssapi.h> | ||
32776 | _ACEOF | ||
32777 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
32778 | case "(($ac_try" in | ||
32779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32780 | *) ac_try_echo=$ac_try;; | ||
32781 | esac | ||
32782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32783 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
32784 | ac_status=$? | ||
32785 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32786 | rm -f conftest.er1 | ||
32787 | cat conftest.err >&5 | ||
32788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32789 | (exit $ac_status); } >/dev/null && { | ||
32790 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
32791 | test ! -s conftest.err | ||
32792 | }; then | ||
32793 | ac_header_preproc=yes | ||
32794 | else | ||
32795 | echo "$as_me: failed program was:" >&5 | ||
32796 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32797 | |||
32798 | ac_header_preproc=no | ||
32799 | fi | ||
32800 | |||
32801 | rm -f conftest.err conftest.$ac_ext | ||
32802 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
32803 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
32804 | |||
32805 | # So? What about this header? | ||
32806 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
32807 | yes:no: ) | ||
32808 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
32809 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
32810 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
32811 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
32812 | ac_header_preproc=yes | ||
32813 | ;; | ||
32814 | no:yes:* ) | ||
32815 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
32816 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
32817 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
32818 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
32819 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
32820 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
32821 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
32822 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
32823 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
32824 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
32825 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
32826 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
32827 | ( cat <<\_ASBOX | ||
32828 | ## ------------------------------------------- ## | ||
32829 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
32830 | ## ------------------------------------------- ## | ||
32831 | _ASBOX | ||
32832 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
32833 | ;; | ||
32834 | esac | ||
32835 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
32836 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
32837 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
32838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32839 | else | ||
32840 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
32841 | fi | ||
32842 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
32843 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
32844 | |||
32845 | fi | ||
32846 | if test $ac_cv_header_gssapi_h = yes; then | ||
32847 | : | ||
32848 | else | ||
32849 | unset ac_cv_header_gssapi_h | ||
32850 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
32851 | |||
32852 | for ac_header in gssapi.h | ||
32853 | do | ||
32854 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
32855 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
32856 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
32857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
32858 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
32859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32860 | fi | ||
32861 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
32862 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
32863 | echo "${ECHO_T}$ac_res" >&6; } | ||
32864 | else | ||
32865 | # Is the header compilable? | ||
32866 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
32867 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
32868 | cat >conftest.$ac_ext <<_ACEOF | ||
32869 | /* confdefs.h. */ | ||
32870 | _ACEOF | ||
32871 | cat confdefs.h >>conftest.$ac_ext | ||
32872 | cat >>conftest.$ac_ext <<_ACEOF | ||
32873 | /* end confdefs.h. */ | ||
32874 | $ac_includes_default | ||
32875 | #include <$ac_header> | ||
32876 | _ACEOF | ||
32877 | rm -f conftest.$ac_objext | ||
32878 | if { (ac_try="$ac_compile" | ||
32879 | case "(($ac_try" in | ||
32880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32881 | *) ac_try_echo=$ac_try;; | ||
32882 | esac | ||
32883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32884 | (eval "$ac_compile") 2>conftest.er1 | ||
32885 | ac_status=$? | ||
32886 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32887 | rm -f conftest.er1 | ||
32888 | cat conftest.err >&5 | ||
32889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32890 | (exit $ac_status); } && { | ||
32891 | test -z "$ac_c_werror_flag" || | ||
32892 | test ! -s conftest.err | ||
32893 | } && test -s conftest.$ac_objext; then | ||
32894 | ac_header_compiler=yes | ||
32895 | else | ||
32896 | echo "$as_me: failed program was:" >&5 | ||
32897 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32898 | |||
32899 | ac_header_compiler=no | ||
32900 | fi | ||
32901 | |||
32902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32903 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
32904 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
32905 | |||
32906 | # Is the header present? | ||
32907 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
32908 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
32909 | cat >conftest.$ac_ext <<_ACEOF | ||
32910 | /* confdefs.h. */ | ||
32911 | _ACEOF | ||
32912 | cat confdefs.h >>conftest.$ac_ext | ||
32913 | cat >>conftest.$ac_ext <<_ACEOF | ||
32914 | /* end confdefs.h. */ | ||
32915 | #include <$ac_header> | ||
32916 | _ACEOF | ||
32917 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
32918 | case "(($ac_try" in | ||
32919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32920 | *) ac_try_echo=$ac_try;; | ||
32921 | esac | ||
32922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32923 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
32924 | ac_status=$? | ||
32925 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32926 | rm -f conftest.er1 | ||
32927 | cat conftest.err >&5 | ||
32928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32929 | (exit $ac_status); } >/dev/null && { | ||
32930 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
32931 | test ! -s conftest.err | ||
32932 | }; then | ||
32933 | ac_header_preproc=yes | ||
32934 | else | ||
32935 | echo "$as_me: failed program was:" >&5 | ||
32936 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32937 | |||
32938 | ac_header_preproc=no | ||
32939 | fi | ||
32940 | |||
32941 | rm -f conftest.err conftest.$ac_ext | ||
32942 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
32943 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
32944 | |||
32945 | # So? What about this header? | ||
32946 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
32947 | yes:no: ) | ||
32948 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
32949 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
32950 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
32951 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
32952 | ac_header_preproc=yes | ||
32953 | ;; | ||
32954 | no:yes:* ) | ||
32955 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
32956 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
32957 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
32958 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
32959 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
32960 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
32961 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
32962 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
32963 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
32964 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
32965 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
32966 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
32967 | ( cat <<\_ASBOX | ||
32968 | ## ------------------------------------------- ## | ||
32969 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
32970 | ## ------------------------------------------- ## | ||
32971 | _ASBOX | ||
32972 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
32973 | ;; | ||
32974 | esac | ||
32975 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
32976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
32977 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
32978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32979 | else | ||
32980 | eval "$as_ac_Header=\$ac_header_preproc" | ||
32981 | fi | ||
32982 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
32983 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
32984 | echo "${ECHO_T}$ac_res" >&6; } | ||
32985 | |||
32986 | fi | ||
32987 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
32988 | cat >>confdefs.h <<_ACEOF | ||
32989 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
32990 | _ACEOF | ||
32991 | |||
32992 | else | ||
32993 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
32994 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
32995 | |||
32996 | fi | ||
32997 | |||
32998 | done | ||
32999 | |||
33000 | |||
33001 | |||
33002 | fi | ||
33003 | |||
33004 | |||
33005 | |||
33006 | oldCPP="$CPPFLAGS" | ||
33007 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
33008 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
33009 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
33010 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
33011 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
33012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33013 | fi | ||
33014 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
33015 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
33016 | else | ||
33017 | # Is the header compilable? | ||
33018 | { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
33019 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; } | ||
33020 | cat >conftest.$ac_ext <<_ACEOF | ||
33021 | /* confdefs.h. */ | ||
33022 | _ACEOF | ||
33023 | cat confdefs.h >>conftest.$ac_ext | ||
33024 | cat >>conftest.$ac_ext <<_ACEOF | ||
33025 | /* end confdefs.h. */ | ||
33026 | $ac_includes_default | ||
33027 | #include <gssapi_krb5.h> | ||
33028 | _ACEOF | ||
33029 | rm -f conftest.$ac_objext | ||
33030 | if { (ac_try="$ac_compile" | ||
33031 | case "(($ac_try" in | ||
33032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33033 | *) ac_try_echo=$ac_try;; | ||
33034 | esac | ||
33035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33036 | (eval "$ac_compile") 2>conftest.er1 | ||
33037 | ac_status=$? | ||
33038 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33039 | rm -f conftest.er1 | ||
33040 | cat conftest.err >&5 | ||
33041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33042 | (exit $ac_status); } && { | ||
33043 | test -z "$ac_c_werror_flag" || | ||
33044 | test ! -s conftest.err | ||
33045 | } && test -s conftest.$ac_objext; then | ||
33046 | ac_header_compiler=yes | ||
33047 | else | ||
33048 | echo "$as_me: failed program was:" >&5 | ||
33049 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33050 | |||
33051 | ac_header_compiler=no | ||
33052 | fi | ||
33053 | |||
33054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33055 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
33056 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
33057 | |||
33058 | # Is the header present? | ||
33059 | { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
33060 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; } | ||
33061 | cat >conftest.$ac_ext <<_ACEOF | ||
33062 | /* confdefs.h. */ | ||
33063 | _ACEOF | ||
33064 | cat confdefs.h >>conftest.$ac_ext | ||
33065 | cat >>conftest.$ac_ext <<_ACEOF | ||
33066 | /* end confdefs.h. */ | ||
33067 | #include <gssapi_krb5.h> | ||
33068 | _ACEOF | ||
33069 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
33070 | case "(($ac_try" in | ||
33071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33072 | *) ac_try_echo=$ac_try;; | ||
33073 | esac | ||
33074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33075 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
33076 | ac_status=$? | ||
33077 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33078 | rm -f conftest.er1 | ||
33079 | cat conftest.err >&5 | ||
33080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33081 | (exit $ac_status); } >/dev/null && { | ||
33082 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
33083 | test ! -s conftest.err | ||
33084 | }; then | ||
33085 | ac_header_preproc=yes | ||
33086 | else | ||
33087 | echo "$as_me: failed program was:" >&5 | ||
33088 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33089 | |||
33090 | ac_header_preproc=no | ||
33091 | fi | ||
33092 | |||
33093 | rm -f conftest.err conftest.$ac_ext | ||
33094 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
33095 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
33096 | |||
33097 | # So? What about this header? | ||
33098 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
33099 | yes:no: ) | ||
33100 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
33101 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
33102 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
33103 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
33104 | ac_header_preproc=yes | ||
33105 | ;; | ||
33106 | no:yes:* ) | ||
33107 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
33108 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
33109 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
33110 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
33111 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
33112 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
33113 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
33114 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
33115 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
33116 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
33117 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
33118 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
33119 | ( cat <<\_ASBOX | ||
33120 | ## ------------------------------------------- ## | ||
33121 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
33122 | ## ------------------------------------------- ## | ||
33123 | _ASBOX | ||
33124 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
33125 | ;; | ||
33126 | esac | ||
33127 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
33128 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
33129 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
33130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33131 | else | ||
33132 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
33133 | fi | ||
33134 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
33135 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
33136 | |||
33137 | fi | ||
33138 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
33139 | : | ||
33140 | else | ||
33141 | CPPFLAGS="$oldCPP" | ||
33142 | fi | ||
33143 | |||
33144 | |||
33145 | |||
33146 | fi | ||
33147 | if test ! -z "$need_dash_r" ; then | ||
33148 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
33149 | fi | ||
33150 | if test ! -z "$blibpath" ; then | ||
33151 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
33152 | fi | ||
33153 | |||
33154 | |||
33155 | |||
33156 | for ac_header in gssapi.h gssapi/gssapi.h | ||
33157 | do | ||
33158 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
33159 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33160 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33162 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33164 | fi | ||
33165 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33166 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33167 | echo "${ECHO_T}$ac_res" >&6; } | ||
33168 | else | ||
33169 | # Is the header compilable? | ||
33170 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
33171 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
33172 | cat >conftest.$ac_ext <<_ACEOF | ||
33173 | /* confdefs.h. */ | ||
33174 | _ACEOF | ||
33175 | cat confdefs.h >>conftest.$ac_ext | ||
33176 | cat >>conftest.$ac_ext <<_ACEOF | ||
33177 | /* end confdefs.h. */ | ||
33178 | $ac_includes_default | ||
33179 | #include <$ac_header> | ||
33180 | _ACEOF | ||
33181 | rm -f conftest.$ac_objext | ||
33182 | if { (ac_try="$ac_compile" | ||
33183 | case "(($ac_try" in | ||
33184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33185 | *) ac_try_echo=$ac_try;; | ||
33186 | esac | ||
33187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33188 | (eval "$ac_compile") 2>conftest.er1 | ||
33189 | ac_status=$? | ||
33190 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33191 | rm -f conftest.er1 | ||
33192 | cat conftest.err >&5 | ||
33193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33194 | (exit $ac_status); } && { | ||
33195 | test -z "$ac_c_werror_flag" || | ||
33196 | test ! -s conftest.err | ||
33197 | } && test -s conftest.$ac_objext; then | ||
33198 | ac_header_compiler=yes | ||
33199 | else | ||
33200 | echo "$as_me: failed program was:" >&5 | ||
33201 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33202 | |||
33203 | ac_header_compiler=no | ||
33204 | fi | ||
33205 | |||
33206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33207 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
33208 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
33209 | |||
33210 | # Is the header present? | ||
33211 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
33212 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
33213 | cat >conftest.$ac_ext <<_ACEOF | ||
33214 | /* confdefs.h. */ | ||
33215 | _ACEOF | ||
33216 | cat confdefs.h >>conftest.$ac_ext | ||
33217 | cat >>conftest.$ac_ext <<_ACEOF | ||
33218 | /* end confdefs.h. */ | ||
33219 | #include <$ac_header> | ||
33220 | _ACEOF | ||
33221 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
33222 | case "(($ac_try" in | ||
33223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33224 | *) ac_try_echo=$ac_try;; | ||
33225 | esac | ||
33226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33227 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
33228 | ac_status=$? | ||
33229 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33230 | rm -f conftest.er1 | ||
33231 | cat conftest.err >&5 | ||
33232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33233 | (exit $ac_status); } >/dev/null && { | ||
33234 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
33235 | test ! -s conftest.err | ||
33236 | }; then | ||
33237 | ac_header_preproc=yes | ||
33238 | else | ||
33239 | echo "$as_me: failed program was:" >&5 | ||
33240 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33241 | |||
33242 | ac_header_preproc=no | ||
33243 | fi | ||
33244 | |||
33245 | rm -f conftest.err conftest.$ac_ext | ||
33246 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
33247 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
33248 | |||
33249 | # So? What about this header? | ||
33250 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
33251 | yes:no: ) | ||
33252 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
33253 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
33254 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
33255 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
33256 | ac_header_preproc=yes | ||
33257 | ;; | ||
33258 | no:yes:* ) | ||
33259 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
33260 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
33261 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
33262 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
33263 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
33264 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
33265 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
33266 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
33267 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
33268 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
33269 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
33270 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
33271 | ( cat <<\_ASBOX | ||
33272 | ## ------------------------------------------- ## | ||
33273 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
33274 | ## ------------------------------------------- ## | ||
33275 | _ASBOX | ||
33276 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
33277 | ;; | ||
33278 | esac | ||
33279 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33280 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33283 | else | ||
33284 | eval "$as_ac_Header=\$ac_header_preproc" | ||
33285 | fi | ||
33286 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33287 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33288 | echo "${ECHO_T}$ac_res" >&6; } | ||
33289 | |||
33290 | fi | ||
33291 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
33292 | cat >>confdefs.h <<_ACEOF | ||
33293 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
33294 | _ACEOF | ||
33295 | |||
33296 | fi | ||
33297 | |||
33298 | done | ||
33299 | |||
33300 | |||
33301 | |||
33302 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
33303 | do | ||
33304 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
33305 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33306 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33308 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33310 | fi | ||
33311 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33312 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33313 | echo "${ECHO_T}$ac_res" >&6; } | ||
33314 | else | ||
33315 | # Is the header compilable? | ||
33316 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
33317 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
33318 | cat >conftest.$ac_ext <<_ACEOF | ||
33319 | /* confdefs.h. */ | ||
33320 | _ACEOF | ||
33321 | cat confdefs.h >>conftest.$ac_ext | ||
33322 | cat >>conftest.$ac_ext <<_ACEOF | ||
33323 | /* end confdefs.h. */ | ||
33324 | $ac_includes_default | ||
33325 | #include <$ac_header> | ||
33326 | _ACEOF | ||
33327 | rm -f conftest.$ac_objext | ||
33328 | if { (ac_try="$ac_compile" | ||
33329 | case "(($ac_try" in | ||
33330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33331 | *) ac_try_echo=$ac_try;; | ||
33332 | esac | ||
33333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33334 | (eval "$ac_compile") 2>conftest.er1 | ||
33335 | ac_status=$? | ||
33336 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33337 | rm -f conftest.er1 | ||
33338 | cat conftest.err >&5 | ||
33339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33340 | (exit $ac_status); } && { | ||
33341 | test -z "$ac_c_werror_flag" || | ||
33342 | test ! -s conftest.err | ||
33343 | } && test -s conftest.$ac_objext; then | ||
33344 | ac_header_compiler=yes | ||
33345 | else | ||
33346 | echo "$as_me: failed program was:" >&5 | ||
33347 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33348 | |||
33349 | ac_header_compiler=no | ||
33350 | fi | ||
33351 | |||
33352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33353 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
33354 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
33355 | |||
33356 | # Is the header present? | ||
33357 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
33358 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
33359 | cat >conftest.$ac_ext <<_ACEOF | ||
33360 | /* confdefs.h. */ | ||
33361 | _ACEOF | ||
33362 | cat confdefs.h >>conftest.$ac_ext | ||
33363 | cat >>conftest.$ac_ext <<_ACEOF | ||
33364 | /* end confdefs.h. */ | ||
33365 | #include <$ac_header> | ||
33366 | _ACEOF | ||
33367 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
33368 | case "(($ac_try" in | ||
33369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33370 | *) ac_try_echo=$ac_try;; | ||
33371 | esac | ||
33372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33373 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
33374 | ac_status=$? | ||
33375 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33376 | rm -f conftest.er1 | ||
33377 | cat conftest.err >&5 | ||
33378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33379 | (exit $ac_status); } >/dev/null && { | ||
33380 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
33381 | test ! -s conftest.err | ||
33382 | }; then | ||
33383 | ac_header_preproc=yes | ||
33384 | else | ||
33385 | echo "$as_me: failed program was:" >&5 | ||
33386 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33387 | |||
33388 | ac_header_preproc=no | ||
33389 | fi | ||
33390 | |||
33391 | rm -f conftest.err conftest.$ac_ext | ||
33392 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
33393 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
33394 | |||
33395 | # So? What about this header? | ||
33396 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
33397 | yes:no: ) | ||
33398 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
33399 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
33400 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
33401 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
33402 | ac_header_preproc=yes | ||
33403 | ;; | ||
33404 | no:yes:* ) | ||
33405 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
33406 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
33407 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
33408 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
33409 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
33410 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
33411 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
33412 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
33413 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
33414 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
33415 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
33416 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
33417 | ( cat <<\_ASBOX | ||
33418 | ## ------------------------------------------- ## | ||
33419 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
33420 | ## ------------------------------------------- ## | ||
33421 | _ASBOX | ||
33422 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
33423 | ;; | ||
33424 | esac | ||
33425 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33426 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33427 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33429 | else | ||
33430 | eval "$as_ac_Header=\$ac_header_preproc" | ||
33431 | fi | ||
33432 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33433 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33434 | echo "${ECHO_T}$ac_res" >&6; } | ||
33435 | |||
33436 | fi | ||
33437 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
33438 | cat >>confdefs.h <<_ACEOF | ||
33439 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
33440 | _ACEOF | ||
33441 | |||
33442 | fi | ||
33443 | |||
33444 | done | ||
33445 | |||
33446 | |||
33447 | |||
33448 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
33449 | do | ||
33450 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
33451 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33452 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33453 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33454 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33456 | fi | ||
33457 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33458 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33459 | echo "${ECHO_T}$ac_res" >&6; } | ||
33460 | else | ||
33461 | # Is the header compilable? | ||
33462 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
33463 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
33464 | cat >conftest.$ac_ext <<_ACEOF | ||
33465 | /* confdefs.h. */ | ||
33466 | _ACEOF | ||
33467 | cat confdefs.h >>conftest.$ac_ext | ||
33468 | cat >>conftest.$ac_ext <<_ACEOF | ||
33469 | /* end confdefs.h. */ | ||
33470 | $ac_includes_default | ||
33471 | #include <$ac_header> | ||
33472 | _ACEOF | ||
33473 | rm -f conftest.$ac_objext | ||
33474 | if { (ac_try="$ac_compile" | ||
33475 | case "(($ac_try" in | ||
33476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33477 | *) ac_try_echo=$ac_try;; | ||
33478 | esac | ||
33479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33480 | (eval "$ac_compile") 2>conftest.er1 | ||
33481 | ac_status=$? | ||
33482 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33483 | rm -f conftest.er1 | ||
33484 | cat conftest.err >&5 | ||
33485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33486 | (exit $ac_status); } && { | ||
33487 | test -z "$ac_c_werror_flag" || | ||
33488 | test ! -s conftest.err | ||
33489 | } && test -s conftest.$ac_objext; then | ||
33490 | ac_header_compiler=yes | ||
33491 | else | ||
33492 | echo "$as_me: failed program was:" >&5 | ||
33493 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33494 | |||
33495 | ac_header_compiler=no | ||
33496 | fi | ||
33497 | |||
33498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33499 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
33500 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
33501 | |||
33502 | # Is the header present? | ||
33503 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
33504 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
33505 | cat >conftest.$ac_ext <<_ACEOF | ||
33506 | /* confdefs.h. */ | ||
33507 | _ACEOF | ||
33508 | cat confdefs.h >>conftest.$ac_ext | ||
33509 | cat >>conftest.$ac_ext <<_ACEOF | ||
33510 | /* end confdefs.h. */ | ||
33511 | #include <$ac_header> | ||
33512 | _ACEOF | ||
33513 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
33514 | case "(($ac_try" in | ||
33515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33516 | *) ac_try_echo=$ac_try;; | ||
33517 | esac | ||
33518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33519 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
33520 | ac_status=$? | ||
33521 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33522 | rm -f conftest.er1 | ||
33523 | cat conftest.err >&5 | ||
33524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33525 | (exit $ac_status); } >/dev/null && { | ||
33526 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
33527 | test ! -s conftest.err | ||
33528 | }; then | ||
33529 | ac_header_preproc=yes | ||
33530 | else | ||
33531 | echo "$as_me: failed program was:" >&5 | ||
33532 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33533 | |||
33534 | ac_header_preproc=no | ||
33535 | fi | ||
33536 | |||
33537 | rm -f conftest.err conftest.$ac_ext | ||
33538 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
33539 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
33540 | |||
33541 | # So? What about this header? | ||
33542 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
33543 | yes:no: ) | ||
33544 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
33545 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
33546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
33547 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
33548 | ac_header_preproc=yes | ||
33549 | ;; | ||
33550 | no:yes:* ) | ||
33551 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
33552 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
33553 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
33554 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
33555 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
33556 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
33557 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
33558 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
33559 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
33560 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
33561 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
33562 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
33563 | ( cat <<\_ASBOX | ||
33564 | ## ------------------------------------------- ## | ||
33565 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
33566 | ## ------------------------------------------- ## | ||
33567 | _ASBOX | ||
33568 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
33569 | ;; | ||
33570 | esac | ||
33571 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33572 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33573 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33575 | else | ||
33576 | eval "$as_ac_Header=\$ac_header_preproc" | ||
33577 | fi | ||
33578 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33579 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33580 | echo "${ECHO_T}$ac_res" >&6; } | ||
33581 | |||
33582 | fi | ||
33583 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
33584 | cat >>confdefs.h <<_ACEOF | ||
33585 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
33586 | _ACEOF | ||
33587 | |||
33588 | fi | ||
33589 | |||
33590 | done | ||
33591 | |||
33592 | |||
33593 | { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
33594 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; } | ||
33595 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
33596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33597 | else | ||
33598 | ac_func_search_save_LIBS=$LIBS | ||
33599 | cat >conftest.$ac_ext <<_ACEOF | ||
33600 | /* confdefs.h. */ | ||
33601 | _ACEOF | ||
33602 | cat confdefs.h >>conftest.$ac_ext | ||
33603 | cat >>conftest.$ac_ext <<_ACEOF | ||
33604 | /* end confdefs.h. */ | ||
33605 | |||
33606 | /* Override any GCC internal prototype to avoid an error. | ||
33607 | Use char because int might match the return type of a GCC | ||
33608 | builtin and then its argument prototype would still apply. */ | ||
33609 | #ifdef __cplusplus | ||
33610 | extern "C" | ||
33611 | #endif | ||
33612 | char k_hasafs (); | ||
33613 | int | ||
33614 | main () | ||
33615 | { | ||
33616 | return k_hasafs (); | ||
33617 | ; | ||
33618 | return 0; | ||
33619 | } | ||
33620 | _ACEOF | ||
33621 | for ac_lib in '' kafs; do | ||
33622 | if test -z "$ac_lib"; then | ||
33623 | ac_res="none required" | ||
33624 | else | ||
33625 | ac_res=-l$ac_lib | ||
33626 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
33627 | fi | ||
33628 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
33629 | if { (ac_try="$ac_link" | ||
33630 | case "(($ac_try" in | ||
33631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33632 | *) ac_try_echo=$ac_try;; | ||
33633 | esac | ||
33634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33635 | (eval "$ac_link") 2>conftest.er1 | ||
33636 | ac_status=$? | ||
33637 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33638 | rm -f conftest.er1 | ||
33639 | cat conftest.err >&5 | ||
33640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33641 | (exit $ac_status); } && { | ||
33642 | test -z "$ac_c_werror_flag" || | ||
33643 | test ! -s conftest.err | ||
33644 | } && test -s conftest$ac_exeext && | ||
33645 | $as_test_x conftest$ac_exeext; then | ||
33646 | ac_cv_search_k_hasafs=$ac_res | ||
33647 | else | ||
33648 | echo "$as_me: failed program was:" >&5 | ||
33649 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33650 | |||
33651 | |||
33652 | fi | ||
33653 | |||
33654 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
33655 | conftest$ac_exeext | ||
33656 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
33657 | break | ||
33658 | fi | ||
33659 | done | ||
33660 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
33661 | : | ||
33662 | else | ||
33663 | ac_cv_search_k_hasafs=no | ||
33664 | fi | ||
33665 | rm conftest.$ac_ext | ||
33666 | LIBS=$ac_func_search_save_LIBS | ||
33667 | fi | ||
33668 | { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
33669 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; } | ||
33670 | ac_res=$ac_cv_search_k_hasafs | ||
33671 | if test "$ac_res" != no; then | ||
33672 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
33673 | |||
33674 | cat >>confdefs.h <<\_ACEOF | ||
33675 | #define USE_AFS 1 | ||
33676 | _ACEOF | ||
33677 | |||
33678 | fi | ||
33679 | |||
33680 | |||
33681 | { echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5 | ||
33682 | echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6; } | ||
33683 | if test "${ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE+set}" = set; then | ||
33684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33685 | else | ||
33686 | cat >conftest.$ac_ext <<_ACEOF | ||
33687 | /* confdefs.h. */ | ||
33688 | _ACEOF | ||
33689 | cat confdefs.h >>conftest.$ac_ext | ||
33690 | cat >>conftest.$ac_ext <<_ACEOF | ||
33691 | /* end confdefs.h. */ | ||
33692 | |||
33693 | #ifdef HAVE_GSSAPI_H | ||
33694 | # include <gssapi.h> | ||
33695 | #elif defined(HAVE_GSSAPI_GSSAPI_H) | ||
33696 | # include <gssapi/gssapi.h> | ||
33697 | #endif | ||
33698 | |||
33699 | #ifdef HAVE_GSSAPI_GENERIC_H | ||
33700 | # include <gssapi_generic.h> | ||
33701 | #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) | ||
33702 | # include <gssapi/gssapi_generic.h> | ||
33703 | #endif | ||
33704 | |||
33705 | |||
33706 | int | ||
33707 | main () | ||
33708 | { | ||
33709 | #ifndef GSS_C_NT_HOSTBASED_SERVICE | ||
33710 | (void) GSS_C_NT_HOSTBASED_SERVICE; | ||
33711 | #endif | ||
33712 | |||
33713 | ; | ||
33714 | return 0; | ||
33715 | } | ||
33716 | _ACEOF | ||
33717 | rm -f conftest.$ac_objext | ||
33718 | if { (ac_try="$ac_compile" | ||
33719 | case "(($ac_try" in | ||
33720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33721 | *) ac_try_echo=$ac_try;; | ||
33722 | esac | ||
33723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33724 | (eval "$ac_compile") 2>conftest.er1 | ||
33725 | ac_status=$? | ||
33726 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33727 | rm -f conftest.er1 | ||
33728 | cat conftest.err >&5 | ||
33729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33730 | (exit $ac_status); } && { | ||
33731 | test -z "$ac_c_werror_flag" || | ||
33732 | test ! -s conftest.err | ||
33733 | } && test -s conftest.$ac_objext; then | ||
33734 | ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=yes | ||
33735 | else | ||
33736 | echo "$as_me: failed program was:" >&5 | ||
33737 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33738 | |||
33739 | ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no | ||
33740 | fi | ||
33741 | |||
33742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33743 | fi | ||
33744 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5 | ||
33745 | echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6; } | ||
33746 | if test $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE = yes; then | ||
33747 | |||
33748 | cat >>confdefs.h <<_ACEOF | ||
33749 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 1 | ||
33750 | _ACEOF | ||
33751 | |||
33752 | |||
33753 | else | ||
33754 | cat >>confdefs.h <<_ACEOF | ||
33755 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 0 | ||
33756 | _ACEOF | ||
33757 | |||
33758 | |||
33759 | fi | ||
33760 | |||
33761 | |||
33762 | saved_LIBS="$LIBS" | ||
33763 | LIBS="$LIBS $K5LIBS" | ||
33764 | |||
33765 | |||
33766 | |||
33767 | for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message | ||
33768 | do | ||
33769 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
33770 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
33771 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
33772 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33774 | else | ||
33775 | cat >conftest.$ac_ext <<_ACEOF | ||
33776 | /* confdefs.h. */ | ||
33777 | _ACEOF | ||
33778 | cat confdefs.h >>conftest.$ac_ext | ||
33779 | cat >>conftest.$ac_ext <<_ACEOF | ||
33780 | /* end confdefs.h. */ | ||
33781 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
33782 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
33783 | #define $ac_func innocuous_$ac_func | ||
33784 | |||
33785 | /* System header to define __stub macros and hopefully few prototypes, | ||
33786 | which can conflict with char $ac_func (); below. | ||
33787 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
33788 | <limits.h> exists even on freestanding compilers. */ | ||
33789 | |||
33790 | #ifdef __STDC__ | ||
33791 | # include <limits.h> | ||
33792 | #else | ||
33793 | # include <assert.h> | ||
33794 | #endif | ||
33795 | |||
33796 | #undef $ac_func | ||
33797 | |||
33798 | /* Override any GCC internal prototype to avoid an error. | ||
33799 | Use char because int might match the return type of a GCC | ||
33800 | builtin and then its argument prototype would still apply. */ | ||
33801 | #ifdef __cplusplus | ||
33802 | extern "C" | ||
33803 | #endif | ||
33804 | char $ac_func (); | ||
33805 | /* The GNU C library defines this for functions which it implements | ||
33806 | to always fail with ENOSYS. Some functions are actually named | ||
33807 | something starting with __ and the normal name is an alias. */ | ||
33808 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
33809 | choke me | ||
33810 | #endif | ||
33811 | |||
33812 | int | ||
33813 | main () | ||
33814 | { | ||
33815 | return $ac_func (); | ||
33816 | ; | ||
33817 | return 0; | ||
33818 | } | ||
33819 | _ACEOF | ||
33820 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
33821 | if { (ac_try="$ac_link" | ||
33822 | case "(($ac_try" in | ||
33823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33824 | *) ac_try_echo=$ac_try;; | ||
33825 | esac | ||
33826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33827 | (eval "$ac_link") 2>conftest.er1 | ||
33828 | ac_status=$? | ||
33829 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33830 | rm -f conftest.er1 | ||
33831 | cat conftest.err >&5 | ||
33832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33833 | (exit $ac_status); } && { | ||
33834 | test -z "$ac_c_werror_flag" || | ||
33835 | test ! -s conftest.err | ||
33836 | } && test -s conftest$ac_exeext && | ||
33837 | $as_test_x conftest$ac_exeext; then | ||
33838 | eval "$as_ac_var=yes" | ||
33839 | else | ||
33840 | echo "$as_me: failed program was:" >&5 | ||
33841 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33842 | |||
33843 | eval "$as_ac_var=no" | ||
33844 | fi | ||
33845 | |||
33846 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
33847 | conftest$ac_exeext conftest.$ac_ext | ||
33848 | fi | ||
33849 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
33850 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33851 | echo "${ECHO_T}$ac_res" >&6; } | ||
33852 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
33853 | cat >>confdefs.h <<_ACEOF | ||
33854 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
33855 | _ACEOF | ||
33856 | |||
33857 | fi | ||
33858 | done | ||
33859 | |||
33860 | LIBS="$saved_LIBS" | ||
33861 | |||
33862 | fi | ||
33863 | |||
33864 | |||
33865 | fi | ||
33866 | |||
33867 | |||
33868 | |||
33869 | |||
33870 | # Looking for programs, paths and files | ||
33871 | |||
33872 | PRIVSEP_PATH=/var/empty | ||
33873 | |||
33874 | # Check whether --with-privsep-path was given. | ||
33875 | if test "${with_privsep_path+set}" = set; then | ||
33876 | withval=$with_privsep_path; | ||
33877 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
33878 | test "x${withval}" != "xyes"; then | ||
33879 | PRIVSEP_PATH=$withval | ||
33880 | fi | ||
33881 | |||
33882 | |||
33883 | fi | ||
33884 | |||
33885 | |||
33886 | |||
33887 | |||
33888 | # Check whether --with-xauth was given. | ||
33889 | if test "${with_xauth+set}" = set; then | ||
33890 | withval=$with_xauth; | ||
33891 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
33892 | test "x${withval}" != "xyes"; then | ||
33893 | xauth_path=$withval | ||
33894 | fi | ||
33895 | |||
33896 | else | ||
33897 | |||
33898 | TestPath="$PATH" | ||
33899 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
33900 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
33901 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
33902 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
33903 | # Extract the first word of "xauth", so it can be a program name with args. | ||
33904 | set dummy xauth; ac_word=$2 | ||
33905 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
33906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
33907 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
33908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33909 | else | ||
33910 | case $xauth_path in | ||
33911 | [\\/]* | ?:[\\/]*) | ||
33912 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
33913 | ;; | ||
33914 | *) | ||
33915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
33916 | for as_dir in $TestPath | ||
33917 | do | ||
33918 | IFS=$as_save_IFS | ||
33919 | test -z "$as_dir" && as_dir=. | ||
33920 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
33921 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
33922 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
33923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
33924 | break 2 | ||
33925 | fi | ||
33926 | done | ||
33927 | done | ||
33928 | IFS=$as_save_IFS | ||
33929 | |||
33930 | ;; | ||
33931 | esac | ||
33932 | fi | ||
33933 | xauth_path=$ac_cv_path_xauth_path | ||
33934 | if test -n "$xauth_path"; then | ||
33935 | { echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
33936 | echo "${ECHO_T}$xauth_path" >&6; } | ||
33937 | else | ||
33938 | { echo "$as_me:$LINENO: result: no" >&5 | ||
33939 | echo "${ECHO_T}no" >&6; } | ||
33940 | fi | ||
33941 | |||
33942 | |||
33943 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
33944 | xauth_path="/usr/openwin/bin/xauth" | ||
33945 | fi | ||
33946 | |||
33947 | |||
33948 | fi | ||
33949 | |||
33950 | |||
33951 | STRIP_OPT=-s | ||
33952 | # Check whether --enable-strip was given. | ||
33953 | if test "${enable_strip+set}" = set; then | ||
33954 | enableval=$enable_strip; | ||
33955 | if test "x$enableval" = "xno" ; then | ||
33956 | STRIP_OPT= | ||
33957 | fi | ||
33958 | |||
33959 | |||
33960 | fi | ||
33961 | |||
33962 | |||
33963 | |||
33964 | if test -z "$xauth_path" ; then | ||
33965 | XAUTH_PATH="undefined" | ||
33966 | |||
33967 | else | ||
33968 | |||
33969 | cat >>confdefs.h <<_ACEOF | ||
33970 | #define XAUTH_PATH "$xauth_path" | ||
33971 | _ACEOF | ||
33972 | |||
33973 | XAUTH_PATH=$xauth_path | ||
33974 | |||
33975 | fi | ||
33976 | |||
33977 | # Check for mail directory | ||
33978 | |||
33979 | # Check whether --with-maildir was given. | ||
33980 | if test "${with_maildir+set}" = set; then | ||
33981 | withval=$with_maildir; | ||
33982 | if test "X$withval" != X && test "x$withval" != xno && \ | ||
33983 | test "x${withval}" != xyes; then | ||
33984 | |||
33985 | cat >>confdefs.h <<_ACEOF | ||
33986 | #define MAIL_DIRECTORY "$withval" | ||
33987 | _ACEOF | ||
33988 | |||
33989 | fi | ||
33990 | |||
33991 | else | ||
33992 | |||
33993 | if test "X$maildir" != "X"; then | ||
33994 | cat >>confdefs.h <<_ACEOF | ||
33995 | #define MAIL_DIRECTORY "$maildir" | ||
33996 | _ACEOF | ||
33997 | |||
33998 | else | ||
33999 | { echo "$as_me:$LINENO: checking Discovering system mail directory" >&5 | ||
34000 | echo $ECHO_N "checking Discovering system mail directory... $ECHO_C" >&6; } | ||
34001 | if test "$cross_compiling" = yes; then | ||
34002 | |||
34003 | { echo "$as_me:$LINENO: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 | ||
34004 | echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} | ||
34005 | |||
34006 | |||
34007 | else | ||
34008 | cat >conftest.$ac_ext <<_ACEOF | ||
34009 | /* confdefs.h. */ | ||
34010 | _ACEOF | ||
34011 | cat confdefs.h >>conftest.$ac_ext | ||
34012 | cat >>conftest.$ac_ext <<_ACEOF | ||
34013 | /* end confdefs.h. */ | ||
34014 | |||
34015 | #include <stdio.h> | ||
34016 | #include <string.h> | ||
34017 | #ifdef HAVE_PATHS_H | ||
34018 | #include <paths.h> | ||
34019 | #endif | ||
34020 | #ifdef HAVE_MAILLOCK_H | ||
34021 | #include <maillock.h> | ||
34022 | #endif | ||
34023 | #define DATA "conftest.maildir" | ||
34024 | |||
34025 | int | ||
34026 | main () | ||
34027 | { | ||
34028 | |||
34029 | FILE *fd; | ||
34030 | int rc; | ||
34031 | |||
34032 | fd = fopen(DATA,"w"); | ||
34033 | if(fd == NULL) | ||
34034 | exit(1); | ||
34035 | |||
34036 | #if defined (_PATH_MAILDIR) | ||
34037 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) | ||
34038 | exit(1); | ||
34039 | #elif defined (MAILDIR) | ||
34040 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) | ||
34041 | exit(1); | ||
34042 | #elif defined (_PATH_MAIL) | ||
34043 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) | ||
34044 | exit(1); | ||
34045 | #else | ||
34046 | exit (2); | ||
34047 | #endif | ||
34048 | |||
34049 | exit(0); | ||
34050 | |||
34051 | ; | ||
34052 | return 0; | ||
34053 | } | ||
34054 | _ACEOF | ||
34055 | rm -f conftest$ac_exeext | ||
34056 | if { (ac_try="$ac_link" | ||
34057 | case "(($ac_try" in | ||
34058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34059 | *) ac_try_echo=$ac_try;; | ||
34060 | esac | ||
34061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34062 | (eval "$ac_link") 2>&5 | ||
34063 | ac_status=$? | ||
34064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34065 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
34066 | { (case "(($ac_try" in | ||
34067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34068 | *) ac_try_echo=$ac_try;; | ||
34069 | esac | ||
34070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34071 | (eval "$ac_try") 2>&5 | ||
34072 | ac_status=$? | ||
34073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34074 | (exit $ac_status); }; }; then | ||
34075 | |||
34076 | maildir_what=`awk -F: '{print $1}' conftest.maildir` | ||
34077 | maildir=`awk -F: '{print $2}' conftest.maildir \ | ||
34078 | | sed 's|/$||'` | ||
34079 | { echo "$as_me:$LINENO: result: Using: $maildir from $maildir_what" >&5 | ||
34080 | echo "${ECHO_T}Using: $maildir from $maildir_what" >&6; } | ||
34081 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then | ||
34082 | cat >>confdefs.h <<_ACEOF | ||
34083 | #define MAIL_DIRECTORY "$maildir" | ||
34084 | _ACEOF | ||
34085 | |||
34086 | fi | ||
34087 | |||
34088 | else | ||
34089 | echo "$as_me: program exited with status $ac_status" >&5 | ||
34090 | echo "$as_me: failed program was:" >&5 | ||
34091 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34092 | |||
34093 | ( exit $ac_status ) | ||
34094 | |||
34095 | if test "X$ac_status" = "X2";then | ||
34096 | # our test program didn't find it. Default to /var/spool/mail | ||
34097 | { echo "$as_me:$LINENO: result: Using: default value of /var/spool/mail" >&5 | ||
34098 | echo "${ECHO_T}Using: default value of /var/spool/mail" >&6; } | ||
34099 | cat >>confdefs.h <<_ACEOF | ||
34100 | #define MAIL_DIRECTORY "/var/spool/mail" | ||
34101 | _ACEOF | ||
34102 | |||
34103 | else | ||
34104 | { echo "$as_me:$LINENO: result: *** not found ***" >&5 | ||
34105 | echo "${ECHO_T}*** not found ***" >&6; } | ||
34106 | fi | ||
34107 | |||
34108 | fi | ||
34109 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
34110 | fi | ||
34111 | |||
34112 | |||
34113 | fi | ||
34114 | |||
34115 | |||
34116 | fi | ||
34117 | # maildir | ||
34118 | |||
34119 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
34120 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
34121 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
34122 | disable_ptmx_check=yes | ||
34123 | fi | ||
34124 | if test -z "$no_dev_ptmx" ; then | ||
34125 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
34126 | { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
34127 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; } | ||
34128 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
34129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34130 | else | ||
34131 | test "$cross_compiling" = yes && | ||
34132 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
34133 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
34134 | { (exit 1); exit 1; }; } | ||
34135 | if test -r ""/dev/ptmx""; then | ||
34136 | ac_cv_file___dev_ptmx_=yes | ||
34137 | else | ||
34138 | ac_cv_file___dev_ptmx_=no | ||
34139 | fi | ||
34140 | fi | ||
34141 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
34142 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; } | ||
34143 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
34144 | |||
34145 | |||
34146 | cat >>confdefs.h <<_ACEOF | ||
34147 | #define HAVE_DEV_PTMX 1 | ||
34148 | _ACEOF | ||
34149 | |||
34150 | have_dev_ptmx=1 | ||
34151 | |||
34152 | |||
34153 | fi | ||
34154 | |||
34155 | fi | ||
34156 | fi | ||
34157 | |||
34158 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
34159 | { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
34160 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; } | ||
34161 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
34162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34163 | else | ||
34164 | test "$cross_compiling" = yes && | ||
34165 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
34166 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
34167 | { (exit 1); exit 1; }; } | ||
34168 | if test -r ""/dev/ptc""; then | ||
34169 | ac_cv_file___dev_ptc_=yes | ||
34170 | else | ||
34171 | ac_cv_file___dev_ptc_=no | ||
34172 | fi | ||
34173 | fi | ||
34174 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
34175 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; } | ||
34176 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
34177 | |||
34178 | |||
34179 | cat >>confdefs.h <<_ACEOF | ||
34180 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
34181 | _ACEOF | ||
34182 | |||
34183 | have_dev_ptc=1 | ||
34184 | |||
34185 | |||
34186 | fi | ||
34187 | |||
34188 | else | ||
34189 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
34190 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
34191 | fi | ||
34192 | |||
34193 | # Options from here on. Some of these are preset by platform above | ||
34194 | |||
34195 | # Check whether --with-mantype was given. | ||
34196 | if test "${with_mantype+set}" = set; then | ||
34197 | withval=$with_mantype; | ||
34198 | case "$withval" in | ||
34199 | man|cat|doc) | ||
34200 | MANTYPE=$withval | ||
34201 | ;; | ||
34202 | *) | ||
34203 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
34204 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
34205 | { (exit 1); exit 1; }; } | ||
34206 | ;; | ||
34207 | esac | ||
34208 | |||
34209 | |||
34210 | fi | ||
34211 | |||
34212 | if test -z "$MANTYPE"; then | ||
34213 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
34214 | for ac_prog in nroff awf | ||
34215 | do | ||
34216 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
34217 | set dummy $ac_prog; ac_word=$2 | ||
34218 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
34219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
34220 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
34221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34222 | else | ||
34223 | case $NROFF in | ||
34224 | [\\/]* | ?:[\\/]*) | ||
34225 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
34226 | ;; | ||
34227 | *) | ||
34228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
34229 | for as_dir in $TestPath | ||
34230 | do | ||
34231 | IFS=$as_save_IFS | ||
34232 | test -z "$as_dir" && as_dir=. | ||
34233 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
34234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
34235 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
34236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
34237 | break 2 | ||
34238 | fi | ||
34239 | done | ||
34240 | done | ||
34241 | IFS=$as_save_IFS | ||
34242 | |||
34243 | ;; | ||
34244 | esac | ||
34245 | fi | ||
34246 | NROFF=$ac_cv_path_NROFF | ||
34247 | if test -n "$NROFF"; then | ||
34248 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
34249 | echo "${ECHO_T}$NROFF" >&6; } | ||
34250 | else | ||
34251 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34252 | echo "${ECHO_T}no" >&6; } | ||
34253 | fi | ||
34254 | |||
34255 | |||
34256 | test -n "$NROFF" && break | ||
34257 | done | ||
34258 | test -n "$NROFF" || NROFF="/bin/false" | ||
34259 | |||
34260 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
34261 | MANTYPE=doc | ||
34262 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
34263 | MANTYPE=man | ||
34264 | else | ||
34265 | MANTYPE=cat | ||
34266 | fi | ||
34267 | fi | ||
34268 | |||
34269 | if test "$MANTYPE" = "doc"; then | ||
34270 | mansubdir=man; | ||
34271 | else | ||
34272 | mansubdir=$MANTYPE; | ||
34273 | fi | ||
34274 | |||
34275 | |||
34276 | # Check whether to enable MD5 passwords | ||
34277 | MD5_MSG="no" | ||
34278 | |||
34279 | # Check whether --with-md5-passwords was given. | ||
34280 | if test "${with_md5_passwords+set}" = set; then | ||
34281 | withval=$with_md5_passwords; | ||
34282 | if test "x$withval" != "xno" ; then | ||
34283 | |||
34284 | cat >>confdefs.h <<\_ACEOF | ||
34285 | #define HAVE_MD5_PASSWORDS 1 | ||
34286 | _ACEOF | ||
34287 | |||
34288 | MD5_MSG="yes" | ||
34289 | fi | ||
34290 | |||
34291 | |||
34292 | fi | ||
34293 | |||
34294 | |||
34295 | # Whether to disable shadow password support | ||
34296 | |||
34297 | # Check whether --with-shadow was given. | ||
34298 | if test "${with_shadow+set}" = set; then | ||
34299 | withval=$with_shadow; | ||
34300 | if test "x$withval" = "xno" ; then | ||
34301 | cat >>confdefs.h <<\_ACEOF | ||
34302 | #define DISABLE_SHADOW 1 | ||
34303 | _ACEOF | ||
34304 | |||
34305 | disable_shadow=yes | ||
34306 | fi | ||
34307 | |||
34308 | |||
34309 | fi | ||
34310 | |||
34311 | |||
34312 | if test -z "$disable_shadow" ; then | ||
34313 | { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
34314 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; } | ||
34315 | cat >conftest.$ac_ext <<_ACEOF | ||
34316 | /* confdefs.h. */ | ||
34317 | _ACEOF | ||
34318 | cat confdefs.h >>conftest.$ac_ext | ||
34319 | cat >>conftest.$ac_ext <<_ACEOF | ||
34320 | /* end confdefs.h. */ | ||
34321 | |||
34322 | #include <sys/types.h> | ||
34323 | #include <shadow.h> | ||
34324 | struct spwd sp; | ||
34325 | |||
34326 | int | ||
34327 | main () | ||
34328 | { | ||
34329 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
34330 | ; | ||
34331 | return 0; | ||
34332 | } | ||
34333 | _ACEOF | ||
34334 | rm -f conftest.$ac_objext | ||
34335 | if { (ac_try="$ac_compile" | ||
34336 | case "(($ac_try" in | ||
34337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34338 | *) ac_try_echo=$ac_try;; | ||
34339 | esac | ||
34340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34341 | (eval "$ac_compile") 2>conftest.er1 | ||
34342 | ac_status=$? | ||
34343 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34344 | rm -f conftest.er1 | ||
34345 | cat conftest.err >&5 | ||
34346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34347 | (exit $ac_status); } && { | ||
34348 | test -z "$ac_c_werror_flag" || | ||
34349 | test ! -s conftest.err | ||
34350 | } && test -s conftest.$ac_objext; then | ||
34351 | sp_expire_available=yes | ||
34352 | else | ||
34353 | echo "$as_me: failed program was:" >&5 | ||
34354 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34355 | |||
34356 | |||
34357 | |||
34358 | fi | ||
34359 | |||
34360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
34361 | |||
34362 | if test "x$sp_expire_available" = "xyes" ; then | ||
34363 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
34364 | echo "${ECHO_T}yes" >&6; } | ||
34365 | |||
34366 | cat >>confdefs.h <<\_ACEOF | ||
34367 | #define HAS_SHADOW_EXPIRE 1 | ||
34368 | _ACEOF | ||
34369 | |||
34370 | else | ||
34371 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34372 | echo "${ECHO_T}no" >&6; } | ||
34373 | fi | ||
34374 | fi | ||
34375 | |||
34376 | # Use ip address instead of hostname in $DISPLAY | ||
34377 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
34378 | DISPLAY_HACK_MSG="yes" | ||
34379 | |||
34380 | cat >>confdefs.h <<\_ACEOF | ||
34381 | #define IPADDR_IN_DISPLAY 1 | ||
34382 | _ACEOF | ||
34383 | |||
34384 | else | ||
34385 | DISPLAY_HACK_MSG="no" | ||
34386 | |||
34387 | # Check whether --with-ipaddr-display was given. | ||
34388 | if test "${with_ipaddr_display+set}" = set; then | ||
34389 | withval=$with_ipaddr_display; | ||
34390 | if test "x$withval" != "xno" ; then | ||
34391 | cat >>confdefs.h <<\_ACEOF | ||
34392 | #define IPADDR_IN_DISPLAY 1 | ||
34393 | _ACEOF | ||
34394 | |||
34395 | DISPLAY_HACK_MSG="yes" | ||
34396 | fi | ||
34397 | |||
34398 | |||
34399 | fi | ||
34400 | |||
34401 | fi | ||
34402 | |||
34403 | # check for /etc/default/login and use it if present. | ||
34404 | # Check whether --enable-etc-default-login was given. | ||
34405 | if test "${enable_etc_default_login+set}" = set; then | ||
34406 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
34407 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
34408 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
34409 | etc_default_login=no | ||
34410 | else | ||
34411 | etc_default_login=yes | ||
34412 | fi | ||
34413 | else | ||
34414 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
34415 | then | ||
34416 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
34417 | echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
34418 | etc_default_login=no | ||
34419 | else | ||
34420 | etc_default_login=yes | ||
34421 | fi | ||
34422 | |||
34423 | fi | ||
34424 | |||
34425 | |||
34426 | if test "x$etc_default_login" != "xno"; then | ||
34427 | { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
34428 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; } | ||
34429 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
34430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34431 | else | ||
34432 | test "$cross_compiling" = yes && | ||
34433 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
34434 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
34435 | { (exit 1); exit 1; }; } | ||
34436 | if test -r ""/etc/default/login""; then | ||
34437 | ac_cv_file___etc_default_login_=yes | ||
34438 | else | ||
34439 | ac_cv_file___etc_default_login_=no | ||
34440 | fi | ||
34441 | fi | ||
34442 | { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
34443 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; } | ||
34444 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
34445 | external_path_file=/etc/default/login | ||
34446 | fi | ||
34447 | |||
34448 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
34449 | |||
34450 | cat >>confdefs.h <<\_ACEOF | ||
34451 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
34452 | _ACEOF | ||
34453 | |||
34454 | fi | ||
34455 | fi | ||
34456 | |||
34457 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
34458 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
34459 | external_path_file=/etc/login.conf | ||
34460 | fi | ||
34461 | |||
34462 | # Whether to mess with the default path | ||
34463 | SERVER_PATH_MSG="(default)" | ||
34464 | |||
34465 | # Check whether --with-default-path was given. | ||
34466 | if test "${with_default_path+set}" = set; then | ||
34467 | withval=$with_default_path; | ||
34468 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
34469 | { echo "$as_me:$LINENO: WARNING: | ||
34470 | --with-default-path=PATH has no effect on this system. | ||
34471 | Edit /etc/login.conf instead." >&5 | ||
34472 | echo "$as_me: WARNING: | ||
34473 | --with-default-path=PATH has no effect on this system. | ||
34474 | Edit /etc/login.conf instead." >&2;} | ||
34475 | elif test "x$withval" != "xno" ; then | ||
34476 | if test ! -z "$external_path_file" ; then | ||
34477 | { echo "$as_me:$LINENO: WARNING: | ||
34478 | --with-default-path=PATH will only be used if PATH is not defined in | ||
34479 | $external_path_file ." >&5 | ||
34480 | echo "$as_me: WARNING: | ||
34481 | --with-default-path=PATH will only be used if PATH is not defined in | ||
34482 | $external_path_file ." >&2;} | ||
34483 | fi | ||
34484 | user_path="$withval" | ||
34485 | SERVER_PATH_MSG="$withval" | ||
34486 | fi | ||
34487 | |||
34488 | else | ||
34489 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
34490 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
34491 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
34492 | else | ||
34493 | if test ! -z "$external_path_file" ; then | ||
34494 | { echo "$as_me:$LINENO: WARNING: | ||
34495 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
34496 | otherwise scp will not work." >&5 | ||
34497 | echo "$as_me: WARNING: | ||
34498 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
34499 | otherwise scp will not work." >&2;} | ||
34500 | fi | ||
34501 | if test "$cross_compiling" = yes; then | ||
34502 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
34503 | |||
34504 | else | ||
34505 | cat >conftest.$ac_ext <<_ACEOF | ||
34506 | /* confdefs.h. */ | ||
34507 | _ACEOF | ||
34508 | cat confdefs.h >>conftest.$ac_ext | ||
34509 | cat >>conftest.$ac_ext <<_ACEOF | ||
34510 | /* end confdefs.h. */ | ||
34511 | |||
34512 | /* find out what STDPATH is */ | ||
34513 | #include <stdio.h> | ||
34514 | #ifdef HAVE_PATHS_H | ||
34515 | # include <paths.h> | ||
34516 | #endif | ||
34517 | #ifndef _PATH_STDPATH | ||
34518 | # ifdef _PATH_USERPATH /* Irix */ | ||
34519 | # define _PATH_STDPATH _PATH_USERPATH | ||
34520 | # else | ||
34521 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
34522 | # endif | ||
34523 | #endif | ||
34524 | #include <sys/types.h> | ||
34525 | #include <sys/stat.h> | ||
34526 | #include <fcntl.h> | ||
34527 | #define DATA "conftest.stdpath" | ||
34528 | |||
34529 | int | ||
34530 | main () | ||
34531 | { | ||
34532 | |||
34533 | FILE *fd; | ||
34534 | int rc; | ||
34535 | |||
34536 | fd = fopen(DATA,"w"); | ||
34537 | if(fd == NULL) | ||
34538 | exit(1); | ||
34539 | |||
34540 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
34541 | exit(1); | ||
34542 | |||
34543 | exit(0); | ||
34544 | |||
34545 | ; | ||
34546 | return 0; | ||
34547 | } | ||
34548 | _ACEOF | ||
34549 | rm -f conftest$ac_exeext | ||
34550 | if { (ac_try="$ac_link" | ||
34551 | case "(($ac_try" in | ||
34552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34553 | *) ac_try_echo=$ac_try;; | ||
34554 | esac | ||
34555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34556 | (eval "$ac_link") 2>&5 | ||
34557 | ac_status=$? | ||
34558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
34560 | { (case "(($ac_try" in | ||
34561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34562 | *) ac_try_echo=$ac_try;; | ||
34563 | esac | ||
34564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34565 | (eval "$ac_try") 2>&5 | ||
34566 | ac_status=$? | ||
34567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34568 | (exit $ac_status); }; }; then | ||
34569 | user_path=`cat conftest.stdpath` | ||
34570 | else | ||
34571 | echo "$as_me: program exited with status $ac_status" >&5 | ||
34572 | echo "$as_me: failed program was:" >&5 | ||
34573 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34574 | |||
34575 | ( exit $ac_status ) | ||
34576 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
34577 | fi | ||
34578 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
34579 | fi | ||
34580 | |||
34581 | |||
34582 | # make sure $bindir is in USER_PATH so scp will work | ||
34583 | t_bindir="${bindir}" | ||
34584 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do | ||
34585 | t_bindir=`eval echo ${t_bindir}` | ||
34586 | case $t_bindir in | ||
34587 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
34588 | esac | ||
34589 | case $t_bindir in | ||
34590 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
34591 | esac | ||
34592 | done | ||
34593 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
34594 | if test $? -ne 0 ; then | ||
34595 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
34596 | if test $? -ne 0 ; then | ||
34597 | user_path=$user_path:$t_bindir | ||
34598 | { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
34599 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
34600 | fi | ||
34601 | fi | ||
34602 | fi | ||
34603 | |||
34604 | fi | ||
34605 | |||
34606 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
34607 | |||
34608 | cat >>confdefs.h <<_ACEOF | ||
34609 | #define USER_PATH "$user_path" | ||
34610 | _ACEOF | ||
34611 | |||
34612 | |||
34613 | fi | ||
34614 | |||
34615 | # Set superuser path separately to user path | ||
34616 | |||
34617 | # Check whether --with-superuser-path was given. | ||
34618 | if test "${with_superuser_path+set}" = set; then | ||
34619 | withval=$with_superuser_path; | ||
34620 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
34621 | test "x${withval}" != "xyes"; then | ||
34622 | |||
34623 | cat >>confdefs.h <<_ACEOF | ||
34624 | #define SUPERUSER_PATH "$withval" | ||
34625 | _ACEOF | ||
34626 | |||
34627 | superuser_path=$withval | ||
34628 | fi | ||
34629 | |||
34630 | |||
34631 | fi | ||
34632 | |||
34633 | |||
34634 | |||
34635 | { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
34636 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; } | ||
34637 | IPV4_IN6_HACK_MSG="no" | ||
34638 | |||
34639 | # Check whether --with-4in6 was given. | ||
34640 | if test "${with_4in6+set}" = set; then | ||
34641 | withval=$with_4in6; | ||
34642 | if test "x$withval" != "xno" ; then | ||
34643 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
34644 | echo "${ECHO_T}yes" >&6; } | ||
34645 | |||
34646 | cat >>confdefs.h <<\_ACEOF | ||
34647 | #define IPV4_IN_IPV6 1 | ||
34648 | _ACEOF | ||
34649 | |||
34650 | IPV4_IN6_HACK_MSG="yes" | ||
34651 | else | ||
34652 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34653 | echo "${ECHO_T}no" >&6; } | ||
34654 | fi | ||
34655 | |||
34656 | else | ||
34657 | |||
34658 | if test "x$inet6_default_4in6" = "xyes"; then | ||
34659 | { echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
34660 | echo "${ECHO_T}yes (default)" >&6; } | ||
34661 | cat >>confdefs.h <<\_ACEOF | ||
34662 | #define IPV4_IN_IPV6 1 | ||
34663 | _ACEOF | ||
34664 | |||
34665 | IPV4_IN6_HACK_MSG="yes" | ||
34666 | else | ||
34667 | { echo "$as_me:$LINENO: result: no (default)" >&5 | ||
34668 | echo "${ECHO_T}no (default)" >&6; } | ||
34669 | fi | ||
34670 | |||
34671 | |||
34672 | fi | ||
34673 | |||
34674 | |||
34675 | # Whether to enable BSD auth support | ||
34676 | BSD_AUTH_MSG=no | ||
34677 | |||
34678 | # Check whether --with-bsd-auth was given. | ||
34679 | if test "${with_bsd_auth+set}" = set; then | ||
34680 | withval=$with_bsd_auth; | ||
34681 | if test "x$withval" != "xno" ; then | ||
34682 | |||
34683 | cat >>confdefs.h <<\_ACEOF | ||
34684 | #define BSD_AUTH 1 | ||
34685 | _ACEOF | ||
34686 | |||
34687 | BSD_AUTH_MSG=yes | ||
34688 | fi | ||
34689 | |||
34690 | |||
34691 | fi | ||
34692 | |||
34693 | |||
34694 | # Where to place sshd.pid | ||
34695 | piddir=/var/run | ||
34696 | # make sure the directory exists | ||
34697 | if test ! -d $piddir ; then | ||
34698 | piddir=`eval echo ${sysconfdir}` | ||
34699 | case $piddir in | ||
34700 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
34701 | esac | ||
34702 | fi | ||
34703 | |||
34704 | |||
34705 | # Check whether --with-pid-dir was given. | ||
34706 | if test "${with_pid_dir+set}" = set; then | ||
34707 | withval=$with_pid_dir; | ||
34708 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
34709 | test "x${withval}" != "xyes"; then | ||
34710 | piddir=$withval | ||
34711 | if test ! -d $piddir ; then | ||
34712 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
34713 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
34714 | fi | ||
34715 | fi | ||
34716 | |||
34717 | |||
34718 | fi | ||
34719 | |||
34720 | |||
34721 | |||
34722 | cat >>confdefs.h <<_ACEOF | ||
34723 | #define _PATH_SSH_PIDDIR "$piddir" | ||
34724 | _ACEOF | ||
34725 | |||
34726 | |||
34727 | |||
34728 | # Check whether --enable-lastlog was given. | ||
34729 | if test "${enable_lastlog+set}" = set; then | ||
34730 | enableval=$enable_lastlog; | ||
34731 | if test "x$enableval" = "xno" ; then | ||
34732 | cat >>confdefs.h <<\_ACEOF | ||
34733 | #define DISABLE_LASTLOG 1 | ||
34734 | _ACEOF | ||
34735 | |||
34736 | fi | ||
34737 | |||
34738 | |||
34739 | fi | ||
34740 | |||
34741 | # Check whether --enable-utmp was given. | ||
34742 | if test "${enable_utmp+set}" = set; then | ||
34743 | enableval=$enable_utmp; | ||
34744 | if test "x$enableval" = "xno" ; then | ||
34745 | cat >>confdefs.h <<\_ACEOF | ||
34746 | #define DISABLE_UTMP 1 | ||
34747 | _ACEOF | ||
34748 | |||
34749 | fi | ||
34750 | |||
34751 | |||
34752 | fi | ||
34753 | |||
34754 | # Check whether --enable-utmpx was given. | ||
34755 | if test "${enable_utmpx+set}" = set; then | ||
34756 | enableval=$enable_utmpx; | ||
34757 | if test "x$enableval" = "xno" ; then | ||
34758 | |||
34759 | cat >>confdefs.h <<\_ACEOF | ||
34760 | #define DISABLE_UTMPX 1 | ||
34761 | _ACEOF | ||
34762 | |||
34763 | fi | ||
34764 | |||
34765 | |||
34766 | fi | ||
34767 | |||
34768 | # Check whether --enable-wtmp was given. | ||
34769 | if test "${enable_wtmp+set}" = set; then | ||
34770 | enableval=$enable_wtmp; | ||
34771 | if test "x$enableval" = "xno" ; then | ||
34772 | cat >>confdefs.h <<\_ACEOF | ||
34773 | #define DISABLE_WTMP 1 | ||
34774 | _ACEOF | ||
34775 | |||
34776 | fi | ||
34777 | |||
34778 | |||
34779 | fi | ||
34780 | |||
34781 | # Check whether --enable-wtmpx was given. | ||
34782 | if test "${enable_wtmpx+set}" = set; then | ||
34783 | enableval=$enable_wtmpx; | ||
34784 | if test "x$enableval" = "xno" ; then | ||
34785 | |||
34786 | cat >>confdefs.h <<\_ACEOF | ||
34787 | #define DISABLE_WTMPX 1 | ||
34788 | _ACEOF | ||
34789 | |||
34790 | fi | ||
34791 | |||
34792 | |||
34793 | fi | ||
34794 | |||
34795 | # Check whether --enable-libutil was given. | ||
34796 | if test "${enable_libutil+set}" = set; then | ||
34797 | enableval=$enable_libutil; | ||
34798 | if test "x$enableval" = "xno" ; then | ||
34799 | cat >>confdefs.h <<\_ACEOF | ||
34800 | #define DISABLE_LOGIN 1 | ||
34801 | _ACEOF | ||
34802 | |||
34803 | fi | ||
34804 | |||
34805 | |||
34806 | fi | ||
34807 | |||
34808 | # Check whether --enable-pututline was given. | ||
34809 | if test "${enable_pututline+set}" = set; then | ||
34810 | enableval=$enable_pututline; | ||
34811 | if test "x$enableval" = "xno" ; then | ||
34812 | |||
34813 | cat >>confdefs.h <<\_ACEOF | ||
34814 | #define DISABLE_PUTUTLINE 1 | ||
34815 | _ACEOF | ||
34816 | |||
34817 | fi | ||
34818 | |||
34819 | |||
34820 | fi | ||
34821 | |||
34822 | # Check whether --enable-pututxline was given. | ||
34823 | if test "${enable_pututxline+set}" = set; then | ||
34824 | enableval=$enable_pututxline; | ||
34825 | if test "x$enableval" = "xno" ; then | ||
34826 | |||
34827 | cat >>confdefs.h <<\_ACEOF | ||
34828 | #define DISABLE_PUTUTXLINE 1 | ||
34829 | _ACEOF | ||
34830 | |||
34831 | fi | ||
34832 | |||
34833 | |||
34834 | fi | ||
34835 | |||
34836 | |||
34837 | # Check whether --with-lastlog was given. | ||
34838 | if test "${with_lastlog+set}" = set; then | ||
34839 | withval=$with_lastlog; | ||
34840 | if test "x$withval" = "xno" ; then | ||
34841 | cat >>confdefs.h <<\_ACEOF | ||
34842 | #define DISABLE_LASTLOG 1 | ||
34843 | _ACEOF | ||
34844 | |||
34845 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
34846 | conf_lastlog_location=$withval | ||
34847 | fi | ||
34848 | |||
34849 | |||
34850 | fi | ||
34851 | |||
34852 | |||
34853 | |||
34854 | { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
34855 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; } | ||
34856 | cat >conftest.$ac_ext <<_ACEOF | ||
34857 | /* confdefs.h. */ | ||
34858 | _ACEOF | ||
34859 | cat confdefs.h >>conftest.$ac_ext | ||
34860 | cat >>conftest.$ac_ext <<_ACEOF | ||
34861 | /* end confdefs.h. */ | ||
34862 | |||
34863 | #include <sys/types.h> | ||
34864 | #include <utmp.h> | ||
34865 | #ifdef HAVE_LASTLOG_H | ||
34866 | # include <lastlog.h> | ||
34867 | #endif | ||
34868 | #ifdef HAVE_PATHS_H | ||
34869 | # include <paths.h> | ||
34870 | #endif | ||
34871 | #ifdef HAVE_LOGIN_H | ||
34872 | # include <login.h> | ||
34873 | #endif | ||
34874 | |||
34875 | int | ||
34876 | main () | ||
34877 | { | ||
34878 | char *lastlog = LASTLOG_FILE; | ||
34879 | ; | ||
34880 | return 0; | ||
34881 | } | ||
34882 | _ACEOF | ||
34883 | rm -f conftest.$ac_objext | ||
34884 | if { (ac_try="$ac_compile" | ||
34885 | case "(($ac_try" in | ||
34886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34887 | *) ac_try_echo=$ac_try;; | ||
34888 | esac | ||
34889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34890 | (eval "$ac_compile") 2>conftest.er1 | ||
34891 | ac_status=$? | ||
34892 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34893 | rm -f conftest.er1 | ||
34894 | cat conftest.err >&5 | ||
34895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34896 | (exit $ac_status); } && { | ||
34897 | test -z "$ac_c_werror_flag" || | ||
34898 | test ! -s conftest.err | ||
34899 | } && test -s conftest.$ac_objext; then | ||
34900 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
34901 | echo "${ECHO_T}yes" >&6; } | ||
34902 | else | ||
34903 | echo "$as_me: failed program was:" >&5 | ||
34904 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34905 | |||
34906 | |||
34907 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34908 | echo "${ECHO_T}no" >&6; } | ||
34909 | { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
34910 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; } | ||
34911 | cat >conftest.$ac_ext <<_ACEOF | ||
34912 | /* confdefs.h. */ | ||
34913 | _ACEOF | ||
34914 | cat confdefs.h >>conftest.$ac_ext | ||
34915 | cat >>conftest.$ac_ext <<_ACEOF | ||
34916 | /* end confdefs.h. */ | ||
34917 | |||
34918 | #include <sys/types.h> | ||
34919 | #include <utmp.h> | ||
34920 | #ifdef HAVE_LASTLOG_H | ||
34921 | # include <lastlog.h> | ||
34922 | #endif | ||
34923 | #ifdef HAVE_PATHS_H | ||
34924 | # include <paths.h> | ||
34925 | #endif | ||
34926 | |||
34927 | int | ||
34928 | main () | ||
34929 | { | ||
34930 | char *lastlog = _PATH_LASTLOG; | ||
34931 | ; | ||
34932 | return 0; | ||
34933 | } | ||
34934 | _ACEOF | ||
34935 | rm -f conftest.$ac_objext | ||
34936 | if { (ac_try="$ac_compile" | ||
34937 | case "(($ac_try" in | ||
34938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34939 | *) ac_try_echo=$ac_try;; | ||
34940 | esac | ||
34941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34942 | (eval "$ac_compile") 2>conftest.er1 | ||
34943 | ac_status=$? | ||
34944 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34945 | rm -f conftest.er1 | ||
34946 | cat conftest.err >&5 | ||
34947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34948 | (exit $ac_status); } && { | ||
34949 | test -z "$ac_c_werror_flag" || | ||
34950 | test ! -s conftest.err | ||
34951 | } && test -s conftest.$ac_objext; then | ||
34952 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
34953 | echo "${ECHO_T}yes" >&6; } | ||
34954 | else | ||
34955 | echo "$as_me: failed program was:" >&5 | ||
34956 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34957 | |||
34958 | |||
34959 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34960 | echo "${ECHO_T}no" >&6; } | ||
34961 | system_lastlog_path=no | ||
34962 | |||
34963 | fi | ||
34964 | |||
34965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
34966 | |||
34967 | fi | ||
34968 | |||
34969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
34970 | |||
34971 | if test -z "$conf_lastlog_location"; then | ||
34972 | if test x"$system_lastlog_path" = x"no" ; then | ||
34973 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
34974 | if (test -d "$f" || test -f "$f") ; then | ||
34975 | conf_lastlog_location=$f | ||
34976 | fi | ||
34977 | done | ||
34978 | if test -z "$conf_lastlog_location"; then | ||
34979 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
34980 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
34981 | fi | ||
34982 | fi | ||
34983 | fi | ||
34984 | |||
34985 | if test -n "$conf_lastlog_location"; then | ||
34986 | |||
34987 | cat >>confdefs.h <<_ACEOF | ||
34988 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
34989 | _ACEOF | ||
34990 | |||
34991 | fi | ||
34992 | |||
34993 | { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
34994 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; } | ||
34995 | cat >conftest.$ac_ext <<_ACEOF | ||
34996 | /* confdefs.h. */ | ||
34997 | _ACEOF | ||
34998 | cat confdefs.h >>conftest.$ac_ext | ||
34999 | cat >>conftest.$ac_ext <<_ACEOF | ||
35000 | /* end confdefs.h. */ | ||
35001 | |||
35002 | #include <sys/types.h> | ||
35003 | #include <utmp.h> | ||
35004 | #ifdef HAVE_PATHS_H | ||
35005 | # include <paths.h> | ||
35006 | #endif | ||
35007 | |||
35008 | int | ||
35009 | main () | ||
35010 | { | ||
35011 | char *utmp = UTMP_FILE; | ||
35012 | ; | ||
35013 | return 0; | ||
35014 | } | ||
35015 | _ACEOF | ||
35016 | rm -f conftest.$ac_objext | ||
35017 | if { (ac_try="$ac_compile" | ||
35018 | case "(($ac_try" in | ||
35019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35020 | *) ac_try_echo=$ac_try;; | ||
35021 | esac | ||
35022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35023 | (eval "$ac_compile") 2>conftest.er1 | ||
35024 | ac_status=$? | ||
35025 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35026 | rm -f conftest.er1 | ||
35027 | cat conftest.err >&5 | ||
35028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35029 | (exit $ac_status); } && { | ||
35030 | test -z "$ac_c_werror_flag" || | ||
35031 | test ! -s conftest.err | ||
35032 | } && test -s conftest.$ac_objext; then | ||
35033 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
35034 | echo "${ECHO_T}yes" >&6; } | ||
35035 | else | ||
35036 | echo "$as_me: failed program was:" >&5 | ||
35037 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35038 | |||
35039 | { echo "$as_me:$LINENO: result: no" >&5 | ||
35040 | echo "${ECHO_T}no" >&6; } | ||
35041 | system_utmp_path=no | ||
35042 | |||
35043 | fi | ||
35044 | |||
35045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35046 | if test -z "$conf_utmp_location"; then | ||
35047 | if test x"$system_utmp_path" = x"no" ; then | ||
35048 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
35049 | if test -f $f ; then | ||
35050 | conf_utmp_location=$f | ||
35051 | fi | ||
35052 | done | ||
35053 | if test -z "$conf_utmp_location"; then | ||
35054 | cat >>confdefs.h <<\_ACEOF | ||
35055 | #define DISABLE_UTMP 1 | ||
35056 | _ACEOF | ||
35057 | |||
35058 | fi | ||
35059 | fi | ||
35060 | fi | ||
35061 | if test -n "$conf_utmp_location"; then | ||
35062 | |||
35063 | cat >>confdefs.h <<_ACEOF | ||
35064 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
35065 | _ACEOF | ||
35066 | |||
35067 | fi | ||
35068 | |||
35069 | { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
35070 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; } | ||
35071 | cat >conftest.$ac_ext <<_ACEOF | ||
35072 | /* confdefs.h. */ | ||
35073 | _ACEOF | ||
35074 | cat confdefs.h >>conftest.$ac_ext | ||
35075 | cat >>conftest.$ac_ext <<_ACEOF | ||
35076 | /* end confdefs.h. */ | ||
35077 | |||
35078 | #include <sys/types.h> | ||
35079 | #include <utmp.h> | ||
35080 | #ifdef HAVE_PATHS_H | ||
35081 | # include <paths.h> | ||
35082 | #endif | ||
35083 | |||
35084 | int | ||
35085 | main () | ||
35086 | { | ||
35087 | char *wtmp = WTMP_FILE; | ||
35088 | ; | ||
35089 | return 0; | ||
35090 | } | ||
35091 | _ACEOF | ||
35092 | rm -f conftest.$ac_objext | ||
35093 | if { (ac_try="$ac_compile" | ||
35094 | case "(($ac_try" in | ||
35095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35096 | *) ac_try_echo=$ac_try;; | ||
35097 | esac | ||
35098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35099 | (eval "$ac_compile") 2>conftest.er1 | ||
35100 | ac_status=$? | ||
35101 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35102 | rm -f conftest.er1 | ||
35103 | cat conftest.err >&5 | ||
35104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35105 | (exit $ac_status); } && { | ||
35106 | test -z "$ac_c_werror_flag" || | ||
35107 | test ! -s conftest.err | ||
35108 | } && test -s conftest.$ac_objext; then | ||
35109 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
35110 | echo "${ECHO_T}yes" >&6; } | ||
35111 | else | ||
35112 | echo "$as_me: failed program was:" >&5 | ||
35113 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35114 | |||
35115 | { echo "$as_me:$LINENO: result: no" >&5 | ||
35116 | echo "${ECHO_T}no" >&6; } | ||
35117 | system_wtmp_path=no | ||
35118 | |||
35119 | fi | ||
35120 | |||
35121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35122 | if test -z "$conf_wtmp_location"; then | ||
35123 | if test x"$system_wtmp_path" = x"no" ; then | ||
35124 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
35125 | if test -f $f ; then | ||
35126 | conf_wtmp_location=$f | ||
35127 | fi | ||
35128 | done | ||
35129 | if test -z "$conf_wtmp_location"; then | ||
35130 | cat >>confdefs.h <<\_ACEOF | ||
35131 | #define DISABLE_WTMP 1 | ||
35132 | _ACEOF | ||
35133 | |||
35134 | fi | ||
35135 | fi | ||
35136 | fi | ||
35137 | if test -n "$conf_wtmp_location"; then | ||
35138 | |||
35139 | cat >>confdefs.h <<_ACEOF | ||
35140 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
35141 | _ACEOF | ||
35142 | |||
35143 | fi | ||
35144 | |||
35145 | { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
35146 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; } | ||
35147 | cat >conftest.$ac_ext <<_ACEOF | ||
35148 | /* confdefs.h. */ | ||
35149 | _ACEOF | ||
35150 | cat confdefs.h >>conftest.$ac_ext | ||
35151 | cat >>conftest.$ac_ext <<_ACEOF | ||
35152 | /* end confdefs.h. */ | ||
35153 | |||
35154 | #include <sys/types.h> | ||
35155 | #include <utmp.h> | ||
35156 | #ifdef HAVE_UTMPX_H | ||
35157 | #include <utmpx.h> | ||
35158 | #endif | ||
35159 | #ifdef HAVE_PATHS_H | ||
35160 | # include <paths.h> | ||
35161 | #endif | ||
35162 | |||
35163 | int | ||
35164 | main () | ||
35165 | { | ||
35166 | char *wtmpx = WTMPX_FILE; | ||
35167 | ; | ||
35168 | return 0; | ||
35169 | } | ||
35170 | _ACEOF | ||
35171 | rm -f conftest.$ac_objext | ||
35172 | if { (ac_try="$ac_compile" | ||
35173 | case "(($ac_try" in | ||
35174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35175 | *) ac_try_echo=$ac_try;; | ||
35176 | esac | ||
35177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35178 | (eval "$ac_compile") 2>conftest.er1 | ||
35179 | ac_status=$? | ||
35180 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35181 | rm -f conftest.er1 | ||
35182 | cat conftest.err >&5 | ||
35183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35184 | (exit $ac_status); } && { | ||
35185 | test -z "$ac_c_werror_flag" || | ||
35186 | test ! -s conftest.err | ||
35187 | } && test -s conftest.$ac_objext; then | ||
35188 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
35189 | echo "${ECHO_T}yes" >&6; } | ||
35190 | else | ||
35191 | echo "$as_me: failed program was:" >&5 | ||
35192 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35193 | |||
35194 | { echo "$as_me:$LINENO: result: no" >&5 | ||
35195 | echo "${ECHO_T}no" >&6; } | ||
35196 | system_wtmpx_path=no | ||
35197 | |||
35198 | fi | ||
35199 | |||
35200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35201 | if test -z "$conf_wtmpx_location"; then | ||
35202 | if test x"$system_wtmpx_path" = x"no" ; then | ||
35203 | cat >>confdefs.h <<\_ACEOF | ||
35204 | #define DISABLE_WTMPX 1 | ||
35205 | _ACEOF | ||
35206 | |||
35207 | fi | ||
35208 | else | ||
35209 | |||
35210 | cat >>confdefs.h <<_ACEOF | ||
35211 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
35212 | _ACEOF | ||
35213 | |||
35214 | fi | ||
35215 | |||
35216 | |||
35217 | if test ! -z "$blibpath" ; then | ||
35218 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
35219 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
35220 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
35221 | fi | ||
35222 | |||
35223 | { echo "$as_me:$LINENO: checking for struct lastlog.ll_line" >&5 | ||
35224 | echo $ECHO_N "checking for struct lastlog.ll_line... $ECHO_C" >&6; } | ||
35225 | if test "${ac_cv_member_struct_lastlog_ll_line+set}" = set; then | ||
35226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
35227 | else | ||
35228 | cat >conftest.$ac_ext <<_ACEOF | ||
35229 | /* confdefs.h. */ | ||
35230 | _ACEOF | ||
35231 | cat confdefs.h >>conftest.$ac_ext | ||
35232 | cat >>conftest.$ac_ext <<_ACEOF | ||
35233 | /* end confdefs.h. */ | ||
35234 | |||
35235 | #ifdef HAVE_SYS_TYPES_H | ||
35236 | #include <sys/types.h> | ||
35237 | #endif | ||
35238 | #ifdef HAVE_UTMP_H | ||
35239 | #include <utmp.h> | ||
35240 | #endif | ||
35241 | #ifdef HAVE_UTMPX_H | ||
35242 | #include <utmpx.h> | ||
35243 | #endif | ||
35244 | #ifdef HAVE_LASTLOG_H | ||
35245 | #include <lastlog.h> | ||
35246 | #endif | ||
35247 | |||
35248 | |||
35249 | int | ||
35250 | main () | ||
35251 | { | ||
35252 | static struct lastlog ac_aggr; | ||
35253 | if (ac_aggr.ll_line) | ||
35254 | return 0; | ||
35255 | ; | ||
35256 | return 0; | ||
35257 | } | ||
35258 | _ACEOF | ||
35259 | rm -f conftest.$ac_objext | ||
35260 | if { (ac_try="$ac_compile" | ||
35261 | case "(($ac_try" in | ||
35262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35263 | *) ac_try_echo=$ac_try;; | ||
35264 | esac | ||
35265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35266 | (eval "$ac_compile") 2>conftest.er1 | ||
35267 | ac_status=$? | ||
35268 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35269 | rm -f conftest.er1 | ||
35270 | cat conftest.err >&5 | ||
35271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35272 | (exit $ac_status); } && { | ||
35273 | test -z "$ac_c_werror_flag" || | ||
35274 | test ! -s conftest.err | ||
35275 | } && test -s conftest.$ac_objext; then | ||
35276 | ac_cv_member_struct_lastlog_ll_line=yes | ||
35277 | else | ||
35278 | echo "$as_me: failed program was:" >&5 | ||
35279 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35280 | |||
35281 | cat >conftest.$ac_ext <<_ACEOF | ||
35282 | /* confdefs.h. */ | ||
35283 | _ACEOF | ||
35284 | cat confdefs.h >>conftest.$ac_ext | ||
35285 | cat >>conftest.$ac_ext <<_ACEOF | ||
35286 | /* end confdefs.h. */ | ||
35287 | |||
35288 | #ifdef HAVE_SYS_TYPES_H | ||
35289 | #include <sys/types.h> | ||
35290 | #endif | ||
35291 | #ifdef HAVE_UTMP_H | ||
35292 | #include <utmp.h> | ||
35293 | #endif | ||
35294 | #ifdef HAVE_UTMPX_H | ||
35295 | #include <utmpx.h> | ||
35296 | #endif | ||
35297 | #ifdef HAVE_LASTLOG_H | ||
35298 | #include <lastlog.h> | ||
35299 | #endif | ||
35300 | |||
35301 | |||
35302 | int | ||
35303 | main () | ||
35304 | { | ||
35305 | static struct lastlog ac_aggr; | ||
35306 | if (sizeof ac_aggr.ll_line) | ||
35307 | return 0; | ||
35308 | ; | ||
35309 | return 0; | ||
35310 | } | ||
35311 | _ACEOF | ||
35312 | rm -f conftest.$ac_objext | ||
35313 | if { (ac_try="$ac_compile" | ||
35314 | case "(($ac_try" in | ||
35315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35316 | *) ac_try_echo=$ac_try;; | ||
35317 | esac | ||
35318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35319 | (eval "$ac_compile") 2>conftest.er1 | ||
35320 | ac_status=$? | ||
35321 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35322 | rm -f conftest.er1 | ||
35323 | cat conftest.err >&5 | ||
35324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35325 | (exit $ac_status); } && { | ||
35326 | test -z "$ac_c_werror_flag" || | ||
35327 | test ! -s conftest.err | ||
35328 | } && test -s conftest.$ac_objext; then | ||
35329 | ac_cv_member_struct_lastlog_ll_line=yes | ||
35330 | else | ||
35331 | echo "$as_me: failed program was:" >&5 | ||
35332 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35333 | |||
35334 | ac_cv_member_struct_lastlog_ll_line=no | ||
35335 | fi | ||
35336 | |||
35337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35338 | fi | ||
35339 | |||
35340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35341 | fi | ||
35342 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_lastlog_ll_line" >&5 | ||
35343 | echo "${ECHO_T}$ac_cv_member_struct_lastlog_ll_line" >&6; } | ||
35344 | if test $ac_cv_member_struct_lastlog_ll_line = yes; then | ||
35345 | : | ||
35346 | else | ||
35347 | |||
35348 | if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then | ||
35349 | cat >>confdefs.h <<\_ACEOF | ||
35350 | #define DISABLE_LASTLOG 1 | ||
35351 | _ACEOF | ||
35352 | |||
35353 | fi | ||
35354 | |||
35355 | fi | ||
35356 | |||
35357 | |||
35358 | { echo "$as_me:$LINENO: checking for struct utmp.ut_line" >&5 | ||
35359 | echo $ECHO_N "checking for struct utmp.ut_line... $ECHO_C" >&6; } | ||
35360 | if test "${ac_cv_member_struct_utmp_ut_line+set}" = set; then | ||
35361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
35362 | else | ||
35363 | cat >conftest.$ac_ext <<_ACEOF | ||
35364 | /* confdefs.h. */ | ||
35365 | _ACEOF | ||
35366 | cat confdefs.h >>conftest.$ac_ext | ||
35367 | cat >>conftest.$ac_ext <<_ACEOF | ||
35368 | /* end confdefs.h. */ | ||
35369 | |||
35370 | #ifdef HAVE_SYS_TYPES_H | ||
35371 | #include <sys/types.h> | ||
35372 | #endif | ||
35373 | #ifdef HAVE_UTMP_H | ||
35374 | #include <utmp.h> | ||
35375 | #endif | ||
35376 | #ifdef HAVE_UTMPX_H | ||
35377 | #include <utmpx.h> | ||
35378 | #endif | ||
35379 | #ifdef HAVE_LASTLOG_H | ||
35380 | #include <lastlog.h> | ||
35381 | #endif | ||
35382 | |||
35383 | |||
35384 | int | ||
35385 | main () | ||
35386 | { | ||
35387 | static struct utmp ac_aggr; | ||
35388 | if (ac_aggr.ut_line) | ||
35389 | return 0; | ||
35390 | ; | ||
35391 | return 0; | ||
35392 | } | ||
35393 | _ACEOF | ||
35394 | rm -f conftest.$ac_objext | ||
35395 | if { (ac_try="$ac_compile" | ||
35396 | case "(($ac_try" in | ||
35397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35398 | *) ac_try_echo=$ac_try;; | ||
35399 | esac | ||
35400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35401 | (eval "$ac_compile") 2>conftest.er1 | ||
35402 | ac_status=$? | ||
35403 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35404 | rm -f conftest.er1 | ||
35405 | cat conftest.err >&5 | ||
35406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35407 | (exit $ac_status); } && { | ||
35408 | test -z "$ac_c_werror_flag" || | ||
35409 | test ! -s conftest.err | ||
35410 | } && test -s conftest.$ac_objext; then | ||
35411 | ac_cv_member_struct_utmp_ut_line=yes | ||
35412 | else | ||
35413 | echo "$as_me: failed program was:" >&5 | ||
35414 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35415 | |||
35416 | cat >conftest.$ac_ext <<_ACEOF | ||
35417 | /* confdefs.h. */ | ||
35418 | _ACEOF | ||
35419 | cat confdefs.h >>conftest.$ac_ext | ||
35420 | cat >>conftest.$ac_ext <<_ACEOF | ||
35421 | /* end confdefs.h. */ | ||
35422 | |||
35423 | #ifdef HAVE_SYS_TYPES_H | ||
35424 | #include <sys/types.h> | ||
35425 | #endif | ||
35426 | #ifdef HAVE_UTMP_H | ||
35427 | #include <utmp.h> | ||
35428 | #endif | ||
35429 | #ifdef HAVE_UTMPX_H | ||
35430 | #include <utmpx.h> | ||
35431 | #endif | ||
35432 | #ifdef HAVE_LASTLOG_H | ||
35433 | #include <lastlog.h> | ||
35434 | #endif | ||
35435 | |||
35436 | |||
35437 | int | ||
35438 | main () | ||
35439 | { | ||
35440 | static struct utmp ac_aggr; | ||
35441 | if (sizeof ac_aggr.ut_line) | ||
35442 | return 0; | ||
35443 | ; | ||
35444 | return 0; | ||
35445 | } | ||
35446 | _ACEOF | ||
35447 | rm -f conftest.$ac_objext | ||
35448 | if { (ac_try="$ac_compile" | ||
35449 | case "(($ac_try" in | ||
35450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35451 | *) ac_try_echo=$ac_try;; | ||
35452 | esac | ||
35453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35454 | (eval "$ac_compile") 2>conftest.er1 | ||
35455 | ac_status=$? | ||
35456 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35457 | rm -f conftest.er1 | ||
35458 | cat conftest.err >&5 | ||
35459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35460 | (exit $ac_status); } && { | ||
35461 | test -z "$ac_c_werror_flag" || | ||
35462 | test ! -s conftest.err | ||
35463 | } && test -s conftest.$ac_objext; then | ||
35464 | ac_cv_member_struct_utmp_ut_line=yes | ||
35465 | else | ||
35466 | echo "$as_me: failed program was:" >&5 | ||
35467 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35468 | |||
35469 | ac_cv_member_struct_utmp_ut_line=no | ||
35470 | fi | ||
35471 | |||
35472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35473 | fi | ||
35474 | |||
35475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35476 | fi | ||
35477 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_line" >&5 | ||
35478 | echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_line" >&6; } | ||
35479 | if test $ac_cv_member_struct_utmp_ut_line = yes; then | ||
35480 | : | ||
35481 | else | ||
35482 | |||
35483 | cat >>confdefs.h <<\_ACEOF | ||
35484 | #define DISABLE_UTMP 1 | ||
35485 | _ACEOF | ||
35486 | |||
35487 | cat >>confdefs.h <<\_ACEOF | ||
35488 | #define DISABLE_WTMP 1 | ||
35489 | _ACEOF | ||
35490 | |||
35491 | |||
35492 | fi | ||
35493 | |||
35494 | |||
35495 | CFLAGS="$CFLAGS $werror_flags" | ||
35496 | |||
35497 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
35498 | TEST_SSH_IPV6=no | ||
35499 | else | ||
35500 | TEST_SSH_IPV6=yes | ||
35501 | fi | ||
35502 | { echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5 | ||
35503 | echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; } | ||
35504 | if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then | ||
35505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
35506 | else | ||
35507 | cat >conftest.$ac_ext <<_ACEOF | ||
35508 | /* confdefs.h. */ | ||
35509 | _ACEOF | ||
35510 | cat confdefs.h >>conftest.$ac_ext | ||
35511 | cat >>conftest.$ac_ext <<_ACEOF | ||
35512 | /* end confdefs.h. */ | ||
35513 | $ac_includes_default | ||
35514 | int | ||
35515 | main () | ||
35516 | { | ||
35517 | #ifndef BROKEN_GETADDRINFO | ||
35518 | (void) BROKEN_GETADDRINFO; | ||
35519 | #endif | ||
35520 | |||
35521 | ; | ||
35522 | return 0; | ||
35523 | } | ||
35524 | _ACEOF | ||
35525 | rm -f conftest.$ac_objext | ||
35526 | if { (ac_try="$ac_compile" | ||
35527 | case "(($ac_try" in | ||
35528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35529 | *) ac_try_echo=$ac_try;; | ||
35530 | esac | ||
35531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35532 | (eval "$ac_compile") 2>conftest.er1 | ||
35533 | ac_status=$? | ||
35534 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35535 | rm -f conftest.er1 | ||
35536 | cat conftest.err >&5 | ||
35537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35538 | (exit $ac_status); } && { | ||
35539 | test -z "$ac_c_werror_flag" || | ||
35540 | test ! -s conftest.err | ||
35541 | } && test -s conftest.$ac_objext; then | ||
35542 | ac_cv_have_decl_BROKEN_GETADDRINFO=yes | ||
35543 | else | ||
35544 | echo "$as_me: failed program was:" >&5 | ||
35545 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35546 | |||
35547 | ac_cv_have_decl_BROKEN_GETADDRINFO=no | ||
35548 | fi | ||
35549 | |||
35550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35551 | fi | ||
35552 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5 | ||
35553 | echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; } | ||
35554 | if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then | ||
35555 | TEST_SSH_IPV6=no | ||
35556 | fi | ||
35557 | |||
35558 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
35559 | |||
35560 | TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS | ||
35561 | |||
35562 | UNSUPPORTED_ALGORITHMS=$unsupported_algorithms | ||
35563 | |||
35564 | |||
35565 | |||
35566 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" | ||
35567 | |||
35568 | cat >confcache <<\_ACEOF | ||
35569 | # This file is a shell script that caches the results of configure | ||
35570 | # tests run on this system so they can be shared between configure | ||
35571 | # scripts and configure runs, see configure's option --config-cache. | ||
35572 | # It is not useful on other systems. If it contains results you don't | ||
35573 | # want to keep, you may remove or edit it. | ||
35574 | # | ||
35575 | # config.status only pays attention to the cache file if you give it | ||
35576 | # the --recheck option to rerun configure. | ||
35577 | # | ||
35578 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
35579 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
35580 | # following values. | ||
35581 | |||
35582 | _ACEOF | ||
35583 | |||
35584 | # The following way of writing the cache mishandles newlines in values, | ||
35585 | # but we know of no workaround that is simple, portable, and efficient. | ||
35586 | # So, we kill variables containing newlines. | ||
35587 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
35588 | # and sets the high bit in the cache file unless we assign to the vars. | ||
35589 | ( | ||
35590 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
35591 | eval ac_val=\$$ac_var | ||
35592 | case $ac_val in #( | ||
35593 | *${as_nl}*) | ||
35594 | case $ac_var in #( | ||
35595 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
35596 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
35597 | esac | ||
35598 | case $ac_var in #( | ||
35599 | _ | IFS | as_nl) ;; #( | ||
35600 | *) $as_unset $ac_var ;; | ||
35601 | esac ;; | ||
35602 | esac | ||
35603 | done | ||
35604 | |||
35605 | (set) 2>&1 | | ||
35606 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
35607 | *${as_nl}ac_space=\ *) | ||
35608 | # `set' does not quote correctly, so add quotes (double-quote | ||
35609 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
35610 | sed -n \ | ||
35611 | "s/'/'\\\\''/g; | ||
35612 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
35613 | ;; #( | ||
35614 | *) | ||
35615 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
35616 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
35617 | ;; | ||
35618 | esac | | ||
35619 | sort | ||
35620 | ) | | ||
35621 | sed ' | ||
35622 | /^ac_cv_env_/b end | ||
35623 | t clear | ||
35624 | :clear | ||
35625 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
35626 | t end | ||
35627 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
35628 | :end' >>confcache | ||
35629 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
35630 | if test -w "$cache_file"; then | ||
35631 | test "x$cache_file" != "x/dev/null" && | ||
35632 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
35633 | echo "$as_me: updating cache $cache_file" >&6;} | ||
35634 | cat confcache >$cache_file | ||
35635 | else | ||
35636 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
35637 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
35638 | fi | ||
35639 | fi | ||
35640 | rm -f confcache | ||
35641 | |||
35642 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
35643 | # Let make expand exec_prefix. | ||
35644 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
35645 | |||
35646 | DEFS=-DHAVE_CONFIG_H | ||
35647 | |||
35648 | ac_libobjs= | ||
35649 | ac_ltlibobjs= | ||
35650 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
35651 | # 1. Remove the extension, and $U if already installed. | ||
35652 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
35653 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
35654 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
35655 | # will be set to the directory where LIBOBJS objects are built. | ||
35656 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
35657 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
35658 | done | ||
35659 | LIBOBJS=$ac_libobjs | ||
35660 | |||
35661 | LTLIBOBJS=$ac_ltlibobjs | ||
35662 | |||
35663 | |||
35664 | |||
35665 | : ${CONFIG_STATUS=./config.status} | ||
35666 | ac_clean_files_save=$ac_clean_files | ||
35667 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
35668 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
35669 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
35670 | cat >$CONFIG_STATUS <<_ACEOF | ||
35671 | #! $SHELL | ||
35672 | # Generated by $as_me. | ||
35673 | # Run this file to recreate the current configuration. | ||
35674 | # Compiler output produced by configure, useful for debugging | ||
35675 | # configure, is in config.log if it exists. | ||
35676 | |||
35677 | debug=false | ||
35678 | ac_cs_recheck=false | ||
35679 | ac_cs_silent=false | ||
35680 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
35681 | _ACEOF | ||
35682 | |||
35683 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
35684 | ## --------------------- ## | ||
35685 | ## M4sh Initialization. ## | ||
35686 | ## --------------------- ## | ||
35687 | |||
35688 | # Be more Bourne compatible | ||
35689 | DUALCASE=1; export DUALCASE # for MKS sh | ||
35690 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
35691 | emulate sh | ||
35692 | NULLCMD=: | ||
35693 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
35694 | # is contrary to our usage. Disable this feature. | ||
35695 | alias -g '${1+"$@"}'='"$@"' | ||
35696 | setopt NO_GLOB_SUBST | ||
35697 | else | ||
35698 | case `(set -o) 2>/dev/null` in | ||
35699 | *posix*) set -o posix ;; | ||
35700 | esac | ||
35701 | |||
35702 | fi | ||
35703 | |||
35704 | |||
35705 | |||
35706 | |||
35707 | # PATH needs CR | ||
35708 | # Avoid depending upon Character Ranges. | ||
35709 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
35710 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
35711 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
35712 | as_cr_digits='0123456789' | ||
35713 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
35714 | |||
35715 | # The user is always right. | ||
35716 | if test "${PATH_SEPARATOR+set}" != set; then | ||
35717 | echo "#! /bin/sh" >conf$$.sh | ||
35718 | echo "exit 0" >>conf$$.sh | ||
35719 | chmod +x conf$$.sh | ||
35720 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
35721 | PATH_SEPARATOR=';' | ||
35722 | else | ||
35723 | PATH_SEPARATOR=: | ||
35724 | fi | ||
35725 | rm -f conf$$.sh | ||
35726 | fi | ||
35727 | |||
35728 | # Support unset when possible. | ||
35729 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
35730 | as_unset=unset | ||
35731 | else | ||
35732 | as_unset=false | ||
35733 | fi | ||
35734 | |||
35735 | |||
35736 | # IFS | ||
35737 | # We need space, tab and new line, in precisely that order. Quoting is | ||
35738 | # there to prevent editors from complaining about space-tab. | ||
35739 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
35740 | # splitting by setting IFS to empty value.) | ||
35741 | as_nl=' | ||
35742 | ' | ||
35743 | IFS=" "" $as_nl" | ||
35744 | |||
35745 | # Find who we are. Look in the path if we contain no directory separator. | ||
35746 | case $0 in | ||
35747 | *[\\/]* ) as_myself=$0 ;; | ||
35748 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
35749 | for as_dir in $PATH | ||
35750 | do | ||
35751 | IFS=$as_save_IFS | ||
35752 | test -z "$as_dir" && as_dir=. | ||
35753 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
35754 | done | ||
35755 | IFS=$as_save_IFS | ||
35756 | |||
35757 | ;; | ||
35758 | esac | ||
35759 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
35760 | # in which case we are not to be found in the path. | ||
35761 | if test "x$as_myself" = x; then | ||
35762 | as_myself=$0 | ||
35763 | fi | ||
35764 | if test ! -f "$as_myself"; then | ||
35765 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
35766 | { (exit 1); exit 1; } | ||
35767 | fi | ||
35768 | |||
35769 | # Work around bugs in pre-3.0 UWIN ksh. | ||
35770 | for as_var in ENV MAIL MAILPATH | ||
35771 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
35772 | done | ||
35773 | PS1='$ ' | ||
35774 | PS2='> ' | ||
35775 | PS4='+ ' | ||
35776 | |||
35777 | # NLS nuisances. | ||
35778 | for as_var in \ | ||
35779 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
35780 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
35781 | LC_TELEPHONE LC_TIME | ||
35782 | do | ||
35783 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
35784 | eval $as_var=C; export $as_var | ||
35785 | else | ||
35786 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
35787 | fi | ||
35788 | done | ||
35789 | |||
35790 | # Required to use basename. | ||
35791 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
35792 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
35793 | as_expr=expr | ||
35794 | else | ||
35795 | as_expr=false | ||
35796 | fi | ||
35797 | |||
35798 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
35799 | as_basename=basename | ||
35800 | else | ||
35801 | as_basename=false | ||
35802 | fi | ||
35803 | |||
35804 | |||
35805 | # Name of the executable. | ||
35806 | as_me=`$as_basename -- "$0" || | ||
35807 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
35808 | X"$0" : 'X\(//\)$' \| \ | ||
35809 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
35810 | echo X/"$0" | | ||
35811 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
35812 | s//\1/ | ||
35813 | q | ||
35814 | } | ||
35815 | /^X\/\(\/\/\)$/{ | ||
35816 | s//\1/ | ||
35817 | q | ||
35818 | } | ||
35819 | /^X\/\(\/\).*/{ | ||
35820 | s//\1/ | ||
35821 | q | ||
35822 | } | ||
35823 | s/.*/./; q'` | ||
35824 | |||
35825 | # CDPATH. | ||
35826 | $as_unset CDPATH | ||
35827 | |||
35828 | |||
35829 | |||
35830 | as_lineno_1=$LINENO | ||
35831 | as_lineno_2=$LINENO | ||
35832 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
35833 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
35834 | |||
35835 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
35836 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
35837 | # line-number line after each line using $LINENO; the second 'sed' | ||
35838 | # does the real work. The second script uses 'N' to pair each | ||
35839 | # line-number line with the line containing $LINENO, and appends | ||
35840 | # trailing '-' during substitution so that $LINENO is not a special | ||
35841 | # case at line end. | ||
35842 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
35843 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
35844 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
35845 | sed -n ' | ||
35846 | p | ||
35847 | /[$]LINENO/= | ||
35848 | ' <$as_myself | | ||
35849 | sed ' | ||
35850 | s/[$]LINENO.*/&-/ | ||
35851 | t lineno | ||
35852 | b | ||
35853 | :lineno | ||
35854 | N | ||
35855 | :loop | ||
35856 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
35857 | t loop | ||
35858 | s/-\n.*// | ||
35859 | ' >$as_me.lineno && | ||
35860 | chmod +x "$as_me.lineno" || | ||
35861 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
35862 | { (exit 1); exit 1; }; } | ||
35863 | |||
35864 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
35865 | # (the dirname of $[0] is not the place where we might find the | ||
35866 | # original and so on. Autoconf is especially sensitive to this). | ||
35867 | . "./$as_me.lineno" | ||
35868 | # Exit status is that of the last command. | ||
35869 | exit | ||
35870 | } | ||
35871 | |||
35872 | |||
35873 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
35874 | as_dirname=dirname | ||
35875 | else | ||
35876 | as_dirname=false | ||
35877 | fi | ||
35878 | |||
35879 | ECHO_C= ECHO_N= ECHO_T= | ||
35880 | case `echo -n x` in | ||
35881 | -n*) | ||
35882 | case `echo 'x\c'` in | ||
35883 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
35884 | *) ECHO_C='\c';; | ||
35885 | esac;; | ||
35886 | *) | ||
35887 | ECHO_N='-n';; | ||
35888 | esac | ||
35889 | |||
35890 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
35891 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
35892 | as_expr=expr | ||
35893 | else | ||
35894 | as_expr=false | ||
35895 | fi | ||
35896 | |||
35897 | rm -f conf$$ conf$$.exe conf$$.file | ||
35898 | if test -d conf$$.dir; then | ||
35899 | rm -f conf$$.dir/conf$$.file | ||
35900 | else | ||
35901 | rm -f conf$$.dir | ||
35902 | mkdir conf$$.dir | ||
35903 | fi | ||
35904 | echo >conf$$.file | ||
35905 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
35906 | as_ln_s='ln -s' | ||
35907 | # ... but there are two gotchas: | ||
35908 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
35909 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
35910 | # In both cases, we have to default to `cp -p'. | ||
35911 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
35912 | as_ln_s='cp -p' | ||
35913 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
35914 | as_ln_s=ln | ||
35915 | else | ||
35916 | as_ln_s='cp -p' | ||
35917 | fi | ||
35918 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
35919 | rmdir conf$$.dir 2>/dev/null | ||
35920 | |||
35921 | if mkdir -p . 2>/dev/null; then | ||
35922 | as_mkdir_p=: | ||
35923 | else | ||
35924 | test -d ./-p && rmdir ./-p | ||
35925 | as_mkdir_p=false | ||
35926 | fi | ||
35927 | |||
35928 | if test -x / >/dev/null 2>&1; then | ||
35929 | as_test_x='test -x' | ||
35930 | else | ||
35931 | if ls -dL / >/dev/null 2>&1; then | ||
35932 | as_ls_L_option=L | ||
35933 | else | ||
35934 | as_ls_L_option= | ||
35935 | fi | ||
35936 | as_test_x=' | ||
35937 | eval sh -c '\'' | ||
35938 | if test -d "$1"; then | ||
35939 | test -d "$1/."; | ||
35940 | else | ||
35941 | case $1 in | ||
35942 | -*)set "./$1";; | ||
35943 | esac; | ||
35944 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
35945 | ???[sx]*):;;*)false;;esac;fi | ||
35946 | '\'' sh | ||
35947 | ' | ||
35948 | fi | ||
35949 | as_executable_p=$as_test_x | ||
35950 | |||
35951 | # Sed expression to map a string onto a valid CPP name. | ||
35952 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
35953 | |||
35954 | # Sed expression to map a string onto a valid variable name. | ||
35955 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
35956 | |||
35957 | |||
35958 | exec 6>&1 | ||
35959 | |||
35960 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
35961 | # report actual input values of CONFIG_FILES etc. instead of their | ||
35962 | # values after options handling. | ||
35963 | ac_log=" | ||
35964 | This file was extended by OpenSSH $as_me Portable, which was | ||
35965 | generated by GNU Autoconf 2.61. Invocation command line was | ||
35966 | |||
35967 | CONFIG_FILES = $CONFIG_FILES | ||
35968 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
35969 | CONFIG_LINKS = $CONFIG_LINKS | ||
35970 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
35971 | $ $0 $@ | ||
35972 | |||
35973 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
35974 | " | ||
35975 | |||
35976 | _ACEOF | ||
35977 | |||
35978 | cat >>$CONFIG_STATUS <<_ACEOF | ||
35979 | # Files that config.status was made for. | ||
35980 | config_files="$ac_config_files" | ||
35981 | config_headers="$ac_config_headers" | ||
35982 | |||
35983 | _ACEOF | ||
35984 | |||
35985 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
35986 | ac_cs_usage="\ | ||
35987 | \`$as_me' instantiates files from templates according to the | ||
35988 | current configuration. | ||
35989 | |||
35990 | Usage: $0 [OPTIONS] [FILE]... | ||
35991 | |||
35992 | -h, --help print this help, then exit | ||
35993 | -V, --version print version number and configuration settings, then exit | ||
35994 | -q, --quiet do not print progress messages | ||
35995 | -d, --debug don't remove temporary files | ||
35996 | --recheck update $as_me by reconfiguring in the same conditions | ||
35997 | --file=FILE[:TEMPLATE] | ||
35998 | instantiate the configuration file FILE | ||
35999 | --header=FILE[:TEMPLATE] | ||
36000 | instantiate the configuration header FILE | ||
36001 | |||
36002 | Configuration files: | ||
36003 | $config_files | ||
36004 | |||
36005 | Configuration headers: | ||
36006 | $config_headers | ||
36007 | |||
36008 | Report bugs to <bug-autoconf@gnu.org>." | ||
36009 | |||
36010 | _ACEOF | ||
36011 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36012 | ac_cs_version="\\ | ||
36013 | OpenSSH config.status Portable | ||
36014 | configured by $0, generated by GNU Autoconf 2.61, | ||
36015 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
36016 | |||
36017 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
36018 | This config.status script is free software; the Free Software Foundation | ||
36019 | gives unlimited permission to copy, distribute and modify it." | ||
36020 | |||
36021 | ac_pwd='$ac_pwd' | ||
36022 | srcdir='$srcdir' | ||
36023 | INSTALL='$INSTALL' | ||
36024 | _ACEOF | ||
36025 | |||
36026 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36027 | # If no file are specified by the user, then we need to provide default | ||
36028 | # value. By we need to know if files were specified by the user. | ||
36029 | ac_need_defaults=: | ||
36030 | while test $# != 0 | ||
36031 | do | ||
36032 | case $1 in | ||
36033 | --*=*) | ||
36034 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
36035 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
36036 | ac_shift=: | ||
36037 | ;; | ||
36038 | *) | ||
36039 | ac_option=$1 | ||
36040 | ac_optarg=$2 | ||
36041 | ac_shift=shift | ||
36042 | ;; | ||
36043 | esac | ||
36044 | |||
36045 | case $ac_option in | ||
36046 | # Handling of the options. | ||
36047 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
36048 | ac_cs_recheck=: ;; | ||
36049 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
36050 | echo "$ac_cs_version"; exit ;; | ||
36051 | --debug | --debu | --deb | --de | --d | -d ) | ||
36052 | debug=: ;; | ||
36053 | --file | --fil | --fi | --f ) | ||
36054 | $ac_shift | ||
36055 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
36056 | ac_need_defaults=false;; | ||
36057 | --header | --heade | --head | --hea ) | ||
36058 | $ac_shift | ||
36059 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
36060 | ac_need_defaults=false;; | ||
36061 | --he | --h) | ||
36062 | # Conflict between --help and --header | ||
36063 | { echo "$as_me: error: ambiguous option: $1 | ||
36064 | Try \`$0 --help' for more information." >&2 | ||
36065 | { (exit 1); exit 1; }; };; | ||
36066 | --help | --hel | -h ) | ||
36067 | echo "$ac_cs_usage"; exit ;; | ||
36068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
36069 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
36070 | ac_cs_silent=: ;; | ||
36071 | |||
36072 | # This is an error. | ||
36073 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
36074 | Try \`$0 --help' for more information." >&2 | ||
36075 | { (exit 1); exit 1; }; } ;; | ||
36076 | |||
36077 | *) ac_config_targets="$ac_config_targets $1" | ||
36078 | ac_need_defaults=false ;; | ||
36079 | |||
36080 | esac | ||
36081 | shift | ||
36082 | done | ||
36083 | |||
36084 | ac_configure_extra_args= | ||
36085 | |||
36086 | if $ac_cs_silent; then | ||
36087 | exec 6>/dev/null | ||
36088 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
36089 | fi | ||
36090 | |||
36091 | _ACEOF | ||
36092 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36093 | if \$ac_cs_recheck; then | ||
36094 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
36095 | CONFIG_SHELL=$SHELL | ||
36096 | export CONFIG_SHELL | ||
36097 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
36098 | fi | ||
36099 | |||
36100 | _ACEOF | ||
36101 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36102 | exec 5>>config.log | ||
36103 | { | ||
36104 | echo | ||
36105 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
36106 | ## Running $as_me. ## | ||
36107 | _ASBOX | ||
36108 | echo "$ac_log" | ||
36109 | } >&5 | ||
36110 | |||
36111 | _ACEOF | ||
36112 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36113 | _ACEOF | ||
36114 | |||
36115 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36116 | |||
36117 | # Handling of arguments. | ||
36118 | for ac_config_target in $ac_config_targets | ||
36119 | do | ||
36120 | case $ac_config_target in | ||
36121 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
36122 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
36123 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
36124 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
36125 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
36126 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
36127 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
36128 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
36129 | |||
36130 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
36131 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
36132 | { (exit 1); exit 1; }; };; | ||
36133 | esac | ||
36134 | done | ||
36135 | |||
36136 | |||
36137 | # If the user did not use the arguments to specify the items to instantiate, | ||
36138 | # then the envvar interface is used. Set only those that are not. | ||
36139 | # We use the long form for the default assignment because of an extremely | ||
36140 | # bizarre bug on SunOS 4.1.3. | ||
36141 | if $ac_need_defaults; then | ||
36142 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
36143 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
36144 | fi | ||
36145 | |||
36146 | # Have a temporary directory for convenience. Make it in the build tree | ||
36147 | # simply because there is no reason against having it here, and in addition, | ||
36148 | # creating and moving files from /tmp can sometimes cause problems. | ||
36149 | # Hook for its removal unless debugging. | ||
36150 | # Note that there is a small window in which the directory will not be cleaned: | ||
36151 | # after its creation but before its name has been assigned to `$tmp'. | ||
36152 | $debug || | ||
36153 | { | ||
36154 | tmp= | ||
36155 | trap 'exit_status=$? | ||
36156 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
36157 | ' 0 | ||
36158 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
36159 | } | ||
36160 | # Create a (secure) tmp directory for tmp files. | ||
36161 | |||
36162 | { | ||
36163 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
36164 | test -n "$tmp" && test -d "$tmp" | ||
36165 | } || | ||
36166 | { | ||
36167 | tmp=./conf$$-$RANDOM | ||
36168 | (umask 077 && mkdir "$tmp") | ||
36169 | } || | ||
36170 | { | ||
36171 | echo "$me: cannot create a temporary directory in ." >&2 | ||
36172 | { (exit 1); exit 1; } | ||
36173 | } | ||
36174 | |||
36175 | # | ||
36176 | # Set up the sed scripts for CONFIG_FILES section. | ||
36177 | # | ||
36178 | |||
36179 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
36180 | # This happens for instance when ./config.status config.h | ||
36181 | if test -n "$CONFIG_FILES"; then | ||
36182 | |||
36183 | _ACEOF | ||
36184 | |||
36185 | |||
36186 | |||
36187 | ac_delim='%!_!# ' | ||
36188 | for ac_last_try in false false false false false :; do | ||
36189 | cat >conf$$subs.sed <<_ACEOF | ||
36190 | SHELL!$SHELL$ac_delim | ||
36191 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
36192 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
36193 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
36194 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
36195 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
36196 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
36197 | exec_prefix!$exec_prefix$ac_delim | ||
36198 | prefix!$prefix$ac_delim | ||
36199 | program_transform_name!$program_transform_name$ac_delim | ||
36200 | bindir!$bindir$ac_delim | ||
36201 | sbindir!$sbindir$ac_delim | ||
36202 | libexecdir!$libexecdir$ac_delim | ||
36203 | datarootdir!$datarootdir$ac_delim | ||
36204 | datadir!$datadir$ac_delim | ||
36205 | sysconfdir!$sysconfdir$ac_delim | ||
36206 | sharedstatedir!$sharedstatedir$ac_delim | ||
36207 | localstatedir!$localstatedir$ac_delim | ||
36208 | includedir!$includedir$ac_delim | ||
36209 | oldincludedir!$oldincludedir$ac_delim | ||
36210 | docdir!$docdir$ac_delim | ||
36211 | infodir!$infodir$ac_delim | ||
36212 | htmldir!$htmldir$ac_delim | ||
36213 | dvidir!$dvidir$ac_delim | ||
36214 | pdfdir!$pdfdir$ac_delim | ||
36215 | psdir!$psdir$ac_delim | ||
36216 | libdir!$libdir$ac_delim | ||
36217 | localedir!$localedir$ac_delim | ||
36218 | mandir!$mandir$ac_delim | ||
36219 | DEFS!$DEFS$ac_delim | ||
36220 | ECHO_C!$ECHO_C$ac_delim | ||
36221 | ECHO_N!$ECHO_N$ac_delim | ||
36222 | ECHO_T!$ECHO_T$ac_delim | ||
36223 | LIBS!$LIBS$ac_delim | ||
36224 | build_alias!$build_alias$ac_delim | ||
36225 | host_alias!$host_alias$ac_delim | ||
36226 | target_alias!$target_alias$ac_delim | ||
36227 | CC!$CC$ac_delim | ||
36228 | CFLAGS!$CFLAGS$ac_delim | ||
36229 | LDFLAGS!$LDFLAGS$ac_delim | ||
36230 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
36231 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
36232 | EXEEXT!$EXEEXT$ac_delim | ||
36233 | OBJEXT!$OBJEXT$ac_delim | ||
36234 | build!$build$ac_delim | ||
36235 | build_cpu!$build_cpu$ac_delim | ||
36236 | build_vendor!$build_vendor$ac_delim | ||
36237 | build_os!$build_os$ac_delim | ||
36238 | host!$host$ac_delim | ||
36239 | host_cpu!$host_cpu$ac_delim | ||
36240 | host_vendor!$host_vendor$ac_delim | ||
36241 | host_os!$host_os$ac_delim | ||
36242 | CPP!$CPP$ac_delim | ||
36243 | GREP!$GREP$ac_delim | ||
36244 | EGREP!$EGREP$ac_delim | ||
36245 | AWK!$AWK$ac_delim | ||
36246 | RANLIB!$RANLIB$ac_delim | ||
36247 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
36248 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
36249 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
36250 | AR!$AR$ac_delim | ||
36251 | ac_ct_AR!$ac_ct_AR$ac_delim | ||
36252 | CAT!$CAT$ac_delim | ||
36253 | KILL!$KILL$ac_delim | ||
36254 | PERL!$PERL$ac_delim | ||
36255 | SED!$SED$ac_delim | ||
36256 | ENT!$ENT$ac_delim | ||
36257 | TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim | ||
36258 | SH!$SH$ac_delim | ||
36259 | GROFF!$GROFF$ac_delim | ||
36260 | NROFF!$NROFF$ac_delim | ||
36261 | MANDOC!$MANDOC$ac_delim | ||
36262 | TEST_SHELL!$TEST_SHELL$ac_delim | ||
36263 | MANFMT!$MANFMT$ac_delim | ||
36264 | PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim | ||
36265 | PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim | ||
36266 | MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim | ||
36267 | STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim | ||
36268 | LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim | ||
36269 | PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim | ||
36270 | LD!$LD$ac_delim | ||
36271 | PKGCONFIG!$PKGCONFIG$ac_delim | ||
36272 | LIBEDIT!$LIBEDIT$ac_delim | ||
36273 | TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim | ||
36274 | COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim | ||
36275 | SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim | ||
36276 | SSHLIBS!$SSHLIBS$ac_delim | ||
36277 | SSHDLIBS!$SSHDLIBS$ac_delim | ||
36278 | KRB5CONF!$KRB5CONF$ac_delim | ||
36279 | GSSLIBS!$GSSLIBS$ac_delim | ||
36280 | K5LIBS!$K5LIBS$ac_delim | ||
36281 | PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim | ||
36282 | xauth_path!$xauth_path$ac_delim | ||
36283 | STRIP_OPT!$STRIP_OPT$ac_delim | ||
36284 | XAUTH_PATH!$XAUTH_PATH$ac_delim | ||
36285 | MANTYPE!$MANTYPE$ac_delim | ||
36286 | mansubdir!$mansubdir$ac_delim | ||
36287 | _ACEOF | ||
36288 | |||
36289 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
36290 | break | ||
36291 | elif $ac_last_try; then | ||
36292 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
36293 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
36294 | { (exit 1); exit 1; }; } | ||
36295 | else | ||
36296 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
36297 | fi | ||
36298 | done | ||
36299 | |||
36300 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
36301 | if test -n "$ac_eof"; then | ||
36302 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
36303 | ac_eof=`expr $ac_eof + 1` | ||
36304 | fi | ||
36305 | |||
36306 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36307 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
36308 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
36309 | _ACEOF | ||
36310 | sed ' | ||
36311 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
36312 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
36313 | :n | ||
36314 | t n | ||
36315 | s/'"$ac_delim"'$/,g/; t | ||
36316 | s/$/\\/; p | ||
36317 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
36318 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
36319 | rm -f conf$$subs.sed | ||
36320 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36321 | CEOF$ac_eof | ||
36322 | _ACEOF | ||
36323 | |||
36324 | |||
36325 | ac_delim='%!_!# ' | ||
36326 | for ac_last_try in false false false false false :; do | ||
36327 | cat >conf$$subs.sed <<_ACEOF | ||
36328 | user_path!$user_path$ac_delim | ||
36329 | piddir!$piddir$ac_delim | ||
36330 | TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim | ||
36331 | TEST_MALLOC_OPTIONS!$TEST_MALLOC_OPTIONS$ac_delim | ||
36332 | UNSUPPORTED_ALGORITHMS!$UNSUPPORTED_ALGORITHMS$ac_delim | ||
36333 | LIBOBJS!$LIBOBJS$ac_delim | ||
36334 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
36335 | _ACEOF | ||
36336 | |||
36337 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then | ||
36338 | break | ||
36339 | elif $ac_last_try; then | ||
36340 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
36341 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
36342 | { (exit 1); exit 1; }; } | ||
36343 | else | ||
36344 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
36345 | fi | ||
36346 | done | ||
36347 | |||
36348 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
36349 | if test -n "$ac_eof"; then | ||
36350 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
36351 | ac_eof=`expr $ac_eof + 1` | ||
36352 | fi | ||
36353 | |||
36354 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36355 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
36356 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
36357 | _ACEOF | ||
36358 | sed ' | ||
36359 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
36360 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
36361 | :n | ||
36362 | t n | ||
36363 | s/'"$ac_delim"'$/,g/; t | ||
36364 | s/$/\\/; p | ||
36365 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
36366 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
36367 | rm -f conf$$subs.sed | ||
36368 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36369 | :end | ||
36370 | s/|#_!!_#|//g | ||
36371 | CEOF$ac_eof | ||
36372 | _ACEOF | ||
36373 | |||
36374 | |||
36375 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
36376 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
36377 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
36378 | # (actually we leave an empty line to preserve line numbers). | ||
36379 | if test "x$srcdir" = x.; then | ||
36380 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
36381 | s/:*\$(srcdir):*/:/ | ||
36382 | s/:*\${srcdir}:*/:/ | ||
36383 | s/:*@srcdir@:*/:/ | ||
36384 | s/^\([^=]*=[ ]*\):*/\1/ | ||
36385 | s/:*$// | ||
36386 | s/^[^=]*=[ ]*$// | ||
36387 | }' | ||
36388 | fi | ||
36389 | |||
36390 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36391 | fi # test -n "$CONFIG_FILES" | ||
36392 | |||
36393 | |||
36394 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | ||
36395 | do | ||
36396 | case $ac_tag in | ||
36397 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
36398 | esac | ||
36399 | case $ac_mode$ac_tag in | ||
36400 | :[FHL]*:*);; | ||
36401 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
36402 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
36403 | { (exit 1); exit 1; }; };; | ||
36404 | :[FH]-) ac_tag=-:-;; | ||
36405 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
36406 | esac | ||
36407 | ac_save_IFS=$IFS | ||
36408 | IFS=: | ||
36409 | set x $ac_tag | ||
36410 | IFS=$ac_save_IFS | ||
36411 | shift | ||
36412 | ac_file=$1 | ||
36413 | shift | ||
36414 | |||
36415 | case $ac_mode in | ||
36416 | :L) ac_source=$1;; | ||
36417 | :[FH]) | ||
36418 | ac_file_inputs= | ||
36419 | for ac_f | ||
36420 | do | ||
36421 | case $ac_f in | ||
36422 | -) ac_f="$tmp/stdin";; | ||
36423 | *) # Look for the file first in the build tree, then in the source tree | ||
36424 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
36425 | # because $ac_f cannot contain `:'. | ||
36426 | test -f "$ac_f" || | ||
36427 | case $ac_f in | ||
36428 | [\\/$]*) false;; | ||
36429 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
36430 | esac || | ||
36431 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
36432 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
36433 | { (exit 1); exit 1; }; };; | ||
36434 | esac | ||
36435 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
36436 | done | ||
36437 | |||
36438 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
36439 | # use $as_me), people would be surprised to read: | ||
36440 | # /* config.h. Generated by config.status. */ | ||
36441 | configure_input="Generated from "`IFS=: | ||
36442 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
36443 | if test x"$ac_file" != x-; then | ||
36444 | configure_input="$ac_file. $configure_input" | ||
36445 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
36446 | echo "$as_me: creating $ac_file" >&6;} | ||
36447 | fi | ||
36448 | |||
36449 | case $ac_tag in | ||
36450 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
36451 | esac | ||
36452 | ;; | ||
36453 | esac | ||
36454 | |||
36455 | ac_dir=`$as_dirname -- "$ac_file" || | ||
36456 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
36457 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
36458 | X"$ac_file" : 'X\(//\)$' \| \ | ||
36459 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
36460 | echo X"$ac_file" | | ||
36461 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
36462 | s//\1/ | ||
36463 | q | ||
36464 | } | ||
36465 | /^X\(\/\/\)[^/].*/{ | ||
36466 | s//\1/ | ||
36467 | q | ||
36468 | } | ||
36469 | /^X\(\/\/\)$/{ | ||
36470 | s//\1/ | ||
36471 | q | ||
36472 | } | ||
36473 | /^X\(\/\).*/{ | ||
36474 | s//\1/ | ||
36475 | q | ||
36476 | } | ||
36477 | s/.*/./; q'` | ||
36478 | { as_dir="$ac_dir" | ||
36479 | case $as_dir in #( | ||
36480 | -*) as_dir=./$as_dir;; | ||
36481 | esac | ||
36482 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
36483 | as_dirs= | ||
36484 | while :; do | ||
36485 | case $as_dir in #( | ||
36486 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
36487 | *) as_qdir=$as_dir;; | ||
36488 | esac | ||
36489 | as_dirs="'$as_qdir' $as_dirs" | ||
36490 | as_dir=`$as_dirname -- "$as_dir" || | ||
36491 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
36492 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
36493 | X"$as_dir" : 'X\(//\)$' \| \ | ||
36494 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
36495 | echo X"$as_dir" | | ||
36496 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
36497 | s//\1/ | ||
36498 | q | ||
36499 | } | ||
36500 | /^X\(\/\/\)[^/].*/{ | ||
36501 | s//\1/ | ||
36502 | q | ||
36503 | } | ||
36504 | /^X\(\/\/\)$/{ | ||
36505 | s//\1/ | ||
36506 | q | ||
36507 | } | ||
36508 | /^X\(\/\).*/{ | ||
36509 | s//\1/ | ||
36510 | q | ||
36511 | } | ||
36512 | s/.*/./; q'` | ||
36513 | test -d "$as_dir" && break | ||
36514 | done | ||
36515 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
36516 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
36517 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
36518 | { (exit 1); exit 1; }; }; } | ||
36519 | ac_builddir=. | ||
36520 | |||
36521 | case "$ac_dir" in | ||
36522 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
36523 | *) | ||
36524 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
36525 | # A ".." for each directory in $ac_dir_suffix. | ||
36526 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
36527 | case $ac_top_builddir_sub in | ||
36528 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
36529 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
36530 | esac ;; | ||
36531 | esac | ||
36532 | ac_abs_top_builddir=$ac_pwd | ||
36533 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
36534 | # for backward compatibility: | ||
36535 | ac_top_builddir=$ac_top_build_prefix | ||
36536 | |||
36537 | case $srcdir in | ||
36538 | .) # We are building in place. | ||
36539 | ac_srcdir=. | ||
36540 | ac_top_srcdir=$ac_top_builddir_sub | ||
36541 | ac_abs_top_srcdir=$ac_pwd ;; | ||
36542 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
36543 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
36544 | ac_top_srcdir=$srcdir | ||
36545 | ac_abs_top_srcdir=$srcdir ;; | ||
36546 | *) # Relative name. | ||
36547 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
36548 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
36549 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
36550 | esac | ||
36551 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
36552 | |||
36553 | |||
36554 | case $ac_mode in | ||
36555 | :F) | ||
36556 | # | ||
36557 | # CONFIG_FILE | ||
36558 | # | ||
36559 | |||
36560 | case $INSTALL in | ||
36561 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
36562 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
36563 | esac | ||
36564 | _ACEOF | ||
36565 | |||
36566 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36567 | # If the template does not know about datarootdir, expand it. | ||
36568 | # FIXME: This hack should be removed a few years after 2.60. | ||
36569 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
36570 | |||
36571 | case `sed -n '/datarootdir/ { | ||
36572 | p | ||
36573 | q | ||
36574 | } | ||
36575 | /@datadir@/p | ||
36576 | /@docdir@/p | ||
36577 | /@infodir@/p | ||
36578 | /@localedir@/p | ||
36579 | /@mandir@/p | ||
36580 | ' $ac_file_inputs` in | ||
36581 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
36582 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
36583 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
36584 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
36585 | _ACEOF | ||
36586 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36587 | ac_datarootdir_hack=' | ||
36588 | s&@datadir@&$datadir&g | ||
36589 | s&@docdir@&$docdir&g | ||
36590 | s&@infodir@&$infodir&g | ||
36591 | s&@localedir@&$localedir&g | ||
36592 | s&@mandir@&$mandir&g | ||
36593 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
36594 | esac | ||
36595 | _ACEOF | ||
36596 | |||
36597 | # Neutralize VPATH when `$srcdir' = `.'. | ||
36598 | # Shell code in configure.ac might set extrasub. | ||
36599 | # FIXME: do we really want to maintain this feature? | ||
36600 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36601 | sed "$ac_vpsub | ||
36602 | $extrasub | ||
36603 | _ACEOF | ||
36604 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36605 | :t | ||
36606 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
36607 | s&@configure_input@&$configure_input&;t t | ||
36608 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
36609 | s&@srcdir@&$ac_srcdir&;t t | ||
36610 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
36611 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
36612 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
36613 | s&@builddir@&$ac_builddir&;t t | ||
36614 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
36615 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
36616 | s&@INSTALL@&$ac_INSTALL&;t t | ||
36617 | $ac_datarootdir_hack | ||
36618 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
36619 | |||
36620 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
36621 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
36622 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
36623 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
36624 | which seems to be undefined. Please make sure it is defined." >&5 | ||
36625 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
36626 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
36627 | |||
36628 | rm -f "$tmp/stdin" | ||
36629 | case $ac_file in | ||
36630 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
36631 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
36632 | esac | ||
36633 | ;; | ||
36634 | :H) | ||
36635 | # | ||
36636 | # CONFIG_HEADER | ||
36637 | # | ||
36638 | _ACEOF | ||
36639 | |||
36640 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
36641 | # substitutes the proper values into config.h.in to produce config.h. | ||
36642 | rm -f conftest.defines conftest.tail | ||
36643 | # First, append a space to every undef/define line, to ease matching. | ||
36644 | echo 's/$/ /' >conftest.defines | ||
36645 | # Then, protect against being on the right side of a sed subst, or in | ||
36646 | # an unquoted here document, in config.status. If some macros were | ||
36647 | # called several times there might be several #defines for the same | ||
36648 | # symbol, which is useless. But do not sort them, since the last | ||
36649 | # AC_DEFINE must be honored. | ||
36650 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
36651 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
36652 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
36653 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
36654 | # just an empty string. | ||
36655 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
36656 | ac_dB='\\)[ (].*,\\1define\\2' | ||
36657 | ac_dC=' ' | ||
36658 | ac_dD=' ,' | ||
36659 | |||
36660 | uniq confdefs.h | | ||
36661 | sed -n ' | ||
36662 | t rset | ||
36663 | :rset | ||
36664 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
36665 | t ok | ||
36666 | d | ||
36667 | :ok | ||
36668 | s/[\\&,]/\\&/g | ||
36669 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
36670 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
36671 | ' >>conftest.defines | ||
36672 | |||
36673 | # Remove the space that was appended to ease matching. | ||
36674 | # Then replace #undef with comments. This is necessary, for | ||
36675 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
36676 | # on some systems where configure will not decide to define it. | ||
36677 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
36678 | echo 's/ $// | ||
36679 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
36680 | |||
36681 | # Break up conftest.defines: | ||
36682 | ac_max_sed_lines=50 | ||
36683 | |||
36684 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
36685 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
36686 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
36687 | # et cetera. | ||
36688 | ac_in='$ac_file_inputs' | ||
36689 | ac_out='"$tmp/out1"' | ||
36690 | ac_nxt='"$tmp/out2"' | ||
36691 | |||
36692 | while : | ||
36693 | do | ||
36694 | # Write a here document: | ||
36695 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36696 | # First, check the format of the line: | ||
36697 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
36698 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
36699 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
36700 | b | ||
36701 | :def | ||
36702 | _ACEOF | ||
36703 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
36704 | echo 'CEOF | ||
36705 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
36706 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
36707 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
36708 | grep . conftest.tail >/dev/null || break | ||
36709 | rm -f conftest.defines | ||
36710 | mv conftest.tail conftest.defines | ||
36711 | done | ||
36712 | rm -f conftest.defines conftest.tail | ||
36713 | |||
36714 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
36715 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36716 | if test x"$ac_file" != x-; then | ||
36717 | echo "/* $configure_input */" >"$tmp/config.h" | ||
36718 | cat "$ac_result" >>"$tmp/config.h" | ||
36719 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
36720 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
36721 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
36722 | else | ||
36723 | rm -f $ac_file | ||
36724 | mv "$tmp/config.h" $ac_file | ||
36725 | fi | ||
36726 | else | ||
36727 | echo "/* $configure_input */" | ||
36728 | cat "$ac_result" | ||
36729 | fi | ||
36730 | rm -f "$tmp/out12" | ||
36731 | ;; | ||
36732 | |||
36733 | |||
36734 | esac | ||
36735 | |||
36736 | done # for ac_tag | ||
36737 | |||
36738 | |||
36739 | { (exit 0); exit 0; } | ||
36740 | _ACEOF | ||
36741 | chmod +x $CONFIG_STATUS | ||
36742 | ac_clean_files=$ac_clean_files_save | ||
36743 | |||
36744 | |||
36745 | # configure is writing to config.log, and then calls config.status. | ||
36746 | # config.status does its own redirection, appending to config.log. | ||
36747 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
36748 | # by configure, so config.status won't be able to write to it; its | ||
36749 | # output is simply discarded. So we exec the FD to /dev/null, | ||
36750 | # effectively closing config.log, so it can be properly (re)opened and | ||
36751 | # appended to by config.status. When coming back to configure, we | ||
36752 | # need to make the FD available again. | ||
36753 | if test "$no_create" != yes; then | ||
36754 | ac_cs_success=: | ||
36755 | ac_config_status_args= | ||
36756 | test "$silent" = yes && | ||
36757 | ac_config_status_args="$ac_config_status_args --quiet" | ||
36758 | exec 5>/dev/null | ||
36759 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
36760 | exec 5>>config.log | ||
36761 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
36762 | # would make configure fail if this is the last instruction. | ||
36763 | $ac_cs_success || { (exit 1); exit 1; } | ||
36764 | fi | ||
36765 | |||
36766 | |||
36767 | # Print summary of options | ||
36768 | |||
36769 | # Someone please show me a better way :) | ||
36770 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
36771 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
36772 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
36773 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
36774 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
36775 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
36776 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
36777 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
36778 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
36779 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
36780 | |||
36781 | echo "" | ||
36782 | echo "OpenSSH has been configured with the following options:" | ||
36783 | echo " User binaries: $B" | ||
36784 | echo " System binaries: $C" | ||
36785 | echo " Configuration files: $D" | ||
36786 | echo " Askpass program: $E" | ||
36787 | echo " Manual pages: $F" | ||
36788 | echo " PID file: $G" | ||
36789 | echo " Privilege separation chroot path: $H" | ||
36790 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
36791 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
36792 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
36793 | else | ||
36794 | echo " sshd default user PATH: $I" | ||
36795 | if test ! -z "$external_path_file"; then | ||
36796 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
36797 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
36798 | fi | ||
36799 | fi | ||
36800 | if test ! -z "$superuser_path" ; then | ||
36801 | echo " sshd superuser user PATH: $J" | ||
36802 | fi | ||
36803 | echo " Manpage format: $MANTYPE" | ||
36804 | echo " PAM support: $PAM_MSG" | ||
36805 | echo " OSF SIA support: $SIA_MSG" | ||
36806 | echo " KerberosV support: $KRB5_MSG" | ||
36807 | echo " SELinux support: $SELINUX_MSG" | ||
36808 | echo " Smartcard support: $SCARD_MSG" | ||
36809 | echo " S/KEY support: $SKEY_MSG" | ||
36810 | echo " MD5 password support: $MD5_MSG" | ||
36811 | echo " libedit support: $LIBEDIT_MSG" | ||
36812 | echo " Solaris process contract support: $SPC_MSG" | ||
36813 | echo " Solaris project support: $SP_MSG" | ||
36814 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
36815 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
36816 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
36817 | echo " Random number source: $RAND_MSG" | ||
36818 | echo " Privsep sandbox style: $SANDBOX_STYLE" | ||
36819 | |||
36820 | echo "" | ||
36821 | |||
36822 | echo " Host: ${host}" | ||
36823 | echo " Compiler: ${CC}" | ||
36824 | echo " Compiler flags: ${CFLAGS}" | ||
36825 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
36826 | echo " Linker flags: ${LDFLAGS}" | ||
36827 | echo " Libraries: ${LIBS}" | ||
36828 | if test ! -z "${SSHDLIBS}"; then | ||
36829 | echo " +for sshd: ${SSHDLIBS}" | ||
36830 | fi | ||
36831 | if test ! -z "${SSHLIBS}"; then | ||
36832 | echo " +for ssh: ${SSHLIBS}" | ||
36833 | fi | ||
36834 | |||
36835 | echo "" | ||
36836 | |||
36837 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
36838 | echo "SVR4 style packages are supported with \"make package\"" | ||
36839 | echo "" | ||
36840 | fi | ||
36841 | |||
36842 | if test "x$PAM_MSG" = "xyes" ; then | ||
36843 | echo "PAM is enabled. You may need to install a PAM control file " | ||
36844 | echo "for sshd, otherwise password authentication may fail. " | ||
36845 | echo "Example PAM control files can be found in the contrib/ " | ||
36846 | echo "subdirectory" | ||
36847 | echo "" | ||
36848 | fi | ||
36849 | |||
36850 | if test ! -z "$NO_PEERCHECK" ; then | ||
36851 | echo "WARNING: the operating system that you are using does not" | ||
36852 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
36853 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
36854 | echo "enforce security checks to prevent unauthorised connections to" | ||
36855 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
36856 | echo "user can connect to your agent." | ||
36857 | echo "" | ||
36858 | fi | ||
36859 | |||
36860 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
36861 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
36862 | echo "See the Solaris section in README.platform for details." | ||
36863 | fi | ||