diff options
author | Colin Watson <cjwatson@debian.org> | 2005-03-10 00:24:57 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-03-10 00:24:57 +0000 |
commit | 5d05471f6657646d1d6500c7c43134462c407ee6 (patch) | |
tree | c142ff8a5b1fcb1c671ba8c6f023746191124d39 /configure | |
parent | 485bab886137bbf8b7ec8df82bd66dc6e5654371 (diff) | |
parent | ebd2ce335af5861020c79fddb1ae35c03bf036cf (diff) |
Import OpenSSH 4.0p1.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26215 |
1 files changed, 26215 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..1bf7b0b0b --- /dev/null +++ b/configure | |||
@@ -0,0 +1,26215 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.59 for OpenSSH Portable. | ||
4 | # | ||
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | ||
6 | # This configure script is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy, distribute and modify it. | ||
8 | ## --------------------- ## | ||
9 | ## M4sh Initialization. ## | ||
10 | ## --------------------- ## | ||
11 | |||
12 | # Be Bourne compatible | ||
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
14 | emulate sh | ||
15 | NULLCMD=: | ||
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
17 | # is contrary to our usage. Disable this feature. | ||
18 | alias -g '${1+"$@"}'='"$@"' | ||
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
20 | set -o posix | ||
21 | fi | ||
22 | DUALCASE=1; export DUALCASE # for MKS sh | ||
23 | |||
24 | # Support unset when possible. | ||
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
26 | as_unset=unset | ||
27 | else | ||
28 | as_unset=false | ||
29 | fi | ||
30 | |||
31 | |||
32 | # Work around bugs in pre-3.0 UWIN ksh. | ||
33 | $as_unset ENV MAIL MAILPATH | ||
34 | PS1='$ ' | ||
35 | PS2='> ' | ||
36 | PS4='+ ' | ||
37 | |||
38 | # NLS nuisances. | ||
39 | for as_var in \ | ||
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
42 | LC_TELEPHONE LC_TIME | ||
43 | do | ||
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
45 | eval $as_var=C; export $as_var | ||
46 | else | ||
47 | $as_unset $as_var | ||
48 | fi | ||
49 | done | ||
50 | |||
51 | # Required to use basename. | ||
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
53 | as_expr=expr | ||
54 | else | ||
55 | as_expr=false | ||
56 | fi | ||
57 | |||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
59 | as_basename=basename | ||
60 | else | ||
61 | as_basename=false | ||
62 | fi | ||
63 | |||
64 | |||
65 | # Name of the executable. | ||
66 | as_me=`$as_basename "$0" || | ||
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
68 | X"$0" : 'X\(//\)$' \| \ | ||
69 | X"$0" : 'X\(/\)$' \| \ | ||
70 | . : '\(.\)' 2>/dev/null || | ||
71 | echo X/"$0" | | ||
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
74 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
75 | s/.*/./; q'` | ||
76 | |||
77 | |||
78 | # PATH needs CR, and LINENO needs CR and PATH. | ||
79 | # Avoid depending upon Character Ranges. | ||
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
83 | as_cr_digits='0123456789' | ||
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
85 | |||
86 | # The user is always right. | ||
87 | if test "${PATH_SEPARATOR+set}" != set; then | ||
88 | echo "#! /bin/sh" >conf$$.sh | ||
89 | echo "exit 0" >>conf$$.sh | ||
90 | chmod +x conf$$.sh | ||
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
92 | PATH_SEPARATOR=';' | ||
93 | else | ||
94 | PATH_SEPARATOR=: | ||
95 | fi | ||
96 | rm -f conf$$.sh | ||
97 | fi | ||
98 | |||
99 | |||
100 | as_lineno_1=$LINENO | ||
101 | as_lineno_2=$LINENO | ||
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
105 | # Find who we are. Look in the path if we contain no path at all | ||
106 | # relative or not. | ||
107 | case $0 in | ||
108 | *[\\/]* ) as_myself=$0 ;; | ||
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
110 | for as_dir in $PATH | ||
111 | do | ||
112 | IFS=$as_save_IFS | ||
113 | test -z "$as_dir" && as_dir=. | ||
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
115 | done | ||
116 | |||
117 | ;; | ||
118 | esac | ||
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
120 | # in which case we are not to be found in the path. | ||
121 | if test "x$as_myself" = x; then | ||
122 | as_myself=$0 | ||
123 | fi | ||
124 | if test ! -f "$as_myself"; then | ||
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
126 | { (exit 1); exit 1; }; } | ||
127 | fi | ||
128 | case $CONFIG_SHELL in | ||
129 | '') | ||
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
132 | do | ||
133 | IFS=$as_save_IFS | ||
134 | test -z "$as_dir" && as_dir=. | ||
135 | for as_base in sh bash ksh sh5; do | ||
136 | case $as_dir in | ||
137 | /*) | ||
138 | if ("$as_dir/$as_base" -c ' | ||
139 | as_lineno_1=$LINENO | ||
140 | as_lineno_2=$LINENO | ||
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
146 | CONFIG_SHELL=$as_dir/$as_base | ||
147 | export CONFIG_SHELL | ||
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
149 | fi;; | ||
150 | esac | ||
151 | done | ||
152 | done | ||
153 | ;; | ||
154 | esac | ||
155 | |||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
157 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
158 | # line-number line before each line; the second 'sed' does the real | ||
159 | # work. The second script uses 'N' to pair each line-number line | ||
160 | # with the numbered line, and appends trailing '-' during | ||
161 | # substitution so that $LINENO is not a special case at line end. | ||
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
164 | sed '=' <$as_myself | | ||
165 | sed ' | ||
166 | N | ||
167 | s,$,-, | ||
168 | : loop | ||
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
170 | t loop | ||
171 | s,-$,, | ||
172 | s,^['$as_cr_digits']*\n,, | ||
173 | ' >$as_me.lineno && | ||
174 | chmod +x $as_me.lineno || | ||
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
176 | { (exit 1); exit 1; }; } | ||
177 | |||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
179 | # (the dirname of $[0] is not the place where we might find the | ||
180 | # original and so on. Autoconf is especially sensible to this). | ||
181 | . ./$as_me.lineno | ||
182 | # Exit status is that of the last command. | ||
183 | exit | ||
184 | } | ||
185 | |||
186 | |||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
188 | *c*,-n*) ECHO_N= ECHO_C=' | ||
189 | ' ECHO_T=' ' ;; | ||
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
192 | esac | ||
193 | |||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
195 | as_expr=expr | ||
196 | else | ||
197 | as_expr=false | ||
198 | fi | ||
199 | |||
200 | rm -f conf$$ conf$$.exe conf$$.file | ||
201 | echo >conf$$.file | ||
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
203 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
205 | if test -f conf$$.exe; then | ||
206 | # Don't use ln at all; we don't have any links | ||
207 | as_ln_s='cp -p' | ||
208 | else | ||
209 | as_ln_s='ln -s' | ||
210 | fi | ||
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
212 | as_ln_s=ln | ||
213 | else | ||
214 | as_ln_s='cp -p' | ||
215 | fi | ||
216 | rm -f conf$$ conf$$.exe conf$$.file | ||
217 | |||
218 | if mkdir -p . 2>/dev/null; then | ||
219 | as_mkdir_p=: | ||
220 | else | ||
221 | test -d ./-p && rmdir ./-p | ||
222 | as_mkdir_p=false | ||
223 | fi | ||
224 | |||
225 | as_executable_p="test -f" | ||
226 | |||
227 | # Sed expression to map a string onto a valid CPP name. | ||
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
229 | |||
230 | # Sed expression to map a string onto a valid variable name. | ||
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
232 | |||
233 | |||
234 | # IFS | ||
235 | # We need space, tab and new line, in precisely that order. | ||
236 | as_nl=' | ||
237 | ' | ||
238 | IFS=" $as_nl" | ||
239 | |||
240 | # CDPATH. | ||
241 | $as_unset CDPATH | ||
242 | |||
243 | |||
244 | # Name of the host. | ||
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
246 | # so uname gets run too. | ||
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
248 | |||
249 | exec 6>&1 | ||
250 | |||
251 | # | ||
252 | # Initializations. | ||
253 | # | ||
254 | ac_default_prefix=/usr/local | ||
255 | ac_config_libobj_dir=. | ||
256 | cross_compiling=no | ||
257 | subdirs= | ||
258 | MFLAGS= | ||
259 | MAKEFLAGS= | ||
260 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
261 | |||
262 | # Maximum number of lines to put in a shell here document. | ||
263 | # This variable seems obsolete. It should probably be removed, and | ||
264 | # only ac_max_sed_lines should be used. | ||
265 | : ${ac_max_here_lines=38} | ||
266 | |||
267 | # Identity of this package. | ||
268 | PACKAGE_NAME='OpenSSH' | ||
269 | PACKAGE_TARNAME='openssh' | ||
270 | PACKAGE_VERSION='Portable' | ||
271 | PACKAGE_STRING='OpenSSH Portable' | ||
272 | PACKAGE_BUGREPORT='' | ||
273 | |||
274 | ac_unique_file="ssh.c" | ||
275 | # Factoring default headers for most tests. | ||
276 | ac_includes_default="\ | ||
277 | #include <stdio.h> | ||
278 | #if HAVE_SYS_TYPES_H | ||
279 | # include <sys/types.h> | ||
280 | #endif | ||
281 | #if HAVE_SYS_STAT_H | ||
282 | # include <sys/stat.h> | ||
283 | #endif | ||
284 | #if STDC_HEADERS | ||
285 | # include <stdlib.h> | ||
286 | # include <stddef.h> | ||
287 | #else | ||
288 | # if HAVE_STDLIB_H | ||
289 | # include <stdlib.h> | ||
290 | # endif | ||
291 | #endif | ||
292 | #if HAVE_STRING_H | ||
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
294 | # include <memory.h> | ||
295 | # endif | ||
296 | # include <string.h> | ||
297 | #endif | ||
298 | #if HAVE_STRINGS_H | ||
299 | # include <strings.h> | ||
300 | #endif | ||
301 | #if HAVE_INTTYPES_H | ||
302 | # include <inttypes.h> | ||
303 | #else | ||
304 | # if HAVE_STDINT_H | ||
305 | # include <stdint.h> | ||
306 | # endif | ||
307 | #endif | ||
308 | #if HAVE_UNISTD_H | ||
309 | # include <unistd.h> | ||
310 | #endif" | ||
311 | |||
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os AWK CPP RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR CAT KILL PERL SED ENT TEST_MINUS_S_SH SH TEST_SHELL PATH_GROUPADD_PROG PATH_USERADD_PROG MAKE_PACKAGE_SUPPORTED LOGIN_PROGRAM_FALLBACK PATH_PASSWD_PROG LD EGREP LIBWRAP LIBEDIT LIBPAM INSTALL_SSH_RAND_HELPER SSH_PRIVSEP_USER PROG_LS PROG_NETSTAT PROG_ARP PROG_IFCONFIG PROG_JSTAT PROG_PS PROG_SAR PROG_W PROG_WHO PROG_LAST PROG_LASTLOG PROG_DF PROG_VMSTAT PROG_UPTIME PROG_IPCS PROG_TAIL INSTALL_SSH_PRNG_CMDS OPENSC_CONFIG PRIVSEP_PATH xauth_path STRIP_OPT XAUTH_PATH NROFF MANTYPE mansubdir user_path piddir LIBOBJS LTLIBOBJS' | ||
313 | ac_subst_files='' | ||
314 | |||
315 | # Initialize some variables set by options. | ||
316 | ac_init_help= | ||
317 | ac_init_version=false | ||
318 | # The variables have the same names as the options, with | ||
319 | # dashes changed to underlines. | ||
320 | cache_file=/dev/null | ||
321 | exec_prefix=NONE | ||
322 | no_create= | ||
323 | no_recursion= | ||
324 | prefix=NONE | ||
325 | program_prefix=NONE | ||
326 | program_suffix=NONE | ||
327 | program_transform_name=s,x,x, | ||
328 | silent= | ||
329 | site= | ||
330 | srcdir= | ||
331 | verbose= | ||
332 | x_includes=NONE | ||
333 | x_libraries=NONE | ||
334 | |||
335 | # Installation directory options. | ||
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
337 | # and all the variables that are supposed to be based on exec_prefix | ||
338 | # by default will actually change. | ||
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
340 | bindir='${exec_prefix}/bin' | ||
341 | sbindir='${exec_prefix}/sbin' | ||
342 | libexecdir='${exec_prefix}/libexec' | ||
343 | datadir='${prefix}/share' | ||
344 | sysconfdir='${prefix}/etc' | ||
345 | sharedstatedir='${prefix}/com' | ||
346 | localstatedir='${prefix}/var' | ||
347 | libdir='${exec_prefix}/lib' | ||
348 | includedir='${prefix}/include' | ||
349 | oldincludedir='/usr/include' | ||
350 | infodir='${prefix}/info' | ||
351 | mandir='${prefix}/man' | ||
352 | |||
353 | ac_prev= | ||
354 | for ac_option | ||
355 | do | ||
356 | # If the previous option needs an argument, assign it. | ||
357 | if test -n "$ac_prev"; then | ||
358 | eval "$ac_prev=\$ac_option" | ||
359 | ac_prev= | ||
360 | continue | ||
361 | fi | ||
362 | |||
363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
364 | |||
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
366 | |||
367 | case $ac_option in | ||
368 | |||
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
370 | ac_prev=bindir ;; | ||
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
372 | bindir=$ac_optarg ;; | ||
373 | |||
374 | -build | --build | --buil | --bui | --bu) | ||
375 | ac_prev=build_alias ;; | ||
376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
377 | build_alias=$ac_optarg ;; | ||
378 | |||
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
381 | ac_prev=cache_file ;; | ||
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
384 | cache_file=$ac_optarg ;; | ||
385 | |||
386 | --config-cache | -C) | ||
387 | cache_file=config.cache ;; | ||
388 | |||
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
390 | ac_prev=datadir ;; | ||
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
392 | | --da=*) | ||
393 | datadir=$ac_optarg ;; | ||
394 | |||
395 | -disable-* | --disable-*) | ||
396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
397 | # Reject names that are not valid shell variable names. | ||
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
400 | { (exit 1); exit 1; }; } | ||
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
402 | eval "enable_$ac_feature=no" ;; | ||
403 | |||
404 | -enable-* | --enable-*) | ||
405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
406 | # Reject names that are not valid shell variable names. | ||
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
409 | { (exit 1); exit 1; }; } | ||
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
411 | case $ac_option in | ||
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
413 | *) ac_optarg=yes ;; | ||
414 | esac | ||
415 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
416 | |||
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
419 | | --exec | --exe | --ex) | ||
420 | ac_prev=exec_prefix ;; | ||
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
423 | | --exec=* | --exe=* | --ex=*) | ||
424 | exec_prefix=$ac_optarg ;; | ||
425 | |||
426 | -gas | --gas | --ga | --g) | ||
427 | # Obsolete; use --with-gas. | ||
428 | with_gas=yes ;; | ||
429 | |||
430 | -help | --help | --hel | --he | -h) | ||
431 | ac_init_help=long ;; | ||
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
433 | ac_init_help=recursive ;; | ||
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
435 | ac_init_help=short ;; | ||
436 | |||
437 | -host | --host | --hos | --ho) | ||
438 | ac_prev=host_alias ;; | ||
439 | -host=* | --host=* | --hos=* | --ho=*) | ||
440 | host_alias=$ac_optarg ;; | ||
441 | |||
442 | -includedir | --includedir | --includedi | --included | --include \ | ||
443 | | --includ | --inclu | --incl | --inc) | ||
444 | ac_prev=includedir ;; | ||
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
447 | includedir=$ac_optarg ;; | ||
448 | |||
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
450 | ac_prev=infodir ;; | ||
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
452 | infodir=$ac_optarg ;; | ||
453 | |||
454 | -libdir | --libdir | --libdi | --libd) | ||
455 | ac_prev=libdir ;; | ||
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
457 | libdir=$ac_optarg ;; | ||
458 | |||
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
460 | | --libexe | --libex | --libe) | ||
461 | ac_prev=libexecdir ;; | ||
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
463 | | --libexe=* | --libex=* | --libe=*) | ||
464 | libexecdir=$ac_optarg ;; | ||
465 | |||
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
467 | | --localstate | --localstat | --localsta | --localst \ | ||
468 | | --locals | --local | --loca | --loc | --lo) | ||
469 | ac_prev=localstatedir ;; | ||
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
473 | localstatedir=$ac_optarg ;; | ||
474 | |||
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
476 | ac_prev=mandir ;; | ||
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
478 | mandir=$ac_optarg ;; | ||
479 | |||
480 | -nfp | --nfp | --nf) | ||
481 | # Obsolete; use --without-fp. | ||
482 | with_fp=no ;; | ||
483 | |||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
485 | | --no-cr | --no-c | -n) | ||
486 | no_create=yes ;; | ||
487 | |||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
490 | no_recursion=yes ;; | ||
491 | |||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
494 | | --oldin | --oldi | --old | --ol | --o) | ||
495 | ac_prev=oldincludedir ;; | ||
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
499 | oldincludedir=$ac_optarg ;; | ||
500 | |||
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
502 | ac_prev=prefix ;; | ||
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
504 | prefix=$ac_optarg ;; | ||
505 | |||
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
507 | | --program-pre | --program-pr | --program-p) | ||
508 | ac_prev=program_prefix ;; | ||
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
511 | program_prefix=$ac_optarg ;; | ||
512 | |||
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
514 | | --program-suf | --program-su | --program-s) | ||
515 | ac_prev=program_suffix ;; | ||
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
518 | program_suffix=$ac_optarg ;; | ||
519 | |||
520 | -program-transform-name | --program-transform-name \ | ||
521 | | --program-transform-nam | --program-transform-na \ | ||
522 | | --program-transform-n | --program-transform- \ | ||
523 | | --program-transform | --program-transfor \ | ||
524 | | --program-transfo | --program-transf \ | ||
525 | | --program-trans | --program-tran \ | ||
526 | | --progr-tra | --program-tr | --program-t) | ||
527 | ac_prev=program_transform_name ;; | ||
528 | -program-transform-name=* | --program-transform-name=* \ | ||
529 | | --program-transform-nam=* | --program-transform-na=* \ | ||
530 | | --program-transform-n=* | --program-transform-=* \ | ||
531 | | --program-transform=* | --program-transfor=* \ | ||
532 | | --program-transfo=* | --program-transf=* \ | ||
533 | | --program-trans=* | --program-tran=* \ | ||
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
535 | program_transform_name=$ac_optarg ;; | ||
536 | |||
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
538 | | -silent | --silent | --silen | --sile | --sil) | ||
539 | silent=yes ;; | ||
540 | |||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
542 | ac_prev=sbindir ;; | ||
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
544 | | --sbi=* | --sb=*) | ||
545 | sbindir=$ac_optarg ;; | ||
546 | |||
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
549 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
550 | | --sha | --sh) | ||
551 | ac_prev=sharedstatedir ;; | ||
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
555 | | --sha=* | --sh=*) | ||
556 | sharedstatedir=$ac_optarg ;; | ||
557 | |||
558 | -site | --site | --sit) | ||
559 | ac_prev=site ;; | ||
560 | -site=* | --site=* | --sit=*) | ||
561 | site=$ac_optarg ;; | ||
562 | |||
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
564 | ac_prev=srcdir ;; | ||
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
566 | srcdir=$ac_optarg ;; | ||
567 | |||
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
569 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
570 | ac_prev=sysconfdir ;; | ||
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
573 | sysconfdir=$ac_optarg ;; | ||
574 | |||
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
576 | ac_prev=target_alias ;; | ||
577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
578 | target_alias=$ac_optarg ;; | ||
579 | |||
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
581 | verbose=yes ;; | ||
582 | |||
583 | -version | --version | --versio | --versi | --vers | -V) | ||
584 | ac_init_version=: ;; | ||
585 | |||
586 | -with-* | --with-*) | ||
587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
588 | # Reject names that are not valid shell variable names. | ||
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
591 | { (exit 1); exit 1; }; } | ||
592 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
593 | case $ac_option in | ||
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
595 | *) ac_optarg=yes ;; | ||
596 | esac | ||
597 | eval "with_$ac_package='$ac_optarg'" ;; | ||
598 | |||
599 | -without-* | --without-*) | ||
600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
601 | # Reject names that are not valid shell variable names. | ||
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
604 | { (exit 1); exit 1; }; } | ||
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
606 | eval "with_$ac_package=no" ;; | ||
607 | |||
608 | --x) | ||
609 | # Obsolete; use --with-x. | ||
610 | with_x=yes ;; | ||
611 | |||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
613 | | --x-incl | --x-inc | --x-in | --x-i) | ||
614 | ac_prev=x_includes ;; | ||
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
617 | x_includes=$ac_optarg ;; | ||
618 | |||
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
621 | ac_prev=x_libraries ;; | ||
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
624 | x_libraries=$ac_optarg ;; | ||
625 | |||
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
627 | Try \`$0 --help' for more information." >&2 | ||
628 | { (exit 1); exit 1; }; } | ||
629 | ;; | ||
630 | |||
631 | *=*) | ||
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
633 | # Reject names that are not valid shell variable names. | ||
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
636 | { (exit 1); exit 1; }; } | ||
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
638 | eval "$ac_envvar='$ac_optarg'" | ||
639 | export $ac_envvar ;; | ||
640 | |||
641 | *) | ||
642 | # FIXME: should be removed in autoconf 3.0. | ||
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
647 | ;; | ||
648 | |||
649 | esac | ||
650 | done | ||
651 | |||
652 | if test -n "$ac_prev"; then | ||
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
655 | { (exit 1); exit 1; }; } | ||
656 | fi | ||
657 | |||
658 | # Be sure to have absolute paths. | ||
659 | for ac_var in exec_prefix prefix | ||
660 | do | ||
661 | eval ac_val=$`echo $ac_var` | ||
662 | case $ac_val in | ||
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
665 | { (exit 1); exit 1; }; };; | ||
666 | esac | ||
667 | done | ||
668 | |||
669 | # Be sure to have absolute paths. | ||
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
671 | localstatedir libdir includedir oldincludedir infodir mandir | ||
672 | do | ||
673 | eval ac_val=$`echo $ac_var` | ||
674 | case $ac_val in | ||
675 | [\\/$]* | ?:[\\/]* ) ;; | ||
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
677 | { (exit 1); exit 1; }; };; | ||
678 | esac | ||
679 | done | ||
680 | |||
681 | # There might be people who depend on the old broken behavior: `$host' | ||
682 | # used to hold the argument of --host etc. | ||
683 | # FIXME: To remove some day. | ||
684 | build=$build_alias | ||
685 | host=$host_alias | ||
686 | target=$target_alias | ||
687 | |||
688 | # FIXME: To remove some day. | ||
689 | if test "x$host_alias" != x; then | ||
690 | if test "x$build_alias" = x; then | ||
691 | cross_compiling=maybe | ||
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
694 | elif test "x$build_alias" != "x$host_alias"; then | ||
695 | cross_compiling=yes | ||
696 | fi | ||
697 | fi | ||
698 | |||
699 | ac_tool_prefix= | ||
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
701 | |||
702 | test "$silent" = yes && exec 6>/dev/null | ||
703 | |||
704 | |||
705 | # Find the source files, if location was not specified. | ||
706 | if test -z "$srcdir"; then | ||
707 | ac_srcdir_defaulted=yes | ||
708 | # Try the directory containing this script, then its parent. | ||
709 | ac_confdir=`(dirname "$0") 2>/dev/null || | ||
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
711 | X"$0" : 'X\(//\)[^/]' \| \ | ||
712 | X"$0" : 'X\(//\)$' \| \ | ||
713 | X"$0" : 'X\(/\)' \| \ | ||
714 | . : '\(.\)' 2>/dev/null || | ||
715 | echo X"$0" | | ||
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
718 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
719 | /^X\(\/\).*/{ s//\1/; q; } | ||
720 | s/.*/./; q'` | ||
721 | srcdir=$ac_confdir | ||
722 | if test ! -r $srcdir/$ac_unique_file; then | ||
723 | srcdir=.. | ||
724 | fi | ||
725 | else | ||
726 | ac_srcdir_defaulted=no | ||
727 | fi | ||
728 | if test ! -r $srcdir/$ac_unique_file; then | ||
729 | if test "$ac_srcdir_defaulted" = yes; then | ||
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | ||
731 | { (exit 1); exit 1; }; } | ||
732 | else | ||
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
734 | { (exit 1); exit 1; }; } | ||
735 | fi | ||
736 | fi | ||
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | ||
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | ||
739 | { (exit 1); exit 1; }; } | ||
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
741 | ac_env_build_alias_set=${build_alias+set} | ||
742 | ac_env_build_alias_value=$build_alias | ||
743 | ac_cv_env_build_alias_set=${build_alias+set} | ||
744 | ac_cv_env_build_alias_value=$build_alias | ||
745 | ac_env_host_alias_set=${host_alias+set} | ||
746 | ac_env_host_alias_value=$host_alias | ||
747 | ac_cv_env_host_alias_set=${host_alias+set} | ||
748 | ac_cv_env_host_alias_value=$host_alias | ||
749 | ac_env_target_alias_set=${target_alias+set} | ||
750 | ac_env_target_alias_value=$target_alias | ||
751 | ac_cv_env_target_alias_set=${target_alias+set} | ||
752 | ac_cv_env_target_alias_value=$target_alias | ||
753 | ac_env_CC_set=${CC+set} | ||
754 | ac_env_CC_value=$CC | ||
755 | ac_cv_env_CC_set=${CC+set} | ||
756 | ac_cv_env_CC_value=$CC | ||
757 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
758 | ac_env_CFLAGS_value=$CFLAGS | ||
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
760 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
762 | ac_env_LDFLAGS_value=$LDFLAGS | ||
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
769 | ac_env_CPP_set=${CPP+set} | ||
770 | ac_env_CPP_value=$CPP | ||
771 | ac_cv_env_CPP_set=${CPP+set} | ||
772 | ac_cv_env_CPP_value=$CPP | ||
773 | |||
774 | # | ||
775 | # Report the --help message. | ||
776 | # | ||
777 | if test "$ac_init_help" = "long"; then | ||
778 | # Omit some internal or obsolete options to make the list less imposing. | ||
779 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
780 | cat <<_ACEOF | ||
781 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
782 | |||
783 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
784 | |||
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
787 | |||
788 | Defaults for the options are specified in brackets. | ||
789 | |||
790 | Configuration: | ||
791 | -h, --help display this help and exit | ||
792 | --help=short display options specific to this package | ||
793 | --help=recursive display the short help of all the included packages | ||
794 | -V, --version display version information and exit | ||
795 | -q, --quiet, --silent do not print \`checking...' messages | ||
796 | --cache-file=FILE cache test results in FILE [disabled] | ||
797 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
798 | -n, --no-create do not create output files | ||
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
800 | |||
801 | _ACEOF | ||
802 | |||
803 | cat <<_ACEOF | ||
804 | Installation directories: | ||
805 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
806 | [$ac_default_prefix] | ||
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
808 | [PREFIX] | ||
809 | |||
810 | By default, \`make install' will install all the files in | ||
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
813 | for instance \`--prefix=\$HOME'. | ||
814 | |||
815 | For better control, use the options below. | ||
816 | |||
817 | Fine tuning of the installation directories: | ||
818 | --bindir=DIR user executables [EPREFIX/bin] | ||
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
825 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
826 | --includedir=DIR C header files [PREFIX/include] | ||
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
828 | --infodir=DIR info documentation [PREFIX/info] | ||
829 | --mandir=DIR man documentation [PREFIX/man] | ||
830 | _ACEOF | ||
831 | |||
832 | cat <<\_ACEOF | ||
833 | |||
834 | System types: | ||
835 | --build=BUILD configure for building on BUILD [guessed] | ||
836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
837 | _ACEOF | ||
838 | fi | ||
839 | |||
840 | if test -n "$ac_init_help"; then | ||
841 | case $ac_init_help in | ||
842 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
843 | esac | ||
844 | cat <<\_ACEOF | ||
845 | |||
846 | Optional Features: | ||
847 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
848 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
849 | --disable-largefile omit support for large files | ||
850 | --disable-strip Disable calling strip(1) on install | ||
851 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
852 | --disable-lastlog disable use of lastlog even if detected no | ||
853 | --disable-utmp disable use of utmp even if detected no | ||
854 | --disable-utmpx disable use of utmpx even if detected no | ||
855 | --disable-wtmp disable use of wtmp even if detected no | ||
856 | --disable-wtmpx disable use of wtmpx even if detected no | ||
857 | --disable-libutil disable use of libutil (login() etc.) no | ||
858 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
859 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
860 | |||
861 | Optional Packages: | ||
862 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
863 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
864 | --without-rpath Disable auto-added -R linker paths | ||
865 | --with-osfsia Enable Digital Unix SIA | ||
866 | --with-cflags Specify additional flags to pass to compiler | ||
867 | --with-cppflags Specify additional flags to pass to preprocessor | ||
868 | --with-ldflags Specify additional flags to pass to linker | ||
869 | --with-libs Specify additional libraries to link with | ||
870 | --with-zlib=PATH Use zlib in PATH | ||
871 | --without-zlib-version-check Disable zlib version check | ||
872 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
873 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
874 | --with-libedit[=PATH] Enable libedit support for sftp | ||
875 | --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) | ||
876 | --with-pam Enable PAM support | ||
877 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
878 | --with-rand-helper Use subprocess to gather strong randomness | ||
879 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
880 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
881 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
882 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
883 | --with-sectok Enable smartcard support using libsectok | ||
884 | --with-opensc=PFX Enable smartcard support using OpenSC | ||
885 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
886 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
887 | --with-xauth=PATH Specify path to xauth program | ||
888 | --with-mantype=man|cat|doc Set man page type | ||
889 | --with-md5-passwords Enable use of MD5 passwords | ||
890 | --without-shadow Disable shadow password support | ||
891 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
892 | --with-default-path= Specify default \$PATH environment for server | ||
893 | --with-superuser-path= Specify different path for super-user | ||
894 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
895 | --with-bsd-auth Enable BSD auth support | ||
896 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
897 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
898 | |||
899 | Some influential environment variables: | ||
900 | CC C compiler command | ||
901 | CFLAGS C compiler flags | ||
902 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
903 | nonstandard directory <lib dir> | ||
904 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
905 | headers in a nonstandard directory <include dir> | ||
906 | CPP C preprocessor | ||
907 | |||
908 | Use these variables to override the choices made by `configure' or to help | ||
909 | it to find libraries and programs with nonstandard names/locations. | ||
910 | |||
911 | _ACEOF | ||
912 | fi | ||
913 | |||
914 | if test "$ac_init_help" = "recursive"; then | ||
915 | # If there are subdirs, report their specific --help. | ||
916 | ac_popdir=`pwd` | ||
917 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
918 | test -d $ac_dir || continue | ||
919 | ac_builddir=. | ||
920 | |||
921 | if test "$ac_dir" != .; then | ||
922 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
923 | # A "../" for each directory in $ac_dir_suffix. | ||
924 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
925 | else | ||
926 | ac_dir_suffix= ac_top_builddir= | ||
927 | fi | ||
928 | |||
929 | case $srcdir in | ||
930 | .) # No --srcdir option. We are building in place. | ||
931 | ac_srcdir=. | ||
932 | if test -z "$ac_top_builddir"; then | ||
933 | ac_top_srcdir=. | ||
934 | else | ||
935 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
936 | fi ;; | ||
937 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
938 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
939 | ac_top_srcdir=$srcdir ;; | ||
940 | *) # Relative path. | ||
941 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
942 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
943 | esac | ||
944 | |||
945 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
946 | # the directories may not exist. | ||
947 | case `pwd` in | ||
948 | .) ac_abs_builddir="$ac_dir";; | ||
949 | *) | ||
950 | case "$ac_dir" in | ||
951 | .) ac_abs_builddir=`pwd`;; | ||
952 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
953 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
954 | esac;; | ||
955 | esac | ||
956 | case $ac_abs_builddir in | ||
957 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
958 | *) | ||
959 | case ${ac_top_builddir}. in | ||
960 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
961 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
962 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
963 | esac;; | ||
964 | esac | ||
965 | case $ac_abs_builddir in | ||
966 | .) ac_abs_srcdir=$ac_srcdir;; | ||
967 | *) | ||
968 | case $ac_srcdir in | ||
969 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
970 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
971 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
972 | esac;; | ||
973 | esac | ||
974 | case $ac_abs_builddir in | ||
975 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
976 | *) | ||
977 | case $ac_top_srcdir in | ||
978 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
979 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
980 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
981 | esac;; | ||
982 | esac | ||
983 | |||
984 | cd $ac_dir | ||
985 | # Check for guested configure; otherwise get Cygnus style configure. | ||
986 | if test -f $ac_srcdir/configure.gnu; then | ||
987 | echo | ||
988 | $SHELL $ac_srcdir/configure.gnu --help=recursive | ||
989 | elif test -f $ac_srcdir/configure; then | ||
990 | echo | ||
991 | $SHELL $ac_srcdir/configure --help=recursive | ||
992 | elif test -f $ac_srcdir/configure.ac || | ||
993 | test -f $ac_srcdir/configure.in; then | ||
994 | echo | ||
995 | $ac_configure --help | ||
996 | else | ||
997 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
998 | fi | ||
999 | cd $ac_popdir | ||
1000 | done | ||
1001 | fi | ||
1002 | |||
1003 | test -n "$ac_init_help" && exit 0 | ||
1004 | if $ac_init_version; then | ||
1005 | cat <<\_ACEOF | ||
1006 | OpenSSH configure Portable | ||
1007 | generated by GNU Autoconf 2.59 | ||
1008 | |||
1009 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
1010 | This configure script is free software; the Free Software Foundation | ||
1011 | gives unlimited permission to copy, distribute and modify it. | ||
1012 | _ACEOF | ||
1013 | exit 0 | ||
1014 | fi | ||
1015 | exec 5>config.log | ||
1016 | cat >&5 <<_ACEOF | ||
1017 | This file contains any messages produced by compilers while | ||
1018 | running configure, to aid debugging if configure makes a mistake. | ||
1019 | |||
1020 | It was created by OpenSSH $as_me Portable, which was | ||
1021 | generated by GNU Autoconf 2.59. Invocation command line was | ||
1022 | |||
1023 | $ $0 $@ | ||
1024 | |||
1025 | _ACEOF | ||
1026 | { | ||
1027 | cat <<_ASUNAME | ||
1028 | ## --------- ## | ||
1029 | ## Platform. ## | ||
1030 | ## --------- ## | ||
1031 | |||
1032 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1033 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1034 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1035 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1036 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1037 | |||
1038 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1039 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1040 | |||
1041 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1042 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1043 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1044 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
1045 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1046 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1047 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1048 | |||
1049 | _ASUNAME | ||
1050 | |||
1051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1052 | for as_dir in $PATH | ||
1053 | do | ||
1054 | IFS=$as_save_IFS | ||
1055 | test -z "$as_dir" && as_dir=. | ||
1056 | echo "PATH: $as_dir" | ||
1057 | done | ||
1058 | |||
1059 | } >&5 | ||
1060 | |||
1061 | cat >&5 <<_ACEOF | ||
1062 | |||
1063 | |||
1064 | ## ----------- ## | ||
1065 | ## Core tests. ## | ||
1066 | ## ----------- ## | ||
1067 | |||
1068 | _ACEOF | ||
1069 | |||
1070 | |||
1071 | # Keep a trace of the command line. | ||
1072 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1073 | # Strip out --silent because we don't want to record it for future runs. | ||
1074 | # Also quote any args containing shell meta-characters. | ||
1075 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1076 | ac_configure_args= | ||
1077 | ac_configure_args0= | ||
1078 | ac_configure_args1= | ||
1079 | ac_sep= | ||
1080 | ac_must_keep_next=false | ||
1081 | for ac_pass in 1 2 | ||
1082 | do | ||
1083 | for ac_arg | ||
1084 | do | ||
1085 | case $ac_arg in | ||
1086 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1087 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1088 | | -silent | --silent | --silen | --sile | --sil) | ||
1089 | continue ;; | ||
1090 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1091 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1092 | esac | ||
1093 | case $ac_pass in | ||
1094 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1095 | 2) | ||
1096 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1097 | if test $ac_must_keep_next = true; then | ||
1098 | ac_must_keep_next=false # Got value, back to normal. | ||
1099 | else | ||
1100 | case $ac_arg in | ||
1101 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1102 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1103 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1104 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1105 | case "$ac_configure_args0 " in | ||
1106 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1107 | esac | ||
1108 | ;; | ||
1109 | -* ) ac_must_keep_next=true ;; | ||
1110 | esac | ||
1111 | fi | ||
1112 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
1113 | # Get rid of the leading space. | ||
1114 | ac_sep=" " | ||
1115 | ;; | ||
1116 | esac | ||
1117 | done | ||
1118 | done | ||
1119 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1120 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1121 | |||
1122 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1123 | # config.log. We remove comments because anyway the quotes in there | ||
1124 | # would cause problems or look ugly. | ||
1125 | # WARNING: Be sure not to use single quotes in there, as some shells, | ||
1126 | # such as our DU 5.0 friend, will then `close' the trap. | ||
1127 | trap 'exit_status=$? | ||
1128 | # Save into config.log some information that might help in debugging. | ||
1129 | { | ||
1130 | echo | ||
1131 | |||
1132 | cat <<\_ASBOX | ||
1133 | ## ---------------- ## | ||
1134 | ## Cache variables. ## | ||
1135 | ## ---------------- ## | ||
1136 | _ASBOX | ||
1137 | echo | ||
1138 | # The following way of writing the cache mishandles newlines in values, | ||
1139 | { | ||
1140 | (set) 2>&1 | | ||
1141 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
1142 | *ac_space=\ *) | ||
1143 | sed -n \ | ||
1144 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
1145 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
1146 | ;; | ||
1147 | *) | ||
1148 | sed -n \ | ||
1149 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
1150 | ;; | ||
1151 | esac; | ||
1152 | } | ||
1153 | echo | ||
1154 | |||
1155 | cat <<\_ASBOX | ||
1156 | ## ----------------- ## | ||
1157 | ## Output variables. ## | ||
1158 | ## ----------------- ## | ||
1159 | _ASBOX | ||
1160 | echo | ||
1161 | for ac_var in $ac_subst_vars | ||
1162 | do | ||
1163 | eval ac_val=$`echo $ac_var` | ||
1164 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1165 | done | sort | ||
1166 | echo | ||
1167 | |||
1168 | if test -n "$ac_subst_files"; then | ||
1169 | cat <<\_ASBOX | ||
1170 | ## ------------- ## | ||
1171 | ## Output files. ## | ||
1172 | ## ------------- ## | ||
1173 | _ASBOX | ||
1174 | echo | ||
1175 | for ac_var in $ac_subst_files | ||
1176 | do | ||
1177 | eval ac_val=$`echo $ac_var` | ||
1178 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1179 | done | sort | ||
1180 | echo | ||
1181 | fi | ||
1182 | |||
1183 | if test -s confdefs.h; then | ||
1184 | cat <<\_ASBOX | ||
1185 | ## ----------- ## | ||
1186 | ## confdefs.h. ## | ||
1187 | ## ----------- ## | ||
1188 | _ASBOX | ||
1189 | echo | ||
1190 | sed "/^$/d" confdefs.h | sort | ||
1191 | echo | ||
1192 | fi | ||
1193 | test "$ac_signal" != 0 && | ||
1194 | echo "$as_me: caught signal $ac_signal" | ||
1195 | echo "$as_me: exit $exit_status" | ||
1196 | } >&5 | ||
1197 | rm -f core *.core && | ||
1198 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | ||
1199 | exit $exit_status | ||
1200 | ' 0 | ||
1201 | for ac_signal in 1 2 13 15; do | ||
1202 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1203 | done | ||
1204 | ac_signal=0 | ||
1205 | |||
1206 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1207 | rm -rf conftest* confdefs.h | ||
1208 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
1209 | echo >confdefs.h | ||
1210 | |||
1211 | # Predefined preprocessor variables. | ||
1212 | |||
1213 | cat >>confdefs.h <<_ACEOF | ||
1214 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1215 | _ACEOF | ||
1216 | |||
1217 | |||
1218 | cat >>confdefs.h <<_ACEOF | ||
1219 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1220 | _ACEOF | ||
1221 | |||
1222 | |||
1223 | cat >>confdefs.h <<_ACEOF | ||
1224 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1225 | _ACEOF | ||
1226 | |||
1227 | |||
1228 | cat >>confdefs.h <<_ACEOF | ||
1229 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1230 | _ACEOF | ||
1231 | |||
1232 | |||
1233 | cat >>confdefs.h <<_ACEOF | ||
1234 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1235 | _ACEOF | ||
1236 | |||
1237 | |||
1238 | # Let the site file select an alternate cache file if it wants to. | ||
1239 | # Prefer explicitly selected file to automatically selected ones. | ||
1240 | if test -z "$CONFIG_SITE"; then | ||
1241 | if test "x$prefix" != xNONE; then | ||
1242 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
1243 | else | ||
1244 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
1245 | fi | ||
1246 | fi | ||
1247 | for ac_site_file in $CONFIG_SITE; do | ||
1248 | if test -r "$ac_site_file"; then | ||
1249 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1250 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1251 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1252 | . "$ac_site_file" | ||
1253 | fi | ||
1254 | done | ||
1255 | |||
1256 | if test -r "$cache_file"; then | ||
1257 | # Some versions of bash will fail to source /dev/null (special | ||
1258 | # files actually), so we avoid doing that. | ||
1259 | if test -f "$cache_file"; then | ||
1260 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1261 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1262 | case $cache_file in | ||
1263 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
1264 | *) . ./$cache_file;; | ||
1265 | esac | ||
1266 | fi | ||
1267 | else | ||
1268 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1269 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1270 | >$cache_file | ||
1271 | fi | ||
1272 | |||
1273 | # Check that the precious variables saved in the cache have kept the same | ||
1274 | # value. | ||
1275 | ac_cache_corrupted=false | ||
1276 | for ac_var in `(set) 2>&1 | | ||
1277 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
1278 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1279 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1280 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
1281 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
1282 | case $ac_old_set,$ac_new_set in | ||
1283 | set,) | ||
1284 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1285 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1286 | ac_cache_corrupted=: ;; | ||
1287 | ,set) | ||
1288 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1289 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1290 | ac_cache_corrupted=: ;; | ||
1291 | ,);; | ||
1292 | *) | ||
1293 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1294 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1295 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1296 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1297 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1298 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1299 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1300 | ac_cache_corrupted=: | ||
1301 | fi;; | ||
1302 | esac | ||
1303 | # Pass precious variables to config.status. | ||
1304 | if test "$ac_new_set" = set; then | ||
1305 | case $ac_new_val in | ||
1306 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1307 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1308 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1309 | esac | ||
1310 | case " $ac_configure_args " in | ||
1311 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1312 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1313 | esac | ||
1314 | fi | ||
1315 | done | ||
1316 | if $ac_cache_corrupted; then | ||
1317 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1318 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1319 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1320 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1321 | { (exit 1); exit 1; }; } | ||
1322 | fi | ||
1323 | |||
1324 | ac_ext=c | ||
1325 | ac_cpp='$CPP $CPPFLAGS' | ||
1326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1329 | |||
1330 | |||
1331 | |||
1332 | |||
1333 | |||
1334 | |||
1335 | |||
1336 | |||
1337 | |||
1338 | |||
1339 | |||
1340 | |||
1341 | |||
1342 | |||
1343 | |||
1344 | |||
1345 | |||
1346 | |||
1347 | |||
1348 | |||
1349 | |||
1350 | |||
1351 | |||
1352 | |||
1353 | |||
1354 | |||
1355 | |||
1356 | |||
1357 | |||
1358 | ac_config_headers="$ac_config_headers config.h" | ||
1359 | |||
1360 | ac_ext=c | ||
1361 | ac_cpp='$CPP $CPPFLAGS' | ||
1362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1365 | if test -n "$ac_tool_prefix"; then | ||
1366 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1367 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1368 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1370 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1372 | else | ||
1373 | if test -n "$CC"; then | ||
1374 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1375 | else | ||
1376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1377 | for as_dir in $PATH | ||
1378 | do | ||
1379 | IFS=$as_save_IFS | ||
1380 | test -z "$as_dir" && as_dir=. | ||
1381 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1382 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1383 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1385 | break 2 | ||
1386 | fi | ||
1387 | done | ||
1388 | done | ||
1389 | |||
1390 | fi | ||
1391 | fi | ||
1392 | CC=$ac_cv_prog_CC | ||
1393 | if test -n "$CC"; then | ||
1394 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1395 | echo "${ECHO_T}$CC" >&6 | ||
1396 | else | ||
1397 | echo "$as_me:$LINENO: result: no" >&5 | ||
1398 | echo "${ECHO_T}no" >&6 | ||
1399 | fi | ||
1400 | |||
1401 | fi | ||
1402 | if test -z "$ac_cv_prog_CC"; then | ||
1403 | ac_ct_CC=$CC | ||
1404 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1405 | set dummy gcc; ac_word=$2 | ||
1406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1408 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1410 | else | ||
1411 | if test -n "$ac_ct_CC"; then | ||
1412 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1413 | else | ||
1414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1415 | for as_dir in $PATH | ||
1416 | do | ||
1417 | IFS=$as_save_IFS | ||
1418 | test -z "$as_dir" && as_dir=. | ||
1419 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1421 | ac_cv_prog_ac_ct_CC="gcc" | ||
1422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1423 | break 2 | ||
1424 | fi | ||
1425 | done | ||
1426 | done | ||
1427 | |||
1428 | fi | ||
1429 | fi | ||
1430 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1431 | if test -n "$ac_ct_CC"; then | ||
1432 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1433 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1434 | else | ||
1435 | echo "$as_me:$LINENO: result: no" >&5 | ||
1436 | echo "${ECHO_T}no" >&6 | ||
1437 | fi | ||
1438 | |||
1439 | CC=$ac_ct_CC | ||
1440 | else | ||
1441 | CC="$ac_cv_prog_CC" | ||
1442 | fi | ||
1443 | |||
1444 | if test -z "$CC"; then | ||
1445 | if test -n "$ac_tool_prefix"; then | ||
1446 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1447 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1448 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1450 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1452 | else | ||
1453 | if test -n "$CC"; then | ||
1454 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1455 | else | ||
1456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1457 | for as_dir in $PATH | ||
1458 | do | ||
1459 | IFS=$as_save_IFS | ||
1460 | test -z "$as_dir" && as_dir=. | ||
1461 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1463 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1465 | break 2 | ||
1466 | fi | ||
1467 | done | ||
1468 | done | ||
1469 | |||
1470 | fi | ||
1471 | fi | ||
1472 | CC=$ac_cv_prog_CC | ||
1473 | if test -n "$CC"; then | ||
1474 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1475 | echo "${ECHO_T}$CC" >&6 | ||
1476 | else | ||
1477 | echo "$as_me:$LINENO: result: no" >&5 | ||
1478 | echo "${ECHO_T}no" >&6 | ||
1479 | fi | ||
1480 | |||
1481 | fi | ||
1482 | if test -z "$ac_cv_prog_CC"; then | ||
1483 | ac_ct_CC=$CC | ||
1484 | # Extract the first word of "cc", so it can be a program name with args. | ||
1485 | set dummy cc; ac_word=$2 | ||
1486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1488 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1490 | else | ||
1491 | if test -n "$ac_ct_CC"; then | ||
1492 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1493 | else | ||
1494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1495 | for as_dir in $PATH | ||
1496 | do | ||
1497 | IFS=$as_save_IFS | ||
1498 | test -z "$as_dir" && as_dir=. | ||
1499 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1501 | ac_cv_prog_ac_ct_CC="cc" | ||
1502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1503 | break 2 | ||
1504 | fi | ||
1505 | done | ||
1506 | done | ||
1507 | |||
1508 | fi | ||
1509 | fi | ||
1510 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1511 | if test -n "$ac_ct_CC"; then | ||
1512 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1513 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1514 | else | ||
1515 | echo "$as_me:$LINENO: result: no" >&5 | ||
1516 | echo "${ECHO_T}no" >&6 | ||
1517 | fi | ||
1518 | |||
1519 | CC=$ac_ct_CC | ||
1520 | else | ||
1521 | CC="$ac_cv_prog_CC" | ||
1522 | fi | ||
1523 | |||
1524 | fi | ||
1525 | if test -z "$CC"; then | ||
1526 | # Extract the first word of "cc", so it can be a program name with args. | ||
1527 | set dummy cc; ac_word=$2 | ||
1528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1530 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1532 | else | ||
1533 | if test -n "$CC"; then | ||
1534 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1535 | else | ||
1536 | ac_prog_rejected=no | ||
1537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1538 | for as_dir in $PATH | ||
1539 | do | ||
1540 | IFS=$as_save_IFS | ||
1541 | test -z "$as_dir" && as_dir=. | ||
1542 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1544 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1545 | ac_prog_rejected=yes | ||
1546 | continue | ||
1547 | fi | ||
1548 | ac_cv_prog_CC="cc" | ||
1549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1550 | break 2 | ||
1551 | fi | ||
1552 | done | ||
1553 | done | ||
1554 | |||
1555 | if test $ac_prog_rejected = yes; then | ||
1556 | # We found a bogon in the path, so make sure we never use it. | ||
1557 | set dummy $ac_cv_prog_CC | ||
1558 | shift | ||
1559 | if test $# != 0; then | ||
1560 | # We chose a different compiler from the bogus one. | ||
1561 | # However, it has the same basename, so the bogon will be chosen | ||
1562 | # first if we set CC to just the basename; use the full file name. | ||
1563 | shift | ||
1564 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
1565 | fi | ||
1566 | fi | ||
1567 | fi | ||
1568 | fi | ||
1569 | CC=$ac_cv_prog_CC | ||
1570 | if test -n "$CC"; then | ||
1571 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1572 | echo "${ECHO_T}$CC" >&6 | ||
1573 | else | ||
1574 | echo "$as_me:$LINENO: result: no" >&5 | ||
1575 | echo "${ECHO_T}no" >&6 | ||
1576 | fi | ||
1577 | |||
1578 | fi | ||
1579 | if test -z "$CC"; then | ||
1580 | if test -n "$ac_tool_prefix"; then | ||
1581 | for ac_prog in cl | ||
1582 | do | ||
1583 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
1584 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
1585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1587 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1589 | else | ||
1590 | if test -n "$CC"; then | ||
1591 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1592 | else | ||
1593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1594 | for as_dir in $PATH | ||
1595 | do | ||
1596 | IFS=$as_save_IFS | ||
1597 | test -z "$as_dir" && as_dir=. | ||
1598 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1600 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
1601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1602 | break 2 | ||
1603 | fi | ||
1604 | done | ||
1605 | done | ||
1606 | |||
1607 | fi | ||
1608 | fi | ||
1609 | CC=$ac_cv_prog_CC | ||
1610 | if test -n "$CC"; then | ||
1611 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1612 | echo "${ECHO_T}$CC" >&6 | ||
1613 | else | ||
1614 | echo "$as_me:$LINENO: result: no" >&5 | ||
1615 | echo "${ECHO_T}no" >&6 | ||
1616 | fi | ||
1617 | |||
1618 | test -n "$CC" && break | ||
1619 | done | ||
1620 | fi | ||
1621 | if test -z "$CC"; then | ||
1622 | ac_ct_CC=$CC | ||
1623 | for ac_prog in cl | ||
1624 | do | ||
1625 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1626 | set dummy $ac_prog; ac_word=$2 | ||
1627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1629 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1631 | else | ||
1632 | if test -n "$ac_ct_CC"; then | ||
1633 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1634 | else | ||
1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1636 | for as_dir in $PATH | ||
1637 | do | ||
1638 | IFS=$as_save_IFS | ||
1639 | test -z "$as_dir" && as_dir=. | ||
1640 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1642 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
1643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1644 | break 2 | ||
1645 | fi | ||
1646 | done | ||
1647 | done | ||
1648 | |||
1649 | fi | ||
1650 | fi | ||
1651 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1652 | if test -n "$ac_ct_CC"; then | ||
1653 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1654 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1655 | else | ||
1656 | echo "$as_me:$LINENO: result: no" >&5 | ||
1657 | echo "${ECHO_T}no" >&6 | ||
1658 | fi | ||
1659 | |||
1660 | test -n "$ac_ct_CC" && break | ||
1661 | done | ||
1662 | |||
1663 | CC=$ac_ct_CC | ||
1664 | fi | ||
1665 | |||
1666 | fi | ||
1667 | |||
1668 | |||
1669 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
1670 | See \`config.log' for more details." >&5 | ||
1671 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
1672 | See \`config.log' for more details." >&2;} | ||
1673 | { (exit 1); exit 1; }; } | ||
1674 | |||
1675 | # Provide some information about the compiler. | ||
1676 | echo "$as_me:$LINENO:" \ | ||
1677 | "checking for C compiler version" >&5 | ||
1678 | ac_compiler=`set X $ac_compile; echo $2` | ||
1679 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
1680 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
1681 | ac_status=$? | ||
1682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1683 | (exit $ac_status); } | ||
1684 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
1685 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
1686 | ac_status=$? | ||
1687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1688 | (exit $ac_status); } | ||
1689 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
1690 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
1691 | ac_status=$? | ||
1692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1693 | (exit $ac_status); } | ||
1694 | |||
1695 | cat >conftest.$ac_ext <<_ACEOF | ||
1696 | /* confdefs.h. */ | ||
1697 | _ACEOF | ||
1698 | cat confdefs.h >>conftest.$ac_ext | ||
1699 | cat >>conftest.$ac_ext <<_ACEOF | ||
1700 | /* end confdefs.h. */ | ||
1701 | |||
1702 | int | ||
1703 | main () | ||
1704 | { | ||
1705 | |||
1706 | ; | ||
1707 | return 0; | ||
1708 | } | ||
1709 | _ACEOF | ||
1710 | ac_clean_files_save=$ac_clean_files | ||
1711 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
1712 | # Try to create an executable without -o first, disregard a.out. | ||
1713 | # It will help us diagnose broken compilers, and finding out an intuition | ||
1714 | # of exeext. | ||
1715 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
1716 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | ||
1717 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
1718 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ||
1719 | (eval $ac_link_default) 2>&5 | ||
1720 | ac_status=$? | ||
1721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1722 | (exit $ac_status); }; then | ||
1723 | # Find the output, starting from the most likely. This scheme is | ||
1724 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
1725 | # resort. | ||
1726 | |||
1727 | # Be careful to initialize this variable, since it used to be cached. | ||
1728 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
1729 | ac_cv_exeext= | ||
1730 | # b.out is created by i960 compilers. | ||
1731 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | ||
1732 | do | ||
1733 | test -f "$ac_file" || continue | ||
1734 | case $ac_file in | ||
1735 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | ||
1736 | ;; | ||
1737 | conftest.$ac_ext ) | ||
1738 | # This is the source file. | ||
1739 | ;; | ||
1740 | [ab].out ) | ||
1741 | # We found the default executable, but exeext='' is most | ||
1742 | # certainly right. | ||
1743 | break;; | ||
1744 | *.* ) | ||
1745 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1746 | # FIXME: I believe we export ac_cv_exeext for Libtool, | ||
1747 | # but it would be cool to find out if it's true. Does anybody | ||
1748 | # maintain Libtool? --akim. | ||
1749 | export ac_cv_exeext | ||
1750 | break;; | ||
1751 | * ) | ||
1752 | break;; | ||
1753 | esac | ||
1754 | done | ||
1755 | else | ||
1756 | echo "$as_me: failed program was:" >&5 | ||
1757 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1758 | |||
1759 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
1760 | See \`config.log' for more details." >&5 | ||
1761 | echo "$as_me: error: C compiler cannot create executables | ||
1762 | See \`config.log' for more details." >&2;} | ||
1763 | { (exit 77); exit 77; }; } | ||
1764 | fi | ||
1765 | |||
1766 | ac_exeext=$ac_cv_exeext | ||
1767 | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
1768 | echo "${ECHO_T}$ac_file" >&6 | ||
1769 | |||
1770 | # Check the compiler produces executables we can run. If not, either | ||
1771 | # the compiler is broken, or we cross compile. | ||
1772 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
1773 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
1774 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
1775 | # If not cross compiling, check that we can run a simple program. | ||
1776 | if test "$cross_compiling" != yes; then | ||
1777 | if { ac_try='./$ac_file' | ||
1778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1779 | (eval $ac_try) 2>&5 | ||
1780 | ac_status=$? | ||
1781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1782 | (exit $ac_status); }; }; then | ||
1783 | cross_compiling=no | ||
1784 | else | ||
1785 | if test "$cross_compiling" = maybe; then | ||
1786 | cross_compiling=yes | ||
1787 | else | ||
1788 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
1789 | If you meant to cross compile, use \`--host'. | ||
1790 | See \`config.log' for more details." >&5 | ||
1791 | echo "$as_me: error: cannot run C compiled programs. | ||
1792 | If you meant to cross compile, use \`--host'. | ||
1793 | See \`config.log' for more details." >&2;} | ||
1794 | { (exit 1); exit 1; }; } | ||
1795 | fi | ||
1796 | fi | ||
1797 | fi | ||
1798 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1799 | echo "${ECHO_T}yes" >&6 | ||
1800 | |||
1801 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
1802 | ac_clean_files=$ac_clean_files_save | ||
1803 | # Check the compiler produces executables we can run. If not, either | ||
1804 | # the compiler is broken, or we cross compile. | ||
1805 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
1806 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
1807 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
1808 | echo "${ECHO_T}$cross_compiling" >&6 | ||
1809 | |||
1810 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
1811 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
1812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
1813 | (eval $ac_link) 2>&5 | ||
1814 | ac_status=$? | ||
1815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1816 | (exit $ac_status); }; then | ||
1817 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
1818 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
1819 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
1820 | # `rm'. | ||
1821 | for ac_file in conftest.exe conftest conftest.*; do | ||
1822 | test -f "$ac_file" || continue | ||
1823 | case $ac_file in | ||
1824 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | ||
1825 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1826 | export ac_cv_exeext | ||
1827 | break;; | ||
1828 | * ) break;; | ||
1829 | esac | ||
1830 | done | ||
1831 | else | ||
1832 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
1833 | See \`config.log' for more details." >&5 | ||
1834 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
1835 | See \`config.log' for more details." >&2;} | ||
1836 | { (exit 1); exit 1; }; } | ||
1837 | fi | ||
1838 | |||
1839 | rm -f conftest$ac_cv_exeext | ||
1840 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
1841 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
1842 | |||
1843 | rm -f conftest.$ac_ext | ||
1844 | EXEEXT=$ac_cv_exeext | ||
1845 | ac_exeext=$EXEEXT | ||
1846 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
1847 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
1848 | if test "${ac_cv_objext+set}" = set; then | ||
1849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1850 | else | ||
1851 | cat >conftest.$ac_ext <<_ACEOF | ||
1852 | /* confdefs.h. */ | ||
1853 | _ACEOF | ||
1854 | cat confdefs.h >>conftest.$ac_ext | ||
1855 | cat >>conftest.$ac_ext <<_ACEOF | ||
1856 | /* end confdefs.h. */ | ||
1857 | |||
1858 | int | ||
1859 | main () | ||
1860 | { | ||
1861 | |||
1862 | ; | ||
1863 | return 0; | ||
1864 | } | ||
1865 | _ACEOF | ||
1866 | rm -f conftest.o conftest.obj | ||
1867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1868 | (eval $ac_compile) 2>&5 | ||
1869 | ac_status=$? | ||
1870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1871 | (exit $ac_status); }; then | ||
1872 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
1873 | case $ac_file in | ||
1874 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | ||
1875 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
1876 | break;; | ||
1877 | esac | ||
1878 | done | ||
1879 | else | ||
1880 | echo "$as_me: failed program was:" >&5 | ||
1881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1882 | |||
1883 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
1884 | See \`config.log' for more details." >&5 | ||
1885 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
1886 | See \`config.log' for more details." >&2;} | ||
1887 | { (exit 1); exit 1; }; } | ||
1888 | fi | ||
1889 | |||
1890 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
1891 | fi | ||
1892 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
1893 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
1894 | OBJEXT=$ac_cv_objext | ||
1895 | ac_objext=$OBJEXT | ||
1896 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
1897 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
1898 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
1899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1900 | else | ||
1901 | cat >conftest.$ac_ext <<_ACEOF | ||
1902 | /* confdefs.h. */ | ||
1903 | _ACEOF | ||
1904 | cat confdefs.h >>conftest.$ac_ext | ||
1905 | cat >>conftest.$ac_ext <<_ACEOF | ||
1906 | /* end confdefs.h. */ | ||
1907 | |||
1908 | int | ||
1909 | main () | ||
1910 | { | ||
1911 | #ifndef __GNUC__ | ||
1912 | choke me | ||
1913 | #endif | ||
1914 | |||
1915 | ; | ||
1916 | return 0; | ||
1917 | } | ||
1918 | _ACEOF | ||
1919 | rm -f conftest.$ac_objext | ||
1920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1921 | (eval $ac_compile) 2>conftest.er1 | ||
1922 | ac_status=$? | ||
1923 | grep -v '^ *+' conftest.er1 >conftest.err | ||
1924 | rm -f conftest.er1 | ||
1925 | cat conftest.err >&5 | ||
1926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1927 | (exit $ac_status); } && | ||
1928 | { ac_try='test -z "$ac_c_werror_flag" | ||
1929 | || test ! -s conftest.err' | ||
1930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1931 | (eval $ac_try) 2>&5 | ||
1932 | ac_status=$? | ||
1933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1934 | (exit $ac_status); }; } && | ||
1935 | { ac_try='test -s conftest.$ac_objext' | ||
1936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1937 | (eval $ac_try) 2>&5 | ||
1938 | ac_status=$? | ||
1939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1940 | (exit $ac_status); }; }; then | ||
1941 | ac_compiler_gnu=yes | ||
1942 | else | ||
1943 | echo "$as_me: failed program was:" >&5 | ||
1944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1945 | |||
1946 | ac_compiler_gnu=no | ||
1947 | fi | ||
1948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1949 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
1950 | |||
1951 | fi | ||
1952 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
1953 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
1954 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
1955 | ac_test_CFLAGS=${CFLAGS+set} | ||
1956 | ac_save_CFLAGS=$CFLAGS | ||
1957 | CFLAGS="-g" | ||
1958 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
1959 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
1960 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
1961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1962 | else | ||
1963 | cat >conftest.$ac_ext <<_ACEOF | ||
1964 | /* confdefs.h. */ | ||
1965 | _ACEOF | ||
1966 | cat confdefs.h >>conftest.$ac_ext | ||
1967 | cat >>conftest.$ac_ext <<_ACEOF | ||
1968 | /* end confdefs.h. */ | ||
1969 | |||
1970 | int | ||
1971 | main () | ||
1972 | { | ||
1973 | |||
1974 | ; | ||
1975 | return 0; | ||
1976 | } | ||
1977 | _ACEOF | ||
1978 | rm -f conftest.$ac_objext | ||
1979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1980 | (eval $ac_compile) 2>conftest.er1 | ||
1981 | ac_status=$? | ||
1982 | grep -v '^ *+' conftest.er1 >conftest.err | ||
1983 | rm -f conftest.er1 | ||
1984 | cat conftest.err >&5 | ||
1985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1986 | (exit $ac_status); } && | ||
1987 | { ac_try='test -z "$ac_c_werror_flag" | ||
1988 | || test ! -s conftest.err' | ||
1989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1990 | (eval $ac_try) 2>&5 | ||
1991 | ac_status=$? | ||
1992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1993 | (exit $ac_status); }; } && | ||
1994 | { ac_try='test -s conftest.$ac_objext' | ||
1995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1996 | (eval $ac_try) 2>&5 | ||
1997 | ac_status=$? | ||
1998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1999 | (exit $ac_status); }; }; then | ||
2000 | ac_cv_prog_cc_g=yes | ||
2001 | else | ||
2002 | echo "$as_me: failed program was:" >&5 | ||
2003 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2004 | |||
2005 | ac_cv_prog_cc_g=no | ||
2006 | fi | ||
2007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2008 | fi | ||
2009 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2010 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
2011 | if test "$ac_test_CFLAGS" = set; then | ||
2012 | CFLAGS=$ac_save_CFLAGS | ||
2013 | elif test $ac_cv_prog_cc_g = yes; then | ||
2014 | if test "$GCC" = yes; then | ||
2015 | CFLAGS="-g -O2" | ||
2016 | else | ||
2017 | CFLAGS="-g" | ||
2018 | fi | ||
2019 | else | ||
2020 | if test "$GCC" = yes; then | ||
2021 | CFLAGS="-O2" | ||
2022 | else | ||
2023 | CFLAGS= | ||
2024 | fi | ||
2025 | fi | ||
2026 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | ||
2027 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
2028 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
2029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2030 | else | ||
2031 | ac_cv_prog_cc_stdc=no | ||
2032 | ac_save_CC=$CC | ||
2033 | cat >conftest.$ac_ext <<_ACEOF | ||
2034 | /* confdefs.h. */ | ||
2035 | _ACEOF | ||
2036 | cat confdefs.h >>conftest.$ac_ext | ||
2037 | cat >>conftest.$ac_ext <<_ACEOF | ||
2038 | /* end confdefs.h. */ | ||
2039 | #include <stdarg.h> | ||
2040 | #include <stdio.h> | ||
2041 | #include <sys/types.h> | ||
2042 | #include <sys/stat.h> | ||
2043 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2044 | struct buf { int x; }; | ||
2045 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2046 | static char *e (p, i) | ||
2047 | char **p; | ||
2048 | int i; | ||
2049 | { | ||
2050 | return p[i]; | ||
2051 | } | ||
2052 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2053 | { | ||
2054 | char *s; | ||
2055 | va_list v; | ||
2056 | va_start (v,p); | ||
2057 | s = g (p, va_arg (v,int)); | ||
2058 | va_end (v); | ||
2059 | return s; | ||
2060 | } | ||
2061 | |||
2062 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2063 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2064 | These don't provoke an error unfortunately, instead are silently treated | ||
2065 | as 'x'. The following induces an error, until -std1 is added to get | ||
2066 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2067 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2068 | that's true only with -std1. */ | ||
2069 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2070 | |||
2071 | int test (int i, double x); | ||
2072 | struct s1 {int (*f) (int a);}; | ||
2073 | struct s2 {int (*f) (double a);}; | ||
2074 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2075 | int argc; | ||
2076 | char **argv; | ||
2077 | int | ||
2078 | main () | ||
2079 | { | ||
2080 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2081 | ; | ||
2082 | return 0; | ||
2083 | } | ||
2084 | _ACEOF | ||
2085 | # Don't try gcc -ansi; that turns off useful extensions and | ||
2086 | # breaks some systems' header files. | ||
2087 | # AIX -qlanglvl=ansi | ||
2088 | # Ultrix and OSF/1 -std1 | ||
2089 | # HP-UX 10.20 and later -Ae | ||
2090 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
2091 | # SVR4 -Xc -D__EXTENSIONS__ | ||
2092 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2093 | do | ||
2094 | CC="$ac_save_CC $ac_arg" | ||
2095 | rm -f conftest.$ac_objext | ||
2096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2097 | (eval $ac_compile) 2>conftest.er1 | ||
2098 | ac_status=$? | ||
2099 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2100 | rm -f conftest.er1 | ||
2101 | cat conftest.err >&5 | ||
2102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2103 | (exit $ac_status); } && | ||
2104 | { ac_try='test -z "$ac_c_werror_flag" | ||
2105 | || test ! -s conftest.err' | ||
2106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2107 | (eval $ac_try) 2>&5 | ||
2108 | ac_status=$? | ||
2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2110 | (exit $ac_status); }; } && | ||
2111 | { ac_try='test -s conftest.$ac_objext' | ||
2112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2113 | (eval $ac_try) 2>&5 | ||
2114 | ac_status=$? | ||
2115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2116 | (exit $ac_status); }; }; then | ||
2117 | ac_cv_prog_cc_stdc=$ac_arg | ||
2118 | break | ||
2119 | else | ||
2120 | echo "$as_me: failed program was:" >&5 | ||
2121 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2122 | |||
2123 | fi | ||
2124 | rm -f conftest.err conftest.$ac_objext | ||
2125 | done | ||
2126 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
2127 | CC=$ac_save_CC | ||
2128 | |||
2129 | fi | ||
2130 | |||
2131 | case "x$ac_cv_prog_cc_stdc" in | ||
2132 | x|xno) | ||
2133 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
2134 | echo "${ECHO_T}none needed" >&6 ;; | ||
2135 | *) | ||
2136 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
2137 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
2138 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
2139 | esac | ||
2140 | |||
2141 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
2142 | # in C++ we need to declare it. In case someone uses the same compiler | ||
2143 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
2144 | # the declaration of exit, since it's the most demanding environment. | ||
2145 | cat >conftest.$ac_ext <<_ACEOF | ||
2146 | #ifndef __cplusplus | ||
2147 | choke me | ||
2148 | #endif | ||
2149 | _ACEOF | ||
2150 | rm -f conftest.$ac_objext | ||
2151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2152 | (eval $ac_compile) 2>conftest.er1 | ||
2153 | ac_status=$? | ||
2154 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2155 | rm -f conftest.er1 | ||
2156 | cat conftest.err >&5 | ||
2157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2158 | (exit $ac_status); } && | ||
2159 | { ac_try='test -z "$ac_c_werror_flag" | ||
2160 | || test ! -s conftest.err' | ||
2161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2162 | (eval $ac_try) 2>&5 | ||
2163 | ac_status=$? | ||
2164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2165 | (exit $ac_status); }; } && | ||
2166 | { ac_try='test -s conftest.$ac_objext' | ||
2167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2168 | (eval $ac_try) 2>&5 | ||
2169 | ac_status=$? | ||
2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2171 | (exit $ac_status); }; }; then | ||
2172 | for ac_declaration in \ | ||
2173 | '' \ | ||
2174 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
2175 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
2176 | 'extern "C" void exit (int) throw ();' \ | ||
2177 | 'extern "C" void exit (int);' \ | ||
2178 | 'void exit (int);' | ||
2179 | do | ||
2180 | cat >conftest.$ac_ext <<_ACEOF | ||
2181 | /* confdefs.h. */ | ||
2182 | _ACEOF | ||
2183 | cat confdefs.h >>conftest.$ac_ext | ||
2184 | cat >>conftest.$ac_ext <<_ACEOF | ||
2185 | /* end confdefs.h. */ | ||
2186 | $ac_declaration | ||
2187 | #include <stdlib.h> | ||
2188 | int | ||
2189 | main () | ||
2190 | { | ||
2191 | exit (42); | ||
2192 | ; | ||
2193 | return 0; | ||
2194 | } | ||
2195 | _ACEOF | ||
2196 | rm -f conftest.$ac_objext | ||
2197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2198 | (eval $ac_compile) 2>conftest.er1 | ||
2199 | ac_status=$? | ||
2200 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2201 | rm -f conftest.er1 | ||
2202 | cat conftest.err >&5 | ||
2203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2204 | (exit $ac_status); } && | ||
2205 | { ac_try='test -z "$ac_c_werror_flag" | ||
2206 | || test ! -s conftest.err' | ||
2207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2208 | (eval $ac_try) 2>&5 | ||
2209 | ac_status=$? | ||
2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2211 | (exit $ac_status); }; } && | ||
2212 | { ac_try='test -s conftest.$ac_objext' | ||
2213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2214 | (eval $ac_try) 2>&5 | ||
2215 | ac_status=$? | ||
2216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2217 | (exit $ac_status); }; }; then | ||
2218 | : | ||
2219 | else | ||
2220 | echo "$as_me: failed program was:" >&5 | ||
2221 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2222 | |||
2223 | continue | ||
2224 | fi | ||
2225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2226 | cat >conftest.$ac_ext <<_ACEOF | ||
2227 | /* confdefs.h. */ | ||
2228 | _ACEOF | ||
2229 | cat confdefs.h >>conftest.$ac_ext | ||
2230 | cat >>conftest.$ac_ext <<_ACEOF | ||
2231 | /* end confdefs.h. */ | ||
2232 | $ac_declaration | ||
2233 | int | ||
2234 | main () | ||
2235 | { | ||
2236 | exit (42); | ||
2237 | ; | ||
2238 | return 0; | ||
2239 | } | ||
2240 | _ACEOF | ||
2241 | rm -f conftest.$ac_objext | ||
2242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2243 | (eval $ac_compile) 2>conftest.er1 | ||
2244 | ac_status=$? | ||
2245 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2246 | rm -f conftest.er1 | ||
2247 | cat conftest.err >&5 | ||
2248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2249 | (exit $ac_status); } && | ||
2250 | { ac_try='test -z "$ac_c_werror_flag" | ||
2251 | || test ! -s conftest.err' | ||
2252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2253 | (eval $ac_try) 2>&5 | ||
2254 | ac_status=$? | ||
2255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2256 | (exit $ac_status); }; } && | ||
2257 | { ac_try='test -s conftest.$ac_objext' | ||
2258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2259 | (eval $ac_try) 2>&5 | ||
2260 | ac_status=$? | ||
2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2262 | (exit $ac_status); }; }; then | ||
2263 | break | ||
2264 | else | ||
2265 | echo "$as_me: failed program was:" >&5 | ||
2266 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2267 | |||
2268 | fi | ||
2269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2270 | done | ||
2271 | rm -f conftest* | ||
2272 | if test -n "$ac_declaration"; then | ||
2273 | echo '#ifdef __cplusplus' >>confdefs.h | ||
2274 | echo $ac_declaration >>confdefs.h | ||
2275 | echo '#endif' >>confdefs.h | ||
2276 | fi | ||
2277 | |||
2278 | else | ||
2279 | echo "$as_me: failed program was:" >&5 | ||
2280 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2281 | |||
2282 | fi | ||
2283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2284 | ac_ext=c | ||
2285 | ac_cpp='$CPP $CPPFLAGS' | ||
2286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2289 | |||
2290 | ac_aux_dir= | ||
2291 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
2292 | if test -f $ac_dir/install-sh; then | ||
2293 | ac_aux_dir=$ac_dir | ||
2294 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2295 | break | ||
2296 | elif test -f $ac_dir/install.sh; then | ||
2297 | ac_aux_dir=$ac_dir | ||
2298 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2299 | break | ||
2300 | elif test -f $ac_dir/shtool; then | ||
2301 | ac_aux_dir=$ac_dir | ||
2302 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2303 | break | ||
2304 | fi | ||
2305 | done | ||
2306 | if test -z "$ac_aux_dir"; then | ||
2307 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
2308 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
2309 | { (exit 1); exit 1; }; } | ||
2310 | fi | ||
2311 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
2312 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
2313 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
2314 | |||
2315 | # Make sure we can run config.sub. | ||
2316 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
2317 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ||
2318 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
2319 | { (exit 1); exit 1; }; } | ||
2320 | |||
2321 | echo "$as_me:$LINENO: checking build system type" >&5 | ||
2322 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
2323 | if test "${ac_cv_build+set}" = set; then | ||
2324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2325 | else | ||
2326 | ac_cv_build_alias=$build_alias | ||
2327 | test -z "$ac_cv_build_alias" && | ||
2328 | ac_cv_build_alias=`$ac_config_guess` | ||
2329 | test -z "$ac_cv_build_alias" && | ||
2330 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2331 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2332 | { (exit 1); exit 1; }; } | ||
2333 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
2334 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
2335 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
2336 | { (exit 1); exit 1; }; } | ||
2337 | |||
2338 | fi | ||
2339 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2340 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
2341 | build=$ac_cv_build | ||
2342 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2343 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2344 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2345 | |||
2346 | |||
2347 | echo "$as_me:$LINENO: checking host system type" >&5 | ||
2348 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
2349 | if test "${ac_cv_host+set}" = set; then | ||
2350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2351 | else | ||
2352 | ac_cv_host_alias=$host_alias | ||
2353 | test -z "$ac_cv_host_alias" && | ||
2354 | ac_cv_host_alias=$ac_cv_build_alias | ||
2355 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
2356 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
2357 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
2358 | { (exit 1); exit 1; }; } | ||
2359 | |||
2360 | fi | ||
2361 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2362 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
2363 | host=$ac_cv_host | ||
2364 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2365 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2366 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2367 | |||
2368 | |||
2369 | |||
2370 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
2371 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | ||
2372 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
2373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2374 | else | ||
2375 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
2376 | cat >conftest.$ac_ext <<_ACEOF | ||
2377 | /* confdefs.h. */ | ||
2378 | _ACEOF | ||
2379 | cat confdefs.h >>conftest.$ac_ext | ||
2380 | cat >>conftest.$ac_ext <<_ACEOF | ||
2381 | /* end confdefs.h. */ | ||
2382 | #include <sys/types.h> | ||
2383 | #include <sys/param.h> | ||
2384 | |||
2385 | int | ||
2386 | main () | ||
2387 | { | ||
2388 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
2389 | bogus endian macros | ||
2390 | #endif | ||
2391 | |||
2392 | ; | ||
2393 | return 0; | ||
2394 | } | ||
2395 | _ACEOF | ||
2396 | rm -f conftest.$ac_objext | ||
2397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2398 | (eval $ac_compile) 2>conftest.er1 | ||
2399 | ac_status=$? | ||
2400 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2401 | rm -f conftest.er1 | ||
2402 | cat conftest.err >&5 | ||
2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2404 | (exit $ac_status); } && | ||
2405 | { ac_try='test -z "$ac_c_werror_flag" | ||
2406 | || test ! -s conftest.err' | ||
2407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2408 | (eval $ac_try) 2>&5 | ||
2409 | ac_status=$? | ||
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2411 | (exit $ac_status); }; } && | ||
2412 | { ac_try='test -s conftest.$ac_objext' | ||
2413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2414 | (eval $ac_try) 2>&5 | ||
2415 | ac_status=$? | ||
2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2417 | (exit $ac_status); }; }; then | ||
2418 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
2419 | cat >conftest.$ac_ext <<_ACEOF | ||
2420 | /* confdefs.h. */ | ||
2421 | _ACEOF | ||
2422 | cat confdefs.h >>conftest.$ac_ext | ||
2423 | cat >>conftest.$ac_ext <<_ACEOF | ||
2424 | /* end confdefs.h. */ | ||
2425 | #include <sys/types.h> | ||
2426 | #include <sys/param.h> | ||
2427 | |||
2428 | int | ||
2429 | main () | ||
2430 | { | ||
2431 | #if BYTE_ORDER != BIG_ENDIAN | ||
2432 | not big endian | ||
2433 | #endif | ||
2434 | |||
2435 | ; | ||
2436 | return 0; | ||
2437 | } | ||
2438 | _ACEOF | ||
2439 | rm -f conftest.$ac_objext | ||
2440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2441 | (eval $ac_compile) 2>conftest.er1 | ||
2442 | ac_status=$? | ||
2443 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2444 | rm -f conftest.er1 | ||
2445 | cat conftest.err >&5 | ||
2446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2447 | (exit $ac_status); } && | ||
2448 | { ac_try='test -z "$ac_c_werror_flag" | ||
2449 | || test ! -s conftest.err' | ||
2450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2451 | (eval $ac_try) 2>&5 | ||
2452 | ac_status=$? | ||
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2454 | (exit $ac_status); }; } && | ||
2455 | { ac_try='test -s conftest.$ac_objext' | ||
2456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2457 | (eval $ac_try) 2>&5 | ||
2458 | ac_status=$? | ||
2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2460 | (exit $ac_status); }; }; then | ||
2461 | ac_cv_c_bigendian=yes | ||
2462 | else | ||
2463 | echo "$as_me: failed program was:" >&5 | ||
2464 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2465 | |||
2466 | ac_cv_c_bigendian=no | ||
2467 | fi | ||
2468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2469 | else | ||
2470 | echo "$as_me: failed program was:" >&5 | ||
2471 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2472 | |||
2473 | # It does not; compile a test program. | ||
2474 | if test "$cross_compiling" = yes; then | ||
2475 | # try to guess the endianness by grepping values into an object file | ||
2476 | ac_cv_c_bigendian=unknown | ||
2477 | cat >conftest.$ac_ext <<_ACEOF | ||
2478 | /* confdefs.h. */ | ||
2479 | _ACEOF | ||
2480 | cat confdefs.h >>conftest.$ac_ext | ||
2481 | cat >>conftest.$ac_ext <<_ACEOF | ||
2482 | /* end confdefs.h. */ | ||
2483 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
2484 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
2485 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
2486 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
2487 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
2488 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
2489 | int | ||
2490 | main () | ||
2491 | { | ||
2492 | _ascii (); _ebcdic (); | ||
2493 | ; | ||
2494 | return 0; | ||
2495 | } | ||
2496 | _ACEOF | ||
2497 | rm -f conftest.$ac_objext | ||
2498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2499 | (eval $ac_compile) 2>conftest.er1 | ||
2500 | ac_status=$? | ||
2501 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2502 | rm -f conftest.er1 | ||
2503 | cat conftest.err >&5 | ||
2504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2505 | (exit $ac_status); } && | ||
2506 | { ac_try='test -z "$ac_c_werror_flag" | ||
2507 | || test ! -s conftest.err' | ||
2508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2509 | (eval $ac_try) 2>&5 | ||
2510 | ac_status=$? | ||
2511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2512 | (exit $ac_status); }; } && | ||
2513 | { ac_try='test -s conftest.$ac_objext' | ||
2514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2515 | (eval $ac_try) 2>&5 | ||
2516 | ac_status=$? | ||
2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2518 | (exit $ac_status); }; }; then | ||
2519 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
2520 | ac_cv_c_bigendian=yes | ||
2521 | fi | ||
2522 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
2523 | if test "$ac_cv_c_bigendian" = unknown; then | ||
2524 | ac_cv_c_bigendian=no | ||
2525 | else | ||
2526 | # finding both strings is unlikely to happen, but who knows? | ||
2527 | ac_cv_c_bigendian=unknown | ||
2528 | fi | ||
2529 | fi | ||
2530 | else | ||
2531 | echo "$as_me: failed program was:" >&5 | ||
2532 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2533 | |||
2534 | fi | ||
2535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2536 | else | ||
2537 | cat >conftest.$ac_ext <<_ACEOF | ||
2538 | /* confdefs.h. */ | ||
2539 | _ACEOF | ||
2540 | cat confdefs.h >>conftest.$ac_ext | ||
2541 | cat >>conftest.$ac_ext <<_ACEOF | ||
2542 | /* end confdefs.h. */ | ||
2543 | int | ||
2544 | main () | ||
2545 | { | ||
2546 | /* Are we little or big endian? From Harbison&Steele. */ | ||
2547 | union | ||
2548 | { | ||
2549 | long l; | ||
2550 | char c[sizeof (long)]; | ||
2551 | } u; | ||
2552 | u.l = 1; | ||
2553 | exit (u.c[sizeof (long) - 1] == 1); | ||
2554 | } | ||
2555 | _ACEOF | ||
2556 | rm -f conftest$ac_exeext | ||
2557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2558 | (eval $ac_link) 2>&5 | ||
2559 | ac_status=$? | ||
2560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2561 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
2562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2563 | (eval $ac_try) 2>&5 | ||
2564 | ac_status=$? | ||
2565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2566 | (exit $ac_status); }; }; then | ||
2567 | ac_cv_c_bigendian=no | ||
2568 | else | ||
2569 | echo "$as_me: program exited with status $ac_status" >&5 | ||
2570 | echo "$as_me: failed program was:" >&5 | ||
2571 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2572 | |||
2573 | ( exit $ac_status ) | ||
2574 | ac_cv_c_bigendian=yes | ||
2575 | fi | ||
2576 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
2577 | fi | ||
2578 | fi | ||
2579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2580 | fi | ||
2581 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
2582 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | ||
2583 | case $ac_cv_c_bigendian in | ||
2584 | yes) | ||
2585 | |||
2586 | cat >>confdefs.h <<\_ACEOF | ||
2587 | #define WORDS_BIGENDIAN 1 | ||
2588 | _ACEOF | ||
2589 | ;; | ||
2590 | no) | ||
2591 | ;; | ||
2592 | *) | ||
2593 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
2594 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
2595 | echo "$as_me: error: unknown endianness | ||
2596 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
2597 | { (exit 1); exit 1; }; } ;; | ||
2598 | esac | ||
2599 | |||
2600 | |||
2601 | # Checks for programs. | ||
2602 | for ac_prog in gawk mawk nawk awk | ||
2603 | do | ||
2604 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2605 | set dummy $ac_prog; ac_word=$2 | ||
2606 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2608 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
2609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2610 | else | ||
2611 | if test -n "$AWK"; then | ||
2612 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2613 | else | ||
2614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2615 | for as_dir in $PATH | ||
2616 | do | ||
2617 | IFS=$as_save_IFS | ||
2618 | test -z "$as_dir" && as_dir=. | ||
2619 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2620 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2621 | ac_cv_prog_AWK="$ac_prog" | ||
2622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2623 | break 2 | ||
2624 | fi | ||
2625 | done | ||
2626 | done | ||
2627 | |||
2628 | fi | ||
2629 | fi | ||
2630 | AWK=$ac_cv_prog_AWK | ||
2631 | if test -n "$AWK"; then | ||
2632 | echo "$as_me:$LINENO: result: $AWK" >&5 | ||
2633 | echo "${ECHO_T}$AWK" >&6 | ||
2634 | else | ||
2635 | echo "$as_me:$LINENO: result: no" >&5 | ||
2636 | echo "${ECHO_T}no" >&6 | ||
2637 | fi | ||
2638 | |||
2639 | test -n "$AWK" && break | ||
2640 | done | ||
2641 | |||
2642 | ac_ext=c | ||
2643 | ac_cpp='$CPP $CPPFLAGS' | ||
2644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2647 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2648 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
2649 | # On Suns, sometimes $CPP names a directory. | ||
2650 | if test -n "$CPP" && test -d "$CPP"; then | ||
2651 | CPP= | ||
2652 | fi | ||
2653 | if test -z "$CPP"; then | ||
2654 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2656 | else | ||
2657 | # Double quotes because CPP needs to be expanded | ||
2658 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2659 | do | ||
2660 | ac_preproc_ok=false | ||
2661 | for ac_c_preproc_warn_flag in '' yes | ||
2662 | do | ||
2663 | # Use a header file that comes with gcc, so configuring glibc | ||
2664 | # with a fresh cross-compiler works. | ||
2665 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2666 | # <limits.h> exists even on freestanding compilers. | ||
2667 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2668 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2669 | cat >conftest.$ac_ext <<_ACEOF | ||
2670 | /* confdefs.h. */ | ||
2671 | _ACEOF | ||
2672 | cat confdefs.h >>conftest.$ac_ext | ||
2673 | cat >>conftest.$ac_ext <<_ACEOF | ||
2674 | /* end confdefs.h. */ | ||
2675 | #ifdef __STDC__ | ||
2676 | # include <limits.h> | ||
2677 | #else | ||
2678 | # include <assert.h> | ||
2679 | #endif | ||
2680 | Syntax error | ||
2681 | _ACEOF | ||
2682 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2683 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2684 | ac_status=$? | ||
2685 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2686 | rm -f conftest.er1 | ||
2687 | cat conftest.err >&5 | ||
2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2689 | (exit $ac_status); } >/dev/null; then | ||
2690 | if test -s conftest.err; then | ||
2691 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2692 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2693 | else | ||
2694 | ac_cpp_err= | ||
2695 | fi | ||
2696 | else | ||
2697 | ac_cpp_err=yes | ||
2698 | fi | ||
2699 | if test -z "$ac_cpp_err"; then | ||
2700 | : | ||
2701 | else | ||
2702 | echo "$as_me: failed program was:" >&5 | ||
2703 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2704 | |||
2705 | # Broken: fails on valid input. | ||
2706 | continue | ||
2707 | fi | ||
2708 | rm -f conftest.err conftest.$ac_ext | ||
2709 | |||
2710 | # OK, works on sane cases. Now check whether non-existent headers | ||
2711 | # can be detected and how. | ||
2712 | cat >conftest.$ac_ext <<_ACEOF | ||
2713 | /* confdefs.h. */ | ||
2714 | _ACEOF | ||
2715 | cat confdefs.h >>conftest.$ac_ext | ||
2716 | cat >>conftest.$ac_ext <<_ACEOF | ||
2717 | /* end confdefs.h. */ | ||
2718 | #include <ac_nonexistent.h> | ||
2719 | _ACEOF | ||
2720 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2721 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2722 | ac_status=$? | ||
2723 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2724 | rm -f conftest.er1 | ||
2725 | cat conftest.err >&5 | ||
2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2727 | (exit $ac_status); } >/dev/null; then | ||
2728 | if test -s conftest.err; then | ||
2729 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2730 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2731 | else | ||
2732 | ac_cpp_err= | ||
2733 | fi | ||
2734 | else | ||
2735 | ac_cpp_err=yes | ||
2736 | fi | ||
2737 | if test -z "$ac_cpp_err"; then | ||
2738 | # Broken: success on invalid input. | ||
2739 | continue | ||
2740 | else | ||
2741 | echo "$as_me: failed program was:" >&5 | ||
2742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2743 | |||
2744 | # Passes both tests. | ||
2745 | ac_preproc_ok=: | ||
2746 | break | ||
2747 | fi | ||
2748 | rm -f conftest.err conftest.$ac_ext | ||
2749 | |||
2750 | done | ||
2751 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2752 | rm -f conftest.err conftest.$ac_ext | ||
2753 | if $ac_preproc_ok; then | ||
2754 | break | ||
2755 | fi | ||
2756 | |||
2757 | done | ||
2758 | ac_cv_prog_CPP=$CPP | ||
2759 | |||
2760 | fi | ||
2761 | CPP=$ac_cv_prog_CPP | ||
2762 | else | ||
2763 | ac_cv_prog_CPP=$CPP | ||
2764 | fi | ||
2765 | echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2766 | echo "${ECHO_T}$CPP" >&6 | ||
2767 | ac_preproc_ok=false | ||
2768 | for ac_c_preproc_warn_flag in '' yes | ||
2769 | do | ||
2770 | # Use a header file that comes with gcc, so configuring glibc | ||
2771 | # with a fresh cross-compiler works. | ||
2772 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2773 | # <limits.h> exists even on freestanding compilers. | ||
2774 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2775 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2776 | cat >conftest.$ac_ext <<_ACEOF | ||
2777 | /* confdefs.h. */ | ||
2778 | _ACEOF | ||
2779 | cat confdefs.h >>conftest.$ac_ext | ||
2780 | cat >>conftest.$ac_ext <<_ACEOF | ||
2781 | /* end confdefs.h. */ | ||
2782 | #ifdef __STDC__ | ||
2783 | # include <limits.h> | ||
2784 | #else | ||
2785 | # include <assert.h> | ||
2786 | #endif | ||
2787 | Syntax error | ||
2788 | _ACEOF | ||
2789 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2790 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2791 | ac_status=$? | ||
2792 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2793 | rm -f conftest.er1 | ||
2794 | cat conftest.err >&5 | ||
2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2796 | (exit $ac_status); } >/dev/null; then | ||
2797 | if test -s conftest.err; then | ||
2798 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2799 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2800 | else | ||
2801 | ac_cpp_err= | ||
2802 | fi | ||
2803 | else | ||
2804 | ac_cpp_err=yes | ||
2805 | fi | ||
2806 | if test -z "$ac_cpp_err"; then | ||
2807 | : | ||
2808 | else | ||
2809 | echo "$as_me: failed program was:" >&5 | ||
2810 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2811 | |||
2812 | # Broken: fails on valid input. | ||
2813 | continue | ||
2814 | fi | ||
2815 | rm -f conftest.err conftest.$ac_ext | ||
2816 | |||
2817 | # OK, works on sane cases. Now check whether non-existent headers | ||
2818 | # can be detected and how. | ||
2819 | cat >conftest.$ac_ext <<_ACEOF | ||
2820 | /* confdefs.h. */ | ||
2821 | _ACEOF | ||
2822 | cat confdefs.h >>conftest.$ac_ext | ||
2823 | cat >>conftest.$ac_ext <<_ACEOF | ||
2824 | /* end confdefs.h. */ | ||
2825 | #include <ac_nonexistent.h> | ||
2826 | _ACEOF | ||
2827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2829 | ac_status=$? | ||
2830 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2831 | rm -f conftest.er1 | ||
2832 | cat conftest.err >&5 | ||
2833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2834 | (exit $ac_status); } >/dev/null; then | ||
2835 | if test -s conftest.err; then | ||
2836 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2837 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2838 | else | ||
2839 | ac_cpp_err= | ||
2840 | fi | ||
2841 | else | ||
2842 | ac_cpp_err=yes | ||
2843 | fi | ||
2844 | if test -z "$ac_cpp_err"; then | ||
2845 | # Broken: success on invalid input. | ||
2846 | continue | ||
2847 | else | ||
2848 | echo "$as_me: failed program was:" >&5 | ||
2849 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2850 | |||
2851 | # Passes both tests. | ||
2852 | ac_preproc_ok=: | ||
2853 | break | ||
2854 | fi | ||
2855 | rm -f conftest.err conftest.$ac_ext | ||
2856 | |||
2857 | done | ||
2858 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2859 | rm -f conftest.err conftest.$ac_ext | ||
2860 | if $ac_preproc_ok; then | ||
2861 | : | ||
2862 | else | ||
2863 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
2864 | See \`config.log' for more details." >&5 | ||
2865 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
2866 | See \`config.log' for more details." >&2;} | ||
2867 | { (exit 1); exit 1; }; } | ||
2868 | fi | ||
2869 | |||
2870 | ac_ext=c | ||
2871 | ac_cpp='$CPP $CPPFLAGS' | ||
2872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2875 | |||
2876 | if test -n "$ac_tool_prefix"; then | ||
2877 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
2878 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
2879 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2881 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
2882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2883 | else | ||
2884 | if test -n "$RANLIB"; then | ||
2885 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
2886 | else | ||
2887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2888 | for as_dir in $PATH | ||
2889 | do | ||
2890 | IFS=$as_save_IFS | ||
2891 | test -z "$as_dir" && as_dir=. | ||
2892 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2893 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2894 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
2895 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2896 | break 2 | ||
2897 | fi | ||
2898 | done | ||
2899 | done | ||
2900 | |||
2901 | fi | ||
2902 | fi | ||
2903 | RANLIB=$ac_cv_prog_RANLIB | ||
2904 | if test -n "$RANLIB"; then | ||
2905 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
2906 | echo "${ECHO_T}$RANLIB" >&6 | ||
2907 | else | ||
2908 | echo "$as_me:$LINENO: result: no" >&5 | ||
2909 | echo "${ECHO_T}no" >&6 | ||
2910 | fi | ||
2911 | |||
2912 | fi | ||
2913 | if test -z "$ac_cv_prog_RANLIB"; then | ||
2914 | ac_ct_RANLIB=$RANLIB | ||
2915 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
2916 | set dummy ranlib; ac_word=$2 | ||
2917 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2919 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
2920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2921 | else | ||
2922 | if test -n "$ac_ct_RANLIB"; then | ||
2923 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
2924 | else | ||
2925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2926 | for as_dir in $PATH | ||
2927 | do | ||
2928 | IFS=$as_save_IFS | ||
2929 | test -z "$as_dir" && as_dir=. | ||
2930 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2931 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2932 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
2933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2934 | break 2 | ||
2935 | fi | ||
2936 | done | ||
2937 | done | ||
2938 | |||
2939 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
2940 | fi | ||
2941 | fi | ||
2942 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
2943 | if test -n "$ac_ct_RANLIB"; then | ||
2944 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
2945 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
2946 | else | ||
2947 | echo "$as_me:$LINENO: result: no" >&5 | ||
2948 | echo "${ECHO_T}no" >&6 | ||
2949 | fi | ||
2950 | |||
2951 | RANLIB=$ac_ct_RANLIB | ||
2952 | else | ||
2953 | RANLIB="$ac_cv_prog_RANLIB" | ||
2954 | fi | ||
2955 | |||
2956 | # Find a good install program. We prefer a C program (faster), | ||
2957 | # so one script is as good as another. But avoid the broken or | ||
2958 | # incompatible versions: | ||
2959 | # SysV /etc/install, /usr/sbin/install | ||
2960 | # SunOS /usr/etc/install | ||
2961 | # IRIX /sbin/install | ||
2962 | # AIX /bin/install | ||
2963 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2964 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2965 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2966 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2967 | # OS/2's system install, which has a completely different semantic | ||
2968 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2969 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
2970 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
2971 | if test -z "$INSTALL"; then | ||
2972 | if test "${ac_cv_path_install+set}" = set; then | ||
2973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2974 | else | ||
2975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2976 | for as_dir in $PATH | ||
2977 | do | ||
2978 | IFS=$as_save_IFS | ||
2979 | test -z "$as_dir" && as_dir=. | ||
2980 | # Account for people who put trailing slashes in PATH elements. | ||
2981 | case $as_dir/ in | ||
2982 | ./ | .// | /cC/* | \ | ||
2983 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2984 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
2985 | /usr/ucb/* ) ;; | ||
2986 | *) | ||
2987 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2988 | # Don't use installbsd from OSF since it installs stuff as root | ||
2989 | # by default. | ||
2990 | for ac_prog in ginstall scoinst install; do | ||
2991 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2992 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
2993 | if test $ac_prog = install && | ||
2994 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2995 | # AIX install. It has an incompatible calling convention. | ||
2996 | : | ||
2997 | elif test $ac_prog = install && | ||
2998 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2999 | # program-specific install script used by HP pwplus--don't use. | ||
3000 | : | ||
3001 | else | ||
3002 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3003 | break 3 | ||
3004 | fi | ||
3005 | fi | ||
3006 | done | ||
3007 | done | ||
3008 | ;; | ||
3009 | esac | ||
3010 | done | ||
3011 | |||
3012 | |||
3013 | fi | ||
3014 | if test "${ac_cv_path_install+set}" = set; then | ||
3015 | INSTALL=$ac_cv_path_install | ||
3016 | else | ||
3017 | # As a last resort, use the slow shell script. We don't cache a | ||
3018 | # path for INSTALL within a source directory, because that will | ||
3019 | # break other packages using the cache if that directory is | ||
3020 | # removed, or if the path is relative. | ||
3021 | INSTALL=$ac_install_sh | ||
3022 | fi | ||
3023 | fi | ||
3024 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
3025 | echo "${ECHO_T}$INSTALL" >&6 | ||
3026 | |||
3027 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3028 | # It thinks the first close brace ends the variable substitution. | ||
3029 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3030 | |||
3031 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3032 | |||
3033 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3034 | |||
3035 | # Extract the first word of "ar", so it can be a program name with args. | ||
3036 | set dummy ar; ac_word=$2 | ||
3037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3039 | if test "${ac_cv_path_AR+set}" = set; then | ||
3040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3041 | else | ||
3042 | case $AR in | ||
3043 | [\\/]* | ?:[\\/]*) | ||
3044 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
3045 | ;; | ||
3046 | *) | ||
3047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3048 | for as_dir in $PATH | ||
3049 | do | ||
3050 | IFS=$as_save_IFS | ||
3051 | test -z "$as_dir" && as_dir=. | ||
3052 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3054 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
3055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3056 | break 2 | ||
3057 | fi | ||
3058 | done | ||
3059 | done | ||
3060 | |||
3061 | ;; | ||
3062 | esac | ||
3063 | fi | ||
3064 | AR=$ac_cv_path_AR | ||
3065 | |||
3066 | if test -n "$AR"; then | ||
3067 | echo "$as_me:$LINENO: result: $AR" >&5 | ||
3068 | echo "${ECHO_T}$AR" >&6 | ||
3069 | else | ||
3070 | echo "$as_me:$LINENO: result: no" >&5 | ||
3071 | echo "${ECHO_T}no" >&6 | ||
3072 | fi | ||
3073 | |||
3074 | # Extract the first word of "cat", so it can be a program name with args. | ||
3075 | set dummy cat; ac_word=$2 | ||
3076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3078 | if test "${ac_cv_path_CAT+set}" = set; then | ||
3079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3080 | else | ||
3081 | case $CAT in | ||
3082 | [\\/]* | ?:[\\/]*) | ||
3083 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
3084 | ;; | ||
3085 | *) | ||
3086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3087 | for as_dir in $PATH | ||
3088 | do | ||
3089 | IFS=$as_save_IFS | ||
3090 | test -z "$as_dir" && as_dir=. | ||
3091 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3092 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3093 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
3094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3095 | break 2 | ||
3096 | fi | ||
3097 | done | ||
3098 | done | ||
3099 | |||
3100 | ;; | ||
3101 | esac | ||
3102 | fi | ||
3103 | CAT=$ac_cv_path_CAT | ||
3104 | |||
3105 | if test -n "$CAT"; then | ||
3106 | echo "$as_me:$LINENO: result: $CAT" >&5 | ||
3107 | echo "${ECHO_T}$CAT" >&6 | ||
3108 | else | ||
3109 | echo "$as_me:$LINENO: result: no" >&5 | ||
3110 | echo "${ECHO_T}no" >&6 | ||
3111 | fi | ||
3112 | |||
3113 | # Extract the first word of "kill", so it can be a program name with args. | ||
3114 | set dummy kill; ac_word=$2 | ||
3115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3117 | if test "${ac_cv_path_KILL+set}" = set; then | ||
3118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3119 | else | ||
3120 | case $KILL in | ||
3121 | [\\/]* | ?:[\\/]*) | ||
3122 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
3123 | ;; | ||
3124 | *) | ||
3125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3126 | for as_dir in $PATH | ||
3127 | do | ||
3128 | IFS=$as_save_IFS | ||
3129 | test -z "$as_dir" && as_dir=. | ||
3130 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3131 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3132 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
3133 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3134 | break 2 | ||
3135 | fi | ||
3136 | done | ||
3137 | done | ||
3138 | |||
3139 | ;; | ||
3140 | esac | ||
3141 | fi | ||
3142 | KILL=$ac_cv_path_KILL | ||
3143 | |||
3144 | if test -n "$KILL"; then | ||
3145 | echo "$as_me:$LINENO: result: $KILL" >&5 | ||
3146 | echo "${ECHO_T}$KILL" >&6 | ||
3147 | else | ||
3148 | echo "$as_me:$LINENO: result: no" >&5 | ||
3149 | echo "${ECHO_T}no" >&6 | ||
3150 | fi | ||
3151 | |||
3152 | for ac_prog in perl5 perl | ||
3153 | do | ||
3154 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3155 | set dummy $ac_prog; ac_word=$2 | ||
3156 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3158 | if test "${ac_cv_path_PERL+set}" = set; then | ||
3159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3160 | else | ||
3161 | case $PERL in | ||
3162 | [\\/]* | ?:[\\/]*) | ||
3163 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
3164 | ;; | ||
3165 | *) | ||
3166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3167 | for as_dir in $PATH | ||
3168 | do | ||
3169 | IFS=$as_save_IFS | ||
3170 | test -z "$as_dir" && as_dir=. | ||
3171 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3172 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3173 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
3174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3175 | break 2 | ||
3176 | fi | ||
3177 | done | ||
3178 | done | ||
3179 | |||
3180 | ;; | ||
3181 | esac | ||
3182 | fi | ||
3183 | PERL=$ac_cv_path_PERL | ||
3184 | |||
3185 | if test -n "$PERL"; then | ||
3186 | echo "$as_me:$LINENO: result: $PERL" >&5 | ||
3187 | echo "${ECHO_T}$PERL" >&6 | ||
3188 | else | ||
3189 | echo "$as_me:$LINENO: result: no" >&5 | ||
3190 | echo "${ECHO_T}no" >&6 | ||
3191 | fi | ||
3192 | |||
3193 | test -n "$PERL" && break | ||
3194 | done | ||
3195 | |||
3196 | # Extract the first word of "sed", so it can be a program name with args. | ||
3197 | set dummy sed; ac_word=$2 | ||
3198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3200 | if test "${ac_cv_path_SED+set}" = set; then | ||
3201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3202 | else | ||
3203 | case $SED in | ||
3204 | [\\/]* | ?:[\\/]*) | ||
3205 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
3206 | ;; | ||
3207 | *) | ||
3208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3209 | for as_dir in $PATH | ||
3210 | do | ||
3211 | IFS=$as_save_IFS | ||
3212 | test -z "$as_dir" && as_dir=. | ||
3213 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3214 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3215 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
3216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3217 | break 2 | ||
3218 | fi | ||
3219 | done | ||
3220 | done | ||
3221 | |||
3222 | ;; | ||
3223 | esac | ||
3224 | fi | ||
3225 | SED=$ac_cv_path_SED | ||
3226 | |||
3227 | if test -n "$SED"; then | ||
3228 | echo "$as_me:$LINENO: result: $SED" >&5 | ||
3229 | echo "${ECHO_T}$SED" >&6 | ||
3230 | else | ||
3231 | echo "$as_me:$LINENO: result: no" >&5 | ||
3232 | echo "${ECHO_T}no" >&6 | ||
3233 | fi | ||
3234 | |||
3235 | |||
3236 | # Extract the first word of "ent", so it can be a program name with args. | ||
3237 | set dummy ent; ac_word=$2 | ||
3238 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3240 | if test "${ac_cv_path_ENT+set}" = set; then | ||
3241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3242 | else | ||
3243 | case $ENT in | ||
3244 | [\\/]* | ?:[\\/]*) | ||
3245 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
3246 | ;; | ||
3247 | *) | ||
3248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3249 | for as_dir in $PATH | ||
3250 | do | ||
3251 | IFS=$as_save_IFS | ||
3252 | test -z "$as_dir" && as_dir=. | ||
3253 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3254 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3255 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
3256 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3257 | break 2 | ||
3258 | fi | ||
3259 | done | ||
3260 | done | ||
3261 | |||
3262 | ;; | ||
3263 | esac | ||
3264 | fi | ||
3265 | ENT=$ac_cv_path_ENT | ||
3266 | |||
3267 | if test -n "$ENT"; then | ||
3268 | echo "$as_me:$LINENO: result: $ENT" >&5 | ||
3269 | echo "${ECHO_T}$ENT" >&6 | ||
3270 | else | ||
3271 | echo "$as_me:$LINENO: result: no" >&5 | ||
3272 | echo "${ECHO_T}no" >&6 | ||
3273 | fi | ||
3274 | |||
3275 | |||
3276 | # Extract the first word of "bash", so it can be a program name with args. | ||
3277 | set dummy bash; ac_word=$2 | ||
3278 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3280 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3282 | else | ||
3283 | case $TEST_MINUS_S_SH in | ||
3284 | [\\/]* | ?:[\\/]*) | ||
3285 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3286 | ;; | ||
3287 | *) | ||
3288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3289 | for as_dir in $PATH | ||
3290 | do | ||
3291 | IFS=$as_save_IFS | ||
3292 | test -z "$as_dir" && as_dir=. | ||
3293 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3294 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3295 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3297 | break 2 | ||
3298 | fi | ||
3299 | done | ||
3300 | done | ||
3301 | |||
3302 | ;; | ||
3303 | esac | ||
3304 | fi | ||
3305 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3306 | |||
3307 | if test -n "$TEST_MINUS_S_SH"; then | ||
3308 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3309 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3310 | else | ||
3311 | echo "$as_me:$LINENO: result: no" >&5 | ||
3312 | echo "${ECHO_T}no" >&6 | ||
3313 | fi | ||
3314 | |||
3315 | # Extract the first word of "ksh", so it can be a program name with args. | ||
3316 | set dummy ksh; ac_word=$2 | ||
3317 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3318 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3319 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3321 | else | ||
3322 | case $TEST_MINUS_S_SH in | ||
3323 | [\\/]* | ?:[\\/]*) | ||
3324 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3325 | ;; | ||
3326 | *) | ||
3327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3328 | for as_dir in $PATH | ||
3329 | do | ||
3330 | IFS=$as_save_IFS | ||
3331 | test -z "$as_dir" && as_dir=. | ||
3332 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3333 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3334 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3335 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3336 | break 2 | ||
3337 | fi | ||
3338 | done | ||
3339 | done | ||
3340 | |||
3341 | ;; | ||
3342 | esac | ||
3343 | fi | ||
3344 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3345 | |||
3346 | if test -n "$TEST_MINUS_S_SH"; then | ||
3347 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3348 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3349 | else | ||
3350 | echo "$as_me:$LINENO: result: no" >&5 | ||
3351 | echo "${ECHO_T}no" >&6 | ||
3352 | fi | ||
3353 | |||
3354 | # Extract the first word of "sh", so it can be a program name with args. | ||
3355 | set dummy sh; ac_word=$2 | ||
3356 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3358 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3360 | else | ||
3361 | case $TEST_MINUS_S_SH in | ||
3362 | [\\/]* | ?:[\\/]*) | ||
3363 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3364 | ;; | ||
3365 | *) | ||
3366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3367 | for as_dir in $PATH | ||
3368 | do | ||
3369 | IFS=$as_save_IFS | ||
3370 | test -z "$as_dir" && as_dir=. | ||
3371 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3372 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3373 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3374 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3375 | break 2 | ||
3376 | fi | ||
3377 | done | ||
3378 | done | ||
3379 | |||
3380 | ;; | ||
3381 | esac | ||
3382 | fi | ||
3383 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3384 | |||
3385 | if test -n "$TEST_MINUS_S_SH"; then | ||
3386 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3387 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3388 | else | ||
3389 | echo "$as_me:$LINENO: result: no" >&5 | ||
3390 | echo "${ECHO_T}no" >&6 | ||
3391 | fi | ||
3392 | |||
3393 | # Extract the first word of "sh", so it can be a program name with args. | ||
3394 | set dummy sh; ac_word=$2 | ||
3395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3397 | if test "${ac_cv_path_SH+set}" = set; then | ||
3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3399 | else | ||
3400 | case $SH in | ||
3401 | [\\/]* | ?:[\\/]*) | ||
3402 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
3403 | ;; | ||
3404 | *) | ||
3405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3406 | for as_dir in $PATH | ||
3407 | do | ||
3408 | IFS=$as_save_IFS | ||
3409 | test -z "$as_dir" && as_dir=. | ||
3410 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3412 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3414 | break 2 | ||
3415 | fi | ||
3416 | done | ||
3417 | done | ||
3418 | |||
3419 | ;; | ||
3420 | esac | ||
3421 | fi | ||
3422 | SH=$ac_cv_path_SH | ||
3423 | |||
3424 | if test -n "$SH"; then | ||
3425 | echo "$as_me:$LINENO: result: $SH" >&5 | ||
3426 | echo "${ECHO_T}$SH" >&6 | ||
3427 | else | ||
3428 | echo "$as_me:$LINENO: result: no" >&5 | ||
3429 | echo "${ECHO_T}no" >&6 | ||
3430 | fi | ||
3431 | |||
3432 | TEST_SHELL=sh | ||
3433 | |||
3434 | |||
3435 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
3436 | set dummy groupadd; ac_word=$2 | ||
3437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3439 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
3440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3441 | else | ||
3442 | case $PATH_GROUPADD_PROG in | ||
3443 | [\\/]* | ?:[\\/]*) | ||
3444 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
3445 | ;; | ||
3446 | *) | ||
3447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3448 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
3449 | do | ||
3450 | IFS=$as_save_IFS | ||
3451 | test -z "$as_dir" && as_dir=. | ||
3452 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3454 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3456 | break 2 | ||
3457 | fi | ||
3458 | done | ||
3459 | done | ||
3460 | |||
3461 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
3462 | ;; | ||
3463 | esac | ||
3464 | fi | ||
3465 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
3466 | |||
3467 | if test -n "$PATH_GROUPADD_PROG"; then | ||
3468 | echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
3469 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6 | ||
3470 | else | ||
3471 | echo "$as_me:$LINENO: result: no" >&5 | ||
3472 | echo "${ECHO_T}no" >&6 | ||
3473 | fi | ||
3474 | |||
3475 | # Extract the first word of "useradd", so it can be a program name with args. | ||
3476 | set dummy useradd; ac_word=$2 | ||
3477 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3479 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
3480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3481 | else | ||
3482 | case $PATH_USERADD_PROG in | ||
3483 | [\\/]* | ?:[\\/]*) | ||
3484 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
3485 | ;; | ||
3486 | *) | ||
3487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3488 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
3489 | do | ||
3490 | IFS=$as_save_IFS | ||
3491 | test -z "$as_dir" && as_dir=. | ||
3492 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3493 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3494 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3496 | break 2 | ||
3497 | fi | ||
3498 | done | ||
3499 | done | ||
3500 | |||
3501 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
3502 | ;; | ||
3503 | esac | ||
3504 | fi | ||
3505 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
3506 | |||
3507 | if test -n "$PATH_USERADD_PROG"; then | ||
3508 | echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
3509 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6 | ||
3510 | else | ||
3511 | echo "$as_me:$LINENO: result: no" >&5 | ||
3512 | echo "${ECHO_T}no" >&6 | ||
3513 | fi | ||
3514 | |||
3515 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
3516 | set dummy pkgmk; ac_word=$2 | ||
3517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3519 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
3520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3521 | else | ||
3522 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
3523 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
3524 | else | ||
3525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3526 | for as_dir in $PATH | ||
3527 | do | ||
3528 | IFS=$as_save_IFS | ||
3529 | test -z "$as_dir" && as_dir=. | ||
3530 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3532 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
3533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3534 | break 2 | ||
3535 | fi | ||
3536 | done | ||
3537 | done | ||
3538 | |||
3539 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
3540 | fi | ||
3541 | fi | ||
3542 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
3543 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
3544 | echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
3545 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6 | ||
3546 | else | ||
3547 | echo "$as_me:$LINENO: result: no" >&5 | ||
3548 | echo "${ECHO_T}no" >&6 | ||
3549 | fi | ||
3550 | |||
3551 | |||
3552 | # System features | ||
3553 | # Check whether --enable-largefile or --disable-largefile was given. | ||
3554 | if test "${enable_largefile+set}" = set; then | ||
3555 | enableval="$enable_largefile" | ||
3556 | |||
3557 | fi; | ||
3558 | if test "$enable_largefile" != no; then | ||
3559 | |||
3560 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
3561 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
3562 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
3563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3564 | else | ||
3565 | ac_cv_sys_largefile_CC=no | ||
3566 | if test "$GCC" != yes; then | ||
3567 | ac_save_CC=$CC | ||
3568 | while :; do | ||
3569 | # IRIX 6.2 and later do not support large files by default, | ||
3570 | # so use the C compiler's -n32 option if that helps. | ||
3571 | cat >conftest.$ac_ext <<_ACEOF | ||
3572 | /* confdefs.h. */ | ||
3573 | _ACEOF | ||
3574 | cat confdefs.h >>conftest.$ac_ext | ||
3575 | cat >>conftest.$ac_ext <<_ACEOF | ||
3576 | /* end confdefs.h. */ | ||
3577 | #include <sys/types.h> | ||
3578 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3579 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3580 | since some C++ compilers masquerading as C compilers | ||
3581 | incorrectly reject 9223372036854775807. */ | ||
3582 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3583 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3584 | && LARGE_OFF_T % 2147483647 == 1) | ||
3585 | ? 1 : -1]; | ||
3586 | int | ||
3587 | main () | ||
3588 | { | ||
3589 | |||
3590 | ; | ||
3591 | return 0; | ||
3592 | } | ||
3593 | _ACEOF | ||
3594 | rm -f conftest.$ac_objext | ||
3595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3596 | (eval $ac_compile) 2>conftest.er1 | ||
3597 | ac_status=$? | ||
3598 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3599 | rm -f conftest.er1 | ||
3600 | cat conftest.err >&5 | ||
3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3602 | (exit $ac_status); } && | ||
3603 | { ac_try='test -z "$ac_c_werror_flag" | ||
3604 | || test ! -s conftest.err' | ||
3605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3606 | (eval $ac_try) 2>&5 | ||
3607 | ac_status=$? | ||
3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3609 | (exit $ac_status); }; } && | ||
3610 | { ac_try='test -s conftest.$ac_objext' | ||
3611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3612 | (eval $ac_try) 2>&5 | ||
3613 | ac_status=$? | ||
3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3615 | (exit $ac_status); }; }; then | ||
3616 | break | ||
3617 | else | ||
3618 | echo "$as_me: failed program was:" >&5 | ||
3619 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3620 | |||
3621 | fi | ||
3622 | rm -f conftest.err conftest.$ac_objext | ||
3623 | CC="$CC -n32" | ||
3624 | rm -f conftest.$ac_objext | ||
3625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3626 | (eval $ac_compile) 2>conftest.er1 | ||
3627 | ac_status=$? | ||
3628 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3629 | rm -f conftest.er1 | ||
3630 | cat conftest.err >&5 | ||
3631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3632 | (exit $ac_status); } && | ||
3633 | { ac_try='test -z "$ac_c_werror_flag" | ||
3634 | || test ! -s conftest.err' | ||
3635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3636 | (eval $ac_try) 2>&5 | ||
3637 | ac_status=$? | ||
3638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3639 | (exit $ac_status); }; } && | ||
3640 | { ac_try='test -s conftest.$ac_objext' | ||
3641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3642 | (eval $ac_try) 2>&5 | ||
3643 | ac_status=$? | ||
3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3645 | (exit $ac_status); }; }; then | ||
3646 | ac_cv_sys_largefile_CC=' -n32'; break | ||
3647 | else | ||
3648 | echo "$as_me: failed program was:" >&5 | ||
3649 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3650 | |||
3651 | fi | ||
3652 | rm -f conftest.err conftest.$ac_objext | ||
3653 | break | ||
3654 | done | ||
3655 | CC=$ac_save_CC | ||
3656 | rm -f conftest.$ac_ext | ||
3657 | fi | ||
3658 | fi | ||
3659 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
3660 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
3661 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
3662 | CC=$CC$ac_cv_sys_largefile_CC | ||
3663 | fi | ||
3664 | |||
3665 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
3666 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
3667 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
3668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3669 | else | ||
3670 | while :; do | ||
3671 | ac_cv_sys_file_offset_bits=no | ||
3672 | cat >conftest.$ac_ext <<_ACEOF | ||
3673 | /* confdefs.h. */ | ||
3674 | _ACEOF | ||
3675 | cat confdefs.h >>conftest.$ac_ext | ||
3676 | cat >>conftest.$ac_ext <<_ACEOF | ||
3677 | /* end confdefs.h. */ | ||
3678 | #include <sys/types.h> | ||
3679 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3680 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3681 | since some C++ compilers masquerading as C compilers | ||
3682 | incorrectly reject 9223372036854775807. */ | ||
3683 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3684 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3685 | && LARGE_OFF_T % 2147483647 == 1) | ||
3686 | ? 1 : -1]; | ||
3687 | int | ||
3688 | main () | ||
3689 | { | ||
3690 | |||
3691 | ; | ||
3692 | return 0; | ||
3693 | } | ||
3694 | _ACEOF | ||
3695 | rm -f conftest.$ac_objext | ||
3696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3697 | (eval $ac_compile) 2>conftest.er1 | ||
3698 | ac_status=$? | ||
3699 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3700 | rm -f conftest.er1 | ||
3701 | cat conftest.err >&5 | ||
3702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3703 | (exit $ac_status); } && | ||
3704 | { ac_try='test -z "$ac_c_werror_flag" | ||
3705 | || test ! -s conftest.err' | ||
3706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3707 | (eval $ac_try) 2>&5 | ||
3708 | ac_status=$? | ||
3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3710 | (exit $ac_status); }; } && | ||
3711 | { ac_try='test -s conftest.$ac_objext' | ||
3712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3713 | (eval $ac_try) 2>&5 | ||
3714 | ac_status=$? | ||
3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3716 | (exit $ac_status); }; }; then | ||
3717 | break | ||
3718 | else | ||
3719 | echo "$as_me: failed program was:" >&5 | ||
3720 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3721 | |||
3722 | fi | ||
3723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3724 | cat >conftest.$ac_ext <<_ACEOF | ||
3725 | /* confdefs.h. */ | ||
3726 | _ACEOF | ||
3727 | cat confdefs.h >>conftest.$ac_ext | ||
3728 | cat >>conftest.$ac_ext <<_ACEOF | ||
3729 | /* end confdefs.h. */ | ||
3730 | #define _FILE_OFFSET_BITS 64 | ||
3731 | #include <sys/types.h> | ||
3732 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3733 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3734 | since some C++ compilers masquerading as C compilers | ||
3735 | incorrectly reject 9223372036854775807. */ | ||
3736 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3737 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3738 | && LARGE_OFF_T % 2147483647 == 1) | ||
3739 | ? 1 : -1]; | ||
3740 | int | ||
3741 | main () | ||
3742 | { | ||
3743 | |||
3744 | ; | ||
3745 | return 0; | ||
3746 | } | ||
3747 | _ACEOF | ||
3748 | rm -f conftest.$ac_objext | ||
3749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3750 | (eval $ac_compile) 2>conftest.er1 | ||
3751 | ac_status=$? | ||
3752 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3753 | rm -f conftest.er1 | ||
3754 | cat conftest.err >&5 | ||
3755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3756 | (exit $ac_status); } && | ||
3757 | { ac_try='test -z "$ac_c_werror_flag" | ||
3758 | || test ! -s conftest.err' | ||
3759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3760 | (eval $ac_try) 2>&5 | ||
3761 | ac_status=$? | ||
3762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3763 | (exit $ac_status); }; } && | ||
3764 | { ac_try='test -s conftest.$ac_objext' | ||
3765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3766 | (eval $ac_try) 2>&5 | ||
3767 | ac_status=$? | ||
3768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3769 | (exit $ac_status); }; }; then | ||
3770 | ac_cv_sys_file_offset_bits=64; break | ||
3771 | else | ||
3772 | echo "$as_me: failed program was:" >&5 | ||
3773 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3774 | |||
3775 | fi | ||
3776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3777 | break | ||
3778 | done | ||
3779 | fi | ||
3780 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
3781 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
3782 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
3783 | |||
3784 | cat >>confdefs.h <<_ACEOF | ||
3785 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
3786 | _ACEOF | ||
3787 | |||
3788 | fi | ||
3789 | rm -f conftest* | ||
3790 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
3791 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
3792 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
3793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3794 | else | ||
3795 | while :; do | ||
3796 | ac_cv_sys_large_files=no | ||
3797 | cat >conftest.$ac_ext <<_ACEOF | ||
3798 | /* confdefs.h. */ | ||
3799 | _ACEOF | ||
3800 | cat confdefs.h >>conftest.$ac_ext | ||
3801 | cat >>conftest.$ac_ext <<_ACEOF | ||
3802 | /* end confdefs.h. */ | ||
3803 | #include <sys/types.h> | ||
3804 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3805 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3806 | since some C++ compilers masquerading as C compilers | ||
3807 | incorrectly reject 9223372036854775807. */ | ||
3808 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3809 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3810 | && LARGE_OFF_T % 2147483647 == 1) | ||
3811 | ? 1 : -1]; | ||
3812 | int | ||
3813 | main () | ||
3814 | { | ||
3815 | |||
3816 | ; | ||
3817 | return 0; | ||
3818 | } | ||
3819 | _ACEOF | ||
3820 | rm -f conftest.$ac_objext | ||
3821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3822 | (eval $ac_compile) 2>conftest.er1 | ||
3823 | ac_status=$? | ||
3824 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3825 | rm -f conftest.er1 | ||
3826 | cat conftest.err >&5 | ||
3827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3828 | (exit $ac_status); } && | ||
3829 | { ac_try='test -z "$ac_c_werror_flag" | ||
3830 | || test ! -s conftest.err' | ||
3831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3832 | (eval $ac_try) 2>&5 | ||
3833 | ac_status=$? | ||
3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3835 | (exit $ac_status); }; } && | ||
3836 | { ac_try='test -s conftest.$ac_objext' | ||
3837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3838 | (eval $ac_try) 2>&5 | ||
3839 | ac_status=$? | ||
3840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3841 | (exit $ac_status); }; }; then | ||
3842 | break | ||
3843 | else | ||
3844 | echo "$as_me: failed program was:" >&5 | ||
3845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3846 | |||
3847 | fi | ||
3848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3849 | cat >conftest.$ac_ext <<_ACEOF | ||
3850 | /* confdefs.h. */ | ||
3851 | _ACEOF | ||
3852 | cat confdefs.h >>conftest.$ac_ext | ||
3853 | cat >>conftest.$ac_ext <<_ACEOF | ||
3854 | /* end confdefs.h. */ | ||
3855 | #define _LARGE_FILES 1 | ||
3856 | #include <sys/types.h> | ||
3857 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3858 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3859 | since some C++ compilers masquerading as C compilers | ||
3860 | incorrectly reject 9223372036854775807. */ | ||
3861 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3862 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3863 | && LARGE_OFF_T % 2147483647 == 1) | ||
3864 | ? 1 : -1]; | ||
3865 | int | ||
3866 | main () | ||
3867 | { | ||
3868 | |||
3869 | ; | ||
3870 | return 0; | ||
3871 | } | ||
3872 | _ACEOF | ||
3873 | rm -f conftest.$ac_objext | ||
3874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3875 | (eval $ac_compile) 2>conftest.er1 | ||
3876 | ac_status=$? | ||
3877 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3878 | rm -f conftest.er1 | ||
3879 | cat conftest.err >&5 | ||
3880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3881 | (exit $ac_status); } && | ||
3882 | { ac_try='test -z "$ac_c_werror_flag" | ||
3883 | || test ! -s conftest.err' | ||
3884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3885 | (eval $ac_try) 2>&5 | ||
3886 | ac_status=$? | ||
3887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3888 | (exit $ac_status); }; } && | ||
3889 | { ac_try='test -s conftest.$ac_objext' | ||
3890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3891 | (eval $ac_try) 2>&5 | ||
3892 | ac_status=$? | ||
3893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3894 | (exit $ac_status); }; }; then | ||
3895 | ac_cv_sys_large_files=1; break | ||
3896 | else | ||
3897 | echo "$as_me: failed program was:" >&5 | ||
3898 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3899 | |||
3900 | fi | ||
3901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3902 | break | ||
3903 | done | ||
3904 | fi | ||
3905 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
3906 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
3907 | if test "$ac_cv_sys_large_files" != no; then | ||
3908 | |||
3909 | cat >>confdefs.h <<_ACEOF | ||
3910 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
3911 | _ACEOF | ||
3912 | |||
3913 | fi | ||
3914 | rm -f conftest* | ||
3915 | fi | ||
3916 | |||
3917 | |||
3918 | if test -z "$AR" ; then | ||
3919 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
3920 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
3921 | { (exit 1); exit 1; }; } | ||
3922 | fi | ||
3923 | |||
3924 | # Use LOGIN_PROGRAM from environment if possible | ||
3925 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
3926 | cat >>confdefs.h <<_ACEOF | ||
3927 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
3928 | _ACEOF | ||
3929 | |||
3930 | else | ||
3931 | # Search for login | ||
3932 | # Extract the first word of "login", so it can be a program name with args. | ||
3933 | set dummy login; ac_word=$2 | ||
3934 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3936 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
3937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3938 | else | ||
3939 | case $LOGIN_PROGRAM_FALLBACK in | ||
3940 | [\\/]* | ?:[\\/]*) | ||
3941 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
3942 | ;; | ||
3943 | *) | ||
3944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3945 | for as_dir in $PATH | ||
3946 | do | ||
3947 | IFS=$as_save_IFS | ||
3948 | test -z "$as_dir" && as_dir=. | ||
3949 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3950 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3951 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
3952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3953 | break 2 | ||
3954 | fi | ||
3955 | done | ||
3956 | done | ||
3957 | |||
3958 | ;; | ||
3959 | esac | ||
3960 | fi | ||
3961 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
3962 | |||
3963 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
3964 | echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
3965 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
3966 | else | ||
3967 | echo "$as_me:$LINENO: result: no" >&5 | ||
3968 | echo "${ECHO_T}no" >&6 | ||
3969 | fi | ||
3970 | |||
3971 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
3972 | cat >>confdefs.h <<_ACEOF | ||
3973 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
3974 | _ACEOF | ||
3975 | |||
3976 | fi | ||
3977 | fi | ||
3978 | |||
3979 | # Extract the first word of "passwd", so it can be a program name with args. | ||
3980 | set dummy passwd; ac_word=$2 | ||
3981 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3983 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
3984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3985 | else | ||
3986 | case $PATH_PASSWD_PROG in | ||
3987 | [\\/]* | ?:[\\/]*) | ||
3988 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
3989 | ;; | ||
3990 | *) | ||
3991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3992 | for as_dir in $PATH | ||
3993 | do | ||
3994 | IFS=$as_save_IFS | ||
3995 | test -z "$as_dir" && as_dir=. | ||
3996 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3998 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4000 | break 2 | ||
4001 | fi | ||
4002 | done | ||
4003 | done | ||
4004 | |||
4005 | ;; | ||
4006 | esac | ||
4007 | fi | ||
4008 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
4009 | |||
4010 | if test -n "$PATH_PASSWD_PROG"; then | ||
4011 | echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
4012 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6 | ||
4013 | else | ||
4014 | echo "$as_me:$LINENO: result: no" >&5 | ||
4015 | echo "${ECHO_T}no" >&6 | ||
4016 | fi | ||
4017 | |||
4018 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
4019 | cat >>confdefs.h <<_ACEOF | ||
4020 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
4021 | _ACEOF | ||
4022 | |||
4023 | fi | ||
4024 | |||
4025 | if test -z "$LD" ; then | ||
4026 | LD=$CC | ||
4027 | fi | ||
4028 | |||
4029 | |||
4030 | echo "$as_me:$LINENO: checking for inline" >&5 | ||
4031 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
4032 | if test "${ac_cv_c_inline+set}" = set; then | ||
4033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4034 | else | ||
4035 | ac_cv_c_inline=no | ||
4036 | for ac_kw in inline __inline__ __inline; do | ||
4037 | cat >conftest.$ac_ext <<_ACEOF | ||
4038 | /* confdefs.h. */ | ||
4039 | _ACEOF | ||
4040 | cat confdefs.h >>conftest.$ac_ext | ||
4041 | cat >>conftest.$ac_ext <<_ACEOF | ||
4042 | /* end confdefs.h. */ | ||
4043 | #ifndef __cplusplus | ||
4044 | typedef int foo_t; | ||
4045 | static $ac_kw foo_t static_foo () {return 0; } | ||
4046 | $ac_kw foo_t foo () {return 0; } | ||
4047 | #endif | ||
4048 | |||
4049 | _ACEOF | ||
4050 | rm -f conftest.$ac_objext | ||
4051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4052 | (eval $ac_compile) 2>conftest.er1 | ||
4053 | ac_status=$? | ||
4054 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4055 | rm -f conftest.er1 | ||
4056 | cat conftest.err >&5 | ||
4057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4058 | (exit $ac_status); } && | ||
4059 | { ac_try='test -z "$ac_c_werror_flag" | ||
4060 | || test ! -s conftest.err' | ||
4061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4062 | (eval $ac_try) 2>&5 | ||
4063 | ac_status=$? | ||
4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4065 | (exit $ac_status); }; } && | ||
4066 | { ac_try='test -s conftest.$ac_objext' | ||
4067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4068 | (eval $ac_try) 2>&5 | ||
4069 | ac_status=$? | ||
4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4071 | (exit $ac_status); }; }; then | ||
4072 | ac_cv_c_inline=$ac_kw; break | ||
4073 | else | ||
4074 | echo "$as_me: failed program was:" >&5 | ||
4075 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4076 | |||
4077 | fi | ||
4078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4079 | done | ||
4080 | |||
4081 | fi | ||
4082 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
4083 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
4084 | |||
4085 | |||
4086 | case $ac_cv_c_inline in | ||
4087 | inline | yes) ;; | ||
4088 | *) | ||
4089 | case $ac_cv_c_inline in | ||
4090 | no) ac_val=;; | ||
4091 | *) ac_val=$ac_cv_c_inline;; | ||
4092 | esac | ||
4093 | cat >>confdefs.h <<_ACEOF | ||
4094 | #ifndef __cplusplus | ||
4095 | #define inline $ac_val | ||
4096 | #endif | ||
4097 | _ACEOF | ||
4098 | ;; | ||
4099 | esac | ||
4100 | |||
4101 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
4102 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | ||
4103 | fi | ||
4104 | |||
4105 | |||
4106 | # Check whether --with-rpath or --without-rpath was given. | ||
4107 | if test "${with_rpath+set}" = set; then | ||
4108 | withval="$with_rpath" | ||
4109 | |||
4110 | if test "x$withval" = "xno" ; then | ||
4111 | need_dash_r="" | ||
4112 | fi | ||
4113 | if test "x$withval" = "xyes" ; then | ||
4114 | need_dash_r=1 | ||
4115 | fi | ||
4116 | |||
4117 | |||
4118 | fi; | ||
4119 | |||
4120 | # Check for some target-specific stuff | ||
4121 | case "$host" in | ||
4122 | *-*-aix*) | ||
4123 | echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
4124 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6 | ||
4125 | if (test -z "$blibpath"); then | ||
4126 | blibpath="/usr/lib:/lib" | ||
4127 | fi | ||
4128 | saved_LDFLAGS="$LDFLAGS" | ||
4129 | for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do | ||
4130 | if (test -z "$blibflags"); then | ||
4131 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
4132 | cat >conftest.$ac_ext <<_ACEOF | ||
4133 | /* confdefs.h. */ | ||
4134 | _ACEOF | ||
4135 | cat confdefs.h >>conftest.$ac_ext | ||
4136 | cat >>conftest.$ac_ext <<_ACEOF | ||
4137 | /* end confdefs.h. */ | ||
4138 | |||
4139 | int | ||
4140 | main () | ||
4141 | { | ||
4142 | |||
4143 | ; | ||
4144 | return 0; | ||
4145 | } | ||
4146 | _ACEOF | ||
4147 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4149 | (eval $ac_link) 2>conftest.er1 | ||
4150 | ac_status=$? | ||
4151 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4152 | rm -f conftest.er1 | ||
4153 | cat conftest.err >&5 | ||
4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4155 | (exit $ac_status); } && | ||
4156 | { ac_try='test -z "$ac_c_werror_flag" | ||
4157 | || test ! -s conftest.err' | ||
4158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4159 | (eval $ac_try) 2>&5 | ||
4160 | ac_status=$? | ||
4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4162 | (exit $ac_status); }; } && | ||
4163 | { ac_try='test -s conftest$ac_exeext' | ||
4164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4165 | (eval $ac_try) 2>&5 | ||
4166 | ac_status=$? | ||
4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4168 | (exit $ac_status); }; }; then | ||
4169 | blibflags=$tryflags | ||
4170 | else | ||
4171 | echo "$as_me: failed program was:" >&5 | ||
4172 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4173 | |||
4174 | fi | ||
4175 | rm -f conftest.err conftest.$ac_objext \ | ||
4176 | conftest$ac_exeext conftest.$ac_ext | ||
4177 | fi | ||
4178 | done | ||
4179 | if (test -z "$blibflags"); then | ||
4180 | echo "$as_me:$LINENO: result: not found" >&5 | ||
4181 | echo "${ECHO_T}not found" >&6 | ||
4182 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
4183 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
4184 | { (exit 1); exit 1; }; } | ||
4185 | else | ||
4186 | echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
4187 | echo "${ECHO_T}$blibflags" >&6 | ||
4188 | fi | ||
4189 | LDFLAGS="$saved_LDFLAGS" | ||
4190 | echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
4191 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
4192 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
4193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4194 | else | ||
4195 | cat >conftest.$ac_ext <<_ACEOF | ||
4196 | /* confdefs.h. */ | ||
4197 | _ACEOF | ||
4198 | cat confdefs.h >>conftest.$ac_ext | ||
4199 | cat >>conftest.$ac_ext <<_ACEOF | ||
4200 | /* end confdefs.h. */ | ||
4201 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
4202 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
4203 | #define authenticate innocuous_authenticate | ||
4204 | |||
4205 | /* System header to define __stub macros and hopefully few prototypes, | ||
4206 | which can conflict with char authenticate (); below. | ||
4207 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4208 | <limits.h> exists even on freestanding compilers. */ | ||
4209 | |||
4210 | #ifdef __STDC__ | ||
4211 | # include <limits.h> | ||
4212 | #else | ||
4213 | # include <assert.h> | ||
4214 | #endif | ||
4215 | |||
4216 | #undef authenticate | ||
4217 | |||
4218 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4219 | #ifdef __cplusplus | ||
4220 | extern "C" | ||
4221 | { | ||
4222 | #endif | ||
4223 | /* We use char because int might match the return type of a gcc2 | ||
4224 | builtin and then its argument prototype would still apply. */ | ||
4225 | char authenticate (); | ||
4226 | /* The GNU C library defines this for functions which it implements | ||
4227 | to always fail with ENOSYS. Some functions are actually named | ||
4228 | something starting with __ and the normal name is an alias. */ | ||
4229 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
4230 | choke me | ||
4231 | #else | ||
4232 | char (*f) () = authenticate; | ||
4233 | #endif | ||
4234 | #ifdef __cplusplus | ||
4235 | } | ||
4236 | #endif | ||
4237 | |||
4238 | int | ||
4239 | main () | ||
4240 | { | ||
4241 | return f != authenticate; | ||
4242 | ; | ||
4243 | return 0; | ||
4244 | } | ||
4245 | _ACEOF | ||
4246 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4248 | (eval $ac_link) 2>conftest.er1 | ||
4249 | ac_status=$? | ||
4250 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4251 | rm -f conftest.er1 | ||
4252 | cat conftest.err >&5 | ||
4253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4254 | (exit $ac_status); } && | ||
4255 | { ac_try='test -z "$ac_c_werror_flag" | ||
4256 | || test ! -s conftest.err' | ||
4257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4258 | (eval $ac_try) 2>&5 | ||
4259 | ac_status=$? | ||
4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4261 | (exit $ac_status); }; } && | ||
4262 | { ac_try='test -s conftest$ac_exeext' | ||
4263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4264 | (eval $ac_try) 2>&5 | ||
4265 | ac_status=$? | ||
4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4267 | (exit $ac_status); }; }; then | ||
4268 | ac_cv_func_authenticate=yes | ||
4269 | else | ||
4270 | echo "$as_me: failed program was:" >&5 | ||
4271 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4272 | |||
4273 | ac_cv_func_authenticate=no | ||
4274 | fi | ||
4275 | rm -f conftest.err conftest.$ac_objext \ | ||
4276 | conftest$ac_exeext conftest.$ac_ext | ||
4277 | fi | ||
4278 | echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
4279 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
4280 | if test $ac_cv_func_authenticate = yes; then | ||
4281 | cat >>confdefs.h <<\_ACEOF | ||
4282 | #define WITH_AIXAUTHENTICATE 1 | ||
4283 | _ACEOF | ||
4284 | |||
4285 | else | ||
4286 | echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
4287 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
4288 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
4289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4290 | else | ||
4291 | ac_check_lib_save_LIBS=$LIBS | ||
4292 | LIBS="-ls $LIBS" | ||
4293 | cat >conftest.$ac_ext <<_ACEOF | ||
4294 | /* confdefs.h. */ | ||
4295 | _ACEOF | ||
4296 | cat confdefs.h >>conftest.$ac_ext | ||
4297 | cat >>conftest.$ac_ext <<_ACEOF | ||
4298 | /* end confdefs.h. */ | ||
4299 | |||
4300 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4301 | #ifdef __cplusplus | ||
4302 | extern "C" | ||
4303 | #endif | ||
4304 | /* We use char because int might match the return type of a gcc2 | ||
4305 | builtin and then its argument prototype would still apply. */ | ||
4306 | char authenticate (); | ||
4307 | int | ||
4308 | main () | ||
4309 | { | ||
4310 | authenticate (); | ||
4311 | ; | ||
4312 | return 0; | ||
4313 | } | ||
4314 | _ACEOF | ||
4315 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4317 | (eval $ac_link) 2>conftest.er1 | ||
4318 | ac_status=$? | ||
4319 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4320 | rm -f conftest.er1 | ||
4321 | cat conftest.err >&5 | ||
4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4323 | (exit $ac_status); } && | ||
4324 | { ac_try='test -z "$ac_c_werror_flag" | ||
4325 | || test ! -s conftest.err' | ||
4326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4327 | (eval $ac_try) 2>&5 | ||
4328 | ac_status=$? | ||
4329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4330 | (exit $ac_status); }; } && | ||
4331 | { ac_try='test -s conftest$ac_exeext' | ||
4332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4333 | (eval $ac_try) 2>&5 | ||
4334 | ac_status=$? | ||
4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4336 | (exit $ac_status); }; }; then | ||
4337 | ac_cv_lib_s_authenticate=yes | ||
4338 | else | ||
4339 | echo "$as_me: failed program was:" >&5 | ||
4340 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4341 | |||
4342 | ac_cv_lib_s_authenticate=no | ||
4343 | fi | ||
4344 | rm -f conftest.err conftest.$ac_objext \ | ||
4345 | conftest$ac_exeext conftest.$ac_ext | ||
4346 | LIBS=$ac_check_lib_save_LIBS | ||
4347 | fi | ||
4348 | echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
4349 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
4350 | if test $ac_cv_lib_s_authenticate = yes; then | ||
4351 | cat >>confdefs.h <<\_ACEOF | ||
4352 | #define WITH_AIXAUTHENTICATE 1 | ||
4353 | _ACEOF | ||
4354 | |||
4355 | LIBS="$LIBS -ls" | ||
4356 | |||
4357 | fi | ||
4358 | |||
4359 | |||
4360 | fi | ||
4361 | |||
4362 | echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
4363 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6 | ||
4364 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
4365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4366 | else | ||
4367 | cat >conftest.$ac_ext <<_ACEOF | ||
4368 | /* confdefs.h. */ | ||
4369 | _ACEOF | ||
4370 | cat confdefs.h >>conftest.$ac_ext | ||
4371 | cat >>conftest.$ac_ext <<_ACEOF | ||
4372 | /* end confdefs.h. */ | ||
4373 | #include <usersec.h> | ||
4374 | |||
4375 | int | ||
4376 | main () | ||
4377 | { | ||
4378 | #ifndef authenticate | ||
4379 | char *p = (char *) authenticate; | ||
4380 | #endif | ||
4381 | |||
4382 | ; | ||
4383 | return 0; | ||
4384 | } | ||
4385 | _ACEOF | ||
4386 | rm -f conftest.$ac_objext | ||
4387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4388 | (eval $ac_compile) 2>conftest.er1 | ||
4389 | ac_status=$? | ||
4390 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4391 | rm -f conftest.er1 | ||
4392 | cat conftest.err >&5 | ||
4393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4394 | (exit $ac_status); } && | ||
4395 | { ac_try='test -z "$ac_c_werror_flag" | ||
4396 | || test ! -s conftest.err' | ||
4397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4398 | (eval $ac_try) 2>&5 | ||
4399 | ac_status=$? | ||
4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4401 | (exit $ac_status); }; } && | ||
4402 | { ac_try='test -s conftest.$ac_objext' | ||
4403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4404 | (eval $ac_try) 2>&5 | ||
4405 | ac_status=$? | ||
4406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4407 | (exit $ac_status); }; }; then | ||
4408 | ac_cv_have_decl_authenticate=yes | ||
4409 | else | ||
4410 | echo "$as_me: failed program was:" >&5 | ||
4411 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4412 | |||
4413 | ac_cv_have_decl_authenticate=no | ||
4414 | fi | ||
4415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4416 | fi | ||
4417 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
4418 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6 | ||
4419 | if test $ac_cv_have_decl_authenticate = yes; then | ||
4420 | |||
4421 | cat >>confdefs.h <<_ACEOF | ||
4422 | #define HAVE_DECL_AUTHENTICATE 1 | ||
4423 | _ACEOF | ||
4424 | |||
4425 | |||
4426 | else | ||
4427 | cat >>confdefs.h <<_ACEOF | ||
4428 | #define HAVE_DECL_AUTHENTICATE 0 | ||
4429 | _ACEOF | ||
4430 | |||
4431 | |||
4432 | fi | ||
4433 | echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
4434 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6 | ||
4435 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
4436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4437 | else | ||
4438 | cat >conftest.$ac_ext <<_ACEOF | ||
4439 | /* confdefs.h. */ | ||
4440 | _ACEOF | ||
4441 | cat confdefs.h >>conftest.$ac_ext | ||
4442 | cat >>conftest.$ac_ext <<_ACEOF | ||
4443 | /* end confdefs.h. */ | ||
4444 | #include <usersec.h> | ||
4445 | |||
4446 | int | ||
4447 | main () | ||
4448 | { | ||
4449 | #ifndef loginrestrictions | ||
4450 | char *p = (char *) loginrestrictions; | ||
4451 | #endif | ||
4452 | |||
4453 | ; | ||
4454 | return 0; | ||
4455 | } | ||
4456 | _ACEOF | ||
4457 | rm -f conftest.$ac_objext | ||
4458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4459 | (eval $ac_compile) 2>conftest.er1 | ||
4460 | ac_status=$? | ||
4461 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4462 | rm -f conftest.er1 | ||
4463 | cat conftest.err >&5 | ||
4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4465 | (exit $ac_status); } && | ||
4466 | { ac_try='test -z "$ac_c_werror_flag" | ||
4467 | || test ! -s conftest.err' | ||
4468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4469 | (eval $ac_try) 2>&5 | ||
4470 | ac_status=$? | ||
4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4472 | (exit $ac_status); }; } && | ||
4473 | { ac_try='test -s conftest.$ac_objext' | ||
4474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4475 | (eval $ac_try) 2>&5 | ||
4476 | ac_status=$? | ||
4477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4478 | (exit $ac_status); }; }; then | ||
4479 | ac_cv_have_decl_loginrestrictions=yes | ||
4480 | else | ||
4481 | echo "$as_me: failed program was:" >&5 | ||
4482 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4483 | |||
4484 | ac_cv_have_decl_loginrestrictions=no | ||
4485 | fi | ||
4486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4487 | fi | ||
4488 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
4489 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6 | ||
4490 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
4491 | |||
4492 | cat >>confdefs.h <<_ACEOF | ||
4493 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
4494 | _ACEOF | ||
4495 | |||
4496 | |||
4497 | else | ||
4498 | cat >>confdefs.h <<_ACEOF | ||
4499 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
4500 | _ACEOF | ||
4501 | |||
4502 | |||
4503 | fi | ||
4504 | echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
4505 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6 | ||
4506 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
4507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4508 | else | ||
4509 | cat >conftest.$ac_ext <<_ACEOF | ||
4510 | /* confdefs.h. */ | ||
4511 | _ACEOF | ||
4512 | cat confdefs.h >>conftest.$ac_ext | ||
4513 | cat >>conftest.$ac_ext <<_ACEOF | ||
4514 | /* end confdefs.h. */ | ||
4515 | #include <usersec.h> | ||
4516 | |||
4517 | int | ||
4518 | main () | ||
4519 | { | ||
4520 | #ifndef loginsuccess | ||
4521 | char *p = (char *) loginsuccess; | ||
4522 | #endif | ||
4523 | |||
4524 | ; | ||
4525 | return 0; | ||
4526 | } | ||
4527 | _ACEOF | ||
4528 | rm -f conftest.$ac_objext | ||
4529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4530 | (eval $ac_compile) 2>conftest.er1 | ||
4531 | ac_status=$? | ||
4532 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4533 | rm -f conftest.er1 | ||
4534 | cat conftest.err >&5 | ||
4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4536 | (exit $ac_status); } && | ||
4537 | { ac_try='test -z "$ac_c_werror_flag" | ||
4538 | || test ! -s conftest.err' | ||
4539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4540 | (eval $ac_try) 2>&5 | ||
4541 | ac_status=$? | ||
4542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4543 | (exit $ac_status); }; } && | ||
4544 | { ac_try='test -s conftest.$ac_objext' | ||
4545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4546 | (eval $ac_try) 2>&5 | ||
4547 | ac_status=$? | ||
4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4549 | (exit $ac_status); }; }; then | ||
4550 | ac_cv_have_decl_loginsuccess=yes | ||
4551 | else | ||
4552 | echo "$as_me: failed program was:" >&5 | ||
4553 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4554 | |||
4555 | ac_cv_have_decl_loginsuccess=no | ||
4556 | fi | ||
4557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4558 | fi | ||
4559 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
4560 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6 | ||
4561 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
4562 | |||
4563 | cat >>confdefs.h <<_ACEOF | ||
4564 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
4565 | _ACEOF | ||
4566 | |||
4567 | |||
4568 | else | ||
4569 | cat >>confdefs.h <<_ACEOF | ||
4570 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
4571 | _ACEOF | ||
4572 | |||
4573 | |||
4574 | fi | ||
4575 | echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
4576 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6 | ||
4577 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
4578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4579 | else | ||
4580 | cat >conftest.$ac_ext <<_ACEOF | ||
4581 | /* confdefs.h. */ | ||
4582 | _ACEOF | ||
4583 | cat confdefs.h >>conftest.$ac_ext | ||
4584 | cat >>conftest.$ac_ext <<_ACEOF | ||
4585 | /* end confdefs.h. */ | ||
4586 | #include <usersec.h> | ||
4587 | |||
4588 | int | ||
4589 | main () | ||
4590 | { | ||
4591 | #ifndef passwdexpired | ||
4592 | char *p = (char *) passwdexpired; | ||
4593 | #endif | ||
4594 | |||
4595 | ; | ||
4596 | return 0; | ||
4597 | } | ||
4598 | _ACEOF | ||
4599 | rm -f conftest.$ac_objext | ||
4600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4601 | (eval $ac_compile) 2>conftest.er1 | ||
4602 | ac_status=$? | ||
4603 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4604 | rm -f conftest.er1 | ||
4605 | cat conftest.err >&5 | ||
4606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4607 | (exit $ac_status); } && | ||
4608 | { ac_try='test -z "$ac_c_werror_flag" | ||
4609 | || test ! -s conftest.err' | ||
4610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4611 | (eval $ac_try) 2>&5 | ||
4612 | ac_status=$? | ||
4613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4614 | (exit $ac_status); }; } && | ||
4615 | { ac_try='test -s conftest.$ac_objext' | ||
4616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4617 | (eval $ac_try) 2>&5 | ||
4618 | ac_status=$? | ||
4619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4620 | (exit $ac_status); }; }; then | ||
4621 | ac_cv_have_decl_passwdexpired=yes | ||
4622 | else | ||
4623 | echo "$as_me: failed program was:" >&5 | ||
4624 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4625 | |||
4626 | ac_cv_have_decl_passwdexpired=no | ||
4627 | fi | ||
4628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4629 | fi | ||
4630 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
4631 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6 | ||
4632 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
4633 | |||
4634 | cat >>confdefs.h <<_ACEOF | ||
4635 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
4636 | _ACEOF | ||
4637 | |||
4638 | |||
4639 | else | ||
4640 | cat >>confdefs.h <<_ACEOF | ||
4641 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
4642 | _ACEOF | ||
4643 | |||
4644 | |||
4645 | fi | ||
4646 | |||
4647 | |||
4648 | echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
4649 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6 | ||
4650 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
4651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4652 | else | ||
4653 | cat >conftest.$ac_ext <<_ACEOF | ||
4654 | /* confdefs.h. */ | ||
4655 | _ACEOF | ||
4656 | cat confdefs.h >>conftest.$ac_ext | ||
4657 | cat >>conftest.$ac_ext <<_ACEOF | ||
4658 | /* end confdefs.h. */ | ||
4659 | #include <usersec.h> | ||
4660 | |||
4661 | |||
4662 | int | ||
4663 | main () | ||
4664 | { | ||
4665 | #ifndef loginfailed | ||
4666 | char *p = (char *) loginfailed; | ||
4667 | #endif | ||
4668 | |||
4669 | ; | ||
4670 | return 0; | ||
4671 | } | ||
4672 | _ACEOF | ||
4673 | rm -f conftest.$ac_objext | ||
4674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4675 | (eval $ac_compile) 2>conftest.er1 | ||
4676 | ac_status=$? | ||
4677 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4678 | rm -f conftest.er1 | ||
4679 | cat conftest.err >&5 | ||
4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4681 | (exit $ac_status); } && | ||
4682 | { ac_try='test -z "$ac_c_werror_flag" | ||
4683 | || test ! -s conftest.err' | ||
4684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4685 | (eval $ac_try) 2>&5 | ||
4686 | ac_status=$? | ||
4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4688 | (exit $ac_status); }; } && | ||
4689 | { ac_try='test -s conftest.$ac_objext' | ||
4690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4691 | (eval $ac_try) 2>&5 | ||
4692 | ac_status=$? | ||
4693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4694 | (exit $ac_status); }; }; then | ||
4695 | ac_cv_have_decl_loginfailed=yes | ||
4696 | else | ||
4697 | echo "$as_me: failed program was:" >&5 | ||
4698 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4699 | |||
4700 | ac_cv_have_decl_loginfailed=no | ||
4701 | fi | ||
4702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4703 | fi | ||
4704 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
4705 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6 | ||
4706 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
4707 | |||
4708 | cat >>confdefs.h <<_ACEOF | ||
4709 | #define HAVE_DECL_LOGINFAILED 1 | ||
4710 | _ACEOF | ||
4711 | |||
4712 | echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
4713 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6 | ||
4714 | cat >conftest.$ac_ext <<_ACEOF | ||
4715 | /* confdefs.h. */ | ||
4716 | _ACEOF | ||
4717 | cat confdefs.h >>conftest.$ac_ext | ||
4718 | cat >>conftest.$ac_ext <<_ACEOF | ||
4719 | /* end confdefs.h. */ | ||
4720 | #include <usersec.h> | ||
4721 | int | ||
4722 | main () | ||
4723 | { | ||
4724 | (void)loginfailed("user","host","tty",0); | ||
4725 | ; | ||
4726 | return 0; | ||
4727 | } | ||
4728 | _ACEOF | ||
4729 | rm -f conftest.$ac_objext | ||
4730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4731 | (eval $ac_compile) 2>conftest.er1 | ||
4732 | ac_status=$? | ||
4733 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4734 | rm -f conftest.er1 | ||
4735 | cat conftest.err >&5 | ||
4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4737 | (exit $ac_status); } && | ||
4738 | { ac_try='test -z "$ac_c_werror_flag" | ||
4739 | || test ! -s conftest.err' | ||
4740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4741 | (eval $ac_try) 2>&5 | ||
4742 | ac_status=$? | ||
4743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4744 | (exit $ac_status); }; } && | ||
4745 | { ac_try='test -s conftest.$ac_objext' | ||
4746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4747 | (eval $ac_try) 2>&5 | ||
4748 | ac_status=$? | ||
4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4750 | (exit $ac_status); }; }; then | ||
4751 | echo "$as_me:$LINENO: result: yes" >&5 | ||
4752 | echo "${ECHO_T}yes" >&6 | ||
4753 | cat >>confdefs.h <<\_ACEOF | ||
4754 | #define AIX_LOGINFAILED_4ARG 1 | ||
4755 | _ACEOF | ||
4756 | |||
4757 | else | ||
4758 | echo "$as_me: failed program was:" >&5 | ||
4759 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4760 | |||
4761 | echo "$as_me:$LINENO: result: no" >&5 | ||
4762 | echo "${ECHO_T}no" >&6 | ||
4763 | |||
4764 | fi | ||
4765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4766 | else | ||
4767 | cat >>confdefs.h <<_ACEOF | ||
4768 | #define HAVE_DECL_LOGINFAILED 0 | ||
4769 | _ACEOF | ||
4770 | |||
4771 | |||
4772 | fi | ||
4773 | |||
4774 | |||
4775 | |||
4776 | for ac_func in setauthdb | ||
4777 | do | ||
4778 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4779 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4780 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4781 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4783 | else | ||
4784 | cat >conftest.$ac_ext <<_ACEOF | ||
4785 | /* confdefs.h. */ | ||
4786 | _ACEOF | ||
4787 | cat confdefs.h >>conftest.$ac_ext | ||
4788 | cat >>conftest.$ac_ext <<_ACEOF | ||
4789 | /* end confdefs.h. */ | ||
4790 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
4791 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
4792 | #define $ac_func innocuous_$ac_func | ||
4793 | |||
4794 | /* System header to define __stub macros and hopefully few prototypes, | ||
4795 | which can conflict with char $ac_func (); below. | ||
4796 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4797 | <limits.h> exists even on freestanding compilers. */ | ||
4798 | |||
4799 | #ifdef __STDC__ | ||
4800 | # include <limits.h> | ||
4801 | #else | ||
4802 | # include <assert.h> | ||
4803 | #endif | ||
4804 | |||
4805 | #undef $ac_func | ||
4806 | |||
4807 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4808 | #ifdef __cplusplus | ||
4809 | extern "C" | ||
4810 | { | ||
4811 | #endif | ||
4812 | /* We use char because int might match the return type of a gcc2 | ||
4813 | builtin and then its argument prototype would still apply. */ | ||
4814 | char $ac_func (); | ||
4815 | /* The GNU C library defines this for functions which it implements | ||
4816 | to always fail with ENOSYS. Some functions are actually named | ||
4817 | something starting with __ and the normal name is an alias. */ | ||
4818 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4819 | choke me | ||
4820 | #else | ||
4821 | char (*f) () = $ac_func; | ||
4822 | #endif | ||
4823 | #ifdef __cplusplus | ||
4824 | } | ||
4825 | #endif | ||
4826 | |||
4827 | int | ||
4828 | main () | ||
4829 | { | ||
4830 | return f != $ac_func; | ||
4831 | ; | ||
4832 | return 0; | ||
4833 | } | ||
4834 | _ACEOF | ||
4835 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4837 | (eval $ac_link) 2>conftest.er1 | ||
4838 | ac_status=$? | ||
4839 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4840 | rm -f conftest.er1 | ||
4841 | cat conftest.err >&5 | ||
4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4843 | (exit $ac_status); } && | ||
4844 | { ac_try='test -z "$ac_c_werror_flag" | ||
4845 | || test ! -s conftest.err' | ||
4846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4847 | (eval $ac_try) 2>&5 | ||
4848 | ac_status=$? | ||
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4850 | (exit $ac_status); }; } && | ||
4851 | { ac_try='test -s conftest$ac_exeext' | ||
4852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4853 | (eval $ac_try) 2>&5 | ||
4854 | ac_status=$? | ||
4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4856 | (exit $ac_status); }; }; then | ||
4857 | eval "$as_ac_var=yes" | ||
4858 | else | ||
4859 | echo "$as_me: failed program was:" >&5 | ||
4860 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4861 | |||
4862 | eval "$as_ac_var=no" | ||
4863 | fi | ||
4864 | rm -f conftest.err conftest.$ac_objext \ | ||
4865 | conftest$ac_exeext conftest.$ac_ext | ||
4866 | fi | ||
4867 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4868 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4869 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4870 | cat >>confdefs.h <<_ACEOF | ||
4871 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4872 | _ACEOF | ||
4873 | |||
4874 | fi | ||
4875 | done | ||
4876 | |||
4877 | check_for_aix_broken_getaddrinfo=1 | ||
4878 | cat >>confdefs.h <<\_ACEOF | ||
4879 | #define BROKEN_REALPATH 1 | ||
4880 | _ACEOF | ||
4881 | |||
4882 | cat >>confdefs.h <<\_ACEOF | ||
4883 | #define SETEUID_BREAKS_SETUID 1 | ||
4884 | _ACEOF | ||
4885 | |||
4886 | cat >>confdefs.h <<\_ACEOF | ||
4887 | #define BROKEN_SETREUID 1 | ||
4888 | _ACEOF | ||
4889 | |||
4890 | cat >>confdefs.h <<\_ACEOF | ||
4891 | #define BROKEN_SETREGID 1 | ||
4892 | _ACEOF | ||
4893 | |||
4894 | cat >>confdefs.h <<\_ACEOF | ||
4895 | #define DISABLE_LASTLOG 1 | ||
4896 | _ACEOF | ||
4897 | |||
4898 | cat >>confdefs.h <<\_ACEOF | ||
4899 | #define LOGIN_NEEDS_UTMPX 1 | ||
4900 | _ACEOF | ||
4901 | |||
4902 | cat >>confdefs.h <<\_ACEOF | ||
4903 | #define SPT_TYPE SPT_REUSEARGV | ||
4904 | _ACEOF | ||
4905 | |||
4906 | ;; | ||
4907 | *-*-cygwin*) | ||
4908 | check_for_libcrypt_later=1 | ||
4909 | LIBS="$LIBS /usr/lib/textmode.o" | ||
4910 | cat >>confdefs.h <<\_ACEOF | ||
4911 | #define HAVE_CYGWIN 1 | ||
4912 | _ACEOF | ||
4913 | |||
4914 | cat >>confdefs.h <<\_ACEOF | ||
4915 | #define USE_PIPES 1 | ||
4916 | _ACEOF | ||
4917 | |||
4918 | cat >>confdefs.h <<\_ACEOF | ||
4919 | #define DISABLE_SHADOW 1 | ||
4920 | _ACEOF | ||
4921 | |||
4922 | cat >>confdefs.h <<\_ACEOF | ||
4923 | #define IP_TOS_IS_BROKEN 1 | ||
4924 | _ACEOF | ||
4925 | |||
4926 | cat >>confdefs.h <<\_ACEOF | ||
4927 | #define NO_X11_UNIX_SOCKETS 1 | ||
4928 | _ACEOF | ||
4929 | |||
4930 | cat >>confdefs.h <<\_ACEOF | ||
4931 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
4932 | _ACEOF | ||
4933 | |||
4934 | cat >>confdefs.h <<\_ACEOF | ||
4935 | #define DISABLE_FD_PASSING 1 | ||
4936 | _ACEOF | ||
4937 | |||
4938 | ;; | ||
4939 | *-*-dgux*) | ||
4940 | cat >>confdefs.h <<\_ACEOF | ||
4941 | #define IP_TOS_IS_BROKEN 1 | ||
4942 | _ACEOF | ||
4943 | |||
4944 | cat >>confdefs.h <<\_ACEOF | ||
4945 | #define SETEUID_BREAKS_SETUID 1 | ||
4946 | _ACEOF | ||
4947 | |||
4948 | cat >>confdefs.h <<\_ACEOF | ||
4949 | #define BROKEN_SETREUID 1 | ||
4950 | _ACEOF | ||
4951 | |||
4952 | cat >>confdefs.h <<\_ACEOF | ||
4953 | #define BROKEN_SETREGID 1 | ||
4954 | _ACEOF | ||
4955 | |||
4956 | ;; | ||
4957 | *-*-darwin*) | ||
4958 | echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
4959 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
4960 | if test "$cross_compiling" = yes; then | ||
4961 | echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
4962 | echo "${ECHO_T}assume it is working" >&6 | ||
4963 | else | ||
4964 | cat >conftest.$ac_ext <<_ACEOF | ||
4965 | /* confdefs.h. */ | ||
4966 | _ACEOF | ||
4967 | cat confdefs.h >>conftest.$ac_ext | ||
4968 | cat >>conftest.$ac_ext <<_ACEOF | ||
4969 | /* end confdefs.h. */ | ||
4970 | #include <mach-o/dyld.h> | ||
4971 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
4972 | exit(0); | ||
4973 | else | ||
4974 | exit(1); | ||
4975 | } | ||
4976 | _ACEOF | ||
4977 | rm -f conftest$ac_exeext | ||
4978 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4979 | (eval $ac_link) 2>&5 | ||
4980 | ac_status=$? | ||
4981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4984 | (eval $ac_try) 2>&5 | ||
4985 | ac_status=$? | ||
4986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4987 | (exit $ac_status); }; }; then | ||
4988 | echo "$as_me:$LINENO: result: working" >&5 | ||
4989 | echo "${ECHO_T}working" >&6 | ||
4990 | else | ||
4991 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4992 | echo "$as_me: failed program was:" >&5 | ||
4993 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4994 | |||
4995 | ( exit $ac_status ) | ||
4996 | echo "$as_me:$LINENO: result: buggy" >&5 | ||
4997 | echo "${ECHO_T}buggy" >&6 | ||
4998 | cat >>confdefs.h <<\_ACEOF | ||
4999 | #define BROKEN_GETADDRINFO 1 | ||
5000 | _ACEOF | ||
5001 | |||
5002 | fi | ||
5003 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5004 | fi | ||
5005 | cat >>confdefs.h <<\_ACEOF | ||
5006 | #define SETEUID_BREAKS_SETUID 1 | ||
5007 | _ACEOF | ||
5008 | |||
5009 | cat >>confdefs.h <<\_ACEOF | ||
5010 | #define BROKEN_SETREUID 1 | ||
5011 | _ACEOF | ||
5012 | |||
5013 | cat >>confdefs.h <<\_ACEOF | ||
5014 | #define BROKEN_SETREGID 1 | ||
5015 | _ACEOF | ||
5016 | |||
5017 | cat >>confdefs.h <<_ACEOF | ||
5018 | #define BIND_8_COMPAT 1 | ||
5019 | _ACEOF | ||
5020 | |||
5021 | ;; | ||
5022 | *-*-hpux10.26) | ||
5023 | if test -z "$GCC"; then | ||
5024 | CFLAGS="$CFLAGS -Ae" | ||
5025 | fi | ||
5026 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
5027 | IPADDR_IN_DISPLAY=yes | ||
5028 | cat >>confdefs.h <<\_ACEOF | ||
5029 | #define HAVE_SECUREWARE 1 | ||
5030 | _ACEOF | ||
5031 | |||
5032 | cat >>confdefs.h <<\_ACEOF | ||
5033 | #define USE_PIPES 1 | ||
5034 | _ACEOF | ||
5035 | |||
5036 | cat >>confdefs.h <<\_ACEOF | ||
5037 | #define LOGIN_NO_ENDOPT 1 | ||
5038 | _ACEOF | ||
5039 | |||
5040 | cat >>confdefs.h <<\_ACEOF | ||
5041 | #define LOGIN_NEEDS_UTMPX 1 | ||
5042 | _ACEOF | ||
5043 | |||
5044 | cat >>confdefs.h <<\_ACEOF | ||
5045 | #define LOCKED_PASSWD_STRING "*" | ||
5046 | _ACEOF | ||
5047 | |||
5048 | cat >>confdefs.h <<\_ACEOF | ||
5049 | #define SPT_TYPE SPT_PSTAT | ||
5050 | _ACEOF | ||
5051 | |||
5052 | LIBS="$LIBS -lsec -lsecpw" | ||
5053 | |||
5054 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
5055 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
5056 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
5057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5058 | else | ||
5059 | ac_check_lib_save_LIBS=$LIBS | ||
5060 | LIBS="-lxnet $LIBS" | ||
5061 | cat >conftest.$ac_ext <<_ACEOF | ||
5062 | /* confdefs.h. */ | ||
5063 | _ACEOF | ||
5064 | cat confdefs.h >>conftest.$ac_ext | ||
5065 | cat >>conftest.$ac_ext <<_ACEOF | ||
5066 | /* end confdefs.h. */ | ||
5067 | |||
5068 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5069 | #ifdef __cplusplus | ||
5070 | extern "C" | ||
5071 | #endif | ||
5072 | /* We use char because int might match the return type of a gcc2 | ||
5073 | builtin and then its argument prototype would still apply. */ | ||
5074 | char t_error (); | ||
5075 | int | ||
5076 | main () | ||
5077 | { | ||
5078 | t_error (); | ||
5079 | ; | ||
5080 | return 0; | ||
5081 | } | ||
5082 | _ACEOF | ||
5083 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5085 | (eval $ac_link) 2>conftest.er1 | ||
5086 | ac_status=$? | ||
5087 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5088 | rm -f conftest.er1 | ||
5089 | cat conftest.err >&5 | ||
5090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5091 | (exit $ac_status); } && | ||
5092 | { ac_try='test -z "$ac_c_werror_flag" | ||
5093 | || test ! -s conftest.err' | ||
5094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5095 | (eval $ac_try) 2>&5 | ||
5096 | ac_status=$? | ||
5097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5098 | (exit $ac_status); }; } && | ||
5099 | { ac_try='test -s conftest$ac_exeext' | ||
5100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5101 | (eval $ac_try) 2>&5 | ||
5102 | ac_status=$? | ||
5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5104 | (exit $ac_status); }; }; then | ||
5105 | ac_cv_lib_xnet_t_error=yes | ||
5106 | else | ||
5107 | echo "$as_me: failed program was:" >&5 | ||
5108 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5109 | |||
5110 | ac_cv_lib_xnet_t_error=no | ||
5111 | fi | ||
5112 | rm -f conftest.err conftest.$ac_objext \ | ||
5113 | conftest$ac_exeext conftest.$ac_ext | ||
5114 | LIBS=$ac_check_lib_save_LIBS | ||
5115 | fi | ||
5116 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
5117 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
5118 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
5119 | cat >>confdefs.h <<_ACEOF | ||
5120 | #define HAVE_LIBXNET 1 | ||
5121 | _ACEOF | ||
5122 | |||
5123 | LIBS="-lxnet $LIBS" | ||
5124 | |||
5125 | else | ||
5126 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
5127 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
5128 | { (exit 1); exit 1; }; } | ||
5129 | fi | ||
5130 | |||
5131 | disable_ptmx_check=yes | ||
5132 | ;; | ||
5133 | *-*-hpux10*) | ||
5134 | if test -z "$GCC"; then | ||
5135 | CFLAGS="$CFLAGS -Ae" | ||
5136 | fi | ||
5137 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
5138 | IPADDR_IN_DISPLAY=yes | ||
5139 | cat >>confdefs.h <<\_ACEOF | ||
5140 | #define USE_PIPES 1 | ||
5141 | _ACEOF | ||
5142 | |||
5143 | cat >>confdefs.h <<\_ACEOF | ||
5144 | #define LOGIN_NO_ENDOPT 1 | ||
5145 | _ACEOF | ||
5146 | |||
5147 | cat >>confdefs.h <<\_ACEOF | ||
5148 | #define LOGIN_NEEDS_UTMPX 1 | ||
5149 | _ACEOF | ||
5150 | |||
5151 | cat >>confdefs.h <<\_ACEOF | ||
5152 | #define LOCKED_PASSWD_STRING "*" | ||
5153 | _ACEOF | ||
5154 | |||
5155 | cat >>confdefs.h <<\_ACEOF | ||
5156 | #define SPT_TYPE SPT_PSTAT | ||
5157 | _ACEOF | ||
5158 | |||
5159 | LIBS="$LIBS -lsec" | ||
5160 | |||
5161 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
5162 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
5163 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
5164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5165 | else | ||
5166 | ac_check_lib_save_LIBS=$LIBS | ||
5167 | LIBS="-lxnet $LIBS" | ||
5168 | cat >conftest.$ac_ext <<_ACEOF | ||
5169 | /* confdefs.h. */ | ||
5170 | _ACEOF | ||
5171 | cat confdefs.h >>conftest.$ac_ext | ||
5172 | cat >>conftest.$ac_ext <<_ACEOF | ||
5173 | /* end confdefs.h. */ | ||
5174 | |||
5175 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5176 | #ifdef __cplusplus | ||
5177 | extern "C" | ||
5178 | #endif | ||
5179 | /* We use char because int might match the return type of a gcc2 | ||
5180 | builtin and then its argument prototype would still apply. */ | ||
5181 | char t_error (); | ||
5182 | int | ||
5183 | main () | ||
5184 | { | ||
5185 | t_error (); | ||
5186 | ; | ||
5187 | return 0; | ||
5188 | } | ||
5189 | _ACEOF | ||
5190 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5192 | (eval $ac_link) 2>conftest.er1 | ||
5193 | ac_status=$? | ||
5194 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5195 | rm -f conftest.er1 | ||
5196 | cat conftest.err >&5 | ||
5197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5198 | (exit $ac_status); } && | ||
5199 | { ac_try='test -z "$ac_c_werror_flag" | ||
5200 | || test ! -s conftest.err' | ||
5201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5202 | (eval $ac_try) 2>&5 | ||
5203 | ac_status=$? | ||
5204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5205 | (exit $ac_status); }; } && | ||
5206 | { ac_try='test -s conftest$ac_exeext' | ||
5207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5208 | (eval $ac_try) 2>&5 | ||
5209 | ac_status=$? | ||
5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5211 | (exit $ac_status); }; }; then | ||
5212 | ac_cv_lib_xnet_t_error=yes | ||
5213 | else | ||
5214 | echo "$as_me: failed program was:" >&5 | ||
5215 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5216 | |||
5217 | ac_cv_lib_xnet_t_error=no | ||
5218 | fi | ||
5219 | rm -f conftest.err conftest.$ac_objext \ | ||
5220 | conftest$ac_exeext conftest.$ac_ext | ||
5221 | LIBS=$ac_check_lib_save_LIBS | ||
5222 | fi | ||
5223 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
5224 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
5225 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
5226 | cat >>confdefs.h <<_ACEOF | ||
5227 | #define HAVE_LIBXNET 1 | ||
5228 | _ACEOF | ||
5229 | |||
5230 | LIBS="-lxnet $LIBS" | ||
5231 | |||
5232 | else | ||
5233 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
5234 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
5235 | { (exit 1); exit 1; }; } | ||
5236 | fi | ||
5237 | |||
5238 | ;; | ||
5239 | *-*-hpux11*) | ||
5240 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
5241 | IPADDR_IN_DISPLAY=yes | ||
5242 | cat >>confdefs.h <<\_ACEOF | ||
5243 | #define PAM_SUN_CODEBASE 1 | ||
5244 | _ACEOF | ||
5245 | |||
5246 | cat >>confdefs.h <<\_ACEOF | ||
5247 | #define USE_PIPES 1 | ||
5248 | _ACEOF | ||
5249 | |||
5250 | cat >>confdefs.h <<\_ACEOF | ||
5251 | #define LOGIN_NO_ENDOPT 1 | ||
5252 | _ACEOF | ||
5253 | |||
5254 | cat >>confdefs.h <<\_ACEOF | ||
5255 | #define LOGIN_NEEDS_UTMPX 1 | ||
5256 | _ACEOF | ||
5257 | |||
5258 | cat >>confdefs.h <<\_ACEOF | ||
5259 | #define DISABLE_UTMP 1 | ||
5260 | _ACEOF | ||
5261 | |||
5262 | cat >>confdefs.h <<\_ACEOF | ||
5263 | #define LOCKED_PASSWD_STRING "*" | ||
5264 | _ACEOF | ||
5265 | |||
5266 | cat >>confdefs.h <<\_ACEOF | ||
5267 | #define SPT_TYPE SPT_PSTAT | ||
5268 | _ACEOF | ||
5269 | |||
5270 | |||
5271 | cat >>confdefs.h <<\_ACEOF | ||
5272 | #define USE_BTMP 1 | ||
5273 | _ACEOF | ||
5274 | |||
5275 | check_for_hpux_broken_getaddrinfo=1 | ||
5276 | check_for_conflicting_getspnam=1 | ||
5277 | LIBS="$LIBS -lsec" | ||
5278 | |||
5279 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
5280 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
5281 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5283 | else | ||
5284 | ac_check_lib_save_LIBS=$LIBS | ||
5285 | LIBS="-lxnet $LIBS" | ||
5286 | cat >conftest.$ac_ext <<_ACEOF | ||
5287 | /* confdefs.h. */ | ||
5288 | _ACEOF | ||
5289 | cat confdefs.h >>conftest.$ac_ext | ||
5290 | cat >>conftest.$ac_ext <<_ACEOF | ||
5291 | /* end confdefs.h. */ | ||
5292 | |||
5293 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5294 | #ifdef __cplusplus | ||
5295 | extern "C" | ||
5296 | #endif | ||
5297 | /* We use char because int might match the return type of a gcc2 | ||
5298 | builtin and then its argument prototype would still apply. */ | ||
5299 | char t_error (); | ||
5300 | int | ||
5301 | main () | ||
5302 | { | ||
5303 | t_error (); | ||
5304 | ; | ||
5305 | return 0; | ||
5306 | } | ||
5307 | _ACEOF | ||
5308 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5310 | (eval $ac_link) 2>conftest.er1 | ||
5311 | ac_status=$? | ||
5312 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5313 | rm -f conftest.er1 | ||
5314 | cat conftest.err >&5 | ||
5315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5316 | (exit $ac_status); } && | ||
5317 | { ac_try='test -z "$ac_c_werror_flag" | ||
5318 | || test ! -s conftest.err' | ||
5319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5320 | (eval $ac_try) 2>&5 | ||
5321 | ac_status=$? | ||
5322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5323 | (exit $ac_status); }; } && | ||
5324 | { ac_try='test -s conftest$ac_exeext' | ||
5325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5326 | (eval $ac_try) 2>&5 | ||
5327 | ac_status=$? | ||
5328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5329 | (exit $ac_status); }; }; then | ||
5330 | ac_cv_lib_xnet_t_error=yes | ||
5331 | else | ||
5332 | echo "$as_me: failed program was:" >&5 | ||
5333 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5334 | |||
5335 | ac_cv_lib_xnet_t_error=no | ||
5336 | fi | ||
5337 | rm -f conftest.err conftest.$ac_objext \ | ||
5338 | conftest$ac_exeext conftest.$ac_ext | ||
5339 | LIBS=$ac_check_lib_save_LIBS | ||
5340 | fi | ||
5341 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
5342 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
5343 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
5344 | cat >>confdefs.h <<_ACEOF | ||
5345 | #define HAVE_LIBXNET 1 | ||
5346 | _ACEOF | ||
5347 | |||
5348 | LIBS="-lxnet $LIBS" | ||
5349 | |||
5350 | else | ||
5351 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
5352 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
5353 | { (exit 1); exit 1; }; } | ||
5354 | fi | ||
5355 | |||
5356 | ;; | ||
5357 | *-*-irix5*) | ||
5358 | PATH="$PATH:/usr/etc" | ||
5359 | cat >>confdefs.h <<\_ACEOF | ||
5360 | #define BROKEN_INET_NTOA 1 | ||
5361 | _ACEOF | ||
5362 | |||
5363 | cat >>confdefs.h <<\_ACEOF | ||
5364 | #define SETEUID_BREAKS_SETUID 1 | ||
5365 | _ACEOF | ||
5366 | |||
5367 | cat >>confdefs.h <<\_ACEOF | ||
5368 | #define BROKEN_SETREUID 1 | ||
5369 | _ACEOF | ||
5370 | |||
5371 | cat >>confdefs.h <<\_ACEOF | ||
5372 | #define BROKEN_SETREGID 1 | ||
5373 | _ACEOF | ||
5374 | |||
5375 | cat >>confdefs.h <<\_ACEOF | ||
5376 | #define WITH_ABBREV_NO_TTY 1 | ||
5377 | _ACEOF | ||
5378 | |||
5379 | cat >>confdefs.h <<\_ACEOF | ||
5380 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5381 | _ACEOF | ||
5382 | |||
5383 | ;; | ||
5384 | *-*-irix6*) | ||
5385 | PATH="$PATH:/usr/etc" | ||
5386 | cat >>confdefs.h <<\_ACEOF | ||
5387 | #define WITH_IRIX_ARRAY 1 | ||
5388 | _ACEOF | ||
5389 | |||
5390 | cat >>confdefs.h <<\_ACEOF | ||
5391 | #define WITH_IRIX_PROJECT 1 | ||
5392 | _ACEOF | ||
5393 | |||
5394 | cat >>confdefs.h <<\_ACEOF | ||
5395 | #define WITH_IRIX_AUDIT 1 | ||
5396 | _ACEOF | ||
5397 | |||
5398 | echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
5399 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
5400 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
5401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5402 | else | ||
5403 | cat >conftest.$ac_ext <<_ACEOF | ||
5404 | /* confdefs.h. */ | ||
5405 | _ACEOF | ||
5406 | cat confdefs.h >>conftest.$ac_ext | ||
5407 | cat >>conftest.$ac_ext <<_ACEOF | ||
5408 | /* end confdefs.h. */ | ||
5409 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
5410 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5411 | #define jlimit_startjob innocuous_jlimit_startjob | ||
5412 | |||
5413 | /* System header to define __stub macros and hopefully few prototypes, | ||
5414 | which can conflict with char jlimit_startjob (); below. | ||
5415 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5416 | <limits.h> exists even on freestanding compilers. */ | ||
5417 | |||
5418 | #ifdef __STDC__ | ||
5419 | # include <limits.h> | ||
5420 | #else | ||
5421 | # include <assert.h> | ||
5422 | #endif | ||
5423 | |||
5424 | #undef jlimit_startjob | ||
5425 | |||
5426 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5427 | #ifdef __cplusplus | ||
5428 | extern "C" | ||
5429 | { | ||
5430 | #endif | ||
5431 | /* We use char because int might match the return type of a gcc2 | ||
5432 | builtin and then its argument prototype would still apply. */ | ||
5433 | char jlimit_startjob (); | ||
5434 | /* The GNU C library defines this for functions which it implements | ||
5435 | to always fail with ENOSYS. Some functions are actually named | ||
5436 | something starting with __ and the normal name is an alias. */ | ||
5437 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
5438 | choke me | ||
5439 | #else | ||
5440 | char (*f) () = jlimit_startjob; | ||
5441 | #endif | ||
5442 | #ifdef __cplusplus | ||
5443 | } | ||
5444 | #endif | ||
5445 | |||
5446 | int | ||
5447 | main () | ||
5448 | { | ||
5449 | return f != jlimit_startjob; | ||
5450 | ; | ||
5451 | return 0; | ||
5452 | } | ||
5453 | _ACEOF | ||
5454 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5456 | (eval $ac_link) 2>conftest.er1 | ||
5457 | ac_status=$? | ||
5458 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5459 | rm -f conftest.er1 | ||
5460 | cat conftest.err >&5 | ||
5461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5462 | (exit $ac_status); } && | ||
5463 | { ac_try='test -z "$ac_c_werror_flag" | ||
5464 | || test ! -s conftest.err' | ||
5465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5466 | (eval $ac_try) 2>&5 | ||
5467 | ac_status=$? | ||
5468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5469 | (exit $ac_status); }; } && | ||
5470 | { ac_try='test -s conftest$ac_exeext' | ||
5471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5472 | (eval $ac_try) 2>&5 | ||
5473 | ac_status=$? | ||
5474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5475 | (exit $ac_status); }; }; then | ||
5476 | ac_cv_func_jlimit_startjob=yes | ||
5477 | else | ||
5478 | echo "$as_me: failed program was:" >&5 | ||
5479 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5480 | |||
5481 | ac_cv_func_jlimit_startjob=no | ||
5482 | fi | ||
5483 | rm -f conftest.err conftest.$ac_objext \ | ||
5484 | conftest$ac_exeext conftest.$ac_ext | ||
5485 | fi | ||
5486 | echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
5487 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
5488 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
5489 | cat >>confdefs.h <<\_ACEOF | ||
5490 | #define WITH_IRIX_JOBS 1 | ||
5491 | _ACEOF | ||
5492 | |||
5493 | fi | ||
5494 | |||
5495 | cat >>confdefs.h <<\_ACEOF | ||
5496 | #define BROKEN_INET_NTOA 1 | ||
5497 | _ACEOF | ||
5498 | |||
5499 | cat >>confdefs.h <<\_ACEOF | ||
5500 | #define SETEUID_BREAKS_SETUID 1 | ||
5501 | _ACEOF | ||
5502 | |||
5503 | cat >>confdefs.h <<\_ACEOF | ||
5504 | #define BROKEN_SETREUID 1 | ||
5505 | _ACEOF | ||
5506 | |||
5507 | cat >>confdefs.h <<\_ACEOF | ||
5508 | #define BROKEN_SETREGID 1 | ||
5509 | _ACEOF | ||
5510 | |||
5511 | cat >>confdefs.h <<\_ACEOF | ||
5512 | #define BROKEN_UPDWTMPX 1 | ||
5513 | _ACEOF | ||
5514 | |||
5515 | cat >>confdefs.h <<\_ACEOF | ||
5516 | #define WITH_ABBREV_NO_TTY 1 | ||
5517 | _ACEOF | ||
5518 | |||
5519 | cat >>confdefs.h <<\_ACEOF | ||
5520 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5521 | _ACEOF | ||
5522 | |||
5523 | ;; | ||
5524 | *-*-linux*) | ||
5525 | no_dev_ptmx=1 | ||
5526 | check_for_libcrypt_later=1 | ||
5527 | check_for_openpty_ctty_bug=1 | ||
5528 | cat >>confdefs.h <<\_ACEOF | ||
5529 | #define DONT_TRY_OTHER_AF 1 | ||
5530 | _ACEOF | ||
5531 | |||
5532 | cat >>confdefs.h <<\_ACEOF | ||
5533 | #define PAM_TTY_KLUDGE 1 | ||
5534 | _ACEOF | ||
5535 | |||
5536 | cat >>confdefs.h <<\_ACEOF | ||
5537 | #define LOCKED_PASSWD_PREFIX "!" | ||
5538 | _ACEOF | ||
5539 | |||
5540 | cat >>confdefs.h <<\_ACEOF | ||
5541 | #define SPT_TYPE SPT_REUSEARGV | ||
5542 | _ACEOF | ||
5543 | |||
5544 | cat >>confdefs.h <<\_ACEOF | ||
5545 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
5546 | _ACEOF | ||
5547 | |||
5548 | |||
5549 | cat >>confdefs.h <<\_ACEOF | ||
5550 | #define _PATH_BTMP "/var/log/btmp" | ||
5551 | _ACEOF | ||
5552 | |||
5553 | |||
5554 | cat >>confdefs.h <<\_ACEOF | ||
5555 | #define USE_BTMP 1 | ||
5556 | _ACEOF | ||
5557 | |||
5558 | inet6_default_4in6=yes | ||
5559 | case `uname -r` in | ||
5560 | 1.*|2.0.*) | ||
5561 | cat >>confdefs.h <<\_ACEOF | ||
5562 | #define BROKEN_CMSG_TYPE 1 | ||
5563 | _ACEOF | ||
5564 | |||
5565 | ;; | ||
5566 | esac | ||
5567 | ;; | ||
5568 | mips-sony-bsd|mips-sony-newsos4) | ||
5569 | cat >>confdefs.h <<\_ACEOF | ||
5570 | #define HAVE_NEWS4 1 | ||
5571 | _ACEOF | ||
5572 | |||
5573 | SONY=1 | ||
5574 | ;; | ||
5575 | *-*-netbsd*) | ||
5576 | check_for_libcrypt_before=1 | ||
5577 | if test "x$withval" != "xno" ; then | ||
5578 | need_dash_r=1 | ||
5579 | fi | ||
5580 | ;; | ||
5581 | *-*-freebsd*) | ||
5582 | check_for_libcrypt_later=1 | ||
5583 | ;; | ||
5584 | *-*-bsdi*) | ||
5585 | cat >>confdefs.h <<\_ACEOF | ||
5586 | #define SETEUID_BREAKS_SETUID 1 | ||
5587 | _ACEOF | ||
5588 | |||
5589 | cat >>confdefs.h <<\_ACEOF | ||
5590 | #define BROKEN_SETREUID 1 | ||
5591 | _ACEOF | ||
5592 | |||
5593 | cat >>confdefs.h <<\_ACEOF | ||
5594 | #define BROKEN_SETREGID 1 | ||
5595 | _ACEOF | ||
5596 | |||
5597 | ;; | ||
5598 | *-next-*) | ||
5599 | conf_lastlog_location="/usr/adm/lastlog" | ||
5600 | conf_utmp_location=/etc/utmp | ||
5601 | conf_wtmp_location=/usr/adm/wtmp | ||
5602 | MAIL=/usr/spool/mail | ||
5603 | cat >>confdefs.h <<\_ACEOF | ||
5604 | #define HAVE_NEXT 1 | ||
5605 | _ACEOF | ||
5606 | |||
5607 | cat >>confdefs.h <<\_ACEOF | ||
5608 | #define BROKEN_REALPATH 1 | ||
5609 | _ACEOF | ||
5610 | |||
5611 | cat >>confdefs.h <<\_ACEOF | ||
5612 | #define USE_PIPES 1 | ||
5613 | _ACEOF | ||
5614 | |||
5615 | cat >>confdefs.h <<\_ACEOF | ||
5616 | #define BROKEN_SAVED_UIDS 1 | ||
5617 | _ACEOF | ||
5618 | |||
5619 | ;; | ||
5620 | *-*-solaris*) | ||
5621 | if test "x$withval" != "xno" ; then | ||
5622 | need_dash_r=1 | ||
5623 | fi | ||
5624 | cat >>confdefs.h <<\_ACEOF | ||
5625 | #define PAM_SUN_CODEBASE 1 | ||
5626 | _ACEOF | ||
5627 | |||
5628 | cat >>confdefs.h <<\_ACEOF | ||
5629 | #define LOGIN_NEEDS_UTMPX 1 | ||
5630 | _ACEOF | ||
5631 | |||
5632 | cat >>confdefs.h <<\_ACEOF | ||
5633 | #define LOGIN_NEEDS_TERM 1 | ||
5634 | _ACEOF | ||
5635 | |||
5636 | cat >>confdefs.h <<\_ACEOF | ||
5637 | #define PAM_TTY_KLUDGE 1 | ||
5638 | _ACEOF | ||
5639 | |||
5640 | cat >>confdefs.h <<\_ACEOF | ||
5641 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
5642 | _ACEOF | ||
5643 | |||
5644 | cat >>confdefs.h <<\_ACEOF | ||
5645 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5646 | _ACEOF | ||
5647 | |||
5648 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
5649 | cat >>confdefs.h <<\_ACEOF | ||
5650 | #define SSHD_ACQUIRES_CTTY 1 | ||
5651 | _ACEOF | ||
5652 | |||
5653 | external_path_file=/etc/default/login | ||
5654 | # hardwire lastlog location (can't detect it on some versions) | ||
5655 | conf_lastlog_location="/var/adm/lastlog" | ||
5656 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
5657 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
5658 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
5659 | if test "$sol2ver" -ge 8; then | ||
5660 | echo "$as_me:$LINENO: result: yes" >&5 | ||
5661 | echo "${ECHO_T}yes" >&6 | ||
5662 | cat >>confdefs.h <<\_ACEOF | ||
5663 | #define DISABLE_UTMP 1 | ||
5664 | _ACEOF | ||
5665 | |||
5666 | cat >>confdefs.h <<\_ACEOF | ||
5667 | #define DISABLE_WTMP 1 | ||
5668 | _ACEOF | ||
5669 | |||
5670 | else | ||
5671 | echo "$as_me:$LINENO: result: no" >&5 | ||
5672 | echo "${ECHO_T}no" >&6 | ||
5673 | fi | ||
5674 | ;; | ||
5675 | *-*-sunos4*) | ||
5676 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
5677 | |||
5678 | for ac_func in getpwanam | ||
5679 | do | ||
5680 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5681 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5682 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5683 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5685 | else | ||
5686 | cat >conftest.$ac_ext <<_ACEOF | ||
5687 | /* confdefs.h. */ | ||
5688 | _ACEOF | ||
5689 | cat confdefs.h >>conftest.$ac_ext | ||
5690 | cat >>conftest.$ac_ext <<_ACEOF | ||
5691 | /* end confdefs.h. */ | ||
5692 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5693 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5694 | #define $ac_func innocuous_$ac_func | ||
5695 | |||
5696 | /* System header to define __stub macros and hopefully few prototypes, | ||
5697 | which can conflict with char $ac_func (); below. | ||
5698 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5699 | <limits.h> exists even on freestanding compilers. */ | ||
5700 | |||
5701 | #ifdef __STDC__ | ||
5702 | # include <limits.h> | ||
5703 | #else | ||
5704 | # include <assert.h> | ||
5705 | #endif | ||
5706 | |||
5707 | #undef $ac_func | ||
5708 | |||
5709 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5710 | #ifdef __cplusplus | ||
5711 | extern "C" | ||
5712 | { | ||
5713 | #endif | ||
5714 | /* We use char because int might match the return type of a gcc2 | ||
5715 | builtin and then its argument prototype would still apply. */ | ||
5716 | char $ac_func (); | ||
5717 | /* The GNU C library defines this for functions which it implements | ||
5718 | to always fail with ENOSYS. Some functions are actually named | ||
5719 | something starting with __ and the normal name is an alias. */ | ||
5720 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5721 | choke me | ||
5722 | #else | ||
5723 | char (*f) () = $ac_func; | ||
5724 | #endif | ||
5725 | #ifdef __cplusplus | ||
5726 | } | ||
5727 | #endif | ||
5728 | |||
5729 | int | ||
5730 | main () | ||
5731 | { | ||
5732 | return f != $ac_func; | ||
5733 | ; | ||
5734 | return 0; | ||
5735 | } | ||
5736 | _ACEOF | ||
5737 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5739 | (eval $ac_link) 2>conftest.er1 | ||
5740 | ac_status=$? | ||
5741 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5742 | rm -f conftest.er1 | ||
5743 | cat conftest.err >&5 | ||
5744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5745 | (exit $ac_status); } && | ||
5746 | { ac_try='test -z "$ac_c_werror_flag" | ||
5747 | || test ! -s conftest.err' | ||
5748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5749 | (eval $ac_try) 2>&5 | ||
5750 | ac_status=$? | ||
5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5752 | (exit $ac_status); }; } && | ||
5753 | { ac_try='test -s conftest$ac_exeext' | ||
5754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5755 | (eval $ac_try) 2>&5 | ||
5756 | ac_status=$? | ||
5757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5758 | (exit $ac_status); }; }; then | ||
5759 | eval "$as_ac_var=yes" | ||
5760 | else | ||
5761 | echo "$as_me: failed program was:" >&5 | ||
5762 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5763 | |||
5764 | eval "$as_ac_var=no" | ||
5765 | fi | ||
5766 | rm -f conftest.err conftest.$ac_objext \ | ||
5767 | conftest$ac_exeext conftest.$ac_ext | ||
5768 | fi | ||
5769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5770 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5771 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5772 | cat >>confdefs.h <<_ACEOF | ||
5773 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5774 | _ACEOF | ||
5775 | |||
5776 | fi | ||
5777 | done | ||
5778 | |||
5779 | cat >>confdefs.h <<\_ACEOF | ||
5780 | #define PAM_SUN_CODEBASE 1 | ||
5781 | _ACEOF | ||
5782 | |||
5783 | conf_utmp_location=/etc/utmp | ||
5784 | conf_wtmp_location=/var/adm/wtmp | ||
5785 | conf_lastlog_location=/var/adm/lastlog | ||
5786 | cat >>confdefs.h <<\_ACEOF | ||
5787 | #define USE_PIPES 1 | ||
5788 | _ACEOF | ||
5789 | |||
5790 | ;; | ||
5791 | *-ncr-sysv*) | ||
5792 | LIBS="$LIBS -lc89" | ||
5793 | cat >>confdefs.h <<\_ACEOF | ||
5794 | #define USE_PIPES 1 | ||
5795 | _ACEOF | ||
5796 | |||
5797 | cat >>confdefs.h <<\_ACEOF | ||
5798 | #define SSHD_ACQUIRES_CTTY 1 | ||
5799 | _ACEOF | ||
5800 | |||
5801 | cat >>confdefs.h <<\_ACEOF | ||
5802 | #define SETEUID_BREAKS_SETUID 1 | ||
5803 | _ACEOF | ||
5804 | |||
5805 | cat >>confdefs.h <<\_ACEOF | ||
5806 | #define BROKEN_SETREUID 1 | ||
5807 | _ACEOF | ||
5808 | |||
5809 | cat >>confdefs.h <<\_ACEOF | ||
5810 | #define BROKEN_SETREGID 1 | ||
5811 | _ACEOF | ||
5812 | |||
5813 | ;; | ||
5814 | *-sni-sysv*) | ||
5815 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
5816 | |||
5817 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
5818 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 | ||
5819 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
5820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5821 | else | ||
5822 | ac_check_lib_save_LIBS=$LIBS | ||
5823 | LIBS="-ldl $LIBS" | ||
5824 | cat >conftest.$ac_ext <<_ACEOF | ||
5825 | /* confdefs.h. */ | ||
5826 | _ACEOF | ||
5827 | cat confdefs.h >>conftest.$ac_ext | ||
5828 | cat >>conftest.$ac_ext <<_ACEOF | ||
5829 | /* end confdefs.h. */ | ||
5830 | |||
5831 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5832 | #ifdef __cplusplus | ||
5833 | extern "C" | ||
5834 | #endif | ||
5835 | /* We use char because int might match the return type of a gcc2 | ||
5836 | builtin and then its argument prototype would still apply. */ | ||
5837 | char dlsym (); | ||
5838 | int | ||
5839 | main () | ||
5840 | { | ||
5841 | dlsym (); | ||
5842 | ; | ||
5843 | return 0; | ||
5844 | } | ||
5845 | _ACEOF | ||
5846 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5848 | (eval $ac_link) 2>conftest.er1 | ||
5849 | ac_status=$? | ||
5850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5851 | rm -f conftest.er1 | ||
5852 | cat conftest.err >&5 | ||
5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5854 | (exit $ac_status); } && | ||
5855 | { ac_try='test -z "$ac_c_werror_flag" | ||
5856 | || test ! -s conftest.err' | ||
5857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5858 | (eval $ac_try) 2>&5 | ||
5859 | ac_status=$? | ||
5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5861 | (exit $ac_status); }; } && | ||
5862 | { ac_try='test -s conftest$ac_exeext' | ||
5863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5864 | (eval $ac_try) 2>&5 | ||
5865 | ac_status=$? | ||
5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5867 | (exit $ac_status); }; }; then | ||
5868 | ac_cv_lib_dl_dlsym=yes | ||
5869 | else | ||
5870 | echo "$as_me: failed program was:" >&5 | ||
5871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5872 | |||
5873 | ac_cv_lib_dl_dlsym=no | ||
5874 | fi | ||
5875 | rm -f conftest.err conftest.$ac_objext \ | ||
5876 | conftest$ac_exeext conftest.$ac_ext | ||
5877 | LIBS=$ac_check_lib_save_LIBS | ||
5878 | fi | ||
5879 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
5880 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 | ||
5881 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
5882 | cat >>confdefs.h <<_ACEOF | ||
5883 | #define HAVE_LIBDL 1 | ||
5884 | _ACEOF | ||
5885 | |||
5886 | LIBS="-ldl $LIBS" | ||
5887 | |||
5888 | fi | ||
5889 | |||
5890 | # -lresolv needs to be at then end of LIBS or DNS lookups break | ||
5891 | echo "$as_me:$LINENO: checking for resolv in -lres_query" >&5 | ||
5892 | echo $ECHO_N "checking for resolv in -lres_query... $ECHO_C" >&6 | ||
5893 | if test "${ac_cv_lib_res_query_resolv+set}" = set; then | ||
5894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5895 | else | ||
5896 | ac_check_lib_save_LIBS=$LIBS | ||
5897 | LIBS="-lres_query $LIBS" | ||
5898 | cat >conftest.$ac_ext <<_ACEOF | ||
5899 | /* confdefs.h. */ | ||
5900 | _ACEOF | ||
5901 | cat confdefs.h >>conftest.$ac_ext | ||
5902 | cat >>conftest.$ac_ext <<_ACEOF | ||
5903 | /* end confdefs.h. */ | ||
5904 | |||
5905 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5906 | #ifdef __cplusplus | ||
5907 | extern "C" | ||
5908 | #endif | ||
5909 | /* We use char because int might match the return type of a gcc2 | ||
5910 | builtin and then its argument prototype would still apply. */ | ||
5911 | char resolv (); | ||
5912 | int | ||
5913 | main () | ||
5914 | { | ||
5915 | resolv (); | ||
5916 | ; | ||
5917 | return 0; | ||
5918 | } | ||
5919 | _ACEOF | ||
5920 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5922 | (eval $ac_link) 2>conftest.er1 | ||
5923 | ac_status=$? | ||
5924 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5925 | rm -f conftest.er1 | ||
5926 | cat conftest.err >&5 | ||
5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5928 | (exit $ac_status); } && | ||
5929 | { ac_try='test -z "$ac_c_werror_flag" | ||
5930 | || test ! -s conftest.err' | ||
5931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5932 | (eval $ac_try) 2>&5 | ||
5933 | ac_status=$? | ||
5934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5935 | (exit $ac_status); }; } && | ||
5936 | { ac_try='test -s conftest$ac_exeext' | ||
5937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5938 | (eval $ac_try) 2>&5 | ||
5939 | ac_status=$? | ||
5940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5941 | (exit $ac_status); }; }; then | ||
5942 | ac_cv_lib_res_query_resolv=yes | ||
5943 | else | ||
5944 | echo "$as_me: failed program was:" >&5 | ||
5945 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5946 | |||
5947 | ac_cv_lib_res_query_resolv=no | ||
5948 | fi | ||
5949 | rm -f conftest.err conftest.$ac_objext \ | ||
5950 | conftest$ac_exeext conftest.$ac_ext | ||
5951 | LIBS=$ac_check_lib_save_LIBS | ||
5952 | fi | ||
5953 | echo "$as_me:$LINENO: result: $ac_cv_lib_res_query_resolv" >&5 | ||
5954 | echo "${ECHO_T}$ac_cv_lib_res_query_resolv" >&6 | ||
5955 | if test $ac_cv_lib_res_query_resolv = yes; then | ||
5956 | LIBS="$LIBS -lresolv" | ||
5957 | fi | ||
5958 | |||
5959 | IPADDR_IN_DISPLAY=yes | ||
5960 | cat >>confdefs.h <<\_ACEOF | ||
5961 | #define USE_PIPES 1 | ||
5962 | _ACEOF | ||
5963 | |||
5964 | cat >>confdefs.h <<\_ACEOF | ||
5965 | #define IP_TOS_IS_BROKEN 1 | ||
5966 | _ACEOF | ||
5967 | |||
5968 | cat >>confdefs.h <<\_ACEOF | ||
5969 | #define SETEUID_BREAKS_SETUID 1 | ||
5970 | _ACEOF | ||
5971 | |||
5972 | cat >>confdefs.h <<\_ACEOF | ||
5973 | #define BROKEN_SETREUID 1 | ||
5974 | _ACEOF | ||
5975 | |||
5976 | cat >>confdefs.h <<\_ACEOF | ||
5977 | #define BROKEN_SETREGID 1 | ||
5978 | _ACEOF | ||
5979 | |||
5980 | cat >>confdefs.h <<\_ACEOF | ||
5981 | #define SSHD_ACQUIRES_CTTY 1 | ||
5982 | _ACEOF | ||
5983 | |||
5984 | external_path_file=/etc/default/login | ||
5985 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
5986 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
5987 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
5988 | ;; | ||
5989 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
5990 | *-*-sysv4.2*) | ||
5991 | cat >>confdefs.h <<\_ACEOF | ||
5992 | #define USE_PIPES 1 | ||
5993 | _ACEOF | ||
5994 | |||
5995 | cat >>confdefs.h <<\_ACEOF | ||
5996 | #define SETEUID_BREAKS_SETUID 1 | ||
5997 | _ACEOF | ||
5998 | |||
5999 | cat >>confdefs.h <<\_ACEOF | ||
6000 | #define BROKEN_SETREUID 1 | ||
6001 | _ACEOF | ||
6002 | |||
6003 | cat >>confdefs.h <<\_ACEOF | ||
6004 | #define BROKEN_SETREGID 1 | ||
6005 | _ACEOF | ||
6006 | |||
6007 | ;; | ||
6008 | # UnixWare 7.x, OpenUNIX 8 | ||
6009 | *-*-sysv5*) | ||
6010 | cat >>confdefs.h <<\_ACEOF | ||
6011 | #define USE_PIPES 1 | ||
6012 | _ACEOF | ||
6013 | |||
6014 | cat >>confdefs.h <<\_ACEOF | ||
6015 | #define SETEUID_BREAKS_SETUID 1 | ||
6016 | _ACEOF | ||
6017 | |||
6018 | cat >>confdefs.h <<\_ACEOF | ||
6019 | #define BROKEN_SETREUID 1 | ||
6020 | _ACEOF | ||
6021 | |||
6022 | cat >>confdefs.h <<\_ACEOF | ||
6023 | #define BROKEN_SETREGID 1 | ||
6024 | _ACEOF | ||
6025 | |||
6026 | ;; | ||
6027 | *-*-sysv*) | ||
6028 | ;; | ||
6029 | # SCO UNIX and OEM versions of SCO UNIX | ||
6030 | *-*-sco3.2v4*) | ||
6031 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
6032 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
6033 | { (exit 1); exit 1; }; } | ||
6034 | ;; | ||
6035 | # SCO OpenServer 5.x | ||
6036 | *-*-sco3.2v5*) | ||
6037 | if test -z "$GCC"; then | ||
6038 | CFLAGS="$CFLAGS -belf" | ||
6039 | fi | ||
6040 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
6041 | no_dev_ptmx=1 | ||
6042 | cat >>confdefs.h <<\_ACEOF | ||
6043 | #define USE_PIPES 1 | ||
6044 | _ACEOF | ||
6045 | |||
6046 | cat >>confdefs.h <<\_ACEOF | ||
6047 | #define HAVE_SECUREWARE 1 | ||
6048 | _ACEOF | ||
6049 | |||
6050 | cat >>confdefs.h <<\_ACEOF | ||
6051 | #define DISABLE_SHADOW 1 | ||
6052 | _ACEOF | ||
6053 | |||
6054 | cat >>confdefs.h <<\_ACEOF | ||
6055 | #define DISABLE_FD_PASSING 1 | ||
6056 | _ACEOF | ||
6057 | |||
6058 | cat >>confdefs.h <<\_ACEOF | ||
6059 | #define SETEUID_BREAKS_SETUID 1 | ||
6060 | _ACEOF | ||
6061 | |||
6062 | cat >>confdefs.h <<\_ACEOF | ||
6063 | #define BROKEN_SETREUID 1 | ||
6064 | _ACEOF | ||
6065 | |||
6066 | cat >>confdefs.h <<\_ACEOF | ||
6067 | #define BROKEN_SETREGID 1 | ||
6068 | _ACEOF | ||
6069 | |||
6070 | cat >>confdefs.h <<\_ACEOF | ||
6071 | #define WITH_ABBREV_NO_TTY 1 | ||
6072 | _ACEOF | ||
6073 | |||
6074 | cat >>confdefs.h <<\_ACEOF | ||
6075 | #define BROKEN_UPDWTMPX 1 | ||
6076 | _ACEOF | ||
6077 | |||
6078 | |||
6079 | cat >>confdefs.h <<\_ACEOF | ||
6080 | #define PASSWD_NEEDS_USERNAME 1 | ||
6081 | _ACEOF | ||
6082 | |||
6083 | |||
6084 | |||
6085 | for ac_func in getluid setluid | ||
6086 | do | ||
6087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6088 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6090 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6092 | else | ||
6093 | cat >conftest.$ac_ext <<_ACEOF | ||
6094 | /* confdefs.h. */ | ||
6095 | _ACEOF | ||
6096 | cat confdefs.h >>conftest.$ac_ext | ||
6097 | cat >>conftest.$ac_ext <<_ACEOF | ||
6098 | /* end confdefs.h. */ | ||
6099 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
6100 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6101 | #define $ac_func innocuous_$ac_func | ||
6102 | |||
6103 | /* System header to define __stub macros and hopefully few prototypes, | ||
6104 | which can conflict with char $ac_func (); below. | ||
6105 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6106 | <limits.h> exists even on freestanding compilers. */ | ||
6107 | |||
6108 | #ifdef __STDC__ | ||
6109 | # include <limits.h> | ||
6110 | #else | ||
6111 | # include <assert.h> | ||
6112 | #endif | ||
6113 | |||
6114 | #undef $ac_func | ||
6115 | |||
6116 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6117 | #ifdef __cplusplus | ||
6118 | extern "C" | ||
6119 | { | ||
6120 | #endif | ||
6121 | /* We use char because int might match the return type of a gcc2 | ||
6122 | builtin and then its argument prototype would still apply. */ | ||
6123 | char $ac_func (); | ||
6124 | /* The GNU C library defines this for functions which it implements | ||
6125 | to always fail with ENOSYS. Some functions are actually named | ||
6126 | something starting with __ and the normal name is an alias. */ | ||
6127 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6128 | choke me | ||
6129 | #else | ||
6130 | char (*f) () = $ac_func; | ||
6131 | #endif | ||
6132 | #ifdef __cplusplus | ||
6133 | } | ||
6134 | #endif | ||
6135 | |||
6136 | int | ||
6137 | main () | ||
6138 | { | ||
6139 | return f != $ac_func; | ||
6140 | ; | ||
6141 | return 0; | ||
6142 | } | ||
6143 | _ACEOF | ||
6144 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6146 | (eval $ac_link) 2>conftest.er1 | ||
6147 | ac_status=$? | ||
6148 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6149 | rm -f conftest.er1 | ||
6150 | cat conftest.err >&5 | ||
6151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6152 | (exit $ac_status); } && | ||
6153 | { ac_try='test -z "$ac_c_werror_flag" | ||
6154 | || test ! -s conftest.err' | ||
6155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6156 | (eval $ac_try) 2>&5 | ||
6157 | ac_status=$? | ||
6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6159 | (exit $ac_status); }; } && | ||
6160 | { ac_try='test -s conftest$ac_exeext' | ||
6161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6162 | (eval $ac_try) 2>&5 | ||
6163 | ac_status=$? | ||
6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6165 | (exit $ac_status); }; }; then | ||
6166 | eval "$as_ac_var=yes" | ||
6167 | else | ||
6168 | echo "$as_me: failed program was:" >&5 | ||
6169 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6170 | |||
6171 | eval "$as_ac_var=no" | ||
6172 | fi | ||
6173 | rm -f conftest.err conftest.$ac_objext \ | ||
6174 | conftest$ac_exeext conftest.$ac_ext | ||
6175 | fi | ||
6176 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6177 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6178 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6179 | cat >>confdefs.h <<_ACEOF | ||
6180 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6181 | _ACEOF | ||
6182 | |||
6183 | fi | ||
6184 | done | ||
6185 | |||
6186 | MANTYPE=man | ||
6187 | TEST_SHELL=ksh | ||
6188 | ;; | ||
6189 | *-*-unicosmk*) | ||
6190 | cat >>confdefs.h <<\_ACEOF | ||
6191 | #define NO_SSH_LASTLOG 1 | ||
6192 | _ACEOF | ||
6193 | |||
6194 | cat >>confdefs.h <<\_ACEOF | ||
6195 | #define SETEUID_BREAKS_SETUID 1 | ||
6196 | _ACEOF | ||
6197 | |||
6198 | cat >>confdefs.h <<\_ACEOF | ||
6199 | #define BROKEN_SETREUID 1 | ||
6200 | _ACEOF | ||
6201 | |||
6202 | cat >>confdefs.h <<\_ACEOF | ||
6203 | #define BROKEN_SETREGID 1 | ||
6204 | _ACEOF | ||
6205 | |||
6206 | cat >>confdefs.h <<\_ACEOF | ||
6207 | #define USE_PIPES 1 | ||
6208 | _ACEOF | ||
6209 | |||
6210 | cat >>confdefs.h <<\_ACEOF | ||
6211 | #define DISABLE_FD_PASSING 1 | ||
6212 | _ACEOF | ||
6213 | |||
6214 | LDFLAGS="$LDFLAGS" | ||
6215 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
6216 | MANTYPE=cat | ||
6217 | ;; | ||
6218 | *-*-unicosmp*) | ||
6219 | cat >>confdefs.h <<\_ACEOF | ||
6220 | #define SETEUID_BREAKS_SETUID 1 | ||
6221 | _ACEOF | ||
6222 | |||
6223 | cat >>confdefs.h <<\_ACEOF | ||
6224 | #define BROKEN_SETREUID 1 | ||
6225 | _ACEOF | ||
6226 | |||
6227 | cat >>confdefs.h <<\_ACEOF | ||
6228 | #define BROKEN_SETREGID 1 | ||
6229 | _ACEOF | ||
6230 | |||
6231 | cat >>confdefs.h <<\_ACEOF | ||
6232 | #define WITH_ABBREV_NO_TTY 1 | ||
6233 | _ACEOF | ||
6234 | |||
6235 | cat >>confdefs.h <<\_ACEOF | ||
6236 | #define USE_PIPES 1 | ||
6237 | _ACEOF | ||
6238 | |||
6239 | cat >>confdefs.h <<\_ACEOF | ||
6240 | #define DISABLE_FD_PASSING 1 | ||
6241 | _ACEOF | ||
6242 | |||
6243 | LDFLAGS="$LDFLAGS" | ||
6244 | LIBS="$LIBS -lgen -lacid -ldb" | ||
6245 | MANTYPE=cat | ||
6246 | ;; | ||
6247 | *-*-unicos*) | ||
6248 | cat >>confdefs.h <<\_ACEOF | ||
6249 | #define SETEUID_BREAKS_SETUID 1 | ||
6250 | _ACEOF | ||
6251 | |||
6252 | cat >>confdefs.h <<\_ACEOF | ||
6253 | #define BROKEN_SETREUID 1 | ||
6254 | _ACEOF | ||
6255 | |||
6256 | cat >>confdefs.h <<\_ACEOF | ||
6257 | #define BROKEN_SETREGID 1 | ||
6258 | _ACEOF | ||
6259 | |||
6260 | cat >>confdefs.h <<\_ACEOF | ||
6261 | #define USE_PIPES 1 | ||
6262 | _ACEOF | ||
6263 | |||
6264 | cat >>confdefs.h <<\_ACEOF | ||
6265 | #define DISABLE_FD_PASSING 1 | ||
6266 | _ACEOF | ||
6267 | |||
6268 | cat >>confdefs.h <<\_ACEOF | ||
6269 | #define NO_SSH_LASTLOG 1 | ||
6270 | _ACEOF | ||
6271 | |||
6272 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
6273 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
6274 | MANTYPE=cat | ||
6275 | ;; | ||
6276 | *-dec-osf*) | ||
6277 | echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
6278 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
6279 | no_osfsia="" | ||
6280 | |||
6281 | # Check whether --with-osfsia or --without-osfsia was given. | ||
6282 | if test "${with_osfsia+set}" = set; then | ||
6283 | withval="$with_osfsia" | ||
6284 | |||
6285 | if test "x$withval" = "xno" ; then | ||
6286 | echo "$as_me:$LINENO: result: disabled" >&5 | ||
6287 | echo "${ECHO_T}disabled" >&6 | ||
6288 | no_osfsia=1 | ||
6289 | fi | ||
6290 | |||
6291 | fi; | ||
6292 | if test -z "$no_osfsia" ; then | ||
6293 | if test -f /etc/sia/matrix.conf; then | ||
6294 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6295 | echo "${ECHO_T}yes" >&6 | ||
6296 | cat >>confdefs.h <<\_ACEOF | ||
6297 | #define HAVE_OSF_SIA 1 | ||
6298 | _ACEOF | ||
6299 | |||
6300 | cat >>confdefs.h <<\_ACEOF | ||
6301 | #define DISABLE_LOGIN 1 | ||
6302 | _ACEOF | ||
6303 | |||
6304 | cat >>confdefs.h <<\_ACEOF | ||
6305 | #define DISABLE_FD_PASSING 1 | ||
6306 | _ACEOF | ||
6307 | |||
6308 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
6309 | else | ||
6310 | echo "$as_me:$LINENO: result: no" >&5 | ||
6311 | echo "${ECHO_T}no" >&6 | ||
6312 | cat >>confdefs.h <<\_ACEOF | ||
6313 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
6314 | _ACEOF | ||
6315 | |||
6316 | fi | ||
6317 | fi | ||
6318 | cat >>confdefs.h <<\_ACEOF | ||
6319 | #define BROKEN_GETADDRINFO 1 | ||
6320 | _ACEOF | ||
6321 | |||
6322 | cat >>confdefs.h <<\_ACEOF | ||
6323 | #define SETEUID_BREAKS_SETUID 1 | ||
6324 | _ACEOF | ||
6325 | |||
6326 | cat >>confdefs.h <<\_ACEOF | ||
6327 | #define BROKEN_SETREUID 1 | ||
6328 | _ACEOF | ||
6329 | |||
6330 | cat >>confdefs.h <<\_ACEOF | ||
6331 | #define BROKEN_SETREGID 1 | ||
6332 | _ACEOF | ||
6333 | |||
6334 | ;; | ||
6335 | |||
6336 | *-*-nto-qnx) | ||
6337 | cat >>confdefs.h <<\_ACEOF | ||
6338 | #define USE_PIPES 1 | ||
6339 | _ACEOF | ||
6340 | |||
6341 | cat >>confdefs.h <<\_ACEOF | ||
6342 | #define NO_X11_UNIX_SOCKETS 1 | ||
6343 | _ACEOF | ||
6344 | |||
6345 | cat >>confdefs.h <<\_ACEOF | ||
6346 | #define MISSING_NFDBITS 1 | ||
6347 | _ACEOF | ||
6348 | |||
6349 | cat >>confdefs.h <<\_ACEOF | ||
6350 | #define MISSING_HOWMANY 1 | ||
6351 | _ACEOF | ||
6352 | |||
6353 | cat >>confdefs.h <<\_ACEOF | ||
6354 | #define MISSING_FD_MASK 1 | ||
6355 | _ACEOF | ||
6356 | |||
6357 | ;; | ||
6358 | esac | ||
6359 | |||
6360 | # Allow user to specify flags | ||
6361 | |||
6362 | # Check whether --with-cflags or --without-cflags was given. | ||
6363 | if test "${with_cflags+set}" = set; then | ||
6364 | withval="$with_cflags" | ||
6365 | |||
6366 | if test "x$withval" != "xno" ; then | ||
6367 | CFLAGS="$CFLAGS $withval" | ||
6368 | fi | ||
6369 | |||
6370 | |||
6371 | fi; | ||
6372 | |||
6373 | # Check whether --with-cppflags or --without-cppflags was given. | ||
6374 | if test "${with_cppflags+set}" = set; then | ||
6375 | withval="$with_cppflags" | ||
6376 | |||
6377 | if test "x$withval" != "xno"; then | ||
6378 | CPPFLAGS="$CPPFLAGS $withval" | ||
6379 | fi | ||
6380 | |||
6381 | |||
6382 | fi; | ||
6383 | |||
6384 | # Check whether --with-ldflags or --without-ldflags was given. | ||
6385 | if test "${with_ldflags+set}" = set; then | ||
6386 | withval="$with_ldflags" | ||
6387 | |||
6388 | if test "x$withval" != "xno" ; then | ||
6389 | LDFLAGS="$LDFLAGS $withval" | ||
6390 | fi | ||
6391 | |||
6392 | |||
6393 | fi; | ||
6394 | |||
6395 | # Check whether --with-libs or --without-libs was given. | ||
6396 | if test "${with_libs+set}" = set; then | ||
6397 | withval="$with_libs" | ||
6398 | |||
6399 | if test "x$withval" != "xno" ; then | ||
6400 | LIBS="$LIBS $withval" | ||
6401 | fi | ||
6402 | |||
6403 | |||
6404 | fi; | ||
6405 | |||
6406 | echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
6407 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6 | ||
6408 | if test "$cross_compiling" = yes; then | ||
6409 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
6410 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
6411 | |||
6412 | else | ||
6413 | cat >conftest.$ac_ext <<_ACEOF | ||
6414 | /* confdefs.h. */ | ||
6415 | _ACEOF | ||
6416 | cat confdefs.h >>conftest.$ac_ext | ||
6417 | cat >>conftest.$ac_ext <<_ACEOF | ||
6418 | /* end confdefs.h. */ | ||
6419 | |||
6420 | #include <stdio.h> | ||
6421 | int main(){exit(0);} | ||
6422 | |||
6423 | _ACEOF | ||
6424 | rm -f conftest$ac_exeext | ||
6425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6426 | (eval $ac_link) 2>&5 | ||
6427 | ac_status=$? | ||
6428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6429 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6431 | (eval $ac_try) 2>&5 | ||
6432 | ac_status=$? | ||
6433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6434 | (exit $ac_status); }; }; then | ||
6435 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6436 | echo "${ECHO_T}yes" >&6 | ||
6437 | else | ||
6438 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6439 | echo "$as_me: failed program was:" >&5 | ||
6440 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6441 | |||
6442 | ( exit $ac_status ) | ||
6443 | |||
6444 | echo "$as_me:$LINENO: result: no" >&5 | ||
6445 | echo "${ECHO_T}no" >&6 | ||
6446 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
6447 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
6448 | { (exit 1); exit 1; }; } | ||
6449 | |||
6450 | fi | ||
6451 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6452 | fi | ||
6453 | |||
6454 | # Checks for header files. | ||
6455 | |||
6456 | echo "$as_me:$LINENO: checking for egrep" >&5 | ||
6457 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | ||
6458 | if test "${ac_cv_prog_egrep+set}" = set; then | ||
6459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6460 | else | ||
6461 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
6462 | then ac_cv_prog_egrep='grep -E' | ||
6463 | else ac_cv_prog_egrep='egrep' | ||
6464 | fi | ||
6465 | fi | ||
6466 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | ||
6467 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | ||
6468 | EGREP=$ac_cv_prog_egrep | ||
6469 | |||
6470 | |||
6471 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
6472 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
6473 | if test "${ac_cv_header_stdc+set}" = set; then | ||
6474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6475 | else | ||
6476 | cat >conftest.$ac_ext <<_ACEOF | ||
6477 | /* confdefs.h. */ | ||
6478 | _ACEOF | ||
6479 | cat confdefs.h >>conftest.$ac_ext | ||
6480 | cat >>conftest.$ac_ext <<_ACEOF | ||
6481 | /* end confdefs.h. */ | ||
6482 | #include <stdlib.h> | ||
6483 | #include <stdarg.h> | ||
6484 | #include <string.h> | ||
6485 | #include <float.h> | ||
6486 | |||
6487 | int | ||
6488 | main () | ||
6489 | { | ||
6490 | |||
6491 | ; | ||
6492 | return 0; | ||
6493 | } | ||
6494 | _ACEOF | ||
6495 | rm -f conftest.$ac_objext | ||
6496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6497 | (eval $ac_compile) 2>conftest.er1 | ||
6498 | ac_status=$? | ||
6499 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6500 | rm -f conftest.er1 | ||
6501 | cat conftest.err >&5 | ||
6502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6503 | (exit $ac_status); } && | ||
6504 | { ac_try='test -z "$ac_c_werror_flag" | ||
6505 | || test ! -s conftest.err' | ||
6506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6507 | (eval $ac_try) 2>&5 | ||
6508 | ac_status=$? | ||
6509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6510 | (exit $ac_status); }; } && | ||
6511 | { ac_try='test -s conftest.$ac_objext' | ||
6512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6513 | (eval $ac_try) 2>&5 | ||
6514 | ac_status=$? | ||
6515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6516 | (exit $ac_status); }; }; then | ||
6517 | ac_cv_header_stdc=yes | ||
6518 | else | ||
6519 | echo "$as_me: failed program was:" >&5 | ||
6520 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6521 | |||
6522 | ac_cv_header_stdc=no | ||
6523 | fi | ||
6524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6525 | |||
6526 | if test $ac_cv_header_stdc = yes; then | ||
6527 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
6528 | cat >conftest.$ac_ext <<_ACEOF | ||
6529 | /* confdefs.h. */ | ||
6530 | _ACEOF | ||
6531 | cat confdefs.h >>conftest.$ac_ext | ||
6532 | cat >>conftest.$ac_ext <<_ACEOF | ||
6533 | /* end confdefs.h. */ | ||
6534 | #include <string.h> | ||
6535 | |||
6536 | _ACEOF | ||
6537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6538 | $EGREP "memchr" >/dev/null 2>&1; then | ||
6539 | : | ||
6540 | else | ||
6541 | ac_cv_header_stdc=no | ||
6542 | fi | ||
6543 | rm -f conftest* | ||
6544 | |||
6545 | fi | ||
6546 | |||
6547 | if test $ac_cv_header_stdc = yes; then | ||
6548 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
6549 | cat >conftest.$ac_ext <<_ACEOF | ||
6550 | /* confdefs.h. */ | ||
6551 | _ACEOF | ||
6552 | cat confdefs.h >>conftest.$ac_ext | ||
6553 | cat >>conftest.$ac_ext <<_ACEOF | ||
6554 | /* end confdefs.h. */ | ||
6555 | #include <stdlib.h> | ||
6556 | |||
6557 | _ACEOF | ||
6558 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6559 | $EGREP "free" >/dev/null 2>&1; then | ||
6560 | : | ||
6561 | else | ||
6562 | ac_cv_header_stdc=no | ||
6563 | fi | ||
6564 | rm -f conftest* | ||
6565 | |||
6566 | fi | ||
6567 | |||
6568 | if test $ac_cv_header_stdc = yes; then | ||
6569 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
6570 | if test "$cross_compiling" = yes; then | ||
6571 | : | ||
6572 | else | ||
6573 | cat >conftest.$ac_ext <<_ACEOF | ||
6574 | /* confdefs.h. */ | ||
6575 | _ACEOF | ||
6576 | cat confdefs.h >>conftest.$ac_ext | ||
6577 | cat >>conftest.$ac_ext <<_ACEOF | ||
6578 | /* end confdefs.h. */ | ||
6579 | #include <ctype.h> | ||
6580 | #if ((' ' & 0x0FF) == 0x020) | ||
6581 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
6582 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
6583 | #else | ||
6584 | # define ISLOWER(c) \ | ||
6585 | (('a' <= (c) && (c) <= 'i') \ | ||
6586 | || ('j' <= (c) && (c) <= 'r') \ | ||
6587 | || ('s' <= (c) && (c) <= 'z')) | ||
6588 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
6589 | #endif | ||
6590 | |||
6591 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
6592 | int | ||
6593 | main () | ||
6594 | { | ||
6595 | int i; | ||
6596 | for (i = 0; i < 256; i++) | ||
6597 | if (XOR (islower (i), ISLOWER (i)) | ||
6598 | || toupper (i) != TOUPPER (i)) | ||
6599 | exit(2); | ||
6600 | exit (0); | ||
6601 | } | ||
6602 | _ACEOF | ||
6603 | rm -f conftest$ac_exeext | ||
6604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6605 | (eval $ac_link) 2>&5 | ||
6606 | ac_status=$? | ||
6607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6608 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6610 | (eval $ac_try) 2>&5 | ||
6611 | ac_status=$? | ||
6612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6613 | (exit $ac_status); }; }; then | ||
6614 | : | ||
6615 | else | ||
6616 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6617 | echo "$as_me: failed program was:" >&5 | ||
6618 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6619 | |||
6620 | ( exit $ac_status ) | ||
6621 | ac_cv_header_stdc=no | ||
6622 | fi | ||
6623 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6624 | fi | ||
6625 | fi | ||
6626 | fi | ||
6627 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
6628 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
6629 | if test $ac_cv_header_stdc = yes; then | ||
6630 | |||
6631 | cat >>confdefs.h <<\_ACEOF | ||
6632 | #define STDC_HEADERS 1 | ||
6633 | _ACEOF | ||
6634 | |||
6635 | fi | ||
6636 | |||
6637 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
6638 | |||
6639 | |||
6640 | |||
6641 | |||
6642 | |||
6643 | |||
6644 | |||
6645 | |||
6646 | |||
6647 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
6648 | inttypes.h stdint.h unistd.h | ||
6649 | do | ||
6650 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6651 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6652 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6653 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6655 | else | ||
6656 | cat >conftest.$ac_ext <<_ACEOF | ||
6657 | /* confdefs.h. */ | ||
6658 | _ACEOF | ||
6659 | cat confdefs.h >>conftest.$ac_ext | ||
6660 | cat >>conftest.$ac_ext <<_ACEOF | ||
6661 | /* end confdefs.h. */ | ||
6662 | $ac_includes_default | ||
6663 | |||
6664 | #include <$ac_header> | ||
6665 | _ACEOF | ||
6666 | rm -f conftest.$ac_objext | ||
6667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6668 | (eval $ac_compile) 2>conftest.er1 | ||
6669 | ac_status=$? | ||
6670 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6671 | rm -f conftest.er1 | ||
6672 | cat conftest.err >&5 | ||
6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6674 | (exit $ac_status); } && | ||
6675 | { ac_try='test -z "$ac_c_werror_flag" | ||
6676 | || test ! -s conftest.err' | ||
6677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6678 | (eval $ac_try) 2>&5 | ||
6679 | ac_status=$? | ||
6680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6681 | (exit $ac_status); }; } && | ||
6682 | { ac_try='test -s conftest.$ac_objext' | ||
6683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6684 | (eval $ac_try) 2>&5 | ||
6685 | ac_status=$? | ||
6686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6687 | (exit $ac_status); }; }; then | ||
6688 | eval "$as_ac_Header=yes" | ||
6689 | else | ||
6690 | echo "$as_me: failed program was:" >&5 | ||
6691 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6692 | |||
6693 | eval "$as_ac_Header=no" | ||
6694 | fi | ||
6695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6696 | fi | ||
6697 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6698 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6699 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6700 | cat >>confdefs.h <<_ACEOF | ||
6701 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6702 | _ACEOF | ||
6703 | |||
6704 | fi | ||
6705 | |||
6706 | done | ||
6707 | |||
6708 | |||
6709 | |||
6710 | |||
6711 | |||
6712 | |||
6713 | |||
6714 | |||
6715 | |||
6716 | |||
6717 | |||
6718 | |||
6719 | |||
6720 | |||
6721 | |||
6722 | |||
6723 | |||
6724 | |||
6725 | |||
6726 | |||
6727 | |||
6728 | |||
6729 | |||
6730 | |||
6731 | |||
6732 | |||
6733 | |||
6734 | |||
6735 | |||
6736 | |||
6737 | |||
6738 | |||
6739 | |||
6740 | |||
6741 | |||
6742 | |||
6743 | |||
6744 | |||
6745 | |||
6746 | |||
6747 | |||
6748 | |||
6749 | |||
6750 | |||
6751 | |||
6752 | |||
6753 | |||
6754 | |||
6755 | |||
6756 | |||
6757 | |||
6758 | |||
6759 | |||
6760 | |||
6761 | |||
6762 | |||
6763 | |||
6764 | for ac_header in bstring.h crypt.h dirent.h endian.h features.h \ | ||
6765 | floatingpoint.h getopt.h glob.h ia.h lastlog.h limits.h login.h \ | ||
6766 | login_cap.h maillock.h ndir.h netdb.h netgroup.h \ | ||
6767 | netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \ | ||
6768 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
6769 | strings.h sys/dir.h sys/strtio.h sys/audit.h sys/bitypes.h \ | ||
6770 | sys/bsdtty.h sys/cdefs.h sys/mman.h sys/ndir.h sys/prctl.h \ | ||
6771 | sys/pstat.h sys/select.h sys/stat.h sys/stream.h \ | ||
6772 | sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h sys/un.h \ | ||
6773 | time.h tmpdir.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h | ||
6774 | do | ||
6775 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6776 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6777 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6778 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6779 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6781 | fi | ||
6782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6783 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6784 | else | ||
6785 | # Is the header compilable? | ||
6786 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
6787 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
6788 | cat >conftest.$ac_ext <<_ACEOF | ||
6789 | /* confdefs.h. */ | ||
6790 | _ACEOF | ||
6791 | cat confdefs.h >>conftest.$ac_ext | ||
6792 | cat >>conftest.$ac_ext <<_ACEOF | ||
6793 | /* end confdefs.h. */ | ||
6794 | $ac_includes_default | ||
6795 | #include <$ac_header> | ||
6796 | _ACEOF | ||
6797 | rm -f conftest.$ac_objext | ||
6798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6799 | (eval $ac_compile) 2>conftest.er1 | ||
6800 | ac_status=$? | ||
6801 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6802 | rm -f conftest.er1 | ||
6803 | cat conftest.err >&5 | ||
6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6805 | (exit $ac_status); } && | ||
6806 | { ac_try='test -z "$ac_c_werror_flag" | ||
6807 | || test ! -s conftest.err' | ||
6808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6809 | (eval $ac_try) 2>&5 | ||
6810 | ac_status=$? | ||
6811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6812 | (exit $ac_status); }; } && | ||
6813 | { ac_try='test -s conftest.$ac_objext' | ||
6814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6815 | (eval $ac_try) 2>&5 | ||
6816 | ac_status=$? | ||
6817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6818 | (exit $ac_status); }; }; then | ||
6819 | ac_header_compiler=yes | ||
6820 | else | ||
6821 | echo "$as_me: failed program was:" >&5 | ||
6822 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6823 | |||
6824 | ac_header_compiler=no | ||
6825 | fi | ||
6826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6827 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6828 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
6829 | |||
6830 | # Is the header present? | ||
6831 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
6832 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
6833 | cat >conftest.$ac_ext <<_ACEOF | ||
6834 | /* confdefs.h. */ | ||
6835 | _ACEOF | ||
6836 | cat confdefs.h >>conftest.$ac_ext | ||
6837 | cat >>conftest.$ac_ext <<_ACEOF | ||
6838 | /* end confdefs.h. */ | ||
6839 | #include <$ac_header> | ||
6840 | _ACEOF | ||
6841 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6842 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6843 | ac_status=$? | ||
6844 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6845 | rm -f conftest.er1 | ||
6846 | cat conftest.err >&5 | ||
6847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6848 | (exit $ac_status); } >/dev/null; then | ||
6849 | if test -s conftest.err; then | ||
6850 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6851 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
6852 | else | ||
6853 | ac_cpp_err= | ||
6854 | fi | ||
6855 | else | ||
6856 | ac_cpp_err=yes | ||
6857 | fi | ||
6858 | if test -z "$ac_cpp_err"; then | ||
6859 | ac_header_preproc=yes | ||
6860 | else | ||
6861 | echo "$as_me: failed program was:" >&5 | ||
6862 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6863 | |||
6864 | ac_header_preproc=no | ||
6865 | fi | ||
6866 | rm -f conftest.err conftest.$ac_ext | ||
6867 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6868 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
6869 | |||
6870 | # So? What about this header? | ||
6871 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
6872 | yes:no: ) | ||
6873 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6874 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6875 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
6876 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
6877 | ac_header_preproc=yes | ||
6878 | ;; | ||
6879 | no:yes:* ) | ||
6880 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6881 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6882 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6883 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6884 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
6885 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
6886 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
6887 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
6888 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6889 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
6890 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
6891 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
6892 | ( | ||
6893 | cat <<\_ASBOX | ||
6894 | ## ---------------------------------- ## | ||
6895 | ## Report this to the OpenSSH lists. ## | ||
6896 | ## ---------------------------------- ## | ||
6897 | _ASBOX | ||
6898 | ) | | ||
6899 | sed "s/^/$as_me: WARNING: /" >&2 | ||
6900 | ;; | ||
6901 | esac | ||
6902 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6906 | else | ||
6907 | eval "$as_ac_Header=\$ac_header_preproc" | ||
6908 | fi | ||
6909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6910 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6911 | |||
6912 | fi | ||
6913 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6914 | cat >>confdefs.h <<_ACEOF | ||
6915 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6916 | _ACEOF | ||
6917 | |||
6918 | fi | ||
6919 | |||
6920 | done | ||
6921 | |||
6922 | |||
6923 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6924 | |||
6925 | for ac_header in sys/ptms.h | ||
6926 | do | ||
6927 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6932 | else | ||
6933 | cat >conftest.$ac_ext <<_ACEOF | ||
6934 | /* confdefs.h. */ | ||
6935 | _ACEOF | ||
6936 | cat confdefs.h >>conftest.$ac_ext | ||
6937 | cat >>conftest.$ac_ext <<_ACEOF | ||
6938 | /* end confdefs.h. */ | ||
6939 | |||
6940 | #ifdef HAVE_SYS_STREAM_H | ||
6941 | # include <sys/stream.h> | ||
6942 | #endif | ||
6943 | |||
6944 | |||
6945 | #include <$ac_header> | ||
6946 | _ACEOF | ||
6947 | rm -f conftest.$ac_objext | ||
6948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6949 | (eval $ac_compile) 2>conftest.er1 | ||
6950 | ac_status=$? | ||
6951 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6952 | rm -f conftest.er1 | ||
6953 | cat conftest.err >&5 | ||
6954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6955 | (exit $ac_status); } && | ||
6956 | { ac_try='test -z "$ac_c_werror_flag" | ||
6957 | || test ! -s conftest.err' | ||
6958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6959 | (eval $ac_try) 2>&5 | ||
6960 | ac_status=$? | ||
6961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6962 | (exit $ac_status); }; } && | ||
6963 | { ac_try='test -s conftest.$ac_objext' | ||
6964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6965 | (eval $ac_try) 2>&5 | ||
6966 | ac_status=$? | ||
6967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6968 | (exit $ac_status); }; }; then | ||
6969 | eval "$as_ac_Header=yes" | ||
6970 | else | ||
6971 | echo "$as_me: failed program was:" >&5 | ||
6972 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6973 | |||
6974 | eval "$as_ac_Header=no" | ||
6975 | fi | ||
6976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6977 | fi | ||
6978 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6979 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6980 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6981 | cat >>confdefs.h <<_ACEOF | ||
6982 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6983 | _ACEOF | ||
6984 | |||
6985 | fi | ||
6986 | |||
6987 | done | ||
6988 | |||
6989 | |||
6990 | # Checks for libraries. | ||
6991 | echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
6992 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
6993 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
6994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6995 | else | ||
6996 | cat >conftest.$ac_ext <<_ACEOF | ||
6997 | /* confdefs.h. */ | ||
6998 | _ACEOF | ||
6999 | cat confdefs.h >>conftest.$ac_ext | ||
7000 | cat >>conftest.$ac_ext <<_ACEOF | ||
7001 | /* end confdefs.h. */ | ||
7002 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
7003 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7004 | #define yp_match innocuous_yp_match | ||
7005 | |||
7006 | /* System header to define __stub macros and hopefully few prototypes, | ||
7007 | which can conflict with char yp_match (); below. | ||
7008 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7009 | <limits.h> exists even on freestanding compilers. */ | ||
7010 | |||
7011 | #ifdef __STDC__ | ||
7012 | # include <limits.h> | ||
7013 | #else | ||
7014 | # include <assert.h> | ||
7015 | #endif | ||
7016 | |||
7017 | #undef yp_match | ||
7018 | |||
7019 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7020 | #ifdef __cplusplus | ||
7021 | extern "C" | ||
7022 | { | ||
7023 | #endif | ||
7024 | /* We use char because int might match the return type of a gcc2 | ||
7025 | builtin and then its argument prototype would still apply. */ | ||
7026 | char yp_match (); | ||
7027 | /* The GNU C library defines this for functions which it implements | ||
7028 | to always fail with ENOSYS. Some functions are actually named | ||
7029 | something starting with __ and the normal name is an alias. */ | ||
7030 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
7031 | choke me | ||
7032 | #else | ||
7033 | char (*f) () = yp_match; | ||
7034 | #endif | ||
7035 | #ifdef __cplusplus | ||
7036 | } | ||
7037 | #endif | ||
7038 | |||
7039 | int | ||
7040 | main () | ||
7041 | { | ||
7042 | return f != yp_match; | ||
7043 | ; | ||
7044 | return 0; | ||
7045 | } | ||
7046 | _ACEOF | ||
7047 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7049 | (eval $ac_link) 2>conftest.er1 | ||
7050 | ac_status=$? | ||
7051 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7052 | rm -f conftest.er1 | ||
7053 | cat conftest.err >&5 | ||
7054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7055 | (exit $ac_status); } && | ||
7056 | { ac_try='test -z "$ac_c_werror_flag" | ||
7057 | || test ! -s conftest.err' | ||
7058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7059 | (eval $ac_try) 2>&5 | ||
7060 | ac_status=$? | ||
7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7062 | (exit $ac_status); }; } && | ||
7063 | { ac_try='test -s conftest$ac_exeext' | ||
7064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7065 | (eval $ac_try) 2>&5 | ||
7066 | ac_status=$? | ||
7067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7068 | (exit $ac_status); }; }; then | ||
7069 | ac_cv_func_yp_match=yes | ||
7070 | else | ||
7071 | echo "$as_me: failed program was:" >&5 | ||
7072 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7073 | |||
7074 | ac_cv_func_yp_match=no | ||
7075 | fi | ||
7076 | rm -f conftest.err conftest.$ac_objext \ | ||
7077 | conftest$ac_exeext conftest.$ac_ext | ||
7078 | fi | ||
7079 | echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
7080 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
7081 | if test $ac_cv_func_yp_match = yes; then | ||
7082 | : | ||
7083 | else | ||
7084 | |||
7085 | echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
7086 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
7087 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
7088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7089 | else | ||
7090 | ac_check_lib_save_LIBS=$LIBS | ||
7091 | LIBS="-lnsl $LIBS" | ||
7092 | cat >conftest.$ac_ext <<_ACEOF | ||
7093 | /* confdefs.h. */ | ||
7094 | _ACEOF | ||
7095 | cat confdefs.h >>conftest.$ac_ext | ||
7096 | cat >>conftest.$ac_ext <<_ACEOF | ||
7097 | /* end confdefs.h. */ | ||
7098 | |||
7099 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7100 | #ifdef __cplusplus | ||
7101 | extern "C" | ||
7102 | #endif | ||
7103 | /* We use char because int might match the return type of a gcc2 | ||
7104 | builtin and then its argument prototype would still apply. */ | ||
7105 | char yp_match (); | ||
7106 | int | ||
7107 | main () | ||
7108 | { | ||
7109 | yp_match (); | ||
7110 | ; | ||
7111 | return 0; | ||
7112 | } | ||
7113 | _ACEOF | ||
7114 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7116 | (eval $ac_link) 2>conftest.er1 | ||
7117 | ac_status=$? | ||
7118 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7119 | rm -f conftest.er1 | ||
7120 | cat conftest.err >&5 | ||
7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7122 | (exit $ac_status); } && | ||
7123 | { ac_try='test -z "$ac_c_werror_flag" | ||
7124 | || test ! -s conftest.err' | ||
7125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7126 | (eval $ac_try) 2>&5 | ||
7127 | ac_status=$? | ||
7128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7129 | (exit $ac_status); }; } && | ||
7130 | { ac_try='test -s conftest$ac_exeext' | ||
7131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7132 | (eval $ac_try) 2>&5 | ||
7133 | ac_status=$? | ||
7134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7135 | (exit $ac_status); }; }; then | ||
7136 | ac_cv_lib_nsl_yp_match=yes | ||
7137 | else | ||
7138 | echo "$as_me: failed program was:" >&5 | ||
7139 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7140 | |||
7141 | ac_cv_lib_nsl_yp_match=no | ||
7142 | fi | ||
7143 | rm -f conftest.err conftest.$ac_objext \ | ||
7144 | conftest$ac_exeext conftest.$ac_ext | ||
7145 | LIBS=$ac_check_lib_save_LIBS | ||
7146 | fi | ||
7147 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
7148 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
7149 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
7150 | cat >>confdefs.h <<_ACEOF | ||
7151 | #define HAVE_LIBNSL 1 | ||
7152 | _ACEOF | ||
7153 | |||
7154 | LIBS="-lnsl $LIBS" | ||
7155 | |||
7156 | fi | ||
7157 | |||
7158 | fi | ||
7159 | |||
7160 | echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
7161 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
7162 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
7163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7164 | else | ||
7165 | cat >conftest.$ac_ext <<_ACEOF | ||
7166 | /* confdefs.h. */ | ||
7167 | _ACEOF | ||
7168 | cat confdefs.h >>conftest.$ac_ext | ||
7169 | cat >>conftest.$ac_ext <<_ACEOF | ||
7170 | /* end confdefs.h. */ | ||
7171 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
7172 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7173 | #define setsockopt innocuous_setsockopt | ||
7174 | |||
7175 | /* System header to define __stub macros and hopefully few prototypes, | ||
7176 | which can conflict with char setsockopt (); below. | ||
7177 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7178 | <limits.h> exists even on freestanding compilers. */ | ||
7179 | |||
7180 | #ifdef __STDC__ | ||
7181 | # include <limits.h> | ||
7182 | #else | ||
7183 | # include <assert.h> | ||
7184 | #endif | ||
7185 | |||
7186 | #undef setsockopt | ||
7187 | |||
7188 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7189 | #ifdef __cplusplus | ||
7190 | extern "C" | ||
7191 | { | ||
7192 | #endif | ||
7193 | /* We use char because int might match the return type of a gcc2 | ||
7194 | builtin and then its argument prototype would still apply. */ | ||
7195 | char setsockopt (); | ||
7196 | /* The GNU C library defines this for functions which it implements | ||
7197 | to always fail with ENOSYS. Some functions are actually named | ||
7198 | something starting with __ and the normal name is an alias. */ | ||
7199 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
7200 | choke me | ||
7201 | #else | ||
7202 | char (*f) () = setsockopt; | ||
7203 | #endif | ||
7204 | #ifdef __cplusplus | ||
7205 | } | ||
7206 | #endif | ||
7207 | |||
7208 | int | ||
7209 | main () | ||
7210 | { | ||
7211 | return f != setsockopt; | ||
7212 | ; | ||
7213 | return 0; | ||
7214 | } | ||
7215 | _ACEOF | ||
7216 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7218 | (eval $ac_link) 2>conftest.er1 | ||
7219 | ac_status=$? | ||
7220 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7221 | rm -f conftest.er1 | ||
7222 | cat conftest.err >&5 | ||
7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7224 | (exit $ac_status); } && | ||
7225 | { ac_try='test -z "$ac_c_werror_flag" | ||
7226 | || test ! -s conftest.err' | ||
7227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7228 | (eval $ac_try) 2>&5 | ||
7229 | ac_status=$? | ||
7230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7231 | (exit $ac_status); }; } && | ||
7232 | { ac_try='test -s conftest$ac_exeext' | ||
7233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7234 | (eval $ac_try) 2>&5 | ||
7235 | ac_status=$? | ||
7236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7237 | (exit $ac_status); }; }; then | ||
7238 | ac_cv_func_setsockopt=yes | ||
7239 | else | ||
7240 | echo "$as_me: failed program was:" >&5 | ||
7241 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7242 | |||
7243 | ac_cv_func_setsockopt=no | ||
7244 | fi | ||
7245 | rm -f conftest.err conftest.$ac_objext \ | ||
7246 | conftest$ac_exeext conftest.$ac_ext | ||
7247 | fi | ||
7248 | echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
7249 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
7250 | if test $ac_cv_func_setsockopt = yes; then | ||
7251 | : | ||
7252 | else | ||
7253 | |||
7254 | echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
7255 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
7256 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
7257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7258 | else | ||
7259 | ac_check_lib_save_LIBS=$LIBS | ||
7260 | LIBS="-lsocket $LIBS" | ||
7261 | cat >conftest.$ac_ext <<_ACEOF | ||
7262 | /* confdefs.h. */ | ||
7263 | _ACEOF | ||
7264 | cat confdefs.h >>conftest.$ac_ext | ||
7265 | cat >>conftest.$ac_ext <<_ACEOF | ||
7266 | /* end confdefs.h. */ | ||
7267 | |||
7268 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7269 | #ifdef __cplusplus | ||
7270 | extern "C" | ||
7271 | #endif | ||
7272 | /* We use char because int might match the return type of a gcc2 | ||
7273 | builtin and then its argument prototype would still apply. */ | ||
7274 | char setsockopt (); | ||
7275 | int | ||
7276 | main () | ||
7277 | { | ||
7278 | setsockopt (); | ||
7279 | ; | ||
7280 | return 0; | ||
7281 | } | ||
7282 | _ACEOF | ||
7283 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7285 | (eval $ac_link) 2>conftest.er1 | ||
7286 | ac_status=$? | ||
7287 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7288 | rm -f conftest.er1 | ||
7289 | cat conftest.err >&5 | ||
7290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7291 | (exit $ac_status); } && | ||
7292 | { ac_try='test -z "$ac_c_werror_flag" | ||
7293 | || test ! -s conftest.err' | ||
7294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7295 | (eval $ac_try) 2>&5 | ||
7296 | ac_status=$? | ||
7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7298 | (exit $ac_status); }; } && | ||
7299 | { ac_try='test -s conftest$ac_exeext' | ||
7300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7301 | (eval $ac_try) 2>&5 | ||
7302 | ac_status=$? | ||
7303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7304 | (exit $ac_status); }; }; then | ||
7305 | ac_cv_lib_socket_setsockopt=yes | ||
7306 | else | ||
7307 | echo "$as_me: failed program was:" >&5 | ||
7308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7309 | |||
7310 | ac_cv_lib_socket_setsockopt=no | ||
7311 | fi | ||
7312 | rm -f conftest.err conftest.$ac_objext \ | ||
7313 | conftest$ac_exeext conftest.$ac_ext | ||
7314 | LIBS=$ac_check_lib_save_LIBS | ||
7315 | fi | ||
7316 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
7317 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
7318 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
7319 | cat >>confdefs.h <<_ACEOF | ||
7320 | #define HAVE_LIBSOCKET 1 | ||
7321 | _ACEOF | ||
7322 | |||
7323 | LIBS="-lsocket $LIBS" | ||
7324 | |||
7325 | fi | ||
7326 | |||
7327 | fi | ||
7328 | |||
7329 | |||
7330 | |||
7331 | for ac_func in dirname | ||
7332 | do | ||
7333 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7334 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7335 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7336 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7338 | else | ||
7339 | cat >conftest.$ac_ext <<_ACEOF | ||
7340 | /* confdefs.h. */ | ||
7341 | _ACEOF | ||
7342 | cat confdefs.h >>conftest.$ac_ext | ||
7343 | cat >>conftest.$ac_ext <<_ACEOF | ||
7344 | /* end confdefs.h. */ | ||
7345 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
7346 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7347 | #define $ac_func innocuous_$ac_func | ||
7348 | |||
7349 | /* System header to define __stub macros and hopefully few prototypes, | ||
7350 | which can conflict with char $ac_func (); below. | ||
7351 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7352 | <limits.h> exists even on freestanding compilers. */ | ||
7353 | |||
7354 | #ifdef __STDC__ | ||
7355 | # include <limits.h> | ||
7356 | #else | ||
7357 | # include <assert.h> | ||
7358 | #endif | ||
7359 | |||
7360 | #undef $ac_func | ||
7361 | |||
7362 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7363 | #ifdef __cplusplus | ||
7364 | extern "C" | ||
7365 | { | ||
7366 | #endif | ||
7367 | /* We use char because int might match the return type of a gcc2 | ||
7368 | builtin and then its argument prototype would still apply. */ | ||
7369 | char $ac_func (); | ||
7370 | /* The GNU C library defines this for functions which it implements | ||
7371 | to always fail with ENOSYS. Some functions are actually named | ||
7372 | something starting with __ and the normal name is an alias. */ | ||
7373 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7374 | choke me | ||
7375 | #else | ||
7376 | char (*f) () = $ac_func; | ||
7377 | #endif | ||
7378 | #ifdef __cplusplus | ||
7379 | } | ||
7380 | #endif | ||
7381 | |||
7382 | int | ||
7383 | main () | ||
7384 | { | ||
7385 | return f != $ac_func; | ||
7386 | ; | ||
7387 | return 0; | ||
7388 | } | ||
7389 | _ACEOF | ||
7390 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7392 | (eval $ac_link) 2>conftest.er1 | ||
7393 | ac_status=$? | ||
7394 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7395 | rm -f conftest.er1 | ||
7396 | cat conftest.err >&5 | ||
7397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7398 | (exit $ac_status); } && | ||
7399 | { ac_try='test -z "$ac_c_werror_flag" | ||
7400 | || test ! -s conftest.err' | ||
7401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7402 | (eval $ac_try) 2>&5 | ||
7403 | ac_status=$? | ||
7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7405 | (exit $ac_status); }; } && | ||
7406 | { ac_try='test -s conftest$ac_exeext' | ||
7407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7408 | (eval $ac_try) 2>&5 | ||
7409 | ac_status=$? | ||
7410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7411 | (exit $ac_status); }; }; then | ||
7412 | eval "$as_ac_var=yes" | ||
7413 | else | ||
7414 | echo "$as_me: failed program was:" >&5 | ||
7415 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7416 | |||
7417 | eval "$as_ac_var=no" | ||
7418 | fi | ||
7419 | rm -f conftest.err conftest.$ac_objext \ | ||
7420 | conftest$ac_exeext conftest.$ac_ext | ||
7421 | fi | ||
7422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7423 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7424 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7425 | cat >>confdefs.h <<_ACEOF | ||
7426 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7427 | _ACEOF | ||
7428 | |||
7429 | for ac_header in libgen.h | ||
7430 | do | ||
7431 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7433 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7434 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7435 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7437 | fi | ||
7438 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7439 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7440 | else | ||
7441 | # Is the header compilable? | ||
7442 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7443 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7444 | cat >conftest.$ac_ext <<_ACEOF | ||
7445 | /* confdefs.h. */ | ||
7446 | _ACEOF | ||
7447 | cat confdefs.h >>conftest.$ac_ext | ||
7448 | cat >>conftest.$ac_ext <<_ACEOF | ||
7449 | /* end confdefs.h. */ | ||
7450 | $ac_includes_default | ||
7451 | #include <$ac_header> | ||
7452 | _ACEOF | ||
7453 | rm -f conftest.$ac_objext | ||
7454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7455 | (eval $ac_compile) 2>conftest.er1 | ||
7456 | ac_status=$? | ||
7457 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7458 | rm -f conftest.er1 | ||
7459 | cat conftest.err >&5 | ||
7460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7461 | (exit $ac_status); } && | ||
7462 | { ac_try='test -z "$ac_c_werror_flag" | ||
7463 | || test ! -s conftest.err' | ||
7464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7465 | (eval $ac_try) 2>&5 | ||
7466 | ac_status=$? | ||
7467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7468 | (exit $ac_status); }; } && | ||
7469 | { ac_try='test -s conftest.$ac_objext' | ||
7470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7471 | (eval $ac_try) 2>&5 | ||
7472 | ac_status=$? | ||
7473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7474 | (exit $ac_status); }; }; then | ||
7475 | ac_header_compiler=yes | ||
7476 | else | ||
7477 | echo "$as_me: failed program was:" >&5 | ||
7478 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7479 | |||
7480 | ac_header_compiler=no | ||
7481 | fi | ||
7482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7483 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7484 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7485 | |||
7486 | # Is the header present? | ||
7487 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7488 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7489 | cat >conftest.$ac_ext <<_ACEOF | ||
7490 | /* confdefs.h. */ | ||
7491 | _ACEOF | ||
7492 | cat confdefs.h >>conftest.$ac_ext | ||
7493 | cat >>conftest.$ac_ext <<_ACEOF | ||
7494 | /* end confdefs.h. */ | ||
7495 | #include <$ac_header> | ||
7496 | _ACEOF | ||
7497 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7498 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7499 | ac_status=$? | ||
7500 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7501 | rm -f conftest.er1 | ||
7502 | cat conftest.err >&5 | ||
7503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7504 | (exit $ac_status); } >/dev/null; then | ||
7505 | if test -s conftest.err; then | ||
7506 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7507 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
7508 | else | ||
7509 | ac_cpp_err= | ||
7510 | fi | ||
7511 | else | ||
7512 | ac_cpp_err=yes | ||
7513 | fi | ||
7514 | if test -z "$ac_cpp_err"; then | ||
7515 | ac_header_preproc=yes | ||
7516 | else | ||
7517 | echo "$as_me: failed program was:" >&5 | ||
7518 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7519 | |||
7520 | ac_header_preproc=no | ||
7521 | fi | ||
7522 | rm -f conftest.err conftest.$ac_ext | ||
7523 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7524 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7525 | |||
7526 | # So? What about this header? | ||
7527 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7528 | yes:no: ) | ||
7529 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7530 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7531 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7532 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7533 | ac_header_preproc=yes | ||
7534 | ;; | ||
7535 | no:yes:* ) | ||
7536 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7537 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7538 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7539 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7540 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7541 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7542 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7543 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7545 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7546 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7547 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7548 | ( | ||
7549 | cat <<\_ASBOX | ||
7550 | ## ---------------------------------- ## | ||
7551 | ## Report this to the OpenSSH lists. ## | ||
7552 | ## ---------------------------------- ## | ||
7553 | _ASBOX | ||
7554 | ) | | ||
7555 | sed "s/^/$as_me: WARNING: /" >&2 | ||
7556 | ;; | ||
7557 | esac | ||
7558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7562 | else | ||
7563 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7564 | fi | ||
7565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7566 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7567 | |||
7568 | fi | ||
7569 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7570 | cat >>confdefs.h <<_ACEOF | ||
7571 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7572 | _ACEOF | ||
7573 | |||
7574 | fi | ||
7575 | |||
7576 | done | ||
7577 | |||
7578 | else | ||
7579 | |||
7580 | echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
7581 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
7582 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
7583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7584 | else | ||
7585 | ac_check_lib_save_LIBS=$LIBS | ||
7586 | LIBS="-lgen $LIBS" | ||
7587 | cat >conftest.$ac_ext <<_ACEOF | ||
7588 | /* confdefs.h. */ | ||
7589 | _ACEOF | ||
7590 | cat confdefs.h >>conftest.$ac_ext | ||
7591 | cat >>conftest.$ac_ext <<_ACEOF | ||
7592 | /* end confdefs.h. */ | ||
7593 | |||
7594 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7595 | #ifdef __cplusplus | ||
7596 | extern "C" | ||
7597 | #endif | ||
7598 | /* We use char because int might match the return type of a gcc2 | ||
7599 | builtin and then its argument prototype would still apply. */ | ||
7600 | char dirname (); | ||
7601 | int | ||
7602 | main () | ||
7603 | { | ||
7604 | dirname (); | ||
7605 | ; | ||
7606 | return 0; | ||
7607 | } | ||
7608 | _ACEOF | ||
7609 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7611 | (eval $ac_link) 2>conftest.er1 | ||
7612 | ac_status=$? | ||
7613 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7614 | rm -f conftest.er1 | ||
7615 | cat conftest.err >&5 | ||
7616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7617 | (exit $ac_status); } && | ||
7618 | { ac_try='test -z "$ac_c_werror_flag" | ||
7619 | || test ! -s conftest.err' | ||
7620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7621 | (eval $ac_try) 2>&5 | ||
7622 | ac_status=$? | ||
7623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7624 | (exit $ac_status); }; } && | ||
7625 | { ac_try='test -s conftest$ac_exeext' | ||
7626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7627 | (eval $ac_try) 2>&5 | ||
7628 | ac_status=$? | ||
7629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7630 | (exit $ac_status); }; }; then | ||
7631 | ac_cv_lib_gen_dirname=yes | ||
7632 | else | ||
7633 | echo "$as_me: failed program was:" >&5 | ||
7634 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7635 | |||
7636 | ac_cv_lib_gen_dirname=no | ||
7637 | fi | ||
7638 | rm -f conftest.err conftest.$ac_objext \ | ||
7639 | conftest$ac_exeext conftest.$ac_ext | ||
7640 | LIBS=$ac_check_lib_save_LIBS | ||
7641 | fi | ||
7642 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
7643 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
7644 | if test $ac_cv_lib_gen_dirname = yes; then | ||
7645 | |||
7646 | echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
7647 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
7648 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
7649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7650 | else | ||
7651 | |||
7652 | save_LIBS="$LIBS" | ||
7653 | LIBS="$LIBS -lgen" | ||
7654 | if test "$cross_compiling" = yes; then | ||
7655 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7656 | See \`config.log' for more details." >&5 | ||
7657 | echo "$as_me: error: cannot run test program while cross compiling | ||
7658 | See \`config.log' for more details." >&2;} | ||
7659 | { (exit 1); exit 1; }; } | ||
7660 | else | ||
7661 | cat >conftest.$ac_ext <<_ACEOF | ||
7662 | /* confdefs.h. */ | ||
7663 | _ACEOF | ||
7664 | cat confdefs.h >>conftest.$ac_ext | ||
7665 | cat >>conftest.$ac_ext <<_ACEOF | ||
7666 | /* end confdefs.h. */ | ||
7667 | |||
7668 | #include <libgen.h> | ||
7669 | #include <string.h> | ||
7670 | |||
7671 | int main(int argc, char **argv) { | ||
7672 | char *s, buf[32]; | ||
7673 | |||
7674 | strncpy(buf,"/etc", 32); | ||
7675 | s = dirname(buf); | ||
7676 | if (!s || strncmp(s, "/", 32) != 0) { | ||
7677 | exit(1); | ||
7678 | } else { | ||
7679 | exit(0); | ||
7680 | } | ||
7681 | } | ||
7682 | |||
7683 | _ACEOF | ||
7684 | rm -f conftest$ac_exeext | ||
7685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7686 | (eval $ac_link) 2>&5 | ||
7687 | ac_status=$? | ||
7688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7689 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7691 | (eval $ac_try) 2>&5 | ||
7692 | ac_status=$? | ||
7693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7694 | (exit $ac_status); }; }; then | ||
7695 | ac_cv_have_broken_dirname="no" | ||
7696 | else | ||
7697 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7698 | echo "$as_me: failed program was:" >&5 | ||
7699 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7700 | |||
7701 | ( exit $ac_status ) | ||
7702 | ac_cv_have_broken_dirname="yes" | ||
7703 | |||
7704 | fi | ||
7705 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7706 | fi | ||
7707 | LIBS="$save_LIBS" | ||
7708 | |||
7709 | fi | ||
7710 | echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
7711 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
7712 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
7713 | LIBS="$LIBS -lgen" | ||
7714 | cat >>confdefs.h <<\_ACEOF | ||
7715 | #define HAVE_DIRNAME 1 | ||
7716 | _ACEOF | ||
7717 | |||
7718 | |||
7719 | for ac_header in libgen.h | ||
7720 | do | ||
7721 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7723 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7725 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7727 | fi | ||
7728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7729 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7730 | else | ||
7731 | # Is the header compilable? | ||
7732 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7733 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7734 | cat >conftest.$ac_ext <<_ACEOF | ||
7735 | /* confdefs.h. */ | ||
7736 | _ACEOF | ||
7737 | cat confdefs.h >>conftest.$ac_ext | ||
7738 | cat >>conftest.$ac_ext <<_ACEOF | ||
7739 | /* end confdefs.h. */ | ||
7740 | $ac_includes_default | ||
7741 | #include <$ac_header> | ||
7742 | _ACEOF | ||
7743 | rm -f conftest.$ac_objext | ||
7744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7745 | (eval $ac_compile) 2>conftest.er1 | ||
7746 | ac_status=$? | ||
7747 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7748 | rm -f conftest.er1 | ||
7749 | cat conftest.err >&5 | ||
7750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7751 | (exit $ac_status); } && | ||
7752 | { ac_try='test -z "$ac_c_werror_flag" | ||
7753 | || test ! -s conftest.err' | ||
7754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7755 | (eval $ac_try) 2>&5 | ||
7756 | ac_status=$? | ||
7757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7758 | (exit $ac_status); }; } && | ||
7759 | { ac_try='test -s conftest.$ac_objext' | ||
7760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7761 | (eval $ac_try) 2>&5 | ||
7762 | ac_status=$? | ||
7763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7764 | (exit $ac_status); }; }; then | ||
7765 | ac_header_compiler=yes | ||
7766 | else | ||
7767 | echo "$as_me: failed program was:" >&5 | ||
7768 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7769 | |||
7770 | ac_header_compiler=no | ||
7771 | fi | ||
7772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7773 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7774 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7775 | |||
7776 | # Is the header present? | ||
7777 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7778 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7779 | cat >conftest.$ac_ext <<_ACEOF | ||
7780 | /* confdefs.h. */ | ||
7781 | _ACEOF | ||
7782 | cat confdefs.h >>conftest.$ac_ext | ||
7783 | cat >>conftest.$ac_ext <<_ACEOF | ||
7784 | /* end confdefs.h. */ | ||
7785 | #include <$ac_header> | ||
7786 | _ACEOF | ||
7787 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7788 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7789 | ac_status=$? | ||
7790 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7791 | rm -f conftest.er1 | ||
7792 | cat conftest.err >&5 | ||
7793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7794 | (exit $ac_status); } >/dev/null; then | ||
7795 | if test -s conftest.err; then | ||
7796 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7797 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
7798 | else | ||
7799 | ac_cpp_err= | ||
7800 | fi | ||
7801 | else | ||
7802 | ac_cpp_err=yes | ||
7803 | fi | ||
7804 | if test -z "$ac_cpp_err"; then | ||
7805 | ac_header_preproc=yes | ||
7806 | else | ||
7807 | echo "$as_me: failed program was:" >&5 | ||
7808 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7809 | |||
7810 | ac_header_preproc=no | ||
7811 | fi | ||
7812 | rm -f conftest.err conftest.$ac_ext | ||
7813 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7814 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7815 | |||
7816 | # So? What about this header? | ||
7817 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7818 | yes:no: ) | ||
7819 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7820 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7821 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7822 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7823 | ac_header_preproc=yes | ||
7824 | ;; | ||
7825 | no:yes:* ) | ||
7826 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7827 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7828 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7829 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7830 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7831 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7832 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7833 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7834 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7835 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7836 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7837 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7838 | ( | ||
7839 | cat <<\_ASBOX | ||
7840 | ## ---------------------------------- ## | ||
7841 | ## Report this to the OpenSSH lists. ## | ||
7842 | ## ---------------------------------- ## | ||
7843 | _ASBOX | ||
7844 | ) | | ||
7845 | sed "s/^/$as_me: WARNING: /" >&2 | ||
7846 | ;; | ||
7847 | esac | ||
7848 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7849 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7850 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7852 | else | ||
7853 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7854 | fi | ||
7855 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7856 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7857 | |||
7858 | fi | ||
7859 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7860 | cat >>confdefs.h <<_ACEOF | ||
7861 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7862 | _ACEOF | ||
7863 | |||
7864 | fi | ||
7865 | |||
7866 | done | ||
7867 | |||
7868 | fi | ||
7869 | |||
7870 | fi | ||
7871 | |||
7872 | |||
7873 | fi | ||
7874 | done | ||
7875 | |||
7876 | |||
7877 | echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
7878 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
7879 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
7880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7881 | else | ||
7882 | cat >conftest.$ac_ext <<_ACEOF | ||
7883 | /* confdefs.h. */ | ||
7884 | _ACEOF | ||
7885 | cat confdefs.h >>conftest.$ac_ext | ||
7886 | cat >>conftest.$ac_ext <<_ACEOF | ||
7887 | /* end confdefs.h. */ | ||
7888 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
7889 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7890 | #define getspnam innocuous_getspnam | ||
7891 | |||
7892 | /* System header to define __stub macros and hopefully few prototypes, | ||
7893 | which can conflict with char getspnam (); below. | ||
7894 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7895 | <limits.h> exists even on freestanding compilers. */ | ||
7896 | |||
7897 | #ifdef __STDC__ | ||
7898 | # include <limits.h> | ||
7899 | #else | ||
7900 | # include <assert.h> | ||
7901 | #endif | ||
7902 | |||
7903 | #undef getspnam | ||
7904 | |||
7905 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7906 | #ifdef __cplusplus | ||
7907 | extern "C" | ||
7908 | { | ||
7909 | #endif | ||
7910 | /* We use char because int might match the return type of a gcc2 | ||
7911 | builtin and then its argument prototype would still apply. */ | ||
7912 | char getspnam (); | ||
7913 | /* The GNU C library defines this for functions which it implements | ||
7914 | to always fail with ENOSYS. Some functions are actually named | ||
7915 | something starting with __ and the normal name is an alias. */ | ||
7916 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
7917 | choke me | ||
7918 | #else | ||
7919 | char (*f) () = getspnam; | ||
7920 | #endif | ||
7921 | #ifdef __cplusplus | ||
7922 | } | ||
7923 | #endif | ||
7924 | |||
7925 | int | ||
7926 | main () | ||
7927 | { | ||
7928 | return f != getspnam; | ||
7929 | ; | ||
7930 | return 0; | ||
7931 | } | ||
7932 | _ACEOF | ||
7933 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7935 | (eval $ac_link) 2>conftest.er1 | ||
7936 | ac_status=$? | ||
7937 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7938 | rm -f conftest.er1 | ||
7939 | cat conftest.err >&5 | ||
7940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7941 | (exit $ac_status); } && | ||
7942 | { ac_try='test -z "$ac_c_werror_flag" | ||
7943 | || test ! -s conftest.err' | ||
7944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7945 | (eval $ac_try) 2>&5 | ||
7946 | ac_status=$? | ||
7947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7948 | (exit $ac_status); }; } && | ||
7949 | { ac_try='test -s conftest$ac_exeext' | ||
7950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7951 | (eval $ac_try) 2>&5 | ||
7952 | ac_status=$? | ||
7953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7954 | (exit $ac_status); }; }; then | ||
7955 | ac_cv_func_getspnam=yes | ||
7956 | else | ||
7957 | echo "$as_me: failed program was:" >&5 | ||
7958 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7959 | |||
7960 | ac_cv_func_getspnam=no | ||
7961 | fi | ||
7962 | rm -f conftest.err conftest.$ac_objext \ | ||
7963 | conftest$ac_exeext conftest.$ac_ext | ||
7964 | fi | ||
7965 | echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
7966 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
7967 | if test $ac_cv_func_getspnam = yes; then | ||
7968 | : | ||
7969 | else | ||
7970 | echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
7971 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
7972 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
7973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7974 | else | ||
7975 | ac_check_lib_save_LIBS=$LIBS | ||
7976 | LIBS="-lgen $LIBS" | ||
7977 | cat >conftest.$ac_ext <<_ACEOF | ||
7978 | /* confdefs.h. */ | ||
7979 | _ACEOF | ||
7980 | cat confdefs.h >>conftest.$ac_ext | ||
7981 | cat >>conftest.$ac_ext <<_ACEOF | ||
7982 | /* end confdefs.h. */ | ||
7983 | |||
7984 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7985 | #ifdef __cplusplus | ||
7986 | extern "C" | ||
7987 | #endif | ||
7988 | /* We use char because int might match the return type of a gcc2 | ||
7989 | builtin and then its argument prototype would still apply. */ | ||
7990 | char getspnam (); | ||
7991 | int | ||
7992 | main () | ||
7993 | { | ||
7994 | getspnam (); | ||
7995 | ; | ||
7996 | return 0; | ||
7997 | } | ||
7998 | _ACEOF | ||
7999 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8001 | (eval $ac_link) 2>conftest.er1 | ||
8002 | ac_status=$? | ||
8003 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8004 | rm -f conftest.er1 | ||
8005 | cat conftest.err >&5 | ||
8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8007 | (exit $ac_status); } && | ||
8008 | { ac_try='test -z "$ac_c_werror_flag" | ||
8009 | || test ! -s conftest.err' | ||
8010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8011 | (eval $ac_try) 2>&5 | ||
8012 | ac_status=$? | ||
8013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8014 | (exit $ac_status); }; } && | ||
8015 | { ac_try='test -s conftest$ac_exeext' | ||
8016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8017 | (eval $ac_try) 2>&5 | ||
8018 | ac_status=$? | ||
8019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8020 | (exit $ac_status); }; }; then | ||
8021 | ac_cv_lib_gen_getspnam=yes | ||
8022 | else | ||
8023 | echo "$as_me: failed program was:" >&5 | ||
8024 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8025 | |||
8026 | ac_cv_lib_gen_getspnam=no | ||
8027 | fi | ||
8028 | rm -f conftest.err conftest.$ac_objext \ | ||
8029 | conftest$ac_exeext conftest.$ac_ext | ||
8030 | LIBS=$ac_check_lib_save_LIBS | ||
8031 | fi | ||
8032 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
8033 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
8034 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
8035 | LIBS="$LIBS -lgen" | ||
8036 | fi | ||
8037 | |||
8038 | fi | ||
8039 | |||
8040 | echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
8041 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6 | ||
8042 | if test "${ac_cv_search_basename+set}" = set; then | ||
8043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8044 | else | ||
8045 | ac_func_search_save_LIBS=$LIBS | ||
8046 | ac_cv_search_basename=no | ||
8047 | cat >conftest.$ac_ext <<_ACEOF | ||
8048 | /* confdefs.h. */ | ||
8049 | _ACEOF | ||
8050 | cat confdefs.h >>conftest.$ac_ext | ||
8051 | cat >>conftest.$ac_ext <<_ACEOF | ||
8052 | /* end confdefs.h. */ | ||
8053 | |||
8054 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8055 | #ifdef __cplusplus | ||
8056 | extern "C" | ||
8057 | #endif | ||
8058 | /* We use char because int might match the return type of a gcc2 | ||
8059 | builtin and then its argument prototype would still apply. */ | ||
8060 | char basename (); | ||
8061 | int | ||
8062 | main () | ||
8063 | { | ||
8064 | basename (); | ||
8065 | ; | ||
8066 | return 0; | ||
8067 | } | ||
8068 | _ACEOF | ||
8069 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8071 | (eval $ac_link) 2>conftest.er1 | ||
8072 | ac_status=$? | ||
8073 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8074 | rm -f conftest.er1 | ||
8075 | cat conftest.err >&5 | ||
8076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8077 | (exit $ac_status); } && | ||
8078 | { ac_try='test -z "$ac_c_werror_flag" | ||
8079 | || test ! -s conftest.err' | ||
8080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8081 | (eval $ac_try) 2>&5 | ||
8082 | ac_status=$? | ||
8083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8084 | (exit $ac_status); }; } && | ||
8085 | { ac_try='test -s conftest$ac_exeext' | ||
8086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8087 | (eval $ac_try) 2>&5 | ||
8088 | ac_status=$? | ||
8089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8090 | (exit $ac_status); }; }; then | ||
8091 | ac_cv_search_basename="none required" | ||
8092 | else | ||
8093 | echo "$as_me: failed program was:" >&5 | ||
8094 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8095 | |||
8096 | fi | ||
8097 | rm -f conftest.err conftest.$ac_objext \ | ||
8098 | conftest$ac_exeext conftest.$ac_ext | ||
8099 | if test "$ac_cv_search_basename" = no; then | ||
8100 | for ac_lib in gen; do | ||
8101 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8102 | cat >conftest.$ac_ext <<_ACEOF | ||
8103 | /* confdefs.h. */ | ||
8104 | _ACEOF | ||
8105 | cat confdefs.h >>conftest.$ac_ext | ||
8106 | cat >>conftest.$ac_ext <<_ACEOF | ||
8107 | /* end confdefs.h. */ | ||
8108 | |||
8109 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8110 | #ifdef __cplusplus | ||
8111 | extern "C" | ||
8112 | #endif | ||
8113 | /* We use char because int might match the return type of a gcc2 | ||
8114 | builtin and then its argument prototype would still apply. */ | ||
8115 | char basename (); | ||
8116 | int | ||
8117 | main () | ||
8118 | { | ||
8119 | basename (); | ||
8120 | ; | ||
8121 | return 0; | ||
8122 | } | ||
8123 | _ACEOF | ||
8124 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8126 | (eval $ac_link) 2>conftest.er1 | ||
8127 | ac_status=$? | ||
8128 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8129 | rm -f conftest.er1 | ||
8130 | cat conftest.err >&5 | ||
8131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8132 | (exit $ac_status); } && | ||
8133 | { ac_try='test -z "$ac_c_werror_flag" | ||
8134 | || test ! -s conftest.err' | ||
8135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8136 | (eval $ac_try) 2>&5 | ||
8137 | ac_status=$? | ||
8138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8139 | (exit $ac_status); }; } && | ||
8140 | { ac_try='test -s conftest$ac_exeext' | ||
8141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8142 | (eval $ac_try) 2>&5 | ||
8143 | ac_status=$? | ||
8144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8145 | (exit $ac_status); }; }; then | ||
8146 | ac_cv_search_basename="-l$ac_lib" | ||
8147 | break | ||
8148 | else | ||
8149 | echo "$as_me: failed program was:" >&5 | ||
8150 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8151 | |||
8152 | fi | ||
8153 | rm -f conftest.err conftest.$ac_objext \ | ||
8154 | conftest$ac_exeext conftest.$ac_ext | ||
8155 | done | ||
8156 | fi | ||
8157 | LIBS=$ac_func_search_save_LIBS | ||
8158 | fi | ||
8159 | echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
8160 | echo "${ECHO_T}$ac_cv_search_basename" >&6 | ||
8161 | if test "$ac_cv_search_basename" != no; then | ||
8162 | test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS" | ||
8163 | cat >>confdefs.h <<\_ACEOF | ||
8164 | #define HAVE_BASENAME 1 | ||
8165 | _ACEOF | ||
8166 | |||
8167 | fi | ||
8168 | |||
8169 | |||
8170 | |||
8171 | # Check whether --with-zlib or --without-zlib was given. | ||
8172 | if test "${with_zlib+set}" = set; then | ||
8173 | withval="$with_zlib" | ||
8174 | |||
8175 | if test "x$withval" = "xno" ; then | ||
8176 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
8177 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
8178 | { (exit 1); exit 1; }; } | ||
8179 | fi | ||
8180 | if test -d "$withval/lib"; then | ||
8181 | if test -n "${need_dash_r}"; then | ||
8182 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8183 | else | ||
8184 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8185 | fi | ||
8186 | else | ||
8187 | if test -n "${need_dash_r}"; then | ||
8188 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8189 | else | ||
8190 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8191 | fi | ||
8192 | fi | ||
8193 | if test -d "$withval/include"; then | ||
8194 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8195 | else | ||
8196 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8197 | fi | ||
8198 | |||
8199 | |||
8200 | fi; | ||
8201 | |||
8202 | |||
8203 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
8204 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
8205 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
8206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8207 | else | ||
8208 | ac_check_lib_save_LIBS=$LIBS | ||
8209 | LIBS="-lz $LIBS" | ||
8210 | cat >conftest.$ac_ext <<_ACEOF | ||
8211 | /* confdefs.h. */ | ||
8212 | _ACEOF | ||
8213 | cat confdefs.h >>conftest.$ac_ext | ||
8214 | cat >>conftest.$ac_ext <<_ACEOF | ||
8215 | /* end confdefs.h. */ | ||
8216 | |||
8217 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8218 | #ifdef __cplusplus | ||
8219 | extern "C" | ||
8220 | #endif | ||
8221 | /* We use char because int might match the return type of a gcc2 | ||
8222 | builtin and then its argument prototype would still apply. */ | ||
8223 | char deflate (); | ||
8224 | int | ||
8225 | main () | ||
8226 | { | ||
8227 | deflate (); | ||
8228 | ; | ||
8229 | return 0; | ||
8230 | } | ||
8231 | _ACEOF | ||
8232 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8234 | (eval $ac_link) 2>conftest.er1 | ||
8235 | ac_status=$? | ||
8236 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8237 | rm -f conftest.er1 | ||
8238 | cat conftest.err >&5 | ||
8239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8240 | (exit $ac_status); } && | ||
8241 | { ac_try='test -z "$ac_c_werror_flag" | ||
8242 | || test ! -s conftest.err' | ||
8243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8244 | (eval $ac_try) 2>&5 | ||
8245 | ac_status=$? | ||
8246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8247 | (exit $ac_status); }; } && | ||
8248 | { ac_try='test -s conftest$ac_exeext' | ||
8249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8250 | (eval $ac_try) 2>&5 | ||
8251 | ac_status=$? | ||
8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8253 | (exit $ac_status); }; }; then | ||
8254 | ac_cv_lib_z_deflate=yes | ||
8255 | else | ||
8256 | echo "$as_me: failed program was:" >&5 | ||
8257 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8258 | |||
8259 | ac_cv_lib_z_deflate=no | ||
8260 | fi | ||
8261 | rm -f conftest.err conftest.$ac_objext \ | ||
8262 | conftest$ac_exeext conftest.$ac_ext | ||
8263 | LIBS=$ac_check_lib_save_LIBS | ||
8264 | fi | ||
8265 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
8266 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
8267 | if test $ac_cv_lib_z_deflate = yes; then | ||
8268 | cat >>confdefs.h <<_ACEOF | ||
8269 | #define HAVE_LIBZ 1 | ||
8270 | _ACEOF | ||
8271 | |||
8272 | LIBS="-lz $LIBS" | ||
8273 | |||
8274 | else | ||
8275 | |||
8276 | saved_CPPFLAGS="$CPPFLAGS" | ||
8277 | saved_LDFLAGS="$LDFLAGS" | ||
8278 | save_LIBS="$LIBS" | ||
8279 | if test -n "${need_dash_r}"; then | ||
8280 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
8281 | else | ||
8282 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
8283 | fi | ||
8284 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
8285 | LIBS="$LIBS -lz" | ||
8286 | cat >conftest.$ac_ext <<_ACEOF | ||
8287 | /* confdefs.h. */ | ||
8288 | _ACEOF | ||
8289 | cat confdefs.h >>conftest.$ac_ext | ||
8290 | cat >>conftest.$ac_ext <<_ACEOF | ||
8291 | /* end confdefs.h. */ | ||
8292 | |||
8293 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8294 | #ifdef __cplusplus | ||
8295 | extern "C" | ||
8296 | #endif | ||
8297 | /* We use char because int might match the return type of a gcc2 | ||
8298 | builtin and then its argument prototype would still apply. */ | ||
8299 | char deflate (); | ||
8300 | int | ||
8301 | main () | ||
8302 | { | ||
8303 | deflate (); | ||
8304 | ; | ||
8305 | return 0; | ||
8306 | } | ||
8307 | _ACEOF | ||
8308 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8310 | (eval $ac_link) 2>conftest.er1 | ||
8311 | ac_status=$? | ||
8312 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8313 | rm -f conftest.er1 | ||
8314 | cat conftest.err >&5 | ||
8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8316 | (exit $ac_status); } && | ||
8317 | { ac_try='test -z "$ac_c_werror_flag" | ||
8318 | || test ! -s conftest.err' | ||
8319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8320 | (eval $ac_try) 2>&5 | ||
8321 | ac_status=$? | ||
8322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8323 | (exit $ac_status); }; } && | ||
8324 | { ac_try='test -s conftest$ac_exeext' | ||
8325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8326 | (eval $ac_try) 2>&5 | ||
8327 | ac_status=$? | ||
8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8329 | (exit $ac_status); }; }; then | ||
8330 | cat >>confdefs.h <<\_ACEOF | ||
8331 | #define HAVE_LIBZ 1 | ||
8332 | _ACEOF | ||
8333 | |||
8334 | else | ||
8335 | echo "$as_me: failed program was:" >&5 | ||
8336 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8337 | |||
8338 | |||
8339 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
8340 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
8341 | { (exit 1); exit 1; }; } | ||
8342 | |||
8343 | |||
8344 | fi | ||
8345 | rm -f conftest.err conftest.$ac_objext \ | ||
8346 | conftest$ac_exeext conftest.$ac_ext | ||
8347 | |||
8348 | |||
8349 | fi | ||
8350 | |||
8351 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8352 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
8353 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
8354 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8356 | fi | ||
8357 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
8358 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
8359 | else | ||
8360 | # Is the header compilable? | ||
8361 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
8362 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | ||
8363 | cat >conftest.$ac_ext <<_ACEOF | ||
8364 | /* confdefs.h. */ | ||
8365 | _ACEOF | ||
8366 | cat confdefs.h >>conftest.$ac_ext | ||
8367 | cat >>conftest.$ac_ext <<_ACEOF | ||
8368 | /* end confdefs.h. */ | ||
8369 | $ac_includes_default | ||
8370 | #include <zlib.h> | ||
8371 | _ACEOF | ||
8372 | rm -f conftest.$ac_objext | ||
8373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8374 | (eval $ac_compile) 2>conftest.er1 | ||
8375 | ac_status=$? | ||
8376 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8377 | rm -f conftest.er1 | ||
8378 | cat conftest.err >&5 | ||
8379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8380 | (exit $ac_status); } && | ||
8381 | { ac_try='test -z "$ac_c_werror_flag" | ||
8382 | || test ! -s conftest.err' | ||
8383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8384 | (eval $ac_try) 2>&5 | ||
8385 | ac_status=$? | ||
8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8387 | (exit $ac_status); }; } && | ||
8388 | { ac_try='test -s conftest.$ac_objext' | ||
8389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8390 | (eval $ac_try) 2>&5 | ||
8391 | ac_status=$? | ||
8392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8393 | (exit $ac_status); }; }; then | ||
8394 | ac_header_compiler=yes | ||
8395 | else | ||
8396 | echo "$as_me: failed program was:" >&5 | ||
8397 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8398 | |||
8399 | ac_header_compiler=no | ||
8400 | fi | ||
8401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8402 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8403 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
8404 | |||
8405 | # Is the header present? | ||
8406 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
8407 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | ||
8408 | cat >conftest.$ac_ext <<_ACEOF | ||
8409 | /* confdefs.h. */ | ||
8410 | _ACEOF | ||
8411 | cat confdefs.h >>conftest.$ac_ext | ||
8412 | cat >>conftest.$ac_ext <<_ACEOF | ||
8413 | /* end confdefs.h. */ | ||
8414 | #include <zlib.h> | ||
8415 | _ACEOF | ||
8416 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
8417 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
8418 | ac_status=$? | ||
8419 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8420 | rm -f conftest.er1 | ||
8421 | cat conftest.err >&5 | ||
8422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8423 | (exit $ac_status); } >/dev/null; then | ||
8424 | if test -s conftest.err; then | ||
8425 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
8426 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
8427 | else | ||
8428 | ac_cpp_err= | ||
8429 | fi | ||
8430 | else | ||
8431 | ac_cpp_err=yes | ||
8432 | fi | ||
8433 | if test -z "$ac_cpp_err"; then | ||
8434 | ac_header_preproc=yes | ||
8435 | else | ||
8436 | echo "$as_me: failed program was:" >&5 | ||
8437 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8438 | |||
8439 | ac_header_preproc=no | ||
8440 | fi | ||
8441 | rm -f conftest.err conftest.$ac_ext | ||
8442 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8443 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
8444 | |||
8445 | # So? What about this header? | ||
8446 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8447 | yes:no: ) | ||
8448 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8449 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8450 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
8451 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
8452 | ac_header_preproc=yes | ||
8453 | ;; | ||
8454 | no:yes:* ) | ||
8455 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
8456 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
8457 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
8458 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
8459 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
8460 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
8461 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8462 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8463 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
8464 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
8465 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
8466 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
8467 | ( | ||
8468 | cat <<\_ASBOX | ||
8469 | ## ---------------------------------- ## | ||
8470 | ## Report this to the OpenSSH lists. ## | ||
8471 | ## ---------------------------------- ## | ||
8472 | _ASBOX | ||
8473 | ) | | ||
8474 | sed "s/^/$as_me: WARNING: /" >&2 | ||
8475 | ;; | ||
8476 | esac | ||
8477 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
8478 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
8479 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8481 | else | ||
8482 | ac_cv_header_zlib_h=$ac_header_preproc | ||
8483 | fi | ||
8484 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
8485 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
8486 | |||
8487 | fi | ||
8488 | if test $ac_cv_header_zlib_h = yes; then | ||
8489 | : | ||
8490 | else | ||
8491 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
8492 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
8493 | { (exit 1); exit 1; }; } | ||
8494 | fi | ||
8495 | |||
8496 | |||
8497 | |||
8498 | |||
8499 | # Check whether --with-zlib-version-check or --without-zlib-version-check was given. | ||
8500 | if test "${with_zlib_version_check+set}" = set; then | ||
8501 | withval="$with_zlib_version_check" | ||
8502 | if test "x$withval" = "xno" ; then | ||
8503 | zlib_check_nonfatal=1 | ||
8504 | fi | ||
8505 | |||
8506 | |||
8507 | fi; | ||
8508 | |||
8509 | echo "$as_me:$LINENO: checking for zlib 1.1.4 or greater" >&5 | ||
8510 | echo $ECHO_N "checking for zlib 1.1.4 or greater... $ECHO_C" >&6 | ||
8511 | if test "$cross_compiling" = yes; then | ||
8512 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
8513 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
8514 | |||
8515 | else | ||
8516 | cat >conftest.$ac_ext <<_ACEOF | ||
8517 | /* confdefs.h. */ | ||
8518 | _ACEOF | ||
8519 | cat confdefs.h >>conftest.$ac_ext | ||
8520 | cat >>conftest.$ac_ext <<_ACEOF | ||
8521 | /* end confdefs.h. */ | ||
8522 | |||
8523 | #include <zlib.h> | ||
8524 | int main() | ||
8525 | { | ||
8526 | int a, b, c, v; | ||
8527 | if (sscanf(ZLIB_VERSION, "%d.%d.%d", &a, &b, &c) != 3) | ||
8528 | exit(1); | ||
8529 | v = a*1000000 + b*1000 + c; | ||
8530 | if (v >= 1001004) | ||
8531 | exit(0); | ||
8532 | exit(2); | ||
8533 | } | ||
8534 | |||
8535 | _ACEOF | ||
8536 | rm -f conftest$ac_exeext | ||
8537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8538 | (eval $ac_link) 2>&5 | ||
8539 | ac_status=$? | ||
8540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8541 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8543 | (eval $ac_try) 2>&5 | ||
8544 | ac_status=$? | ||
8545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8546 | (exit $ac_status); }; }; then | ||
8547 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8548 | echo "${ECHO_T}yes" >&6 | ||
8549 | else | ||
8550 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8551 | echo "$as_me: failed program was:" >&5 | ||
8552 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8553 | |||
8554 | ( exit $ac_status ) | ||
8555 | echo "$as_me:$LINENO: result: no" >&5 | ||
8556 | echo "${ECHO_T}no" >&6 | ||
8557 | if test -z "$zlib_check_nonfatal" ; then | ||
8558 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
8559 | Your reported zlib version has known security problems. It's possible your | ||
8560 | vendor has fixed these problems without changing the version number. If you | ||
8561 | are sure this is the case, you can disable the check by running | ||
8562 | \"./configure --without-zlib-version-check\". | ||
8563 | If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&5 | ||
8564 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
8565 | Your reported zlib version has known security problems. It's possible your | ||
8566 | vendor has fixed these problems without changing the version number. If you | ||
8567 | are sure this is the case, you can disable the check by running | ||
8568 | \"./configure --without-zlib-version-check\". | ||
8569 | If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&2;} | ||
8570 | { (exit 1); exit 1; }; } | ||
8571 | else | ||
8572 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
8573 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
8574 | fi | ||
8575 | |||
8576 | fi | ||
8577 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8578 | fi | ||
8579 | |||
8580 | echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
8581 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
8582 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
8583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8584 | else | ||
8585 | cat >conftest.$ac_ext <<_ACEOF | ||
8586 | /* confdefs.h. */ | ||
8587 | _ACEOF | ||
8588 | cat confdefs.h >>conftest.$ac_ext | ||
8589 | cat >>conftest.$ac_ext <<_ACEOF | ||
8590 | /* end confdefs.h. */ | ||
8591 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
8592 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8593 | #define strcasecmp innocuous_strcasecmp | ||
8594 | |||
8595 | /* System header to define __stub macros and hopefully few prototypes, | ||
8596 | which can conflict with char strcasecmp (); below. | ||
8597 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8598 | <limits.h> exists even on freestanding compilers. */ | ||
8599 | |||
8600 | #ifdef __STDC__ | ||
8601 | # include <limits.h> | ||
8602 | #else | ||
8603 | # include <assert.h> | ||
8604 | #endif | ||
8605 | |||
8606 | #undef strcasecmp | ||
8607 | |||
8608 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8609 | #ifdef __cplusplus | ||
8610 | extern "C" | ||
8611 | { | ||
8612 | #endif | ||
8613 | /* We use char because int might match the return type of a gcc2 | ||
8614 | builtin and then its argument prototype would still apply. */ | ||
8615 | char strcasecmp (); | ||
8616 | /* The GNU C library defines this for functions which it implements | ||
8617 | to always fail with ENOSYS. Some functions are actually named | ||
8618 | something starting with __ and the normal name is an alias. */ | ||
8619 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
8620 | choke me | ||
8621 | #else | ||
8622 | char (*f) () = strcasecmp; | ||
8623 | #endif | ||
8624 | #ifdef __cplusplus | ||
8625 | } | ||
8626 | #endif | ||
8627 | |||
8628 | int | ||
8629 | main () | ||
8630 | { | ||
8631 | return f != strcasecmp; | ||
8632 | ; | ||
8633 | return 0; | ||
8634 | } | ||
8635 | _ACEOF | ||
8636 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8638 | (eval $ac_link) 2>conftest.er1 | ||
8639 | ac_status=$? | ||
8640 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8641 | rm -f conftest.er1 | ||
8642 | cat conftest.err >&5 | ||
8643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8644 | (exit $ac_status); } && | ||
8645 | { ac_try='test -z "$ac_c_werror_flag" | ||
8646 | || test ! -s conftest.err' | ||
8647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8648 | (eval $ac_try) 2>&5 | ||
8649 | ac_status=$? | ||
8650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8651 | (exit $ac_status); }; } && | ||
8652 | { ac_try='test -s conftest$ac_exeext' | ||
8653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8654 | (eval $ac_try) 2>&5 | ||
8655 | ac_status=$? | ||
8656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8657 | (exit $ac_status); }; }; then | ||
8658 | ac_cv_func_strcasecmp=yes | ||
8659 | else | ||
8660 | echo "$as_me: failed program was:" >&5 | ||
8661 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8662 | |||
8663 | ac_cv_func_strcasecmp=no | ||
8664 | fi | ||
8665 | rm -f conftest.err conftest.$ac_objext \ | ||
8666 | conftest$ac_exeext conftest.$ac_ext | ||
8667 | fi | ||
8668 | echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
8669 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
8670 | if test $ac_cv_func_strcasecmp = yes; then | ||
8671 | : | ||
8672 | else | ||
8673 | echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
8674 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
8675 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
8676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8677 | else | ||
8678 | ac_check_lib_save_LIBS=$LIBS | ||
8679 | LIBS="-lresolv $LIBS" | ||
8680 | cat >conftest.$ac_ext <<_ACEOF | ||
8681 | /* confdefs.h. */ | ||
8682 | _ACEOF | ||
8683 | cat confdefs.h >>conftest.$ac_ext | ||
8684 | cat >>conftest.$ac_ext <<_ACEOF | ||
8685 | /* end confdefs.h. */ | ||
8686 | |||
8687 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8688 | #ifdef __cplusplus | ||
8689 | extern "C" | ||
8690 | #endif | ||
8691 | /* We use char because int might match the return type of a gcc2 | ||
8692 | builtin and then its argument prototype would still apply. */ | ||
8693 | char strcasecmp (); | ||
8694 | int | ||
8695 | main () | ||
8696 | { | ||
8697 | strcasecmp (); | ||
8698 | ; | ||
8699 | return 0; | ||
8700 | } | ||
8701 | _ACEOF | ||
8702 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8704 | (eval $ac_link) 2>conftest.er1 | ||
8705 | ac_status=$? | ||
8706 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8707 | rm -f conftest.er1 | ||
8708 | cat conftest.err >&5 | ||
8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8710 | (exit $ac_status); } && | ||
8711 | { ac_try='test -z "$ac_c_werror_flag" | ||
8712 | || test ! -s conftest.err' | ||
8713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8714 | (eval $ac_try) 2>&5 | ||
8715 | ac_status=$? | ||
8716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8717 | (exit $ac_status); }; } && | ||
8718 | { ac_try='test -s conftest$ac_exeext' | ||
8719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8720 | (eval $ac_try) 2>&5 | ||
8721 | ac_status=$? | ||
8722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8723 | (exit $ac_status); }; }; then | ||
8724 | ac_cv_lib_resolv_strcasecmp=yes | ||
8725 | else | ||
8726 | echo "$as_me: failed program was:" >&5 | ||
8727 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8728 | |||
8729 | ac_cv_lib_resolv_strcasecmp=no | ||
8730 | fi | ||
8731 | rm -f conftest.err conftest.$ac_objext \ | ||
8732 | conftest$ac_exeext conftest.$ac_ext | ||
8733 | LIBS=$ac_check_lib_save_LIBS | ||
8734 | fi | ||
8735 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
8736 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
8737 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
8738 | LIBS="$LIBS -lresolv" | ||
8739 | fi | ||
8740 | |||
8741 | |||
8742 | fi | ||
8743 | |||
8744 | echo "$as_me:$LINENO: checking for utimes" >&5 | ||
8745 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
8746 | if test "${ac_cv_func_utimes+set}" = set; then | ||
8747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8748 | else | ||
8749 | cat >conftest.$ac_ext <<_ACEOF | ||
8750 | /* confdefs.h. */ | ||
8751 | _ACEOF | ||
8752 | cat confdefs.h >>conftest.$ac_ext | ||
8753 | cat >>conftest.$ac_ext <<_ACEOF | ||
8754 | /* end confdefs.h. */ | ||
8755 | /* Define utimes to an innocuous variant, in case <limits.h> declares utimes. | ||
8756 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8757 | #define utimes innocuous_utimes | ||
8758 | |||
8759 | /* System header to define __stub macros and hopefully few prototypes, | ||
8760 | which can conflict with char utimes (); below. | ||
8761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8762 | <limits.h> exists even on freestanding compilers. */ | ||
8763 | |||
8764 | #ifdef __STDC__ | ||
8765 | # include <limits.h> | ||
8766 | #else | ||
8767 | # include <assert.h> | ||
8768 | #endif | ||
8769 | |||
8770 | #undef utimes | ||
8771 | |||
8772 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8773 | #ifdef __cplusplus | ||
8774 | extern "C" | ||
8775 | { | ||
8776 | #endif | ||
8777 | /* We use char because int might match the return type of a gcc2 | ||
8778 | builtin and then its argument prototype would still apply. */ | ||
8779 | char utimes (); | ||
8780 | /* The GNU C library defines this for functions which it implements | ||
8781 | to always fail with ENOSYS. Some functions are actually named | ||
8782 | something starting with __ and the normal name is an alias. */ | ||
8783 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
8784 | choke me | ||
8785 | #else | ||
8786 | char (*f) () = utimes; | ||
8787 | #endif | ||
8788 | #ifdef __cplusplus | ||
8789 | } | ||
8790 | #endif | ||
8791 | |||
8792 | int | ||
8793 | main () | ||
8794 | { | ||
8795 | return f != utimes; | ||
8796 | ; | ||
8797 | return 0; | ||
8798 | } | ||
8799 | _ACEOF | ||
8800 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8802 | (eval $ac_link) 2>conftest.er1 | ||
8803 | ac_status=$? | ||
8804 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8805 | rm -f conftest.er1 | ||
8806 | cat conftest.err >&5 | ||
8807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8808 | (exit $ac_status); } && | ||
8809 | { ac_try='test -z "$ac_c_werror_flag" | ||
8810 | || test ! -s conftest.err' | ||
8811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8812 | (eval $ac_try) 2>&5 | ||
8813 | ac_status=$? | ||
8814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8815 | (exit $ac_status); }; } && | ||
8816 | { ac_try='test -s conftest$ac_exeext' | ||
8817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8818 | (eval $ac_try) 2>&5 | ||
8819 | ac_status=$? | ||
8820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8821 | (exit $ac_status); }; }; then | ||
8822 | ac_cv_func_utimes=yes | ||
8823 | else | ||
8824 | echo "$as_me: failed program was:" >&5 | ||
8825 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8826 | |||
8827 | ac_cv_func_utimes=no | ||
8828 | fi | ||
8829 | rm -f conftest.err conftest.$ac_objext \ | ||
8830 | conftest$ac_exeext conftest.$ac_ext | ||
8831 | fi | ||
8832 | echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5 | ||
8833 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
8834 | if test $ac_cv_func_utimes = yes; then | ||
8835 | : | ||
8836 | else | ||
8837 | echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
8838 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
8839 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
8840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8841 | else | ||
8842 | ac_check_lib_save_LIBS=$LIBS | ||
8843 | LIBS="-lc89 $LIBS" | ||
8844 | cat >conftest.$ac_ext <<_ACEOF | ||
8845 | /* confdefs.h. */ | ||
8846 | _ACEOF | ||
8847 | cat confdefs.h >>conftest.$ac_ext | ||
8848 | cat >>conftest.$ac_ext <<_ACEOF | ||
8849 | /* end confdefs.h. */ | ||
8850 | |||
8851 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8852 | #ifdef __cplusplus | ||
8853 | extern "C" | ||
8854 | #endif | ||
8855 | /* We use char because int might match the return type of a gcc2 | ||
8856 | builtin and then its argument prototype would still apply. */ | ||
8857 | char utimes (); | ||
8858 | int | ||
8859 | main () | ||
8860 | { | ||
8861 | utimes (); | ||
8862 | ; | ||
8863 | return 0; | ||
8864 | } | ||
8865 | _ACEOF | ||
8866 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8868 | (eval $ac_link) 2>conftest.er1 | ||
8869 | ac_status=$? | ||
8870 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8871 | rm -f conftest.er1 | ||
8872 | cat conftest.err >&5 | ||
8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8874 | (exit $ac_status); } && | ||
8875 | { ac_try='test -z "$ac_c_werror_flag" | ||
8876 | || test ! -s conftest.err' | ||
8877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8878 | (eval $ac_try) 2>&5 | ||
8879 | ac_status=$? | ||
8880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8881 | (exit $ac_status); }; } && | ||
8882 | { ac_try='test -s conftest$ac_exeext' | ||
8883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8884 | (eval $ac_try) 2>&5 | ||
8885 | ac_status=$? | ||
8886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8887 | (exit $ac_status); }; }; then | ||
8888 | ac_cv_lib_c89_utimes=yes | ||
8889 | else | ||
8890 | echo "$as_me: failed program was:" >&5 | ||
8891 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8892 | |||
8893 | ac_cv_lib_c89_utimes=no | ||
8894 | fi | ||
8895 | rm -f conftest.err conftest.$ac_objext \ | ||
8896 | conftest$ac_exeext conftest.$ac_ext | ||
8897 | LIBS=$ac_check_lib_save_LIBS | ||
8898 | fi | ||
8899 | echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
8900 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
8901 | if test $ac_cv_lib_c89_utimes = yes; then | ||
8902 | cat >>confdefs.h <<\_ACEOF | ||
8903 | #define HAVE_UTIMES 1 | ||
8904 | _ACEOF | ||
8905 | |||
8906 | LIBS="$LIBS -lc89" | ||
8907 | fi | ||
8908 | |||
8909 | |||
8910 | fi | ||
8911 | |||
8912 | |||
8913 | |||
8914 | for ac_header in libutil.h | ||
8915 | do | ||
8916 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8917 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8918 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8919 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
8920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8922 | fi | ||
8923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
8924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
8925 | else | ||
8926 | # Is the header compilable? | ||
8927 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
8928 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
8929 | cat >conftest.$ac_ext <<_ACEOF | ||
8930 | /* confdefs.h. */ | ||
8931 | _ACEOF | ||
8932 | cat confdefs.h >>conftest.$ac_ext | ||
8933 | cat >>conftest.$ac_ext <<_ACEOF | ||
8934 | /* end confdefs.h. */ | ||
8935 | $ac_includes_default | ||
8936 | #include <$ac_header> | ||
8937 | _ACEOF | ||
8938 | rm -f conftest.$ac_objext | ||
8939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8940 | (eval $ac_compile) 2>conftest.er1 | ||
8941 | ac_status=$? | ||
8942 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8943 | rm -f conftest.er1 | ||
8944 | cat conftest.err >&5 | ||
8945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8946 | (exit $ac_status); } && | ||
8947 | { ac_try='test -z "$ac_c_werror_flag" | ||
8948 | || test ! -s conftest.err' | ||
8949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8950 | (eval $ac_try) 2>&5 | ||
8951 | ac_status=$? | ||
8952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8953 | (exit $ac_status); }; } && | ||
8954 | { ac_try='test -s conftest.$ac_objext' | ||
8955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8956 | (eval $ac_try) 2>&5 | ||
8957 | ac_status=$? | ||
8958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8959 | (exit $ac_status); }; }; then | ||
8960 | ac_header_compiler=yes | ||
8961 | else | ||
8962 | echo "$as_me: failed program was:" >&5 | ||
8963 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8964 | |||
8965 | ac_header_compiler=no | ||
8966 | fi | ||
8967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8968 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8969 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
8970 | |||
8971 | # Is the header present? | ||
8972 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
8973 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
8974 | cat >conftest.$ac_ext <<_ACEOF | ||
8975 | /* confdefs.h. */ | ||
8976 | _ACEOF | ||
8977 | cat confdefs.h >>conftest.$ac_ext | ||
8978 | cat >>conftest.$ac_ext <<_ACEOF | ||
8979 | /* end confdefs.h. */ | ||
8980 | #include <$ac_header> | ||
8981 | _ACEOF | ||
8982 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
8983 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
8984 | ac_status=$? | ||
8985 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8986 | rm -f conftest.er1 | ||
8987 | cat conftest.err >&5 | ||
8988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8989 | (exit $ac_status); } >/dev/null; then | ||
8990 | if test -s conftest.err; then | ||
8991 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
8992 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
8993 | else | ||
8994 | ac_cpp_err= | ||
8995 | fi | ||
8996 | else | ||
8997 | ac_cpp_err=yes | ||
8998 | fi | ||
8999 | if test -z "$ac_cpp_err"; then | ||
9000 | ac_header_preproc=yes | ||
9001 | else | ||
9002 | echo "$as_me: failed program was:" >&5 | ||
9003 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9004 | |||
9005 | ac_header_preproc=no | ||
9006 | fi | ||
9007 | rm -f conftest.err conftest.$ac_ext | ||
9008 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9009 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
9010 | |||
9011 | # So? What about this header? | ||
9012 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9013 | yes:no: ) | ||
9014 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9015 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9016 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
9017 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
9018 | ac_header_preproc=yes | ||
9019 | ;; | ||
9020 | no:yes:* ) | ||
9021 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
9022 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
9023 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
9024 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
9025 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
9026 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
9027 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
9028 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
9030 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
9031 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
9032 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
9033 | ( | ||
9034 | cat <<\_ASBOX | ||
9035 | ## ---------------------------------- ## | ||
9036 | ## Report this to the OpenSSH lists. ## | ||
9037 | ## ---------------------------------- ## | ||
9038 | _ASBOX | ||
9039 | ) | | ||
9040 | sed "s/^/$as_me: WARNING: /" >&2 | ||
9041 | ;; | ||
9042 | esac | ||
9043 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9044 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
9045 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9047 | else | ||
9048 | eval "$as_ac_Header=\$ac_header_preproc" | ||
9049 | fi | ||
9050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
9051 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
9052 | |||
9053 | fi | ||
9054 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
9055 | cat >>confdefs.h <<_ACEOF | ||
9056 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9057 | _ACEOF | ||
9058 | |||
9059 | fi | ||
9060 | |||
9061 | done | ||
9062 | |||
9063 | echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
9064 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
9065 | if test "${ac_cv_search_login+set}" = set; then | ||
9066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9067 | else | ||
9068 | ac_func_search_save_LIBS=$LIBS | ||
9069 | ac_cv_search_login=no | ||
9070 | cat >conftest.$ac_ext <<_ACEOF | ||
9071 | /* confdefs.h. */ | ||
9072 | _ACEOF | ||
9073 | cat confdefs.h >>conftest.$ac_ext | ||
9074 | cat >>conftest.$ac_ext <<_ACEOF | ||
9075 | /* end confdefs.h. */ | ||
9076 | |||
9077 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9078 | #ifdef __cplusplus | ||
9079 | extern "C" | ||
9080 | #endif | ||
9081 | /* We use char because int might match the return type of a gcc2 | ||
9082 | builtin and then its argument prototype would still apply. */ | ||
9083 | char login (); | ||
9084 | int | ||
9085 | main () | ||
9086 | { | ||
9087 | login (); | ||
9088 | ; | ||
9089 | return 0; | ||
9090 | } | ||
9091 | _ACEOF | ||
9092 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9094 | (eval $ac_link) 2>conftest.er1 | ||
9095 | ac_status=$? | ||
9096 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9097 | rm -f conftest.er1 | ||
9098 | cat conftest.err >&5 | ||
9099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9100 | (exit $ac_status); } && | ||
9101 | { ac_try='test -z "$ac_c_werror_flag" | ||
9102 | || test ! -s conftest.err' | ||
9103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9104 | (eval $ac_try) 2>&5 | ||
9105 | ac_status=$? | ||
9106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9107 | (exit $ac_status); }; } && | ||
9108 | { ac_try='test -s conftest$ac_exeext' | ||
9109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9110 | (eval $ac_try) 2>&5 | ||
9111 | ac_status=$? | ||
9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9113 | (exit $ac_status); }; }; then | ||
9114 | ac_cv_search_login="none required" | ||
9115 | else | ||
9116 | echo "$as_me: failed program was:" >&5 | ||
9117 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9118 | |||
9119 | fi | ||
9120 | rm -f conftest.err conftest.$ac_objext \ | ||
9121 | conftest$ac_exeext conftest.$ac_ext | ||
9122 | if test "$ac_cv_search_login" = no; then | ||
9123 | for ac_lib in util bsd; do | ||
9124 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9125 | cat >conftest.$ac_ext <<_ACEOF | ||
9126 | /* confdefs.h. */ | ||
9127 | _ACEOF | ||
9128 | cat confdefs.h >>conftest.$ac_ext | ||
9129 | cat >>conftest.$ac_ext <<_ACEOF | ||
9130 | /* end confdefs.h. */ | ||
9131 | |||
9132 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9133 | #ifdef __cplusplus | ||
9134 | extern "C" | ||
9135 | #endif | ||
9136 | /* We use char because int might match the return type of a gcc2 | ||
9137 | builtin and then its argument prototype would still apply. */ | ||
9138 | char login (); | ||
9139 | int | ||
9140 | main () | ||
9141 | { | ||
9142 | login (); | ||
9143 | ; | ||
9144 | return 0; | ||
9145 | } | ||
9146 | _ACEOF | ||
9147 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9149 | (eval $ac_link) 2>conftest.er1 | ||
9150 | ac_status=$? | ||
9151 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9152 | rm -f conftest.er1 | ||
9153 | cat conftest.err >&5 | ||
9154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9155 | (exit $ac_status); } && | ||
9156 | { ac_try='test -z "$ac_c_werror_flag" | ||
9157 | || test ! -s conftest.err' | ||
9158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9159 | (eval $ac_try) 2>&5 | ||
9160 | ac_status=$? | ||
9161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9162 | (exit $ac_status); }; } && | ||
9163 | { ac_try='test -s conftest$ac_exeext' | ||
9164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9165 | (eval $ac_try) 2>&5 | ||
9166 | ac_status=$? | ||
9167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9168 | (exit $ac_status); }; }; then | ||
9169 | ac_cv_search_login="-l$ac_lib" | ||
9170 | break | ||
9171 | else | ||
9172 | echo "$as_me: failed program was:" >&5 | ||
9173 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9174 | |||
9175 | fi | ||
9176 | rm -f conftest.err conftest.$ac_objext \ | ||
9177 | conftest$ac_exeext conftest.$ac_ext | ||
9178 | done | ||
9179 | fi | ||
9180 | LIBS=$ac_func_search_save_LIBS | ||
9181 | fi | ||
9182 | echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
9183 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
9184 | if test "$ac_cv_search_login" != no; then | ||
9185 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
9186 | cat >>confdefs.h <<\_ACEOF | ||
9187 | #define HAVE_LOGIN 1 | ||
9188 | _ACEOF | ||
9189 | |||
9190 | fi | ||
9191 | |||
9192 | |||
9193 | |||
9194 | |||
9195 | for ac_func in logout updwtmp logwtmp | ||
9196 | do | ||
9197 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9198 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9199 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9200 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9202 | else | ||
9203 | cat >conftest.$ac_ext <<_ACEOF | ||
9204 | /* confdefs.h. */ | ||
9205 | _ACEOF | ||
9206 | cat confdefs.h >>conftest.$ac_ext | ||
9207 | cat >>conftest.$ac_ext <<_ACEOF | ||
9208 | /* end confdefs.h. */ | ||
9209 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9210 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9211 | #define $ac_func innocuous_$ac_func | ||
9212 | |||
9213 | /* System header to define __stub macros and hopefully few prototypes, | ||
9214 | which can conflict with char $ac_func (); below. | ||
9215 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9216 | <limits.h> exists even on freestanding compilers. */ | ||
9217 | |||
9218 | #ifdef __STDC__ | ||
9219 | # include <limits.h> | ||
9220 | #else | ||
9221 | # include <assert.h> | ||
9222 | #endif | ||
9223 | |||
9224 | #undef $ac_func | ||
9225 | |||
9226 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9227 | #ifdef __cplusplus | ||
9228 | extern "C" | ||
9229 | { | ||
9230 | #endif | ||
9231 | /* We use char because int might match the return type of a gcc2 | ||
9232 | builtin and then its argument prototype would still apply. */ | ||
9233 | char $ac_func (); | ||
9234 | /* The GNU C library defines this for functions which it implements | ||
9235 | to always fail with ENOSYS. Some functions are actually named | ||
9236 | something starting with __ and the normal name is an alias. */ | ||
9237 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9238 | choke me | ||
9239 | #else | ||
9240 | char (*f) () = $ac_func; | ||
9241 | #endif | ||
9242 | #ifdef __cplusplus | ||
9243 | } | ||
9244 | #endif | ||
9245 | |||
9246 | int | ||
9247 | main () | ||
9248 | { | ||
9249 | return f != $ac_func; | ||
9250 | ; | ||
9251 | return 0; | ||
9252 | } | ||
9253 | _ACEOF | ||
9254 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9256 | (eval $ac_link) 2>conftest.er1 | ||
9257 | ac_status=$? | ||
9258 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9259 | rm -f conftest.er1 | ||
9260 | cat conftest.err >&5 | ||
9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9262 | (exit $ac_status); } && | ||
9263 | { ac_try='test -z "$ac_c_werror_flag" | ||
9264 | || test ! -s conftest.err' | ||
9265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9266 | (eval $ac_try) 2>&5 | ||
9267 | ac_status=$? | ||
9268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9269 | (exit $ac_status); }; } && | ||
9270 | { ac_try='test -s conftest$ac_exeext' | ||
9271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9272 | (eval $ac_try) 2>&5 | ||
9273 | ac_status=$? | ||
9274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9275 | (exit $ac_status); }; }; then | ||
9276 | eval "$as_ac_var=yes" | ||
9277 | else | ||
9278 | echo "$as_me: failed program was:" >&5 | ||
9279 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9280 | |||
9281 | eval "$as_ac_var=no" | ||
9282 | fi | ||
9283 | rm -f conftest.err conftest.$ac_objext \ | ||
9284 | conftest$ac_exeext conftest.$ac_ext | ||
9285 | fi | ||
9286 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9287 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9288 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9289 | cat >>confdefs.h <<_ACEOF | ||
9290 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9291 | _ACEOF | ||
9292 | |||
9293 | fi | ||
9294 | done | ||
9295 | |||
9296 | |||
9297 | |||
9298 | for ac_func in strftime | ||
9299 | do | ||
9300 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9301 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9302 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9303 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9305 | else | ||
9306 | cat >conftest.$ac_ext <<_ACEOF | ||
9307 | /* confdefs.h. */ | ||
9308 | _ACEOF | ||
9309 | cat confdefs.h >>conftest.$ac_ext | ||
9310 | cat >>conftest.$ac_ext <<_ACEOF | ||
9311 | /* end confdefs.h. */ | ||
9312 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9313 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9314 | #define $ac_func innocuous_$ac_func | ||
9315 | |||
9316 | /* System header to define __stub macros and hopefully few prototypes, | ||
9317 | which can conflict with char $ac_func (); below. | ||
9318 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9319 | <limits.h> exists even on freestanding compilers. */ | ||
9320 | |||
9321 | #ifdef __STDC__ | ||
9322 | # include <limits.h> | ||
9323 | #else | ||
9324 | # include <assert.h> | ||
9325 | #endif | ||
9326 | |||
9327 | #undef $ac_func | ||
9328 | |||
9329 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9330 | #ifdef __cplusplus | ||
9331 | extern "C" | ||
9332 | { | ||
9333 | #endif | ||
9334 | /* We use char because int might match the return type of a gcc2 | ||
9335 | builtin and then its argument prototype would still apply. */ | ||
9336 | char $ac_func (); | ||
9337 | /* The GNU C library defines this for functions which it implements | ||
9338 | to always fail with ENOSYS. Some functions are actually named | ||
9339 | something starting with __ and the normal name is an alias. */ | ||
9340 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9341 | choke me | ||
9342 | #else | ||
9343 | char (*f) () = $ac_func; | ||
9344 | #endif | ||
9345 | #ifdef __cplusplus | ||
9346 | } | ||
9347 | #endif | ||
9348 | |||
9349 | int | ||
9350 | main () | ||
9351 | { | ||
9352 | return f != $ac_func; | ||
9353 | ; | ||
9354 | return 0; | ||
9355 | } | ||
9356 | _ACEOF | ||
9357 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9359 | (eval $ac_link) 2>conftest.er1 | ||
9360 | ac_status=$? | ||
9361 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9362 | rm -f conftest.er1 | ||
9363 | cat conftest.err >&5 | ||
9364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9365 | (exit $ac_status); } && | ||
9366 | { ac_try='test -z "$ac_c_werror_flag" | ||
9367 | || test ! -s conftest.err' | ||
9368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9369 | (eval $ac_try) 2>&5 | ||
9370 | ac_status=$? | ||
9371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9372 | (exit $ac_status); }; } && | ||
9373 | { ac_try='test -s conftest$ac_exeext' | ||
9374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9375 | (eval $ac_try) 2>&5 | ||
9376 | ac_status=$? | ||
9377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9378 | (exit $ac_status); }; }; then | ||
9379 | eval "$as_ac_var=yes" | ||
9380 | else | ||
9381 | echo "$as_me: failed program was:" >&5 | ||
9382 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9383 | |||
9384 | eval "$as_ac_var=no" | ||
9385 | fi | ||
9386 | rm -f conftest.err conftest.$ac_objext \ | ||
9387 | conftest$ac_exeext conftest.$ac_ext | ||
9388 | fi | ||
9389 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9390 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9391 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9392 | cat >>confdefs.h <<_ACEOF | ||
9393 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9394 | _ACEOF | ||
9395 | |||
9396 | else | ||
9397 | # strftime is in -lintl on SCO UNIX. | ||
9398 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
9399 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
9400 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
9401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9402 | else | ||
9403 | ac_check_lib_save_LIBS=$LIBS | ||
9404 | LIBS="-lintl $LIBS" | ||
9405 | cat >conftest.$ac_ext <<_ACEOF | ||
9406 | /* confdefs.h. */ | ||
9407 | _ACEOF | ||
9408 | cat confdefs.h >>conftest.$ac_ext | ||
9409 | cat >>conftest.$ac_ext <<_ACEOF | ||
9410 | /* end confdefs.h. */ | ||
9411 | |||
9412 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9413 | #ifdef __cplusplus | ||
9414 | extern "C" | ||
9415 | #endif | ||
9416 | /* We use char because int might match the return type of a gcc2 | ||
9417 | builtin and then its argument prototype would still apply. */ | ||
9418 | char strftime (); | ||
9419 | int | ||
9420 | main () | ||
9421 | { | ||
9422 | strftime (); | ||
9423 | ; | ||
9424 | return 0; | ||
9425 | } | ||
9426 | _ACEOF | ||
9427 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9429 | (eval $ac_link) 2>conftest.er1 | ||
9430 | ac_status=$? | ||
9431 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9432 | rm -f conftest.er1 | ||
9433 | cat conftest.err >&5 | ||
9434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9435 | (exit $ac_status); } && | ||
9436 | { ac_try='test -z "$ac_c_werror_flag" | ||
9437 | || test ! -s conftest.err' | ||
9438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9439 | (eval $ac_try) 2>&5 | ||
9440 | ac_status=$? | ||
9441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9442 | (exit $ac_status); }; } && | ||
9443 | { ac_try='test -s conftest$ac_exeext' | ||
9444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9445 | (eval $ac_try) 2>&5 | ||
9446 | ac_status=$? | ||
9447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9448 | (exit $ac_status); }; }; then | ||
9449 | ac_cv_lib_intl_strftime=yes | ||
9450 | else | ||
9451 | echo "$as_me: failed program was:" >&5 | ||
9452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9453 | |||
9454 | ac_cv_lib_intl_strftime=no | ||
9455 | fi | ||
9456 | rm -f conftest.err conftest.$ac_objext \ | ||
9457 | conftest$ac_exeext conftest.$ac_ext | ||
9458 | LIBS=$ac_check_lib_save_LIBS | ||
9459 | fi | ||
9460 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
9461 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
9462 | if test $ac_cv_lib_intl_strftime = yes; then | ||
9463 | cat >>confdefs.h <<\_ACEOF | ||
9464 | #define HAVE_STRFTIME 1 | ||
9465 | _ACEOF | ||
9466 | |||
9467 | LIBS="-lintl $LIBS" | ||
9468 | fi | ||
9469 | |||
9470 | fi | ||
9471 | done | ||
9472 | |||
9473 | |||
9474 | # Check for ALTDIRFUNC glob() extension | ||
9475 | echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
9476 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
9477 | cat >conftest.$ac_ext <<_ACEOF | ||
9478 | /* confdefs.h. */ | ||
9479 | _ACEOF | ||
9480 | cat confdefs.h >>conftest.$ac_ext | ||
9481 | cat >>conftest.$ac_ext <<_ACEOF | ||
9482 | /* end confdefs.h. */ | ||
9483 | |||
9484 | #include <glob.h> | ||
9485 | #ifdef GLOB_ALTDIRFUNC | ||
9486 | FOUNDIT | ||
9487 | #endif | ||
9488 | |||
9489 | _ACEOF | ||
9490 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9491 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
9492 | |||
9493 | cat >>confdefs.h <<\_ACEOF | ||
9494 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
9495 | _ACEOF | ||
9496 | |||
9497 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9498 | echo "${ECHO_T}yes" >&6 | ||
9499 | |||
9500 | else | ||
9501 | |||
9502 | echo "$as_me:$LINENO: result: no" >&5 | ||
9503 | echo "${ECHO_T}no" >&6 | ||
9504 | |||
9505 | |||
9506 | fi | ||
9507 | rm -f conftest* | ||
9508 | |||
9509 | |||
9510 | # Check for g.gl_matchc glob() extension | ||
9511 | echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
9512 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
9513 | cat >conftest.$ac_ext <<_ACEOF | ||
9514 | /* confdefs.h. */ | ||
9515 | _ACEOF | ||
9516 | cat confdefs.h >>conftest.$ac_ext | ||
9517 | cat >>conftest.$ac_ext <<_ACEOF | ||
9518 | /* end confdefs.h. */ | ||
9519 | |||
9520 | #include <glob.h> | ||
9521 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
9522 | |||
9523 | _ACEOF | ||
9524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9525 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
9526 | |||
9527 | cat >>confdefs.h <<\_ACEOF | ||
9528 | #define GLOB_HAS_GL_MATCHC 1 | ||
9529 | _ACEOF | ||
9530 | |||
9531 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9532 | echo "${ECHO_T}yes" >&6 | ||
9533 | |||
9534 | else | ||
9535 | |||
9536 | echo "$as_me:$LINENO: result: no" >&5 | ||
9537 | echo "${ECHO_T}no" >&6 | ||
9538 | |||
9539 | |||
9540 | fi | ||
9541 | rm -f conftest* | ||
9542 | |||
9543 | |||
9544 | echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
9545 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
9546 | if test "$cross_compiling" = yes; then | ||
9547 | |||
9548 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
9549 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
9550 | cat >>confdefs.h <<\_ACEOF | ||
9551 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
9552 | _ACEOF | ||
9553 | |||
9554 | |||
9555 | |||
9556 | else | ||
9557 | cat >conftest.$ac_ext <<_ACEOF | ||
9558 | /* confdefs.h. */ | ||
9559 | _ACEOF | ||
9560 | cat confdefs.h >>conftest.$ac_ext | ||
9561 | cat >>conftest.$ac_ext <<_ACEOF | ||
9562 | /* end confdefs.h. */ | ||
9563 | |||
9564 | #include <sys/types.h> | ||
9565 | #include <dirent.h> | ||
9566 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
9567 | |||
9568 | _ACEOF | ||
9569 | rm -f conftest$ac_exeext | ||
9570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9571 | (eval $ac_link) 2>&5 | ||
9572 | ac_status=$? | ||
9573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9574 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9576 | (eval $ac_try) 2>&5 | ||
9577 | ac_status=$? | ||
9578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9579 | (exit $ac_status); }; }; then | ||
9580 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9581 | echo "${ECHO_T}yes" >&6 | ||
9582 | else | ||
9583 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9584 | echo "$as_me: failed program was:" >&5 | ||
9585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9586 | |||
9587 | ( exit $ac_status ) | ||
9588 | |||
9589 | echo "$as_me:$LINENO: result: no" >&5 | ||
9590 | echo "${ECHO_T}no" >&6 | ||
9591 | cat >>confdefs.h <<\_ACEOF | ||
9592 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
9593 | _ACEOF | ||
9594 | |||
9595 | |||
9596 | fi | ||
9597 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9598 | fi | ||
9599 | |||
9600 | echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
9601 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6 | ||
9602 | if test -d "/proc/$$/fd" ; then | ||
9603 | cat >>confdefs.h <<\_ACEOF | ||
9604 | #define HAVE_PROC_PID 1 | ||
9605 | _ACEOF | ||
9606 | |||
9607 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9608 | echo "${ECHO_T}yes" >&6 | ||
9609 | else | ||
9610 | echo "$as_me:$LINENO: result: no" >&5 | ||
9611 | echo "${ECHO_T}no" >&6 | ||
9612 | fi | ||
9613 | |||
9614 | # Check whether user wants S/Key support | ||
9615 | SKEY_MSG="no" | ||
9616 | |||
9617 | # Check whether --with-skey or --without-skey was given. | ||
9618 | if test "${with_skey+set}" = set; then | ||
9619 | withval="$with_skey" | ||
9620 | |||
9621 | if test "x$withval" != "xno" ; then | ||
9622 | |||
9623 | if test "x$withval" != "xyes" ; then | ||
9624 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9625 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
9626 | fi | ||
9627 | |||
9628 | cat >>confdefs.h <<\_ACEOF | ||
9629 | #define SKEY 1 | ||
9630 | _ACEOF | ||
9631 | |||
9632 | LIBS="-lskey $LIBS" | ||
9633 | SKEY_MSG="yes" | ||
9634 | |||
9635 | echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
9636 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
9637 | if test "$cross_compiling" = yes; then | ||
9638 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
9639 | See \`config.log' for more details." >&5 | ||
9640 | echo "$as_me: error: cannot run test program while cross compiling | ||
9641 | See \`config.log' for more details." >&2;} | ||
9642 | { (exit 1); exit 1; }; } | ||
9643 | else | ||
9644 | cat >conftest.$ac_ext <<_ACEOF | ||
9645 | /* confdefs.h. */ | ||
9646 | _ACEOF | ||
9647 | cat confdefs.h >>conftest.$ac_ext | ||
9648 | cat >>conftest.$ac_ext <<_ACEOF | ||
9649 | /* end confdefs.h. */ | ||
9650 | |||
9651 | #include <stdio.h> | ||
9652 | #include <skey.h> | ||
9653 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
9654 | |||
9655 | _ACEOF | ||
9656 | rm -f conftest$ac_exeext | ||
9657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9658 | (eval $ac_link) 2>&5 | ||
9659 | ac_status=$? | ||
9660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9661 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9663 | (eval $ac_try) 2>&5 | ||
9664 | ac_status=$? | ||
9665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9666 | (exit $ac_status); }; }; then | ||
9667 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9668 | echo "${ECHO_T}yes" >&6 | ||
9669 | else | ||
9670 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9671 | echo "$as_me: failed program was:" >&5 | ||
9672 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9673 | |||
9674 | ( exit $ac_status ) | ||
9675 | |||
9676 | echo "$as_me:$LINENO: result: no" >&5 | ||
9677 | echo "${ECHO_T}no" >&6 | ||
9678 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
9679 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
9680 | { (exit 1); exit 1; }; } | ||
9681 | |||
9682 | fi | ||
9683 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9684 | fi | ||
9685 | echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
9686 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6 | ||
9687 | cat >conftest.$ac_ext <<_ACEOF | ||
9688 | /* confdefs.h. */ | ||
9689 | _ACEOF | ||
9690 | cat confdefs.h >>conftest.$ac_ext | ||
9691 | cat >>conftest.$ac_ext <<_ACEOF | ||
9692 | /* end confdefs.h. */ | ||
9693 | #include <stdio.h> | ||
9694 | #include <skey.h> | ||
9695 | int | ||
9696 | main () | ||
9697 | { | ||
9698 | (void)skeychallenge(NULL,"name","",0); | ||
9699 | ; | ||
9700 | return 0; | ||
9701 | } | ||
9702 | _ACEOF | ||
9703 | rm -f conftest.$ac_objext | ||
9704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9705 | (eval $ac_compile) 2>conftest.er1 | ||
9706 | ac_status=$? | ||
9707 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9708 | rm -f conftest.er1 | ||
9709 | cat conftest.err >&5 | ||
9710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9711 | (exit $ac_status); } && | ||
9712 | { ac_try='test -z "$ac_c_werror_flag" | ||
9713 | || test ! -s conftest.err' | ||
9714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9715 | (eval $ac_try) 2>&5 | ||
9716 | ac_status=$? | ||
9717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9718 | (exit $ac_status); }; } && | ||
9719 | { ac_try='test -s conftest.$ac_objext' | ||
9720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9721 | (eval $ac_try) 2>&5 | ||
9722 | ac_status=$? | ||
9723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9724 | (exit $ac_status); }; }; then | ||
9725 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9726 | echo "${ECHO_T}yes" >&6 | ||
9727 | cat >>confdefs.h <<\_ACEOF | ||
9728 | #define SKEYCHALLENGE_4ARG 1 | ||
9729 | _ACEOF | ||
9730 | |||
9731 | else | ||
9732 | echo "$as_me: failed program was:" >&5 | ||
9733 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9734 | |||
9735 | echo "$as_me:$LINENO: result: no" >&5 | ||
9736 | echo "${ECHO_T}no" >&6 | ||
9737 | |||
9738 | fi | ||
9739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9740 | fi | ||
9741 | |||
9742 | |||
9743 | fi; | ||
9744 | |||
9745 | # Check whether user wants TCP wrappers support | ||
9746 | TCPW_MSG="no" | ||
9747 | |||
9748 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
9749 | if test "${with_tcp_wrappers+set}" = set; then | ||
9750 | withval="$with_tcp_wrappers" | ||
9751 | |||
9752 | if test "x$withval" != "xno" ; then | ||
9753 | saved_LIBS="$LIBS" | ||
9754 | saved_LDFLAGS="$LDFLAGS" | ||
9755 | saved_CPPFLAGS="$CPPFLAGS" | ||
9756 | if test -n "${withval}" -a "${withval}" != "yes"; then | ||
9757 | if test -d "${withval}/lib"; then | ||
9758 | if test -n "${need_dash_r}"; then | ||
9759 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
9760 | else | ||
9761 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9762 | fi | ||
9763 | else | ||
9764 | if test -n "${need_dash_r}"; then | ||
9765 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
9766 | else | ||
9767 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
9768 | fi | ||
9769 | fi | ||
9770 | if test -d "${withval}/include"; then | ||
9771 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
9772 | else | ||
9773 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
9774 | fi | ||
9775 | fi | ||
9776 | LIBWRAP="-lwrap" | ||
9777 | LIBS="$LIBWRAP $LIBS" | ||
9778 | echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
9779 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
9780 | cat >conftest.$ac_ext <<_ACEOF | ||
9781 | /* confdefs.h. */ | ||
9782 | _ACEOF | ||
9783 | cat confdefs.h >>conftest.$ac_ext | ||
9784 | cat >>conftest.$ac_ext <<_ACEOF | ||
9785 | /* end confdefs.h. */ | ||
9786 | |||
9787 | #include <sys/types.h> | ||
9788 | #include <sys/socket.h> | ||
9789 | #include <netinet/in.h> | ||
9790 | #include <tcpd.h> | ||
9791 | int deny_severity = 0, allow_severity = 0; | ||
9792 | |||
9793 | int | ||
9794 | main () | ||
9795 | { | ||
9796 | hosts_access(0); | ||
9797 | ; | ||
9798 | return 0; | ||
9799 | } | ||
9800 | _ACEOF | ||
9801 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9803 | (eval $ac_link) 2>conftest.er1 | ||
9804 | ac_status=$? | ||
9805 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9806 | rm -f conftest.er1 | ||
9807 | cat conftest.err >&5 | ||
9808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9809 | (exit $ac_status); } && | ||
9810 | { ac_try='test -z "$ac_c_werror_flag" | ||
9811 | || test ! -s conftest.err' | ||
9812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9813 | (eval $ac_try) 2>&5 | ||
9814 | ac_status=$? | ||
9815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9816 | (exit $ac_status); }; } && | ||
9817 | { ac_try='test -s conftest$ac_exeext' | ||
9818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9819 | (eval $ac_try) 2>&5 | ||
9820 | ac_status=$? | ||
9821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9822 | (exit $ac_status); }; }; then | ||
9823 | |||
9824 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9825 | echo "${ECHO_T}yes" >&6 | ||
9826 | cat >>confdefs.h <<\_ACEOF | ||
9827 | #define LIBWRAP 1 | ||
9828 | _ACEOF | ||
9829 | |||
9830 | |||
9831 | TCPW_MSG="yes" | ||
9832 | |||
9833 | else | ||
9834 | echo "$as_me: failed program was:" >&5 | ||
9835 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9836 | |||
9837 | |||
9838 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
9839 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
9840 | { (exit 1); exit 1; }; } | ||
9841 | |||
9842 | |||
9843 | fi | ||
9844 | rm -f conftest.err conftest.$ac_objext \ | ||
9845 | conftest$ac_exeext conftest.$ac_ext | ||
9846 | LIBS="$saved_LIBS" | ||
9847 | fi | ||
9848 | |||
9849 | |||
9850 | fi; | ||
9851 | |||
9852 | # Check whether user wants libedit support | ||
9853 | LIBEDIT_MSG="no" | ||
9854 | |||
9855 | # Check whether --with-libedit or --without-libedit was given. | ||
9856 | if test "${with_libedit+set}" = set; then | ||
9857 | withval="$with_libedit" | ||
9858 | if test "x$withval" != "xno" ; then | ||
9859 | echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
9860 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6 | ||
9861 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
9862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9863 | else | ||
9864 | ac_check_lib_save_LIBS=$LIBS | ||
9865 | LIBS="-ledit -lcurses | ||
9866 | $LIBS" | ||
9867 | cat >conftest.$ac_ext <<_ACEOF | ||
9868 | /* confdefs.h. */ | ||
9869 | _ACEOF | ||
9870 | cat confdefs.h >>conftest.$ac_ext | ||
9871 | cat >>conftest.$ac_ext <<_ACEOF | ||
9872 | /* end confdefs.h. */ | ||
9873 | |||
9874 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9875 | #ifdef __cplusplus | ||
9876 | extern "C" | ||
9877 | #endif | ||
9878 | /* We use char because int might match the return type of a gcc2 | ||
9879 | builtin and then its argument prototype would still apply. */ | ||
9880 | char el_init (); | ||
9881 | int | ||
9882 | main () | ||
9883 | { | ||
9884 | el_init (); | ||
9885 | ; | ||
9886 | return 0; | ||
9887 | } | ||
9888 | _ACEOF | ||
9889 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9891 | (eval $ac_link) 2>conftest.er1 | ||
9892 | ac_status=$? | ||
9893 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9894 | rm -f conftest.er1 | ||
9895 | cat conftest.err >&5 | ||
9896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9897 | (exit $ac_status); } && | ||
9898 | { ac_try='test -z "$ac_c_werror_flag" | ||
9899 | || test ! -s conftest.err' | ||
9900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9901 | (eval $ac_try) 2>&5 | ||
9902 | ac_status=$? | ||
9903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9904 | (exit $ac_status); }; } && | ||
9905 | { ac_try='test -s conftest$ac_exeext' | ||
9906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9907 | (eval $ac_try) 2>&5 | ||
9908 | ac_status=$? | ||
9909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9910 | (exit $ac_status); }; }; then | ||
9911 | ac_cv_lib_edit_el_init=yes | ||
9912 | else | ||
9913 | echo "$as_me: failed program was:" >&5 | ||
9914 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9915 | |||
9916 | ac_cv_lib_edit_el_init=no | ||
9917 | fi | ||
9918 | rm -f conftest.err conftest.$ac_objext \ | ||
9919 | conftest$ac_exeext conftest.$ac_ext | ||
9920 | LIBS=$ac_check_lib_save_LIBS | ||
9921 | fi | ||
9922 | echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
9923 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6 | ||
9924 | if test $ac_cv_lib_edit_el_init = yes; then | ||
9925 | |||
9926 | cat >>confdefs.h <<\_ACEOF | ||
9927 | #define USE_LIBEDIT | ||
9928 | _ACEOF | ||
9929 | |||
9930 | LIBEDIT="-ledit -lcurses" | ||
9931 | LIBEDIT_MSG="yes" | ||
9932 | |||
9933 | |||
9934 | fi | ||
9935 | |||
9936 | fi | ||
9937 | |||
9938 | fi; | ||
9939 | |||
9940 | AUDIT_MODULE=none | ||
9941 | |||
9942 | # Check whether --with-audit or --without-audit was given. | ||
9943 | if test "${with_audit+set}" = set; then | ||
9944 | withval="$with_audit" | ||
9945 | |||
9946 | echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
9947 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6 | ||
9948 | case "$withval" in | ||
9949 | bsm) | ||
9950 | echo "$as_me:$LINENO: result: bsm" >&5 | ||
9951 | echo "${ECHO_T}bsm" >&6 | ||
9952 | AUDIT_MODULE=bsm | ||
9953 | |||
9954 | for ac_header in bsm/audit.h | ||
9955 | do | ||
9956 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9958 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9959 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
9960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9962 | fi | ||
9963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
9964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
9965 | else | ||
9966 | # Is the header compilable? | ||
9967 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9968 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
9969 | cat >conftest.$ac_ext <<_ACEOF | ||
9970 | /* confdefs.h. */ | ||
9971 | _ACEOF | ||
9972 | cat confdefs.h >>conftest.$ac_ext | ||
9973 | cat >>conftest.$ac_ext <<_ACEOF | ||
9974 | /* end confdefs.h. */ | ||
9975 | $ac_includes_default | ||
9976 | #include <$ac_header> | ||
9977 | _ACEOF | ||
9978 | rm -f conftest.$ac_objext | ||
9979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9980 | (eval $ac_compile) 2>conftest.er1 | ||
9981 | ac_status=$? | ||
9982 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9983 | rm -f conftest.er1 | ||
9984 | cat conftest.err >&5 | ||
9985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9986 | (exit $ac_status); } && | ||
9987 | { ac_try='test -z "$ac_c_werror_flag" | ||
9988 | || test ! -s conftest.err' | ||
9989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9990 | (eval $ac_try) 2>&5 | ||
9991 | ac_status=$? | ||
9992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9993 | (exit $ac_status); }; } && | ||
9994 | { ac_try='test -s conftest.$ac_objext' | ||
9995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9996 | (eval $ac_try) 2>&5 | ||
9997 | ac_status=$? | ||
9998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9999 | (exit $ac_status); }; }; then | ||
10000 | ac_header_compiler=yes | ||
10001 | else | ||
10002 | echo "$as_me: failed program was:" >&5 | ||
10003 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10004 | |||
10005 | ac_header_compiler=no | ||
10006 | fi | ||
10007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10008 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10009 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
10010 | |||
10011 | # Is the header present? | ||
10012 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10013 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
10014 | cat >conftest.$ac_ext <<_ACEOF | ||
10015 | /* confdefs.h. */ | ||
10016 | _ACEOF | ||
10017 | cat confdefs.h >>conftest.$ac_ext | ||
10018 | cat >>conftest.$ac_ext <<_ACEOF | ||
10019 | /* end confdefs.h. */ | ||
10020 | #include <$ac_header> | ||
10021 | _ACEOF | ||
10022 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
10023 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
10024 | ac_status=$? | ||
10025 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10026 | rm -f conftest.er1 | ||
10027 | cat conftest.err >&5 | ||
10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10029 | (exit $ac_status); } >/dev/null; then | ||
10030 | if test -s conftest.err; then | ||
10031 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
10032 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
10033 | else | ||
10034 | ac_cpp_err= | ||
10035 | fi | ||
10036 | else | ||
10037 | ac_cpp_err=yes | ||
10038 | fi | ||
10039 | if test -z "$ac_cpp_err"; then | ||
10040 | ac_header_preproc=yes | ||
10041 | else | ||
10042 | echo "$as_me: failed program was:" >&5 | ||
10043 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10044 | |||
10045 | ac_header_preproc=no | ||
10046 | fi | ||
10047 | rm -f conftest.err conftest.$ac_ext | ||
10048 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10049 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
10050 | |||
10051 | # So? What about this header? | ||
10052 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10053 | yes:no: ) | ||
10054 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10055 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10056 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10057 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10058 | ac_header_preproc=yes | ||
10059 | ;; | ||
10060 | no:yes:* ) | ||
10061 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10062 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10063 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10064 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10065 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10066 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10067 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10068 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10069 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10070 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10071 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10072 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10073 | ( | ||
10074 | cat <<\_ASBOX | ||
10075 | ## ---------------------------------- ## | ||
10076 | ## Report this to the OpenSSH lists. ## | ||
10077 | ## ---------------------------------- ## | ||
10078 | _ASBOX | ||
10079 | ) | | ||
10080 | sed "s/^/$as_me: WARNING: /" >&2 | ||
10081 | ;; | ||
10082 | esac | ||
10083 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10084 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
10085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10087 | else | ||
10088 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10089 | fi | ||
10090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
10091 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
10092 | |||
10093 | fi | ||
10094 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10095 | cat >>confdefs.h <<_ACEOF | ||
10096 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10097 | _ACEOF | ||
10098 | |||
10099 | else | ||
10100 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
10101 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
10102 | { (exit 1); exit 1; }; } | ||
10103 | fi | ||
10104 | |||
10105 | done | ||
10106 | |||
10107 | |||
10108 | echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
10109 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6 | ||
10110 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
10111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10112 | else | ||
10113 | ac_check_lib_save_LIBS=$LIBS | ||
10114 | LIBS="-lbsm $LIBS" | ||
10115 | cat >conftest.$ac_ext <<_ACEOF | ||
10116 | /* confdefs.h. */ | ||
10117 | _ACEOF | ||
10118 | cat confdefs.h >>conftest.$ac_ext | ||
10119 | cat >>conftest.$ac_ext <<_ACEOF | ||
10120 | /* end confdefs.h. */ | ||
10121 | |||
10122 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10123 | #ifdef __cplusplus | ||
10124 | extern "C" | ||
10125 | #endif | ||
10126 | /* We use char because int might match the return type of a gcc2 | ||
10127 | builtin and then its argument prototype would still apply. */ | ||
10128 | char getaudit (); | ||
10129 | int | ||
10130 | main () | ||
10131 | { | ||
10132 | getaudit (); | ||
10133 | ; | ||
10134 | return 0; | ||
10135 | } | ||
10136 | _ACEOF | ||
10137 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10139 | (eval $ac_link) 2>conftest.er1 | ||
10140 | ac_status=$? | ||
10141 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10142 | rm -f conftest.er1 | ||
10143 | cat conftest.err >&5 | ||
10144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10145 | (exit $ac_status); } && | ||
10146 | { ac_try='test -z "$ac_c_werror_flag" | ||
10147 | || test ! -s conftest.err' | ||
10148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10149 | (eval $ac_try) 2>&5 | ||
10150 | ac_status=$? | ||
10151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10152 | (exit $ac_status); }; } && | ||
10153 | { ac_try='test -s conftest$ac_exeext' | ||
10154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10155 | (eval $ac_try) 2>&5 | ||
10156 | ac_status=$? | ||
10157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10158 | (exit $ac_status); }; }; then | ||
10159 | ac_cv_lib_bsm_getaudit=yes | ||
10160 | else | ||
10161 | echo "$as_me: failed program was:" >&5 | ||
10162 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10163 | |||
10164 | ac_cv_lib_bsm_getaudit=no | ||
10165 | fi | ||
10166 | rm -f conftest.err conftest.$ac_objext \ | ||
10167 | conftest$ac_exeext conftest.$ac_ext | ||
10168 | LIBS=$ac_check_lib_save_LIBS | ||
10169 | fi | ||
10170 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
10171 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6 | ||
10172 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
10173 | cat >>confdefs.h <<_ACEOF | ||
10174 | #define HAVE_LIBBSM 1 | ||
10175 | _ACEOF | ||
10176 | |||
10177 | LIBS="-lbsm $LIBS" | ||
10178 | |||
10179 | else | ||
10180 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
10181 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
10182 | { (exit 1); exit 1; }; } | ||
10183 | fi | ||
10184 | |||
10185 | |||
10186 | for ac_func in getaudit | ||
10187 | do | ||
10188 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10189 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10190 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10191 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10193 | else | ||
10194 | cat >conftest.$ac_ext <<_ACEOF | ||
10195 | /* confdefs.h. */ | ||
10196 | _ACEOF | ||
10197 | cat confdefs.h >>conftest.$ac_ext | ||
10198 | cat >>conftest.$ac_ext <<_ACEOF | ||
10199 | /* end confdefs.h. */ | ||
10200 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10201 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10202 | #define $ac_func innocuous_$ac_func | ||
10203 | |||
10204 | /* System header to define __stub macros and hopefully few prototypes, | ||
10205 | which can conflict with char $ac_func (); below. | ||
10206 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10207 | <limits.h> exists even on freestanding compilers. */ | ||
10208 | |||
10209 | #ifdef __STDC__ | ||
10210 | # include <limits.h> | ||
10211 | #else | ||
10212 | # include <assert.h> | ||
10213 | #endif | ||
10214 | |||
10215 | #undef $ac_func | ||
10216 | |||
10217 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10218 | #ifdef __cplusplus | ||
10219 | extern "C" | ||
10220 | { | ||
10221 | #endif | ||
10222 | /* We use char because int might match the return type of a gcc2 | ||
10223 | builtin and then its argument prototype would still apply. */ | ||
10224 | char $ac_func (); | ||
10225 | /* The GNU C library defines this for functions which it implements | ||
10226 | to always fail with ENOSYS. Some functions are actually named | ||
10227 | something starting with __ and the normal name is an alias. */ | ||
10228 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10229 | choke me | ||
10230 | #else | ||
10231 | char (*f) () = $ac_func; | ||
10232 | #endif | ||
10233 | #ifdef __cplusplus | ||
10234 | } | ||
10235 | #endif | ||
10236 | |||
10237 | int | ||
10238 | main () | ||
10239 | { | ||
10240 | return f != $ac_func; | ||
10241 | ; | ||
10242 | return 0; | ||
10243 | } | ||
10244 | _ACEOF | ||
10245 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10247 | (eval $ac_link) 2>conftest.er1 | ||
10248 | ac_status=$? | ||
10249 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10250 | rm -f conftest.er1 | ||
10251 | cat conftest.err >&5 | ||
10252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10253 | (exit $ac_status); } && | ||
10254 | { ac_try='test -z "$ac_c_werror_flag" | ||
10255 | || test ! -s conftest.err' | ||
10256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10257 | (eval $ac_try) 2>&5 | ||
10258 | ac_status=$? | ||
10259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10260 | (exit $ac_status); }; } && | ||
10261 | { ac_try='test -s conftest$ac_exeext' | ||
10262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10263 | (eval $ac_try) 2>&5 | ||
10264 | ac_status=$? | ||
10265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10266 | (exit $ac_status); }; }; then | ||
10267 | eval "$as_ac_var=yes" | ||
10268 | else | ||
10269 | echo "$as_me: failed program was:" >&5 | ||
10270 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10271 | |||
10272 | eval "$as_ac_var=no" | ||
10273 | fi | ||
10274 | rm -f conftest.err conftest.$ac_objext \ | ||
10275 | conftest$ac_exeext conftest.$ac_ext | ||
10276 | fi | ||
10277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10278 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10279 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10280 | cat >>confdefs.h <<_ACEOF | ||
10281 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10282 | _ACEOF | ||
10283 | |||
10284 | else | ||
10285 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
10286 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
10287 | { (exit 1); exit 1; }; } | ||
10288 | fi | ||
10289 | done | ||
10290 | |||
10291 | # These are optional | ||
10292 | |||
10293 | for ac_func in getaudit_addr | ||
10294 | do | ||
10295 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10296 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10297 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10298 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10300 | else | ||
10301 | cat >conftest.$ac_ext <<_ACEOF | ||
10302 | /* confdefs.h. */ | ||
10303 | _ACEOF | ||
10304 | cat confdefs.h >>conftest.$ac_ext | ||
10305 | cat >>conftest.$ac_ext <<_ACEOF | ||
10306 | /* end confdefs.h. */ | ||
10307 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10308 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10309 | #define $ac_func innocuous_$ac_func | ||
10310 | |||
10311 | /* System header to define __stub macros and hopefully few prototypes, | ||
10312 | which can conflict with char $ac_func (); below. | ||
10313 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10314 | <limits.h> exists even on freestanding compilers. */ | ||
10315 | |||
10316 | #ifdef __STDC__ | ||
10317 | # include <limits.h> | ||
10318 | #else | ||
10319 | # include <assert.h> | ||
10320 | #endif | ||
10321 | |||
10322 | #undef $ac_func | ||
10323 | |||
10324 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10325 | #ifdef __cplusplus | ||
10326 | extern "C" | ||
10327 | { | ||
10328 | #endif | ||
10329 | /* We use char because int might match the return type of a gcc2 | ||
10330 | builtin and then its argument prototype would still apply. */ | ||
10331 | char $ac_func (); | ||
10332 | /* The GNU C library defines this for functions which it implements | ||
10333 | to always fail with ENOSYS. Some functions are actually named | ||
10334 | something starting with __ and the normal name is an alias. */ | ||
10335 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10336 | choke me | ||
10337 | #else | ||
10338 | char (*f) () = $ac_func; | ||
10339 | #endif | ||
10340 | #ifdef __cplusplus | ||
10341 | } | ||
10342 | #endif | ||
10343 | |||
10344 | int | ||
10345 | main () | ||
10346 | { | ||
10347 | return f != $ac_func; | ||
10348 | ; | ||
10349 | return 0; | ||
10350 | } | ||
10351 | _ACEOF | ||
10352 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10354 | (eval $ac_link) 2>conftest.er1 | ||
10355 | ac_status=$? | ||
10356 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10357 | rm -f conftest.er1 | ||
10358 | cat conftest.err >&5 | ||
10359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10360 | (exit $ac_status); } && | ||
10361 | { ac_try='test -z "$ac_c_werror_flag" | ||
10362 | || test ! -s conftest.err' | ||
10363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10364 | (eval $ac_try) 2>&5 | ||
10365 | ac_status=$? | ||
10366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10367 | (exit $ac_status); }; } && | ||
10368 | { ac_try='test -s conftest$ac_exeext' | ||
10369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10370 | (eval $ac_try) 2>&5 | ||
10371 | ac_status=$? | ||
10372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10373 | (exit $ac_status); }; }; then | ||
10374 | eval "$as_ac_var=yes" | ||
10375 | else | ||
10376 | echo "$as_me: failed program was:" >&5 | ||
10377 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10378 | |||
10379 | eval "$as_ac_var=no" | ||
10380 | fi | ||
10381 | rm -f conftest.err conftest.$ac_objext \ | ||
10382 | conftest$ac_exeext conftest.$ac_ext | ||
10383 | fi | ||
10384 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10385 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10386 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10387 | cat >>confdefs.h <<_ACEOF | ||
10388 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10389 | _ACEOF | ||
10390 | |||
10391 | fi | ||
10392 | done | ||
10393 | |||
10394 | |||
10395 | cat >>confdefs.h <<\_ACEOF | ||
10396 | #define USE_BSM_AUDIT | ||
10397 | _ACEOF | ||
10398 | |||
10399 | ;; | ||
10400 | debug) | ||
10401 | AUDIT_MODULE=debug | ||
10402 | echo "$as_me:$LINENO: result: debug" >&5 | ||
10403 | echo "${ECHO_T}debug" >&6 | ||
10404 | |||
10405 | cat >>confdefs.h <<\_ACEOF | ||
10406 | #define SSH_AUDIT_EVENTS | ||
10407 | _ACEOF | ||
10408 | |||
10409 | ;; | ||
10410 | *) | ||
10411 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
10412 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
10413 | { (exit 1); exit 1; }; } | ||
10414 | ;; | ||
10415 | esac | ||
10416 | |||
10417 | fi; | ||
10418 | |||
10419 | |||
10420 | |||
10421 | |||
10422 | |||
10423 | |||
10424 | |||
10425 | |||
10426 | |||
10427 | |||
10428 | |||
10429 | |||
10430 | |||
10431 | |||
10432 | |||
10433 | |||
10434 | |||
10435 | |||
10436 | |||
10437 | |||
10438 | |||
10439 | |||
10440 | |||
10441 | |||
10442 | |||
10443 | |||
10444 | |||
10445 | |||
10446 | |||
10447 | |||
10448 | |||
10449 | |||
10450 | |||
10451 | |||
10452 | |||
10453 | |||
10454 | |||
10455 | |||
10456 | |||
10457 | |||
10458 | |||
10459 | |||
10460 | |||
10461 | |||
10462 | |||
10463 | |||
10464 | |||
10465 | |||
10466 | |||
10467 | |||
10468 | |||
10469 | |||
10470 | |||
10471 | |||
10472 | |||
10473 | |||
10474 | |||
10475 | |||
10476 | |||
10477 | |||
10478 | |||
10479 | |||
10480 | |||
10481 | |||
10482 | |||
10483 | |||
10484 | |||
10485 | |||
10486 | |||
10487 | |||
10488 | |||
10489 | |||
10490 | |||
10491 | |||
10492 | |||
10493 | |||
10494 | |||
10495 | |||
10496 | |||
10497 | for ac_func in \ | ||
10498 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton bcopy \ | ||
10499 | bindresvport_sa clock closefrom dirfd fchdir fchmod fchown \ | ||
10500 | freeaddrinfo futimes getaddrinfo getcwd getgrouplist getnameinfo \ | ||
10501 | getopt getpeereid _getpty getrlimit getttyent glob inet_aton \ | ||
10502 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
10503 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ | ||
10504 | pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \ | ||
10505 | setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ | ||
10506 | setproctitle setregid setreuid setrlimit \ | ||
10507 | setsid setvbuf sigaction sigvec snprintf socketpair strerror \ | ||
10508 | strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \ | ||
10509 | truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \ | ||
10510 | |||
10511 | do | ||
10512 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10513 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10514 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10515 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10517 | else | ||
10518 | cat >conftest.$ac_ext <<_ACEOF | ||
10519 | /* confdefs.h. */ | ||
10520 | _ACEOF | ||
10521 | cat confdefs.h >>conftest.$ac_ext | ||
10522 | cat >>conftest.$ac_ext <<_ACEOF | ||
10523 | /* end confdefs.h. */ | ||
10524 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10525 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10526 | #define $ac_func innocuous_$ac_func | ||
10527 | |||
10528 | /* System header to define __stub macros and hopefully few prototypes, | ||
10529 | which can conflict with char $ac_func (); below. | ||
10530 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10531 | <limits.h> exists even on freestanding compilers. */ | ||
10532 | |||
10533 | #ifdef __STDC__ | ||
10534 | # include <limits.h> | ||
10535 | #else | ||
10536 | # include <assert.h> | ||
10537 | #endif | ||
10538 | |||
10539 | #undef $ac_func | ||
10540 | |||
10541 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10542 | #ifdef __cplusplus | ||
10543 | extern "C" | ||
10544 | { | ||
10545 | #endif | ||
10546 | /* We use char because int might match the return type of a gcc2 | ||
10547 | builtin and then its argument prototype would still apply. */ | ||
10548 | char $ac_func (); | ||
10549 | /* The GNU C library defines this for functions which it implements | ||
10550 | to always fail with ENOSYS. Some functions are actually named | ||
10551 | something starting with __ and the normal name is an alias. */ | ||
10552 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10553 | choke me | ||
10554 | #else | ||
10555 | char (*f) () = $ac_func; | ||
10556 | #endif | ||
10557 | #ifdef __cplusplus | ||
10558 | } | ||
10559 | #endif | ||
10560 | |||
10561 | int | ||
10562 | main () | ||
10563 | { | ||
10564 | return f != $ac_func; | ||
10565 | ; | ||
10566 | return 0; | ||
10567 | } | ||
10568 | _ACEOF | ||
10569 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10571 | (eval $ac_link) 2>conftest.er1 | ||
10572 | ac_status=$? | ||
10573 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10574 | rm -f conftest.er1 | ||
10575 | cat conftest.err >&5 | ||
10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10577 | (exit $ac_status); } && | ||
10578 | { ac_try='test -z "$ac_c_werror_flag" | ||
10579 | || test ! -s conftest.err' | ||
10580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10581 | (eval $ac_try) 2>&5 | ||
10582 | ac_status=$? | ||
10583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10584 | (exit $ac_status); }; } && | ||
10585 | { ac_try='test -s conftest$ac_exeext' | ||
10586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10587 | (eval $ac_try) 2>&5 | ||
10588 | ac_status=$? | ||
10589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10590 | (exit $ac_status); }; }; then | ||
10591 | eval "$as_ac_var=yes" | ||
10592 | else | ||
10593 | echo "$as_me: failed program was:" >&5 | ||
10594 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10595 | |||
10596 | eval "$as_ac_var=no" | ||
10597 | fi | ||
10598 | rm -f conftest.err conftest.$ac_objext \ | ||
10599 | conftest$ac_exeext conftest.$ac_ext | ||
10600 | fi | ||
10601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10602 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10603 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10604 | cat >>confdefs.h <<_ACEOF | ||
10605 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10606 | _ACEOF | ||
10607 | |||
10608 | fi | ||
10609 | done | ||
10610 | |||
10611 | |||
10612 | # IRIX has a const char return value for gai_strerror() | ||
10613 | |||
10614 | for ac_func in gai_strerror | ||
10615 | do | ||
10616 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10617 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10618 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10619 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10621 | else | ||
10622 | cat >conftest.$ac_ext <<_ACEOF | ||
10623 | /* confdefs.h. */ | ||
10624 | _ACEOF | ||
10625 | cat confdefs.h >>conftest.$ac_ext | ||
10626 | cat >>conftest.$ac_ext <<_ACEOF | ||
10627 | /* end confdefs.h. */ | ||
10628 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10629 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10630 | #define $ac_func innocuous_$ac_func | ||
10631 | |||
10632 | /* System header to define __stub macros and hopefully few prototypes, | ||
10633 | which can conflict with char $ac_func (); below. | ||
10634 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10635 | <limits.h> exists even on freestanding compilers. */ | ||
10636 | |||
10637 | #ifdef __STDC__ | ||
10638 | # include <limits.h> | ||
10639 | #else | ||
10640 | # include <assert.h> | ||
10641 | #endif | ||
10642 | |||
10643 | #undef $ac_func | ||
10644 | |||
10645 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10646 | #ifdef __cplusplus | ||
10647 | extern "C" | ||
10648 | { | ||
10649 | #endif | ||
10650 | /* We use char because int might match the return type of a gcc2 | ||
10651 | builtin and then its argument prototype would still apply. */ | ||
10652 | char $ac_func (); | ||
10653 | /* The GNU C library defines this for functions which it implements | ||
10654 | to always fail with ENOSYS. Some functions are actually named | ||
10655 | something starting with __ and the normal name is an alias. */ | ||
10656 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10657 | choke me | ||
10658 | #else | ||
10659 | char (*f) () = $ac_func; | ||
10660 | #endif | ||
10661 | #ifdef __cplusplus | ||
10662 | } | ||
10663 | #endif | ||
10664 | |||
10665 | int | ||
10666 | main () | ||
10667 | { | ||
10668 | return f != $ac_func; | ||
10669 | ; | ||
10670 | return 0; | ||
10671 | } | ||
10672 | _ACEOF | ||
10673 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10675 | (eval $ac_link) 2>conftest.er1 | ||
10676 | ac_status=$? | ||
10677 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10678 | rm -f conftest.er1 | ||
10679 | cat conftest.err >&5 | ||
10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10681 | (exit $ac_status); } && | ||
10682 | { ac_try='test -z "$ac_c_werror_flag" | ||
10683 | || test ! -s conftest.err' | ||
10684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10685 | (eval $ac_try) 2>&5 | ||
10686 | ac_status=$? | ||
10687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10688 | (exit $ac_status); }; } && | ||
10689 | { ac_try='test -s conftest$ac_exeext' | ||
10690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10691 | (eval $ac_try) 2>&5 | ||
10692 | ac_status=$? | ||
10693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10694 | (exit $ac_status); }; }; then | ||
10695 | eval "$as_ac_var=yes" | ||
10696 | else | ||
10697 | echo "$as_me: failed program was:" >&5 | ||
10698 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10699 | |||
10700 | eval "$as_ac_var=no" | ||
10701 | fi | ||
10702 | rm -f conftest.err conftest.$ac_objext \ | ||
10703 | conftest$ac_exeext conftest.$ac_ext | ||
10704 | fi | ||
10705 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10706 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10707 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10708 | cat >>confdefs.h <<_ACEOF | ||
10709 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10710 | _ACEOF | ||
10711 | |||
10712 | cat >>confdefs.h <<\_ACEOF | ||
10713 | #define HAVE_GAI_STRERROR 1 | ||
10714 | _ACEOF | ||
10715 | |||
10716 | cat >conftest.$ac_ext <<_ACEOF | ||
10717 | /* confdefs.h. */ | ||
10718 | _ACEOF | ||
10719 | cat confdefs.h >>conftest.$ac_ext | ||
10720 | cat >>conftest.$ac_ext <<_ACEOF | ||
10721 | /* end confdefs.h. */ | ||
10722 | |||
10723 | #include <sys/types.h> | ||
10724 | #include <sys/socket.h> | ||
10725 | #include <netdb.h> | ||
10726 | |||
10727 | const char *gai_strerror(int); | ||
10728 | int | ||
10729 | main () | ||
10730 | { | ||
10731 | |||
10732 | char *str; | ||
10733 | |||
10734 | str = gai_strerror(0); | ||
10735 | ; | ||
10736 | return 0; | ||
10737 | } | ||
10738 | _ACEOF | ||
10739 | rm -f conftest.$ac_objext | ||
10740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10741 | (eval $ac_compile) 2>conftest.er1 | ||
10742 | ac_status=$? | ||
10743 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10744 | rm -f conftest.er1 | ||
10745 | cat conftest.err >&5 | ||
10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10747 | (exit $ac_status); } && | ||
10748 | { ac_try='test -z "$ac_c_werror_flag" | ||
10749 | || test ! -s conftest.err' | ||
10750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10751 | (eval $ac_try) 2>&5 | ||
10752 | ac_status=$? | ||
10753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10754 | (exit $ac_status); }; } && | ||
10755 | { ac_try='test -s conftest.$ac_objext' | ||
10756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10757 | (eval $ac_try) 2>&5 | ||
10758 | ac_status=$? | ||
10759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10760 | (exit $ac_status); }; }; then | ||
10761 | |||
10762 | |||
10763 | cat >>confdefs.h <<\_ACEOF | ||
10764 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
10765 | _ACEOF | ||
10766 | |||
10767 | else | ||
10768 | echo "$as_me: failed program was:" >&5 | ||
10769 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10770 | |||
10771 | fi | ||
10772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10773 | fi | ||
10774 | done | ||
10775 | |||
10776 | |||
10777 | echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
10778 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
10779 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
10780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10781 | else | ||
10782 | ac_func_search_save_LIBS=$LIBS | ||
10783 | ac_cv_search_nanosleep=no | ||
10784 | cat >conftest.$ac_ext <<_ACEOF | ||
10785 | /* confdefs.h. */ | ||
10786 | _ACEOF | ||
10787 | cat confdefs.h >>conftest.$ac_ext | ||
10788 | cat >>conftest.$ac_ext <<_ACEOF | ||
10789 | /* end confdefs.h. */ | ||
10790 | |||
10791 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10792 | #ifdef __cplusplus | ||
10793 | extern "C" | ||
10794 | #endif | ||
10795 | /* We use char because int might match the return type of a gcc2 | ||
10796 | builtin and then its argument prototype would still apply. */ | ||
10797 | char nanosleep (); | ||
10798 | int | ||
10799 | main () | ||
10800 | { | ||
10801 | nanosleep (); | ||
10802 | ; | ||
10803 | return 0; | ||
10804 | } | ||
10805 | _ACEOF | ||
10806 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10808 | (eval $ac_link) 2>conftest.er1 | ||
10809 | ac_status=$? | ||
10810 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10811 | rm -f conftest.er1 | ||
10812 | cat conftest.err >&5 | ||
10813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10814 | (exit $ac_status); } && | ||
10815 | { ac_try='test -z "$ac_c_werror_flag" | ||
10816 | || test ! -s conftest.err' | ||
10817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10818 | (eval $ac_try) 2>&5 | ||
10819 | ac_status=$? | ||
10820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10821 | (exit $ac_status); }; } && | ||
10822 | { ac_try='test -s conftest$ac_exeext' | ||
10823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10824 | (eval $ac_try) 2>&5 | ||
10825 | ac_status=$? | ||
10826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10827 | (exit $ac_status); }; }; then | ||
10828 | ac_cv_search_nanosleep="none required" | ||
10829 | else | ||
10830 | echo "$as_me: failed program was:" >&5 | ||
10831 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10832 | |||
10833 | fi | ||
10834 | rm -f conftest.err conftest.$ac_objext \ | ||
10835 | conftest$ac_exeext conftest.$ac_ext | ||
10836 | if test "$ac_cv_search_nanosleep" = no; then | ||
10837 | for ac_lib in rt posix4; do | ||
10838 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10839 | cat >conftest.$ac_ext <<_ACEOF | ||
10840 | /* confdefs.h. */ | ||
10841 | _ACEOF | ||
10842 | cat confdefs.h >>conftest.$ac_ext | ||
10843 | cat >>conftest.$ac_ext <<_ACEOF | ||
10844 | /* end confdefs.h. */ | ||
10845 | |||
10846 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10847 | #ifdef __cplusplus | ||
10848 | extern "C" | ||
10849 | #endif | ||
10850 | /* We use char because int might match the return type of a gcc2 | ||
10851 | builtin and then its argument prototype would still apply. */ | ||
10852 | char nanosleep (); | ||
10853 | int | ||
10854 | main () | ||
10855 | { | ||
10856 | nanosleep (); | ||
10857 | ; | ||
10858 | return 0; | ||
10859 | } | ||
10860 | _ACEOF | ||
10861 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10863 | (eval $ac_link) 2>conftest.er1 | ||
10864 | ac_status=$? | ||
10865 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10866 | rm -f conftest.er1 | ||
10867 | cat conftest.err >&5 | ||
10868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10869 | (exit $ac_status); } && | ||
10870 | { ac_try='test -z "$ac_c_werror_flag" | ||
10871 | || test ! -s conftest.err' | ||
10872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10873 | (eval $ac_try) 2>&5 | ||
10874 | ac_status=$? | ||
10875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10876 | (exit $ac_status); }; } && | ||
10877 | { ac_try='test -s conftest$ac_exeext' | ||
10878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10879 | (eval $ac_try) 2>&5 | ||
10880 | ac_status=$? | ||
10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10882 | (exit $ac_status); }; }; then | ||
10883 | ac_cv_search_nanosleep="-l$ac_lib" | ||
10884 | break | ||
10885 | else | ||
10886 | echo "$as_me: failed program was:" >&5 | ||
10887 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10888 | |||
10889 | fi | ||
10890 | rm -f conftest.err conftest.$ac_objext \ | ||
10891 | conftest$ac_exeext conftest.$ac_ext | ||
10892 | done | ||
10893 | fi | ||
10894 | LIBS=$ac_func_search_save_LIBS | ||
10895 | fi | ||
10896 | echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
10897 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
10898 | if test "$ac_cv_search_nanosleep" != no; then | ||
10899 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
10900 | cat >>confdefs.h <<\_ACEOF | ||
10901 | #define HAVE_NANOSLEEP 1 | ||
10902 | _ACEOF | ||
10903 | |||
10904 | fi | ||
10905 | |||
10906 | |||
10907 | echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
10908 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
10909 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
10910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10911 | else | ||
10912 | cat >conftest.$ac_ext <<_ACEOF | ||
10913 | /* confdefs.h. */ | ||
10914 | _ACEOF | ||
10915 | cat confdefs.h >>conftest.$ac_ext | ||
10916 | cat >>conftest.$ac_ext <<_ACEOF | ||
10917 | /* end confdefs.h. */ | ||
10918 | $ac_includes_default | ||
10919 | int | ||
10920 | main () | ||
10921 | { | ||
10922 | #ifndef strsep | ||
10923 | char *p = (char *) strsep; | ||
10924 | #endif | ||
10925 | |||
10926 | ; | ||
10927 | return 0; | ||
10928 | } | ||
10929 | _ACEOF | ||
10930 | rm -f conftest.$ac_objext | ||
10931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10932 | (eval $ac_compile) 2>conftest.er1 | ||
10933 | ac_status=$? | ||
10934 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10935 | rm -f conftest.er1 | ||
10936 | cat conftest.err >&5 | ||
10937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10938 | (exit $ac_status); } && | ||
10939 | { ac_try='test -z "$ac_c_werror_flag" | ||
10940 | || test ! -s conftest.err' | ||
10941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10942 | (eval $ac_try) 2>&5 | ||
10943 | ac_status=$? | ||
10944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10945 | (exit $ac_status); }; } && | ||
10946 | { ac_try='test -s conftest.$ac_objext' | ||
10947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10948 | (eval $ac_try) 2>&5 | ||
10949 | ac_status=$? | ||
10950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10951 | (exit $ac_status); }; }; then | ||
10952 | ac_cv_have_decl_strsep=yes | ||
10953 | else | ||
10954 | echo "$as_me: failed program was:" >&5 | ||
10955 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10956 | |||
10957 | ac_cv_have_decl_strsep=no | ||
10958 | fi | ||
10959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10960 | fi | ||
10961 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
10962 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
10963 | if test $ac_cv_have_decl_strsep = yes; then | ||
10964 | |||
10965 | for ac_func in strsep | ||
10966 | do | ||
10967 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10968 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10969 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10970 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10972 | else | ||
10973 | cat >conftest.$ac_ext <<_ACEOF | ||
10974 | /* confdefs.h. */ | ||
10975 | _ACEOF | ||
10976 | cat confdefs.h >>conftest.$ac_ext | ||
10977 | cat >>conftest.$ac_ext <<_ACEOF | ||
10978 | /* end confdefs.h. */ | ||
10979 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10980 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10981 | #define $ac_func innocuous_$ac_func | ||
10982 | |||
10983 | /* System header to define __stub macros and hopefully few prototypes, | ||
10984 | which can conflict with char $ac_func (); below. | ||
10985 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10986 | <limits.h> exists even on freestanding compilers. */ | ||
10987 | |||
10988 | #ifdef __STDC__ | ||
10989 | # include <limits.h> | ||
10990 | #else | ||
10991 | # include <assert.h> | ||
10992 | #endif | ||
10993 | |||
10994 | #undef $ac_func | ||
10995 | |||
10996 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10997 | #ifdef __cplusplus | ||
10998 | extern "C" | ||
10999 | { | ||
11000 | #endif | ||
11001 | /* We use char because int might match the return type of a gcc2 | ||
11002 | builtin and then its argument prototype would still apply. */ | ||
11003 | char $ac_func (); | ||
11004 | /* The GNU C library defines this for functions which it implements | ||
11005 | to always fail with ENOSYS. Some functions are actually named | ||
11006 | something starting with __ and the normal name is an alias. */ | ||
11007 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11008 | choke me | ||
11009 | #else | ||
11010 | char (*f) () = $ac_func; | ||
11011 | #endif | ||
11012 | #ifdef __cplusplus | ||
11013 | } | ||
11014 | #endif | ||
11015 | |||
11016 | int | ||
11017 | main () | ||
11018 | { | ||
11019 | return f != $ac_func; | ||
11020 | ; | ||
11021 | return 0; | ||
11022 | } | ||
11023 | _ACEOF | ||
11024 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11026 | (eval $ac_link) 2>conftest.er1 | ||
11027 | ac_status=$? | ||
11028 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11029 | rm -f conftest.er1 | ||
11030 | cat conftest.err >&5 | ||
11031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11032 | (exit $ac_status); } && | ||
11033 | { ac_try='test -z "$ac_c_werror_flag" | ||
11034 | || test ! -s conftest.err' | ||
11035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11036 | (eval $ac_try) 2>&5 | ||
11037 | ac_status=$? | ||
11038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11039 | (exit $ac_status); }; } && | ||
11040 | { ac_try='test -s conftest$ac_exeext' | ||
11041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11042 | (eval $ac_try) 2>&5 | ||
11043 | ac_status=$? | ||
11044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11045 | (exit $ac_status); }; }; then | ||
11046 | eval "$as_ac_var=yes" | ||
11047 | else | ||
11048 | echo "$as_me: failed program was:" >&5 | ||
11049 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11050 | |||
11051 | eval "$as_ac_var=no" | ||
11052 | fi | ||
11053 | rm -f conftest.err conftest.$ac_objext \ | ||
11054 | conftest$ac_exeext conftest.$ac_ext | ||
11055 | fi | ||
11056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11057 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11058 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11059 | cat >>confdefs.h <<_ACEOF | ||
11060 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11061 | _ACEOF | ||
11062 | |||
11063 | fi | ||
11064 | done | ||
11065 | |||
11066 | fi | ||
11067 | |||
11068 | echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
11069 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6 | ||
11070 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
11071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11072 | else | ||
11073 | cat >conftest.$ac_ext <<_ACEOF | ||
11074 | /* confdefs.h. */ | ||
11075 | _ACEOF | ||
11076 | cat confdefs.h >>conftest.$ac_ext | ||
11077 | cat >>conftest.$ac_ext <<_ACEOF | ||
11078 | /* end confdefs.h. */ | ||
11079 | $ac_includes_default | ||
11080 | int | ||
11081 | main () | ||
11082 | { | ||
11083 | #ifndef getrusage | ||
11084 | char *p = (char *) getrusage; | ||
11085 | #endif | ||
11086 | |||
11087 | ; | ||
11088 | return 0; | ||
11089 | } | ||
11090 | _ACEOF | ||
11091 | rm -f conftest.$ac_objext | ||
11092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11093 | (eval $ac_compile) 2>conftest.er1 | ||
11094 | ac_status=$? | ||
11095 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11096 | rm -f conftest.er1 | ||
11097 | cat conftest.err >&5 | ||
11098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11099 | (exit $ac_status); } && | ||
11100 | { ac_try='test -z "$ac_c_werror_flag" | ||
11101 | || test ! -s conftest.err' | ||
11102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11103 | (eval $ac_try) 2>&5 | ||
11104 | ac_status=$? | ||
11105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11106 | (exit $ac_status); }; } && | ||
11107 | { ac_try='test -s conftest.$ac_objext' | ||
11108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11109 | (eval $ac_try) 2>&5 | ||
11110 | ac_status=$? | ||
11111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11112 | (exit $ac_status); }; }; then | ||
11113 | ac_cv_have_decl_getrusage=yes | ||
11114 | else | ||
11115 | echo "$as_me: failed program was:" >&5 | ||
11116 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11117 | |||
11118 | ac_cv_have_decl_getrusage=no | ||
11119 | fi | ||
11120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11121 | fi | ||
11122 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
11123 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6 | ||
11124 | if test $ac_cv_have_decl_getrusage = yes; then | ||
11125 | |||
11126 | for ac_func in getrusage | ||
11127 | do | ||
11128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11129 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11131 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11133 | else | ||
11134 | cat >conftest.$ac_ext <<_ACEOF | ||
11135 | /* confdefs.h. */ | ||
11136 | _ACEOF | ||
11137 | cat confdefs.h >>conftest.$ac_ext | ||
11138 | cat >>conftest.$ac_ext <<_ACEOF | ||
11139 | /* end confdefs.h. */ | ||
11140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11142 | #define $ac_func innocuous_$ac_func | ||
11143 | |||
11144 | /* System header to define __stub macros and hopefully few prototypes, | ||
11145 | which can conflict with char $ac_func (); below. | ||
11146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11147 | <limits.h> exists even on freestanding compilers. */ | ||
11148 | |||
11149 | #ifdef __STDC__ | ||
11150 | # include <limits.h> | ||
11151 | #else | ||
11152 | # include <assert.h> | ||
11153 | #endif | ||
11154 | |||
11155 | #undef $ac_func | ||
11156 | |||
11157 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11158 | #ifdef __cplusplus | ||
11159 | extern "C" | ||
11160 | { | ||
11161 | #endif | ||
11162 | /* We use char because int might match the return type of a gcc2 | ||
11163 | builtin and then its argument prototype would still apply. */ | ||
11164 | char $ac_func (); | ||
11165 | /* The GNU C library defines this for functions which it implements | ||
11166 | to always fail with ENOSYS. Some functions are actually named | ||
11167 | something starting with __ and the normal name is an alias. */ | ||
11168 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11169 | choke me | ||
11170 | #else | ||
11171 | char (*f) () = $ac_func; | ||
11172 | #endif | ||
11173 | #ifdef __cplusplus | ||
11174 | } | ||
11175 | #endif | ||
11176 | |||
11177 | int | ||
11178 | main () | ||
11179 | { | ||
11180 | return f != $ac_func; | ||
11181 | ; | ||
11182 | return 0; | ||
11183 | } | ||
11184 | _ACEOF | ||
11185 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11187 | (eval $ac_link) 2>conftest.er1 | ||
11188 | ac_status=$? | ||
11189 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11190 | rm -f conftest.er1 | ||
11191 | cat conftest.err >&5 | ||
11192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11193 | (exit $ac_status); } && | ||
11194 | { ac_try='test -z "$ac_c_werror_flag" | ||
11195 | || test ! -s conftest.err' | ||
11196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11197 | (eval $ac_try) 2>&5 | ||
11198 | ac_status=$? | ||
11199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11200 | (exit $ac_status); }; } && | ||
11201 | { ac_try='test -s conftest$ac_exeext' | ||
11202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11203 | (eval $ac_try) 2>&5 | ||
11204 | ac_status=$? | ||
11205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11206 | (exit $ac_status); }; }; then | ||
11207 | eval "$as_ac_var=yes" | ||
11208 | else | ||
11209 | echo "$as_me: failed program was:" >&5 | ||
11210 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11211 | |||
11212 | eval "$as_ac_var=no" | ||
11213 | fi | ||
11214 | rm -f conftest.err conftest.$ac_objext \ | ||
11215 | conftest$ac_exeext conftest.$ac_ext | ||
11216 | fi | ||
11217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11218 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11219 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11220 | cat >>confdefs.h <<_ACEOF | ||
11221 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11222 | _ACEOF | ||
11223 | |||
11224 | fi | ||
11225 | done | ||
11226 | |||
11227 | fi | ||
11228 | |||
11229 | |||
11230 | echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
11231 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6 | ||
11232 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
11233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11234 | else | ||
11235 | cat >conftest.$ac_ext <<_ACEOF | ||
11236 | /* confdefs.h. */ | ||
11237 | _ACEOF | ||
11238 | cat confdefs.h >>conftest.$ac_ext | ||
11239 | cat >>conftest.$ac_ext <<_ACEOF | ||
11240 | /* end confdefs.h. */ | ||
11241 | #include <termios.h> | ||
11242 | |||
11243 | |||
11244 | int | ||
11245 | main () | ||
11246 | { | ||
11247 | #ifndef tcsendbreak | ||
11248 | char *p = (char *) tcsendbreak; | ||
11249 | #endif | ||
11250 | |||
11251 | ; | ||
11252 | return 0; | ||
11253 | } | ||
11254 | _ACEOF | ||
11255 | rm -f conftest.$ac_objext | ||
11256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11257 | (eval $ac_compile) 2>conftest.er1 | ||
11258 | ac_status=$? | ||
11259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11260 | rm -f conftest.er1 | ||
11261 | cat conftest.err >&5 | ||
11262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11263 | (exit $ac_status); } && | ||
11264 | { ac_try='test -z "$ac_c_werror_flag" | ||
11265 | || test ! -s conftest.err' | ||
11266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11267 | (eval $ac_try) 2>&5 | ||
11268 | ac_status=$? | ||
11269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11270 | (exit $ac_status); }; } && | ||
11271 | { ac_try='test -s conftest.$ac_objext' | ||
11272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11273 | (eval $ac_try) 2>&5 | ||
11274 | ac_status=$? | ||
11275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11276 | (exit $ac_status); }; }; then | ||
11277 | ac_cv_have_decl_tcsendbreak=yes | ||
11278 | else | ||
11279 | echo "$as_me: failed program was:" >&5 | ||
11280 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11281 | |||
11282 | ac_cv_have_decl_tcsendbreak=no | ||
11283 | fi | ||
11284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11285 | fi | ||
11286 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
11287 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6 | ||
11288 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
11289 | cat >>confdefs.h <<\_ACEOF | ||
11290 | #define HAVE_TCSENDBREAK 1 | ||
11291 | _ACEOF | ||
11292 | |||
11293 | else | ||
11294 | |||
11295 | for ac_func in tcsendbreak | ||
11296 | do | ||
11297 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11298 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11299 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11300 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11302 | else | ||
11303 | cat >conftest.$ac_ext <<_ACEOF | ||
11304 | /* confdefs.h. */ | ||
11305 | _ACEOF | ||
11306 | cat confdefs.h >>conftest.$ac_ext | ||
11307 | cat >>conftest.$ac_ext <<_ACEOF | ||
11308 | /* end confdefs.h. */ | ||
11309 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11310 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11311 | #define $ac_func innocuous_$ac_func | ||
11312 | |||
11313 | /* System header to define __stub macros and hopefully few prototypes, | ||
11314 | which can conflict with char $ac_func (); below. | ||
11315 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11316 | <limits.h> exists even on freestanding compilers. */ | ||
11317 | |||
11318 | #ifdef __STDC__ | ||
11319 | # include <limits.h> | ||
11320 | #else | ||
11321 | # include <assert.h> | ||
11322 | #endif | ||
11323 | |||
11324 | #undef $ac_func | ||
11325 | |||
11326 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11327 | #ifdef __cplusplus | ||
11328 | extern "C" | ||
11329 | { | ||
11330 | #endif | ||
11331 | /* We use char because int might match the return type of a gcc2 | ||
11332 | builtin and then its argument prototype would still apply. */ | ||
11333 | char $ac_func (); | ||
11334 | /* The GNU C library defines this for functions which it implements | ||
11335 | to always fail with ENOSYS. Some functions are actually named | ||
11336 | something starting with __ and the normal name is an alias. */ | ||
11337 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11338 | choke me | ||
11339 | #else | ||
11340 | char (*f) () = $ac_func; | ||
11341 | #endif | ||
11342 | #ifdef __cplusplus | ||
11343 | } | ||
11344 | #endif | ||
11345 | |||
11346 | int | ||
11347 | main () | ||
11348 | { | ||
11349 | return f != $ac_func; | ||
11350 | ; | ||
11351 | return 0; | ||
11352 | } | ||
11353 | _ACEOF | ||
11354 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11356 | (eval $ac_link) 2>conftest.er1 | ||
11357 | ac_status=$? | ||
11358 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11359 | rm -f conftest.er1 | ||
11360 | cat conftest.err >&5 | ||
11361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11362 | (exit $ac_status); } && | ||
11363 | { ac_try='test -z "$ac_c_werror_flag" | ||
11364 | || test ! -s conftest.err' | ||
11365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11366 | (eval $ac_try) 2>&5 | ||
11367 | ac_status=$? | ||
11368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11369 | (exit $ac_status); }; } && | ||
11370 | { ac_try='test -s conftest$ac_exeext' | ||
11371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11372 | (eval $ac_try) 2>&5 | ||
11373 | ac_status=$? | ||
11374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11375 | (exit $ac_status); }; }; then | ||
11376 | eval "$as_ac_var=yes" | ||
11377 | else | ||
11378 | echo "$as_me: failed program was:" >&5 | ||
11379 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11380 | |||
11381 | eval "$as_ac_var=no" | ||
11382 | fi | ||
11383 | rm -f conftest.err conftest.$ac_objext \ | ||
11384 | conftest$ac_exeext conftest.$ac_ext | ||
11385 | fi | ||
11386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11387 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11388 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11389 | cat >>confdefs.h <<_ACEOF | ||
11390 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11391 | _ACEOF | ||
11392 | |||
11393 | fi | ||
11394 | done | ||
11395 | |||
11396 | fi | ||
11397 | |||
11398 | |||
11399 | echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
11400 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6 | ||
11401 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
11402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11403 | else | ||
11404 | cat >conftest.$ac_ext <<_ACEOF | ||
11405 | /* confdefs.h. */ | ||
11406 | _ACEOF | ||
11407 | cat confdefs.h >>conftest.$ac_ext | ||
11408 | cat >>conftest.$ac_ext <<_ACEOF | ||
11409 | /* end confdefs.h. */ | ||
11410 | #include <netdb.h> | ||
11411 | |||
11412 | int | ||
11413 | main () | ||
11414 | { | ||
11415 | #ifndef h_errno | ||
11416 | char *p = (char *) h_errno; | ||
11417 | #endif | ||
11418 | |||
11419 | ; | ||
11420 | return 0; | ||
11421 | } | ||
11422 | _ACEOF | ||
11423 | rm -f conftest.$ac_objext | ||
11424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11425 | (eval $ac_compile) 2>conftest.er1 | ||
11426 | ac_status=$? | ||
11427 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11428 | rm -f conftest.er1 | ||
11429 | cat conftest.err >&5 | ||
11430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11431 | (exit $ac_status); } && | ||
11432 | { ac_try='test -z "$ac_c_werror_flag" | ||
11433 | || test ! -s conftest.err' | ||
11434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11435 | (eval $ac_try) 2>&5 | ||
11436 | ac_status=$? | ||
11437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11438 | (exit $ac_status); }; } && | ||
11439 | { ac_try='test -s conftest.$ac_objext' | ||
11440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11441 | (eval $ac_try) 2>&5 | ||
11442 | ac_status=$? | ||
11443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11444 | (exit $ac_status); }; }; then | ||
11445 | ac_cv_have_decl_h_errno=yes | ||
11446 | else | ||
11447 | echo "$as_me: failed program was:" >&5 | ||
11448 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11449 | |||
11450 | ac_cv_have_decl_h_errno=no | ||
11451 | fi | ||
11452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11453 | fi | ||
11454 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
11455 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6 | ||
11456 | if test $ac_cv_have_decl_h_errno = yes; then | ||
11457 | |||
11458 | cat >>confdefs.h <<_ACEOF | ||
11459 | #define HAVE_DECL_H_ERRNO 1 | ||
11460 | _ACEOF | ||
11461 | |||
11462 | |||
11463 | else | ||
11464 | cat >>confdefs.h <<_ACEOF | ||
11465 | #define HAVE_DECL_H_ERRNO 0 | ||
11466 | _ACEOF | ||
11467 | |||
11468 | |||
11469 | fi | ||
11470 | |||
11471 | |||
11472 | |||
11473 | |||
11474 | for ac_func in setresuid | ||
11475 | do | ||
11476 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11477 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11478 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11479 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11481 | else | ||
11482 | cat >conftest.$ac_ext <<_ACEOF | ||
11483 | /* confdefs.h. */ | ||
11484 | _ACEOF | ||
11485 | cat confdefs.h >>conftest.$ac_ext | ||
11486 | cat >>conftest.$ac_ext <<_ACEOF | ||
11487 | /* end confdefs.h. */ | ||
11488 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11490 | #define $ac_func innocuous_$ac_func | ||
11491 | |||
11492 | /* System header to define __stub macros and hopefully few prototypes, | ||
11493 | which can conflict with char $ac_func (); below. | ||
11494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11495 | <limits.h> exists even on freestanding compilers. */ | ||
11496 | |||
11497 | #ifdef __STDC__ | ||
11498 | # include <limits.h> | ||
11499 | #else | ||
11500 | # include <assert.h> | ||
11501 | #endif | ||
11502 | |||
11503 | #undef $ac_func | ||
11504 | |||
11505 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11506 | #ifdef __cplusplus | ||
11507 | extern "C" | ||
11508 | { | ||
11509 | #endif | ||
11510 | /* We use char because int might match the return type of a gcc2 | ||
11511 | builtin and then its argument prototype would still apply. */ | ||
11512 | char $ac_func (); | ||
11513 | /* The GNU C library defines this for functions which it implements | ||
11514 | to always fail with ENOSYS. Some functions are actually named | ||
11515 | something starting with __ and the normal name is an alias. */ | ||
11516 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11517 | choke me | ||
11518 | #else | ||
11519 | char (*f) () = $ac_func; | ||
11520 | #endif | ||
11521 | #ifdef __cplusplus | ||
11522 | } | ||
11523 | #endif | ||
11524 | |||
11525 | int | ||
11526 | main () | ||
11527 | { | ||
11528 | return f != $ac_func; | ||
11529 | ; | ||
11530 | return 0; | ||
11531 | } | ||
11532 | _ACEOF | ||
11533 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11535 | (eval $ac_link) 2>conftest.er1 | ||
11536 | ac_status=$? | ||
11537 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11538 | rm -f conftest.er1 | ||
11539 | cat conftest.err >&5 | ||
11540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11541 | (exit $ac_status); } && | ||
11542 | { ac_try='test -z "$ac_c_werror_flag" | ||
11543 | || test ! -s conftest.err' | ||
11544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11545 | (eval $ac_try) 2>&5 | ||
11546 | ac_status=$? | ||
11547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11548 | (exit $ac_status); }; } && | ||
11549 | { ac_try='test -s conftest$ac_exeext' | ||
11550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11551 | (eval $ac_try) 2>&5 | ||
11552 | ac_status=$? | ||
11553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11554 | (exit $ac_status); }; }; then | ||
11555 | eval "$as_ac_var=yes" | ||
11556 | else | ||
11557 | echo "$as_me: failed program was:" >&5 | ||
11558 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11559 | |||
11560 | eval "$as_ac_var=no" | ||
11561 | fi | ||
11562 | rm -f conftest.err conftest.$ac_objext \ | ||
11563 | conftest$ac_exeext conftest.$ac_ext | ||
11564 | fi | ||
11565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11566 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11567 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11568 | cat >>confdefs.h <<_ACEOF | ||
11569 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11570 | _ACEOF | ||
11571 | |||
11572 | echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
11573 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6 | ||
11574 | if test "$cross_compiling" = yes; then | ||
11575 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
11576 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11577 | |||
11578 | else | ||
11579 | cat >conftest.$ac_ext <<_ACEOF | ||
11580 | /* confdefs.h. */ | ||
11581 | _ACEOF | ||
11582 | cat confdefs.h >>conftest.$ac_ext | ||
11583 | cat >>conftest.$ac_ext <<_ACEOF | ||
11584 | /* end confdefs.h. */ | ||
11585 | |||
11586 | #include <stdlib.h> | ||
11587 | #include <errno.h> | ||
11588 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
11589 | |||
11590 | _ACEOF | ||
11591 | rm -f conftest$ac_exeext | ||
11592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11593 | (eval $ac_link) 2>&5 | ||
11594 | ac_status=$? | ||
11595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11596 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11598 | (eval $ac_try) 2>&5 | ||
11599 | ac_status=$? | ||
11600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11601 | (exit $ac_status); }; }; then | ||
11602 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11603 | echo "${ECHO_T}yes" >&6 | ||
11604 | else | ||
11605 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11606 | echo "$as_me: failed program was:" >&5 | ||
11607 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11608 | |||
11609 | ( exit $ac_status ) | ||
11610 | cat >>confdefs.h <<\_ACEOF | ||
11611 | #define BROKEN_SETRESUID 1 | ||
11612 | _ACEOF | ||
11613 | |||
11614 | echo "$as_me:$LINENO: result: not implemented" >&5 | ||
11615 | echo "${ECHO_T}not implemented" >&6 | ||
11616 | fi | ||
11617 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11618 | fi | ||
11619 | |||
11620 | fi | ||
11621 | done | ||
11622 | |||
11623 | |||
11624 | |||
11625 | for ac_func in setresgid | ||
11626 | do | ||
11627 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11628 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11629 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11630 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11632 | else | ||
11633 | cat >conftest.$ac_ext <<_ACEOF | ||
11634 | /* confdefs.h. */ | ||
11635 | _ACEOF | ||
11636 | cat confdefs.h >>conftest.$ac_ext | ||
11637 | cat >>conftest.$ac_ext <<_ACEOF | ||
11638 | /* end confdefs.h. */ | ||
11639 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11640 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11641 | #define $ac_func innocuous_$ac_func | ||
11642 | |||
11643 | /* System header to define __stub macros and hopefully few prototypes, | ||
11644 | which can conflict with char $ac_func (); below. | ||
11645 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11646 | <limits.h> exists even on freestanding compilers. */ | ||
11647 | |||
11648 | #ifdef __STDC__ | ||
11649 | # include <limits.h> | ||
11650 | #else | ||
11651 | # include <assert.h> | ||
11652 | #endif | ||
11653 | |||
11654 | #undef $ac_func | ||
11655 | |||
11656 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11657 | #ifdef __cplusplus | ||
11658 | extern "C" | ||
11659 | { | ||
11660 | #endif | ||
11661 | /* We use char because int might match the return type of a gcc2 | ||
11662 | builtin and then its argument prototype would still apply. */ | ||
11663 | char $ac_func (); | ||
11664 | /* The GNU C library defines this for functions which it implements | ||
11665 | to always fail with ENOSYS. Some functions are actually named | ||
11666 | something starting with __ and the normal name is an alias. */ | ||
11667 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11668 | choke me | ||
11669 | #else | ||
11670 | char (*f) () = $ac_func; | ||
11671 | #endif | ||
11672 | #ifdef __cplusplus | ||
11673 | } | ||
11674 | #endif | ||
11675 | |||
11676 | int | ||
11677 | main () | ||
11678 | { | ||
11679 | return f != $ac_func; | ||
11680 | ; | ||
11681 | return 0; | ||
11682 | } | ||
11683 | _ACEOF | ||
11684 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11686 | (eval $ac_link) 2>conftest.er1 | ||
11687 | ac_status=$? | ||
11688 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11689 | rm -f conftest.er1 | ||
11690 | cat conftest.err >&5 | ||
11691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11692 | (exit $ac_status); } && | ||
11693 | { ac_try='test -z "$ac_c_werror_flag" | ||
11694 | || test ! -s conftest.err' | ||
11695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11696 | (eval $ac_try) 2>&5 | ||
11697 | ac_status=$? | ||
11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11699 | (exit $ac_status); }; } && | ||
11700 | { ac_try='test -s conftest$ac_exeext' | ||
11701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11702 | (eval $ac_try) 2>&5 | ||
11703 | ac_status=$? | ||
11704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11705 | (exit $ac_status); }; }; then | ||
11706 | eval "$as_ac_var=yes" | ||
11707 | else | ||
11708 | echo "$as_me: failed program was:" >&5 | ||
11709 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11710 | |||
11711 | eval "$as_ac_var=no" | ||
11712 | fi | ||
11713 | rm -f conftest.err conftest.$ac_objext \ | ||
11714 | conftest$ac_exeext conftest.$ac_ext | ||
11715 | fi | ||
11716 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11717 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11718 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11719 | cat >>confdefs.h <<_ACEOF | ||
11720 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11721 | _ACEOF | ||
11722 | |||
11723 | echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
11724 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6 | ||
11725 | if test "$cross_compiling" = yes; then | ||
11726 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
11727 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11728 | |||
11729 | else | ||
11730 | cat >conftest.$ac_ext <<_ACEOF | ||
11731 | /* confdefs.h. */ | ||
11732 | _ACEOF | ||
11733 | cat confdefs.h >>conftest.$ac_ext | ||
11734 | cat >>conftest.$ac_ext <<_ACEOF | ||
11735 | /* end confdefs.h. */ | ||
11736 | |||
11737 | #include <stdlib.h> | ||
11738 | #include <errno.h> | ||
11739 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
11740 | |||
11741 | _ACEOF | ||
11742 | rm -f conftest$ac_exeext | ||
11743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11744 | (eval $ac_link) 2>&5 | ||
11745 | ac_status=$? | ||
11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11747 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11749 | (eval $ac_try) 2>&5 | ||
11750 | ac_status=$? | ||
11751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11752 | (exit $ac_status); }; }; then | ||
11753 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11754 | echo "${ECHO_T}yes" >&6 | ||
11755 | else | ||
11756 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11757 | echo "$as_me: failed program was:" >&5 | ||
11758 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11759 | |||
11760 | ( exit $ac_status ) | ||
11761 | cat >>confdefs.h <<\_ACEOF | ||
11762 | #define BROKEN_SETRESGID 1 | ||
11763 | _ACEOF | ||
11764 | |||
11765 | echo "$as_me:$LINENO: result: not implemented" >&5 | ||
11766 | echo "${ECHO_T}not implemented" >&6 | ||
11767 | fi | ||
11768 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11769 | fi | ||
11770 | |||
11771 | fi | ||
11772 | done | ||
11773 | |||
11774 | |||
11775 | |||
11776 | |||
11777 | for ac_func in gettimeofday time | ||
11778 | do | ||
11779 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11780 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11781 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11782 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11784 | else | ||
11785 | cat >conftest.$ac_ext <<_ACEOF | ||
11786 | /* confdefs.h. */ | ||
11787 | _ACEOF | ||
11788 | cat confdefs.h >>conftest.$ac_ext | ||
11789 | cat >>conftest.$ac_ext <<_ACEOF | ||
11790 | /* end confdefs.h. */ | ||
11791 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11792 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11793 | #define $ac_func innocuous_$ac_func | ||
11794 | |||
11795 | /* System header to define __stub macros and hopefully few prototypes, | ||
11796 | which can conflict with char $ac_func (); below. | ||
11797 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11798 | <limits.h> exists even on freestanding compilers. */ | ||
11799 | |||
11800 | #ifdef __STDC__ | ||
11801 | # include <limits.h> | ||
11802 | #else | ||
11803 | # include <assert.h> | ||
11804 | #endif | ||
11805 | |||
11806 | #undef $ac_func | ||
11807 | |||
11808 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11809 | #ifdef __cplusplus | ||
11810 | extern "C" | ||
11811 | { | ||
11812 | #endif | ||
11813 | /* We use char because int might match the return type of a gcc2 | ||
11814 | builtin and then its argument prototype would still apply. */ | ||
11815 | char $ac_func (); | ||
11816 | /* The GNU C library defines this for functions which it implements | ||
11817 | to always fail with ENOSYS. Some functions are actually named | ||
11818 | something starting with __ and the normal name is an alias. */ | ||
11819 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11820 | choke me | ||
11821 | #else | ||
11822 | char (*f) () = $ac_func; | ||
11823 | #endif | ||
11824 | #ifdef __cplusplus | ||
11825 | } | ||
11826 | #endif | ||
11827 | |||
11828 | int | ||
11829 | main () | ||
11830 | { | ||
11831 | return f != $ac_func; | ||
11832 | ; | ||
11833 | return 0; | ||
11834 | } | ||
11835 | _ACEOF | ||
11836 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11838 | (eval $ac_link) 2>conftest.er1 | ||
11839 | ac_status=$? | ||
11840 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11841 | rm -f conftest.er1 | ||
11842 | cat conftest.err >&5 | ||
11843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11844 | (exit $ac_status); } && | ||
11845 | { ac_try='test -z "$ac_c_werror_flag" | ||
11846 | || test ! -s conftest.err' | ||
11847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11848 | (eval $ac_try) 2>&5 | ||
11849 | ac_status=$? | ||
11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11851 | (exit $ac_status); }; } && | ||
11852 | { ac_try='test -s conftest$ac_exeext' | ||
11853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11854 | (eval $ac_try) 2>&5 | ||
11855 | ac_status=$? | ||
11856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11857 | (exit $ac_status); }; }; then | ||
11858 | eval "$as_ac_var=yes" | ||
11859 | else | ||
11860 | echo "$as_me: failed program was:" >&5 | ||
11861 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11862 | |||
11863 | eval "$as_ac_var=no" | ||
11864 | fi | ||
11865 | rm -f conftest.err conftest.$ac_objext \ | ||
11866 | conftest$ac_exeext conftest.$ac_ext | ||
11867 | fi | ||
11868 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11869 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11870 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11871 | cat >>confdefs.h <<_ACEOF | ||
11872 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11873 | _ACEOF | ||
11874 | |||
11875 | fi | ||
11876 | done | ||
11877 | |||
11878 | |||
11879 | |||
11880 | |||
11881 | |||
11882 | |||
11883 | |||
11884 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
11885 | do | ||
11886 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11887 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11888 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11889 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11891 | else | ||
11892 | cat >conftest.$ac_ext <<_ACEOF | ||
11893 | /* confdefs.h. */ | ||
11894 | _ACEOF | ||
11895 | cat confdefs.h >>conftest.$ac_ext | ||
11896 | cat >>conftest.$ac_ext <<_ACEOF | ||
11897 | /* end confdefs.h. */ | ||
11898 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11899 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11900 | #define $ac_func innocuous_$ac_func | ||
11901 | |||
11902 | /* System header to define __stub macros and hopefully few prototypes, | ||
11903 | which can conflict with char $ac_func (); below. | ||
11904 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11905 | <limits.h> exists even on freestanding compilers. */ | ||
11906 | |||
11907 | #ifdef __STDC__ | ||
11908 | # include <limits.h> | ||
11909 | #else | ||
11910 | # include <assert.h> | ||
11911 | #endif | ||
11912 | |||
11913 | #undef $ac_func | ||
11914 | |||
11915 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11916 | #ifdef __cplusplus | ||
11917 | extern "C" | ||
11918 | { | ||
11919 | #endif | ||
11920 | /* We use char because int might match the return type of a gcc2 | ||
11921 | builtin and then its argument prototype would still apply. */ | ||
11922 | char $ac_func (); | ||
11923 | /* The GNU C library defines this for functions which it implements | ||
11924 | to always fail with ENOSYS. Some functions are actually named | ||
11925 | something starting with __ and the normal name is an alias. */ | ||
11926 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11927 | choke me | ||
11928 | #else | ||
11929 | char (*f) () = $ac_func; | ||
11930 | #endif | ||
11931 | #ifdef __cplusplus | ||
11932 | } | ||
11933 | #endif | ||
11934 | |||
11935 | int | ||
11936 | main () | ||
11937 | { | ||
11938 | return f != $ac_func; | ||
11939 | ; | ||
11940 | return 0; | ||
11941 | } | ||
11942 | _ACEOF | ||
11943 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11945 | (eval $ac_link) 2>conftest.er1 | ||
11946 | ac_status=$? | ||
11947 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11948 | rm -f conftest.er1 | ||
11949 | cat conftest.err >&5 | ||
11950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11951 | (exit $ac_status); } && | ||
11952 | { ac_try='test -z "$ac_c_werror_flag" | ||
11953 | || test ! -s conftest.err' | ||
11954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11955 | (eval $ac_try) 2>&5 | ||
11956 | ac_status=$? | ||
11957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11958 | (exit $ac_status); }; } && | ||
11959 | { ac_try='test -s conftest$ac_exeext' | ||
11960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11961 | (eval $ac_try) 2>&5 | ||
11962 | ac_status=$? | ||
11963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11964 | (exit $ac_status); }; }; then | ||
11965 | eval "$as_ac_var=yes" | ||
11966 | else | ||
11967 | echo "$as_me: failed program was:" >&5 | ||
11968 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11969 | |||
11970 | eval "$as_ac_var=no" | ||
11971 | fi | ||
11972 | rm -f conftest.err conftest.$ac_objext \ | ||
11973 | conftest$ac_exeext conftest.$ac_ext | ||
11974 | fi | ||
11975 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11976 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11977 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11978 | cat >>confdefs.h <<_ACEOF | ||
11979 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11980 | _ACEOF | ||
11981 | |||
11982 | fi | ||
11983 | done | ||
11984 | |||
11985 | |||
11986 | for ac_func in utmpname | ||
11987 | do | ||
11988 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11989 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11990 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11991 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11993 | else | ||
11994 | cat >conftest.$ac_ext <<_ACEOF | ||
11995 | /* confdefs.h. */ | ||
11996 | _ACEOF | ||
11997 | cat confdefs.h >>conftest.$ac_ext | ||
11998 | cat >>conftest.$ac_ext <<_ACEOF | ||
11999 | /* end confdefs.h. */ | ||
12000 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12001 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12002 | #define $ac_func innocuous_$ac_func | ||
12003 | |||
12004 | /* System header to define __stub macros and hopefully few prototypes, | ||
12005 | which can conflict with char $ac_func (); below. | ||
12006 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12007 | <limits.h> exists even on freestanding compilers. */ | ||
12008 | |||
12009 | #ifdef __STDC__ | ||
12010 | # include <limits.h> | ||
12011 | #else | ||
12012 | # include <assert.h> | ||
12013 | #endif | ||
12014 | |||
12015 | #undef $ac_func | ||
12016 | |||
12017 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12018 | #ifdef __cplusplus | ||
12019 | extern "C" | ||
12020 | { | ||
12021 | #endif | ||
12022 | /* We use char because int might match the return type of a gcc2 | ||
12023 | builtin and then its argument prototype would still apply. */ | ||
12024 | char $ac_func (); | ||
12025 | /* The GNU C library defines this for functions which it implements | ||
12026 | to always fail with ENOSYS. Some functions are actually named | ||
12027 | something starting with __ and the normal name is an alias. */ | ||
12028 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12029 | choke me | ||
12030 | #else | ||
12031 | char (*f) () = $ac_func; | ||
12032 | #endif | ||
12033 | #ifdef __cplusplus | ||
12034 | } | ||
12035 | #endif | ||
12036 | |||
12037 | int | ||
12038 | main () | ||
12039 | { | ||
12040 | return f != $ac_func; | ||
12041 | ; | ||
12042 | return 0; | ||
12043 | } | ||
12044 | _ACEOF | ||
12045 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12047 | (eval $ac_link) 2>conftest.er1 | ||
12048 | ac_status=$? | ||
12049 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12050 | rm -f conftest.er1 | ||
12051 | cat conftest.err >&5 | ||
12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12053 | (exit $ac_status); } && | ||
12054 | { ac_try='test -z "$ac_c_werror_flag" | ||
12055 | || test ! -s conftest.err' | ||
12056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12057 | (eval $ac_try) 2>&5 | ||
12058 | ac_status=$? | ||
12059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12060 | (exit $ac_status); }; } && | ||
12061 | { ac_try='test -s conftest$ac_exeext' | ||
12062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12063 | (eval $ac_try) 2>&5 | ||
12064 | ac_status=$? | ||
12065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12066 | (exit $ac_status); }; }; then | ||
12067 | eval "$as_ac_var=yes" | ||
12068 | else | ||
12069 | echo "$as_me: failed program was:" >&5 | ||
12070 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12071 | |||
12072 | eval "$as_ac_var=no" | ||
12073 | fi | ||
12074 | rm -f conftest.err conftest.$ac_objext \ | ||
12075 | conftest$ac_exeext conftest.$ac_ext | ||
12076 | fi | ||
12077 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12078 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12079 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12080 | cat >>confdefs.h <<_ACEOF | ||
12081 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12082 | _ACEOF | ||
12083 | |||
12084 | fi | ||
12085 | done | ||
12086 | |||
12087 | |||
12088 | |||
12089 | |||
12090 | |||
12091 | |||
12092 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
12093 | do | ||
12094 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12095 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12096 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12097 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12099 | else | ||
12100 | cat >conftest.$ac_ext <<_ACEOF | ||
12101 | /* confdefs.h. */ | ||
12102 | _ACEOF | ||
12103 | cat confdefs.h >>conftest.$ac_ext | ||
12104 | cat >>conftest.$ac_ext <<_ACEOF | ||
12105 | /* end confdefs.h. */ | ||
12106 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12107 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12108 | #define $ac_func innocuous_$ac_func | ||
12109 | |||
12110 | /* System header to define __stub macros and hopefully few prototypes, | ||
12111 | which can conflict with char $ac_func (); below. | ||
12112 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12113 | <limits.h> exists even on freestanding compilers. */ | ||
12114 | |||
12115 | #ifdef __STDC__ | ||
12116 | # include <limits.h> | ||
12117 | #else | ||
12118 | # include <assert.h> | ||
12119 | #endif | ||
12120 | |||
12121 | #undef $ac_func | ||
12122 | |||
12123 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12124 | #ifdef __cplusplus | ||
12125 | extern "C" | ||
12126 | { | ||
12127 | #endif | ||
12128 | /* We use char because int might match the return type of a gcc2 | ||
12129 | builtin and then its argument prototype would still apply. */ | ||
12130 | char $ac_func (); | ||
12131 | /* The GNU C library defines this for functions which it implements | ||
12132 | to always fail with ENOSYS. Some functions are actually named | ||
12133 | something starting with __ and the normal name is an alias. */ | ||
12134 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12135 | choke me | ||
12136 | #else | ||
12137 | char (*f) () = $ac_func; | ||
12138 | #endif | ||
12139 | #ifdef __cplusplus | ||
12140 | } | ||
12141 | #endif | ||
12142 | |||
12143 | int | ||
12144 | main () | ||
12145 | { | ||
12146 | return f != $ac_func; | ||
12147 | ; | ||
12148 | return 0; | ||
12149 | } | ||
12150 | _ACEOF | ||
12151 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12153 | (eval $ac_link) 2>conftest.er1 | ||
12154 | ac_status=$? | ||
12155 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12156 | rm -f conftest.er1 | ||
12157 | cat conftest.err >&5 | ||
12158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12159 | (exit $ac_status); } && | ||
12160 | { ac_try='test -z "$ac_c_werror_flag" | ||
12161 | || test ! -s conftest.err' | ||
12162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12163 | (eval $ac_try) 2>&5 | ||
12164 | ac_status=$? | ||
12165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12166 | (exit $ac_status); }; } && | ||
12167 | { ac_try='test -s conftest$ac_exeext' | ||
12168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12169 | (eval $ac_try) 2>&5 | ||
12170 | ac_status=$? | ||
12171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12172 | (exit $ac_status); }; }; then | ||
12173 | eval "$as_ac_var=yes" | ||
12174 | else | ||
12175 | echo "$as_me: failed program was:" >&5 | ||
12176 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12177 | |||
12178 | eval "$as_ac_var=no" | ||
12179 | fi | ||
12180 | rm -f conftest.err conftest.$ac_objext \ | ||
12181 | conftest$ac_exeext conftest.$ac_ext | ||
12182 | fi | ||
12183 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12184 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12185 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12186 | cat >>confdefs.h <<_ACEOF | ||
12187 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12188 | _ACEOF | ||
12189 | |||
12190 | fi | ||
12191 | done | ||
12192 | |||
12193 | |||
12194 | |||
12195 | for ac_func in setutxent utmpxname | ||
12196 | do | ||
12197 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12198 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12199 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12200 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12202 | else | ||
12203 | cat >conftest.$ac_ext <<_ACEOF | ||
12204 | /* confdefs.h. */ | ||
12205 | _ACEOF | ||
12206 | cat confdefs.h >>conftest.$ac_ext | ||
12207 | cat >>conftest.$ac_ext <<_ACEOF | ||
12208 | /* end confdefs.h. */ | ||
12209 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12210 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12211 | #define $ac_func innocuous_$ac_func | ||
12212 | |||
12213 | /* System header to define __stub macros and hopefully few prototypes, | ||
12214 | which can conflict with char $ac_func (); below. | ||
12215 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12216 | <limits.h> exists even on freestanding compilers. */ | ||
12217 | |||
12218 | #ifdef __STDC__ | ||
12219 | # include <limits.h> | ||
12220 | #else | ||
12221 | # include <assert.h> | ||
12222 | #endif | ||
12223 | |||
12224 | #undef $ac_func | ||
12225 | |||
12226 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12227 | #ifdef __cplusplus | ||
12228 | extern "C" | ||
12229 | { | ||
12230 | #endif | ||
12231 | /* We use char because int might match the return type of a gcc2 | ||
12232 | builtin and then its argument prototype would still apply. */ | ||
12233 | char $ac_func (); | ||
12234 | /* The GNU C library defines this for functions which it implements | ||
12235 | to always fail with ENOSYS. Some functions are actually named | ||
12236 | something starting with __ and the normal name is an alias. */ | ||
12237 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12238 | choke me | ||
12239 | #else | ||
12240 | char (*f) () = $ac_func; | ||
12241 | #endif | ||
12242 | #ifdef __cplusplus | ||
12243 | } | ||
12244 | #endif | ||
12245 | |||
12246 | int | ||
12247 | main () | ||
12248 | { | ||
12249 | return f != $ac_func; | ||
12250 | ; | ||
12251 | return 0; | ||
12252 | } | ||
12253 | _ACEOF | ||
12254 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12256 | (eval $ac_link) 2>conftest.er1 | ||
12257 | ac_status=$? | ||
12258 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12259 | rm -f conftest.er1 | ||
12260 | cat conftest.err >&5 | ||
12261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12262 | (exit $ac_status); } && | ||
12263 | { ac_try='test -z "$ac_c_werror_flag" | ||
12264 | || test ! -s conftest.err' | ||
12265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12266 | (eval $ac_try) 2>&5 | ||
12267 | ac_status=$? | ||
12268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12269 | (exit $ac_status); }; } && | ||
12270 | { ac_try='test -s conftest$ac_exeext' | ||
12271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12272 | (eval $ac_try) 2>&5 | ||
12273 | ac_status=$? | ||
12274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12275 | (exit $ac_status); }; }; then | ||
12276 | eval "$as_ac_var=yes" | ||
12277 | else | ||
12278 | echo "$as_me: failed program was:" >&5 | ||
12279 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12280 | |||
12281 | eval "$as_ac_var=no" | ||
12282 | fi | ||
12283 | rm -f conftest.err conftest.$ac_objext \ | ||
12284 | conftest$ac_exeext conftest.$ac_ext | ||
12285 | fi | ||
12286 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12287 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12288 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12289 | cat >>confdefs.h <<_ACEOF | ||
12290 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12291 | _ACEOF | ||
12292 | |||
12293 | fi | ||
12294 | done | ||
12295 | |||
12296 | |||
12297 | echo "$as_me:$LINENO: checking for daemon" >&5 | ||
12298 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
12299 | if test "${ac_cv_func_daemon+set}" = set; then | ||
12300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12301 | else | ||
12302 | cat >conftest.$ac_ext <<_ACEOF | ||
12303 | /* confdefs.h. */ | ||
12304 | _ACEOF | ||
12305 | cat confdefs.h >>conftest.$ac_ext | ||
12306 | cat >>conftest.$ac_ext <<_ACEOF | ||
12307 | /* end confdefs.h. */ | ||
12308 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
12309 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12310 | #define daemon innocuous_daemon | ||
12311 | |||
12312 | /* System header to define __stub macros and hopefully few prototypes, | ||
12313 | which can conflict with char daemon (); below. | ||
12314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12315 | <limits.h> exists even on freestanding compilers. */ | ||
12316 | |||
12317 | #ifdef __STDC__ | ||
12318 | # include <limits.h> | ||
12319 | #else | ||
12320 | # include <assert.h> | ||
12321 | #endif | ||
12322 | |||
12323 | #undef daemon | ||
12324 | |||
12325 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12326 | #ifdef __cplusplus | ||
12327 | extern "C" | ||
12328 | { | ||
12329 | #endif | ||
12330 | /* We use char because int might match the return type of a gcc2 | ||
12331 | builtin and then its argument prototype would still apply. */ | ||
12332 | char daemon (); | ||
12333 | /* The GNU C library defines this for functions which it implements | ||
12334 | to always fail with ENOSYS. Some functions are actually named | ||
12335 | something starting with __ and the normal name is an alias. */ | ||
12336 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
12337 | choke me | ||
12338 | #else | ||
12339 | char (*f) () = daemon; | ||
12340 | #endif | ||
12341 | #ifdef __cplusplus | ||
12342 | } | ||
12343 | #endif | ||
12344 | |||
12345 | int | ||
12346 | main () | ||
12347 | { | ||
12348 | return f != daemon; | ||
12349 | ; | ||
12350 | return 0; | ||
12351 | } | ||
12352 | _ACEOF | ||
12353 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12355 | (eval $ac_link) 2>conftest.er1 | ||
12356 | ac_status=$? | ||
12357 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12358 | rm -f conftest.er1 | ||
12359 | cat conftest.err >&5 | ||
12360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12361 | (exit $ac_status); } && | ||
12362 | { ac_try='test -z "$ac_c_werror_flag" | ||
12363 | || test ! -s conftest.err' | ||
12364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12365 | (eval $ac_try) 2>&5 | ||
12366 | ac_status=$? | ||
12367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12368 | (exit $ac_status); }; } && | ||
12369 | { ac_try='test -s conftest$ac_exeext' | ||
12370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12371 | (eval $ac_try) 2>&5 | ||
12372 | ac_status=$? | ||
12373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12374 | (exit $ac_status); }; }; then | ||
12375 | ac_cv_func_daemon=yes | ||
12376 | else | ||
12377 | echo "$as_me: failed program was:" >&5 | ||
12378 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12379 | |||
12380 | ac_cv_func_daemon=no | ||
12381 | fi | ||
12382 | rm -f conftest.err conftest.$ac_objext \ | ||
12383 | conftest$ac_exeext conftest.$ac_ext | ||
12384 | fi | ||
12385 | echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
12386 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
12387 | if test $ac_cv_func_daemon = yes; then | ||
12388 | cat >>confdefs.h <<\_ACEOF | ||
12389 | #define HAVE_DAEMON 1 | ||
12390 | _ACEOF | ||
12391 | |||
12392 | else | ||
12393 | echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
12394 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
12395 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
12396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12397 | else | ||
12398 | ac_check_lib_save_LIBS=$LIBS | ||
12399 | LIBS="-lbsd $LIBS" | ||
12400 | cat >conftest.$ac_ext <<_ACEOF | ||
12401 | /* confdefs.h. */ | ||
12402 | _ACEOF | ||
12403 | cat confdefs.h >>conftest.$ac_ext | ||
12404 | cat >>conftest.$ac_ext <<_ACEOF | ||
12405 | /* end confdefs.h. */ | ||
12406 | |||
12407 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12408 | #ifdef __cplusplus | ||
12409 | extern "C" | ||
12410 | #endif | ||
12411 | /* We use char because int might match the return type of a gcc2 | ||
12412 | builtin and then its argument prototype would still apply. */ | ||
12413 | char daemon (); | ||
12414 | int | ||
12415 | main () | ||
12416 | { | ||
12417 | daemon (); | ||
12418 | ; | ||
12419 | return 0; | ||
12420 | } | ||
12421 | _ACEOF | ||
12422 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12424 | (eval $ac_link) 2>conftest.er1 | ||
12425 | ac_status=$? | ||
12426 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12427 | rm -f conftest.er1 | ||
12428 | cat conftest.err >&5 | ||
12429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12430 | (exit $ac_status); } && | ||
12431 | { ac_try='test -z "$ac_c_werror_flag" | ||
12432 | || test ! -s conftest.err' | ||
12433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12434 | (eval $ac_try) 2>&5 | ||
12435 | ac_status=$? | ||
12436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12437 | (exit $ac_status); }; } && | ||
12438 | { ac_try='test -s conftest$ac_exeext' | ||
12439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12440 | (eval $ac_try) 2>&5 | ||
12441 | ac_status=$? | ||
12442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12443 | (exit $ac_status); }; }; then | ||
12444 | ac_cv_lib_bsd_daemon=yes | ||
12445 | else | ||
12446 | echo "$as_me: failed program was:" >&5 | ||
12447 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12448 | |||
12449 | ac_cv_lib_bsd_daemon=no | ||
12450 | fi | ||
12451 | rm -f conftest.err conftest.$ac_objext \ | ||
12452 | conftest$ac_exeext conftest.$ac_ext | ||
12453 | LIBS=$ac_check_lib_save_LIBS | ||
12454 | fi | ||
12455 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
12456 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
12457 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
12458 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
12459 | #define HAVE_DAEMON 1 | ||
12460 | _ACEOF | ||
12461 | |||
12462 | fi | ||
12463 | |||
12464 | |||
12465 | fi | ||
12466 | |||
12467 | |||
12468 | echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
12469 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
12470 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
12471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12472 | else | ||
12473 | cat >conftest.$ac_ext <<_ACEOF | ||
12474 | /* confdefs.h. */ | ||
12475 | _ACEOF | ||
12476 | cat confdefs.h >>conftest.$ac_ext | ||
12477 | cat >>conftest.$ac_ext <<_ACEOF | ||
12478 | /* end confdefs.h. */ | ||
12479 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
12480 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12481 | #define getpagesize innocuous_getpagesize | ||
12482 | |||
12483 | /* System header to define __stub macros and hopefully few prototypes, | ||
12484 | which can conflict with char getpagesize (); below. | ||
12485 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12486 | <limits.h> exists even on freestanding compilers. */ | ||
12487 | |||
12488 | #ifdef __STDC__ | ||
12489 | # include <limits.h> | ||
12490 | #else | ||
12491 | # include <assert.h> | ||
12492 | #endif | ||
12493 | |||
12494 | #undef getpagesize | ||
12495 | |||
12496 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12497 | #ifdef __cplusplus | ||
12498 | extern "C" | ||
12499 | { | ||
12500 | #endif | ||
12501 | /* We use char because int might match the return type of a gcc2 | ||
12502 | builtin and then its argument prototype would still apply. */ | ||
12503 | char getpagesize (); | ||
12504 | /* The GNU C library defines this for functions which it implements | ||
12505 | to always fail with ENOSYS. Some functions are actually named | ||
12506 | something starting with __ and the normal name is an alias. */ | ||
12507 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
12508 | choke me | ||
12509 | #else | ||
12510 | char (*f) () = getpagesize; | ||
12511 | #endif | ||
12512 | #ifdef __cplusplus | ||
12513 | } | ||
12514 | #endif | ||
12515 | |||
12516 | int | ||
12517 | main () | ||
12518 | { | ||
12519 | return f != getpagesize; | ||
12520 | ; | ||
12521 | return 0; | ||
12522 | } | ||
12523 | _ACEOF | ||
12524 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12526 | (eval $ac_link) 2>conftest.er1 | ||
12527 | ac_status=$? | ||
12528 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12529 | rm -f conftest.er1 | ||
12530 | cat conftest.err >&5 | ||
12531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12532 | (exit $ac_status); } && | ||
12533 | { ac_try='test -z "$ac_c_werror_flag" | ||
12534 | || test ! -s conftest.err' | ||
12535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12536 | (eval $ac_try) 2>&5 | ||
12537 | ac_status=$? | ||
12538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12539 | (exit $ac_status); }; } && | ||
12540 | { ac_try='test -s conftest$ac_exeext' | ||
12541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12542 | (eval $ac_try) 2>&5 | ||
12543 | ac_status=$? | ||
12544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12545 | (exit $ac_status); }; }; then | ||
12546 | ac_cv_func_getpagesize=yes | ||
12547 | else | ||
12548 | echo "$as_me: failed program was:" >&5 | ||
12549 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12550 | |||
12551 | ac_cv_func_getpagesize=no | ||
12552 | fi | ||
12553 | rm -f conftest.err conftest.$ac_objext \ | ||
12554 | conftest$ac_exeext conftest.$ac_ext | ||
12555 | fi | ||
12556 | echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
12557 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
12558 | if test $ac_cv_func_getpagesize = yes; then | ||
12559 | cat >>confdefs.h <<\_ACEOF | ||
12560 | #define HAVE_GETPAGESIZE 1 | ||
12561 | _ACEOF | ||
12562 | |||
12563 | else | ||
12564 | echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
12565 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
12566 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
12567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12568 | else | ||
12569 | ac_check_lib_save_LIBS=$LIBS | ||
12570 | LIBS="-lucb $LIBS" | ||
12571 | cat >conftest.$ac_ext <<_ACEOF | ||
12572 | /* confdefs.h. */ | ||
12573 | _ACEOF | ||
12574 | cat confdefs.h >>conftest.$ac_ext | ||
12575 | cat >>conftest.$ac_ext <<_ACEOF | ||
12576 | /* end confdefs.h. */ | ||
12577 | |||
12578 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12579 | #ifdef __cplusplus | ||
12580 | extern "C" | ||
12581 | #endif | ||
12582 | /* We use char because int might match the return type of a gcc2 | ||
12583 | builtin and then its argument prototype would still apply. */ | ||
12584 | char getpagesize (); | ||
12585 | int | ||
12586 | main () | ||
12587 | { | ||
12588 | getpagesize (); | ||
12589 | ; | ||
12590 | return 0; | ||
12591 | } | ||
12592 | _ACEOF | ||
12593 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12595 | (eval $ac_link) 2>conftest.er1 | ||
12596 | ac_status=$? | ||
12597 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12598 | rm -f conftest.er1 | ||
12599 | cat conftest.err >&5 | ||
12600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12601 | (exit $ac_status); } && | ||
12602 | { ac_try='test -z "$ac_c_werror_flag" | ||
12603 | || test ! -s conftest.err' | ||
12604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12605 | (eval $ac_try) 2>&5 | ||
12606 | ac_status=$? | ||
12607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12608 | (exit $ac_status); }; } && | ||
12609 | { ac_try='test -s conftest$ac_exeext' | ||
12610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12611 | (eval $ac_try) 2>&5 | ||
12612 | ac_status=$? | ||
12613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12614 | (exit $ac_status); }; }; then | ||
12615 | ac_cv_lib_ucb_getpagesize=yes | ||
12616 | else | ||
12617 | echo "$as_me: failed program was:" >&5 | ||
12618 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12619 | |||
12620 | ac_cv_lib_ucb_getpagesize=no | ||
12621 | fi | ||
12622 | rm -f conftest.err conftest.$ac_objext \ | ||
12623 | conftest$ac_exeext conftest.$ac_ext | ||
12624 | LIBS=$ac_check_lib_save_LIBS | ||
12625 | fi | ||
12626 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
12627 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
12628 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
12629 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
12630 | #define HAVE_GETPAGESIZE 1 | ||
12631 | _ACEOF | ||
12632 | |||
12633 | fi | ||
12634 | |||
12635 | |||
12636 | fi | ||
12637 | |||
12638 | |||
12639 | # Check for broken snprintf | ||
12640 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
12641 | echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
12642 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
12643 | if test "$cross_compiling" = yes; then | ||
12644 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
12645 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
12646 | |||
12647 | else | ||
12648 | cat >conftest.$ac_ext <<_ACEOF | ||
12649 | /* confdefs.h. */ | ||
12650 | _ACEOF | ||
12651 | cat confdefs.h >>conftest.$ac_ext | ||
12652 | cat >>conftest.$ac_ext <<_ACEOF | ||
12653 | /* end confdefs.h. */ | ||
12654 | |||
12655 | #include <stdio.h> | ||
12656 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
12657 | |||
12658 | _ACEOF | ||
12659 | rm -f conftest$ac_exeext | ||
12660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12661 | (eval $ac_link) 2>&5 | ||
12662 | ac_status=$? | ||
12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12664 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12666 | (eval $ac_try) 2>&5 | ||
12667 | ac_status=$? | ||
12668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12669 | (exit $ac_status); }; }; then | ||
12670 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12671 | echo "${ECHO_T}yes" >&6 | ||
12672 | else | ||
12673 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12674 | echo "$as_me: failed program was:" >&5 | ||
12675 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12676 | |||
12677 | ( exit $ac_status ) | ||
12678 | |||
12679 | echo "$as_me:$LINENO: result: no" >&5 | ||
12680 | echo "${ECHO_T}no" >&6 | ||
12681 | cat >>confdefs.h <<\_ACEOF | ||
12682 | #define BROKEN_SNPRINTF 1 | ||
12683 | _ACEOF | ||
12684 | |||
12685 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
12686 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
12687 | |||
12688 | fi | ||
12689 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12690 | fi | ||
12691 | fi | ||
12692 | |||
12693 | # Check for missing getpeereid (or equiv) support | ||
12694 | NO_PEERCHECK="" | ||
12695 | if test "x$ac_cv_func_getpeereid" != "xyes" ; then | ||
12696 | echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
12697 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6 | ||
12698 | cat >conftest.$ac_ext <<_ACEOF | ||
12699 | /* confdefs.h. */ | ||
12700 | _ACEOF | ||
12701 | cat confdefs.h >>conftest.$ac_ext | ||
12702 | cat >>conftest.$ac_ext <<_ACEOF | ||
12703 | /* end confdefs.h. */ | ||
12704 | #include <sys/types.h> | ||
12705 | #include <sys/socket.h> | ||
12706 | int | ||
12707 | main () | ||
12708 | { | ||
12709 | int i = SO_PEERCRED; | ||
12710 | ; | ||
12711 | return 0; | ||
12712 | } | ||
12713 | _ACEOF | ||
12714 | rm -f conftest.$ac_objext | ||
12715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12716 | (eval $ac_compile) 2>conftest.er1 | ||
12717 | ac_status=$? | ||
12718 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12719 | rm -f conftest.er1 | ||
12720 | cat conftest.err >&5 | ||
12721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12722 | (exit $ac_status); } && | ||
12723 | { ac_try='test -z "$ac_c_werror_flag" | ||
12724 | || test ! -s conftest.err' | ||
12725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12726 | (eval $ac_try) 2>&5 | ||
12727 | ac_status=$? | ||
12728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12729 | (exit $ac_status); }; } && | ||
12730 | { ac_try='test -s conftest.$ac_objext' | ||
12731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12732 | (eval $ac_try) 2>&5 | ||
12733 | ac_status=$? | ||
12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12735 | (exit $ac_status); }; }; then | ||
12736 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12737 | echo "${ECHO_T}yes" >&6 | ||
12738 | else | ||
12739 | echo "$as_me: failed program was:" >&5 | ||
12740 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12741 | |||
12742 | echo "$as_me:$LINENO: result: no" >&5 | ||
12743 | echo "${ECHO_T}no" >&6 | ||
12744 | NO_PEERCHECK=1 | ||
12745 | |||
12746 | fi | ||
12747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12748 | fi | ||
12749 | |||
12750 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
12751 | echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
12752 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
12753 | if test "$cross_compiling" = yes; then | ||
12754 | |||
12755 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12756 | echo "${ECHO_T}yes" >&6 | ||
12757 | cat >>confdefs.h <<\_ACEOF | ||
12758 | #define HAVE_STRICT_MKSTEMP 1 | ||
12759 | _ACEOF | ||
12760 | |||
12761 | |||
12762 | |||
12763 | else | ||
12764 | cat >conftest.$ac_ext <<_ACEOF | ||
12765 | /* confdefs.h. */ | ||
12766 | _ACEOF | ||
12767 | cat confdefs.h >>conftest.$ac_ext | ||
12768 | cat >>conftest.$ac_ext <<_ACEOF | ||
12769 | /* end confdefs.h. */ | ||
12770 | |||
12771 | #include <stdlib.h> | ||
12772 | main() { char template[]="conftest.mkstemp-test"; | ||
12773 | if (mkstemp(template) == -1) | ||
12774 | exit(1); | ||
12775 | unlink(template); exit(0); | ||
12776 | } | ||
12777 | |||
12778 | _ACEOF | ||
12779 | rm -f conftest$ac_exeext | ||
12780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12781 | (eval $ac_link) 2>&5 | ||
12782 | ac_status=$? | ||
12783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12784 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12786 | (eval $ac_try) 2>&5 | ||
12787 | ac_status=$? | ||
12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12789 | (exit $ac_status); }; }; then | ||
12790 | |||
12791 | echo "$as_me:$LINENO: result: no" >&5 | ||
12792 | echo "${ECHO_T}no" >&6 | ||
12793 | |||
12794 | else | ||
12795 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12796 | echo "$as_me: failed program was:" >&5 | ||
12797 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12798 | |||
12799 | ( exit $ac_status ) | ||
12800 | |||
12801 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12802 | echo "${ECHO_T}yes" >&6 | ||
12803 | cat >>confdefs.h <<\_ACEOF | ||
12804 | #define HAVE_STRICT_MKSTEMP 1 | ||
12805 | _ACEOF | ||
12806 | |||
12807 | |||
12808 | fi | ||
12809 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12810 | fi | ||
12811 | fi | ||
12812 | |||
12813 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
12814 | echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
12815 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6 | ||
12816 | if test "$cross_compiling" = yes; then | ||
12817 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
12818 | See \`config.log' for more details." >&5 | ||
12819 | echo "$as_me: error: cannot run test program while cross compiling | ||
12820 | See \`config.log' for more details." >&2;} | ||
12821 | { (exit 1); exit 1; }; } | ||
12822 | else | ||
12823 | cat >conftest.$ac_ext <<_ACEOF | ||
12824 | /* confdefs.h. */ | ||
12825 | _ACEOF | ||
12826 | cat confdefs.h >>conftest.$ac_ext | ||
12827 | cat >>conftest.$ac_ext <<_ACEOF | ||
12828 | /* end confdefs.h. */ | ||
12829 | |||
12830 | #include <stdio.h> | ||
12831 | #include <sys/fcntl.h> | ||
12832 | #include <sys/types.h> | ||
12833 | #include <sys/wait.h> | ||
12834 | |||
12835 | int | ||
12836 | main() | ||
12837 | { | ||
12838 | pid_t pid; | ||
12839 | int fd, ptyfd, ttyfd, status; | ||
12840 | |||
12841 | pid = fork(); | ||
12842 | if (pid < 0) { /* failed */ | ||
12843 | exit(1); | ||
12844 | } else if (pid > 0) { /* parent */ | ||
12845 | waitpid(pid, &status, 0); | ||
12846 | if (WIFEXITED(status)) | ||
12847 | exit(WEXITSTATUS(status)); | ||
12848 | else | ||
12849 | exit(2); | ||
12850 | } else { /* child */ | ||
12851 | close(0); close(1); close(2); | ||
12852 | setsid(); | ||
12853 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
12854 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
12855 | if (fd >= 0) | ||
12856 | exit(3); /* Acquired ctty: broken */ | ||
12857 | else | ||
12858 | exit(0); /* Did not acquire ctty: OK */ | ||
12859 | } | ||
12860 | } | ||
12861 | |||
12862 | _ACEOF | ||
12863 | rm -f conftest$ac_exeext | ||
12864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12865 | (eval $ac_link) 2>&5 | ||
12866 | ac_status=$? | ||
12867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12868 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12870 | (eval $ac_try) 2>&5 | ||
12871 | ac_status=$? | ||
12872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12873 | (exit $ac_status); }; }; then | ||
12874 | |||
12875 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12876 | echo "${ECHO_T}yes" >&6 | ||
12877 | |||
12878 | else | ||
12879 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12880 | echo "$as_me: failed program was:" >&5 | ||
12881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12882 | |||
12883 | ( exit $ac_status ) | ||
12884 | |||
12885 | echo "$as_me:$LINENO: result: no" >&5 | ||
12886 | echo "${ECHO_T}no" >&6 | ||
12887 | cat >>confdefs.h <<\_ACEOF | ||
12888 | #define SSHD_ACQUIRES_CTTY 1 | ||
12889 | _ACEOF | ||
12890 | |||
12891 | |||
12892 | |||
12893 | fi | ||
12894 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12895 | fi | ||
12896 | fi | ||
12897 | |||
12898 | if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
12899 | echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
12900 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 | ||
12901 | if test "$cross_compiling" = yes; then | ||
12902 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
12903 | See \`config.log' for more details." >&5 | ||
12904 | echo "$as_me: error: cannot run test program while cross compiling | ||
12905 | See \`config.log' for more details." >&2;} | ||
12906 | { (exit 1); exit 1; }; } | ||
12907 | else | ||
12908 | cat >conftest.$ac_ext <<_ACEOF | ||
12909 | /* confdefs.h. */ | ||
12910 | _ACEOF | ||
12911 | cat confdefs.h >>conftest.$ac_ext | ||
12912 | cat >>conftest.$ac_ext <<_ACEOF | ||
12913 | /* end confdefs.h. */ | ||
12914 | |||
12915 | #include <stdio.h> | ||
12916 | #include <sys/socket.h> | ||
12917 | #include <netdb.h> | ||
12918 | #include <errno.h> | ||
12919 | #include <netinet/in.h> | ||
12920 | |||
12921 | #define TEST_PORT "2222" | ||
12922 | |||
12923 | int | ||
12924 | main(void) | ||
12925 | { | ||
12926 | int err, sock; | ||
12927 | struct addrinfo *gai_ai, *ai, hints; | ||
12928 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
12929 | |||
12930 | memset(&hints, 0, sizeof(hints)); | ||
12931 | hints.ai_family = PF_UNSPEC; | ||
12932 | hints.ai_socktype = SOCK_STREAM; | ||
12933 | hints.ai_flags = AI_PASSIVE; | ||
12934 | |||
12935 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
12936 | if (err != 0) { | ||
12937 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
12938 | exit(1); | ||
12939 | } | ||
12940 | |||
12941 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
12942 | if (ai->ai_family != AF_INET6) | ||
12943 | continue; | ||
12944 | |||
12945 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
12946 | sizeof(ntop), strport, sizeof(strport), | ||
12947 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
12948 | |||
12949 | if (err != 0) { | ||
12950 | if (err == EAI_SYSTEM) | ||
12951 | perror("getnameinfo EAI_SYSTEM"); | ||
12952 | else | ||
12953 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
12954 | gai_strerror(err)); | ||
12955 | exit(2); | ||
12956 | } | ||
12957 | |||
12958 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
12959 | if (sock < 0) | ||
12960 | perror("socket"); | ||
12961 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
12962 | if (errno == EBADF) | ||
12963 | exit(3); | ||
12964 | } | ||
12965 | } | ||
12966 | exit(0); | ||
12967 | } | ||
12968 | |||
12969 | _ACEOF | ||
12970 | rm -f conftest$ac_exeext | ||
12971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12972 | (eval $ac_link) 2>&5 | ||
12973 | ac_status=$? | ||
12974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12975 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12977 | (eval $ac_try) 2>&5 | ||
12978 | ac_status=$? | ||
12979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12980 | (exit $ac_status); }; }; then | ||
12981 | |||
12982 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12983 | echo "${ECHO_T}yes" >&6 | ||
12984 | |||
12985 | else | ||
12986 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12987 | echo "$as_me: failed program was:" >&5 | ||
12988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12989 | |||
12990 | ( exit $ac_status ) | ||
12991 | |||
12992 | echo "$as_me:$LINENO: result: no" >&5 | ||
12993 | echo "${ECHO_T}no" >&6 | ||
12994 | cat >>confdefs.h <<\_ACEOF | ||
12995 | #define BROKEN_GETADDRINFO 1 | ||
12996 | _ACEOF | ||
12997 | |||
12998 | |||
12999 | |||
13000 | fi | ||
13001 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13002 | fi | ||
13003 | fi | ||
13004 | |||
13005 | if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
13006 | echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
13007 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 | ||
13008 | if test "$cross_compiling" = yes; then | ||
13009 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
13010 | See \`config.log' for more details." >&5 | ||
13011 | echo "$as_me: error: cannot run test program while cross compiling | ||
13012 | See \`config.log' for more details." >&2;} | ||
13013 | { (exit 1); exit 1; }; } | ||
13014 | else | ||
13015 | cat >conftest.$ac_ext <<_ACEOF | ||
13016 | /* confdefs.h. */ | ||
13017 | _ACEOF | ||
13018 | cat confdefs.h >>conftest.$ac_ext | ||
13019 | cat >>conftest.$ac_ext <<_ACEOF | ||
13020 | /* end confdefs.h. */ | ||
13021 | |||
13022 | #include <stdio.h> | ||
13023 | #include <sys/socket.h> | ||
13024 | #include <netdb.h> | ||
13025 | #include <errno.h> | ||
13026 | #include <netinet/in.h> | ||
13027 | |||
13028 | #define TEST_PORT "2222" | ||
13029 | |||
13030 | int | ||
13031 | main(void) | ||
13032 | { | ||
13033 | int err, sock; | ||
13034 | struct addrinfo *gai_ai, *ai, hints; | ||
13035 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
13036 | |||
13037 | memset(&hints, 0, sizeof(hints)); | ||
13038 | hints.ai_family = PF_UNSPEC; | ||
13039 | hints.ai_socktype = SOCK_STREAM; | ||
13040 | hints.ai_flags = AI_PASSIVE; | ||
13041 | |||
13042 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
13043 | if (err != 0) { | ||
13044 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
13045 | exit(1); | ||
13046 | } | ||
13047 | |||
13048 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
13049 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
13050 | continue; | ||
13051 | |||
13052 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
13053 | sizeof(ntop), strport, sizeof(strport), | ||
13054 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
13055 | |||
13056 | if (ai->ai_family == AF_INET && err != 0) { | ||
13057 | perror("getnameinfo"); | ||
13058 | exit(2); | ||
13059 | } | ||
13060 | } | ||
13061 | exit(0); | ||
13062 | } | ||
13063 | |||
13064 | _ACEOF | ||
13065 | rm -f conftest$ac_exeext | ||
13066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13067 | (eval $ac_link) 2>&5 | ||
13068 | ac_status=$? | ||
13069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13070 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13072 | (eval $ac_try) 2>&5 | ||
13073 | ac_status=$? | ||
13074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13075 | (exit $ac_status); }; }; then | ||
13076 | |||
13077 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13078 | echo "${ECHO_T}yes" >&6 | ||
13079 | |||
13080 | cat >>confdefs.h <<\_ACEOF | ||
13081 | #define AIX_GETNAMEINFO_HACK | ||
13082 | _ACEOF | ||
13083 | |||
13084 | |||
13085 | else | ||
13086 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13087 | echo "$as_me: failed program was:" >&5 | ||
13088 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13089 | |||
13090 | ( exit $ac_status ) | ||
13091 | |||
13092 | echo "$as_me:$LINENO: result: no" >&5 | ||
13093 | echo "${ECHO_T}no" >&6 | ||
13094 | cat >>confdefs.h <<\_ACEOF | ||
13095 | #define BROKEN_GETADDRINFO 1 | ||
13096 | _ACEOF | ||
13097 | |||
13098 | |||
13099 | |||
13100 | fi | ||
13101 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13102 | fi | ||
13103 | fi | ||
13104 | |||
13105 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
13106 | echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
13107 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6 | ||
13108 | cat >conftest.$ac_ext <<_ACEOF | ||
13109 | |||
13110 | #include <shadow.h> | ||
13111 | int main(void) {exit(0);} | ||
13112 | |||
13113 | _ACEOF | ||
13114 | rm -f conftest.$ac_objext | ||
13115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13116 | (eval $ac_compile) 2>conftest.er1 | ||
13117 | ac_status=$? | ||
13118 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13119 | rm -f conftest.er1 | ||
13120 | cat conftest.err >&5 | ||
13121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13122 | (exit $ac_status); } && | ||
13123 | { ac_try='test -z "$ac_c_werror_flag" | ||
13124 | || test ! -s conftest.err' | ||
13125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13126 | (eval $ac_try) 2>&5 | ||
13127 | ac_status=$? | ||
13128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13129 | (exit $ac_status); }; } && | ||
13130 | { ac_try='test -s conftest.$ac_objext' | ||
13131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13132 | (eval $ac_try) 2>&5 | ||
13133 | ac_status=$? | ||
13134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13135 | (exit $ac_status); }; }; then | ||
13136 | |||
13137 | echo "$as_me:$LINENO: result: no" >&5 | ||
13138 | echo "${ECHO_T}no" >&6 | ||
13139 | |||
13140 | else | ||
13141 | echo "$as_me: failed program was:" >&5 | ||
13142 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13143 | |||
13144 | |||
13145 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13146 | echo "${ECHO_T}yes" >&6 | ||
13147 | |||
13148 | cat >>confdefs.h <<\_ACEOF | ||
13149 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
13150 | _ACEOF | ||
13151 | |||
13152 | |||
13153 | |||
13154 | fi | ||
13155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13156 | fi | ||
13157 | |||
13158 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
13159 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | ||
13160 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
13161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13162 | else | ||
13163 | # Use it with a single arg. | ||
13164 | cat >conftest.$ac_ext <<_ACEOF | ||
13165 | /* confdefs.h. */ | ||
13166 | _ACEOF | ||
13167 | cat confdefs.h >>conftest.$ac_ext | ||
13168 | cat >>conftest.$ac_ext <<_ACEOF | ||
13169 | /* end confdefs.h. */ | ||
13170 | $ac_includes_default | ||
13171 | int | ||
13172 | main () | ||
13173 | { | ||
13174 | getpgrp (0); | ||
13175 | ; | ||
13176 | return 0; | ||
13177 | } | ||
13178 | _ACEOF | ||
13179 | rm -f conftest.$ac_objext | ||
13180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13181 | (eval $ac_compile) 2>conftest.er1 | ||
13182 | ac_status=$? | ||
13183 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13184 | rm -f conftest.er1 | ||
13185 | cat conftest.err >&5 | ||
13186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13187 | (exit $ac_status); } && | ||
13188 | { ac_try='test -z "$ac_c_werror_flag" | ||
13189 | || test ! -s conftest.err' | ||
13190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13191 | (eval $ac_try) 2>&5 | ||
13192 | ac_status=$? | ||
13193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13194 | (exit $ac_status); }; } && | ||
13195 | { ac_try='test -s conftest.$ac_objext' | ||
13196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13197 | (eval $ac_try) 2>&5 | ||
13198 | ac_status=$? | ||
13199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13200 | (exit $ac_status); }; }; then | ||
13201 | ac_cv_func_getpgrp_void=no | ||
13202 | else | ||
13203 | echo "$as_me: failed program was:" >&5 | ||
13204 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13205 | |||
13206 | ac_cv_func_getpgrp_void=yes | ||
13207 | fi | ||
13208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13209 | |||
13210 | fi | ||
13211 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
13212 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
13213 | if test $ac_cv_func_getpgrp_void = yes; then | ||
13214 | |||
13215 | cat >>confdefs.h <<\_ACEOF | ||
13216 | #define GETPGRP_VOID 1 | ||
13217 | _ACEOF | ||
13218 | |||
13219 | fi | ||
13220 | |||
13221 | |||
13222 | # Check for PAM libs | ||
13223 | PAM_MSG="no" | ||
13224 | |||
13225 | # Check whether --with-pam or --without-pam was given. | ||
13226 | if test "${with_pam+set}" = set; then | ||
13227 | withval="$with_pam" | ||
13228 | |||
13229 | if test "x$withval" != "xno" ; then | ||
13230 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
13231 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
13232 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
13233 | echo "$as_me: error: PAM headers not found" >&2;} | ||
13234 | { (exit 1); exit 1; }; } | ||
13235 | fi | ||
13236 | |||
13237 | |||
13238 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
13239 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
13240 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
13241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13242 | else | ||
13243 | ac_check_lib_save_LIBS=$LIBS | ||
13244 | LIBS="-ldl $LIBS" | ||
13245 | cat >conftest.$ac_ext <<_ACEOF | ||
13246 | /* confdefs.h. */ | ||
13247 | _ACEOF | ||
13248 | cat confdefs.h >>conftest.$ac_ext | ||
13249 | cat >>conftest.$ac_ext <<_ACEOF | ||
13250 | /* end confdefs.h. */ | ||
13251 | |||
13252 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13253 | #ifdef __cplusplus | ||
13254 | extern "C" | ||
13255 | #endif | ||
13256 | /* We use char because int might match the return type of a gcc2 | ||
13257 | builtin and then its argument prototype would still apply. */ | ||
13258 | char dlopen (); | ||
13259 | int | ||
13260 | main () | ||
13261 | { | ||
13262 | dlopen (); | ||
13263 | ; | ||
13264 | return 0; | ||
13265 | } | ||
13266 | _ACEOF | ||
13267 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13269 | (eval $ac_link) 2>conftest.er1 | ||
13270 | ac_status=$? | ||
13271 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13272 | rm -f conftest.er1 | ||
13273 | cat conftest.err >&5 | ||
13274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13275 | (exit $ac_status); } && | ||
13276 | { ac_try='test -z "$ac_c_werror_flag" | ||
13277 | || test ! -s conftest.err' | ||
13278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13279 | (eval $ac_try) 2>&5 | ||
13280 | ac_status=$? | ||
13281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13282 | (exit $ac_status); }; } && | ||
13283 | { ac_try='test -s conftest$ac_exeext' | ||
13284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13285 | (eval $ac_try) 2>&5 | ||
13286 | ac_status=$? | ||
13287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13288 | (exit $ac_status); }; }; then | ||
13289 | ac_cv_lib_dl_dlopen=yes | ||
13290 | else | ||
13291 | echo "$as_me: failed program was:" >&5 | ||
13292 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13293 | |||
13294 | ac_cv_lib_dl_dlopen=no | ||
13295 | fi | ||
13296 | rm -f conftest.err conftest.$ac_objext \ | ||
13297 | conftest$ac_exeext conftest.$ac_ext | ||
13298 | LIBS=$ac_check_lib_save_LIBS | ||
13299 | fi | ||
13300 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
13301 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
13302 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
13303 | cat >>confdefs.h <<_ACEOF | ||
13304 | #define HAVE_LIBDL 1 | ||
13305 | _ACEOF | ||
13306 | |||
13307 | LIBS="-ldl $LIBS" | ||
13308 | |||
13309 | fi | ||
13310 | |||
13311 | |||
13312 | echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
13313 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
13314 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
13315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13316 | else | ||
13317 | ac_check_lib_save_LIBS=$LIBS | ||
13318 | LIBS="-lpam $LIBS" | ||
13319 | cat >conftest.$ac_ext <<_ACEOF | ||
13320 | /* confdefs.h. */ | ||
13321 | _ACEOF | ||
13322 | cat confdefs.h >>conftest.$ac_ext | ||
13323 | cat >>conftest.$ac_ext <<_ACEOF | ||
13324 | /* end confdefs.h. */ | ||
13325 | |||
13326 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13327 | #ifdef __cplusplus | ||
13328 | extern "C" | ||
13329 | #endif | ||
13330 | /* We use char because int might match the return type of a gcc2 | ||
13331 | builtin and then its argument prototype would still apply. */ | ||
13332 | char pam_set_item (); | ||
13333 | int | ||
13334 | main () | ||
13335 | { | ||
13336 | pam_set_item (); | ||
13337 | ; | ||
13338 | return 0; | ||
13339 | } | ||
13340 | _ACEOF | ||
13341 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13343 | (eval $ac_link) 2>conftest.er1 | ||
13344 | ac_status=$? | ||
13345 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13346 | rm -f conftest.er1 | ||
13347 | cat conftest.err >&5 | ||
13348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13349 | (exit $ac_status); } && | ||
13350 | { ac_try='test -z "$ac_c_werror_flag" | ||
13351 | || test ! -s conftest.err' | ||
13352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13353 | (eval $ac_try) 2>&5 | ||
13354 | ac_status=$? | ||
13355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13356 | (exit $ac_status); }; } && | ||
13357 | { ac_try='test -s conftest$ac_exeext' | ||
13358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13359 | (eval $ac_try) 2>&5 | ||
13360 | ac_status=$? | ||
13361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13362 | (exit $ac_status); }; }; then | ||
13363 | ac_cv_lib_pam_pam_set_item=yes | ||
13364 | else | ||
13365 | echo "$as_me: failed program was:" >&5 | ||
13366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13367 | |||
13368 | ac_cv_lib_pam_pam_set_item=no | ||
13369 | fi | ||
13370 | rm -f conftest.err conftest.$ac_objext \ | ||
13371 | conftest$ac_exeext conftest.$ac_ext | ||
13372 | LIBS=$ac_check_lib_save_LIBS | ||
13373 | fi | ||
13374 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
13375 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
13376 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
13377 | cat >>confdefs.h <<_ACEOF | ||
13378 | #define HAVE_LIBPAM 1 | ||
13379 | _ACEOF | ||
13380 | |||
13381 | LIBS="-lpam $LIBS" | ||
13382 | |||
13383 | else | ||
13384 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
13385 | echo "$as_me: error: *** libpam missing" >&2;} | ||
13386 | { (exit 1); exit 1; }; } | ||
13387 | fi | ||
13388 | |||
13389 | |||
13390 | for ac_func in pam_getenvlist | ||
13391 | do | ||
13392 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13393 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13394 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
13395 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
13396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13397 | else | ||
13398 | cat >conftest.$ac_ext <<_ACEOF | ||
13399 | /* confdefs.h. */ | ||
13400 | _ACEOF | ||
13401 | cat confdefs.h >>conftest.$ac_ext | ||
13402 | cat >>conftest.$ac_ext <<_ACEOF | ||
13403 | /* end confdefs.h. */ | ||
13404 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13405 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13406 | #define $ac_func innocuous_$ac_func | ||
13407 | |||
13408 | /* System header to define __stub macros and hopefully few prototypes, | ||
13409 | which can conflict with char $ac_func (); below. | ||
13410 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13411 | <limits.h> exists even on freestanding compilers. */ | ||
13412 | |||
13413 | #ifdef __STDC__ | ||
13414 | # include <limits.h> | ||
13415 | #else | ||
13416 | # include <assert.h> | ||
13417 | #endif | ||
13418 | |||
13419 | #undef $ac_func | ||
13420 | |||
13421 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13422 | #ifdef __cplusplus | ||
13423 | extern "C" | ||
13424 | { | ||
13425 | #endif | ||
13426 | /* We use char because int might match the return type of a gcc2 | ||
13427 | builtin and then its argument prototype would still apply. */ | ||
13428 | char $ac_func (); | ||
13429 | /* The GNU C library defines this for functions which it implements | ||
13430 | to always fail with ENOSYS. Some functions are actually named | ||
13431 | something starting with __ and the normal name is an alias. */ | ||
13432 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
13433 | choke me | ||
13434 | #else | ||
13435 | char (*f) () = $ac_func; | ||
13436 | #endif | ||
13437 | #ifdef __cplusplus | ||
13438 | } | ||
13439 | #endif | ||
13440 | |||
13441 | int | ||
13442 | main () | ||
13443 | { | ||
13444 | return f != $ac_func; | ||
13445 | ; | ||
13446 | return 0; | ||
13447 | } | ||
13448 | _ACEOF | ||
13449 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13451 | (eval $ac_link) 2>conftest.er1 | ||
13452 | ac_status=$? | ||
13453 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13454 | rm -f conftest.er1 | ||
13455 | cat conftest.err >&5 | ||
13456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13457 | (exit $ac_status); } && | ||
13458 | { ac_try='test -z "$ac_c_werror_flag" | ||
13459 | || test ! -s conftest.err' | ||
13460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13461 | (eval $ac_try) 2>&5 | ||
13462 | ac_status=$? | ||
13463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13464 | (exit $ac_status); }; } && | ||
13465 | { ac_try='test -s conftest$ac_exeext' | ||
13466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13467 | (eval $ac_try) 2>&5 | ||
13468 | ac_status=$? | ||
13469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13470 | (exit $ac_status); }; }; then | ||
13471 | eval "$as_ac_var=yes" | ||
13472 | else | ||
13473 | echo "$as_me: failed program was:" >&5 | ||
13474 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13475 | |||
13476 | eval "$as_ac_var=no" | ||
13477 | fi | ||
13478 | rm -f conftest.err conftest.$ac_objext \ | ||
13479 | conftest$ac_exeext conftest.$ac_ext | ||
13480 | fi | ||
13481 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
13482 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
13483 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13484 | cat >>confdefs.h <<_ACEOF | ||
13485 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13486 | _ACEOF | ||
13487 | |||
13488 | fi | ||
13489 | done | ||
13490 | |||
13491 | |||
13492 | for ac_func in pam_putenv | ||
13493 | do | ||
13494 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13495 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13496 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
13497 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
13498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13499 | else | ||
13500 | cat >conftest.$ac_ext <<_ACEOF | ||
13501 | /* confdefs.h. */ | ||
13502 | _ACEOF | ||
13503 | cat confdefs.h >>conftest.$ac_ext | ||
13504 | cat >>conftest.$ac_ext <<_ACEOF | ||
13505 | /* end confdefs.h. */ | ||
13506 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13507 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13508 | #define $ac_func innocuous_$ac_func | ||
13509 | |||
13510 | /* System header to define __stub macros and hopefully few prototypes, | ||
13511 | which can conflict with char $ac_func (); below. | ||
13512 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13513 | <limits.h> exists even on freestanding compilers. */ | ||
13514 | |||
13515 | #ifdef __STDC__ | ||
13516 | # include <limits.h> | ||
13517 | #else | ||
13518 | # include <assert.h> | ||
13519 | #endif | ||
13520 | |||
13521 | #undef $ac_func | ||
13522 | |||
13523 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13524 | #ifdef __cplusplus | ||
13525 | extern "C" | ||
13526 | { | ||
13527 | #endif | ||
13528 | /* We use char because int might match the return type of a gcc2 | ||
13529 | builtin and then its argument prototype would still apply. */ | ||
13530 | char $ac_func (); | ||
13531 | /* The GNU C library defines this for functions which it implements | ||
13532 | to always fail with ENOSYS. Some functions are actually named | ||
13533 | something starting with __ and the normal name is an alias. */ | ||
13534 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
13535 | choke me | ||
13536 | #else | ||
13537 | char (*f) () = $ac_func; | ||
13538 | #endif | ||
13539 | #ifdef __cplusplus | ||
13540 | } | ||
13541 | #endif | ||
13542 | |||
13543 | int | ||
13544 | main () | ||
13545 | { | ||
13546 | return f != $ac_func; | ||
13547 | ; | ||
13548 | return 0; | ||
13549 | } | ||
13550 | _ACEOF | ||
13551 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13553 | (eval $ac_link) 2>conftest.er1 | ||
13554 | ac_status=$? | ||
13555 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13556 | rm -f conftest.er1 | ||
13557 | cat conftest.err >&5 | ||
13558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13559 | (exit $ac_status); } && | ||
13560 | { ac_try='test -z "$ac_c_werror_flag" | ||
13561 | || test ! -s conftest.err' | ||
13562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13563 | (eval $ac_try) 2>&5 | ||
13564 | ac_status=$? | ||
13565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13566 | (exit $ac_status); }; } && | ||
13567 | { ac_try='test -s conftest$ac_exeext' | ||
13568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13569 | (eval $ac_try) 2>&5 | ||
13570 | ac_status=$? | ||
13571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13572 | (exit $ac_status); }; }; then | ||
13573 | eval "$as_ac_var=yes" | ||
13574 | else | ||
13575 | echo "$as_me: failed program was:" >&5 | ||
13576 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13577 | |||
13578 | eval "$as_ac_var=no" | ||
13579 | fi | ||
13580 | rm -f conftest.err conftest.$ac_objext \ | ||
13581 | conftest$ac_exeext conftest.$ac_ext | ||
13582 | fi | ||
13583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
13584 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
13585 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13586 | cat >>confdefs.h <<_ACEOF | ||
13587 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13588 | _ACEOF | ||
13589 | |||
13590 | fi | ||
13591 | done | ||
13592 | |||
13593 | |||
13594 | PAM_MSG="yes" | ||
13595 | |||
13596 | cat >>confdefs.h <<\_ACEOF | ||
13597 | #define USE_PAM 1 | ||
13598 | _ACEOF | ||
13599 | |||
13600 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
13601 | LIBPAM="-lpam -ldl" | ||
13602 | else | ||
13603 | LIBPAM="-lpam" | ||
13604 | fi | ||
13605 | |||
13606 | fi | ||
13607 | |||
13608 | |||
13609 | fi; | ||
13610 | |||
13611 | # Check for older PAM | ||
13612 | if test "x$PAM_MSG" = "xyes" ; then | ||
13613 | # Check PAM strerror arguments (old PAM) | ||
13614 | echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
13615 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
13616 | cat >conftest.$ac_ext <<_ACEOF | ||
13617 | /* confdefs.h. */ | ||
13618 | _ACEOF | ||
13619 | cat confdefs.h >>conftest.$ac_ext | ||
13620 | cat >>conftest.$ac_ext <<_ACEOF | ||
13621 | /* end confdefs.h. */ | ||
13622 | |||
13623 | #include <stdlib.h> | ||
13624 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
13625 | #include <security/pam_appl.h> | ||
13626 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
13627 | #include <pam/pam_appl.h> | ||
13628 | #endif | ||
13629 | |||
13630 | int | ||
13631 | main () | ||
13632 | { | ||
13633 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
13634 | ; | ||
13635 | return 0; | ||
13636 | } | ||
13637 | _ACEOF | ||
13638 | rm -f conftest.$ac_objext | ||
13639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13640 | (eval $ac_compile) 2>conftest.er1 | ||
13641 | ac_status=$? | ||
13642 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13643 | rm -f conftest.er1 | ||
13644 | cat conftest.err >&5 | ||
13645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13646 | (exit $ac_status); } && | ||
13647 | { ac_try='test -z "$ac_c_werror_flag" | ||
13648 | || test ! -s conftest.err' | ||
13649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13650 | (eval $ac_try) 2>&5 | ||
13651 | ac_status=$? | ||
13652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13653 | (exit $ac_status); }; } && | ||
13654 | { ac_try='test -s conftest.$ac_objext' | ||
13655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13656 | (eval $ac_try) 2>&5 | ||
13657 | ac_status=$? | ||
13658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13659 | (exit $ac_status); }; }; then | ||
13660 | echo "$as_me:$LINENO: result: no" >&5 | ||
13661 | echo "${ECHO_T}no" >&6 | ||
13662 | else | ||
13663 | echo "$as_me: failed program was:" >&5 | ||
13664 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13665 | |||
13666 | |||
13667 | cat >>confdefs.h <<\_ACEOF | ||
13668 | #define HAVE_OLD_PAM 1 | ||
13669 | _ACEOF | ||
13670 | |||
13671 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13672 | echo "${ECHO_T}yes" >&6 | ||
13673 | PAM_MSG="yes (old library)" | ||
13674 | |||
13675 | |||
13676 | fi | ||
13677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13678 | fi | ||
13679 | |||
13680 | # Search for OpenSSL | ||
13681 | saved_CPPFLAGS="$CPPFLAGS" | ||
13682 | saved_LDFLAGS="$LDFLAGS" | ||
13683 | |||
13684 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
13685 | if test "${with_ssl_dir+set}" = set; then | ||
13686 | withval="$with_ssl_dir" | ||
13687 | |||
13688 | if test "x$withval" != "xno" ; then | ||
13689 | case "$withval" in | ||
13690 | # Relative paths | ||
13691 | ./*|../*) withval="`pwd`/$withval" | ||
13692 | esac | ||
13693 | if test -d "$withval/lib"; then | ||
13694 | if test -n "${need_dash_r}"; then | ||
13695 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
13696 | else | ||
13697 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
13698 | fi | ||
13699 | else | ||
13700 | if test -n "${need_dash_r}"; then | ||
13701 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
13702 | else | ||
13703 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
13704 | fi | ||
13705 | fi | ||
13706 | if test -d "$withval/include"; then | ||
13707 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
13708 | else | ||
13709 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
13710 | fi | ||
13711 | fi | ||
13712 | |||
13713 | |||
13714 | fi; | ||
13715 | LIBS="-lcrypto $LIBS" | ||
13716 | cat >conftest.$ac_ext <<_ACEOF | ||
13717 | /* confdefs.h. */ | ||
13718 | _ACEOF | ||
13719 | cat confdefs.h >>conftest.$ac_ext | ||
13720 | cat >>conftest.$ac_ext <<_ACEOF | ||
13721 | /* end confdefs.h. */ | ||
13722 | |||
13723 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13724 | #ifdef __cplusplus | ||
13725 | extern "C" | ||
13726 | #endif | ||
13727 | /* We use char because int might match the return type of a gcc2 | ||
13728 | builtin and then its argument prototype would still apply. */ | ||
13729 | char RAND_add (); | ||
13730 | int | ||
13731 | main () | ||
13732 | { | ||
13733 | RAND_add (); | ||
13734 | ; | ||
13735 | return 0; | ||
13736 | } | ||
13737 | _ACEOF | ||
13738 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13740 | (eval $ac_link) 2>conftest.er1 | ||
13741 | ac_status=$? | ||
13742 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13743 | rm -f conftest.er1 | ||
13744 | cat conftest.err >&5 | ||
13745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13746 | (exit $ac_status); } && | ||
13747 | { ac_try='test -z "$ac_c_werror_flag" | ||
13748 | || test ! -s conftest.err' | ||
13749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13750 | (eval $ac_try) 2>&5 | ||
13751 | ac_status=$? | ||
13752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13753 | (exit $ac_status); }; } && | ||
13754 | { ac_try='test -s conftest$ac_exeext' | ||
13755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13756 | (eval $ac_try) 2>&5 | ||
13757 | ac_status=$? | ||
13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13759 | (exit $ac_status); }; }; then | ||
13760 | cat >>confdefs.h <<\_ACEOF | ||
13761 | #define HAVE_OPENSSL 1 | ||
13762 | _ACEOF | ||
13763 | |||
13764 | else | ||
13765 | echo "$as_me: failed program was:" >&5 | ||
13766 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13767 | |||
13768 | |||
13769 | if test -n "${need_dash_r}"; then | ||
13770 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
13771 | else | ||
13772 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
13773 | fi | ||
13774 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
13775 | cat >conftest.$ac_ext <<_ACEOF | ||
13776 | /* confdefs.h. */ | ||
13777 | _ACEOF | ||
13778 | cat confdefs.h >>conftest.$ac_ext | ||
13779 | cat >>conftest.$ac_ext <<_ACEOF | ||
13780 | /* end confdefs.h. */ | ||
13781 | |||
13782 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13783 | #ifdef __cplusplus | ||
13784 | extern "C" | ||
13785 | #endif | ||
13786 | /* We use char because int might match the return type of a gcc2 | ||
13787 | builtin and then its argument prototype would still apply. */ | ||
13788 | char RAND_add (); | ||
13789 | int | ||
13790 | main () | ||
13791 | { | ||
13792 | RAND_add (); | ||
13793 | ; | ||
13794 | return 0; | ||
13795 | } | ||
13796 | _ACEOF | ||
13797 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13799 | (eval $ac_link) 2>conftest.er1 | ||
13800 | ac_status=$? | ||
13801 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13802 | rm -f conftest.er1 | ||
13803 | cat conftest.err >&5 | ||
13804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13805 | (exit $ac_status); } && | ||
13806 | { ac_try='test -z "$ac_c_werror_flag" | ||
13807 | || test ! -s conftest.err' | ||
13808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13809 | (eval $ac_try) 2>&5 | ||
13810 | ac_status=$? | ||
13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13812 | (exit $ac_status); }; } && | ||
13813 | { ac_try='test -s conftest$ac_exeext' | ||
13814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13815 | (eval $ac_try) 2>&5 | ||
13816 | ac_status=$? | ||
13817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13818 | (exit $ac_status); }; }; then | ||
13819 | cat >>confdefs.h <<\_ACEOF | ||
13820 | #define HAVE_OPENSSL 1 | ||
13821 | _ACEOF | ||
13822 | |||
13823 | else | ||
13824 | echo "$as_me: failed program was:" >&5 | ||
13825 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13826 | |||
13827 | |||
13828 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
13829 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
13830 | { (exit 1); exit 1; }; } | ||
13831 | |||
13832 | |||
13833 | fi | ||
13834 | rm -f conftest.err conftest.$ac_objext \ | ||
13835 | conftest$ac_exeext conftest.$ac_ext | ||
13836 | |||
13837 | |||
13838 | fi | ||
13839 | rm -f conftest.err conftest.$ac_objext \ | ||
13840 | conftest$ac_exeext conftest.$ac_ext | ||
13841 | |||
13842 | # Determine OpenSSL header version | ||
13843 | echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
13844 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
13845 | if test "$cross_compiling" = yes; then | ||
13846 | |||
13847 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
13848 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
13849 | |||
13850 | |||
13851 | else | ||
13852 | cat >conftest.$ac_ext <<_ACEOF | ||
13853 | /* confdefs.h. */ | ||
13854 | _ACEOF | ||
13855 | cat confdefs.h >>conftest.$ac_ext | ||
13856 | cat >>conftest.$ac_ext <<_ACEOF | ||
13857 | /* end confdefs.h. */ | ||
13858 | |||
13859 | #include <stdio.h> | ||
13860 | #include <string.h> | ||
13861 | #include <openssl/opensslv.h> | ||
13862 | #define DATA "conftest.sslincver" | ||
13863 | int main(void) { | ||
13864 | FILE *fd; | ||
13865 | int rc; | ||
13866 | |||
13867 | fd = fopen(DATA,"w"); | ||
13868 | if(fd == NULL) | ||
13869 | exit(1); | ||
13870 | |||
13871 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
13872 | exit(1); | ||
13873 | |||
13874 | exit(0); | ||
13875 | } | ||
13876 | |||
13877 | _ACEOF | ||
13878 | rm -f conftest$ac_exeext | ||
13879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13880 | (eval $ac_link) 2>&5 | ||
13881 | ac_status=$? | ||
13882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13883 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13885 | (eval $ac_try) 2>&5 | ||
13886 | ac_status=$? | ||
13887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13888 | (exit $ac_status); }; }; then | ||
13889 | |||
13890 | ssl_header_ver=`cat conftest.sslincver` | ||
13891 | echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
13892 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
13893 | |||
13894 | else | ||
13895 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13896 | echo "$as_me: failed program was:" >&5 | ||
13897 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13898 | |||
13899 | ( exit $ac_status ) | ||
13900 | |||
13901 | echo "$as_me:$LINENO: result: not found" >&5 | ||
13902 | echo "${ECHO_T}not found" >&6 | ||
13903 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
13904 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
13905 | { (exit 1); exit 1; }; } | ||
13906 | |||
13907 | fi | ||
13908 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13909 | fi | ||
13910 | |||
13911 | # Determine OpenSSL library version | ||
13912 | echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
13913 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
13914 | if test "$cross_compiling" = yes; then | ||
13915 | |||
13916 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
13917 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
13918 | |||
13919 | |||
13920 | else | ||
13921 | cat >conftest.$ac_ext <<_ACEOF | ||
13922 | /* confdefs.h. */ | ||
13923 | _ACEOF | ||
13924 | cat confdefs.h >>conftest.$ac_ext | ||
13925 | cat >>conftest.$ac_ext <<_ACEOF | ||
13926 | /* end confdefs.h. */ | ||
13927 | |||
13928 | #include <stdio.h> | ||
13929 | #include <string.h> | ||
13930 | #include <openssl/opensslv.h> | ||
13931 | #include <openssl/crypto.h> | ||
13932 | #define DATA "conftest.ssllibver" | ||
13933 | int main(void) { | ||
13934 | FILE *fd; | ||
13935 | int rc; | ||
13936 | |||
13937 | fd = fopen(DATA,"w"); | ||
13938 | if(fd == NULL) | ||
13939 | exit(1); | ||
13940 | |||
13941 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
13942 | exit(1); | ||
13943 | |||
13944 | exit(0); | ||
13945 | } | ||
13946 | |||
13947 | _ACEOF | ||
13948 | rm -f conftest$ac_exeext | ||
13949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13950 | (eval $ac_link) 2>&5 | ||
13951 | ac_status=$? | ||
13952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13953 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13955 | (eval $ac_try) 2>&5 | ||
13956 | ac_status=$? | ||
13957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13958 | (exit $ac_status); }; }; then | ||
13959 | |||
13960 | ssl_library_ver=`cat conftest.ssllibver` | ||
13961 | echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
13962 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
13963 | |||
13964 | else | ||
13965 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13966 | echo "$as_me: failed program was:" >&5 | ||
13967 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13968 | |||
13969 | ( exit $ac_status ) | ||
13970 | |||
13971 | echo "$as_me:$LINENO: result: not found" >&5 | ||
13972 | echo "${ECHO_T}not found" >&6 | ||
13973 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
13974 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
13975 | { (exit 1); exit 1; }; } | ||
13976 | |||
13977 | fi | ||
13978 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13979 | fi | ||
13980 | |||
13981 | # Sanity check OpenSSL headers | ||
13982 | echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
13983 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
13984 | if test "$cross_compiling" = yes; then | ||
13985 | |||
13986 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
13987 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
13988 | |||
13989 | |||
13990 | else | ||
13991 | cat >conftest.$ac_ext <<_ACEOF | ||
13992 | /* confdefs.h. */ | ||
13993 | _ACEOF | ||
13994 | cat confdefs.h >>conftest.$ac_ext | ||
13995 | cat >>conftest.$ac_ext <<_ACEOF | ||
13996 | /* end confdefs.h. */ | ||
13997 | |||
13998 | #include <string.h> | ||
13999 | #include <openssl/opensslv.h> | ||
14000 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
14001 | |||
14002 | _ACEOF | ||
14003 | rm -f conftest$ac_exeext | ||
14004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14005 | (eval $ac_link) 2>&5 | ||
14006 | ac_status=$? | ||
14007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14008 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14010 | (eval $ac_try) 2>&5 | ||
14011 | ac_status=$? | ||
14012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14013 | (exit $ac_status); }; }; then | ||
14014 | |||
14015 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14016 | echo "${ECHO_T}yes" >&6 | ||
14017 | |||
14018 | else | ||
14019 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14020 | echo "$as_me: failed program was:" >&5 | ||
14021 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14022 | |||
14023 | ( exit $ac_status ) | ||
14024 | |||
14025 | echo "$as_me:$LINENO: result: no" >&5 | ||
14026 | echo "${ECHO_T}no" >&6 | ||
14027 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library. | ||
14028 | Check config.log for details. | ||
14029 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
14030 | echo "$as_me: error: Your OpenSSL headers do not match your library. | ||
14031 | Check config.log for details. | ||
14032 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
14033 | { (exit 1); exit 1; }; } | ||
14034 | |||
14035 | fi | ||
14036 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14037 | fi | ||
14038 | |||
14039 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
14040 | # because the system crypt() is more featureful. | ||
14041 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
14042 | |||
14043 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
14044 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
14045 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
14046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14047 | else | ||
14048 | ac_check_lib_save_LIBS=$LIBS | ||
14049 | LIBS="-lcrypt $LIBS" | ||
14050 | cat >conftest.$ac_ext <<_ACEOF | ||
14051 | /* confdefs.h. */ | ||
14052 | _ACEOF | ||
14053 | cat confdefs.h >>conftest.$ac_ext | ||
14054 | cat >>conftest.$ac_ext <<_ACEOF | ||
14055 | /* end confdefs.h. */ | ||
14056 | |||
14057 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14058 | #ifdef __cplusplus | ||
14059 | extern "C" | ||
14060 | #endif | ||
14061 | /* We use char because int might match the return type of a gcc2 | ||
14062 | builtin and then its argument prototype would still apply. */ | ||
14063 | char crypt (); | ||
14064 | int | ||
14065 | main () | ||
14066 | { | ||
14067 | crypt (); | ||
14068 | ; | ||
14069 | return 0; | ||
14070 | } | ||
14071 | _ACEOF | ||
14072 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14074 | (eval $ac_link) 2>conftest.er1 | ||
14075 | ac_status=$? | ||
14076 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14077 | rm -f conftest.er1 | ||
14078 | cat conftest.err >&5 | ||
14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14080 | (exit $ac_status); } && | ||
14081 | { ac_try='test -z "$ac_c_werror_flag" | ||
14082 | || test ! -s conftest.err' | ||
14083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14084 | (eval $ac_try) 2>&5 | ||
14085 | ac_status=$? | ||
14086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14087 | (exit $ac_status); }; } && | ||
14088 | { ac_try='test -s conftest$ac_exeext' | ||
14089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14090 | (eval $ac_try) 2>&5 | ||
14091 | ac_status=$? | ||
14092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14093 | (exit $ac_status); }; }; then | ||
14094 | ac_cv_lib_crypt_crypt=yes | ||
14095 | else | ||
14096 | echo "$as_me: failed program was:" >&5 | ||
14097 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14098 | |||
14099 | ac_cv_lib_crypt_crypt=no | ||
14100 | fi | ||
14101 | rm -f conftest.err conftest.$ac_objext \ | ||
14102 | conftest$ac_exeext conftest.$ac_ext | ||
14103 | LIBS=$ac_check_lib_save_LIBS | ||
14104 | fi | ||
14105 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
14106 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
14107 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
14108 | cat >>confdefs.h <<_ACEOF | ||
14109 | #define HAVE_LIBCRYPT 1 | ||
14110 | _ACEOF | ||
14111 | |||
14112 | LIBS="-lcrypt $LIBS" | ||
14113 | |||
14114 | fi | ||
14115 | |||
14116 | fi | ||
14117 | |||
14118 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
14119 | # version in OpenSSL. | ||
14120 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
14121 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
14122 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
14123 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
14124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14125 | else | ||
14126 | ac_check_lib_save_LIBS=$LIBS | ||
14127 | LIBS="-lcrypt $LIBS" | ||
14128 | cat >conftest.$ac_ext <<_ACEOF | ||
14129 | /* confdefs.h. */ | ||
14130 | _ACEOF | ||
14131 | cat confdefs.h >>conftest.$ac_ext | ||
14132 | cat >>conftest.$ac_ext <<_ACEOF | ||
14133 | /* end confdefs.h. */ | ||
14134 | |||
14135 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14136 | #ifdef __cplusplus | ||
14137 | extern "C" | ||
14138 | #endif | ||
14139 | /* We use char because int might match the return type of a gcc2 | ||
14140 | builtin and then its argument prototype would still apply. */ | ||
14141 | char crypt (); | ||
14142 | int | ||
14143 | main () | ||
14144 | { | ||
14145 | crypt (); | ||
14146 | ; | ||
14147 | return 0; | ||
14148 | } | ||
14149 | _ACEOF | ||
14150 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14152 | (eval $ac_link) 2>conftest.er1 | ||
14153 | ac_status=$? | ||
14154 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14155 | rm -f conftest.er1 | ||
14156 | cat conftest.err >&5 | ||
14157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14158 | (exit $ac_status); } && | ||
14159 | { ac_try='test -z "$ac_c_werror_flag" | ||
14160 | || test ! -s conftest.err' | ||
14161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14162 | (eval $ac_try) 2>&5 | ||
14163 | ac_status=$? | ||
14164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14165 | (exit $ac_status); }; } && | ||
14166 | { ac_try='test -s conftest$ac_exeext' | ||
14167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14168 | (eval $ac_try) 2>&5 | ||
14169 | ac_status=$? | ||
14170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14171 | (exit $ac_status); }; }; then | ||
14172 | ac_cv_lib_crypt_crypt=yes | ||
14173 | else | ||
14174 | echo "$as_me: failed program was:" >&5 | ||
14175 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14176 | |||
14177 | ac_cv_lib_crypt_crypt=no | ||
14178 | fi | ||
14179 | rm -f conftest.err conftest.$ac_objext \ | ||
14180 | conftest$ac_exeext conftest.$ac_ext | ||
14181 | LIBS=$ac_check_lib_save_LIBS | ||
14182 | fi | ||
14183 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
14184 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
14185 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
14186 | LIBS="$LIBS -lcrypt" | ||
14187 | fi | ||
14188 | |||
14189 | fi | ||
14190 | |||
14191 | |||
14192 | ### Configure cryptographic random number support | ||
14193 | |||
14194 | # Check wheter OpenSSL seeds itself | ||
14195 | echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
14196 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
14197 | if test "$cross_compiling" = yes; then | ||
14198 | |||
14199 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
14200 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14201 | # This is safe, since all recent OpenSSL versions will | ||
14202 | # complain at runtime if not seeded correctly. | ||
14203 | OPENSSL_SEEDS_ITSELF=yes | ||
14204 | |||
14205 | |||
14206 | else | ||
14207 | cat >conftest.$ac_ext <<_ACEOF | ||
14208 | /* confdefs.h. */ | ||
14209 | _ACEOF | ||
14210 | cat confdefs.h >>conftest.$ac_ext | ||
14211 | cat >>conftest.$ac_ext <<_ACEOF | ||
14212 | /* end confdefs.h. */ | ||
14213 | |||
14214 | #include <string.h> | ||
14215 | #include <openssl/rand.h> | ||
14216 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
14217 | |||
14218 | _ACEOF | ||
14219 | rm -f conftest$ac_exeext | ||
14220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14221 | (eval $ac_link) 2>&5 | ||
14222 | ac_status=$? | ||
14223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14224 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14226 | (eval $ac_try) 2>&5 | ||
14227 | ac_status=$? | ||
14228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14229 | (exit $ac_status); }; }; then | ||
14230 | |||
14231 | OPENSSL_SEEDS_ITSELF=yes | ||
14232 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14233 | echo "${ECHO_T}yes" >&6 | ||
14234 | |||
14235 | else | ||
14236 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14237 | echo "$as_me: failed program was:" >&5 | ||
14238 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14239 | |||
14240 | ( exit $ac_status ) | ||
14241 | |||
14242 | echo "$as_me:$LINENO: result: no" >&5 | ||
14243 | echo "${ECHO_T}no" >&6 | ||
14244 | # Default to use of the rand helper if OpenSSL doesn't | ||
14245 | # seed itself | ||
14246 | USE_RAND_HELPER=yes | ||
14247 | |||
14248 | fi | ||
14249 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14250 | fi | ||
14251 | |||
14252 | |||
14253 | # Do we want to force the use of the rand helper? | ||
14254 | |||
14255 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
14256 | if test "${with_rand_helper+set}" = set; then | ||
14257 | withval="$with_rand_helper" | ||
14258 | |||
14259 | if test "x$withval" = "xno" ; then | ||
14260 | # Force use of OpenSSL's internal RNG, even if | ||
14261 | # the previous test showed it to be unseeded. | ||
14262 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
14263 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
14264 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
14265 | OPENSSL_SEEDS_ITSELF=yes | ||
14266 | USE_RAND_HELPER="" | ||
14267 | fi | ||
14268 | else | ||
14269 | USE_RAND_HELPER=yes | ||
14270 | fi | ||
14271 | |||
14272 | fi; | ||
14273 | |||
14274 | # Which randomness source do we use? | ||
14275 | if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then | ||
14276 | # OpenSSL only | ||
14277 | cat >>confdefs.h <<\_ACEOF | ||
14278 | #define OPENSSL_PRNG_ONLY 1 | ||
14279 | _ACEOF | ||
14280 | |||
14281 | RAND_MSG="OpenSSL internal ONLY" | ||
14282 | INSTALL_SSH_RAND_HELPER="" | ||
14283 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
14284 | # install rand helper | ||
14285 | RAND_MSG="ssh-rand-helper" | ||
14286 | INSTALL_SSH_RAND_HELPER="yes" | ||
14287 | fi | ||
14288 | |||
14289 | |||
14290 | ### Configuration of ssh-rand-helper | ||
14291 | |||
14292 | # PRNGD TCP socket | ||
14293 | |||
14294 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
14295 | if test "${with_prngd_port+set}" = set; then | ||
14296 | withval="$with_prngd_port" | ||
14297 | |||
14298 | case "$withval" in | ||
14299 | no) | ||
14300 | withval="" | ||
14301 | ;; | ||
14302 | [0-9]*) | ||
14303 | ;; | ||
14304 | *) | ||
14305 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
14306 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
14307 | { (exit 1); exit 1; }; } | ||
14308 | ;; | ||
14309 | esac | ||
14310 | if test ! -z "$withval" ; then | ||
14311 | PRNGD_PORT="$withval" | ||
14312 | cat >>confdefs.h <<_ACEOF | ||
14313 | #define PRNGD_PORT $PRNGD_PORT | ||
14314 | _ACEOF | ||
14315 | |||
14316 | fi | ||
14317 | |||
14318 | |||
14319 | fi; | ||
14320 | |||
14321 | # PRNGD Unix domain socket | ||
14322 | |||
14323 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
14324 | if test "${with_prngd_socket+set}" = set; then | ||
14325 | withval="$with_prngd_socket" | ||
14326 | |||
14327 | case "$withval" in | ||
14328 | yes) | ||
14329 | withval="/var/run/egd-pool" | ||
14330 | ;; | ||
14331 | no) | ||
14332 | withval="" | ||
14333 | ;; | ||
14334 | /*) | ||
14335 | ;; | ||
14336 | *) | ||
14337 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
14338 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
14339 | { (exit 1); exit 1; }; } | ||
14340 | ;; | ||
14341 | esac | ||
14342 | |||
14343 | if test ! -z "$withval" ; then | ||
14344 | if test ! -z "$PRNGD_PORT" ; then | ||
14345 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
14346 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
14347 | { (exit 1); exit 1; }; } | ||
14348 | fi | ||
14349 | if test ! -r "$withval" ; then | ||
14350 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
14351 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
14352 | fi | ||
14353 | PRNGD_SOCKET="$withval" | ||
14354 | cat >>confdefs.h <<_ACEOF | ||
14355 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
14356 | _ACEOF | ||
14357 | |||
14358 | fi | ||
14359 | |||
14360 | else | ||
14361 | |||
14362 | # Check for existing socket only if we don't have a random device already | ||
14363 | if test "$USE_RAND_HELPER" = yes ; then | ||
14364 | echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
14365 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
14366 | # Insert other locations here | ||
14367 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
14368 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
14369 | PRNGD_SOCKET="$sock" | ||
14370 | cat >>confdefs.h <<_ACEOF | ||
14371 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
14372 | _ACEOF | ||
14373 | |||
14374 | break; | ||
14375 | fi | ||
14376 | done | ||
14377 | if test ! -z "$PRNGD_SOCKET" ; then | ||
14378 | echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
14379 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
14380 | else | ||
14381 | echo "$as_me:$LINENO: result: not found" >&5 | ||
14382 | echo "${ECHO_T}not found" >&6 | ||
14383 | fi | ||
14384 | fi | ||
14385 | |||
14386 | |||
14387 | fi; | ||
14388 | |||
14389 | # Change default command timeout for hashing entropy source | ||
14390 | entropy_timeout=200 | ||
14391 | |||
14392 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
14393 | if test "${with_entropy_timeout+set}" = set; then | ||
14394 | withval="$with_entropy_timeout" | ||
14395 | |||
14396 | if test "x$withval" != "xno" ; then | ||
14397 | entropy_timeout=$withval | ||
14398 | fi | ||
14399 | |||
14400 | |||
14401 | fi; | ||
14402 | cat >>confdefs.h <<_ACEOF | ||
14403 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
14404 | _ACEOF | ||
14405 | |||
14406 | |||
14407 | SSH_PRIVSEP_USER=sshd | ||
14408 | |||
14409 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
14410 | if test "${with_privsep_user+set}" = set; then | ||
14411 | withval="$with_privsep_user" | ||
14412 | |||
14413 | if test -n "$withval"; then | ||
14414 | SSH_PRIVSEP_USER=$withval | ||
14415 | fi | ||
14416 | |||
14417 | |||
14418 | fi; | ||
14419 | cat >>confdefs.h <<_ACEOF | ||
14420 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
14421 | _ACEOF | ||
14422 | |||
14423 | |||
14424 | |||
14425 | # We do this little dance with the search path to insure | ||
14426 | # that programs that we select for use by installed programs | ||
14427 | # (which may be run by the super-user) come from trusted | ||
14428 | # locations before they come from the user's private area. | ||
14429 | # This should help avoid accidentally configuring some | ||
14430 | # random version of a program in someone's personal bin. | ||
14431 | |||
14432 | OPATH=$PATH | ||
14433 | PATH=/bin:/usr/bin | ||
14434 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
14435 | test -d /sbin && PATH=$PATH:/sbin | ||
14436 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
14437 | PATH=$PATH:/etc:$OPATH | ||
14438 | |||
14439 | # These programs are used by the command hashing source to gather entropy | ||
14440 | |||
14441 | # Extract the first word of "ls", so it can be a program name with args. | ||
14442 | set dummy ls; ac_word=$2 | ||
14443 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14444 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14445 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
14446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14447 | else | ||
14448 | case $PROG_LS in | ||
14449 | [\\/]* | ?:[\\/]*) | ||
14450 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
14451 | ;; | ||
14452 | *) | ||
14453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14454 | for as_dir in $PATH | ||
14455 | do | ||
14456 | IFS=$as_save_IFS | ||
14457 | test -z "$as_dir" && as_dir=. | ||
14458 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14459 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14460 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
14461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14462 | break 2 | ||
14463 | fi | ||
14464 | done | ||
14465 | done | ||
14466 | |||
14467 | ;; | ||
14468 | esac | ||
14469 | fi | ||
14470 | PROG_LS=$ac_cv_path_PROG_LS | ||
14471 | |||
14472 | if test -n "$PROG_LS"; then | ||
14473 | echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
14474 | echo "${ECHO_T}$PROG_LS" >&6 | ||
14475 | else | ||
14476 | echo "$as_me:$LINENO: result: no" >&5 | ||
14477 | echo "${ECHO_T}no" >&6 | ||
14478 | fi | ||
14479 | |||
14480 | if test -z "$PROG_LS" ; then | ||
14481 | PROG_LS="undef" | ||
14482 | fi | ||
14483 | |||
14484 | |||
14485 | |||
14486 | # Extract the first word of "netstat", so it can be a program name with args. | ||
14487 | set dummy netstat; ac_word=$2 | ||
14488 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14490 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
14491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14492 | else | ||
14493 | case $PROG_NETSTAT in | ||
14494 | [\\/]* | ?:[\\/]*) | ||
14495 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
14496 | ;; | ||
14497 | *) | ||
14498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14499 | for as_dir in $PATH | ||
14500 | do | ||
14501 | IFS=$as_save_IFS | ||
14502 | test -z "$as_dir" && as_dir=. | ||
14503 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14504 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14505 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
14506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14507 | break 2 | ||
14508 | fi | ||
14509 | done | ||
14510 | done | ||
14511 | |||
14512 | ;; | ||
14513 | esac | ||
14514 | fi | ||
14515 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
14516 | |||
14517 | if test -n "$PROG_NETSTAT"; then | ||
14518 | echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
14519 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
14520 | else | ||
14521 | echo "$as_me:$LINENO: result: no" >&5 | ||
14522 | echo "${ECHO_T}no" >&6 | ||
14523 | fi | ||
14524 | |||
14525 | if test -z "$PROG_NETSTAT" ; then | ||
14526 | PROG_NETSTAT="undef" | ||
14527 | fi | ||
14528 | |||
14529 | |||
14530 | |||
14531 | # Extract the first word of "arp", so it can be a program name with args. | ||
14532 | set dummy arp; ac_word=$2 | ||
14533 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14535 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
14536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14537 | else | ||
14538 | case $PROG_ARP in | ||
14539 | [\\/]* | ?:[\\/]*) | ||
14540 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
14541 | ;; | ||
14542 | *) | ||
14543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14544 | for as_dir in $PATH | ||
14545 | do | ||
14546 | IFS=$as_save_IFS | ||
14547 | test -z "$as_dir" && as_dir=. | ||
14548 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14550 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
14551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14552 | break 2 | ||
14553 | fi | ||
14554 | done | ||
14555 | done | ||
14556 | |||
14557 | ;; | ||
14558 | esac | ||
14559 | fi | ||
14560 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
14561 | |||
14562 | if test -n "$PROG_ARP"; then | ||
14563 | echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
14564 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
14565 | else | ||
14566 | echo "$as_me:$LINENO: result: no" >&5 | ||
14567 | echo "${ECHO_T}no" >&6 | ||
14568 | fi | ||
14569 | |||
14570 | if test -z "$PROG_ARP" ; then | ||
14571 | PROG_ARP="undef" | ||
14572 | fi | ||
14573 | |||
14574 | |||
14575 | |||
14576 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
14577 | set dummy ifconfig; ac_word=$2 | ||
14578 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14579 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14580 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
14581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14582 | else | ||
14583 | case $PROG_IFCONFIG in | ||
14584 | [\\/]* | ?:[\\/]*) | ||
14585 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
14586 | ;; | ||
14587 | *) | ||
14588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14589 | for as_dir in $PATH | ||
14590 | do | ||
14591 | IFS=$as_save_IFS | ||
14592 | test -z "$as_dir" && as_dir=. | ||
14593 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14594 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14595 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
14596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14597 | break 2 | ||
14598 | fi | ||
14599 | done | ||
14600 | done | ||
14601 | |||
14602 | ;; | ||
14603 | esac | ||
14604 | fi | ||
14605 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
14606 | |||
14607 | if test -n "$PROG_IFCONFIG"; then | ||
14608 | echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
14609 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
14610 | else | ||
14611 | echo "$as_me:$LINENO: result: no" >&5 | ||
14612 | echo "${ECHO_T}no" >&6 | ||
14613 | fi | ||
14614 | |||
14615 | if test -z "$PROG_IFCONFIG" ; then | ||
14616 | PROG_IFCONFIG="undef" | ||
14617 | fi | ||
14618 | |||
14619 | |||
14620 | |||
14621 | # Extract the first word of "jstat", so it can be a program name with args. | ||
14622 | set dummy jstat; ac_word=$2 | ||
14623 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14625 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
14626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14627 | else | ||
14628 | case $PROG_JSTAT in | ||
14629 | [\\/]* | ?:[\\/]*) | ||
14630 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
14631 | ;; | ||
14632 | *) | ||
14633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14634 | for as_dir in $PATH | ||
14635 | do | ||
14636 | IFS=$as_save_IFS | ||
14637 | test -z "$as_dir" && as_dir=. | ||
14638 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14639 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14640 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
14641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14642 | break 2 | ||
14643 | fi | ||
14644 | done | ||
14645 | done | ||
14646 | |||
14647 | ;; | ||
14648 | esac | ||
14649 | fi | ||
14650 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
14651 | |||
14652 | if test -n "$PROG_JSTAT"; then | ||
14653 | echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
14654 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
14655 | else | ||
14656 | echo "$as_me:$LINENO: result: no" >&5 | ||
14657 | echo "${ECHO_T}no" >&6 | ||
14658 | fi | ||
14659 | |||
14660 | if test -z "$PROG_JSTAT" ; then | ||
14661 | PROG_JSTAT="undef" | ||
14662 | fi | ||
14663 | |||
14664 | |||
14665 | |||
14666 | # Extract the first word of "ps", so it can be a program name with args. | ||
14667 | set dummy ps; ac_word=$2 | ||
14668 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14670 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
14671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14672 | else | ||
14673 | case $PROG_PS in | ||
14674 | [\\/]* | ?:[\\/]*) | ||
14675 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
14676 | ;; | ||
14677 | *) | ||
14678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14679 | for as_dir in $PATH | ||
14680 | do | ||
14681 | IFS=$as_save_IFS | ||
14682 | test -z "$as_dir" && as_dir=. | ||
14683 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14684 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14685 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
14686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14687 | break 2 | ||
14688 | fi | ||
14689 | done | ||
14690 | done | ||
14691 | |||
14692 | ;; | ||
14693 | esac | ||
14694 | fi | ||
14695 | PROG_PS=$ac_cv_path_PROG_PS | ||
14696 | |||
14697 | if test -n "$PROG_PS"; then | ||
14698 | echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
14699 | echo "${ECHO_T}$PROG_PS" >&6 | ||
14700 | else | ||
14701 | echo "$as_me:$LINENO: result: no" >&5 | ||
14702 | echo "${ECHO_T}no" >&6 | ||
14703 | fi | ||
14704 | |||
14705 | if test -z "$PROG_PS" ; then | ||
14706 | PROG_PS="undef" | ||
14707 | fi | ||
14708 | |||
14709 | |||
14710 | |||
14711 | # Extract the first word of "sar", so it can be a program name with args. | ||
14712 | set dummy sar; ac_word=$2 | ||
14713 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14715 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
14716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14717 | else | ||
14718 | case $PROG_SAR in | ||
14719 | [\\/]* | ?:[\\/]*) | ||
14720 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
14721 | ;; | ||
14722 | *) | ||
14723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14724 | for as_dir in $PATH | ||
14725 | do | ||
14726 | IFS=$as_save_IFS | ||
14727 | test -z "$as_dir" && as_dir=. | ||
14728 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14729 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14730 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
14731 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14732 | break 2 | ||
14733 | fi | ||
14734 | done | ||
14735 | done | ||
14736 | |||
14737 | ;; | ||
14738 | esac | ||
14739 | fi | ||
14740 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
14741 | |||
14742 | if test -n "$PROG_SAR"; then | ||
14743 | echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
14744 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
14745 | else | ||
14746 | echo "$as_me:$LINENO: result: no" >&5 | ||
14747 | echo "${ECHO_T}no" >&6 | ||
14748 | fi | ||
14749 | |||
14750 | if test -z "$PROG_SAR" ; then | ||
14751 | PROG_SAR="undef" | ||
14752 | fi | ||
14753 | |||
14754 | |||
14755 | |||
14756 | # Extract the first word of "w", so it can be a program name with args. | ||
14757 | set dummy w; ac_word=$2 | ||
14758 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14760 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
14761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14762 | else | ||
14763 | case $PROG_W in | ||
14764 | [\\/]* | ?:[\\/]*) | ||
14765 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
14766 | ;; | ||
14767 | *) | ||
14768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14769 | for as_dir in $PATH | ||
14770 | do | ||
14771 | IFS=$as_save_IFS | ||
14772 | test -z "$as_dir" && as_dir=. | ||
14773 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14774 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14775 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
14776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14777 | break 2 | ||
14778 | fi | ||
14779 | done | ||
14780 | done | ||
14781 | |||
14782 | ;; | ||
14783 | esac | ||
14784 | fi | ||
14785 | PROG_W=$ac_cv_path_PROG_W | ||
14786 | |||
14787 | if test -n "$PROG_W"; then | ||
14788 | echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
14789 | echo "${ECHO_T}$PROG_W" >&6 | ||
14790 | else | ||
14791 | echo "$as_me:$LINENO: result: no" >&5 | ||
14792 | echo "${ECHO_T}no" >&6 | ||
14793 | fi | ||
14794 | |||
14795 | if test -z "$PROG_W" ; then | ||
14796 | PROG_W="undef" | ||
14797 | fi | ||
14798 | |||
14799 | |||
14800 | |||
14801 | # Extract the first word of "who", so it can be a program name with args. | ||
14802 | set dummy who; ac_word=$2 | ||
14803 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14805 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
14806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14807 | else | ||
14808 | case $PROG_WHO in | ||
14809 | [\\/]* | ?:[\\/]*) | ||
14810 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
14811 | ;; | ||
14812 | *) | ||
14813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14814 | for as_dir in $PATH | ||
14815 | do | ||
14816 | IFS=$as_save_IFS | ||
14817 | test -z "$as_dir" && as_dir=. | ||
14818 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14819 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14820 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
14821 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14822 | break 2 | ||
14823 | fi | ||
14824 | done | ||
14825 | done | ||
14826 | |||
14827 | ;; | ||
14828 | esac | ||
14829 | fi | ||
14830 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
14831 | |||
14832 | if test -n "$PROG_WHO"; then | ||
14833 | echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
14834 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
14835 | else | ||
14836 | echo "$as_me:$LINENO: result: no" >&5 | ||
14837 | echo "${ECHO_T}no" >&6 | ||
14838 | fi | ||
14839 | |||
14840 | if test -z "$PROG_WHO" ; then | ||
14841 | PROG_WHO="undef" | ||
14842 | fi | ||
14843 | |||
14844 | |||
14845 | |||
14846 | # Extract the first word of "last", so it can be a program name with args. | ||
14847 | set dummy last; ac_word=$2 | ||
14848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14850 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
14851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14852 | else | ||
14853 | case $PROG_LAST in | ||
14854 | [\\/]* | ?:[\\/]*) | ||
14855 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
14856 | ;; | ||
14857 | *) | ||
14858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14859 | for as_dir in $PATH | ||
14860 | do | ||
14861 | IFS=$as_save_IFS | ||
14862 | test -z "$as_dir" && as_dir=. | ||
14863 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14864 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14865 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
14866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14867 | break 2 | ||
14868 | fi | ||
14869 | done | ||
14870 | done | ||
14871 | |||
14872 | ;; | ||
14873 | esac | ||
14874 | fi | ||
14875 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
14876 | |||
14877 | if test -n "$PROG_LAST"; then | ||
14878 | echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
14879 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
14880 | else | ||
14881 | echo "$as_me:$LINENO: result: no" >&5 | ||
14882 | echo "${ECHO_T}no" >&6 | ||
14883 | fi | ||
14884 | |||
14885 | if test -z "$PROG_LAST" ; then | ||
14886 | PROG_LAST="undef" | ||
14887 | fi | ||
14888 | |||
14889 | |||
14890 | |||
14891 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
14892 | set dummy lastlog; ac_word=$2 | ||
14893 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14894 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14895 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
14896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14897 | else | ||
14898 | case $PROG_LASTLOG in | ||
14899 | [\\/]* | ?:[\\/]*) | ||
14900 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
14901 | ;; | ||
14902 | *) | ||
14903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14904 | for as_dir in $PATH | ||
14905 | do | ||
14906 | IFS=$as_save_IFS | ||
14907 | test -z "$as_dir" && as_dir=. | ||
14908 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14910 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
14911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14912 | break 2 | ||
14913 | fi | ||
14914 | done | ||
14915 | done | ||
14916 | |||
14917 | ;; | ||
14918 | esac | ||
14919 | fi | ||
14920 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
14921 | |||
14922 | if test -n "$PROG_LASTLOG"; then | ||
14923 | echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
14924 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
14925 | else | ||
14926 | echo "$as_me:$LINENO: result: no" >&5 | ||
14927 | echo "${ECHO_T}no" >&6 | ||
14928 | fi | ||
14929 | |||
14930 | if test -z "$PROG_LASTLOG" ; then | ||
14931 | PROG_LASTLOG="undef" | ||
14932 | fi | ||
14933 | |||
14934 | |||
14935 | |||
14936 | # Extract the first word of "df", so it can be a program name with args. | ||
14937 | set dummy df; ac_word=$2 | ||
14938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14940 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
14941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14942 | else | ||
14943 | case $PROG_DF in | ||
14944 | [\\/]* | ?:[\\/]*) | ||
14945 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
14946 | ;; | ||
14947 | *) | ||
14948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14949 | for as_dir in $PATH | ||
14950 | do | ||
14951 | IFS=$as_save_IFS | ||
14952 | test -z "$as_dir" && as_dir=. | ||
14953 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14955 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
14956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14957 | break 2 | ||
14958 | fi | ||
14959 | done | ||
14960 | done | ||
14961 | |||
14962 | ;; | ||
14963 | esac | ||
14964 | fi | ||
14965 | PROG_DF=$ac_cv_path_PROG_DF | ||
14966 | |||
14967 | if test -n "$PROG_DF"; then | ||
14968 | echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
14969 | echo "${ECHO_T}$PROG_DF" >&6 | ||
14970 | else | ||
14971 | echo "$as_me:$LINENO: result: no" >&5 | ||
14972 | echo "${ECHO_T}no" >&6 | ||
14973 | fi | ||
14974 | |||
14975 | if test -z "$PROG_DF" ; then | ||
14976 | PROG_DF="undef" | ||
14977 | fi | ||
14978 | |||
14979 | |||
14980 | |||
14981 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
14982 | set dummy vmstat; ac_word=$2 | ||
14983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14985 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
14986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14987 | else | ||
14988 | case $PROG_VMSTAT in | ||
14989 | [\\/]* | ?:[\\/]*) | ||
14990 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
14991 | ;; | ||
14992 | *) | ||
14993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14994 | for as_dir in $PATH | ||
14995 | do | ||
14996 | IFS=$as_save_IFS | ||
14997 | test -z "$as_dir" && as_dir=. | ||
14998 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15000 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
15001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15002 | break 2 | ||
15003 | fi | ||
15004 | done | ||
15005 | done | ||
15006 | |||
15007 | ;; | ||
15008 | esac | ||
15009 | fi | ||
15010 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
15011 | |||
15012 | if test -n "$PROG_VMSTAT"; then | ||
15013 | echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
15014 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
15015 | else | ||
15016 | echo "$as_me:$LINENO: result: no" >&5 | ||
15017 | echo "${ECHO_T}no" >&6 | ||
15018 | fi | ||
15019 | |||
15020 | if test -z "$PROG_VMSTAT" ; then | ||
15021 | PROG_VMSTAT="undef" | ||
15022 | fi | ||
15023 | |||
15024 | |||
15025 | |||
15026 | # Extract the first word of "uptime", so it can be a program name with args. | ||
15027 | set dummy uptime; ac_word=$2 | ||
15028 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15030 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
15031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15032 | else | ||
15033 | case $PROG_UPTIME in | ||
15034 | [\\/]* | ?:[\\/]*) | ||
15035 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
15036 | ;; | ||
15037 | *) | ||
15038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15039 | for as_dir in $PATH | ||
15040 | do | ||
15041 | IFS=$as_save_IFS | ||
15042 | test -z "$as_dir" && as_dir=. | ||
15043 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15044 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15045 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
15046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15047 | break 2 | ||
15048 | fi | ||
15049 | done | ||
15050 | done | ||
15051 | |||
15052 | ;; | ||
15053 | esac | ||
15054 | fi | ||
15055 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
15056 | |||
15057 | if test -n "$PROG_UPTIME"; then | ||
15058 | echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
15059 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
15060 | else | ||
15061 | echo "$as_me:$LINENO: result: no" >&5 | ||
15062 | echo "${ECHO_T}no" >&6 | ||
15063 | fi | ||
15064 | |||
15065 | if test -z "$PROG_UPTIME" ; then | ||
15066 | PROG_UPTIME="undef" | ||
15067 | fi | ||
15068 | |||
15069 | |||
15070 | |||
15071 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
15072 | set dummy ipcs; ac_word=$2 | ||
15073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15075 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
15076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15077 | else | ||
15078 | case $PROG_IPCS in | ||
15079 | [\\/]* | ?:[\\/]*) | ||
15080 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
15081 | ;; | ||
15082 | *) | ||
15083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15084 | for as_dir in $PATH | ||
15085 | do | ||
15086 | IFS=$as_save_IFS | ||
15087 | test -z "$as_dir" && as_dir=. | ||
15088 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15089 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15090 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
15091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15092 | break 2 | ||
15093 | fi | ||
15094 | done | ||
15095 | done | ||
15096 | |||
15097 | ;; | ||
15098 | esac | ||
15099 | fi | ||
15100 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
15101 | |||
15102 | if test -n "$PROG_IPCS"; then | ||
15103 | echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
15104 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
15105 | else | ||
15106 | echo "$as_me:$LINENO: result: no" >&5 | ||
15107 | echo "${ECHO_T}no" >&6 | ||
15108 | fi | ||
15109 | |||
15110 | if test -z "$PROG_IPCS" ; then | ||
15111 | PROG_IPCS="undef" | ||
15112 | fi | ||
15113 | |||
15114 | |||
15115 | |||
15116 | # Extract the first word of "tail", so it can be a program name with args. | ||
15117 | set dummy tail; ac_word=$2 | ||
15118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15120 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
15121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15122 | else | ||
15123 | case $PROG_TAIL in | ||
15124 | [\\/]* | ?:[\\/]*) | ||
15125 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
15126 | ;; | ||
15127 | *) | ||
15128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15129 | for as_dir in $PATH | ||
15130 | do | ||
15131 | IFS=$as_save_IFS | ||
15132 | test -z "$as_dir" && as_dir=. | ||
15133 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15135 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
15136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15137 | break 2 | ||
15138 | fi | ||
15139 | done | ||
15140 | done | ||
15141 | |||
15142 | ;; | ||
15143 | esac | ||
15144 | fi | ||
15145 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
15146 | |||
15147 | if test -n "$PROG_TAIL"; then | ||
15148 | echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
15149 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
15150 | else | ||
15151 | echo "$as_me:$LINENO: result: no" >&5 | ||
15152 | echo "${ECHO_T}no" >&6 | ||
15153 | fi | ||
15154 | |||
15155 | if test -z "$PROG_TAIL" ; then | ||
15156 | PROG_TAIL="undef" | ||
15157 | fi | ||
15158 | |||
15159 | |||
15160 | # restore PATH | ||
15161 | PATH=$OPATH | ||
15162 | |||
15163 | # Where does ssh-rand-helper get its randomness from? | ||
15164 | INSTALL_SSH_PRNG_CMDS="" | ||
15165 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
15166 | if test ! -z "$PRNGD_PORT" ; then | ||
15167 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
15168 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
15169 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
15170 | else | ||
15171 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
15172 | RAND_HELPER_CMDHASH=yes | ||
15173 | INSTALL_SSH_PRNG_CMDS="yes" | ||
15174 | fi | ||
15175 | fi | ||
15176 | |||
15177 | |||
15178 | |||
15179 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
15180 | if test ! -z "$SONY" ; then | ||
15181 | LIBS="$LIBS -liberty"; | ||
15182 | fi | ||
15183 | |||
15184 | # Checks for data types | ||
15185 | echo "$as_me:$LINENO: checking for char" >&5 | ||
15186 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
15187 | if test "${ac_cv_type_char+set}" = set; then | ||
15188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15189 | else | ||
15190 | cat >conftest.$ac_ext <<_ACEOF | ||
15191 | /* confdefs.h. */ | ||
15192 | _ACEOF | ||
15193 | cat confdefs.h >>conftest.$ac_ext | ||
15194 | cat >>conftest.$ac_ext <<_ACEOF | ||
15195 | /* end confdefs.h. */ | ||
15196 | $ac_includes_default | ||
15197 | int | ||
15198 | main () | ||
15199 | { | ||
15200 | if ((char *) 0) | ||
15201 | return 0; | ||
15202 | if (sizeof (char)) | ||
15203 | return 0; | ||
15204 | ; | ||
15205 | return 0; | ||
15206 | } | ||
15207 | _ACEOF | ||
15208 | rm -f conftest.$ac_objext | ||
15209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15210 | (eval $ac_compile) 2>conftest.er1 | ||
15211 | ac_status=$? | ||
15212 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15213 | rm -f conftest.er1 | ||
15214 | cat conftest.err >&5 | ||
15215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15216 | (exit $ac_status); } && | ||
15217 | { ac_try='test -z "$ac_c_werror_flag" | ||
15218 | || test ! -s conftest.err' | ||
15219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15220 | (eval $ac_try) 2>&5 | ||
15221 | ac_status=$? | ||
15222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15223 | (exit $ac_status); }; } && | ||
15224 | { ac_try='test -s conftest.$ac_objext' | ||
15225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15226 | (eval $ac_try) 2>&5 | ||
15227 | ac_status=$? | ||
15228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15229 | (exit $ac_status); }; }; then | ||
15230 | ac_cv_type_char=yes | ||
15231 | else | ||
15232 | echo "$as_me: failed program was:" >&5 | ||
15233 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15234 | |||
15235 | ac_cv_type_char=no | ||
15236 | fi | ||
15237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15238 | fi | ||
15239 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
15240 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
15241 | |||
15242 | echo "$as_me:$LINENO: checking size of char" >&5 | ||
15243 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
15244 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
15245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15246 | else | ||
15247 | if test "$ac_cv_type_char" = yes; then | ||
15248 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
15249 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
15250 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
15251 | # This bug is HP SR number 8606223364. | ||
15252 | if test "$cross_compiling" = yes; then | ||
15253 | # Depending upon the size, compute the lo and hi bounds. | ||
15254 | cat >conftest.$ac_ext <<_ACEOF | ||
15255 | /* confdefs.h. */ | ||
15256 | _ACEOF | ||
15257 | cat confdefs.h >>conftest.$ac_ext | ||
15258 | cat >>conftest.$ac_ext <<_ACEOF | ||
15259 | /* end confdefs.h. */ | ||
15260 | $ac_includes_default | ||
15261 | int | ||
15262 | main () | ||
15263 | { | ||
15264 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | ||
15265 | test_array [0] = 0 | ||
15266 | |||
15267 | ; | ||
15268 | return 0; | ||
15269 | } | ||
15270 | _ACEOF | ||
15271 | rm -f conftest.$ac_objext | ||
15272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15273 | (eval $ac_compile) 2>conftest.er1 | ||
15274 | ac_status=$? | ||
15275 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15276 | rm -f conftest.er1 | ||
15277 | cat conftest.err >&5 | ||
15278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15279 | (exit $ac_status); } && | ||
15280 | { ac_try='test -z "$ac_c_werror_flag" | ||
15281 | || test ! -s conftest.err' | ||
15282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15283 | (eval $ac_try) 2>&5 | ||
15284 | ac_status=$? | ||
15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15286 | (exit $ac_status); }; } && | ||
15287 | { ac_try='test -s conftest.$ac_objext' | ||
15288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15289 | (eval $ac_try) 2>&5 | ||
15290 | ac_status=$? | ||
15291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15292 | (exit $ac_status); }; }; then | ||
15293 | ac_lo=0 ac_mid=0 | ||
15294 | while :; do | ||
15295 | cat >conftest.$ac_ext <<_ACEOF | ||
15296 | /* confdefs.h. */ | ||
15297 | _ACEOF | ||
15298 | cat confdefs.h >>conftest.$ac_ext | ||
15299 | cat >>conftest.$ac_ext <<_ACEOF | ||
15300 | /* end confdefs.h. */ | ||
15301 | $ac_includes_default | ||
15302 | int | ||
15303 | main () | ||
15304 | { | ||
15305 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
15306 | test_array [0] = 0 | ||
15307 | |||
15308 | ; | ||
15309 | return 0; | ||
15310 | } | ||
15311 | _ACEOF | ||
15312 | rm -f conftest.$ac_objext | ||
15313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15314 | (eval $ac_compile) 2>conftest.er1 | ||
15315 | ac_status=$? | ||
15316 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15317 | rm -f conftest.er1 | ||
15318 | cat conftest.err >&5 | ||
15319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15320 | (exit $ac_status); } && | ||
15321 | { ac_try='test -z "$ac_c_werror_flag" | ||
15322 | || test ! -s conftest.err' | ||
15323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15324 | (eval $ac_try) 2>&5 | ||
15325 | ac_status=$? | ||
15326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15327 | (exit $ac_status); }; } && | ||
15328 | { ac_try='test -s conftest.$ac_objext' | ||
15329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15330 | (eval $ac_try) 2>&5 | ||
15331 | ac_status=$? | ||
15332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15333 | (exit $ac_status); }; }; then | ||
15334 | ac_hi=$ac_mid; break | ||
15335 | else | ||
15336 | echo "$as_me: failed program was:" >&5 | ||
15337 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15338 | |||
15339 | ac_lo=`expr $ac_mid + 1` | ||
15340 | if test $ac_lo -le $ac_mid; then | ||
15341 | ac_lo= ac_hi= | ||
15342 | break | ||
15343 | fi | ||
15344 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
15345 | fi | ||
15346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15347 | done | ||
15348 | else | ||
15349 | echo "$as_me: failed program was:" >&5 | ||
15350 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15351 | |||
15352 | cat >conftest.$ac_ext <<_ACEOF | ||
15353 | /* confdefs.h. */ | ||
15354 | _ACEOF | ||
15355 | cat confdefs.h >>conftest.$ac_ext | ||
15356 | cat >>conftest.$ac_ext <<_ACEOF | ||
15357 | /* end confdefs.h. */ | ||
15358 | $ac_includes_default | ||
15359 | int | ||
15360 | main () | ||
15361 | { | ||
15362 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | ||
15363 | test_array [0] = 0 | ||
15364 | |||
15365 | ; | ||
15366 | return 0; | ||
15367 | } | ||
15368 | _ACEOF | ||
15369 | rm -f conftest.$ac_objext | ||
15370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15371 | (eval $ac_compile) 2>conftest.er1 | ||
15372 | ac_status=$? | ||
15373 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15374 | rm -f conftest.er1 | ||
15375 | cat conftest.err >&5 | ||
15376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15377 | (exit $ac_status); } && | ||
15378 | { ac_try='test -z "$ac_c_werror_flag" | ||
15379 | || test ! -s conftest.err' | ||
15380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15381 | (eval $ac_try) 2>&5 | ||
15382 | ac_status=$? | ||
15383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15384 | (exit $ac_status); }; } && | ||
15385 | { ac_try='test -s conftest.$ac_objext' | ||
15386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15387 | (eval $ac_try) 2>&5 | ||
15388 | ac_status=$? | ||
15389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15390 | (exit $ac_status); }; }; then | ||
15391 | ac_hi=-1 ac_mid=-1 | ||
15392 | while :; do | ||
15393 | cat >conftest.$ac_ext <<_ACEOF | ||
15394 | /* confdefs.h. */ | ||
15395 | _ACEOF | ||
15396 | cat confdefs.h >>conftest.$ac_ext | ||
15397 | cat >>conftest.$ac_ext <<_ACEOF | ||
15398 | /* end confdefs.h. */ | ||
15399 | $ac_includes_default | ||
15400 | int | ||
15401 | main () | ||
15402 | { | ||
15403 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | ||
15404 | test_array [0] = 0 | ||
15405 | |||
15406 | ; | ||
15407 | return 0; | ||
15408 | } | ||
15409 | _ACEOF | ||
15410 | rm -f conftest.$ac_objext | ||
15411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15412 | (eval $ac_compile) 2>conftest.er1 | ||
15413 | ac_status=$? | ||
15414 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15415 | rm -f conftest.er1 | ||
15416 | cat conftest.err >&5 | ||
15417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15418 | (exit $ac_status); } && | ||
15419 | { ac_try='test -z "$ac_c_werror_flag" | ||
15420 | || test ! -s conftest.err' | ||
15421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15422 | (eval $ac_try) 2>&5 | ||
15423 | ac_status=$? | ||
15424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15425 | (exit $ac_status); }; } && | ||
15426 | { ac_try='test -s conftest.$ac_objext' | ||
15427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15428 | (eval $ac_try) 2>&5 | ||
15429 | ac_status=$? | ||
15430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15431 | (exit $ac_status); }; }; then | ||
15432 | ac_lo=$ac_mid; break | ||
15433 | else | ||
15434 | echo "$as_me: failed program was:" >&5 | ||
15435 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15436 | |||
15437 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
15438 | if test $ac_mid -le $ac_hi; then | ||
15439 | ac_lo= ac_hi= | ||
15440 | break | ||
15441 | fi | ||
15442 | ac_mid=`expr 2 '*' $ac_mid` | ||
15443 | fi | ||
15444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15445 | done | ||
15446 | else | ||
15447 | echo "$as_me: failed program was:" >&5 | ||
15448 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15449 | |||
15450 | ac_lo= ac_hi= | ||
15451 | fi | ||
15452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15453 | fi | ||
15454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15455 | # Binary search between lo and hi bounds. | ||
15456 | while test "x$ac_lo" != "x$ac_hi"; do | ||
15457 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
15458 | cat >conftest.$ac_ext <<_ACEOF | ||
15459 | /* confdefs.h. */ | ||
15460 | _ACEOF | ||
15461 | cat confdefs.h >>conftest.$ac_ext | ||
15462 | cat >>conftest.$ac_ext <<_ACEOF | ||
15463 | /* end confdefs.h. */ | ||
15464 | $ac_includes_default | ||
15465 | int | ||
15466 | main () | ||
15467 | { | ||
15468 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
15469 | test_array [0] = 0 | ||
15470 | |||
15471 | ; | ||
15472 | return 0; | ||
15473 | } | ||
15474 | _ACEOF | ||
15475 | rm -f conftest.$ac_objext | ||
15476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15477 | (eval $ac_compile) 2>conftest.er1 | ||
15478 | ac_status=$? | ||
15479 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15480 | rm -f conftest.er1 | ||
15481 | cat conftest.err >&5 | ||
15482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15483 | (exit $ac_status); } && | ||
15484 | { ac_try='test -z "$ac_c_werror_flag" | ||
15485 | || test ! -s conftest.err' | ||
15486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15487 | (eval $ac_try) 2>&5 | ||
15488 | ac_status=$? | ||
15489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15490 | (exit $ac_status); }; } && | ||
15491 | { ac_try='test -s conftest.$ac_objext' | ||
15492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15493 | (eval $ac_try) 2>&5 | ||
15494 | ac_status=$? | ||
15495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15496 | (exit $ac_status); }; }; then | ||
15497 | ac_hi=$ac_mid | ||
15498 | else | ||
15499 | echo "$as_me: failed program was:" >&5 | ||
15500 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15501 | |||
15502 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
15503 | fi | ||
15504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15505 | done | ||
15506 | case $ac_lo in | ||
15507 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
15508 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | ||
15509 | See \`config.log' for more details." >&5 | ||
15510 | echo "$as_me: error: cannot compute sizeof (char), 77 | ||
15511 | See \`config.log' for more details." >&2;} | ||
15512 | { (exit 1); exit 1; }; } ;; | ||
15513 | esac | ||
15514 | else | ||
15515 | if test "$cross_compiling" = yes; then | ||
15516 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
15517 | See \`config.log' for more details." >&5 | ||
15518 | echo "$as_me: error: cannot run test program while cross compiling | ||
15519 | See \`config.log' for more details." >&2;} | ||
15520 | { (exit 1); exit 1; }; } | ||
15521 | else | ||
15522 | cat >conftest.$ac_ext <<_ACEOF | ||
15523 | /* confdefs.h. */ | ||
15524 | _ACEOF | ||
15525 | cat confdefs.h >>conftest.$ac_ext | ||
15526 | cat >>conftest.$ac_ext <<_ACEOF | ||
15527 | /* end confdefs.h. */ | ||
15528 | $ac_includes_default | ||
15529 | long longval () { return (long) (sizeof (char)); } | ||
15530 | unsigned long ulongval () { return (long) (sizeof (char)); } | ||
15531 | #include <stdio.h> | ||
15532 | #include <stdlib.h> | ||
15533 | int | ||
15534 | main () | ||
15535 | { | ||
15536 | |||
15537 | FILE *f = fopen ("conftest.val", "w"); | ||
15538 | if (! f) | ||
15539 | exit (1); | ||
15540 | if (((long) (sizeof (char))) < 0) | ||
15541 | { | ||
15542 | long i = longval (); | ||
15543 | if (i != ((long) (sizeof (char)))) | ||
15544 | exit (1); | ||
15545 | fprintf (f, "%ld\n", i); | ||
15546 | } | ||
15547 | else | ||
15548 | { | ||
15549 | unsigned long i = ulongval (); | ||
15550 | if (i != ((long) (sizeof (char)))) | ||
15551 | exit (1); | ||
15552 | fprintf (f, "%lu\n", i); | ||
15553 | } | ||
15554 | exit (ferror (f) || fclose (f) != 0); | ||
15555 | |||
15556 | ; | ||
15557 | return 0; | ||
15558 | } | ||
15559 | _ACEOF | ||
15560 | rm -f conftest$ac_exeext | ||
15561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15562 | (eval $ac_link) 2>&5 | ||
15563 | ac_status=$? | ||
15564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15565 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15567 | (eval $ac_try) 2>&5 | ||
15568 | ac_status=$? | ||
15569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15570 | (exit $ac_status); }; }; then | ||
15571 | ac_cv_sizeof_char=`cat conftest.val` | ||
15572 | else | ||
15573 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15574 | echo "$as_me: failed program was:" >&5 | ||
15575 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15576 | |||
15577 | ( exit $ac_status ) | ||
15578 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | ||
15579 | See \`config.log' for more details." >&5 | ||
15580 | echo "$as_me: error: cannot compute sizeof (char), 77 | ||
15581 | See \`config.log' for more details." >&2;} | ||
15582 | { (exit 1); exit 1; }; } | ||
15583 | fi | ||
15584 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15585 | fi | ||
15586 | fi | ||
15587 | rm -f conftest.val | ||
15588 | else | ||
15589 | ac_cv_sizeof_char=0 | ||
15590 | fi | ||
15591 | fi | ||
15592 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
15593 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
15594 | cat >>confdefs.h <<_ACEOF | ||
15595 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
15596 | _ACEOF | ||
15597 | |||
15598 | |||
15599 | echo "$as_me:$LINENO: checking for short int" >&5 | ||
15600 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
15601 | if test "${ac_cv_type_short_int+set}" = set; then | ||
15602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15603 | else | ||
15604 | cat >conftest.$ac_ext <<_ACEOF | ||
15605 | /* confdefs.h. */ | ||
15606 | _ACEOF | ||
15607 | cat confdefs.h >>conftest.$ac_ext | ||
15608 | cat >>conftest.$ac_ext <<_ACEOF | ||
15609 | /* end confdefs.h. */ | ||
15610 | $ac_includes_default | ||
15611 | int | ||
15612 | main () | ||
15613 | { | ||
15614 | if ((short int *) 0) | ||
15615 | return 0; | ||
15616 | if (sizeof (short int)) | ||
15617 | return 0; | ||
15618 | ; | ||
15619 | return 0; | ||
15620 | } | ||
15621 | _ACEOF | ||
15622 | rm -f conftest.$ac_objext | ||
15623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15624 | (eval $ac_compile) 2>conftest.er1 | ||
15625 | ac_status=$? | ||
15626 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15627 | rm -f conftest.er1 | ||
15628 | cat conftest.err >&5 | ||
15629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15630 | (exit $ac_status); } && | ||
15631 | { ac_try='test -z "$ac_c_werror_flag" | ||
15632 | || test ! -s conftest.err' | ||
15633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15634 | (eval $ac_try) 2>&5 | ||
15635 | ac_status=$? | ||
15636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15637 | (exit $ac_status); }; } && | ||
15638 | { ac_try='test -s conftest.$ac_objext' | ||
15639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15640 | (eval $ac_try) 2>&5 | ||
15641 | ac_status=$? | ||
15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15643 | (exit $ac_status); }; }; then | ||
15644 | ac_cv_type_short_int=yes | ||
15645 | else | ||
15646 | echo "$as_me: failed program was:" >&5 | ||
15647 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15648 | |||
15649 | ac_cv_type_short_int=no | ||
15650 | fi | ||
15651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15652 | fi | ||
15653 | echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
15654 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
15655 | |||
15656 | echo "$as_me:$LINENO: checking size of short int" >&5 | ||
15657 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
15658 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
15659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15660 | else | ||
15661 | if test "$ac_cv_type_short_int" = yes; then | ||
15662 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
15663 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
15664 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
15665 | # This bug is HP SR number 8606223364. | ||
15666 | if test "$cross_compiling" = yes; then | ||
15667 | # Depending upon the size, compute the lo and hi bounds. | ||
15668 | cat >conftest.$ac_ext <<_ACEOF | ||
15669 | /* confdefs.h. */ | ||
15670 | _ACEOF | ||
15671 | cat confdefs.h >>conftest.$ac_ext | ||
15672 | cat >>conftest.$ac_ext <<_ACEOF | ||
15673 | /* end confdefs.h. */ | ||
15674 | $ac_includes_default | ||
15675 | int | ||
15676 | main () | ||
15677 | { | ||
15678 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)]; | ||
15679 | test_array [0] = 0 | ||
15680 | |||
15681 | ; | ||
15682 | return 0; | ||
15683 | } | ||
15684 | _ACEOF | ||
15685 | rm -f conftest.$ac_objext | ||
15686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15687 | (eval $ac_compile) 2>conftest.er1 | ||
15688 | ac_status=$? | ||
15689 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15690 | rm -f conftest.er1 | ||
15691 | cat conftest.err >&5 | ||
15692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15693 | (exit $ac_status); } && | ||
15694 | { ac_try='test -z "$ac_c_werror_flag" | ||
15695 | || test ! -s conftest.err' | ||
15696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15697 | (eval $ac_try) 2>&5 | ||
15698 | ac_status=$? | ||
15699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15700 | (exit $ac_status); }; } && | ||
15701 | { ac_try='test -s conftest.$ac_objext' | ||
15702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15703 | (eval $ac_try) 2>&5 | ||
15704 | ac_status=$? | ||
15705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15706 | (exit $ac_status); }; }; then | ||
15707 | ac_lo=0 ac_mid=0 | ||
15708 | while :; do | ||
15709 | cat >conftest.$ac_ext <<_ACEOF | ||
15710 | /* confdefs.h. */ | ||
15711 | _ACEOF | ||
15712 | cat confdefs.h >>conftest.$ac_ext | ||
15713 | cat >>conftest.$ac_ext <<_ACEOF | ||
15714 | /* end confdefs.h. */ | ||
15715 | $ac_includes_default | ||
15716 | int | ||
15717 | main () | ||
15718 | { | ||
15719 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
15720 | test_array [0] = 0 | ||
15721 | |||
15722 | ; | ||
15723 | return 0; | ||
15724 | } | ||
15725 | _ACEOF | ||
15726 | rm -f conftest.$ac_objext | ||
15727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15728 | (eval $ac_compile) 2>conftest.er1 | ||
15729 | ac_status=$? | ||
15730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15731 | rm -f conftest.er1 | ||
15732 | cat conftest.err >&5 | ||
15733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15734 | (exit $ac_status); } && | ||
15735 | { ac_try='test -z "$ac_c_werror_flag" | ||
15736 | || test ! -s conftest.err' | ||
15737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15738 | (eval $ac_try) 2>&5 | ||
15739 | ac_status=$? | ||
15740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15741 | (exit $ac_status); }; } && | ||
15742 | { ac_try='test -s conftest.$ac_objext' | ||
15743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15744 | (eval $ac_try) 2>&5 | ||
15745 | ac_status=$? | ||
15746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15747 | (exit $ac_status); }; }; then | ||
15748 | ac_hi=$ac_mid; break | ||
15749 | else | ||
15750 | echo "$as_me: failed program was:" >&5 | ||
15751 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15752 | |||
15753 | ac_lo=`expr $ac_mid + 1` | ||
15754 | if test $ac_lo -le $ac_mid; then | ||
15755 | ac_lo= ac_hi= | ||
15756 | break | ||
15757 | fi | ||
15758 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
15759 | fi | ||
15760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15761 | done | ||
15762 | else | ||
15763 | echo "$as_me: failed program was:" >&5 | ||
15764 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15765 | |||
15766 | cat >conftest.$ac_ext <<_ACEOF | ||
15767 | /* confdefs.h. */ | ||
15768 | _ACEOF | ||
15769 | cat confdefs.h >>conftest.$ac_ext | ||
15770 | cat >>conftest.$ac_ext <<_ACEOF | ||
15771 | /* end confdefs.h. */ | ||
15772 | $ac_includes_default | ||
15773 | int | ||
15774 | main () | ||
15775 | { | ||
15776 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)]; | ||
15777 | test_array [0] = 0 | ||
15778 | |||
15779 | ; | ||
15780 | return 0; | ||
15781 | } | ||
15782 | _ACEOF | ||
15783 | rm -f conftest.$ac_objext | ||
15784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15785 | (eval $ac_compile) 2>conftest.er1 | ||
15786 | ac_status=$? | ||
15787 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15788 | rm -f conftest.er1 | ||
15789 | cat conftest.err >&5 | ||
15790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15791 | (exit $ac_status); } && | ||
15792 | { ac_try='test -z "$ac_c_werror_flag" | ||
15793 | || test ! -s conftest.err' | ||
15794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15795 | (eval $ac_try) 2>&5 | ||
15796 | ac_status=$? | ||
15797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15798 | (exit $ac_status); }; } && | ||
15799 | { ac_try='test -s conftest.$ac_objext' | ||
15800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15801 | (eval $ac_try) 2>&5 | ||
15802 | ac_status=$? | ||
15803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15804 | (exit $ac_status); }; }; then | ||
15805 | ac_hi=-1 ac_mid=-1 | ||
15806 | while :; do | ||
15807 | cat >conftest.$ac_ext <<_ACEOF | ||
15808 | /* confdefs.h. */ | ||
15809 | _ACEOF | ||
15810 | cat confdefs.h >>conftest.$ac_ext | ||
15811 | cat >>conftest.$ac_ext <<_ACEOF | ||
15812 | /* end confdefs.h. */ | ||
15813 | $ac_includes_default | ||
15814 | int | ||
15815 | main () | ||
15816 | { | ||
15817 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)]; | ||
15818 | test_array [0] = 0 | ||
15819 | |||
15820 | ; | ||
15821 | return 0; | ||
15822 | } | ||
15823 | _ACEOF | ||
15824 | rm -f conftest.$ac_objext | ||
15825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15826 | (eval $ac_compile) 2>conftest.er1 | ||
15827 | ac_status=$? | ||
15828 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15829 | rm -f conftest.er1 | ||
15830 | cat conftest.err >&5 | ||
15831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15832 | (exit $ac_status); } && | ||
15833 | { ac_try='test -z "$ac_c_werror_flag" | ||
15834 | || test ! -s conftest.err' | ||
15835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15836 | (eval $ac_try) 2>&5 | ||
15837 | ac_status=$? | ||
15838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15839 | (exit $ac_status); }; } && | ||
15840 | { ac_try='test -s conftest.$ac_objext' | ||
15841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15842 | (eval $ac_try) 2>&5 | ||
15843 | ac_status=$? | ||
15844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15845 | (exit $ac_status); }; }; then | ||
15846 | ac_lo=$ac_mid; break | ||
15847 | else | ||
15848 | echo "$as_me: failed program was:" >&5 | ||
15849 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15850 | |||
15851 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
15852 | if test $ac_mid -le $ac_hi; then | ||
15853 | ac_lo= ac_hi= | ||
15854 | break | ||
15855 | fi | ||
15856 | ac_mid=`expr 2 '*' $ac_mid` | ||
15857 | fi | ||
15858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15859 | done | ||
15860 | else | ||
15861 | echo "$as_me: failed program was:" >&5 | ||
15862 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15863 | |||
15864 | ac_lo= ac_hi= | ||
15865 | fi | ||
15866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15867 | fi | ||
15868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15869 | # Binary search between lo and hi bounds. | ||
15870 | while test "x$ac_lo" != "x$ac_hi"; do | ||
15871 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
15872 | cat >conftest.$ac_ext <<_ACEOF | ||
15873 | /* confdefs.h. */ | ||
15874 | _ACEOF | ||
15875 | cat confdefs.h >>conftest.$ac_ext | ||
15876 | cat >>conftest.$ac_ext <<_ACEOF | ||
15877 | /* end confdefs.h. */ | ||
15878 | $ac_includes_default | ||
15879 | int | ||
15880 | main () | ||
15881 | { | ||
15882 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
15883 | test_array [0] = 0 | ||
15884 | |||
15885 | ; | ||
15886 | return 0; | ||
15887 | } | ||
15888 | _ACEOF | ||
15889 | rm -f conftest.$ac_objext | ||
15890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15891 | (eval $ac_compile) 2>conftest.er1 | ||
15892 | ac_status=$? | ||
15893 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15894 | rm -f conftest.er1 | ||
15895 | cat conftest.err >&5 | ||
15896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15897 | (exit $ac_status); } && | ||
15898 | { ac_try='test -z "$ac_c_werror_flag" | ||
15899 | || test ! -s conftest.err' | ||
15900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15901 | (eval $ac_try) 2>&5 | ||
15902 | ac_status=$? | ||
15903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15904 | (exit $ac_status); }; } && | ||
15905 | { ac_try='test -s conftest.$ac_objext' | ||
15906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15907 | (eval $ac_try) 2>&5 | ||
15908 | ac_status=$? | ||
15909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15910 | (exit $ac_status); }; }; then | ||
15911 | ac_hi=$ac_mid | ||
15912 | else | ||
15913 | echo "$as_me: failed program was:" >&5 | ||
15914 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15915 | |||
15916 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
15917 | fi | ||
15918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15919 | done | ||
15920 | case $ac_lo in | ||
15921 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
15922 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77 | ||
15923 | See \`config.log' for more details." >&5 | ||
15924 | echo "$as_me: error: cannot compute sizeof (short int), 77 | ||
15925 | See \`config.log' for more details." >&2;} | ||
15926 | { (exit 1); exit 1; }; } ;; | ||
15927 | esac | ||
15928 | else | ||
15929 | if test "$cross_compiling" = yes; then | ||
15930 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
15931 | See \`config.log' for more details." >&5 | ||
15932 | echo "$as_me: error: cannot run test program while cross compiling | ||
15933 | See \`config.log' for more details." >&2;} | ||
15934 | { (exit 1); exit 1; }; } | ||
15935 | else | ||
15936 | cat >conftest.$ac_ext <<_ACEOF | ||
15937 | /* confdefs.h. */ | ||
15938 | _ACEOF | ||
15939 | cat confdefs.h >>conftest.$ac_ext | ||
15940 | cat >>conftest.$ac_ext <<_ACEOF | ||
15941 | /* end confdefs.h. */ | ||
15942 | $ac_includes_default | ||
15943 | long longval () { return (long) (sizeof (short int)); } | ||
15944 | unsigned long ulongval () { return (long) (sizeof (short int)); } | ||
15945 | #include <stdio.h> | ||
15946 | #include <stdlib.h> | ||
15947 | int | ||
15948 | main () | ||
15949 | { | ||
15950 | |||
15951 | FILE *f = fopen ("conftest.val", "w"); | ||
15952 | if (! f) | ||
15953 | exit (1); | ||
15954 | if (((long) (sizeof (short int))) < 0) | ||
15955 | { | ||
15956 | long i = longval (); | ||
15957 | if (i != ((long) (sizeof (short int)))) | ||
15958 | exit (1); | ||
15959 | fprintf (f, "%ld\n", i); | ||
15960 | } | ||
15961 | else | ||
15962 | { | ||
15963 | unsigned long i = ulongval (); | ||
15964 | if (i != ((long) (sizeof (short int)))) | ||
15965 | exit (1); | ||
15966 | fprintf (f, "%lu\n", i); | ||
15967 | } | ||
15968 | exit (ferror (f) || fclose (f) != 0); | ||
15969 | |||
15970 | ; | ||
15971 | return 0; | ||
15972 | } | ||
15973 | _ACEOF | ||
15974 | rm -f conftest$ac_exeext | ||
15975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15976 | (eval $ac_link) 2>&5 | ||
15977 | ac_status=$? | ||
15978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15979 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15981 | (eval $ac_try) 2>&5 | ||
15982 | ac_status=$? | ||
15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15984 | (exit $ac_status); }; }; then | ||
15985 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
15986 | else | ||
15987 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15988 | echo "$as_me: failed program was:" >&5 | ||
15989 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15990 | |||
15991 | ( exit $ac_status ) | ||
15992 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77 | ||
15993 | See \`config.log' for more details." >&5 | ||
15994 | echo "$as_me: error: cannot compute sizeof (short int), 77 | ||
15995 | See \`config.log' for more details." >&2;} | ||
15996 | { (exit 1); exit 1; }; } | ||
15997 | fi | ||
15998 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15999 | fi | ||
16000 | fi | ||
16001 | rm -f conftest.val | ||
16002 | else | ||
16003 | ac_cv_sizeof_short_int=0 | ||
16004 | fi | ||
16005 | fi | ||
16006 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
16007 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
16008 | cat >>confdefs.h <<_ACEOF | ||
16009 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
16010 | _ACEOF | ||
16011 | |||
16012 | |||
16013 | echo "$as_me:$LINENO: checking for int" >&5 | ||
16014 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
16015 | if test "${ac_cv_type_int+set}" = set; then | ||
16016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16017 | else | ||
16018 | cat >conftest.$ac_ext <<_ACEOF | ||
16019 | /* confdefs.h. */ | ||
16020 | _ACEOF | ||
16021 | cat confdefs.h >>conftest.$ac_ext | ||
16022 | cat >>conftest.$ac_ext <<_ACEOF | ||
16023 | /* end confdefs.h. */ | ||
16024 | $ac_includes_default | ||
16025 | int | ||
16026 | main () | ||
16027 | { | ||
16028 | if ((int *) 0) | ||
16029 | return 0; | ||
16030 | if (sizeof (int)) | ||
16031 | return 0; | ||
16032 | ; | ||
16033 | return 0; | ||
16034 | } | ||
16035 | _ACEOF | ||
16036 | rm -f conftest.$ac_objext | ||
16037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16038 | (eval $ac_compile) 2>conftest.er1 | ||
16039 | ac_status=$? | ||
16040 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16041 | rm -f conftest.er1 | ||
16042 | cat conftest.err >&5 | ||
16043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16044 | (exit $ac_status); } && | ||
16045 | { ac_try='test -z "$ac_c_werror_flag" | ||
16046 | || test ! -s conftest.err' | ||
16047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16048 | (eval $ac_try) 2>&5 | ||
16049 | ac_status=$? | ||
16050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16051 | (exit $ac_status); }; } && | ||
16052 | { ac_try='test -s conftest.$ac_objext' | ||
16053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16054 | (eval $ac_try) 2>&5 | ||
16055 | ac_status=$? | ||
16056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16057 | (exit $ac_status); }; }; then | ||
16058 | ac_cv_type_int=yes | ||
16059 | else | ||
16060 | echo "$as_me: failed program was:" >&5 | ||
16061 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16062 | |||
16063 | ac_cv_type_int=no | ||
16064 | fi | ||
16065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16066 | fi | ||
16067 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
16068 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
16069 | |||
16070 | echo "$as_me:$LINENO: checking size of int" >&5 | ||
16071 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
16072 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
16073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16074 | else | ||
16075 | if test "$ac_cv_type_int" = yes; then | ||
16076 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
16077 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
16078 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
16079 | # This bug is HP SR number 8606223364. | ||
16080 | if test "$cross_compiling" = yes; then | ||
16081 | # Depending upon the size, compute the lo and hi bounds. | ||
16082 | cat >conftest.$ac_ext <<_ACEOF | ||
16083 | /* confdefs.h. */ | ||
16084 | _ACEOF | ||
16085 | cat confdefs.h >>conftest.$ac_ext | ||
16086 | cat >>conftest.$ac_ext <<_ACEOF | ||
16087 | /* end confdefs.h. */ | ||
16088 | $ac_includes_default | ||
16089 | int | ||
16090 | main () | ||
16091 | { | ||
16092 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | ||
16093 | test_array [0] = 0 | ||
16094 | |||
16095 | ; | ||
16096 | return 0; | ||
16097 | } | ||
16098 | _ACEOF | ||
16099 | rm -f conftest.$ac_objext | ||
16100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16101 | (eval $ac_compile) 2>conftest.er1 | ||
16102 | ac_status=$? | ||
16103 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16104 | rm -f conftest.er1 | ||
16105 | cat conftest.err >&5 | ||
16106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16107 | (exit $ac_status); } && | ||
16108 | { ac_try='test -z "$ac_c_werror_flag" | ||
16109 | || test ! -s conftest.err' | ||
16110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16111 | (eval $ac_try) 2>&5 | ||
16112 | ac_status=$? | ||
16113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16114 | (exit $ac_status); }; } && | ||
16115 | { ac_try='test -s conftest.$ac_objext' | ||
16116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16117 | (eval $ac_try) 2>&5 | ||
16118 | ac_status=$? | ||
16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16120 | (exit $ac_status); }; }; then | ||
16121 | ac_lo=0 ac_mid=0 | ||
16122 | while :; do | ||
16123 | cat >conftest.$ac_ext <<_ACEOF | ||
16124 | /* confdefs.h. */ | ||
16125 | _ACEOF | ||
16126 | cat confdefs.h >>conftest.$ac_ext | ||
16127 | cat >>conftest.$ac_ext <<_ACEOF | ||
16128 | /* end confdefs.h. */ | ||
16129 | $ac_includes_default | ||
16130 | int | ||
16131 | main () | ||
16132 | { | ||
16133 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
16134 | test_array [0] = 0 | ||
16135 | |||
16136 | ; | ||
16137 | return 0; | ||
16138 | } | ||
16139 | _ACEOF | ||
16140 | rm -f conftest.$ac_objext | ||
16141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16142 | (eval $ac_compile) 2>conftest.er1 | ||
16143 | ac_status=$? | ||
16144 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16145 | rm -f conftest.er1 | ||
16146 | cat conftest.err >&5 | ||
16147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16148 | (exit $ac_status); } && | ||
16149 | { ac_try='test -z "$ac_c_werror_flag" | ||
16150 | || test ! -s conftest.err' | ||
16151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16152 | (eval $ac_try) 2>&5 | ||
16153 | ac_status=$? | ||
16154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16155 | (exit $ac_status); }; } && | ||
16156 | { ac_try='test -s conftest.$ac_objext' | ||
16157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16158 | (eval $ac_try) 2>&5 | ||
16159 | ac_status=$? | ||
16160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16161 | (exit $ac_status); }; }; then | ||
16162 | ac_hi=$ac_mid; break | ||
16163 | else | ||
16164 | echo "$as_me: failed program was:" >&5 | ||
16165 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16166 | |||
16167 | ac_lo=`expr $ac_mid + 1` | ||
16168 | if test $ac_lo -le $ac_mid; then | ||
16169 | ac_lo= ac_hi= | ||
16170 | break | ||
16171 | fi | ||
16172 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
16173 | fi | ||
16174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16175 | done | ||
16176 | else | ||
16177 | echo "$as_me: failed program was:" >&5 | ||
16178 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16179 | |||
16180 | cat >conftest.$ac_ext <<_ACEOF | ||
16181 | /* confdefs.h. */ | ||
16182 | _ACEOF | ||
16183 | cat confdefs.h >>conftest.$ac_ext | ||
16184 | cat >>conftest.$ac_ext <<_ACEOF | ||
16185 | /* end confdefs.h. */ | ||
16186 | $ac_includes_default | ||
16187 | int | ||
16188 | main () | ||
16189 | { | ||
16190 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | ||
16191 | test_array [0] = 0 | ||
16192 | |||
16193 | ; | ||
16194 | return 0; | ||
16195 | } | ||
16196 | _ACEOF | ||
16197 | rm -f conftest.$ac_objext | ||
16198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16199 | (eval $ac_compile) 2>conftest.er1 | ||
16200 | ac_status=$? | ||
16201 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16202 | rm -f conftest.er1 | ||
16203 | cat conftest.err >&5 | ||
16204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16205 | (exit $ac_status); } && | ||
16206 | { ac_try='test -z "$ac_c_werror_flag" | ||
16207 | || test ! -s conftest.err' | ||
16208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16209 | (eval $ac_try) 2>&5 | ||
16210 | ac_status=$? | ||
16211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16212 | (exit $ac_status); }; } && | ||
16213 | { ac_try='test -s conftest.$ac_objext' | ||
16214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16215 | (eval $ac_try) 2>&5 | ||
16216 | ac_status=$? | ||
16217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16218 | (exit $ac_status); }; }; then | ||
16219 | ac_hi=-1 ac_mid=-1 | ||
16220 | while :; do | ||
16221 | cat >conftest.$ac_ext <<_ACEOF | ||
16222 | /* confdefs.h. */ | ||
16223 | _ACEOF | ||
16224 | cat confdefs.h >>conftest.$ac_ext | ||
16225 | cat >>conftest.$ac_ext <<_ACEOF | ||
16226 | /* end confdefs.h. */ | ||
16227 | $ac_includes_default | ||
16228 | int | ||
16229 | main () | ||
16230 | { | ||
16231 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | ||
16232 | test_array [0] = 0 | ||
16233 | |||
16234 | ; | ||
16235 | return 0; | ||
16236 | } | ||
16237 | _ACEOF | ||
16238 | rm -f conftest.$ac_objext | ||
16239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16240 | (eval $ac_compile) 2>conftest.er1 | ||
16241 | ac_status=$? | ||
16242 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16243 | rm -f conftest.er1 | ||
16244 | cat conftest.err >&5 | ||
16245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16246 | (exit $ac_status); } && | ||
16247 | { ac_try='test -z "$ac_c_werror_flag" | ||
16248 | || test ! -s conftest.err' | ||
16249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16250 | (eval $ac_try) 2>&5 | ||
16251 | ac_status=$? | ||
16252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16253 | (exit $ac_status); }; } && | ||
16254 | { ac_try='test -s conftest.$ac_objext' | ||
16255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16256 | (eval $ac_try) 2>&5 | ||
16257 | ac_status=$? | ||
16258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16259 | (exit $ac_status); }; }; then | ||
16260 | ac_lo=$ac_mid; break | ||
16261 | else | ||
16262 | echo "$as_me: failed program was:" >&5 | ||
16263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16264 | |||
16265 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
16266 | if test $ac_mid -le $ac_hi; then | ||
16267 | ac_lo= ac_hi= | ||
16268 | break | ||
16269 | fi | ||
16270 | ac_mid=`expr 2 '*' $ac_mid` | ||
16271 | fi | ||
16272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16273 | done | ||
16274 | else | ||
16275 | echo "$as_me: failed program was:" >&5 | ||
16276 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16277 | |||
16278 | ac_lo= ac_hi= | ||
16279 | fi | ||
16280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16281 | fi | ||
16282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16283 | # Binary search between lo and hi bounds. | ||
16284 | while test "x$ac_lo" != "x$ac_hi"; do | ||
16285 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
16286 | cat >conftest.$ac_ext <<_ACEOF | ||
16287 | /* confdefs.h. */ | ||
16288 | _ACEOF | ||
16289 | cat confdefs.h >>conftest.$ac_ext | ||
16290 | cat >>conftest.$ac_ext <<_ACEOF | ||
16291 | /* end confdefs.h. */ | ||
16292 | $ac_includes_default | ||
16293 | int | ||
16294 | main () | ||
16295 | { | ||
16296 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
16297 | test_array [0] = 0 | ||
16298 | |||
16299 | ; | ||
16300 | return 0; | ||
16301 | } | ||
16302 | _ACEOF | ||
16303 | rm -f conftest.$ac_objext | ||
16304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16305 | (eval $ac_compile) 2>conftest.er1 | ||
16306 | ac_status=$? | ||
16307 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16308 | rm -f conftest.er1 | ||
16309 | cat conftest.err >&5 | ||
16310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16311 | (exit $ac_status); } && | ||
16312 | { ac_try='test -z "$ac_c_werror_flag" | ||
16313 | || test ! -s conftest.err' | ||
16314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16315 | (eval $ac_try) 2>&5 | ||
16316 | ac_status=$? | ||
16317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16318 | (exit $ac_status); }; } && | ||
16319 | { ac_try='test -s conftest.$ac_objext' | ||
16320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16321 | (eval $ac_try) 2>&5 | ||
16322 | ac_status=$? | ||
16323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16324 | (exit $ac_status); }; }; then | ||
16325 | ac_hi=$ac_mid | ||
16326 | else | ||
16327 | echo "$as_me: failed program was:" >&5 | ||
16328 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16329 | |||
16330 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
16331 | fi | ||
16332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16333 | done | ||
16334 | case $ac_lo in | ||
16335 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
16336 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | ||
16337 | See \`config.log' for more details." >&5 | ||
16338 | echo "$as_me: error: cannot compute sizeof (int), 77 | ||
16339 | See \`config.log' for more details." >&2;} | ||
16340 | { (exit 1); exit 1; }; } ;; | ||
16341 | esac | ||
16342 | else | ||
16343 | if test "$cross_compiling" = yes; then | ||
16344 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
16345 | See \`config.log' for more details." >&5 | ||
16346 | echo "$as_me: error: cannot run test program while cross compiling | ||
16347 | See \`config.log' for more details." >&2;} | ||
16348 | { (exit 1); exit 1; }; } | ||
16349 | else | ||
16350 | cat >conftest.$ac_ext <<_ACEOF | ||
16351 | /* confdefs.h. */ | ||
16352 | _ACEOF | ||
16353 | cat confdefs.h >>conftest.$ac_ext | ||
16354 | cat >>conftest.$ac_ext <<_ACEOF | ||
16355 | /* end confdefs.h. */ | ||
16356 | $ac_includes_default | ||
16357 | long longval () { return (long) (sizeof (int)); } | ||
16358 | unsigned long ulongval () { return (long) (sizeof (int)); } | ||
16359 | #include <stdio.h> | ||
16360 | #include <stdlib.h> | ||
16361 | int | ||
16362 | main () | ||
16363 | { | ||
16364 | |||
16365 | FILE *f = fopen ("conftest.val", "w"); | ||
16366 | if (! f) | ||
16367 | exit (1); | ||
16368 | if (((long) (sizeof (int))) < 0) | ||
16369 | { | ||
16370 | long i = longval (); | ||
16371 | if (i != ((long) (sizeof (int)))) | ||
16372 | exit (1); | ||
16373 | fprintf (f, "%ld\n", i); | ||
16374 | } | ||
16375 | else | ||
16376 | { | ||
16377 | unsigned long i = ulongval (); | ||
16378 | if (i != ((long) (sizeof (int)))) | ||
16379 | exit (1); | ||
16380 | fprintf (f, "%lu\n", i); | ||
16381 | } | ||
16382 | exit (ferror (f) || fclose (f) != 0); | ||
16383 | |||
16384 | ; | ||
16385 | return 0; | ||
16386 | } | ||
16387 | _ACEOF | ||
16388 | rm -f conftest$ac_exeext | ||
16389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16390 | (eval $ac_link) 2>&5 | ||
16391 | ac_status=$? | ||
16392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16393 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16395 | (eval $ac_try) 2>&5 | ||
16396 | ac_status=$? | ||
16397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16398 | (exit $ac_status); }; }; then | ||
16399 | ac_cv_sizeof_int=`cat conftest.val` | ||
16400 | else | ||
16401 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16402 | echo "$as_me: failed program was:" >&5 | ||
16403 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16404 | |||
16405 | ( exit $ac_status ) | ||
16406 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | ||
16407 | See \`config.log' for more details." >&5 | ||
16408 | echo "$as_me: error: cannot compute sizeof (int), 77 | ||
16409 | See \`config.log' for more details." >&2;} | ||
16410 | { (exit 1); exit 1; }; } | ||
16411 | fi | ||
16412 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16413 | fi | ||
16414 | fi | ||
16415 | rm -f conftest.val | ||
16416 | else | ||
16417 | ac_cv_sizeof_int=0 | ||
16418 | fi | ||
16419 | fi | ||
16420 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
16421 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
16422 | cat >>confdefs.h <<_ACEOF | ||
16423 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
16424 | _ACEOF | ||
16425 | |||
16426 | |||
16427 | echo "$as_me:$LINENO: checking for long int" >&5 | ||
16428 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
16429 | if test "${ac_cv_type_long_int+set}" = set; then | ||
16430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16431 | else | ||
16432 | cat >conftest.$ac_ext <<_ACEOF | ||
16433 | /* confdefs.h. */ | ||
16434 | _ACEOF | ||
16435 | cat confdefs.h >>conftest.$ac_ext | ||
16436 | cat >>conftest.$ac_ext <<_ACEOF | ||
16437 | /* end confdefs.h. */ | ||
16438 | $ac_includes_default | ||
16439 | int | ||
16440 | main () | ||
16441 | { | ||
16442 | if ((long int *) 0) | ||
16443 | return 0; | ||
16444 | if (sizeof (long int)) | ||
16445 | return 0; | ||
16446 | ; | ||
16447 | return 0; | ||
16448 | } | ||
16449 | _ACEOF | ||
16450 | rm -f conftest.$ac_objext | ||
16451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16452 | (eval $ac_compile) 2>conftest.er1 | ||
16453 | ac_status=$? | ||
16454 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16455 | rm -f conftest.er1 | ||
16456 | cat conftest.err >&5 | ||
16457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16458 | (exit $ac_status); } && | ||
16459 | { ac_try='test -z "$ac_c_werror_flag" | ||
16460 | || test ! -s conftest.err' | ||
16461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16462 | (eval $ac_try) 2>&5 | ||
16463 | ac_status=$? | ||
16464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16465 | (exit $ac_status); }; } && | ||
16466 | { ac_try='test -s conftest.$ac_objext' | ||
16467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16468 | (eval $ac_try) 2>&5 | ||
16469 | ac_status=$? | ||
16470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16471 | (exit $ac_status); }; }; then | ||
16472 | ac_cv_type_long_int=yes | ||
16473 | else | ||
16474 | echo "$as_me: failed program was:" >&5 | ||
16475 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16476 | |||
16477 | ac_cv_type_long_int=no | ||
16478 | fi | ||
16479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16480 | fi | ||
16481 | echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
16482 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
16483 | |||
16484 | echo "$as_me:$LINENO: checking size of long int" >&5 | ||
16485 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
16486 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
16487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16488 | else | ||
16489 | if test "$ac_cv_type_long_int" = yes; then | ||
16490 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
16491 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
16492 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
16493 | # This bug is HP SR number 8606223364. | ||
16494 | if test "$cross_compiling" = yes; then | ||
16495 | # Depending upon the size, compute the lo and hi bounds. | ||
16496 | cat >conftest.$ac_ext <<_ACEOF | ||
16497 | /* confdefs.h. */ | ||
16498 | _ACEOF | ||
16499 | cat confdefs.h >>conftest.$ac_ext | ||
16500 | cat >>conftest.$ac_ext <<_ACEOF | ||
16501 | /* end confdefs.h. */ | ||
16502 | $ac_includes_default | ||
16503 | int | ||
16504 | main () | ||
16505 | { | ||
16506 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)]; | ||
16507 | test_array [0] = 0 | ||
16508 | |||
16509 | ; | ||
16510 | return 0; | ||
16511 | } | ||
16512 | _ACEOF | ||
16513 | rm -f conftest.$ac_objext | ||
16514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16515 | (eval $ac_compile) 2>conftest.er1 | ||
16516 | ac_status=$? | ||
16517 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16518 | rm -f conftest.er1 | ||
16519 | cat conftest.err >&5 | ||
16520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16521 | (exit $ac_status); } && | ||
16522 | { ac_try='test -z "$ac_c_werror_flag" | ||
16523 | || test ! -s conftest.err' | ||
16524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16525 | (eval $ac_try) 2>&5 | ||
16526 | ac_status=$? | ||
16527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16528 | (exit $ac_status); }; } && | ||
16529 | { ac_try='test -s conftest.$ac_objext' | ||
16530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16531 | (eval $ac_try) 2>&5 | ||
16532 | ac_status=$? | ||
16533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16534 | (exit $ac_status); }; }; then | ||
16535 | ac_lo=0 ac_mid=0 | ||
16536 | while :; do | ||
16537 | cat >conftest.$ac_ext <<_ACEOF | ||
16538 | /* confdefs.h. */ | ||
16539 | _ACEOF | ||
16540 | cat confdefs.h >>conftest.$ac_ext | ||
16541 | cat >>conftest.$ac_ext <<_ACEOF | ||
16542 | /* end confdefs.h. */ | ||
16543 | $ac_includes_default | ||
16544 | int | ||
16545 | main () | ||
16546 | { | ||
16547 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
16548 | test_array [0] = 0 | ||
16549 | |||
16550 | ; | ||
16551 | return 0; | ||
16552 | } | ||
16553 | _ACEOF | ||
16554 | rm -f conftest.$ac_objext | ||
16555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16556 | (eval $ac_compile) 2>conftest.er1 | ||
16557 | ac_status=$? | ||
16558 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16559 | rm -f conftest.er1 | ||
16560 | cat conftest.err >&5 | ||
16561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16562 | (exit $ac_status); } && | ||
16563 | { ac_try='test -z "$ac_c_werror_flag" | ||
16564 | || test ! -s conftest.err' | ||
16565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16566 | (eval $ac_try) 2>&5 | ||
16567 | ac_status=$? | ||
16568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16569 | (exit $ac_status); }; } && | ||
16570 | { ac_try='test -s conftest.$ac_objext' | ||
16571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16572 | (eval $ac_try) 2>&5 | ||
16573 | ac_status=$? | ||
16574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16575 | (exit $ac_status); }; }; then | ||
16576 | ac_hi=$ac_mid; break | ||
16577 | else | ||
16578 | echo "$as_me: failed program was:" >&5 | ||
16579 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16580 | |||
16581 | ac_lo=`expr $ac_mid + 1` | ||
16582 | if test $ac_lo -le $ac_mid; then | ||
16583 | ac_lo= ac_hi= | ||
16584 | break | ||
16585 | fi | ||
16586 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
16587 | fi | ||
16588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16589 | done | ||
16590 | else | ||
16591 | echo "$as_me: failed program was:" >&5 | ||
16592 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16593 | |||
16594 | cat >conftest.$ac_ext <<_ACEOF | ||
16595 | /* confdefs.h. */ | ||
16596 | _ACEOF | ||
16597 | cat confdefs.h >>conftest.$ac_ext | ||
16598 | cat >>conftest.$ac_ext <<_ACEOF | ||
16599 | /* end confdefs.h. */ | ||
16600 | $ac_includes_default | ||
16601 | int | ||
16602 | main () | ||
16603 | { | ||
16604 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)]; | ||
16605 | test_array [0] = 0 | ||
16606 | |||
16607 | ; | ||
16608 | return 0; | ||
16609 | } | ||
16610 | _ACEOF | ||
16611 | rm -f conftest.$ac_objext | ||
16612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16613 | (eval $ac_compile) 2>conftest.er1 | ||
16614 | ac_status=$? | ||
16615 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16616 | rm -f conftest.er1 | ||
16617 | cat conftest.err >&5 | ||
16618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16619 | (exit $ac_status); } && | ||
16620 | { ac_try='test -z "$ac_c_werror_flag" | ||
16621 | || test ! -s conftest.err' | ||
16622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16623 | (eval $ac_try) 2>&5 | ||
16624 | ac_status=$? | ||
16625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16626 | (exit $ac_status); }; } && | ||
16627 | { ac_try='test -s conftest.$ac_objext' | ||
16628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16629 | (eval $ac_try) 2>&5 | ||
16630 | ac_status=$? | ||
16631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16632 | (exit $ac_status); }; }; then | ||
16633 | ac_hi=-1 ac_mid=-1 | ||
16634 | while :; do | ||
16635 | cat >conftest.$ac_ext <<_ACEOF | ||
16636 | /* confdefs.h. */ | ||
16637 | _ACEOF | ||
16638 | cat confdefs.h >>conftest.$ac_ext | ||
16639 | cat >>conftest.$ac_ext <<_ACEOF | ||
16640 | /* end confdefs.h. */ | ||
16641 | $ac_includes_default | ||
16642 | int | ||
16643 | main () | ||
16644 | { | ||
16645 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)]; | ||
16646 | test_array [0] = 0 | ||
16647 | |||
16648 | ; | ||
16649 | return 0; | ||
16650 | } | ||
16651 | _ACEOF | ||
16652 | rm -f conftest.$ac_objext | ||
16653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16654 | (eval $ac_compile) 2>conftest.er1 | ||
16655 | ac_status=$? | ||
16656 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16657 | rm -f conftest.er1 | ||
16658 | cat conftest.err >&5 | ||
16659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16660 | (exit $ac_status); } && | ||
16661 | { ac_try='test -z "$ac_c_werror_flag" | ||
16662 | || test ! -s conftest.err' | ||
16663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16664 | (eval $ac_try) 2>&5 | ||
16665 | ac_status=$? | ||
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16667 | (exit $ac_status); }; } && | ||
16668 | { ac_try='test -s conftest.$ac_objext' | ||
16669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16670 | (eval $ac_try) 2>&5 | ||
16671 | ac_status=$? | ||
16672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16673 | (exit $ac_status); }; }; then | ||
16674 | ac_lo=$ac_mid; break | ||
16675 | else | ||
16676 | echo "$as_me: failed program was:" >&5 | ||
16677 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16678 | |||
16679 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
16680 | if test $ac_mid -le $ac_hi; then | ||
16681 | ac_lo= ac_hi= | ||
16682 | break | ||
16683 | fi | ||
16684 | ac_mid=`expr 2 '*' $ac_mid` | ||
16685 | fi | ||
16686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16687 | done | ||
16688 | else | ||
16689 | echo "$as_me: failed program was:" >&5 | ||
16690 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16691 | |||
16692 | ac_lo= ac_hi= | ||
16693 | fi | ||
16694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16695 | fi | ||
16696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16697 | # Binary search between lo and hi bounds. | ||
16698 | while test "x$ac_lo" != "x$ac_hi"; do | ||
16699 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
16700 | cat >conftest.$ac_ext <<_ACEOF | ||
16701 | /* confdefs.h. */ | ||
16702 | _ACEOF | ||
16703 | cat confdefs.h >>conftest.$ac_ext | ||
16704 | cat >>conftest.$ac_ext <<_ACEOF | ||
16705 | /* end confdefs.h. */ | ||
16706 | $ac_includes_default | ||
16707 | int | ||
16708 | main () | ||
16709 | { | ||
16710 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
16711 | test_array [0] = 0 | ||
16712 | |||
16713 | ; | ||
16714 | return 0; | ||
16715 | } | ||
16716 | _ACEOF | ||
16717 | rm -f conftest.$ac_objext | ||
16718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16719 | (eval $ac_compile) 2>conftest.er1 | ||
16720 | ac_status=$? | ||
16721 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16722 | rm -f conftest.er1 | ||
16723 | cat conftest.err >&5 | ||
16724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16725 | (exit $ac_status); } && | ||
16726 | { ac_try='test -z "$ac_c_werror_flag" | ||
16727 | || test ! -s conftest.err' | ||
16728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16729 | (eval $ac_try) 2>&5 | ||
16730 | ac_status=$? | ||
16731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16732 | (exit $ac_status); }; } && | ||
16733 | { ac_try='test -s conftest.$ac_objext' | ||
16734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16735 | (eval $ac_try) 2>&5 | ||
16736 | ac_status=$? | ||
16737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16738 | (exit $ac_status); }; }; then | ||
16739 | ac_hi=$ac_mid | ||
16740 | else | ||
16741 | echo "$as_me: failed program was:" >&5 | ||
16742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16743 | |||
16744 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
16745 | fi | ||
16746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16747 | done | ||
16748 | case $ac_lo in | ||
16749 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
16750 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77 | ||
16751 | See \`config.log' for more details." >&5 | ||
16752 | echo "$as_me: error: cannot compute sizeof (long int), 77 | ||
16753 | See \`config.log' for more details." >&2;} | ||
16754 | { (exit 1); exit 1; }; } ;; | ||
16755 | esac | ||
16756 | else | ||
16757 | if test "$cross_compiling" = yes; then | ||
16758 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
16759 | See \`config.log' for more details." >&5 | ||
16760 | echo "$as_me: error: cannot run test program while cross compiling | ||
16761 | See \`config.log' for more details." >&2;} | ||
16762 | { (exit 1); exit 1; }; } | ||
16763 | else | ||
16764 | cat >conftest.$ac_ext <<_ACEOF | ||
16765 | /* confdefs.h. */ | ||
16766 | _ACEOF | ||
16767 | cat confdefs.h >>conftest.$ac_ext | ||
16768 | cat >>conftest.$ac_ext <<_ACEOF | ||
16769 | /* end confdefs.h. */ | ||
16770 | $ac_includes_default | ||
16771 | long longval () { return (long) (sizeof (long int)); } | ||
16772 | unsigned long ulongval () { return (long) (sizeof (long int)); } | ||
16773 | #include <stdio.h> | ||
16774 | #include <stdlib.h> | ||
16775 | int | ||
16776 | main () | ||
16777 | { | ||
16778 | |||
16779 | FILE *f = fopen ("conftest.val", "w"); | ||
16780 | if (! f) | ||
16781 | exit (1); | ||
16782 | if (((long) (sizeof (long int))) < 0) | ||
16783 | { | ||
16784 | long i = longval (); | ||
16785 | if (i != ((long) (sizeof (long int)))) | ||
16786 | exit (1); | ||
16787 | fprintf (f, "%ld\n", i); | ||
16788 | } | ||
16789 | else | ||
16790 | { | ||
16791 | unsigned long i = ulongval (); | ||
16792 | if (i != ((long) (sizeof (long int)))) | ||
16793 | exit (1); | ||
16794 | fprintf (f, "%lu\n", i); | ||
16795 | } | ||
16796 | exit (ferror (f) || fclose (f) != 0); | ||
16797 | |||
16798 | ; | ||
16799 | return 0; | ||
16800 | } | ||
16801 | _ACEOF | ||
16802 | rm -f conftest$ac_exeext | ||
16803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16804 | (eval $ac_link) 2>&5 | ||
16805 | ac_status=$? | ||
16806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16807 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16809 | (eval $ac_try) 2>&5 | ||
16810 | ac_status=$? | ||
16811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16812 | (exit $ac_status); }; }; then | ||
16813 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
16814 | else | ||
16815 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16816 | echo "$as_me: failed program was:" >&5 | ||
16817 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16818 | |||
16819 | ( exit $ac_status ) | ||
16820 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77 | ||
16821 | See \`config.log' for more details." >&5 | ||
16822 | echo "$as_me: error: cannot compute sizeof (long int), 77 | ||
16823 | See \`config.log' for more details." >&2;} | ||
16824 | { (exit 1); exit 1; }; } | ||
16825 | fi | ||
16826 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16827 | fi | ||
16828 | fi | ||
16829 | rm -f conftest.val | ||
16830 | else | ||
16831 | ac_cv_sizeof_long_int=0 | ||
16832 | fi | ||
16833 | fi | ||
16834 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
16835 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
16836 | cat >>confdefs.h <<_ACEOF | ||
16837 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
16838 | _ACEOF | ||
16839 | |||
16840 | |||
16841 | echo "$as_me:$LINENO: checking for long long int" >&5 | ||
16842 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
16843 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
16844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16845 | else | ||
16846 | cat >conftest.$ac_ext <<_ACEOF | ||
16847 | /* confdefs.h. */ | ||
16848 | _ACEOF | ||
16849 | cat confdefs.h >>conftest.$ac_ext | ||
16850 | cat >>conftest.$ac_ext <<_ACEOF | ||
16851 | /* end confdefs.h. */ | ||
16852 | $ac_includes_default | ||
16853 | int | ||
16854 | main () | ||
16855 | { | ||
16856 | if ((long long int *) 0) | ||
16857 | return 0; | ||
16858 | if (sizeof (long long int)) | ||
16859 | return 0; | ||
16860 | ; | ||
16861 | return 0; | ||
16862 | } | ||
16863 | _ACEOF | ||
16864 | rm -f conftest.$ac_objext | ||
16865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16866 | (eval $ac_compile) 2>conftest.er1 | ||
16867 | ac_status=$? | ||
16868 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16869 | rm -f conftest.er1 | ||
16870 | cat conftest.err >&5 | ||
16871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16872 | (exit $ac_status); } && | ||
16873 | { ac_try='test -z "$ac_c_werror_flag" | ||
16874 | || test ! -s conftest.err' | ||
16875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16876 | (eval $ac_try) 2>&5 | ||
16877 | ac_status=$? | ||
16878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16879 | (exit $ac_status); }; } && | ||
16880 | { ac_try='test -s conftest.$ac_objext' | ||
16881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16882 | (eval $ac_try) 2>&5 | ||
16883 | ac_status=$? | ||
16884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16885 | (exit $ac_status); }; }; then | ||
16886 | ac_cv_type_long_long_int=yes | ||
16887 | else | ||
16888 | echo "$as_me: failed program was:" >&5 | ||
16889 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16890 | |||
16891 | ac_cv_type_long_long_int=no | ||
16892 | fi | ||
16893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16894 | fi | ||
16895 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
16896 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
16897 | |||
16898 | echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
16899 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
16900 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
16901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16902 | else | ||
16903 | if test "$ac_cv_type_long_long_int" = yes; then | ||
16904 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
16905 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
16906 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
16907 | # This bug is HP SR number 8606223364. | ||
16908 | if test "$cross_compiling" = yes; then | ||
16909 | # Depending upon the size, compute the lo and hi bounds. | ||
16910 | cat >conftest.$ac_ext <<_ACEOF | ||
16911 | /* confdefs.h. */ | ||
16912 | _ACEOF | ||
16913 | cat confdefs.h >>conftest.$ac_ext | ||
16914 | cat >>conftest.$ac_ext <<_ACEOF | ||
16915 | /* end confdefs.h. */ | ||
16916 | $ac_includes_default | ||
16917 | int | ||
16918 | main () | ||
16919 | { | ||
16920 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)]; | ||
16921 | test_array [0] = 0 | ||
16922 | |||
16923 | ; | ||
16924 | return 0; | ||
16925 | } | ||
16926 | _ACEOF | ||
16927 | rm -f conftest.$ac_objext | ||
16928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16929 | (eval $ac_compile) 2>conftest.er1 | ||
16930 | ac_status=$? | ||
16931 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16932 | rm -f conftest.er1 | ||
16933 | cat conftest.err >&5 | ||
16934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16935 | (exit $ac_status); } && | ||
16936 | { ac_try='test -z "$ac_c_werror_flag" | ||
16937 | || test ! -s conftest.err' | ||
16938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16939 | (eval $ac_try) 2>&5 | ||
16940 | ac_status=$? | ||
16941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16942 | (exit $ac_status); }; } && | ||
16943 | { ac_try='test -s conftest.$ac_objext' | ||
16944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16945 | (eval $ac_try) 2>&5 | ||
16946 | ac_status=$? | ||
16947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16948 | (exit $ac_status); }; }; then | ||
16949 | ac_lo=0 ac_mid=0 | ||
16950 | while :; do | ||
16951 | cat >conftest.$ac_ext <<_ACEOF | ||
16952 | /* confdefs.h. */ | ||
16953 | _ACEOF | ||
16954 | cat confdefs.h >>conftest.$ac_ext | ||
16955 | cat >>conftest.$ac_ext <<_ACEOF | ||
16956 | /* end confdefs.h. */ | ||
16957 | $ac_includes_default | ||
16958 | int | ||
16959 | main () | ||
16960 | { | ||
16961 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
16962 | test_array [0] = 0 | ||
16963 | |||
16964 | ; | ||
16965 | return 0; | ||
16966 | } | ||
16967 | _ACEOF | ||
16968 | rm -f conftest.$ac_objext | ||
16969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16970 | (eval $ac_compile) 2>conftest.er1 | ||
16971 | ac_status=$? | ||
16972 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16973 | rm -f conftest.er1 | ||
16974 | cat conftest.err >&5 | ||
16975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16976 | (exit $ac_status); } && | ||
16977 | { ac_try='test -z "$ac_c_werror_flag" | ||
16978 | || test ! -s conftest.err' | ||
16979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16980 | (eval $ac_try) 2>&5 | ||
16981 | ac_status=$? | ||
16982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16983 | (exit $ac_status); }; } && | ||
16984 | { ac_try='test -s conftest.$ac_objext' | ||
16985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16986 | (eval $ac_try) 2>&5 | ||
16987 | ac_status=$? | ||
16988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16989 | (exit $ac_status); }; }; then | ||
16990 | ac_hi=$ac_mid; break | ||
16991 | else | ||
16992 | echo "$as_me: failed program was:" >&5 | ||
16993 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16994 | |||
16995 | ac_lo=`expr $ac_mid + 1` | ||
16996 | if test $ac_lo -le $ac_mid; then | ||
16997 | ac_lo= ac_hi= | ||
16998 | break | ||
16999 | fi | ||
17000 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
17001 | fi | ||
17002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17003 | done | ||
17004 | else | ||
17005 | echo "$as_me: failed program was:" >&5 | ||
17006 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17007 | |||
17008 | cat >conftest.$ac_ext <<_ACEOF | ||
17009 | /* confdefs.h. */ | ||
17010 | _ACEOF | ||
17011 | cat confdefs.h >>conftest.$ac_ext | ||
17012 | cat >>conftest.$ac_ext <<_ACEOF | ||
17013 | /* end confdefs.h. */ | ||
17014 | $ac_includes_default | ||
17015 | int | ||
17016 | main () | ||
17017 | { | ||
17018 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)]; | ||
17019 | test_array [0] = 0 | ||
17020 | |||
17021 | ; | ||
17022 | return 0; | ||
17023 | } | ||
17024 | _ACEOF | ||
17025 | rm -f conftest.$ac_objext | ||
17026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17027 | (eval $ac_compile) 2>conftest.er1 | ||
17028 | ac_status=$? | ||
17029 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17030 | rm -f conftest.er1 | ||
17031 | cat conftest.err >&5 | ||
17032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17033 | (exit $ac_status); } && | ||
17034 | { ac_try='test -z "$ac_c_werror_flag" | ||
17035 | || test ! -s conftest.err' | ||
17036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17037 | (eval $ac_try) 2>&5 | ||
17038 | ac_status=$? | ||
17039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17040 | (exit $ac_status); }; } && | ||
17041 | { ac_try='test -s conftest.$ac_objext' | ||
17042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17043 | (eval $ac_try) 2>&5 | ||
17044 | ac_status=$? | ||
17045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17046 | (exit $ac_status); }; }; then | ||
17047 | ac_hi=-1 ac_mid=-1 | ||
17048 | while :; do | ||
17049 | cat >conftest.$ac_ext <<_ACEOF | ||
17050 | /* confdefs.h. */ | ||
17051 | _ACEOF | ||
17052 | cat confdefs.h >>conftest.$ac_ext | ||
17053 | cat >>conftest.$ac_ext <<_ACEOF | ||
17054 | /* end confdefs.h. */ | ||
17055 | $ac_includes_default | ||
17056 | int | ||
17057 | main () | ||
17058 | { | ||
17059 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)]; | ||
17060 | test_array [0] = 0 | ||
17061 | |||
17062 | ; | ||
17063 | return 0; | ||
17064 | } | ||
17065 | _ACEOF | ||
17066 | rm -f conftest.$ac_objext | ||
17067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17068 | (eval $ac_compile) 2>conftest.er1 | ||
17069 | ac_status=$? | ||
17070 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17071 | rm -f conftest.er1 | ||
17072 | cat conftest.err >&5 | ||
17073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17074 | (exit $ac_status); } && | ||
17075 | { ac_try='test -z "$ac_c_werror_flag" | ||
17076 | || test ! -s conftest.err' | ||
17077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17078 | (eval $ac_try) 2>&5 | ||
17079 | ac_status=$? | ||
17080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17081 | (exit $ac_status); }; } && | ||
17082 | { ac_try='test -s conftest.$ac_objext' | ||
17083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17084 | (eval $ac_try) 2>&5 | ||
17085 | ac_status=$? | ||
17086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17087 | (exit $ac_status); }; }; then | ||
17088 | ac_lo=$ac_mid; break | ||
17089 | else | ||
17090 | echo "$as_me: failed program was:" >&5 | ||
17091 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17092 | |||
17093 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
17094 | if test $ac_mid -le $ac_hi; then | ||
17095 | ac_lo= ac_hi= | ||
17096 | break | ||
17097 | fi | ||
17098 | ac_mid=`expr 2 '*' $ac_mid` | ||
17099 | fi | ||
17100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17101 | done | ||
17102 | else | ||
17103 | echo "$as_me: failed program was:" >&5 | ||
17104 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17105 | |||
17106 | ac_lo= ac_hi= | ||
17107 | fi | ||
17108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17109 | fi | ||
17110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17111 | # Binary search between lo and hi bounds. | ||
17112 | while test "x$ac_lo" != "x$ac_hi"; do | ||
17113 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
17114 | cat >conftest.$ac_ext <<_ACEOF | ||
17115 | /* confdefs.h. */ | ||
17116 | _ACEOF | ||
17117 | cat confdefs.h >>conftest.$ac_ext | ||
17118 | cat >>conftest.$ac_ext <<_ACEOF | ||
17119 | /* end confdefs.h. */ | ||
17120 | $ac_includes_default | ||
17121 | int | ||
17122 | main () | ||
17123 | { | ||
17124 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
17125 | test_array [0] = 0 | ||
17126 | |||
17127 | ; | ||
17128 | return 0; | ||
17129 | } | ||
17130 | _ACEOF | ||
17131 | rm -f conftest.$ac_objext | ||
17132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17133 | (eval $ac_compile) 2>conftest.er1 | ||
17134 | ac_status=$? | ||
17135 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17136 | rm -f conftest.er1 | ||
17137 | cat conftest.err >&5 | ||
17138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17139 | (exit $ac_status); } && | ||
17140 | { ac_try='test -z "$ac_c_werror_flag" | ||
17141 | || test ! -s conftest.err' | ||
17142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17143 | (eval $ac_try) 2>&5 | ||
17144 | ac_status=$? | ||
17145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17146 | (exit $ac_status); }; } && | ||
17147 | { ac_try='test -s conftest.$ac_objext' | ||
17148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17149 | (eval $ac_try) 2>&5 | ||
17150 | ac_status=$? | ||
17151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17152 | (exit $ac_status); }; }; then | ||
17153 | ac_hi=$ac_mid | ||
17154 | else | ||
17155 | echo "$as_me: failed program was:" >&5 | ||
17156 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17157 | |||
17158 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
17159 | fi | ||
17160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17161 | done | ||
17162 | case $ac_lo in | ||
17163 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
17164 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77 | ||
17165 | See \`config.log' for more details." >&5 | ||
17166 | echo "$as_me: error: cannot compute sizeof (long long int), 77 | ||
17167 | See \`config.log' for more details." >&2;} | ||
17168 | { (exit 1); exit 1; }; } ;; | ||
17169 | esac | ||
17170 | else | ||
17171 | if test "$cross_compiling" = yes; then | ||
17172 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
17173 | See \`config.log' for more details." >&5 | ||
17174 | echo "$as_me: error: cannot run test program while cross compiling | ||
17175 | See \`config.log' for more details." >&2;} | ||
17176 | { (exit 1); exit 1; }; } | ||
17177 | else | ||
17178 | cat >conftest.$ac_ext <<_ACEOF | ||
17179 | /* confdefs.h. */ | ||
17180 | _ACEOF | ||
17181 | cat confdefs.h >>conftest.$ac_ext | ||
17182 | cat >>conftest.$ac_ext <<_ACEOF | ||
17183 | /* end confdefs.h. */ | ||
17184 | $ac_includes_default | ||
17185 | long longval () { return (long) (sizeof (long long int)); } | ||
17186 | unsigned long ulongval () { return (long) (sizeof (long long int)); } | ||
17187 | #include <stdio.h> | ||
17188 | #include <stdlib.h> | ||
17189 | int | ||
17190 | main () | ||
17191 | { | ||
17192 | |||
17193 | FILE *f = fopen ("conftest.val", "w"); | ||
17194 | if (! f) | ||
17195 | exit (1); | ||
17196 | if (((long) (sizeof (long long int))) < 0) | ||
17197 | { | ||
17198 | long i = longval (); | ||
17199 | if (i != ((long) (sizeof (long long int)))) | ||
17200 | exit (1); | ||
17201 | fprintf (f, "%ld\n", i); | ||
17202 | } | ||
17203 | else | ||
17204 | { | ||
17205 | unsigned long i = ulongval (); | ||
17206 | if (i != ((long) (sizeof (long long int)))) | ||
17207 | exit (1); | ||
17208 | fprintf (f, "%lu\n", i); | ||
17209 | } | ||
17210 | exit (ferror (f) || fclose (f) != 0); | ||
17211 | |||
17212 | ; | ||
17213 | return 0; | ||
17214 | } | ||
17215 | _ACEOF | ||
17216 | rm -f conftest$ac_exeext | ||
17217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
17218 | (eval $ac_link) 2>&5 | ||
17219 | ac_status=$? | ||
17220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17221 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17223 | (eval $ac_try) 2>&5 | ||
17224 | ac_status=$? | ||
17225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17226 | (exit $ac_status); }; }; then | ||
17227 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
17228 | else | ||
17229 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17230 | echo "$as_me: failed program was:" >&5 | ||
17231 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17232 | |||
17233 | ( exit $ac_status ) | ||
17234 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77 | ||
17235 | See \`config.log' for more details." >&5 | ||
17236 | echo "$as_me: error: cannot compute sizeof (long long int), 77 | ||
17237 | See \`config.log' for more details." >&2;} | ||
17238 | { (exit 1); exit 1; }; } | ||
17239 | fi | ||
17240 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17241 | fi | ||
17242 | fi | ||
17243 | rm -f conftest.val | ||
17244 | else | ||
17245 | ac_cv_sizeof_long_long_int=0 | ||
17246 | fi | ||
17247 | fi | ||
17248 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
17249 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
17250 | cat >>confdefs.h <<_ACEOF | ||
17251 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
17252 | _ACEOF | ||
17253 | |||
17254 | |||
17255 | |||
17256 | # Sanity check long long for some platforms (AIX) | ||
17257 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
17258 | ac_cv_sizeof_long_long_int=0 | ||
17259 | fi | ||
17260 | |||
17261 | # More checks for data types | ||
17262 | echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
17263 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
17264 | if test "${ac_cv_have_u_int+set}" = set; then | ||
17265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17266 | else | ||
17267 | |||
17268 | cat >conftest.$ac_ext <<_ACEOF | ||
17269 | /* confdefs.h. */ | ||
17270 | _ACEOF | ||
17271 | cat confdefs.h >>conftest.$ac_ext | ||
17272 | cat >>conftest.$ac_ext <<_ACEOF | ||
17273 | /* end confdefs.h. */ | ||
17274 | #include <sys/types.h> | ||
17275 | int | ||
17276 | main () | ||
17277 | { | ||
17278 | u_int a; a = 1; | ||
17279 | ; | ||
17280 | return 0; | ||
17281 | } | ||
17282 | _ACEOF | ||
17283 | rm -f conftest.$ac_objext | ||
17284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17285 | (eval $ac_compile) 2>conftest.er1 | ||
17286 | ac_status=$? | ||
17287 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17288 | rm -f conftest.er1 | ||
17289 | cat conftest.err >&5 | ||
17290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17291 | (exit $ac_status); } && | ||
17292 | { ac_try='test -z "$ac_c_werror_flag" | ||
17293 | || test ! -s conftest.err' | ||
17294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17295 | (eval $ac_try) 2>&5 | ||
17296 | ac_status=$? | ||
17297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17298 | (exit $ac_status); }; } && | ||
17299 | { ac_try='test -s conftest.$ac_objext' | ||
17300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17301 | (eval $ac_try) 2>&5 | ||
17302 | ac_status=$? | ||
17303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17304 | (exit $ac_status); }; }; then | ||
17305 | ac_cv_have_u_int="yes" | ||
17306 | else | ||
17307 | echo "$as_me: failed program was:" >&5 | ||
17308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17309 | |||
17310 | ac_cv_have_u_int="no" | ||
17311 | |||
17312 | fi | ||
17313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17314 | |||
17315 | fi | ||
17316 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
17317 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
17318 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
17319 | cat >>confdefs.h <<\_ACEOF | ||
17320 | #define HAVE_U_INT 1 | ||
17321 | _ACEOF | ||
17322 | |||
17323 | have_u_int=1 | ||
17324 | fi | ||
17325 | |||
17326 | echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
17327 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
17328 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
17329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17330 | else | ||
17331 | |||
17332 | cat >conftest.$ac_ext <<_ACEOF | ||
17333 | /* confdefs.h. */ | ||
17334 | _ACEOF | ||
17335 | cat confdefs.h >>conftest.$ac_ext | ||
17336 | cat >>conftest.$ac_ext <<_ACEOF | ||
17337 | /* end confdefs.h. */ | ||
17338 | #include <sys/types.h> | ||
17339 | int | ||
17340 | main () | ||
17341 | { | ||
17342 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
17343 | ; | ||
17344 | return 0; | ||
17345 | } | ||
17346 | _ACEOF | ||
17347 | rm -f conftest.$ac_objext | ||
17348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17349 | (eval $ac_compile) 2>conftest.er1 | ||
17350 | ac_status=$? | ||
17351 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17352 | rm -f conftest.er1 | ||
17353 | cat conftest.err >&5 | ||
17354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17355 | (exit $ac_status); } && | ||
17356 | { ac_try='test -z "$ac_c_werror_flag" | ||
17357 | || test ! -s conftest.err' | ||
17358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17359 | (eval $ac_try) 2>&5 | ||
17360 | ac_status=$? | ||
17361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17362 | (exit $ac_status); }; } && | ||
17363 | { ac_try='test -s conftest.$ac_objext' | ||
17364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17365 | (eval $ac_try) 2>&5 | ||
17366 | ac_status=$? | ||
17367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17368 | (exit $ac_status); }; }; then | ||
17369 | ac_cv_have_intxx_t="yes" | ||
17370 | else | ||
17371 | echo "$as_me: failed program was:" >&5 | ||
17372 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17373 | |||
17374 | ac_cv_have_intxx_t="no" | ||
17375 | |||
17376 | fi | ||
17377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17378 | |||
17379 | fi | ||
17380 | echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
17381 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
17382 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
17383 | cat >>confdefs.h <<\_ACEOF | ||
17384 | #define HAVE_INTXX_T 1 | ||
17385 | _ACEOF | ||
17386 | |||
17387 | have_intxx_t=1 | ||
17388 | fi | ||
17389 | |||
17390 | if (test -z "$have_intxx_t" && \ | ||
17391 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
17392 | then | ||
17393 | echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
17394 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
17395 | cat >conftest.$ac_ext <<_ACEOF | ||
17396 | /* confdefs.h. */ | ||
17397 | _ACEOF | ||
17398 | cat confdefs.h >>conftest.$ac_ext | ||
17399 | cat >>conftest.$ac_ext <<_ACEOF | ||
17400 | /* end confdefs.h. */ | ||
17401 | #include <stdint.h> | ||
17402 | int | ||
17403 | main () | ||
17404 | { | ||
17405 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
17406 | ; | ||
17407 | return 0; | ||
17408 | } | ||
17409 | _ACEOF | ||
17410 | rm -f conftest.$ac_objext | ||
17411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17412 | (eval $ac_compile) 2>conftest.er1 | ||
17413 | ac_status=$? | ||
17414 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17415 | rm -f conftest.er1 | ||
17416 | cat conftest.err >&5 | ||
17417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17418 | (exit $ac_status); } && | ||
17419 | { ac_try='test -z "$ac_c_werror_flag" | ||
17420 | || test ! -s conftest.err' | ||
17421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17422 | (eval $ac_try) 2>&5 | ||
17423 | ac_status=$? | ||
17424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17425 | (exit $ac_status); }; } && | ||
17426 | { ac_try='test -s conftest.$ac_objext' | ||
17427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17428 | (eval $ac_try) 2>&5 | ||
17429 | ac_status=$? | ||
17430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17431 | (exit $ac_status); }; }; then | ||
17432 | |||
17433 | cat >>confdefs.h <<\_ACEOF | ||
17434 | #define HAVE_INTXX_T 1 | ||
17435 | _ACEOF | ||
17436 | |||
17437 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17438 | echo "${ECHO_T}yes" >&6 | ||
17439 | |||
17440 | else | ||
17441 | echo "$as_me: failed program was:" >&5 | ||
17442 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17443 | |||
17444 | echo "$as_me:$LINENO: result: no" >&5 | ||
17445 | echo "${ECHO_T}no" >&6 | ||
17446 | |||
17447 | fi | ||
17448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17449 | fi | ||
17450 | |||
17451 | echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
17452 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
17453 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
17454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17455 | else | ||
17456 | |||
17457 | cat >conftest.$ac_ext <<_ACEOF | ||
17458 | /* confdefs.h. */ | ||
17459 | _ACEOF | ||
17460 | cat confdefs.h >>conftest.$ac_ext | ||
17461 | cat >>conftest.$ac_ext <<_ACEOF | ||
17462 | /* end confdefs.h. */ | ||
17463 | |||
17464 | #include <sys/types.h> | ||
17465 | #ifdef HAVE_STDINT_H | ||
17466 | # include <stdint.h> | ||
17467 | #endif | ||
17468 | #include <sys/socket.h> | ||
17469 | #ifdef HAVE_SYS_BITYPES_H | ||
17470 | # include <sys/bitypes.h> | ||
17471 | #endif | ||
17472 | |||
17473 | int | ||
17474 | main () | ||
17475 | { | ||
17476 | int64_t a; a = 1; | ||
17477 | ; | ||
17478 | return 0; | ||
17479 | } | ||
17480 | _ACEOF | ||
17481 | rm -f conftest.$ac_objext | ||
17482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17483 | (eval $ac_compile) 2>conftest.er1 | ||
17484 | ac_status=$? | ||
17485 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17486 | rm -f conftest.er1 | ||
17487 | cat conftest.err >&5 | ||
17488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17489 | (exit $ac_status); } && | ||
17490 | { ac_try='test -z "$ac_c_werror_flag" | ||
17491 | || test ! -s conftest.err' | ||
17492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17493 | (eval $ac_try) 2>&5 | ||
17494 | ac_status=$? | ||
17495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17496 | (exit $ac_status); }; } && | ||
17497 | { ac_try='test -s conftest.$ac_objext' | ||
17498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17499 | (eval $ac_try) 2>&5 | ||
17500 | ac_status=$? | ||
17501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17502 | (exit $ac_status); }; }; then | ||
17503 | ac_cv_have_int64_t="yes" | ||
17504 | else | ||
17505 | echo "$as_me: failed program was:" >&5 | ||
17506 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17507 | |||
17508 | ac_cv_have_int64_t="no" | ||
17509 | |||
17510 | fi | ||
17511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17512 | |||
17513 | fi | ||
17514 | echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
17515 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
17516 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
17517 | cat >>confdefs.h <<\_ACEOF | ||
17518 | #define HAVE_INT64_T 1 | ||
17519 | _ACEOF | ||
17520 | |||
17521 | fi | ||
17522 | |||
17523 | echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
17524 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
17525 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
17526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17527 | else | ||
17528 | |||
17529 | cat >conftest.$ac_ext <<_ACEOF | ||
17530 | /* confdefs.h. */ | ||
17531 | _ACEOF | ||
17532 | cat confdefs.h >>conftest.$ac_ext | ||
17533 | cat >>conftest.$ac_ext <<_ACEOF | ||
17534 | /* end confdefs.h. */ | ||
17535 | #include <sys/types.h> | ||
17536 | int | ||
17537 | main () | ||
17538 | { | ||
17539 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
17540 | ; | ||
17541 | return 0; | ||
17542 | } | ||
17543 | _ACEOF | ||
17544 | rm -f conftest.$ac_objext | ||
17545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17546 | (eval $ac_compile) 2>conftest.er1 | ||
17547 | ac_status=$? | ||
17548 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17549 | rm -f conftest.er1 | ||
17550 | cat conftest.err >&5 | ||
17551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17552 | (exit $ac_status); } && | ||
17553 | { ac_try='test -z "$ac_c_werror_flag" | ||
17554 | || test ! -s conftest.err' | ||
17555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17556 | (eval $ac_try) 2>&5 | ||
17557 | ac_status=$? | ||
17558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17559 | (exit $ac_status); }; } && | ||
17560 | { ac_try='test -s conftest.$ac_objext' | ||
17561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17562 | (eval $ac_try) 2>&5 | ||
17563 | ac_status=$? | ||
17564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17565 | (exit $ac_status); }; }; then | ||
17566 | ac_cv_have_u_intxx_t="yes" | ||
17567 | else | ||
17568 | echo "$as_me: failed program was:" >&5 | ||
17569 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17570 | |||
17571 | ac_cv_have_u_intxx_t="no" | ||
17572 | |||
17573 | fi | ||
17574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17575 | |||
17576 | fi | ||
17577 | echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
17578 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
17579 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
17580 | cat >>confdefs.h <<\_ACEOF | ||
17581 | #define HAVE_U_INTXX_T 1 | ||
17582 | _ACEOF | ||
17583 | |||
17584 | have_u_intxx_t=1 | ||
17585 | fi | ||
17586 | |||
17587 | if test -z "$have_u_intxx_t" ; then | ||
17588 | echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
17589 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
17590 | cat >conftest.$ac_ext <<_ACEOF | ||
17591 | /* confdefs.h. */ | ||
17592 | _ACEOF | ||
17593 | cat confdefs.h >>conftest.$ac_ext | ||
17594 | cat >>conftest.$ac_ext <<_ACEOF | ||
17595 | /* end confdefs.h. */ | ||
17596 | #include <sys/socket.h> | ||
17597 | int | ||
17598 | main () | ||
17599 | { | ||
17600 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
17601 | ; | ||
17602 | return 0; | ||
17603 | } | ||
17604 | _ACEOF | ||
17605 | rm -f conftest.$ac_objext | ||
17606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17607 | (eval $ac_compile) 2>conftest.er1 | ||
17608 | ac_status=$? | ||
17609 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17610 | rm -f conftest.er1 | ||
17611 | cat conftest.err >&5 | ||
17612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17613 | (exit $ac_status); } && | ||
17614 | { ac_try='test -z "$ac_c_werror_flag" | ||
17615 | || test ! -s conftest.err' | ||
17616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17617 | (eval $ac_try) 2>&5 | ||
17618 | ac_status=$? | ||
17619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17620 | (exit $ac_status); }; } && | ||
17621 | { ac_try='test -s conftest.$ac_objext' | ||
17622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17623 | (eval $ac_try) 2>&5 | ||
17624 | ac_status=$? | ||
17625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17626 | (exit $ac_status); }; }; then | ||
17627 | |||
17628 | cat >>confdefs.h <<\_ACEOF | ||
17629 | #define HAVE_U_INTXX_T 1 | ||
17630 | _ACEOF | ||
17631 | |||
17632 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17633 | echo "${ECHO_T}yes" >&6 | ||
17634 | |||
17635 | else | ||
17636 | echo "$as_me: failed program was:" >&5 | ||
17637 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17638 | |||
17639 | echo "$as_me:$LINENO: result: no" >&5 | ||
17640 | echo "${ECHO_T}no" >&6 | ||
17641 | |||
17642 | fi | ||
17643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17644 | fi | ||
17645 | |||
17646 | echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
17647 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
17648 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
17649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17650 | else | ||
17651 | |||
17652 | cat >conftest.$ac_ext <<_ACEOF | ||
17653 | /* confdefs.h. */ | ||
17654 | _ACEOF | ||
17655 | cat confdefs.h >>conftest.$ac_ext | ||
17656 | cat >>conftest.$ac_ext <<_ACEOF | ||
17657 | /* end confdefs.h. */ | ||
17658 | #include <sys/types.h> | ||
17659 | int | ||
17660 | main () | ||
17661 | { | ||
17662 | u_int64_t a; a = 1; | ||
17663 | ; | ||
17664 | return 0; | ||
17665 | } | ||
17666 | _ACEOF | ||
17667 | rm -f conftest.$ac_objext | ||
17668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17669 | (eval $ac_compile) 2>conftest.er1 | ||
17670 | ac_status=$? | ||
17671 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17672 | rm -f conftest.er1 | ||
17673 | cat conftest.err >&5 | ||
17674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17675 | (exit $ac_status); } && | ||
17676 | { ac_try='test -z "$ac_c_werror_flag" | ||
17677 | || test ! -s conftest.err' | ||
17678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17679 | (eval $ac_try) 2>&5 | ||
17680 | ac_status=$? | ||
17681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17682 | (exit $ac_status); }; } && | ||
17683 | { ac_try='test -s conftest.$ac_objext' | ||
17684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17685 | (eval $ac_try) 2>&5 | ||
17686 | ac_status=$? | ||
17687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17688 | (exit $ac_status); }; }; then | ||
17689 | ac_cv_have_u_int64_t="yes" | ||
17690 | else | ||
17691 | echo "$as_me: failed program was:" >&5 | ||
17692 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17693 | |||
17694 | ac_cv_have_u_int64_t="no" | ||
17695 | |||
17696 | fi | ||
17697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17698 | |||
17699 | fi | ||
17700 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
17701 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
17702 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
17703 | cat >>confdefs.h <<\_ACEOF | ||
17704 | #define HAVE_U_INT64_T 1 | ||
17705 | _ACEOF | ||
17706 | |||
17707 | have_u_int64_t=1 | ||
17708 | fi | ||
17709 | |||
17710 | if test -z "$have_u_int64_t" ; then | ||
17711 | echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
17712 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
17713 | cat >conftest.$ac_ext <<_ACEOF | ||
17714 | /* confdefs.h. */ | ||
17715 | _ACEOF | ||
17716 | cat confdefs.h >>conftest.$ac_ext | ||
17717 | cat >>conftest.$ac_ext <<_ACEOF | ||
17718 | /* end confdefs.h. */ | ||
17719 | #include <sys/bitypes.h> | ||
17720 | int | ||
17721 | main () | ||
17722 | { | ||
17723 | u_int64_t a; a = 1 | ||
17724 | ; | ||
17725 | return 0; | ||
17726 | } | ||
17727 | _ACEOF | ||
17728 | rm -f conftest.$ac_objext | ||
17729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17730 | (eval $ac_compile) 2>conftest.er1 | ||
17731 | ac_status=$? | ||
17732 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17733 | rm -f conftest.er1 | ||
17734 | cat conftest.err >&5 | ||
17735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17736 | (exit $ac_status); } && | ||
17737 | { ac_try='test -z "$ac_c_werror_flag" | ||
17738 | || test ! -s conftest.err' | ||
17739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17740 | (eval $ac_try) 2>&5 | ||
17741 | ac_status=$? | ||
17742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17743 | (exit $ac_status); }; } && | ||
17744 | { ac_try='test -s conftest.$ac_objext' | ||
17745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17746 | (eval $ac_try) 2>&5 | ||
17747 | ac_status=$? | ||
17748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17749 | (exit $ac_status); }; }; then | ||
17750 | |||
17751 | cat >>confdefs.h <<\_ACEOF | ||
17752 | #define HAVE_U_INT64_T 1 | ||
17753 | _ACEOF | ||
17754 | |||
17755 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17756 | echo "${ECHO_T}yes" >&6 | ||
17757 | |||
17758 | else | ||
17759 | echo "$as_me: failed program was:" >&5 | ||
17760 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17761 | |||
17762 | echo "$as_me:$LINENO: result: no" >&5 | ||
17763 | echo "${ECHO_T}no" >&6 | ||
17764 | |||
17765 | fi | ||
17766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17767 | fi | ||
17768 | |||
17769 | if test -z "$have_u_intxx_t" ; then | ||
17770 | echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
17771 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
17772 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
17773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17774 | else | ||
17775 | |||
17776 | cat >conftest.$ac_ext <<_ACEOF | ||
17777 | /* confdefs.h. */ | ||
17778 | _ACEOF | ||
17779 | cat confdefs.h >>conftest.$ac_ext | ||
17780 | cat >>conftest.$ac_ext <<_ACEOF | ||
17781 | /* end confdefs.h. */ | ||
17782 | |||
17783 | #include <sys/types.h> | ||
17784 | |||
17785 | int | ||
17786 | main () | ||
17787 | { | ||
17788 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
17789 | ; | ||
17790 | return 0; | ||
17791 | } | ||
17792 | _ACEOF | ||
17793 | rm -f conftest.$ac_objext | ||
17794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17795 | (eval $ac_compile) 2>conftest.er1 | ||
17796 | ac_status=$? | ||
17797 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17798 | rm -f conftest.er1 | ||
17799 | cat conftest.err >&5 | ||
17800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17801 | (exit $ac_status); } && | ||
17802 | { ac_try='test -z "$ac_c_werror_flag" | ||
17803 | || test ! -s conftest.err' | ||
17804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17805 | (eval $ac_try) 2>&5 | ||
17806 | ac_status=$? | ||
17807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17808 | (exit $ac_status); }; } && | ||
17809 | { ac_try='test -s conftest.$ac_objext' | ||
17810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17811 | (eval $ac_try) 2>&5 | ||
17812 | ac_status=$? | ||
17813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17814 | (exit $ac_status); }; }; then | ||
17815 | ac_cv_have_uintxx_t="yes" | ||
17816 | else | ||
17817 | echo "$as_me: failed program was:" >&5 | ||
17818 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17819 | |||
17820 | ac_cv_have_uintxx_t="no" | ||
17821 | |||
17822 | fi | ||
17823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17824 | |||
17825 | fi | ||
17826 | echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
17827 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
17828 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
17829 | cat >>confdefs.h <<\_ACEOF | ||
17830 | #define HAVE_UINTXX_T 1 | ||
17831 | _ACEOF | ||
17832 | |||
17833 | fi | ||
17834 | fi | ||
17835 | |||
17836 | if test -z "$have_uintxx_t" ; then | ||
17837 | echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
17838 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
17839 | cat >conftest.$ac_ext <<_ACEOF | ||
17840 | /* confdefs.h. */ | ||
17841 | _ACEOF | ||
17842 | cat confdefs.h >>conftest.$ac_ext | ||
17843 | cat >>conftest.$ac_ext <<_ACEOF | ||
17844 | /* end confdefs.h. */ | ||
17845 | #include <stdint.h> | ||
17846 | int | ||
17847 | main () | ||
17848 | { | ||
17849 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
17850 | ; | ||
17851 | return 0; | ||
17852 | } | ||
17853 | _ACEOF | ||
17854 | rm -f conftest.$ac_objext | ||
17855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17856 | (eval $ac_compile) 2>conftest.er1 | ||
17857 | ac_status=$? | ||
17858 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17859 | rm -f conftest.er1 | ||
17860 | cat conftest.err >&5 | ||
17861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17862 | (exit $ac_status); } && | ||
17863 | { ac_try='test -z "$ac_c_werror_flag" | ||
17864 | || test ! -s conftest.err' | ||
17865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17866 | (eval $ac_try) 2>&5 | ||
17867 | ac_status=$? | ||
17868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17869 | (exit $ac_status); }; } && | ||
17870 | { ac_try='test -s conftest.$ac_objext' | ||
17871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17872 | (eval $ac_try) 2>&5 | ||
17873 | ac_status=$? | ||
17874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17875 | (exit $ac_status); }; }; then | ||
17876 | |||
17877 | cat >>confdefs.h <<\_ACEOF | ||
17878 | #define HAVE_UINTXX_T 1 | ||
17879 | _ACEOF | ||
17880 | |||
17881 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17882 | echo "${ECHO_T}yes" >&6 | ||
17883 | |||
17884 | else | ||
17885 | echo "$as_me: failed program was:" >&5 | ||
17886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17887 | |||
17888 | echo "$as_me:$LINENO: result: no" >&5 | ||
17889 | echo "${ECHO_T}no" >&6 | ||
17890 | |||
17891 | fi | ||
17892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17893 | fi | ||
17894 | |||
17895 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
17896 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
17897 | then | ||
17898 | echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
17899 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
17900 | cat >conftest.$ac_ext <<_ACEOF | ||
17901 | /* confdefs.h. */ | ||
17902 | _ACEOF | ||
17903 | cat confdefs.h >>conftest.$ac_ext | ||
17904 | cat >>conftest.$ac_ext <<_ACEOF | ||
17905 | /* end confdefs.h. */ | ||
17906 | |||
17907 | #include <sys/bitypes.h> | ||
17908 | |||
17909 | int | ||
17910 | main () | ||
17911 | { | ||
17912 | |||
17913 | int8_t a; int16_t b; int32_t c; | ||
17914 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
17915 | a = b = c = e = f = g = 1; | ||
17916 | |||
17917 | ; | ||
17918 | return 0; | ||
17919 | } | ||
17920 | _ACEOF | ||
17921 | rm -f conftest.$ac_objext | ||
17922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17923 | (eval $ac_compile) 2>conftest.er1 | ||
17924 | ac_status=$? | ||
17925 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17926 | rm -f conftest.er1 | ||
17927 | cat conftest.err >&5 | ||
17928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17929 | (exit $ac_status); } && | ||
17930 | { ac_try='test -z "$ac_c_werror_flag" | ||
17931 | || test ! -s conftest.err' | ||
17932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17933 | (eval $ac_try) 2>&5 | ||
17934 | ac_status=$? | ||
17935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17936 | (exit $ac_status); }; } && | ||
17937 | { ac_try='test -s conftest.$ac_objext' | ||
17938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17939 | (eval $ac_try) 2>&5 | ||
17940 | ac_status=$? | ||
17941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17942 | (exit $ac_status); }; }; then | ||
17943 | |||
17944 | cat >>confdefs.h <<\_ACEOF | ||
17945 | #define HAVE_U_INTXX_T 1 | ||
17946 | _ACEOF | ||
17947 | |||
17948 | cat >>confdefs.h <<\_ACEOF | ||
17949 | #define HAVE_INTXX_T 1 | ||
17950 | _ACEOF | ||
17951 | |||
17952 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17953 | echo "${ECHO_T}yes" >&6 | ||
17954 | |||
17955 | else | ||
17956 | echo "$as_me: failed program was:" >&5 | ||
17957 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17958 | |||
17959 | echo "$as_me:$LINENO: result: no" >&5 | ||
17960 | echo "${ECHO_T}no" >&6 | ||
17961 | |||
17962 | fi | ||
17963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17964 | fi | ||
17965 | |||
17966 | |||
17967 | echo "$as_me:$LINENO: checking for u_char" >&5 | ||
17968 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
17969 | if test "${ac_cv_have_u_char+set}" = set; then | ||
17970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17971 | else | ||
17972 | |||
17973 | cat >conftest.$ac_ext <<_ACEOF | ||
17974 | /* confdefs.h. */ | ||
17975 | _ACEOF | ||
17976 | cat confdefs.h >>conftest.$ac_ext | ||
17977 | cat >>conftest.$ac_ext <<_ACEOF | ||
17978 | /* end confdefs.h. */ | ||
17979 | |||
17980 | #include <sys/types.h> | ||
17981 | |||
17982 | int | ||
17983 | main () | ||
17984 | { | ||
17985 | u_char foo; foo = 125; | ||
17986 | ; | ||
17987 | return 0; | ||
17988 | } | ||
17989 | _ACEOF | ||
17990 | rm -f conftest.$ac_objext | ||
17991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17992 | (eval $ac_compile) 2>conftest.er1 | ||
17993 | ac_status=$? | ||
17994 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17995 | rm -f conftest.er1 | ||
17996 | cat conftest.err >&5 | ||
17997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17998 | (exit $ac_status); } && | ||
17999 | { ac_try='test -z "$ac_c_werror_flag" | ||
18000 | || test ! -s conftest.err' | ||
18001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18002 | (eval $ac_try) 2>&5 | ||
18003 | ac_status=$? | ||
18004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18005 | (exit $ac_status); }; } && | ||
18006 | { ac_try='test -s conftest.$ac_objext' | ||
18007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18008 | (eval $ac_try) 2>&5 | ||
18009 | ac_status=$? | ||
18010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18011 | (exit $ac_status); }; }; then | ||
18012 | ac_cv_have_u_char="yes" | ||
18013 | else | ||
18014 | echo "$as_me: failed program was:" >&5 | ||
18015 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18016 | |||
18017 | ac_cv_have_u_char="no" | ||
18018 | |||
18019 | fi | ||
18020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18021 | |||
18022 | fi | ||
18023 | echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
18024 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
18025 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
18026 | cat >>confdefs.h <<\_ACEOF | ||
18027 | #define HAVE_U_CHAR 1 | ||
18028 | _ACEOF | ||
18029 | |||
18030 | fi | ||
18031 | |||
18032 | |||
18033 | echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
18034 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
18035 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
18036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18037 | else | ||
18038 | cat >conftest.$ac_ext <<_ACEOF | ||
18039 | /* confdefs.h. */ | ||
18040 | _ACEOF | ||
18041 | cat confdefs.h >>conftest.$ac_ext | ||
18042 | cat >>conftest.$ac_ext <<_ACEOF | ||
18043 | /* end confdefs.h. */ | ||
18044 | #include <sys/types.h> | ||
18045 | #include <sys/socket.h> | ||
18046 | |||
18047 | int | ||
18048 | main () | ||
18049 | { | ||
18050 | if ((socklen_t *) 0) | ||
18051 | return 0; | ||
18052 | if (sizeof (socklen_t)) | ||
18053 | return 0; | ||
18054 | ; | ||
18055 | return 0; | ||
18056 | } | ||
18057 | _ACEOF | ||
18058 | rm -f conftest.$ac_objext | ||
18059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18060 | (eval $ac_compile) 2>conftest.er1 | ||
18061 | ac_status=$? | ||
18062 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18063 | rm -f conftest.er1 | ||
18064 | cat conftest.err >&5 | ||
18065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18066 | (exit $ac_status); } && | ||
18067 | { ac_try='test -z "$ac_c_werror_flag" | ||
18068 | || test ! -s conftest.err' | ||
18069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18070 | (eval $ac_try) 2>&5 | ||
18071 | ac_status=$? | ||
18072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18073 | (exit $ac_status); }; } && | ||
18074 | { ac_try='test -s conftest.$ac_objext' | ||
18075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18076 | (eval $ac_try) 2>&5 | ||
18077 | ac_status=$? | ||
18078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18079 | (exit $ac_status); }; }; then | ||
18080 | ac_cv_type_socklen_t=yes | ||
18081 | else | ||
18082 | echo "$as_me: failed program was:" >&5 | ||
18083 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18084 | |||
18085 | ac_cv_type_socklen_t=no | ||
18086 | fi | ||
18087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18088 | fi | ||
18089 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
18090 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
18091 | if test $ac_cv_type_socklen_t = yes; then | ||
18092 | : | ||
18093 | else | ||
18094 | |||
18095 | echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
18096 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
18097 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
18098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18099 | else | ||
18100 | |||
18101 | # Systems have either "struct sockaddr *" or | ||
18102 | # "void *" as the second argument to getpeername | ||
18103 | curl_cv_socklen_t_equiv= | ||
18104 | for arg2 in "struct sockaddr" void; do | ||
18105 | for t in int size_t unsigned long "unsigned long"; do | ||
18106 | cat >conftest.$ac_ext <<_ACEOF | ||
18107 | /* confdefs.h. */ | ||
18108 | _ACEOF | ||
18109 | cat confdefs.h >>conftest.$ac_ext | ||
18110 | cat >>conftest.$ac_ext <<_ACEOF | ||
18111 | /* end confdefs.h. */ | ||
18112 | |||
18113 | #include <sys/types.h> | ||
18114 | #include <sys/socket.h> | ||
18115 | |||
18116 | int getpeername (int, $arg2 *, $t *); | ||
18117 | |||
18118 | int | ||
18119 | main () | ||
18120 | { | ||
18121 | |||
18122 | $t len; | ||
18123 | getpeername(0,0,&len); | ||
18124 | |||
18125 | ; | ||
18126 | return 0; | ||
18127 | } | ||
18128 | _ACEOF | ||
18129 | rm -f conftest.$ac_objext | ||
18130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18131 | (eval $ac_compile) 2>conftest.er1 | ||
18132 | ac_status=$? | ||
18133 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18134 | rm -f conftest.er1 | ||
18135 | cat conftest.err >&5 | ||
18136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18137 | (exit $ac_status); } && | ||
18138 | { ac_try='test -z "$ac_c_werror_flag" | ||
18139 | || test ! -s conftest.err' | ||
18140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18141 | (eval $ac_try) 2>&5 | ||
18142 | ac_status=$? | ||
18143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18144 | (exit $ac_status); }; } && | ||
18145 | { ac_try='test -s conftest.$ac_objext' | ||
18146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18147 | (eval $ac_try) 2>&5 | ||
18148 | ac_status=$? | ||
18149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18150 | (exit $ac_status); }; }; then | ||
18151 | |||
18152 | curl_cv_socklen_t_equiv="$t" | ||
18153 | break | ||
18154 | |||
18155 | else | ||
18156 | echo "$as_me: failed program was:" >&5 | ||
18157 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18158 | |||
18159 | fi | ||
18160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18161 | done | ||
18162 | done | ||
18163 | |||
18164 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
18165 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
18166 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
18167 | { (exit 1); exit 1; }; } | ||
18168 | fi | ||
18169 | |||
18170 | fi | ||
18171 | |||
18172 | echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
18173 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
18174 | |||
18175 | cat >>confdefs.h <<_ACEOF | ||
18176 | #define socklen_t $curl_cv_socklen_t_equiv | ||
18177 | _ACEOF | ||
18178 | |||
18179 | fi | ||
18180 | |||
18181 | |||
18182 | |||
18183 | echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
18184 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
18185 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
18186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18187 | else | ||
18188 | cat >conftest.$ac_ext <<_ACEOF | ||
18189 | /* confdefs.h. */ | ||
18190 | _ACEOF | ||
18191 | cat confdefs.h >>conftest.$ac_ext | ||
18192 | cat >>conftest.$ac_ext <<_ACEOF | ||
18193 | /* end confdefs.h. */ | ||
18194 | #include <signal.h> | ||
18195 | |||
18196 | int | ||
18197 | main () | ||
18198 | { | ||
18199 | if ((sig_atomic_t *) 0) | ||
18200 | return 0; | ||
18201 | if (sizeof (sig_atomic_t)) | ||
18202 | return 0; | ||
18203 | ; | ||
18204 | return 0; | ||
18205 | } | ||
18206 | _ACEOF | ||
18207 | rm -f conftest.$ac_objext | ||
18208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18209 | (eval $ac_compile) 2>conftest.er1 | ||
18210 | ac_status=$? | ||
18211 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18212 | rm -f conftest.er1 | ||
18213 | cat conftest.err >&5 | ||
18214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18215 | (exit $ac_status); } && | ||
18216 | { ac_try='test -z "$ac_c_werror_flag" | ||
18217 | || test ! -s conftest.err' | ||
18218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18219 | (eval $ac_try) 2>&5 | ||
18220 | ac_status=$? | ||
18221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18222 | (exit $ac_status); }; } && | ||
18223 | { ac_try='test -s conftest.$ac_objext' | ||
18224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18225 | (eval $ac_try) 2>&5 | ||
18226 | ac_status=$? | ||
18227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18228 | (exit $ac_status); }; }; then | ||
18229 | ac_cv_type_sig_atomic_t=yes | ||
18230 | else | ||
18231 | echo "$as_me: failed program was:" >&5 | ||
18232 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18233 | |||
18234 | ac_cv_type_sig_atomic_t=no | ||
18235 | fi | ||
18236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18237 | fi | ||
18238 | echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
18239 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
18240 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
18241 | |||
18242 | cat >>confdefs.h <<_ACEOF | ||
18243 | #define HAVE_SIG_ATOMIC_T 1 | ||
18244 | _ACEOF | ||
18245 | |||
18246 | |||
18247 | fi | ||
18248 | |||
18249 | |||
18250 | echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
18251 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6 | ||
18252 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
18253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18254 | else | ||
18255 | cat >conftest.$ac_ext <<_ACEOF | ||
18256 | /* confdefs.h. */ | ||
18257 | _ACEOF | ||
18258 | cat confdefs.h >>conftest.$ac_ext | ||
18259 | cat >>conftest.$ac_ext <<_ACEOF | ||
18260 | /* end confdefs.h. */ | ||
18261 | #include <sys/types.h> | ||
18262 | #include <netinet/in.h> | ||
18263 | |||
18264 | int | ||
18265 | main () | ||
18266 | { | ||
18267 | if ((in_addr_t *) 0) | ||
18268 | return 0; | ||
18269 | if (sizeof (in_addr_t)) | ||
18270 | return 0; | ||
18271 | ; | ||
18272 | return 0; | ||
18273 | } | ||
18274 | _ACEOF | ||
18275 | rm -f conftest.$ac_objext | ||
18276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18277 | (eval $ac_compile) 2>conftest.er1 | ||
18278 | ac_status=$? | ||
18279 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18280 | rm -f conftest.er1 | ||
18281 | cat conftest.err >&5 | ||
18282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18283 | (exit $ac_status); } && | ||
18284 | { ac_try='test -z "$ac_c_werror_flag" | ||
18285 | || test ! -s conftest.err' | ||
18286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18287 | (eval $ac_try) 2>&5 | ||
18288 | ac_status=$? | ||
18289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18290 | (exit $ac_status); }; } && | ||
18291 | { ac_try='test -s conftest.$ac_objext' | ||
18292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18293 | (eval $ac_try) 2>&5 | ||
18294 | ac_status=$? | ||
18295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18296 | (exit $ac_status); }; }; then | ||
18297 | ac_cv_type_in_addr_t=yes | ||
18298 | else | ||
18299 | echo "$as_me: failed program was:" >&5 | ||
18300 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18301 | |||
18302 | ac_cv_type_in_addr_t=no | ||
18303 | fi | ||
18304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18305 | fi | ||
18306 | echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
18307 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6 | ||
18308 | if test $ac_cv_type_in_addr_t = yes; then | ||
18309 | |||
18310 | cat >>confdefs.h <<_ACEOF | ||
18311 | #define HAVE_IN_ADDR_T 1 | ||
18312 | _ACEOF | ||
18313 | |||
18314 | |||
18315 | fi | ||
18316 | |||
18317 | |||
18318 | echo "$as_me:$LINENO: checking for size_t" >&5 | ||
18319 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
18320 | if test "${ac_cv_have_size_t+set}" = set; then | ||
18321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18322 | else | ||
18323 | |||
18324 | cat >conftest.$ac_ext <<_ACEOF | ||
18325 | /* confdefs.h. */ | ||
18326 | _ACEOF | ||
18327 | cat confdefs.h >>conftest.$ac_ext | ||
18328 | cat >>conftest.$ac_ext <<_ACEOF | ||
18329 | /* end confdefs.h. */ | ||
18330 | |||
18331 | #include <sys/types.h> | ||
18332 | |||
18333 | int | ||
18334 | main () | ||
18335 | { | ||
18336 | size_t foo; foo = 1235; | ||
18337 | ; | ||
18338 | return 0; | ||
18339 | } | ||
18340 | _ACEOF | ||
18341 | rm -f conftest.$ac_objext | ||
18342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18343 | (eval $ac_compile) 2>conftest.er1 | ||
18344 | ac_status=$? | ||
18345 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18346 | rm -f conftest.er1 | ||
18347 | cat conftest.err >&5 | ||
18348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18349 | (exit $ac_status); } && | ||
18350 | { ac_try='test -z "$ac_c_werror_flag" | ||
18351 | || test ! -s conftest.err' | ||
18352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18353 | (eval $ac_try) 2>&5 | ||
18354 | ac_status=$? | ||
18355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18356 | (exit $ac_status); }; } && | ||
18357 | { ac_try='test -s conftest.$ac_objext' | ||
18358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18359 | (eval $ac_try) 2>&5 | ||
18360 | ac_status=$? | ||
18361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18362 | (exit $ac_status); }; }; then | ||
18363 | ac_cv_have_size_t="yes" | ||
18364 | else | ||
18365 | echo "$as_me: failed program was:" >&5 | ||
18366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18367 | |||
18368 | ac_cv_have_size_t="no" | ||
18369 | |||
18370 | fi | ||
18371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18372 | |||
18373 | fi | ||
18374 | echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
18375 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
18376 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
18377 | cat >>confdefs.h <<\_ACEOF | ||
18378 | #define HAVE_SIZE_T 1 | ||
18379 | _ACEOF | ||
18380 | |||
18381 | fi | ||
18382 | |||
18383 | echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
18384 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
18385 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
18386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18387 | else | ||
18388 | |||
18389 | cat >conftest.$ac_ext <<_ACEOF | ||
18390 | /* confdefs.h. */ | ||
18391 | _ACEOF | ||
18392 | cat confdefs.h >>conftest.$ac_ext | ||
18393 | cat >>conftest.$ac_ext <<_ACEOF | ||
18394 | /* end confdefs.h. */ | ||
18395 | |||
18396 | #include <sys/types.h> | ||
18397 | |||
18398 | int | ||
18399 | main () | ||
18400 | { | ||
18401 | ssize_t foo; foo = 1235; | ||
18402 | ; | ||
18403 | return 0; | ||
18404 | } | ||
18405 | _ACEOF | ||
18406 | rm -f conftest.$ac_objext | ||
18407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18408 | (eval $ac_compile) 2>conftest.er1 | ||
18409 | ac_status=$? | ||
18410 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18411 | rm -f conftest.er1 | ||
18412 | cat conftest.err >&5 | ||
18413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18414 | (exit $ac_status); } && | ||
18415 | { ac_try='test -z "$ac_c_werror_flag" | ||
18416 | || test ! -s conftest.err' | ||
18417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18418 | (eval $ac_try) 2>&5 | ||
18419 | ac_status=$? | ||
18420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18421 | (exit $ac_status); }; } && | ||
18422 | { ac_try='test -s conftest.$ac_objext' | ||
18423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18424 | (eval $ac_try) 2>&5 | ||
18425 | ac_status=$? | ||
18426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18427 | (exit $ac_status); }; }; then | ||
18428 | ac_cv_have_ssize_t="yes" | ||
18429 | else | ||
18430 | echo "$as_me: failed program was:" >&5 | ||
18431 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18432 | |||
18433 | ac_cv_have_ssize_t="no" | ||
18434 | |||
18435 | fi | ||
18436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18437 | |||
18438 | fi | ||
18439 | echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
18440 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
18441 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
18442 | cat >>confdefs.h <<\_ACEOF | ||
18443 | #define HAVE_SSIZE_T 1 | ||
18444 | _ACEOF | ||
18445 | |||
18446 | fi | ||
18447 | |||
18448 | echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
18449 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
18450 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
18451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18452 | else | ||
18453 | |||
18454 | cat >conftest.$ac_ext <<_ACEOF | ||
18455 | /* confdefs.h. */ | ||
18456 | _ACEOF | ||
18457 | cat confdefs.h >>conftest.$ac_ext | ||
18458 | cat >>conftest.$ac_ext <<_ACEOF | ||
18459 | /* end confdefs.h. */ | ||
18460 | |||
18461 | #include <time.h> | ||
18462 | |||
18463 | int | ||
18464 | main () | ||
18465 | { | ||
18466 | clock_t foo; foo = 1235; | ||
18467 | ; | ||
18468 | return 0; | ||
18469 | } | ||
18470 | _ACEOF | ||
18471 | rm -f conftest.$ac_objext | ||
18472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18473 | (eval $ac_compile) 2>conftest.er1 | ||
18474 | ac_status=$? | ||
18475 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18476 | rm -f conftest.er1 | ||
18477 | cat conftest.err >&5 | ||
18478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18479 | (exit $ac_status); } && | ||
18480 | { ac_try='test -z "$ac_c_werror_flag" | ||
18481 | || test ! -s conftest.err' | ||
18482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18483 | (eval $ac_try) 2>&5 | ||
18484 | ac_status=$? | ||
18485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18486 | (exit $ac_status); }; } && | ||
18487 | { ac_try='test -s conftest.$ac_objext' | ||
18488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18489 | (eval $ac_try) 2>&5 | ||
18490 | ac_status=$? | ||
18491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18492 | (exit $ac_status); }; }; then | ||
18493 | ac_cv_have_clock_t="yes" | ||
18494 | else | ||
18495 | echo "$as_me: failed program was:" >&5 | ||
18496 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18497 | |||
18498 | ac_cv_have_clock_t="no" | ||
18499 | |||
18500 | fi | ||
18501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18502 | |||
18503 | fi | ||
18504 | echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
18505 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
18506 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
18507 | cat >>confdefs.h <<\_ACEOF | ||
18508 | #define HAVE_CLOCK_T 1 | ||
18509 | _ACEOF | ||
18510 | |||
18511 | fi | ||
18512 | |||
18513 | echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
18514 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
18515 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
18516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18517 | else | ||
18518 | |||
18519 | cat >conftest.$ac_ext <<_ACEOF | ||
18520 | /* confdefs.h. */ | ||
18521 | _ACEOF | ||
18522 | cat confdefs.h >>conftest.$ac_ext | ||
18523 | cat >>conftest.$ac_ext <<_ACEOF | ||
18524 | /* end confdefs.h. */ | ||
18525 | |||
18526 | #include <sys/types.h> | ||
18527 | #include <sys/socket.h> | ||
18528 | |||
18529 | int | ||
18530 | main () | ||
18531 | { | ||
18532 | sa_family_t foo; foo = 1235; | ||
18533 | ; | ||
18534 | return 0; | ||
18535 | } | ||
18536 | _ACEOF | ||
18537 | rm -f conftest.$ac_objext | ||
18538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18539 | (eval $ac_compile) 2>conftest.er1 | ||
18540 | ac_status=$? | ||
18541 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18542 | rm -f conftest.er1 | ||
18543 | cat conftest.err >&5 | ||
18544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18545 | (exit $ac_status); } && | ||
18546 | { ac_try='test -z "$ac_c_werror_flag" | ||
18547 | || test ! -s conftest.err' | ||
18548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18549 | (eval $ac_try) 2>&5 | ||
18550 | ac_status=$? | ||
18551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18552 | (exit $ac_status); }; } && | ||
18553 | { ac_try='test -s conftest.$ac_objext' | ||
18554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18555 | (eval $ac_try) 2>&5 | ||
18556 | ac_status=$? | ||
18557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18558 | (exit $ac_status); }; }; then | ||
18559 | ac_cv_have_sa_family_t="yes" | ||
18560 | else | ||
18561 | echo "$as_me: failed program was:" >&5 | ||
18562 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18563 | |||
18564 | cat >conftest.$ac_ext <<_ACEOF | ||
18565 | /* confdefs.h. */ | ||
18566 | _ACEOF | ||
18567 | cat confdefs.h >>conftest.$ac_ext | ||
18568 | cat >>conftest.$ac_ext <<_ACEOF | ||
18569 | /* end confdefs.h. */ | ||
18570 | |||
18571 | #include <sys/types.h> | ||
18572 | #include <sys/socket.h> | ||
18573 | #include <netinet/in.h> | ||
18574 | |||
18575 | int | ||
18576 | main () | ||
18577 | { | ||
18578 | sa_family_t foo; foo = 1235; | ||
18579 | ; | ||
18580 | return 0; | ||
18581 | } | ||
18582 | _ACEOF | ||
18583 | rm -f conftest.$ac_objext | ||
18584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18585 | (eval $ac_compile) 2>conftest.er1 | ||
18586 | ac_status=$? | ||
18587 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18588 | rm -f conftest.er1 | ||
18589 | cat conftest.err >&5 | ||
18590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18591 | (exit $ac_status); } && | ||
18592 | { ac_try='test -z "$ac_c_werror_flag" | ||
18593 | || test ! -s conftest.err' | ||
18594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18595 | (eval $ac_try) 2>&5 | ||
18596 | ac_status=$? | ||
18597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18598 | (exit $ac_status); }; } && | ||
18599 | { ac_try='test -s conftest.$ac_objext' | ||
18600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18601 | (eval $ac_try) 2>&5 | ||
18602 | ac_status=$? | ||
18603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18604 | (exit $ac_status); }; }; then | ||
18605 | ac_cv_have_sa_family_t="yes" | ||
18606 | else | ||
18607 | echo "$as_me: failed program was:" >&5 | ||
18608 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18609 | |||
18610 | ac_cv_have_sa_family_t="no" | ||
18611 | |||
18612 | fi | ||
18613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18614 | |||
18615 | fi | ||
18616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18617 | |||
18618 | fi | ||
18619 | echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
18620 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
18621 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
18622 | cat >>confdefs.h <<\_ACEOF | ||
18623 | #define HAVE_SA_FAMILY_T 1 | ||
18624 | _ACEOF | ||
18625 | |||
18626 | fi | ||
18627 | |||
18628 | echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
18629 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
18630 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
18631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18632 | else | ||
18633 | |||
18634 | cat >conftest.$ac_ext <<_ACEOF | ||
18635 | /* confdefs.h. */ | ||
18636 | _ACEOF | ||
18637 | cat confdefs.h >>conftest.$ac_ext | ||
18638 | cat >>conftest.$ac_ext <<_ACEOF | ||
18639 | /* end confdefs.h. */ | ||
18640 | |||
18641 | #include <sys/types.h> | ||
18642 | |||
18643 | int | ||
18644 | main () | ||
18645 | { | ||
18646 | pid_t foo; foo = 1235; | ||
18647 | ; | ||
18648 | return 0; | ||
18649 | } | ||
18650 | _ACEOF | ||
18651 | rm -f conftest.$ac_objext | ||
18652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18653 | (eval $ac_compile) 2>conftest.er1 | ||
18654 | ac_status=$? | ||
18655 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18656 | rm -f conftest.er1 | ||
18657 | cat conftest.err >&5 | ||
18658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18659 | (exit $ac_status); } && | ||
18660 | { ac_try='test -z "$ac_c_werror_flag" | ||
18661 | || test ! -s conftest.err' | ||
18662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18663 | (eval $ac_try) 2>&5 | ||
18664 | ac_status=$? | ||
18665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18666 | (exit $ac_status); }; } && | ||
18667 | { ac_try='test -s conftest.$ac_objext' | ||
18668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18669 | (eval $ac_try) 2>&5 | ||
18670 | ac_status=$? | ||
18671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18672 | (exit $ac_status); }; }; then | ||
18673 | ac_cv_have_pid_t="yes" | ||
18674 | else | ||
18675 | echo "$as_me: failed program was:" >&5 | ||
18676 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18677 | |||
18678 | ac_cv_have_pid_t="no" | ||
18679 | |||
18680 | fi | ||
18681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18682 | |||
18683 | fi | ||
18684 | echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
18685 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
18686 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
18687 | cat >>confdefs.h <<\_ACEOF | ||
18688 | #define HAVE_PID_T 1 | ||
18689 | _ACEOF | ||
18690 | |||
18691 | fi | ||
18692 | |||
18693 | echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
18694 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
18695 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
18696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18697 | else | ||
18698 | |||
18699 | cat >conftest.$ac_ext <<_ACEOF | ||
18700 | /* confdefs.h. */ | ||
18701 | _ACEOF | ||
18702 | cat confdefs.h >>conftest.$ac_ext | ||
18703 | cat >>conftest.$ac_ext <<_ACEOF | ||
18704 | /* end confdefs.h. */ | ||
18705 | |||
18706 | #include <sys/types.h> | ||
18707 | |||
18708 | int | ||
18709 | main () | ||
18710 | { | ||
18711 | mode_t foo; foo = 1235; | ||
18712 | ; | ||
18713 | return 0; | ||
18714 | } | ||
18715 | _ACEOF | ||
18716 | rm -f conftest.$ac_objext | ||
18717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18718 | (eval $ac_compile) 2>conftest.er1 | ||
18719 | ac_status=$? | ||
18720 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18721 | rm -f conftest.er1 | ||
18722 | cat conftest.err >&5 | ||
18723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18724 | (exit $ac_status); } && | ||
18725 | { ac_try='test -z "$ac_c_werror_flag" | ||
18726 | || test ! -s conftest.err' | ||
18727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18728 | (eval $ac_try) 2>&5 | ||
18729 | ac_status=$? | ||
18730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18731 | (exit $ac_status); }; } && | ||
18732 | { ac_try='test -s conftest.$ac_objext' | ||
18733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18734 | (eval $ac_try) 2>&5 | ||
18735 | ac_status=$? | ||
18736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18737 | (exit $ac_status); }; }; then | ||
18738 | ac_cv_have_mode_t="yes" | ||
18739 | else | ||
18740 | echo "$as_me: failed program was:" >&5 | ||
18741 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18742 | |||
18743 | ac_cv_have_mode_t="no" | ||
18744 | |||
18745 | fi | ||
18746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18747 | |||
18748 | fi | ||
18749 | echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
18750 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
18751 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
18752 | cat >>confdefs.h <<\_ACEOF | ||
18753 | #define HAVE_MODE_T 1 | ||
18754 | _ACEOF | ||
18755 | |||
18756 | fi | ||
18757 | |||
18758 | |||
18759 | echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
18760 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
18761 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
18762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18763 | else | ||
18764 | |||
18765 | cat >conftest.$ac_ext <<_ACEOF | ||
18766 | /* confdefs.h. */ | ||
18767 | _ACEOF | ||
18768 | cat confdefs.h >>conftest.$ac_ext | ||
18769 | cat >>conftest.$ac_ext <<_ACEOF | ||
18770 | /* end confdefs.h. */ | ||
18771 | |||
18772 | #include <sys/types.h> | ||
18773 | #include <sys/socket.h> | ||
18774 | |||
18775 | int | ||
18776 | main () | ||
18777 | { | ||
18778 | struct sockaddr_storage s; | ||
18779 | ; | ||
18780 | return 0; | ||
18781 | } | ||
18782 | _ACEOF | ||
18783 | rm -f conftest.$ac_objext | ||
18784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18785 | (eval $ac_compile) 2>conftest.er1 | ||
18786 | ac_status=$? | ||
18787 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18788 | rm -f conftest.er1 | ||
18789 | cat conftest.err >&5 | ||
18790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18791 | (exit $ac_status); } && | ||
18792 | { ac_try='test -z "$ac_c_werror_flag" | ||
18793 | || test ! -s conftest.err' | ||
18794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18795 | (eval $ac_try) 2>&5 | ||
18796 | ac_status=$? | ||
18797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18798 | (exit $ac_status); }; } && | ||
18799 | { ac_try='test -s conftest.$ac_objext' | ||
18800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18801 | (eval $ac_try) 2>&5 | ||
18802 | ac_status=$? | ||
18803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18804 | (exit $ac_status); }; }; then | ||
18805 | ac_cv_have_struct_sockaddr_storage="yes" | ||
18806 | else | ||
18807 | echo "$as_me: failed program was:" >&5 | ||
18808 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18809 | |||
18810 | ac_cv_have_struct_sockaddr_storage="no" | ||
18811 | |||
18812 | fi | ||
18813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18814 | |||
18815 | fi | ||
18816 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
18817 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
18818 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
18819 | cat >>confdefs.h <<\_ACEOF | ||
18820 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
18821 | _ACEOF | ||
18822 | |||
18823 | fi | ||
18824 | |||
18825 | echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
18826 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
18827 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
18828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18829 | else | ||
18830 | |||
18831 | cat >conftest.$ac_ext <<_ACEOF | ||
18832 | /* confdefs.h. */ | ||
18833 | _ACEOF | ||
18834 | cat confdefs.h >>conftest.$ac_ext | ||
18835 | cat >>conftest.$ac_ext <<_ACEOF | ||
18836 | /* end confdefs.h. */ | ||
18837 | |||
18838 | #include <sys/types.h> | ||
18839 | #include <netinet/in.h> | ||
18840 | |||
18841 | int | ||
18842 | main () | ||
18843 | { | ||
18844 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
18845 | ; | ||
18846 | return 0; | ||
18847 | } | ||
18848 | _ACEOF | ||
18849 | rm -f conftest.$ac_objext | ||
18850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18851 | (eval $ac_compile) 2>conftest.er1 | ||
18852 | ac_status=$? | ||
18853 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18854 | rm -f conftest.er1 | ||
18855 | cat conftest.err >&5 | ||
18856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18857 | (exit $ac_status); } && | ||
18858 | { ac_try='test -z "$ac_c_werror_flag" | ||
18859 | || test ! -s conftest.err' | ||
18860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18861 | (eval $ac_try) 2>&5 | ||
18862 | ac_status=$? | ||
18863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18864 | (exit $ac_status); }; } && | ||
18865 | { ac_try='test -s conftest.$ac_objext' | ||
18866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18867 | (eval $ac_try) 2>&5 | ||
18868 | ac_status=$? | ||
18869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18870 | (exit $ac_status); }; }; then | ||
18871 | ac_cv_have_struct_sockaddr_in6="yes" | ||
18872 | else | ||
18873 | echo "$as_me: failed program was:" >&5 | ||
18874 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18875 | |||
18876 | ac_cv_have_struct_sockaddr_in6="no" | ||
18877 | |||
18878 | fi | ||
18879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18880 | |||
18881 | fi | ||
18882 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
18883 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
18884 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
18885 | cat >>confdefs.h <<\_ACEOF | ||
18886 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
18887 | _ACEOF | ||
18888 | |||
18889 | fi | ||
18890 | |||
18891 | echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
18892 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
18893 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
18894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18895 | else | ||
18896 | |||
18897 | cat >conftest.$ac_ext <<_ACEOF | ||
18898 | /* confdefs.h. */ | ||
18899 | _ACEOF | ||
18900 | cat confdefs.h >>conftest.$ac_ext | ||
18901 | cat >>conftest.$ac_ext <<_ACEOF | ||
18902 | /* end confdefs.h. */ | ||
18903 | |||
18904 | #include <sys/types.h> | ||
18905 | #include <netinet/in.h> | ||
18906 | |||
18907 | int | ||
18908 | main () | ||
18909 | { | ||
18910 | struct in6_addr s; s.s6_addr[0] = 0; | ||
18911 | ; | ||
18912 | return 0; | ||
18913 | } | ||
18914 | _ACEOF | ||
18915 | rm -f conftest.$ac_objext | ||
18916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18917 | (eval $ac_compile) 2>conftest.er1 | ||
18918 | ac_status=$? | ||
18919 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18920 | rm -f conftest.er1 | ||
18921 | cat conftest.err >&5 | ||
18922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18923 | (exit $ac_status); } && | ||
18924 | { ac_try='test -z "$ac_c_werror_flag" | ||
18925 | || test ! -s conftest.err' | ||
18926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18927 | (eval $ac_try) 2>&5 | ||
18928 | ac_status=$? | ||
18929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18930 | (exit $ac_status); }; } && | ||
18931 | { ac_try='test -s conftest.$ac_objext' | ||
18932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18933 | (eval $ac_try) 2>&5 | ||
18934 | ac_status=$? | ||
18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18936 | (exit $ac_status); }; }; then | ||
18937 | ac_cv_have_struct_in6_addr="yes" | ||
18938 | else | ||
18939 | echo "$as_me: failed program was:" >&5 | ||
18940 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18941 | |||
18942 | ac_cv_have_struct_in6_addr="no" | ||
18943 | |||
18944 | fi | ||
18945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18946 | |||
18947 | fi | ||
18948 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
18949 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
18950 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
18951 | cat >>confdefs.h <<\_ACEOF | ||
18952 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
18953 | _ACEOF | ||
18954 | |||
18955 | fi | ||
18956 | |||
18957 | echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
18958 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
18959 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
18960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18961 | else | ||
18962 | |||
18963 | cat >conftest.$ac_ext <<_ACEOF | ||
18964 | /* confdefs.h. */ | ||
18965 | _ACEOF | ||
18966 | cat confdefs.h >>conftest.$ac_ext | ||
18967 | cat >>conftest.$ac_ext <<_ACEOF | ||
18968 | /* end confdefs.h. */ | ||
18969 | |||
18970 | #include <sys/types.h> | ||
18971 | #include <sys/socket.h> | ||
18972 | #include <netdb.h> | ||
18973 | |||
18974 | int | ||
18975 | main () | ||
18976 | { | ||
18977 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
18978 | ; | ||
18979 | return 0; | ||
18980 | } | ||
18981 | _ACEOF | ||
18982 | rm -f conftest.$ac_objext | ||
18983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18984 | (eval $ac_compile) 2>conftest.er1 | ||
18985 | ac_status=$? | ||
18986 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18987 | rm -f conftest.er1 | ||
18988 | cat conftest.err >&5 | ||
18989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18990 | (exit $ac_status); } && | ||
18991 | { ac_try='test -z "$ac_c_werror_flag" | ||
18992 | || test ! -s conftest.err' | ||
18993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18994 | (eval $ac_try) 2>&5 | ||
18995 | ac_status=$? | ||
18996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18997 | (exit $ac_status); }; } && | ||
18998 | { ac_try='test -s conftest.$ac_objext' | ||
18999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19000 | (eval $ac_try) 2>&5 | ||
19001 | ac_status=$? | ||
19002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19003 | (exit $ac_status); }; }; then | ||
19004 | ac_cv_have_struct_addrinfo="yes" | ||
19005 | else | ||
19006 | echo "$as_me: failed program was:" >&5 | ||
19007 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19008 | |||
19009 | ac_cv_have_struct_addrinfo="no" | ||
19010 | |||
19011 | fi | ||
19012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19013 | |||
19014 | fi | ||
19015 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
19016 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
19017 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
19018 | cat >>confdefs.h <<\_ACEOF | ||
19019 | #define HAVE_STRUCT_ADDRINFO 1 | ||
19020 | _ACEOF | ||
19021 | |||
19022 | fi | ||
19023 | |||
19024 | echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
19025 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
19026 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
19027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19028 | else | ||
19029 | |||
19030 | cat >conftest.$ac_ext <<_ACEOF | ||
19031 | /* confdefs.h. */ | ||
19032 | _ACEOF | ||
19033 | cat confdefs.h >>conftest.$ac_ext | ||
19034 | cat >>conftest.$ac_ext <<_ACEOF | ||
19035 | /* end confdefs.h. */ | ||
19036 | #include <sys/time.h> | ||
19037 | int | ||
19038 | main () | ||
19039 | { | ||
19040 | struct timeval tv; tv.tv_sec = 1; | ||
19041 | ; | ||
19042 | return 0; | ||
19043 | } | ||
19044 | _ACEOF | ||
19045 | rm -f conftest.$ac_objext | ||
19046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19047 | (eval $ac_compile) 2>conftest.er1 | ||
19048 | ac_status=$? | ||
19049 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19050 | rm -f conftest.er1 | ||
19051 | cat conftest.err >&5 | ||
19052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19053 | (exit $ac_status); } && | ||
19054 | { ac_try='test -z "$ac_c_werror_flag" | ||
19055 | || test ! -s conftest.err' | ||
19056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19057 | (eval $ac_try) 2>&5 | ||
19058 | ac_status=$? | ||
19059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19060 | (exit $ac_status); }; } && | ||
19061 | { ac_try='test -s conftest.$ac_objext' | ||
19062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19063 | (eval $ac_try) 2>&5 | ||
19064 | ac_status=$? | ||
19065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19066 | (exit $ac_status); }; }; then | ||
19067 | ac_cv_have_struct_timeval="yes" | ||
19068 | else | ||
19069 | echo "$as_me: failed program was:" >&5 | ||
19070 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19071 | |||
19072 | ac_cv_have_struct_timeval="no" | ||
19073 | |||
19074 | fi | ||
19075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19076 | |||
19077 | fi | ||
19078 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
19079 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
19080 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
19081 | cat >>confdefs.h <<\_ACEOF | ||
19082 | #define HAVE_STRUCT_TIMEVAL 1 | ||
19083 | _ACEOF | ||
19084 | |||
19085 | have_struct_timeval=1 | ||
19086 | fi | ||
19087 | |||
19088 | echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
19089 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 | ||
19090 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
19091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19092 | else | ||
19093 | cat >conftest.$ac_ext <<_ACEOF | ||
19094 | /* confdefs.h. */ | ||
19095 | _ACEOF | ||
19096 | cat confdefs.h >>conftest.$ac_ext | ||
19097 | cat >>conftest.$ac_ext <<_ACEOF | ||
19098 | /* end confdefs.h. */ | ||
19099 | $ac_includes_default | ||
19100 | int | ||
19101 | main () | ||
19102 | { | ||
19103 | if ((struct timespec *) 0) | ||
19104 | return 0; | ||
19105 | if (sizeof (struct timespec)) | ||
19106 | return 0; | ||
19107 | ; | ||
19108 | return 0; | ||
19109 | } | ||
19110 | _ACEOF | ||
19111 | rm -f conftest.$ac_objext | ||
19112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19113 | (eval $ac_compile) 2>conftest.er1 | ||
19114 | ac_status=$? | ||
19115 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19116 | rm -f conftest.er1 | ||
19117 | cat conftest.err >&5 | ||
19118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19119 | (exit $ac_status); } && | ||
19120 | { ac_try='test -z "$ac_c_werror_flag" | ||
19121 | || test ! -s conftest.err' | ||
19122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19123 | (eval $ac_try) 2>&5 | ||
19124 | ac_status=$? | ||
19125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19126 | (exit $ac_status); }; } && | ||
19127 | { ac_try='test -s conftest.$ac_objext' | ||
19128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19129 | (eval $ac_try) 2>&5 | ||
19130 | ac_status=$? | ||
19131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19132 | (exit $ac_status); }; }; then | ||
19133 | ac_cv_type_struct_timespec=yes | ||
19134 | else | ||
19135 | echo "$as_me: failed program was:" >&5 | ||
19136 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19137 | |||
19138 | ac_cv_type_struct_timespec=no | ||
19139 | fi | ||
19140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19141 | fi | ||
19142 | echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
19143 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
19144 | if test $ac_cv_type_struct_timespec = yes; then | ||
19145 | |||
19146 | cat >>confdefs.h <<_ACEOF | ||
19147 | #define HAVE_STRUCT_TIMESPEC 1 | ||
19148 | _ACEOF | ||
19149 | |||
19150 | |||
19151 | fi | ||
19152 | |||
19153 | |||
19154 | # We need int64_t or else certian parts of the compile will fail. | ||
19155 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | ||
19156 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | ||
19157 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
19158 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
19159 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
19160 | echo "" | ||
19161 | exit 1; | ||
19162 | else | ||
19163 | if test "$cross_compiling" = yes; then | ||
19164 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
19165 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
19166 | |||
19167 | else | ||
19168 | cat >conftest.$ac_ext <<_ACEOF | ||
19169 | /* confdefs.h. */ | ||
19170 | _ACEOF | ||
19171 | cat confdefs.h >>conftest.$ac_ext | ||
19172 | cat >>conftest.$ac_ext <<_ACEOF | ||
19173 | /* end confdefs.h. */ | ||
19174 | |||
19175 | #include <stdio.h> | ||
19176 | #include <string.h> | ||
19177 | #ifdef HAVE_SNPRINTF | ||
19178 | main() | ||
19179 | { | ||
19180 | char buf[50]; | ||
19181 | char expected_out[50]; | ||
19182 | int mazsize = 50 ; | ||
19183 | #if (SIZEOF_LONG_INT == 8) | ||
19184 | long int num = 0x7fffffffffffffff; | ||
19185 | #else | ||
19186 | long long num = 0x7fffffffffffffffll; | ||
19187 | #endif | ||
19188 | strcpy(expected_out, "9223372036854775807"); | ||
19189 | snprintf(buf, mazsize, "%lld", num); | ||
19190 | if(strcmp(buf, expected_out) != 0) | ||
19191 | exit(1); | ||
19192 | exit(0); | ||
19193 | } | ||
19194 | #else | ||
19195 | main() { exit(0); } | ||
19196 | #endif | ||
19197 | |||
19198 | _ACEOF | ||
19199 | rm -f conftest$ac_exeext | ||
19200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19201 | (eval $ac_link) 2>&5 | ||
19202 | ac_status=$? | ||
19203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19204 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19206 | (eval $ac_try) 2>&5 | ||
19207 | ac_status=$? | ||
19208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19209 | (exit $ac_status); }; }; then | ||
19210 | true | ||
19211 | else | ||
19212 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19213 | echo "$as_me: failed program was:" >&5 | ||
19214 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19215 | |||
19216 | ( exit $ac_status ) | ||
19217 | cat >>confdefs.h <<\_ACEOF | ||
19218 | #define BROKEN_SNPRINTF 1 | ||
19219 | _ACEOF | ||
19220 | |||
19221 | fi | ||
19222 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19223 | fi | ||
19224 | fi | ||
19225 | |||
19226 | |||
19227 | # look for field 'ut_host' in header 'utmp.h' | ||
19228 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19229 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
19230 | echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
19231 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
19232 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19234 | else | ||
19235 | |||
19236 | cat >conftest.$ac_ext <<_ACEOF | ||
19237 | /* confdefs.h. */ | ||
19238 | _ACEOF | ||
19239 | cat confdefs.h >>conftest.$ac_ext | ||
19240 | cat >>conftest.$ac_ext <<_ACEOF | ||
19241 | /* end confdefs.h. */ | ||
19242 | #include <utmp.h> | ||
19243 | |||
19244 | _ACEOF | ||
19245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19246 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
19247 | eval "$ossh_varname=yes" | ||
19248 | else | ||
19249 | eval "$ossh_varname=no" | ||
19250 | fi | ||
19251 | rm -f conftest* | ||
19252 | |||
19253 | fi | ||
19254 | |||
19255 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19256 | if test -n "`echo $ossh_varname`"; then | ||
19257 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19258 | echo "${ECHO_T}$ossh_result" >&6 | ||
19259 | if test "x$ossh_result" = "xyes"; then | ||
19260 | cat >>confdefs.h <<\_ACEOF | ||
19261 | #define HAVE_HOST_IN_UTMP 1 | ||
19262 | _ACEOF | ||
19263 | |||
19264 | fi | ||
19265 | else | ||
19266 | echo "$as_me:$LINENO: result: no" >&5 | ||
19267 | echo "${ECHO_T}no" >&6 | ||
19268 | fi | ||
19269 | |||
19270 | |||
19271 | # look for field 'ut_host' in header 'utmpx.h' | ||
19272 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19273 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
19274 | echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
19275 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
19276 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19278 | else | ||
19279 | |||
19280 | cat >conftest.$ac_ext <<_ACEOF | ||
19281 | /* confdefs.h. */ | ||
19282 | _ACEOF | ||
19283 | cat confdefs.h >>conftest.$ac_ext | ||
19284 | cat >>conftest.$ac_ext <<_ACEOF | ||
19285 | /* end confdefs.h. */ | ||
19286 | #include <utmpx.h> | ||
19287 | |||
19288 | _ACEOF | ||
19289 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19290 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
19291 | eval "$ossh_varname=yes" | ||
19292 | else | ||
19293 | eval "$ossh_varname=no" | ||
19294 | fi | ||
19295 | rm -f conftest* | ||
19296 | |||
19297 | fi | ||
19298 | |||
19299 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19300 | if test -n "`echo $ossh_varname`"; then | ||
19301 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19302 | echo "${ECHO_T}$ossh_result" >&6 | ||
19303 | if test "x$ossh_result" = "xyes"; then | ||
19304 | cat >>confdefs.h <<\_ACEOF | ||
19305 | #define HAVE_HOST_IN_UTMPX 1 | ||
19306 | _ACEOF | ||
19307 | |||
19308 | fi | ||
19309 | else | ||
19310 | echo "$as_me:$LINENO: result: no" >&5 | ||
19311 | echo "${ECHO_T}no" >&6 | ||
19312 | fi | ||
19313 | |||
19314 | |||
19315 | # look for field 'syslen' in header 'utmpx.h' | ||
19316 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19317 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
19318 | echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
19319 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
19320 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19322 | else | ||
19323 | |||
19324 | cat >conftest.$ac_ext <<_ACEOF | ||
19325 | /* confdefs.h. */ | ||
19326 | _ACEOF | ||
19327 | cat confdefs.h >>conftest.$ac_ext | ||
19328 | cat >>conftest.$ac_ext <<_ACEOF | ||
19329 | /* end confdefs.h. */ | ||
19330 | #include <utmpx.h> | ||
19331 | |||
19332 | _ACEOF | ||
19333 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19334 | $EGREP "syslen" >/dev/null 2>&1; then | ||
19335 | eval "$ossh_varname=yes" | ||
19336 | else | ||
19337 | eval "$ossh_varname=no" | ||
19338 | fi | ||
19339 | rm -f conftest* | ||
19340 | |||
19341 | fi | ||
19342 | |||
19343 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19344 | if test -n "`echo $ossh_varname`"; then | ||
19345 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19346 | echo "${ECHO_T}$ossh_result" >&6 | ||
19347 | if test "x$ossh_result" = "xyes"; then | ||
19348 | cat >>confdefs.h <<\_ACEOF | ||
19349 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
19350 | _ACEOF | ||
19351 | |||
19352 | fi | ||
19353 | else | ||
19354 | echo "$as_me:$LINENO: result: no" >&5 | ||
19355 | echo "${ECHO_T}no" >&6 | ||
19356 | fi | ||
19357 | |||
19358 | |||
19359 | # look for field 'ut_pid' in header 'utmp.h' | ||
19360 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19361 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
19362 | echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
19363 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
19364 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19366 | else | ||
19367 | |||
19368 | cat >conftest.$ac_ext <<_ACEOF | ||
19369 | /* confdefs.h. */ | ||
19370 | _ACEOF | ||
19371 | cat confdefs.h >>conftest.$ac_ext | ||
19372 | cat >>conftest.$ac_ext <<_ACEOF | ||
19373 | /* end confdefs.h. */ | ||
19374 | #include <utmp.h> | ||
19375 | |||
19376 | _ACEOF | ||
19377 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19378 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
19379 | eval "$ossh_varname=yes" | ||
19380 | else | ||
19381 | eval "$ossh_varname=no" | ||
19382 | fi | ||
19383 | rm -f conftest* | ||
19384 | |||
19385 | fi | ||
19386 | |||
19387 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19388 | if test -n "`echo $ossh_varname`"; then | ||
19389 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19390 | echo "${ECHO_T}$ossh_result" >&6 | ||
19391 | if test "x$ossh_result" = "xyes"; then | ||
19392 | cat >>confdefs.h <<\_ACEOF | ||
19393 | #define HAVE_PID_IN_UTMP 1 | ||
19394 | _ACEOF | ||
19395 | |||
19396 | fi | ||
19397 | else | ||
19398 | echo "$as_me:$LINENO: result: no" >&5 | ||
19399 | echo "${ECHO_T}no" >&6 | ||
19400 | fi | ||
19401 | |||
19402 | |||
19403 | # look for field 'ut_type' in header 'utmp.h' | ||
19404 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19405 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
19406 | echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
19407 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
19408 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19410 | else | ||
19411 | |||
19412 | cat >conftest.$ac_ext <<_ACEOF | ||
19413 | /* confdefs.h. */ | ||
19414 | _ACEOF | ||
19415 | cat confdefs.h >>conftest.$ac_ext | ||
19416 | cat >>conftest.$ac_ext <<_ACEOF | ||
19417 | /* end confdefs.h. */ | ||
19418 | #include <utmp.h> | ||
19419 | |||
19420 | _ACEOF | ||
19421 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19422 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
19423 | eval "$ossh_varname=yes" | ||
19424 | else | ||
19425 | eval "$ossh_varname=no" | ||
19426 | fi | ||
19427 | rm -f conftest* | ||
19428 | |||
19429 | fi | ||
19430 | |||
19431 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19432 | if test -n "`echo $ossh_varname`"; then | ||
19433 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19434 | echo "${ECHO_T}$ossh_result" >&6 | ||
19435 | if test "x$ossh_result" = "xyes"; then | ||
19436 | cat >>confdefs.h <<\_ACEOF | ||
19437 | #define HAVE_TYPE_IN_UTMP 1 | ||
19438 | _ACEOF | ||
19439 | |||
19440 | fi | ||
19441 | else | ||
19442 | echo "$as_me:$LINENO: result: no" >&5 | ||
19443 | echo "${ECHO_T}no" >&6 | ||
19444 | fi | ||
19445 | |||
19446 | |||
19447 | # look for field 'ut_type' in header 'utmpx.h' | ||
19448 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19449 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
19450 | echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
19451 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
19452 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19454 | else | ||
19455 | |||
19456 | cat >conftest.$ac_ext <<_ACEOF | ||
19457 | /* confdefs.h. */ | ||
19458 | _ACEOF | ||
19459 | cat confdefs.h >>conftest.$ac_ext | ||
19460 | cat >>conftest.$ac_ext <<_ACEOF | ||
19461 | /* end confdefs.h. */ | ||
19462 | #include <utmpx.h> | ||
19463 | |||
19464 | _ACEOF | ||
19465 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19466 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
19467 | eval "$ossh_varname=yes" | ||
19468 | else | ||
19469 | eval "$ossh_varname=no" | ||
19470 | fi | ||
19471 | rm -f conftest* | ||
19472 | |||
19473 | fi | ||
19474 | |||
19475 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19476 | if test -n "`echo $ossh_varname`"; then | ||
19477 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19478 | echo "${ECHO_T}$ossh_result" >&6 | ||
19479 | if test "x$ossh_result" = "xyes"; then | ||
19480 | cat >>confdefs.h <<\_ACEOF | ||
19481 | #define HAVE_TYPE_IN_UTMPX 1 | ||
19482 | _ACEOF | ||
19483 | |||
19484 | fi | ||
19485 | else | ||
19486 | echo "$as_me:$LINENO: result: no" >&5 | ||
19487 | echo "${ECHO_T}no" >&6 | ||
19488 | fi | ||
19489 | |||
19490 | |||
19491 | # look for field 'ut_tv' in header 'utmp.h' | ||
19492 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19493 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
19494 | echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
19495 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
19496 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19498 | else | ||
19499 | |||
19500 | cat >conftest.$ac_ext <<_ACEOF | ||
19501 | /* confdefs.h. */ | ||
19502 | _ACEOF | ||
19503 | cat confdefs.h >>conftest.$ac_ext | ||
19504 | cat >>conftest.$ac_ext <<_ACEOF | ||
19505 | /* end confdefs.h. */ | ||
19506 | #include <utmp.h> | ||
19507 | |||
19508 | _ACEOF | ||
19509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19510 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
19511 | eval "$ossh_varname=yes" | ||
19512 | else | ||
19513 | eval "$ossh_varname=no" | ||
19514 | fi | ||
19515 | rm -f conftest* | ||
19516 | |||
19517 | fi | ||
19518 | |||
19519 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19520 | if test -n "`echo $ossh_varname`"; then | ||
19521 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19522 | echo "${ECHO_T}$ossh_result" >&6 | ||
19523 | if test "x$ossh_result" = "xyes"; then | ||
19524 | cat >>confdefs.h <<\_ACEOF | ||
19525 | #define HAVE_TV_IN_UTMP 1 | ||
19526 | _ACEOF | ||
19527 | |||
19528 | fi | ||
19529 | else | ||
19530 | echo "$as_me:$LINENO: result: no" >&5 | ||
19531 | echo "${ECHO_T}no" >&6 | ||
19532 | fi | ||
19533 | |||
19534 | |||
19535 | # look for field 'ut_id' in header 'utmp.h' | ||
19536 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19537 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
19538 | echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
19539 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
19540 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19542 | else | ||
19543 | |||
19544 | cat >conftest.$ac_ext <<_ACEOF | ||
19545 | /* confdefs.h. */ | ||
19546 | _ACEOF | ||
19547 | cat confdefs.h >>conftest.$ac_ext | ||
19548 | cat >>conftest.$ac_ext <<_ACEOF | ||
19549 | /* end confdefs.h. */ | ||
19550 | #include <utmp.h> | ||
19551 | |||
19552 | _ACEOF | ||
19553 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19554 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
19555 | eval "$ossh_varname=yes" | ||
19556 | else | ||
19557 | eval "$ossh_varname=no" | ||
19558 | fi | ||
19559 | rm -f conftest* | ||
19560 | |||
19561 | fi | ||
19562 | |||
19563 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19564 | if test -n "`echo $ossh_varname`"; then | ||
19565 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19566 | echo "${ECHO_T}$ossh_result" >&6 | ||
19567 | if test "x$ossh_result" = "xyes"; then | ||
19568 | cat >>confdefs.h <<\_ACEOF | ||
19569 | #define HAVE_ID_IN_UTMP 1 | ||
19570 | _ACEOF | ||
19571 | |||
19572 | fi | ||
19573 | else | ||
19574 | echo "$as_me:$LINENO: result: no" >&5 | ||
19575 | echo "${ECHO_T}no" >&6 | ||
19576 | fi | ||
19577 | |||
19578 | |||
19579 | # look for field 'ut_id' in header 'utmpx.h' | ||
19580 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19581 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
19582 | echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
19583 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
19584 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19586 | else | ||
19587 | |||
19588 | cat >conftest.$ac_ext <<_ACEOF | ||
19589 | /* confdefs.h. */ | ||
19590 | _ACEOF | ||
19591 | cat confdefs.h >>conftest.$ac_ext | ||
19592 | cat >>conftest.$ac_ext <<_ACEOF | ||
19593 | /* end confdefs.h. */ | ||
19594 | #include <utmpx.h> | ||
19595 | |||
19596 | _ACEOF | ||
19597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19598 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
19599 | eval "$ossh_varname=yes" | ||
19600 | else | ||
19601 | eval "$ossh_varname=no" | ||
19602 | fi | ||
19603 | rm -f conftest* | ||
19604 | |||
19605 | fi | ||
19606 | |||
19607 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19608 | if test -n "`echo $ossh_varname`"; then | ||
19609 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19610 | echo "${ECHO_T}$ossh_result" >&6 | ||
19611 | if test "x$ossh_result" = "xyes"; then | ||
19612 | cat >>confdefs.h <<\_ACEOF | ||
19613 | #define HAVE_ID_IN_UTMPX 1 | ||
19614 | _ACEOF | ||
19615 | |||
19616 | fi | ||
19617 | else | ||
19618 | echo "$as_me:$LINENO: result: no" >&5 | ||
19619 | echo "${ECHO_T}no" >&6 | ||
19620 | fi | ||
19621 | |||
19622 | |||
19623 | # look for field 'ut_addr' in header 'utmp.h' | ||
19624 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19625 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
19626 | echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
19627 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
19628 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19630 | else | ||
19631 | |||
19632 | cat >conftest.$ac_ext <<_ACEOF | ||
19633 | /* confdefs.h. */ | ||
19634 | _ACEOF | ||
19635 | cat confdefs.h >>conftest.$ac_ext | ||
19636 | cat >>conftest.$ac_ext <<_ACEOF | ||
19637 | /* end confdefs.h. */ | ||
19638 | #include <utmp.h> | ||
19639 | |||
19640 | _ACEOF | ||
19641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19642 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
19643 | eval "$ossh_varname=yes" | ||
19644 | else | ||
19645 | eval "$ossh_varname=no" | ||
19646 | fi | ||
19647 | rm -f conftest* | ||
19648 | |||
19649 | fi | ||
19650 | |||
19651 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19652 | if test -n "`echo $ossh_varname`"; then | ||
19653 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19654 | echo "${ECHO_T}$ossh_result" >&6 | ||
19655 | if test "x$ossh_result" = "xyes"; then | ||
19656 | cat >>confdefs.h <<\_ACEOF | ||
19657 | #define HAVE_ADDR_IN_UTMP 1 | ||
19658 | _ACEOF | ||
19659 | |||
19660 | fi | ||
19661 | else | ||
19662 | echo "$as_me:$LINENO: result: no" >&5 | ||
19663 | echo "${ECHO_T}no" >&6 | ||
19664 | fi | ||
19665 | |||
19666 | |||
19667 | # look for field 'ut_addr' in header 'utmpx.h' | ||
19668 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19669 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
19670 | echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
19671 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
19672 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19674 | else | ||
19675 | |||
19676 | cat >conftest.$ac_ext <<_ACEOF | ||
19677 | /* confdefs.h. */ | ||
19678 | _ACEOF | ||
19679 | cat confdefs.h >>conftest.$ac_ext | ||
19680 | cat >>conftest.$ac_ext <<_ACEOF | ||
19681 | /* end confdefs.h. */ | ||
19682 | #include <utmpx.h> | ||
19683 | |||
19684 | _ACEOF | ||
19685 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19686 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
19687 | eval "$ossh_varname=yes" | ||
19688 | else | ||
19689 | eval "$ossh_varname=no" | ||
19690 | fi | ||
19691 | rm -f conftest* | ||
19692 | |||
19693 | fi | ||
19694 | |||
19695 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19696 | if test -n "`echo $ossh_varname`"; then | ||
19697 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19698 | echo "${ECHO_T}$ossh_result" >&6 | ||
19699 | if test "x$ossh_result" = "xyes"; then | ||
19700 | cat >>confdefs.h <<\_ACEOF | ||
19701 | #define HAVE_ADDR_IN_UTMPX 1 | ||
19702 | _ACEOF | ||
19703 | |||
19704 | fi | ||
19705 | else | ||
19706 | echo "$as_me:$LINENO: result: no" >&5 | ||
19707 | echo "${ECHO_T}no" >&6 | ||
19708 | fi | ||
19709 | |||
19710 | |||
19711 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
19712 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19713 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
19714 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
19715 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
19716 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19718 | else | ||
19719 | |||
19720 | cat >conftest.$ac_ext <<_ACEOF | ||
19721 | /* confdefs.h. */ | ||
19722 | _ACEOF | ||
19723 | cat confdefs.h >>conftest.$ac_ext | ||
19724 | cat >>conftest.$ac_ext <<_ACEOF | ||
19725 | /* end confdefs.h. */ | ||
19726 | #include <utmp.h> | ||
19727 | |||
19728 | _ACEOF | ||
19729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19730 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
19731 | eval "$ossh_varname=yes" | ||
19732 | else | ||
19733 | eval "$ossh_varname=no" | ||
19734 | fi | ||
19735 | rm -f conftest* | ||
19736 | |||
19737 | fi | ||
19738 | |||
19739 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19740 | if test -n "`echo $ossh_varname`"; then | ||
19741 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19742 | echo "${ECHO_T}$ossh_result" >&6 | ||
19743 | if test "x$ossh_result" = "xyes"; then | ||
19744 | cat >>confdefs.h <<\_ACEOF | ||
19745 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
19746 | _ACEOF | ||
19747 | |||
19748 | fi | ||
19749 | else | ||
19750 | echo "$as_me:$LINENO: result: no" >&5 | ||
19751 | echo "${ECHO_T}no" >&6 | ||
19752 | fi | ||
19753 | |||
19754 | |||
19755 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
19756 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19757 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
19758 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
19759 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
19760 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19762 | else | ||
19763 | |||
19764 | cat >conftest.$ac_ext <<_ACEOF | ||
19765 | /* confdefs.h. */ | ||
19766 | _ACEOF | ||
19767 | cat confdefs.h >>conftest.$ac_ext | ||
19768 | cat >>conftest.$ac_ext <<_ACEOF | ||
19769 | /* end confdefs.h. */ | ||
19770 | #include <utmpx.h> | ||
19771 | |||
19772 | _ACEOF | ||
19773 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19774 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
19775 | eval "$ossh_varname=yes" | ||
19776 | else | ||
19777 | eval "$ossh_varname=no" | ||
19778 | fi | ||
19779 | rm -f conftest* | ||
19780 | |||
19781 | fi | ||
19782 | |||
19783 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19784 | if test -n "`echo $ossh_varname`"; then | ||
19785 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19786 | echo "${ECHO_T}$ossh_result" >&6 | ||
19787 | if test "x$ossh_result" = "xyes"; then | ||
19788 | cat >>confdefs.h <<\_ACEOF | ||
19789 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
19790 | _ACEOF | ||
19791 | |||
19792 | fi | ||
19793 | else | ||
19794 | echo "$as_me:$LINENO: result: no" >&5 | ||
19795 | echo "${ECHO_T}no" >&6 | ||
19796 | fi | ||
19797 | |||
19798 | |||
19799 | # look for field 'ut_exit' in header 'utmp.h' | ||
19800 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19801 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
19802 | echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
19803 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
19804 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19806 | else | ||
19807 | |||
19808 | cat >conftest.$ac_ext <<_ACEOF | ||
19809 | /* confdefs.h. */ | ||
19810 | _ACEOF | ||
19811 | cat confdefs.h >>conftest.$ac_ext | ||
19812 | cat >>conftest.$ac_ext <<_ACEOF | ||
19813 | /* end confdefs.h. */ | ||
19814 | #include <utmp.h> | ||
19815 | |||
19816 | _ACEOF | ||
19817 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19818 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
19819 | eval "$ossh_varname=yes" | ||
19820 | else | ||
19821 | eval "$ossh_varname=no" | ||
19822 | fi | ||
19823 | rm -f conftest* | ||
19824 | |||
19825 | fi | ||
19826 | |||
19827 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19828 | if test -n "`echo $ossh_varname`"; then | ||
19829 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19830 | echo "${ECHO_T}$ossh_result" >&6 | ||
19831 | if test "x$ossh_result" = "xyes"; then | ||
19832 | cat >>confdefs.h <<\_ACEOF | ||
19833 | #define HAVE_EXIT_IN_UTMP 1 | ||
19834 | _ACEOF | ||
19835 | |||
19836 | fi | ||
19837 | else | ||
19838 | echo "$as_me:$LINENO: result: no" >&5 | ||
19839 | echo "${ECHO_T}no" >&6 | ||
19840 | fi | ||
19841 | |||
19842 | |||
19843 | # look for field 'ut_time' in header 'utmp.h' | ||
19844 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19845 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
19846 | echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
19847 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
19848 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19850 | else | ||
19851 | |||
19852 | cat >conftest.$ac_ext <<_ACEOF | ||
19853 | /* confdefs.h. */ | ||
19854 | _ACEOF | ||
19855 | cat confdefs.h >>conftest.$ac_ext | ||
19856 | cat >>conftest.$ac_ext <<_ACEOF | ||
19857 | /* end confdefs.h. */ | ||
19858 | #include <utmp.h> | ||
19859 | |||
19860 | _ACEOF | ||
19861 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19862 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
19863 | eval "$ossh_varname=yes" | ||
19864 | else | ||
19865 | eval "$ossh_varname=no" | ||
19866 | fi | ||
19867 | rm -f conftest* | ||
19868 | |||
19869 | fi | ||
19870 | |||
19871 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19872 | if test -n "`echo $ossh_varname`"; then | ||
19873 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19874 | echo "${ECHO_T}$ossh_result" >&6 | ||
19875 | if test "x$ossh_result" = "xyes"; then | ||
19876 | cat >>confdefs.h <<\_ACEOF | ||
19877 | #define HAVE_TIME_IN_UTMP 1 | ||
19878 | _ACEOF | ||
19879 | |||
19880 | fi | ||
19881 | else | ||
19882 | echo "$as_me:$LINENO: result: no" >&5 | ||
19883 | echo "${ECHO_T}no" >&6 | ||
19884 | fi | ||
19885 | |||
19886 | |||
19887 | # look for field 'ut_time' in header 'utmpx.h' | ||
19888 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19889 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
19890 | echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
19891 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
19892 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19894 | else | ||
19895 | |||
19896 | cat >conftest.$ac_ext <<_ACEOF | ||
19897 | /* confdefs.h. */ | ||
19898 | _ACEOF | ||
19899 | cat confdefs.h >>conftest.$ac_ext | ||
19900 | cat >>conftest.$ac_ext <<_ACEOF | ||
19901 | /* end confdefs.h. */ | ||
19902 | #include <utmpx.h> | ||
19903 | |||
19904 | _ACEOF | ||
19905 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19906 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
19907 | eval "$ossh_varname=yes" | ||
19908 | else | ||
19909 | eval "$ossh_varname=no" | ||
19910 | fi | ||
19911 | rm -f conftest* | ||
19912 | |||
19913 | fi | ||
19914 | |||
19915 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19916 | if test -n "`echo $ossh_varname`"; then | ||
19917 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19918 | echo "${ECHO_T}$ossh_result" >&6 | ||
19919 | if test "x$ossh_result" = "xyes"; then | ||
19920 | cat >>confdefs.h <<\_ACEOF | ||
19921 | #define HAVE_TIME_IN_UTMPX 1 | ||
19922 | _ACEOF | ||
19923 | |||
19924 | fi | ||
19925 | else | ||
19926 | echo "$as_me:$LINENO: result: no" >&5 | ||
19927 | echo "${ECHO_T}no" >&6 | ||
19928 | fi | ||
19929 | |||
19930 | |||
19931 | # look for field 'ut_tv' in header 'utmpx.h' | ||
19932 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19933 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
19934 | echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
19935 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
19936 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19938 | else | ||
19939 | |||
19940 | cat >conftest.$ac_ext <<_ACEOF | ||
19941 | /* confdefs.h. */ | ||
19942 | _ACEOF | ||
19943 | cat confdefs.h >>conftest.$ac_ext | ||
19944 | cat >>conftest.$ac_ext <<_ACEOF | ||
19945 | /* end confdefs.h. */ | ||
19946 | #include <utmpx.h> | ||
19947 | |||
19948 | _ACEOF | ||
19949 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19950 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
19951 | eval "$ossh_varname=yes" | ||
19952 | else | ||
19953 | eval "$ossh_varname=no" | ||
19954 | fi | ||
19955 | rm -f conftest* | ||
19956 | |||
19957 | fi | ||
19958 | |||
19959 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19960 | if test -n "`echo $ossh_varname`"; then | ||
19961 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19962 | echo "${ECHO_T}$ossh_result" >&6 | ||
19963 | if test "x$ossh_result" = "xyes"; then | ||
19964 | cat >>confdefs.h <<\_ACEOF | ||
19965 | #define HAVE_TV_IN_UTMPX 1 | ||
19966 | _ACEOF | ||
19967 | |||
19968 | fi | ||
19969 | else | ||
19970 | echo "$as_me:$LINENO: result: no" >&5 | ||
19971 | echo "${ECHO_T}no" >&6 | ||
19972 | fi | ||
19973 | |||
19974 | |||
19975 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
19976 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
19977 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
19978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19979 | else | ||
19980 | cat >conftest.$ac_ext <<_ACEOF | ||
19981 | /* confdefs.h. */ | ||
19982 | _ACEOF | ||
19983 | cat confdefs.h >>conftest.$ac_ext | ||
19984 | cat >>conftest.$ac_ext <<_ACEOF | ||
19985 | /* end confdefs.h. */ | ||
19986 | $ac_includes_default | ||
19987 | int | ||
19988 | main () | ||
19989 | { | ||
19990 | static struct stat ac_aggr; | ||
19991 | if (ac_aggr.st_blksize) | ||
19992 | return 0; | ||
19993 | ; | ||
19994 | return 0; | ||
19995 | } | ||
19996 | _ACEOF | ||
19997 | rm -f conftest.$ac_objext | ||
19998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19999 | (eval $ac_compile) 2>conftest.er1 | ||
20000 | ac_status=$? | ||
20001 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20002 | rm -f conftest.er1 | ||
20003 | cat conftest.err >&5 | ||
20004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20005 | (exit $ac_status); } && | ||
20006 | { ac_try='test -z "$ac_c_werror_flag" | ||
20007 | || test ! -s conftest.err' | ||
20008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20009 | (eval $ac_try) 2>&5 | ||
20010 | ac_status=$? | ||
20011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20012 | (exit $ac_status); }; } && | ||
20013 | { ac_try='test -s conftest.$ac_objext' | ||
20014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20015 | (eval $ac_try) 2>&5 | ||
20016 | ac_status=$? | ||
20017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20018 | (exit $ac_status); }; }; then | ||
20019 | ac_cv_member_struct_stat_st_blksize=yes | ||
20020 | else | ||
20021 | echo "$as_me: failed program was:" >&5 | ||
20022 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20023 | |||
20024 | cat >conftest.$ac_ext <<_ACEOF | ||
20025 | /* confdefs.h. */ | ||
20026 | _ACEOF | ||
20027 | cat confdefs.h >>conftest.$ac_ext | ||
20028 | cat >>conftest.$ac_ext <<_ACEOF | ||
20029 | /* end confdefs.h. */ | ||
20030 | $ac_includes_default | ||
20031 | int | ||
20032 | main () | ||
20033 | { | ||
20034 | static struct stat ac_aggr; | ||
20035 | if (sizeof ac_aggr.st_blksize) | ||
20036 | return 0; | ||
20037 | ; | ||
20038 | return 0; | ||
20039 | } | ||
20040 | _ACEOF | ||
20041 | rm -f conftest.$ac_objext | ||
20042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20043 | (eval $ac_compile) 2>conftest.er1 | ||
20044 | ac_status=$? | ||
20045 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20046 | rm -f conftest.er1 | ||
20047 | cat conftest.err >&5 | ||
20048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20049 | (exit $ac_status); } && | ||
20050 | { ac_try='test -z "$ac_c_werror_flag" | ||
20051 | || test ! -s conftest.err' | ||
20052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20053 | (eval $ac_try) 2>&5 | ||
20054 | ac_status=$? | ||
20055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20056 | (exit $ac_status); }; } && | ||
20057 | { ac_try='test -s conftest.$ac_objext' | ||
20058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20059 | (eval $ac_try) 2>&5 | ||
20060 | ac_status=$? | ||
20061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20062 | (exit $ac_status); }; }; then | ||
20063 | ac_cv_member_struct_stat_st_blksize=yes | ||
20064 | else | ||
20065 | echo "$as_me: failed program was:" >&5 | ||
20066 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20067 | |||
20068 | ac_cv_member_struct_stat_st_blksize=no | ||
20069 | fi | ||
20070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20071 | fi | ||
20072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20073 | fi | ||
20074 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
20075 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
20076 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
20077 | |||
20078 | cat >>confdefs.h <<_ACEOF | ||
20079 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
20080 | _ACEOF | ||
20081 | |||
20082 | |||
20083 | fi | ||
20084 | |||
20085 | |||
20086 | echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
20087 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
20088 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
20089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20090 | else | ||
20091 | |||
20092 | cat >conftest.$ac_ext <<_ACEOF | ||
20093 | /* confdefs.h. */ | ||
20094 | _ACEOF | ||
20095 | cat confdefs.h >>conftest.$ac_ext | ||
20096 | cat >>conftest.$ac_ext <<_ACEOF | ||
20097 | /* end confdefs.h. */ | ||
20098 | |||
20099 | #include <sys/types.h> | ||
20100 | #include <sys/socket.h> | ||
20101 | |||
20102 | int | ||
20103 | main () | ||
20104 | { | ||
20105 | struct sockaddr_storage s; s.ss_family = 1; | ||
20106 | ; | ||
20107 | return 0; | ||
20108 | } | ||
20109 | _ACEOF | ||
20110 | rm -f conftest.$ac_objext | ||
20111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20112 | (eval $ac_compile) 2>conftest.er1 | ||
20113 | ac_status=$? | ||
20114 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20115 | rm -f conftest.er1 | ||
20116 | cat conftest.err >&5 | ||
20117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20118 | (exit $ac_status); } && | ||
20119 | { ac_try='test -z "$ac_c_werror_flag" | ||
20120 | || test ! -s conftest.err' | ||
20121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20122 | (eval $ac_try) 2>&5 | ||
20123 | ac_status=$? | ||
20124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20125 | (exit $ac_status); }; } && | ||
20126 | { ac_try='test -s conftest.$ac_objext' | ||
20127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20128 | (eval $ac_try) 2>&5 | ||
20129 | ac_status=$? | ||
20130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20131 | (exit $ac_status); }; }; then | ||
20132 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
20133 | else | ||
20134 | echo "$as_me: failed program was:" >&5 | ||
20135 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20136 | |||
20137 | ac_cv_have_ss_family_in_struct_ss="no" | ||
20138 | fi | ||
20139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20140 | |||
20141 | fi | ||
20142 | echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
20143 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
20144 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
20145 | cat >>confdefs.h <<\_ACEOF | ||
20146 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
20147 | _ACEOF | ||
20148 | |||
20149 | fi | ||
20150 | |||
20151 | echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
20152 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
20153 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
20154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20155 | else | ||
20156 | |||
20157 | cat >conftest.$ac_ext <<_ACEOF | ||
20158 | /* confdefs.h. */ | ||
20159 | _ACEOF | ||
20160 | cat confdefs.h >>conftest.$ac_ext | ||
20161 | cat >>conftest.$ac_ext <<_ACEOF | ||
20162 | /* end confdefs.h. */ | ||
20163 | |||
20164 | #include <sys/types.h> | ||
20165 | #include <sys/socket.h> | ||
20166 | |||
20167 | int | ||
20168 | main () | ||
20169 | { | ||
20170 | struct sockaddr_storage s; s.__ss_family = 1; | ||
20171 | ; | ||
20172 | return 0; | ||
20173 | } | ||
20174 | _ACEOF | ||
20175 | rm -f conftest.$ac_objext | ||
20176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20177 | (eval $ac_compile) 2>conftest.er1 | ||
20178 | ac_status=$? | ||
20179 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20180 | rm -f conftest.er1 | ||
20181 | cat conftest.err >&5 | ||
20182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20183 | (exit $ac_status); } && | ||
20184 | { ac_try='test -z "$ac_c_werror_flag" | ||
20185 | || test ! -s conftest.err' | ||
20186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20187 | (eval $ac_try) 2>&5 | ||
20188 | ac_status=$? | ||
20189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20190 | (exit $ac_status); }; } && | ||
20191 | { ac_try='test -s conftest.$ac_objext' | ||
20192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20193 | (eval $ac_try) 2>&5 | ||
20194 | ac_status=$? | ||
20195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20196 | (exit $ac_status); }; }; then | ||
20197 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
20198 | else | ||
20199 | echo "$as_me: failed program was:" >&5 | ||
20200 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20201 | |||
20202 | ac_cv_have___ss_family_in_struct_ss="no" | ||
20203 | |||
20204 | fi | ||
20205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20206 | |||
20207 | fi | ||
20208 | echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
20209 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
20210 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
20211 | cat >>confdefs.h <<\_ACEOF | ||
20212 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
20213 | _ACEOF | ||
20214 | |||
20215 | fi | ||
20216 | |||
20217 | echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
20218 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
20219 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
20220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20221 | else | ||
20222 | |||
20223 | cat >conftest.$ac_ext <<_ACEOF | ||
20224 | /* confdefs.h. */ | ||
20225 | _ACEOF | ||
20226 | cat confdefs.h >>conftest.$ac_ext | ||
20227 | cat >>conftest.$ac_ext <<_ACEOF | ||
20228 | /* end confdefs.h. */ | ||
20229 | |||
20230 | #include <pwd.h> | ||
20231 | |||
20232 | int | ||
20233 | main () | ||
20234 | { | ||
20235 | struct passwd p; p.pw_class = 0; | ||
20236 | ; | ||
20237 | return 0; | ||
20238 | } | ||
20239 | _ACEOF | ||
20240 | rm -f conftest.$ac_objext | ||
20241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20242 | (eval $ac_compile) 2>conftest.er1 | ||
20243 | ac_status=$? | ||
20244 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20245 | rm -f conftest.er1 | ||
20246 | cat conftest.err >&5 | ||
20247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20248 | (exit $ac_status); } && | ||
20249 | { ac_try='test -z "$ac_c_werror_flag" | ||
20250 | || test ! -s conftest.err' | ||
20251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20252 | (eval $ac_try) 2>&5 | ||
20253 | ac_status=$? | ||
20254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20255 | (exit $ac_status); }; } && | ||
20256 | { ac_try='test -s conftest.$ac_objext' | ||
20257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20258 | (eval $ac_try) 2>&5 | ||
20259 | ac_status=$? | ||
20260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20261 | (exit $ac_status); }; }; then | ||
20262 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
20263 | else | ||
20264 | echo "$as_me: failed program was:" >&5 | ||
20265 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20266 | |||
20267 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
20268 | |||
20269 | fi | ||
20270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20271 | |||
20272 | fi | ||
20273 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
20274 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
20275 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
20276 | cat >>confdefs.h <<\_ACEOF | ||
20277 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
20278 | _ACEOF | ||
20279 | |||
20280 | fi | ||
20281 | |||
20282 | echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
20283 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
20284 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
20285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20286 | else | ||
20287 | |||
20288 | cat >conftest.$ac_ext <<_ACEOF | ||
20289 | /* confdefs.h. */ | ||
20290 | _ACEOF | ||
20291 | cat confdefs.h >>conftest.$ac_ext | ||
20292 | cat >>conftest.$ac_ext <<_ACEOF | ||
20293 | /* end confdefs.h. */ | ||
20294 | |||
20295 | #include <pwd.h> | ||
20296 | |||
20297 | int | ||
20298 | main () | ||
20299 | { | ||
20300 | struct passwd p; p.pw_expire = 0; | ||
20301 | ; | ||
20302 | return 0; | ||
20303 | } | ||
20304 | _ACEOF | ||
20305 | rm -f conftest.$ac_objext | ||
20306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20307 | (eval $ac_compile) 2>conftest.er1 | ||
20308 | ac_status=$? | ||
20309 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20310 | rm -f conftest.er1 | ||
20311 | cat conftest.err >&5 | ||
20312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20313 | (exit $ac_status); } && | ||
20314 | { ac_try='test -z "$ac_c_werror_flag" | ||
20315 | || test ! -s conftest.err' | ||
20316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20317 | (eval $ac_try) 2>&5 | ||
20318 | ac_status=$? | ||
20319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20320 | (exit $ac_status); }; } && | ||
20321 | { ac_try='test -s conftest.$ac_objext' | ||
20322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20323 | (eval $ac_try) 2>&5 | ||
20324 | ac_status=$? | ||
20325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20326 | (exit $ac_status); }; }; then | ||
20327 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
20328 | else | ||
20329 | echo "$as_me: failed program was:" >&5 | ||
20330 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20331 | |||
20332 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
20333 | |||
20334 | fi | ||
20335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20336 | |||
20337 | fi | ||
20338 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
20339 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
20340 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
20341 | cat >>confdefs.h <<\_ACEOF | ||
20342 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
20343 | _ACEOF | ||
20344 | |||
20345 | fi | ||
20346 | |||
20347 | echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
20348 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
20349 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
20350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20351 | else | ||
20352 | |||
20353 | cat >conftest.$ac_ext <<_ACEOF | ||
20354 | /* confdefs.h. */ | ||
20355 | _ACEOF | ||
20356 | cat confdefs.h >>conftest.$ac_ext | ||
20357 | cat >>conftest.$ac_ext <<_ACEOF | ||
20358 | /* end confdefs.h. */ | ||
20359 | |||
20360 | #include <pwd.h> | ||
20361 | |||
20362 | int | ||
20363 | main () | ||
20364 | { | ||
20365 | struct passwd p; p.pw_change = 0; | ||
20366 | ; | ||
20367 | return 0; | ||
20368 | } | ||
20369 | _ACEOF | ||
20370 | rm -f conftest.$ac_objext | ||
20371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20372 | (eval $ac_compile) 2>conftest.er1 | ||
20373 | ac_status=$? | ||
20374 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20375 | rm -f conftest.er1 | ||
20376 | cat conftest.err >&5 | ||
20377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20378 | (exit $ac_status); } && | ||
20379 | { ac_try='test -z "$ac_c_werror_flag" | ||
20380 | || test ! -s conftest.err' | ||
20381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20382 | (eval $ac_try) 2>&5 | ||
20383 | ac_status=$? | ||
20384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20385 | (exit $ac_status); }; } && | ||
20386 | { ac_try='test -s conftest.$ac_objext' | ||
20387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20388 | (eval $ac_try) 2>&5 | ||
20389 | ac_status=$? | ||
20390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20391 | (exit $ac_status); }; }; then | ||
20392 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
20393 | else | ||
20394 | echo "$as_me: failed program was:" >&5 | ||
20395 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20396 | |||
20397 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
20398 | |||
20399 | fi | ||
20400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20401 | |||
20402 | fi | ||
20403 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
20404 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
20405 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
20406 | cat >>confdefs.h <<\_ACEOF | ||
20407 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
20408 | _ACEOF | ||
20409 | |||
20410 | fi | ||
20411 | |||
20412 | echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
20413 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
20414 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
20415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20416 | else | ||
20417 | |||
20418 | cat >conftest.$ac_ext <<_ACEOF | ||
20419 | |||
20420 | #include <sys/types.h> | ||
20421 | #include <sys/socket.h> | ||
20422 | #include <sys/uio.h> | ||
20423 | int main() { | ||
20424 | #ifdef msg_accrights | ||
20425 | #error "msg_accrights is a macro" | ||
20426 | exit(1); | ||
20427 | #endif | ||
20428 | struct msghdr m; | ||
20429 | m.msg_accrights = 0; | ||
20430 | exit(0); | ||
20431 | } | ||
20432 | |||
20433 | _ACEOF | ||
20434 | rm -f conftest.$ac_objext | ||
20435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20436 | (eval $ac_compile) 2>conftest.er1 | ||
20437 | ac_status=$? | ||
20438 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20439 | rm -f conftest.er1 | ||
20440 | cat conftest.err >&5 | ||
20441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20442 | (exit $ac_status); } && | ||
20443 | { ac_try='test -z "$ac_c_werror_flag" | ||
20444 | || test ! -s conftest.err' | ||
20445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20446 | (eval $ac_try) 2>&5 | ||
20447 | ac_status=$? | ||
20448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20449 | (exit $ac_status); }; } && | ||
20450 | { ac_try='test -s conftest.$ac_objext' | ||
20451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20452 | (eval $ac_try) 2>&5 | ||
20453 | ac_status=$? | ||
20454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20455 | (exit $ac_status); }; }; then | ||
20456 | ac_cv_have_accrights_in_msghdr="yes" | ||
20457 | else | ||
20458 | echo "$as_me: failed program was:" >&5 | ||
20459 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20460 | |||
20461 | ac_cv_have_accrights_in_msghdr="no" | ||
20462 | |||
20463 | fi | ||
20464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20465 | |||
20466 | fi | ||
20467 | echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
20468 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
20469 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
20470 | cat >>confdefs.h <<\_ACEOF | ||
20471 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
20472 | _ACEOF | ||
20473 | |||
20474 | fi | ||
20475 | |||
20476 | echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
20477 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
20478 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
20479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20480 | else | ||
20481 | |||
20482 | cat >conftest.$ac_ext <<_ACEOF | ||
20483 | |||
20484 | #include <sys/types.h> | ||
20485 | #include <sys/socket.h> | ||
20486 | #include <sys/uio.h> | ||
20487 | int main() { | ||
20488 | #ifdef msg_control | ||
20489 | #error "msg_control is a macro" | ||
20490 | exit(1); | ||
20491 | #endif | ||
20492 | struct msghdr m; | ||
20493 | m.msg_control = 0; | ||
20494 | exit(0); | ||
20495 | } | ||
20496 | |||
20497 | _ACEOF | ||
20498 | rm -f conftest.$ac_objext | ||
20499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20500 | (eval $ac_compile) 2>conftest.er1 | ||
20501 | ac_status=$? | ||
20502 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20503 | rm -f conftest.er1 | ||
20504 | cat conftest.err >&5 | ||
20505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20506 | (exit $ac_status); } && | ||
20507 | { ac_try='test -z "$ac_c_werror_flag" | ||
20508 | || test ! -s conftest.err' | ||
20509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20510 | (eval $ac_try) 2>&5 | ||
20511 | ac_status=$? | ||
20512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20513 | (exit $ac_status); }; } && | ||
20514 | { ac_try='test -s conftest.$ac_objext' | ||
20515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20516 | (eval $ac_try) 2>&5 | ||
20517 | ac_status=$? | ||
20518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20519 | (exit $ac_status); }; }; then | ||
20520 | ac_cv_have_control_in_msghdr="yes" | ||
20521 | else | ||
20522 | echo "$as_me: failed program was:" >&5 | ||
20523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20524 | |||
20525 | ac_cv_have_control_in_msghdr="no" | ||
20526 | |||
20527 | fi | ||
20528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20529 | |||
20530 | fi | ||
20531 | echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
20532 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
20533 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
20534 | cat >>confdefs.h <<\_ACEOF | ||
20535 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
20536 | _ACEOF | ||
20537 | |||
20538 | fi | ||
20539 | |||
20540 | echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
20541 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
20542 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
20543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20544 | else | ||
20545 | |||
20546 | cat >conftest.$ac_ext <<_ACEOF | ||
20547 | /* confdefs.h. */ | ||
20548 | _ACEOF | ||
20549 | cat confdefs.h >>conftest.$ac_ext | ||
20550 | cat >>conftest.$ac_ext <<_ACEOF | ||
20551 | /* end confdefs.h. */ | ||
20552 | |||
20553 | int | ||
20554 | main () | ||
20555 | { | ||
20556 | extern char *__progname; printf("%s", __progname); | ||
20557 | ; | ||
20558 | return 0; | ||
20559 | } | ||
20560 | _ACEOF | ||
20561 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20563 | (eval $ac_link) 2>conftest.er1 | ||
20564 | ac_status=$? | ||
20565 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20566 | rm -f conftest.er1 | ||
20567 | cat conftest.err >&5 | ||
20568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20569 | (exit $ac_status); } && | ||
20570 | { ac_try='test -z "$ac_c_werror_flag" | ||
20571 | || test ! -s conftest.err' | ||
20572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20573 | (eval $ac_try) 2>&5 | ||
20574 | ac_status=$? | ||
20575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20576 | (exit $ac_status); }; } && | ||
20577 | { ac_try='test -s conftest$ac_exeext' | ||
20578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20579 | (eval $ac_try) 2>&5 | ||
20580 | ac_status=$? | ||
20581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20582 | (exit $ac_status); }; }; then | ||
20583 | ac_cv_libc_defines___progname="yes" | ||
20584 | else | ||
20585 | echo "$as_me: failed program was:" >&5 | ||
20586 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20587 | |||
20588 | ac_cv_libc_defines___progname="no" | ||
20589 | |||
20590 | fi | ||
20591 | rm -f conftest.err conftest.$ac_objext \ | ||
20592 | conftest$ac_exeext conftest.$ac_ext | ||
20593 | |||
20594 | fi | ||
20595 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
20596 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
20597 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
20598 | cat >>confdefs.h <<\_ACEOF | ||
20599 | #define HAVE___PROGNAME 1 | ||
20600 | _ACEOF | ||
20601 | |||
20602 | fi | ||
20603 | |||
20604 | echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
20605 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
20606 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
20607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20608 | else | ||
20609 | |||
20610 | cat >conftest.$ac_ext <<_ACEOF | ||
20611 | /* confdefs.h. */ | ||
20612 | _ACEOF | ||
20613 | cat confdefs.h >>conftest.$ac_ext | ||
20614 | cat >>conftest.$ac_ext <<_ACEOF | ||
20615 | /* end confdefs.h. */ | ||
20616 | |||
20617 | #include <stdio.h> | ||
20618 | |||
20619 | int | ||
20620 | main () | ||
20621 | { | ||
20622 | printf("%s", __FUNCTION__); | ||
20623 | ; | ||
20624 | return 0; | ||
20625 | } | ||
20626 | _ACEOF | ||
20627 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20629 | (eval $ac_link) 2>conftest.er1 | ||
20630 | ac_status=$? | ||
20631 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20632 | rm -f conftest.er1 | ||
20633 | cat conftest.err >&5 | ||
20634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20635 | (exit $ac_status); } && | ||
20636 | { ac_try='test -z "$ac_c_werror_flag" | ||
20637 | || test ! -s conftest.err' | ||
20638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20639 | (eval $ac_try) 2>&5 | ||
20640 | ac_status=$? | ||
20641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20642 | (exit $ac_status); }; } && | ||
20643 | { ac_try='test -s conftest$ac_exeext' | ||
20644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20645 | (eval $ac_try) 2>&5 | ||
20646 | ac_status=$? | ||
20647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20648 | (exit $ac_status); }; }; then | ||
20649 | ac_cv_cc_implements___FUNCTION__="yes" | ||
20650 | else | ||
20651 | echo "$as_me: failed program was:" >&5 | ||
20652 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20653 | |||
20654 | ac_cv_cc_implements___FUNCTION__="no" | ||
20655 | |||
20656 | fi | ||
20657 | rm -f conftest.err conftest.$ac_objext \ | ||
20658 | conftest$ac_exeext conftest.$ac_ext | ||
20659 | |||
20660 | fi | ||
20661 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
20662 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
20663 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
20664 | cat >>confdefs.h <<\_ACEOF | ||
20665 | #define HAVE___FUNCTION__ 1 | ||
20666 | _ACEOF | ||
20667 | |||
20668 | fi | ||
20669 | |||
20670 | echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
20671 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
20672 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
20673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20674 | else | ||
20675 | |||
20676 | cat >conftest.$ac_ext <<_ACEOF | ||
20677 | /* confdefs.h. */ | ||
20678 | _ACEOF | ||
20679 | cat confdefs.h >>conftest.$ac_ext | ||
20680 | cat >>conftest.$ac_ext <<_ACEOF | ||
20681 | /* end confdefs.h. */ | ||
20682 | |||
20683 | #include <stdio.h> | ||
20684 | |||
20685 | int | ||
20686 | main () | ||
20687 | { | ||
20688 | printf("%s", __func__); | ||
20689 | ; | ||
20690 | return 0; | ||
20691 | } | ||
20692 | _ACEOF | ||
20693 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20695 | (eval $ac_link) 2>conftest.er1 | ||
20696 | ac_status=$? | ||
20697 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20698 | rm -f conftest.er1 | ||
20699 | cat conftest.err >&5 | ||
20700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20701 | (exit $ac_status); } && | ||
20702 | { ac_try='test -z "$ac_c_werror_flag" | ||
20703 | || test ! -s conftest.err' | ||
20704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20705 | (eval $ac_try) 2>&5 | ||
20706 | ac_status=$? | ||
20707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20708 | (exit $ac_status); }; } && | ||
20709 | { ac_try='test -s conftest$ac_exeext' | ||
20710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20711 | (eval $ac_try) 2>&5 | ||
20712 | ac_status=$? | ||
20713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20714 | (exit $ac_status); }; }; then | ||
20715 | ac_cv_cc_implements___func__="yes" | ||
20716 | else | ||
20717 | echo "$as_me: failed program was:" >&5 | ||
20718 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20719 | |||
20720 | ac_cv_cc_implements___func__="no" | ||
20721 | |||
20722 | fi | ||
20723 | rm -f conftest.err conftest.$ac_objext \ | ||
20724 | conftest$ac_exeext conftest.$ac_ext | ||
20725 | |||
20726 | fi | ||
20727 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
20728 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
20729 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
20730 | cat >>confdefs.h <<\_ACEOF | ||
20731 | #define HAVE___func__ 1 | ||
20732 | _ACEOF | ||
20733 | |||
20734 | fi | ||
20735 | |||
20736 | echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
20737 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
20738 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
20739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20740 | else | ||
20741 | |||
20742 | cat >conftest.$ac_ext <<_ACEOF | ||
20743 | /* confdefs.h. */ | ||
20744 | _ACEOF | ||
20745 | cat confdefs.h >>conftest.$ac_ext | ||
20746 | cat >>conftest.$ac_ext <<_ACEOF | ||
20747 | /* end confdefs.h. */ | ||
20748 | |||
20749 | #include <getopt.h> | ||
20750 | |||
20751 | int | ||
20752 | main () | ||
20753 | { | ||
20754 | extern int optreset; optreset = 0; | ||
20755 | ; | ||
20756 | return 0; | ||
20757 | } | ||
20758 | _ACEOF | ||
20759 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20761 | (eval $ac_link) 2>conftest.er1 | ||
20762 | ac_status=$? | ||
20763 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20764 | rm -f conftest.er1 | ||
20765 | cat conftest.err >&5 | ||
20766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20767 | (exit $ac_status); } && | ||
20768 | { ac_try='test -z "$ac_c_werror_flag" | ||
20769 | || test ! -s conftest.err' | ||
20770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20771 | (eval $ac_try) 2>&5 | ||
20772 | ac_status=$? | ||
20773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20774 | (exit $ac_status); }; } && | ||
20775 | { ac_try='test -s conftest$ac_exeext' | ||
20776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20777 | (eval $ac_try) 2>&5 | ||
20778 | ac_status=$? | ||
20779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20780 | (exit $ac_status); }; }; then | ||
20781 | ac_cv_have_getopt_optreset="yes" | ||
20782 | else | ||
20783 | echo "$as_me: failed program was:" >&5 | ||
20784 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20785 | |||
20786 | ac_cv_have_getopt_optreset="no" | ||
20787 | |||
20788 | fi | ||
20789 | rm -f conftest.err conftest.$ac_objext \ | ||
20790 | conftest$ac_exeext conftest.$ac_ext | ||
20791 | |||
20792 | fi | ||
20793 | echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
20794 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
20795 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
20796 | cat >>confdefs.h <<\_ACEOF | ||
20797 | #define HAVE_GETOPT_OPTRESET 1 | ||
20798 | _ACEOF | ||
20799 | |||
20800 | fi | ||
20801 | |||
20802 | echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
20803 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
20804 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
20805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20806 | else | ||
20807 | |||
20808 | cat >conftest.$ac_ext <<_ACEOF | ||
20809 | /* confdefs.h. */ | ||
20810 | _ACEOF | ||
20811 | cat confdefs.h >>conftest.$ac_ext | ||
20812 | cat >>conftest.$ac_ext <<_ACEOF | ||
20813 | /* end confdefs.h. */ | ||
20814 | |||
20815 | int | ||
20816 | main () | ||
20817 | { | ||
20818 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
20819 | ; | ||
20820 | return 0; | ||
20821 | } | ||
20822 | _ACEOF | ||
20823 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20825 | (eval $ac_link) 2>conftest.er1 | ||
20826 | ac_status=$? | ||
20827 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20828 | rm -f conftest.er1 | ||
20829 | cat conftest.err >&5 | ||
20830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20831 | (exit $ac_status); } && | ||
20832 | { ac_try='test -z "$ac_c_werror_flag" | ||
20833 | || test ! -s conftest.err' | ||
20834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20835 | (eval $ac_try) 2>&5 | ||
20836 | ac_status=$? | ||
20837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20838 | (exit $ac_status); }; } && | ||
20839 | { ac_try='test -s conftest$ac_exeext' | ||
20840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20841 | (eval $ac_try) 2>&5 | ||
20842 | ac_status=$? | ||
20843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20844 | (exit $ac_status); }; }; then | ||
20845 | ac_cv_libc_defines_sys_errlist="yes" | ||
20846 | else | ||
20847 | echo "$as_me: failed program was:" >&5 | ||
20848 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20849 | |||
20850 | ac_cv_libc_defines_sys_errlist="no" | ||
20851 | |||
20852 | fi | ||
20853 | rm -f conftest.err conftest.$ac_objext \ | ||
20854 | conftest$ac_exeext conftest.$ac_ext | ||
20855 | |||
20856 | fi | ||
20857 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
20858 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
20859 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
20860 | cat >>confdefs.h <<\_ACEOF | ||
20861 | #define HAVE_SYS_ERRLIST 1 | ||
20862 | _ACEOF | ||
20863 | |||
20864 | fi | ||
20865 | |||
20866 | |||
20867 | echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
20868 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
20869 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
20870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20871 | else | ||
20872 | |||
20873 | cat >conftest.$ac_ext <<_ACEOF | ||
20874 | /* confdefs.h. */ | ||
20875 | _ACEOF | ||
20876 | cat confdefs.h >>conftest.$ac_ext | ||
20877 | cat >>conftest.$ac_ext <<_ACEOF | ||
20878 | /* end confdefs.h. */ | ||
20879 | |||
20880 | int | ||
20881 | main () | ||
20882 | { | ||
20883 | extern int sys_nerr; printf("%i", sys_nerr); | ||
20884 | ; | ||
20885 | return 0; | ||
20886 | } | ||
20887 | _ACEOF | ||
20888 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20890 | (eval $ac_link) 2>conftest.er1 | ||
20891 | ac_status=$? | ||
20892 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20893 | rm -f conftest.er1 | ||
20894 | cat conftest.err >&5 | ||
20895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20896 | (exit $ac_status); } && | ||
20897 | { ac_try='test -z "$ac_c_werror_flag" | ||
20898 | || test ! -s conftest.err' | ||
20899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20900 | (eval $ac_try) 2>&5 | ||
20901 | ac_status=$? | ||
20902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20903 | (exit $ac_status); }; } && | ||
20904 | { ac_try='test -s conftest$ac_exeext' | ||
20905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20906 | (eval $ac_try) 2>&5 | ||
20907 | ac_status=$? | ||
20908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20909 | (exit $ac_status); }; }; then | ||
20910 | ac_cv_libc_defines_sys_nerr="yes" | ||
20911 | else | ||
20912 | echo "$as_me: failed program was:" >&5 | ||
20913 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20914 | |||
20915 | ac_cv_libc_defines_sys_nerr="no" | ||
20916 | |||
20917 | fi | ||
20918 | rm -f conftest.err conftest.$ac_objext \ | ||
20919 | conftest$ac_exeext conftest.$ac_ext | ||
20920 | |||
20921 | fi | ||
20922 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
20923 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
20924 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
20925 | cat >>confdefs.h <<\_ACEOF | ||
20926 | #define HAVE_SYS_NERR 1 | ||
20927 | _ACEOF | ||
20928 | |||
20929 | fi | ||
20930 | |||
20931 | SCARD_MSG="no" | ||
20932 | # Check whether user wants sectok support | ||
20933 | |||
20934 | # Check whether --with-sectok or --without-sectok was given. | ||
20935 | if test "${with_sectok+set}" = set; then | ||
20936 | withval="$with_sectok" | ||
20937 | |||
20938 | if test "x$withval" != "xno" ; then | ||
20939 | if test "x$withval" != "xyes" ; then | ||
20940 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
20941 | LDFLAGS="$LDFLAGS -L${withval}" | ||
20942 | if test ! -z "$need_dash_r" ; then | ||
20943 | LDFLAGS="$LDFLAGS -R${withval}" | ||
20944 | fi | ||
20945 | if test ! -z "$blibpath" ; then | ||
20946 | blibpath="$blibpath:${withval}" | ||
20947 | fi | ||
20948 | fi | ||
20949 | |||
20950 | for ac_header in sectok.h | ||
20951 | do | ||
20952 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
20953 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
20954 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
20955 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
20956 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
20957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20958 | fi | ||
20959 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
20960 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
20961 | else | ||
20962 | # Is the header compilable? | ||
20963 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
20964 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
20965 | cat >conftest.$ac_ext <<_ACEOF | ||
20966 | /* confdefs.h. */ | ||
20967 | _ACEOF | ||
20968 | cat confdefs.h >>conftest.$ac_ext | ||
20969 | cat >>conftest.$ac_ext <<_ACEOF | ||
20970 | /* end confdefs.h. */ | ||
20971 | $ac_includes_default | ||
20972 | #include <$ac_header> | ||
20973 | _ACEOF | ||
20974 | rm -f conftest.$ac_objext | ||
20975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20976 | (eval $ac_compile) 2>conftest.er1 | ||
20977 | ac_status=$? | ||
20978 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20979 | rm -f conftest.er1 | ||
20980 | cat conftest.err >&5 | ||
20981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20982 | (exit $ac_status); } && | ||
20983 | { ac_try='test -z "$ac_c_werror_flag" | ||
20984 | || test ! -s conftest.err' | ||
20985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20986 | (eval $ac_try) 2>&5 | ||
20987 | ac_status=$? | ||
20988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20989 | (exit $ac_status); }; } && | ||
20990 | { ac_try='test -s conftest.$ac_objext' | ||
20991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20992 | (eval $ac_try) 2>&5 | ||
20993 | ac_status=$? | ||
20994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20995 | (exit $ac_status); }; }; then | ||
20996 | ac_header_compiler=yes | ||
20997 | else | ||
20998 | echo "$as_me: failed program was:" >&5 | ||
20999 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21000 | |||
21001 | ac_header_compiler=no | ||
21002 | fi | ||
21003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21004 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21005 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
21006 | |||
21007 | # Is the header present? | ||
21008 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
21009 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
21010 | cat >conftest.$ac_ext <<_ACEOF | ||
21011 | /* confdefs.h. */ | ||
21012 | _ACEOF | ||
21013 | cat confdefs.h >>conftest.$ac_ext | ||
21014 | cat >>conftest.$ac_ext <<_ACEOF | ||
21015 | /* end confdefs.h. */ | ||
21016 | #include <$ac_header> | ||
21017 | _ACEOF | ||
21018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
21019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
21020 | ac_status=$? | ||
21021 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21022 | rm -f conftest.er1 | ||
21023 | cat conftest.err >&5 | ||
21024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21025 | (exit $ac_status); } >/dev/null; then | ||
21026 | if test -s conftest.err; then | ||
21027 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
21028 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
21029 | else | ||
21030 | ac_cpp_err= | ||
21031 | fi | ||
21032 | else | ||
21033 | ac_cpp_err=yes | ||
21034 | fi | ||
21035 | if test -z "$ac_cpp_err"; then | ||
21036 | ac_header_preproc=yes | ||
21037 | else | ||
21038 | echo "$as_me: failed program was:" >&5 | ||
21039 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21040 | |||
21041 | ac_header_preproc=no | ||
21042 | fi | ||
21043 | rm -f conftest.err conftest.$ac_ext | ||
21044 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21045 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
21046 | |||
21047 | # So? What about this header? | ||
21048 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21049 | yes:no: ) | ||
21050 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21051 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
21053 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
21054 | ac_header_preproc=yes | ||
21055 | ;; | ||
21056 | no:yes:* ) | ||
21057 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
21058 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
21059 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
21060 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
21061 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
21062 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
21063 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
21064 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21065 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
21066 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
21067 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
21068 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
21069 | ( | ||
21070 | cat <<\_ASBOX | ||
21071 | ## ---------------------------------- ## | ||
21072 | ## Report this to the OpenSSH lists. ## | ||
21073 | ## ---------------------------------- ## | ||
21074 | _ASBOX | ||
21075 | ) | | ||
21076 | sed "s/^/$as_me: WARNING: /" >&2 | ||
21077 | ;; | ||
21078 | esac | ||
21079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21083 | else | ||
21084 | eval "$as_ac_Header=\$ac_header_preproc" | ||
21085 | fi | ||
21086 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21087 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21088 | |||
21089 | fi | ||
21090 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
21091 | cat >>confdefs.h <<_ACEOF | ||
21092 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
21093 | _ACEOF | ||
21094 | |||
21095 | fi | ||
21096 | |||
21097 | done | ||
21098 | |||
21099 | if test "$ac_cv_header_sectok_h" != yes; then | ||
21100 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
21101 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
21102 | { (exit 1); exit 1; }; } | ||
21103 | fi | ||
21104 | |||
21105 | echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
21106 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
21107 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
21108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21109 | else | ||
21110 | ac_check_lib_save_LIBS=$LIBS | ||
21111 | LIBS="-lsectok $LIBS" | ||
21112 | cat >conftest.$ac_ext <<_ACEOF | ||
21113 | /* confdefs.h. */ | ||
21114 | _ACEOF | ||
21115 | cat confdefs.h >>conftest.$ac_ext | ||
21116 | cat >>conftest.$ac_ext <<_ACEOF | ||
21117 | /* end confdefs.h. */ | ||
21118 | |||
21119 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21120 | #ifdef __cplusplus | ||
21121 | extern "C" | ||
21122 | #endif | ||
21123 | /* We use char because int might match the return type of a gcc2 | ||
21124 | builtin and then its argument prototype would still apply. */ | ||
21125 | char sectok_open (); | ||
21126 | int | ||
21127 | main () | ||
21128 | { | ||
21129 | sectok_open (); | ||
21130 | ; | ||
21131 | return 0; | ||
21132 | } | ||
21133 | _ACEOF | ||
21134 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21136 | (eval $ac_link) 2>conftest.er1 | ||
21137 | ac_status=$? | ||
21138 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21139 | rm -f conftest.er1 | ||
21140 | cat conftest.err >&5 | ||
21141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21142 | (exit $ac_status); } && | ||
21143 | { ac_try='test -z "$ac_c_werror_flag" | ||
21144 | || test ! -s conftest.err' | ||
21145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21146 | (eval $ac_try) 2>&5 | ||
21147 | ac_status=$? | ||
21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21149 | (exit $ac_status); }; } && | ||
21150 | { ac_try='test -s conftest$ac_exeext' | ||
21151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21152 | (eval $ac_try) 2>&5 | ||
21153 | ac_status=$? | ||
21154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21155 | (exit $ac_status); }; }; then | ||
21156 | ac_cv_lib_sectok_sectok_open=yes | ||
21157 | else | ||
21158 | echo "$as_me: failed program was:" >&5 | ||
21159 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21160 | |||
21161 | ac_cv_lib_sectok_sectok_open=no | ||
21162 | fi | ||
21163 | rm -f conftest.err conftest.$ac_objext \ | ||
21164 | conftest$ac_exeext conftest.$ac_ext | ||
21165 | LIBS=$ac_check_lib_save_LIBS | ||
21166 | fi | ||
21167 | echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
21168 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
21169 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
21170 | cat >>confdefs.h <<_ACEOF | ||
21171 | #define HAVE_LIBSECTOK 1 | ||
21172 | _ACEOF | ||
21173 | |||
21174 | LIBS="-lsectok $LIBS" | ||
21175 | |||
21176 | fi | ||
21177 | |||
21178 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
21179 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
21180 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
21181 | { (exit 1); exit 1; }; } | ||
21182 | fi | ||
21183 | cat >>confdefs.h <<\_ACEOF | ||
21184 | #define SMARTCARD 1 | ||
21185 | _ACEOF | ||
21186 | |||
21187 | cat >>confdefs.h <<\_ACEOF | ||
21188 | #define USE_SECTOK 1 | ||
21189 | _ACEOF | ||
21190 | |||
21191 | SCARD_MSG="yes, using sectok" | ||
21192 | fi | ||
21193 | |||
21194 | |||
21195 | fi; | ||
21196 | |||
21197 | # Check whether user wants OpenSC support | ||
21198 | |||
21199 | # Check whether --with-opensc or --without-opensc was given. | ||
21200 | if test "${with_opensc+set}" = set; then | ||
21201 | withval="$with_opensc" | ||
21202 | opensc_config_prefix="$withval" | ||
21203 | else | ||
21204 | opensc_config_prefix="" | ||
21205 | fi; | ||
21206 | if test x$opensc_config_prefix != x ; then | ||
21207 | OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config | ||
21208 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
21209 | set dummy opensc-config; ac_word=$2 | ||
21210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
21211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
21212 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
21213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21214 | else | ||
21215 | case $OPENSC_CONFIG in | ||
21216 | [\\/]* | ?:[\\/]*) | ||
21217 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
21218 | ;; | ||
21219 | *) | ||
21220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21221 | for as_dir in $PATH | ||
21222 | do | ||
21223 | IFS=$as_save_IFS | ||
21224 | test -z "$as_dir" && as_dir=. | ||
21225 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
21226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
21227 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
21228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21229 | break 2 | ||
21230 | fi | ||
21231 | done | ||
21232 | done | ||
21233 | |||
21234 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
21235 | ;; | ||
21236 | esac | ||
21237 | fi | ||
21238 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
21239 | |||
21240 | if test -n "$OPENSC_CONFIG"; then | ||
21241 | echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
21242 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
21243 | else | ||
21244 | echo "$as_me:$LINENO: result: no" >&5 | ||
21245 | echo "${ECHO_T}no" >&6 | ||
21246 | fi | ||
21247 | |||
21248 | if test "$OPENSC_CONFIG" != "no"; then | ||
21249 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
21250 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
21251 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
21252 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
21253 | cat >>confdefs.h <<\_ACEOF | ||
21254 | #define SMARTCARD 1 | ||
21255 | _ACEOF | ||
21256 | |||
21257 | cat >>confdefs.h <<\_ACEOF | ||
21258 | #define USE_OPENSC 1 | ||
21259 | _ACEOF | ||
21260 | |||
21261 | SCARD_MSG="yes, using OpenSC" | ||
21262 | fi | ||
21263 | fi | ||
21264 | |||
21265 | # Check libraries needed by DNS fingerprint support | ||
21266 | echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
21267 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6 | ||
21268 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
21269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21270 | else | ||
21271 | ac_func_search_save_LIBS=$LIBS | ||
21272 | ac_cv_search_getrrsetbyname=no | ||
21273 | cat >conftest.$ac_ext <<_ACEOF | ||
21274 | /* confdefs.h. */ | ||
21275 | _ACEOF | ||
21276 | cat confdefs.h >>conftest.$ac_ext | ||
21277 | cat >>conftest.$ac_ext <<_ACEOF | ||
21278 | /* end confdefs.h. */ | ||
21279 | |||
21280 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21281 | #ifdef __cplusplus | ||
21282 | extern "C" | ||
21283 | #endif | ||
21284 | /* We use char because int might match the return type of a gcc2 | ||
21285 | builtin and then its argument prototype would still apply. */ | ||
21286 | char getrrsetbyname (); | ||
21287 | int | ||
21288 | main () | ||
21289 | { | ||
21290 | getrrsetbyname (); | ||
21291 | ; | ||
21292 | return 0; | ||
21293 | } | ||
21294 | _ACEOF | ||
21295 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21297 | (eval $ac_link) 2>conftest.er1 | ||
21298 | ac_status=$? | ||
21299 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21300 | rm -f conftest.er1 | ||
21301 | cat conftest.err >&5 | ||
21302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21303 | (exit $ac_status); } && | ||
21304 | { ac_try='test -z "$ac_c_werror_flag" | ||
21305 | || test ! -s conftest.err' | ||
21306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21307 | (eval $ac_try) 2>&5 | ||
21308 | ac_status=$? | ||
21309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21310 | (exit $ac_status); }; } && | ||
21311 | { ac_try='test -s conftest$ac_exeext' | ||
21312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21313 | (eval $ac_try) 2>&5 | ||
21314 | ac_status=$? | ||
21315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21316 | (exit $ac_status); }; }; then | ||
21317 | ac_cv_search_getrrsetbyname="none required" | ||
21318 | else | ||
21319 | echo "$as_me: failed program was:" >&5 | ||
21320 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21321 | |||
21322 | fi | ||
21323 | rm -f conftest.err conftest.$ac_objext \ | ||
21324 | conftest$ac_exeext conftest.$ac_ext | ||
21325 | if test "$ac_cv_search_getrrsetbyname" = no; then | ||
21326 | for ac_lib in resolv; do | ||
21327 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
21328 | cat >conftest.$ac_ext <<_ACEOF | ||
21329 | /* confdefs.h. */ | ||
21330 | _ACEOF | ||
21331 | cat confdefs.h >>conftest.$ac_ext | ||
21332 | cat >>conftest.$ac_ext <<_ACEOF | ||
21333 | /* end confdefs.h. */ | ||
21334 | |||
21335 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21336 | #ifdef __cplusplus | ||
21337 | extern "C" | ||
21338 | #endif | ||
21339 | /* We use char because int might match the return type of a gcc2 | ||
21340 | builtin and then its argument prototype would still apply. */ | ||
21341 | char getrrsetbyname (); | ||
21342 | int | ||
21343 | main () | ||
21344 | { | ||
21345 | getrrsetbyname (); | ||
21346 | ; | ||
21347 | return 0; | ||
21348 | } | ||
21349 | _ACEOF | ||
21350 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21352 | (eval $ac_link) 2>conftest.er1 | ||
21353 | ac_status=$? | ||
21354 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21355 | rm -f conftest.er1 | ||
21356 | cat conftest.err >&5 | ||
21357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21358 | (exit $ac_status); } && | ||
21359 | { ac_try='test -z "$ac_c_werror_flag" | ||
21360 | || test ! -s conftest.err' | ||
21361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21362 | (eval $ac_try) 2>&5 | ||
21363 | ac_status=$? | ||
21364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21365 | (exit $ac_status); }; } && | ||
21366 | { ac_try='test -s conftest$ac_exeext' | ||
21367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21368 | (eval $ac_try) 2>&5 | ||
21369 | ac_status=$? | ||
21370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21371 | (exit $ac_status); }; }; then | ||
21372 | ac_cv_search_getrrsetbyname="-l$ac_lib" | ||
21373 | break | ||
21374 | else | ||
21375 | echo "$as_me: failed program was:" >&5 | ||
21376 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21377 | |||
21378 | fi | ||
21379 | rm -f conftest.err conftest.$ac_objext \ | ||
21380 | conftest$ac_exeext conftest.$ac_ext | ||
21381 | done | ||
21382 | fi | ||
21383 | LIBS=$ac_func_search_save_LIBS | ||
21384 | fi | ||
21385 | echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
21386 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6 | ||
21387 | if test "$ac_cv_search_getrrsetbyname" != no; then | ||
21388 | test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS" | ||
21389 | cat >>confdefs.h <<\_ACEOF | ||
21390 | #define HAVE_GETRRSETBYNAME 1 | ||
21391 | _ACEOF | ||
21392 | |||
21393 | else | ||
21394 | |||
21395 | # Needed by our getrrsetbyname() | ||
21396 | echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
21397 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6 | ||
21398 | if test "${ac_cv_search_res_query+set}" = set; then | ||
21399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21400 | else | ||
21401 | ac_func_search_save_LIBS=$LIBS | ||
21402 | ac_cv_search_res_query=no | ||
21403 | cat >conftest.$ac_ext <<_ACEOF | ||
21404 | /* confdefs.h. */ | ||
21405 | _ACEOF | ||
21406 | cat confdefs.h >>conftest.$ac_ext | ||
21407 | cat >>conftest.$ac_ext <<_ACEOF | ||
21408 | /* end confdefs.h. */ | ||
21409 | |||
21410 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21411 | #ifdef __cplusplus | ||
21412 | extern "C" | ||
21413 | #endif | ||
21414 | /* We use char because int might match the return type of a gcc2 | ||
21415 | builtin and then its argument prototype would still apply. */ | ||
21416 | char res_query (); | ||
21417 | int | ||
21418 | main () | ||
21419 | { | ||
21420 | res_query (); | ||
21421 | ; | ||
21422 | return 0; | ||
21423 | } | ||
21424 | _ACEOF | ||
21425 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21427 | (eval $ac_link) 2>conftest.er1 | ||
21428 | ac_status=$? | ||
21429 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21430 | rm -f conftest.er1 | ||
21431 | cat conftest.err >&5 | ||
21432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21433 | (exit $ac_status); } && | ||
21434 | { ac_try='test -z "$ac_c_werror_flag" | ||
21435 | || test ! -s conftest.err' | ||
21436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21437 | (eval $ac_try) 2>&5 | ||
21438 | ac_status=$? | ||
21439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21440 | (exit $ac_status); }; } && | ||
21441 | { ac_try='test -s conftest$ac_exeext' | ||
21442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21443 | (eval $ac_try) 2>&5 | ||
21444 | ac_status=$? | ||
21445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21446 | (exit $ac_status); }; }; then | ||
21447 | ac_cv_search_res_query="none required" | ||
21448 | else | ||
21449 | echo "$as_me: failed program was:" >&5 | ||
21450 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21451 | |||
21452 | fi | ||
21453 | rm -f conftest.err conftest.$ac_objext \ | ||
21454 | conftest$ac_exeext conftest.$ac_ext | ||
21455 | if test "$ac_cv_search_res_query" = no; then | ||
21456 | for ac_lib in resolv; do | ||
21457 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
21458 | cat >conftest.$ac_ext <<_ACEOF | ||
21459 | /* confdefs.h. */ | ||
21460 | _ACEOF | ||
21461 | cat confdefs.h >>conftest.$ac_ext | ||
21462 | cat >>conftest.$ac_ext <<_ACEOF | ||
21463 | /* end confdefs.h. */ | ||
21464 | |||
21465 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21466 | #ifdef __cplusplus | ||
21467 | extern "C" | ||
21468 | #endif | ||
21469 | /* We use char because int might match the return type of a gcc2 | ||
21470 | builtin and then its argument prototype would still apply. */ | ||
21471 | char res_query (); | ||
21472 | int | ||
21473 | main () | ||
21474 | { | ||
21475 | res_query (); | ||
21476 | ; | ||
21477 | return 0; | ||
21478 | } | ||
21479 | _ACEOF | ||
21480 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21482 | (eval $ac_link) 2>conftest.er1 | ||
21483 | ac_status=$? | ||
21484 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21485 | rm -f conftest.er1 | ||
21486 | cat conftest.err >&5 | ||
21487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21488 | (exit $ac_status); } && | ||
21489 | { ac_try='test -z "$ac_c_werror_flag" | ||
21490 | || test ! -s conftest.err' | ||
21491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21492 | (eval $ac_try) 2>&5 | ||
21493 | ac_status=$? | ||
21494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21495 | (exit $ac_status); }; } && | ||
21496 | { ac_try='test -s conftest$ac_exeext' | ||
21497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21498 | (eval $ac_try) 2>&5 | ||
21499 | ac_status=$? | ||
21500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21501 | (exit $ac_status); }; }; then | ||
21502 | ac_cv_search_res_query="-l$ac_lib" | ||
21503 | break | ||
21504 | else | ||
21505 | echo "$as_me: failed program was:" >&5 | ||
21506 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21507 | |||
21508 | fi | ||
21509 | rm -f conftest.err conftest.$ac_objext \ | ||
21510 | conftest$ac_exeext conftest.$ac_ext | ||
21511 | done | ||
21512 | fi | ||
21513 | LIBS=$ac_func_search_save_LIBS | ||
21514 | fi | ||
21515 | echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
21516 | echo "${ECHO_T}$ac_cv_search_res_query" >&6 | ||
21517 | if test "$ac_cv_search_res_query" != no; then | ||
21518 | test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS" | ||
21519 | |||
21520 | fi | ||
21521 | |||
21522 | echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
21523 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
21524 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
21525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21526 | else | ||
21527 | ac_func_search_save_LIBS=$LIBS | ||
21528 | ac_cv_search_dn_expand=no | ||
21529 | cat >conftest.$ac_ext <<_ACEOF | ||
21530 | /* confdefs.h. */ | ||
21531 | _ACEOF | ||
21532 | cat confdefs.h >>conftest.$ac_ext | ||
21533 | cat >>conftest.$ac_ext <<_ACEOF | ||
21534 | /* end confdefs.h. */ | ||
21535 | |||
21536 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21537 | #ifdef __cplusplus | ||
21538 | extern "C" | ||
21539 | #endif | ||
21540 | /* We use char because int might match the return type of a gcc2 | ||
21541 | builtin and then its argument prototype would still apply. */ | ||
21542 | char dn_expand (); | ||
21543 | int | ||
21544 | main () | ||
21545 | { | ||
21546 | dn_expand (); | ||
21547 | ; | ||
21548 | return 0; | ||
21549 | } | ||
21550 | _ACEOF | ||
21551 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21553 | (eval $ac_link) 2>conftest.er1 | ||
21554 | ac_status=$? | ||
21555 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21556 | rm -f conftest.er1 | ||
21557 | cat conftest.err >&5 | ||
21558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21559 | (exit $ac_status); } && | ||
21560 | { ac_try='test -z "$ac_c_werror_flag" | ||
21561 | || test ! -s conftest.err' | ||
21562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21563 | (eval $ac_try) 2>&5 | ||
21564 | ac_status=$? | ||
21565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21566 | (exit $ac_status); }; } && | ||
21567 | { ac_try='test -s conftest$ac_exeext' | ||
21568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21569 | (eval $ac_try) 2>&5 | ||
21570 | ac_status=$? | ||
21571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21572 | (exit $ac_status); }; }; then | ||
21573 | ac_cv_search_dn_expand="none required" | ||
21574 | else | ||
21575 | echo "$as_me: failed program was:" >&5 | ||
21576 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21577 | |||
21578 | fi | ||
21579 | rm -f conftest.err conftest.$ac_objext \ | ||
21580 | conftest$ac_exeext conftest.$ac_ext | ||
21581 | if test "$ac_cv_search_dn_expand" = no; then | ||
21582 | for ac_lib in resolv; do | ||
21583 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
21584 | cat >conftest.$ac_ext <<_ACEOF | ||
21585 | /* confdefs.h. */ | ||
21586 | _ACEOF | ||
21587 | cat confdefs.h >>conftest.$ac_ext | ||
21588 | cat >>conftest.$ac_ext <<_ACEOF | ||
21589 | /* end confdefs.h. */ | ||
21590 | |||
21591 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21592 | #ifdef __cplusplus | ||
21593 | extern "C" | ||
21594 | #endif | ||
21595 | /* We use char because int might match the return type of a gcc2 | ||
21596 | builtin and then its argument prototype would still apply. */ | ||
21597 | char dn_expand (); | ||
21598 | int | ||
21599 | main () | ||
21600 | { | ||
21601 | dn_expand (); | ||
21602 | ; | ||
21603 | return 0; | ||
21604 | } | ||
21605 | _ACEOF | ||
21606 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21608 | (eval $ac_link) 2>conftest.er1 | ||
21609 | ac_status=$? | ||
21610 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21611 | rm -f conftest.er1 | ||
21612 | cat conftest.err >&5 | ||
21613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21614 | (exit $ac_status); } && | ||
21615 | { ac_try='test -z "$ac_c_werror_flag" | ||
21616 | || test ! -s conftest.err' | ||
21617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21618 | (eval $ac_try) 2>&5 | ||
21619 | ac_status=$? | ||
21620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21621 | (exit $ac_status); }; } && | ||
21622 | { ac_try='test -s conftest$ac_exeext' | ||
21623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21624 | (eval $ac_try) 2>&5 | ||
21625 | ac_status=$? | ||
21626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21627 | (exit $ac_status); }; }; then | ||
21628 | ac_cv_search_dn_expand="-l$ac_lib" | ||
21629 | break | ||
21630 | else | ||
21631 | echo "$as_me: failed program was:" >&5 | ||
21632 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21633 | |||
21634 | fi | ||
21635 | rm -f conftest.err conftest.$ac_objext \ | ||
21636 | conftest$ac_exeext conftest.$ac_ext | ||
21637 | done | ||
21638 | fi | ||
21639 | LIBS=$ac_func_search_save_LIBS | ||
21640 | fi | ||
21641 | echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
21642 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
21643 | if test "$ac_cv_search_dn_expand" != no; then | ||
21644 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
21645 | |||
21646 | fi | ||
21647 | |||
21648 | echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
21649 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6 | ||
21650 | cat >conftest.$ac_ext <<_ACEOF | ||
21651 | /* confdefs.h. */ | ||
21652 | _ACEOF | ||
21653 | cat confdefs.h >>conftest.$ac_ext | ||
21654 | cat >>conftest.$ac_ext <<_ACEOF | ||
21655 | /* end confdefs.h. */ | ||
21656 | |||
21657 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21658 | #ifdef __cplusplus | ||
21659 | extern "C" | ||
21660 | #endif | ||
21661 | /* We use char because int might match the return type of a gcc2 | ||
21662 | builtin and then its argument prototype would still apply. */ | ||
21663 | char res_query (); | ||
21664 | int | ||
21665 | main () | ||
21666 | { | ||
21667 | res_query (); | ||
21668 | ; | ||
21669 | return 0; | ||
21670 | } | ||
21671 | _ACEOF | ||
21672 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21674 | (eval $ac_link) 2>conftest.er1 | ||
21675 | ac_status=$? | ||
21676 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21677 | rm -f conftest.er1 | ||
21678 | cat conftest.err >&5 | ||
21679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21680 | (exit $ac_status); } && | ||
21681 | { ac_try='test -z "$ac_c_werror_flag" | ||
21682 | || test ! -s conftest.err' | ||
21683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21684 | (eval $ac_try) 2>&5 | ||
21685 | ac_status=$? | ||
21686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21687 | (exit $ac_status); }; } && | ||
21688 | { ac_try='test -s conftest$ac_exeext' | ||
21689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21690 | (eval $ac_try) 2>&5 | ||
21691 | ac_status=$? | ||
21692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21693 | (exit $ac_status); }; }; then | ||
21694 | echo "$as_me:$LINENO: result: yes" >&5 | ||
21695 | echo "${ECHO_T}yes" >&6 | ||
21696 | else | ||
21697 | echo "$as_me: failed program was:" >&5 | ||
21698 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21699 | |||
21700 | echo "$as_me:$LINENO: result: no" >&5 | ||
21701 | echo "${ECHO_T}no" >&6 | ||
21702 | saved_LIBS="$LIBS" | ||
21703 | LIBS="$LIBS -lresolv" | ||
21704 | echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
21705 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6 | ||
21706 | cat >conftest.$ac_ext <<_ACEOF | ||
21707 | |||
21708 | #include <resolv.h> | ||
21709 | int main() | ||
21710 | { | ||
21711 | res_query (0, 0, 0, 0, 0); | ||
21712 | return 0; | ||
21713 | } | ||
21714 | |||
21715 | _ACEOF | ||
21716 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21718 | (eval $ac_link) 2>conftest.er1 | ||
21719 | ac_status=$? | ||
21720 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21721 | rm -f conftest.er1 | ||
21722 | cat conftest.err >&5 | ||
21723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21724 | (exit $ac_status); } && | ||
21725 | { ac_try='test -z "$ac_c_werror_flag" | ||
21726 | || test ! -s conftest.err' | ||
21727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21728 | (eval $ac_try) 2>&5 | ||
21729 | ac_status=$? | ||
21730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21731 | (exit $ac_status); }; } && | ||
21732 | { ac_try='test -s conftest$ac_exeext' | ||
21733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21734 | (eval $ac_try) 2>&5 | ||
21735 | ac_status=$? | ||
21736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21737 | (exit $ac_status); }; }; then | ||
21738 | LIBS="$LIBS -lresolv" | ||
21739 | echo "$as_me:$LINENO: result: yes" >&5 | ||
21740 | echo "${ECHO_T}yes" >&6 | ||
21741 | else | ||
21742 | echo "$as_me: failed program was:" >&5 | ||
21743 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21744 | |||
21745 | LIBS="$saved_LIBS" | ||
21746 | echo "$as_me:$LINENO: result: no" >&5 | ||
21747 | echo "${ECHO_T}no" >&6 | ||
21748 | fi | ||
21749 | rm -f conftest.err conftest.$ac_objext \ | ||
21750 | conftest$ac_exeext conftest.$ac_ext | ||
21751 | |||
21752 | fi | ||
21753 | rm -f conftest.err conftest.$ac_objext \ | ||
21754 | conftest$ac_exeext conftest.$ac_ext | ||
21755 | |||
21756 | |||
21757 | for ac_func in _getshort _getlong | ||
21758 | do | ||
21759 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21760 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21761 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
21762 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
21763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21764 | else | ||
21765 | cat >conftest.$ac_ext <<_ACEOF | ||
21766 | /* confdefs.h. */ | ||
21767 | _ACEOF | ||
21768 | cat confdefs.h >>conftest.$ac_ext | ||
21769 | cat >>conftest.$ac_ext <<_ACEOF | ||
21770 | /* end confdefs.h. */ | ||
21771 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21772 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21773 | #define $ac_func innocuous_$ac_func | ||
21774 | |||
21775 | /* System header to define __stub macros and hopefully few prototypes, | ||
21776 | which can conflict with char $ac_func (); below. | ||
21777 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21778 | <limits.h> exists even on freestanding compilers. */ | ||
21779 | |||
21780 | #ifdef __STDC__ | ||
21781 | # include <limits.h> | ||
21782 | #else | ||
21783 | # include <assert.h> | ||
21784 | #endif | ||
21785 | |||
21786 | #undef $ac_func | ||
21787 | |||
21788 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21789 | #ifdef __cplusplus | ||
21790 | extern "C" | ||
21791 | { | ||
21792 | #endif | ||
21793 | /* We use char because int might match the return type of a gcc2 | ||
21794 | builtin and then its argument prototype would still apply. */ | ||
21795 | char $ac_func (); | ||
21796 | /* The GNU C library defines this for functions which it implements | ||
21797 | to always fail with ENOSYS. Some functions are actually named | ||
21798 | something starting with __ and the normal name is an alias. */ | ||
21799 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
21800 | choke me | ||
21801 | #else | ||
21802 | char (*f) () = $ac_func; | ||
21803 | #endif | ||
21804 | #ifdef __cplusplus | ||
21805 | } | ||
21806 | #endif | ||
21807 | |||
21808 | int | ||
21809 | main () | ||
21810 | { | ||
21811 | return f != $ac_func; | ||
21812 | ; | ||
21813 | return 0; | ||
21814 | } | ||
21815 | _ACEOF | ||
21816 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21818 | (eval $ac_link) 2>conftest.er1 | ||
21819 | ac_status=$? | ||
21820 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21821 | rm -f conftest.er1 | ||
21822 | cat conftest.err >&5 | ||
21823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21824 | (exit $ac_status); } && | ||
21825 | { ac_try='test -z "$ac_c_werror_flag" | ||
21826 | || test ! -s conftest.err' | ||
21827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21828 | (eval $ac_try) 2>&5 | ||
21829 | ac_status=$? | ||
21830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21831 | (exit $ac_status); }; } && | ||
21832 | { ac_try='test -s conftest$ac_exeext' | ||
21833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21834 | (eval $ac_try) 2>&5 | ||
21835 | ac_status=$? | ||
21836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21837 | (exit $ac_status); }; }; then | ||
21838 | eval "$as_ac_var=yes" | ||
21839 | else | ||
21840 | echo "$as_me: failed program was:" >&5 | ||
21841 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21842 | |||
21843 | eval "$as_ac_var=no" | ||
21844 | fi | ||
21845 | rm -f conftest.err conftest.$ac_objext \ | ||
21846 | conftest$ac_exeext conftest.$ac_ext | ||
21847 | fi | ||
21848 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
21849 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
21850 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
21851 | cat >>confdefs.h <<_ACEOF | ||
21852 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
21853 | _ACEOF | ||
21854 | |||
21855 | fi | ||
21856 | done | ||
21857 | |||
21858 | echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
21859 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6 | ||
21860 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
21861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21862 | else | ||
21863 | cat >conftest.$ac_ext <<_ACEOF | ||
21864 | /* confdefs.h. */ | ||
21865 | _ACEOF | ||
21866 | cat confdefs.h >>conftest.$ac_ext | ||
21867 | cat >>conftest.$ac_ext <<_ACEOF | ||
21868 | /* end confdefs.h. */ | ||
21869 | #include <arpa/nameser.h> | ||
21870 | |||
21871 | int | ||
21872 | main () | ||
21873 | { | ||
21874 | static HEADER ac_aggr; | ||
21875 | if (ac_aggr.ad) | ||
21876 | return 0; | ||
21877 | ; | ||
21878 | return 0; | ||
21879 | } | ||
21880 | _ACEOF | ||
21881 | rm -f conftest.$ac_objext | ||
21882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21883 | (eval $ac_compile) 2>conftest.er1 | ||
21884 | ac_status=$? | ||
21885 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21886 | rm -f conftest.er1 | ||
21887 | cat conftest.err >&5 | ||
21888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21889 | (exit $ac_status); } && | ||
21890 | { ac_try='test -z "$ac_c_werror_flag" | ||
21891 | || test ! -s conftest.err' | ||
21892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21893 | (eval $ac_try) 2>&5 | ||
21894 | ac_status=$? | ||
21895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21896 | (exit $ac_status); }; } && | ||
21897 | { ac_try='test -s conftest.$ac_objext' | ||
21898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21899 | (eval $ac_try) 2>&5 | ||
21900 | ac_status=$? | ||
21901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21902 | (exit $ac_status); }; }; then | ||
21903 | ac_cv_member_HEADER_ad=yes | ||
21904 | else | ||
21905 | echo "$as_me: failed program was:" >&5 | ||
21906 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21907 | |||
21908 | cat >conftest.$ac_ext <<_ACEOF | ||
21909 | /* confdefs.h. */ | ||
21910 | _ACEOF | ||
21911 | cat confdefs.h >>conftest.$ac_ext | ||
21912 | cat >>conftest.$ac_ext <<_ACEOF | ||
21913 | /* end confdefs.h. */ | ||
21914 | #include <arpa/nameser.h> | ||
21915 | |||
21916 | int | ||
21917 | main () | ||
21918 | { | ||
21919 | static HEADER ac_aggr; | ||
21920 | if (sizeof ac_aggr.ad) | ||
21921 | return 0; | ||
21922 | ; | ||
21923 | return 0; | ||
21924 | } | ||
21925 | _ACEOF | ||
21926 | rm -f conftest.$ac_objext | ||
21927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21928 | (eval $ac_compile) 2>conftest.er1 | ||
21929 | ac_status=$? | ||
21930 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21931 | rm -f conftest.er1 | ||
21932 | cat conftest.err >&5 | ||
21933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21934 | (exit $ac_status); } && | ||
21935 | { ac_try='test -z "$ac_c_werror_flag" | ||
21936 | || test ! -s conftest.err' | ||
21937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21938 | (eval $ac_try) 2>&5 | ||
21939 | ac_status=$? | ||
21940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21941 | (exit $ac_status); }; } && | ||
21942 | { ac_try='test -s conftest.$ac_objext' | ||
21943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21944 | (eval $ac_try) 2>&5 | ||
21945 | ac_status=$? | ||
21946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21947 | (exit $ac_status); }; }; then | ||
21948 | ac_cv_member_HEADER_ad=yes | ||
21949 | else | ||
21950 | echo "$as_me: failed program was:" >&5 | ||
21951 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21952 | |||
21953 | ac_cv_member_HEADER_ad=no | ||
21954 | fi | ||
21955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21956 | fi | ||
21957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21958 | fi | ||
21959 | echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
21960 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6 | ||
21961 | if test $ac_cv_member_HEADER_ad = yes; then | ||
21962 | cat >>confdefs.h <<\_ACEOF | ||
21963 | #define HAVE_HEADER_AD 1 | ||
21964 | _ACEOF | ||
21965 | |||
21966 | fi | ||
21967 | |||
21968 | |||
21969 | fi | ||
21970 | |||
21971 | |||
21972 | # Check whether user wants Kerberos 5 support | ||
21973 | KRB5_MSG="no" | ||
21974 | |||
21975 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
21976 | if test "${with_kerberos5+set}" = set; then | ||
21977 | withval="$with_kerberos5" | ||
21978 | if test "x$withval" != "xno" ; then | ||
21979 | if test "x$withval" = "xyes" ; then | ||
21980 | KRB5ROOT="/usr/local" | ||
21981 | else | ||
21982 | KRB5ROOT=${withval} | ||
21983 | fi | ||
21984 | |||
21985 | cat >>confdefs.h <<\_ACEOF | ||
21986 | #define KRB5 1 | ||
21987 | _ACEOF | ||
21988 | |||
21989 | KRB5_MSG="yes" | ||
21990 | |||
21991 | echo "$as_me:$LINENO: checking for krb5-config" >&5 | ||
21992 | echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6 | ||
21993 | if test -x $KRB5ROOT/bin/krb5-config ; then | ||
21994 | KRB5CONF=$KRB5ROOT/bin/krb5-config | ||
21995 | echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
21996 | echo "${ECHO_T}$KRB5CONF" >&6 | ||
21997 | |||
21998 | echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
21999 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6 | ||
22000 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
22001 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22002 | echo "${ECHO_T}yes" >&6 | ||
22003 | cat >>confdefs.h <<\_ACEOF | ||
22004 | #define GSSAPI 1 | ||
22005 | _ACEOF | ||
22006 | |||
22007 | k5confopts=gssapi | ||
22008 | else | ||
22009 | echo "$as_me:$LINENO: result: no" >&5 | ||
22010 | echo "${ECHO_T}no" >&6 | ||
22011 | k5confopts="" | ||
22012 | fi | ||
22013 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
22014 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
22015 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
22016 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
22017 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
22018 | cat >conftest.$ac_ext <<_ACEOF | ||
22019 | /* confdefs.h. */ | ||
22020 | _ACEOF | ||
22021 | cat confdefs.h >>conftest.$ac_ext | ||
22022 | cat >>conftest.$ac_ext <<_ACEOF | ||
22023 | /* end confdefs.h. */ | ||
22024 | #include <krb5.h> | ||
22025 | int | ||
22026 | main () | ||
22027 | { | ||
22028 | char *tmp = heimdal_version; | ||
22029 | ; | ||
22030 | return 0; | ||
22031 | } | ||
22032 | _ACEOF | ||
22033 | rm -f conftest.$ac_objext | ||
22034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22035 | (eval $ac_compile) 2>conftest.er1 | ||
22036 | ac_status=$? | ||
22037 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22038 | rm -f conftest.er1 | ||
22039 | cat conftest.err >&5 | ||
22040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22041 | (exit $ac_status); } && | ||
22042 | { ac_try='test -z "$ac_c_werror_flag" | ||
22043 | || test ! -s conftest.err' | ||
22044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22045 | (eval $ac_try) 2>&5 | ||
22046 | ac_status=$? | ||
22047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22048 | (exit $ac_status); }; } && | ||
22049 | { ac_try='test -s conftest.$ac_objext' | ||
22050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22051 | (eval $ac_try) 2>&5 | ||
22052 | ac_status=$? | ||
22053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22054 | (exit $ac_status); }; }; then | ||
22055 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22056 | echo "${ECHO_T}yes" >&6 | ||
22057 | cat >>confdefs.h <<\_ACEOF | ||
22058 | #define HEIMDAL 1 | ||
22059 | _ACEOF | ||
22060 | |||
22061 | else | ||
22062 | echo "$as_me: failed program was:" >&5 | ||
22063 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22064 | |||
22065 | echo "$as_me:$LINENO: result: no" >&5 | ||
22066 | echo "${ECHO_T}no" >&6 | ||
22067 | |||
22068 | fi | ||
22069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22070 | else | ||
22071 | echo "$as_me:$LINENO: result: no" >&5 | ||
22072 | echo "${ECHO_T}no" >&6 | ||
22073 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
22074 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
22075 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
22076 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
22077 | cat >conftest.$ac_ext <<_ACEOF | ||
22078 | /* confdefs.h. */ | ||
22079 | _ACEOF | ||
22080 | cat confdefs.h >>conftest.$ac_ext | ||
22081 | cat >>conftest.$ac_ext <<_ACEOF | ||
22082 | /* end confdefs.h. */ | ||
22083 | #include <krb5.h> | ||
22084 | int | ||
22085 | main () | ||
22086 | { | ||
22087 | char *tmp = heimdal_version; | ||
22088 | ; | ||
22089 | return 0; | ||
22090 | } | ||
22091 | _ACEOF | ||
22092 | rm -f conftest.$ac_objext | ||
22093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22094 | (eval $ac_compile) 2>conftest.er1 | ||
22095 | ac_status=$? | ||
22096 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22097 | rm -f conftest.er1 | ||
22098 | cat conftest.err >&5 | ||
22099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22100 | (exit $ac_status); } && | ||
22101 | { ac_try='test -z "$ac_c_werror_flag" | ||
22102 | || test ! -s conftest.err' | ||
22103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22104 | (eval $ac_try) 2>&5 | ||
22105 | ac_status=$? | ||
22106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22107 | (exit $ac_status); }; } && | ||
22108 | { ac_try='test -s conftest.$ac_objext' | ||
22109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22110 | (eval $ac_try) 2>&5 | ||
22111 | ac_status=$? | ||
22112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22113 | (exit $ac_status); }; }; then | ||
22114 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22115 | echo "${ECHO_T}yes" >&6 | ||
22116 | cat >>confdefs.h <<\_ACEOF | ||
22117 | #define HEIMDAL 1 | ||
22118 | _ACEOF | ||
22119 | |||
22120 | K5LIBS="-lkrb5 -ldes" | ||
22121 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
22122 | echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
22123 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6 | ||
22124 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
22125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22126 | else | ||
22127 | ac_check_lib_save_LIBS=$LIBS | ||
22128 | LIBS="-lroken $LIBS" | ||
22129 | cat >conftest.$ac_ext <<_ACEOF | ||
22130 | /* confdefs.h. */ | ||
22131 | _ACEOF | ||
22132 | cat confdefs.h >>conftest.$ac_ext | ||
22133 | cat >>conftest.$ac_ext <<_ACEOF | ||
22134 | /* end confdefs.h. */ | ||
22135 | |||
22136 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22137 | #ifdef __cplusplus | ||
22138 | extern "C" | ||
22139 | #endif | ||
22140 | /* We use char because int might match the return type of a gcc2 | ||
22141 | builtin and then its argument prototype would still apply. */ | ||
22142 | char net_write (); | ||
22143 | int | ||
22144 | main () | ||
22145 | { | ||
22146 | net_write (); | ||
22147 | ; | ||
22148 | return 0; | ||
22149 | } | ||
22150 | _ACEOF | ||
22151 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22153 | (eval $ac_link) 2>conftest.er1 | ||
22154 | ac_status=$? | ||
22155 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22156 | rm -f conftest.er1 | ||
22157 | cat conftest.err >&5 | ||
22158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22159 | (exit $ac_status); } && | ||
22160 | { ac_try='test -z "$ac_c_werror_flag" | ||
22161 | || test ! -s conftest.err' | ||
22162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22163 | (eval $ac_try) 2>&5 | ||
22164 | ac_status=$? | ||
22165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22166 | (exit $ac_status); }; } && | ||
22167 | { ac_try='test -s conftest$ac_exeext' | ||
22168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22169 | (eval $ac_try) 2>&5 | ||
22170 | ac_status=$? | ||
22171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22172 | (exit $ac_status); }; }; then | ||
22173 | ac_cv_lib_roken_net_write=yes | ||
22174 | else | ||
22175 | echo "$as_me: failed program was:" >&5 | ||
22176 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22177 | |||
22178 | ac_cv_lib_roken_net_write=no | ||
22179 | fi | ||
22180 | rm -f conftest.err conftest.$ac_objext \ | ||
22181 | conftest$ac_exeext conftest.$ac_ext | ||
22182 | LIBS=$ac_check_lib_save_LIBS | ||
22183 | fi | ||
22184 | echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
22185 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6 | ||
22186 | if test $ac_cv_lib_roken_net_write = yes; then | ||
22187 | K5LIBS="$K5LIBS -lroken" | ||
22188 | fi | ||
22189 | |||
22190 | |||
22191 | else | ||
22192 | echo "$as_me: failed program was:" >&5 | ||
22193 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22194 | |||
22195 | echo "$as_me:$LINENO: result: no" >&5 | ||
22196 | echo "${ECHO_T}no" >&6 | ||
22197 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
22198 | |||
22199 | |||
22200 | fi | ||
22201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22202 | echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
22203 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
22204 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
22205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22206 | else | ||
22207 | ac_func_search_save_LIBS=$LIBS | ||
22208 | ac_cv_search_dn_expand=no | ||
22209 | cat >conftest.$ac_ext <<_ACEOF | ||
22210 | /* confdefs.h. */ | ||
22211 | _ACEOF | ||
22212 | cat confdefs.h >>conftest.$ac_ext | ||
22213 | cat >>conftest.$ac_ext <<_ACEOF | ||
22214 | /* end confdefs.h. */ | ||
22215 | |||
22216 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22217 | #ifdef __cplusplus | ||
22218 | extern "C" | ||
22219 | #endif | ||
22220 | /* We use char because int might match the return type of a gcc2 | ||
22221 | builtin and then its argument prototype would still apply. */ | ||
22222 | char dn_expand (); | ||
22223 | int | ||
22224 | main () | ||
22225 | { | ||
22226 | dn_expand (); | ||
22227 | ; | ||
22228 | return 0; | ||
22229 | } | ||
22230 | _ACEOF | ||
22231 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22233 | (eval $ac_link) 2>conftest.er1 | ||
22234 | ac_status=$? | ||
22235 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22236 | rm -f conftest.er1 | ||
22237 | cat conftest.err >&5 | ||
22238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22239 | (exit $ac_status); } && | ||
22240 | { ac_try='test -z "$ac_c_werror_flag" | ||
22241 | || test ! -s conftest.err' | ||
22242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22243 | (eval $ac_try) 2>&5 | ||
22244 | ac_status=$? | ||
22245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22246 | (exit $ac_status); }; } && | ||
22247 | { ac_try='test -s conftest$ac_exeext' | ||
22248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22249 | (eval $ac_try) 2>&5 | ||
22250 | ac_status=$? | ||
22251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22252 | (exit $ac_status); }; }; then | ||
22253 | ac_cv_search_dn_expand="none required" | ||
22254 | else | ||
22255 | echo "$as_me: failed program was:" >&5 | ||
22256 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22257 | |||
22258 | fi | ||
22259 | rm -f conftest.err conftest.$ac_objext \ | ||
22260 | conftest$ac_exeext conftest.$ac_ext | ||
22261 | if test "$ac_cv_search_dn_expand" = no; then | ||
22262 | for ac_lib in resolv; do | ||
22263 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
22264 | cat >conftest.$ac_ext <<_ACEOF | ||
22265 | /* confdefs.h. */ | ||
22266 | _ACEOF | ||
22267 | cat confdefs.h >>conftest.$ac_ext | ||
22268 | cat >>conftest.$ac_ext <<_ACEOF | ||
22269 | /* end confdefs.h. */ | ||
22270 | |||
22271 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22272 | #ifdef __cplusplus | ||
22273 | extern "C" | ||
22274 | #endif | ||
22275 | /* We use char because int might match the return type of a gcc2 | ||
22276 | builtin and then its argument prototype would still apply. */ | ||
22277 | char dn_expand (); | ||
22278 | int | ||
22279 | main () | ||
22280 | { | ||
22281 | dn_expand (); | ||
22282 | ; | ||
22283 | return 0; | ||
22284 | } | ||
22285 | _ACEOF | ||
22286 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22288 | (eval $ac_link) 2>conftest.er1 | ||
22289 | ac_status=$? | ||
22290 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22291 | rm -f conftest.er1 | ||
22292 | cat conftest.err >&5 | ||
22293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22294 | (exit $ac_status); } && | ||
22295 | { ac_try='test -z "$ac_c_werror_flag" | ||
22296 | || test ! -s conftest.err' | ||
22297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22298 | (eval $ac_try) 2>&5 | ||
22299 | ac_status=$? | ||
22300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22301 | (exit $ac_status); }; } && | ||
22302 | { ac_try='test -s conftest$ac_exeext' | ||
22303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22304 | (eval $ac_try) 2>&5 | ||
22305 | ac_status=$? | ||
22306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22307 | (exit $ac_status); }; }; then | ||
22308 | ac_cv_search_dn_expand="-l$ac_lib" | ||
22309 | break | ||
22310 | else | ||
22311 | echo "$as_me: failed program was:" >&5 | ||
22312 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22313 | |||
22314 | fi | ||
22315 | rm -f conftest.err conftest.$ac_objext \ | ||
22316 | conftest$ac_exeext conftest.$ac_ext | ||
22317 | done | ||
22318 | fi | ||
22319 | LIBS=$ac_func_search_save_LIBS | ||
22320 | fi | ||
22321 | echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
22322 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
22323 | if test "$ac_cv_search_dn_expand" != no; then | ||
22324 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
22325 | |||
22326 | fi | ||
22327 | |||
22328 | |||
22329 | echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
22330 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6 | ||
22331 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
22332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22333 | else | ||
22334 | ac_check_lib_save_LIBS=$LIBS | ||
22335 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
22336 | cat >conftest.$ac_ext <<_ACEOF | ||
22337 | /* confdefs.h. */ | ||
22338 | _ACEOF | ||
22339 | cat confdefs.h >>conftest.$ac_ext | ||
22340 | cat >>conftest.$ac_ext <<_ACEOF | ||
22341 | /* end confdefs.h. */ | ||
22342 | |||
22343 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22344 | #ifdef __cplusplus | ||
22345 | extern "C" | ||
22346 | #endif | ||
22347 | /* We use char because int might match the return type of a gcc2 | ||
22348 | builtin and then its argument prototype would still apply. */ | ||
22349 | char gss_init_sec_context (); | ||
22350 | int | ||
22351 | main () | ||
22352 | { | ||
22353 | gss_init_sec_context (); | ||
22354 | ; | ||
22355 | return 0; | ||
22356 | } | ||
22357 | _ACEOF | ||
22358 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22360 | (eval $ac_link) 2>conftest.er1 | ||
22361 | ac_status=$? | ||
22362 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22363 | rm -f conftest.er1 | ||
22364 | cat conftest.err >&5 | ||
22365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22366 | (exit $ac_status); } && | ||
22367 | { ac_try='test -z "$ac_c_werror_flag" | ||
22368 | || test ! -s conftest.err' | ||
22369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22370 | (eval $ac_try) 2>&5 | ||
22371 | ac_status=$? | ||
22372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22373 | (exit $ac_status); }; } && | ||
22374 | { ac_try='test -s conftest$ac_exeext' | ||
22375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22376 | (eval $ac_try) 2>&5 | ||
22377 | ac_status=$? | ||
22378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22379 | (exit $ac_status); }; }; then | ||
22380 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
22381 | else | ||
22382 | echo "$as_me: failed program was:" >&5 | ||
22383 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22384 | |||
22385 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
22386 | fi | ||
22387 | rm -f conftest.err conftest.$ac_objext \ | ||
22388 | conftest$ac_exeext conftest.$ac_ext | ||
22389 | LIBS=$ac_check_lib_save_LIBS | ||
22390 | fi | ||
22391 | echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
22392 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6 | ||
22393 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
22394 | cat >>confdefs.h <<\_ACEOF | ||
22395 | #define GSSAPI 1 | ||
22396 | _ACEOF | ||
22397 | |||
22398 | K5LIBS="-lgssapi $K5LIBS" | ||
22399 | else | ||
22400 | echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
22401 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6 | ||
22402 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
22403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22404 | else | ||
22405 | ac_check_lib_save_LIBS=$LIBS | ||
22406 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
22407 | cat >conftest.$ac_ext <<_ACEOF | ||
22408 | /* confdefs.h. */ | ||
22409 | _ACEOF | ||
22410 | cat confdefs.h >>conftest.$ac_ext | ||
22411 | cat >>conftest.$ac_ext <<_ACEOF | ||
22412 | /* end confdefs.h. */ | ||
22413 | |||
22414 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22415 | #ifdef __cplusplus | ||
22416 | extern "C" | ||
22417 | #endif | ||
22418 | /* We use char because int might match the return type of a gcc2 | ||
22419 | builtin and then its argument prototype would still apply. */ | ||
22420 | char gss_init_sec_context (); | ||
22421 | int | ||
22422 | main () | ||
22423 | { | ||
22424 | gss_init_sec_context (); | ||
22425 | ; | ||
22426 | return 0; | ||
22427 | } | ||
22428 | _ACEOF | ||
22429 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22431 | (eval $ac_link) 2>conftest.er1 | ||
22432 | ac_status=$? | ||
22433 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22434 | rm -f conftest.er1 | ||
22435 | cat conftest.err >&5 | ||
22436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22437 | (exit $ac_status); } && | ||
22438 | { ac_try='test -z "$ac_c_werror_flag" | ||
22439 | || test ! -s conftest.err' | ||
22440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22441 | (eval $ac_try) 2>&5 | ||
22442 | ac_status=$? | ||
22443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22444 | (exit $ac_status); }; } && | ||
22445 | { ac_try='test -s conftest$ac_exeext' | ||
22446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22447 | (eval $ac_try) 2>&5 | ||
22448 | ac_status=$? | ||
22449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22450 | (exit $ac_status); }; }; then | ||
22451 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
22452 | else | ||
22453 | echo "$as_me: failed program was:" >&5 | ||
22454 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22455 | |||
22456 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
22457 | fi | ||
22458 | rm -f conftest.err conftest.$ac_objext \ | ||
22459 | conftest$ac_exeext conftest.$ac_ext | ||
22460 | LIBS=$ac_check_lib_save_LIBS | ||
22461 | fi | ||
22462 | echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
22463 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6 | ||
22464 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
22465 | cat >>confdefs.h <<\_ACEOF | ||
22466 | #define GSSAPI 1 | ||
22467 | _ACEOF | ||
22468 | |||
22469 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
22470 | else | ||
22471 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
22472 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
22473 | fi | ||
22474 | |||
22475 | |||
22476 | fi | ||
22477 | |||
22478 | |||
22479 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
22480 | echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
22481 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
22482 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
22483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22484 | fi | ||
22485 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
22486 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
22487 | else | ||
22488 | # Is the header compilable? | ||
22489 | echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
22490 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6 | ||
22491 | cat >conftest.$ac_ext <<_ACEOF | ||
22492 | /* confdefs.h. */ | ||
22493 | _ACEOF | ||
22494 | cat confdefs.h >>conftest.$ac_ext | ||
22495 | cat >>conftest.$ac_ext <<_ACEOF | ||
22496 | /* end confdefs.h. */ | ||
22497 | $ac_includes_default | ||
22498 | #include <gssapi.h> | ||
22499 | _ACEOF | ||
22500 | rm -f conftest.$ac_objext | ||
22501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22502 | (eval $ac_compile) 2>conftest.er1 | ||
22503 | ac_status=$? | ||
22504 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22505 | rm -f conftest.er1 | ||
22506 | cat conftest.err >&5 | ||
22507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22508 | (exit $ac_status); } && | ||
22509 | { ac_try='test -z "$ac_c_werror_flag" | ||
22510 | || test ! -s conftest.err' | ||
22511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22512 | (eval $ac_try) 2>&5 | ||
22513 | ac_status=$? | ||
22514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22515 | (exit $ac_status); }; } && | ||
22516 | { ac_try='test -s conftest.$ac_objext' | ||
22517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22518 | (eval $ac_try) 2>&5 | ||
22519 | ac_status=$? | ||
22520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22521 | (exit $ac_status); }; }; then | ||
22522 | ac_header_compiler=yes | ||
22523 | else | ||
22524 | echo "$as_me: failed program was:" >&5 | ||
22525 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22526 | |||
22527 | ac_header_compiler=no | ||
22528 | fi | ||
22529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22530 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22531 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
22532 | |||
22533 | # Is the header present? | ||
22534 | echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
22535 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6 | ||
22536 | cat >conftest.$ac_ext <<_ACEOF | ||
22537 | /* confdefs.h. */ | ||
22538 | _ACEOF | ||
22539 | cat confdefs.h >>conftest.$ac_ext | ||
22540 | cat >>conftest.$ac_ext <<_ACEOF | ||
22541 | /* end confdefs.h. */ | ||
22542 | #include <gssapi.h> | ||
22543 | _ACEOF | ||
22544 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
22545 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
22546 | ac_status=$? | ||
22547 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22548 | rm -f conftest.er1 | ||
22549 | cat conftest.err >&5 | ||
22550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22551 | (exit $ac_status); } >/dev/null; then | ||
22552 | if test -s conftest.err; then | ||
22553 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22554 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22555 | else | ||
22556 | ac_cpp_err= | ||
22557 | fi | ||
22558 | else | ||
22559 | ac_cpp_err=yes | ||
22560 | fi | ||
22561 | if test -z "$ac_cpp_err"; then | ||
22562 | ac_header_preproc=yes | ||
22563 | else | ||
22564 | echo "$as_me: failed program was:" >&5 | ||
22565 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22566 | |||
22567 | ac_header_preproc=no | ||
22568 | fi | ||
22569 | rm -f conftest.err conftest.$ac_ext | ||
22570 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22571 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
22572 | |||
22573 | # So? What about this header? | ||
22574 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22575 | yes:no: ) | ||
22576 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22577 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22578 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
22579 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
22580 | ac_header_preproc=yes | ||
22581 | ;; | ||
22582 | no:yes:* ) | ||
22583 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
22584 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
22585 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
22586 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
22587 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
22588 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
22589 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
22590 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22591 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
22592 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
22593 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
22594 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
22595 | ( | ||
22596 | cat <<\_ASBOX | ||
22597 | ## ---------------------------------- ## | ||
22598 | ## Report this to the OpenSSH lists. ## | ||
22599 | ## ---------------------------------- ## | ||
22600 | _ASBOX | ||
22601 | ) | | ||
22602 | sed "s/^/$as_me: WARNING: /" >&2 | ||
22603 | ;; | ||
22604 | esac | ||
22605 | echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
22606 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
22607 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
22608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22609 | else | ||
22610 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
22611 | fi | ||
22612 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
22613 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
22614 | |||
22615 | fi | ||
22616 | if test $ac_cv_header_gssapi_h = yes; then | ||
22617 | : | ||
22618 | else | ||
22619 | unset ac_cv_header_gssapi_h | ||
22620 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
22621 | |||
22622 | for ac_header in gssapi.h | ||
22623 | do | ||
22624 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
22625 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22626 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22630 | fi | ||
22631 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22632 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22633 | else | ||
22634 | # Is the header compilable? | ||
22635 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
22636 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
22637 | cat >conftest.$ac_ext <<_ACEOF | ||
22638 | /* confdefs.h. */ | ||
22639 | _ACEOF | ||
22640 | cat confdefs.h >>conftest.$ac_ext | ||
22641 | cat >>conftest.$ac_ext <<_ACEOF | ||
22642 | /* end confdefs.h. */ | ||
22643 | $ac_includes_default | ||
22644 | #include <$ac_header> | ||
22645 | _ACEOF | ||
22646 | rm -f conftest.$ac_objext | ||
22647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22648 | (eval $ac_compile) 2>conftest.er1 | ||
22649 | ac_status=$? | ||
22650 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22651 | rm -f conftest.er1 | ||
22652 | cat conftest.err >&5 | ||
22653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22654 | (exit $ac_status); } && | ||
22655 | { ac_try='test -z "$ac_c_werror_flag" | ||
22656 | || test ! -s conftest.err' | ||
22657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22658 | (eval $ac_try) 2>&5 | ||
22659 | ac_status=$? | ||
22660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22661 | (exit $ac_status); }; } && | ||
22662 | { ac_try='test -s conftest.$ac_objext' | ||
22663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22664 | (eval $ac_try) 2>&5 | ||
22665 | ac_status=$? | ||
22666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22667 | (exit $ac_status); }; }; then | ||
22668 | ac_header_compiler=yes | ||
22669 | else | ||
22670 | echo "$as_me: failed program was:" >&5 | ||
22671 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22672 | |||
22673 | ac_header_compiler=no | ||
22674 | fi | ||
22675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22676 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22677 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
22678 | |||
22679 | # Is the header present? | ||
22680 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
22681 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
22682 | cat >conftest.$ac_ext <<_ACEOF | ||
22683 | /* confdefs.h. */ | ||
22684 | _ACEOF | ||
22685 | cat confdefs.h >>conftest.$ac_ext | ||
22686 | cat >>conftest.$ac_ext <<_ACEOF | ||
22687 | /* end confdefs.h. */ | ||
22688 | #include <$ac_header> | ||
22689 | _ACEOF | ||
22690 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
22691 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
22692 | ac_status=$? | ||
22693 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22694 | rm -f conftest.er1 | ||
22695 | cat conftest.err >&5 | ||
22696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22697 | (exit $ac_status); } >/dev/null; then | ||
22698 | if test -s conftest.err; then | ||
22699 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22700 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22701 | else | ||
22702 | ac_cpp_err= | ||
22703 | fi | ||
22704 | else | ||
22705 | ac_cpp_err=yes | ||
22706 | fi | ||
22707 | if test -z "$ac_cpp_err"; then | ||
22708 | ac_header_preproc=yes | ||
22709 | else | ||
22710 | echo "$as_me: failed program was:" >&5 | ||
22711 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22712 | |||
22713 | ac_header_preproc=no | ||
22714 | fi | ||
22715 | rm -f conftest.err conftest.$ac_ext | ||
22716 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22717 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
22718 | |||
22719 | # So? What about this header? | ||
22720 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22721 | yes:no: ) | ||
22722 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22723 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
22725 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
22726 | ac_header_preproc=yes | ||
22727 | ;; | ||
22728 | no:yes:* ) | ||
22729 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
22730 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
22731 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
22732 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
22733 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
22734 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
22735 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
22736 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
22738 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
22739 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
22740 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
22741 | ( | ||
22742 | cat <<\_ASBOX | ||
22743 | ## ---------------------------------- ## | ||
22744 | ## Report this to the OpenSSH lists. ## | ||
22745 | ## ---------------------------------- ## | ||
22746 | _ASBOX | ||
22747 | ) | | ||
22748 | sed "s/^/$as_me: WARNING: /" >&2 | ||
22749 | ;; | ||
22750 | esac | ||
22751 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22752 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22753 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22755 | else | ||
22756 | eval "$as_ac_Header=\$ac_header_preproc" | ||
22757 | fi | ||
22758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22759 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22760 | |||
22761 | fi | ||
22762 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
22763 | cat >>confdefs.h <<_ACEOF | ||
22764 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
22765 | _ACEOF | ||
22766 | |||
22767 | else | ||
22768 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
22769 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
22770 | |||
22771 | fi | ||
22772 | |||
22773 | done | ||
22774 | |||
22775 | |||
22776 | |||
22777 | fi | ||
22778 | |||
22779 | |||
22780 | |||
22781 | oldCPP="$CPPFLAGS" | ||
22782 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
22783 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
22784 | echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
22785 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
22786 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
22787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22788 | fi | ||
22789 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
22790 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
22791 | else | ||
22792 | # Is the header compilable? | ||
22793 | echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
22794 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6 | ||
22795 | cat >conftest.$ac_ext <<_ACEOF | ||
22796 | /* confdefs.h. */ | ||
22797 | _ACEOF | ||
22798 | cat confdefs.h >>conftest.$ac_ext | ||
22799 | cat >>conftest.$ac_ext <<_ACEOF | ||
22800 | /* end confdefs.h. */ | ||
22801 | $ac_includes_default | ||
22802 | #include <gssapi_krb5.h> | ||
22803 | _ACEOF | ||
22804 | rm -f conftest.$ac_objext | ||
22805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22806 | (eval $ac_compile) 2>conftest.er1 | ||
22807 | ac_status=$? | ||
22808 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22809 | rm -f conftest.er1 | ||
22810 | cat conftest.err >&5 | ||
22811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22812 | (exit $ac_status); } && | ||
22813 | { ac_try='test -z "$ac_c_werror_flag" | ||
22814 | || test ! -s conftest.err' | ||
22815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22816 | (eval $ac_try) 2>&5 | ||
22817 | ac_status=$? | ||
22818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22819 | (exit $ac_status); }; } && | ||
22820 | { ac_try='test -s conftest.$ac_objext' | ||
22821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22822 | (eval $ac_try) 2>&5 | ||
22823 | ac_status=$? | ||
22824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22825 | (exit $ac_status); }; }; then | ||
22826 | ac_header_compiler=yes | ||
22827 | else | ||
22828 | echo "$as_me: failed program was:" >&5 | ||
22829 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22830 | |||
22831 | ac_header_compiler=no | ||
22832 | fi | ||
22833 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22834 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22835 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
22836 | |||
22837 | # Is the header present? | ||
22838 | echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
22839 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6 | ||
22840 | cat >conftest.$ac_ext <<_ACEOF | ||
22841 | /* confdefs.h. */ | ||
22842 | _ACEOF | ||
22843 | cat confdefs.h >>conftest.$ac_ext | ||
22844 | cat >>conftest.$ac_ext <<_ACEOF | ||
22845 | /* end confdefs.h. */ | ||
22846 | #include <gssapi_krb5.h> | ||
22847 | _ACEOF | ||
22848 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
22849 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
22850 | ac_status=$? | ||
22851 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22852 | rm -f conftest.er1 | ||
22853 | cat conftest.err >&5 | ||
22854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22855 | (exit $ac_status); } >/dev/null; then | ||
22856 | if test -s conftest.err; then | ||
22857 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22858 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22859 | else | ||
22860 | ac_cpp_err= | ||
22861 | fi | ||
22862 | else | ||
22863 | ac_cpp_err=yes | ||
22864 | fi | ||
22865 | if test -z "$ac_cpp_err"; then | ||
22866 | ac_header_preproc=yes | ||
22867 | else | ||
22868 | echo "$as_me: failed program was:" >&5 | ||
22869 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22870 | |||
22871 | ac_header_preproc=no | ||
22872 | fi | ||
22873 | rm -f conftest.err conftest.$ac_ext | ||
22874 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22875 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
22876 | |||
22877 | # So? What about this header? | ||
22878 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22879 | yes:no: ) | ||
22880 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22881 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22882 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
22883 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
22884 | ac_header_preproc=yes | ||
22885 | ;; | ||
22886 | no:yes:* ) | ||
22887 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
22888 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
22889 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
22890 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
22891 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
22892 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
22893 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
22894 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22895 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
22896 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
22897 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
22898 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
22899 | ( | ||
22900 | cat <<\_ASBOX | ||
22901 | ## ---------------------------------- ## | ||
22902 | ## Report this to the OpenSSH lists. ## | ||
22903 | ## ---------------------------------- ## | ||
22904 | _ASBOX | ||
22905 | ) | | ||
22906 | sed "s/^/$as_me: WARNING: /" >&2 | ||
22907 | ;; | ||
22908 | esac | ||
22909 | echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
22910 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
22911 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
22912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22913 | else | ||
22914 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
22915 | fi | ||
22916 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
22917 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
22918 | |||
22919 | fi | ||
22920 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
22921 | : | ||
22922 | else | ||
22923 | CPPFLAGS="$oldCPP" | ||
22924 | fi | ||
22925 | |||
22926 | |||
22927 | |||
22928 | fi | ||
22929 | if test ! -z "$need_dash_r" ; then | ||
22930 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
22931 | fi | ||
22932 | if test ! -z "$blibpath" ; then | ||
22933 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
22934 | fi | ||
22935 | fi | ||
22936 | |||
22937 | |||
22938 | |||
22939 | for ac_header in gssapi.h gssapi/gssapi.h | ||
22940 | do | ||
22941 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
22942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22947 | fi | ||
22948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22950 | else | ||
22951 | # Is the header compilable? | ||
22952 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
22953 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
22954 | cat >conftest.$ac_ext <<_ACEOF | ||
22955 | /* confdefs.h. */ | ||
22956 | _ACEOF | ||
22957 | cat confdefs.h >>conftest.$ac_ext | ||
22958 | cat >>conftest.$ac_ext <<_ACEOF | ||
22959 | /* end confdefs.h. */ | ||
22960 | $ac_includes_default | ||
22961 | #include <$ac_header> | ||
22962 | _ACEOF | ||
22963 | rm -f conftest.$ac_objext | ||
22964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22965 | (eval $ac_compile) 2>conftest.er1 | ||
22966 | ac_status=$? | ||
22967 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22968 | rm -f conftest.er1 | ||
22969 | cat conftest.err >&5 | ||
22970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22971 | (exit $ac_status); } && | ||
22972 | { ac_try='test -z "$ac_c_werror_flag" | ||
22973 | || test ! -s conftest.err' | ||
22974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22975 | (eval $ac_try) 2>&5 | ||
22976 | ac_status=$? | ||
22977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22978 | (exit $ac_status); }; } && | ||
22979 | { ac_try='test -s conftest.$ac_objext' | ||
22980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22981 | (eval $ac_try) 2>&5 | ||
22982 | ac_status=$? | ||
22983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22984 | (exit $ac_status); }; }; then | ||
22985 | ac_header_compiler=yes | ||
22986 | else | ||
22987 | echo "$as_me: failed program was:" >&5 | ||
22988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22989 | |||
22990 | ac_header_compiler=no | ||
22991 | fi | ||
22992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22993 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22994 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
22995 | |||
22996 | # Is the header present? | ||
22997 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
22998 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
22999 | cat >conftest.$ac_ext <<_ACEOF | ||
23000 | /* confdefs.h. */ | ||
23001 | _ACEOF | ||
23002 | cat confdefs.h >>conftest.$ac_ext | ||
23003 | cat >>conftest.$ac_ext <<_ACEOF | ||
23004 | /* end confdefs.h. */ | ||
23005 | #include <$ac_header> | ||
23006 | _ACEOF | ||
23007 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23008 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23009 | ac_status=$? | ||
23010 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23011 | rm -f conftest.er1 | ||
23012 | cat conftest.err >&5 | ||
23013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23014 | (exit $ac_status); } >/dev/null; then | ||
23015 | if test -s conftest.err; then | ||
23016 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23017 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23018 | else | ||
23019 | ac_cpp_err= | ||
23020 | fi | ||
23021 | else | ||
23022 | ac_cpp_err=yes | ||
23023 | fi | ||
23024 | if test -z "$ac_cpp_err"; then | ||
23025 | ac_header_preproc=yes | ||
23026 | else | ||
23027 | echo "$as_me: failed program was:" >&5 | ||
23028 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23029 | |||
23030 | ac_header_preproc=no | ||
23031 | fi | ||
23032 | rm -f conftest.err conftest.$ac_ext | ||
23033 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23034 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23035 | |||
23036 | # So? What about this header? | ||
23037 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23038 | yes:no: ) | ||
23039 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23040 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
23042 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
23043 | ac_header_preproc=yes | ||
23044 | ;; | ||
23045 | no:yes:* ) | ||
23046 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
23047 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
23048 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
23049 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
23050 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
23051 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
23052 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
23053 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23054 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
23055 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
23056 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
23057 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
23058 | ( | ||
23059 | cat <<\_ASBOX | ||
23060 | ## ---------------------------------- ## | ||
23061 | ## Report this to the OpenSSH lists. ## | ||
23062 | ## ---------------------------------- ## | ||
23063 | _ASBOX | ||
23064 | ) | | ||
23065 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23066 | ;; | ||
23067 | esac | ||
23068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23072 | else | ||
23073 | eval "$as_ac_Header=\$ac_header_preproc" | ||
23074 | fi | ||
23075 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23076 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23077 | |||
23078 | fi | ||
23079 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
23080 | cat >>confdefs.h <<_ACEOF | ||
23081 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
23082 | _ACEOF | ||
23083 | |||
23084 | fi | ||
23085 | |||
23086 | done | ||
23087 | |||
23088 | |||
23089 | |||
23090 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
23091 | do | ||
23092 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
23093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23094 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23098 | fi | ||
23099 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23100 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23101 | else | ||
23102 | # Is the header compilable? | ||
23103 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
23104 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
23105 | cat >conftest.$ac_ext <<_ACEOF | ||
23106 | /* confdefs.h. */ | ||
23107 | _ACEOF | ||
23108 | cat confdefs.h >>conftest.$ac_ext | ||
23109 | cat >>conftest.$ac_ext <<_ACEOF | ||
23110 | /* end confdefs.h. */ | ||
23111 | $ac_includes_default | ||
23112 | #include <$ac_header> | ||
23113 | _ACEOF | ||
23114 | rm -f conftest.$ac_objext | ||
23115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23116 | (eval $ac_compile) 2>conftest.er1 | ||
23117 | ac_status=$? | ||
23118 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23119 | rm -f conftest.er1 | ||
23120 | cat conftest.err >&5 | ||
23121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23122 | (exit $ac_status); } && | ||
23123 | { ac_try='test -z "$ac_c_werror_flag" | ||
23124 | || test ! -s conftest.err' | ||
23125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23126 | (eval $ac_try) 2>&5 | ||
23127 | ac_status=$? | ||
23128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23129 | (exit $ac_status); }; } && | ||
23130 | { ac_try='test -s conftest.$ac_objext' | ||
23131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23132 | (eval $ac_try) 2>&5 | ||
23133 | ac_status=$? | ||
23134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23135 | (exit $ac_status); }; }; then | ||
23136 | ac_header_compiler=yes | ||
23137 | else | ||
23138 | echo "$as_me: failed program was:" >&5 | ||
23139 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23140 | |||
23141 | ac_header_compiler=no | ||
23142 | fi | ||
23143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23144 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
23145 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
23146 | |||
23147 | # Is the header present? | ||
23148 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
23149 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
23150 | cat >conftest.$ac_ext <<_ACEOF | ||
23151 | /* confdefs.h. */ | ||
23152 | _ACEOF | ||
23153 | cat confdefs.h >>conftest.$ac_ext | ||
23154 | cat >>conftest.$ac_ext <<_ACEOF | ||
23155 | /* end confdefs.h. */ | ||
23156 | #include <$ac_header> | ||
23157 | _ACEOF | ||
23158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23160 | ac_status=$? | ||
23161 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23162 | rm -f conftest.er1 | ||
23163 | cat conftest.err >&5 | ||
23164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23165 | (exit $ac_status); } >/dev/null; then | ||
23166 | if test -s conftest.err; then | ||
23167 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23169 | else | ||
23170 | ac_cpp_err= | ||
23171 | fi | ||
23172 | else | ||
23173 | ac_cpp_err=yes | ||
23174 | fi | ||
23175 | if test -z "$ac_cpp_err"; then | ||
23176 | ac_header_preproc=yes | ||
23177 | else | ||
23178 | echo "$as_me: failed program was:" >&5 | ||
23179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23180 | |||
23181 | ac_header_preproc=no | ||
23182 | fi | ||
23183 | rm -f conftest.err conftest.$ac_ext | ||
23184 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23185 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23186 | |||
23187 | # So? What about this header? | ||
23188 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23189 | yes:no: ) | ||
23190 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23191 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
23193 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
23194 | ac_header_preproc=yes | ||
23195 | ;; | ||
23196 | no:yes:* ) | ||
23197 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
23198 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
23199 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
23200 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
23201 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
23202 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
23203 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
23204 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23205 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
23206 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
23207 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
23208 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
23209 | ( | ||
23210 | cat <<\_ASBOX | ||
23211 | ## ---------------------------------- ## | ||
23212 | ## Report this to the OpenSSH lists. ## | ||
23213 | ## ---------------------------------- ## | ||
23214 | _ASBOX | ||
23215 | ) | | ||
23216 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23217 | ;; | ||
23218 | esac | ||
23219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23223 | else | ||
23224 | eval "$as_ac_Header=\$ac_header_preproc" | ||
23225 | fi | ||
23226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23228 | |||
23229 | fi | ||
23230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
23231 | cat >>confdefs.h <<_ACEOF | ||
23232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
23233 | _ACEOF | ||
23234 | |||
23235 | fi | ||
23236 | |||
23237 | done | ||
23238 | |||
23239 | |||
23240 | |||
23241 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
23242 | do | ||
23243 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
23244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23245 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23246 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23249 | fi | ||
23250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23251 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23252 | else | ||
23253 | # Is the header compilable? | ||
23254 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
23255 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
23256 | cat >conftest.$ac_ext <<_ACEOF | ||
23257 | /* confdefs.h. */ | ||
23258 | _ACEOF | ||
23259 | cat confdefs.h >>conftest.$ac_ext | ||
23260 | cat >>conftest.$ac_ext <<_ACEOF | ||
23261 | /* end confdefs.h. */ | ||
23262 | $ac_includes_default | ||
23263 | #include <$ac_header> | ||
23264 | _ACEOF | ||
23265 | rm -f conftest.$ac_objext | ||
23266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23267 | (eval $ac_compile) 2>conftest.er1 | ||
23268 | ac_status=$? | ||
23269 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23270 | rm -f conftest.er1 | ||
23271 | cat conftest.err >&5 | ||
23272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23273 | (exit $ac_status); } && | ||
23274 | { ac_try='test -z "$ac_c_werror_flag" | ||
23275 | || test ! -s conftest.err' | ||
23276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23277 | (eval $ac_try) 2>&5 | ||
23278 | ac_status=$? | ||
23279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23280 | (exit $ac_status); }; } && | ||
23281 | { ac_try='test -s conftest.$ac_objext' | ||
23282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23283 | (eval $ac_try) 2>&5 | ||
23284 | ac_status=$? | ||
23285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23286 | (exit $ac_status); }; }; then | ||
23287 | ac_header_compiler=yes | ||
23288 | else | ||
23289 | echo "$as_me: failed program was:" >&5 | ||
23290 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23291 | |||
23292 | ac_header_compiler=no | ||
23293 | fi | ||
23294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23295 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
23296 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
23297 | |||
23298 | # Is the header present? | ||
23299 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
23300 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
23301 | cat >conftest.$ac_ext <<_ACEOF | ||
23302 | /* confdefs.h. */ | ||
23303 | _ACEOF | ||
23304 | cat confdefs.h >>conftest.$ac_ext | ||
23305 | cat >>conftest.$ac_ext <<_ACEOF | ||
23306 | /* end confdefs.h. */ | ||
23307 | #include <$ac_header> | ||
23308 | _ACEOF | ||
23309 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23310 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23311 | ac_status=$? | ||
23312 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23313 | rm -f conftest.er1 | ||
23314 | cat conftest.err >&5 | ||
23315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23316 | (exit $ac_status); } >/dev/null; then | ||
23317 | if test -s conftest.err; then | ||
23318 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23319 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23320 | else | ||
23321 | ac_cpp_err= | ||
23322 | fi | ||
23323 | else | ||
23324 | ac_cpp_err=yes | ||
23325 | fi | ||
23326 | if test -z "$ac_cpp_err"; then | ||
23327 | ac_header_preproc=yes | ||
23328 | else | ||
23329 | echo "$as_me: failed program was:" >&5 | ||
23330 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23331 | |||
23332 | ac_header_preproc=no | ||
23333 | fi | ||
23334 | rm -f conftest.err conftest.$ac_ext | ||
23335 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23336 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23337 | |||
23338 | # So? What about this header? | ||
23339 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23340 | yes:no: ) | ||
23341 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23342 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
23344 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
23345 | ac_header_preproc=yes | ||
23346 | ;; | ||
23347 | no:yes:* ) | ||
23348 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
23349 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
23350 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
23351 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
23352 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
23353 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
23354 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
23355 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23356 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
23357 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
23358 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
23359 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
23360 | ( | ||
23361 | cat <<\_ASBOX | ||
23362 | ## ---------------------------------- ## | ||
23363 | ## Report this to the OpenSSH lists. ## | ||
23364 | ## ---------------------------------- ## | ||
23365 | _ASBOX | ||
23366 | ) | | ||
23367 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23368 | ;; | ||
23369 | esac | ||
23370 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23374 | else | ||
23375 | eval "$as_ac_Header=\$ac_header_preproc" | ||
23376 | fi | ||
23377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23378 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23379 | |||
23380 | fi | ||
23381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
23382 | cat >>confdefs.h <<_ACEOF | ||
23383 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
23384 | _ACEOF | ||
23385 | |||
23386 | fi | ||
23387 | |||
23388 | done | ||
23389 | |||
23390 | |||
23391 | LIBS="$LIBS $K5LIBS" | ||
23392 | echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
23393 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6 | ||
23394 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
23395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23396 | else | ||
23397 | ac_func_search_save_LIBS=$LIBS | ||
23398 | ac_cv_search_k_hasafs=no | ||
23399 | cat >conftest.$ac_ext <<_ACEOF | ||
23400 | /* confdefs.h. */ | ||
23401 | _ACEOF | ||
23402 | cat confdefs.h >>conftest.$ac_ext | ||
23403 | cat >>conftest.$ac_ext <<_ACEOF | ||
23404 | /* end confdefs.h. */ | ||
23405 | |||
23406 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23407 | #ifdef __cplusplus | ||
23408 | extern "C" | ||
23409 | #endif | ||
23410 | /* We use char because int might match the return type of a gcc2 | ||
23411 | builtin and then its argument prototype would still apply. */ | ||
23412 | char k_hasafs (); | ||
23413 | int | ||
23414 | main () | ||
23415 | { | ||
23416 | k_hasafs (); | ||
23417 | ; | ||
23418 | return 0; | ||
23419 | } | ||
23420 | _ACEOF | ||
23421 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23423 | (eval $ac_link) 2>conftest.er1 | ||
23424 | ac_status=$? | ||
23425 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23426 | rm -f conftest.er1 | ||
23427 | cat conftest.err >&5 | ||
23428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23429 | (exit $ac_status); } && | ||
23430 | { ac_try='test -z "$ac_c_werror_flag" | ||
23431 | || test ! -s conftest.err' | ||
23432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23433 | (eval $ac_try) 2>&5 | ||
23434 | ac_status=$? | ||
23435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23436 | (exit $ac_status); }; } && | ||
23437 | { ac_try='test -s conftest$ac_exeext' | ||
23438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23439 | (eval $ac_try) 2>&5 | ||
23440 | ac_status=$? | ||
23441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23442 | (exit $ac_status); }; }; then | ||
23443 | ac_cv_search_k_hasafs="none required" | ||
23444 | else | ||
23445 | echo "$as_me: failed program was:" >&5 | ||
23446 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23447 | |||
23448 | fi | ||
23449 | rm -f conftest.err conftest.$ac_objext \ | ||
23450 | conftest$ac_exeext conftest.$ac_ext | ||
23451 | if test "$ac_cv_search_k_hasafs" = no; then | ||
23452 | for ac_lib in kafs; do | ||
23453 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
23454 | cat >conftest.$ac_ext <<_ACEOF | ||
23455 | /* confdefs.h. */ | ||
23456 | _ACEOF | ||
23457 | cat confdefs.h >>conftest.$ac_ext | ||
23458 | cat >>conftest.$ac_ext <<_ACEOF | ||
23459 | /* end confdefs.h. */ | ||
23460 | |||
23461 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23462 | #ifdef __cplusplus | ||
23463 | extern "C" | ||
23464 | #endif | ||
23465 | /* We use char because int might match the return type of a gcc2 | ||
23466 | builtin and then its argument prototype would still apply. */ | ||
23467 | char k_hasafs (); | ||
23468 | int | ||
23469 | main () | ||
23470 | { | ||
23471 | k_hasafs (); | ||
23472 | ; | ||
23473 | return 0; | ||
23474 | } | ||
23475 | _ACEOF | ||
23476 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23478 | (eval $ac_link) 2>conftest.er1 | ||
23479 | ac_status=$? | ||
23480 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23481 | rm -f conftest.er1 | ||
23482 | cat conftest.err >&5 | ||
23483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23484 | (exit $ac_status); } && | ||
23485 | { ac_try='test -z "$ac_c_werror_flag" | ||
23486 | || test ! -s conftest.err' | ||
23487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23488 | (eval $ac_try) 2>&5 | ||
23489 | ac_status=$? | ||
23490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23491 | (exit $ac_status); }; } && | ||
23492 | { ac_try='test -s conftest$ac_exeext' | ||
23493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23494 | (eval $ac_try) 2>&5 | ||
23495 | ac_status=$? | ||
23496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23497 | (exit $ac_status); }; }; then | ||
23498 | ac_cv_search_k_hasafs="-l$ac_lib" | ||
23499 | break | ||
23500 | else | ||
23501 | echo "$as_me: failed program was:" >&5 | ||
23502 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23503 | |||
23504 | fi | ||
23505 | rm -f conftest.err conftest.$ac_objext \ | ||
23506 | conftest$ac_exeext conftest.$ac_ext | ||
23507 | done | ||
23508 | fi | ||
23509 | LIBS=$ac_func_search_save_LIBS | ||
23510 | fi | ||
23511 | echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
23512 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6 | ||
23513 | if test "$ac_cv_search_k_hasafs" != no; then | ||
23514 | test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS" | ||
23515 | cat >>confdefs.h <<\_ACEOF | ||
23516 | #define USE_AFS 1 | ||
23517 | _ACEOF | ||
23518 | |||
23519 | fi | ||
23520 | |||
23521 | echo "$as_me:$LINENO: checking for library containing krb5_init_ets" >&5 | ||
23522 | echo $ECHO_N "checking for library containing krb5_init_ets... $ECHO_C" >&6 | ||
23523 | if test "${ac_cv_search_krb5_init_ets+set}" = set; then | ||
23524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23525 | else | ||
23526 | ac_func_search_save_LIBS=$LIBS | ||
23527 | ac_cv_search_krb5_init_ets=no | ||
23528 | cat >conftest.$ac_ext <<_ACEOF | ||
23529 | /* confdefs.h. */ | ||
23530 | _ACEOF | ||
23531 | cat confdefs.h >>conftest.$ac_ext | ||
23532 | cat >>conftest.$ac_ext <<_ACEOF | ||
23533 | /* end confdefs.h. */ | ||
23534 | |||
23535 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23536 | #ifdef __cplusplus | ||
23537 | extern "C" | ||
23538 | #endif | ||
23539 | /* We use char because int might match the return type of a gcc2 | ||
23540 | builtin and then its argument prototype would still apply. */ | ||
23541 | char krb5_init_ets (); | ||
23542 | int | ||
23543 | main () | ||
23544 | { | ||
23545 | krb5_init_ets (); | ||
23546 | ; | ||
23547 | return 0; | ||
23548 | } | ||
23549 | _ACEOF | ||
23550 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23552 | (eval $ac_link) 2>conftest.er1 | ||
23553 | ac_status=$? | ||
23554 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23555 | rm -f conftest.er1 | ||
23556 | cat conftest.err >&5 | ||
23557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23558 | (exit $ac_status); } && | ||
23559 | { ac_try='test -z "$ac_c_werror_flag" | ||
23560 | || test ! -s conftest.err' | ||
23561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23562 | (eval $ac_try) 2>&5 | ||
23563 | ac_status=$? | ||
23564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23565 | (exit $ac_status); }; } && | ||
23566 | { ac_try='test -s conftest$ac_exeext' | ||
23567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23568 | (eval $ac_try) 2>&5 | ||
23569 | ac_status=$? | ||
23570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23571 | (exit $ac_status); }; }; then | ||
23572 | ac_cv_search_krb5_init_ets="none required" | ||
23573 | else | ||
23574 | echo "$as_me: failed program was:" >&5 | ||
23575 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23576 | |||
23577 | fi | ||
23578 | rm -f conftest.err conftest.$ac_objext \ | ||
23579 | conftest$ac_exeext conftest.$ac_ext | ||
23580 | if test "$ac_cv_search_krb5_init_ets" = no; then | ||
23581 | for ac_lib in $K5LIBS; do | ||
23582 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
23583 | cat >conftest.$ac_ext <<_ACEOF | ||
23584 | /* confdefs.h. */ | ||
23585 | _ACEOF | ||
23586 | cat confdefs.h >>conftest.$ac_ext | ||
23587 | cat >>conftest.$ac_ext <<_ACEOF | ||
23588 | /* end confdefs.h. */ | ||
23589 | |||
23590 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23591 | #ifdef __cplusplus | ||
23592 | extern "C" | ||
23593 | #endif | ||
23594 | /* We use char because int might match the return type of a gcc2 | ||
23595 | builtin and then its argument prototype would still apply. */ | ||
23596 | char krb5_init_ets (); | ||
23597 | int | ||
23598 | main () | ||
23599 | { | ||
23600 | krb5_init_ets (); | ||
23601 | ; | ||
23602 | return 0; | ||
23603 | } | ||
23604 | _ACEOF | ||
23605 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23607 | (eval $ac_link) 2>conftest.er1 | ||
23608 | ac_status=$? | ||
23609 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23610 | rm -f conftest.er1 | ||
23611 | cat conftest.err >&5 | ||
23612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23613 | (exit $ac_status); } && | ||
23614 | { ac_try='test -z "$ac_c_werror_flag" | ||
23615 | || test ! -s conftest.err' | ||
23616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23617 | (eval $ac_try) 2>&5 | ||
23618 | ac_status=$? | ||
23619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23620 | (exit $ac_status); }; } && | ||
23621 | { ac_try='test -s conftest$ac_exeext' | ||
23622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23623 | (eval $ac_try) 2>&5 | ||
23624 | ac_status=$? | ||
23625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23626 | (exit $ac_status); }; }; then | ||
23627 | ac_cv_search_krb5_init_ets="-l$ac_lib" | ||
23628 | break | ||
23629 | else | ||
23630 | echo "$as_me: failed program was:" >&5 | ||
23631 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23632 | |||
23633 | fi | ||
23634 | rm -f conftest.err conftest.$ac_objext \ | ||
23635 | conftest$ac_exeext conftest.$ac_ext | ||
23636 | done | ||
23637 | fi | ||
23638 | LIBS=$ac_func_search_save_LIBS | ||
23639 | fi | ||
23640 | echo "$as_me:$LINENO: result: $ac_cv_search_krb5_init_ets" >&5 | ||
23641 | echo "${ECHO_T}$ac_cv_search_krb5_init_ets" >&6 | ||
23642 | if test "$ac_cv_search_krb5_init_ets" != no; then | ||
23643 | test "$ac_cv_search_krb5_init_ets" = "none required" || LIBS="$ac_cv_search_krb5_init_ets $LIBS" | ||
23644 | cat >>confdefs.h <<\_ACEOF | ||
23645 | #define KRB5_INIT_ETS 1 | ||
23646 | _ACEOF | ||
23647 | |||
23648 | fi | ||
23649 | |||
23650 | |||
23651 | |||
23652 | fi; | ||
23653 | |||
23654 | # Looking for programs, paths and files | ||
23655 | |||
23656 | PRIVSEP_PATH=/var/empty | ||
23657 | |||
23658 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
23659 | if test "${with_privsep_path+set}" = set; then | ||
23660 | withval="$with_privsep_path" | ||
23661 | |||
23662 | if test "x$withval" != "$no" ; then | ||
23663 | PRIVSEP_PATH=$withval | ||
23664 | fi | ||
23665 | |||
23666 | |||
23667 | fi; | ||
23668 | |||
23669 | |||
23670 | |||
23671 | # Check whether --with-xauth or --without-xauth was given. | ||
23672 | if test "${with_xauth+set}" = set; then | ||
23673 | withval="$with_xauth" | ||
23674 | |||
23675 | if test "x$withval" != "xno" ; then | ||
23676 | xauth_path=$withval | ||
23677 | fi | ||
23678 | |||
23679 | else | ||
23680 | |||
23681 | TestPath="$PATH" | ||
23682 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
23683 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
23684 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
23685 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
23686 | # Extract the first word of "xauth", so it can be a program name with args. | ||
23687 | set dummy xauth; ac_word=$2 | ||
23688 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
23689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
23690 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
23691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23692 | else | ||
23693 | case $xauth_path in | ||
23694 | [\\/]* | ?:[\\/]*) | ||
23695 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
23696 | ;; | ||
23697 | *) | ||
23698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
23699 | for as_dir in $TestPath | ||
23700 | do | ||
23701 | IFS=$as_save_IFS | ||
23702 | test -z "$as_dir" && as_dir=. | ||
23703 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
23704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
23705 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
23706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
23707 | break 2 | ||
23708 | fi | ||
23709 | done | ||
23710 | done | ||
23711 | |||
23712 | ;; | ||
23713 | esac | ||
23714 | fi | ||
23715 | xauth_path=$ac_cv_path_xauth_path | ||
23716 | |||
23717 | if test -n "$xauth_path"; then | ||
23718 | echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
23719 | echo "${ECHO_T}$xauth_path" >&6 | ||
23720 | else | ||
23721 | echo "$as_me:$LINENO: result: no" >&5 | ||
23722 | echo "${ECHO_T}no" >&6 | ||
23723 | fi | ||
23724 | |||
23725 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
23726 | xauth_path="/usr/openwin/bin/xauth" | ||
23727 | fi | ||
23728 | |||
23729 | |||
23730 | fi; | ||
23731 | |||
23732 | STRIP_OPT=-s | ||
23733 | # Check whether --enable-strip or --disable-strip was given. | ||
23734 | if test "${enable_strip+set}" = set; then | ||
23735 | enableval="$enable_strip" | ||
23736 | |||
23737 | if test "x$enableval" = "xno" ; then | ||
23738 | STRIP_OPT= | ||
23739 | fi | ||
23740 | |||
23741 | |||
23742 | fi; | ||
23743 | |||
23744 | |||
23745 | if test -z "$xauth_path" ; then | ||
23746 | XAUTH_PATH="undefined" | ||
23747 | |||
23748 | else | ||
23749 | cat >>confdefs.h <<_ACEOF | ||
23750 | #define XAUTH_PATH "$xauth_path" | ||
23751 | _ACEOF | ||
23752 | |||
23753 | XAUTH_PATH=$xauth_path | ||
23754 | |||
23755 | fi | ||
23756 | |||
23757 | # Check for mail directory (last resort if we cannot get it from headers) | ||
23758 | if test ! -z "$MAIL" ; then | ||
23759 | maildir=`dirname $MAIL` | ||
23760 | cat >>confdefs.h <<_ACEOF | ||
23761 | #define MAIL_DIRECTORY "$maildir" | ||
23762 | _ACEOF | ||
23763 | |||
23764 | fi | ||
23765 | |||
23766 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
23767 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
23768 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
23769 | disable_ptmx_check=yes | ||
23770 | fi | ||
23771 | if test -z "$no_dev_ptmx" ; then | ||
23772 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
23773 | echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
23774 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
23775 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
23776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23777 | else | ||
23778 | test "$cross_compiling" = yes && | ||
23779 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
23780 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
23781 | { (exit 1); exit 1; }; } | ||
23782 | if test -r ""/dev/ptmx""; then | ||
23783 | ac_cv_file___dev_ptmx_=yes | ||
23784 | else | ||
23785 | ac_cv_file___dev_ptmx_=no | ||
23786 | fi | ||
23787 | fi | ||
23788 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
23789 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
23790 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
23791 | |||
23792 | cat >>confdefs.h <<_ACEOF | ||
23793 | #define HAVE_DEV_PTMX 1 | ||
23794 | _ACEOF | ||
23795 | |||
23796 | have_dev_ptmx=1 | ||
23797 | |||
23798 | |||
23799 | fi | ||
23800 | |||
23801 | fi | ||
23802 | fi | ||
23803 | |||
23804 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
23805 | echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
23806 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
23807 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
23808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23809 | else | ||
23810 | test "$cross_compiling" = yes && | ||
23811 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
23812 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
23813 | { (exit 1); exit 1; }; } | ||
23814 | if test -r ""/dev/ptc""; then | ||
23815 | ac_cv_file___dev_ptc_=yes | ||
23816 | else | ||
23817 | ac_cv_file___dev_ptc_=no | ||
23818 | fi | ||
23819 | fi | ||
23820 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
23821 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
23822 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
23823 | |||
23824 | cat >>confdefs.h <<_ACEOF | ||
23825 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
23826 | _ACEOF | ||
23827 | |||
23828 | have_dev_ptc=1 | ||
23829 | |||
23830 | |||
23831 | fi | ||
23832 | |||
23833 | else | ||
23834 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
23835 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
23836 | fi | ||
23837 | |||
23838 | # Options from here on. Some of these are preset by platform above | ||
23839 | |||
23840 | # Check whether --with-mantype or --without-mantype was given. | ||
23841 | if test "${with_mantype+set}" = set; then | ||
23842 | withval="$with_mantype" | ||
23843 | |||
23844 | case "$withval" in | ||
23845 | man|cat|doc) | ||
23846 | MANTYPE=$withval | ||
23847 | ;; | ||
23848 | *) | ||
23849 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
23850 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
23851 | { (exit 1); exit 1; }; } | ||
23852 | ;; | ||
23853 | esac | ||
23854 | |||
23855 | |||
23856 | fi; | ||
23857 | if test -z "$MANTYPE"; then | ||
23858 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
23859 | for ac_prog in nroff awf | ||
23860 | do | ||
23861 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
23862 | set dummy $ac_prog; ac_word=$2 | ||
23863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
23864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
23865 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
23866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23867 | else | ||
23868 | case $NROFF in | ||
23869 | [\\/]* | ?:[\\/]*) | ||
23870 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
23871 | ;; | ||
23872 | *) | ||
23873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
23874 | for as_dir in $TestPath | ||
23875 | do | ||
23876 | IFS=$as_save_IFS | ||
23877 | test -z "$as_dir" && as_dir=. | ||
23878 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
23879 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
23880 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
23881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
23882 | break 2 | ||
23883 | fi | ||
23884 | done | ||
23885 | done | ||
23886 | |||
23887 | ;; | ||
23888 | esac | ||
23889 | fi | ||
23890 | NROFF=$ac_cv_path_NROFF | ||
23891 | |||
23892 | if test -n "$NROFF"; then | ||
23893 | echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
23894 | echo "${ECHO_T}$NROFF" >&6 | ||
23895 | else | ||
23896 | echo "$as_me:$LINENO: result: no" >&5 | ||
23897 | echo "${ECHO_T}no" >&6 | ||
23898 | fi | ||
23899 | |||
23900 | test -n "$NROFF" && break | ||
23901 | done | ||
23902 | test -n "$NROFF" || NROFF="/bin/false" | ||
23903 | |||
23904 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
23905 | MANTYPE=doc | ||
23906 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
23907 | MANTYPE=man | ||
23908 | else | ||
23909 | MANTYPE=cat | ||
23910 | fi | ||
23911 | fi | ||
23912 | |||
23913 | if test "$MANTYPE" = "doc"; then | ||
23914 | mansubdir=man; | ||
23915 | else | ||
23916 | mansubdir=$MANTYPE; | ||
23917 | fi | ||
23918 | |||
23919 | |||
23920 | # Check whether to enable MD5 passwords | ||
23921 | MD5_MSG="no" | ||
23922 | |||
23923 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
23924 | if test "${with_md5_passwords+set}" = set; then | ||
23925 | withval="$with_md5_passwords" | ||
23926 | |||
23927 | if test "x$withval" != "xno" ; then | ||
23928 | cat >>confdefs.h <<\_ACEOF | ||
23929 | #define HAVE_MD5_PASSWORDS 1 | ||
23930 | _ACEOF | ||
23931 | |||
23932 | MD5_MSG="yes" | ||
23933 | fi | ||
23934 | |||
23935 | |||
23936 | fi; | ||
23937 | |||
23938 | # Whether to disable shadow password support | ||
23939 | |||
23940 | # Check whether --with-shadow or --without-shadow was given. | ||
23941 | if test "${with_shadow+set}" = set; then | ||
23942 | withval="$with_shadow" | ||
23943 | |||
23944 | if test "x$withval" = "xno" ; then | ||
23945 | cat >>confdefs.h <<\_ACEOF | ||
23946 | #define DISABLE_SHADOW 1 | ||
23947 | _ACEOF | ||
23948 | |||
23949 | disable_shadow=yes | ||
23950 | fi | ||
23951 | |||
23952 | |||
23953 | fi; | ||
23954 | |||
23955 | if test -z "$disable_shadow" ; then | ||
23956 | echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
23957 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
23958 | cat >conftest.$ac_ext <<_ACEOF | ||
23959 | /* confdefs.h. */ | ||
23960 | _ACEOF | ||
23961 | cat confdefs.h >>conftest.$ac_ext | ||
23962 | cat >>conftest.$ac_ext <<_ACEOF | ||
23963 | /* end confdefs.h. */ | ||
23964 | |||
23965 | #include <sys/types.h> | ||
23966 | #include <shadow.h> | ||
23967 | struct spwd sp; | ||
23968 | |||
23969 | int | ||
23970 | main () | ||
23971 | { | ||
23972 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
23973 | ; | ||
23974 | return 0; | ||
23975 | } | ||
23976 | _ACEOF | ||
23977 | rm -f conftest.$ac_objext | ||
23978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23979 | (eval $ac_compile) 2>conftest.er1 | ||
23980 | ac_status=$? | ||
23981 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23982 | rm -f conftest.er1 | ||
23983 | cat conftest.err >&5 | ||
23984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23985 | (exit $ac_status); } && | ||
23986 | { ac_try='test -z "$ac_c_werror_flag" | ||
23987 | || test ! -s conftest.err' | ||
23988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23989 | (eval $ac_try) 2>&5 | ||
23990 | ac_status=$? | ||
23991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23992 | (exit $ac_status); }; } && | ||
23993 | { ac_try='test -s conftest.$ac_objext' | ||
23994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23995 | (eval $ac_try) 2>&5 | ||
23996 | ac_status=$? | ||
23997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23998 | (exit $ac_status); }; }; then | ||
23999 | sp_expire_available=yes | ||
24000 | else | ||
24001 | echo "$as_me: failed program was:" >&5 | ||
24002 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24003 | |||
24004 | |||
24005 | |||
24006 | fi | ||
24007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24008 | |||
24009 | if test "x$sp_expire_available" = "xyes" ; then | ||
24010 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24011 | echo "${ECHO_T}yes" >&6 | ||
24012 | cat >>confdefs.h <<\_ACEOF | ||
24013 | #define HAS_SHADOW_EXPIRE 1 | ||
24014 | _ACEOF | ||
24015 | |||
24016 | else | ||
24017 | echo "$as_me:$LINENO: result: no" >&5 | ||
24018 | echo "${ECHO_T}no" >&6 | ||
24019 | fi | ||
24020 | fi | ||
24021 | |||
24022 | # Use ip address instead of hostname in $DISPLAY | ||
24023 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
24024 | DISPLAY_HACK_MSG="yes" | ||
24025 | cat >>confdefs.h <<\_ACEOF | ||
24026 | #define IPADDR_IN_DISPLAY 1 | ||
24027 | _ACEOF | ||
24028 | |||
24029 | else | ||
24030 | DISPLAY_HACK_MSG="no" | ||
24031 | |||
24032 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
24033 | if test "${with_ipaddr_display+set}" = set; then | ||
24034 | withval="$with_ipaddr_display" | ||
24035 | |||
24036 | if test "x$withval" != "xno" ; then | ||
24037 | cat >>confdefs.h <<\_ACEOF | ||
24038 | #define IPADDR_IN_DISPLAY 1 | ||
24039 | _ACEOF | ||
24040 | |||
24041 | DISPLAY_HACK_MSG="yes" | ||
24042 | fi | ||
24043 | |||
24044 | |||
24045 | fi; | ||
24046 | fi | ||
24047 | |||
24048 | # check for /etc/default/login and use it if present. | ||
24049 | # Check whether --enable-etc-default-login or --disable-etc-default-login was given. | ||
24050 | if test "${enable_etc_default_login+set}" = set; then | ||
24051 | enableval="$enable_etc_default_login" | ||
24052 | if test "x$enableval" = "xno"; then | ||
24053 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
24054 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
24055 | etc_default_login=no | ||
24056 | else | ||
24057 | etc_default_login=yes | ||
24058 | fi | ||
24059 | else | ||
24060 | etc_default_login=yes | ||
24061 | |||
24062 | fi; | ||
24063 | |||
24064 | if test "x$etc_default_login" != "xno"; then | ||
24065 | echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
24066 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6 | ||
24067 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
24068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24069 | else | ||
24070 | test "$cross_compiling" = yes && | ||
24071 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
24072 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
24073 | { (exit 1); exit 1; }; } | ||
24074 | if test -r ""/etc/default/login""; then | ||
24075 | ac_cv_file___etc_default_login_=yes | ||
24076 | else | ||
24077 | ac_cv_file___etc_default_login_=no | ||
24078 | fi | ||
24079 | fi | ||
24080 | echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
24081 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6 | ||
24082 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
24083 | external_path_file=/etc/default/login | ||
24084 | fi | ||
24085 | |||
24086 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
24087 | then | ||
24088 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /etc/default/login test" >&5 | ||
24089 | echo "$as_me: WARNING: cross compiling: Disabling /etc/default/login test" >&2;} | ||
24090 | elif test "x$external_path_file" = "x/etc/default/login"; then | ||
24091 | cat >>confdefs.h <<\_ACEOF | ||
24092 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
24093 | _ACEOF | ||
24094 | |||
24095 | fi | ||
24096 | fi | ||
24097 | |||
24098 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | ||
24099 | $ac_cv_header_login_cap_h = "yes" ; then | ||
24100 | external_path_file=/etc/login.conf | ||
24101 | fi | ||
24102 | |||
24103 | # Whether to mess with the default path | ||
24104 | SERVER_PATH_MSG="(default)" | ||
24105 | |||
24106 | # Check whether --with-default-path or --without-default-path was given. | ||
24107 | if test "${with_default_path+set}" = set; then | ||
24108 | withval="$with_default_path" | ||
24109 | |||
24110 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
24111 | { echo "$as_me:$LINENO: WARNING: | ||
24112 | --with-default-path=PATH has no effect on this system. | ||
24113 | Edit /etc/login.conf instead." >&5 | ||
24114 | echo "$as_me: WARNING: | ||
24115 | --with-default-path=PATH has no effect on this system. | ||
24116 | Edit /etc/login.conf instead." >&2;} | ||
24117 | elif test "x$withval" != "xno" ; then | ||
24118 | if test ! -z "$external_path_file" ; then | ||
24119 | { echo "$as_me:$LINENO: WARNING: | ||
24120 | --with-default-path=PATH will only be used if PATH is not defined in | ||
24121 | $external_path_file ." >&5 | ||
24122 | echo "$as_me: WARNING: | ||
24123 | --with-default-path=PATH will only be used if PATH is not defined in | ||
24124 | $external_path_file ." >&2;} | ||
24125 | fi | ||
24126 | user_path="$withval" | ||
24127 | SERVER_PATH_MSG="$withval" | ||
24128 | fi | ||
24129 | |||
24130 | else | ||
24131 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
24132 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
24133 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
24134 | else | ||
24135 | if test ! -z "$external_path_file" ; then | ||
24136 | { echo "$as_me:$LINENO: WARNING: | ||
24137 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
24138 | otherwise scp will not work." >&5 | ||
24139 | echo "$as_me: WARNING: | ||
24140 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
24141 | otherwise scp will not work." >&2;} | ||
24142 | fi | ||
24143 | if test "$cross_compiling" = yes; then | ||
24144 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
24145 | |||
24146 | else | ||
24147 | cat >conftest.$ac_ext <<_ACEOF | ||
24148 | /* confdefs.h. */ | ||
24149 | _ACEOF | ||
24150 | cat confdefs.h >>conftest.$ac_ext | ||
24151 | cat >>conftest.$ac_ext <<_ACEOF | ||
24152 | /* end confdefs.h. */ | ||
24153 | |||
24154 | /* find out what STDPATH is */ | ||
24155 | #include <stdio.h> | ||
24156 | #ifdef HAVE_PATHS_H | ||
24157 | # include <paths.h> | ||
24158 | #endif | ||
24159 | #ifndef _PATH_STDPATH | ||
24160 | # ifdef _PATH_USERPATH /* Irix */ | ||
24161 | # define _PATH_STDPATH _PATH_USERPATH | ||
24162 | # else | ||
24163 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
24164 | # endif | ||
24165 | #endif | ||
24166 | #include <sys/types.h> | ||
24167 | #include <sys/stat.h> | ||
24168 | #include <fcntl.h> | ||
24169 | #define DATA "conftest.stdpath" | ||
24170 | |||
24171 | main() | ||
24172 | { | ||
24173 | FILE *fd; | ||
24174 | int rc; | ||
24175 | |||
24176 | fd = fopen(DATA,"w"); | ||
24177 | if(fd == NULL) | ||
24178 | exit(1); | ||
24179 | |||
24180 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
24181 | exit(1); | ||
24182 | |||
24183 | exit(0); | ||
24184 | } | ||
24185 | |||
24186 | _ACEOF | ||
24187 | rm -f conftest$ac_exeext | ||
24188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
24189 | (eval $ac_link) 2>&5 | ||
24190 | ac_status=$? | ||
24191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24192 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24194 | (eval $ac_try) 2>&5 | ||
24195 | ac_status=$? | ||
24196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24197 | (exit $ac_status); }; }; then | ||
24198 | user_path=`cat conftest.stdpath` | ||
24199 | else | ||
24200 | echo "$as_me: program exited with status $ac_status" >&5 | ||
24201 | echo "$as_me: failed program was:" >&5 | ||
24202 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24203 | |||
24204 | ( exit $ac_status ) | ||
24205 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
24206 | fi | ||
24207 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24208 | fi | ||
24209 | # make sure $bindir is in USER_PATH so scp will work | ||
24210 | t_bindir=`eval echo ${bindir}` | ||
24211 | case $t_bindir in | ||
24212 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
24213 | esac | ||
24214 | case $t_bindir in | ||
24215 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
24216 | esac | ||
24217 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
24218 | if test $? -ne 0 ; then | ||
24219 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
24220 | if test $? -ne 0 ; then | ||
24221 | user_path=$user_path:$t_bindir | ||
24222 | echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
24223 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
24224 | fi | ||
24225 | fi | ||
24226 | fi | ||
24227 | |||
24228 | fi; | ||
24229 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
24230 | cat >>confdefs.h <<_ACEOF | ||
24231 | #define USER_PATH "$user_path" | ||
24232 | _ACEOF | ||
24233 | |||
24234 | |||
24235 | fi | ||
24236 | |||
24237 | # Set superuser path separately to user path | ||
24238 | |||
24239 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
24240 | if test "${with_superuser_path+set}" = set; then | ||
24241 | withval="$with_superuser_path" | ||
24242 | |||
24243 | if test "x$withval" != "xno" ; then | ||
24244 | cat >>confdefs.h <<_ACEOF | ||
24245 | #define SUPERUSER_PATH "$withval" | ||
24246 | _ACEOF | ||
24247 | |||
24248 | superuser_path=$withval | ||
24249 | fi | ||
24250 | |||
24251 | |||
24252 | fi; | ||
24253 | |||
24254 | |||
24255 | echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
24256 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
24257 | IPV4_IN6_HACK_MSG="no" | ||
24258 | |||
24259 | # Check whether --with-4in6 or --without-4in6 was given. | ||
24260 | if test "${with_4in6+set}" = set; then | ||
24261 | withval="$with_4in6" | ||
24262 | |||
24263 | if test "x$withval" != "xno" ; then | ||
24264 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24265 | echo "${ECHO_T}yes" >&6 | ||
24266 | cat >>confdefs.h <<\_ACEOF | ||
24267 | #define IPV4_IN_IPV6 1 | ||
24268 | _ACEOF | ||
24269 | |||
24270 | IPV4_IN6_HACK_MSG="yes" | ||
24271 | else | ||
24272 | echo "$as_me:$LINENO: result: no" >&5 | ||
24273 | echo "${ECHO_T}no" >&6 | ||
24274 | fi | ||
24275 | |||
24276 | else | ||
24277 | |||
24278 | if test "x$inet6_default_4in6" = "xyes"; then | ||
24279 | echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
24280 | echo "${ECHO_T}yes (default)" >&6 | ||
24281 | cat >>confdefs.h <<\_ACEOF | ||
24282 | #define IPV4_IN_IPV6 1 | ||
24283 | _ACEOF | ||
24284 | |||
24285 | IPV4_IN6_HACK_MSG="yes" | ||
24286 | else | ||
24287 | echo "$as_me:$LINENO: result: no (default)" >&5 | ||
24288 | echo "${ECHO_T}no (default)" >&6 | ||
24289 | fi | ||
24290 | |||
24291 | |||
24292 | fi; | ||
24293 | |||
24294 | # Whether to enable BSD auth support | ||
24295 | BSD_AUTH_MSG=no | ||
24296 | |||
24297 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
24298 | if test "${with_bsd_auth+set}" = set; then | ||
24299 | withval="$with_bsd_auth" | ||
24300 | |||
24301 | if test "x$withval" != "xno" ; then | ||
24302 | cat >>confdefs.h <<\_ACEOF | ||
24303 | #define BSD_AUTH 1 | ||
24304 | _ACEOF | ||
24305 | |||
24306 | BSD_AUTH_MSG=yes | ||
24307 | fi | ||
24308 | |||
24309 | |||
24310 | fi; | ||
24311 | |||
24312 | # Where to place sshd.pid | ||
24313 | piddir=/var/run | ||
24314 | # make sure the directory exists | ||
24315 | if test ! -d $piddir ; then | ||
24316 | piddir=`eval echo ${sysconfdir}` | ||
24317 | case $piddir in | ||
24318 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
24319 | esac | ||
24320 | fi | ||
24321 | |||
24322 | |||
24323 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
24324 | if test "${with_pid_dir+set}" = set; then | ||
24325 | withval="$with_pid_dir" | ||
24326 | |||
24327 | if test "x$withval" != "xno" ; then | ||
24328 | piddir=$withval | ||
24329 | if test ! -d $piddir ; then | ||
24330 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
24331 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
24332 | fi | ||
24333 | fi | ||
24334 | |||
24335 | |||
24336 | fi; | ||
24337 | |||
24338 | cat >>confdefs.h <<_ACEOF | ||
24339 | #define _PATH_SSH_PIDDIR "$piddir" | ||
24340 | _ACEOF | ||
24341 | |||
24342 | |||
24343 | |||
24344 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
24345 | if test "${enable_lastlog+set}" = set; then | ||
24346 | enableval="$enable_lastlog" | ||
24347 | |||
24348 | if test "x$enableval" = "xno" ; then | ||
24349 | cat >>confdefs.h <<\_ACEOF | ||
24350 | #define DISABLE_LASTLOG 1 | ||
24351 | _ACEOF | ||
24352 | |||
24353 | fi | ||
24354 | |||
24355 | |||
24356 | fi; | ||
24357 | # Check whether --enable-utmp or --disable-utmp was given. | ||
24358 | if test "${enable_utmp+set}" = set; then | ||
24359 | enableval="$enable_utmp" | ||
24360 | |||
24361 | if test "x$enableval" = "xno" ; then | ||
24362 | cat >>confdefs.h <<\_ACEOF | ||
24363 | #define DISABLE_UTMP 1 | ||
24364 | _ACEOF | ||
24365 | |||
24366 | fi | ||
24367 | |||
24368 | |||
24369 | fi; | ||
24370 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
24371 | if test "${enable_utmpx+set}" = set; then | ||
24372 | enableval="$enable_utmpx" | ||
24373 | |||
24374 | if test "x$enableval" = "xno" ; then | ||
24375 | cat >>confdefs.h <<\_ACEOF | ||
24376 | #define DISABLE_UTMPX 1 | ||
24377 | _ACEOF | ||
24378 | |||
24379 | fi | ||
24380 | |||
24381 | |||
24382 | fi; | ||
24383 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
24384 | if test "${enable_wtmp+set}" = set; then | ||
24385 | enableval="$enable_wtmp" | ||
24386 | |||
24387 | if test "x$enableval" = "xno" ; then | ||
24388 | cat >>confdefs.h <<\_ACEOF | ||
24389 | #define DISABLE_WTMP 1 | ||
24390 | _ACEOF | ||
24391 | |||
24392 | fi | ||
24393 | |||
24394 | |||
24395 | fi; | ||
24396 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
24397 | if test "${enable_wtmpx+set}" = set; then | ||
24398 | enableval="$enable_wtmpx" | ||
24399 | |||
24400 | if test "x$enableval" = "xno" ; then | ||
24401 | cat >>confdefs.h <<\_ACEOF | ||
24402 | #define DISABLE_WTMPX 1 | ||
24403 | _ACEOF | ||
24404 | |||
24405 | fi | ||
24406 | |||
24407 | |||
24408 | fi; | ||
24409 | # Check whether --enable-libutil or --disable-libutil was given. | ||
24410 | if test "${enable_libutil+set}" = set; then | ||
24411 | enableval="$enable_libutil" | ||
24412 | |||
24413 | if test "x$enableval" = "xno" ; then | ||
24414 | cat >>confdefs.h <<\_ACEOF | ||
24415 | #define DISABLE_LOGIN 1 | ||
24416 | _ACEOF | ||
24417 | |||
24418 | fi | ||
24419 | |||
24420 | |||
24421 | fi; | ||
24422 | # Check whether --enable-pututline or --disable-pututline was given. | ||
24423 | if test "${enable_pututline+set}" = set; then | ||
24424 | enableval="$enable_pututline" | ||
24425 | |||
24426 | if test "x$enableval" = "xno" ; then | ||
24427 | cat >>confdefs.h <<\_ACEOF | ||
24428 | #define DISABLE_PUTUTLINE 1 | ||
24429 | _ACEOF | ||
24430 | |||
24431 | fi | ||
24432 | |||
24433 | |||
24434 | fi; | ||
24435 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
24436 | if test "${enable_pututxline+set}" = set; then | ||
24437 | enableval="$enable_pututxline" | ||
24438 | |||
24439 | if test "x$enableval" = "xno" ; then | ||
24440 | cat >>confdefs.h <<\_ACEOF | ||
24441 | #define DISABLE_PUTUTXLINE 1 | ||
24442 | _ACEOF | ||
24443 | |||
24444 | fi | ||
24445 | |||
24446 | |||
24447 | fi; | ||
24448 | |||
24449 | # Check whether --with-lastlog or --without-lastlog was given. | ||
24450 | if test "${with_lastlog+set}" = set; then | ||
24451 | withval="$with_lastlog" | ||
24452 | |||
24453 | if test "x$withval" = "xno" ; then | ||
24454 | cat >>confdefs.h <<\_ACEOF | ||
24455 | #define DISABLE_LASTLOG 1 | ||
24456 | _ACEOF | ||
24457 | |||
24458 | else | ||
24459 | conf_lastlog_location=$withval | ||
24460 | fi | ||
24461 | |||
24462 | |||
24463 | fi; | ||
24464 | |||
24465 | |||
24466 | echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
24467 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
24468 | cat >conftest.$ac_ext <<_ACEOF | ||
24469 | /* confdefs.h. */ | ||
24470 | _ACEOF | ||
24471 | cat confdefs.h >>conftest.$ac_ext | ||
24472 | cat >>conftest.$ac_ext <<_ACEOF | ||
24473 | /* end confdefs.h. */ | ||
24474 | |||
24475 | #include <sys/types.h> | ||
24476 | #include <utmp.h> | ||
24477 | #ifdef HAVE_LASTLOG_H | ||
24478 | # include <lastlog.h> | ||
24479 | #endif | ||
24480 | #ifdef HAVE_PATHS_H | ||
24481 | # include <paths.h> | ||
24482 | #endif | ||
24483 | #ifdef HAVE_LOGIN_H | ||
24484 | # include <login.h> | ||
24485 | #endif | ||
24486 | |||
24487 | int | ||
24488 | main () | ||
24489 | { | ||
24490 | char *lastlog = LASTLOG_FILE; | ||
24491 | ; | ||
24492 | return 0; | ||
24493 | } | ||
24494 | _ACEOF | ||
24495 | rm -f conftest.$ac_objext | ||
24496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24497 | (eval $ac_compile) 2>conftest.er1 | ||
24498 | ac_status=$? | ||
24499 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24500 | rm -f conftest.er1 | ||
24501 | cat conftest.err >&5 | ||
24502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24503 | (exit $ac_status); } && | ||
24504 | { ac_try='test -z "$ac_c_werror_flag" | ||
24505 | || test ! -s conftest.err' | ||
24506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24507 | (eval $ac_try) 2>&5 | ||
24508 | ac_status=$? | ||
24509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24510 | (exit $ac_status); }; } && | ||
24511 | { ac_try='test -s conftest.$ac_objext' | ||
24512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24513 | (eval $ac_try) 2>&5 | ||
24514 | ac_status=$? | ||
24515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24516 | (exit $ac_status); }; }; then | ||
24517 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24518 | echo "${ECHO_T}yes" >&6 | ||
24519 | else | ||
24520 | echo "$as_me: failed program was:" >&5 | ||
24521 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24522 | |||
24523 | |||
24524 | echo "$as_me:$LINENO: result: no" >&5 | ||
24525 | echo "${ECHO_T}no" >&6 | ||
24526 | echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
24527 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
24528 | cat >conftest.$ac_ext <<_ACEOF | ||
24529 | /* confdefs.h. */ | ||
24530 | _ACEOF | ||
24531 | cat confdefs.h >>conftest.$ac_ext | ||
24532 | cat >>conftest.$ac_ext <<_ACEOF | ||
24533 | /* end confdefs.h. */ | ||
24534 | |||
24535 | #include <sys/types.h> | ||
24536 | #include <utmp.h> | ||
24537 | #ifdef HAVE_LASTLOG_H | ||
24538 | # include <lastlog.h> | ||
24539 | #endif | ||
24540 | #ifdef HAVE_PATHS_H | ||
24541 | # include <paths.h> | ||
24542 | #endif | ||
24543 | |||
24544 | int | ||
24545 | main () | ||
24546 | { | ||
24547 | char *lastlog = _PATH_LASTLOG; | ||
24548 | ; | ||
24549 | return 0; | ||
24550 | } | ||
24551 | _ACEOF | ||
24552 | rm -f conftest.$ac_objext | ||
24553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24554 | (eval $ac_compile) 2>conftest.er1 | ||
24555 | ac_status=$? | ||
24556 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24557 | rm -f conftest.er1 | ||
24558 | cat conftest.err >&5 | ||
24559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24560 | (exit $ac_status); } && | ||
24561 | { ac_try='test -z "$ac_c_werror_flag" | ||
24562 | || test ! -s conftest.err' | ||
24563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24564 | (eval $ac_try) 2>&5 | ||
24565 | ac_status=$? | ||
24566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24567 | (exit $ac_status); }; } && | ||
24568 | { ac_try='test -s conftest.$ac_objext' | ||
24569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24570 | (eval $ac_try) 2>&5 | ||
24571 | ac_status=$? | ||
24572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24573 | (exit $ac_status); }; }; then | ||
24574 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24575 | echo "${ECHO_T}yes" >&6 | ||
24576 | else | ||
24577 | echo "$as_me: failed program was:" >&5 | ||
24578 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24579 | |||
24580 | |||
24581 | echo "$as_me:$LINENO: result: no" >&5 | ||
24582 | echo "${ECHO_T}no" >&6 | ||
24583 | system_lastlog_path=no | ||
24584 | |||
24585 | fi | ||
24586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24587 | |||
24588 | |||
24589 | fi | ||
24590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24591 | |||
24592 | if test -z "$conf_lastlog_location"; then | ||
24593 | if test x"$system_lastlog_path" = x"no" ; then | ||
24594 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
24595 | if (test -d "$f" || test -f "$f") ; then | ||
24596 | conf_lastlog_location=$f | ||
24597 | fi | ||
24598 | done | ||
24599 | if test -z "$conf_lastlog_location"; then | ||
24600 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
24601 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
24602 | fi | ||
24603 | fi | ||
24604 | fi | ||
24605 | |||
24606 | if test -n "$conf_lastlog_location"; then | ||
24607 | cat >>confdefs.h <<_ACEOF | ||
24608 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
24609 | _ACEOF | ||
24610 | |||
24611 | fi | ||
24612 | |||
24613 | echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
24614 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
24615 | cat >conftest.$ac_ext <<_ACEOF | ||
24616 | /* confdefs.h. */ | ||
24617 | _ACEOF | ||
24618 | cat confdefs.h >>conftest.$ac_ext | ||
24619 | cat >>conftest.$ac_ext <<_ACEOF | ||
24620 | /* end confdefs.h. */ | ||
24621 | |||
24622 | #include <sys/types.h> | ||
24623 | #include <utmp.h> | ||
24624 | #ifdef HAVE_PATHS_H | ||
24625 | # include <paths.h> | ||
24626 | #endif | ||
24627 | |||
24628 | int | ||
24629 | main () | ||
24630 | { | ||
24631 | char *utmp = UTMP_FILE; | ||
24632 | ; | ||
24633 | return 0; | ||
24634 | } | ||
24635 | _ACEOF | ||
24636 | rm -f conftest.$ac_objext | ||
24637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24638 | (eval $ac_compile) 2>conftest.er1 | ||
24639 | ac_status=$? | ||
24640 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24641 | rm -f conftest.er1 | ||
24642 | cat conftest.err >&5 | ||
24643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24644 | (exit $ac_status); } && | ||
24645 | { ac_try='test -z "$ac_c_werror_flag" | ||
24646 | || test ! -s conftest.err' | ||
24647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24648 | (eval $ac_try) 2>&5 | ||
24649 | ac_status=$? | ||
24650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24651 | (exit $ac_status); }; } && | ||
24652 | { ac_try='test -s conftest.$ac_objext' | ||
24653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24654 | (eval $ac_try) 2>&5 | ||
24655 | ac_status=$? | ||
24656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24657 | (exit $ac_status); }; }; then | ||
24658 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24659 | echo "${ECHO_T}yes" >&6 | ||
24660 | else | ||
24661 | echo "$as_me: failed program was:" >&5 | ||
24662 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24663 | |||
24664 | echo "$as_me:$LINENO: result: no" >&5 | ||
24665 | echo "${ECHO_T}no" >&6 | ||
24666 | system_utmp_path=no | ||
24667 | |||
24668 | fi | ||
24669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24670 | if test -z "$conf_utmp_location"; then | ||
24671 | if test x"$system_utmp_path" = x"no" ; then | ||
24672 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
24673 | if test -f $f ; then | ||
24674 | conf_utmp_location=$f | ||
24675 | fi | ||
24676 | done | ||
24677 | if test -z "$conf_utmp_location"; then | ||
24678 | cat >>confdefs.h <<\_ACEOF | ||
24679 | #define DISABLE_UTMP 1 | ||
24680 | _ACEOF | ||
24681 | |||
24682 | fi | ||
24683 | fi | ||
24684 | fi | ||
24685 | if test -n "$conf_utmp_location"; then | ||
24686 | cat >>confdefs.h <<_ACEOF | ||
24687 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
24688 | _ACEOF | ||
24689 | |||
24690 | fi | ||
24691 | |||
24692 | echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
24693 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
24694 | cat >conftest.$ac_ext <<_ACEOF | ||
24695 | /* confdefs.h. */ | ||
24696 | _ACEOF | ||
24697 | cat confdefs.h >>conftest.$ac_ext | ||
24698 | cat >>conftest.$ac_ext <<_ACEOF | ||
24699 | /* end confdefs.h. */ | ||
24700 | |||
24701 | #include <sys/types.h> | ||
24702 | #include <utmp.h> | ||
24703 | #ifdef HAVE_PATHS_H | ||
24704 | # include <paths.h> | ||
24705 | #endif | ||
24706 | |||
24707 | int | ||
24708 | main () | ||
24709 | { | ||
24710 | char *wtmp = WTMP_FILE; | ||
24711 | ; | ||
24712 | return 0; | ||
24713 | } | ||
24714 | _ACEOF | ||
24715 | rm -f conftest.$ac_objext | ||
24716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24717 | (eval $ac_compile) 2>conftest.er1 | ||
24718 | ac_status=$? | ||
24719 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24720 | rm -f conftest.er1 | ||
24721 | cat conftest.err >&5 | ||
24722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24723 | (exit $ac_status); } && | ||
24724 | { ac_try='test -z "$ac_c_werror_flag" | ||
24725 | || test ! -s conftest.err' | ||
24726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24727 | (eval $ac_try) 2>&5 | ||
24728 | ac_status=$? | ||
24729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24730 | (exit $ac_status); }; } && | ||
24731 | { ac_try='test -s conftest.$ac_objext' | ||
24732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24733 | (eval $ac_try) 2>&5 | ||
24734 | ac_status=$? | ||
24735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24736 | (exit $ac_status); }; }; then | ||
24737 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24738 | echo "${ECHO_T}yes" >&6 | ||
24739 | else | ||
24740 | echo "$as_me: failed program was:" >&5 | ||
24741 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24742 | |||
24743 | echo "$as_me:$LINENO: result: no" >&5 | ||
24744 | echo "${ECHO_T}no" >&6 | ||
24745 | system_wtmp_path=no | ||
24746 | |||
24747 | fi | ||
24748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24749 | if test -z "$conf_wtmp_location"; then | ||
24750 | if test x"$system_wtmp_path" = x"no" ; then | ||
24751 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
24752 | if test -f $f ; then | ||
24753 | conf_wtmp_location=$f | ||
24754 | fi | ||
24755 | done | ||
24756 | if test -z "$conf_wtmp_location"; then | ||
24757 | cat >>confdefs.h <<\_ACEOF | ||
24758 | #define DISABLE_WTMP 1 | ||
24759 | _ACEOF | ||
24760 | |||
24761 | fi | ||
24762 | fi | ||
24763 | fi | ||
24764 | if test -n "$conf_wtmp_location"; then | ||
24765 | cat >>confdefs.h <<_ACEOF | ||
24766 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
24767 | _ACEOF | ||
24768 | |||
24769 | fi | ||
24770 | |||
24771 | |||
24772 | echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
24773 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
24774 | cat >conftest.$ac_ext <<_ACEOF | ||
24775 | /* confdefs.h. */ | ||
24776 | _ACEOF | ||
24777 | cat confdefs.h >>conftest.$ac_ext | ||
24778 | cat >>conftest.$ac_ext <<_ACEOF | ||
24779 | /* end confdefs.h. */ | ||
24780 | |||
24781 | #include <sys/types.h> | ||
24782 | #include <utmp.h> | ||
24783 | #ifdef HAVE_UTMPX_H | ||
24784 | #include <utmpx.h> | ||
24785 | #endif | ||
24786 | #ifdef HAVE_PATHS_H | ||
24787 | # include <paths.h> | ||
24788 | #endif | ||
24789 | |||
24790 | int | ||
24791 | main () | ||
24792 | { | ||
24793 | char *utmpx = UTMPX_FILE; | ||
24794 | ; | ||
24795 | return 0; | ||
24796 | } | ||
24797 | _ACEOF | ||
24798 | rm -f conftest.$ac_objext | ||
24799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24800 | (eval $ac_compile) 2>conftest.er1 | ||
24801 | ac_status=$? | ||
24802 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24803 | rm -f conftest.er1 | ||
24804 | cat conftest.err >&5 | ||
24805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24806 | (exit $ac_status); } && | ||
24807 | { ac_try='test -z "$ac_c_werror_flag" | ||
24808 | || test ! -s conftest.err' | ||
24809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24810 | (eval $ac_try) 2>&5 | ||
24811 | ac_status=$? | ||
24812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24813 | (exit $ac_status); }; } && | ||
24814 | { ac_try='test -s conftest.$ac_objext' | ||
24815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24816 | (eval $ac_try) 2>&5 | ||
24817 | ac_status=$? | ||
24818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24819 | (exit $ac_status); }; }; then | ||
24820 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24821 | echo "${ECHO_T}yes" >&6 | ||
24822 | else | ||
24823 | echo "$as_me: failed program was:" >&5 | ||
24824 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24825 | |||
24826 | echo "$as_me:$LINENO: result: no" >&5 | ||
24827 | echo "${ECHO_T}no" >&6 | ||
24828 | system_utmpx_path=no | ||
24829 | |||
24830 | fi | ||
24831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24832 | if test -z "$conf_utmpx_location"; then | ||
24833 | if test x"$system_utmpx_path" = x"no" ; then | ||
24834 | cat >>confdefs.h <<\_ACEOF | ||
24835 | #define DISABLE_UTMPX 1 | ||
24836 | _ACEOF | ||
24837 | |||
24838 | fi | ||
24839 | else | ||
24840 | cat >>confdefs.h <<_ACEOF | ||
24841 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
24842 | _ACEOF | ||
24843 | |||
24844 | fi | ||
24845 | |||
24846 | echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
24847 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
24848 | cat >conftest.$ac_ext <<_ACEOF | ||
24849 | /* confdefs.h. */ | ||
24850 | _ACEOF | ||
24851 | cat confdefs.h >>conftest.$ac_ext | ||
24852 | cat >>conftest.$ac_ext <<_ACEOF | ||
24853 | /* end confdefs.h. */ | ||
24854 | |||
24855 | #include <sys/types.h> | ||
24856 | #include <utmp.h> | ||
24857 | #ifdef HAVE_UTMPX_H | ||
24858 | #include <utmpx.h> | ||
24859 | #endif | ||
24860 | #ifdef HAVE_PATHS_H | ||
24861 | # include <paths.h> | ||
24862 | #endif | ||
24863 | |||
24864 | int | ||
24865 | main () | ||
24866 | { | ||
24867 | char *wtmpx = WTMPX_FILE; | ||
24868 | ; | ||
24869 | return 0; | ||
24870 | } | ||
24871 | _ACEOF | ||
24872 | rm -f conftest.$ac_objext | ||
24873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24874 | (eval $ac_compile) 2>conftest.er1 | ||
24875 | ac_status=$? | ||
24876 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24877 | rm -f conftest.er1 | ||
24878 | cat conftest.err >&5 | ||
24879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24880 | (exit $ac_status); } && | ||
24881 | { ac_try='test -z "$ac_c_werror_flag" | ||
24882 | || test ! -s conftest.err' | ||
24883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24884 | (eval $ac_try) 2>&5 | ||
24885 | ac_status=$? | ||
24886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24887 | (exit $ac_status); }; } && | ||
24888 | { ac_try='test -s conftest.$ac_objext' | ||
24889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24890 | (eval $ac_try) 2>&5 | ||
24891 | ac_status=$? | ||
24892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24893 | (exit $ac_status); }; }; then | ||
24894 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24895 | echo "${ECHO_T}yes" >&6 | ||
24896 | else | ||
24897 | echo "$as_me: failed program was:" >&5 | ||
24898 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24899 | |||
24900 | echo "$as_me:$LINENO: result: no" >&5 | ||
24901 | echo "${ECHO_T}no" >&6 | ||
24902 | system_wtmpx_path=no | ||
24903 | |||
24904 | fi | ||
24905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24906 | if test -z "$conf_wtmpx_location"; then | ||
24907 | if test x"$system_wtmpx_path" = x"no" ; then | ||
24908 | cat >>confdefs.h <<\_ACEOF | ||
24909 | #define DISABLE_WTMPX 1 | ||
24910 | _ACEOF | ||
24911 | |||
24912 | fi | ||
24913 | else | ||
24914 | cat >>confdefs.h <<_ACEOF | ||
24915 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
24916 | _ACEOF | ||
24917 | |||
24918 | fi | ||
24919 | |||
24920 | |||
24921 | if test ! -z "$blibpath" ; then | ||
24922 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
24923 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
24924 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
24925 | fi | ||
24926 | |||
24927 | if test "$PAM_MSG" = yes ; then | ||
24928 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
24929 | fi | ||
24930 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
24931 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
24932 | fi | ||
24933 | |||
24934 | |||
24935 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh" | ||
24936 | |||
24937 | cat >confcache <<\_ACEOF | ||
24938 | # This file is a shell script that caches the results of configure | ||
24939 | # tests run on this system so they can be shared between configure | ||
24940 | # scripts and configure runs, see configure's option --config-cache. | ||
24941 | # It is not useful on other systems. If it contains results you don't | ||
24942 | # want to keep, you may remove or edit it. | ||
24943 | # | ||
24944 | # config.status only pays attention to the cache file if you give it | ||
24945 | # the --recheck option to rerun configure. | ||
24946 | # | ||
24947 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
24948 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
24949 | # following values. | ||
24950 | |||
24951 | _ACEOF | ||
24952 | |||
24953 | # The following way of writing the cache mishandles newlines in values, | ||
24954 | # but we know of no workaround that is simple, portable, and efficient. | ||
24955 | # So, don't put newlines in cache variables' values. | ||
24956 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
24957 | # and sets the high bit in the cache file unless we assign to the vars. | ||
24958 | { | ||
24959 | (set) 2>&1 | | ||
24960 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
24961 | *ac_space=\ *) | ||
24962 | # `set' does not quote correctly, so add quotes (double-quote | ||
24963 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
24964 | sed -n \ | ||
24965 | "s/'/'\\\\''/g; | ||
24966 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
24967 | ;; | ||
24968 | *) | ||
24969 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
24970 | sed -n \ | ||
24971 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
24972 | ;; | ||
24973 | esac; | ||
24974 | } | | ||
24975 | sed ' | ||
24976 | t clear | ||
24977 | : clear | ||
24978 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
24979 | t end | ||
24980 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
24981 | : end' >>confcache | ||
24982 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | ||
24983 | if test -w $cache_file; then | ||
24984 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
24985 | cat confcache >$cache_file | ||
24986 | else | ||
24987 | echo "not updating unwritable cache $cache_file" | ||
24988 | fi | ||
24989 | fi | ||
24990 | rm -f confcache | ||
24991 | |||
24992 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
24993 | # Let make expand exec_prefix. | ||
24994 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
24995 | |||
24996 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
24997 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
24998 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
24999 | # (actually we leave an empty line to preserve line numbers). | ||
25000 | if test "x$srcdir" = x.; then | ||
25001 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
25002 | s/:*\$(srcdir):*/:/; | ||
25003 | s/:*\${srcdir}:*/:/; | ||
25004 | s/:*@srcdir@:*/:/; | ||
25005 | s/^\([^=]*=[ ]*\):*/\1/; | ||
25006 | s/:*$//; | ||
25007 | s/^[^=]*=[ ]*$//; | ||
25008 | }' | ||
25009 | fi | ||
25010 | |||
25011 | DEFS=-DHAVE_CONFIG_H | ||
25012 | |||
25013 | ac_libobjs= | ||
25014 | ac_ltlibobjs= | ||
25015 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
25016 | # 1. Remove the extension, and $U if already installed. | ||
25017 | ac_i=`echo "$ac_i" | | ||
25018 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | ||
25019 | # 2. Add them. | ||
25020 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | ||
25021 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | ||
25022 | done | ||
25023 | LIBOBJS=$ac_libobjs | ||
25024 | |||
25025 | LTLIBOBJS=$ac_ltlibobjs | ||
25026 | |||
25027 | |||
25028 | |||
25029 | : ${CONFIG_STATUS=./config.status} | ||
25030 | ac_clean_files_save=$ac_clean_files | ||
25031 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
25032 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
25033 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
25034 | cat >$CONFIG_STATUS <<_ACEOF | ||
25035 | #! $SHELL | ||
25036 | # Generated by $as_me. | ||
25037 | # Run this file to recreate the current configuration. | ||
25038 | # Compiler output produced by configure, useful for debugging | ||
25039 | # configure, is in config.log if it exists. | ||
25040 | |||
25041 | debug=false | ||
25042 | ac_cs_recheck=false | ||
25043 | ac_cs_silent=false | ||
25044 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
25045 | _ACEOF | ||
25046 | |||
25047 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25048 | ## --------------------- ## | ||
25049 | ## M4sh Initialization. ## | ||
25050 | ## --------------------- ## | ||
25051 | |||
25052 | # Be Bourne compatible | ||
25053 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
25054 | emulate sh | ||
25055 | NULLCMD=: | ||
25056 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
25057 | # is contrary to our usage. Disable this feature. | ||
25058 | alias -g '${1+"$@"}'='"$@"' | ||
25059 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
25060 | set -o posix | ||
25061 | fi | ||
25062 | DUALCASE=1; export DUALCASE # for MKS sh | ||
25063 | |||
25064 | # Support unset when possible. | ||
25065 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
25066 | as_unset=unset | ||
25067 | else | ||
25068 | as_unset=false | ||
25069 | fi | ||
25070 | |||
25071 | |||
25072 | # Work around bugs in pre-3.0 UWIN ksh. | ||
25073 | $as_unset ENV MAIL MAILPATH | ||
25074 | PS1='$ ' | ||
25075 | PS2='> ' | ||
25076 | PS4='+ ' | ||
25077 | |||
25078 | # NLS nuisances. | ||
25079 | for as_var in \ | ||
25080 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
25081 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
25082 | LC_TELEPHONE LC_TIME | ||
25083 | do | ||
25084 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
25085 | eval $as_var=C; export $as_var | ||
25086 | else | ||
25087 | $as_unset $as_var | ||
25088 | fi | ||
25089 | done | ||
25090 | |||
25091 | # Required to use basename. | ||
25092 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
25093 | as_expr=expr | ||
25094 | else | ||
25095 | as_expr=false | ||
25096 | fi | ||
25097 | |||
25098 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
25099 | as_basename=basename | ||
25100 | else | ||
25101 | as_basename=false | ||
25102 | fi | ||
25103 | |||
25104 | |||
25105 | # Name of the executable. | ||
25106 | as_me=`$as_basename "$0" || | ||
25107 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
25108 | X"$0" : 'X\(//\)$' \| \ | ||
25109 | X"$0" : 'X\(/\)$' \| \ | ||
25110 | . : '\(.\)' 2>/dev/null || | ||
25111 | echo X/"$0" | | ||
25112 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
25113 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
25114 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
25115 | s/.*/./; q'` | ||
25116 | |||
25117 | |||
25118 | # PATH needs CR, and LINENO needs CR and PATH. | ||
25119 | # Avoid depending upon Character Ranges. | ||
25120 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
25121 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
25122 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
25123 | as_cr_digits='0123456789' | ||
25124 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
25125 | |||
25126 | # The user is always right. | ||
25127 | if test "${PATH_SEPARATOR+set}" != set; then | ||
25128 | echo "#! /bin/sh" >conf$$.sh | ||
25129 | echo "exit 0" >>conf$$.sh | ||
25130 | chmod +x conf$$.sh | ||
25131 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
25132 | PATH_SEPARATOR=';' | ||
25133 | else | ||
25134 | PATH_SEPARATOR=: | ||
25135 | fi | ||
25136 | rm -f conf$$.sh | ||
25137 | fi | ||
25138 | |||
25139 | |||
25140 | as_lineno_1=$LINENO | ||
25141 | as_lineno_2=$LINENO | ||
25142 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
25143 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
25144 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
25145 | # Find who we are. Look in the path if we contain no path at all | ||
25146 | # relative or not. | ||
25147 | case $0 in | ||
25148 | *[\\/]* ) as_myself=$0 ;; | ||
25149 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25150 | for as_dir in $PATH | ||
25151 | do | ||
25152 | IFS=$as_save_IFS | ||
25153 | test -z "$as_dir" && as_dir=. | ||
25154 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
25155 | done | ||
25156 | |||
25157 | ;; | ||
25158 | esac | ||
25159 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
25160 | # in which case we are not to be found in the path. | ||
25161 | if test "x$as_myself" = x; then | ||
25162 | as_myself=$0 | ||
25163 | fi | ||
25164 | if test ! -f "$as_myself"; then | ||
25165 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
25166 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
25167 | { (exit 1); exit 1; }; } | ||
25168 | fi | ||
25169 | case $CONFIG_SHELL in | ||
25170 | '') | ||
25171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25172 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
25173 | do | ||
25174 | IFS=$as_save_IFS | ||
25175 | test -z "$as_dir" && as_dir=. | ||
25176 | for as_base in sh bash ksh sh5; do | ||
25177 | case $as_dir in | ||
25178 | /*) | ||
25179 | if ("$as_dir/$as_base" -c ' | ||
25180 | as_lineno_1=$LINENO | ||
25181 | as_lineno_2=$LINENO | ||
25182 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
25183 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
25184 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
25185 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
25186 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
25187 | CONFIG_SHELL=$as_dir/$as_base | ||
25188 | export CONFIG_SHELL | ||
25189 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
25190 | fi;; | ||
25191 | esac | ||
25192 | done | ||
25193 | done | ||
25194 | ;; | ||
25195 | esac | ||
25196 | |||
25197 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
25198 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
25199 | # line-number line before each line; the second 'sed' does the real | ||
25200 | # work. The second script uses 'N' to pair each line-number line | ||
25201 | # with the numbered line, and appends trailing '-' during | ||
25202 | # substitution so that $LINENO is not a special case at line end. | ||
25203 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
25204 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
25205 | sed '=' <$as_myself | | ||
25206 | sed ' | ||
25207 | N | ||
25208 | s,$,-, | ||
25209 | : loop | ||
25210 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
25211 | t loop | ||
25212 | s,-$,, | ||
25213 | s,^['$as_cr_digits']*\n,, | ||
25214 | ' >$as_me.lineno && | ||
25215 | chmod +x $as_me.lineno || | ||
25216 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
25217 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
25218 | { (exit 1); exit 1; }; } | ||
25219 | |||
25220 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
25221 | # (the dirname of $[0] is not the place where we might find the | ||
25222 | # original and so on. Autoconf is especially sensible to this). | ||
25223 | . ./$as_me.lineno | ||
25224 | # Exit status is that of the last command. | ||
25225 | exit | ||
25226 | } | ||
25227 | |||
25228 | |||
25229 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
25230 | *c*,-n*) ECHO_N= ECHO_C=' | ||
25231 | ' ECHO_T=' ' ;; | ||
25232 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
25233 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
25234 | esac | ||
25235 | |||
25236 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
25237 | as_expr=expr | ||
25238 | else | ||
25239 | as_expr=false | ||
25240 | fi | ||
25241 | |||
25242 | rm -f conf$$ conf$$.exe conf$$.file | ||
25243 | echo >conf$$.file | ||
25244 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
25245 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
25246 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
25247 | if test -f conf$$.exe; then | ||
25248 | # Don't use ln at all; we don't have any links | ||
25249 | as_ln_s='cp -p' | ||
25250 | else | ||
25251 | as_ln_s='ln -s' | ||
25252 | fi | ||
25253 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
25254 | as_ln_s=ln | ||
25255 | else | ||
25256 | as_ln_s='cp -p' | ||
25257 | fi | ||
25258 | rm -f conf$$ conf$$.exe conf$$.file | ||
25259 | |||
25260 | if mkdir -p . 2>/dev/null; then | ||
25261 | as_mkdir_p=: | ||
25262 | else | ||
25263 | test -d ./-p && rmdir ./-p | ||
25264 | as_mkdir_p=false | ||
25265 | fi | ||
25266 | |||
25267 | as_executable_p="test -f" | ||
25268 | |||
25269 | # Sed expression to map a string onto a valid CPP name. | ||
25270 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
25271 | |||
25272 | # Sed expression to map a string onto a valid variable name. | ||
25273 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
25274 | |||
25275 | |||
25276 | # IFS | ||
25277 | # We need space, tab and new line, in precisely that order. | ||
25278 | as_nl=' | ||
25279 | ' | ||
25280 | IFS=" $as_nl" | ||
25281 | |||
25282 | # CDPATH. | ||
25283 | $as_unset CDPATH | ||
25284 | |||
25285 | exec 6>&1 | ||
25286 | |||
25287 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
25288 | # report actual input values of CONFIG_FILES etc. instead of their | ||
25289 | # values after options handling. Logging --version etc. is OK. | ||
25290 | exec 5>>config.log | ||
25291 | { | ||
25292 | echo | ||
25293 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<BOXI_EOF | ||
25294 | ## Running $as_me. ## | ||
25295 | BOXI_EOF | ||
25296 | } >&5 | ||
25297 | cat >&5 <<_CSEOF | ||
25298 | |||
25299 | This file was extended by OpenSSH $as_me Portable, which was | ||
25300 | generated by GNU Autoconf 2.59. Invocation command line was | ||
25301 | |||
25302 | CONFIG_FILES = $CONFIG_FILES | ||
25303 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
25304 | CONFIG_LINKS = $CONFIG_LINKS | ||
25305 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
25306 | $ $0 $@ | ||
25307 | |||
25308 | _CSEOF | ||
25309 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
25310 | echo >&5 | ||
25311 | _ACEOF | ||
25312 | |||
25313 | # Files that config.status was made for. | ||
25314 | if test -n "$ac_config_files"; then | ||
25315 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
25316 | fi | ||
25317 | |||
25318 | if test -n "$ac_config_headers"; then | ||
25319 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
25320 | fi | ||
25321 | |||
25322 | if test -n "$ac_config_links"; then | ||
25323 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
25324 | fi | ||
25325 | |||
25326 | if test -n "$ac_config_commands"; then | ||
25327 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
25328 | fi | ||
25329 | |||
25330 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25331 | |||
25332 | ac_cs_usage="\ | ||
25333 | \`$as_me' instantiates files from templates according to the | ||
25334 | current configuration. | ||
25335 | |||
25336 | Usage: $0 [OPTIONS] [FILE]... | ||
25337 | |||
25338 | -h, --help print this help, then exit | ||
25339 | -V, --version print version number, then exit | ||
25340 | -q, --quiet do not print progress messages | ||
25341 | -d, --debug don't remove temporary files | ||
25342 | --recheck update $as_me by reconfiguring in the same conditions | ||
25343 | --file=FILE[:TEMPLATE] | ||
25344 | instantiate the configuration file FILE | ||
25345 | --header=FILE[:TEMPLATE] | ||
25346 | instantiate the configuration header FILE | ||
25347 | |||
25348 | Configuration files: | ||
25349 | $config_files | ||
25350 | |||
25351 | Configuration headers: | ||
25352 | $config_headers | ||
25353 | |||
25354 | Report bugs to <bug-autoconf@gnu.org>." | ||
25355 | _ACEOF | ||
25356 | |||
25357 | cat >>$CONFIG_STATUS <<_ACEOF | ||
25358 | ac_cs_version="\\ | ||
25359 | OpenSSH config.status Portable | ||
25360 | configured by $0, generated by GNU Autoconf 2.59, | ||
25361 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
25362 | |||
25363 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
25364 | This config.status script is free software; the Free Software Foundation | ||
25365 | gives unlimited permission to copy, distribute and modify it." | ||
25366 | srcdir=$srcdir | ||
25367 | INSTALL="$INSTALL" | ||
25368 | _ACEOF | ||
25369 | |||
25370 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25371 | # If no file are specified by the user, then we need to provide default | ||
25372 | # value. By we need to know if files were specified by the user. | ||
25373 | ac_need_defaults=: | ||
25374 | while test $# != 0 | ||
25375 | do | ||
25376 | case $1 in | ||
25377 | --*=*) | ||
25378 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
25379 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
25380 | ac_shift=: | ||
25381 | ;; | ||
25382 | -*) | ||
25383 | ac_option=$1 | ||
25384 | ac_optarg=$2 | ||
25385 | ac_shift=shift | ||
25386 | ;; | ||
25387 | *) # This is not an option, so the user has probably given explicit | ||
25388 | # arguments. | ||
25389 | ac_option=$1 | ||
25390 | ac_need_defaults=false;; | ||
25391 | esac | ||
25392 | |||
25393 | case $ac_option in | ||
25394 | # Handling of the options. | ||
25395 | _ACEOF | ||
25396 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25397 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
25398 | ac_cs_recheck=: ;; | ||
25399 | --version | --vers* | -V ) | ||
25400 | echo "$ac_cs_version"; exit 0 ;; | ||
25401 | --he | --h) | ||
25402 | # Conflict between --help and --header | ||
25403 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
25404 | Try \`$0 --help' for more information." >&5 | ||
25405 | echo "$as_me: error: ambiguous option: $1 | ||
25406 | Try \`$0 --help' for more information." >&2;} | ||
25407 | { (exit 1); exit 1; }; };; | ||
25408 | --help | --hel | -h ) | ||
25409 | echo "$ac_cs_usage"; exit 0 ;; | ||
25410 | --debug | --d* | -d ) | ||
25411 | debug=: ;; | ||
25412 | --file | --fil | --fi | --f ) | ||
25413 | $ac_shift | ||
25414 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
25415 | ac_need_defaults=false;; | ||
25416 | --header | --heade | --head | --hea ) | ||
25417 | $ac_shift | ||
25418 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
25419 | ac_need_defaults=false;; | ||
25420 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
25421 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
25422 | ac_cs_silent=: ;; | ||
25423 | |||
25424 | # This is an error. | ||
25425 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
25426 | Try \`$0 --help' for more information." >&5 | ||
25427 | echo "$as_me: error: unrecognized option: $1 | ||
25428 | Try \`$0 --help' for more information." >&2;} | ||
25429 | { (exit 1); exit 1; }; } ;; | ||
25430 | |||
25431 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
25432 | |||
25433 | esac | ||
25434 | shift | ||
25435 | done | ||
25436 | |||
25437 | ac_configure_extra_args= | ||
25438 | |||
25439 | if $ac_cs_silent; then | ||
25440 | exec 6>/dev/null | ||
25441 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
25442 | fi | ||
25443 | |||
25444 | _ACEOF | ||
25445 | cat >>$CONFIG_STATUS <<_ACEOF | ||
25446 | if \$ac_cs_recheck; then | ||
25447 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
25448 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
25449 | fi | ||
25450 | |||
25451 | _ACEOF | ||
25452 | |||
25453 | |||
25454 | |||
25455 | |||
25456 | |||
25457 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25458 | for ac_config_target in $ac_config_targets | ||
25459 | do | ||
25460 | case "$ac_config_target" in | ||
25461 | # Handling of arguments. | ||
25462 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
25463 | "buildpkg.sh" ) CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
25464 | "opensshd.init" ) CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
25465 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
25466 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
25467 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
25468 | "survey.sh" ) CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
25469 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
25470 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
25471 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
25472 | { (exit 1); exit 1; }; };; | ||
25473 | esac | ||
25474 | done | ||
25475 | |||
25476 | # If the user did not use the arguments to specify the items to instantiate, | ||
25477 | # then the envvar interface is used. Set only those that are not. | ||
25478 | # We use the long form for the default assignment because of an extremely | ||
25479 | # bizarre bug on SunOS 4.1.3. | ||
25480 | if $ac_need_defaults; then | ||
25481 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
25482 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
25483 | fi | ||
25484 | |||
25485 | # Have a temporary directory for convenience. Make it in the build tree | ||
25486 | # simply because there is no reason to put it here, and in addition, | ||
25487 | # creating and moving files from /tmp can sometimes cause problems. | ||
25488 | # Create a temporary directory, and hook for its removal unless debugging. | ||
25489 | $debug || | ||
25490 | { | ||
25491 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
25492 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
25493 | } | ||
25494 | |||
25495 | # Create a (secure) tmp directory for tmp files. | ||
25496 | |||
25497 | { | ||
25498 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | ||
25499 | test -n "$tmp" && test -d "$tmp" | ||
25500 | } || | ||
25501 | { | ||
25502 | tmp=./confstat$$-$RANDOM | ||
25503 | (umask 077 && mkdir $tmp) | ||
25504 | } || | ||
25505 | { | ||
25506 | echo "$me: cannot create a temporary directory in ." >&2 | ||
25507 | { (exit 1); exit 1; } | ||
25508 | } | ||
25509 | |||
25510 | _ACEOF | ||
25511 | |||
25512 | cat >>$CONFIG_STATUS <<_ACEOF | ||
25513 | |||
25514 | # | ||
25515 | # CONFIG_FILES section. | ||
25516 | # | ||
25517 | |||
25518 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
25519 | # This happens for instance when ./config.status config.h | ||
25520 | if test -n "\$CONFIG_FILES"; then | ||
25521 | # Protect against being on the right side of a sed subst in config.status. | ||
25522 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
25523 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
25524 | s,@SHELL@,$SHELL,;t t | ||
25525 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
25526 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
25527 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
25528 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
25529 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
25530 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
25531 | s,@exec_prefix@,$exec_prefix,;t t | ||
25532 | s,@prefix@,$prefix,;t t | ||
25533 | s,@program_transform_name@,$program_transform_name,;t t | ||
25534 | s,@bindir@,$bindir,;t t | ||
25535 | s,@sbindir@,$sbindir,;t t | ||
25536 | s,@libexecdir@,$libexecdir,;t t | ||
25537 | s,@datadir@,$datadir,;t t | ||
25538 | s,@sysconfdir@,$sysconfdir,;t t | ||
25539 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
25540 | s,@localstatedir@,$localstatedir,;t t | ||
25541 | s,@libdir@,$libdir,;t t | ||
25542 | s,@includedir@,$includedir,;t t | ||
25543 | s,@oldincludedir@,$oldincludedir,;t t | ||
25544 | s,@infodir@,$infodir,;t t | ||
25545 | s,@mandir@,$mandir,;t t | ||
25546 | s,@build_alias@,$build_alias,;t t | ||
25547 | s,@host_alias@,$host_alias,;t t | ||
25548 | s,@target_alias@,$target_alias,;t t | ||
25549 | s,@DEFS@,$DEFS,;t t | ||
25550 | s,@ECHO_C@,$ECHO_C,;t t | ||
25551 | s,@ECHO_N@,$ECHO_N,;t t | ||
25552 | s,@ECHO_T@,$ECHO_T,;t t | ||
25553 | s,@LIBS@,$LIBS,;t t | ||
25554 | s,@CC@,$CC,;t t | ||
25555 | s,@CFLAGS@,$CFLAGS,;t t | ||
25556 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
25557 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
25558 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
25559 | s,@EXEEXT@,$EXEEXT,;t t | ||
25560 | s,@OBJEXT@,$OBJEXT,;t t | ||
25561 | s,@build@,$build,;t t | ||
25562 | s,@build_cpu@,$build_cpu,;t t | ||
25563 | s,@build_vendor@,$build_vendor,;t t | ||
25564 | s,@build_os@,$build_os,;t t | ||
25565 | s,@host@,$host,;t t | ||
25566 | s,@host_cpu@,$host_cpu,;t t | ||
25567 | s,@host_vendor@,$host_vendor,;t t | ||
25568 | s,@host_os@,$host_os,;t t | ||
25569 | s,@AWK@,$AWK,;t t | ||
25570 | s,@CPP@,$CPP,;t t | ||
25571 | s,@RANLIB@,$RANLIB,;t t | ||
25572 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
25573 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
25574 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
25575 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
25576 | s,@AR@,$AR,;t t | ||
25577 | s,@CAT@,$CAT,;t t | ||
25578 | s,@KILL@,$KILL,;t t | ||
25579 | s,@PERL@,$PERL,;t t | ||
25580 | s,@SED@,$SED,;t t | ||
25581 | s,@ENT@,$ENT,;t t | ||
25582 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
25583 | s,@SH@,$SH,;t t | ||
25584 | s,@TEST_SHELL@,$TEST_SHELL,;t t | ||
25585 | s,@PATH_GROUPADD_PROG@,$PATH_GROUPADD_PROG,;t t | ||
25586 | s,@PATH_USERADD_PROG@,$PATH_USERADD_PROG,;t t | ||
25587 | s,@MAKE_PACKAGE_SUPPORTED@,$MAKE_PACKAGE_SUPPORTED,;t t | ||
25588 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
25589 | s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t | ||
25590 | s,@LD@,$LD,;t t | ||
25591 | s,@EGREP@,$EGREP,;t t | ||
25592 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
25593 | s,@LIBEDIT@,$LIBEDIT,;t t | ||
25594 | s,@LIBPAM@,$LIBPAM,;t t | ||
25595 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
25596 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
25597 | s,@PROG_LS@,$PROG_LS,;t t | ||
25598 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
25599 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
25600 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
25601 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
25602 | s,@PROG_PS@,$PROG_PS,;t t | ||
25603 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
25604 | s,@PROG_W@,$PROG_W,;t t | ||
25605 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
25606 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
25607 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
25608 | s,@PROG_DF@,$PROG_DF,;t t | ||
25609 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
25610 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
25611 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
25612 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
25613 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
25614 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
25615 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
25616 | s,@xauth_path@,$xauth_path,;t t | ||
25617 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
25618 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
25619 | s,@NROFF@,$NROFF,;t t | ||
25620 | s,@MANTYPE@,$MANTYPE,;t t | ||
25621 | s,@mansubdir@,$mansubdir,;t t | ||
25622 | s,@user_path@,$user_path,;t t | ||
25623 | s,@piddir@,$piddir,;t t | ||
25624 | s,@LIBOBJS@,$LIBOBJS,;t t | ||
25625 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | ||
25626 | CEOF | ||
25627 | |||
25628 | _ACEOF | ||
25629 | |||
25630 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25631 | # Split the substitutions into bite-sized pieces for seds with | ||
25632 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
25633 | ac_max_sed_lines=48 | ||
25634 | ac_sed_frag=1 # Number of current file. | ||
25635 | ac_beg=1 # First line for current file. | ||
25636 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
25637 | ac_more_lines=: | ||
25638 | ac_sed_cmds= | ||
25639 | while $ac_more_lines; do | ||
25640 | if test $ac_beg -gt 1; then | ||
25641 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
25642 | else | ||
25643 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
25644 | fi | ||
25645 | if test ! -s $tmp/subs.frag; then | ||
25646 | ac_more_lines=false | ||
25647 | else | ||
25648 | # The purpose of the label and of the branching condition is to | ||
25649 | # speed up the sed processing (if there are no `@' at all, there | ||
25650 | # is no need to browse any of the substitutions). | ||
25651 | # These are the two extra sed commands mentioned above. | ||
25652 | (echo ':t | ||
25653 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
25654 | if test -z "$ac_sed_cmds"; then | ||
25655 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
25656 | else | ||
25657 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
25658 | fi | ||
25659 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
25660 | ac_beg=$ac_end | ||
25661 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
25662 | fi | ||
25663 | done | ||
25664 | if test -z "$ac_sed_cmds"; then | ||
25665 | ac_sed_cmds=cat | ||
25666 | fi | ||
25667 | fi # test -n "$CONFIG_FILES" | ||
25668 | |||
25669 | _ACEOF | ||
25670 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25671 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
25672 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
25673 | case $ac_file in | ||
25674 | - | *:- | *:-:* ) # input from stdin | ||
25675 | cat >$tmp/stdin | ||
25676 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
25677 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
25678 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
25679 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
25680 | * ) ac_file_in=$ac_file.in ;; | ||
25681 | esac | ||
25682 | |||
25683 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
25684 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
25685 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
25686 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
25687 | X"$ac_file" : 'X\(//\)$' \| \ | ||
25688 | X"$ac_file" : 'X\(/\)' \| \ | ||
25689 | . : '\(.\)' 2>/dev/null || | ||
25690 | echo X"$ac_file" | | ||
25691 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
25692 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
25693 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
25694 | /^X\(\/\).*/{ s//\1/; q; } | ||
25695 | s/.*/./; q'` | ||
25696 | { if $as_mkdir_p; then | ||
25697 | mkdir -p "$ac_dir" | ||
25698 | else | ||
25699 | as_dir="$ac_dir" | ||
25700 | as_dirs= | ||
25701 | while test ! -d "$as_dir"; do | ||
25702 | as_dirs="$as_dir $as_dirs" | ||
25703 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
25704 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
25705 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
25706 | X"$as_dir" : 'X\(//\)$' \| \ | ||
25707 | X"$as_dir" : 'X\(/\)' \| \ | ||
25708 | . : '\(.\)' 2>/dev/null || | ||
25709 | echo X"$as_dir" | | ||
25710 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
25711 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
25712 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
25713 | /^X\(\/\).*/{ s//\1/; q; } | ||
25714 | s/.*/./; q'` | ||
25715 | done | ||
25716 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
25717 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
25718 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
25719 | { (exit 1); exit 1; }; }; } | ||
25720 | |||
25721 | ac_builddir=. | ||
25722 | |||
25723 | if test "$ac_dir" != .; then | ||
25724 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
25725 | # A "../" for each directory in $ac_dir_suffix. | ||
25726 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
25727 | else | ||
25728 | ac_dir_suffix= ac_top_builddir= | ||
25729 | fi | ||
25730 | |||
25731 | case $srcdir in | ||
25732 | .) # No --srcdir option. We are building in place. | ||
25733 | ac_srcdir=. | ||
25734 | if test -z "$ac_top_builddir"; then | ||
25735 | ac_top_srcdir=. | ||
25736 | else | ||
25737 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
25738 | fi ;; | ||
25739 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
25740 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
25741 | ac_top_srcdir=$srcdir ;; | ||
25742 | *) # Relative path. | ||
25743 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
25744 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
25745 | esac | ||
25746 | |||
25747 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
25748 | # the directories may not exist. | ||
25749 | case `pwd` in | ||
25750 | .) ac_abs_builddir="$ac_dir";; | ||
25751 | *) | ||
25752 | case "$ac_dir" in | ||
25753 | .) ac_abs_builddir=`pwd`;; | ||
25754 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
25755 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
25756 | esac;; | ||
25757 | esac | ||
25758 | case $ac_abs_builddir in | ||
25759 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
25760 | *) | ||
25761 | case ${ac_top_builddir}. in | ||
25762 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
25763 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
25764 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
25765 | esac;; | ||
25766 | esac | ||
25767 | case $ac_abs_builddir in | ||
25768 | .) ac_abs_srcdir=$ac_srcdir;; | ||
25769 | *) | ||
25770 | case $ac_srcdir in | ||
25771 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
25772 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
25773 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
25774 | esac;; | ||
25775 | esac | ||
25776 | case $ac_abs_builddir in | ||
25777 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
25778 | *) | ||
25779 | case $ac_top_srcdir in | ||
25780 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
25781 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
25782 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
25783 | esac;; | ||
25784 | esac | ||
25785 | |||
25786 | |||
25787 | case $INSTALL in | ||
25788 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
25789 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | ||
25790 | esac | ||
25791 | |||
25792 | if test x"$ac_file" != x-; then | ||
25793 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
25794 | echo "$as_me: creating $ac_file" >&6;} | ||
25795 | rm -f "$ac_file" | ||
25796 | fi | ||
25797 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
25798 | # use $as_me), people would be surprised to read: | ||
25799 | # /* config.h. Generated by config.status. */ | ||
25800 | if test x"$ac_file" = x-; then | ||
25801 | configure_input= | ||
25802 | else | ||
25803 | configure_input="$ac_file. " | ||
25804 | fi | ||
25805 | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
25806 | sed 's,.*/,,'` by configure." | ||
25807 | |||
25808 | # First look for the input files in the build tree, otherwise in the | ||
25809 | # src tree. | ||
25810 | ac_file_inputs=`IFS=: | ||
25811 | for f in $ac_file_in; do | ||
25812 | case $f in | ||
25813 | -) echo $tmp/stdin ;; | ||
25814 | [\\/$]*) | ||
25815 | # Absolute (can't be DOS-style, as IFS=:) | ||
25816 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
25817 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
25818 | { (exit 1); exit 1; }; } | ||
25819 | echo "$f";; | ||
25820 | *) # Relative | ||
25821 | if test -f "$f"; then | ||
25822 | # Build tree | ||
25823 | echo "$f" | ||
25824 | elif test -f "$srcdir/$f"; then | ||
25825 | # Source tree | ||
25826 | echo "$srcdir/$f" | ||
25827 | else | ||
25828 | # /dev/null tree | ||
25829 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
25830 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
25831 | { (exit 1); exit 1; }; } | ||
25832 | fi;; | ||
25833 | esac | ||
25834 | done` || { (exit 1); exit 1; } | ||
25835 | _ACEOF | ||
25836 | cat >>$CONFIG_STATUS <<_ACEOF | ||
25837 | sed "$ac_vpsub | ||
25838 | $extrasub | ||
25839 | _ACEOF | ||
25840 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25841 | :t | ||
25842 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
25843 | s,@configure_input@,$configure_input,;t t | ||
25844 | s,@srcdir@,$ac_srcdir,;t t | ||
25845 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
25846 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
25847 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
25848 | s,@builddir@,$ac_builddir,;t t | ||
25849 | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
25850 | s,@top_builddir@,$ac_top_builddir,;t t | ||
25851 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
25852 | s,@INSTALL@,$ac_INSTALL,;t t | ||
25853 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
25854 | rm -f $tmp/stdin | ||
25855 | if test x"$ac_file" != x-; then | ||
25856 | mv $tmp/out $ac_file | ||
25857 | else | ||
25858 | cat $tmp/out | ||
25859 | rm -f $tmp/out | ||
25860 | fi | ||
25861 | |||
25862 | done | ||
25863 | _ACEOF | ||
25864 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25865 | |||
25866 | # | ||
25867 | # CONFIG_HEADER section. | ||
25868 | # | ||
25869 | |||
25870 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
25871 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
25872 | # | ||
25873 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
25874 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
25875 | ac_dB='[ ].*$,\1#\2' | ||
25876 | ac_dC=' ' | ||
25877 | ac_dD=',;t' | ||
25878 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
25879 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
25880 | ac_uB='$,\1#\2define\3' | ||
25881 | ac_uC=' ' | ||
25882 | ac_uD=',;t' | ||
25883 | |||
25884 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
25885 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
25886 | case $ac_file in | ||
25887 | - | *:- | *:-:* ) # input from stdin | ||
25888 | cat >$tmp/stdin | ||
25889 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
25890 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
25891 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
25892 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
25893 | * ) ac_file_in=$ac_file.in ;; | ||
25894 | esac | ||
25895 | |||
25896 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
25897 | echo "$as_me: creating $ac_file" >&6;} | ||
25898 | |||
25899 | # First look for the input files in the build tree, otherwise in the | ||
25900 | # src tree. | ||
25901 | ac_file_inputs=`IFS=: | ||
25902 | for f in $ac_file_in; do | ||
25903 | case $f in | ||
25904 | -) echo $tmp/stdin ;; | ||
25905 | [\\/$]*) | ||
25906 | # Absolute (can't be DOS-style, as IFS=:) | ||
25907 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
25908 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
25909 | { (exit 1); exit 1; }; } | ||
25910 | # Do quote $f, to prevent DOS paths from being IFS'd. | ||
25911 | echo "$f";; | ||
25912 | *) # Relative | ||
25913 | if test -f "$f"; then | ||
25914 | # Build tree | ||
25915 | echo "$f" | ||
25916 | elif test -f "$srcdir/$f"; then | ||
25917 | # Source tree | ||
25918 | echo "$srcdir/$f" | ||
25919 | else | ||
25920 | # /dev/null tree | ||
25921 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
25922 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
25923 | { (exit 1); exit 1; }; } | ||
25924 | fi;; | ||
25925 | esac | ||
25926 | done` || { (exit 1); exit 1; } | ||
25927 | # Remove the trailing spaces. | ||
25928 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
25929 | |||
25930 | _ACEOF | ||
25931 | |||
25932 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
25933 | # `conftest.undefs', that substitutes the proper values into | ||
25934 | # config.h.in to produce config.h. The first handles `#define' | ||
25935 | # templates, and the second `#undef' templates. | ||
25936 | # And first: Protect against being on the right side of a sed subst in | ||
25937 | # config.status. Protect against being in an unquoted here document | ||
25938 | # in config.status. | ||
25939 | rm -f conftest.defines conftest.undefs | ||
25940 | # Using a here document instead of a string reduces the quoting nightmare. | ||
25941 | # Putting comments in sed scripts is not portable. | ||
25942 | # | ||
25943 | # `end' is used to avoid that the second main sed command (meant for | ||
25944 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
25945 | # See the Autoconf documentation for `clear'. | ||
25946 | cat >confdef2sed.sed <<\_ACEOF | ||
25947 | s/[\\&,]/\\&/g | ||
25948 | s,[\\$`],\\&,g | ||
25949 | t clear | ||
25950 | : clear | ||
25951 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
25952 | t end | ||
25953 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
25954 | : end | ||
25955 | _ACEOF | ||
25956 | # If some macros were called several times there might be several times | ||
25957 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
25958 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
25959 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
25960 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
25961 | rm -f confdef2sed.sed | ||
25962 | |||
25963 | # This sed command replaces #undef with comments. This is necessary, for | ||
25964 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
25965 | # on some systems where configure will not decide to define it. | ||
25966 | cat >>conftest.undefs <<\_ACEOF | ||
25967 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
25968 | _ACEOF | ||
25969 | |||
25970 | # Break up conftest.defines because some shells have a limit on the size | ||
25971 | # of here documents, and old seds have small limits too (100 cmds). | ||
25972 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
25973 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
25974 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
25975 | echo ' :' >>$CONFIG_STATUS | ||
25976 | rm -f conftest.tail | ||
25977 | while grep . conftest.defines >/dev/null | ||
25978 | do | ||
25979 | # Write a limited-size here document to $tmp/defines.sed. | ||
25980 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
25981 | # Speed up: don't consider the non `#define' lines. | ||
25982 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
25983 | # Work around the forget-to-reset-the-flag bug. | ||
25984 | echo 't clr' >>$CONFIG_STATUS | ||
25985 | echo ': clr' >>$CONFIG_STATUS | ||
25986 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
25987 | echo 'CEOF | ||
25988 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
25989 | rm -f $tmp/in | ||
25990 | mv $tmp/out $tmp/in | ||
25991 | ' >>$CONFIG_STATUS | ||
25992 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
25993 | rm -f conftest.defines | ||
25994 | mv conftest.tail conftest.defines | ||
25995 | done | ||
25996 | rm -f conftest.defines | ||
25997 | echo ' fi # grep' >>$CONFIG_STATUS | ||
25998 | echo >>$CONFIG_STATUS | ||
25999 | |||
26000 | # Break up conftest.undefs because some shells have a limit on the size | ||
26001 | # of here documents, and old seds have small limits too (100 cmds). | ||
26002 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
26003 | rm -f conftest.tail | ||
26004 | while grep . conftest.undefs >/dev/null | ||
26005 | do | ||
26006 | # Write a limited-size here document to $tmp/undefs.sed. | ||
26007 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
26008 | # Speed up: don't consider the non `#undef' | ||
26009 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
26010 | # Work around the forget-to-reset-the-flag bug. | ||
26011 | echo 't clr' >>$CONFIG_STATUS | ||
26012 | echo ': clr' >>$CONFIG_STATUS | ||
26013 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
26014 | echo 'CEOF | ||
26015 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
26016 | rm -f $tmp/in | ||
26017 | mv $tmp/out $tmp/in | ||
26018 | ' >>$CONFIG_STATUS | ||
26019 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
26020 | rm -f conftest.undefs | ||
26021 | mv conftest.tail conftest.undefs | ||
26022 | done | ||
26023 | rm -f conftest.undefs | ||
26024 | |||
26025 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
26026 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
26027 | # use $as_me), people would be surprised to read: | ||
26028 | # /* config.h. Generated by config.status. */ | ||
26029 | if test x"$ac_file" = x-; then | ||
26030 | echo "/* Generated by configure. */" >$tmp/config.h | ||
26031 | else | ||
26032 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
26033 | fi | ||
26034 | cat $tmp/in >>$tmp/config.h | ||
26035 | rm -f $tmp/in | ||
26036 | if test x"$ac_file" != x-; then | ||
26037 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | ||
26038 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
26039 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
26040 | else | ||
26041 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
26042 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
26043 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
26044 | X"$ac_file" : 'X\(//\)$' \| \ | ||
26045 | X"$ac_file" : 'X\(/\)' \| \ | ||
26046 | . : '\(.\)' 2>/dev/null || | ||
26047 | echo X"$ac_file" | | ||
26048 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
26049 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
26050 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
26051 | /^X\(\/\).*/{ s//\1/; q; } | ||
26052 | s/.*/./; q'` | ||
26053 | { if $as_mkdir_p; then | ||
26054 | mkdir -p "$ac_dir" | ||
26055 | else | ||
26056 | as_dir="$ac_dir" | ||
26057 | as_dirs= | ||
26058 | while test ! -d "$as_dir"; do | ||
26059 | as_dirs="$as_dir $as_dirs" | ||
26060 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
26061 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
26062 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
26063 | X"$as_dir" : 'X\(//\)$' \| \ | ||
26064 | X"$as_dir" : 'X\(/\)' \| \ | ||
26065 | . : '\(.\)' 2>/dev/null || | ||
26066 | echo X"$as_dir" | | ||
26067 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
26068 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
26069 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
26070 | /^X\(\/\).*/{ s//\1/; q; } | ||
26071 | s/.*/./; q'` | ||
26072 | done | ||
26073 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
26074 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
26075 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
26076 | { (exit 1); exit 1; }; }; } | ||
26077 | |||
26078 | rm -f $ac_file | ||
26079 | mv $tmp/config.h $ac_file | ||
26080 | fi | ||
26081 | else | ||
26082 | cat $tmp/config.h | ||
26083 | rm -f $tmp/config.h | ||
26084 | fi | ||
26085 | done | ||
26086 | _ACEOF | ||
26087 | |||
26088 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
26089 | |||
26090 | { (exit 0); exit 0; } | ||
26091 | _ACEOF | ||
26092 | chmod +x $CONFIG_STATUS | ||
26093 | ac_clean_files=$ac_clean_files_save | ||
26094 | |||
26095 | |||
26096 | # configure is writing to config.log, and then calls config.status. | ||
26097 | # config.status does its own redirection, appending to config.log. | ||
26098 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
26099 | # by configure, so config.status won't be able to write to it; its | ||
26100 | # output is simply discarded. So we exec the FD to /dev/null, | ||
26101 | # effectively closing config.log, so it can be properly (re)opened and | ||
26102 | # appended to by config.status. When coming back to configure, we | ||
26103 | # need to make the FD available again. | ||
26104 | if test "$no_create" != yes; then | ||
26105 | ac_cs_success=: | ||
26106 | ac_config_status_args= | ||
26107 | test "$silent" = yes && | ||
26108 | ac_config_status_args="$ac_config_status_args --quiet" | ||
26109 | exec 5>/dev/null | ||
26110 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
26111 | exec 5>>config.log | ||
26112 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
26113 | # would make configure fail if this is the last instruction. | ||
26114 | $ac_cs_success || { (exit 1); exit 1; } | ||
26115 | fi | ||
26116 | |||
26117 | |||
26118 | # Print summary of options | ||
26119 | |||
26120 | # Someone please show me a better way :) | ||
26121 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
26122 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
26123 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
26124 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
26125 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
26126 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
26127 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
26128 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
26129 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
26130 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
26131 | |||
26132 | echo "" | ||
26133 | echo "OpenSSH has been configured with the following options:" | ||
26134 | echo " User binaries: $B" | ||
26135 | echo " System binaries: $C" | ||
26136 | echo " Configuration files: $D" | ||
26137 | echo " Askpass program: $E" | ||
26138 | echo " Manual pages: $F" | ||
26139 | echo " PID file: $G" | ||
26140 | echo " Privilege separation chroot path: $H" | ||
26141 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
26142 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
26143 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
26144 | else | ||
26145 | echo " sshd default user PATH: $I" | ||
26146 | if test ! -z "$external_path_file"; then | ||
26147 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
26148 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
26149 | fi | ||
26150 | fi | ||
26151 | if test ! -z "$superuser_path" ; then | ||
26152 | echo " sshd superuser user PATH: $J" | ||
26153 | fi | ||
26154 | echo " Manpage format: $MANTYPE" | ||
26155 | echo " PAM support: $PAM_MSG" | ||
26156 | echo " KerberosV support: $KRB5_MSG" | ||
26157 | echo " Smartcard support: $SCARD_MSG" | ||
26158 | echo " S/KEY support: $SKEY_MSG" | ||
26159 | echo " TCP Wrappers support: $TCPW_MSG" | ||
26160 | echo " MD5 password support: $MD5_MSG" | ||
26161 | echo " libedit support: $LIBEDIT_MSG" | ||
26162 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
26163 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
26164 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
26165 | echo " Random number source: $RAND_MSG" | ||
26166 | if test ! -z "$USE_RAND_HELPER" ; then | ||
26167 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
26168 | fi | ||
26169 | |||
26170 | echo "" | ||
26171 | |||
26172 | echo " Host: ${host}" | ||
26173 | echo " Compiler: ${CC}" | ||
26174 | echo " Compiler flags: ${CFLAGS}" | ||
26175 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
26176 | echo " Linker flags: ${LDFLAGS}" | ||
26177 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
26178 | |||
26179 | echo "" | ||
26180 | |||
26181 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
26182 | echo "SVR4 style packages are supported with \"make package\"" | ||
26183 | echo "" | ||
26184 | fi | ||
26185 | |||
26186 | if test "x$PAM_MSG" = "xyes" ; then | ||
26187 | echo "PAM is enabled. You may need to install a PAM control file " | ||
26188 | echo "for sshd, otherwise password authentication may fail. " | ||
26189 | echo "Example PAM control files can be found in the contrib/ " | ||
26190 | echo "subdirectory" | ||
26191 | echo "" | ||
26192 | fi | ||
26193 | |||
26194 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
26195 | echo "WARNING: you are using the builtin random number collection " | ||
26196 | echo "service. Please read WARNING.RNG and request that your OS " | ||
26197 | echo "vendor includes kernel-based random number collection in " | ||
26198 | echo "future versions of your OS." | ||
26199 | echo "" | ||
26200 | fi | ||
26201 | |||
26202 | if test ! -z "$NO_PEERCHECK" ; then | ||
26203 | echo "WARNING: the operating system that you are using does not " | ||
26204 | echo "appear to support either the getpeereid() API nor the " | ||
26205 | echo "SO_PEERCRED getsockopt() option. These facilities are used to " | ||
26206 | echo "enforce security checks to prevent unauthorised connections to " | ||
26207 | echo "ssh-agent. Their absence increases the risk that a malicious " | ||
26208 | echo "user can connect to your agent. " | ||
26209 | echo "" | ||
26210 | fi | ||
26211 | |||
26212 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
26213 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
26214 | echo "See the Solaris section in README.platform for details." | ||
26215 | fi | ||