diff options
author | Colin Watson <cjwatson@debian.org> | 2004-05-01 11:28:49 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2004-05-01 11:28:49 +0000 |
commit | 16f1d21ea191deaaeeba719d01c0ad82aa044653 (patch) | |
tree | 0e52caec9e5c0e1ad3494e62bd1bc1b776a738a0 /configure | |
parent | bd5f26f25dbbb93a9f9d3850c200a17a753ceee1 (diff) | |
parent | f5bda272678ec6dccaa5f29379cf60cb855018e8 (diff) |
Import OpenSSH 3.8.1p1.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18298 |
1 files changed, 18298 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..70fd4feaa --- /dev/null +++ b/configure | |||
@@ -0,0 +1,18298 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by Autoconf 2.52. | ||
4 | # | ||
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
6 | # Free Software Foundation, Inc. | ||
7 | # This configure script is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy, distribute and modify it. | ||
9 | |||
10 | # Avoid depending upon Character Ranges. | ||
11 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
12 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
13 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
14 | as_cr_digits='0123456789' | ||
15 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
16 | |||
17 | # Sed expression to map a string onto a valid variable name. | ||
18 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
19 | |||
20 | # Sed expression to map a string onto a valid CPP name. | ||
21 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
22 | |||
23 | # Be Bourne compatible | ||
24 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
25 | emulate sh | ||
26 | NULLCMD=: | ||
27 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
28 | set -o posix | ||
29 | fi | ||
30 | |||
31 | # Name of the executable. | ||
32 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | ||
33 | |||
34 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
35 | as_expr=expr | ||
36 | else | ||
37 | as_expr=false | ||
38 | fi | ||
39 | |||
40 | rm -f conf$$ conf$$.exe conf$$.file | ||
41 | echo >conf$$.file | ||
42 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
43 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
44 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
45 | if test -f conf$$.exe; then | ||
46 | # Don't use ln at all; we don't have any links | ||
47 | as_ln_s='cp -p' | ||
48 | else | ||
49 | as_ln_s='ln -s' | ||
50 | fi | ||
51 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
52 | as_ln_s=ln | ||
53 | else | ||
54 | as_ln_s='cp -p' | ||
55 | fi | ||
56 | rm -f conf$$ conf$$.exe conf$$.file | ||
57 | |||
58 | as_executable_p="test -f" | ||
59 | |||
60 | # Support unset when possible. | ||
61 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
62 | as_unset=unset | ||
63 | else | ||
64 | as_unset=false | ||
65 | fi | ||
66 | |||
67 | # NLS nuisances. | ||
68 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | ||
69 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | ||
70 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | ||
71 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | ||
72 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | ||
73 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | ||
74 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | ||
75 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | ||
76 | |||
77 | # IFS | ||
78 | # We need space, tab and new line, in precisely that order. | ||
79 | as_nl=' | ||
80 | ' | ||
81 | IFS=" $as_nl" | ||
82 | |||
83 | # CDPATH. | ||
84 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | ||
85 | |||
86 | # Name of the host. | ||
87 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
88 | # so uname gets run too. | ||
89 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
90 | |||
91 | exec 6>&1 | ||
92 | |||
93 | # | ||
94 | # Initializations. | ||
95 | # | ||
96 | ac_default_prefix=/usr/local | ||
97 | cross_compiling=no | ||
98 | subdirs= | ||
99 | MFLAGS= MAKEFLAGS= | ||
100 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
101 | |||
102 | # Maximum number of lines to put in a shell here document. | ||
103 | # This variable seems obsolete. It should probably be removed, and | ||
104 | # only ac_max_sed_lines should be used. | ||
105 | : ${ac_max_here_lines=38} | ||
106 | |||
107 | ac_unique_file="ssh.c" | ||
108 | # Factoring default headers for most tests. | ||
109 | ac_includes_default="\ | ||
110 | #include <stdio.h> | ||
111 | #if HAVE_SYS_TYPES_H | ||
112 | # include <sys/types.h> | ||
113 | #endif | ||
114 | #if HAVE_SYS_STAT_H | ||
115 | # include <sys/stat.h> | ||
116 | #endif | ||
117 | #if STDC_HEADERS | ||
118 | # include <stdlib.h> | ||
119 | # include <stddef.h> | ||
120 | #else | ||
121 | # if HAVE_STDLIB_H | ||
122 | # include <stdlib.h> | ||
123 | # endif | ||
124 | #endif | ||
125 | #if HAVE_STRING_H | ||
126 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
127 | # include <memory.h> | ||
128 | # endif | ||
129 | # include <string.h> | ||
130 | #endif | ||
131 | #if HAVE_STRINGS_H | ||
132 | # include <strings.h> | ||
133 | #endif | ||
134 | #if HAVE_INTTYPES_H | ||
135 | # include <inttypes.h> | ||
136 | #else | ||
137 | # if HAVE_STDINT_H | ||
138 | # include <stdint.h> | ||
139 | # endif | ||
140 | #endif | ||
141 | #if HAVE_UNISTD_H | ||
142 | # include <unistd.h> | ||
143 | #endif" | ||
144 | |||
145 | # Initialize some variables set by options. | ||
146 | ac_init_help= | ||
147 | ac_init_version=false | ||
148 | # The variables have the same names as the options, with | ||
149 | # dashes changed to underlines. | ||
150 | cache_file=/dev/null | ||
151 | exec_prefix=NONE | ||
152 | no_create= | ||
153 | no_recursion= | ||
154 | prefix=NONE | ||
155 | program_prefix=NONE | ||
156 | program_suffix=NONE | ||
157 | program_transform_name=s,x,x, | ||
158 | silent= | ||
159 | site= | ||
160 | srcdir= | ||
161 | verbose= | ||
162 | x_includes=NONE | ||
163 | x_libraries=NONE | ||
164 | |||
165 | # Installation directory options. | ||
166 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
167 | # and all the variables that are supposed to be based on exec_prefix | ||
168 | # by default will actually change. | ||
169 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
170 | bindir='${exec_prefix}/bin' | ||
171 | sbindir='${exec_prefix}/sbin' | ||
172 | libexecdir='${exec_prefix}/libexec' | ||
173 | datadir='${prefix}/share' | ||
174 | sysconfdir='${prefix}/etc' | ||
175 | sharedstatedir='${prefix}/com' | ||
176 | localstatedir='${prefix}/var' | ||
177 | libdir='${exec_prefix}/lib' | ||
178 | includedir='${prefix}/include' | ||
179 | oldincludedir='/usr/include' | ||
180 | infodir='${prefix}/info' | ||
181 | mandir='${prefix}/man' | ||
182 | |||
183 | # Identity of this package. | ||
184 | PACKAGE_NAME= | ||
185 | PACKAGE_TARNAME= | ||
186 | PACKAGE_VERSION= | ||
187 | PACKAGE_STRING= | ||
188 | PACKAGE_BUGREPORT= | ||
189 | |||
190 | ac_prev= | ||
191 | for ac_option | ||
192 | do | ||
193 | # If the previous option needs an argument, assign it. | ||
194 | if test -n "$ac_prev"; then | ||
195 | eval "$ac_prev=\$ac_option" | ||
196 | ac_prev= | ||
197 | continue | ||
198 | fi | ||
199 | |||
200 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
201 | |||
202 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
203 | |||
204 | case $ac_option in | ||
205 | |||
206 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
207 | ac_prev=bindir ;; | ||
208 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
209 | bindir=$ac_optarg ;; | ||
210 | |||
211 | -build | --build | --buil | --bui | --bu) | ||
212 | ac_prev=build_alias ;; | ||
213 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
214 | build_alias=$ac_optarg ;; | ||
215 | |||
216 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
217 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
218 | ac_prev=cache_file ;; | ||
219 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
220 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
221 | cache_file=$ac_optarg ;; | ||
222 | |||
223 | --config-cache | -C) | ||
224 | cache_file=config.cache ;; | ||
225 | |||
226 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
227 | ac_prev=datadir ;; | ||
228 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
229 | | --da=*) | ||
230 | datadir=$ac_optarg ;; | ||
231 | |||
232 | -disable-* | --disable-*) | ||
233 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
234 | # Reject names that are not valid shell variable names. | ||
235 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
236 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
237 | { (exit 1); exit 1; }; } | ||
238 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
239 | eval "enable_$ac_feature=no" ;; | ||
240 | |||
241 | -enable-* | --enable-*) | ||
242 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
243 | # Reject names that are not valid shell variable names. | ||
244 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
245 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
246 | { (exit 1); exit 1; }; } | ||
247 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
248 | case $ac_option in | ||
249 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
250 | *) ac_optarg=yes ;; | ||
251 | esac | ||
252 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
253 | |||
254 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
255 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
256 | | --exec | --exe | --ex) | ||
257 | ac_prev=exec_prefix ;; | ||
258 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
259 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
260 | | --exec=* | --exe=* | --ex=*) | ||
261 | exec_prefix=$ac_optarg ;; | ||
262 | |||
263 | -gas | --gas | --ga | --g) | ||
264 | # Obsolete; use --with-gas. | ||
265 | with_gas=yes ;; | ||
266 | |||
267 | -help | --help | --hel | --he | -h) | ||
268 | ac_init_help=long ;; | ||
269 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
270 | ac_init_help=recursive ;; | ||
271 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
272 | ac_init_help=short ;; | ||
273 | |||
274 | -host | --host | --hos | --ho) | ||
275 | ac_prev=host_alias ;; | ||
276 | -host=* | --host=* | --hos=* | --ho=*) | ||
277 | host_alias=$ac_optarg ;; | ||
278 | |||
279 | -includedir | --includedir | --includedi | --included | --include \ | ||
280 | | --includ | --inclu | --incl | --inc) | ||
281 | ac_prev=includedir ;; | ||
282 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
283 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
284 | includedir=$ac_optarg ;; | ||
285 | |||
286 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
287 | ac_prev=infodir ;; | ||
288 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
289 | infodir=$ac_optarg ;; | ||
290 | |||
291 | -libdir | --libdir | --libdi | --libd) | ||
292 | ac_prev=libdir ;; | ||
293 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
294 | libdir=$ac_optarg ;; | ||
295 | |||
296 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
297 | | --libexe | --libex | --libe) | ||
298 | ac_prev=libexecdir ;; | ||
299 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
300 | | --libexe=* | --libex=* | --libe=*) | ||
301 | libexecdir=$ac_optarg ;; | ||
302 | |||
303 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
304 | | --localstate | --localstat | --localsta | --localst \ | ||
305 | | --locals | --local | --loca | --loc | --lo) | ||
306 | ac_prev=localstatedir ;; | ||
307 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
308 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
309 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
310 | localstatedir=$ac_optarg ;; | ||
311 | |||
312 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
313 | ac_prev=mandir ;; | ||
314 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
315 | mandir=$ac_optarg ;; | ||
316 | |||
317 | -nfp | --nfp | --nf) | ||
318 | # Obsolete; use --without-fp. | ||
319 | with_fp=no ;; | ||
320 | |||
321 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
322 | | --no-cr | --no-c) | ||
323 | no_create=yes ;; | ||
324 | |||
325 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
326 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
327 | no_recursion=yes ;; | ||
328 | |||
329 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
330 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
331 | | --oldin | --oldi | --old | --ol | --o) | ||
332 | ac_prev=oldincludedir ;; | ||
333 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
334 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
335 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
336 | oldincludedir=$ac_optarg ;; | ||
337 | |||
338 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
339 | ac_prev=prefix ;; | ||
340 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
341 | prefix=$ac_optarg ;; | ||
342 | |||
343 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
344 | | --program-pre | --program-pr | --program-p) | ||
345 | ac_prev=program_prefix ;; | ||
346 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
347 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
348 | program_prefix=$ac_optarg ;; | ||
349 | |||
350 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
351 | | --program-suf | --program-su | --program-s) | ||
352 | ac_prev=program_suffix ;; | ||
353 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
354 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
355 | program_suffix=$ac_optarg ;; | ||
356 | |||
357 | -program-transform-name | --program-transform-name \ | ||
358 | | --program-transform-nam | --program-transform-na \ | ||
359 | | --program-transform-n | --program-transform- \ | ||
360 | | --program-transform | --program-transfor \ | ||
361 | | --program-transfo | --program-transf \ | ||
362 | | --program-trans | --program-tran \ | ||
363 | | --progr-tra | --program-tr | --program-t) | ||
364 | ac_prev=program_transform_name ;; | ||
365 | -program-transform-name=* | --program-transform-name=* \ | ||
366 | | --program-transform-nam=* | --program-transform-na=* \ | ||
367 | | --program-transform-n=* | --program-transform-=* \ | ||
368 | | --program-transform=* | --program-transfor=* \ | ||
369 | | --program-transfo=* | --program-transf=* \ | ||
370 | | --program-trans=* | --program-tran=* \ | ||
371 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
372 | program_transform_name=$ac_optarg ;; | ||
373 | |||
374 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
375 | | -silent | --silent | --silen | --sile | --sil) | ||
376 | silent=yes ;; | ||
377 | |||
378 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
379 | ac_prev=sbindir ;; | ||
380 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
381 | | --sbi=* | --sb=*) | ||
382 | sbindir=$ac_optarg ;; | ||
383 | |||
384 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
385 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
386 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
387 | | --sha | --sh) | ||
388 | ac_prev=sharedstatedir ;; | ||
389 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
390 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
391 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
392 | | --sha=* | --sh=*) | ||
393 | sharedstatedir=$ac_optarg ;; | ||
394 | |||
395 | -site | --site | --sit) | ||
396 | ac_prev=site ;; | ||
397 | -site=* | --site=* | --sit=*) | ||
398 | site=$ac_optarg ;; | ||
399 | |||
400 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
401 | ac_prev=srcdir ;; | ||
402 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
403 | srcdir=$ac_optarg ;; | ||
404 | |||
405 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
406 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
407 | ac_prev=sysconfdir ;; | ||
408 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
409 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
410 | sysconfdir=$ac_optarg ;; | ||
411 | |||
412 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
413 | ac_prev=target_alias ;; | ||
414 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
415 | target_alias=$ac_optarg ;; | ||
416 | |||
417 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
418 | verbose=yes ;; | ||
419 | |||
420 | -version | --version | --versio | --versi | --vers | -V) | ||
421 | ac_init_version=: ;; | ||
422 | |||
423 | -with-* | --with-*) | ||
424 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
425 | # Reject names that are not valid shell variable names. | ||
426 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
427 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
428 | { (exit 1); exit 1; }; } | ||
429 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
430 | case $ac_option in | ||
431 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
432 | *) ac_optarg=yes ;; | ||
433 | esac | ||
434 | eval "with_$ac_package='$ac_optarg'" ;; | ||
435 | |||
436 | -without-* | --without-*) | ||
437 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
438 | # Reject names that are not valid shell variable names. | ||
439 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
440 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
441 | { (exit 1); exit 1; }; } | ||
442 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
443 | eval "with_$ac_package=no" ;; | ||
444 | |||
445 | --x) | ||
446 | # Obsolete; use --with-x. | ||
447 | with_x=yes ;; | ||
448 | |||
449 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
450 | | --x-incl | --x-inc | --x-in | --x-i) | ||
451 | ac_prev=x_includes ;; | ||
452 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
453 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
454 | x_includes=$ac_optarg ;; | ||
455 | |||
456 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
457 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
458 | ac_prev=x_libraries ;; | ||
459 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
460 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
461 | x_libraries=$ac_optarg ;; | ||
462 | |||
463 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
464 | Try \`$0 --help' for more information." >&2 | ||
465 | { (exit 1); exit 1; }; } | ||
466 | ;; | ||
467 | |||
468 | *=*) | ||
469 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
470 | # Reject names that are not valid shell variable names. | ||
471 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
472 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
473 | { (exit 1); exit 1; }; } | ||
474 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
475 | eval "$ac_envvar='$ac_optarg'" | ||
476 | export $ac_envvar ;; | ||
477 | |||
478 | *) | ||
479 | # FIXME: should be removed in autoconf 3.0. | ||
480 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
481 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
482 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
483 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
484 | ;; | ||
485 | |||
486 | esac | ||
487 | done | ||
488 | |||
489 | if test -n "$ac_prev"; then | ||
490 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
491 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
492 | { (exit 1); exit 1; }; } | ||
493 | fi | ||
494 | |||
495 | # Be sure to have absolute paths. | ||
496 | for ac_var in exec_prefix prefix | ||
497 | do | ||
498 | eval ac_val=$`echo $ac_var` | ||
499 | case $ac_val in | ||
500 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
501 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | ||
502 | { (exit 1); exit 1; }; };; | ||
503 | esac | ||
504 | done | ||
505 | |||
506 | # Be sure to have absolute paths. | ||
507 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
508 | localstatedir libdir includedir oldincludedir infodir mandir | ||
509 | do | ||
510 | eval ac_val=$`echo $ac_var` | ||
511 | case $ac_val in | ||
512 | [\\/$]* | ?:[\\/]* ) ;; | ||
513 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | ||
514 | { (exit 1); exit 1; }; };; | ||
515 | esac | ||
516 | done | ||
517 | |||
518 | # There might be people who depend on the old broken behavior: `$host' | ||
519 | # used to hold the argument of --host etc. | ||
520 | build=$build_alias | ||
521 | host=$host_alias | ||
522 | target=$target_alias | ||
523 | |||
524 | # FIXME: should be removed in autoconf 3.0. | ||
525 | if test "x$host_alias" != x; then | ||
526 | if test "x$build_alias" = x; then | ||
527 | cross_compiling=maybe | ||
528 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
529 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
530 | elif test "x$build_alias" != "x$host_alias"; then | ||
531 | cross_compiling=yes | ||
532 | fi | ||
533 | fi | ||
534 | |||
535 | ac_tool_prefix= | ||
536 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
537 | |||
538 | test "$silent" = yes && exec 6>/dev/null | ||
539 | |||
540 | # Find the source files, if location was not specified. | ||
541 | if test -z "$srcdir"; then | ||
542 | ac_srcdir_defaulted=yes | ||
543 | # Try the directory containing this script, then its parent. | ||
544 | ac_prog=$0 | ||
545 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` | ||
546 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | ||
547 | srcdir=$ac_confdir | ||
548 | if test ! -r $srcdir/$ac_unique_file; then | ||
549 | srcdir=.. | ||
550 | fi | ||
551 | else | ||
552 | ac_srcdir_defaulted=no | ||
553 | fi | ||
554 | if test ! -r $srcdir/$ac_unique_file; then | ||
555 | if test "$ac_srcdir_defaulted" = yes; then | ||
556 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 | ||
557 | { (exit 1); exit 1; }; } | ||
558 | else | ||
559 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 | ||
560 | { (exit 1); exit 1; }; } | ||
561 | fi | ||
562 | fi | ||
563 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
564 | ac_env_build_alias_set=${build_alias+set} | ||
565 | ac_env_build_alias_value=$build_alias | ||
566 | ac_cv_env_build_alias_set=${build_alias+set} | ||
567 | ac_cv_env_build_alias_value=$build_alias | ||
568 | ac_env_host_alias_set=${host_alias+set} | ||
569 | ac_env_host_alias_value=$host_alias | ||
570 | ac_cv_env_host_alias_set=${host_alias+set} | ||
571 | ac_cv_env_host_alias_value=$host_alias | ||
572 | ac_env_target_alias_set=${target_alias+set} | ||
573 | ac_env_target_alias_value=$target_alias | ||
574 | ac_cv_env_target_alias_set=${target_alias+set} | ||
575 | ac_cv_env_target_alias_value=$target_alias | ||
576 | ac_env_CC_set=${CC+set} | ||
577 | ac_env_CC_value=$CC | ||
578 | ac_cv_env_CC_set=${CC+set} | ||
579 | ac_cv_env_CC_value=$CC | ||
580 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
581 | ac_env_CFLAGS_value=$CFLAGS | ||
582 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
583 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
584 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
585 | ac_env_LDFLAGS_value=$LDFLAGS | ||
586 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
587 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
588 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
589 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
590 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
591 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
592 | ac_env_CPP_set=${CPP+set} | ||
593 | ac_env_CPP_value=$CPP | ||
594 | ac_cv_env_CPP_set=${CPP+set} | ||
595 | ac_cv_env_CPP_value=$CPP | ||
596 | |||
597 | # | ||
598 | # Report the --help message. | ||
599 | # | ||
600 | if test "$ac_init_help" = "long"; then | ||
601 | # Omit some internal or obsolete options to make the list less imposing. | ||
602 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
603 | cat <<EOF | ||
604 | \`configure' configures this package to adapt to many kinds of systems. | ||
605 | |||
606 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
607 | |||
608 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
609 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
610 | |||
611 | Defaults for the options are specified in brackets. | ||
612 | |||
613 | Configuration: | ||
614 | -h, --help display this help and exit | ||
615 | --help=short display options specific to this package | ||
616 | --help=recursive display the short help of all the included packages | ||
617 | -V, --version display version information and exit | ||
618 | -q, --quiet, --silent do not print \`checking...' messages | ||
619 | --cache-file=FILE cache test results in FILE [disabled] | ||
620 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
621 | -n, --no-create do not create output files | ||
622 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
623 | |||
624 | EOF | ||
625 | |||
626 | cat <<EOF | ||
627 | Installation directories: | ||
628 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
629 | [$ac_default_prefix] | ||
630 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
631 | [PREFIX] | ||
632 | |||
633 | By default, \`make install' will install all the files in | ||
634 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
635 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
636 | for instance \`--prefix=\$HOME'. | ||
637 | |||
638 | For better control, use the options below. | ||
639 | |||
640 | Fine tuning of the installation directories: | ||
641 | --bindir=DIR user executables [EPREFIX/bin] | ||
642 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
643 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
644 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
645 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
646 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
647 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
648 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
649 | --includedir=DIR C header files [PREFIX/include] | ||
650 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
651 | --infodir=DIR info documentation [PREFIX/info] | ||
652 | --mandir=DIR man documentation [PREFIX/man] | ||
653 | EOF | ||
654 | |||
655 | cat <<\EOF | ||
656 | |||
657 | System types: | ||
658 | --build=BUILD configure for building on BUILD [guessed] | ||
659 | --host=HOST build programs to run on HOST [BUILD] | ||
660 | EOF | ||
661 | fi | ||
662 | |||
663 | if test -n "$ac_init_help"; then | ||
664 | |||
665 | cat <<\EOF | ||
666 | |||
667 | Optional Features: | ||
668 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
669 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
670 | --disable-largefile omit support for large files | ||
671 | --disable-strip Disable calling strip(1) on install | ||
672 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
673 | --disable-lastlog disable use of lastlog even if detected no | ||
674 | --disable-utmp disable use of utmp even if detected no | ||
675 | --disable-utmpx disable use of utmpx even if detected no | ||
676 | --disable-wtmp disable use of wtmp even if detected no | ||
677 | --disable-wtmpx disable use of wtmpx even if detected no | ||
678 | --disable-libutil disable use of libutil (login() etc.) no | ||
679 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
680 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
681 | |||
682 | Optional Packages: | ||
683 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
684 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
685 | --without-rpath Disable auto-added -R linker paths | ||
686 | --with-osfsia Enable Digital Unix SIA | ||
687 | --with-cflags Specify additional flags to pass to compiler | ||
688 | --with-cppflags Specify additional flags to pass to preprocessor | ||
689 | --with-ldflags Specify additional flags to pass to linker | ||
690 | --with-libs Specify additional libraries to link with | ||
691 | --with-zlib=PATH Use zlib in PATH | ||
692 | --without-zlib-version-check Disable zlib version check | ||
693 | --with-skey[=PATH] Enable S/Key support | ||
694 | (optionally in PATH) | ||
695 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support | ||
696 | (optionally in PATH) | ||
697 | --with-pam Enable PAM support | ||
698 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
699 | --with-rand-helper Use subprocess to gather strong randomness | ||
700 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
701 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
702 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
703 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
704 | --with-sectok Enable smartcard support using libsectok | ||
705 | --with-opensc=PFX Enable smartcard support using OpenSC | ||
706 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
707 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
708 | --with-xauth=PATH Specify path to xauth program | ||
709 | --with-mantype=man|cat|doc Set man page type | ||
710 | --with-md5-passwords Enable use of MD5 passwords | ||
711 | --without-shadow Disable shadow password support | ||
712 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
713 | --with-default-path= Specify default \$PATH environment for server | ||
714 | --with-superuser-path= Specify different path for super-user | ||
715 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
716 | --with-bsd-auth Enable BSD auth support | ||
717 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
718 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
719 | |||
720 | Some influential environment variables: | ||
721 | CC C compiler command | ||
722 | CFLAGS C compiler flags | ||
723 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
724 | nonstandard directory <lib dir> | ||
725 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
726 | headers in a nonstandard directory <include dir> | ||
727 | CPP C preprocessor | ||
728 | |||
729 | Use these variables to override the choices made by `configure' or to help | ||
730 | it to find libraries and programs with nonstandard names/locations. | ||
731 | |||
732 | EOF | ||
733 | fi | ||
734 | |||
735 | if test "$ac_init_help" = "recursive"; then | ||
736 | # If there are subdirs, report their specific --help. | ||
737 | ac_popdir=`pwd` | ||
738 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | ||
739 | cd $ac_subdir | ||
740 | # A "../" for each directory in /$ac_subdir. | ||
741 | ac_dots=`echo $ac_subdir | | ||
742 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | ||
743 | |||
744 | case $srcdir in | ||
745 | .) # No --srcdir option. We are building in place. | ||
746 | ac_sub_srcdir=$srcdir ;; | ||
747 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
748 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | ||
749 | *) # Relative path. | ||
750 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | ||
751 | esac | ||
752 | |||
753 | # Check for guested configure; otherwise get Cygnus style configure. | ||
754 | if test -f $ac_sub_srcdir/configure.gnu; then | ||
755 | echo | ||
756 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | ||
757 | elif test -f $ac_sub_srcdir/configure; then | ||
758 | echo | ||
759 | $SHELL $ac_sub_srcdir/configure --help=recursive | ||
760 | elif test -f $ac_sub_srcdir/configure.ac || | ||
761 | test -f $ac_sub_srcdir/configure.in; then | ||
762 | echo | ||
763 | $ac_configure --help | ||
764 | else | ||
765 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | ||
766 | fi | ||
767 | cd $ac_popdir | ||
768 | done | ||
769 | fi | ||
770 | |||
771 | test -n "$ac_init_help" && exit 0 | ||
772 | if $ac_init_version; then | ||
773 | cat <<\EOF | ||
774 | |||
775 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
776 | Free Software Foundation, Inc. | ||
777 | This configure script is free software; the Free Software Foundation | ||
778 | gives unlimited permission to copy, distribute and modify it. | ||
779 | EOF | ||
780 | exit 0 | ||
781 | fi | ||
782 | exec 5>config.log | ||
783 | cat >&5 <<EOF | ||
784 | This file contains any messages produced by compilers while | ||
785 | running configure, to aid debugging if configure makes a mistake. | ||
786 | |||
787 | It was created by $as_me, which was | ||
788 | generated by GNU Autoconf 2.52. Invocation command line was | ||
789 | |||
790 | $ $0 $@ | ||
791 | |||
792 | EOF | ||
793 | { | ||
794 | cat <<_ASUNAME | ||
795 | ## ---------- ## | ||
796 | ## Platform. ## | ||
797 | ## ---------- ## | ||
798 | |||
799 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
800 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
801 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
802 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
803 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
804 | |||
805 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
806 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
807 | |||
808 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
809 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
810 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
811 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
812 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
813 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
814 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
815 | |||
816 | PATH = $PATH | ||
817 | |||
818 | _ASUNAME | ||
819 | } >&5 | ||
820 | |||
821 | cat >&5 <<EOF | ||
822 | ## ------------ ## | ||
823 | ## Core tests. ## | ||
824 | ## ------------ ## | ||
825 | |||
826 | EOF | ||
827 | |||
828 | # Keep a trace of the command line. | ||
829 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
830 | # Also quote any args containing shell meta-characters. | ||
831 | ac_configure_args= | ||
832 | ac_sep= | ||
833 | for ac_arg | ||
834 | do | ||
835 | case $ac_arg in | ||
836 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
837 | | --no-cr | --no-c) ;; | ||
838 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
839 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | ||
840 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
841 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | ||
842 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
843 | ac_sep=" " ;; | ||
844 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | ||
845 | ac_sep=" " ;; | ||
846 | esac | ||
847 | # Get rid of the leading space. | ||
848 | done | ||
849 | |||
850 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
851 | # config.log. We remove comments because anyway the quotes in there | ||
852 | # would cause problems or look ugly. | ||
853 | trap 'exit_status=$? | ||
854 | # Save into config.log some information that might help in debugging. | ||
855 | echo >&5 | ||
856 | echo "## ----------------- ##" >&5 | ||
857 | echo "## Cache variables. ##" >&5 | ||
858 | echo "## ----------------- ##" >&5 | ||
859 | echo >&5 | ||
860 | # The following way of writing the cache mishandles newlines in values, | ||
861 | { | ||
862 | (set) 2>&1 | | ||
863 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
864 | *ac_space=\ *) | ||
865 | sed -n \ | ||
866 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
867 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
868 | ;; | ||
869 | *) | ||
870 | sed -n \ | ||
871 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
872 | ;; | ||
873 | esac; | ||
874 | } >&5 | ||
875 | sed "/^$/d" confdefs.h >conftest.log | ||
876 | if test -s conftest.log; then | ||
877 | echo >&5 | ||
878 | echo "## ------------ ##" >&5 | ||
879 | echo "## confdefs.h. ##" >&5 | ||
880 | echo "## ------------ ##" >&5 | ||
881 | echo >&5 | ||
882 | cat conftest.log >&5 | ||
883 | fi | ||
884 | (echo; echo) >&5 | ||
885 | test "$ac_signal" != 0 && | ||
886 | echo "$as_me: caught signal $ac_signal" >&5 | ||
887 | echo "$as_me: exit $exit_status" >&5 | ||
888 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | ||
889 | exit $exit_status | ||
890 | ' 0 | ||
891 | for ac_signal in 1 2 13 15; do | ||
892 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
893 | done | ||
894 | ac_signal=0 | ||
895 | |||
896 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
897 | rm -rf conftest* confdefs.h | ||
898 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
899 | echo >confdefs.h | ||
900 | |||
901 | # Let the site file select an alternate cache file if it wants to. | ||
902 | # Prefer explicitly selected file to automatically selected ones. | ||
903 | if test -z "$CONFIG_SITE"; then | ||
904 | if test "x$prefix" != xNONE; then | ||
905 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
906 | else | ||
907 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
908 | fi | ||
909 | fi | ||
910 | for ac_site_file in $CONFIG_SITE; do | ||
911 | if test -r "$ac_site_file"; then | ||
912 | { echo "$as_me:912: loading site script $ac_site_file" >&5 | ||
913 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
914 | cat "$ac_site_file" >&5 | ||
915 | . "$ac_site_file" | ||
916 | fi | ||
917 | done | ||
918 | |||
919 | if test -r "$cache_file"; then | ||
920 | # Some versions of bash will fail to source /dev/null (special | ||
921 | # files actually), so we avoid doing that. | ||
922 | if test -f "$cache_file"; then | ||
923 | { echo "$as_me:923: loading cache $cache_file" >&5 | ||
924 | echo "$as_me: loading cache $cache_file" >&6;} | ||
925 | case $cache_file in | ||
926 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
927 | *) . ./$cache_file;; | ||
928 | esac | ||
929 | fi | ||
930 | else | ||
931 | { echo "$as_me:931: creating cache $cache_file" >&5 | ||
932 | echo "$as_me: creating cache $cache_file" >&6;} | ||
933 | >$cache_file | ||
934 | fi | ||
935 | |||
936 | # Check that the precious variables saved in the cache have kept the same | ||
937 | # value. | ||
938 | ac_cache_corrupted=false | ||
939 | for ac_var in `(set) 2>&1 | | ||
940 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
941 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
942 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
943 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
944 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
945 | case $ac_old_set,$ac_new_set in | ||
946 | set,) | ||
947 | { echo "$as_me:947: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
948 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
949 | ac_cache_corrupted=: ;; | ||
950 | ,set) | ||
951 | { echo "$as_me:951: error: \`$ac_var' was not set in the previous run" >&5 | ||
952 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
953 | ac_cache_corrupted=: ;; | ||
954 | ,);; | ||
955 | *) | ||
956 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
957 | { echo "$as_me:957: error: \`$ac_var' has changed since the previous run:" >&5 | ||
958 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
959 | { echo "$as_me:959: former value: $ac_old_val" >&5 | ||
960 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
961 | { echo "$as_me:961: current value: $ac_new_val" >&5 | ||
962 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
963 | ac_cache_corrupted=: | ||
964 | fi;; | ||
965 | esac | ||
966 | # Pass precious variables to config.status. It doesn't matter if | ||
967 | # we pass some twice (in addition to the command line arguments). | ||
968 | if test "$ac_new_set" = set; then | ||
969 | case $ac_new_val in | ||
970 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
971 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | ||
972 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
973 | ;; | ||
974 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | ||
975 | ;; | ||
976 | esac | ||
977 | fi | ||
978 | done | ||
979 | if $ac_cache_corrupted; then | ||
980 | { echo "$as_me:980: error: changes in the environment can compromise the build" >&5 | ||
981 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
982 | { { echo "$as_me:982: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
983 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
984 | { (exit 1); exit 1; }; } | ||
985 | fi | ||
986 | |||
987 | ac_ext=c | ||
988 | ac_cpp='$CPP $CPPFLAGS' | ||
989 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
990 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
991 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
992 | |||
993 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
994 | *c*,-n*) ECHO_N= ECHO_C=' | ||
995 | ' ECHO_T=' ' ;; | ||
996 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
997 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
998 | esac | ||
999 | echo "#! $SHELL" >conftest.sh | ||
1000 | echo "exit 0" >>conftest.sh | ||
1001 | chmod +x conftest.sh | ||
1002 | if { (echo "$as_me:1002: PATH=\".;.\"; conftest.sh") >&5 | ||
1003 | (PATH=".;."; conftest.sh) 2>&5 | ||
1004 | ac_status=$? | ||
1005 | echo "$as_me:1005: \$? = $ac_status" >&5 | ||
1006 | (exit $ac_status); }; then | ||
1007 | ac_path_separator=';' | ||
1008 | else | ||
1009 | ac_path_separator=: | ||
1010 | fi | ||
1011 | PATH_SEPARATOR="$ac_path_separator" | ||
1012 | rm -f conftest.sh | ||
1013 | |||
1014 | ac_config_headers="$ac_config_headers config.h" | ||
1015 | |||
1016 | ac_ext=c | ||
1017 | ac_cpp='$CPP $CPPFLAGS' | ||
1018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1021 | if test -n "$ac_tool_prefix"; then | ||
1022 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1023 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1024 | echo "$as_me:1024: checking for $ac_word" >&5 | ||
1025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1026 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1028 | else | ||
1029 | if test -n "$CC"; then | ||
1030 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1031 | else | ||
1032 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1033 | ac_dummy="$PATH" | ||
1034 | for ac_dir in $ac_dummy; do | ||
1035 | IFS=$ac_save_IFS | ||
1036 | test -z "$ac_dir" && ac_dir=. | ||
1037 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1038 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1039 | echo "$as_me:1039: found $ac_dir/$ac_word" >&5 | ||
1040 | break | ||
1041 | done | ||
1042 | |||
1043 | fi | ||
1044 | fi | ||
1045 | CC=$ac_cv_prog_CC | ||
1046 | if test -n "$CC"; then | ||
1047 | echo "$as_me:1047: result: $CC" >&5 | ||
1048 | echo "${ECHO_T}$CC" >&6 | ||
1049 | else | ||
1050 | echo "$as_me:1050: result: no" >&5 | ||
1051 | echo "${ECHO_T}no" >&6 | ||
1052 | fi | ||
1053 | |||
1054 | fi | ||
1055 | if test -z "$ac_cv_prog_CC"; then | ||
1056 | ac_ct_CC=$CC | ||
1057 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1058 | set dummy gcc; ac_word=$2 | ||
1059 | echo "$as_me:1059: checking for $ac_word" >&5 | ||
1060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1061 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1063 | else | ||
1064 | if test -n "$ac_ct_CC"; then | ||
1065 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1066 | else | ||
1067 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1068 | ac_dummy="$PATH" | ||
1069 | for ac_dir in $ac_dummy; do | ||
1070 | IFS=$ac_save_IFS | ||
1071 | test -z "$ac_dir" && ac_dir=. | ||
1072 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1073 | ac_cv_prog_ac_ct_CC="gcc" | ||
1074 | echo "$as_me:1074: found $ac_dir/$ac_word" >&5 | ||
1075 | break | ||
1076 | done | ||
1077 | |||
1078 | fi | ||
1079 | fi | ||
1080 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1081 | if test -n "$ac_ct_CC"; then | ||
1082 | echo "$as_me:1082: result: $ac_ct_CC" >&5 | ||
1083 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1084 | else | ||
1085 | echo "$as_me:1085: result: no" >&5 | ||
1086 | echo "${ECHO_T}no" >&6 | ||
1087 | fi | ||
1088 | |||
1089 | CC=$ac_ct_CC | ||
1090 | else | ||
1091 | CC="$ac_cv_prog_CC" | ||
1092 | fi | ||
1093 | |||
1094 | if test -z "$CC"; then | ||
1095 | if test -n "$ac_tool_prefix"; then | ||
1096 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1097 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1098 | echo "$as_me:1098: checking for $ac_word" >&5 | ||
1099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1100 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1102 | else | ||
1103 | if test -n "$CC"; then | ||
1104 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1105 | else | ||
1106 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1107 | ac_dummy="$PATH" | ||
1108 | for ac_dir in $ac_dummy; do | ||
1109 | IFS=$ac_save_IFS | ||
1110 | test -z "$ac_dir" && ac_dir=. | ||
1111 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1112 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1113 | echo "$as_me:1113: found $ac_dir/$ac_word" >&5 | ||
1114 | break | ||
1115 | done | ||
1116 | |||
1117 | fi | ||
1118 | fi | ||
1119 | CC=$ac_cv_prog_CC | ||
1120 | if test -n "$CC"; then | ||
1121 | echo "$as_me:1121: result: $CC" >&5 | ||
1122 | echo "${ECHO_T}$CC" >&6 | ||
1123 | else | ||
1124 | echo "$as_me:1124: result: no" >&5 | ||
1125 | echo "${ECHO_T}no" >&6 | ||
1126 | fi | ||
1127 | |||
1128 | fi | ||
1129 | if test -z "$ac_cv_prog_CC"; then | ||
1130 | ac_ct_CC=$CC | ||
1131 | # Extract the first word of "cc", so it can be a program name with args. | ||
1132 | set dummy cc; ac_word=$2 | ||
1133 | echo "$as_me:1133: checking for $ac_word" >&5 | ||
1134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1135 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1137 | else | ||
1138 | if test -n "$ac_ct_CC"; then | ||
1139 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1140 | else | ||
1141 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1142 | ac_dummy="$PATH" | ||
1143 | for ac_dir in $ac_dummy; do | ||
1144 | IFS=$ac_save_IFS | ||
1145 | test -z "$ac_dir" && ac_dir=. | ||
1146 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1147 | ac_cv_prog_ac_ct_CC="cc" | ||
1148 | echo "$as_me:1148: found $ac_dir/$ac_word" >&5 | ||
1149 | break | ||
1150 | done | ||
1151 | |||
1152 | fi | ||
1153 | fi | ||
1154 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1155 | if test -n "$ac_ct_CC"; then | ||
1156 | echo "$as_me:1156: result: $ac_ct_CC" >&5 | ||
1157 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1158 | else | ||
1159 | echo "$as_me:1159: result: no" >&5 | ||
1160 | echo "${ECHO_T}no" >&6 | ||
1161 | fi | ||
1162 | |||
1163 | CC=$ac_ct_CC | ||
1164 | else | ||
1165 | CC="$ac_cv_prog_CC" | ||
1166 | fi | ||
1167 | |||
1168 | fi | ||
1169 | if test -z "$CC"; then | ||
1170 | # Extract the first word of "cc", so it can be a program name with args. | ||
1171 | set dummy cc; ac_word=$2 | ||
1172 | echo "$as_me:1172: checking for $ac_word" >&5 | ||
1173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1174 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1176 | else | ||
1177 | if test -n "$CC"; then | ||
1178 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1179 | else | ||
1180 | ac_prog_rejected=no | ||
1181 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1182 | ac_dummy="$PATH" | ||
1183 | for ac_dir in $ac_dummy; do | ||
1184 | IFS=$ac_save_IFS | ||
1185 | test -z "$ac_dir" && ac_dir=. | ||
1186 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1187 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | ||
1188 | ac_prog_rejected=yes | ||
1189 | continue | ||
1190 | fi | ||
1191 | ac_cv_prog_CC="cc" | ||
1192 | echo "$as_me:1192: found $ac_dir/$ac_word" >&5 | ||
1193 | break | ||
1194 | done | ||
1195 | |||
1196 | if test $ac_prog_rejected = yes; then | ||
1197 | # We found a bogon in the path, so make sure we never use it. | ||
1198 | set dummy $ac_cv_prog_CC | ||
1199 | shift | ||
1200 | if test $# != 0; then | ||
1201 | # We chose a different compiler from the bogus one. | ||
1202 | # However, it has the same basename, so the bogon will be chosen | ||
1203 | # first if we set CC to just the basename; use the full file name. | ||
1204 | shift | ||
1205 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | ||
1206 | shift | ||
1207 | ac_cv_prog_CC="$@" | ||
1208 | fi | ||
1209 | fi | ||
1210 | fi | ||
1211 | fi | ||
1212 | CC=$ac_cv_prog_CC | ||
1213 | if test -n "$CC"; then | ||
1214 | echo "$as_me:1214: result: $CC" >&5 | ||
1215 | echo "${ECHO_T}$CC" >&6 | ||
1216 | else | ||
1217 | echo "$as_me:1217: result: no" >&5 | ||
1218 | echo "${ECHO_T}no" >&6 | ||
1219 | fi | ||
1220 | |||
1221 | fi | ||
1222 | if test -z "$CC"; then | ||
1223 | if test -n "$ac_tool_prefix"; then | ||
1224 | for ac_prog in cl | ||
1225 | do | ||
1226 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
1227 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
1228 | echo "$as_me:1228: checking for $ac_word" >&5 | ||
1229 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1230 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1232 | else | ||
1233 | if test -n "$CC"; then | ||
1234 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1235 | else | ||
1236 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1237 | ac_dummy="$PATH" | ||
1238 | for ac_dir in $ac_dummy; do | ||
1239 | IFS=$ac_save_IFS | ||
1240 | test -z "$ac_dir" && ac_dir=. | ||
1241 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1242 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
1243 | echo "$as_me:1243: found $ac_dir/$ac_word" >&5 | ||
1244 | break | ||
1245 | done | ||
1246 | |||
1247 | fi | ||
1248 | fi | ||
1249 | CC=$ac_cv_prog_CC | ||
1250 | if test -n "$CC"; then | ||
1251 | echo "$as_me:1251: result: $CC" >&5 | ||
1252 | echo "${ECHO_T}$CC" >&6 | ||
1253 | else | ||
1254 | echo "$as_me:1254: result: no" >&5 | ||
1255 | echo "${ECHO_T}no" >&6 | ||
1256 | fi | ||
1257 | |||
1258 | test -n "$CC" && break | ||
1259 | done | ||
1260 | fi | ||
1261 | if test -z "$CC"; then | ||
1262 | ac_ct_CC=$CC | ||
1263 | for ac_prog in cl | ||
1264 | do | ||
1265 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1266 | set dummy $ac_prog; ac_word=$2 | ||
1267 | echo "$as_me:1267: checking for $ac_word" >&5 | ||
1268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1269 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1271 | else | ||
1272 | if test -n "$ac_ct_CC"; then | ||
1273 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1274 | else | ||
1275 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1276 | ac_dummy="$PATH" | ||
1277 | for ac_dir in $ac_dummy; do | ||
1278 | IFS=$ac_save_IFS | ||
1279 | test -z "$ac_dir" && ac_dir=. | ||
1280 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1281 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
1282 | echo "$as_me:1282: found $ac_dir/$ac_word" >&5 | ||
1283 | break | ||
1284 | done | ||
1285 | |||
1286 | fi | ||
1287 | fi | ||
1288 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1289 | if test -n "$ac_ct_CC"; then | ||
1290 | echo "$as_me:1290: result: $ac_ct_CC" >&5 | ||
1291 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1292 | else | ||
1293 | echo "$as_me:1293: result: no" >&5 | ||
1294 | echo "${ECHO_T}no" >&6 | ||
1295 | fi | ||
1296 | |||
1297 | test -n "$ac_ct_CC" && break | ||
1298 | done | ||
1299 | |||
1300 | CC=$ac_ct_CC | ||
1301 | fi | ||
1302 | |||
1303 | fi | ||
1304 | |||
1305 | test -z "$CC" && { { echo "$as_me:1305: error: no acceptable cc found in \$PATH" >&5 | ||
1306 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | ||
1307 | { (exit 1); exit 1; }; } | ||
1308 | |||
1309 | # Provide some information about the compiler. | ||
1310 | echo "$as_me:1310:" \ | ||
1311 | "checking for C compiler version" >&5 | ||
1312 | ac_compiler=`set X $ac_compile; echo $2` | ||
1313 | { (eval echo "$as_me:1313: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
1314 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
1315 | ac_status=$? | ||
1316 | echo "$as_me:1316: \$? = $ac_status" >&5 | ||
1317 | (exit $ac_status); } | ||
1318 | { (eval echo "$as_me:1318: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
1319 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
1320 | ac_status=$? | ||
1321 | echo "$as_me:1321: \$? = $ac_status" >&5 | ||
1322 | (exit $ac_status); } | ||
1323 | { (eval echo "$as_me:1323: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
1324 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
1325 | ac_status=$? | ||
1326 | echo "$as_me:1326: \$? = $ac_status" >&5 | ||
1327 | (exit $ac_status); } | ||
1328 | |||
1329 | cat >conftest.$ac_ext <<_ACEOF | ||
1330 | #line 1330 "configure" | ||
1331 | #include "confdefs.h" | ||
1332 | |||
1333 | int | ||
1334 | main () | ||
1335 | { | ||
1336 | |||
1337 | ; | ||
1338 | return 0; | ||
1339 | } | ||
1340 | _ACEOF | ||
1341 | ac_clean_files_save=$ac_clean_files | ||
1342 | ac_clean_files="$ac_clean_files a.out a.exe" | ||
1343 | # Try to create an executable without -o first, disregard a.out. | ||
1344 | # It will help us diagnose broken compilers, and finding out an intuition | ||
1345 | # of exeext. | ||
1346 | echo "$as_me:1346: checking for C compiler default output" >&5 | ||
1347 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | ||
1348 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
1349 | if { (eval echo "$as_me:1349: \"$ac_link_default\"") >&5 | ||
1350 | (eval $ac_link_default) 2>&5 | ||
1351 | ac_status=$? | ||
1352 | echo "$as_me:1352: \$? = $ac_status" >&5 | ||
1353 | (exit $ac_status); }; then | ||
1354 | # Find the output, starting from the most likely. This scheme is | ||
1355 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
1356 | # resort. | ||
1357 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; | ||
1358 | ls a.out conftest 2>/dev/null; | ||
1359 | ls a.* conftest.* 2>/dev/null`; do | ||
1360 | case $ac_file in | ||
1361 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1362 | a.out ) # We found the default executable, but exeext='' is most | ||
1363 | # certainly right. | ||
1364 | break;; | ||
1365 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1366 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | ||
1367 | export ac_cv_exeext | ||
1368 | break;; | ||
1369 | * ) break;; | ||
1370 | esac | ||
1371 | done | ||
1372 | else | ||
1373 | echo "$as_me: failed program was:" >&5 | ||
1374 | cat conftest.$ac_ext >&5 | ||
1375 | { { echo "$as_me:1375: error: C compiler cannot create executables" >&5 | ||
1376 | echo "$as_me: error: C compiler cannot create executables" >&2;} | ||
1377 | { (exit 77); exit 77; }; } | ||
1378 | fi | ||
1379 | |||
1380 | ac_exeext=$ac_cv_exeext | ||
1381 | echo "$as_me:1381: result: $ac_file" >&5 | ||
1382 | echo "${ECHO_T}$ac_file" >&6 | ||
1383 | |||
1384 | # Check the compiler produces executables we can run. If not, either | ||
1385 | # the compiler is broken, or we cross compile. | ||
1386 | echo "$as_me:1386: checking whether the C compiler works" >&5 | ||
1387 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
1388 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
1389 | # If not cross compiling, check that we can run a simple program. | ||
1390 | if test "$cross_compiling" != yes; then | ||
1391 | if { ac_try='./$ac_file' | ||
1392 | { (eval echo "$as_me:1392: \"$ac_try\"") >&5 | ||
1393 | (eval $ac_try) 2>&5 | ||
1394 | ac_status=$? | ||
1395 | echo "$as_me:1395: \$? = $ac_status" >&5 | ||
1396 | (exit $ac_status); }; }; then | ||
1397 | cross_compiling=no | ||
1398 | else | ||
1399 | if test "$cross_compiling" = maybe; then | ||
1400 | cross_compiling=yes | ||
1401 | else | ||
1402 | { { echo "$as_me:1402: error: cannot run C compiled programs. | ||
1403 | If you meant to cross compile, use \`--host'." >&5 | ||
1404 | echo "$as_me: error: cannot run C compiled programs. | ||
1405 | If you meant to cross compile, use \`--host'." >&2;} | ||
1406 | { (exit 1); exit 1; }; } | ||
1407 | fi | ||
1408 | fi | ||
1409 | fi | ||
1410 | echo "$as_me:1410: result: yes" >&5 | ||
1411 | echo "${ECHO_T}yes" >&6 | ||
1412 | |||
1413 | rm -f a.out a.exe conftest$ac_cv_exeext | ||
1414 | ac_clean_files=$ac_clean_files_save | ||
1415 | # Check the compiler produces executables we can run. If not, either | ||
1416 | # the compiler is broken, or we cross compile. | ||
1417 | echo "$as_me:1417: checking whether we are cross compiling" >&5 | ||
1418 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
1419 | echo "$as_me:1419: result: $cross_compiling" >&5 | ||
1420 | echo "${ECHO_T}$cross_compiling" >&6 | ||
1421 | |||
1422 | echo "$as_me:1422: checking for executable suffix" >&5 | ||
1423 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | ||
1424 | if { (eval echo "$as_me:1424: \"$ac_link\"") >&5 | ||
1425 | (eval $ac_link) 2>&5 | ||
1426 | ac_status=$? | ||
1427 | echo "$as_me:1427: \$? = $ac_status" >&5 | ||
1428 | (exit $ac_status); }; then | ||
1429 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
1430 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
1431 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
1432 | # `rm'. | ||
1433 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | ||
1434 | case $ac_file in | ||
1435 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1436 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1437 | export ac_cv_exeext | ||
1438 | break;; | ||
1439 | * ) break;; | ||
1440 | esac | ||
1441 | done | ||
1442 | else | ||
1443 | { { echo "$as_me:1443: error: cannot compute EXEEXT: cannot compile and link" >&5 | ||
1444 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} | ||
1445 | { (exit 1); exit 1; }; } | ||
1446 | fi | ||
1447 | |||
1448 | rm -f conftest$ac_cv_exeext | ||
1449 | echo "$as_me:1449: result: $ac_cv_exeext" >&5 | ||
1450 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
1451 | |||
1452 | rm -f conftest.$ac_ext | ||
1453 | EXEEXT=$ac_cv_exeext | ||
1454 | ac_exeext=$EXEEXT | ||
1455 | echo "$as_me:1455: checking for object suffix" >&5 | ||
1456 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 | ||
1457 | if test "${ac_cv_objext+set}" = set; then | ||
1458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1459 | else | ||
1460 | cat >conftest.$ac_ext <<_ACEOF | ||
1461 | #line 1461 "configure" | ||
1462 | #include "confdefs.h" | ||
1463 | |||
1464 | int | ||
1465 | main () | ||
1466 | { | ||
1467 | |||
1468 | ; | ||
1469 | return 0; | ||
1470 | } | ||
1471 | _ACEOF | ||
1472 | rm -f conftest.o conftest.obj | ||
1473 | if { (eval echo "$as_me:1473: \"$ac_compile\"") >&5 | ||
1474 | (eval $ac_compile) 2>&5 | ||
1475 | ac_status=$? | ||
1476 | echo "$as_me:1476: \$? = $ac_status" >&5 | ||
1477 | (exit $ac_status); }; then | ||
1478 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
1479 | case $ac_file in | ||
1480 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1481 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
1482 | break;; | ||
1483 | esac | ||
1484 | done | ||
1485 | else | ||
1486 | echo "$as_me: failed program was:" >&5 | ||
1487 | cat conftest.$ac_ext >&5 | ||
1488 | { { echo "$as_me:1488: error: cannot compute OBJEXT: cannot compile" >&5 | ||
1489 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | ||
1490 | { (exit 1); exit 1; }; } | ||
1491 | fi | ||
1492 | |||
1493 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
1494 | fi | ||
1495 | echo "$as_me:1495: result: $ac_cv_objext" >&5 | ||
1496 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
1497 | OBJEXT=$ac_cv_objext | ||
1498 | ac_objext=$OBJEXT | ||
1499 | echo "$as_me:1499: checking whether we are using the GNU C compiler" >&5 | ||
1500 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
1501 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
1502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1503 | else | ||
1504 | cat >conftest.$ac_ext <<_ACEOF | ||
1505 | #line 1505 "configure" | ||
1506 | #include "confdefs.h" | ||
1507 | |||
1508 | int | ||
1509 | main () | ||
1510 | { | ||
1511 | #ifndef __GNUC__ | ||
1512 | choke me | ||
1513 | #endif | ||
1514 | |||
1515 | ; | ||
1516 | return 0; | ||
1517 | } | ||
1518 | _ACEOF | ||
1519 | rm -f conftest.$ac_objext | ||
1520 | if { (eval echo "$as_me:1520: \"$ac_compile\"") >&5 | ||
1521 | (eval $ac_compile) 2>&5 | ||
1522 | ac_status=$? | ||
1523 | echo "$as_me:1523: \$? = $ac_status" >&5 | ||
1524 | (exit $ac_status); } && | ||
1525 | { ac_try='test -s conftest.$ac_objext' | ||
1526 | { (eval echo "$as_me:1526: \"$ac_try\"") >&5 | ||
1527 | (eval $ac_try) 2>&5 | ||
1528 | ac_status=$? | ||
1529 | echo "$as_me:1529: \$? = $ac_status" >&5 | ||
1530 | (exit $ac_status); }; }; then | ||
1531 | ac_compiler_gnu=yes | ||
1532 | else | ||
1533 | echo "$as_me: failed program was:" >&5 | ||
1534 | cat conftest.$ac_ext >&5 | ||
1535 | ac_compiler_gnu=no | ||
1536 | fi | ||
1537 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1538 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
1539 | |||
1540 | fi | ||
1541 | echo "$as_me:1541: result: $ac_cv_c_compiler_gnu" >&5 | ||
1542 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
1543 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
1544 | ac_test_CFLAGS=${CFLAGS+set} | ||
1545 | ac_save_CFLAGS=$CFLAGS | ||
1546 | CFLAGS="-g" | ||
1547 | echo "$as_me:1547: checking whether $CC accepts -g" >&5 | ||
1548 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
1549 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
1550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1551 | else | ||
1552 | cat >conftest.$ac_ext <<_ACEOF | ||
1553 | #line 1553 "configure" | ||
1554 | #include "confdefs.h" | ||
1555 | |||
1556 | int | ||
1557 | main () | ||
1558 | { | ||
1559 | |||
1560 | ; | ||
1561 | return 0; | ||
1562 | } | ||
1563 | _ACEOF | ||
1564 | rm -f conftest.$ac_objext | ||
1565 | if { (eval echo "$as_me:1565: \"$ac_compile\"") >&5 | ||
1566 | (eval $ac_compile) 2>&5 | ||
1567 | ac_status=$? | ||
1568 | echo "$as_me:1568: \$? = $ac_status" >&5 | ||
1569 | (exit $ac_status); } && | ||
1570 | { ac_try='test -s conftest.$ac_objext' | ||
1571 | { (eval echo "$as_me:1571: \"$ac_try\"") >&5 | ||
1572 | (eval $ac_try) 2>&5 | ||
1573 | ac_status=$? | ||
1574 | echo "$as_me:1574: \$? = $ac_status" >&5 | ||
1575 | (exit $ac_status); }; }; then | ||
1576 | ac_cv_prog_cc_g=yes | ||
1577 | else | ||
1578 | echo "$as_me: failed program was:" >&5 | ||
1579 | cat conftest.$ac_ext >&5 | ||
1580 | ac_cv_prog_cc_g=no | ||
1581 | fi | ||
1582 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1583 | fi | ||
1584 | echo "$as_me:1584: result: $ac_cv_prog_cc_g" >&5 | ||
1585 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
1586 | if test "$ac_test_CFLAGS" = set; then | ||
1587 | CFLAGS=$ac_save_CFLAGS | ||
1588 | elif test $ac_cv_prog_cc_g = yes; then | ||
1589 | if test "$GCC" = yes; then | ||
1590 | CFLAGS="-g -O2" | ||
1591 | else | ||
1592 | CFLAGS="-g" | ||
1593 | fi | ||
1594 | else | ||
1595 | if test "$GCC" = yes; then | ||
1596 | CFLAGS="-O2" | ||
1597 | else | ||
1598 | CFLAGS= | ||
1599 | fi | ||
1600 | fi | ||
1601 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
1602 | # in C++ we need to declare it. In case someone uses the same compiler | ||
1603 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
1604 | # the declaration of exit, since it's the most demanding environment. | ||
1605 | cat >conftest.$ac_ext <<_ACEOF | ||
1606 | #ifndef __cplusplus | ||
1607 | choke me | ||
1608 | #endif | ||
1609 | _ACEOF | ||
1610 | rm -f conftest.$ac_objext | ||
1611 | if { (eval echo "$as_me:1611: \"$ac_compile\"") >&5 | ||
1612 | (eval $ac_compile) 2>&5 | ||
1613 | ac_status=$? | ||
1614 | echo "$as_me:1614: \$? = $ac_status" >&5 | ||
1615 | (exit $ac_status); } && | ||
1616 | { ac_try='test -s conftest.$ac_objext' | ||
1617 | { (eval echo "$as_me:1617: \"$ac_try\"") >&5 | ||
1618 | (eval $ac_try) 2>&5 | ||
1619 | ac_status=$? | ||
1620 | echo "$as_me:1620: \$? = $ac_status" >&5 | ||
1621 | (exit $ac_status); }; }; then | ||
1622 | for ac_declaration in \ | ||
1623 | ''\ | ||
1624 | '#include <stdlib.h>' \ | ||
1625 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
1626 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
1627 | 'extern "C" void exit (int) throw ();' \ | ||
1628 | 'extern "C" void exit (int);' \ | ||
1629 | 'void exit (int);' | ||
1630 | do | ||
1631 | cat >conftest.$ac_ext <<_ACEOF | ||
1632 | #line 1632 "configure" | ||
1633 | #include "confdefs.h" | ||
1634 | #include <stdlib.h> | ||
1635 | $ac_declaration | ||
1636 | int | ||
1637 | main () | ||
1638 | { | ||
1639 | exit (42); | ||
1640 | ; | ||
1641 | return 0; | ||
1642 | } | ||
1643 | _ACEOF | ||
1644 | rm -f conftest.$ac_objext | ||
1645 | if { (eval echo "$as_me:1645: \"$ac_compile\"") >&5 | ||
1646 | (eval $ac_compile) 2>&5 | ||
1647 | ac_status=$? | ||
1648 | echo "$as_me:1648: \$? = $ac_status" >&5 | ||
1649 | (exit $ac_status); } && | ||
1650 | { ac_try='test -s conftest.$ac_objext' | ||
1651 | { (eval echo "$as_me:1651: \"$ac_try\"") >&5 | ||
1652 | (eval $ac_try) 2>&5 | ||
1653 | ac_status=$? | ||
1654 | echo "$as_me:1654: \$? = $ac_status" >&5 | ||
1655 | (exit $ac_status); }; }; then | ||
1656 | : | ||
1657 | else | ||
1658 | echo "$as_me: failed program was:" >&5 | ||
1659 | cat conftest.$ac_ext >&5 | ||
1660 | continue | ||
1661 | fi | ||
1662 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1663 | cat >conftest.$ac_ext <<_ACEOF | ||
1664 | #line 1664 "configure" | ||
1665 | #include "confdefs.h" | ||
1666 | $ac_declaration | ||
1667 | int | ||
1668 | main () | ||
1669 | { | ||
1670 | exit (42); | ||
1671 | ; | ||
1672 | return 0; | ||
1673 | } | ||
1674 | _ACEOF | ||
1675 | rm -f conftest.$ac_objext | ||
1676 | if { (eval echo "$as_me:1676: \"$ac_compile\"") >&5 | ||
1677 | (eval $ac_compile) 2>&5 | ||
1678 | ac_status=$? | ||
1679 | echo "$as_me:1679: \$? = $ac_status" >&5 | ||
1680 | (exit $ac_status); } && | ||
1681 | { ac_try='test -s conftest.$ac_objext' | ||
1682 | { (eval echo "$as_me:1682: \"$ac_try\"") >&5 | ||
1683 | (eval $ac_try) 2>&5 | ||
1684 | ac_status=$? | ||
1685 | echo "$as_me:1685: \$? = $ac_status" >&5 | ||
1686 | (exit $ac_status); }; }; then | ||
1687 | break | ||
1688 | else | ||
1689 | echo "$as_me: failed program was:" >&5 | ||
1690 | cat conftest.$ac_ext >&5 | ||
1691 | fi | ||
1692 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1693 | done | ||
1694 | rm -f conftest* | ||
1695 | if test -n "$ac_declaration"; then | ||
1696 | echo '#ifdef __cplusplus' >>confdefs.h | ||
1697 | echo $ac_declaration >>confdefs.h | ||
1698 | echo '#endif' >>confdefs.h | ||
1699 | fi | ||
1700 | |||
1701 | else | ||
1702 | echo "$as_me: failed program was:" >&5 | ||
1703 | cat conftest.$ac_ext >&5 | ||
1704 | fi | ||
1705 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1706 | ac_ext=c | ||
1707 | ac_cpp='$CPP $CPPFLAGS' | ||
1708 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1709 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1710 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1711 | |||
1712 | ac_aux_dir= | ||
1713 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
1714 | if test -f $ac_dir/install-sh; then | ||
1715 | ac_aux_dir=$ac_dir | ||
1716 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
1717 | break | ||
1718 | elif test -f $ac_dir/install.sh; then | ||
1719 | ac_aux_dir=$ac_dir | ||
1720 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
1721 | break | ||
1722 | elif test -f $ac_dir/shtool; then | ||
1723 | ac_aux_dir=$ac_dir | ||
1724 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
1725 | break | ||
1726 | fi | ||
1727 | done | ||
1728 | if test -z "$ac_aux_dir"; then | ||
1729 | { { echo "$as_me:1729: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
1730 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
1731 | { (exit 1); exit 1; }; } | ||
1732 | fi | ||
1733 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
1734 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
1735 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
1736 | |||
1737 | # Make sure we can run config.sub. | ||
1738 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
1739 | { { echo "$as_me:1739: error: cannot run $ac_config_sub" >&5 | ||
1740 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
1741 | { (exit 1); exit 1; }; } | ||
1742 | |||
1743 | echo "$as_me:1743: checking build system type" >&5 | ||
1744 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
1745 | if test "${ac_cv_build+set}" = set; then | ||
1746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1747 | else | ||
1748 | ac_cv_build_alias=$build_alias | ||
1749 | test -z "$ac_cv_build_alias" && | ||
1750 | ac_cv_build_alias=`$ac_config_guess` | ||
1751 | test -z "$ac_cv_build_alias" && | ||
1752 | { { echo "$as_me:1752: error: cannot guess build type; you must specify one" >&5 | ||
1753 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
1754 | { (exit 1); exit 1; }; } | ||
1755 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
1756 | { { echo "$as_me:1756: error: $ac_config_sub $ac_cv_build_alias failed." >&5 | ||
1757 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | ||
1758 | { (exit 1); exit 1; }; } | ||
1759 | |||
1760 | fi | ||
1761 | echo "$as_me:1761: result: $ac_cv_build" >&5 | ||
1762 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
1763 | build=$ac_cv_build | ||
1764 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
1765 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
1766 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
1767 | |||
1768 | echo "$as_me:1768: checking host system type" >&5 | ||
1769 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
1770 | if test "${ac_cv_host+set}" = set; then | ||
1771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1772 | else | ||
1773 | ac_cv_host_alias=$host_alias | ||
1774 | test -z "$ac_cv_host_alias" && | ||
1775 | ac_cv_host_alias=$ac_cv_build_alias | ||
1776 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
1777 | { { echo "$as_me:1777: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
1778 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
1779 | { (exit 1); exit 1; }; } | ||
1780 | |||
1781 | fi | ||
1782 | echo "$as_me:1782: result: $ac_cv_host" >&5 | ||
1783 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
1784 | host=$ac_cv_host | ||
1785 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
1786 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
1787 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
1788 | |||
1789 | echo "$as_me:1789: checking whether byte ordering is bigendian" >&5 | ||
1790 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | ||
1791 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
1792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1793 | else | ||
1794 | ac_cv_c_bigendian=unknown | ||
1795 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
1796 | cat >conftest.$ac_ext <<_ACEOF | ||
1797 | #line 1797 "configure" | ||
1798 | #include "confdefs.h" | ||
1799 | #include <sys/types.h> | ||
1800 | #include <sys/param.h> | ||
1801 | |||
1802 | int | ||
1803 | main () | ||
1804 | { | ||
1805 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
1806 | bogus endian macros | ||
1807 | #endif | ||
1808 | |||
1809 | ; | ||
1810 | return 0; | ||
1811 | } | ||
1812 | _ACEOF | ||
1813 | rm -f conftest.$ac_objext | ||
1814 | if { (eval echo "$as_me:1814: \"$ac_compile\"") >&5 | ||
1815 | (eval $ac_compile) 2>&5 | ||
1816 | ac_status=$? | ||
1817 | echo "$as_me:1817: \$? = $ac_status" >&5 | ||
1818 | (exit $ac_status); } && | ||
1819 | { ac_try='test -s conftest.$ac_objext' | ||
1820 | { (eval echo "$as_me:1820: \"$ac_try\"") >&5 | ||
1821 | (eval $ac_try) 2>&5 | ||
1822 | ac_status=$? | ||
1823 | echo "$as_me:1823: \$? = $ac_status" >&5 | ||
1824 | (exit $ac_status); }; }; then | ||
1825 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
1826 | cat >conftest.$ac_ext <<_ACEOF | ||
1827 | #line 1827 "configure" | ||
1828 | #include "confdefs.h" | ||
1829 | #include <sys/types.h> | ||
1830 | #include <sys/param.h> | ||
1831 | |||
1832 | int | ||
1833 | main () | ||
1834 | { | ||
1835 | #if BYTE_ORDER != BIG_ENDIAN | ||
1836 | not big endian | ||
1837 | #endif | ||
1838 | |||
1839 | ; | ||
1840 | return 0; | ||
1841 | } | ||
1842 | _ACEOF | ||
1843 | rm -f conftest.$ac_objext | ||
1844 | if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5 | ||
1845 | (eval $ac_compile) 2>&5 | ||
1846 | ac_status=$? | ||
1847 | echo "$as_me:1847: \$? = $ac_status" >&5 | ||
1848 | (exit $ac_status); } && | ||
1849 | { ac_try='test -s conftest.$ac_objext' | ||
1850 | { (eval echo "$as_me:1850: \"$ac_try\"") >&5 | ||
1851 | (eval $ac_try) 2>&5 | ||
1852 | ac_status=$? | ||
1853 | echo "$as_me:1853: \$? = $ac_status" >&5 | ||
1854 | (exit $ac_status); }; }; then | ||
1855 | ac_cv_c_bigendian=yes | ||
1856 | else | ||
1857 | echo "$as_me: failed program was:" >&5 | ||
1858 | cat conftest.$ac_ext >&5 | ||
1859 | ac_cv_c_bigendian=no | ||
1860 | fi | ||
1861 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1862 | else | ||
1863 | echo "$as_me: failed program was:" >&5 | ||
1864 | cat conftest.$ac_ext >&5 | ||
1865 | fi | ||
1866 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1867 | if test $ac_cv_c_bigendian = unknown; then | ||
1868 | if test "$cross_compiling" = yes; then | ||
1869 | { { echo "$as_me:1869: error: cannot run test program while cross compiling" >&5 | ||
1870 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
1871 | { (exit 1); exit 1; }; } | ||
1872 | else | ||
1873 | cat >conftest.$ac_ext <<_ACEOF | ||
1874 | #line 1874 "configure" | ||
1875 | #include "confdefs.h" | ||
1876 | int | ||
1877 | main () | ||
1878 | { | ||
1879 | /* Are we little or big endian? From Harbison&Steele. */ | ||
1880 | union | ||
1881 | { | ||
1882 | long l; | ||
1883 | char c[sizeof (long)]; | ||
1884 | } u; | ||
1885 | u.l = 1; | ||
1886 | exit (u.c[sizeof (long) - 1] == 1); | ||
1887 | } | ||
1888 | _ACEOF | ||
1889 | rm -f conftest$ac_exeext | ||
1890 | if { (eval echo "$as_me:1890: \"$ac_link\"") >&5 | ||
1891 | (eval $ac_link) 2>&5 | ||
1892 | ac_status=$? | ||
1893 | echo "$as_me:1893: \$? = $ac_status" >&5 | ||
1894 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
1895 | { (eval echo "$as_me:1895: \"$ac_try\"") >&5 | ||
1896 | (eval $ac_try) 2>&5 | ||
1897 | ac_status=$? | ||
1898 | echo "$as_me:1898: \$? = $ac_status" >&5 | ||
1899 | (exit $ac_status); }; }; then | ||
1900 | ac_cv_c_bigendian=no | ||
1901 | else | ||
1902 | echo "$as_me: program exited with status $ac_status" >&5 | ||
1903 | echo "$as_me: failed program was:" >&5 | ||
1904 | cat conftest.$ac_ext >&5 | ||
1905 | ac_cv_c_bigendian=yes | ||
1906 | fi | ||
1907 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
1908 | fi | ||
1909 | fi | ||
1910 | fi | ||
1911 | echo "$as_me:1911: result: $ac_cv_c_bigendian" >&5 | ||
1912 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | ||
1913 | if test $ac_cv_c_bigendian = yes; then | ||
1914 | |||
1915 | cat >>confdefs.h <<\EOF | ||
1916 | #define WORDS_BIGENDIAN 1 | ||
1917 | EOF | ||
1918 | |||
1919 | fi | ||
1920 | |||
1921 | # Checks for programs. | ||
1922 | for ac_prog in mawk gawk nawk awk | ||
1923 | do | ||
1924 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1925 | set dummy $ac_prog; ac_word=$2 | ||
1926 | echo "$as_me:1926: checking for $ac_word" >&5 | ||
1927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1928 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
1929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1930 | else | ||
1931 | if test -n "$AWK"; then | ||
1932 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
1933 | else | ||
1934 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1935 | ac_dummy="$PATH" | ||
1936 | for ac_dir in $ac_dummy; do | ||
1937 | IFS=$ac_save_IFS | ||
1938 | test -z "$ac_dir" && ac_dir=. | ||
1939 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1940 | ac_cv_prog_AWK="$ac_prog" | ||
1941 | echo "$as_me:1941: found $ac_dir/$ac_word" >&5 | ||
1942 | break | ||
1943 | done | ||
1944 | |||
1945 | fi | ||
1946 | fi | ||
1947 | AWK=$ac_cv_prog_AWK | ||
1948 | if test -n "$AWK"; then | ||
1949 | echo "$as_me:1949: result: $AWK" >&5 | ||
1950 | echo "${ECHO_T}$AWK" >&6 | ||
1951 | else | ||
1952 | echo "$as_me:1952: result: no" >&5 | ||
1953 | echo "${ECHO_T}no" >&6 | ||
1954 | fi | ||
1955 | |||
1956 | test -n "$AWK" && break | ||
1957 | done | ||
1958 | |||
1959 | ac_ext=c | ||
1960 | ac_cpp='$CPP $CPPFLAGS' | ||
1961 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1962 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1963 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1964 | echo "$as_me:1964: checking how to run the C preprocessor" >&5 | ||
1965 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
1966 | # On Suns, sometimes $CPP names a directory. | ||
1967 | if test -n "$CPP" && test -d "$CPP"; then | ||
1968 | CPP= | ||
1969 | fi | ||
1970 | if test -z "$CPP"; then | ||
1971 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
1972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1973 | else | ||
1974 | # Double quotes because CPP needs to be expanded | ||
1975 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
1976 | do | ||
1977 | ac_preproc_ok=false | ||
1978 | for ac_c_preproc_warn_flag in '' yes | ||
1979 | do | ||
1980 | # Use a header file that comes with gcc, so configuring glibc | ||
1981 | # with a fresh cross-compiler works. | ||
1982 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
1983 | # not just through cpp. "Syntax error" is here to catch this case. | ||
1984 | cat >conftest.$ac_ext <<_ACEOF | ||
1985 | #line 1985 "configure" | ||
1986 | #include "confdefs.h" | ||
1987 | #include <assert.h> | ||
1988 | Syntax error | ||
1989 | _ACEOF | ||
1990 | if { (eval echo "$as_me:1990: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
1991 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
1992 | ac_status=$? | ||
1993 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
1994 | rm -f conftest.er1 | ||
1995 | cat conftest.err >&5 | ||
1996 | echo "$as_me:1996: \$? = $ac_status" >&5 | ||
1997 | (exit $ac_status); } >/dev/null; then | ||
1998 | if test -s conftest.err; then | ||
1999 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2000 | else | ||
2001 | ac_cpp_err= | ||
2002 | fi | ||
2003 | else | ||
2004 | ac_cpp_err=yes | ||
2005 | fi | ||
2006 | if test -z "$ac_cpp_err"; then | ||
2007 | : | ||
2008 | else | ||
2009 | echo "$as_me: failed program was:" >&5 | ||
2010 | cat conftest.$ac_ext >&5 | ||
2011 | # Broken: fails on valid input. | ||
2012 | continue | ||
2013 | fi | ||
2014 | rm -f conftest.err conftest.$ac_ext | ||
2015 | |||
2016 | # OK, works on sane cases. Now check whether non-existent headers | ||
2017 | # can be detected and how. | ||
2018 | cat >conftest.$ac_ext <<_ACEOF | ||
2019 | #line 2019 "configure" | ||
2020 | #include "confdefs.h" | ||
2021 | #include <ac_nonexistent.h> | ||
2022 | _ACEOF | ||
2023 | if { (eval echo "$as_me:2023: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2024 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2025 | ac_status=$? | ||
2026 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2027 | rm -f conftest.er1 | ||
2028 | cat conftest.err >&5 | ||
2029 | echo "$as_me:2029: \$? = $ac_status" >&5 | ||
2030 | (exit $ac_status); } >/dev/null; then | ||
2031 | if test -s conftest.err; then | ||
2032 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2033 | else | ||
2034 | ac_cpp_err= | ||
2035 | fi | ||
2036 | else | ||
2037 | ac_cpp_err=yes | ||
2038 | fi | ||
2039 | if test -z "$ac_cpp_err"; then | ||
2040 | # Broken: success on invalid input. | ||
2041 | continue | ||
2042 | else | ||
2043 | echo "$as_me: failed program was:" >&5 | ||
2044 | cat conftest.$ac_ext >&5 | ||
2045 | # Passes both tests. | ||
2046 | ac_preproc_ok=: | ||
2047 | break | ||
2048 | fi | ||
2049 | rm -f conftest.err conftest.$ac_ext | ||
2050 | |||
2051 | done | ||
2052 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2053 | rm -f conftest.err conftest.$ac_ext | ||
2054 | if $ac_preproc_ok; then | ||
2055 | break | ||
2056 | fi | ||
2057 | |||
2058 | done | ||
2059 | ac_cv_prog_CPP=$CPP | ||
2060 | |||
2061 | fi | ||
2062 | CPP=$ac_cv_prog_CPP | ||
2063 | else | ||
2064 | ac_cv_prog_CPP=$CPP | ||
2065 | fi | ||
2066 | echo "$as_me:2066: result: $CPP" >&5 | ||
2067 | echo "${ECHO_T}$CPP" >&6 | ||
2068 | ac_preproc_ok=false | ||
2069 | for ac_c_preproc_warn_flag in '' yes | ||
2070 | do | ||
2071 | # Use a header file that comes with gcc, so configuring glibc | ||
2072 | # with a fresh cross-compiler works. | ||
2073 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2074 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2075 | cat >conftest.$ac_ext <<_ACEOF | ||
2076 | #line 2076 "configure" | ||
2077 | #include "confdefs.h" | ||
2078 | #include <assert.h> | ||
2079 | Syntax error | ||
2080 | _ACEOF | ||
2081 | if { (eval echo "$as_me:2081: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2083 | ac_status=$? | ||
2084 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2085 | rm -f conftest.er1 | ||
2086 | cat conftest.err >&5 | ||
2087 | echo "$as_me:2087: \$? = $ac_status" >&5 | ||
2088 | (exit $ac_status); } >/dev/null; then | ||
2089 | if test -s conftest.err; then | ||
2090 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2091 | else | ||
2092 | ac_cpp_err= | ||
2093 | fi | ||
2094 | else | ||
2095 | ac_cpp_err=yes | ||
2096 | fi | ||
2097 | if test -z "$ac_cpp_err"; then | ||
2098 | : | ||
2099 | else | ||
2100 | echo "$as_me: failed program was:" >&5 | ||
2101 | cat conftest.$ac_ext >&5 | ||
2102 | # Broken: fails on valid input. | ||
2103 | continue | ||
2104 | fi | ||
2105 | rm -f conftest.err conftest.$ac_ext | ||
2106 | |||
2107 | # OK, works on sane cases. Now check whether non-existent headers | ||
2108 | # can be detected and how. | ||
2109 | cat >conftest.$ac_ext <<_ACEOF | ||
2110 | #line 2110 "configure" | ||
2111 | #include "confdefs.h" | ||
2112 | #include <ac_nonexistent.h> | ||
2113 | _ACEOF | ||
2114 | if { (eval echo "$as_me:2114: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2115 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2116 | ac_status=$? | ||
2117 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2118 | rm -f conftest.er1 | ||
2119 | cat conftest.err >&5 | ||
2120 | echo "$as_me:2120: \$? = $ac_status" >&5 | ||
2121 | (exit $ac_status); } >/dev/null; then | ||
2122 | if test -s conftest.err; then | ||
2123 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2124 | else | ||
2125 | ac_cpp_err= | ||
2126 | fi | ||
2127 | else | ||
2128 | ac_cpp_err=yes | ||
2129 | fi | ||
2130 | if test -z "$ac_cpp_err"; then | ||
2131 | # Broken: success on invalid input. | ||
2132 | continue | ||
2133 | else | ||
2134 | echo "$as_me: failed program was:" >&5 | ||
2135 | cat conftest.$ac_ext >&5 | ||
2136 | # Passes both tests. | ||
2137 | ac_preproc_ok=: | ||
2138 | break | ||
2139 | fi | ||
2140 | rm -f conftest.err conftest.$ac_ext | ||
2141 | |||
2142 | done | ||
2143 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2144 | rm -f conftest.err conftest.$ac_ext | ||
2145 | if $ac_preproc_ok; then | ||
2146 | : | ||
2147 | else | ||
2148 | { { echo "$as_me:2148: error: C preprocessor \"$CPP\" fails sanity check" >&5 | ||
2149 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | ||
2150 | { (exit 1); exit 1; }; } | ||
2151 | fi | ||
2152 | |||
2153 | ac_ext=c | ||
2154 | ac_cpp='$CPP $CPPFLAGS' | ||
2155 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2156 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2157 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2158 | |||
2159 | if test -n "$ac_tool_prefix"; then | ||
2160 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
2161 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
2162 | echo "$as_me:2162: checking for $ac_word" >&5 | ||
2163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2164 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
2165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2166 | else | ||
2167 | if test -n "$RANLIB"; then | ||
2168 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
2169 | else | ||
2170 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2171 | ac_dummy="$PATH" | ||
2172 | for ac_dir in $ac_dummy; do | ||
2173 | IFS=$ac_save_IFS | ||
2174 | test -z "$ac_dir" && ac_dir=. | ||
2175 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
2176 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
2177 | echo "$as_me:2177: found $ac_dir/$ac_word" >&5 | ||
2178 | break | ||
2179 | done | ||
2180 | |||
2181 | fi | ||
2182 | fi | ||
2183 | RANLIB=$ac_cv_prog_RANLIB | ||
2184 | if test -n "$RANLIB"; then | ||
2185 | echo "$as_me:2185: result: $RANLIB" >&5 | ||
2186 | echo "${ECHO_T}$RANLIB" >&6 | ||
2187 | else | ||
2188 | echo "$as_me:2188: result: no" >&5 | ||
2189 | echo "${ECHO_T}no" >&6 | ||
2190 | fi | ||
2191 | |||
2192 | fi | ||
2193 | if test -z "$ac_cv_prog_RANLIB"; then | ||
2194 | ac_ct_RANLIB=$RANLIB | ||
2195 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
2196 | set dummy ranlib; ac_word=$2 | ||
2197 | echo "$as_me:2197: checking for $ac_word" >&5 | ||
2198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2199 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
2200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2201 | else | ||
2202 | if test -n "$ac_ct_RANLIB"; then | ||
2203 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
2204 | else | ||
2205 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2206 | ac_dummy="$PATH" | ||
2207 | for ac_dir in $ac_dummy; do | ||
2208 | IFS=$ac_save_IFS | ||
2209 | test -z "$ac_dir" && ac_dir=. | ||
2210 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
2211 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
2212 | echo "$as_me:2212: found $ac_dir/$ac_word" >&5 | ||
2213 | break | ||
2214 | done | ||
2215 | |||
2216 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
2217 | fi | ||
2218 | fi | ||
2219 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
2220 | if test -n "$ac_ct_RANLIB"; then | ||
2221 | echo "$as_me:2221: result: $ac_ct_RANLIB" >&5 | ||
2222 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
2223 | else | ||
2224 | echo "$as_me:2224: result: no" >&5 | ||
2225 | echo "${ECHO_T}no" >&6 | ||
2226 | fi | ||
2227 | |||
2228 | RANLIB=$ac_ct_RANLIB | ||
2229 | else | ||
2230 | RANLIB="$ac_cv_prog_RANLIB" | ||
2231 | fi | ||
2232 | |||
2233 | # Find a good install program. We prefer a C program (faster), | ||
2234 | # so one script is as good as another. But avoid the broken or | ||
2235 | # incompatible versions: | ||
2236 | # SysV /etc/install, /usr/sbin/install | ||
2237 | # SunOS /usr/etc/install | ||
2238 | # IRIX /sbin/install | ||
2239 | # AIX /bin/install | ||
2240 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2241 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2242 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2243 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2244 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2245 | echo "$as_me:2245: checking for a BSD compatible install" >&5 | ||
2246 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | ||
2247 | if test -z "$INSTALL"; then | ||
2248 | if test "${ac_cv_path_install+set}" = set; then | ||
2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2250 | else | ||
2251 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2252 | for ac_dir in $PATH; do | ||
2253 | IFS=$ac_save_IFS | ||
2254 | # Account for people who put trailing slashes in PATH elements. | ||
2255 | case $ac_dir/ in | ||
2256 | / | ./ | .// | /cC/* \ | ||
2257 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | ||
2258 | | /usr/ucb/* ) ;; | ||
2259 | *) | ||
2260 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2261 | # Don't use installbsd from OSF since it installs stuff as root | ||
2262 | # by default. | ||
2263 | for ac_prog in ginstall scoinst install; do | ||
2264 | if $as_executable_p "$ac_dir/$ac_prog"; then | ||
2265 | if test $ac_prog = install && | ||
2266 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | ||
2267 | # AIX install. It has an incompatible calling convention. | ||
2268 | : | ||
2269 | elif test $ac_prog = install && | ||
2270 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | ||
2271 | # program-specific install script used by HP pwplus--don't use. | ||
2272 | : | ||
2273 | else | ||
2274 | ac_cv_path_install="$ac_dir/$ac_prog -c" | ||
2275 | break 2 | ||
2276 | fi | ||
2277 | fi | ||
2278 | done | ||
2279 | ;; | ||
2280 | esac | ||
2281 | done | ||
2282 | |||
2283 | fi | ||
2284 | if test "${ac_cv_path_install+set}" = set; then | ||
2285 | INSTALL=$ac_cv_path_install | ||
2286 | else | ||
2287 | # As a last resort, use the slow shell script. We don't cache a | ||
2288 | # path for INSTALL within a source directory, because that will | ||
2289 | # break other packages using the cache if that directory is | ||
2290 | # removed, or if the path is relative. | ||
2291 | INSTALL=$ac_install_sh | ||
2292 | fi | ||
2293 | fi | ||
2294 | echo "$as_me:2294: result: $INSTALL" >&5 | ||
2295 | echo "${ECHO_T}$INSTALL" >&6 | ||
2296 | |||
2297 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2298 | # It thinks the first close brace ends the variable substitution. | ||
2299 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2300 | |||
2301 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2302 | |||
2303 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2304 | |||
2305 | # Extract the first word of "ar", so it can be a program name with args. | ||
2306 | set dummy ar; ac_word=$2 | ||
2307 | echo "$as_me:2307: checking for $ac_word" >&5 | ||
2308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2309 | if test "${ac_cv_path_AR+set}" = set; then | ||
2310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2311 | else | ||
2312 | case $AR in | ||
2313 | [\\/]* | ?:[\\/]*) | ||
2314 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
2315 | ;; | ||
2316 | *) | ||
2317 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2318 | ac_dummy="$PATH" | ||
2319 | for ac_dir in $ac_dummy; do | ||
2320 | IFS=$ac_save_IFS | ||
2321 | test -z "$ac_dir" && ac_dir=. | ||
2322 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2323 | ac_cv_path_AR="$ac_dir/$ac_word" | ||
2324 | echo "$as_me:2324: found $ac_dir/$ac_word" >&5 | ||
2325 | break | ||
2326 | fi | ||
2327 | done | ||
2328 | |||
2329 | ;; | ||
2330 | esac | ||
2331 | fi | ||
2332 | AR=$ac_cv_path_AR | ||
2333 | |||
2334 | if test -n "$AR"; then | ||
2335 | echo "$as_me:2335: result: $AR" >&5 | ||
2336 | echo "${ECHO_T}$AR" >&6 | ||
2337 | else | ||
2338 | echo "$as_me:2338: result: no" >&5 | ||
2339 | echo "${ECHO_T}no" >&6 | ||
2340 | fi | ||
2341 | |||
2342 | for ac_prog in perl5 perl | ||
2343 | do | ||
2344 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2345 | set dummy $ac_prog; ac_word=$2 | ||
2346 | echo "$as_me:2346: checking for $ac_word" >&5 | ||
2347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2348 | if test "${ac_cv_path_PERL+set}" = set; then | ||
2349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2350 | else | ||
2351 | case $PERL in | ||
2352 | [\\/]* | ?:[\\/]*) | ||
2353 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
2354 | ;; | ||
2355 | *) | ||
2356 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2357 | ac_dummy="$PATH" | ||
2358 | for ac_dir in $ac_dummy; do | ||
2359 | IFS=$ac_save_IFS | ||
2360 | test -z "$ac_dir" && ac_dir=. | ||
2361 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2362 | ac_cv_path_PERL="$ac_dir/$ac_word" | ||
2363 | echo "$as_me:2363: found $ac_dir/$ac_word" >&5 | ||
2364 | break | ||
2365 | fi | ||
2366 | done | ||
2367 | |||
2368 | ;; | ||
2369 | esac | ||
2370 | fi | ||
2371 | PERL=$ac_cv_path_PERL | ||
2372 | |||
2373 | if test -n "$PERL"; then | ||
2374 | echo "$as_me:2374: result: $PERL" >&5 | ||
2375 | echo "${ECHO_T}$PERL" >&6 | ||
2376 | else | ||
2377 | echo "$as_me:2377: result: no" >&5 | ||
2378 | echo "${ECHO_T}no" >&6 | ||
2379 | fi | ||
2380 | |||
2381 | test -n "$PERL" && break | ||
2382 | done | ||
2383 | |||
2384 | # Extract the first word of "sed", so it can be a program name with args. | ||
2385 | set dummy sed; ac_word=$2 | ||
2386 | echo "$as_me:2386: checking for $ac_word" >&5 | ||
2387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2388 | if test "${ac_cv_path_SED+set}" = set; then | ||
2389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2390 | else | ||
2391 | case $SED in | ||
2392 | [\\/]* | ?:[\\/]*) | ||
2393 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
2394 | ;; | ||
2395 | *) | ||
2396 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2397 | ac_dummy="$PATH" | ||
2398 | for ac_dir in $ac_dummy; do | ||
2399 | IFS=$ac_save_IFS | ||
2400 | test -z "$ac_dir" && ac_dir=. | ||
2401 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2402 | ac_cv_path_SED="$ac_dir/$ac_word" | ||
2403 | echo "$as_me:2403: found $ac_dir/$ac_word" >&5 | ||
2404 | break | ||
2405 | fi | ||
2406 | done | ||
2407 | |||
2408 | ;; | ||
2409 | esac | ||
2410 | fi | ||
2411 | SED=$ac_cv_path_SED | ||
2412 | |||
2413 | if test -n "$SED"; then | ||
2414 | echo "$as_me:2414: result: $SED" >&5 | ||
2415 | echo "${ECHO_T}$SED" >&6 | ||
2416 | else | ||
2417 | echo "$as_me:2417: result: no" >&5 | ||
2418 | echo "${ECHO_T}no" >&6 | ||
2419 | fi | ||
2420 | |||
2421 | # Extract the first word of "ent", so it can be a program name with args. | ||
2422 | set dummy ent; ac_word=$2 | ||
2423 | echo "$as_me:2423: checking for $ac_word" >&5 | ||
2424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2425 | if test "${ac_cv_path_ENT+set}" = set; then | ||
2426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2427 | else | ||
2428 | case $ENT in | ||
2429 | [\\/]* | ?:[\\/]*) | ||
2430 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
2431 | ;; | ||
2432 | *) | ||
2433 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2434 | ac_dummy="$PATH" | ||
2435 | for ac_dir in $ac_dummy; do | ||
2436 | IFS=$ac_save_IFS | ||
2437 | test -z "$ac_dir" && ac_dir=. | ||
2438 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2439 | ac_cv_path_ENT="$ac_dir/$ac_word" | ||
2440 | echo "$as_me:2440: found $ac_dir/$ac_word" >&5 | ||
2441 | break | ||
2442 | fi | ||
2443 | done | ||
2444 | |||
2445 | ;; | ||
2446 | esac | ||
2447 | fi | ||
2448 | ENT=$ac_cv_path_ENT | ||
2449 | |||
2450 | if test -n "$ENT"; then | ||
2451 | echo "$as_me:2451: result: $ENT" >&5 | ||
2452 | echo "${ECHO_T}$ENT" >&6 | ||
2453 | else | ||
2454 | echo "$as_me:2454: result: no" >&5 | ||
2455 | echo "${ECHO_T}no" >&6 | ||
2456 | fi | ||
2457 | |||
2458 | # Extract the first word of "bash", so it can be a program name with args. | ||
2459 | set dummy bash; ac_word=$2 | ||
2460 | echo "$as_me:2460: checking for $ac_word" >&5 | ||
2461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2462 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2464 | else | ||
2465 | case $TEST_MINUS_S_SH in | ||
2466 | [\\/]* | ?:[\\/]*) | ||
2467 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2468 | ;; | ||
2469 | *) | ||
2470 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2471 | ac_dummy="$PATH" | ||
2472 | for ac_dir in $ac_dummy; do | ||
2473 | IFS=$ac_save_IFS | ||
2474 | test -z "$ac_dir" && ac_dir=. | ||
2475 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2476 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
2477 | echo "$as_me:2477: found $ac_dir/$ac_word" >&5 | ||
2478 | break | ||
2479 | fi | ||
2480 | done | ||
2481 | |||
2482 | ;; | ||
2483 | esac | ||
2484 | fi | ||
2485 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2486 | |||
2487 | if test -n "$TEST_MINUS_S_SH"; then | ||
2488 | echo "$as_me:2488: result: $TEST_MINUS_S_SH" >&5 | ||
2489 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2490 | else | ||
2491 | echo "$as_me:2491: result: no" >&5 | ||
2492 | echo "${ECHO_T}no" >&6 | ||
2493 | fi | ||
2494 | |||
2495 | # Extract the first word of "ksh", so it can be a program name with args. | ||
2496 | set dummy ksh; ac_word=$2 | ||
2497 | echo "$as_me:2497: checking for $ac_word" >&5 | ||
2498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2499 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2501 | else | ||
2502 | case $TEST_MINUS_S_SH in | ||
2503 | [\\/]* | ?:[\\/]*) | ||
2504 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2505 | ;; | ||
2506 | *) | ||
2507 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2508 | ac_dummy="$PATH" | ||
2509 | for ac_dir in $ac_dummy; do | ||
2510 | IFS=$ac_save_IFS | ||
2511 | test -z "$ac_dir" && ac_dir=. | ||
2512 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2513 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
2514 | echo "$as_me:2514: found $ac_dir/$ac_word" >&5 | ||
2515 | break | ||
2516 | fi | ||
2517 | done | ||
2518 | |||
2519 | ;; | ||
2520 | esac | ||
2521 | fi | ||
2522 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2523 | |||
2524 | if test -n "$TEST_MINUS_S_SH"; then | ||
2525 | echo "$as_me:2525: result: $TEST_MINUS_S_SH" >&5 | ||
2526 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2527 | else | ||
2528 | echo "$as_me:2528: result: no" >&5 | ||
2529 | echo "${ECHO_T}no" >&6 | ||
2530 | fi | ||
2531 | |||
2532 | # Extract the first word of "sh", so it can be a program name with args. | ||
2533 | set dummy sh; ac_word=$2 | ||
2534 | echo "$as_me:2534: checking for $ac_word" >&5 | ||
2535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2536 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2538 | else | ||
2539 | case $TEST_MINUS_S_SH in | ||
2540 | [\\/]* | ?:[\\/]*) | ||
2541 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2542 | ;; | ||
2543 | *) | ||
2544 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2545 | ac_dummy="$PATH" | ||
2546 | for ac_dir in $ac_dummy; do | ||
2547 | IFS=$ac_save_IFS | ||
2548 | test -z "$ac_dir" && ac_dir=. | ||
2549 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2550 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
2551 | echo "$as_me:2551: found $ac_dir/$ac_word" >&5 | ||
2552 | break | ||
2553 | fi | ||
2554 | done | ||
2555 | |||
2556 | ;; | ||
2557 | esac | ||
2558 | fi | ||
2559 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2560 | |||
2561 | if test -n "$TEST_MINUS_S_SH"; then | ||
2562 | echo "$as_me:2562: result: $TEST_MINUS_S_SH" >&5 | ||
2563 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2564 | else | ||
2565 | echo "$as_me:2565: result: no" >&5 | ||
2566 | echo "${ECHO_T}no" >&6 | ||
2567 | fi | ||
2568 | |||
2569 | # Extract the first word of "sh", so it can be a program name with args. | ||
2570 | set dummy sh; ac_word=$2 | ||
2571 | echo "$as_me:2571: checking for $ac_word" >&5 | ||
2572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2573 | if test "${ac_cv_path_SH+set}" = set; then | ||
2574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2575 | else | ||
2576 | case $SH in | ||
2577 | [\\/]* | ?:[\\/]*) | ||
2578 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
2579 | ;; | ||
2580 | *) | ||
2581 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2582 | ac_dummy="$PATH" | ||
2583 | for ac_dir in $ac_dummy; do | ||
2584 | IFS=$ac_save_IFS | ||
2585 | test -z "$ac_dir" && ac_dir=. | ||
2586 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2587 | ac_cv_path_SH="$ac_dir/$ac_word" | ||
2588 | echo "$as_me:2588: found $ac_dir/$ac_word" >&5 | ||
2589 | break | ||
2590 | fi | ||
2591 | done | ||
2592 | |||
2593 | ;; | ||
2594 | esac | ||
2595 | fi | ||
2596 | SH=$ac_cv_path_SH | ||
2597 | |||
2598 | if test -n "$SH"; then | ||
2599 | echo "$as_me:2599: result: $SH" >&5 | ||
2600 | echo "${ECHO_T}$SH" >&6 | ||
2601 | else | ||
2602 | echo "$as_me:2602: result: no" >&5 | ||
2603 | echo "${ECHO_T}no" >&6 | ||
2604 | fi | ||
2605 | |||
2606 | # System features | ||
2607 | # Check whether --enable-largefile or --disable-largefile was given. | ||
2608 | if test "${enable_largefile+set}" = set; then | ||
2609 | enableval="$enable_largefile" | ||
2610 | |||
2611 | fi; | ||
2612 | if test "$enable_largefile" != no; then | ||
2613 | |||
2614 | echo "$as_me:2614: checking for special C compiler options needed for large files" >&5 | ||
2615 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
2616 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
2617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2618 | else | ||
2619 | ac_cv_sys_largefile_CC=no | ||
2620 | if test "$GCC" != yes; then | ||
2621 | ac_save_CC=$CC | ||
2622 | while :; do | ||
2623 | # IRIX 6.2 and later do not support large files by default, | ||
2624 | # so use the C compiler's -n32 option if that helps. | ||
2625 | cat >conftest.$ac_ext <<_ACEOF | ||
2626 | #line 2626 "configure" | ||
2627 | #include "confdefs.h" | ||
2628 | #include <sys/types.h> | ||
2629 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2630 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2631 | since some C++ compilers masquerading as C compilers | ||
2632 | incorrectly reject 9223372036854775807. */ | ||
2633 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2634 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2635 | && LARGE_OFF_T % 2147483647 == 1) | ||
2636 | ? 1 : -1]; | ||
2637 | int | ||
2638 | main () | ||
2639 | { | ||
2640 | |||
2641 | ; | ||
2642 | return 0; | ||
2643 | } | ||
2644 | _ACEOF | ||
2645 | rm -f conftest.$ac_objext | ||
2646 | if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5 | ||
2647 | (eval $ac_compile) 2>&5 | ||
2648 | ac_status=$? | ||
2649 | echo "$as_me:2649: \$? = $ac_status" >&5 | ||
2650 | (exit $ac_status); } && | ||
2651 | { ac_try='test -s conftest.$ac_objext' | ||
2652 | { (eval echo "$as_me:2652: \"$ac_try\"") >&5 | ||
2653 | (eval $ac_try) 2>&5 | ||
2654 | ac_status=$? | ||
2655 | echo "$as_me:2655: \$? = $ac_status" >&5 | ||
2656 | (exit $ac_status); }; }; then | ||
2657 | break | ||
2658 | else | ||
2659 | echo "$as_me: failed program was:" >&5 | ||
2660 | cat conftest.$ac_ext >&5 | ||
2661 | fi | ||
2662 | rm -f conftest.$ac_objext | ||
2663 | CC="$CC -n32" | ||
2664 | rm -f conftest.$ac_objext | ||
2665 | if { (eval echo "$as_me:2665: \"$ac_compile\"") >&5 | ||
2666 | (eval $ac_compile) 2>&5 | ||
2667 | ac_status=$? | ||
2668 | echo "$as_me:2668: \$? = $ac_status" >&5 | ||
2669 | (exit $ac_status); } && | ||
2670 | { ac_try='test -s conftest.$ac_objext' | ||
2671 | { (eval echo "$as_me:2671: \"$ac_try\"") >&5 | ||
2672 | (eval $ac_try) 2>&5 | ||
2673 | ac_status=$? | ||
2674 | echo "$as_me:2674: \$? = $ac_status" >&5 | ||
2675 | (exit $ac_status); }; }; then | ||
2676 | ac_cv_sys_largefile_CC=' -n32'; break | ||
2677 | else | ||
2678 | echo "$as_me: failed program was:" >&5 | ||
2679 | cat conftest.$ac_ext >&5 | ||
2680 | fi | ||
2681 | rm -f conftest.$ac_objext | ||
2682 | break | ||
2683 | done | ||
2684 | CC=$ac_save_CC | ||
2685 | rm -f conftest.$ac_ext | ||
2686 | fi | ||
2687 | fi | ||
2688 | echo "$as_me:2688: result: $ac_cv_sys_largefile_CC" >&5 | ||
2689 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
2690 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
2691 | CC=$CC$ac_cv_sys_largefile_CC | ||
2692 | fi | ||
2693 | |||
2694 | echo "$as_me:2694: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
2695 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
2696 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
2697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2698 | else | ||
2699 | while :; do | ||
2700 | ac_cv_sys_file_offset_bits=no | ||
2701 | cat >conftest.$ac_ext <<_ACEOF | ||
2702 | #line 2702 "configure" | ||
2703 | #include "confdefs.h" | ||
2704 | #include <sys/types.h> | ||
2705 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2706 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2707 | since some C++ compilers masquerading as C compilers | ||
2708 | incorrectly reject 9223372036854775807. */ | ||
2709 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2710 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2711 | && LARGE_OFF_T % 2147483647 == 1) | ||
2712 | ? 1 : -1]; | ||
2713 | int | ||
2714 | main () | ||
2715 | { | ||
2716 | |||
2717 | ; | ||
2718 | return 0; | ||
2719 | } | ||
2720 | _ACEOF | ||
2721 | rm -f conftest.$ac_objext | ||
2722 | if { (eval echo "$as_me:2722: \"$ac_compile\"") >&5 | ||
2723 | (eval $ac_compile) 2>&5 | ||
2724 | ac_status=$? | ||
2725 | echo "$as_me:2725: \$? = $ac_status" >&5 | ||
2726 | (exit $ac_status); } && | ||
2727 | { ac_try='test -s conftest.$ac_objext' | ||
2728 | { (eval echo "$as_me:2728: \"$ac_try\"") >&5 | ||
2729 | (eval $ac_try) 2>&5 | ||
2730 | ac_status=$? | ||
2731 | echo "$as_me:2731: \$? = $ac_status" >&5 | ||
2732 | (exit $ac_status); }; }; then | ||
2733 | break | ||
2734 | else | ||
2735 | echo "$as_me: failed program was:" >&5 | ||
2736 | cat conftest.$ac_ext >&5 | ||
2737 | fi | ||
2738 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2739 | cat >conftest.$ac_ext <<_ACEOF | ||
2740 | #line 2740 "configure" | ||
2741 | #include "confdefs.h" | ||
2742 | #define _FILE_OFFSET_BITS 64 | ||
2743 | #include <sys/types.h> | ||
2744 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2745 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2746 | since some C++ compilers masquerading as C compilers | ||
2747 | incorrectly reject 9223372036854775807. */ | ||
2748 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2749 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2750 | && LARGE_OFF_T % 2147483647 == 1) | ||
2751 | ? 1 : -1]; | ||
2752 | int | ||
2753 | main () | ||
2754 | { | ||
2755 | |||
2756 | ; | ||
2757 | return 0; | ||
2758 | } | ||
2759 | _ACEOF | ||
2760 | rm -f conftest.$ac_objext | ||
2761 | if { (eval echo "$as_me:2761: \"$ac_compile\"") >&5 | ||
2762 | (eval $ac_compile) 2>&5 | ||
2763 | ac_status=$? | ||
2764 | echo "$as_me:2764: \$? = $ac_status" >&5 | ||
2765 | (exit $ac_status); } && | ||
2766 | { ac_try='test -s conftest.$ac_objext' | ||
2767 | { (eval echo "$as_me:2767: \"$ac_try\"") >&5 | ||
2768 | (eval $ac_try) 2>&5 | ||
2769 | ac_status=$? | ||
2770 | echo "$as_me:2770: \$? = $ac_status" >&5 | ||
2771 | (exit $ac_status); }; }; then | ||
2772 | ac_cv_sys_file_offset_bits=64; break | ||
2773 | else | ||
2774 | echo "$as_me: failed program was:" >&5 | ||
2775 | cat conftest.$ac_ext >&5 | ||
2776 | fi | ||
2777 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2778 | break | ||
2779 | done | ||
2780 | fi | ||
2781 | echo "$as_me:2781: result: $ac_cv_sys_file_offset_bits" >&5 | ||
2782 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
2783 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
2784 | |||
2785 | cat >>confdefs.h <<EOF | ||
2786 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
2787 | EOF | ||
2788 | |||
2789 | fi | ||
2790 | rm -f conftest* | ||
2791 | echo "$as_me:2791: checking for _LARGE_FILES value needed for large files" >&5 | ||
2792 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
2793 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
2794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2795 | else | ||
2796 | while :; do | ||
2797 | ac_cv_sys_large_files=no | ||
2798 | cat >conftest.$ac_ext <<_ACEOF | ||
2799 | #line 2799 "configure" | ||
2800 | #include "confdefs.h" | ||
2801 | #include <sys/types.h> | ||
2802 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2803 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2804 | since some C++ compilers masquerading as C compilers | ||
2805 | incorrectly reject 9223372036854775807. */ | ||
2806 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2807 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2808 | && LARGE_OFF_T % 2147483647 == 1) | ||
2809 | ? 1 : -1]; | ||
2810 | int | ||
2811 | main () | ||
2812 | { | ||
2813 | |||
2814 | ; | ||
2815 | return 0; | ||
2816 | } | ||
2817 | _ACEOF | ||
2818 | rm -f conftest.$ac_objext | ||
2819 | if { (eval echo "$as_me:2819: \"$ac_compile\"") >&5 | ||
2820 | (eval $ac_compile) 2>&5 | ||
2821 | ac_status=$? | ||
2822 | echo "$as_me:2822: \$? = $ac_status" >&5 | ||
2823 | (exit $ac_status); } && | ||
2824 | { ac_try='test -s conftest.$ac_objext' | ||
2825 | { (eval echo "$as_me:2825: \"$ac_try\"") >&5 | ||
2826 | (eval $ac_try) 2>&5 | ||
2827 | ac_status=$? | ||
2828 | echo "$as_me:2828: \$? = $ac_status" >&5 | ||
2829 | (exit $ac_status); }; }; then | ||
2830 | break | ||
2831 | else | ||
2832 | echo "$as_me: failed program was:" >&5 | ||
2833 | cat conftest.$ac_ext >&5 | ||
2834 | fi | ||
2835 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2836 | cat >conftest.$ac_ext <<_ACEOF | ||
2837 | #line 2837 "configure" | ||
2838 | #include "confdefs.h" | ||
2839 | #define _LARGE_FILES 1 | ||
2840 | #include <sys/types.h> | ||
2841 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2842 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2843 | since some C++ compilers masquerading as C compilers | ||
2844 | incorrectly reject 9223372036854775807. */ | ||
2845 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2846 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2847 | && LARGE_OFF_T % 2147483647 == 1) | ||
2848 | ? 1 : -1]; | ||
2849 | int | ||
2850 | main () | ||
2851 | { | ||
2852 | |||
2853 | ; | ||
2854 | return 0; | ||
2855 | } | ||
2856 | _ACEOF | ||
2857 | rm -f conftest.$ac_objext | ||
2858 | if { (eval echo "$as_me:2858: \"$ac_compile\"") >&5 | ||
2859 | (eval $ac_compile) 2>&5 | ||
2860 | ac_status=$? | ||
2861 | echo "$as_me:2861: \$? = $ac_status" >&5 | ||
2862 | (exit $ac_status); } && | ||
2863 | { ac_try='test -s conftest.$ac_objext' | ||
2864 | { (eval echo "$as_me:2864: \"$ac_try\"") >&5 | ||
2865 | (eval $ac_try) 2>&5 | ||
2866 | ac_status=$? | ||
2867 | echo "$as_me:2867: \$? = $ac_status" >&5 | ||
2868 | (exit $ac_status); }; }; then | ||
2869 | ac_cv_sys_large_files=1; break | ||
2870 | else | ||
2871 | echo "$as_me: failed program was:" >&5 | ||
2872 | cat conftest.$ac_ext >&5 | ||
2873 | fi | ||
2874 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2875 | break | ||
2876 | done | ||
2877 | fi | ||
2878 | echo "$as_me:2878: result: $ac_cv_sys_large_files" >&5 | ||
2879 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
2880 | if test "$ac_cv_sys_large_files" != no; then | ||
2881 | |||
2882 | cat >>confdefs.h <<EOF | ||
2883 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
2884 | EOF | ||
2885 | |||
2886 | fi | ||
2887 | rm -f conftest* | ||
2888 | fi | ||
2889 | |||
2890 | if test -z "$AR" ; then | ||
2891 | { { echo "$as_me:2891: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
2892 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
2893 | { (exit 1); exit 1; }; } | ||
2894 | fi | ||
2895 | |||
2896 | # Use LOGIN_PROGRAM from environment if possible | ||
2897 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
2898 | cat >>confdefs.h <<EOF | ||
2899 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
2900 | EOF | ||
2901 | |||
2902 | else | ||
2903 | # Search for login | ||
2904 | # Extract the first word of "login", so it can be a program name with args. | ||
2905 | set dummy login; ac_word=$2 | ||
2906 | echo "$as_me:2906: checking for $ac_word" >&5 | ||
2907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2908 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
2909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2910 | else | ||
2911 | case $LOGIN_PROGRAM_FALLBACK in | ||
2912 | [\\/]* | ?:[\\/]*) | ||
2913 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
2914 | ;; | ||
2915 | *) | ||
2916 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2917 | ac_dummy="$PATH" | ||
2918 | for ac_dir in $ac_dummy; do | ||
2919 | IFS=$ac_save_IFS | ||
2920 | test -z "$ac_dir" && ac_dir=. | ||
2921 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2922 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$ac_dir/$ac_word" | ||
2923 | echo "$as_me:2923: found $ac_dir/$ac_word" >&5 | ||
2924 | break | ||
2925 | fi | ||
2926 | done | ||
2927 | |||
2928 | ;; | ||
2929 | esac | ||
2930 | fi | ||
2931 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
2932 | |||
2933 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
2934 | echo "$as_me:2934: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
2935 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
2936 | else | ||
2937 | echo "$as_me:2937: result: no" >&5 | ||
2938 | echo "${ECHO_T}no" >&6 | ||
2939 | fi | ||
2940 | |||
2941 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
2942 | cat >>confdefs.h <<EOF | ||
2943 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
2944 | EOF | ||
2945 | |||
2946 | fi | ||
2947 | fi | ||
2948 | |||
2949 | # Extract the first word of "passwd", so it can be a program name with args. | ||
2950 | set dummy passwd; ac_word=$2 | ||
2951 | echo "$as_me:2951: checking for $ac_word" >&5 | ||
2952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2953 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
2954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2955 | else | ||
2956 | case $PATH_PASSWD_PROG in | ||
2957 | [\\/]* | ?:[\\/]*) | ||
2958 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
2959 | ;; | ||
2960 | *) | ||
2961 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2962 | ac_dummy="$PATH" | ||
2963 | for ac_dir in $ac_dummy; do | ||
2964 | IFS=$ac_save_IFS | ||
2965 | test -z "$ac_dir" && ac_dir=. | ||
2966 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2967 | ac_cv_path_PATH_PASSWD_PROG="$ac_dir/$ac_word" | ||
2968 | echo "$as_me:2968: found $ac_dir/$ac_word" >&5 | ||
2969 | break | ||
2970 | fi | ||
2971 | done | ||
2972 | |||
2973 | ;; | ||
2974 | esac | ||
2975 | fi | ||
2976 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
2977 | |||
2978 | if test -n "$PATH_PASSWD_PROG"; then | ||
2979 | echo "$as_me:2979: result: $PATH_PASSWD_PROG" >&5 | ||
2980 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6 | ||
2981 | else | ||
2982 | echo "$as_me:2982: result: no" >&5 | ||
2983 | echo "${ECHO_T}no" >&6 | ||
2984 | fi | ||
2985 | |||
2986 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
2987 | cat >>confdefs.h <<EOF | ||
2988 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
2989 | EOF | ||
2990 | |||
2991 | fi | ||
2992 | |||
2993 | if test -z "$LD" ; then | ||
2994 | LD=$CC | ||
2995 | fi | ||
2996 | |||
2997 | echo "$as_me:2997: checking for $CC option to accept ANSI C" >&5 | ||
2998 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
2999 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
3000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3001 | else | ||
3002 | ac_cv_prog_cc_stdc=no | ||
3003 | ac_save_CC=$CC | ||
3004 | cat >conftest.$ac_ext <<_ACEOF | ||
3005 | #line 3005 "configure" | ||
3006 | #include "confdefs.h" | ||
3007 | #include <stdarg.h> | ||
3008 | #include <stdio.h> | ||
3009 | #include <sys/types.h> | ||
3010 | #include <sys/stat.h> | ||
3011 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3012 | struct buf { int x; }; | ||
3013 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3014 | static char *e (p, i) | ||
3015 | char **p; | ||
3016 | int i; | ||
3017 | { | ||
3018 | return p[i]; | ||
3019 | } | ||
3020 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3021 | { | ||
3022 | char *s; | ||
3023 | va_list v; | ||
3024 | va_start (v,p); | ||
3025 | s = g (p, va_arg (v,int)); | ||
3026 | va_end (v); | ||
3027 | return s; | ||
3028 | } | ||
3029 | int test (int i, double x); | ||
3030 | struct s1 {int (*f) (int a);}; | ||
3031 | struct s2 {int (*f) (double a);}; | ||
3032 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3033 | int argc; | ||
3034 | char **argv; | ||
3035 | int | ||
3036 | main () | ||
3037 | { | ||
3038 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3039 | ; | ||
3040 | return 0; | ||
3041 | } | ||
3042 | _ACEOF | ||
3043 | # Don't try gcc -ansi; that turns off useful extensions and | ||
3044 | # breaks some systems' header files. | ||
3045 | # AIX -qlanglvl=ansi | ||
3046 | # Ultrix and OSF/1 -std1 | ||
3047 | # HP-UX 10.20 and later -Ae | ||
3048 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
3049 | # SVR4 -Xc -D__EXTENSIONS__ | ||
3050 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3051 | do | ||
3052 | CC="$ac_save_CC $ac_arg" | ||
3053 | rm -f conftest.$ac_objext | ||
3054 | if { (eval echo "$as_me:3054: \"$ac_compile\"") >&5 | ||
3055 | (eval $ac_compile) 2>&5 | ||
3056 | ac_status=$? | ||
3057 | echo "$as_me:3057: \$? = $ac_status" >&5 | ||
3058 | (exit $ac_status); } && | ||
3059 | { ac_try='test -s conftest.$ac_objext' | ||
3060 | { (eval echo "$as_me:3060: \"$ac_try\"") >&5 | ||
3061 | (eval $ac_try) 2>&5 | ||
3062 | ac_status=$? | ||
3063 | echo "$as_me:3063: \$? = $ac_status" >&5 | ||
3064 | (exit $ac_status); }; }; then | ||
3065 | ac_cv_prog_cc_stdc=$ac_arg | ||
3066 | break | ||
3067 | else | ||
3068 | echo "$as_me: failed program was:" >&5 | ||
3069 | cat conftest.$ac_ext >&5 | ||
3070 | fi | ||
3071 | rm -f conftest.$ac_objext | ||
3072 | done | ||
3073 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
3074 | CC=$ac_save_CC | ||
3075 | |||
3076 | fi | ||
3077 | |||
3078 | case "x$ac_cv_prog_cc_stdc" in | ||
3079 | x|xno) | ||
3080 | echo "$as_me:3080: result: none needed" >&5 | ||
3081 | echo "${ECHO_T}none needed" >&6 ;; | ||
3082 | *) | ||
3083 | echo "$as_me:3083: result: $ac_cv_prog_cc_stdc" >&5 | ||
3084 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
3085 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
3086 | esac | ||
3087 | |||
3088 | echo "$as_me:3088: checking for inline" >&5 | ||
3089 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
3090 | if test "${ac_cv_c_inline+set}" = set; then | ||
3091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3092 | else | ||
3093 | ac_cv_c_inline=no | ||
3094 | for ac_kw in inline __inline__ __inline; do | ||
3095 | cat >conftest.$ac_ext <<_ACEOF | ||
3096 | #line 3096 "configure" | ||
3097 | #include "confdefs.h" | ||
3098 | #ifndef __cplusplus | ||
3099 | static $ac_kw int static_foo () {return 0; } | ||
3100 | $ac_kw int foo () {return 0; } | ||
3101 | #endif | ||
3102 | |||
3103 | _ACEOF | ||
3104 | rm -f conftest.$ac_objext | ||
3105 | if { (eval echo "$as_me:3105: \"$ac_compile\"") >&5 | ||
3106 | (eval $ac_compile) 2>&5 | ||
3107 | ac_status=$? | ||
3108 | echo "$as_me:3108: \$? = $ac_status" >&5 | ||
3109 | (exit $ac_status); } && | ||
3110 | { ac_try='test -s conftest.$ac_objext' | ||
3111 | { (eval echo "$as_me:3111: \"$ac_try\"") >&5 | ||
3112 | (eval $ac_try) 2>&5 | ||
3113 | ac_status=$? | ||
3114 | echo "$as_me:3114: \$? = $ac_status" >&5 | ||
3115 | (exit $ac_status); }; }; then | ||
3116 | ac_cv_c_inline=$ac_kw; break | ||
3117 | else | ||
3118 | echo "$as_me: failed program was:" >&5 | ||
3119 | cat conftest.$ac_ext >&5 | ||
3120 | fi | ||
3121 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3122 | done | ||
3123 | |||
3124 | fi | ||
3125 | echo "$as_me:3125: result: $ac_cv_c_inline" >&5 | ||
3126 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
3127 | case $ac_cv_c_inline in | ||
3128 | inline | yes) ;; | ||
3129 | no) | ||
3130 | cat >>confdefs.h <<\EOF | ||
3131 | #define inline | ||
3132 | EOF | ||
3133 | ;; | ||
3134 | *) cat >>confdefs.h <<EOF | ||
3135 | #define inline $ac_cv_c_inline | ||
3136 | EOF | ||
3137 | ;; | ||
3138 | esac | ||
3139 | |||
3140 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
3141 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | ||
3142 | fi | ||
3143 | |||
3144 | # Check whether --with-rpath or --without-rpath was given. | ||
3145 | if test "${with_rpath+set}" = set; then | ||
3146 | withval="$with_rpath" | ||
3147 | |||
3148 | if test "x$withval" = "xno" ; then | ||
3149 | need_dash_r="" | ||
3150 | fi | ||
3151 | if test "x$withval" = "xyes" ; then | ||
3152 | need_dash_r=1 | ||
3153 | fi | ||
3154 | |||
3155 | fi; | ||
3156 | |||
3157 | # Check for some target-specific stuff | ||
3158 | case "$host" in | ||
3159 | *-*-aix*) | ||
3160 | echo "$as_me:3160: checking how to specify blibpath for linker ($LD)" >&5 | ||
3161 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6 | ||
3162 | if (test -z "$blibpath"); then | ||
3163 | blibpath="/usr/lib:/lib" | ||
3164 | fi | ||
3165 | saved_LDFLAGS="$LDFLAGS" | ||
3166 | for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do | ||
3167 | if (test -z "$blibflags"); then | ||
3168 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
3169 | cat >conftest.$ac_ext <<_ACEOF | ||
3170 | #line 3170 "configure" | ||
3171 | #include "confdefs.h" | ||
3172 | |||
3173 | int | ||
3174 | main () | ||
3175 | { | ||
3176 | |||
3177 | ; | ||
3178 | return 0; | ||
3179 | } | ||
3180 | _ACEOF | ||
3181 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3182 | if { (eval echo "$as_me:3182: \"$ac_link\"") >&5 | ||
3183 | (eval $ac_link) 2>&5 | ||
3184 | ac_status=$? | ||
3185 | echo "$as_me:3185: \$? = $ac_status" >&5 | ||
3186 | (exit $ac_status); } && | ||
3187 | { ac_try='test -s conftest$ac_exeext' | ||
3188 | { (eval echo "$as_me:3188: \"$ac_try\"") >&5 | ||
3189 | (eval $ac_try) 2>&5 | ||
3190 | ac_status=$? | ||
3191 | echo "$as_me:3191: \$? = $ac_status" >&5 | ||
3192 | (exit $ac_status); }; }; then | ||
3193 | blibflags=$tryflags | ||
3194 | else | ||
3195 | echo "$as_me: failed program was:" >&5 | ||
3196 | cat conftest.$ac_ext >&5 | ||
3197 | fi | ||
3198 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3199 | fi | ||
3200 | done | ||
3201 | if (test -z "$blibflags"); then | ||
3202 | echo "$as_me:3202: result: not found" >&5 | ||
3203 | echo "${ECHO_T}not found" >&6 | ||
3204 | { { echo "$as_me:3204: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
3205 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
3206 | { (exit 1); exit 1; }; } | ||
3207 | else | ||
3208 | echo "$as_me:3208: result: $blibflags" >&5 | ||
3209 | echo "${ECHO_T}$blibflags" >&6 | ||
3210 | fi | ||
3211 | LDFLAGS="$saved_LDFLAGS" | ||
3212 | echo "$as_me:3212: checking for authenticate" >&5 | ||
3213 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
3214 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
3215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3216 | else | ||
3217 | cat >conftest.$ac_ext <<_ACEOF | ||
3218 | #line 3218 "configure" | ||
3219 | #include "confdefs.h" | ||
3220 | /* System header to define __stub macros and hopefully few prototypes, | ||
3221 | which can conflict with char authenticate (); below. */ | ||
3222 | #include <assert.h> | ||
3223 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3224 | #ifdef __cplusplus | ||
3225 | extern "C" | ||
3226 | #endif | ||
3227 | /* We use char because int might match the return type of a gcc2 | ||
3228 | builtin and then its argument prototype would still apply. */ | ||
3229 | char authenticate (); | ||
3230 | char (*f) (); | ||
3231 | |||
3232 | int | ||
3233 | main () | ||
3234 | { | ||
3235 | /* The GNU C library defines this for functions which it implements | ||
3236 | to always fail with ENOSYS. Some functions are actually named | ||
3237 | something starting with __ and the normal name is an alias. */ | ||
3238 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
3239 | choke me | ||
3240 | #else | ||
3241 | f = authenticate; | ||
3242 | #endif | ||
3243 | |||
3244 | ; | ||
3245 | return 0; | ||
3246 | } | ||
3247 | _ACEOF | ||
3248 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3249 | if { (eval echo "$as_me:3249: \"$ac_link\"") >&5 | ||
3250 | (eval $ac_link) 2>&5 | ||
3251 | ac_status=$? | ||
3252 | echo "$as_me:3252: \$? = $ac_status" >&5 | ||
3253 | (exit $ac_status); } && | ||
3254 | { ac_try='test -s conftest$ac_exeext' | ||
3255 | { (eval echo "$as_me:3255: \"$ac_try\"") >&5 | ||
3256 | (eval $ac_try) 2>&5 | ||
3257 | ac_status=$? | ||
3258 | echo "$as_me:3258: \$? = $ac_status" >&5 | ||
3259 | (exit $ac_status); }; }; then | ||
3260 | ac_cv_func_authenticate=yes | ||
3261 | else | ||
3262 | echo "$as_me: failed program was:" >&5 | ||
3263 | cat conftest.$ac_ext >&5 | ||
3264 | ac_cv_func_authenticate=no | ||
3265 | fi | ||
3266 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3267 | fi | ||
3268 | echo "$as_me:3268: result: $ac_cv_func_authenticate" >&5 | ||
3269 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
3270 | if test $ac_cv_func_authenticate = yes; then | ||
3271 | cat >>confdefs.h <<\EOF | ||
3272 | #define WITH_AIXAUTHENTICATE 1 | ||
3273 | EOF | ||
3274 | |||
3275 | else | ||
3276 | echo "$as_me:3276: checking for authenticate in -ls" >&5 | ||
3277 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
3278 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
3279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3280 | else | ||
3281 | ac_check_lib_save_LIBS=$LIBS | ||
3282 | LIBS="-ls $LIBS" | ||
3283 | cat >conftest.$ac_ext <<_ACEOF | ||
3284 | #line 3284 "configure" | ||
3285 | #include "confdefs.h" | ||
3286 | |||
3287 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3288 | #ifdef __cplusplus | ||
3289 | extern "C" | ||
3290 | #endif | ||
3291 | /* We use char because int might match the return type of a gcc2 | ||
3292 | builtin and then its argument prototype would still apply. */ | ||
3293 | char authenticate (); | ||
3294 | int | ||
3295 | main () | ||
3296 | { | ||
3297 | authenticate (); | ||
3298 | ; | ||
3299 | return 0; | ||
3300 | } | ||
3301 | _ACEOF | ||
3302 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3303 | if { (eval echo "$as_me:3303: \"$ac_link\"") >&5 | ||
3304 | (eval $ac_link) 2>&5 | ||
3305 | ac_status=$? | ||
3306 | echo "$as_me:3306: \$? = $ac_status" >&5 | ||
3307 | (exit $ac_status); } && | ||
3308 | { ac_try='test -s conftest$ac_exeext' | ||
3309 | { (eval echo "$as_me:3309: \"$ac_try\"") >&5 | ||
3310 | (eval $ac_try) 2>&5 | ||
3311 | ac_status=$? | ||
3312 | echo "$as_me:3312: \$? = $ac_status" >&5 | ||
3313 | (exit $ac_status); }; }; then | ||
3314 | ac_cv_lib_s_authenticate=yes | ||
3315 | else | ||
3316 | echo "$as_me: failed program was:" >&5 | ||
3317 | cat conftest.$ac_ext >&5 | ||
3318 | ac_cv_lib_s_authenticate=no | ||
3319 | fi | ||
3320 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3321 | LIBS=$ac_check_lib_save_LIBS | ||
3322 | fi | ||
3323 | echo "$as_me:3323: result: $ac_cv_lib_s_authenticate" >&5 | ||
3324 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
3325 | if test $ac_cv_lib_s_authenticate = yes; then | ||
3326 | cat >>confdefs.h <<\EOF | ||
3327 | #define WITH_AIXAUTHENTICATE 1 | ||
3328 | EOF | ||
3329 | |||
3330 | LIBS="$LIBS -ls" | ||
3331 | |||
3332 | fi | ||
3333 | |||
3334 | fi | ||
3335 | |||
3336 | echo "$as_me:3336: checking whether loginfailed is declared" >&5 | ||
3337 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6 | ||
3338 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
3339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3340 | else | ||
3341 | cat >conftest.$ac_ext <<_ACEOF | ||
3342 | #line 3342 "configure" | ||
3343 | #include "confdefs.h" | ||
3344 | #include <usersec.h> | ||
3345 | |||
3346 | int | ||
3347 | main () | ||
3348 | { | ||
3349 | #ifndef loginfailed | ||
3350 | char *p = (char *) loginfailed; | ||
3351 | #endif | ||
3352 | |||
3353 | ; | ||
3354 | return 0; | ||
3355 | } | ||
3356 | _ACEOF | ||
3357 | rm -f conftest.$ac_objext | ||
3358 | if { (eval echo "$as_me:3358: \"$ac_compile\"") >&5 | ||
3359 | (eval $ac_compile) 2>&5 | ||
3360 | ac_status=$? | ||
3361 | echo "$as_me:3361: \$? = $ac_status" >&5 | ||
3362 | (exit $ac_status); } && | ||
3363 | { ac_try='test -s conftest.$ac_objext' | ||
3364 | { (eval echo "$as_me:3364: \"$ac_try\"") >&5 | ||
3365 | (eval $ac_try) 2>&5 | ||
3366 | ac_status=$? | ||
3367 | echo "$as_me:3367: \$? = $ac_status" >&5 | ||
3368 | (exit $ac_status); }; }; then | ||
3369 | ac_cv_have_decl_loginfailed=yes | ||
3370 | else | ||
3371 | echo "$as_me: failed program was:" >&5 | ||
3372 | cat conftest.$ac_ext >&5 | ||
3373 | ac_cv_have_decl_loginfailed=no | ||
3374 | fi | ||
3375 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3376 | fi | ||
3377 | echo "$as_me:3377: result: $ac_cv_have_decl_loginfailed" >&5 | ||
3378 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6 | ||
3379 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
3380 | echo "$as_me:3380: checking if loginfailed takes 4 arguments" >&5 | ||
3381 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6 | ||
3382 | cat >conftest.$ac_ext <<_ACEOF | ||
3383 | #line 3383 "configure" | ||
3384 | #include "confdefs.h" | ||
3385 | #include <usersec.h> | ||
3386 | int | ||
3387 | main () | ||
3388 | { | ||
3389 | (void)loginfailed("user","host","tty",0); | ||
3390 | ; | ||
3391 | return 0; | ||
3392 | } | ||
3393 | _ACEOF | ||
3394 | rm -f conftest.$ac_objext | ||
3395 | if { (eval echo "$as_me:3395: \"$ac_compile\"") >&5 | ||
3396 | (eval $ac_compile) 2>&5 | ||
3397 | ac_status=$? | ||
3398 | echo "$as_me:3398: \$? = $ac_status" >&5 | ||
3399 | (exit $ac_status); } && | ||
3400 | { ac_try='test -s conftest.$ac_objext' | ||
3401 | { (eval echo "$as_me:3401: \"$ac_try\"") >&5 | ||
3402 | (eval $ac_try) 2>&5 | ||
3403 | ac_status=$? | ||
3404 | echo "$as_me:3404: \$? = $ac_status" >&5 | ||
3405 | (exit $ac_status); }; }; then | ||
3406 | echo "$as_me:3406: result: yes" >&5 | ||
3407 | echo "${ECHO_T}yes" >&6 | ||
3408 | cat >>confdefs.h <<\EOF | ||
3409 | #define AIX_LOGINFAILED_4ARG 1 | ||
3410 | EOF | ||
3411 | |||
3412 | else | ||
3413 | echo "$as_me: failed program was:" >&5 | ||
3414 | cat conftest.$ac_ext >&5 | ||
3415 | echo "$as_me:3415: result: no" >&5 | ||
3416 | echo "${ECHO_T}no" >&6 | ||
3417 | |||
3418 | fi | ||
3419 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3420 | fi | ||
3421 | |||
3422 | for ac_func in setauthdb | ||
3423 | do | ||
3424 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
3425 | echo "$as_me:3425: checking for $ac_func" >&5 | ||
3426 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
3427 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
3428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3429 | else | ||
3430 | cat >conftest.$ac_ext <<_ACEOF | ||
3431 | #line 3431 "configure" | ||
3432 | #include "confdefs.h" | ||
3433 | /* System header to define __stub macros and hopefully few prototypes, | ||
3434 | which can conflict with char $ac_func (); below. */ | ||
3435 | #include <assert.h> | ||
3436 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3437 | #ifdef __cplusplus | ||
3438 | extern "C" | ||
3439 | #endif | ||
3440 | /* We use char because int might match the return type of a gcc2 | ||
3441 | builtin and then its argument prototype would still apply. */ | ||
3442 | char $ac_func (); | ||
3443 | char (*f) (); | ||
3444 | |||
3445 | int | ||
3446 | main () | ||
3447 | { | ||
3448 | /* The GNU C library defines this for functions which it implements | ||
3449 | to always fail with ENOSYS. Some functions are actually named | ||
3450 | something starting with __ and the normal name is an alias. */ | ||
3451 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
3452 | choke me | ||
3453 | #else | ||
3454 | f = $ac_func; | ||
3455 | #endif | ||
3456 | |||
3457 | ; | ||
3458 | return 0; | ||
3459 | } | ||
3460 | _ACEOF | ||
3461 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3462 | if { (eval echo "$as_me:3462: \"$ac_link\"") >&5 | ||
3463 | (eval $ac_link) 2>&5 | ||
3464 | ac_status=$? | ||
3465 | echo "$as_me:3465: \$? = $ac_status" >&5 | ||
3466 | (exit $ac_status); } && | ||
3467 | { ac_try='test -s conftest$ac_exeext' | ||
3468 | { (eval echo "$as_me:3468: \"$ac_try\"") >&5 | ||
3469 | (eval $ac_try) 2>&5 | ||
3470 | ac_status=$? | ||
3471 | echo "$as_me:3471: \$? = $ac_status" >&5 | ||
3472 | (exit $ac_status); }; }; then | ||
3473 | eval "$as_ac_var=yes" | ||
3474 | else | ||
3475 | echo "$as_me: failed program was:" >&5 | ||
3476 | cat conftest.$ac_ext >&5 | ||
3477 | eval "$as_ac_var=no" | ||
3478 | fi | ||
3479 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3480 | fi | ||
3481 | echo "$as_me:3481: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
3482 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
3483 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
3484 | cat >>confdefs.h <<EOF | ||
3485 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
3486 | EOF | ||
3487 | |||
3488 | fi | ||
3489 | done | ||
3490 | |||
3491 | cat >>confdefs.h <<\EOF | ||
3492 | #define BROKEN_GETADDRINFO 1 | ||
3493 | EOF | ||
3494 | |||
3495 | cat >>confdefs.h <<\EOF | ||
3496 | #define BROKEN_REALPATH 1 | ||
3497 | EOF | ||
3498 | |||
3499 | cat >>confdefs.h <<\EOF | ||
3500 | #define SETEUID_BREAKS_SETUID 1 | ||
3501 | EOF | ||
3502 | |||
3503 | cat >>confdefs.h <<\EOF | ||
3504 | #define BROKEN_SETREUID 1 | ||
3505 | EOF | ||
3506 | |||
3507 | cat >>confdefs.h <<\EOF | ||
3508 | #define BROKEN_SETREGID 1 | ||
3509 | EOF | ||
3510 | |||
3511 | cat >>confdefs.h <<\EOF | ||
3512 | #define DISABLE_LASTLOG 1 | ||
3513 | EOF | ||
3514 | |||
3515 | cat >>confdefs.h <<\EOF | ||
3516 | #define LOGIN_NEEDS_UTMPX 1 | ||
3517 | EOF | ||
3518 | |||
3519 | cat >>confdefs.h <<\EOF | ||
3520 | #define SPT_TYPE SPT_REUSEARGV | ||
3521 | EOF | ||
3522 | |||
3523 | ;; | ||
3524 | *-*-cygwin*) | ||
3525 | check_for_libcrypt_later=1 | ||
3526 | LIBS="$LIBS /usr/lib/textmode.o" | ||
3527 | cat >>confdefs.h <<\EOF | ||
3528 | #define HAVE_CYGWIN 1 | ||
3529 | EOF | ||
3530 | |||
3531 | cat >>confdefs.h <<\EOF | ||
3532 | #define USE_PIPES 1 | ||
3533 | EOF | ||
3534 | |||
3535 | cat >>confdefs.h <<\EOF | ||
3536 | #define DISABLE_SHADOW 1 | ||
3537 | EOF | ||
3538 | |||
3539 | cat >>confdefs.h <<\EOF | ||
3540 | #define IP_TOS_IS_BROKEN 1 | ||
3541 | EOF | ||
3542 | |||
3543 | cat >>confdefs.h <<\EOF | ||
3544 | #define NO_X11_UNIX_SOCKETS 1 | ||
3545 | EOF | ||
3546 | |||
3547 | cat >>confdefs.h <<\EOF | ||
3548 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
3549 | EOF | ||
3550 | |||
3551 | cat >>confdefs.h <<\EOF | ||
3552 | #define DISABLE_FD_PASSING 1 | ||
3553 | EOF | ||
3554 | |||
3555 | cat >>confdefs.h <<\EOF | ||
3556 | #define SETGROUPS_NOOP 1 | ||
3557 | EOF | ||
3558 | |||
3559 | ;; | ||
3560 | *-*-dgux*) | ||
3561 | cat >>confdefs.h <<\EOF | ||
3562 | #define IP_TOS_IS_BROKEN 1 | ||
3563 | EOF | ||
3564 | |||
3565 | cat >>confdefs.h <<\EOF | ||
3566 | #define SETEUID_BREAKS_SETUID 1 | ||
3567 | EOF | ||
3568 | |||
3569 | cat >>confdefs.h <<\EOF | ||
3570 | #define BROKEN_SETREUID 1 | ||
3571 | EOF | ||
3572 | |||
3573 | cat >>confdefs.h <<\EOF | ||
3574 | #define BROKEN_SETREGID 1 | ||
3575 | EOF | ||
3576 | |||
3577 | ;; | ||
3578 | *-*-darwin*) | ||
3579 | echo "$as_me:3579: checking if we have working getaddrinfo" >&5 | ||
3580 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
3581 | if test "$cross_compiling" = yes; then | ||
3582 | echo "$as_me:3582: result: assume it is working" >&5 | ||
3583 | echo "${ECHO_T}assume it is working" >&6 | ||
3584 | else | ||
3585 | cat >conftest.$ac_ext <<_ACEOF | ||
3586 | #line 3586 "configure" | ||
3587 | #include "confdefs.h" | ||
3588 | #include <mach-o/dyld.h> | ||
3589 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
3590 | exit(0); | ||
3591 | else | ||
3592 | exit(1); | ||
3593 | } | ||
3594 | _ACEOF | ||
3595 | rm -f conftest$ac_exeext | ||
3596 | if { (eval echo "$as_me:3596: \"$ac_link\"") >&5 | ||
3597 | (eval $ac_link) 2>&5 | ||
3598 | ac_status=$? | ||
3599 | echo "$as_me:3599: \$? = $ac_status" >&5 | ||
3600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3601 | { (eval echo "$as_me:3601: \"$ac_try\"") >&5 | ||
3602 | (eval $ac_try) 2>&5 | ||
3603 | ac_status=$? | ||
3604 | echo "$as_me:3604: \$? = $ac_status" >&5 | ||
3605 | (exit $ac_status); }; }; then | ||
3606 | echo "$as_me:3606: result: working" >&5 | ||
3607 | echo "${ECHO_T}working" >&6 | ||
3608 | else | ||
3609 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3610 | echo "$as_me: failed program was:" >&5 | ||
3611 | cat conftest.$ac_ext >&5 | ||
3612 | echo "$as_me:3612: result: buggy" >&5 | ||
3613 | echo "${ECHO_T}buggy" >&6 | ||
3614 | cat >>confdefs.h <<\EOF | ||
3615 | #define BROKEN_GETADDRINFO 1 | ||
3616 | EOF | ||
3617 | |||
3618 | fi | ||
3619 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3620 | fi | ||
3621 | cat >>confdefs.h <<\EOF | ||
3622 | #define SETEUID_BREAKS_SETUID 1 | ||
3623 | EOF | ||
3624 | |||
3625 | cat >>confdefs.h <<\EOF | ||
3626 | #define BROKEN_SETREUID 1 | ||
3627 | EOF | ||
3628 | |||
3629 | cat >>confdefs.h <<\EOF | ||
3630 | #define BROKEN_SETREGID 1 | ||
3631 | EOF | ||
3632 | |||
3633 | cat >>confdefs.h <<EOF | ||
3634 | #define BIND_8_COMPAT 1 | ||
3635 | EOF | ||
3636 | |||
3637 | ;; | ||
3638 | *-*-hpux10.26) | ||
3639 | if test -z "$GCC"; then | ||
3640 | CFLAGS="$CFLAGS -Ae" | ||
3641 | fi | ||
3642 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3643 | IPADDR_IN_DISPLAY=yes | ||
3644 | cat >>confdefs.h <<\EOF | ||
3645 | #define HAVE_SECUREWARE 1 | ||
3646 | EOF | ||
3647 | |||
3648 | cat >>confdefs.h <<\EOF | ||
3649 | #define USE_PIPES 1 | ||
3650 | EOF | ||
3651 | |||
3652 | cat >>confdefs.h <<\EOF | ||
3653 | #define LOGIN_NO_ENDOPT 1 | ||
3654 | EOF | ||
3655 | |||
3656 | cat >>confdefs.h <<\EOF | ||
3657 | #define LOGIN_NEEDS_UTMPX 1 | ||
3658 | EOF | ||
3659 | |||
3660 | cat >>confdefs.h <<\EOF | ||
3661 | #define LOCKED_PASSWD_STRING "*" | ||
3662 | EOF | ||
3663 | |||
3664 | cat >>confdefs.h <<\EOF | ||
3665 | #define SPT_TYPE SPT_PSTAT | ||
3666 | EOF | ||
3667 | |||
3668 | LIBS="$LIBS -lsec -lsecpw" | ||
3669 | |||
3670 | echo "$as_me:3670: checking for t_error in -lxnet" >&5 | ||
3671 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3672 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3674 | else | ||
3675 | ac_check_lib_save_LIBS=$LIBS | ||
3676 | LIBS="-lxnet $LIBS" | ||
3677 | cat >conftest.$ac_ext <<_ACEOF | ||
3678 | #line 3678 "configure" | ||
3679 | #include "confdefs.h" | ||
3680 | |||
3681 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3682 | #ifdef __cplusplus | ||
3683 | extern "C" | ||
3684 | #endif | ||
3685 | /* We use char because int might match the return type of a gcc2 | ||
3686 | builtin and then its argument prototype would still apply. */ | ||
3687 | char t_error (); | ||
3688 | int | ||
3689 | main () | ||
3690 | { | ||
3691 | t_error (); | ||
3692 | ; | ||
3693 | return 0; | ||
3694 | } | ||
3695 | _ACEOF | ||
3696 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3697 | if { (eval echo "$as_me:3697: \"$ac_link\"") >&5 | ||
3698 | (eval $ac_link) 2>&5 | ||
3699 | ac_status=$? | ||
3700 | echo "$as_me:3700: \$? = $ac_status" >&5 | ||
3701 | (exit $ac_status); } && | ||
3702 | { ac_try='test -s conftest$ac_exeext' | ||
3703 | { (eval echo "$as_me:3703: \"$ac_try\"") >&5 | ||
3704 | (eval $ac_try) 2>&5 | ||
3705 | ac_status=$? | ||
3706 | echo "$as_me:3706: \$? = $ac_status" >&5 | ||
3707 | (exit $ac_status); }; }; then | ||
3708 | ac_cv_lib_xnet_t_error=yes | ||
3709 | else | ||
3710 | echo "$as_me: failed program was:" >&5 | ||
3711 | cat conftest.$ac_ext >&5 | ||
3712 | ac_cv_lib_xnet_t_error=no | ||
3713 | fi | ||
3714 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3715 | LIBS=$ac_check_lib_save_LIBS | ||
3716 | fi | ||
3717 | echo "$as_me:3717: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3718 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3719 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3720 | cat >>confdefs.h <<EOF | ||
3721 | #define HAVE_LIBXNET 1 | ||
3722 | EOF | ||
3723 | |||
3724 | LIBS="-lxnet $LIBS" | ||
3725 | |||
3726 | else | ||
3727 | { { echo "$as_me:3727: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3728 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3729 | { (exit 1); exit 1; }; } | ||
3730 | fi | ||
3731 | |||
3732 | disable_ptmx_check=yes | ||
3733 | ;; | ||
3734 | *-*-hpux10*) | ||
3735 | if test -z "$GCC"; then | ||
3736 | CFLAGS="$CFLAGS -Ae" | ||
3737 | fi | ||
3738 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3739 | IPADDR_IN_DISPLAY=yes | ||
3740 | cat >>confdefs.h <<\EOF | ||
3741 | #define USE_PIPES 1 | ||
3742 | EOF | ||
3743 | |||
3744 | cat >>confdefs.h <<\EOF | ||
3745 | #define LOGIN_NO_ENDOPT 1 | ||
3746 | EOF | ||
3747 | |||
3748 | cat >>confdefs.h <<\EOF | ||
3749 | #define LOGIN_NEEDS_UTMPX 1 | ||
3750 | EOF | ||
3751 | |||
3752 | cat >>confdefs.h <<\EOF | ||
3753 | #define LOCKED_PASSWD_STRING "*" | ||
3754 | EOF | ||
3755 | |||
3756 | cat >>confdefs.h <<\EOF | ||
3757 | #define SPT_TYPE SPT_PSTAT | ||
3758 | EOF | ||
3759 | |||
3760 | LIBS="$LIBS -lsec" | ||
3761 | |||
3762 | echo "$as_me:3762: checking for t_error in -lxnet" >&5 | ||
3763 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3764 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3766 | else | ||
3767 | ac_check_lib_save_LIBS=$LIBS | ||
3768 | LIBS="-lxnet $LIBS" | ||
3769 | cat >conftest.$ac_ext <<_ACEOF | ||
3770 | #line 3770 "configure" | ||
3771 | #include "confdefs.h" | ||
3772 | |||
3773 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3774 | #ifdef __cplusplus | ||
3775 | extern "C" | ||
3776 | #endif | ||
3777 | /* We use char because int might match the return type of a gcc2 | ||
3778 | builtin and then its argument prototype would still apply. */ | ||
3779 | char t_error (); | ||
3780 | int | ||
3781 | main () | ||
3782 | { | ||
3783 | t_error (); | ||
3784 | ; | ||
3785 | return 0; | ||
3786 | } | ||
3787 | _ACEOF | ||
3788 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3789 | if { (eval echo "$as_me:3789: \"$ac_link\"") >&5 | ||
3790 | (eval $ac_link) 2>&5 | ||
3791 | ac_status=$? | ||
3792 | echo "$as_me:3792: \$? = $ac_status" >&5 | ||
3793 | (exit $ac_status); } && | ||
3794 | { ac_try='test -s conftest$ac_exeext' | ||
3795 | { (eval echo "$as_me:3795: \"$ac_try\"") >&5 | ||
3796 | (eval $ac_try) 2>&5 | ||
3797 | ac_status=$? | ||
3798 | echo "$as_me:3798: \$? = $ac_status" >&5 | ||
3799 | (exit $ac_status); }; }; then | ||
3800 | ac_cv_lib_xnet_t_error=yes | ||
3801 | else | ||
3802 | echo "$as_me: failed program was:" >&5 | ||
3803 | cat conftest.$ac_ext >&5 | ||
3804 | ac_cv_lib_xnet_t_error=no | ||
3805 | fi | ||
3806 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3807 | LIBS=$ac_check_lib_save_LIBS | ||
3808 | fi | ||
3809 | echo "$as_me:3809: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3810 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3811 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3812 | cat >>confdefs.h <<EOF | ||
3813 | #define HAVE_LIBXNET 1 | ||
3814 | EOF | ||
3815 | |||
3816 | LIBS="-lxnet $LIBS" | ||
3817 | |||
3818 | else | ||
3819 | { { echo "$as_me:3819: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3820 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3821 | { (exit 1); exit 1; }; } | ||
3822 | fi | ||
3823 | |||
3824 | ;; | ||
3825 | *-*-hpux11*) | ||
3826 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3827 | IPADDR_IN_DISPLAY=yes | ||
3828 | cat >>confdefs.h <<\EOF | ||
3829 | #define PAM_SUN_CODEBASE 1 | ||
3830 | EOF | ||
3831 | |||
3832 | cat >>confdefs.h <<\EOF | ||
3833 | #define USE_PIPES 1 | ||
3834 | EOF | ||
3835 | |||
3836 | cat >>confdefs.h <<\EOF | ||
3837 | #define LOGIN_NO_ENDOPT 1 | ||
3838 | EOF | ||
3839 | |||
3840 | cat >>confdefs.h <<\EOF | ||
3841 | #define LOGIN_NEEDS_UTMPX 1 | ||
3842 | EOF | ||
3843 | |||
3844 | cat >>confdefs.h <<\EOF | ||
3845 | #define DISABLE_UTMP 1 | ||
3846 | EOF | ||
3847 | |||
3848 | cat >>confdefs.h <<\EOF | ||
3849 | #define LOCKED_PASSWD_STRING "*" | ||
3850 | EOF | ||
3851 | |||
3852 | cat >>confdefs.h <<\EOF | ||
3853 | #define SPT_TYPE SPT_PSTAT | ||
3854 | EOF | ||
3855 | |||
3856 | check_for_hpux_broken_getaddrinfo=1 | ||
3857 | LIBS="$LIBS -lsec" | ||
3858 | |||
3859 | echo "$as_me:3859: checking for t_error in -lxnet" >&5 | ||
3860 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3861 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3863 | else | ||
3864 | ac_check_lib_save_LIBS=$LIBS | ||
3865 | LIBS="-lxnet $LIBS" | ||
3866 | cat >conftest.$ac_ext <<_ACEOF | ||
3867 | #line 3867 "configure" | ||
3868 | #include "confdefs.h" | ||
3869 | |||
3870 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3871 | #ifdef __cplusplus | ||
3872 | extern "C" | ||
3873 | #endif | ||
3874 | /* We use char because int might match the return type of a gcc2 | ||
3875 | builtin and then its argument prototype would still apply. */ | ||
3876 | char t_error (); | ||
3877 | int | ||
3878 | main () | ||
3879 | { | ||
3880 | t_error (); | ||
3881 | ; | ||
3882 | return 0; | ||
3883 | } | ||
3884 | _ACEOF | ||
3885 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3886 | if { (eval echo "$as_me:3886: \"$ac_link\"") >&5 | ||
3887 | (eval $ac_link) 2>&5 | ||
3888 | ac_status=$? | ||
3889 | echo "$as_me:3889: \$? = $ac_status" >&5 | ||
3890 | (exit $ac_status); } && | ||
3891 | { ac_try='test -s conftest$ac_exeext' | ||
3892 | { (eval echo "$as_me:3892: \"$ac_try\"") >&5 | ||
3893 | (eval $ac_try) 2>&5 | ||
3894 | ac_status=$? | ||
3895 | echo "$as_me:3895: \$? = $ac_status" >&5 | ||
3896 | (exit $ac_status); }; }; then | ||
3897 | ac_cv_lib_xnet_t_error=yes | ||
3898 | else | ||
3899 | echo "$as_me: failed program was:" >&5 | ||
3900 | cat conftest.$ac_ext >&5 | ||
3901 | ac_cv_lib_xnet_t_error=no | ||
3902 | fi | ||
3903 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3904 | LIBS=$ac_check_lib_save_LIBS | ||
3905 | fi | ||
3906 | echo "$as_me:3906: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3907 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3908 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3909 | cat >>confdefs.h <<EOF | ||
3910 | #define HAVE_LIBXNET 1 | ||
3911 | EOF | ||
3912 | |||
3913 | LIBS="-lxnet $LIBS" | ||
3914 | |||
3915 | else | ||
3916 | { { echo "$as_me:3916: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3917 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3918 | { (exit 1); exit 1; }; } | ||
3919 | fi | ||
3920 | |||
3921 | ;; | ||
3922 | *-*-irix5*) | ||
3923 | PATH="$PATH:/usr/etc" | ||
3924 | cat >>confdefs.h <<\EOF | ||
3925 | #define BROKEN_INET_NTOA 1 | ||
3926 | EOF | ||
3927 | |||
3928 | cat >>confdefs.h <<\EOF | ||
3929 | #define SETEUID_BREAKS_SETUID 1 | ||
3930 | EOF | ||
3931 | |||
3932 | cat >>confdefs.h <<\EOF | ||
3933 | #define BROKEN_SETREUID 1 | ||
3934 | EOF | ||
3935 | |||
3936 | cat >>confdefs.h <<\EOF | ||
3937 | #define BROKEN_SETREGID 1 | ||
3938 | EOF | ||
3939 | |||
3940 | cat >>confdefs.h <<\EOF | ||
3941 | #define WITH_ABBREV_NO_TTY 1 | ||
3942 | EOF | ||
3943 | |||
3944 | cat >>confdefs.h <<\EOF | ||
3945 | #define LOCKED_PASSWD_STRING "*LK*" | ||
3946 | EOF | ||
3947 | |||
3948 | ;; | ||
3949 | *-*-irix6*) | ||
3950 | PATH="$PATH:/usr/etc" | ||
3951 | cat >>confdefs.h <<\EOF | ||
3952 | #define WITH_IRIX_ARRAY 1 | ||
3953 | EOF | ||
3954 | |||
3955 | cat >>confdefs.h <<\EOF | ||
3956 | #define WITH_IRIX_PROJECT 1 | ||
3957 | EOF | ||
3958 | |||
3959 | cat >>confdefs.h <<\EOF | ||
3960 | #define WITH_IRIX_AUDIT 1 | ||
3961 | EOF | ||
3962 | |||
3963 | echo "$as_me:3963: checking for jlimit_startjob" >&5 | ||
3964 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
3965 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
3966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3967 | else | ||
3968 | cat >conftest.$ac_ext <<_ACEOF | ||
3969 | #line 3969 "configure" | ||
3970 | #include "confdefs.h" | ||
3971 | /* System header to define __stub macros and hopefully few prototypes, | ||
3972 | which can conflict with char jlimit_startjob (); below. */ | ||
3973 | #include <assert.h> | ||
3974 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3975 | #ifdef __cplusplus | ||
3976 | extern "C" | ||
3977 | #endif | ||
3978 | /* We use char because int might match the return type of a gcc2 | ||
3979 | builtin and then its argument prototype would still apply. */ | ||
3980 | char jlimit_startjob (); | ||
3981 | char (*f) (); | ||
3982 | |||
3983 | int | ||
3984 | main () | ||
3985 | { | ||
3986 | /* The GNU C library defines this for functions which it implements | ||
3987 | to always fail with ENOSYS. Some functions are actually named | ||
3988 | something starting with __ and the normal name is an alias. */ | ||
3989 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
3990 | choke me | ||
3991 | #else | ||
3992 | f = jlimit_startjob; | ||
3993 | #endif | ||
3994 | |||
3995 | ; | ||
3996 | return 0; | ||
3997 | } | ||
3998 | _ACEOF | ||
3999 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4000 | if { (eval echo "$as_me:4000: \"$ac_link\"") >&5 | ||
4001 | (eval $ac_link) 2>&5 | ||
4002 | ac_status=$? | ||
4003 | echo "$as_me:4003: \$? = $ac_status" >&5 | ||
4004 | (exit $ac_status); } && | ||
4005 | { ac_try='test -s conftest$ac_exeext' | ||
4006 | { (eval echo "$as_me:4006: \"$ac_try\"") >&5 | ||
4007 | (eval $ac_try) 2>&5 | ||
4008 | ac_status=$? | ||
4009 | echo "$as_me:4009: \$? = $ac_status" >&5 | ||
4010 | (exit $ac_status); }; }; then | ||
4011 | ac_cv_func_jlimit_startjob=yes | ||
4012 | else | ||
4013 | echo "$as_me: failed program was:" >&5 | ||
4014 | cat conftest.$ac_ext >&5 | ||
4015 | ac_cv_func_jlimit_startjob=no | ||
4016 | fi | ||
4017 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4018 | fi | ||
4019 | echo "$as_me:4019: result: $ac_cv_func_jlimit_startjob" >&5 | ||
4020 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
4021 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
4022 | cat >>confdefs.h <<\EOF | ||
4023 | #define WITH_IRIX_JOBS 1 | ||
4024 | EOF | ||
4025 | |||
4026 | fi | ||
4027 | |||
4028 | cat >>confdefs.h <<\EOF | ||
4029 | #define BROKEN_INET_NTOA 1 | ||
4030 | EOF | ||
4031 | |||
4032 | cat >>confdefs.h <<\EOF | ||
4033 | #define SETEUID_BREAKS_SETUID 1 | ||
4034 | EOF | ||
4035 | |||
4036 | cat >>confdefs.h <<\EOF | ||
4037 | #define BROKEN_SETREUID 1 | ||
4038 | EOF | ||
4039 | |||
4040 | cat >>confdefs.h <<\EOF | ||
4041 | #define BROKEN_SETREGID 1 | ||
4042 | EOF | ||
4043 | |||
4044 | cat >>confdefs.h <<\EOF | ||
4045 | #define BROKEN_UPDWTMPX 1 | ||
4046 | EOF | ||
4047 | |||
4048 | cat >>confdefs.h <<\EOF | ||
4049 | #define WITH_ABBREV_NO_TTY 1 | ||
4050 | EOF | ||
4051 | |||
4052 | cat >>confdefs.h <<\EOF | ||
4053 | #define LOCKED_PASSWD_STRING "*LK*" | ||
4054 | EOF | ||
4055 | |||
4056 | ;; | ||
4057 | *-*-linux*) | ||
4058 | no_dev_ptmx=1 | ||
4059 | check_for_libcrypt_later=1 | ||
4060 | check_for_openpty_ctty_bug=1 | ||
4061 | cat >>confdefs.h <<\EOF | ||
4062 | #define DONT_TRY_OTHER_AF 1 | ||
4063 | EOF | ||
4064 | |||
4065 | cat >>confdefs.h <<\EOF | ||
4066 | #define PAM_TTY_KLUDGE 1 | ||
4067 | EOF | ||
4068 | |||
4069 | cat >>confdefs.h <<\EOF | ||
4070 | #define LOCKED_PASSWD_PREFIX "!" | ||
4071 | EOF | ||
4072 | |||
4073 | cat >>confdefs.h <<\EOF | ||
4074 | #define SPT_TYPE SPT_REUSEARGV | ||
4075 | EOF | ||
4076 | |||
4077 | inet6_default_4in6=yes | ||
4078 | case `uname -r` in | ||
4079 | 1.*|2.0.*) | ||
4080 | cat >>confdefs.h <<\EOF | ||
4081 | #define BROKEN_CMSG_TYPE 1 | ||
4082 | EOF | ||
4083 | |||
4084 | ;; | ||
4085 | esac | ||
4086 | ;; | ||
4087 | mips-sony-bsd|mips-sony-newsos4) | ||
4088 | cat >>confdefs.h <<\EOF | ||
4089 | #define HAVE_NEWS4 1 | ||
4090 | EOF | ||
4091 | |||
4092 | SONY=1 | ||
4093 | ;; | ||
4094 | *-*-netbsd*) | ||
4095 | check_for_libcrypt_before=1 | ||
4096 | if test "x$withval" != "xno" ; then | ||
4097 | need_dash_r=1 | ||
4098 | fi | ||
4099 | ;; | ||
4100 | *-*-freebsd*) | ||
4101 | check_for_libcrypt_later=1 | ||
4102 | ;; | ||
4103 | *-*-bsdi*) | ||
4104 | cat >>confdefs.h <<\EOF | ||
4105 | #define SETEUID_BREAKS_SETUID 1 | ||
4106 | EOF | ||
4107 | |||
4108 | cat >>confdefs.h <<\EOF | ||
4109 | #define BROKEN_SETREUID 1 | ||
4110 | EOF | ||
4111 | |||
4112 | cat >>confdefs.h <<\EOF | ||
4113 | #define BROKEN_SETREGID 1 | ||
4114 | EOF | ||
4115 | |||
4116 | ;; | ||
4117 | *-next-*) | ||
4118 | conf_lastlog_location="/usr/adm/lastlog" | ||
4119 | conf_utmp_location=/etc/utmp | ||
4120 | conf_wtmp_location=/usr/adm/wtmp | ||
4121 | MAIL=/usr/spool/mail | ||
4122 | cat >>confdefs.h <<\EOF | ||
4123 | #define HAVE_NEXT 1 | ||
4124 | EOF | ||
4125 | |||
4126 | cat >>confdefs.h <<\EOF | ||
4127 | #define BROKEN_REALPATH 1 | ||
4128 | EOF | ||
4129 | |||
4130 | cat >>confdefs.h <<\EOF | ||
4131 | #define USE_PIPES 1 | ||
4132 | EOF | ||
4133 | |||
4134 | cat >>confdefs.h <<\EOF | ||
4135 | #define BROKEN_SAVED_UIDS 1 | ||
4136 | EOF | ||
4137 | |||
4138 | ;; | ||
4139 | *-*-solaris*) | ||
4140 | if test "x$withval" != "xno" ; then | ||
4141 | need_dash_r=1 | ||
4142 | fi | ||
4143 | cat >>confdefs.h <<\EOF | ||
4144 | #define PAM_SUN_CODEBASE 1 | ||
4145 | EOF | ||
4146 | |||
4147 | cat >>confdefs.h <<\EOF | ||
4148 | #define LOGIN_NEEDS_UTMPX 1 | ||
4149 | EOF | ||
4150 | |||
4151 | cat >>confdefs.h <<\EOF | ||
4152 | #define LOGIN_NEEDS_TERM 1 | ||
4153 | EOF | ||
4154 | |||
4155 | cat >>confdefs.h <<\EOF | ||
4156 | #define PAM_TTY_KLUDGE 1 | ||
4157 | EOF | ||
4158 | |||
4159 | cat >>confdefs.h <<\EOF | ||
4160 | #define LOCKED_PASSWD_STRING "*LK*" | ||
4161 | EOF | ||
4162 | |||
4163 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
4164 | cat >>confdefs.h <<\EOF | ||
4165 | #define SSHD_ACQUIRES_CTTY 1 | ||
4166 | EOF | ||
4167 | |||
4168 | external_path_file=/etc/default/login | ||
4169 | # hardwire lastlog location (can't detect it on some versions) | ||
4170 | conf_lastlog_location="/var/adm/lastlog" | ||
4171 | echo "$as_me:4171: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
4172 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
4173 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
4174 | if test "$sol2ver" -ge 8; then | ||
4175 | echo "$as_me:4175: result: yes" >&5 | ||
4176 | echo "${ECHO_T}yes" >&6 | ||
4177 | cat >>confdefs.h <<\EOF | ||
4178 | #define DISABLE_UTMP 1 | ||
4179 | EOF | ||
4180 | |||
4181 | cat >>confdefs.h <<\EOF | ||
4182 | #define DISABLE_WTMP 1 | ||
4183 | EOF | ||
4184 | |||
4185 | else | ||
4186 | echo "$as_me:4186: result: no" >&5 | ||
4187 | echo "${ECHO_T}no" >&6 | ||
4188 | fi | ||
4189 | ;; | ||
4190 | *-*-sunos4*) | ||
4191 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
4192 | |||
4193 | for ac_func in getpwanam | ||
4194 | do | ||
4195 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4196 | echo "$as_me:4196: checking for $ac_func" >&5 | ||
4197 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4198 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4200 | else | ||
4201 | cat >conftest.$ac_ext <<_ACEOF | ||
4202 | #line 4202 "configure" | ||
4203 | #include "confdefs.h" | ||
4204 | /* System header to define __stub macros and hopefully few prototypes, | ||
4205 | which can conflict with char $ac_func (); below. */ | ||
4206 | #include <assert.h> | ||
4207 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4208 | #ifdef __cplusplus | ||
4209 | extern "C" | ||
4210 | #endif | ||
4211 | /* We use char because int might match the return type of a gcc2 | ||
4212 | builtin and then its argument prototype would still apply. */ | ||
4213 | char $ac_func (); | ||
4214 | char (*f) (); | ||
4215 | |||
4216 | int | ||
4217 | main () | ||
4218 | { | ||
4219 | /* The GNU C library defines this for functions which it implements | ||
4220 | to always fail with ENOSYS. Some functions are actually named | ||
4221 | something starting with __ and the normal name is an alias. */ | ||
4222 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4223 | choke me | ||
4224 | #else | ||
4225 | f = $ac_func; | ||
4226 | #endif | ||
4227 | |||
4228 | ; | ||
4229 | return 0; | ||
4230 | } | ||
4231 | _ACEOF | ||
4232 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4233 | if { (eval echo "$as_me:4233: \"$ac_link\"") >&5 | ||
4234 | (eval $ac_link) 2>&5 | ||
4235 | ac_status=$? | ||
4236 | echo "$as_me:4236: \$? = $ac_status" >&5 | ||
4237 | (exit $ac_status); } && | ||
4238 | { ac_try='test -s conftest$ac_exeext' | ||
4239 | { (eval echo "$as_me:4239: \"$ac_try\"") >&5 | ||
4240 | (eval $ac_try) 2>&5 | ||
4241 | ac_status=$? | ||
4242 | echo "$as_me:4242: \$? = $ac_status" >&5 | ||
4243 | (exit $ac_status); }; }; then | ||
4244 | eval "$as_ac_var=yes" | ||
4245 | else | ||
4246 | echo "$as_me: failed program was:" >&5 | ||
4247 | cat conftest.$ac_ext >&5 | ||
4248 | eval "$as_ac_var=no" | ||
4249 | fi | ||
4250 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4251 | fi | ||
4252 | echo "$as_me:4252: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4253 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4254 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4255 | cat >>confdefs.h <<EOF | ||
4256 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4257 | EOF | ||
4258 | |||
4259 | fi | ||
4260 | done | ||
4261 | |||
4262 | cat >>confdefs.h <<\EOF | ||
4263 | #define PAM_SUN_CODEBASE 1 | ||
4264 | EOF | ||
4265 | |||
4266 | conf_utmp_location=/etc/utmp | ||
4267 | conf_wtmp_location=/var/adm/wtmp | ||
4268 | conf_lastlog_location=/var/adm/lastlog | ||
4269 | cat >>confdefs.h <<\EOF | ||
4270 | #define USE_PIPES 1 | ||
4271 | EOF | ||
4272 | |||
4273 | ;; | ||
4274 | *-ncr-sysv*) | ||
4275 | LIBS="$LIBS -lc89" | ||
4276 | cat >>confdefs.h <<\EOF | ||
4277 | #define USE_PIPES 1 | ||
4278 | EOF | ||
4279 | |||
4280 | cat >>confdefs.h <<\EOF | ||
4281 | #define SSHD_ACQUIRES_CTTY 1 | ||
4282 | EOF | ||
4283 | |||
4284 | cat >>confdefs.h <<\EOF | ||
4285 | #define SETEUID_BREAKS_SETUID 1 | ||
4286 | EOF | ||
4287 | |||
4288 | cat >>confdefs.h <<\EOF | ||
4289 | #define BROKEN_SETREUID 1 | ||
4290 | EOF | ||
4291 | |||
4292 | cat >>confdefs.h <<\EOF | ||
4293 | #define BROKEN_SETREGID 1 | ||
4294 | EOF | ||
4295 | |||
4296 | ;; | ||
4297 | *-sni-sysv*) | ||
4298 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
4299 | |||
4300 | echo "$as_me:4300: checking for dlsym in -ldl" >&5 | ||
4301 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 | ||
4302 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
4303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4304 | else | ||
4305 | ac_check_lib_save_LIBS=$LIBS | ||
4306 | LIBS="-ldl $LIBS" | ||
4307 | cat >conftest.$ac_ext <<_ACEOF | ||
4308 | #line 4308 "configure" | ||
4309 | #include "confdefs.h" | ||
4310 | |||
4311 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4312 | #ifdef __cplusplus | ||
4313 | extern "C" | ||
4314 | #endif | ||
4315 | /* We use char because int might match the return type of a gcc2 | ||
4316 | builtin and then its argument prototype would still apply. */ | ||
4317 | char dlsym (); | ||
4318 | int | ||
4319 | main () | ||
4320 | { | ||
4321 | dlsym (); | ||
4322 | ; | ||
4323 | return 0; | ||
4324 | } | ||
4325 | _ACEOF | ||
4326 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4327 | if { (eval echo "$as_me:4327: \"$ac_link\"") >&5 | ||
4328 | (eval $ac_link) 2>&5 | ||
4329 | ac_status=$? | ||
4330 | echo "$as_me:4330: \$? = $ac_status" >&5 | ||
4331 | (exit $ac_status); } && | ||
4332 | { ac_try='test -s conftest$ac_exeext' | ||
4333 | { (eval echo "$as_me:4333: \"$ac_try\"") >&5 | ||
4334 | (eval $ac_try) 2>&5 | ||
4335 | ac_status=$? | ||
4336 | echo "$as_me:4336: \$? = $ac_status" >&5 | ||
4337 | (exit $ac_status); }; }; then | ||
4338 | ac_cv_lib_dl_dlsym=yes | ||
4339 | else | ||
4340 | echo "$as_me: failed program was:" >&5 | ||
4341 | cat conftest.$ac_ext >&5 | ||
4342 | ac_cv_lib_dl_dlsym=no | ||
4343 | fi | ||
4344 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4345 | LIBS=$ac_check_lib_save_LIBS | ||
4346 | fi | ||
4347 | echo "$as_me:4347: result: $ac_cv_lib_dl_dlsym" >&5 | ||
4348 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 | ||
4349 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
4350 | cat >>confdefs.h <<EOF | ||
4351 | #define HAVE_LIBDL 1 | ||
4352 | EOF | ||
4353 | |||
4354 | LIBS="-ldl $LIBS" | ||
4355 | |||
4356 | fi | ||
4357 | |||
4358 | IPADDR_IN_DISPLAY=yes | ||
4359 | cat >>confdefs.h <<\EOF | ||
4360 | #define USE_PIPES 1 | ||
4361 | EOF | ||
4362 | |||
4363 | cat >>confdefs.h <<\EOF | ||
4364 | #define IP_TOS_IS_BROKEN 1 | ||
4365 | EOF | ||
4366 | |||
4367 | cat >>confdefs.h <<\EOF | ||
4368 | #define SETEUID_BREAKS_SETUID 1 | ||
4369 | EOF | ||
4370 | |||
4371 | cat >>confdefs.h <<\EOF | ||
4372 | #define BROKEN_SETREUID 1 | ||
4373 | EOF | ||
4374 | |||
4375 | cat >>confdefs.h <<\EOF | ||
4376 | #define BROKEN_SETREGID 1 | ||
4377 | EOF | ||
4378 | |||
4379 | cat >>confdefs.h <<\EOF | ||
4380 | #define SSHD_ACQUIRES_CTTY 1 | ||
4381 | EOF | ||
4382 | |||
4383 | external_path_file=/etc/default/login | ||
4384 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
4385 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
4386 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
4387 | ;; | ||
4388 | *-*-sysv4.2*) | ||
4389 | cat >>confdefs.h <<\EOF | ||
4390 | #define USE_PIPES 1 | ||
4391 | EOF | ||
4392 | |||
4393 | cat >>confdefs.h <<\EOF | ||
4394 | #define SETEUID_BREAKS_SETUID 1 | ||
4395 | EOF | ||
4396 | |||
4397 | cat >>confdefs.h <<\EOF | ||
4398 | #define BROKEN_SETREUID 1 | ||
4399 | EOF | ||
4400 | |||
4401 | cat >>confdefs.h <<\EOF | ||
4402 | #define BROKEN_SETREGID 1 | ||
4403 | EOF | ||
4404 | |||
4405 | ;; | ||
4406 | *-*-sysv5*) | ||
4407 | cat >>confdefs.h <<\EOF | ||
4408 | #define USE_PIPES 1 | ||
4409 | EOF | ||
4410 | |||
4411 | cat >>confdefs.h <<\EOF | ||
4412 | #define SETEUID_BREAKS_SETUID 1 | ||
4413 | EOF | ||
4414 | |||
4415 | cat >>confdefs.h <<\EOF | ||
4416 | #define BROKEN_SETREUID 1 | ||
4417 | EOF | ||
4418 | |||
4419 | cat >>confdefs.h <<\EOF | ||
4420 | #define BROKEN_SETREGID 1 | ||
4421 | EOF | ||
4422 | |||
4423 | ;; | ||
4424 | *-*-sysv*) | ||
4425 | ;; | ||
4426 | *-*-sco3.2v4*) | ||
4427 | CPPFLAGS="$CPPFLAGS -Dftruncate=chsize" | ||
4428 | LIBS="$LIBS -los -lprot -lcrypt_i -lx -ltinfo -lm" | ||
4429 | RANLIB=true | ||
4430 | no_dev_ptmx=1 | ||
4431 | cat >>confdefs.h <<\EOF | ||
4432 | #define BROKEN_SYS_TERMIO_H 1 | ||
4433 | EOF | ||
4434 | |||
4435 | cat >>confdefs.h <<\EOF | ||
4436 | #define USE_PIPES 1 | ||
4437 | EOF | ||
4438 | |||
4439 | cat >>confdefs.h <<\EOF | ||
4440 | #define HAVE_SECUREWARE 1 | ||
4441 | EOF | ||
4442 | |||
4443 | cat >>confdefs.h <<\EOF | ||
4444 | #define DISABLE_SHADOW 1 | ||
4445 | EOF | ||
4446 | |||
4447 | cat >>confdefs.h <<\EOF | ||
4448 | #define BROKEN_SAVED_UIDS 1 | ||
4449 | EOF | ||
4450 | |||
4451 | cat >>confdefs.h <<\EOF | ||
4452 | #define SETEUID_BREAKS_SETUID 1 | ||
4453 | EOF | ||
4454 | |||
4455 | cat >>confdefs.h <<\EOF | ||
4456 | #define BROKEN_SETREUID 1 | ||
4457 | EOF | ||
4458 | |||
4459 | cat >>confdefs.h <<\EOF | ||
4460 | #define BROKEN_SETREGID 1 | ||
4461 | EOF | ||
4462 | |||
4463 | cat >>confdefs.h <<\EOF | ||
4464 | #define WITH_ABBREV_NO_TTY 1 | ||
4465 | EOF | ||
4466 | |||
4467 | for ac_func in getluid setluid | ||
4468 | do | ||
4469 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4470 | echo "$as_me:4470: checking for $ac_func" >&5 | ||
4471 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4472 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4474 | else | ||
4475 | cat >conftest.$ac_ext <<_ACEOF | ||
4476 | #line 4476 "configure" | ||
4477 | #include "confdefs.h" | ||
4478 | /* System header to define __stub macros and hopefully few prototypes, | ||
4479 | which can conflict with char $ac_func (); below. */ | ||
4480 | #include <assert.h> | ||
4481 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4482 | #ifdef __cplusplus | ||
4483 | extern "C" | ||
4484 | #endif | ||
4485 | /* We use char because int might match the return type of a gcc2 | ||
4486 | builtin and then its argument prototype would still apply. */ | ||
4487 | char $ac_func (); | ||
4488 | char (*f) (); | ||
4489 | |||
4490 | int | ||
4491 | main () | ||
4492 | { | ||
4493 | /* The GNU C library defines this for functions which it implements | ||
4494 | to always fail with ENOSYS. Some functions are actually named | ||
4495 | something starting with __ and the normal name is an alias. */ | ||
4496 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4497 | choke me | ||
4498 | #else | ||
4499 | f = $ac_func; | ||
4500 | #endif | ||
4501 | |||
4502 | ; | ||
4503 | return 0; | ||
4504 | } | ||
4505 | _ACEOF | ||
4506 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4507 | if { (eval echo "$as_me:4507: \"$ac_link\"") >&5 | ||
4508 | (eval $ac_link) 2>&5 | ||
4509 | ac_status=$? | ||
4510 | echo "$as_me:4510: \$? = $ac_status" >&5 | ||
4511 | (exit $ac_status); } && | ||
4512 | { ac_try='test -s conftest$ac_exeext' | ||
4513 | { (eval echo "$as_me:4513: \"$ac_try\"") >&5 | ||
4514 | (eval $ac_try) 2>&5 | ||
4515 | ac_status=$? | ||
4516 | echo "$as_me:4516: \$? = $ac_status" >&5 | ||
4517 | (exit $ac_status); }; }; then | ||
4518 | eval "$as_ac_var=yes" | ||
4519 | else | ||
4520 | echo "$as_me: failed program was:" >&5 | ||
4521 | cat conftest.$ac_ext >&5 | ||
4522 | eval "$as_ac_var=no" | ||
4523 | fi | ||
4524 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4525 | fi | ||
4526 | echo "$as_me:4526: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4527 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4528 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4529 | cat >>confdefs.h <<EOF | ||
4530 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4531 | EOF | ||
4532 | |||
4533 | fi | ||
4534 | done | ||
4535 | |||
4536 | MANTYPE=man | ||
4537 | do_sco3_extra_lib_check=yes | ||
4538 | ;; | ||
4539 | *-*-sco3.2v5*) | ||
4540 | if test -z "$GCC"; then | ||
4541 | CFLAGS="$CFLAGS -belf" | ||
4542 | fi | ||
4543 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
4544 | no_dev_ptmx=1 | ||
4545 | cat >>confdefs.h <<\EOF | ||
4546 | #define USE_PIPES 1 | ||
4547 | EOF | ||
4548 | |||
4549 | cat >>confdefs.h <<\EOF | ||
4550 | #define HAVE_SECUREWARE 1 | ||
4551 | EOF | ||
4552 | |||
4553 | cat >>confdefs.h <<\EOF | ||
4554 | #define DISABLE_SHADOW 1 | ||
4555 | EOF | ||
4556 | |||
4557 | cat >>confdefs.h <<\EOF | ||
4558 | #define DISABLE_FD_PASSING 1 | ||
4559 | EOF | ||
4560 | |||
4561 | cat >>confdefs.h <<\EOF | ||
4562 | #define SETEUID_BREAKS_SETUID 1 | ||
4563 | EOF | ||
4564 | |||
4565 | cat >>confdefs.h <<\EOF | ||
4566 | #define BROKEN_SETREUID 1 | ||
4567 | EOF | ||
4568 | |||
4569 | cat >>confdefs.h <<\EOF | ||
4570 | #define BROKEN_SETREGID 1 | ||
4571 | EOF | ||
4572 | |||
4573 | cat >>confdefs.h <<\EOF | ||
4574 | #define WITH_ABBREV_NO_TTY 1 | ||
4575 | EOF | ||
4576 | |||
4577 | for ac_func in getluid setluid | ||
4578 | do | ||
4579 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4580 | echo "$as_me:4580: checking for $ac_func" >&5 | ||
4581 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4582 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4584 | else | ||
4585 | cat >conftest.$ac_ext <<_ACEOF | ||
4586 | #line 4586 "configure" | ||
4587 | #include "confdefs.h" | ||
4588 | /* System header to define __stub macros and hopefully few prototypes, | ||
4589 | which can conflict with char $ac_func (); below. */ | ||
4590 | #include <assert.h> | ||
4591 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4592 | #ifdef __cplusplus | ||
4593 | extern "C" | ||
4594 | #endif | ||
4595 | /* We use char because int might match the return type of a gcc2 | ||
4596 | builtin and then its argument prototype would still apply. */ | ||
4597 | char $ac_func (); | ||
4598 | char (*f) (); | ||
4599 | |||
4600 | int | ||
4601 | main () | ||
4602 | { | ||
4603 | /* The GNU C library defines this for functions which it implements | ||
4604 | to always fail with ENOSYS. Some functions are actually named | ||
4605 | something starting with __ and the normal name is an alias. */ | ||
4606 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4607 | choke me | ||
4608 | #else | ||
4609 | f = $ac_func; | ||
4610 | #endif | ||
4611 | |||
4612 | ; | ||
4613 | return 0; | ||
4614 | } | ||
4615 | _ACEOF | ||
4616 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4617 | if { (eval echo "$as_me:4617: \"$ac_link\"") >&5 | ||
4618 | (eval $ac_link) 2>&5 | ||
4619 | ac_status=$? | ||
4620 | echo "$as_me:4620: \$? = $ac_status" >&5 | ||
4621 | (exit $ac_status); } && | ||
4622 | { ac_try='test -s conftest$ac_exeext' | ||
4623 | { (eval echo "$as_me:4623: \"$ac_try\"") >&5 | ||
4624 | (eval $ac_try) 2>&5 | ||
4625 | ac_status=$? | ||
4626 | echo "$as_me:4626: \$? = $ac_status" >&5 | ||
4627 | (exit $ac_status); }; }; then | ||
4628 | eval "$as_ac_var=yes" | ||
4629 | else | ||
4630 | echo "$as_me: failed program was:" >&5 | ||
4631 | cat conftest.$ac_ext >&5 | ||
4632 | eval "$as_ac_var=no" | ||
4633 | fi | ||
4634 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4635 | fi | ||
4636 | echo "$as_me:4636: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4637 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4638 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4639 | cat >>confdefs.h <<EOF | ||
4640 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4641 | EOF | ||
4642 | |||
4643 | fi | ||
4644 | done | ||
4645 | |||
4646 | MANTYPE=man | ||
4647 | ;; | ||
4648 | *-*-unicosmk*) | ||
4649 | cat >>confdefs.h <<\EOF | ||
4650 | #define NO_SSH_LASTLOG 1 | ||
4651 | EOF | ||
4652 | |||
4653 | cat >>confdefs.h <<\EOF | ||
4654 | #define SETEUID_BREAKS_SETUID 1 | ||
4655 | EOF | ||
4656 | |||
4657 | cat >>confdefs.h <<\EOF | ||
4658 | #define BROKEN_SETREUID 1 | ||
4659 | EOF | ||
4660 | |||
4661 | cat >>confdefs.h <<\EOF | ||
4662 | #define BROKEN_SETREGID 1 | ||
4663 | EOF | ||
4664 | |||
4665 | cat >>confdefs.h <<\EOF | ||
4666 | #define USE_PIPES 1 | ||
4667 | EOF | ||
4668 | |||
4669 | cat >>confdefs.h <<\EOF | ||
4670 | #define DISABLE_FD_PASSING 1 | ||
4671 | EOF | ||
4672 | |||
4673 | LDFLAGS="$LDFLAGS" | ||
4674 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4675 | MANTYPE=cat | ||
4676 | ;; | ||
4677 | *-*-unicosmp*) | ||
4678 | cat >>confdefs.h <<\EOF | ||
4679 | #define SETEUID_BREAKS_SETUID 1 | ||
4680 | EOF | ||
4681 | |||
4682 | cat >>confdefs.h <<\EOF | ||
4683 | #define BROKEN_SETREUID 1 | ||
4684 | EOF | ||
4685 | |||
4686 | cat >>confdefs.h <<\EOF | ||
4687 | #define BROKEN_SETREGID 1 | ||
4688 | EOF | ||
4689 | |||
4690 | cat >>confdefs.h <<\EOF | ||
4691 | #define WITH_ABBREV_NO_TTY 1 | ||
4692 | EOF | ||
4693 | |||
4694 | cat >>confdefs.h <<\EOF | ||
4695 | #define USE_PIPES 1 | ||
4696 | EOF | ||
4697 | |||
4698 | cat >>confdefs.h <<\EOF | ||
4699 | #define DISABLE_FD_PASSING 1 | ||
4700 | EOF | ||
4701 | |||
4702 | LDFLAGS="$LDFLAGS" | ||
4703 | LIBS="$LIBS -lgen -lacid -ldb" | ||
4704 | MANTYPE=cat | ||
4705 | ;; | ||
4706 | *-*-unicos*) | ||
4707 | cat >>confdefs.h <<\EOF | ||
4708 | #define SETEUID_BREAKS_SETUID 1 | ||
4709 | EOF | ||
4710 | |||
4711 | cat >>confdefs.h <<\EOF | ||
4712 | #define BROKEN_SETREUID 1 | ||
4713 | EOF | ||
4714 | |||
4715 | cat >>confdefs.h <<\EOF | ||
4716 | #define BROKEN_SETREGID 1 | ||
4717 | EOF | ||
4718 | |||
4719 | cat >>confdefs.h <<\EOF | ||
4720 | #define USE_PIPES 1 | ||
4721 | EOF | ||
4722 | |||
4723 | cat >>confdefs.h <<\EOF | ||
4724 | #define DISABLE_FD_PASSING 1 | ||
4725 | EOF | ||
4726 | |||
4727 | cat >>confdefs.h <<\EOF | ||
4728 | #define NO_SSH_LASTLOG 1 | ||
4729 | EOF | ||
4730 | |||
4731 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
4732 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4733 | MANTYPE=cat | ||
4734 | ;; | ||
4735 | *-dec-osf*) | ||
4736 | echo "$as_me:4736: checking for Digital Unix SIA" >&5 | ||
4737 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
4738 | no_osfsia="" | ||
4739 | |||
4740 | # Check whether --with-osfsia or --without-osfsia was given. | ||
4741 | if test "${with_osfsia+set}" = set; then | ||
4742 | withval="$with_osfsia" | ||
4743 | |||
4744 | if test "x$withval" = "xno" ; then | ||
4745 | echo "$as_me:4745: result: disabled" >&5 | ||
4746 | echo "${ECHO_T}disabled" >&6 | ||
4747 | no_osfsia=1 | ||
4748 | fi | ||
4749 | |||
4750 | fi; | ||
4751 | if test -z "$no_osfsia" ; then | ||
4752 | if test -f /etc/sia/matrix.conf; then | ||
4753 | echo "$as_me:4753: result: yes" >&5 | ||
4754 | echo "${ECHO_T}yes" >&6 | ||
4755 | cat >>confdefs.h <<\EOF | ||
4756 | #define HAVE_OSF_SIA 1 | ||
4757 | EOF | ||
4758 | |||
4759 | cat >>confdefs.h <<\EOF | ||
4760 | #define DISABLE_LOGIN 1 | ||
4761 | EOF | ||
4762 | |||
4763 | cat >>confdefs.h <<\EOF | ||
4764 | #define DISABLE_FD_PASSING 1 | ||
4765 | EOF | ||
4766 | |||
4767 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
4768 | else | ||
4769 | echo "$as_me:4769: result: no" >&5 | ||
4770 | echo "${ECHO_T}no" >&6 | ||
4771 | cat >>confdefs.h <<\EOF | ||
4772 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
4773 | EOF | ||
4774 | |||
4775 | fi | ||
4776 | fi | ||
4777 | cat >>confdefs.h <<\EOF | ||
4778 | #define BROKEN_GETADDRINFO 1 | ||
4779 | EOF | ||
4780 | |||
4781 | cat >>confdefs.h <<\EOF | ||
4782 | #define SETEUID_BREAKS_SETUID 1 | ||
4783 | EOF | ||
4784 | |||
4785 | cat >>confdefs.h <<\EOF | ||
4786 | #define BROKEN_SETREUID 1 | ||
4787 | EOF | ||
4788 | |||
4789 | cat >>confdefs.h <<\EOF | ||
4790 | #define BROKEN_SETREGID 1 | ||
4791 | EOF | ||
4792 | |||
4793 | ;; | ||
4794 | |||
4795 | *-*-nto-qnx) | ||
4796 | cat >>confdefs.h <<\EOF | ||
4797 | #define USE_PIPES 1 | ||
4798 | EOF | ||
4799 | |||
4800 | cat >>confdefs.h <<\EOF | ||
4801 | #define NO_X11_UNIX_SOCKETS 1 | ||
4802 | EOF | ||
4803 | |||
4804 | cat >>confdefs.h <<\EOF | ||
4805 | #define MISSING_NFDBITS 1 | ||
4806 | EOF | ||
4807 | |||
4808 | cat >>confdefs.h <<\EOF | ||
4809 | #define MISSING_HOWMANY 1 | ||
4810 | EOF | ||
4811 | |||
4812 | cat >>confdefs.h <<\EOF | ||
4813 | #define MISSING_FD_MASK 1 | ||
4814 | EOF | ||
4815 | |||
4816 | ;; | ||
4817 | esac | ||
4818 | |||
4819 | # Allow user to specify flags | ||
4820 | |||
4821 | # Check whether --with-cflags or --without-cflags was given. | ||
4822 | if test "${with_cflags+set}" = set; then | ||
4823 | withval="$with_cflags" | ||
4824 | |||
4825 | if test "x$withval" != "xno" ; then | ||
4826 | CFLAGS="$CFLAGS $withval" | ||
4827 | fi | ||
4828 | |||
4829 | fi; | ||
4830 | |||
4831 | # Check whether --with-cppflags or --without-cppflags was given. | ||
4832 | if test "${with_cppflags+set}" = set; then | ||
4833 | withval="$with_cppflags" | ||
4834 | |||
4835 | if test "x$withval" != "xno"; then | ||
4836 | CPPFLAGS="$CPPFLAGS $withval" | ||
4837 | fi | ||
4838 | |||
4839 | fi; | ||
4840 | |||
4841 | # Check whether --with-ldflags or --without-ldflags was given. | ||
4842 | if test "${with_ldflags+set}" = set; then | ||
4843 | withval="$with_ldflags" | ||
4844 | |||
4845 | if test "x$withval" != "xno" ; then | ||
4846 | LDFLAGS="$LDFLAGS $withval" | ||
4847 | fi | ||
4848 | |||
4849 | fi; | ||
4850 | |||
4851 | # Check whether --with-libs or --without-libs was given. | ||
4852 | if test "${with_libs+set}" = set; then | ||
4853 | withval="$with_libs" | ||
4854 | |||
4855 | if test "x$withval" != "xno" ; then | ||
4856 | LIBS="$LIBS $withval" | ||
4857 | fi | ||
4858 | |||
4859 | fi; | ||
4860 | |||
4861 | echo "$as_me:4861: checking compiler and flags for sanity" >&5 | ||
4862 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6 | ||
4863 | if test "$cross_compiling" = yes; then | ||
4864 | { { echo "$as_me:4864: error: cannot run test program while cross compiling" >&5 | ||
4865 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
4866 | { (exit 1); exit 1; }; } | ||
4867 | else | ||
4868 | cat >conftest.$ac_ext <<_ACEOF | ||
4869 | #line 4869 "configure" | ||
4870 | #include "confdefs.h" | ||
4871 | |||
4872 | #include <stdio.h> | ||
4873 | int main(){exit(0);} | ||
4874 | |||
4875 | _ACEOF | ||
4876 | rm -f conftest$ac_exeext | ||
4877 | if { (eval echo "$as_me:4877: \"$ac_link\"") >&5 | ||
4878 | (eval $ac_link) 2>&5 | ||
4879 | ac_status=$? | ||
4880 | echo "$as_me:4880: \$? = $ac_status" >&5 | ||
4881 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4882 | { (eval echo "$as_me:4882: \"$ac_try\"") >&5 | ||
4883 | (eval $ac_try) 2>&5 | ||
4884 | ac_status=$? | ||
4885 | echo "$as_me:4885: \$? = $ac_status" >&5 | ||
4886 | (exit $ac_status); }; }; then | ||
4887 | echo "$as_me:4887: result: yes" >&5 | ||
4888 | echo "${ECHO_T}yes" >&6 | ||
4889 | else | ||
4890 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4891 | echo "$as_me: failed program was:" >&5 | ||
4892 | cat conftest.$ac_ext >&5 | ||
4893 | |||
4894 | echo "$as_me:4894: result: no" >&5 | ||
4895 | echo "${ECHO_T}no" >&6 | ||
4896 | { { echo "$as_me:4896: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
4897 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
4898 | { (exit 1); exit 1; }; } | ||
4899 | |||
4900 | fi | ||
4901 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4902 | fi | ||
4903 | |||
4904 | # Checks for header files. | ||
4905 | |||
4906 | for ac_header in bstring.h crypt.h endian.h features.h floatingpoint.h \ | ||
4907 | getopt.h glob.h ia.h lastlog.h limits.h login.h \ | ||
4908 | login_cap.h maillock.h netdb.h netgroup.h \ | ||
4909 | netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \ | ||
4910 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
4911 | strings.h sys/strtio.h sys/audit.h sys/bitypes.h sys/bsdtty.h \ | ||
4912 | sys/cdefs.h sys/mman.h sys/prctl.h sys/pstat.h sys/ptms.h \ | ||
4913 | sys/select.h sys/stat.h sys/stream.h sys/stropts.h \ | ||
4914 | sys/sysmacros.h sys/time.h sys/timers.h sys/un.h time.h tmpdir.h \ | ||
4915 | ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h | ||
4916 | do | ||
4917 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4918 | echo "$as_me:4918: checking for $ac_header" >&5 | ||
4919 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4922 | else | ||
4923 | cat >conftest.$ac_ext <<_ACEOF | ||
4924 | #line 4924 "configure" | ||
4925 | #include "confdefs.h" | ||
4926 | #include <$ac_header> | ||
4927 | _ACEOF | ||
4928 | if { (eval echo "$as_me:4928: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4929 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4930 | ac_status=$? | ||
4931 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
4932 | rm -f conftest.er1 | ||
4933 | cat conftest.err >&5 | ||
4934 | echo "$as_me:4934: \$? = $ac_status" >&5 | ||
4935 | (exit $ac_status); } >/dev/null; then | ||
4936 | if test -s conftest.err; then | ||
4937 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4938 | else | ||
4939 | ac_cpp_err= | ||
4940 | fi | ||
4941 | else | ||
4942 | ac_cpp_err=yes | ||
4943 | fi | ||
4944 | if test -z "$ac_cpp_err"; then | ||
4945 | eval "$as_ac_Header=yes" | ||
4946 | else | ||
4947 | echo "$as_me: failed program was:" >&5 | ||
4948 | cat conftest.$ac_ext >&5 | ||
4949 | eval "$as_ac_Header=no" | ||
4950 | fi | ||
4951 | rm -f conftest.err conftest.$ac_ext | ||
4952 | fi | ||
4953 | echo "$as_me:4953: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4954 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4955 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4956 | cat >>confdefs.h <<EOF | ||
4957 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4958 | EOF | ||
4959 | |||
4960 | fi | ||
4961 | done | ||
4962 | |||
4963 | # Checks for libraries. | ||
4964 | echo "$as_me:4964: checking for yp_match" >&5 | ||
4965 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
4966 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
4967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4968 | else | ||
4969 | cat >conftest.$ac_ext <<_ACEOF | ||
4970 | #line 4970 "configure" | ||
4971 | #include "confdefs.h" | ||
4972 | /* System header to define __stub macros and hopefully few prototypes, | ||
4973 | which can conflict with char yp_match (); below. */ | ||
4974 | #include <assert.h> | ||
4975 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4976 | #ifdef __cplusplus | ||
4977 | extern "C" | ||
4978 | #endif | ||
4979 | /* We use char because int might match the return type of a gcc2 | ||
4980 | builtin and then its argument prototype would still apply. */ | ||
4981 | char yp_match (); | ||
4982 | char (*f) (); | ||
4983 | |||
4984 | int | ||
4985 | main () | ||
4986 | { | ||
4987 | /* The GNU C library defines this for functions which it implements | ||
4988 | to always fail with ENOSYS. Some functions are actually named | ||
4989 | something starting with __ and the normal name is an alias. */ | ||
4990 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
4991 | choke me | ||
4992 | #else | ||
4993 | f = yp_match; | ||
4994 | #endif | ||
4995 | |||
4996 | ; | ||
4997 | return 0; | ||
4998 | } | ||
4999 | _ACEOF | ||
5000 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5001 | if { (eval echo "$as_me:5001: \"$ac_link\"") >&5 | ||
5002 | (eval $ac_link) 2>&5 | ||
5003 | ac_status=$? | ||
5004 | echo "$as_me:5004: \$? = $ac_status" >&5 | ||
5005 | (exit $ac_status); } && | ||
5006 | { ac_try='test -s conftest$ac_exeext' | ||
5007 | { (eval echo "$as_me:5007: \"$ac_try\"") >&5 | ||
5008 | (eval $ac_try) 2>&5 | ||
5009 | ac_status=$? | ||
5010 | echo "$as_me:5010: \$? = $ac_status" >&5 | ||
5011 | (exit $ac_status); }; }; then | ||
5012 | ac_cv_func_yp_match=yes | ||
5013 | else | ||
5014 | echo "$as_me: failed program was:" >&5 | ||
5015 | cat conftest.$ac_ext >&5 | ||
5016 | ac_cv_func_yp_match=no | ||
5017 | fi | ||
5018 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5019 | fi | ||
5020 | echo "$as_me:5020: result: $ac_cv_func_yp_match" >&5 | ||
5021 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
5022 | if test $ac_cv_func_yp_match = yes; then | ||
5023 | : | ||
5024 | else | ||
5025 | |||
5026 | echo "$as_me:5026: checking for yp_match in -lnsl" >&5 | ||
5027 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
5028 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
5029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5030 | else | ||
5031 | ac_check_lib_save_LIBS=$LIBS | ||
5032 | LIBS="-lnsl $LIBS" | ||
5033 | cat >conftest.$ac_ext <<_ACEOF | ||
5034 | #line 5034 "configure" | ||
5035 | #include "confdefs.h" | ||
5036 | |||
5037 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5038 | #ifdef __cplusplus | ||
5039 | extern "C" | ||
5040 | #endif | ||
5041 | /* We use char because int might match the return type of a gcc2 | ||
5042 | builtin and then its argument prototype would still apply. */ | ||
5043 | char yp_match (); | ||
5044 | int | ||
5045 | main () | ||
5046 | { | ||
5047 | yp_match (); | ||
5048 | ; | ||
5049 | return 0; | ||
5050 | } | ||
5051 | _ACEOF | ||
5052 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5053 | if { (eval echo "$as_me:5053: \"$ac_link\"") >&5 | ||
5054 | (eval $ac_link) 2>&5 | ||
5055 | ac_status=$? | ||
5056 | echo "$as_me:5056: \$? = $ac_status" >&5 | ||
5057 | (exit $ac_status); } && | ||
5058 | { ac_try='test -s conftest$ac_exeext' | ||
5059 | { (eval echo "$as_me:5059: \"$ac_try\"") >&5 | ||
5060 | (eval $ac_try) 2>&5 | ||
5061 | ac_status=$? | ||
5062 | echo "$as_me:5062: \$? = $ac_status" >&5 | ||
5063 | (exit $ac_status); }; }; then | ||
5064 | ac_cv_lib_nsl_yp_match=yes | ||
5065 | else | ||
5066 | echo "$as_me: failed program was:" >&5 | ||
5067 | cat conftest.$ac_ext >&5 | ||
5068 | ac_cv_lib_nsl_yp_match=no | ||
5069 | fi | ||
5070 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5071 | LIBS=$ac_check_lib_save_LIBS | ||
5072 | fi | ||
5073 | echo "$as_me:5073: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
5074 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
5075 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
5076 | cat >>confdefs.h <<EOF | ||
5077 | #define HAVE_LIBNSL 1 | ||
5078 | EOF | ||
5079 | |||
5080 | LIBS="-lnsl $LIBS" | ||
5081 | |||
5082 | fi | ||
5083 | |||
5084 | fi | ||
5085 | |||
5086 | echo "$as_me:5086: checking for setsockopt" >&5 | ||
5087 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
5088 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
5089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5090 | else | ||
5091 | cat >conftest.$ac_ext <<_ACEOF | ||
5092 | #line 5092 "configure" | ||
5093 | #include "confdefs.h" | ||
5094 | /* System header to define __stub macros and hopefully few prototypes, | ||
5095 | which can conflict with char setsockopt (); below. */ | ||
5096 | #include <assert.h> | ||
5097 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5098 | #ifdef __cplusplus | ||
5099 | extern "C" | ||
5100 | #endif | ||
5101 | /* We use char because int might match the return type of a gcc2 | ||
5102 | builtin and then its argument prototype would still apply. */ | ||
5103 | char setsockopt (); | ||
5104 | char (*f) (); | ||
5105 | |||
5106 | int | ||
5107 | main () | ||
5108 | { | ||
5109 | /* The GNU C library defines this for functions which it implements | ||
5110 | to always fail with ENOSYS. Some functions are actually named | ||
5111 | something starting with __ and the normal name is an alias. */ | ||
5112 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
5113 | choke me | ||
5114 | #else | ||
5115 | f = setsockopt; | ||
5116 | #endif | ||
5117 | |||
5118 | ; | ||
5119 | return 0; | ||
5120 | } | ||
5121 | _ACEOF | ||
5122 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5123 | if { (eval echo "$as_me:5123: \"$ac_link\"") >&5 | ||
5124 | (eval $ac_link) 2>&5 | ||
5125 | ac_status=$? | ||
5126 | echo "$as_me:5126: \$? = $ac_status" >&5 | ||
5127 | (exit $ac_status); } && | ||
5128 | { ac_try='test -s conftest$ac_exeext' | ||
5129 | { (eval echo "$as_me:5129: \"$ac_try\"") >&5 | ||
5130 | (eval $ac_try) 2>&5 | ||
5131 | ac_status=$? | ||
5132 | echo "$as_me:5132: \$? = $ac_status" >&5 | ||
5133 | (exit $ac_status); }; }; then | ||
5134 | ac_cv_func_setsockopt=yes | ||
5135 | else | ||
5136 | echo "$as_me: failed program was:" >&5 | ||
5137 | cat conftest.$ac_ext >&5 | ||
5138 | ac_cv_func_setsockopt=no | ||
5139 | fi | ||
5140 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5141 | fi | ||
5142 | echo "$as_me:5142: result: $ac_cv_func_setsockopt" >&5 | ||
5143 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
5144 | if test $ac_cv_func_setsockopt = yes; then | ||
5145 | : | ||
5146 | else | ||
5147 | |||
5148 | echo "$as_me:5148: checking for setsockopt in -lsocket" >&5 | ||
5149 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
5150 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
5151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5152 | else | ||
5153 | ac_check_lib_save_LIBS=$LIBS | ||
5154 | LIBS="-lsocket $LIBS" | ||
5155 | cat >conftest.$ac_ext <<_ACEOF | ||
5156 | #line 5156 "configure" | ||
5157 | #include "confdefs.h" | ||
5158 | |||
5159 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5160 | #ifdef __cplusplus | ||
5161 | extern "C" | ||
5162 | #endif | ||
5163 | /* We use char because int might match the return type of a gcc2 | ||
5164 | builtin and then its argument prototype would still apply. */ | ||
5165 | char setsockopt (); | ||
5166 | int | ||
5167 | main () | ||
5168 | { | ||
5169 | setsockopt (); | ||
5170 | ; | ||
5171 | return 0; | ||
5172 | } | ||
5173 | _ACEOF | ||
5174 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5175 | if { (eval echo "$as_me:5175: \"$ac_link\"") >&5 | ||
5176 | (eval $ac_link) 2>&5 | ||
5177 | ac_status=$? | ||
5178 | echo "$as_me:5178: \$? = $ac_status" >&5 | ||
5179 | (exit $ac_status); } && | ||
5180 | { ac_try='test -s conftest$ac_exeext' | ||
5181 | { (eval echo "$as_me:5181: \"$ac_try\"") >&5 | ||
5182 | (eval $ac_try) 2>&5 | ||
5183 | ac_status=$? | ||
5184 | echo "$as_me:5184: \$? = $ac_status" >&5 | ||
5185 | (exit $ac_status); }; }; then | ||
5186 | ac_cv_lib_socket_setsockopt=yes | ||
5187 | else | ||
5188 | echo "$as_me: failed program was:" >&5 | ||
5189 | cat conftest.$ac_ext >&5 | ||
5190 | ac_cv_lib_socket_setsockopt=no | ||
5191 | fi | ||
5192 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5193 | LIBS=$ac_check_lib_save_LIBS | ||
5194 | fi | ||
5195 | echo "$as_me:5195: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
5196 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
5197 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
5198 | cat >>confdefs.h <<EOF | ||
5199 | #define HAVE_LIBSOCKET 1 | ||
5200 | EOF | ||
5201 | |||
5202 | LIBS="-lsocket $LIBS" | ||
5203 | |||
5204 | fi | ||
5205 | |||
5206 | fi | ||
5207 | |||
5208 | if test "x$with_tcp_wrappers" != "xno" ; then | ||
5209 | if test "x$do_sco3_extra_lib_check" = "xyes" ; then | ||
5210 | echo "$as_me:5210: checking for innetgr in -lrpc" >&5 | ||
5211 | echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6 | ||
5212 | if test "${ac_cv_lib_rpc_innetgr+set}" = set; then | ||
5213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5214 | else | ||
5215 | ac_check_lib_save_LIBS=$LIBS | ||
5216 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5217 | cat >conftest.$ac_ext <<_ACEOF | ||
5218 | #line 5218 "configure" | ||
5219 | #include "confdefs.h" | ||
5220 | |||
5221 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5222 | #ifdef __cplusplus | ||
5223 | extern "C" | ||
5224 | #endif | ||
5225 | /* We use char because int might match the return type of a gcc2 | ||
5226 | builtin and then its argument prototype would still apply. */ | ||
5227 | char innetgr (); | ||
5228 | int | ||
5229 | main () | ||
5230 | { | ||
5231 | innetgr (); | ||
5232 | ; | ||
5233 | return 0; | ||
5234 | } | ||
5235 | _ACEOF | ||
5236 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5237 | if { (eval echo "$as_me:5237: \"$ac_link\"") >&5 | ||
5238 | (eval $ac_link) 2>&5 | ||
5239 | ac_status=$? | ||
5240 | echo "$as_me:5240: \$? = $ac_status" >&5 | ||
5241 | (exit $ac_status); } && | ||
5242 | { ac_try='test -s conftest$ac_exeext' | ||
5243 | { (eval echo "$as_me:5243: \"$ac_try\"") >&5 | ||
5244 | (eval $ac_try) 2>&5 | ||
5245 | ac_status=$? | ||
5246 | echo "$as_me:5246: \$? = $ac_status" >&5 | ||
5247 | (exit $ac_status); }; }; then | ||
5248 | ac_cv_lib_rpc_innetgr=yes | ||
5249 | else | ||
5250 | echo "$as_me: failed program was:" >&5 | ||
5251 | cat conftest.$ac_ext >&5 | ||
5252 | ac_cv_lib_rpc_innetgr=no | ||
5253 | fi | ||
5254 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5255 | LIBS=$ac_check_lib_save_LIBS | ||
5256 | fi | ||
5257 | echo "$as_me:5257: result: $ac_cv_lib_rpc_innetgr" >&5 | ||
5258 | echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6 | ||
5259 | if test $ac_cv_lib_rpc_innetgr = yes; then | ||
5260 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5261 | fi | ||
5262 | |||
5263 | fi | ||
5264 | fi | ||
5265 | |||
5266 | for ac_func in dirname | ||
5267 | do | ||
5268 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5269 | echo "$as_me:5269: checking for $ac_func" >&5 | ||
5270 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5271 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5273 | else | ||
5274 | cat >conftest.$ac_ext <<_ACEOF | ||
5275 | #line 5275 "configure" | ||
5276 | #include "confdefs.h" | ||
5277 | /* System header to define __stub macros and hopefully few prototypes, | ||
5278 | which can conflict with char $ac_func (); below. */ | ||
5279 | #include <assert.h> | ||
5280 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5281 | #ifdef __cplusplus | ||
5282 | extern "C" | ||
5283 | #endif | ||
5284 | /* We use char because int might match the return type of a gcc2 | ||
5285 | builtin and then its argument prototype would still apply. */ | ||
5286 | char $ac_func (); | ||
5287 | char (*f) (); | ||
5288 | |||
5289 | int | ||
5290 | main () | ||
5291 | { | ||
5292 | /* The GNU C library defines this for functions which it implements | ||
5293 | to always fail with ENOSYS. Some functions are actually named | ||
5294 | something starting with __ and the normal name is an alias. */ | ||
5295 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5296 | choke me | ||
5297 | #else | ||
5298 | f = $ac_func; | ||
5299 | #endif | ||
5300 | |||
5301 | ; | ||
5302 | return 0; | ||
5303 | } | ||
5304 | _ACEOF | ||
5305 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5306 | if { (eval echo "$as_me:5306: \"$ac_link\"") >&5 | ||
5307 | (eval $ac_link) 2>&5 | ||
5308 | ac_status=$? | ||
5309 | echo "$as_me:5309: \$? = $ac_status" >&5 | ||
5310 | (exit $ac_status); } && | ||
5311 | { ac_try='test -s conftest$ac_exeext' | ||
5312 | { (eval echo "$as_me:5312: \"$ac_try\"") >&5 | ||
5313 | (eval $ac_try) 2>&5 | ||
5314 | ac_status=$? | ||
5315 | echo "$as_me:5315: \$? = $ac_status" >&5 | ||
5316 | (exit $ac_status); }; }; then | ||
5317 | eval "$as_ac_var=yes" | ||
5318 | else | ||
5319 | echo "$as_me: failed program was:" >&5 | ||
5320 | cat conftest.$ac_ext >&5 | ||
5321 | eval "$as_ac_var=no" | ||
5322 | fi | ||
5323 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5324 | fi | ||
5325 | echo "$as_me:5325: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5326 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5327 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5328 | cat >>confdefs.h <<EOF | ||
5329 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5330 | EOF | ||
5331 | |||
5332 | for ac_header in libgen.h | ||
5333 | do | ||
5334 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5335 | echo "$as_me:5335: checking for $ac_header" >&5 | ||
5336 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5337 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5339 | else | ||
5340 | cat >conftest.$ac_ext <<_ACEOF | ||
5341 | #line 5341 "configure" | ||
5342 | #include "confdefs.h" | ||
5343 | #include <$ac_header> | ||
5344 | _ACEOF | ||
5345 | if { (eval echo "$as_me:5345: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5347 | ac_status=$? | ||
5348 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5349 | rm -f conftest.er1 | ||
5350 | cat conftest.err >&5 | ||
5351 | echo "$as_me:5351: \$? = $ac_status" >&5 | ||
5352 | (exit $ac_status); } >/dev/null; then | ||
5353 | if test -s conftest.err; then | ||
5354 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5355 | else | ||
5356 | ac_cpp_err= | ||
5357 | fi | ||
5358 | else | ||
5359 | ac_cpp_err=yes | ||
5360 | fi | ||
5361 | if test -z "$ac_cpp_err"; then | ||
5362 | eval "$as_ac_Header=yes" | ||
5363 | else | ||
5364 | echo "$as_me: failed program was:" >&5 | ||
5365 | cat conftest.$ac_ext >&5 | ||
5366 | eval "$as_ac_Header=no" | ||
5367 | fi | ||
5368 | rm -f conftest.err conftest.$ac_ext | ||
5369 | fi | ||
5370 | echo "$as_me:5370: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5371 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5372 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5373 | cat >>confdefs.h <<EOF | ||
5374 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5375 | EOF | ||
5376 | |||
5377 | fi | ||
5378 | done | ||
5379 | |||
5380 | else | ||
5381 | |||
5382 | echo "$as_me:5382: checking for dirname in -lgen" >&5 | ||
5383 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
5384 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
5385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5386 | else | ||
5387 | ac_check_lib_save_LIBS=$LIBS | ||
5388 | LIBS="-lgen $LIBS" | ||
5389 | cat >conftest.$ac_ext <<_ACEOF | ||
5390 | #line 5390 "configure" | ||
5391 | #include "confdefs.h" | ||
5392 | |||
5393 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5394 | #ifdef __cplusplus | ||
5395 | extern "C" | ||
5396 | #endif | ||
5397 | /* We use char because int might match the return type of a gcc2 | ||
5398 | builtin and then its argument prototype would still apply. */ | ||
5399 | char dirname (); | ||
5400 | int | ||
5401 | main () | ||
5402 | { | ||
5403 | dirname (); | ||
5404 | ; | ||
5405 | return 0; | ||
5406 | } | ||
5407 | _ACEOF | ||
5408 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5409 | if { (eval echo "$as_me:5409: \"$ac_link\"") >&5 | ||
5410 | (eval $ac_link) 2>&5 | ||
5411 | ac_status=$? | ||
5412 | echo "$as_me:5412: \$? = $ac_status" >&5 | ||
5413 | (exit $ac_status); } && | ||
5414 | { ac_try='test -s conftest$ac_exeext' | ||
5415 | { (eval echo "$as_me:5415: \"$ac_try\"") >&5 | ||
5416 | (eval $ac_try) 2>&5 | ||
5417 | ac_status=$? | ||
5418 | echo "$as_me:5418: \$? = $ac_status" >&5 | ||
5419 | (exit $ac_status); }; }; then | ||
5420 | ac_cv_lib_gen_dirname=yes | ||
5421 | else | ||
5422 | echo "$as_me: failed program was:" >&5 | ||
5423 | cat conftest.$ac_ext >&5 | ||
5424 | ac_cv_lib_gen_dirname=no | ||
5425 | fi | ||
5426 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5427 | LIBS=$ac_check_lib_save_LIBS | ||
5428 | fi | ||
5429 | echo "$as_me:5429: result: $ac_cv_lib_gen_dirname" >&5 | ||
5430 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
5431 | if test $ac_cv_lib_gen_dirname = yes; then | ||
5432 | |||
5433 | echo "$as_me:5433: checking for broken dirname" >&5 | ||
5434 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
5435 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
5436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5437 | else | ||
5438 | |||
5439 | save_LIBS="$LIBS" | ||
5440 | LIBS="$LIBS -lgen" | ||
5441 | if test "$cross_compiling" = yes; then | ||
5442 | { { echo "$as_me:5442: error: cannot run test program while cross compiling" >&5 | ||
5443 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
5444 | { (exit 1); exit 1; }; } | ||
5445 | else | ||
5446 | cat >conftest.$ac_ext <<_ACEOF | ||
5447 | #line 5447 "configure" | ||
5448 | #include "confdefs.h" | ||
5449 | |||
5450 | #include <libgen.h> | ||
5451 | #include <string.h> | ||
5452 | |||
5453 | int main(int argc, char **argv) { | ||
5454 | char *s, buf[32]; | ||
5455 | |||
5456 | strncpy(buf,"/etc", 32); | ||
5457 | s = dirname(buf); | ||
5458 | if (!s || strncmp(s, "/", 32) != 0) { | ||
5459 | exit(1); | ||
5460 | } else { | ||
5461 | exit(0); | ||
5462 | } | ||
5463 | } | ||
5464 | |||
5465 | _ACEOF | ||
5466 | rm -f conftest$ac_exeext | ||
5467 | if { (eval echo "$as_me:5467: \"$ac_link\"") >&5 | ||
5468 | (eval $ac_link) 2>&5 | ||
5469 | ac_status=$? | ||
5470 | echo "$as_me:5470: \$? = $ac_status" >&5 | ||
5471 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5472 | { (eval echo "$as_me:5472: \"$ac_try\"") >&5 | ||
5473 | (eval $ac_try) 2>&5 | ||
5474 | ac_status=$? | ||
5475 | echo "$as_me:5475: \$? = $ac_status" >&5 | ||
5476 | (exit $ac_status); }; }; then | ||
5477 | ac_cv_have_broken_dirname="no" | ||
5478 | else | ||
5479 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5480 | echo "$as_me: failed program was:" >&5 | ||
5481 | cat conftest.$ac_ext >&5 | ||
5482 | ac_cv_have_broken_dirname="yes" | ||
5483 | |||
5484 | fi | ||
5485 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5486 | fi | ||
5487 | LIBS="$save_LIBS" | ||
5488 | |||
5489 | fi | ||
5490 | echo "$as_me:5490: result: $ac_cv_have_broken_dirname" >&5 | ||
5491 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
5492 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
5493 | LIBS="$LIBS -lgen" | ||
5494 | cat >>confdefs.h <<\EOF | ||
5495 | #define HAVE_DIRNAME 1 | ||
5496 | EOF | ||
5497 | |||
5498 | for ac_header in libgen.h | ||
5499 | do | ||
5500 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5501 | echo "$as_me:5501: checking for $ac_header" >&5 | ||
5502 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5503 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5505 | else | ||
5506 | cat >conftest.$ac_ext <<_ACEOF | ||
5507 | #line 5507 "configure" | ||
5508 | #include "confdefs.h" | ||
5509 | #include <$ac_header> | ||
5510 | _ACEOF | ||
5511 | if { (eval echo "$as_me:5511: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5512 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5513 | ac_status=$? | ||
5514 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5515 | rm -f conftest.er1 | ||
5516 | cat conftest.err >&5 | ||
5517 | echo "$as_me:5517: \$? = $ac_status" >&5 | ||
5518 | (exit $ac_status); } >/dev/null; then | ||
5519 | if test -s conftest.err; then | ||
5520 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5521 | else | ||
5522 | ac_cpp_err= | ||
5523 | fi | ||
5524 | else | ||
5525 | ac_cpp_err=yes | ||
5526 | fi | ||
5527 | if test -z "$ac_cpp_err"; then | ||
5528 | eval "$as_ac_Header=yes" | ||
5529 | else | ||
5530 | echo "$as_me: failed program was:" >&5 | ||
5531 | cat conftest.$ac_ext >&5 | ||
5532 | eval "$as_ac_Header=no" | ||
5533 | fi | ||
5534 | rm -f conftest.err conftest.$ac_ext | ||
5535 | fi | ||
5536 | echo "$as_me:5536: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5537 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5538 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5539 | cat >>confdefs.h <<EOF | ||
5540 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5541 | EOF | ||
5542 | |||
5543 | fi | ||
5544 | done | ||
5545 | |||
5546 | fi | ||
5547 | |||
5548 | fi | ||
5549 | |||
5550 | fi | ||
5551 | done | ||
5552 | |||
5553 | echo "$as_me:5553: checking for getspnam" >&5 | ||
5554 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
5555 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
5556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5557 | else | ||
5558 | cat >conftest.$ac_ext <<_ACEOF | ||
5559 | #line 5559 "configure" | ||
5560 | #include "confdefs.h" | ||
5561 | /* System header to define __stub macros and hopefully few prototypes, | ||
5562 | which can conflict with char getspnam (); below. */ | ||
5563 | #include <assert.h> | ||
5564 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5565 | #ifdef __cplusplus | ||
5566 | extern "C" | ||
5567 | #endif | ||
5568 | /* We use char because int might match the return type of a gcc2 | ||
5569 | builtin and then its argument prototype would still apply. */ | ||
5570 | char getspnam (); | ||
5571 | char (*f) (); | ||
5572 | |||
5573 | int | ||
5574 | main () | ||
5575 | { | ||
5576 | /* The GNU C library defines this for functions which it implements | ||
5577 | to always fail with ENOSYS. Some functions are actually named | ||
5578 | something starting with __ and the normal name is an alias. */ | ||
5579 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
5580 | choke me | ||
5581 | #else | ||
5582 | f = getspnam; | ||
5583 | #endif | ||
5584 | |||
5585 | ; | ||
5586 | return 0; | ||
5587 | } | ||
5588 | _ACEOF | ||
5589 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5590 | if { (eval echo "$as_me:5590: \"$ac_link\"") >&5 | ||
5591 | (eval $ac_link) 2>&5 | ||
5592 | ac_status=$? | ||
5593 | echo "$as_me:5593: \$? = $ac_status" >&5 | ||
5594 | (exit $ac_status); } && | ||
5595 | { ac_try='test -s conftest$ac_exeext' | ||
5596 | { (eval echo "$as_me:5596: \"$ac_try\"") >&5 | ||
5597 | (eval $ac_try) 2>&5 | ||
5598 | ac_status=$? | ||
5599 | echo "$as_me:5599: \$? = $ac_status" >&5 | ||
5600 | (exit $ac_status); }; }; then | ||
5601 | ac_cv_func_getspnam=yes | ||
5602 | else | ||
5603 | echo "$as_me: failed program was:" >&5 | ||
5604 | cat conftest.$ac_ext >&5 | ||
5605 | ac_cv_func_getspnam=no | ||
5606 | fi | ||
5607 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5608 | fi | ||
5609 | echo "$as_me:5609: result: $ac_cv_func_getspnam" >&5 | ||
5610 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
5611 | if test $ac_cv_func_getspnam = yes; then | ||
5612 | : | ||
5613 | else | ||
5614 | echo "$as_me:5614: checking for getspnam in -lgen" >&5 | ||
5615 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
5616 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
5617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5618 | else | ||
5619 | ac_check_lib_save_LIBS=$LIBS | ||
5620 | LIBS="-lgen $LIBS" | ||
5621 | cat >conftest.$ac_ext <<_ACEOF | ||
5622 | #line 5622 "configure" | ||
5623 | #include "confdefs.h" | ||
5624 | |||
5625 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5626 | #ifdef __cplusplus | ||
5627 | extern "C" | ||
5628 | #endif | ||
5629 | /* We use char because int might match the return type of a gcc2 | ||
5630 | builtin and then its argument prototype would still apply. */ | ||
5631 | char getspnam (); | ||
5632 | int | ||
5633 | main () | ||
5634 | { | ||
5635 | getspnam (); | ||
5636 | ; | ||
5637 | return 0; | ||
5638 | } | ||
5639 | _ACEOF | ||
5640 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5641 | if { (eval echo "$as_me:5641: \"$ac_link\"") >&5 | ||
5642 | (eval $ac_link) 2>&5 | ||
5643 | ac_status=$? | ||
5644 | echo "$as_me:5644: \$? = $ac_status" >&5 | ||
5645 | (exit $ac_status); } && | ||
5646 | { ac_try='test -s conftest$ac_exeext' | ||
5647 | { (eval echo "$as_me:5647: \"$ac_try\"") >&5 | ||
5648 | (eval $ac_try) 2>&5 | ||
5649 | ac_status=$? | ||
5650 | echo "$as_me:5650: \$? = $ac_status" >&5 | ||
5651 | (exit $ac_status); }; }; then | ||
5652 | ac_cv_lib_gen_getspnam=yes | ||
5653 | else | ||
5654 | echo "$as_me: failed program was:" >&5 | ||
5655 | cat conftest.$ac_ext >&5 | ||
5656 | ac_cv_lib_gen_getspnam=no | ||
5657 | fi | ||
5658 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5659 | LIBS=$ac_check_lib_save_LIBS | ||
5660 | fi | ||
5661 | echo "$as_me:5661: result: $ac_cv_lib_gen_getspnam" >&5 | ||
5662 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
5663 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
5664 | LIBS="$LIBS -lgen" | ||
5665 | fi | ||
5666 | |||
5667 | fi | ||
5668 | |||
5669 | echo "$as_me:5669: checking for library containing basename" >&5 | ||
5670 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6 | ||
5671 | if test "${ac_cv_search_basename+set}" = set; then | ||
5672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5673 | else | ||
5674 | ac_func_search_save_LIBS=$LIBS | ||
5675 | ac_cv_search_basename=no | ||
5676 | cat >conftest.$ac_ext <<_ACEOF | ||
5677 | #line 5677 "configure" | ||
5678 | #include "confdefs.h" | ||
5679 | |||
5680 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5681 | #ifdef __cplusplus | ||
5682 | extern "C" | ||
5683 | #endif | ||
5684 | /* We use char because int might match the return type of a gcc2 | ||
5685 | builtin and then its argument prototype would still apply. */ | ||
5686 | char basename (); | ||
5687 | int | ||
5688 | main () | ||
5689 | { | ||
5690 | basename (); | ||
5691 | ; | ||
5692 | return 0; | ||
5693 | } | ||
5694 | _ACEOF | ||
5695 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5696 | if { (eval echo "$as_me:5696: \"$ac_link\"") >&5 | ||
5697 | (eval $ac_link) 2>&5 | ||
5698 | ac_status=$? | ||
5699 | echo "$as_me:5699: \$? = $ac_status" >&5 | ||
5700 | (exit $ac_status); } && | ||
5701 | { ac_try='test -s conftest$ac_exeext' | ||
5702 | { (eval echo "$as_me:5702: \"$ac_try\"") >&5 | ||
5703 | (eval $ac_try) 2>&5 | ||
5704 | ac_status=$? | ||
5705 | echo "$as_me:5705: \$? = $ac_status" >&5 | ||
5706 | (exit $ac_status); }; }; then | ||
5707 | ac_cv_search_basename="none required" | ||
5708 | else | ||
5709 | echo "$as_me: failed program was:" >&5 | ||
5710 | cat conftest.$ac_ext >&5 | ||
5711 | fi | ||
5712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5713 | if test "$ac_cv_search_basename" = no; then | ||
5714 | for ac_lib in gen; do | ||
5715 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
5716 | cat >conftest.$ac_ext <<_ACEOF | ||
5717 | #line 5717 "configure" | ||
5718 | #include "confdefs.h" | ||
5719 | |||
5720 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5721 | #ifdef __cplusplus | ||
5722 | extern "C" | ||
5723 | #endif | ||
5724 | /* We use char because int might match the return type of a gcc2 | ||
5725 | builtin and then its argument prototype would still apply. */ | ||
5726 | char basename (); | ||
5727 | int | ||
5728 | main () | ||
5729 | { | ||
5730 | basename (); | ||
5731 | ; | ||
5732 | return 0; | ||
5733 | } | ||
5734 | _ACEOF | ||
5735 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5736 | if { (eval echo "$as_me:5736: \"$ac_link\"") >&5 | ||
5737 | (eval $ac_link) 2>&5 | ||
5738 | ac_status=$? | ||
5739 | echo "$as_me:5739: \$? = $ac_status" >&5 | ||
5740 | (exit $ac_status); } && | ||
5741 | { ac_try='test -s conftest$ac_exeext' | ||
5742 | { (eval echo "$as_me:5742: \"$ac_try\"") >&5 | ||
5743 | (eval $ac_try) 2>&5 | ||
5744 | ac_status=$? | ||
5745 | echo "$as_me:5745: \$? = $ac_status" >&5 | ||
5746 | (exit $ac_status); }; }; then | ||
5747 | ac_cv_search_basename="-l$ac_lib" | ||
5748 | break | ||
5749 | else | ||
5750 | echo "$as_me: failed program was:" >&5 | ||
5751 | cat conftest.$ac_ext >&5 | ||
5752 | fi | ||
5753 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5754 | done | ||
5755 | fi | ||
5756 | LIBS=$ac_func_search_save_LIBS | ||
5757 | fi | ||
5758 | echo "$as_me:5758: result: $ac_cv_search_basename" >&5 | ||
5759 | echo "${ECHO_T}$ac_cv_search_basename" >&6 | ||
5760 | if test "$ac_cv_search_basename" != no; then | ||
5761 | test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS" | ||
5762 | cat >>confdefs.h <<\EOF | ||
5763 | #define HAVE_BASENAME 1 | ||
5764 | EOF | ||
5765 | |||
5766 | fi | ||
5767 | |||
5768 | # Check whether --with-zlib or --without-zlib was given. | ||
5769 | if test "${with_zlib+set}" = set; then | ||
5770 | withval="$with_zlib" | ||
5771 | |||
5772 | if test "x$withval" = "xno" ; then | ||
5773 | { { echo "$as_me:5773: error: *** zlib is required ***" >&5 | ||
5774 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
5775 | { (exit 1); exit 1; }; } | ||
5776 | fi | ||
5777 | if test -d "$withval/lib"; then | ||
5778 | if test -n "${need_dash_r}"; then | ||
5779 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
5780 | else | ||
5781 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
5782 | fi | ||
5783 | else | ||
5784 | if test -n "${need_dash_r}"; then | ||
5785 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
5786 | else | ||
5787 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
5788 | fi | ||
5789 | fi | ||
5790 | if test -d "$withval/include"; then | ||
5791 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
5792 | else | ||
5793 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
5794 | fi | ||
5795 | |||
5796 | fi; | ||
5797 | |||
5798 | echo "$as_me:5798: checking for deflate in -lz" >&5 | ||
5799 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
5800 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
5801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5802 | else | ||
5803 | ac_check_lib_save_LIBS=$LIBS | ||
5804 | LIBS="-lz $LIBS" | ||
5805 | cat >conftest.$ac_ext <<_ACEOF | ||
5806 | #line 5806 "configure" | ||
5807 | #include "confdefs.h" | ||
5808 | |||
5809 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5810 | #ifdef __cplusplus | ||
5811 | extern "C" | ||
5812 | #endif | ||
5813 | /* We use char because int might match the return type of a gcc2 | ||
5814 | builtin and then its argument prototype would still apply. */ | ||
5815 | char deflate (); | ||
5816 | int | ||
5817 | main () | ||
5818 | { | ||
5819 | deflate (); | ||
5820 | ; | ||
5821 | return 0; | ||
5822 | } | ||
5823 | _ACEOF | ||
5824 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5825 | if { (eval echo "$as_me:5825: \"$ac_link\"") >&5 | ||
5826 | (eval $ac_link) 2>&5 | ||
5827 | ac_status=$? | ||
5828 | echo "$as_me:5828: \$? = $ac_status" >&5 | ||
5829 | (exit $ac_status); } && | ||
5830 | { ac_try='test -s conftest$ac_exeext' | ||
5831 | { (eval echo "$as_me:5831: \"$ac_try\"") >&5 | ||
5832 | (eval $ac_try) 2>&5 | ||
5833 | ac_status=$? | ||
5834 | echo "$as_me:5834: \$? = $ac_status" >&5 | ||
5835 | (exit $ac_status); }; }; then | ||
5836 | ac_cv_lib_z_deflate=yes | ||
5837 | else | ||
5838 | echo "$as_me: failed program was:" >&5 | ||
5839 | cat conftest.$ac_ext >&5 | ||
5840 | ac_cv_lib_z_deflate=no | ||
5841 | fi | ||
5842 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5843 | LIBS=$ac_check_lib_save_LIBS | ||
5844 | fi | ||
5845 | echo "$as_me:5845: result: $ac_cv_lib_z_deflate" >&5 | ||
5846 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
5847 | if test $ac_cv_lib_z_deflate = yes; then | ||
5848 | cat >>confdefs.h <<EOF | ||
5849 | #define HAVE_LIBZ 1 | ||
5850 | EOF | ||
5851 | |||
5852 | LIBS="-lz $LIBS" | ||
5853 | |||
5854 | else | ||
5855 | |||
5856 | saved_CPPFLAGS="$CPPFLAGS" | ||
5857 | saved_LDFLAGS="$LDFLAGS" | ||
5858 | save_LIBS="$LIBS" | ||
5859 | if test -n "${need_dash_r}"; then | ||
5860 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
5861 | else | ||
5862 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
5863 | fi | ||
5864 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
5865 | LIBS="$LIBS -lz" | ||
5866 | cat >conftest.$ac_ext <<_ACEOF | ||
5867 | #line 5867 "configure" | ||
5868 | #include "confdefs.h" | ||
5869 | |||
5870 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5871 | #ifdef __cplusplus | ||
5872 | extern "C" | ||
5873 | #endif | ||
5874 | /* We use char because int might match the return type of a gcc2 | ||
5875 | builtin and then its argument prototype would still apply. */ | ||
5876 | char deflate (); | ||
5877 | int | ||
5878 | main () | ||
5879 | { | ||
5880 | deflate (); | ||
5881 | ; | ||
5882 | return 0; | ||
5883 | } | ||
5884 | _ACEOF | ||
5885 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5886 | if { (eval echo "$as_me:5886: \"$ac_link\"") >&5 | ||
5887 | (eval $ac_link) 2>&5 | ||
5888 | ac_status=$? | ||
5889 | echo "$as_me:5889: \$? = $ac_status" >&5 | ||
5890 | (exit $ac_status); } && | ||
5891 | { ac_try='test -s conftest$ac_exeext' | ||
5892 | { (eval echo "$as_me:5892: \"$ac_try\"") >&5 | ||
5893 | (eval $ac_try) 2>&5 | ||
5894 | ac_status=$? | ||
5895 | echo "$as_me:5895: \$? = $ac_status" >&5 | ||
5896 | (exit $ac_status); }; }; then | ||
5897 | cat >>confdefs.h <<\EOF | ||
5898 | #define HAVE_LIBZ 1 | ||
5899 | EOF | ||
5900 | |||
5901 | else | ||
5902 | echo "$as_me: failed program was:" >&5 | ||
5903 | cat conftest.$ac_ext >&5 | ||
5904 | |||
5905 | { { echo "$as_me:5905: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
5906 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
5907 | { (exit 1); exit 1; }; } | ||
5908 | |||
5909 | fi | ||
5910 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5911 | |||
5912 | fi | ||
5913 | |||
5914 | echo "$as_me:5914: checking for zlib.h" >&5 | ||
5915 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
5916 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
5917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5918 | else | ||
5919 | cat >conftest.$ac_ext <<_ACEOF | ||
5920 | #line 5920 "configure" | ||
5921 | #include "confdefs.h" | ||
5922 | #include <zlib.h> | ||
5923 | _ACEOF | ||
5924 | if { (eval echo "$as_me:5924: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5925 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5926 | ac_status=$? | ||
5927 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5928 | rm -f conftest.er1 | ||
5929 | cat conftest.err >&5 | ||
5930 | echo "$as_me:5930: \$? = $ac_status" >&5 | ||
5931 | (exit $ac_status); } >/dev/null; then | ||
5932 | if test -s conftest.err; then | ||
5933 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5934 | else | ||
5935 | ac_cpp_err= | ||
5936 | fi | ||
5937 | else | ||
5938 | ac_cpp_err=yes | ||
5939 | fi | ||
5940 | if test -z "$ac_cpp_err"; then | ||
5941 | ac_cv_header_zlib_h=yes | ||
5942 | else | ||
5943 | echo "$as_me: failed program was:" >&5 | ||
5944 | cat conftest.$ac_ext >&5 | ||
5945 | ac_cv_header_zlib_h=no | ||
5946 | fi | ||
5947 | rm -f conftest.err conftest.$ac_ext | ||
5948 | fi | ||
5949 | echo "$as_me:5949: result: $ac_cv_header_zlib_h" >&5 | ||
5950 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
5951 | if test $ac_cv_header_zlib_h = yes; then | ||
5952 | : | ||
5953 | else | ||
5954 | { { echo "$as_me:5954: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
5955 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
5956 | { (exit 1); exit 1; }; } | ||
5957 | fi | ||
5958 | |||
5959 | # Check whether --with-zlib-version-check or --without-zlib-version-check was given. | ||
5960 | if test "${with_zlib_version_check+set}" = set; then | ||
5961 | withval="$with_zlib_version_check" | ||
5962 | if test "x$withval" = "xno" ; then | ||
5963 | zlib_check_nonfatal=1 | ||
5964 | fi | ||
5965 | |||
5966 | fi; | ||
5967 | |||
5968 | echo "$as_me:5968: checking for zlib 1.1.4 or greater" >&5 | ||
5969 | echo $ECHO_N "checking for zlib 1.1.4 or greater... $ECHO_C" >&6 | ||
5970 | if test "$cross_compiling" = yes; then | ||
5971 | { { echo "$as_me:5971: error: cannot run test program while cross compiling" >&5 | ||
5972 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
5973 | { (exit 1); exit 1; }; } | ||
5974 | else | ||
5975 | cat >conftest.$ac_ext <<_ACEOF | ||
5976 | #line 5976 "configure" | ||
5977 | #include "confdefs.h" | ||
5978 | |||
5979 | #include <zlib.h> | ||
5980 | int main() | ||
5981 | { | ||
5982 | int a, b, c, v; | ||
5983 | if (sscanf(ZLIB_VERSION, "%d.%d.%d", &a, &b, &c) != 3) | ||
5984 | exit(1); | ||
5985 | v = a*1000000 + b*1000 + c; | ||
5986 | if (v >= 1001004) | ||
5987 | exit(0); | ||
5988 | exit(2); | ||
5989 | } | ||
5990 | |||
5991 | _ACEOF | ||
5992 | rm -f conftest$ac_exeext | ||
5993 | if { (eval echo "$as_me:5993: \"$ac_link\"") >&5 | ||
5994 | (eval $ac_link) 2>&5 | ||
5995 | ac_status=$? | ||
5996 | echo "$as_me:5996: \$? = $ac_status" >&5 | ||
5997 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5998 | { (eval echo "$as_me:5998: \"$ac_try\"") >&5 | ||
5999 | (eval $ac_try) 2>&5 | ||
6000 | ac_status=$? | ||
6001 | echo "$as_me:6001: \$? = $ac_status" >&5 | ||
6002 | (exit $ac_status); }; }; then | ||
6003 | echo "$as_me:6003: result: yes" >&5 | ||
6004 | echo "${ECHO_T}yes" >&6 | ||
6005 | else | ||
6006 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6007 | echo "$as_me: failed program was:" >&5 | ||
6008 | cat conftest.$ac_ext >&5 | ||
6009 | echo "$as_me:6009: result: no" >&5 | ||
6010 | echo "${ECHO_T}no" >&6 | ||
6011 | if test -z "$zlib_check_nonfatal" ; then | ||
6012 | { { echo "$as_me:6012: error: *** zlib too old - check config.log *** | ||
6013 | Your reported zlib version has known security problems. It's possible your | ||
6014 | vendor has fixed these problems without changing the version number. If you | ||
6015 | are sure this is the case, you can disable the check by running | ||
6016 | \"./configure --without-zlib-version-check\". | ||
6017 | If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&5 | ||
6018 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
6019 | Your reported zlib version has known security problems. It's possible your | ||
6020 | vendor has fixed these problems without changing the version number. If you | ||
6021 | are sure this is the case, you can disable the check by running | ||
6022 | \"./configure --without-zlib-version-check\". | ||
6023 | If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&2;} | ||
6024 | { (exit 1); exit 1; }; } | ||
6025 | else | ||
6026 | { echo "$as_me:6026: WARNING: zlib version may have security problems" >&5 | ||
6027 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
6028 | fi | ||
6029 | |||
6030 | fi | ||
6031 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6032 | fi | ||
6033 | |||
6034 | echo "$as_me:6034: checking for strcasecmp" >&5 | ||
6035 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
6036 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
6037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6038 | else | ||
6039 | cat >conftest.$ac_ext <<_ACEOF | ||
6040 | #line 6040 "configure" | ||
6041 | #include "confdefs.h" | ||
6042 | /* System header to define __stub macros and hopefully few prototypes, | ||
6043 | which can conflict with char strcasecmp (); below. */ | ||
6044 | #include <assert.h> | ||
6045 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6046 | #ifdef __cplusplus | ||
6047 | extern "C" | ||
6048 | #endif | ||
6049 | /* We use char because int might match the return type of a gcc2 | ||
6050 | builtin and then its argument prototype would still apply. */ | ||
6051 | char strcasecmp (); | ||
6052 | char (*f) (); | ||
6053 | |||
6054 | int | ||
6055 | main () | ||
6056 | { | ||
6057 | /* The GNU C library defines this for functions which it implements | ||
6058 | to always fail with ENOSYS. Some functions are actually named | ||
6059 | something starting with __ and the normal name is an alias. */ | ||
6060 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
6061 | choke me | ||
6062 | #else | ||
6063 | f = strcasecmp; | ||
6064 | #endif | ||
6065 | |||
6066 | ; | ||
6067 | return 0; | ||
6068 | } | ||
6069 | _ACEOF | ||
6070 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6071 | if { (eval echo "$as_me:6071: \"$ac_link\"") >&5 | ||
6072 | (eval $ac_link) 2>&5 | ||
6073 | ac_status=$? | ||
6074 | echo "$as_me:6074: \$? = $ac_status" >&5 | ||
6075 | (exit $ac_status); } && | ||
6076 | { ac_try='test -s conftest$ac_exeext' | ||
6077 | { (eval echo "$as_me:6077: \"$ac_try\"") >&5 | ||
6078 | (eval $ac_try) 2>&5 | ||
6079 | ac_status=$? | ||
6080 | echo "$as_me:6080: \$? = $ac_status" >&5 | ||
6081 | (exit $ac_status); }; }; then | ||
6082 | ac_cv_func_strcasecmp=yes | ||
6083 | else | ||
6084 | echo "$as_me: failed program was:" >&5 | ||
6085 | cat conftest.$ac_ext >&5 | ||
6086 | ac_cv_func_strcasecmp=no | ||
6087 | fi | ||
6088 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6089 | fi | ||
6090 | echo "$as_me:6090: result: $ac_cv_func_strcasecmp" >&5 | ||
6091 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
6092 | if test $ac_cv_func_strcasecmp = yes; then | ||
6093 | : | ||
6094 | else | ||
6095 | echo "$as_me:6095: checking for strcasecmp in -lresolv" >&5 | ||
6096 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
6097 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
6098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6099 | else | ||
6100 | ac_check_lib_save_LIBS=$LIBS | ||
6101 | LIBS="-lresolv $LIBS" | ||
6102 | cat >conftest.$ac_ext <<_ACEOF | ||
6103 | #line 6103 "configure" | ||
6104 | #include "confdefs.h" | ||
6105 | |||
6106 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6107 | #ifdef __cplusplus | ||
6108 | extern "C" | ||
6109 | #endif | ||
6110 | /* We use char because int might match the return type of a gcc2 | ||
6111 | builtin and then its argument prototype would still apply. */ | ||
6112 | char strcasecmp (); | ||
6113 | int | ||
6114 | main () | ||
6115 | { | ||
6116 | strcasecmp (); | ||
6117 | ; | ||
6118 | return 0; | ||
6119 | } | ||
6120 | _ACEOF | ||
6121 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6122 | if { (eval echo "$as_me:6122: \"$ac_link\"") >&5 | ||
6123 | (eval $ac_link) 2>&5 | ||
6124 | ac_status=$? | ||
6125 | echo "$as_me:6125: \$? = $ac_status" >&5 | ||
6126 | (exit $ac_status); } && | ||
6127 | { ac_try='test -s conftest$ac_exeext' | ||
6128 | { (eval echo "$as_me:6128: \"$ac_try\"") >&5 | ||
6129 | (eval $ac_try) 2>&5 | ||
6130 | ac_status=$? | ||
6131 | echo "$as_me:6131: \$? = $ac_status" >&5 | ||
6132 | (exit $ac_status); }; }; then | ||
6133 | ac_cv_lib_resolv_strcasecmp=yes | ||
6134 | else | ||
6135 | echo "$as_me: failed program was:" >&5 | ||
6136 | cat conftest.$ac_ext >&5 | ||
6137 | ac_cv_lib_resolv_strcasecmp=no | ||
6138 | fi | ||
6139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6140 | LIBS=$ac_check_lib_save_LIBS | ||
6141 | fi | ||
6142 | echo "$as_me:6142: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
6143 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
6144 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
6145 | LIBS="$LIBS -lresolv" | ||
6146 | fi | ||
6147 | |||
6148 | fi | ||
6149 | |||
6150 | echo "$as_me:6150: checking for utimes" >&5 | ||
6151 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
6152 | if test "${ac_cv_func_utimes+set}" = set; then | ||
6153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6154 | else | ||
6155 | cat >conftest.$ac_ext <<_ACEOF | ||
6156 | #line 6156 "configure" | ||
6157 | #include "confdefs.h" | ||
6158 | /* System header to define __stub macros and hopefully few prototypes, | ||
6159 | which can conflict with char utimes (); below. */ | ||
6160 | #include <assert.h> | ||
6161 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6162 | #ifdef __cplusplus | ||
6163 | extern "C" | ||
6164 | #endif | ||
6165 | /* We use char because int might match the return type of a gcc2 | ||
6166 | builtin and then its argument prototype would still apply. */ | ||
6167 | char utimes (); | ||
6168 | char (*f) (); | ||
6169 | |||
6170 | int | ||
6171 | main () | ||
6172 | { | ||
6173 | /* The GNU C library defines this for functions which it implements | ||
6174 | to always fail with ENOSYS. Some functions are actually named | ||
6175 | something starting with __ and the normal name is an alias. */ | ||
6176 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
6177 | choke me | ||
6178 | #else | ||
6179 | f = utimes; | ||
6180 | #endif | ||
6181 | |||
6182 | ; | ||
6183 | return 0; | ||
6184 | } | ||
6185 | _ACEOF | ||
6186 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6187 | if { (eval echo "$as_me:6187: \"$ac_link\"") >&5 | ||
6188 | (eval $ac_link) 2>&5 | ||
6189 | ac_status=$? | ||
6190 | echo "$as_me:6190: \$? = $ac_status" >&5 | ||
6191 | (exit $ac_status); } && | ||
6192 | { ac_try='test -s conftest$ac_exeext' | ||
6193 | { (eval echo "$as_me:6193: \"$ac_try\"") >&5 | ||
6194 | (eval $ac_try) 2>&5 | ||
6195 | ac_status=$? | ||
6196 | echo "$as_me:6196: \$? = $ac_status" >&5 | ||
6197 | (exit $ac_status); }; }; then | ||
6198 | ac_cv_func_utimes=yes | ||
6199 | else | ||
6200 | echo "$as_me: failed program was:" >&5 | ||
6201 | cat conftest.$ac_ext >&5 | ||
6202 | ac_cv_func_utimes=no | ||
6203 | fi | ||
6204 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6205 | fi | ||
6206 | echo "$as_me:6206: result: $ac_cv_func_utimes" >&5 | ||
6207 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
6208 | if test $ac_cv_func_utimes = yes; then | ||
6209 | : | ||
6210 | else | ||
6211 | echo "$as_me:6211: checking for utimes in -lc89" >&5 | ||
6212 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
6213 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
6214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6215 | else | ||
6216 | ac_check_lib_save_LIBS=$LIBS | ||
6217 | LIBS="-lc89 $LIBS" | ||
6218 | cat >conftest.$ac_ext <<_ACEOF | ||
6219 | #line 6219 "configure" | ||
6220 | #include "confdefs.h" | ||
6221 | |||
6222 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6223 | #ifdef __cplusplus | ||
6224 | extern "C" | ||
6225 | #endif | ||
6226 | /* We use char because int might match the return type of a gcc2 | ||
6227 | builtin and then its argument prototype would still apply. */ | ||
6228 | char utimes (); | ||
6229 | int | ||
6230 | main () | ||
6231 | { | ||
6232 | utimes (); | ||
6233 | ; | ||
6234 | return 0; | ||
6235 | } | ||
6236 | _ACEOF | ||
6237 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6238 | if { (eval echo "$as_me:6238: \"$ac_link\"") >&5 | ||
6239 | (eval $ac_link) 2>&5 | ||
6240 | ac_status=$? | ||
6241 | echo "$as_me:6241: \$? = $ac_status" >&5 | ||
6242 | (exit $ac_status); } && | ||
6243 | { ac_try='test -s conftest$ac_exeext' | ||
6244 | { (eval echo "$as_me:6244: \"$ac_try\"") >&5 | ||
6245 | (eval $ac_try) 2>&5 | ||
6246 | ac_status=$? | ||
6247 | echo "$as_me:6247: \$? = $ac_status" >&5 | ||
6248 | (exit $ac_status); }; }; then | ||
6249 | ac_cv_lib_c89_utimes=yes | ||
6250 | else | ||
6251 | echo "$as_me: failed program was:" >&5 | ||
6252 | cat conftest.$ac_ext >&5 | ||
6253 | ac_cv_lib_c89_utimes=no | ||
6254 | fi | ||
6255 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6256 | LIBS=$ac_check_lib_save_LIBS | ||
6257 | fi | ||
6258 | echo "$as_me:6258: result: $ac_cv_lib_c89_utimes" >&5 | ||
6259 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
6260 | if test $ac_cv_lib_c89_utimes = yes; then | ||
6261 | cat >>confdefs.h <<\EOF | ||
6262 | #define HAVE_UTIMES 1 | ||
6263 | EOF | ||
6264 | |||
6265 | LIBS="$LIBS -lc89" | ||
6266 | fi | ||
6267 | |||
6268 | fi | ||
6269 | |||
6270 | for ac_header in libutil.h | ||
6271 | do | ||
6272 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6273 | echo "$as_me:6273: checking for $ac_header" >&5 | ||
6274 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6275 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6277 | else | ||
6278 | cat >conftest.$ac_ext <<_ACEOF | ||
6279 | #line 6279 "configure" | ||
6280 | #include "confdefs.h" | ||
6281 | #include <$ac_header> | ||
6282 | _ACEOF | ||
6283 | if { (eval echo "$as_me:6283: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6284 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6285 | ac_status=$? | ||
6286 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
6287 | rm -f conftest.er1 | ||
6288 | cat conftest.err >&5 | ||
6289 | echo "$as_me:6289: \$? = $ac_status" >&5 | ||
6290 | (exit $ac_status); } >/dev/null; then | ||
6291 | if test -s conftest.err; then | ||
6292 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6293 | else | ||
6294 | ac_cpp_err= | ||
6295 | fi | ||
6296 | else | ||
6297 | ac_cpp_err=yes | ||
6298 | fi | ||
6299 | if test -z "$ac_cpp_err"; then | ||
6300 | eval "$as_ac_Header=yes" | ||
6301 | else | ||
6302 | echo "$as_me: failed program was:" >&5 | ||
6303 | cat conftest.$ac_ext >&5 | ||
6304 | eval "$as_ac_Header=no" | ||
6305 | fi | ||
6306 | rm -f conftest.err conftest.$ac_ext | ||
6307 | fi | ||
6308 | echo "$as_me:6308: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6309 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6310 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6311 | cat >>confdefs.h <<EOF | ||
6312 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6313 | EOF | ||
6314 | |||
6315 | fi | ||
6316 | done | ||
6317 | |||
6318 | echo "$as_me:6318: checking for library containing login" >&5 | ||
6319 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
6320 | if test "${ac_cv_search_login+set}" = set; then | ||
6321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6322 | else | ||
6323 | ac_func_search_save_LIBS=$LIBS | ||
6324 | ac_cv_search_login=no | ||
6325 | cat >conftest.$ac_ext <<_ACEOF | ||
6326 | #line 6326 "configure" | ||
6327 | #include "confdefs.h" | ||
6328 | |||
6329 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6330 | #ifdef __cplusplus | ||
6331 | extern "C" | ||
6332 | #endif | ||
6333 | /* We use char because int might match the return type of a gcc2 | ||
6334 | builtin and then its argument prototype would still apply. */ | ||
6335 | char login (); | ||
6336 | int | ||
6337 | main () | ||
6338 | { | ||
6339 | login (); | ||
6340 | ; | ||
6341 | return 0; | ||
6342 | } | ||
6343 | _ACEOF | ||
6344 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6345 | if { (eval echo "$as_me:6345: \"$ac_link\"") >&5 | ||
6346 | (eval $ac_link) 2>&5 | ||
6347 | ac_status=$? | ||
6348 | echo "$as_me:6348: \$? = $ac_status" >&5 | ||
6349 | (exit $ac_status); } && | ||
6350 | { ac_try='test -s conftest$ac_exeext' | ||
6351 | { (eval echo "$as_me:6351: \"$ac_try\"") >&5 | ||
6352 | (eval $ac_try) 2>&5 | ||
6353 | ac_status=$? | ||
6354 | echo "$as_me:6354: \$? = $ac_status" >&5 | ||
6355 | (exit $ac_status); }; }; then | ||
6356 | ac_cv_search_login="none required" | ||
6357 | else | ||
6358 | echo "$as_me: failed program was:" >&5 | ||
6359 | cat conftest.$ac_ext >&5 | ||
6360 | fi | ||
6361 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6362 | if test "$ac_cv_search_login" = no; then | ||
6363 | for ac_lib in util bsd; do | ||
6364 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
6365 | cat >conftest.$ac_ext <<_ACEOF | ||
6366 | #line 6366 "configure" | ||
6367 | #include "confdefs.h" | ||
6368 | |||
6369 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6370 | #ifdef __cplusplus | ||
6371 | extern "C" | ||
6372 | #endif | ||
6373 | /* We use char because int might match the return type of a gcc2 | ||
6374 | builtin and then its argument prototype would still apply. */ | ||
6375 | char login (); | ||
6376 | int | ||
6377 | main () | ||
6378 | { | ||
6379 | login (); | ||
6380 | ; | ||
6381 | return 0; | ||
6382 | } | ||
6383 | _ACEOF | ||
6384 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6385 | if { (eval echo "$as_me:6385: \"$ac_link\"") >&5 | ||
6386 | (eval $ac_link) 2>&5 | ||
6387 | ac_status=$? | ||
6388 | echo "$as_me:6388: \$? = $ac_status" >&5 | ||
6389 | (exit $ac_status); } && | ||
6390 | { ac_try='test -s conftest$ac_exeext' | ||
6391 | { (eval echo "$as_me:6391: \"$ac_try\"") >&5 | ||
6392 | (eval $ac_try) 2>&5 | ||
6393 | ac_status=$? | ||
6394 | echo "$as_me:6394: \$? = $ac_status" >&5 | ||
6395 | (exit $ac_status); }; }; then | ||
6396 | ac_cv_search_login="-l$ac_lib" | ||
6397 | break | ||
6398 | else | ||
6399 | echo "$as_me: failed program was:" >&5 | ||
6400 | cat conftest.$ac_ext >&5 | ||
6401 | fi | ||
6402 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6403 | done | ||
6404 | fi | ||
6405 | LIBS=$ac_func_search_save_LIBS | ||
6406 | fi | ||
6407 | echo "$as_me:6407: result: $ac_cv_search_login" >&5 | ||
6408 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
6409 | if test "$ac_cv_search_login" != no; then | ||
6410 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
6411 | cat >>confdefs.h <<\EOF | ||
6412 | #define HAVE_LOGIN 1 | ||
6413 | EOF | ||
6414 | |||
6415 | fi | ||
6416 | |||
6417 | for ac_func in logout updwtmp logwtmp | ||
6418 | do | ||
6419 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6420 | echo "$as_me:6420: checking for $ac_func" >&5 | ||
6421 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6422 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6424 | else | ||
6425 | cat >conftest.$ac_ext <<_ACEOF | ||
6426 | #line 6426 "configure" | ||
6427 | #include "confdefs.h" | ||
6428 | /* System header to define __stub macros and hopefully few prototypes, | ||
6429 | which can conflict with char $ac_func (); below. */ | ||
6430 | #include <assert.h> | ||
6431 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6432 | #ifdef __cplusplus | ||
6433 | extern "C" | ||
6434 | #endif | ||
6435 | /* We use char because int might match the return type of a gcc2 | ||
6436 | builtin and then its argument prototype would still apply. */ | ||
6437 | char $ac_func (); | ||
6438 | char (*f) (); | ||
6439 | |||
6440 | int | ||
6441 | main () | ||
6442 | { | ||
6443 | /* The GNU C library defines this for functions which it implements | ||
6444 | to always fail with ENOSYS. Some functions are actually named | ||
6445 | something starting with __ and the normal name is an alias. */ | ||
6446 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6447 | choke me | ||
6448 | #else | ||
6449 | f = $ac_func; | ||
6450 | #endif | ||
6451 | |||
6452 | ; | ||
6453 | return 0; | ||
6454 | } | ||
6455 | _ACEOF | ||
6456 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6457 | if { (eval echo "$as_me:6457: \"$ac_link\"") >&5 | ||
6458 | (eval $ac_link) 2>&5 | ||
6459 | ac_status=$? | ||
6460 | echo "$as_me:6460: \$? = $ac_status" >&5 | ||
6461 | (exit $ac_status); } && | ||
6462 | { ac_try='test -s conftest$ac_exeext' | ||
6463 | { (eval echo "$as_me:6463: \"$ac_try\"") >&5 | ||
6464 | (eval $ac_try) 2>&5 | ||
6465 | ac_status=$? | ||
6466 | echo "$as_me:6466: \$? = $ac_status" >&5 | ||
6467 | (exit $ac_status); }; }; then | ||
6468 | eval "$as_ac_var=yes" | ||
6469 | else | ||
6470 | echo "$as_me: failed program was:" >&5 | ||
6471 | cat conftest.$ac_ext >&5 | ||
6472 | eval "$as_ac_var=no" | ||
6473 | fi | ||
6474 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6475 | fi | ||
6476 | echo "$as_me:6476: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6477 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6478 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6479 | cat >>confdefs.h <<EOF | ||
6480 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6481 | EOF | ||
6482 | |||
6483 | fi | ||
6484 | done | ||
6485 | |||
6486 | for ac_func in strftime | ||
6487 | do | ||
6488 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6489 | echo "$as_me:6489: checking for $ac_func" >&5 | ||
6490 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6491 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6493 | else | ||
6494 | cat >conftest.$ac_ext <<_ACEOF | ||
6495 | #line 6495 "configure" | ||
6496 | #include "confdefs.h" | ||
6497 | /* System header to define __stub macros and hopefully few prototypes, | ||
6498 | which can conflict with char $ac_func (); below. */ | ||
6499 | #include <assert.h> | ||
6500 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6501 | #ifdef __cplusplus | ||
6502 | extern "C" | ||
6503 | #endif | ||
6504 | /* We use char because int might match the return type of a gcc2 | ||
6505 | builtin and then its argument prototype would still apply. */ | ||
6506 | char $ac_func (); | ||
6507 | char (*f) (); | ||
6508 | |||
6509 | int | ||
6510 | main () | ||
6511 | { | ||
6512 | /* The GNU C library defines this for functions which it implements | ||
6513 | to always fail with ENOSYS. Some functions are actually named | ||
6514 | something starting with __ and the normal name is an alias. */ | ||
6515 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6516 | choke me | ||
6517 | #else | ||
6518 | f = $ac_func; | ||
6519 | #endif | ||
6520 | |||
6521 | ; | ||
6522 | return 0; | ||
6523 | } | ||
6524 | _ACEOF | ||
6525 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6526 | if { (eval echo "$as_me:6526: \"$ac_link\"") >&5 | ||
6527 | (eval $ac_link) 2>&5 | ||
6528 | ac_status=$? | ||
6529 | echo "$as_me:6529: \$? = $ac_status" >&5 | ||
6530 | (exit $ac_status); } && | ||
6531 | { ac_try='test -s conftest$ac_exeext' | ||
6532 | { (eval echo "$as_me:6532: \"$ac_try\"") >&5 | ||
6533 | (eval $ac_try) 2>&5 | ||
6534 | ac_status=$? | ||
6535 | echo "$as_me:6535: \$? = $ac_status" >&5 | ||
6536 | (exit $ac_status); }; }; then | ||
6537 | eval "$as_ac_var=yes" | ||
6538 | else | ||
6539 | echo "$as_me: failed program was:" >&5 | ||
6540 | cat conftest.$ac_ext >&5 | ||
6541 | eval "$as_ac_var=no" | ||
6542 | fi | ||
6543 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6544 | fi | ||
6545 | echo "$as_me:6545: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6546 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6547 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6548 | cat >>confdefs.h <<EOF | ||
6549 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6550 | EOF | ||
6551 | |||
6552 | else | ||
6553 | # strftime is in -lintl on SCO UNIX. | ||
6554 | echo "$as_me:6554: checking for strftime in -lintl" >&5 | ||
6555 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
6556 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
6557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6558 | else | ||
6559 | ac_check_lib_save_LIBS=$LIBS | ||
6560 | LIBS="-lintl $LIBS" | ||
6561 | cat >conftest.$ac_ext <<_ACEOF | ||
6562 | #line 6562 "configure" | ||
6563 | #include "confdefs.h" | ||
6564 | |||
6565 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6566 | #ifdef __cplusplus | ||
6567 | extern "C" | ||
6568 | #endif | ||
6569 | /* We use char because int might match the return type of a gcc2 | ||
6570 | builtin and then its argument prototype would still apply. */ | ||
6571 | char strftime (); | ||
6572 | int | ||
6573 | main () | ||
6574 | { | ||
6575 | strftime (); | ||
6576 | ; | ||
6577 | return 0; | ||
6578 | } | ||
6579 | _ACEOF | ||
6580 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6581 | if { (eval echo "$as_me:6581: \"$ac_link\"") >&5 | ||
6582 | (eval $ac_link) 2>&5 | ||
6583 | ac_status=$? | ||
6584 | echo "$as_me:6584: \$? = $ac_status" >&5 | ||
6585 | (exit $ac_status); } && | ||
6586 | { ac_try='test -s conftest$ac_exeext' | ||
6587 | { (eval echo "$as_me:6587: \"$ac_try\"") >&5 | ||
6588 | (eval $ac_try) 2>&5 | ||
6589 | ac_status=$? | ||
6590 | echo "$as_me:6590: \$? = $ac_status" >&5 | ||
6591 | (exit $ac_status); }; }; then | ||
6592 | ac_cv_lib_intl_strftime=yes | ||
6593 | else | ||
6594 | echo "$as_me: failed program was:" >&5 | ||
6595 | cat conftest.$ac_ext >&5 | ||
6596 | ac_cv_lib_intl_strftime=no | ||
6597 | fi | ||
6598 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6599 | LIBS=$ac_check_lib_save_LIBS | ||
6600 | fi | ||
6601 | echo "$as_me:6601: result: $ac_cv_lib_intl_strftime" >&5 | ||
6602 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
6603 | if test $ac_cv_lib_intl_strftime = yes; then | ||
6604 | cat >>confdefs.h <<\EOF | ||
6605 | #define HAVE_STRFTIME 1 | ||
6606 | EOF | ||
6607 | |||
6608 | LIBS="-lintl $LIBS" | ||
6609 | fi | ||
6610 | |||
6611 | fi | ||
6612 | done | ||
6613 | |||
6614 | # Check for ALTDIRFUNC glob() extension | ||
6615 | echo "$as_me:6615: checking for GLOB_ALTDIRFUNC support" >&5 | ||
6616 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
6617 | cat >conftest.$ac_ext <<_ACEOF | ||
6618 | #line 6618 "configure" | ||
6619 | #include "confdefs.h" | ||
6620 | |||
6621 | #include <glob.h> | ||
6622 | #ifdef GLOB_ALTDIRFUNC | ||
6623 | FOUNDIT | ||
6624 | #endif | ||
6625 | |||
6626 | _ACEOF | ||
6627 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6628 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6629 | |||
6630 | cat >>confdefs.h <<\EOF | ||
6631 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
6632 | EOF | ||
6633 | |||
6634 | echo "$as_me:6634: result: yes" >&5 | ||
6635 | echo "${ECHO_T}yes" >&6 | ||
6636 | |||
6637 | else | ||
6638 | |||
6639 | echo "$as_me:6639: result: no" >&5 | ||
6640 | echo "${ECHO_T}no" >&6 | ||
6641 | |||
6642 | fi | ||
6643 | rm -f conftest* | ||
6644 | |||
6645 | # Check for g.gl_matchc glob() extension | ||
6646 | echo "$as_me:6646: checking for gl_matchc field in glob_t" >&5 | ||
6647 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
6648 | cat >conftest.$ac_ext <<_ACEOF | ||
6649 | #line 6649 "configure" | ||
6650 | #include "confdefs.h" | ||
6651 | |||
6652 | #include <glob.h> | ||
6653 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
6654 | |||
6655 | _ACEOF | ||
6656 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6657 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6658 | |||
6659 | cat >>confdefs.h <<\EOF | ||
6660 | #define GLOB_HAS_GL_MATCHC 1 | ||
6661 | EOF | ||
6662 | |||
6663 | echo "$as_me:6663: result: yes" >&5 | ||
6664 | echo "${ECHO_T}yes" >&6 | ||
6665 | |||
6666 | else | ||
6667 | |||
6668 | echo "$as_me:6668: result: no" >&5 | ||
6669 | echo "${ECHO_T}no" >&6 | ||
6670 | |||
6671 | fi | ||
6672 | rm -f conftest* | ||
6673 | |||
6674 | echo "$as_me:6674: checking whether struct dirent allocates space for d_name" >&5 | ||
6675 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
6676 | if test "$cross_compiling" = yes; then | ||
6677 | { { echo "$as_me:6677: error: cannot run test program while cross compiling" >&5 | ||
6678 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6679 | { (exit 1); exit 1; }; } | ||
6680 | else | ||
6681 | cat >conftest.$ac_ext <<_ACEOF | ||
6682 | #line 6682 "configure" | ||
6683 | #include "confdefs.h" | ||
6684 | |||
6685 | #include <sys/types.h> | ||
6686 | #include <dirent.h> | ||
6687 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
6688 | |||
6689 | _ACEOF | ||
6690 | rm -f conftest$ac_exeext | ||
6691 | if { (eval echo "$as_me:6691: \"$ac_link\"") >&5 | ||
6692 | (eval $ac_link) 2>&5 | ||
6693 | ac_status=$? | ||
6694 | echo "$as_me:6694: \$? = $ac_status" >&5 | ||
6695 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6696 | { (eval echo "$as_me:6696: \"$ac_try\"") >&5 | ||
6697 | (eval $ac_try) 2>&5 | ||
6698 | ac_status=$? | ||
6699 | echo "$as_me:6699: \$? = $ac_status" >&5 | ||
6700 | (exit $ac_status); }; }; then | ||
6701 | echo "$as_me:6701: result: yes" >&5 | ||
6702 | echo "${ECHO_T}yes" >&6 | ||
6703 | else | ||
6704 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6705 | echo "$as_me: failed program was:" >&5 | ||
6706 | cat conftest.$ac_ext >&5 | ||
6707 | |||
6708 | echo "$as_me:6708: result: no" >&5 | ||
6709 | echo "${ECHO_T}no" >&6 | ||
6710 | cat >>confdefs.h <<\EOF | ||
6711 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
6712 | EOF | ||
6713 | |||
6714 | fi | ||
6715 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6716 | fi | ||
6717 | |||
6718 | # Check whether user wants S/Key support | ||
6719 | SKEY_MSG="no" | ||
6720 | |||
6721 | # Check whether --with-skey or --without-skey was given. | ||
6722 | if test "${with_skey+set}" = set; then | ||
6723 | withval="$with_skey" | ||
6724 | |||
6725 | if test "x$withval" != "xno" ; then | ||
6726 | |||
6727 | if test "x$withval" != "xyes" ; then | ||
6728 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
6729 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
6730 | fi | ||
6731 | |||
6732 | cat >>confdefs.h <<\EOF | ||
6733 | #define SKEY 1 | ||
6734 | EOF | ||
6735 | |||
6736 | LIBS="-lskey $LIBS" | ||
6737 | SKEY_MSG="yes" | ||
6738 | |||
6739 | echo "$as_me:6739: checking for s/key support" >&5 | ||
6740 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
6741 | if test "$cross_compiling" = yes; then | ||
6742 | { { echo "$as_me:6742: error: cannot run test program while cross compiling" >&5 | ||
6743 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6744 | { (exit 1); exit 1; }; } | ||
6745 | else | ||
6746 | cat >conftest.$ac_ext <<_ACEOF | ||
6747 | #line 6747 "configure" | ||
6748 | #include "confdefs.h" | ||
6749 | |||
6750 | #include <stdio.h> | ||
6751 | #include <skey.h> | ||
6752 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
6753 | |||
6754 | _ACEOF | ||
6755 | rm -f conftest$ac_exeext | ||
6756 | if { (eval echo "$as_me:6756: \"$ac_link\"") >&5 | ||
6757 | (eval $ac_link) 2>&5 | ||
6758 | ac_status=$? | ||
6759 | echo "$as_me:6759: \$? = $ac_status" >&5 | ||
6760 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6761 | { (eval echo "$as_me:6761: \"$ac_try\"") >&5 | ||
6762 | (eval $ac_try) 2>&5 | ||
6763 | ac_status=$? | ||
6764 | echo "$as_me:6764: \$? = $ac_status" >&5 | ||
6765 | (exit $ac_status); }; }; then | ||
6766 | echo "$as_me:6766: result: yes" >&5 | ||
6767 | echo "${ECHO_T}yes" >&6 | ||
6768 | else | ||
6769 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6770 | echo "$as_me: failed program was:" >&5 | ||
6771 | cat conftest.$ac_ext >&5 | ||
6772 | |||
6773 | echo "$as_me:6773: result: no" >&5 | ||
6774 | echo "${ECHO_T}no" >&6 | ||
6775 | { { echo "$as_me:6775: error: ** Incomplete or missing s/key libraries." >&5 | ||
6776 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
6777 | { (exit 1); exit 1; }; } | ||
6778 | |||
6779 | fi | ||
6780 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6781 | fi | ||
6782 | echo "$as_me:6782: checking if skeychallenge takes 4 arguments" >&5 | ||
6783 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6 | ||
6784 | cat >conftest.$ac_ext <<_ACEOF | ||
6785 | #line 6785 "configure" | ||
6786 | #include "confdefs.h" | ||
6787 | #include <stdio.h> | ||
6788 | #include <skey.h> | ||
6789 | int | ||
6790 | main () | ||
6791 | { | ||
6792 | (void)skeychallenge(NULL,"name","",0); | ||
6793 | ; | ||
6794 | return 0; | ||
6795 | } | ||
6796 | _ACEOF | ||
6797 | rm -f conftest.$ac_objext | ||
6798 | if { (eval echo "$as_me:6798: \"$ac_compile\"") >&5 | ||
6799 | (eval $ac_compile) 2>&5 | ||
6800 | ac_status=$? | ||
6801 | echo "$as_me:6801: \$? = $ac_status" >&5 | ||
6802 | (exit $ac_status); } && | ||
6803 | { ac_try='test -s conftest.$ac_objext' | ||
6804 | { (eval echo "$as_me:6804: \"$ac_try\"") >&5 | ||
6805 | (eval $ac_try) 2>&5 | ||
6806 | ac_status=$? | ||
6807 | echo "$as_me:6807: \$? = $ac_status" >&5 | ||
6808 | (exit $ac_status); }; }; then | ||
6809 | echo "$as_me:6809: result: yes" >&5 | ||
6810 | echo "${ECHO_T}yes" >&6 | ||
6811 | cat >>confdefs.h <<\EOF | ||
6812 | #define SKEYCHALLENGE_4ARG 1 | ||
6813 | EOF | ||
6814 | |||
6815 | else | ||
6816 | echo "$as_me: failed program was:" >&5 | ||
6817 | cat conftest.$ac_ext >&5 | ||
6818 | echo "$as_me:6818: result: no" >&5 | ||
6819 | echo "${ECHO_T}no" >&6 | ||
6820 | |||
6821 | fi | ||
6822 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
6823 | fi | ||
6824 | |||
6825 | fi; | ||
6826 | |||
6827 | # Check whether user wants TCP wrappers support | ||
6828 | TCPW_MSG="no" | ||
6829 | |||
6830 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
6831 | if test "${with_tcp_wrappers+set}" = set; then | ||
6832 | withval="$with_tcp_wrappers" | ||
6833 | |||
6834 | if test "x$withval" != "xno" ; then | ||
6835 | saved_LIBS="$LIBS" | ||
6836 | saved_LDFLAGS="$LDFLAGS" | ||
6837 | saved_CPPFLAGS="$CPPFLAGS" | ||
6838 | if test -n "${withval}" -a "${withval}" != "yes"; then | ||
6839 | if test -d "${withval}/lib"; then | ||
6840 | if test -n "${need_dash_r}"; then | ||
6841 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
6842 | else | ||
6843 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
6844 | fi | ||
6845 | else | ||
6846 | if test -n "${need_dash_r}"; then | ||
6847 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
6848 | else | ||
6849 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
6850 | fi | ||
6851 | fi | ||
6852 | if test -d "${withval}/include"; then | ||
6853 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
6854 | else | ||
6855 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
6856 | fi | ||
6857 | fi | ||
6858 | LIBWRAP="-lwrap" | ||
6859 | LIBS="$LIBWRAP $LIBS" | ||
6860 | echo "$as_me:6860: checking for libwrap" >&5 | ||
6861 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
6862 | cat >conftest.$ac_ext <<_ACEOF | ||
6863 | #line 6863 "configure" | ||
6864 | #include "confdefs.h" | ||
6865 | |||
6866 | #include <sys/types.h> | ||
6867 | #include <sys/socket.h> | ||
6868 | #include <netinet/in.h> | ||
6869 | #include <tcpd.h> | ||
6870 | int deny_severity = 0, allow_severity = 0; | ||
6871 | |||
6872 | int | ||
6873 | main () | ||
6874 | { | ||
6875 | hosts_access(0); | ||
6876 | ; | ||
6877 | return 0; | ||
6878 | } | ||
6879 | _ACEOF | ||
6880 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6881 | if { (eval echo "$as_me:6881: \"$ac_link\"") >&5 | ||
6882 | (eval $ac_link) 2>&5 | ||
6883 | ac_status=$? | ||
6884 | echo "$as_me:6884: \$? = $ac_status" >&5 | ||
6885 | (exit $ac_status); } && | ||
6886 | { ac_try='test -s conftest$ac_exeext' | ||
6887 | { (eval echo "$as_me:6887: \"$ac_try\"") >&5 | ||
6888 | (eval $ac_try) 2>&5 | ||
6889 | ac_status=$? | ||
6890 | echo "$as_me:6890: \$? = $ac_status" >&5 | ||
6891 | (exit $ac_status); }; }; then | ||
6892 | |||
6893 | echo "$as_me:6893: result: yes" >&5 | ||
6894 | echo "${ECHO_T}yes" >&6 | ||
6895 | cat >>confdefs.h <<\EOF | ||
6896 | #define LIBWRAP 1 | ||
6897 | EOF | ||
6898 | |||
6899 | TCPW_MSG="yes" | ||
6900 | |||
6901 | else | ||
6902 | echo "$as_me: failed program was:" >&5 | ||
6903 | cat conftest.$ac_ext >&5 | ||
6904 | |||
6905 | { { echo "$as_me:6905: error: *** libwrap missing" >&5 | ||
6906 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
6907 | { (exit 1); exit 1; }; } | ||
6908 | |||
6909 | fi | ||
6910 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6911 | LIBS="$saved_LIBS" | ||
6912 | fi | ||
6913 | |||
6914 | fi; | ||
6915 | |||
6916 | for ac_func in \ | ||
6917 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton \ | ||
6918 | bcopy bindresvport_sa clock fchmod fchown freeaddrinfo futimes \ | ||
6919 | getaddrinfo getcwd getgrouplist getnameinfo getopt \ | ||
6920 | getpeereid _getpty getrlimit getttyent glob inet_aton \ | ||
6921 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
6922 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ | ||
6923 | pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \ | ||
6924 | setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ | ||
6925 | setproctitle setregid setreuid setrlimit \ | ||
6926 | setsid setvbuf sigaction sigvec snprintf socketpair strerror \ | ||
6927 | strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \ | ||
6928 | truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \ | ||
6929 | |||
6930 | do | ||
6931 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6932 | echo "$as_me:6932: checking for $ac_func" >&5 | ||
6933 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6934 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6936 | else | ||
6937 | cat >conftest.$ac_ext <<_ACEOF | ||
6938 | #line 6938 "configure" | ||
6939 | #include "confdefs.h" | ||
6940 | /* System header to define __stub macros and hopefully few prototypes, | ||
6941 | which can conflict with char $ac_func (); below. */ | ||
6942 | #include <assert.h> | ||
6943 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6944 | #ifdef __cplusplus | ||
6945 | extern "C" | ||
6946 | #endif | ||
6947 | /* We use char because int might match the return type of a gcc2 | ||
6948 | builtin and then its argument prototype would still apply. */ | ||
6949 | char $ac_func (); | ||
6950 | char (*f) (); | ||
6951 | |||
6952 | int | ||
6953 | main () | ||
6954 | { | ||
6955 | /* The GNU C library defines this for functions which it implements | ||
6956 | to always fail with ENOSYS. Some functions are actually named | ||
6957 | something starting with __ and the normal name is an alias. */ | ||
6958 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6959 | choke me | ||
6960 | #else | ||
6961 | f = $ac_func; | ||
6962 | #endif | ||
6963 | |||
6964 | ; | ||
6965 | return 0; | ||
6966 | } | ||
6967 | _ACEOF | ||
6968 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6969 | if { (eval echo "$as_me:6969: \"$ac_link\"") >&5 | ||
6970 | (eval $ac_link) 2>&5 | ||
6971 | ac_status=$? | ||
6972 | echo "$as_me:6972: \$? = $ac_status" >&5 | ||
6973 | (exit $ac_status); } && | ||
6974 | { ac_try='test -s conftest$ac_exeext' | ||
6975 | { (eval echo "$as_me:6975: \"$ac_try\"") >&5 | ||
6976 | (eval $ac_try) 2>&5 | ||
6977 | ac_status=$? | ||
6978 | echo "$as_me:6978: \$? = $ac_status" >&5 | ||
6979 | (exit $ac_status); }; }; then | ||
6980 | eval "$as_ac_var=yes" | ||
6981 | else | ||
6982 | echo "$as_me: failed program was:" >&5 | ||
6983 | cat conftest.$ac_ext >&5 | ||
6984 | eval "$as_ac_var=no" | ||
6985 | fi | ||
6986 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6987 | fi | ||
6988 | echo "$as_me:6988: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6989 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6990 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6991 | cat >>confdefs.h <<EOF | ||
6992 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6993 | EOF | ||
6994 | |||
6995 | fi | ||
6996 | done | ||
6997 | |||
6998 | # IRIX has a const char return value for gai_strerror() | ||
6999 | |||
7000 | for ac_func in gai_strerror | ||
7001 | do | ||
7002 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7003 | echo "$as_me:7003: checking for $ac_func" >&5 | ||
7004 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7005 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7007 | else | ||
7008 | cat >conftest.$ac_ext <<_ACEOF | ||
7009 | #line 7009 "configure" | ||
7010 | #include "confdefs.h" | ||
7011 | /* System header to define __stub macros and hopefully few prototypes, | ||
7012 | which can conflict with char $ac_func (); below. */ | ||
7013 | #include <assert.h> | ||
7014 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7015 | #ifdef __cplusplus | ||
7016 | extern "C" | ||
7017 | #endif | ||
7018 | /* We use char because int might match the return type of a gcc2 | ||
7019 | builtin and then its argument prototype would still apply. */ | ||
7020 | char $ac_func (); | ||
7021 | char (*f) (); | ||
7022 | |||
7023 | int | ||
7024 | main () | ||
7025 | { | ||
7026 | /* The GNU C library defines this for functions which it implements | ||
7027 | to always fail with ENOSYS. Some functions are actually named | ||
7028 | something starting with __ and the normal name is an alias. */ | ||
7029 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7030 | choke me | ||
7031 | #else | ||
7032 | f = $ac_func; | ||
7033 | #endif | ||
7034 | |||
7035 | ; | ||
7036 | return 0; | ||
7037 | } | ||
7038 | _ACEOF | ||
7039 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7040 | if { (eval echo "$as_me:7040: \"$ac_link\"") >&5 | ||
7041 | (eval $ac_link) 2>&5 | ||
7042 | ac_status=$? | ||
7043 | echo "$as_me:7043: \$? = $ac_status" >&5 | ||
7044 | (exit $ac_status); } && | ||
7045 | { ac_try='test -s conftest$ac_exeext' | ||
7046 | { (eval echo "$as_me:7046: \"$ac_try\"") >&5 | ||
7047 | (eval $ac_try) 2>&5 | ||
7048 | ac_status=$? | ||
7049 | echo "$as_me:7049: \$? = $ac_status" >&5 | ||
7050 | (exit $ac_status); }; }; then | ||
7051 | eval "$as_ac_var=yes" | ||
7052 | else | ||
7053 | echo "$as_me: failed program was:" >&5 | ||
7054 | cat conftest.$ac_ext >&5 | ||
7055 | eval "$as_ac_var=no" | ||
7056 | fi | ||
7057 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7058 | fi | ||
7059 | echo "$as_me:7059: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7060 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7061 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7062 | cat >>confdefs.h <<EOF | ||
7063 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7064 | EOF | ||
7065 | |||
7066 | cat >>confdefs.h <<\EOF | ||
7067 | #define HAVE_GAI_STRERROR 1 | ||
7068 | EOF | ||
7069 | |||
7070 | cat >conftest.$ac_ext <<_ACEOF | ||
7071 | #line 7071 "configure" | ||
7072 | #include "confdefs.h" | ||
7073 | |||
7074 | #include <sys/types.h> | ||
7075 | #include <sys/socket.h> | ||
7076 | #include <netdb.h> | ||
7077 | |||
7078 | const char *gai_strerror(int); | ||
7079 | int | ||
7080 | main () | ||
7081 | { | ||
7082 | |||
7083 | char *str; | ||
7084 | |||
7085 | str = gai_strerror(0); | ||
7086 | ; | ||
7087 | return 0; | ||
7088 | } | ||
7089 | _ACEOF | ||
7090 | rm -f conftest.$ac_objext | ||
7091 | if { (eval echo "$as_me:7091: \"$ac_compile\"") >&5 | ||
7092 | (eval $ac_compile) 2>&5 | ||
7093 | ac_status=$? | ||
7094 | echo "$as_me:7094: \$? = $ac_status" >&5 | ||
7095 | (exit $ac_status); } && | ||
7096 | { ac_try='test -s conftest.$ac_objext' | ||
7097 | { (eval echo "$as_me:7097: \"$ac_try\"") >&5 | ||
7098 | (eval $ac_try) 2>&5 | ||
7099 | ac_status=$? | ||
7100 | echo "$as_me:7100: \$? = $ac_status" >&5 | ||
7101 | (exit $ac_status); }; }; then | ||
7102 | |||
7103 | cat >>confdefs.h <<\EOF | ||
7104 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
7105 | EOF | ||
7106 | |||
7107 | else | ||
7108 | echo "$as_me: failed program was:" >&5 | ||
7109 | cat conftest.$ac_ext >&5 | ||
7110 | fi | ||
7111 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7112 | fi | ||
7113 | done | ||
7114 | |||
7115 | echo "$as_me:7115: checking for library containing nanosleep" >&5 | ||
7116 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
7117 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
7118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7119 | else | ||
7120 | ac_func_search_save_LIBS=$LIBS | ||
7121 | ac_cv_search_nanosleep=no | ||
7122 | cat >conftest.$ac_ext <<_ACEOF | ||
7123 | #line 7123 "configure" | ||
7124 | #include "confdefs.h" | ||
7125 | |||
7126 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7127 | #ifdef __cplusplus | ||
7128 | extern "C" | ||
7129 | #endif | ||
7130 | /* We use char because int might match the return type of a gcc2 | ||
7131 | builtin and then its argument prototype would still apply. */ | ||
7132 | char nanosleep (); | ||
7133 | int | ||
7134 | main () | ||
7135 | { | ||
7136 | nanosleep (); | ||
7137 | ; | ||
7138 | return 0; | ||
7139 | } | ||
7140 | _ACEOF | ||
7141 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7142 | if { (eval echo "$as_me:7142: \"$ac_link\"") >&5 | ||
7143 | (eval $ac_link) 2>&5 | ||
7144 | ac_status=$? | ||
7145 | echo "$as_me:7145: \$? = $ac_status" >&5 | ||
7146 | (exit $ac_status); } && | ||
7147 | { ac_try='test -s conftest$ac_exeext' | ||
7148 | { (eval echo "$as_me:7148: \"$ac_try\"") >&5 | ||
7149 | (eval $ac_try) 2>&5 | ||
7150 | ac_status=$? | ||
7151 | echo "$as_me:7151: \$? = $ac_status" >&5 | ||
7152 | (exit $ac_status); }; }; then | ||
7153 | ac_cv_search_nanosleep="none required" | ||
7154 | else | ||
7155 | echo "$as_me: failed program was:" >&5 | ||
7156 | cat conftest.$ac_ext >&5 | ||
7157 | fi | ||
7158 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7159 | if test "$ac_cv_search_nanosleep" = no; then | ||
7160 | for ac_lib in rt posix4; do | ||
7161 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
7162 | cat >conftest.$ac_ext <<_ACEOF | ||
7163 | #line 7163 "configure" | ||
7164 | #include "confdefs.h" | ||
7165 | |||
7166 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7167 | #ifdef __cplusplus | ||
7168 | extern "C" | ||
7169 | #endif | ||
7170 | /* We use char because int might match the return type of a gcc2 | ||
7171 | builtin and then its argument prototype would still apply. */ | ||
7172 | char nanosleep (); | ||
7173 | int | ||
7174 | main () | ||
7175 | { | ||
7176 | nanosleep (); | ||
7177 | ; | ||
7178 | return 0; | ||
7179 | } | ||
7180 | _ACEOF | ||
7181 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7182 | if { (eval echo "$as_me:7182: \"$ac_link\"") >&5 | ||
7183 | (eval $ac_link) 2>&5 | ||
7184 | ac_status=$? | ||
7185 | echo "$as_me:7185: \$? = $ac_status" >&5 | ||
7186 | (exit $ac_status); } && | ||
7187 | { ac_try='test -s conftest$ac_exeext' | ||
7188 | { (eval echo "$as_me:7188: \"$ac_try\"") >&5 | ||
7189 | (eval $ac_try) 2>&5 | ||
7190 | ac_status=$? | ||
7191 | echo "$as_me:7191: \$? = $ac_status" >&5 | ||
7192 | (exit $ac_status); }; }; then | ||
7193 | ac_cv_search_nanosleep="-l$ac_lib" | ||
7194 | break | ||
7195 | else | ||
7196 | echo "$as_me: failed program was:" >&5 | ||
7197 | cat conftest.$ac_ext >&5 | ||
7198 | fi | ||
7199 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7200 | done | ||
7201 | fi | ||
7202 | LIBS=$ac_func_search_save_LIBS | ||
7203 | fi | ||
7204 | echo "$as_me:7204: result: $ac_cv_search_nanosleep" >&5 | ||
7205 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
7206 | if test "$ac_cv_search_nanosleep" != no; then | ||
7207 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
7208 | cat >>confdefs.h <<\EOF | ||
7209 | #define HAVE_NANOSLEEP 1 | ||
7210 | EOF | ||
7211 | |||
7212 | fi | ||
7213 | |||
7214 | echo "$as_me:7214: checking for ANSI C header files" >&5 | ||
7215 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
7216 | if test "${ac_cv_header_stdc+set}" = set; then | ||
7217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7218 | else | ||
7219 | cat >conftest.$ac_ext <<_ACEOF | ||
7220 | #line 7220 "configure" | ||
7221 | #include "confdefs.h" | ||
7222 | #include <stdlib.h> | ||
7223 | #include <stdarg.h> | ||
7224 | #include <string.h> | ||
7225 | #include <float.h> | ||
7226 | |||
7227 | _ACEOF | ||
7228 | if { (eval echo "$as_me:7228: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7229 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7230 | ac_status=$? | ||
7231 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
7232 | rm -f conftest.er1 | ||
7233 | cat conftest.err >&5 | ||
7234 | echo "$as_me:7234: \$? = $ac_status" >&5 | ||
7235 | (exit $ac_status); } >/dev/null; then | ||
7236 | if test -s conftest.err; then | ||
7237 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7238 | else | ||
7239 | ac_cpp_err= | ||
7240 | fi | ||
7241 | else | ||
7242 | ac_cpp_err=yes | ||
7243 | fi | ||
7244 | if test -z "$ac_cpp_err"; then | ||
7245 | ac_cv_header_stdc=yes | ||
7246 | else | ||
7247 | echo "$as_me: failed program was:" >&5 | ||
7248 | cat conftest.$ac_ext >&5 | ||
7249 | ac_cv_header_stdc=no | ||
7250 | fi | ||
7251 | rm -f conftest.err conftest.$ac_ext | ||
7252 | |||
7253 | if test $ac_cv_header_stdc = yes; then | ||
7254 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
7255 | cat >conftest.$ac_ext <<_ACEOF | ||
7256 | #line 7256 "configure" | ||
7257 | #include "confdefs.h" | ||
7258 | #include <string.h> | ||
7259 | |||
7260 | _ACEOF | ||
7261 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
7262 | egrep "memchr" >/dev/null 2>&1; then | ||
7263 | : | ||
7264 | else | ||
7265 | ac_cv_header_stdc=no | ||
7266 | fi | ||
7267 | rm -f conftest* | ||
7268 | |||
7269 | fi | ||
7270 | |||
7271 | if test $ac_cv_header_stdc = yes; then | ||
7272 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
7273 | cat >conftest.$ac_ext <<_ACEOF | ||
7274 | #line 7274 "configure" | ||
7275 | #include "confdefs.h" | ||
7276 | #include <stdlib.h> | ||
7277 | |||
7278 | _ACEOF | ||
7279 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
7280 | egrep "free" >/dev/null 2>&1; then | ||
7281 | : | ||
7282 | else | ||
7283 | ac_cv_header_stdc=no | ||
7284 | fi | ||
7285 | rm -f conftest* | ||
7286 | |||
7287 | fi | ||
7288 | |||
7289 | if test $ac_cv_header_stdc = yes; then | ||
7290 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
7291 | if test "$cross_compiling" = yes; then | ||
7292 | : | ||
7293 | else | ||
7294 | cat >conftest.$ac_ext <<_ACEOF | ||
7295 | #line 7295 "configure" | ||
7296 | #include "confdefs.h" | ||
7297 | #include <ctype.h> | ||
7298 | #if ((' ' & 0x0FF) == 0x020) | ||
7299 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
7300 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
7301 | #else | ||
7302 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | ||
7303 | || ('j' <= (c) && (c) <= 'r') \ | ||
7304 | || ('s' <= (c) && (c) <= 'z')) | ||
7305 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
7306 | #endif | ||
7307 | |||
7308 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
7309 | int | ||
7310 | main () | ||
7311 | { | ||
7312 | int i; | ||
7313 | for (i = 0; i < 256; i++) | ||
7314 | if (XOR (islower (i), ISLOWER (i)) | ||
7315 | || toupper (i) != TOUPPER (i)) | ||
7316 | exit(2); | ||
7317 | exit (0); | ||
7318 | } | ||
7319 | _ACEOF | ||
7320 | rm -f conftest$ac_exeext | ||
7321 | if { (eval echo "$as_me:7321: \"$ac_link\"") >&5 | ||
7322 | (eval $ac_link) 2>&5 | ||
7323 | ac_status=$? | ||
7324 | echo "$as_me:7324: \$? = $ac_status" >&5 | ||
7325 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7326 | { (eval echo "$as_me:7326: \"$ac_try\"") >&5 | ||
7327 | (eval $ac_try) 2>&5 | ||
7328 | ac_status=$? | ||
7329 | echo "$as_me:7329: \$? = $ac_status" >&5 | ||
7330 | (exit $ac_status); }; }; then | ||
7331 | : | ||
7332 | else | ||
7333 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7334 | echo "$as_me: failed program was:" >&5 | ||
7335 | cat conftest.$ac_ext >&5 | ||
7336 | ac_cv_header_stdc=no | ||
7337 | fi | ||
7338 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7339 | fi | ||
7340 | fi | ||
7341 | fi | ||
7342 | echo "$as_me:7342: result: $ac_cv_header_stdc" >&5 | ||
7343 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
7344 | if test $ac_cv_header_stdc = yes; then | ||
7345 | |||
7346 | cat >>confdefs.h <<\EOF | ||
7347 | #define STDC_HEADERS 1 | ||
7348 | EOF | ||
7349 | |||
7350 | fi | ||
7351 | |||
7352 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
7353 | |||
7354 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
7355 | inttypes.h stdint.h unistd.h | ||
7356 | do | ||
7357 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7358 | echo "$as_me:7358: checking for $ac_header" >&5 | ||
7359 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7362 | else | ||
7363 | cat >conftest.$ac_ext <<_ACEOF | ||
7364 | #line 7364 "configure" | ||
7365 | #include "confdefs.h" | ||
7366 | $ac_includes_default | ||
7367 | #include <$ac_header> | ||
7368 | _ACEOF | ||
7369 | rm -f conftest.$ac_objext | ||
7370 | if { (eval echo "$as_me:7370: \"$ac_compile\"") >&5 | ||
7371 | (eval $ac_compile) 2>&5 | ||
7372 | ac_status=$? | ||
7373 | echo "$as_me:7373: \$? = $ac_status" >&5 | ||
7374 | (exit $ac_status); } && | ||
7375 | { ac_try='test -s conftest.$ac_objext' | ||
7376 | { (eval echo "$as_me:7376: \"$ac_try\"") >&5 | ||
7377 | (eval $ac_try) 2>&5 | ||
7378 | ac_status=$? | ||
7379 | echo "$as_me:7379: \$? = $ac_status" >&5 | ||
7380 | (exit $ac_status); }; }; then | ||
7381 | eval "$as_ac_Header=yes" | ||
7382 | else | ||
7383 | echo "$as_me: failed program was:" >&5 | ||
7384 | cat conftest.$ac_ext >&5 | ||
7385 | eval "$as_ac_Header=no" | ||
7386 | fi | ||
7387 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7388 | fi | ||
7389 | echo "$as_me:7389: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7390 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7391 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7392 | cat >>confdefs.h <<EOF | ||
7393 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7394 | EOF | ||
7395 | |||
7396 | fi | ||
7397 | done | ||
7398 | |||
7399 | echo "$as_me:7399: checking whether strsep is declared" >&5 | ||
7400 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
7401 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
7402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7403 | else | ||
7404 | cat >conftest.$ac_ext <<_ACEOF | ||
7405 | #line 7405 "configure" | ||
7406 | #include "confdefs.h" | ||
7407 | $ac_includes_default | ||
7408 | int | ||
7409 | main () | ||
7410 | { | ||
7411 | #ifndef strsep | ||
7412 | char *p = (char *) strsep; | ||
7413 | #endif | ||
7414 | |||
7415 | ; | ||
7416 | return 0; | ||
7417 | } | ||
7418 | _ACEOF | ||
7419 | rm -f conftest.$ac_objext | ||
7420 | if { (eval echo "$as_me:7420: \"$ac_compile\"") >&5 | ||
7421 | (eval $ac_compile) 2>&5 | ||
7422 | ac_status=$? | ||
7423 | echo "$as_me:7423: \$? = $ac_status" >&5 | ||
7424 | (exit $ac_status); } && | ||
7425 | { ac_try='test -s conftest.$ac_objext' | ||
7426 | { (eval echo "$as_me:7426: \"$ac_try\"") >&5 | ||
7427 | (eval $ac_try) 2>&5 | ||
7428 | ac_status=$? | ||
7429 | echo "$as_me:7429: \$? = $ac_status" >&5 | ||
7430 | (exit $ac_status); }; }; then | ||
7431 | ac_cv_have_decl_strsep=yes | ||
7432 | else | ||
7433 | echo "$as_me: failed program was:" >&5 | ||
7434 | cat conftest.$ac_ext >&5 | ||
7435 | ac_cv_have_decl_strsep=no | ||
7436 | fi | ||
7437 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7438 | fi | ||
7439 | echo "$as_me:7439: result: $ac_cv_have_decl_strsep" >&5 | ||
7440 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
7441 | if test $ac_cv_have_decl_strsep = yes; then | ||
7442 | |||
7443 | for ac_func in strsep | ||
7444 | do | ||
7445 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7446 | echo "$as_me:7446: checking for $ac_func" >&5 | ||
7447 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7448 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7450 | else | ||
7451 | cat >conftest.$ac_ext <<_ACEOF | ||
7452 | #line 7452 "configure" | ||
7453 | #include "confdefs.h" | ||
7454 | /* System header to define __stub macros and hopefully few prototypes, | ||
7455 | which can conflict with char $ac_func (); below. */ | ||
7456 | #include <assert.h> | ||
7457 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7458 | #ifdef __cplusplus | ||
7459 | extern "C" | ||
7460 | #endif | ||
7461 | /* We use char because int might match the return type of a gcc2 | ||
7462 | builtin and then its argument prototype would still apply. */ | ||
7463 | char $ac_func (); | ||
7464 | char (*f) (); | ||
7465 | |||
7466 | int | ||
7467 | main () | ||
7468 | { | ||
7469 | /* The GNU C library defines this for functions which it implements | ||
7470 | to always fail with ENOSYS. Some functions are actually named | ||
7471 | something starting with __ and the normal name is an alias. */ | ||
7472 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7473 | choke me | ||
7474 | #else | ||
7475 | f = $ac_func; | ||
7476 | #endif | ||
7477 | |||
7478 | ; | ||
7479 | return 0; | ||
7480 | } | ||
7481 | _ACEOF | ||
7482 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7483 | if { (eval echo "$as_me:7483: \"$ac_link\"") >&5 | ||
7484 | (eval $ac_link) 2>&5 | ||
7485 | ac_status=$? | ||
7486 | echo "$as_me:7486: \$? = $ac_status" >&5 | ||
7487 | (exit $ac_status); } && | ||
7488 | { ac_try='test -s conftest$ac_exeext' | ||
7489 | { (eval echo "$as_me:7489: \"$ac_try\"") >&5 | ||
7490 | (eval $ac_try) 2>&5 | ||
7491 | ac_status=$? | ||
7492 | echo "$as_me:7492: \$? = $ac_status" >&5 | ||
7493 | (exit $ac_status); }; }; then | ||
7494 | eval "$as_ac_var=yes" | ||
7495 | else | ||
7496 | echo "$as_me: failed program was:" >&5 | ||
7497 | cat conftest.$ac_ext >&5 | ||
7498 | eval "$as_ac_var=no" | ||
7499 | fi | ||
7500 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7501 | fi | ||
7502 | echo "$as_me:7502: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7503 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7504 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7505 | cat >>confdefs.h <<EOF | ||
7506 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7507 | EOF | ||
7508 | |||
7509 | fi | ||
7510 | done | ||
7511 | |||
7512 | fi | ||
7513 | |||
7514 | echo "$as_me:7514: checking whether getrusage is declared" >&5 | ||
7515 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6 | ||
7516 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
7517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7518 | else | ||
7519 | cat >conftest.$ac_ext <<_ACEOF | ||
7520 | #line 7520 "configure" | ||
7521 | #include "confdefs.h" | ||
7522 | $ac_includes_default | ||
7523 | int | ||
7524 | main () | ||
7525 | { | ||
7526 | #ifndef getrusage | ||
7527 | char *p = (char *) getrusage; | ||
7528 | #endif | ||
7529 | |||
7530 | ; | ||
7531 | return 0; | ||
7532 | } | ||
7533 | _ACEOF | ||
7534 | rm -f conftest.$ac_objext | ||
7535 | if { (eval echo "$as_me:7535: \"$ac_compile\"") >&5 | ||
7536 | (eval $ac_compile) 2>&5 | ||
7537 | ac_status=$? | ||
7538 | echo "$as_me:7538: \$? = $ac_status" >&5 | ||
7539 | (exit $ac_status); } && | ||
7540 | { ac_try='test -s conftest.$ac_objext' | ||
7541 | { (eval echo "$as_me:7541: \"$ac_try\"") >&5 | ||
7542 | (eval $ac_try) 2>&5 | ||
7543 | ac_status=$? | ||
7544 | echo "$as_me:7544: \$? = $ac_status" >&5 | ||
7545 | (exit $ac_status); }; }; then | ||
7546 | ac_cv_have_decl_getrusage=yes | ||
7547 | else | ||
7548 | echo "$as_me: failed program was:" >&5 | ||
7549 | cat conftest.$ac_ext >&5 | ||
7550 | ac_cv_have_decl_getrusage=no | ||
7551 | fi | ||
7552 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7553 | fi | ||
7554 | echo "$as_me:7554: result: $ac_cv_have_decl_getrusage" >&5 | ||
7555 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6 | ||
7556 | if test $ac_cv_have_decl_getrusage = yes; then | ||
7557 | |||
7558 | for ac_func in getrusage | ||
7559 | do | ||
7560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7561 | echo "$as_me:7561: checking for $ac_func" >&5 | ||
7562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7563 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7565 | else | ||
7566 | cat >conftest.$ac_ext <<_ACEOF | ||
7567 | #line 7567 "configure" | ||
7568 | #include "confdefs.h" | ||
7569 | /* System header to define __stub macros and hopefully few prototypes, | ||
7570 | which can conflict with char $ac_func (); below. */ | ||
7571 | #include <assert.h> | ||
7572 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7573 | #ifdef __cplusplus | ||
7574 | extern "C" | ||
7575 | #endif | ||
7576 | /* We use char because int might match the return type of a gcc2 | ||
7577 | builtin and then its argument prototype would still apply. */ | ||
7578 | char $ac_func (); | ||
7579 | char (*f) (); | ||
7580 | |||
7581 | int | ||
7582 | main () | ||
7583 | { | ||
7584 | /* The GNU C library defines this for functions which it implements | ||
7585 | to always fail with ENOSYS. Some functions are actually named | ||
7586 | something starting with __ and the normal name is an alias. */ | ||
7587 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7588 | choke me | ||
7589 | #else | ||
7590 | f = $ac_func; | ||
7591 | #endif | ||
7592 | |||
7593 | ; | ||
7594 | return 0; | ||
7595 | } | ||
7596 | _ACEOF | ||
7597 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7598 | if { (eval echo "$as_me:7598: \"$ac_link\"") >&5 | ||
7599 | (eval $ac_link) 2>&5 | ||
7600 | ac_status=$? | ||
7601 | echo "$as_me:7601: \$? = $ac_status" >&5 | ||
7602 | (exit $ac_status); } && | ||
7603 | { ac_try='test -s conftest$ac_exeext' | ||
7604 | { (eval echo "$as_me:7604: \"$ac_try\"") >&5 | ||
7605 | (eval $ac_try) 2>&5 | ||
7606 | ac_status=$? | ||
7607 | echo "$as_me:7607: \$? = $ac_status" >&5 | ||
7608 | (exit $ac_status); }; }; then | ||
7609 | eval "$as_ac_var=yes" | ||
7610 | else | ||
7611 | echo "$as_me: failed program was:" >&5 | ||
7612 | cat conftest.$ac_ext >&5 | ||
7613 | eval "$as_ac_var=no" | ||
7614 | fi | ||
7615 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7616 | fi | ||
7617 | echo "$as_me:7617: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7618 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7619 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7620 | cat >>confdefs.h <<EOF | ||
7621 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7622 | EOF | ||
7623 | |||
7624 | fi | ||
7625 | done | ||
7626 | |||
7627 | fi | ||
7628 | |||
7629 | echo "$as_me:7629: checking whether tcsendbreak is declared" >&5 | ||
7630 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6 | ||
7631 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
7632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7633 | else | ||
7634 | cat >conftest.$ac_ext <<_ACEOF | ||
7635 | #line 7635 "configure" | ||
7636 | #include "confdefs.h" | ||
7637 | #include <termios.h> | ||
7638 | |||
7639 | int | ||
7640 | main () | ||
7641 | { | ||
7642 | #ifndef tcsendbreak | ||
7643 | char *p = (char *) tcsendbreak; | ||
7644 | #endif | ||
7645 | |||
7646 | ; | ||
7647 | return 0; | ||
7648 | } | ||
7649 | _ACEOF | ||
7650 | rm -f conftest.$ac_objext | ||
7651 | if { (eval echo "$as_me:7651: \"$ac_compile\"") >&5 | ||
7652 | (eval $ac_compile) 2>&5 | ||
7653 | ac_status=$? | ||
7654 | echo "$as_me:7654: \$? = $ac_status" >&5 | ||
7655 | (exit $ac_status); } && | ||
7656 | { ac_try='test -s conftest.$ac_objext' | ||
7657 | { (eval echo "$as_me:7657: \"$ac_try\"") >&5 | ||
7658 | (eval $ac_try) 2>&5 | ||
7659 | ac_status=$? | ||
7660 | echo "$as_me:7660: \$? = $ac_status" >&5 | ||
7661 | (exit $ac_status); }; }; then | ||
7662 | ac_cv_have_decl_tcsendbreak=yes | ||
7663 | else | ||
7664 | echo "$as_me: failed program was:" >&5 | ||
7665 | cat conftest.$ac_ext >&5 | ||
7666 | ac_cv_have_decl_tcsendbreak=no | ||
7667 | fi | ||
7668 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7669 | fi | ||
7670 | echo "$as_me:7670: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
7671 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6 | ||
7672 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
7673 | cat >>confdefs.h <<\EOF | ||
7674 | #define HAVE_TCSENDBREAK 1 | ||
7675 | EOF | ||
7676 | |||
7677 | else | ||
7678 | |||
7679 | for ac_func in tcsendbreak | ||
7680 | do | ||
7681 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7682 | echo "$as_me:7682: checking for $ac_func" >&5 | ||
7683 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7684 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7686 | else | ||
7687 | cat >conftest.$ac_ext <<_ACEOF | ||
7688 | #line 7688 "configure" | ||
7689 | #include "confdefs.h" | ||
7690 | /* System header to define __stub macros and hopefully few prototypes, | ||
7691 | which can conflict with char $ac_func (); below. */ | ||
7692 | #include <assert.h> | ||
7693 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7694 | #ifdef __cplusplus | ||
7695 | extern "C" | ||
7696 | #endif | ||
7697 | /* We use char because int might match the return type of a gcc2 | ||
7698 | builtin and then its argument prototype would still apply. */ | ||
7699 | char $ac_func (); | ||
7700 | char (*f) (); | ||
7701 | |||
7702 | int | ||
7703 | main () | ||
7704 | { | ||
7705 | /* The GNU C library defines this for functions which it implements | ||
7706 | to always fail with ENOSYS. Some functions are actually named | ||
7707 | something starting with __ and the normal name is an alias. */ | ||
7708 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7709 | choke me | ||
7710 | #else | ||
7711 | f = $ac_func; | ||
7712 | #endif | ||
7713 | |||
7714 | ; | ||
7715 | return 0; | ||
7716 | } | ||
7717 | _ACEOF | ||
7718 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7719 | if { (eval echo "$as_me:7719: \"$ac_link\"") >&5 | ||
7720 | (eval $ac_link) 2>&5 | ||
7721 | ac_status=$? | ||
7722 | echo "$as_me:7722: \$? = $ac_status" >&5 | ||
7723 | (exit $ac_status); } && | ||
7724 | { ac_try='test -s conftest$ac_exeext' | ||
7725 | { (eval echo "$as_me:7725: \"$ac_try\"") >&5 | ||
7726 | (eval $ac_try) 2>&5 | ||
7727 | ac_status=$? | ||
7728 | echo "$as_me:7728: \$? = $ac_status" >&5 | ||
7729 | (exit $ac_status); }; }; then | ||
7730 | eval "$as_ac_var=yes" | ||
7731 | else | ||
7732 | echo "$as_me: failed program was:" >&5 | ||
7733 | cat conftest.$ac_ext >&5 | ||
7734 | eval "$as_ac_var=no" | ||
7735 | fi | ||
7736 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7737 | fi | ||
7738 | echo "$as_me:7738: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7739 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7740 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7741 | cat >>confdefs.h <<EOF | ||
7742 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7743 | EOF | ||
7744 | |||
7745 | fi | ||
7746 | done | ||
7747 | |||
7748 | fi | ||
7749 | |||
7750 | for ac_func in setresuid | ||
7751 | do | ||
7752 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7753 | echo "$as_me:7753: checking for $ac_func" >&5 | ||
7754 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7755 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7757 | else | ||
7758 | cat >conftest.$ac_ext <<_ACEOF | ||
7759 | #line 7759 "configure" | ||
7760 | #include "confdefs.h" | ||
7761 | /* System header to define __stub macros and hopefully few prototypes, | ||
7762 | which can conflict with char $ac_func (); below. */ | ||
7763 | #include <assert.h> | ||
7764 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7765 | #ifdef __cplusplus | ||
7766 | extern "C" | ||
7767 | #endif | ||
7768 | /* We use char because int might match the return type of a gcc2 | ||
7769 | builtin and then its argument prototype would still apply. */ | ||
7770 | char $ac_func (); | ||
7771 | char (*f) (); | ||
7772 | |||
7773 | int | ||
7774 | main () | ||
7775 | { | ||
7776 | /* The GNU C library defines this for functions which it implements | ||
7777 | to always fail with ENOSYS. Some functions are actually named | ||
7778 | something starting with __ and the normal name is an alias. */ | ||
7779 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7780 | choke me | ||
7781 | #else | ||
7782 | f = $ac_func; | ||
7783 | #endif | ||
7784 | |||
7785 | ; | ||
7786 | return 0; | ||
7787 | } | ||
7788 | _ACEOF | ||
7789 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7790 | if { (eval echo "$as_me:7790: \"$ac_link\"") >&5 | ||
7791 | (eval $ac_link) 2>&5 | ||
7792 | ac_status=$? | ||
7793 | echo "$as_me:7793: \$? = $ac_status" >&5 | ||
7794 | (exit $ac_status); } && | ||
7795 | { ac_try='test -s conftest$ac_exeext' | ||
7796 | { (eval echo "$as_me:7796: \"$ac_try\"") >&5 | ||
7797 | (eval $ac_try) 2>&5 | ||
7798 | ac_status=$? | ||
7799 | echo "$as_me:7799: \$? = $ac_status" >&5 | ||
7800 | (exit $ac_status); }; }; then | ||
7801 | eval "$as_ac_var=yes" | ||
7802 | else | ||
7803 | echo "$as_me: failed program was:" >&5 | ||
7804 | cat conftest.$ac_ext >&5 | ||
7805 | eval "$as_ac_var=no" | ||
7806 | fi | ||
7807 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7808 | fi | ||
7809 | echo "$as_me:7809: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7810 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7811 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7812 | cat >>confdefs.h <<EOF | ||
7813 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7814 | EOF | ||
7815 | |||
7816 | echo "$as_me:7816: checking if setresuid seems to work" >&5 | ||
7817 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6 | ||
7818 | if test "$cross_compiling" = yes; then | ||
7819 | { { echo "$as_me:7819: error: cannot run test program while cross compiling" >&5 | ||
7820 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7821 | { (exit 1); exit 1; }; } | ||
7822 | else | ||
7823 | cat >conftest.$ac_ext <<_ACEOF | ||
7824 | #line 7824 "configure" | ||
7825 | #include "confdefs.h" | ||
7826 | |||
7827 | #include <stdlib.h> | ||
7828 | #include <errno.h> | ||
7829 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
7830 | |||
7831 | _ACEOF | ||
7832 | rm -f conftest$ac_exeext | ||
7833 | if { (eval echo "$as_me:7833: \"$ac_link\"") >&5 | ||
7834 | (eval $ac_link) 2>&5 | ||
7835 | ac_status=$? | ||
7836 | echo "$as_me:7836: \$? = $ac_status" >&5 | ||
7837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7838 | { (eval echo "$as_me:7838: \"$ac_try\"") >&5 | ||
7839 | (eval $ac_try) 2>&5 | ||
7840 | ac_status=$? | ||
7841 | echo "$as_me:7841: \$? = $ac_status" >&5 | ||
7842 | (exit $ac_status); }; }; then | ||
7843 | echo "$as_me:7843: result: yes" >&5 | ||
7844 | echo "${ECHO_T}yes" >&6 | ||
7845 | else | ||
7846 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7847 | echo "$as_me: failed program was:" >&5 | ||
7848 | cat conftest.$ac_ext >&5 | ||
7849 | cat >>confdefs.h <<\EOF | ||
7850 | #define BROKEN_SETRESUID 1 | ||
7851 | EOF | ||
7852 | |||
7853 | echo "$as_me:7853: result: not implemented" >&5 | ||
7854 | echo "${ECHO_T}not implemented" >&6 | ||
7855 | |||
7856 | fi | ||
7857 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7858 | fi | ||
7859 | |||
7860 | fi | ||
7861 | done | ||
7862 | |||
7863 | for ac_func in setresgid | ||
7864 | do | ||
7865 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7866 | echo "$as_me:7866: checking for $ac_func" >&5 | ||
7867 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7868 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7870 | else | ||
7871 | cat >conftest.$ac_ext <<_ACEOF | ||
7872 | #line 7872 "configure" | ||
7873 | #include "confdefs.h" | ||
7874 | /* System header to define __stub macros and hopefully few prototypes, | ||
7875 | which can conflict with char $ac_func (); below. */ | ||
7876 | #include <assert.h> | ||
7877 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7878 | #ifdef __cplusplus | ||
7879 | extern "C" | ||
7880 | #endif | ||
7881 | /* We use char because int might match the return type of a gcc2 | ||
7882 | builtin and then its argument prototype would still apply. */ | ||
7883 | char $ac_func (); | ||
7884 | char (*f) (); | ||
7885 | |||
7886 | int | ||
7887 | main () | ||
7888 | { | ||
7889 | /* The GNU C library defines this for functions which it implements | ||
7890 | to always fail with ENOSYS. Some functions are actually named | ||
7891 | something starting with __ and the normal name is an alias. */ | ||
7892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7893 | choke me | ||
7894 | #else | ||
7895 | f = $ac_func; | ||
7896 | #endif | ||
7897 | |||
7898 | ; | ||
7899 | return 0; | ||
7900 | } | ||
7901 | _ACEOF | ||
7902 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7903 | if { (eval echo "$as_me:7903: \"$ac_link\"") >&5 | ||
7904 | (eval $ac_link) 2>&5 | ||
7905 | ac_status=$? | ||
7906 | echo "$as_me:7906: \$? = $ac_status" >&5 | ||
7907 | (exit $ac_status); } && | ||
7908 | { ac_try='test -s conftest$ac_exeext' | ||
7909 | { (eval echo "$as_me:7909: \"$ac_try\"") >&5 | ||
7910 | (eval $ac_try) 2>&5 | ||
7911 | ac_status=$? | ||
7912 | echo "$as_me:7912: \$? = $ac_status" >&5 | ||
7913 | (exit $ac_status); }; }; then | ||
7914 | eval "$as_ac_var=yes" | ||
7915 | else | ||
7916 | echo "$as_me: failed program was:" >&5 | ||
7917 | cat conftest.$ac_ext >&5 | ||
7918 | eval "$as_ac_var=no" | ||
7919 | fi | ||
7920 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7921 | fi | ||
7922 | echo "$as_me:7922: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7923 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7924 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7925 | cat >>confdefs.h <<EOF | ||
7926 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7927 | EOF | ||
7928 | |||
7929 | echo "$as_me:7929: checking if setresgid seems to work" >&5 | ||
7930 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6 | ||
7931 | if test "$cross_compiling" = yes; then | ||
7932 | { { echo "$as_me:7932: error: cannot run test program while cross compiling" >&5 | ||
7933 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7934 | { (exit 1); exit 1; }; } | ||
7935 | else | ||
7936 | cat >conftest.$ac_ext <<_ACEOF | ||
7937 | #line 7937 "configure" | ||
7938 | #include "confdefs.h" | ||
7939 | |||
7940 | #include <stdlib.h> | ||
7941 | #include <errno.h> | ||
7942 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
7943 | |||
7944 | _ACEOF | ||
7945 | rm -f conftest$ac_exeext | ||
7946 | if { (eval echo "$as_me:7946: \"$ac_link\"") >&5 | ||
7947 | (eval $ac_link) 2>&5 | ||
7948 | ac_status=$? | ||
7949 | echo "$as_me:7949: \$? = $ac_status" >&5 | ||
7950 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7951 | { (eval echo "$as_me:7951: \"$ac_try\"") >&5 | ||
7952 | (eval $ac_try) 2>&5 | ||
7953 | ac_status=$? | ||
7954 | echo "$as_me:7954: \$? = $ac_status" >&5 | ||
7955 | (exit $ac_status); }; }; then | ||
7956 | echo "$as_me:7956: result: yes" >&5 | ||
7957 | echo "${ECHO_T}yes" >&6 | ||
7958 | else | ||
7959 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7960 | echo "$as_me: failed program was:" >&5 | ||
7961 | cat conftest.$ac_ext >&5 | ||
7962 | cat >>confdefs.h <<\EOF | ||
7963 | #define BROKEN_SETRESGID 1 | ||
7964 | EOF | ||
7965 | |||
7966 | echo "$as_me:7966: result: not implemented" >&5 | ||
7967 | echo "${ECHO_T}not implemented" >&6 | ||
7968 | |||
7969 | fi | ||
7970 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7971 | fi | ||
7972 | |||
7973 | fi | ||
7974 | done | ||
7975 | |||
7976 | for ac_func in gettimeofday time | ||
7977 | do | ||
7978 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7979 | echo "$as_me:7979: checking for $ac_func" >&5 | ||
7980 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7981 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7983 | else | ||
7984 | cat >conftest.$ac_ext <<_ACEOF | ||
7985 | #line 7985 "configure" | ||
7986 | #include "confdefs.h" | ||
7987 | /* System header to define __stub macros and hopefully few prototypes, | ||
7988 | which can conflict with char $ac_func (); below. */ | ||
7989 | #include <assert.h> | ||
7990 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7991 | #ifdef __cplusplus | ||
7992 | extern "C" | ||
7993 | #endif | ||
7994 | /* We use char because int might match the return type of a gcc2 | ||
7995 | builtin and then its argument prototype would still apply. */ | ||
7996 | char $ac_func (); | ||
7997 | char (*f) (); | ||
7998 | |||
7999 | int | ||
8000 | main () | ||
8001 | { | ||
8002 | /* The GNU C library defines this for functions which it implements | ||
8003 | to always fail with ENOSYS. Some functions are actually named | ||
8004 | something starting with __ and the normal name is an alias. */ | ||
8005 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8006 | choke me | ||
8007 | #else | ||
8008 | f = $ac_func; | ||
8009 | #endif | ||
8010 | |||
8011 | ; | ||
8012 | return 0; | ||
8013 | } | ||
8014 | _ACEOF | ||
8015 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8016 | if { (eval echo "$as_me:8016: \"$ac_link\"") >&5 | ||
8017 | (eval $ac_link) 2>&5 | ||
8018 | ac_status=$? | ||
8019 | echo "$as_me:8019: \$? = $ac_status" >&5 | ||
8020 | (exit $ac_status); } && | ||
8021 | { ac_try='test -s conftest$ac_exeext' | ||
8022 | { (eval echo "$as_me:8022: \"$ac_try\"") >&5 | ||
8023 | (eval $ac_try) 2>&5 | ||
8024 | ac_status=$? | ||
8025 | echo "$as_me:8025: \$? = $ac_status" >&5 | ||
8026 | (exit $ac_status); }; }; then | ||
8027 | eval "$as_ac_var=yes" | ||
8028 | else | ||
8029 | echo "$as_me: failed program was:" >&5 | ||
8030 | cat conftest.$ac_ext >&5 | ||
8031 | eval "$as_ac_var=no" | ||
8032 | fi | ||
8033 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8034 | fi | ||
8035 | echo "$as_me:8035: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8036 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8037 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8038 | cat >>confdefs.h <<EOF | ||
8039 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8040 | EOF | ||
8041 | |||
8042 | fi | ||
8043 | done | ||
8044 | |||
8045 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
8046 | do | ||
8047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8048 | echo "$as_me:8048: checking for $ac_func" >&5 | ||
8049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8050 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8052 | else | ||
8053 | cat >conftest.$ac_ext <<_ACEOF | ||
8054 | #line 8054 "configure" | ||
8055 | #include "confdefs.h" | ||
8056 | /* System header to define __stub macros and hopefully few prototypes, | ||
8057 | which can conflict with char $ac_func (); below. */ | ||
8058 | #include <assert.h> | ||
8059 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8060 | #ifdef __cplusplus | ||
8061 | extern "C" | ||
8062 | #endif | ||
8063 | /* We use char because int might match the return type of a gcc2 | ||
8064 | builtin and then its argument prototype would still apply. */ | ||
8065 | char $ac_func (); | ||
8066 | char (*f) (); | ||
8067 | |||
8068 | int | ||
8069 | main () | ||
8070 | { | ||
8071 | /* The GNU C library defines this for functions which it implements | ||
8072 | to always fail with ENOSYS. Some functions are actually named | ||
8073 | something starting with __ and the normal name is an alias. */ | ||
8074 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8075 | choke me | ||
8076 | #else | ||
8077 | f = $ac_func; | ||
8078 | #endif | ||
8079 | |||
8080 | ; | ||
8081 | return 0; | ||
8082 | } | ||
8083 | _ACEOF | ||
8084 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8085 | if { (eval echo "$as_me:8085: \"$ac_link\"") >&5 | ||
8086 | (eval $ac_link) 2>&5 | ||
8087 | ac_status=$? | ||
8088 | echo "$as_me:8088: \$? = $ac_status" >&5 | ||
8089 | (exit $ac_status); } && | ||
8090 | { ac_try='test -s conftest$ac_exeext' | ||
8091 | { (eval echo "$as_me:8091: \"$ac_try\"") >&5 | ||
8092 | (eval $ac_try) 2>&5 | ||
8093 | ac_status=$? | ||
8094 | echo "$as_me:8094: \$? = $ac_status" >&5 | ||
8095 | (exit $ac_status); }; }; then | ||
8096 | eval "$as_ac_var=yes" | ||
8097 | else | ||
8098 | echo "$as_me: failed program was:" >&5 | ||
8099 | cat conftest.$ac_ext >&5 | ||
8100 | eval "$as_ac_var=no" | ||
8101 | fi | ||
8102 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8103 | fi | ||
8104 | echo "$as_me:8104: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8105 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8106 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8107 | cat >>confdefs.h <<EOF | ||
8108 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8109 | EOF | ||
8110 | |||
8111 | fi | ||
8112 | done | ||
8113 | |||
8114 | for ac_func in utmpname | ||
8115 | do | ||
8116 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8117 | echo "$as_me:8117: checking for $ac_func" >&5 | ||
8118 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8119 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8121 | else | ||
8122 | cat >conftest.$ac_ext <<_ACEOF | ||
8123 | #line 8123 "configure" | ||
8124 | #include "confdefs.h" | ||
8125 | /* System header to define __stub macros and hopefully few prototypes, | ||
8126 | which can conflict with char $ac_func (); below. */ | ||
8127 | #include <assert.h> | ||
8128 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8129 | #ifdef __cplusplus | ||
8130 | extern "C" | ||
8131 | #endif | ||
8132 | /* We use char because int might match the return type of a gcc2 | ||
8133 | builtin and then its argument prototype would still apply. */ | ||
8134 | char $ac_func (); | ||
8135 | char (*f) (); | ||
8136 | |||
8137 | int | ||
8138 | main () | ||
8139 | { | ||
8140 | /* The GNU C library defines this for functions which it implements | ||
8141 | to always fail with ENOSYS. Some functions are actually named | ||
8142 | something starting with __ and the normal name is an alias. */ | ||
8143 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8144 | choke me | ||
8145 | #else | ||
8146 | f = $ac_func; | ||
8147 | #endif | ||
8148 | |||
8149 | ; | ||
8150 | return 0; | ||
8151 | } | ||
8152 | _ACEOF | ||
8153 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8154 | if { (eval echo "$as_me:8154: \"$ac_link\"") >&5 | ||
8155 | (eval $ac_link) 2>&5 | ||
8156 | ac_status=$? | ||
8157 | echo "$as_me:8157: \$? = $ac_status" >&5 | ||
8158 | (exit $ac_status); } && | ||
8159 | { ac_try='test -s conftest$ac_exeext' | ||
8160 | { (eval echo "$as_me:8160: \"$ac_try\"") >&5 | ||
8161 | (eval $ac_try) 2>&5 | ||
8162 | ac_status=$? | ||
8163 | echo "$as_me:8163: \$? = $ac_status" >&5 | ||
8164 | (exit $ac_status); }; }; then | ||
8165 | eval "$as_ac_var=yes" | ||
8166 | else | ||
8167 | echo "$as_me: failed program was:" >&5 | ||
8168 | cat conftest.$ac_ext >&5 | ||
8169 | eval "$as_ac_var=no" | ||
8170 | fi | ||
8171 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8172 | fi | ||
8173 | echo "$as_me:8173: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8174 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8175 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8176 | cat >>confdefs.h <<EOF | ||
8177 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8178 | EOF | ||
8179 | |||
8180 | fi | ||
8181 | done | ||
8182 | |||
8183 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
8184 | do | ||
8185 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8186 | echo "$as_me:8186: checking for $ac_func" >&5 | ||
8187 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8188 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8190 | else | ||
8191 | cat >conftest.$ac_ext <<_ACEOF | ||
8192 | #line 8192 "configure" | ||
8193 | #include "confdefs.h" | ||
8194 | /* System header to define __stub macros and hopefully few prototypes, | ||
8195 | which can conflict with char $ac_func (); below. */ | ||
8196 | #include <assert.h> | ||
8197 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8198 | #ifdef __cplusplus | ||
8199 | extern "C" | ||
8200 | #endif | ||
8201 | /* We use char because int might match the return type of a gcc2 | ||
8202 | builtin and then its argument prototype would still apply. */ | ||
8203 | char $ac_func (); | ||
8204 | char (*f) (); | ||
8205 | |||
8206 | int | ||
8207 | main () | ||
8208 | { | ||
8209 | /* The GNU C library defines this for functions which it implements | ||
8210 | to always fail with ENOSYS. Some functions are actually named | ||
8211 | something starting with __ and the normal name is an alias. */ | ||
8212 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8213 | choke me | ||
8214 | #else | ||
8215 | f = $ac_func; | ||
8216 | #endif | ||
8217 | |||
8218 | ; | ||
8219 | return 0; | ||
8220 | } | ||
8221 | _ACEOF | ||
8222 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8223 | if { (eval echo "$as_me:8223: \"$ac_link\"") >&5 | ||
8224 | (eval $ac_link) 2>&5 | ||
8225 | ac_status=$? | ||
8226 | echo "$as_me:8226: \$? = $ac_status" >&5 | ||
8227 | (exit $ac_status); } && | ||
8228 | { ac_try='test -s conftest$ac_exeext' | ||
8229 | { (eval echo "$as_me:8229: \"$ac_try\"") >&5 | ||
8230 | (eval $ac_try) 2>&5 | ||
8231 | ac_status=$? | ||
8232 | echo "$as_me:8232: \$? = $ac_status" >&5 | ||
8233 | (exit $ac_status); }; }; then | ||
8234 | eval "$as_ac_var=yes" | ||
8235 | else | ||
8236 | echo "$as_me: failed program was:" >&5 | ||
8237 | cat conftest.$ac_ext >&5 | ||
8238 | eval "$as_ac_var=no" | ||
8239 | fi | ||
8240 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8241 | fi | ||
8242 | echo "$as_me:8242: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8243 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8244 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8245 | cat >>confdefs.h <<EOF | ||
8246 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8247 | EOF | ||
8248 | |||
8249 | fi | ||
8250 | done | ||
8251 | |||
8252 | for ac_func in setutxent utmpxname | ||
8253 | do | ||
8254 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8255 | echo "$as_me:8255: checking for $ac_func" >&5 | ||
8256 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8257 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8259 | else | ||
8260 | cat >conftest.$ac_ext <<_ACEOF | ||
8261 | #line 8261 "configure" | ||
8262 | #include "confdefs.h" | ||
8263 | /* System header to define __stub macros and hopefully few prototypes, | ||
8264 | which can conflict with char $ac_func (); below. */ | ||
8265 | #include <assert.h> | ||
8266 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8267 | #ifdef __cplusplus | ||
8268 | extern "C" | ||
8269 | #endif | ||
8270 | /* We use char because int might match the return type of a gcc2 | ||
8271 | builtin and then its argument prototype would still apply. */ | ||
8272 | char $ac_func (); | ||
8273 | char (*f) (); | ||
8274 | |||
8275 | int | ||
8276 | main () | ||
8277 | { | ||
8278 | /* The GNU C library defines this for functions which it implements | ||
8279 | to always fail with ENOSYS. Some functions are actually named | ||
8280 | something starting with __ and the normal name is an alias. */ | ||
8281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8282 | choke me | ||
8283 | #else | ||
8284 | f = $ac_func; | ||
8285 | #endif | ||
8286 | |||
8287 | ; | ||
8288 | return 0; | ||
8289 | } | ||
8290 | _ACEOF | ||
8291 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8292 | if { (eval echo "$as_me:8292: \"$ac_link\"") >&5 | ||
8293 | (eval $ac_link) 2>&5 | ||
8294 | ac_status=$? | ||
8295 | echo "$as_me:8295: \$? = $ac_status" >&5 | ||
8296 | (exit $ac_status); } && | ||
8297 | { ac_try='test -s conftest$ac_exeext' | ||
8298 | { (eval echo "$as_me:8298: \"$ac_try\"") >&5 | ||
8299 | (eval $ac_try) 2>&5 | ||
8300 | ac_status=$? | ||
8301 | echo "$as_me:8301: \$? = $ac_status" >&5 | ||
8302 | (exit $ac_status); }; }; then | ||
8303 | eval "$as_ac_var=yes" | ||
8304 | else | ||
8305 | echo "$as_me: failed program was:" >&5 | ||
8306 | cat conftest.$ac_ext >&5 | ||
8307 | eval "$as_ac_var=no" | ||
8308 | fi | ||
8309 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8310 | fi | ||
8311 | echo "$as_me:8311: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8312 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8313 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8314 | cat >>confdefs.h <<EOF | ||
8315 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8316 | EOF | ||
8317 | |||
8318 | fi | ||
8319 | done | ||
8320 | |||
8321 | echo "$as_me:8321: checking for daemon" >&5 | ||
8322 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
8323 | if test "${ac_cv_func_daemon+set}" = set; then | ||
8324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8325 | else | ||
8326 | cat >conftest.$ac_ext <<_ACEOF | ||
8327 | #line 8327 "configure" | ||
8328 | #include "confdefs.h" | ||
8329 | /* System header to define __stub macros and hopefully few prototypes, | ||
8330 | which can conflict with char daemon (); below. */ | ||
8331 | #include <assert.h> | ||
8332 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8333 | #ifdef __cplusplus | ||
8334 | extern "C" | ||
8335 | #endif | ||
8336 | /* We use char because int might match the return type of a gcc2 | ||
8337 | builtin and then its argument prototype would still apply. */ | ||
8338 | char daemon (); | ||
8339 | char (*f) (); | ||
8340 | |||
8341 | int | ||
8342 | main () | ||
8343 | { | ||
8344 | /* The GNU C library defines this for functions which it implements | ||
8345 | to always fail with ENOSYS. Some functions are actually named | ||
8346 | something starting with __ and the normal name is an alias. */ | ||
8347 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
8348 | choke me | ||
8349 | #else | ||
8350 | f = daemon; | ||
8351 | #endif | ||
8352 | |||
8353 | ; | ||
8354 | return 0; | ||
8355 | } | ||
8356 | _ACEOF | ||
8357 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8358 | if { (eval echo "$as_me:8358: \"$ac_link\"") >&5 | ||
8359 | (eval $ac_link) 2>&5 | ||
8360 | ac_status=$? | ||
8361 | echo "$as_me:8361: \$? = $ac_status" >&5 | ||
8362 | (exit $ac_status); } && | ||
8363 | { ac_try='test -s conftest$ac_exeext' | ||
8364 | { (eval echo "$as_me:8364: \"$ac_try\"") >&5 | ||
8365 | (eval $ac_try) 2>&5 | ||
8366 | ac_status=$? | ||
8367 | echo "$as_me:8367: \$? = $ac_status" >&5 | ||
8368 | (exit $ac_status); }; }; then | ||
8369 | ac_cv_func_daemon=yes | ||
8370 | else | ||
8371 | echo "$as_me: failed program was:" >&5 | ||
8372 | cat conftest.$ac_ext >&5 | ||
8373 | ac_cv_func_daemon=no | ||
8374 | fi | ||
8375 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8376 | fi | ||
8377 | echo "$as_me:8377: result: $ac_cv_func_daemon" >&5 | ||
8378 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
8379 | if test $ac_cv_func_daemon = yes; then | ||
8380 | cat >>confdefs.h <<\EOF | ||
8381 | #define HAVE_DAEMON 1 | ||
8382 | EOF | ||
8383 | |||
8384 | else | ||
8385 | echo "$as_me:8385: checking for daemon in -lbsd" >&5 | ||
8386 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
8387 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
8388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8389 | else | ||
8390 | ac_check_lib_save_LIBS=$LIBS | ||
8391 | LIBS="-lbsd $LIBS" | ||
8392 | cat >conftest.$ac_ext <<_ACEOF | ||
8393 | #line 8393 "configure" | ||
8394 | #include "confdefs.h" | ||
8395 | |||
8396 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8397 | #ifdef __cplusplus | ||
8398 | extern "C" | ||
8399 | #endif | ||
8400 | /* We use char because int might match the return type of a gcc2 | ||
8401 | builtin and then its argument prototype would still apply. */ | ||
8402 | char daemon (); | ||
8403 | int | ||
8404 | main () | ||
8405 | { | ||
8406 | daemon (); | ||
8407 | ; | ||
8408 | return 0; | ||
8409 | } | ||
8410 | _ACEOF | ||
8411 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8412 | if { (eval echo "$as_me:8412: \"$ac_link\"") >&5 | ||
8413 | (eval $ac_link) 2>&5 | ||
8414 | ac_status=$? | ||
8415 | echo "$as_me:8415: \$? = $ac_status" >&5 | ||
8416 | (exit $ac_status); } && | ||
8417 | { ac_try='test -s conftest$ac_exeext' | ||
8418 | { (eval echo "$as_me:8418: \"$ac_try\"") >&5 | ||
8419 | (eval $ac_try) 2>&5 | ||
8420 | ac_status=$? | ||
8421 | echo "$as_me:8421: \$? = $ac_status" >&5 | ||
8422 | (exit $ac_status); }; }; then | ||
8423 | ac_cv_lib_bsd_daemon=yes | ||
8424 | else | ||
8425 | echo "$as_me: failed program was:" >&5 | ||
8426 | cat conftest.$ac_ext >&5 | ||
8427 | ac_cv_lib_bsd_daemon=no | ||
8428 | fi | ||
8429 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8430 | LIBS=$ac_check_lib_save_LIBS | ||
8431 | fi | ||
8432 | echo "$as_me:8432: result: $ac_cv_lib_bsd_daemon" >&5 | ||
8433 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
8434 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
8435 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\EOF | ||
8436 | #define HAVE_DAEMON 1 | ||
8437 | EOF | ||
8438 | |||
8439 | fi | ||
8440 | |||
8441 | fi | ||
8442 | |||
8443 | echo "$as_me:8443: checking for getpagesize" >&5 | ||
8444 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
8445 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
8446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8447 | else | ||
8448 | cat >conftest.$ac_ext <<_ACEOF | ||
8449 | #line 8449 "configure" | ||
8450 | #include "confdefs.h" | ||
8451 | /* System header to define __stub macros and hopefully few prototypes, | ||
8452 | which can conflict with char getpagesize (); below. */ | ||
8453 | #include <assert.h> | ||
8454 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8455 | #ifdef __cplusplus | ||
8456 | extern "C" | ||
8457 | #endif | ||
8458 | /* We use char because int might match the return type of a gcc2 | ||
8459 | builtin and then its argument prototype would still apply. */ | ||
8460 | char getpagesize (); | ||
8461 | char (*f) (); | ||
8462 | |||
8463 | int | ||
8464 | main () | ||
8465 | { | ||
8466 | /* The GNU C library defines this for functions which it implements | ||
8467 | to always fail with ENOSYS. Some functions are actually named | ||
8468 | something starting with __ and the normal name is an alias. */ | ||
8469 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
8470 | choke me | ||
8471 | #else | ||
8472 | f = getpagesize; | ||
8473 | #endif | ||
8474 | |||
8475 | ; | ||
8476 | return 0; | ||
8477 | } | ||
8478 | _ACEOF | ||
8479 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8480 | if { (eval echo "$as_me:8480: \"$ac_link\"") >&5 | ||
8481 | (eval $ac_link) 2>&5 | ||
8482 | ac_status=$? | ||
8483 | echo "$as_me:8483: \$? = $ac_status" >&5 | ||
8484 | (exit $ac_status); } && | ||
8485 | { ac_try='test -s conftest$ac_exeext' | ||
8486 | { (eval echo "$as_me:8486: \"$ac_try\"") >&5 | ||
8487 | (eval $ac_try) 2>&5 | ||
8488 | ac_status=$? | ||
8489 | echo "$as_me:8489: \$? = $ac_status" >&5 | ||
8490 | (exit $ac_status); }; }; then | ||
8491 | ac_cv_func_getpagesize=yes | ||
8492 | else | ||
8493 | echo "$as_me: failed program was:" >&5 | ||
8494 | cat conftest.$ac_ext >&5 | ||
8495 | ac_cv_func_getpagesize=no | ||
8496 | fi | ||
8497 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8498 | fi | ||
8499 | echo "$as_me:8499: result: $ac_cv_func_getpagesize" >&5 | ||
8500 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
8501 | if test $ac_cv_func_getpagesize = yes; then | ||
8502 | cat >>confdefs.h <<\EOF | ||
8503 | #define HAVE_GETPAGESIZE 1 | ||
8504 | EOF | ||
8505 | |||
8506 | else | ||
8507 | echo "$as_me:8507: checking for getpagesize in -lucb" >&5 | ||
8508 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
8509 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
8510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8511 | else | ||
8512 | ac_check_lib_save_LIBS=$LIBS | ||
8513 | LIBS="-lucb $LIBS" | ||
8514 | cat >conftest.$ac_ext <<_ACEOF | ||
8515 | #line 8515 "configure" | ||
8516 | #include "confdefs.h" | ||
8517 | |||
8518 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8519 | #ifdef __cplusplus | ||
8520 | extern "C" | ||
8521 | #endif | ||
8522 | /* We use char because int might match the return type of a gcc2 | ||
8523 | builtin and then its argument prototype would still apply. */ | ||
8524 | char getpagesize (); | ||
8525 | int | ||
8526 | main () | ||
8527 | { | ||
8528 | getpagesize (); | ||
8529 | ; | ||
8530 | return 0; | ||
8531 | } | ||
8532 | _ACEOF | ||
8533 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8534 | if { (eval echo "$as_me:8534: \"$ac_link\"") >&5 | ||
8535 | (eval $ac_link) 2>&5 | ||
8536 | ac_status=$? | ||
8537 | echo "$as_me:8537: \$? = $ac_status" >&5 | ||
8538 | (exit $ac_status); } && | ||
8539 | { ac_try='test -s conftest$ac_exeext' | ||
8540 | { (eval echo "$as_me:8540: \"$ac_try\"") >&5 | ||
8541 | (eval $ac_try) 2>&5 | ||
8542 | ac_status=$? | ||
8543 | echo "$as_me:8543: \$? = $ac_status" >&5 | ||
8544 | (exit $ac_status); }; }; then | ||
8545 | ac_cv_lib_ucb_getpagesize=yes | ||
8546 | else | ||
8547 | echo "$as_me: failed program was:" >&5 | ||
8548 | cat conftest.$ac_ext >&5 | ||
8549 | ac_cv_lib_ucb_getpagesize=no | ||
8550 | fi | ||
8551 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8552 | LIBS=$ac_check_lib_save_LIBS | ||
8553 | fi | ||
8554 | echo "$as_me:8554: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
8555 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
8556 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
8557 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\EOF | ||
8558 | #define HAVE_GETPAGESIZE 1 | ||
8559 | EOF | ||
8560 | |||
8561 | fi | ||
8562 | |||
8563 | fi | ||
8564 | |||
8565 | # Check for broken snprintf | ||
8566 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
8567 | echo "$as_me:8567: checking whether snprintf correctly terminates long strings" >&5 | ||
8568 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
8569 | if test "$cross_compiling" = yes; then | ||
8570 | { { echo "$as_me:8570: error: cannot run test program while cross compiling" >&5 | ||
8571 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8572 | { (exit 1); exit 1; }; } | ||
8573 | else | ||
8574 | cat >conftest.$ac_ext <<_ACEOF | ||
8575 | #line 8575 "configure" | ||
8576 | #include "confdefs.h" | ||
8577 | |||
8578 | #include <stdio.h> | ||
8579 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
8580 | |||
8581 | _ACEOF | ||
8582 | rm -f conftest$ac_exeext | ||
8583 | if { (eval echo "$as_me:8583: \"$ac_link\"") >&5 | ||
8584 | (eval $ac_link) 2>&5 | ||
8585 | ac_status=$? | ||
8586 | echo "$as_me:8586: \$? = $ac_status" >&5 | ||
8587 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8588 | { (eval echo "$as_me:8588: \"$ac_try\"") >&5 | ||
8589 | (eval $ac_try) 2>&5 | ||
8590 | ac_status=$? | ||
8591 | echo "$as_me:8591: \$? = $ac_status" >&5 | ||
8592 | (exit $ac_status); }; }; then | ||
8593 | echo "$as_me:8593: result: yes" >&5 | ||
8594 | echo "${ECHO_T}yes" >&6 | ||
8595 | else | ||
8596 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8597 | echo "$as_me: failed program was:" >&5 | ||
8598 | cat conftest.$ac_ext >&5 | ||
8599 | |||
8600 | echo "$as_me:8600: result: no" >&5 | ||
8601 | echo "${ECHO_T}no" >&6 | ||
8602 | cat >>confdefs.h <<\EOF | ||
8603 | #define BROKEN_SNPRINTF 1 | ||
8604 | EOF | ||
8605 | |||
8606 | { echo "$as_me:8606: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
8607 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
8608 | |||
8609 | fi | ||
8610 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8611 | fi | ||
8612 | fi | ||
8613 | |||
8614 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
8615 | echo "$as_me:8615: checking for (overly) strict mkstemp" >&5 | ||
8616 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
8617 | if test "$cross_compiling" = yes; then | ||
8618 | |||
8619 | echo "$as_me:8619: result: yes" >&5 | ||
8620 | echo "${ECHO_T}yes" >&6 | ||
8621 | cat >>confdefs.h <<\EOF | ||
8622 | #define HAVE_STRICT_MKSTEMP 1 | ||
8623 | EOF | ||
8624 | |||
8625 | else | ||
8626 | cat >conftest.$ac_ext <<_ACEOF | ||
8627 | #line 8627 "configure" | ||
8628 | #include "confdefs.h" | ||
8629 | |||
8630 | #include <stdlib.h> | ||
8631 | main() { char template[]="conftest.mkstemp-test"; | ||
8632 | if (mkstemp(template) == -1) | ||
8633 | exit(1); | ||
8634 | unlink(template); exit(0); | ||
8635 | } | ||
8636 | |||
8637 | _ACEOF | ||
8638 | rm -f conftest$ac_exeext | ||
8639 | if { (eval echo "$as_me:8639: \"$ac_link\"") >&5 | ||
8640 | (eval $ac_link) 2>&5 | ||
8641 | ac_status=$? | ||
8642 | echo "$as_me:8642: \$? = $ac_status" >&5 | ||
8643 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8644 | { (eval echo "$as_me:8644: \"$ac_try\"") >&5 | ||
8645 | (eval $ac_try) 2>&5 | ||
8646 | ac_status=$? | ||
8647 | echo "$as_me:8647: \$? = $ac_status" >&5 | ||
8648 | (exit $ac_status); }; }; then | ||
8649 | |||
8650 | echo "$as_me:8650: result: no" >&5 | ||
8651 | echo "${ECHO_T}no" >&6 | ||
8652 | |||
8653 | else | ||
8654 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8655 | echo "$as_me: failed program was:" >&5 | ||
8656 | cat conftest.$ac_ext >&5 | ||
8657 | |||
8658 | echo "$as_me:8658: result: yes" >&5 | ||
8659 | echo "${ECHO_T}yes" >&6 | ||
8660 | cat >>confdefs.h <<\EOF | ||
8661 | #define HAVE_STRICT_MKSTEMP 1 | ||
8662 | EOF | ||
8663 | |||
8664 | fi | ||
8665 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8666 | fi | ||
8667 | fi | ||
8668 | |||
8669 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
8670 | echo "$as_me:8670: checking if openpty correctly handles controlling tty" >&5 | ||
8671 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6 | ||
8672 | if test "$cross_compiling" = yes; then | ||
8673 | { { echo "$as_me:8673: error: cannot run test program while cross compiling" >&5 | ||
8674 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8675 | { (exit 1); exit 1; }; } | ||
8676 | else | ||
8677 | cat >conftest.$ac_ext <<_ACEOF | ||
8678 | #line 8678 "configure" | ||
8679 | #include "confdefs.h" | ||
8680 | |||
8681 | #include <stdio.h> | ||
8682 | #include <sys/fcntl.h> | ||
8683 | #include <sys/types.h> | ||
8684 | #include <sys/wait.h> | ||
8685 | |||
8686 | int | ||
8687 | main() | ||
8688 | { | ||
8689 | pid_t pid; | ||
8690 | int fd, ptyfd, ttyfd, status; | ||
8691 | |||
8692 | pid = fork(); | ||
8693 | if (pid < 0) { /* failed */ | ||
8694 | exit(1); | ||
8695 | } else if (pid > 0) { /* parent */ | ||
8696 | waitpid(pid, &status, 0); | ||
8697 | if (WIFEXITED(status)) | ||
8698 | exit(WEXITSTATUS(status)); | ||
8699 | else | ||
8700 | exit(2); | ||
8701 | } else { /* child */ | ||
8702 | close(0); close(1); close(2); | ||
8703 | setsid(); | ||
8704 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
8705 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
8706 | if (fd >= 0) | ||
8707 | exit(3); /* Acquired ctty: broken */ | ||
8708 | else | ||
8709 | exit(0); /* Did not acquire ctty: OK */ | ||
8710 | } | ||
8711 | } | ||
8712 | |||
8713 | _ACEOF | ||
8714 | rm -f conftest$ac_exeext | ||
8715 | if { (eval echo "$as_me:8715: \"$ac_link\"") >&5 | ||
8716 | (eval $ac_link) 2>&5 | ||
8717 | ac_status=$? | ||
8718 | echo "$as_me:8718: \$? = $ac_status" >&5 | ||
8719 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8720 | { (eval echo "$as_me:8720: \"$ac_try\"") >&5 | ||
8721 | (eval $ac_try) 2>&5 | ||
8722 | ac_status=$? | ||
8723 | echo "$as_me:8723: \$? = $ac_status" >&5 | ||
8724 | (exit $ac_status); }; }; then | ||
8725 | |||
8726 | echo "$as_me:8726: result: yes" >&5 | ||
8727 | echo "${ECHO_T}yes" >&6 | ||
8728 | |||
8729 | else | ||
8730 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8731 | echo "$as_me: failed program was:" >&5 | ||
8732 | cat conftest.$ac_ext >&5 | ||
8733 | |||
8734 | echo "$as_me:8734: result: no" >&5 | ||
8735 | echo "${ECHO_T}no" >&6 | ||
8736 | cat >>confdefs.h <<\EOF | ||
8737 | #define SSHD_ACQUIRES_CTTY 1 | ||
8738 | EOF | ||
8739 | |||
8740 | fi | ||
8741 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8742 | fi | ||
8743 | fi | ||
8744 | |||
8745 | if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
8746 | echo "$as_me:8746: checking if getaddrinfo seems to work" >&5 | ||
8747 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 | ||
8748 | if test "$cross_compiling" = yes; then | ||
8749 | { { echo "$as_me:8749: error: cannot run test program while cross compiling" >&5 | ||
8750 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8751 | { (exit 1); exit 1; }; } | ||
8752 | else | ||
8753 | cat >conftest.$ac_ext <<_ACEOF | ||
8754 | #line 8754 "configure" | ||
8755 | #include "confdefs.h" | ||
8756 | |||
8757 | #include <stdio.h> | ||
8758 | #include <sys/socket.h> | ||
8759 | #include <netdb.h> | ||
8760 | #include <errno.h> | ||
8761 | #include <netinet/in.h> | ||
8762 | |||
8763 | #define TEST_PORT "2222" | ||
8764 | |||
8765 | int | ||
8766 | main(void) | ||
8767 | { | ||
8768 | int err, sock; | ||
8769 | struct addrinfo *gai_ai, *ai, hints; | ||
8770 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
8771 | |||
8772 | memset(&hints, 0, sizeof(hints)); | ||
8773 | hints.ai_family = PF_UNSPEC; | ||
8774 | hints.ai_socktype = SOCK_STREAM; | ||
8775 | hints.ai_flags = AI_PASSIVE; | ||
8776 | |||
8777 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
8778 | if (err != 0) { | ||
8779 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
8780 | exit(1); | ||
8781 | } | ||
8782 | |||
8783 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
8784 | if (ai->ai_family != AF_INET6) | ||
8785 | continue; | ||
8786 | |||
8787 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
8788 | sizeof(ntop), strport, sizeof(strport), | ||
8789 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
8790 | |||
8791 | if (err != 0) { | ||
8792 | if (err == EAI_SYSTEM) | ||
8793 | perror("getnameinfo EAI_SYSTEM"); | ||
8794 | else | ||
8795 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
8796 | gai_strerror(err)); | ||
8797 | exit(2); | ||
8798 | } | ||
8799 | |||
8800 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
8801 | if (sock < 0) | ||
8802 | perror("socket"); | ||
8803 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
8804 | if (errno == EBADF) | ||
8805 | exit(3); | ||
8806 | } | ||
8807 | } | ||
8808 | exit(0); | ||
8809 | } | ||
8810 | |||
8811 | _ACEOF | ||
8812 | rm -f conftest$ac_exeext | ||
8813 | if { (eval echo "$as_me:8813: \"$ac_link\"") >&5 | ||
8814 | (eval $ac_link) 2>&5 | ||
8815 | ac_status=$? | ||
8816 | echo "$as_me:8816: \$? = $ac_status" >&5 | ||
8817 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8818 | { (eval echo "$as_me:8818: \"$ac_try\"") >&5 | ||
8819 | (eval $ac_try) 2>&5 | ||
8820 | ac_status=$? | ||
8821 | echo "$as_me:8821: \$? = $ac_status" >&5 | ||
8822 | (exit $ac_status); }; }; then | ||
8823 | |||
8824 | echo "$as_me:8824: result: yes" >&5 | ||
8825 | echo "${ECHO_T}yes" >&6 | ||
8826 | |||
8827 | else | ||
8828 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8829 | echo "$as_me: failed program was:" >&5 | ||
8830 | cat conftest.$ac_ext >&5 | ||
8831 | |||
8832 | echo "$as_me:8832: result: no" >&5 | ||
8833 | echo "${ECHO_T}no" >&6 | ||
8834 | cat >>confdefs.h <<\EOF | ||
8835 | #define BROKEN_GETADDRINFO 1 | ||
8836 | EOF | ||
8837 | |||
8838 | fi | ||
8839 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8840 | fi | ||
8841 | fi | ||
8842 | |||
8843 | echo "$as_me:8843: checking whether getpgrp takes no argument" >&5 | ||
8844 | echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6 | ||
8845 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
8846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8847 | else | ||
8848 | # Use it with a single arg. | ||
8849 | cat >conftest.$ac_ext <<_ACEOF | ||
8850 | #line 8850 "configure" | ||
8851 | #include "confdefs.h" | ||
8852 | $ac_includes_default | ||
8853 | int | ||
8854 | main () | ||
8855 | { | ||
8856 | getpgrp (0); | ||
8857 | ; | ||
8858 | return 0; | ||
8859 | } | ||
8860 | _ACEOF | ||
8861 | rm -f conftest.$ac_objext | ||
8862 | if { (eval echo "$as_me:8862: \"$ac_compile\"") >&5 | ||
8863 | (eval $ac_compile) 2>&5 | ||
8864 | ac_status=$? | ||
8865 | echo "$as_me:8865: \$? = $ac_status" >&5 | ||
8866 | (exit $ac_status); } && | ||
8867 | { ac_try='test -s conftest.$ac_objext' | ||
8868 | { (eval echo "$as_me:8868: \"$ac_try\"") >&5 | ||
8869 | (eval $ac_try) 2>&5 | ||
8870 | ac_status=$? | ||
8871 | echo "$as_me:8871: \$? = $ac_status" >&5 | ||
8872 | (exit $ac_status); }; }; then | ||
8873 | ac_func_getpgrp_1=yes | ||
8874 | else | ||
8875 | echo "$as_me: failed program was:" >&5 | ||
8876 | cat conftest.$ac_ext >&5 | ||
8877 | ac_func_getpgrp_1=no | ||
8878 | fi | ||
8879 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8880 | # Use it with no arg. | ||
8881 | cat >conftest.$ac_ext <<_ACEOF | ||
8882 | #line 8882 "configure" | ||
8883 | #include "confdefs.h" | ||
8884 | $ac_includes_default | ||
8885 | int | ||
8886 | main () | ||
8887 | { | ||
8888 | getpgrp (); | ||
8889 | ; | ||
8890 | return 0; | ||
8891 | } | ||
8892 | _ACEOF | ||
8893 | rm -f conftest.$ac_objext | ||
8894 | if { (eval echo "$as_me:8894: \"$ac_compile\"") >&5 | ||
8895 | (eval $ac_compile) 2>&5 | ||
8896 | ac_status=$? | ||
8897 | echo "$as_me:8897: \$? = $ac_status" >&5 | ||
8898 | (exit $ac_status); } && | ||
8899 | { ac_try='test -s conftest.$ac_objext' | ||
8900 | { (eval echo "$as_me:8900: \"$ac_try\"") >&5 | ||
8901 | (eval $ac_try) 2>&5 | ||
8902 | ac_status=$? | ||
8903 | echo "$as_me:8903: \$? = $ac_status" >&5 | ||
8904 | (exit $ac_status); }; }; then | ||
8905 | ac_func_getpgrp_0=yes | ||
8906 | else | ||
8907 | echo "$as_me: failed program was:" >&5 | ||
8908 | cat conftest.$ac_ext >&5 | ||
8909 | ac_func_getpgrp_0=no | ||
8910 | fi | ||
8911 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8912 | # If both static checks agree, we are done. | ||
8913 | case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in | ||
8914 | yes:no) ac_cv_func_getpgrp_void=yes;; | ||
8915 | no:yes) ac_cv_func_getpgrp_void=false;; | ||
8916 | *) if test "$cross_compiling" = yes; then | ||
8917 | { { echo "$as_me:8917: error: cannot check getpgrp if cross compiling" >&5 | ||
8918 | echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;} | ||
8919 | { (exit 1); exit 1; }; } | ||
8920 | else | ||
8921 | cat >conftest.$ac_ext <<_ACEOF | ||
8922 | #line 8922 "configure" | ||
8923 | #include "confdefs.h" | ||
8924 | $ac_includes_default | ||
8925 | |||
8926 | /* | ||
8927 | * If this system has a BSD-style getpgrp(), | ||
8928 | * which takes a pid argument, exit unsuccessfully. | ||
8929 | * | ||
8930 | * Snarfed from Chet Ramey's bash pgrp.c test program | ||
8931 | */ | ||
8932 | |||
8933 | int pid; | ||
8934 | int pg1, pg2, pg3, pg4; | ||
8935 | int ng, np, s, child; | ||
8936 | |||
8937 | int | ||
8938 | main () | ||
8939 | { | ||
8940 | pid = getpid (); | ||
8941 | pg1 = getpgrp (0); | ||
8942 | pg2 = getpgrp (); | ||
8943 | pg3 = getpgrp (pid); | ||
8944 | pg4 = getpgrp (1); | ||
8945 | |||
8946 | /* If all of these values are the same, it's pretty sure that we're | ||
8947 | on a system that ignores getpgrp's first argument. */ | ||
8948 | if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) | ||
8949 | exit (0); | ||
8950 | |||
8951 | child = fork (); | ||
8952 | if (child < 0) | ||
8953 | exit(1); | ||
8954 | else if (child == 0) | ||
8955 | { | ||
8956 | np = getpid (); | ||
8957 | /* If this is Sys V, this will not work; pgrp will be set to np | ||
8958 | because setpgrp just changes a pgrp to be the same as the | ||
8959 | pid. */ | ||
8960 | setpgrp (np, pg1); | ||
8961 | ng = getpgrp (0); /* Same result for Sys V and BSD */ | ||
8962 | if (ng == pg1) | ||
8963 | exit (1); | ||
8964 | else | ||
8965 | exit (0); | ||
8966 | } | ||
8967 | else | ||
8968 | { | ||
8969 | wait (&s); | ||
8970 | exit (s>>8); | ||
8971 | } | ||
8972 | } | ||
8973 | |||
8974 | _ACEOF | ||
8975 | rm -f conftest$ac_exeext | ||
8976 | if { (eval echo "$as_me:8976: \"$ac_link\"") >&5 | ||
8977 | (eval $ac_link) 2>&5 | ||
8978 | ac_status=$? | ||
8979 | echo "$as_me:8979: \$? = $ac_status" >&5 | ||
8980 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8981 | { (eval echo "$as_me:8981: \"$ac_try\"") >&5 | ||
8982 | (eval $ac_try) 2>&5 | ||
8983 | ac_status=$? | ||
8984 | echo "$as_me:8984: \$? = $ac_status" >&5 | ||
8985 | (exit $ac_status); }; }; then | ||
8986 | ac_cv_func_getpgrp_void=yes | ||
8987 | else | ||
8988 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8989 | echo "$as_me: failed program was:" >&5 | ||
8990 | cat conftest.$ac_ext >&5 | ||
8991 | ac_cv_func_getpgrp_void=no | ||
8992 | fi | ||
8993 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8994 | fi;; | ||
8995 | esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1 | ||
8996 | |||
8997 | fi | ||
8998 | echo "$as_me:8998: result: $ac_cv_func_getpgrp_void" >&5 | ||
8999 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
9000 | if test $ac_cv_func_getpgrp_void = yes; then | ||
9001 | |||
9002 | cat >>confdefs.h <<\EOF | ||
9003 | #define GETPGRP_VOID 1 | ||
9004 | EOF | ||
9005 | |||
9006 | fi | ||
9007 | |||
9008 | # Check for PAM libs | ||
9009 | PAM_MSG="no" | ||
9010 | |||
9011 | # Check whether --with-pam or --without-pam was given. | ||
9012 | if test "${with_pam+set}" = set; then | ||
9013 | withval="$with_pam" | ||
9014 | |||
9015 | if test "x$withval" != "xno" ; then | ||
9016 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
9017 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
9018 | { { echo "$as_me:9018: error: PAM headers not found" >&5 | ||
9019 | echo "$as_me: error: PAM headers not found" >&2;} | ||
9020 | { (exit 1); exit 1; }; } | ||
9021 | fi | ||
9022 | |||
9023 | echo "$as_me:9023: checking for dlopen in -ldl" >&5 | ||
9024 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
9025 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
9026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9027 | else | ||
9028 | ac_check_lib_save_LIBS=$LIBS | ||
9029 | LIBS="-ldl $LIBS" | ||
9030 | cat >conftest.$ac_ext <<_ACEOF | ||
9031 | #line 9031 "configure" | ||
9032 | #include "confdefs.h" | ||
9033 | |||
9034 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9035 | #ifdef __cplusplus | ||
9036 | extern "C" | ||
9037 | #endif | ||
9038 | /* We use char because int might match the return type of a gcc2 | ||
9039 | builtin and then its argument prototype would still apply. */ | ||
9040 | char dlopen (); | ||
9041 | int | ||
9042 | main () | ||
9043 | { | ||
9044 | dlopen (); | ||
9045 | ; | ||
9046 | return 0; | ||
9047 | } | ||
9048 | _ACEOF | ||
9049 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9050 | if { (eval echo "$as_me:9050: \"$ac_link\"") >&5 | ||
9051 | (eval $ac_link) 2>&5 | ||
9052 | ac_status=$? | ||
9053 | echo "$as_me:9053: \$? = $ac_status" >&5 | ||
9054 | (exit $ac_status); } && | ||
9055 | { ac_try='test -s conftest$ac_exeext' | ||
9056 | { (eval echo "$as_me:9056: \"$ac_try\"") >&5 | ||
9057 | (eval $ac_try) 2>&5 | ||
9058 | ac_status=$? | ||
9059 | echo "$as_me:9059: \$? = $ac_status" >&5 | ||
9060 | (exit $ac_status); }; }; then | ||
9061 | ac_cv_lib_dl_dlopen=yes | ||
9062 | else | ||
9063 | echo "$as_me: failed program was:" >&5 | ||
9064 | cat conftest.$ac_ext >&5 | ||
9065 | ac_cv_lib_dl_dlopen=no | ||
9066 | fi | ||
9067 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9068 | LIBS=$ac_check_lib_save_LIBS | ||
9069 | fi | ||
9070 | echo "$as_me:9070: result: $ac_cv_lib_dl_dlopen" >&5 | ||
9071 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
9072 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
9073 | cat >>confdefs.h <<EOF | ||
9074 | #define HAVE_LIBDL 1 | ||
9075 | EOF | ||
9076 | |||
9077 | LIBS="-ldl $LIBS" | ||
9078 | |||
9079 | fi | ||
9080 | |||
9081 | echo "$as_me:9081: checking for pam_set_item in -lpam" >&5 | ||
9082 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
9083 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
9084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9085 | else | ||
9086 | ac_check_lib_save_LIBS=$LIBS | ||
9087 | LIBS="-lpam $LIBS" | ||
9088 | cat >conftest.$ac_ext <<_ACEOF | ||
9089 | #line 9089 "configure" | ||
9090 | #include "confdefs.h" | ||
9091 | |||
9092 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9093 | #ifdef __cplusplus | ||
9094 | extern "C" | ||
9095 | #endif | ||
9096 | /* We use char because int might match the return type of a gcc2 | ||
9097 | builtin and then its argument prototype would still apply. */ | ||
9098 | char pam_set_item (); | ||
9099 | int | ||
9100 | main () | ||
9101 | { | ||
9102 | pam_set_item (); | ||
9103 | ; | ||
9104 | return 0; | ||
9105 | } | ||
9106 | _ACEOF | ||
9107 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9108 | if { (eval echo "$as_me:9108: \"$ac_link\"") >&5 | ||
9109 | (eval $ac_link) 2>&5 | ||
9110 | ac_status=$? | ||
9111 | echo "$as_me:9111: \$? = $ac_status" >&5 | ||
9112 | (exit $ac_status); } && | ||
9113 | { ac_try='test -s conftest$ac_exeext' | ||
9114 | { (eval echo "$as_me:9114: \"$ac_try\"") >&5 | ||
9115 | (eval $ac_try) 2>&5 | ||
9116 | ac_status=$? | ||
9117 | echo "$as_me:9117: \$? = $ac_status" >&5 | ||
9118 | (exit $ac_status); }; }; then | ||
9119 | ac_cv_lib_pam_pam_set_item=yes | ||
9120 | else | ||
9121 | echo "$as_me: failed program was:" >&5 | ||
9122 | cat conftest.$ac_ext >&5 | ||
9123 | ac_cv_lib_pam_pam_set_item=no | ||
9124 | fi | ||
9125 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9126 | LIBS=$ac_check_lib_save_LIBS | ||
9127 | fi | ||
9128 | echo "$as_me:9128: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
9129 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
9130 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
9131 | cat >>confdefs.h <<EOF | ||
9132 | #define HAVE_LIBPAM 1 | ||
9133 | EOF | ||
9134 | |||
9135 | LIBS="-lpam $LIBS" | ||
9136 | |||
9137 | else | ||
9138 | { { echo "$as_me:9138: error: *** libpam missing" >&5 | ||
9139 | echo "$as_me: error: *** libpam missing" >&2;} | ||
9140 | { (exit 1); exit 1; }; } | ||
9141 | fi | ||
9142 | |||
9143 | for ac_func in pam_getenvlist | ||
9144 | do | ||
9145 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9146 | echo "$as_me:9146: checking for $ac_func" >&5 | ||
9147 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9148 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9150 | else | ||
9151 | cat >conftest.$ac_ext <<_ACEOF | ||
9152 | #line 9152 "configure" | ||
9153 | #include "confdefs.h" | ||
9154 | /* System header to define __stub macros and hopefully few prototypes, | ||
9155 | which can conflict with char $ac_func (); below. */ | ||
9156 | #include <assert.h> | ||
9157 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9158 | #ifdef __cplusplus | ||
9159 | extern "C" | ||
9160 | #endif | ||
9161 | /* We use char because int might match the return type of a gcc2 | ||
9162 | builtin and then its argument prototype would still apply. */ | ||
9163 | char $ac_func (); | ||
9164 | char (*f) (); | ||
9165 | |||
9166 | int | ||
9167 | main () | ||
9168 | { | ||
9169 | /* The GNU C library defines this for functions which it implements | ||
9170 | to always fail with ENOSYS. Some functions are actually named | ||
9171 | something starting with __ and the normal name is an alias. */ | ||
9172 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9173 | choke me | ||
9174 | #else | ||
9175 | f = $ac_func; | ||
9176 | #endif | ||
9177 | |||
9178 | ; | ||
9179 | return 0; | ||
9180 | } | ||
9181 | _ACEOF | ||
9182 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9183 | if { (eval echo "$as_me:9183: \"$ac_link\"") >&5 | ||
9184 | (eval $ac_link) 2>&5 | ||
9185 | ac_status=$? | ||
9186 | echo "$as_me:9186: \$? = $ac_status" >&5 | ||
9187 | (exit $ac_status); } && | ||
9188 | { ac_try='test -s conftest$ac_exeext' | ||
9189 | { (eval echo "$as_me:9189: \"$ac_try\"") >&5 | ||
9190 | (eval $ac_try) 2>&5 | ||
9191 | ac_status=$? | ||
9192 | echo "$as_me:9192: \$? = $ac_status" >&5 | ||
9193 | (exit $ac_status); }; }; then | ||
9194 | eval "$as_ac_var=yes" | ||
9195 | else | ||
9196 | echo "$as_me: failed program was:" >&5 | ||
9197 | cat conftest.$ac_ext >&5 | ||
9198 | eval "$as_ac_var=no" | ||
9199 | fi | ||
9200 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9201 | fi | ||
9202 | echo "$as_me:9202: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9203 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9204 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9205 | cat >>confdefs.h <<EOF | ||
9206 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9207 | EOF | ||
9208 | |||
9209 | fi | ||
9210 | done | ||
9211 | |||
9212 | for ac_func in pam_putenv | ||
9213 | do | ||
9214 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9215 | echo "$as_me:9215: checking for $ac_func" >&5 | ||
9216 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9217 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9219 | else | ||
9220 | cat >conftest.$ac_ext <<_ACEOF | ||
9221 | #line 9221 "configure" | ||
9222 | #include "confdefs.h" | ||
9223 | /* System header to define __stub macros and hopefully few prototypes, | ||
9224 | which can conflict with char $ac_func (); below. */ | ||
9225 | #include <assert.h> | ||
9226 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9227 | #ifdef __cplusplus | ||
9228 | extern "C" | ||
9229 | #endif | ||
9230 | /* We use char because int might match the return type of a gcc2 | ||
9231 | builtin and then its argument prototype would still apply. */ | ||
9232 | char $ac_func (); | ||
9233 | char (*f) (); | ||
9234 | |||
9235 | int | ||
9236 | main () | ||
9237 | { | ||
9238 | /* The GNU C library defines this for functions which it implements | ||
9239 | to always fail with ENOSYS. Some functions are actually named | ||
9240 | something starting with __ and the normal name is an alias. */ | ||
9241 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9242 | choke me | ||
9243 | #else | ||
9244 | f = $ac_func; | ||
9245 | #endif | ||
9246 | |||
9247 | ; | ||
9248 | return 0; | ||
9249 | } | ||
9250 | _ACEOF | ||
9251 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9252 | if { (eval echo "$as_me:9252: \"$ac_link\"") >&5 | ||
9253 | (eval $ac_link) 2>&5 | ||
9254 | ac_status=$? | ||
9255 | echo "$as_me:9255: \$? = $ac_status" >&5 | ||
9256 | (exit $ac_status); } && | ||
9257 | { ac_try='test -s conftest$ac_exeext' | ||
9258 | { (eval echo "$as_me:9258: \"$ac_try\"") >&5 | ||
9259 | (eval $ac_try) 2>&5 | ||
9260 | ac_status=$? | ||
9261 | echo "$as_me:9261: \$? = $ac_status" >&5 | ||
9262 | (exit $ac_status); }; }; then | ||
9263 | eval "$as_ac_var=yes" | ||
9264 | else | ||
9265 | echo "$as_me: failed program was:" >&5 | ||
9266 | cat conftest.$ac_ext >&5 | ||
9267 | eval "$as_ac_var=no" | ||
9268 | fi | ||
9269 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9270 | fi | ||
9271 | echo "$as_me:9271: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9272 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9273 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9274 | cat >>confdefs.h <<EOF | ||
9275 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9276 | EOF | ||
9277 | |||
9278 | fi | ||
9279 | done | ||
9280 | |||
9281 | PAM_MSG="yes" | ||
9282 | |||
9283 | cat >>confdefs.h <<\EOF | ||
9284 | #define USE_PAM 1 | ||
9285 | EOF | ||
9286 | |||
9287 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
9288 | LIBPAM="-lpam -ldl" | ||
9289 | else | ||
9290 | LIBPAM="-lpam" | ||
9291 | fi | ||
9292 | |||
9293 | fi | ||
9294 | |||
9295 | fi; | ||
9296 | |||
9297 | # Check for older PAM | ||
9298 | if test "x$PAM_MSG" = "xyes" ; then | ||
9299 | # Check PAM strerror arguments (old PAM) | ||
9300 | echo "$as_me:9300: checking whether pam_strerror takes only one argument" >&5 | ||
9301 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
9302 | cat >conftest.$ac_ext <<_ACEOF | ||
9303 | #line 9303 "configure" | ||
9304 | #include "confdefs.h" | ||
9305 | |||
9306 | #include <stdlib.h> | ||
9307 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
9308 | #include <security/pam_appl.h> | ||
9309 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
9310 | #include <pam/pam_appl.h> | ||
9311 | #endif | ||
9312 | |||
9313 | int | ||
9314 | main () | ||
9315 | { | ||
9316 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
9317 | ; | ||
9318 | return 0; | ||
9319 | } | ||
9320 | _ACEOF | ||
9321 | rm -f conftest.$ac_objext | ||
9322 | if { (eval echo "$as_me:9322: \"$ac_compile\"") >&5 | ||
9323 | (eval $ac_compile) 2>&5 | ||
9324 | ac_status=$? | ||
9325 | echo "$as_me:9325: \$? = $ac_status" >&5 | ||
9326 | (exit $ac_status); } && | ||
9327 | { ac_try='test -s conftest.$ac_objext' | ||
9328 | { (eval echo "$as_me:9328: \"$ac_try\"") >&5 | ||
9329 | (eval $ac_try) 2>&5 | ||
9330 | ac_status=$? | ||
9331 | echo "$as_me:9331: \$? = $ac_status" >&5 | ||
9332 | (exit $ac_status); }; }; then | ||
9333 | echo "$as_me:9333: result: no" >&5 | ||
9334 | echo "${ECHO_T}no" >&6 | ||
9335 | else | ||
9336 | echo "$as_me: failed program was:" >&5 | ||
9337 | cat conftest.$ac_ext >&5 | ||
9338 | |||
9339 | cat >>confdefs.h <<\EOF | ||
9340 | #define HAVE_OLD_PAM 1 | ||
9341 | EOF | ||
9342 | |||
9343 | echo "$as_me:9343: result: yes" >&5 | ||
9344 | echo "${ECHO_T}yes" >&6 | ||
9345 | PAM_MSG="yes (old library)" | ||
9346 | |||
9347 | fi | ||
9348 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9349 | fi | ||
9350 | |||
9351 | # Search for OpenSSL | ||
9352 | saved_CPPFLAGS="$CPPFLAGS" | ||
9353 | saved_LDFLAGS="$LDFLAGS" | ||
9354 | |||
9355 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
9356 | if test "${with_ssl_dir+set}" = set; then | ||
9357 | withval="$with_ssl_dir" | ||
9358 | |||
9359 | if test "x$withval" != "xno" ; then | ||
9360 | if test -d "$withval/lib"; then | ||
9361 | if test -n "${need_dash_r}"; then | ||
9362 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
9363 | else | ||
9364 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9365 | fi | ||
9366 | else | ||
9367 | if test -n "${need_dash_r}"; then | ||
9368 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
9369 | else | ||
9370 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
9371 | fi | ||
9372 | fi | ||
9373 | if test -d "$withval/include"; then | ||
9374 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
9375 | else | ||
9376 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
9377 | fi | ||
9378 | fi | ||
9379 | |||
9380 | fi; | ||
9381 | LIBS="-lcrypto $LIBS" | ||
9382 | cat >conftest.$ac_ext <<_ACEOF | ||
9383 | #line 9383 "configure" | ||
9384 | #include "confdefs.h" | ||
9385 | |||
9386 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9387 | #ifdef __cplusplus | ||
9388 | extern "C" | ||
9389 | #endif | ||
9390 | /* We use char because int might match the return type of a gcc2 | ||
9391 | builtin and then its argument prototype would still apply. */ | ||
9392 | char RAND_add (); | ||
9393 | int | ||
9394 | main () | ||
9395 | { | ||
9396 | RAND_add (); | ||
9397 | ; | ||
9398 | return 0; | ||
9399 | } | ||
9400 | _ACEOF | ||
9401 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9402 | if { (eval echo "$as_me:9402: \"$ac_link\"") >&5 | ||
9403 | (eval $ac_link) 2>&5 | ||
9404 | ac_status=$? | ||
9405 | echo "$as_me:9405: \$? = $ac_status" >&5 | ||
9406 | (exit $ac_status); } && | ||
9407 | { ac_try='test -s conftest$ac_exeext' | ||
9408 | { (eval echo "$as_me:9408: \"$ac_try\"") >&5 | ||
9409 | (eval $ac_try) 2>&5 | ||
9410 | ac_status=$? | ||
9411 | echo "$as_me:9411: \$? = $ac_status" >&5 | ||
9412 | (exit $ac_status); }; }; then | ||
9413 | cat >>confdefs.h <<\EOF | ||
9414 | #define HAVE_OPENSSL 1 | ||
9415 | EOF | ||
9416 | |||
9417 | else | ||
9418 | echo "$as_me: failed program was:" >&5 | ||
9419 | cat conftest.$ac_ext >&5 | ||
9420 | |||
9421 | if test -n "${need_dash_r}"; then | ||
9422 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
9423 | else | ||
9424 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
9425 | fi | ||
9426 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
9427 | cat >conftest.$ac_ext <<_ACEOF | ||
9428 | #line 9428 "configure" | ||
9429 | #include "confdefs.h" | ||
9430 | |||
9431 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9432 | #ifdef __cplusplus | ||
9433 | extern "C" | ||
9434 | #endif | ||
9435 | /* We use char because int might match the return type of a gcc2 | ||
9436 | builtin and then its argument prototype would still apply. */ | ||
9437 | char RAND_add (); | ||
9438 | int | ||
9439 | main () | ||
9440 | { | ||
9441 | RAND_add (); | ||
9442 | ; | ||
9443 | return 0; | ||
9444 | } | ||
9445 | _ACEOF | ||
9446 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9447 | if { (eval echo "$as_me:9447: \"$ac_link\"") >&5 | ||
9448 | (eval $ac_link) 2>&5 | ||
9449 | ac_status=$? | ||
9450 | echo "$as_me:9450: \$? = $ac_status" >&5 | ||
9451 | (exit $ac_status); } && | ||
9452 | { ac_try='test -s conftest$ac_exeext' | ||
9453 | { (eval echo "$as_me:9453: \"$ac_try\"") >&5 | ||
9454 | (eval $ac_try) 2>&5 | ||
9455 | ac_status=$? | ||
9456 | echo "$as_me:9456: \$? = $ac_status" >&5 | ||
9457 | (exit $ac_status); }; }; then | ||
9458 | cat >>confdefs.h <<\EOF | ||
9459 | #define HAVE_OPENSSL 1 | ||
9460 | EOF | ||
9461 | |||
9462 | else | ||
9463 | echo "$as_me: failed program was:" >&5 | ||
9464 | cat conftest.$ac_ext >&5 | ||
9465 | |||
9466 | { { echo "$as_me:9466: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
9467 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
9468 | { (exit 1); exit 1; }; } | ||
9469 | |||
9470 | fi | ||
9471 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9472 | |||
9473 | fi | ||
9474 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9475 | |||
9476 | # Determine OpenSSL header version | ||
9477 | echo "$as_me:9477: checking OpenSSL header version" >&5 | ||
9478 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
9479 | if test "$cross_compiling" = yes; then | ||
9480 | { { echo "$as_me:9480: error: cannot run test program while cross compiling" >&5 | ||
9481 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9482 | { (exit 1); exit 1; }; } | ||
9483 | else | ||
9484 | cat >conftest.$ac_ext <<_ACEOF | ||
9485 | #line 9485 "configure" | ||
9486 | #include "confdefs.h" | ||
9487 | |||
9488 | #include <stdio.h> | ||
9489 | #include <string.h> | ||
9490 | #include <openssl/opensslv.h> | ||
9491 | #define DATA "conftest.sslincver" | ||
9492 | int main(void) { | ||
9493 | FILE *fd; | ||
9494 | int rc; | ||
9495 | |||
9496 | fd = fopen(DATA,"w"); | ||
9497 | if(fd == NULL) | ||
9498 | exit(1); | ||
9499 | |||
9500 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
9501 | exit(1); | ||
9502 | |||
9503 | exit(0); | ||
9504 | } | ||
9505 | |||
9506 | _ACEOF | ||
9507 | rm -f conftest$ac_exeext | ||
9508 | if { (eval echo "$as_me:9508: \"$ac_link\"") >&5 | ||
9509 | (eval $ac_link) 2>&5 | ||
9510 | ac_status=$? | ||
9511 | echo "$as_me:9511: \$? = $ac_status" >&5 | ||
9512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9513 | { (eval echo "$as_me:9513: \"$ac_try\"") >&5 | ||
9514 | (eval $ac_try) 2>&5 | ||
9515 | ac_status=$? | ||
9516 | echo "$as_me:9516: \$? = $ac_status" >&5 | ||
9517 | (exit $ac_status); }; }; then | ||
9518 | |||
9519 | ssl_header_ver=`cat conftest.sslincver` | ||
9520 | echo "$as_me:9520: result: $ssl_header_ver" >&5 | ||
9521 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
9522 | |||
9523 | else | ||
9524 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9525 | echo "$as_me: failed program was:" >&5 | ||
9526 | cat conftest.$ac_ext >&5 | ||
9527 | |||
9528 | echo "$as_me:9528: result: not found" >&5 | ||
9529 | echo "${ECHO_T}not found" >&6 | ||
9530 | { { echo "$as_me:9530: error: OpenSSL version header not found." >&5 | ||
9531 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
9532 | { (exit 1); exit 1; }; } | ||
9533 | |||
9534 | fi | ||
9535 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9536 | fi | ||
9537 | |||
9538 | # Determine OpenSSL library version | ||
9539 | echo "$as_me:9539: checking OpenSSL library version" >&5 | ||
9540 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
9541 | if test "$cross_compiling" = yes; then | ||
9542 | { { echo "$as_me:9542: error: cannot run test program while cross compiling" >&5 | ||
9543 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9544 | { (exit 1); exit 1; }; } | ||
9545 | else | ||
9546 | cat >conftest.$ac_ext <<_ACEOF | ||
9547 | #line 9547 "configure" | ||
9548 | #include "confdefs.h" | ||
9549 | |||
9550 | #include <stdio.h> | ||
9551 | #include <string.h> | ||
9552 | #include <openssl/opensslv.h> | ||
9553 | #include <openssl/crypto.h> | ||
9554 | #define DATA "conftest.ssllibver" | ||
9555 | int main(void) { | ||
9556 | FILE *fd; | ||
9557 | int rc; | ||
9558 | |||
9559 | fd = fopen(DATA,"w"); | ||
9560 | if(fd == NULL) | ||
9561 | exit(1); | ||
9562 | |||
9563 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
9564 | exit(1); | ||
9565 | |||
9566 | exit(0); | ||
9567 | } | ||
9568 | |||
9569 | _ACEOF | ||
9570 | rm -f conftest$ac_exeext | ||
9571 | if { (eval echo "$as_me:9571: \"$ac_link\"") >&5 | ||
9572 | (eval $ac_link) 2>&5 | ||
9573 | ac_status=$? | ||
9574 | echo "$as_me:9574: \$? = $ac_status" >&5 | ||
9575 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9576 | { (eval echo "$as_me:9576: \"$ac_try\"") >&5 | ||
9577 | (eval $ac_try) 2>&5 | ||
9578 | ac_status=$? | ||
9579 | echo "$as_me:9579: \$? = $ac_status" >&5 | ||
9580 | (exit $ac_status); }; }; then | ||
9581 | |||
9582 | ssl_library_ver=`cat conftest.ssllibver` | ||
9583 | echo "$as_me:9583: result: $ssl_library_ver" >&5 | ||
9584 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
9585 | |||
9586 | else | ||
9587 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9588 | echo "$as_me: failed program was:" >&5 | ||
9589 | cat conftest.$ac_ext >&5 | ||
9590 | |||
9591 | echo "$as_me:9591: result: not found" >&5 | ||
9592 | echo "${ECHO_T}not found" >&6 | ||
9593 | { { echo "$as_me:9593: error: OpenSSL library not found." >&5 | ||
9594 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
9595 | { (exit 1); exit 1; }; } | ||
9596 | |||
9597 | fi | ||
9598 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9599 | fi | ||
9600 | |||
9601 | # Sanity check OpenSSL headers | ||
9602 | echo "$as_me:9602: checking whether OpenSSL's headers match the library" >&5 | ||
9603 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
9604 | if test "$cross_compiling" = yes; then | ||
9605 | { { echo "$as_me:9605: error: cannot run test program while cross compiling" >&5 | ||
9606 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9607 | { (exit 1); exit 1; }; } | ||
9608 | else | ||
9609 | cat >conftest.$ac_ext <<_ACEOF | ||
9610 | #line 9610 "configure" | ||
9611 | #include "confdefs.h" | ||
9612 | |||
9613 | #include <string.h> | ||
9614 | #include <openssl/opensslv.h> | ||
9615 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
9616 | |||
9617 | _ACEOF | ||
9618 | rm -f conftest$ac_exeext | ||
9619 | if { (eval echo "$as_me:9619: \"$ac_link\"") >&5 | ||
9620 | (eval $ac_link) 2>&5 | ||
9621 | ac_status=$? | ||
9622 | echo "$as_me:9622: \$? = $ac_status" >&5 | ||
9623 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9624 | { (eval echo "$as_me:9624: \"$ac_try\"") >&5 | ||
9625 | (eval $ac_try) 2>&5 | ||
9626 | ac_status=$? | ||
9627 | echo "$as_me:9627: \$? = $ac_status" >&5 | ||
9628 | (exit $ac_status); }; }; then | ||
9629 | |||
9630 | echo "$as_me:9630: result: yes" >&5 | ||
9631 | echo "${ECHO_T}yes" >&6 | ||
9632 | |||
9633 | else | ||
9634 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9635 | echo "$as_me: failed program was:" >&5 | ||
9636 | cat conftest.$ac_ext >&5 | ||
9637 | |||
9638 | echo "$as_me:9638: result: no" >&5 | ||
9639 | echo "${ECHO_T}no" >&6 | ||
9640 | { { echo "$as_me:9640: error: Your OpenSSL headers do not match your library. | ||
9641 | Check config.log for details. | ||
9642 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
9643 | echo "$as_me: error: Your OpenSSL headers do not match your library. | ||
9644 | Check config.log for details. | ||
9645 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
9646 | { (exit 1); exit 1; }; } | ||
9647 | |||
9648 | fi | ||
9649 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9650 | fi | ||
9651 | |||
9652 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
9653 | # because the system crypt() is more featureful. | ||
9654 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
9655 | |||
9656 | echo "$as_me:9656: checking for crypt in -lcrypt" >&5 | ||
9657 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
9658 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
9659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9660 | else | ||
9661 | ac_check_lib_save_LIBS=$LIBS | ||
9662 | LIBS="-lcrypt $LIBS" | ||
9663 | cat >conftest.$ac_ext <<_ACEOF | ||
9664 | #line 9664 "configure" | ||
9665 | #include "confdefs.h" | ||
9666 | |||
9667 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9668 | #ifdef __cplusplus | ||
9669 | extern "C" | ||
9670 | #endif | ||
9671 | /* We use char because int might match the return type of a gcc2 | ||
9672 | builtin and then its argument prototype would still apply. */ | ||
9673 | char crypt (); | ||
9674 | int | ||
9675 | main () | ||
9676 | { | ||
9677 | crypt (); | ||
9678 | ; | ||
9679 | return 0; | ||
9680 | } | ||
9681 | _ACEOF | ||
9682 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9683 | if { (eval echo "$as_me:9683: \"$ac_link\"") >&5 | ||
9684 | (eval $ac_link) 2>&5 | ||
9685 | ac_status=$? | ||
9686 | echo "$as_me:9686: \$? = $ac_status" >&5 | ||
9687 | (exit $ac_status); } && | ||
9688 | { ac_try='test -s conftest$ac_exeext' | ||
9689 | { (eval echo "$as_me:9689: \"$ac_try\"") >&5 | ||
9690 | (eval $ac_try) 2>&5 | ||
9691 | ac_status=$? | ||
9692 | echo "$as_me:9692: \$? = $ac_status" >&5 | ||
9693 | (exit $ac_status); }; }; then | ||
9694 | ac_cv_lib_crypt_crypt=yes | ||
9695 | else | ||
9696 | echo "$as_me: failed program was:" >&5 | ||
9697 | cat conftest.$ac_ext >&5 | ||
9698 | ac_cv_lib_crypt_crypt=no | ||
9699 | fi | ||
9700 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9701 | LIBS=$ac_check_lib_save_LIBS | ||
9702 | fi | ||
9703 | echo "$as_me:9703: result: $ac_cv_lib_crypt_crypt" >&5 | ||
9704 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
9705 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
9706 | cat >>confdefs.h <<EOF | ||
9707 | #define HAVE_LIBCRYPT 1 | ||
9708 | EOF | ||
9709 | |||
9710 | LIBS="-lcrypt $LIBS" | ||
9711 | |||
9712 | fi | ||
9713 | |||
9714 | fi | ||
9715 | |||
9716 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
9717 | # version in OpenSSL. | ||
9718 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
9719 | echo "$as_me:9719: checking for crypt in -lcrypt" >&5 | ||
9720 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
9721 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
9722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9723 | else | ||
9724 | ac_check_lib_save_LIBS=$LIBS | ||
9725 | LIBS="-lcrypt $LIBS" | ||
9726 | cat >conftest.$ac_ext <<_ACEOF | ||
9727 | #line 9727 "configure" | ||
9728 | #include "confdefs.h" | ||
9729 | |||
9730 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9731 | #ifdef __cplusplus | ||
9732 | extern "C" | ||
9733 | #endif | ||
9734 | /* We use char because int might match the return type of a gcc2 | ||
9735 | builtin and then its argument prototype would still apply. */ | ||
9736 | char crypt (); | ||
9737 | int | ||
9738 | main () | ||
9739 | { | ||
9740 | crypt (); | ||
9741 | ; | ||
9742 | return 0; | ||
9743 | } | ||
9744 | _ACEOF | ||
9745 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9746 | if { (eval echo "$as_me:9746: \"$ac_link\"") >&5 | ||
9747 | (eval $ac_link) 2>&5 | ||
9748 | ac_status=$? | ||
9749 | echo "$as_me:9749: \$? = $ac_status" >&5 | ||
9750 | (exit $ac_status); } && | ||
9751 | { ac_try='test -s conftest$ac_exeext' | ||
9752 | { (eval echo "$as_me:9752: \"$ac_try\"") >&5 | ||
9753 | (eval $ac_try) 2>&5 | ||
9754 | ac_status=$? | ||
9755 | echo "$as_me:9755: \$? = $ac_status" >&5 | ||
9756 | (exit $ac_status); }; }; then | ||
9757 | ac_cv_lib_crypt_crypt=yes | ||
9758 | else | ||
9759 | echo "$as_me: failed program was:" >&5 | ||
9760 | cat conftest.$ac_ext >&5 | ||
9761 | ac_cv_lib_crypt_crypt=no | ||
9762 | fi | ||
9763 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9764 | LIBS=$ac_check_lib_save_LIBS | ||
9765 | fi | ||
9766 | echo "$as_me:9766: result: $ac_cv_lib_crypt_crypt" >&5 | ||
9767 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
9768 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
9769 | LIBS="$LIBS -lcrypt" | ||
9770 | fi | ||
9771 | |||
9772 | fi | ||
9773 | |||
9774 | ### Configure cryptographic random number support | ||
9775 | |||
9776 | # Check wheter OpenSSL seeds itself | ||
9777 | echo "$as_me:9777: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
9778 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
9779 | if test "$cross_compiling" = yes; then | ||
9780 | { { echo "$as_me:9780: error: cannot run test program while cross compiling" >&5 | ||
9781 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9782 | { (exit 1); exit 1; }; } | ||
9783 | else | ||
9784 | cat >conftest.$ac_ext <<_ACEOF | ||
9785 | #line 9785 "configure" | ||
9786 | #include "confdefs.h" | ||
9787 | |||
9788 | #include <string.h> | ||
9789 | #include <openssl/rand.h> | ||
9790 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
9791 | |||
9792 | _ACEOF | ||
9793 | rm -f conftest$ac_exeext | ||
9794 | if { (eval echo "$as_me:9794: \"$ac_link\"") >&5 | ||
9795 | (eval $ac_link) 2>&5 | ||
9796 | ac_status=$? | ||
9797 | echo "$as_me:9797: \$? = $ac_status" >&5 | ||
9798 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9799 | { (eval echo "$as_me:9799: \"$ac_try\"") >&5 | ||
9800 | (eval $ac_try) 2>&5 | ||
9801 | ac_status=$? | ||
9802 | echo "$as_me:9802: \$? = $ac_status" >&5 | ||
9803 | (exit $ac_status); }; }; then | ||
9804 | |||
9805 | OPENSSL_SEEDS_ITSELF=yes | ||
9806 | echo "$as_me:9806: result: yes" >&5 | ||
9807 | echo "${ECHO_T}yes" >&6 | ||
9808 | |||
9809 | else | ||
9810 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9811 | echo "$as_me: failed program was:" >&5 | ||
9812 | cat conftest.$ac_ext >&5 | ||
9813 | |||
9814 | echo "$as_me:9814: result: no" >&5 | ||
9815 | echo "${ECHO_T}no" >&6 | ||
9816 | # Default to use of the rand helper if OpenSSL doesn't | ||
9817 | # seed itself | ||
9818 | USE_RAND_HELPER=yes | ||
9819 | |||
9820 | fi | ||
9821 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9822 | fi | ||
9823 | |||
9824 | # Do we want to force the use of the rand helper? | ||
9825 | |||
9826 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
9827 | if test "${with_rand_helper+set}" = set; then | ||
9828 | withval="$with_rand_helper" | ||
9829 | |||
9830 | if test "x$withval" = "xno" ; then | ||
9831 | # Force use of OpenSSL's internal RNG, even if | ||
9832 | # the previous test showed it to be unseeded. | ||
9833 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
9834 | { echo "$as_me:9834: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
9835 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
9836 | OPENSSL_SEEDS_ITSELF=yes | ||
9837 | USE_RAND_HELPER="" | ||
9838 | fi | ||
9839 | else | ||
9840 | USE_RAND_HELPER=yes | ||
9841 | fi | ||
9842 | |||
9843 | fi; | ||
9844 | |||
9845 | # Which randomness source do we use? | ||
9846 | if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then | ||
9847 | # OpenSSL only | ||
9848 | cat >>confdefs.h <<\EOF | ||
9849 | #define OPENSSL_PRNG_ONLY 1 | ||
9850 | EOF | ||
9851 | |||
9852 | RAND_MSG="OpenSSL internal ONLY" | ||
9853 | INSTALL_SSH_RAND_HELPER="" | ||
9854 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
9855 | # install rand helper | ||
9856 | RAND_MSG="ssh-rand-helper" | ||
9857 | INSTALL_SSH_RAND_HELPER="yes" | ||
9858 | fi | ||
9859 | |||
9860 | ### Configuration of ssh-rand-helper | ||
9861 | |||
9862 | # PRNGD TCP socket | ||
9863 | |||
9864 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
9865 | if test "${with_prngd_port+set}" = set; then | ||
9866 | withval="$with_prngd_port" | ||
9867 | |||
9868 | case "$withval" in | ||
9869 | no) | ||
9870 | withval="" | ||
9871 | ;; | ||
9872 | [0-9]*) | ||
9873 | ;; | ||
9874 | *) | ||
9875 | { { echo "$as_me:9875: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
9876 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
9877 | { (exit 1); exit 1; }; } | ||
9878 | ;; | ||
9879 | esac | ||
9880 | if test ! -z "$withval" ; then | ||
9881 | PRNGD_PORT="$withval" | ||
9882 | cat >>confdefs.h <<EOF | ||
9883 | #define PRNGD_PORT $PRNGD_PORT | ||
9884 | EOF | ||
9885 | |||
9886 | fi | ||
9887 | |||
9888 | fi; | ||
9889 | |||
9890 | # PRNGD Unix domain socket | ||
9891 | |||
9892 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
9893 | if test "${with_prngd_socket+set}" = set; then | ||
9894 | withval="$with_prngd_socket" | ||
9895 | |||
9896 | case "$withval" in | ||
9897 | yes) | ||
9898 | withval="/var/run/egd-pool" | ||
9899 | ;; | ||
9900 | no) | ||
9901 | withval="" | ||
9902 | ;; | ||
9903 | /*) | ||
9904 | ;; | ||
9905 | *) | ||
9906 | { { echo "$as_me:9906: error: You must specify an absolute path to the entropy socket" >&5 | ||
9907 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
9908 | { (exit 1); exit 1; }; } | ||
9909 | ;; | ||
9910 | esac | ||
9911 | |||
9912 | if test ! -z "$withval" ; then | ||
9913 | if test ! -z "$PRNGD_PORT" ; then | ||
9914 | { { echo "$as_me:9914: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
9915 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
9916 | { (exit 1); exit 1; }; } | ||
9917 | fi | ||
9918 | if test ! -r "$withval" ; then | ||
9919 | { echo "$as_me:9919: WARNING: Entropy socket is not readable" >&5 | ||
9920 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
9921 | fi | ||
9922 | PRNGD_SOCKET="$withval" | ||
9923 | cat >>confdefs.h <<EOF | ||
9924 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9925 | EOF | ||
9926 | |||
9927 | fi | ||
9928 | |||
9929 | else | ||
9930 | |||
9931 | # Check for existing socket only if we don't have a random device already | ||
9932 | if test "$USE_RAND_HELPER" = yes ; then | ||
9933 | echo "$as_me:9933: checking for PRNGD/EGD socket" >&5 | ||
9934 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
9935 | # Insert other locations here | ||
9936 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
9937 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
9938 | PRNGD_SOCKET="$sock" | ||
9939 | cat >>confdefs.h <<EOF | ||
9940 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9941 | EOF | ||
9942 | |||
9943 | break; | ||
9944 | fi | ||
9945 | done | ||
9946 | if test ! -z "$PRNGD_SOCKET" ; then | ||
9947 | echo "$as_me:9947: result: $PRNGD_SOCKET" >&5 | ||
9948 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
9949 | else | ||
9950 | echo "$as_me:9950: result: not found" >&5 | ||
9951 | echo "${ECHO_T}not found" >&6 | ||
9952 | fi | ||
9953 | fi | ||
9954 | |||
9955 | fi; | ||
9956 | |||
9957 | # Change default command timeout for hashing entropy source | ||
9958 | entropy_timeout=200 | ||
9959 | |||
9960 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
9961 | if test "${with_entropy_timeout+set}" = set; then | ||
9962 | withval="$with_entropy_timeout" | ||
9963 | |||
9964 | if test "x$withval" != "xno" ; then | ||
9965 | entropy_timeout=$withval | ||
9966 | fi | ||
9967 | |||
9968 | fi; | ||
9969 | cat >>confdefs.h <<EOF | ||
9970 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
9971 | EOF | ||
9972 | |||
9973 | SSH_PRIVSEP_USER=sshd | ||
9974 | |||
9975 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
9976 | if test "${with_privsep_user+set}" = set; then | ||
9977 | withval="$with_privsep_user" | ||
9978 | |||
9979 | if test -n "$withval"; then | ||
9980 | SSH_PRIVSEP_USER=$withval | ||
9981 | fi | ||
9982 | |||
9983 | fi; | ||
9984 | cat >>confdefs.h <<EOF | ||
9985 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
9986 | EOF | ||
9987 | |||
9988 | # We do this little dance with the search path to insure | ||
9989 | # that programs that we select for use by installed programs | ||
9990 | # (which may be run by the super-user) come from trusted | ||
9991 | # locations before they come from the user's private area. | ||
9992 | # This should help avoid accidentally configuring some | ||
9993 | # random version of a program in someone's personal bin. | ||
9994 | |||
9995 | OPATH=$PATH | ||
9996 | PATH=/bin:/usr/bin | ||
9997 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
9998 | test -d /sbin && PATH=$PATH:/sbin | ||
9999 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
10000 | PATH=$PATH:/etc:$OPATH | ||
10001 | |||
10002 | # These programs are used by the command hashing source to gather entropy | ||
10003 | |||
10004 | # Extract the first word of "ls", so it can be a program name with args. | ||
10005 | set dummy ls; ac_word=$2 | ||
10006 | echo "$as_me:10006: checking for $ac_word" >&5 | ||
10007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10008 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
10009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10010 | else | ||
10011 | case $PROG_LS in | ||
10012 | [\\/]* | ?:[\\/]*) | ||
10013 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
10014 | ;; | ||
10015 | *) | ||
10016 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10017 | ac_dummy="$PATH" | ||
10018 | for ac_dir in $ac_dummy; do | ||
10019 | IFS=$ac_save_IFS | ||
10020 | test -z "$ac_dir" && ac_dir=. | ||
10021 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10022 | ac_cv_path_PROG_LS="$ac_dir/$ac_word" | ||
10023 | echo "$as_me:10023: found $ac_dir/$ac_word" >&5 | ||
10024 | break | ||
10025 | fi | ||
10026 | done | ||
10027 | |||
10028 | ;; | ||
10029 | esac | ||
10030 | fi | ||
10031 | PROG_LS=$ac_cv_path_PROG_LS | ||
10032 | |||
10033 | if test -n "$PROG_LS"; then | ||
10034 | echo "$as_me:10034: result: $PROG_LS" >&5 | ||
10035 | echo "${ECHO_T}$PROG_LS" >&6 | ||
10036 | else | ||
10037 | echo "$as_me:10037: result: no" >&5 | ||
10038 | echo "${ECHO_T}no" >&6 | ||
10039 | fi | ||
10040 | |||
10041 | if test -z "$PROG_LS" ; then | ||
10042 | PROG_LS="undef" | ||
10043 | fi | ||
10044 | |||
10045 | # Extract the first word of "netstat", so it can be a program name with args. | ||
10046 | set dummy netstat; ac_word=$2 | ||
10047 | echo "$as_me:10047: checking for $ac_word" >&5 | ||
10048 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10049 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
10050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10051 | else | ||
10052 | case $PROG_NETSTAT in | ||
10053 | [\\/]* | ?:[\\/]*) | ||
10054 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
10055 | ;; | ||
10056 | *) | ||
10057 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10058 | ac_dummy="$PATH" | ||
10059 | for ac_dir in $ac_dummy; do | ||
10060 | IFS=$ac_save_IFS | ||
10061 | test -z "$ac_dir" && ac_dir=. | ||
10062 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10063 | ac_cv_path_PROG_NETSTAT="$ac_dir/$ac_word" | ||
10064 | echo "$as_me:10064: found $ac_dir/$ac_word" >&5 | ||
10065 | break | ||
10066 | fi | ||
10067 | done | ||
10068 | |||
10069 | ;; | ||
10070 | esac | ||
10071 | fi | ||
10072 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
10073 | |||
10074 | if test -n "$PROG_NETSTAT"; then | ||
10075 | echo "$as_me:10075: result: $PROG_NETSTAT" >&5 | ||
10076 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
10077 | else | ||
10078 | echo "$as_me:10078: result: no" >&5 | ||
10079 | echo "${ECHO_T}no" >&6 | ||
10080 | fi | ||
10081 | |||
10082 | if test -z "$PROG_NETSTAT" ; then | ||
10083 | PROG_NETSTAT="undef" | ||
10084 | fi | ||
10085 | |||
10086 | # Extract the first word of "arp", so it can be a program name with args. | ||
10087 | set dummy arp; ac_word=$2 | ||
10088 | echo "$as_me:10088: checking for $ac_word" >&5 | ||
10089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10090 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
10091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10092 | else | ||
10093 | case $PROG_ARP in | ||
10094 | [\\/]* | ?:[\\/]*) | ||
10095 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
10096 | ;; | ||
10097 | *) | ||
10098 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10099 | ac_dummy="$PATH" | ||
10100 | for ac_dir in $ac_dummy; do | ||
10101 | IFS=$ac_save_IFS | ||
10102 | test -z "$ac_dir" && ac_dir=. | ||
10103 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10104 | ac_cv_path_PROG_ARP="$ac_dir/$ac_word" | ||
10105 | echo "$as_me:10105: found $ac_dir/$ac_word" >&5 | ||
10106 | break | ||
10107 | fi | ||
10108 | done | ||
10109 | |||
10110 | ;; | ||
10111 | esac | ||
10112 | fi | ||
10113 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
10114 | |||
10115 | if test -n "$PROG_ARP"; then | ||
10116 | echo "$as_me:10116: result: $PROG_ARP" >&5 | ||
10117 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
10118 | else | ||
10119 | echo "$as_me:10119: result: no" >&5 | ||
10120 | echo "${ECHO_T}no" >&6 | ||
10121 | fi | ||
10122 | |||
10123 | if test -z "$PROG_ARP" ; then | ||
10124 | PROG_ARP="undef" | ||
10125 | fi | ||
10126 | |||
10127 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
10128 | set dummy ifconfig; ac_word=$2 | ||
10129 | echo "$as_me:10129: checking for $ac_word" >&5 | ||
10130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10131 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
10132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10133 | else | ||
10134 | case $PROG_IFCONFIG in | ||
10135 | [\\/]* | ?:[\\/]*) | ||
10136 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
10137 | ;; | ||
10138 | *) | ||
10139 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10140 | ac_dummy="$PATH" | ||
10141 | for ac_dir in $ac_dummy; do | ||
10142 | IFS=$ac_save_IFS | ||
10143 | test -z "$ac_dir" && ac_dir=. | ||
10144 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10145 | ac_cv_path_PROG_IFCONFIG="$ac_dir/$ac_word" | ||
10146 | echo "$as_me:10146: found $ac_dir/$ac_word" >&5 | ||
10147 | break | ||
10148 | fi | ||
10149 | done | ||
10150 | |||
10151 | ;; | ||
10152 | esac | ||
10153 | fi | ||
10154 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
10155 | |||
10156 | if test -n "$PROG_IFCONFIG"; then | ||
10157 | echo "$as_me:10157: result: $PROG_IFCONFIG" >&5 | ||
10158 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
10159 | else | ||
10160 | echo "$as_me:10160: result: no" >&5 | ||
10161 | echo "${ECHO_T}no" >&6 | ||
10162 | fi | ||
10163 | |||
10164 | if test -z "$PROG_IFCONFIG" ; then | ||
10165 | PROG_IFCONFIG="undef" | ||
10166 | fi | ||
10167 | |||
10168 | # Extract the first word of "jstat", so it can be a program name with args. | ||
10169 | set dummy jstat; ac_word=$2 | ||
10170 | echo "$as_me:10170: checking for $ac_word" >&5 | ||
10171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10172 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
10173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10174 | else | ||
10175 | case $PROG_JSTAT in | ||
10176 | [\\/]* | ?:[\\/]*) | ||
10177 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
10178 | ;; | ||
10179 | *) | ||
10180 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10181 | ac_dummy="$PATH" | ||
10182 | for ac_dir in $ac_dummy; do | ||
10183 | IFS=$ac_save_IFS | ||
10184 | test -z "$ac_dir" && ac_dir=. | ||
10185 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10186 | ac_cv_path_PROG_JSTAT="$ac_dir/$ac_word" | ||
10187 | echo "$as_me:10187: found $ac_dir/$ac_word" >&5 | ||
10188 | break | ||
10189 | fi | ||
10190 | done | ||
10191 | |||
10192 | ;; | ||
10193 | esac | ||
10194 | fi | ||
10195 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
10196 | |||
10197 | if test -n "$PROG_JSTAT"; then | ||
10198 | echo "$as_me:10198: result: $PROG_JSTAT" >&5 | ||
10199 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
10200 | else | ||
10201 | echo "$as_me:10201: result: no" >&5 | ||
10202 | echo "${ECHO_T}no" >&6 | ||
10203 | fi | ||
10204 | |||
10205 | if test -z "$PROG_JSTAT" ; then | ||
10206 | PROG_JSTAT="undef" | ||
10207 | fi | ||
10208 | |||
10209 | # Extract the first word of "ps", so it can be a program name with args. | ||
10210 | set dummy ps; ac_word=$2 | ||
10211 | echo "$as_me:10211: checking for $ac_word" >&5 | ||
10212 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10213 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
10214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10215 | else | ||
10216 | case $PROG_PS in | ||
10217 | [\\/]* | ?:[\\/]*) | ||
10218 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
10219 | ;; | ||
10220 | *) | ||
10221 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10222 | ac_dummy="$PATH" | ||
10223 | for ac_dir in $ac_dummy; do | ||
10224 | IFS=$ac_save_IFS | ||
10225 | test -z "$ac_dir" && ac_dir=. | ||
10226 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10227 | ac_cv_path_PROG_PS="$ac_dir/$ac_word" | ||
10228 | echo "$as_me:10228: found $ac_dir/$ac_word" >&5 | ||
10229 | break | ||
10230 | fi | ||
10231 | done | ||
10232 | |||
10233 | ;; | ||
10234 | esac | ||
10235 | fi | ||
10236 | PROG_PS=$ac_cv_path_PROG_PS | ||
10237 | |||
10238 | if test -n "$PROG_PS"; then | ||
10239 | echo "$as_me:10239: result: $PROG_PS" >&5 | ||
10240 | echo "${ECHO_T}$PROG_PS" >&6 | ||
10241 | else | ||
10242 | echo "$as_me:10242: result: no" >&5 | ||
10243 | echo "${ECHO_T}no" >&6 | ||
10244 | fi | ||
10245 | |||
10246 | if test -z "$PROG_PS" ; then | ||
10247 | PROG_PS="undef" | ||
10248 | fi | ||
10249 | |||
10250 | # Extract the first word of "sar", so it can be a program name with args. | ||
10251 | set dummy sar; ac_word=$2 | ||
10252 | echo "$as_me:10252: checking for $ac_word" >&5 | ||
10253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10254 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
10255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10256 | else | ||
10257 | case $PROG_SAR in | ||
10258 | [\\/]* | ?:[\\/]*) | ||
10259 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
10260 | ;; | ||
10261 | *) | ||
10262 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10263 | ac_dummy="$PATH" | ||
10264 | for ac_dir in $ac_dummy; do | ||
10265 | IFS=$ac_save_IFS | ||
10266 | test -z "$ac_dir" && ac_dir=. | ||
10267 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10268 | ac_cv_path_PROG_SAR="$ac_dir/$ac_word" | ||
10269 | echo "$as_me:10269: found $ac_dir/$ac_word" >&5 | ||
10270 | break | ||
10271 | fi | ||
10272 | done | ||
10273 | |||
10274 | ;; | ||
10275 | esac | ||
10276 | fi | ||
10277 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
10278 | |||
10279 | if test -n "$PROG_SAR"; then | ||
10280 | echo "$as_me:10280: result: $PROG_SAR" >&5 | ||
10281 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
10282 | else | ||
10283 | echo "$as_me:10283: result: no" >&5 | ||
10284 | echo "${ECHO_T}no" >&6 | ||
10285 | fi | ||
10286 | |||
10287 | if test -z "$PROG_SAR" ; then | ||
10288 | PROG_SAR="undef" | ||
10289 | fi | ||
10290 | |||
10291 | # Extract the first word of "w", so it can be a program name with args. | ||
10292 | set dummy w; ac_word=$2 | ||
10293 | echo "$as_me:10293: checking for $ac_word" >&5 | ||
10294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10295 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
10296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10297 | else | ||
10298 | case $PROG_W in | ||
10299 | [\\/]* | ?:[\\/]*) | ||
10300 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
10301 | ;; | ||
10302 | *) | ||
10303 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10304 | ac_dummy="$PATH" | ||
10305 | for ac_dir in $ac_dummy; do | ||
10306 | IFS=$ac_save_IFS | ||
10307 | test -z "$ac_dir" && ac_dir=. | ||
10308 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10309 | ac_cv_path_PROG_W="$ac_dir/$ac_word" | ||
10310 | echo "$as_me:10310: found $ac_dir/$ac_word" >&5 | ||
10311 | break | ||
10312 | fi | ||
10313 | done | ||
10314 | |||
10315 | ;; | ||
10316 | esac | ||
10317 | fi | ||
10318 | PROG_W=$ac_cv_path_PROG_W | ||
10319 | |||
10320 | if test -n "$PROG_W"; then | ||
10321 | echo "$as_me:10321: result: $PROG_W" >&5 | ||
10322 | echo "${ECHO_T}$PROG_W" >&6 | ||
10323 | else | ||
10324 | echo "$as_me:10324: result: no" >&5 | ||
10325 | echo "${ECHO_T}no" >&6 | ||
10326 | fi | ||
10327 | |||
10328 | if test -z "$PROG_W" ; then | ||
10329 | PROG_W="undef" | ||
10330 | fi | ||
10331 | |||
10332 | # Extract the first word of "who", so it can be a program name with args. | ||
10333 | set dummy who; ac_word=$2 | ||
10334 | echo "$as_me:10334: checking for $ac_word" >&5 | ||
10335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10336 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
10337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10338 | else | ||
10339 | case $PROG_WHO in | ||
10340 | [\\/]* | ?:[\\/]*) | ||
10341 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
10342 | ;; | ||
10343 | *) | ||
10344 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10345 | ac_dummy="$PATH" | ||
10346 | for ac_dir in $ac_dummy; do | ||
10347 | IFS=$ac_save_IFS | ||
10348 | test -z "$ac_dir" && ac_dir=. | ||
10349 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10350 | ac_cv_path_PROG_WHO="$ac_dir/$ac_word" | ||
10351 | echo "$as_me:10351: found $ac_dir/$ac_word" >&5 | ||
10352 | break | ||
10353 | fi | ||
10354 | done | ||
10355 | |||
10356 | ;; | ||
10357 | esac | ||
10358 | fi | ||
10359 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
10360 | |||
10361 | if test -n "$PROG_WHO"; then | ||
10362 | echo "$as_me:10362: result: $PROG_WHO" >&5 | ||
10363 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
10364 | else | ||
10365 | echo "$as_me:10365: result: no" >&5 | ||
10366 | echo "${ECHO_T}no" >&6 | ||
10367 | fi | ||
10368 | |||
10369 | if test -z "$PROG_WHO" ; then | ||
10370 | PROG_WHO="undef" | ||
10371 | fi | ||
10372 | |||
10373 | # Extract the first word of "last", so it can be a program name with args. | ||
10374 | set dummy last; ac_word=$2 | ||
10375 | echo "$as_me:10375: checking for $ac_word" >&5 | ||
10376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10377 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
10378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10379 | else | ||
10380 | case $PROG_LAST in | ||
10381 | [\\/]* | ?:[\\/]*) | ||
10382 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
10383 | ;; | ||
10384 | *) | ||
10385 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10386 | ac_dummy="$PATH" | ||
10387 | for ac_dir in $ac_dummy; do | ||
10388 | IFS=$ac_save_IFS | ||
10389 | test -z "$ac_dir" && ac_dir=. | ||
10390 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10391 | ac_cv_path_PROG_LAST="$ac_dir/$ac_word" | ||
10392 | echo "$as_me:10392: found $ac_dir/$ac_word" >&5 | ||
10393 | break | ||
10394 | fi | ||
10395 | done | ||
10396 | |||
10397 | ;; | ||
10398 | esac | ||
10399 | fi | ||
10400 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
10401 | |||
10402 | if test -n "$PROG_LAST"; then | ||
10403 | echo "$as_me:10403: result: $PROG_LAST" >&5 | ||
10404 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
10405 | else | ||
10406 | echo "$as_me:10406: result: no" >&5 | ||
10407 | echo "${ECHO_T}no" >&6 | ||
10408 | fi | ||
10409 | |||
10410 | if test -z "$PROG_LAST" ; then | ||
10411 | PROG_LAST="undef" | ||
10412 | fi | ||
10413 | |||
10414 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
10415 | set dummy lastlog; ac_word=$2 | ||
10416 | echo "$as_me:10416: checking for $ac_word" >&5 | ||
10417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10418 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
10419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10420 | else | ||
10421 | case $PROG_LASTLOG in | ||
10422 | [\\/]* | ?:[\\/]*) | ||
10423 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
10424 | ;; | ||
10425 | *) | ||
10426 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10427 | ac_dummy="$PATH" | ||
10428 | for ac_dir in $ac_dummy; do | ||
10429 | IFS=$ac_save_IFS | ||
10430 | test -z "$ac_dir" && ac_dir=. | ||
10431 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10432 | ac_cv_path_PROG_LASTLOG="$ac_dir/$ac_word" | ||
10433 | echo "$as_me:10433: found $ac_dir/$ac_word" >&5 | ||
10434 | break | ||
10435 | fi | ||
10436 | done | ||
10437 | |||
10438 | ;; | ||
10439 | esac | ||
10440 | fi | ||
10441 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
10442 | |||
10443 | if test -n "$PROG_LASTLOG"; then | ||
10444 | echo "$as_me:10444: result: $PROG_LASTLOG" >&5 | ||
10445 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
10446 | else | ||
10447 | echo "$as_me:10447: result: no" >&5 | ||
10448 | echo "${ECHO_T}no" >&6 | ||
10449 | fi | ||
10450 | |||
10451 | if test -z "$PROG_LASTLOG" ; then | ||
10452 | PROG_LASTLOG="undef" | ||
10453 | fi | ||
10454 | |||
10455 | # Extract the first word of "df", so it can be a program name with args. | ||
10456 | set dummy df; ac_word=$2 | ||
10457 | echo "$as_me:10457: checking for $ac_word" >&5 | ||
10458 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10459 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
10460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10461 | else | ||
10462 | case $PROG_DF in | ||
10463 | [\\/]* | ?:[\\/]*) | ||
10464 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
10465 | ;; | ||
10466 | *) | ||
10467 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10468 | ac_dummy="$PATH" | ||
10469 | for ac_dir in $ac_dummy; do | ||
10470 | IFS=$ac_save_IFS | ||
10471 | test -z "$ac_dir" && ac_dir=. | ||
10472 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10473 | ac_cv_path_PROG_DF="$ac_dir/$ac_word" | ||
10474 | echo "$as_me:10474: found $ac_dir/$ac_word" >&5 | ||
10475 | break | ||
10476 | fi | ||
10477 | done | ||
10478 | |||
10479 | ;; | ||
10480 | esac | ||
10481 | fi | ||
10482 | PROG_DF=$ac_cv_path_PROG_DF | ||
10483 | |||
10484 | if test -n "$PROG_DF"; then | ||
10485 | echo "$as_me:10485: result: $PROG_DF" >&5 | ||
10486 | echo "${ECHO_T}$PROG_DF" >&6 | ||
10487 | else | ||
10488 | echo "$as_me:10488: result: no" >&5 | ||
10489 | echo "${ECHO_T}no" >&6 | ||
10490 | fi | ||
10491 | |||
10492 | if test -z "$PROG_DF" ; then | ||
10493 | PROG_DF="undef" | ||
10494 | fi | ||
10495 | |||
10496 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
10497 | set dummy vmstat; ac_word=$2 | ||
10498 | echo "$as_me:10498: checking for $ac_word" >&5 | ||
10499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10500 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
10501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10502 | else | ||
10503 | case $PROG_VMSTAT in | ||
10504 | [\\/]* | ?:[\\/]*) | ||
10505 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
10506 | ;; | ||
10507 | *) | ||
10508 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10509 | ac_dummy="$PATH" | ||
10510 | for ac_dir in $ac_dummy; do | ||
10511 | IFS=$ac_save_IFS | ||
10512 | test -z "$ac_dir" && ac_dir=. | ||
10513 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10514 | ac_cv_path_PROG_VMSTAT="$ac_dir/$ac_word" | ||
10515 | echo "$as_me:10515: found $ac_dir/$ac_word" >&5 | ||
10516 | break | ||
10517 | fi | ||
10518 | done | ||
10519 | |||
10520 | ;; | ||
10521 | esac | ||
10522 | fi | ||
10523 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
10524 | |||
10525 | if test -n "$PROG_VMSTAT"; then | ||
10526 | echo "$as_me:10526: result: $PROG_VMSTAT" >&5 | ||
10527 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
10528 | else | ||
10529 | echo "$as_me:10529: result: no" >&5 | ||
10530 | echo "${ECHO_T}no" >&6 | ||
10531 | fi | ||
10532 | |||
10533 | if test -z "$PROG_VMSTAT" ; then | ||
10534 | PROG_VMSTAT="undef" | ||
10535 | fi | ||
10536 | |||
10537 | # Extract the first word of "uptime", so it can be a program name with args. | ||
10538 | set dummy uptime; ac_word=$2 | ||
10539 | echo "$as_me:10539: checking for $ac_word" >&5 | ||
10540 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10541 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
10542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10543 | else | ||
10544 | case $PROG_UPTIME in | ||
10545 | [\\/]* | ?:[\\/]*) | ||
10546 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
10547 | ;; | ||
10548 | *) | ||
10549 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10550 | ac_dummy="$PATH" | ||
10551 | for ac_dir in $ac_dummy; do | ||
10552 | IFS=$ac_save_IFS | ||
10553 | test -z "$ac_dir" && ac_dir=. | ||
10554 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10555 | ac_cv_path_PROG_UPTIME="$ac_dir/$ac_word" | ||
10556 | echo "$as_me:10556: found $ac_dir/$ac_word" >&5 | ||
10557 | break | ||
10558 | fi | ||
10559 | done | ||
10560 | |||
10561 | ;; | ||
10562 | esac | ||
10563 | fi | ||
10564 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
10565 | |||
10566 | if test -n "$PROG_UPTIME"; then | ||
10567 | echo "$as_me:10567: result: $PROG_UPTIME" >&5 | ||
10568 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
10569 | else | ||
10570 | echo "$as_me:10570: result: no" >&5 | ||
10571 | echo "${ECHO_T}no" >&6 | ||
10572 | fi | ||
10573 | |||
10574 | if test -z "$PROG_UPTIME" ; then | ||
10575 | PROG_UPTIME="undef" | ||
10576 | fi | ||
10577 | |||
10578 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
10579 | set dummy ipcs; ac_word=$2 | ||
10580 | echo "$as_me:10580: checking for $ac_word" >&5 | ||
10581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10582 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
10583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10584 | else | ||
10585 | case $PROG_IPCS in | ||
10586 | [\\/]* | ?:[\\/]*) | ||
10587 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
10588 | ;; | ||
10589 | *) | ||
10590 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10591 | ac_dummy="$PATH" | ||
10592 | for ac_dir in $ac_dummy; do | ||
10593 | IFS=$ac_save_IFS | ||
10594 | test -z "$ac_dir" && ac_dir=. | ||
10595 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10596 | ac_cv_path_PROG_IPCS="$ac_dir/$ac_word" | ||
10597 | echo "$as_me:10597: found $ac_dir/$ac_word" >&5 | ||
10598 | break | ||
10599 | fi | ||
10600 | done | ||
10601 | |||
10602 | ;; | ||
10603 | esac | ||
10604 | fi | ||
10605 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
10606 | |||
10607 | if test -n "$PROG_IPCS"; then | ||
10608 | echo "$as_me:10608: result: $PROG_IPCS" >&5 | ||
10609 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
10610 | else | ||
10611 | echo "$as_me:10611: result: no" >&5 | ||
10612 | echo "${ECHO_T}no" >&6 | ||
10613 | fi | ||
10614 | |||
10615 | if test -z "$PROG_IPCS" ; then | ||
10616 | PROG_IPCS="undef" | ||
10617 | fi | ||
10618 | |||
10619 | # Extract the first word of "tail", so it can be a program name with args. | ||
10620 | set dummy tail; ac_word=$2 | ||
10621 | echo "$as_me:10621: checking for $ac_word" >&5 | ||
10622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10623 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
10624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10625 | else | ||
10626 | case $PROG_TAIL in | ||
10627 | [\\/]* | ?:[\\/]*) | ||
10628 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
10629 | ;; | ||
10630 | *) | ||
10631 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10632 | ac_dummy="$PATH" | ||
10633 | for ac_dir in $ac_dummy; do | ||
10634 | IFS=$ac_save_IFS | ||
10635 | test -z "$ac_dir" && ac_dir=. | ||
10636 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10637 | ac_cv_path_PROG_TAIL="$ac_dir/$ac_word" | ||
10638 | echo "$as_me:10638: found $ac_dir/$ac_word" >&5 | ||
10639 | break | ||
10640 | fi | ||
10641 | done | ||
10642 | |||
10643 | ;; | ||
10644 | esac | ||
10645 | fi | ||
10646 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
10647 | |||
10648 | if test -n "$PROG_TAIL"; then | ||
10649 | echo "$as_me:10649: result: $PROG_TAIL" >&5 | ||
10650 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
10651 | else | ||
10652 | echo "$as_me:10652: result: no" >&5 | ||
10653 | echo "${ECHO_T}no" >&6 | ||
10654 | fi | ||
10655 | |||
10656 | if test -z "$PROG_TAIL" ; then | ||
10657 | PROG_TAIL="undef" | ||
10658 | fi | ||
10659 | |||
10660 | # restore PATH | ||
10661 | PATH=$OPATH | ||
10662 | |||
10663 | # Where does ssh-rand-helper get its randomness from? | ||
10664 | INSTALL_SSH_PRNG_CMDS="" | ||
10665 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
10666 | if test ! -z "$PRNGD_PORT" ; then | ||
10667 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
10668 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
10669 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
10670 | else | ||
10671 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
10672 | RAND_HELPER_CMDHASH=yes | ||
10673 | INSTALL_SSH_PRNG_CMDS="yes" | ||
10674 | fi | ||
10675 | fi | ||
10676 | |||
10677 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
10678 | if test ! -z "$SONY" ; then | ||
10679 | LIBS="$LIBS -liberty"; | ||
10680 | fi | ||
10681 | |||
10682 | # Checks for data types | ||
10683 | echo "$as_me:10683: checking for char" >&5 | ||
10684 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
10685 | if test "${ac_cv_type_char+set}" = set; then | ||
10686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10687 | else | ||
10688 | cat >conftest.$ac_ext <<_ACEOF | ||
10689 | #line 10689 "configure" | ||
10690 | #include "confdefs.h" | ||
10691 | $ac_includes_default | ||
10692 | int | ||
10693 | main () | ||
10694 | { | ||
10695 | if ((char *) 0) | ||
10696 | return 0; | ||
10697 | if (sizeof (char)) | ||
10698 | return 0; | ||
10699 | ; | ||
10700 | return 0; | ||
10701 | } | ||
10702 | _ACEOF | ||
10703 | rm -f conftest.$ac_objext | ||
10704 | if { (eval echo "$as_me:10704: \"$ac_compile\"") >&5 | ||
10705 | (eval $ac_compile) 2>&5 | ||
10706 | ac_status=$? | ||
10707 | echo "$as_me:10707: \$? = $ac_status" >&5 | ||
10708 | (exit $ac_status); } && | ||
10709 | { ac_try='test -s conftest.$ac_objext' | ||
10710 | { (eval echo "$as_me:10710: \"$ac_try\"") >&5 | ||
10711 | (eval $ac_try) 2>&5 | ||
10712 | ac_status=$? | ||
10713 | echo "$as_me:10713: \$? = $ac_status" >&5 | ||
10714 | (exit $ac_status); }; }; then | ||
10715 | ac_cv_type_char=yes | ||
10716 | else | ||
10717 | echo "$as_me: failed program was:" >&5 | ||
10718 | cat conftest.$ac_ext >&5 | ||
10719 | ac_cv_type_char=no | ||
10720 | fi | ||
10721 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10722 | fi | ||
10723 | echo "$as_me:10723: result: $ac_cv_type_char" >&5 | ||
10724 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
10725 | |||
10726 | echo "$as_me:10726: checking size of char" >&5 | ||
10727 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
10728 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
10729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10730 | else | ||
10731 | if test "$ac_cv_type_char" = yes; then | ||
10732 | if test "$cross_compiling" = yes; then | ||
10733 | # Depending upon the size, compute the lo and hi bounds. | ||
10734 | cat >conftest.$ac_ext <<_ACEOF | ||
10735 | #line 10735 "configure" | ||
10736 | #include "confdefs.h" | ||
10737 | $ac_includes_default | ||
10738 | int | ||
10739 | main () | ||
10740 | { | ||
10741 | int _array_ [1 - 2 * !((sizeof (char)) >= 0)] | ||
10742 | ; | ||
10743 | return 0; | ||
10744 | } | ||
10745 | _ACEOF | ||
10746 | rm -f conftest.$ac_objext | ||
10747 | if { (eval echo "$as_me:10747: \"$ac_compile\"") >&5 | ||
10748 | (eval $ac_compile) 2>&5 | ||
10749 | ac_status=$? | ||
10750 | echo "$as_me:10750: \$? = $ac_status" >&5 | ||
10751 | (exit $ac_status); } && | ||
10752 | { ac_try='test -s conftest.$ac_objext' | ||
10753 | { (eval echo "$as_me:10753: \"$ac_try\"") >&5 | ||
10754 | (eval $ac_try) 2>&5 | ||
10755 | ac_status=$? | ||
10756 | echo "$as_me:10756: \$? = $ac_status" >&5 | ||
10757 | (exit $ac_status); }; }; then | ||
10758 | ac_lo=0 ac_mid=0 | ||
10759 | while :; do | ||
10760 | cat >conftest.$ac_ext <<_ACEOF | ||
10761 | #line 10761 "configure" | ||
10762 | #include "confdefs.h" | ||
10763 | $ac_includes_default | ||
10764 | int | ||
10765 | main () | ||
10766 | { | ||
10767 | int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)] | ||
10768 | ; | ||
10769 | return 0; | ||
10770 | } | ||
10771 | _ACEOF | ||
10772 | rm -f conftest.$ac_objext | ||
10773 | if { (eval echo "$as_me:10773: \"$ac_compile\"") >&5 | ||
10774 | (eval $ac_compile) 2>&5 | ||
10775 | ac_status=$? | ||
10776 | echo "$as_me:10776: \$? = $ac_status" >&5 | ||
10777 | (exit $ac_status); } && | ||
10778 | { ac_try='test -s conftest.$ac_objext' | ||
10779 | { (eval echo "$as_me:10779: \"$ac_try\"") >&5 | ||
10780 | (eval $ac_try) 2>&5 | ||
10781 | ac_status=$? | ||
10782 | echo "$as_me:10782: \$? = $ac_status" >&5 | ||
10783 | (exit $ac_status); }; }; then | ||
10784 | ac_hi=$ac_mid; break | ||
10785 | else | ||
10786 | echo "$as_me: failed program was:" >&5 | ||
10787 | cat conftest.$ac_ext >&5 | ||
10788 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10789 | fi | ||
10790 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10791 | done | ||
10792 | else | ||
10793 | echo "$as_me: failed program was:" >&5 | ||
10794 | cat conftest.$ac_ext >&5 | ||
10795 | ac_hi=-1 ac_mid=-1 | ||
10796 | while :; do | ||
10797 | cat >conftest.$ac_ext <<_ACEOF | ||
10798 | #line 10798 "configure" | ||
10799 | #include "confdefs.h" | ||
10800 | $ac_includes_default | ||
10801 | int | ||
10802 | main () | ||
10803 | { | ||
10804 | int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)] | ||
10805 | ; | ||
10806 | return 0; | ||
10807 | } | ||
10808 | _ACEOF | ||
10809 | rm -f conftest.$ac_objext | ||
10810 | if { (eval echo "$as_me:10810: \"$ac_compile\"") >&5 | ||
10811 | (eval $ac_compile) 2>&5 | ||
10812 | ac_status=$? | ||
10813 | echo "$as_me:10813: \$? = $ac_status" >&5 | ||
10814 | (exit $ac_status); } && | ||
10815 | { ac_try='test -s conftest.$ac_objext' | ||
10816 | { (eval echo "$as_me:10816: \"$ac_try\"") >&5 | ||
10817 | (eval $ac_try) 2>&5 | ||
10818 | ac_status=$? | ||
10819 | echo "$as_me:10819: \$? = $ac_status" >&5 | ||
10820 | (exit $ac_status); }; }; then | ||
10821 | ac_lo=$ac_mid; break | ||
10822 | else | ||
10823 | echo "$as_me: failed program was:" >&5 | ||
10824 | cat conftest.$ac_ext >&5 | ||
10825 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
10826 | fi | ||
10827 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10828 | done | ||
10829 | fi | ||
10830 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10831 | # Binary search between lo and hi bounds. | ||
10832 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10833 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10834 | cat >conftest.$ac_ext <<_ACEOF | ||
10835 | #line 10835 "configure" | ||
10836 | #include "confdefs.h" | ||
10837 | $ac_includes_default | ||
10838 | int | ||
10839 | main () | ||
10840 | { | ||
10841 | int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)] | ||
10842 | ; | ||
10843 | return 0; | ||
10844 | } | ||
10845 | _ACEOF | ||
10846 | rm -f conftest.$ac_objext | ||
10847 | if { (eval echo "$as_me:10847: \"$ac_compile\"") >&5 | ||
10848 | (eval $ac_compile) 2>&5 | ||
10849 | ac_status=$? | ||
10850 | echo "$as_me:10850: \$? = $ac_status" >&5 | ||
10851 | (exit $ac_status); } && | ||
10852 | { ac_try='test -s conftest.$ac_objext' | ||
10853 | { (eval echo "$as_me:10853: \"$ac_try\"") >&5 | ||
10854 | (eval $ac_try) 2>&5 | ||
10855 | ac_status=$? | ||
10856 | echo "$as_me:10856: \$? = $ac_status" >&5 | ||
10857 | (exit $ac_status); }; }; then | ||
10858 | ac_hi=$ac_mid | ||
10859 | else | ||
10860 | echo "$as_me: failed program was:" >&5 | ||
10861 | cat conftest.$ac_ext >&5 | ||
10862 | ac_lo=`expr $ac_mid + 1` | ||
10863 | fi | ||
10864 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10865 | done | ||
10866 | ac_cv_sizeof_char=$ac_lo | ||
10867 | else | ||
10868 | if test "$cross_compiling" = yes; then | ||
10869 | { { echo "$as_me:10869: error: cannot run test program while cross compiling" >&5 | ||
10870 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10871 | { (exit 1); exit 1; }; } | ||
10872 | else | ||
10873 | cat >conftest.$ac_ext <<_ACEOF | ||
10874 | #line 10874 "configure" | ||
10875 | #include "confdefs.h" | ||
10876 | $ac_includes_default | ||
10877 | int | ||
10878 | main () | ||
10879 | { | ||
10880 | FILE *f = fopen ("conftest.val", "w"); | ||
10881 | if (!f) | ||
10882 | exit (1); | ||
10883 | fprintf (f, "%d", (sizeof (char))); | ||
10884 | fclose (f); | ||
10885 | ; | ||
10886 | return 0; | ||
10887 | } | ||
10888 | _ACEOF | ||
10889 | rm -f conftest$ac_exeext | ||
10890 | if { (eval echo "$as_me:10890: \"$ac_link\"") >&5 | ||
10891 | (eval $ac_link) 2>&5 | ||
10892 | ac_status=$? | ||
10893 | echo "$as_me:10893: \$? = $ac_status" >&5 | ||
10894 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10895 | { (eval echo "$as_me:10895: \"$ac_try\"") >&5 | ||
10896 | (eval $ac_try) 2>&5 | ||
10897 | ac_status=$? | ||
10898 | echo "$as_me:10898: \$? = $ac_status" >&5 | ||
10899 | (exit $ac_status); }; }; then | ||
10900 | ac_cv_sizeof_char=`cat conftest.val` | ||
10901 | else | ||
10902 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10903 | echo "$as_me: failed program was:" >&5 | ||
10904 | cat conftest.$ac_ext >&5 | ||
10905 | fi | ||
10906 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10907 | fi | ||
10908 | fi | ||
10909 | rm -f conftest.val | ||
10910 | else | ||
10911 | ac_cv_sizeof_char=0 | ||
10912 | fi | ||
10913 | fi | ||
10914 | echo "$as_me:10914: result: $ac_cv_sizeof_char" >&5 | ||
10915 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
10916 | cat >>confdefs.h <<EOF | ||
10917 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
10918 | EOF | ||
10919 | |||
10920 | echo "$as_me:10920: checking for short int" >&5 | ||
10921 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
10922 | if test "${ac_cv_type_short_int+set}" = set; then | ||
10923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10924 | else | ||
10925 | cat >conftest.$ac_ext <<_ACEOF | ||
10926 | #line 10926 "configure" | ||
10927 | #include "confdefs.h" | ||
10928 | $ac_includes_default | ||
10929 | int | ||
10930 | main () | ||
10931 | { | ||
10932 | if ((short int *) 0) | ||
10933 | return 0; | ||
10934 | if (sizeof (short int)) | ||
10935 | return 0; | ||
10936 | ; | ||
10937 | return 0; | ||
10938 | } | ||
10939 | _ACEOF | ||
10940 | rm -f conftest.$ac_objext | ||
10941 | if { (eval echo "$as_me:10941: \"$ac_compile\"") >&5 | ||
10942 | (eval $ac_compile) 2>&5 | ||
10943 | ac_status=$? | ||
10944 | echo "$as_me:10944: \$? = $ac_status" >&5 | ||
10945 | (exit $ac_status); } && | ||
10946 | { ac_try='test -s conftest.$ac_objext' | ||
10947 | { (eval echo "$as_me:10947: \"$ac_try\"") >&5 | ||
10948 | (eval $ac_try) 2>&5 | ||
10949 | ac_status=$? | ||
10950 | echo "$as_me:10950: \$? = $ac_status" >&5 | ||
10951 | (exit $ac_status); }; }; then | ||
10952 | ac_cv_type_short_int=yes | ||
10953 | else | ||
10954 | echo "$as_me: failed program was:" >&5 | ||
10955 | cat conftest.$ac_ext >&5 | ||
10956 | ac_cv_type_short_int=no | ||
10957 | fi | ||
10958 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10959 | fi | ||
10960 | echo "$as_me:10960: result: $ac_cv_type_short_int" >&5 | ||
10961 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
10962 | |||
10963 | echo "$as_me:10963: checking size of short int" >&5 | ||
10964 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
10965 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
10966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10967 | else | ||
10968 | if test "$ac_cv_type_short_int" = yes; then | ||
10969 | if test "$cross_compiling" = yes; then | ||
10970 | # Depending upon the size, compute the lo and hi bounds. | ||
10971 | cat >conftest.$ac_ext <<_ACEOF | ||
10972 | #line 10972 "configure" | ||
10973 | #include "confdefs.h" | ||
10974 | $ac_includes_default | ||
10975 | int | ||
10976 | main () | ||
10977 | { | ||
10978 | int _array_ [1 - 2 * !((sizeof (short int)) >= 0)] | ||
10979 | ; | ||
10980 | return 0; | ||
10981 | } | ||
10982 | _ACEOF | ||
10983 | rm -f conftest.$ac_objext | ||
10984 | if { (eval echo "$as_me:10984: \"$ac_compile\"") >&5 | ||
10985 | (eval $ac_compile) 2>&5 | ||
10986 | ac_status=$? | ||
10987 | echo "$as_me:10987: \$? = $ac_status" >&5 | ||
10988 | (exit $ac_status); } && | ||
10989 | { ac_try='test -s conftest.$ac_objext' | ||
10990 | { (eval echo "$as_me:10990: \"$ac_try\"") >&5 | ||
10991 | (eval $ac_try) 2>&5 | ||
10992 | ac_status=$? | ||
10993 | echo "$as_me:10993: \$? = $ac_status" >&5 | ||
10994 | (exit $ac_status); }; }; then | ||
10995 | ac_lo=0 ac_mid=0 | ||
10996 | while :; do | ||
10997 | cat >conftest.$ac_ext <<_ACEOF | ||
10998 | #line 10998 "configure" | ||
10999 | #include "confdefs.h" | ||
11000 | $ac_includes_default | ||
11001 | int | ||
11002 | main () | ||
11003 | { | ||
11004 | int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)] | ||
11005 | ; | ||
11006 | return 0; | ||
11007 | } | ||
11008 | _ACEOF | ||
11009 | rm -f conftest.$ac_objext | ||
11010 | if { (eval echo "$as_me:11010: \"$ac_compile\"") >&5 | ||
11011 | (eval $ac_compile) 2>&5 | ||
11012 | ac_status=$? | ||
11013 | echo "$as_me:11013: \$? = $ac_status" >&5 | ||
11014 | (exit $ac_status); } && | ||
11015 | { ac_try='test -s conftest.$ac_objext' | ||
11016 | { (eval echo "$as_me:11016: \"$ac_try\"") >&5 | ||
11017 | (eval $ac_try) 2>&5 | ||
11018 | ac_status=$? | ||
11019 | echo "$as_me:11019: \$? = $ac_status" >&5 | ||
11020 | (exit $ac_status); }; }; then | ||
11021 | ac_hi=$ac_mid; break | ||
11022 | else | ||
11023 | echo "$as_me: failed program was:" >&5 | ||
11024 | cat conftest.$ac_ext >&5 | ||
11025 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11026 | fi | ||
11027 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11028 | done | ||
11029 | else | ||
11030 | echo "$as_me: failed program was:" >&5 | ||
11031 | cat conftest.$ac_ext >&5 | ||
11032 | ac_hi=-1 ac_mid=-1 | ||
11033 | while :; do | ||
11034 | cat >conftest.$ac_ext <<_ACEOF | ||
11035 | #line 11035 "configure" | ||
11036 | #include "confdefs.h" | ||
11037 | $ac_includes_default | ||
11038 | int | ||
11039 | main () | ||
11040 | { | ||
11041 | int _array_ [1 - 2 * !((sizeof (short int)) >= $ac_mid)] | ||
11042 | ; | ||
11043 | return 0; | ||
11044 | } | ||
11045 | _ACEOF | ||
11046 | rm -f conftest.$ac_objext | ||
11047 | if { (eval echo "$as_me:11047: \"$ac_compile\"") >&5 | ||
11048 | (eval $ac_compile) 2>&5 | ||
11049 | ac_status=$? | ||
11050 | echo "$as_me:11050: \$? = $ac_status" >&5 | ||
11051 | (exit $ac_status); } && | ||
11052 | { ac_try='test -s conftest.$ac_objext' | ||
11053 | { (eval echo "$as_me:11053: \"$ac_try\"") >&5 | ||
11054 | (eval $ac_try) 2>&5 | ||
11055 | ac_status=$? | ||
11056 | echo "$as_me:11056: \$? = $ac_status" >&5 | ||
11057 | (exit $ac_status); }; }; then | ||
11058 | ac_lo=$ac_mid; break | ||
11059 | else | ||
11060 | echo "$as_me: failed program was:" >&5 | ||
11061 | cat conftest.$ac_ext >&5 | ||
11062 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
11063 | fi | ||
11064 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11065 | done | ||
11066 | fi | ||
11067 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11068 | # Binary search between lo and hi bounds. | ||
11069 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11070 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11071 | cat >conftest.$ac_ext <<_ACEOF | ||
11072 | #line 11072 "configure" | ||
11073 | #include "confdefs.h" | ||
11074 | $ac_includes_default | ||
11075 | int | ||
11076 | main () | ||
11077 | { | ||
11078 | int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)] | ||
11079 | ; | ||
11080 | return 0; | ||
11081 | } | ||
11082 | _ACEOF | ||
11083 | rm -f conftest.$ac_objext | ||
11084 | if { (eval echo "$as_me:11084: \"$ac_compile\"") >&5 | ||
11085 | (eval $ac_compile) 2>&5 | ||
11086 | ac_status=$? | ||
11087 | echo "$as_me:11087: \$? = $ac_status" >&5 | ||
11088 | (exit $ac_status); } && | ||
11089 | { ac_try='test -s conftest.$ac_objext' | ||
11090 | { (eval echo "$as_me:11090: \"$ac_try\"") >&5 | ||
11091 | (eval $ac_try) 2>&5 | ||
11092 | ac_status=$? | ||
11093 | echo "$as_me:11093: \$? = $ac_status" >&5 | ||
11094 | (exit $ac_status); }; }; then | ||
11095 | ac_hi=$ac_mid | ||
11096 | else | ||
11097 | echo "$as_me: failed program was:" >&5 | ||
11098 | cat conftest.$ac_ext >&5 | ||
11099 | ac_lo=`expr $ac_mid + 1` | ||
11100 | fi | ||
11101 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11102 | done | ||
11103 | ac_cv_sizeof_short_int=$ac_lo | ||
11104 | else | ||
11105 | if test "$cross_compiling" = yes; then | ||
11106 | { { echo "$as_me:11106: error: cannot run test program while cross compiling" >&5 | ||
11107 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11108 | { (exit 1); exit 1; }; } | ||
11109 | else | ||
11110 | cat >conftest.$ac_ext <<_ACEOF | ||
11111 | #line 11111 "configure" | ||
11112 | #include "confdefs.h" | ||
11113 | $ac_includes_default | ||
11114 | int | ||
11115 | main () | ||
11116 | { | ||
11117 | FILE *f = fopen ("conftest.val", "w"); | ||
11118 | if (!f) | ||
11119 | exit (1); | ||
11120 | fprintf (f, "%d", (sizeof (short int))); | ||
11121 | fclose (f); | ||
11122 | ; | ||
11123 | return 0; | ||
11124 | } | ||
11125 | _ACEOF | ||
11126 | rm -f conftest$ac_exeext | ||
11127 | if { (eval echo "$as_me:11127: \"$ac_link\"") >&5 | ||
11128 | (eval $ac_link) 2>&5 | ||
11129 | ac_status=$? | ||
11130 | echo "$as_me:11130: \$? = $ac_status" >&5 | ||
11131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11132 | { (eval echo "$as_me:11132: \"$ac_try\"") >&5 | ||
11133 | (eval $ac_try) 2>&5 | ||
11134 | ac_status=$? | ||
11135 | echo "$as_me:11135: \$? = $ac_status" >&5 | ||
11136 | (exit $ac_status); }; }; then | ||
11137 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
11138 | else | ||
11139 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11140 | echo "$as_me: failed program was:" >&5 | ||
11141 | cat conftest.$ac_ext >&5 | ||
11142 | fi | ||
11143 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11144 | fi | ||
11145 | fi | ||
11146 | rm -f conftest.val | ||
11147 | else | ||
11148 | ac_cv_sizeof_short_int=0 | ||
11149 | fi | ||
11150 | fi | ||
11151 | echo "$as_me:11151: result: $ac_cv_sizeof_short_int" >&5 | ||
11152 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
11153 | cat >>confdefs.h <<EOF | ||
11154 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
11155 | EOF | ||
11156 | |||
11157 | echo "$as_me:11157: checking for int" >&5 | ||
11158 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
11159 | if test "${ac_cv_type_int+set}" = set; then | ||
11160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11161 | else | ||
11162 | cat >conftest.$ac_ext <<_ACEOF | ||
11163 | #line 11163 "configure" | ||
11164 | #include "confdefs.h" | ||
11165 | $ac_includes_default | ||
11166 | int | ||
11167 | main () | ||
11168 | { | ||
11169 | if ((int *) 0) | ||
11170 | return 0; | ||
11171 | if (sizeof (int)) | ||
11172 | return 0; | ||
11173 | ; | ||
11174 | return 0; | ||
11175 | } | ||
11176 | _ACEOF | ||
11177 | rm -f conftest.$ac_objext | ||
11178 | if { (eval echo "$as_me:11178: \"$ac_compile\"") >&5 | ||
11179 | (eval $ac_compile) 2>&5 | ||
11180 | ac_status=$? | ||
11181 | echo "$as_me:11181: \$? = $ac_status" >&5 | ||
11182 | (exit $ac_status); } && | ||
11183 | { ac_try='test -s conftest.$ac_objext' | ||
11184 | { (eval echo "$as_me:11184: \"$ac_try\"") >&5 | ||
11185 | (eval $ac_try) 2>&5 | ||
11186 | ac_status=$? | ||
11187 | echo "$as_me:11187: \$? = $ac_status" >&5 | ||
11188 | (exit $ac_status); }; }; then | ||
11189 | ac_cv_type_int=yes | ||
11190 | else | ||
11191 | echo "$as_me: failed program was:" >&5 | ||
11192 | cat conftest.$ac_ext >&5 | ||
11193 | ac_cv_type_int=no | ||
11194 | fi | ||
11195 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11196 | fi | ||
11197 | echo "$as_me:11197: result: $ac_cv_type_int" >&5 | ||
11198 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
11199 | |||
11200 | echo "$as_me:11200: checking size of int" >&5 | ||
11201 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
11202 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
11203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11204 | else | ||
11205 | if test "$ac_cv_type_int" = yes; then | ||
11206 | if test "$cross_compiling" = yes; then | ||
11207 | # Depending upon the size, compute the lo and hi bounds. | ||
11208 | cat >conftest.$ac_ext <<_ACEOF | ||
11209 | #line 11209 "configure" | ||
11210 | #include "confdefs.h" | ||
11211 | $ac_includes_default | ||
11212 | int | ||
11213 | main () | ||
11214 | { | ||
11215 | int _array_ [1 - 2 * !((sizeof (int)) >= 0)] | ||
11216 | ; | ||
11217 | return 0; | ||
11218 | } | ||
11219 | _ACEOF | ||
11220 | rm -f conftest.$ac_objext | ||
11221 | if { (eval echo "$as_me:11221: \"$ac_compile\"") >&5 | ||
11222 | (eval $ac_compile) 2>&5 | ||
11223 | ac_status=$? | ||
11224 | echo "$as_me:11224: \$? = $ac_status" >&5 | ||
11225 | (exit $ac_status); } && | ||
11226 | { ac_try='test -s conftest.$ac_objext' | ||
11227 | { (eval echo "$as_me:11227: \"$ac_try\"") >&5 | ||
11228 | (eval $ac_try) 2>&5 | ||
11229 | ac_status=$? | ||
11230 | echo "$as_me:11230: \$? = $ac_status" >&5 | ||
11231 | (exit $ac_status); }; }; then | ||
11232 | ac_lo=0 ac_mid=0 | ||
11233 | while :; do | ||
11234 | cat >conftest.$ac_ext <<_ACEOF | ||
11235 | #line 11235 "configure" | ||
11236 | #include "confdefs.h" | ||
11237 | $ac_includes_default | ||
11238 | int | ||
11239 | main () | ||
11240 | { | ||
11241 | int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] | ||
11242 | ; | ||
11243 | return 0; | ||
11244 | } | ||
11245 | _ACEOF | ||
11246 | rm -f conftest.$ac_objext | ||
11247 | if { (eval echo "$as_me:11247: \"$ac_compile\"") >&5 | ||
11248 | (eval $ac_compile) 2>&5 | ||
11249 | ac_status=$? | ||
11250 | echo "$as_me:11250: \$? = $ac_status" >&5 | ||
11251 | (exit $ac_status); } && | ||
11252 | { ac_try='test -s conftest.$ac_objext' | ||
11253 | { (eval echo "$as_me:11253: \"$ac_try\"") >&5 | ||
11254 | (eval $ac_try) 2>&5 | ||
11255 | ac_status=$? | ||
11256 | echo "$as_me:11256: \$? = $ac_status" >&5 | ||
11257 | (exit $ac_status); }; }; then | ||
11258 | ac_hi=$ac_mid; break | ||
11259 | else | ||
11260 | echo "$as_me: failed program was:" >&5 | ||
11261 | cat conftest.$ac_ext >&5 | ||
11262 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11263 | fi | ||
11264 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11265 | done | ||
11266 | else | ||
11267 | echo "$as_me: failed program was:" >&5 | ||
11268 | cat conftest.$ac_ext >&5 | ||
11269 | ac_hi=-1 ac_mid=-1 | ||
11270 | while :; do | ||
11271 | cat >conftest.$ac_ext <<_ACEOF | ||
11272 | #line 11272 "configure" | ||
11273 | #include "confdefs.h" | ||
11274 | $ac_includes_default | ||
11275 | int | ||
11276 | main () | ||
11277 | { | ||
11278 | int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)] | ||
11279 | ; | ||
11280 | return 0; | ||
11281 | } | ||
11282 | _ACEOF | ||
11283 | rm -f conftest.$ac_objext | ||
11284 | if { (eval echo "$as_me:11284: \"$ac_compile\"") >&5 | ||
11285 | (eval $ac_compile) 2>&5 | ||
11286 | ac_status=$? | ||
11287 | echo "$as_me:11287: \$? = $ac_status" >&5 | ||
11288 | (exit $ac_status); } && | ||
11289 | { ac_try='test -s conftest.$ac_objext' | ||
11290 | { (eval echo "$as_me:11290: \"$ac_try\"") >&5 | ||
11291 | (eval $ac_try) 2>&5 | ||
11292 | ac_status=$? | ||
11293 | echo "$as_me:11293: \$? = $ac_status" >&5 | ||
11294 | (exit $ac_status); }; }; then | ||
11295 | ac_lo=$ac_mid; break | ||
11296 | else | ||
11297 | echo "$as_me: failed program was:" >&5 | ||
11298 | cat conftest.$ac_ext >&5 | ||
11299 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
11300 | fi | ||
11301 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11302 | done | ||
11303 | fi | ||
11304 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11305 | # Binary search between lo and hi bounds. | ||
11306 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11307 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11308 | cat >conftest.$ac_ext <<_ACEOF | ||
11309 | #line 11309 "configure" | ||
11310 | #include "confdefs.h" | ||
11311 | $ac_includes_default | ||
11312 | int | ||
11313 | main () | ||
11314 | { | ||
11315 | int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] | ||
11316 | ; | ||
11317 | return 0; | ||
11318 | } | ||
11319 | _ACEOF | ||
11320 | rm -f conftest.$ac_objext | ||
11321 | if { (eval echo "$as_me:11321: \"$ac_compile\"") >&5 | ||
11322 | (eval $ac_compile) 2>&5 | ||
11323 | ac_status=$? | ||
11324 | echo "$as_me:11324: \$? = $ac_status" >&5 | ||
11325 | (exit $ac_status); } && | ||
11326 | { ac_try='test -s conftest.$ac_objext' | ||
11327 | { (eval echo "$as_me:11327: \"$ac_try\"") >&5 | ||
11328 | (eval $ac_try) 2>&5 | ||
11329 | ac_status=$? | ||
11330 | echo "$as_me:11330: \$? = $ac_status" >&5 | ||
11331 | (exit $ac_status); }; }; then | ||
11332 | ac_hi=$ac_mid | ||
11333 | else | ||
11334 | echo "$as_me: failed program was:" >&5 | ||
11335 | cat conftest.$ac_ext >&5 | ||
11336 | ac_lo=`expr $ac_mid + 1` | ||
11337 | fi | ||
11338 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11339 | done | ||
11340 | ac_cv_sizeof_int=$ac_lo | ||
11341 | else | ||
11342 | if test "$cross_compiling" = yes; then | ||
11343 | { { echo "$as_me:11343: error: cannot run test program while cross compiling" >&5 | ||
11344 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11345 | { (exit 1); exit 1; }; } | ||
11346 | else | ||
11347 | cat >conftest.$ac_ext <<_ACEOF | ||
11348 | #line 11348 "configure" | ||
11349 | #include "confdefs.h" | ||
11350 | $ac_includes_default | ||
11351 | int | ||
11352 | main () | ||
11353 | { | ||
11354 | FILE *f = fopen ("conftest.val", "w"); | ||
11355 | if (!f) | ||
11356 | exit (1); | ||
11357 | fprintf (f, "%d", (sizeof (int))); | ||
11358 | fclose (f); | ||
11359 | ; | ||
11360 | return 0; | ||
11361 | } | ||
11362 | _ACEOF | ||
11363 | rm -f conftest$ac_exeext | ||
11364 | if { (eval echo "$as_me:11364: \"$ac_link\"") >&5 | ||
11365 | (eval $ac_link) 2>&5 | ||
11366 | ac_status=$? | ||
11367 | echo "$as_me:11367: \$? = $ac_status" >&5 | ||
11368 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11369 | { (eval echo "$as_me:11369: \"$ac_try\"") >&5 | ||
11370 | (eval $ac_try) 2>&5 | ||
11371 | ac_status=$? | ||
11372 | echo "$as_me:11372: \$? = $ac_status" >&5 | ||
11373 | (exit $ac_status); }; }; then | ||
11374 | ac_cv_sizeof_int=`cat conftest.val` | ||
11375 | else | ||
11376 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11377 | echo "$as_me: failed program was:" >&5 | ||
11378 | cat conftest.$ac_ext >&5 | ||
11379 | fi | ||
11380 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11381 | fi | ||
11382 | fi | ||
11383 | rm -f conftest.val | ||
11384 | else | ||
11385 | ac_cv_sizeof_int=0 | ||
11386 | fi | ||
11387 | fi | ||
11388 | echo "$as_me:11388: result: $ac_cv_sizeof_int" >&5 | ||
11389 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
11390 | cat >>confdefs.h <<EOF | ||
11391 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
11392 | EOF | ||
11393 | |||
11394 | echo "$as_me:11394: checking for long int" >&5 | ||
11395 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
11396 | if test "${ac_cv_type_long_int+set}" = set; then | ||
11397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11398 | else | ||
11399 | cat >conftest.$ac_ext <<_ACEOF | ||
11400 | #line 11400 "configure" | ||
11401 | #include "confdefs.h" | ||
11402 | $ac_includes_default | ||
11403 | int | ||
11404 | main () | ||
11405 | { | ||
11406 | if ((long int *) 0) | ||
11407 | return 0; | ||
11408 | if (sizeof (long int)) | ||
11409 | return 0; | ||
11410 | ; | ||
11411 | return 0; | ||
11412 | } | ||
11413 | _ACEOF | ||
11414 | rm -f conftest.$ac_objext | ||
11415 | if { (eval echo "$as_me:11415: \"$ac_compile\"") >&5 | ||
11416 | (eval $ac_compile) 2>&5 | ||
11417 | ac_status=$? | ||
11418 | echo "$as_me:11418: \$? = $ac_status" >&5 | ||
11419 | (exit $ac_status); } && | ||
11420 | { ac_try='test -s conftest.$ac_objext' | ||
11421 | { (eval echo "$as_me:11421: \"$ac_try\"") >&5 | ||
11422 | (eval $ac_try) 2>&5 | ||
11423 | ac_status=$? | ||
11424 | echo "$as_me:11424: \$? = $ac_status" >&5 | ||
11425 | (exit $ac_status); }; }; then | ||
11426 | ac_cv_type_long_int=yes | ||
11427 | else | ||
11428 | echo "$as_me: failed program was:" >&5 | ||
11429 | cat conftest.$ac_ext >&5 | ||
11430 | ac_cv_type_long_int=no | ||
11431 | fi | ||
11432 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11433 | fi | ||
11434 | echo "$as_me:11434: result: $ac_cv_type_long_int" >&5 | ||
11435 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
11436 | |||
11437 | echo "$as_me:11437: checking size of long int" >&5 | ||
11438 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
11439 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
11440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11441 | else | ||
11442 | if test "$ac_cv_type_long_int" = yes; then | ||
11443 | if test "$cross_compiling" = yes; then | ||
11444 | # Depending upon the size, compute the lo and hi bounds. | ||
11445 | cat >conftest.$ac_ext <<_ACEOF | ||
11446 | #line 11446 "configure" | ||
11447 | #include "confdefs.h" | ||
11448 | $ac_includes_default | ||
11449 | int | ||
11450 | main () | ||
11451 | { | ||
11452 | int _array_ [1 - 2 * !((sizeof (long int)) >= 0)] | ||
11453 | ; | ||
11454 | return 0; | ||
11455 | } | ||
11456 | _ACEOF | ||
11457 | rm -f conftest.$ac_objext | ||
11458 | if { (eval echo "$as_me:11458: \"$ac_compile\"") >&5 | ||
11459 | (eval $ac_compile) 2>&5 | ||
11460 | ac_status=$? | ||
11461 | echo "$as_me:11461: \$? = $ac_status" >&5 | ||
11462 | (exit $ac_status); } && | ||
11463 | { ac_try='test -s conftest.$ac_objext' | ||
11464 | { (eval echo "$as_me:11464: \"$ac_try\"") >&5 | ||
11465 | (eval $ac_try) 2>&5 | ||
11466 | ac_status=$? | ||
11467 | echo "$as_me:11467: \$? = $ac_status" >&5 | ||
11468 | (exit $ac_status); }; }; then | ||
11469 | ac_lo=0 ac_mid=0 | ||
11470 | while :; do | ||
11471 | cat >conftest.$ac_ext <<_ACEOF | ||
11472 | #line 11472 "configure" | ||
11473 | #include "confdefs.h" | ||
11474 | $ac_includes_default | ||
11475 | int | ||
11476 | main () | ||
11477 | { | ||
11478 | int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)] | ||
11479 | ; | ||
11480 | return 0; | ||
11481 | } | ||
11482 | _ACEOF | ||
11483 | rm -f conftest.$ac_objext | ||
11484 | if { (eval echo "$as_me:11484: \"$ac_compile\"") >&5 | ||
11485 | (eval $ac_compile) 2>&5 | ||
11486 | ac_status=$? | ||
11487 | echo "$as_me:11487: \$? = $ac_status" >&5 | ||
11488 | (exit $ac_status); } && | ||
11489 | { ac_try='test -s conftest.$ac_objext' | ||
11490 | { (eval echo "$as_me:11490: \"$ac_try\"") >&5 | ||
11491 | (eval $ac_try) 2>&5 | ||
11492 | ac_status=$? | ||
11493 | echo "$as_me:11493: \$? = $ac_status" >&5 | ||
11494 | (exit $ac_status); }; }; then | ||
11495 | ac_hi=$ac_mid; break | ||
11496 | else | ||
11497 | echo "$as_me: failed program was:" >&5 | ||
11498 | cat conftest.$ac_ext >&5 | ||
11499 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11500 | fi | ||
11501 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11502 | done | ||
11503 | else | ||
11504 | echo "$as_me: failed program was:" >&5 | ||
11505 | cat conftest.$ac_ext >&5 | ||
11506 | ac_hi=-1 ac_mid=-1 | ||
11507 | while :; do | ||
11508 | cat >conftest.$ac_ext <<_ACEOF | ||
11509 | #line 11509 "configure" | ||
11510 | #include "confdefs.h" | ||
11511 | $ac_includes_default | ||
11512 | int | ||
11513 | main () | ||
11514 | { | ||
11515 | int _array_ [1 - 2 * !((sizeof (long int)) >= $ac_mid)] | ||
11516 | ; | ||
11517 | return 0; | ||
11518 | } | ||
11519 | _ACEOF | ||
11520 | rm -f conftest.$ac_objext | ||
11521 | if { (eval echo "$as_me:11521: \"$ac_compile\"") >&5 | ||
11522 | (eval $ac_compile) 2>&5 | ||
11523 | ac_status=$? | ||
11524 | echo "$as_me:11524: \$? = $ac_status" >&5 | ||
11525 | (exit $ac_status); } && | ||
11526 | { ac_try='test -s conftest.$ac_objext' | ||
11527 | { (eval echo "$as_me:11527: \"$ac_try\"") >&5 | ||
11528 | (eval $ac_try) 2>&5 | ||
11529 | ac_status=$? | ||
11530 | echo "$as_me:11530: \$? = $ac_status" >&5 | ||
11531 | (exit $ac_status); }; }; then | ||
11532 | ac_lo=$ac_mid; break | ||
11533 | else | ||
11534 | echo "$as_me: failed program was:" >&5 | ||
11535 | cat conftest.$ac_ext >&5 | ||
11536 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
11537 | fi | ||
11538 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11539 | done | ||
11540 | fi | ||
11541 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11542 | # Binary search between lo and hi bounds. | ||
11543 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11544 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11545 | cat >conftest.$ac_ext <<_ACEOF | ||
11546 | #line 11546 "configure" | ||
11547 | #include "confdefs.h" | ||
11548 | $ac_includes_default | ||
11549 | int | ||
11550 | main () | ||
11551 | { | ||
11552 | int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)] | ||
11553 | ; | ||
11554 | return 0; | ||
11555 | } | ||
11556 | _ACEOF | ||
11557 | rm -f conftest.$ac_objext | ||
11558 | if { (eval echo "$as_me:11558: \"$ac_compile\"") >&5 | ||
11559 | (eval $ac_compile) 2>&5 | ||
11560 | ac_status=$? | ||
11561 | echo "$as_me:11561: \$? = $ac_status" >&5 | ||
11562 | (exit $ac_status); } && | ||
11563 | { ac_try='test -s conftest.$ac_objext' | ||
11564 | { (eval echo "$as_me:11564: \"$ac_try\"") >&5 | ||
11565 | (eval $ac_try) 2>&5 | ||
11566 | ac_status=$? | ||
11567 | echo "$as_me:11567: \$? = $ac_status" >&5 | ||
11568 | (exit $ac_status); }; }; then | ||
11569 | ac_hi=$ac_mid | ||
11570 | else | ||
11571 | echo "$as_me: failed program was:" >&5 | ||
11572 | cat conftest.$ac_ext >&5 | ||
11573 | ac_lo=`expr $ac_mid + 1` | ||
11574 | fi | ||
11575 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11576 | done | ||
11577 | ac_cv_sizeof_long_int=$ac_lo | ||
11578 | else | ||
11579 | if test "$cross_compiling" = yes; then | ||
11580 | { { echo "$as_me:11580: error: cannot run test program while cross compiling" >&5 | ||
11581 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11582 | { (exit 1); exit 1; }; } | ||
11583 | else | ||
11584 | cat >conftest.$ac_ext <<_ACEOF | ||
11585 | #line 11585 "configure" | ||
11586 | #include "confdefs.h" | ||
11587 | $ac_includes_default | ||
11588 | int | ||
11589 | main () | ||
11590 | { | ||
11591 | FILE *f = fopen ("conftest.val", "w"); | ||
11592 | if (!f) | ||
11593 | exit (1); | ||
11594 | fprintf (f, "%d", (sizeof (long int))); | ||
11595 | fclose (f); | ||
11596 | ; | ||
11597 | return 0; | ||
11598 | } | ||
11599 | _ACEOF | ||
11600 | rm -f conftest$ac_exeext | ||
11601 | if { (eval echo "$as_me:11601: \"$ac_link\"") >&5 | ||
11602 | (eval $ac_link) 2>&5 | ||
11603 | ac_status=$? | ||
11604 | echo "$as_me:11604: \$? = $ac_status" >&5 | ||
11605 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11606 | { (eval echo "$as_me:11606: \"$ac_try\"") >&5 | ||
11607 | (eval $ac_try) 2>&5 | ||
11608 | ac_status=$? | ||
11609 | echo "$as_me:11609: \$? = $ac_status" >&5 | ||
11610 | (exit $ac_status); }; }; then | ||
11611 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
11612 | else | ||
11613 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11614 | echo "$as_me: failed program was:" >&5 | ||
11615 | cat conftest.$ac_ext >&5 | ||
11616 | fi | ||
11617 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11618 | fi | ||
11619 | fi | ||
11620 | rm -f conftest.val | ||
11621 | else | ||
11622 | ac_cv_sizeof_long_int=0 | ||
11623 | fi | ||
11624 | fi | ||
11625 | echo "$as_me:11625: result: $ac_cv_sizeof_long_int" >&5 | ||
11626 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
11627 | cat >>confdefs.h <<EOF | ||
11628 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
11629 | EOF | ||
11630 | |||
11631 | echo "$as_me:11631: checking for long long int" >&5 | ||
11632 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
11633 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
11634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11635 | else | ||
11636 | cat >conftest.$ac_ext <<_ACEOF | ||
11637 | #line 11637 "configure" | ||
11638 | #include "confdefs.h" | ||
11639 | $ac_includes_default | ||
11640 | int | ||
11641 | main () | ||
11642 | { | ||
11643 | if ((long long int *) 0) | ||
11644 | return 0; | ||
11645 | if (sizeof (long long int)) | ||
11646 | return 0; | ||
11647 | ; | ||
11648 | return 0; | ||
11649 | } | ||
11650 | _ACEOF | ||
11651 | rm -f conftest.$ac_objext | ||
11652 | if { (eval echo "$as_me:11652: \"$ac_compile\"") >&5 | ||
11653 | (eval $ac_compile) 2>&5 | ||
11654 | ac_status=$? | ||
11655 | echo "$as_me:11655: \$? = $ac_status" >&5 | ||
11656 | (exit $ac_status); } && | ||
11657 | { ac_try='test -s conftest.$ac_objext' | ||
11658 | { (eval echo "$as_me:11658: \"$ac_try\"") >&5 | ||
11659 | (eval $ac_try) 2>&5 | ||
11660 | ac_status=$? | ||
11661 | echo "$as_me:11661: \$? = $ac_status" >&5 | ||
11662 | (exit $ac_status); }; }; then | ||
11663 | ac_cv_type_long_long_int=yes | ||
11664 | else | ||
11665 | echo "$as_me: failed program was:" >&5 | ||
11666 | cat conftest.$ac_ext >&5 | ||
11667 | ac_cv_type_long_long_int=no | ||
11668 | fi | ||
11669 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11670 | fi | ||
11671 | echo "$as_me:11671: result: $ac_cv_type_long_long_int" >&5 | ||
11672 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
11673 | |||
11674 | echo "$as_me:11674: checking size of long long int" >&5 | ||
11675 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
11676 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
11677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11678 | else | ||
11679 | if test "$ac_cv_type_long_long_int" = yes; then | ||
11680 | if test "$cross_compiling" = yes; then | ||
11681 | # Depending upon the size, compute the lo and hi bounds. | ||
11682 | cat >conftest.$ac_ext <<_ACEOF | ||
11683 | #line 11683 "configure" | ||
11684 | #include "confdefs.h" | ||
11685 | $ac_includes_default | ||
11686 | int | ||
11687 | main () | ||
11688 | { | ||
11689 | int _array_ [1 - 2 * !((sizeof (long long int)) >= 0)] | ||
11690 | ; | ||
11691 | return 0; | ||
11692 | } | ||
11693 | _ACEOF | ||
11694 | rm -f conftest.$ac_objext | ||
11695 | if { (eval echo "$as_me:11695: \"$ac_compile\"") >&5 | ||
11696 | (eval $ac_compile) 2>&5 | ||
11697 | ac_status=$? | ||
11698 | echo "$as_me:11698: \$? = $ac_status" >&5 | ||
11699 | (exit $ac_status); } && | ||
11700 | { ac_try='test -s conftest.$ac_objext' | ||
11701 | { (eval echo "$as_me:11701: \"$ac_try\"") >&5 | ||
11702 | (eval $ac_try) 2>&5 | ||
11703 | ac_status=$? | ||
11704 | echo "$as_me:11704: \$? = $ac_status" >&5 | ||
11705 | (exit $ac_status); }; }; then | ||
11706 | ac_lo=0 ac_mid=0 | ||
11707 | while :; do | ||
11708 | cat >conftest.$ac_ext <<_ACEOF | ||
11709 | #line 11709 "configure" | ||
11710 | #include "confdefs.h" | ||
11711 | $ac_includes_default | ||
11712 | int | ||
11713 | main () | ||
11714 | { | ||
11715 | int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)] | ||
11716 | ; | ||
11717 | return 0; | ||
11718 | } | ||
11719 | _ACEOF | ||
11720 | rm -f conftest.$ac_objext | ||
11721 | if { (eval echo "$as_me:11721: \"$ac_compile\"") >&5 | ||
11722 | (eval $ac_compile) 2>&5 | ||
11723 | ac_status=$? | ||
11724 | echo "$as_me:11724: \$? = $ac_status" >&5 | ||
11725 | (exit $ac_status); } && | ||
11726 | { ac_try='test -s conftest.$ac_objext' | ||
11727 | { (eval echo "$as_me:11727: \"$ac_try\"") >&5 | ||
11728 | (eval $ac_try) 2>&5 | ||
11729 | ac_status=$? | ||
11730 | echo "$as_me:11730: \$? = $ac_status" >&5 | ||
11731 | (exit $ac_status); }; }; then | ||
11732 | ac_hi=$ac_mid; break | ||
11733 | else | ||
11734 | echo "$as_me: failed program was:" >&5 | ||
11735 | cat conftest.$ac_ext >&5 | ||
11736 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11737 | fi | ||
11738 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11739 | done | ||
11740 | else | ||
11741 | echo "$as_me: failed program was:" >&5 | ||
11742 | cat conftest.$ac_ext >&5 | ||
11743 | ac_hi=-1 ac_mid=-1 | ||
11744 | while :; do | ||
11745 | cat >conftest.$ac_ext <<_ACEOF | ||
11746 | #line 11746 "configure" | ||
11747 | #include "confdefs.h" | ||
11748 | $ac_includes_default | ||
11749 | int | ||
11750 | main () | ||
11751 | { | ||
11752 | int _array_ [1 - 2 * !((sizeof (long long int)) >= $ac_mid)] | ||
11753 | ; | ||
11754 | return 0; | ||
11755 | } | ||
11756 | _ACEOF | ||
11757 | rm -f conftest.$ac_objext | ||
11758 | if { (eval echo "$as_me:11758: \"$ac_compile\"") >&5 | ||
11759 | (eval $ac_compile) 2>&5 | ||
11760 | ac_status=$? | ||
11761 | echo "$as_me:11761: \$? = $ac_status" >&5 | ||
11762 | (exit $ac_status); } && | ||
11763 | { ac_try='test -s conftest.$ac_objext' | ||
11764 | { (eval echo "$as_me:11764: \"$ac_try\"") >&5 | ||
11765 | (eval $ac_try) 2>&5 | ||
11766 | ac_status=$? | ||
11767 | echo "$as_me:11767: \$? = $ac_status" >&5 | ||
11768 | (exit $ac_status); }; }; then | ||
11769 | ac_lo=$ac_mid; break | ||
11770 | else | ||
11771 | echo "$as_me: failed program was:" >&5 | ||
11772 | cat conftest.$ac_ext >&5 | ||
11773 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
11774 | fi | ||
11775 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11776 | done | ||
11777 | fi | ||
11778 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11779 | # Binary search between lo and hi bounds. | ||
11780 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11781 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11782 | cat >conftest.$ac_ext <<_ACEOF | ||
11783 | #line 11783 "configure" | ||
11784 | #include "confdefs.h" | ||
11785 | $ac_includes_default | ||
11786 | int | ||
11787 | main () | ||
11788 | { | ||
11789 | int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)] | ||
11790 | ; | ||
11791 | return 0; | ||
11792 | } | ||
11793 | _ACEOF | ||
11794 | rm -f conftest.$ac_objext | ||
11795 | if { (eval echo "$as_me:11795: \"$ac_compile\"") >&5 | ||
11796 | (eval $ac_compile) 2>&5 | ||
11797 | ac_status=$? | ||
11798 | echo "$as_me:11798: \$? = $ac_status" >&5 | ||
11799 | (exit $ac_status); } && | ||
11800 | { ac_try='test -s conftest.$ac_objext' | ||
11801 | { (eval echo "$as_me:11801: \"$ac_try\"") >&5 | ||
11802 | (eval $ac_try) 2>&5 | ||
11803 | ac_status=$? | ||
11804 | echo "$as_me:11804: \$? = $ac_status" >&5 | ||
11805 | (exit $ac_status); }; }; then | ||
11806 | ac_hi=$ac_mid | ||
11807 | else | ||
11808 | echo "$as_me: failed program was:" >&5 | ||
11809 | cat conftest.$ac_ext >&5 | ||
11810 | ac_lo=`expr $ac_mid + 1` | ||
11811 | fi | ||
11812 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11813 | done | ||
11814 | ac_cv_sizeof_long_long_int=$ac_lo | ||
11815 | else | ||
11816 | if test "$cross_compiling" = yes; then | ||
11817 | { { echo "$as_me:11817: error: cannot run test program while cross compiling" >&5 | ||
11818 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11819 | { (exit 1); exit 1; }; } | ||
11820 | else | ||
11821 | cat >conftest.$ac_ext <<_ACEOF | ||
11822 | #line 11822 "configure" | ||
11823 | #include "confdefs.h" | ||
11824 | $ac_includes_default | ||
11825 | int | ||
11826 | main () | ||
11827 | { | ||
11828 | FILE *f = fopen ("conftest.val", "w"); | ||
11829 | if (!f) | ||
11830 | exit (1); | ||
11831 | fprintf (f, "%d", (sizeof (long long int))); | ||
11832 | fclose (f); | ||
11833 | ; | ||
11834 | return 0; | ||
11835 | } | ||
11836 | _ACEOF | ||
11837 | rm -f conftest$ac_exeext | ||
11838 | if { (eval echo "$as_me:11838: \"$ac_link\"") >&5 | ||
11839 | (eval $ac_link) 2>&5 | ||
11840 | ac_status=$? | ||
11841 | echo "$as_me:11841: \$? = $ac_status" >&5 | ||
11842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11843 | { (eval echo "$as_me:11843: \"$ac_try\"") >&5 | ||
11844 | (eval $ac_try) 2>&5 | ||
11845 | ac_status=$? | ||
11846 | echo "$as_me:11846: \$? = $ac_status" >&5 | ||
11847 | (exit $ac_status); }; }; then | ||
11848 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
11849 | else | ||
11850 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11851 | echo "$as_me: failed program was:" >&5 | ||
11852 | cat conftest.$ac_ext >&5 | ||
11853 | fi | ||
11854 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11855 | fi | ||
11856 | fi | ||
11857 | rm -f conftest.val | ||
11858 | else | ||
11859 | ac_cv_sizeof_long_long_int=0 | ||
11860 | fi | ||
11861 | fi | ||
11862 | echo "$as_me:11862: result: $ac_cv_sizeof_long_long_int" >&5 | ||
11863 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
11864 | cat >>confdefs.h <<EOF | ||
11865 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
11866 | EOF | ||
11867 | |||
11868 | # Sanity check long long for some platforms (AIX) | ||
11869 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
11870 | ac_cv_sizeof_long_long_int=0 | ||
11871 | fi | ||
11872 | |||
11873 | # More checks for data types | ||
11874 | echo "$as_me:11874: checking for u_int type" >&5 | ||
11875 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
11876 | if test "${ac_cv_have_u_int+set}" = set; then | ||
11877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11878 | else | ||
11879 | |||
11880 | cat >conftest.$ac_ext <<_ACEOF | ||
11881 | #line 11881 "configure" | ||
11882 | #include "confdefs.h" | ||
11883 | #include <sys/types.h> | ||
11884 | int | ||
11885 | main () | ||
11886 | { | ||
11887 | u_int a; a = 1; | ||
11888 | ; | ||
11889 | return 0; | ||
11890 | } | ||
11891 | _ACEOF | ||
11892 | rm -f conftest.$ac_objext | ||
11893 | if { (eval echo "$as_me:11893: \"$ac_compile\"") >&5 | ||
11894 | (eval $ac_compile) 2>&5 | ||
11895 | ac_status=$? | ||
11896 | echo "$as_me:11896: \$? = $ac_status" >&5 | ||
11897 | (exit $ac_status); } && | ||
11898 | { ac_try='test -s conftest.$ac_objext' | ||
11899 | { (eval echo "$as_me:11899: \"$ac_try\"") >&5 | ||
11900 | (eval $ac_try) 2>&5 | ||
11901 | ac_status=$? | ||
11902 | echo "$as_me:11902: \$? = $ac_status" >&5 | ||
11903 | (exit $ac_status); }; }; then | ||
11904 | ac_cv_have_u_int="yes" | ||
11905 | else | ||
11906 | echo "$as_me: failed program was:" >&5 | ||
11907 | cat conftest.$ac_ext >&5 | ||
11908 | ac_cv_have_u_int="no" | ||
11909 | |||
11910 | fi | ||
11911 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11912 | |||
11913 | fi | ||
11914 | echo "$as_me:11914: result: $ac_cv_have_u_int" >&5 | ||
11915 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
11916 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
11917 | cat >>confdefs.h <<\EOF | ||
11918 | #define HAVE_U_INT 1 | ||
11919 | EOF | ||
11920 | |||
11921 | have_u_int=1 | ||
11922 | fi | ||
11923 | |||
11924 | echo "$as_me:11924: checking for intXX_t types" >&5 | ||
11925 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
11926 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
11927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11928 | else | ||
11929 | |||
11930 | cat >conftest.$ac_ext <<_ACEOF | ||
11931 | #line 11931 "configure" | ||
11932 | #include "confdefs.h" | ||
11933 | #include <sys/types.h> | ||
11934 | int | ||
11935 | main () | ||
11936 | { | ||
11937 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11938 | ; | ||
11939 | return 0; | ||
11940 | } | ||
11941 | _ACEOF | ||
11942 | rm -f conftest.$ac_objext | ||
11943 | if { (eval echo "$as_me:11943: \"$ac_compile\"") >&5 | ||
11944 | (eval $ac_compile) 2>&5 | ||
11945 | ac_status=$? | ||
11946 | echo "$as_me:11946: \$? = $ac_status" >&5 | ||
11947 | (exit $ac_status); } && | ||
11948 | { ac_try='test -s conftest.$ac_objext' | ||
11949 | { (eval echo "$as_me:11949: \"$ac_try\"") >&5 | ||
11950 | (eval $ac_try) 2>&5 | ||
11951 | ac_status=$? | ||
11952 | echo "$as_me:11952: \$? = $ac_status" >&5 | ||
11953 | (exit $ac_status); }; }; then | ||
11954 | ac_cv_have_intxx_t="yes" | ||
11955 | else | ||
11956 | echo "$as_me: failed program was:" >&5 | ||
11957 | cat conftest.$ac_ext >&5 | ||
11958 | ac_cv_have_intxx_t="no" | ||
11959 | |||
11960 | fi | ||
11961 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11962 | |||
11963 | fi | ||
11964 | echo "$as_me:11964: result: $ac_cv_have_intxx_t" >&5 | ||
11965 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
11966 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
11967 | cat >>confdefs.h <<\EOF | ||
11968 | #define HAVE_INTXX_T 1 | ||
11969 | EOF | ||
11970 | |||
11971 | have_intxx_t=1 | ||
11972 | fi | ||
11973 | |||
11974 | if (test -z "$have_intxx_t" && \ | ||
11975 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
11976 | then | ||
11977 | echo "$as_me:11977: checking for intXX_t types in stdint.h" >&5 | ||
11978 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
11979 | cat >conftest.$ac_ext <<_ACEOF | ||
11980 | #line 11980 "configure" | ||
11981 | #include "confdefs.h" | ||
11982 | #include <stdint.h> | ||
11983 | int | ||
11984 | main () | ||
11985 | { | ||
11986 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11987 | ; | ||
11988 | return 0; | ||
11989 | } | ||
11990 | _ACEOF | ||
11991 | rm -f conftest.$ac_objext | ||
11992 | if { (eval echo "$as_me:11992: \"$ac_compile\"") >&5 | ||
11993 | (eval $ac_compile) 2>&5 | ||
11994 | ac_status=$? | ||
11995 | echo "$as_me:11995: \$? = $ac_status" >&5 | ||
11996 | (exit $ac_status); } && | ||
11997 | { ac_try='test -s conftest.$ac_objext' | ||
11998 | { (eval echo "$as_me:11998: \"$ac_try\"") >&5 | ||
11999 | (eval $ac_try) 2>&5 | ||
12000 | ac_status=$? | ||
12001 | echo "$as_me:12001: \$? = $ac_status" >&5 | ||
12002 | (exit $ac_status); }; }; then | ||
12003 | |||
12004 | cat >>confdefs.h <<\EOF | ||
12005 | #define HAVE_INTXX_T 1 | ||
12006 | EOF | ||
12007 | |||
12008 | echo "$as_me:12008: result: yes" >&5 | ||
12009 | echo "${ECHO_T}yes" >&6 | ||
12010 | |||
12011 | else | ||
12012 | echo "$as_me: failed program was:" >&5 | ||
12013 | cat conftest.$ac_ext >&5 | ||
12014 | echo "$as_me:12014: result: no" >&5 | ||
12015 | echo "${ECHO_T}no" >&6 | ||
12016 | |||
12017 | fi | ||
12018 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12019 | fi | ||
12020 | |||
12021 | echo "$as_me:12021: checking for int64_t type" >&5 | ||
12022 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
12023 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
12024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12025 | else | ||
12026 | |||
12027 | cat >conftest.$ac_ext <<_ACEOF | ||
12028 | #line 12028 "configure" | ||
12029 | #include "confdefs.h" | ||
12030 | |||
12031 | #include <sys/types.h> | ||
12032 | #ifdef HAVE_STDINT_H | ||
12033 | # include <stdint.h> | ||
12034 | #endif | ||
12035 | #include <sys/socket.h> | ||
12036 | #ifdef HAVE_SYS_BITYPES_H | ||
12037 | # include <sys/bitypes.h> | ||
12038 | #endif | ||
12039 | |||
12040 | int | ||
12041 | main () | ||
12042 | { | ||
12043 | int64_t a; a = 1; | ||
12044 | ; | ||
12045 | return 0; | ||
12046 | } | ||
12047 | _ACEOF | ||
12048 | rm -f conftest.$ac_objext | ||
12049 | if { (eval echo "$as_me:12049: \"$ac_compile\"") >&5 | ||
12050 | (eval $ac_compile) 2>&5 | ||
12051 | ac_status=$? | ||
12052 | echo "$as_me:12052: \$? = $ac_status" >&5 | ||
12053 | (exit $ac_status); } && | ||
12054 | { ac_try='test -s conftest.$ac_objext' | ||
12055 | { (eval echo "$as_me:12055: \"$ac_try\"") >&5 | ||
12056 | (eval $ac_try) 2>&5 | ||
12057 | ac_status=$? | ||
12058 | echo "$as_me:12058: \$? = $ac_status" >&5 | ||
12059 | (exit $ac_status); }; }; then | ||
12060 | ac_cv_have_int64_t="yes" | ||
12061 | else | ||
12062 | echo "$as_me: failed program was:" >&5 | ||
12063 | cat conftest.$ac_ext >&5 | ||
12064 | ac_cv_have_int64_t="no" | ||
12065 | |||
12066 | fi | ||
12067 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12068 | |||
12069 | fi | ||
12070 | echo "$as_me:12070: result: $ac_cv_have_int64_t" >&5 | ||
12071 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
12072 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
12073 | cat >>confdefs.h <<\EOF | ||
12074 | #define HAVE_INT64_T 1 | ||
12075 | EOF | ||
12076 | |||
12077 | fi | ||
12078 | |||
12079 | echo "$as_me:12079: checking for u_intXX_t types" >&5 | ||
12080 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
12081 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
12082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12083 | else | ||
12084 | |||
12085 | cat >conftest.$ac_ext <<_ACEOF | ||
12086 | #line 12086 "configure" | ||
12087 | #include "confdefs.h" | ||
12088 | #include <sys/types.h> | ||
12089 | int | ||
12090 | main () | ||
12091 | { | ||
12092 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
12093 | ; | ||
12094 | return 0; | ||
12095 | } | ||
12096 | _ACEOF | ||
12097 | rm -f conftest.$ac_objext | ||
12098 | if { (eval echo "$as_me:12098: \"$ac_compile\"") >&5 | ||
12099 | (eval $ac_compile) 2>&5 | ||
12100 | ac_status=$? | ||
12101 | echo "$as_me:12101: \$? = $ac_status" >&5 | ||
12102 | (exit $ac_status); } && | ||
12103 | { ac_try='test -s conftest.$ac_objext' | ||
12104 | { (eval echo "$as_me:12104: \"$ac_try\"") >&5 | ||
12105 | (eval $ac_try) 2>&5 | ||
12106 | ac_status=$? | ||
12107 | echo "$as_me:12107: \$? = $ac_status" >&5 | ||
12108 | (exit $ac_status); }; }; then | ||
12109 | ac_cv_have_u_intxx_t="yes" | ||
12110 | else | ||
12111 | echo "$as_me: failed program was:" >&5 | ||
12112 | cat conftest.$ac_ext >&5 | ||
12113 | ac_cv_have_u_intxx_t="no" | ||
12114 | |||
12115 | fi | ||
12116 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12117 | |||
12118 | fi | ||
12119 | echo "$as_me:12119: result: $ac_cv_have_u_intxx_t" >&5 | ||
12120 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
12121 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
12122 | cat >>confdefs.h <<\EOF | ||
12123 | #define HAVE_U_INTXX_T 1 | ||
12124 | EOF | ||
12125 | |||
12126 | have_u_intxx_t=1 | ||
12127 | fi | ||
12128 | |||
12129 | if test -z "$have_u_intxx_t" ; then | ||
12130 | echo "$as_me:12130: checking for u_intXX_t types in sys/socket.h" >&5 | ||
12131 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
12132 | cat >conftest.$ac_ext <<_ACEOF | ||
12133 | #line 12133 "configure" | ||
12134 | #include "confdefs.h" | ||
12135 | #include <sys/socket.h> | ||
12136 | int | ||
12137 | main () | ||
12138 | { | ||
12139 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
12140 | ; | ||
12141 | return 0; | ||
12142 | } | ||
12143 | _ACEOF | ||
12144 | rm -f conftest.$ac_objext | ||
12145 | if { (eval echo "$as_me:12145: \"$ac_compile\"") >&5 | ||
12146 | (eval $ac_compile) 2>&5 | ||
12147 | ac_status=$? | ||
12148 | echo "$as_me:12148: \$? = $ac_status" >&5 | ||
12149 | (exit $ac_status); } && | ||
12150 | { ac_try='test -s conftest.$ac_objext' | ||
12151 | { (eval echo "$as_me:12151: \"$ac_try\"") >&5 | ||
12152 | (eval $ac_try) 2>&5 | ||
12153 | ac_status=$? | ||
12154 | echo "$as_me:12154: \$? = $ac_status" >&5 | ||
12155 | (exit $ac_status); }; }; then | ||
12156 | |||
12157 | cat >>confdefs.h <<\EOF | ||
12158 | #define HAVE_U_INTXX_T 1 | ||
12159 | EOF | ||
12160 | |||
12161 | echo "$as_me:12161: result: yes" >&5 | ||
12162 | echo "${ECHO_T}yes" >&6 | ||
12163 | |||
12164 | else | ||
12165 | echo "$as_me: failed program was:" >&5 | ||
12166 | cat conftest.$ac_ext >&5 | ||
12167 | echo "$as_me:12167: result: no" >&5 | ||
12168 | echo "${ECHO_T}no" >&6 | ||
12169 | |||
12170 | fi | ||
12171 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12172 | fi | ||
12173 | |||
12174 | echo "$as_me:12174: checking for u_int64_t types" >&5 | ||
12175 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
12176 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
12177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12178 | else | ||
12179 | |||
12180 | cat >conftest.$ac_ext <<_ACEOF | ||
12181 | #line 12181 "configure" | ||
12182 | #include "confdefs.h" | ||
12183 | #include <sys/types.h> | ||
12184 | int | ||
12185 | main () | ||
12186 | { | ||
12187 | u_int64_t a; a = 1; | ||
12188 | ; | ||
12189 | return 0; | ||
12190 | } | ||
12191 | _ACEOF | ||
12192 | rm -f conftest.$ac_objext | ||
12193 | if { (eval echo "$as_me:12193: \"$ac_compile\"") >&5 | ||
12194 | (eval $ac_compile) 2>&5 | ||
12195 | ac_status=$? | ||
12196 | echo "$as_me:12196: \$? = $ac_status" >&5 | ||
12197 | (exit $ac_status); } && | ||
12198 | { ac_try='test -s conftest.$ac_objext' | ||
12199 | { (eval echo "$as_me:12199: \"$ac_try\"") >&5 | ||
12200 | (eval $ac_try) 2>&5 | ||
12201 | ac_status=$? | ||
12202 | echo "$as_me:12202: \$? = $ac_status" >&5 | ||
12203 | (exit $ac_status); }; }; then | ||
12204 | ac_cv_have_u_int64_t="yes" | ||
12205 | else | ||
12206 | echo "$as_me: failed program was:" >&5 | ||
12207 | cat conftest.$ac_ext >&5 | ||
12208 | ac_cv_have_u_int64_t="no" | ||
12209 | |||
12210 | fi | ||
12211 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12212 | |||
12213 | fi | ||
12214 | echo "$as_me:12214: result: $ac_cv_have_u_int64_t" >&5 | ||
12215 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
12216 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
12217 | cat >>confdefs.h <<\EOF | ||
12218 | #define HAVE_U_INT64_T 1 | ||
12219 | EOF | ||
12220 | |||
12221 | have_u_int64_t=1 | ||
12222 | fi | ||
12223 | |||
12224 | if test -z "$have_u_int64_t" ; then | ||
12225 | echo "$as_me:12225: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
12226 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
12227 | cat >conftest.$ac_ext <<_ACEOF | ||
12228 | #line 12228 "configure" | ||
12229 | #include "confdefs.h" | ||
12230 | #include <sys/bitypes.h> | ||
12231 | int | ||
12232 | main () | ||
12233 | { | ||
12234 | u_int64_t a; a = 1 | ||
12235 | ; | ||
12236 | return 0; | ||
12237 | } | ||
12238 | _ACEOF | ||
12239 | rm -f conftest.$ac_objext | ||
12240 | if { (eval echo "$as_me:12240: \"$ac_compile\"") >&5 | ||
12241 | (eval $ac_compile) 2>&5 | ||
12242 | ac_status=$? | ||
12243 | echo "$as_me:12243: \$? = $ac_status" >&5 | ||
12244 | (exit $ac_status); } && | ||
12245 | { ac_try='test -s conftest.$ac_objext' | ||
12246 | { (eval echo "$as_me:12246: \"$ac_try\"") >&5 | ||
12247 | (eval $ac_try) 2>&5 | ||
12248 | ac_status=$? | ||
12249 | echo "$as_me:12249: \$? = $ac_status" >&5 | ||
12250 | (exit $ac_status); }; }; then | ||
12251 | |||
12252 | cat >>confdefs.h <<\EOF | ||
12253 | #define HAVE_U_INT64_T 1 | ||
12254 | EOF | ||
12255 | |||
12256 | echo "$as_me:12256: result: yes" >&5 | ||
12257 | echo "${ECHO_T}yes" >&6 | ||
12258 | |||
12259 | else | ||
12260 | echo "$as_me: failed program was:" >&5 | ||
12261 | cat conftest.$ac_ext >&5 | ||
12262 | echo "$as_me:12262: result: no" >&5 | ||
12263 | echo "${ECHO_T}no" >&6 | ||
12264 | |||
12265 | fi | ||
12266 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12267 | fi | ||
12268 | |||
12269 | if test -z "$have_u_intxx_t" ; then | ||
12270 | echo "$as_me:12270: checking for uintXX_t types" >&5 | ||
12271 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
12272 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
12273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12274 | else | ||
12275 | |||
12276 | cat >conftest.$ac_ext <<_ACEOF | ||
12277 | #line 12277 "configure" | ||
12278 | #include "confdefs.h" | ||
12279 | |||
12280 | #include <sys/types.h> | ||
12281 | |||
12282 | int | ||
12283 | main () | ||
12284 | { | ||
12285 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12286 | ; | ||
12287 | return 0; | ||
12288 | } | ||
12289 | _ACEOF | ||
12290 | rm -f conftest.$ac_objext | ||
12291 | if { (eval echo "$as_me:12291: \"$ac_compile\"") >&5 | ||
12292 | (eval $ac_compile) 2>&5 | ||
12293 | ac_status=$? | ||
12294 | echo "$as_me:12294: \$? = $ac_status" >&5 | ||
12295 | (exit $ac_status); } && | ||
12296 | { ac_try='test -s conftest.$ac_objext' | ||
12297 | { (eval echo "$as_me:12297: \"$ac_try\"") >&5 | ||
12298 | (eval $ac_try) 2>&5 | ||
12299 | ac_status=$? | ||
12300 | echo "$as_me:12300: \$? = $ac_status" >&5 | ||
12301 | (exit $ac_status); }; }; then | ||
12302 | ac_cv_have_uintxx_t="yes" | ||
12303 | else | ||
12304 | echo "$as_me: failed program was:" >&5 | ||
12305 | cat conftest.$ac_ext >&5 | ||
12306 | ac_cv_have_uintxx_t="no" | ||
12307 | |||
12308 | fi | ||
12309 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12310 | |||
12311 | fi | ||
12312 | echo "$as_me:12312: result: $ac_cv_have_uintxx_t" >&5 | ||
12313 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
12314 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
12315 | cat >>confdefs.h <<\EOF | ||
12316 | #define HAVE_UINTXX_T 1 | ||
12317 | EOF | ||
12318 | |||
12319 | fi | ||
12320 | fi | ||
12321 | |||
12322 | if test -z "$have_uintxx_t" ; then | ||
12323 | echo "$as_me:12323: checking for uintXX_t types in stdint.h" >&5 | ||
12324 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
12325 | cat >conftest.$ac_ext <<_ACEOF | ||
12326 | #line 12326 "configure" | ||
12327 | #include "confdefs.h" | ||
12328 | #include <stdint.h> | ||
12329 | int | ||
12330 | main () | ||
12331 | { | ||
12332 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12333 | ; | ||
12334 | return 0; | ||
12335 | } | ||
12336 | _ACEOF | ||
12337 | rm -f conftest.$ac_objext | ||
12338 | if { (eval echo "$as_me:12338: \"$ac_compile\"") >&5 | ||
12339 | (eval $ac_compile) 2>&5 | ||
12340 | ac_status=$? | ||
12341 | echo "$as_me:12341: \$? = $ac_status" >&5 | ||
12342 | (exit $ac_status); } && | ||
12343 | { ac_try='test -s conftest.$ac_objext' | ||
12344 | { (eval echo "$as_me:12344: \"$ac_try\"") >&5 | ||
12345 | (eval $ac_try) 2>&5 | ||
12346 | ac_status=$? | ||
12347 | echo "$as_me:12347: \$? = $ac_status" >&5 | ||
12348 | (exit $ac_status); }; }; then | ||
12349 | |||
12350 | cat >>confdefs.h <<\EOF | ||
12351 | #define HAVE_UINTXX_T 1 | ||
12352 | EOF | ||
12353 | |||
12354 | echo "$as_me:12354: result: yes" >&5 | ||
12355 | echo "${ECHO_T}yes" >&6 | ||
12356 | |||
12357 | else | ||
12358 | echo "$as_me: failed program was:" >&5 | ||
12359 | cat conftest.$ac_ext >&5 | ||
12360 | echo "$as_me:12360: result: no" >&5 | ||
12361 | echo "${ECHO_T}no" >&6 | ||
12362 | |||
12363 | fi | ||
12364 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12365 | fi | ||
12366 | |||
12367 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
12368 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
12369 | then | ||
12370 | echo "$as_me:12370: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
12371 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
12372 | cat >conftest.$ac_ext <<_ACEOF | ||
12373 | #line 12373 "configure" | ||
12374 | #include "confdefs.h" | ||
12375 | |||
12376 | #include <sys/bitypes.h> | ||
12377 | |||
12378 | int | ||
12379 | main () | ||
12380 | { | ||
12381 | |||
12382 | int8_t a; int16_t b; int32_t c; | ||
12383 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
12384 | a = b = c = e = f = g = 1; | ||
12385 | |||
12386 | ; | ||
12387 | return 0; | ||
12388 | } | ||
12389 | _ACEOF | ||
12390 | rm -f conftest.$ac_objext | ||
12391 | if { (eval echo "$as_me:12391: \"$ac_compile\"") >&5 | ||
12392 | (eval $ac_compile) 2>&5 | ||
12393 | ac_status=$? | ||
12394 | echo "$as_me:12394: \$? = $ac_status" >&5 | ||
12395 | (exit $ac_status); } && | ||
12396 | { ac_try='test -s conftest.$ac_objext' | ||
12397 | { (eval echo "$as_me:12397: \"$ac_try\"") >&5 | ||
12398 | (eval $ac_try) 2>&5 | ||
12399 | ac_status=$? | ||
12400 | echo "$as_me:12400: \$? = $ac_status" >&5 | ||
12401 | (exit $ac_status); }; }; then | ||
12402 | |||
12403 | cat >>confdefs.h <<\EOF | ||
12404 | #define HAVE_U_INTXX_T 1 | ||
12405 | EOF | ||
12406 | |||
12407 | cat >>confdefs.h <<\EOF | ||
12408 | #define HAVE_INTXX_T 1 | ||
12409 | EOF | ||
12410 | |||
12411 | echo "$as_me:12411: result: yes" >&5 | ||
12412 | echo "${ECHO_T}yes" >&6 | ||
12413 | |||
12414 | else | ||
12415 | echo "$as_me: failed program was:" >&5 | ||
12416 | cat conftest.$ac_ext >&5 | ||
12417 | echo "$as_me:12417: result: no" >&5 | ||
12418 | echo "${ECHO_T}no" >&6 | ||
12419 | |||
12420 | fi | ||
12421 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12422 | fi | ||
12423 | |||
12424 | echo "$as_me:12424: checking for u_char" >&5 | ||
12425 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
12426 | if test "${ac_cv_have_u_char+set}" = set; then | ||
12427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12428 | else | ||
12429 | |||
12430 | cat >conftest.$ac_ext <<_ACEOF | ||
12431 | #line 12431 "configure" | ||
12432 | #include "confdefs.h" | ||
12433 | |||
12434 | #include <sys/types.h> | ||
12435 | |||
12436 | int | ||
12437 | main () | ||
12438 | { | ||
12439 | u_char foo; foo = 125; | ||
12440 | ; | ||
12441 | return 0; | ||
12442 | } | ||
12443 | _ACEOF | ||
12444 | rm -f conftest.$ac_objext | ||
12445 | if { (eval echo "$as_me:12445: \"$ac_compile\"") >&5 | ||
12446 | (eval $ac_compile) 2>&5 | ||
12447 | ac_status=$? | ||
12448 | echo "$as_me:12448: \$? = $ac_status" >&5 | ||
12449 | (exit $ac_status); } && | ||
12450 | { ac_try='test -s conftest.$ac_objext' | ||
12451 | { (eval echo "$as_me:12451: \"$ac_try\"") >&5 | ||
12452 | (eval $ac_try) 2>&5 | ||
12453 | ac_status=$? | ||
12454 | echo "$as_me:12454: \$? = $ac_status" >&5 | ||
12455 | (exit $ac_status); }; }; then | ||
12456 | ac_cv_have_u_char="yes" | ||
12457 | else | ||
12458 | echo "$as_me: failed program was:" >&5 | ||
12459 | cat conftest.$ac_ext >&5 | ||
12460 | ac_cv_have_u_char="no" | ||
12461 | |||
12462 | fi | ||
12463 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12464 | |||
12465 | fi | ||
12466 | echo "$as_me:12466: result: $ac_cv_have_u_char" >&5 | ||
12467 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
12468 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
12469 | cat >>confdefs.h <<\EOF | ||
12470 | #define HAVE_U_CHAR 1 | ||
12471 | EOF | ||
12472 | |||
12473 | fi | ||
12474 | |||
12475 | echo "$as_me:12475: checking for socklen_t" >&5 | ||
12476 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
12477 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
12478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12479 | else | ||
12480 | cat >conftest.$ac_ext <<_ACEOF | ||
12481 | #line 12481 "configure" | ||
12482 | #include "confdefs.h" | ||
12483 | #include <sys/types.h> | ||
12484 | #include <sys/socket.h> | ||
12485 | |||
12486 | int | ||
12487 | main () | ||
12488 | { | ||
12489 | if ((socklen_t *) 0) | ||
12490 | return 0; | ||
12491 | if (sizeof (socklen_t)) | ||
12492 | return 0; | ||
12493 | ; | ||
12494 | return 0; | ||
12495 | } | ||
12496 | _ACEOF | ||
12497 | rm -f conftest.$ac_objext | ||
12498 | if { (eval echo "$as_me:12498: \"$ac_compile\"") >&5 | ||
12499 | (eval $ac_compile) 2>&5 | ||
12500 | ac_status=$? | ||
12501 | echo "$as_me:12501: \$? = $ac_status" >&5 | ||
12502 | (exit $ac_status); } && | ||
12503 | { ac_try='test -s conftest.$ac_objext' | ||
12504 | { (eval echo "$as_me:12504: \"$ac_try\"") >&5 | ||
12505 | (eval $ac_try) 2>&5 | ||
12506 | ac_status=$? | ||
12507 | echo "$as_me:12507: \$? = $ac_status" >&5 | ||
12508 | (exit $ac_status); }; }; then | ||
12509 | ac_cv_type_socklen_t=yes | ||
12510 | else | ||
12511 | echo "$as_me: failed program was:" >&5 | ||
12512 | cat conftest.$ac_ext >&5 | ||
12513 | ac_cv_type_socklen_t=no | ||
12514 | fi | ||
12515 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12516 | fi | ||
12517 | echo "$as_me:12517: result: $ac_cv_type_socklen_t" >&5 | ||
12518 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
12519 | if test $ac_cv_type_socklen_t = yes; then | ||
12520 | : | ||
12521 | else | ||
12522 | |||
12523 | echo "$as_me:12523: checking for socklen_t equivalent" >&5 | ||
12524 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
12525 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
12526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12527 | else | ||
12528 | |||
12529 | # Systems have either "struct sockaddr *" or | ||
12530 | # "void *" as the second argument to getpeername | ||
12531 | curl_cv_socklen_t_equiv= | ||
12532 | for arg2 in "struct sockaddr" void; do | ||
12533 | for t in int size_t unsigned long "unsigned long"; do | ||
12534 | cat >conftest.$ac_ext <<_ACEOF | ||
12535 | #line 12535 "configure" | ||
12536 | #include "confdefs.h" | ||
12537 | |||
12538 | #include <sys/types.h> | ||
12539 | #include <sys/socket.h> | ||
12540 | |||
12541 | int getpeername (int, $arg2 *, $t *); | ||
12542 | |||
12543 | int | ||
12544 | main () | ||
12545 | { | ||
12546 | |||
12547 | $t len; | ||
12548 | getpeername(0,0,&len); | ||
12549 | |||
12550 | ; | ||
12551 | return 0; | ||
12552 | } | ||
12553 | _ACEOF | ||
12554 | rm -f conftest.$ac_objext | ||
12555 | if { (eval echo "$as_me:12555: \"$ac_compile\"") >&5 | ||
12556 | (eval $ac_compile) 2>&5 | ||
12557 | ac_status=$? | ||
12558 | echo "$as_me:12558: \$? = $ac_status" >&5 | ||
12559 | (exit $ac_status); } && | ||
12560 | { ac_try='test -s conftest.$ac_objext' | ||
12561 | { (eval echo "$as_me:12561: \"$ac_try\"") >&5 | ||
12562 | (eval $ac_try) 2>&5 | ||
12563 | ac_status=$? | ||
12564 | echo "$as_me:12564: \$? = $ac_status" >&5 | ||
12565 | (exit $ac_status); }; }; then | ||
12566 | |||
12567 | curl_cv_socklen_t_equiv="$t" | ||
12568 | break | ||
12569 | |||
12570 | else | ||
12571 | echo "$as_me: failed program was:" >&5 | ||
12572 | cat conftest.$ac_ext >&5 | ||
12573 | fi | ||
12574 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12575 | done | ||
12576 | done | ||
12577 | |||
12578 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
12579 | { { echo "$as_me:12579: error: Cannot find a type to use in place of socklen_t" >&5 | ||
12580 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
12581 | { (exit 1); exit 1; }; } | ||
12582 | fi | ||
12583 | |||
12584 | fi | ||
12585 | |||
12586 | echo "$as_me:12586: result: $curl_cv_socklen_t_equiv" >&5 | ||
12587 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
12588 | |||
12589 | cat >>confdefs.h <<EOF | ||
12590 | #define socklen_t $curl_cv_socklen_t_equiv | ||
12591 | EOF | ||
12592 | |||
12593 | fi | ||
12594 | |||
12595 | echo "$as_me:12595: checking for sig_atomic_t" >&5 | ||
12596 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
12597 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
12598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12599 | else | ||
12600 | cat >conftest.$ac_ext <<_ACEOF | ||
12601 | #line 12601 "configure" | ||
12602 | #include "confdefs.h" | ||
12603 | #include <signal.h> | ||
12604 | |||
12605 | int | ||
12606 | main () | ||
12607 | { | ||
12608 | if ((sig_atomic_t *) 0) | ||
12609 | return 0; | ||
12610 | if (sizeof (sig_atomic_t)) | ||
12611 | return 0; | ||
12612 | ; | ||
12613 | return 0; | ||
12614 | } | ||
12615 | _ACEOF | ||
12616 | rm -f conftest.$ac_objext | ||
12617 | if { (eval echo "$as_me:12617: \"$ac_compile\"") >&5 | ||
12618 | (eval $ac_compile) 2>&5 | ||
12619 | ac_status=$? | ||
12620 | echo "$as_me:12620: \$? = $ac_status" >&5 | ||
12621 | (exit $ac_status); } && | ||
12622 | { ac_try='test -s conftest.$ac_objext' | ||
12623 | { (eval echo "$as_me:12623: \"$ac_try\"") >&5 | ||
12624 | (eval $ac_try) 2>&5 | ||
12625 | ac_status=$? | ||
12626 | echo "$as_me:12626: \$? = $ac_status" >&5 | ||
12627 | (exit $ac_status); }; }; then | ||
12628 | ac_cv_type_sig_atomic_t=yes | ||
12629 | else | ||
12630 | echo "$as_me: failed program was:" >&5 | ||
12631 | cat conftest.$ac_ext >&5 | ||
12632 | ac_cv_type_sig_atomic_t=no | ||
12633 | fi | ||
12634 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12635 | fi | ||
12636 | echo "$as_me:12636: result: $ac_cv_type_sig_atomic_t" >&5 | ||
12637 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
12638 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
12639 | |||
12640 | cat >>confdefs.h <<EOF | ||
12641 | #define HAVE_SIG_ATOMIC_T 1 | ||
12642 | EOF | ||
12643 | |||
12644 | fi | ||
12645 | |||
12646 | echo "$as_me:12646: checking for size_t" >&5 | ||
12647 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
12648 | if test "${ac_cv_have_size_t+set}" = set; then | ||
12649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12650 | else | ||
12651 | |||
12652 | cat >conftest.$ac_ext <<_ACEOF | ||
12653 | #line 12653 "configure" | ||
12654 | #include "confdefs.h" | ||
12655 | |||
12656 | #include <sys/types.h> | ||
12657 | |||
12658 | int | ||
12659 | main () | ||
12660 | { | ||
12661 | size_t foo; foo = 1235; | ||
12662 | ; | ||
12663 | return 0; | ||
12664 | } | ||
12665 | _ACEOF | ||
12666 | rm -f conftest.$ac_objext | ||
12667 | if { (eval echo "$as_me:12667: \"$ac_compile\"") >&5 | ||
12668 | (eval $ac_compile) 2>&5 | ||
12669 | ac_status=$? | ||
12670 | echo "$as_me:12670: \$? = $ac_status" >&5 | ||
12671 | (exit $ac_status); } && | ||
12672 | { ac_try='test -s conftest.$ac_objext' | ||
12673 | { (eval echo "$as_me:12673: \"$ac_try\"") >&5 | ||
12674 | (eval $ac_try) 2>&5 | ||
12675 | ac_status=$? | ||
12676 | echo "$as_me:12676: \$? = $ac_status" >&5 | ||
12677 | (exit $ac_status); }; }; then | ||
12678 | ac_cv_have_size_t="yes" | ||
12679 | else | ||
12680 | echo "$as_me: failed program was:" >&5 | ||
12681 | cat conftest.$ac_ext >&5 | ||
12682 | ac_cv_have_size_t="no" | ||
12683 | |||
12684 | fi | ||
12685 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12686 | |||
12687 | fi | ||
12688 | echo "$as_me:12688: result: $ac_cv_have_size_t" >&5 | ||
12689 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
12690 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
12691 | cat >>confdefs.h <<\EOF | ||
12692 | #define HAVE_SIZE_T 1 | ||
12693 | EOF | ||
12694 | |||
12695 | fi | ||
12696 | |||
12697 | echo "$as_me:12697: checking for ssize_t" >&5 | ||
12698 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
12699 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
12700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12701 | else | ||
12702 | |||
12703 | cat >conftest.$ac_ext <<_ACEOF | ||
12704 | #line 12704 "configure" | ||
12705 | #include "confdefs.h" | ||
12706 | |||
12707 | #include <sys/types.h> | ||
12708 | |||
12709 | int | ||
12710 | main () | ||
12711 | { | ||
12712 | ssize_t foo; foo = 1235; | ||
12713 | ; | ||
12714 | return 0; | ||
12715 | } | ||
12716 | _ACEOF | ||
12717 | rm -f conftest.$ac_objext | ||
12718 | if { (eval echo "$as_me:12718: \"$ac_compile\"") >&5 | ||
12719 | (eval $ac_compile) 2>&5 | ||
12720 | ac_status=$? | ||
12721 | echo "$as_me:12721: \$? = $ac_status" >&5 | ||
12722 | (exit $ac_status); } && | ||
12723 | { ac_try='test -s conftest.$ac_objext' | ||
12724 | { (eval echo "$as_me:12724: \"$ac_try\"") >&5 | ||
12725 | (eval $ac_try) 2>&5 | ||
12726 | ac_status=$? | ||
12727 | echo "$as_me:12727: \$? = $ac_status" >&5 | ||
12728 | (exit $ac_status); }; }; then | ||
12729 | ac_cv_have_ssize_t="yes" | ||
12730 | else | ||
12731 | echo "$as_me: failed program was:" >&5 | ||
12732 | cat conftest.$ac_ext >&5 | ||
12733 | ac_cv_have_ssize_t="no" | ||
12734 | |||
12735 | fi | ||
12736 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12737 | |||
12738 | fi | ||
12739 | echo "$as_me:12739: result: $ac_cv_have_ssize_t" >&5 | ||
12740 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
12741 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
12742 | cat >>confdefs.h <<\EOF | ||
12743 | #define HAVE_SSIZE_T 1 | ||
12744 | EOF | ||
12745 | |||
12746 | fi | ||
12747 | |||
12748 | echo "$as_me:12748: checking for clock_t" >&5 | ||
12749 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
12750 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
12751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12752 | else | ||
12753 | |||
12754 | cat >conftest.$ac_ext <<_ACEOF | ||
12755 | #line 12755 "configure" | ||
12756 | #include "confdefs.h" | ||
12757 | |||
12758 | #include <time.h> | ||
12759 | |||
12760 | int | ||
12761 | main () | ||
12762 | { | ||
12763 | clock_t foo; foo = 1235; | ||
12764 | ; | ||
12765 | return 0; | ||
12766 | } | ||
12767 | _ACEOF | ||
12768 | rm -f conftest.$ac_objext | ||
12769 | if { (eval echo "$as_me:12769: \"$ac_compile\"") >&5 | ||
12770 | (eval $ac_compile) 2>&5 | ||
12771 | ac_status=$? | ||
12772 | echo "$as_me:12772: \$? = $ac_status" >&5 | ||
12773 | (exit $ac_status); } && | ||
12774 | { ac_try='test -s conftest.$ac_objext' | ||
12775 | { (eval echo "$as_me:12775: \"$ac_try\"") >&5 | ||
12776 | (eval $ac_try) 2>&5 | ||
12777 | ac_status=$? | ||
12778 | echo "$as_me:12778: \$? = $ac_status" >&5 | ||
12779 | (exit $ac_status); }; }; then | ||
12780 | ac_cv_have_clock_t="yes" | ||
12781 | else | ||
12782 | echo "$as_me: failed program was:" >&5 | ||
12783 | cat conftest.$ac_ext >&5 | ||
12784 | ac_cv_have_clock_t="no" | ||
12785 | |||
12786 | fi | ||
12787 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12788 | |||
12789 | fi | ||
12790 | echo "$as_me:12790: result: $ac_cv_have_clock_t" >&5 | ||
12791 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
12792 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
12793 | cat >>confdefs.h <<\EOF | ||
12794 | #define HAVE_CLOCK_T 1 | ||
12795 | EOF | ||
12796 | |||
12797 | fi | ||
12798 | |||
12799 | echo "$as_me:12799: checking for sa_family_t" >&5 | ||
12800 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
12801 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
12802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12803 | else | ||
12804 | |||
12805 | cat >conftest.$ac_ext <<_ACEOF | ||
12806 | #line 12806 "configure" | ||
12807 | #include "confdefs.h" | ||
12808 | |||
12809 | #include <sys/types.h> | ||
12810 | #include <sys/socket.h> | ||
12811 | |||
12812 | int | ||
12813 | main () | ||
12814 | { | ||
12815 | sa_family_t foo; foo = 1235; | ||
12816 | ; | ||
12817 | return 0; | ||
12818 | } | ||
12819 | _ACEOF | ||
12820 | rm -f conftest.$ac_objext | ||
12821 | if { (eval echo "$as_me:12821: \"$ac_compile\"") >&5 | ||
12822 | (eval $ac_compile) 2>&5 | ||
12823 | ac_status=$? | ||
12824 | echo "$as_me:12824: \$? = $ac_status" >&5 | ||
12825 | (exit $ac_status); } && | ||
12826 | { ac_try='test -s conftest.$ac_objext' | ||
12827 | { (eval echo "$as_me:12827: \"$ac_try\"") >&5 | ||
12828 | (eval $ac_try) 2>&5 | ||
12829 | ac_status=$? | ||
12830 | echo "$as_me:12830: \$? = $ac_status" >&5 | ||
12831 | (exit $ac_status); }; }; then | ||
12832 | ac_cv_have_sa_family_t="yes" | ||
12833 | else | ||
12834 | echo "$as_me: failed program was:" >&5 | ||
12835 | cat conftest.$ac_ext >&5 | ||
12836 | cat >conftest.$ac_ext <<_ACEOF | ||
12837 | #line 12837 "configure" | ||
12838 | #include "confdefs.h" | ||
12839 | |||
12840 | #include <sys/types.h> | ||
12841 | #include <sys/socket.h> | ||
12842 | #include <netinet/in.h> | ||
12843 | |||
12844 | int | ||
12845 | main () | ||
12846 | { | ||
12847 | sa_family_t foo; foo = 1235; | ||
12848 | ; | ||
12849 | return 0; | ||
12850 | } | ||
12851 | _ACEOF | ||
12852 | rm -f conftest.$ac_objext | ||
12853 | if { (eval echo "$as_me:12853: \"$ac_compile\"") >&5 | ||
12854 | (eval $ac_compile) 2>&5 | ||
12855 | ac_status=$? | ||
12856 | echo "$as_me:12856: \$? = $ac_status" >&5 | ||
12857 | (exit $ac_status); } && | ||
12858 | { ac_try='test -s conftest.$ac_objext' | ||
12859 | { (eval echo "$as_me:12859: \"$ac_try\"") >&5 | ||
12860 | (eval $ac_try) 2>&5 | ||
12861 | ac_status=$? | ||
12862 | echo "$as_me:12862: \$? = $ac_status" >&5 | ||
12863 | (exit $ac_status); }; }; then | ||
12864 | ac_cv_have_sa_family_t="yes" | ||
12865 | else | ||
12866 | echo "$as_me: failed program was:" >&5 | ||
12867 | cat conftest.$ac_ext >&5 | ||
12868 | ac_cv_have_sa_family_t="no" | ||
12869 | |||
12870 | fi | ||
12871 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12872 | |||
12873 | fi | ||
12874 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12875 | |||
12876 | fi | ||
12877 | echo "$as_me:12877: result: $ac_cv_have_sa_family_t" >&5 | ||
12878 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
12879 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
12880 | cat >>confdefs.h <<\EOF | ||
12881 | #define HAVE_SA_FAMILY_T 1 | ||
12882 | EOF | ||
12883 | |||
12884 | fi | ||
12885 | |||
12886 | echo "$as_me:12886: checking for pid_t" >&5 | ||
12887 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
12888 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
12889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12890 | else | ||
12891 | |||
12892 | cat >conftest.$ac_ext <<_ACEOF | ||
12893 | #line 12893 "configure" | ||
12894 | #include "confdefs.h" | ||
12895 | |||
12896 | #include <sys/types.h> | ||
12897 | |||
12898 | int | ||
12899 | main () | ||
12900 | { | ||
12901 | pid_t foo; foo = 1235; | ||
12902 | ; | ||
12903 | return 0; | ||
12904 | } | ||
12905 | _ACEOF | ||
12906 | rm -f conftest.$ac_objext | ||
12907 | if { (eval echo "$as_me:12907: \"$ac_compile\"") >&5 | ||
12908 | (eval $ac_compile) 2>&5 | ||
12909 | ac_status=$? | ||
12910 | echo "$as_me:12910: \$? = $ac_status" >&5 | ||
12911 | (exit $ac_status); } && | ||
12912 | { ac_try='test -s conftest.$ac_objext' | ||
12913 | { (eval echo "$as_me:12913: \"$ac_try\"") >&5 | ||
12914 | (eval $ac_try) 2>&5 | ||
12915 | ac_status=$? | ||
12916 | echo "$as_me:12916: \$? = $ac_status" >&5 | ||
12917 | (exit $ac_status); }; }; then | ||
12918 | ac_cv_have_pid_t="yes" | ||
12919 | else | ||
12920 | echo "$as_me: failed program was:" >&5 | ||
12921 | cat conftest.$ac_ext >&5 | ||
12922 | ac_cv_have_pid_t="no" | ||
12923 | |||
12924 | fi | ||
12925 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12926 | |||
12927 | fi | ||
12928 | echo "$as_me:12928: result: $ac_cv_have_pid_t" >&5 | ||
12929 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
12930 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
12931 | cat >>confdefs.h <<\EOF | ||
12932 | #define HAVE_PID_T 1 | ||
12933 | EOF | ||
12934 | |||
12935 | fi | ||
12936 | |||
12937 | echo "$as_me:12937: checking for mode_t" >&5 | ||
12938 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
12939 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
12940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12941 | else | ||
12942 | |||
12943 | cat >conftest.$ac_ext <<_ACEOF | ||
12944 | #line 12944 "configure" | ||
12945 | #include "confdefs.h" | ||
12946 | |||
12947 | #include <sys/types.h> | ||
12948 | |||
12949 | int | ||
12950 | main () | ||
12951 | { | ||
12952 | mode_t foo; foo = 1235; | ||
12953 | ; | ||
12954 | return 0; | ||
12955 | } | ||
12956 | _ACEOF | ||
12957 | rm -f conftest.$ac_objext | ||
12958 | if { (eval echo "$as_me:12958: \"$ac_compile\"") >&5 | ||
12959 | (eval $ac_compile) 2>&5 | ||
12960 | ac_status=$? | ||
12961 | echo "$as_me:12961: \$? = $ac_status" >&5 | ||
12962 | (exit $ac_status); } && | ||
12963 | { ac_try='test -s conftest.$ac_objext' | ||
12964 | { (eval echo "$as_me:12964: \"$ac_try\"") >&5 | ||
12965 | (eval $ac_try) 2>&5 | ||
12966 | ac_status=$? | ||
12967 | echo "$as_me:12967: \$? = $ac_status" >&5 | ||
12968 | (exit $ac_status); }; }; then | ||
12969 | ac_cv_have_mode_t="yes" | ||
12970 | else | ||
12971 | echo "$as_me: failed program was:" >&5 | ||
12972 | cat conftest.$ac_ext >&5 | ||
12973 | ac_cv_have_mode_t="no" | ||
12974 | |||
12975 | fi | ||
12976 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12977 | |||
12978 | fi | ||
12979 | echo "$as_me:12979: result: $ac_cv_have_mode_t" >&5 | ||
12980 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
12981 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
12982 | cat >>confdefs.h <<\EOF | ||
12983 | #define HAVE_MODE_T 1 | ||
12984 | EOF | ||
12985 | |||
12986 | fi | ||
12987 | |||
12988 | echo "$as_me:12988: checking for struct sockaddr_storage" >&5 | ||
12989 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
12990 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
12991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12992 | else | ||
12993 | |||
12994 | cat >conftest.$ac_ext <<_ACEOF | ||
12995 | #line 12995 "configure" | ||
12996 | #include "confdefs.h" | ||
12997 | |||
12998 | #include <sys/types.h> | ||
12999 | #include <sys/socket.h> | ||
13000 | |||
13001 | int | ||
13002 | main () | ||
13003 | { | ||
13004 | struct sockaddr_storage s; | ||
13005 | ; | ||
13006 | return 0; | ||
13007 | } | ||
13008 | _ACEOF | ||
13009 | rm -f conftest.$ac_objext | ||
13010 | if { (eval echo "$as_me:13010: \"$ac_compile\"") >&5 | ||
13011 | (eval $ac_compile) 2>&5 | ||
13012 | ac_status=$? | ||
13013 | echo "$as_me:13013: \$? = $ac_status" >&5 | ||
13014 | (exit $ac_status); } && | ||
13015 | { ac_try='test -s conftest.$ac_objext' | ||
13016 | { (eval echo "$as_me:13016: \"$ac_try\"") >&5 | ||
13017 | (eval $ac_try) 2>&5 | ||
13018 | ac_status=$? | ||
13019 | echo "$as_me:13019: \$? = $ac_status" >&5 | ||
13020 | (exit $ac_status); }; }; then | ||
13021 | ac_cv_have_struct_sockaddr_storage="yes" | ||
13022 | else | ||
13023 | echo "$as_me: failed program was:" >&5 | ||
13024 | cat conftest.$ac_ext >&5 | ||
13025 | ac_cv_have_struct_sockaddr_storage="no" | ||
13026 | |||
13027 | fi | ||
13028 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13029 | |||
13030 | fi | ||
13031 | echo "$as_me:13031: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
13032 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
13033 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
13034 | cat >>confdefs.h <<\EOF | ||
13035 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
13036 | EOF | ||
13037 | |||
13038 | fi | ||
13039 | |||
13040 | echo "$as_me:13040: checking for struct sockaddr_in6" >&5 | ||
13041 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
13042 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
13043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13044 | else | ||
13045 | |||
13046 | cat >conftest.$ac_ext <<_ACEOF | ||
13047 | #line 13047 "configure" | ||
13048 | #include "confdefs.h" | ||
13049 | |||
13050 | #include <sys/types.h> | ||
13051 | #include <netinet/in.h> | ||
13052 | |||
13053 | int | ||
13054 | main () | ||
13055 | { | ||
13056 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
13057 | ; | ||
13058 | return 0; | ||
13059 | } | ||
13060 | _ACEOF | ||
13061 | rm -f conftest.$ac_objext | ||
13062 | if { (eval echo "$as_me:13062: \"$ac_compile\"") >&5 | ||
13063 | (eval $ac_compile) 2>&5 | ||
13064 | ac_status=$? | ||
13065 | echo "$as_me:13065: \$? = $ac_status" >&5 | ||
13066 | (exit $ac_status); } && | ||
13067 | { ac_try='test -s conftest.$ac_objext' | ||
13068 | { (eval echo "$as_me:13068: \"$ac_try\"") >&5 | ||
13069 | (eval $ac_try) 2>&5 | ||
13070 | ac_status=$? | ||
13071 | echo "$as_me:13071: \$? = $ac_status" >&5 | ||
13072 | (exit $ac_status); }; }; then | ||
13073 | ac_cv_have_struct_sockaddr_in6="yes" | ||
13074 | else | ||
13075 | echo "$as_me: failed program was:" >&5 | ||
13076 | cat conftest.$ac_ext >&5 | ||
13077 | ac_cv_have_struct_sockaddr_in6="no" | ||
13078 | |||
13079 | fi | ||
13080 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13081 | |||
13082 | fi | ||
13083 | echo "$as_me:13083: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
13084 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
13085 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
13086 | cat >>confdefs.h <<\EOF | ||
13087 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
13088 | EOF | ||
13089 | |||
13090 | fi | ||
13091 | |||
13092 | echo "$as_me:13092: checking for struct in6_addr" >&5 | ||
13093 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
13094 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
13095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13096 | else | ||
13097 | |||
13098 | cat >conftest.$ac_ext <<_ACEOF | ||
13099 | #line 13099 "configure" | ||
13100 | #include "confdefs.h" | ||
13101 | |||
13102 | #include <sys/types.h> | ||
13103 | #include <netinet/in.h> | ||
13104 | |||
13105 | int | ||
13106 | main () | ||
13107 | { | ||
13108 | struct in6_addr s; s.s6_addr[0] = 0; | ||
13109 | ; | ||
13110 | return 0; | ||
13111 | } | ||
13112 | _ACEOF | ||
13113 | rm -f conftest.$ac_objext | ||
13114 | if { (eval echo "$as_me:13114: \"$ac_compile\"") >&5 | ||
13115 | (eval $ac_compile) 2>&5 | ||
13116 | ac_status=$? | ||
13117 | echo "$as_me:13117: \$? = $ac_status" >&5 | ||
13118 | (exit $ac_status); } && | ||
13119 | { ac_try='test -s conftest.$ac_objext' | ||
13120 | { (eval echo "$as_me:13120: \"$ac_try\"") >&5 | ||
13121 | (eval $ac_try) 2>&5 | ||
13122 | ac_status=$? | ||
13123 | echo "$as_me:13123: \$? = $ac_status" >&5 | ||
13124 | (exit $ac_status); }; }; then | ||
13125 | ac_cv_have_struct_in6_addr="yes" | ||
13126 | else | ||
13127 | echo "$as_me: failed program was:" >&5 | ||
13128 | cat conftest.$ac_ext >&5 | ||
13129 | ac_cv_have_struct_in6_addr="no" | ||
13130 | |||
13131 | fi | ||
13132 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13133 | |||
13134 | fi | ||
13135 | echo "$as_me:13135: result: $ac_cv_have_struct_in6_addr" >&5 | ||
13136 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
13137 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
13138 | cat >>confdefs.h <<\EOF | ||
13139 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
13140 | EOF | ||
13141 | |||
13142 | fi | ||
13143 | |||
13144 | echo "$as_me:13144: checking for struct addrinfo" >&5 | ||
13145 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
13146 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
13147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13148 | else | ||
13149 | |||
13150 | cat >conftest.$ac_ext <<_ACEOF | ||
13151 | #line 13151 "configure" | ||
13152 | #include "confdefs.h" | ||
13153 | |||
13154 | #include <sys/types.h> | ||
13155 | #include <sys/socket.h> | ||
13156 | #include <netdb.h> | ||
13157 | |||
13158 | int | ||
13159 | main () | ||
13160 | { | ||
13161 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
13162 | ; | ||
13163 | return 0; | ||
13164 | } | ||
13165 | _ACEOF | ||
13166 | rm -f conftest.$ac_objext | ||
13167 | if { (eval echo "$as_me:13167: \"$ac_compile\"") >&5 | ||
13168 | (eval $ac_compile) 2>&5 | ||
13169 | ac_status=$? | ||
13170 | echo "$as_me:13170: \$? = $ac_status" >&5 | ||
13171 | (exit $ac_status); } && | ||
13172 | { ac_try='test -s conftest.$ac_objext' | ||
13173 | { (eval echo "$as_me:13173: \"$ac_try\"") >&5 | ||
13174 | (eval $ac_try) 2>&5 | ||
13175 | ac_status=$? | ||
13176 | echo "$as_me:13176: \$? = $ac_status" >&5 | ||
13177 | (exit $ac_status); }; }; then | ||
13178 | ac_cv_have_struct_addrinfo="yes" | ||
13179 | else | ||
13180 | echo "$as_me: failed program was:" >&5 | ||
13181 | cat conftest.$ac_ext >&5 | ||
13182 | ac_cv_have_struct_addrinfo="no" | ||
13183 | |||
13184 | fi | ||
13185 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13186 | |||
13187 | fi | ||
13188 | echo "$as_me:13188: result: $ac_cv_have_struct_addrinfo" >&5 | ||
13189 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
13190 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
13191 | cat >>confdefs.h <<\EOF | ||
13192 | #define HAVE_STRUCT_ADDRINFO 1 | ||
13193 | EOF | ||
13194 | |||
13195 | fi | ||
13196 | |||
13197 | echo "$as_me:13197: checking for struct timeval" >&5 | ||
13198 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
13199 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
13200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13201 | else | ||
13202 | |||
13203 | cat >conftest.$ac_ext <<_ACEOF | ||
13204 | #line 13204 "configure" | ||
13205 | #include "confdefs.h" | ||
13206 | #include <sys/time.h> | ||
13207 | int | ||
13208 | main () | ||
13209 | { | ||
13210 | struct timeval tv; tv.tv_sec = 1; | ||
13211 | ; | ||
13212 | return 0; | ||
13213 | } | ||
13214 | _ACEOF | ||
13215 | rm -f conftest.$ac_objext | ||
13216 | if { (eval echo "$as_me:13216: \"$ac_compile\"") >&5 | ||
13217 | (eval $ac_compile) 2>&5 | ||
13218 | ac_status=$? | ||
13219 | echo "$as_me:13219: \$? = $ac_status" >&5 | ||
13220 | (exit $ac_status); } && | ||
13221 | { ac_try='test -s conftest.$ac_objext' | ||
13222 | { (eval echo "$as_me:13222: \"$ac_try\"") >&5 | ||
13223 | (eval $ac_try) 2>&5 | ||
13224 | ac_status=$? | ||
13225 | echo "$as_me:13225: \$? = $ac_status" >&5 | ||
13226 | (exit $ac_status); }; }; then | ||
13227 | ac_cv_have_struct_timeval="yes" | ||
13228 | else | ||
13229 | echo "$as_me: failed program was:" >&5 | ||
13230 | cat conftest.$ac_ext >&5 | ||
13231 | ac_cv_have_struct_timeval="no" | ||
13232 | |||
13233 | fi | ||
13234 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13235 | |||
13236 | fi | ||
13237 | echo "$as_me:13237: result: $ac_cv_have_struct_timeval" >&5 | ||
13238 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
13239 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
13240 | cat >>confdefs.h <<\EOF | ||
13241 | #define HAVE_STRUCT_TIMEVAL 1 | ||
13242 | EOF | ||
13243 | |||
13244 | have_struct_timeval=1 | ||
13245 | fi | ||
13246 | |||
13247 | echo "$as_me:13247: checking for struct timespec" >&5 | ||
13248 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 | ||
13249 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
13250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13251 | else | ||
13252 | cat >conftest.$ac_ext <<_ACEOF | ||
13253 | #line 13253 "configure" | ||
13254 | #include "confdefs.h" | ||
13255 | $ac_includes_default | ||
13256 | int | ||
13257 | main () | ||
13258 | { | ||
13259 | if ((struct timespec *) 0) | ||
13260 | return 0; | ||
13261 | if (sizeof (struct timespec)) | ||
13262 | return 0; | ||
13263 | ; | ||
13264 | return 0; | ||
13265 | } | ||
13266 | _ACEOF | ||
13267 | rm -f conftest.$ac_objext | ||
13268 | if { (eval echo "$as_me:13268: \"$ac_compile\"") >&5 | ||
13269 | (eval $ac_compile) 2>&5 | ||
13270 | ac_status=$? | ||
13271 | echo "$as_me:13271: \$? = $ac_status" >&5 | ||
13272 | (exit $ac_status); } && | ||
13273 | { ac_try='test -s conftest.$ac_objext' | ||
13274 | { (eval echo "$as_me:13274: \"$ac_try\"") >&5 | ||
13275 | (eval $ac_try) 2>&5 | ||
13276 | ac_status=$? | ||
13277 | echo "$as_me:13277: \$? = $ac_status" >&5 | ||
13278 | (exit $ac_status); }; }; then | ||
13279 | ac_cv_type_struct_timespec=yes | ||
13280 | else | ||
13281 | echo "$as_me: failed program was:" >&5 | ||
13282 | cat conftest.$ac_ext >&5 | ||
13283 | ac_cv_type_struct_timespec=no | ||
13284 | fi | ||
13285 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13286 | fi | ||
13287 | echo "$as_me:13287: result: $ac_cv_type_struct_timespec" >&5 | ||
13288 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
13289 | if test $ac_cv_type_struct_timespec = yes; then | ||
13290 | |||
13291 | cat >>confdefs.h <<EOF | ||
13292 | #define HAVE_STRUCT_TIMESPEC 1 | ||
13293 | EOF | ||
13294 | |||
13295 | fi | ||
13296 | |||
13297 | # We need int64_t or else certian parts of the compile will fail. | ||
13298 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | ||
13299 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | ||
13300 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
13301 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
13302 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
13303 | echo "" | ||
13304 | exit 1; | ||
13305 | else | ||
13306 | if test "$cross_compiling" = yes; then | ||
13307 | { { echo "$as_me:13307: error: cannot run test program while cross compiling" >&5 | ||
13308 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
13309 | { (exit 1); exit 1; }; } | ||
13310 | else | ||
13311 | cat >conftest.$ac_ext <<_ACEOF | ||
13312 | #line 13312 "configure" | ||
13313 | #include "confdefs.h" | ||
13314 | |||
13315 | #include <stdio.h> | ||
13316 | #include <string.h> | ||
13317 | #ifdef HAVE_SNPRINTF | ||
13318 | main() | ||
13319 | { | ||
13320 | char buf[50]; | ||
13321 | char expected_out[50]; | ||
13322 | int mazsize = 50 ; | ||
13323 | #if (SIZEOF_LONG_INT == 8) | ||
13324 | long int num = 0x7fffffffffffffff; | ||
13325 | #else | ||
13326 | long long num = 0x7fffffffffffffffll; | ||
13327 | #endif | ||
13328 | strcpy(expected_out, "9223372036854775807"); | ||
13329 | snprintf(buf, mazsize, "%lld", num); | ||
13330 | if(strcmp(buf, expected_out) != 0) | ||
13331 | exit(1); | ||
13332 | exit(0); | ||
13333 | } | ||
13334 | #else | ||
13335 | main() { exit(0); } | ||
13336 | #endif | ||
13337 | |||
13338 | _ACEOF | ||
13339 | rm -f conftest$ac_exeext | ||
13340 | if { (eval echo "$as_me:13340: \"$ac_link\"") >&5 | ||
13341 | (eval $ac_link) 2>&5 | ||
13342 | ac_status=$? | ||
13343 | echo "$as_me:13343: \$? = $ac_status" >&5 | ||
13344 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13345 | { (eval echo "$as_me:13345: \"$ac_try\"") >&5 | ||
13346 | (eval $ac_try) 2>&5 | ||
13347 | ac_status=$? | ||
13348 | echo "$as_me:13348: \$? = $ac_status" >&5 | ||
13349 | (exit $ac_status); }; }; then | ||
13350 | true | ||
13351 | else | ||
13352 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13353 | echo "$as_me: failed program was:" >&5 | ||
13354 | cat conftest.$ac_ext >&5 | ||
13355 | cat >>confdefs.h <<\EOF | ||
13356 | #define BROKEN_SNPRINTF 1 | ||
13357 | EOF | ||
13358 | |||
13359 | fi | ||
13360 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13361 | fi | ||
13362 | fi | ||
13363 | |||
13364 | # look for field 'ut_host' in header 'utmp.h' | ||
13365 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13366 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13367 | echo "$as_me:13367: checking for ut_host field in utmp.h" >&5 | ||
13368 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
13369 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13371 | else | ||
13372 | |||
13373 | cat >conftest.$ac_ext <<_ACEOF | ||
13374 | #line 13374 "configure" | ||
13375 | #include "confdefs.h" | ||
13376 | #include <utmp.h> | ||
13377 | |||
13378 | _ACEOF | ||
13379 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13380 | egrep "ut_host" >/dev/null 2>&1; then | ||
13381 | eval "$ossh_varname=yes" | ||
13382 | else | ||
13383 | eval "$ossh_varname=no" | ||
13384 | fi | ||
13385 | rm -f conftest* | ||
13386 | |||
13387 | fi | ||
13388 | |||
13389 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13390 | if test -n "`echo $ossh_varname`"; then | ||
13391 | echo "$as_me:13391: result: $ossh_result" >&5 | ||
13392 | echo "${ECHO_T}$ossh_result" >&6 | ||
13393 | if test "x$ossh_result" = "xyes"; then | ||
13394 | cat >>confdefs.h <<\EOF | ||
13395 | #define HAVE_HOST_IN_UTMP 1 | ||
13396 | EOF | ||
13397 | |||
13398 | fi | ||
13399 | else | ||
13400 | echo "$as_me:13400: result: no" >&5 | ||
13401 | echo "${ECHO_T}no" >&6 | ||
13402 | fi | ||
13403 | |||
13404 | # look for field 'ut_host' in header 'utmpx.h' | ||
13405 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13406 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13407 | echo "$as_me:13407: checking for ut_host field in utmpx.h" >&5 | ||
13408 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
13409 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13411 | else | ||
13412 | |||
13413 | cat >conftest.$ac_ext <<_ACEOF | ||
13414 | #line 13414 "configure" | ||
13415 | #include "confdefs.h" | ||
13416 | #include <utmpx.h> | ||
13417 | |||
13418 | _ACEOF | ||
13419 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13420 | egrep "ut_host" >/dev/null 2>&1; then | ||
13421 | eval "$ossh_varname=yes" | ||
13422 | else | ||
13423 | eval "$ossh_varname=no" | ||
13424 | fi | ||
13425 | rm -f conftest* | ||
13426 | |||
13427 | fi | ||
13428 | |||
13429 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13430 | if test -n "`echo $ossh_varname`"; then | ||
13431 | echo "$as_me:13431: result: $ossh_result" >&5 | ||
13432 | echo "${ECHO_T}$ossh_result" >&6 | ||
13433 | if test "x$ossh_result" = "xyes"; then | ||
13434 | cat >>confdefs.h <<\EOF | ||
13435 | #define HAVE_HOST_IN_UTMPX 1 | ||
13436 | EOF | ||
13437 | |||
13438 | fi | ||
13439 | else | ||
13440 | echo "$as_me:13440: result: no" >&5 | ||
13441 | echo "${ECHO_T}no" >&6 | ||
13442 | fi | ||
13443 | |||
13444 | # look for field 'syslen' in header 'utmpx.h' | ||
13445 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13446 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
13447 | echo "$as_me:13447: checking for syslen field in utmpx.h" >&5 | ||
13448 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
13449 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13451 | else | ||
13452 | |||
13453 | cat >conftest.$ac_ext <<_ACEOF | ||
13454 | #line 13454 "configure" | ||
13455 | #include "confdefs.h" | ||
13456 | #include <utmpx.h> | ||
13457 | |||
13458 | _ACEOF | ||
13459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13460 | egrep "syslen" >/dev/null 2>&1; then | ||
13461 | eval "$ossh_varname=yes" | ||
13462 | else | ||
13463 | eval "$ossh_varname=no" | ||
13464 | fi | ||
13465 | rm -f conftest* | ||
13466 | |||
13467 | fi | ||
13468 | |||
13469 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13470 | if test -n "`echo $ossh_varname`"; then | ||
13471 | echo "$as_me:13471: result: $ossh_result" >&5 | ||
13472 | echo "${ECHO_T}$ossh_result" >&6 | ||
13473 | if test "x$ossh_result" = "xyes"; then | ||
13474 | cat >>confdefs.h <<\EOF | ||
13475 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
13476 | EOF | ||
13477 | |||
13478 | fi | ||
13479 | else | ||
13480 | echo "$as_me:13480: result: no" >&5 | ||
13481 | echo "${ECHO_T}no" >&6 | ||
13482 | fi | ||
13483 | |||
13484 | # look for field 'ut_pid' in header 'utmp.h' | ||
13485 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13486 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
13487 | echo "$as_me:13487: checking for ut_pid field in utmp.h" >&5 | ||
13488 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
13489 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13491 | else | ||
13492 | |||
13493 | cat >conftest.$ac_ext <<_ACEOF | ||
13494 | #line 13494 "configure" | ||
13495 | #include "confdefs.h" | ||
13496 | #include <utmp.h> | ||
13497 | |||
13498 | _ACEOF | ||
13499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13500 | egrep "ut_pid" >/dev/null 2>&1; then | ||
13501 | eval "$ossh_varname=yes" | ||
13502 | else | ||
13503 | eval "$ossh_varname=no" | ||
13504 | fi | ||
13505 | rm -f conftest* | ||
13506 | |||
13507 | fi | ||
13508 | |||
13509 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13510 | if test -n "`echo $ossh_varname`"; then | ||
13511 | echo "$as_me:13511: result: $ossh_result" >&5 | ||
13512 | echo "${ECHO_T}$ossh_result" >&6 | ||
13513 | if test "x$ossh_result" = "xyes"; then | ||
13514 | cat >>confdefs.h <<\EOF | ||
13515 | #define HAVE_PID_IN_UTMP 1 | ||
13516 | EOF | ||
13517 | |||
13518 | fi | ||
13519 | else | ||
13520 | echo "$as_me:13520: result: no" >&5 | ||
13521 | echo "${ECHO_T}no" >&6 | ||
13522 | fi | ||
13523 | |||
13524 | # look for field 'ut_type' in header 'utmp.h' | ||
13525 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13526 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13527 | echo "$as_me:13527: checking for ut_type field in utmp.h" >&5 | ||
13528 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
13529 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13531 | else | ||
13532 | |||
13533 | cat >conftest.$ac_ext <<_ACEOF | ||
13534 | #line 13534 "configure" | ||
13535 | #include "confdefs.h" | ||
13536 | #include <utmp.h> | ||
13537 | |||
13538 | _ACEOF | ||
13539 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13540 | egrep "ut_type" >/dev/null 2>&1; then | ||
13541 | eval "$ossh_varname=yes" | ||
13542 | else | ||
13543 | eval "$ossh_varname=no" | ||
13544 | fi | ||
13545 | rm -f conftest* | ||
13546 | |||
13547 | fi | ||
13548 | |||
13549 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13550 | if test -n "`echo $ossh_varname`"; then | ||
13551 | echo "$as_me:13551: result: $ossh_result" >&5 | ||
13552 | echo "${ECHO_T}$ossh_result" >&6 | ||
13553 | if test "x$ossh_result" = "xyes"; then | ||
13554 | cat >>confdefs.h <<\EOF | ||
13555 | #define HAVE_TYPE_IN_UTMP 1 | ||
13556 | EOF | ||
13557 | |||
13558 | fi | ||
13559 | else | ||
13560 | echo "$as_me:13560: result: no" >&5 | ||
13561 | echo "${ECHO_T}no" >&6 | ||
13562 | fi | ||
13563 | |||
13564 | # look for field 'ut_type' in header 'utmpx.h' | ||
13565 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13566 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13567 | echo "$as_me:13567: checking for ut_type field in utmpx.h" >&5 | ||
13568 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
13569 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13571 | else | ||
13572 | |||
13573 | cat >conftest.$ac_ext <<_ACEOF | ||
13574 | #line 13574 "configure" | ||
13575 | #include "confdefs.h" | ||
13576 | #include <utmpx.h> | ||
13577 | |||
13578 | _ACEOF | ||
13579 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13580 | egrep "ut_type" >/dev/null 2>&1; then | ||
13581 | eval "$ossh_varname=yes" | ||
13582 | else | ||
13583 | eval "$ossh_varname=no" | ||
13584 | fi | ||
13585 | rm -f conftest* | ||
13586 | |||
13587 | fi | ||
13588 | |||
13589 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13590 | if test -n "`echo $ossh_varname`"; then | ||
13591 | echo "$as_me:13591: result: $ossh_result" >&5 | ||
13592 | echo "${ECHO_T}$ossh_result" >&6 | ||
13593 | if test "x$ossh_result" = "xyes"; then | ||
13594 | cat >>confdefs.h <<\EOF | ||
13595 | #define HAVE_TYPE_IN_UTMPX 1 | ||
13596 | EOF | ||
13597 | |||
13598 | fi | ||
13599 | else | ||
13600 | echo "$as_me:13600: result: no" >&5 | ||
13601 | echo "${ECHO_T}no" >&6 | ||
13602 | fi | ||
13603 | |||
13604 | # look for field 'ut_tv' in header 'utmp.h' | ||
13605 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13606 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13607 | echo "$as_me:13607: checking for ut_tv field in utmp.h" >&5 | ||
13608 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
13609 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13611 | else | ||
13612 | |||
13613 | cat >conftest.$ac_ext <<_ACEOF | ||
13614 | #line 13614 "configure" | ||
13615 | #include "confdefs.h" | ||
13616 | #include <utmp.h> | ||
13617 | |||
13618 | _ACEOF | ||
13619 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13620 | egrep "ut_tv" >/dev/null 2>&1; then | ||
13621 | eval "$ossh_varname=yes" | ||
13622 | else | ||
13623 | eval "$ossh_varname=no" | ||
13624 | fi | ||
13625 | rm -f conftest* | ||
13626 | |||
13627 | fi | ||
13628 | |||
13629 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13630 | if test -n "`echo $ossh_varname`"; then | ||
13631 | echo "$as_me:13631: result: $ossh_result" >&5 | ||
13632 | echo "${ECHO_T}$ossh_result" >&6 | ||
13633 | if test "x$ossh_result" = "xyes"; then | ||
13634 | cat >>confdefs.h <<\EOF | ||
13635 | #define HAVE_TV_IN_UTMP 1 | ||
13636 | EOF | ||
13637 | |||
13638 | fi | ||
13639 | else | ||
13640 | echo "$as_me:13640: result: no" >&5 | ||
13641 | echo "${ECHO_T}no" >&6 | ||
13642 | fi | ||
13643 | |||
13644 | # look for field 'ut_id' in header 'utmp.h' | ||
13645 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13646 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13647 | echo "$as_me:13647: checking for ut_id field in utmp.h" >&5 | ||
13648 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
13649 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13651 | else | ||
13652 | |||
13653 | cat >conftest.$ac_ext <<_ACEOF | ||
13654 | #line 13654 "configure" | ||
13655 | #include "confdefs.h" | ||
13656 | #include <utmp.h> | ||
13657 | |||
13658 | _ACEOF | ||
13659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13660 | egrep "ut_id" >/dev/null 2>&1; then | ||
13661 | eval "$ossh_varname=yes" | ||
13662 | else | ||
13663 | eval "$ossh_varname=no" | ||
13664 | fi | ||
13665 | rm -f conftest* | ||
13666 | |||
13667 | fi | ||
13668 | |||
13669 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13670 | if test -n "`echo $ossh_varname`"; then | ||
13671 | echo "$as_me:13671: result: $ossh_result" >&5 | ||
13672 | echo "${ECHO_T}$ossh_result" >&6 | ||
13673 | if test "x$ossh_result" = "xyes"; then | ||
13674 | cat >>confdefs.h <<\EOF | ||
13675 | #define HAVE_ID_IN_UTMP 1 | ||
13676 | EOF | ||
13677 | |||
13678 | fi | ||
13679 | else | ||
13680 | echo "$as_me:13680: result: no" >&5 | ||
13681 | echo "${ECHO_T}no" >&6 | ||
13682 | fi | ||
13683 | |||
13684 | # look for field 'ut_id' in header 'utmpx.h' | ||
13685 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13686 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13687 | echo "$as_me:13687: checking for ut_id field in utmpx.h" >&5 | ||
13688 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
13689 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13691 | else | ||
13692 | |||
13693 | cat >conftest.$ac_ext <<_ACEOF | ||
13694 | #line 13694 "configure" | ||
13695 | #include "confdefs.h" | ||
13696 | #include <utmpx.h> | ||
13697 | |||
13698 | _ACEOF | ||
13699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13700 | egrep "ut_id" >/dev/null 2>&1; then | ||
13701 | eval "$ossh_varname=yes" | ||
13702 | else | ||
13703 | eval "$ossh_varname=no" | ||
13704 | fi | ||
13705 | rm -f conftest* | ||
13706 | |||
13707 | fi | ||
13708 | |||
13709 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13710 | if test -n "`echo $ossh_varname`"; then | ||
13711 | echo "$as_me:13711: result: $ossh_result" >&5 | ||
13712 | echo "${ECHO_T}$ossh_result" >&6 | ||
13713 | if test "x$ossh_result" = "xyes"; then | ||
13714 | cat >>confdefs.h <<\EOF | ||
13715 | #define HAVE_ID_IN_UTMPX 1 | ||
13716 | EOF | ||
13717 | |||
13718 | fi | ||
13719 | else | ||
13720 | echo "$as_me:13720: result: no" >&5 | ||
13721 | echo "${ECHO_T}no" >&6 | ||
13722 | fi | ||
13723 | |||
13724 | # look for field 'ut_addr' in header 'utmp.h' | ||
13725 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13726 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13727 | echo "$as_me:13727: checking for ut_addr field in utmp.h" >&5 | ||
13728 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
13729 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13731 | else | ||
13732 | |||
13733 | cat >conftest.$ac_ext <<_ACEOF | ||
13734 | #line 13734 "configure" | ||
13735 | #include "confdefs.h" | ||
13736 | #include <utmp.h> | ||
13737 | |||
13738 | _ACEOF | ||
13739 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13740 | egrep "ut_addr" >/dev/null 2>&1; then | ||
13741 | eval "$ossh_varname=yes" | ||
13742 | else | ||
13743 | eval "$ossh_varname=no" | ||
13744 | fi | ||
13745 | rm -f conftest* | ||
13746 | |||
13747 | fi | ||
13748 | |||
13749 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13750 | if test -n "`echo $ossh_varname`"; then | ||
13751 | echo "$as_me:13751: result: $ossh_result" >&5 | ||
13752 | echo "${ECHO_T}$ossh_result" >&6 | ||
13753 | if test "x$ossh_result" = "xyes"; then | ||
13754 | cat >>confdefs.h <<\EOF | ||
13755 | #define HAVE_ADDR_IN_UTMP 1 | ||
13756 | EOF | ||
13757 | |||
13758 | fi | ||
13759 | else | ||
13760 | echo "$as_me:13760: result: no" >&5 | ||
13761 | echo "${ECHO_T}no" >&6 | ||
13762 | fi | ||
13763 | |||
13764 | # look for field 'ut_addr' in header 'utmpx.h' | ||
13765 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13766 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13767 | echo "$as_me:13767: checking for ut_addr field in utmpx.h" >&5 | ||
13768 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
13769 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13771 | else | ||
13772 | |||
13773 | cat >conftest.$ac_ext <<_ACEOF | ||
13774 | #line 13774 "configure" | ||
13775 | #include "confdefs.h" | ||
13776 | #include <utmpx.h> | ||
13777 | |||
13778 | _ACEOF | ||
13779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13780 | egrep "ut_addr" >/dev/null 2>&1; then | ||
13781 | eval "$ossh_varname=yes" | ||
13782 | else | ||
13783 | eval "$ossh_varname=no" | ||
13784 | fi | ||
13785 | rm -f conftest* | ||
13786 | |||
13787 | fi | ||
13788 | |||
13789 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13790 | if test -n "`echo $ossh_varname`"; then | ||
13791 | echo "$as_me:13791: result: $ossh_result" >&5 | ||
13792 | echo "${ECHO_T}$ossh_result" >&6 | ||
13793 | if test "x$ossh_result" = "xyes"; then | ||
13794 | cat >>confdefs.h <<\EOF | ||
13795 | #define HAVE_ADDR_IN_UTMPX 1 | ||
13796 | EOF | ||
13797 | |||
13798 | fi | ||
13799 | else | ||
13800 | echo "$as_me:13800: result: no" >&5 | ||
13801 | echo "${ECHO_T}no" >&6 | ||
13802 | fi | ||
13803 | |||
13804 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
13805 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13806 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13807 | echo "$as_me:13807: checking for ut_addr_v6 field in utmp.h" >&5 | ||
13808 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
13809 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13811 | else | ||
13812 | |||
13813 | cat >conftest.$ac_ext <<_ACEOF | ||
13814 | #line 13814 "configure" | ||
13815 | #include "confdefs.h" | ||
13816 | #include <utmp.h> | ||
13817 | |||
13818 | _ACEOF | ||
13819 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13820 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
13821 | eval "$ossh_varname=yes" | ||
13822 | else | ||
13823 | eval "$ossh_varname=no" | ||
13824 | fi | ||
13825 | rm -f conftest* | ||
13826 | |||
13827 | fi | ||
13828 | |||
13829 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13830 | if test -n "`echo $ossh_varname`"; then | ||
13831 | echo "$as_me:13831: result: $ossh_result" >&5 | ||
13832 | echo "${ECHO_T}$ossh_result" >&6 | ||
13833 | if test "x$ossh_result" = "xyes"; then | ||
13834 | cat >>confdefs.h <<\EOF | ||
13835 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
13836 | EOF | ||
13837 | |||
13838 | fi | ||
13839 | else | ||
13840 | echo "$as_me:13840: result: no" >&5 | ||
13841 | echo "${ECHO_T}no" >&6 | ||
13842 | fi | ||
13843 | |||
13844 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
13845 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13846 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13847 | echo "$as_me:13847: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
13848 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
13849 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13851 | else | ||
13852 | |||
13853 | cat >conftest.$ac_ext <<_ACEOF | ||
13854 | #line 13854 "configure" | ||
13855 | #include "confdefs.h" | ||
13856 | #include <utmpx.h> | ||
13857 | |||
13858 | _ACEOF | ||
13859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13860 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
13861 | eval "$ossh_varname=yes" | ||
13862 | else | ||
13863 | eval "$ossh_varname=no" | ||
13864 | fi | ||
13865 | rm -f conftest* | ||
13866 | |||
13867 | fi | ||
13868 | |||
13869 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13870 | if test -n "`echo $ossh_varname`"; then | ||
13871 | echo "$as_me:13871: result: $ossh_result" >&5 | ||
13872 | echo "${ECHO_T}$ossh_result" >&6 | ||
13873 | if test "x$ossh_result" = "xyes"; then | ||
13874 | cat >>confdefs.h <<\EOF | ||
13875 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
13876 | EOF | ||
13877 | |||
13878 | fi | ||
13879 | else | ||
13880 | echo "$as_me:13880: result: no" >&5 | ||
13881 | echo "${ECHO_T}no" >&6 | ||
13882 | fi | ||
13883 | |||
13884 | # look for field 'ut_exit' in header 'utmp.h' | ||
13885 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13886 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
13887 | echo "$as_me:13887: checking for ut_exit field in utmp.h" >&5 | ||
13888 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
13889 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13891 | else | ||
13892 | |||
13893 | cat >conftest.$ac_ext <<_ACEOF | ||
13894 | #line 13894 "configure" | ||
13895 | #include "confdefs.h" | ||
13896 | #include <utmp.h> | ||
13897 | |||
13898 | _ACEOF | ||
13899 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13900 | egrep "ut_exit" >/dev/null 2>&1; then | ||
13901 | eval "$ossh_varname=yes" | ||
13902 | else | ||
13903 | eval "$ossh_varname=no" | ||
13904 | fi | ||
13905 | rm -f conftest* | ||
13906 | |||
13907 | fi | ||
13908 | |||
13909 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13910 | if test -n "`echo $ossh_varname`"; then | ||
13911 | echo "$as_me:13911: result: $ossh_result" >&5 | ||
13912 | echo "${ECHO_T}$ossh_result" >&6 | ||
13913 | if test "x$ossh_result" = "xyes"; then | ||
13914 | cat >>confdefs.h <<\EOF | ||
13915 | #define HAVE_EXIT_IN_UTMP 1 | ||
13916 | EOF | ||
13917 | |||
13918 | fi | ||
13919 | else | ||
13920 | echo "$as_me:13920: result: no" >&5 | ||
13921 | echo "${ECHO_T}no" >&6 | ||
13922 | fi | ||
13923 | |||
13924 | # look for field 'ut_time' in header 'utmp.h' | ||
13925 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13926 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13927 | echo "$as_me:13927: checking for ut_time field in utmp.h" >&5 | ||
13928 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
13929 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13931 | else | ||
13932 | |||
13933 | cat >conftest.$ac_ext <<_ACEOF | ||
13934 | #line 13934 "configure" | ||
13935 | #include "confdefs.h" | ||
13936 | #include <utmp.h> | ||
13937 | |||
13938 | _ACEOF | ||
13939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13940 | egrep "ut_time" >/dev/null 2>&1; then | ||
13941 | eval "$ossh_varname=yes" | ||
13942 | else | ||
13943 | eval "$ossh_varname=no" | ||
13944 | fi | ||
13945 | rm -f conftest* | ||
13946 | |||
13947 | fi | ||
13948 | |||
13949 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13950 | if test -n "`echo $ossh_varname`"; then | ||
13951 | echo "$as_me:13951: result: $ossh_result" >&5 | ||
13952 | echo "${ECHO_T}$ossh_result" >&6 | ||
13953 | if test "x$ossh_result" = "xyes"; then | ||
13954 | cat >>confdefs.h <<\EOF | ||
13955 | #define HAVE_TIME_IN_UTMP 1 | ||
13956 | EOF | ||
13957 | |||
13958 | fi | ||
13959 | else | ||
13960 | echo "$as_me:13960: result: no" >&5 | ||
13961 | echo "${ECHO_T}no" >&6 | ||
13962 | fi | ||
13963 | |||
13964 | # look for field 'ut_time' in header 'utmpx.h' | ||
13965 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13966 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13967 | echo "$as_me:13967: checking for ut_time field in utmpx.h" >&5 | ||
13968 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
13969 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13971 | else | ||
13972 | |||
13973 | cat >conftest.$ac_ext <<_ACEOF | ||
13974 | #line 13974 "configure" | ||
13975 | #include "confdefs.h" | ||
13976 | #include <utmpx.h> | ||
13977 | |||
13978 | _ACEOF | ||
13979 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13980 | egrep "ut_time" >/dev/null 2>&1; then | ||
13981 | eval "$ossh_varname=yes" | ||
13982 | else | ||
13983 | eval "$ossh_varname=no" | ||
13984 | fi | ||
13985 | rm -f conftest* | ||
13986 | |||
13987 | fi | ||
13988 | |||
13989 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13990 | if test -n "`echo $ossh_varname`"; then | ||
13991 | echo "$as_me:13991: result: $ossh_result" >&5 | ||
13992 | echo "${ECHO_T}$ossh_result" >&6 | ||
13993 | if test "x$ossh_result" = "xyes"; then | ||
13994 | cat >>confdefs.h <<\EOF | ||
13995 | #define HAVE_TIME_IN_UTMPX 1 | ||
13996 | EOF | ||
13997 | |||
13998 | fi | ||
13999 | else | ||
14000 | echo "$as_me:14000: result: no" >&5 | ||
14001 | echo "${ECHO_T}no" >&6 | ||
14002 | fi | ||
14003 | |||
14004 | # look for field 'ut_tv' in header 'utmpx.h' | ||
14005 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14006 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
14007 | echo "$as_me:14007: checking for ut_tv field in utmpx.h" >&5 | ||
14008 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
14009 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14011 | else | ||
14012 | |||
14013 | cat >conftest.$ac_ext <<_ACEOF | ||
14014 | #line 14014 "configure" | ||
14015 | #include "confdefs.h" | ||
14016 | #include <utmpx.h> | ||
14017 | |||
14018 | _ACEOF | ||
14019 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14020 | egrep "ut_tv" >/dev/null 2>&1; then | ||
14021 | eval "$ossh_varname=yes" | ||
14022 | else | ||
14023 | eval "$ossh_varname=no" | ||
14024 | fi | ||
14025 | rm -f conftest* | ||
14026 | |||
14027 | fi | ||
14028 | |||
14029 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14030 | if test -n "`echo $ossh_varname`"; then | ||
14031 | echo "$as_me:14031: result: $ossh_result" >&5 | ||
14032 | echo "${ECHO_T}$ossh_result" >&6 | ||
14033 | if test "x$ossh_result" = "xyes"; then | ||
14034 | cat >>confdefs.h <<\EOF | ||
14035 | #define HAVE_TV_IN_UTMPX 1 | ||
14036 | EOF | ||
14037 | |||
14038 | fi | ||
14039 | else | ||
14040 | echo "$as_me:14040: result: no" >&5 | ||
14041 | echo "${ECHO_T}no" >&6 | ||
14042 | fi | ||
14043 | |||
14044 | echo "$as_me:14044: checking for struct stat.st_blksize" >&5 | ||
14045 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
14046 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
14047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14048 | else | ||
14049 | cat >conftest.$ac_ext <<_ACEOF | ||
14050 | #line 14050 "configure" | ||
14051 | #include "confdefs.h" | ||
14052 | $ac_includes_default | ||
14053 | int | ||
14054 | main () | ||
14055 | { | ||
14056 | static struct stat ac_aggr; | ||
14057 | if (ac_aggr.st_blksize) | ||
14058 | return 0; | ||
14059 | ; | ||
14060 | return 0; | ||
14061 | } | ||
14062 | _ACEOF | ||
14063 | rm -f conftest.$ac_objext | ||
14064 | if { (eval echo "$as_me:14064: \"$ac_compile\"") >&5 | ||
14065 | (eval $ac_compile) 2>&5 | ||
14066 | ac_status=$? | ||
14067 | echo "$as_me:14067: \$? = $ac_status" >&5 | ||
14068 | (exit $ac_status); } && | ||
14069 | { ac_try='test -s conftest.$ac_objext' | ||
14070 | { (eval echo "$as_me:14070: \"$ac_try\"") >&5 | ||
14071 | (eval $ac_try) 2>&5 | ||
14072 | ac_status=$? | ||
14073 | echo "$as_me:14073: \$? = $ac_status" >&5 | ||
14074 | (exit $ac_status); }; }; then | ||
14075 | ac_cv_member_struct_stat_st_blksize=yes | ||
14076 | else | ||
14077 | echo "$as_me: failed program was:" >&5 | ||
14078 | cat conftest.$ac_ext >&5 | ||
14079 | ac_cv_member_struct_stat_st_blksize=no | ||
14080 | fi | ||
14081 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14082 | fi | ||
14083 | echo "$as_me:14083: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
14084 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
14085 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
14086 | |||
14087 | cat >>confdefs.h <<EOF | ||
14088 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
14089 | EOF | ||
14090 | |||
14091 | fi | ||
14092 | |||
14093 | echo "$as_me:14093: checking for ss_family field in struct sockaddr_storage" >&5 | ||
14094 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
14095 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
14096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14097 | else | ||
14098 | |||
14099 | cat >conftest.$ac_ext <<_ACEOF | ||
14100 | #line 14100 "configure" | ||
14101 | #include "confdefs.h" | ||
14102 | |||
14103 | #include <sys/types.h> | ||
14104 | #include <sys/socket.h> | ||
14105 | |||
14106 | int | ||
14107 | main () | ||
14108 | { | ||
14109 | struct sockaddr_storage s; s.ss_family = 1; | ||
14110 | ; | ||
14111 | return 0; | ||
14112 | } | ||
14113 | _ACEOF | ||
14114 | rm -f conftest.$ac_objext | ||
14115 | if { (eval echo "$as_me:14115: \"$ac_compile\"") >&5 | ||
14116 | (eval $ac_compile) 2>&5 | ||
14117 | ac_status=$? | ||
14118 | echo "$as_me:14118: \$? = $ac_status" >&5 | ||
14119 | (exit $ac_status); } && | ||
14120 | { ac_try='test -s conftest.$ac_objext' | ||
14121 | { (eval echo "$as_me:14121: \"$ac_try\"") >&5 | ||
14122 | (eval $ac_try) 2>&5 | ||
14123 | ac_status=$? | ||
14124 | echo "$as_me:14124: \$? = $ac_status" >&5 | ||
14125 | (exit $ac_status); }; }; then | ||
14126 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
14127 | else | ||
14128 | echo "$as_me: failed program was:" >&5 | ||
14129 | cat conftest.$ac_ext >&5 | ||
14130 | ac_cv_have_ss_family_in_struct_ss="no" | ||
14131 | fi | ||
14132 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14133 | |||
14134 | fi | ||
14135 | echo "$as_me:14135: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
14136 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
14137 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
14138 | cat >>confdefs.h <<\EOF | ||
14139 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
14140 | EOF | ||
14141 | |||
14142 | fi | ||
14143 | |||
14144 | echo "$as_me:14144: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
14145 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
14146 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
14147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14148 | else | ||
14149 | |||
14150 | cat >conftest.$ac_ext <<_ACEOF | ||
14151 | #line 14151 "configure" | ||
14152 | #include "confdefs.h" | ||
14153 | |||
14154 | #include <sys/types.h> | ||
14155 | #include <sys/socket.h> | ||
14156 | |||
14157 | int | ||
14158 | main () | ||
14159 | { | ||
14160 | struct sockaddr_storage s; s.__ss_family = 1; | ||
14161 | ; | ||
14162 | return 0; | ||
14163 | } | ||
14164 | _ACEOF | ||
14165 | rm -f conftest.$ac_objext | ||
14166 | if { (eval echo "$as_me:14166: \"$ac_compile\"") >&5 | ||
14167 | (eval $ac_compile) 2>&5 | ||
14168 | ac_status=$? | ||
14169 | echo "$as_me:14169: \$? = $ac_status" >&5 | ||
14170 | (exit $ac_status); } && | ||
14171 | { ac_try='test -s conftest.$ac_objext' | ||
14172 | { (eval echo "$as_me:14172: \"$ac_try\"") >&5 | ||
14173 | (eval $ac_try) 2>&5 | ||
14174 | ac_status=$? | ||
14175 | echo "$as_me:14175: \$? = $ac_status" >&5 | ||
14176 | (exit $ac_status); }; }; then | ||
14177 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
14178 | else | ||
14179 | echo "$as_me: failed program was:" >&5 | ||
14180 | cat conftest.$ac_ext >&5 | ||
14181 | ac_cv_have___ss_family_in_struct_ss="no" | ||
14182 | |||
14183 | fi | ||
14184 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14185 | |||
14186 | fi | ||
14187 | echo "$as_me:14187: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
14188 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
14189 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
14190 | cat >>confdefs.h <<\EOF | ||
14191 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
14192 | EOF | ||
14193 | |||
14194 | fi | ||
14195 | |||
14196 | echo "$as_me:14196: checking for pw_class field in struct passwd" >&5 | ||
14197 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
14198 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
14199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14200 | else | ||
14201 | |||
14202 | cat >conftest.$ac_ext <<_ACEOF | ||
14203 | #line 14203 "configure" | ||
14204 | #include "confdefs.h" | ||
14205 | |||
14206 | #include <pwd.h> | ||
14207 | |||
14208 | int | ||
14209 | main () | ||
14210 | { | ||
14211 | struct passwd p; p.pw_class = 0; | ||
14212 | ; | ||
14213 | return 0; | ||
14214 | } | ||
14215 | _ACEOF | ||
14216 | rm -f conftest.$ac_objext | ||
14217 | if { (eval echo "$as_me:14217: \"$ac_compile\"") >&5 | ||
14218 | (eval $ac_compile) 2>&5 | ||
14219 | ac_status=$? | ||
14220 | echo "$as_me:14220: \$? = $ac_status" >&5 | ||
14221 | (exit $ac_status); } && | ||
14222 | { ac_try='test -s conftest.$ac_objext' | ||
14223 | { (eval echo "$as_me:14223: \"$ac_try\"") >&5 | ||
14224 | (eval $ac_try) 2>&5 | ||
14225 | ac_status=$? | ||
14226 | echo "$as_me:14226: \$? = $ac_status" >&5 | ||
14227 | (exit $ac_status); }; }; then | ||
14228 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
14229 | else | ||
14230 | echo "$as_me: failed program was:" >&5 | ||
14231 | cat conftest.$ac_ext >&5 | ||
14232 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
14233 | |||
14234 | fi | ||
14235 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14236 | |||
14237 | fi | ||
14238 | echo "$as_me:14238: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
14239 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
14240 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
14241 | cat >>confdefs.h <<\EOF | ||
14242 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
14243 | EOF | ||
14244 | |||
14245 | fi | ||
14246 | |||
14247 | echo "$as_me:14247: checking for pw_expire field in struct passwd" >&5 | ||
14248 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
14249 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
14250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14251 | else | ||
14252 | |||
14253 | cat >conftest.$ac_ext <<_ACEOF | ||
14254 | #line 14254 "configure" | ||
14255 | #include "confdefs.h" | ||
14256 | |||
14257 | #include <pwd.h> | ||
14258 | |||
14259 | int | ||
14260 | main () | ||
14261 | { | ||
14262 | struct passwd p; p.pw_expire = 0; | ||
14263 | ; | ||
14264 | return 0; | ||
14265 | } | ||
14266 | _ACEOF | ||
14267 | rm -f conftest.$ac_objext | ||
14268 | if { (eval echo "$as_me:14268: \"$ac_compile\"") >&5 | ||
14269 | (eval $ac_compile) 2>&5 | ||
14270 | ac_status=$? | ||
14271 | echo "$as_me:14271: \$? = $ac_status" >&5 | ||
14272 | (exit $ac_status); } && | ||
14273 | { ac_try='test -s conftest.$ac_objext' | ||
14274 | { (eval echo "$as_me:14274: \"$ac_try\"") >&5 | ||
14275 | (eval $ac_try) 2>&5 | ||
14276 | ac_status=$? | ||
14277 | echo "$as_me:14277: \$? = $ac_status" >&5 | ||
14278 | (exit $ac_status); }; }; then | ||
14279 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
14280 | else | ||
14281 | echo "$as_me: failed program was:" >&5 | ||
14282 | cat conftest.$ac_ext >&5 | ||
14283 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
14284 | |||
14285 | fi | ||
14286 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14287 | |||
14288 | fi | ||
14289 | echo "$as_me:14289: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
14290 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
14291 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
14292 | cat >>confdefs.h <<\EOF | ||
14293 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
14294 | EOF | ||
14295 | |||
14296 | fi | ||
14297 | |||
14298 | echo "$as_me:14298: checking for pw_change field in struct passwd" >&5 | ||
14299 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
14300 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
14301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14302 | else | ||
14303 | |||
14304 | cat >conftest.$ac_ext <<_ACEOF | ||
14305 | #line 14305 "configure" | ||
14306 | #include "confdefs.h" | ||
14307 | |||
14308 | #include <pwd.h> | ||
14309 | |||
14310 | int | ||
14311 | main () | ||
14312 | { | ||
14313 | struct passwd p; p.pw_change = 0; | ||
14314 | ; | ||
14315 | return 0; | ||
14316 | } | ||
14317 | _ACEOF | ||
14318 | rm -f conftest.$ac_objext | ||
14319 | if { (eval echo "$as_me:14319: \"$ac_compile\"") >&5 | ||
14320 | (eval $ac_compile) 2>&5 | ||
14321 | ac_status=$? | ||
14322 | echo "$as_me:14322: \$? = $ac_status" >&5 | ||
14323 | (exit $ac_status); } && | ||
14324 | { ac_try='test -s conftest.$ac_objext' | ||
14325 | { (eval echo "$as_me:14325: \"$ac_try\"") >&5 | ||
14326 | (eval $ac_try) 2>&5 | ||
14327 | ac_status=$? | ||
14328 | echo "$as_me:14328: \$? = $ac_status" >&5 | ||
14329 | (exit $ac_status); }; }; then | ||
14330 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
14331 | else | ||
14332 | echo "$as_me: failed program was:" >&5 | ||
14333 | cat conftest.$ac_ext >&5 | ||
14334 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
14335 | |||
14336 | fi | ||
14337 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14338 | |||
14339 | fi | ||
14340 | echo "$as_me:14340: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
14341 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
14342 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
14343 | cat >>confdefs.h <<\EOF | ||
14344 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
14345 | EOF | ||
14346 | |||
14347 | fi | ||
14348 | |||
14349 | echo "$as_me:14349: checking for msg_accrights field in struct msghdr" >&5 | ||
14350 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
14351 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
14352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14353 | else | ||
14354 | |||
14355 | if test "$cross_compiling" = yes; then | ||
14356 | { { echo "$as_me:14356: error: cannot run test program while cross compiling" >&5 | ||
14357 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
14358 | { (exit 1); exit 1; }; } | ||
14359 | else | ||
14360 | cat >conftest.$ac_ext <<_ACEOF | ||
14361 | #line 14361 "configure" | ||
14362 | #include "confdefs.h" | ||
14363 | |||
14364 | #include <sys/types.h> | ||
14365 | #include <sys/socket.h> | ||
14366 | #include <sys/uio.h> | ||
14367 | int main() { | ||
14368 | #ifdef msg_accrights | ||
14369 | exit(1); | ||
14370 | #endif | ||
14371 | struct msghdr m; | ||
14372 | m.msg_accrights = 0; | ||
14373 | exit(0); | ||
14374 | } | ||
14375 | |||
14376 | _ACEOF | ||
14377 | rm -f conftest$ac_exeext | ||
14378 | if { (eval echo "$as_me:14378: \"$ac_link\"") >&5 | ||
14379 | (eval $ac_link) 2>&5 | ||
14380 | ac_status=$? | ||
14381 | echo "$as_me:14381: \$? = $ac_status" >&5 | ||
14382 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14383 | { (eval echo "$as_me:14383: \"$ac_try\"") >&5 | ||
14384 | (eval $ac_try) 2>&5 | ||
14385 | ac_status=$? | ||
14386 | echo "$as_me:14386: \$? = $ac_status" >&5 | ||
14387 | (exit $ac_status); }; }; then | ||
14388 | ac_cv_have_accrights_in_msghdr="yes" | ||
14389 | else | ||
14390 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14391 | echo "$as_me: failed program was:" >&5 | ||
14392 | cat conftest.$ac_ext >&5 | ||
14393 | ac_cv_have_accrights_in_msghdr="no" | ||
14394 | |||
14395 | fi | ||
14396 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14397 | fi | ||
14398 | |||
14399 | fi | ||
14400 | echo "$as_me:14400: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
14401 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
14402 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
14403 | cat >>confdefs.h <<\EOF | ||
14404 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
14405 | EOF | ||
14406 | |||
14407 | fi | ||
14408 | |||
14409 | echo "$as_me:14409: checking for msg_control field in struct msghdr" >&5 | ||
14410 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
14411 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
14412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14413 | else | ||
14414 | |||
14415 | if test "$cross_compiling" = yes; then | ||
14416 | { { echo "$as_me:14416: error: cannot run test program while cross compiling" >&5 | ||
14417 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
14418 | { (exit 1); exit 1; }; } | ||
14419 | else | ||
14420 | cat >conftest.$ac_ext <<_ACEOF | ||
14421 | #line 14421 "configure" | ||
14422 | #include "confdefs.h" | ||
14423 | |||
14424 | #include <sys/types.h> | ||
14425 | #include <sys/socket.h> | ||
14426 | #include <sys/uio.h> | ||
14427 | int main() { | ||
14428 | #ifdef msg_control | ||
14429 | exit(1); | ||
14430 | #endif | ||
14431 | struct msghdr m; | ||
14432 | m.msg_control = 0; | ||
14433 | exit(0); | ||
14434 | } | ||
14435 | |||
14436 | _ACEOF | ||
14437 | rm -f conftest$ac_exeext | ||
14438 | if { (eval echo "$as_me:14438: \"$ac_link\"") >&5 | ||
14439 | (eval $ac_link) 2>&5 | ||
14440 | ac_status=$? | ||
14441 | echo "$as_me:14441: \$? = $ac_status" >&5 | ||
14442 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14443 | { (eval echo "$as_me:14443: \"$ac_try\"") >&5 | ||
14444 | (eval $ac_try) 2>&5 | ||
14445 | ac_status=$? | ||
14446 | echo "$as_me:14446: \$? = $ac_status" >&5 | ||
14447 | (exit $ac_status); }; }; then | ||
14448 | ac_cv_have_control_in_msghdr="yes" | ||
14449 | else | ||
14450 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14451 | echo "$as_me: failed program was:" >&5 | ||
14452 | cat conftest.$ac_ext >&5 | ||
14453 | ac_cv_have_control_in_msghdr="no" | ||
14454 | |||
14455 | fi | ||
14456 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14457 | fi | ||
14458 | |||
14459 | fi | ||
14460 | echo "$as_me:14460: result: $ac_cv_have_control_in_msghdr" >&5 | ||
14461 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
14462 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
14463 | cat >>confdefs.h <<\EOF | ||
14464 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
14465 | EOF | ||
14466 | |||
14467 | fi | ||
14468 | |||
14469 | echo "$as_me:14469: checking if libc defines __progname" >&5 | ||
14470 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
14471 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
14472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14473 | else | ||
14474 | |||
14475 | cat >conftest.$ac_ext <<_ACEOF | ||
14476 | #line 14476 "configure" | ||
14477 | #include "confdefs.h" | ||
14478 | |||
14479 | int | ||
14480 | main () | ||
14481 | { | ||
14482 | extern char *__progname; printf("%s", __progname); | ||
14483 | ; | ||
14484 | return 0; | ||
14485 | } | ||
14486 | _ACEOF | ||
14487 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14488 | if { (eval echo "$as_me:14488: \"$ac_link\"") >&5 | ||
14489 | (eval $ac_link) 2>&5 | ||
14490 | ac_status=$? | ||
14491 | echo "$as_me:14491: \$? = $ac_status" >&5 | ||
14492 | (exit $ac_status); } && | ||
14493 | { ac_try='test -s conftest$ac_exeext' | ||
14494 | { (eval echo "$as_me:14494: \"$ac_try\"") >&5 | ||
14495 | (eval $ac_try) 2>&5 | ||
14496 | ac_status=$? | ||
14497 | echo "$as_me:14497: \$? = $ac_status" >&5 | ||
14498 | (exit $ac_status); }; }; then | ||
14499 | ac_cv_libc_defines___progname="yes" | ||
14500 | else | ||
14501 | echo "$as_me: failed program was:" >&5 | ||
14502 | cat conftest.$ac_ext >&5 | ||
14503 | ac_cv_libc_defines___progname="no" | ||
14504 | |||
14505 | fi | ||
14506 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14507 | |||
14508 | fi | ||
14509 | echo "$as_me:14509: result: $ac_cv_libc_defines___progname" >&5 | ||
14510 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
14511 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
14512 | cat >>confdefs.h <<\EOF | ||
14513 | #define HAVE___PROGNAME 1 | ||
14514 | EOF | ||
14515 | |||
14516 | fi | ||
14517 | |||
14518 | echo "$as_me:14518: checking whether $CC implements __FUNCTION__" >&5 | ||
14519 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
14520 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
14521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14522 | else | ||
14523 | |||
14524 | cat >conftest.$ac_ext <<_ACEOF | ||
14525 | #line 14525 "configure" | ||
14526 | #include "confdefs.h" | ||
14527 | |||
14528 | #include <stdio.h> | ||
14529 | |||
14530 | int | ||
14531 | main () | ||
14532 | { | ||
14533 | printf("%s", __FUNCTION__); | ||
14534 | ; | ||
14535 | return 0; | ||
14536 | } | ||
14537 | _ACEOF | ||
14538 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14539 | if { (eval echo "$as_me:14539: \"$ac_link\"") >&5 | ||
14540 | (eval $ac_link) 2>&5 | ||
14541 | ac_status=$? | ||
14542 | echo "$as_me:14542: \$? = $ac_status" >&5 | ||
14543 | (exit $ac_status); } && | ||
14544 | { ac_try='test -s conftest$ac_exeext' | ||
14545 | { (eval echo "$as_me:14545: \"$ac_try\"") >&5 | ||
14546 | (eval $ac_try) 2>&5 | ||
14547 | ac_status=$? | ||
14548 | echo "$as_me:14548: \$? = $ac_status" >&5 | ||
14549 | (exit $ac_status); }; }; then | ||
14550 | ac_cv_cc_implements___FUNCTION__="yes" | ||
14551 | else | ||
14552 | echo "$as_me: failed program was:" >&5 | ||
14553 | cat conftest.$ac_ext >&5 | ||
14554 | ac_cv_cc_implements___FUNCTION__="no" | ||
14555 | |||
14556 | fi | ||
14557 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14558 | |||
14559 | fi | ||
14560 | echo "$as_me:14560: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
14561 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
14562 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
14563 | cat >>confdefs.h <<\EOF | ||
14564 | #define HAVE___FUNCTION__ 1 | ||
14565 | EOF | ||
14566 | |||
14567 | fi | ||
14568 | |||
14569 | echo "$as_me:14569: checking whether $CC implements __func__" >&5 | ||
14570 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
14571 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
14572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14573 | else | ||
14574 | |||
14575 | cat >conftest.$ac_ext <<_ACEOF | ||
14576 | #line 14576 "configure" | ||
14577 | #include "confdefs.h" | ||
14578 | |||
14579 | #include <stdio.h> | ||
14580 | |||
14581 | int | ||
14582 | main () | ||
14583 | { | ||
14584 | printf("%s", __func__); | ||
14585 | ; | ||
14586 | return 0; | ||
14587 | } | ||
14588 | _ACEOF | ||
14589 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14590 | if { (eval echo "$as_me:14590: \"$ac_link\"") >&5 | ||
14591 | (eval $ac_link) 2>&5 | ||
14592 | ac_status=$? | ||
14593 | echo "$as_me:14593: \$? = $ac_status" >&5 | ||
14594 | (exit $ac_status); } && | ||
14595 | { ac_try='test -s conftest$ac_exeext' | ||
14596 | { (eval echo "$as_me:14596: \"$ac_try\"") >&5 | ||
14597 | (eval $ac_try) 2>&5 | ||
14598 | ac_status=$? | ||
14599 | echo "$as_me:14599: \$? = $ac_status" >&5 | ||
14600 | (exit $ac_status); }; }; then | ||
14601 | ac_cv_cc_implements___func__="yes" | ||
14602 | else | ||
14603 | echo "$as_me: failed program was:" >&5 | ||
14604 | cat conftest.$ac_ext >&5 | ||
14605 | ac_cv_cc_implements___func__="no" | ||
14606 | |||
14607 | fi | ||
14608 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14609 | |||
14610 | fi | ||
14611 | echo "$as_me:14611: result: $ac_cv_cc_implements___func__" >&5 | ||
14612 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
14613 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
14614 | cat >>confdefs.h <<\EOF | ||
14615 | #define HAVE___func__ 1 | ||
14616 | EOF | ||
14617 | |||
14618 | fi | ||
14619 | |||
14620 | echo "$as_me:14620: checking whether getopt has optreset support" >&5 | ||
14621 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
14622 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
14623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14624 | else | ||
14625 | |||
14626 | cat >conftest.$ac_ext <<_ACEOF | ||
14627 | #line 14627 "configure" | ||
14628 | #include "confdefs.h" | ||
14629 | |||
14630 | #include <getopt.h> | ||
14631 | |||
14632 | int | ||
14633 | main () | ||
14634 | { | ||
14635 | extern int optreset; optreset = 0; | ||
14636 | ; | ||
14637 | return 0; | ||
14638 | } | ||
14639 | _ACEOF | ||
14640 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14641 | if { (eval echo "$as_me:14641: \"$ac_link\"") >&5 | ||
14642 | (eval $ac_link) 2>&5 | ||
14643 | ac_status=$? | ||
14644 | echo "$as_me:14644: \$? = $ac_status" >&5 | ||
14645 | (exit $ac_status); } && | ||
14646 | { ac_try='test -s conftest$ac_exeext' | ||
14647 | { (eval echo "$as_me:14647: \"$ac_try\"") >&5 | ||
14648 | (eval $ac_try) 2>&5 | ||
14649 | ac_status=$? | ||
14650 | echo "$as_me:14650: \$? = $ac_status" >&5 | ||
14651 | (exit $ac_status); }; }; then | ||
14652 | ac_cv_have_getopt_optreset="yes" | ||
14653 | else | ||
14654 | echo "$as_me: failed program was:" >&5 | ||
14655 | cat conftest.$ac_ext >&5 | ||
14656 | ac_cv_have_getopt_optreset="no" | ||
14657 | |||
14658 | fi | ||
14659 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14660 | |||
14661 | fi | ||
14662 | echo "$as_me:14662: result: $ac_cv_have_getopt_optreset" >&5 | ||
14663 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
14664 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
14665 | cat >>confdefs.h <<\EOF | ||
14666 | #define HAVE_GETOPT_OPTRESET 1 | ||
14667 | EOF | ||
14668 | |||
14669 | fi | ||
14670 | |||
14671 | echo "$as_me:14671: checking if libc defines sys_errlist" >&5 | ||
14672 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
14673 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
14674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14675 | else | ||
14676 | |||
14677 | cat >conftest.$ac_ext <<_ACEOF | ||
14678 | #line 14678 "configure" | ||
14679 | #include "confdefs.h" | ||
14680 | |||
14681 | int | ||
14682 | main () | ||
14683 | { | ||
14684 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
14685 | ; | ||
14686 | return 0; | ||
14687 | } | ||
14688 | _ACEOF | ||
14689 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14690 | if { (eval echo "$as_me:14690: \"$ac_link\"") >&5 | ||
14691 | (eval $ac_link) 2>&5 | ||
14692 | ac_status=$? | ||
14693 | echo "$as_me:14693: \$? = $ac_status" >&5 | ||
14694 | (exit $ac_status); } && | ||
14695 | { ac_try='test -s conftest$ac_exeext' | ||
14696 | { (eval echo "$as_me:14696: \"$ac_try\"") >&5 | ||
14697 | (eval $ac_try) 2>&5 | ||
14698 | ac_status=$? | ||
14699 | echo "$as_me:14699: \$? = $ac_status" >&5 | ||
14700 | (exit $ac_status); }; }; then | ||
14701 | ac_cv_libc_defines_sys_errlist="yes" | ||
14702 | else | ||
14703 | echo "$as_me: failed program was:" >&5 | ||
14704 | cat conftest.$ac_ext >&5 | ||
14705 | ac_cv_libc_defines_sys_errlist="no" | ||
14706 | |||
14707 | fi | ||
14708 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14709 | |||
14710 | fi | ||
14711 | echo "$as_me:14711: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
14712 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
14713 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
14714 | cat >>confdefs.h <<\EOF | ||
14715 | #define HAVE_SYS_ERRLIST 1 | ||
14716 | EOF | ||
14717 | |||
14718 | fi | ||
14719 | |||
14720 | echo "$as_me:14720: checking if libc defines sys_nerr" >&5 | ||
14721 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
14722 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
14723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14724 | else | ||
14725 | |||
14726 | cat >conftest.$ac_ext <<_ACEOF | ||
14727 | #line 14727 "configure" | ||
14728 | #include "confdefs.h" | ||
14729 | |||
14730 | int | ||
14731 | main () | ||
14732 | { | ||
14733 | extern int sys_nerr; printf("%i", sys_nerr); | ||
14734 | ; | ||
14735 | return 0; | ||
14736 | } | ||
14737 | _ACEOF | ||
14738 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14739 | if { (eval echo "$as_me:14739: \"$ac_link\"") >&5 | ||
14740 | (eval $ac_link) 2>&5 | ||
14741 | ac_status=$? | ||
14742 | echo "$as_me:14742: \$? = $ac_status" >&5 | ||
14743 | (exit $ac_status); } && | ||
14744 | { ac_try='test -s conftest$ac_exeext' | ||
14745 | { (eval echo "$as_me:14745: \"$ac_try\"") >&5 | ||
14746 | (eval $ac_try) 2>&5 | ||
14747 | ac_status=$? | ||
14748 | echo "$as_me:14748: \$? = $ac_status" >&5 | ||
14749 | (exit $ac_status); }; }; then | ||
14750 | ac_cv_libc_defines_sys_nerr="yes" | ||
14751 | else | ||
14752 | echo "$as_me: failed program was:" >&5 | ||
14753 | cat conftest.$ac_ext >&5 | ||
14754 | ac_cv_libc_defines_sys_nerr="no" | ||
14755 | |||
14756 | fi | ||
14757 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14758 | |||
14759 | fi | ||
14760 | echo "$as_me:14760: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
14761 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
14762 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
14763 | cat >>confdefs.h <<\EOF | ||
14764 | #define HAVE_SYS_NERR 1 | ||
14765 | EOF | ||
14766 | |||
14767 | fi | ||
14768 | |||
14769 | SCARD_MSG="no" | ||
14770 | # Check whether user wants sectok support | ||
14771 | |||
14772 | # Check whether --with-sectok or --without-sectok was given. | ||
14773 | if test "${with_sectok+set}" = set; then | ||
14774 | withval="$with_sectok" | ||
14775 | |||
14776 | if test "x$withval" != "xno" ; then | ||
14777 | if test "x$withval" != "xyes" ; then | ||
14778 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
14779 | LDFLAGS="$LDFLAGS -L${withval}" | ||
14780 | if test ! -z "$need_dash_r" ; then | ||
14781 | LDFLAGS="$LDFLAGS -R${withval}" | ||
14782 | fi | ||
14783 | if test ! -z "$blibpath" ; then | ||
14784 | blibpath="$blibpath:${withval}" | ||
14785 | fi | ||
14786 | fi | ||
14787 | |||
14788 | for ac_header in sectok.h | ||
14789 | do | ||
14790 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
14791 | echo "$as_me:14791: checking for $ac_header" >&5 | ||
14792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
14793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14795 | else | ||
14796 | cat >conftest.$ac_ext <<_ACEOF | ||
14797 | #line 14797 "configure" | ||
14798 | #include "confdefs.h" | ||
14799 | #include <$ac_header> | ||
14800 | _ACEOF | ||
14801 | if { (eval echo "$as_me:14801: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
14802 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
14803 | ac_status=$? | ||
14804 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
14805 | rm -f conftest.er1 | ||
14806 | cat conftest.err >&5 | ||
14807 | echo "$as_me:14807: \$? = $ac_status" >&5 | ||
14808 | (exit $ac_status); } >/dev/null; then | ||
14809 | if test -s conftest.err; then | ||
14810 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
14811 | else | ||
14812 | ac_cpp_err= | ||
14813 | fi | ||
14814 | else | ||
14815 | ac_cpp_err=yes | ||
14816 | fi | ||
14817 | if test -z "$ac_cpp_err"; then | ||
14818 | eval "$as_ac_Header=yes" | ||
14819 | else | ||
14820 | echo "$as_me: failed program was:" >&5 | ||
14821 | cat conftest.$ac_ext >&5 | ||
14822 | eval "$as_ac_Header=no" | ||
14823 | fi | ||
14824 | rm -f conftest.err conftest.$ac_ext | ||
14825 | fi | ||
14826 | echo "$as_me:14826: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
14827 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
14828 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
14829 | cat >>confdefs.h <<EOF | ||
14830 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
14831 | EOF | ||
14832 | |||
14833 | fi | ||
14834 | done | ||
14835 | |||
14836 | if test "$ac_cv_header_sectok_h" != yes; then | ||
14837 | { { echo "$as_me:14837: error: Can't find sectok.h" >&5 | ||
14838 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
14839 | { (exit 1); exit 1; }; } | ||
14840 | fi | ||
14841 | |||
14842 | echo "$as_me:14842: checking for sectok_open in -lsectok" >&5 | ||
14843 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
14844 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
14845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14846 | else | ||
14847 | ac_check_lib_save_LIBS=$LIBS | ||
14848 | LIBS="-lsectok $LIBS" | ||
14849 | cat >conftest.$ac_ext <<_ACEOF | ||
14850 | #line 14850 "configure" | ||
14851 | #include "confdefs.h" | ||
14852 | |||
14853 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14854 | #ifdef __cplusplus | ||
14855 | extern "C" | ||
14856 | #endif | ||
14857 | /* We use char because int might match the return type of a gcc2 | ||
14858 | builtin and then its argument prototype would still apply. */ | ||
14859 | char sectok_open (); | ||
14860 | int | ||
14861 | main () | ||
14862 | { | ||
14863 | sectok_open (); | ||
14864 | ; | ||
14865 | return 0; | ||
14866 | } | ||
14867 | _ACEOF | ||
14868 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14869 | if { (eval echo "$as_me:14869: \"$ac_link\"") >&5 | ||
14870 | (eval $ac_link) 2>&5 | ||
14871 | ac_status=$? | ||
14872 | echo "$as_me:14872: \$? = $ac_status" >&5 | ||
14873 | (exit $ac_status); } && | ||
14874 | { ac_try='test -s conftest$ac_exeext' | ||
14875 | { (eval echo "$as_me:14875: \"$ac_try\"") >&5 | ||
14876 | (eval $ac_try) 2>&5 | ||
14877 | ac_status=$? | ||
14878 | echo "$as_me:14878: \$? = $ac_status" >&5 | ||
14879 | (exit $ac_status); }; }; then | ||
14880 | ac_cv_lib_sectok_sectok_open=yes | ||
14881 | else | ||
14882 | echo "$as_me: failed program was:" >&5 | ||
14883 | cat conftest.$ac_ext >&5 | ||
14884 | ac_cv_lib_sectok_sectok_open=no | ||
14885 | fi | ||
14886 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14887 | LIBS=$ac_check_lib_save_LIBS | ||
14888 | fi | ||
14889 | echo "$as_me:14889: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
14890 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
14891 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
14892 | cat >>confdefs.h <<EOF | ||
14893 | #define HAVE_LIBSECTOK 1 | ||
14894 | EOF | ||
14895 | |||
14896 | LIBS="-lsectok $LIBS" | ||
14897 | |||
14898 | fi | ||
14899 | |||
14900 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
14901 | { { echo "$as_me:14901: error: Can't find libsectok" >&5 | ||
14902 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
14903 | { (exit 1); exit 1; }; } | ||
14904 | fi | ||
14905 | cat >>confdefs.h <<\EOF | ||
14906 | #define SMARTCARD 1 | ||
14907 | EOF | ||
14908 | |||
14909 | cat >>confdefs.h <<\EOF | ||
14910 | #define USE_SECTOK 1 | ||
14911 | EOF | ||
14912 | |||
14913 | SCARD_MSG="yes, using sectok" | ||
14914 | fi | ||
14915 | |||
14916 | fi; | ||
14917 | |||
14918 | # Check whether user wants OpenSC support | ||
14919 | |||
14920 | # Check whether --with-opensc or --without-opensc was given. | ||
14921 | if test "${with_opensc+set}" = set; then | ||
14922 | withval="$with_opensc" | ||
14923 | opensc_config_prefix="$withval" | ||
14924 | else | ||
14925 | opensc_config_prefix="" | ||
14926 | fi; | ||
14927 | if test x$opensc_config_prefix != x ; then | ||
14928 | OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config | ||
14929 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
14930 | set dummy opensc-config; ac_word=$2 | ||
14931 | echo "$as_me:14931: checking for $ac_word" >&5 | ||
14932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14933 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
14934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14935 | else | ||
14936 | case $OPENSC_CONFIG in | ||
14937 | [\\/]* | ?:[\\/]*) | ||
14938 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
14939 | ;; | ||
14940 | *) | ||
14941 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
14942 | ac_dummy="$PATH" | ||
14943 | for ac_dir in $ac_dummy; do | ||
14944 | IFS=$ac_save_IFS | ||
14945 | test -z "$ac_dir" && ac_dir=. | ||
14946 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
14947 | ac_cv_path_OPENSC_CONFIG="$ac_dir/$ac_word" | ||
14948 | echo "$as_me:14948: found $ac_dir/$ac_word" >&5 | ||
14949 | break | ||
14950 | fi | ||
14951 | done | ||
14952 | |||
14953 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
14954 | ;; | ||
14955 | esac | ||
14956 | fi | ||
14957 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
14958 | |||
14959 | if test -n "$OPENSC_CONFIG"; then | ||
14960 | echo "$as_me:14960: result: $OPENSC_CONFIG" >&5 | ||
14961 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
14962 | else | ||
14963 | echo "$as_me:14963: result: no" >&5 | ||
14964 | echo "${ECHO_T}no" >&6 | ||
14965 | fi | ||
14966 | |||
14967 | if test "$OPENSC_CONFIG" != "no"; then | ||
14968 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
14969 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
14970 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
14971 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
14972 | cat >>confdefs.h <<\EOF | ||
14973 | #define SMARTCARD 1 | ||
14974 | EOF | ||
14975 | |||
14976 | cat >>confdefs.h <<\EOF | ||
14977 | #define USE_OPENSC 1 | ||
14978 | EOF | ||
14979 | |||
14980 | SCARD_MSG="yes, using OpenSC" | ||
14981 | fi | ||
14982 | fi | ||
14983 | |||
14984 | # Check libraries needed by DNS fingerprint support | ||
14985 | echo "$as_me:14985: checking for library containing getrrsetbyname" >&5 | ||
14986 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6 | ||
14987 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
14988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14989 | else | ||
14990 | ac_func_search_save_LIBS=$LIBS | ||
14991 | ac_cv_search_getrrsetbyname=no | ||
14992 | cat >conftest.$ac_ext <<_ACEOF | ||
14993 | #line 14993 "configure" | ||
14994 | #include "confdefs.h" | ||
14995 | |||
14996 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14997 | #ifdef __cplusplus | ||
14998 | extern "C" | ||
14999 | #endif | ||
15000 | /* We use char because int might match the return type of a gcc2 | ||
15001 | builtin and then its argument prototype would still apply. */ | ||
15002 | char getrrsetbyname (); | ||
15003 | int | ||
15004 | main () | ||
15005 | { | ||
15006 | getrrsetbyname (); | ||
15007 | ; | ||
15008 | return 0; | ||
15009 | } | ||
15010 | _ACEOF | ||
15011 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15012 | if { (eval echo "$as_me:15012: \"$ac_link\"") >&5 | ||
15013 | (eval $ac_link) 2>&5 | ||
15014 | ac_status=$? | ||
15015 | echo "$as_me:15015: \$? = $ac_status" >&5 | ||
15016 | (exit $ac_status); } && | ||
15017 | { ac_try='test -s conftest$ac_exeext' | ||
15018 | { (eval echo "$as_me:15018: \"$ac_try\"") >&5 | ||
15019 | (eval $ac_try) 2>&5 | ||
15020 | ac_status=$? | ||
15021 | echo "$as_me:15021: \$? = $ac_status" >&5 | ||
15022 | (exit $ac_status); }; }; then | ||
15023 | ac_cv_search_getrrsetbyname="none required" | ||
15024 | else | ||
15025 | echo "$as_me: failed program was:" >&5 | ||
15026 | cat conftest.$ac_ext >&5 | ||
15027 | fi | ||
15028 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15029 | if test "$ac_cv_search_getrrsetbyname" = no; then | ||
15030 | for ac_lib in resolv; do | ||
15031 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15032 | cat >conftest.$ac_ext <<_ACEOF | ||
15033 | #line 15033 "configure" | ||
15034 | #include "confdefs.h" | ||
15035 | |||
15036 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15037 | #ifdef __cplusplus | ||
15038 | extern "C" | ||
15039 | #endif | ||
15040 | /* We use char because int might match the return type of a gcc2 | ||
15041 | builtin and then its argument prototype would still apply. */ | ||
15042 | char getrrsetbyname (); | ||
15043 | int | ||
15044 | main () | ||
15045 | { | ||
15046 | getrrsetbyname (); | ||
15047 | ; | ||
15048 | return 0; | ||
15049 | } | ||
15050 | _ACEOF | ||
15051 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15052 | if { (eval echo "$as_me:15052: \"$ac_link\"") >&5 | ||
15053 | (eval $ac_link) 2>&5 | ||
15054 | ac_status=$? | ||
15055 | echo "$as_me:15055: \$? = $ac_status" >&5 | ||
15056 | (exit $ac_status); } && | ||
15057 | { ac_try='test -s conftest$ac_exeext' | ||
15058 | { (eval echo "$as_me:15058: \"$ac_try\"") >&5 | ||
15059 | (eval $ac_try) 2>&5 | ||
15060 | ac_status=$? | ||
15061 | echo "$as_me:15061: \$? = $ac_status" >&5 | ||
15062 | (exit $ac_status); }; }; then | ||
15063 | ac_cv_search_getrrsetbyname="-l$ac_lib" | ||
15064 | break | ||
15065 | else | ||
15066 | echo "$as_me: failed program was:" >&5 | ||
15067 | cat conftest.$ac_ext >&5 | ||
15068 | fi | ||
15069 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15070 | done | ||
15071 | fi | ||
15072 | LIBS=$ac_func_search_save_LIBS | ||
15073 | fi | ||
15074 | echo "$as_me:15074: result: $ac_cv_search_getrrsetbyname" >&5 | ||
15075 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6 | ||
15076 | if test "$ac_cv_search_getrrsetbyname" != no; then | ||
15077 | test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS" | ||
15078 | cat >>confdefs.h <<\EOF | ||
15079 | #define HAVE_GETRRSETBYNAME 1 | ||
15080 | EOF | ||
15081 | |||
15082 | else | ||
15083 | |||
15084 | # Needed by our getrrsetbyname() | ||
15085 | echo "$as_me:15085: checking for library containing res_query" >&5 | ||
15086 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6 | ||
15087 | if test "${ac_cv_search_res_query+set}" = set; then | ||
15088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15089 | else | ||
15090 | ac_func_search_save_LIBS=$LIBS | ||
15091 | ac_cv_search_res_query=no | ||
15092 | cat >conftest.$ac_ext <<_ACEOF | ||
15093 | #line 15093 "configure" | ||
15094 | #include "confdefs.h" | ||
15095 | |||
15096 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15097 | #ifdef __cplusplus | ||
15098 | extern "C" | ||
15099 | #endif | ||
15100 | /* We use char because int might match the return type of a gcc2 | ||
15101 | builtin and then its argument prototype would still apply. */ | ||
15102 | char res_query (); | ||
15103 | int | ||
15104 | main () | ||
15105 | { | ||
15106 | res_query (); | ||
15107 | ; | ||
15108 | return 0; | ||
15109 | } | ||
15110 | _ACEOF | ||
15111 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15112 | if { (eval echo "$as_me:15112: \"$ac_link\"") >&5 | ||
15113 | (eval $ac_link) 2>&5 | ||
15114 | ac_status=$? | ||
15115 | echo "$as_me:15115: \$? = $ac_status" >&5 | ||
15116 | (exit $ac_status); } && | ||
15117 | { ac_try='test -s conftest$ac_exeext' | ||
15118 | { (eval echo "$as_me:15118: \"$ac_try\"") >&5 | ||
15119 | (eval $ac_try) 2>&5 | ||
15120 | ac_status=$? | ||
15121 | echo "$as_me:15121: \$? = $ac_status" >&5 | ||
15122 | (exit $ac_status); }; }; then | ||
15123 | ac_cv_search_res_query="none required" | ||
15124 | else | ||
15125 | echo "$as_me: failed program was:" >&5 | ||
15126 | cat conftest.$ac_ext >&5 | ||
15127 | fi | ||
15128 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15129 | if test "$ac_cv_search_res_query" = no; then | ||
15130 | for ac_lib in resolv; do | ||
15131 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15132 | cat >conftest.$ac_ext <<_ACEOF | ||
15133 | #line 15133 "configure" | ||
15134 | #include "confdefs.h" | ||
15135 | |||
15136 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15137 | #ifdef __cplusplus | ||
15138 | extern "C" | ||
15139 | #endif | ||
15140 | /* We use char because int might match the return type of a gcc2 | ||
15141 | builtin and then its argument prototype would still apply. */ | ||
15142 | char res_query (); | ||
15143 | int | ||
15144 | main () | ||
15145 | { | ||
15146 | res_query (); | ||
15147 | ; | ||
15148 | return 0; | ||
15149 | } | ||
15150 | _ACEOF | ||
15151 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15152 | if { (eval echo "$as_me:15152: \"$ac_link\"") >&5 | ||
15153 | (eval $ac_link) 2>&5 | ||
15154 | ac_status=$? | ||
15155 | echo "$as_me:15155: \$? = $ac_status" >&5 | ||
15156 | (exit $ac_status); } && | ||
15157 | { ac_try='test -s conftest$ac_exeext' | ||
15158 | { (eval echo "$as_me:15158: \"$ac_try\"") >&5 | ||
15159 | (eval $ac_try) 2>&5 | ||
15160 | ac_status=$? | ||
15161 | echo "$as_me:15161: \$? = $ac_status" >&5 | ||
15162 | (exit $ac_status); }; }; then | ||
15163 | ac_cv_search_res_query="-l$ac_lib" | ||
15164 | break | ||
15165 | else | ||
15166 | echo "$as_me: failed program was:" >&5 | ||
15167 | cat conftest.$ac_ext >&5 | ||
15168 | fi | ||
15169 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15170 | done | ||
15171 | fi | ||
15172 | LIBS=$ac_func_search_save_LIBS | ||
15173 | fi | ||
15174 | echo "$as_me:15174: result: $ac_cv_search_res_query" >&5 | ||
15175 | echo "${ECHO_T}$ac_cv_search_res_query" >&6 | ||
15176 | if test "$ac_cv_search_res_query" != no; then | ||
15177 | test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS" | ||
15178 | |||
15179 | fi | ||
15180 | |||
15181 | echo "$as_me:15181: checking for library containing dn_expand" >&5 | ||
15182 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
15183 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
15184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15185 | else | ||
15186 | ac_func_search_save_LIBS=$LIBS | ||
15187 | ac_cv_search_dn_expand=no | ||
15188 | cat >conftest.$ac_ext <<_ACEOF | ||
15189 | #line 15189 "configure" | ||
15190 | #include "confdefs.h" | ||
15191 | |||
15192 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15193 | #ifdef __cplusplus | ||
15194 | extern "C" | ||
15195 | #endif | ||
15196 | /* We use char because int might match the return type of a gcc2 | ||
15197 | builtin and then its argument prototype would still apply. */ | ||
15198 | char dn_expand (); | ||
15199 | int | ||
15200 | main () | ||
15201 | { | ||
15202 | dn_expand (); | ||
15203 | ; | ||
15204 | return 0; | ||
15205 | } | ||
15206 | _ACEOF | ||
15207 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15208 | if { (eval echo "$as_me:15208: \"$ac_link\"") >&5 | ||
15209 | (eval $ac_link) 2>&5 | ||
15210 | ac_status=$? | ||
15211 | echo "$as_me:15211: \$? = $ac_status" >&5 | ||
15212 | (exit $ac_status); } && | ||
15213 | { ac_try='test -s conftest$ac_exeext' | ||
15214 | { (eval echo "$as_me:15214: \"$ac_try\"") >&5 | ||
15215 | (eval $ac_try) 2>&5 | ||
15216 | ac_status=$? | ||
15217 | echo "$as_me:15217: \$? = $ac_status" >&5 | ||
15218 | (exit $ac_status); }; }; then | ||
15219 | ac_cv_search_dn_expand="none required" | ||
15220 | else | ||
15221 | echo "$as_me: failed program was:" >&5 | ||
15222 | cat conftest.$ac_ext >&5 | ||
15223 | fi | ||
15224 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15225 | if test "$ac_cv_search_dn_expand" = no; then | ||
15226 | for ac_lib in resolv; do | ||
15227 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15228 | cat >conftest.$ac_ext <<_ACEOF | ||
15229 | #line 15229 "configure" | ||
15230 | #include "confdefs.h" | ||
15231 | |||
15232 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15233 | #ifdef __cplusplus | ||
15234 | extern "C" | ||
15235 | #endif | ||
15236 | /* We use char because int might match the return type of a gcc2 | ||
15237 | builtin and then its argument prototype would still apply. */ | ||
15238 | char dn_expand (); | ||
15239 | int | ||
15240 | main () | ||
15241 | { | ||
15242 | dn_expand (); | ||
15243 | ; | ||
15244 | return 0; | ||
15245 | } | ||
15246 | _ACEOF | ||
15247 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15248 | if { (eval echo "$as_me:15248: \"$ac_link\"") >&5 | ||
15249 | (eval $ac_link) 2>&5 | ||
15250 | ac_status=$? | ||
15251 | echo "$as_me:15251: \$? = $ac_status" >&5 | ||
15252 | (exit $ac_status); } && | ||
15253 | { ac_try='test -s conftest$ac_exeext' | ||
15254 | { (eval echo "$as_me:15254: \"$ac_try\"") >&5 | ||
15255 | (eval $ac_try) 2>&5 | ||
15256 | ac_status=$? | ||
15257 | echo "$as_me:15257: \$? = $ac_status" >&5 | ||
15258 | (exit $ac_status); }; }; then | ||
15259 | ac_cv_search_dn_expand="-l$ac_lib" | ||
15260 | break | ||
15261 | else | ||
15262 | echo "$as_me: failed program was:" >&5 | ||
15263 | cat conftest.$ac_ext >&5 | ||
15264 | fi | ||
15265 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15266 | done | ||
15267 | fi | ||
15268 | LIBS=$ac_func_search_save_LIBS | ||
15269 | fi | ||
15270 | echo "$as_me:15270: result: $ac_cv_search_dn_expand" >&5 | ||
15271 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
15272 | if test "$ac_cv_search_dn_expand" != no; then | ||
15273 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
15274 | |||
15275 | fi | ||
15276 | |||
15277 | for ac_func in _getshort _getlong | ||
15278 | do | ||
15279 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15280 | echo "$as_me:15280: checking for $ac_func" >&5 | ||
15281 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
15282 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
15283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15284 | else | ||
15285 | cat >conftest.$ac_ext <<_ACEOF | ||
15286 | #line 15286 "configure" | ||
15287 | #include "confdefs.h" | ||
15288 | /* System header to define __stub macros and hopefully few prototypes, | ||
15289 | which can conflict with char $ac_func (); below. */ | ||
15290 | #include <assert.h> | ||
15291 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15292 | #ifdef __cplusplus | ||
15293 | extern "C" | ||
15294 | #endif | ||
15295 | /* We use char because int might match the return type of a gcc2 | ||
15296 | builtin and then its argument prototype would still apply. */ | ||
15297 | char $ac_func (); | ||
15298 | char (*f) (); | ||
15299 | |||
15300 | int | ||
15301 | main () | ||
15302 | { | ||
15303 | /* The GNU C library defines this for functions which it implements | ||
15304 | to always fail with ENOSYS. Some functions are actually named | ||
15305 | something starting with __ and the normal name is an alias. */ | ||
15306 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
15307 | choke me | ||
15308 | #else | ||
15309 | f = $ac_func; | ||
15310 | #endif | ||
15311 | |||
15312 | ; | ||
15313 | return 0; | ||
15314 | } | ||
15315 | _ACEOF | ||
15316 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15317 | if { (eval echo "$as_me:15317: \"$ac_link\"") >&5 | ||
15318 | (eval $ac_link) 2>&5 | ||
15319 | ac_status=$? | ||
15320 | echo "$as_me:15320: \$? = $ac_status" >&5 | ||
15321 | (exit $ac_status); } && | ||
15322 | { ac_try='test -s conftest$ac_exeext' | ||
15323 | { (eval echo "$as_me:15323: \"$ac_try\"") >&5 | ||
15324 | (eval $ac_try) 2>&5 | ||
15325 | ac_status=$? | ||
15326 | echo "$as_me:15326: \$? = $ac_status" >&5 | ||
15327 | (exit $ac_status); }; }; then | ||
15328 | eval "$as_ac_var=yes" | ||
15329 | else | ||
15330 | echo "$as_me: failed program was:" >&5 | ||
15331 | cat conftest.$ac_ext >&5 | ||
15332 | eval "$as_ac_var=no" | ||
15333 | fi | ||
15334 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15335 | fi | ||
15336 | echo "$as_me:15336: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
15337 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
15338 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15339 | cat >>confdefs.h <<EOF | ||
15340 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15341 | EOF | ||
15342 | |||
15343 | fi | ||
15344 | done | ||
15345 | |||
15346 | echo "$as_me:15346: checking for HEADER.ad" >&5 | ||
15347 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6 | ||
15348 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
15349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15350 | else | ||
15351 | cat >conftest.$ac_ext <<_ACEOF | ||
15352 | #line 15352 "configure" | ||
15353 | #include "confdefs.h" | ||
15354 | #include <arpa/nameser.h> | ||
15355 | |||
15356 | int | ||
15357 | main () | ||
15358 | { | ||
15359 | static HEADER ac_aggr; | ||
15360 | if (ac_aggr.ad) | ||
15361 | return 0; | ||
15362 | ; | ||
15363 | return 0; | ||
15364 | } | ||
15365 | _ACEOF | ||
15366 | rm -f conftest.$ac_objext | ||
15367 | if { (eval echo "$as_me:15367: \"$ac_compile\"") >&5 | ||
15368 | (eval $ac_compile) 2>&5 | ||
15369 | ac_status=$? | ||
15370 | echo "$as_me:15370: \$? = $ac_status" >&5 | ||
15371 | (exit $ac_status); } && | ||
15372 | { ac_try='test -s conftest.$ac_objext' | ||
15373 | { (eval echo "$as_me:15373: \"$ac_try\"") >&5 | ||
15374 | (eval $ac_try) 2>&5 | ||
15375 | ac_status=$? | ||
15376 | echo "$as_me:15376: \$? = $ac_status" >&5 | ||
15377 | (exit $ac_status); }; }; then | ||
15378 | ac_cv_member_HEADER_ad=yes | ||
15379 | else | ||
15380 | echo "$as_me: failed program was:" >&5 | ||
15381 | cat conftest.$ac_ext >&5 | ||
15382 | ac_cv_member_HEADER_ad=no | ||
15383 | fi | ||
15384 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15385 | fi | ||
15386 | echo "$as_me:15386: result: $ac_cv_member_HEADER_ad" >&5 | ||
15387 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6 | ||
15388 | if test $ac_cv_member_HEADER_ad = yes; then | ||
15389 | cat >>confdefs.h <<\EOF | ||
15390 | #define HAVE_HEADER_AD 1 | ||
15391 | EOF | ||
15392 | |||
15393 | fi | ||
15394 | |||
15395 | fi | ||
15396 | |||
15397 | # Check whether user wants Kerberos 5 support | ||
15398 | KRB5_MSG="no" | ||
15399 | |||
15400 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
15401 | if test "${with_kerberos5+set}" = set; then | ||
15402 | withval="$with_kerberos5" | ||
15403 | if test "x$withval" != "xno" ; then | ||
15404 | if test "x$withval" = "xyes" ; then | ||
15405 | KRB5ROOT="/usr/local" | ||
15406 | else | ||
15407 | KRB5ROOT=${withval} | ||
15408 | fi | ||
15409 | |||
15410 | cat >>confdefs.h <<\EOF | ||
15411 | #define KRB5 1 | ||
15412 | EOF | ||
15413 | |||
15414 | KRB5_MSG="yes" | ||
15415 | |||
15416 | echo "$as_me:15416: checking for krb5-config" >&5 | ||
15417 | echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6 | ||
15418 | if test -x $KRB5ROOT/bin/krb5-config ; then | ||
15419 | KRB5CONF=$KRB5ROOT/bin/krb5-config | ||
15420 | echo "$as_me:15420: result: $KRB5CONF" >&5 | ||
15421 | echo "${ECHO_T}$KRB5CONF" >&6 | ||
15422 | |||
15423 | echo "$as_me:15423: checking for gssapi support" >&5 | ||
15424 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6 | ||
15425 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
15426 | echo "$as_me:15426: result: yes" >&5 | ||
15427 | echo "${ECHO_T}yes" >&6 | ||
15428 | cat >>confdefs.h <<\EOF | ||
15429 | #define GSSAPI 1 | ||
15430 | EOF | ||
15431 | |||
15432 | k5confopts=gssapi | ||
15433 | else | ||
15434 | echo "$as_me:15434: result: no" >&5 | ||
15435 | echo "${ECHO_T}no" >&6 | ||
15436 | k5confopts="" | ||
15437 | fi | ||
15438 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
15439 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
15440 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
15441 | echo "$as_me:15441: checking whether we are using Heimdal" >&5 | ||
15442 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
15443 | cat >conftest.$ac_ext <<_ACEOF | ||
15444 | #line 15444 "configure" | ||
15445 | #include "confdefs.h" | ||
15446 | #include <krb5.h> | ||
15447 | int | ||
15448 | main () | ||
15449 | { | ||
15450 | char *tmp = heimdal_version; | ||
15451 | ; | ||
15452 | return 0; | ||
15453 | } | ||
15454 | _ACEOF | ||
15455 | rm -f conftest.$ac_objext | ||
15456 | if { (eval echo "$as_me:15456: \"$ac_compile\"") >&5 | ||
15457 | (eval $ac_compile) 2>&5 | ||
15458 | ac_status=$? | ||
15459 | echo "$as_me:15459: \$? = $ac_status" >&5 | ||
15460 | (exit $ac_status); } && | ||
15461 | { ac_try='test -s conftest.$ac_objext' | ||
15462 | { (eval echo "$as_me:15462: \"$ac_try\"") >&5 | ||
15463 | (eval $ac_try) 2>&5 | ||
15464 | ac_status=$? | ||
15465 | echo "$as_me:15465: \$? = $ac_status" >&5 | ||
15466 | (exit $ac_status); }; }; then | ||
15467 | echo "$as_me:15467: result: yes" >&5 | ||
15468 | echo "${ECHO_T}yes" >&6 | ||
15469 | cat >>confdefs.h <<\EOF | ||
15470 | #define HEIMDAL 1 | ||
15471 | EOF | ||
15472 | |||
15473 | else | ||
15474 | echo "$as_me: failed program was:" >&5 | ||
15475 | cat conftest.$ac_ext >&5 | ||
15476 | echo "$as_me:15476: result: no" >&5 | ||
15477 | echo "${ECHO_T}no" >&6 | ||
15478 | |||
15479 | fi | ||
15480 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15481 | else | ||
15482 | echo "$as_me:15482: result: no" >&5 | ||
15483 | echo "${ECHO_T}no" >&6 | ||
15484 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
15485 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
15486 | echo "$as_me:15486: checking whether we are using Heimdal" >&5 | ||
15487 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
15488 | cat >conftest.$ac_ext <<_ACEOF | ||
15489 | #line 15489 "configure" | ||
15490 | #include "confdefs.h" | ||
15491 | #include <krb5.h> | ||
15492 | int | ||
15493 | main () | ||
15494 | { | ||
15495 | char *tmp = heimdal_version; | ||
15496 | ; | ||
15497 | return 0; | ||
15498 | } | ||
15499 | _ACEOF | ||
15500 | rm -f conftest.$ac_objext | ||
15501 | if { (eval echo "$as_me:15501: \"$ac_compile\"") >&5 | ||
15502 | (eval $ac_compile) 2>&5 | ||
15503 | ac_status=$? | ||
15504 | echo "$as_me:15504: \$? = $ac_status" >&5 | ||
15505 | (exit $ac_status); } && | ||
15506 | { ac_try='test -s conftest.$ac_objext' | ||
15507 | { (eval echo "$as_me:15507: \"$ac_try\"") >&5 | ||
15508 | (eval $ac_try) 2>&5 | ||
15509 | ac_status=$? | ||
15510 | echo "$as_me:15510: \$? = $ac_status" >&5 | ||
15511 | (exit $ac_status); }; }; then | ||
15512 | echo "$as_me:15512: result: yes" >&5 | ||
15513 | echo "${ECHO_T}yes" >&6 | ||
15514 | cat >>confdefs.h <<\EOF | ||
15515 | #define HEIMDAL 1 | ||
15516 | EOF | ||
15517 | |||
15518 | K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken" | ||
15519 | |||
15520 | else | ||
15521 | echo "$as_me: failed program was:" >&5 | ||
15522 | cat conftest.$ac_ext >&5 | ||
15523 | echo "$as_me:15523: result: no" >&5 | ||
15524 | echo "${ECHO_T}no" >&6 | ||
15525 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
15526 | |||
15527 | fi | ||
15528 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15529 | echo "$as_me:15529: checking for library containing dn_expand" >&5 | ||
15530 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
15531 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
15532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15533 | else | ||
15534 | ac_func_search_save_LIBS=$LIBS | ||
15535 | ac_cv_search_dn_expand=no | ||
15536 | cat >conftest.$ac_ext <<_ACEOF | ||
15537 | #line 15537 "configure" | ||
15538 | #include "confdefs.h" | ||
15539 | |||
15540 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15541 | #ifdef __cplusplus | ||
15542 | extern "C" | ||
15543 | #endif | ||
15544 | /* We use char because int might match the return type of a gcc2 | ||
15545 | builtin and then its argument prototype would still apply. */ | ||
15546 | char dn_expand (); | ||
15547 | int | ||
15548 | main () | ||
15549 | { | ||
15550 | dn_expand (); | ||
15551 | ; | ||
15552 | return 0; | ||
15553 | } | ||
15554 | _ACEOF | ||
15555 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15556 | if { (eval echo "$as_me:15556: \"$ac_link\"") >&5 | ||
15557 | (eval $ac_link) 2>&5 | ||
15558 | ac_status=$? | ||
15559 | echo "$as_me:15559: \$? = $ac_status" >&5 | ||
15560 | (exit $ac_status); } && | ||
15561 | { ac_try='test -s conftest$ac_exeext' | ||
15562 | { (eval echo "$as_me:15562: \"$ac_try\"") >&5 | ||
15563 | (eval $ac_try) 2>&5 | ||
15564 | ac_status=$? | ||
15565 | echo "$as_me:15565: \$? = $ac_status" >&5 | ||
15566 | (exit $ac_status); }; }; then | ||
15567 | ac_cv_search_dn_expand="none required" | ||
15568 | else | ||
15569 | echo "$as_me: failed program was:" >&5 | ||
15570 | cat conftest.$ac_ext >&5 | ||
15571 | fi | ||
15572 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15573 | if test "$ac_cv_search_dn_expand" = no; then | ||
15574 | for ac_lib in resolv; do | ||
15575 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15576 | cat >conftest.$ac_ext <<_ACEOF | ||
15577 | #line 15577 "configure" | ||
15578 | #include "confdefs.h" | ||
15579 | |||
15580 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15581 | #ifdef __cplusplus | ||
15582 | extern "C" | ||
15583 | #endif | ||
15584 | /* We use char because int might match the return type of a gcc2 | ||
15585 | builtin and then its argument prototype would still apply. */ | ||
15586 | char dn_expand (); | ||
15587 | int | ||
15588 | main () | ||
15589 | { | ||
15590 | dn_expand (); | ||
15591 | ; | ||
15592 | return 0; | ||
15593 | } | ||
15594 | _ACEOF | ||
15595 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15596 | if { (eval echo "$as_me:15596: \"$ac_link\"") >&5 | ||
15597 | (eval $ac_link) 2>&5 | ||
15598 | ac_status=$? | ||
15599 | echo "$as_me:15599: \$? = $ac_status" >&5 | ||
15600 | (exit $ac_status); } && | ||
15601 | { ac_try='test -s conftest$ac_exeext' | ||
15602 | { (eval echo "$as_me:15602: \"$ac_try\"") >&5 | ||
15603 | (eval $ac_try) 2>&5 | ||
15604 | ac_status=$? | ||
15605 | echo "$as_me:15605: \$? = $ac_status" >&5 | ||
15606 | (exit $ac_status); }; }; then | ||
15607 | ac_cv_search_dn_expand="-l$ac_lib" | ||
15608 | break | ||
15609 | else | ||
15610 | echo "$as_me: failed program was:" >&5 | ||
15611 | cat conftest.$ac_ext >&5 | ||
15612 | fi | ||
15613 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15614 | done | ||
15615 | fi | ||
15616 | LIBS=$ac_func_search_save_LIBS | ||
15617 | fi | ||
15618 | echo "$as_me:15618: result: $ac_cv_search_dn_expand" >&5 | ||
15619 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
15620 | if test "$ac_cv_search_dn_expand" != no; then | ||
15621 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
15622 | |||
15623 | fi | ||
15624 | |||
15625 | echo "$as_me:15625: checking for gss_init_sec_context in -lgssapi" >&5 | ||
15626 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6 | ||
15627 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
15628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15629 | else | ||
15630 | ac_check_lib_save_LIBS=$LIBS | ||
15631 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
15632 | cat >conftest.$ac_ext <<_ACEOF | ||
15633 | #line 15633 "configure" | ||
15634 | #include "confdefs.h" | ||
15635 | |||
15636 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15637 | #ifdef __cplusplus | ||
15638 | extern "C" | ||
15639 | #endif | ||
15640 | /* We use char because int might match the return type of a gcc2 | ||
15641 | builtin and then its argument prototype would still apply. */ | ||
15642 | char gss_init_sec_context (); | ||
15643 | int | ||
15644 | main () | ||
15645 | { | ||
15646 | gss_init_sec_context (); | ||
15647 | ; | ||
15648 | return 0; | ||
15649 | } | ||
15650 | _ACEOF | ||
15651 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15652 | if { (eval echo "$as_me:15652: \"$ac_link\"") >&5 | ||
15653 | (eval $ac_link) 2>&5 | ||
15654 | ac_status=$? | ||
15655 | echo "$as_me:15655: \$? = $ac_status" >&5 | ||
15656 | (exit $ac_status); } && | ||
15657 | { ac_try='test -s conftest$ac_exeext' | ||
15658 | { (eval echo "$as_me:15658: \"$ac_try\"") >&5 | ||
15659 | (eval $ac_try) 2>&5 | ||
15660 | ac_status=$? | ||
15661 | echo "$as_me:15661: \$? = $ac_status" >&5 | ||
15662 | (exit $ac_status); }; }; then | ||
15663 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
15664 | else | ||
15665 | echo "$as_me: failed program was:" >&5 | ||
15666 | cat conftest.$ac_ext >&5 | ||
15667 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
15668 | fi | ||
15669 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15670 | LIBS=$ac_check_lib_save_LIBS | ||
15671 | fi | ||
15672 | echo "$as_me:15672: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
15673 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6 | ||
15674 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
15675 | cat >>confdefs.h <<\EOF | ||
15676 | #define GSSAPI 1 | ||
15677 | EOF | ||
15678 | |||
15679 | K5LIBS="-lgssapi $K5LIBS" | ||
15680 | else | ||
15681 | echo "$as_me:15681: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
15682 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6 | ||
15683 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
15684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15685 | else | ||
15686 | ac_check_lib_save_LIBS=$LIBS | ||
15687 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
15688 | cat >conftest.$ac_ext <<_ACEOF | ||
15689 | #line 15689 "configure" | ||
15690 | #include "confdefs.h" | ||
15691 | |||
15692 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15693 | #ifdef __cplusplus | ||
15694 | extern "C" | ||
15695 | #endif | ||
15696 | /* We use char because int might match the return type of a gcc2 | ||
15697 | builtin and then its argument prototype would still apply. */ | ||
15698 | char gss_init_sec_context (); | ||
15699 | int | ||
15700 | main () | ||
15701 | { | ||
15702 | gss_init_sec_context (); | ||
15703 | ; | ||
15704 | return 0; | ||
15705 | } | ||
15706 | _ACEOF | ||
15707 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15708 | if { (eval echo "$as_me:15708: \"$ac_link\"") >&5 | ||
15709 | (eval $ac_link) 2>&5 | ||
15710 | ac_status=$? | ||
15711 | echo "$as_me:15711: \$? = $ac_status" >&5 | ||
15712 | (exit $ac_status); } && | ||
15713 | { ac_try='test -s conftest$ac_exeext' | ||
15714 | { (eval echo "$as_me:15714: \"$ac_try\"") >&5 | ||
15715 | (eval $ac_try) 2>&5 | ||
15716 | ac_status=$? | ||
15717 | echo "$as_me:15717: \$? = $ac_status" >&5 | ||
15718 | (exit $ac_status); }; }; then | ||
15719 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
15720 | else | ||
15721 | echo "$as_me: failed program was:" >&5 | ||
15722 | cat conftest.$ac_ext >&5 | ||
15723 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
15724 | fi | ||
15725 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15726 | LIBS=$ac_check_lib_save_LIBS | ||
15727 | fi | ||
15728 | echo "$as_me:15728: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
15729 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6 | ||
15730 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
15731 | cat >>confdefs.h <<\EOF | ||
15732 | #define GSSAPI 1 | ||
15733 | EOF | ||
15734 | |||
15735 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
15736 | else | ||
15737 | { echo "$as_me:15737: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
15738 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
15739 | fi | ||
15740 | |||
15741 | fi | ||
15742 | |||
15743 | echo "$as_me:15743: checking for gssapi.h" >&5 | ||
15744 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
15745 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
15746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15747 | else | ||
15748 | cat >conftest.$ac_ext <<_ACEOF | ||
15749 | #line 15749 "configure" | ||
15750 | #include "confdefs.h" | ||
15751 | #include <gssapi.h> | ||
15752 | _ACEOF | ||
15753 | if { (eval echo "$as_me:15753: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15754 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15755 | ac_status=$? | ||
15756 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15757 | rm -f conftest.er1 | ||
15758 | cat conftest.err >&5 | ||
15759 | echo "$as_me:15759: \$? = $ac_status" >&5 | ||
15760 | (exit $ac_status); } >/dev/null; then | ||
15761 | if test -s conftest.err; then | ||
15762 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15763 | else | ||
15764 | ac_cpp_err= | ||
15765 | fi | ||
15766 | else | ||
15767 | ac_cpp_err=yes | ||
15768 | fi | ||
15769 | if test -z "$ac_cpp_err"; then | ||
15770 | ac_cv_header_gssapi_h=yes | ||
15771 | else | ||
15772 | echo "$as_me: failed program was:" >&5 | ||
15773 | cat conftest.$ac_ext >&5 | ||
15774 | ac_cv_header_gssapi_h=no | ||
15775 | fi | ||
15776 | rm -f conftest.err conftest.$ac_ext | ||
15777 | fi | ||
15778 | echo "$as_me:15778: result: $ac_cv_header_gssapi_h" >&5 | ||
15779 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
15780 | if test $ac_cv_header_gssapi_h = yes; then | ||
15781 | : | ||
15782 | else | ||
15783 | unset ac_cv_header_gssapi_h | ||
15784 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
15785 | |||
15786 | for ac_header in gssapi.h | ||
15787 | do | ||
15788 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15789 | echo "$as_me:15789: checking for $ac_header" >&5 | ||
15790 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15791 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15793 | else | ||
15794 | cat >conftest.$ac_ext <<_ACEOF | ||
15795 | #line 15795 "configure" | ||
15796 | #include "confdefs.h" | ||
15797 | #include <$ac_header> | ||
15798 | _ACEOF | ||
15799 | if { (eval echo "$as_me:15799: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15800 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15801 | ac_status=$? | ||
15802 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15803 | rm -f conftest.er1 | ||
15804 | cat conftest.err >&5 | ||
15805 | echo "$as_me:15805: \$? = $ac_status" >&5 | ||
15806 | (exit $ac_status); } >/dev/null; then | ||
15807 | if test -s conftest.err; then | ||
15808 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15809 | else | ||
15810 | ac_cpp_err= | ||
15811 | fi | ||
15812 | else | ||
15813 | ac_cpp_err=yes | ||
15814 | fi | ||
15815 | if test -z "$ac_cpp_err"; then | ||
15816 | eval "$as_ac_Header=yes" | ||
15817 | else | ||
15818 | echo "$as_me: failed program was:" >&5 | ||
15819 | cat conftest.$ac_ext >&5 | ||
15820 | eval "$as_ac_Header=no" | ||
15821 | fi | ||
15822 | rm -f conftest.err conftest.$ac_ext | ||
15823 | fi | ||
15824 | echo "$as_me:15824: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15825 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15826 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15827 | cat >>confdefs.h <<EOF | ||
15828 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15829 | EOF | ||
15830 | |||
15831 | else | ||
15832 | { echo "$as_me:15832: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
15833 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
15834 | |||
15835 | fi | ||
15836 | done | ||
15837 | |||
15838 | fi | ||
15839 | |||
15840 | oldCPP="$CPPFLAGS" | ||
15841 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
15842 | echo "$as_me:15842: checking for gssapi_krb5.h" >&5 | ||
15843 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
15844 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
15845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15846 | else | ||
15847 | cat >conftest.$ac_ext <<_ACEOF | ||
15848 | #line 15848 "configure" | ||
15849 | #include "confdefs.h" | ||
15850 | #include <gssapi_krb5.h> | ||
15851 | _ACEOF | ||
15852 | if { (eval echo "$as_me:15852: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15853 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15854 | ac_status=$? | ||
15855 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15856 | rm -f conftest.er1 | ||
15857 | cat conftest.err >&5 | ||
15858 | echo "$as_me:15858: \$? = $ac_status" >&5 | ||
15859 | (exit $ac_status); } >/dev/null; then | ||
15860 | if test -s conftest.err; then | ||
15861 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15862 | else | ||
15863 | ac_cpp_err= | ||
15864 | fi | ||
15865 | else | ||
15866 | ac_cpp_err=yes | ||
15867 | fi | ||
15868 | if test -z "$ac_cpp_err"; then | ||
15869 | ac_cv_header_gssapi_krb5_h=yes | ||
15870 | else | ||
15871 | echo "$as_me: failed program was:" >&5 | ||
15872 | cat conftest.$ac_ext >&5 | ||
15873 | ac_cv_header_gssapi_krb5_h=no | ||
15874 | fi | ||
15875 | rm -f conftest.err conftest.$ac_ext | ||
15876 | fi | ||
15877 | echo "$as_me:15877: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
15878 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
15879 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
15880 | : | ||
15881 | else | ||
15882 | CPPFLAGS="$oldCPP" | ||
15883 | fi | ||
15884 | |||
15885 | fi | ||
15886 | if test ! -z "$need_dash_r" ; then | ||
15887 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
15888 | fi | ||
15889 | if test ! -z "$blibpath" ; then | ||
15890 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
15891 | fi | ||
15892 | fi | ||
15893 | |||
15894 | for ac_header in gssapi.h gssapi/gssapi.h | ||
15895 | do | ||
15896 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15897 | echo "$as_me:15897: checking for $ac_header" >&5 | ||
15898 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15899 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15901 | else | ||
15902 | cat >conftest.$ac_ext <<_ACEOF | ||
15903 | #line 15903 "configure" | ||
15904 | #include "confdefs.h" | ||
15905 | #include <$ac_header> | ||
15906 | _ACEOF | ||
15907 | if { (eval echo "$as_me:15907: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15908 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15909 | ac_status=$? | ||
15910 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15911 | rm -f conftest.er1 | ||
15912 | cat conftest.err >&5 | ||
15913 | echo "$as_me:15913: \$? = $ac_status" >&5 | ||
15914 | (exit $ac_status); } >/dev/null; then | ||
15915 | if test -s conftest.err; then | ||
15916 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15917 | else | ||
15918 | ac_cpp_err= | ||
15919 | fi | ||
15920 | else | ||
15921 | ac_cpp_err=yes | ||
15922 | fi | ||
15923 | if test -z "$ac_cpp_err"; then | ||
15924 | eval "$as_ac_Header=yes" | ||
15925 | else | ||
15926 | echo "$as_me: failed program was:" >&5 | ||
15927 | cat conftest.$ac_ext >&5 | ||
15928 | eval "$as_ac_Header=no" | ||
15929 | fi | ||
15930 | rm -f conftest.err conftest.$ac_ext | ||
15931 | fi | ||
15932 | echo "$as_me:15932: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15933 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15934 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15935 | cat >>confdefs.h <<EOF | ||
15936 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15937 | EOF | ||
15938 | |||
15939 | fi | ||
15940 | done | ||
15941 | |||
15942 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
15943 | do | ||
15944 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15945 | echo "$as_me:15945: checking for $ac_header" >&5 | ||
15946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15947 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15949 | else | ||
15950 | cat >conftest.$ac_ext <<_ACEOF | ||
15951 | #line 15951 "configure" | ||
15952 | #include "confdefs.h" | ||
15953 | #include <$ac_header> | ||
15954 | _ACEOF | ||
15955 | if { (eval echo "$as_me:15955: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15956 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15957 | ac_status=$? | ||
15958 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15959 | rm -f conftest.er1 | ||
15960 | cat conftest.err >&5 | ||
15961 | echo "$as_me:15961: \$? = $ac_status" >&5 | ||
15962 | (exit $ac_status); } >/dev/null; then | ||
15963 | if test -s conftest.err; then | ||
15964 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15965 | else | ||
15966 | ac_cpp_err= | ||
15967 | fi | ||
15968 | else | ||
15969 | ac_cpp_err=yes | ||
15970 | fi | ||
15971 | if test -z "$ac_cpp_err"; then | ||
15972 | eval "$as_ac_Header=yes" | ||
15973 | else | ||
15974 | echo "$as_me: failed program was:" >&5 | ||
15975 | cat conftest.$ac_ext >&5 | ||
15976 | eval "$as_ac_Header=no" | ||
15977 | fi | ||
15978 | rm -f conftest.err conftest.$ac_ext | ||
15979 | fi | ||
15980 | echo "$as_me:15980: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15981 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15982 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15983 | cat >>confdefs.h <<EOF | ||
15984 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15985 | EOF | ||
15986 | |||
15987 | fi | ||
15988 | done | ||
15989 | |||
15990 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
15991 | do | ||
15992 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15993 | echo "$as_me:15993: checking for $ac_header" >&5 | ||
15994 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15997 | else | ||
15998 | cat >conftest.$ac_ext <<_ACEOF | ||
15999 | #line 15999 "configure" | ||
16000 | #include "confdefs.h" | ||
16001 | #include <$ac_header> | ||
16002 | _ACEOF | ||
16003 | if { (eval echo "$as_me:16003: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
16004 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
16005 | ac_status=$? | ||
16006 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
16007 | rm -f conftest.er1 | ||
16008 | cat conftest.err >&5 | ||
16009 | echo "$as_me:16009: \$? = $ac_status" >&5 | ||
16010 | (exit $ac_status); } >/dev/null; then | ||
16011 | if test -s conftest.err; then | ||
16012 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
16013 | else | ||
16014 | ac_cpp_err= | ||
16015 | fi | ||
16016 | else | ||
16017 | ac_cpp_err=yes | ||
16018 | fi | ||
16019 | if test -z "$ac_cpp_err"; then | ||
16020 | eval "$as_ac_Header=yes" | ||
16021 | else | ||
16022 | echo "$as_me: failed program was:" >&5 | ||
16023 | cat conftest.$ac_ext >&5 | ||
16024 | eval "$as_ac_Header=no" | ||
16025 | fi | ||
16026 | rm -f conftest.err conftest.$ac_ext | ||
16027 | fi | ||
16028 | echo "$as_me:16028: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
16029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
16030 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
16031 | cat >>confdefs.h <<EOF | ||
16032 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
16033 | EOF | ||
16034 | |||
16035 | fi | ||
16036 | done | ||
16037 | |||
16038 | LIBS="$LIBS $K5LIBS" | ||
16039 | echo "$as_me:16039: checking for library containing k_hasafs" >&5 | ||
16040 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6 | ||
16041 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
16042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16043 | else | ||
16044 | ac_func_search_save_LIBS=$LIBS | ||
16045 | ac_cv_search_k_hasafs=no | ||
16046 | cat >conftest.$ac_ext <<_ACEOF | ||
16047 | #line 16047 "configure" | ||
16048 | #include "confdefs.h" | ||
16049 | |||
16050 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
16051 | #ifdef __cplusplus | ||
16052 | extern "C" | ||
16053 | #endif | ||
16054 | /* We use char because int might match the return type of a gcc2 | ||
16055 | builtin and then its argument prototype would still apply. */ | ||
16056 | char k_hasafs (); | ||
16057 | int | ||
16058 | main () | ||
16059 | { | ||
16060 | k_hasafs (); | ||
16061 | ; | ||
16062 | return 0; | ||
16063 | } | ||
16064 | _ACEOF | ||
16065 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16066 | if { (eval echo "$as_me:16066: \"$ac_link\"") >&5 | ||
16067 | (eval $ac_link) 2>&5 | ||
16068 | ac_status=$? | ||
16069 | echo "$as_me:16069: \$? = $ac_status" >&5 | ||
16070 | (exit $ac_status); } && | ||
16071 | { ac_try='test -s conftest$ac_exeext' | ||
16072 | { (eval echo "$as_me:16072: \"$ac_try\"") >&5 | ||
16073 | (eval $ac_try) 2>&5 | ||
16074 | ac_status=$? | ||
16075 | echo "$as_me:16075: \$? = $ac_status" >&5 | ||
16076 | (exit $ac_status); }; }; then | ||
16077 | ac_cv_search_k_hasafs="none required" | ||
16078 | else | ||
16079 | echo "$as_me: failed program was:" >&5 | ||
16080 | cat conftest.$ac_ext >&5 | ||
16081 | fi | ||
16082 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
16083 | if test "$ac_cv_search_k_hasafs" = no; then | ||
16084 | for ac_lib in kafs; do | ||
16085 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
16086 | cat >conftest.$ac_ext <<_ACEOF | ||
16087 | #line 16087 "configure" | ||
16088 | #include "confdefs.h" | ||
16089 | |||
16090 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
16091 | #ifdef __cplusplus | ||
16092 | extern "C" | ||
16093 | #endif | ||
16094 | /* We use char because int might match the return type of a gcc2 | ||
16095 | builtin and then its argument prototype would still apply. */ | ||
16096 | char k_hasafs (); | ||
16097 | int | ||
16098 | main () | ||
16099 | { | ||
16100 | k_hasafs (); | ||
16101 | ; | ||
16102 | return 0; | ||
16103 | } | ||
16104 | _ACEOF | ||
16105 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16106 | if { (eval echo "$as_me:16106: \"$ac_link\"") >&5 | ||
16107 | (eval $ac_link) 2>&5 | ||
16108 | ac_status=$? | ||
16109 | echo "$as_me:16109: \$? = $ac_status" >&5 | ||
16110 | (exit $ac_status); } && | ||
16111 | { ac_try='test -s conftest$ac_exeext' | ||
16112 | { (eval echo "$as_me:16112: \"$ac_try\"") >&5 | ||
16113 | (eval $ac_try) 2>&5 | ||
16114 | ac_status=$? | ||
16115 | echo "$as_me:16115: \$? = $ac_status" >&5 | ||
16116 | (exit $ac_status); }; }; then | ||
16117 | ac_cv_search_k_hasafs="-l$ac_lib" | ||
16118 | break | ||
16119 | else | ||
16120 | echo "$as_me: failed program was:" >&5 | ||
16121 | cat conftest.$ac_ext >&5 | ||
16122 | fi | ||
16123 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
16124 | done | ||
16125 | fi | ||
16126 | LIBS=$ac_func_search_save_LIBS | ||
16127 | fi | ||
16128 | echo "$as_me:16128: result: $ac_cv_search_k_hasafs" >&5 | ||
16129 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6 | ||
16130 | if test "$ac_cv_search_k_hasafs" != no; then | ||
16131 | test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS" | ||
16132 | cat >>confdefs.h <<\EOF | ||
16133 | #define USE_AFS 1 | ||
16134 | EOF | ||
16135 | |||
16136 | fi | ||
16137 | |||
16138 | echo "$as_me:16138: checking for library containing krb5_init_ets" >&5 | ||
16139 | echo $ECHO_N "checking for library containing krb5_init_ets... $ECHO_C" >&6 | ||
16140 | if test "${ac_cv_search_krb5_init_ets+set}" = set; then | ||
16141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16142 | else | ||
16143 | ac_func_search_save_LIBS=$LIBS | ||
16144 | ac_cv_search_krb5_init_ets=no | ||
16145 | cat >conftest.$ac_ext <<_ACEOF | ||
16146 | #line 16146 "configure" | ||
16147 | #include "confdefs.h" | ||
16148 | |||
16149 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
16150 | #ifdef __cplusplus | ||
16151 | extern "C" | ||
16152 | #endif | ||
16153 | /* We use char because int might match the return type of a gcc2 | ||
16154 | builtin and then its argument prototype would still apply. */ | ||
16155 | char krb5_init_ets (); | ||
16156 | int | ||
16157 | main () | ||
16158 | { | ||
16159 | krb5_init_ets (); | ||
16160 | ; | ||
16161 | return 0; | ||
16162 | } | ||
16163 | _ACEOF | ||
16164 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16165 | if { (eval echo "$as_me:16165: \"$ac_link\"") >&5 | ||
16166 | (eval $ac_link) 2>&5 | ||
16167 | ac_status=$? | ||
16168 | echo "$as_me:16168: \$? = $ac_status" >&5 | ||
16169 | (exit $ac_status); } && | ||
16170 | { ac_try='test -s conftest$ac_exeext' | ||
16171 | { (eval echo "$as_me:16171: \"$ac_try\"") >&5 | ||
16172 | (eval $ac_try) 2>&5 | ||
16173 | ac_status=$? | ||
16174 | echo "$as_me:16174: \$? = $ac_status" >&5 | ||
16175 | (exit $ac_status); }; }; then | ||
16176 | ac_cv_search_krb5_init_ets="none required" | ||
16177 | else | ||
16178 | echo "$as_me: failed program was:" >&5 | ||
16179 | cat conftest.$ac_ext >&5 | ||
16180 | fi | ||
16181 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
16182 | if test "$ac_cv_search_krb5_init_ets" = no; then | ||
16183 | for ac_lib in $K5LIBS; do | ||
16184 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
16185 | cat >conftest.$ac_ext <<_ACEOF | ||
16186 | #line 16186 "configure" | ||
16187 | #include "confdefs.h" | ||
16188 | |||
16189 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
16190 | #ifdef __cplusplus | ||
16191 | extern "C" | ||
16192 | #endif | ||
16193 | /* We use char because int might match the return type of a gcc2 | ||
16194 | builtin and then its argument prototype would still apply. */ | ||
16195 | char krb5_init_ets (); | ||
16196 | int | ||
16197 | main () | ||
16198 | { | ||
16199 | krb5_init_ets (); | ||
16200 | ; | ||
16201 | return 0; | ||
16202 | } | ||
16203 | _ACEOF | ||
16204 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16205 | if { (eval echo "$as_me:16205: \"$ac_link\"") >&5 | ||
16206 | (eval $ac_link) 2>&5 | ||
16207 | ac_status=$? | ||
16208 | echo "$as_me:16208: \$? = $ac_status" >&5 | ||
16209 | (exit $ac_status); } && | ||
16210 | { ac_try='test -s conftest$ac_exeext' | ||
16211 | { (eval echo "$as_me:16211: \"$ac_try\"") >&5 | ||
16212 | (eval $ac_try) 2>&5 | ||
16213 | ac_status=$? | ||
16214 | echo "$as_me:16214: \$? = $ac_status" >&5 | ||
16215 | (exit $ac_status); }; }; then | ||
16216 | ac_cv_search_krb5_init_ets="-l$ac_lib" | ||
16217 | break | ||
16218 | else | ||
16219 | echo "$as_me: failed program was:" >&5 | ||
16220 | cat conftest.$ac_ext >&5 | ||
16221 | fi | ||
16222 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
16223 | done | ||
16224 | fi | ||
16225 | LIBS=$ac_func_search_save_LIBS | ||
16226 | fi | ||
16227 | echo "$as_me:16227: result: $ac_cv_search_krb5_init_ets" >&5 | ||
16228 | echo "${ECHO_T}$ac_cv_search_krb5_init_ets" >&6 | ||
16229 | if test "$ac_cv_search_krb5_init_ets" != no; then | ||
16230 | test "$ac_cv_search_krb5_init_ets" = "none required" || LIBS="$ac_cv_search_krb5_init_ets $LIBS" | ||
16231 | cat >>confdefs.h <<\EOF | ||
16232 | #define KRB5_INIT_ETS 1 | ||
16233 | EOF | ||
16234 | |||
16235 | fi | ||
16236 | |||
16237 | fi; | ||
16238 | |||
16239 | # Looking for programs, paths and files | ||
16240 | |||
16241 | PRIVSEP_PATH=/var/empty | ||
16242 | |||
16243 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
16244 | if test "${with_privsep_path+set}" = set; then | ||
16245 | withval="$with_privsep_path" | ||
16246 | |||
16247 | if test "x$withval" != "$no" ; then | ||
16248 | PRIVSEP_PATH=$withval | ||
16249 | fi | ||
16250 | |||
16251 | fi; | ||
16252 | |||
16253 | # Check whether --with-xauth or --without-xauth was given. | ||
16254 | if test "${with_xauth+set}" = set; then | ||
16255 | withval="$with_xauth" | ||
16256 | |||
16257 | if test "x$withval" != "xno" ; then | ||
16258 | xauth_path=$withval | ||
16259 | fi | ||
16260 | |||
16261 | else | ||
16262 | |||
16263 | TestPath="$PATH" | ||
16264 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
16265 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
16266 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
16267 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
16268 | # Extract the first word of "xauth", so it can be a program name with args. | ||
16269 | set dummy xauth; ac_word=$2 | ||
16270 | echo "$as_me:16270: checking for $ac_word" >&5 | ||
16271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16272 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
16273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16274 | else | ||
16275 | case $xauth_path in | ||
16276 | [\\/]* | ?:[\\/]*) | ||
16277 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
16278 | ;; | ||
16279 | *) | ||
16280 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
16281 | ac_dummy="$TestPath" | ||
16282 | for ac_dir in $ac_dummy; do | ||
16283 | IFS=$ac_save_IFS | ||
16284 | test -z "$ac_dir" && ac_dir=. | ||
16285 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
16286 | ac_cv_path_xauth_path="$ac_dir/$ac_word" | ||
16287 | echo "$as_me:16287: found $ac_dir/$ac_word" >&5 | ||
16288 | break | ||
16289 | fi | ||
16290 | done | ||
16291 | |||
16292 | ;; | ||
16293 | esac | ||
16294 | fi | ||
16295 | xauth_path=$ac_cv_path_xauth_path | ||
16296 | |||
16297 | if test -n "$xauth_path"; then | ||
16298 | echo "$as_me:16298: result: $xauth_path" >&5 | ||
16299 | echo "${ECHO_T}$xauth_path" >&6 | ||
16300 | else | ||
16301 | echo "$as_me:16301: result: no" >&5 | ||
16302 | echo "${ECHO_T}no" >&6 | ||
16303 | fi | ||
16304 | |||
16305 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
16306 | xauth_path="/usr/openwin/bin/xauth" | ||
16307 | fi | ||
16308 | |||
16309 | fi; | ||
16310 | |||
16311 | STRIP_OPT=-s | ||
16312 | # Check whether --enable-strip or --disable-strip was given. | ||
16313 | if test "${enable_strip+set}" = set; then | ||
16314 | enableval="$enable_strip" | ||
16315 | |||
16316 | if test "x$enableval" = "xno" ; then | ||
16317 | STRIP_OPT= | ||
16318 | fi | ||
16319 | |||
16320 | fi; | ||
16321 | |||
16322 | if test -z "$xauth_path" ; then | ||
16323 | XAUTH_PATH="undefined" | ||
16324 | |||
16325 | else | ||
16326 | cat >>confdefs.h <<EOF | ||
16327 | #define XAUTH_PATH "$xauth_path" | ||
16328 | EOF | ||
16329 | |||
16330 | XAUTH_PATH=$xauth_path | ||
16331 | |||
16332 | fi | ||
16333 | |||
16334 | # Check for mail directory (last resort if we cannot get it from headers) | ||
16335 | if test ! -z "$MAIL" ; then | ||
16336 | maildir=`dirname $MAIL` | ||
16337 | cat >>confdefs.h <<EOF | ||
16338 | #define MAIL_DIRECTORY "$maildir" | ||
16339 | EOF | ||
16340 | |||
16341 | fi | ||
16342 | |||
16343 | if test -z "$no_dev_ptmx" ; then | ||
16344 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
16345 | echo "$as_me:16345: checking for \"/dev/ptmx\"" >&5 | ||
16346 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
16347 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
16348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16349 | else | ||
16350 | test "$cross_compiling" = yes && | ||
16351 | { { echo "$as_me:16351: error: cannot check for file existence when cross compiling" >&5 | ||
16352 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
16353 | { (exit 1); exit 1; }; } | ||
16354 | if test -r ""/dev/ptmx""; then | ||
16355 | ac_cv_file___dev_ptmx_=yes | ||
16356 | else | ||
16357 | ac_cv_file___dev_ptmx_=no | ||
16358 | fi | ||
16359 | fi | ||
16360 | echo "$as_me:16360: result: $ac_cv_file___dev_ptmx_" >&5 | ||
16361 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
16362 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
16363 | |||
16364 | cat >>confdefs.h <<EOF | ||
16365 | #define HAVE_DEV_PTMX 1 | ||
16366 | EOF | ||
16367 | |||
16368 | have_dev_ptmx=1 | ||
16369 | |||
16370 | fi | ||
16371 | |||
16372 | fi | ||
16373 | fi | ||
16374 | echo "$as_me:16374: checking for \"/dev/ptc\"" >&5 | ||
16375 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
16376 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
16377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16378 | else | ||
16379 | test "$cross_compiling" = yes && | ||
16380 | { { echo "$as_me:16380: error: cannot check for file existence when cross compiling" >&5 | ||
16381 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
16382 | { (exit 1); exit 1; }; } | ||
16383 | if test -r ""/dev/ptc""; then | ||
16384 | ac_cv_file___dev_ptc_=yes | ||
16385 | else | ||
16386 | ac_cv_file___dev_ptc_=no | ||
16387 | fi | ||
16388 | fi | ||
16389 | echo "$as_me:16389: result: $ac_cv_file___dev_ptc_" >&5 | ||
16390 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
16391 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
16392 | |||
16393 | cat >>confdefs.h <<EOF | ||
16394 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
16395 | EOF | ||
16396 | |||
16397 | have_dev_ptc=1 | ||
16398 | |||
16399 | fi | ||
16400 | |||
16401 | # Options from here on. Some of these are preset by platform above | ||
16402 | |||
16403 | # Check whether --with-mantype or --without-mantype was given. | ||
16404 | if test "${with_mantype+set}" = set; then | ||
16405 | withval="$with_mantype" | ||
16406 | |||
16407 | case "$withval" in | ||
16408 | man|cat|doc) | ||
16409 | MANTYPE=$withval | ||
16410 | ;; | ||
16411 | *) | ||
16412 | { { echo "$as_me:16412: error: invalid man type: $withval" >&5 | ||
16413 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
16414 | { (exit 1); exit 1; }; } | ||
16415 | ;; | ||
16416 | esac | ||
16417 | |||
16418 | fi; | ||
16419 | if test -z "$MANTYPE"; then | ||
16420 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
16421 | for ac_prog in nroff awf | ||
16422 | do | ||
16423 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
16424 | set dummy $ac_prog; ac_word=$2 | ||
16425 | echo "$as_me:16425: checking for $ac_word" >&5 | ||
16426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16427 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
16428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16429 | else | ||
16430 | case $NROFF in | ||
16431 | [\\/]* | ?:[\\/]*) | ||
16432 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
16433 | ;; | ||
16434 | *) | ||
16435 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
16436 | ac_dummy="$TestPath" | ||
16437 | for ac_dir in $ac_dummy; do | ||
16438 | IFS=$ac_save_IFS | ||
16439 | test -z "$ac_dir" && ac_dir=. | ||
16440 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
16441 | ac_cv_path_NROFF="$ac_dir/$ac_word" | ||
16442 | echo "$as_me:16442: found $ac_dir/$ac_word" >&5 | ||
16443 | break | ||
16444 | fi | ||
16445 | done | ||
16446 | |||
16447 | ;; | ||
16448 | esac | ||
16449 | fi | ||
16450 | NROFF=$ac_cv_path_NROFF | ||
16451 | |||
16452 | if test -n "$NROFF"; then | ||
16453 | echo "$as_me:16453: result: $NROFF" >&5 | ||
16454 | echo "${ECHO_T}$NROFF" >&6 | ||
16455 | else | ||
16456 | echo "$as_me:16456: result: no" >&5 | ||
16457 | echo "${ECHO_T}no" >&6 | ||
16458 | fi | ||
16459 | |||
16460 | test -n "$NROFF" && break | ||
16461 | done | ||
16462 | test -n "$NROFF" || NROFF="/bin/false" | ||
16463 | |||
16464 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
16465 | MANTYPE=doc | ||
16466 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
16467 | MANTYPE=man | ||
16468 | else | ||
16469 | MANTYPE=cat | ||
16470 | fi | ||
16471 | fi | ||
16472 | |||
16473 | if test "$MANTYPE" = "doc"; then | ||
16474 | mansubdir=man; | ||
16475 | else | ||
16476 | mansubdir=$MANTYPE; | ||
16477 | fi | ||
16478 | |||
16479 | # Check whether to enable MD5 passwords | ||
16480 | MD5_MSG="no" | ||
16481 | |||
16482 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
16483 | if test "${with_md5_passwords+set}" = set; then | ||
16484 | withval="$with_md5_passwords" | ||
16485 | |||
16486 | if test "x$withval" != "xno" ; then | ||
16487 | cat >>confdefs.h <<\EOF | ||
16488 | #define HAVE_MD5_PASSWORDS 1 | ||
16489 | EOF | ||
16490 | |||
16491 | MD5_MSG="yes" | ||
16492 | fi | ||
16493 | |||
16494 | fi; | ||
16495 | |||
16496 | # Whether to disable shadow password support | ||
16497 | |||
16498 | # Check whether --with-shadow or --without-shadow was given. | ||
16499 | if test "${with_shadow+set}" = set; then | ||
16500 | withval="$with_shadow" | ||
16501 | |||
16502 | if test "x$withval" = "xno" ; then | ||
16503 | cat >>confdefs.h <<\EOF | ||
16504 | #define DISABLE_SHADOW 1 | ||
16505 | EOF | ||
16506 | |||
16507 | disable_shadow=yes | ||
16508 | fi | ||
16509 | |||
16510 | fi; | ||
16511 | |||
16512 | if test -z "$disable_shadow" ; then | ||
16513 | echo "$as_me:16513: checking if the systems has expire shadow information" >&5 | ||
16514 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
16515 | cat >conftest.$ac_ext <<_ACEOF | ||
16516 | #line 16516 "configure" | ||
16517 | #include "confdefs.h" | ||
16518 | |||
16519 | #include <sys/types.h> | ||
16520 | #include <shadow.h> | ||
16521 | struct spwd sp; | ||
16522 | |||
16523 | int | ||
16524 | main () | ||
16525 | { | ||
16526 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
16527 | ; | ||
16528 | return 0; | ||
16529 | } | ||
16530 | _ACEOF | ||
16531 | rm -f conftest.$ac_objext | ||
16532 | if { (eval echo "$as_me:16532: \"$ac_compile\"") >&5 | ||
16533 | (eval $ac_compile) 2>&5 | ||
16534 | ac_status=$? | ||
16535 | echo "$as_me:16535: \$? = $ac_status" >&5 | ||
16536 | (exit $ac_status); } && | ||
16537 | { ac_try='test -s conftest.$ac_objext' | ||
16538 | { (eval echo "$as_me:16538: \"$ac_try\"") >&5 | ||
16539 | (eval $ac_try) 2>&5 | ||
16540 | ac_status=$? | ||
16541 | echo "$as_me:16541: \$? = $ac_status" >&5 | ||
16542 | (exit $ac_status); }; }; then | ||
16543 | sp_expire_available=yes | ||
16544 | else | ||
16545 | echo "$as_me: failed program was:" >&5 | ||
16546 | cat conftest.$ac_ext >&5 | ||
16547 | |||
16548 | fi | ||
16549 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16550 | |||
16551 | if test "x$sp_expire_available" = "xyes" ; then | ||
16552 | echo "$as_me:16552: result: yes" >&5 | ||
16553 | echo "${ECHO_T}yes" >&6 | ||
16554 | cat >>confdefs.h <<\EOF | ||
16555 | #define HAS_SHADOW_EXPIRE 1 | ||
16556 | EOF | ||
16557 | |||
16558 | else | ||
16559 | echo "$as_me:16559: result: no" >&5 | ||
16560 | echo "${ECHO_T}no" >&6 | ||
16561 | fi | ||
16562 | fi | ||
16563 | |||
16564 | # Use ip address instead of hostname in $DISPLAY | ||
16565 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
16566 | DISPLAY_HACK_MSG="yes" | ||
16567 | cat >>confdefs.h <<\EOF | ||
16568 | #define IPADDR_IN_DISPLAY 1 | ||
16569 | EOF | ||
16570 | |||
16571 | else | ||
16572 | DISPLAY_HACK_MSG="no" | ||
16573 | |||
16574 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
16575 | if test "${with_ipaddr_display+set}" = set; then | ||
16576 | withval="$with_ipaddr_display" | ||
16577 | |||
16578 | if test "x$withval" != "xno" ; then | ||
16579 | cat >>confdefs.h <<\EOF | ||
16580 | #define IPADDR_IN_DISPLAY 1 | ||
16581 | EOF | ||
16582 | |||
16583 | DISPLAY_HACK_MSG="yes" | ||
16584 | fi | ||
16585 | |||
16586 | fi; | ||
16587 | fi | ||
16588 | |||
16589 | # check for /etc/default/login and use it if present. | ||
16590 | # Check whether --enable-etc-default-login or --disable-etc-default-login was given. | ||
16591 | if test "${enable_etc_default_login+set}" = set; then | ||
16592 | enableval="$enable_etc_default_login" | ||
16593 | |||
16594 | else | ||
16595 | |||
16596 | echo "$as_me:16596: checking for \"/etc/default/login\"" >&5 | ||
16597 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6 | ||
16598 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
16599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16600 | else | ||
16601 | test "$cross_compiling" = yes && | ||
16602 | { { echo "$as_me:16602: error: cannot check for file existence when cross compiling" >&5 | ||
16603 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
16604 | { (exit 1); exit 1; }; } | ||
16605 | if test -r ""/etc/default/login""; then | ||
16606 | ac_cv_file___etc_default_login_=yes | ||
16607 | else | ||
16608 | ac_cv_file___etc_default_login_=no | ||
16609 | fi | ||
16610 | fi | ||
16611 | echo "$as_me:16611: result: $ac_cv_file___etc_default_login_" >&5 | ||
16612 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6 | ||
16613 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
16614 | external_path_file=/etc/default/login | ||
16615 | fi | ||
16616 | |||
16617 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
16618 | cat >>confdefs.h <<\EOF | ||
16619 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
16620 | EOF | ||
16621 | |||
16622 | fi | ||
16623 | |||
16624 | fi; | ||
16625 | |||
16626 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | ||
16627 | $ac_cv_header_login_cap_h = "yes" ; then | ||
16628 | external_path_file=/etc/login.conf | ||
16629 | fi | ||
16630 | |||
16631 | # Whether to mess with the default path | ||
16632 | SERVER_PATH_MSG="(default)" | ||
16633 | |||
16634 | # Check whether --with-default-path or --without-default-path was given. | ||
16635 | if test "${with_default_path+set}" = set; then | ||
16636 | withval="$with_default_path" | ||
16637 | |||
16638 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
16639 | { echo "$as_me:16639: WARNING: | ||
16640 | --with-default-path=PATH has no effect on this system. | ||
16641 | Edit /etc/login.conf instead." >&5 | ||
16642 | echo "$as_me: WARNING: | ||
16643 | --with-default-path=PATH has no effect on this system. | ||
16644 | Edit /etc/login.conf instead." >&2;} | ||
16645 | elif test "x$withval" != "xno" ; then | ||
16646 | if test ! -z "$external_path_file" ; then | ||
16647 | { echo "$as_me:16647: WARNING: | ||
16648 | --with-default-path=PATH will only be used if PATH is not defined in | ||
16649 | $external_path_file ." >&5 | ||
16650 | echo "$as_me: WARNING: | ||
16651 | --with-default-path=PATH will only be used if PATH is not defined in | ||
16652 | $external_path_file ." >&2;} | ||
16653 | fi | ||
16654 | user_path="$withval" | ||
16655 | SERVER_PATH_MSG="$withval" | ||
16656 | fi | ||
16657 | |||
16658 | else | ||
16659 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
16660 | { echo "$as_me:16660: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
16661 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
16662 | else | ||
16663 | if test ! -z "$external_path_file" ; then | ||
16664 | { echo "$as_me:16664: WARNING: | ||
16665 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
16666 | otherwise scp will not work." >&5 | ||
16667 | echo "$as_me: WARNING: | ||
16668 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
16669 | otherwise scp will not work." >&2;} | ||
16670 | fi | ||
16671 | if test "$cross_compiling" = yes; then | ||
16672 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16673 | |||
16674 | else | ||
16675 | cat >conftest.$ac_ext <<_ACEOF | ||
16676 | #line 16676 "configure" | ||
16677 | #include "confdefs.h" | ||
16678 | |||
16679 | /* find out what STDPATH is */ | ||
16680 | #include <stdio.h> | ||
16681 | #ifdef HAVE_PATHS_H | ||
16682 | # include <paths.h> | ||
16683 | #endif | ||
16684 | #ifndef _PATH_STDPATH | ||
16685 | # ifdef _PATH_USERPATH /* Irix */ | ||
16686 | # define _PATH_STDPATH _PATH_USERPATH | ||
16687 | # else | ||
16688 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
16689 | # endif | ||
16690 | #endif | ||
16691 | #include <sys/types.h> | ||
16692 | #include <sys/stat.h> | ||
16693 | #include <fcntl.h> | ||
16694 | #define DATA "conftest.stdpath" | ||
16695 | |||
16696 | main() | ||
16697 | { | ||
16698 | FILE *fd; | ||
16699 | int rc; | ||
16700 | |||
16701 | fd = fopen(DATA,"w"); | ||
16702 | if(fd == NULL) | ||
16703 | exit(1); | ||
16704 | |||
16705 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
16706 | exit(1); | ||
16707 | |||
16708 | exit(0); | ||
16709 | } | ||
16710 | |||
16711 | _ACEOF | ||
16712 | rm -f conftest$ac_exeext | ||
16713 | if { (eval echo "$as_me:16713: \"$ac_link\"") >&5 | ||
16714 | (eval $ac_link) 2>&5 | ||
16715 | ac_status=$? | ||
16716 | echo "$as_me:16716: \$? = $ac_status" >&5 | ||
16717 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16718 | { (eval echo "$as_me:16718: \"$ac_try\"") >&5 | ||
16719 | (eval $ac_try) 2>&5 | ||
16720 | ac_status=$? | ||
16721 | echo "$as_me:16721: \$? = $ac_status" >&5 | ||
16722 | (exit $ac_status); }; }; then | ||
16723 | user_path=`cat conftest.stdpath` | ||
16724 | else | ||
16725 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16726 | echo "$as_me: failed program was:" >&5 | ||
16727 | cat conftest.$ac_ext >&5 | ||
16728 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16729 | fi | ||
16730 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16731 | fi | ||
16732 | # make sure $bindir is in USER_PATH so scp will work | ||
16733 | t_bindir=`eval echo ${bindir}` | ||
16734 | case $t_bindir in | ||
16735 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
16736 | esac | ||
16737 | case $t_bindir in | ||
16738 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16739 | esac | ||
16740 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
16741 | if test $? -ne 0 ; then | ||
16742 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
16743 | if test $? -ne 0 ; then | ||
16744 | user_path=$user_path:$t_bindir | ||
16745 | echo "$as_me:16745: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
16746 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
16747 | fi | ||
16748 | fi | ||
16749 | fi | ||
16750 | |||
16751 | fi; | ||
16752 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
16753 | cat >>confdefs.h <<EOF | ||
16754 | #define USER_PATH "$user_path" | ||
16755 | EOF | ||
16756 | |||
16757 | fi | ||
16758 | |||
16759 | # Set superuser path separately to user path | ||
16760 | |||
16761 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
16762 | if test "${with_superuser_path+set}" = set; then | ||
16763 | withval="$with_superuser_path" | ||
16764 | |||
16765 | if test "x$withval" != "xno" ; then | ||
16766 | cat >>confdefs.h <<EOF | ||
16767 | #define SUPERUSER_PATH "$withval" | ||
16768 | EOF | ||
16769 | |||
16770 | superuser_path=$withval | ||
16771 | fi | ||
16772 | |||
16773 | fi; | ||
16774 | |||
16775 | echo "$as_me:16775: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
16776 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
16777 | IPV4_IN6_HACK_MSG="no" | ||
16778 | |||
16779 | # Check whether --with-4in6 or --without-4in6 was given. | ||
16780 | if test "${with_4in6+set}" = set; then | ||
16781 | withval="$with_4in6" | ||
16782 | |||
16783 | if test "x$withval" != "xno" ; then | ||
16784 | echo "$as_me:16784: result: yes" >&5 | ||
16785 | echo "${ECHO_T}yes" >&6 | ||
16786 | cat >>confdefs.h <<\EOF | ||
16787 | #define IPV4_IN_IPV6 1 | ||
16788 | EOF | ||
16789 | |||
16790 | IPV4_IN6_HACK_MSG="yes" | ||
16791 | else | ||
16792 | echo "$as_me:16792: result: no" >&5 | ||
16793 | echo "${ECHO_T}no" >&6 | ||
16794 | fi | ||
16795 | |||
16796 | else | ||
16797 | |||
16798 | if test "x$inet6_default_4in6" = "xyes"; then | ||
16799 | echo "$as_me:16799: result: yes (default)" >&5 | ||
16800 | echo "${ECHO_T}yes (default)" >&6 | ||
16801 | cat >>confdefs.h <<\EOF | ||
16802 | #define IPV4_IN_IPV6 1 | ||
16803 | EOF | ||
16804 | |||
16805 | IPV4_IN6_HACK_MSG="yes" | ||
16806 | else | ||
16807 | echo "$as_me:16807: result: no (default)" >&5 | ||
16808 | echo "${ECHO_T}no (default)" >&6 | ||
16809 | fi | ||
16810 | |||
16811 | fi; | ||
16812 | |||
16813 | # Whether to enable BSD auth support | ||
16814 | BSD_AUTH_MSG=no | ||
16815 | |||
16816 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
16817 | if test "${with_bsd_auth+set}" = set; then | ||
16818 | withval="$with_bsd_auth" | ||
16819 | |||
16820 | if test "x$withval" != "xno" ; then | ||
16821 | cat >>confdefs.h <<\EOF | ||
16822 | #define BSD_AUTH 1 | ||
16823 | EOF | ||
16824 | |||
16825 | BSD_AUTH_MSG=yes | ||
16826 | fi | ||
16827 | |||
16828 | fi; | ||
16829 | |||
16830 | # Where to place sshd.pid | ||
16831 | piddir=/var/run | ||
16832 | # make sure the directory exists | ||
16833 | if test ! -d $piddir ; then | ||
16834 | piddir=`eval echo ${sysconfdir}` | ||
16835 | case $piddir in | ||
16836 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16837 | esac | ||
16838 | fi | ||
16839 | |||
16840 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
16841 | if test "${with_pid_dir+set}" = set; then | ||
16842 | withval="$with_pid_dir" | ||
16843 | |||
16844 | if test "x$withval" != "xno" ; then | ||
16845 | piddir=$withval | ||
16846 | if test ! -d $piddir ; then | ||
16847 | { echo "$as_me:16847: WARNING: ** no $piddir directory on this system **" >&5 | ||
16848 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
16849 | fi | ||
16850 | fi | ||
16851 | |||
16852 | fi; | ||
16853 | |||
16854 | cat >>confdefs.h <<EOF | ||
16855 | #define _PATH_SSH_PIDDIR "$piddir" | ||
16856 | EOF | ||
16857 | |||
16858 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
16859 | if test "${enable_lastlog+set}" = set; then | ||
16860 | enableval="$enable_lastlog" | ||
16861 | |||
16862 | if test "x$enableval" = "xno" ; then | ||
16863 | cat >>confdefs.h <<\EOF | ||
16864 | #define DISABLE_LASTLOG 1 | ||
16865 | EOF | ||
16866 | |||
16867 | fi | ||
16868 | |||
16869 | fi; | ||
16870 | # Check whether --enable-utmp or --disable-utmp was given. | ||
16871 | if test "${enable_utmp+set}" = set; then | ||
16872 | enableval="$enable_utmp" | ||
16873 | |||
16874 | if test "x$enableval" = "xno" ; then | ||
16875 | cat >>confdefs.h <<\EOF | ||
16876 | #define DISABLE_UTMP 1 | ||
16877 | EOF | ||
16878 | |||
16879 | fi | ||
16880 | |||
16881 | fi; | ||
16882 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
16883 | if test "${enable_utmpx+set}" = set; then | ||
16884 | enableval="$enable_utmpx" | ||
16885 | |||
16886 | if test "x$enableval" = "xno" ; then | ||
16887 | cat >>confdefs.h <<\EOF | ||
16888 | #define DISABLE_UTMPX 1 | ||
16889 | EOF | ||
16890 | |||
16891 | fi | ||
16892 | |||
16893 | fi; | ||
16894 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
16895 | if test "${enable_wtmp+set}" = set; then | ||
16896 | enableval="$enable_wtmp" | ||
16897 | |||
16898 | if test "x$enableval" = "xno" ; then | ||
16899 | cat >>confdefs.h <<\EOF | ||
16900 | #define DISABLE_WTMP 1 | ||
16901 | EOF | ||
16902 | |||
16903 | fi | ||
16904 | |||
16905 | fi; | ||
16906 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
16907 | if test "${enable_wtmpx+set}" = set; then | ||
16908 | enableval="$enable_wtmpx" | ||
16909 | |||
16910 | if test "x$enableval" = "xno" ; then | ||
16911 | cat >>confdefs.h <<\EOF | ||
16912 | #define DISABLE_WTMPX 1 | ||
16913 | EOF | ||
16914 | |||
16915 | fi | ||
16916 | |||
16917 | fi; | ||
16918 | # Check whether --enable-libutil or --disable-libutil was given. | ||
16919 | if test "${enable_libutil+set}" = set; then | ||
16920 | enableval="$enable_libutil" | ||
16921 | |||
16922 | if test "x$enableval" = "xno" ; then | ||
16923 | cat >>confdefs.h <<\EOF | ||
16924 | #define DISABLE_LOGIN 1 | ||
16925 | EOF | ||
16926 | |||
16927 | fi | ||
16928 | |||
16929 | fi; | ||
16930 | # Check whether --enable-pututline or --disable-pututline was given. | ||
16931 | if test "${enable_pututline+set}" = set; then | ||
16932 | enableval="$enable_pututline" | ||
16933 | |||
16934 | if test "x$enableval" = "xno" ; then | ||
16935 | cat >>confdefs.h <<\EOF | ||
16936 | #define DISABLE_PUTUTLINE 1 | ||
16937 | EOF | ||
16938 | |||
16939 | fi | ||
16940 | |||
16941 | fi; | ||
16942 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
16943 | if test "${enable_pututxline+set}" = set; then | ||
16944 | enableval="$enable_pututxline" | ||
16945 | |||
16946 | if test "x$enableval" = "xno" ; then | ||
16947 | cat >>confdefs.h <<\EOF | ||
16948 | #define DISABLE_PUTUTXLINE 1 | ||
16949 | EOF | ||
16950 | |||
16951 | fi | ||
16952 | |||
16953 | fi; | ||
16954 | |||
16955 | # Check whether --with-lastlog or --without-lastlog was given. | ||
16956 | if test "${with_lastlog+set}" = set; then | ||
16957 | withval="$with_lastlog" | ||
16958 | |||
16959 | if test "x$withval" = "xno" ; then | ||
16960 | cat >>confdefs.h <<\EOF | ||
16961 | #define DISABLE_LASTLOG 1 | ||
16962 | EOF | ||
16963 | |||
16964 | else | ||
16965 | conf_lastlog_location=$withval | ||
16966 | fi | ||
16967 | |||
16968 | fi; | ||
16969 | |||
16970 | echo "$as_me:16970: checking if your system defines LASTLOG_FILE" >&5 | ||
16971 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
16972 | cat >conftest.$ac_ext <<_ACEOF | ||
16973 | #line 16973 "configure" | ||
16974 | #include "confdefs.h" | ||
16975 | |||
16976 | #include <sys/types.h> | ||
16977 | #include <utmp.h> | ||
16978 | #ifdef HAVE_LASTLOG_H | ||
16979 | # include <lastlog.h> | ||
16980 | #endif | ||
16981 | #ifdef HAVE_PATHS_H | ||
16982 | # include <paths.h> | ||
16983 | #endif | ||
16984 | #ifdef HAVE_LOGIN_H | ||
16985 | # include <login.h> | ||
16986 | #endif | ||
16987 | |||
16988 | int | ||
16989 | main () | ||
16990 | { | ||
16991 | char *lastlog = LASTLOG_FILE; | ||
16992 | ; | ||
16993 | return 0; | ||
16994 | } | ||
16995 | _ACEOF | ||
16996 | rm -f conftest.$ac_objext | ||
16997 | if { (eval echo "$as_me:16997: \"$ac_compile\"") >&5 | ||
16998 | (eval $ac_compile) 2>&5 | ||
16999 | ac_status=$? | ||
17000 | echo "$as_me:17000: \$? = $ac_status" >&5 | ||
17001 | (exit $ac_status); } && | ||
17002 | { ac_try='test -s conftest.$ac_objext' | ||
17003 | { (eval echo "$as_me:17003: \"$ac_try\"") >&5 | ||
17004 | (eval $ac_try) 2>&5 | ||
17005 | ac_status=$? | ||
17006 | echo "$as_me:17006: \$? = $ac_status" >&5 | ||
17007 | (exit $ac_status); }; }; then | ||
17008 | echo "$as_me:17008: result: yes" >&5 | ||
17009 | echo "${ECHO_T}yes" >&6 | ||
17010 | else | ||
17011 | echo "$as_me: failed program was:" >&5 | ||
17012 | cat conftest.$ac_ext >&5 | ||
17013 | |||
17014 | echo "$as_me:17014: result: no" >&5 | ||
17015 | echo "${ECHO_T}no" >&6 | ||
17016 | echo "$as_me:17016: checking if your system defines _PATH_LASTLOG" >&5 | ||
17017 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
17018 | cat >conftest.$ac_ext <<_ACEOF | ||
17019 | #line 17019 "configure" | ||
17020 | #include "confdefs.h" | ||
17021 | |||
17022 | #include <sys/types.h> | ||
17023 | #include <utmp.h> | ||
17024 | #ifdef HAVE_LASTLOG_H | ||
17025 | # include <lastlog.h> | ||
17026 | #endif | ||
17027 | #ifdef HAVE_PATHS_H | ||
17028 | # include <paths.h> | ||
17029 | #endif | ||
17030 | |||
17031 | int | ||
17032 | main () | ||
17033 | { | ||
17034 | char *lastlog = _PATH_LASTLOG; | ||
17035 | ; | ||
17036 | return 0; | ||
17037 | } | ||
17038 | _ACEOF | ||
17039 | rm -f conftest.$ac_objext | ||
17040 | if { (eval echo "$as_me:17040: \"$ac_compile\"") >&5 | ||
17041 | (eval $ac_compile) 2>&5 | ||
17042 | ac_status=$? | ||
17043 | echo "$as_me:17043: \$? = $ac_status" >&5 | ||
17044 | (exit $ac_status); } && | ||
17045 | { ac_try='test -s conftest.$ac_objext' | ||
17046 | { (eval echo "$as_me:17046: \"$ac_try\"") >&5 | ||
17047 | (eval $ac_try) 2>&5 | ||
17048 | ac_status=$? | ||
17049 | echo "$as_me:17049: \$? = $ac_status" >&5 | ||
17050 | (exit $ac_status); }; }; then | ||
17051 | echo "$as_me:17051: result: yes" >&5 | ||
17052 | echo "${ECHO_T}yes" >&6 | ||
17053 | else | ||
17054 | echo "$as_me: failed program was:" >&5 | ||
17055 | cat conftest.$ac_ext >&5 | ||
17056 | |||
17057 | echo "$as_me:17057: result: no" >&5 | ||
17058 | echo "${ECHO_T}no" >&6 | ||
17059 | system_lastlog_path=no | ||
17060 | |||
17061 | fi | ||
17062 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17063 | |||
17064 | fi | ||
17065 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17066 | |||
17067 | if test -z "$conf_lastlog_location"; then | ||
17068 | if test x"$system_lastlog_path" = x"no" ; then | ||
17069 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
17070 | if (test -d "$f" || test -f "$f") ; then | ||
17071 | conf_lastlog_location=$f | ||
17072 | fi | ||
17073 | done | ||
17074 | if test -z "$conf_lastlog_location"; then | ||
17075 | { echo "$as_me:17075: WARNING: ** Cannot find lastlog **" >&5 | ||
17076 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
17077 | fi | ||
17078 | fi | ||
17079 | fi | ||
17080 | |||
17081 | if test -n "$conf_lastlog_location"; then | ||
17082 | cat >>confdefs.h <<EOF | ||
17083 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
17084 | EOF | ||
17085 | |||
17086 | fi | ||
17087 | |||
17088 | echo "$as_me:17088: checking if your system defines UTMP_FILE" >&5 | ||
17089 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
17090 | cat >conftest.$ac_ext <<_ACEOF | ||
17091 | #line 17091 "configure" | ||
17092 | #include "confdefs.h" | ||
17093 | |||
17094 | #include <sys/types.h> | ||
17095 | #include <utmp.h> | ||
17096 | #ifdef HAVE_PATHS_H | ||
17097 | # include <paths.h> | ||
17098 | #endif | ||
17099 | |||
17100 | int | ||
17101 | main () | ||
17102 | { | ||
17103 | char *utmp = UTMP_FILE; | ||
17104 | ; | ||
17105 | return 0; | ||
17106 | } | ||
17107 | _ACEOF | ||
17108 | rm -f conftest.$ac_objext | ||
17109 | if { (eval echo "$as_me:17109: \"$ac_compile\"") >&5 | ||
17110 | (eval $ac_compile) 2>&5 | ||
17111 | ac_status=$? | ||
17112 | echo "$as_me:17112: \$? = $ac_status" >&5 | ||
17113 | (exit $ac_status); } && | ||
17114 | { ac_try='test -s conftest.$ac_objext' | ||
17115 | { (eval echo "$as_me:17115: \"$ac_try\"") >&5 | ||
17116 | (eval $ac_try) 2>&5 | ||
17117 | ac_status=$? | ||
17118 | echo "$as_me:17118: \$? = $ac_status" >&5 | ||
17119 | (exit $ac_status); }; }; then | ||
17120 | echo "$as_me:17120: result: yes" >&5 | ||
17121 | echo "${ECHO_T}yes" >&6 | ||
17122 | else | ||
17123 | echo "$as_me: failed program was:" >&5 | ||
17124 | cat conftest.$ac_ext >&5 | ||
17125 | echo "$as_me:17125: result: no" >&5 | ||
17126 | echo "${ECHO_T}no" >&6 | ||
17127 | system_utmp_path=no | ||
17128 | |||
17129 | fi | ||
17130 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17131 | if test -z "$conf_utmp_location"; then | ||
17132 | if test x"$system_utmp_path" = x"no" ; then | ||
17133 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
17134 | if test -f $f ; then | ||
17135 | conf_utmp_location=$f | ||
17136 | fi | ||
17137 | done | ||
17138 | if test -z "$conf_utmp_location"; then | ||
17139 | cat >>confdefs.h <<\EOF | ||
17140 | #define DISABLE_UTMP 1 | ||
17141 | EOF | ||
17142 | |||
17143 | fi | ||
17144 | fi | ||
17145 | fi | ||
17146 | if test -n "$conf_utmp_location"; then | ||
17147 | cat >>confdefs.h <<EOF | ||
17148 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
17149 | EOF | ||
17150 | |||
17151 | fi | ||
17152 | |||
17153 | echo "$as_me:17153: checking if your system defines WTMP_FILE" >&5 | ||
17154 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
17155 | cat >conftest.$ac_ext <<_ACEOF | ||
17156 | #line 17156 "configure" | ||
17157 | #include "confdefs.h" | ||
17158 | |||
17159 | #include <sys/types.h> | ||
17160 | #include <utmp.h> | ||
17161 | #ifdef HAVE_PATHS_H | ||
17162 | # include <paths.h> | ||
17163 | #endif | ||
17164 | |||
17165 | int | ||
17166 | main () | ||
17167 | { | ||
17168 | char *wtmp = WTMP_FILE; | ||
17169 | ; | ||
17170 | return 0; | ||
17171 | } | ||
17172 | _ACEOF | ||
17173 | rm -f conftest.$ac_objext | ||
17174 | if { (eval echo "$as_me:17174: \"$ac_compile\"") >&5 | ||
17175 | (eval $ac_compile) 2>&5 | ||
17176 | ac_status=$? | ||
17177 | echo "$as_me:17177: \$? = $ac_status" >&5 | ||
17178 | (exit $ac_status); } && | ||
17179 | { ac_try='test -s conftest.$ac_objext' | ||
17180 | { (eval echo "$as_me:17180: \"$ac_try\"") >&5 | ||
17181 | (eval $ac_try) 2>&5 | ||
17182 | ac_status=$? | ||
17183 | echo "$as_me:17183: \$? = $ac_status" >&5 | ||
17184 | (exit $ac_status); }; }; then | ||
17185 | echo "$as_me:17185: result: yes" >&5 | ||
17186 | echo "${ECHO_T}yes" >&6 | ||
17187 | else | ||
17188 | echo "$as_me: failed program was:" >&5 | ||
17189 | cat conftest.$ac_ext >&5 | ||
17190 | echo "$as_me:17190: result: no" >&5 | ||
17191 | echo "${ECHO_T}no" >&6 | ||
17192 | system_wtmp_path=no | ||
17193 | |||
17194 | fi | ||
17195 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17196 | if test -z "$conf_wtmp_location"; then | ||
17197 | if test x"$system_wtmp_path" = x"no" ; then | ||
17198 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
17199 | if test -f $f ; then | ||
17200 | conf_wtmp_location=$f | ||
17201 | fi | ||
17202 | done | ||
17203 | if test -z "$conf_wtmp_location"; then | ||
17204 | cat >>confdefs.h <<\EOF | ||
17205 | #define DISABLE_WTMP 1 | ||
17206 | EOF | ||
17207 | |||
17208 | fi | ||
17209 | fi | ||
17210 | fi | ||
17211 | if test -n "$conf_wtmp_location"; then | ||
17212 | cat >>confdefs.h <<EOF | ||
17213 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
17214 | EOF | ||
17215 | |||
17216 | fi | ||
17217 | |||
17218 | echo "$as_me:17218: checking if your system defines UTMPX_FILE" >&5 | ||
17219 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
17220 | cat >conftest.$ac_ext <<_ACEOF | ||
17221 | #line 17221 "configure" | ||
17222 | #include "confdefs.h" | ||
17223 | |||
17224 | #include <sys/types.h> | ||
17225 | #include <utmp.h> | ||
17226 | #ifdef HAVE_UTMPX_H | ||
17227 | #include <utmpx.h> | ||
17228 | #endif | ||
17229 | #ifdef HAVE_PATHS_H | ||
17230 | # include <paths.h> | ||
17231 | #endif | ||
17232 | |||
17233 | int | ||
17234 | main () | ||
17235 | { | ||
17236 | char *utmpx = UTMPX_FILE; | ||
17237 | ; | ||
17238 | return 0; | ||
17239 | } | ||
17240 | _ACEOF | ||
17241 | rm -f conftest.$ac_objext | ||
17242 | if { (eval echo "$as_me:17242: \"$ac_compile\"") >&5 | ||
17243 | (eval $ac_compile) 2>&5 | ||
17244 | ac_status=$? | ||
17245 | echo "$as_me:17245: \$? = $ac_status" >&5 | ||
17246 | (exit $ac_status); } && | ||
17247 | { ac_try='test -s conftest.$ac_objext' | ||
17248 | { (eval echo "$as_me:17248: \"$ac_try\"") >&5 | ||
17249 | (eval $ac_try) 2>&5 | ||
17250 | ac_status=$? | ||
17251 | echo "$as_me:17251: \$? = $ac_status" >&5 | ||
17252 | (exit $ac_status); }; }; then | ||
17253 | echo "$as_me:17253: result: yes" >&5 | ||
17254 | echo "${ECHO_T}yes" >&6 | ||
17255 | else | ||
17256 | echo "$as_me: failed program was:" >&5 | ||
17257 | cat conftest.$ac_ext >&5 | ||
17258 | echo "$as_me:17258: result: no" >&5 | ||
17259 | echo "${ECHO_T}no" >&6 | ||
17260 | system_utmpx_path=no | ||
17261 | |||
17262 | fi | ||
17263 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17264 | if test -z "$conf_utmpx_location"; then | ||
17265 | if test x"$system_utmpx_path" = x"no" ; then | ||
17266 | cat >>confdefs.h <<\EOF | ||
17267 | #define DISABLE_UTMPX 1 | ||
17268 | EOF | ||
17269 | |||
17270 | fi | ||
17271 | else | ||
17272 | cat >>confdefs.h <<EOF | ||
17273 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
17274 | EOF | ||
17275 | |||
17276 | fi | ||
17277 | |||
17278 | echo "$as_me:17278: checking if your system defines WTMPX_FILE" >&5 | ||
17279 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
17280 | cat >conftest.$ac_ext <<_ACEOF | ||
17281 | #line 17281 "configure" | ||
17282 | #include "confdefs.h" | ||
17283 | |||
17284 | #include <sys/types.h> | ||
17285 | #include <utmp.h> | ||
17286 | #ifdef HAVE_UTMPX_H | ||
17287 | #include <utmpx.h> | ||
17288 | #endif | ||
17289 | #ifdef HAVE_PATHS_H | ||
17290 | # include <paths.h> | ||
17291 | #endif | ||
17292 | |||
17293 | int | ||
17294 | main () | ||
17295 | { | ||
17296 | char *wtmpx = WTMPX_FILE; | ||
17297 | ; | ||
17298 | return 0; | ||
17299 | } | ||
17300 | _ACEOF | ||
17301 | rm -f conftest.$ac_objext | ||
17302 | if { (eval echo "$as_me:17302: \"$ac_compile\"") >&5 | ||
17303 | (eval $ac_compile) 2>&5 | ||
17304 | ac_status=$? | ||
17305 | echo "$as_me:17305: \$? = $ac_status" >&5 | ||
17306 | (exit $ac_status); } && | ||
17307 | { ac_try='test -s conftest.$ac_objext' | ||
17308 | { (eval echo "$as_me:17308: \"$ac_try\"") >&5 | ||
17309 | (eval $ac_try) 2>&5 | ||
17310 | ac_status=$? | ||
17311 | echo "$as_me:17311: \$? = $ac_status" >&5 | ||
17312 | (exit $ac_status); }; }; then | ||
17313 | echo "$as_me:17313: result: yes" >&5 | ||
17314 | echo "${ECHO_T}yes" >&6 | ||
17315 | else | ||
17316 | echo "$as_me: failed program was:" >&5 | ||
17317 | cat conftest.$ac_ext >&5 | ||
17318 | echo "$as_me:17318: result: no" >&5 | ||
17319 | echo "${ECHO_T}no" >&6 | ||
17320 | system_wtmpx_path=no | ||
17321 | |||
17322 | fi | ||
17323 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17324 | if test -z "$conf_wtmpx_location"; then | ||
17325 | if test x"$system_wtmpx_path" = x"no" ; then | ||
17326 | cat >>confdefs.h <<\EOF | ||
17327 | #define DISABLE_WTMPX 1 | ||
17328 | EOF | ||
17329 | |||
17330 | fi | ||
17331 | else | ||
17332 | cat >>confdefs.h <<EOF | ||
17333 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
17334 | EOF | ||
17335 | |||
17336 | fi | ||
17337 | |||
17338 | if test ! -z "$blibpath" ; then | ||
17339 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
17340 | { echo "$as_me:17340: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
17341 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
17342 | fi | ||
17343 | |||
17344 | if test "$PAM_MSG" = yes ; then | ||
17345 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
17346 | fi | ||
17347 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
17348 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
17349 | fi | ||
17350 | |||
17351 | ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds" | ||
17352 | |||
17353 | cat >confcache <<\_ACEOF | ||
17354 | # This file is a shell script that caches the results of configure | ||
17355 | # tests run on this system so they can be shared between configure | ||
17356 | # scripts and configure runs, see configure's option --config-cache. | ||
17357 | # It is not useful on other systems. If it contains results you don't | ||
17358 | # want to keep, you may remove or edit it. | ||
17359 | # | ||
17360 | # config.status only pays attention to the cache file if you give it | ||
17361 | # the --recheck option to rerun configure. | ||
17362 | # | ||
17363 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | ||
17364 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
17365 | # following values. | ||
17366 | |||
17367 | _ACEOF | ||
17368 | |||
17369 | # The following way of writing the cache mishandles newlines in values, | ||
17370 | # but we know of no workaround that is simple, portable, and efficient. | ||
17371 | # So, don't put newlines in cache variables' values. | ||
17372 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
17373 | # and sets the high bit in the cache file unless we assign to the vars. | ||
17374 | { | ||
17375 | (set) 2>&1 | | ||
17376 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
17377 | *ac_space=\ *) | ||
17378 | # `set' does not quote correctly, so add quotes (double-quote | ||
17379 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
17380 | sed -n \ | ||
17381 | "s/'/'\\\\''/g; | ||
17382 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
17383 | ;; | ||
17384 | *) | ||
17385 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
17386 | sed -n \ | ||
17387 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
17388 | ;; | ||
17389 | esac; | ||
17390 | } | | ||
17391 | sed ' | ||
17392 | t clear | ||
17393 | : clear | ||
17394 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
17395 | t end | ||
17396 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
17397 | : end' >>confcache | ||
17398 | if cmp -s $cache_file confcache; then :; else | ||
17399 | if test -w $cache_file; then | ||
17400 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
17401 | cat confcache >$cache_file | ||
17402 | else | ||
17403 | echo "not updating unwritable cache $cache_file" | ||
17404 | fi | ||
17405 | fi | ||
17406 | rm -f confcache | ||
17407 | |||
17408 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
17409 | # Let make expand exec_prefix. | ||
17410 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
17411 | |||
17412 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
17413 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
17414 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
17415 | # (actually we leave an empty line to preserve line numbers). | ||
17416 | if test "x$srcdir" = x.; then | ||
17417 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
17418 | s/:*\$(srcdir):*/:/; | ||
17419 | s/:*\${srcdir}:*/:/; | ||
17420 | s/:*@srcdir@:*/:/; | ||
17421 | s/^\([^=]*=[ ]*\):*/\1/; | ||
17422 | s/:*$//; | ||
17423 | s/^[^=]*=[ ]*$//; | ||
17424 | }' | ||
17425 | fi | ||
17426 | |||
17427 | DEFS=-DHAVE_CONFIG_H | ||
17428 | |||
17429 | : ${CONFIG_STATUS=./config.status} | ||
17430 | ac_clean_files_save=$ac_clean_files | ||
17431 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
17432 | { echo "$as_me:17432: creating $CONFIG_STATUS" >&5 | ||
17433 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
17434 | cat >$CONFIG_STATUS <<_ACEOF | ||
17435 | #! $SHELL | ||
17436 | # Generated automatically by configure. | ||
17437 | # Run this file to recreate the current configuration. | ||
17438 | # Compiler output produced by configure, useful for debugging | ||
17439 | # configure, is in config.log if it exists. | ||
17440 | |||
17441 | debug=false | ||
17442 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
17443 | ac_cs_invocation="\$0 \$@" | ||
17444 | |||
17445 | _ACEOF | ||
17446 | |||
17447 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17448 | # Be Bourne compatible | ||
17449 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
17450 | emulate sh | ||
17451 | NULLCMD=: | ||
17452 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
17453 | set -o posix | ||
17454 | fi | ||
17455 | |||
17456 | # Name of the executable. | ||
17457 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | ||
17458 | |||
17459 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
17460 | as_expr=expr | ||
17461 | else | ||
17462 | as_expr=false | ||
17463 | fi | ||
17464 | |||
17465 | rm -f conf$$ conf$$.exe conf$$.file | ||
17466 | echo >conf$$.file | ||
17467 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
17468 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
17469 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
17470 | if test -f conf$$.exe; then | ||
17471 | # Don't use ln at all; we don't have any links | ||
17472 | as_ln_s='cp -p' | ||
17473 | else | ||
17474 | as_ln_s='ln -s' | ||
17475 | fi | ||
17476 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
17477 | as_ln_s=ln | ||
17478 | else | ||
17479 | as_ln_s='cp -p' | ||
17480 | fi | ||
17481 | rm -f conf$$ conf$$.exe conf$$.file | ||
17482 | |||
17483 | as_executable_p="test -f" | ||
17484 | |||
17485 | # Support unset when possible. | ||
17486 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
17487 | as_unset=unset | ||
17488 | else | ||
17489 | as_unset=false | ||
17490 | fi | ||
17491 | |||
17492 | # NLS nuisances. | ||
17493 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | ||
17494 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | ||
17495 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | ||
17496 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | ||
17497 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | ||
17498 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | ||
17499 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | ||
17500 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | ||
17501 | |||
17502 | # IFS | ||
17503 | # We need space, tab and new line, in precisely that order. | ||
17504 | as_nl=' | ||
17505 | ' | ||
17506 | IFS=" $as_nl" | ||
17507 | |||
17508 | # CDPATH. | ||
17509 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | ||
17510 | |||
17511 | exec 6>&1 | ||
17512 | |||
17513 | _ACEOF | ||
17514 | |||
17515 | # Files that config.status was made for. | ||
17516 | if test -n "$ac_config_files"; then | ||
17517 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
17518 | fi | ||
17519 | |||
17520 | if test -n "$ac_config_headers"; then | ||
17521 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
17522 | fi | ||
17523 | |||
17524 | if test -n "$ac_config_links"; then | ||
17525 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
17526 | fi | ||
17527 | |||
17528 | if test -n "$ac_config_commands"; then | ||
17529 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
17530 | fi | ||
17531 | |||
17532 | cat >>$CONFIG_STATUS <<\EOF | ||
17533 | |||
17534 | ac_cs_usage="\ | ||
17535 | \`$as_me' instantiates files from templates according to the | ||
17536 | current configuration. | ||
17537 | |||
17538 | Usage: $0 [OPTIONS] [FILE]... | ||
17539 | |||
17540 | -h, --help print this help, then exit | ||
17541 | -V, --version print version number, then exit | ||
17542 | -d, --debug don't remove temporary files | ||
17543 | --recheck update $as_me by reconfiguring in the same conditions | ||
17544 | --file=FILE[:TEMPLATE] | ||
17545 | instantiate the configuration file FILE | ||
17546 | --header=FILE[:TEMPLATE] | ||
17547 | instantiate the configuration header FILE | ||
17548 | |||
17549 | Configuration files: | ||
17550 | $config_files | ||
17551 | |||
17552 | Configuration headers: | ||
17553 | $config_headers | ||
17554 | |||
17555 | Report bugs to <bug-autoconf@gnu.org>." | ||
17556 | EOF | ||
17557 | |||
17558 | cat >>$CONFIG_STATUS <<EOF | ||
17559 | ac_cs_version="\\ | ||
17560 | config.status | ||
17561 | configured by $0, generated by GNU Autoconf 2.52, | ||
17562 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
17563 | |||
17564 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
17565 | Free Software Foundation, Inc. | ||
17566 | This config.status script is free software; the Free Software Foundation | ||
17567 | gives unlimited permission to copy, distribute and modify it." | ||
17568 | srcdir=$srcdir | ||
17569 | INSTALL="$INSTALL" | ||
17570 | EOF | ||
17571 | |||
17572 | cat >>$CONFIG_STATUS <<\EOF | ||
17573 | # If no file are specified by the user, then we need to provide default | ||
17574 | # value. By we need to know if files were specified by the user. | ||
17575 | ac_need_defaults=: | ||
17576 | while test $# != 0 | ||
17577 | do | ||
17578 | case $1 in | ||
17579 | --*=*) | ||
17580 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
17581 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
17582 | shift | ||
17583 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | ||
17584 | shift | ||
17585 | ;; | ||
17586 | -*);; | ||
17587 | *) # This is not an option, so the user has probably given explicit | ||
17588 | # arguments. | ||
17589 | ac_need_defaults=false;; | ||
17590 | esac | ||
17591 | |||
17592 | case $1 in | ||
17593 | # Handling of the options. | ||
17594 | EOF | ||
17595 | cat >>$CONFIG_STATUS <<EOF | ||
17596 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
17597 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | ||
17598 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | ||
17599 | EOF | ||
17600 | cat >>$CONFIG_STATUS <<\EOF | ||
17601 | --version | --vers* | -V ) | ||
17602 | echo "$ac_cs_version"; exit 0 ;; | ||
17603 | --he | --h) | ||
17604 | # Conflict between --help and --header | ||
17605 | { { echo "$as_me:17605: error: ambiguous option: $1 | ||
17606 | Try \`$0 --help' for more information." >&5 | ||
17607 | echo "$as_me: error: ambiguous option: $1 | ||
17608 | Try \`$0 --help' for more information." >&2;} | ||
17609 | { (exit 1); exit 1; }; };; | ||
17610 | --help | --hel | -h ) | ||
17611 | echo "$ac_cs_usage"; exit 0 ;; | ||
17612 | --debug | --d* | -d ) | ||
17613 | debug=: ;; | ||
17614 | --file | --fil | --fi | --f ) | ||
17615 | shift | ||
17616 | CONFIG_FILES="$CONFIG_FILES $1" | ||
17617 | ac_need_defaults=false;; | ||
17618 | --header | --heade | --head | --hea ) | ||
17619 | shift | ||
17620 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | ||
17621 | ac_need_defaults=false;; | ||
17622 | |||
17623 | # This is an error. | ||
17624 | -*) { { echo "$as_me:17624: error: unrecognized option: $1 | ||
17625 | Try \`$0 --help' for more information." >&5 | ||
17626 | echo "$as_me: error: unrecognized option: $1 | ||
17627 | Try \`$0 --help' for more information." >&2;} | ||
17628 | { (exit 1); exit 1; }; } ;; | ||
17629 | |||
17630 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
17631 | |||
17632 | esac | ||
17633 | shift | ||
17634 | done | ||
17635 | |||
17636 | exec 5>>config.log | ||
17637 | cat >&5 << _ACEOF | ||
17638 | |||
17639 | ## ----------------------- ## | ||
17640 | ## Running config.status. ## | ||
17641 | ## ----------------------- ## | ||
17642 | |||
17643 | This file was extended by $as_me 2.52, executed with | ||
17644 | CONFIG_FILES = $CONFIG_FILES | ||
17645 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
17646 | CONFIG_LINKS = $CONFIG_LINKS | ||
17647 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
17648 | > $ac_cs_invocation | ||
17649 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
17650 | |||
17651 | _ACEOF | ||
17652 | EOF | ||
17653 | |||
17654 | cat >>$CONFIG_STATUS <<\EOF | ||
17655 | for ac_config_target in $ac_config_targets | ||
17656 | do | ||
17657 | case "$ac_config_target" in | ||
17658 | # Handling of arguments. | ||
17659 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
17660 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
17661 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
17662 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
17663 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
17664 | *) { { echo "$as_me:17664: error: invalid argument: $ac_config_target" >&5 | ||
17665 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
17666 | { (exit 1); exit 1; }; };; | ||
17667 | esac | ||
17668 | done | ||
17669 | |||
17670 | # If the user did not use the arguments to specify the items to instantiate, | ||
17671 | # then the envvar interface is used. Set only those that are not. | ||
17672 | # We use the long form for the default assignment because of an extremely | ||
17673 | # bizarre bug on SunOS 4.1.3. | ||
17674 | if $ac_need_defaults; then | ||
17675 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
17676 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
17677 | fi | ||
17678 | |||
17679 | # Create a temporary directory, and hook for its removal unless debugging. | ||
17680 | $debug || | ||
17681 | { | ||
17682 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
17683 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
17684 | } | ||
17685 | |||
17686 | # Create a (secure) tmp directory for tmp files. | ||
17687 | : ${TMPDIR=/tmp} | ||
17688 | { | ||
17689 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | ||
17690 | test -n "$tmp" && test -d "$tmp" | ||
17691 | } || | ||
17692 | { | ||
17693 | tmp=$TMPDIR/cs$$-$RANDOM | ||
17694 | (umask 077 && mkdir $tmp) | ||
17695 | } || | ||
17696 | { | ||
17697 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | ||
17698 | { (exit 1); exit 1; } | ||
17699 | } | ||
17700 | |||
17701 | EOF | ||
17702 | |||
17703 | cat >>$CONFIG_STATUS <<EOF | ||
17704 | |||
17705 | # | ||
17706 | # CONFIG_FILES section. | ||
17707 | # | ||
17708 | |||
17709 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
17710 | # This happens for instance when ./config.status config.h | ||
17711 | if test -n "\$CONFIG_FILES"; then | ||
17712 | # Protect against being on the right side of a sed subst in config.status. | ||
17713 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
17714 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
17715 | s,@SHELL@,$SHELL,;t t | ||
17716 | s,@exec_prefix@,$exec_prefix,;t t | ||
17717 | s,@prefix@,$prefix,;t t | ||
17718 | s,@program_transform_name@,$program_transform_name,;t t | ||
17719 | s,@bindir@,$bindir,;t t | ||
17720 | s,@sbindir@,$sbindir,;t t | ||
17721 | s,@libexecdir@,$libexecdir,;t t | ||
17722 | s,@datadir@,$datadir,;t t | ||
17723 | s,@sysconfdir@,$sysconfdir,;t t | ||
17724 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
17725 | s,@localstatedir@,$localstatedir,;t t | ||
17726 | s,@libdir@,$libdir,;t t | ||
17727 | s,@includedir@,$includedir,;t t | ||
17728 | s,@oldincludedir@,$oldincludedir,;t t | ||
17729 | s,@infodir@,$infodir,;t t | ||
17730 | s,@mandir@,$mandir,;t t | ||
17731 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
17732 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
17733 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
17734 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
17735 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
17736 | s,@build_alias@,$build_alias,;t t | ||
17737 | s,@host_alias@,$host_alias,;t t | ||
17738 | s,@target_alias@,$target_alias,;t t | ||
17739 | s,@ECHO_C@,$ECHO_C,;t t | ||
17740 | s,@ECHO_N@,$ECHO_N,;t t | ||
17741 | s,@ECHO_T@,$ECHO_T,;t t | ||
17742 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
17743 | s,@DEFS@,$DEFS,;t t | ||
17744 | s,@LIBS@,$LIBS,;t t | ||
17745 | s,@CC@,$CC,;t t | ||
17746 | s,@CFLAGS@,$CFLAGS,;t t | ||
17747 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
17748 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
17749 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
17750 | s,@EXEEXT@,$EXEEXT,;t t | ||
17751 | s,@OBJEXT@,$OBJEXT,;t t | ||
17752 | s,@build@,$build,;t t | ||
17753 | s,@build_cpu@,$build_cpu,;t t | ||
17754 | s,@build_vendor@,$build_vendor,;t t | ||
17755 | s,@build_os@,$build_os,;t t | ||
17756 | s,@host@,$host,;t t | ||
17757 | s,@host_cpu@,$host_cpu,;t t | ||
17758 | s,@host_vendor@,$host_vendor,;t t | ||
17759 | s,@host_os@,$host_os,;t t | ||
17760 | s,@AWK@,$AWK,;t t | ||
17761 | s,@CPP@,$CPP,;t t | ||
17762 | s,@RANLIB@,$RANLIB,;t t | ||
17763 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
17764 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
17765 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
17766 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
17767 | s,@AR@,$AR,;t t | ||
17768 | s,@PERL@,$PERL,;t t | ||
17769 | s,@SED@,$SED,;t t | ||
17770 | s,@ENT@,$ENT,;t t | ||
17771 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
17772 | s,@SH@,$SH,;t t | ||
17773 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
17774 | s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t | ||
17775 | s,@LD@,$LD,;t t | ||
17776 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
17777 | s,@LIBPAM@,$LIBPAM,;t t | ||
17778 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
17779 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
17780 | s,@PROG_LS@,$PROG_LS,;t t | ||
17781 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
17782 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
17783 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
17784 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
17785 | s,@PROG_PS@,$PROG_PS,;t t | ||
17786 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
17787 | s,@PROG_W@,$PROG_W,;t t | ||
17788 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
17789 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
17790 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
17791 | s,@PROG_DF@,$PROG_DF,;t t | ||
17792 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
17793 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
17794 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
17795 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
17796 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
17797 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
17798 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
17799 | s,@xauth_path@,$xauth_path,;t t | ||
17800 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
17801 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
17802 | s,@NROFF@,$NROFF,;t t | ||
17803 | s,@MANTYPE@,$MANTYPE,;t t | ||
17804 | s,@mansubdir@,$mansubdir,;t t | ||
17805 | s,@user_path@,$user_path,;t t | ||
17806 | s,@piddir@,$piddir,;t t | ||
17807 | CEOF | ||
17808 | |||
17809 | EOF | ||
17810 | |||
17811 | cat >>$CONFIG_STATUS <<\EOF | ||
17812 | # Split the substitutions into bite-sized pieces for seds with | ||
17813 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
17814 | ac_max_sed_lines=48 | ||
17815 | ac_sed_frag=1 # Number of current file. | ||
17816 | ac_beg=1 # First line for current file. | ||
17817 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
17818 | ac_more_lines=: | ||
17819 | ac_sed_cmds= | ||
17820 | while $ac_more_lines; do | ||
17821 | if test $ac_beg -gt 1; then | ||
17822 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17823 | else | ||
17824 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17825 | fi | ||
17826 | if test ! -s $tmp/subs.frag; then | ||
17827 | ac_more_lines=false | ||
17828 | else | ||
17829 | # The purpose of the label and of the branching condition is to | ||
17830 | # speed up the sed processing (if there are no `@' at all, there | ||
17831 | # is no need to browse any of the substitutions). | ||
17832 | # These are the two extra sed commands mentioned above. | ||
17833 | (echo ':t | ||
17834 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
17835 | if test -z "$ac_sed_cmds"; then | ||
17836 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17837 | else | ||
17838 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17839 | fi | ||
17840 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
17841 | ac_beg=$ac_end | ||
17842 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
17843 | fi | ||
17844 | done | ||
17845 | if test -z "$ac_sed_cmds"; then | ||
17846 | ac_sed_cmds=cat | ||
17847 | fi | ||
17848 | fi # test -n "$CONFIG_FILES" | ||
17849 | |||
17850 | EOF | ||
17851 | cat >>$CONFIG_STATUS <<\EOF | ||
17852 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
17853 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
17854 | case $ac_file in | ||
17855 | - | *:- | *:-:* ) # input from stdin | ||
17856 | cat >$tmp/stdin | ||
17857 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17858 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17859 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17860 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17861 | * ) ac_file_in=$ac_file.in ;; | ||
17862 | esac | ||
17863 | |||
17864 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
17865 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17866 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
17867 | X"$ac_file" : 'X\(//\)$' \| \ | ||
17868 | X"$ac_file" : 'X\(/\)' \| \ | ||
17869 | . : '\(.\)' 2>/dev/null || | ||
17870 | echo X"$ac_file" | | ||
17871 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
17872 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
17873 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
17874 | /^X\(\/\).*/{ s//\1/; q; } | ||
17875 | s/.*/./; q'` | ||
17876 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
17877 | { case "$ac_dir" in | ||
17878 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
17879 | *) as_incr_dir=.;; | ||
17880 | esac | ||
17881 | as_dummy="$ac_dir" | ||
17882 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
17883 | case $as_mkdir_dir in | ||
17884 | # Skip DOS drivespec | ||
17885 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
17886 | *) | ||
17887 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
17888 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | ||
17889 | ;; | ||
17890 | esac | ||
17891 | done; } | ||
17892 | |||
17893 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | ||
17894 | # A "../" for each directory in $ac_dir_suffix. | ||
17895 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | ||
17896 | else | ||
17897 | ac_dir_suffix= ac_dots= | ||
17898 | fi | ||
17899 | |||
17900 | case $srcdir in | ||
17901 | .) ac_srcdir=. | ||
17902 | if test -z "$ac_dots"; then | ||
17903 | ac_top_srcdir=. | ||
17904 | else | ||
17905 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | ||
17906 | fi ;; | ||
17907 | [\\/]* | ?:[\\/]* ) | ||
17908 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
17909 | ac_top_srcdir=$srcdir ;; | ||
17910 | *) # Relative path. | ||
17911 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix | ||
17912 | ac_top_srcdir=$ac_dots$srcdir ;; | ||
17913 | esac | ||
17914 | |||
17915 | case $INSTALL in | ||
17916 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
17917 | *) ac_INSTALL=$ac_dots$INSTALL ;; | ||
17918 | esac | ||
17919 | |||
17920 | if test x"$ac_file" != x-; then | ||
17921 | { echo "$as_me:17921: creating $ac_file" >&5 | ||
17922 | echo "$as_me: creating $ac_file" >&6;} | ||
17923 | rm -f "$ac_file" | ||
17924 | fi | ||
17925 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17926 | # use $as_me), people would be surprised to read: | ||
17927 | # /* config.h. Generated automatically by config.status. */ | ||
17928 | configure_input="Generated automatically from `echo $ac_file_in | | ||
17929 | sed 's,.*/,,'` by configure." | ||
17930 | |||
17931 | # First look for the input files in the build tree, otherwise in the | ||
17932 | # src tree. | ||
17933 | ac_file_inputs=`IFS=: | ||
17934 | for f in $ac_file_in; do | ||
17935 | case $f in | ||
17936 | -) echo $tmp/stdin ;; | ||
17937 | [\\/$]*) | ||
17938 | # Absolute (can't be DOS-style, as IFS=:) | ||
17939 | test -f "$f" || { { echo "$as_me:17939: error: cannot find input file: $f" >&5 | ||
17940 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17941 | { (exit 1); exit 1; }; } | ||
17942 | echo $f;; | ||
17943 | *) # Relative | ||
17944 | if test -f "$f"; then | ||
17945 | # Build tree | ||
17946 | echo $f | ||
17947 | elif test -f "$srcdir/$f"; then | ||
17948 | # Source tree | ||
17949 | echo $srcdir/$f | ||
17950 | else | ||
17951 | # /dev/null tree | ||
17952 | { { echo "$as_me:17952: error: cannot find input file: $f" >&5 | ||
17953 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17954 | { (exit 1); exit 1; }; } | ||
17955 | fi;; | ||
17956 | esac | ||
17957 | done` || { (exit 1); exit 1; } | ||
17958 | EOF | ||
17959 | cat >>$CONFIG_STATUS <<EOF | ||
17960 | sed "$ac_vpsub | ||
17961 | $extrasub | ||
17962 | EOF | ||
17963 | cat >>$CONFIG_STATUS <<\EOF | ||
17964 | :t | ||
17965 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
17966 | s,@configure_input@,$configure_input,;t t | ||
17967 | s,@srcdir@,$ac_srcdir,;t t | ||
17968 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
17969 | s,@INSTALL@,$ac_INSTALL,;t t | ||
17970 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
17971 | rm -f $tmp/stdin | ||
17972 | if test x"$ac_file" != x-; then | ||
17973 | mv $tmp/out $ac_file | ||
17974 | else | ||
17975 | cat $tmp/out | ||
17976 | rm -f $tmp/out | ||
17977 | fi | ||
17978 | |||
17979 | done | ||
17980 | EOF | ||
17981 | cat >>$CONFIG_STATUS <<\EOF | ||
17982 | |||
17983 | # | ||
17984 | # CONFIG_HEADER section. | ||
17985 | # | ||
17986 | |||
17987 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
17988 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
17989 | # | ||
17990 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
17991 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
17992 | ac_dB='[ ].*$,\1#\2' | ||
17993 | ac_dC=' ' | ||
17994 | ac_dD=',;t' | ||
17995 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
17996 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
17997 | ac_uB='$,\1#\2define\3' | ||
17998 | ac_uC=' ' | ||
17999 | ac_uD=',;t' | ||
18000 | |||
18001 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
18002 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
18003 | case $ac_file in | ||
18004 | - | *:- | *:-:* ) # input from stdin | ||
18005 | cat >$tmp/stdin | ||
18006 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
18007 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
18008 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
18009 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
18010 | * ) ac_file_in=$ac_file.in ;; | ||
18011 | esac | ||
18012 | |||
18013 | test x"$ac_file" != x- && { echo "$as_me:18013: creating $ac_file" >&5 | ||
18014 | echo "$as_me: creating $ac_file" >&6;} | ||
18015 | |||
18016 | # First look for the input files in the build tree, otherwise in the | ||
18017 | # src tree. | ||
18018 | ac_file_inputs=`IFS=: | ||
18019 | for f in $ac_file_in; do | ||
18020 | case $f in | ||
18021 | -) echo $tmp/stdin ;; | ||
18022 | [\\/$]*) | ||
18023 | # Absolute (can't be DOS-style, as IFS=:) | ||
18024 | test -f "$f" || { { echo "$as_me:18024: error: cannot find input file: $f" >&5 | ||
18025 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
18026 | { (exit 1); exit 1; }; } | ||
18027 | echo $f;; | ||
18028 | *) # Relative | ||
18029 | if test -f "$f"; then | ||
18030 | # Build tree | ||
18031 | echo $f | ||
18032 | elif test -f "$srcdir/$f"; then | ||
18033 | # Source tree | ||
18034 | echo $srcdir/$f | ||
18035 | else | ||
18036 | # /dev/null tree | ||
18037 | { { echo "$as_me:18037: error: cannot find input file: $f" >&5 | ||
18038 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
18039 | { (exit 1); exit 1; }; } | ||
18040 | fi;; | ||
18041 | esac | ||
18042 | done` || { (exit 1); exit 1; } | ||
18043 | # Remove the trailing spaces. | ||
18044 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
18045 | |||
18046 | EOF | ||
18047 | |||
18048 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
18049 | # `conftest.undefs', that substitutes the proper values into | ||
18050 | # config.h.in to produce config.h. The first handles `#define' | ||
18051 | # templates, and the second `#undef' templates. | ||
18052 | # And first: Protect against being on the right side of a sed subst in | ||
18053 | # config.status. Protect against being in an unquoted here document | ||
18054 | # in config.status. | ||
18055 | rm -f conftest.defines conftest.undefs | ||
18056 | # Using a here document instead of a string reduces the quoting nightmare. | ||
18057 | # Putting comments in sed scripts is not portable. | ||
18058 | # | ||
18059 | # `end' is used to avoid that the second main sed command (meant for | ||
18060 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
18061 | # See the Autoconf documentation for `clear'. | ||
18062 | cat >confdef2sed.sed <<\EOF | ||
18063 | s/[\\&,]/\\&/g | ||
18064 | s,[\\$`],\\&,g | ||
18065 | t clear | ||
18066 | : clear | ||
18067 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
18068 | t end | ||
18069 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
18070 | : end | ||
18071 | EOF | ||
18072 | # If some macros were called several times there might be several times | ||
18073 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
18074 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
18075 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
18076 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
18077 | rm -f confdef2sed.sed | ||
18078 | |||
18079 | # This sed command replaces #undef with comments. This is necessary, for | ||
18080 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
18081 | # on some systems where configure will not decide to define it. | ||
18082 | cat >>conftest.undefs <<\EOF | ||
18083 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
18084 | EOF | ||
18085 | |||
18086 | # Break up conftest.defines because some shells have a limit on the size | ||
18087 | # of here documents, and old seds have small limits too (100 cmds). | ||
18088 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
18089 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
18090 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
18091 | echo ' :' >>$CONFIG_STATUS | ||
18092 | rm -f conftest.tail | ||
18093 | while grep . conftest.defines >/dev/null | ||
18094 | do | ||
18095 | # Write a limited-size here document to $tmp/defines.sed. | ||
18096 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
18097 | # Speed up: don't consider the non `#define' lines. | ||
18098 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
18099 | # Work around the forget-to-reset-the-flag bug. | ||
18100 | echo 't clr' >>$CONFIG_STATUS | ||
18101 | echo ': clr' >>$CONFIG_STATUS | ||
18102 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
18103 | echo 'CEOF | ||
18104 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
18105 | rm -f $tmp/in | ||
18106 | mv $tmp/out $tmp/in | ||
18107 | ' >>$CONFIG_STATUS | ||
18108 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
18109 | rm -f conftest.defines | ||
18110 | mv conftest.tail conftest.defines | ||
18111 | done | ||
18112 | rm -f conftest.defines | ||
18113 | echo ' fi # egrep' >>$CONFIG_STATUS | ||
18114 | echo >>$CONFIG_STATUS | ||
18115 | |||
18116 | # Break up conftest.undefs because some shells have a limit on the size | ||
18117 | # of here documents, and old seds have small limits too (100 cmds). | ||
18118 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
18119 | rm -f conftest.tail | ||
18120 | while grep . conftest.undefs >/dev/null | ||
18121 | do | ||
18122 | # Write a limited-size here document to $tmp/undefs.sed. | ||
18123 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
18124 | # Speed up: don't consider the non `#undef' | ||
18125 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
18126 | # Work around the forget-to-reset-the-flag bug. | ||
18127 | echo 't clr' >>$CONFIG_STATUS | ||
18128 | echo ': clr' >>$CONFIG_STATUS | ||
18129 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
18130 | echo 'CEOF | ||
18131 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
18132 | rm -f $tmp/in | ||
18133 | mv $tmp/out $tmp/in | ||
18134 | ' >>$CONFIG_STATUS | ||
18135 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
18136 | rm -f conftest.undefs | ||
18137 | mv conftest.tail conftest.undefs | ||
18138 | done | ||
18139 | rm -f conftest.undefs | ||
18140 | |||
18141 | cat >>$CONFIG_STATUS <<\EOF | ||
18142 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
18143 | # use $as_me), people would be surprised to read: | ||
18144 | # /* config.h. Generated automatically by config.status. */ | ||
18145 | if test x"$ac_file" = x-; then | ||
18146 | echo "/* Generated automatically by configure. */" >$tmp/config.h | ||
18147 | else | ||
18148 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h | ||
18149 | fi | ||
18150 | cat $tmp/in >>$tmp/config.h | ||
18151 | rm -f $tmp/in | ||
18152 | if test x"$ac_file" != x-; then | ||
18153 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | ||
18154 | { echo "$as_me:18154: $ac_file is unchanged" >&5 | ||
18155 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
18156 | else | ||
18157 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
18158 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
18159 | X"$ac_file" : 'X\(//\)$' \| \ | ||
18160 | X"$ac_file" : 'X\(/\)' \| \ | ||
18161 | . : '\(.\)' 2>/dev/null || | ||
18162 | echo X"$ac_file" | | ||
18163 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
18164 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
18165 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
18166 | /^X\(\/\).*/{ s//\1/; q; } | ||
18167 | s/.*/./; q'` | ||
18168 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
18169 | { case "$ac_dir" in | ||
18170 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
18171 | *) as_incr_dir=.;; | ||
18172 | esac | ||
18173 | as_dummy="$ac_dir" | ||
18174 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
18175 | case $as_mkdir_dir in | ||
18176 | # Skip DOS drivespec | ||
18177 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
18178 | *) | ||
18179 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
18180 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | ||
18181 | ;; | ||
18182 | esac | ||
18183 | done; } | ||
18184 | |||
18185 | fi | ||
18186 | rm -f $ac_file | ||
18187 | mv $tmp/config.h $ac_file | ||
18188 | fi | ||
18189 | else | ||
18190 | cat $tmp/config.h | ||
18191 | rm -f $tmp/config.h | ||
18192 | fi | ||
18193 | done | ||
18194 | EOF | ||
18195 | |||
18196 | cat >>$CONFIG_STATUS <<\EOF | ||
18197 | |||
18198 | { (exit 0); exit 0; } | ||
18199 | EOF | ||
18200 | chmod +x $CONFIG_STATUS | ||
18201 | ac_clean_files=$ac_clean_files_save | ||
18202 | |||
18203 | # configure is writing to config.log, and then calls config.status. | ||
18204 | # config.status does its own redirection, appending to config.log. | ||
18205 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
18206 | # by configure, so config.status won't be able to write to it; its | ||
18207 | # output is simply discarded. So we exec the FD to /dev/null, | ||
18208 | # effectively closing config.log, so it can be properly (re)opened and | ||
18209 | # appended to by config.status. When coming back to configure, we | ||
18210 | # need to make the FD available again. | ||
18211 | if test "$no_create" != yes; then | ||
18212 | ac_cs_success=: | ||
18213 | exec 5>/dev/null | ||
18214 | $SHELL $CONFIG_STATUS || ac_cs_success=false | ||
18215 | exec 5>>config.log | ||
18216 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
18217 | # would make configure fail if this is the last instruction. | ||
18218 | $ac_cs_success || { (exit 1); exit 1; } | ||
18219 | fi | ||
18220 | |||
18221 | # Print summary of options | ||
18222 | |||
18223 | # Someone please show me a better way :) | ||
18224 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
18225 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
18226 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
18227 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
18228 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
18229 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
18230 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
18231 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
18232 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
18233 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
18234 | |||
18235 | echo "" | ||
18236 | echo "OpenSSH has been configured with the following options:" | ||
18237 | echo " User binaries: $B" | ||
18238 | echo " System binaries: $C" | ||
18239 | echo " Configuration files: $D" | ||
18240 | echo " Askpass program: $E" | ||
18241 | echo " Manual pages: $F" | ||
18242 | echo " PID file: $G" | ||
18243 | echo " Privilege separation chroot path: $H" | ||
18244 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
18245 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
18246 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
18247 | else | ||
18248 | echo " sshd default user PATH: $I" | ||
18249 | if test ! -z "$external_path_file"; then | ||
18250 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
18251 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
18252 | fi | ||
18253 | fi | ||
18254 | if test ! -z "$superuser_path" ; then | ||
18255 | echo " sshd superuser user PATH: $J" | ||
18256 | fi | ||
18257 | echo " Manpage format: $MANTYPE" | ||
18258 | echo " PAM support: $PAM_MSG" | ||
18259 | echo " KerberosV support: $KRB5_MSG" | ||
18260 | echo " Smartcard support: $SCARD_MSG" | ||
18261 | echo " S/KEY support: $SKEY_MSG" | ||
18262 | echo " TCP Wrappers support: $TCPW_MSG" | ||
18263 | echo " MD5 password support: $MD5_MSG" | ||
18264 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
18265 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
18266 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
18267 | echo " Random number source: $RAND_MSG" | ||
18268 | if test ! -z "$USE_RAND_HELPER" ; then | ||
18269 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
18270 | fi | ||
18271 | |||
18272 | echo "" | ||
18273 | |||
18274 | echo " Host: ${host}" | ||
18275 | echo " Compiler: ${CC}" | ||
18276 | echo " Compiler flags: ${CFLAGS}" | ||
18277 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
18278 | echo " Linker flags: ${LDFLAGS}" | ||
18279 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
18280 | |||
18281 | echo "" | ||
18282 | |||
18283 | if test "x$PAM_MSG" = "xyes" ; then | ||
18284 | echo "PAM is enabled. You may need to install a PAM control file " | ||
18285 | echo "for sshd, otherwise password authentication may fail. " | ||
18286 | echo "Example PAM control files can be found in the contrib/ " | ||
18287 | echo "subdirectory" | ||
18288 | echo "" | ||
18289 | fi | ||
18290 | |||
18291 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
18292 | echo "WARNING: you are using the builtin random number collection " | ||
18293 | echo "service. Please read WARNING.RNG and request that your OS " | ||
18294 | echo "vendor includes kernel-based random number collection in " | ||
18295 | echo "future versions of your OS." | ||
18296 | echo "" | ||
18297 | fi | ||
18298 | |||