diff options
author | Colin Watson <cjwatson@debian.org> | 2012-05-17 12:44:25 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2012-05-17 12:44:25 +0100 |
commit | b9bc38990c5eb5d99e28ca5af6d3491fd4a0060a (patch) | |
tree | 49381e6ed3d94149ffee2a9ecad159c8ecaf5e4b /configure | |
parent | d5dacb43fa30c2f6d7eebbd4c5fcf906c3b5d5d8 (diff) | |
parent | 44e6c1376b2048fb52e2b29baa5e6df7c0e87816 (diff) |
Import 6.0p1 tarball
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17982 |
1 files changed, 17982 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..035b6f064 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,17982 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.489 . | ||
3 | # Guess values for system-dependent variables and create Makefiles. | ||
4 | # Generated by GNU Autoconf 2.68 for OpenSSH Portable. | ||
5 | # | ||
6 | # Report bugs to <openssh-unix-dev@mindrot.org>. | ||
7 | # | ||
8 | # | ||
9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | ||
11 | # Foundation, Inc. | ||
12 | # | ||
13 | # | ||
14 | # This configure script is free software; the Free Software Foundation | ||
15 | # gives unlimited permission to copy, distribute and modify it. | ||
16 | ## -------------------- ## | ||
17 | ## M4sh Initialization. ## | ||
18 | ## -------------------- ## | ||
19 | |||
20 | # Be more Bourne compatible | ||
21 | DUALCASE=1; export DUALCASE # for MKS sh | ||
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
23 | emulate sh | ||
24 | NULLCMD=: | ||
25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
26 | # is contrary to our usage. Disable this feature. | ||
27 | alias -g '${1+"$@"}'='"$@"' | ||
28 | setopt NO_GLOB_SUBST | ||
29 | else | ||
30 | case `(set -o) 2>/dev/null` in #( | ||
31 | *posix*) : | ||
32 | set -o posix ;; #( | ||
33 | *) : | ||
34 | ;; | ||
35 | esac | ||
36 | fi | ||
37 | |||
38 | |||
39 | as_nl=' | ||
40 | ' | ||
41 | export as_nl | ||
42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
46 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
47 | # but without wasting forks for bash or zsh. | ||
48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
49 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
50 | as_echo='print -r --' | ||
51 | as_echo_n='print -rn --' | ||
52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
53 | as_echo='printf %s\n' | ||
54 | as_echo_n='printf %s' | ||
55 | else | ||
56 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
57 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
58 | as_echo_n='/usr/ucb/echo -n' | ||
59 | else | ||
60 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
61 | as_echo_n_body='eval | ||
62 | arg=$1; | ||
63 | case $arg in #( | ||
64 | *"$as_nl"*) | ||
65 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
66 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
67 | esac; | ||
68 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
69 | ' | ||
70 | export as_echo_n_body | ||
71 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
72 | fi | ||
73 | export as_echo_body | ||
74 | as_echo='sh -c $as_echo_body as_echo' | ||
75 | fi | ||
76 | |||
77 | # The user is always right. | ||
78 | if test "${PATH_SEPARATOR+set}" != set; then | ||
79 | PATH_SEPARATOR=: | ||
80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
82 | PATH_SEPARATOR=';' | ||
83 | } | ||
84 | fi | ||
85 | |||
86 | |||
87 | # IFS | ||
88 | # We need space, tab and new line, in precisely that order. Quoting is | ||
89 | # there to prevent editors from complaining about space-tab. | ||
90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
91 | # splitting by setting IFS to empty value.) | ||
92 | IFS=" "" $as_nl" | ||
93 | |||
94 | # Find who we are. Look in the path if we contain no directory separator. | ||
95 | as_myself= | ||
96 | case $0 in #(( | ||
97 | *[\\/]* ) as_myself=$0 ;; | ||
98 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
99 | for as_dir in $PATH | ||
100 | do | ||
101 | IFS=$as_save_IFS | ||
102 | test -z "$as_dir" && as_dir=. | ||
103 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
104 | done | ||
105 | IFS=$as_save_IFS | ||
106 | |||
107 | ;; | ||
108 | esac | ||
109 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
110 | # in which case we are not to be found in the path. | ||
111 | if test "x$as_myself" = x; then | ||
112 | as_myself=$0 | ||
113 | fi | ||
114 | if test ! -f "$as_myself"; then | ||
115 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
116 | exit 1 | ||
117 | fi | ||
118 | |||
119 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
120 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
121 | # suppresses any "Segmentation fault" message there. '((' could | ||
122 | # trigger a bug in pdksh 5.2.14. | ||
123 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
124 | do eval test x\${$as_var+set} = xset \ | ||
125 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
126 | done | ||
127 | PS1='$ ' | ||
128 | PS2='> ' | ||
129 | PS4='+ ' | ||
130 | |||
131 | # NLS nuisances. | ||
132 | LC_ALL=C | ||
133 | export LC_ALL | ||
134 | LANGUAGE=C | ||
135 | export LANGUAGE | ||
136 | |||
137 | # CDPATH. | ||
138 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
139 | |||
140 | if test "x$CONFIG_SHELL" = x; then | ||
141 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
142 | emulate sh | ||
143 | NULLCMD=: | ||
144 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
145 | # is contrary to our usage. Disable this feature. | ||
146 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
147 | setopt NO_GLOB_SUBST | ||
148 | else | ||
149 | case \`(set -o) 2>/dev/null\` in #( | ||
150 | *posix*) : | ||
151 | set -o posix ;; #( | ||
152 | *) : | ||
153 | ;; | ||
154 | esac | ||
155 | fi | ||
156 | " | ||
157 | as_required="as_fn_return () { (exit \$1); } | ||
158 | as_fn_success () { as_fn_return 0; } | ||
159 | as_fn_failure () { as_fn_return 1; } | ||
160 | as_fn_ret_success () { return 0; } | ||
161 | as_fn_ret_failure () { return 1; } | ||
162 | |||
163 | exitcode=0 | ||
164 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
165 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
166 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
167 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
168 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
169 | |||
170 | else | ||
171 | exitcode=1; echo positional parameters were not saved. | ||
172 | fi | ||
173 | test x\$exitcode = x0 || exit 1" | ||
174 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
175 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
176 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
177 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
178 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
179 | if (eval "$as_required") 2>/dev/null; then : | ||
180 | as_have_required=yes | ||
181 | else | ||
182 | as_have_required=no | ||
183 | fi | ||
184 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
185 | |||
186 | else | ||
187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
188 | as_found=false | ||
189 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
190 | do | ||
191 | IFS=$as_save_IFS | ||
192 | test -z "$as_dir" && as_dir=. | ||
193 | as_found=: | ||
194 | case $as_dir in #( | ||
195 | /*) | ||
196 | for as_base in sh bash ksh sh5; do | ||
197 | # Try only shells that exist, to save several forks. | ||
198 | as_shell=$as_dir/$as_base | ||
199 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
200 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
201 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
202 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
203 | break 2 | ||
204 | fi | ||
205 | fi | ||
206 | done;; | ||
207 | esac | ||
208 | as_found=false | ||
209 | done | ||
210 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
211 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
212 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
213 | fi; } | ||
214 | IFS=$as_save_IFS | ||
215 | |||
216 | |||
217 | if test "x$CONFIG_SHELL" != x; then : | ||
218 | # We cannot yet assume a decent shell, so we have to provide a | ||
219 | # neutralization value for shells without unset; and this also | ||
220 | # works around shells that cannot unset nonexistent variables. | ||
221 | # Preserve -v and -x to the replacement shell. | ||
222 | BASH_ENV=/dev/null | ||
223 | ENV=/dev/null | ||
224 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
225 | export CONFIG_SHELL | ||
226 | case $- in # (((( | ||
227 | *v*x* | *x*v* ) as_opts=-vx ;; | ||
228 | *v* ) as_opts=-v ;; | ||
229 | *x* ) as_opts=-x ;; | ||
230 | * ) as_opts= ;; | ||
231 | esac | ||
232 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | ||
233 | fi | ||
234 | |||
235 | if test x$as_have_required = xno; then : | ||
236 | $as_echo "$0: This script requires a shell more modern than all" | ||
237 | $as_echo "$0: the shells that I found on your system." | ||
238 | if test x${ZSH_VERSION+set} = xset ; then | ||
239 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
240 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
241 | else | ||
242 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||
243 | $0: openssh-unix-dev@mindrot.org about your system, | ||
244 | $0: including any error possibly output before this | ||
245 | $0: message. Then install a modern shell, or manually run | ||
246 | $0: the script under such a shell if you do have one." | ||
247 | fi | ||
248 | exit 1 | ||
249 | fi | ||
250 | fi | ||
251 | fi | ||
252 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
253 | export SHELL | ||
254 | # Unset more variables known to interfere with behavior of common tools. | ||
255 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
256 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
257 | |||
258 | ## --------------------- ## | ||
259 | ## M4sh Shell Functions. ## | ||
260 | ## --------------------- ## | ||
261 | # as_fn_unset VAR | ||
262 | # --------------- | ||
263 | # Portably unset VAR. | ||
264 | as_fn_unset () | ||
265 | { | ||
266 | { eval $1=; unset $1;} | ||
267 | } | ||
268 | as_unset=as_fn_unset | ||
269 | |||
270 | # as_fn_set_status STATUS | ||
271 | # ----------------------- | ||
272 | # Set $? to STATUS, without forking. | ||
273 | as_fn_set_status () | ||
274 | { | ||
275 | return $1 | ||
276 | } # as_fn_set_status | ||
277 | |||
278 | # as_fn_exit STATUS | ||
279 | # ----------------- | ||
280 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
281 | as_fn_exit () | ||
282 | { | ||
283 | set +e | ||
284 | as_fn_set_status $1 | ||
285 | exit $1 | ||
286 | } # as_fn_exit | ||
287 | |||
288 | # as_fn_mkdir_p | ||
289 | # ------------- | ||
290 | # Create "$as_dir" as a directory, including parents if necessary. | ||
291 | as_fn_mkdir_p () | ||
292 | { | ||
293 | |||
294 | case $as_dir in #( | ||
295 | -*) as_dir=./$as_dir;; | ||
296 | esac | ||
297 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
298 | as_dirs= | ||
299 | while :; do | ||
300 | case $as_dir in #( | ||
301 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
302 | *) as_qdir=$as_dir;; | ||
303 | esac | ||
304 | as_dirs="'$as_qdir' $as_dirs" | ||
305 | as_dir=`$as_dirname -- "$as_dir" || | ||
306 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
307 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
308 | X"$as_dir" : 'X\(//\)$' \| \ | ||
309 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
310 | $as_echo X"$as_dir" | | ||
311 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
312 | s//\1/ | ||
313 | q | ||
314 | } | ||
315 | /^X\(\/\/\)[^/].*/{ | ||
316 | s//\1/ | ||
317 | q | ||
318 | } | ||
319 | /^X\(\/\/\)$/{ | ||
320 | s//\1/ | ||
321 | q | ||
322 | } | ||
323 | /^X\(\/\).*/{ | ||
324 | s//\1/ | ||
325 | q | ||
326 | } | ||
327 | s/.*/./; q'` | ||
328 | test -d "$as_dir" && break | ||
329 | done | ||
330 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
331 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
332 | |||
333 | |||
334 | } # as_fn_mkdir_p | ||
335 | # as_fn_append VAR VALUE | ||
336 | # ---------------------- | ||
337 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
338 | # advantage of any shell optimizations that allow amortized linear growth over | ||
339 | # repeated appends, instead of the typical quadratic growth present in naive | ||
340 | # implementations. | ||
341 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
342 | eval 'as_fn_append () | ||
343 | { | ||
344 | eval $1+=\$2 | ||
345 | }' | ||
346 | else | ||
347 | as_fn_append () | ||
348 | { | ||
349 | eval $1=\$$1\$2 | ||
350 | } | ||
351 | fi # as_fn_append | ||
352 | |||
353 | # as_fn_arith ARG... | ||
354 | # ------------------ | ||
355 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
356 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
357 | # must be portable across $(()) and expr. | ||
358 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
359 | eval 'as_fn_arith () | ||
360 | { | ||
361 | as_val=$(( $* )) | ||
362 | }' | ||
363 | else | ||
364 | as_fn_arith () | ||
365 | { | ||
366 | as_val=`expr "$@" || test $? -eq 1` | ||
367 | } | ||
368 | fi # as_fn_arith | ||
369 | |||
370 | |||
371 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
372 | # ---------------------------------------- | ||
373 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
374 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
375 | # script with STATUS, using 1 if that was 0. | ||
376 | as_fn_error () | ||
377 | { | ||
378 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
379 | if test "$4"; then | ||
380 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
381 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
382 | fi | ||
383 | $as_echo "$as_me: error: $2" >&2 | ||
384 | as_fn_exit $as_status | ||
385 | } # as_fn_error | ||
386 | |||
387 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
388 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
389 | as_expr=expr | ||
390 | else | ||
391 | as_expr=false | ||
392 | fi | ||
393 | |||
394 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
395 | as_basename=basename | ||
396 | else | ||
397 | as_basename=false | ||
398 | fi | ||
399 | |||
400 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
401 | as_dirname=dirname | ||
402 | else | ||
403 | as_dirname=false | ||
404 | fi | ||
405 | |||
406 | as_me=`$as_basename -- "$0" || | ||
407 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
408 | X"$0" : 'X\(//\)$' \| \ | ||
409 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
410 | $as_echo X/"$0" | | ||
411 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
412 | s//\1/ | ||
413 | q | ||
414 | } | ||
415 | /^X\/\(\/\/\)$/{ | ||
416 | s//\1/ | ||
417 | q | ||
418 | } | ||
419 | /^X\/\(\/\).*/{ | ||
420 | s//\1/ | ||
421 | q | ||
422 | } | ||
423 | s/.*/./; q'` | ||
424 | |||
425 | # Avoid depending upon Character Ranges. | ||
426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
429 | as_cr_digits='0123456789' | ||
430 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
431 | |||
432 | |||
433 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
434 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
435 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
436 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
437 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
438 | sed -n ' | ||
439 | p | ||
440 | /[$]LINENO/= | ||
441 | ' <$as_myself | | ||
442 | sed ' | ||
443 | s/[$]LINENO.*/&-/ | ||
444 | t lineno | ||
445 | b | ||
446 | :lineno | ||
447 | N | ||
448 | :loop | ||
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
450 | t loop | ||
451 | s/-\n.*// | ||
452 | ' >$as_me.lineno && | ||
453 | chmod +x "$as_me.lineno" || | ||
454 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
455 | |||
456 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
457 | # (the dirname of $[0] is not the place where we might find the | ||
458 | # original and so on. Autoconf is especially sensitive to this). | ||
459 | . "./$as_me.lineno" | ||
460 | # Exit status is that of the last command. | ||
461 | exit | ||
462 | } | ||
463 | |||
464 | ECHO_C= ECHO_N= ECHO_T= | ||
465 | case `echo -n x` in #((((( | ||
466 | -n*) | ||
467 | case `echo 'xy\c'` in | ||
468 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
469 | xy) ECHO_C='\c';; | ||
470 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
471 | ECHO_T=' ';; | ||
472 | esac;; | ||
473 | *) | ||
474 | ECHO_N='-n';; | ||
475 | esac | ||
476 | |||
477 | rm -f conf$$ conf$$.exe conf$$.file | ||
478 | if test -d conf$$.dir; then | ||
479 | rm -f conf$$.dir/conf$$.file | ||
480 | else | ||
481 | rm -f conf$$.dir | ||
482 | mkdir conf$$.dir 2>/dev/null | ||
483 | fi | ||
484 | if (echo >conf$$.file) 2>/dev/null; then | ||
485 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
486 | as_ln_s='ln -s' | ||
487 | # ... but there are two gotchas: | ||
488 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
489 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
490 | # In both cases, we have to default to `cp -p'. | ||
491 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
492 | as_ln_s='cp -p' | ||
493 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
494 | as_ln_s=ln | ||
495 | else | ||
496 | as_ln_s='cp -p' | ||
497 | fi | ||
498 | else | ||
499 | as_ln_s='cp -p' | ||
500 | fi | ||
501 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
502 | rmdir conf$$.dir 2>/dev/null | ||
503 | |||
504 | if mkdir -p . 2>/dev/null; then | ||
505 | as_mkdir_p='mkdir -p "$as_dir"' | ||
506 | else | ||
507 | test -d ./-p && rmdir ./-p | ||
508 | as_mkdir_p=false | ||
509 | fi | ||
510 | |||
511 | if test -x / >/dev/null 2>&1; then | ||
512 | as_test_x='test -x' | ||
513 | else | ||
514 | if ls -dL / >/dev/null 2>&1; then | ||
515 | as_ls_L_option=L | ||
516 | else | ||
517 | as_ls_L_option= | ||
518 | fi | ||
519 | as_test_x=' | ||
520 | eval sh -c '\'' | ||
521 | if test -d "$1"; then | ||
522 | test -d "$1/."; | ||
523 | else | ||
524 | case $1 in #( | ||
525 | -*)set "./$1";; | ||
526 | esac; | ||
527 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
528 | ???[sx]*):;;*)false;;esac;fi | ||
529 | '\'' sh | ||
530 | ' | ||
531 | fi | ||
532 | as_executable_p=$as_test_x | ||
533 | |||
534 | # Sed expression to map a string onto a valid CPP name. | ||
535 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
536 | |||
537 | # Sed expression to map a string onto a valid variable name. | ||
538 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
539 | |||
540 | |||
541 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
542 | exec 6>&1 | ||
543 | |||
544 | # Name of the host. | ||
545 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
546 | # so uname gets run too. | ||
547 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
548 | |||
549 | # | ||
550 | # Initializations. | ||
551 | # | ||
552 | ac_default_prefix=/usr/local | ||
553 | ac_clean_files= | ||
554 | ac_config_libobj_dir=. | ||
555 | LIBOBJS= | ||
556 | cross_compiling=no | ||
557 | subdirs= | ||
558 | MFLAGS= | ||
559 | MAKEFLAGS= | ||
560 | |||
561 | # Identity of this package. | ||
562 | PACKAGE_NAME='OpenSSH' | ||
563 | PACKAGE_TARNAME='openssh' | ||
564 | PACKAGE_VERSION='Portable' | ||
565 | PACKAGE_STRING='OpenSSH Portable' | ||
566 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' | ||
567 | PACKAGE_URL='' | ||
568 | |||
569 | ac_unique_file="ssh.c" | ||
570 | # Factoring default headers for most tests. | ||
571 | ac_includes_default="\ | ||
572 | #include <stdio.h> | ||
573 | #ifdef HAVE_SYS_TYPES_H | ||
574 | # include <sys/types.h> | ||
575 | #endif | ||
576 | #ifdef HAVE_SYS_STAT_H | ||
577 | # include <sys/stat.h> | ||
578 | #endif | ||
579 | #ifdef STDC_HEADERS | ||
580 | # include <stdlib.h> | ||
581 | # include <stddef.h> | ||
582 | #else | ||
583 | # ifdef HAVE_STDLIB_H | ||
584 | # include <stdlib.h> | ||
585 | # endif | ||
586 | #endif | ||
587 | #ifdef HAVE_STRING_H | ||
588 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
589 | # include <memory.h> | ||
590 | # endif | ||
591 | # include <string.h> | ||
592 | #endif | ||
593 | #ifdef HAVE_STRINGS_H | ||
594 | # include <strings.h> | ||
595 | #endif | ||
596 | #ifdef HAVE_INTTYPES_H | ||
597 | # include <inttypes.h> | ||
598 | #endif | ||
599 | #ifdef HAVE_STDINT_H | ||
600 | # include <stdint.h> | ||
601 | #endif | ||
602 | #ifdef HAVE_UNISTD_H | ||
603 | # include <unistd.h> | ||
604 | #endif" | ||
605 | |||
606 | ac_subst_vars='LTLIBOBJS | ||
607 | LIBOBJS | ||
608 | TEST_SSH_IPV6 | ||
609 | piddir | ||
610 | user_path | ||
611 | mansubdir | ||
612 | MANTYPE | ||
613 | XAUTH_PATH | ||
614 | STRIP_OPT | ||
615 | xauth_path | ||
616 | PRIVSEP_PATH | ||
617 | KRB5CONF | ||
618 | SSHDLIBS | ||
619 | SSHLIBS | ||
620 | SSH_PRIVSEP_USER | ||
621 | COMMENT_OUT_ECC | ||
622 | TEST_SSH_ECC | ||
623 | TEST_SSH_SHA256 | ||
624 | LIBEDIT | ||
625 | PKGCONFIG | ||
626 | LD | ||
627 | PATH_PASSWD_PROG | ||
628 | LOGIN_PROGRAM_FALLBACK | ||
629 | STARTUP_SCRIPT_SHELL | ||
630 | MAKE_PACKAGE_SUPPORTED | ||
631 | PATH_USERADD_PROG | ||
632 | PATH_GROUPADD_PROG | ||
633 | MANFMT | ||
634 | TEST_SHELL | ||
635 | MANDOC | ||
636 | NROFF | ||
637 | GROFF | ||
638 | SH | ||
639 | TEST_MINUS_S_SH | ||
640 | ENT | ||
641 | SED | ||
642 | PERL | ||
643 | KILL | ||
644 | CAT | ||
645 | AR | ||
646 | INSTALL_DATA | ||
647 | INSTALL_SCRIPT | ||
648 | INSTALL_PROGRAM | ||
649 | RANLIB | ||
650 | AWK | ||
651 | EGREP | ||
652 | GREP | ||
653 | CPP | ||
654 | host_os | ||
655 | host_vendor | ||
656 | host_cpu | ||
657 | host | ||
658 | build_os | ||
659 | build_vendor | ||
660 | build_cpu | ||
661 | build | ||
662 | OBJEXT | ||
663 | EXEEXT | ||
664 | ac_ct_CC | ||
665 | CPPFLAGS | ||
666 | LDFLAGS | ||
667 | CFLAGS | ||
668 | CC | ||
669 | target_alias | ||
670 | host_alias | ||
671 | build_alias | ||
672 | LIBS | ||
673 | ECHO_T | ||
674 | ECHO_N | ||
675 | ECHO_C | ||
676 | DEFS | ||
677 | mandir | ||
678 | localedir | ||
679 | libdir | ||
680 | psdir | ||
681 | pdfdir | ||
682 | dvidir | ||
683 | htmldir | ||
684 | infodir | ||
685 | docdir | ||
686 | oldincludedir | ||
687 | includedir | ||
688 | localstatedir | ||
689 | sharedstatedir | ||
690 | sysconfdir | ||
691 | datadir | ||
692 | datarootdir | ||
693 | libexecdir | ||
694 | sbindir | ||
695 | bindir | ||
696 | program_transform_name | ||
697 | prefix | ||
698 | exec_prefix | ||
699 | PACKAGE_URL | ||
700 | PACKAGE_BUGREPORT | ||
701 | PACKAGE_STRING | ||
702 | PACKAGE_VERSION | ||
703 | PACKAGE_TARNAME | ||
704 | PACKAGE_NAME | ||
705 | PATH_SEPARATOR | ||
706 | SHELL' | ||
707 | ac_subst_files='' | ||
708 | ac_user_opts=' | ||
709 | enable_option_checking | ||
710 | enable_largefile | ||
711 | with_stackprotect | ||
712 | with_rpath | ||
713 | with_cflags | ||
714 | with_cppflags | ||
715 | with_ldflags | ||
716 | with_libs | ||
717 | with_Werror | ||
718 | with_solaris_contracts | ||
719 | with_solaris_projects | ||
720 | with_osfsia | ||
721 | with_zlib | ||
722 | with_zlib_version_check | ||
723 | with_skey | ||
724 | with_tcp_wrappers | ||
725 | with_ldns | ||
726 | with_libedit | ||
727 | with_audit | ||
728 | with_ssl_dir | ||
729 | with_openssl_header_check | ||
730 | with_ssl_engine | ||
731 | with_prngd_port | ||
732 | with_prngd_socket | ||
733 | with_pam | ||
734 | with_privsep_user | ||
735 | with_sandbox | ||
736 | with_selinux | ||
737 | with_kerberos5 | ||
738 | with_privsep_path | ||
739 | with_xauth | ||
740 | enable_strip | ||
741 | with_maildir | ||
742 | with_mantype | ||
743 | with_md5_passwords | ||
744 | with_shadow | ||
745 | with_ipaddr_display | ||
746 | enable_etc_default_login | ||
747 | with_default_path | ||
748 | with_superuser_path | ||
749 | with_4in6 | ||
750 | with_bsd_auth | ||
751 | with_pid_dir | ||
752 | enable_lastlog | ||
753 | enable_utmp | ||
754 | enable_utmpx | ||
755 | enable_wtmp | ||
756 | enable_wtmpx | ||
757 | enable_libutil | ||
758 | enable_pututline | ||
759 | enable_pututxline | ||
760 | with_lastlog | ||
761 | ' | ||
762 | ac_precious_vars='build_alias | ||
763 | host_alias | ||
764 | target_alias | ||
765 | CC | ||
766 | CFLAGS | ||
767 | LDFLAGS | ||
768 | LIBS | ||
769 | CPPFLAGS | ||
770 | CPP' | ||
771 | |||
772 | |||
773 | # Initialize some variables set by options. | ||
774 | ac_init_help= | ||
775 | ac_init_version=false | ||
776 | ac_unrecognized_opts= | ||
777 | ac_unrecognized_sep= | ||
778 | # The variables have the same names as the options, with | ||
779 | # dashes changed to underlines. | ||
780 | cache_file=/dev/null | ||
781 | exec_prefix=NONE | ||
782 | no_create= | ||
783 | no_recursion= | ||
784 | prefix=NONE | ||
785 | program_prefix=NONE | ||
786 | program_suffix=NONE | ||
787 | program_transform_name=s,x,x, | ||
788 | silent= | ||
789 | site= | ||
790 | srcdir= | ||
791 | verbose= | ||
792 | x_includes=NONE | ||
793 | x_libraries=NONE | ||
794 | |||
795 | # Installation directory options. | ||
796 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
797 | # and all the variables that are supposed to be based on exec_prefix | ||
798 | # by default will actually change. | ||
799 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
800 | # (The list follows the same order as the GNU Coding Standards.) | ||
801 | bindir='${exec_prefix}/bin' | ||
802 | sbindir='${exec_prefix}/sbin' | ||
803 | libexecdir='${exec_prefix}/libexec' | ||
804 | datarootdir='${prefix}/share' | ||
805 | datadir='${datarootdir}' | ||
806 | sysconfdir='${prefix}/etc' | ||
807 | sharedstatedir='${prefix}/com' | ||
808 | localstatedir='${prefix}/var' | ||
809 | includedir='${prefix}/include' | ||
810 | oldincludedir='/usr/include' | ||
811 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
812 | infodir='${datarootdir}/info' | ||
813 | htmldir='${docdir}' | ||
814 | dvidir='${docdir}' | ||
815 | pdfdir='${docdir}' | ||
816 | psdir='${docdir}' | ||
817 | libdir='${exec_prefix}/lib' | ||
818 | localedir='${datarootdir}/locale' | ||
819 | mandir='${datarootdir}/man' | ||
820 | |||
821 | ac_prev= | ||
822 | ac_dashdash= | ||
823 | for ac_option | ||
824 | do | ||
825 | # If the previous option needs an argument, assign it. | ||
826 | if test -n "$ac_prev"; then | ||
827 | eval $ac_prev=\$ac_option | ||
828 | ac_prev= | ||
829 | continue | ||
830 | fi | ||
831 | |||
832 | case $ac_option in | ||
833 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
834 | *=) ac_optarg= ;; | ||
835 | *) ac_optarg=yes ;; | ||
836 | esac | ||
837 | |||
838 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
839 | |||
840 | case $ac_dashdash$ac_option in | ||
841 | --) | ||
842 | ac_dashdash=yes ;; | ||
843 | |||
844 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
845 | ac_prev=bindir ;; | ||
846 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
847 | bindir=$ac_optarg ;; | ||
848 | |||
849 | -build | --build | --buil | --bui | --bu) | ||
850 | ac_prev=build_alias ;; | ||
851 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
852 | build_alias=$ac_optarg ;; | ||
853 | |||
854 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
855 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
856 | ac_prev=cache_file ;; | ||
857 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
858 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
859 | cache_file=$ac_optarg ;; | ||
860 | |||
861 | --config-cache | -C) | ||
862 | cache_file=config.cache ;; | ||
863 | |||
864 | -datadir | --datadir | --datadi | --datad) | ||
865 | ac_prev=datadir ;; | ||
866 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
867 | datadir=$ac_optarg ;; | ||
868 | |||
869 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
870 | | --dataroo | --dataro | --datar) | ||
871 | ac_prev=datarootdir ;; | ||
872 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
873 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
874 | datarootdir=$ac_optarg ;; | ||
875 | |||
876 | -disable-* | --disable-*) | ||
877 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
878 | # Reject names that are not valid shell variable names. | ||
879 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
880 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
881 | ac_useropt_orig=$ac_useropt | ||
882 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
883 | case $ac_user_opts in | ||
884 | *" | ||
885 | "enable_$ac_useropt" | ||
886 | "*) ;; | ||
887 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
888 | ac_unrecognized_sep=', ';; | ||
889 | esac | ||
890 | eval enable_$ac_useropt=no ;; | ||
891 | |||
892 | -docdir | --docdir | --docdi | --doc | --do) | ||
893 | ac_prev=docdir ;; | ||
894 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
895 | docdir=$ac_optarg ;; | ||
896 | |||
897 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
898 | ac_prev=dvidir ;; | ||
899 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
900 | dvidir=$ac_optarg ;; | ||
901 | |||
902 | -enable-* | --enable-*) | ||
903 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
904 | # Reject names that are not valid shell variable names. | ||
905 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
906 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
907 | ac_useropt_orig=$ac_useropt | ||
908 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
909 | case $ac_user_opts in | ||
910 | *" | ||
911 | "enable_$ac_useropt" | ||
912 | "*) ;; | ||
913 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
914 | ac_unrecognized_sep=', ';; | ||
915 | esac | ||
916 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
917 | |||
918 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
919 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
920 | | --exec | --exe | --ex) | ||
921 | ac_prev=exec_prefix ;; | ||
922 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
923 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
924 | | --exec=* | --exe=* | --ex=*) | ||
925 | exec_prefix=$ac_optarg ;; | ||
926 | |||
927 | -gas | --gas | --ga | --g) | ||
928 | # Obsolete; use --with-gas. | ||
929 | with_gas=yes ;; | ||
930 | |||
931 | -help | --help | --hel | --he | -h) | ||
932 | ac_init_help=long ;; | ||
933 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
934 | ac_init_help=recursive ;; | ||
935 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
936 | ac_init_help=short ;; | ||
937 | |||
938 | -host | --host | --hos | --ho) | ||
939 | ac_prev=host_alias ;; | ||
940 | -host=* | --host=* | --hos=* | --ho=*) | ||
941 | host_alias=$ac_optarg ;; | ||
942 | |||
943 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
944 | ac_prev=htmldir ;; | ||
945 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
946 | | --ht=*) | ||
947 | htmldir=$ac_optarg ;; | ||
948 | |||
949 | -includedir | --includedir | --includedi | --included | --include \ | ||
950 | | --includ | --inclu | --incl | --inc) | ||
951 | ac_prev=includedir ;; | ||
952 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
953 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
954 | includedir=$ac_optarg ;; | ||
955 | |||
956 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
957 | ac_prev=infodir ;; | ||
958 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
959 | infodir=$ac_optarg ;; | ||
960 | |||
961 | -libdir | --libdir | --libdi | --libd) | ||
962 | ac_prev=libdir ;; | ||
963 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
964 | libdir=$ac_optarg ;; | ||
965 | |||
966 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
967 | | --libexe | --libex | --libe) | ||
968 | ac_prev=libexecdir ;; | ||
969 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
970 | | --libexe=* | --libex=* | --libe=*) | ||
971 | libexecdir=$ac_optarg ;; | ||
972 | |||
973 | -localedir | --localedir | --localedi | --localed | --locale) | ||
974 | ac_prev=localedir ;; | ||
975 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
976 | localedir=$ac_optarg ;; | ||
977 | |||
978 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
979 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
980 | ac_prev=localstatedir ;; | ||
981 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
982 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
983 | localstatedir=$ac_optarg ;; | ||
984 | |||
985 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
986 | ac_prev=mandir ;; | ||
987 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
988 | mandir=$ac_optarg ;; | ||
989 | |||
990 | -nfp | --nfp | --nf) | ||
991 | # Obsolete; use --without-fp. | ||
992 | with_fp=no ;; | ||
993 | |||
994 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
995 | | --no-cr | --no-c | -n) | ||
996 | no_create=yes ;; | ||
997 | |||
998 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
999 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1000 | no_recursion=yes ;; | ||
1001 | |||
1002 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1003 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1004 | | --oldin | --oldi | --old | --ol | --o) | ||
1005 | ac_prev=oldincludedir ;; | ||
1006 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1007 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1008 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1009 | oldincludedir=$ac_optarg ;; | ||
1010 | |||
1011 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1012 | ac_prev=prefix ;; | ||
1013 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1014 | prefix=$ac_optarg ;; | ||
1015 | |||
1016 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1017 | | --program-pre | --program-pr | --program-p) | ||
1018 | ac_prev=program_prefix ;; | ||
1019 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1020 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1021 | program_prefix=$ac_optarg ;; | ||
1022 | |||
1023 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1024 | | --program-suf | --program-su | --program-s) | ||
1025 | ac_prev=program_suffix ;; | ||
1026 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1027 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1028 | program_suffix=$ac_optarg ;; | ||
1029 | |||
1030 | -program-transform-name | --program-transform-name \ | ||
1031 | | --program-transform-nam | --program-transform-na \ | ||
1032 | | --program-transform-n | --program-transform- \ | ||
1033 | | --program-transform | --program-transfor \ | ||
1034 | | --program-transfo | --program-transf \ | ||
1035 | | --program-trans | --program-tran \ | ||
1036 | | --progr-tra | --program-tr | --program-t) | ||
1037 | ac_prev=program_transform_name ;; | ||
1038 | -program-transform-name=* | --program-transform-name=* \ | ||
1039 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1040 | | --program-transform-n=* | --program-transform-=* \ | ||
1041 | | --program-transform=* | --program-transfor=* \ | ||
1042 | | --program-transfo=* | --program-transf=* \ | ||
1043 | | --program-trans=* | --program-tran=* \ | ||
1044 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1045 | program_transform_name=$ac_optarg ;; | ||
1046 | |||
1047 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1048 | ac_prev=pdfdir ;; | ||
1049 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1050 | pdfdir=$ac_optarg ;; | ||
1051 | |||
1052 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1053 | ac_prev=psdir ;; | ||
1054 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1055 | psdir=$ac_optarg ;; | ||
1056 | |||
1057 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1058 | | -silent | --silent | --silen | --sile | --sil) | ||
1059 | silent=yes ;; | ||
1060 | |||
1061 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1062 | ac_prev=sbindir ;; | ||
1063 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1064 | | --sbi=* | --sb=*) | ||
1065 | sbindir=$ac_optarg ;; | ||
1066 | |||
1067 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1068 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1069 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1070 | | --sha | --sh) | ||
1071 | ac_prev=sharedstatedir ;; | ||
1072 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1073 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1074 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1075 | | --sha=* | --sh=*) | ||
1076 | sharedstatedir=$ac_optarg ;; | ||
1077 | |||
1078 | -site | --site | --sit) | ||
1079 | ac_prev=site ;; | ||
1080 | -site=* | --site=* | --sit=*) | ||
1081 | site=$ac_optarg ;; | ||
1082 | |||
1083 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1084 | ac_prev=srcdir ;; | ||
1085 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1086 | srcdir=$ac_optarg ;; | ||
1087 | |||
1088 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1089 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1090 | ac_prev=sysconfdir ;; | ||
1091 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1092 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1093 | sysconfdir=$ac_optarg ;; | ||
1094 | |||
1095 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1096 | ac_prev=target_alias ;; | ||
1097 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1098 | target_alias=$ac_optarg ;; | ||
1099 | |||
1100 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1101 | verbose=yes ;; | ||
1102 | |||
1103 | -version | --version | --versio | --versi | --vers | -V) | ||
1104 | ac_init_version=: ;; | ||
1105 | |||
1106 | -with-* | --with-*) | ||
1107 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1108 | # Reject names that are not valid shell variable names. | ||
1109 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1110 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1111 | ac_useropt_orig=$ac_useropt | ||
1112 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1113 | case $ac_user_opts in | ||
1114 | *" | ||
1115 | "with_$ac_useropt" | ||
1116 | "*) ;; | ||
1117 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1118 | ac_unrecognized_sep=', ';; | ||
1119 | esac | ||
1120 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1121 | |||
1122 | -without-* | --without-*) | ||
1123 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1124 | # Reject names that are not valid shell variable names. | ||
1125 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1126 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1127 | ac_useropt_orig=$ac_useropt | ||
1128 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1129 | case $ac_user_opts in | ||
1130 | *" | ||
1131 | "with_$ac_useropt" | ||
1132 | "*) ;; | ||
1133 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1134 | ac_unrecognized_sep=', ';; | ||
1135 | esac | ||
1136 | eval with_$ac_useropt=no ;; | ||
1137 | |||
1138 | --x) | ||
1139 | # Obsolete; use --with-x. | ||
1140 | with_x=yes ;; | ||
1141 | |||
1142 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1143 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1144 | ac_prev=x_includes ;; | ||
1145 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1146 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1147 | x_includes=$ac_optarg ;; | ||
1148 | |||
1149 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1150 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1151 | ac_prev=x_libraries ;; | ||
1152 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1153 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1154 | x_libraries=$ac_optarg ;; | ||
1155 | |||
1156 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1157 | Try \`$0 --help' for more information" | ||
1158 | ;; | ||
1159 | |||
1160 | *=*) | ||
1161 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1162 | # Reject names that are not valid shell variable names. | ||
1163 | case $ac_envvar in #( | ||
1164 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1165 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1166 | esac | ||
1167 | eval $ac_envvar=\$ac_optarg | ||
1168 | export $ac_envvar ;; | ||
1169 | |||
1170 | *) | ||
1171 | # FIXME: should be removed in autoconf 3.0. | ||
1172 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1173 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1174 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1175 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | ||
1176 | ;; | ||
1177 | |||
1178 | esac | ||
1179 | done | ||
1180 | |||
1181 | if test -n "$ac_prev"; then | ||
1182 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1183 | as_fn_error $? "missing argument to $ac_option" | ||
1184 | fi | ||
1185 | |||
1186 | if test -n "$ac_unrecognized_opts"; then | ||
1187 | case $enable_option_checking in | ||
1188 | no) ;; | ||
1189 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1190 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1191 | esac | ||
1192 | fi | ||
1193 | |||
1194 | # Check all directory arguments for consistency. | ||
1195 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1196 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1197 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1198 | libdir localedir mandir | ||
1199 | do | ||
1200 | eval ac_val=\$$ac_var | ||
1201 | # Remove trailing slashes. | ||
1202 | case $ac_val in | ||
1203 | */ ) | ||
1204 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1205 | eval $ac_var=\$ac_val;; | ||
1206 | esac | ||
1207 | # Be sure to have absolute directory names. | ||
1208 | case $ac_val in | ||
1209 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1210 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1211 | esac | ||
1212 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1213 | done | ||
1214 | |||
1215 | # There might be people who depend on the old broken behavior: `$host' | ||
1216 | # used to hold the argument of --host etc. | ||
1217 | # FIXME: To remove some day. | ||
1218 | build=$build_alias | ||
1219 | host=$host_alias | ||
1220 | target=$target_alias | ||
1221 | |||
1222 | # FIXME: To remove some day. | ||
1223 | if test "x$host_alias" != x; then | ||
1224 | if test "x$build_alias" = x; then | ||
1225 | cross_compiling=maybe | ||
1226 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1227 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1228 | elif test "x$build_alias" != "x$host_alias"; then | ||
1229 | cross_compiling=yes | ||
1230 | fi | ||
1231 | fi | ||
1232 | |||
1233 | ac_tool_prefix= | ||
1234 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1235 | |||
1236 | test "$silent" = yes && exec 6>/dev/null | ||
1237 | |||
1238 | |||
1239 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1240 | ac_ls_di=`ls -di .` && | ||
1241 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1242 | as_fn_error $? "working directory cannot be determined" | ||
1243 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1244 | as_fn_error $? "pwd does not report name of working directory" | ||
1245 | |||
1246 | |||
1247 | # Find the source files, if location was not specified. | ||
1248 | if test -z "$srcdir"; then | ||
1249 | ac_srcdir_defaulted=yes | ||
1250 | # Try the directory containing this script, then the parent directory. | ||
1251 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1252 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1253 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1254 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1255 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1256 | $as_echo X"$as_myself" | | ||
1257 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1258 | s//\1/ | ||
1259 | q | ||
1260 | } | ||
1261 | /^X\(\/\/\)[^/].*/{ | ||
1262 | s//\1/ | ||
1263 | q | ||
1264 | } | ||
1265 | /^X\(\/\/\)$/{ | ||
1266 | s//\1/ | ||
1267 | q | ||
1268 | } | ||
1269 | /^X\(\/\).*/{ | ||
1270 | s//\1/ | ||
1271 | q | ||
1272 | } | ||
1273 | s/.*/./; q'` | ||
1274 | srcdir=$ac_confdir | ||
1275 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1276 | srcdir=.. | ||
1277 | fi | ||
1278 | else | ||
1279 | ac_srcdir_defaulted=no | ||
1280 | fi | ||
1281 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1282 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1283 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1284 | fi | ||
1285 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1286 | ac_abs_confdir=`( | ||
1287 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1288 | pwd)` | ||
1289 | # When building in place, set srcdir=. | ||
1290 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1291 | srcdir=. | ||
1292 | fi | ||
1293 | # Remove unnecessary trailing slashes from srcdir. | ||
1294 | # Double slashes in file names in object file debugging info | ||
1295 | # mess up M-x gdb in Emacs. | ||
1296 | case $srcdir in | ||
1297 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1298 | esac | ||
1299 | for ac_var in $ac_precious_vars; do | ||
1300 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1301 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1302 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1303 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1304 | done | ||
1305 | |||
1306 | # | ||
1307 | # Report the --help message. | ||
1308 | # | ||
1309 | if test "$ac_init_help" = "long"; then | ||
1310 | # Omit some internal or obsolete options to make the list less imposing. | ||
1311 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1312 | cat <<_ACEOF | ||
1313 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1314 | |||
1315 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1316 | |||
1317 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1318 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1319 | |||
1320 | Defaults for the options are specified in brackets. | ||
1321 | |||
1322 | Configuration: | ||
1323 | -h, --help display this help and exit | ||
1324 | --help=short display options specific to this package | ||
1325 | --help=recursive display the short help of all the included packages | ||
1326 | -V, --version display version information and exit | ||
1327 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1328 | --cache-file=FILE cache test results in FILE [disabled] | ||
1329 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1330 | -n, --no-create do not create output files | ||
1331 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1332 | |||
1333 | Installation directories: | ||
1334 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1335 | [$ac_default_prefix] | ||
1336 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1337 | [PREFIX] | ||
1338 | |||
1339 | By default, \`make install' will install all the files in | ||
1340 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1341 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1342 | for instance \`--prefix=\$HOME'. | ||
1343 | |||
1344 | For better control, use the options below. | ||
1345 | |||
1346 | Fine tuning of the installation directories: | ||
1347 | --bindir=DIR user executables [EPREFIX/bin] | ||
1348 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1349 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1350 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1351 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1352 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1353 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1354 | --includedir=DIR C header files [PREFIX/include] | ||
1355 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1356 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1357 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1358 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1359 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1360 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1361 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1362 | --htmldir=DIR html documentation [DOCDIR] | ||
1363 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1364 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1365 | --psdir=DIR ps documentation [DOCDIR] | ||
1366 | _ACEOF | ||
1367 | |||
1368 | cat <<\_ACEOF | ||
1369 | |||
1370 | System types: | ||
1371 | --build=BUILD configure for building on BUILD [guessed] | ||
1372 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1373 | _ACEOF | ||
1374 | fi | ||
1375 | |||
1376 | if test -n "$ac_init_help"; then | ||
1377 | case $ac_init_help in | ||
1378 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1379 | esac | ||
1380 | cat <<\_ACEOF | ||
1381 | |||
1382 | Optional Features: | ||
1383 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1384 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1385 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1386 | --disable-largefile omit support for large files | ||
1387 | --disable-strip Disable calling strip(1) on install | ||
1388 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1389 | --disable-lastlog disable use of lastlog even if detected no | ||
1390 | --disable-utmp disable use of utmp even if detected no | ||
1391 | --disable-utmpx disable use of utmpx even if detected no | ||
1392 | --disable-wtmp disable use of wtmp even if detected no | ||
1393 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1394 | --disable-libutil disable use of libutil (login() etc.) no | ||
1395 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1396 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1397 | |||
1398 | Optional Packages: | ||
1399 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1400 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1401 | --without-stackprotect Don't use compiler's stack protection | ||
1402 | --without-rpath Disable auto-added -R linker paths | ||
1403 | --with-cflags Specify additional flags to pass to compiler | ||
1404 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1405 | --with-ldflags Specify additional flags to pass to linker | ||
1406 | --with-libs Specify additional libraries to link with | ||
1407 | --with-Werror Build main code with -Werror | ||
1408 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1409 | --with-solaris-projects Enable Solaris projects (experimental) | ||
1410 | --with-osfsia Enable Digital Unix SIA | ||
1411 | --with-zlib=PATH Use zlib in PATH | ||
1412 | --without-zlib-version-check Disable zlib version check | ||
1413 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1414 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
1415 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) | ||
1416 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1417 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | ||
1418 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1419 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1420 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1421 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1422 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1423 | --with-pam Enable PAM support | ||
1424 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1425 | --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter) | ||
1426 | --with-selinux Enable SELinux support | ||
1427 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1428 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1429 | --with-xauth=PATH Specify path to xauth program | ||
1430 | --with-maildir=/path/to/mail Specify your system mail directory | ||
1431 | --with-mantype=man|cat|doc Set man page type | ||
1432 | --with-md5-passwords Enable use of MD5 passwords | ||
1433 | --without-shadow Disable shadow password support | ||
1434 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
1435 | --with-default-path= Specify default \$PATH environment for server | ||
1436 | --with-superuser-path= Specify different path for super-user | ||
1437 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1438 | --with-bsd-auth Enable BSD auth support | ||
1439 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1440 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1441 | |||
1442 | Some influential environment variables: | ||
1443 | CC C compiler command | ||
1444 | CFLAGS C compiler flags | ||
1445 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1446 | nonstandard directory <lib dir> | ||
1447 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1448 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1449 | you have headers in a nonstandard directory <include dir> | ||
1450 | CPP C preprocessor | ||
1451 | |||
1452 | Use these variables to override the choices made by `configure' or to help | ||
1453 | it to find libraries and programs with nonstandard names/locations. | ||
1454 | |||
1455 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1456 | _ACEOF | ||
1457 | ac_status=$? | ||
1458 | fi | ||
1459 | |||
1460 | if test "$ac_init_help" = "recursive"; then | ||
1461 | # If there are subdirs, report their specific --help. | ||
1462 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1463 | test -d "$ac_dir" || | ||
1464 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1465 | continue | ||
1466 | ac_builddir=. | ||
1467 | |||
1468 | case "$ac_dir" in | ||
1469 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1470 | *) | ||
1471 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1472 | # A ".." for each directory in $ac_dir_suffix. | ||
1473 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1474 | case $ac_top_builddir_sub in | ||
1475 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1476 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1477 | esac ;; | ||
1478 | esac | ||
1479 | ac_abs_top_builddir=$ac_pwd | ||
1480 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1481 | # for backward compatibility: | ||
1482 | ac_top_builddir=$ac_top_build_prefix | ||
1483 | |||
1484 | case $srcdir in | ||
1485 | .) # We are building in place. | ||
1486 | ac_srcdir=. | ||
1487 | ac_top_srcdir=$ac_top_builddir_sub | ||
1488 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1489 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1490 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1491 | ac_top_srcdir=$srcdir | ||
1492 | ac_abs_top_srcdir=$srcdir ;; | ||
1493 | *) # Relative name. | ||
1494 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1495 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1496 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1497 | esac | ||
1498 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1499 | |||
1500 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1501 | # Check for guested configure. | ||
1502 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1503 | echo && | ||
1504 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1505 | elif test -f "$ac_srcdir/configure"; then | ||
1506 | echo && | ||
1507 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1508 | else | ||
1509 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1510 | fi || ac_status=$? | ||
1511 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1512 | done | ||
1513 | fi | ||
1514 | |||
1515 | test -n "$ac_init_help" && exit $ac_status | ||
1516 | if $ac_init_version; then | ||
1517 | cat <<\_ACEOF | ||
1518 | OpenSSH configure Portable | ||
1519 | generated by GNU Autoconf 2.68 | ||
1520 | |||
1521 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1522 | This configure script is free software; the Free Software Foundation | ||
1523 | gives unlimited permission to copy, distribute and modify it. | ||
1524 | _ACEOF | ||
1525 | exit | ||
1526 | fi | ||
1527 | |||
1528 | ## ------------------------ ## | ||
1529 | ## Autoconf initialization. ## | ||
1530 | ## ------------------------ ## | ||
1531 | |||
1532 | # ac_fn_c_try_compile LINENO | ||
1533 | # -------------------------- | ||
1534 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1535 | ac_fn_c_try_compile () | ||
1536 | { | ||
1537 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1538 | rm -f conftest.$ac_objext | ||
1539 | if { { ac_try="$ac_compile" | ||
1540 | case "(($ac_try" in | ||
1541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1542 | *) ac_try_echo=$ac_try;; | ||
1543 | esac | ||
1544 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1545 | $as_echo "$ac_try_echo"; } >&5 | ||
1546 | (eval "$ac_compile") 2>conftest.err | ||
1547 | ac_status=$? | ||
1548 | if test -s conftest.err; then | ||
1549 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1550 | cat conftest.er1 >&5 | ||
1551 | mv -f conftest.er1 conftest.err | ||
1552 | fi | ||
1553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1554 | test $ac_status = 0; } && { | ||
1555 | test -z "$ac_c_werror_flag" || | ||
1556 | test ! -s conftest.err | ||
1557 | } && test -s conftest.$ac_objext; then : | ||
1558 | ac_retval=0 | ||
1559 | else | ||
1560 | $as_echo "$as_me: failed program was:" >&5 | ||
1561 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1562 | |||
1563 | ac_retval=1 | ||
1564 | fi | ||
1565 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1566 | as_fn_set_status $ac_retval | ||
1567 | |||
1568 | } # ac_fn_c_try_compile | ||
1569 | |||
1570 | # ac_fn_c_try_run LINENO | ||
1571 | # ---------------------- | ||
1572 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1573 | # that executables *can* be run. | ||
1574 | ac_fn_c_try_run () | ||
1575 | { | ||
1576 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1577 | if { { ac_try="$ac_link" | ||
1578 | case "(($ac_try" in | ||
1579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1580 | *) ac_try_echo=$ac_try;; | ||
1581 | esac | ||
1582 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1583 | $as_echo "$ac_try_echo"; } >&5 | ||
1584 | (eval "$ac_link") 2>&5 | ||
1585 | ac_status=$? | ||
1586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1587 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1588 | { { case "(($ac_try" in | ||
1589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1590 | *) ac_try_echo=$ac_try;; | ||
1591 | esac | ||
1592 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1593 | $as_echo "$ac_try_echo"; } >&5 | ||
1594 | (eval "$ac_try") 2>&5 | ||
1595 | ac_status=$? | ||
1596 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1597 | test $ac_status = 0; }; }; then : | ||
1598 | ac_retval=0 | ||
1599 | else | ||
1600 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1601 | $as_echo "$as_me: failed program was:" >&5 | ||
1602 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1603 | |||
1604 | ac_retval=$ac_status | ||
1605 | fi | ||
1606 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1607 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1608 | as_fn_set_status $ac_retval | ||
1609 | |||
1610 | } # ac_fn_c_try_run | ||
1611 | |||
1612 | # ac_fn_c_try_cpp LINENO | ||
1613 | # ---------------------- | ||
1614 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1615 | ac_fn_c_try_cpp () | ||
1616 | { | ||
1617 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1618 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1619 | case "(($ac_try" in | ||
1620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1621 | *) ac_try_echo=$ac_try;; | ||
1622 | esac | ||
1623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1624 | $as_echo "$ac_try_echo"; } >&5 | ||
1625 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1626 | ac_status=$? | ||
1627 | if test -s conftest.err; then | ||
1628 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1629 | cat conftest.er1 >&5 | ||
1630 | mv -f conftest.er1 conftest.err | ||
1631 | fi | ||
1632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1633 | test $ac_status = 0; } > conftest.i && { | ||
1634 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1635 | test ! -s conftest.err | ||
1636 | }; then : | ||
1637 | ac_retval=0 | ||
1638 | else | ||
1639 | $as_echo "$as_me: failed program was:" >&5 | ||
1640 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1641 | |||
1642 | ac_retval=1 | ||
1643 | fi | ||
1644 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1645 | as_fn_set_status $ac_retval | ||
1646 | |||
1647 | } # ac_fn_c_try_cpp | ||
1648 | |||
1649 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1650 | # ------------------------------------------------------- | ||
1651 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1652 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1653 | ac_fn_c_check_header_compile () | ||
1654 | { | ||
1655 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1657 | $as_echo_n "checking for $2... " >&6; } | ||
1658 | if eval \${$3+:} false; then : | ||
1659 | $as_echo_n "(cached) " >&6 | ||
1660 | else | ||
1661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1662 | /* end confdefs.h. */ | ||
1663 | $4 | ||
1664 | #include <$2> | ||
1665 | _ACEOF | ||
1666 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1667 | eval "$3=yes" | ||
1668 | else | ||
1669 | eval "$3=no" | ||
1670 | fi | ||
1671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1672 | fi | ||
1673 | eval ac_res=\$$3 | ||
1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1675 | $as_echo "$ac_res" >&6; } | ||
1676 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1677 | |||
1678 | } # ac_fn_c_check_header_compile | ||
1679 | |||
1680 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
1681 | # --------------------------------------------- | ||
1682 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
1683 | # accordingly. | ||
1684 | ac_fn_c_check_decl () | ||
1685 | { | ||
1686 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1687 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
1688 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
1689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
1690 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
1691 | if eval \${$3+:} false; then : | ||
1692 | $as_echo_n "(cached) " >&6 | ||
1693 | else | ||
1694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1695 | /* end confdefs.h. */ | ||
1696 | $4 | ||
1697 | int | ||
1698 | main () | ||
1699 | { | ||
1700 | #ifndef $as_decl_name | ||
1701 | #ifdef __cplusplus | ||
1702 | (void) $as_decl_use; | ||
1703 | #else | ||
1704 | (void) $as_decl_name; | ||
1705 | #endif | ||
1706 | #endif | ||
1707 | |||
1708 | ; | ||
1709 | return 0; | ||
1710 | } | ||
1711 | _ACEOF | ||
1712 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1713 | eval "$3=yes" | ||
1714 | else | ||
1715 | eval "$3=no" | ||
1716 | fi | ||
1717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1718 | fi | ||
1719 | eval ac_res=\$$3 | ||
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1721 | $as_echo "$ac_res" >&6; } | ||
1722 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1723 | |||
1724 | } # ac_fn_c_check_decl | ||
1725 | |||
1726 | # ac_fn_c_try_link LINENO | ||
1727 | # ----------------------- | ||
1728 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1729 | ac_fn_c_try_link () | ||
1730 | { | ||
1731 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1732 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1733 | if { { ac_try="$ac_link" | ||
1734 | case "(($ac_try" in | ||
1735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1736 | *) ac_try_echo=$ac_try;; | ||
1737 | esac | ||
1738 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1739 | $as_echo "$ac_try_echo"; } >&5 | ||
1740 | (eval "$ac_link") 2>conftest.err | ||
1741 | ac_status=$? | ||
1742 | if test -s conftest.err; then | ||
1743 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1744 | cat conftest.er1 >&5 | ||
1745 | mv -f conftest.er1 conftest.err | ||
1746 | fi | ||
1747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1748 | test $ac_status = 0; } && { | ||
1749 | test -z "$ac_c_werror_flag" || | ||
1750 | test ! -s conftest.err | ||
1751 | } && test -s conftest$ac_exeext && { | ||
1752 | test "$cross_compiling" = yes || | ||
1753 | $as_test_x conftest$ac_exeext | ||
1754 | }; then : | ||
1755 | ac_retval=0 | ||
1756 | else | ||
1757 | $as_echo "$as_me: failed program was:" >&5 | ||
1758 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1759 | |||
1760 | ac_retval=1 | ||
1761 | fi | ||
1762 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1763 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1764 | # interfere with the next link command; also delete a directory that is | ||
1765 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1766 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1767 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1768 | as_fn_set_status $ac_retval | ||
1769 | |||
1770 | } # ac_fn_c_try_link | ||
1771 | |||
1772 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1773 | # ------------------------------------------------------- | ||
1774 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1775 | # the include files in INCLUDES and setting the cache variable VAR | ||
1776 | # accordingly. | ||
1777 | ac_fn_c_check_header_mongrel () | ||
1778 | { | ||
1779 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1780 | if eval \${$3+:} false; then : | ||
1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1782 | $as_echo_n "checking for $2... " >&6; } | ||
1783 | if eval \${$3+:} false; then : | ||
1784 | $as_echo_n "(cached) " >&6 | ||
1785 | fi | ||
1786 | eval ac_res=\$$3 | ||
1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1788 | $as_echo "$ac_res" >&6; } | ||
1789 | else | ||
1790 | # Is the header compilable? | ||
1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1792 | $as_echo_n "checking $2 usability... " >&6; } | ||
1793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1794 | /* end confdefs.h. */ | ||
1795 | $4 | ||
1796 | #include <$2> | ||
1797 | _ACEOF | ||
1798 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1799 | ac_header_compiler=yes | ||
1800 | else | ||
1801 | ac_header_compiler=no | ||
1802 | fi | ||
1803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
1805 | $as_echo "$ac_header_compiler" >&6; } | ||
1806 | |||
1807 | # Is the header present? | ||
1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
1809 | $as_echo_n "checking $2 presence... " >&6; } | ||
1810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1811 | /* end confdefs.h. */ | ||
1812 | #include <$2> | ||
1813 | _ACEOF | ||
1814 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
1815 | ac_header_preproc=yes | ||
1816 | else | ||
1817 | ac_header_preproc=no | ||
1818 | fi | ||
1819 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
1821 | $as_echo "$ac_header_preproc" >&6; } | ||
1822 | |||
1823 | # So? What about this header? | ||
1824 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
1825 | yes:no: ) | ||
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
1827 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1829 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1830 | ;; | ||
1831 | no:yes:* ) | ||
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
1833 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
1835 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
1837 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
1839 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1841 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1842 | ( $as_echo "## ------------------------------------------- ## | ||
1843 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
1844 | ## ------------------------------------------- ##" | ||
1845 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
1846 | ;; | ||
1847 | esac | ||
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1849 | $as_echo_n "checking for $2... " >&6; } | ||
1850 | if eval \${$3+:} false; then : | ||
1851 | $as_echo_n "(cached) " >&6 | ||
1852 | else | ||
1853 | eval "$3=\$ac_header_compiler" | ||
1854 | fi | ||
1855 | eval ac_res=\$$3 | ||
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1857 | $as_echo "$ac_res" >&6; } | ||
1858 | fi | ||
1859 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1860 | |||
1861 | } # ac_fn_c_check_header_mongrel | ||
1862 | |||
1863 | # ac_fn_c_check_func LINENO FUNC VAR | ||
1864 | # ---------------------------------- | ||
1865 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
1866 | ac_fn_c_check_func () | ||
1867 | { | ||
1868 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1870 | $as_echo_n "checking for $2... " >&6; } | ||
1871 | if eval \${$3+:} false; then : | ||
1872 | $as_echo_n "(cached) " >&6 | ||
1873 | else | ||
1874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1875 | /* end confdefs.h. */ | ||
1876 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
1877 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
1878 | #define $2 innocuous_$2 | ||
1879 | |||
1880 | /* System header to define __stub macros and hopefully few prototypes, | ||
1881 | which can conflict with char $2 (); below. | ||
1882 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
1883 | <limits.h> exists even on freestanding compilers. */ | ||
1884 | |||
1885 | #ifdef __STDC__ | ||
1886 | # include <limits.h> | ||
1887 | #else | ||
1888 | # include <assert.h> | ||
1889 | #endif | ||
1890 | |||
1891 | #undef $2 | ||
1892 | |||
1893 | /* Override any GCC internal prototype to avoid an error. | ||
1894 | Use char because int might match the return type of a GCC | ||
1895 | builtin and then its argument prototype would still apply. */ | ||
1896 | #ifdef __cplusplus | ||
1897 | extern "C" | ||
1898 | #endif | ||
1899 | char $2 (); | ||
1900 | /* The GNU C library defines this for functions which it implements | ||
1901 | to always fail with ENOSYS. Some functions are actually named | ||
1902 | something starting with __ and the normal name is an alias. */ | ||
1903 | #if defined __stub_$2 || defined __stub___$2 | ||
1904 | choke me | ||
1905 | #endif | ||
1906 | |||
1907 | int | ||
1908 | main () | ||
1909 | { | ||
1910 | return $2 (); | ||
1911 | ; | ||
1912 | return 0; | ||
1913 | } | ||
1914 | _ACEOF | ||
1915 | if ac_fn_c_try_link "$LINENO"; then : | ||
1916 | eval "$3=yes" | ||
1917 | else | ||
1918 | eval "$3=no" | ||
1919 | fi | ||
1920 | rm -f core conftest.err conftest.$ac_objext \ | ||
1921 | conftest$ac_exeext conftest.$ac_ext | ||
1922 | fi | ||
1923 | eval ac_res=\$$3 | ||
1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1925 | $as_echo "$ac_res" >&6; } | ||
1926 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1927 | |||
1928 | } # ac_fn_c_check_func | ||
1929 | |||
1930 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
1931 | # ------------------------------------------- | ||
1932 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
1933 | # variable VAR accordingly. | ||
1934 | ac_fn_c_check_type () | ||
1935 | { | ||
1936 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1938 | $as_echo_n "checking for $2... " >&6; } | ||
1939 | if eval \${$3+:} false; then : | ||
1940 | $as_echo_n "(cached) " >&6 | ||
1941 | else | ||
1942 | eval "$3=no" | ||
1943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1944 | /* end confdefs.h. */ | ||
1945 | $4 | ||
1946 | int | ||
1947 | main () | ||
1948 | { | ||
1949 | if (sizeof ($2)) | ||
1950 | return 0; | ||
1951 | ; | ||
1952 | return 0; | ||
1953 | } | ||
1954 | _ACEOF | ||
1955 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1957 | /* end confdefs.h. */ | ||
1958 | $4 | ||
1959 | int | ||
1960 | main () | ||
1961 | { | ||
1962 | if (sizeof (($2))) | ||
1963 | return 0; | ||
1964 | ; | ||
1965 | return 0; | ||
1966 | } | ||
1967 | _ACEOF | ||
1968 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1969 | |||
1970 | else | ||
1971 | eval "$3=yes" | ||
1972 | fi | ||
1973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1974 | fi | ||
1975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1976 | fi | ||
1977 | eval ac_res=\$$3 | ||
1978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1979 | $as_echo "$ac_res" >&6; } | ||
1980 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1981 | |||
1982 | } # ac_fn_c_check_type | ||
1983 | |||
1984 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
1985 | # -------------------------------------------- | ||
1986 | # Tries to find the compile-time value of EXPR in a program that includes | ||
1987 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
1988 | # computed | ||
1989 | ac_fn_c_compute_int () | ||
1990 | { | ||
1991 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1992 | if test "$cross_compiling" = yes; then | ||
1993 | # Depending upon the size, compute the lo and hi bounds. | ||
1994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1995 | /* end confdefs.h. */ | ||
1996 | $4 | ||
1997 | int | ||
1998 | main () | ||
1999 | { | ||
2000 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2001 | test_array [0] = 0 | ||
2002 | |||
2003 | ; | ||
2004 | return 0; | ||
2005 | } | ||
2006 | _ACEOF | ||
2007 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2008 | ac_lo=0 ac_mid=0 | ||
2009 | while :; do | ||
2010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2011 | /* end confdefs.h. */ | ||
2012 | $4 | ||
2013 | int | ||
2014 | main () | ||
2015 | { | ||
2016 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2017 | test_array [0] = 0 | ||
2018 | |||
2019 | ; | ||
2020 | return 0; | ||
2021 | } | ||
2022 | _ACEOF | ||
2023 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2024 | ac_hi=$ac_mid; break | ||
2025 | else | ||
2026 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
2027 | if test $ac_lo -le $ac_mid; then | ||
2028 | ac_lo= ac_hi= | ||
2029 | break | ||
2030 | fi | ||
2031 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
2032 | fi | ||
2033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2034 | done | ||
2035 | else | ||
2036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2037 | /* end confdefs.h. */ | ||
2038 | $4 | ||
2039 | int | ||
2040 | main () | ||
2041 | { | ||
2042 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
2043 | test_array [0] = 0 | ||
2044 | |||
2045 | ; | ||
2046 | return 0; | ||
2047 | } | ||
2048 | _ACEOF | ||
2049 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2050 | ac_hi=-1 ac_mid=-1 | ||
2051 | while :; do | ||
2052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2053 | /* end confdefs.h. */ | ||
2054 | $4 | ||
2055 | int | ||
2056 | main () | ||
2057 | { | ||
2058 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
2059 | test_array [0] = 0 | ||
2060 | |||
2061 | ; | ||
2062 | return 0; | ||
2063 | } | ||
2064 | _ACEOF | ||
2065 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2066 | ac_lo=$ac_mid; break | ||
2067 | else | ||
2068 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
2069 | if test $ac_mid -le $ac_hi; then | ||
2070 | ac_lo= ac_hi= | ||
2071 | break | ||
2072 | fi | ||
2073 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
2074 | fi | ||
2075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2076 | done | ||
2077 | else | ||
2078 | ac_lo= ac_hi= | ||
2079 | fi | ||
2080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2081 | fi | ||
2082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2083 | # Binary search between lo and hi bounds. | ||
2084 | while test "x$ac_lo" != "x$ac_hi"; do | ||
2085 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
2086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2087 | /* end confdefs.h. */ | ||
2088 | $4 | ||
2089 | int | ||
2090 | main () | ||
2091 | { | ||
2092 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2093 | test_array [0] = 0 | ||
2094 | |||
2095 | ; | ||
2096 | return 0; | ||
2097 | } | ||
2098 | _ACEOF | ||
2099 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2100 | ac_hi=$ac_mid | ||
2101 | else | ||
2102 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
2103 | fi | ||
2104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2105 | done | ||
2106 | case $ac_lo in #(( | ||
2107 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
2108 | '') ac_retval=1 ;; | ||
2109 | esac | ||
2110 | else | ||
2111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2112 | /* end confdefs.h. */ | ||
2113 | $4 | ||
2114 | static long int longval () { return $2; } | ||
2115 | static unsigned long int ulongval () { return $2; } | ||
2116 | #include <stdio.h> | ||
2117 | #include <stdlib.h> | ||
2118 | int | ||
2119 | main () | ||
2120 | { | ||
2121 | |||
2122 | FILE *f = fopen ("conftest.val", "w"); | ||
2123 | if (! f) | ||
2124 | return 1; | ||
2125 | if (($2) < 0) | ||
2126 | { | ||
2127 | long int i = longval (); | ||
2128 | if (i != ($2)) | ||
2129 | return 1; | ||
2130 | fprintf (f, "%ld", i); | ||
2131 | } | ||
2132 | else | ||
2133 | { | ||
2134 | unsigned long int i = ulongval (); | ||
2135 | if (i != ($2)) | ||
2136 | return 1; | ||
2137 | fprintf (f, "%lu", i); | ||
2138 | } | ||
2139 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
2140 | on some platforms. */ | ||
2141 | return ferror (f) || fclose (f) != 0; | ||
2142 | |||
2143 | ; | ||
2144 | return 0; | ||
2145 | } | ||
2146 | _ACEOF | ||
2147 | if ac_fn_c_try_run "$LINENO"; then : | ||
2148 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
2149 | else | ||
2150 | ac_retval=1 | ||
2151 | fi | ||
2152 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
2153 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
2154 | rm -f conftest.val | ||
2155 | |||
2156 | fi | ||
2157 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2158 | as_fn_set_status $ac_retval | ||
2159 | |||
2160 | } # ac_fn_c_compute_int | ||
2161 | |||
2162 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | ||
2163 | # ---------------------------------------------------- | ||
2164 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||
2165 | # INCLUDES, setting cache variable VAR accordingly. | ||
2166 | ac_fn_c_check_member () | ||
2167 | { | ||
2168 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||
2170 | $as_echo_n "checking for $2.$3... " >&6; } | ||
2171 | if eval \${$4+:} false; then : | ||
2172 | $as_echo_n "(cached) " >&6 | ||
2173 | else | ||
2174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2175 | /* end confdefs.h. */ | ||
2176 | $5 | ||
2177 | int | ||
2178 | main () | ||
2179 | { | ||
2180 | static $2 ac_aggr; | ||
2181 | if (ac_aggr.$3) | ||
2182 | return 0; | ||
2183 | ; | ||
2184 | return 0; | ||
2185 | } | ||
2186 | _ACEOF | ||
2187 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2188 | eval "$4=yes" | ||
2189 | else | ||
2190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2191 | /* end confdefs.h. */ | ||
2192 | $5 | ||
2193 | int | ||
2194 | main () | ||
2195 | { | ||
2196 | static $2 ac_aggr; | ||
2197 | if (sizeof ac_aggr.$3) | ||
2198 | return 0; | ||
2199 | ; | ||
2200 | return 0; | ||
2201 | } | ||
2202 | _ACEOF | ||
2203 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2204 | eval "$4=yes" | ||
2205 | else | ||
2206 | eval "$4=no" | ||
2207 | fi | ||
2208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2209 | fi | ||
2210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2211 | fi | ||
2212 | eval ac_res=\$$4 | ||
2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2214 | $as_echo "$ac_res" >&6; } | ||
2215 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2216 | |||
2217 | } # ac_fn_c_check_member | ||
2218 | cat >config.log <<_ACEOF | ||
2219 | This file contains any messages produced by compilers while | ||
2220 | running configure, to aid debugging if configure makes a mistake. | ||
2221 | |||
2222 | It was created by OpenSSH $as_me Portable, which was | ||
2223 | generated by GNU Autoconf 2.68. Invocation command line was | ||
2224 | |||
2225 | $ $0 $@ | ||
2226 | |||
2227 | _ACEOF | ||
2228 | exec 5>>config.log | ||
2229 | { | ||
2230 | cat <<_ASUNAME | ||
2231 | ## --------- ## | ||
2232 | ## Platform. ## | ||
2233 | ## --------- ## | ||
2234 | |||
2235 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2236 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2237 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2238 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2239 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2240 | |||
2241 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2242 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2243 | |||
2244 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2245 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2246 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2247 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2248 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2249 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2250 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2251 | |||
2252 | _ASUNAME | ||
2253 | |||
2254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2255 | for as_dir in $PATH | ||
2256 | do | ||
2257 | IFS=$as_save_IFS | ||
2258 | test -z "$as_dir" && as_dir=. | ||
2259 | $as_echo "PATH: $as_dir" | ||
2260 | done | ||
2261 | IFS=$as_save_IFS | ||
2262 | |||
2263 | } >&5 | ||
2264 | |||
2265 | cat >&5 <<_ACEOF | ||
2266 | |||
2267 | |||
2268 | ## ----------- ## | ||
2269 | ## Core tests. ## | ||
2270 | ## ----------- ## | ||
2271 | |||
2272 | _ACEOF | ||
2273 | |||
2274 | |||
2275 | # Keep a trace of the command line. | ||
2276 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2277 | # Strip out --silent because we don't want to record it for future runs. | ||
2278 | # Also quote any args containing shell meta-characters. | ||
2279 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2280 | ac_configure_args= | ||
2281 | ac_configure_args0= | ||
2282 | ac_configure_args1= | ||
2283 | ac_must_keep_next=false | ||
2284 | for ac_pass in 1 2 | ||
2285 | do | ||
2286 | for ac_arg | ||
2287 | do | ||
2288 | case $ac_arg in | ||
2289 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2290 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2291 | | -silent | --silent | --silen | --sile | --sil) | ||
2292 | continue ;; | ||
2293 | *\'*) | ||
2294 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2295 | esac | ||
2296 | case $ac_pass in | ||
2297 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2298 | 2) | ||
2299 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2300 | if test $ac_must_keep_next = true; then | ||
2301 | ac_must_keep_next=false # Got value, back to normal. | ||
2302 | else | ||
2303 | case $ac_arg in | ||
2304 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2305 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2306 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2307 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2308 | case "$ac_configure_args0 " in | ||
2309 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2310 | esac | ||
2311 | ;; | ||
2312 | -* ) ac_must_keep_next=true ;; | ||
2313 | esac | ||
2314 | fi | ||
2315 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2316 | ;; | ||
2317 | esac | ||
2318 | done | ||
2319 | done | ||
2320 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2321 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2322 | |||
2323 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2324 | # config.log. We remove comments because anyway the quotes in there | ||
2325 | # would cause problems or look ugly. | ||
2326 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2327 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2328 | trap 'exit_status=$? | ||
2329 | # Save into config.log some information that might help in debugging. | ||
2330 | { | ||
2331 | echo | ||
2332 | |||
2333 | $as_echo "## ---------------- ## | ||
2334 | ## Cache variables. ## | ||
2335 | ## ---------------- ##" | ||
2336 | echo | ||
2337 | # The following way of writing the cache mishandles newlines in values, | ||
2338 | ( | ||
2339 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2340 | eval ac_val=\$$ac_var | ||
2341 | case $ac_val in #( | ||
2342 | *${as_nl}*) | ||
2343 | case $ac_var in #( | ||
2344 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2345 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2346 | esac | ||
2347 | case $ac_var in #( | ||
2348 | _ | IFS | as_nl) ;; #( | ||
2349 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2350 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2351 | esac ;; | ||
2352 | esac | ||
2353 | done | ||
2354 | (set) 2>&1 | | ||
2355 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2356 | *${as_nl}ac_space=\ *) | ||
2357 | sed -n \ | ||
2358 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2359 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2360 | ;; #( | ||
2361 | *) | ||
2362 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2363 | ;; | ||
2364 | esac | | ||
2365 | sort | ||
2366 | ) | ||
2367 | echo | ||
2368 | |||
2369 | $as_echo "## ----------------- ## | ||
2370 | ## Output variables. ## | ||
2371 | ## ----------------- ##" | ||
2372 | echo | ||
2373 | for ac_var in $ac_subst_vars | ||
2374 | do | ||
2375 | eval ac_val=\$$ac_var | ||
2376 | case $ac_val in | ||
2377 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2378 | esac | ||
2379 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2380 | done | sort | ||
2381 | echo | ||
2382 | |||
2383 | if test -n "$ac_subst_files"; then | ||
2384 | $as_echo "## ------------------- ## | ||
2385 | ## File substitutions. ## | ||
2386 | ## ------------------- ##" | ||
2387 | echo | ||
2388 | for ac_var in $ac_subst_files | ||
2389 | do | ||
2390 | eval ac_val=\$$ac_var | ||
2391 | case $ac_val in | ||
2392 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2393 | esac | ||
2394 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2395 | done | sort | ||
2396 | echo | ||
2397 | fi | ||
2398 | |||
2399 | if test -s confdefs.h; then | ||
2400 | $as_echo "## ----------- ## | ||
2401 | ## confdefs.h. ## | ||
2402 | ## ----------- ##" | ||
2403 | echo | ||
2404 | cat confdefs.h | ||
2405 | echo | ||
2406 | fi | ||
2407 | test "$ac_signal" != 0 && | ||
2408 | $as_echo "$as_me: caught signal $ac_signal" | ||
2409 | $as_echo "$as_me: exit $exit_status" | ||
2410 | } >&5 | ||
2411 | rm -f core *.core core.conftest.* && | ||
2412 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2413 | exit $exit_status | ||
2414 | ' 0 | ||
2415 | for ac_signal in 1 2 13 15; do | ||
2416 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2417 | done | ||
2418 | ac_signal=0 | ||
2419 | |||
2420 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2421 | rm -f -r conftest* confdefs.h | ||
2422 | |||
2423 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2424 | |||
2425 | # Predefined preprocessor variables. | ||
2426 | |||
2427 | cat >>confdefs.h <<_ACEOF | ||
2428 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2429 | _ACEOF | ||
2430 | |||
2431 | cat >>confdefs.h <<_ACEOF | ||
2432 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2433 | _ACEOF | ||
2434 | |||
2435 | cat >>confdefs.h <<_ACEOF | ||
2436 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2437 | _ACEOF | ||
2438 | |||
2439 | cat >>confdefs.h <<_ACEOF | ||
2440 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2441 | _ACEOF | ||
2442 | |||
2443 | cat >>confdefs.h <<_ACEOF | ||
2444 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2445 | _ACEOF | ||
2446 | |||
2447 | cat >>confdefs.h <<_ACEOF | ||
2448 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2449 | _ACEOF | ||
2450 | |||
2451 | |||
2452 | # Let the site file select an alternate cache file if it wants to. | ||
2453 | # Prefer an explicitly selected file to automatically selected ones. | ||
2454 | ac_site_file1=NONE | ||
2455 | ac_site_file2=NONE | ||
2456 | if test -n "$CONFIG_SITE"; then | ||
2457 | # We do not want a PATH search for config.site. | ||
2458 | case $CONFIG_SITE in #(( | ||
2459 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2460 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2461 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2462 | esac | ||
2463 | elif test "x$prefix" != xNONE; then | ||
2464 | ac_site_file1=$prefix/share/config.site | ||
2465 | ac_site_file2=$prefix/etc/config.site | ||
2466 | else | ||
2467 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2468 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2469 | fi | ||
2470 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2471 | do | ||
2472 | test "x$ac_site_file" = xNONE && continue | ||
2473 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2475 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2476 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2477 | . "$ac_site_file" \ | ||
2478 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2479 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2480 | as_fn_error $? "failed to load site script $ac_site_file | ||
2481 | See \`config.log' for more details" "$LINENO" 5; } | ||
2482 | fi | ||
2483 | done | ||
2484 | |||
2485 | if test -r "$cache_file"; then | ||
2486 | # Some versions of bash will fail to source /dev/null (special files | ||
2487 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2488 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2490 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2491 | case $cache_file in | ||
2492 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2493 | *) . "./$cache_file";; | ||
2494 | esac | ||
2495 | fi | ||
2496 | else | ||
2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2498 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2499 | >$cache_file | ||
2500 | fi | ||
2501 | |||
2502 | # Check that the precious variables saved in the cache have kept the same | ||
2503 | # value. | ||
2504 | ac_cache_corrupted=false | ||
2505 | for ac_var in $ac_precious_vars; do | ||
2506 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2507 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2508 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2509 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2510 | case $ac_old_set,$ac_new_set in | ||
2511 | set,) | ||
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2513 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2514 | ac_cache_corrupted=: ;; | ||
2515 | ,set) | ||
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2517 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2518 | ac_cache_corrupted=: ;; | ||
2519 | ,);; | ||
2520 | *) | ||
2521 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2522 | # differences in whitespace do not lead to failure. | ||
2523 | ac_old_val_w=`echo x $ac_old_val` | ||
2524 | ac_new_val_w=`echo x $ac_new_val` | ||
2525 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2527 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2528 | ac_cache_corrupted=: | ||
2529 | else | ||
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2531 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2532 | eval $ac_var=\$ac_old_val | ||
2533 | fi | ||
2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2535 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2537 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2538 | fi;; | ||
2539 | esac | ||
2540 | # Pass precious variables to config.status. | ||
2541 | if test "$ac_new_set" = set; then | ||
2542 | case $ac_new_val in | ||
2543 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2544 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2545 | esac | ||
2546 | case " $ac_configure_args " in | ||
2547 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2548 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2549 | esac | ||
2550 | fi | ||
2551 | done | ||
2552 | if $ac_cache_corrupted; then | ||
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2556 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2557 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2558 | fi | ||
2559 | ## -------------------- ## | ||
2560 | ## Main body of script. ## | ||
2561 | ## -------------------- ## | ||
2562 | |||
2563 | ac_ext=c | ||
2564 | ac_cpp='$CPP $CPPFLAGS' | ||
2565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2568 | |||
2569 | |||
2570 | |||
2571 | |||
2572 | ac_ext=c | ||
2573 | ac_cpp='$CPP $CPPFLAGS' | ||
2574 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2575 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2576 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2577 | |||
2578 | |||
2579 | ac_config_headers="$ac_config_headers config.h" | ||
2580 | |||
2581 | ac_ext=c | ||
2582 | ac_cpp='$CPP $CPPFLAGS' | ||
2583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2586 | if test -n "$ac_tool_prefix"; then | ||
2587 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2588 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2590 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2591 | if ${ac_cv_prog_CC+:} false; then : | ||
2592 | $as_echo_n "(cached) " >&6 | ||
2593 | else | ||
2594 | if test -n "$CC"; then | ||
2595 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2596 | else | ||
2597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2598 | for as_dir in $PATH | ||
2599 | do | ||
2600 | IFS=$as_save_IFS | ||
2601 | test -z "$as_dir" && as_dir=. | ||
2602 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2604 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2606 | break 2 | ||
2607 | fi | ||
2608 | done | ||
2609 | done | ||
2610 | IFS=$as_save_IFS | ||
2611 | |||
2612 | fi | ||
2613 | fi | ||
2614 | CC=$ac_cv_prog_CC | ||
2615 | if test -n "$CC"; then | ||
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2617 | $as_echo "$CC" >&6; } | ||
2618 | else | ||
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2620 | $as_echo "no" >&6; } | ||
2621 | fi | ||
2622 | |||
2623 | |||
2624 | fi | ||
2625 | if test -z "$ac_cv_prog_CC"; then | ||
2626 | ac_ct_CC=$CC | ||
2627 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2628 | set dummy gcc; ac_word=$2 | ||
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2630 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2631 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2632 | $as_echo_n "(cached) " >&6 | ||
2633 | else | ||
2634 | if test -n "$ac_ct_CC"; then | ||
2635 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2636 | else | ||
2637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2638 | for as_dir in $PATH | ||
2639 | do | ||
2640 | IFS=$as_save_IFS | ||
2641 | test -z "$as_dir" && as_dir=. | ||
2642 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2643 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2644 | ac_cv_prog_ac_ct_CC="gcc" | ||
2645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2646 | break 2 | ||
2647 | fi | ||
2648 | done | ||
2649 | done | ||
2650 | IFS=$as_save_IFS | ||
2651 | |||
2652 | fi | ||
2653 | fi | ||
2654 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2655 | if test -n "$ac_ct_CC"; then | ||
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2657 | $as_echo "$ac_ct_CC" >&6; } | ||
2658 | else | ||
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2660 | $as_echo "no" >&6; } | ||
2661 | fi | ||
2662 | |||
2663 | if test "x$ac_ct_CC" = x; then | ||
2664 | CC="" | ||
2665 | else | ||
2666 | case $cross_compiling:$ac_tool_warned in | ||
2667 | yes:) | ||
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2669 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2670 | ac_tool_warned=yes ;; | ||
2671 | esac | ||
2672 | CC=$ac_ct_CC | ||
2673 | fi | ||
2674 | else | ||
2675 | CC="$ac_cv_prog_CC" | ||
2676 | fi | ||
2677 | |||
2678 | if test -z "$CC"; then | ||
2679 | if test -n "$ac_tool_prefix"; then | ||
2680 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2681 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2683 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2684 | if ${ac_cv_prog_CC+:} false; then : | ||
2685 | $as_echo_n "(cached) " >&6 | ||
2686 | else | ||
2687 | if test -n "$CC"; then | ||
2688 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2689 | else | ||
2690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2691 | for as_dir in $PATH | ||
2692 | do | ||
2693 | IFS=$as_save_IFS | ||
2694 | test -z "$as_dir" && as_dir=. | ||
2695 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2697 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2699 | break 2 | ||
2700 | fi | ||
2701 | done | ||
2702 | done | ||
2703 | IFS=$as_save_IFS | ||
2704 | |||
2705 | fi | ||
2706 | fi | ||
2707 | CC=$ac_cv_prog_CC | ||
2708 | if test -n "$CC"; then | ||
2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2710 | $as_echo "$CC" >&6; } | ||
2711 | else | ||
2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2713 | $as_echo "no" >&6; } | ||
2714 | fi | ||
2715 | |||
2716 | |||
2717 | fi | ||
2718 | fi | ||
2719 | if test -z "$CC"; then | ||
2720 | # Extract the first word of "cc", so it can be a program name with args. | ||
2721 | set dummy cc; ac_word=$2 | ||
2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2723 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2724 | if ${ac_cv_prog_CC+:} false; then : | ||
2725 | $as_echo_n "(cached) " >&6 | ||
2726 | else | ||
2727 | if test -n "$CC"; then | ||
2728 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2729 | else | ||
2730 | ac_prog_rejected=no | ||
2731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2732 | for as_dir in $PATH | ||
2733 | do | ||
2734 | IFS=$as_save_IFS | ||
2735 | test -z "$as_dir" && as_dir=. | ||
2736 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2738 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2739 | ac_prog_rejected=yes | ||
2740 | continue | ||
2741 | fi | ||
2742 | ac_cv_prog_CC="cc" | ||
2743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2744 | break 2 | ||
2745 | fi | ||
2746 | done | ||
2747 | done | ||
2748 | IFS=$as_save_IFS | ||
2749 | |||
2750 | if test $ac_prog_rejected = yes; then | ||
2751 | # We found a bogon in the path, so make sure we never use it. | ||
2752 | set dummy $ac_cv_prog_CC | ||
2753 | shift | ||
2754 | if test $# != 0; then | ||
2755 | # We chose a different compiler from the bogus one. | ||
2756 | # However, it has the same basename, so the bogon will be chosen | ||
2757 | # first if we set CC to just the basename; use the full file name. | ||
2758 | shift | ||
2759 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2760 | fi | ||
2761 | fi | ||
2762 | fi | ||
2763 | fi | ||
2764 | CC=$ac_cv_prog_CC | ||
2765 | if test -n "$CC"; then | ||
2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2767 | $as_echo "$CC" >&6; } | ||
2768 | else | ||
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2770 | $as_echo "no" >&6; } | ||
2771 | fi | ||
2772 | |||
2773 | |||
2774 | fi | ||
2775 | if test -z "$CC"; then | ||
2776 | if test -n "$ac_tool_prefix"; then | ||
2777 | for ac_prog in cl.exe | ||
2778 | do | ||
2779 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2780 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2782 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2783 | if ${ac_cv_prog_CC+:} false; then : | ||
2784 | $as_echo_n "(cached) " >&6 | ||
2785 | else | ||
2786 | if test -n "$CC"; then | ||
2787 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2788 | else | ||
2789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2790 | for as_dir in $PATH | ||
2791 | do | ||
2792 | IFS=$as_save_IFS | ||
2793 | test -z "$as_dir" && as_dir=. | ||
2794 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2796 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2798 | break 2 | ||
2799 | fi | ||
2800 | done | ||
2801 | done | ||
2802 | IFS=$as_save_IFS | ||
2803 | |||
2804 | fi | ||
2805 | fi | ||
2806 | CC=$ac_cv_prog_CC | ||
2807 | if test -n "$CC"; then | ||
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2809 | $as_echo "$CC" >&6; } | ||
2810 | else | ||
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2812 | $as_echo "no" >&6; } | ||
2813 | fi | ||
2814 | |||
2815 | |||
2816 | test -n "$CC" && break | ||
2817 | done | ||
2818 | fi | ||
2819 | if test -z "$CC"; then | ||
2820 | ac_ct_CC=$CC | ||
2821 | for ac_prog in cl.exe | ||
2822 | do | ||
2823 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2824 | set dummy $ac_prog; ac_word=$2 | ||
2825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2826 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2827 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2828 | $as_echo_n "(cached) " >&6 | ||
2829 | else | ||
2830 | if test -n "$ac_ct_CC"; then | ||
2831 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2832 | else | ||
2833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2834 | for as_dir in $PATH | ||
2835 | do | ||
2836 | IFS=$as_save_IFS | ||
2837 | test -z "$as_dir" && as_dir=. | ||
2838 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2840 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2842 | break 2 | ||
2843 | fi | ||
2844 | done | ||
2845 | done | ||
2846 | IFS=$as_save_IFS | ||
2847 | |||
2848 | fi | ||
2849 | fi | ||
2850 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2851 | if test -n "$ac_ct_CC"; then | ||
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2853 | $as_echo "$ac_ct_CC" >&6; } | ||
2854 | else | ||
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2856 | $as_echo "no" >&6; } | ||
2857 | fi | ||
2858 | |||
2859 | |||
2860 | test -n "$ac_ct_CC" && break | ||
2861 | done | ||
2862 | |||
2863 | if test "x$ac_ct_CC" = x; then | ||
2864 | CC="" | ||
2865 | else | ||
2866 | case $cross_compiling:$ac_tool_warned in | ||
2867 | yes:) | ||
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2869 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2870 | ac_tool_warned=yes ;; | ||
2871 | esac | ||
2872 | CC=$ac_ct_CC | ||
2873 | fi | ||
2874 | fi | ||
2875 | |||
2876 | fi | ||
2877 | |||
2878 | |||
2879 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2880 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2881 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
2882 | See \`config.log' for more details" "$LINENO" 5; } | ||
2883 | |||
2884 | # Provide some information about the compiler. | ||
2885 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
2886 | set X $ac_compile | ||
2887 | ac_compiler=$2 | ||
2888 | for ac_option in --version -v -V -qversion; do | ||
2889 | { { ac_try="$ac_compiler $ac_option >&5" | ||
2890 | case "(($ac_try" in | ||
2891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2892 | *) ac_try_echo=$ac_try;; | ||
2893 | esac | ||
2894 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2895 | $as_echo "$ac_try_echo"; } >&5 | ||
2896 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
2897 | ac_status=$? | ||
2898 | if test -s conftest.err; then | ||
2899 | sed '10a\ | ||
2900 | ... rest of stderr output deleted ... | ||
2901 | 10q' conftest.err >conftest.er1 | ||
2902 | cat conftest.er1 >&5 | ||
2903 | fi | ||
2904 | rm -f conftest.er1 conftest.err | ||
2905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2906 | test $ac_status = 0; } | ||
2907 | done | ||
2908 | |||
2909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2910 | /* end confdefs.h. */ | ||
2911 | |||
2912 | int | ||
2913 | main () | ||
2914 | { | ||
2915 | |||
2916 | ; | ||
2917 | return 0; | ||
2918 | } | ||
2919 | _ACEOF | ||
2920 | ac_clean_files_save=$ac_clean_files | ||
2921 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
2922 | # Try to create an executable without -o first, disregard a.out. | ||
2923 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2924 | # of exeext. | ||
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
2926 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
2927 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2928 | |||
2929 | # The possible output files: | ||
2930 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
2931 | |||
2932 | ac_rmfiles= | ||
2933 | for ac_file in $ac_files | ||
2934 | do | ||
2935 | case $ac_file in | ||
2936 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2937 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2938 | esac | ||
2939 | done | ||
2940 | rm -f $ac_rmfiles | ||
2941 | |||
2942 | if { { ac_try="$ac_link_default" | ||
2943 | case "(($ac_try" in | ||
2944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2945 | *) ac_try_echo=$ac_try;; | ||
2946 | esac | ||
2947 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2948 | $as_echo "$ac_try_echo"; } >&5 | ||
2949 | (eval "$ac_link_default") 2>&5 | ||
2950 | ac_status=$? | ||
2951 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2952 | test $ac_status = 0; }; then : | ||
2953 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2954 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2955 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2956 | # so that the user can short-circuit this test for compilers unknown to | ||
2957 | # Autoconf. | ||
2958 | for ac_file in $ac_files '' | ||
2959 | do | ||
2960 | test -f "$ac_file" || continue | ||
2961 | case $ac_file in | ||
2962 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
2963 | ;; | ||
2964 | [ab].out ) | ||
2965 | # We found the default executable, but exeext='' is most | ||
2966 | # certainly right. | ||
2967 | break;; | ||
2968 | *.* ) | ||
2969 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2970 | then :; else | ||
2971 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2972 | fi | ||
2973 | # We set ac_cv_exeext here because the later test for it is not | ||
2974 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2975 | # argument, so we may need to know it at that point already. | ||
2976 | # Even if this section looks crufty: it has the advantage of | ||
2977 | # actually working. | ||
2978 | break;; | ||
2979 | * ) | ||
2980 | break;; | ||
2981 | esac | ||
2982 | done | ||
2983 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2984 | |||
2985 | else | ||
2986 | ac_file='' | ||
2987 | fi | ||
2988 | if test -z "$ac_file"; then : | ||
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2990 | $as_echo "no" >&6; } | ||
2991 | $as_echo "$as_me: failed program was:" >&5 | ||
2992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2993 | |||
2994 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2995 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2996 | as_fn_error 77 "C compiler cannot create executables | ||
2997 | See \`config.log' for more details" "$LINENO" 5; } | ||
2998 | else | ||
2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3000 | $as_echo "yes" >&6; } | ||
3001 | fi | ||
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3003 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3005 | $as_echo "$ac_file" >&6; } | ||
3006 | ac_exeext=$ac_cv_exeext | ||
3007 | |||
3008 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3009 | ac_clean_files=$ac_clean_files_save | ||
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3011 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3012 | if { { ac_try="$ac_link" | ||
3013 | case "(($ac_try" in | ||
3014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3015 | *) ac_try_echo=$ac_try;; | ||
3016 | esac | ||
3017 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3018 | $as_echo "$ac_try_echo"; } >&5 | ||
3019 | (eval "$ac_link") 2>&5 | ||
3020 | ac_status=$? | ||
3021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3022 | test $ac_status = 0; }; then : | ||
3023 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3024 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3025 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3026 | # `rm'. | ||
3027 | for ac_file in conftest.exe conftest conftest.*; do | ||
3028 | test -f "$ac_file" || continue | ||
3029 | case $ac_file in | ||
3030 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3031 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3032 | break;; | ||
3033 | * ) break;; | ||
3034 | esac | ||
3035 | done | ||
3036 | else | ||
3037 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3038 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3039 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
3040 | See \`config.log' for more details" "$LINENO" 5; } | ||
3041 | fi | ||
3042 | rm -f conftest conftest$ac_cv_exeext | ||
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
3044 | $as_echo "$ac_cv_exeext" >&6; } | ||
3045 | |||
3046 | rm -f conftest.$ac_ext | ||
3047 | EXEEXT=$ac_cv_exeext | ||
3048 | ac_exeext=$EXEEXT | ||
3049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3050 | /* end confdefs.h. */ | ||
3051 | #include <stdio.h> | ||
3052 | int | ||
3053 | main () | ||
3054 | { | ||
3055 | FILE *f = fopen ("conftest.out", "w"); | ||
3056 | return ferror (f) || fclose (f) != 0; | ||
3057 | |||
3058 | ; | ||
3059 | return 0; | ||
3060 | } | ||
3061 | _ACEOF | ||
3062 | ac_clean_files="$ac_clean_files conftest.out" | ||
3063 | # Check that the compiler produces executables we can run. If not, either | ||
3064 | # the compiler is broken, or we cross compile. | ||
3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
3066 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
3067 | if test "$cross_compiling" != yes; then | ||
3068 | { { ac_try="$ac_link" | ||
3069 | case "(($ac_try" in | ||
3070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3071 | *) ac_try_echo=$ac_try;; | ||
3072 | esac | ||
3073 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3074 | $as_echo "$ac_try_echo"; } >&5 | ||
3075 | (eval "$ac_link") 2>&5 | ||
3076 | ac_status=$? | ||
3077 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3078 | test $ac_status = 0; } | ||
3079 | if { ac_try='./conftest$ac_cv_exeext' | ||
3080 | { { case "(($ac_try" in | ||
3081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3082 | *) ac_try_echo=$ac_try;; | ||
3083 | esac | ||
3084 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3085 | $as_echo "$ac_try_echo"; } >&5 | ||
3086 | (eval "$ac_try") 2>&5 | ||
3087 | ac_status=$? | ||
3088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3089 | test $ac_status = 0; }; }; then | ||
3090 | cross_compiling=no | ||
3091 | else | ||
3092 | if test "$cross_compiling" = maybe; then | ||
3093 | cross_compiling=yes | ||
3094 | else | ||
3095 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3096 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3097 | as_fn_error $? "cannot run C compiled programs. | ||
3098 | If you meant to cross compile, use \`--host'. | ||
3099 | See \`config.log' for more details" "$LINENO" 5; } | ||
3100 | fi | ||
3101 | fi | ||
3102 | fi | ||
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
3104 | $as_echo "$cross_compiling" >&6; } | ||
3105 | |||
3106 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
3107 | ac_clean_files=$ac_clean_files_save | ||
3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
3109 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
3110 | if ${ac_cv_objext+:} false; then : | ||
3111 | $as_echo_n "(cached) " >&6 | ||
3112 | else | ||
3113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3114 | /* end confdefs.h. */ | ||
3115 | |||
3116 | int | ||
3117 | main () | ||
3118 | { | ||
3119 | |||
3120 | ; | ||
3121 | return 0; | ||
3122 | } | ||
3123 | _ACEOF | ||
3124 | rm -f conftest.o conftest.obj | ||
3125 | if { { ac_try="$ac_compile" | ||
3126 | case "(($ac_try" in | ||
3127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3128 | *) ac_try_echo=$ac_try;; | ||
3129 | esac | ||
3130 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3131 | $as_echo "$ac_try_echo"; } >&5 | ||
3132 | (eval "$ac_compile") 2>&5 | ||
3133 | ac_status=$? | ||
3134 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3135 | test $ac_status = 0; }; then : | ||
3136 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3137 | test -f "$ac_file" || continue; | ||
3138 | case $ac_file in | ||
3139 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
3140 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3141 | break;; | ||
3142 | esac | ||
3143 | done | ||
3144 | else | ||
3145 | $as_echo "$as_me: failed program was:" >&5 | ||
3146 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3147 | |||
3148 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3149 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3150 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
3151 | See \`config.log' for more details" "$LINENO" 5; } | ||
3152 | fi | ||
3153 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3154 | fi | ||
3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
3156 | $as_echo "$ac_cv_objext" >&6; } | ||
3157 | OBJEXT=$ac_cv_objext | ||
3158 | ac_objext=$OBJEXT | ||
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
3160 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
3161 | if ${ac_cv_c_compiler_gnu+:} false; then : | ||
3162 | $as_echo_n "(cached) " >&6 | ||
3163 | else | ||
3164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3165 | /* end confdefs.h. */ | ||
3166 | |||
3167 | int | ||
3168 | main () | ||
3169 | { | ||
3170 | #ifndef __GNUC__ | ||
3171 | choke me | ||
3172 | #endif | ||
3173 | |||
3174 | ; | ||
3175 | return 0; | ||
3176 | } | ||
3177 | _ACEOF | ||
3178 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3179 | ac_compiler_gnu=yes | ||
3180 | else | ||
3181 | ac_compiler_gnu=no | ||
3182 | fi | ||
3183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3184 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3185 | |||
3186 | fi | ||
3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
3188 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
3189 | if test $ac_compiler_gnu = yes; then | ||
3190 | GCC=yes | ||
3191 | else | ||
3192 | GCC= | ||
3193 | fi | ||
3194 | ac_test_CFLAGS=${CFLAGS+set} | ||
3195 | ac_save_CFLAGS=$CFLAGS | ||
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
3197 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
3198 | if ${ac_cv_prog_cc_g+:} false; then : | ||
3199 | $as_echo_n "(cached) " >&6 | ||
3200 | else | ||
3201 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3202 | ac_c_werror_flag=yes | ||
3203 | ac_cv_prog_cc_g=no | ||
3204 | CFLAGS="-g" | ||
3205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3206 | /* end confdefs.h. */ | ||
3207 | |||
3208 | int | ||
3209 | main () | ||
3210 | { | ||
3211 | |||
3212 | ; | ||
3213 | return 0; | ||
3214 | } | ||
3215 | _ACEOF | ||
3216 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3217 | ac_cv_prog_cc_g=yes | ||
3218 | else | ||
3219 | CFLAGS="" | ||
3220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3221 | /* end confdefs.h. */ | ||
3222 | |||
3223 | int | ||
3224 | main () | ||
3225 | { | ||
3226 | |||
3227 | ; | ||
3228 | return 0; | ||
3229 | } | ||
3230 | _ACEOF | ||
3231 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3232 | |||
3233 | else | ||
3234 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3235 | CFLAGS="-g" | ||
3236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3237 | /* end confdefs.h. */ | ||
3238 | |||
3239 | int | ||
3240 | main () | ||
3241 | { | ||
3242 | |||
3243 | ; | ||
3244 | return 0; | ||
3245 | } | ||
3246 | _ACEOF | ||
3247 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3248 | ac_cv_prog_cc_g=yes | ||
3249 | fi | ||
3250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3251 | fi | ||
3252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3253 | fi | ||
3254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3255 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3256 | fi | ||
3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
3258 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
3259 | if test "$ac_test_CFLAGS" = set; then | ||
3260 | CFLAGS=$ac_save_CFLAGS | ||
3261 | elif test $ac_cv_prog_cc_g = yes; then | ||
3262 | if test "$GCC" = yes; then | ||
3263 | CFLAGS="-g -O2" | ||
3264 | else | ||
3265 | CFLAGS="-g" | ||
3266 | fi | ||
3267 | else | ||
3268 | if test "$GCC" = yes; then | ||
3269 | CFLAGS="-O2" | ||
3270 | else | ||
3271 | CFLAGS= | ||
3272 | fi | ||
3273 | fi | ||
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
3275 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
3276 | if ${ac_cv_prog_cc_c89+:} false; then : | ||
3277 | $as_echo_n "(cached) " >&6 | ||
3278 | else | ||
3279 | ac_cv_prog_cc_c89=no | ||
3280 | ac_save_CC=$CC | ||
3281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3282 | /* end confdefs.h. */ | ||
3283 | #include <stdarg.h> | ||
3284 | #include <stdio.h> | ||
3285 | #include <sys/types.h> | ||
3286 | #include <sys/stat.h> | ||
3287 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3288 | struct buf { int x; }; | ||
3289 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3290 | static char *e (p, i) | ||
3291 | char **p; | ||
3292 | int i; | ||
3293 | { | ||
3294 | return p[i]; | ||
3295 | } | ||
3296 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3297 | { | ||
3298 | char *s; | ||
3299 | va_list v; | ||
3300 | va_start (v,p); | ||
3301 | s = g (p, va_arg (v,int)); | ||
3302 | va_end (v); | ||
3303 | return s; | ||
3304 | } | ||
3305 | |||
3306 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3307 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3308 | These don't provoke an error unfortunately, instead are silently treated | ||
3309 | as 'x'. The following induces an error, until -std is added to get | ||
3310 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3311 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3312 | that's true only with -std. */ | ||
3313 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3314 | |||
3315 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3316 | inside strings and character constants. */ | ||
3317 | #define FOO(x) 'x' | ||
3318 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3319 | |||
3320 | int test (int i, double x); | ||
3321 | struct s1 {int (*f) (int a);}; | ||
3322 | struct s2 {int (*f) (double a);}; | ||
3323 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3324 | int argc; | ||
3325 | char **argv; | ||
3326 | int | ||
3327 | main () | ||
3328 | { | ||
3329 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3330 | ; | ||
3331 | return 0; | ||
3332 | } | ||
3333 | _ACEOF | ||
3334 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3335 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3336 | do | ||
3337 | CC="$ac_save_CC $ac_arg" | ||
3338 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3339 | ac_cv_prog_cc_c89=$ac_arg | ||
3340 | fi | ||
3341 | rm -f core conftest.err conftest.$ac_objext | ||
3342 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3343 | done | ||
3344 | rm -f conftest.$ac_ext | ||
3345 | CC=$ac_save_CC | ||
3346 | |||
3347 | fi | ||
3348 | # AC_CACHE_VAL | ||
3349 | case "x$ac_cv_prog_cc_c89" in | ||
3350 | x) | ||
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
3352 | $as_echo "none needed" >&6; } ;; | ||
3353 | xno) | ||
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
3355 | $as_echo "unsupported" >&6; } ;; | ||
3356 | *) | ||
3357 | CC="$CC $ac_cv_prog_cc_c89" | ||
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
3359 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
3360 | esac | ||
3361 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
3362 | |||
3363 | fi | ||
3364 | |||
3365 | ac_ext=c | ||
3366 | ac_cpp='$CPP $CPPFLAGS' | ||
3367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3370 | |||
3371 | ac_aux_dir= | ||
3372 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3373 | if test -f "$ac_dir/install-sh"; then | ||
3374 | ac_aux_dir=$ac_dir | ||
3375 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3376 | break | ||
3377 | elif test -f "$ac_dir/install.sh"; then | ||
3378 | ac_aux_dir=$ac_dir | ||
3379 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3380 | break | ||
3381 | elif test -f "$ac_dir/shtool"; then | ||
3382 | ac_aux_dir=$ac_dir | ||
3383 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3384 | break | ||
3385 | fi | ||
3386 | done | ||
3387 | if test -z "$ac_aux_dir"; then | ||
3388 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3389 | fi | ||
3390 | |||
3391 | # These three variables are undocumented and unsupported, | ||
3392 | # and are intended to be withdrawn in a future Autoconf release. | ||
3393 | # They can cause serious problems if a builder's source tree is in a directory | ||
3394 | # whose full name contains unusual characters. | ||
3395 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3396 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3397 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3398 | |||
3399 | |||
3400 | # Make sure we can run config.sub. | ||
3401 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
3402 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
3403 | |||
3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
3405 | $as_echo_n "checking build system type... " >&6; } | ||
3406 | if ${ac_cv_build+:} false; then : | ||
3407 | $as_echo_n "(cached) " >&6 | ||
3408 | else | ||
3409 | ac_build_alias=$build_alias | ||
3410 | test "x$ac_build_alias" = x && | ||
3411 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
3412 | test "x$ac_build_alias" = x && | ||
3413 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
3414 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
3415 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
3416 | |||
3417 | fi | ||
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
3419 | $as_echo "$ac_cv_build" >&6; } | ||
3420 | case $ac_cv_build in | ||
3421 | *-*-*) ;; | ||
3422 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||
3423 | esac | ||
3424 | build=$ac_cv_build | ||
3425 | ac_save_IFS=$IFS; IFS='-' | ||
3426 | set x $ac_cv_build | ||
3427 | shift | ||
3428 | build_cpu=$1 | ||
3429 | build_vendor=$2 | ||
3430 | shift; shift | ||
3431 | # Remember, the first character of IFS is used to create $*, | ||
3432 | # except with old shells: | ||
3433 | build_os=$* | ||
3434 | IFS=$ac_save_IFS | ||
3435 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3436 | |||
3437 | |||
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
3439 | $as_echo_n "checking host system type... " >&6; } | ||
3440 | if ${ac_cv_host+:} false; then : | ||
3441 | $as_echo_n "(cached) " >&6 | ||
3442 | else | ||
3443 | if test "x$host_alias" = x; then | ||
3444 | ac_cv_host=$ac_cv_build | ||
3445 | else | ||
3446 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3447 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
3448 | fi | ||
3449 | |||
3450 | fi | ||
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
3452 | $as_echo "$ac_cv_host" >&6; } | ||
3453 | case $ac_cv_host in | ||
3454 | *-*-*) ;; | ||
3455 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||
3456 | esac | ||
3457 | host=$ac_cv_host | ||
3458 | ac_save_IFS=$IFS; IFS='-' | ||
3459 | set x $ac_cv_host | ||
3460 | shift | ||
3461 | host_cpu=$1 | ||
3462 | host_vendor=$2 | ||
3463 | shift; shift | ||
3464 | # Remember, the first character of IFS is used to create $*, | ||
3465 | # except with old shells: | ||
3466 | host_os=$* | ||
3467 | IFS=$ac_save_IFS | ||
3468 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3469 | |||
3470 | |||
3471 | |||
3472 | ac_ext=c | ||
3473 | ac_cpp='$CPP $CPPFLAGS' | ||
3474 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3475 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3476 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
3478 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
3479 | # On Suns, sometimes $CPP names a directory. | ||
3480 | if test -n "$CPP" && test -d "$CPP"; then | ||
3481 | CPP= | ||
3482 | fi | ||
3483 | if test -z "$CPP"; then | ||
3484 | if ${ac_cv_prog_CPP+:} false; then : | ||
3485 | $as_echo_n "(cached) " >&6 | ||
3486 | else | ||
3487 | # Double quotes because CPP needs to be expanded | ||
3488 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3489 | do | ||
3490 | ac_preproc_ok=false | ||
3491 | for ac_c_preproc_warn_flag in '' yes | ||
3492 | do | ||
3493 | # Use a header file that comes with gcc, so configuring glibc | ||
3494 | # with a fresh cross-compiler works. | ||
3495 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3496 | # <limits.h> exists even on freestanding compilers. | ||
3497 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3498 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3500 | /* end confdefs.h. */ | ||
3501 | #ifdef __STDC__ | ||
3502 | # include <limits.h> | ||
3503 | #else | ||
3504 | # include <assert.h> | ||
3505 | #endif | ||
3506 | Syntax error | ||
3507 | _ACEOF | ||
3508 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3509 | |||
3510 | else | ||
3511 | # Broken: fails on valid input. | ||
3512 | continue | ||
3513 | fi | ||
3514 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3515 | |||
3516 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3517 | # can be detected and how. | ||
3518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3519 | /* end confdefs.h. */ | ||
3520 | #include <ac_nonexistent.h> | ||
3521 | _ACEOF | ||
3522 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3523 | # Broken: success on invalid input. | ||
3524 | continue | ||
3525 | else | ||
3526 | # Passes both tests. | ||
3527 | ac_preproc_ok=: | ||
3528 | break | ||
3529 | fi | ||
3530 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3531 | |||
3532 | done | ||
3533 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3534 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3535 | if $ac_preproc_ok; then : | ||
3536 | break | ||
3537 | fi | ||
3538 | |||
3539 | done | ||
3540 | ac_cv_prog_CPP=$CPP | ||
3541 | |||
3542 | fi | ||
3543 | CPP=$ac_cv_prog_CPP | ||
3544 | else | ||
3545 | ac_cv_prog_CPP=$CPP | ||
3546 | fi | ||
3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
3548 | $as_echo "$CPP" >&6; } | ||
3549 | ac_preproc_ok=false | ||
3550 | for ac_c_preproc_warn_flag in '' yes | ||
3551 | do | ||
3552 | # Use a header file that comes with gcc, so configuring glibc | ||
3553 | # with a fresh cross-compiler works. | ||
3554 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3555 | # <limits.h> exists even on freestanding compilers. | ||
3556 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3557 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3559 | /* end confdefs.h. */ | ||
3560 | #ifdef __STDC__ | ||
3561 | # include <limits.h> | ||
3562 | #else | ||
3563 | # include <assert.h> | ||
3564 | #endif | ||
3565 | Syntax error | ||
3566 | _ACEOF | ||
3567 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3568 | |||
3569 | else | ||
3570 | # Broken: fails on valid input. | ||
3571 | continue | ||
3572 | fi | ||
3573 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3574 | |||
3575 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3576 | # can be detected and how. | ||
3577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3578 | /* end confdefs.h. */ | ||
3579 | #include <ac_nonexistent.h> | ||
3580 | _ACEOF | ||
3581 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3582 | # Broken: success on invalid input. | ||
3583 | continue | ||
3584 | else | ||
3585 | # Passes both tests. | ||
3586 | ac_preproc_ok=: | ||
3587 | break | ||
3588 | fi | ||
3589 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3590 | |||
3591 | done | ||
3592 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3593 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3594 | if $ac_preproc_ok; then : | ||
3595 | |||
3596 | else | ||
3597 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3598 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3599 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
3600 | See \`config.log' for more details" "$LINENO" 5; } | ||
3601 | fi | ||
3602 | |||
3603 | ac_ext=c | ||
3604 | ac_cpp='$CPP $CPPFLAGS' | ||
3605 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3606 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3607 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3608 | |||
3609 | |||
3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
3611 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
3612 | if ${ac_cv_path_GREP+:} false; then : | ||
3613 | $as_echo_n "(cached) " >&6 | ||
3614 | else | ||
3615 | if test -z "$GREP"; then | ||
3616 | ac_path_GREP_found=false | ||
3617 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3619 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3620 | do | ||
3621 | IFS=$as_save_IFS | ||
3622 | test -z "$as_dir" && as_dir=. | ||
3623 | for ac_prog in grep ggrep; do | ||
3624 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3625 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3626 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3627 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3628 | # Check for GNU $ac_path_GREP | ||
3629 | case `"$ac_path_GREP" --version 2>&1` in | ||
3630 | *GNU*) | ||
3631 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3632 | *) | ||
3633 | ac_count=0 | ||
3634 | $as_echo_n 0123456789 >"conftest.in" | ||
3635 | while : | ||
3636 | do | ||
3637 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3638 | mv "conftest.tmp" "conftest.in" | ||
3639 | cp "conftest.in" "conftest.nl" | ||
3640 | $as_echo 'GREP' >> "conftest.nl" | ||
3641 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3642 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3643 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3644 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3645 | # Best one so far, save it but keep looking for a better one | ||
3646 | ac_cv_path_GREP="$ac_path_GREP" | ||
3647 | ac_path_GREP_max=$ac_count | ||
3648 | fi | ||
3649 | # 10*(2^10) chars as input seems more than enough | ||
3650 | test $ac_count -gt 10 && break | ||
3651 | done | ||
3652 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3653 | esac | ||
3654 | |||
3655 | $ac_path_GREP_found && break 3 | ||
3656 | done | ||
3657 | done | ||
3658 | done | ||
3659 | IFS=$as_save_IFS | ||
3660 | if test -z "$ac_cv_path_GREP"; then | ||
3661 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3662 | fi | ||
3663 | else | ||
3664 | ac_cv_path_GREP=$GREP | ||
3665 | fi | ||
3666 | |||
3667 | fi | ||
3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
3669 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
3670 | GREP="$ac_cv_path_GREP" | ||
3671 | |||
3672 | |||
3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
3674 | $as_echo_n "checking for egrep... " >&6; } | ||
3675 | if ${ac_cv_path_EGREP+:} false; then : | ||
3676 | $as_echo_n "(cached) " >&6 | ||
3677 | else | ||
3678 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3679 | then ac_cv_path_EGREP="$GREP -E" | ||
3680 | else | ||
3681 | if test -z "$EGREP"; then | ||
3682 | ac_path_EGREP_found=false | ||
3683 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3685 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3686 | do | ||
3687 | IFS=$as_save_IFS | ||
3688 | test -z "$as_dir" && as_dir=. | ||
3689 | for ac_prog in egrep; do | ||
3690 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3691 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3692 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3693 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3694 | # Check for GNU $ac_path_EGREP | ||
3695 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3696 | *GNU*) | ||
3697 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3698 | *) | ||
3699 | ac_count=0 | ||
3700 | $as_echo_n 0123456789 >"conftest.in" | ||
3701 | while : | ||
3702 | do | ||
3703 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3704 | mv "conftest.tmp" "conftest.in" | ||
3705 | cp "conftest.in" "conftest.nl" | ||
3706 | $as_echo 'EGREP' >> "conftest.nl" | ||
3707 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3708 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3709 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3710 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3711 | # Best one so far, save it but keep looking for a better one | ||
3712 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3713 | ac_path_EGREP_max=$ac_count | ||
3714 | fi | ||
3715 | # 10*(2^10) chars as input seems more than enough | ||
3716 | test $ac_count -gt 10 && break | ||
3717 | done | ||
3718 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3719 | esac | ||
3720 | |||
3721 | $ac_path_EGREP_found && break 3 | ||
3722 | done | ||
3723 | done | ||
3724 | done | ||
3725 | IFS=$as_save_IFS | ||
3726 | if test -z "$ac_cv_path_EGREP"; then | ||
3727 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3728 | fi | ||
3729 | else | ||
3730 | ac_cv_path_EGREP=$EGREP | ||
3731 | fi | ||
3732 | |||
3733 | fi | ||
3734 | fi | ||
3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
3736 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
3737 | EGREP="$ac_cv_path_EGREP" | ||
3738 | |||
3739 | |||
3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
3741 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
3742 | if ${ac_cv_header_stdc+:} false; then : | ||
3743 | $as_echo_n "(cached) " >&6 | ||
3744 | else | ||
3745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3746 | /* end confdefs.h. */ | ||
3747 | #include <stdlib.h> | ||
3748 | #include <stdarg.h> | ||
3749 | #include <string.h> | ||
3750 | #include <float.h> | ||
3751 | |||
3752 | int | ||
3753 | main () | ||
3754 | { | ||
3755 | |||
3756 | ; | ||
3757 | return 0; | ||
3758 | } | ||
3759 | _ACEOF | ||
3760 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3761 | ac_cv_header_stdc=yes | ||
3762 | else | ||
3763 | ac_cv_header_stdc=no | ||
3764 | fi | ||
3765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3766 | |||
3767 | if test $ac_cv_header_stdc = yes; then | ||
3768 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3770 | /* end confdefs.h. */ | ||
3771 | #include <string.h> | ||
3772 | |||
3773 | _ACEOF | ||
3774 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3775 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
3776 | |||
3777 | else | ||
3778 | ac_cv_header_stdc=no | ||
3779 | fi | ||
3780 | rm -f conftest* | ||
3781 | |||
3782 | fi | ||
3783 | |||
3784 | if test $ac_cv_header_stdc = yes; then | ||
3785 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3787 | /* end confdefs.h. */ | ||
3788 | #include <stdlib.h> | ||
3789 | |||
3790 | _ACEOF | ||
3791 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3792 | $EGREP "free" >/dev/null 2>&1; then : | ||
3793 | |||
3794 | else | ||
3795 | ac_cv_header_stdc=no | ||
3796 | fi | ||
3797 | rm -f conftest* | ||
3798 | |||
3799 | fi | ||
3800 | |||
3801 | if test $ac_cv_header_stdc = yes; then | ||
3802 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3803 | if test "$cross_compiling" = yes; then : | ||
3804 | : | ||
3805 | else | ||
3806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3807 | /* end confdefs.h. */ | ||
3808 | #include <ctype.h> | ||
3809 | #include <stdlib.h> | ||
3810 | #if ((' ' & 0x0FF) == 0x020) | ||
3811 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3812 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3813 | #else | ||
3814 | # define ISLOWER(c) \ | ||
3815 | (('a' <= (c) && (c) <= 'i') \ | ||
3816 | || ('j' <= (c) && (c) <= 'r') \ | ||
3817 | || ('s' <= (c) && (c) <= 'z')) | ||
3818 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3819 | #endif | ||
3820 | |||
3821 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3822 | int | ||
3823 | main () | ||
3824 | { | ||
3825 | int i; | ||
3826 | for (i = 0; i < 256; i++) | ||
3827 | if (XOR (islower (i), ISLOWER (i)) | ||
3828 | || toupper (i) != TOUPPER (i)) | ||
3829 | return 2; | ||
3830 | return 0; | ||
3831 | } | ||
3832 | _ACEOF | ||
3833 | if ac_fn_c_try_run "$LINENO"; then : | ||
3834 | |||
3835 | else | ||
3836 | ac_cv_header_stdc=no | ||
3837 | fi | ||
3838 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3839 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3840 | fi | ||
3841 | |||
3842 | fi | ||
3843 | fi | ||
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
3845 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
3846 | if test $ac_cv_header_stdc = yes; then | ||
3847 | |||
3848 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
3849 | |||
3850 | fi | ||
3851 | |||
3852 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3853 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3854 | inttypes.h stdint.h unistd.h | ||
3855 | do : | ||
3856 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3857 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
3858 | " | ||
3859 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
3860 | cat >>confdefs.h <<_ACEOF | ||
3861 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3862 | _ACEOF | ||
3863 | |||
3864 | fi | ||
3865 | |||
3866 | done | ||
3867 | |||
3868 | |||
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
3870 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
3871 | if ${ac_cv_c_bigendian+:} false; then : | ||
3872 | $as_echo_n "(cached) " >&6 | ||
3873 | else | ||
3874 | ac_cv_c_bigendian=unknown | ||
3875 | # See if we're dealing with a universal compiler. | ||
3876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3877 | /* end confdefs.h. */ | ||
3878 | #ifndef __APPLE_CC__ | ||
3879 | not a universal capable compiler | ||
3880 | #endif | ||
3881 | typedef int dummy; | ||
3882 | |||
3883 | _ACEOF | ||
3884 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3885 | |||
3886 | # Check for potential -arch flags. It is not universal unless | ||
3887 | # there are at least two -arch flags with different values. | ||
3888 | ac_arch= | ||
3889 | ac_prev= | ||
3890 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
3891 | if test -n "$ac_prev"; then | ||
3892 | case $ac_word in | ||
3893 | i?86 | x86_64 | ppc | ppc64) | ||
3894 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
3895 | ac_arch=$ac_word | ||
3896 | else | ||
3897 | ac_cv_c_bigendian=universal | ||
3898 | break | ||
3899 | fi | ||
3900 | ;; | ||
3901 | esac | ||
3902 | ac_prev= | ||
3903 | elif test "x$ac_word" = "x-arch"; then | ||
3904 | ac_prev=arch | ||
3905 | fi | ||
3906 | done | ||
3907 | fi | ||
3908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3909 | if test $ac_cv_c_bigendian = unknown; then | ||
3910 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3912 | /* end confdefs.h. */ | ||
3913 | #include <sys/types.h> | ||
3914 | #include <sys/param.h> | ||
3915 | |||
3916 | int | ||
3917 | main () | ||
3918 | { | ||
3919 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
3920 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
3921 | && LITTLE_ENDIAN) | ||
3922 | bogus endian macros | ||
3923 | #endif | ||
3924 | |||
3925 | ; | ||
3926 | return 0; | ||
3927 | } | ||
3928 | _ACEOF | ||
3929 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3930 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3932 | /* end confdefs.h. */ | ||
3933 | #include <sys/types.h> | ||
3934 | #include <sys/param.h> | ||
3935 | |||
3936 | int | ||
3937 | main () | ||
3938 | { | ||
3939 | #if BYTE_ORDER != BIG_ENDIAN | ||
3940 | not big endian | ||
3941 | #endif | ||
3942 | |||
3943 | ; | ||
3944 | return 0; | ||
3945 | } | ||
3946 | _ACEOF | ||
3947 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3948 | ac_cv_c_bigendian=yes | ||
3949 | else | ||
3950 | ac_cv_c_bigendian=no | ||
3951 | fi | ||
3952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3953 | fi | ||
3954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3955 | fi | ||
3956 | if test $ac_cv_c_bigendian = unknown; then | ||
3957 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
3958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3959 | /* end confdefs.h. */ | ||
3960 | #include <limits.h> | ||
3961 | |||
3962 | int | ||
3963 | main () | ||
3964 | { | ||
3965 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
3966 | bogus endian macros | ||
3967 | #endif | ||
3968 | |||
3969 | ; | ||
3970 | return 0; | ||
3971 | } | ||
3972 | _ACEOF | ||
3973 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3974 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
3975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3976 | /* end confdefs.h. */ | ||
3977 | #include <limits.h> | ||
3978 | |||
3979 | int | ||
3980 | main () | ||
3981 | { | ||
3982 | #ifndef _BIG_ENDIAN | ||
3983 | not big endian | ||
3984 | #endif | ||
3985 | |||
3986 | ; | ||
3987 | return 0; | ||
3988 | } | ||
3989 | _ACEOF | ||
3990 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3991 | ac_cv_c_bigendian=yes | ||
3992 | else | ||
3993 | ac_cv_c_bigendian=no | ||
3994 | fi | ||
3995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3996 | fi | ||
3997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3998 | fi | ||
3999 | if test $ac_cv_c_bigendian = unknown; then | ||
4000 | # Compile a test program. | ||
4001 | if test "$cross_compiling" = yes; then : | ||
4002 | # Try to guess by grepping values from an object file. | ||
4003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4004 | /* end confdefs.h. */ | ||
4005 | short int ascii_mm[] = | ||
4006 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
4007 | short int ascii_ii[] = | ||
4008 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
4009 | int use_ascii (int i) { | ||
4010 | return ascii_mm[i] + ascii_ii[i]; | ||
4011 | } | ||
4012 | short int ebcdic_ii[] = | ||
4013 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
4014 | short int ebcdic_mm[] = | ||
4015 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
4016 | int use_ebcdic (int i) { | ||
4017 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
4018 | } | ||
4019 | extern int foo; | ||
4020 | |||
4021 | int | ||
4022 | main () | ||
4023 | { | ||
4024 | return use_ascii (foo) == use_ebcdic (foo); | ||
4025 | ; | ||
4026 | return 0; | ||
4027 | } | ||
4028 | _ACEOF | ||
4029 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4030 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
4031 | ac_cv_c_bigendian=yes | ||
4032 | fi | ||
4033 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
4034 | if test "$ac_cv_c_bigendian" = unknown; then | ||
4035 | ac_cv_c_bigendian=no | ||
4036 | else | ||
4037 | # finding both strings is unlikely to happen, but who knows? | ||
4038 | ac_cv_c_bigendian=unknown | ||
4039 | fi | ||
4040 | fi | ||
4041 | fi | ||
4042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4043 | else | ||
4044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4045 | /* end confdefs.h. */ | ||
4046 | $ac_includes_default | ||
4047 | int | ||
4048 | main () | ||
4049 | { | ||
4050 | |||
4051 | /* Are we little or big endian? From Harbison&Steele. */ | ||
4052 | union | ||
4053 | { | ||
4054 | long int l; | ||
4055 | char c[sizeof (long int)]; | ||
4056 | } u; | ||
4057 | u.l = 1; | ||
4058 | return u.c[sizeof (long int) - 1] == 1; | ||
4059 | |||
4060 | ; | ||
4061 | return 0; | ||
4062 | } | ||
4063 | _ACEOF | ||
4064 | if ac_fn_c_try_run "$LINENO"; then : | ||
4065 | ac_cv_c_bigendian=no | ||
4066 | else | ||
4067 | ac_cv_c_bigendian=yes | ||
4068 | fi | ||
4069 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
4070 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
4071 | fi | ||
4072 | |||
4073 | fi | ||
4074 | fi | ||
4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
4076 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
4077 | case $ac_cv_c_bigendian in #( | ||
4078 | yes) | ||
4079 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
4080 | ;; #( | ||
4081 | no) | ||
4082 | ;; #( | ||
4083 | universal) | ||
4084 | |||
4085 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
4086 | |||
4087 | ;; #( | ||
4088 | *) | ||
4089 | as_fn_error $? "unknown endianness | ||
4090 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
4091 | esac | ||
4092 | |||
4093 | |||
4094 | # Checks for programs. | ||
4095 | for ac_prog in gawk mawk nawk awk | ||
4096 | do | ||
4097 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4098 | set dummy $ac_prog; ac_word=$2 | ||
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4100 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4101 | if ${ac_cv_prog_AWK+:} false; then : | ||
4102 | $as_echo_n "(cached) " >&6 | ||
4103 | else | ||
4104 | if test -n "$AWK"; then | ||
4105 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
4106 | else | ||
4107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4108 | for as_dir in $PATH | ||
4109 | do | ||
4110 | IFS=$as_save_IFS | ||
4111 | test -z "$as_dir" && as_dir=. | ||
4112 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4114 | ac_cv_prog_AWK="$ac_prog" | ||
4115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4116 | break 2 | ||
4117 | fi | ||
4118 | done | ||
4119 | done | ||
4120 | IFS=$as_save_IFS | ||
4121 | |||
4122 | fi | ||
4123 | fi | ||
4124 | AWK=$ac_cv_prog_AWK | ||
4125 | if test -n "$AWK"; then | ||
4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
4127 | $as_echo "$AWK" >&6; } | ||
4128 | else | ||
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4130 | $as_echo "no" >&6; } | ||
4131 | fi | ||
4132 | |||
4133 | |||
4134 | test -n "$AWK" && break | ||
4135 | done | ||
4136 | |||
4137 | ac_ext=c | ||
4138 | ac_cpp='$CPP $CPPFLAGS' | ||
4139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
4143 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
4144 | # On Suns, sometimes $CPP names a directory. | ||
4145 | if test -n "$CPP" && test -d "$CPP"; then | ||
4146 | CPP= | ||
4147 | fi | ||
4148 | if test -z "$CPP"; then | ||
4149 | if ${ac_cv_prog_CPP+:} false; then : | ||
4150 | $as_echo_n "(cached) " >&6 | ||
4151 | else | ||
4152 | # Double quotes because CPP needs to be expanded | ||
4153 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4154 | do | ||
4155 | ac_preproc_ok=false | ||
4156 | for ac_c_preproc_warn_flag in '' yes | ||
4157 | do | ||
4158 | # Use a header file that comes with gcc, so configuring glibc | ||
4159 | # with a fresh cross-compiler works. | ||
4160 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4161 | # <limits.h> exists even on freestanding compilers. | ||
4162 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4163 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4165 | /* end confdefs.h. */ | ||
4166 | #ifdef __STDC__ | ||
4167 | # include <limits.h> | ||
4168 | #else | ||
4169 | # include <assert.h> | ||
4170 | #endif | ||
4171 | Syntax error | ||
4172 | _ACEOF | ||
4173 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4174 | |||
4175 | else | ||
4176 | # Broken: fails on valid input. | ||
4177 | continue | ||
4178 | fi | ||
4179 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4180 | |||
4181 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4182 | # can be detected and how. | ||
4183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4184 | /* end confdefs.h. */ | ||
4185 | #include <ac_nonexistent.h> | ||
4186 | _ACEOF | ||
4187 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4188 | # Broken: success on invalid input. | ||
4189 | continue | ||
4190 | else | ||
4191 | # Passes both tests. | ||
4192 | ac_preproc_ok=: | ||
4193 | break | ||
4194 | fi | ||
4195 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4196 | |||
4197 | done | ||
4198 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4199 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4200 | if $ac_preproc_ok; then : | ||
4201 | break | ||
4202 | fi | ||
4203 | |||
4204 | done | ||
4205 | ac_cv_prog_CPP=$CPP | ||
4206 | |||
4207 | fi | ||
4208 | CPP=$ac_cv_prog_CPP | ||
4209 | else | ||
4210 | ac_cv_prog_CPP=$CPP | ||
4211 | fi | ||
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
4213 | $as_echo "$CPP" >&6; } | ||
4214 | ac_preproc_ok=false | ||
4215 | for ac_c_preproc_warn_flag in '' yes | ||
4216 | do | ||
4217 | # Use a header file that comes with gcc, so configuring glibc | ||
4218 | # with a fresh cross-compiler works. | ||
4219 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4220 | # <limits.h> exists even on freestanding compilers. | ||
4221 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4222 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4224 | /* end confdefs.h. */ | ||
4225 | #ifdef __STDC__ | ||
4226 | # include <limits.h> | ||
4227 | #else | ||
4228 | # include <assert.h> | ||
4229 | #endif | ||
4230 | Syntax error | ||
4231 | _ACEOF | ||
4232 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4233 | |||
4234 | else | ||
4235 | # Broken: fails on valid input. | ||
4236 | continue | ||
4237 | fi | ||
4238 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4239 | |||
4240 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4241 | # can be detected and how. | ||
4242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4243 | /* end confdefs.h. */ | ||
4244 | #include <ac_nonexistent.h> | ||
4245 | _ACEOF | ||
4246 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4247 | # Broken: success on invalid input. | ||
4248 | continue | ||
4249 | else | ||
4250 | # Passes both tests. | ||
4251 | ac_preproc_ok=: | ||
4252 | break | ||
4253 | fi | ||
4254 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4255 | |||
4256 | done | ||
4257 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4258 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4259 | if $ac_preproc_ok; then : | ||
4260 | |||
4261 | else | ||
4262 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4263 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4264 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
4265 | See \`config.log' for more details" "$LINENO" 5; } | ||
4266 | fi | ||
4267 | |||
4268 | ac_ext=c | ||
4269 | ac_cpp='$CPP $CPPFLAGS' | ||
4270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4273 | |||
4274 | if test -n "$ac_tool_prefix"; then | ||
4275 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4276 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4278 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4279 | if ${ac_cv_prog_RANLIB+:} false; then : | ||
4280 | $as_echo_n "(cached) " >&6 | ||
4281 | else | ||
4282 | if test -n "$RANLIB"; then | ||
4283 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4284 | else | ||
4285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4286 | for as_dir in $PATH | ||
4287 | do | ||
4288 | IFS=$as_save_IFS | ||
4289 | test -z "$as_dir" && as_dir=. | ||
4290 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4292 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4294 | break 2 | ||
4295 | fi | ||
4296 | done | ||
4297 | done | ||
4298 | IFS=$as_save_IFS | ||
4299 | |||
4300 | fi | ||
4301 | fi | ||
4302 | RANLIB=$ac_cv_prog_RANLIB | ||
4303 | if test -n "$RANLIB"; then | ||
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
4305 | $as_echo "$RANLIB" >&6; } | ||
4306 | else | ||
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4308 | $as_echo "no" >&6; } | ||
4309 | fi | ||
4310 | |||
4311 | |||
4312 | fi | ||
4313 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4314 | ac_ct_RANLIB=$RANLIB | ||
4315 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4316 | set dummy ranlib; ac_word=$2 | ||
4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4318 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4319 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | ||
4320 | $as_echo_n "(cached) " >&6 | ||
4321 | else | ||
4322 | if test -n "$ac_ct_RANLIB"; then | ||
4323 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4324 | else | ||
4325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4326 | for as_dir in $PATH | ||
4327 | do | ||
4328 | IFS=$as_save_IFS | ||
4329 | test -z "$as_dir" && as_dir=. | ||
4330 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4332 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4334 | break 2 | ||
4335 | fi | ||
4336 | done | ||
4337 | done | ||
4338 | IFS=$as_save_IFS | ||
4339 | |||
4340 | fi | ||
4341 | fi | ||
4342 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4343 | if test -n "$ac_ct_RANLIB"; then | ||
4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
4345 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
4346 | else | ||
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4348 | $as_echo "no" >&6; } | ||
4349 | fi | ||
4350 | |||
4351 | if test "x$ac_ct_RANLIB" = x; then | ||
4352 | RANLIB=":" | ||
4353 | else | ||
4354 | case $cross_compiling:$ac_tool_warned in | ||
4355 | yes:) | ||
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4357 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4358 | ac_tool_warned=yes ;; | ||
4359 | esac | ||
4360 | RANLIB=$ac_ct_RANLIB | ||
4361 | fi | ||
4362 | else | ||
4363 | RANLIB="$ac_cv_prog_RANLIB" | ||
4364 | fi | ||
4365 | |||
4366 | # Find a good install program. We prefer a C program (faster), | ||
4367 | # so one script is as good as another. But avoid the broken or | ||
4368 | # incompatible versions: | ||
4369 | # SysV /etc/install, /usr/sbin/install | ||
4370 | # SunOS /usr/etc/install | ||
4371 | # IRIX /sbin/install | ||
4372 | # AIX /bin/install | ||
4373 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4374 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4375 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4376 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4377 | # OS/2's system install, which has a completely different semantic | ||
4378 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4379 | # Reject install programs that cannot install multiple files. | ||
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
4381 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
4382 | if test -z "$INSTALL"; then | ||
4383 | if ${ac_cv_path_install+:} false; then : | ||
4384 | $as_echo_n "(cached) " >&6 | ||
4385 | else | ||
4386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4387 | for as_dir in $PATH | ||
4388 | do | ||
4389 | IFS=$as_save_IFS | ||
4390 | test -z "$as_dir" && as_dir=. | ||
4391 | # Account for people who put trailing slashes in PATH elements. | ||
4392 | case $as_dir/ in #(( | ||
4393 | ./ | .// | /[cC]/* | \ | ||
4394 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4395 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
4396 | /usr/ucb/* ) ;; | ||
4397 | *) | ||
4398 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4399 | # Don't use installbsd from OSF since it installs stuff as root | ||
4400 | # by default. | ||
4401 | for ac_prog in ginstall scoinst install; do | ||
4402 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4403 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4404 | if test $ac_prog = install && | ||
4405 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4406 | # AIX install. It has an incompatible calling convention. | ||
4407 | : | ||
4408 | elif test $ac_prog = install && | ||
4409 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4410 | # program-specific install script used by HP pwplus--don't use. | ||
4411 | : | ||
4412 | else | ||
4413 | rm -rf conftest.one conftest.two conftest.dir | ||
4414 | echo one > conftest.one | ||
4415 | echo two > conftest.two | ||
4416 | mkdir conftest.dir | ||
4417 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
4418 | test -s conftest.one && test -s conftest.two && | ||
4419 | test -s conftest.dir/conftest.one && | ||
4420 | test -s conftest.dir/conftest.two | ||
4421 | then | ||
4422 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4423 | break 3 | ||
4424 | fi | ||
4425 | fi | ||
4426 | fi | ||
4427 | done | ||
4428 | done | ||
4429 | ;; | ||
4430 | esac | ||
4431 | |||
4432 | done | ||
4433 | IFS=$as_save_IFS | ||
4434 | |||
4435 | rm -rf conftest.one conftest.two conftest.dir | ||
4436 | |||
4437 | fi | ||
4438 | if test "${ac_cv_path_install+set}" = set; then | ||
4439 | INSTALL=$ac_cv_path_install | ||
4440 | else | ||
4441 | # As a last resort, use the slow shell script. Don't cache a | ||
4442 | # value for INSTALL within a source directory, because that will | ||
4443 | # break other packages using the cache if that directory is | ||
4444 | # removed, or if the value is a relative name. | ||
4445 | INSTALL=$ac_install_sh | ||
4446 | fi | ||
4447 | fi | ||
4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
4449 | $as_echo "$INSTALL" >&6; } | ||
4450 | |||
4451 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4452 | # It thinks the first close brace ends the variable substitution. | ||
4453 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4454 | |||
4455 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4456 | |||
4457 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4458 | |||
4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4460 | $as_echo_n "checking for egrep... " >&6; } | ||
4461 | if ${ac_cv_path_EGREP+:} false; then : | ||
4462 | $as_echo_n "(cached) " >&6 | ||
4463 | else | ||
4464 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4465 | then ac_cv_path_EGREP="$GREP -E" | ||
4466 | else | ||
4467 | if test -z "$EGREP"; then | ||
4468 | ac_path_EGREP_found=false | ||
4469 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4471 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4472 | do | ||
4473 | IFS=$as_save_IFS | ||
4474 | test -z "$as_dir" && as_dir=. | ||
4475 | for ac_prog in egrep; do | ||
4476 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4477 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4478 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4479 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4480 | # Check for GNU $ac_path_EGREP | ||
4481 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4482 | *GNU*) | ||
4483 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4484 | *) | ||
4485 | ac_count=0 | ||
4486 | $as_echo_n 0123456789 >"conftest.in" | ||
4487 | while : | ||
4488 | do | ||
4489 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4490 | mv "conftest.tmp" "conftest.in" | ||
4491 | cp "conftest.in" "conftest.nl" | ||
4492 | $as_echo 'EGREP' >> "conftest.nl" | ||
4493 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4494 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4495 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4496 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4497 | # Best one so far, save it but keep looking for a better one | ||
4498 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4499 | ac_path_EGREP_max=$ac_count | ||
4500 | fi | ||
4501 | # 10*(2^10) chars as input seems more than enough | ||
4502 | test $ac_count -gt 10 && break | ||
4503 | done | ||
4504 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4505 | esac | ||
4506 | |||
4507 | $ac_path_EGREP_found && break 3 | ||
4508 | done | ||
4509 | done | ||
4510 | done | ||
4511 | IFS=$as_save_IFS | ||
4512 | if test -z "$ac_cv_path_EGREP"; then | ||
4513 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4514 | fi | ||
4515 | else | ||
4516 | ac_cv_path_EGREP=$EGREP | ||
4517 | fi | ||
4518 | |||
4519 | fi | ||
4520 | fi | ||
4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4522 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4523 | EGREP="$ac_cv_path_EGREP" | ||
4524 | |||
4525 | |||
4526 | # Extract the first word of "ar", so it can be a program name with args. | ||
4527 | set dummy ar; ac_word=$2 | ||
4528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4529 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4530 | if ${ac_cv_path_AR+:} false; then : | ||
4531 | $as_echo_n "(cached) " >&6 | ||
4532 | else | ||
4533 | case $AR in | ||
4534 | [\\/]* | ?:[\\/]*) | ||
4535 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
4536 | ;; | ||
4537 | *) | ||
4538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4539 | for as_dir in $PATH | ||
4540 | do | ||
4541 | IFS=$as_save_IFS | ||
4542 | test -z "$as_dir" && as_dir=. | ||
4543 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4544 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4545 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
4546 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4547 | break 2 | ||
4548 | fi | ||
4549 | done | ||
4550 | done | ||
4551 | IFS=$as_save_IFS | ||
4552 | |||
4553 | ;; | ||
4554 | esac | ||
4555 | fi | ||
4556 | AR=$ac_cv_path_AR | ||
4557 | if test -n "$AR"; then | ||
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
4559 | $as_echo "$AR" >&6; } | ||
4560 | else | ||
4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4562 | $as_echo "no" >&6; } | ||
4563 | fi | ||
4564 | |||
4565 | |||
4566 | # Extract the first word of "cat", so it can be a program name with args. | ||
4567 | set dummy cat; ac_word=$2 | ||
4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4569 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4570 | if ${ac_cv_path_CAT+:} false; then : | ||
4571 | $as_echo_n "(cached) " >&6 | ||
4572 | else | ||
4573 | case $CAT in | ||
4574 | [\\/]* | ?:[\\/]*) | ||
4575 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4576 | ;; | ||
4577 | *) | ||
4578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4579 | for as_dir in $PATH | ||
4580 | do | ||
4581 | IFS=$as_save_IFS | ||
4582 | test -z "$as_dir" && as_dir=. | ||
4583 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4585 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4587 | break 2 | ||
4588 | fi | ||
4589 | done | ||
4590 | done | ||
4591 | IFS=$as_save_IFS | ||
4592 | |||
4593 | ;; | ||
4594 | esac | ||
4595 | fi | ||
4596 | CAT=$ac_cv_path_CAT | ||
4597 | if test -n "$CAT"; then | ||
4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 | ||
4599 | $as_echo "$CAT" >&6; } | ||
4600 | else | ||
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4602 | $as_echo "no" >&6; } | ||
4603 | fi | ||
4604 | |||
4605 | |||
4606 | # Extract the first word of "kill", so it can be a program name with args. | ||
4607 | set dummy kill; ac_word=$2 | ||
4608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4609 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4610 | if ${ac_cv_path_KILL+:} false; then : | ||
4611 | $as_echo_n "(cached) " >&6 | ||
4612 | else | ||
4613 | case $KILL in | ||
4614 | [\\/]* | ?:[\\/]*) | ||
4615 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4616 | ;; | ||
4617 | *) | ||
4618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4619 | for as_dir in $PATH | ||
4620 | do | ||
4621 | IFS=$as_save_IFS | ||
4622 | test -z "$as_dir" && as_dir=. | ||
4623 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4625 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4627 | break 2 | ||
4628 | fi | ||
4629 | done | ||
4630 | done | ||
4631 | IFS=$as_save_IFS | ||
4632 | |||
4633 | ;; | ||
4634 | esac | ||
4635 | fi | ||
4636 | KILL=$ac_cv_path_KILL | ||
4637 | if test -n "$KILL"; then | ||
4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 | ||
4639 | $as_echo "$KILL" >&6; } | ||
4640 | else | ||
4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4642 | $as_echo "no" >&6; } | ||
4643 | fi | ||
4644 | |||
4645 | |||
4646 | for ac_prog in perl5 perl | ||
4647 | do | ||
4648 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4649 | set dummy $ac_prog; ac_word=$2 | ||
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4651 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4652 | if ${ac_cv_path_PERL+:} false; then : | ||
4653 | $as_echo_n "(cached) " >&6 | ||
4654 | else | ||
4655 | case $PERL in | ||
4656 | [\\/]* | ?:[\\/]*) | ||
4657 | ac_cv_path_PERL="$PERL" # 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_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4668 | $as_echo "$as_me:${as_lineno-$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 | PERL=$ac_cv_path_PERL | ||
4679 | if test -n "$PERL"; then | ||
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | ||
4681 | $as_echo "$PERL" >&6; } | ||
4682 | else | ||
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4684 | $as_echo "no" >&6; } | ||
4685 | fi | ||
4686 | |||
4687 | |||
4688 | test -n "$PERL" && break | ||
4689 | done | ||
4690 | |||
4691 | # Extract the first word of "sed", so it can be a program name with args. | ||
4692 | set dummy sed; ac_word=$2 | ||
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4694 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4695 | if ${ac_cv_path_SED+:} false; then : | ||
4696 | $as_echo_n "(cached) " >&6 | ||
4697 | else | ||
4698 | case $SED in | ||
4699 | [\\/]* | ?:[\\/]*) | ||
4700 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4701 | ;; | ||
4702 | *) | ||
4703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4704 | for as_dir in $PATH | ||
4705 | do | ||
4706 | IFS=$as_save_IFS | ||
4707 | test -z "$as_dir" && as_dir=. | ||
4708 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4709 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4710 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4712 | break 2 | ||
4713 | fi | ||
4714 | done | ||
4715 | done | ||
4716 | IFS=$as_save_IFS | ||
4717 | |||
4718 | ;; | ||
4719 | esac | ||
4720 | fi | ||
4721 | SED=$ac_cv_path_SED | ||
4722 | if test -n "$SED"; then | ||
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | ||
4724 | $as_echo "$SED" >&6; } | ||
4725 | else | ||
4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4727 | $as_echo "no" >&6; } | ||
4728 | fi | ||
4729 | |||
4730 | |||
4731 | |||
4732 | # Extract the first word of "ent", so it can be a program name with args. | ||
4733 | set dummy ent; ac_word=$2 | ||
4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4735 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4736 | if ${ac_cv_path_ENT+:} false; then : | ||
4737 | $as_echo_n "(cached) " >&6 | ||
4738 | else | ||
4739 | case $ENT in | ||
4740 | [\\/]* | ?:[\\/]*) | ||
4741 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4742 | ;; | ||
4743 | *) | ||
4744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4745 | for as_dir in $PATH | ||
4746 | do | ||
4747 | IFS=$as_save_IFS | ||
4748 | test -z "$as_dir" && as_dir=. | ||
4749 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4751 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4753 | break 2 | ||
4754 | fi | ||
4755 | done | ||
4756 | done | ||
4757 | IFS=$as_save_IFS | ||
4758 | |||
4759 | ;; | ||
4760 | esac | ||
4761 | fi | ||
4762 | ENT=$ac_cv_path_ENT | ||
4763 | if test -n "$ENT"; then | ||
4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 | ||
4765 | $as_echo "$ENT" >&6; } | ||
4766 | else | ||
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4768 | $as_echo "no" >&6; } | ||
4769 | fi | ||
4770 | |||
4771 | |||
4772 | |||
4773 | # Extract the first word of "bash", so it can be a program name with args. | ||
4774 | set dummy bash; ac_word=$2 | ||
4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4776 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4777 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4778 | $as_echo_n "(cached) " >&6 | ||
4779 | else | ||
4780 | case $TEST_MINUS_S_SH in | ||
4781 | [\\/]* | ?:[\\/]*) | ||
4782 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4783 | ;; | ||
4784 | *) | ||
4785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4786 | for as_dir in $PATH | ||
4787 | do | ||
4788 | IFS=$as_save_IFS | ||
4789 | test -z "$as_dir" && as_dir=. | ||
4790 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4792 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4794 | break 2 | ||
4795 | fi | ||
4796 | done | ||
4797 | done | ||
4798 | IFS=$as_save_IFS | ||
4799 | |||
4800 | ;; | ||
4801 | esac | ||
4802 | fi | ||
4803 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4804 | if test -n "$TEST_MINUS_S_SH"; then | ||
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4806 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4807 | else | ||
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4809 | $as_echo "no" >&6; } | ||
4810 | fi | ||
4811 | |||
4812 | |||
4813 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4814 | set dummy ksh; ac_word=$2 | ||
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4816 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4817 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4818 | $as_echo_n "(cached) " >&6 | ||
4819 | else | ||
4820 | case $TEST_MINUS_S_SH in | ||
4821 | [\\/]* | ?:[\\/]*) | ||
4822 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4823 | ;; | ||
4824 | *) | ||
4825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4826 | for as_dir in $PATH | ||
4827 | do | ||
4828 | IFS=$as_save_IFS | ||
4829 | test -z "$as_dir" && as_dir=. | ||
4830 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4832 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4834 | break 2 | ||
4835 | fi | ||
4836 | done | ||
4837 | done | ||
4838 | IFS=$as_save_IFS | ||
4839 | |||
4840 | ;; | ||
4841 | esac | ||
4842 | fi | ||
4843 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4844 | if test -n "$TEST_MINUS_S_SH"; then | ||
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4846 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4847 | else | ||
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4849 | $as_echo "no" >&6; } | ||
4850 | fi | ||
4851 | |||
4852 | |||
4853 | # Extract the first word of "sh", so it can be a program name with args. | ||
4854 | set dummy sh; ac_word=$2 | ||
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4856 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4857 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4858 | $as_echo_n "(cached) " >&6 | ||
4859 | else | ||
4860 | case $TEST_MINUS_S_SH in | ||
4861 | [\\/]* | ?:[\\/]*) | ||
4862 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4863 | ;; | ||
4864 | *) | ||
4865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4866 | for as_dir in $PATH | ||
4867 | do | ||
4868 | IFS=$as_save_IFS | ||
4869 | test -z "$as_dir" && as_dir=. | ||
4870 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4872 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4874 | break 2 | ||
4875 | fi | ||
4876 | done | ||
4877 | done | ||
4878 | IFS=$as_save_IFS | ||
4879 | |||
4880 | ;; | ||
4881 | esac | ||
4882 | fi | ||
4883 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4884 | if test -n "$TEST_MINUS_S_SH"; then | ||
4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4886 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4887 | else | ||
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4889 | $as_echo "no" >&6; } | ||
4890 | fi | ||
4891 | |||
4892 | |||
4893 | # Extract the first word of "sh", so it can be a program name with args. | ||
4894 | set dummy sh; ac_word=$2 | ||
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4896 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4897 | if ${ac_cv_path_SH+:} false; then : | ||
4898 | $as_echo_n "(cached) " >&6 | ||
4899 | else | ||
4900 | case $SH in | ||
4901 | [\\/]* | ?:[\\/]*) | ||
4902 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4903 | ;; | ||
4904 | *) | ||
4905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4906 | for as_dir in $PATH | ||
4907 | do | ||
4908 | IFS=$as_save_IFS | ||
4909 | test -z "$as_dir" && as_dir=. | ||
4910 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4912 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4914 | break 2 | ||
4915 | fi | ||
4916 | done | ||
4917 | done | ||
4918 | IFS=$as_save_IFS | ||
4919 | |||
4920 | ;; | ||
4921 | esac | ||
4922 | fi | ||
4923 | SH=$ac_cv_path_SH | ||
4924 | if test -n "$SH"; then | ||
4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 | ||
4926 | $as_echo "$SH" >&6; } | ||
4927 | else | ||
4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4929 | $as_echo "no" >&6; } | ||
4930 | fi | ||
4931 | |||
4932 | |||
4933 | # Extract the first word of "groff", so it can be a program name with args. | ||
4934 | set dummy groff; ac_word=$2 | ||
4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4936 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4937 | if ${ac_cv_path_GROFF+:} false; then : | ||
4938 | $as_echo_n "(cached) " >&6 | ||
4939 | else | ||
4940 | case $GROFF in | ||
4941 | [\\/]* | ?:[\\/]*) | ||
4942 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | ||
4943 | ;; | ||
4944 | *) | ||
4945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4946 | for as_dir in $PATH | ||
4947 | do | ||
4948 | IFS=$as_save_IFS | ||
4949 | test -z "$as_dir" && as_dir=. | ||
4950 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4952 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4954 | break 2 | ||
4955 | fi | ||
4956 | done | ||
4957 | done | ||
4958 | IFS=$as_save_IFS | ||
4959 | |||
4960 | ;; | ||
4961 | esac | ||
4962 | fi | ||
4963 | GROFF=$ac_cv_path_GROFF | ||
4964 | if test -n "$GROFF"; then | ||
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 | ||
4966 | $as_echo "$GROFF" >&6; } | ||
4967 | else | ||
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4969 | $as_echo "no" >&6; } | ||
4970 | fi | ||
4971 | |||
4972 | |||
4973 | # Extract the first word of "nroff", so it can be a program name with args. | ||
4974 | set dummy nroff; ac_word=$2 | ||
4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4976 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4977 | if ${ac_cv_path_NROFF+:} false; then : | ||
4978 | $as_echo_n "(cached) " >&6 | ||
4979 | else | ||
4980 | case $NROFF in | ||
4981 | [\\/]* | ?:[\\/]*) | ||
4982 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
4983 | ;; | ||
4984 | *) | ||
4985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4986 | for as_dir in $PATH | ||
4987 | do | ||
4988 | IFS=$as_save_IFS | ||
4989 | test -z "$as_dir" && as_dir=. | ||
4990 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4992 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4994 | break 2 | ||
4995 | fi | ||
4996 | done | ||
4997 | done | ||
4998 | IFS=$as_save_IFS | ||
4999 | |||
5000 | ;; | ||
5001 | esac | ||
5002 | fi | ||
5003 | NROFF=$ac_cv_path_NROFF | ||
5004 | if test -n "$NROFF"; then | ||
5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
5006 | $as_echo "$NROFF" >&6; } | ||
5007 | else | ||
5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5009 | $as_echo "no" >&6; } | ||
5010 | fi | ||
5011 | |||
5012 | |||
5013 | # Extract the first word of "mandoc", so it can be a program name with args. | ||
5014 | set dummy mandoc; ac_word=$2 | ||
5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5016 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5017 | if ${ac_cv_path_MANDOC+:} false; then : | ||
5018 | $as_echo_n "(cached) " >&6 | ||
5019 | else | ||
5020 | case $MANDOC in | ||
5021 | [\\/]* | ?:[\\/]*) | ||
5022 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. | ||
5023 | ;; | ||
5024 | *) | ||
5025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5026 | for as_dir in $PATH | ||
5027 | do | ||
5028 | IFS=$as_save_IFS | ||
5029 | test -z "$as_dir" && as_dir=. | ||
5030 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5032 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" | ||
5033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5034 | break 2 | ||
5035 | fi | ||
5036 | done | ||
5037 | done | ||
5038 | IFS=$as_save_IFS | ||
5039 | |||
5040 | ;; | ||
5041 | esac | ||
5042 | fi | ||
5043 | MANDOC=$ac_cv_path_MANDOC | ||
5044 | if test -n "$MANDOC"; then | ||
5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 | ||
5046 | $as_echo "$MANDOC" >&6; } | ||
5047 | else | ||
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5049 | $as_echo "no" >&6; } | ||
5050 | fi | ||
5051 | |||
5052 | |||
5053 | TEST_SHELL=sh | ||
5054 | |||
5055 | |||
5056 | if test "x$MANDOC" != "x" ; then | ||
5057 | MANFMT="$MANDOC" | ||
5058 | elif test "x$NROFF" != "x" ; then | ||
5059 | MANFMT="$NROFF -mandoc" | ||
5060 | elif test "x$GROFF" != "x" ; then | ||
5061 | MANFMT="$GROFF -mandoc -Tascii" | ||
5062 | else | ||
5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 | ||
5064 | $as_echo "$as_me: WARNING: no manpage formatted found" >&2;} | ||
5065 | MANFMT="false" | ||
5066 | fi | ||
5067 | |||
5068 | |||
5069 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
5070 | set dummy groupadd; ac_word=$2 | ||
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5072 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5073 | if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : | ||
5074 | $as_echo_n "(cached) " >&6 | ||
5075 | else | ||
5076 | case $PATH_GROUPADD_PROG in | ||
5077 | [\\/]* | ?:[\\/]*) | ||
5078 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
5079 | ;; | ||
5080 | *) | ||
5081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5082 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5083 | do | ||
5084 | IFS=$as_save_IFS | ||
5085 | test -z "$as_dir" && as_dir=. | ||
5086 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5087 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5088 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5090 | break 2 | ||
5091 | fi | ||
5092 | done | ||
5093 | done | ||
5094 | IFS=$as_save_IFS | ||
5095 | |||
5096 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
5097 | ;; | ||
5098 | esac | ||
5099 | fi | ||
5100 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
5101 | if test -n "$PATH_GROUPADD_PROG"; then | ||
5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 | ||
5103 | $as_echo "$PATH_GROUPADD_PROG" >&6; } | ||
5104 | else | ||
5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5106 | $as_echo "no" >&6; } | ||
5107 | fi | ||
5108 | |||
5109 | |||
5110 | # Extract the first word of "useradd", so it can be a program name with args. | ||
5111 | set dummy useradd; ac_word=$2 | ||
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5113 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5114 | if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : | ||
5115 | $as_echo_n "(cached) " >&6 | ||
5116 | else | ||
5117 | case $PATH_USERADD_PROG in | ||
5118 | [\\/]* | ?:[\\/]*) | ||
5119 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
5120 | ;; | ||
5121 | *) | ||
5122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5123 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5124 | do | ||
5125 | IFS=$as_save_IFS | ||
5126 | test -z "$as_dir" && as_dir=. | ||
5127 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5129 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5131 | break 2 | ||
5132 | fi | ||
5133 | done | ||
5134 | done | ||
5135 | IFS=$as_save_IFS | ||
5136 | |||
5137 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
5138 | ;; | ||
5139 | esac | ||
5140 | fi | ||
5141 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
5142 | if test -n "$PATH_USERADD_PROG"; then | ||
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 | ||
5144 | $as_echo "$PATH_USERADD_PROG" >&6; } | ||
5145 | else | ||
5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5147 | $as_echo "no" >&6; } | ||
5148 | fi | ||
5149 | |||
5150 | |||
5151 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
5152 | set dummy pkgmk; ac_word=$2 | ||
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5154 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5155 | if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : | ||
5156 | $as_echo_n "(cached) " >&6 | ||
5157 | else | ||
5158 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5159 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
5160 | else | ||
5161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5162 | for as_dir in $PATH | ||
5163 | do | ||
5164 | IFS=$as_save_IFS | ||
5165 | test -z "$as_dir" && as_dir=. | ||
5166 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5167 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5168 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
5169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5170 | break 2 | ||
5171 | fi | ||
5172 | done | ||
5173 | done | ||
5174 | IFS=$as_save_IFS | ||
5175 | |||
5176 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
5177 | fi | ||
5178 | fi | ||
5179 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
5180 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
5182 | $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
5183 | else | ||
5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5185 | $as_echo "no" >&6; } | ||
5186 | fi | ||
5187 | |||
5188 | |||
5189 | if test -x /sbin/sh; then | ||
5190 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
5191 | |||
5192 | else | ||
5193 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
5194 | |||
5195 | fi | ||
5196 | |||
5197 | # System features | ||
5198 | # Check whether --enable-largefile was given. | ||
5199 | if test "${enable_largefile+set}" = set; then : | ||
5200 | enableval=$enable_largefile; | ||
5201 | fi | ||
5202 | |||
5203 | if test "$enable_largefile" != no; then | ||
5204 | |||
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
5206 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
5207 | if ${ac_cv_sys_largefile_CC+:} false; then : | ||
5208 | $as_echo_n "(cached) " >&6 | ||
5209 | else | ||
5210 | ac_cv_sys_largefile_CC=no | ||
5211 | if test "$GCC" != yes; then | ||
5212 | ac_save_CC=$CC | ||
5213 | while :; do | ||
5214 | # IRIX 6.2 and later do not support large files by default, | ||
5215 | # so use the C compiler's -n32 option if that helps. | ||
5216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5217 | /* end confdefs.h. */ | ||
5218 | #include <sys/types.h> | ||
5219 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5220 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5221 | since some C++ compilers masquerading as C compilers | ||
5222 | incorrectly reject 9223372036854775807. */ | ||
5223 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5224 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5225 | && LARGE_OFF_T % 2147483647 == 1) | ||
5226 | ? 1 : -1]; | ||
5227 | int | ||
5228 | main () | ||
5229 | { | ||
5230 | |||
5231 | ; | ||
5232 | return 0; | ||
5233 | } | ||
5234 | _ACEOF | ||
5235 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5236 | break | ||
5237 | fi | ||
5238 | rm -f core conftest.err conftest.$ac_objext | ||
5239 | CC="$CC -n32" | ||
5240 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5241 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5242 | fi | ||
5243 | rm -f core conftest.err conftest.$ac_objext | ||
5244 | break | ||
5245 | done | ||
5246 | CC=$ac_save_CC | ||
5247 | rm -f conftest.$ac_ext | ||
5248 | fi | ||
5249 | fi | ||
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
5251 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
5252 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5253 | CC=$CC$ac_cv_sys_largefile_CC | ||
5254 | fi | ||
5255 | |||
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5257 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
5258 | if ${ac_cv_sys_file_offset_bits+:} false; then : | ||
5259 | $as_echo_n "(cached) " >&6 | ||
5260 | else | ||
5261 | while :; do | ||
5262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5263 | /* end confdefs.h. */ | ||
5264 | #include <sys/types.h> | ||
5265 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5266 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5267 | since some C++ compilers masquerading as C compilers | ||
5268 | incorrectly reject 9223372036854775807. */ | ||
5269 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5270 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5271 | && LARGE_OFF_T % 2147483647 == 1) | ||
5272 | ? 1 : -1]; | ||
5273 | int | ||
5274 | main () | ||
5275 | { | ||
5276 | |||
5277 | ; | ||
5278 | return 0; | ||
5279 | } | ||
5280 | _ACEOF | ||
5281 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5282 | ac_cv_sys_file_offset_bits=no; break | ||
5283 | fi | ||
5284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5286 | /* end confdefs.h. */ | ||
5287 | #define _FILE_OFFSET_BITS 64 | ||
5288 | #include <sys/types.h> | ||
5289 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5290 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5291 | since some C++ compilers masquerading as C compilers | ||
5292 | incorrectly reject 9223372036854775807. */ | ||
5293 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5294 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5295 | && LARGE_OFF_T % 2147483647 == 1) | ||
5296 | ? 1 : -1]; | ||
5297 | int | ||
5298 | main () | ||
5299 | { | ||
5300 | |||
5301 | ; | ||
5302 | return 0; | ||
5303 | } | ||
5304 | _ACEOF | ||
5305 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5306 | ac_cv_sys_file_offset_bits=64; break | ||
5307 | fi | ||
5308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5309 | ac_cv_sys_file_offset_bits=unknown | ||
5310 | break | ||
5311 | done | ||
5312 | fi | ||
5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5314 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
5315 | case $ac_cv_sys_file_offset_bits in #( | ||
5316 | no | unknown) ;; | ||
5317 | *) | ||
5318 | cat >>confdefs.h <<_ACEOF | ||
5319 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5320 | _ACEOF | ||
5321 | ;; | ||
5322 | esac | ||
5323 | rm -rf conftest* | ||
5324 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
5326 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
5327 | if ${ac_cv_sys_large_files+:} false; then : | ||
5328 | $as_echo_n "(cached) " >&6 | ||
5329 | else | ||
5330 | while :; do | ||
5331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5332 | /* end confdefs.h. */ | ||
5333 | #include <sys/types.h> | ||
5334 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5335 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5336 | since some C++ compilers masquerading as C compilers | ||
5337 | incorrectly reject 9223372036854775807. */ | ||
5338 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5339 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5340 | && LARGE_OFF_T % 2147483647 == 1) | ||
5341 | ? 1 : -1]; | ||
5342 | int | ||
5343 | main () | ||
5344 | { | ||
5345 | |||
5346 | ; | ||
5347 | return 0; | ||
5348 | } | ||
5349 | _ACEOF | ||
5350 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5351 | ac_cv_sys_large_files=no; break | ||
5352 | fi | ||
5353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5355 | /* end confdefs.h. */ | ||
5356 | #define _LARGE_FILES 1 | ||
5357 | #include <sys/types.h> | ||
5358 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5359 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5360 | since some C++ compilers masquerading as C compilers | ||
5361 | incorrectly reject 9223372036854775807. */ | ||
5362 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5363 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5364 | && LARGE_OFF_T % 2147483647 == 1) | ||
5365 | ? 1 : -1]; | ||
5366 | int | ||
5367 | main () | ||
5368 | { | ||
5369 | |||
5370 | ; | ||
5371 | return 0; | ||
5372 | } | ||
5373 | _ACEOF | ||
5374 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5375 | ac_cv_sys_large_files=1; break | ||
5376 | fi | ||
5377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5378 | ac_cv_sys_large_files=unknown | ||
5379 | break | ||
5380 | done | ||
5381 | fi | ||
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
5383 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
5384 | case $ac_cv_sys_large_files in #( | ||
5385 | no | unknown) ;; | ||
5386 | *) | ||
5387 | cat >>confdefs.h <<_ACEOF | ||
5388 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5389 | _ACEOF | ||
5390 | ;; | ||
5391 | esac | ||
5392 | rm -rf conftest* | ||
5393 | fi | ||
5394 | fi | ||
5395 | |||
5396 | |||
5397 | if test -z "$AR" ; then | ||
5398 | as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 | ||
5399 | fi | ||
5400 | |||
5401 | # Use LOGIN_PROGRAM from environment if possible | ||
5402 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5403 | |||
5404 | cat >>confdefs.h <<_ACEOF | ||
5405 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5406 | _ACEOF | ||
5407 | |||
5408 | else | ||
5409 | # Search for login | ||
5410 | # Extract the first word of "login", so it can be a program name with args. | ||
5411 | set dummy login; ac_word=$2 | ||
5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5413 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5414 | if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then : | ||
5415 | $as_echo_n "(cached) " >&6 | ||
5416 | else | ||
5417 | case $LOGIN_PROGRAM_FALLBACK in | ||
5418 | [\\/]* | ?:[\\/]*) | ||
5419 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5420 | ;; | ||
5421 | *) | ||
5422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5423 | for as_dir in $PATH | ||
5424 | do | ||
5425 | IFS=$as_save_IFS | ||
5426 | test -z "$as_dir" && as_dir=. | ||
5427 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5429 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5431 | break 2 | ||
5432 | fi | ||
5433 | done | ||
5434 | done | ||
5435 | IFS=$as_save_IFS | ||
5436 | |||
5437 | ;; | ||
5438 | esac | ||
5439 | fi | ||
5440 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5441 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5443 | $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5444 | else | ||
5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5446 | $as_echo "no" >&6; } | ||
5447 | fi | ||
5448 | |||
5449 | |||
5450 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5451 | cat >>confdefs.h <<_ACEOF | ||
5452 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5453 | _ACEOF | ||
5454 | |||
5455 | fi | ||
5456 | fi | ||
5457 | |||
5458 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5459 | set dummy passwd; ac_word=$2 | ||
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5461 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5462 | if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : | ||
5463 | $as_echo_n "(cached) " >&6 | ||
5464 | else | ||
5465 | case $PATH_PASSWD_PROG in | ||
5466 | [\\/]* | ?:[\\/]*) | ||
5467 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5468 | ;; | ||
5469 | *) | ||
5470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5471 | for as_dir in $PATH | ||
5472 | do | ||
5473 | IFS=$as_save_IFS | ||
5474 | test -z "$as_dir" && as_dir=. | ||
5475 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5477 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5479 | break 2 | ||
5480 | fi | ||
5481 | done | ||
5482 | done | ||
5483 | IFS=$as_save_IFS | ||
5484 | |||
5485 | ;; | ||
5486 | esac | ||
5487 | fi | ||
5488 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5489 | if test -n "$PATH_PASSWD_PROG"; then | ||
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 | ||
5491 | $as_echo "$PATH_PASSWD_PROG" >&6; } | ||
5492 | else | ||
5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5494 | $as_echo "no" >&6; } | ||
5495 | fi | ||
5496 | |||
5497 | |||
5498 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5499 | |||
5500 | cat >>confdefs.h <<_ACEOF | ||
5501 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5502 | _ACEOF | ||
5503 | |||
5504 | fi | ||
5505 | |||
5506 | if test -z "$LD" ; then | ||
5507 | LD=$CC | ||
5508 | fi | ||
5509 | |||
5510 | |||
5511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
5512 | $as_echo_n "checking for inline... " >&6; } | ||
5513 | if ${ac_cv_c_inline+:} false; then : | ||
5514 | $as_echo_n "(cached) " >&6 | ||
5515 | else | ||
5516 | ac_cv_c_inline=no | ||
5517 | for ac_kw in inline __inline__ __inline; do | ||
5518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5519 | /* end confdefs.h. */ | ||
5520 | #ifndef __cplusplus | ||
5521 | typedef int foo_t; | ||
5522 | static $ac_kw foo_t static_foo () {return 0; } | ||
5523 | $ac_kw foo_t foo () {return 0; } | ||
5524 | #endif | ||
5525 | |||
5526 | _ACEOF | ||
5527 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5528 | ac_cv_c_inline=$ac_kw | ||
5529 | fi | ||
5530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5531 | test "$ac_cv_c_inline" != no && break | ||
5532 | done | ||
5533 | |||
5534 | fi | ||
5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
5536 | $as_echo "$ac_cv_c_inline" >&6; } | ||
5537 | |||
5538 | case $ac_cv_c_inline in | ||
5539 | inline | yes) ;; | ||
5540 | *) | ||
5541 | case $ac_cv_c_inline in | ||
5542 | no) ac_val=;; | ||
5543 | *) ac_val=$ac_cv_c_inline;; | ||
5544 | esac | ||
5545 | cat >>confdefs.h <<_ACEOF | ||
5546 | #ifndef __cplusplus | ||
5547 | #define inline $ac_val | ||
5548 | #endif | ||
5549 | _ACEOF | ||
5550 | ;; | ||
5551 | esac | ||
5552 | |||
5553 | |||
5554 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
5555 | " | ||
5556 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
5557 | have_llong_max=1 | ||
5558 | fi | ||
5559 | |||
5560 | ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " | ||
5561 | #include <sys/types.h> | ||
5562 | #include <sys/param.h> | ||
5563 | #include <dev/systrace.h> | ||
5564 | |||
5565 | " | ||
5566 | if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : | ||
5567 | have_systr_policy_kill=1 | ||
5568 | fi | ||
5569 | |||
5570 | ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " | ||
5571 | #include <sys/types.h> | ||
5572 | #include <sys/resource.h> | ||
5573 | |||
5574 | " | ||
5575 | if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : | ||
5576 | |||
5577 | $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h | ||
5578 | |||
5579 | fi | ||
5580 | |||
5581 | ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " | ||
5582 | #include <sys/types.h> | ||
5583 | #include <linux/prctl.h> | ||
5584 | |||
5585 | " | ||
5586 | if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : | ||
5587 | have_linux_no_new_privs=1 | ||
5588 | fi | ||
5589 | |||
5590 | if test "x$have_linux_no_new_privs" = "x1" ; then | ||
5591 | ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " | ||
5592 | #include <sys/types.h> | ||
5593 | #include <linux/seccomp.h> | ||
5594 | |||
5595 | " | ||
5596 | if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : | ||
5597 | have_seccomp_filter=1 | ||
5598 | fi | ||
5599 | |||
5600 | fi | ||
5601 | if test "x$have_seccomp_filter" = "x1" ; then | ||
5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 | ||
5603 | $as_echo_n "checking kernel for seccomp_filter support... " >&6; } | ||
5604 | if test "$cross_compiling" = yes; then : | ||
5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
5606 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
5607 | |||
5608 | else | ||
5609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5610 | /* end confdefs.h. */ | ||
5611 | |||
5612 | #include <errno.h> | ||
5613 | #include <linux/seccomp.h> | ||
5614 | #include <stdlib.h> | ||
5615 | #include <sys/prctl.h> | ||
5616 | |||
5617 | int | ||
5618 | main () | ||
5619 | { | ||
5620 | errno = 0; | ||
5621 | prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); | ||
5622 | exit(errno == EFAULT ? 0 : 1); | ||
5623 | ; | ||
5624 | return 0; | ||
5625 | } | ||
5626 | _ACEOF | ||
5627 | if ac_fn_c_try_run "$LINENO"; then : | ||
5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5629 | $as_echo "yes" >&6; } | ||
5630 | else | ||
5631 | |||
5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5633 | $as_echo "no" >&6; } | ||
5634 | # Disable seccomp filter as a target | ||
5635 | have_seccomp_filter=0 | ||
5636 | |||
5637 | fi | ||
5638 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
5639 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
5640 | fi | ||
5641 | |||
5642 | fi | ||
5643 | |||
5644 | use_stack_protector=1 | ||
5645 | |||
5646 | # Check whether --with-stackprotect was given. | ||
5647 | if test "${with_stackprotect+set}" = set; then : | ||
5648 | withval=$with_stackprotect; | ||
5649 | if test "x$withval" = "xno"; then | ||
5650 | use_stack_protector=0 | ||
5651 | fi | ||
5652 | fi | ||
5653 | |||
5654 | |||
5655 | |||
5656 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5657 | { | ||
5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 | ||
5659 | $as_echo_n "checking if $CC supports -Wall... " >&6; } | ||
5660 | saved_CFLAGS="$CFLAGS" | ||
5661 | CFLAGS="$CFLAGS -Wall" | ||
5662 | _define_flag="" | ||
5663 | test "x$_define_flag" = "x" && _define_flag="-Wall" | ||
5664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5665 | /* end confdefs.h. */ | ||
5666 | int main(void) { return 0; } | ||
5667 | _ACEOF | ||
5668 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5670 | $as_echo "yes" >&6; } | ||
5671 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5672 | else | ||
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5674 | $as_echo "no" >&6; } | ||
5675 | CFLAGS="$saved_CFLAGS" | ||
5676 | |||
5677 | fi | ||
5678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5679 | } | ||
5680 | { | ||
5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 | ||
5682 | $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } | ||
5683 | saved_CFLAGS="$CFLAGS" | ||
5684 | CFLAGS="$CFLAGS -Wpointer-arith" | ||
5685 | _define_flag="" | ||
5686 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" | ||
5687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5688 | /* end confdefs.h. */ | ||
5689 | int main(void) { return 0; } | ||
5690 | _ACEOF | ||
5691 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5693 | $as_echo "yes" >&6; } | ||
5694 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5695 | else | ||
5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5697 | $as_echo "no" >&6; } | ||
5698 | CFLAGS="$saved_CFLAGS" | ||
5699 | |||
5700 | fi | ||
5701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5702 | } | ||
5703 | { | ||
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 | ||
5705 | $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } | ||
5706 | saved_CFLAGS="$CFLAGS" | ||
5707 | CFLAGS="$CFLAGS -Wuninitialized" | ||
5708 | _define_flag="" | ||
5709 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" | ||
5710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5711 | /* end confdefs.h. */ | ||
5712 | int main(void) { return 0; } | ||
5713 | _ACEOF | ||
5714 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5716 | $as_echo "yes" >&6; } | ||
5717 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5718 | else | ||
5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5720 | $as_echo "no" >&6; } | ||
5721 | CFLAGS="$saved_CFLAGS" | ||
5722 | |||
5723 | fi | ||
5724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5725 | } | ||
5726 | { | ||
5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5 | ||
5728 | $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; } | ||
5729 | saved_CFLAGS="$CFLAGS" | ||
5730 | CFLAGS="$CFLAGS -Wsign-compare" | ||
5731 | _define_flag="" | ||
5732 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" | ||
5733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5734 | /* end confdefs.h. */ | ||
5735 | int main(void) { return 0; } | ||
5736 | _ACEOF | ||
5737 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5739 | $as_echo "yes" >&6; } | ||
5740 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5741 | else | ||
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5743 | $as_echo "no" >&6; } | ||
5744 | CFLAGS="$saved_CFLAGS" | ||
5745 | |||
5746 | fi | ||
5747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5748 | } | ||
5749 | { | ||
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5 | ||
5751 | $as_echo_n "checking if $CC supports -Wformat-security... " >&6; } | ||
5752 | saved_CFLAGS="$CFLAGS" | ||
5753 | CFLAGS="$CFLAGS -Wformat-security" | ||
5754 | _define_flag="" | ||
5755 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" | ||
5756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5757 | /* end confdefs.h. */ | ||
5758 | int main(void) { return 0; } | ||
5759 | _ACEOF | ||
5760 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5762 | $as_echo "yes" >&6; } | ||
5763 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5764 | else | ||
5765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5766 | $as_echo "no" >&6; } | ||
5767 | CFLAGS="$saved_CFLAGS" | ||
5768 | |||
5769 | fi | ||
5770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5771 | } | ||
5772 | { | ||
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-sign" >&5 | ||
5774 | $as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; } | ||
5775 | saved_CFLAGS="$CFLAGS" | ||
5776 | CFLAGS="$CFLAGS -Wpointer-sign" | ||
5777 | _define_flag="-Wno-pointer-sign" | ||
5778 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" | ||
5779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5780 | /* end confdefs.h. */ | ||
5781 | int main(void) { return 0; } | ||
5782 | _ACEOF | ||
5783 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5785 | $as_echo "yes" >&6; } | ||
5786 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5787 | else | ||
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5789 | $as_echo "no" >&6; } | ||
5790 | CFLAGS="$saved_CFLAGS" | ||
5791 | |||
5792 | fi | ||
5793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5794 | } | ||
5795 | { | ||
5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-result" >&5 | ||
5797 | $as_echo_n "checking if $CC supports -Wunused-result... " >&6; } | ||
5798 | saved_CFLAGS="$CFLAGS" | ||
5799 | CFLAGS="$CFLAGS -Wunused-result" | ||
5800 | _define_flag="-Wno-unused-result" | ||
5801 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" | ||
5802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5803 | /* end confdefs.h. */ | ||
5804 | int main(void) { return 0; } | ||
5805 | _ACEOF | ||
5806 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5808 | $as_echo "yes" >&6; } | ||
5809 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5810 | else | ||
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5812 | $as_echo "no" >&6; } | ||
5813 | CFLAGS="$saved_CFLAGS" | ||
5814 | |||
5815 | fi | ||
5816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5817 | } | ||
5818 | { | ||
5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 | ||
5820 | $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } | ||
5821 | saved_CFLAGS="$CFLAGS" | ||
5822 | CFLAGS="$CFLAGS -fno-strict-aliasing" | ||
5823 | _define_flag="" | ||
5824 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" | ||
5825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5826 | /* end confdefs.h. */ | ||
5827 | int main(void) { return 0; } | ||
5828 | _ACEOF | ||
5829 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5831 | $as_echo "yes" >&6; } | ||
5832 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5833 | else | ||
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5835 | $as_echo "no" >&6; } | ||
5836 | CFLAGS="$saved_CFLAGS" | ||
5837 | |||
5838 | fi | ||
5839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5840 | } | ||
5841 | { | ||
5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -D_FORTIFY_SOURCE=2" >&5 | ||
5843 | $as_echo_n "checking if $CC supports -D_FORTIFY_SOURCE=2... " >&6; } | ||
5844 | saved_CFLAGS="$CFLAGS" | ||
5845 | CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" | ||
5846 | _define_flag="" | ||
5847 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" | ||
5848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5849 | /* end confdefs.h. */ | ||
5850 | int main(void) { return 0; } | ||
5851 | _ACEOF | ||
5852 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5854 | $as_echo "yes" >&6; } | ||
5855 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5856 | else | ||
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5858 | $as_echo "no" >&6; } | ||
5859 | CFLAGS="$saved_CFLAGS" | ||
5860 | |||
5861 | fi | ||
5862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5863 | } | ||
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 | ||
5865 | $as_echo_n "checking gcc version... " >&6; } | ||
5866 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
5867 | case $GCC_VER in | ||
5868 | 1.*) no_attrib_nonnull=1 ;; | ||
5869 | 2.8* | 2.9*) | ||
5870 | no_attrib_nonnull=1 | ||
5871 | ;; | ||
5872 | 2.*) no_attrib_nonnull=1 ;; | ||
5873 | *) ;; | ||
5874 | esac | ||
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 | ||
5876 | $as_echo "$GCC_VER" >&6; } | ||
5877 | |||
5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 | ||
5879 | $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } | ||
5880 | saved_CFLAGS="$CFLAGS" | ||
5881 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
5882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5883 | /* end confdefs.h. */ | ||
5884 | #include <string.h> | ||
5885 | int | ||
5886 | main () | ||
5887 | { | ||
5888 | char b[10]; memset(b, 0, sizeof(b)); | ||
5889 | ; | ||
5890 | return 0; | ||
5891 | } | ||
5892 | _ACEOF | ||
5893 | if ac_fn_c_try_link "$LINENO"; then : | ||
5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5895 | $as_echo "yes" >&6; } | ||
5896 | else | ||
5897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5898 | $as_echo "no" >&6; } | ||
5899 | CFLAGS="$saved_CFLAGS" | ||
5900 | |||
5901 | fi | ||
5902 | rm -f core conftest.err conftest.$ac_objext \ | ||
5903 | conftest$ac_exeext conftest.$ac_ext | ||
5904 | |||
5905 | # -fstack-protector-all doesn't always work for some GCC versions | ||
5906 | # and/or platforms, so we test if we can. If it's not supported | ||
5907 | # on a given platform gcc will emit a warning so we use -Werror. | ||
5908 | if test "x$use_stack_protector" = "x1"; then | ||
5909 | for t in -fstack-protector-all -fstack-protector; do | ||
5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 | ||
5911 | $as_echo_n "checking if $CC supports $t... " >&6; } | ||
5912 | saved_CFLAGS="$CFLAGS" | ||
5913 | saved_LDFLAGS="$LDFLAGS" | ||
5914 | CFLAGS="$CFLAGS $t -Werror" | ||
5915 | LDFLAGS="$LDFLAGS $t -Werror" | ||
5916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5917 | /* end confdefs.h. */ | ||
5918 | #include <stdio.h> | ||
5919 | int | ||
5920 | main () | ||
5921 | { | ||
5922 | |||
5923 | char x[256]; | ||
5924 | snprintf(x, sizeof(x), "XXX"); | ||
5925 | |||
5926 | ; | ||
5927 | return 0; | ||
5928 | } | ||
5929 | _ACEOF | ||
5930 | if ac_fn_c_try_link "$LINENO"; then : | ||
5931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5932 | $as_echo "yes" >&6; } | ||
5933 | CFLAGS="$saved_CFLAGS $t" | ||
5934 | LDFLAGS="$saved_LDFLAGS $t" | ||
5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 | ||
5936 | $as_echo_n "checking if $t works... " >&6; } | ||
5937 | if test "$cross_compiling" = yes; then : | ||
5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 | ||
5939 | $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
5940 | break | ||
5941 | |||
5942 | else | ||
5943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5944 | /* end confdefs.h. */ | ||
5945 | #include <stdio.h> | ||
5946 | int | ||
5947 | main () | ||
5948 | { | ||
5949 | |||
5950 | char x[256]; | ||
5951 | snprintf(x, sizeof(x), "XXX"); | ||
5952 | |||
5953 | ; | ||
5954 | return 0; | ||
5955 | } | ||
5956 | _ACEOF | ||
5957 | if ac_fn_c_try_run "$LINENO"; then : | ||
5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5959 | $as_echo "yes" >&6; } | ||
5960 | break | ||
5961 | else | ||
5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5963 | $as_echo "no" >&6; } | ||
5964 | fi | ||
5965 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
5966 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
5967 | fi | ||
5968 | |||
5969 | |||
5970 | else | ||
5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5972 | $as_echo "no" >&6; } | ||
5973 | |||
5974 | fi | ||
5975 | rm -f core conftest.err conftest.$ac_objext \ | ||
5976 | conftest$ac_exeext conftest.$ac_ext | ||
5977 | CFLAGS="$saved_CFLAGS" | ||
5978 | LDFLAGS="$saved_LDFLAGS" | ||
5979 | done | ||
5980 | fi | ||
5981 | |||
5982 | if test -z "$have_llong_max"; then | ||
5983 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
5984 | unset ac_cv_have_decl_LLONG_MAX | ||
5985 | saved_CFLAGS="$CFLAGS" | ||
5986 | CFLAGS="$CFLAGS -std=gnu99" | ||
5987 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
5988 | |||
5989 | " | ||
5990 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
5991 | have_llong_max=1 | ||
5992 | else | ||
5993 | CFLAGS="$saved_CFLAGS" | ||
5994 | fi | ||
5995 | |||
5996 | fi | ||
5997 | fi | ||
5998 | |||
5999 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
6000 | |||
6001 | $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h | ||
6002 | |||
6003 | fi | ||
6004 | |||
6005 | |||
6006 | # Check whether --with-rpath was given. | ||
6007 | if test "${with_rpath+set}" = set; then : | ||
6008 | withval=$with_rpath; | ||
6009 | if test "x$withval" = "xno" ; then | ||
6010 | need_dash_r="" | ||
6011 | fi | ||
6012 | if test "x$withval" = "xyes" ; then | ||
6013 | need_dash_r=1 | ||
6014 | fi | ||
6015 | |||
6016 | |||
6017 | fi | ||
6018 | |||
6019 | |||
6020 | # Allow user to specify flags | ||
6021 | |||
6022 | # Check whether --with-cflags was given. | ||
6023 | if test "${with_cflags+set}" = set; then : | ||
6024 | withval=$with_cflags; | ||
6025 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6026 | test "x${withval}" != "xyes"; then | ||
6027 | CFLAGS="$CFLAGS $withval" | ||
6028 | fi | ||
6029 | |||
6030 | |||
6031 | fi | ||
6032 | |||
6033 | |||
6034 | # Check whether --with-cppflags was given. | ||
6035 | if test "${with_cppflags+set}" = set; then : | ||
6036 | withval=$with_cppflags; | ||
6037 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6038 | test "x${withval}" != "xyes"; then | ||
6039 | CPPFLAGS="$CPPFLAGS $withval" | ||
6040 | fi | ||
6041 | |||
6042 | |||
6043 | fi | ||
6044 | |||
6045 | |||
6046 | # Check whether --with-ldflags was given. | ||
6047 | if test "${with_ldflags+set}" = set; then : | ||
6048 | withval=$with_ldflags; | ||
6049 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6050 | test "x${withval}" != "xyes"; then | ||
6051 | LDFLAGS="$LDFLAGS $withval" | ||
6052 | fi | ||
6053 | |||
6054 | |||
6055 | fi | ||
6056 | |||
6057 | |||
6058 | # Check whether --with-libs was given. | ||
6059 | if test "${with_libs+set}" = set; then : | ||
6060 | withval=$with_libs; | ||
6061 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6062 | test "x${withval}" != "xyes"; then | ||
6063 | LIBS="$LIBS $withval" | ||
6064 | fi | ||
6065 | |||
6066 | |||
6067 | fi | ||
6068 | |||
6069 | |||
6070 | # Check whether --with-Werror was given. | ||
6071 | if test "${with_Werror+set}" = set; then : | ||
6072 | withval=$with_Werror; | ||
6073 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
6074 | werror_flags="-Werror" | ||
6075 | if test "x${withval}" != "xyes"; then | ||
6076 | werror_flags="$withval" | ||
6077 | fi | ||
6078 | fi | ||
6079 | |||
6080 | |||
6081 | fi | ||
6082 | |||
6083 | |||
6084 | for ac_header in \ | ||
6085 | bstring.h \ | ||
6086 | crypt.h \ | ||
6087 | crypto/sha2.h \ | ||
6088 | dirent.h \ | ||
6089 | endian.h \ | ||
6090 | features.h \ | ||
6091 | fcntl.h \ | ||
6092 | floatingpoint.h \ | ||
6093 | getopt.h \ | ||
6094 | glob.h \ | ||
6095 | ia.h \ | ||
6096 | iaf.h \ | ||
6097 | limits.h \ | ||
6098 | login.h \ | ||
6099 | maillock.h \ | ||
6100 | ndir.h \ | ||
6101 | net/if_tun.h \ | ||
6102 | netdb.h \ | ||
6103 | netgroup.h \ | ||
6104 | pam/pam_appl.h \ | ||
6105 | paths.h \ | ||
6106 | poll.h \ | ||
6107 | pty.h \ | ||
6108 | readpassphrase.h \ | ||
6109 | rpc/types.h \ | ||
6110 | security/pam_appl.h \ | ||
6111 | sha2.h \ | ||
6112 | shadow.h \ | ||
6113 | stddef.h \ | ||
6114 | stdint.h \ | ||
6115 | string.h \ | ||
6116 | strings.h \ | ||
6117 | sys/audit.h \ | ||
6118 | sys/bitypes.h \ | ||
6119 | sys/bsdtty.h \ | ||
6120 | sys/cdefs.h \ | ||
6121 | sys/dir.h \ | ||
6122 | sys/mman.h \ | ||
6123 | sys/ndir.h \ | ||
6124 | sys/poll.h \ | ||
6125 | sys/prctl.h \ | ||
6126 | sys/pstat.h \ | ||
6127 | sys/select.h \ | ||
6128 | sys/stat.h \ | ||
6129 | sys/stream.h \ | ||
6130 | sys/stropts.h \ | ||
6131 | sys/strtio.h \ | ||
6132 | sys/statvfs.h \ | ||
6133 | sys/sysmacros.h \ | ||
6134 | sys/time.h \ | ||
6135 | sys/timers.h \ | ||
6136 | sys/un.h \ | ||
6137 | time.h \ | ||
6138 | tmpdir.h \ | ||
6139 | ttyent.h \ | ||
6140 | ucred.h \ | ||
6141 | unistd.h \ | ||
6142 | usersec.h \ | ||
6143 | util.h \ | ||
6144 | utime.h \ | ||
6145 | utmp.h \ | ||
6146 | utmpx.h \ | ||
6147 | vis.h \ | ||
6148 | |||
6149 | do : | ||
6150 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6151 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
6152 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
6153 | cat >>confdefs.h <<_ACEOF | ||
6154 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6155 | _ACEOF | ||
6156 | |||
6157 | fi | ||
6158 | |||
6159 | done | ||
6160 | |||
6161 | |||
6162 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6163 | for ac_header in lastlog.h | ||
6164 | do : | ||
6165 | ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " | ||
6166 | #ifdef HAVE_SYS_TIME_H | ||
6167 | # include <sys/time.h> | ||
6168 | #endif | ||
6169 | |||
6170 | " | ||
6171 | if test "x$ac_cv_header_lastlog_h" = xyes; then : | ||
6172 | cat >>confdefs.h <<_ACEOF | ||
6173 | #define HAVE_LASTLOG_H 1 | ||
6174 | _ACEOF | ||
6175 | |||
6176 | fi | ||
6177 | |||
6178 | done | ||
6179 | |||
6180 | |||
6181 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6182 | for ac_header in sys/ptms.h | ||
6183 | do : | ||
6184 | ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " | ||
6185 | #ifdef HAVE_SYS_STREAM_H | ||
6186 | # include <sys/stream.h> | ||
6187 | #endif | ||
6188 | |||
6189 | " | ||
6190 | if test "x$ac_cv_header_sys_ptms_h" = xyes; then : | ||
6191 | cat >>confdefs.h <<_ACEOF | ||
6192 | #define HAVE_SYS_PTMS_H 1 | ||
6193 | _ACEOF | ||
6194 | |||
6195 | fi | ||
6196 | |||
6197 | done | ||
6198 | |||
6199 | |||
6200 | # login_cap.h requires sys/types.h on NetBSD | ||
6201 | for ac_header in login_cap.h | ||
6202 | do : | ||
6203 | ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " | ||
6204 | #include <sys/types.h> | ||
6205 | |||
6206 | " | ||
6207 | if test "x$ac_cv_header_login_cap_h" = xyes; then : | ||
6208 | cat >>confdefs.h <<_ACEOF | ||
6209 | #define HAVE_LOGIN_CAP_H 1 | ||
6210 | _ACEOF | ||
6211 | |||
6212 | fi | ||
6213 | |||
6214 | done | ||
6215 | |||
6216 | |||
6217 | # older BSDs need sys/param.h before sys/mount.h | ||
6218 | for ac_header in sys/mount.h | ||
6219 | do : | ||
6220 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " | ||
6221 | #include <sys/param.h> | ||
6222 | |||
6223 | " | ||
6224 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | ||
6225 | cat >>confdefs.h <<_ACEOF | ||
6226 | #define HAVE_SYS_MOUNT_H 1 | ||
6227 | _ACEOF | ||
6228 | |||
6229 | fi | ||
6230 | |||
6231 | done | ||
6232 | |||
6233 | |||
6234 | # Messages for features tested for in target-specific section | ||
6235 | SIA_MSG="no" | ||
6236 | SPC_MSG="no" | ||
6237 | SP_MSG="no" | ||
6238 | |||
6239 | # Check for some target-specific stuff | ||
6240 | case "$host" in | ||
6241 | *-*-aix*) | ||
6242 | # Some versions of VAC won't allow macro redefinitions at | ||
6243 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6244 | # particularly with older versions of vac or xlc. | ||
6245 | # It also throws errors about null macro argments, but these are | ||
6246 | # not fatal. | ||
6247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 | ||
6248 | $as_echo_n "checking if compiler allows macro redefinitions... " >&6; } | ||
6249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6250 | /* end confdefs.h. */ | ||
6251 | |||
6252 | #define testmacro foo | ||
6253 | #define testmacro bar | ||
6254 | int | ||
6255 | main () | ||
6256 | { | ||
6257 | exit(0); | ||
6258 | ; | ||
6259 | return 0; | ||
6260 | } | ||
6261 | _ACEOF | ||
6262 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6264 | $as_echo "yes" >&6; } | ||
6265 | else | ||
6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6267 | $as_echo "no" >&6; } | ||
6268 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6269 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6270 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6271 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6272 | |||
6273 | |||
6274 | fi | ||
6275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6276 | |||
6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 | ||
6278 | $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } | ||
6279 | if (test -z "$blibpath"); then | ||
6280 | blibpath="/usr/lib:/lib" | ||
6281 | fi | ||
6282 | saved_LDFLAGS="$LDFLAGS" | ||
6283 | if test "$GCC" = "yes"; then | ||
6284 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6285 | else | ||
6286 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6287 | fi | ||
6288 | for tryflags in $flags ;do | ||
6289 | if (test -z "$blibflags"); then | ||
6290 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
6291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6292 | /* end confdefs.h. */ | ||
6293 | |||
6294 | int | ||
6295 | main () | ||
6296 | { | ||
6297 | |||
6298 | ; | ||
6299 | return 0; | ||
6300 | } | ||
6301 | _ACEOF | ||
6302 | if ac_fn_c_try_link "$LINENO"; then : | ||
6303 | blibflags=$tryflags | ||
6304 | fi | ||
6305 | rm -f core conftest.err conftest.$ac_objext \ | ||
6306 | conftest$ac_exeext conftest.$ac_ext | ||
6307 | fi | ||
6308 | done | ||
6309 | if (test -z "$blibflags"); then | ||
6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
6311 | $as_echo "not found" >&6; } | ||
6312 | as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 | ||
6313 | else | ||
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 | ||
6315 | $as_echo "$blibflags" >&6; } | ||
6316 | fi | ||
6317 | LDFLAGS="$saved_LDFLAGS" | ||
6318 | ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" | ||
6319 | if test "x$ac_cv_func_authenticate" = xyes; then : | ||
6320 | |||
6321 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
6322 | |||
6323 | else | ||
6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 | ||
6325 | $as_echo_n "checking for authenticate in -ls... " >&6; } | ||
6326 | if ${ac_cv_lib_s_authenticate+:} false; then : | ||
6327 | $as_echo_n "(cached) " >&6 | ||
6328 | else | ||
6329 | ac_check_lib_save_LIBS=$LIBS | ||
6330 | LIBS="-ls $LIBS" | ||
6331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6332 | /* end confdefs.h. */ | ||
6333 | |||
6334 | /* Override any GCC internal prototype to avoid an error. | ||
6335 | Use char because int might match the return type of a GCC | ||
6336 | builtin and then its argument prototype would still apply. */ | ||
6337 | #ifdef __cplusplus | ||
6338 | extern "C" | ||
6339 | #endif | ||
6340 | char authenticate (); | ||
6341 | int | ||
6342 | main () | ||
6343 | { | ||
6344 | return authenticate (); | ||
6345 | ; | ||
6346 | return 0; | ||
6347 | } | ||
6348 | _ACEOF | ||
6349 | if ac_fn_c_try_link "$LINENO"; then : | ||
6350 | ac_cv_lib_s_authenticate=yes | ||
6351 | else | ||
6352 | ac_cv_lib_s_authenticate=no | ||
6353 | fi | ||
6354 | rm -f core conftest.err conftest.$ac_objext \ | ||
6355 | conftest$ac_exeext conftest.$ac_ext | ||
6356 | LIBS=$ac_check_lib_save_LIBS | ||
6357 | fi | ||
6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 | ||
6359 | $as_echo "$ac_cv_lib_s_authenticate" >&6; } | ||
6360 | if test "x$ac_cv_lib_s_authenticate" = xyes; then : | ||
6361 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
6362 | |||
6363 | LIBS="$LIBS -ls" | ||
6364 | |||
6365 | fi | ||
6366 | |||
6367 | |||
6368 | fi | ||
6369 | |||
6370 | ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> | ||
6371 | " | ||
6372 | if test "x$ac_cv_have_decl_authenticate" = xyes; then : | ||
6373 | ac_have_decl=1 | ||
6374 | else | ||
6375 | ac_have_decl=0 | ||
6376 | fi | ||
6377 | |||
6378 | cat >>confdefs.h <<_ACEOF | ||
6379 | #define HAVE_DECL_AUTHENTICATE $ac_have_decl | ||
6380 | _ACEOF | ||
6381 | ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> | ||
6382 | " | ||
6383 | if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : | ||
6384 | ac_have_decl=1 | ||
6385 | else | ||
6386 | ac_have_decl=0 | ||
6387 | fi | ||
6388 | |||
6389 | cat >>confdefs.h <<_ACEOF | ||
6390 | #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl | ||
6391 | _ACEOF | ||
6392 | ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> | ||
6393 | " | ||
6394 | if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : | ||
6395 | ac_have_decl=1 | ||
6396 | else | ||
6397 | ac_have_decl=0 | ||
6398 | fi | ||
6399 | |||
6400 | cat >>confdefs.h <<_ACEOF | ||
6401 | #define HAVE_DECL_LOGINSUCCESS $ac_have_decl | ||
6402 | _ACEOF | ||
6403 | ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> | ||
6404 | " | ||
6405 | if test "x$ac_cv_have_decl_passwdexpired" = xyes; then : | ||
6406 | ac_have_decl=1 | ||
6407 | else | ||
6408 | ac_have_decl=0 | ||
6409 | fi | ||
6410 | |||
6411 | cat >>confdefs.h <<_ACEOF | ||
6412 | #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl | ||
6413 | _ACEOF | ||
6414 | ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> | ||
6415 | " | ||
6416 | if test "x$ac_cv_have_decl_setauthdb" = xyes; then : | ||
6417 | ac_have_decl=1 | ||
6418 | else | ||
6419 | ac_have_decl=0 | ||
6420 | fi | ||
6421 | |||
6422 | cat >>confdefs.h <<_ACEOF | ||
6423 | #define HAVE_DECL_SETAUTHDB $ac_have_decl | ||
6424 | _ACEOF | ||
6425 | |||
6426 | ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h> | ||
6427 | |||
6428 | " | ||
6429 | if test "x$ac_cv_have_decl_loginfailed" = xyes; then : | ||
6430 | ac_have_decl=1 | ||
6431 | else | ||
6432 | ac_have_decl=0 | ||
6433 | fi | ||
6434 | |||
6435 | cat >>confdefs.h <<_ACEOF | ||
6436 | #define HAVE_DECL_LOGINFAILED $ac_have_decl | ||
6437 | _ACEOF | ||
6438 | if test $ac_have_decl = 1; then : | ||
6439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 | ||
6440 | $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } | ||
6441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6442 | /* end confdefs.h. */ | ||
6443 | #include <usersec.h> | ||
6444 | int | ||
6445 | main () | ||
6446 | { | ||
6447 | (void)loginfailed("user","host","tty",0); | ||
6448 | ; | ||
6449 | return 0; | ||
6450 | } | ||
6451 | _ACEOF | ||
6452 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6454 | $as_echo "yes" >&6; } | ||
6455 | |||
6456 | $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h | ||
6457 | |||
6458 | else | ||
6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6460 | $as_echo "no" >&6; } | ||
6461 | |||
6462 | fi | ||
6463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6464 | fi | ||
6465 | |||
6466 | for ac_func in getgrset setauthdb | ||
6467 | do : | ||
6468 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6469 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
6470 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
6471 | cat >>confdefs.h <<_ACEOF | ||
6472 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6473 | _ACEOF | ||
6474 | |||
6475 | fi | ||
6476 | done | ||
6477 | |||
6478 | ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> | ||
6479 | #include <fcntl.h> | ||
6480 | |||
6481 | " | ||
6482 | if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : | ||
6483 | |||
6484 | $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h | ||
6485 | |||
6486 | fi | ||
6487 | |||
6488 | check_for_aix_broken_getaddrinfo=1 | ||
6489 | |||
6490 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
6491 | |||
6492 | |||
6493 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
6494 | |||
6495 | |||
6496 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
6497 | |||
6498 | |||
6499 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
6500 | |||
6501 | |||
6502 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
6503 | |||
6504 | |||
6505 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
6506 | |||
6507 | |||
6508 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
6509 | |||
6510 | |||
6511 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
6512 | |||
6513 | |||
6514 | $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h | ||
6515 | |||
6516 | ;; | ||
6517 | *-*-cygwin*) | ||
6518 | check_for_libcrypt_later=1 | ||
6519 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
6520 | |||
6521 | $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h | ||
6522 | |||
6523 | |||
6524 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
6525 | |||
6526 | |||
6527 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
6528 | |||
6529 | |||
6530 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
6531 | |||
6532 | |||
6533 | $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h | ||
6534 | |||
6535 | |||
6536 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
6537 | |||
6538 | |||
6539 | $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h | ||
6540 | |||
6541 | |||
6542 | $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h | ||
6543 | |||
6544 | ;; | ||
6545 | *-*-dgux*) | ||
6546 | |||
6547 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
6548 | |||
6549 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
6550 | |||
6551 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
6552 | |||
6553 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
6554 | |||
6555 | ;; | ||
6556 | *-*-darwin*) | ||
6557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 | ||
6558 | $as_echo_n "checking if we have working getaddrinfo... " >&6; } | ||
6559 | if test "$cross_compiling" = yes; then : | ||
6560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 | ||
6561 | $as_echo "assume it is working" >&6; } | ||
6562 | else | ||
6563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6564 | /* end confdefs.h. */ | ||
6565 | #include <mach-o/dyld.h> | ||
6566 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
6567 | exit(0); | ||
6568 | else | ||
6569 | exit(1); | ||
6570 | } | ||
6571 | |||
6572 | _ACEOF | ||
6573 | if ac_fn_c_try_run "$LINENO"; then : | ||
6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 | ||
6575 | $as_echo "working" >&6; } | ||
6576 | else | ||
6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 | ||
6578 | $as_echo "buggy" >&6; } | ||
6579 | |||
6580 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
6581 | |||
6582 | |||
6583 | fi | ||
6584 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
6585 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
6586 | fi | ||
6587 | |||
6588 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
6589 | |||
6590 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
6591 | |||
6592 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
6593 | |||
6594 | |||
6595 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
6596 | |||
6597 | |||
6598 | cat >>confdefs.h <<_ACEOF | ||
6599 | #define BIND_8_COMPAT 1 | ||
6600 | _ACEOF | ||
6601 | |||
6602 | |||
6603 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
6604 | |||
6605 | |||
6606 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
6607 | |||
6608 | |||
6609 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
6610 | |||
6611 | |||
6612 | ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" | ||
6613 | if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : | ||
6614 | |||
6615 | else | ||
6616 | |||
6617 | $as_echo "#define AU_IPv4 0" >>confdefs.h | ||
6618 | |||
6619 | #include <bsm/audit.h> | ||
6620 | |||
6621 | $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h | ||
6622 | |||
6623 | |||
6624 | fi | ||
6625 | |||
6626 | |||
6627 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
6628 | |||
6629 | for ac_func in sandbox_init | ||
6630 | do : | ||
6631 | ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" | ||
6632 | if test "x$ac_cv_func_sandbox_init" = xyes; then : | ||
6633 | cat >>confdefs.h <<_ACEOF | ||
6634 | #define HAVE_SANDBOX_INIT 1 | ||
6635 | _ACEOF | ||
6636 | |||
6637 | fi | ||
6638 | done | ||
6639 | |||
6640 | for ac_header in sandbox.h | ||
6641 | do : | ||
6642 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" | ||
6643 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | ||
6644 | cat >>confdefs.h <<_ACEOF | ||
6645 | #define HAVE_SANDBOX_H 1 | ||
6646 | _ACEOF | ||
6647 | |||
6648 | fi | ||
6649 | |||
6650 | done | ||
6651 | |||
6652 | ;; | ||
6653 | *-*-dragonfly*) | ||
6654 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
6655 | ;; | ||
6656 | *-*-haiku*) | ||
6657 | LIBS="$LIBS -lbsd " | ||
6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 | ||
6659 | $as_echo_n "checking for socket in -lnetwork... " >&6; } | ||
6660 | if ${ac_cv_lib_network_socket+:} false; then : | ||
6661 | $as_echo_n "(cached) " >&6 | ||
6662 | else | ||
6663 | ac_check_lib_save_LIBS=$LIBS | ||
6664 | LIBS="-lnetwork $LIBS" | ||
6665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6666 | /* end confdefs.h. */ | ||
6667 | |||
6668 | /* Override any GCC internal prototype to avoid an error. | ||
6669 | Use char because int might match the return type of a GCC | ||
6670 | builtin and then its argument prototype would still apply. */ | ||
6671 | #ifdef __cplusplus | ||
6672 | extern "C" | ||
6673 | #endif | ||
6674 | char socket (); | ||
6675 | int | ||
6676 | main () | ||
6677 | { | ||
6678 | return socket (); | ||
6679 | ; | ||
6680 | return 0; | ||
6681 | } | ||
6682 | _ACEOF | ||
6683 | if ac_fn_c_try_link "$LINENO"; then : | ||
6684 | ac_cv_lib_network_socket=yes | ||
6685 | else | ||
6686 | ac_cv_lib_network_socket=no | ||
6687 | fi | ||
6688 | rm -f core conftest.err conftest.$ac_objext \ | ||
6689 | conftest$ac_exeext conftest.$ac_ext | ||
6690 | LIBS=$ac_check_lib_save_LIBS | ||
6691 | fi | ||
6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 | ||
6693 | $as_echo "$ac_cv_lib_network_socket" >&6; } | ||
6694 | if test "x$ac_cv_lib_network_socket" = xyes; then : | ||
6695 | cat >>confdefs.h <<_ACEOF | ||
6696 | #define HAVE_LIBNETWORK 1 | ||
6697 | _ACEOF | ||
6698 | |||
6699 | LIBS="-lnetwork $LIBS" | ||
6700 | |||
6701 | fi | ||
6702 | |||
6703 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
6704 | |||
6705 | MANTYPE=man | ||
6706 | ;; | ||
6707 | *-*-hpux*) | ||
6708 | # first we define all of the options common to all HP-UX releases | ||
6709 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
6710 | IPADDR_IN_DISPLAY=yes | ||
6711 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
6712 | |||
6713 | |||
6714 | $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h | ||
6715 | |||
6716 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
6717 | |||
6718 | |||
6719 | $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h | ||
6720 | |||
6721 | $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h | ||
6722 | |||
6723 | maildir="/var/mail" | ||
6724 | LIBS="$LIBS -lsec" | ||
6725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 | ||
6726 | $as_echo_n "checking for t_error in -lxnet... " >&6; } | ||
6727 | if ${ac_cv_lib_xnet_t_error+:} false; then : | ||
6728 | $as_echo_n "(cached) " >&6 | ||
6729 | else | ||
6730 | ac_check_lib_save_LIBS=$LIBS | ||
6731 | LIBS="-lxnet $LIBS" | ||
6732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6733 | /* end confdefs.h. */ | ||
6734 | |||
6735 | /* Override any GCC internal prototype to avoid an error. | ||
6736 | Use char because int might match the return type of a GCC | ||
6737 | builtin and then its argument prototype would still apply. */ | ||
6738 | #ifdef __cplusplus | ||
6739 | extern "C" | ||
6740 | #endif | ||
6741 | char t_error (); | ||
6742 | int | ||
6743 | main () | ||
6744 | { | ||
6745 | return t_error (); | ||
6746 | ; | ||
6747 | return 0; | ||
6748 | } | ||
6749 | _ACEOF | ||
6750 | if ac_fn_c_try_link "$LINENO"; then : | ||
6751 | ac_cv_lib_xnet_t_error=yes | ||
6752 | else | ||
6753 | ac_cv_lib_xnet_t_error=no | ||
6754 | fi | ||
6755 | rm -f core conftest.err conftest.$ac_objext \ | ||
6756 | conftest$ac_exeext conftest.$ac_ext | ||
6757 | LIBS=$ac_check_lib_save_LIBS | ||
6758 | fi | ||
6759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 | ||
6760 | $as_echo "$ac_cv_lib_xnet_t_error" >&6; } | ||
6761 | if test "x$ac_cv_lib_xnet_t_error" = xyes; then : | ||
6762 | cat >>confdefs.h <<_ACEOF | ||
6763 | #define HAVE_LIBXNET 1 | ||
6764 | _ACEOF | ||
6765 | |||
6766 | LIBS="-lxnet $LIBS" | ||
6767 | |||
6768 | else | ||
6769 | as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 | ||
6770 | fi | ||
6771 | |||
6772 | |||
6773 | # next, we define all of the options specific to major releases | ||
6774 | case "$host" in | ||
6775 | *-*-hpux10*) | ||
6776 | if test -z "$GCC"; then | ||
6777 | CFLAGS="$CFLAGS -Ae" | ||
6778 | fi | ||
6779 | ;; | ||
6780 | *-*-hpux11*) | ||
6781 | |||
6782 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
6783 | |||
6784 | |||
6785 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
6786 | |||
6787 | |||
6788 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
6789 | |||
6790 | check_for_hpux_broken_getaddrinfo=1 | ||
6791 | check_for_conflicting_getspnam=1 | ||
6792 | ;; | ||
6793 | esac | ||
6794 | |||
6795 | # lastly, we define options specific to minor releases | ||
6796 | case "$host" in | ||
6797 | *-*-hpux10.26) | ||
6798 | |||
6799 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
6800 | |||
6801 | disable_ptmx_check=yes | ||
6802 | LIBS="$LIBS -lsecpw" | ||
6803 | ;; | ||
6804 | esac | ||
6805 | ;; | ||
6806 | *-*-irix5*) | ||
6807 | PATH="$PATH:/usr/etc" | ||
6808 | |||
6809 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
6810 | |||
6811 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
6812 | |||
6813 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
6814 | |||
6815 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
6816 | |||
6817 | |||
6818 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
6819 | |||
6820 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
6821 | |||
6822 | ;; | ||
6823 | *-*-irix6*) | ||
6824 | PATH="$PATH:/usr/etc" | ||
6825 | |||
6826 | $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h | ||
6827 | |||
6828 | |||
6829 | $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h | ||
6830 | |||
6831 | |||
6832 | $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h | ||
6833 | |||
6834 | ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" | ||
6835 | if test "x$ac_cv_func_jlimit_startjob" = xyes; then : | ||
6836 | |||
6837 | $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h | ||
6838 | |||
6839 | fi | ||
6840 | |||
6841 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
6842 | |||
6843 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
6844 | |||
6845 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
6846 | |||
6847 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
6848 | |||
6849 | |||
6850 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
6851 | |||
6852 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
6853 | |||
6854 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
6855 | |||
6856 | ;; | ||
6857 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
6858 | check_for_libcrypt_later=1 | ||
6859 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
6860 | |||
6861 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
6862 | |||
6863 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
6864 | |||
6865 | |||
6866 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
6867 | |||
6868 | |||
6869 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
6870 | |||
6871 | ;; | ||
6872 | *-*-linux*) | ||
6873 | no_dev_ptmx=1 | ||
6874 | check_for_libcrypt_later=1 | ||
6875 | check_for_openpty_ctty_bug=1 | ||
6876 | |||
6877 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
6878 | |||
6879 | |||
6880 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
6881 | |||
6882 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
6883 | |||
6884 | |||
6885 | $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h | ||
6886 | |||
6887 | |||
6888 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
6889 | |||
6890 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
6891 | |||
6892 | |||
6893 | $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h | ||
6894 | |||
6895 | inet6_default_4in6=yes | ||
6896 | case `uname -r` in | ||
6897 | 1.*|2.0.*) | ||
6898 | |||
6899 | $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h | ||
6900 | |||
6901 | ;; | ||
6902 | esac | ||
6903 | # tun(4) forwarding compat code | ||
6904 | for ac_header in linux/if_tun.h | ||
6905 | do : | ||
6906 | ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" | ||
6907 | if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : | ||
6908 | cat >>confdefs.h <<_ACEOF | ||
6909 | #define HAVE_LINUX_IF_TUN_H 1 | ||
6910 | _ACEOF | ||
6911 | |||
6912 | fi | ||
6913 | |||
6914 | done | ||
6915 | |||
6916 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
6917 | |||
6918 | $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h | ||
6919 | |||
6920 | |||
6921 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
6922 | |||
6923 | |||
6924 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
6925 | |||
6926 | fi | ||
6927 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | ||
6928 | do : | ||
6929 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6930 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
6931 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
6932 | cat >>confdefs.h <<_ACEOF | ||
6933 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6934 | _ACEOF | ||
6935 | |||
6936 | fi | ||
6937 | |||
6938 | done | ||
6939 | |||
6940 | for ac_func in prctl | ||
6941 | do : | ||
6942 | ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" | ||
6943 | if test "x$ac_cv_func_prctl" = xyes; then : | ||
6944 | cat >>confdefs.h <<_ACEOF | ||
6945 | #define HAVE_PRCTL 1 | ||
6946 | _ACEOF | ||
6947 | |||
6948 | fi | ||
6949 | done | ||
6950 | |||
6951 | have_seccomp_audit_arch=1 | ||
6952 | case "$host" in | ||
6953 | x86_64-*) | ||
6954 | |||
6955 | $as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64" >>confdefs.h | ||
6956 | |||
6957 | ;; | ||
6958 | i*86-*) | ||
6959 | |||
6960 | $as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386" >>confdefs.h | ||
6961 | |||
6962 | ;; | ||
6963 | *) | ||
6964 | have_seccomp_audit_arch=0 | ||
6965 | ;; | ||
6966 | esac | ||
6967 | ;; | ||
6968 | mips-sony-bsd|mips-sony-newsos4) | ||
6969 | |||
6970 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
6971 | |||
6972 | SONY=1 | ||
6973 | ;; | ||
6974 | *-*-netbsd*) | ||
6975 | check_for_libcrypt_before=1 | ||
6976 | if test "x$withval" != "xno" ; then | ||
6977 | need_dash_r=1 | ||
6978 | fi | ||
6979 | |||
6980 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
6981 | |||
6982 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
6983 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
6984 | |||
6985 | else | ||
6986 | |||
6987 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
6988 | |||
6989 | fi | ||
6990 | |||
6991 | |||
6992 | |||
6993 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
6994 | |||
6995 | ;; | ||
6996 | *-*-freebsd*) | ||
6997 | check_for_libcrypt_later=1 | ||
6998 | |||
6999 | $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h | ||
7000 | |||
7001 | |||
7002 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7003 | |||
7004 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
7005 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
7006 | |||
7007 | else | ||
7008 | |||
7009 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
7010 | |||
7011 | fi | ||
7012 | |||
7013 | |||
7014 | |||
7015 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
7016 | |||
7017 | ;; | ||
7018 | *-*-bsdi*) | ||
7019 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7020 | |||
7021 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7022 | |||
7023 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7024 | |||
7025 | ;; | ||
7026 | *-next-*) | ||
7027 | conf_lastlog_location="/usr/adm/lastlog" | ||
7028 | conf_utmp_location=/etc/utmp | ||
7029 | conf_wtmp_location=/usr/adm/wtmp | ||
7030 | maildir=/usr/spool/mail | ||
7031 | |||
7032 | $as_echo "#define HAVE_NEXT 1" >>confdefs.h | ||
7033 | |||
7034 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
7035 | |||
7036 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7037 | |||
7038 | |||
7039 | $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h | ||
7040 | |||
7041 | ;; | ||
7042 | *-*-openbsd*) | ||
7043 | |||
7044 | $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h | ||
7045 | |||
7046 | |||
7047 | $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h | ||
7048 | |||
7049 | |||
7050 | $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h | ||
7051 | |||
7052 | |||
7053 | $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h | ||
7054 | |||
7055 | ;; | ||
7056 | *-*-solaris*) | ||
7057 | if test "x$withval" != "xno" ; then | ||
7058 | need_dash_r=1 | ||
7059 | fi | ||
7060 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7061 | |||
7062 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7063 | |||
7064 | |||
7065 | $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h | ||
7066 | |||
7067 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7068 | |||
7069 | |||
7070 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
7071 | |||
7072 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7073 | |||
7074 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
7075 | |||
7076 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7077 | |||
7078 | |||
7079 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7080 | |||
7081 | |||
7082 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h | ||
7083 | |||
7084 | external_path_file=/etc/default/login | ||
7085 | # hardwire lastlog location (can't detect it on some versions) | ||
7086 | conf_lastlog_location="/var/adm/lastlog" | ||
7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
7088 | $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } | ||
7089 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
7090 | if test "$sol2ver" -ge 8; then | ||
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7092 | $as_echo "yes" >&6; } | ||
7093 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7094 | |||
7095 | |||
7096 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
7097 | |||
7098 | else | ||
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7100 | $as_echo "no" >&6; } | ||
7101 | fi | ||
7102 | |||
7103 | # Check whether --with-solaris-contracts was given. | ||
7104 | if test "${with_solaris_contracts+set}" = set; then : | ||
7105 | withval=$with_solaris_contracts; | ||
7106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 | ||
7107 | $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } | ||
7108 | if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : | ||
7109 | $as_echo_n "(cached) " >&6 | ||
7110 | else | ||
7111 | ac_check_lib_save_LIBS=$LIBS | ||
7112 | LIBS="-lcontract $LIBS" | ||
7113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7114 | /* end confdefs.h. */ | ||
7115 | |||
7116 | /* Override any GCC internal prototype to avoid an error. | ||
7117 | Use char because int might match the return type of a GCC | ||
7118 | builtin and then its argument prototype would still apply. */ | ||
7119 | #ifdef __cplusplus | ||
7120 | extern "C" | ||
7121 | #endif | ||
7122 | char ct_tmpl_activate (); | ||
7123 | int | ||
7124 | main () | ||
7125 | { | ||
7126 | return ct_tmpl_activate (); | ||
7127 | ; | ||
7128 | return 0; | ||
7129 | } | ||
7130 | _ACEOF | ||
7131 | if ac_fn_c_try_link "$LINENO"; then : | ||
7132 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
7133 | else | ||
7134 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
7135 | fi | ||
7136 | rm -f core conftest.err conftest.$ac_objext \ | ||
7137 | conftest$ac_exeext conftest.$ac_ext | ||
7138 | LIBS=$ac_check_lib_save_LIBS | ||
7139 | fi | ||
7140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
7141 | $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
7142 | if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : | ||
7143 | |||
7144 | $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h | ||
7145 | |||
7146 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
7147 | SPC_MSG="yes" | ||
7148 | fi | ||
7149 | |||
7150 | |||
7151 | fi | ||
7152 | |||
7153 | |||
7154 | # Check whether --with-solaris-projects was given. | ||
7155 | if test "${with_solaris_projects+set}" = set; then : | ||
7156 | withval=$with_solaris_projects; | ||
7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 | ||
7158 | $as_echo_n "checking for setproject in -lproject... " >&6; } | ||
7159 | if ${ac_cv_lib_project_setproject+:} false; then : | ||
7160 | $as_echo_n "(cached) " >&6 | ||
7161 | else | ||
7162 | ac_check_lib_save_LIBS=$LIBS | ||
7163 | LIBS="-lproject $LIBS" | ||
7164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7165 | /* end confdefs.h. */ | ||
7166 | |||
7167 | /* Override any GCC internal prototype to avoid an error. | ||
7168 | Use char because int might match the return type of a GCC | ||
7169 | builtin and then its argument prototype would still apply. */ | ||
7170 | #ifdef __cplusplus | ||
7171 | extern "C" | ||
7172 | #endif | ||
7173 | char setproject (); | ||
7174 | int | ||
7175 | main () | ||
7176 | { | ||
7177 | return setproject (); | ||
7178 | ; | ||
7179 | return 0; | ||
7180 | } | ||
7181 | _ACEOF | ||
7182 | if ac_fn_c_try_link "$LINENO"; then : | ||
7183 | ac_cv_lib_project_setproject=yes | ||
7184 | else | ||
7185 | ac_cv_lib_project_setproject=no | ||
7186 | fi | ||
7187 | rm -f core conftest.err conftest.$ac_objext \ | ||
7188 | conftest$ac_exeext conftest.$ac_ext | ||
7189 | LIBS=$ac_check_lib_save_LIBS | ||
7190 | fi | ||
7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 | ||
7192 | $as_echo "$ac_cv_lib_project_setproject" >&6; } | ||
7193 | if test "x$ac_cv_lib_project_setproject" = xyes; then : | ||
7194 | |||
7195 | $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h | ||
7196 | |||
7197 | SSHDLIBS="$SSHDLIBS -lproject" | ||
7198 | SP_MSG="yes" | ||
7199 | fi | ||
7200 | |||
7201 | |||
7202 | fi | ||
7203 | |||
7204 | ;; | ||
7205 | *-*-sunos4*) | ||
7206 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
7207 | for ac_func in getpwanam | ||
7208 | do : | ||
7209 | ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" | ||
7210 | if test "x$ac_cv_func_getpwanam" = xyes; then : | ||
7211 | cat >>confdefs.h <<_ACEOF | ||
7212 | #define HAVE_GETPWANAM 1 | ||
7213 | _ACEOF | ||
7214 | |||
7215 | fi | ||
7216 | done | ||
7217 | |||
7218 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7219 | |||
7220 | conf_utmp_location=/etc/utmp | ||
7221 | conf_wtmp_location=/var/adm/wtmp | ||
7222 | conf_lastlog_location=/var/adm/lastlog | ||
7223 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7224 | |||
7225 | ;; | ||
7226 | *-ncr-sysv*) | ||
7227 | LIBS="$LIBS -lc89" | ||
7228 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7229 | |||
7230 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7231 | |||
7232 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7233 | |||
7234 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7235 | |||
7236 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7237 | |||
7238 | ;; | ||
7239 | *-sni-sysv*) | ||
7240 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
7241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | ||
7242 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | ||
7243 | if ${ac_cv_lib_dl_dlsym+:} false; then : | ||
7244 | $as_echo_n "(cached) " >&6 | ||
7245 | else | ||
7246 | ac_check_lib_save_LIBS=$LIBS | ||
7247 | LIBS="-ldl $LIBS" | ||
7248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7249 | /* end confdefs.h. */ | ||
7250 | |||
7251 | /* Override any GCC internal prototype to avoid an error. | ||
7252 | Use char because int might match the return type of a GCC | ||
7253 | builtin and then its argument prototype would still apply. */ | ||
7254 | #ifdef __cplusplus | ||
7255 | extern "C" | ||
7256 | #endif | ||
7257 | char dlsym (); | ||
7258 | int | ||
7259 | main () | ||
7260 | { | ||
7261 | return dlsym (); | ||
7262 | ; | ||
7263 | return 0; | ||
7264 | } | ||
7265 | _ACEOF | ||
7266 | if ac_fn_c_try_link "$LINENO"; then : | ||
7267 | ac_cv_lib_dl_dlsym=yes | ||
7268 | else | ||
7269 | ac_cv_lib_dl_dlsym=no | ||
7270 | fi | ||
7271 | rm -f core conftest.err conftest.$ac_objext \ | ||
7272 | conftest$ac_exeext conftest.$ac_ext | ||
7273 | LIBS=$ac_check_lib_save_LIBS | ||
7274 | fi | ||
7275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | ||
7276 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | ||
7277 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : | ||
7278 | cat >>confdefs.h <<_ACEOF | ||
7279 | #define HAVE_LIBDL 1 | ||
7280 | _ACEOF | ||
7281 | |||
7282 | LIBS="-ldl $LIBS" | ||
7283 | |||
7284 | fi | ||
7285 | |||
7286 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
7287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
7288 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
7289 | if ${ac_cv_lib_resolv_res_query+:} false; then : | ||
7290 | $as_echo_n "(cached) " >&6 | ||
7291 | else | ||
7292 | ac_check_lib_save_LIBS=$LIBS | ||
7293 | LIBS="-lresolv $LIBS" | ||
7294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7295 | /* end confdefs.h. */ | ||
7296 | |||
7297 | /* Override any GCC internal prototype to avoid an error. | ||
7298 | Use char because int might match the return type of a GCC | ||
7299 | builtin and then its argument prototype would still apply. */ | ||
7300 | #ifdef __cplusplus | ||
7301 | extern "C" | ||
7302 | #endif | ||
7303 | char res_query (); | ||
7304 | int | ||
7305 | main () | ||
7306 | { | ||
7307 | return res_query (); | ||
7308 | ; | ||
7309 | return 0; | ||
7310 | } | ||
7311 | _ACEOF | ||
7312 | if ac_fn_c_try_link "$LINENO"; then : | ||
7313 | ac_cv_lib_resolv_res_query=yes | ||
7314 | else | ||
7315 | ac_cv_lib_resolv_res_query=no | ||
7316 | fi | ||
7317 | rm -f core conftest.err conftest.$ac_objext \ | ||
7318 | conftest$ac_exeext conftest.$ac_ext | ||
7319 | LIBS=$ac_check_lib_save_LIBS | ||
7320 | fi | ||
7321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 | ||
7322 | $as_echo "$ac_cv_lib_resolv_res_query" >&6; } | ||
7323 | if test "x$ac_cv_lib_resolv_res_query" = xyes; then : | ||
7324 | LIBS="$LIBS -lresolv" | ||
7325 | fi | ||
7326 | |||
7327 | IPADDR_IN_DISPLAY=yes | ||
7328 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7329 | |||
7330 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
7331 | |||
7332 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7333 | |||
7334 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7335 | |||
7336 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7337 | |||
7338 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7339 | |||
7340 | external_path_file=/etc/default/login | ||
7341 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
7342 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
7343 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
7344 | ;; | ||
7345 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
7346 | *-*-sysv4.2*) | ||
7347 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7348 | |||
7349 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7350 | |||
7351 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7352 | |||
7353 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7354 | |||
7355 | |||
7356 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7357 | |||
7358 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7359 | |||
7360 | ;; | ||
7361 | # UnixWare 7.x, OpenUNIX 8 | ||
7362 | *-*-sysv5*) | ||
7363 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
7364 | |||
7365 | $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h | ||
7366 | |||
7367 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7368 | |||
7369 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7370 | |||
7371 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7372 | |||
7373 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7374 | |||
7375 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7376 | |||
7377 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7378 | |||
7379 | case "$host" in | ||
7380 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
7381 | maildir=/var/spool/mail | ||
7382 | TEST_SHELL=/u95/bin/sh | ||
7383 | |||
7384 | $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h | ||
7385 | |||
7386 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
7387 | |||
7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 | ||
7389 | $as_echo_n "checking for getluid in -lprot... " >&6; } | ||
7390 | if ${ac_cv_lib_prot_getluid+:} false; then : | ||
7391 | $as_echo_n "(cached) " >&6 | ||
7392 | else | ||
7393 | ac_check_lib_save_LIBS=$LIBS | ||
7394 | LIBS="-lprot $LIBS" | ||
7395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7396 | /* end confdefs.h. */ | ||
7397 | |||
7398 | /* Override any GCC internal prototype to avoid an error. | ||
7399 | Use char because int might match the return type of a GCC | ||
7400 | builtin and then its argument prototype would still apply. */ | ||
7401 | #ifdef __cplusplus | ||
7402 | extern "C" | ||
7403 | #endif | ||
7404 | char getluid (); | ||
7405 | int | ||
7406 | main () | ||
7407 | { | ||
7408 | return getluid (); | ||
7409 | ; | ||
7410 | return 0; | ||
7411 | } | ||
7412 | _ACEOF | ||
7413 | if ac_fn_c_try_link "$LINENO"; then : | ||
7414 | ac_cv_lib_prot_getluid=yes | ||
7415 | else | ||
7416 | ac_cv_lib_prot_getluid=no | ||
7417 | fi | ||
7418 | rm -f core conftest.err conftest.$ac_objext \ | ||
7419 | conftest$ac_exeext conftest.$ac_ext | ||
7420 | LIBS=$ac_check_lib_save_LIBS | ||
7421 | fi | ||
7422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 | ||
7423 | $as_echo "$ac_cv_lib_prot_getluid" >&6; } | ||
7424 | if test "x$ac_cv_lib_prot_getluid" = xyes; then : | ||
7425 | LIBS="$LIBS -lprot" | ||
7426 | for ac_func in getluid setluid | ||
7427 | do : | ||
7428 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7429 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
7430 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
7431 | cat >>confdefs.h <<_ACEOF | ||
7432 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7433 | _ACEOF | ||
7434 | |||
7435 | fi | ||
7436 | done | ||
7437 | |||
7438 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
7439 | |||
7440 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
7441 | |||
7442 | |||
7443 | fi | ||
7444 | |||
7445 | ;; | ||
7446 | *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7447 | |||
7448 | check_for_libcrypt_later=1 | ||
7449 | ;; | ||
7450 | esac | ||
7451 | ;; | ||
7452 | *-*-sysv*) | ||
7453 | ;; | ||
7454 | # SCO UNIX and OEM versions of SCO UNIX | ||
7455 | *-*-sco3.2v4*) | ||
7456 | as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 | ||
7457 | ;; | ||
7458 | # SCO OpenServer 5.x | ||
7459 | *-*-sco3.2v5*) | ||
7460 | if test -z "$GCC"; then | ||
7461 | CFLAGS="$CFLAGS -belf" | ||
7462 | fi | ||
7463 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
7464 | no_dev_ptmx=1 | ||
7465 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7466 | |||
7467 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
7468 | |||
7469 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
7470 | |||
7471 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7472 | |||
7473 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7474 | |||
7475 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7476 | |||
7477 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7478 | |||
7479 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7480 | |||
7481 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7482 | |||
7483 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
7484 | |||
7485 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7486 | |||
7487 | for ac_func in getluid setluid | ||
7488 | do : | ||
7489 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7490 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
7491 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
7492 | cat >>confdefs.h <<_ACEOF | ||
7493 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7494 | _ACEOF | ||
7495 | |||
7496 | fi | ||
7497 | done | ||
7498 | |||
7499 | MANTYPE=man | ||
7500 | TEST_SHELL=ksh | ||
7501 | ;; | ||
7502 | *-*-unicosmk*) | ||
7503 | |||
7504 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
7505 | |||
7506 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7507 | |||
7508 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7509 | |||
7510 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7511 | |||
7512 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7513 | |||
7514 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7515 | |||
7516 | LDFLAGS="$LDFLAGS" | ||
7517 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
7518 | MANTYPE=cat | ||
7519 | ;; | ||
7520 | *-*-unicosmp*) | ||
7521 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7522 | |||
7523 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7524 | |||
7525 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7526 | |||
7527 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7528 | |||
7529 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7530 | |||
7531 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7532 | |||
7533 | LDFLAGS="$LDFLAGS" | ||
7534 | LIBS="$LIBS -lgen -lacid -ldb" | ||
7535 | MANTYPE=cat | ||
7536 | ;; | ||
7537 | *-*-unicos*) | ||
7538 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7539 | |||
7540 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7541 | |||
7542 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7543 | |||
7544 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7545 | |||
7546 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7547 | |||
7548 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
7549 | |||
7550 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
7551 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
7552 | MANTYPE=cat | ||
7553 | ;; | ||
7554 | *-dec-osf*) | ||
7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 | ||
7556 | $as_echo_n "checking for Digital Unix SIA... " >&6; } | ||
7557 | no_osfsia="" | ||
7558 | |||
7559 | # Check whether --with-osfsia was given. | ||
7560 | if test "${with_osfsia+set}" = set; then : | ||
7561 | withval=$with_osfsia; | ||
7562 | if test "x$withval" = "xno" ; then | ||
7563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | ||
7564 | $as_echo "disabled" >&6; } | ||
7565 | no_osfsia=1 | ||
7566 | fi | ||
7567 | |||
7568 | fi | ||
7569 | |||
7570 | if test -z "$no_osfsia" ; then | ||
7571 | if test -f /etc/sia/matrix.conf; then | ||
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7573 | $as_echo "yes" >&6; } | ||
7574 | |||
7575 | $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h | ||
7576 | |||
7577 | |||
7578 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
7579 | |||
7580 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7581 | |||
7582 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
7583 | SIA_MSG="yes" | ||
7584 | else | ||
7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7586 | $as_echo "no" >&6; } | ||
7587 | |||
7588 | $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h | ||
7589 | |||
7590 | fi | ||
7591 | fi | ||
7592 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7593 | |||
7594 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7595 | |||
7596 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7597 | |||
7598 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7599 | |||
7600 | |||
7601 | $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h | ||
7602 | |||
7603 | ;; | ||
7604 | |||
7605 | *-*-nto-qnx*) | ||
7606 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7607 | |||
7608 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
7609 | |||
7610 | |||
7611 | $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h | ||
7612 | |||
7613 | |||
7614 | $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h | ||
7615 | |||
7616 | |||
7617 | $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h | ||
7618 | |||
7619 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
7620 | |||
7621 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7622 | |||
7623 | |||
7624 | $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h | ||
7625 | |||
7626 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
7627 | case "$host" in | ||
7628 | *-*-nto-qnx6*) | ||
7629 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7630 | |||
7631 | ;; | ||
7632 | esac | ||
7633 | ;; | ||
7634 | |||
7635 | *-*-ultrix*) | ||
7636 | |||
7637 | $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h | ||
7638 | |||
7639 | |||
7640 | $as_echo "#define BROKEN_MMAP 1" >>confdefs.h | ||
7641 | |||
7642 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
7643 | |||
7644 | |||
7645 | $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h | ||
7646 | |||
7647 | ;; | ||
7648 | |||
7649 | *-*-lynxos) | ||
7650 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
7651 | $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h | ||
7652 | |||
7653 | |||
7654 | $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h | ||
7655 | |||
7656 | ;; | ||
7657 | esac | ||
7658 | |||
7659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 | ||
7660 | $as_echo_n "checking compiler and flags for sanity... " >&6; } | ||
7661 | if test "$cross_compiling" = yes; then : | ||
7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
7663 | $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
7664 | |||
7665 | else | ||
7666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7667 | /* end confdefs.h. */ | ||
7668 | #include <stdio.h> | ||
7669 | int | ||
7670 | main () | ||
7671 | { | ||
7672 | exit(0); | ||
7673 | ; | ||
7674 | return 0; | ||
7675 | } | ||
7676 | _ACEOF | ||
7677 | if ac_fn_c_try_run "$LINENO"; then : | ||
7678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7679 | $as_echo "yes" >&6; } | ||
7680 | else | ||
7681 | |||
7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7683 | $as_echo "no" >&6; } | ||
7684 | as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 | ||
7685 | |||
7686 | fi | ||
7687 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7688 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7689 | fi | ||
7690 | |||
7691 | |||
7692 | # Checks for libraries. | ||
7693 | ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match" | ||
7694 | if test "x$ac_cv_func_yp_match" = xyes; then : | ||
7695 | |||
7696 | else | ||
7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5 | ||
7698 | $as_echo_n "checking for yp_match in -lnsl... " >&6; } | ||
7699 | if ${ac_cv_lib_nsl_yp_match+:} false; then : | ||
7700 | $as_echo_n "(cached) " >&6 | ||
7701 | else | ||
7702 | ac_check_lib_save_LIBS=$LIBS | ||
7703 | LIBS="-lnsl $LIBS" | ||
7704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7705 | /* end confdefs.h. */ | ||
7706 | |||
7707 | /* Override any GCC internal prototype to avoid an error. | ||
7708 | Use char because int might match the return type of a GCC | ||
7709 | builtin and then its argument prototype would still apply. */ | ||
7710 | #ifdef __cplusplus | ||
7711 | extern "C" | ||
7712 | #endif | ||
7713 | char yp_match (); | ||
7714 | int | ||
7715 | main () | ||
7716 | { | ||
7717 | return yp_match (); | ||
7718 | ; | ||
7719 | return 0; | ||
7720 | } | ||
7721 | _ACEOF | ||
7722 | if ac_fn_c_try_link "$LINENO"; then : | ||
7723 | ac_cv_lib_nsl_yp_match=yes | ||
7724 | else | ||
7725 | ac_cv_lib_nsl_yp_match=no | ||
7726 | fi | ||
7727 | rm -f core conftest.err conftest.$ac_objext \ | ||
7728 | conftest$ac_exeext conftest.$ac_ext | ||
7729 | LIBS=$ac_check_lib_save_LIBS | ||
7730 | fi | ||
7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
7732 | $as_echo "$ac_cv_lib_nsl_yp_match" >&6; } | ||
7733 | if test "x$ac_cv_lib_nsl_yp_match" = xyes; then : | ||
7734 | cat >>confdefs.h <<_ACEOF | ||
7735 | #define HAVE_LIBNSL 1 | ||
7736 | _ACEOF | ||
7737 | |||
7738 | LIBS="-lnsl $LIBS" | ||
7739 | |||
7740 | fi | ||
7741 | |||
7742 | fi | ||
7743 | |||
7744 | ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" | ||
7745 | if test "x$ac_cv_func_setsockopt" = xyes; then : | ||
7746 | |||
7747 | else | ||
7748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 | ||
7749 | $as_echo_n "checking for setsockopt in -lsocket... " >&6; } | ||
7750 | if ${ac_cv_lib_socket_setsockopt+:} false; then : | ||
7751 | $as_echo_n "(cached) " >&6 | ||
7752 | else | ||
7753 | ac_check_lib_save_LIBS=$LIBS | ||
7754 | LIBS="-lsocket $LIBS" | ||
7755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7756 | /* end confdefs.h. */ | ||
7757 | |||
7758 | /* Override any GCC internal prototype to avoid an error. | ||
7759 | Use char because int might match the return type of a GCC | ||
7760 | builtin and then its argument prototype would still apply. */ | ||
7761 | #ifdef __cplusplus | ||
7762 | extern "C" | ||
7763 | #endif | ||
7764 | char setsockopt (); | ||
7765 | int | ||
7766 | main () | ||
7767 | { | ||
7768 | return setsockopt (); | ||
7769 | ; | ||
7770 | return 0; | ||
7771 | } | ||
7772 | _ACEOF | ||
7773 | if ac_fn_c_try_link "$LINENO"; then : | ||
7774 | ac_cv_lib_socket_setsockopt=yes | ||
7775 | else | ||
7776 | ac_cv_lib_socket_setsockopt=no | ||
7777 | fi | ||
7778 | rm -f core conftest.err conftest.$ac_objext \ | ||
7779 | conftest$ac_exeext conftest.$ac_ext | ||
7780 | LIBS=$ac_check_lib_save_LIBS | ||
7781 | fi | ||
7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
7783 | $as_echo "$ac_cv_lib_socket_setsockopt" >&6; } | ||
7784 | if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : | ||
7785 | cat >>confdefs.h <<_ACEOF | ||
7786 | #define HAVE_LIBSOCKET 1 | ||
7787 | _ACEOF | ||
7788 | |||
7789 | LIBS="-lsocket $LIBS" | ||
7790 | |||
7791 | fi | ||
7792 | |||
7793 | fi | ||
7794 | |||
7795 | |||
7796 | for ac_func in dirname | ||
7797 | do : | ||
7798 | ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" | ||
7799 | if test "x$ac_cv_func_dirname" = xyes; then : | ||
7800 | cat >>confdefs.h <<_ACEOF | ||
7801 | #define HAVE_DIRNAME 1 | ||
7802 | _ACEOF | ||
7803 | for ac_header in libgen.h | ||
7804 | do : | ||
7805 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
7806 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
7807 | cat >>confdefs.h <<_ACEOF | ||
7808 | #define HAVE_LIBGEN_H 1 | ||
7809 | _ACEOF | ||
7810 | |||
7811 | fi | ||
7812 | |||
7813 | done | ||
7814 | |||
7815 | else | ||
7816 | |||
7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 | ||
7818 | $as_echo_n "checking for dirname in -lgen... " >&6; } | ||
7819 | if ${ac_cv_lib_gen_dirname+:} false; then : | ||
7820 | $as_echo_n "(cached) " >&6 | ||
7821 | else | ||
7822 | ac_check_lib_save_LIBS=$LIBS | ||
7823 | LIBS="-lgen $LIBS" | ||
7824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7825 | /* end confdefs.h. */ | ||
7826 | |||
7827 | /* Override any GCC internal prototype to avoid an error. | ||
7828 | Use char because int might match the return type of a GCC | ||
7829 | builtin and then its argument prototype would still apply. */ | ||
7830 | #ifdef __cplusplus | ||
7831 | extern "C" | ||
7832 | #endif | ||
7833 | char dirname (); | ||
7834 | int | ||
7835 | main () | ||
7836 | { | ||
7837 | return dirname (); | ||
7838 | ; | ||
7839 | return 0; | ||
7840 | } | ||
7841 | _ACEOF | ||
7842 | if ac_fn_c_try_link "$LINENO"; then : | ||
7843 | ac_cv_lib_gen_dirname=yes | ||
7844 | else | ||
7845 | ac_cv_lib_gen_dirname=no | ||
7846 | fi | ||
7847 | rm -f core conftest.err conftest.$ac_objext \ | ||
7848 | conftest$ac_exeext conftest.$ac_ext | ||
7849 | LIBS=$ac_check_lib_save_LIBS | ||
7850 | fi | ||
7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 | ||
7852 | $as_echo "$ac_cv_lib_gen_dirname" >&6; } | ||
7853 | if test "x$ac_cv_lib_gen_dirname" = xyes; then : | ||
7854 | |||
7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 | ||
7856 | $as_echo_n "checking for broken dirname... " >&6; } | ||
7857 | if ${ac_cv_have_broken_dirname+:} false; then : | ||
7858 | $as_echo_n "(cached) " >&6 | ||
7859 | else | ||
7860 | |||
7861 | save_LIBS="$LIBS" | ||
7862 | LIBS="$LIBS -lgen" | ||
7863 | if test "$cross_compiling" = yes; then : | ||
7864 | ac_cv_have_broken_dirname="no" | ||
7865 | else | ||
7866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7867 | /* end confdefs.h. */ | ||
7868 | |||
7869 | #include <libgen.h> | ||
7870 | #include <string.h> | ||
7871 | |||
7872 | int main(int argc, char **argv) { | ||
7873 | char *s, buf[32]; | ||
7874 | |||
7875 | strncpy(buf,"/etc", 32); | ||
7876 | s = dirname(buf); | ||
7877 | if (!s || strncmp(s, "/", 32) != 0) { | ||
7878 | exit(1); | ||
7879 | } else { | ||
7880 | exit(0); | ||
7881 | } | ||
7882 | } | ||
7883 | |||
7884 | _ACEOF | ||
7885 | if ac_fn_c_try_run "$LINENO"; then : | ||
7886 | ac_cv_have_broken_dirname="no" | ||
7887 | else | ||
7888 | ac_cv_have_broken_dirname="yes" | ||
7889 | fi | ||
7890 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7891 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7892 | fi | ||
7893 | |||
7894 | LIBS="$save_LIBS" | ||
7895 | |||
7896 | fi | ||
7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 | ||
7898 | $as_echo "$ac_cv_have_broken_dirname" >&6; } | ||
7899 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
7900 | LIBS="$LIBS -lgen" | ||
7901 | $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h | ||
7902 | |||
7903 | for ac_header in libgen.h | ||
7904 | do : | ||
7905 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
7906 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
7907 | cat >>confdefs.h <<_ACEOF | ||
7908 | #define HAVE_LIBGEN_H 1 | ||
7909 | _ACEOF | ||
7910 | |||
7911 | fi | ||
7912 | |||
7913 | done | ||
7914 | |||
7915 | fi | ||
7916 | |||
7917 | fi | ||
7918 | |||
7919 | |||
7920 | fi | ||
7921 | done | ||
7922 | |||
7923 | |||
7924 | ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" | ||
7925 | if test "x$ac_cv_func_getspnam" = xyes; then : | ||
7926 | |||
7927 | else | ||
7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 | ||
7929 | $as_echo_n "checking for getspnam in -lgen... " >&6; } | ||
7930 | if ${ac_cv_lib_gen_getspnam+:} false; then : | ||
7931 | $as_echo_n "(cached) " >&6 | ||
7932 | else | ||
7933 | ac_check_lib_save_LIBS=$LIBS | ||
7934 | LIBS="-lgen $LIBS" | ||
7935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7936 | /* end confdefs.h. */ | ||
7937 | |||
7938 | /* Override any GCC internal prototype to avoid an error. | ||
7939 | Use char because int might match the return type of a GCC | ||
7940 | builtin and then its argument prototype would still apply. */ | ||
7941 | #ifdef __cplusplus | ||
7942 | extern "C" | ||
7943 | #endif | ||
7944 | char getspnam (); | ||
7945 | int | ||
7946 | main () | ||
7947 | { | ||
7948 | return getspnam (); | ||
7949 | ; | ||
7950 | return 0; | ||
7951 | } | ||
7952 | _ACEOF | ||
7953 | if ac_fn_c_try_link "$LINENO"; then : | ||
7954 | ac_cv_lib_gen_getspnam=yes | ||
7955 | else | ||
7956 | ac_cv_lib_gen_getspnam=no | ||
7957 | fi | ||
7958 | rm -f core conftest.err conftest.$ac_objext \ | ||
7959 | conftest$ac_exeext conftest.$ac_ext | ||
7960 | LIBS=$ac_check_lib_save_LIBS | ||
7961 | fi | ||
7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 | ||
7963 | $as_echo "$ac_cv_lib_gen_getspnam" >&6; } | ||
7964 | if test "x$ac_cv_lib_gen_getspnam" = xyes; then : | ||
7965 | LIBS="$LIBS -lgen" | ||
7966 | fi | ||
7967 | |||
7968 | fi | ||
7969 | |||
7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 | ||
7971 | $as_echo_n "checking for library containing basename... " >&6; } | ||
7972 | if ${ac_cv_search_basename+:} false; then : | ||
7973 | $as_echo_n "(cached) " >&6 | ||
7974 | else | ||
7975 | ac_func_search_save_LIBS=$LIBS | ||
7976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7977 | /* end confdefs.h. */ | ||
7978 | |||
7979 | /* Override any GCC internal prototype to avoid an error. | ||
7980 | Use char because int might match the return type of a GCC | ||
7981 | builtin and then its argument prototype would still apply. */ | ||
7982 | #ifdef __cplusplus | ||
7983 | extern "C" | ||
7984 | #endif | ||
7985 | char basename (); | ||
7986 | int | ||
7987 | main () | ||
7988 | { | ||
7989 | return basename (); | ||
7990 | ; | ||
7991 | return 0; | ||
7992 | } | ||
7993 | _ACEOF | ||
7994 | for ac_lib in '' gen; do | ||
7995 | if test -z "$ac_lib"; then | ||
7996 | ac_res="none required" | ||
7997 | else | ||
7998 | ac_res=-l$ac_lib | ||
7999 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8000 | fi | ||
8001 | if ac_fn_c_try_link "$LINENO"; then : | ||
8002 | ac_cv_search_basename=$ac_res | ||
8003 | fi | ||
8004 | rm -f core conftest.err conftest.$ac_objext \ | ||
8005 | conftest$ac_exeext | ||
8006 | if ${ac_cv_search_basename+:} false; then : | ||
8007 | break | ||
8008 | fi | ||
8009 | done | ||
8010 | if ${ac_cv_search_basename+:} false; then : | ||
8011 | |||
8012 | else | ||
8013 | ac_cv_search_basename=no | ||
8014 | fi | ||
8015 | rm conftest.$ac_ext | ||
8016 | LIBS=$ac_func_search_save_LIBS | ||
8017 | fi | ||
8018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 | ||
8019 | $as_echo "$ac_cv_search_basename" >&6; } | ||
8020 | ac_res=$ac_cv_search_basename | ||
8021 | if test "$ac_res" != no; then : | ||
8022 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8023 | |||
8024 | $as_echo "#define HAVE_BASENAME 1" >>confdefs.h | ||
8025 | |||
8026 | fi | ||
8027 | |||
8028 | |||
8029 | |||
8030 | # Check whether --with-zlib was given. | ||
8031 | if test "${with_zlib+set}" = set; then : | ||
8032 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
8033 | as_fn_error $? "*** zlib is required ***" "$LINENO" 5 | ||
8034 | elif test "x$withval" != "xyes"; then | ||
8035 | if test -d "$withval/lib"; then | ||
8036 | if test -n "${need_dash_r}"; then | ||
8037 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8038 | else | ||
8039 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8040 | fi | ||
8041 | else | ||
8042 | if test -n "${need_dash_r}"; then | ||
8043 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8044 | else | ||
8045 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8046 | fi | ||
8047 | fi | ||
8048 | if test -d "$withval/include"; then | ||
8049 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8050 | else | ||
8051 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8052 | fi | ||
8053 | fi | ||
8054 | |||
8055 | fi | ||
8056 | |||
8057 | |||
8058 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | ||
8059 | if test "x$ac_cv_header_zlib_h" = xyes; then : | ||
8060 | |||
8061 | else | ||
8062 | as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 | ||
8063 | fi | ||
8064 | |||
8065 | |||
8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | ||
8067 | $as_echo_n "checking for deflate in -lz... " >&6; } | ||
8068 | if ${ac_cv_lib_z_deflate+:} false; then : | ||
8069 | $as_echo_n "(cached) " >&6 | ||
8070 | else | ||
8071 | ac_check_lib_save_LIBS=$LIBS | ||
8072 | LIBS="-lz $LIBS" | ||
8073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8074 | /* end confdefs.h. */ | ||
8075 | |||
8076 | /* Override any GCC internal prototype to avoid an error. | ||
8077 | Use char because int might match the return type of a GCC | ||
8078 | builtin and then its argument prototype would still apply. */ | ||
8079 | #ifdef __cplusplus | ||
8080 | extern "C" | ||
8081 | #endif | ||
8082 | char deflate (); | ||
8083 | int | ||
8084 | main () | ||
8085 | { | ||
8086 | return deflate (); | ||
8087 | ; | ||
8088 | return 0; | ||
8089 | } | ||
8090 | _ACEOF | ||
8091 | if ac_fn_c_try_link "$LINENO"; then : | ||
8092 | ac_cv_lib_z_deflate=yes | ||
8093 | else | ||
8094 | ac_cv_lib_z_deflate=no | ||
8095 | fi | ||
8096 | rm -f core conftest.err conftest.$ac_objext \ | ||
8097 | conftest$ac_exeext conftest.$ac_ext | ||
8098 | LIBS=$ac_check_lib_save_LIBS | ||
8099 | fi | ||
8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 | ||
8101 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | ||
8102 | if test "x$ac_cv_lib_z_deflate" = xyes; then : | ||
8103 | cat >>confdefs.h <<_ACEOF | ||
8104 | #define HAVE_LIBZ 1 | ||
8105 | _ACEOF | ||
8106 | |||
8107 | LIBS="-lz $LIBS" | ||
8108 | |||
8109 | else | ||
8110 | |||
8111 | saved_CPPFLAGS="$CPPFLAGS" | ||
8112 | saved_LDFLAGS="$LDFLAGS" | ||
8113 | save_LIBS="$LIBS" | ||
8114 | if test -n "${need_dash_r}"; then | ||
8115 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
8116 | else | ||
8117 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
8118 | fi | ||
8119 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
8120 | LIBS="$LIBS -lz" | ||
8121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8122 | /* end confdefs.h. */ | ||
8123 | |||
8124 | /* Override any GCC internal prototype to avoid an error. | ||
8125 | Use char because int might match the return type of a GCC | ||
8126 | builtin and then its argument prototype would still apply. */ | ||
8127 | #ifdef __cplusplus | ||
8128 | extern "C" | ||
8129 | #endif | ||
8130 | char deflate (); | ||
8131 | int | ||
8132 | main () | ||
8133 | { | ||
8134 | return deflate (); | ||
8135 | ; | ||
8136 | return 0; | ||
8137 | } | ||
8138 | _ACEOF | ||
8139 | if ac_fn_c_try_link "$LINENO"; then : | ||
8140 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | ||
8141 | |||
8142 | else | ||
8143 | |||
8144 | as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 | ||
8145 | |||
8146 | |||
8147 | fi | ||
8148 | rm -f core conftest.err conftest.$ac_objext \ | ||
8149 | conftest$ac_exeext conftest.$ac_ext | ||
8150 | |||
8151 | |||
8152 | fi | ||
8153 | |||
8154 | |||
8155 | |||
8156 | # Check whether --with-zlib-version-check was given. | ||
8157 | if test "${with_zlib_version_check+set}" = set; then : | ||
8158 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
8159 | zlib_check_nonfatal=1 | ||
8160 | fi | ||
8161 | |||
8162 | |||
8163 | fi | ||
8164 | |||
8165 | |||
8166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 | ||
8167 | $as_echo_n "checking for possibly buggy zlib... " >&6; } | ||
8168 | if test "$cross_compiling" = yes; then : | ||
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 | ||
8170 | $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
8171 | |||
8172 | else | ||
8173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8174 | /* end confdefs.h. */ | ||
8175 | |||
8176 | #include <stdio.h> | ||
8177 | #include <zlib.h> | ||
8178 | |||
8179 | int | ||
8180 | main () | ||
8181 | { | ||
8182 | |||
8183 | int a=0, b=0, c=0, d=0, n, v; | ||
8184 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
8185 | if (n != 3 && n != 4) | ||
8186 | exit(1); | ||
8187 | v = a*1000000 + b*10000 + c*100 + d; | ||
8188 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
8189 | |||
8190 | /* 1.1.4 is OK */ | ||
8191 | if (a == 1 && b == 1 && c >= 4) | ||
8192 | exit(0); | ||
8193 | |||
8194 | /* 1.2.3 and up are OK */ | ||
8195 | if (v >= 1020300) | ||
8196 | exit(0); | ||
8197 | |||
8198 | exit(2); | ||
8199 | |||
8200 | ; | ||
8201 | return 0; | ||
8202 | } | ||
8203 | _ACEOF | ||
8204 | if ac_fn_c_try_run "$LINENO"; then : | ||
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8206 | $as_echo "no" >&6; } | ||
8207 | else | ||
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8209 | $as_echo "yes" >&6; } | ||
8210 | if test -z "$zlib_check_nonfatal" ; then | ||
8211 | as_fn_error $? "*** zlib too old - check config.log *** | ||
8212 | Your reported zlib version has known security problems. It's possible your | ||
8213 | vendor has fixed these problems without changing the version number. If you | ||
8214 | are sure this is the case, you can disable the check by running | ||
8215 | \"./configure --without-zlib-version-check\". | ||
8216 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
8217 | See http://www.gzip.org/zlib/ for details." "$LINENO" 5 | ||
8218 | else | ||
8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 | ||
8220 | $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
8221 | fi | ||
8222 | |||
8223 | fi | ||
8224 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8225 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8226 | fi | ||
8227 | |||
8228 | |||
8229 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" | ||
8230 | if test "x$ac_cv_func_strcasecmp" = xyes; then : | ||
8231 | |||
8232 | else | ||
8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 | ||
8234 | $as_echo_n "checking for strcasecmp in -lresolv... " >&6; } | ||
8235 | if ${ac_cv_lib_resolv_strcasecmp+:} false; then : | ||
8236 | $as_echo_n "(cached) " >&6 | ||
8237 | else | ||
8238 | ac_check_lib_save_LIBS=$LIBS | ||
8239 | LIBS="-lresolv $LIBS" | ||
8240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8241 | /* end confdefs.h. */ | ||
8242 | |||
8243 | /* Override any GCC internal prototype to avoid an error. | ||
8244 | Use char because int might match the return type of a GCC | ||
8245 | builtin and then its argument prototype would still apply. */ | ||
8246 | #ifdef __cplusplus | ||
8247 | extern "C" | ||
8248 | #endif | ||
8249 | char strcasecmp (); | ||
8250 | int | ||
8251 | main () | ||
8252 | { | ||
8253 | return strcasecmp (); | ||
8254 | ; | ||
8255 | return 0; | ||
8256 | } | ||
8257 | _ACEOF | ||
8258 | if ac_fn_c_try_link "$LINENO"; then : | ||
8259 | ac_cv_lib_resolv_strcasecmp=yes | ||
8260 | else | ||
8261 | ac_cv_lib_resolv_strcasecmp=no | ||
8262 | fi | ||
8263 | rm -f core conftest.err conftest.$ac_objext \ | ||
8264 | conftest$ac_exeext conftest.$ac_ext | ||
8265 | LIBS=$ac_check_lib_save_LIBS | ||
8266 | fi | ||
8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
8268 | $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
8269 | if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : | ||
8270 | LIBS="$LIBS -lresolv" | ||
8271 | fi | ||
8272 | |||
8273 | |||
8274 | fi | ||
8275 | |||
8276 | for ac_func in utimes | ||
8277 | do : | ||
8278 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" | ||
8279 | if test "x$ac_cv_func_utimes" = xyes; then : | ||
8280 | cat >>confdefs.h <<_ACEOF | ||
8281 | #define HAVE_UTIMES 1 | ||
8282 | _ACEOF | ||
8283 | |||
8284 | else | ||
8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 | ||
8286 | $as_echo_n "checking for utimes in -lc89... " >&6; } | ||
8287 | if ${ac_cv_lib_c89_utimes+:} false; then : | ||
8288 | $as_echo_n "(cached) " >&6 | ||
8289 | else | ||
8290 | ac_check_lib_save_LIBS=$LIBS | ||
8291 | LIBS="-lc89 $LIBS" | ||
8292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8293 | /* end confdefs.h. */ | ||
8294 | |||
8295 | /* Override any GCC internal prototype to avoid an error. | ||
8296 | Use char because int might match the return type of a GCC | ||
8297 | builtin and then its argument prototype would still apply. */ | ||
8298 | #ifdef __cplusplus | ||
8299 | extern "C" | ||
8300 | #endif | ||
8301 | char utimes (); | ||
8302 | int | ||
8303 | main () | ||
8304 | { | ||
8305 | return utimes (); | ||
8306 | ; | ||
8307 | return 0; | ||
8308 | } | ||
8309 | _ACEOF | ||
8310 | if ac_fn_c_try_link "$LINENO"; then : | ||
8311 | ac_cv_lib_c89_utimes=yes | ||
8312 | else | ||
8313 | ac_cv_lib_c89_utimes=no | ||
8314 | fi | ||
8315 | rm -f core conftest.err conftest.$ac_objext \ | ||
8316 | conftest$ac_exeext conftest.$ac_ext | ||
8317 | LIBS=$ac_check_lib_save_LIBS | ||
8318 | fi | ||
8319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 | ||
8320 | $as_echo "$ac_cv_lib_c89_utimes" >&6; } | ||
8321 | if test "x$ac_cv_lib_c89_utimes" = xyes; then : | ||
8322 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h | ||
8323 | |||
8324 | LIBS="$LIBS -lc89" | ||
8325 | fi | ||
8326 | |||
8327 | |||
8328 | fi | ||
8329 | done | ||
8330 | |||
8331 | |||
8332 | for ac_header in libutil.h | ||
8333 | do : | ||
8334 | ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" | ||
8335 | if test "x$ac_cv_header_libutil_h" = xyes; then : | ||
8336 | cat >>confdefs.h <<_ACEOF | ||
8337 | #define HAVE_LIBUTIL_H 1 | ||
8338 | _ACEOF | ||
8339 | |||
8340 | fi | ||
8341 | |||
8342 | done | ||
8343 | |||
8344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 | ||
8345 | $as_echo_n "checking for library containing fmt_scaled... " >&6; } | ||
8346 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8347 | $as_echo_n "(cached) " >&6 | ||
8348 | else | ||
8349 | ac_func_search_save_LIBS=$LIBS | ||
8350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8351 | /* end confdefs.h. */ | ||
8352 | |||
8353 | /* Override any GCC internal prototype to avoid an error. | ||
8354 | Use char because int might match the return type of a GCC | ||
8355 | builtin and then its argument prototype would still apply. */ | ||
8356 | #ifdef __cplusplus | ||
8357 | extern "C" | ||
8358 | #endif | ||
8359 | char fmt_scaled (); | ||
8360 | int | ||
8361 | main () | ||
8362 | { | ||
8363 | return fmt_scaled (); | ||
8364 | ; | ||
8365 | return 0; | ||
8366 | } | ||
8367 | _ACEOF | ||
8368 | for ac_lib in '' util bsd; do | ||
8369 | if test -z "$ac_lib"; then | ||
8370 | ac_res="none required" | ||
8371 | else | ||
8372 | ac_res=-l$ac_lib | ||
8373 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8374 | fi | ||
8375 | if ac_fn_c_try_link "$LINENO"; then : | ||
8376 | ac_cv_search_fmt_scaled=$ac_res | ||
8377 | fi | ||
8378 | rm -f core conftest.err conftest.$ac_objext \ | ||
8379 | conftest$ac_exeext | ||
8380 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8381 | break | ||
8382 | fi | ||
8383 | done | ||
8384 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8385 | |||
8386 | else | ||
8387 | ac_cv_search_fmt_scaled=no | ||
8388 | fi | ||
8389 | rm conftest.$ac_ext | ||
8390 | LIBS=$ac_func_search_save_LIBS | ||
8391 | fi | ||
8392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 | ||
8393 | $as_echo "$ac_cv_search_fmt_scaled" >&6; } | ||
8394 | ac_res=$ac_cv_search_fmt_scaled | ||
8395 | if test "$ac_res" != no; then : | ||
8396 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8397 | |||
8398 | fi | ||
8399 | |||
8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 | ||
8401 | $as_echo_n "checking for library containing login... " >&6; } | ||
8402 | if ${ac_cv_search_login+:} false; then : | ||
8403 | $as_echo_n "(cached) " >&6 | ||
8404 | else | ||
8405 | ac_func_search_save_LIBS=$LIBS | ||
8406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8407 | /* end confdefs.h. */ | ||
8408 | |||
8409 | /* Override any GCC internal prototype to avoid an error. | ||
8410 | Use char because int might match the return type of a GCC | ||
8411 | builtin and then its argument prototype would still apply. */ | ||
8412 | #ifdef __cplusplus | ||
8413 | extern "C" | ||
8414 | #endif | ||
8415 | char login (); | ||
8416 | int | ||
8417 | main () | ||
8418 | { | ||
8419 | return login (); | ||
8420 | ; | ||
8421 | return 0; | ||
8422 | } | ||
8423 | _ACEOF | ||
8424 | for ac_lib in '' util bsd; do | ||
8425 | if test -z "$ac_lib"; then | ||
8426 | ac_res="none required" | ||
8427 | else | ||
8428 | ac_res=-l$ac_lib | ||
8429 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8430 | fi | ||
8431 | if ac_fn_c_try_link "$LINENO"; then : | ||
8432 | ac_cv_search_login=$ac_res | ||
8433 | fi | ||
8434 | rm -f core conftest.err conftest.$ac_objext \ | ||
8435 | conftest$ac_exeext | ||
8436 | if ${ac_cv_search_login+:} false; then : | ||
8437 | break | ||
8438 | fi | ||
8439 | done | ||
8440 | if ${ac_cv_search_login+:} false; then : | ||
8441 | |||
8442 | else | ||
8443 | ac_cv_search_login=no | ||
8444 | fi | ||
8445 | rm conftest.$ac_ext | ||
8446 | LIBS=$ac_func_search_save_LIBS | ||
8447 | fi | ||
8448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 | ||
8449 | $as_echo "$ac_cv_search_login" >&6; } | ||
8450 | ac_res=$ac_cv_search_login | ||
8451 | if test "$ac_res" != no; then : | ||
8452 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8453 | |||
8454 | fi | ||
8455 | |||
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 | ||
8457 | $as_echo_n "checking for library containing logout... " >&6; } | ||
8458 | if ${ac_cv_search_logout+:} false; then : | ||
8459 | $as_echo_n "(cached) " >&6 | ||
8460 | else | ||
8461 | ac_func_search_save_LIBS=$LIBS | ||
8462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8463 | /* end confdefs.h. */ | ||
8464 | |||
8465 | /* Override any GCC internal prototype to avoid an error. | ||
8466 | Use char because int might match the return type of a GCC | ||
8467 | builtin and then its argument prototype would still apply. */ | ||
8468 | #ifdef __cplusplus | ||
8469 | extern "C" | ||
8470 | #endif | ||
8471 | char logout (); | ||
8472 | int | ||
8473 | main () | ||
8474 | { | ||
8475 | return logout (); | ||
8476 | ; | ||
8477 | return 0; | ||
8478 | } | ||
8479 | _ACEOF | ||
8480 | for ac_lib in '' util bsd; do | ||
8481 | if test -z "$ac_lib"; then | ||
8482 | ac_res="none required" | ||
8483 | else | ||
8484 | ac_res=-l$ac_lib | ||
8485 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8486 | fi | ||
8487 | if ac_fn_c_try_link "$LINENO"; then : | ||
8488 | ac_cv_search_logout=$ac_res | ||
8489 | fi | ||
8490 | rm -f core conftest.err conftest.$ac_objext \ | ||
8491 | conftest$ac_exeext | ||
8492 | if ${ac_cv_search_logout+:} false; then : | ||
8493 | break | ||
8494 | fi | ||
8495 | done | ||
8496 | if ${ac_cv_search_logout+:} false; then : | ||
8497 | |||
8498 | else | ||
8499 | ac_cv_search_logout=no | ||
8500 | fi | ||
8501 | rm conftest.$ac_ext | ||
8502 | LIBS=$ac_func_search_save_LIBS | ||
8503 | fi | ||
8504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 | ||
8505 | $as_echo "$ac_cv_search_logout" >&6; } | ||
8506 | ac_res=$ac_cv_search_logout | ||
8507 | if test "$ac_res" != no; then : | ||
8508 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8509 | |||
8510 | fi | ||
8511 | |||
8512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 | ||
8513 | $as_echo_n "checking for library containing logwtmp... " >&6; } | ||
8514 | if ${ac_cv_search_logwtmp+:} false; then : | ||
8515 | $as_echo_n "(cached) " >&6 | ||
8516 | else | ||
8517 | ac_func_search_save_LIBS=$LIBS | ||
8518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8519 | /* end confdefs.h. */ | ||
8520 | |||
8521 | /* Override any GCC internal prototype to avoid an error. | ||
8522 | Use char because int might match the return type of a GCC | ||
8523 | builtin and then its argument prototype would still apply. */ | ||
8524 | #ifdef __cplusplus | ||
8525 | extern "C" | ||
8526 | #endif | ||
8527 | char logwtmp (); | ||
8528 | int | ||
8529 | main () | ||
8530 | { | ||
8531 | return logwtmp (); | ||
8532 | ; | ||
8533 | return 0; | ||
8534 | } | ||
8535 | _ACEOF | ||
8536 | for ac_lib in '' util bsd; do | ||
8537 | if test -z "$ac_lib"; then | ||
8538 | ac_res="none required" | ||
8539 | else | ||
8540 | ac_res=-l$ac_lib | ||
8541 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8542 | fi | ||
8543 | if ac_fn_c_try_link "$LINENO"; then : | ||
8544 | ac_cv_search_logwtmp=$ac_res | ||
8545 | fi | ||
8546 | rm -f core conftest.err conftest.$ac_objext \ | ||
8547 | conftest$ac_exeext | ||
8548 | if ${ac_cv_search_logwtmp+:} false; then : | ||
8549 | break | ||
8550 | fi | ||
8551 | done | ||
8552 | if ${ac_cv_search_logwtmp+:} false; then : | ||
8553 | |||
8554 | else | ||
8555 | ac_cv_search_logwtmp=no | ||
8556 | fi | ||
8557 | rm conftest.$ac_ext | ||
8558 | LIBS=$ac_func_search_save_LIBS | ||
8559 | fi | ||
8560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 | ||
8561 | $as_echo "$ac_cv_search_logwtmp" >&6; } | ||
8562 | ac_res=$ac_cv_search_logwtmp | ||
8563 | if test "$ac_res" != no; then : | ||
8564 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8565 | |||
8566 | fi | ||
8567 | |||
8568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 | ||
8569 | $as_echo_n "checking for library containing openpty... " >&6; } | ||
8570 | if ${ac_cv_search_openpty+:} false; then : | ||
8571 | $as_echo_n "(cached) " >&6 | ||
8572 | else | ||
8573 | ac_func_search_save_LIBS=$LIBS | ||
8574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8575 | /* end confdefs.h. */ | ||
8576 | |||
8577 | /* Override any GCC internal prototype to avoid an error. | ||
8578 | Use char because int might match the return type of a GCC | ||
8579 | builtin and then its argument prototype would still apply. */ | ||
8580 | #ifdef __cplusplus | ||
8581 | extern "C" | ||
8582 | #endif | ||
8583 | char openpty (); | ||
8584 | int | ||
8585 | main () | ||
8586 | { | ||
8587 | return openpty (); | ||
8588 | ; | ||
8589 | return 0; | ||
8590 | } | ||
8591 | _ACEOF | ||
8592 | for ac_lib in '' util bsd; do | ||
8593 | if test -z "$ac_lib"; then | ||
8594 | ac_res="none required" | ||
8595 | else | ||
8596 | ac_res=-l$ac_lib | ||
8597 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8598 | fi | ||
8599 | if ac_fn_c_try_link "$LINENO"; then : | ||
8600 | ac_cv_search_openpty=$ac_res | ||
8601 | fi | ||
8602 | rm -f core conftest.err conftest.$ac_objext \ | ||
8603 | conftest$ac_exeext | ||
8604 | if ${ac_cv_search_openpty+:} false; then : | ||
8605 | break | ||
8606 | fi | ||
8607 | done | ||
8608 | if ${ac_cv_search_openpty+:} false; then : | ||
8609 | |||
8610 | else | ||
8611 | ac_cv_search_openpty=no | ||
8612 | fi | ||
8613 | rm conftest.$ac_ext | ||
8614 | LIBS=$ac_func_search_save_LIBS | ||
8615 | fi | ||
8616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 | ||
8617 | $as_echo "$ac_cv_search_openpty" >&6; } | ||
8618 | ac_res=$ac_cv_search_openpty | ||
8619 | if test "$ac_res" != no; then : | ||
8620 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8621 | |||
8622 | fi | ||
8623 | |||
8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 | ||
8625 | $as_echo_n "checking for library containing updwtmp... " >&6; } | ||
8626 | if ${ac_cv_search_updwtmp+:} false; then : | ||
8627 | $as_echo_n "(cached) " >&6 | ||
8628 | else | ||
8629 | ac_func_search_save_LIBS=$LIBS | ||
8630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8631 | /* end confdefs.h. */ | ||
8632 | |||
8633 | /* Override any GCC internal prototype to avoid an error. | ||
8634 | Use char because int might match the return type of a GCC | ||
8635 | builtin and then its argument prototype would still apply. */ | ||
8636 | #ifdef __cplusplus | ||
8637 | extern "C" | ||
8638 | #endif | ||
8639 | char updwtmp (); | ||
8640 | int | ||
8641 | main () | ||
8642 | { | ||
8643 | return updwtmp (); | ||
8644 | ; | ||
8645 | return 0; | ||
8646 | } | ||
8647 | _ACEOF | ||
8648 | for ac_lib in '' util bsd; do | ||
8649 | if test -z "$ac_lib"; then | ||
8650 | ac_res="none required" | ||
8651 | else | ||
8652 | ac_res=-l$ac_lib | ||
8653 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8654 | fi | ||
8655 | if ac_fn_c_try_link "$LINENO"; then : | ||
8656 | ac_cv_search_updwtmp=$ac_res | ||
8657 | fi | ||
8658 | rm -f core conftest.err conftest.$ac_objext \ | ||
8659 | conftest$ac_exeext | ||
8660 | if ${ac_cv_search_updwtmp+:} false; then : | ||
8661 | break | ||
8662 | fi | ||
8663 | done | ||
8664 | if ${ac_cv_search_updwtmp+:} false; then : | ||
8665 | |||
8666 | else | ||
8667 | ac_cv_search_updwtmp=no | ||
8668 | fi | ||
8669 | rm conftest.$ac_ext | ||
8670 | LIBS=$ac_func_search_save_LIBS | ||
8671 | fi | ||
8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 | ||
8673 | $as_echo "$ac_cv_search_updwtmp" >&6; } | ||
8674 | ac_res=$ac_cv_search_updwtmp | ||
8675 | if test "$ac_res" != no; then : | ||
8676 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8677 | |||
8678 | fi | ||
8679 | |||
8680 | for ac_func in fmt_scaled login logout openpty updwtmp logwtmp | ||
8681 | do : | ||
8682 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8683 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8684 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8685 | cat >>confdefs.h <<_ACEOF | ||
8686 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8687 | _ACEOF | ||
8688 | |||
8689 | fi | ||
8690 | done | ||
8691 | |||
8692 | |||
8693 | for ac_func in strftime | ||
8694 | do : | ||
8695 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" | ||
8696 | if test "x$ac_cv_func_strftime" = xyes; then : | ||
8697 | cat >>confdefs.h <<_ACEOF | ||
8698 | #define HAVE_STRFTIME 1 | ||
8699 | _ACEOF | ||
8700 | |||
8701 | else | ||
8702 | # strftime is in -lintl on SCO UNIX. | ||
8703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 | ||
8704 | $as_echo_n "checking for strftime in -lintl... " >&6; } | ||
8705 | if ${ac_cv_lib_intl_strftime+:} false; then : | ||
8706 | $as_echo_n "(cached) " >&6 | ||
8707 | else | ||
8708 | ac_check_lib_save_LIBS=$LIBS | ||
8709 | LIBS="-lintl $LIBS" | ||
8710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8711 | /* end confdefs.h. */ | ||
8712 | |||
8713 | /* Override any GCC internal prototype to avoid an error. | ||
8714 | Use char because int might match the return type of a GCC | ||
8715 | builtin and then its argument prototype would still apply. */ | ||
8716 | #ifdef __cplusplus | ||
8717 | extern "C" | ||
8718 | #endif | ||
8719 | char strftime (); | ||
8720 | int | ||
8721 | main () | ||
8722 | { | ||
8723 | return strftime (); | ||
8724 | ; | ||
8725 | return 0; | ||
8726 | } | ||
8727 | _ACEOF | ||
8728 | if ac_fn_c_try_link "$LINENO"; then : | ||
8729 | ac_cv_lib_intl_strftime=yes | ||
8730 | else | ||
8731 | ac_cv_lib_intl_strftime=no | ||
8732 | fi | ||
8733 | rm -f core conftest.err conftest.$ac_objext \ | ||
8734 | conftest$ac_exeext conftest.$ac_ext | ||
8735 | LIBS=$ac_check_lib_save_LIBS | ||
8736 | fi | ||
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 | ||
8738 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } | ||
8739 | if test "x$ac_cv_lib_intl_strftime" = xyes; then : | ||
8740 | $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h | ||
8741 | |||
8742 | LIBS="-lintl $LIBS" | ||
8743 | fi | ||
8744 | |||
8745 | fi | ||
8746 | done | ||
8747 | |||
8748 | |||
8749 | # Check for ALTDIRFUNC glob() extension | ||
8750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 | ||
8751 | $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } | ||
8752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8753 | /* end confdefs.h. */ | ||
8754 | |||
8755 | #include <glob.h> | ||
8756 | #ifdef GLOB_ALTDIRFUNC | ||
8757 | FOUNDIT | ||
8758 | #endif | ||
8759 | |||
8760 | _ACEOF | ||
8761 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
8762 | $EGREP "FOUNDIT" >/dev/null 2>&1; then : | ||
8763 | |||
8764 | |||
8765 | $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h | ||
8766 | |||
8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8768 | $as_echo "yes" >&6; } | ||
8769 | |||
8770 | else | ||
8771 | |||
8772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8773 | $as_echo "no" >&6; } | ||
8774 | |||
8775 | |||
8776 | fi | ||
8777 | rm -f conftest* | ||
8778 | |||
8779 | |||
8780 | # Check for g.gl_matchc glob() extension | ||
8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 | ||
8782 | $as_echo_n "checking for gl_matchc field in glob_t... " >&6; } | ||
8783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8784 | /* end confdefs.h. */ | ||
8785 | #include <glob.h> | ||
8786 | int | ||
8787 | main () | ||
8788 | { | ||
8789 | glob_t g; g.gl_matchc = 1; | ||
8790 | ; | ||
8791 | return 0; | ||
8792 | } | ||
8793 | _ACEOF | ||
8794 | if ac_fn_c_try_compile "$LINENO"; then : | ||
8795 | |||
8796 | |||
8797 | $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h | ||
8798 | |||
8799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8800 | $as_echo "yes" >&6; } | ||
8801 | |||
8802 | else | ||
8803 | |||
8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8805 | $as_echo "no" >&6; } | ||
8806 | |||
8807 | fi | ||
8808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8809 | |||
8810 | # Check for g.gl_statv glob() extension | ||
8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 | ||
8812 | $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } | ||
8813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8814 | /* end confdefs.h. */ | ||
8815 | #include <glob.h> | ||
8816 | int | ||
8817 | main () | ||
8818 | { | ||
8819 | |||
8820 | #ifndef GLOB_KEEPSTAT | ||
8821 | #error "glob does not support GLOB_KEEPSTAT extension" | ||
8822 | #endif | ||
8823 | glob_t g; | ||
8824 | g.gl_statv = NULL; | ||
8825 | |||
8826 | ; | ||
8827 | return 0; | ||
8828 | } | ||
8829 | _ACEOF | ||
8830 | if ac_fn_c_try_compile "$LINENO"; then : | ||
8831 | |||
8832 | |||
8833 | $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h | ||
8834 | |||
8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8836 | $as_echo "yes" >&6; } | ||
8837 | |||
8838 | else | ||
8839 | |||
8840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8841 | $as_echo "no" >&6; } | ||
8842 | |||
8843 | |||
8844 | fi | ||
8845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8846 | |||
8847 | ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> | ||
8848 | " | ||
8849 | if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : | ||
8850 | ac_have_decl=1 | ||
8851 | else | ||
8852 | ac_have_decl=0 | ||
8853 | fi | ||
8854 | |||
8855 | cat >>confdefs.h <<_ACEOF | ||
8856 | #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl | ||
8857 | _ACEOF | ||
8858 | |||
8859 | |||
8860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 | ||
8861 | $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } | ||
8862 | if test "$cross_compiling" = yes; then : | ||
8863 | |||
8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
8865 | $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
8866 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
8867 | |||
8868 | |||
8869 | |||
8870 | else | ||
8871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8872 | /* end confdefs.h. */ | ||
8873 | |||
8874 | #include <sys/types.h> | ||
8875 | #include <dirent.h> | ||
8876 | int | ||
8877 | main () | ||
8878 | { | ||
8879 | |||
8880 | struct dirent d; | ||
8881 | exit(sizeof(d.d_name)<=sizeof(char)); | ||
8882 | |||
8883 | ; | ||
8884 | return 0; | ||
8885 | } | ||
8886 | _ACEOF | ||
8887 | if ac_fn_c_try_run "$LINENO"; then : | ||
8888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8889 | $as_echo "yes" >&6; } | ||
8890 | else | ||
8891 | |||
8892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8893 | $as_echo "no" >&6; } | ||
8894 | |||
8895 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
8896 | |||
8897 | |||
8898 | fi | ||
8899 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8900 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8901 | fi | ||
8902 | |||
8903 | |||
8904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 | ||
8905 | $as_echo_n "checking for /proc/pid/fd directory... " >&6; } | ||
8906 | if test -d "/proc/$$/fd" ; then | ||
8907 | |||
8908 | $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h | ||
8909 | |||
8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8911 | $as_echo "yes" >&6; } | ||
8912 | else | ||
8913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8914 | $as_echo "no" >&6; } | ||
8915 | fi | ||
8916 | |||
8917 | # Check whether user wants S/Key support | ||
8918 | SKEY_MSG="no" | ||
8919 | |||
8920 | # Check whether --with-skey was given. | ||
8921 | if test "${with_skey+set}" = set; then : | ||
8922 | withval=$with_skey; | ||
8923 | if test "x$withval" != "xno" ; then | ||
8924 | |||
8925 | if test "x$withval" != "xyes" ; then | ||
8926 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
8927 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
8928 | fi | ||
8929 | |||
8930 | |||
8931 | $as_echo "#define SKEY 1" >>confdefs.h | ||
8932 | |||
8933 | LIBS="-lskey $LIBS" | ||
8934 | SKEY_MSG="yes" | ||
8935 | |||
8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5 | ||
8937 | $as_echo_n "checking for s/key support... " >&6; } | ||
8938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8939 | /* end confdefs.h. */ | ||
8940 | |||
8941 | #include <stdio.h> | ||
8942 | #include <skey.h> | ||
8943 | |||
8944 | int | ||
8945 | main () | ||
8946 | { | ||
8947 | |||
8948 | char *ff = skey_keyinfo(""); ff=""; | ||
8949 | exit(0); | ||
8950 | |||
8951 | ; | ||
8952 | return 0; | ||
8953 | } | ||
8954 | _ACEOF | ||
8955 | if ac_fn_c_try_link "$LINENO"; then : | ||
8956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8957 | $as_echo "yes" >&6; } | ||
8958 | else | ||
8959 | |||
8960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8961 | $as_echo "no" >&6; } | ||
8962 | as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5 | ||
8963 | |||
8964 | fi | ||
8965 | rm -f core conftest.err conftest.$ac_objext \ | ||
8966 | conftest$ac_exeext conftest.$ac_ext | ||
8967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5 | ||
8968 | $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; } | ||
8969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8970 | /* end confdefs.h. */ | ||
8971 | |||
8972 | #include <stdio.h> | ||
8973 | #include <skey.h> | ||
8974 | |||
8975 | int | ||
8976 | main () | ||
8977 | { | ||
8978 | |||
8979 | (void)skeychallenge(NULL,"name","",0); | ||
8980 | |||
8981 | ; | ||
8982 | return 0; | ||
8983 | } | ||
8984 | _ACEOF | ||
8985 | if ac_fn_c_try_compile "$LINENO"; then : | ||
8986 | |||
8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8988 | $as_echo "yes" >&6; } | ||
8989 | |||
8990 | $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h | ||
8991 | |||
8992 | else | ||
8993 | |||
8994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8995 | $as_echo "no" >&6; } | ||
8996 | |||
8997 | fi | ||
8998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8999 | fi | ||
9000 | |||
9001 | |||
9002 | fi | ||
9003 | |||
9004 | |||
9005 | # Check whether user wants TCP wrappers support | ||
9006 | TCPW_MSG="no" | ||
9007 | |||
9008 | # Check whether --with-tcp-wrappers was given. | ||
9009 | if test "${with_tcp_wrappers+set}" = set; then : | ||
9010 | withval=$with_tcp_wrappers; | ||
9011 | if test "x$withval" != "xno" ; then | ||
9012 | saved_LIBS="$LIBS" | ||
9013 | saved_LDFLAGS="$LDFLAGS" | ||
9014 | saved_CPPFLAGS="$CPPFLAGS" | ||
9015 | if test -n "${withval}" && \ | ||
9016 | test "x${withval}" != "xyes"; then | ||
9017 | if test -d "${withval}/lib"; then | ||
9018 | if test -n "${need_dash_r}"; then | ||
9019 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
9020 | else | ||
9021 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9022 | fi | ||
9023 | else | ||
9024 | if test -n "${need_dash_r}"; then | ||
9025 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
9026 | else | ||
9027 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
9028 | fi | ||
9029 | fi | ||
9030 | if test -d "${withval}/include"; then | ||
9031 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
9032 | else | ||
9033 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
9034 | fi | ||
9035 | fi | ||
9036 | LIBS="-lwrap $LIBS" | ||
9037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5 | ||
9038 | $as_echo_n "checking for libwrap... " >&6; } | ||
9039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9040 | /* end confdefs.h. */ | ||
9041 | |||
9042 | #include <sys/types.h> | ||
9043 | #include <sys/socket.h> | ||
9044 | #include <netinet/in.h> | ||
9045 | #include <tcpd.h> | ||
9046 | int deny_severity = 0, allow_severity = 0; | ||
9047 | |||
9048 | int | ||
9049 | main () | ||
9050 | { | ||
9051 | |||
9052 | hosts_access(0); | ||
9053 | |||
9054 | ; | ||
9055 | return 0; | ||
9056 | } | ||
9057 | _ACEOF | ||
9058 | if ac_fn_c_try_link "$LINENO"; then : | ||
9059 | |||
9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9061 | $as_echo "yes" >&6; } | ||
9062 | |||
9063 | $as_echo "#define LIBWRAP 1" >>confdefs.h | ||
9064 | |||
9065 | SSHDLIBS="$SSHDLIBS -lwrap" | ||
9066 | TCPW_MSG="yes" | ||
9067 | |||
9068 | else | ||
9069 | |||
9070 | as_fn_error $? "*** libwrap missing" "$LINENO" 5 | ||
9071 | |||
9072 | |||
9073 | fi | ||
9074 | rm -f core conftest.err conftest.$ac_objext \ | ||
9075 | conftest$ac_exeext conftest.$ac_ext | ||
9076 | LIBS="$saved_LIBS" | ||
9077 | fi | ||
9078 | |||
9079 | |||
9080 | fi | ||
9081 | |||
9082 | |||
9083 | # Check whether user wants to use ldns | ||
9084 | LDNS_MSG="no" | ||
9085 | |||
9086 | # Check whether --with-ldns was given. | ||
9087 | if test "${with_ldns+set}" = set; then : | ||
9088 | withval=$with_ldns; | ||
9089 | if test "x$withval" != "xno" ; then | ||
9090 | |||
9091 | if test "x$withval" != "xyes" ; then | ||
9092 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9093 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
9094 | fi | ||
9095 | |||
9096 | |||
9097 | $as_echo "#define HAVE_LDNS 1" >>confdefs.h | ||
9098 | |||
9099 | LIBS="-lldns $LIBS" | ||
9100 | LDNS_MSG="yes" | ||
9101 | |||
9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 | ||
9103 | $as_echo_n "checking for ldns support... " >&6; } | ||
9104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9105 | /* end confdefs.h. */ | ||
9106 | |||
9107 | #include <stdio.h> | ||
9108 | #include <stdlib.h> | ||
9109 | #include <stdint.h> | ||
9110 | #include <ldns/ldns.h> | ||
9111 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } | ||
9112 | |||
9113 | |||
9114 | _ACEOF | ||
9115 | if ac_fn_c_try_link "$LINENO"; then : | ||
9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9117 | $as_echo "yes" >&6; } | ||
9118 | else | ||
9119 | |||
9120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9121 | $as_echo "no" >&6; } | ||
9122 | as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 | ||
9123 | |||
9124 | fi | ||
9125 | rm -f core conftest.err conftest.$ac_objext \ | ||
9126 | conftest$ac_exeext conftest.$ac_ext | ||
9127 | fi | ||
9128 | |||
9129 | |||
9130 | fi | ||
9131 | |||
9132 | |||
9133 | # Check whether user wants libedit support | ||
9134 | LIBEDIT_MSG="no" | ||
9135 | |||
9136 | # Check whether --with-libedit was given. | ||
9137 | if test "${with_libedit+set}" = set; then : | ||
9138 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
9139 | if test "x$withval" = "xyes" ; then | ||
9140 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
9141 | set dummy pkg-config; ac_word=$2 | ||
9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
9143 | $as_echo_n "checking for $ac_word... " >&6; } | ||
9144 | if ${ac_cv_path_PKGCONFIG+:} false; then : | ||
9145 | $as_echo_n "(cached) " >&6 | ||
9146 | else | ||
9147 | case $PKGCONFIG in | ||
9148 | [\\/]* | ?:[\\/]*) | ||
9149 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
9150 | ;; | ||
9151 | *) | ||
9152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9153 | for as_dir in $PATH | ||
9154 | do | ||
9155 | IFS=$as_save_IFS | ||
9156 | test -z "$as_dir" && as_dir=. | ||
9157 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
9159 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
9160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9161 | break 2 | ||
9162 | fi | ||
9163 | done | ||
9164 | done | ||
9165 | IFS=$as_save_IFS | ||
9166 | |||
9167 | test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" | ||
9168 | ;; | ||
9169 | esac | ||
9170 | fi | ||
9171 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
9172 | if test -n "$PKGCONFIG"; then | ||
9173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | ||
9174 | $as_echo "$PKGCONFIG" >&6; } | ||
9175 | else | ||
9176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9177 | $as_echo "no" >&6; } | ||
9178 | fi | ||
9179 | |||
9180 | |||
9181 | if test "x$PKGCONFIG" != "xno"; then | ||
9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 | ||
9183 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } | ||
9184 | if "$PKGCONFIG" libedit; then | ||
9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9186 | $as_echo "yes" >&6; } | ||
9187 | use_pkgconfig_for_libedit=yes | ||
9188 | else | ||
9189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9190 | $as_echo "no" >&6; } | ||
9191 | fi | ||
9192 | fi | ||
9193 | else | ||
9194 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9195 | if test -n "${need_dash_r}"; then | ||
9196 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
9197 | else | ||
9198 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9199 | fi | ||
9200 | fi | ||
9201 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then | ||
9202 | LIBEDIT=`$PKGCONFIG --libs-only-l libedit` | ||
9203 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
9204 | else | ||
9205 | LIBEDIT="-ledit -lcurses" | ||
9206 | fi | ||
9207 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
9208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 | ||
9209 | $as_echo_n "checking for el_init in -ledit... " >&6; } | ||
9210 | if ${ac_cv_lib_edit_el_init+:} false; then : | ||
9211 | $as_echo_n "(cached) " >&6 | ||
9212 | else | ||
9213 | ac_check_lib_save_LIBS=$LIBS | ||
9214 | LIBS="-ledit $OTHERLIBS | ||
9215 | $LIBS" | ||
9216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9217 | /* end confdefs.h. */ | ||
9218 | |||
9219 | /* Override any GCC internal prototype to avoid an error. | ||
9220 | Use char because int might match the return type of a GCC | ||
9221 | builtin and then its argument prototype would still apply. */ | ||
9222 | #ifdef __cplusplus | ||
9223 | extern "C" | ||
9224 | #endif | ||
9225 | char el_init (); | ||
9226 | int | ||
9227 | main () | ||
9228 | { | ||
9229 | return el_init (); | ||
9230 | ; | ||
9231 | return 0; | ||
9232 | } | ||
9233 | _ACEOF | ||
9234 | if ac_fn_c_try_link "$LINENO"; then : | ||
9235 | ac_cv_lib_edit_el_init=yes | ||
9236 | else | ||
9237 | ac_cv_lib_edit_el_init=no | ||
9238 | fi | ||
9239 | rm -f core conftest.err conftest.$ac_objext \ | ||
9240 | conftest$ac_exeext conftest.$ac_ext | ||
9241 | LIBS=$ac_check_lib_save_LIBS | ||
9242 | fi | ||
9243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 | ||
9244 | $as_echo "$ac_cv_lib_edit_el_init" >&6; } | ||
9245 | if test "x$ac_cv_lib_edit_el_init" = xyes; then : | ||
9246 | |||
9247 | $as_echo "#define USE_LIBEDIT 1" >>confdefs.h | ||
9248 | |||
9249 | LIBEDIT_MSG="yes" | ||
9250 | |||
9251 | |||
9252 | else | ||
9253 | as_fn_error $? "libedit not found" "$LINENO" 5 | ||
9254 | fi | ||
9255 | |||
9256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 | ||
9257 | $as_echo_n "checking if libedit version is compatible... " >&6; } | ||
9258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9259 | /* end confdefs.h. */ | ||
9260 | #include <histedit.h> | ||
9261 | int | ||
9262 | main () | ||
9263 | { | ||
9264 | |||
9265 | int i = H_SETSIZE; | ||
9266 | el_init("", NULL, NULL, NULL); | ||
9267 | exit(0); | ||
9268 | |||
9269 | ; | ||
9270 | return 0; | ||
9271 | } | ||
9272 | _ACEOF | ||
9273 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9275 | $as_echo "yes" >&6; } | ||
9276 | else | ||
9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9278 | $as_echo "no" >&6; } | ||
9279 | as_fn_error $? "libedit version is not compatible" "$LINENO" 5 | ||
9280 | |||
9281 | fi | ||
9282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9283 | fi | ||
9284 | |||
9285 | fi | ||
9286 | |||
9287 | |||
9288 | AUDIT_MODULE=none | ||
9289 | |||
9290 | # Check whether --with-audit was given. | ||
9291 | if test "${with_audit+set}" = set; then : | ||
9292 | withval=$with_audit; | ||
9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 | ||
9294 | $as_echo_n "checking for supported audit module... " >&6; } | ||
9295 | case "$withval" in | ||
9296 | bsm) | ||
9297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 | ||
9298 | $as_echo "bsm" >&6; } | ||
9299 | AUDIT_MODULE=bsm | ||
9300 | for ac_header in bsm/audit.h | ||
9301 | do : | ||
9302 | ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " | ||
9303 | #ifdef HAVE_TIME_H | ||
9304 | # include <time.h> | ||
9305 | #endif | ||
9306 | |||
9307 | |||
9308 | " | ||
9309 | if test "x$ac_cv_header_bsm_audit_h" = xyes; then : | ||
9310 | cat >>confdefs.h <<_ACEOF | ||
9311 | #define HAVE_BSM_AUDIT_H 1 | ||
9312 | _ACEOF | ||
9313 | |||
9314 | else | ||
9315 | as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 | ||
9316 | fi | ||
9317 | |||
9318 | done | ||
9319 | |||
9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 | ||
9321 | $as_echo_n "checking for getaudit in -lbsm... " >&6; } | ||
9322 | if ${ac_cv_lib_bsm_getaudit+:} false; then : | ||
9323 | $as_echo_n "(cached) " >&6 | ||
9324 | else | ||
9325 | ac_check_lib_save_LIBS=$LIBS | ||
9326 | LIBS="-lbsm $LIBS" | ||
9327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9328 | /* end confdefs.h. */ | ||
9329 | |||
9330 | /* Override any GCC internal prototype to avoid an error. | ||
9331 | Use char because int might match the return type of a GCC | ||
9332 | builtin and then its argument prototype would still apply. */ | ||
9333 | #ifdef __cplusplus | ||
9334 | extern "C" | ||
9335 | #endif | ||
9336 | char getaudit (); | ||
9337 | int | ||
9338 | main () | ||
9339 | { | ||
9340 | return getaudit (); | ||
9341 | ; | ||
9342 | return 0; | ||
9343 | } | ||
9344 | _ACEOF | ||
9345 | if ac_fn_c_try_link "$LINENO"; then : | ||
9346 | ac_cv_lib_bsm_getaudit=yes | ||
9347 | else | ||
9348 | ac_cv_lib_bsm_getaudit=no | ||
9349 | fi | ||
9350 | rm -f core conftest.err conftest.$ac_objext \ | ||
9351 | conftest$ac_exeext conftest.$ac_ext | ||
9352 | LIBS=$ac_check_lib_save_LIBS | ||
9353 | fi | ||
9354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
9355 | $as_echo "$ac_cv_lib_bsm_getaudit" >&6; } | ||
9356 | if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : | ||
9357 | cat >>confdefs.h <<_ACEOF | ||
9358 | #define HAVE_LIBBSM 1 | ||
9359 | _ACEOF | ||
9360 | |||
9361 | LIBS="-lbsm $LIBS" | ||
9362 | |||
9363 | else | ||
9364 | as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 | ||
9365 | fi | ||
9366 | |||
9367 | for ac_func in getaudit | ||
9368 | do : | ||
9369 | ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" | ||
9370 | if test "x$ac_cv_func_getaudit" = xyes; then : | ||
9371 | cat >>confdefs.h <<_ACEOF | ||
9372 | #define HAVE_GETAUDIT 1 | ||
9373 | _ACEOF | ||
9374 | |||
9375 | else | ||
9376 | as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 | ||
9377 | fi | ||
9378 | done | ||
9379 | |||
9380 | # These are optional | ||
9381 | for ac_func in getaudit_addr aug_get_machine | ||
9382 | do : | ||
9383 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9384 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
9385 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
9386 | cat >>confdefs.h <<_ACEOF | ||
9387 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9388 | _ACEOF | ||
9389 | |||
9390 | fi | ||
9391 | done | ||
9392 | |||
9393 | |||
9394 | $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h | ||
9395 | |||
9396 | if test "$sol2ver" -eq 11; then | ||
9397 | SSHDLIBS="$SSHDLIBS -lscf" | ||
9398 | |||
9399 | $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h | ||
9400 | |||
9401 | fi | ||
9402 | ;; | ||
9403 | linux) | ||
9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 | ||
9405 | $as_echo "linux" >&6; } | ||
9406 | AUDIT_MODULE=linux | ||
9407 | for ac_header in libaudit.h | ||
9408 | do : | ||
9409 | ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" | ||
9410 | if test "x$ac_cv_header_libaudit_h" = xyes; then : | ||
9411 | cat >>confdefs.h <<_ACEOF | ||
9412 | #define HAVE_LIBAUDIT_H 1 | ||
9413 | _ACEOF | ||
9414 | |||
9415 | fi | ||
9416 | |||
9417 | done | ||
9418 | |||
9419 | SSHDLIBS="$SSHDLIBS -laudit" | ||
9420 | |||
9421 | $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h | ||
9422 | |||
9423 | ;; | ||
9424 | debug) | ||
9425 | AUDIT_MODULE=debug | ||
9426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 | ||
9427 | $as_echo "debug" >&6; } | ||
9428 | |||
9429 | $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h | ||
9430 | |||
9431 | ;; | ||
9432 | no) | ||
9433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9434 | $as_echo "no" >&6; } | ||
9435 | ;; | ||
9436 | *) | ||
9437 | as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 | ||
9438 | ;; | ||
9439 | esac | ||
9440 | |||
9441 | fi | ||
9442 | |||
9443 | |||
9444 | for ac_func in \ | ||
9445 | arc4random \ | ||
9446 | arc4random_buf \ | ||
9447 | arc4random_uniform \ | ||
9448 | asprintf \ | ||
9449 | b64_ntop \ | ||
9450 | __b64_ntop \ | ||
9451 | b64_pton \ | ||
9452 | __b64_pton \ | ||
9453 | bcopy \ | ||
9454 | bindresvport_sa \ | ||
9455 | clock \ | ||
9456 | closefrom \ | ||
9457 | dirfd \ | ||
9458 | fchmod \ | ||
9459 | fchown \ | ||
9460 | freeaddrinfo \ | ||
9461 | fstatvfs \ | ||
9462 | futimes \ | ||
9463 | getaddrinfo \ | ||
9464 | getcwd \ | ||
9465 | getgrouplist \ | ||
9466 | getnameinfo \ | ||
9467 | getopt \ | ||
9468 | getpeereid \ | ||
9469 | getpeerucred \ | ||
9470 | _getpty \ | ||
9471 | getrlimit \ | ||
9472 | getttyent \ | ||
9473 | glob \ | ||
9474 | group_from_gid \ | ||
9475 | inet_aton \ | ||
9476 | inet_ntoa \ | ||
9477 | inet_ntop \ | ||
9478 | innetgr \ | ||
9479 | login_getcapbool \ | ||
9480 | md5_crypt \ | ||
9481 | memmove \ | ||
9482 | mkdtemp \ | ||
9483 | mmap \ | ||
9484 | ngetaddrinfo \ | ||
9485 | nsleep \ | ||
9486 | ogetaddrinfo \ | ||
9487 | openlog_r \ | ||
9488 | poll \ | ||
9489 | prctl \ | ||
9490 | pstat \ | ||
9491 | readpassphrase \ | ||
9492 | realpath \ | ||
9493 | recvmsg \ | ||
9494 | rresvport_af \ | ||
9495 | sendmsg \ | ||
9496 | setdtablesize \ | ||
9497 | setegid \ | ||
9498 | setenv \ | ||
9499 | seteuid \ | ||
9500 | setgroupent \ | ||
9501 | setgroups \ | ||
9502 | setlogin \ | ||
9503 | setpassent\ | ||
9504 | setpcred \ | ||
9505 | setproctitle \ | ||
9506 | setregid \ | ||
9507 | setreuid \ | ||
9508 | setrlimit \ | ||
9509 | setsid \ | ||
9510 | setvbuf \ | ||
9511 | sigaction \ | ||
9512 | sigvec \ | ||
9513 | snprintf \ | ||
9514 | socketpair \ | ||
9515 | statfs \ | ||
9516 | statvfs \ | ||
9517 | strdup \ | ||
9518 | strerror \ | ||
9519 | strlcat \ | ||
9520 | strlcpy \ | ||
9521 | strmode \ | ||
9522 | strnlen \ | ||
9523 | strnvis \ | ||
9524 | strptime \ | ||
9525 | strtonum \ | ||
9526 | strtoll \ | ||
9527 | strtoul \ | ||
9528 | swap32 \ | ||
9529 | sysconf \ | ||
9530 | tcgetpgrp \ | ||
9531 | timingsafe_bcmp \ | ||
9532 | truncate \ | ||
9533 | unsetenv \ | ||
9534 | updwtmpx \ | ||
9535 | user_from_uid \ | ||
9536 | vasprintf \ | ||
9537 | vhangup \ | ||
9538 | vsnprintf \ | ||
9539 | waitpid \ | ||
9540 | |||
9541 | do : | ||
9542 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9543 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
9544 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
9545 | cat >>confdefs.h <<_ACEOF | ||
9546 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9547 | _ACEOF | ||
9548 | |||
9549 | fi | ||
9550 | done | ||
9551 | |||
9552 | |||
9553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9554 | /* end confdefs.h. */ | ||
9555 | #include <ctype.h> | ||
9556 | int | ||
9557 | main () | ||
9558 | { | ||
9559 | return (isblank('a')); | ||
9560 | ; | ||
9561 | return 0; | ||
9562 | } | ||
9563 | _ACEOF | ||
9564 | if ac_fn_c_try_link "$LINENO"; then : | ||
9565 | |||
9566 | $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h | ||
9567 | |||
9568 | |||
9569 | fi | ||
9570 | rm -f core conftest.err conftest.$ac_objext \ | ||
9571 | conftest$ac_exeext conftest.$ac_ext | ||
9572 | |||
9573 | # PKCS#11 support requires dlopen() and co | ||
9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | ||
9575 | $as_echo_n "checking for library containing dlopen... " >&6; } | ||
9576 | if ${ac_cv_search_dlopen+:} false; then : | ||
9577 | $as_echo_n "(cached) " >&6 | ||
9578 | else | ||
9579 | ac_func_search_save_LIBS=$LIBS | ||
9580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9581 | /* end confdefs.h. */ | ||
9582 | |||
9583 | /* Override any GCC internal prototype to avoid an error. | ||
9584 | Use char because int might match the return type of a GCC | ||
9585 | builtin and then its argument prototype would still apply. */ | ||
9586 | #ifdef __cplusplus | ||
9587 | extern "C" | ||
9588 | #endif | ||
9589 | char dlopen (); | ||
9590 | int | ||
9591 | main () | ||
9592 | { | ||
9593 | return dlopen (); | ||
9594 | ; | ||
9595 | return 0; | ||
9596 | } | ||
9597 | _ACEOF | ||
9598 | for ac_lib in '' dl; do | ||
9599 | if test -z "$ac_lib"; then | ||
9600 | ac_res="none required" | ||
9601 | else | ||
9602 | ac_res=-l$ac_lib | ||
9603 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9604 | fi | ||
9605 | if ac_fn_c_try_link "$LINENO"; then : | ||
9606 | ac_cv_search_dlopen=$ac_res | ||
9607 | fi | ||
9608 | rm -f core conftest.err conftest.$ac_objext \ | ||
9609 | conftest$ac_exeext | ||
9610 | if ${ac_cv_search_dlopen+:} false; then : | ||
9611 | break | ||
9612 | fi | ||
9613 | done | ||
9614 | if ${ac_cv_search_dlopen+:} false; then : | ||
9615 | |||
9616 | else | ||
9617 | ac_cv_search_dlopen=no | ||
9618 | fi | ||
9619 | rm conftest.$ac_ext | ||
9620 | LIBS=$ac_func_search_save_LIBS | ||
9621 | fi | ||
9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | ||
9623 | $as_echo "$ac_cv_search_dlopen" >&6; } | ||
9624 | ac_res=$ac_cv_search_dlopen | ||
9625 | if test "$ac_res" != no; then : | ||
9626 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9627 | |||
9628 | $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h | ||
9629 | |||
9630 | |||
9631 | fi | ||
9632 | |||
9633 | |||
9634 | # IRIX has a const char return value for gai_strerror() | ||
9635 | for ac_func in gai_strerror | ||
9636 | do : | ||
9637 | ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" | ||
9638 | if test "x$ac_cv_func_gai_strerror" = xyes; then : | ||
9639 | cat >>confdefs.h <<_ACEOF | ||
9640 | #define HAVE_GAI_STRERROR 1 | ||
9641 | _ACEOF | ||
9642 | |||
9643 | $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h | ||
9644 | |||
9645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9646 | /* end confdefs.h. */ | ||
9647 | |||
9648 | #include <sys/types.h> | ||
9649 | #include <sys/socket.h> | ||
9650 | #include <netdb.h> | ||
9651 | |||
9652 | const char *gai_strerror(int); | ||
9653 | |||
9654 | int | ||
9655 | main () | ||
9656 | { | ||
9657 | |||
9658 | char *str; | ||
9659 | str = gai_strerror(0); | ||
9660 | |||
9661 | ; | ||
9662 | return 0; | ||
9663 | } | ||
9664 | _ACEOF | ||
9665 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9666 | |||
9667 | |||
9668 | $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h | ||
9669 | |||
9670 | fi | ||
9671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9672 | fi | ||
9673 | done | ||
9674 | |||
9675 | |||
9676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 | ||
9677 | $as_echo_n "checking for library containing nanosleep... " >&6; } | ||
9678 | if ${ac_cv_search_nanosleep+:} false; then : | ||
9679 | $as_echo_n "(cached) " >&6 | ||
9680 | else | ||
9681 | ac_func_search_save_LIBS=$LIBS | ||
9682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9683 | /* end confdefs.h. */ | ||
9684 | |||
9685 | /* Override any GCC internal prototype to avoid an error. | ||
9686 | Use char because int might match the return type of a GCC | ||
9687 | builtin and then its argument prototype would still apply. */ | ||
9688 | #ifdef __cplusplus | ||
9689 | extern "C" | ||
9690 | #endif | ||
9691 | char nanosleep (); | ||
9692 | int | ||
9693 | main () | ||
9694 | { | ||
9695 | return nanosleep (); | ||
9696 | ; | ||
9697 | return 0; | ||
9698 | } | ||
9699 | _ACEOF | ||
9700 | for ac_lib in '' rt posix4; do | ||
9701 | if test -z "$ac_lib"; then | ||
9702 | ac_res="none required" | ||
9703 | else | ||
9704 | ac_res=-l$ac_lib | ||
9705 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9706 | fi | ||
9707 | if ac_fn_c_try_link "$LINENO"; then : | ||
9708 | ac_cv_search_nanosleep=$ac_res | ||
9709 | fi | ||
9710 | rm -f core conftest.err conftest.$ac_objext \ | ||
9711 | conftest$ac_exeext | ||
9712 | if ${ac_cv_search_nanosleep+:} false; then : | ||
9713 | break | ||
9714 | fi | ||
9715 | done | ||
9716 | if ${ac_cv_search_nanosleep+:} false; then : | ||
9717 | |||
9718 | else | ||
9719 | ac_cv_search_nanosleep=no | ||
9720 | fi | ||
9721 | rm conftest.$ac_ext | ||
9722 | LIBS=$ac_func_search_save_LIBS | ||
9723 | fi | ||
9724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | ||
9725 | $as_echo "$ac_cv_search_nanosleep" >&6; } | ||
9726 | ac_res=$ac_cv_search_nanosleep | ||
9727 | if test "$ac_res" != no; then : | ||
9728 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9729 | |||
9730 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h | ||
9731 | |||
9732 | fi | ||
9733 | |||
9734 | |||
9735 | ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" | ||
9736 | if test "x$ac_cv_have_decl_getrusage" = xyes; then : | ||
9737 | for ac_func in getrusage | ||
9738 | do : | ||
9739 | ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" | ||
9740 | if test "x$ac_cv_func_getrusage" = xyes; then : | ||
9741 | cat >>confdefs.h <<_ACEOF | ||
9742 | #define HAVE_GETRUSAGE 1 | ||
9743 | _ACEOF | ||
9744 | |||
9745 | fi | ||
9746 | done | ||
9747 | |||
9748 | fi | ||
9749 | |||
9750 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " | ||
9751 | #ifdef HAVE_STRING_H | ||
9752 | # include <string.h> | ||
9753 | #endif | ||
9754 | |||
9755 | " | ||
9756 | if test "x$ac_cv_have_decl_strsep" = xyes; then : | ||
9757 | for ac_func in strsep | ||
9758 | do : | ||
9759 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" | ||
9760 | if test "x$ac_cv_func_strsep" = xyes; then : | ||
9761 | cat >>confdefs.h <<_ACEOF | ||
9762 | #define HAVE_STRSEP 1 | ||
9763 | _ACEOF | ||
9764 | |||
9765 | fi | ||
9766 | done | ||
9767 | |||
9768 | fi | ||
9769 | |||
9770 | |||
9771 | ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> | ||
9772 | |||
9773 | " | ||
9774 | if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then : | ||
9775 | $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h | ||
9776 | |||
9777 | else | ||
9778 | for ac_func in tcsendbreak | ||
9779 | do : | ||
9780 | ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" | ||
9781 | if test "x$ac_cv_func_tcsendbreak" = xyes; then : | ||
9782 | cat >>confdefs.h <<_ACEOF | ||
9783 | #define HAVE_TCSENDBREAK 1 | ||
9784 | _ACEOF | ||
9785 | |||
9786 | fi | ||
9787 | done | ||
9788 | |||
9789 | fi | ||
9790 | |||
9791 | |||
9792 | ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> | ||
9793 | " | ||
9794 | if test "x$ac_cv_have_decl_h_errno" = xyes; then : | ||
9795 | ac_have_decl=1 | ||
9796 | else | ||
9797 | ac_have_decl=0 | ||
9798 | fi | ||
9799 | |||
9800 | cat >>confdefs.h <<_ACEOF | ||
9801 | #define HAVE_DECL_H_ERRNO $ac_have_decl | ||
9802 | _ACEOF | ||
9803 | |||
9804 | |||
9805 | ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " | ||
9806 | #include <sys/types.h> | ||
9807 | #include <sys/socket.h> | ||
9808 | |||
9809 | " | ||
9810 | if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : | ||
9811 | ac_have_decl=1 | ||
9812 | else | ||
9813 | ac_have_decl=0 | ||
9814 | fi | ||
9815 | |||
9816 | cat >>confdefs.h <<_ACEOF | ||
9817 | #define HAVE_DECL_SHUT_RD $ac_have_decl | ||
9818 | _ACEOF | ||
9819 | |||
9820 | |||
9821 | ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " | ||
9822 | #include <sys/types.h> | ||
9823 | #ifdef HAVE_SYS_STAT_H | ||
9824 | # include <sys/stat.h> | ||
9825 | #endif | ||
9826 | #ifdef HAVE_FCNTL_H | ||
9827 | # include <fcntl.h> | ||
9828 | #endif | ||
9829 | |||
9830 | " | ||
9831 | if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : | ||
9832 | ac_have_decl=1 | ||
9833 | else | ||
9834 | ac_have_decl=0 | ||
9835 | fi | ||
9836 | |||
9837 | cat >>confdefs.h <<_ACEOF | ||
9838 | #define HAVE_DECL_O_NONBLOCK $ac_have_decl | ||
9839 | _ACEOF | ||
9840 | |||
9841 | |||
9842 | ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " | ||
9843 | #include <sys/types.h> | ||
9844 | #include <sys/uio.h> | ||
9845 | #include <unistd.h> | ||
9846 | |||
9847 | " | ||
9848 | if test "x$ac_cv_have_decl_writev" = xyes; then : | ||
9849 | ac_have_decl=1 | ||
9850 | else | ||
9851 | ac_have_decl=0 | ||
9852 | fi | ||
9853 | |||
9854 | cat >>confdefs.h <<_ACEOF | ||
9855 | #define HAVE_DECL_WRITEV $ac_have_decl | ||
9856 | _ACEOF | ||
9857 | |||
9858 | |||
9859 | ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " | ||
9860 | #include <sys/param.h> | ||
9861 | |||
9862 | " | ||
9863 | if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : | ||
9864 | ac_have_decl=1 | ||
9865 | else | ||
9866 | ac_have_decl=0 | ||
9867 | fi | ||
9868 | |||
9869 | cat >>confdefs.h <<_ACEOF | ||
9870 | #define HAVE_DECL_MAXSYMLINKS $ac_have_decl | ||
9871 | _ACEOF | ||
9872 | |||
9873 | |||
9874 | ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " | ||
9875 | #include <stddef.h> | ||
9876 | |||
9877 | " | ||
9878 | if test "x$ac_cv_have_decl_offsetof" = xyes; then : | ||
9879 | ac_have_decl=1 | ||
9880 | else | ||
9881 | ac_have_decl=0 | ||
9882 | fi | ||
9883 | |||
9884 | cat >>confdefs.h <<_ACEOF | ||
9885 | #define HAVE_DECL_OFFSETOF $ac_have_decl | ||
9886 | _ACEOF | ||
9887 | |||
9888 | |||
9889 | for ac_func in setresuid | ||
9890 | do : | ||
9891 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" | ||
9892 | if test "x$ac_cv_func_setresuid" = xyes; then : | ||
9893 | cat >>confdefs.h <<_ACEOF | ||
9894 | #define HAVE_SETRESUID 1 | ||
9895 | _ACEOF | ||
9896 | |||
9897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 | ||
9898 | $as_echo_n "checking if setresuid seems to work... " >&6; } | ||
9899 | if test "$cross_compiling" = yes; then : | ||
9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
9901 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
9902 | |||
9903 | else | ||
9904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9905 | /* end confdefs.h. */ | ||
9906 | |||
9907 | #include <stdlib.h> | ||
9908 | #include <errno.h> | ||
9909 | |||
9910 | int | ||
9911 | main () | ||
9912 | { | ||
9913 | |||
9914 | errno=0; | ||
9915 | setresuid(0,0,0); | ||
9916 | if (errno==ENOSYS) | ||
9917 | exit(1); | ||
9918 | else | ||
9919 | exit(0); | ||
9920 | |||
9921 | ; | ||
9922 | return 0; | ||
9923 | } | ||
9924 | _ACEOF | ||
9925 | if ac_fn_c_try_run "$LINENO"; then : | ||
9926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9927 | $as_echo "yes" >&6; } | ||
9928 | else | ||
9929 | |||
9930 | $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h | ||
9931 | |||
9932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
9933 | $as_echo "not implemented" >&6; } | ||
9934 | fi | ||
9935 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
9936 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
9937 | fi | ||
9938 | |||
9939 | |||
9940 | fi | ||
9941 | done | ||
9942 | |||
9943 | |||
9944 | for ac_func in setresgid | ||
9945 | do : | ||
9946 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" | ||
9947 | if test "x$ac_cv_func_setresgid" = xyes; then : | ||
9948 | cat >>confdefs.h <<_ACEOF | ||
9949 | #define HAVE_SETRESGID 1 | ||
9950 | _ACEOF | ||
9951 | |||
9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 | ||
9953 | $as_echo_n "checking if setresgid seems to work... " >&6; } | ||
9954 | if test "$cross_compiling" = yes; then : | ||
9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
9956 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
9957 | |||
9958 | else | ||
9959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9960 | /* end confdefs.h. */ | ||
9961 | |||
9962 | #include <stdlib.h> | ||
9963 | #include <errno.h> | ||
9964 | |||
9965 | int | ||
9966 | main () | ||
9967 | { | ||
9968 | |||
9969 | errno=0; | ||
9970 | setresgid(0,0,0); | ||
9971 | if (errno==ENOSYS) | ||
9972 | exit(1); | ||
9973 | else | ||
9974 | exit(0); | ||
9975 | |||
9976 | ; | ||
9977 | return 0; | ||
9978 | } | ||
9979 | _ACEOF | ||
9980 | if ac_fn_c_try_run "$LINENO"; then : | ||
9981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9982 | $as_echo "yes" >&6; } | ||
9983 | else | ||
9984 | |||
9985 | $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h | ||
9986 | |||
9987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
9988 | $as_echo "not implemented" >&6; } | ||
9989 | fi | ||
9990 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
9991 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
9992 | fi | ||
9993 | |||
9994 | |||
9995 | fi | ||
9996 | done | ||
9997 | |||
9998 | |||
9999 | for ac_func in gettimeofday time | ||
10000 | do : | ||
10001 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10002 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10003 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10004 | cat >>confdefs.h <<_ACEOF | ||
10005 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10006 | _ACEOF | ||
10007 | |||
10008 | fi | ||
10009 | done | ||
10010 | |||
10011 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
10012 | do : | ||
10013 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10014 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10015 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10016 | cat >>confdefs.h <<_ACEOF | ||
10017 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10018 | _ACEOF | ||
10019 | |||
10020 | fi | ||
10021 | done | ||
10022 | |||
10023 | for ac_func in utmpname | ||
10024 | do : | ||
10025 | ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" | ||
10026 | if test "x$ac_cv_func_utmpname" = xyes; then : | ||
10027 | cat >>confdefs.h <<_ACEOF | ||
10028 | #define HAVE_UTMPNAME 1 | ||
10029 | _ACEOF | ||
10030 | |||
10031 | fi | ||
10032 | done | ||
10033 | |||
10034 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
10035 | do : | ||
10036 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10037 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10038 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10039 | cat >>confdefs.h <<_ACEOF | ||
10040 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10041 | _ACEOF | ||
10042 | |||
10043 | fi | ||
10044 | done | ||
10045 | |||
10046 | for ac_func in setutxdb setutxent utmpxname | ||
10047 | do : | ||
10048 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10049 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10050 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10051 | cat >>confdefs.h <<_ACEOF | ||
10052 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10053 | _ACEOF | ||
10054 | |||
10055 | fi | ||
10056 | done | ||
10057 | |||
10058 | for ac_func in getlastlogxbyname | ||
10059 | do : | ||
10060 | ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" | ||
10061 | if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : | ||
10062 | cat >>confdefs.h <<_ACEOF | ||
10063 | #define HAVE_GETLASTLOGXBYNAME 1 | ||
10064 | _ACEOF | ||
10065 | |||
10066 | fi | ||
10067 | done | ||
10068 | |||
10069 | |||
10070 | ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" | ||
10071 | if test "x$ac_cv_func_daemon" = xyes; then : | ||
10072 | |||
10073 | $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
10074 | |||
10075 | else | ||
10076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 | ||
10077 | $as_echo_n "checking for daemon in -lbsd... " >&6; } | ||
10078 | if ${ac_cv_lib_bsd_daemon+:} false; then : | ||
10079 | $as_echo_n "(cached) " >&6 | ||
10080 | else | ||
10081 | ac_check_lib_save_LIBS=$LIBS | ||
10082 | LIBS="-lbsd $LIBS" | ||
10083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10084 | /* end confdefs.h. */ | ||
10085 | |||
10086 | /* Override any GCC internal prototype to avoid an error. | ||
10087 | Use char because int might match the return type of a GCC | ||
10088 | builtin and then its argument prototype would still apply. */ | ||
10089 | #ifdef __cplusplus | ||
10090 | extern "C" | ||
10091 | #endif | ||
10092 | char daemon (); | ||
10093 | int | ||
10094 | main () | ||
10095 | { | ||
10096 | return daemon (); | ||
10097 | ; | ||
10098 | return 0; | ||
10099 | } | ||
10100 | _ACEOF | ||
10101 | if ac_fn_c_try_link "$LINENO"; then : | ||
10102 | ac_cv_lib_bsd_daemon=yes | ||
10103 | else | ||
10104 | ac_cv_lib_bsd_daemon=no | ||
10105 | fi | ||
10106 | rm -f core conftest.err conftest.$ac_objext \ | ||
10107 | conftest$ac_exeext conftest.$ac_ext | ||
10108 | LIBS=$ac_check_lib_save_LIBS | ||
10109 | fi | ||
10110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 | ||
10111 | $as_echo "$ac_cv_lib_bsd_daemon" >&6; } | ||
10112 | if test "x$ac_cv_lib_bsd_daemon" = xyes; then : | ||
10113 | LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
10114 | |||
10115 | fi | ||
10116 | |||
10117 | |||
10118 | fi | ||
10119 | |||
10120 | |||
10121 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | ||
10122 | if test "x$ac_cv_func_getpagesize" = xyes; then : | ||
10123 | |||
10124 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
10125 | |||
10126 | else | ||
10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 | ||
10128 | $as_echo_n "checking for getpagesize in -lucb... " >&6; } | ||
10129 | if ${ac_cv_lib_ucb_getpagesize+:} false; then : | ||
10130 | $as_echo_n "(cached) " >&6 | ||
10131 | else | ||
10132 | ac_check_lib_save_LIBS=$LIBS | ||
10133 | LIBS="-lucb $LIBS" | ||
10134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10135 | /* end confdefs.h. */ | ||
10136 | |||
10137 | /* Override any GCC internal prototype to avoid an error. | ||
10138 | Use char because int might match the return type of a GCC | ||
10139 | builtin and then its argument prototype would still apply. */ | ||
10140 | #ifdef __cplusplus | ||
10141 | extern "C" | ||
10142 | #endif | ||
10143 | char getpagesize (); | ||
10144 | int | ||
10145 | main () | ||
10146 | { | ||
10147 | return getpagesize (); | ||
10148 | ; | ||
10149 | return 0; | ||
10150 | } | ||
10151 | _ACEOF | ||
10152 | if ac_fn_c_try_link "$LINENO"; then : | ||
10153 | ac_cv_lib_ucb_getpagesize=yes | ||
10154 | else | ||
10155 | ac_cv_lib_ucb_getpagesize=no | ||
10156 | fi | ||
10157 | rm -f core conftest.err conftest.$ac_objext \ | ||
10158 | conftest$ac_exeext conftest.$ac_ext | ||
10159 | LIBS=$ac_check_lib_save_LIBS | ||
10160 | fi | ||
10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
10162 | $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } | ||
10163 | if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : | ||
10164 | LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
10165 | |||
10166 | fi | ||
10167 | |||
10168 | |||
10169 | fi | ||
10170 | |||
10171 | |||
10172 | # Check for broken snprintf | ||
10173 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
10174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 | ||
10175 | $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } | ||
10176 | if test "$cross_compiling" = yes; then : | ||
10177 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
10178 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
10179 | |||
10180 | else | ||
10181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10182 | /* end confdefs.h. */ | ||
10183 | #include <stdio.h> | ||
10184 | int | ||
10185 | main () | ||
10186 | { | ||
10187 | |||
10188 | char b[5]; | ||
10189 | snprintf(b,5,"123456789"); | ||
10190 | exit(b[4]!='\0'); | ||
10191 | |||
10192 | ; | ||
10193 | return 0; | ||
10194 | } | ||
10195 | _ACEOF | ||
10196 | if ac_fn_c_try_run "$LINENO"; then : | ||
10197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10198 | $as_echo "yes" >&6; } | ||
10199 | else | ||
10200 | |||
10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10202 | $as_echo "no" >&6; } | ||
10203 | |||
10204 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
10205 | |||
10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
10207 | $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
10208 | |||
10209 | fi | ||
10210 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10211 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10212 | fi | ||
10213 | |||
10214 | fi | ||
10215 | |||
10216 | # If we don't have a working asprintf, then we strongly depend on vsnprintf | ||
10217 | # returning the right thing on overflow: the number of characters it tried to | ||
10218 | # create (as per SUSv3) | ||
10219 | if test "x$ac_cv_func_asprintf" != "xyes" && \ | ||
10220 | test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
10221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 | ||
10222 | $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } | ||
10223 | if test "$cross_compiling" = yes; then : | ||
10224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
10225 | $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
10226 | |||
10227 | else | ||
10228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10229 | /* end confdefs.h. */ | ||
10230 | |||
10231 | #include <sys/types.h> | ||
10232 | #include <stdio.h> | ||
10233 | #include <stdarg.h> | ||
10234 | |||
10235 | int x_snprintf(char *str,size_t count,const char *fmt,...) | ||
10236 | { | ||
10237 | size_t ret; va_list ap; | ||
10238 | va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); | ||
10239 | return ret; | ||
10240 | } | ||
10241 | |||
10242 | int | ||
10243 | main () | ||
10244 | { | ||
10245 | |||
10246 | char x[1]; | ||
10247 | exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); | ||
10248 | |||
10249 | ; | ||
10250 | return 0; | ||
10251 | } | ||
10252 | _ACEOF | ||
10253 | if ac_fn_c_try_run "$LINENO"; then : | ||
10254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10255 | $as_echo "yes" >&6; } | ||
10256 | else | ||
10257 | |||
10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10259 | $as_echo "no" >&6; } | ||
10260 | |||
10261 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
10262 | |||
10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
10264 | $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
10265 | |||
10266 | fi | ||
10267 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10268 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10269 | fi | ||
10270 | |||
10271 | fi | ||
10272 | |||
10273 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
10274 | # check that the fmt argument is const char * or just char *. | ||
10275 | # This is only useful for when BROKEN_SNPRINTF | ||
10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 | ||
10277 | $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } | ||
10278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10279 | /* end confdefs.h. */ | ||
10280 | |||
10281 | #include <stdio.h> | ||
10282 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
10283 | |||
10284 | int | ||
10285 | main () | ||
10286 | { | ||
10287 | |||
10288 | snprintf(0, 0, 0); | ||
10289 | |||
10290 | ; | ||
10291 | return 0; | ||
10292 | } | ||
10293 | _ACEOF | ||
10294 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10296 | $as_echo "yes" >&6; } | ||
10297 | |||
10298 | $as_echo "#define SNPRINTF_CONST const" >>confdefs.h | ||
10299 | |||
10300 | else | ||
10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10302 | $as_echo "no" >&6; } | ||
10303 | $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h | ||
10304 | |||
10305 | fi | ||
10306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10307 | |||
10308 | # Check for missing getpeereid (or equiv) support | ||
10309 | NO_PEERCHECK="" | ||
10310 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
10311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
10312 | $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } | ||
10313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10314 | /* end confdefs.h. */ | ||
10315 | |||
10316 | #include <sys/types.h> | ||
10317 | #include <sys/socket.h> | ||
10318 | int | ||
10319 | main () | ||
10320 | { | ||
10321 | int i = SO_PEERCRED; | ||
10322 | ; | ||
10323 | return 0; | ||
10324 | } | ||
10325 | _ACEOF | ||
10326 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10328 | $as_echo "yes" >&6; } | ||
10329 | |||
10330 | $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h | ||
10331 | |||
10332 | |||
10333 | else | ||
10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10335 | $as_echo "no" >&6; } | ||
10336 | NO_PEERCHECK=1 | ||
10337 | |||
10338 | fi | ||
10339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10340 | fi | ||
10341 | |||
10342 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
10343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 | ||
10344 | $as_echo_n "checking for (overly) strict mkstemp... " >&6; } | ||
10345 | if test "$cross_compiling" = yes; then : | ||
10346 | |||
10347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10348 | $as_echo "yes" >&6; } | ||
10349 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
10350 | |||
10351 | |||
10352 | |||
10353 | else | ||
10354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10355 | /* end confdefs.h. */ | ||
10356 | |||
10357 | #include <stdlib.h> | ||
10358 | |||
10359 | int | ||
10360 | main () | ||
10361 | { | ||
10362 | |||
10363 | char template[]="conftest.mkstemp-test"; | ||
10364 | if (mkstemp(template) == -1) | ||
10365 | exit(1); | ||
10366 | unlink(template); | ||
10367 | exit(0); | ||
10368 | |||
10369 | ; | ||
10370 | return 0; | ||
10371 | } | ||
10372 | _ACEOF | ||
10373 | if ac_fn_c_try_run "$LINENO"; then : | ||
10374 | |||
10375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10376 | $as_echo "no" >&6; } | ||
10377 | |||
10378 | else | ||
10379 | |||
10380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10381 | $as_echo "yes" >&6; } | ||
10382 | |||
10383 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
10384 | |||
10385 | |||
10386 | fi | ||
10387 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10388 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10389 | fi | ||
10390 | |||
10391 | fi | ||
10392 | |||
10393 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
10394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 | ||
10395 | $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } | ||
10396 | if test "$cross_compiling" = yes; then : | ||
10397 | |||
10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
10399 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
10400 | |||
10401 | |||
10402 | else | ||
10403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10404 | /* end confdefs.h. */ | ||
10405 | |||
10406 | #include <stdio.h> | ||
10407 | #include <sys/fcntl.h> | ||
10408 | #include <sys/types.h> | ||
10409 | #include <sys/wait.h> | ||
10410 | |||
10411 | int | ||
10412 | main () | ||
10413 | { | ||
10414 | |||
10415 | pid_t pid; | ||
10416 | int fd, ptyfd, ttyfd, status; | ||
10417 | |||
10418 | pid = fork(); | ||
10419 | if (pid < 0) { /* failed */ | ||
10420 | exit(1); | ||
10421 | } else if (pid > 0) { /* parent */ | ||
10422 | waitpid(pid, &status, 0); | ||
10423 | if (WIFEXITED(status)) | ||
10424 | exit(WEXITSTATUS(status)); | ||
10425 | else | ||
10426 | exit(2); | ||
10427 | } else { /* child */ | ||
10428 | close(0); close(1); close(2); | ||
10429 | setsid(); | ||
10430 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
10431 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
10432 | if (fd >= 0) | ||
10433 | exit(3); /* Acquired ctty: broken */ | ||
10434 | else | ||
10435 | exit(0); /* Did not acquire ctty: OK */ | ||
10436 | } | ||
10437 | |||
10438 | ; | ||
10439 | return 0; | ||
10440 | } | ||
10441 | _ACEOF | ||
10442 | if ac_fn_c_try_run "$LINENO"; then : | ||
10443 | |||
10444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10445 | $as_echo "yes" >&6; } | ||
10446 | |||
10447 | else | ||
10448 | |||
10449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10450 | $as_echo "no" >&6; } | ||
10451 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
10452 | |||
10453 | |||
10454 | fi | ||
10455 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10456 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10457 | fi | ||
10458 | |||
10459 | fi | ||
10460 | |||
10461 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
10462 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
10463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
10464 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
10465 | if test "$cross_compiling" = yes; then : | ||
10466 | |||
10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
10468 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
10469 | |||
10470 | |||
10471 | else | ||
10472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10473 | /* end confdefs.h. */ | ||
10474 | |||
10475 | #include <stdio.h> | ||
10476 | #include <sys/socket.h> | ||
10477 | #include <netdb.h> | ||
10478 | #include <errno.h> | ||
10479 | #include <netinet/in.h> | ||
10480 | |||
10481 | #define TEST_PORT "2222" | ||
10482 | |||
10483 | int | ||
10484 | main () | ||
10485 | { | ||
10486 | |||
10487 | int err, sock; | ||
10488 | struct addrinfo *gai_ai, *ai, hints; | ||
10489 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
10490 | |||
10491 | memset(&hints, 0, sizeof(hints)); | ||
10492 | hints.ai_family = PF_UNSPEC; | ||
10493 | hints.ai_socktype = SOCK_STREAM; | ||
10494 | hints.ai_flags = AI_PASSIVE; | ||
10495 | |||
10496 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
10497 | if (err != 0) { | ||
10498 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
10499 | exit(1); | ||
10500 | } | ||
10501 | |||
10502 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
10503 | if (ai->ai_family != AF_INET6) | ||
10504 | continue; | ||
10505 | |||
10506 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
10507 | sizeof(ntop), strport, sizeof(strport), | ||
10508 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
10509 | |||
10510 | if (err != 0) { | ||
10511 | if (err == EAI_SYSTEM) | ||
10512 | perror("getnameinfo EAI_SYSTEM"); | ||
10513 | else | ||
10514 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
10515 | gai_strerror(err)); | ||
10516 | exit(2); | ||
10517 | } | ||
10518 | |||
10519 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
10520 | if (sock < 0) | ||
10521 | perror("socket"); | ||
10522 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
10523 | if (errno == EBADF) | ||
10524 | exit(3); | ||
10525 | } | ||
10526 | } | ||
10527 | exit(0); | ||
10528 | |||
10529 | ; | ||
10530 | return 0; | ||
10531 | } | ||
10532 | _ACEOF | ||
10533 | if ac_fn_c_try_run "$LINENO"; then : | ||
10534 | |||
10535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10536 | $as_echo "yes" >&6; } | ||
10537 | |||
10538 | else | ||
10539 | |||
10540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10541 | $as_echo "no" >&6; } | ||
10542 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
10543 | |||
10544 | |||
10545 | fi | ||
10546 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10547 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10548 | fi | ||
10549 | |||
10550 | fi | ||
10551 | |||
10552 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
10553 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
10554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
10555 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
10556 | if test "$cross_compiling" = yes; then : | ||
10557 | |||
10558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 | ||
10559 | $as_echo "cross-compiling, assuming no" >&6; } | ||
10560 | |||
10561 | |||
10562 | else | ||
10563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10564 | /* end confdefs.h. */ | ||
10565 | |||
10566 | #include <stdio.h> | ||
10567 | #include <sys/socket.h> | ||
10568 | #include <netdb.h> | ||
10569 | #include <errno.h> | ||
10570 | #include <netinet/in.h> | ||
10571 | |||
10572 | #define TEST_PORT "2222" | ||
10573 | |||
10574 | int | ||
10575 | main () | ||
10576 | { | ||
10577 | |||
10578 | int err, sock; | ||
10579 | struct addrinfo *gai_ai, *ai, hints; | ||
10580 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
10581 | |||
10582 | memset(&hints, 0, sizeof(hints)); | ||
10583 | hints.ai_family = PF_UNSPEC; | ||
10584 | hints.ai_socktype = SOCK_STREAM; | ||
10585 | hints.ai_flags = AI_PASSIVE; | ||
10586 | |||
10587 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
10588 | if (err != 0) { | ||
10589 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
10590 | exit(1); | ||
10591 | } | ||
10592 | |||
10593 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
10594 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
10595 | continue; | ||
10596 | |||
10597 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
10598 | sizeof(ntop), strport, sizeof(strport), | ||
10599 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
10600 | |||
10601 | if (ai->ai_family == AF_INET && err != 0) { | ||
10602 | perror("getnameinfo"); | ||
10603 | exit(2); | ||
10604 | } | ||
10605 | } | ||
10606 | exit(0); | ||
10607 | |||
10608 | ; | ||
10609 | return 0; | ||
10610 | } | ||
10611 | _ACEOF | ||
10612 | if ac_fn_c_try_run "$LINENO"; then : | ||
10613 | |||
10614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10615 | $as_echo "yes" >&6; } | ||
10616 | |||
10617 | $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h | ||
10618 | |||
10619 | |||
10620 | else | ||
10621 | |||
10622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10623 | $as_echo "no" >&6; } | ||
10624 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
10625 | |||
10626 | |||
10627 | fi | ||
10628 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10629 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10630 | fi | ||
10631 | |||
10632 | fi | ||
10633 | |||
10634 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 | ||
10636 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } | ||
10637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10638 | /* end confdefs.h. */ | ||
10639 | #include <shadow.h> | ||
10640 | int | ||
10641 | main () | ||
10642 | { | ||
10643 | exit(0); | ||
10644 | ; | ||
10645 | return 0; | ||
10646 | } | ||
10647 | _ACEOF | ||
10648 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10649 | |||
10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10651 | $as_echo "no" >&6; } | ||
10652 | |||
10653 | else | ||
10654 | |||
10655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10656 | $as_echo "yes" >&6; } | ||
10657 | |||
10658 | $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h | ||
10659 | |||
10660 | |||
10661 | |||
10662 | fi | ||
10663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10664 | fi | ||
10665 | |||
10666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | ||
10667 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | ||
10668 | if ${ac_cv_func_getpgrp_void+:} false; then : | ||
10669 | $as_echo_n "(cached) " >&6 | ||
10670 | else | ||
10671 | # Use it with a single arg. | ||
10672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10673 | /* end confdefs.h. */ | ||
10674 | $ac_includes_default | ||
10675 | int | ||
10676 | main () | ||
10677 | { | ||
10678 | getpgrp (0); | ||
10679 | ; | ||
10680 | return 0; | ||
10681 | } | ||
10682 | _ACEOF | ||
10683 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10684 | ac_cv_func_getpgrp_void=no | ||
10685 | else | ||
10686 | ac_cv_func_getpgrp_void=yes | ||
10687 | fi | ||
10688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10689 | |||
10690 | fi | ||
10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 | ||
10692 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | ||
10693 | if test $ac_cv_func_getpgrp_void = yes; then | ||
10694 | |||
10695 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | ||
10696 | |||
10697 | fi | ||
10698 | |||
10699 | |||
10700 | # Search for OpenSSL | ||
10701 | saved_CPPFLAGS="$CPPFLAGS" | ||
10702 | saved_LDFLAGS="$LDFLAGS" | ||
10703 | |||
10704 | # Check whether --with-ssl-dir was given. | ||
10705 | if test "${with_ssl_dir+set}" = set; then : | ||
10706 | withval=$with_ssl_dir; | ||
10707 | if test "x$withval" != "xno" ; then | ||
10708 | case "$withval" in | ||
10709 | # Relative paths | ||
10710 | ./*|../*) withval="`pwd`/$withval" | ||
10711 | esac | ||
10712 | if test -d "$withval/lib"; then | ||
10713 | if test -n "${need_dash_r}"; then | ||
10714 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10715 | else | ||
10716 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10717 | fi | ||
10718 | elif test -d "$withval/lib64"; then | ||
10719 | if test -n "${need_dash_r}"; then | ||
10720 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" | ||
10721 | else | ||
10722 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" | ||
10723 | fi | ||
10724 | else | ||
10725 | if test -n "${need_dash_r}"; then | ||
10726 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
10727 | else | ||
10728 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
10729 | fi | ||
10730 | fi | ||
10731 | if test -d "$withval/include"; then | ||
10732 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
10733 | else | ||
10734 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
10735 | fi | ||
10736 | fi | ||
10737 | |||
10738 | |||
10739 | fi | ||
10740 | |||
10741 | LIBS="-lcrypto $LIBS" | ||
10742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10743 | /* end confdefs.h. */ | ||
10744 | |||
10745 | /* Override any GCC internal prototype to avoid an error. | ||
10746 | Use char because int might match the return type of a GCC | ||
10747 | builtin and then its argument prototype would still apply. */ | ||
10748 | #ifdef __cplusplus | ||
10749 | extern "C" | ||
10750 | #endif | ||
10751 | char RAND_add (); | ||
10752 | int | ||
10753 | main () | ||
10754 | { | ||
10755 | return RAND_add (); | ||
10756 | ; | ||
10757 | return 0; | ||
10758 | } | ||
10759 | _ACEOF | ||
10760 | if ac_fn_c_try_link "$LINENO"; then : | ||
10761 | |||
10762 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
10763 | |||
10764 | else | ||
10765 | |||
10766 | if test -n "${need_dash_r}"; then | ||
10767 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
10768 | else | ||
10769 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
10770 | fi | ||
10771 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
10772 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" | ||
10773 | if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : | ||
10774 | |||
10775 | else | ||
10776 | as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 | ||
10777 | fi | ||
10778 | |||
10779 | |||
10780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10781 | /* end confdefs.h. */ | ||
10782 | |||
10783 | /* Override any GCC internal prototype to avoid an error. | ||
10784 | Use char because int might match the return type of a GCC | ||
10785 | builtin and then its argument prototype would still apply. */ | ||
10786 | #ifdef __cplusplus | ||
10787 | extern "C" | ||
10788 | #endif | ||
10789 | char RAND_add (); | ||
10790 | int | ||
10791 | main () | ||
10792 | { | ||
10793 | return RAND_add (); | ||
10794 | ; | ||
10795 | return 0; | ||
10796 | } | ||
10797 | _ACEOF | ||
10798 | if ac_fn_c_try_link "$LINENO"; then : | ||
10799 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
10800 | |||
10801 | else | ||
10802 | |||
10803 | as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 | ||
10804 | |||
10805 | |||
10806 | fi | ||
10807 | rm -f core conftest.err conftest.$ac_objext \ | ||
10808 | conftest$ac_exeext conftest.$ac_ext | ||
10809 | |||
10810 | |||
10811 | fi | ||
10812 | rm -f core conftest.err conftest.$ac_objext \ | ||
10813 | conftest$ac_exeext conftest.$ac_ext | ||
10814 | |||
10815 | # Determine OpenSSL header version | ||
10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 | ||
10817 | $as_echo_n "checking OpenSSL header version... " >&6; } | ||
10818 | if test "$cross_compiling" = yes; then : | ||
10819 | |||
10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
10821 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
10822 | |||
10823 | |||
10824 | else | ||
10825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10826 | /* end confdefs.h. */ | ||
10827 | |||
10828 | #include <stdio.h> | ||
10829 | #include <string.h> | ||
10830 | #include <openssl/opensslv.h> | ||
10831 | #define DATA "conftest.sslincver" | ||
10832 | |||
10833 | int | ||
10834 | main () | ||
10835 | { | ||
10836 | |||
10837 | FILE *fd; | ||
10838 | int rc; | ||
10839 | |||
10840 | fd = fopen(DATA,"w"); | ||
10841 | if(fd == NULL) | ||
10842 | exit(1); | ||
10843 | |||
10844 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
10845 | exit(1); | ||
10846 | |||
10847 | exit(0); | ||
10848 | |||
10849 | ; | ||
10850 | return 0; | ||
10851 | } | ||
10852 | _ACEOF | ||
10853 | if ac_fn_c_try_run "$LINENO"; then : | ||
10854 | |||
10855 | ssl_header_ver=`cat conftest.sslincver` | ||
10856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 | ||
10857 | $as_echo "$ssl_header_ver" >&6; } | ||
10858 | |||
10859 | else | ||
10860 | |||
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
10862 | $as_echo "not found" >&6; } | ||
10863 | as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 | ||
10864 | |||
10865 | fi | ||
10866 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10867 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10868 | fi | ||
10869 | |||
10870 | |||
10871 | # Determine OpenSSL library version | ||
10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 | ||
10873 | $as_echo_n "checking OpenSSL library version... " >&6; } | ||
10874 | if test "$cross_compiling" = yes; then : | ||
10875 | |||
10876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
10877 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
10878 | |||
10879 | |||
10880 | else | ||
10881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10882 | /* end confdefs.h. */ | ||
10883 | |||
10884 | #include <stdio.h> | ||
10885 | #include <string.h> | ||
10886 | #include <openssl/opensslv.h> | ||
10887 | #include <openssl/crypto.h> | ||
10888 | #define DATA "conftest.ssllibver" | ||
10889 | |||
10890 | int | ||
10891 | main () | ||
10892 | { | ||
10893 | |||
10894 | FILE *fd; | ||
10895 | int rc; | ||
10896 | |||
10897 | fd = fopen(DATA,"w"); | ||
10898 | if(fd == NULL) | ||
10899 | exit(1); | ||
10900 | |||
10901 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
10902 | exit(1); | ||
10903 | |||
10904 | exit(0); | ||
10905 | |||
10906 | ; | ||
10907 | return 0; | ||
10908 | } | ||
10909 | _ACEOF | ||
10910 | if ac_fn_c_try_run "$LINENO"; then : | ||
10911 | |||
10912 | ssl_library_ver=`cat conftest.ssllibver` | ||
10913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 | ||
10914 | $as_echo "$ssl_library_ver" >&6; } | ||
10915 | |||
10916 | else | ||
10917 | |||
10918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
10919 | $as_echo "not found" >&6; } | ||
10920 | as_fn_error $? "OpenSSL library not found." "$LINENO" 5 | ||
10921 | |||
10922 | fi | ||
10923 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10924 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10925 | fi | ||
10926 | |||
10927 | |||
10928 | |||
10929 | # Check whether --with-openssl-header-check was given. | ||
10930 | if test "${with_openssl_header_check+set}" = set; then : | ||
10931 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then | ||
10932 | openssl_check_nonfatal=1 | ||
10933 | fi | ||
10934 | |||
10935 | |||
10936 | fi | ||
10937 | |||
10938 | |||
10939 | # Sanity check OpenSSL headers | ||
10940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5 | ||
10941 | $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } | ||
10942 | if test "$cross_compiling" = yes; then : | ||
10943 | |||
10944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
10945 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
10946 | |||
10947 | |||
10948 | else | ||
10949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10950 | /* end confdefs.h. */ | ||
10951 | |||
10952 | #include <string.h> | ||
10953 | #include <openssl/opensslv.h> | ||
10954 | |||
10955 | int | ||
10956 | main () | ||
10957 | { | ||
10958 | |||
10959 | exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); | ||
10960 | |||
10961 | ; | ||
10962 | return 0; | ||
10963 | } | ||
10964 | _ACEOF | ||
10965 | if ac_fn_c_try_run "$LINENO"; then : | ||
10966 | |||
10967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10968 | $as_echo "yes" >&6; } | ||
10969 | |||
10970 | else | ||
10971 | |||
10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10973 | $as_echo "no" >&6; } | ||
10974 | if test "x$openssl_check_nonfatal" = "x"; then | ||
10975 | as_fn_error $? "Your OpenSSL headers do not match your | ||
10976 | library. Check config.log for details. | ||
10977 | If you are sure your installation is consistent, you can disable the check | ||
10978 | by running \"./configure --without-openssl-header-check\". | ||
10979 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
10980 | " "$LINENO" 5 | ||
10981 | else | ||
10982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your | ||
10983 | library. Check config.log for details. | ||
10984 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
10985 | $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
10986 | library. Check config.log for details. | ||
10987 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
10988 | fi | ||
10989 | |||
10990 | fi | ||
10991 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10992 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10993 | fi | ||
10994 | |||
10995 | |||
10996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 | ||
10997 | $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } | ||
10998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10999 | /* end confdefs.h. */ | ||
11000 | #include <openssl/evp.h> | ||
11001 | int | ||
11002 | main () | ||
11003 | { | ||
11004 | SSLeay_add_all_algorithms(); | ||
11005 | ; | ||
11006 | return 0; | ||
11007 | } | ||
11008 | _ACEOF | ||
11009 | if ac_fn_c_try_link "$LINENO"; then : | ||
11010 | |||
11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11012 | $as_echo "yes" >&6; } | ||
11013 | |||
11014 | else | ||
11015 | |||
11016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11017 | $as_echo "no" >&6; } | ||
11018 | saved_LIBS="$LIBS" | ||
11019 | LIBS="$LIBS -ldl" | ||
11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 | ||
11021 | $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } | ||
11022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11023 | /* end confdefs.h. */ | ||
11024 | #include <openssl/evp.h> | ||
11025 | int | ||
11026 | main () | ||
11027 | { | ||
11028 | SSLeay_add_all_algorithms(); | ||
11029 | ; | ||
11030 | return 0; | ||
11031 | } | ||
11032 | _ACEOF | ||
11033 | if ac_fn_c_try_link "$LINENO"; then : | ||
11034 | |||
11035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11036 | $as_echo "yes" >&6; } | ||
11037 | |||
11038 | else | ||
11039 | |||
11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11041 | $as_echo "no" >&6; } | ||
11042 | LIBS="$saved_LIBS" | ||
11043 | |||
11044 | |||
11045 | fi | ||
11046 | rm -f core conftest.err conftest.$ac_objext \ | ||
11047 | conftest$ac_exeext conftest.$ac_ext | ||
11048 | |||
11049 | |||
11050 | fi | ||
11051 | rm -f core conftest.err conftest.$ac_objext \ | ||
11052 | conftest$ac_exeext conftest.$ac_ext | ||
11053 | |||
11054 | for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method HMAC_CTX_init | ||
11055 | do : | ||
11056 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11057 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11058 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11059 | cat >>confdefs.h <<_ACEOF | ||
11060 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11061 | _ACEOF | ||
11062 | |||
11063 | fi | ||
11064 | done | ||
11065 | |||
11066 | |||
11067 | |||
11068 | # Check whether --with-ssl-engine was given. | ||
11069 | if test "${with_ssl_engine+set}" = set; then : | ||
11070 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then | ||
11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 | ||
11072 | $as_echo_n "checking for OpenSSL ENGINE support... " >&6; } | ||
11073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11074 | /* end confdefs.h. */ | ||
11075 | |||
11076 | #include <openssl/engine.h> | ||
11077 | |||
11078 | int | ||
11079 | main () | ||
11080 | { | ||
11081 | |||
11082 | ENGINE_load_builtin_engines(); | ||
11083 | ENGINE_register_all_complete(); | ||
11084 | |||
11085 | ; | ||
11086 | return 0; | ||
11087 | } | ||
11088 | _ACEOF | ||
11089 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11091 | $as_echo "yes" >&6; } | ||
11092 | |||
11093 | $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h | ||
11094 | |||
11095 | |||
11096 | else | ||
11097 | as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 | ||
11098 | |||
11099 | fi | ||
11100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11101 | fi | ||
11102 | |||
11103 | fi | ||
11104 | |||
11105 | |||
11106 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
11107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 | ||
11108 | $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } | ||
11109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11110 | /* end confdefs.h. */ | ||
11111 | |||
11112 | #include <string.h> | ||
11113 | #include <openssl/evp.h> | ||
11114 | |||
11115 | int | ||
11116 | main () | ||
11117 | { | ||
11118 | |||
11119 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); | ||
11120 | |||
11121 | ; | ||
11122 | return 0; | ||
11123 | } | ||
11124 | _ACEOF | ||
11125 | if ac_fn_c_try_link "$LINENO"; then : | ||
11126 | |||
11127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11128 | $as_echo "no" >&6; } | ||
11129 | |||
11130 | else | ||
11131 | |||
11132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11133 | $as_echo "yes" >&6; } | ||
11134 | |||
11135 | $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h | ||
11136 | |||
11137 | |||
11138 | |||
11139 | fi | ||
11140 | rm -f core conftest.err conftest.$ac_objext \ | ||
11141 | conftest$ac_exeext conftest.$ac_ext | ||
11142 | |||
11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 | ||
11144 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } | ||
11145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11146 | /* end confdefs.h. */ | ||
11147 | |||
11148 | #include <string.h> | ||
11149 | #include <openssl/evp.h> | ||
11150 | |||
11151 | int | ||
11152 | main () | ||
11153 | { | ||
11154 | |||
11155 | if(EVP_DigestUpdate(NULL, NULL,0)) | ||
11156 | exit(0); | ||
11157 | |||
11158 | ; | ||
11159 | return 0; | ||
11160 | } | ||
11161 | _ACEOF | ||
11162 | if ac_fn_c_try_link "$LINENO"; then : | ||
11163 | |||
11164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11165 | $as_echo "yes" >&6; } | ||
11166 | |||
11167 | else | ||
11168 | |||
11169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11170 | $as_echo "no" >&6; } | ||
11171 | |||
11172 | $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h | ||
11173 | |||
11174 | |||
11175 | |||
11176 | fi | ||
11177 | rm -f core conftest.err conftest.$ac_objext \ | ||
11178 | conftest$ac_exeext conftest.$ac_ext | ||
11179 | |||
11180 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
11181 | # because the system crypt() is more featureful. | ||
11182 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
11184 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
11185 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
11186 | $as_echo_n "(cached) " >&6 | ||
11187 | else | ||
11188 | ac_check_lib_save_LIBS=$LIBS | ||
11189 | LIBS="-lcrypt $LIBS" | ||
11190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11191 | /* end confdefs.h. */ | ||
11192 | |||
11193 | /* Override any GCC internal prototype to avoid an error. | ||
11194 | Use char because int might match the return type of a GCC | ||
11195 | builtin and then its argument prototype would still apply. */ | ||
11196 | #ifdef __cplusplus | ||
11197 | extern "C" | ||
11198 | #endif | ||
11199 | char crypt (); | ||
11200 | int | ||
11201 | main () | ||
11202 | { | ||
11203 | return crypt (); | ||
11204 | ; | ||
11205 | return 0; | ||
11206 | } | ||
11207 | _ACEOF | ||
11208 | if ac_fn_c_try_link "$LINENO"; then : | ||
11209 | ac_cv_lib_crypt_crypt=yes | ||
11210 | else | ||
11211 | ac_cv_lib_crypt_crypt=no | ||
11212 | fi | ||
11213 | rm -f core conftest.err conftest.$ac_objext \ | ||
11214 | conftest$ac_exeext conftest.$ac_ext | ||
11215 | LIBS=$ac_check_lib_save_LIBS | ||
11216 | fi | ||
11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
11218 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
11219 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
11220 | cat >>confdefs.h <<_ACEOF | ||
11221 | #define HAVE_LIBCRYPT 1 | ||
11222 | _ACEOF | ||
11223 | |||
11224 | LIBS="-lcrypt $LIBS" | ||
11225 | |||
11226 | fi | ||
11227 | |||
11228 | fi | ||
11229 | |||
11230 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
11231 | # version in OpenSSL. | ||
11232 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
11233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
11234 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
11235 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
11236 | $as_echo_n "(cached) " >&6 | ||
11237 | else | ||
11238 | ac_check_lib_save_LIBS=$LIBS | ||
11239 | LIBS="-lcrypt $LIBS" | ||
11240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11241 | /* end confdefs.h. */ | ||
11242 | |||
11243 | /* Override any GCC internal prototype to avoid an error. | ||
11244 | Use char because int might match the return type of a GCC | ||
11245 | builtin and then its argument prototype would still apply. */ | ||
11246 | #ifdef __cplusplus | ||
11247 | extern "C" | ||
11248 | #endif | ||
11249 | char crypt (); | ||
11250 | int | ||
11251 | main () | ||
11252 | { | ||
11253 | return crypt (); | ||
11254 | ; | ||
11255 | return 0; | ||
11256 | } | ||
11257 | _ACEOF | ||
11258 | if ac_fn_c_try_link "$LINENO"; then : | ||
11259 | ac_cv_lib_crypt_crypt=yes | ||
11260 | else | ||
11261 | ac_cv_lib_crypt_crypt=no | ||
11262 | fi | ||
11263 | rm -f core conftest.err conftest.$ac_objext \ | ||
11264 | conftest$ac_exeext conftest.$ac_ext | ||
11265 | LIBS=$ac_check_lib_save_LIBS | ||
11266 | fi | ||
11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
11268 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
11269 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
11270 | LIBS="$LIBS -lcrypt" | ||
11271 | fi | ||
11272 | |||
11273 | fi | ||
11274 | |||
11275 | # Search for SHA256 support in libc and/or OpenSSL | ||
11276 | for ac_func in SHA256_Update EVP_sha256 | ||
11277 | do : | ||
11278 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11279 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11280 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11281 | cat >>confdefs.h <<_ACEOF | ||
11282 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11283 | _ACEOF | ||
11284 | TEST_SSH_SHA256=yes | ||
11285 | else | ||
11286 | TEST_SSH_SHA256=no | ||
11287 | fi | ||
11288 | done | ||
11289 | |||
11290 | |||
11291 | |||
11292 | # Check complete ECC support in OpenSSL | ||
11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5 | ||
11294 | $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; } | ||
11295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11296 | /* end confdefs.h. */ | ||
11297 | |||
11298 | #include <openssl/ec.h> | ||
11299 | #include <openssl/ecdh.h> | ||
11300 | #include <openssl/ecdsa.h> | ||
11301 | #include <openssl/evp.h> | ||
11302 | #include <openssl/objects.h> | ||
11303 | #include <openssl/opensslv.h> | ||
11304 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
11305 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
11306 | #endif | ||
11307 | |||
11308 | int | ||
11309 | main () | ||
11310 | { | ||
11311 | |||
11312 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
11313 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
11314 | |||
11315 | ; | ||
11316 | return 0; | ||
11317 | } | ||
11318 | _ACEOF | ||
11319 | if ac_fn_c_try_link "$LINENO"; then : | ||
11320 | |||
11321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11322 | $as_echo "yes" >&6; } | ||
11323 | |||
11324 | $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h | ||
11325 | |||
11326 | TEST_SSH_ECC=yes | ||
11327 | COMMENT_OUT_ECC="" | ||
11328 | |||
11329 | else | ||
11330 | |||
11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11332 | $as_echo "no" >&6; } | ||
11333 | TEST_SSH_ECC=no | ||
11334 | COMMENT_OUT_ECC="#no ecc#" | ||
11335 | |||
11336 | |||
11337 | fi | ||
11338 | rm -f core conftest.err conftest.$ac_objext \ | ||
11339 | conftest$ac_exeext conftest.$ac_ext | ||
11340 | |||
11341 | |||
11342 | |||
11343 | saved_LIBS="$LIBS" | ||
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 | ||
11345 | $as_echo_n "checking for ia_openinfo in -liaf... " >&6; } | ||
11346 | if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : | ||
11347 | $as_echo_n "(cached) " >&6 | ||
11348 | else | ||
11349 | ac_check_lib_save_LIBS=$LIBS | ||
11350 | LIBS="-liaf $LIBS" | ||
11351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11352 | /* end confdefs.h. */ | ||
11353 | |||
11354 | /* Override any GCC internal prototype to avoid an error. | ||
11355 | Use char because int might match the return type of a GCC | ||
11356 | builtin and then its argument prototype would still apply. */ | ||
11357 | #ifdef __cplusplus | ||
11358 | extern "C" | ||
11359 | #endif | ||
11360 | char ia_openinfo (); | ||
11361 | int | ||
11362 | main () | ||
11363 | { | ||
11364 | return ia_openinfo (); | ||
11365 | ; | ||
11366 | return 0; | ||
11367 | } | ||
11368 | _ACEOF | ||
11369 | if ac_fn_c_try_link "$LINENO"; then : | ||
11370 | ac_cv_lib_iaf_ia_openinfo=yes | ||
11371 | else | ||
11372 | ac_cv_lib_iaf_ia_openinfo=no | ||
11373 | fi | ||
11374 | rm -f core conftest.err conftest.$ac_objext \ | ||
11375 | conftest$ac_exeext conftest.$ac_ext | ||
11376 | LIBS=$ac_check_lib_save_LIBS | ||
11377 | fi | ||
11378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
11379 | $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
11380 | if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : | ||
11381 | |||
11382 | LIBS="$LIBS -liaf" | ||
11383 | for ac_func in set_id | ||
11384 | do : | ||
11385 | ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" | ||
11386 | if test "x$ac_cv_func_set_id" = xyes; then : | ||
11387 | cat >>confdefs.h <<_ACEOF | ||
11388 | #define HAVE_SET_ID 1 | ||
11389 | _ACEOF | ||
11390 | SSHDLIBS="$SSHDLIBS -liaf" | ||
11391 | |||
11392 | $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h | ||
11393 | |||
11394 | |||
11395 | fi | ||
11396 | done | ||
11397 | |||
11398 | |||
11399 | fi | ||
11400 | |||
11401 | LIBS="$saved_LIBS" | ||
11402 | |||
11403 | ### Configure cryptographic random number support | ||
11404 | |||
11405 | # Check wheter OpenSSL seeds itself | ||
11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
11407 | $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } | ||
11408 | if test "$cross_compiling" = yes; then : | ||
11409 | |||
11410 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
11411 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
11412 | # This is safe, since we will fatal() at runtime if | ||
11413 | # OpenSSL is not seeded correctly. | ||
11414 | OPENSSL_SEEDS_ITSELF=yes | ||
11415 | |||
11416 | |||
11417 | else | ||
11418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11419 | /* end confdefs.h. */ | ||
11420 | |||
11421 | #include <string.h> | ||
11422 | #include <openssl/rand.h> | ||
11423 | |||
11424 | int | ||
11425 | main () | ||
11426 | { | ||
11427 | |||
11428 | exit(RAND_status() == 1 ? 0 : 1); | ||
11429 | |||
11430 | ; | ||
11431 | return 0; | ||
11432 | } | ||
11433 | _ACEOF | ||
11434 | if ac_fn_c_try_run "$LINENO"; then : | ||
11435 | |||
11436 | OPENSSL_SEEDS_ITSELF=yes | ||
11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11438 | $as_echo "yes" >&6; } | ||
11439 | |||
11440 | else | ||
11441 | |||
11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11443 | $as_echo "no" >&6; } | ||
11444 | |||
11445 | fi | ||
11446 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11447 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11448 | fi | ||
11449 | |||
11450 | |||
11451 | # PRNGD TCP socket | ||
11452 | |||
11453 | # Check whether --with-prngd-port was given. | ||
11454 | if test "${with_prngd_port+set}" = set; then : | ||
11455 | withval=$with_prngd_port; | ||
11456 | case "$withval" in | ||
11457 | no) | ||
11458 | withval="" | ||
11459 | ;; | ||
11460 | [0-9]*) | ||
11461 | ;; | ||
11462 | *) | ||
11463 | as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 | ||
11464 | ;; | ||
11465 | esac | ||
11466 | if test ! -z "$withval" ; then | ||
11467 | PRNGD_PORT="$withval" | ||
11468 | |||
11469 | cat >>confdefs.h <<_ACEOF | ||
11470 | #define PRNGD_PORT $PRNGD_PORT | ||
11471 | _ACEOF | ||
11472 | |||
11473 | fi | ||
11474 | |||
11475 | |||
11476 | fi | ||
11477 | |||
11478 | |||
11479 | # PRNGD Unix domain socket | ||
11480 | |||
11481 | # Check whether --with-prngd-socket was given. | ||
11482 | if test "${with_prngd_socket+set}" = set; then : | ||
11483 | withval=$with_prngd_socket; | ||
11484 | case "$withval" in | ||
11485 | yes) | ||
11486 | withval="/var/run/egd-pool" | ||
11487 | ;; | ||
11488 | no) | ||
11489 | withval="" | ||
11490 | ;; | ||
11491 | /*) | ||
11492 | ;; | ||
11493 | *) | ||
11494 | as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 | ||
11495 | ;; | ||
11496 | esac | ||
11497 | |||
11498 | if test ! -z "$withval" ; then | ||
11499 | if test ! -z "$PRNGD_PORT" ; then | ||
11500 | as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 | ||
11501 | fi | ||
11502 | if test ! -r "$withval" ; then | ||
11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 | ||
11504 | $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
11505 | fi | ||
11506 | PRNGD_SOCKET="$withval" | ||
11507 | |||
11508 | cat >>confdefs.h <<_ACEOF | ||
11509 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
11510 | _ACEOF | ||
11511 | |||
11512 | fi | ||
11513 | |||
11514 | else | ||
11515 | |||
11516 | # Check for existing socket only if we don't have a random device already | ||
11517 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then | ||
11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 | ||
11519 | $as_echo_n "checking for PRNGD/EGD socket... " >&6; } | ||
11520 | # Insert other locations here | ||
11521 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
11522 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
11523 | PRNGD_SOCKET="$sock" | ||
11524 | cat >>confdefs.h <<_ACEOF | ||
11525 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
11526 | _ACEOF | ||
11527 | |||
11528 | break; | ||
11529 | fi | ||
11530 | done | ||
11531 | if test ! -z "$PRNGD_SOCKET" ; then | ||
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 | ||
11533 | $as_echo "$PRNGD_SOCKET" >&6; } | ||
11534 | else | ||
11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
11536 | $as_echo "not found" >&6; } | ||
11537 | fi | ||
11538 | fi | ||
11539 | |||
11540 | |||
11541 | fi | ||
11542 | |||
11543 | |||
11544 | # Which randomness source do we use? | ||
11545 | if test ! -z "$PRNGD_PORT" ; then | ||
11546 | RAND_MSG="PRNGd port $PRNGD_PORT" | ||
11547 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
11548 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" | ||
11549 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
11550 | |||
11551 | $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h | ||
11552 | |||
11553 | RAND_MSG="OpenSSL internal ONLY" | ||
11554 | else | ||
11555 | as_fn_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" "$LINENO" 5 | ||
11556 | fi | ||
11557 | |||
11558 | # Check for PAM libs | ||
11559 | PAM_MSG="no" | ||
11560 | |||
11561 | # Check whether --with-pam was given. | ||
11562 | if test "${with_pam+set}" = set; then : | ||
11563 | withval=$with_pam; | ||
11564 | if test "x$withval" != "xno" ; then | ||
11565 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
11566 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
11567 | as_fn_error $? "PAM headers not found" "$LINENO" 5 | ||
11568 | fi | ||
11569 | |||
11570 | saved_LIBS="$LIBS" | ||
11571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11572 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11573 | if ${ac_cv_lib_dl_dlopen+:} false; then : | ||
11574 | $as_echo_n "(cached) " >&6 | ||
11575 | else | ||
11576 | ac_check_lib_save_LIBS=$LIBS | ||
11577 | LIBS="-ldl $LIBS" | ||
11578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11579 | /* end confdefs.h. */ | ||
11580 | |||
11581 | /* Override any GCC internal prototype to avoid an error. | ||
11582 | Use char because int might match the return type of a GCC | ||
11583 | builtin and then its argument prototype would still apply. */ | ||
11584 | #ifdef __cplusplus | ||
11585 | extern "C" | ||
11586 | #endif | ||
11587 | char dlopen (); | ||
11588 | int | ||
11589 | main () | ||
11590 | { | ||
11591 | return dlopen (); | ||
11592 | ; | ||
11593 | return 0; | ||
11594 | } | ||
11595 | _ACEOF | ||
11596 | if ac_fn_c_try_link "$LINENO"; then : | ||
11597 | ac_cv_lib_dl_dlopen=yes | ||
11598 | else | ||
11599 | ac_cv_lib_dl_dlopen=no | ||
11600 | fi | ||
11601 | rm -f core conftest.err conftest.$ac_objext \ | ||
11602 | conftest$ac_exeext conftest.$ac_ext | ||
11603 | LIBS=$ac_check_lib_save_LIBS | ||
11604 | fi | ||
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11606 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11607 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | ||
11608 | cat >>confdefs.h <<_ACEOF | ||
11609 | #define HAVE_LIBDL 1 | ||
11610 | _ACEOF | ||
11611 | |||
11612 | LIBS="-ldl $LIBS" | ||
11613 | |||
11614 | fi | ||
11615 | |||
11616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | ||
11617 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | ||
11618 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | ||
11619 | $as_echo_n "(cached) " >&6 | ||
11620 | else | ||
11621 | ac_check_lib_save_LIBS=$LIBS | ||
11622 | LIBS="-lpam $LIBS" | ||
11623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11624 | /* end confdefs.h. */ | ||
11625 | |||
11626 | /* Override any GCC internal prototype to avoid an error. | ||
11627 | Use char because int might match the return type of a GCC | ||
11628 | builtin and then its argument prototype would still apply. */ | ||
11629 | #ifdef __cplusplus | ||
11630 | extern "C" | ||
11631 | #endif | ||
11632 | char pam_set_item (); | ||
11633 | int | ||
11634 | main () | ||
11635 | { | ||
11636 | return pam_set_item (); | ||
11637 | ; | ||
11638 | return 0; | ||
11639 | } | ||
11640 | _ACEOF | ||
11641 | if ac_fn_c_try_link "$LINENO"; then : | ||
11642 | ac_cv_lib_pam_pam_set_item=yes | ||
11643 | else | ||
11644 | ac_cv_lib_pam_pam_set_item=no | ||
11645 | fi | ||
11646 | rm -f core conftest.err conftest.$ac_objext \ | ||
11647 | conftest$ac_exeext conftest.$ac_ext | ||
11648 | LIBS=$ac_check_lib_save_LIBS | ||
11649 | fi | ||
11650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
11651 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | ||
11652 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | ||
11653 | cat >>confdefs.h <<_ACEOF | ||
11654 | #define HAVE_LIBPAM 1 | ||
11655 | _ACEOF | ||
11656 | |||
11657 | LIBS="-lpam $LIBS" | ||
11658 | |||
11659 | else | ||
11660 | as_fn_error $? "*** libpam missing" "$LINENO" 5 | ||
11661 | fi | ||
11662 | |||
11663 | for ac_func in pam_getenvlist | ||
11664 | do : | ||
11665 | ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" | ||
11666 | if test "x$ac_cv_func_pam_getenvlist" = xyes; then : | ||
11667 | cat >>confdefs.h <<_ACEOF | ||
11668 | #define HAVE_PAM_GETENVLIST 1 | ||
11669 | _ACEOF | ||
11670 | |||
11671 | fi | ||
11672 | done | ||
11673 | |||
11674 | for ac_func in pam_putenv | ||
11675 | do : | ||
11676 | ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" | ||
11677 | if test "x$ac_cv_func_pam_putenv" = xyes; then : | ||
11678 | cat >>confdefs.h <<_ACEOF | ||
11679 | #define HAVE_PAM_PUTENV 1 | ||
11680 | _ACEOF | ||
11681 | |||
11682 | fi | ||
11683 | done | ||
11684 | |||
11685 | LIBS="$saved_LIBS" | ||
11686 | |||
11687 | PAM_MSG="yes" | ||
11688 | |||
11689 | SSHDLIBS="$SSHDLIBS -lpam" | ||
11690 | |||
11691 | $as_echo "#define USE_PAM 1" >>confdefs.h | ||
11692 | |||
11693 | |||
11694 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
11695 | case "$LIBS" in | ||
11696 | *-ldl*) | ||
11697 | # libdl already in LIBS | ||
11698 | ;; | ||
11699 | *) | ||
11700 | SSHDLIBS="$SSHDLIBS -ldl" | ||
11701 | ;; | ||
11702 | esac | ||
11703 | fi | ||
11704 | fi | ||
11705 | |||
11706 | |||
11707 | fi | ||
11708 | |||
11709 | |||
11710 | # Check for older PAM | ||
11711 | if test "x$PAM_MSG" = "xyes" ; then | ||
11712 | # Check PAM strerror arguments (old PAM) | ||
11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 | ||
11714 | $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } | ||
11715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11716 | /* end confdefs.h. */ | ||
11717 | |||
11718 | #include <stdlib.h> | ||
11719 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
11720 | #include <security/pam_appl.h> | ||
11721 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
11722 | #include <pam/pam_appl.h> | ||
11723 | #endif | ||
11724 | |||
11725 | int | ||
11726 | main () | ||
11727 | { | ||
11728 | |||
11729 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
11730 | |||
11731 | ; | ||
11732 | return 0; | ||
11733 | } | ||
11734 | _ACEOF | ||
11735 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11737 | $as_echo "no" >&6; } | ||
11738 | else | ||
11739 | |||
11740 | |||
11741 | $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h | ||
11742 | |||
11743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11744 | $as_echo "yes" >&6; } | ||
11745 | PAM_MSG="yes (old library)" | ||
11746 | |||
11747 | |||
11748 | fi | ||
11749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11750 | fi | ||
11751 | |||
11752 | SSH_PRIVSEP_USER=sshd | ||
11753 | |||
11754 | # Check whether --with-privsep-user was given. | ||
11755 | if test "${with_privsep_user+set}" = set; then : | ||
11756 | withval=$with_privsep_user; | ||
11757 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
11758 | test "x${withval}" != "xyes"; then | ||
11759 | SSH_PRIVSEP_USER=$withval | ||
11760 | fi | ||
11761 | |||
11762 | |||
11763 | fi | ||
11764 | |||
11765 | |||
11766 | cat >>confdefs.h <<_ACEOF | ||
11767 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
11768 | _ACEOF | ||
11769 | |||
11770 | |||
11771 | |||
11772 | # Decide which sandbox style to use | ||
11773 | sandbox_arg="" | ||
11774 | |||
11775 | # Check whether --with-sandbox was given. | ||
11776 | if test "${with_sandbox+set}" = set; then : | ||
11777 | withval=$with_sandbox; | ||
11778 | if test "x$withval" = "xyes" ; then | ||
11779 | sandbox_arg="" | ||
11780 | else | ||
11781 | sandbox_arg="$withval" | ||
11782 | fi | ||
11783 | |||
11784 | |||
11785 | fi | ||
11786 | |||
11787 | if test "x$sandbox_arg" = "xsystrace" || \ | ||
11788 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | ||
11789 | test "x$have_systr_policy_kill" != "x1" && \ | ||
11790 | as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 | ||
11791 | SANDBOX_STYLE="systrace" | ||
11792 | |||
11793 | $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h | ||
11794 | |||
11795 | elif test "x$sandbox_arg" = "xdarwin" || \ | ||
11796 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ | ||
11797 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then | ||
11798 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ | ||
11799 | "x$ac_cv_header_sandbox_h" != "xyes" && \ | ||
11800 | as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 | ||
11801 | SANDBOX_STYLE="darwin" | ||
11802 | |||
11803 | $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h | ||
11804 | |||
11805 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | ||
11806 | ( test -z "$sandbox_arg" && \ | ||
11807 | test "x$have_seccomp_filter" == "x1" && \ | ||
11808 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | ||
11809 | test "x$have_seccomp_audit_arch" = "x1" && \ | ||
11810 | test "x$have_linux_no_new_privs" = "x1" && \ | ||
11811 | test "x$ac_cv_func_prctl" = "xyes" ) ; then | ||
11812 | test "x$have_seccomp_audit_arch" != "x1" && \ | ||
11813 | as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 | ||
11814 | test "x$have_linux_no_new_privs" != "x1" && \ | ||
11815 | as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 | ||
11816 | test "x$have_seccomp_filter" != "x1" && \ | ||
11817 | as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 | ||
11818 | test "x$ac_cv_func_prctl" != "xyes" && \ | ||
11819 | as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 | ||
11820 | SANDBOX_STYLE="seccomp_filter" | ||
11821 | |||
11822 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h | ||
11823 | |||
11824 | elif test "x$sandbox_arg" = "xrlimit" || \ | ||
11825 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" ) ; then | ||
11826 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | ||
11827 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 | ||
11828 | SANDBOX_STYLE="rlimit" | ||
11829 | |||
11830 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h | ||
11831 | |||
11832 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ | ||
11833 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then | ||
11834 | SANDBOX_STYLE="none" | ||
11835 | |||
11836 | $as_echo "#define SANDBOX_NULL 1" >>confdefs.h | ||
11837 | |||
11838 | else | ||
11839 | as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 | ||
11840 | fi | ||
11841 | |||
11842 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
11843 | if test ! -z "$SONY" ; then | ||
11844 | LIBS="$LIBS -liberty"; | ||
11845 | fi | ||
11846 | |||
11847 | # Check for long long datatypes | ||
11848 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" | ||
11849 | if test "x$ac_cv_type_long_long" = xyes; then : | ||
11850 | |||
11851 | cat >>confdefs.h <<_ACEOF | ||
11852 | #define HAVE_LONG_LONG 1 | ||
11853 | _ACEOF | ||
11854 | |||
11855 | |||
11856 | fi | ||
11857 | ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" | ||
11858 | if test "x$ac_cv_type_unsigned_long_long" = xyes; then : | ||
11859 | |||
11860 | cat >>confdefs.h <<_ACEOF | ||
11861 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
11862 | _ACEOF | ||
11863 | |||
11864 | |||
11865 | fi | ||
11866 | ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" | ||
11867 | if test "x$ac_cv_type_long_double" = xyes; then : | ||
11868 | |||
11869 | cat >>confdefs.h <<_ACEOF | ||
11870 | #define HAVE_LONG_DOUBLE 1 | ||
11871 | _ACEOF | ||
11872 | |||
11873 | |||
11874 | fi | ||
11875 | |||
11876 | |||
11877 | # Check datatype sizes | ||
11878 | # The cast to long int works around a bug in the HP C Compiler | ||
11879 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
11880 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
11881 | # This bug is HP SR number 8606223364. | ||
11882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 | ||
11883 | $as_echo_n "checking size of short int... " >&6; } | ||
11884 | if ${ac_cv_sizeof_short_int+:} false; then : | ||
11885 | $as_echo_n "(cached) " >&6 | ||
11886 | else | ||
11887 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : | ||
11888 | |||
11889 | else | ||
11890 | if test "$ac_cv_type_short_int" = yes; then | ||
11891 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
11892 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11893 | as_fn_error 77 "cannot compute sizeof (short int) | ||
11894 | See \`config.log' for more details" "$LINENO" 5; } | ||
11895 | else | ||
11896 | ac_cv_sizeof_short_int=0 | ||
11897 | fi | ||
11898 | fi | ||
11899 | |||
11900 | fi | ||
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 | ||
11902 | $as_echo "$ac_cv_sizeof_short_int" >&6; } | ||
11903 | |||
11904 | |||
11905 | |||
11906 | cat >>confdefs.h <<_ACEOF | ||
11907 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
11908 | _ACEOF | ||
11909 | |||
11910 | |||
11911 | # The cast to long int works around a bug in the HP C Compiler | ||
11912 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
11913 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
11914 | # This bug is HP SR number 8606223364. | ||
11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | ||
11916 | $as_echo_n "checking size of int... " >&6; } | ||
11917 | if ${ac_cv_sizeof_int+:} false; then : | ||
11918 | $as_echo_n "(cached) " >&6 | ||
11919 | else | ||
11920 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | ||
11921 | |||
11922 | else | ||
11923 | if test "$ac_cv_type_int" = yes; then | ||
11924 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
11925 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11926 | as_fn_error 77 "cannot compute sizeof (int) | ||
11927 | See \`config.log' for more details" "$LINENO" 5; } | ||
11928 | else | ||
11929 | ac_cv_sizeof_int=0 | ||
11930 | fi | ||
11931 | fi | ||
11932 | |||
11933 | fi | ||
11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | ||
11935 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||
11936 | |||
11937 | |||
11938 | |||
11939 | cat >>confdefs.h <<_ACEOF | ||
11940 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
11941 | _ACEOF | ||
11942 | |||
11943 | |||
11944 | # The cast to long int works around a bug in the HP C Compiler | ||
11945 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
11946 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
11947 | # This bug is HP SR number 8606223364. | ||
11948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 | ||
11949 | $as_echo_n "checking size of long int... " >&6; } | ||
11950 | if ${ac_cv_sizeof_long_int+:} false; then : | ||
11951 | $as_echo_n "(cached) " >&6 | ||
11952 | else | ||
11953 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : | ||
11954 | |||
11955 | else | ||
11956 | if test "$ac_cv_type_long_int" = yes; then | ||
11957 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
11958 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11959 | as_fn_error 77 "cannot compute sizeof (long int) | ||
11960 | See \`config.log' for more details" "$LINENO" 5; } | ||
11961 | else | ||
11962 | ac_cv_sizeof_long_int=0 | ||
11963 | fi | ||
11964 | fi | ||
11965 | |||
11966 | fi | ||
11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 | ||
11968 | $as_echo "$ac_cv_sizeof_long_int" >&6; } | ||
11969 | |||
11970 | |||
11971 | |||
11972 | cat >>confdefs.h <<_ACEOF | ||
11973 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
11974 | _ACEOF | ||
11975 | |||
11976 | |||
11977 | # The cast to long int works around a bug in the HP C Compiler | ||
11978 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
11979 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
11980 | # This bug is HP SR number 8606223364. | ||
11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 | ||
11982 | $as_echo_n "checking size of long long int... " >&6; } | ||
11983 | if ${ac_cv_sizeof_long_long_int+:} false; then : | ||
11984 | $as_echo_n "(cached) " >&6 | ||
11985 | else | ||
11986 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : | ||
11987 | |||
11988 | else | ||
11989 | if test "$ac_cv_type_long_long_int" = yes; then | ||
11990 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
11991 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11992 | as_fn_error 77 "cannot compute sizeof (long long int) | ||
11993 | See \`config.log' for more details" "$LINENO" 5; } | ||
11994 | else | ||
11995 | ac_cv_sizeof_long_long_int=0 | ||
11996 | fi | ||
11997 | fi | ||
11998 | |||
11999 | fi | ||
12000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 | ||
12001 | $as_echo "$ac_cv_sizeof_long_long_int" >&6; } | ||
12002 | |||
12003 | |||
12004 | |||
12005 | cat >>confdefs.h <<_ACEOF | ||
12006 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
12007 | _ACEOF | ||
12008 | |||
12009 | |||
12010 | |||
12011 | # Sanity check long long for some platforms (AIX) | ||
12012 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
12013 | ac_cv_sizeof_long_long_int=0 | ||
12014 | fi | ||
12015 | |||
12016 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
12017 | if test -z "$have_llong_max"; then | ||
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 | ||
12019 | $as_echo_n "checking for max value of long long... " >&6; } | ||
12020 | if test "$cross_compiling" = yes; then : | ||
12021 | |||
12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12023 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12024 | |||
12025 | |||
12026 | else | ||
12027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12028 | /* end confdefs.h. */ | ||
12029 | |||
12030 | #include <stdio.h> | ||
12031 | /* Why is this so damn hard? */ | ||
12032 | #ifdef __GNUC__ | ||
12033 | # undef __GNUC__ | ||
12034 | #endif | ||
12035 | #define __USE_ISOC99 | ||
12036 | #include <limits.h> | ||
12037 | #define DATA "conftest.llminmax" | ||
12038 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
12039 | |||
12040 | /* | ||
12041 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
12042 | * we do this the hard way. | ||
12043 | */ | ||
12044 | static int | ||
12045 | fprint_ll(FILE *f, long long n) | ||
12046 | { | ||
12047 | unsigned int i; | ||
12048 | int l[sizeof(long long) * 8]; | ||
12049 | |||
12050 | if (n < 0) | ||
12051 | if (fprintf(f, "-") < 0) | ||
12052 | return -1; | ||
12053 | for (i = 0; n != 0; i++) { | ||
12054 | l[i] = my_abs(n % 10); | ||
12055 | n /= 10; | ||
12056 | } | ||
12057 | do { | ||
12058 | if (fprintf(f, "%d", l[--i]) < 0) | ||
12059 | return -1; | ||
12060 | } while (i != 0); | ||
12061 | if (fprintf(f, " ") < 0) | ||
12062 | return -1; | ||
12063 | return 0; | ||
12064 | } | ||
12065 | |||
12066 | int | ||
12067 | main () | ||
12068 | { | ||
12069 | |||
12070 | FILE *f; | ||
12071 | long long i, llmin, llmax = 0; | ||
12072 | |||
12073 | if((f = fopen(DATA,"w")) == NULL) | ||
12074 | exit(1); | ||
12075 | |||
12076 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
12077 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
12078 | llmin = LLONG_MIN; | ||
12079 | llmax = LLONG_MAX; | ||
12080 | #else | ||
12081 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
12082 | /* This will work on one's complement and two's complement */ | ||
12083 | for (i = 1; i > llmax; i <<= 1, i++) | ||
12084 | llmax = i; | ||
12085 | llmin = llmax + 1LL; /* wrap */ | ||
12086 | #endif | ||
12087 | |||
12088 | /* Sanity check */ | ||
12089 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
12090 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
12091 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
12092 | fprintf(f, "unknown unknown\n"); | ||
12093 | exit(2); | ||
12094 | } | ||
12095 | |||
12096 | if (fprint_ll(f, llmin) < 0) | ||
12097 | exit(3); | ||
12098 | if (fprint_ll(f, llmax) < 0) | ||
12099 | exit(4); | ||
12100 | if (fclose(f) < 0) | ||
12101 | exit(5); | ||
12102 | exit(0); | ||
12103 | |||
12104 | ; | ||
12105 | return 0; | ||
12106 | } | ||
12107 | _ACEOF | ||
12108 | if ac_fn_c_try_run "$LINENO"; then : | ||
12109 | |||
12110 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
12111 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
12112 | |||
12113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 | ||
12114 | $as_echo "$llong_max" >&6; } | ||
12115 | |||
12116 | cat >>confdefs.h <<_ACEOF | ||
12117 | #define LLONG_MAX ${llong_max}LL | ||
12118 | _ACEOF | ||
12119 | |||
12120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 | ||
12121 | $as_echo_n "checking for min value of long long... " >&6; } | ||
12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 | ||
12123 | $as_echo "$llong_min" >&6; } | ||
12124 | |||
12125 | cat >>confdefs.h <<_ACEOF | ||
12126 | #define LLONG_MIN ${llong_min}LL | ||
12127 | _ACEOF | ||
12128 | |||
12129 | |||
12130 | else | ||
12131 | |||
12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
12133 | $as_echo "not found" >&6; } | ||
12134 | |||
12135 | fi | ||
12136 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12137 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12138 | fi | ||
12139 | |||
12140 | fi | ||
12141 | |||
12142 | |||
12143 | # More checks for data types | ||
12144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 | ||
12145 | $as_echo_n "checking for u_int type... " >&6; } | ||
12146 | if ${ac_cv_have_u_int+:} false; then : | ||
12147 | $as_echo_n "(cached) " >&6 | ||
12148 | else | ||
12149 | |||
12150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12151 | /* end confdefs.h. */ | ||
12152 | #include <sys/types.h> | ||
12153 | int | ||
12154 | main () | ||
12155 | { | ||
12156 | u_int a; a = 1; | ||
12157 | ; | ||
12158 | return 0; | ||
12159 | } | ||
12160 | _ACEOF | ||
12161 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12162 | ac_cv_have_u_int="yes" | ||
12163 | else | ||
12164 | ac_cv_have_u_int="no" | ||
12165 | |||
12166 | fi | ||
12167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12168 | |||
12169 | fi | ||
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 | ||
12171 | $as_echo "$ac_cv_have_u_int" >&6; } | ||
12172 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
12173 | |||
12174 | $as_echo "#define HAVE_U_INT 1" >>confdefs.h | ||
12175 | |||
12176 | have_u_int=1 | ||
12177 | fi | ||
12178 | |||
12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 | ||
12180 | $as_echo_n "checking for intXX_t types... " >&6; } | ||
12181 | if ${ac_cv_have_intxx_t+:} false; then : | ||
12182 | $as_echo_n "(cached) " >&6 | ||
12183 | else | ||
12184 | |||
12185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12186 | /* end confdefs.h. */ | ||
12187 | #include <sys/types.h> | ||
12188 | int | ||
12189 | main () | ||
12190 | { | ||
12191 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
12192 | ; | ||
12193 | return 0; | ||
12194 | } | ||
12195 | _ACEOF | ||
12196 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12197 | ac_cv_have_intxx_t="yes" | ||
12198 | else | ||
12199 | ac_cv_have_intxx_t="no" | ||
12200 | |||
12201 | fi | ||
12202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12203 | |||
12204 | fi | ||
12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 | ||
12206 | $as_echo "$ac_cv_have_intxx_t" >&6; } | ||
12207 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
12208 | |||
12209 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
12210 | |||
12211 | have_intxx_t=1 | ||
12212 | fi | ||
12213 | |||
12214 | if (test -z "$have_intxx_t" && \ | ||
12215 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
12216 | then | ||
12217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 | ||
12218 | $as_echo_n "checking for intXX_t types in stdint.h... " >&6; } | ||
12219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12220 | /* end confdefs.h. */ | ||
12221 | #include <stdint.h> | ||
12222 | int | ||
12223 | main () | ||
12224 | { | ||
12225 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
12226 | ; | ||
12227 | return 0; | ||
12228 | } | ||
12229 | _ACEOF | ||
12230 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12231 | |||
12232 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
12233 | |||
12234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12235 | $as_echo "yes" >&6; } | ||
12236 | |||
12237 | else | ||
12238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12239 | $as_echo "no" >&6; } | ||
12240 | |||
12241 | fi | ||
12242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12243 | fi | ||
12244 | |||
12245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 | ||
12246 | $as_echo_n "checking for int64_t type... " >&6; } | ||
12247 | if ${ac_cv_have_int64_t+:} false; then : | ||
12248 | $as_echo_n "(cached) " >&6 | ||
12249 | else | ||
12250 | |||
12251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12252 | /* end confdefs.h. */ | ||
12253 | |||
12254 | #include <sys/types.h> | ||
12255 | #ifdef HAVE_STDINT_H | ||
12256 | # include <stdint.h> | ||
12257 | #endif | ||
12258 | #include <sys/socket.h> | ||
12259 | #ifdef HAVE_SYS_BITYPES_H | ||
12260 | # include <sys/bitypes.h> | ||
12261 | #endif | ||
12262 | |||
12263 | int | ||
12264 | main () | ||
12265 | { | ||
12266 | |||
12267 | int64_t a; a = 1; | ||
12268 | |||
12269 | ; | ||
12270 | return 0; | ||
12271 | } | ||
12272 | _ACEOF | ||
12273 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12274 | ac_cv_have_int64_t="yes" | ||
12275 | else | ||
12276 | ac_cv_have_int64_t="no" | ||
12277 | |||
12278 | fi | ||
12279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12280 | |||
12281 | fi | ||
12282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 | ||
12283 | $as_echo "$ac_cv_have_int64_t" >&6; } | ||
12284 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
12285 | |||
12286 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | ||
12287 | |||
12288 | fi | ||
12289 | |||
12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 | ||
12291 | $as_echo_n "checking for u_intXX_t types... " >&6; } | ||
12292 | if ${ac_cv_have_u_intxx_t+:} false; then : | ||
12293 | $as_echo_n "(cached) " >&6 | ||
12294 | else | ||
12295 | |||
12296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12297 | /* end confdefs.h. */ | ||
12298 | #include <sys/types.h> | ||
12299 | int | ||
12300 | main () | ||
12301 | { | ||
12302 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
12303 | ; | ||
12304 | return 0; | ||
12305 | } | ||
12306 | _ACEOF | ||
12307 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12308 | ac_cv_have_u_intxx_t="yes" | ||
12309 | else | ||
12310 | ac_cv_have_u_intxx_t="no" | ||
12311 | |||
12312 | fi | ||
12313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12314 | |||
12315 | fi | ||
12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 | ||
12317 | $as_echo "$ac_cv_have_u_intxx_t" >&6; } | ||
12318 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
12319 | |||
12320 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
12321 | |||
12322 | have_u_intxx_t=1 | ||
12323 | fi | ||
12324 | |||
12325 | if test -z "$have_u_intxx_t" ; then | ||
12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 | ||
12327 | $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } | ||
12328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12329 | /* end confdefs.h. */ | ||
12330 | #include <sys/socket.h> | ||
12331 | int | ||
12332 | main () | ||
12333 | { | ||
12334 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
12335 | ; | ||
12336 | return 0; | ||
12337 | } | ||
12338 | _ACEOF | ||
12339 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12340 | |||
12341 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
12342 | |||
12343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12344 | $as_echo "yes" >&6; } | ||
12345 | |||
12346 | else | ||
12347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12348 | $as_echo "no" >&6; } | ||
12349 | |||
12350 | fi | ||
12351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12352 | fi | ||
12353 | |||
12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 | ||
12355 | $as_echo_n "checking for u_int64_t types... " >&6; } | ||
12356 | if ${ac_cv_have_u_int64_t+:} false; then : | ||
12357 | $as_echo_n "(cached) " >&6 | ||
12358 | else | ||
12359 | |||
12360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12361 | /* end confdefs.h. */ | ||
12362 | #include <sys/types.h> | ||
12363 | int | ||
12364 | main () | ||
12365 | { | ||
12366 | u_int64_t a; a = 1; | ||
12367 | ; | ||
12368 | return 0; | ||
12369 | } | ||
12370 | _ACEOF | ||
12371 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12372 | ac_cv_have_u_int64_t="yes" | ||
12373 | else | ||
12374 | ac_cv_have_u_int64_t="no" | ||
12375 | |||
12376 | fi | ||
12377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12378 | |||
12379 | fi | ||
12380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5 | ||
12381 | $as_echo "$ac_cv_have_u_int64_t" >&6; } | ||
12382 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
12383 | |||
12384 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
12385 | |||
12386 | have_u_int64_t=1 | ||
12387 | fi | ||
12388 | |||
12389 | if test -z "$have_u_int64_t" ; then | ||
12390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
12391 | $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } | ||
12392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12393 | /* end confdefs.h. */ | ||
12394 | #include <sys/bitypes.h> | ||
12395 | int | ||
12396 | main () | ||
12397 | { | ||
12398 | u_int64_t a; a = 1 | ||
12399 | ; | ||
12400 | return 0; | ||
12401 | } | ||
12402 | _ACEOF | ||
12403 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12404 | |||
12405 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
12406 | |||
12407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12408 | $as_echo "yes" >&6; } | ||
12409 | |||
12410 | else | ||
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12412 | $as_echo "no" >&6; } | ||
12413 | |||
12414 | fi | ||
12415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12416 | fi | ||
12417 | |||
12418 | if test -z "$have_u_intxx_t" ; then | ||
12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 | ||
12420 | $as_echo_n "checking for uintXX_t types... " >&6; } | ||
12421 | if ${ac_cv_have_uintxx_t+:} false; then : | ||
12422 | $as_echo_n "(cached) " >&6 | ||
12423 | else | ||
12424 | |||
12425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12426 | /* end confdefs.h. */ | ||
12427 | |||
12428 | #include <sys/types.h> | ||
12429 | |||
12430 | int | ||
12431 | main () | ||
12432 | { | ||
12433 | |||
12434 | uint8_t a; | ||
12435 | uint16_t b; | ||
12436 | uint32_t c; | ||
12437 | a = b = c = 1; | ||
12438 | |||
12439 | ; | ||
12440 | return 0; | ||
12441 | } | ||
12442 | _ACEOF | ||
12443 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12444 | ac_cv_have_uintxx_t="yes" | ||
12445 | else | ||
12446 | ac_cv_have_uintxx_t="no" | ||
12447 | |||
12448 | fi | ||
12449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12450 | |||
12451 | fi | ||
12452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 | ||
12453 | $as_echo "$ac_cv_have_uintxx_t" >&6; } | ||
12454 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
12455 | |||
12456 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
12457 | |||
12458 | fi | ||
12459 | fi | ||
12460 | |||
12461 | if test -z "$have_uintxx_t" ; then | ||
12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 | ||
12463 | $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } | ||
12464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12465 | /* end confdefs.h. */ | ||
12466 | #include <stdint.h> | ||
12467 | int | ||
12468 | main () | ||
12469 | { | ||
12470 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12471 | ; | ||
12472 | return 0; | ||
12473 | } | ||
12474 | _ACEOF | ||
12475 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12476 | |||
12477 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
12478 | |||
12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12480 | $as_echo "yes" >&6; } | ||
12481 | |||
12482 | else | ||
12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12484 | $as_echo "no" >&6; } | ||
12485 | |||
12486 | fi | ||
12487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12488 | fi | ||
12489 | |||
12490 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
12491 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
12492 | then | ||
12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
12494 | $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } | ||
12495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12496 | /* end confdefs.h. */ | ||
12497 | |||
12498 | #include <sys/bitypes.h> | ||
12499 | |||
12500 | int | ||
12501 | main () | ||
12502 | { | ||
12503 | |||
12504 | int8_t a; int16_t b; int32_t c; | ||
12505 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
12506 | a = b = c = e = f = g = 1; | ||
12507 | |||
12508 | ; | ||
12509 | return 0; | ||
12510 | } | ||
12511 | _ACEOF | ||
12512 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12513 | |||
12514 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
12515 | |||
12516 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
12517 | |||
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12519 | $as_echo "yes" >&6; } | ||
12520 | |||
12521 | else | ||
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12523 | $as_echo "no" >&6; } | ||
12524 | |||
12525 | fi | ||
12526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12527 | fi | ||
12528 | |||
12529 | |||
12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 | ||
12531 | $as_echo_n "checking for u_char... " >&6; } | ||
12532 | if ${ac_cv_have_u_char+:} false; then : | ||
12533 | $as_echo_n "(cached) " >&6 | ||
12534 | else | ||
12535 | |||
12536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12537 | /* end confdefs.h. */ | ||
12538 | #include <sys/types.h> | ||
12539 | int | ||
12540 | main () | ||
12541 | { | ||
12542 | u_char foo; foo = 125; | ||
12543 | ; | ||
12544 | return 0; | ||
12545 | } | ||
12546 | _ACEOF | ||
12547 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12548 | ac_cv_have_u_char="yes" | ||
12549 | else | ||
12550 | ac_cv_have_u_char="no" | ||
12551 | |||
12552 | fi | ||
12553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12554 | |||
12555 | fi | ||
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 | ||
12557 | $as_echo "$ac_cv_have_u_char" >&6; } | ||
12558 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
12559 | |||
12560 | $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h | ||
12561 | |||
12562 | fi | ||
12563 | |||
12564 | |||
12565 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | ||
12566 | #include <sys/socket.h> | ||
12567 | " | ||
12568 | if test "x$ac_cv_type_socklen_t" = xyes; then : | ||
12569 | |||
12570 | else | ||
12571 | |||
12572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 | ||
12573 | $as_echo_n "checking for socklen_t equivalent... " >&6; } | ||
12574 | if ${curl_cv_socklen_t_equiv+:} false; then : | ||
12575 | $as_echo_n "(cached) " >&6 | ||
12576 | else | ||
12577 | |||
12578 | # Systems have either "struct sockaddr *" or | ||
12579 | # "void *" as the second argument to getpeername | ||
12580 | curl_cv_socklen_t_equiv= | ||
12581 | for arg2 in "struct sockaddr" void; do | ||
12582 | for t in int size_t unsigned long "unsigned long"; do | ||
12583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12584 | /* end confdefs.h. */ | ||
12585 | |||
12586 | #include <sys/types.h> | ||
12587 | #include <sys/socket.h> | ||
12588 | |||
12589 | int getpeername (int, $arg2 *, $t *); | ||
12590 | |||
12591 | int | ||
12592 | main () | ||
12593 | { | ||
12594 | |||
12595 | $t len; | ||
12596 | getpeername(0,0,&len); | ||
12597 | |||
12598 | ; | ||
12599 | return 0; | ||
12600 | } | ||
12601 | _ACEOF | ||
12602 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12603 | |||
12604 | curl_cv_socklen_t_equiv="$t" | ||
12605 | break | ||
12606 | |||
12607 | fi | ||
12608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12609 | done | ||
12610 | done | ||
12611 | |||
12612 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
12613 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 | ||
12614 | fi | ||
12615 | |||
12616 | fi | ||
12617 | |||
12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 | ||
12619 | $as_echo "$curl_cv_socklen_t_equiv" >&6; } | ||
12620 | |||
12621 | cat >>confdefs.h <<_ACEOF | ||
12622 | #define socklen_t $curl_cv_socklen_t_equiv | ||
12623 | _ACEOF | ||
12624 | |||
12625 | fi | ||
12626 | |||
12627 | |||
12628 | |||
12629 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> | ||
12630 | " | ||
12631 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : | ||
12632 | |||
12633 | cat >>confdefs.h <<_ACEOF | ||
12634 | #define HAVE_SIG_ATOMIC_T 1 | ||
12635 | _ACEOF | ||
12636 | |||
12637 | |||
12638 | fi | ||
12639 | |||
12640 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " | ||
12641 | #include <sys/types.h> | ||
12642 | #ifdef HAVE_SYS_BITYPES_H | ||
12643 | #include <sys/bitypes.h> | ||
12644 | #endif | ||
12645 | #ifdef HAVE_SYS_STATFS_H | ||
12646 | #include <sys/statfs.h> | ||
12647 | #endif | ||
12648 | #ifdef HAVE_SYS_STATVFS_H | ||
12649 | #include <sys/statvfs.h> | ||
12650 | #endif | ||
12651 | |||
12652 | " | ||
12653 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : | ||
12654 | |||
12655 | cat >>confdefs.h <<_ACEOF | ||
12656 | #define HAVE_FSBLKCNT_T 1 | ||
12657 | _ACEOF | ||
12658 | |||
12659 | |||
12660 | fi | ||
12661 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " | ||
12662 | #include <sys/types.h> | ||
12663 | #ifdef HAVE_SYS_BITYPES_H | ||
12664 | #include <sys/bitypes.h> | ||
12665 | #endif | ||
12666 | #ifdef HAVE_SYS_STATFS_H | ||
12667 | #include <sys/statfs.h> | ||
12668 | #endif | ||
12669 | #ifdef HAVE_SYS_STATVFS_H | ||
12670 | #include <sys/statvfs.h> | ||
12671 | #endif | ||
12672 | |||
12673 | " | ||
12674 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : | ||
12675 | |||
12676 | cat >>confdefs.h <<_ACEOF | ||
12677 | #define HAVE_FSFILCNT_T 1 | ||
12678 | _ACEOF | ||
12679 | |||
12680 | |||
12681 | fi | ||
12682 | |||
12683 | |||
12684 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> | ||
12685 | #include <netinet/in.h> | ||
12686 | " | ||
12687 | if test "x$ac_cv_type_in_addr_t" = xyes; then : | ||
12688 | |||
12689 | cat >>confdefs.h <<_ACEOF | ||
12690 | #define HAVE_IN_ADDR_T 1 | ||
12691 | _ACEOF | ||
12692 | |||
12693 | |||
12694 | fi | ||
12695 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> | ||
12696 | #include <netinet/in.h> | ||
12697 | " | ||
12698 | if test "x$ac_cv_type_in_port_t" = xyes; then : | ||
12699 | |||
12700 | cat >>confdefs.h <<_ACEOF | ||
12701 | #define HAVE_IN_PORT_T 1 | ||
12702 | _ACEOF | ||
12703 | |||
12704 | |||
12705 | fi | ||
12706 | |||
12707 | |||
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 | ||
12709 | $as_echo_n "checking for size_t... " >&6; } | ||
12710 | if ${ac_cv_have_size_t+:} false; then : | ||
12711 | $as_echo_n "(cached) " >&6 | ||
12712 | else | ||
12713 | |||
12714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12715 | /* end confdefs.h. */ | ||
12716 | #include <sys/types.h> | ||
12717 | int | ||
12718 | main () | ||
12719 | { | ||
12720 | size_t foo; foo = 1235; | ||
12721 | ; | ||
12722 | return 0; | ||
12723 | } | ||
12724 | _ACEOF | ||
12725 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12726 | ac_cv_have_size_t="yes" | ||
12727 | else | ||
12728 | ac_cv_have_size_t="no" | ||
12729 | |||
12730 | fi | ||
12731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12732 | |||
12733 | fi | ||
12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5 | ||
12735 | $as_echo "$ac_cv_have_size_t" >&6; } | ||
12736 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
12737 | |||
12738 | $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h | ||
12739 | |||
12740 | fi | ||
12741 | |||
12742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 | ||
12743 | $as_echo_n "checking for ssize_t... " >&6; } | ||
12744 | if ${ac_cv_have_ssize_t+:} false; then : | ||
12745 | $as_echo_n "(cached) " >&6 | ||
12746 | else | ||
12747 | |||
12748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12749 | /* end confdefs.h. */ | ||
12750 | #include <sys/types.h> | ||
12751 | int | ||
12752 | main () | ||
12753 | { | ||
12754 | ssize_t foo; foo = 1235; | ||
12755 | ; | ||
12756 | return 0; | ||
12757 | } | ||
12758 | _ACEOF | ||
12759 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12760 | ac_cv_have_ssize_t="yes" | ||
12761 | else | ||
12762 | ac_cv_have_ssize_t="no" | ||
12763 | |||
12764 | fi | ||
12765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12766 | |||
12767 | fi | ||
12768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 | ||
12769 | $as_echo "$ac_cv_have_ssize_t" >&6; } | ||
12770 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
12771 | |||
12772 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | ||
12773 | |||
12774 | fi | ||
12775 | |||
12776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 | ||
12777 | $as_echo_n "checking for clock_t... " >&6; } | ||
12778 | if ${ac_cv_have_clock_t+:} false; then : | ||
12779 | $as_echo_n "(cached) " >&6 | ||
12780 | else | ||
12781 | |||
12782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12783 | /* end confdefs.h. */ | ||
12784 | #include <time.h> | ||
12785 | int | ||
12786 | main () | ||
12787 | { | ||
12788 | clock_t foo; foo = 1235; | ||
12789 | ; | ||
12790 | return 0; | ||
12791 | } | ||
12792 | _ACEOF | ||
12793 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12794 | ac_cv_have_clock_t="yes" | ||
12795 | else | ||
12796 | ac_cv_have_clock_t="no" | ||
12797 | |||
12798 | fi | ||
12799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12800 | |||
12801 | fi | ||
12802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 | ||
12803 | $as_echo "$ac_cv_have_clock_t" >&6; } | ||
12804 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
12805 | |||
12806 | $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h | ||
12807 | |||
12808 | fi | ||
12809 | |||
12810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 | ||
12811 | $as_echo_n "checking for sa_family_t... " >&6; } | ||
12812 | if ${ac_cv_have_sa_family_t+:} false; then : | ||
12813 | $as_echo_n "(cached) " >&6 | ||
12814 | else | ||
12815 | |||
12816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12817 | /* end confdefs.h. */ | ||
12818 | |||
12819 | #include <sys/types.h> | ||
12820 | #include <sys/socket.h> | ||
12821 | |||
12822 | int | ||
12823 | main () | ||
12824 | { | ||
12825 | sa_family_t foo; foo = 1235; | ||
12826 | ; | ||
12827 | return 0; | ||
12828 | } | ||
12829 | _ACEOF | ||
12830 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12831 | ac_cv_have_sa_family_t="yes" | ||
12832 | else | ||
12833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12834 | /* end confdefs.h. */ | ||
12835 | |||
12836 | #include <sys/types.h> | ||
12837 | #include <sys/socket.h> | ||
12838 | #include <netinet/in.h> | ||
12839 | |||
12840 | int | ||
12841 | main () | ||
12842 | { | ||
12843 | sa_family_t foo; foo = 1235; | ||
12844 | ; | ||
12845 | return 0; | ||
12846 | } | ||
12847 | _ACEOF | ||
12848 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12849 | ac_cv_have_sa_family_t="yes" | ||
12850 | else | ||
12851 | ac_cv_have_sa_family_t="no" | ||
12852 | |||
12853 | fi | ||
12854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12855 | |||
12856 | fi | ||
12857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12858 | |||
12859 | fi | ||
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 | ||
12861 | $as_echo "$ac_cv_have_sa_family_t" >&6; } | ||
12862 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
12863 | |||
12864 | $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h | ||
12865 | |||
12866 | fi | ||
12867 | |||
12868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 | ||
12869 | $as_echo_n "checking for pid_t... " >&6; } | ||
12870 | if ${ac_cv_have_pid_t+:} false; then : | ||
12871 | $as_echo_n "(cached) " >&6 | ||
12872 | else | ||
12873 | |||
12874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12875 | /* end confdefs.h. */ | ||
12876 | #include <sys/types.h> | ||
12877 | int | ||
12878 | main () | ||
12879 | { | ||
12880 | pid_t foo; foo = 1235; | ||
12881 | ; | ||
12882 | return 0; | ||
12883 | } | ||
12884 | _ACEOF | ||
12885 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12886 | ac_cv_have_pid_t="yes" | ||
12887 | else | ||
12888 | ac_cv_have_pid_t="no" | ||
12889 | |||
12890 | fi | ||
12891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12892 | |||
12893 | fi | ||
12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 | ||
12895 | $as_echo "$ac_cv_have_pid_t" >&6; } | ||
12896 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
12897 | |||
12898 | $as_echo "#define HAVE_PID_T 1" >>confdefs.h | ||
12899 | |||
12900 | fi | ||
12901 | |||
12902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 | ||
12903 | $as_echo_n "checking for mode_t... " >&6; } | ||
12904 | if ${ac_cv_have_mode_t+:} false; then : | ||
12905 | $as_echo_n "(cached) " >&6 | ||
12906 | else | ||
12907 | |||
12908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12909 | /* end confdefs.h. */ | ||
12910 | #include <sys/types.h> | ||
12911 | int | ||
12912 | main () | ||
12913 | { | ||
12914 | mode_t foo; foo = 1235; | ||
12915 | ; | ||
12916 | return 0; | ||
12917 | } | ||
12918 | _ACEOF | ||
12919 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12920 | ac_cv_have_mode_t="yes" | ||
12921 | else | ||
12922 | ac_cv_have_mode_t="no" | ||
12923 | |||
12924 | fi | ||
12925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12926 | |||
12927 | fi | ||
12928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 | ||
12929 | $as_echo "$ac_cv_have_mode_t" >&6; } | ||
12930 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
12931 | |||
12932 | $as_echo "#define HAVE_MODE_T 1" >>confdefs.h | ||
12933 | |||
12934 | fi | ||
12935 | |||
12936 | |||
12937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 | ||
12938 | $as_echo_n "checking for struct sockaddr_storage... " >&6; } | ||
12939 | if ${ac_cv_have_struct_sockaddr_storage+:} false; then : | ||
12940 | $as_echo_n "(cached) " >&6 | ||
12941 | else | ||
12942 | |||
12943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12944 | /* end confdefs.h. */ | ||
12945 | |||
12946 | #include <sys/types.h> | ||
12947 | #include <sys/socket.h> | ||
12948 | |||
12949 | int | ||
12950 | main () | ||
12951 | { | ||
12952 | struct sockaddr_storage s; | ||
12953 | ; | ||
12954 | return 0; | ||
12955 | } | ||
12956 | _ACEOF | ||
12957 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12958 | ac_cv_have_struct_sockaddr_storage="yes" | ||
12959 | else | ||
12960 | ac_cv_have_struct_sockaddr_storage="no" | ||
12961 | |||
12962 | fi | ||
12963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12964 | |||
12965 | fi | ||
12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
12967 | $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
12968 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
12969 | |||
12970 | $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h | ||
12971 | |||
12972 | fi | ||
12973 | |||
12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 | ||
12975 | $as_echo_n "checking for struct sockaddr_in6... " >&6; } | ||
12976 | if ${ac_cv_have_struct_sockaddr_in6+:} false; then : | ||
12977 | $as_echo_n "(cached) " >&6 | ||
12978 | else | ||
12979 | |||
12980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12981 | /* end confdefs.h. */ | ||
12982 | |||
12983 | #include <sys/types.h> | ||
12984 | #include <netinet/in.h> | ||
12985 | |||
12986 | int | ||
12987 | main () | ||
12988 | { | ||
12989 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
12990 | ; | ||
12991 | return 0; | ||
12992 | } | ||
12993 | _ACEOF | ||
12994 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12995 | ac_cv_have_struct_sockaddr_in6="yes" | ||
12996 | else | ||
12997 | ac_cv_have_struct_sockaddr_in6="no" | ||
12998 | |||
12999 | fi | ||
13000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13001 | |||
13002 | fi | ||
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
13004 | $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
13005 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
13006 | |||
13007 | $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h | ||
13008 | |||
13009 | fi | ||
13010 | |||
13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 | ||
13012 | $as_echo_n "checking for struct in6_addr... " >&6; } | ||
13013 | if ${ac_cv_have_struct_in6_addr+:} false; then : | ||
13014 | $as_echo_n "(cached) " >&6 | ||
13015 | else | ||
13016 | |||
13017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13018 | /* end confdefs.h. */ | ||
13019 | |||
13020 | #include <sys/types.h> | ||
13021 | #include <netinet/in.h> | ||
13022 | |||
13023 | int | ||
13024 | main () | ||
13025 | { | ||
13026 | struct in6_addr s; s.s6_addr[0] = 0; | ||
13027 | ; | ||
13028 | return 0; | ||
13029 | } | ||
13030 | _ACEOF | ||
13031 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13032 | ac_cv_have_struct_in6_addr="yes" | ||
13033 | else | ||
13034 | ac_cv_have_struct_in6_addr="no" | ||
13035 | |||
13036 | fi | ||
13037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13038 | |||
13039 | fi | ||
13040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 | ||
13041 | $as_echo "$ac_cv_have_struct_in6_addr" >&6; } | ||
13042 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
13043 | |||
13044 | $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h | ||
13045 | |||
13046 | |||
13047 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " | ||
13048 | #ifdef HAVE_SYS_TYPES_H | ||
13049 | #include <sys/types.h> | ||
13050 | #endif | ||
13051 | #include <netinet/in.h> | ||
13052 | |||
13053 | " | ||
13054 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : | ||
13055 | |||
13056 | cat >>confdefs.h <<_ACEOF | ||
13057 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
13058 | _ACEOF | ||
13059 | |||
13060 | |||
13061 | fi | ||
13062 | |||
13063 | fi | ||
13064 | |||
13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 | ||
13066 | $as_echo_n "checking for struct addrinfo... " >&6; } | ||
13067 | if ${ac_cv_have_struct_addrinfo+:} false; then : | ||
13068 | $as_echo_n "(cached) " >&6 | ||
13069 | else | ||
13070 | |||
13071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13072 | /* end confdefs.h. */ | ||
13073 | |||
13074 | #include <sys/types.h> | ||
13075 | #include <sys/socket.h> | ||
13076 | #include <netdb.h> | ||
13077 | |||
13078 | int | ||
13079 | main () | ||
13080 | { | ||
13081 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
13082 | ; | ||
13083 | return 0; | ||
13084 | } | ||
13085 | _ACEOF | ||
13086 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13087 | ac_cv_have_struct_addrinfo="yes" | ||
13088 | else | ||
13089 | ac_cv_have_struct_addrinfo="no" | ||
13090 | |||
13091 | fi | ||
13092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13093 | |||
13094 | fi | ||
13095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 | ||
13096 | $as_echo "$ac_cv_have_struct_addrinfo" >&6; } | ||
13097 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
13098 | |||
13099 | $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h | ||
13100 | |||
13101 | fi | ||
13102 | |||
13103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 | ||
13104 | $as_echo_n "checking for struct timeval... " >&6; } | ||
13105 | if ${ac_cv_have_struct_timeval+:} false; then : | ||
13106 | $as_echo_n "(cached) " >&6 | ||
13107 | else | ||
13108 | |||
13109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13110 | /* end confdefs.h. */ | ||
13111 | #include <sys/time.h> | ||
13112 | int | ||
13113 | main () | ||
13114 | { | ||
13115 | struct timeval tv; tv.tv_sec = 1; | ||
13116 | ; | ||
13117 | return 0; | ||
13118 | } | ||
13119 | _ACEOF | ||
13120 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13121 | ac_cv_have_struct_timeval="yes" | ||
13122 | else | ||
13123 | ac_cv_have_struct_timeval="no" | ||
13124 | |||
13125 | fi | ||
13126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13127 | |||
13128 | fi | ||
13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 | ||
13130 | $as_echo "$ac_cv_have_struct_timeval" >&6; } | ||
13131 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
13132 | |||
13133 | $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h | ||
13134 | |||
13135 | have_struct_timeval=1 | ||
13136 | fi | ||
13137 | |||
13138 | ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" | ||
13139 | if test "x$ac_cv_type_struct_timespec" = xyes; then : | ||
13140 | |||
13141 | cat >>confdefs.h <<_ACEOF | ||
13142 | #define HAVE_STRUCT_TIMESPEC 1 | ||
13143 | _ACEOF | ||
13144 | |||
13145 | |||
13146 | fi | ||
13147 | |||
13148 | |||
13149 | # We need int64_t or else certian parts of the compile will fail. | ||
13150 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
13151 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
13152 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
13153 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
13154 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
13155 | echo "" | ||
13156 | exit 1; | ||
13157 | else | ||
13158 | if test "$cross_compiling" = yes; then : | ||
13159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
13160 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
13161 | |||
13162 | else | ||
13163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13164 | /* end confdefs.h. */ | ||
13165 | |||
13166 | #include <stdio.h> | ||
13167 | #include <string.h> | ||
13168 | #ifdef HAVE_SNPRINTF | ||
13169 | main() | ||
13170 | { | ||
13171 | char buf[50]; | ||
13172 | char expected_out[50]; | ||
13173 | int mazsize = 50 ; | ||
13174 | #if (SIZEOF_LONG_INT == 8) | ||
13175 | long int num = 0x7fffffffffffffff; | ||
13176 | #else | ||
13177 | long long num = 0x7fffffffffffffffll; | ||
13178 | #endif | ||
13179 | strcpy(expected_out, "9223372036854775807"); | ||
13180 | snprintf(buf, mazsize, "%lld", num); | ||
13181 | if(strcmp(buf, expected_out) != 0) | ||
13182 | exit(1); | ||
13183 | exit(0); | ||
13184 | } | ||
13185 | #else | ||
13186 | main() { exit(0); } | ||
13187 | #endif | ||
13188 | |||
13189 | _ACEOF | ||
13190 | if ac_fn_c_try_run "$LINENO"; then : | ||
13191 | true | ||
13192 | else | ||
13193 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
13194 | |||
13195 | fi | ||
13196 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13197 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13198 | fi | ||
13199 | |||
13200 | fi | ||
13201 | |||
13202 | |||
13203 | # look for field 'ut_host' in header 'utmp.h' | ||
13204 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13205 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 | ||
13207 | $as_echo_n "checking for ut_host field in utmp.h... " >&6; } | ||
13208 | if eval \${$ossh_varname+:} false; then : | ||
13209 | $as_echo_n "(cached) " >&6 | ||
13210 | else | ||
13211 | |||
13212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13213 | /* end confdefs.h. */ | ||
13214 | #include <utmp.h> | ||
13215 | |||
13216 | _ACEOF | ||
13217 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13218 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
13219 | eval "$ossh_varname=yes" | ||
13220 | else | ||
13221 | eval "$ossh_varname=no" | ||
13222 | fi | ||
13223 | rm -f conftest* | ||
13224 | |||
13225 | fi | ||
13226 | |||
13227 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13228 | if test -n "`echo $ossh_varname`"; then | ||
13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13230 | $as_echo "$ossh_result" >&6; } | ||
13231 | if test "x$ossh_result" = "xyes"; then | ||
13232 | |||
13233 | $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h | ||
13234 | |||
13235 | fi | ||
13236 | else | ||
13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13238 | $as_echo "no" >&6; } | ||
13239 | fi | ||
13240 | |||
13241 | |||
13242 | # look for field 'ut_host' in header 'utmpx.h' | ||
13243 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13244 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 | ||
13246 | $as_echo_n "checking for ut_host field in utmpx.h... " >&6; } | ||
13247 | if eval \${$ossh_varname+:} false; then : | ||
13248 | $as_echo_n "(cached) " >&6 | ||
13249 | else | ||
13250 | |||
13251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13252 | /* end confdefs.h. */ | ||
13253 | #include <utmpx.h> | ||
13254 | |||
13255 | _ACEOF | ||
13256 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13257 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
13258 | eval "$ossh_varname=yes" | ||
13259 | else | ||
13260 | eval "$ossh_varname=no" | ||
13261 | fi | ||
13262 | rm -f conftest* | ||
13263 | |||
13264 | fi | ||
13265 | |||
13266 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13267 | if test -n "`echo $ossh_varname`"; then | ||
13268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13269 | $as_echo "$ossh_result" >&6; } | ||
13270 | if test "x$ossh_result" = "xyes"; then | ||
13271 | |||
13272 | $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h | ||
13273 | |||
13274 | fi | ||
13275 | else | ||
13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13277 | $as_echo "no" >&6; } | ||
13278 | fi | ||
13279 | |||
13280 | |||
13281 | # look for field 'syslen' in header 'utmpx.h' | ||
13282 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13283 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
13284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 | ||
13285 | $as_echo_n "checking for syslen field in utmpx.h... " >&6; } | ||
13286 | if eval \${$ossh_varname+:} false; then : | ||
13287 | $as_echo_n "(cached) " >&6 | ||
13288 | else | ||
13289 | |||
13290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13291 | /* end confdefs.h. */ | ||
13292 | #include <utmpx.h> | ||
13293 | |||
13294 | _ACEOF | ||
13295 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13296 | $EGREP "syslen" >/dev/null 2>&1; then : | ||
13297 | eval "$ossh_varname=yes" | ||
13298 | else | ||
13299 | eval "$ossh_varname=no" | ||
13300 | fi | ||
13301 | rm -f conftest* | ||
13302 | |||
13303 | fi | ||
13304 | |||
13305 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13306 | if test -n "`echo $ossh_varname`"; then | ||
13307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13308 | $as_echo "$ossh_result" >&6; } | ||
13309 | if test "x$ossh_result" = "xyes"; then | ||
13310 | |||
13311 | $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h | ||
13312 | |||
13313 | fi | ||
13314 | else | ||
13315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13316 | $as_echo "no" >&6; } | ||
13317 | fi | ||
13318 | |||
13319 | |||
13320 | # look for field 'ut_pid' in header 'utmp.h' | ||
13321 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13322 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
13323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 | ||
13324 | $as_echo_n "checking for ut_pid field in utmp.h... " >&6; } | ||
13325 | if eval \${$ossh_varname+:} false; then : | ||
13326 | $as_echo_n "(cached) " >&6 | ||
13327 | else | ||
13328 | |||
13329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13330 | /* end confdefs.h. */ | ||
13331 | #include <utmp.h> | ||
13332 | |||
13333 | _ACEOF | ||
13334 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13335 | $EGREP "ut_pid" >/dev/null 2>&1; then : | ||
13336 | eval "$ossh_varname=yes" | ||
13337 | else | ||
13338 | eval "$ossh_varname=no" | ||
13339 | fi | ||
13340 | rm -f conftest* | ||
13341 | |||
13342 | fi | ||
13343 | |||
13344 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13345 | if test -n "`echo $ossh_varname`"; then | ||
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13347 | $as_echo "$ossh_result" >&6; } | ||
13348 | if test "x$ossh_result" = "xyes"; then | ||
13349 | |||
13350 | $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h | ||
13351 | |||
13352 | fi | ||
13353 | else | ||
13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13355 | $as_echo "no" >&6; } | ||
13356 | fi | ||
13357 | |||
13358 | |||
13359 | # look for field 'ut_type' in header 'utmp.h' | ||
13360 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13361 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 | ||
13363 | $as_echo_n "checking for ut_type field in utmp.h... " >&6; } | ||
13364 | if eval \${$ossh_varname+:} false; then : | ||
13365 | $as_echo_n "(cached) " >&6 | ||
13366 | else | ||
13367 | |||
13368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13369 | /* end confdefs.h. */ | ||
13370 | #include <utmp.h> | ||
13371 | |||
13372 | _ACEOF | ||
13373 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13374 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
13375 | eval "$ossh_varname=yes" | ||
13376 | else | ||
13377 | eval "$ossh_varname=no" | ||
13378 | fi | ||
13379 | rm -f conftest* | ||
13380 | |||
13381 | fi | ||
13382 | |||
13383 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13384 | if test -n "`echo $ossh_varname`"; then | ||
13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13386 | $as_echo "$ossh_result" >&6; } | ||
13387 | if test "x$ossh_result" = "xyes"; then | ||
13388 | |||
13389 | $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h | ||
13390 | |||
13391 | fi | ||
13392 | else | ||
13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13394 | $as_echo "no" >&6; } | ||
13395 | fi | ||
13396 | |||
13397 | |||
13398 | # look for field 'ut_type' in header 'utmpx.h' | ||
13399 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13400 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 | ||
13402 | $as_echo_n "checking for ut_type field in utmpx.h... " >&6; } | ||
13403 | if eval \${$ossh_varname+:} false; then : | ||
13404 | $as_echo_n "(cached) " >&6 | ||
13405 | else | ||
13406 | |||
13407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13408 | /* end confdefs.h. */ | ||
13409 | #include <utmpx.h> | ||
13410 | |||
13411 | _ACEOF | ||
13412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13413 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
13414 | eval "$ossh_varname=yes" | ||
13415 | else | ||
13416 | eval "$ossh_varname=no" | ||
13417 | fi | ||
13418 | rm -f conftest* | ||
13419 | |||
13420 | fi | ||
13421 | |||
13422 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13423 | if test -n "`echo $ossh_varname`"; then | ||
13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13425 | $as_echo "$ossh_result" >&6; } | ||
13426 | if test "x$ossh_result" = "xyes"; then | ||
13427 | |||
13428 | $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h | ||
13429 | |||
13430 | fi | ||
13431 | else | ||
13432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13433 | $as_echo "no" >&6; } | ||
13434 | fi | ||
13435 | |||
13436 | |||
13437 | # look for field 'ut_tv' in header 'utmp.h' | ||
13438 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13439 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 | ||
13441 | $as_echo_n "checking for ut_tv field in utmp.h... " >&6; } | ||
13442 | if eval \${$ossh_varname+:} false; then : | ||
13443 | $as_echo_n "(cached) " >&6 | ||
13444 | else | ||
13445 | |||
13446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13447 | /* end confdefs.h. */ | ||
13448 | #include <utmp.h> | ||
13449 | |||
13450 | _ACEOF | ||
13451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13452 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
13453 | eval "$ossh_varname=yes" | ||
13454 | else | ||
13455 | eval "$ossh_varname=no" | ||
13456 | fi | ||
13457 | rm -f conftest* | ||
13458 | |||
13459 | fi | ||
13460 | |||
13461 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13462 | if test -n "`echo $ossh_varname`"; then | ||
13463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13464 | $as_echo "$ossh_result" >&6; } | ||
13465 | if test "x$ossh_result" = "xyes"; then | ||
13466 | |||
13467 | $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h | ||
13468 | |||
13469 | fi | ||
13470 | else | ||
13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13472 | $as_echo "no" >&6; } | ||
13473 | fi | ||
13474 | |||
13475 | |||
13476 | # look for field 'ut_id' in header 'utmp.h' | ||
13477 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13478 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 | ||
13480 | $as_echo_n "checking for ut_id field in utmp.h... " >&6; } | ||
13481 | if eval \${$ossh_varname+:} false; then : | ||
13482 | $as_echo_n "(cached) " >&6 | ||
13483 | else | ||
13484 | |||
13485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13486 | /* end confdefs.h. */ | ||
13487 | #include <utmp.h> | ||
13488 | |||
13489 | _ACEOF | ||
13490 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13491 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
13492 | eval "$ossh_varname=yes" | ||
13493 | else | ||
13494 | eval "$ossh_varname=no" | ||
13495 | fi | ||
13496 | rm -f conftest* | ||
13497 | |||
13498 | fi | ||
13499 | |||
13500 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13501 | if test -n "`echo $ossh_varname`"; then | ||
13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13503 | $as_echo "$ossh_result" >&6; } | ||
13504 | if test "x$ossh_result" = "xyes"; then | ||
13505 | |||
13506 | $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h | ||
13507 | |||
13508 | fi | ||
13509 | else | ||
13510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13511 | $as_echo "no" >&6; } | ||
13512 | fi | ||
13513 | |||
13514 | |||
13515 | # look for field 'ut_id' in header 'utmpx.h' | ||
13516 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13517 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 | ||
13519 | $as_echo_n "checking for ut_id field in utmpx.h... " >&6; } | ||
13520 | if eval \${$ossh_varname+:} false; then : | ||
13521 | $as_echo_n "(cached) " >&6 | ||
13522 | else | ||
13523 | |||
13524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13525 | /* end confdefs.h. */ | ||
13526 | #include <utmpx.h> | ||
13527 | |||
13528 | _ACEOF | ||
13529 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13530 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
13531 | eval "$ossh_varname=yes" | ||
13532 | else | ||
13533 | eval "$ossh_varname=no" | ||
13534 | fi | ||
13535 | rm -f conftest* | ||
13536 | |||
13537 | fi | ||
13538 | |||
13539 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13540 | if test -n "`echo $ossh_varname`"; then | ||
13541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13542 | $as_echo "$ossh_result" >&6; } | ||
13543 | if test "x$ossh_result" = "xyes"; then | ||
13544 | |||
13545 | $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h | ||
13546 | |||
13547 | fi | ||
13548 | else | ||
13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13550 | $as_echo "no" >&6; } | ||
13551 | fi | ||
13552 | |||
13553 | |||
13554 | # look for field 'ut_addr' in header 'utmp.h' | ||
13555 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13556 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 | ||
13558 | $as_echo_n "checking for ut_addr field in utmp.h... " >&6; } | ||
13559 | if eval \${$ossh_varname+:} false; then : | ||
13560 | $as_echo_n "(cached) " >&6 | ||
13561 | else | ||
13562 | |||
13563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13564 | /* end confdefs.h. */ | ||
13565 | #include <utmp.h> | ||
13566 | |||
13567 | _ACEOF | ||
13568 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13569 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
13570 | eval "$ossh_varname=yes" | ||
13571 | else | ||
13572 | eval "$ossh_varname=no" | ||
13573 | fi | ||
13574 | rm -f conftest* | ||
13575 | |||
13576 | fi | ||
13577 | |||
13578 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13579 | if test -n "`echo $ossh_varname`"; then | ||
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13581 | $as_echo "$ossh_result" >&6; } | ||
13582 | if test "x$ossh_result" = "xyes"; then | ||
13583 | |||
13584 | $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h | ||
13585 | |||
13586 | fi | ||
13587 | else | ||
13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13589 | $as_echo "no" >&6; } | ||
13590 | fi | ||
13591 | |||
13592 | |||
13593 | # look for field 'ut_addr' in header 'utmpx.h' | ||
13594 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13595 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 | ||
13597 | $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } | ||
13598 | if eval \${$ossh_varname+:} false; then : | ||
13599 | $as_echo_n "(cached) " >&6 | ||
13600 | else | ||
13601 | |||
13602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13603 | /* end confdefs.h. */ | ||
13604 | #include <utmpx.h> | ||
13605 | |||
13606 | _ACEOF | ||
13607 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13608 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
13609 | eval "$ossh_varname=yes" | ||
13610 | else | ||
13611 | eval "$ossh_varname=no" | ||
13612 | fi | ||
13613 | rm -f conftest* | ||
13614 | |||
13615 | fi | ||
13616 | |||
13617 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13618 | if test -n "`echo $ossh_varname`"; then | ||
13619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13620 | $as_echo "$ossh_result" >&6; } | ||
13621 | if test "x$ossh_result" = "xyes"; then | ||
13622 | |||
13623 | $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h | ||
13624 | |||
13625 | fi | ||
13626 | else | ||
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13628 | $as_echo "no" >&6; } | ||
13629 | fi | ||
13630 | |||
13631 | |||
13632 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
13633 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13634 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 | ||
13636 | $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } | ||
13637 | if eval \${$ossh_varname+:} false; then : | ||
13638 | $as_echo_n "(cached) " >&6 | ||
13639 | else | ||
13640 | |||
13641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13642 | /* end confdefs.h. */ | ||
13643 | #include <utmp.h> | ||
13644 | |||
13645 | _ACEOF | ||
13646 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13647 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
13648 | eval "$ossh_varname=yes" | ||
13649 | else | ||
13650 | eval "$ossh_varname=no" | ||
13651 | fi | ||
13652 | rm -f conftest* | ||
13653 | |||
13654 | fi | ||
13655 | |||
13656 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13657 | if test -n "`echo $ossh_varname`"; then | ||
13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13659 | $as_echo "$ossh_result" >&6; } | ||
13660 | if test "x$ossh_result" = "xyes"; then | ||
13661 | |||
13662 | $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h | ||
13663 | |||
13664 | fi | ||
13665 | else | ||
13666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13667 | $as_echo "no" >&6; } | ||
13668 | fi | ||
13669 | |||
13670 | |||
13671 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
13672 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13673 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
13675 | $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } | ||
13676 | if eval \${$ossh_varname+:} false; then : | ||
13677 | $as_echo_n "(cached) " >&6 | ||
13678 | else | ||
13679 | |||
13680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13681 | /* end confdefs.h. */ | ||
13682 | #include <utmpx.h> | ||
13683 | |||
13684 | _ACEOF | ||
13685 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13686 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
13687 | eval "$ossh_varname=yes" | ||
13688 | else | ||
13689 | eval "$ossh_varname=no" | ||
13690 | fi | ||
13691 | rm -f conftest* | ||
13692 | |||
13693 | fi | ||
13694 | |||
13695 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13696 | if test -n "`echo $ossh_varname`"; then | ||
13697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13698 | $as_echo "$ossh_result" >&6; } | ||
13699 | if test "x$ossh_result" = "xyes"; then | ||
13700 | |||
13701 | $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h | ||
13702 | |||
13703 | fi | ||
13704 | else | ||
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13706 | $as_echo "no" >&6; } | ||
13707 | fi | ||
13708 | |||
13709 | |||
13710 | # look for field 'ut_exit' in header 'utmp.h' | ||
13711 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13712 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
13713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 | ||
13714 | $as_echo_n "checking for ut_exit field in utmp.h... " >&6; } | ||
13715 | if eval \${$ossh_varname+:} false; then : | ||
13716 | $as_echo_n "(cached) " >&6 | ||
13717 | else | ||
13718 | |||
13719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13720 | /* end confdefs.h. */ | ||
13721 | #include <utmp.h> | ||
13722 | |||
13723 | _ACEOF | ||
13724 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13725 | $EGREP "ut_exit" >/dev/null 2>&1; then : | ||
13726 | eval "$ossh_varname=yes" | ||
13727 | else | ||
13728 | eval "$ossh_varname=no" | ||
13729 | fi | ||
13730 | rm -f conftest* | ||
13731 | |||
13732 | fi | ||
13733 | |||
13734 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13735 | if test -n "`echo $ossh_varname`"; then | ||
13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13737 | $as_echo "$ossh_result" >&6; } | ||
13738 | if test "x$ossh_result" = "xyes"; then | ||
13739 | |||
13740 | $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h | ||
13741 | |||
13742 | fi | ||
13743 | else | ||
13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13745 | $as_echo "no" >&6; } | ||
13746 | fi | ||
13747 | |||
13748 | |||
13749 | # look for field 'ut_time' in header 'utmp.h' | ||
13750 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13751 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 | ||
13753 | $as_echo_n "checking for ut_time field in utmp.h... " >&6; } | ||
13754 | if eval \${$ossh_varname+:} false; then : | ||
13755 | $as_echo_n "(cached) " >&6 | ||
13756 | else | ||
13757 | |||
13758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13759 | /* end confdefs.h. */ | ||
13760 | #include <utmp.h> | ||
13761 | |||
13762 | _ACEOF | ||
13763 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13764 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
13765 | eval "$ossh_varname=yes" | ||
13766 | else | ||
13767 | eval "$ossh_varname=no" | ||
13768 | fi | ||
13769 | rm -f conftest* | ||
13770 | |||
13771 | fi | ||
13772 | |||
13773 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13774 | if test -n "`echo $ossh_varname`"; then | ||
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13776 | $as_echo "$ossh_result" >&6; } | ||
13777 | if test "x$ossh_result" = "xyes"; then | ||
13778 | |||
13779 | $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h | ||
13780 | |||
13781 | fi | ||
13782 | else | ||
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13784 | $as_echo "no" >&6; } | ||
13785 | fi | ||
13786 | |||
13787 | |||
13788 | # look for field 'ut_time' in header 'utmpx.h' | ||
13789 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13790 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 | ||
13792 | $as_echo_n "checking for ut_time field in utmpx.h... " >&6; } | ||
13793 | if eval \${$ossh_varname+:} false; then : | ||
13794 | $as_echo_n "(cached) " >&6 | ||
13795 | else | ||
13796 | |||
13797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13798 | /* end confdefs.h. */ | ||
13799 | #include <utmpx.h> | ||
13800 | |||
13801 | _ACEOF | ||
13802 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13803 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
13804 | eval "$ossh_varname=yes" | ||
13805 | else | ||
13806 | eval "$ossh_varname=no" | ||
13807 | fi | ||
13808 | rm -f conftest* | ||
13809 | |||
13810 | fi | ||
13811 | |||
13812 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13813 | if test -n "`echo $ossh_varname`"; then | ||
13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13815 | $as_echo "$ossh_result" >&6; } | ||
13816 | if test "x$ossh_result" = "xyes"; then | ||
13817 | |||
13818 | $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h | ||
13819 | |||
13820 | fi | ||
13821 | else | ||
13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13823 | $as_echo "no" >&6; } | ||
13824 | fi | ||
13825 | |||
13826 | |||
13827 | # look for field 'ut_tv' in header 'utmpx.h' | ||
13828 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13829 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 | ||
13831 | $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } | ||
13832 | if eval \${$ossh_varname+:} false; then : | ||
13833 | $as_echo_n "(cached) " >&6 | ||
13834 | else | ||
13835 | |||
13836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13837 | /* end confdefs.h. */ | ||
13838 | #include <utmpx.h> | ||
13839 | |||
13840 | _ACEOF | ||
13841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13842 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
13843 | eval "$ossh_varname=yes" | ||
13844 | else | ||
13845 | eval "$ossh_varname=no" | ||
13846 | fi | ||
13847 | rm -f conftest* | ||
13848 | |||
13849 | fi | ||
13850 | |||
13851 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13852 | if test -n "`echo $ossh_varname`"; then | ||
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13854 | $as_echo "$ossh_result" >&6; } | ||
13855 | if test "x$ossh_result" = "xyes"; then | ||
13856 | |||
13857 | $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h | ||
13858 | |||
13859 | fi | ||
13860 | else | ||
13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13862 | $as_echo "no" >&6; } | ||
13863 | fi | ||
13864 | |||
13865 | |||
13866 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | ||
13867 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | ||
13868 | |||
13869 | cat >>confdefs.h <<_ACEOF | ||
13870 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
13871 | _ACEOF | ||
13872 | |||
13873 | |||
13874 | fi | ||
13875 | |||
13876 | ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " | ||
13877 | #include <stdio.h> | ||
13878 | #if HAVE_SYS_TYPES_H | ||
13879 | # include <sys/types.h> | ||
13880 | #endif | ||
13881 | #include <netinet/in.h> | ||
13882 | #include <arpa/nameser.h> | ||
13883 | #include <resolv.h> | ||
13884 | |||
13885 | " | ||
13886 | if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then : | ||
13887 | |||
13888 | else | ||
13889 | |||
13890 | $as_echo "#define __res_state state" >>confdefs.h | ||
13891 | |||
13892 | fi | ||
13893 | |||
13894 | |||
13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 | ||
13896 | $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } | ||
13897 | if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : | ||
13898 | $as_echo_n "(cached) " >&6 | ||
13899 | else | ||
13900 | |||
13901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13902 | /* end confdefs.h. */ | ||
13903 | |||
13904 | #include <sys/types.h> | ||
13905 | #include <sys/socket.h> | ||
13906 | |||
13907 | int | ||
13908 | main () | ||
13909 | { | ||
13910 | struct sockaddr_storage s; s.ss_family = 1; | ||
13911 | ; | ||
13912 | return 0; | ||
13913 | } | ||
13914 | _ACEOF | ||
13915 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13916 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
13917 | else | ||
13918 | ac_cv_have_ss_family_in_struct_ss="no" | ||
13919 | fi | ||
13920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13921 | |||
13922 | fi | ||
13923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
13924 | $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
13925 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
13926 | |||
13927 | $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h | ||
13928 | |||
13929 | fi | ||
13930 | |||
13931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
13932 | $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } | ||
13933 | if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : | ||
13934 | $as_echo_n "(cached) " >&6 | ||
13935 | else | ||
13936 | |||
13937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13938 | /* end confdefs.h. */ | ||
13939 | |||
13940 | #include <sys/types.h> | ||
13941 | #include <sys/socket.h> | ||
13942 | |||
13943 | int | ||
13944 | main () | ||
13945 | { | ||
13946 | struct sockaddr_storage s; s.__ss_family = 1; | ||
13947 | ; | ||
13948 | return 0; | ||
13949 | } | ||
13950 | _ACEOF | ||
13951 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13952 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
13953 | else | ||
13954 | ac_cv_have___ss_family_in_struct_ss="no" | ||
13955 | |||
13956 | fi | ||
13957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13958 | |||
13959 | fi | ||
13960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
13961 | $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
13962 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
13963 | |||
13964 | $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h | ||
13965 | |||
13966 | fi | ||
13967 | |||
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5 | ||
13969 | $as_echo_n "checking for pw_class field in struct passwd... " >&6; } | ||
13970 | if ${ac_cv_have_pw_class_in_struct_passwd+:} false; then : | ||
13971 | $as_echo_n "(cached) " >&6 | ||
13972 | else | ||
13973 | |||
13974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13975 | /* end confdefs.h. */ | ||
13976 | #include <pwd.h> | ||
13977 | int | ||
13978 | main () | ||
13979 | { | ||
13980 | struct passwd p; p.pw_class = 0; | ||
13981 | ; | ||
13982 | return 0; | ||
13983 | } | ||
13984 | _ACEOF | ||
13985 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13986 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
13987 | else | ||
13988 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
13989 | |||
13990 | fi | ||
13991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13992 | |||
13993 | fi | ||
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
13995 | $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; } | ||
13996 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
13997 | |||
13998 | $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h | ||
13999 | |||
14000 | fi | ||
14001 | |||
14002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5 | ||
14003 | $as_echo_n "checking for pw_expire field in struct passwd... " >&6; } | ||
14004 | if ${ac_cv_have_pw_expire_in_struct_passwd+:} false; then : | ||
14005 | $as_echo_n "(cached) " >&6 | ||
14006 | else | ||
14007 | |||
14008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14009 | /* end confdefs.h. */ | ||
14010 | #include <pwd.h> | ||
14011 | int | ||
14012 | main () | ||
14013 | { | ||
14014 | struct passwd p; p.pw_expire = 0; | ||
14015 | ; | ||
14016 | return 0; | ||
14017 | } | ||
14018 | _ACEOF | ||
14019 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14020 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
14021 | else | ||
14022 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
14023 | |||
14024 | fi | ||
14025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14026 | |||
14027 | fi | ||
14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
14029 | $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; } | ||
14030 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
14031 | |||
14032 | $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h | ||
14033 | |||
14034 | fi | ||
14035 | |||
14036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5 | ||
14037 | $as_echo_n "checking for pw_change field in struct passwd... " >&6; } | ||
14038 | if ${ac_cv_have_pw_change_in_struct_passwd+:} false; then : | ||
14039 | $as_echo_n "(cached) " >&6 | ||
14040 | else | ||
14041 | |||
14042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14043 | /* end confdefs.h. */ | ||
14044 | #include <pwd.h> | ||
14045 | int | ||
14046 | main () | ||
14047 | { | ||
14048 | struct passwd p; p.pw_change = 0; | ||
14049 | ; | ||
14050 | return 0; | ||
14051 | } | ||
14052 | _ACEOF | ||
14053 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14054 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
14055 | else | ||
14056 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
14057 | |||
14058 | fi | ||
14059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14060 | |||
14061 | fi | ||
14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
14063 | $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; } | ||
14064 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
14065 | |||
14066 | $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h | ||
14067 | |||
14068 | fi | ||
14069 | |||
14070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 | ||
14071 | $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } | ||
14072 | if ${ac_cv_have_accrights_in_msghdr+:} false; then : | ||
14073 | $as_echo_n "(cached) " >&6 | ||
14074 | else | ||
14075 | |||
14076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14077 | /* end confdefs.h. */ | ||
14078 | |||
14079 | #include <sys/types.h> | ||
14080 | #include <sys/socket.h> | ||
14081 | #include <sys/uio.h> | ||
14082 | |||
14083 | int | ||
14084 | main () | ||
14085 | { | ||
14086 | |||
14087 | #ifdef msg_accrights | ||
14088 | #error "msg_accrights is a macro" | ||
14089 | exit(1); | ||
14090 | #endif | ||
14091 | struct msghdr m; | ||
14092 | m.msg_accrights = 0; | ||
14093 | exit(0); | ||
14094 | |||
14095 | ; | ||
14096 | return 0; | ||
14097 | } | ||
14098 | _ACEOF | ||
14099 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14100 | ac_cv_have_accrights_in_msghdr="yes" | ||
14101 | else | ||
14102 | ac_cv_have_accrights_in_msghdr="no" | ||
14103 | |||
14104 | fi | ||
14105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14106 | |||
14107 | fi | ||
14108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
14109 | $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } | ||
14110 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
14111 | |||
14112 | $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h | ||
14113 | |||
14114 | fi | ||
14115 | |||
14116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 | ||
14117 | $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } | ||
14118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14119 | /* end confdefs.h. */ | ||
14120 | |||
14121 | #include <sys/types.h> | ||
14122 | #include <sys/stat.h> | ||
14123 | #ifdef HAVE_SYS_TIME_H | ||
14124 | # include <sys/time.h> | ||
14125 | #endif | ||
14126 | #ifdef HAVE_SYS_MOUNT_H | ||
14127 | #include <sys/mount.h> | ||
14128 | #endif | ||
14129 | #ifdef HAVE_SYS_STATVFS_H | ||
14130 | #include <sys/statvfs.h> | ||
14131 | #endif | ||
14132 | |||
14133 | int | ||
14134 | main () | ||
14135 | { | ||
14136 | struct statvfs s; s.f_fsid = 0; | ||
14137 | ; | ||
14138 | return 0; | ||
14139 | } | ||
14140 | _ACEOF | ||
14141 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14143 | $as_echo "yes" >&6; } | ||
14144 | else | ||
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14146 | $as_echo "no" >&6; } | ||
14147 | |||
14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 | ||
14149 | $as_echo_n "checking if fsid_t has member val... " >&6; } | ||
14150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14151 | /* end confdefs.h. */ | ||
14152 | |||
14153 | #include <sys/types.h> | ||
14154 | #include <sys/statvfs.h> | ||
14155 | |||
14156 | int | ||
14157 | main () | ||
14158 | { | ||
14159 | fsid_t t; t.val[0] = 0; | ||
14160 | ; | ||
14161 | return 0; | ||
14162 | } | ||
14163 | _ACEOF | ||
14164 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14166 | $as_echo "yes" >&6; } | ||
14167 | |||
14168 | $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h | ||
14169 | |||
14170 | else | ||
14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14172 | $as_echo "no" >&6; } | ||
14173 | fi | ||
14174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14175 | |||
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 | ||
14177 | $as_echo_n "checking if f_fsid has member __val... " >&6; } | ||
14178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14179 | /* end confdefs.h. */ | ||
14180 | |||
14181 | #include <sys/types.h> | ||
14182 | #include <sys/statvfs.h> | ||
14183 | |||
14184 | int | ||
14185 | main () | ||
14186 | { | ||
14187 | fsid_t t; t.__val[0] = 0; | ||
14188 | ; | ||
14189 | return 0; | ||
14190 | } | ||
14191 | _ACEOF | ||
14192 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14194 | $as_echo "yes" >&6; } | ||
14195 | |||
14196 | $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h | ||
14197 | |||
14198 | else | ||
14199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14200 | $as_echo "no" >&6; } | ||
14201 | fi | ||
14202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14203 | |||
14204 | fi | ||
14205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14206 | |||
14207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 | ||
14208 | $as_echo_n "checking for msg_control field in struct msghdr... " >&6; } | ||
14209 | if ${ac_cv_have_control_in_msghdr+:} false; then : | ||
14210 | $as_echo_n "(cached) " >&6 | ||
14211 | else | ||
14212 | |||
14213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14214 | /* end confdefs.h. */ | ||
14215 | |||
14216 | #include <sys/types.h> | ||
14217 | #include <sys/socket.h> | ||
14218 | #include <sys/uio.h> | ||
14219 | |||
14220 | int | ||
14221 | main () | ||
14222 | { | ||
14223 | |||
14224 | #ifdef msg_control | ||
14225 | #error "msg_control is a macro" | ||
14226 | exit(1); | ||
14227 | #endif | ||
14228 | struct msghdr m; | ||
14229 | m.msg_control = 0; | ||
14230 | exit(0); | ||
14231 | |||
14232 | ; | ||
14233 | return 0; | ||
14234 | } | ||
14235 | _ACEOF | ||
14236 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14237 | ac_cv_have_control_in_msghdr="yes" | ||
14238 | else | ||
14239 | ac_cv_have_control_in_msghdr="no" | ||
14240 | |||
14241 | fi | ||
14242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14243 | |||
14244 | fi | ||
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 | ||
14246 | $as_echo "$ac_cv_have_control_in_msghdr" >&6; } | ||
14247 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
14248 | |||
14249 | $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h | ||
14250 | |||
14251 | fi | ||
14252 | |||
14253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 | ||
14254 | $as_echo_n "checking if libc defines __progname... " >&6; } | ||
14255 | if ${ac_cv_libc_defines___progname+:} false; then : | ||
14256 | $as_echo_n "(cached) " >&6 | ||
14257 | else | ||
14258 | |||
14259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14260 | /* end confdefs.h. */ | ||
14261 | |||
14262 | int | ||
14263 | main () | ||
14264 | { | ||
14265 | extern char *__progname; printf("%s", __progname); | ||
14266 | ; | ||
14267 | return 0; | ||
14268 | } | ||
14269 | _ACEOF | ||
14270 | if ac_fn_c_try_link "$LINENO"; then : | ||
14271 | ac_cv_libc_defines___progname="yes" | ||
14272 | else | ||
14273 | ac_cv_libc_defines___progname="no" | ||
14274 | |||
14275 | fi | ||
14276 | rm -f core conftest.err conftest.$ac_objext \ | ||
14277 | conftest$ac_exeext conftest.$ac_ext | ||
14278 | |||
14279 | fi | ||
14280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 | ||
14281 | $as_echo "$ac_cv_libc_defines___progname" >&6; } | ||
14282 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
14283 | |||
14284 | $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h | ||
14285 | |||
14286 | fi | ||
14287 | |||
14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 | ||
14289 | $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } | ||
14290 | if ${ac_cv_cc_implements___FUNCTION__+:} false; then : | ||
14291 | $as_echo_n "(cached) " >&6 | ||
14292 | else | ||
14293 | |||
14294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14295 | /* end confdefs.h. */ | ||
14296 | #include <stdio.h> | ||
14297 | int | ||
14298 | main () | ||
14299 | { | ||
14300 | printf("%s", __FUNCTION__); | ||
14301 | ; | ||
14302 | return 0; | ||
14303 | } | ||
14304 | _ACEOF | ||
14305 | if ac_fn_c_try_link "$LINENO"; then : | ||
14306 | ac_cv_cc_implements___FUNCTION__="yes" | ||
14307 | else | ||
14308 | ac_cv_cc_implements___FUNCTION__="no" | ||
14309 | |||
14310 | fi | ||
14311 | rm -f core conftest.err conftest.$ac_objext \ | ||
14312 | conftest$ac_exeext conftest.$ac_ext | ||
14313 | |||
14314 | fi | ||
14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
14316 | $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
14317 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
14318 | |||
14319 | $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h | ||
14320 | |||
14321 | fi | ||
14322 | |||
14323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 | ||
14324 | $as_echo_n "checking whether $CC implements __func__... " >&6; } | ||
14325 | if ${ac_cv_cc_implements___func__+:} false; then : | ||
14326 | $as_echo_n "(cached) " >&6 | ||
14327 | else | ||
14328 | |||
14329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14330 | /* end confdefs.h. */ | ||
14331 | #include <stdio.h> | ||
14332 | int | ||
14333 | main () | ||
14334 | { | ||
14335 | printf("%s", __func__); | ||
14336 | ; | ||
14337 | return 0; | ||
14338 | } | ||
14339 | _ACEOF | ||
14340 | if ac_fn_c_try_link "$LINENO"; then : | ||
14341 | ac_cv_cc_implements___func__="yes" | ||
14342 | else | ||
14343 | ac_cv_cc_implements___func__="no" | ||
14344 | |||
14345 | fi | ||
14346 | rm -f core conftest.err conftest.$ac_objext \ | ||
14347 | conftest$ac_exeext conftest.$ac_ext | ||
14348 | |||
14349 | fi | ||
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 | ||
14351 | $as_echo "$ac_cv_cc_implements___func__" >&6; } | ||
14352 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
14353 | |||
14354 | $as_echo "#define HAVE___func__ 1" >>confdefs.h | ||
14355 | |||
14356 | fi | ||
14357 | |||
14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 | ||
14359 | $as_echo_n "checking whether va_copy exists... " >&6; } | ||
14360 | if ${ac_cv_have_va_copy+:} false; then : | ||
14361 | $as_echo_n "(cached) " >&6 | ||
14362 | else | ||
14363 | |||
14364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14365 | /* end confdefs.h. */ | ||
14366 | |||
14367 | #include <stdarg.h> | ||
14368 | va_list x,y; | ||
14369 | |||
14370 | int | ||
14371 | main () | ||
14372 | { | ||
14373 | va_copy(x,y); | ||
14374 | ; | ||
14375 | return 0; | ||
14376 | } | ||
14377 | _ACEOF | ||
14378 | if ac_fn_c_try_link "$LINENO"; then : | ||
14379 | ac_cv_have_va_copy="yes" | ||
14380 | else | ||
14381 | ac_cv_have_va_copy="no" | ||
14382 | |||
14383 | fi | ||
14384 | rm -f core conftest.err conftest.$ac_objext \ | ||
14385 | conftest$ac_exeext conftest.$ac_ext | ||
14386 | |||
14387 | fi | ||
14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 | ||
14389 | $as_echo "$ac_cv_have_va_copy" >&6; } | ||
14390 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
14391 | |||
14392 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h | ||
14393 | |||
14394 | fi | ||
14395 | |||
14396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 | ||
14397 | $as_echo_n "checking whether __va_copy exists... " >&6; } | ||
14398 | if ${ac_cv_have___va_copy+:} false; then : | ||
14399 | $as_echo_n "(cached) " >&6 | ||
14400 | else | ||
14401 | |||
14402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14403 | /* end confdefs.h. */ | ||
14404 | |||
14405 | #include <stdarg.h> | ||
14406 | va_list x,y; | ||
14407 | |||
14408 | int | ||
14409 | main () | ||
14410 | { | ||
14411 | __va_copy(x,y); | ||
14412 | ; | ||
14413 | return 0; | ||
14414 | } | ||
14415 | _ACEOF | ||
14416 | if ac_fn_c_try_link "$LINENO"; then : | ||
14417 | ac_cv_have___va_copy="yes" | ||
14418 | else | ||
14419 | ac_cv_have___va_copy="no" | ||
14420 | |||
14421 | fi | ||
14422 | rm -f core conftest.err conftest.$ac_objext \ | ||
14423 | conftest$ac_exeext conftest.$ac_ext | ||
14424 | |||
14425 | fi | ||
14426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 | ||
14427 | $as_echo "$ac_cv_have___va_copy" >&6; } | ||
14428 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
14429 | |||
14430 | $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h | ||
14431 | |||
14432 | fi | ||
14433 | |||
14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 | ||
14435 | $as_echo_n "checking whether getopt has optreset support... " >&6; } | ||
14436 | if ${ac_cv_have_getopt_optreset+:} false; then : | ||
14437 | $as_echo_n "(cached) " >&6 | ||
14438 | else | ||
14439 | |||
14440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14441 | /* end confdefs.h. */ | ||
14442 | #include <getopt.h> | ||
14443 | int | ||
14444 | main () | ||
14445 | { | ||
14446 | extern int optreset; optreset = 0; | ||
14447 | ; | ||
14448 | return 0; | ||
14449 | } | ||
14450 | _ACEOF | ||
14451 | if ac_fn_c_try_link "$LINENO"; then : | ||
14452 | ac_cv_have_getopt_optreset="yes" | ||
14453 | else | ||
14454 | ac_cv_have_getopt_optreset="no" | ||
14455 | |||
14456 | fi | ||
14457 | rm -f core conftest.err conftest.$ac_objext \ | ||
14458 | conftest$ac_exeext conftest.$ac_ext | ||
14459 | |||
14460 | fi | ||
14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 | ||
14462 | $as_echo "$ac_cv_have_getopt_optreset" >&6; } | ||
14463 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
14464 | |||
14465 | $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h | ||
14466 | |||
14467 | fi | ||
14468 | |||
14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 | ||
14470 | $as_echo_n "checking if libc defines sys_errlist... " >&6; } | ||
14471 | if ${ac_cv_libc_defines_sys_errlist+:} false; then : | ||
14472 | $as_echo_n "(cached) " >&6 | ||
14473 | else | ||
14474 | |||
14475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14476 | /* end confdefs.h. */ | ||
14477 | |||
14478 | int | ||
14479 | main () | ||
14480 | { | ||
14481 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
14482 | ; | ||
14483 | return 0; | ||
14484 | } | ||
14485 | _ACEOF | ||
14486 | if ac_fn_c_try_link "$LINENO"; then : | ||
14487 | ac_cv_libc_defines_sys_errlist="yes" | ||
14488 | else | ||
14489 | ac_cv_libc_defines_sys_errlist="no" | ||
14490 | |||
14491 | fi | ||
14492 | rm -f core conftest.err conftest.$ac_objext \ | ||
14493 | conftest$ac_exeext conftest.$ac_ext | ||
14494 | |||
14495 | fi | ||
14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
14497 | $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } | ||
14498 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
14499 | |||
14500 | $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h | ||
14501 | |||
14502 | fi | ||
14503 | |||
14504 | |||
14505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 | ||
14506 | $as_echo_n "checking if libc defines sys_nerr... " >&6; } | ||
14507 | if ${ac_cv_libc_defines_sys_nerr+:} false; then : | ||
14508 | $as_echo_n "(cached) " >&6 | ||
14509 | else | ||
14510 | |||
14511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14512 | /* end confdefs.h. */ | ||
14513 | |||
14514 | int | ||
14515 | main () | ||
14516 | { | ||
14517 | extern int sys_nerr; printf("%i", sys_nerr); | ||
14518 | ; | ||
14519 | return 0; | ||
14520 | } | ||
14521 | _ACEOF | ||
14522 | if ac_fn_c_try_link "$LINENO"; then : | ||
14523 | ac_cv_libc_defines_sys_nerr="yes" | ||
14524 | else | ||
14525 | ac_cv_libc_defines_sys_nerr="no" | ||
14526 | |||
14527 | fi | ||
14528 | rm -f core conftest.err conftest.$ac_objext \ | ||
14529 | conftest$ac_exeext conftest.$ac_ext | ||
14530 | |||
14531 | fi | ||
14532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
14533 | $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } | ||
14534 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
14535 | |||
14536 | $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h | ||
14537 | |||
14538 | fi | ||
14539 | |||
14540 | # Check libraries needed by DNS fingerprint support | ||
14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 | ||
14542 | $as_echo_n "checking for library containing getrrsetbyname... " >&6; } | ||
14543 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
14544 | $as_echo_n "(cached) " >&6 | ||
14545 | else | ||
14546 | ac_func_search_save_LIBS=$LIBS | ||
14547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14548 | /* end confdefs.h. */ | ||
14549 | |||
14550 | /* Override any GCC internal prototype to avoid an error. | ||
14551 | Use char because int might match the return type of a GCC | ||
14552 | builtin and then its argument prototype would still apply. */ | ||
14553 | #ifdef __cplusplus | ||
14554 | extern "C" | ||
14555 | #endif | ||
14556 | char getrrsetbyname (); | ||
14557 | int | ||
14558 | main () | ||
14559 | { | ||
14560 | return getrrsetbyname (); | ||
14561 | ; | ||
14562 | return 0; | ||
14563 | } | ||
14564 | _ACEOF | ||
14565 | for ac_lib in '' resolv; do | ||
14566 | if test -z "$ac_lib"; then | ||
14567 | ac_res="none required" | ||
14568 | else | ||
14569 | ac_res=-l$ac_lib | ||
14570 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14571 | fi | ||
14572 | if ac_fn_c_try_link "$LINENO"; then : | ||
14573 | ac_cv_search_getrrsetbyname=$ac_res | ||
14574 | fi | ||
14575 | rm -f core conftest.err conftest.$ac_objext \ | ||
14576 | conftest$ac_exeext | ||
14577 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
14578 | break | ||
14579 | fi | ||
14580 | done | ||
14581 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
14582 | |||
14583 | else | ||
14584 | ac_cv_search_getrrsetbyname=no | ||
14585 | fi | ||
14586 | rm conftest.$ac_ext | ||
14587 | LIBS=$ac_func_search_save_LIBS | ||
14588 | fi | ||
14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 | ||
14590 | $as_echo "$ac_cv_search_getrrsetbyname" >&6; } | ||
14591 | ac_res=$ac_cv_search_getrrsetbyname | ||
14592 | if test "$ac_res" != no; then : | ||
14593 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14594 | |||
14595 | $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h | ||
14596 | |||
14597 | else | ||
14598 | |||
14599 | # Needed by our getrrsetbyname() | ||
14600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 | ||
14601 | $as_echo_n "checking for library containing res_query... " >&6; } | ||
14602 | if ${ac_cv_search_res_query+:} false; then : | ||
14603 | $as_echo_n "(cached) " >&6 | ||
14604 | else | ||
14605 | ac_func_search_save_LIBS=$LIBS | ||
14606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14607 | /* end confdefs.h. */ | ||
14608 | |||
14609 | /* Override any GCC internal prototype to avoid an error. | ||
14610 | Use char because int might match the return type of a GCC | ||
14611 | builtin and then its argument prototype would still apply. */ | ||
14612 | #ifdef __cplusplus | ||
14613 | extern "C" | ||
14614 | #endif | ||
14615 | char res_query (); | ||
14616 | int | ||
14617 | main () | ||
14618 | { | ||
14619 | return res_query (); | ||
14620 | ; | ||
14621 | return 0; | ||
14622 | } | ||
14623 | _ACEOF | ||
14624 | for ac_lib in '' resolv; do | ||
14625 | if test -z "$ac_lib"; then | ||
14626 | ac_res="none required" | ||
14627 | else | ||
14628 | ac_res=-l$ac_lib | ||
14629 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14630 | fi | ||
14631 | if ac_fn_c_try_link "$LINENO"; then : | ||
14632 | ac_cv_search_res_query=$ac_res | ||
14633 | fi | ||
14634 | rm -f core conftest.err conftest.$ac_objext \ | ||
14635 | conftest$ac_exeext | ||
14636 | if ${ac_cv_search_res_query+:} false; then : | ||
14637 | break | ||
14638 | fi | ||
14639 | done | ||
14640 | if ${ac_cv_search_res_query+:} false; then : | ||
14641 | |||
14642 | else | ||
14643 | ac_cv_search_res_query=no | ||
14644 | fi | ||
14645 | rm conftest.$ac_ext | ||
14646 | LIBS=$ac_func_search_save_LIBS | ||
14647 | fi | ||
14648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 | ||
14649 | $as_echo "$ac_cv_search_res_query" >&6; } | ||
14650 | ac_res=$ac_cv_search_res_query | ||
14651 | if test "$ac_res" != no; then : | ||
14652 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14653 | |||
14654 | fi | ||
14655 | |||
14656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
14657 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
14658 | if ${ac_cv_search_dn_expand+:} false; then : | ||
14659 | $as_echo_n "(cached) " >&6 | ||
14660 | else | ||
14661 | ac_func_search_save_LIBS=$LIBS | ||
14662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14663 | /* end confdefs.h. */ | ||
14664 | |||
14665 | /* Override any GCC internal prototype to avoid an error. | ||
14666 | Use char because int might match the return type of a GCC | ||
14667 | builtin and then its argument prototype would still apply. */ | ||
14668 | #ifdef __cplusplus | ||
14669 | extern "C" | ||
14670 | #endif | ||
14671 | char dn_expand (); | ||
14672 | int | ||
14673 | main () | ||
14674 | { | ||
14675 | return dn_expand (); | ||
14676 | ; | ||
14677 | return 0; | ||
14678 | } | ||
14679 | _ACEOF | ||
14680 | for ac_lib in '' resolv; do | ||
14681 | if test -z "$ac_lib"; then | ||
14682 | ac_res="none required" | ||
14683 | else | ||
14684 | ac_res=-l$ac_lib | ||
14685 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14686 | fi | ||
14687 | if ac_fn_c_try_link "$LINENO"; then : | ||
14688 | ac_cv_search_dn_expand=$ac_res | ||
14689 | fi | ||
14690 | rm -f core conftest.err conftest.$ac_objext \ | ||
14691 | conftest$ac_exeext | ||
14692 | if ${ac_cv_search_dn_expand+:} false; then : | ||
14693 | break | ||
14694 | fi | ||
14695 | done | ||
14696 | if ${ac_cv_search_dn_expand+:} false; then : | ||
14697 | |||
14698 | else | ||
14699 | ac_cv_search_dn_expand=no | ||
14700 | fi | ||
14701 | rm conftest.$ac_ext | ||
14702 | LIBS=$ac_func_search_save_LIBS | ||
14703 | fi | ||
14704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
14705 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
14706 | ac_res=$ac_cv_search_dn_expand | ||
14707 | if test "$ac_res" != no; then : | ||
14708 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14709 | |||
14710 | fi | ||
14711 | |||
14712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 | ||
14713 | $as_echo_n "checking if res_query will link... " >&6; } | ||
14714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14715 | /* end confdefs.h. */ | ||
14716 | |||
14717 | #include <sys/types.h> | ||
14718 | #include <netinet/in.h> | ||
14719 | #include <arpa/nameser.h> | ||
14720 | #include <netdb.h> | ||
14721 | #include <resolv.h> | ||
14722 | |||
14723 | int | ||
14724 | main () | ||
14725 | { | ||
14726 | |||
14727 | res_query (0, 0, 0, 0, 0); | ||
14728 | |||
14729 | ; | ||
14730 | return 0; | ||
14731 | } | ||
14732 | _ACEOF | ||
14733 | if ac_fn_c_try_link "$LINENO"; then : | ||
14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14735 | $as_echo "yes" >&6; } | ||
14736 | else | ||
14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14738 | $as_echo "no" >&6; } | ||
14739 | saved_LIBS="$LIBS" | ||
14740 | LIBS="$LIBS -lresolv" | ||
14741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
14742 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
14743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14744 | /* end confdefs.h. */ | ||
14745 | |||
14746 | #include <sys/types.h> | ||
14747 | #include <netinet/in.h> | ||
14748 | #include <arpa/nameser.h> | ||
14749 | #include <netdb.h> | ||
14750 | #include <resolv.h> | ||
14751 | |||
14752 | int | ||
14753 | main () | ||
14754 | { | ||
14755 | |||
14756 | res_query (0, 0, 0, 0, 0); | ||
14757 | |||
14758 | ; | ||
14759 | return 0; | ||
14760 | } | ||
14761 | _ACEOF | ||
14762 | if ac_fn_c_try_link "$LINENO"; then : | ||
14763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14764 | $as_echo "yes" >&6; } | ||
14765 | else | ||
14766 | LIBS="$saved_LIBS" | ||
14767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14768 | $as_echo "no" >&6; } | ||
14769 | fi | ||
14770 | rm -f core conftest.err conftest.$ac_objext \ | ||
14771 | conftest$ac_exeext conftest.$ac_ext | ||
14772 | |||
14773 | fi | ||
14774 | rm -f core conftest.err conftest.$ac_objext \ | ||
14775 | conftest$ac_exeext conftest.$ac_ext | ||
14776 | for ac_func in _getshort _getlong | ||
14777 | do : | ||
14778 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14779 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
14780 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
14781 | cat >>confdefs.h <<_ACEOF | ||
14782 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14783 | _ACEOF | ||
14784 | |||
14785 | fi | ||
14786 | done | ||
14787 | |||
14788 | ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> | ||
14789 | #include <arpa/nameser.h> | ||
14790 | " | ||
14791 | if test "x$ac_cv_have_decl__getshort" = xyes; then : | ||
14792 | ac_have_decl=1 | ||
14793 | else | ||
14794 | ac_have_decl=0 | ||
14795 | fi | ||
14796 | |||
14797 | cat >>confdefs.h <<_ACEOF | ||
14798 | #define HAVE_DECL__GETSHORT $ac_have_decl | ||
14799 | _ACEOF | ||
14800 | ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> | ||
14801 | #include <arpa/nameser.h> | ||
14802 | " | ||
14803 | if test "x$ac_cv_have_decl__getlong" = xyes; then : | ||
14804 | ac_have_decl=1 | ||
14805 | else | ||
14806 | ac_have_decl=0 | ||
14807 | fi | ||
14808 | |||
14809 | cat >>confdefs.h <<_ACEOF | ||
14810 | #define HAVE_DECL__GETLONG $ac_have_decl | ||
14811 | _ACEOF | ||
14812 | |||
14813 | ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h> | ||
14814 | " | ||
14815 | if test "x$ac_cv_member_HEADER_ad" = xyes; then : | ||
14816 | |||
14817 | $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h | ||
14818 | |||
14819 | fi | ||
14820 | |||
14821 | |||
14822 | fi | ||
14823 | |||
14824 | |||
14825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 | ||
14826 | $as_echo_n "checking if struct __res_state _res is an extern... " >&6; } | ||
14827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14828 | /* end confdefs.h. */ | ||
14829 | |||
14830 | #include <stdio.h> | ||
14831 | #if HAVE_SYS_TYPES_H | ||
14832 | # include <sys/types.h> | ||
14833 | #endif | ||
14834 | #include <netinet/in.h> | ||
14835 | #include <arpa/nameser.h> | ||
14836 | #include <resolv.h> | ||
14837 | extern struct __res_state _res; | ||
14838 | |||
14839 | int | ||
14840 | main () | ||
14841 | { | ||
14842 | |||
14843 | ; | ||
14844 | return 0; | ||
14845 | } | ||
14846 | _ACEOF | ||
14847 | if ac_fn_c_try_link "$LINENO"; then : | ||
14848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14849 | $as_echo "yes" >&6; } | ||
14850 | |||
14851 | $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h | ||
14852 | |||
14853 | |||
14854 | else | ||
14855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14856 | $as_echo "no" >&6; } | ||
14857 | |||
14858 | fi | ||
14859 | rm -f core conftest.err conftest.$ac_objext \ | ||
14860 | conftest$ac_exeext conftest.$ac_ext | ||
14861 | |||
14862 | # Check whether user wants SELinux support | ||
14863 | SELINUX_MSG="no" | ||
14864 | LIBSELINUX="" | ||
14865 | |||
14866 | # Check whether --with-selinux was given. | ||
14867 | if test "${with_selinux+set}" = set; then : | ||
14868 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
14869 | save_LIBS="$LIBS" | ||
14870 | |||
14871 | $as_echo "#define WITH_SELINUX 1" >>confdefs.h | ||
14872 | |||
14873 | SELINUX_MSG="yes" | ||
14874 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | ||
14875 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : | ||
14876 | |||
14877 | else | ||
14878 | as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 | ||
14879 | fi | ||
14880 | |||
14881 | |||
14882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 | ||
14883 | $as_echo_n "checking for setexeccon in -lselinux... " >&6; } | ||
14884 | if ${ac_cv_lib_selinux_setexeccon+:} false; then : | ||
14885 | $as_echo_n "(cached) " >&6 | ||
14886 | else | ||
14887 | ac_check_lib_save_LIBS=$LIBS | ||
14888 | LIBS="-lselinux $LIBS" | ||
14889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14890 | /* end confdefs.h. */ | ||
14891 | |||
14892 | /* Override any GCC internal prototype to avoid an error. | ||
14893 | Use char because int might match the return type of a GCC | ||
14894 | builtin and then its argument prototype would still apply. */ | ||
14895 | #ifdef __cplusplus | ||
14896 | extern "C" | ||
14897 | #endif | ||
14898 | char setexeccon (); | ||
14899 | int | ||
14900 | main () | ||
14901 | { | ||
14902 | return setexeccon (); | ||
14903 | ; | ||
14904 | return 0; | ||
14905 | } | ||
14906 | _ACEOF | ||
14907 | if ac_fn_c_try_link "$LINENO"; then : | ||
14908 | ac_cv_lib_selinux_setexeccon=yes | ||
14909 | else | ||
14910 | ac_cv_lib_selinux_setexeccon=no | ||
14911 | fi | ||
14912 | rm -f core conftest.err conftest.$ac_objext \ | ||
14913 | conftest$ac_exeext conftest.$ac_ext | ||
14914 | LIBS=$ac_check_lib_save_LIBS | ||
14915 | fi | ||
14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
14917 | $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } | ||
14918 | if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : | ||
14919 | LIBSELINUX="-lselinux" | ||
14920 | LIBS="$LIBS -lselinux" | ||
14921 | |||
14922 | else | ||
14923 | as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 | ||
14924 | fi | ||
14925 | |||
14926 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
14927 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
14928 | for ac_func in getseuserbyname get_default_context_with_level | ||
14929 | do : | ||
14930 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14931 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
14932 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
14933 | cat >>confdefs.h <<_ACEOF | ||
14934 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14935 | _ACEOF | ||
14936 | |||
14937 | fi | ||
14938 | done | ||
14939 | |||
14940 | LIBS="$save_LIBS" | ||
14941 | fi | ||
14942 | |||
14943 | fi | ||
14944 | |||
14945 | |||
14946 | |||
14947 | |||
14948 | # Check whether user wants Kerberos 5 support | ||
14949 | KRB5_MSG="no" | ||
14950 | |||
14951 | # Check whether --with-kerberos5 was given. | ||
14952 | if test "${with_kerberos5+set}" = set; then : | ||
14953 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
14954 | if test "x$withval" = "xyes" ; then | ||
14955 | KRB5ROOT="/usr/local" | ||
14956 | else | ||
14957 | KRB5ROOT=${withval} | ||
14958 | fi | ||
14959 | |||
14960 | |||
14961 | $as_echo "#define KRB5 1" >>confdefs.h | ||
14962 | |||
14963 | KRB5_MSG="yes" | ||
14964 | |||
14965 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
14966 | set dummy krb5-config; ac_word=$2 | ||
14967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14968 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14969 | if ${ac_cv_path_KRB5CONF+:} false; then : | ||
14970 | $as_echo_n "(cached) " >&6 | ||
14971 | else | ||
14972 | case $KRB5CONF in | ||
14973 | [\\/]* | ?:[\\/]*) | ||
14974 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
14975 | ;; | ||
14976 | *) | ||
14977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14978 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
14979 | for as_dir in $as_dummy | ||
14980 | do | ||
14981 | IFS=$as_save_IFS | ||
14982 | test -z "$as_dir" && as_dir=. | ||
14983 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14985 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
14986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14987 | break 2 | ||
14988 | fi | ||
14989 | done | ||
14990 | done | ||
14991 | IFS=$as_save_IFS | ||
14992 | |||
14993 | test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
14994 | ;; | ||
14995 | esac | ||
14996 | fi | ||
14997 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
14998 | if test -n "$KRB5CONF"; then | ||
14999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 | ||
15000 | $as_echo "$KRB5CONF" >&6; } | ||
15001 | else | ||
15002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15003 | $as_echo "no" >&6; } | ||
15004 | fi | ||
15005 | |||
15006 | |||
15007 | if test -x $KRB5CONF ; then | ||
15008 | |||
15009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 | ||
15010 | $as_echo_n "checking for gssapi support... " >&6; } | ||
15011 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
15012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15013 | $as_echo "yes" >&6; } | ||
15014 | |||
15015 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
15016 | |||
15017 | k5confopts=gssapi | ||
15018 | else | ||
15019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15020 | $as_echo "no" >&6; } | ||
15021 | k5confopts="" | ||
15022 | fi | ||
15023 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
15024 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
15025 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
15026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
15027 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
15028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15029 | /* end confdefs.h. */ | ||
15030 | #include <krb5.h> | ||
15031 | |||
15032 | int | ||
15033 | main () | ||
15034 | { | ||
15035 | char *tmp = heimdal_version; | ||
15036 | ; | ||
15037 | return 0; | ||
15038 | } | ||
15039 | _ACEOF | ||
15040 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15042 | $as_echo "yes" >&6; } | ||
15043 | |||
15044 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
15045 | |||
15046 | else | ||
15047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15048 | $as_echo "no" >&6; } | ||
15049 | |||
15050 | fi | ||
15051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15052 | else | ||
15053 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
15054 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
15055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
15056 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
15057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15058 | /* end confdefs.h. */ | ||
15059 | #include <krb5.h> | ||
15060 | |||
15061 | int | ||
15062 | main () | ||
15063 | { | ||
15064 | char *tmp = heimdal_version; | ||
15065 | ; | ||
15066 | return 0; | ||
15067 | } | ||
15068 | _ACEOF | ||
15069 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15071 | $as_echo "yes" >&6; } | ||
15072 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
15073 | |||
15074 | K5LIBS="-lkrb5" | ||
15075 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
15076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 | ||
15077 | $as_echo_n "checking for net_write in -lroken... " >&6; } | ||
15078 | if ${ac_cv_lib_roken_net_write+:} false; then : | ||
15079 | $as_echo_n "(cached) " >&6 | ||
15080 | else | ||
15081 | ac_check_lib_save_LIBS=$LIBS | ||
15082 | LIBS="-lroken $LIBS" | ||
15083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15084 | /* end confdefs.h. */ | ||
15085 | |||
15086 | /* Override any GCC internal prototype to avoid an error. | ||
15087 | Use char because int might match the return type of a GCC | ||
15088 | builtin and then its argument prototype would still apply. */ | ||
15089 | #ifdef __cplusplus | ||
15090 | extern "C" | ||
15091 | #endif | ||
15092 | char net_write (); | ||
15093 | int | ||
15094 | main () | ||
15095 | { | ||
15096 | return net_write (); | ||
15097 | ; | ||
15098 | return 0; | ||
15099 | } | ||
15100 | _ACEOF | ||
15101 | if ac_fn_c_try_link "$LINENO"; then : | ||
15102 | ac_cv_lib_roken_net_write=yes | ||
15103 | else | ||
15104 | ac_cv_lib_roken_net_write=no | ||
15105 | fi | ||
15106 | rm -f core conftest.err conftest.$ac_objext \ | ||
15107 | conftest$ac_exeext conftest.$ac_ext | ||
15108 | LIBS=$ac_check_lib_save_LIBS | ||
15109 | fi | ||
15110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 | ||
15111 | $as_echo "$ac_cv_lib_roken_net_write" >&6; } | ||
15112 | if test "x$ac_cv_lib_roken_net_write" = xyes; then : | ||
15113 | K5LIBS="$K5LIBS -lroken" | ||
15114 | fi | ||
15115 | |||
15116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 | ||
15117 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | ||
15118 | if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : | ||
15119 | $as_echo_n "(cached) " >&6 | ||
15120 | else | ||
15121 | ac_check_lib_save_LIBS=$LIBS | ||
15122 | LIBS="-ldes $LIBS" | ||
15123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15124 | /* end confdefs.h. */ | ||
15125 | |||
15126 | /* Override any GCC internal prototype to avoid an error. | ||
15127 | Use char because int might match the return type of a GCC | ||
15128 | builtin and then its argument prototype would still apply. */ | ||
15129 | #ifdef __cplusplus | ||
15130 | extern "C" | ||
15131 | #endif | ||
15132 | char des_cbc_encrypt (); | ||
15133 | int | ||
15134 | main () | ||
15135 | { | ||
15136 | return des_cbc_encrypt (); | ||
15137 | ; | ||
15138 | return 0; | ||
15139 | } | ||
15140 | _ACEOF | ||
15141 | if ac_fn_c_try_link "$LINENO"; then : | ||
15142 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
15143 | else | ||
15144 | ac_cv_lib_des_des_cbc_encrypt=no | ||
15145 | fi | ||
15146 | rm -f core conftest.err conftest.$ac_objext \ | ||
15147 | conftest$ac_exeext conftest.$ac_ext | ||
15148 | LIBS=$ac_check_lib_save_LIBS | ||
15149 | fi | ||
15150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
15151 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
15152 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : | ||
15153 | K5LIBS="$K5LIBS -ldes" | ||
15154 | fi | ||
15155 | |||
15156 | |||
15157 | else | ||
15158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15159 | $as_echo "no" >&6; } | ||
15160 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
15161 | |||
15162 | |||
15163 | fi | ||
15164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
15166 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
15167 | if ${ac_cv_search_dn_expand+:} false; then : | ||
15168 | $as_echo_n "(cached) " >&6 | ||
15169 | else | ||
15170 | ac_func_search_save_LIBS=$LIBS | ||
15171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15172 | /* end confdefs.h. */ | ||
15173 | |||
15174 | /* Override any GCC internal prototype to avoid an error. | ||
15175 | Use char because int might match the return type of a GCC | ||
15176 | builtin and then its argument prototype would still apply. */ | ||
15177 | #ifdef __cplusplus | ||
15178 | extern "C" | ||
15179 | #endif | ||
15180 | char dn_expand (); | ||
15181 | int | ||
15182 | main () | ||
15183 | { | ||
15184 | return dn_expand (); | ||
15185 | ; | ||
15186 | return 0; | ||
15187 | } | ||
15188 | _ACEOF | ||
15189 | for ac_lib in '' resolv; do | ||
15190 | if test -z "$ac_lib"; then | ||
15191 | ac_res="none required" | ||
15192 | else | ||
15193 | ac_res=-l$ac_lib | ||
15194 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15195 | fi | ||
15196 | if ac_fn_c_try_link "$LINENO"; then : | ||
15197 | ac_cv_search_dn_expand=$ac_res | ||
15198 | fi | ||
15199 | rm -f core conftest.err conftest.$ac_objext \ | ||
15200 | conftest$ac_exeext | ||
15201 | if ${ac_cv_search_dn_expand+:} false; then : | ||
15202 | break | ||
15203 | fi | ||
15204 | done | ||
15205 | if ${ac_cv_search_dn_expand+:} false; then : | ||
15206 | |||
15207 | else | ||
15208 | ac_cv_search_dn_expand=no | ||
15209 | fi | ||
15210 | rm conftest.$ac_ext | ||
15211 | LIBS=$ac_func_search_save_LIBS | ||
15212 | fi | ||
15213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
15214 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
15215 | ac_res=$ac_cv_search_dn_expand | ||
15216 | if test "$ac_res" != no; then : | ||
15217 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15218 | |||
15219 | fi | ||
15220 | |||
15221 | |||
15222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
15223 | $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } | ||
15224 | if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : | ||
15225 | $as_echo_n "(cached) " >&6 | ||
15226 | else | ||
15227 | ac_check_lib_save_LIBS=$LIBS | ||
15228 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
15229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15230 | /* end confdefs.h. */ | ||
15231 | |||
15232 | /* Override any GCC internal prototype to avoid an error. | ||
15233 | Use char because int might match the return type of a GCC | ||
15234 | builtin and then its argument prototype would still apply. */ | ||
15235 | #ifdef __cplusplus | ||
15236 | extern "C" | ||
15237 | #endif | ||
15238 | char gss_init_sec_context (); | ||
15239 | int | ||
15240 | main () | ||
15241 | { | ||
15242 | return gss_init_sec_context (); | ||
15243 | ; | ||
15244 | return 0; | ||
15245 | } | ||
15246 | _ACEOF | ||
15247 | if ac_fn_c_try_link "$LINENO"; then : | ||
15248 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
15249 | else | ||
15250 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
15251 | fi | ||
15252 | rm -f core conftest.err conftest.$ac_objext \ | ||
15253 | conftest$ac_exeext conftest.$ac_ext | ||
15254 | LIBS=$ac_check_lib_save_LIBS | ||
15255 | fi | ||
15256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
15257 | $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
15258 | if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : | ||
15259 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
15260 | |||
15261 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
15262 | else | ||
15263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 | ||
15264 | $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } | ||
15265 | if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : | ||
15266 | $as_echo_n "(cached) " >&6 | ||
15267 | else | ||
15268 | ac_check_lib_save_LIBS=$LIBS | ||
15269 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
15270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15271 | /* end confdefs.h. */ | ||
15272 | |||
15273 | /* Override any GCC internal prototype to avoid an error. | ||
15274 | Use char because int might match the return type of a GCC | ||
15275 | builtin and then its argument prototype would still apply. */ | ||
15276 | #ifdef __cplusplus | ||
15277 | extern "C" | ||
15278 | #endif | ||
15279 | char gss_init_sec_context (); | ||
15280 | int | ||
15281 | main () | ||
15282 | { | ||
15283 | return gss_init_sec_context (); | ||
15284 | ; | ||
15285 | return 0; | ||
15286 | } | ||
15287 | _ACEOF | ||
15288 | if ac_fn_c_try_link "$LINENO"; then : | ||
15289 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
15290 | else | ||
15291 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
15292 | fi | ||
15293 | rm -f core conftest.err conftest.$ac_objext \ | ||
15294 | conftest$ac_exeext conftest.$ac_ext | ||
15295 | LIBS=$ac_check_lib_save_LIBS | ||
15296 | fi | ||
15297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
15298 | $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
15299 | if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : | ||
15300 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
15301 | |||
15302 | K5LIBS="-lgssapi $K5LIBS" | ||
15303 | else | ||
15304 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
15305 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
15306 | fi | ||
15307 | |||
15308 | |||
15309 | fi | ||
15310 | |||
15311 | |||
15312 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
15313 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
15314 | |||
15315 | else | ||
15316 | unset ac_cv_header_gssapi_h | ||
15317 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
15318 | for ac_header in gssapi.h | ||
15319 | do : | ||
15320 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
15321 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
15322 | cat >>confdefs.h <<_ACEOF | ||
15323 | #define HAVE_GSSAPI_H 1 | ||
15324 | _ACEOF | ||
15325 | |||
15326 | else | ||
15327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
15328 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
15329 | |||
15330 | fi | ||
15331 | |||
15332 | done | ||
15333 | |||
15334 | |||
15335 | |||
15336 | fi | ||
15337 | |||
15338 | |||
15339 | |||
15340 | oldCPP="$CPPFLAGS" | ||
15341 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
15342 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" | ||
15343 | if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : | ||
15344 | |||
15345 | else | ||
15346 | CPPFLAGS="$oldCPP" | ||
15347 | fi | ||
15348 | |||
15349 | |||
15350 | |||
15351 | fi | ||
15352 | if test ! -z "$need_dash_r" ; then | ||
15353 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
15354 | fi | ||
15355 | if test ! -z "$blibpath" ; then | ||
15356 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
15357 | fi | ||
15358 | |||
15359 | for ac_header in gssapi.h gssapi/gssapi.h | ||
15360 | do : | ||
15361 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15362 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
15363 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
15364 | cat >>confdefs.h <<_ACEOF | ||
15365 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15366 | _ACEOF | ||
15367 | |||
15368 | fi | ||
15369 | |||
15370 | done | ||
15371 | |||
15372 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
15373 | do : | ||
15374 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15375 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
15376 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
15377 | cat >>confdefs.h <<_ACEOF | ||
15378 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15379 | _ACEOF | ||
15380 | |||
15381 | fi | ||
15382 | |||
15383 | done | ||
15384 | |||
15385 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
15386 | do : | ||
15387 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15388 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
15389 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
15390 | cat >>confdefs.h <<_ACEOF | ||
15391 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15392 | _ACEOF | ||
15393 | |||
15394 | fi | ||
15395 | |||
15396 | done | ||
15397 | |||
15398 | |||
15399 | LIBS="$LIBS $K5LIBS" | ||
15400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 | ||
15401 | $as_echo_n "checking for library containing k_hasafs... " >&6; } | ||
15402 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
15403 | $as_echo_n "(cached) " >&6 | ||
15404 | else | ||
15405 | ac_func_search_save_LIBS=$LIBS | ||
15406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15407 | /* end confdefs.h. */ | ||
15408 | |||
15409 | /* Override any GCC internal prototype to avoid an error. | ||
15410 | Use char because int might match the return type of a GCC | ||
15411 | builtin and then its argument prototype would still apply. */ | ||
15412 | #ifdef __cplusplus | ||
15413 | extern "C" | ||
15414 | #endif | ||
15415 | char k_hasafs (); | ||
15416 | int | ||
15417 | main () | ||
15418 | { | ||
15419 | return k_hasafs (); | ||
15420 | ; | ||
15421 | return 0; | ||
15422 | } | ||
15423 | _ACEOF | ||
15424 | for ac_lib in '' kafs; do | ||
15425 | if test -z "$ac_lib"; then | ||
15426 | ac_res="none required" | ||
15427 | else | ||
15428 | ac_res=-l$ac_lib | ||
15429 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15430 | fi | ||
15431 | if ac_fn_c_try_link "$LINENO"; then : | ||
15432 | ac_cv_search_k_hasafs=$ac_res | ||
15433 | fi | ||
15434 | rm -f core conftest.err conftest.$ac_objext \ | ||
15435 | conftest$ac_exeext | ||
15436 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
15437 | break | ||
15438 | fi | ||
15439 | done | ||
15440 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
15441 | |||
15442 | else | ||
15443 | ac_cv_search_k_hasafs=no | ||
15444 | fi | ||
15445 | rm conftest.$ac_ext | ||
15446 | LIBS=$ac_func_search_save_LIBS | ||
15447 | fi | ||
15448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 | ||
15449 | $as_echo "$ac_cv_search_k_hasafs" >&6; } | ||
15450 | ac_res=$ac_cv_search_k_hasafs | ||
15451 | if test "$ac_res" != no; then : | ||
15452 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15453 | |||
15454 | $as_echo "#define USE_AFS 1" >>confdefs.h | ||
15455 | |||
15456 | fi | ||
15457 | |||
15458 | fi | ||
15459 | |||
15460 | |||
15461 | fi | ||
15462 | |||
15463 | |||
15464 | # Looking for programs, paths and files | ||
15465 | |||
15466 | PRIVSEP_PATH=/var/empty | ||
15467 | |||
15468 | # Check whether --with-privsep-path was given. | ||
15469 | if test "${with_privsep_path+set}" = set; then : | ||
15470 | withval=$with_privsep_path; | ||
15471 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
15472 | test "x${withval}" != "xyes"; then | ||
15473 | PRIVSEP_PATH=$withval | ||
15474 | fi | ||
15475 | |||
15476 | |||
15477 | fi | ||
15478 | |||
15479 | |||
15480 | |||
15481 | |||
15482 | # Check whether --with-xauth was given. | ||
15483 | if test "${with_xauth+set}" = set; then : | ||
15484 | withval=$with_xauth; | ||
15485 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
15486 | test "x${withval}" != "xyes"; then | ||
15487 | xauth_path=$withval | ||
15488 | fi | ||
15489 | |||
15490 | else | ||
15491 | |||
15492 | TestPath="$PATH" | ||
15493 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
15494 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
15495 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
15496 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
15497 | # Extract the first word of "xauth", so it can be a program name with args. | ||
15498 | set dummy xauth; ac_word=$2 | ||
15499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
15500 | $as_echo_n "checking for $ac_word... " >&6; } | ||
15501 | if ${ac_cv_path_xauth_path+:} false; then : | ||
15502 | $as_echo_n "(cached) " >&6 | ||
15503 | else | ||
15504 | case $xauth_path in | ||
15505 | [\\/]* | ?:[\\/]*) | ||
15506 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
15507 | ;; | ||
15508 | *) | ||
15509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15510 | for as_dir in $TestPath | ||
15511 | do | ||
15512 | IFS=$as_save_IFS | ||
15513 | test -z "$as_dir" && as_dir=. | ||
15514 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15515 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15516 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
15517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15518 | break 2 | ||
15519 | fi | ||
15520 | done | ||
15521 | done | ||
15522 | IFS=$as_save_IFS | ||
15523 | |||
15524 | ;; | ||
15525 | esac | ||
15526 | fi | ||
15527 | xauth_path=$ac_cv_path_xauth_path | ||
15528 | if test -n "$xauth_path"; then | ||
15529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 | ||
15530 | $as_echo "$xauth_path" >&6; } | ||
15531 | else | ||
15532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15533 | $as_echo "no" >&6; } | ||
15534 | fi | ||
15535 | |||
15536 | |||
15537 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
15538 | xauth_path="/usr/openwin/bin/xauth" | ||
15539 | fi | ||
15540 | |||
15541 | |||
15542 | fi | ||
15543 | |||
15544 | |||
15545 | STRIP_OPT=-s | ||
15546 | # Check whether --enable-strip was given. | ||
15547 | if test "${enable_strip+set}" = set; then : | ||
15548 | enableval=$enable_strip; | ||
15549 | if test "x$enableval" = "xno" ; then | ||
15550 | STRIP_OPT= | ||
15551 | fi | ||
15552 | |||
15553 | |||
15554 | fi | ||
15555 | |||
15556 | |||
15557 | |||
15558 | if test -z "$xauth_path" ; then | ||
15559 | XAUTH_PATH="undefined" | ||
15560 | |||
15561 | else | ||
15562 | |||
15563 | cat >>confdefs.h <<_ACEOF | ||
15564 | #define XAUTH_PATH "$xauth_path" | ||
15565 | _ACEOF | ||
15566 | |||
15567 | XAUTH_PATH=$xauth_path | ||
15568 | |||
15569 | fi | ||
15570 | |||
15571 | # Check for mail directory | ||
15572 | |||
15573 | # Check whether --with-maildir was given. | ||
15574 | if test "${with_maildir+set}" = set; then : | ||
15575 | withval=$with_maildir; | ||
15576 | if test "X$withval" != X && test "x$withval" != xno && \ | ||
15577 | test "x${withval}" != xyes; then | ||
15578 | |||
15579 | cat >>confdefs.h <<_ACEOF | ||
15580 | #define MAIL_DIRECTORY "$withval" | ||
15581 | _ACEOF | ||
15582 | |||
15583 | fi | ||
15584 | |||
15585 | else | ||
15586 | |||
15587 | if test "X$maildir" != "X"; then | ||
15588 | cat >>confdefs.h <<_ACEOF | ||
15589 | #define MAIL_DIRECTORY "$maildir" | ||
15590 | _ACEOF | ||
15591 | |||
15592 | else | ||
15593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 | ||
15594 | $as_echo_n "checking Discovering system mail directory... " >&6; } | ||
15595 | if test "$cross_compiling" = yes; then : | ||
15596 | |||
15597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 | ||
15598 | $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} | ||
15599 | |||
15600 | |||
15601 | else | ||
15602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15603 | /* end confdefs.h. */ | ||
15604 | |||
15605 | #include <stdio.h> | ||
15606 | #include <string.h> | ||
15607 | #ifdef HAVE_PATHS_H | ||
15608 | #include <paths.h> | ||
15609 | #endif | ||
15610 | #ifdef HAVE_MAILLOCK_H | ||
15611 | #include <maillock.h> | ||
15612 | #endif | ||
15613 | #define DATA "conftest.maildir" | ||
15614 | |||
15615 | int | ||
15616 | main () | ||
15617 | { | ||
15618 | |||
15619 | FILE *fd; | ||
15620 | int rc; | ||
15621 | |||
15622 | fd = fopen(DATA,"w"); | ||
15623 | if(fd == NULL) | ||
15624 | exit(1); | ||
15625 | |||
15626 | #if defined (_PATH_MAILDIR) | ||
15627 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) | ||
15628 | exit(1); | ||
15629 | #elif defined (MAILDIR) | ||
15630 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) | ||
15631 | exit(1); | ||
15632 | #elif defined (_PATH_MAIL) | ||
15633 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) | ||
15634 | exit(1); | ||
15635 | #else | ||
15636 | exit (2); | ||
15637 | #endif | ||
15638 | |||
15639 | exit(0); | ||
15640 | |||
15641 | ; | ||
15642 | return 0; | ||
15643 | } | ||
15644 | _ACEOF | ||
15645 | if ac_fn_c_try_run "$LINENO"; then : | ||
15646 | |||
15647 | maildir_what=`awk -F: '{print $1}' conftest.maildir` | ||
15648 | maildir=`awk -F: '{print $2}' conftest.maildir \ | ||
15649 | | sed 's|/$||'` | ||
15650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 | ||
15651 | $as_echo "Using: $maildir from $maildir_what" >&6; } | ||
15652 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then | ||
15653 | cat >>confdefs.h <<_ACEOF | ||
15654 | #define MAIL_DIRECTORY "$maildir" | ||
15655 | _ACEOF | ||
15656 | |||
15657 | fi | ||
15658 | |||
15659 | else | ||
15660 | |||
15661 | if test "X$ac_status" = "X2";then | ||
15662 | # our test program didn't find it. Default to /var/spool/mail | ||
15663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 | ||
15664 | $as_echo "Using: default value of /var/spool/mail" >&6; } | ||
15665 | cat >>confdefs.h <<_ACEOF | ||
15666 | #define MAIL_DIRECTORY "/var/spool/mail" | ||
15667 | _ACEOF | ||
15668 | |||
15669 | else | ||
15670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 | ||
15671 | $as_echo "*** not found ***" >&6; } | ||
15672 | fi | ||
15673 | |||
15674 | fi | ||
15675 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
15676 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
15677 | fi | ||
15678 | |||
15679 | fi | ||
15680 | |||
15681 | |||
15682 | fi | ||
15683 | # maildir | ||
15684 | |||
15685 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
15686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
15687 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
15688 | disable_ptmx_check=yes | ||
15689 | fi | ||
15690 | if test -z "$no_dev_ptmx" ; then | ||
15691 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
15692 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` | ||
15693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 | ||
15694 | $as_echo_n "checking for \"/dev/ptmx\"... " >&6; } | ||
15695 | if eval \${$as_ac_File+:} false; then : | ||
15696 | $as_echo_n "(cached) " >&6 | ||
15697 | else | ||
15698 | test "$cross_compiling" = yes && | ||
15699 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
15700 | if test -r ""/dev/ptmx""; then | ||
15701 | eval "$as_ac_File=yes" | ||
15702 | else | ||
15703 | eval "$as_ac_File=no" | ||
15704 | fi | ||
15705 | fi | ||
15706 | eval ac_res=\$$as_ac_File | ||
15707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
15708 | $as_echo "$ac_res" >&6; } | ||
15709 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
15710 | |||
15711 | |||
15712 | cat >>confdefs.h <<_ACEOF | ||
15713 | #define HAVE_DEV_PTMX 1 | ||
15714 | _ACEOF | ||
15715 | |||
15716 | have_dev_ptmx=1 | ||
15717 | |||
15718 | |||
15719 | fi | ||
15720 | |||
15721 | fi | ||
15722 | fi | ||
15723 | |||
15724 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
15725 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` | ||
15726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 | ||
15727 | $as_echo_n "checking for \"/dev/ptc\"... " >&6; } | ||
15728 | if eval \${$as_ac_File+:} false; then : | ||
15729 | $as_echo_n "(cached) " >&6 | ||
15730 | else | ||
15731 | test "$cross_compiling" = yes && | ||
15732 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
15733 | if test -r ""/dev/ptc""; then | ||
15734 | eval "$as_ac_File=yes" | ||
15735 | else | ||
15736 | eval "$as_ac_File=no" | ||
15737 | fi | ||
15738 | fi | ||
15739 | eval ac_res=\$$as_ac_File | ||
15740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
15741 | $as_echo "$ac_res" >&6; } | ||
15742 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
15743 | |||
15744 | |||
15745 | cat >>confdefs.h <<_ACEOF | ||
15746 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
15747 | _ACEOF | ||
15748 | |||
15749 | have_dev_ptc=1 | ||
15750 | |||
15751 | |||
15752 | fi | ||
15753 | |||
15754 | else | ||
15755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
15756 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
15757 | fi | ||
15758 | |||
15759 | # Options from here on. Some of these are preset by platform above | ||
15760 | |||
15761 | # Check whether --with-mantype was given. | ||
15762 | if test "${with_mantype+set}" = set; then : | ||
15763 | withval=$with_mantype; | ||
15764 | case "$withval" in | ||
15765 | man|cat|doc) | ||
15766 | MANTYPE=$withval | ||
15767 | ;; | ||
15768 | *) | ||
15769 | as_fn_error $? "invalid man type: $withval" "$LINENO" 5 | ||
15770 | ;; | ||
15771 | esac | ||
15772 | |||
15773 | |||
15774 | fi | ||
15775 | |||
15776 | if test -z "$MANTYPE"; then | ||
15777 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
15778 | for ac_prog in nroff awf | ||
15779 | do | ||
15780 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
15781 | set dummy $ac_prog; ac_word=$2 | ||
15782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
15783 | $as_echo_n "checking for $ac_word... " >&6; } | ||
15784 | if ${ac_cv_path_NROFF+:} false; then : | ||
15785 | $as_echo_n "(cached) " >&6 | ||
15786 | else | ||
15787 | case $NROFF in | ||
15788 | [\\/]* | ?:[\\/]*) | ||
15789 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
15790 | ;; | ||
15791 | *) | ||
15792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15793 | for as_dir in $TestPath | ||
15794 | do | ||
15795 | IFS=$as_save_IFS | ||
15796 | test -z "$as_dir" && as_dir=. | ||
15797 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15799 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
15800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15801 | break 2 | ||
15802 | fi | ||
15803 | done | ||
15804 | done | ||
15805 | IFS=$as_save_IFS | ||
15806 | |||
15807 | ;; | ||
15808 | esac | ||
15809 | fi | ||
15810 | NROFF=$ac_cv_path_NROFF | ||
15811 | if test -n "$NROFF"; then | ||
15812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
15813 | $as_echo "$NROFF" >&6; } | ||
15814 | else | ||
15815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15816 | $as_echo "no" >&6; } | ||
15817 | fi | ||
15818 | |||
15819 | |||
15820 | test -n "$NROFF" && break | ||
15821 | done | ||
15822 | test -n "$NROFF" || NROFF="/bin/false" | ||
15823 | |||
15824 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
15825 | MANTYPE=doc | ||
15826 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
15827 | MANTYPE=man | ||
15828 | else | ||
15829 | MANTYPE=cat | ||
15830 | fi | ||
15831 | fi | ||
15832 | |||
15833 | if test "$MANTYPE" = "doc"; then | ||
15834 | mansubdir=man; | ||
15835 | else | ||
15836 | mansubdir=$MANTYPE; | ||
15837 | fi | ||
15838 | |||
15839 | |||
15840 | # Check whether to enable MD5 passwords | ||
15841 | MD5_MSG="no" | ||
15842 | |||
15843 | # Check whether --with-md5-passwords was given. | ||
15844 | if test "${with_md5_passwords+set}" = set; then : | ||
15845 | withval=$with_md5_passwords; | ||
15846 | if test "x$withval" != "xno" ; then | ||
15847 | |||
15848 | $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h | ||
15849 | |||
15850 | MD5_MSG="yes" | ||
15851 | fi | ||
15852 | |||
15853 | |||
15854 | fi | ||
15855 | |||
15856 | |||
15857 | # Whether to disable shadow password support | ||
15858 | |||
15859 | # Check whether --with-shadow was given. | ||
15860 | if test "${with_shadow+set}" = set; then : | ||
15861 | withval=$with_shadow; | ||
15862 | if test "x$withval" = "xno" ; then | ||
15863 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
15864 | |||
15865 | disable_shadow=yes | ||
15866 | fi | ||
15867 | |||
15868 | |||
15869 | fi | ||
15870 | |||
15871 | |||
15872 | if test -z "$disable_shadow" ; then | ||
15873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 | ||
15874 | $as_echo_n "checking if the systems has expire shadow information... " >&6; } | ||
15875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15876 | /* end confdefs.h. */ | ||
15877 | |||
15878 | #include <sys/types.h> | ||
15879 | #include <shadow.h> | ||
15880 | struct spwd sp; | ||
15881 | |||
15882 | int | ||
15883 | main () | ||
15884 | { | ||
15885 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
15886 | ; | ||
15887 | return 0; | ||
15888 | } | ||
15889 | _ACEOF | ||
15890 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15891 | sp_expire_available=yes | ||
15892 | fi | ||
15893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15894 | |||
15895 | if test "x$sp_expire_available" = "xyes" ; then | ||
15896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15897 | $as_echo "yes" >&6; } | ||
15898 | |||
15899 | $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h | ||
15900 | |||
15901 | else | ||
15902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15903 | $as_echo "no" >&6; } | ||
15904 | fi | ||
15905 | fi | ||
15906 | |||
15907 | # Use ip address instead of hostname in $DISPLAY | ||
15908 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
15909 | DISPLAY_HACK_MSG="yes" | ||
15910 | |||
15911 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
15912 | |||
15913 | else | ||
15914 | DISPLAY_HACK_MSG="no" | ||
15915 | |||
15916 | # Check whether --with-ipaddr-display was given. | ||
15917 | if test "${with_ipaddr_display+set}" = set; then : | ||
15918 | withval=$with_ipaddr_display; | ||
15919 | if test "x$withval" != "xno" ; then | ||
15920 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
15921 | |||
15922 | DISPLAY_HACK_MSG="yes" | ||
15923 | fi | ||
15924 | |||
15925 | |||
15926 | fi | ||
15927 | |||
15928 | fi | ||
15929 | |||
15930 | # check for /etc/default/login and use it if present. | ||
15931 | # Check whether --enable-etc-default-login was given. | ||
15932 | if test "${enable_etc_default_login+set}" = set; then : | ||
15933 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
15934 | { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 | ||
15935 | $as_echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
15936 | etc_default_login=no | ||
15937 | else | ||
15938 | etc_default_login=yes | ||
15939 | fi | ||
15940 | else | ||
15941 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
15942 | then | ||
15943 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
15944 | $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
15945 | etc_default_login=no | ||
15946 | else | ||
15947 | etc_default_login=yes | ||
15948 | fi | ||
15949 | |||
15950 | fi | ||
15951 | |||
15952 | |||
15953 | if test "x$etc_default_login" != "xno"; then | ||
15954 | as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` | ||
15955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 | ||
15956 | $as_echo_n "checking for \"/etc/default/login\"... " >&6; } | ||
15957 | if eval \${$as_ac_File+:} false; then : | ||
15958 | $as_echo_n "(cached) " >&6 | ||
15959 | else | ||
15960 | test "$cross_compiling" = yes && | ||
15961 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
15962 | if test -r ""/etc/default/login""; then | ||
15963 | eval "$as_ac_File=yes" | ||
15964 | else | ||
15965 | eval "$as_ac_File=no" | ||
15966 | fi | ||
15967 | fi | ||
15968 | eval ac_res=\$$as_ac_File | ||
15969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
15970 | $as_echo "$ac_res" >&6; } | ||
15971 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
15972 | external_path_file=/etc/default/login | ||
15973 | fi | ||
15974 | |||
15975 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
15976 | |||
15977 | $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h | ||
15978 | |||
15979 | fi | ||
15980 | fi | ||
15981 | |||
15982 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
15983 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
15984 | external_path_file=/etc/login.conf | ||
15985 | fi | ||
15986 | |||
15987 | # Whether to mess with the default path | ||
15988 | SERVER_PATH_MSG="(default)" | ||
15989 | |||
15990 | # Check whether --with-default-path was given. | ||
15991 | if test "${with_default_path+set}" = set; then : | ||
15992 | withval=$with_default_path; | ||
15993 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
15994 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
15995 | --with-default-path=PATH has no effect on this system. | ||
15996 | Edit /etc/login.conf instead." >&5 | ||
15997 | $as_echo "$as_me: WARNING: | ||
15998 | --with-default-path=PATH has no effect on this system. | ||
15999 | Edit /etc/login.conf instead." >&2;} | ||
16000 | elif test "x$withval" != "xno" ; then | ||
16001 | if test ! -z "$external_path_file" ; then | ||
16002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
16003 | --with-default-path=PATH will only be used if PATH is not defined in | ||
16004 | $external_path_file ." >&5 | ||
16005 | $as_echo "$as_me: WARNING: | ||
16006 | --with-default-path=PATH will only be used if PATH is not defined in | ||
16007 | $external_path_file ." >&2;} | ||
16008 | fi | ||
16009 | user_path="$withval" | ||
16010 | SERVER_PATH_MSG="$withval" | ||
16011 | fi | ||
16012 | |||
16013 | else | ||
16014 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
16016 | $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
16017 | else | ||
16018 | if test ! -z "$external_path_file" ; then | ||
16019 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
16020 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
16021 | otherwise scp will not work." >&5 | ||
16022 | $as_echo "$as_me: WARNING: | ||
16023 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
16024 | otherwise scp will not work." >&2;} | ||
16025 | fi | ||
16026 | if test "$cross_compiling" = yes; then : | ||
16027 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16028 | |||
16029 | else | ||
16030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16031 | /* end confdefs.h. */ | ||
16032 | |||
16033 | /* find out what STDPATH is */ | ||
16034 | #include <stdio.h> | ||
16035 | #ifdef HAVE_PATHS_H | ||
16036 | # include <paths.h> | ||
16037 | #endif | ||
16038 | #ifndef _PATH_STDPATH | ||
16039 | # ifdef _PATH_USERPATH /* Irix */ | ||
16040 | # define _PATH_STDPATH _PATH_USERPATH | ||
16041 | # else | ||
16042 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
16043 | # endif | ||
16044 | #endif | ||
16045 | #include <sys/types.h> | ||
16046 | #include <sys/stat.h> | ||
16047 | #include <fcntl.h> | ||
16048 | #define DATA "conftest.stdpath" | ||
16049 | |||
16050 | int | ||
16051 | main () | ||
16052 | { | ||
16053 | |||
16054 | FILE *fd; | ||
16055 | int rc; | ||
16056 | |||
16057 | fd = fopen(DATA,"w"); | ||
16058 | if(fd == NULL) | ||
16059 | exit(1); | ||
16060 | |||
16061 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
16062 | exit(1); | ||
16063 | |||
16064 | exit(0); | ||
16065 | |||
16066 | ; | ||
16067 | return 0; | ||
16068 | } | ||
16069 | _ACEOF | ||
16070 | if ac_fn_c_try_run "$LINENO"; then : | ||
16071 | user_path=`cat conftest.stdpath` | ||
16072 | else | ||
16073 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16074 | fi | ||
16075 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
16076 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
16077 | fi | ||
16078 | |||
16079 | # make sure $bindir is in USER_PATH so scp will work | ||
16080 | t_bindir=`eval echo ${bindir}` | ||
16081 | case $t_bindir in | ||
16082 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
16083 | esac | ||
16084 | case $t_bindir in | ||
16085 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16086 | esac | ||
16087 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
16088 | if test $? -ne 0 ; then | ||
16089 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
16090 | if test $? -ne 0 ; then | ||
16091 | user_path=$user_path:$t_bindir | ||
16092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
16093 | $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
16094 | fi | ||
16095 | fi | ||
16096 | fi | ||
16097 | |||
16098 | fi | ||
16099 | |||
16100 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
16101 | |||
16102 | cat >>confdefs.h <<_ACEOF | ||
16103 | #define USER_PATH "$user_path" | ||
16104 | _ACEOF | ||
16105 | |||
16106 | |||
16107 | fi | ||
16108 | |||
16109 | # Set superuser path separately to user path | ||
16110 | |||
16111 | # Check whether --with-superuser-path was given. | ||
16112 | if test "${with_superuser_path+set}" = set; then : | ||
16113 | withval=$with_superuser_path; | ||
16114 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
16115 | test "x${withval}" != "xyes"; then | ||
16116 | |||
16117 | cat >>confdefs.h <<_ACEOF | ||
16118 | #define SUPERUSER_PATH "$withval" | ||
16119 | _ACEOF | ||
16120 | |||
16121 | superuser_path=$withval | ||
16122 | fi | ||
16123 | |||
16124 | |||
16125 | fi | ||
16126 | |||
16127 | |||
16128 | |||
16129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
16130 | $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } | ||
16131 | IPV4_IN6_HACK_MSG="no" | ||
16132 | |||
16133 | # Check whether --with-4in6 was given. | ||
16134 | if test "${with_4in6+set}" = set; then : | ||
16135 | withval=$with_4in6; | ||
16136 | if test "x$withval" != "xno" ; then | ||
16137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16138 | $as_echo "yes" >&6; } | ||
16139 | |||
16140 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
16141 | |||
16142 | IPV4_IN6_HACK_MSG="yes" | ||
16143 | else | ||
16144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16145 | $as_echo "no" >&6; } | ||
16146 | fi | ||
16147 | |||
16148 | else | ||
16149 | |||
16150 | if test "x$inet6_default_4in6" = "xyes"; then | ||
16151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 | ||
16152 | $as_echo "yes (default)" >&6; } | ||
16153 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
16154 | |||
16155 | IPV4_IN6_HACK_MSG="yes" | ||
16156 | else | ||
16157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 | ||
16158 | $as_echo "no (default)" >&6; } | ||
16159 | fi | ||
16160 | |||
16161 | |||
16162 | fi | ||
16163 | |||
16164 | |||
16165 | # Whether to enable BSD auth support | ||
16166 | BSD_AUTH_MSG=no | ||
16167 | |||
16168 | # Check whether --with-bsd-auth was given. | ||
16169 | if test "${with_bsd_auth+set}" = set; then : | ||
16170 | withval=$with_bsd_auth; | ||
16171 | if test "x$withval" != "xno" ; then | ||
16172 | |||
16173 | $as_echo "#define BSD_AUTH 1" >>confdefs.h | ||
16174 | |||
16175 | BSD_AUTH_MSG=yes | ||
16176 | fi | ||
16177 | |||
16178 | |||
16179 | fi | ||
16180 | |||
16181 | |||
16182 | # Where to place sshd.pid | ||
16183 | piddir=/var/run | ||
16184 | # make sure the directory exists | ||
16185 | if test ! -d $piddir ; then | ||
16186 | piddir=`eval echo ${sysconfdir}` | ||
16187 | case $piddir in | ||
16188 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16189 | esac | ||
16190 | fi | ||
16191 | |||
16192 | |||
16193 | # Check whether --with-pid-dir was given. | ||
16194 | if test "${with_pid_dir+set}" = set; then : | ||
16195 | withval=$with_pid_dir; | ||
16196 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
16197 | test "x${withval}" != "xyes"; then | ||
16198 | piddir=$withval | ||
16199 | if test ! -d $piddir ; then | ||
16200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 | ||
16201 | $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
16202 | fi | ||
16203 | fi | ||
16204 | |||
16205 | |||
16206 | fi | ||
16207 | |||
16208 | |||
16209 | |||
16210 | cat >>confdefs.h <<_ACEOF | ||
16211 | #define _PATH_SSH_PIDDIR "$piddir" | ||
16212 | _ACEOF | ||
16213 | |||
16214 | |||
16215 | |||
16216 | # Check whether --enable-lastlog was given. | ||
16217 | if test "${enable_lastlog+set}" = set; then : | ||
16218 | enableval=$enable_lastlog; | ||
16219 | if test "x$enableval" = "xno" ; then | ||
16220 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
16221 | |||
16222 | fi | ||
16223 | |||
16224 | |||
16225 | fi | ||
16226 | |||
16227 | # Check whether --enable-utmp was given. | ||
16228 | if test "${enable_utmp+set}" = set; then : | ||
16229 | enableval=$enable_utmp; | ||
16230 | if test "x$enableval" = "xno" ; then | ||
16231 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
16232 | |||
16233 | fi | ||
16234 | |||
16235 | |||
16236 | fi | ||
16237 | |||
16238 | # Check whether --enable-utmpx was given. | ||
16239 | if test "${enable_utmpx+set}" = set; then : | ||
16240 | enableval=$enable_utmpx; | ||
16241 | if test "x$enableval" = "xno" ; then | ||
16242 | |||
16243 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
16244 | |||
16245 | fi | ||
16246 | |||
16247 | |||
16248 | fi | ||
16249 | |||
16250 | # Check whether --enable-wtmp was given. | ||
16251 | if test "${enable_wtmp+set}" = set; then : | ||
16252 | enableval=$enable_wtmp; | ||
16253 | if test "x$enableval" = "xno" ; then | ||
16254 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
16255 | |||
16256 | fi | ||
16257 | |||
16258 | |||
16259 | fi | ||
16260 | |||
16261 | # Check whether --enable-wtmpx was given. | ||
16262 | if test "${enable_wtmpx+set}" = set; then : | ||
16263 | enableval=$enable_wtmpx; | ||
16264 | if test "x$enableval" = "xno" ; then | ||
16265 | |||
16266 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
16267 | |||
16268 | fi | ||
16269 | |||
16270 | |||
16271 | fi | ||
16272 | |||
16273 | # Check whether --enable-libutil was given. | ||
16274 | if test "${enable_libutil+set}" = set; then : | ||
16275 | enableval=$enable_libutil; | ||
16276 | if test "x$enableval" = "xno" ; then | ||
16277 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
16278 | |||
16279 | fi | ||
16280 | |||
16281 | |||
16282 | fi | ||
16283 | |||
16284 | # Check whether --enable-pututline was given. | ||
16285 | if test "${enable_pututline+set}" = set; then : | ||
16286 | enableval=$enable_pututline; | ||
16287 | if test "x$enableval" = "xno" ; then | ||
16288 | |||
16289 | $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h | ||
16290 | |||
16291 | fi | ||
16292 | |||
16293 | |||
16294 | fi | ||
16295 | |||
16296 | # Check whether --enable-pututxline was given. | ||
16297 | if test "${enable_pututxline+set}" = set; then : | ||
16298 | enableval=$enable_pututxline; | ||
16299 | if test "x$enableval" = "xno" ; then | ||
16300 | |||
16301 | $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h | ||
16302 | |||
16303 | fi | ||
16304 | |||
16305 | |||
16306 | fi | ||
16307 | |||
16308 | |||
16309 | # Check whether --with-lastlog was given. | ||
16310 | if test "${with_lastlog+set}" = set; then : | ||
16311 | withval=$with_lastlog; | ||
16312 | if test "x$withval" = "xno" ; then | ||
16313 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
16314 | |||
16315 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
16316 | conf_lastlog_location=$withval | ||
16317 | fi | ||
16318 | |||
16319 | |||
16320 | fi | ||
16321 | |||
16322 | |||
16323 | |||
16324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 | ||
16325 | $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } | ||
16326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16327 | /* end confdefs.h. */ | ||
16328 | |||
16329 | #include <sys/types.h> | ||
16330 | #include <utmp.h> | ||
16331 | #ifdef HAVE_LASTLOG_H | ||
16332 | # include <lastlog.h> | ||
16333 | #endif | ||
16334 | #ifdef HAVE_PATHS_H | ||
16335 | # include <paths.h> | ||
16336 | #endif | ||
16337 | #ifdef HAVE_LOGIN_H | ||
16338 | # include <login.h> | ||
16339 | #endif | ||
16340 | |||
16341 | int | ||
16342 | main () | ||
16343 | { | ||
16344 | char *lastlog = LASTLOG_FILE; | ||
16345 | ; | ||
16346 | return 0; | ||
16347 | } | ||
16348 | _ACEOF | ||
16349 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16351 | $as_echo "yes" >&6; } | ||
16352 | else | ||
16353 | |||
16354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16355 | $as_echo "no" >&6; } | ||
16356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 | ||
16357 | $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } | ||
16358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16359 | /* end confdefs.h. */ | ||
16360 | |||
16361 | #include <sys/types.h> | ||
16362 | #include <utmp.h> | ||
16363 | #ifdef HAVE_LASTLOG_H | ||
16364 | # include <lastlog.h> | ||
16365 | #endif | ||
16366 | #ifdef HAVE_PATHS_H | ||
16367 | # include <paths.h> | ||
16368 | #endif | ||
16369 | |||
16370 | int | ||
16371 | main () | ||
16372 | { | ||
16373 | char *lastlog = _PATH_LASTLOG; | ||
16374 | ; | ||
16375 | return 0; | ||
16376 | } | ||
16377 | _ACEOF | ||
16378 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16380 | $as_echo "yes" >&6; } | ||
16381 | else | ||
16382 | |||
16383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16384 | $as_echo "no" >&6; } | ||
16385 | system_lastlog_path=no | ||
16386 | |||
16387 | fi | ||
16388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16389 | |||
16390 | fi | ||
16391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16392 | |||
16393 | if test -z "$conf_lastlog_location"; then | ||
16394 | if test x"$system_lastlog_path" = x"no" ; then | ||
16395 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
16396 | if (test -d "$f" || test -f "$f") ; then | ||
16397 | conf_lastlog_location=$f | ||
16398 | fi | ||
16399 | done | ||
16400 | if test -z "$conf_lastlog_location"; then | ||
16401 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 | ||
16402 | $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
16403 | fi | ||
16404 | fi | ||
16405 | fi | ||
16406 | |||
16407 | if test -n "$conf_lastlog_location"; then | ||
16408 | |||
16409 | cat >>confdefs.h <<_ACEOF | ||
16410 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
16411 | _ACEOF | ||
16412 | |||
16413 | fi | ||
16414 | |||
16415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 | ||
16416 | $as_echo_n "checking if your system defines UTMP_FILE... " >&6; } | ||
16417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16418 | /* end confdefs.h. */ | ||
16419 | |||
16420 | #include <sys/types.h> | ||
16421 | #include <utmp.h> | ||
16422 | #ifdef HAVE_PATHS_H | ||
16423 | # include <paths.h> | ||
16424 | #endif | ||
16425 | |||
16426 | int | ||
16427 | main () | ||
16428 | { | ||
16429 | char *utmp = UTMP_FILE; | ||
16430 | ; | ||
16431 | return 0; | ||
16432 | } | ||
16433 | _ACEOF | ||
16434 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16436 | $as_echo "yes" >&6; } | ||
16437 | else | ||
16438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16439 | $as_echo "no" >&6; } | ||
16440 | system_utmp_path=no | ||
16441 | |||
16442 | fi | ||
16443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16444 | if test -z "$conf_utmp_location"; then | ||
16445 | if test x"$system_utmp_path" = x"no" ; then | ||
16446 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
16447 | if test -f $f ; then | ||
16448 | conf_utmp_location=$f | ||
16449 | fi | ||
16450 | done | ||
16451 | if test -z "$conf_utmp_location"; then | ||
16452 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
16453 | |||
16454 | fi | ||
16455 | fi | ||
16456 | fi | ||
16457 | if test -n "$conf_utmp_location"; then | ||
16458 | |||
16459 | cat >>confdefs.h <<_ACEOF | ||
16460 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
16461 | _ACEOF | ||
16462 | |||
16463 | fi | ||
16464 | |||
16465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 | ||
16466 | $as_echo_n "checking if your system defines WTMP_FILE... " >&6; } | ||
16467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16468 | /* end confdefs.h. */ | ||
16469 | |||
16470 | #include <sys/types.h> | ||
16471 | #include <utmp.h> | ||
16472 | #ifdef HAVE_PATHS_H | ||
16473 | # include <paths.h> | ||
16474 | #endif | ||
16475 | |||
16476 | int | ||
16477 | main () | ||
16478 | { | ||
16479 | char *wtmp = WTMP_FILE; | ||
16480 | ; | ||
16481 | return 0; | ||
16482 | } | ||
16483 | _ACEOF | ||
16484 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16486 | $as_echo "yes" >&6; } | ||
16487 | else | ||
16488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16489 | $as_echo "no" >&6; } | ||
16490 | system_wtmp_path=no | ||
16491 | |||
16492 | fi | ||
16493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16494 | if test -z "$conf_wtmp_location"; then | ||
16495 | if test x"$system_wtmp_path" = x"no" ; then | ||
16496 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
16497 | if test -f $f ; then | ||
16498 | conf_wtmp_location=$f | ||
16499 | fi | ||
16500 | done | ||
16501 | if test -z "$conf_wtmp_location"; then | ||
16502 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
16503 | |||
16504 | fi | ||
16505 | fi | ||
16506 | fi | ||
16507 | if test -n "$conf_wtmp_location"; then | ||
16508 | |||
16509 | cat >>confdefs.h <<_ACEOF | ||
16510 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
16511 | _ACEOF | ||
16512 | |||
16513 | fi | ||
16514 | |||
16515 | |||
16516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 | ||
16517 | $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } | ||
16518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16519 | /* end confdefs.h. */ | ||
16520 | |||
16521 | #include <sys/types.h> | ||
16522 | #include <utmp.h> | ||
16523 | #ifdef HAVE_UTMPX_H | ||
16524 | #include <utmpx.h> | ||
16525 | #endif | ||
16526 | #ifdef HAVE_PATHS_H | ||
16527 | # include <paths.h> | ||
16528 | #endif | ||
16529 | |||
16530 | int | ||
16531 | main () | ||
16532 | { | ||
16533 | char *wtmpx = WTMPX_FILE; | ||
16534 | ; | ||
16535 | return 0; | ||
16536 | } | ||
16537 | _ACEOF | ||
16538 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16540 | $as_echo "yes" >&6; } | ||
16541 | else | ||
16542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16543 | $as_echo "no" >&6; } | ||
16544 | system_wtmpx_path=no | ||
16545 | |||
16546 | fi | ||
16547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16548 | if test -z "$conf_wtmpx_location"; then | ||
16549 | if test x"$system_wtmpx_path" = x"no" ; then | ||
16550 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
16551 | |||
16552 | fi | ||
16553 | else | ||
16554 | |||
16555 | cat >>confdefs.h <<_ACEOF | ||
16556 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
16557 | _ACEOF | ||
16558 | |||
16559 | fi | ||
16560 | |||
16561 | |||
16562 | if test ! -z "$blibpath" ; then | ||
16563 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
16564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
16565 | $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
16566 | fi | ||
16567 | |||
16568 | CFLAGS="$CFLAGS $werror_flags" | ||
16569 | |||
16570 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
16571 | TEST_SSH_IPV6=no | ||
16572 | else | ||
16573 | TEST_SSH_IPV6=yes | ||
16574 | fi | ||
16575 | ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" | ||
16576 | if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : | ||
16577 | TEST_SSH_IPV6=no | ||
16578 | fi | ||
16579 | |||
16580 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
16581 | |||
16582 | |||
16583 | |||
16584 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" | ||
16585 | |||
16586 | cat >confcache <<\_ACEOF | ||
16587 | # This file is a shell script that caches the results of configure | ||
16588 | # tests run on this system so they can be shared between configure | ||
16589 | # scripts and configure runs, see configure's option --config-cache. | ||
16590 | # It is not useful on other systems. If it contains results you don't | ||
16591 | # want to keep, you may remove or edit it. | ||
16592 | # | ||
16593 | # config.status only pays attention to the cache file if you give it | ||
16594 | # the --recheck option to rerun configure. | ||
16595 | # | ||
16596 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
16597 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
16598 | # following values. | ||
16599 | |||
16600 | _ACEOF | ||
16601 | |||
16602 | # The following way of writing the cache mishandles newlines in values, | ||
16603 | # but we know of no workaround that is simple, portable, and efficient. | ||
16604 | # So, we kill variables containing newlines. | ||
16605 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
16606 | # and sets the high bit in the cache file unless we assign to the vars. | ||
16607 | ( | ||
16608 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
16609 | eval ac_val=\$$ac_var | ||
16610 | case $ac_val in #( | ||
16611 | *${as_nl}*) | ||
16612 | case $ac_var in #( | ||
16613 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
16614 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
16615 | esac | ||
16616 | case $ac_var in #( | ||
16617 | _ | IFS | as_nl) ;; #( | ||
16618 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
16619 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
16620 | esac ;; | ||
16621 | esac | ||
16622 | done | ||
16623 | |||
16624 | (set) 2>&1 | | ||
16625 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
16626 | *${as_nl}ac_space=\ *) | ||
16627 | # `set' does not quote correctly, so add quotes: double-quote | ||
16628 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
16629 | sed -n \ | ||
16630 | "s/'/'\\\\''/g; | ||
16631 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
16632 | ;; #( | ||
16633 | *) | ||
16634 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
16635 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
16636 | ;; | ||
16637 | esac | | ||
16638 | sort | ||
16639 | ) | | ||
16640 | sed ' | ||
16641 | /^ac_cv_env_/b end | ||
16642 | t clear | ||
16643 | :clear | ||
16644 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
16645 | t end | ||
16646 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
16647 | :end' >>confcache | ||
16648 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
16649 | if test -w "$cache_file"; then | ||
16650 | if test "x$cache_file" != "x/dev/null"; then | ||
16651 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
16652 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
16653 | if test ! -f "$cache_file" || test -h "$cache_file"; then | ||
16654 | cat confcache >"$cache_file" | ||
16655 | else | ||
16656 | case $cache_file in #( | ||
16657 | */* | ?:*) | ||
16658 | mv -f confcache "$cache_file"$$ && | ||
16659 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||
16660 | *) | ||
16661 | mv -f confcache "$cache_file" ;; | ||
16662 | esac | ||
16663 | fi | ||
16664 | fi | ||
16665 | else | ||
16666 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
16667 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
16668 | fi | ||
16669 | fi | ||
16670 | rm -f confcache | ||
16671 | |||
16672 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
16673 | # Let make expand exec_prefix. | ||
16674 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
16675 | |||
16676 | DEFS=-DHAVE_CONFIG_H | ||
16677 | |||
16678 | ac_libobjs= | ||
16679 | ac_ltlibobjs= | ||
16680 | U= | ||
16681 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
16682 | # 1. Remove the extension, and $U if already installed. | ||
16683 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
16684 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
16685 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
16686 | # will be set to the directory where LIBOBJS objects are built. | ||
16687 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
16688 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
16689 | done | ||
16690 | LIBOBJS=$ac_libobjs | ||
16691 | |||
16692 | LTLIBOBJS=$ac_ltlibobjs | ||
16693 | |||
16694 | |||
16695 | |||
16696 | |||
16697 | : "${CONFIG_STATUS=./config.status}" | ||
16698 | ac_write_fail=0 | ||
16699 | ac_clean_files_save=$ac_clean_files | ||
16700 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
16701 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
16702 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
16703 | as_write_fail=0 | ||
16704 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
16705 | #! $SHELL | ||
16706 | # Generated by $as_me. | ||
16707 | # Run this file to recreate the current configuration. | ||
16708 | # Compiler output produced by configure, useful for debugging | ||
16709 | # configure, is in config.log if it exists. | ||
16710 | |||
16711 | debug=false | ||
16712 | ac_cs_recheck=false | ||
16713 | ac_cs_silent=false | ||
16714 | |||
16715 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
16716 | export SHELL | ||
16717 | _ASEOF | ||
16718 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
16719 | ## -------------------- ## | ||
16720 | ## M4sh Initialization. ## | ||
16721 | ## -------------------- ## | ||
16722 | |||
16723 | # Be more Bourne compatible | ||
16724 | DUALCASE=1; export DUALCASE # for MKS sh | ||
16725 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
16726 | emulate sh | ||
16727 | NULLCMD=: | ||
16728 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
16729 | # is contrary to our usage. Disable this feature. | ||
16730 | alias -g '${1+"$@"}'='"$@"' | ||
16731 | setopt NO_GLOB_SUBST | ||
16732 | else | ||
16733 | case `(set -o) 2>/dev/null` in #( | ||
16734 | *posix*) : | ||
16735 | set -o posix ;; #( | ||
16736 | *) : | ||
16737 | ;; | ||
16738 | esac | ||
16739 | fi | ||
16740 | |||
16741 | |||
16742 | as_nl=' | ||
16743 | ' | ||
16744 | export as_nl | ||
16745 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
16746 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
16747 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
16748 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
16749 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
16750 | # but without wasting forks for bash or zsh. | ||
16751 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
16752 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
16753 | as_echo='print -r --' | ||
16754 | as_echo_n='print -rn --' | ||
16755 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
16756 | as_echo='printf %s\n' | ||
16757 | as_echo_n='printf %s' | ||
16758 | else | ||
16759 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
16760 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
16761 | as_echo_n='/usr/ucb/echo -n' | ||
16762 | else | ||
16763 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
16764 | as_echo_n_body='eval | ||
16765 | arg=$1; | ||
16766 | case $arg in #( | ||
16767 | *"$as_nl"*) | ||
16768 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
16769 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
16770 | esac; | ||
16771 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
16772 | ' | ||
16773 | export as_echo_n_body | ||
16774 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
16775 | fi | ||
16776 | export as_echo_body | ||
16777 | as_echo='sh -c $as_echo_body as_echo' | ||
16778 | fi | ||
16779 | |||
16780 | # The user is always right. | ||
16781 | if test "${PATH_SEPARATOR+set}" != set; then | ||
16782 | PATH_SEPARATOR=: | ||
16783 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
16784 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
16785 | PATH_SEPARATOR=';' | ||
16786 | } | ||
16787 | fi | ||
16788 | |||
16789 | |||
16790 | # IFS | ||
16791 | # We need space, tab and new line, in precisely that order. Quoting is | ||
16792 | # there to prevent editors from complaining about space-tab. | ||
16793 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
16794 | # splitting by setting IFS to empty value.) | ||
16795 | IFS=" "" $as_nl" | ||
16796 | |||
16797 | # Find who we are. Look in the path if we contain no directory separator. | ||
16798 | as_myself= | ||
16799 | case $0 in #(( | ||
16800 | *[\\/]* ) as_myself=$0 ;; | ||
16801 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16802 | for as_dir in $PATH | ||
16803 | do | ||
16804 | IFS=$as_save_IFS | ||
16805 | test -z "$as_dir" && as_dir=. | ||
16806 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
16807 | done | ||
16808 | IFS=$as_save_IFS | ||
16809 | |||
16810 | ;; | ||
16811 | esac | ||
16812 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
16813 | # in which case we are not to be found in the path. | ||
16814 | if test "x$as_myself" = x; then | ||
16815 | as_myself=$0 | ||
16816 | fi | ||
16817 | if test ! -f "$as_myself"; then | ||
16818 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
16819 | exit 1 | ||
16820 | fi | ||
16821 | |||
16822 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
16823 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
16824 | # suppresses any "Segmentation fault" message there. '((' could | ||
16825 | # trigger a bug in pdksh 5.2.14. | ||
16826 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
16827 | do eval test x\${$as_var+set} = xset \ | ||
16828 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
16829 | done | ||
16830 | PS1='$ ' | ||
16831 | PS2='> ' | ||
16832 | PS4='+ ' | ||
16833 | |||
16834 | # NLS nuisances. | ||
16835 | LC_ALL=C | ||
16836 | export LC_ALL | ||
16837 | LANGUAGE=C | ||
16838 | export LANGUAGE | ||
16839 | |||
16840 | # CDPATH. | ||
16841 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
16842 | |||
16843 | |||
16844 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
16845 | # ---------------------------------------- | ||
16846 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
16847 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
16848 | # script with STATUS, using 1 if that was 0. | ||
16849 | as_fn_error () | ||
16850 | { | ||
16851 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
16852 | if test "$4"; then | ||
16853 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
16854 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
16855 | fi | ||
16856 | $as_echo "$as_me: error: $2" >&2 | ||
16857 | as_fn_exit $as_status | ||
16858 | } # as_fn_error | ||
16859 | |||
16860 | |||
16861 | # as_fn_set_status STATUS | ||
16862 | # ----------------------- | ||
16863 | # Set $? to STATUS, without forking. | ||
16864 | as_fn_set_status () | ||
16865 | { | ||
16866 | return $1 | ||
16867 | } # as_fn_set_status | ||
16868 | |||
16869 | # as_fn_exit STATUS | ||
16870 | # ----------------- | ||
16871 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
16872 | as_fn_exit () | ||
16873 | { | ||
16874 | set +e | ||
16875 | as_fn_set_status $1 | ||
16876 | exit $1 | ||
16877 | } # as_fn_exit | ||
16878 | |||
16879 | # as_fn_unset VAR | ||
16880 | # --------------- | ||
16881 | # Portably unset VAR. | ||
16882 | as_fn_unset () | ||
16883 | { | ||
16884 | { eval $1=; unset $1;} | ||
16885 | } | ||
16886 | as_unset=as_fn_unset | ||
16887 | # as_fn_append VAR VALUE | ||
16888 | # ---------------------- | ||
16889 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
16890 | # advantage of any shell optimizations that allow amortized linear growth over | ||
16891 | # repeated appends, instead of the typical quadratic growth present in naive | ||
16892 | # implementations. | ||
16893 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
16894 | eval 'as_fn_append () | ||
16895 | { | ||
16896 | eval $1+=\$2 | ||
16897 | }' | ||
16898 | else | ||
16899 | as_fn_append () | ||
16900 | { | ||
16901 | eval $1=\$$1\$2 | ||
16902 | } | ||
16903 | fi # as_fn_append | ||
16904 | |||
16905 | # as_fn_arith ARG... | ||
16906 | # ------------------ | ||
16907 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
16908 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
16909 | # must be portable across $(()) and expr. | ||
16910 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
16911 | eval 'as_fn_arith () | ||
16912 | { | ||
16913 | as_val=$(( $* )) | ||
16914 | }' | ||
16915 | else | ||
16916 | as_fn_arith () | ||
16917 | { | ||
16918 | as_val=`expr "$@" || test $? -eq 1` | ||
16919 | } | ||
16920 | fi # as_fn_arith | ||
16921 | |||
16922 | |||
16923 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
16924 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
16925 | as_expr=expr | ||
16926 | else | ||
16927 | as_expr=false | ||
16928 | fi | ||
16929 | |||
16930 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
16931 | as_basename=basename | ||
16932 | else | ||
16933 | as_basename=false | ||
16934 | fi | ||
16935 | |||
16936 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
16937 | as_dirname=dirname | ||
16938 | else | ||
16939 | as_dirname=false | ||
16940 | fi | ||
16941 | |||
16942 | as_me=`$as_basename -- "$0" || | ||
16943 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
16944 | X"$0" : 'X\(//\)$' \| \ | ||
16945 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
16946 | $as_echo X/"$0" | | ||
16947 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
16948 | s//\1/ | ||
16949 | q | ||
16950 | } | ||
16951 | /^X\/\(\/\/\)$/{ | ||
16952 | s//\1/ | ||
16953 | q | ||
16954 | } | ||
16955 | /^X\/\(\/\).*/{ | ||
16956 | s//\1/ | ||
16957 | q | ||
16958 | } | ||
16959 | s/.*/./; q'` | ||
16960 | |||
16961 | # Avoid depending upon Character Ranges. | ||
16962 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
16963 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
16964 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
16965 | as_cr_digits='0123456789' | ||
16966 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
16967 | |||
16968 | ECHO_C= ECHO_N= ECHO_T= | ||
16969 | case `echo -n x` in #((((( | ||
16970 | -n*) | ||
16971 | case `echo 'xy\c'` in | ||
16972 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
16973 | xy) ECHO_C='\c';; | ||
16974 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
16975 | ECHO_T=' ';; | ||
16976 | esac;; | ||
16977 | *) | ||
16978 | ECHO_N='-n';; | ||
16979 | esac | ||
16980 | |||
16981 | rm -f conf$$ conf$$.exe conf$$.file | ||
16982 | if test -d conf$$.dir; then | ||
16983 | rm -f conf$$.dir/conf$$.file | ||
16984 | else | ||
16985 | rm -f conf$$.dir | ||
16986 | mkdir conf$$.dir 2>/dev/null | ||
16987 | fi | ||
16988 | if (echo >conf$$.file) 2>/dev/null; then | ||
16989 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
16990 | as_ln_s='ln -s' | ||
16991 | # ... but there are two gotchas: | ||
16992 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
16993 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
16994 | # In both cases, we have to default to `cp -p'. | ||
16995 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
16996 | as_ln_s='cp -p' | ||
16997 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
16998 | as_ln_s=ln | ||
16999 | else | ||
17000 | as_ln_s='cp -p' | ||
17001 | fi | ||
17002 | else | ||
17003 | as_ln_s='cp -p' | ||
17004 | fi | ||
17005 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
17006 | rmdir conf$$.dir 2>/dev/null | ||
17007 | |||
17008 | |||
17009 | # as_fn_mkdir_p | ||
17010 | # ------------- | ||
17011 | # Create "$as_dir" as a directory, including parents if necessary. | ||
17012 | as_fn_mkdir_p () | ||
17013 | { | ||
17014 | |||
17015 | case $as_dir in #( | ||
17016 | -*) as_dir=./$as_dir;; | ||
17017 | esac | ||
17018 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
17019 | as_dirs= | ||
17020 | while :; do | ||
17021 | case $as_dir in #( | ||
17022 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
17023 | *) as_qdir=$as_dir;; | ||
17024 | esac | ||
17025 | as_dirs="'$as_qdir' $as_dirs" | ||
17026 | as_dir=`$as_dirname -- "$as_dir" || | ||
17027 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17028 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
17029 | X"$as_dir" : 'X\(//\)$' \| \ | ||
17030 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
17031 | $as_echo X"$as_dir" | | ||
17032 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
17033 | s//\1/ | ||
17034 | q | ||
17035 | } | ||
17036 | /^X\(\/\/\)[^/].*/{ | ||
17037 | s//\1/ | ||
17038 | q | ||
17039 | } | ||
17040 | /^X\(\/\/\)$/{ | ||
17041 | s//\1/ | ||
17042 | q | ||
17043 | } | ||
17044 | /^X\(\/\).*/{ | ||
17045 | s//\1/ | ||
17046 | q | ||
17047 | } | ||
17048 | s/.*/./; q'` | ||
17049 | test -d "$as_dir" && break | ||
17050 | done | ||
17051 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
17052 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
17053 | |||
17054 | |||
17055 | } # as_fn_mkdir_p | ||
17056 | if mkdir -p . 2>/dev/null; then | ||
17057 | as_mkdir_p='mkdir -p "$as_dir"' | ||
17058 | else | ||
17059 | test -d ./-p && rmdir ./-p | ||
17060 | as_mkdir_p=false | ||
17061 | fi | ||
17062 | |||
17063 | if test -x / >/dev/null 2>&1; then | ||
17064 | as_test_x='test -x' | ||
17065 | else | ||
17066 | if ls -dL / >/dev/null 2>&1; then | ||
17067 | as_ls_L_option=L | ||
17068 | else | ||
17069 | as_ls_L_option= | ||
17070 | fi | ||
17071 | as_test_x=' | ||
17072 | eval sh -c '\'' | ||
17073 | if test -d "$1"; then | ||
17074 | test -d "$1/."; | ||
17075 | else | ||
17076 | case $1 in #( | ||
17077 | -*)set "./$1";; | ||
17078 | esac; | ||
17079 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
17080 | ???[sx]*):;;*)false;;esac;fi | ||
17081 | '\'' sh | ||
17082 | ' | ||
17083 | fi | ||
17084 | as_executable_p=$as_test_x | ||
17085 | |||
17086 | # Sed expression to map a string onto a valid CPP name. | ||
17087 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
17088 | |||
17089 | # Sed expression to map a string onto a valid variable name. | ||
17090 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
17091 | |||
17092 | |||
17093 | exec 6>&1 | ||
17094 | ## ----------------------------------- ## | ||
17095 | ## Main body of $CONFIG_STATUS script. ## | ||
17096 | ## ----------------------------------- ## | ||
17097 | _ASEOF | ||
17098 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
17099 | |||
17100 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17101 | # Save the log message, to keep $0 and so on meaningful, and to | ||
17102 | # report actual input values of CONFIG_FILES etc. instead of their | ||
17103 | # values after options handling. | ||
17104 | ac_log=" | ||
17105 | This file was extended by OpenSSH $as_me Portable, which was | ||
17106 | generated by GNU Autoconf 2.68. Invocation command line was | ||
17107 | |||
17108 | CONFIG_FILES = $CONFIG_FILES | ||
17109 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
17110 | CONFIG_LINKS = $CONFIG_LINKS | ||
17111 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
17112 | $ $0 $@ | ||
17113 | |||
17114 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
17115 | " | ||
17116 | |||
17117 | _ACEOF | ||
17118 | |||
17119 | case $ac_config_files in *" | ||
17120 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
17121 | esac | ||
17122 | |||
17123 | case $ac_config_headers in *" | ||
17124 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
17125 | esac | ||
17126 | |||
17127 | |||
17128 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17129 | # Files that config.status was made for. | ||
17130 | config_files="$ac_config_files" | ||
17131 | config_headers="$ac_config_headers" | ||
17132 | |||
17133 | _ACEOF | ||
17134 | |||
17135 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17136 | ac_cs_usage="\ | ||
17137 | \`$as_me' instantiates files and other configuration actions | ||
17138 | from templates according to the current configuration. Unless the files | ||
17139 | and actions are specified as TAGs, all are instantiated by default. | ||
17140 | |||
17141 | Usage: $0 [OPTION]... [TAG]... | ||
17142 | |||
17143 | -h, --help print this help, then exit | ||
17144 | -V, --version print version number and configuration settings, then exit | ||
17145 | --config print configuration, then exit | ||
17146 | -q, --quiet, --silent | ||
17147 | do not print progress messages | ||
17148 | -d, --debug don't remove temporary files | ||
17149 | --recheck update $as_me by reconfiguring in the same conditions | ||
17150 | --file=FILE[:TEMPLATE] | ||
17151 | instantiate the configuration file FILE | ||
17152 | --header=FILE[:TEMPLATE] | ||
17153 | instantiate the configuration header FILE | ||
17154 | |||
17155 | Configuration files: | ||
17156 | $config_files | ||
17157 | |||
17158 | Configuration headers: | ||
17159 | $config_headers | ||
17160 | |||
17161 | Report bugs to <openssh-unix-dev@mindrot.org>." | ||
17162 | |||
17163 | _ACEOF | ||
17164 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17165 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
17166 | ac_cs_version="\\ | ||
17167 | OpenSSH config.status Portable | ||
17168 | configured by $0, generated by GNU Autoconf 2.68, | ||
17169 | with options \\"\$ac_cs_config\\" | ||
17170 | |||
17171 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
17172 | This config.status script is free software; the Free Software Foundation | ||
17173 | gives unlimited permission to copy, distribute and modify it." | ||
17174 | |||
17175 | ac_pwd='$ac_pwd' | ||
17176 | srcdir='$srcdir' | ||
17177 | INSTALL='$INSTALL' | ||
17178 | AWK='$AWK' | ||
17179 | test -n "\$AWK" || AWK=awk | ||
17180 | _ACEOF | ||
17181 | |||
17182 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17183 | # The default lists apply if the user does not specify any file. | ||
17184 | ac_need_defaults=: | ||
17185 | while test $# != 0 | ||
17186 | do | ||
17187 | case $1 in | ||
17188 | --*=?*) | ||
17189 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
17190 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
17191 | ac_shift=: | ||
17192 | ;; | ||
17193 | --*=) | ||
17194 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
17195 | ac_optarg= | ||
17196 | ac_shift=: | ||
17197 | ;; | ||
17198 | *) | ||
17199 | ac_option=$1 | ||
17200 | ac_optarg=$2 | ||
17201 | ac_shift=shift | ||
17202 | ;; | ||
17203 | esac | ||
17204 | |||
17205 | case $ac_option in | ||
17206 | # Handling of the options. | ||
17207 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
17208 | ac_cs_recheck=: ;; | ||
17209 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
17210 | $as_echo "$ac_cs_version"; exit ;; | ||
17211 | --config | --confi | --conf | --con | --co | --c ) | ||
17212 | $as_echo "$ac_cs_config"; exit ;; | ||
17213 | --debug | --debu | --deb | --de | --d | -d ) | ||
17214 | debug=: ;; | ||
17215 | --file | --fil | --fi | --f ) | ||
17216 | $ac_shift | ||
17217 | case $ac_optarg in | ||
17218 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
17219 | '') as_fn_error $? "missing file argument" ;; | ||
17220 | esac | ||
17221 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
17222 | ac_need_defaults=false;; | ||
17223 | --header | --heade | --head | --hea ) | ||
17224 | $ac_shift | ||
17225 | case $ac_optarg in | ||
17226 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
17227 | esac | ||
17228 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
17229 | ac_need_defaults=false;; | ||
17230 | --he | --h) | ||
17231 | # Conflict between --help and --header | ||
17232 | as_fn_error $? "ambiguous option: \`$1' | ||
17233 | Try \`$0 --help' for more information.";; | ||
17234 | --help | --hel | -h ) | ||
17235 | $as_echo "$ac_cs_usage"; exit ;; | ||
17236 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
17237 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
17238 | ac_cs_silent=: ;; | ||
17239 | |||
17240 | # This is an error. | ||
17241 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
17242 | Try \`$0 --help' for more information." ;; | ||
17243 | |||
17244 | *) as_fn_append ac_config_targets " $1" | ||
17245 | ac_need_defaults=false ;; | ||
17246 | |||
17247 | esac | ||
17248 | shift | ||
17249 | done | ||
17250 | |||
17251 | ac_configure_extra_args= | ||
17252 | |||
17253 | if $ac_cs_silent; then | ||
17254 | exec 6>/dev/null | ||
17255 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
17256 | fi | ||
17257 | |||
17258 | _ACEOF | ||
17259 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17260 | if \$ac_cs_recheck; then | ||
17261 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
17262 | shift | ||
17263 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
17264 | CONFIG_SHELL='$SHELL' | ||
17265 | export CONFIG_SHELL | ||
17266 | exec "\$@" | ||
17267 | fi | ||
17268 | |||
17269 | _ACEOF | ||
17270 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17271 | exec 5>>config.log | ||
17272 | { | ||
17273 | echo | ||
17274 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
17275 | ## Running $as_me. ## | ||
17276 | _ASBOX | ||
17277 | $as_echo "$ac_log" | ||
17278 | } >&5 | ||
17279 | |||
17280 | _ACEOF | ||
17281 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17282 | _ACEOF | ||
17283 | |||
17284 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17285 | |||
17286 | # Handling of arguments. | ||
17287 | for ac_config_target in $ac_config_targets | ||
17288 | do | ||
17289 | case $ac_config_target in | ||
17290 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
17291 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
17292 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
17293 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
17294 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
17295 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
17296 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
17297 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
17298 | |||
17299 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | ||
17300 | esac | ||
17301 | done | ||
17302 | |||
17303 | |||
17304 | # If the user did not use the arguments to specify the items to instantiate, | ||
17305 | # then the envvar interface is used. Set only those that are not. | ||
17306 | # We use the long form for the default assignment because of an extremely | ||
17307 | # bizarre bug on SunOS 4.1.3. | ||
17308 | if $ac_need_defaults; then | ||
17309 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
17310 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
17311 | fi | ||
17312 | |||
17313 | # Have a temporary directory for convenience. Make it in the build tree | ||
17314 | # simply because there is no reason against having it here, and in addition, | ||
17315 | # creating and moving files from /tmp can sometimes cause problems. | ||
17316 | # Hook for its removal unless debugging. | ||
17317 | # Note that there is a small window in which the directory will not be cleaned: | ||
17318 | # after its creation but before its name has been assigned to `$tmp'. | ||
17319 | $debug || | ||
17320 | { | ||
17321 | tmp= ac_tmp= | ||
17322 | trap 'exit_status=$? | ||
17323 | : "${ac_tmp:=$tmp}" | ||
17324 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||
17325 | ' 0 | ||
17326 | trap 'as_fn_exit 1' 1 2 13 15 | ||
17327 | } | ||
17328 | # Create a (secure) tmp directory for tmp files. | ||
17329 | |||
17330 | { | ||
17331 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
17332 | test -d "$tmp" | ||
17333 | } || | ||
17334 | { | ||
17335 | tmp=./conf$$-$RANDOM | ||
17336 | (umask 077 && mkdir "$tmp") | ||
17337 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
17338 | ac_tmp=$tmp | ||
17339 | |||
17340 | # Set up the scripts for CONFIG_FILES section. | ||
17341 | # No need to generate them if there are no CONFIG_FILES. | ||
17342 | # This happens for instance with `./config.status config.h'. | ||
17343 | if test -n "$CONFIG_FILES"; then | ||
17344 | |||
17345 | |||
17346 | ac_cr=`echo X | tr X '\015'` | ||
17347 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
17348 | # But we know of no other shell where ac_cr would be empty at this | ||
17349 | # point, so we can use a bashism as a fallback. | ||
17350 | if test "x$ac_cr" = x; then | ||
17351 | eval ac_cr=\$\'\\r\' | ||
17352 | fi | ||
17353 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
17354 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
17355 | ac_cs_awk_cr='\\r' | ||
17356 | else | ||
17357 | ac_cs_awk_cr=$ac_cr | ||
17358 | fi | ||
17359 | |||
17360 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | ||
17361 | _ACEOF | ||
17362 | |||
17363 | |||
17364 | { | ||
17365 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
17366 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
17367 | echo "_ACEOF" | ||
17368 | } >conf$$subs.sh || | ||
17369 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
17370 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
17371 | ac_delim='%!_!# ' | ||
17372 | for ac_last_try in false false false false false :; do | ||
17373 | . ./conf$$subs.sh || | ||
17374 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
17375 | |||
17376 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
17377 | if test $ac_delim_n = $ac_delim_num; then | ||
17378 | break | ||
17379 | elif $ac_last_try; then | ||
17380 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
17381 | else | ||
17382 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
17383 | fi | ||
17384 | done | ||
17385 | rm -f conf$$subs.sh | ||
17386 | |||
17387 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17388 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | ||
17389 | _ACEOF | ||
17390 | sed -n ' | ||
17391 | h | ||
17392 | s/^/S["/; s/!.*/"]=/ | ||
17393 | p | ||
17394 | g | ||
17395 | s/^[^!]*!// | ||
17396 | :repl | ||
17397 | t repl | ||
17398 | s/'"$ac_delim"'$// | ||
17399 | t delim | ||
17400 | :nl | ||
17401 | h | ||
17402 | s/\(.\{148\}\)..*/\1/ | ||
17403 | t more1 | ||
17404 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
17405 | p | ||
17406 | n | ||
17407 | b repl | ||
17408 | :more1 | ||
17409 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
17410 | p | ||
17411 | g | ||
17412 | s/.\{148\}// | ||
17413 | t nl | ||
17414 | :delim | ||
17415 | h | ||
17416 | s/\(.\{148\}\)..*/\1/ | ||
17417 | t more2 | ||
17418 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
17419 | p | ||
17420 | b | ||
17421 | :more2 | ||
17422 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
17423 | p | ||
17424 | g | ||
17425 | s/.\{148\}// | ||
17426 | t delim | ||
17427 | ' <conf$$subs.awk | sed ' | ||
17428 | /^[^""]/{ | ||
17429 | N | ||
17430 | s/\n// | ||
17431 | } | ||
17432 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
17433 | rm -f conf$$subs.awk | ||
17434 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17435 | _ACAWK | ||
17436 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | ||
17437 | for (key in S) S_is_set[key] = 1 | ||
17438 | FS = "" | ||
17439 | |||
17440 | } | ||
17441 | { | ||
17442 | line = $ 0 | ||
17443 | nfields = split(line, field, "@") | ||
17444 | substed = 0 | ||
17445 | len = length(field[1]) | ||
17446 | for (i = 2; i < nfields; i++) { | ||
17447 | key = field[i] | ||
17448 | keylen = length(key) | ||
17449 | if (S_is_set[key]) { | ||
17450 | value = S[key] | ||
17451 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
17452 | len += length(value) + length(field[++i]) | ||
17453 | substed = 1 | ||
17454 | } else | ||
17455 | len += 1 + keylen | ||
17456 | } | ||
17457 | |||
17458 | print line | ||
17459 | } | ||
17460 | |||
17461 | _ACAWK | ||
17462 | _ACEOF | ||
17463 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17464 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
17465 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
17466 | else | ||
17467 | cat | ||
17468 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | ||
17469 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
17470 | _ACEOF | ||
17471 | |||
17472 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
17473 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
17474 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
17475 | # (actually we leave an empty line to preserve line numbers). | ||
17476 | if test "x$srcdir" = x.; then | ||
17477 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
17478 | h | ||
17479 | s/// | ||
17480 | s/^/:/ | ||
17481 | s/[ ]*$/:/ | ||
17482 | s/:\$(srcdir):/:/g | ||
17483 | s/:\${srcdir}:/:/g | ||
17484 | s/:@srcdir@:/:/g | ||
17485 | s/^:*// | ||
17486 | s/:*$// | ||
17487 | x | ||
17488 | s/\(=[ ]*\).*/\1/ | ||
17489 | G | ||
17490 | s/\n// | ||
17491 | s/^[^=]*=[ ]*$// | ||
17492 | }' | ||
17493 | fi | ||
17494 | |||
17495 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17496 | fi # test -n "$CONFIG_FILES" | ||
17497 | |||
17498 | # Set up the scripts for CONFIG_HEADERS section. | ||
17499 | # No need to generate them if there are no CONFIG_HEADERS. | ||
17500 | # This happens for instance with `./config.status Makefile'. | ||
17501 | if test -n "$CONFIG_HEADERS"; then | ||
17502 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | ||
17503 | BEGIN { | ||
17504 | _ACEOF | ||
17505 | |||
17506 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
17507 | # here-document in config.status, that substitutes the proper values into | ||
17508 | # config.h.in to produce config.h. | ||
17509 | |||
17510 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
17511 | # handling of long lines. | ||
17512 | ac_delim='%!_!# ' | ||
17513 | for ac_last_try in false false :; do | ||
17514 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | ||
17515 | if test -z "$ac_tt"; then | ||
17516 | break | ||
17517 | elif $ac_last_try; then | ||
17518 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
17519 | else | ||
17520 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
17521 | fi | ||
17522 | done | ||
17523 | |||
17524 | # For the awk script, D is an array of macro values keyed by name, | ||
17525 | # likewise P contains macro parameters if any. Preserve backslash | ||
17526 | # newline sequences. | ||
17527 | |||
17528 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
17529 | sed -n ' | ||
17530 | s/.\{148\}/&'"$ac_delim"'/g | ||
17531 | t rset | ||
17532 | :rset | ||
17533 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
17534 | t def | ||
17535 | d | ||
17536 | :def | ||
17537 | s/\\$// | ||
17538 | t bsnl | ||
17539 | s/["\\]/\\&/g | ||
17540 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
17541 | D["\1"]=" \3"/p | ||
17542 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
17543 | d | ||
17544 | :bsnl | ||
17545 | s/["\\]/\\&/g | ||
17546 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
17547 | D["\1"]=" \3\\\\\\n"\\/p | ||
17548 | t cont | ||
17549 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
17550 | t cont | ||
17551 | d | ||
17552 | :cont | ||
17553 | n | ||
17554 | s/.\{148\}/&'"$ac_delim"'/g | ||
17555 | t clear | ||
17556 | :clear | ||
17557 | s/\\$// | ||
17558 | t bsnlc | ||
17559 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
17560 | d | ||
17561 | :bsnlc | ||
17562 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
17563 | b cont | ||
17564 | ' <confdefs.h | sed ' | ||
17565 | s/'"$ac_delim"'/"\\\ | ||
17566 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
17567 | |||
17568 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17569 | for (key in D) D_is_set[key] = 1 | ||
17570 | FS = "" | ||
17571 | } | ||
17572 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
17573 | line = \$ 0 | ||
17574 | split(line, arg, " ") | ||
17575 | if (arg[1] == "#") { | ||
17576 | defundef = arg[2] | ||
17577 | mac1 = arg[3] | ||
17578 | } else { | ||
17579 | defundef = substr(arg[1], 2) | ||
17580 | mac1 = arg[2] | ||
17581 | } | ||
17582 | split(mac1, mac2, "(") #) | ||
17583 | macro = mac2[1] | ||
17584 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
17585 | if (D_is_set[macro]) { | ||
17586 | # Preserve the white space surrounding the "#". | ||
17587 | print prefix "define", macro P[macro] D[macro] | ||
17588 | next | ||
17589 | } else { | ||
17590 | # Replace #undef with comments. This is necessary, for example, | ||
17591 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
17592 | # on some systems where configure will not decide to define it. | ||
17593 | if (defundef == "undef") { | ||
17594 | print "/*", prefix defundef, macro, "*/" | ||
17595 | next | ||
17596 | } | ||
17597 | } | ||
17598 | } | ||
17599 | { print } | ||
17600 | _ACAWK | ||
17601 | _ACEOF | ||
17602 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17603 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
17604 | fi # test -n "$CONFIG_HEADERS" | ||
17605 | |||
17606 | |||
17607 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||
17608 | shift | ||
17609 | for ac_tag | ||
17610 | do | ||
17611 | case $ac_tag in | ||
17612 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
17613 | esac | ||
17614 | case $ac_mode$ac_tag in | ||
17615 | :[FHL]*:*);; | ||
17616 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | ||
17617 | :[FH]-) ac_tag=-:-;; | ||
17618 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
17619 | esac | ||
17620 | ac_save_IFS=$IFS | ||
17621 | IFS=: | ||
17622 | set x $ac_tag | ||
17623 | IFS=$ac_save_IFS | ||
17624 | shift | ||
17625 | ac_file=$1 | ||
17626 | shift | ||
17627 | |||
17628 | case $ac_mode in | ||
17629 | :L) ac_source=$1;; | ||
17630 | :[FH]) | ||
17631 | ac_file_inputs= | ||
17632 | for ac_f | ||
17633 | do | ||
17634 | case $ac_f in | ||
17635 | -) ac_f="$ac_tmp/stdin";; | ||
17636 | *) # Look for the file first in the build tree, then in the source tree | ||
17637 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
17638 | # because $ac_f cannot contain `:'. | ||
17639 | test -f "$ac_f" || | ||
17640 | case $ac_f in | ||
17641 | [\\/$]*) false;; | ||
17642 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
17643 | esac || | ||
17644 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | ||
17645 | esac | ||
17646 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
17647 | as_fn_append ac_file_inputs " '$ac_f'" | ||
17648 | done | ||
17649 | |||
17650 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17651 | # use $as_me), people would be surprised to read: | ||
17652 | # /* config.h. Generated by config.status. */ | ||
17653 | configure_input='Generated from '` | ||
17654 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
17655 | `' by configure.' | ||
17656 | if test x"$ac_file" != x-; then | ||
17657 | configure_input="$ac_file. $configure_input" | ||
17658 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
17659 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
17660 | fi | ||
17661 | # Neutralize special characters interpreted by sed in replacement strings. | ||
17662 | case $configure_input in #( | ||
17663 | *\&* | *\|* | *\\* ) | ||
17664 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
17665 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
17666 | *) ac_sed_conf_input=$configure_input;; | ||
17667 | esac | ||
17668 | |||
17669 | case $ac_tag in | ||
17670 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | ||
17671 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
17672 | esac | ||
17673 | ;; | ||
17674 | esac | ||
17675 | |||
17676 | ac_dir=`$as_dirname -- "$ac_file" || | ||
17677 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17678 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
17679 | X"$ac_file" : 'X\(//\)$' \| \ | ||
17680 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
17681 | $as_echo X"$ac_file" | | ||
17682 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
17683 | s//\1/ | ||
17684 | q | ||
17685 | } | ||
17686 | /^X\(\/\/\)[^/].*/{ | ||
17687 | s//\1/ | ||
17688 | q | ||
17689 | } | ||
17690 | /^X\(\/\/\)$/{ | ||
17691 | s//\1/ | ||
17692 | q | ||
17693 | } | ||
17694 | /^X\(\/\).*/{ | ||
17695 | s//\1/ | ||
17696 | q | ||
17697 | } | ||
17698 | s/.*/./; q'` | ||
17699 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
17700 | ac_builddir=. | ||
17701 | |||
17702 | case "$ac_dir" in | ||
17703 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
17704 | *) | ||
17705 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
17706 | # A ".." for each directory in $ac_dir_suffix. | ||
17707 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
17708 | case $ac_top_builddir_sub in | ||
17709 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
17710 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
17711 | esac ;; | ||
17712 | esac | ||
17713 | ac_abs_top_builddir=$ac_pwd | ||
17714 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
17715 | # for backward compatibility: | ||
17716 | ac_top_builddir=$ac_top_build_prefix | ||
17717 | |||
17718 | case $srcdir in | ||
17719 | .) # We are building in place. | ||
17720 | ac_srcdir=. | ||
17721 | ac_top_srcdir=$ac_top_builddir_sub | ||
17722 | ac_abs_top_srcdir=$ac_pwd ;; | ||
17723 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
17724 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
17725 | ac_top_srcdir=$srcdir | ||
17726 | ac_abs_top_srcdir=$srcdir ;; | ||
17727 | *) # Relative name. | ||
17728 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
17729 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
17730 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
17731 | esac | ||
17732 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
17733 | |||
17734 | |||
17735 | case $ac_mode in | ||
17736 | :F) | ||
17737 | # | ||
17738 | # CONFIG_FILE | ||
17739 | # | ||
17740 | |||
17741 | case $INSTALL in | ||
17742 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
17743 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
17744 | esac | ||
17745 | _ACEOF | ||
17746 | |||
17747 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17748 | # If the template does not know about datarootdir, expand it. | ||
17749 | # FIXME: This hack should be removed a few years after 2.60. | ||
17750 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
17751 | ac_sed_dataroot=' | ||
17752 | /datarootdir/ { | ||
17753 | p | ||
17754 | q | ||
17755 | } | ||
17756 | /@datadir@/p | ||
17757 | /@docdir@/p | ||
17758 | /@infodir@/p | ||
17759 | /@localedir@/p | ||
17760 | /@mandir@/p' | ||
17761 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
17762 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
17763 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
17764 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
17765 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
17766 | _ACEOF | ||
17767 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17768 | ac_datarootdir_hack=' | ||
17769 | s&@datadir@&$datadir&g | ||
17770 | s&@docdir@&$docdir&g | ||
17771 | s&@infodir@&$infodir&g | ||
17772 | s&@localedir@&$localedir&g | ||
17773 | s&@mandir@&$mandir&g | ||
17774 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
17775 | esac | ||
17776 | _ACEOF | ||
17777 | |||
17778 | # Neutralize VPATH when `$srcdir' = `.'. | ||
17779 | # Shell code in configure.ac might set extrasub. | ||
17780 | # FIXME: do we really want to maintain this feature? | ||
17781 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17782 | ac_sed_extra="$ac_vpsub | ||
17783 | $extrasub | ||
17784 | _ACEOF | ||
17785 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17786 | :t | ||
17787 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
17788 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
17789 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
17790 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
17791 | s&@srcdir@&$ac_srcdir&;t t | ||
17792 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
17793 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
17794 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
17795 | s&@builddir@&$ac_builddir&;t t | ||
17796 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
17797 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
17798 | s&@INSTALL@&$ac_INSTALL&;t t | ||
17799 | $ac_datarootdir_hack | ||
17800 | " | ||
17801 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | ||
17802 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
17803 | |||
17804 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
17805 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | ||
17806 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||
17807 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||
17808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
17809 | which seems to be undefined. Please make sure it is defined" >&5 | ||
17810 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
17811 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
17812 | |||
17813 | rm -f "$ac_tmp/stdin" | ||
17814 | case $ac_file in | ||
17815 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | ||
17816 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||
17817 | esac \ | ||
17818 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
17819 | ;; | ||
17820 | :H) | ||
17821 | # | ||
17822 | # CONFIG_HEADER | ||
17823 | # | ||
17824 | if test x"$ac_file" != x-; then | ||
17825 | { | ||
17826 | $as_echo "/* $configure_input */" \ | ||
17827 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | ||
17828 | } >"$ac_tmp/config.h" \ | ||
17829 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
17830 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | ||
17831 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
17832 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
17833 | else | ||
17834 | rm -f "$ac_file" | ||
17835 | mv "$ac_tmp/config.h" "$ac_file" \ | ||
17836 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
17837 | fi | ||
17838 | else | ||
17839 | $as_echo "/* $configure_input */" \ | ||
17840 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | ||
17841 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
17842 | fi | ||
17843 | ;; | ||
17844 | |||
17845 | |||
17846 | esac | ||
17847 | |||
17848 | done # for ac_tag | ||
17849 | |||
17850 | |||
17851 | as_fn_exit 0 | ||
17852 | _ACEOF | ||
17853 | ac_clean_files=$ac_clean_files_save | ||
17854 | |||
17855 | test $ac_write_fail = 0 || | ||
17856 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
17857 | |||
17858 | |||
17859 | # configure is writing to config.log, and then calls config.status. | ||
17860 | # config.status does its own redirection, appending to config.log. | ||
17861 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
17862 | # by configure, so config.status won't be able to write to it; its | ||
17863 | # output is simply discarded. So we exec the FD to /dev/null, | ||
17864 | # effectively closing config.log, so it can be properly (re)opened and | ||
17865 | # appended to by config.status. When coming back to configure, we | ||
17866 | # need to make the FD available again. | ||
17867 | if test "$no_create" != yes; then | ||
17868 | ac_cs_success=: | ||
17869 | ac_config_status_args= | ||
17870 | test "$silent" = yes && | ||
17871 | ac_config_status_args="$ac_config_status_args --quiet" | ||
17872 | exec 5>/dev/null | ||
17873 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
17874 | exec 5>>config.log | ||
17875 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
17876 | # would make configure fail if this is the last instruction. | ||
17877 | $ac_cs_success || as_fn_exit 1 | ||
17878 | fi | ||
17879 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
17880 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
17881 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
17882 | fi | ||
17883 | |||
17884 | |||
17885 | # Print summary of options | ||
17886 | |||
17887 | # Someone please show me a better way :) | ||
17888 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
17889 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
17890 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
17891 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
17892 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
17893 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
17894 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
17895 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
17896 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
17897 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
17898 | |||
17899 | echo "" | ||
17900 | echo "OpenSSH has been configured with the following options:" | ||
17901 | echo " User binaries: $B" | ||
17902 | echo " System binaries: $C" | ||
17903 | echo " Configuration files: $D" | ||
17904 | echo " Askpass program: $E" | ||
17905 | echo " Manual pages: $F" | ||
17906 | echo " PID file: $G" | ||
17907 | echo " Privilege separation chroot path: $H" | ||
17908 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
17909 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
17910 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
17911 | else | ||
17912 | echo " sshd default user PATH: $I" | ||
17913 | if test ! -z "$external_path_file"; then | ||
17914 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
17915 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
17916 | fi | ||
17917 | fi | ||
17918 | if test ! -z "$superuser_path" ; then | ||
17919 | echo " sshd superuser user PATH: $J" | ||
17920 | fi | ||
17921 | echo " Manpage format: $MANTYPE" | ||
17922 | echo " PAM support: $PAM_MSG" | ||
17923 | echo " OSF SIA support: $SIA_MSG" | ||
17924 | echo " KerberosV support: $KRB5_MSG" | ||
17925 | echo " SELinux support: $SELINUX_MSG" | ||
17926 | echo " Smartcard support: $SCARD_MSG" | ||
17927 | echo " S/KEY support: $SKEY_MSG" | ||
17928 | echo " TCP Wrappers support: $TCPW_MSG" | ||
17929 | echo " MD5 password support: $MD5_MSG" | ||
17930 | echo " libedit support: $LIBEDIT_MSG" | ||
17931 | echo " Solaris process contract support: $SPC_MSG" | ||
17932 | echo " Solaris project support: $SP_MSG" | ||
17933 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
17934 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
17935 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
17936 | echo " Random number source: $RAND_MSG" | ||
17937 | echo " Privsep sandbox style: $SANDBOX_STYLE" | ||
17938 | |||
17939 | echo "" | ||
17940 | |||
17941 | echo " Host: ${host}" | ||
17942 | echo " Compiler: ${CC}" | ||
17943 | echo " Compiler flags: ${CFLAGS}" | ||
17944 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
17945 | echo " Linker flags: ${LDFLAGS}" | ||
17946 | echo " Libraries: ${LIBS}" | ||
17947 | if test ! -z "${SSHDLIBS}"; then | ||
17948 | echo " +for sshd: ${SSHDLIBS}" | ||
17949 | fi | ||
17950 | if test ! -z "${SSHLIBS}"; then | ||
17951 | echo " +for ssh: ${SSHLIBS}" | ||
17952 | fi | ||
17953 | |||
17954 | echo "" | ||
17955 | |||
17956 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
17957 | echo "SVR4 style packages are supported with \"make package\"" | ||
17958 | echo "" | ||
17959 | fi | ||
17960 | |||
17961 | if test "x$PAM_MSG" = "xyes" ; then | ||
17962 | echo "PAM is enabled. You may need to install a PAM control file " | ||
17963 | echo "for sshd, otherwise password authentication may fail. " | ||
17964 | echo "Example PAM control files can be found in the contrib/ " | ||
17965 | echo "subdirectory" | ||
17966 | echo "" | ||
17967 | fi | ||
17968 | |||
17969 | if test ! -z "$NO_PEERCHECK" ; then | ||
17970 | echo "WARNING: the operating system that you are using does not" | ||
17971 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
17972 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
17973 | echo "enforce security checks to prevent unauthorised connections to" | ||
17974 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
17975 | echo "user can connect to your agent." | ||
17976 | echo "" | ||
17977 | fi | ||
17978 | |||
17979 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
17980 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
17981 | echo "See the Solaris section in README.platform for details." | ||
17982 | fi | ||