diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17200 |
1 files changed, 17200 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..5c78dac53 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,17200 @@ | |||
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 | --with-osfsia Enable Digital Unix SIA | ||
686 | --with-cflags Specify additional flags to pass to compiler | ||
687 | --with-cppflags Specify additional flags to pass to preprocessor | ||
688 | --with-ldflags Specify additional flags to pass to linker | ||
689 | --with-libs Specify additional libraries to link with | ||
690 | --without-rpath Disable auto-added -R linker paths | ||
691 | --with-zlib=PATH Use zlib in PATH | ||
692 | --with-skey[=PATH] Enable S/Key support | ||
693 | (optionally in PATH) | ||
694 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support | ||
695 | (optionally in PATH) | ||
696 | --with-pam Enable PAM support | ||
697 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
698 | --with-rand-helper Use subprocess to gather strong randomness | ||
699 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
700 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
701 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
702 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
703 | --with-sectok Enable smartcard support using libsectok | ||
704 | --with-opensc=PFX Enable smartcard support using OpenSC | ||
705 | --with-dns Support for fetching keys from DNS (experimental) | ||
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 | if test -z "$LD" ; then | ||
2950 | LD=$CC | ||
2951 | fi | ||
2952 | |||
2953 | echo "$as_me:2953: checking for $CC option to accept ANSI C" >&5 | ||
2954 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
2955 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
2956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2957 | else | ||
2958 | ac_cv_prog_cc_stdc=no | ||
2959 | ac_save_CC=$CC | ||
2960 | cat >conftest.$ac_ext <<_ACEOF | ||
2961 | #line 2961 "configure" | ||
2962 | #include "confdefs.h" | ||
2963 | #include <stdarg.h> | ||
2964 | #include <stdio.h> | ||
2965 | #include <sys/types.h> | ||
2966 | #include <sys/stat.h> | ||
2967 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2968 | struct buf { int x; }; | ||
2969 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2970 | static char *e (p, i) | ||
2971 | char **p; | ||
2972 | int i; | ||
2973 | { | ||
2974 | return p[i]; | ||
2975 | } | ||
2976 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2977 | { | ||
2978 | char *s; | ||
2979 | va_list v; | ||
2980 | va_start (v,p); | ||
2981 | s = g (p, va_arg (v,int)); | ||
2982 | va_end (v); | ||
2983 | return s; | ||
2984 | } | ||
2985 | int test (int i, double x); | ||
2986 | struct s1 {int (*f) (int a);}; | ||
2987 | struct s2 {int (*f) (double a);}; | ||
2988 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2989 | int argc; | ||
2990 | char **argv; | ||
2991 | int | ||
2992 | main () | ||
2993 | { | ||
2994 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2995 | ; | ||
2996 | return 0; | ||
2997 | } | ||
2998 | _ACEOF | ||
2999 | # Don't try gcc -ansi; that turns off useful extensions and | ||
3000 | # breaks some systems' header files. | ||
3001 | # AIX -qlanglvl=ansi | ||
3002 | # Ultrix and OSF/1 -std1 | ||
3003 | # HP-UX 10.20 and later -Ae | ||
3004 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
3005 | # SVR4 -Xc -D__EXTENSIONS__ | ||
3006 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3007 | do | ||
3008 | CC="$ac_save_CC $ac_arg" | ||
3009 | rm -f conftest.$ac_objext | ||
3010 | if { (eval echo "$as_me:3010: \"$ac_compile\"") >&5 | ||
3011 | (eval $ac_compile) 2>&5 | ||
3012 | ac_status=$? | ||
3013 | echo "$as_me:3013: \$? = $ac_status" >&5 | ||
3014 | (exit $ac_status); } && | ||
3015 | { ac_try='test -s conftest.$ac_objext' | ||
3016 | { (eval echo "$as_me:3016: \"$ac_try\"") >&5 | ||
3017 | (eval $ac_try) 2>&5 | ||
3018 | ac_status=$? | ||
3019 | echo "$as_me:3019: \$? = $ac_status" >&5 | ||
3020 | (exit $ac_status); }; }; then | ||
3021 | ac_cv_prog_cc_stdc=$ac_arg | ||
3022 | break | ||
3023 | else | ||
3024 | echo "$as_me: failed program was:" >&5 | ||
3025 | cat conftest.$ac_ext >&5 | ||
3026 | fi | ||
3027 | rm -f conftest.$ac_objext | ||
3028 | done | ||
3029 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
3030 | CC=$ac_save_CC | ||
3031 | |||
3032 | fi | ||
3033 | |||
3034 | case "x$ac_cv_prog_cc_stdc" in | ||
3035 | x|xno) | ||
3036 | echo "$as_me:3036: result: none needed" >&5 | ||
3037 | echo "${ECHO_T}none needed" >&6 ;; | ||
3038 | *) | ||
3039 | echo "$as_me:3039: result: $ac_cv_prog_cc_stdc" >&5 | ||
3040 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
3041 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
3042 | esac | ||
3043 | |||
3044 | echo "$as_me:3044: checking for inline" >&5 | ||
3045 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
3046 | if test "${ac_cv_c_inline+set}" = set; then | ||
3047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3048 | else | ||
3049 | ac_cv_c_inline=no | ||
3050 | for ac_kw in inline __inline__ __inline; do | ||
3051 | cat >conftest.$ac_ext <<_ACEOF | ||
3052 | #line 3052 "configure" | ||
3053 | #include "confdefs.h" | ||
3054 | #ifndef __cplusplus | ||
3055 | static $ac_kw int static_foo () {return 0; } | ||
3056 | $ac_kw int foo () {return 0; } | ||
3057 | #endif | ||
3058 | |||
3059 | _ACEOF | ||
3060 | rm -f conftest.$ac_objext | ||
3061 | if { (eval echo "$as_me:3061: \"$ac_compile\"") >&5 | ||
3062 | (eval $ac_compile) 2>&5 | ||
3063 | ac_status=$? | ||
3064 | echo "$as_me:3064: \$? = $ac_status" >&5 | ||
3065 | (exit $ac_status); } && | ||
3066 | { ac_try='test -s conftest.$ac_objext' | ||
3067 | { (eval echo "$as_me:3067: \"$ac_try\"") >&5 | ||
3068 | (eval $ac_try) 2>&5 | ||
3069 | ac_status=$? | ||
3070 | echo "$as_me:3070: \$? = $ac_status" >&5 | ||
3071 | (exit $ac_status); }; }; then | ||
3072 | ac_cv_c_inline=$ac_kw; break | ||
3073 | else | ||
3074 | echo "$as_me: failed program was:" >&5 | ||
3075 | cat conftest.$ac_ext >&5 | ||
3076 | fi | ||
3077 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3078 | done | ||
3079 | |||
3080 | fi | ||
3081 | echo "$as_me:3081: result: $ac_cv_c_inline" >&5 | ||
3082 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
3083 | case $ac_cv_c_inline in | ||
3084 | inline | yes) ;; | ||
3085 | no) | ||
3086 | cat >>confdefs.h <<\EOF | ||
3087 | #define inline | ||
3088 | EOF | ||
3089 | ;; | ||
3090 | *) cat >>confdefs.h <<EOF | ||
3091 | #define inline $ac_cv_c_inline | ||
3092 | EOF | ||
3093 | ;; | ||
3094 | esac | ||
3095 | |||
3096 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
3097 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | ||
3098 | fi | ||
3099 | |||
3100 | # Check for some target-specific stuff | ||
3101 | case "$host" in | ||
3102 | *-*-aix*) | ||
3103 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3104 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
3105 | echo "$as_me:3105: checking how to specify blibpath for linker ($LD)" >&5 | ||
3106 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6 | ||
3107 | if (test -z "$blibpath"); then | ||
3108 | blibpath="/usr/lib:/lib:/usr/local/lib" | ||
3109 | fi | ||
3110 | saved_LDFLAGS="$LDFLAGS" | ||
3111 | for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do | ||
3112 | if (test -z "$blibflags"); then | ||
3113 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
3114 | cat >conftest.$ac_ext <<_ACEOF | ||
3115 | #line 3115 "configure" | ||
3116 | #include "confdefs.h" | ||
3117 | |||
3118 | int | ||
3119 | main () | ||
3120 | { | ||
3121 | |||
3122 | ; | ||
3123 | return 0; | ||
3124 | } | ||
3125 | _ACEOF | ||
3126 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3127 | if { (eval echo "$as_me:3127: \"$ac_link\"") >&5 | ||
3128 | (eval $ac_link) 2>&5 | ||
3129 | ac_status=$? | ||
3130 | echo "$as_me:3130: \$? = $ac_status" >&5 | ||
3131 | (exit $ac_status); } && | ||
3132 | { ac_try='test -s conftest$ac_exeext' | ||
3133 | { (eval echo "$as_me:3133: \"$ac_try\"") >&5 | ||
3134 | (eval $ac_try) 2>&5 | ||
3135 | ac_status=$? | ||
3136 | echo "$as_me:3136: \$? = $ac_status" >&5 | ||
3137 | (exit $ac_status); }; }; then | ||
3138 | blibflags=$tryflags | ||
3139 | else | ||
3140 | echo "$as_me: failed program was:" >&5 | ||
3141 | cat conftest.$ac_ext >&5 | ||
3142 | fi | ||
3143 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3144 | fi | ||
3145 | done | ||
3146 | if (test -z "$blibflags"); then | ||
3147 | echo "$as_me:3147: result: not found" >&5 | ||
3148 | echo "${ECHO_T}not found" >&6 | ||
3149 | { { echo "$as_me:3149: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
3150 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
3151 | { (exit 1); exit 1; }; } | ||
3152 | else | ||
3153 | echo "$as_me:3153: result: $blibflags" >&5 | ||
3154 | echo "${ECHO_T}$blibflags" >&6 | ||
3155 | fi | ||
3156 | LDFLAGS="$saved_LDFLAGS" | ||
3157 | echo "$as_me:3157: checking for authenticate" >&5 | ||
3158 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
3159 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
3160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3161 | else | ||
3162 | cat >conftest.$ac_ext <<_ACEOF | ||
3163 | #line 3163 "configure" | ||
3164 | #include "confdefs.h" | ||
3165 | /* System header to define __stub macros and hopefully few prototypes, | ||
3166 | which can conflict with char authenticate (); below. */ | ||
3167 | #include <assert.h> | ||
3168 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3169 | #ifdef __cplusplus | ||
3170 | extern "C" | ||
3171 | #endif | ||
3172 | /* We use char because int might match the return type of a gcc2 | ||
3173 | builtin and then its argument prototype would still apply. */ | ||
3174 | char authenticate (); | ||
3175 | char (*f) (); | ||
3176 | |||
3177 | int | ||
3178 | main () | ||
3179 | { | ||
3180 | /* The GNU C library defines this for functions which it implements | ||
3181 | to always fail with ENOSYS. Some functions are actually named | ||
3182 | something starting with __ and the normal name is an alias. */ | ||
3183 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
3184 | choke me | ||
3185 | #else | ||
3186 | f = authenticate; | ||
3187 | #endif | ||
3188 | |||
3189 | ; | ||
3190 | return 0; | ||
3191 | } | ||
3192 | _ACEOF | ||
3193 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3194 | if { (eval echo "$as_me:3194: \"$ac_link\"") >&5 | ||
3195 | (eval $ac_link) 2>&5 | ||
3196 | ac_status=$? | ||
3197 | echo "$as_me:3197: \$? = $ac_status" >&5 | ||
3198 | (exit $ac_status); } && | ||
3199 | { ac_try='test -s conftest$ac_exeext' | ||
3200 | { (eval echo "$as_me:3200: \"$ac_try\"") >&5 | ||
3201 | (eval $ac_try) 2>&5 | ||
3202 | ac_status=$? | ||
3203 | echo "$as_me:3203: \$? = $ac_status" >&5 | ||
3204 | (exit $ac_status); }; }; then | ||
3205 | ac_cv_func_authenticate=yes | ||
3206 | else | ||
3207 | echo "$as_me: failed program was:" >&5 | ||
3208 | cat conftest.$ac_ext >&5 | ||
3209 | ac_cv_func_authenticate=no | ||
3210 | fi | ||
3211 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3212 | fi | ||
3213 | echo "$as_me:3213: result: $ac_cv_func_authenticate" >&5 | ||
3214 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
3215 | if test $ac_cv_func_authenticate = yes; then | ||
3216 | cat >>confdefs.h <<\EOF | ||
3217 | #define WITH_AIXAUTHENTICATE 1 | ||
3218 | EOF | ||
3219 | |||
3220 | else | ||
3221 | echo "$as_me:3221: checking for authenticate in -ls" >&5 | ||
3222 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
3223 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
3224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3225 | else | ||
3226 | ac_check_lib_save_LIBS=$LIBS | ||
3227 | LIBS="-ls $LIBS" | ||
3228 | cat >conftest.$ac_ext <<_ACEOF | ||
3229 | #line 3229 "configure" | ||
3230 | #include "confdefs.h" | ||
3231 | |||
3232 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3233 | #ifdef __cplusplus | ||
3234 | extern "C" | ||
3235 | #endif | ||
3236 | /* We use char because int might match the return type of a gcc2 | ||
3237 | builtin and then its argument prototype would still apply. */ | ||
3238 | char authenticate (); | ||
3239 | int | ||
3240 | main () | ||
3241 | { | ||
3242 | authenticate (); | ||
3243 | ; | ||
3244 | return 0; | ||
3245 | } | ||
3246 | _ACEOF | ||
3247 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3248 | if { (eval echo "$as_me:3248: \"$ac_link\"") >&5 | ||
3249 | (eval $ac_link) 2>&5 | ||
3250 | ac_status=$? | ||
3251 | echo "$as_me:3251: \$? = $ac_status" >&5 | ||
3252 | (exit $ac_status); } && | ||
3253 | { ac_try='test -s conftest$ac_exeext' | ||
3254 | { (eval echo "$as_me:3254: \"$ac_try\"") >&5 | ||
3255 | (eval $ac_try) 2>&5 | ||
3256 | ac_status=$? | ||
3257 | echo "$as_me:3257: \$? = $ac_status" >&5 | ||
3258 | (exit $ac_status); }; }; then | ||
3259 | ac_cv_lib_s_authenticate=yes | ||
3260 | else | ||
3261 | echo "$as_me: failed program was:" >&5 | ||
3262 | cat conftest.$ac_ext >&5 | ||
3263 | ac_cv_lib_s_authenticate=no | ||
3264 | fi | ||
3265 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3266 | LIBS=$ac_check_lib_save_LIBS | ||
3267 | fi | ||
3268 | echo "$as_me:3268: result: $ac_cv_lib_s_authenticate" >&5 | ||
3269 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
3270 | if test $ac_cv_lib_s_authenticate = yes; then | ||
3271 | cat >>confdefs.h <<\EOF | ||
3272 | #define WITH_AIXAUTHENTICATE 1 | ||
3273 | EOF | ||
3274 | |||
3275 | LIBS="$LIBS -ls" | ||
3276 | |||
3277 | fi | ||
3278 | |||
3279 | fi | ||
3280 | |||
3281 | echo "$as_me:3281: checking whether loginfailed is declared" >&5 | ||
3282 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6 | ||
3283 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
3284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3285 | else | ||
3286 | cat >conftest.$ac_ext <<_ACEOF | ||
3287 | #line 3287 "configure" | ||
3288 | #include "confdefs.h" | ||
3289 | #include <usersec.h> | ||
3290 | |||
3291 | int | ||
3292 | main () | ||
3293 | { | ||
3294 | #ifndef loginfailed | ||
3295 | char *p = (char *) loginfailed; | ||
3296 | #endif | ||
3297 | |||
3298 | ; | ||
3299 | return 0; | ||
3300 | } | ||
3301 | _ACEOF | ||
3302 | rm -f conftest.$ac_objext | ||
3303 | if { (eval echo "$as_me:3303: \"$ac_compile\"") >&5 | ||
3304 | (eval $ac_compile) 2>&5 | ||
3305 | ac_status=$? | ||
3306 | echo "$as_me:3306: \$? = $ac_status" >&5 | ||
3307 | (exit $ac_status); } && | ||
3308 | { ac_try='test -s conftest.$ac_objext' | ||
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_have_decl_loginfailed=yes | ||
3315 | else | ||
3316 | echo "$as_me: failed program was:" >&5 | ||
3317 | cat conftest.$ac_ext >&5 | ||
3318 | ac_cv_have_decl_loginfailed=no | ||
3319 | fi | ||
3320 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3321 | fi | ||
3322 | echo "$as_me:3322: result: $ac_cv_have_decl_loginfailed" >&5 | ||
3323 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6 | ||
3324 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
3325 | echo "$as_me:3325: checking if loginfailed takes 4 arguments" >&5 | ||
3326 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6 | ||
3327 | cat >conftest.$ac_ext <<_ACEOF | ||
3328 | #line 3328 "configure" | ||
3329 | #include "confdefs.h" | ||
3330 | #include <usersec.h> | ||
3331 | int | ||
3332 | main () | ||
3333 | { | ||
3334 | (void)loginfailed("user","host","tty",0); | ||
3335 | ; | ||
3336 | return 0; | ||
3337 | } | ||
3338 | _ACEOF | ||
3339 | rm -f conftest.$ac_objext | ||
3340 | if { (eval echo "$as_me:3340: \"$ac_compile\"") >&5 | ||
3341 | (eval $ac_compile) 2>&5 | ||
3342 | ac_status=$? | ||
3343 | echo "$as_me:3343: \$? = $ac_status" >&5 | ||
3344 | (exit $ac_status); } && | ||
3345 | { ac_try='test -s conftest.$ac_objext' | ||
3346 | { (eval echo "$as_me:3346: \"$ac_try\"") >&5 | ||
3347 | (eval $ac_try) 2>&5 | ||
3348 | ac_status=$? | ||
3349 | echo "$as_me:3349: \$? = $ac_status" >&5 | ||
3350 | (exit $ac_status); }; }; then | ||
3351 | echo "$as_me:3351: result: yes" >&5 | ||
3352 | echo "${ECHO_T}yes" >&6 | ||
3353 | cat >>confdefs.h <<\EOF | ||
3354 | #define AIX_LOGINFAILED_4ARG 1 | ||
3355 | EOF | ||
3356 | |||
3357 | else | ||
3358 | echo "$as_me: failed program was:" >&5 | ||
3359 | cat conftest.$ac_ext >&5 | ||
3360 | echo "$as_me:3360: result: no" >&5 | ||
3361 | echo "${ECHO_T}no" >&6 | ||
3362 | |||
3363 | fi | ||
3364 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3365 | fi | ||
3366 | |||
3367 | for ac_func in setauthdb | ||
3368 | do | ||
3369 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
3370 | echo "$as_me:3370: checking for $ac_func" >&5 | ||
3371 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
3372 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
3373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3374 | else | ||
3375 | cat >conftest.$ac_ext <<_ACEOF | ||
3376 | #line 3376 "configure" | ||
3377 | #include "confdefs.h" | ||
3378 | /* System header to define __stub macros and hopefully few prototypes, | ||
3379 | which can conflict with char $ac_func (); below. */ | ||
3380 | #include <assert.h> | ||
3381 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3382 | #ifdef __cplusplus | ||
3383 | extern "C" | ||
3384 | #endif | ||
3385 | /* We use char because int might match the return type of a gcc2 | ||
3386 | builtin and then its argument prototype would still apply. */ | ||
3387 | char $ac_func (); | ||
3388 | char (*f) (); | ||
3389 | |||
3390 | int | ||
3391 | main () | ||
3392 | { | ||
3393 | /* The GNU C library defines this for functions which it implements | ||
3394 | to always fail with ENOSYS. Some functions are actually named | ||
3395 | something starting with __ and the normal name is an alias. */ | ||
3396 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
3397 | choke me | ||
3398 | #else | ||
3399 | f = $ac_func; | ||
3400 | #endif | ||
3401 | |||
3402 | ; | ||
3403 | return 0; | ||
3404 | } | ||
3405 | _ACEOF | ||
3406 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3407 | if { (eval echo "$as_me:3407: \"$ac_link\"") >&5 | ||
3408 | (eval $ac_link) 2>&5 | ||
3409 | ac_status=$? | ||
3410 | echo "$as_me:3410: \$? = $ac_status" >&5 | ||
3411 | (exit $ac_status); } && | ||
3412 | { ac_try='test -s conftest$ac_exeext' | ||
3413 | { (eval echo "$as_me:3413: \"$ac_try\"") >&5 | ||
3414 | (eval $ac_try) 2>&5 | ||
3415 | ac_status=$? | ||
3416 | echo "$as_me:3416: \$? = $ac_status" >&5 | ||
3417 | (exit $ac_status); }; }; then | ||
3418 | eval "$as_ac_var=yes" | ||
3419 | else | ||
3420 | echo "$as_me: failed program was:" >&5 | ||
3421 | cat conftest.$ac_ext >&5 | ||
3422 | eval "$as_ac_var=no" | ||
3423 | fi | ||
3424 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3425 | fi | ||
3426 | echo "$as_me:3426: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
3427 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
3428 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
3429 | cat >>confdefs.h <<EOF | ||
3430 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
3431 | EOF | ||
3432 | |||
3433 | fi | ||
3434 | done | ||
3435 | |||
3436 | cat >>confdefs.h <<\EOF | ||
3437 | #define BROKEN_GETADDRINFO 1 | ||
3438 | EOF | ||
3439 | |||
3440 | cat >>confdefs.h <<\EOF | ||
3441 | #define BROKEN_REALPATH 1 | ||
3442 | EOF | ||
3443 | |||
3444 | cat >>confdefs.h <<\EOF | ||
3445 | #define SETEUID_BREAKS_SETUID 1 | ||
3446 | EOF | ||
3447 | |||
3448 | cat >>confdefs.h <<\EOF | ||
3449 | #define BROKEN_SETREUID 1 | ||
3450 | EOF | ||
3451 | |||
3452 | cat >>confdefs.h <<\EOF | ||
3453 | #define BROKEN_SETREGID 1 | ||
3454 | EOF | ||
3455 | |||
3456 | cat >>confdefs.h <<\EOF | ||
3457 | #define DISABLE_LASTLOG 1 | ||
3458 | EOF | ||
3459 | |||
3460 | cat >>confdefs.h <<\EOF | ||
3461 | #define LOGIN_NEEDS_UTMPX 1 | ||
3462 | EOF | ||
3463 | |||
3464 | cat >>confdefs.h <<\EOF | ||
3465 | #define SPT_TYPE SPT_REUSEARGV | ||
3466 | EOF | ||
3467 | |||
3468 | ;; | ||
3469 | *-*-cygwin*) | ||
3470 | check_for_libcrypt_later=1 | ||
3471 | LIBS="$LIBS /usr/lib/textmode.o" | ||
3472 | cat >>confdefs.h <<\EOF | ||
3473 | #define HAVE_CYGWIN 1 | ||
3474 | EOF | ||
3475 | |||
3476 | cat >>confdefs.h <<\EOF | ||
3477 | #define USE_PIPES 1 | ||
3478 | EOF | ||
3479 | |||
3480 | cat >>confdefs.h <<\EOF | ||
3481 | #define DISABLE_SHADOW 1 | ||
3482 | EOF | ||
3483 | |||
3484 | cat >>confdefs.h <<\EOF | ||
3485 | #define IP_TOS_IS_BROKEN 1 | ||
3486 | EOF | ||
3487 | |||
3488 | cat >>confdefs.h <<\EOF | ||
3489 | #define NO_X11_UNIX_SOCKETS 1 | ||
3490 | EOF | ||
3491 | |||
3492 | cat >>confdefs.h <<\EOF | ||
3493 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
3494 | EOF | ||
3495 | |||
3496 | cat >>confdefs.h <<\EOF | ||
3497 | #define DISABLE_FD_PASSING 1 | ||
3498 | EOF | ||
3499 | |||
3500 | cat >>confdefs.h <<\EOF | ||
3501 | #define SETGROUPS_NOOP 1 | ||
3502 | EOF | ||
3503 | |||
3504 | ;; | ||
3505 | *-*-dgux*) | ||
3506 | cat >>confdefs.h <<\EOF | ||
3507 | #define IP_TOS_IS_BROKEN 1 | ||
3508 | EOF | ||
3509 | |||
3510 | ;; | ||
3511 | *-*-darwin*) | ||
3512 | echo "$as_me:3512: checking if we have working getaddrinfo" >&5 | ||
3513 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
3514 | if test "$cross_compiling" = yes; then | ||
3515 | echo "$as_me:3515: result: assume it is working" >&5 | ||
3516 | echo "${ECHO_T}assume it is working" >&6 | ||
3517 | else | ||
3518 | cat >conftest.$ac_ext <<_ACEOF | ||
3519 | #line 3519 "configure" | ||
3520 | #include "confdefs.h" | ||
3521 | #include <mach-o/dyld.h> | ||
3522 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
3523 | exit(0); | ||
3524 | else | ||
3525 | exit(1); | ||
3526 | } | ||
3527 | _ACEOF | ||
3528 | rm -f conftest$ac_exeext | ||
3529 | if { (eval echo "$as_me:3529: \"$ac_link\"") >&5 | ||
3530 | (eval $ac_link) 2>&5 | ||
3531 | ac_status=$? | ||
3532 | echo "$as_me:3532: \$? = $ac_status" >&5 | ||
3533 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3534 | { (eval echo "$as_me:3534: \"$ac_try\"") >&5 | ||
3535 | (eval $ac_try) 2>&5 | ||
3536 | ac_status=$? | ||
3537 | echo "$as_me:3537: \$? = $ac_status" >&5 | ||
3538 | (exit $ac_status); }; }; then | ||
3539 | echo "$as_me:3539: result: working" >&5 | ||
3540 | echo "${ECHO_T}working" >&6 | ||
3541 | else | ||
3542 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3543 | echo "$as_me: failed program was:" >&5 | ||
3544 | cat conftest.$ac_ext >&5 | ||
3545 | echo "$as_me:3545: result: buggy" >&5 | ||
3546 | echo "${ECHO_T}buggy" >&6 | ||
3547 | cat >>confdefs.h <<\EOF | ||
3548 | #define BROKEN_GETADDRINFO 1 | ||
3549 | EOF | ||
3550 | |||
3551 | fi | ||
3552 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3553 | fi | ||
3554 | cat >>confdefs.h <<\EOF | ||
3555 | #define SETEUID_BREAKS_SETUID 1 | ||
3556 | EOF | ||
3557 | |||
3558 | cat >>confdefs.h <<\EOF | ||
3559 | #define BROKEN_SETREUID 1 | ||
3560 | EOF | ||
3561 | |||
3562 | cat >>confdefs.h <<\EOF | ||
3563 | #define BROKEN_SETREGID 1 | ||
3564 | EOF | ||
3565 | |||
3566 | ;; | ||
3567 | *-*-hpux10.26) | ||
3568 | if test -z "$GCC"; then | ||
3569 | CFLAGS="$CFLAGS -Ae" | ||
3570 | fi | ||
3571 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3572 | IPADDR_IN_DISPLAY=yes | ||
3573 | cat >>confdefs.h <<\EOF | ||
3574 | #define HAVE_SECUREWARE 1 | ||
3575 | EOF | ||
3576 | |||
3577 | cat >>confdefs.h <<\EOF | ||
3578 | #define USE_PIPES 1 | ||
3579 | EOF | ||
3580 | |||
3581 | cat >>confdefs.h <<\EOF | ||
3582 | #define LOGIN_NO_ENDOPT 1 | ||
3583 | EOF | ||
3584 | |||
3585 | cat >>confdefs.h <<\EOF | ||
3586 | #define LOGIN_NEEDS_UTMPX 1 | ||
3587 | EOF | ||
3588 | |||
3589 | cat >>confdefs.h <<\EOF | ||
3590 | #define DISABLE_SHADOW 1 | ||
3591 | EOF | ||
3592 | |||
3593 | cat >>confdefs.h <<\EOF | ||
3594 | #define DISABLE_UTMP 1 | ||
3595 | EOF | ||
3596 | |||
3597 | cat >>confdefs.h <<\EOF | ||
3598 | #define LOCKED_PASSWD_STRING "*" | ||
3599 | EOF | ||
3600 | |||
3601 | cat >>confdefs.h <<\EOF | ||
3602 | #define SPT_TYPE SPT_PSTAT | ||
3603 | EOF | ||
3604 | |||
3605 | LIBS="$LIBS -lsec -lsecpw" | ||
3606 | |||
3607 | echo "$as_me:3607: checking for t_error in -lxnet" >&5 | ||
3608 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3609 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3611 | else | ||
3612 | ac_check_lib_save_LIBS=$LIBS | ||
3613 | LIBS="-lxnet $LIBS" | ||
3614 | cat >conftest.$ac_ext <<_ACEOF | ||
3615 | #line 3615 "configure" | ||
3616 | #include "confdefs.h" | ||
3617 | |||
3618 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3619 | #ifdef __cplusplus | ||
3620 | extern "C" | ||
3621 | #endif | ||
3622 | /* We use char because int might match the return type of a gcc2 | ||
3623 | builtin and then its argument prototype would still apply. */ | ||
3624 | char t_error (); | ||
3625 | int | ||
3626 | main () | ||
3627 | { | ||
3628 | t_error (); | ||
3629 | ; | ||
3630 | return 0; | ||
3631 | } | ||
3632 | _ACEOF | ||
3633 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3634 | if { (eval echo "$as_me:3634: \"$ac_link\"") >&5 | ||
3635 | (eval $ac_link) 2>&5 | ||
3636 | ac_status=$? | ||
3637 | echo "$as_me:3637: \$? = $ac_status" >&5 | ||
3638 | (exit $ac_status); } && | ||
3639 | { ac_try='test -s conftest$ac_exeext' | ||
3640 | { (eval echo "$as_me:3640: \"$ac_try\"") >&5 | ||
3641 | (eval $ac_try) 2>&5 | ||
3642 | ac_status=$? | ||
3643 | echo "$as_me:3643: \$? = $ac_status" >&5 | ||
3644 | (exit $ac_status); }; }; then | ||
3645 | ac_cv_lib_xnet_t_error=yes | ||
3646 | else | ||
3647 | echo "$as_me: failed program was:" >&5 | ||
3648 | cat conftest.$ac_ext >&5 | ||
3649 | ac_cv_lib_xnet_t_error=no | ||
3650 | fi | ||
3651 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3652 | LIBS=$ac_check_lib_save_LIBS | ||
3653 | fi | ||
3654 | echo "$as_me:3654: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3655 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3656 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3657 | cat >>confdefs.h <<EOF | ||
3658 | #define HAVE_LIBXNET 1 | ||
3659 | EOF | ||
3660 | |||
3661 | LIBS="-lxnet $LIBS" | ||
3662 | |||
3663 | else | ||
3664 | { { echo "$as_me:3664: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3665 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3666 | { (exit 1); exit 1; }; } | ||
3667 | fi | ||
3668 | |||
3669 | disable_ptmx_check=yes | ||
3670 | ;; | ||
3671 | *-*-hpux10*) | ||
3672 | if test -z "$GCC"; then | ||
3673 | CFLAGS="$CFLAGS -Ae" | ||
3674 | fi | ||
3675 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3676 | IPADDR_IN_DISPLAY=yes | ||
3677 | cat >>confdefs.h <<\EOF | ||
3678 | #define USE_PIPES 1 | ||
3679 | EOF | ||
3680 | |||
3681 | cat >>confdefs.h <<\EOF | ||
3682 | #define LOGIN_NO_ENDOPT 1 | ||
3683 | EOF | ||
3684 | |||
3685 | cat >>confdefs.h <<\EOF | ||
3686 | #define LOGIN_NEEDS_UTMPX 1 | ||
3687 | EOF | ||
3688 | |||
3689 | cat >>confdefs.h <<\EOF | ||
3690 | #define DISABLE_SHADOW 1 | ||
3691 | EOF | ||
3692 | |||
3693 | cat >>confdefs.h <<\EOF | ||
3694 | #define DISABLE_UTMP 1 | ||
3695 | EOF | ||
3696 | |||
3697 | cat >>confdefs.h <<\EOF | ||
3698 | #define LOCKED_PASSWD_STRING "*" | ||
3699 | EOF | ||
3700 | |||
3701 | cat >>confdefs.h <<\EOF | ||
3702 | #define SPT_TYPE SPT_PSTAT | ||
3703 | EOF | ||
3704 | |||
3705 | LIBS="$LIBS -lsec" | ||
3706 | |||
3707 | echo "$as_me:3707: checking for t_error in -lxnet" >&5 | ||
3708 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3709 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3711 | else | ||
3712 | ac_check_lib_save_LIBS=$LIBS | ||
3713 | LIBS="-lxnet $LIBS" | ||
3714 | cat >conftest.$ac_ext <<_ACEOF | ||
3715 | #line 3715 "configure" | ||
3716 | #include "confdefs.h" | ||
3717 | |||
3718 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3719 | #ifdef __cplusplus | ||
3720 | extern "C" | ||
3721 | #endif | ||
3722 | /* We use char because int might match the return type of a gcc2 | ||
3723 | builtin and then its argument prototype would still apply. */ | ||
3724 | char t_error (); | ||
3725 | int | ||
3726 | main () | ||
3727 | { | ||
3728 | t_error (); | ||
3729 | ; | ||
3730 | return 0; | ||
3731 | } | ||
3732 | _ACEOF | ||
3733 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3734 | if { (eval echo "$as_me:3734: \"$ac_link\"") >&5 | ||
3735 | (eval $ac_link) 2>&5 | ||
3736 | ac_status=$? | ||
3737 | echo "$as_me:3737: \$? = $ac_status" >&5 | ||
3738 | (exit $ac_status); } && | ||
3739 | { ac_try='test -s conftest$ac_exeext' | ||
3740 | { (eval echo "$as_me:3740: \"$ac_try\"") >&5 | ||
3741 | (eval $ac_try) 2>&5 | ||
3742 | ac_status=$? | ||
3743 | echo "$as_me:3743: \$? = $ac_status" >&5 | ||
3744 | (exit $ac_status); }; }; then | ||
3745 | ac_cv_lib_xnet_t_error=yes | ||
3746 | else | ||
3747 | echo "$as_me: failed program was:" >&5 | ||
3748 | cat conftest.$ac_ext >&5 | ||
3749 | ac_cv_lib_xnet_t_error=no | ||
3750 | fi | ||
3751 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3752 | LIBS=$ac_check_lib_save_LIBS | ||
3753 | fi | ||
3754 | echo "$as_me:3754: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3755 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3756 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3757 | cat >>confdefs.h <<EOF | ||
3758 | #define HAVE_LIBXNET 1 | ||
3759 | EOF | ||
3760 | |||
3761 | LIBS="-lxnet $LIBS" | ||
3762 | |||
3763 | else | ||
3764 | { { echo "$as_me:3764: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3765 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3766 | { (exit 1); exit 1; }; } | ||
3767 | fi | ||
3768 | |||
3769 | ;; | ||
3770 | *-*-hpux11*) | ||
3771 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3772 | IPADDR_IN_DISPLAY=yes | ||
3773 | cat >>confdefs.h <<\EOF | ||
3774 | #define PAM_SUN_CODEBASE 1 | ||
3775 | EOF | ||
3776 | |||
3777 | cat >>confdefs.h <<\EOF | ||
3778 | #define USE_PIPES 1 | ||
3779 | EOF | ||
3780 | |||
3781 | cat >>confdefs.h <<\EOF | ||
3782 | #define LOGIN_NO_ENDOPT 1 | ||
3783 | EOF | ||
3784 | |||
3785 | cat >>confdefs.h <<\EOF | ||
3786 | #define LOGIN_NEEDS_UTMPX 1 | ||
3787 | EOF | ||
3788 | |||
3789 | cat >>confdefs.h <<\EOF | ||
3790 | #define DISABLE_SHADOW 1 | ||
3791 | EOF | ||
3792 | |||
3793 | cat >>confdefs.h <<\EOF | ||
3794 | #define DISABLE_UTMP 1 | ||
3795 | EOF | ||
3796 | |||
3797 | cat >>confdefs.h <<\EOF | ||
3798 | #define LOCKED_PASSWD_STRING "*" | ||
3799 | EOF | ||
3800 | |||
3801 | cat >>confdefs.h <<\EOF | ||
3802 | #define SPT_TYPE SPT_PSTAT | ||
3803 | EOF | ||
3804 | |||
3805 | LIBS="$LIBS -lsec" | ||
3806 | |||
3807 | echo "$as_me:3807: checking for t_error in -lxnet" >&5 | ||
3808 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3809 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3811 | else | ||
3812 | ac_check_lib_save_LIBS=$LIBS | ||
3813 | LIBS="-lxnet $LIBS" | ||
3814 | cat >conftest.$ac_ext <<_ACEOF | ||
3815 | #line 3815 "configure" | ||
3816 | #include "confdefs.h" | ||
3817 | |||
3818 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3819 | #ifdef __cplusplus | ||
3820 | extern "C" | ||
3821 | #endif | ||
3822 | /* We use char because int might match the return type of a gcc2 | ||
3823 | builtin and then its argument prototype would still apply. */ | ||
3824 | char t_error (); | ||
3825 | int | ||
3826 | main () | ||
3827 | { | ||
3828 | t_error (); | ||
3829 | ; | ||
3830 | return 0; | ||
3831 | } | ||
3832 | _ACEOF | ||
3833 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3834 | if { (eval echo "$as_me:3834: \"$ac_link\"") >&5 | ||
3835 | (eval $ac_link) 2>&5 | ||
3836 | ac_status=$? | ||
3837 | echo "$as_me:3837: \$? = $ac_status" >&5 | ||
3838 | (exit $ac_status); } && | ||
3839 | { ac_try='test -s conftest$ac_exeext' | ||
3840 | { (eval echo "$as_me:3840: \"$ac_try\"") >&5 | ||
3841 | (eval $ac_try) 2>&5 | ||
3842 | ac_status=$? | ||
3843 | echo "$as_me:3843: \$? = $ac_status" >&5 | ||
3844 | (exit $ac_status); }; }; then | ||
3845 | ac_cv_lib_xnet_t_error=yes | ||
3846 | else | ||
3847 | echo "$as_me: failed program was:" >&5 | ||
3848 | cat conftest.$ac_ext >&5 | ||
3849 | ac_cv_lib_xnet_t_error=no | ||
3850 | fi | ||
3851 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3852 | LIBS=$ac_check_lib_save_LIBS | ||
3853 | fi | ||
3854 | echo "$as_me:3854: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3855 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3856 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3857 | cat >>confdefs.h <<EOF | ||
3858 | #define HAVE_LIBXNET 1 | ||
3859 | EOF | ||
3860 | |||
3861 | LIBS="-lxnet $LIBS" | ||
3862 | |||
3863 | else | ||
3864 | { { echo "$as_me:3864: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3865 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3866 | { (exit 1); exit 1; }; } | ||
3867 | fi | ||
3868 | |||
3869 | ;; | ||
3870 | *-*-irix5*) | ||
3871 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3872 | LDFLAGS="$LDFLAGS" | ||
3873 | PATH="$PATH:/usr/etc" | ||
3874 | cat >>confdefs.h <<\EOF | ||
3875 | #define BROKEN_INET_NTOA 1 | ||
3876 | EOF | ||
3877 | |||
3878 | cat >>confdefs.h <<\EOF | ||
3879 | #define WITH_ABBREV_NO_TTY 1 | ||
3880 | EOF | ||
3881 | |||
3882 | cat >>confdefs.h <<\EOF | ||
3883 | #define LOCKED_PASSWD_STRING "*LK*" | ||
3884 | EOF | ||
3885 | |||
3886 | ;; | ||
3887 | *-*-irix6*) | ||
3888 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3889 | LDFLAGS="$LDFLAGS" | ||
3890 | PATH="$PATH:/usr/etc" | ||
3891 | cat >>confdefs.h <<\EOF | ||
3892 | #define WITH_IRIX_ARRAY 1 | ||
3893 | EOF | ||
3894 | |||
3895 | cat >>confdefs.h <<\EOF | ||
3896 | #define WITH_IRIX_PROJECT 1 | ||
3897 | EOF | ||
3898 | |||
3899 | cat >>confdefs.h <<\EOF | ||
3900 | #define WITH_IRIX_AUDIT 1 | ||
3901 | EOF | ||
3902 | |||
3903 | echo "$as_me:3903: checking for jlimit_startjob" >&5 | ||
3904 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
3905 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
3906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3907 | else | ||
3908 | cat >conftest.$ac_ext <<_ACEOF | ||
3909 | #line 3909 "configure" | ||
3910 | #include "confdefs.h" | ||
3911 | /* System header to define __stub macros and hopefully few prototypes, | ||
3912 | which can conflict with char jlimit_startjob (); below. */ | ||
3913 | #include <assert.h> | ||
3914 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3915 | #ifdef __cplusplus | ||
3916 | extern "C" | ||
3917 | #endif | ||
3918 | /* We use char because int might match the return type of a gcc2 | ||
3919 | builtin and then its argument prototype would still apply. */ | ||
3920 | char jlimit_startjob (); | ||
3921 | char (*f) (); | ||
3922 | |||
3923 | int | ||
3924 | main () | ||
3925 | { | ||
3926 | /* The GNU C library defines this for functions which it implements | ||
3927 | to always fail with ENOSYS. Some functions are actually named | ||
3928 | something starting with __ and the normal name is an alias. */ | ||
3929 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
3930 | choke me | ||
3931 | #else | ||
3932 | f = jlimit_startjob; | ||
3933 | #endif | ||
3934 | |||
3935 | ; | ||
3936 | return 0; | ||
3937 | } | ||
3938 | _ACEOF | ||
3939 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3940 | if { (eval echo "$as_me:3940: \"$ac_link\"") >&5 | ||
3941 | (eval $ac_link) 2>&5 | ||
3942 | ac_status=$? | ||
3943 | echo "$as_me:3943: \$? = $ac_status" >&5 | ||
3944 | (exit $ac_status); } && | ||
3945 | { ac_try='test -s conftest$ac_exeext' | ||
3946 | { (eval echo "$as_me:3946: \"$ac_try\"") >&5 | ||
3947 | (eval $ac_try) 2>&5 | ||
3948 | ac_status=$? | ||
3949 | echo "$as_me:3949: \$? = $ac_status" >&5 | ||
3950 | (exit $ac_status); }; }; then | ||
3951 | ac_cv_func_jlimit_startjob=yes | ||
3952 | else | ||
3953 | echo "$as_me: failed program was:" >&5 | ||
3954 | cat conftest.$ac_ext >&5 | ||
3955 | ac_cv_func_jlimit_startjob=no | ||
3956 | fi | ||
3957 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3958 | fi | ||
3959 | echo "$as_me:3959: result: $ac_cv_func_jlimit_startjob" >&5 | ||
3960 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
3961 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
3962 | cat >>confdefs.h <<\EOF | ||
3963 | #define WITH_IRIX_JOBS 1 | ||
3964 | EOF | ||
3965 | |||
3966 | fi | ||
3967 | |||
3968 | cat >>confdefs.h <<\EOF | ||
3969 | #define BROKEN_INET_NTOA 1 | ||
3970 | EOF | ||
3971 | |||
3972 | cat >>confdefs.h <<\EOF | ||
3973 | #define SETEUID_BREAKS_SETUID 1 | ||
3974 | EOF | ||
3975 | |||
3976 | cat >>confdefs.h <<\EOF | ||
3977 | #define BROKEN_SETREUID 1 | ||
3978 | EOF | ||
3979 | |||
3980 | cat >>confdefs.h <<\EOF | ||
3981 | #define BROKEN_SETREGID 1 | ||
3982 | EOF | ||
3983 | |||
3984 | cat >>confdefs.h <<\EOF | ||
3985 | #define WITH_ABBREV_NO_TTY 1 | ||
3986 | EOF | ||
3987 | |||
3988 | cat >>confdefs.h <<\EOF | ||
3989 | #define LOCKED_PASSWD_STRING "*LK*" | ||
3990 | EOF | ||
3991 | |||
3992 | ;; | ||
3993 | *-*-linux*) | ||
3994 | no_dev_ptmx=1 | ||
3995 | check_for_libcrypt_later=1 | ||
3996 | check_for_openpty_ctty_bug=1 | ||
3997 | cat >>confdefs.h <<\EOF | ||
3998 | #define DONT_TRY_OTHER_AF 1 | ||
3999 | EOF | ||
4000 | |||
4001 | cat >>confdefs.h <<\EOF | ||
4002 | #define PAM_TTY_KLUDGE 1 | ||
4003 | EOF | ||
4004 | |||
4005 | cat >>confdefs.h <<\EOF | ||
4006 | #define LOCKED_PASSWD_PREFIX "!!" | ||
4007 | EOF | ||
4008 | |||
4009 | cat >>confdefs.h <<\EOF | ||
4010 | #define SPT_TYPE SPT_REUSEARGV | ||
4011 | EOF | ||
4012 | |||
4013 | inet6_default_4in6=yes | ||
4014 | case `uname -r` in | ||
4015 | 1.*|2.0.*) | ||
4016 | cat >>confdefs.h <<\EOF | ||
4017 | #define BROKEN_CMSG_TYPE 1 | ||
4018 | EOF | ||
4019 | |||
4020 | ;; | ||
4021 | esac | ||
4022 | ;; | ||
4023 | mips-sony-bsd|mips-sony-newsos4) | ||
4024 | cat >>confdefs.h <<\EOF | ||
4025 | #define HAVE_NEWS4 1 | ||
4026 | EOF | ||
4027 | |||
4028 | SONY=1 | ||
4029 | ;; | ||
4030 | *-*-netbsd*) | ||
4031 | check_for_libcrypt_before=1 | ||
4032 | need_dash_r=1 | ||
4033 | ;; | ||
4034 | *-*-freebsd*) | ||
4035 | check_for_libcrypt_later=1 | ||
4036 | ;; | ||
4037 | *-*-bsdi*) | ||
4038 | cat >>confdefs.h <<\EOF | ||
4039 | #define SETEUID_BREAKS_SETUID 1 | ||
4040 | EOF | ||
4041 | |||
4042 | cat >>confdefs.h <<\EOF | ||
4043 | #define BROKEN_SETREUID 1 | ||
4044 | EOF | ||
4045 | |||
4046 | cat >>confdefs.h <<\EOF | ||
4047 | #define BROKEN_SETREGID 1 | ||
4048 | EOF | ||
4049 | |||
4050 | ;; | ||
4051 | *-next-*) | ||
4052 | conf_lastlog_location="/usr/adm/lastlog" | ||
4053 | conf_utmp_location=/etc/utmp | ||
4054 | conf_wtmp_location=/usr/adm/wtmp | ||
4055 | MAIL=/usr/spool/mail | ||
4056 | cat >>confdefs.h <<\EOF | ||
4057 | #define HAVE_NEXT 1 | ||
4058 | EOF | ||
4059 | |||
4060 | cat >>confdefs.h <<\EOF | ||
4061 | #define BROKEN_REALPATH 1 | ||
4062 | EOF | ||
4063 | |||
4064 | cat >>confdefs.h <<\EOF | ||
4065 | #define USE_PIPES 1 | ||
4066 | EOF | ||
4067 | |||
4068 | cat >>confdefs.h <<\EOF | ||
4069 | #define BROKEN_SAVED_UIDS 1 | ||
4070 | EOF | ||
4071 | |||
4072 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4073 | CFLAGS="$CFLAGS" | ||
4074 | ;; | ||
4075 | *-*-solaris*) | ||
4076 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4077 | LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" | ||
4078 | need_dash_r=1 | ||
4079 | cat >>confdefs.h <<\EOF | ||
4080 | #define PAM_SUN_CODEBASE 1 | ||
4081 | EOF | ||
4082 | |||
4083 | cat >>confdefs.h <<\EOF | ||
4084 | #define LOGIN_NEEDS_UTMPX 1 | ||
4085 | EOF | ||
4086 | |||
4087 | cat >>confdefs.h <<\EOF | ||
4088 | #define LOGIN_NEEDS_TERM 1 | ||
4089 | EOF | ||
4090 | |||
4091 | cat >>confdefs.h <<\EOF | ||
4092 | #define PAM_TTY_KLUDGE 1 | ||
4093 | EOF | ||
4094 | |||
4095 | cat >>confdefs.h <<\EOF | ||
4096 | #define LOCKED_PASSWD_STRING "*LK*" | ||
4097 | EOF | ||
4098 | |||
4099 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
4100 | cat >>confdefs.h <<\EOF | ||
4101 | #define SSHD_ACQUIRES_CTTY 1 | ||
4102 | EOF | ||
4103 | |||
4104 | external_path_file=/etc/default/login | ||
4105 | # hardwire lastlog location (can't detect it on some versions) | ||
4106 | conf_lastlog_location="/var/adm/lastlog" | ||
4107 | echo "$as_me:4107: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
4108 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
4109 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
4110 | if test "$sol2ver" -ge 8; then | ||
4111 | echo "$as_me:4111: result: yes" >&5 | ||
4112 | echo "${ECHO_T}yes" >&6 | ||
4113 | cat >>confdefs.h <<\EOF | ||
4114 | #define DISABLE_UTMP 1 | ||
4115 | EOF | ||
4116 | |||
4117 | cat >>confdefs.h <<\EOF | ||
4118 | #define DISABLE_WTMP 1 | ||
4119 | EOF | ||
4120 | |||
4121 | else | ||
4122 | echo "$as_me:4122: result: no" >&5 | ||
4123 | echo "${ECHO_T}no" >&6 | ||
4124 | fi | ||
4125 | ;; | ||
4126 | *-*-sunos4*) | ||
4127 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
4128 | |||
4129 | for ac_func in getpwanam | ||
4130 | do | ||
4131 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4132 | echo "$as_me:4132: checking for $ac_func" >&5 | ||
4133 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4134 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4136 | else | ||
4137 | cat >conftest.$ac_ext <<_ACEOF | ||
4138 | #line 4138 "configure" | ||
4139 | #include "confdefs.h" | ||
4140 | /* System header to define __stub macros and hopefully few prototypes, | ||
4141 | which can conflict with char $ac_func (); below. */ | ||
4142 | #include <assert.h> | ||
4143 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4144 | #ifdef __cplusplus | ||
4145 | extern "C" | ||
4146 | #endif | ||
4147 | /* We use char because int might match the return type of a gcc2 | ||
4148 | builtin and then its argument prototype would still apply. */ | ||
4149 | char $ac_func (); | ||
4150 | char (*f) (); | ||
4151 | |||
4152 | int | ||
4153 | main () | ||
4154 | { | ||
4155 | /* The GNU C library defines this for functions which it implements | ||
4156 | to always fail with ENOSYS. Some functions are actually named | ||
4157 | something starting with __ and the normal name is an alias. */ | ||
4158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4159 | choke me | ||
4160 | #else | ||
4161 | f = $ac_func; | ||
4162 | #endif | ||
4163 | |||
4164 | ; | ||
4165 | return 0; | ||
4166 | } | ||
4167 | _ACEOF | ||
4168 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4169 | if { (eval echo "$as_me:4169: \"$ac_link\"") >&5 | ||
4170 | (eval $ac_link) 2>&5 | ||
4171 | ac_status=$? | ||
4172 | echo "$as_me:4172: \$? = $ac_status" >&5 | ||
4173 | (exit $ac_status); } && | ||
4174 | { ac_try='test -s conftest$ac_exeext' | ||
4175 | { (eval echo "$as_me:4175: \"$ac_try\"") >&5 | ||
4176 | (eval $ac_try) 2>&5 | ||
4177 | ac_status=$? | ||
4178 | echo "$as_me:4178: \$? = $ac_status" >&5 | ||
4179 | (exit $ac_status); }; }; then | ||
4180 | eval "$as_ac_var=yes" | ||
4181 | else | ||
4182 | echo "$as_me: failed program was:" >&5 | ||
4183 | cat conftest.$ac_ext >&5 | ||
4184 | eval "$as_ac_var=no" | ||
4185 | fi | ||
4186 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4187 | fi | ||
4188 | echo "$as_me:4188: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4189 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4190 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4191 | cat >>confdefs.h <<EOF | ||
4192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4193 | EOF | ||
4194 | |||
4195 | fi | ||
4196 | done | ||
4197 | |||
4198 | cat >>confdefs.h <<\EOF | ||
4199 | #define PAM_SUN_CODEBASE 1 | ||
4200 | EOF | ||
4201 | |||
4202 | conf_utmp_location=/etc/utmp | ||
4203 | conf_wtmp_location=/var/adm/wtmp | ||
4204 | conf_lastlog_location=/var/adm/lastlog | ||
4205 | cat >>confdefs.h <<\EOF | ||
4206 | #define USE_PIPES 1 | ||
4207 | EOF | ||
4208 | |||
4209 | ;; | ||
4210 | *-ncr-sysv*) | ||
4211 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4212 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4213 | LIBS="$LIBS -lc89" | ||
4214 | cat >>confdefs.h <<\EOF | ||
4215 | #define USE_PIPES 1 | ||
4216 | EOF | ||
4217 | |||
4218 | cat >>confdefs.h <<\EOF | ||
4219 | #define SSHD_ACQUIRES_CTTY 1 | ||
4220 | EOF | ||
4221 | |||
4222 | cat >>confdefs.h <<\EOF | ||
4223 | #define SETEUID_BREAKS_SETUID 1 | ||
4224 | EOF | ||
4225 | |||
4226 | cat >>confdefs.h <<\EOF | ||
4227 | #define BROKEN_SETREUID 1 | ||
4228 | EOF | ||
4229 | |||
4230 | cat >>confdefs.h <<\EOF | ||
4231 | #define BROKEN_SETREGID 1 | ||
4232 | EOF | ||
4233 | |||
4234 | ;; | ||
4235 | *-sni-sysv*) | ||
4236 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4237 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
4238 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4239 | IPADDR_IN_DISPLAY=yes | ||
4240 | cat >>confdefs.h <<\EOF | ||
4241 | #define USE_PIPES 1 | ||
4242 | EOF | ||
4243 | |||
4244 | cat >>confdefs.h <<\EOF | ||
4245 | #define IP_TOS_IS_BROKEN 1 | ||
4246 | EOF | ||
4247 | |||
4248 | cat >>confdefs.h <<\EOF | ||
4249 | #define SSHD_ACQUIRES_CTTY 1 | ||
4250 | EOF | ||
4251 | |||
4252 | external_path_file=/etc/default/login | ||
4253 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
4254 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
4255 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
4256 | ;; | ||
4257 | *-*-sysv4.2*) | ||
4258 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4259 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4260 | cat >>confdefs.h <<\EOF | ||
4261 | #define USE_PIPES 1 | ||
4262 | EOF | ||
4263 | |||
4264 | cat >>confdefs.h <<\EOF | ||
4265 | #define SETEUID_BREAKS_SETUID 1 | ||
4266 | EOF | ||
4267 | |||
4268 | cat >>confdefs.h <<\EOF | ||
4269 | #define BROKEN_SETREUID 1 | ||
4270 | EOF | ||
4271 | |||
4272 | cat >>confdefs.h <<\EOF | ||
4273 | #define BROKEN_SETREGID 1 | ||
4274 | EOF | ||
4275 | |||
4276 | ;; | ||
4277 | *-*-sysv5*) | ||
4278 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4279 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4280 | cat >>confdefs.h <<\EOF | ||
4281 | #define USE_PIPES 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 | *-*-sysv*) | ||
4298 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4299 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4300 | ;; | ||
4301 | *-*-sco3.2v4*) | ||
4302 | CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include" | ||
4303 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4304 | LIBS="$LIBS -los -lprot -lx -ltinfo -lm" | ||
4305 | RANLIB=true | ||
4306 | no_dev_ptmx=1 | ||
4307 | cat >>confdefs.h <<\EOF | ||
4308 | #define BROKEN_SYS_TERMIO_H 1 | ||
4309 | EOF | ||
4310 | |||
4311 | cat >>confdefs.h <<\EOF | ||
4312 | #define USE_PIPES 1 | ||
4313 | EOF | ||
4314 | |||
4315 | cat >>confdefs.h <<\EOF | ||
4316 | #define HAVE_SECUREWARE 1 | ||
4317 | EOF | ||
4318 | |||
4319 | cat >>confdefs.h <<\EOF | ||
4320 | #define DISABLE_SHADOW 1 | ||
4321 | EOF | ||
4322 | |||
4323 | cat >>confdefs.h <<\EOF | ||
4324 | #define BROKEN_SAVED_UIDS 1 | ||
4325 | EOF | ||
4326 | |||
4327 | cat >>confdefs.h <<\EOF | ||
4328 | #define WITH_ABBREV_NO_TTY 1 | ||
4329 | EOF | ||
4330 | |||
4331 | for ac_func in getluid setluid | ||
4332 | do | ||
4333 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4334 | echo "$as_me:4334: checking for $ac_func" >&5 | ||
4335 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4336 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4338 | else | ||
4339 | cat >conftest.$ac_ext <<_ACEOF | ||
4340 | #line 4340 "configure" | ||
4341 | #include "confdefs.h" | ||
4342 | /* System header to define __stub macros and hopefully few prototypes, | ||
4343 | which can conflict with char $ac_func (); below. */ | ||
4344 | #include <assert.h> | ||
4345 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4346 | #ifdef __cplusplus | ||
4347 | extern "C" | ||
4348 | #endif | ||
4349 | /* We use char because int might match the return type of a gcc2 | ||
4350 | builtin and then its argument prototype would still apply. */ | ||
4351 | char $ac_func (); | ||
4352 | char (*f) (); | ||
4353 | |||
4354 | int | ||
4355 | main () | ||
4356 | { | ||
4357 | /* The GNU C library defines this for functions which it implements | ||
4358 | to always fail with ENOSYS. Some functions are actually named | ||
4359 | something starting with __ and the normal name is an alias. */ | ||
4360 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4361 | choke me | ||
4362 | #else | ||
4363 | f = $ac_func; | ||
4364 | #endif | ||
4365 | |||
4366 | ; | ||
4367 | return 0; | ||
4368 | } | ||
4369 | _ACEOF | ||
4370 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4371 | if { (eval echo "$as_me:4371: \"$ac_link\"") >&5 | ||
4372 | (eval $ac_link) 2>&5 | ||
4373 | ac_status=$? | ||
4374 | echo "$as_me:4374: \$? = $ac_status" >&5 | ||
4375 | (exit $ac_status); } && | ||
4376 | { ac_try='test -s conftest$ac_exeext' | ||
4377 | { (eval echo "$as_me:4377: \"$ac_try\"") >&5 | ||
4378 | (eval $ac_try) 2>&5 | ||
4379 | ac_status=$? | ||
4380 | echo "$as_me:4380: \$? = $ac_status" >&5 | ||
4381 | (exit $ac_status); }; }; then | ||
4382 | eval "$as_ac_var=yes" | ||
4383 | else | ||
4384 | echo "$as_me: failed program was:" >&5 | ||
4385 | cat conftest.$ac_ext >&5 | ||
4386 | eval "$as_ac_var=no" | ||
4387 | fi | ||
4388 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4389 | fi | ||
4390 | echo "$as_me:4390: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4391 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4392 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4393 | cat >>confdefs.h <<EOF | ||
4394 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4395 | EOF | ||
4396 | |||
4397 | fi | ||
4398 | done | ||
4399 | |||
4400 | MANTYPE=man | ||
4401 | do_sco3_extra_lib_check=yes | ||
4402 | ;; | ||
4403 | *-*-sco3.2v5*) | ||
4404 | if test -z "$GCC"; then | ||
4405 | CFLAGS="$CFLAGS -belf" | ||
4406 | fi | ||
4407 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4408 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4409 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
4410 | no_dev_ptmx=1 | ||
4411 | cat >>confdefs.h <<\EOF | ||
4412 | #define USE_PIPES 1 | ||
4413 | EOF | ||
4414 | |||
4415 | cat >>confdefs.h <<\EOF | ||
4416 | #define HAVE_SECUREWARE 1 | ||
4417 | EOF | ||
4418 | |||
4419 | cat >>confdefs.h <<\EOF | ||
4420 | #define DISABLE_SHADOW 1 | ||
4421 | EOF | ||
4422 | |||
4423 | cat >>confdefs.h <<\EOF | ||
4424 | #define DISABLE_FD_PASSING 1 | ||
4425 | EOF | ||
4426 | |||
4427 | cat >>confdefs.h <<\EOF | ||
4428 | #define SETEUID_BREAKS_SETUID 1 | ||
4429 | EOF | ||
4430 | |||
4431 | cat >>confdefs.h <<\EOF | ||
4432 | #define BROKEN_SETREUID 1 | ||
4433 | EOF | ||
4434 | |||
4435 | cat >>confdefs.h <<\EOF | ||
4436 | #define BROKEN_SETREGID 1 | ||
4437 | EOF | ||
4438 | |||
4439 | cat >>confdefs.h <<\EOF | ||
4440 | #define WITH_ABBREV_NO_TTY 1 | ||
4441 | EOF | ||
4442 | |||
4443 | for ac_func in getluid setluid | ||
4444 | do | ||
4445 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4446 | echo "$as_me:4446: checking for $ac_func" >&5 | ||
4447 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4448 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4450 | else | ||
4451 | cat >conftest.$ac_ext <<_ACEOF | ||
4452 | #line 4452 "configure" | ||
4453 | #include "confdefs.h" | ||
4454 | /* System header to define __stub macros and hopefully few prototypes, | ||
4455 | which can conflict with char $ac_func (); below. */ | ||
4456 | #include <assert.h> | ||
4457 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4458 | #ifdef __cplusplus | ||
4459 | extern "C" | ||
4460 | #endif | ||
4461 | /* We use char because int might match the return type of a gcc2 | ||
4462 | builtin and then its argument prototype would still apply. */ | ||
4463 | char $ac_func (); | ||
4464 | char (*f) (); | ||
4465 | |||
4466 | int | ||
4467 | main () | ||
4468 | { | ||
4469 | /* The GNU C library defines this for functions which it implements | ||
4470 | to always fail with ENOSYS. Some functions are actually named | ||
4471 | something starting with __ and the normal name is an alias. */ | ||
4472 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4473 | choke me | ||
4474 | #else | ||
4475 | f = $ac_func; | ||
4476 | #endif | ||
4477 | |||
4478 | ; | ||
4479 | return 0; | ||
4480 | } | ||
4481 | _ACEOF | ||
4482 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4483 | if { (eval echo "$as_me:4483: \"$ac_link\"") >&5 | ||
4484 | (eval $ac_link) 2>&5 | ||
4485 | ac_status=$? | ||
4486 | echo "$as_me:4486: \$? = $ac_status" >&5 | ||
4487 | (exit $ac_status); } && | ||
4488 | { ac_try='test -s conftest$ac_exeext' | ||
4489 | { (eval echo "$as_me:4489: \"$ac_try\"") >&5 | ||
4490 | (eval $ac_try) 2>&5 | ||
4491 | ac_status=$? | ||
4492 | echo "$as_me:4492: \$? = $ac_status" >&5 | ||
4493 | (exit $ac_status); }; }; then | ||
4494 | eval "$as_ac_var=yes" | ||
4495 | else | ||
4496 | echo "$as_me: failed program was:" >&5 | ||
4497 | cat conftest.$ac_ext >&5 | ||
4498 | eval "$as_ac_var=no" | ||
4499 | fi | ||
4500 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4501 | fi | ||
4502 | echo "$as_me:4502: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4503 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4504 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4505 | cat >>confdefs.h <<EOF | ||
4506 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4507 | EOF | ||
4508 | |||
4509 | fi | ||
4510 | done | ||
4511 | |||
4512 | MANTYPE=man | ||
4513 | ;; | ||
4514 | *-*-unicosmk*) | ||
4515 | cat >>confdefs.h <<\EOF | ||
4516 | #define USE_PIPES 1 | ||
4517 | EOF | ||
4518 | |||
4519 | cat >>confdefs.h <<\EOF | ||
4520 | #define DISABLE_FD_PASSING 1 | ||
4521 | EOF | ||
4522 | |||
4523 | LDFLAGS="$LDFLAGS" | ||
4524 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4525 | MANTYPE=cat | ||
4526 | ;; | ||
4527 | *-*-unicosmp*) | ||
4528 | cat >>confdefs.h <<\EOF | ||
4529 | #define WITH_ABBREV_NO_TTY 1 | ||
4530 | EOF | ||
4531 | |||
4532 | cat >>confdefs.h <<\EOF | ||
4533 | #define USE_PIPES 1 | ||
4534 | EOF | ||
4535 | |||
4536 | cat >>confdefs.h <<\EOF | ||
4537 | #define DISABLE_FD_PASSING 1 | ||
4538 | EOF | ||
4539 | |||
4540 | LDFLAGS="$LDFLAGS" | ||
4541 | LIBS="$LIBS -lgen -lacid" | ||
4542 | MANTYPE=cat | ||
4543 | ;; | ||
4544 | *-*-unicos*) | ||
4545 | cat >>confdefs.h <<\EOF | ||
4546 | #define USE_PIPES 1 | ||
4547 | EOF | ||
4548 | |||
4549 | cat >>confdefs.h <<\EOF | ||
4550 | #define DISABLE_FD_PASSING 1 | ||
4551 | EOF | ||
4552 | |||
4553 | cat >>confdefs.h <<\EOF | ||
4554 | #define NO_SSH_LASTLOG 1 | ||
4555 | EOF | ||
4556 | |||
4557 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
4558 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4559 | MANTYPE=cat | ||
4560 | ;; | ||
4561 | *-dec-osf*) | ||
4562 | echo "$as_me:4562: checking for Digital Unix SIA" >&5 | ||
4563 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
4564 | no_osfsia="" | ||
4565 | |||
4566 | # Check whether --with-osfsia or --without-osfsia was given. | ||
4567 | if test "${with_osfsia+set}" = set; then | ||
4568 | withval="$with_osfsia" | ||
4569 | |||
4570 | if test "x$withval" = "xno" ; then | ||
4571 | echo "$as_me:4571: result: disabled" >&5 | ||
4572 | echo "${ECHO_T}disabled" >&6 | ||
4573 | no_osfsia=1 | ||
4574 | fi | ||
4575 | |||
4576 | fi; | ||
4577 | if test -z "$no_osfsia" ; then | ||
4578 | if test -f /etc/sia/matrix.conf; then | ||
4579 | echo "$as_me:4579: result: yes" >&5 | ||
4580 | echo "${ECHO_T}yes" >&6 | ||
4581 | cat >>confdefs.h <<\EOF | ||
4582 | #define HAVE_OSF_SIA 1 | ||
4583 | EOF | ||
4584 | |||
4585 | cat >>confdefs.h <<\EOF | ||
4586 | #define DISABLE_LOGIN 1 | ||
4587 | EOF | ||
4588 | |||
4589 | cat >>confdefs.h <<\EOF | ||
4590 | #define DISABLE_FD_PASSING 1 | ||
4591 | EOF | ||
4592 | |||
4593 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
4594 | else | ||
4595 | echo "$as_me:4595: result: no" >&5 | ||
4596 | echo "${ECHO_T}no" >&6 | ||
4597 | fi | ||
4598 | fi | ||
4599 | cat >>confdefs.h <<\EOF | ||
4600 | #define DISABLE_FD_PASSING 1 | ||
4601 | EOF | ||
4602 | |||
4603 | cat >>confdefs.h <<\EOF | ||
4604 | #define BROKEN_GETADDRINFO 1 | ||
4605 | EOF | ||
4606 | |||
4607 | cat >>confdefs.h <<\EOF | ||
4608 | #define SETEUID_BREAKS_SETUID 1 | ||
4609 | EOF | ||
4610 | |||
4611 | cat >>confdefs.h <<\EOF | ||
4612 | #define BROKEN_SETREUID 1 | ||
4613 | EOF | ||
4614 | |||
4615 | cat >>confdefs.h <<\EOF | ||
4616 | #define BROKEN_SETREGID 1 | ||
4617 | EOF | ||
4618 | |||
4619 | cat >>confdefs.h <<\EOF | ||
4620 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
4621 | EOF | ||
4622 | |||
4623 | ;; | ||
4624 | |||
4625 | *-*-nto-qnx) | ||
4626 | cat >>confdefs.h <<\EOF | ||
4627 | #define USE_PIPES 1 | ||
4628 | EOF | ||
4629 | |||
4630 | cat >>confdefs.h <<\EOF | ||
4631 | #define NO_X11_UNIX_SOCKETS 1 | ||
4632 | EOF | ||
4633 | |||
4634 | cat >>confdefs.h <<\EOF | ||
4635 | #define MISSING_NFDBITS 1 | ||
4636 | EOF | ||
4637 | |||
4638 | cat >>confdefs.h <<\EOF | ||
4639 | #define MISSING_HOWMANY 1 | ||
4640 | EOF | ||
4641 | |||
4642 | cat >>confdefs.h <<\EOF | ||
4643 | #define MISSING_FD_MASK 1 | ||
4644 | EOF | ||
4645 | |||
4646 | ;; | ||
4647 | esac | ||
4648 | |||
4649 | # Allow user to specify flags | ||
4650 | |||
4651 | # Check whether --with-cflags or --without-cflags was given. | ||
4652 | if test "${with_cflags+set}" = set; then | ||
4653 | withval="$with_cflags" | ||
4654 | |||
4655 | if test "x$withval" != "xno" ; then | ||
4656 | CFLAGS="$CFLAGS $withval" | ||
4657 | fi | ||
4658 | |||
4659 | fi; | ||
4660 | |||
4661 | # Check whether --with-cppflags or --without-cppflags was given. | ||
4662 | if test "${with_cppflags+set}" = set; then | ||
4663 | withval="$with_cppflags" | ||
4664 | |||
4665 | if test "x$withval" != "xno"; then | ||
4666 | CPPFLAGS="$CPPFLAGS $withval" | ||
4667 | fi | ||
4668 | |||
4669 | fi; | ||
4670 | |||
4671 | # Check whether --with-ldflags or --without-ldflags was given. | ||
4672 | if test "${with_ldflags+set}" = set; then | ||
4673 | withval="$with_ldflags" | ||
4674 | |||
4675 | if test "x$withval" != "xno" ; then | ||
4676 | LDFLAGS="$LDFLAGS $withval" | ||
4677 | fi | ||
4678 | |||
4679 | fi; | ||
4680 | |||
4681 | # Check whether --with-libs or --without-libs was given. | ||
4682 | if test "${with_libs+set}" = set; then | ||
4683 | withval="$with_libs" | ||
4684 | |||
4685 | if test "x$withval" != "xno" ; then | ||
4686 | LIBS="$LIBS $withval" | ||
4687 | fi | ||
4688 | |||
4689 | fi; | ||
4690 | |||
4691 | echo "$as_me:4691: checking compiler and flags for sanity" >&5 | ||
4692 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6 | ||
4693 | if test "$cross_compiling" = yes; then | ||
4694 | { { echo "$as_me:4694: error: cannot run test program while cross compiling" >&5 | ||
4695 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
4696 | { (exit 1); exit 1; }; } | ||
4697 | else | ||
4698 | cat >conftest.$ac_ext <<_ACEOF | ||
4699 | #line 4699 "configure" | ||
4700 | #include "confdefs.h" | ||
4701 | |||
4702 | #include <stdio.h> | ||
4703 | int main(){exit(0);} | ||
4704 | |||
4705 | _ACEOF | ||
4706 | rm -f conftest$ac_exeext | ||
4707 | if { (eval echo "$as_me:4707: \"$ac_link\"") >&5 | ||
4708 | (eval $ac_link) 2>&5 | ||
4709 | ac_status=$? | ||
4710 | echo "$as_me:4710: \$? = $ac_status" >&5 | ||
4711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4712 | { (eval echo "$as_me:4712: \"$ac_try\"") >&5 | ||
4713 | (eval $ac_try) 2>&5 | ||
4714 | ac_status=$? | ||
4715 | echo "$as_me:4715: \$? = $ac_status" >&5 | ||
4716 | (exit $ac_status); }; }; then | ||
4717 | echo "$as_me:4717: result: yes" >&5 | ||
4718 | echo "${ECHO_T}yes" >&6 | ||
4719 | else | ||
4720 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4721 | echo "$as_me: failed program was:" >&5 | ||
4722 | cat conftest.$ac_ext >&5 | ||
4723 | |||
4724 | echo "$as_me:4724: result: no" >&5 | ||
4725 | echo "${ECHO_T}no" >&6 | ||
4726 | { { echo "$as_me:4726: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
4727 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
4728 | { (exit 1); exit 1; }; } | ||
4729 | |||
4730 | fi | ||
4731 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4732 | fi | ||
4733 | |||
4734 | # Checks for header files. | ||
4735 | |||
4736 | for ac_header in bstring.h crypt.h endian.h features.h floatingpoint.h \ | ||
4737 | getopt.h glob.h ia.h lastlog.h limits.h login.h \ | ||
4738 | login_cap.h maillock.h netdb.h netgroup.h \ | ||
4739 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ | ||
4740 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
4741 | strings.h sys/strtio.h sys/audit.h sys/bitypes.h sys/bsdtty.h \ | ||
4742 | sys/cdefs.h sys/mman.h sys/pstat.h sys/select.h sys/stat.h \ | ||
4743 | sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \ | ||
4744 | sys/un.h time.h tmpdir.h ttyent.h usersec.h \ | ||
4745 | util.h utime.h utmp.h utmpx.h vis.h | ||
4746 | do | ||
4747 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4748 | echo "$as_me:4748: checking for $ac_header" >&5 | ||
4749 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4752 | else | ||
4753 | cat >conftest.$ac_ext <<_ACEOF | ||
4754 | #line 4754 "configure" | ||
4755 | #include "confdefs.h" | ||
4756 | #include <$ac_header> | ||
4757 | _ACEOF | ||
4758 | if { (eval echo "$as_me:4758: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4759 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4760 | ac_status=$? | ||
4761 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
4762 | rm -f conftest.er1 | ||
4763 | cat conftest.err >&5 | ||
4764 | echo "$as_me:4764: \$? = $ac_status" >&5 | ||
4765 | (exit $ac_status); } >/dev/null; then | ||
4766 | if test -s conftest.err; then | ||
4767 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4768 | else | ||
4769 | ac_cpp_err= | ||
4770 | fi | ||
4771 | else | ||
4772 | ac_cpp_err=yes | ||
4773 | fi | ||
4774 | if test -z "$ac_cpp_err"; then | ||
4775 | eval "$as_ac_Header=yes" | ||
4776 | else | ||
4777 | echo "$as_me: failed program was:" >&5 | ||
4778 | cat conftest.$ac_ext >&5 | ||
4779 | eval "$as_ac_Header=no" | ||
4780 | fi | ||
4781 | rm -f conftest.err conftest.$ac_ext | ||
4782 | fi | ||
4783 | echo "$as_me:4783: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4785 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4786 | cat >>confdefs.h <<EOF | ||
4787 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4788 | EOF | ||
4789 | |||
4790 | fi | ||
4791 | done | ||
4792 | |||
4793 | # Checks for libraries. | ||
4794 | echo "$as_me:4794: checking for yp_match" >&5 | ||
4795 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
4796 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
4797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4798 | else | ||
4799 | cat >conftest.$ac_ext <<_ACEOF | ||
4800 | #line 4800 "configure" | ||
4801 | #include "confdefs.h" | ||
4802 | /* System header to define __stub macros and hopefully few prototypes, | ||
4803 | which can conflict with char yp_match (); below. */ | ||
4804 | #include <assert.h> | ||
4805 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4806 | #ifdef __cplusplus | ||
4807 | extern "C" | ||
4808 | #endif | ||
4809 | /* We use char because int might match the return type of a gcc2 | ||
4810 | builtin and then its argument prototype would still apply. */ | ||
4811 | char yp_match (); | ||
4812 | char (*f) (); | ||
4813 | |||
4814 | int | ||
4815 | main () | ||
4816 | { | ||
4817 | /* The GNU C library defines this for functions which it implements | ||
4818 | to always fail with ENOSYS. Some functions are actually named | ||
4819 | something starting with __ and the normal name is an alias. */ | ||
4820 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
4821 | choke me | ||
4822 | #else | ||
4823 | f = yp_match; | ||
4824 | #endif | ||
4825 | |||
4826 | ; | ||
4827 | return 0; | ||
4828 | } | ||
4829 | _ACEOF | ||
4830 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4831 | if { (eval echo "$as_me:4831: \"$ac_link\"") >&5 | ||
4832 | (eval $ac_link) 2>&5 | ||
4833 | ac_status=$? | ||
4834 | echo "$as_me:4834: \$? = $ac_status" >&5 | ||
4835 | (exit $ac_status); } && | ||
4836 | { ac_try='test -s conftest$ac_exeext' | ||
4837 | { (eval echo "$as_me:4837: \"$ac_try\"") >&5 | ||
4838 | (eval $ac_try) 2>&5 | ||
4839 | ac_status=$? | ||
4840 | echo "$as_me:4840: \$? = $ac_status" >&5 | ||
4841 | (exit $ac_status); }; }; then | ||
4842 | ac_cv_func_yp_match=yes | ||
4843 | else | ||
4844 | echo "$as_me: failed program was:" >&5 | ||
4845 | cat conftest.$ac_ext >&5 | ||
4846 | ac_cv_func_yp_match=no | ||
4847 | fi | ||
4848 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4849 | fi | ||
4850 | echo "$as_me:4850: result: $ac_cv_func_yp_match" >&5 | ||
4851 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
4852 | if test $ac_cv_func_yp_match = yes; then | ||
4853 | : | ||
4854 | else | ||
4855 | |||
4856 | echo "$as_me:4856: checking for yp_match in -lnsl" >&5 | ||
4857 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
4858 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
4859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4860 | else | ||
4861 | ac_check_lib_save_LIBS=$LIBS | ||
4862 | LIBS="-lnsl $LIBS" | ||
4863 | cat >conftest.$ac_ext <<_ACEOF | ||
4864 | #line 4864 "configure" | ||
4865 | #include "confdefs.h" | ||
4866 | |||
4867 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4868 | #ifdef __cplusplus | ||
4869 | extern "C" | ||
4870 | #endif | ||
4871 | /* We use char because int might match the return type of a gcc2 | ||
4872 | builtin and then its argument prototype would still apply. */ | ||
4873 | char yp_match (); | ||
4874 | int | ||
4875 | main () | ||
4876 | { | ||
4877 | yp_match (); | ||
4878 | ; | ||
4879 | return 0; | ||
4880 | } | ||
4881 | _ACEOF | ||
4882 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4883 | if { (eval echo "$as_me:4883: \"$ac_link\"") >&5 | ||
4884 | (eval $ac_link) 2>&5 | ||
4885 | ac_status=$? | ||
4886 | echo "$as_me:4886: \$? = $ac_status" >&5 | ||
4887 | (exit $ac_status); } && | ||
4888 | { ac_try='test -s conftest$ac_exeext' | ||
4889 | { (eval echo "$as_me:4889: \"$ac_try\"") >&5 | ||
4890 | (eval $ac_try) 2>&5 | ||
4891 | ac_status=$? | ||
4892 | echo "$as_me:4892: \$? = $ac_status" >&5 | ||
4893 | (exit $ac_status); }; }; then | ||
4894 | ac_cv_lib_nsl_yp_match=yes | ||
4895 | else | ||
4896 | echo "$as_me: failed program was:" >&5 | ||
4897 | cat conftest.$ac_ext >&5 | ||
4898 | ac_cv_lib_nsl_yp_match=no | ||
4899 | fi | ||
4900 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4901 | LIBS=$ac_check_lib_save_LIBS | ||
4902 | fi | ||
4903 | echo "$as_me:4903: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
4904 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
4905 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
4906 | cat >>confdefs.h <<EOF | ||
4907 | #define HAVE_LIBNSL 1 | ||
4908 | EOF | ||
4909 | |||
4910 | LIBS="-lnsl $LIBS" | ||
4911 | |||
4912 | fi | ||
4913 | |||
4914 | fi | ||
4915 | |||
4916 | echo "$as_me:4916: checking for setsockopt" >&5 | ||
4917 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
4918 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
4919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4920 | else | ||
4921 | cat >conftest.$ac_ext <<_ACEOF | ||
4922 | #line 4922 "configure" | ||
4923 | #include "confdefs.h" | ||
4924 | /* System header to define __stub macros and hopefully few prototypes, | ||
4925 | which can conflict with char setsockopt (); below. */ | ||
4926 | #include <assert.h> | ||
4927 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4928 | #ifdef __cplusplus | ||
4929 | extern "C" | ||
4930 | #endif | ||
4931 | /* We use char because int might match the return type of a gcc2 | ||
4932 | builtin and then its argument prototype would still apply. */ | ||
4933 | char setsockopt (); | ||
4934 | char (*f) (); | ||
4935 | |||
4936 | int | ||
4937 | main () | ||
4938 | { | ||
4939 | /* The GNU C library defines this for functions which it implements | ||
4940 | to always fail with ENOSYS. Some functions are actually named | ||
4941 | something starting with __ and the normal name is an alias. */ | ||
4942 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
4943 | choke me | ||
4944 | #else | ||
4945 | f = setsockopt; | ||
4946 | #endif | ||
4947 | |||
4948 | ; | ||
4949 | return 0; | ||
4950 | } | ||
4951 | _ACEOF | ||
4952 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4953 | if { (eval echo "$as_me:4953: \"$ac_link\"") >&5 | ||
4954 | (eval $ac_link) 2>&5 | ||
4955 | ac_status=$? | ||
4956 | echo "$as_me:4956: \$? = $ac_status" >&5 | ||
4957 | (exit $ac_status); } && | ||
4958 | { ac_try='test -s conftest$ac_exeext' | ||
4959 | { (eval echo "$as_me:4959: \"$ac_try\"") >&5 | ||
4960 | (eval $ac_try) 2>&5 | ||
4961 | ac_status=$? | ||
4962 | echo "$as_me:4962: \$? = $ac_status" >&5 | ||
4963 | (exit $ac_status); }; }; then | ||
4964 | ac_cv_func_setsockopt=yes | ||
4965 | else | ||
4966 | echo "$as_me: failed program was:" >&5 | ||
4967 | cat conftest.$ac_ext >&5 | ||
4968 | ac_cv_func_setsockopt=no | ||
4969 | fi | ||
4970 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4971 | fi | ||
4972 | echo "$as_me:4972: result: $ac_cv_func_setsockopt" >&5 | ||
4973 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
4974 | if test $ac_cv_func_setsockopt = yes; then | ||
4975 | : | ||
4976 | else | ||
4977 | |||
4978 | echo "$as_me:4978: checking for setsockopt in -lsocket" >&5 | ||
4979 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
4980 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
4981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4982 | else | ||
4983 | ac_check_lib_save_LIBS=$LIBS | ||
4984 | LIBS="-lsocket $LIBS" | ||
4985 | cat >conftest.$ac_ext <<_ACEOF | ||
4986 | #line 4986 "configure" | ||
4987 | #include "confdefs.h" | ||
4988 | |||
4989 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4990 | #ifdef __cplusplus | ||
4991 | extern "C" | ||
4992 | #endif | ||
4993 | /* We use char because int might match the return type of a gcc2 | ||
4994 | builtin and then its argument prototype would still apply. */ | ||
4995 | char setsockopt (); | ||
4996 | int | ||
4997 | main () | ||
4998 | { | ||
4999 | setsockopt (); | ||
5000 | ; | ||
5001 | return 0; | ||
5002 | } | ||
5003 | _ACEOF | ||
5004 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5005 | if { (eval echo "$as_me:5005: \"$ac_link\"") >&5 | ||
5006 | (eval $ac_link) 2>&5 | ||
5007 | ac_status=$? | ||
5008 | echo "$as_me:5008: \$? = $ac_status" >&5 | ||
5009 | (exit $ac_status); } && | ||
5010 | { ac_try='test -s conftest$ac_exeext' | ||
5011 | { (eval echo "$as_me:5011: \"$ac_try\"") >&5 | ||
5012 | (eval $ac_try) 2>&5 | ||
5013 | ac_status=$? | ||
5014 | echo "$as_me:5014: \$? = $ac_status" >&5 | ||
5015 | (exit $ac_status); }; }; then | ||
5016 | ac_cv_lib_socket_setsockopt=yes | ||
5017 | else | ||
5018 | echo "$as_me: failed program was:" >&5 | ||
5019 | cat conftest.$ac_ext >&5 | ||
5020 | ac_cv_lib_socket_setsockopt=no | ||
5021 | fi | ||
5022 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5023 | LIBS=$ac_check_lib_save_LIBS | ||
5024 | fi | ||
5025 | echo "$as_me:5025: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
5026 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
5027 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
5028 | cat >>confdefs.h <<EOF | ||
5029 | #define HAVE_LIBSOCKET 1 | ||
5030 | EOF | ||
5031 | |||
5032 | LIBS="-lsocket $LIBS" | ||
5033 | |||
5034 | fi | ||
5035 | |||
5036 | fi | ||
5037 | |||
5038 | if test "x$with_tcp_wrappers" != "xno" ; then | ||
5039 | if test "x$do_sco3_extra_lib_check" = "xyes" ; then | ||
5040 | echo "$as_me:5040: checking for innetgr in -lrpc" >&5 | ||
5041 | echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6 | ||
5042 | if test "${ac_cv_lib_rpc_innetgr+set}" = set; then | ||
5043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5044 | else | ||
5045 | ac_check_lib_save_LIBS=$LIBS | ||
5046 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5047 | cat >conftest.$ac_ext <<_ACEOF | ||
5048 | #line 5048 "configure" | ||
5049 | #include "confdefs.h" | ||
5050 | |||
5051 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5052 | #ifdef __cplusplus | ||
5053 | extern "C" | ||
5054 | #endif | ||
5055 | /* We use char because int might match the return type of a gcc2 | ||
5056 | builtin and then its argument prototype would still apply. */ | ||
5057 | char innetgr (); | ||
5058 | int | ||
5059 | main () | ||
5060 | { | ||
5061 | innetgr (); | ||
5062 | ; | ||
5063 | return 0; | ||
5064 | } | ||
5065 | _ACEOF | ||
5066 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5067 | if { (eval echo "$as_me:5067: \"$ac_link\"") >&5 | ||
5068 | (eval $ac_link) 2>&5 | ||
5069 | ac_status=$? | ||
5070 | echo "$as_me:5070: \$? = $ac_status" >&5 | ||
5071 | (exit $ac_status); } && | ||
5072 | { ac_try='test -s conftest$ac_exeext' | ||
5073 | { (eval echo "$as_me:5073: \"$ac_try\"") >&5 | ||
5074 | (eval $ac_try) 2>&5 | ||
5075 | ac_status=$? | ||
5076 | echo "$as_me:5076: \$? = $ac_status" >&5 | ||
5077 | (exit $ac_status); }; }; then | ||
5078 | ac_cv_lib_rpc_innetgr=yes | ||
5079 | else | ||
5080 | echo "$as_me: failed program was:" >&5 | ||
5081 | cat conftest.$ac_ext >&5 | ||
5082 | ac_cv_lib_rpc_innetgr=no | ||
5083 | fi | ||
5084 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5085 | LIBS=$ac_check_lib_save_LIBS | ||
5086 | fi | ||
5087 | echo "$as_me:5087: result: $ac_cv_lib_rpc_innetgr" >&5 | ||
5088 | echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6 | ||
5089 | if test $ac_cv_lib_rpc_innetgr = yes; then | ||
5090 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5091 | fi | ||
5092 | |||
5093 | fi | ||
5094 | fi | ||
5095 | |||
5096 | for ac_func in dirname | ||
5097 | do | ||
5098 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5099 | echo "$as_me:5099: checking for $ac_func" >&5 | ||
5100 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5101 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5103 | else | ||
5104 | cat >conftest.$ac_ext <<_ACEOF | ||
5105 | #line 5105 "configure" | ||
5106 | #include "confdefs.h" | ||
5107 | /* System header to define __stub macros and hopefully few prototypes, | ||
5108 | which can conflict with char $ac_func (); below. */ | ||
5109 | #include <assert.h> | ||
5110 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5111 | #ifdef __cplusplus | ||
5112 | extern "C" | ||
5113 | #endif | ||
5114 | /* We use char because int might match the return type of a gcc2 | ||
5115 | builtin and then its argument prototype would still apply. */ | ||
5116 | char $ac_func (); | ||
5117 | char (*f) (); | ||
5118 | |||
5119 | int | ||
5120 | main () | ||
5121 | { | ||
5122 | /* The GNU C library defines this for functions which it implements | ||
5123 | to always fail with ENOSYS. Some functions are actually named | ||
5124 | something starting with __ and the normal name is an alias. */ | ||
5125 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5126 | choke me | ||
5127 | #else | ||
5128 | f = $ac_func; | ||
5129 | #endif | ||
5130 | |||
5131 | ; | ||
5132 | return 0; | ||
5133 | } | ||
5134 | _ACEOF | ||
5135 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5136 | if { (eval echo "$as_me:5136: \"$ac_link\"") >&5 | ||
5137 | (eval $ac_link) 2>&5 | ||
5138 | ac_status=$? | ||
5139 | echo "$as_me:5139: \$? = $ac_status" >&5 | ||
5140 | (exit $ac_status); } && | ||
5141 | { ac_try='test -s conftest$ac_exeext' | ||
5142 | { (eval echo "$as_me:5142: \"$ac_try\"") >&5 | ||
5143 | (eval $ac_try) 2>&5 | ||
5144 | ac_status=$? | ||
5145 | echo "$as_me:5145: \$? = $ac_status" >&5 | ||
5146 | (exit $ac_status); }; }; then | ||
5147 | eval "$as_ac_var=yes" | ||
5148 | else | ||
5149 | echo "$as_me: failed program was:" >&5 | ||
5150 | cat conftest.$ac_ext >&5 | ||
5151 | eval "$as_ac_var=no" | ||
5152 | fi | ||
5153 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5154 | fi | ||
5155 | echo "$as_me:5155: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5156 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5157 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5158 | cat >>confdefs.h <<EOF | ||
5159 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5160 | EOF | ||
5161 | |||
5162 | for ac_header in libgen.h | ||
5163 | do | ||
5164 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5165 | echo "$as_me:5165: checking for $ac_header" >&5 | ||
5166 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5167 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5169 | else | ||
5170 | cat >conftest.$ac_ext <<_ACEOF | ||
5171 | #line 5171 "configure" | ||
5172 | #include "confdefs.h" | ||
5173 | #include <$ac_header> | ||
5174 | _ACEOF | ||
5175 | if { (eval echo "$as_me:5175: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5176 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5177 | ac_status=$? | ||
5178 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5179 | rm -f conftest.er1 | ||
5180 | cat conftest.err >&5 | ||
5181 | echo "$as_me:5181: \$? = $ac_status" >&5 | ||
5182 | (exit $ac_status); } >/dev/null; then | ||
5183 | if test -s conftest.err; then | ||
5184 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5185 | else | ||
5186 | ac_cpp_err= | ||
5187 | fi | ||
5188 | else | ||
5189 | ac_cpp_err=yes | ||
5190 | fi | ||
5191 | if test -z "$ac_cpp_err"; then | ||
5192 | eval "$as_ac_Header=yes" | ||
5193 | else | ||
5194 | echo "$as_me: failed program was:" >&5 | ||
5195 | cat conftest.$ac_ext >&5 | ||
5196 | eval "$as_ac_Header=no" | ||
5197 | fi | ||
5198 | rm -f conftest.err conftest.$ac_ext | ||
5199 | fi | ||
5200 | echo "$as_me:5200: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5201 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5202 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5203 | cat >>confdefs.h <<EOF | ||
5204 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5205 | EOF | ||
5206 | |||
5207 | fi | ||
5208 | done | ||
5209 | |||
5210 | else | ||
5211 | |||
5212 | echo "$as_me:5212: checking for dirname in -lgen" >&5 | ||
5213 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
5214 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
5215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5216 | else | ||
5217 | ac_check_lib_save_LIBS=$LIBS | ||
5218 | LIBS="-lgen $LIBS" | ||
5219 | cat >conftest.$ac_ext <<_ACEOF | ||
5220 | #line 5220 "configure" | ||
5221 | #include "confdefs.h" | ||
5222 | |||
5223 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5224 | #ifdef __cplusplus | ||
5225 | extern "C" | ||
5226 | #endif | ||
5227 | /* We use char because int might match the return type of a gcc2 | ||
5228 | builtin and then its argument prototype would still apply. */ | ||
5229 | char dirname (); | ||
5230 | int | ||
5231 | main () | ||
5232 | { | ||
5233 | dirname (); | ||
5234 | ; | ||
5235 | return 0; | ||
5236 | } | ||
5237 | _ACEOF | ||
5238 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5239 | if { (eval echo "$as_me:5239: \"$ac_link\"") >&5 | ||
5240 | (eval $ac_link) 2>&5 | ||
5241 | ac_status=$? | ||
5242 | echo "$as_me:5242: \$? = $ac_status" >&5 | ||
5243 | (exit $ac_status); } && | ||
5244 | { ac_try='test -s conftest$ac_exeext' | ||
5245 | { (eval echo "$as_me:5245: \"$ac_try\"") >&5 | ||
5246 | (eval $ac_try) 2>&5 | ||
5247 | ac_status=$? | ||
5248 | echo "$as_me:5248: \$? = $ac_status" >&5 | ||
5249 | (exit $ac_status); }; }; then | ||
5250 | ac_cv_lib_gen_dirname=yes | ||
5251 | else | ||
5252 | echo "$as_me: failed program was:" >&5 | ||
5253 | cat conftest.$ac_ext >&5 | ||
5254 | ac_cv_lib_gen_dirname=no | ||
5255 | fi | ||
5256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5257 | LIBS=$ac_check_lib_save_LIBS | ||
5258 | fi | ||
5259 | echo "$as_me:5259: result: $ac_cv_lib_gen_dirname" >&5 | ||
5260 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
5261 | if test $ac_cv_lib_gen_dirname = yes; then | ||
5262 | |||
5263 | echo "$as_me:5263: checking for broken dirname" >&5 | ||
5264 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
5265 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
5266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5267 | else | ||
5268 | |||
5269 | save_LIBS="$LIBS" | ||
5270 | LIBS="$LIBS -lgen" | ||
5271 | if test "$cross_compiling" = yes; then | ||
5272 | { { echo "$as_me:5272: error: cannot run test program while cross compiling" >&5 | ||
5273 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
5274 | { (exit 1); exit 1; }; } | ||
5275 | else | ||
5276 | cat >conftest.$ac_ext <<_ACEOF | ||
5277 | #line 5277 "configure" | ||
5278 | #include "confdefs.h" | ||
5279 | |||
5280 | #include <libgen.h> | ||
5281 | #include <string.h> | ||
5282 | |||
5283 | int main(int argc, char **argv) { | ||
5284 | char *s, buf[32]; | ||
5285 | |||
5286 | strncpy(buf,"/etc", 32); | ||
5287 | s = dirname(buf); | ||
5288 | if (!s || strncmp(s, "/", 32) != 0) { | ||
5289 | exit(1); | ||
5290 | } else { | ||
5291 | exit(0); | ||
5292 | } | ||
5293 | } | ||
5294 | |||
5295 | _ACEOF | ||
5296 | rm -f conftest$ac_exeext | ||
5297 | if { (eval echo "$as_me:5297: \"$ac_link\"") >&5 | ||
5298 | (eval $ac_link) 2>&5 | ||
5299 | ac_status=$? | ||
5300 | echo "$as_me:5300: \$? = $ac_status" >&5 | ||
5301 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5302 | { (eval echo "$as_me:5302: \"$ac_try\"") >&5 | ||
5303 | (eval $ac_try) 2>&5 | ||
5304 | ac_status=$? | ||
5305 | echo "$as_me:5305: \$? = $ac_status" >&5 | ||
5306 | (exit $ac_status); }; }; then | ||
5307 | ac_cv_have_broken_dirname="no" | ||
5308 | else | ||
5309 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5310 | echo "$as_me: failed program was:" >&5 | ||
5311 | cat conftest.$ac_ext >&5 | ||
5312 | ac_cv_have_broken_dirname="yes" | ||
5313 | |||
5314 | fi | ||
5315 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5316 | fi | ||
5317 | LIBS="$save_LIBS" | ||
5318 | |||
5319 | fi | ||
5320 | echo "$as_me:5320: result: $ac_cv_have_broken_dirname" >&5 | ||
5321 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
5322 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
5323 | LIBS="$LIBS -lgen" | ||
5324 | cat >>confdefs.h <<\EOF | ||
5325 | #define HAVE_DIRNAME 1 | ||
5326 | EOF | ||
5327 | |||
5328 | for ac_header in libgen.h | ||
5329 | do | ||
5330 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5331 | echo "$as_me:5331: checking for $ac_header" >&5 | ||
5332 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5333 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5335 | else | ||
5336 | cat >conftest.$ac_ext <<_ACEOF | ||
5337 | #line 5337 "configure" | ||
5338 | #include "confdefs.h" | ||
5339 | #include <$ac_header> | ||
5340 | _ACEOF | ||
5341 | if { (eval echo "$as_me:5341: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5342 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5343 | ac_status=$? | ||
5344 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5345 | rm -f conftest.er1 | ||
5346 | cat conftest.err >&5 | ||
5347 | echo "$as_me:5347: \$? = $ac_status" >&5 | ||
5348 | (exit $ac_status); } >/dev/null; then | ||
5349 | if test -s conftest.err; then | ||
5350 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5351 | else | ||
5352 | ac_cpp_err= | ||
5353 | fi | ||
5354 | else | ||
5355 | ac_cpp_err=yes | ||
5356 | fi | ||
5357 | if test -z "$ac_cpp_err"; then | ||
5358 | eval "$as_ac_Header=yes" | ||
5359 | else | ||
5360 | echo "$as_me: failed program was:" >&5 | ||
5361 | cat conftest.$ac_ext >&5 | ||
5362 | eval "$as_ac_Header=no" | ||
5363 | fi | ||
5364 | rm -f conftest.err conftest.$ac_ext | ||
5365 | fi | ||
5366 | echo "$as_me:5366: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5367 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5368 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5369 | cat >>confdefs.h <<EOF | ||
5370 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5371 | EOF | ||
5372 | |||
5373 | fi | ||
5374 | done | ||
5375 | |||
5376 | fi | ||
5377 | |||
5378 | fi | ||
5379 | |||
5380 | fi | ||
5381 | done | ||
5382 | |||
5383 | echo "$as_me:5383: checking for getspnam" >&5 | ||
5384 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
5385 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5387 | else | ||
5388 | cat >conftest.$ac_ext <<_ACEOF | ||
5389 | #line 5389 "configure" | ||
5390 | #include "confdefs.h" | ||
5391 | /* System header to define __stub macros and hopefully few prototypes, | ||
5392 | which can conflict with char getspnam (); below. */ | ||
5393 | #include <assert.h> | ||
5394 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5395 | #ifdef __cplusplus | ||
5396 | extern "C" | ||
5397 | #endif | ||
5398 | /* We use char because int might match the return type of a gcc2 | ||
5399 | builtin and then its argument prototype would still apply. */ | ||
5400 | char getspnam (); | ||
5401 | char (*f) (); | ||
5402 | |||
5403 | int | ||
5404 | main () | ||
5405 | { | ||
5406 | /* The GNU C library defines this for functions which it implements | ||
5407 | to always fail with ENOSYS. Some functions are actually named | ||
5408 | something starting with __ and the normal name is an alias. */ | ||
5409 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
5410 | choke me | ||
5411 | #else | ||
5412 | f = getspnam; | ||
5413 | #endif | ||
5414 | |||
5415 | ; | ||
5416 | return 0; | ||
5417 | } | ||
5418 | _ACEOF | ||
5419 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5420 | if { (eval echo "$as_me:5420: \"$ac_link\"") >&5 | ||
5421 | (eval $ac_link) 2>&5 | ||
5422 | ac_status=$? | ||
5423 | echo "$as_me:5423: \$? = $ac_status" >&5 | ||
5424 | (exit $ac_status); } && | ||
5425 | { ac_try='test -s conftest$ac_exeext' | ||
5426 | { (eval echo "$as_me:5426: \"$ac_try\"") >&5 | ||
5427 | (eval $ac_try) 2>&5 | ||
5428 | ac_status=$? | ||
5429 | echo "$as_me:5429: \$? = $ac_status" >&5 | ||
5430 | (exit $ac_status); }; }; then | ||
5431 | ac_cv_func_getspnam=yes | ||
5432 | else | ||
5433 | echo "$as_me: failed program was:" >&5 | ||
5434 | cat conftest.$ac_ext >&5 | ||
5435 | ac_cv_func_getspnam=no | ||
5436 | fi | ||
5437 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5438 | fi | ||
5439 | echo "$as_me:5439: result: $ac_cv_func_getspnam" >&5 | ||
5440 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
5441 | if test $ac_cv_func_getspnam = yes; then | ||
5442 | : | ||
5443 | else | ||
5444 | echo "$as_me:5444: checking for getspnam in -lgen" >&5 | ||
5445 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
5446 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
5447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5448 | else | ||
5449 | ac_check_lib_save_LIBS=$LIBS | ||
5450 | LIBS="-lgen $LIBS" | ||
5451 | cat >conftest.$ac_ext <<_ACEOF | ||
5452 | #line 5452 "configure" | ||
5453 | #include "confdefs.h" | ||
5454 | |||
5455 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5456 | #ifdef __cplusplus | ||
5457 | extern "C" | ||
5458 | #endif | ||
5459 | /* We use char because int might match the return type of a gcc2 | ||
5460 | builtin and then its argument prototype would still apply. */ | ||
5461 | char getspnam (); | ||
5462 | int | ||
5463 | main () | ||
5464 | { | ||
5465 | getspnam (); | ||
5466 | ; | ||
5467 | return 0; | ||
5468 | } | ||
5469 | _ACEOF | ||
5470 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5471 | if { (eval echo "$as_me:5471: \"$ac_link\"") >&5 | ||
5472 | (eval $ac_link) 2>&5 | ||
5473 | ac_status=$? | ||
5474 | echo "$as_me:5474: \$? = $ac_status" >&5 | ||
5475 | (exit $ac_status); } && | ||
5476 | { ac_try='test -s conftest$ac_exeext' | ||
5477 | { (eval echo "$as_me:5477: \"$ac_try\"") >&5 | ||
5478 | (eval $ac_try) 2>&5 | ||
5479 | ac_status=$? | ||
5480 | echo "$as_me:5480: \$? = $ac_status" >&5 | ||
5481 | (exit $ac_status); }; }; then | ||
5482 | ac_cv_lib_gen_getspnam=yes | ||
5483 | else | ||
5484 | echo "$as_me: failed program was:" >&5 | ||
5485 | cat conftest.$ac_ext >&5 | ||
5486 | ac_cv_lib_gen_getspnam=no | ||
5487 | fi | ||
5488 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5489 | LIBS=$ac_check_lib_save_LIBS | ||
5490 | fi | ||
5491 | echo "$as_me:5491: result: $ac_cv_lib_gen_getspnam" >&5 | ||
5492 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
5493 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
5494 | LIBS="$LIBS -lgen" | ||
5495 | fi | ||
5496 | |||
5497 | fi | ||
5498 | |||
5499 | echo "$as_me:5499: checking for library containing basename" >&5 | ||
5500 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6 | ||
5501 | if test "${ac_cv_search_basename+set}" = set; then | ||
5502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5503 | else | ||
5504 | ac_func_search_save_LIBS=$LIBS | ||
5505 | ac_cv_search_basename=no | ||
5506 | cat >conftest.$ac_ext <<_ACEOF | ||
5507 | #line 5507 "configure" | ||
5508 | #include "confdefs.h" | ||
5509 | |||
5510 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5511 | #ifdef __cplusplus | ||
5512 | extern "C" | ||
5513 | #endif | ||
5514 | /* We use char because int might match the return type of a gcc2 | ||
5515 | builtin and then its argument prototype would still apply. */ | ||
5516 | char basename (); | ||
5517 | int | ||
5518 | main () | ||
5519 | { | ||
5520 | basename (); | ||
5521 | ; | ||
5522 | return 0; | ||
5523 | } | ||
5524 | _ACEOF | ||
5525 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5526 | if { (eval echo "$as_me:5526: \"$ac_link\"") >&5 | ||
5527 | (eval $ac_link) 2>&5 | ||
5528 | ac_status=$? | ||
5529 | echo "$as_me:5529: \$? = $ac_status" >&5 | ||
5530 | (exit $ac_status); } && | ||
5531 | { ac_try='test -s conftest$ac_exeext' | ||
5532 | { (eval echo "$as_me:5532: \"$ac_try\"") >&5 | ||
5533 | (eval $ac_try) 2>&5 | ||
5534 | ac_status=$? | ||
5535 | echo "$as_me:5535: \$? = $ac_status" >&5 | ||
5536 | (exit $ac_status); }; }; then | ||
5537 | ac_cv_search_basename="none required" | ||
5538 | else | ||
5539 | echo "$as_me: failed program was:" >&5 | ||
5540 | cat conftest.$ac_ext >&5 | ||
5541 | fi | ||
5542 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5543 | if test "$ac_cv_search_basename" = no; then | ||
5544 | for ac_lib in gen; do | ||
5545 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
5546 | cat >conftest.$ac_ext <<_ACEOF | ||
5547 | #line 5547 "configure" | ||
5548 | #include "confdefs.h" | ||
5549 | |||
5550 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5551 | #ifdef __cplusplus | ||
5552 | extern "C" | ||
5553 | #endif | ||
5554 | /* We use char because int might match the return type of a gcc2 | ||
5555 | builtin and then its argument prototype would still apply. */ | ||
5556 | char basename (); | ||
5557 | int | ||
5558 | main () | ||
5559 | { | ||
5560 | basename (); | ||
5561 | ; | ||
5562 | return 0; | ||
5563 | } | ||
5564 | _ACEOF | ||
5565 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5566 | if { (eval echo "$as_me:5566: \"$ac_link\"") >&5 | ||
5567 | (eval $ac_link) 2>&5 | ||
5568 | ac_status=$? | ||
5569 | echo "$as_me:5569: \$? = $ac_status" >&5 | ||
5570 | (exit $ac_status); } && | ||
5571 | { ac_try='test -s conftest$ac_exeext' | ||
5572 | { (eval echo "$as_me:5572: \"$ac_try\"") >&5 | ||
5573 | (eval $ac_try) 2>&5 | ||
5574 | ac_status=$? | ||
5575 | echo "$as_me:5575: \$? = $ac_status" >&5 | ||
5576 | (exit $ac_status); }; }; then | ||
5577 | ac_cv_search_basename="-l$ac_lib" | ||
5578 | break | ||
5579 | else | ||
5580 | echo "$as_me: failed program was:" >&5 | ||
5581 | cat conftest.$ac_ext >&5 | ||
5582 | fi | ||
5583 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5584 | done | ||
5585 | fi | ||
5586 | LIBS=$ac_func_search_save_LIBS | ||
5587 | fi | ||
5588 | echo "$as_me:5588: result: $ac_cv_search_basename" >&5 | ||
5589 | echo "${ECHO_T}$ac_cv_search_basename" >&6 | ||
5590 | if test "$ac_cv_search_basename" != no; then | ||
5591 | test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS" | ||
5592 | cat >>confdefs.h <<\EOF | ||
5593 | #define HAVE_BASENAME 1 | ||
5594 | EOF | ||
5595 | |||
5596 | fi | ||
5597 | |||
5598 | # Check whether --with-rpath or --without-rpath was given. | ||
5599 | if test "${with_rpath+set}" = set; then | ||
5600 | withval="$with_rpath" | ||
5601 | |||
5602 | if test "x$withval" = "xno" ; then | ||
5603 | need_dash_r="" | ||
5604 | fi | ||
5605 | if test "x$withval" = "xyes" ; then | ||
5606 | need_dash_r=1 | ||
5607 | fi | ||
5608 | |||
5609 | fi; | ||
5610 | |||
5611 | # Check whether --with-zlib or --without-zlib was given. | ||
5612 | if test "${with_zlib+set}" = set; then | ||
5613 | withval="$with_zlib" | ||
5614 | |||
5615 | if test "x$withval" = "xno" ; then | ||
5616 | { { echo "$as_me:5616: error: *** zlib is required ***" >&5 | ||
5617 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
5618 | { (exit 1); exit 1; }; } | ||
5619 | fi | ||
5620 | if test -d "$withval/lib"; then | ||
5621 | if test -n "${need_dash_r}"; then | ||
5622 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
5623 | else | ||
5624 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
5625 | fi | ||
5626 | else | ||
5627 | if test -n "${need_dash_r}"; then | ||
5628 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
5629 | else | ||
5630 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
5631 | fi | ||
5632 | fi | ||
5633 | if test -d "$withval/include"; then | ||
5634 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
5635 | else | ||
5636 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
5637 | fi | ||
5638 | |||
5639 | fi; | ||
5640 | |||
5641 | echo "$as_me:5641: checking for deflate in -lz" >&5 | ||
5642 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
5643 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
5644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5645 | else | ||
5646 | ac_check_lib_save_LIBS=$LIBS | ||
5647 | LIBS="-lz $LIBS" | ||
5648 | cat >conftest.$ac_ext <<_ACEOF | ||
5649 | #line 5649 "configure" | ||
5650 | #include "confdefs.h" | ||
5651 | |||
5652 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5653 | #ifdef __cplusplus | ||
5654 | extern "C" | ||
5655 | #endif | ||
5656 | /* We use char because int might match the return type of a gcc2 | ||
5657 | builtin and then its argument prototype would still apply. */ | ||
5658 | char deflate (); | ||
5659 | int | ||
5660 | main () | ||
5661 | { | ||
5662 | deflate (); | ||
5663 | ; | ||
5664 | return 0; | ||
5665 | } | ||
5666 | _ACEOF | ||
5667 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5668 | if { (eval echo "$as_me:5668: \"$ac_link\"") >&5 | ||
5669 | (eval $ac_link) 2>&5 | ||
5670 | ac_status=$? | ||
5671 | echo "$as_me:5671: \$? = $ac_status" >&5 | ||
5672 | (exit $ac_status); } && | ||
5673 | { ac_try='test -s conftest$ac_exeext' | ||
5674 | { (eval echo "$as_me:5674: \"$ac_try\"") >&5 | ||
5675 | (eval $ac_try) 2>&5 | ||
5676 | ac_status=$? | ||
5677 | echo "$as_me:5677: \$? = $ac_status" >&5 | ||
5678 | (exit $ac_status); }; }; then | ||
5679 | ac_cv_lib_z_deflate=yes | ||
5680 | else | ||
5681 | echo "$as_me: failed program was:" >&5 | ||
5682 | cat conftest.$ac_ext >&5 | ||
5683 | ac_cv_lib_z_deflate=no | ||
5684 | fi | ||
5685 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5686 | LIBS=$ac_check_lib_save_LIBS | ||
5687 | fi | ||
5688 | echo "$as_me:5688: result: $ac_cv_lib_z_deflate" >&5 | ||
5689 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
5690 | if test $ac_cv_lib_z_deflate = yes; then | ||
5691 | cat >>confdefs.h <<EOF | ||
5692 | #define HAVE_LIBZ 1 | ||
5693 | EOF | ||
5694 | |||
5695 | LIBS="-lz $LIBS" | ||
5696 | |||
5697 | else | ||
5698 | { { echo "$as_me:5698: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
5699 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
5700 | { (exit 1); exit 1; }; } | ||
5701 | fi | ||
5702 | |||
5703 | echo "$as_me:5703: checking for strcasecmp" >&5 | ||
5704 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
5705 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
5706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5707 | else | ||
5708 | cat >conftest.$ac_ext <<_ACEOF | ||
5709 | #line 5709 "configure" | ||
5710 | #include "confdefs.h" | ||
5711 | /* System header to define __stub macros and hopefully few prototypes, | ||
5712 | which can conflict with char strcasecmp (); below. */ | ||
5713 | #include <assert.h> | ||
5714 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5715 | #ifdef __cplusplus | ||
5716 | extern "C" | ||
5717 | #endif | ||
5718 | /* We use char because int might match the return type of a gcc2 | ||
5719 | builtin and then its argument prototype would still apply. */ | ||
5720 | char strcasecmp (); | ||
5721 | char (*f) (); | ||
5722 | |||
5723 | int | ||
5724 | main () | ||
5725 | { | ||
5726 | /* The GNU C library defines this for functions which it implements | ||
5727 | to always fail with ENOSYS. Some functions are actually named | ||
5728 | something starting with __ and the normal name is an alias. */ | ||
5729 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
5730 | choke me | ||
5731 | #else | ||
5732 | f = strcasecmp; | ||
5733 | #endif | ||
5734 | |||
5735 | ; | ||
5736 | return 0; | ||
5737 | } | ||
5738 | _ACEOF | ||
5739 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5740 | if { (eval echo "$as_me:5740: \"$ac_link\"") >&5 | ||
5741 | (eval $ac_link) 2>&5 | ||
5742 | ac_status=$? | ||
5743 | echo "$as_me:5743: \$? = $ac_status" >&5 | ||
5744 | (exit $ac_status); } && | ||
5745 | { ac_try='test -s conftest$ac_exeext' | ||
5746 | { (eval echo "$as_me:5746: \"$ac_try\"") >&5 | ||
5747 | (eval $ac_try) 2>&5 | ||
5748 | ac_status=$? | ||
5749 | echo "$as_me:5749: \$? = $ac_status" >&5 | ||
5750 | (exit $ac_status); }; }; then | ||
5751 | ac_cv_func_strcasecmp=yes | ||
5752 | else | ||
5753 | echo "$as_me: failed program was:" >&5 | ||
5754 | cat conftest.$ac_ext >&5 | ||
5755 | ac_cv_func_strcasecmp=no | ||
5756 | fi | ||
5757 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5758 | fi | ||
5759 | echo "$as_me:5759: result: $ac_cv_func_strcasecmp" >&5 | ||
5760 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
5761 | if test $ac_cv_func_strcasecmp = yes; then | ||
5762 | : | ||
5763 | else | ||
5764 | echo "$as_me:5764: checking for strcasecmp in -lresolv" >&5 | ||
5765 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
5766 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
5767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5768 | else | ||
5769 | ac_check_lib_save_LIBS=$LIBS | ||
5770 | LIBS="-lresolv $LIBS" | ||
5771 | cat >conftest.$ac_ext <<_ACEOF | ||
5772 | #line 5772 "configure" | ||
5773 | #include "confdefs.h" | ||
5774 | |||
5775 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5776 | #ifdef __cplusplus | ||
5777 | extern "C" | ||
5778 | #endif | ||
5779 | /* We use char because int might match the return type of a gcc2 | ||
5780 | builtin and then its argument prototype would still apply. */ | ||
5781 | char strcasecmp (); | ||
5782 | int | ||
5783 | main () | ||
5784 | { | ||
5785 | strcasecmp (); | ||
5786 | ; | ||
5787 | return 0; | ||
5788 | } | ||
5789 | _ACEOF | ||
5790 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5791 | if { (eval echo "$as_me:5791: \"$ac_link\"") >&5 | ||
5792 | (eval $ac_link) 2>&5 | ||
5793 | ac_status=$? | ||
5794 | echo "$as_me:5794: \$? = $ac_status" >&5 | ||
5795 | (exit $ac_status); } && | ||
5796 | { ac_try='test -s conftest$ac_exeext' | ||
5797 | { (eval echo "$as_me:5797: \"$ac_try\"") >&5 | ||
5798 | (eval $ac_try) 2>&5 | ||
5799 | ac_status=$? | ||
5800 | echo "$as_me:5800: \$? = $ac_status" >&5 | ||
5801 | (exit $ac_status); }; }; then | ||
5802 | ac_cv_lib_resolv_strcasecmp=yes | ||
5803 | else | ||
5804 | echo "$as_me: failed program was:" >&5 | ||
5805 | cat conftest.$ac_ext >&5 | ||
5806 | ac_cv_lib_resolv_strcasecmp=no | ||
5807 | fi | ||
5808 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5809 | LIBS=$ac_check_lib_save_LIBS | ||
5810 | fi | ||
5811 | echo "$as_me:5811: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
5812 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
5813 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
5814 | LIBS="$LIBS -lresolv" | ||
5815 | fi | ||
5816 | |||
5817 | fi | ||
5818 | |||
5819 | echo "$as_me:5819: checking for utimes" >&5 | ||
5820 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
5821 | if test "${ac_cv_func_utimes+set}" = set; then | ||
5822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5823 | else | ||
5824 | cat >conftest.$ac_ext <<_ACEOF | ||
5825 | #line 5825 "configure" | ||
5826 | #include "confdefs.h" | ||
5827 | /* System header to define __stub macros and hopefully few prototypes, | ||
5828 | which can conflict with char utimes (); below. */ | ||
5829 | #include <assert.h> | ||
5830 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5831 | #ifdef __cplusplus | ||
5832 | extern "C" | ||
5833 | #endif | ||
5834 | /* We use char because int might match the return type of a gcc2 | ||
5835 | builtin and then its argument prototype would still apply. */ | ||
5836 | char utimes (); | ||
5837 | char (*f) (); | ||
5838 | |||
5839 | int | ||
5840 | main () | ||
5841 | { | ||
5842 | /* The GNU C library defines this for functions which it implements | ||
5843 | to always fail with ENOSYS. Some functions are actually named | ||
5844 | something starting with __ and the normal name is an alias. */ | ||
5845 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
5846 | choke me | ||
5847 | #else | ||
5848 | f = utimes; | ||
5849 | #endif | ||
5850 | |||
5851 | ; | ||
5852 | return 0; | ||
5853 | } | ||
5854 | _ACEOF | ||
5855 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5856 | if { (eval echo "$as_me:5856: \"$ac_link\"") >&5 | ||
5857 | (eval $ac_link) 2>&5 | ||
5858 | ac_status=$? | ||
5859 | echo "$as_me:5859: \$? = $ac_status" >&5 | ||
5860 | (exit $ac_status); } && | ||
5861 | { ac_try='test -s conftest$ac_exeext' | ||
5862 | { (eval echo "$as_me:5862: \"$ac_try\"") >&5 | ||
5863 | (eval $ac_try) 2>&5 | ||
5864 | ac_status=$? | ||
5865 | echo "$as_me:5865: \$? = $ac_status" >&5 | ||
5866 | (exit $ac_status); }; }; then | ||
5867 | ac_cv_func_utimes=yes | ||
5868 | else | ||
5869 | echo "$as_me: failed program was:" >&5 | ||
5870 | cat conftest.$ac_ext >&5 | ||
5871 | ac_cv_func_utimes=no | ||
5872 | fi | ||
5873 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5874 | fi | ||
5875 | echo "$as_me:5875: result: $ac_cv_func_utimes" >&5 | ||
5876 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
5877 | if test $ac_cv_func_utimes = yes; then | ||
5878 | : | ||
5879 | else | ||
5880 | echo "$as_me:5880: checking for utimes in -lc89" >&5 | ||
5881 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
5882 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
5883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5884 | else | ||
5885 | ac_check_lib_save_LIBS=$LIBS | ||
5886 | LIBS="-lc89 $LIBS" | ||
5887 | cat >conftest.$ac_ext <<_ACEOF | ||
5888 | #line 5888 "configure" | ||
5889 | #include "confdefs.h" | ||
5890 | |||
5891 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5892 | #ifdef __cplusplus | ||
5893 | extern "C" | ||
5894 | #endif | ||
5895 | /* We use char because int might match the return type of a gcc2 | ||
5896 | builtin and then its argument prototype would still apply. */ | ||
5897 | char utimes (); | ||
5898 | int | ||
5899 | main () | ||
5900 | { | ||
5901 | utimes (); | ||
5902 | ; | ||
5903 | return 0; | ||
5904 | } | ||
5905 | _ACEOF | ||
5906 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5907 | if { (eval echo "$as_me:5907: \"$ac_link\"") >&5 | ||
5908 | (eval $ac_link) 2>&5 | ||
5909 | ac_status=$? | ||
5910 | echo "$as_me:5910: \$? = $ac_status" >&5 | ||
5911 | (exit $ac_status); } && | ||
5912 | { ac_try='test -s conftest$ac_exeext' | ||
5913 | { (eval echo "$as_me:5913: \"$ac_try\"") >&5 | ||
5914 | (eval $ac_try) 2>&5 | ||
5915 | ac_status=$? | ||
5916 | echo "$as_me:5916: \$? = $ac_status" >&5 | ||
5917 | (exit $ac_status); }; }; then | ||
5918 | ac_cv_lib_c89_utimes=yes | ||
5919 | else | ||
5920 | echo "$as_me: failed program was:" >&5 | ||
5921 | cat conftest.$ac_ext >&5 | ||
5922 | ac_cv_lib_c89_utimes=no | ||
5923 | fi | ||
5924 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5925 | LIBS=$ac_check_lib_save_LIBS | ||
5926 | fi | ||
5927 | echo "$as_me:5927: result: $ac_cv_lib_c89_utimes" >&5 | ||
5928 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
5929 | if test $ac_cv_lib_c89_utimes = yes; then | ||
5930 | cat >>confdefs.h <<\EOF | ||
5931 | #define HAVE_UTIMES 1 | ||
5932 | EOF | ||
5933 | |||
5934 | LIBS="$LIBS -lc89" | ||
5935 | fi | ||
5936 | |||
5937 | fi | ||
5938 | |||
5939 | for ac_header in libutil.h | ||
5940 | do | ||
5941 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5942 | echo "$as_me:5942: checking for $ac_header" >&5 | ||
5943 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5944 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5946 | else | ||
5947 | cat >conftest.$ac_ext <<_ACEOF | ||
5948 | #line 5948 "configure" | ||
5949 | #include "confdefs.h" | ||
5950 | #include <$ac_header> | ||
5951 | _ACEOF | ||
5952 | if { (eval echo "$as_me:5952: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5953 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5954 | ac_status=$? | ||
5955 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5956 | rm -f conftest.er1 | ||
5957 | cat conftest.err >&5 | ||
5958 | echo "$as_me:5958: \$? = $ac_status" >&5 | ||
5959 | (exit $ac_status); } >/dev/null; then | ||
5960 | if test -s conftest.err; then | ||
5961 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5962 | else | ||
5963 | ac_cpp_err= | ||
5964 | fi | ||
5965 | else | ||
5966 | ac_cpp_err=yes | ||
5967 | fi | ||
5968 | if test -z "$ac_cpp_err"; then | ||
5969 | eval "$as_ac_Header=yes" | ||
5970 | else | ||
5971 | echo "$as_me: failed program was:" >&5 | ||
5972 | cat conftest.$ac_ext >&5 | ||
5973 | eval "$as_ac_Header=no" | ||
5974 | fi | ||
5975 | rm -f conftest.err conftest.$ac_ext | ||
5976 | fi | ||
5977 | echo "$as_me:5977: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5978 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5979 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5980 | cat >>confdefs.h <<EOF | ||
5981 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5982 | EOF | ||
5983 | |||
5984 | fi | ||
5985 | done | ||
5986 | |||
5987 | echo "$as_me:5987: checking for library containing login" >&5 | ||
5988 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
5989 | if test "${ac_cv_search_login+set}" = set; then | ||
5990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5991 | else | ||
5992 | ac_func_search_save_LIBS=$LIBS | ||
5993 | ac_cv_search_login=no | ||
5994 | cat >conftest.$ac_ext <<_ACEOF | ||
5995 | #line 5995 "configure" | ||
5996 | #include "confdefs.h" | ||
5997 | |||
5998 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5999 | #ifdef __cplusplus | ||
6000 | extern "C" | ||
6001 | #endif | ||
6002 | /* We use char because int might match the return type of a gcc2 | ||
6003 | builtin and then its argument prototype would still apply. */ | ||
6004 | char login (); | ||
6005 | int | ||
6006 | main () | ||
6007 | { | ||
6008 | login (); | ||
6009 | ; | ||
6010 | return 0; | ||
6011 | } | ||
6012 | _ACEOF | ||
6013 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6014 | if { (eval echo "$as_me:6014: \"$ac_link\"") >&5 | ||
6015 | (eval $ac_link) 2>&5 | ||
6016 | ac_status=$? | ||
6017 | echo "$as_me:6017: \$? = $ac_status" >&5 | ||
6018 | (exit $ac_status); } && | ||
6019 | { ac_try='test -s conftest$ac_exeext' | ||
6020 | { (eval echo "$as_me:6020: \"$ac_try\"") >&5 | ||
6021 | (eval $ac_try) 2>&5 | ||
6022 | ac_status=$? | ||
6023 | echo "$as_me:6023: \$? = $ac_status" >&5 | ||
6024 | (exit $ac_status); }; }; then | ||
6025 | ac_cv_search_login="none required" | ||
6026 | else | ||
6027 | echo "$as_me: failed program was:" >&5 | ||
6028 | cat conftest.$ac_ext >&5 | ||
6029 | fi | ||
6030 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6031 | if test "$ac_cv_search_login" = no; then | ||
6032 | for ac_lib in util bsd; do | ||
6033 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
6034 | cat >conftest.$ac_ext <<_ACEOF | ||
6035 | #line 6035 "configure" | ||
6036 | #include "confdefs.h" | ||
6037 | |||
6038 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6039 | #ifdef __cplusplus | ||
6040 | extern "C" | ||
6041 | #endif | ||
6042 | /* We use char because int might match the return type of a gcc2 | ||
6043 | builtin and then its argument prototype would still apply. */ | ||
6044 | char login (); | ||
6045 | int | ||
6046 | main () | ||
6047 | { | ||
6048 | login (); | ||
6049 | ; | ||
6050 | return 0; | ||
6051 | } | ||
6052 | _ACEOF | ||
6053 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6054 | if { (eval echo "$as_me:6054: \"$ac_link\"") >&5 | ||
6055 | (eval $ac_link) 2>&5 | ||
6056 | ac_status=$? | ||
6057 | echo "$as_me:6057: \$? = $ac_status" >&5 | ||
6058 | (exit $ac_status); } && | ||
6059 | { ac_try='test -s conftest$ac_exeext' | ||
6060 | { (eval echo "$as_me:6060: \"$ac_try\"") >&5 | ||
6061 | (eval $ac_try) 2>&5 | ||
6062 | ac_status=$? | ||
6063 | echo "$as_me:6063: \$? = $ac_status" >&5 | ||
6064 | (exit $ac_status); }; }; then | ||
6065 | ac_cv_search_login="-l$ac_lib" | ||
6066 | break | ||
6067 | else | ||
6068 | echo "$as_me: failed program was:" >&5 | ||
6069 | cat conftest.$ac_ext >&5 | ||
6070 | fi | ||
6071 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6072 | done | ||
6073 | fi | ||
6074 | LIBS=$ac_func_search_save_LIBS | ||
6075 | fi | ||
6076 | echo "$as_me:6076: result: $ac_cv_search_login" >&5 | ||
6077 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
6078 | if test "$ac_cv_search_login" != no; then | ||
6079 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
6080 | cat >>confdefs.h <<\EOF | ||
6081 | #define HAVE_LOGIN 1 | ||
6082 | EOF | ||
6083 | |||
6084 | fi | ||
6085 | |||
6086 | for ac_func in logout updwtmp logwtmp | ||
6087 | do | ||
6088 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6089 | echo "$as_me:6089: checking for $ac_func" >&5 | ||
6090 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6091 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6093 | else | ||
6094 | cat >conftest.$ac_ext <<_ACEOF | ||
6095 | #line 6095 "configure" | ||
6096 | #include "confdefs.h" | ||
6097 | /* System header to define __stub macros and hopefully few prototypes, | ||
6098 | which can conflict with char $ac_func (); below. */ | ||
6099 | #include <assert.h> | ||
6100 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6101 | #ifdef __cplusplus | ||
6102 | extern "C" | ||
6103 | #endif | ||
6104 | /* We use char because int might match the return type of a gcc2 | ||
6105 | builtin and then its argument prototype would still apply. */ | ||
6106 | char $ac_func (); | ||
6107 | char (*f) (); | ||
6108 | |||
6109 | int | ||
6110 | main () | ||
6111 | { | ||
6112 | /* The GNU C library defines this for functions which it implements | ||
6113 | to always fail with ENOSYS. Some functions are actually named | ||
6114 | something starting with __ and the normal name is an alias. */ | ||
6115 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6116 | choke me | ||
6117 | #else | ||
6118 | f = $ac_func; | ||
6119 | #endif | ||
6120 | |||
6121 | ; | ||
6122 | return 0; | ||
6123 | } | ||
6124 | _ACEOF | ||
6125 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6126 | if { (eval echo "$as_me:6126: \"$ac_link\"") >&5 | ||
6127 | (eval $ac_link) 2>&5 | ||
6128 | ac_status=$? | ||
6129 | echo "$as_me:6129: \$? = $ac_status" >&5 | ||
6130 | (exit $ac_status); } && | ||
6131 | { ac_try='test -s conftest$ac_exeext' | ||
6132 | { (eval echo "$as_me:6132: \"$ac_try\"") >&5 | ||
6133 | (eval $ac_try) 2>&5 | ||
6134 | ac_status=$? | ||
6135 | echo "$as_me:6135: \$? = $ac_status" >&5 | ||
6136 | (exit $ac_status); }; }; then | ||
6137 | eval "$as_ac_var=yes" | ||
6138 | else | ||
6139 | echo "$as_me: failed program was:" >&5 | ||
6140 | cat conftest.$ac_ext >&5 | ||
6141 | eval "$as_ac_var=no" | ||
6142 | fi | ||
6143 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6144 | fi | ||
6145 | echo "$as_me:6145: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6146 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6147 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6148 | cat >>confdefs.h <<EOF | ||
6149 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6150 | EOF | ||
6151 | |||
6152 | fi | ||
6153 | done | ||
6154 | |||
6155 | for ac_func in strftime | ||
6156 | do | ||
6157 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6158 | echo "$as_me:6158: checking for $ac_func" >&5 | ||
6159 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6160 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6162 | else | ||
6163 | cat >conftest.$ac_ext <<_ACEOF | ||
6164 | #line 6164 "configure" | ||
6165 | #include "confdefs.h" | ||
6166 | /* System header to define __stub macros and hopefully few prototypes, | ||
6167 | which can conflict with char $ac_func (); below. */ | ||
6168 | #include <assert.h> | ||
6169 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6170 | #ifdef __cplusplus | ||
6171 | extern "C" | ||
6172 | #endif | ||
6173 | /* We use char because int might match the return type of a gcc2 | ||
6174 | builtin and then its argument prototype would still apply. */ | ||
6175 | char $ac_func (); | ||
6176 | char (*f) (); | ||
6177 | |||
6178 | int | ||
6179 | main () | ||
6180 | { | ||
6181 | /* The GNU C library defines this for functions which it implements | ||
6182 | to always fail with ENOSYS. Some functions are actually named | ||
6183 | something starting with __ and the normal name is an alias. */ | ||
6184 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6185 | choke me | ||
6186 | #else | ||
6187 | f = $ac_func; | ||
6188 | #endif | ||
6189 | |||
6190 | ; | ||
6191 | return 0; | ||
6192 | } | ||
6193 | _ACEOF | ||
6194 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6195 | if { (eval echo "$as_me:6195: \"$ac_link\"") >&5 | ||
6196 | (eval $ac_link) 2>&5 | ||
6197 | ac_status=$? | ||
6198 | echo "$as_me:6198: \$? = $ac_status" >&5 | ||
6199 | (exit $ac_status); } && | ||
6200 | { ac_try='test -s conftest$ac_exeext' | ||
6201 | { (eval echo "$as_me:6201: \"$ac_try\"") >&5 | ||
6202 | (eval $ac_try) 2>&5 | ||
6203 | ac_status=$? | ||
6204 | echo "$as_me:6204: \$? = $ac_status" >&5 | ||
6205 | (exit $ac_status); }; }; then | ||
6206 | eval "$as_ac_var=yes" | ||
6207 | else | ||
6208 | echo "$as_me: failed program was:" >&5 | ||
6209 | cat conftest.$ac_ext >&5 | ||
6210 | eval "$as_ac_var=no" | ||
6211 | fi | ||
6212 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6213 | fi | ||
6214 | echo "$as_me:6214: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6215 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6216 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6217 | cat >>confdefs.h <<EOF | ||
6218 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6219 | EOF | ||
6220 | |||
6221 | else | ||
6222 | # strftime is in -lintl on SCO UNIX. | ||
6223 | echo "$as_me:6223: checking for strftime in -lintl" >&5 | ||
6224 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
6225 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
6226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6227 | else | ||
6228 | ac_check_lib_save_LIBS=$LIBS | ||
6229 | LIBS="-lintl $LIBS" | ||
6230 | cat >conftest.$ac_ext <<_ACEOF | ||
6231 | #line 6231 "configure" | ||
6232 | #include "confdefs.h" | ||
6233 | |||
6234 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6235 | #ifdef __cplusplus | ||
6236 | extern "C" | ||
6237 | #endif | ||
6238 | /* We use char because int might match the return type of a gcc2 | ||
6239 | builtin and then its argument prototype would still apply. */ | ||
6240 | char strftime (); | ||
6241 | int | ||
6242 | main () | ||
6243 | { | ||
6244 | strftime (); | ||
6245 | ; | ||
6246 | return 0; | ||
6247 | } | ||
6248 | _ACEOF | ||
6249 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6250 | if { (eval echo "$as_me:6250: \"$ac_link\"") >&5 | ||
6251 | (eval $ac_link) 2>&5 | ||
6252 | ac_status=$? | ||
6253 | echo "$as_me:6253: \$? = $ac_status" >&5 | ||
6254 | (exit $ac_status); } && | ||
6255 | { ac_try='test -s conftest$ac_exeext' | ||
6256 | { (eval echo "$as_me:6256: \"$ac_try\"") >&5 | ||
6257 | (eval $ac_try) 2>&5 | ||
6258 | ac_status=$? | ||
6259 | echo "$as_me:6259: \$? = $ac_status" >&5 | ||
6260 | (exit $ac_status); }; }; then | ||
6261 | ac_cv_lib_intl_strftime=yes | ||
6262 | else | ||
6263 | echo "$as_me: failed program was:" >&5 | ||
6264 | cat conftest.$ac_ext >&5 | ||
6265 | ac_cv_lib_intl_strftime=no | ||
6266 | fi | ||
6267 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6268 | LIBS=$ac_check_lib_save_LIBS | ||
6269 | fi | ||
6270 | echo "$as_me:6270: result: $ac_cv_lib_intl_strftime" >&5 | ||
6271 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
6272 | if test $ac_cv_lib_intl_strftime = yes; then | ||
6273 | cat >>confdefs.h <<\EOF | ||
6274 | #define HAVE_STRFTIME 1 | ||
6275 | EOF | ||
6276 | |||
6277 | LIBS="-lintl $LIBS" | ||
6278 | fi | ||
6279 | |||
6280 | fi | ||
6281 | done | ||
6282 | |||
6283 | # Check for ALTDIRFUNC glob() extension | ||
6284 | echo "$as_me:6284: checking for GLOB_ALTDIRFUNC support" >&5 | ||
6285 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
6286 | cat >conftest.$ac_ext <<_ACEOF | ||
6287 | #line 6287 "configure" | ||
6288 | #include "confdefs.h" | ||
6289 | |||
6290 | #include <glob.h> | ||
6291 | #ifdef GLOB_ALTDIRFUNC | ||
6292 | FOUNDIT | ||
6293 | #endif | ||
6294 | |||
6295 | _ACEOF | ||
6296 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6297 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6298 | |||
6299 | cat >>confdefs.h <<\EOF | ||
6300 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
6301 | EOF | ||
6302 | |||
6303 | echo "$as_me:6303: result: yes" >&5 | ||
6304 | echo "${ECHO_T}yes" >&6 | ||
6305 | |||
6306 | else | ||
6307 | |||
6308 | echo "$as_me:6308: result: no" >&5 | ||
6309 | echo "${ECHO_T}no" >&6 | ||
6310 | |||
6311 | fi | ||
6312 | rm -f conftest* | ||
6313 | |||
6314 | # Check for g.gl_matchc glob() extension | ||
6315 | echo "$as_me:6315: checking for gl_matchc field in glob_t" >&5 | ||
6316 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
6317 | cat >conftest.$ac_ext <<_ACEOF | ||
6318 | #line 6318 "configure" | ||
6319 | #include "confdefs.h" | ||
6320 | |||
6321 | #include <glob.h> | ||
6322 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
6323 | |||
6324 | _ACEOF | ||
6325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6326 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6327 | |||
6328 | cat >>confdefs.h <<\EOF | ||
6329 | #define GLOB_HAS_GL_MATCHC 1 | ||
6330 | EOF | ||
6331 | |||
6332 | echo "$as_me:6332: result: yes" >&5 | ||
6333 | echo "${ECHO_T}yes" >&6 | ||
6334 | |||
6335 | else | ||
6336 | |||
6337 | echo "$as_me:6337: result: no" >&5 | ||
6338 | echo "${ECHO_T}no" >&6 | ||
6339 | |||
6340 | fi | ||
6341 | rm -f conftest* | ||
6342 | |||
6343 | echo "$as_me:6343: checking whether struct dirent allocates space for d_name" >&5 | ||
6344 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
6345 | if test "$cross_compiling" = yes; then | ||
6346 | { { echo "$as_me:6346: error: cannot run test program while cross compiling" >&5 | ||
6347 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6348 | { (exit 1); exit 1; }; } | ||
6349 | else | ||
6350 | cat >conftest.$ac_ext <<_ACEOF | ||
6351 | #line 6351 "configure" | ||
6352 | #include "confdefs.h" | ||
6353 | |||
6354 | #include <sys/types.h> | ||
6355 | #include <dirent.h> | ||
6356 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
6357 | |||
6358 | _ACEOF | ||
6359 | rm -f conftest$ac_exeext | ||
6360 | if { (eval echo "$as_me:6360: \"$ac_link\"") >&5 | ||
6361 | (eval $ac_link) 2>&5 | ||
6362 | ac_status=$? | ||
6363 | echo "$as_me:6363: \$? = $ac_status" >&5 | ||
6364 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6365 | { (eval echo "$as_me:6365: \"$ac_try\"") >&5 | ||
6366 | (eval $ac_try) 2>&5 | ||
6367 | ac_status=$? | ||
6368 | echo "$as_me:6368: \$? = $ac_status" >&5 | ||
6369 | (exit $ac_status); }; }; then | ||
6370 | echo "$as_me:6370: result: yes" >&5 | ||
6371 | echo "${ECHO_T}yes" >&6 | ||
6372 | else | ||
6373 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6374 | echo "$as_me: failed program was:" >&5 | ||
6375 | cat conftest.$ac_ext >&5 | ||
6376 | |||
6377 | echo "$as_me:6377: result: no" >&5 | ||
6378 | echo "${ECHO_T}no" >&6 | ||
6379 | cat >>confdefs.h <<\EOF | ||
6380 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
6381 | EOF | ||
6382 | |||
6383 | fi | ||
6384 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6385 | fi | ||
6386 | |||
6387 | # Check whether user wants S/Key support | ||
6388 | SKEY_MSG="no" | ||
6389 | |||
6390 | # Check whether --with-skey or --without-skey was given. | ||
6391 | if test "${with_skey+set}" = set; then | ||
6392 | withval="$with_skey" | ||
6393 | |||
6394 | if test "x$withval" != "xno" ; then | ||
6395 | |||
6396 | if test "x$withval" != "xyes" ; then | ||
6397 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
6398 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
6399 | fi | ||
6400 | |||
6401 | cat >>confdefs.h <<\EOF | ||
6402 | #define SKEY 1 | ||
6403 | EOF | ||
6404 | |||
6405 | LIBS="-lskey $LIBS" | ||
6406 | SKEY_MSG="yes" | ||
6407 | |||
6408 | echo "$as_me:6408: checking for s/key support" >&5 | ||
6409 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
6410 | if test "$cross_compiling" = yes; then | ||
6411 | { { echo "$as_me:6411: error: cannot run test program while cross compiling" >&5 | ||
6412 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6413 | { (exit 1); exit 1; }; } | ||
6414 | else | ||
6415 | cat >conftest.$ac_ext <<_ACEOF | ||
6416 | #line 6416 "configure" | ||
6417 | #include "confdefs.h" | ||
6418 | |||
6419 | #include <stdio.h> | ||
6420 | #include <skey.h> | ||
6421 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
6422 | |||
6423 | _ACEOF | ||
6424 | rm -f conftest$ac_exeext | ||
6425 | if { (eval echo "$as_me:6425: \"$ac_link\"") >&5 | ||
6426 | (eval $ac_link) 2>&5 | ||
6427 | ac_status=$? | ||
6428 | echo "$as_me:6428: \$? = $ac_status" >&5 | ||
6429 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6430 | { (eval echo "$as_me:6430: \"$ac_try\"") >&5 | ||
6431 | (eval $ac_try) 2>&5 | ||
6432 | ac_status=$? | ||
6433 | echo "$as_me:6433: \$? = $ac_status" >&5 | ||
6434 | (exit $ac_status); }; }; then | ||
6435 | echo "$as_me:6435: result: yes" >&5 | ||
6436 | echo "${ECHO_T}yes" >&6 | ||
6437 | else | ||
6438 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6439 | echo "$as_me: failed program was:" >&5 | ||
6440 | cat conftest.$ac_ext >&5 | ||
6441 | |||
6442 | echo "$as_me:6442: result: no" >&5 | ||
6443 | echo "${ECHO_T}no" >&6 | ||
6444 | { { echo "$as_me:6444: error: ** Incomplete or missing s/key libraries." >&5 | ||
6445 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
6446 | { (exit 1); exit 1; }; } | ||
6447 | |||
6448 | fi | ||
6449 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6450 | fi | ||
6451 | fi | ||
6452 | |||
6453 | fi; | ||
6454 | |||
6455 | # Check whether user wants TCP wrappers support | ||
6456 | TCPW_MSG="no" | ||
6457 | |||
6458 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
6459 | if test "${with_tcp_wrappers+set}" = set; then | ||
6460 | withval="$with_tcp_wrappers" | ||
6461 | |||
6462 | if test "x$withval" != "xno" ; then | ||
6463 | saved_LIBS="$LIBS" | ||
6464 | saved_LDFLAGS="$LDFLAGS" | ||
6465 | saved_CPPFLAGS="$CPPFLAGS" | ||
6466 | if test -n "${withval}" -a "${withval}" != "yes"; then | ||
6467 | if test -d "${withval}/lib"; then | ||
6468 | if test -n "${need_dash_r}"; then | ||
6469 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
6470 | else | ||
6471 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
6472 | fi | ||
6473 | else | ||
6474 | if test -n "${need_dash_r}"; then | ||
6475 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
6476 | else | ||
6477 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
6478 | fi | ||
6479 | fi | ||
6480 | if test -d "${withval}/include"; then | ||
6481 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
6482 | else | ||
6483 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
6484 | fi | ||
6485 | fi | ||
6486 | LIBWRAP="-lwrap" | ||
6487 | LIBS="$LIBWRAP $LIBS" | ||
6488 | echo "$as_me:6488: checking for libwrap" >&5 | ||
6489 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
6490 | cat >conftest.$ac_ext <<_ACEOF | ||
6491 | #line 6491 "configure" | ||
6492 | #include "confdefs.h" | ||
6493 | |||
6494 | #include <tcpd.h> | ||
6495 | int deny_severity = 0, allow_severity = 0; | ||
6496 | |||
6497 | int | ||
6498 | main () | ||
6499 | { | ||
6500 | hosts_access(0); | ||
6501 | ; | ||
6502 | return 0; | ||
6503 | } | ||
6504 | _ACEOF | ||
6505 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6506 | if { (eval echo "$as_me:6506: \"$ac_link\"") >&5 | ||
6507 | (eval $ac_link) 2>&5 | ||
6508 | ac_status=$? | ||
6509 | echo "$as_me:6509: \$? = $ac_status" >&5 | ||
6510 | (exit $ac_status); } && | ||
6511 | { ac_try='test -s conftest$ac_exeext' | ||
6512 | { (eval echo "$as_me:6512: \"$ac_try\"") >&5 | ||
6513 | (eval $ac_try) 2>&5 | ||
6514 | ac_status=$? | ||
6515 | echo "$as_me:6515: \$? = $ac_status" >&5 | ||
6516 | (exit $ac_status); }; }; then | ||
6517 | |||
6518 | echo "$as_me:6518: result: yes" >&5 | ||
6519 | echo "${ECHO_T}yes" >&6 | ||
6520 | cat >>confdefs.h <<\EOF | ||
6521 | #define LIBWRAP 1 | ||
6522 | EOF | ||
6523 | |||
6524 | TCPW_MSG="yes" | ||
6525 | |||
6526 | else | ||
6527 | echo "$as_me: failed program was:" >&5 | ||
6528 | cat conftest.$ac_ext >&5 | ||
6529 | |||
6530 | { { echo "$as_me:6530: error: *** libwrap missing" >&5 | ||
6531 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
6532 | { (exit 1); exit 1; }; } | ||
6533 | |||
6534 | fi | ||
6535 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6536 | LIBS="$saved_LIBS" | ||
6537 | fi | ||
6538 | |||
6539 | fi; | ||
6540 | |||
6541 | for ac_func in \ | ||
6542 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename \ | ||
6543 | bcopy bindresvport_sa clock fchmod fchown freeaddrinfo futimes \ | ||
6544 | getaddrinfo getcwd getgrouplist getnameinfo getopt \ | ||
6545 | getpeereid _getpty getrlimit getttyent glob inet_aton \ | ||
6546 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
6547 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ | ||
6548 | pstat readpassphrase realpath recvmsg rresvport_af sendmsg \ | ||
6549 | setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ | ||
6550 | setproctitle setregid setresgid setresuid setreuid setrlimit \ | ||
6551 | setsid setvbuf sigaction sigvec snprintf socketpair strerror \ | ||
6552 | strlcat strlcpy strmode strnvis sysconf tcgetpgrp \ | ||
6553 | truncate utimes vhangup vsnprintf waitpid \ | ||
6554 | |||
6555 | do | ||
6556 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6557 | echo "$as_me:6557: checking for $ac_func" >&5 | ||
6558 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6559 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6561 | else | ||
6562 | cat >conftest.$ac_ext <<_ACEOF | ||
6563 | #line 6563 "configure" | ||
6564 | #include "confdefs.h" | ||
6565 | /* System header to define __stub macros and hopefully few prototypes, | ||
6566 | which can conflict with char $ac_func (); below. */ | ||
6567 | #include <assert.h> | ||
6568 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6569 | #ifdef __cplusplus | ||
6570 | extern "C" | ||
6571 | #endif | ||
6572 | /* We use char because int might match the return type of a gcc2 | ||
6573 | builtin and then its argument prototype would still apply. */ | ||
6574 | char $ac_func (); | ||
6575 | char (*f) (); | ||
6576 | |||
6577 | int | ||
6578 | main () | ||
6579 | { | ||
6580 | /* The GNU C library defines this for functions which it implements | ||
6581 | to always fail with ENOSYS. Some functions are actually named | ||
6582 | something starting with __ and the normal name is an alias. */ | ||
6583 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6584 | choke me | ||
6585 | #else | ||
6586 | f = $ac_func; | ||
6587 | #endif | ||
6588 | |||
6589 | ; | ||
6590 | return 0; | ||
6591 | } | ||
6592 | _ACEOF | ||
6593 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6594 | if { (eval echo "$as_me:6594: \"$ac_link\"") >&5 | ||
6595 | (eval $ac_link) 2>&5 | ||
6596 | ac_status=$? | ||
6597 | echo "$as_me:6597: \$? = $ac_status" >&5 | ||
6598 | (exit $ac_status); } && | ||
6599 | { ac_try='test -s conftest$ac_exeext' | ||
6600 | { (eval echo "$as_me:6600: \"$ac_try\"") >&5 | ||
6601 | (eval $ac_try) 2>&5 | ||
6602 | ac_status=$? | ||
6603 | echo "$as_me:6603: \$? = $ac_status" >&5 | ||
6604 | (exit $ac_status); }; }; then | ||
6605 | eval "$as_ac_var=yes" | ||
6606 | else | ||
6607 | echo "$as_me: failed program was:" >&5 | ||
6608 | cat conftest.$ac_ext >&5 | ||
6609 | eval "$as_ac_var=no" | ||
6610 | fi | ||
6611 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6612 | fi | ||
6613 | echo "$as_me:6613: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6614 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6615 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6616 | cat >>confdefs.h <<EOF | ||
6617 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6618 | EOF | ||
6619 | |||
6620 | fi | ||
6621 | done | ||
6622 | |||
6623 | # IRIX has a const char return value for gai_strerror() | ||
6624 | |||
6625 | for ac_func in gai_strerror | ||
6626 | do | ||
6627 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6628 | echo "$as_me:6628: checking for $ac_func" >&5 | ||
6629 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6630 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6632 | else | ||
6633 | cat >conftest.$ac_ext <<_ACEOF | ||
6634 | #line 6634 "configure" | ||
6635 | #include "confdefs.h" | ||
6636 | /* System header to define __stub macros and hopefully few prototypes, | ||
6637 | which can conflict with char $ac_func (); below. */ | ||
6638 | #include <assert.h> | ||
6639 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6640 | #ifdef __cplusplus | ||
6641 | extern "C" | ||
6642 | #endif | ||
6643 | /* We use char because int might match the return type of a gcc2 | ||
6644 | builtin and then its argument prototype would still apply. */ | ||
6645 | char $ac_func (); | ||
6646 | char (*f) (); | ||
6647 | |||
6648 | int | ||
6649 | main () | ||
6650 | { | ||
6651 | /* The GNU C library defines this for functions which it implements | ||
6652 | to always fail with ENOSYS. Some functions are actually named | ||
6653 | something starting with __ and the normal name is an alias. */ | ||
6654 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6655 | choke me | ||
6656 | #else | ||
6657 | f = $ac_func; | ||
6658 | #endif | ||
6659 | |||
6660 | ; | ||
6661 | return 0; | ||
6662 | } | ||
6663 | _ACEOF | ||
6664 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6665 | if { (eval echo "$as_me:6665: \"$ac_link\"") >&5 | ||
6666 | (eval $ac_link) 2>&5 | ||
6667 | ac_status=$? | ||
6668 | echo "$as_me:6668: \$? = $ac_status" >&5 | ||
6669 | (exit $ac_status); } && | ||
6670 | { ac_try='test -s conftest$ac_exeext' | ||
6671 | { (eval echo "$as_me:6671: \"$ac_try\"") >&5 | ||
6672 | (eval $ac_try) 2>&5 | ||
6673 | ac_status=$? | ||
6674 | echo "$as_me:6674: \$? = $ac_status" >&5 | ||
6675 | (exit $ac_status); }; }; then | ||
6676 | eval "$as_ac_var=yes" | ||
6677 | else | ||
6678 | echo "$as_me: failed program was:" >&5 | ||
6679 | cat conftest.$ac_ext >&5 | ||
6680 | eval "$as_ac_var=no" | ||
6681 | fi | ||
6682 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6683 | fi | ||
6684 | echo "$as_me:6684: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6685 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6686 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6687 | cat >>confdefs.h <<EOF | ||
6688 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6689 | EOF | ||
6690 | |||
6691 | cat >>confdefs.h <<\EOF | ||
6692 | #define HAVE_GAI_STRERROR 1 | ||
6693 | EOF | ||
6694 | |||
6695 | cat >conftest.$ac_ext <<_ACEOF | ||
6696 | #line 6696 "configure" | ||
6697 | #include "confdefs.h" | ||
6698 | |||
6699 | #include <sys/types.h> | ||
6700 | #include <sys/socket.h> | ||
6701 | #include <netdb.h> | ||
6702 | |||
6703 | const char *gai_strerror(int); | ||
6704 | int | ||
6705 | main () | ||
6706 | { | ||
6707 | |||
6708 | char *str; | ||
6709 | |||
6710 | str = gai_strerror(0); | ||
6711 | ; | ||
6712 | return 0; | ||
6713 | } | ||
6714 | _ACEOF | ||
6715 | rm -f conftest.$ac_objext | ||
6716 | if { (eval echo "$as_me:6716: \"$ac_compile\"") >&5 | ||
6717 | (eval $ac_compile) 2>&5 | ||
6718 | ac_status=$? | ||
6719 | echo "$as_me:6719: \$? = $ac_status" >&5 | ||
6720 | (exit $ac_status); } && | ||
6721 | { ac_try='test -s conftest.$ac_objext' | ||
6722 | { (eval echo "$as_me:6722: \"$ac_try\"") >&5 | ||
6723 | (eval $ac_try) 2>&5 | ||
6724 | ac_status=$? | ||
6725 | echo "$as_me:6725: \$? = $ac_status" >&5 | ||
6726 | (exit $ac_status); }; }; then | ||
6727 | |||
6728 | cat >>confdefs.h <<\EOF | ||
6729 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
6730 | EOF | ||
6731 | |||
6732 | else | ||
6733 | echo "$as_me: failed program was:" >&5 | ||
6734 | cat conftest.$ac_ext >&5 | ||
6735 | fi | ||
6736 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
6737 | fi | ||
6738 | done | ||
6739 | |||
6740 | echo "$as_me:6740: checking for library containing nanosleep" >&5 | ||
6741 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
6742 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
6743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6744 | else | ||
6745 | ac_func_search_save_LIBS=$LIBS | ||
6746 | ac_cv_search_nanosleep=no | ||
6747 | cat >conftest.$ac_ext <<_ACEOF | ||
6748 | #line 6748 "configure" | ||
6749 | #include "confdefs.h" | ||
6750 | |||
6751 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6752 | #ifdef __cplusplus | ||
6753 | extern "C" | ||
6754 | #endif | ||
6755 | /* We use char because int might match the return type of a gcc2 | ||
6756 | builtin and then its argument prototype would still apply. */ | ||
6757 | char nanosleep (); | ||
6758 | int | ||
6759 | main () | ||
6760 | { | ||
6761 | nanosleep (); | ||
6762 | ; | ||
6763 | return 0; | ||
6764 | } | ||
6765 | _ACEOF | ||
6766 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6767 | if { (eval echo "$as_me:6767: \"$ac_link\"") >&5 | ||
6768 | (eval $ac_link) 2>&5 | ||
6769 | ac_status=$? | ||
6770 | echo "$as_me:6770: \$? = $ac_status" >&5 | ||
6771 | (exit $ac_status); } && | ||
6772 | { ac_try='test -s conftest$ac_exeext' | ||
6773 | { (eval echo "$as_me:6773: \"$ac_try\"") >&5 | ||
6774 | (eval $ac_try) 2>&5 | ||
6775 | ac_status=$? | ||
6776 | echo "$as_me:6776: \$? = $ac_status" >&5 | ||
6777 | (exit $ac_status); }; }; then | ||
6778 | ac_cv_search_nanosleep="none required" | ||
6779 | else | ||
6780 | echo "$as_me: failed program was:" >&5 | ||
6781 | cat conftest.$ac_ext >&5 | ||
6782 | fi | ||
6783 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6784 | if test "$ac_cv_search_nanosleep" = no; then | ||
6785 | for ac_lib in rt posix4; do | ||
6786 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
6787 | cat >conftest.$ac_ext <<_ACEOF | ||
6788 | #line 6788 "configure" | ||
6789 | #include "confdefs.h" | ||
6790 | |||
6791 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6792 | #ifdef __cplusplus | ||
6793 | extern "C" | ||
6794 | #endif | ||
6795 | /* We use char because int might match the return type of a gcc2 | ||
6796 | builtin and then its argument prototype would still apply. */ | ||
6797 | char nanosleep (); | ||
6798 | int | ||
6799 | main () | ||
6800 | { | ||
6801 | nanosleep (); | ||
6802 | ; | ||
6803 | return 0; | ||
6804 | } | ||
6805 | _ACEOF | ||
6806 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6807 | if { (eval echo "$as_me:6807: \"$ac_link\"") >&5 | ||
6808 | (eval $ac_link) 2>&5 | ||
6809 | ac_status=$? | ||
6810 | echo "$as_me:6810: \$? = $ac_status" >&5 | ||
6811 | (exit $ac_status); } && | ||
6812 | { ac_try='test -s conftest$ac_exeext' | ||
6813 | { (eval echo "$as_me:6813: \"$ac_try\"") >&5 | ||
6814 | (eval $ac_try) 2>&5 | ||
6815 | ac_status=$? | ||
6816 | echo "$as_me:6816: \$? = $ac_status" >&5 | ||
6817 | (exit $ac_status); }; }; then | ||
6818 | ac_cv_search_nanosleep="-l$ac_lib" | ||
6819 | break | ||
6820 | else | ||
6821 | echo "$as_me: failed program was:" >&5 | ||
6822 | cat conftest.$ac_ext >&5 | ||
6823 | fi | ||
6824 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6825 | done | ||
6826 | fi | ||
6827 | LIBS=$ac_func_search_save_LIBS | ||
6828 | fi | ||
6829 | echo "$as_me:6829: result: $ac_cv_search_nanosleep" >&5 | ||
6830 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
6831 | if test "$ac_cv_search_nanosleep" != no; then | ||
6832 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
6833 | cat >>confdefs.h <<\EOF | ||
6834 | #define HAVE_NANOSLEEP 1 | ||
6835 | EOF | ||
6836 | |||
6837 | fi | ||
6838 | |||
6839 | echo "$as_me:6839: checking for ANSI C header files" >&5 | ||
6840 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
6841 | if test "${ac_cv_header_stdc+set}" = set; then | ||
6842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6843 | else | ||
6844 | cat >conftest.$ac_ext <<_ACEOF | ||
6845 | #line 6845 "configure" | ||
6846 | #include "confdefs.h" | ||
6847 | #include <stdlib.h> | ||
6848 | #include <stdarg.h> | ||
6849 | #include <string.h> | ||
6850 | #include <float.h> | ||
6851 | |||
6852 | _ACEOF | ||
6853 | if { (eval echo "$as_me:6853: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6855 | ac_status=$? | ||
6856 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
6857 | rm -f conftest.er1 | ||
6858 | cat conftest.err >&5 | ||
6859 | echo "$as_me:6859: \$? = $ac_status" >&5 | ||
6860 | (exit $ac_status); } >/dev/null; then | ||
6861 | if test -s conftest.err; then | ||
6862 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6863 | else | ||
6864 | ac_cpp_err= | ||
6865 | fi | ||
6866 | else | ||
6867 | ac_cpp_err=yes | ||
6868 | fi | ||
6869 | if test -z "$ac_cpp_err"; then | ||
6870 | ac_cv_header_stdc=yes | ||
6871 | else | ||
6872 | echo "$as_me: failed program was:" >&5 | ||
6873 | cat conftest.$ac_ext >&5 | ||
6874 | ac_cv_header_stdc=no | ||
6875 | fi | ||
6876 | rm -f conftest.err conftest.$ac_ext | ||
6877 | |||
6878 | if test $ac_cv_header_stdc = yes; then | ||
6879 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
6880 | cat >conftest.$ac_ext <<_ACEOF | ||
6881 | #line 6881 "configure" | ||
6882 | #include "confdefs.h" | ||
6883 | #include <string.h> | ||
6884 | |||
6885 | _ACEOF | ||
6886 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6887 | egrep "memchr" >/dev/null 2>&1; then | ||
6888 | : | ||
6889 | else | ||
6890 | ac_cv_header_stdc=no | ||
6891 | fi | ||
6892 | rm -f conftest* | ||
6893 | |||
6894 | fi | ||
6895 | |||
6896 | if test $ac_cv_header_stdc = yes; then | ||
6897 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
6898 | cat >conftest.$ac_ext <<_ACEOF | ||
6899 | #line 6899 "configure" | ||
6900 | #include "confdefs.h" | ||
6901 | #include <stdlib.h> | ||
6902 | |||
6903 | _ACEOF | ||
6904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6905 | egrep "free" >/dev/null 2>&1; then | ||
6906 | : | ||
6907 | else | ||
6908 | ac_cv_header_stdc=no | ||
6909 | fi | ||
6910 | rm -f conftest* | ||
6911 | |||
6912 | fi | ||
6913 | |||
6914 | if test $ac_cv_header_stdc = yes; then | ||
6915 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
6916 | if test "$cross_compiling" = yes; then | ||
6917 | : | ||
6918 | else | ||
6919 | cat >conftest.$ac_ext <<_ACEOF | ||
6920 | #line 6920 "configure" | ||
6921 | #include "confdefs.h" | ||
6922 | #include <ctype.h> | ||
6923 | #if ((' ' & 0x0FF) == 0x020) | ||
6924 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
6925 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
6926 | #else | ||
6927 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | ||
6928 | || ('j' <= (c) && (c) <= 'r') \ | ||
6929 | || ('s' <= (c) && (c) <= 'z')) | ||
6930 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
6931 | #endif | ||
6932 | |||
6933 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
6934 | int | ||
6935 | main () | ||
6936 | { | ||
6937 | int i; | ||
6938 | for (i = 0; i < 256; i++) | ||
6939 | if (XOR (islower (i), ISLOWER (i)) | ||
6940 | || toupper (i) != TOUPPER (i)) | ||
6941 | exit(2); | ||
6942 | exit (0); | ||
6943 | } | ||
6944 | _ACEOF | ||
6945 | rm -f conftest$ac_exeext | ||
6946 | if { (eval echo "$as_me:6946: \"$ac_link\"") >&5 | ||
6947 | (eval $ac_link) 2>&5 | ||
6948 | ac_status=$? | ||
6949 | echo "$as_me:6949: \$? = $ac_status" >&5 | ||
6950 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6951 | { (eval echo "$as_me:6951: \"$ac_try\"") >&5 | ||
6952 | (eval $ac_try) 2>&5 | ||
6953 | ac_status=$? | ||
6954 | echo "$as_me:6954: \$? = $ac_status" >&5 | ||
6955 | (exit $ac_status); }; }; then | ||
6956 | : | ||
6957 | else | ||
6958 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6959 | echo "$as_me: failed program was:" >&5 | ||
6960 | cat conftest.$ac_ext >&5 | ||
6961 | ac_cv_header_stdc=no | ||
6962 | fi | ||
6963 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6964 | fi | ||
6965 | fi | ||
6966 | fi | ||
6967 | echo "$as_me:6967: result: $ac_cv_header_stdc" >&5 | ||
6968 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
6969 | if test $ac_cv_header_stdc = yes; then | ||
6970 | |||
6971 | cat >>confdefs.h <<\EOF | ||
6972 | #define STDC_HEADERS 1 | ||
6973 | EOF | ||
6974 | |||
6975 | fi | ||
6976 | |||
6977 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
6978 | |||
6979 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
6980 | inttypes.h stdint.h unistd.h | ||
6981 | do | ||
6982 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6983 | echo "$as_me:6983: checking for $ac_header" >&5 | ||
6984 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6985 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6987 | else | ||
6988 | cat >conftest.$ac_ext <<_ACEOF | ||
6989 | #line 6989 "configure" | ||
6990 | #include "confdefs.h" | ||
6991 | $ac_includes_default | ||
6992 | #include <$ac_header> | ||
6993 | _ACEOF | ||
6994 | rm -f conftest.$ac_objext | ||
6995 | if { (eval echo "$as_me:6995: \"$ac_compile\"") >&5 | ||
6996 | (eval $ac_compile) 2>&5 | ||
6997 | ac_status=$? | ||
6998 | echo "$as_me:6998: \$? = $ac_status" >&5 | ||
6999 | (exit $ac_status); } && | ||
7000 | { ac_try='test -s conftest.$ac_objext' | ||
7001 | { (eval echo "$as_me:7001: \"$ac_try\"") >&5 | ||
7002 | (eval $ac_try) 2>&5 | ||
7003 | ac_status=$? | ||
7004 | echo "$as_me:7004: \$? = $ac_status" >&5 | ||
7005 | (exit $ac_status); }; }; then | ||
7006 | eval "$as_ac_Header=yes" | ||
7007 | else | ||
7008 | echo "$as_me: failed program was:" >&5 | ||
7009 | cat conftest.$ac_ext >&5 | ||
7010 | eval "$as_ac_Header=no" | ||
7011 | fi | ||
7012 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7013 | fi | ||
7014 | echo "$as_me:7014: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7015 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7016 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7017 | cat >>confdefs.h <<EOF | ||
7018 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7019 | EOF | ||
7020 | |||
7021 | fi | ||
7022 | done | ||
7023 | |||
7024 | echo "$as_me:7024: checking whether strsep is declared" >&5 | ||
7025 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
7026 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
7027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7028 | else | ||
7029 | cat >conftest.$ac_ext <<_ACEOF | ||
7030 | #line 7030 "configure" | ||
7031 | #include "confdefs.h" | ||
7032 | $ac_includes_default | ||
7033 | int | ||
7034 | main () | ||
7035 | { | ||
7036 | #ifndef strsep | ||
7037 | char *p = (char *) strsep; | ||
7038 | #endif | ||
7039 | |||
7040 | ; | ||
7041 | return 0; | ||
7042 | } | ||
7043 | _ACEOF | ||
7044 | rm -f conftest.$ac_objext | ||
7045 | if { (eval echo "$as_me:7045: \"$ac_compile\"") >&5 | ||
7046 | (eval $ac_compile) 2>&5 | ||
7047 | ac_status=$? | ||
7048 | echo "$as_me:7048: \$? = $ac_status" >&5 | ||
7049 | (exit $ac_status); } && | ||
7050 | { ac_try='test -s conftest.$ac_objext' | ||
7051 | { (eval echo "$as_me:7051: \"$ac_try\"") >&5 | ||
7052 | (eval $ac_try) 2>&5 | ||
7053 | ac_status=$? | ||
7054 | echo "$as_me:7054: \$? = $ac_status" >&5 | ||
7055 | (exit $ac_status); }; }; then | ||
7056 | ac_cv_have_decl_strsep=yes | ||
7057 | else | ||
7058 | echo "$as_me: failed program was:" >&5 | ||
7059 | cat conftest.$ac_ext >&5 | ||
7060 | ac_cv_have_decl_strsep=no | ||
7061 | fi | ||
7062 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7063 | fi | ||
7064 | echo "$as_me:7064: result: $ac_cv_have_decl_strsep" >&5 | ||
7065 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
7066 | if test $ac_cv_have_decl_strsep = yes; then | ||
7067 | |||
7068 | for ac_func in strsep | ||
7069 | do | ||
7070 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7071 | echo "$as_me:7071: checking for $ac_func" >&5 | ||
7072 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7073 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7075 | else | ||
7076 | cat >conftest.$ac_ext <<_ACEOF | ||
7077 | #line 7077 "configure" | ||
7078 | #include "confdefs.h" | ||
7079 | /* System header to define __stub macros and hopefully few prototypes, | ||
7080 | which can conflict with char $ac_func (); below. */ | ||
7081 | #include <assert.h> | ||
7082 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7083 | #ifdef __cplusplus | ||
7084 | extern "C" | ||
7085 | #endif | ||
7086 | /* We use char because int might match the return type of a gcc2 | ||
7087 | builtin and then its argument prototype would still apply. */ | ||
7088 | char $ac_func (); | ||
7089 | char (*f) (); | ||
7090 | |||
7091 | int | ||
7092 | main () | ||
7093 | { | ||
7094 | /* The GNU C library defines this for functions which it implements | ||
7095 | to always fail with ENOSYS. Some functions are actually named | ||
7096 | something starting with __ and the normal name is an alias. */ | ||
7097 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7098 | choke me | ||
7099 | #else | ||
7100 | f = $ac_func; | ||
7101 | #endif | ||
7102 | |||
7103 | ; | ||
7104 | return 0; | ||
7105 | } | ||
7106 | _ACEOF | ||
7107 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7108 | if { (eval echo "$as_me:7108: \"$ac_link\"") >&5 | ||
7109 | (eval $ac_link) 2>&5 | ||
7110 | ac_status=$? | ||
7111 | echo "$as_me:7111: \$? = $ac_status" >&5 | ||
7112 | (exit $ac_status); } && | ||
7113 | { ac_try='test -s conftest$ac_exeext' | ||
7114 | { (eval echo "$as_me:7114: \"$ac_try\"") >&5 | ||
7115 | (eval $ac_try) 2>&5 | ||
7116 | ac_status=$? | ||
7117 | echo "$as_me:7117: \$? = $ac_status" >&5 | ||
7118 | (exit $ac_status); }; }; then | ||
7119 | eval "$as_ac_var=yes" | ||
7120 | else | ||
7121 | echo "$as_me: failed program was:" >&5 | ||
7122 | cat conftest.$ac_ext >&5 | ||
7123 | eval "$as_ac_var=no" | ||
7124 | fi | ||
7125 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7126 | fi | ||
7127 | echo "$as_me:7127: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7128 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7129 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7130 | cat >>confdefs.h <<EOF | ||
7131 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7132 | EOF | ||
7133 | |||
7134 | fi | ||
7135 | done | ||
7136 | |||
7137 | fi | ||
7138 | |||
7139 | echo "$as_me:7139: checking whether getrusage is declared" >&5 | ||
7140 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6 | ||
7141 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
7142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7143 | else | ||
7144 | cat >conftest.$ac_ext <<_ACEOF | ||
7145 | #line 7145 "configure" | ||
7146 | #include "confdefs.h" | ||
7147 | $ac_includes_default | ||
7148 | int | ||
7149 | main () | ||
7150 | { | ||
7151 | #ifndef getrusage | ||
7152 | char *p = (char *) getrusage; | ||
7153 | #endif | ||
7154 | |||
7155 | ; | ||
7156 | return 0; | ||
7157 | } | ||
7158 | _ACEOF | ||
7159 | rm -f conftest.$ac_objext | ||
7160 | if { (eval echo "$as_me:7160: \"$ac_compile\"") >&5 | ||
7161 | (eval $ac_compile) 2>&5 | ||
7162 | ac_status=$? | ||
7163 | echo "$as_me:7163: \$? = $ac_status" >&5 | ||
7164 | (exit $ac_status); } && | ||
7165 | { ac_try='test -s conftest.$ac_objext' | ||
7166 | { (eval echo "$as_me:7166: \"$ac_try\"") >&5 | ||
7167 | (eval $ac_try) 2>&5 | ||
7168 | ac_status=$? | ||
7169 | echo "$as_me:7169: \$? = $ac_status" >&5 | ||
7170 | (exit $ac_status); }; }; then | ||
7171 | ac_cv_have_decl_getrusage=yes | ||
7172 | else | ||
7173 | echo "$as_me: failed program was:" >&5 | ||
7174 | cat conftest.$ac_ext >&5 | ||
7175 | ac_cv_have_decl_getrusage=no | ||
7176 | fi | ||
7177 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7178 | fi | ||
7179 | echo "$as_me:7179: result: $ac_cv_have_decl_getrusage" >&5 | ||
7180 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6 | ||
7181 | if test $ac_cv_have_decl_getrusage = yes; then | ||
7182 | |||
7183 | for ac_func in getrusage | ||
7184 | do | ||
7185 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7186 | echo "$as_me:7186: checking for $ac_func" >&5 | ||
7187 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7188 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7190 | else | ||
7191 | cat >conftest.$ac_ext <<_ACEOF | ||
7192 | #line 7192 "configure" | ||
7193 | #include "confdefs.h" | ||
7194 | /* System header to define __stub macros and hopefully few prototypes, | ||
7195 | which can conflict with char $ac_func (); below. */ | ||
7196 | #include <assert.h> | ||
7197 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7198 | #ifdef __cplusplus | ||
7199 | extern "C" | ||
7200 | #endif | ||
7201 | /* We use char because int might match the return type of a gcc2 | ||
7202 | builtin and then its argument prototype would still apply. */ | ||
7203 | char $ac_func (); | ||
7204 | char (*f) (); | ||
7205 | |||
7206 | int | ||
7207 | main () | ||
7208 | { | ||
7209 | /* The GNU C library defines this for functions which it implements | ||
7210 | to always fail with ENOSYS. Some functions are actually named | ||
7211 | something starting with __ and the normal name is an alias. */ | ||
7212 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7213 | choke me | ||
7214 | #else | ||
7215 | f = $ac_func; | ||
7216 | #endif | ||
7217 | |||
7218 | ; | ||
7219 | return 0; | ||
7220 | } | ||
7221 | _ACEOF | ||
7222 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7223 | if { (eval echo "$as_me:7223: \"$ac_link\"") >&5 | ||
7224 | (eval $ac_link) 2>&5 | ||
7225 | ac_status=$? | ||
7226 | echo "$as_me:7226: \$? = $ac_status" >&5 | ||
7227 | (exit $ac_status); } && | ||
7228 | { ac_try='test -s conftest$ac_exeext' | ||
7229 | { (eval echo "$as_me:7229: \"$ac_try\"") >&5 | ||
7230 | (eval $ac_try) 2>&5 | ||
7231 | ac_status=$? | ||
7232 | echo "$as_me:7232: \$? = $ac_status" >&5 | ||
7233 | (exit $ac_status); }; }; then | ||
7234 | eval "$as_ac_var=yes" | ||
7235 | else | ||
7236 | echo "$as_me: failed program was:" >&5 | ||
7237 | cat conftest.$ac_ext >&5 | ||
7238 | eval "$as_ac_var=no" | ||
7239 | fi | ||
7240 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7241 | fi | ||
7242 | echo "$as_me:7242: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7243 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7244 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7245 | cat >>confdefs.h <<EOF | ||
7246 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7247 | EOF | ||
7248 | |||
7249 | fi | ||
7250 | done | ||
7251 | |||
7252 | fi | ||
7253 | |||
7254 | echo "$as_me:7254: checking whether tcsendbreak is declared" >&5 | ||
7255 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6 | ||
7256 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
7257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7258 | else | ||
7259 | cat >conftest.$ac_ext <<_ACEOF | ||
7260 | #line 7260 "configure" | ||
7261 | #include "confdefs.h" | ||
7262 | #include <termios.h> | ||
7263 | |||
7264 | int | ||
7265 | main () | ||
7266 | { | ||
7267 | #ifndef tcsendbreak | ||
7268 | char *p = (char *) tcsendbreak; | ||
7269 | #endif | ||
7270 | |||
7271 | ; | ||
7272 | return 0; | ||
7273 | } | ||
7274 | _ACEOF | ||
7275 | rm -f conftest.$ac_objext | ||
7276 | if { (eval echo "$as_me:7276: \"$ac_compile\"") >&5 | ||
7277 | (eval $ac_compile) 2>&5 | ||
7278 | ac_status=$? | ||
7279 | echo "$as_me:7279: \$? = $ac_status" >&5 | ||
7280 | (exit $ac_status); } && | ||
7281 | { ac_try='test -s conftest.$ac_objext' | ||
7282 | { (eval echo "$as_me:7282: \"$ac_try\"") >&5 | ||
7283 | (eval $ac_try) 2>&5 | ||
7284 | ac_status=$? | ||
7285 | echo "$as_me:7285: \$? = $ac_status" >&5 | ||
7286 | (exit $ac_status); }; }; then | ||
7287 | ac_cv_have_decl_tcsendbreak=yes | ||
7288 | else | ||
7289 | echo "$as_me: failed program was:" >&5 | ||
7290 | cat conftest.$ac_ext >&5 | ||
7291 | ac_cv_have_decl_tcsendbreak=no | ||
7292 | fi | ||
7293 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7294 | fi | ||
7295 | echo "$as_me:7295: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
7296 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6 | ||
7297 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
7298 | cat >>confdefs.h <<\EOF | ||
7299 | #define HAVE_TCSENDBREAK 1 | ||
7300 | EOF | ||
7301 | |||
7302 | else | ||
7303 | |||
7304 | for ac_func in tcsendbreak | ||
7305 | do | ||
7306 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7307 | echo "$as_me:7307: checking for $ac_func" >&5 | ||
7308 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7309 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7311 | else | ||
7312 | cat >conftest.$ac_ext <<_ACEOF | ||
7313 | #line 7313 "configure" | ||
7314 | #include "confdefs.h" | ||
7315 | /* System header to define __stub macros and hopefully few prototypes, | ||
7316 | which can conflict with char $ac_func (); below. */ | ||
7317 | #include <assert.h> | ||
7318 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7319 | #ifdef __cplusplus | ||
7320 | extern "C" | ||
7321 | #endif | ||
7322 | /* We use char because int might match the return type of a gcc2 | ||
7323 | builtin and then its argument prototype would still apply. */ | ||
7324 | char $ac_func (); | ||
7325 | char (*f) (); | ||
7326 | |||
7327 | int | ||
7328 | main () | ||
7329 | { | ||
7330 | /* The GNU C library defines this for functions which it implements | ||
7331 | to always fail with ENOSYS. Some functions are actually named | ||
7332 | something starting with __ and the normal name is an alias. */ | ||
7333 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7334 | choke me | ||
7335 | #else | ||
7336 | f = $ac_func; | ||
7337 | #endif | ||
7338 | |||
7339 | ; | ||
7340 | return 0; | ||
7341 | } | ||
7342 | _ACEOF | ||
7343 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7344 | if { (eval echo "$as_me:7344: \"$ac_link\"") >&5 | ||
7345 | (eval $ac_link) 2>&5 | ||
7346 | ac_status=$? | ||
7347 | echo "$as_me:7347: \$? = $ac_status" >&5 | ||
7348 | (exit $ac_status); } && | ||
7349 | { ac_try='test -s conftest$ac_exeext' | ||
7350 | { (eval echo "$as_me:7350: \"$ac_try\"") >&5 | ||
7351 | (eval $ac_try) 2>&5 | ||
7352 | ac_status=$? | ||
7353 | echo "$as_me:7353: \$? = $ac_status" >&5 | ||
7354 | (exit $ac_status); }; }; then | ||
7355 | eval "$as_ac_var=yes" | ||
7356 | else | ||
7357 | echo "$as_me: failed program was:" >&5 | ||
7358 | cat conftest.$ac_ext >&5 | ||
7359 | eval "$as_ac_var=no" | ||
7360 | fi | ||
7361 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7362 | fi | ||
7363 | echo "$as_me:7363: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7364 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7365 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7366 | cat >>confdefs.h <<EOF | ||
7367 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7368 | EOF | ||
7369 | |||
7370 | fi | ||
7371 | done | ||
7372 | |||
7373 | fi | ||
7374 | |||
7375 | for ac_func in gettimeofday time | ||
7376 | do | ||
7377 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7378 | echo "$as_me:7378: checking for $ac_func" >&5 | ||
7379 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7380 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7382 | else | ||
7383 | cat >conftest.$ac_ext <<_ACEOF | ||
7384 | #line 7384 "configure" | ||
7385 | #include "confdefs.h" | ||
7386 | /* System header to define __stub macros and hopefully few prototypes, | ||
7387 | which can conflict with char $ac_func (); below. */ | ||
7388 | #include <assert.h> | ||
7389 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7390 | #ifdef __cplusplus | ||
7391 | extern "C" | ||
7392 | #endif | ||
7393 | /* We use char because int might match the return type of a gcc2 | ||
7394 | builtin and then its argument prototype would still apply. */ | ||
7395 | char $ac_func (); | ||
7396 | char (*f) (); | ||
7397 | |||
7398 | int | ||
7399 | main () | ||
7400 | { | ||
7401 | /* The GNU C library defines this for functions which it implements | ||
7402 | to always fail with ENOSYS. Some functions are actually named | ||
7403 | something starting with __ and the normal name is an alias. */ | ||
7404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7405 | choke me | ||
7406 | #else | ||
7407 | f = $ac_func; | ||
7408 | #endif | ||
7409 | |||
7410 | ; | ||
7411 | return 0; | ||
7412 | } | ||
7413 | _ACEOF | ||
7414 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7415 | if { (eval echo "$as_me:7415: \"$ac_link\"") >&5 | ||
7416 | (eval $ac_link) 2>&5 | ||
7417 | ac_status=$? | ||
7418 | echo "$as_me:7418: \$? = $ac_status" >&5 | ||
7419 | (exit $ac_status); } && | ||
7420 | { ac_try='test -s conftest$ac_exeext' | ||
7421 | { (eval echo "$as_me:7421: \"$ac_try\"") >&5 | ||
7422 | (eval $ac_try) 2>&5 | ||
7423 | ac_status=$? | ||
7424 | echo "$as_me:7424: \$? = $ac_status" >&5 | ||
7425 | (exit $ac_status); }; }; then | ||
7426 | eval "$as_ac_var=yes" | ||
7427 | else | ||
7428 | echo "$as_me: failed program was:" >&5 | ||
7429 | cat conftest.$ac_ext >&5 | ||
7430 | eval "$as_ac_var=no" | ||
7431 | fi | ||
7432 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7433 | fi | ||
7434 | echo "$as_me:7434: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7435 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7436 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7437 | cat >>confdefs.h <<EOF | ||
7438 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7439 | EOF | ||
7440 | |||
7441 | fi | ||
7442 | done | ||
7443 | |||
7444 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
7445 | do | ||
7446 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7447 | echo "$as_me:7447: checking for $ac_func" >&5 | ||
7448 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7449 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7451 | else | ||
7452 | cat >conftest.$ac_ext <<_ACEOF | ||
7453 | #line 7453 "configure" | ||
7454 | #include "confdefs.h" | ||
7455 | /* System header to define __stub macros and hopefully few prototypes, | ||
7456 | which can conflict with char $ac_func (); below. */ | ||
7457 | #include <assert.h> | ||
7458 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7459 | #ifdef __cplusplus | ||
7460 | extern "C" | ||
7461 | #endif | ||
7462 | /* We use char because int might match the return type of a gcc2 | ||
7463 | builtin and then its argument prototype would still apply. */ | ||
7464 | char $ac_func (); | ||
7465 | char (*f) (); | ||
7466 | |||
7467 | int | ||
7468 | main () | ||
7469 | { | ||
7470 | /* The GNU C library defines this for functions which it implements | ||
7471 | to always fail with ENOSYS. Some functions are actually named | ||
7472 | something starting with __ and the normal name is an alias. */ | ||
7473 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7474 | choke me | ||
7475 | #else | ||
7476 | f = $ac_func; | ||
7477 | #endif | ||
7478 | |||
7479 | ; | ||
7480 | return 0; | ||
7481 | } | ||
7482 | _ACEOF | ||
7483 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7484 | if { (eval echo "$as_me:7484: \"$ac_link\"") >&5 | ||
7485 | (eval $ac_link) 2>&5 | ||
7486 | ac_status=$? | ||
7487 | echo "$as_me:7487: \$? = $ac_status" >&5 | ||
7488 | (exit $ac_status); } && | ||
7489 | { ac_try='test -s conftest$ac_exeext' | ||
7490 | { (eval echo "$as_me:7490: \"$ac_try\"") >&5 | ||
7491 | (eval $ac_try) 2>&5 | ||
7492 | ac_status=$? | ||
7493 | echo "$as_me:7493: \$? = $ac_status" >&5 | ||
7494 | (exit $ac_status); }; }; then | ||
7495 | eval "$as_ac_var=yes" | ||
7496 | else | ||
7497 | echo "$as_me: failed program was:" >&5 | ||
7498 | cat conftest.$ac_ext >&5 | ||
7499 | eval "$as_ac_var=no" | ||
7500 | fi | ||
7501 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7502 | fi | ||
7503 | echo "$as_me:7503: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7504 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7505 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7506 | cat >>confdefs.h <<EOF | ||
7507 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7508 | EOF | ||
7509 | |||
7510 | fi | ||
7511 | done | ||
7512 | |||
7513 | for ac_func in utmpname | ||
7514 | do | ||
7515 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7516 | echo "$as_me:7516: checking for $ac_func" >&5 | ||
7517 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7518 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7520 | else | ||
7521 | cat >conftest.$ac_ext <<_ACEOF | ||
7522 | #line 7522 "configure" | ||
7523 | #include "confdefs.h" | ||
7524 | /* System header to define __stub macros and hopefully few prototypes, | ||
7525 | which can conflict with char $ac_func (); below. */ | ||
7526 | #include <assert.h> | ||
7527 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7528 | #ifdef __cplusplus | ||
7529 | extern "C" | ||
7530 | #endif | ||
7531 | /* We use char because int might match the return type of a gcc2 | ||
7532 | builtin and then its argument prototype would still apply. */ | ||
7533 | char $ac_func (); | ||
7534 | char (*f) (); | ||
7535 | |||
7536 | int | ||
7537 | main () | ||
7538 | { | ||
7539 | /* The GNU C library defines this for functions which it implements | ||
7540 | to always fail with ENOSYS. Some functions are actually named | ||
7541 | something starting with __ and the normal name is an alias. */ | ||
7542 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7543 | choke me | ||
7544 | #else | ||
7545 | f = $ac_func; | ||
7546 | #endif | ||
7547 | |||
7548 | ; | ||
7549 | return 0; | ||
7550 | } | ||
7551 | _ACEOF | ||
7552 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7553 | if { (eval echo "$as_me:7553: \"$ac_link\"") >&5 | ||
7554 | (eval $ac_link) 2>&5 | ||
7555 | ac_status=$? | ||
7556 | echo "$as_me:7556: \$? = $ac_status" >&5 | ||
7557 | (exit $ac_status); } && | ||
7558 | { ac_try='test -s conftest$ac_exeext' | ||
7559 | { (eval echo "$as_me:7559: \"$ac_try\"") >&5 | ||
7560 | (eval $ac_try) 2>&5 | ||
7561 | ac_status=$? | ||
7562 | echo "$as_me:7562: \$? = $ac_status" >&5 | ||
7563 | (exit $ac_status); }; }; then | ||
7564 | eval "$as_ac_var=yes" | ||
7565 | else | ||
7566 | echo "$as_me: failed program was:" >&5 | ||
7567 | cat conftest.$ac_ext >&5 | ||
7568 | eval "$as_ac_var=no" | ||
7569 | fi | ||
7570 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7571 | fi | ||
7572 | echo "$as_me:7572: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7573 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7574 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7575 | cat >>confdefs.h <<EOF | ||
7576 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7577 | EOF | ||
7578 | |||
7579 | fi | ||
7580 | done | ||
7581 | |||
7582 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
7583 | do | ||
7584 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7585 | echo "$as_me:7585: checking for $ac_func" >&5 | ||
7586 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7587 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7589 | else | ||
7590 | cat >conftest.$ac_ext <<_ACEOF | ||
7591 | #line 7591 "configure" | ||
7592 | #include "confdefs.h" | ||
7593 | /* System header to define __stub macros and hopefully few prototypes, | ||
7594 | which can conflict with char $ac_func (); below. */ | ||
7595 | #include <assert.h> | ||
7596 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7597 | #ifdef __cplusplus | ||
7598 | extern "C" | ||
7599 | #endif | ||
7600 | /* We use char because int might match the return type of a gcc2 | ||
7601 | builtin and then its argument prototype would still apply. */ | ||
7602 | char $ac_func (); | ||
7603 | char (*f) (); | ||
7604 | |||
7605 | int | ||
7606 | main () | ||
7607 | { | ||
7608 | /* The GNU C library defines this for functions which it implements | ||
7609 | to always fail with ENOSYS. Some functions are actually named | ||
7610 | something starting with __ and the normal name is an alias. */ | ||
7611 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7612 | choke me | ||
7613 | #else | ||
7614 | f = $ac_func; | ||
7615 | #endif | ||
7616 | |||
7617 | ; | ||
7618 | return 0; | ||
7619 | } | ||
7620 | _ACEOF | ||
7621 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7622 | if { (eval echo "$as_me:7622: \"$ac_link\"") >&5 | ||
7623 | (eval $ac_link) 2>&5 | ||
7624 | ac_status=$? | ||
7625 | echo "$as_me:7625: \$? = $ac_status" >&5 | ||
7626 | (exit $ac_status); } && | ||
7627 | { ac_try='test -s conftest$ac_exeext' | ||
7628 | { (eval echo "$as_me:7628: \"$ac_try\"") >&5 | ||
7629 | (eval $ac_try) 2>&5 | ||
7630 | ac_status=$? | ||
7631 | echo "$as_me:7631: \$? = $ac_status" >&5 | ||
7632 | (exit $ac_status); }; }; then | ||
7633 | eval "$as_ac_var=yes" | ||
7634 | else | ||
7635 | echo "$as_me: failed program was:" >&5 | ||
7636 | cat conftest.$ac_ext >&5 | ||
7637 | eval "$as_ac_var=no" | ||
7638 | fi | ||
7639 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7640 | fi | ||
7641 | echo "$as_me:7641: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7642 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7643 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7644 | cat >>confdefs.h <<EOF | ||
7645 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7646 | EOF | ||
7647 | |||
7648 | fi | ||
7649 | done | ||
7650 | |||
7651 | for ac_func in setutxent utmpxname | ||
7652 | do | ||
7653 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7654 | echo "$as_me:7654: checking for $ac_func" >&5 | ||
7655 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7656 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7658 | else | ||
7659 | cat >conftest.$ac_ext <<_ACEOF | ||
7660 | #line 7660 "configure" | ||
7661 | #include "confdefs.h" | ||
7662 | /* System header to define __stub macros and hopefully few prototypes, | ||
7663 | which can conflict with char $ac_func (); below. */ | ||
7664 | #include <assert.h> | ||
7665 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7666 | #ifdef __cplusplus | ||
7667 | extern "C" | ||
7668 | #endif | ||
7669 | /* We use char because int might match the return type of a gcc2 | ||
7670 | builtin and then its argument prototype would still apply. */ | ||
7671 | char $ac_func (); | ||
7672 | char (*f) (); | ||
7673 | |||
7674 | int | ||
7675 | main () | ||
7676 | { | ||
7677 | /* The GNU C library defines this for functions which it implements | ||
7678 | to always fail with ENOSYS. Some functions are actually named | ||
7679 | something starting with __ and the normal name is an alias. */ | ||
7680 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7681 | choke me | ||
7682 | #else | ||
7683 | f = $ac_func; | ||
7684 | #endif | ||
7685 | |||
7686 | ; | ||
7687 | return 0; | ||
7688 | } | ||
7689 | _ACEOF | ||
7690 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7691 | if { (eval echo "$as_me:7691: \"$ac_link\"") >&5 | ||
7692 | (eval $ac_link) 2>&5 | ||
7693 | ac_status=$? | ||
7694 | echo "$as_me:7694: \$? = $ac_status" >&5 | ||
7695 | (exit $ac_status); } && | ||
7696 | { ac_try='test -s conftest$ac_exeext' | ||
7697 | { (eval echo "$as_me:7697: \"$ac_try\"") >&5 | ||
7698 | (eval $ac_try) 2>&5 | ||
7699 | ac_status=$? | ||
7700 | echo "$as_me:7700: \$? = $ac_status" >&5 | ||
7701 | (exit $ac_status); }; }; then | ||
7702 | eval "$as_ac_var=yes" | ||
7703 | else | ||
7704 | echo "$as_me: failed program was:" >&5 | ||
7705 | cat conftest.$ac_ext >&5 | ||
7706 | eval "$as_ac_var=no" | ||
7707 | fi | ||
7708 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7709 | fi | ||
7710 | echo "$as_me:7710: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7711 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7712 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7713 | cat >>confdefs.h <<EOF | ||
7714 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7715 | EOF | ||
7716 | |||
7717 | fi | ||
7718 | done | ||
7719 | |||
7720 | echo "$as_me:7720: checking for daemon" >&5 | ||
7721 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
7722 | if test "${ac_cv_func_daemon+set}" = set; then | ||
7723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7724 | else | ||
7725 | cat >conftest.$ac_ext <<_ACEOF | ||
7726 | #line 7726 "configure" | ||
7727 | #include "confdefs.h" | ||
7728 | /* System header to define __stub macros and hopefully few prototypes, | ||
7729 | which can conflict with char daemon (); below. */ | ||
7730 | #include <assert.h> | ||
7731 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7732 | #ifdef __cplusplus | ||
7733 | extern "C" | ||
7734 | #endif | ||
7735 | /* We use char because int might match the return type of a gcc2 | ||
7736 | builtin and then its argument prototype would still apply. */ | ||
7737 | char daemon (); | ||
7738 | char (*f) (); | ||
7739 | |||
7740 | int | ||
7741 | main () | ||
7742 | { | ||
7743 | /* The GNU C library defines this for functions which it implements | ||
7744 | to always fail with ENOSYS. Some functions are actually named | ||
7745 | something starting with __ and the normal name is an alias. */ | ||
7746 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
7747 | choke me | ||
7748 | #else | ||
7749 | f = daemon; | ||
7750 | #endif | ||
7751 | |||
7752 | ; | ||
7753 | return 0; | ||
7754 | } | ||
7755 | _ACEOF | ||
7756 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7757 | if { (eval echo "$as_me:7757: \"$ac_link\"") >&5 | ||
7758 | (eval $ac_link) 2>&5 | ||
7759 | ac_status=$? | ||
7760 | echo "$as_me:7760: \$? = $ac_status" >&5 | ||
7761 | (exit $ac_status); } && | ||
7762 | { ac_try='test -s conftest$ac_exeext' | ||
7763 | { (eval echo "$as_me:7763: \"$ac_try\"") >&5 | ||
7764 | (eval $ac_try) 2>&5 | ||
7765 | ac_status=$? | ||
7766 | echo "$as_me:7766: \$? = $ac_status" >&5 | ||
7767 | (exit $ac_status); }; }; then | ||
7768 | ac_cv_func_daemon=yes | ||
7769 | else | ||
7770 | echo "$as_me: failed program was:" >&5 | ||
7771 | cat conftest.$ac_ext >&5 | ||
7772 | ac_cv_func_daemon=no | ||
7773 | fi | ||
7774 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7775 | fi | ||
7776 | echo "$as_me:7776: result: $ac_cv_func_daemon" >&5 | ||
7777 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
7778 | if test $ac_cv_func_daemon = yes; then | ||
7779 | cat >>confdefs.h <<\EOF | ||
7780 | #define HAVE_DAEMON 1 | ||
7781 | EOF | ||
7782 | |||
7783 | else | ||
7784 | echo "$as_me:7784: checking for daemon in -lbsd" >&5 | ||
7785 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
7786 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
7787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7788 | else | ||
7789 | ac_check_lib_save_LIBS=$LIBS | ||
7790 | LIBS="-lbsd $LIBS" | ||
7791 | cat >conftest.$ac_ext <<_ACEOF | ||
7792 | #line 7792 "configure" | ||
7793 | #include "confdefs.h" | ||
7794 | |||
7795 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7796 | #ifdef __cplusplus | ||
7797 | extern "C" | ||
7798 | #endif | ||
7799 | /* We use char because int might match the return type of a gcc2 | ||
7800 | builtin and then its argument prototype would still apply. */ | ||
7801 | char daemon (); | ||
7802 | int | ||
7803 | main () | ||
7804 | { | ||
7805 | daemon (); | ||
7806 | ; | ||
7807 | return 0; | ||
7808 | } | ||
7809 | _ACEOF | ||
7810 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7811 | if { (eval echo "$as_me:7811: \"$ac_link\"") >&5 | ||
7812 | (eval $ac_link) 2>&5 | ||
7813 | ac_status=$? | ||
7814 | echo "$as_me:7814: \$? = $ac_status" >&5 | ||
7815 | (exit $ac_status); } && | ||
7816 | { ac_try='test -s conftest$ac_exeext' | ||
7817 | { (eval echo "$as_me:7817: \"$ac_try\"") >&5 | ||
7818 | (eval $ac_try) 2>&5 | ||
7819 | ac_status=$? | ||
7820 | echo "$as_me:7820: \$? = $ac_status" >&5 | ||
7821 | (exit $ac_status); }; }; then | ||
7822 | ac_cv_lib_bsd_daemon=yes | ||
7823 | else | ||
7824 | echo "$as_me: failed program was:" >&5 | ||
7825 | cat conftest.$ac_ext >&5 | ||
7826 | ac_cv_lib_bsd_daemon=no | ||
7827 | fi | ||
7828 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7829 | LIBS=$ac_check_lib_save_LIBS | ||
7830 | fi | ||
7831 | echo "$as_me:7831: result: $ac_cv_lib_bsd_daemon" >&5 | ||
7832 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
7833 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
7834 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\EOF | ||
7835 | #define HAVE_DAEMON 1 | ||
7836 | EOF | ||
7837 | |||
7838 | fi | ||
7839 | |||
7840 | fi | ||
7841 | |||
7842 | echo "$as_me:7842: checking for getpagesize" >&5 | ||
7843 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
7844 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
7845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7846 | else | ||
7847 | cat >conftest.$ac_ext <<_ACEOF | ||
7848 | #line 7848 "configure" | ||
7849 | #include "confdefs.h" | ||
7850 | /* System header to define __stub macros and hopefully few prototypes, | ||
7851 | which can conflict with char getpagesize (); below. */ | ||
7852 | #include <assert.h> | ||
7853 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7854 | #ifdef __cplusplus | ||
7855 | extern "C" | ||
7856 | #endif | ||
7857 | /* We use char because int might match the return type of a gcc2 | ||
7858 | builtin and then its argument prototype would still apply. */ | ||
7859 | char getpagesize (); | ||
7860 | char (*f) (); | ||
7861 | |||
7862 | int | ||
7863 | main () | ||
7864 | { | ||
7865 | /* The GNU C library defines this for functions which it implements | ||
7866 | to always fail with ENOSYS. Some functions are actually named | ||
7867 | something starting with __ and the normal name is an alias. */ | ||
7868 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
7869 | choke me | ||
7870 | #else | ||
7871 | f = getpagesize; | ||
7872 | #endif | ||
7873 | |||
7874 | ; | ||
7875 | return 0; | ||
7876 | } | ||
7877 | _ACEOF | ||
7878 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7879 | if { (eval echo "$as_me:7879: \"$ac_link\"") >&5 | ||
7880 | (eval $ac_link) 2>&5 | ||
7881 | ac_status=$? | ||
7882 | echo "$as_me:7882: \$? = $ac_status" >&5 | ||
7883 | (exit $ac_status); } && | ||
7884 | { ac_try='test -s conftest$ac_exeext' | ||
7885 | { (eval echo "$as_me:7885: \"$ac_try\"") >&5 | ||
7886 | (eval $ac_try) 2>&5 | ||
7887 | ac_status=$? | ||
7888 | echo "$as_me:7888: \$? = $ac_status" >&5 | ||
7889 | (exit $ac_status); }; }; then | ||
7890 | ac_cv_func_getpagesize=yes | ||
7891 | else | ||
7892 | echo "$as_me: failed program was:" >&5 | ||
7893 | cat conftest.$ac_ext >&5 | ||
7894 | ac_cv_func_getpagesize=no | ||
7895 | fi | ||
7896 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7897 | fi | ||
7898 | echo "$as_me:7898: result: $ac_cv_func_getpagesize" >&5 | ||
7899 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
7900 | if test $ac_cv_func_getpagesize = yes; then | ||
7901 | cat >>confdefs.h <<\EOF | ||
7902 | #define HAVE_GETPAGESIZE 1 | ||
7903 | EOF | ||
7904 | |||
7905 | else | ||
7906 | echo "$as_me:7906: checking for getpagesize in -lucb" >&5 | ||
7907 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
7908 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
7909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7910 | else | ||
7911 | ac_check_lib_save_LIBS=$LIBS | ||
7912 | LIBS="-lucb $LIBS" | ||
7913 | cat >conftest.$ac_ext <<_ACEOF | ||
7914 | #line 7914 "configure" | ||
7915 | #include "confdefs.h" | ||
7916 | |||
7917 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7918 | #ifdef __cplusplus | ||
7919 | extern "C" | ||
7920 | #endif | ||
7921 | /* We use char because int might match the return type of a gcc2 | ||
7922 | builtin and then its argument prototype would still apply. */ | ||
7923 | char getpagesize (); | ||
7924 | int | ||
7925 | main () | ||
7926 | { | ||
7927 | getpagesize (); | ||
7928 | ; | ||
7929 | return 0; | ||
7930 | } | ||
7931 | _ACEOF | ||
7932 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7933 | if { (eval echo "$as_me:7933: \"$ac_link\"") >&5 | ||
7934 | (eval $ac_link) 2>&5 | ||
7935 | ac_status=$? | ||
7936 | echo "$as_me:7936: \$? = $ac_status" >&5 | ||
7937 | (exit $ac_status); } && | ||
7938 | { ac_try='test -s conftest$ac_exeext' | ||
7939 | { (eval echo "$as_me:7939: \"$ac_try\"") >&5 | ||
7940 | (eval $ac_try) 2>&5 | ||
7941 | ac_status=$? | ||
7942 | echo "$as_me:7942: \$? = $ac_status" >&5 | ||
7943 | (exit $ac_status); }; }; then | ||
7944 | ac_cv_lib_ucb_getpagesize=yes | ||
7945 | else | ||
7946 | echo "$as_me: failed program was:" >&5 | ||
7947 | cat conftest.$ac_ext >&5 | ||
7948 | ac_cv_lib_ucb_getpagesize=no | ||
7949 | fi | ||
7950 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7951 | LIBS=$ac_check_lib_save_LIBS | ||
7952 | fi | ||
7953 | echo "$as_me:7953: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
7954 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
7955 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
7956 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\EOF | ||
7957 | #define HAVE_GETPAGESIZE 1 | ||
7958 | EOF | ||
7959 | |||
7960 | fi | ||
7961 | |||
7962 | fi | ||
7963 | |||
7964 | # Check for broken snprintf | ||
7965 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
7966 | echo "$as_me:7966: checking whether snprintf correctly terminates long strings" >&5 | ||
7967 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
7968 | if test "$cross_compiling" = yes; then | ||
7969 | { { echo "$as_me:7969: error: cannot run test program while cross compiling" >&5 | ||
7970 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7971 | { (exit 1); exit 1; }; } | ||
7972 | else | ||
7973 | cat >conftest.$ac_ext <<_ACEOF | ||
7974 | #line 7974 "configure" | ||
7975 | #include "confdefs.h" | ||
7976 | |||
7977 | #include <stdio.h> | ||
7978 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
7979 | |||
7980 | _ACEOF | ||
7981 | rm -f conftest$ac_exeext | ||
7982 | if { (eval echo "$as_me:7982: \"$ac_link\"") >&5 | ||
7983 | (eval $ac_link) 2>&5 | ||
7984 | ac_status=$? | ||
7985 | echo "$as_me:7985: \$? = $ac_status" >&5 | ||
7986 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7987 | { (eval echo "$as_me:7987: \"$ac_try\"") >&5 | ||
7988 | (eval $ac_try) 2>&5 | ||
7989 | ac_status=$? | ||
7990 | echo "$as_me:7990: \$? = $ac_status" >&5 | ||
7991 | (exit $ac_status); }; }; then | ||
7992 | echo "$as_me:7992: result: yes" >&5 | ||
7993 | echo "${ECHO_T}yes" >&6 | ||
7994 | else | ||
7995 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7996 | echo "$as_me: failed program was:" >&5 | ||
7997 | cat conftest.$ac_ext >&5 | ||
7998 | |||
7999 | echo "$as_me:7999: result: no" >&5 | ||
8000 | echo "${ECHO_T}no" >&6 | ||
8001 | cat >>confdefs.h <<\EOF | ||
8002 | #define BROKEN_SNPRINTF 1 | ||
8003 | EOF | ||
8004 | |||
8005 | { echo "$as_me:8005: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
8006 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
8007 | |||
8008 | fi | ||
8009 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8010 | fi | ||
8011 | fi | ||
8012 | |||
8013 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
8014 | echo "$as_me:8014: checking for (overly) strict mkstemp" >&5 | ||
8015 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
8016 | if test "$cross_compiling" = yes; then | ||
8017 | |||
8018 | echo "$as_me:8018: result: yes" >&5 | ||
8019 | echo "${ECHO_T}yes" >&6 | ||
8020 | cat >>confdefs.h <<\EOF | ||
8021 | #define HAVE_STRICT_MKSTEMP 1 | ||
8022 | EOF | ||
8023 | |||
8024 | else | ||
8025 | cat >conftest.$ac_ext <<_ACEOF | ||
8026 | #line 8026 "configure" | ||
8027 | #include "confdefs.h" | ||
8028 | |||
8029 | #include <stdlib.h> | ||
8030 | main() { char template[]="conftest.mkstemp-test"; | ||
8031 | if (mkstemp(template) == -1) | ||
8032 | exit(1); | ||
8033 | unlink(template); exit(0); | ||
8034 | } | ||
8035 | |||
8036 | _ACEOF | ||
8037 | rm -f conftest$ac_exeext | ||
8038 | if { (eval echo "$as_me:8038: \"$ac_link\"") >&5 | ||
8039 | (eval $ac_link) 2>&5 | ||
8040 | ac_status=$? | ||
8041 | echo "$as_me:8041: \$? = $ac_status" >&5 | ||
8042 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8043 | { (eval echo "$as_me:8043: \"$ac_try\"") >&5 | ||
8044 | (eval $ac_try) 2>&5 | ||
8045 | ac_status=$? | ||
8046 | echo "$as_me:8046: \$? = $ac_status" >&5 | ||
8047 | (exit $ac_status); }; }; then | ||
8048 | |||
8049 | echo "$as_me:8049: result: no" >&5 | ||
8050 | echo "${ECHO_T}no" >&6 | ||
8051 | |||
8052 | else | ||
8053 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8054 | echo "$as_me: failed program was:" >&5 | ||
8055 | cat conftest.$ac_ext >&5 | ||
8056 | |||
8057 | echo "$as_me:8057: result: yes" >&5 | ||
8058 | echo "${ECHO_T}yes" >&6 | ||
8059 | cat >>confdefs.h <<\EOF | ||
8060 | #define HAVE_STRICT_MKSTEMP 1 | ||
8061 | EOF | ||
8062 | |||
8063 | fi | ||
8064 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8065 | fi | ||
8066 | fi | ||
8067 | |||
8068 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
8069 | echo "$as_me:8069: checking if openpty correctly handles controlling tty" >&5 | ||
8070 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6 | ||
8071 | if test "$cross_compiling" = yes; then | ||
8072 | { { echo "$as_me:8072: error: cannot run test program while cross compiling" >&5 | ||
8073 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8074 | { (exit 1); exit 1; }; } | ||
8075 | else | ||
8076 | cat >conftest.$ac_ext <<_ACEOF | ||
8077 | #line 8077 "configure" | ||
8078 | #include "confdefs.h" | ||
8079 | |||
8080 | #include <stdio.h> | ||
8081 | #include <sys/fcntl.h> | ||
8082 | #include <sys/types.h> | ||
8083 | #include <sys/wait.h> | ||
8084 | |||
8085 | int | ||
8086 | main() | ||
8087 | { | ||
8088 | pid_t pid; | ||
8089 | int fd, ptyfd, ttyfd, status; | ||
8090 | |||
8091 | pid = fork(); | ||
8092 | if (pid < 0) { /* failed */ | ||
8093 | exit(1); | ||
8094 | } else if (pid > 0) { /* parent */ | ||
8095 | waitpid(pid, &status, 0); | ||
8096 | if (WIFEXITED(status)) | ||
8097 | exit(WEXITSTATUS(status)); | ||
8098 | else | ||
8099 | exit(2); | ||
8100 | } else { /* child */ | ||
8101 | close(0); close(1); close(2); | ||
8102 | setsid(); | ||
8103 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
8104 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
8105 | if (fd >= 0) | ||
8106 | exit(3); /* Acquired ctty: broken */ | ||
8107 | else | ||
8108 | exit(0); /* Did not acquire ctty: OK */ | ||
8109 | } | ||
8110 | } | ||
8111 | |||
8112 | _ACEOF | ||
8113 | rm -f conftest$ac_exeext | ||
8114 | if { (eval echo "$as_me:8114: \"$ac_link\"") >&5 | ||
8115 | (eval $ac_link) 2>&5 | ||
8116 | ac_status=$? | ||
8117 | echo "$as_me:8117: \$? = $ac_status" >&5 | ||
8118 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8119 | { (eval echo "$as_me:8119: \"$ac_try\"") >&5 | ||
8120 | (eval $ac_try) 2>&5 | ||
8121 | ac_status=$? | ||
8122 | echo "$as_me:8122: \$? = $ac_status" >&5 | ||
8123 | (exit $ac_status); }; }; then | ||
8124 | |||
8125 | echo "$as_me:8125: result: yes" >&5 | ||
8126 | echo "${ECHO_T}yes" >&6 | ||
8127 | |||
8128 | else | ||
8129 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8130 | echo "$as_me: failed program was:" >&5 | ||
8131 | cat conftest.$ac_ext >&5 | ||
8132 | |||
8133 | echo "$as_me:8133: result: no" >&5 | ||
8134 | echo "${ECHO_T}no" >&6 | ||
8135 | cat >>confdefs.h <<\EOF | ||
8136 | #define SSHD_ACQUIRES_CTTY 1 | ||
8137 | EOF | ||
8138 | |||
8139 | fi | ||
8140 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8141 | fi | ||
8142 | fi | ||
8143 | |||
8144 | echo "$as_me:8144: checking whether getpgrp takes no argument" >&5 | ||
8145 | echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6 | ||
8146 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
8147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8148 | else | ||
8149 | # Use it with a single arg. | ||
8150 | cat >conftest.$ac_ext <<_ACEOF | ||
8151 | #line 8151 "configure" | ||
8152 | #include "confdefs.h" | ||
8153 | $ac_includes_default | ||
8154 | int | ||
8155 | main () | ||
8156 | { | ||
8157 | getpgrp (0); | ||
8158 | ; | ||
8159 | return 0; | ||
8160 | } | ||
8161 | _ACEOF | ||
8162 | rm -f conftest.$ac_objext | ||
8163 | if { (eval echo "$as_me:8163: \"$ac_compile\"") >&5 | ||
8164 | (eval $ac_compile) 2>&5 | ||
8165 | ac_status=$? | ||
8166 | echo "$as_me:8166: \$? = $ac_status" >&5 | ||
8167 | (exit $ac_status); } && | ||
8168 | { ac_try='test -s conftest.$ac_objext' | ||
8169 | { (eval echo "$as_me:8169: \"$ac_try\"") >&5 | ||
8170 | (eval $ac_try) 2>&5 | ||
8171 | ac_status=$? | ||
8172 | echo "$as_me:8172: \$? = $ac_status" >&5 | ||
8173 | (exit $ac_status); }; }; then | ||
8174 | ac_func_getpgrp_1=yes | ||
8175 | else | ||
8176 | echo "$as_me: failed program was:" >&5 | ||
8177 | cat conftest.$ac_ext >&5 | ||
8178 | ac_func_getpgrp_1=no | ||
8179 | fi | ||
8180 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8181 | # Use it with no arg. | ||
8182 | cat >conftest.$ac_ext <<_ACEOF | ||
8183 | #line 8183 "configure" | ||
8184 | #include "confdefs.h" | ||
8185 | $ac_includes_default | ||
8186 | int | ||
8187 | main () | ||
8188 | { | ||
8189 | getpgrp (); | ||
8190 | ; | ||
8191 | return 0; | ||
8192 | } | ||
8193 | _ACEOF | ||
8194 | rm -f conftest.$ac_objext | ||
8195 | if { (eval echo "$as_me:8195: \"$ac_compile\"") >&5 | ||
8196 | (eval $ac_compile) 2>&5 | ||
8197 | ac_status=$? | ||
8198 | echo "$as_me:8198: \$? = $ac_status" >&5 | ||
8199 | (exit $ac_status); } && | ||
8200 | { ac_try='test -s conftest.$ac_objext' | ||
8201 | { (eval echo "$as_me:8201: \"$ac_try\"") >&5 | ||
8202 | (eval $ac_try) 2>&5 | ||
8203 | ac_status=$? | ||
8204 | echo "$as_me:8204: \$? = $ac_status" >&5 | ||
8205 | (exit $ac_status); }; }; then | ||
8206 | ac_func_getpgrp_0=yes | ||
8207 | else | ||
8208 | echo "$as_me: failed program was:" >&5 | ||
8209 | cat conftest.$ac_ext >&5 | ||
8210 | ac_func_getpgrp_0=no | ||
8211 | fi | ||
8212 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8213 | # If both static checks agree, we are done. | ||
8214 | case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in | ||
8215 | yes:no) ac_cv_func_getpgrp_void=yes;; | ||
8216 | no:yes) ac_cv_func_getpgrp_void=false;; | ||
8217 | *) if test "$cross_compiling" = yes; then | ||
8218 | { { echo "$as_me:8218: error: cannot check getpgrp if cross compiling" >&5 | ||
8219 | echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;} | ||
8220 | { (exit 1); exit 1; }; } | ||
8221 | else | ||
8222 | cat >conftest.$ac_ext <<_ACEOF | ||
8223 | #line 8223 "configure" | ||
8224 | #include "confdefs.h" | ||
8225 | $ac_includes_default | ||
8226 | |||
8227 | /* | ||
8228 | * If this system has a BSD-style getpgrp(), | ||
8229 | * which takes a pid argument, exit unsuccessfully. | ||
8230 | * | ||
8231 | * Snarfed from Chet Ramey's bash pgrp.c test program | ||
8232 | */ | ||
8233 | |||
8234 | int pid; | ||
8235 | int pg1, pg2, pg3, pg4; | ||
8236 | int ng, np, s, child; | ||
8237 | |||
8238 | int | ||
8239 | main () | ||
8240 | { | ||
8241 | pid = getpid (); | ||
8242 | pg1 = getpgrp (0); | ||
8243 | pg2 = getpgrp (); | ||
8244 | pg3 = getpgrp (pid); | ||
8245 | pg4 = getpgrp (1); | ||
8246 | |||
8247 | /* If all of these values are the same, it's pretty sure that we're | ||
8248 | on a system that ignores getpgrp's first argument. */ | ||
8249 | if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) | ||
8250 | exit (0); | ||
8251 | |||
8252 | child = fork (); | ||
8253 | if (child < 0) | ||
8254 | exit(1); | ||
8255 | else if (child == 0) | ||
8256 | { | ||
8257 | np = getpid (); | ||
8258 | /* If this is Sys V, this will not work; pgrp will be set to np | ||
8259 | because setpgrp just changes a pgrp to be the same as the | ||
8260 | pid. */ | ||
8261 | setpgrp (np, pg1); | ||
8262 | ng = getpgrp (0); /* Same result for Sys V and BSD */ | ||
8263 | if (ng == pg1) | ||
8264 | exit (1); | ||
8265 | else | ||
8266 | exit (0); | ||
8267 | } | ||
8268 | else | ||
8269 | { | ||
8270 | wait (&s); | ||
8271 | exit (s>>8); | ||
8272 | } | ||
8273 | } | ||
8274 | |||
8275 | _ACEOF | ||
8276 | rm -f conftest$ac_exeext | ||
8277 | if { (eval echo "$as_me:8277: \"$ac_link\"") >&5 | ||
8278 | (eval $ac_link) 2>&5 | ||
8279 | ac_status=$? | ||
8280 | echo "$as_me:8280: \$? = $ac_status" >&5 | ||
8281 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8282 | { (eval echo "$as_me:8282: \"$ac_try\"") >&5 | ||
8283 | (eval $ac_try) 2>&5 | ||
8284 | ac_status=$? | ||
8285 | echo "$as_me:8285: \$? = $ac_status" >&5 | ||
8286 | (exit $ac_status); }; }; then | ||
8287 | ac_cv_func_getpgrp_void=yes | ||
8288 | else | ||
8289 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8290 | echo "$as_me: failed program was:" >&5 | ||
8291 | cat conftest.$ac_ext >&5 | ||
8292 | ac_cv_func_getpgrp_void=no | ||
8293 | fi | ||
8294 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8295 | fi;; | ||
8296 | esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1 | ||
8297 | |||
8298 | fi | ||
8299 | echo "$as_me:8299: result: $ac_cv_func_getpgrp_void" >&5 | ||
8300 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
8301 | if test $ac_cv_func_getpgrp_void = yes; then | ||
8302 | |||
8303 | cat >>confdefs.h <<\EOF | ||
8304 | #define GETPGRP_VOID 1 | ||
8305 | EOF | ||
8306 | |||
8307 | fi | ||
8308 | |||
8309 | # Check for PAM libs | ||
8310 | PAM_MSG="no" | ||
8311 | |||
8312 | # Check whether --with-pam or --without-pam was given. | ||
8313 | if test "${with_pam+set}" = set; then | ||
8314 | withval="$with_pam" | ||
8315 | |||
8316 | if test "x$withval" != "xno" ; then | ||
8317 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then | ||
8318 | { { echo "$as_me:8318: error: PAM headers not found" >&5 | ||
8319 | echo "$as_me: error: PAM headers not found" >&2;} | ||
8320 | { (exit 1); exit 1; }; } | ||
8321 | fi | ||
8322 | |||
8323 | echo "$as_me:8323: checking for dlopen in -ldl" >&5 | ||
8324 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
8325 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
8326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8327 | else | ||
8328 | ac_check_lib_save_LIBS=$LIBS | ||
8329 | LIBS="-ldl $LIBS" | ||
8330 | cat >conftest.$ac_ext <<_ACEOF | ||
8331 | #line 8331 "configure" | ||
8332 | #include "confdefs.h" | ||
8333 | |||
8334 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8335 | #ifdef __cplusplus | ||
8336 | extern "C" | ||
8337 | #endif | ||
8338 | /* We use char because int might match the return type of a gcc2 | ||
8339 | builtin and then its argument prototype would still apply. */ | ||
8340 | char dlopen (); | ||
8341 | int | ||
8342 | main () | ||
8343 | { | ||
8344 | dlopen (); | ||
8345 | ; | ||
8346 | return 0; | ||
8347 | } | ||
8348 | _ACEOF | ||
8349 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8350 | if { (eval echo "$as_me:8350: \"$ac_link\"") >&5 | ||
8351 | (eval $ac_link) 2>&5 | ||
8352 | ac_status=$? | ||
8353 | echo "$as_me:8353: \$? = $ac_status" >&5 | ||
8354 | (exit $ac_status); } && | ||
8355 | { ac_try='test -s conftest$ac_exeext' | ||
8356 | { (eval echo "$as_me:8356: \"$ac_try\"") >&5 | ||
8357 | (eval $ac_try) 2>&5 | ||
8358 | ac_status=$? | ||
8359 | echo "$as_me:8359: \$? = $ac_status" >&5 | ||
8360 | (exit $ac_status); }; }; then | ||
8361 | ac_cv_lib_dl_dlopen=yes | ||
8362 | else | ||
8363 | echo "$as_me: failed program was:" >&5 | ||
8364 | cat conftest.$ac_ext >&5 | ||
8365 | ac_cv_lib_dl_dlopen=no | ||
8366 | fi | ||
8367 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8368 | LIBS=$ac_check_lib_save_LIBS | ||
8369 | fi | ||
8370 | echo "$as_me:8370: result: $ac_cv_lib_dl_dlopen" >&5 | ||
8371 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
8372 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8373 | cat >>confdefs.h <<EOF | ||
8374 | #define HAVE_LIBDL 1 | ||
8375 | EOF | ||
8376 | |||
8377 | LIBS="-ldl $LIBS" | ||
8378 | |||
8379 | fi | ||
8380 | |||
8381 | echo "$as_me:8381: checking for pam_set_item in -lpam" >&5 | ||
8382 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
8383 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
8384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8385 | else | ||
8386 | ac_check_lib_save_LIBS=$LIBS | ||
8387 | LIBS="-lpam $LIBS" | ||
8388 | cat >conftest.$ac_ext <<_ACEOF | ||
8389 | #line 8389 "configure" | ||
8390 | #include "confdefs.h" | ||
8391 | |||
8392 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8393 | #ifdef __cplusplus | ||
8394 | extern "C" | ||
8395 | #endif | ||
8396 | /* We use char because int might match the return type of a gcc2 | ||
8397 | builtin and then its argument prototype would still apply. */ | ||
8398 | char pam_set_item (); | ||
8399 | int | ||
8400 | main () | ||
8401 | { | ||
8402 | pam_set_item (); | ||
8403 | ; | ||
8404 | return 0; | ||
8405 | } | ||
8406 | _ACEOF | ||
8407 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8408 | if { (eval echo "$as_me:8408: \"$ac_link\"") >&5 | ||
8409 | (eval $ac_link) 2>&5 | ||
8410 | ac_status=$? | ||
8411 | echo "$as_me:8411: \$? = $ac_status" >&5 | ||
8412 | (exit $ac_status); } && | ||
8413 | { ac_try='test -s conftest$ac_exeext' | ||
8414 | { (eval echo "$as_me:8414: \"$ac_try\"") >&5 | ||
8415 | (eval $ac_try) 2>&5 | ||
8416 | ac_status=$? | ||
8417 | echo "$as_me:8417: \$? = $ac_status" >&5 | ||
8418 | (exit $ac_status); }; }; then | ||
8419 | ac_cv_lib_pam_pam_set_item=yes | ||
8420 | else | ||
8421 | echo "$as_me: failed program was:" >&5 | ||
8422 | cat conftest.$ac_ext >&5 | ||
8423 | ac_cv_lib_pam_pam_set_item=no | ||
8424 | fi | ||
8425 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8426 | LIBS=$ac_check_lib_save_LIBS | ||
8427 | fi | ||
8428 | echo "$as_me:8428: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
8429 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
8430 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
8431 | cat >>confdefs.h <<EOF | ||
8432 | #define HAVE_LIBPAM 1 | ||
8433 | EOF | ||
8434 | |||
8435 | LIBS="-lpam $LIBS" | ||
8436 | |||
8437 | else | ||
8438 | { { echo "$as_me:8438: error: *** libpam missing" >&5 | ||
8439 | echo "$as_me: error: *** libpam missing" >&2;} | ||
8440 | { (exit 1); exit 1; }; } | ||
8441 | fi | ||
8442 | |||
8443 | for ac_func in pam_getenvlist | ||
8444 | do | ||
8445 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8446 | echo "$as_me:8446: checking for $ac_func" >&5 | ||
8447 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8448 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8450 | else | ||
8451 | cat >conftest.$ac_ext <<_ACEOF | ||
8452 | #line 8452 "configure" | ||
8453 | #include "confdefs.h" | ||
8454 | /* System header to define __stub macros and hopefully few prototypes, | ||
8455 | which can conflict with char $ac_func (); below. */ | ||
8456 | #include <assert.h> | ||
8457 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8458 | #ifdef __cplusplus | ||
8459 | extern "C" | ||
8460 | #endif | ||
8461 | /* We use char because int might match the return type of a gcc2 | ||
8462 | builtin and then its argument prototype would still apply. */ | ||
8463 | char $ac_func (); | ||
8464 | char (*f) (); | ||
8465 | |||
8466 | int | ||
8467 | main () | ||
8468 | { | ||
8469 | /* The GNU C library defines this for functions which it implements | ||
8470 | to always fail with ENOSYS. Some functions are actually named | ||
8471 | something starting with __ and the normal name is an alias. */ | ||
8472 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8473 | choke me | ||
8474 | #else | ||
8475 | f = $ac_func; | ||
8476 | #endif | ||
8477 | |||
8478 | ; | ||
8479 | return 0; | ||
8480 | } | ||
8481 | _ACEOF | ||
8482 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8483 | if { (eval echo "$as_me:8483: \"$ac_link\"") >&5 | ||
8484 | (eval $ac_link) 2>&5 | ||
8485 | ac_status=$? | ||
8486 | echo "$as_me:8486: \$? = $ac_status" >&5 | ||
8487 | (exit $ac_status); } && | ||
8488 | { ac_try='test -s conftest$ac_exeext' | ||
8489 | { (eval echo "$as_me:8489: \"$ac_try\"") >&5 | ||
8490 | (eval $ac_try) 2>&5 | ||
8491 | ac_status=$? | ||
8492 | echo "$as_me:8492: \$? = $ac_status" >&5 | ||
8493 | (exit $ac_status); }; }; then | ||
8494 | eval "$as_ac_var=yes" | ||
8495 | else | ||
8496 | echo "$as_me: failed program was:" >&5 | ||
8497 | cat conftest.$ac_ext >&5 | ||
8498 | eval "$as_ac_var=no" | ||
8499 | fi | ||
8500 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8501 | fi | ||
8502 | echo "$as_me:8502: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8503 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8504 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8505 | cat >>confdefs.h <<EOF | ||
8506 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8507 | EOF | ||
8508 | |||
8509 | fi | ||
8510 | done | ||
8511 | |||
8512 | for ac_func in pam_putenv | ||
8513 | do | ||
8514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8515 | echo "$as_me:8515: checking for $ac_func" >&5 | ||
8516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8517 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8519 | else | ||
8520 | cat >conftest.$ac_ext <<_ACEOF | ||
8521 | #line 8521 "configure" | ||
8522 | #include "confdefs.h" | ||
8523 | /* System header to define __stub macros and hopefully few prototypes, | ||
8524 | which can conflict with char $ac_func (); below. */ | ||
8525 | #include <assert.h> | ||
8526 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8527 | #ifdef __cplusplus | ||
8528 | extern "C" | ||
8529 | #endif | ||
8530 | /* We use char because int might match the return type of a gcc2 | ||
8531 | builtin and then its argument prototype would still apply. */ | ||
8532 | char $ac_func (); | ||
8533 | char (*f) (); | ||
8534 | |||
8535 | int | ||
8536 | main () | ||
8537 | { | ||
8538 | /* The GNU C library defines this for functions which it implements | ||
8539 | to always fail with ENOSYS. Some functions are actually named | ||
8540 | something starting with __ and the normal name is an alias. */ | ||
8541 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8542 | choke me | ||
8543 | #else | ||
8544 | f = $ac_func; | ||
8545 | #endif | ||
8546 | |||
8547 | ; | ||
8548 | return 0; | ||
8549 | } | ||
8550 | _ACEOF | ||
8551 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8552 | if { (eval echo "$as_me:8552: \"$ac_link\"") >&5 | ||
8553 | (eval $ac_link) 2>&5 | ||
8554 | ac_status=$? | ||
8555 | echo "$as_me:8555: \$? = $ac_status" >&5 | ||
8556 | (exit $ac_status); } && | ||
8557 | { ac_try='test -s conftest$ac_exeext' | ||
8558 | { (eval echo "$as_me:8558: \"$ac_try\"") >&5 | ||
8559 | (eval $ac_try) 2>&5 | ||
8560 | ac_status=$? | ||
8561 | echo "$as_me:8561: \$? = $ac_status" >&5 | ||
8562 | (exit $ac_status); }; }; then | ||
8563 | eval "$as_ac_var=yes" | ||
8564 | else | ||
8565 | echo "$as_me: failed program was:" >&5 | ||
8566 | cat conftest.$ac_ext >&5 | ||
8567 | eval "$as_ac_var=no" | ||
8568 | fi | ||
8569 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8570 | fi | ||
8571 | echo "$as_me:8571: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8572 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8573 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8574 | cat >>confdefs.h <<EOF | ||
8575 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8576 | EOF | ||
8577 | |||
8578 | fi | ||
8579 | done | ||
8580 | |||
8581 | disable_shadow=yes | ||
8582 | PAM_MSG="yes" | ||
8583 | |||
8584 | cat >>confdefs.h <<\EOF | ||
8585 | #define USE_PAM 1 | ||
8586 | EOF | ||
8587 | |||
8588 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8589 | LIBPAM="-lpam -ldl" | ||
8590 | else | ||
8591 | LIBPAM="-lpam" | ||
8592 | fi | ||
8593 | |||
8594 | fi | ||
8595 | |||
8596 | fi; | ||
8597 | |||
8598 | # Check for older PAM | ||
8599 | if test "x$PAM_MSG" = "xyes" ; then | ||
8600 | # Check PAM strerror arguments (old PAM) | ||
8601 | echo "$as_me:8601: checking whether pam_strerror takes only one argument" >&5 | ||
8602 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
8603 | cat >conftest.$ac_ext <<_ACEOF | ||
8604 | #line 8604 "configure" | ||
8605 | #include "confdefs.h" | ||
8606 | |||
8607 | #include <stdlib.h> | ||
8608 | #include <security/pam_appl.h> | ||
8609 | |||
8610 | int | ||
8611 | main () | ||
8612 | { | ||
8613 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
8614 | ; | ||
8615 | return 0; | ||
8616 | } | ||
8617 | _ACEOF | ||
8618 | rm -f conftest.$ac_objext | ||
8619 | if { (eval echo "$as_me:8619: \"$ac_compile\"") >&5 | ||
8620 | (eval $ac_compile) 2>&5 | ||
8621 | ac_status=$? | ||
8622 | echo "$as_me:8622: \$? = $ac_status" >&5 | ||
8623 | (exit $ac_status); } && | ||
8624 | { ac_try='test -s conftest.$ac_objext' | ||
8625 | { (eval echo "$as_me:8625: \"$ac_try\"") >&5 | ||
8626 | (eval $ac_try) 2>&5 | ||
8627 | ac_status=$? | ||
8628 | echo "$as_me:8628: \$? = $ac_status" >&5 | ||
8629 | (exit $ac_status); }; }; then | ||
8630 | echo "$as_me:8630: result: no" >&5 | ||
8631 | echo "${ECHO_T}no" >&6 | ||
8632 | else | ||
8633 | echo "$as_me: failed program was:" >&5 | ||
8634 | cat conftest.$ac_ext >&5 | ||
8635 | |||
8636 | cat >>confdefs.h <<\EOF | ||
8637 | #define HAVE_OLD_PAM 1 | ||
8638 | EOF | ||
8639 | |||
8640 | echo "$as_me:8640: result: yes" >&5 | ||
8641 | echo "${ECHO_T}yes" >&6 | ||
8642 | PAM_MSG="yes (old library)" | ||
8643 | |||
8644 | fi | ||
8645 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8646 | fi | ||
8647 | |||
8648 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
8649 | # because the system crypt() is more featureful. | ||
8650 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
8651 | |||
8652 | echo "$as_me:8652: checking for crypt in -lcrypt" >&5 | ||
8653 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
8654 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
8655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8656 | else | ||
8657 | ac_check_lib_save_LIBS=$LIBS | ||
8658 | LIBS="-lcrypt $LIBS" | ||
8659 | cat >conftest.$ac_ext <<_ACEOF | ||
8660 | #line 8660 "configure" | ||
8661 | #include "confdefs.h" | ||
8662 | |||
8663 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8664 | #ifdef __cplusplus | ||
8665 | extern "C" | ||
8666 | #endif | ||
8667 | /* We use char because int might match the return type of a gcc2 | ||
8668 | builtin and then its argument prototype would still apply. */ | ||
8669 | char crypt (); | ||
8670 | int | ||
8671 | main () | ||
8672 | { | ||
8673 | crypt (); | ||
8674 | ; | ||
8675 | return 0; | ||
8676 | } | ||
8677 | _ACEOF | ||
8678 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8679 | if { (eval echo "$as_me:8679: \"$ac_link\"") >&5 | ||
8680 | (eval $ac_link) 2>&5 | ||
8681 | ac_status=$? | ||
8682 | echo "$as_me:8682: \$? = $ac_status" >&5 | ||
8683 | (exit $ac_status); } && | ||
8684 | { ac_try='test -s conftest$ac_exeext' | ||
8685 | { (eval echo "$as_me:8685: \"$ac_try\"") >&5 | ||
8686 | (eval $ac_try) 2>&5 | ||
8687 | ac_status=$? | ||
8688 | echo "$as_me:8688: \$? = $ac_status" >&5 | ||
8689 | (exit $ac_status); }; }; then | ||
8690 | ac_cv_lib_crypt_crypt=yes | ||
8691 | else | ||
8692 | echo "$as_me: failed program was:" >&5 | ||
8693 | cat conftest.$ac_ext >&5 | ||
8694 | ac_cv_lib_crypt_crypt=no | ||
8695 | fi | ||
8696 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8697 | LIBS=$ac_check_lib_save_LIBS | ||
8698 | fi | ||
8699 | echo "$as_me:8699: result: $ac_cv_lib_crypt_crypt" >&5 | ||
8700 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
8701 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
8702 | cat >>confdefs.h <<EOF | ||
8703 | #define HAVE_LIBCRYPT 1 | ||
8704 | EOF | ||
8705 | |||
8706 | LIBS="-lcrypt $LIBS" | ||
8707 | |||
8708 | fi | ||
8709 | |||
8710 | fi | ||
8711 | |||
8712 | # Search for OpenSSL | ||
8713 | saved_CPPFLAGS="$CPPFLAGS" | ||
8714 | saved_LDFLAGS="$LDFLAGS" | ||
8715 | |||
8716 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
8717 | if test "${with_ssl_dir+set}" = set; then | ||
8718 | withval="$with_ssl_dir" | ||
8719 | |||
8720 | if test "x$withval" != "xno" ; then | ||
8721 | if test -d "$withval/lib"; then | ||
8722 | if test -n "${need_dash_r}"; then | ||
8723 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8724 | else | ||
8725 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8726 | fi | ||
8727 | else | ||
8728 | if test -n "${need_dash_r}"; then | ||
8729 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8730 | else | ||
8731 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8732 | fi | ||
8733 | fi | ||
8734 | if test -d "$withval/include"; then | ||
8735 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8736 | else | ||
8737 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8738 | fi | ||
8739 | fi | ||
8740 | |||
8741 | fi; | ||
8742 | LIBS="$LIBS -lcrypto" | ||
8743 | cat >conftest.$ac_ext <<_ACEOF | ||
8744 | #line 8744 "configure" | ||
8745 | #include "confdefs.h" | ||
8746 | |||
8747 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8748 | #ifdef __cplusplus | ||
8749 | extern "C" | ||
8750 | #endif | ||
8751 | /* We use char because int might match the return type of a gcc2 | ||
8752 | builtin and then its argument prototype would still apply. */ | ||
8753 | char RAND_add (); | ||
8754 | int | ||
8755 | main () | ||
8756 | { | ||
8757 | RAND_add (); | ||
8758 | ; | ||
8759 | return 0; | ||
8760 | } | ||
8761 | _ACEOF | ||
8762 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8763 | if { (eval echo "$as_me:8763: \"$ac_link\"") >&5 | ||
8764 | (eval $ac_link) 2>&5 | ||
8765 | ac_status=$? | ||
8766 | echo "$as_me:8766: \$? = $ac_status" >&5 | ||
8767 | (exit $ac_status); } && | ||
8768 | { ac_try='test -s conftest$ac_exeext' | ||
8769 | { (eval echo "$as_me:8769: \"$ac_try\"") >&5 | ||
8770 | (eval $ac_try) 2>&5 | ||
8771 | ac_status=$? | ||
8772 | echo "$as_me:8772: \$? = $ac_status" >&5 | ||
8773 | (exit $ac_status); }; }; then | ||
8774 | cat >>confdefs.h <<\EOF | ||
8775 | #define HAVE_OPENSSL 1 | ||
8776 | EOF | ||
8777 | |||
8778 | else | ||
8779 | echo "$as_me: failed program was:" >&5 | ||
8780 | cat conftest.$ac_ext >&5 | ||
8781 | |||
8782 | if test -n "${need_dash_r}"; then | ||
8783 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8784 | else | ||
8785 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8786 | fi | ||
8787 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
8788 | cat >conftest.$ac_ext <<_ACEOF | ||
8789 | #line 8789 "configure" | ||
8790 | #include "confdefs.h" | ||
8791 | |||
8792 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8793 | #ifdef __cplusplus | ||
8794 | extern "C" | ||
8795 | #endif | ||
8796 | /* We use char because int might match the return type of a gcc2 | ||
8797 | builtin and then its argument prototype would still apply. */ | ||
8798 | char RAND_add (); | ||
8799 | int | ||
8800 | main () | ||
8801 | { | ||
8802 | RAND_add (); | ||
8803 | ; | ||
8804 | return 0; | ||
8805 | } | ||
8806 | _ACEOF | ||
8807 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8808 | if { (eval echo "$as_me:8808: \"$ac_link\"") >&5 | ||
8809 | (eval $ac_link) 2>&5 | ||
8810 | ac_status=$? | ||
8811 | echo "$as_me:8811: \$? = $ac_status" >&5 | ||
8812 | (exit $ac_status); } && | ||
8813 | { ac_try='test -s conftest$ac_exeext' | ||
8814 | { (eval echo "$as_me:8814: \"$ac_try\"") >&5 | ||
8815 | (eval $ac_try) 2>&5 | ||
8816 | ac_status=$? | ||
8817 | echo "$as_me:8817: \$? = $ac_status" >&5 | ||
8818 | (exit $ac_status); }; }; then | ||
8819 | cat >>confdefs.h <<\EOF | ||
8820 | #define HAVE_OPENSSL 1 | ||
8821 | EOF | ||
8822 | |||
8823 | else | ||
8824 | echo "$as_me: failed program was:" >&5 | ||
8825 | cat conftest.$ac_ext >&5 | ||
8826 | |||
8827 | { { echo "$as_me:8827: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
8828 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
8829 | { (exit 1); exit 1; }; } | ||
8830 | |||
8831 | fi | ||
8832 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8833 | |||
8834 | fi | ||
8835 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8836 | |||
8837 | # Determine OpenSSL header version | ||
8838 | echo "$as_me:8838: checking OpenSSL header version" >&5 | ||
8839 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
8840 | if test "$cross_compiling" = yes; then | ||
8841 | { { echo "$as_me:8841: error: cannot run test program while cross compiling" >&5 | ||
8842 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8843 | { (exit 1); exit 1; }; } | ||
8844 | else | ||
8845 | cat >conftest.$ac_ext <<_ACEOF | ||
8846 | #line 8846 "configure" | ||
8847 | #include "confdefs.h" | ||
8848 | |||
8849 | #include <stdio.h> | ||
8850 | #include <string.h> | ||
8851 | #include <openssl/opensslv.h> | ||
8852 | #define DATA "conftest.sslincver" | ||
8853 | int main(void) { | ||
8854 | FILE *fd; | ||
8855 | int rc; | ||
8856 | |||
8857 | fd = fopen(DATA,"w"); | ||
8858 | if(fd == NULL) | ||
8859 | exit(1); | ||
8860 | |||
8861 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
8862 | exit(1); | ||
8863 | |||
8864 | exit(0); | ||
8865 | } | ||
8866 | |||
8867 | _ACEOF | ||
8868 | rm -f conftest$ac_exeext | ||
8869 | if { (eval echo "$as_me:8869: \"$ac_link\"") >&5 | ||
8870 | (eval $ac_link) 2>&5 | ||
8871 | ac_status=$? | ||
8872 | echo "$as_me:8872: \$? = $ac_status" >&5 | ||
8873 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8874 | { (eval echo "$as_me:8874: \"$ac_try\"") >&5 | ||
8875 | (eval $ac_try) 2>&5 | ||
8876 | ac_status=$? | ||
8877 | echo "$as_me:8877: \$? = $ac_status" >&5 | ||
8878 | (exit $ac_status); }; }; then | ||
8879 | |||
8880 | ssl_header_ver=`cat conftest.sslincver` | ||
8881 | echo "$as_me:8881: result: $ssl_header_ver" >&5 | ||
8882 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
8883 | |||
8884 | else | ||
8885 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8886 | echo "$as_me: failed program was:" >&5 | ||
8887 | cat conftest.$ac_ext >&5 | ||
8888 | |||
8889 | echo "$as_me:8889: result: not found" >&5 | ||
8890 | echo "${ECHO_T}not found" >&6 | ||
8891 | { { echo "$as_me:8891: error: OpenSSL version header not found." >&5 | ||
8892 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
8893 | { (exit 1); exit 1; }; } | ||
8894 | |||
8895 | fi | ||
8896 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8897 | fi | ||
8898 | |||
8899 | # Determine OpenSSL library version | ||
8900 | echo "$as_me:8900: checking OpenSSL library version" >&5 | ||
8901 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
8902 | if test "$cross_compiling" = yes; then | ||
8903 | { { echo "$as_me:8903: error: cannot run test program while cross compiling" >&5 | ||
8904 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8905 | { (exit 1); exit 1; }; } | ||
8906 | else | ||
8907 | cat >conftest.$ac_ext <<_ACEOF | ||
8908 | #line 8908 "configure" | ||
8909 | #include "confdefs.h" | ||
8910 | |||
8911 | #include <stdio.h> | ||
8912 | #include <string.h> | ||
8913 | #include <openssl/opensslv.h> | ||
8914 | #include <openssl/crypto.h> | ||
8915 | #define DATA "conftest.ssllibver" | ||
8916 | int main(void) { | ||
8917 | FILE *fd; | ||
8918 | int rc; | ||
8919 | |||
8920 | fd = fopen(DATA,"w"); | ||
8921 | if(fd == NULL) | ||
8922 | exit(1); | ||
8923 | |||
8924 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
8925 | exit(1); | ||
8926 | |||
8927 | exit(0); | ||
8928 | } | ||
8929 | |||
8930 | _ACEOF | ||
8931 | rm -f conftest$ac_exeext | ||
8932 | if { (eval echo "$as_me:8932: \"$ac_link\"") >&5 | ||
8933 | (eval $ac_link) 2>&5 | ||
8934 | ac_status=$? | ||
8935 | echo "$as_me:8935: \$? = $ac_status" >&5 | ||
8936 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8937 | { (eval echo "$as_me:8937: \"$ac_try\"") >&5 | ||
8938 | (eval $ac_try) 2>&5 | ||
8939 | ac_status=$? | ||
8940 | echo "$as_me:8940: \$? = $ac_status" >&5 | ||
8941 | (exit $ac_status); }; }; then | ||
8942 | |||
8943 | ssl_library_ver=`cat conftest.ssllibver` | ||
8944 | echo "$as_me:8944: result: $ssl_library_ver" >&5 | ||
8945 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
8946 | |||
8947 | else | ||
8948 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8949 | echo "$as_me: failed program was:" >&5 | ||
8950 | cat conftest.$ac_ext >&5 | ||
8951 | |||
8952 | echo "$as_me:8952: result: not found" >&5 | ||
8953 | echo "${ECHO_T}not found" >&6 | ||
8954 | { { echo "$as_me:8954: error: OpenSSL library not found." >&5 | ||
8955 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
8956 | { (exit 1); exit 1; }; } | ||
8957 | |||
8958 | fi | ||
8959 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8960 | fi | ||
8961 | |||
8962 | # Sanity check OpenSSL headers | ||
8963 | echo "$as_me:8963: checking whether OpenSSL's headers match the library" >&5 | ||
8964 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
8965 | if test "$cross_compiling" = yes; then | ||
8966 | { { echo "$as_me:8966: error: cannot run test program while cross compiling" >&5 | ||
8967 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8968 | { (exit 1); exit 1; }; } | ||
8969 | else | ||
8970 | cat >conftest.$ac_ext <<_ACEOF | ||
8971 | #line 8971 "configure" | ||
8972 | #include "confdefs.h" | ||
8973 | |||
8974 | #include <string.h> | ||
8975 | #include <openssl/opensslv.h> | ||
8976 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
8977 | |||
8978 | _ACEOF | ||
8979 | rm -f conftest$ac_exeext | ||
8980 | if { (eval echo "$as_me:8980: \"$ac_link\"") >&5 | ||
8981 | (eval $ac_link) 2>&5 | ||
8982 | ac_status=$? | ||
8983 | echo "$as_me:8983: \$? = $ac_status" >&5 | ||
8984 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8985 | { (eval echo "$as_me:8985: \"$ac_try\"") >&5 | ||
8986 | (eval $ac_try) 2>&5 | ||
8987 | ac_status=$? | ||
8988 | echo "$as_me:8988: \$? = $ac_status" >&5 | ||
8989 | (exit $ac_status); }; }; then | ||
8990 | |||
8991 | echo "$as_me:8991: result: yes" >&5 | ||
8992 | echo "${ECHO_T}yes" >&6 | ||
8993 | |||
8994 | else | ||
8995 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8996 | echo "$as_me: failed program was:" >&5 | ||
8997 | cat conftest.$ac_ext >&5 | ||
8998 | |||
8999 | echo "$as_me:8999: result: no" >&5 | ||
9000 | echo "${ECHO_T}no" >&6 | ||
9001 | { { echo "$as_me:9001: error: Your OpenSSL headers do not match your library. | ||
9002 | Check config.log for details. | ||
9003 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
9004 | echo "$as_me: error: Your OpenSSL headers do not match your library. | ||
9005 | Check config.log for details. | ||
9006 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
9007 | { (exit 1); exit 1; }; } | ||
9008 | |||
9009 | fi | ||
9010 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9011 | fi | ||
9012 | |||
9013 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
9014 | # version in OpenSSL. Skip this for PAM | ||
9015 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
9016 | echo "$as_me:9016: checking for crypt in -lcrypt" >&5 | ||
9017 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
9018 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
9019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9020 | else | ||
9021 | ac_check_lib_save_LIBS=$LIBS | ||
9022 | LIBS="-lcrypt $LIBS" | ||
9023 | cat >conftest.$ac_ext <<_ACEOF | ||
9024 | #line 9024 "configure" | ||
9025 | #include "confdefs.h" | ||
9026 | |||
9027 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9028 | #ifdef __cplusplus | ||
9029 | extern "C" | ||
9030 | #endif | ||
9031 | /* We use char because int might match the return type of a gcc2 | ||
9032 | builtin and then its argument prototype would still apply. */ | ||
9033 | char crypt (); | ||
9034 | int | ||
9035 | main () | ||
9036 | { | ||
9037 | crypt (); | ||
9038 | ; | ||
9039 | return 0; | ||
9040 | } | ||
9041 | _ACEOF | ||
9042 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9043 | if { (eval echo "$as_me:9043: \"$ac_link\"") >&5 | ||
9044 | (eval $ac_link) 2>&5 | ||
9045 | ac_status=$? | ||
9046 | echo "$as_me:9046: \$? = $ac_status" >&5 | ||
9047 | (exit $ac_status); } && | ||
9048 | { ac_try='test -s conftest$ac_exeext' | ||
9049 | { (eval echo "$as_me:9049: \"$ac_try\"") >&5 | ||
9050 | (eval $ac_try) 2>&5 | ||
9051 | ac_status=$? | ||
9052 | echo "$as_me:9052: \$? = $ac_status" >&5 | ||
9053 | (exit $ac_status); }; }; then | ||
9054 | ac_cv_lib_crypt_crypt=yes | ||
9055 | else | ||
9056 | echo "$as_me: failed program was:" >&5 | ||
9057 | cat conftest.$ac_ext >&5 | ||
9058 | ac_cv_lib_crypt_crypt=no | ||
9059 | fi | ||
9060 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9061 | LIBS=$ac_check_lib_save_LIBS | ||
9062 | fi | ||
9063 | echo "$as_me:9063: result: $ac_cv_lib_crypt_crypt" >&5 | ||
9064 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
9065 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
9066 | LIBS="$LIBS -lcrypt" | ||
9067 | fi | ||
9068 | |||
9069 | fi | ||
9070 | |||
9071 | ### Configure cryptographic random number support | ||
9072 | |||
9073 | # Check wheter OpenSSL seeds itself | ||
9074 | echo "$as_me:9074: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
9075 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
9076 | if test "$cross_compiling" = yes; then | ||
9077 | { { echo "$as_me:9077: error: cannot run test program while cross compiling" >&5 | ||
9078 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9079 | { (exit 1); exit 1; }; } | ||
9080 | else | ||
9081 | cat >conftest.$ac_ext <<_ACEOF | ||
9082 | #line 9082 "configure" | ||
9083 | #include "confdefs.h" | ||
9084 | |||
9085 | #include <string.h> | ||
9086 | #include <openssl/rand.h> | ||
9087 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
9088 | |||
9089 | _ACEOF | ||
9090 | rm -f conftest$ac_exeext | ||
9091 | if { (eval echo "$as_me:9091: \"$ac_link\"") >&5 | ||
9092 | (eval $ac_link) 2>&5 | ||
9093 | ac_status=$? | ||
9094 | echo "$as_me:9094: \$? = $ac_status" >&5 | ||
9095 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9096 | { (eval echo "$as_me:9096: \"$ac_try\"") >&5 | ||
9097 | (eval $ac_try) 2>&5 | ||
9098 | ac_status=$? | ||
9099 | echo "$as_me:9099: \$? = $ac_status" >&5 | ||
9100 | (exit $ac_status); }; }; then | ||
9101 | |||
9102 | OPENSSL_SEEDS_ITSELF=yes | ||
9103 | echo "$as_me:9103: result: yes" >&5 | ||
9104 | echo "${ECHO_T}yes" >&6 | ||
9105 | |||
9106 | else | ||
9107 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9108 | echo "$as_me: failed program was:" >&5 | ||
9109 | cat conftest.$ac_ext >&5 | ||
9110 | |||
9111 | echo "$as_me:9111: result: no" >&5 | ||
9112 | echo "${ECHO_T}no" >&6 | ||
9113 | # Default to use of the rand helper if OpenSSL doesn't | ||
9114 | # seed itself | ||
9115 | USE_RAND_HELPER=yes | ||
9116 | |||
9117 | fi | ||
9118 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9119 | fi | ||
9120 | |||
9121 | # Do we want to force the use of the rand helper? | ||
9122 | |||
9123 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
9124 | if test "${with_rand_helper+set}" = set; then | ||
9125 | withval="$with_rand_helper" | ||
9126 | |||
9127 | if test "x$withval" = "xno" ; then | ||
9128 | # Force use of OpenSSL's internal RNG, even if | ||
9129 | # the previous test showed it to be unseeded. | ||
9130 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
9131 | { echo "$as_me:9131: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
9132 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
9133 | OPENSSL_SEEDS_ITSELF=yes | ||
9134 | USE_RAND_HELPER="" | ||
9135 | fi | ||
9136 | else | ||
9137 | USE_RAND_HELPER=yes | ||
9138 | fi | ||
9139 | |||
9140 | fi; | ||
9141 | |||
9142 | # Which randomness source do we use? | ||
9143 | if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then | ||
9144 | # OpenSSL only | ||
9145 | cat >>confdefs.h <<\EOF | ||
9146 | #define OPENSSL_PRNG_ONLY 1 | ||
9147 | EOF | ||
9148 | |||
9149 | RAND_MSG="OpenSSL internal ONLY" | ||
9150 | INSTALL_SSH_RAND_HELPER="" | ||
9151 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
9152 | # install rand helper | ||
9153 | RAND_MSG="ssh-rand-helper" | ||
9154 | INSTALL_SSH_RAND_HELPER="yes" | ||
9155 | fi | ||
9156 | |||
9157 | ### Configuration of ssh-rand-helper | ||
9158 | |||
9159 | # PRNGD TCP socket | ||
9160 | |||
9161 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
9162 | if test "${with_prngd_port+set}" = set; then | ||
9163 | withval="$with_prngd_port" | ||
9164 | |||
9165 | case "$withval" in | ||
9166 | no) | ||
9167 | withval="" | ||
9168 | ;; | ||
9169 | [0-9]*) | ||
9170 | ;; | ||
9171 | *) | ||
9172 | { { echo "$as_me:9172: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
9173 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
9174 | { (exit 1); exit 1; }; } | ||
9175 | ;; | ||
9176 | esac | ||
9177 | if test ! -z "$withval" ; then | ||
9178 | PRNGD_PORT="$withval" | ||
9179 | cat >>confdefs.h <<EOF | ||
9180 | #define PRNGD_PORT $PRNGD_PORT | ||
9181 | EOF | ||
9182 | |||
9183 | fi | ||
9184 | |||
9185 | fi; | ||
9186 | |||
9187 | # PRNGD Unix domain socket | ||
9188 | |||
9189 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
9190 | if test "${with_prngd_socket+set}" = set; then | ||
9191 | withval="$with_prngd_socket" | ||
9192 | |||
9193 | case "$withval" in | ||
9194 | yes) | ||
9195 | withval="/var/run/egd-pool" | ||
9196 | ;; | ||
9197 | no) | ||
9198 | withval="" | ||
9199 | ;; | ||
9200 | /*) | ||
9201 | ;; | ||
9202 | *) | ||
9203 | { { echo "$as_me:9203: error: You must specify an absolute path to the entropy socket" >&5 | ||
9204 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
9205 | { (exit 1); exit 1; }; } | ||
9206 | ;; | ||
9207 | esac | ||
9208 | |||
9209 | if test ! -z "$withval" ; then | ||
9210 | if test ! -z "$PRNGD_PORT" ; then | ||
9211 | { { echo "$as_me:9211: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
9212 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
9213 | { (exit 1); exit 1; }; } | ||
9214 | fi | ||
9215 | if test ! -r "$withval" ; then | ||
9216 | { echo "$as_me:9216: WARNING: Entropy socket is not readable" >&5 | ||
9217 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
9218 | fi | ||
9219 | PRNGD_SOCKET="$withval" | ||
9220 | cat >>confdefs.h <<EOF | ||
9221 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9222 | EOF | ||
9223 | |||
9224 | fi | ||
9225 | |||
9226 | else | ||
9227 | |||
9228 | # Check for existing socket only if we don't have a random device already | ||
9229 | if test "$USE_RAND_HELPER" = yes ; then | ||
9230 | echo "$as_me:9230: checking for PRNGD/EGD socket" >&5 | ||
9231 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
9232 | # Insert other locations here | ||
9233 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
9234 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
9235 | PRNGD_SOCKET="$sock" | ||
9236 | cat >>confdefs.h <<EOF | ||
9237 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9238 | EOF | ||
9239 | |||
9240 | break; | ||
9241 | fi | ||
9242 | done | ||
9243 | if test ! -z "$PRNGD_SOCKET" ; then | ||
9244 | echo "$as_me:9244: result: $PRNGD_SOCKET" >&5 | ||
9245 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
9246 | else | ||
9247 | echo "$as_me:9247: result: not found" >&5 | ||
9248 | echo "${ECHO_T}not found" >&6 | ||
9249 | fi | ||
9250 | fi | ||
9251 | |||
9252 | fi; | ||
9253 | |||
9254 | # Change default command timeout for hashing entropy source | ||
9255 | entropy_timeout=200 | ||
9256 | |||
9257 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
9258 | if test "${with_entropy_timeout+set}" = set; then | ||
9259 | withval="$with_entropy_timeout" | ||
9260 | |||
9261 | if test "x$withval" != "xno" ; then | ||
9262 | entropy_timeout=$withval | ||
9263 | fi | ||
9264 | |||
9265 | fi; | ||
9266 | cat >>confdefs.h <<EOF | ||
9267 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
9268 | EOF | ||
9269 | |||
9270 | SSH_PRIVSEP_USER=sshd | ||
9271 | |||
9272 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
9273 | if test "${with_privsep_user+set}" = set; then | ||
9274 | withval="$with_privsep_user" | ||
9275 | |||
9276 | if test -n "$withval"; then | ||
9277 | SSH_PRIVSEP_USER=$withval | ||
9278 | fi | ||
9279 | |||
9280 | fi; | ||
9281 | cat >>confdefs.h <<EOF | ||
9282 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
9283 | EOF | ||
9284 | |||
9285 | # We do this little dance with the search path to insure | ||
9286 | # that programs that we select for use by installed programs | ||
9287 | # (which may be run by the super-user) come from trusted | ||
9288 | # locations before they come from the user's private area. | ||
9289 | # This should help avoid accidentally configuring some | ||
9290 | # random version of a program in someone's personal bin. | ||
9291 | |||
9292 | OPATH=$PATH | ||
9293 | PATH=/bin:/usr/bin | ||
9294 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
9295 | test -d /sbin && PATH=$PATH:/sbin | ||
9296 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
9297 | PATH=$PATH:/etc:$OPATH | ||
9298 | |||
9299 | # These programs are used by the command hashing source to gather entropy | ||
9300 | |||
9301 | # Extract the first word of "ls", so it can be a program name with args. | ||
9302 | set dummy ls; ac_word=$2 | ||
9303 | echo "$as_me:9303: checking for $ac_word" >&5 | ||
9304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9305 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
9306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9307 | else | ||
9308 | case $PROG_LS in | ||
9309 | [\\/]* | ?:[\\/]*) | ||
9310 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
9311 | ;; | ||
9312 | *) | ||
9313 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9314 | ac_dummy="$PATH" | ||
9315 | for ac_dir in $ac_dummy; do | ||
9316 | IFS=$ac_save_IFS | ||
9317 | test -z "$ac_dir" && ac_dir=. | ||
9318 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9319 | ac_cv_path_PROG_LS="$ac_dir/$ac_word" | ||
9320 | echo "$as_me:9320: found $ac_dir/$ac_word" >&5 | ||
9321 | break | ||
9322 | fi | ||
9323 | done | ||
9324 | |||
9325 | ;; | ||
9326 | esac | ||
9327 | fi | ||
9328 | PROG_LS=$ac_cv_path_PROG_LS | ||
9329 | |||
9330 | if test -n "$PROG_LS"; then | ||
9331 | echo "$as_me:9331: result: $PROG_LS" >&5 | ||
9332 | echo "${ECHO_T}$PROG_LS" >&6 | ||
9333 | else | ||
9334 | echo "$as_me:9334: result: no" >&5 | ||
9335 | echo "${ECHO_T}no" >&6 | ||
9336 | fi | ||
9337 | |||
9338 | if test -z "$PROG_LS" ; then | ||
9339 | PROG_LS="undef" | ||
9340 | fi | ||
9341 | |||
9342 | # Extract the first word of "netstat", so it can be a program name with args. | ||
9343 | set dummy netstat; ac_word=$2 | ||
9344 | echo "$as_me:9344: checking for $ac_word" >&5 | ||
9345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9346 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
9347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9348 | else | ||
9349 | case $PROG_NETSTAT in | ||
9350 | [\\/]* | ?:[\\/]*) | ||
9351 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
9352 | ;; | ||
9353 | *) | ||
9354 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9355 | ac_dummy="$PATH" | ||
9356 | for ac_dir in $ac_dummy; do | ||
9357 | IFS=$ac_save_IFS | ||
9358 | test -z "$ac_dir" && ac_dir=. | ||
9359 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9360 | ac_cv_path_PROG_NETSTAT="$ac_dir/$ac_word" | ||
9361 | echo "$as_me:9361: found $ac_dir/$ac_word" >&5 | ||
9362 | break | ||
9363 | fi | ||
9364 | done | ||
9365 | |||
9366 | ;; | ||
9367 | esac | ||
9368 | fi | ||
9369 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
9370 | |||
9371 | if test -n "$PROG_NETSTAT"; then | ||
9372 | echo "$as_me:9372: result: $PROG_NETSTAT" >&5 | ||
9373 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
9374 | else | ||
9375 | echo "$as_me:9375: result: no" >&5 | ||
9376 | echo "${ECHO_T}no" >&6 | ||
9377 | fi | ||
9378 | |||
9379 | if test -z "$PROG_NETSTAT" ; then | ||
9380 | PROG_NETSTAT="undef" | ||
9381 | fi | ||
9382 | |||
9383 | # Extract the first word of "arp", so it can be a program name with args. | ||
9384 | set dummy arp; ac_word=$2 | ||
9385 | echo "$as_me:9385: checking for $ac_word" >&5 | ||
9386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9387 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
9388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9389 | else | ||
9390 | case $PROG_ARP in | ||
9391 | [\\/]* | ?:[\\/]*) | ||
9392 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
9393 | ;; | ||
9394 | *) | ||
9395 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9396 | ac_dummy="$PATH" | ||
9397 | for ac_dir in $ac_dummy; do | ||
9398 | IFS=$ac_save_IFS | ||
9399 | test -z "$ac_dir" && ac_dir=. | ||
9400 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9401 | ac_cv_path_PROG_ARP="$ac_dir/$ac_word" | ||
9402 | echo "$as_me:9402: found $ac_dir/$ac_word" >&5 | ||
9403 | break | ||
9404 | fi | ||
9405 | done | ||
9406 | |||
9407 | ;; | ||
9408 | esac | ||
9409 | fi | ||
9410 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
9411 | |||
9412 | if test -n "$PROG_ARP"; then | ||
9413 | echo "$as_me:9413: result: $PROG_ARP" >&5 | ||
9414 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
9415 | else | ||
9416 | echo "$as_me:9416: result: no" >&5 | ||
9417 | echo "${ECHO_T}no" >&6 | ||
9418 | fi | ||
9419 | |||
9420 | if test -z "$PROG_ARP" ; then | ||
9421 | PROG_ARP="undef" | ||
9422 | fi | ||
9423 | |||
9424 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
9425 | set dummy ifconfig; ac_word=$2 | ||
9426 | echo "$as_me:9426: checking for $ac_word" >&5 | ||
9427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9428 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
9429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9430 | else | ||
9431 | case $PROG_IFCONFIG in | ||
9432 | [\\/]* | ?:[\\/]*) | ||
9433 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
9434 | ;; | ||
9435 | *) | ||
9436 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9437 | ac_dummy="$PATH" | ||
9438 | for ac_dir in $ac_dummy; do | ||
9439 | IFS=$ac_save_IFS | ||
9440 | test -z "$ac_dir" && ac_dir=. | ||
9441 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9442 | ac_cv_path_PROG_IFCONFIG="$ac_dir/$ac_word" | ||
9443 | echo "$as_me:9443: found $ac_dir/$ac_word" >&5 | ||
9444 | break | ||
9445 | fi | ||
9446 | done | ||
9447 | |||
9448 | ;; | ||
9449 | esac | ||
9450 | fi | ||
9451 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
9452 | |||
9453 | if test -n "$PROG_IFCONFIG"; then | ||
9454 | echo "$as_me:9454: result: $PROG_IFCONFIG" >&5 | ||
9455 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
9456 | else | ||
9457 | echo "$as_me:9457: result: no" >&5 | ||
9458 | echo "${ECHO_T}no" >&6 | ||
9459 | fi | ||
9460 | |||
9461 | if test -z "$PROG_IFCONFIG" ; then | ||
9462 | PROG_IFCONFIG="undef" | ||
9463 | fi | ||
9464 | |||
9465 | # Extract the first word of "jstat", so it can be a program name with args. | ||
9466 | set dummy jstat; ac_word=$2 | ||
9467 | echo "$as_me:9467: checking for $ac_word" >&5 | ||
9468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9469 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
9470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9471 | else | ||
9472 | case $PROG_JSTAT in | ||
9473 | [\\/]* | ?:[\\/]*) | ||
9474 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
9475 | ;; | ||
9476 | *) | ||
9477 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9478 | ac_dummy="$PATH" | ||
9479 | for ac_dir in $ac_dummy; do | ||
9480 | IFS=$ac_save_IFS | ||
9481 | test -z "$ac_dir" && ac_dir=. | ||
9482 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9483 | ac_cv_path_PROG_JSTAT="$ac_dir/$ac_word" | ||
9484 | echo "$as_me:9484: found $ac_dir/$ac_word" >&5 | ||
9485 | break | ||
9486 | fi | ||
9487 | done | ||
9488 | |||
9489 | ;; | ||
9490 | esac | ||
9491 | fi | ||
9492 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
9493 | |||
9494 | if test -n "$PROG_JSTAT"; then | ||
9495 | echo "$as_me:9495: result: $PROG_JSTAT" >&5 | ||
9496 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
9497 | else | ||
9498 | echo "$as_me:9498: result: no" >&5 | ||
9499 | echo "${ECHO_T}no" >&6 | ||
9500 | fi | ||
9501 | |||
9502 | if test -z "$PROG_JSTAT" ; then | ||
9503 | PROG_JSTAT="undef" | ||
9504 | fi | ||
9505 | |||
9506 | # Extract the first word of "ps", so it can be a program name with args. | ||
9507 | set dummy ps; ac_word=$2 | ||
9508 | echo "$as_me:9508: checking for $ac_word" >&5 | ||
9509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9510 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
9511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9512 | else | ||
9513 | case $PROG_PS in | ||
9514 | [\\/]* | ?:[\\/]*) | ||
9515 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
9516 | ;; | ||
9517 | *) | ||
9518 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9519 | ac_dummy="$PATH" | ||
9520 | for ac_dir in $ac_dummy; do | ||
9521 | IFS=$ac_save_IFS | ||
9522 | test -z "$ac_dir" && ac_dir=. | ||
9523 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9524 | ac_cv_path_PROG_PS="$ac_dir/$ac_word" | ||
9525 | echo "$as_me:9525: found $ac_dir/$ac_word" >&5 | ||
9526 | break | ||
9527 | fi | ||
9528 | done | ||
9529 | |||
9530 | ;; | ||
9531 | esac | ||
9532 | fi | ||
9533 | PROG_PS=$ac_cv_path_PROG_PS | ||
9534 | |||
9535 | if test -n "$PROG_PS"; then | ||
9536 | echo "$as_me:9536: result: $PROG_PS" >&5 | ||
9537 | echo "${ECHO_T}$PROG_PS" >&6 | ||
9538 | else | ||
9539 | echo "$as_me:9539: result: no" >&5 | ||
9540 | echo "${ECHO_T}no" >&6 | ||
9541 | fi | ||
9542 | |||
9543 | if test -z "$PROG_PS" ; then | ||
9544 | PROG_PS="undef" | ||
9545 | fi | ||
9546 | |||
9547 | # Extract the first word of "sar", so it can be a program name with args. | ||
9548 | set dummy sar; ac_word=$2 | ||
9549 | echo "$as_me:9549: checking for $ac_word" >&5 | ||
9550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9551 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
9552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9553 | else | ||
9554 | case $PROG_SAR in | ||
9555 | [\\/]* | ?:[\\/]*) | ||
9556 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
9557 | ;; | ||
9558 | *) | ||
9559 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9560 | ac_dummy="$PATH" | ||
9561 | for ac_dir in $ac_dummy; do | ||
9562 | IFS=$ac_save_IFS | ||
9563 | test -z "$ac_dir" && ac_dir=. | ||
9564 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9565 | ac_cv_path_PROG_SAR="$ac_dir/$ac_word" | ||
9566 | echo "$as_me:9566: found $ac_dir/$ac_word" >&5 | ||
9567 | break | ||
9568 | fi | ||
9569 | done | ||
9570 | |||
9571 | ;; | ||
9572 | esac | ||
9573 | fi | ||
9574 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
9575 | |||
9576 | if test -n "$PROG_SAR"; then | ||
9577 | echo "$as_me:9577: result: $PROG_SAR" >&5 | ||
9578 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
9579 | else | ||
9580 | echo "$as_me:9580: result: no" >&5 | ||
9581 | echo "${ECHO_T}no" >&6 | ||
9582 | fi | ||
9583 | |||
9584 | if test -z "$PROG_SAR" ; then | ||
9585 | PROG_SAR="undef" | ||
9586 | fi | ||
9587 | |||
9588 | # Extract the first word of "w", so it can be a program name with args. | ||
9589 | set dummy w; ac_word=$2 | ||
9590 | echo "$as_me:9590: checking for $ac_word" >&5 | ||
9591 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9592 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
9593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9594 | else | ||
9595 | case $PROG_W in | ||
9596 | [\\/]* | ?:[\\/]*) | ||
9597 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
9598 | ;; | ||
9599 | *) | ||
9600 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9601 | ac_dummy="$PATH" | ||
9602 | for ac_dir in $ac_dummy; do | ||
9603 | IFS=$ac_save_IFS | ||
9604 | test -z "$ac_dir" && ac_dir=. | ||
9605 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9606 | ac_cv_path_PROG_W="$ac_dir/$ac_word" | ||
9607 | echo "$as_me:9607: found $ac_dir/$ac_word" >&5 | ||
9608 | break | ||
9609 | fi | ||
9610 | done | ||
9611 | |||
9612 | ;; | ||
9613 | esac | ||
9614 | fi | ||
9615 | PROG_W=$ac_cv_path_PROG_W | ||
9616 | |||
9617 | if test -n "$PROG_W"; then | ||
9618 | echo "$as_me:9618: result: $PROG_W" >&5 | ||
9619 | echo "${ECHO_T}$PROG_W" >&6 | ||
9620 | else | ||
9621 | echo "$as_me:9621: result: no" >&5 | ||
9622 | echo "${ECHO_T}no" >&6 | ||
9623 | fi | ||
9624 | |||
9625 | if test -z "$PROG_W" ; then | ||
9626 | PROG_W="undef" | ||
9627 | fi | ||
9628 | |||
9629 | # Extract the first word of "who", so it can be a program name with args. | ||
9630 | set dummy who; ac_word=$2 | ||
9631 | echo "$as_me:9631: checking for $ac_word" >&5 | ||
9632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9633 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
9634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9635 | else | ||
9636 | case $PROG_WHO in | ||
9637 | [\\/]* | ?:[\\/]*) | ||
9638 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
9639 | ;; | ||
9640 | *) | ||
9641 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9642 | ac_dummy="$PATH" | ||
9643 | for ac_dir in $ac_dummy; do | ||
9644 | IFS=$ac_save_IFS | ||
9645 | test -z "$ac_dir" && ac_dir=. | ||
9646 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9647 | ac_cv_path_PROG_WHO="$ac_dir/$ac_word" | ||
9648 | echo "$as_me:9648: found $ac_dir/$ac_word" >&5 | ||
9649 | break | ||
9650 | fi | ||
9651 | done | ||
9652 | |||
9653 | ;; | ||
9654 | esac | ||
9655 | fi | ||
9656 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
9657 | |||
9658 | if test -n "$PROG_WHO"; then | ||
9659 | echo "$as_me:9659: result: $PROG_WHO" >&5 | ||
9660 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
9661 | else | ||
9662 | echo "$as_me:9662: result: no" >&5 | ||
9663 | echo "${ECHO_T}no" >&6 | ||
9664 | fi | ||
9665 | |||
9666 | if test -z "$PROG_WHO" ; then | ||
9667 | PROG_WHO="undef" | ||
9668 | fi | ||
9669 | |||
9670 | # Extract the first word of "last", so it can be a program name with args. | ||
9671 | set dummy last; ac_word=$2 | ||
9672 | echo "$as_me:9672: checking for $ac_word" >&5 | ||
9673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9674 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
9675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9676 | else | ||
9677 | case $PROG_LAST in | ||
9678 | [\\/]* | ?:[\\/]*) | ||
9679 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
9680 | ;; | ||
9681 | *) | ||
9682 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9683 | ac_dummy="$PATH" | ||
9684 | for ac_dir in $ac_dummy; do | ||
9685 | IFS=$ac_save_IFS | ||
9686 | test -z "$ac_dir" && ac_dir=. | ||
9687 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9688 | ac_cv_path_PROG_LAST="$ac_dir/$ac_word" | ||
9689 | echo "$as_me:9689: found $ac_dir/$ac_word" >&5 | ||
9690 | break | ||
9691 | fi | ||
9692 | done | ||
9693 | |||
9694 | ;; | ||
9695 | esac | ||
9696 | fi | ||
9697 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
9698 | |||
9699 | if test -n "$PROG_LAST"; then | ||
9700 | echo "$as_me:9700: result: $PROG_LAST" >&5 | ||
9701 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
9702 | else | ||
9703 | echo "$as_me:9703: result: no" >&5 | ||
9704 | echo "${ECHO_T}no" >&6 | ||
9705 | fi | ||
9706 | |||
9707 | if test -z "$PROG_LAST" ; then | ||
9708 | PROG_LAST="undef" | ||
9709 | fi | ||
9710 | |||
9711 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
9712 | set dummy lastlog; ac_word=$2 | ||
9713 | echo "$as_me:9713: checking for $ac_word" >&5 | ||
9714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9715 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
9716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9717 | else | ||
9718 | case $PROG_LASTLOG in | ||
9719 | [\\/]* | ?:[\\/]*) | ||
9720 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
9721 | ;; | ||
9722 | *) | ||
9723 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9724 | ac_dummy="$PATH" | ||
9725 | for ac_dir in $ac_dummy; do | ||
9726 | IFS=$ac_save_IFS | ||
9727 | test -z "$ac_dir" && ac_dir=. | ||
9728 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9729 | ac_cv_path_PROG_LASTLOG="$ac_dir/$ac_word" | ||
9730 | echo "$as_me:9730: found $ac_dir/$ac_word" >&5 | ||
9731 | break | ||
9732 | fi | ||
9733 | done | ||
9734 | |||
9735 | ;; | ||
9736 | esac | ||
9737 | fi | ||
9738 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
9739 | |||
9740 | if test -n "$PROG_LASTLOG"; then | ||
9741 | echo "$as_me:9741: result: $PROG_LASTLOG" >&5 | ||
9742 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
9743 | else | ||
9744 | echo "$as_me:9744: result: no" >&5 | ||
9745 | echo "${ECHO_T}no" >&6 | ||
9746 | fi | ||
9747 | |||
9748 | if test -z "$PROG_LASTLOG" ; then | ||
9749 | PROG_LASTLOG="undef" | ||
9750 | fi | ||
9751 | |||
9752 | # Extract the first word of "df", so it can be a program name with args. | ||
9753 | set dummy df; ac_word=$2 | ||
9754 | echo "$as_me:9754: checking for $ac_word" >&5 | ||
9755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9756 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
9757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9758 | else | ||
9759 | case $PROG_DF in | ||
9760 | [\\/]* | ?:[\\/]*) | ||
9761 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
9762 | ;; | ||
9763 | *) | ||
9764 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9765 | ac_dummy="$PATH" | ||
9766 | for ac_dir in $ac_dummy; do | ||
9767 | IFS=$ac_save_IFS | ||
9768 | test -z "$ac_dir" && ac_dir=. | ||
9769 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9770 | ac_cv_path_PROG_DF="$ac_dir/$ac_word" | ||
9771 | echo "$as_me:9771: found $ac_dir/$ac_word" >&5 | ||
9772 | break | ||
9773 | fi | ||
9774 | done | ||
9775 | |||
9776 | ;; | ||
9777 | esac | ||
9778 | fi | ||
9779 | PROG_DF=$ac_cv_path_PROG_DF | ||
9780 | |||
9781 | if test -n "$PROG_DF"; then | ||
9782 | echo "$as_me:9782: result: $PROG_DF" >&5 | ||
9783 | echo "${ECHO_T}$PROG_DF" >&6 | ||
9784 | else | ||
9785 | echo "$as_me:9785: result: no" >&5 | ||
9786 | echo "${ECHO_T}no" >&6 | ||
9787 | fi | ||
9788 | |||
9789 | if test -z "$PROG_DF" ; then | ||
9790 | PROG_DF="undef" | ||
9791 | fi | ||
9792 | |||
9793 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
9794 | set dummy vmstat; ac_word=$2 | ||
9795 | echo "$as_me:9795: checking for $ac_word" >&5 | ||
9796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9797 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
9798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9799 | else | ||
9800 | case $PROG_VMSTAT in | ||
9801 | [\\/]* | ?:[\\/]*) | ||
9802 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
9803 | ;; | ||
9804 | *) | ||
9805 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9806 | ac_dummy="$PATH" | ||
9807 | for ac_dir in $ac_dummy; do | ||
9808 | IFS=$ac_save_IFS | ||
9809 | test -z "$ac_dir" && ac_dir=. | ||
9810 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9811 | ac_cv_path_PROG_VMSTAT="$ac_dir/$ac_word" | ||
9812 | echo "$as_me:9812: found $ac_dir/$ac_word" >&5 | ||
9813 | break | ||
9814 | fi | ||
9815 | done | ||
9816 | |||
9817 | ;; | ||
9818 | esac | ||
9819 | fi | ||
9820 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
9821 | |||
9822 | if test -n "$PROG_VMSTAT"; then | ||
9823 | echo "$as_me:9823: result: $PROG_VMSTAT" >&5 | ||
9824 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
9825 | else | ||
9826 | echo "$as_me:9826: result: no" >&5 | ||
9827 | echo "${ECHO_T}no" >&6 | ||
9828 | fi | ||
9829 | |||
9830 | if test -z "$PROG_VMSTAT" ; then | ||
9831 | PROG_VMSTAT="undef" | ||
9832 | fi | ||
9833 | |||
9834 | # Extract the first word of "uptime", so it can be a program name with args. | ||
9835 | set dummy uptime; ac_word=$2 | ||
9836 | echo "$as_me:9836: checking for $ac_word" >&5 | ||
9837 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9838 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
9839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9840 | else | ||
9841 | case $PROG_UPTIME in | ||
9842 | [\\/]* | ?:[\\/]*) | ||
9843 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
9844 | ;; | ||
9845 | *) | ||
9846 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9847 | ac_dummy="$PATH" | ||
9848 | for ac_dir in $ac_dummy; do | ||
9849 | IFS=$ac_save_IFS | ||
9850 | test -z "$ac_dir" && ac_dir=. | ||
9851 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9852 | ac_cv_path_PROG_UPTIME="$ac_dir/$ac_word" | ||
9853 | echo "$as_me:9853: found $ac_dir/$ac_word" >&5 | ||
9854 | break | ||
9855 | fi | ||
9856 | done | ||
9857 | |||
9858 | ;; | ||
9859 | esac | ||
9860 | fi | ||
9861 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
9862 | |||
9863 | if test -n "$PROG_UPTIME"; then | ||
9864 | echo "$as_me:9864: result: $PROG_UPTIME" >&5 | ||
9865 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
9866 | else | ||
9867 | echo "$as_me:9867: result: no" >&5 | ||
9868 | echo "${ECHO_T}no" >&6 | ||
9869 | fi | ||
9870 | |||
9871 | if test -z "$PROG_UPTIME" ; then | ||
9872 | PROG_UPTIME="undef" | ||
9873 | fi | ||
9874 | |||
9875 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
9876 | set dummy ipcs; ac_word=$2 | ||
9877 | echo "$as_me:9877: checking for $ac_word" >&5 | ||
9878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9879 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
9880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9881 | else | ||
9882 | case $PROG_IPCS in | ||
9883 | [\\/]* | ?:[\\/]*) | ||
9884 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
9885 | ;; | ||
9886 | *) | ||
9887 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9888 | ac_dummy="$PATH" | ||
9889 | for ac_dir in $ac_dummy; do | ||
9890 | IFS=$ac_save_IFS | ||
9891 | test -z "$ac_dir" && ac_dir=. | ||
9892 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9893 | ac_cv_path_PROG_IPCS="$ac_dir/$ac_word" | ||
9894 | echo "$as_me:9894: found $ac_dir/$ac_word" >&5 | ||
9895 | break | ||
9896 | fi | ||
9897 | done | ||
9898 | |||
9899 | ;; | ||
9900 | esac | ||
9901 | fi | ||
9902 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
9903 | |||
9904 | if test -n "$PROG_IPCS"; then | ||
9905 | echo "$as_me:9905: result: $PROG_IPCS" >&5 | ||
9906 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
9907 | else | ||
9908 | echo "$as_me:9908: result: no" >&5 | ||
9909 | echo "${ECHO_T}no" >&6 | ||
9910 | fi | ||
9911 | |||
9912 | if test -z "$PROG_IPCS" ; then | ||
9913 | PROG_IPCS="undef" | ||
9914 | fi | ||
9915 | |||
9916 | # Extract the first word of "tail", so it can be a program name with args. | ||
9917 | set dummy tail; ac_word=$2 | ||
9918 | echo "$as_me:9918: checking for $ac_word" >&5 | ||
9919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9920 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
9921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9922 | else | ||
9923 | case $PROG_TAIL in | ||
9924 | [\\/]* | ?:[\\/]*) | ||
9925 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
9926 | ;; | ||
9927 | *) | ||
9928 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9929 | ac_dummy="$PATH" | ||
9930 | for ac_dir in $ac_dummy; do | ||
9931 | IFS=$ac_save_IFS | ||
9932 | test -z "$ac_dir" && ac_dir=. | ||
9933 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9934 | ac_cv_path_PROG_TAIL="$ac_dir/$ac_word" | ||
9935 | echo "$as_me:9935: found $ac_dir/$ac_word" >&5 | ||
9936 | break | ||
9937 | fi | ||
9938 | done | ||
9939 | |||
9940 | ;; | ||
9941 | esac | ||
9942 | fi | ||
9943 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
9944 | |||
9945 | if test -n "$PROG_TAIL"; then | ||
9946 | echo "$as_me:9946: result: $PROG_TAIL" >&5 | ||
9947 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
9948 | else | ||
9949 | echo "$as_me:9949: result: no" >&5 | ||
9950 | echo "${ECHO_T}no" >&6 | ||
9951 | fi | ||
9952 | |||
9953 | if test -z "$PROG_TAIL" ; then | ||
9954 | PROG_TAIL="undef" | ||
9955 | fi | ||
9956 | |||
9957 | # restore PATH | ||
9958 | PATH=$OPATH | ||
9959 | |||
9960 | # Where does ssh-rand-helper get its randomness from? | ||
9961 | INSTALL_SSH_PRNG_CMDS="" | ||
9962 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
9963 | if test ! -z "$PRNGD_PORT" ; then | ||
9964 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
9965 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
9966 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
9967 | else | ||
9968 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
9969 | RAND_HELPER_CMDHASH=yes | ||
9970 | INSTALL_SSH_PRNG_CMDS="yes" | ||
9971 | fi | ||
9972 | fi | ||
9973 | |||
9974 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
9975 | if test ! -z "$SONY" ; then | ||
9976 | LIBS="$LIBS -liberty"; | ||
9977 | fi | ||
9978 | |||
9979 | # Checks for data types | ||
9980 | echo "$as_me:9980: checking for char" >&5 | ||
9981 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
9982 | if test "${ac_cv_type_char+set}" = set; then | ||
9983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9984 | else | ||
9985 | cat >conftest.$ac_ext <<_ACEOF | ||
9986 | #line 9986 "configure" | ||
9987 | #include "confdefs.h" | ||
9988 | $ac_includes_default | ||
9989 | int | ||
9990 | main () | ||
9991 | { | ||
9992 | if ((char *) 0) | ||
9993 | return 0; | ||
9994 | if (sizeof (char)) | ||
9995 | return 0; | ||
9996 | ; | ||
9997 | return 0; | ||
9998 | } | ||
9999 | _ACEOF | ||
10000 | rm -f conftest.$ac_objext | ||
10001 | if { (eval echo "$as_me:10001: \"$ac_compile\"") >&5 | ||
10002 | (eval $ac_compile) 2>&5 | ||
10003 | ac_status=$? | ||
10004 | echo "$as_me:10004: \$? = $ac_status" >&5 | ||
10005 | (exit $ac_status); } && | ||
10006 | { ac_try='test -s conftest.$ac_objext' | ||
10007 | { (eval echo "$as_me:10007: \"$ac_try\"") >&5 | ||
10008 | (eval $ac_try) 2>&5 | ||
10009 | ac_status=$? | ||
10010 | echo "$as_me:10010: \$? = $ac_status" >&5 | ||
10011 | (exit $ac_status); }; }; then | ||
10012 | ac_cv_type_char=yes | ||
10013 | else | ||
10014 | echo "$as_me: failed program was:" >&5 | ||
10015 | cat conftest.$ac_ext >&5 | ||
10016 | ac_cv_type_char=no | ||
10017 | fi | ||
10018 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10019 | fi | ||
10020 | echo "$as_me:10020: result: $ac_cv_type_char" >&5 | ||
10021 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
10022 | |||
10023 | echo "$as_me:10023: checking size of char" >&5 | ||
10024 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
10025 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
10026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10027 | else | ||
10028 | if test "$ac_cv_type_char" = yes; then | ||
10029 | if test "$cross_compiling" = yes; then | ||
10030 | # Depending upon the size, compute the lo and hi bounds. | ||
10031 | cat >conftest.$ac_ext <<_ACEOF | ||
10032 | #line 10032 "configure" | ||
10033 | #include "confdefs.h" | ||
10034 | $ac_includes_default | ||
10035 | int | ||
10036 | main () | ||
10037 | { | ||
10038 | int _array_ [1 - 2 * !((sizeof (char)) >= 0)] | ||
10039 | ; | ||
10040 | return 0; | ||
10041 | } | ||
10042 | _ACEOF | ||
10043 | rm -f conftest.$ac_objext | ||
10044 | if { (eval echo "$as_me:10044: \"$ac_compile\"") >&5 | ||
10045 | (eval $ac_compile) 2>&5 | ||
10046 | ac_status=$? | ||
10047 | echo "$as_me:10047: \$? = $ac_status" >&5 | ||
10048 | (exit $ac_status); } && | ||
10049 | { ac_try='test -s conftest.$ac_objext' | ||
10050 | { (eval echo "$as_me:10050: \"$ac_try\"") >&5 | ||
10051 | (eval $ac_try) 2>&5 | ||
10052 | ac_status=$? | ||
10053 | echo "$as_me:10053: \$? = $ac_status" >&5 | ||
10054 | (exit $ac_status); }; }; then | ||
10055 | ac_lo=0 ac_mid=0 | ||
10056 | while :; do | ||
10057 | cat >conftest.$ac_ext <<_ACEOF | ||
10058 | #line 10058 "configure" | ||
10059 | #include "confdefs.h" | ||
10060 | $ac_includes_default | ||
10061 | int | ||
10062 | main () | ||
10063 | { | ||
10064 | int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)] | ||
10065 | ; | ||
10066 | return 0; | ||
10067 | } | ||
10068 | _ACEOF | ||
10069 | rm -f conftest.$ac_objext | ||
10070 | if { (eval echo "$as_me:10070: \"$ac_compile\"") >&5 | ||
10071 | (eval $ac_compile) 2>&5 | ||
10072 | ac_status=$? | ||
10073 | echo "$as_me:10073: \$? = $ac_status" >&5 | ||
10074 | (exit $ac_status); } && | ||
10075 | { ac_try='test -s conftest.$ac_objext' | ||
10076 | { (eval echo "$as_me:10076: \"$ac_try\"") >&5 | ||
10077 | (eval $ac_try) 2>&5 | ||
10078 | ac_status=$? | ||
10079 | echo "$as_me:10079: \$? = $ac_status" >&5 | ||
10080 | (exit $ac_status); }; }; then | ||
10081 | ac_hi=$ac_mid; break | ||
10082 | else | ||
10083 | echo "$as_me: failed program was:" >&5 | ||
10084 | cat conftest.$ac_ext >&5 | ||
10085 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10086 | fi | ||
10087 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10088 | done | ||
10089 | else | ||
10090 | echo "$as_me: failed program was:" >&5 | ||
10091 | cat conftest.$ac_ext >&5 | ||
10092 | ac_hi=-1 ac_mid=-1 | ||
10093 | while :; do | ||
10094 | cat >conftest.$ac_ext <<_ACEOF | ||
10095 | #line 10095 "configure" | ||
10096 | #include "confdefs.h" | ||
10097 | $ac_includes_default | ||
10098 | int | ||
10099 | main () | ||
10100 | { | ||
10101 | int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)] | ||
10102 | ; | ||
10103 | return 0; | ||
10104 | } | ||
10105 | _ACEOF | ||
10106 | rm -f conftest.$ac_objext | ||
10107 | if { (eval echo "$as_me:10107: \"$ac_compile\"") >&5 | ||
10108 | (eval $ac_compile) 2>&5 | ||
10109 | ac_status=$? | ||
10110 | echo "$as_me:10110: \$? = $ac_status" >&5 | ||
10111 | (exit $ac_status); } && | ||
10112 | { ac_try='test -s conftest.$ac_objext' | ||
10113 | { (eval echo "$as_me:10113: \"$ac_try\"") >&5 | ||
10114 | (eval $ac_try) 2>&5 | ||
10115 | ac_status=$? | ||
10116 | echo "$as_me:10116: \$? = $ac_status" >&5 | ||
10117 | (exit $ac_status); }; }; then | ||
10118 | ac_lo=$ac_mid; break | ||
10119 | else | ||
10120 | echo "$as_me: failed program was:" >&5 | ||
10121 | cat conftest.$ac_ext >&5 | ||
10122 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
10123 | fi | ||
10124 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10125 | done | ||
10126 | fi | ||
10127 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10128 | # Binary search between lo and hi bounds. | ||
10129 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10130 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10131 | cat >conftest.$ac_ext <<_ACEOF | ||
10132 | #line 10132 "configure" | ||
10133 | #include "confdefs.h" | ||
10134 | $ac_includes_default | ||
10135 | int | ||
10136 | main () | ||
10137 | { | ||
10138 | int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)] | ||
10139 | ; | ||
10140 | return 0; | ||
10141 | } | ||
10142 | _ACEOF | ||
10143 | rm -f conftest.$ac_objext | ||
10144 | if { (eval echo "$as_me:10144: \"$ac_compile\"") >&5 | ||
10145 | (eval $ac_compile) 2>&5 | ||
10146 | ac_status=$? | ||
10147 | echo "$as_me:10147: \$? = $ac_status" >&5 | ||
10148 | (exit $ac_status); } && | ||
10149 | { ac_try='test -s conftest.$ac_objext' | ||
10150 | { (eval echo "$as_me:10150: \"$ac_try\"") >&5 | ||
10151 | (eval $ac_try) 2>&5 | ||
10152 | ac_status=$? | ||
10153 | echo "$as_me:10153: \$? = $ac_status" >&5 | ||
10154 | (exit $ac_status); }; }; then | ||
10155 | ac_hi=$ac_mid | ||
10156 | else | ||
10157 | echo "$as_me: failed program was:" >&5 | ||
10158 | cat conftest.$ac_ext >&5 | ||
10159 | ac_lo=`expr $ac_mid + 1` | ||
10160 | fi | ||
10161 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10162 | done | ||
10163 | ac_cv_sizeof_char=$ac_lo | ||
10164 | else | ||
10165 | if test "$cross_compiling" = yes; then | ||
10166 | { { echo "$as_me:10166: error: cannot run test program while cross compiling" >&5 | ||
10167 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10168 | { (exit 1); exit 1; }; } | ||
10169 | else | ||
10170 | cat >conftest.$ac_ext <<_ACEOF | ||
10171 | #line 10171 "configure" | ||
10172 | #include "confdefs.h" | ||
10173 | $ac_includes_default | ||
10174 | int | ||
10175 | main () | ||
10176 | { | ||
10177 | FILE *f = fopen ("conftest.val", "w"); | ||
10178 | if (!f) | ||
10179 | exit (1); | ||
10180 | fprintf (f, "%d", (sizeof (char))); | ||
10181 | fclose (f); | ||
10182 | ; | ||
10183 | return 0; | ||
10184 | } | ||
10185 | _ACEOF | ||
10186 | rm -f conftest$ac_exeext | ||
10187 | if { (eval echo "$as_me:10187: \"$ac_link\"") >&5 | ||
10188 | (eval $ac_link) 2>&5 | ||
10189 | ac_status=$? | ||
10190 | echo "$as_me:10190: \$? = $ac_status" >&5 | ||
10191 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10192 | { (eval echo "$as_me:10192: \"$ac_try\"") >&5 | ||
10193 | (eval $ac_try) 2>&5 | ||
10194 | ac_status=$? | ||
10195 | echo "$as_me:10195: \$? = $ac_status" >&5 | ||
10196 | (exit $ac_status); }; }; then | ||
10197 | ac_cv_sizeof_char=`cat conftest.val` | ||
10198 | else | ||
10199 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10200 | echo "$as_me: failed program was:" >&5 | ||
10201 | cat conftest.$ac_ext >&5 | ||
10202 | fi | ||
10203 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10204 | fi | ||
10205 | fi | ||
10206 | rm -f conftest.val | ||
10207 | else | ||
10208 | ac_cv_sizeof_char=0 | ||
10209 | fi | ||
10210 | fi | ||
10211 | echo "$as_me:10211: result: $ac_cv_sizeof_char" >&5 | ||
10212 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
10213 | cat >>confdefs.h <<EOF | ||
10214 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
10215 | EOF | ||
10216 | |||
10217 | echo "$as_me:10217: checking for short int" >&5 | ||
10218 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
10219 | if test "${ac_cv_type_short_int+set}" = set; then | ||
10220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10221 | else | ||
10222 | cat >conftest.$ac_ext <<_ACEOF | ||
10223 | #line 10223 "configure" | ||
10224 | #include "confdefs.h" | ||
10225 | $ac_includes_default | ||
10226 | int | ||
10227 | main () | ||
10228 | { | ||
10229 | if ((short int *) 0) | ||
10230 | return 0; | ||
10231 | if (sizeof (short int)) | ||
10232 | return 0; | ||
10233 | ; | ||
10234 | return 0; | ||
10235 | } | ||
10236 | _ACEOF | ||
10237 | rm -f conftest.$ac_objext | ||
10238 | if { (eval echo "$as_me:10238: \"$ac_compile\"") >&5 | ||
10239 | (eval $ac_compile) 2>&5 | ||
10240 | ac_status=$? | ||
10241 | echo "$as_me:10241: \$? = $ac_status" >&5 | ||
10242 | (exit $ac_status); } && | ||
10243 | { ac_try='test -s conftest.$ac_objext' | ||
10244 | { (eval echo "$as_me:10244: \"$ac_try\"") >&5 | ||
10245 | (eval $ac_try) 2>&5 | ||
10246 | ac_status=$? | ||
10247 | echo "$as_me:10247: \$? = $ac_status" >&5 | ||
10248 | (exit $ac_status); }; }; then | ||
10249 | ac_cv_type_short_int=yes | ||
10250 | else | ||
10251 | echo "$as_me: failed program was:" >&5 | ||
10252 | cat conftest.$ac_ext >&5 | ||
10253 | ac_cv_type_short_int=no | ||
10254 | fi | ||
10255 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10256 | fi | ||
10257 | echo "$as_me:10257: result: $ac_cv_type_short_int" >&5 | ||
10258 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
10259 | |||
10260 | echo "$as_me:10260: checking size of short int" >&5 | ||
10261 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
10262 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
10263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10264 | else | ||
10265 | if test "$ac_cv_type_short_int" = yes; then | ||
10266 | if test "$cross_compiling" = yes; then | ||
10267 | # Depending upon the size, compute the lo and hi bounds. | ||
10268 | cat >conftest.$ac_ext <<_ACEOF | ||
10269 | #line 10269 "configure" | ||
10270 | #include "confdefs.h" | ||
10271 | $ac_includes_default | ||
10272 | int | ||
10273 | main () | ||
10274 | { | ||
10275 | int _array_ [1 - 2 * !((sizeof (short int)) >= 0)] | ||
10276 | ; | ||
10277 | return 0; | ||
10278 | } | ||
10279 | _ACEOF | ||
10280 | rm -f conftest.$ac_objext | ||
10281 | if { (eval echo "$as_me:10281: \"$ac_compile\"") >&5 | ||
10282 | (eval $ac_compile) 2>&5 | ||
10283 | ac_status=$? | ||
10284 | echo "$as_me:10284: \$? = $ac_status" >&5 | ||
10285 | (exit $ac_status); } && | ||
10286 | { ac_try='test -s conftest.$ac_objext' | ||
10287 | { (eval echo "$as_me:10287: \"$ac_try\"") >&5 | ||
10288 | (eval $ac_try) 2>&5 | ||
10289 | ac_status=$? | ||
10290 | echo "$as_me:10290: \$? = $ac_status" >&5 | ||
10291 | (exit $ac_status); }; }; then | ||
10292 | ac_lo=0 ac_mid=0 | ||
10293 | while :; do | ||
10294 | cat >conftest.$ac_ext <<_ACEOF | ||
10295 | #line 10295 "configure" | ||
10296 | #include "confdefs.h" | ||
10297 | $ac_includes_default | ||
10298 | int | ||
10299 | main () | ||
10300 | { | ||
10301 | int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)] | ||
10302 | ; | ||
10303 | return 0; | ||
10304 | } | ||
10305 | _ACEOF | ||
10306 | rm -f conftest.$ac_objext | ||
10307 | if { (eval echo "$as_me:10307: \"$ac_compile\"") >&5 | ||
10308 | (eval $ac_compile) 2>&5 | ||
10309 | ac_status=$? | ||
10310 | echo "$as_me:10310: \$? = $ac_status" >&5 | ||
10311 | (exit $ac_status); } && | ||
10312 | { ac_try='test -s conftest.$ac_objext' | ||
10313 | { (eval echo "$as_me:10313: \"$ac_try\"") >&5 | ||
10314 | (eval $ac_try) 2>&5 | ||
10315 | ac_status=$? | ||
10316 | echo "$as_me:10316: \$? = $ac_status" >&5 | ||
10317 | (exit $ac_status); }; }; then | ||
10318 | ac_hi=$ac_mid; break | ||
10319 | else | ||
10320 | echo "$as_me: failed program was:" >&5 | ||
10321 | cat conftest.$ac_ext >&5 | ||
10322 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10323 | fi | ||
10324 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10325 | done | ||
10326 | else | ||
10327 | echo "$as_me: failed program was:" >&5 | ||
10328 | cat conftest.$ac_ext >&5 | ||
10329 | ac_hi=-1 ac_mid=-1 | ||
10330 | while :; do | ||
10331 | cat >conftest.$ac_ext <<_ACEOF | ||
10332 | #line 10332 "configure" | ||
10333 | #include "confdefs.h" | ||
10334 | $ac_includes_default | ||
10335 | int | ||
10336 | main () | ||
10337 | { | ||
10338 | int _array_ [1 - 2 * !((sizeof (short int)) >= $ac_mid)] | ||
10339 | ; | ||
10340 | return 0; | ||
10341 | } | ||
10342 | _ACEOF | ||
10343 | rm -f conftest.$ac_objext | ||
10344 | if { (eval echo "$as_me:10344: \"$ac_compile\"") >&5 | ||
10345 | (eval $ac_compile) 2>&5 | ||
10346 | ac_status=$? | ||
10347 | echo "$as_me:10347: \$? = $ac_status" >&5 | ||
10348 | (exit $ac_status); } && | ||
10349 | { ac_try='test -s conftest.$ac_objext' | ||
10350 | { (eval echo "$as_me:10350: \"$ac_try\"") >&5 | ||
10351 | (eval $ac_try) 2>&5 | ||
10352 | ac_status=$? | ||
10353 | echo "$as_me:10353: \$? = $ac_status" >&5 | ||
10354 | (exit $ac_status); }; }; then | ||
10355 | ac_lo=$ac_mid; break | ||
10356 | else | ||
10357 | echo "$as_me: failed program was:" >&5 | ||
10358 | cat conftest.$ac_ext >&5 | ||
10359 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
10360 | fi | ||
10361 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10362 | done | ||
10363 | fi | ||
10364 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10365 | # Binary search between lo and hi bounds. | ||
10366 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10367 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10368 | cat >conftest.$ac_ext <<_ACEOF | ||
10369 | #line 10369 "configure" | ||
10370 | #include "confdefs.h" | ||
10371 | $ac_includes_default | ||
10372 | int | ||
10373 | main () | ||
10374 | { | ||
10375 | int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)] | ||
10376 | ; | ||
10377 | return 0; | ||
10378 | } | ||
10379 | _ACEOF | ||
10380 | rm -f conftest.$ac_objext | ||
10381 | if { (eval echo "$as_me:10381: \"$ac_compile\"") >&5 | ||
10382 | (eval $ac_compile) 2>&5 | ||
10383 | ac_status=$? | ||
10384 | echo "$as_me:10384: \$? = $ac_status" >&5 | ||
10385 | (exit $ac_status); } && | ||
10386 | { ac_try='test -s conftest.$ac_objext' | ||
10387 | { (eval echo "$as_me:10387: \"$ac_try\"") >&5 | ||
10388 | (eval $ac_try) 2>&5 | ||
10389 | ac_status=$? | ||
10390 | echo "$as_me:10390: \$? = $ac_status" >&5 | ||
10391 | (exit $ac_status); }; }; then | ||
10392 | ac_hi=$ac_mid | ||
10393 | else | ||
10394 | echo "$as_me: failed program was:" >&5 | ||
10395 | cat conftest.$ac_ext >&5 | ||
10396 | ac_lo=`expr $ac_mid + 1` | ||
10397 | fi | ||
10398 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10399 | done | ||
10400 | ac_cv_sizeof_short_int=$ac_lo | ||
10401 | else | ||
10402 | if test "$cross_compiling" = yes; then | ||
10403 | { { echo "$as_me:10403: error: cannot run test program while cross compiling" >&5 | ||
10404 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10405 | { (exit 1); exit 1; }; } | ||
10406 | else | ||
10407 | cat >conftest.$ac_ext <<_ACEOF | ||
10408 | #line 10408 "configure" | ||
10409 | #include "confdefs.h" | ||
10410 | $ac_includes_default | ||
10411 | int | ||
10412 | main () | ||
10413 | { | ||
10414 | FILE *f = fopen ("conftest.val", "w"); | ||
10415 | if (!f) | ||
10416 | exit (1); | ||
10417 | fprintf (f, "%d", (sizeof (short int))); | ||
10418 | fclose (f); | ||
10419 | ; | ||
10420 | return 0; | ||
10421 | } | ||
10422 | _ACEOF | ||
10423 | rm -f conftest$ac_exeext | ||
10424 | if { (eval echo "$as_me:10424: \"$ac_link\"") >&5 | ||
10425 | (eval $ac_link) 2>&5 | ||
10426 | ac_status=$? | ||
10427 | echo "$as_me:10427: \$? = $ac_status" >&5 | ||
10428 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10429 | { (eval echo "$as_me:10429: \"$ac_try\"") >&5 | ||
10430 | (eval $ac_try) 2>&5 | ||
10431 | ac_status=$? | ||
10432 | echo "$as_me:10432: \$? = $ac_status" >&5 | ||
10433 | (exit $ac_status); }; }; then | ||
10434 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
10435 | else | ||
10436 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10437 | echo "$as_me: failed program was:" >&5 | ||
10438 | cat conftest.$ac_ext >&5 | ||
10439 | fi | ||
10440 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10441 | fi | ||
10442 | fi | ||
10443 | rm -f conftest.val | ||
10444 | else | ||
10445 | ac_cv_sizeof_short_int=0 | ||
10446 | fi | ||
10447 | fi | ||
10448 | echo "$as_me:10448: result: $ac_cv_sizeof_short_int" >&5 | ||
10449 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
10450 | cat >>confdefs.h <<EOF | ||
10451 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
10452 | EOF | ||
10453 | |||
10454 | echo "$as_me:10454: checking for int" >&5 | ||
10455 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
10456 | if test "${ac_cv_type_int+set}" = set; then | ||
10457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10458 | else | ||
10459 | cat >conftest.$ac_ext <<_ACEOF | ||
10460 | #line 10460 "configure" | ||
10461 | #include "confdefs.h" | ||
10462 | $ac_includes_default | ||
10463 | int | ||
10464 | main () | ||
10465 | { | ||
10466 | if ((int *) 0) | ||
10467 | return 0; | ||
10468 | if (sizeof (int)) | ||
10469 | return 0; | ||
10470 | ; | ||
10471 | return 0; | ||
10472 | } | ||
10473 | _ACEOF | ||
10474 | rm -f conftest.$ac_objext | ||
10475 | if { (eval echo "$as_me:10475: \"$ac_compile\"") >&5 | ||
10476 | (eval $ac_compile) 2>&5 | ||
10477 | ac_status=$? | ||
10478 | echo "$as_me:10478: \$? = $ac_status" >&5 | ||
10479 | (exit $ac_status); } && | ||
10480 | { ac_try='test -s conftest.$ac_objext' | ||
10481 | { (eval echo "$as_me:10481: \"$ac_try\"") >&5 | ||
10482 | (eval $ac_try) 2>&5 | ||
10483 | ac_status=$? | ||
10484 | echo "$as_me:10484: \$? = $ac_status" >&5 | ||
10485 | (exit $ac_status); }; }; then | ||
10486 | ac_cv_type_int=yes | ||
10487 | else | ||
10488 | echo "$as_me: failed program was:" >&5 | ||
10489 | cat conftest.$ac_ext >&5 | ||
10490 | ac_cv_type_int=no | ||
10491 | fi | ||
10492 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10493 | fi | ||
10494 | echo "$as_me:10494: result: $ac_cv_type_int" >&5 | ||
10495 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
10496 | |||
10497 | echo "$as_me:10497: checking size of int" >&5 | ||
10498 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
10499 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
10500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10501 | else | ||
10502 | if test "$ac_cv_type_int" = yes; then | ||
10503 | if test "$cross_compiling" = yes; then | ||
10504 | # Depending upon the size, compute the lo and hi bounds. | ||
10505 | cat >conftest.$ac_ext <<_ACEOF | ||
10506 | #line 10506 "configure" | ||
10507 | #include "confdefs.h" | ||
10508 | $ac_includes_default | ||
10509 | int | ||
10510 | main () | ||
10511 | { | ||
10512 | int _array_ [1 - 2 * !((sizeof (int)) >= 0)] | ||
10513 | ; | ||
10514 | return 0; | ||
10515 | } | ||
10516 | _ACEOF | ||
10517 | rm -f conftest.$ac_objext | ||
10518 | if { (eval echo "$as_me:10518: \"$ac_compile\"") >&5 | ||
10519 | (eval $ac_compile) 2>&5 | ||
10520 | ac_status=$? | ||
10521 | echo "$as_me:10521: \$? = $ac_status" >&5 | ||
10522 | (exit $ac_status); } && | ||
10523 | { ac_try='test -s conftest.$ac_objext' | ||
10524 | { (eval echo "$as_me:10524: \"$ac_try\"") >&5 | ||
10525 | (eval $ac_try) 2>&5 | ||
10526 | ac_status=$? | ||
10527 | echo "$as_me:10527: \$? = $ac_status" >&5 | ||
10528 | (exit $ac_status); }; }; then | ||
10529 | ac_lo=0 ac_mid=0 | ||
10530 | while :; do | ||
10531 | cat >conftest.$ac_ext <<_ACEOF | ||
10532 | #line 10532 "configure" | ||
10533 | #include "confdefs.h" | ||
10534 | $ac_includes_default | ||
10535 | int | ||
10536 | main () | ||
10537 | { | ||
10538 | int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] | ||
10539 | ; | ||
10540 | return 0; | ||
10541 | } | ||
10542 | _ACEOF | ||
10543 | rm -f conftest.$ac_objext | ||
10544 | if { (eval echo "$as_me:10544: \"$ac_compile\"") >&5 | ||
10545 | (eval $ac_compile) 2>&5 | ||
10546 | ac_status=$? | ||
10547 | echo "$as_me:10547: \$? = $ac_status" >&5 | ||
10548 | (exit $ac_status); } && | ||
10549 | { ac_try='test -s conftest.$ac_objext' | ||
10550 | { (eval echo "$as_me:10550: \"$ac_try\"") >&5 | ||
10551 | (eval $ac_try) 2>&5 | ||
10552 | ac_status=$? | ||
10553 | echo "$as_me:10553: \$? = $ac_status" >&5 | ||
10554 | (exit $ac_status); }; }; then | ||
10555 | ac_hi=$ac_mid; break | ||
10556 | else | ||
10557 | echo "$as_me: failed program was:" >&5 | ||
10558 | cat conftest.$ac_ext >&5 | ||
10559 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10560 | fi | ||
10561 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10562 | done | ||
10563 | else | ||
10564 | echo "$as_me: failed program was:" >&5 | ||
10565 | cat conftest.$ac_ext >&5 | ||
10566 | ac_hi=-1 ac_mid=-1 | ||
10567 | while :; do | ||
10568 | cat >conftest.$ac_ext <<_ACEOF | ||
10569 | #line 10569 "configure" | ||
10570 | #include "confdefs.h" | ||
10571 | $ac_includes_default | ||
10572 | int | ||
10573 | main () | ||
10574 | { | ||
10575 | int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)] | ||
10576 | ; | ||
10577 | return 0; | ||
10578 | } | ||
10579 | _ACEOF | ||
10580 | rm -f conftest.$ac_objext | ||
10581 | if { (eval echo "$as_me:10581: \"$ac_compile\"") >&5 | ||
10582 | (eval $ac_compile) 2>&5 | ||
10583 | ac_status=$? | ||
10584 | echo "$as_me:10584: \$? = $ac_status" >&5 | ||
10585 | (exit $ac_status); } && | ||
10586 | { ac_try='test -s conftest.$ac_objext' | ||
10587 | { (eval echo "$as_me:10587: \"$ac_try\"") >&5 | ||
10588 | (eval $ac_try) 2>&5 | ||
10589 | ac_status=$? | ||
10590 | echo "$as_me:10590: \$? = $ac_status" >&5 | ||
10591 | (exit $ac_status); }; }; then | ||
10592 | ac_lo=$ac_mid; break | ||
10593 | else | ||
10594 | echo "$as_me: failed program was:" >&5 | ||
10595 | cat conftest.$ac_ext >&5 | ||
10596 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
10597 | fi | ||
10598 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10599 | done | ||
10600 | fi | ||
10601 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10602 | # Binary search between lo and hi bounds. | ||
10603 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10604 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10605 | cat >conftest.$ac_ext <<_ACEOF | ||
10606 | #line 10606 "configure" | ||
10607 | #include "confdefs.h" | ||
10608 | $ac_includes_default | ||
10609 | int | ||
10610 | main () | ||
10611 | { | ||
10612 | int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] | ||
10613 | ; | ||
10614 | return 0; | ||
10615 | } | ||
10616 | _ACEOF | ||
10617 | rm -f conftest.$ac_objext | ||
10618 | if { (eval echo "$as_me:10618: \"$ac_compile\"") >&5 | ||
10619 | (eval $ac_compile) 2>&5 | ||
10620 | ac_status=$? | ||
10621 | echo "$as_me:10621: \$? = $ac_status" >&5 | ||
10622 | (exit $ac_status); } && | ||
10623 | { ac_try='test -s conftest.$ac_objext' | ||
10624 | { (eval echo "$as_me:10624: \"$ac_try\"") >&5 | ||
10625 | (eval $ac_try) 2>&5 | ||
10626 | ac_status=$? | ||
10627 | echo "$as_me:10627: \$? = $ac_status" >&5 | ||
10628 | (exit $ac_status); }; }; then | ||
10629 | ac_hi=$ac_mid | ||
10630 | else | ||
10631 | echo "$as_me: failed program was:" >&5 | ||
10632 | cat conftest.$ac_ext >&5 | ||
10633 | ac_lo=`expr $ac_mid + 1` | ||
10634 | fi | ||
10635 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10636 | done | ||
10637 | ac_cv_sizeof_int=$ac_lo | ||
10638 | else | ||
10639 | if test "$cross_compiling" = yes; then | ||
10640 | { { echo "$as_me:10640: error: cannot run test program while cross compiling" >&5 | ||
10641 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10642 | { (exit 1); exit 1; }; } | ||
10643 | else | ||
10644 | cat >conftest.$ac_ext <<_ACEOF | ||
10645 | #line 10645 "configure" | ||
10646 | #include "confdefs.h" | ||
10647 | $ac_includes_default | ||
10648 | int | ||
10649 | main () | ||
10650 | { | ||
10651 | FILE *f = fopen ("conftest.val", "w"); | ||
10652 | if (!f) | ||
10653 | exit (1); | ||
10654 | fprintf (f, "%d", (sizeof (int))); | ||
10655 | fclose (f); | ||
10656 | ; | ||
10657 | return 0; | ||
10658 | } | ||
10659 | _ACEOF | ||
10660 | rm -f conftest$ac_exeext | ||
10661 | if { (eval echo "$as_me:10661: \"$ac_link\"") >&5 | ||
10662 | (eval $ac_link) 2>&5 | ||
10663 | ac_status=$? | ||
10664 | echo "$as_me:10664: \$? = $ac_status" >&5 | ||
10665 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10666 | { (eval echo "$as_me:10666: \"$ac_try\"") >&5 | ||
10667 | (eval $ac_try) 2>&5 | ||
10668 | ac_status=$? | ||
10669 | echo "$as_me:10669: \$? = $ac_status" >&5 | ||
10670 | (exit $ac_status); }; }; then | ||
10671 | ac_cv_sizeof_int=`cat conftest.val` | ||
10672 | else | ||
10673 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10674 | echo "$as_me: failed program was:" >&5 | ||
10675 | cat conftest.$ac_ext >&5 | ||
10676 | fi | ||
10677 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10678 | fi | ||
10679 | fi | ||
10680 | rm -f conftest.val | ||
10681 | else | ||
10682 | ac_cv_sizeof_int=0 | ||
10683 | fi | ||
10684 | fi | ||
10685 | echo "$as_me:10685: result: $ac_cv_sizeof_int" >&5 | ||
10686 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
10687 | cat >>confdefs.h <<EOF | ||
10688 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
10689 | EOF | ||
10690 | |||
10691 | echo "$as_me:10691: checking for long int" >&5 | ||
10692 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
10693 | if test "${ac_cv_type_long_int+set}" = set; then | ||
10694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10695 | else | ||
10696 | cat >conftest.$ac_ext <<_ACEOF | ||
10697 | #line 10697 "configure" | ||
10698 | #include "confdefs.h" | ||
10699 | $ac_includes_default | ||
10700 | int | ||
10701 | main () | ||
10702 | { | ||
10703 | if ((long int *) 0) | ||
10704 | return 0; | ||
10705 | if (sizeof (long int)) | ||
10706 | return 0; | ||
10707 | ; | ||
10708 | return 0; | ||
10709 | } | ||
10710 | _ACEOF | ||
10711 | rm -f conftest.$ac_objext | ||
10712 | if { (eval echo "$as_me:10712: \"$ac_compile\"") >&5 | ||
10713 | (eval $ac_compile) 2>&5 | ||
10714 | ac_status=$? | ||
10715 | echo "$as_me:10715: \$? = $ac_status" >&5 | ||
10716 | (exit $ac_status); } && | ||
10717 | { ac_try='test -s conftest.$ac_objext' | ||
10718 | { (eval echo "$as_me:10718: \"$ac_try\"") >&5 | ||
10719 | (eval $ac_try) 2>&5 | ||
10720 | ac_status=$? | ||
10721 | echo "$as_me:10721: \$? = $ac_status" >&5 | ||
10722 | (exit $ac_status); }; }; then | ||
10723 | ac_cv_type_long_int=yes | ||
10724 | else | ||
10725 | echo "$as_me: failed program was:" >&5 | ||
10726 | cat conftest.$ac_ext >&5 | ||
10727 | ac_cv_type_long_int=no | ||
10728 | fi | ||
10729 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10730 | fi | ||
10731 | echo "$as_me:10731: result: $ac_cv_type_long_int" >&5 | ||
10732 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
10733 | |||
10734 | echo "$as_me:10734: checking size of long int" >&5 | ||
10735 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
10736 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
10737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10738 | else | ||
10739 | if test "$ac_cv_type_long_int" = yes; then | ||
10740 | if test "$cross_compiling" = yes; then | ||
10741 | # Depending upon the size, compute the lo and hi bounds. | ||
10742 | cat >conftest.$ac_ext <<_ACEOF | ||
10743 | #line 10743 "configure" | ||
10744 | #include "confdefs.h" | ||
10745 | $ac_includes_default | ||
10746 | int | ||
10747 | main () | ||
10748 | { | ||
10749 | int _array_ [1 - 2 * !((sizeof (long int)) >= 0)] | ||
10750 | ; | ||
10751 | return 0; | ||
10752 | } | ||
10753 | _ACEOF | ||
10754 | rm -f conftest.$ac_objext | ||
10755 | if { (eval echo "$as_me:10755: \"$ac_compile\"") >&5 | ||
10756 | (eval $ac_compile) 2>&5 | ||
10757 | ac_status=$? | ||
10758 | echo "$as_me:10758: \$? = $ac_status" >&5 | ||
10759 | (exit $ac_status); } && | ||
10760 | { ac_try='test -s conftest.$ac_objext' | ||
10761 | { (eval echo "$as_me:10761: \"$ac_try\"") >&5 | ||
10762 | (eval $ac_try) 2>&5 | ||
10763 | ac_status=$? | ||
10764 | echo "$as_me:10764: \$? = $ac_status" >&5 | ||
10765 | (exit $ac_status); }; }; then | ||
10766 | ac_lo=0 ac_mid=0 | ||
10767 | while :; do | ||
10768 | cat >conftest.$ac_ext <<_ACEOF | ||
10769 | #line 10769 "configure" | ||
10770 | #include "confdefs.h" | ||
10771 | $ac_includes_default | ||
10772 | int | ||
10773 | main () | ||
10774 | { | ||
10775 | int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)] | ||
10776 | ; | ||
10777 | return 0; | ||
10778 | } | ||
10779 | _ACEOF | ||
10780 | rm -f conftest.$ac_objext | ||
10781 | if { (eval echo "$as_me:10781: \"$ac_compile\"") >&5 | ||
10782 | (eval $ac_compile) 2>&5 | ||
10783 | ac_status=$? | ||
10784 | echo "$as_me:10784: \$? = $ac_status" >&5 | ||
10785 | (exit $ac_status); } && | ||
10786 | { ac_try='test -s conftest.$ac_objext' | ||
10787 | { (eval echo "$as_me:10787: \"$ac_try\"") >&5 | ||
10788 | (eval $ac_try) 2>&5 | ||
10789 | ac_status=$? | ||
10790 | echo "$as_me:10790: \$? = $ac_status" >&5 | ||
10791 | (exit $ac_status); }; }; then | ||
10792 | ac_hi=$ac_mid; break | ||
10793 | else | ||
10794 | echo "$as_me: failed program was:" >&5 | ||
10795 | cat conftest.$ac_ext >&5 | ||
10796 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10797 | fi | ||
10798 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10799 | done | ||
10800 | else | ||
10801 | echo "$as_me: failed program was:" >&5 | ||
10802 | cat conftest.$ac_ext >&5 | ||
10803 | ac_hi=-1 ac_mid=-1 | ||
10804 | while :; do | ||
10805 | cat >conftest.$ac_ext <<_ACEOF | ||
10806 | #line 10806 "configure" | ||
10807 | #include "confdefs.h" | ||
10808 | $ac_includes_default | ||
10809 | int | ||
10810 | main () | ||
10811 | { | ||
10812 | int _array_ [1 - 2 * !((sizeof (long int)) >= $ac_mid)] | ||
10813 | ; | ||
10814 | return 0; | ||
10815 | } | ||
10816 | _ACEOF | ||
10817 | rm -f conftest.$ac_objext | ||
10818 | if { (eval echo "$as_me:10818: \"$ac_compile\"") >&5 | ||
10819 | (eval $ac_compile) 2>&5 | ||
10820 | ac_status=$? | ||
10821 | echo "$as_me:10821: \$? = $ac_status" >&5 | ||
10822 | (exit $ac_status); } && | ||
10823 | { ac_try='test -s conftest.$ac_objext' | ||
10824 | { (eval echo "$as_me:10824: \"$ac_try\"") >&5 | ||
10825 | (eval $ac_try) 2>&5 | ||
10826 | ac_status=$? | ||
10827 | echo "$as_me:10827: \$? = $ac_status" >&5 | ||
10828 | (exit $ac_status); }; }; then | ||
10829 | ac_lo=$ac_mid; break | ||
10830 | else | ||
10831 | echo "$as_me: failed program was:" >&5 | ||
10832 | cat conftest.$ac_ext >&5 | ||
10833 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
10834 | fi | ||
10835 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10836 | done | ||
10837 | fi | ||
10838 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10839 | # Binary search between lo and hi bounds. | ||
10840 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10841 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10842 | cat >conftest.$ac_ext <<_ACEOF | ||
10843 | #line 10843 "configure" | ||
10844 | #include "confdefs.h" | ||
10845 | $ac_includes_default | ||
10846 | int | ||
10847 | main () | ||
10848 | { | ||
10849 | int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)] | ||
10850 | ; | ||
10851 | return 0; | ||
10852 | } | ||
10853 | _ACEOF | ||
10854 | rm -f conftest.$ac_objext | ||
10855 | if { (eval echo "$as_me:10855: \"$ac_compile\"") >&5 | ||
10856 | (eval $ac_compile) 2>&5 | ||
10857 | ac_status=$? | ||
10858 | echo "$as_me:10858: \$? = $ac_status" >&5 | ||
10859 | (exit $ac_status); } && | ||
10860 | { ac_try='test -s conftest.$ac_objext' | ||
10861 | { (eval echo "$as_me:10861: \"$ac_try\"") >&5 | ||
10862 | (eval $ac_try) 2>&5 | ||
10863 | ac_status=$? | ||
10864 | echo "$as_me:10864: \$? = $ac_status" >&5 | ||
10865 | (exit $ac_status); }; }; then | ||
10866 | ac_hi=$ac_mid | ||
10867 | else | ||
10868 | echo "$as_me: failed program was:" >&5 | ||
10869 | cat conftest.$ac_ext >&5 | ||
10870 | ac_lo=`expr $ac_mid + 1` | ||
10871 | fi | ||
10872 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10873 | done | ||
10874 | ac_cv_sizeof_long_int=$ac_lo | ||
10875 | else | ||
10876 | if test "$cross_compiling" = yes; then | ||
10877 | { { echo "$as_me:10877: error: cannot run test program while cross compiling" >&5 | ||
10878 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10879 | { (exit 1); exit 1; }; } | ||
10880 | else | ||
10881 | cat >conftest.$ac_ext <<_ACEOF | ||
10882 | #line 10882 "configure" | ||
10883 | #include "confdefs.h" | ||
10884 | $ac_includes_default | ||
10885 | int | ||
10886 | main () | ||
10887 | { | ||
10888 | FILE *f = fopen ("conftest.val", "w"); | ||
10889 | if (!f) | ||
10890 | exit (1); | ||
10891 | fprintf (f, "%d", (sizeof (long int))); | ||
10892 | fclose (f); | ||
10893 | ; | ||
10894 | return 0; | ||
10895 | } | ||
10896 | _ACEOF | ||
10897 | rm -f conftest$ac_exeext | ||
10898 | if { (eval echo "$as_me:10898: \"$ac_link\"") >&5 | ||
10899 | (eval $ac_link) 2>&5 | ||
10900 | ac_status=$? | ||
10901 | echo "$as_me:10901: \$? = $ac_status" >&5 | ||
10902 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10903 | { (eval echo "$as_me:10903: \"$ac_try\"") >&5 | ||
10904 | (eval $ac_try) 2>&5 | ||
10905 | ac_status=$? | ||
10906 | echo "$as_me:10906: \$? = $ac_status" >&5 | ||
10907 | (exit $ac_status); }; }; then | ||
10908 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
10909 | else | ||
10910 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10911 | echo "$as_me: failed program was:" >&5 | ||
10912 | cat conftest.$ac_ext >&5 | ||
10913 | fi | ||
10914 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10915 | fi | ||
10916 | fi | ||
10917 | rm -f conftest.val | ||
10918 | else | ||
10919 | ac_cv_sizeof_long_int=0 | ||
10920 | fi | ||
10921 | fi | ||
10922 | echo "$as_me:10922: result: $ac_cv_sizeof_long_int" >&5 | ||
10923 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
10924 | cat >>confdefs.h <<EOF | ||
10925 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
10926 | EOF | ||
10927 | |||
10928 | echo "$as_me:10928: checking for long long int" >&5 | ||
10929 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
10930 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
10931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10932 | else | ||
10933 | cat >conftest.$ac_ext <<_ACEOF | ||
10934 | #line 10934 "configure" | ||
10935 | #include "confdefs.h" | ||
10936 | $ac_includes_default | ||
10937 | int | ||
10938 | main () | ||
10939 | { | ||
10940 | if ((long long int *) 0) | ||
10941 | return 0; | ||
10942 | if (sizeof (long long int)) | ||
10943 | return 0; | ||
10944 | ; | ||
10945 | return 0; | ||
10946 | } | ||
10947 | _ACEOF | ||
10948 | rm -f conftest.$ac_objext | ||
10949 | if { (eval echo "$as_me:10949: \"$ac_compile\"") >&5 | ||
10950 | (eval $ac_compile) 2>&5 | ||
10951 | ac_status=$? | ||
10952 | echo "$as_me:10952: \$? = $ac_status" >&5 | ||
10953 | (exit $ac_status); } && | ||
10954 | { ac_try='test -s conftest.$ac_objext' | ||
10955 | { (eval echo "$as_me:10955: \"$ac_try\"") >&5 | ||
10956 | (eval $ac_try) 2>&5 | ||
10957 | ac_status=$? | ||
10958 | echo "$as_me:10958: \$? = $ac_status" >&5 | ||
10959 | (exit $ac_status); }; }; then | ||
10960 | ac_cv_type_long_long_int=yes | ||
10961 | else | ||
10962 | echo "$as_me: failed program was:" >&5 | ||
10963 | cat conftest.$ac_ext >&5 | ||
10964 | ac_cv_type_long_long_int=no | ||
10965 | fi | ||
10966 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10967 | fi | ||
10968 | echo "$as_me:10968: result: $ac_cv_type_long_long_int" >&5 | ||
10969 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
10970 | |||
10971 | echo "$as_me:10971: checking size of long long int" >&5 | ||
10972 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
10973 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
10974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10975 | else | ||
10976 | if test "$ac_cv_type_long_long_int" = yes; then | ||
10977 | if test "$cross_compiling" = yes; then | ||
10978 | # Depending upon the size, compute the lo and hi bounds. | ||
10979 | cat >conftest.$ac_ext <<_ACEOF | ||
10980 | #line 10980 "configure" | ||
10981 | #include "confdefs.h" | ||
10982 | $ac_includes_default | ||
10983 | int | ||
10984 | main () | ||
10985 | { | ||
10986 | int _array_ [1 - 2 * !((sizeof (long long int)) >= 0)] | ||
10987 | ; | ||
10988 | return 0; | ||
10989 | } | ||
10990 | _ACEOF | ||
10991 | rm -f conftest.$ac_objext | ||
10992 | if { (eval echo "$as_me:10992: \"$ac_compile\"") >&5 | ||
10993 | (eval $ac_compile) 2>&5 | ||
10994 | ac_status=$? | ||
10995 | echo "$as_me:10995: \$? = $ac_status" >&5 | ||
10996 | (exit $ac_status); } && | ||
10997 | { ac_try='test -s conftest.$ac_objext' | ||
10998 | { (eval echo "$as_me:10998: \"$ac_try\"") >&5 | ||
10999 | (eval $ac_try) 2>&5 | ||
11000 | ac_status=$? | ||
11001 | echo "$as_me:11001: \$? = $ac_status" >&5 | ||
11002 | (exit $ac_status); }; }; then | ||
11003 | ac_lo=0 ac_mid=0 | ||
11004 | while :; do | ||
11005 | cat >conftest.$ac_ext <<_ACEOF | ||
11006 | #line 11006 "configure" | ||
11007 | #include "confdefs.h" | ||
11008 | $ac_includes_default | ||
11009 | int | ||
11010 | main () | ||
11011 | { | ||
11012 | int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)] | ||
11013 | ; | ||
11014 | return 0; | ||
11015 | } | ||
11016 | _ACEOF | ||
11017 | rm -f conftest.$ac_objext | ||
11018 | if { (eval echo "$as_me:11018: \"$ac_compile\"") >&5 | ||
11019 | (eval $ac_compile) 2>&5 | ||
11020 | ac_status=$? | ||
11021 | echo "$as_me:11021: \$? = $ac_status" >&5 | ||
11022 | (exit $ac_status); } && | ||
11023 | { ac_try='test -s conftest.$ac_objext' | ||
11024 | { (eval echo "$as_me:11024: \"$ac_try\"") >&5 | ||
11025 | (eval $ac_try) 2>&5 | ||
11026 | ac_status=$? | ||
11027 | echo "$as_me:11027: \$? = $ac_status" >&5 | ||
11028 | (exit $ac_status); }; }; then | ||
11029 | ac_hi=$ac_mid; break | ||
11030 | else | ||
11031 | echo "$as_me: failed program was:" >&5 | ||
11032 | cat conftest.$ac_ext >&5 | ||
11033 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11034 | fi | ||
11035 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11036 | done | ||
11037 | else | ||
11038 | echo "$as_me: failed program was:" >&5 | ||
11039 | cat conftest.$ac_ext >&5 | ||
11040 | ac_hi=-1 ac_mid=-1 | ||
11041 | while :; do | ||
11042 | cat >conftest.$ac_ext <<_ACEOF | ||
11043 | #line 11043 "configure" | ||
11044 | #include "confdefs.h" | ||
11045 | $ac_includes_default | ||
11046 | int | ||
11047 | main () | ||
11048 | { | ||
11049 | int _array_ [1 - 2 * !((sizeof (long long int)) >= $ac_mid)] | ||
11050 | ; | ||
11051 | return 0; | ||
11052 | } | ||
11053 | _ACEOF | ||
11054 | rm -f conftest.$ac_objext | ||
11055 | if { (eval echo "$as_me:11055: \"$ac_compile\"") >&5 | ||
11056 | (eval $ac_compile) 2>&5 | ||
11057 | ac_status=$? | ||
11058 | echo "$as_me:11058: \$? = $ac_status" >&5 | ||
11059 | (exit $ac_status); } && | ||
11060 | { ac_try='test -s conftest.$ac_objext' | ||
11061 | { (eval echo "$as_me:11061: \"$ac_try\"") >&5 | ||
11062 | (eval $ac_try) 2>&5 | ||
11063 | ac_status=$? | ||
11064 | echo "$as_me:11064: \$? = $ac_status" >&5 | ||
11065 | (exit $ac_status); }; }; then | ||
11066 | ac_lo=$ac_mid; break | ||
11067 | else | ||
11068 | echo "$as_me: failed program was:" >&5 | ||
11069 | cat conftest.$ac_ext >&5 | ||
11070 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
11071 | fi | ||
11072 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11073 | done | ||
11074 | fi | ||
11075 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11076 | # Binary search between lo and hi bounds. | ||
11077 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11078 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11079 | cat >conftest.$ac_ext <<_ACEOF | ||
11080 | #line 11080 "configure" | ||
11081 | #include "confdefs.h" | ||
11082 | $ac_includes_default | ||
11083 | int | ||
11084 | main () | ||
11085 | { | ||
11086 | int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)] | ||
11087 | ; | ||
11088 | return 0; | ||
11089 | } | ||
11090 | _ACEOF | ||
11091 | rm -f conftest.$ac_objext | ||
11092 | if { (eval echo "$as_me:11092: \"$ac_compile\"") >&5 | ||
11093 | (eval $ac_compile) 2>&5 | ||
11094 | ac_status=$? | ||
11095 | echo "$as_me:11095: \$? = $ac_status" >&5 | ||
11096 | (exit $ac_status); } && | ||
11097 | { ac_try='test -s conftest.$ac_objext' | ||
11098 | { (eval echo "$as_me:11098: \"$ac_try\"") >&5 | ||
11099 | (eval $ac_try) 2>&5 | ||
11100 | ac_status=$? | ||
11101 | echo "$as_me:11101: \$? = $ac_status" >&5 | ||
11102 | (exit $ac_status); }; }; then | ||
11103 | ac_hi=$ac_mid | ||
11104 | else | ||
11105 | echo "$as_me: failed program was:" >&5 | ||
11106 | cat conftest.$ac_ext >&5 | ||
11107 | ac_lo=`expr $ac_mid + 1` | ||
11108 | fi | ||
11109 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11110 | done | ||
11111 | ac_cv_sizeof_long_long_int=$ac_lo | ||
11112 | else | ||
11113 | if test "$cross_compiling" = yes; then | ||
11114 | { { echo "$as_me:11114: error: cannot run test program while cross compiling" >&5 | ||
11115 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11116 | { (exit 1); exit 1; }; } | ||
11117 | else | ||
11118 | cat >conftest.$ac_ext <<_ACEOF | ||
11119 | #line 11119 "configure" | ||
11120 | #include "confdefs.h" | ||
11121 | $ac_includes_default | ||
11122 | int | ||
11123 | main () | ||
11124 | { | ||
11125 | FILE *f = fopen ("conftest.val", "w"); | ||
11126 | if (!f) | ||
11127 | exit (1); | ||
11128 | fprintf (f, "%d", (sizeof (long long int))); | ||
11129 | fclose (f); | ||
11130 | ; | ||
11131 | return 0; | ||
11132 | } | ||
11133 | _ACEOF | ||
11134 | rm -f conftest$ac_exeext | ||
11135 | if { (eval echo "$as_me:11135: \"$ac_link\"") >&5 | ||
11136 | (eval $ac_link) 2>&5 | ||
11137 | ac_status=$? | ||
11138 | echo "$as_me:11138: \$? = $ac_status" >&5 | ||
11139 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11140 | { (eval echo "$as_me:11140: \"$ac_try\"") >&5 | ||
11141 | (eval $ac_try) 2>&5 | ||
11142 | ac_status=$? | ||
11143 | echo "$as_me:11143: \$? = $ac_status" >&5 | ||
11144 | (exit $ac_status); }; }; then | ||
11145 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
11146 | else | ||
11147 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11148 | echo "$as_me: failed program was:" >&5 | ||
11149 | cat conftest.$ac_ext >&5 | ||
11150 | fi | ||
11151 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11152 | fi | ||
11153 | fi | ||
11154 | rm -f conftest.val | ||
11155 | else | ||
11156 | ac_cv_sizeof_long_long_int=0 | ||
11157 | fi | ||
11158 | fi | ||
11159 | echo "$as_me:11159: result: $ac_cv_sizeof_long_long_int" >&5 | ||
11160 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
11161 | cat >>confdefs.h <<EOF | ||
11162 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
11163 | EOF | ||
11164 | |||
11165 | # Sanity check long long for some platforms (AIX) | ||
11166 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
11167 | ac_cv_sizeof_long_long_int=0 | ||
11168 | fi | ||
11169 | |||
11170 | # More checks for data types | ||
11171 | echo "$as_me:11171: checking for u_int type" >&5 | ||
11172 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
11173 | if test "${ac_cv_have_u_int+set}" = set; then | ||
11174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11175 | else | ||
11176 | |||
11177 | cat >conftest.$ac_ext <<_ACEOF | ||
11178 | #line 11178 "configure" | ||
11179 | #include "confdefs.h" | ||
11180 | #include <sys/types.h> | ||
11181 | int | ||
11182 | main () | ||
11183 | { | ||
11184 | u_int a; a = 1; | ||
11185 | ; | ||
11186 | return 0; | ||
11187 | } | ||
11188 | _ACEOF | ||
11189 | rm -f conftest.$ac_objext | ||
11190 | if { (eval echo "$as_me:11190: \"$ac_compile\"") >&5 | ||
11191 | (eval $ac_compile) 2>&5 | ||
11192 | ac_status=$? | ||
11193 | echo "$as_me:11193: \$? = $ac_status" >&5 | ||
11194 | (exit $ac_status); } && | ||
11195 | { ac_try='test -s conftest.$ac_objext' | ||
11196 | { (eval echo "$as_me:11196: \"$ac_try\"") >&5 | ||
11197 | (eval $ac_try) 2>&5 | ||
11198 | ac_status=$? | ||
11199 | echo "$as_me:11199: \$? = $ac_status" >&5 | ||
11200 | (exit $ac_status); }; }; then | ||
11201 | ac_cv_have_u_int="yes" | ||
11202 | else | ||
11203 | echo "$as_me: failed program was:" >&5 | ||
11204 | cat conftest.$ac_ext >&5 | ||
11205 | ac_cv_have_u_int="no" | ||
11206 | |||
11207 | fi | ||
11208 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11209 | |||
11210 | fi | ||
11211 | echo "$as_me:11211: result: $ac_cv_have_u_int" >&5 | ||
11212 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
11213 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
11214 | cat >>confdefs.h <<\EOF | ||
11215 | #define HAVE_U_INT 1 | ||
11216 | EOF | ||
11217 | |||
11218 | have_u_int=1 | ||
11219 | fi | ||
11220 | |||
11221 | echo "$as_me:11221: checking for intXX_t types" >&5 | ||
11222 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
11223 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
11224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11225 | else | ||
11226 | |||
11227 | cat >conftest.$ac_ext <<_ACEOF | ||
11228 | #line 11228 "configure" | ||
11229 | #include "confdefs.h" | ||
11230 | #include <sys/types.h> | ||
11231 | int | ||
11232 | main () | ||
11233 | { | ||
11234 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11235 | ; | ||
11236 | return 0; | ||
11237 | } | ||
11238 | _ACEOF | ||
11239 | rm -f conftest.$ac_objext | ||
11240 | if { (eval echo "$as_me:11240: \"$ac_compile\"") >&5 | ||
11241 | (eval $ac_compile) 2>&5 | ||
11242 | ac_status=$? | ||
11243 | echo "$as_me:11243: \$? = $ac_status" >&5 | ||
11244 | (exit $ac_status); } && | ||
11245 | { ac_try='test -s conftest.$ac_objext' | ||
11246 | { (eval echo "$as_me:11246: \"$ac_try\"") >&5 | ||
11247 | (eval $ac_try) 2>&5 | ||
11248 | ac_status=$? | ||
11249 | echo "$as_me:11249: \$? = $ac_status" >&5 | ||
11250 | (exit $ac_status); }; }; then | ||
11251 | ac_cv_have_intxx_t="yes" | ||
11252 | else | ||
11253 | echo "$as_me: failed program was:" >&5 | ||
11254 | cat conftest.$ac_ext >&5 | ||
11255 | ac_cv_have_intxx_t="no" | ||
11256 | |||
11257 | fi | ||
11258 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11259 | |||
11260 | fi | ||
11261 | echo "$as_me:11261: result: $ac_cv_have_intxx_t" >&5 | ||
11262 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
11263 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
11264 | cat >>confdefs.h <<\EOF | ||
11265 | #define HAVE_INTXX_T 1 | ||
11266 | EOF | ||
11267 | |||
11268 | have_intxx_t=1 | ||
11269 | fi | ||
11270 | |||
11271 | if (test -z "$have_intxx_t" && \ | ||
11272 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
11273 | then | ||
11274 | echo "$as_me:11274: checking for intXX_t types in stdint.h" >&5 | ||
11275 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
11276 | cat >conftest.$ac_ext <<_ACEOF | ||
11277 | #line 11277 "configure" | ||
11278 | #include "confdefs.h" | ||
11279 | #include <stdint.h> | ||
11280 | int | ||
11281 | main () | ||
11282 | { | ||
11283 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11284 | ; | ||
11285 | return 0; | ||
11286 | } | ||
11287 | _ACEOF | ||
11288 | rm -f conftest.$ac_objext | ||
11289 | if { (eval echo "$as_me:11289: \"$ac_compile\"") >&5 | ||
11290 | (eval $ac_compile) 2>&5 | ||
11291 | ac_status=$? | ||
11292 | echo "$as_me:11292: \$? = $ac_status" >&5 | ||
11293 | (exit $ac_status); } && | ||
11294 | { ac_try='test -s conftest.$ac_objext' | ||
11295 | { (eval echo "$as_me:11295: \"$ac_try\"") >&5 | ||
11296 | (eval $ac_try) 2>&5 | ||
11297 | ac_status=$? | ||
11298 | echo "$as_me:11298: \$? = $ac_status" >&5 | ||
11299 | (exit $ac_status); }; }; then | ||
11300 | |||
11301 | cat >>confdefs.h <<\EOF | ||
11302 | #define HAVE_INTXX_T 1 | ||
11303 | EOF | ||
11304 | |||
11305 | echo "$as_me:11305: result: yes" >&5 | ||
11306 | echo "${ECHO_T}yes" >&6 | ||
11307 | |||
11308 | else | ||
11309 | echo "$as_me: failed program was:" >&5 | ||
11310 | cat conftest.$ac_ext >&5 | ||
11311 | echo "$as_me:11311: result: no" >&5 | ||
11312 | echo "${ECHO_T}no" >&6 | ||
11313 | |||
11314 | fi | ||
11315 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11316 | fi | ||
11317 | |||
11318 | echo "$as_me:11318: checking for int64_t type" >&5 | ||
11319 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
11320 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
11321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11322 | else | ||
11323 | |||
11324 | cat >conftest.$ac_ext <<_ACEOF | ||
11325 | #line 11325 "configure" | ||
11326 | #include "confdefs.h" | ||
11327 | |||
11328 | #include <sys/types.h> | ||
11329 | #ifdef HAVE_STDINT_H | ||
11330 | # include <stdint.h> | ||
11331 | #endif | ||
11332 | #include <sys/socket.h> | ||
11333 | #ifdef HAVE_SYS_BITYPES_H | ||
11334 | # include <sys/bitypes.h> | ||
11335 | #endif | ||
11336 | |||
11337 | int | ||
11338 | main () | ||
11339 | { | ||
11340 | int64_t a; a = 1; | ||
11341 | ; | ||
11342 | return 0; | ||
11343 | } | ||
11344 | _ACEOF | ||
11345 | rm -f conftest.$ac_objext | ||
11346 | if { (eval echo "$as_me:11346: \"$ac_compile\"") >&5 | ||
11347 | (eval $ac_compile) 2>&5 | ||
11348 | ac_status=$? | ||
11349 | echo "$as_me:11349: \$? = $ac_status" >&5 | ||
11350 | (exit $ac_status); } && | ||
11351 | { ac_try='test -s conftest.$ac_objext' | ||
11352 | { (eval echo "$as_me:11352: \"$ac_try\"") >&5 | ||
11353 | (eval $ac_try) 2>&5 | ||
11354 | ac_status=$? | ||
11355 | echo "$as_me:11355: \$? = $ac_status" >&5 | ||
11356 | (exit $ac_status); }; }; then | ||
11357 | ac_cv_have_int64_t="yes" | ||
11358 | else | ||
11359 | echo "$as_me: failed program was:" >&5 | ||
11360 | cat conftest.$ac_ext >&5 | ||
11361 | ac_cv_have_int64_t="no" | ||
11362 | |||
11363 | fi | ||
11364 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11365 | |||
11366 | fi | ||
11367 | echo "$as_me:11367: result: $ac_cv_have_int64_t" >&5 | ||
11368 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
11369 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
11370 | cat >>confdefs.h <<\EOF | ||
11371 | #define HAVE_INT64_T 1 | ||
11372 | EOF | ||
11373 | |||
11374 | fi | ||
11375 | |||
11376 | echo "$as_me:11376: checking for u_intXX_t types" >&5 | ||
11377 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
11378 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
11379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11380 | else | ||
11381 | |||
11382 | cat >conftest.$ac_ext <<_ACEOF | ||
11383 | #line 11383 "configure" | ||
11384 | #include "confdefs.h" | ||
11385 | #include <sys/types.h> | ||
11386 | int | ||
11387 | main () | ||
11388 | { | ||
11389 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
11390 | ; | ||
11391 | return 0; | ||
11392 | } | ||
11393 | _ACEOF | ||
11394 | rm -f conftest.$ac_objext | ||
11395 | if { (eval echo "$as_me:11395: \"$ac_compile\"") >&5 | ||
11396 | (eval $ac_compile) 2>&5 | ||
11397 | ac_status=$? | ||
11398 | echo "$as_me:11398: \$? = $ac_status" >&5 | ||
11399 | (exit $ac_status); } && | ||
11400 | { ac_try='test -s conftest.$ac_objext' | ||
11401 | { (eval echo "$as_me:11401: \"$ac_try\"") >&5 | ||
11402 | (eval $ac_try) 2>&5 | ||
11403 | ac_status=$? | ||
11404 | echo "$as_me:11404: \$? = $ac_status" >&5 | ||
11405 | (exit $ac_status); }; }; then | ||
11406 | ac_cv_have_u_intxx_t="yes" | ||
11407 | else | ||
11408 | echo "$as_me: failed program was:" >&5 | ||
11409 | cat conftest.$ac_ext >&5 | ||
11410 | ac_cv_have_u_intxx_t="no" | ||
11411 | |||
11412 | fi | ||
11413 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11414 | |||
11415 | fi | ||
11416 | echo "$as_me:11416: result: $ac_cv_have_u_intxx_t" >&5 | ||
11417 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
11418 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
11419 | cat >>confdefs.h <<\EOF | ||
11420 | #define HAVE_U_INTXX_T 1 | ||
11421 | EOF | ||
11422 | |||
11423 | have_u_intxx_t=1 | ||
11424 | fi | ||
11425 | |||
11426 | if test -z "$have_u_intxx_t" ; then | ||
11427 | echo "$as_me:11427: checking for u_intXX_t types in sys/socket.h" >&5 | ||
11428 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
11429 | cat >conftest.$ac_ext <<_ACEOF | ||
11430 | #line 11430 "configure" | ||
11431 | #include "confdefs.h" | ||
11432 | #include <sys/socket.h> | ||
11433 | int | ||
11434 | main () | ||
11435 | { | ||
11436 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
11437 | ; | ||
11438 | return 0; | ||
11439 | } | ||
11440 | _ACEOF | ||
11441 | rm -f conftest.$ac_objext | ||
11442 | if { (eval echo "$as_me:11442: \"$ac_compile\"") >&5 | ||
11443 | (eval $ac_compile) 2>&5 | ||
11444 | ac_status=$? | ||
11445 | echo "$as_me:11445: \$? = $ac_status" >&5 | ||
11446 | (exit $ac_status); } && | ||
11447 | { ac_try='test -s conftest.$ac_objext' | ||
11448 | { (eval echo "$as_me:11448: \"$ac_try\"") >&5 | ||
11449 | (eval $ac_try) 2>&5 | ||
11450 | ac_status=$? | ||
11451 | echo "$as_me:11451: \$? = $ac_status" >&5 | ||
11452 | (exit $ac_status); }; }; then | ||
11453 | |||
11454 | cat >>confdefs.h <<\EOF | ||
11455 | #define HAVE_U_INTXX_T 1 | ||
11456 | EOF | ||
11457 | |||
11458 | echo "$as_me:11458: result: yes" >&5 | ||
11459 | echo "${ECHO_T}yes" >&6 | ||
11460 | |||
11461 | else | ||
11462 | echo "$as_me: failed program was:" >&5 | ||
11463 | cat conftest.$ac_ext >&5 | ||
11464 | echo "$as_me:11464: result: no" >&5 | ||
11465 | echo "${ECHO_T}no" >&6 | ||
11466 | |||
11467 | fi | ||
11468 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11469 | fi | ||
11470 | |||
11471 | echo "$as_me:11471: checking for u_int64_t types" >&5 | ||
11472 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
11473 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
11474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11475 | else | ||
11476 | |||
11477 | cat >conftest.$ac_ext <<_ACEOF | ||
11478 | #line 11478 "configure" | ||
11479 | #include "confdefs.h" | ||
11480 | #include <sys/types.h> | ||
11481 | int | ||
11482 | main () | ||
11483 | { | ||
11484 | u_int64_t a; a = 1; | ||
11485 | ; | ||
11486 | return 0; | ||
11487 | } | ||
11488 | _ACEOF | ||
11489 | rm -f conftest.$ac_objext | ||
11490 | if { (eval echo "$as_me:11490: \"$ac_compile\"") >&5 | ||
11491 | (eval $ac_compile) 2>&5 | ||
11492 | ac_status=$? | ||
11493 | echo "$as_me:11493: \$? = $ac_status" >&5 | ||
11494 | (exit $ac_status); } && | ||
11495 | { ac_try='test -s conftest.$ac_objext' | ||
11496 | { (eval echo "$as_me:11496: \"$ac_try\"") >&5 | ||
11497 | (eval $ac_try) 2>&5 | ||
11498 | ac_status=$? | ||
11499 | echo "$as_me:11499: \$? = $ac_status" >&5 | ||
11500 | (exit $ac_status); }; }; then | ||
11501 | ac_cv_have_u_int64_t="yes" | ||
11502 | else | ||
11503 | echo "$as_me: failed program was:" >&5 | ||
11504 | cat conftest.$ac_ext >&5 | ||
11505 | ac_cv_have_u_int64_t="no" | ||
11506 | |||
11507 | fi | ||
11508 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11509 | |||
11510 | fi | ||
11511 | echo "$as_me:11511: result: $ac_cv_have_u_int64_t" >&5 | ||
11512 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
11513 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
11514 | cat >>confdefs.h <<\EOF | ||
11515 | #define HAVE_U_INT64_T 1 | ||
11516 | EOF | ||
11517 | |||
11518 | have_u_int64_t=1 | ||
11519 | fi | ||
11520 | |||
11521 | if test -z "$have_u_int64_t" ; then | ||
11522 | echo "$as_me:11522: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
11523 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
11524 | cat >conftest.$ac_ext <<_ACEOF | ||
11525 | #line 11525 "configure" | ||
11526 | #include "confdefs.h" | ||
11527 | #include <sys/bitypes.h> | ||
11528 | int | ||
11529 | main () | ||
11530 | { | ||
11531 | u_int64_t a; a = 1 | ||
11532 | ; | ||
11533 | return 0; | ||
11534 | } | ||
11535 | _ACEOF | ||
11536 | rm -f conftest.$ac_objext | ||
11537 | if { (eval echo "$as_me:11537: \"$ac_compile\"") >&5 | ||
11538 | (eval $ac_compile) 2>&5 | ||
11539 | ac_status=$? | ||
11540 | echo "$as_me:11540: \$? = $ac_status" >&5 | ||
11541 | (exit $ac_status); } && | ||
11542 | { ac_try='test -s conftest.$ac_objext' | ||
11543 | { (eval echo "$as_me:11543: \"$ac_try\"") >&5 | ||
11544 | (eval $ac_try) 2>&5 | ||
11545 | ac_status=$? | ||
11546 | echo "$as_me:11546: \$? = $ac_status" >&5 | ||
11547 | (exit $ac_status); }; }; then | ||
11548 | |||
11549 | cat >>confdefs.h <<\EOF | ||
11550 | #define HAVE_U_INT64_T 1 | ||
11551 | EOF | ||
11552 | |||
11553 | echo "$as_me:11553: result: yes" >&5 | ||
11554 | echo "${ECHO_T}yes" >&6 | ||
11555 | |||
11556 | else | ||
11557 | echo "$as_me: failed program was:" >&5 | ||
11558 | cat conftest.$ac_ext >&5 | ||
11559 | echo "$as_me:11559: result: no" >&5 | ||
11560 | echo "${ECHO_T}no" >&6 | ||
11561 | |||
11562 | fi | ||
11563 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11564 | fi | ||
11565 | |||
11566 | if test -z "$have_u_intxx_t" ; then | ||
11567 | echo "$as_me:11567: checking for uintXX_t types" >&5 | ||
11568 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
11569 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
11570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11571 | else | ||
11572 | |||
11573 | cat >conftest.$ac_ext <<_ACEOF | ||
11574 | #line 11574 "configure" | ||
11575 | #include "confdefs.h" | ||
11576 | |||
11577 | #include <sys/types.h> | ||
11578 | |||
11579 | int | ||
11580 | main () | ||
11581 | { | ||
11582 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
11583 | ; | ||
11584 | return 0; | ||
11585 | } | ||
11586 | _ACEOF | ||
11587 | rm -f conftest.$ac_objext | ||
11588 | if { (eval echo "$as_me:11588: \"$ac_compile\"") >&5 | ||
11589 | (eval $ac_compile) 2>&5 | ||
11590 | ac_status=$? | ||
11591 | echo "$as_me:11591: \$? = $ac_status" >&5 | ||
11592 | (exit $ac_status); } && | ||
11593 | { ac_try='test -s conftest.$ac_objext' | ||
11594 | { (eval echo "$as_me:11594: \"$ac_try\"") >&5 | ||
11595 | (eval $ac_try) 2>&5 | ||
11596 | ac_status=$? | ||
11597 | echo "$as_me:11597: \$? = $ac_status" >&5 | ||
11598 | (exit $ac_status); }; }; then | ||
11599 | ac_cv_have_uintxx_t="yes" | ||
11600 | else | ||
11601 | echo "$as_me: failed program was:" >&5 | ||
11602 | cat conftest.$ac_ext >&5 | ||
11603 | ac_cv_have_uintxx_t="no" | ||
11604 | |||
11605 | fi | ||
11606 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11607 | |||
11608 | fi | ||
11609 | echo "$as_me:11609: result: $ac_cv_have_uintxx_t" >&5 | ||
11610 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
11611 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
11612 | cat >>confdefs.h <<\EOF | ||
11613 | #define HAVE_UINTXX_T 1 | ||
11614 | EOF | ||
11615 | |||
11616 | fi | ||
11617 | fi | ||
11618 | |||
11619 | if test -z "$have_uintxx_t" ; then | ||
11620 | echo "$as_me:11620: checking for uintXX_t types in stdint.h" >&5 | ||
11621 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
11622 | cat >conftest.$ac_ext <<_ACEOF | ||
11623 | #line 11623 "configure" | ||
11624 | #include "confdefs.h" | ||
11625 | #include <stdint.h> | ||
11626 | int | ||
11627 | main () | ||
11628 | { | ||
11629 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
11630 | ; | ||
11631 | return 0; | ||
11632 | } | ||
11633 | _ACEOF | ||
11634 | rm -f conftest.$ac_objext | ||
11635 | if { (eval echo "$as_me:11635: \"$ac_compile\"") >&5 | ||
11636 | (eval $ac_compile) 2>&5 | ||
11637 | ac_status=$? | ||
11638 | echo "$as_me:11638: \$? = $ac_status" >&5 | ||
11639 | (exit $ac_status); } && | ||
11640 | { ac_try='test -s conftest.$ac_objext' | ||
11641 | { (eval echo "$as_me:11641: \"$ac_try\"") >&5 | ||
11642 | (eval $ac_try) 2>&5 | ||
11643 | ac_status=$? | ||
11644 | echo "$as_me:11644: \$? = $ac_status" >&5 | ||
11645 | (exit $ac_status); }; }; then | ||
11646 | |||
11647 | cat >>confdefs.h <<\EOF | ||
11648 | #define HAVE_UINTXX_T 1 | ||
11649 | EOF | ||
11650 | |||
11651 | echo "$as_me:11651: result: yes" >&5 | ||
11652 | echo "${ECHO_T}yes" >&6 | ||
11653 | |||
11654 | else | ||
11655 | echo "$as_me: failed program was:" >&5 | ||
11656 | cat conftest.$ac_ext >&5 | ||
11657 | echo "$as_me:11657: result: no" >&5 | ||
11658 | echo "${ECHO_T}no" >&6 | ||
11659 | |||
11660 | fi | ||
11661 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11662 | fi | ||
11663 | |||
11664 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
11665 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
11666 | then | ||
11667 | echo "$as_me:11667: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
11668 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
11669 | cat >conftest.$ac_ext <<_ACEOF | ||
11670 | #line 11670 "configure" | ||
11671 | #include "confdefs.h" | ||
11672 | |||
11673 | #include <sys/bitypes.h> | ||
11674 | |||
11675 | int | ||
11676 | main () | ||
11677 | { | ||
11678 | |||
11679 | int8_t a; int16_t b; int32_t c; | ||
11680 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
11681 | a = b = c = e = f = g = 1; | ||
11682 | |||
11683 | ; | ||
11684 | return 0; | ||
11685 | } | ||
11686 | _ACEOF | ||
11687 | rm -f conftest.$ac_objext | ||
11688 | if { (eval echo "$as_me:11688: \"$ac_compile\"") >&5 | ||
11689 | (eval $ac_compile) 2>&5 | ||
11690 | ac_status=$? | ||
11691 | echo "$as_me:11691: \$? = $ac_status" >&5 | ||
11692 | (exit $ac_status); } && | ||
11693 | { ac_try='test -s conftest.$ac_objext' | ||
11694 | { (eval echo "$as_me:11694: \"$ac_try\"") >&5 | ||
11695 | (eval $ac_try) 2>&5 | ||
11696 | ac_status=$? | ||
11697 | echo "$as_me:11697: \$? = $ac_status" >&5 | ||
11698 | (exit $ac_status); }; }; then | ||
11699 | |||
11700 | cat >>confdefs.h <<\EOF | ||
11701 | #define HAVE_U_INTXX_T 1 | ||
11702 | EOF | ||
11703 | |||
11704 | cat >>confdefs.h <<\EOF | ||
11705 | #define HAVE_INTXX_T 1 | ||
11706 | EOF | ||
11707 | |||
11708 | echo "$as_me:11708: result: yes" >&5 | ||
11709 | echo "${ECHO_T}yes" >&6 | ||
11710 | |||
11711 | else | ||
11712 | echo "$as_me: failed program was:" >&5 | ||
11713 | cat conftest.$ac_ext >&5 | ||
11714 | echo "$as_me:11714: result: no" >&5 | ||
11715 | echo "${ECHO_T}no" >&6 | ||
11716 | |||
11717 | fi | ||
11718 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11719 | fi | ||
11720 | |||
11721 | echo "$as_me:11721: checking for u_char" >&5 | ||
11722 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
11723 | if test "${ac_cv_have_u_char+set}" = set; then | ||
11724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11725 | else | ||
11726 | |||
11727 | cat >conftest.$ac_ext <<_ACEOF | ||
11728 | #line 11728 "configure" | ||
11729 | #include "confdefs.h" | ||
11730 | |||
11731 | #include <sys/types.h> | ||
11732 | |||
11733 | int | ||
11734 | main () | ||
11735 | { | ||
11736 | u_char foo; foo = 125; | ||
11737 | ; | ||
11738 | return 0; | ||
11739 | } | ||
11740 | _ACEOF | ||
11741 | rm -f conftest.$ac_objext | ||
11742 | if { (eval echo "$as_me:11742: \"$ac_compile\"") >&5 | ||
11743 | (eval $ac_compile) 2>&5 | ||
11744 | ac_status=$? | ||
11745 | echo "$as_me:11745: \$? = $ac_status" >&5 | ||
11746 | (exit $ac_status); } && | ||
11747 | { ac_try='test -s conftest.$ac_objext' | ||
11748 | { (eval echo "$as_me:11748: \"$ac_try\"") >&5 | ||
11749 | (eval $ac_try) 2>&5 | ||
11750 | ac_status=$? | ||
11751 | echo "$as_me:11751: \$? = $ac_status" >&5 | ||
11752 | (exit $ac_status); }; }; then | ||
11753 | ac_cv_have_u_char="yes" | ||
11754 | else | ||
11755 | echo "$as_me: failed program was:" >&5 | ||
11756 | cat conftest.$ac_ext >&5 | ||
11757 | ac_cv_have_u_char="no" | ||
11758 | |||
11759 | fi | ||
11760 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11761 | |||
11762 | fi | ||
11763 | echo "$as_me:11763: result: $ac_cv_have_u_char" >&5 | ||
11764 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
11765 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
11766 | cat >>confdefs.h <<\EOF | ||
11767 | #define HAVE_U_CHAR 1 | ||
11768 | EOF | ||
11769 | |||
11770 | fi | ||
11771 | |||
11772 | echo "$as_me:11772: checking for socklen_t" >&5 | ||
11773 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
11774 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
11775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11776 | else | ||
11777 | cat >conftest.$ac_ext <<_ACEOF | ||
11778 | #line 11778 "configure" | ||
11779 | #include "confdefs.h" | ||
11780 | #include <sys/types.h> | ||
11781 | #include <sys/socket.h> | ||
11782 | |||
11783 | int | ||
11784 | main () | ||
11785 | { | ||
11786 | if ((socklen_t *) 0) | ||
11787 | return 0; | ||
11788 | if (sizeof (socklen_t)) | ||
11789 | return 0; | ||
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_cv_type_socklen_t=yes | ||
11807 | else | ||
11808 | echo "$as_me: failed program was:" >&5 | ||
11809 | cat conftest.$ac_ext >&5 | ||
11810 | ac_cv_type_socklen_t=no | ||
11811 | fi | ||
11812 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11813 | fi | ||
11814 | echo "$as_me:11814: result: $ac_cv_type_socklen_t" >&5 | ||
11815 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
11816 | if test $ac_cv_type_socklen_t = yes; then | ||
11817 | : | ||
11818 | else | ||
11819 | |||
11820 | echo "$as_me:11820: checking for socklen_t equivalent" >&5 | ||
11821 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
11822 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
11823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11824 | else | ||
11825 | |||
11826 | # Systems have either "struct sockaddr *" or | ||
11827 | # "void *" as the second argument to getpeername | ||
11828 | curl_cv_socklen_t_equiv= | ||
11829 | for arg2 in "struct sockaddr" void; do | ||
11830 | for t in int size_t unsigned long "unsigned long"; do | ||
11831 | cat >conftest.$ac_ext <<_ACEOF | ||
11832 | #line 11832 "configure" | ||
11833 | #include "confdefs.h" | ||
11834 | |||
11835 | #include <sys/types.h> | ||
11836 | #include <sys/socket.h> | ||
11837 | |||
11838 | int getpeername (int, $arg2 *, $t *); | ||
11839 | |||
11840 | int | ||
11841 | main () | ||
11842 | { | ||
11843 | |||
11844 | $t len; | ||
11845 | getpeername(0,0,&len); | ||
11846 | |||
11847 | ; | ||
11848 | return 0; | ||
11849 | } | ||
11850 | _ACEOF | ||
11851 | rm -f conftest.$ac_objext | ||
11852 | if { (eval echo "$as_me:11852: \"$ac_compile\"") >&5 | ||
11853 | (eval $ac_compile) 2>&5 | ||
11854 | ac_status=$? | ||
11855 | echo "$as_me:11855: \$? = $ac_status" >&5 | ||
11856 | (exit $ac_status); } && | ||
11857 | { ac_try='test -s conftest.$ac_objext' | ||
11858 | { (eval echo "$as_me:11858: \"$ac_try\"") >&5 | ||
11859 | (eval $ac_try) 2>&5 | ||
11860 | ac_status=$? | ||
11861 | echo "$as_me:11861: \$? = $ac_status" >&5 | ||
11862 | (exit $ac_status); }; }; then | ||
11863 | |||
11864 | curl_cv_socklen_t_equiv="$t" | ||
11865 | break | ||
11866 | |||
11867 | else | ||
11868 | echo "$as_me: failed program was:" >&5 | ||
11869 | cat conftest.$ac_ext >&5 | ||
11870 | fi | ||
11871 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11872 | done | ||
11873 | done | ||
11874 | |||
11875 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
11876 | { { echo "$as_me:11876: error: Cannot find a type to use in place of socklen_t" >&5 | ||
11877 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
11878 | { (exit 1); exit 1; }; } | ||
11879 | fi | ||
11880 | |||
11881 | fi | ||
11882 | |||
11883 | echo "$as_me:11883: result: $curl_cv_socklen_t_equiv" >&5 | ||
11884 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
11885 | |||
11886 | cat >>confdefs.h <<EOF | ||
11887 | #define socklen_t $curl_cv_socklen_t_equiv | ||
11888 | EOF | ||
11889 | |||
11890 | fi | ||
11891 | |||
11892 | echo "$as_me:11892: checking for sig_atomic_t" >&5 | ||
11893 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
11894 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
11895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11896 | else | ||
11897 | cat >conftest.$ac_ext <<_ACEOF | ||
11898 | #line 11898 "configure" | ||
11899 | #include "confdefs.h" | ||
11900 | #include <signal.h> | ||
11901 | |||
11902 | int | ||
11903 | main () | ||
11904 | { | ||
11905 | if ((sig_atomic_t *) 0) | ||
11906 | return 0; | ||
11907 | if (sizeof (sig_atomic_t)) | ||
11908 | return 0; | ||
11909 | ; | ||
11910 | return 0; | ||
11911 | } | ||
11912 | _ACEOF | ||
11913 | rm -f conftest.$ac_objext | ||
11914 | if { (eval echo "$as_me:11914: \"$ac_compile\"") >&5 | ||
11915 | (eval $ac_compile) 2>&5 | ||
11916 | ac_status=$? | ||
11917 | echo "$as_me:11917: \$? = $ac_status" >&5 | ||
11918 | (exit $ac_status); } && | ||
11919 | { ac_try='test -s conftest.$ac_objext' | ||
11920 | { (eval echo "$as_me:11920: \"$ac_try\"") >&5 | ||
11921 | (eval $ac_try) 2>&5 | ||
11922 | ac_status=$? | ||
11923 | echo "$as_me:11923: \$? = $ac_status" >&5 | ||
11924 | (exit $ac_status); }; }; then | ||
11925 | ac_cv_type_sig_atomic_t=yes | ||
11926 | else | ||
11927 | echo "$as_me: failed program was:" >&5 | ||
11928 | cat conftest.$ac_ext >&5 | ||
11929 | ac_cv_type_sig_atomic_t=no | ||
11930 | fi | ||
11931 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11932 | fi | ||
11933 | echo "$as_me:11933: result: $ac_cv_type_sig_atomic_t" >&5 | ||
11934 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
11935 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
11936 | |||
11937 | cat >>confdefs.h <<EOF | ||
11938 | #define HAVE_SIG_ATOMIC_T 1 | ||
11939 | EOF | ||
11940 | |||
11941 | fi | ||
11942 | |||
11943 | echo "$as_me:11943: checking for size_t" >&5 | ||
11944 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
11945 | if test "${ac_cv_have_size_t+set}" = set; then | ||
11946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11947 | else | ||
11948 | |||
11949 | cat >conftest.$ac_ext <<_ACEOF | ||
11950 | #line 11950 "configure" | ||
11951 | #include "confdefs.h" | ||
11952 | |||
11953 | #include <sys/types.h> | ||
11954 | |||
11955 | int | ||
11956 | main () | ||
11957 | { | ||
11958 | size_t foo; foo = 1235; | ||
11959 | ; | ||
11960 | return 0; | ||
11961 | } | ||
11962 | _ACEOF | ||
11963 | rm -f conftest.$ac_objext | ||
11964 | if { (eval echo "$as_me:11964: \"$ac_compile\"") >&5 | ||
11965 | (eval $ac_compile) 2>&5 | ||
11966 | ac_status=$? | ||
11967 | echo "$as_me:11967: \$? = $ac_status" >&5 | ||
11968 | (exit $ac_status); } && | ||
11969 | { ac_try='test -s conftest.$ac_objext' | ||
11970 | { (eval echo "$as_me:11970: \"$ac_try\"") >&5 | ||
11971 | (eval $ac_try) 2>&5 | ||
11972 | ac_status=$? | ||
11973 | echo "$as_me:11973: \$? = $ac_status" >&5 | ||
11974 | (exit $ac_status); }; }; then | ||
11975 | ac_cv_have_size_t="yes" | ||
11976 | else | ||
11977 | echo "$as_me: failed program was:" >&5 | ||
11978 | cat conftest.$ac_ext >&5 | ||
11979 | ac_cv_have_size_t="no" | ||
11980 | |||
11981 | fi | ||
11982 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11983 | |||
11984 | fi | ||
11985 | echo "$as_me:11985: result: $ac_cv_have_size_t" >&5 | ||
11986 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
11987 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
11988 | cat >>confdefs.h <<\EOF | ||
11989 | #define HAVE_SIZE_T 1 | ||
11990 | EOF | ||
11991 | |||
11992 | fi | ||
11993 | |||
11994 | echo "$as_me:11994: checking for ssize_t" >&5 | ||
11995 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
11996 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
11997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11998 | else | ||
11999 | |||
12000 | cat >conftest.$ac_ext <<_ACEOF | ||
12001 | #line 12001 "configure" | ||
12002 | #include "confdefs.h" | ||
12003 | |||
12004 | #include <sys/types.h> | ||
12005 | |||
12006 | int | ||
12007 | main () | ||
12008 | { | ||
12009 | ssize_t foo; foo = 1235; | ||
12010 | ; | ||
12011 | return 0; | ||
12012 | } | ||
12013 | _ACEOF | ||
12014 | rm -f conftest.$ac_objext | ||
12015 | if { (eval echo "$as_me:12015: \"$ac_compile\"") >&5 | ||
12016 | (eval $ac_compile) 2>&5 | ||
12017 | ac_status=$? | ||
12018 | echo "$as_me:12018: \$? = $ac_status" >&5 | ||
12019 | (exit $ac_status); } && | ||
12020 | { ac_try='test -s conftest.$ac_objext' | ||
12021 | { (eval echo "$as_me:12021: \"$ac_try\"") >&5 | ||
12022 | (eval $ac_try) 2>&5 | ||
12023 | ac_status=$? | ||
12024 | echo "$as_me:12024: \$? = $ac_status" >&5 | ||
12025 | (exit $ac_status); }; }; then | ||
12026 | ac_cv_have_ssize_t="yes" | ||
12027 | else | ||
12028 | echo "$as_me: failed program was:" >&5 | ||
12029 | cat conftest.$ac_ext >&5 | ||
12030 | ac_cv_have_ssize_t="no" | ||
12031 | |||
12032 | fi | ||
12033 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12034 | |||
12035 | fi | ||
12036 | echo "$as_me:12036: result: $ac_cv_have_ssize_t" >&5 | ||
12037 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
12038 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
12039 | cat >>confdefs.h <<\EOF | ||
12040 | #define HAVE_SSIZE_T 1 | ||
12041 | EOF | ||
12042 | |||
12043 | fi | ||
12044 | |||
12045 | echo "$as_me:12045: checking for clock_t" >&5 | ||
12046 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
12047 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
12048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12049 | else | ||
12050 | |||
12051 | cat >conftest.$ac_ext <<_ACEOF | ||
12052 | #line 12052 "configure" | ||
12053 | #include "confdefs.h" | ||
12054 | |||
12055 | #include <time.h> | ||
12056 | |||
12057 | int | ||
12058 | main () | ||
12059 | { | ||
12060 | clock_t foo; foo = 1235; | ||
12061 | ; | ||
12062 | return 0; | ||
12063 | } | ||
12064 | _ACEOF | ||
12065 | rm -f conftest.$ac_objext | ||
12066 | if { (eval echo "$as_me:12066: \"$ac_compile\"") >&5 | ||
12067 | (eval $ac_compile) 2>&5 | ||
12068 | ac_status=$? | ||
12069 | echo "$as_me:12069: \$? = $ac_status" >&5 | ||
12070 | (exit $ac_status); } && | ||
12071 | { ac_try='test -s conftest.$ac_objext' | ||
12072 | { (eval echo "$as_me:12072: \"$ac_try\"") >&5 | ||
12073 | (eval $ac_try) 2>&5 | ||
12074 | ac_status=$? | ||
12075 | echo "$as_me:12075: \$? = $ac_status" >&5 | ||
12076 | (exit $ac_status); }; }; then | ||
12077 | ac_cv_have_clock_t="yes" | ||
12078 | else | ||
12079 | echo "$as_me: failed program was:" >&5 | ||
12080 | cat conftest.$ac_ext >&5 | ||
12081 | ac_cv_have_clock_t="no" | ||
12082 | |||
12083 | fi | ||
12084 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12085 | |||
12086 | fi | ||
12087 | echo "$as_me:12087: result: $ac_cv_have_clock_t" >&5 | ||
12088 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
12089 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
12090 | cat >>confdefs.h <<\EOF | ||
12091 | #define HAVE_CLOCK_T 1 | ||
12092 | EOF | ||
12093 | |||
12094 | fi | ||
12095 | |||
12096 | echo "$as_me:12096: checking for sa_family_t" >&5 | ||
12097 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
12098 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
12099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12100 | else | ||
12101 | |||
12102 | cat >conftest.$ac_ext <<_ACEOF | ||
12103 | #line 12103 "configure" | ||
12104 | #include "confdefs.h" | ||
12105 | |||
12106 | #include <sys/types.h> | ||
12107 | #include <sys/socket.h> | ||
12108 | |||
12109 | int | ||
12110 | main () | ||
12111 | { | ||
12112 | sa_family_t foo; foo = 1235; | ||
12113 | ; | ||
12114 | return 0; | ||
12115 | } | ||
12116 | _ACEOF | ||
12117 | rm -f conftest.$ac_objext | ||
12118 | if { (eval echo "$as_me:12118: \"$ac_compile\"") >&5 | ||
12119 | (eval $ac_compile) 2>&5 | ||
12120 | ac_status=$? | ||
12121 | echo "$as_me:12121: \$? = $ac_status" >&5 | ||
12122 | (exit $ac_status); } && | ||
12123 | { ac_try='test -s conftest.$ac_objext' | ||
12124 | { (eval echo "$as_me:12124: \"$ac_try\"") >&5 | ||
12125 | (eval $ac_try) 2>&5 | ||
12126 | ac_status=$? | ||
12127 | echo "$as_me:12127: \$? = $ac_status" >&5 | ||
12128 | (exit $ac_status); }; }; then | ||
12129 | ac_cv_have_sa_family_t="yes" | ||
12130 | else | ||
12131 | echo "$as_me: failed program was:" >&5 | ||
12132 | cat conftest.$ac_ext >&5 | ||
12133 | cat >conftest.$ac_ext <<_ACEOF | ||
12134 | #line 12134 "configure" | ||
12135 | #include "confdefs.h" | ||
12136 | |||
12137 | #include <sys/types.h> | ||
12138 | #include <sys/socket.h> | ||
12139 | #include <netinet/in.h> | ||
12140 | |||
12141 | int | ||
12142 | main () | ||
12143 | { | ||
12144 | sa_family_t foo; foo = 1235; | ||
12145 | ; | ||
12146 | return 0; | ||
12147 | } | ||
12148 | _ACEOF | ||
12149 | rm -f conftest.$ac_objext | ||
12150 | if { (eval echo "$as_me:12150: \"$ac_compile\"") >&5 | ||
12151 | (eval $ac_compile) 2>&5 | ||
12152 | ac_status=$? | ||
12153 | echo "$as_me:12153: \$? = $ac_status" >&5 | ||
12154 | (exit $ac_status); } && | ||
12155 | { ac_try='test -s conftest.$ac_objext' | ||
12156 | { (eval echo "$as_me:12156: \"$ac_try\"") >&5 | ||
12157 | (eval $ac_try) 2>&5 | ||
12158 | ac_status=$? | ||
12159 | echo "$as_me:12159: \$? = $ac_status" >&5 | ||
12160 | (exit $ac_status); }; }; then | ||
12161 | ac_cv_have_sa_family_t="yes" | ||
12162 | else | ||
12163 | echo "$as_me: failed program was:" >&5 | ||
12164 | cat conftest.$ac_ext >&5 | ||
12165 | ac_cv_have_sa_family_t="no" | ||
12166 | |||
12167 | fi | ||
12168 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12169 | |||
12170 | fi | ||
12171 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12172 | |||
12173 | fi | ||
12174 | echo "$as_me:12174: result: $ac_cv_have_sa_family_t" >&5 | ||
12175 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
12176 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
12177 | cat >>confdefs.h <<\EOF | ||
12178 | #define HAVE_SA_FAMILY_T 1 | ||
12179 | EOF | ||
12180 | |||
12181 | fi | ||
12182 | |||
12183 | echo "$as_me:12183: checking for pid_t" >&5 | ||
12184 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
12185 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
12186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12187 | else | ||
12188 | |||
12189 | cat >conftest.$ac_ext <<_ACEOF | ||
12190 | #line 12190 "configure" | ||
12191 | #include "confdefs.h" | ||
12192 | |||
12193 | #include <sys/types.h> | ||
12194 | |||
12195 | int | ||
12196 | main () | ||
12197 | { | ||
12198 | pid_t foo; foo = 1235; | ||
12199 | ; | ||
12200 | return 0; | ||
12201 | } | ||
12202 | _ACEOF | ||
12203 | rm -f conftest.$ac_objext | ||
12204 | if { (eval echo "$as_me:12204: \"$ac_compile\"") >&5 | ||
12205 | (eval $ac_compile) 2>&5 | ||
12206 | ac_status=$? | ||
12207 | echo "$as_me:12207: \$? = $ac_status" >&5 | ||
12208 | (exit $ac_status); } && | ||
12209 | { ac_try='test -s conftest.$ac_objext' | ||
12210 | { (eval echo "$as_me:12210: \"$ac_try\"") >&5 | ||
12211 | (eval $ac_try) 2>&5 | ||
12212 | ac_status=$? | ||
12213 | echo "$as_me:12213: \$? = $ac_status" >&5 | ||
12214 | (exit $ac_status); }; }; then | ||
12215 | ac_cv_have_pid_t="yes" | ||
12216 | else | ||
12217 | echo "$as_me: failed program was:" >&5 | ||
12218 | cat conftest.$ac_ext >&5 | ||
12219 | ac_cv_have_pid_t="no" | ||
12220 | |||
12221 | fi | ||
12222 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12223 | |||
12224 | fi | ||
12225 | echo "$as_me:12225: result: $ac_cv_have_pid_t" >&5 | ||
12226 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
12227 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
12228 | cat >>confdefs.h <<\EOF | ||
12229 | #define HAVE_PID_T 1 | ||
12230 | EOF | ||
12231 | |||
12232 | fi | ||
12233 | |||
12234 | echo "$as_me:12234: checking for mode_t" >&5 | ||
12235 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
12236 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
12237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12238 | else | ||
12239 | |||
12240 | cat >conftest.$ac_ext <<_ACEOF | ||
12241 | #line 12241 "configure" | ||
12242 | #include "confdefs.h" | ||
12243 | |||
12244 | #include <sys/types.h> | ||
12245 | |||
12246 | int | ||
12247 | main () | ||
12248 | { | ||
12249 | mode_t foo; foo = 1235; | ||
12250 | ; | ||
12251 | return 0; | ||
12252 | } | ||
12253 | _ACEOF | ||
12254 | rm -f conftest.$ac_objext | ||
12255 | if { (eval echo "$as_me:12255: \"$ac_compile\"") >&5 | ||
12256 | (eval $ac_compile) 2>&5 | ||
12257 | ac_status=$? | ||
12258 | echo "$as_me:12258: \$? = $ac_status" >&5 | ||
12259 | (exit $ac_status); } && | ||
12260 | { ac_try='test -s conftest.$ac_objext' | ||
12261 | { (eval echo "$as_me:12261: \"$ac_try\"") >&5 | ||
12262 | (eval $ac_try) 2>&5 | ||
12263 | ac_status=$? | ||
12264 | echo "$as_me:12264: \$? = $ac_status" >&5 | ||
12265 | (exit $ac_status); }; }; then | ||
12266 | ac_cv_have_mode_t="yes" | ||
12267 | else | ||
12268 | echo "$as_me: failed program was:" >&5 | ||
12269 | cat conftest.$ac_ext >&5 | ||
12270 | ac_cv_have_mode_t="no" | ||
12271 | |||
12272 | fi | ||
12273 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12274 | |||
12275 | fi | ||
12276 | echo "$as_me:12276: result: $ac_cv_have_mode_t" >&5 | ||
12277 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
12278 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
12279 | cat >>confdefs.h <<\EOF | ||
12280 | #define HAVE_MODE_T 1 | ||
12281 | EOF | ||
12282 | |||
12283 | fi | ||
12284 | |||
12285 | echo "$as_me:12285: checking for struct sockaddr_storage" >&5 | ||
12286 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
12287 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
12288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12289 | else | ||
12290 | |||
12291 | cat >conftest.$ac_ext <<_ACEOF | ||
12292 | #line 12292 "configure" | ||
12293 | #include "confdefs.h" | ||
12294 | |||
12295 | #include <sys/types.h> | ||
12296 | #include <sys/socket.h> | ||
12297 | |||
12298 | int | ||
12299 | main () | ||
12300 | { | ||
12301 | struct sockaddr_storage s; | ||
12302 | ; | ||
12303 | return 0; | ||
12304 | } | ||
12305 | _ACEOF | ||
12306 | rm -f conftest.$ac_objext | ||
12307 | if { (eval echo "$as_me:12307: \"$ac_compile\"") >&5 | ||
12308 | (eval $ac_compile) 2>&5 | ||
12309 | ac_status=$? | ||
12310 | echo "$as_me:12310: \$? = $ac_status" >&5 | ||
12311 | (exit $ac_status); } && | ||
12312 | { ac_try='test -s conftest.$ac_objext' | ||
12313 | { (eval echo "$as_me:12313: \"$ac_try\"") >&5 | ||
12314 | (eval $ac_try) 2>&5 | ||
12315 | ac_status=$? | ||
12316 | echo "$as_me:12316: \$? = $ac_status" >&5 | ||
12317 | (exit $ac_status); }; }; then | ||
12318 | ac_cv_have_struct_sockaddr_storage="yes" | ||
12319 | else | ||
12320 | echo "$as_me: failed program was:" >&5 | ||
12321 | cat conftest.$ac_ext >&5 | ||
12322 | ac_cv_have_struct_sockaddr_storage="no" | ||
12323 | |||
12324 | fi | ||
12325 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12326 | |||
12327 | fi | ||
12328 | echo "$as_me:12328: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
12329 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
12330 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
12331 | cat >>confdefs.h <<\EOF | ||
12332 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
12333 | EOF | ||
12334 | |||
12335 | fi | ||
12336 | |||
12337 | echo "$as_me:12337: checking for struct sockaddr_in6" >&5 | ||
12338 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
12339 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
12340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12341 | else | ||
12342 | |||
12343 | cat >conftest.$ac_ext <<_ACEOF | ||
12344 | #line 12344 "configure" | ||
12345 | #include "confdefs.h" | ||
12346 | |||
12347 | #include <sys/types.h> | ||
12348 | #include <netinet/in.h> | ||
12349 | |||
12350 | int | ||
12351 | main () | ||
12352 | { | ||
12353 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
12354 | ; | ||
12355 | return 0; | ||
12356 | } | ||
12357 | _ACEOF | ||
12358 | rm -f conftest.$ac_objext | ||
12359 | if { (eval echo "$as_me:12359: \"$ac_compile\"") >&5 | ||
12360 | (eval $ac_compile) 2>&5 | ||
12361 | ac_status=$? | ||
12362 | echo "$as_me:12362: \$? = $ac_status" >&5 | ||
12363 | (exit $ac_status); } && | ||
12364 | { ac_try='test -s conftest.$ac_objext' | ||
12365 | { (eval echo "$as_me:12365: \"$ac_try\"") >&5 | ||
12366 | (eval $ac_try) 2>&5 | ||
12367 | ac_status=$? | ||
12368 | echo "$as_me:12368: \$? = $ac_status" >&5 | ||
12369 | (exit $ac_status); }; }; then | ||
12370 | ac_cv_have_struct_sockaddr_in6="yes" | ||
12371 | else | ||
12372 | echo "$as_me: failed program was:" >&5 | ||
12373 | cat conftest.$ac_ext >&5 | ||
12374 | ac_cv_have_struct_sockaddr_in6="no" | ||
12375 | |||
12376 | fi | ||
12377 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12378 | |||
12379 | fi | ||
12380 | echo "$as_me:12380: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
12381 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
12382 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
12383 | cat >>confdefs.h <<\EOF | ||
12384 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
12385 | EOF | ||
12386 | |||
12387 | fi | ||
12388 | |||
12389 | echo "$as_me:12389: checking for struct in6_addr" >&5 | ||
12390 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
12391 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
12392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12393 | else | ||
12394 | |||
12395 | cat >conftest.$ac_ext <<_ACEOF | ||
12396 | #line 12396 "configure" | ||
12397 | #include "confdefs.h" | ||
12398 | |||
12399 | #include <sys/types.h> | ||
12400 | #include <netinet/in.h> | ||
12401 | |||
12402 | int | ||
12403 | main () | ||
12404 | { | ||
12405 | struct in6_addr s; s.s6_addr[0] = 0; | ||
12406 | ; | ||
12407 | return 0; | ||
12408 | } | ||
12409 | _ACEOF | ||
12410 | rm -f conftest.$ac_objext | ||
12411 | if { (eval echo "$as_me:12411: \"$ac_compile\"") >&5 | ||
12412 | (eval $ac_compile) 2>&5 | ||
12413 | ac_status=$? | ||
12414 | echo "$as_me:12414: \$? = $ac_status" >&5 | ||
12415 | (exit $ac_status); } && | ||
12416 | { ac_try='test -s conftest.$ac_objext' | ||
12417 | { (eval echo "$as_me:12417: \"$ac_try\"") >&5 | ||
12418 | (eval $ac_try) 2>&5 | ||
12419 | ac_status=$? | ||
12420 | echo "$as_me:12420: \$? = $ac_status" >&5 | ||
12421 | (exit $ac_status); }; }; then | ||
12422 | ac_cv_have_struct_in6_addr="yes" | ||
12423 | else | ||
12424 | echo "$as_me: failed program was:" >&5 | ||
12425 | cat conftest.$ac_ext >&5 | ||
12426 | ac_cv_have_struct_in6_addr="no" | ||
12427 | |||
12428 | fi | ||
12429 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12430 | |||
12431 | fi | ||
12432 | echo "$as_me:12432: result: $ac_cv_have_struct_in6_addr" >&5 | ||
12433 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
12434 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
12435 | cat >>confdefs.h <<\EOF | ||
12436 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
12437 | EOF | ||
12438 | |||
12439 | fi | ||
12440 | |||
12441 | echo "$as_me:12441: checking for struct addrinfo" >&5 | ||
12442 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
12443 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
12444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12445 | else | ||
12446 | |||
12447 | cat >conftest.$ac_ext <<_ACEOF | ||
12448 | #line 12448 "configure" | ||
12449 | #include "confdefs.h" | ||
12450 | |||
12451 | #include <sys/types.h> | ||
12452 | #include <sys/socket.h> | ||
12453 | #include <netdb.h> | ||
12454 | |||
12455 | int | ||
12456 | main () | ||
12457 | { | ||
12458 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
12459 | ; | ||
12460 | return 0; | ||
12461 | } | ||
12462 | _ACEOF | ||
12463 | rm -f conftest.$ac_objext | ||
12464 | if { (eval echo "$as_me:12464: \"$ac_compile\"") >&5 | ||
12465 | (eval $ac_compile) 2>&5 | ||
12466 | ac_status=$? | ||
12467 | echo "$as_me:12467: \$? = $ac_status" >&5 | ||
12468 | (exit $ac_status); } && | ||
12469 | { ac_try='test -s conftest.$ac_objext' | ||
12470 | { (eval echo "$as_me:12470: \"$ac_try\"") >&5 | ||
12471 | (eval $ac_try) 2>&5 | ||
12472 | ac_status=$? | ||
12473 | echo "$as_me:12473: \$? = $ac_status" >&5 | ||
12474 | (exit $ac_status); }; }; then | ||
12475 | ac_cv_have_struct_addrinfo="yes" | ||
12476 | else | ||
12477 | echo "$as_me: failed program was:" >&5 | ||
12478 | cat conftest.$ac_ext >&5 | ||
12479 | ac_cv_have_struct_addrinfo="no" | ||
12480 | |||
12481 | fi | ||
12482 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12483 | |||
12484 | fi | ||
12485 | echo "$as_me:12485: result: $ac_cv_have_struct_addrinfo" >&5 | ||
12486 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
12487 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
12488 | cat >>confdefs.h <<\EOF | ||
12489 | #define HAVE_STRUCT_ADDRINFO 1 | ||
12490 | EOF | ||
12491 | |||
12492 | fi | ||
12493 | |||
12494 | echo "$as_me:12494: checking for struct timeval" >&5 | ||
12495 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
12496 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
12497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12498 | else | ||
12499 | |||
12500 | cat >conftest.$ac_ext <<_ACEOF | ||
12501 | #line 12501 "configure" | ||
12502 | #include "confdefs.h" | ||
12503 | #include <sys/time.h> | ||
12504 | int | ||
12505 | main () | ||
12506 | { | ||
12507 | struct timeval tv; tv.tv_sec = 1; | ||
12508 | ; | ||
12509 | return 0; | ||
12510 | } | ||
12511 | _ACEOF | ||
12512 | rm -f conftest.$ac_objext | ||
12513 | if { (eval echo "$as_me:12513: \"$ac_compile\"") >&5 | ||
12514 | (eval $ac_compile) 2>&5 | ||
12515 | ac_status=$? | ||
12516 | echo "$as_me:12516: \$? = $ac_status" >&5 | ||
12517 | (exit $ac_status); } && | ||
12518 | { ac_try='test -s conftest.$ac_objext' | ||
12519 | { (eval echo "$as_me:12519: \"$ac_try\"") >&5 | ||
12520 | (eval $ac_try) 2>&5 | ||
12521 | ac_status=$? | ||
12522 | echo "$as_me:12522: \$? = $ac_status" >&5 | ||
12523 | (exit $ac_status); }; }; then | ||
12524 | ac_cv_have_struct_timeval="yes" | ||
12525 | else | ||
12526 | echo "$as_me: failed program was:" >&5 | ||
12527 | cat conftest.$ac_ext >&5 | ||
12528 | ac_cv_have_struct_timeval="no" | ||
12529 | |||
12530 | fi | ||
12531 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12532 | |||
12533 | fi | ||
12534 | echo "$as_me:12534: result: $ac_cv_have_struct_timeval" >&5 | ||
12535 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
12536 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
12537 | cat >>confdefs.h <<\EOF | ||
12538 | #define HAVE_STRUCT_TIMEVAL 1 | ||
12539 | EOF | ||
12540 | |||
12541 | have_struct_timeval=1 | ||
12542 | fi | ||
12543 | |||
12544 | echo "$as_me:12544: checking for struct timespec" >&5 | ||
12545 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 | ||
12546 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
12547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12548 | else | ||
12549 | cat >conftest.$ac_ext <<_ACEOF | ||
12550 | #line 12550 "configure" | ||
12551 | #include "confdefs.h" | ||
12552 | $ac_includes_default | ||
12553 | int | ||
12554 | main () | ||
12555 | { | ||
12556 | if ((struct timespec *) 0) | ||
12557 | return 0; | ||
12558 | if (sizeof (struct timespec)) | ||
12559 | return 0; | ||
12560 | ; | ||
12561 | return 0; | ||
12562 | } | ||
12563 | _ACEOF | ||
12564 | rm -f conftest.$ac_objext | ||
12565 | if { (eval echo "$as_me:12565: \"$ac_compile\"") >&5 | ||
12566 | (eval $ac_compile) 2>&5 | ||
12567 | ac_status=$? | ||
12568 | echo "$as_me:12568: \$? = $ac_status" >&5 | ||
12569 | (exit $ac_status); } && | ||
12570 | { ac_try='test -s conftest.$ac_objext' | ||
12571 | { (eval echo "$as_me:12571: \"$ac_try\"") >&5 | ||
12572 | (eval $ac_try) 2>&5 | ||
12573 | ac_status=$? | ||
12574 | echo "$as_me:12574: \$? = $ac_status" >&5 | ||
12575 | (exit $ac_status); }; }; then | ||
12576 | ac_cv_type_struct_timespec=yes | ||
12577 | else | ||
12578 | echo "$as_me: failed program was:" >&5 | ||
12579 | cat conftest.$ac_ext >&5 | ||
12580 | ac_cv_type_struct_timespec=no | ||
12581 | fi | ||
12582 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12583 | fi | ||
12584 | echo "$as_me:12584: result: $ac_cv_type_struct_timespec" >&5 | ||
12585 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
12586 | if test $ac_cv_type_struct_timespec = yes; then | ||
12587 | |||
12588 | cat >>confdefs.h <<EOF | ||
12589 | #define HAVE_STRUCT_TIMESPEC 1 | ||
12590 | EOF | ||
12591 | |||
12592 | fi | ||
12593 | |||
12594 | # We need int64_t or else certian parts of the compile will fail. | ||
12595 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | ||
12596 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | ||
12597 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
12598 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
12599 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
12600 | echo "" | ||
12601 | exit 1; | ||
12602 | else | ||
12603 | if test "$cross_compiling" = yes; then | ||
12604 | { { echo "$as_me:12604: error: cannot run test program while cross compiling" >&5 | ||
12605 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
12606 | { (exit 1); exit 1; }; } | ||
12607 | else | ||
12608 | cat >conftest.$ac_ext <<_ACEOF | ||
12609 | #line 12609 "configure" | ||
12610 | #include "confdefs.h" | ||
12611 | |||
12612 | #include <stdio.h> | ||
12613 | #include <string.h> | ||
12614 | #ifdef HAVE_SNPRINTF | ||
12615 | main() | ||
12616 | { | ||
12617 | char buf[50]; | ||
12618 | char expected_out[50]; | ||
12619 | int mazsize = 50 ; | ||
12620 | #if (SIZEOF_LONG_INT == 8) | ||
12621 | long int num = 0x7fffffffffffffff; | ||
12622 | #else | ||
12623 | long long num = 0x7fffffffffffffffll; | ||
12624 | #endif | ||
12625 | strcpy(expected_out, "9223372036854775807"); | ||
12626 | snprintf(buf, mazsize, "%lld", num); | ||
12627 | if(strcmp(buf, expected_out) != 0) | ||
12628 | exit(1); | ||
12629 | exit(0); | ||
12630 | } | ||
12631 | #else | ||
12632 | main() { exit(0); } | ||
12633 | #endif | ||
12634 | |||
12635 | _ACEOF | ||
12636 | rm -f conftest$ac_exeext | ||
12637 | if { (eval echo "$as_me:12637: \"$ac_link\"") >&5 | ||
12638 | (eval $ac_link) 2>&5 | ||
12639 | ac_status=$? | ||
12640 | echo "$as_me:12640: \$? = $ac_status" >&5 | ||
12641 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12642 | { (eval echo "$as_me:12642: \"$ac_try\"") >&5 | ||
12643 | (eval $ac_try) 2>&5 | ||
12644 | ac_status=$? | ||
12645 | echo "$as_me:12645: \$? = $ac_status" >&5 | ||
12646 | (exit $ac_status); }; }; then | ||
12647 | true | ||
12648 | else | ||
12649 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12650 | echo "$as_me: failed program was:" >&5 | ||
12651 | cat conftest.$ac_ext >&5 | ||
12652 | cat >>confdefs.h <<\EOF | ||
12653 | #define BROKEN_SNPRINTF 1 | ||
12654 | EOF | ||
12655 | |||
12656 | fi | ||
12657 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12658 | fi | ||
12659 | fi | ||
12660 | |||
12661 | # look for field 'ut_host' in header 'utmp.h' | ||
12662 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12663 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
12664 | echo "$as_me:12664: checking for ut_host field in utmp.h" >&5 | ||
12665 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
12666 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12668 | else | ||
12669 | |||
12670 | cat >conftest.$ac_ext <<_ACEOF | ||
12671 | #line 12671 "configure" | ||
12672 | #include "confdefs.h" | ||
12673 | #include <utmp.h> | ||
12674 | |||
12675 | _ACEOF | ||
12676 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12677 | egrep "ut_host" >/dev/null 2>&1; then | ||
12678 | eval "$ossh_varname=yes" | ||
12679 | else | ||
12680 | eval "$ossh_varname=no" | ||
12681 | fi | ||
12682 | rm -f conftest* | ||
12683 | |||
12684 | fi | ||
12685 | |||
12686 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12687 | if test -n "`echo $ossh_varname`"; then | ||
12688 | echo "$as_me:12688: result: $ossh_result" >&5 | ||
12689 | echo "${ECHO_T}$ossh_result" >&6 | ||
12690 | if test "x$ossh_result" = "xyes"; then | ||
12691 | cat >>confdefs.h <<\EOF | ||
12692 | #define HAVE_HOST_IN_UTMP 1 | ||
12693 | EOF | ||
12694 | |||
12695 | fi | ||
12696 | else | ||
12697 | echo "$as_me:12697: result: no" >&5 | ||
12698 | echo "${ECHO_T}no" >&6 | ||
12699 | fi | ||
12700 | |||
12701 | # look for field 'ut_host' in header 'utmpx.h' | ||
12702 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12703 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
12704 | echo "$as_me:12704: checking for ut_host field in utmpx.h" >&5 | ||
12705 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
12706 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12708 | else | ||
12709 | |||
12710 | cat >conftest.$ac_ext <<_ACEOF | ||
12711 | #line 12711 "configure" | ||
12712 | #include "confdefs.h" | ||
12713 | #include <utmpx.h> | ||
12714 | |||
12715 | _ACEOF | ||
12716 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12717 | egrep "ut_host" >/dev/null 2>&1; then | ||
12718 | eval "$ossh_varname=yes" | ||
12719 | else | ||
12720 | eval "$ossh_varname=no" | ||
12721 | fi | ||
12722 | rm -f conftest* | ||
12723 | |||
12724 | fi | ||
12725 | |||
12726 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12727 | if test -n "`echo $ossh_varname`"; then | ||
12728 | echo "$as_me:12728: result: $ossh_result" >&5 | ||
12729 | echo "${ECHO_T}$ossh_result" >&6 | ||
12730 | if test "x$ossh_result" = "xyes"; then | ||
12731 | cat >>confdefs.h <<\EOF | ||
12732 | #define HAVE_HOST_IN_UTMPX 1 | ||
12733 | EOF | ||
12734 | |||
12735 | fi | ||
12736 | else | ||
12737 | echo "$as_me:12737: result: no" >&5 | ||
12738 | echo "${ECHO_T}no" >&6 | ||
12739 | fi | ||
12740 | |||
12741 | # look for field 'syslen' in header 'utmpx.h' | ||
12742 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12743 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
12744 | echo "$as_me:12744: checking for syslen field in utmpx.h" >&5 | ||
12745 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
12746 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12748 | else | ||
12749 | |||
12750 | cat >conftest.$ac_ext <<_ACEOF | ||
12751 | #line 12751 "configure" | ||
12752 | #include "confdefs.h" | ||
12753 | #include <utmpx.h> | ||
12754 | |||
12755 | _ACEOF | ||
12756 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12757 | egrep "syslen" >/dev/null 2>&1; then | ||
12758 | eval "$ossh_varname=yes" | ||
12759 | else | ||
12760 | eval "$ossh_varname=no" | ||
12761 | fi | ||
12762 | rm -f conftest* | ||
12763 | |||
12764 | fi | ||
12765 | |||
12766 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12767 | if test -n "`echo $ossh_varname`"; then | ||
12768 | echo "$as_me:12768: result: $ossh_result" >&5 | ||
12769 | echo "${ECHO_T}$ossh_result" >&6 | ||
12770 | if test "x$ossh_result" = "xyes"; then | ||
12771 | cat >>confdefs.h <<\EOF | ||
12772 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
12773 | EOF | ||
12774 | |||
12775 | fi | ||
12776 | else | ||
12777 | echo "$as_me:12777: result: no" >&5 | ||
12778 | echo "${ECHO_T}no" >&6 | ||
12779 | fi | ||
12780 | |||
12781 | # look for field 'ut_pid' in header 'utmp.h' | ||
12782 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12783 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
12784 | echo "$as_me:12784: checking for ut_pid field in utmp.h" >&5 | ||
12785 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
12786 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12788 | else | ||
12789 | |||
12790 | cat >conftest.$ac_ext <<_ACEOF | ||
12791 | #line 12791 "configure" | ||
12792 | #include "confdefs.h" | ||
12793 | #include <utmp.h> | ||
12794 | |||
12795 | _ACEOF | ||
12796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12797 | egrep "ut_pid" >/dev/null 2>&1; then | ||
12798 | eval "$ossh_varname=yes" | ||
12799 | else | ||
12800 | eval "$ossh_varname=no" | ||
12801 | fi | ||
12802 | rm -f conftest* | ||
12803 | |||
12804 | fi | ||
12805 | |||
12806 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12807 | if test -n "`echo $ossh_varname`"; then | ||
12808 | echo "$as_me:12808: result: $ossh_result" >&5 | ||
12809 | echo "${ECHO_T}$ossh_result" >&6 | ||
12810 | if test "x$ossh_result" = "xyes"; then | ||
12811 | cat >>confdefs.h <<\EOF | ||
12812 | #define HAVE_PID_IN_UTMP 1 | ||
12813 | EOF | ||
12814 | |||
12815 | fi | ||
12816 | else | ||
12817 | echo "$as_me:12817: result: no" >&5 | ||
12818 | echo "${ECHO_T}no" >&6 | ||
12819 | fi | ||
12820 | |||
12821 | # look for field 'ut_type' in header 'utmp.h' | ||
12822 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12823 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
12824 | echo "$as_me:12824: checking for ut_type field in utmp.h" >&5 | ||
12825 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
12826 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12828 | else | ||
12829 | |||
12830 | cat >conftest.$ac_ext <<_ACEOF | ||
12831 | #line 12831 "configure" | ||
12832 | #include "confdefs.h" | ||
12833 | #include <utmp.h> | ||
12834 | |||
12835 | _ACEOF | ||
12836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12837 | egrep "ut_type" >/dev/null 2>&1; then | ||
12838 | eval "$ossh_varname=yes" | ||
12839 | else | ||
12840 | eval "$ossh_varname=no" | ||
12841 | fi | ||
12842 | rm -f conftest* | ||
12843 | |||
12844 | fi | ||
12845 | |||
12846 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12847 | if test -n "`echo $ossh_varname`"; then | ||
12848 | echo "$as_me:12848: result: $ossh_result" >&5 | ||
12849 | echo "${ECHO_T}$ossh_result" >&6 | ||
12850 | if test "x$ossh_result" = "xyes"; then | ||
12851 | cat >>confdefs.h <<\EOF | ||
12852 | #define HAVE_TYPE_IN_UTMP 1 | ||
12853 | EOF | ||
12854 | |||
12855 | fi | ||
12856 | else | ||
12857 | echo "$as_me:12857: result: no" >&5 | ||
12858 | echo "${ECHO_T}no" >&6 | ||
12859 | fi | ||
12860 | |||
12861 | # look for field 'ut_type' in header 'utmpx.h' | ||
12862 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12863 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
12864 | echo "$as_me:12864: checking for ut_type field in utmpx.h" >&5 | ||
12865 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
12866 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12868 | else | ||
12869 | |||
12870 | cat >conftest.$ac_ext <<_ACEOF | ||
12871 | #line 12871 "configure" | ||
12872 | #include "confdefs.h" | ||
12873 | #include <utmpx.h> | ||
12874 | |||
12875 | _ACEOF | ||
12876 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12877 | egrep "ut_type" >/dev/null 2>&1; then | ||
12878 | eval "$ossh_varname=yes" | ||
12879 | else | ||
12880 | eval "$ossh_varname=no" | ||
12881 | fi | ||
12882 | rm -f conftest* | ||
12883 | |||
12884 | fi | ||
12885 | |||
12886 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12887 | if test -n "`echo $ossh_varname`"; then | ||
12888 | echo "$as_me:12888: result: $ossh_result" >&5 | ||
12889 | echo "${ECHO_T}$ossh_result" >&6 | ||
12890 | if test "x$ossh_result" = "xyes"; then | ||
12891 | cat >>confdefs.h <<\EOF | ||
12892 | #define HAVE_TYPE_IN_UTMPX 1 | ||
12893 | EOF | ||
12894 | |||
12895 | fi | ||
12896 | else | ||
12897 | echo "$as_me:12897: result: no" >&5 | ||
12898 | echo "${ECHO_T}no" >&6 | ||
12899 | fi | ||
12900 | |||
12901 | # look for field 'ut_tv' in header 'utmp.h' | ||
12902 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12903 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
12904 | echo "$as_me:12904: checking for ut_tv field in utmp.h" >&5 | ||
12905 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
12906 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12908 | else | ||
12909 | |||
12910 | cat >conftest.$ac_ext <<_ACEOF | ||
12911 | #line 12911 "configure" | ||
12912 | #include "confdefs.h" | ||
12913 | #include <utmp.h> | ||
12914 | |||
12915 | _ACEOF | ||
12916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12917 | egrep "ut_tv" >/dev/null 2>&1; then | ||
12918 | eval "$ossh_varname=yes" | ||
12919 | else | ||
12920 | eval "$ossh_varname=no" | ||
12921 | fi | ||
12922 | rm -f conftest* | ||
12923 | |||
12924 | fi | ||
12925 | |||
12926 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12927 | if test -n "`echo $ossh_varname`"; then | ||
12928 | echo "$as_me:12928: result: $ossh_result" >&5 | ||
12929 | echo "${ECHO_T}$ossh_result" >&6 | ||
12930 | if test "x$ossh_result" = "xyes"; then | ||
12931 | cat >>confdefs.h <<\EOF | ||
12932 | #define HAVE_TV_IN_UTMP 1 | ||
12933 | EOF | ||
12934 | |||
12935 | fi | ||
12936 | else | ||
12937 | echo "$as_me:12937: result: no" >&5 | ||
12938 | echo "${ECHO_T}no" >&6 | ||
12939 | fi | ||
12940 | |||
12941 | # look for field 'ut_id' in header 'utmp.h' | ||
12942 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12943 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
12944 | echo "$as_me:12944: checking for ut_id field in utmp.h" >&5 | ||
12945 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
12946 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12948 | else | ||
12949 | |||
12950 | cat >conftest.$ac_ext <<_ACEOF | ||
12951 | #line 12951 "configure" | ||
12952 | #include "confdefs.h" | ||
12953 | #include <utmp.h> | ||
12954 | |||
12955 | _ACEOF | ||
12956 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12957 | egrep "ut_id" >/dev/null 2>&1; then | ||
12958 | eval "$ossh_varname=yes" | ||
12959 | else | ||
12960 | eval "$ossh_varname=no" | ||
12961 | fi | ||
12962 | rm -f conftest* | ||
12963 | |||
12964 | fi | ||
12965 | |||
12966 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12967 | if test -n "`echo $ossh_varname`"; then | ||
12968 | echo "$as_me:12968: result: $ossh_result" >&5 | ||
12969 | echo "${ECHO_T}$ossh_result" >&6 | ||
12970 | if test "x$ossh_result" = "xyes"; then | ||
12971 | cat >>confdefs.h <<\EOF | ||
12972 | #define HAVE_ID_IN_UTMP 1 | ||
12973 | EOF | ||
12974 | |||
12975 | fi | ||
12976 | else | ||
12977 | echo "$as_me:12977: result: no" >&5 | ||
12978 | echo "${ECHO_T}no" >&6 | ||
12979 | fi | ||
12980 | |||
12981 | # look for field 'ut_id' in header 'utmpx.h' | ||
12982 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12983 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
12984 | echo "$as_me:12984: checking for ut_id field in utmpx.h" >&5 | ||
12985 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
12986 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12988 | else | ||
12989 | |||
12990 | cat >conftest.$ac_ext <<_ACEOF | ||
12991 | #line 12991 "configure" | ||
12992 | #include "confdefs.h" | ||
12993 | #include <utmpx.h> | ||
12994 | |||
12995 | _ACEOF | ||
12996 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12997 | egrep "ut_id" >/dev/null 2>&1; then | ||
12998 | eval "$ossh_varname=yes" | ||
12999 | else | ||
13000 | eval "$ossh_varname=no" | ||
13001 | fi | ||
13002 | rm -f conftest* | ||
13003 | |||
13004 | fi | ||
13005 | |||
13006 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13007 | if test -n "`echo $ossh_varname`"; then | ||
13008 | echo "$as_me:13008: result: $ossh_result" >&5 | ||
13009 | echo "${ECHO_T}$ossh_result" >&6 | ||
13010 | if test "x$ossh_result" = "xyes"; then | ||
13011 | cat >>confdefs.h <<\EOF | ||
13012 | #define HAVE_ID_IN_UTMPX 1 | ||
13013 | EOF | ||
13014 | |||
13015 | fi | ||
13016 | else | ||
13017 | echo "$as_me:13017: result: no" >&5 | ||
13018 | echo "${ECHO_T}no" >&6 | ||
13019 | fi | ||
13020 | |||
13021 | # look for field 'ut_addr' in header 'utmp.h' | ||
13022 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13023 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13024 | echo "$as_me:13024: checking for ut_addr field in utmp.h" >&5 | ||
13025 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
13026 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13028 | else | ||
13029 | |||
13030 | cat >conftest.$ac_ext <<_ACEOF | ||
13031 | #line 13031 "configure" | ||
13032 | #include "confdefs.h" | ||
13033 | #include <utmp.h> | ||
13034 | |||
13035 | _ACEOF | ||
13036 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13037 | egrep "ut_addr" >/dev/null 2>&1; then | ||
13038 | eval "$ossh_varname=yes" | ||
13039 | else | ||
13040 | eval "$ossh_varname=no" | ||
13041 | fi | ||
13042 | rm -f conftest* | ||
13043 | |||
13044 | fi | ||
13045 | |||
13046 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13047 | if test -n "`echo $ossh_varname`"; then | ||
13048 | echo "$as_me:13048: result: $ossh_result" >&5 | ||
13049 | echo "${ECHO_T}$ossh_result" >&6 | ||
13050 | if test "x$ossh_result" = "xyes"; then | ||
13051 | cat >>confdefs.h <<\EOF | ||
13052 | #define HAVE_ADDR_IN_UTMP 1 | ||
13053 | EOF | ||
13054 | |||
13055 | fi | ||
13056 | else | ||
13057 | echo "$as_me:13057: result: no" >&5 | ||
13058 | echo "${ECHO_T}no" >&6 | ||
13059 | fi | ||
13060 | |||
13061 | # look for field 'ut_addr' in header 'utmpx.h' | ||
13062 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13063 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13064 | echo "$as_me:13064: checking for ut_addr field in utmpx.h" >&5 | ||
13065 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
13066 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13068 | else | ||
13069 | |||
13070 | cat >conftest.$ac_ext <<_ACEOF | ||
13071 | #line 13071 "configure" | ||
13072 | #include "confdefs.h" | ||
13073 | #include <utmpx.h> | ||
13074 | |||
13075 | _ACEOF | ||
13076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13077 | egrep "ut_addr" >/dev/null 2>&1; then | ||
13078 | eval "$ossh_varname=yes" | ||
13079 | else | ||
13080 | eval "$ossh_varname=no" | ||
13081 | fi | ||
13082 | rm -f conftest* | ||
13083 | |||
13084 | fi | ||
13085 | |||
13086 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13087 | if test -n "`echo $ossh_varname`"; then | ||
13088 | echo "$as_me:13088: result: $ossh_result" >&5 | ||
13089 | echo "${ECHO_T}$ossh_result" >&6 | ||
13090 | if test "x$ossh_result" = "xyes"; then | ||
13091 | cat >>confdefs.h <<\EOF | ||
13092 | #define HAVE_ADDR_IN_UTMPX 1 | ||
13093 | EOF | ||
13094 | |||
13095 | fi | ||
13096 | else | ||
13097 | echo "$as_me:13097: result: no" >&5 | ||
13098 | echo "${ECHO_T}no" >&6 | ||
13099 | fi | ||
13100 | |||
13101 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
13102 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13103 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13104 | echo "$as_me:13104: checking for ut_addr_v6 field in utmp.h" >&5 | ||
13105 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
13106 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13108 | else | ||
13109 | |||
13110 | cat >conftest.$ac_ext <<_ACEOF | ||
13111 | #line 13111 "configure" | ||
13112 | #include "confdefs.h" | ||
13113 | #include <utmp.h> | ||
13114 | |||
13115 | _ACEOF | ||
13116 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13117 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
13118 | eval "$ossh_varname=yes" | ||
13119 | else | ||
13120 | eval "$ossh_varname=no" | ||
13121 | fi | ||
13122 | rm -f conftest* | ||
13123 | |||
13124 | fi | ||
13125 | |||
13126 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13127 | if test -n "`echo $ossh_varname`"; then | ||
13128 | echo "$as_me:13128: result: $ossh_result" >&5 | ||
13129 | echo "${ECHO_T}$ossh_result" >&6 | ||
13130 | if test "x$ossh_result" = "xyes"; then | ||
13131 | cat >>confdefs.h <<\EOF | ||
13132 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
13133 | EOF | ||
13134 | |||
13135 | fi | ||
13136 | else | ||
13137 | echo "$as_me:13137: result: no" >&5 | ||
13138 | echo "${ECHO_T}no" >&6 | ||
13139 | fi | ||
13140 | |||
13141 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
13142 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13143 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13144 | echo "$as_me:13144: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
13145 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
13146 | if eval "test \"\${$ossh_varname+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 | #include <utmpx.h> | ||
13154 | |||
13155 | _ACEOF | ||
13156 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13157 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
13158 | eval "$ossh_varname=yes" | ||
13159 | else | ||
13160 | eval "$ossh_varname=no" | ||
13161 | fi | ||
13162 | rm -f conftest* | ||
13163 | |||
13164 | fi | ||
13165 | |||
13166 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13167 | if test -n "`echo $ossh_varname`"; then | ||
13168 | echo "$as_me:13168: result: $ossh_result" >&5 | ||
13169 | echo "${ECHO_T}$ossh_result" >&6 | ||
13170 | if test "x$ossh_result" = "xyes"; then | ||
13171 | cat >>confdefs.h <<\EOF | ||
13172 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
13173 | EOF | ||
13174 | |||
13175 | fi | ||
13176 | else | ||
13177 | echo "$as_me:13177: result: no" >&5 | ||
13178 | echo "${ECHO_T}no" >&6 | ||
13179 | fi | ||
13180 | |||
13181 | # look for field 'ut_exit' in header 'utmp.h' | ||
13182 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13183 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
13184 | echo "$as_me:13184: checking for ut_exit field in utmp.h" >&5 | ||
13185 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
13186 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13188 | else | ||
13189 | |||
13190 | cat >conftest.$ac_ext <<_ACEOF | ||
13191 | #line 13191 "configure" | ||
13192 | #include "confdefs.h" | ||
13193 | #include <utmp.h> | ||
13194 | |||
13195 | _ACEOF | ||
13196 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13197 | egrep "ut_exit" >/dev/null 2>&1; then | ||
13198 | eval "$ossh_varname=yes" | ||
13199 | else | ||
13200 | eval "$ossh_varname=no" | ||
13201 | fi | ||
13202 | rm -f conftest* | ||
13203 | |||
13204 | fi | ||
13205 | |||
13206 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13207 | if test -n "`echo $ossh_varname`"; then | ||
13208 | echo "$as_me:13208: result: $ossh_result" >&5 | ||
13209 | echo "${ECHO_T}$ossh_result" >&6 | ||
13210 | if test "x$ossh_result" = "xyes"; then | ||
13211 | cat >>confdefs.h <<\EOF | ||
13212 | #define HAVE_EXIT_IN_UTMP 1 | ||
13213 | EOF | ||
13214 | |||
13215 | fi | ||
13216 | else | ||
13217 | echo "$as_me:13217: result: no" >&5 | ||
13218 | echo "${ECHO_T}no" >&6 | ||
13219 | fi | ||
13220 | |||
13221 | # look for field 'ut_time' in header 'utmp.h' | ||
13222 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13223 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13224 | echo "$as_me:13224: checking for ut_time field in utmp.h" >&5 | ||
13225 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
13226 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13228 | else | ||
13229 | |||
13230 | cat >conftest.$ac_ext <<_ACEOF | ||
13231 | #line 13231 "configure" | ||
13232 | #include "confdefs.h" | ||
13233 | #include <utmp.h> | ||
13234 | |||
13235 | _ACEOF | ||
13236 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13237 | egrep "ut_time" >/dev/null 2>&1; then | ||
13238 | eval "$ossh_varname=yes" | ||
13239 | else | ||
13240 | eval "$ossh_varname=no" | ||
13241 | fi | ||
13242 | rm -f conftest* | ||
13243 | |||
13244 | fi | ||
13245 | |||
13246 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13247 | if test -n "`echo $ossh_varname`"; then | ||
13248 | echo "$as_me:13248: result: $ossh_result" >&5 | ||
13249 | echo "${ECHO_T}$ossh_result" >&6 | ||
13250 | if test "x$ossh_result" = "xyes"; then | ||
13251 | cat >>confdefs.h <<\EOF | ||
13252 | #define HAVE_TIME_IN_UTMP 1 | ||
13253 | EOF | ||
13254 | |||
13255 | fi | ||
13256 | else | ||
13257 | echo "$as_me:13257: result: no" >&5 | ||
13258 | echo "${ECHO_T}no" >&6 | ||
13259 | fi | ||
13260 | |||
13261 | # look for field 'ut_time' in header 'utmpx.h' | ||
13262 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13263 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13264 | echo "$as_me:13264: checking for ut_time field in utmpx.h" >&5 | ||
13265 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
13266 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13268 | else | ||
13269 | |||
13270 | cat >conftest.$ac_ext <<_ACEOF | ||
13271 | #line 13271 "configure" | ||
13272 | #include "confdefs.h" | ||
13273 | #include <utmpx.h> | ||
13274 | |||
13275 | _ACEOF | ||
13276 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13277 | egrep "ut_time" >/dev/null 2>&1; then | ||
13278 | eval "$ossh_varname=yes" | ||
13279 | else | ||
13280 | eval "$ossh_varname=no" | ||
13281 | fi | ||
13282 | rm -f conftest* | ||
13283 | |||
13284 | fi | ||
13285 | |||
13286 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13287 | if test -n "`echo $ossh_varname`"; then | ||
13288 | echo "$as_me:13288: result: $ossh_result" >&5 | ||
13289 | echo "${ECHO_T}$ossh_result" >&6 | ||
13290 | if test "x$ossh_result" = "xyes"; then | ||
13291 | cat >>confdefs.h <<\EOF | ||
13292 | #define HAVE_TIME_IN_UTMPX 1 | ||
13293 | EOF | ||
13294 | |||
13295 | fi | ||
13296 | else | ||
13297 | echo "$as_me:13297: result: no" >&5 | ||
13298 | echo "${ECHO_T}no" >&6 | ||
13299 | fi | ||
13300 | |||
13301 | # look for field 'ut_tv' in header 'utmpx.h' | ||
13302 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13303 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13304 | echo "$as_me:13304: checking for ut_tv field in utmpx.h" >&5 | ||
13305 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
13306 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13308 | else | ||
13309 | |||
13310 | cat >conftest.$ac_ext <<_ACEOF | ||
13311 | #line 13311 "configure" | ||
13312 | #include "confdefs.h" | ||
13313 | #include <utmpx.h> | ||
13314 | |||
13315 | _ACEOF | ||
13316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13317 | egrep "ut_tv" >/dev/null 2>&1; then | ||
13318 | eval "$ossh_varname=yes" | ||
13319 | else | ||
13320 | eval "$ossh_varname=no" | ||
13321 | fi | ||
13322 | rm -f conftest* | ||
13323 | |||
13324 | fi | ||
13325 | |||
13326 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13327 | if test -n "`echo $ossh_varname`"; then | ||
13328 | echo "$as_me:13328: result: $ossh_result" >&5 | ||
13329 | echo "${ECHO_T}$ossh_result" >&6 | ||
13330 | if test "x$ossh_result" = "xyes"; then | ||
13331 | cat >>confdefs.h <<\EOF | ||
13332 | #define HAVE_TV_IN_UTMPX 1 | ||
13333 | EOF | ||
13334 | |||
13335 | fi | ||
13336 | else | ||
13337 | echo "$as_me:13337: result: no" >&5 | ||
13338 | echo "${ECHO_T}no" >&6 | ||
13339 | fi | ||
13340 | |||
13341 | echo "$as_me:13341: checking for struct stat.st_blksize" >&5 | ||
13342 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
13343 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
13344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13345 | else | ||
13346 | cat >conftest.$ac_ext <<_ACEOF | ||
13347 | #line 13347 "configure" | ||
13348 | #include "confdefs.h" | ||
13349 | $ac_includes_default | ||
13350 | int | ||
13351 | main () | ||
13352 | { | ||
13353 | static struct stat ac_aggr; | ||
13354 | if (ac_aggr.st_blksize) | ||
13355 | return 0; | ||
13356 | ; | ||
13357 | return 0; | ||
13358 | } | ||
13359 | _ACEOF | ||
13360 | rm -f conftest.$ac_objext | ||
13361 | if { (eval echo "$as_me:13361: \"$ac_compile\"") >&5 | ||
13362 | (eval $ac_compile) 2>&5 | ||
13363 | ac_status=$? | ||
13364 | echo "$as_me:13364: \$? = $ac_status" >&5 | ||
13365 | (exit $ac_status); } && | ||
13366 | { ac_try='test -s conftest.$ac_objext' | ||
13367 | { (eval echo "$as_me:13367: \"$ac_try\"") >&5 | ||
13368 | (eval $ac_try) 2>&5 | ||
13369 | ac_status=$? | ||
13370 | echo "$as_me:13370: \$? = $ac_status" >&5 | ||
13371 | (exit $ac_status); }; }; then | ||
13372 | ac_cv_member_struct_stat_st_blksize=yes | ||
13373 | else | ||
13374 | echo "$as_me: failed program was:" >&5 | ||
13375 | cat conftest.$ac_ext >&5 | ||
13376 | ac_cv_member_struct_stat_st_blksize=no | ||
13377 | fi | ||
13378 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13379 | fi | ||
13380 | echo "$as_me:13380: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
13381 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
13382 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
13383 | |||
13384 | cat >>confdefs.h <<EOF | ||
13385 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
13386 | EOF | ||
13387 | |||
13388 | fi | ||
13389 | |||
13390 | echo "$as_me:13390: checking for ss_family field in struct sockaddr_storage" >&5 | ||
13391 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
13392 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
13393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13394 | else | ||
13395 | |||
13396 | cat >conftest.$ac_ext <<_ACEOF | ||
13397 | #line 13397 "configure" | ||
13398 | #include "confdefs.h" | ||
13399 | |||
13400 | #include <sys/types.h> | ||
13401 | #include <sys/socket.h> | ||
13402 | |||
13403 | int | ||
13404 | main () | ||
13405 | { | ||
13406 | struct sockaddr_storage s; s.ss_family = 1; | ||
13407 | ; | ||
13408 | return 0; | ||
13409 | } | ||
13410 | _ACEOF | ||
13411 | rm -f conftest.$ac_objext | ||
13412 | if { (eval echo "$as_me:13412: \"$ac_compile\"") >&5 | ||
13413 | (eval $ac_compile) 2>&5 | ||
13414 | ac_status=$? | ||
13415 | echo "$as_me:13415: \$? = $ac_status" >&5 | ||
13416 | (exit $ac_status); } && | ||
13417 | { ac_try='test -s conftest.$ac_objext' | ||
13418 | { (eval echo "$as_me:13418: \"$ac_try\"") >&5 | ||
13419 | (eval $ac_try) 2>&5 | ||
13420 | ac_status=$? | ||
13421 | echo "$as_me:13421: \$? = $ac_status" >&5 | ||
13422 | (exit $ac_status); }; }; then | ||
13423 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
13424 | else | ||
13425 | echo "$as_me: failed program was:" >&5 | ||
13426 | cat conftest.$ac_ext >&5 | ||
13427 | ac_cv_have_ss_family_in_struct_ss="no" | ||
13428 | fi | ||
13429 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13430 | |||
13431 | fi | ||
13432 | echo "$as_me:13432: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
13433 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
13434 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
13435 | cat >>confdefs.h <<\EOF | ||
13436 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
13437 | EOF | ||
13438 | |||
13439 | fi | ||
13440 | |||
13441 | echo "$as_me:13441: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
13442 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
13443 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
13444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13445 | else | ||
13446 | |||
13447 | cat >conftest.$ac_ext <<_ACEOF | ||
13448 | #line 13448 "configure" | ||
13449 | #include "confdefs.h" | ||
13450 | |||
13451 | #include <sys/types.h> | ||
13452 | #include <sys/socket.h> | ||
13453 | |||
13454 | int | ||
13455 | main () | ||
13456 | { | ||
13457 | struct sockaddr_storage s; s.__ss_family = 1; | ||
13458 | ; | ||
13459 | return 0; | ||
13460 | } | ||
13461 | _ACEOF | ||
13462 | rm -f conftest.$ac_objext | ||
13463 | if { (eval echo "$as_me:13463: \"$ac_compile\"") >&5 | ||
13464 | (eval $ac_compile) 2>&5 | ||
13465 | ac_status=$? | ||
13466 | echo "$as_me:13466: \$? = $ac_status" >&5 | ||
13467 | (exit $ac_status); } && | ||
13468 | { ac_try='test -s conftest.$ac_objext' | ||
13469 | { (eval echo "$as_me:13469: \"$ac_try\"") >&5 | ||
13470 | (eval $ac_try) 2>&5 | ||
13471 | ac_status=$? | ||
13472 | echo "$as_me:13472: \$? = $ac_status" >&5 | ||
13473 | (exit $ac_status); }; }; then | ||
13474 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
13475 | else | ||
13476 | echo "$as_me: failed program was:" >&5 | ||
13477 | cat conftest.$ac_ext >&5 | ||
13478 | ac_cv_have___ss_family_in_struct_ss="no" | ||
13479 | |||
13480 | fi | ||
13481 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13482 | |||
13483 | fi | ||
13484 | echo "$as_me:13484: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
13485 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
13486 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
13487 | cat >>confdefs.h <<\EOF | ||
13488 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
13489 | EOF | ||
13490 | |||
13491 | fi | ||
13492 | |||
13493 | echo "$as_me:13493: checking for pw_class field in struct passwd" >&5 | ||
13494 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
13495 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
13496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13497 | else | ||
13498 | |||
13499 | cat >conftest.$ac_ext <<_ACEOF | ||
13500 | #line 13500 "configure" | ||
13501 | #include "confdefs.h" | ||
13502 | |||
13503 | #include <pwd.h> | ||
13504 | |||
13505 | int | ||
13506 | main () | ||
13507 | { | ||
13508 | struct passwd p; p.pw_class = 0; | ||
13509 | ; | ||
13510 | return 0; | ||
13511 | } | ||
13512 | _ACEOF | ||
13513 | rm -f conftest.$ac_objext | ||
13514 | if { (eval echo "$as_me:13514: \"$ac_compile\"") >&5 | ||
13515 | (eval $ac_compile) 2>&5 | ||
13516 | ac_status=$? | ||
13517 | echo "$as_me:13517: \$? = $ac_status" >&5 | ||
13518 | (exit $ac_status); } && | ||
13519 | { ac_try='test -s conftest.$ac_objext' | ||
13520 | { (eval echo "$as_me:13520: \"$ac_try\"") >&5 | ||
13521 | (eval $ac_try) 2>&5 | ||
13522 | ac_status=$? | ||
13523 | echo "$as_me:13523: \$? = $ac_status" >&5 | ||
13524 | (exit $ac_status); }; }; then | ||
13525 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
13526 | else | ||
13527 | echo "$as_me: failed program was:" >&5 | ||
13528 | cat conftest.$ac_ext >&5 | ||
13529 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
13530 | |||
13531 | fi | ||
13532 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13533 | |||
13534 | fi | ||
13535 | echo "$as_me:13535: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
13536 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
13537 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
13538 | cat >>confdefs.h <<\EOF | ||
13539 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
13540 | EOF | ||
13541 | |||
13542 | fi | ||
13543 | |||
13544 | echo "$as_me:13544: checking for pw_expire field in struct passwd" >&5 | ||
13545 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
13546 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
13547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13548 | else | ||
13549 | |||
13550 | cat >conftest.$ac_ext <<_ACEOF | ||
13551 | #line 13551 "configure" | ||
13552 | #include "confdefs.h" | ||
13553 | |||
13554 | #include <pwd.h> | ||
13555 | |||
13556 | int | ||
13557 | main () | ||
13558 | { | ||
13559 | struct passwd p; p.pw_expire = 0; | ||
13560 | ; | ||
13561 | return 0; | ||
13562 | } | ||
13563 | _ACEOF | ||
13564 | rm -f conftest.$ac_objext | ||
13565 | if { (eval echo "$as_me:13565: \"$ac_compile\"") >&5 | ||
13566 | (eval $ac_compile) 2>&5 | ||
13567 | ac_status=$? | ||
13568 | echo "$as_me:13568: \$? = $ac_status" >&5 | ||
13569 | (exit $ac_status); } && | ||
13570 | { ac_try='test -s conftest.$ac_objext' | ||
13571 | { (eval echo "$as_me:13571: \"$ac_try\"") >&5 | ||
13572 | (eval $ac_try) 2>&5 | ||
13573 | ac_status=$? | ||
13574 | echo "$as_me:13574: \$? = $ac_status" >&5 | ||
13575 | (exit $ac_status); }; }; then | ||
13576 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
13577 | else | ||
13578 | echo "$as_me: failed program was:" >&5 | ||
13579 | cat conftest.$ac_ext >&5 | ||
13580 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
13581 | |||
13582 | fi | ||
13583 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13584 | |||
13585 | fi | ||
13586 | echo "$as_me:13586: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
13587 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
13588 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
13589 | cat >>confdefs.h <<\EOF | ||
13590 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
13591 | EOF | ||
13592 | |||
13593 | fi | ||
13594 | |||
13595 | echo "$as_me:13595: checking for pw_change field in struct passwd" >&5 | ||
13596 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
13597 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
13598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13599 | else | ||
13600 | |||
13601 | cat >conftest.$ac_ext <<_ACEOF | ||
13602 | #line 13602 "configure" | ||
13603 | #include "confdefs.h" | ||
13604 | |||
13605 | #include <pwd.h> | ||
13606 | |||
13607 | int | ||
13608 | main () | ||
13609 | { | ||
13610 | struct passwd p; p.pw_change = 0; | ||
13611 | ; | ||
13612 | return 0; | ||
13613 | } | ||
13614 | _ACEOF | ||
13615 | rm -f conftest.$ac_objext | ||
13616 | if { (eval echo "$as_me:13616: \"$ac_compile\"") >&5 | ||
13617 | (eval $ac_compile) 2>&5 | ||
13618 | ac_status=$? | ||
13619 | echo "$as_me:13619: \$? = $ac_status" >&5 | ||
13620 | (exit $ac_status); } && | ||
13621 | { ac_try='test -s conftest.$ac_objext' | ||
13622 | { (eval echo "$as_me:13622: \"$ac_try\"") >&5 | ||
13623 | (eval $ac_try) 2>&5 | ||
13624 | ac_status=$? | ||
13625 | echo "$as_me:13625: \$? = $ac_status" >&5 | ||
13626 | (exit $ac_status); }; }; then | ||
13627 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
13628 | else | ||
13629 | echo "$as_me: failed program was:" >&5 | ||
13630 | cat conftest.$ac_ext >&5 | ||
13631 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
13632 | |||
13633 | fi | ||
13634 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13635 | |||
13636 | fi | ||
13637 | echo "$as_me:13637: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
13638 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
13639 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
13640 | cat >>confdefs.h <<\EOF | ||
13641 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
13642 | EOF | ||
13643 | |||
13644 | fi | ||
13645 | |||
13646 | echo "$as_me:13646: checking for msg_accrights field in struct msghdr" >&5 | ||
13647 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
13648 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
13649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13650 | else | ||
13651 | |||
13652 | if test "$cross_compiling" = yes; then | ||
13653 | { { echo "$as_me:13653: error: cannot run test program while cross compiling" >&5 | ||
13654 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
13655 | { (exit 1); exit 1; }; } | ||
13656 | else | ||
13657 | cat >conftest.$ac_ext <<_ACEOF | ||
13658 | #line 13658 "configure" | ||
13659 | #include "confdefs.h" | ||
13660 | |||
13661 | #include <sys/types.h> | ||
13662 | #include <sys/socket.h> | ||
13663 | #include <sys/uio.h> | ||
13664 | int main() { | ||
13665 | #ifdef msg_accrights | ||
13666 | exit(1); | ||
13667 | #endif | ||
13668 | struct msghdr m; | ||
13669 | m.msg_accrights = 0; | ||
13670 | exit(0); | ||
13671 | } | ||
13672 | |||
13673 | _ACEOF | ||
13674 | rm -f conftest$ac_exeext | ||
13675 | if { (eval echo "$as_me:13675: \"$ac_link\"") >&5 | ||
13676 | (eval $ac_link) 2>&5 | ||
13677 | ac_status=$? | ||
13678 | echo "$as_me:13678: \$? = $ac_status" >&5 | ||
13679 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13680 | { (eval echo "$as_me:13680: \"$ac_try\"") >&5 | ||
13681 | (eval $ac_try) 2>&5 | ||
13682 | ac_status=$? | ||
13683 | echo "$as_me:13683: \$? = $ac_status" >&5 | ||
13684 | (exit $ac_status); }; }; then | ||
13685 | ac_cv_have_accrights_in_msghdr="yes" | ||
13686 | else | ||
13687 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13688 | echo "$as_me: failed program was:" >&5 | ||
13689 | cat conftest.$ac_ext >&5 | ||
13690 | ac_cv_have_accrights_in_msghdr="no" | ||
13691 | |||
13692 | fi | ||
13693 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13694 | fi | ||
13695 | |||
13696 | fi | ||
13697 | echo "$as_me:13697: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
13698 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
13699 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
13700 | cat >>confdefs.h <<\EOF | ||
13701 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
13702 | EOF | ||
13703 | |||
13704 | fi | ||
13705 | |||
13706 | echo "$as_me:13706: checking for msg_control field in struct msghdr" >&5 | ||
13707 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
13708 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
13709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13710 | else | ||
13711 | |||
13712 | if test "$cross_compiling" = yes; then | ||
13713 | { { echo "$as_me:13713: error: cannot run test program while cross compiling" >&5 | ||
13714 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
13715 | { (exit 1); exit 1; }; } | ||
13716 | else | ||
13717 | cat >conftest.$ac_ext <<_ACEOF | ||
13718 | #line 13718 "configure" | ||
13719 | #include "confdefs.h" | ||
13720 | |||
13721 | #include <sys/types.h> | ||
13722 | #include <sys/socket.h> | ||
13723 | #include <sys/uio.h> | ||
13724 | int main() { | ||
13725 | #ifdef msg_control | ||
13726 | exit(1); | ||
13727 | #endif | ||
13728 | struct msghdr m; | ||
13729 | m.msg_control = 0; | ||
13730 | exit(0); | ||
13731 | } | ||
13732 | |||
13733 | _ACEOF | ||
13734 | rm -f conftest$ac_exeext | ||
13735 | if { (eval echo "$as_me:13735: \"$ac_link\"") >&5 | ||
13736 | (eval $ac_link) 2>&5 | ||
13737 | ac_status=$? | ||
13738 | echo "$as_me:13738: \$? = $ac_status" >&5 | ||
13739 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13740 | { (eval echo "$as_me:13740: \"$ac_try\"") >&5 | ||
13741 | (eval $ac_try) 2>&5 | ||
13742 | ac_status=$? | ||
13743 | echo "$as_me:13743: \$? = $ac_status" >&5 | ||
13744 | (exit $ac_status); }; }; then | ||
13745 | ac_cv_have_control_in_msghdr="yes" | ||
13746 | else | ||
13747 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13748 | echo "$as_me: failed program was:" >&5 | ||
13749 | cat conftest.$ac_ext >&5 | ||
13750 | ac_cv_have_control_in_msghdr="no" | ||
13751 | |||
13752 | fi | ||
13753 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13754 | fi | ||
13755 | |||
13756 | fi | ||
13757 | echo "$as_me:13757: result: $ac_cv_have_control_in_msghdr" >&5 | ||
13758 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
13759 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
13760 | cat >>confdefs.h <<\EOF | ||
13761 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
13762 | EOF | ||
13763 | |||
13764 | fi | ||
13765 | |||
13766 | echo "$as_me:13766: checking if libc defines __progname" >&5 | ||
13767 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
13768 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
13769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13770 | else | ||
13771 | |||
13772 | cat >conftest.$ac_ext <<_ACEOF | ||
13773 | #line 13773 "configure" | ||
13774 | #include "confdefs.h" | ||
13775 | |||
13776 | int | ||
13777 | main () | ||
13778 | { | ||
13779 | extern char *__progname; printf("%s", __progname); | ||
13780 | ; | ||
13781 | return 0; | ||
13782 | } | ||
13783 | _ACEOF | ||
13784 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13785 | if { (eval echo "$as_me:13785: \"$ac_link\"") >&5 | ||
13786 | (eval $ac_link) 2>&5 | ||
13787 | ac_status=$? | ||
13788 | echo "$as_me:13788: \$? = $ac_status" >&5 | ||
13789 | (exit $ac_status); } && | ||
13790 | { ac_try='test -s conftest$ac_exeext' | ||
13791 | { (eval echo "$as_me:13791: \"$ac_try\"") >&5 | ||
13792 | (eval $ac_try) 2>&5 | ||
13793 | ac_status=$? | ||
13794 | echo "$as_me:13794: \$? = $ac_status" >&5 | ||
13795 | (exit $ac_status); }; }; then | ||
13796 | ac_cv_libc_defines___progname="yes" | ||
13797 | else | ||
13798 | echo "$as_me: failed program was:" >&5 | ||
13799 | cat conftest.$ac_ext >&5 | ||
13800 | ac_cv_libc_defines___progname="no" | ||
13801 | |||
13802 | fi | ||
13803 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
13804 | |||
13805 | fi | ||
13806 | echo "$as_me:13806: result: $ac_cv_libc_defines___progname" >&5 | ||
13807 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
13808 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
13809 | cat >>confdefs.h <<\EOF | ||
13810 | #define HAVE___PROGNAME 1 | ||
13811 | EOF | ||
13812 | |||
13813 | fi | ||
13814 | |||
13815 | echo "$as_me:13815: checking whether $CC implements __FUNCTION__" >&5 | ||
13816 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
13817 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
13818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13819 | else | ||
13820 | |||
13821 | cat >conftest.$ac_ext <<_ACEOF | ||
13822 | #line 13822 "configure" | ||
13823 | #include "confdefs.h" | ||
13824 | |||
13825 | #include <stdio.h> | ||
13826 | |||
13827 | int | ||
13828 | main () | ||
13829 | { | ||
13830 | printf("%s", __FUNCTION__); | ||
13831 | ; | ||
13832 | return 0; | ||
13833 | } | ||
13834 | _ACEOF | ||
13835 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13836 | if { (eval echo "$as_me:13836: \"$ac_link\"") >&5 | ||
13837 | (eval $ac_link) 2>&5 | ||
13838 | ac_status=$? | ||
13839 | echo "$as_me:13839: \$? = $ac_status" >&5 | ||
13840 | (exit $ac_status); } && | ||
13841 | { ac_try='test -s conftest$ac_exeext' | ||
13842 | { (eval echo "$as_me:13842: \"$ac_try\"") >&5 | ||
13843 | (eval $ac_try) 2>&5 | ||
13844 | ac_status=$? | ||
13845 | echo "$as_me:13845: \$? = $ac_status" >&5 | ||
13846 | (exit $ac_status); }; }; then | ||
13847 | ac_cv_cc_implements___FUNCTION__="yes" | ||
13848 | else | ||
13849 | echo "$as_me: failed program was:" >&5 | ||
13850 | cat conftest.$ac_ext >&5 | ||
13851 | ac_cv_cc_implements___FUNCTION__="no" | ||
13852 | |||
13853 | fi | ||
13854 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
13855 | |||
13856 | fi | ||
13857 | echo "$as_me:13857: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
13858 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
13859 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
13860 | cat >>confdefs.h <<\EOF | ||
13861 | #define HAVE___FUNCTION__ 1 | ||
13862 | EOF | ||
13863 | |||
13864 | fi | ||
13865 | |||
13866 | echo "$as_me:13866: checking whether $CC implements __func__" >&5 | ||
13867 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
13868 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
13869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13870 | else | ||
13871 | |||
13872 | cat >conftest.$ac_ext <<_ACEOF | ||
13873 | #line 13873 "configure" | ||
13874 | #include "confdefs.h" | ||
13875 | |||
13876 | #include <stdio.h> | ||
13877 | |||
13878 | int | ||
13879 | main () | ||
13880 | { | ||
13881 | printf("%s", __func__); | ||
13882 | ; | ||
13883 | return 0; | ||
13884 | } | ||
13885 | _ACEOF | ||
13886 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13887 | if { (eval echo "$as_me:13887: \"$ac_link\"") >&5 | ||
13888 | (eval $ac_link) 2>&5 | ||
13889 | ac_status=$? | ||
13890 | echo "$as_me:13890: \$? = $ac_status" >&5 | ||
13891 | (exit $ac_status); } && | ||
13892 | { ac_try='test -s conftest$ac_exeext' | ||
13893 | { (eval echo "$as_me:13893: \"$ac_try\"") >&5 | ||
13894 | (eval $ac_try) 2>&5 | ||
13895 | ac_status=$? | ||
13896 | echo "$as_me:13896: \$? = $ac_status" >&5 | ||
13897 | (exit $ac_status); }; }; then | ||
13898 | ac_cv_cc_implements___func__="yes" | ||
13899 | else | ||
13900 | echo "$as_me: failed program was:" >&5 | ||
13901 | cat conftest.$ac_ext >&5 | ||
13902 | ac_cv_cc_implements___func__="no" | ||
13903 | |||
13904 | fi | ||
13905 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
13906 | |||
13907 | fi | ||
13908 | echo "$as_me:13908: result: $ac_cv_cc_implements___func__" >&5 | ||
13909 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
13910 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
13911 | cat >>confdefs.h <<\EOF | ||
13912 | #define HAVE___func__ 1 | ||
13913 | EOF | ||
13914 | |||
13915 | fi | ||
13916 | |||
13917 | echo "$as_me:13917: checking whether getopt has optreset support" >&5 | ||
13918 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
13919 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
13920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13921 | else | ||
13922 | |||
13923 | cat >conftest.$ac_ext <<_ACEOF | ||
13924 | #line 13924 "configure" | ||
13925 | #include "confdefs.h" | ||
13926 | |||
13927 | #include <getopt.h> | ||
13928 | |||
13929 | int | ||
13930 | main () | ||
13931 | { | ||
13932 | extern int optreset; optreset = 0; | ||
13933 | ; | ||
13934 | return 0; | ||
13935 | } | ||
13936 | _ACEOF | ||
13937 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13938 | if { (eval echo "$as_me:13938: \"$ac_link\"") >&5 | ||
13939 | (eval $ac_link) 2>&5 | ||
13940 | ac_status=$? | ||
13941 | echo "$as_me:13941: \$? = $ac_status" >&5 | ||
13942 | (exit $ac_status); } && | ||
13943 | { ac_try='test -s conftest$ac_exeext' | ||
13944 | { (eval echo "$as_me:13944: \"$ac_try\"") >&5 | ||
13945 | (eval $ac_try) 2>&5 | ||
13946 | ac_status=$? | ||
13947 | echo "$as_me:13947: \$? = $ac_status" >&5 | ||
13948 | (exit $ac_status); }; }; then | ||
13949 | ac_cv_have_getopt_optreset="yes" | ||
13950 | else | ||
13951 | echo "$as_me: failed program was:" >&5 | ||
13952 | cat conftest.$ac_ext >&5 | ||
13953 | ac_cv_have_getopt_optreset="no" | ||
13954 | |||
13955 | fi | ||
13956 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
13957 | |||
13958 | fi | ||
13959 | echo "$as_me:13959: result: $ac_cv_have_getopt_optreset" >&5 | ||
13960 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
13961 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
13962 | cat >>confdefs.h <<\EOF | ||
13963 | #define HAVE_GETOPT_OPTRESET 1 | ||
13964 | EOF | ||
13965 | |||
13966 | fi | ||
13967 | |||
13968 | echo "$as_me:13968: checking if libc defines sys_errlist" >&5 | ||
13969 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
13970 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
13971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13972 | else | ||
13973 | |||
13974 | cat >conftest.$ac_ext <<_ACEOF | ||
13975 | #line 13975 "configure" | ||
13976 | #include "confdefs.h" | ||
13977 | |||
13978 | int | ||
13979 | main () | ||
13980 | { | ||
13981 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
13982 | ; | ||
13983 | return 0; | ||
13984 | } | ||
13985 | _ACEOF | ||
13986 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13987 | if { (eval echo "$as_me:13987: \"$ac_link\"") >&5 | ||
13988 | (eval $ac_link) 2>&5 | ||
13989 | ac_status=$? | ||
13990 | echo "$as_me:13990: \$? = $ac_status" >&5 | ||
13991 | (exit $ac_status); } && | ||
13992 | { ac_try='test -s conftest$ac_exeext' | ||
13993 | { (eval echo "$as_me:13993: \"$ac_try\"") >&5 | ||
13994 | (eval $ac_try) 2>&5 | ||
13995 | ac_status=$? | ||
13996 | echo "$as_me:13996: \$? = $ac_status" >&5 | ||
13997 | (exit $ac_status); }; }; then | ||
13998 | ac_cv_libc_defines_sys_errlist="yes" | ||
13999 | else | ||
14000 | echo "$as_me: failed program was:" >&5 | ||
14001 | cat conftest.$ac_ext >&5 | ||
14002 | ac_cv_libc_defines_sys_errlist="no" | ||
14003 | |||
14004 | fi | ||
14005 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14006 | |||
14007 | fi | ||
14008 | echo "$as_me:14008: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
14009 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
14010 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
14011 | cat >>confdefs.h <<\EOF | ||
14012 | #define HAVE_SYS_ERRLIST 1 | ||
14013 | EOF | ||
14014 | |||
14015 | fi | ||
14016 | |||
14017 | echo "$as_me:14017: checking if libc defines sys_nerr" >&5 | ||
14018 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
14019 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
14020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14021 | else | ||
14022 | |||
14023 | cat >conftest.$ac_ext <<_ACEOF | ||
14024 | #line 14024 "configure" | ||
14025 | #include "confdefs.h" | ||
14026 | |||
14027 | int | ||
14028 | main () | ||
14029 | { | ||
14030 | extern int sys_nerr; printf("%i", sys_nerr); | ||
14031 | ; | ||
14032 | return 0; | ||
14033 | } | ||
14034 | _ACEOF | ||
14035 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14036 | if { (eval echo "$as_me:14036: \"$ac_link\"") >&5 | ||
14037 | (eval $ac_link) 2>&5 | ||
14038 | ac_status=$? | ||
14039 | echo "$as_me:14039: \$? = $ac_status" >&5 | ||
14040 | (exit $ac_status); } && | ||
14041 | { ac_try='test -s conftest$ac_exeext' | ||
14042 | { (eval echo "$as_me:14042: \"$ac_try\"") >&5 | ||
14043 | (eval $ac_try) 2>&5 | ||
14044 | ac_status=$? | ||
14045 | echo "$as_me:14045: \$? = $ac_status" >&5 | ||
14046 | (exit $ac_status); }; }; then | ||
14047 | ac_cv_libc_defines_sys_nerr="yes" | ||
14048 | else | ||
14049 | echo "$as_me: failed program was:" >&5 | ||
14050 | cat conftest.$ac_ext >&5 | ||
14051 | ac_cv_libc_defines_sys_nerr="no" | ||
14052 | |||
14053 | fi | ||
14054 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14055 | |||
14056 | fi | ||
14057 | echo "$as_me:14057: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
14058 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
14059 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
14060 | cat >>confdefs.h <<\EOF | ||
14061 | #define HAVE_SYS_NERR 1 | ||
14062 | EOF | ||
14063 | |||
14064 | fi | ||
14065 | |||
14066 | SCARD_MSG="no" | ||
14067 | # Check whether user wants sectok support | ||
14068 | |||
14069 | # Check whether --with-sectok or --without-sectok was given. | ||
14070 | if test "${with_sectok+set}" = set; then | ||
14071 | withval="$with_sectok" | ||
14072 | |||
14073 | if test "x$withval" != "xno" ; then | ||
14074 | if test "x$withval" != "xyes" ; then | ||
14075 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
14076 | LDFLAGS="$LDFLAGS -L${withval}" | ||
14077 | if test ! -z "$need_dash_r" ; then | ||
14078 | LDFLAGS="$LDFLAGS -R${withval}" | ||
14079 | fi | ||
14080 | if test ! -z "$blibpath" ; then | ||
14081 | blibpath="$blibpath:${withval}" | ||
14082 | fi | ||
14083 | fi | ||
14084 | |||
14085 | for ac_header in sectok.h | ||
14086 | do | ||
14087 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
14088 | echo "$as_me:14088: checking for $ac_header" >&5 | ||
14089 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
14090 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14092 | else | ||
14093 | cat >conftest.$ac_ext <<_ACEOF | ||
14094 | #line 14094 "configure" | ||
14095 | #include "confdefs.h" | ||
14096 | #include <$ac_header> | ||
14097 | _ACEOF | ||
14098 | if { (eval echo "$as_me:14098: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
14099 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
14100 | ac_status=$? | ||
14101 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
14102 | rm -f conftest.er1 | ||
14103 | cat conftest.err >&5 | ||
14104 | echo "$as_me:14104: \$? = $ac_status" >&5 | ||
14105 | (exit $ac_status); } >/dev/null; then | ||
14106 | if test -s conftest.err; then | ||
14107 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
14108 | else | ||
14109 | ac_cpp_err= | ||
14110 | fi | ||
14111 | else | ||
14112 | ac_cpp_err=yes | ||
14113 | fi | ||
14114 | if test -z "$ac_cpp_err"; then | ||
14115 | eval "$as_ac_Header=yes" | ||
14116 | else | ||
14117 | echo "$as_me: failed program was:" >&5 | ||
14118 | cat conftest.$ac_ext >&5 | ||
14119 | eval "$as_ac_Header=no" | ||
14120 | fi | ||
14121 | rm -f conftest.err conftest.$ac_ext | ||
14122 | fi | ||
14123 | echo "$as_me:14123: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
14124 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
14125 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
14126 | cat >>confdefs.h <<EOF | ||
14127 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
14128 | EOF | ||
14129 | |||
14130 | fi | ||
14131 | done | ||
14132 | |||
14133 | if test "$ac_cv_header_sectok_h" != yes; then | ||
14134 | { { echo "$as_me:14134: error: Can't find sectok.h" >&5 | ||
14135 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
14136 | { (exit 1); exit 1; }; } | ||
14137 | fi | ||
14138 | |||
14139 | echo "$as_me:14139: checking for sectok_open in -lsectok" >&5 | ||
14140 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
14141 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
14142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14143 | else | ||
14144 | ac_check_lib_save_LIBS=$LIBS | ||
14145 | LIBS="-lsectok $LIBS" | ||
14146 | cat >conftest.$ac_ext <<_ACEOF | ||
14147 | #line 14147 "configure" | ||
14148 | #include "confdefs.h" | ||
14149 | |||
14150 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14151 | #ifdef __cplusplus | ||
14152 | extern "C" | ||
14153 | #endif | ||
14154 | /* We use char because int might match the return type of a gcc2 | ||
14155 | builtin and then its argument prototype would still apply. */ | ||
14156 | char sectok_open (); | ||
14157 | int | ||
14158 | main () | ||
14159 | { | ||
14160 | sectok_open (); | ||
14161 | ; | ||
14162 | return 0; | ||
14163 | } | ||
14164 | _ACEOF | ||
14165 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14166 | if { (eval echo "$as_me:14166: \"$ac_link\"") >&5 | ||
14167 | (eval $ac_link) 2>&5 | ||
14168 | ac_status=$? | ||
14169 | echo "$as_me:14169: \$? = $ac_status" >&5 | ||
14170 | (exit $ac_status); } && | ||
14171 | { ac_try='test -s conftest$ac_exeext' | ||
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_lib_sectok_sectok_open=yes | ||
14178 | else | ||
14179 | echo "$as_me: failed program was:" >&5 | ||
14180 | cat conftest.$ac_ext >&5 | ||
14181 | ac_cv_lib_sectok_sectok_open=no | ||
14182 | fi | ||
14183 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14184 | LIBS=$ac_check_lib_save_LIBS | ||
14185 | fi | ||
14186 | echo "$as_me:14186: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
14187 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
14188 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
14189 | cat >>confdefs.h <<EOF | ||
14190 | #define HAVE_LIBSECTOK 1 | ||
14191 | EOF | ||
14192 | |||
14193 | LIBS="-lsectok $LIBS" | ||
14194 | |||
14195 | fi | ||
14196 | |||
14197 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
14198 | { { echo "$as_me:14198: error: Can't find libsectok" >&5 | ||
14199 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
14200 | { (exit 1); exit 1; }; } | ||
14201 | fi | ||
14202 | cat >>confdefs.h <<\EOF | ||
14203 | #define SMARTCARD 1 | ||
14204 | EOF | ||
14205 | |||
14206 | cat >>confdefs.h <<\EOF | ||
14207 | #define USE_SECTOK 1 | ||
14208 | EOF | ||
14209 | |||
14210 | SCARD_MSG="yes, using sectok" | ||
14211 | fi | ||
14212 | |||
14213 | fi; | ||
14214 | |||
14215 | # Check whether user wants OpenSC support | ||
14216 | |||
14217 | # Check whether --with-opensc or --without-opensc was given. | ||
14218 | if test "${with_opensc+set}" = set; then | ||
14219 | withval="$with_opensc" | ||
14220 | opensc_config_prefix="$withval" | ||
14221 | else | ||
14222 | opensc_config_prefix="" | ||
14223 | fi; | ||
14224 | if test x$opensc_config_prefix != x ; then | ||
14225 | OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config | ||
14226 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
14227 | set dummy opensc-config; ac_word=$2 | ||
14228 | echo "$as_me:14228: checking for $ac_word" >&5 | ||
14229 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14230 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
14231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14232 | else | ||
14233 | case $OPENSC_CONFIG in | ||
14234 | [\\/]* | ?:[\\/]*) | ||
14235 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
14236 | ;; | ||
14237 | *) | ||
14238 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
14239 | ac_dummy="$PATH" | ||
14240 | for ac_dir in $ac_dummy; do | ||
14241 | IFS=$ac_save_IFS | ||
14242 | test -z "$ac_dir" && ac_dir=. | ||
14243 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
14244 | ac_cv_path_OPENSC_CONFIG="$ac_dir/$ac_word" | ||
14245 | echo "$as_me:14245: found $ac_dir/$ac_word" >&5 | ||
14246 | break | ||
14247 | fi | ||
14248 | done | ||
14249 | |||
14250 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
14251 | ;; | ||
14252 | esac | ||
14253 | fi | ||
14254 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
14255 | |||
14256 | if test -n "$OPENSC_CONFIG"; then | ||
14257 | echo "$as_me:14257: result: $OPENSC_CONFIG" >&5 | ||
14258 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
14259 | else | ||
14260 | echo "$as_me:14260: result: no" >&5 | ||
14261 | echo "${ECHO_T}no" >&6 | ||
14262 | fi | ||
14263 | |||
14264 | if test "$OPENSC_CONFIG" != "no"; then | ||
14265 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
14266 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
14267 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
14268 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
14269 | cat >>confdefs.h <<\EOF | ||
14270 | #define SMARTCARD 1 | ||
14271 | EOF | ||
14272 | |||
14273 | cat >>confdefs.h <<\EOF | ||
14274 | #define USE_OPENSC 1 | ||
14275 | EOF | ||
14276 | |||
14277 | SCARD_MSG="yes, using OpenSC" | ||
14278 | fi | ||
14279 | fi | ||
14280 | |||
14281 | # Check whether user wants DNS support | ||
14282 | DNS_MSG="no" | ||
14283 | |||
14284 | # Check whether --with-dns or --without-dns was given. | ||
14285 | if test "${with_dns+set}" = set; then | ||
14286 | withval="$with_dns" | ||
14287 | |||
14288 | if test "x$withval" != "xno" ; then | ||
14289 | DNS_MSG="yes" | ||
14290 | cat >>confdefs.h <<\EOF | ||
14291 | #define DNS 1 | ||
14292 | EOF | ||
14293 | |||
14294 | echo "$as_me:14294: checking for library containing getrrsetbyname" >&5 | ||
14295 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6 | ||
14296 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
14297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14298 | else | ||
14299 | ac_func_search_save_LIBS=$LIBS | ||
14300 | ac_cv_search_getrrsetbyname=no | ||
14301 | cat >conftest.$ac_ext <<_ACEOF | ||
14302 | #line 14302 "configure" | ||
14303 | #include "confdefs.h" | ||
14304 | |||
14305 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14306 | #ifdef __cplusplus | ||
14307 | extern "C" | ||
14308 | #endif | ||
14309 | /* We use char because int might match the return type of a gcc2 | ||
14310 | builtin and then its argument prototype would still apply. */ | ||
14311 | char getrrsetbyname (); | ||
14312 | int | ||
14313 | main () | ||
14314 | { | ||
14315 | getrrsetbyname (); | ||
14316 | ; | ||
14317 | return 0; | ||
14318 | } | ||
14319 | _ACEOF | ||
14320 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14321 | if { (eval echo "$as_me:14321: \"$ac_link\"") >&5 | ||
14322 | (eval $ac_link) 2>&5 | ||
14323 | ac_status=$? | ||
14324 | echo "$as_me:14324: \$? = $ac_status" >&5 | ||
14325 | (exit $ac_status); } && | ||
14326 | { ac_try='test -s conftest$ac_exeext' | ||
14327 | { (eval echo "$as_me:14327: \"$ac_try\"") >&5 | ||
14328 | (eval $ac_try) 2>&5 | ||
14329 | ac_status=$? | ||
14330 | echo "$as_me:14330: \$? = $ac_status" >&5 | ||
14331 | (exit $ac_status); }; }; then | ||
14332 | ac_cv_search_getrrsetbyname="none required" | ||
14333 | else | ||
14334 | echo "$as_me: failed program was:" >&5 | ||
14335 | cat conftest.$ac_ext >&5 | ||
14336 | fi | ||
14337 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14338 | if test "$ac_cv_search_getrrsetbyname" = no; then | ||
14339 | for ac_lib in resolv; do | ||
14340 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14341 | cat >conftest.$ac_ext <<_ACEOF | ||
14342 | #line 14342 "configure" | ||
14343 | #include "confdefs.h" | ||
14344 | |||
14345 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14346 | #ifdef __cplusplus | ||
14347 | extern "C" | ||
14348 | #endif | ||
14349 | /* We use char because int might match the return type of a gcc2 | ||
14350 | builtin and then its argument prototype would still apply. */ | ||
14351 | char getrrsetbyname (); | ||
14352 | int | ||
14353 | main () | ||
14354 | { | ||
14355 | getrrsetbyname (); | ||
14356 | ; | ||
14357 | return 0; | ||
14358 | } | ||
14359 | _ACEOF | ||
14360 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14361 | if { (eval echo "$as_me:14361: \"$ac_link\"") >&5 | ||
14362 | (eval $ac_link) 2>&5 | ||
14363 | ac_status=$? | ||
14364 | echo "$as_me:14364: \$? = $ac_status" >&5 | ||
14365 | (exit $ac_status); } && | ||
14366 | { ac_try='test -s conftest$ac_exeext' | ||
14367 | { (eval echo "$as_me:14367: \"$ac_try\"") >&5 | ||
14368 | (eval $ac_try) 2>&5 | ||
14369 | ac_status=$? | ||
14370 | echo "$as_me:14370: \$? = $ac_status" >&5 | ||
14371 | (exit $ac_status); }; }; then | ||
14372 | ac_cv_search_getrrsetbyname="-l$ac_lib" | ||
14373 | break | ||
14374 | else | ||
14375 | echo "$as_me: failed program was:" >&5 | ||
14376 | cat conftest.$ac_ext >&5 | ||
14377 | fi | ||
14378 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14379 | done | ||
14380 | fi | ||
14381 | LIBS=$ac_func_search_save_LIBS | ||
14382 | fi | ||
14383 | echo "$as_me:14383: result: $ac_cv_search_getrrsetbyname" >&5 | ||
14384 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6 | ||
14385 | if test "$ac_cv_search_getrrsetbyname" != no; then | ||
14386 | test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS" | ||
14387 | cat >>confdefs.h <<\EOF | ||
14388 | #define HAVE_GETRRSETBYNAME 1 | ||
14389 | EOF | ||
14390 | |||
14391 | else | ||
14392 | |||
14393 | # Needed by our getrrsetbyname() | ||
14394 | echo "$as_me:14394: checking for library containing res_query" >&5 | ||
14395 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6 | ||
14396 | if test "${ac_cv_search_res_query+set}" = set; then | ||
14397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14398 | else | ||
14399 | ac_func_search_save_LIBS=$LIBS | ||
14400 | ac_cv_search_res_query=no | ||
14401 | cat >conftest.$ac_ext <<_ACEOF | ||
14402 | #line 14402 "configure" | ||
14403 | #include "confdefs.h" | ||
14404 | |||
14405 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14406 | #ifdef __cplusplus | ||
14407 | extern "C" | ||
14408 | #endif | ||
14409 | /* We use char because int might match the return type of a gcc2 | ||
14410 | builtin and then its argument prototype would still apply. */ | ||
14411 | char res_query (); | ||
14412 | int | ||
14413 | main () | ||
14414 | { | ||
14415 | res_query (); | ||
14416 | ; | ||
14417 | return 0; | ||
14418 | } | ||
14419 | _ACEOF | ||
14420 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14421 | if { (eval echo "$as_me:14421: \"$ac_link\"") >&5 | ||
14422 | (eval $ac_link) 2>&5 | ||
14423 | ac_status=$? | ||
14424 | echo "$as_me:14424: \$? = $ac_status" >&5 | ||
14425 | (exit $ac_status); } && | ||
14426 | { ac_try='test -s conftest$ac_exeext' | ||
14427 | { (eval echo "$as_me:14427: \"$ac_try\"") >&5 | ||
14428 | (eval $ac_try) 2>&5 | ||
14429 | ac_status=$? | ||
14430 | echo "$as_me:14430: \$? = $ac_status" >&5 | ||
14431 | (exit $ac_status); }; }; then | ||
14432 | ac_cv_search_res_query="none required" | ||
14433 | else | ||
14434 | echo "$as_me: failed program was:" >&5 | ||
14435 | cat conftest.$ac_ext >&5 | ||
14436 | fi | ||
14437 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14438 | if test "$ac_cv_search_res_query" = no; then | ||
14439 | for ac_lib in resolv; do | ||
14440 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14441 | cat >conftest.$ac_ext <<_ACEOF | ||
14442 | #line 14442 "configure" | ||
14443 | #include "confdefs.h" | ||
14444 | |||
14445 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14446 | #ifdef __cplusplus | ||
14447 | extern "C" | ||
14448 | #endif | ||
14449 | /* We use char because int might match the return type of a gcc2 | ||
14450 | builtin and then its argument prototype would still apply. */ | ||
14451 | char res_query (); | ||
14452 | int | ||
14453 | main () | ||
14454 | { | ||
14455 | res_query (); | ||
14456 | ; | ||
14457 | return 0; | ||
14458 | } | ||
14459 | _ACEOF | ||
14460 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14461 | if { (eval echo "$as_me:14461: \"$ac_link\"") >&5 | ||
14462 | (eval $ac_link) 2>&5 | ||
14463 | ac_status=$? | ||
14464 | echo "$as_me:14464: \$? = $ac_status" >&5 | ||
14465 | (exit $ac_status); } && | ||
14466 | { ac_try='test -s conftest$ac_exeext' | ||
14467 | { (eval echo "$as_me:14467: \"$ac_try\"") >&5 | ||
14468 | (eval $ac_try) 2>&5 | ||
14469 | ac_status=$? | ||
14470 | echo "$as_me:14470: \$? = $ac_status" >&5 | ||
14471 | (exit $ac_status); }; }; then | ||
14472 | ac_cv_search_res_query="-l$ac_lib" | ||
14473 | break | ||
14474 | else | ||
14475 | echo "$as_me: failed program was:" >&5 | ||
14476 | cat conftest.$ac_ext >&5 | ||
14477 | fi | ||
14478 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14479 | done | ||
14480 | fi | ||
14481 | LIBS=$ac_func_search_save_LIBS | ||
14482 | fi | ||
14483 | echo "$as_me:14483: result: $ac_cv_search_res_query" >&5 | ||
14484 | echo "${ECHO_T}$ac_cv_search_res_query" >&6 | ||
14485 | if test "$ac_cv_search_res_query" != no; then | ||
14486 | test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS" | ||
14487 | |||
14488 | fi | ||
14489 | |||
14490 | echo "$as_me:14490: checking for library containing dn_expand" >&5 | ||
14491 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
14492 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
14493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14494 | else | ||
14495 | ac_func_search_save_LIBS=$LIBS | ||
14496 | ac_cv_search_dn_expand=no | ||
14497 | cat >conftest.$ac_ext <<_ACEOF | ||
14498 | #line 14498 "configure" | ||
14499 | #include "confdefs.h" | ||
14500 | |||
14501 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14502 | #ifdef __cplusplus | ||
14503 | extern "C" | ||
14504 | #endif | ||
14505 | /* We use char because int might match the return type of a gcc2 | ||
14506 | builtin and then its argument prototype would still apply. */ | ||
14507 | char dn_expand (); | ||
14508 | int | ||
14509 | main () | ||
14510 | { | ||
14511 | dn_expand (); | ||
14512 | ; | ||
14513 | return 0; | ||
14514 | } | ||
14515 | _ACEOF | ||
14516 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14517 | if { (eval echo "$as_me:14517: \"$ac_link\"") >&5 | ||
14518 | (eval $ac_link) 2>&5 | ||
14519 | ac_status=$? | ||
14520 | echo "$as_me:14520: \$? = $ac_status" >&5 | ||
14521 | (exit $ac_status); } && | ||
14522 | { ac_try='test -s conftest$ac_exeext' | ||
14523 | { (eval echo "$as_me:14523: \"$ac_try\"") >&5 | ||
14524 | (eval $ac_try) 2>&5 | ||
14525 | ac_status=$? | ||
14526 | echo "$as_me:14526: \$? = $ac_status" >&5 | ||
14527 | (exit $ac_status); }; }; then | ||
14528 | ac_cv_search_dn_expand="none required" | ||
14529 | else | ||
14530 | echo "$as_me: failed program was:" >&5 | ||
14531 | cat conftest.$ac_ext >&5 | ||
14532 | fi | ||
14533 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14534 | if test "$ac_cv_search_dn_expand" = no; then | ||
14535 | for ac_lib in resolv; do | ||
14536 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14537 | cat >conftest.$ac_ext <<_ACEOF | ||
14538 | #line 14538 "configure" | ||
14539 | #include "confdefs.h" | ||
14540 | |||
14541 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14542 | #ifdef __cplusplus | ||
14543 | extern "C" | ||
14544 | #endif | ||
14545 | /* We use char because int might match the return type of a gcc2 | ||
14546 | builtin and then its argument prototype would still apply. */ | ||
14547 | char dn_expand (); | ||
14548 | int | ||
14549 | main () | ||
14550 | { | ||
14551 | dn_expand (); | ||
14552 | ; | ||
14553 | return 0; | ||
14554 | } | ||
14555 | _ACEOF | ||
14556 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14557 | if { (eval echo "$as_me:14557: \"$ac_link\"") >&5 | ||
14558 | (eval $ac_link) 2>&5 | ||
14559 | ac_status=$? | ||
14560 | echo "$as_me:14560: \$? = $ac_status" >&5 | ||
14561 | (exit $ac_status); } && | ||
14562 | { ac_try='test -s conftest$ac_exeext' | ||
14563 | { (eval echo "$as_me:14563: \"$ac_try\"") >&5 | ||
14564 | (eval $ac_try) 2>&5 | ||
14565 | ac_status=$? | ||
14566 | echo "$as_me:14566: \$? = $ac_status" >&5 | ||
14567 | (exit $ac_status); }; }; then | ||
14568 | ac_cv_search_dn_expand="-l$ac_lib" | ||
14569 | break | ||
14570 | else | ||
14571 | echo "$as_me: failed program was:" >&5 | ||
14572 | cat conftest.$ac_ext >&5 | ||
14573 | fi | ||
14574 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14575 | done | ||
14576 | fi | ||
14577 | LIBS=$ac_func_search_save_LIBS | ||
14578 | fi | ||
14579 | echo "$as_me:14579: result: $ac_cv_search_dn_expand" >&5 | ||
14580 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
14581 | if test "$ac_cv_search_dn_expand" != no; then | ||
14582 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
14583 | |||
14584 | fi | ||
14585 | |||
14586 | for ac_func in _getshort _getlong | ||
14587 | do | ||
14588 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14589 | echo "$as_me:14589: checking for $ac_func" >&5 | ||
14590 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
14591 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
14592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14593 | else | ||
14594 | cat >conftest.$ac_ext <<_ACEOF | ||
14595 | #line 14595 "configure" | ||
14596 | #include "confdefs.h" | ||
14597 | /* System header to define __stub macros and hopefully few prototypes, | ||
14598 | which can conflict with char $ac_func (); below. */ | ||
14599 | #include <assert.h> | ||
14600 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14601 | #ifdef __cplusplus | ||
14602 | extern "C" | ||
14603 | #endif | ||
14604 | /* We use char because int might match the return type of a gcc2 | ||
14605 | builtin and then its argument prototype would still apply. */ | ||
14606 | char $ac_func (); | ||
14607 | char (*f) (); | ||
14608 | |||
14609 | int | ||
14610 | main () | ||
14611 | { | ||
14612 | /* The GNU C library defines this for functions which it implements | ||
14613 | to always fail with ENOSYS. Some functions are actually named | ||
14614 | something starting with __ and the normal name is an alias. */ | ||
14615 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
14616 | choke me | ||
14617 | #else | ||
14618 | f = $ac_func; | ||
14619 | #endif | ||
14620 | |||
14621 | ; | ||
14622 | return 0; | ||
14623 | } | ||
14624 | _ACEOF | ||
14625 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14626 | if { (eval echo "$as_me:14626: \"$ac_link\"") >&5 | ||
14627 | (eval $ac_link) 2>&5 | ||
14628 | ac_status=$? | ||
14629 | echo "$as_me:14629: \$? = $ac_status" >&5 | ||
14630 | (exit $ac_status); } && | ||
14631 | { ac_try='test -s conftest$ac_exeext' | ||
14632 | { (eval echo "$as_me:14632: \"$ac_try\"") >&5 | ||
14633 | (eval $ac_try) 2>&5 | ||
14634 | ac_status=$? | ||
14635 | echo "$as_me:14635: \$? = $ac_status" >&5 | ||
14636 | (exit $ac_status); }; }; then | ||
14637 | eval "$as_ac_var=yes" | ||
14638 | else | ||
14639 | echo "$as_me: failed program was:" >&5 | ||
14640 | cat conftest.$ac_ext >&5 | ||
14641 | eval "$as_ac_var=no" | ||
14642 | fi | ||
14643 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14644 | fi | ||
14645 | echo "$as_me:14645: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
14646 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
14647 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14648 | cat >>confdefs.h <<EOF | ||
14649 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14650 | EOF | ||
14651 | |||
14652 | fi | ||
14653 | done | ||
14654 | |||
14655 | echo "$as_me:14655: checking for HEADER.ad" >&5 | ||
14656 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6 | ||
14657 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
14658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14659 | else | ||
14660 | cat >conftest.$ac_ext <<_ACEOF | ||
14661 | #line 14661 "configure" | ||
14662 | #include "confdefs.h" | ||
14663 | #include <arpa/nameser.h> | ||
14664 | |||
14665 | int | ||
14666 | main () | ||
14667 | { | ||
14668 | static HEADER ac_aggr; | ||
14669 | if (ac_aggr.ad) | ||
14670 | return 0; | ||
14671 | ; | ||
14672 | return 0; | ||
14673 | } | ||
14674 | _ACEOF | ||
14675 | rm -f conftest.$ac_objext | ||
14676 | if { (eval echo "$as_me:14676: \"$ac_compile\"") >&5 | ||
14677 | (eval $ac_compile) 2>&5 | ||
14678 | ac_status=$? | ||
14679 | echo "$as_me:14679: \$? = $ac_status" >&5 | ||
14680 | (exit $ac_status); } && | ||
14681 | { ac_try='test -s conftest.$ac_objext' | ||
14682 | { (eval echo "$as_me:14682: \"$ac_try\"") >&5 | ||
14683 | (eval $ac_try) 2>&5 | ||
14684 | ac_status=$? | ||
14685 | echo "$as_me:14685: \$? = $ac_status" >&5 | ||
14686 | (exit $ac_status); }; }; then | ||
14687 | ac_cv_member_HEADER_ad=yes | ||
14688 | else | ||
14689 | echo "$as_me: failed program was:" >&5 | ||
14690 | cat conftest.$ac_ext >&5 | ||
14691 | ac_cv_member_HEADER_ad=no | ||
14692 | fi | ||
14693 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14694 | fi | ||
14695 | echo "$as_me:14695: result: $ac_cv_member_HEADER_ad" >&5 | ||
14696 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6 | ||
14697 | if test $ac_cv_member_HEADER_ad = yes; then | ||
14698 | cat >>confdefs.h <<\EOF | ||
14699 | #define HAVE_HEADER_AD 1 | ||
14700 | EOF | ||
14701 | |||
14702 | fi | ||
14703 | |||
14704 | fi | ||
14705 | |||
14706 | fi | ||
14707 | |||
14708 | fi; | ||
14709 | |||
14710 | # Check whether user wants Kerberos 5 support | ||
14711 | KRB5_MSG="no" | ||
14712 | |||
14713 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
14714 | if test "${with_kerberos5+set}" = set; then | ||
14715 | withval="$with_kerberos5" | ||
14716 | |||
14717 | if test "x$withval" != "xno" ; then | ||
14718 | if test "x$withval" = "xyes" ; then | ||
14719 | KRB5ROOT="/usr/local" | ||
14720 | else | ||
14721 | KRB5ROOT=${withval} | ||
14722 | fi | ||
14723 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
14724 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
14725 | cat >>confdefs.h <<\EOF | ||
14726 | #define KRB5 1 | ||
14727 | EOF | ||
14728 | |||
14729 | KRB5_MSG="yes" | ||
14730 | echo "$as_me:14730: checking whether we are using Heimdal" >&5 | ||
14731 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
14732 | cat >conftest.$ac_ext <<_ACEOF | ||
14733 | #line 14733 "configure" | ||
14734 | #include "confdefs.h" | ||
14735 | #include <krb5.h> | ||
14736 | int | ||
14737 | main () | ||
14738 | { | ||
14739 | char *tmp = heimdal_version; | ||
14740 | ; | ||
14741 | return 0; | ||
14742 | } | ||
14743 | _ACEOF | ||
14744 | rm -f conftest.$ac_objext | ||
14745 | if { (eval echo "$as_me:14745: \"$ac_compile\"") >&5 | ||
14746 | (eval $ac_compile) 2>&5 | ||
14747 | ac_status=$? | ||
14748 | echo "$as_me:14748: \$? = $ac_status" >&5 | ||
14749 | (exit $ac_status); } && | ||
14750 | { ac_try='test -s conftest.$ac_objext' | ||
14751 | { (eval echo "$as_me:14751: \"$ac_try\"") >&5 | ||
14752 | (eval $ac_try) 2>&5 | ||
14753 | ac_status=$? | ||
14754 | echo "$as_me:14754: \$? = $ac_status" >&5 | ||
14755 | (exit $ac_status); }; }; then | ||
14756 | echo "$as_me:14756: result: yes" >&5 | ||
14757 | echo "${ECHO_T}yes" >&6 | ||
14758 | cat >>confdefs.h <<\EOF | ||
14759 | #define HEIMDAL 1 | ||
14760 | EOF | ||
14761 | |||
14762 | K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken" | ||
14763 | |||
14764 | else | ||
14765 | echo "$as_me: failed program was:" >&5 | ||
14766 | cat conftest.$ac_ext >&5 | ||
14767 | echo "$as_me:14767: result: no" >&5 | ||
14768 | echo "${ECHO_T}no" >&6 | ||
14769 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
14770 | |||
14771 | fi | ||
14772 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14773 | if test ! -z "$need_dash_r" ; then | ||
14774 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
14775 | fi | ||
14776 | if test ! -z "$blibpath" ; then | ||
14777 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
14778 | fi | ||
14779 | echo "$as_me:14779: checking for library containing dn_expand" >&5 | ||
14780 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
14781 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
14782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14783 | else | ||
14784 | ac_func_search_save_LIBS=$LIBS | ||
14785 | ac_cv_search_dn_expand=no | ||
14786 | cat >conftest.$ac_ext <<_ACEOF | ||
14787 | #line 14787 "configure" | ||
14788 | #include "confdefs.h" | ||
14789 | |||
14790 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14791 | #ifdef __cplusplus | ||
14792 | extern "C" | ||
14793 | #endif | ||
14794 | /* We use char because int might match the return type of a gcc2 | ||
14795 | builtin and then its argument prototype would still apply. */ | ||
14796 | char dn_expand (); | ||
14797 | int | ||
14798 | main () | ||
14799 | { | ||
14800 | dn_expand (); | ||
14801 | ; | ||
14802 | return 0; | ||
14803 | } | ||
14804 | _ACEOF | ||
14805 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14806 | if { (eval echo "$as_me:14806: \"$ac_link\"") >&5 | ||
14807 | (eval $ac_link) 2>&5 | ||
14808 | ac_status=$? | ||
14809 | echo "$as_me:14809: \$? = $ac_status" >&5 | ||
14810 | (exit $ac_status); } && | ||
14811 | { ac_try='test -s conftest$ac_exeext' | ||
14812 | { (eval echo "$as_me:14812: \"$ac_try\"") >&5 | ||
14813 | (eval $ac_try) 2>&5 | ||
14814 | ac_status=$? | ||
14815 | echo "$as_me:14815: \$? = $ac_status" >&5 | ||
14816 | (exit $ac_status); }; }; then | ||
14817 | ac_cv_search_dn_expand="none required" | ||
14818 | else | ||
14819 | echo "$as_me: failed program was:" >&5 | ||
14820 | cat conftest.$ac_ext >&5 | ||
14821 | fi | ||
14822 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14823 | if test "$ac_cv_search_dn_expand" = no; then | ||
14824 | for ac_lib in resolv; do | ||
14825 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14826 | cat >conftest.$ac_ext <<_ACEOF | ||
14827 | #line 14827 "configure" | ||
14828 | #include "confdefs.h" | ||
14829 | |||
14830 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14831 | #ifdef __cplusplus | ||
14832 | extern "C" | ||
14833 | #endif | ||
14834 | /* We use char because int might match the return type of a gcc2 | ||
14835 | builtin and then its argument prototype would still apply. */ | ||
14836 | char dn_expand (); | ||
14837 | int | ||
14838 | main () | ||
14839 | { | ||
14840 | dn_expand (); | ||
14841 | ; | ||
14842 | return 0; | ||
14843 | } | ||
14844 | _ACEOF | ||
14845 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14846 | if { (eval echo "$as_me:14846: \"$ac_link\"") >&5 | ||
14847 | (eval $ac_link) 2>&5 | ||
14848 | ac_status=$? | ||
14849 | echo "$as_me:14849: \$? = $ac_status" >&5 | ||
14850 | (exit $ac_status); } && | ||
14851 | { ac_try='test -s conftest$ac_exeext' | ||
14852 | { (eval echo "$as_me:14852: \"$ac_try\"") >&5 | ||
14853 | (eval $ac_try) 2>&5 | ||
14854 | ac_status=$? | ||
14855 | echo "$as_me:14855: \$? = $ac_status" >&5 | ||
14856 | (exit $ac_status); }; }; then | ||
14857 | ac_cv_search_dn_expand="-l$ac_lib" | ||
14858 | break | ||
14859 | else | ||
14860 | echo "$as_me: failed program was:" >&5 | ||
14861 | cat conftest.$ac_ext >&5 | ||
14862 | fi | ||
14863 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14864 | done | ||
14865 | fi | ||
14866 | LIBS=$ac_func_search_save_LIBS | ||
14867 | fi | ||
14868 | echo "$as_me:14868: result: $ac_cv_search_dn_expand" >&5 | ||
14869 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
14870 | if test "$ac_cv_search_dn_expand" != no; then | ||
14871 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
14872 | |||
14873 | fi | ||
14874 | |||
14875 | echo "$as_me:14875: checking for gss_init_sec_context in -lgssapi" >&5 | ||
14876 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6 | ||
14877 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
14878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14879 | else | ||
14880 | ac_check_lib_save_LIBS=$LIBS | ||
14881 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
14882 | cat >conftest.$ac_ext <<_ACEOF | ||
14883 | #line 14883 "configure" | ||
14884 | #include "confdefs.h" | ||
14885 | |||
14886 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14887 | #ifdef __cplusplus | ||
14888 | extern "C" | ||
14889 | #endif | ||
14890 | /* We use char because int might match the return type of a gcc2 | ||
14891 | builtin and then its argument prototype would still apply. */ | ||
14892 | char gss_init_sec_context (); | ||
14893 | int | ||
14894 | main () | ||
14895 | { | ||
14896 | gss_init_sec_context (); | ||
14897 | ; | ||
14898 | return 0; | ||
14899 | } | ||
14900 | _ACEOF | ||
14901 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14902 | if { (eval echo "$as_me:14902: \"$ac_link\"") >&5 | ||
14903 | (eval $ac_link) 2>&5 | ||
14904 | ac_status=$? | ||
14905 | echo "$as_me:14905: \$? = $ac_status" >&5 | ||
14906 | (exit $ac_status); } && | ||
14907 | { ac_try='test -s conftest$ac_exeext' | ||
14908 | { (eval echo "$as_me:14908: \"$ac_try\"") >&5 | ||
14909 | (eval $ac_try) 2>&5 | ||
14910 | ac_status=$? | ||
14911 | echo "$as_me:14911: \$? = $ac_status" >&5 | ||
14912 | (exit $ac_status); }; }; then | ||
14913 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
14914 | else | ||
14915 | echo "$as_me: failed program was:" >&5 | ||
14916 | cat conftest.$ac_ext >&5 | ||
14917 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
14918 | fi | ||
14919 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14920 | LIBS=$ac_check_lib_save_LIBS | ||
14921 | fi | ||
14922 | echo "$as_me:14922: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
14923 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6 | ||
14924 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
14925 | cat >>confdefs.h <<\EOF | ||
14926 | #define GSSAPI 1 | ||
14927 | EOF | ||
14928 | |||
14929 | K5LIBS="-lgssapi $K5LIBS" | ||
14930 | else | ||
14931 | echo "$as_me:14931: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
14932 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6 | ||
14933 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
14934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14935 | else | ||
14936 | ac_check_lib_save_LIBS=$LIBS | ||
14937 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
14938 | cat >conftest.$ac_ext <<_ACEOF | ||
14939 | #line 14939 "configure" | ||
14940 | #include "confdefs.h" | ||
14941 | |||
14942 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14943 | #ifdef __cplusplus | ||
14944 | extern "C" | ||
14945 | #endif | ||
14946 | /* We use char because int might match the return type of a gcc2 | ||
14947 | builtin and then its argument prototype would still apply. */ | ||
14948 | char gss_init_sec_context (); | ||
14949 | int | ||
14950 | main () | ||
14951 | { | ||
14952 | gss_init_sec_context (); | ||
14953 | ; | ||
14954 | return 0; | ||
14955 | } | ||
14956 | _ACEOF | ||
14957 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14958 | if { (eval echo "$as_me:14958: \"$ac_link\"") >&5 | ||
14959 | (eval $ac_link) 2>&5 | ||
14960 | ac_status=$? | ||
14961 | echo "$as_me:14961: \$? = $ac_status" >&5 | ||
14962 | (exit $ac_status); } && | ||
14963 | { ac_try='test -s conftest$ac_exeext' | ||
14964 | { (eval echo "$as_me:14964: \"$ac_try\"") >&5 | ||
14965 | (eval $ac_try) 2>&5 | ||
14966 | ac_status=$? | ||
14967 | echo "$as_me:14967: \$? = $ac_status" >&5 | ||
14968 | (exit $ac_status); }; }; then | ||
14969 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
14970 | else | ||
14971 | echo "$as_me: failed program was:" >&5 | ||
14972 | cat conftest.$ac_ext >&5 | ||
14973 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
14974 | fi | ||
14975 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14976 | LIBS=$ac_check_lib_save_LIBS | ||
14977 | fi | ||
14978 | echo "$as_me:14978: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
14979 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6 | ||
14980 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
14981 | cat >>confdefs.h <<\EOF | ||
14982 | #define GSSAPI 1 | ||
14983 | EOF | ||
14984 | |||
14985 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
14986 | else | ||
14987 | { echo "$as_me:14987: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
14988 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
14989 | fi | ||
14990 | |||
14991 | fi | ||
14992 | |||
14993 | echo "$as_me:14993: checking for gssapi.h" >&5 | ||
14994 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
14995 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
14996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14997 | else | ||
14998 | cat >conftest.$ac_ext <<_ACEOF | ||
14999 | #line 14999 "configure" | ||
15000 | #include "confdefs.h" | ||
15001 | #include <gssapi.h> | ||
15002 | _ACEOF | ||
15003 | if { (eval echo "$as_me:15003: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15004 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15005 | ac_status=$? | ||
15006 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15007 | rm -f conftest.er1 | ||
15008 | cat conftest.err >&5 | ||
15009 | echo "$as_me:15009: \$? = $ac_status" >&5 | ||
15010 | (exit $ac_status); } >/dev/null; then | ||
15011 | if test -s conftest.err; then | ||
15012 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15013 | else | ||
15014 | ac_cpp_err= | ||
15015 | fi | ||
15016 | else | ||
15017 | ac_cpp_err=yes | ||
15018 | fi | ||
15019 | if test -z "$ac_cpp_err"; then | ||
15020 | ac_cv_header_gssapi_h=yes | ||
15021 | else | ||
15022 | echo "$as_me: failed program was:" >&5 | ||
15023 | cat conftest.$ac_ext >&5 | ||
15024 | ac_cv_header_gssapi_h=no | ||
15025 | fi | ||
15026 | rm -f conftest.err conftest.$ac_ext | ||
15027 | fi | ||
15028 | echo "$as_me:15028: result: $ac_cv_header_gssapi_h" >&5 | ||
15029 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
15030 | if test $ac_cv_header_gssapi_h = yes; then | ||
15031 | : | ||
15032 | else | ||
15033 | unset ac_cv_header_gssapi_h | ||
15034 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
15035 | |||
15036 | for ac_header in gssapi.h | ||
15037 | do | ||
15038 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15039 | echo "$as_me:15039: checking for $ac_header" >&5 | ||
15040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15043 | else | ||
15044 | cat >conftest.$ac_ext <<_ACEOF | ||
15045 | #line 15045 "configure" | ||
15046 | #include "confdefs.h" | ||
15047 | #include <$ac_header> | ||
15048 | _ACEOF | ||
15049 | if { (eval echo "$as_me:15049: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15050 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15051 | ac_status=$? | ||
15052 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15053 | rm -f conftest.er1 | ||
15054 | cat conftest.err >&5 | ||
15055 | echo "$as_me:15055: \$? = $ac_status" >&5 | ||
15056 | (exit $ac_status); } >/dev/null; then | ||
15057 | if test -s conftest.err; then | ||
15058 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15059 | else | ||
15060 | ac_cpp_err= | ||
15061 | fi | ||
15062 | else | ||
15063 | ac_cpp_err=yes | ||
15064 | fi | ||
15065 | if test -z "$ac_cpp_err"; then | ||
15066 | eval "$as_ac_Header=yes" | ||
15067 | else | ||
15068 | echo "$as_me: failed program was:" >&5 | ||
15069 | cat conftest.$ac_ext >&5 | ||
15070 | eval "$as_ac_Header=no" | ||
15071 | fi | ||
15072 | rm -f conftest.err conftest.$ac_ext | ||
15073 | fi | ||
15074 | echo "$as_me:15074: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15076 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15077 | cat >>confdefs.h <<EOF | ||
15078 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15079 | EOF | ||
15080 | |||
15081 | else | ||
15082 | { echo "$as_me:15082: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
15083 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
15084 | |||
15085 | fi | ||
15086 | done | ||
15087 | |||
15088 | fi | ||
15089 | |||
15090 | oldCPP="$CPPFLAGS" | ||
15091 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
15092 | echo "$as_me:15092: checking for gssapi_krb5.h" >&5 | ||
15093 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
15094 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
15095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15096 | else | ||
15097 | cat >conftest.$ac_ext <<_ACEOF | ||
15098 | #line 15098 "configure" | ||
15099 | #include "confdefs.h" | ||
15100 | #include <gssapi_krb5.h> | ||
15101 | _ACEOF | ||
15102 | if { (eval echo "$as_me:15102: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15103 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15104 | ac_status=$? | ||
15105 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15106 | rm -f conftest.er1 | ||
15107 | cat conftest.err >&5 | ||
15108 | echo "$as_me:15108: \$? = $ac_status" >&5 | ||
15109 | (exit $ac_status); } >/dev/null; then | ||
15110 | if test -s conftest.err; then | ||
15111 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15112 | else | ||
15113 | ac_cpp_err= | ||
15114 | fi | ||
15115 | else | ||
15116 | ac_cpp_err=yes | ||
15117 | fi | ||
15118 | if test -z "$ac_cpp_err"; then | ||
15119 | ac_cv_header_gssapi_krb5_h=yes | ||
15120 | else | ||
15121 | echo "$as_me: failed program was:" >&5 | ||
15122 | cat conftest.$ac_ext >&5 | ||
15123 | ac_cv_header_gssapi_krb5_h=no | ||
15124 | fi | ||
15125 | rm -f conftest.err conftest.$ac_ext | ||
15126 | fi | ||
15127 | echo "$as_me:15127: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
15128 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
15129 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
15130 | : | ||
15131 | else | ||
15132 | CPPFLAGS="$oldCPP" | ||
15133 | fi | ||
15134 | |||
15135 | KRB5=yes | ||
15136 | fi | ||
15137 | |||
15138 | fi; | ||
15139 | LIBS="$LIBS $K5LIBS" | ||
15140 | |||
15141 | # Looking for programs, paths and files | ||
15142 | |||
15143 | PRIVSEP_PATH=/var/empty | ||
15144 | |||
15145 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
15146 | if test "${with_privsep_path+set}" = set; then | ||
15147 | withval="$with_privsep_path" | ||
15148 | |||
15149 | if test "x$withval" != "$no" ; then | ||
15150 | PRIVSEP_PATH=$withval | ||
15151 | fi | ||
15152 | |||
15153 | fi; | ||
15154 | |||
15155 | # Check whether --with-xauth or --without-xauth was given. | ||
15156 | if test "${with_xauth+set}" = set; then | ||
15157 | withval="$with_xauth" | ||
15158 | |||
15159 | if test "x$withval" != "xno" ; then | ||
15160 | xauth_path=$withval | ||
15161 | fi | ||
15162 | |||
15163 | else | ||
15164 | |||
15165 | TestPath="$PATH" | ||
15166 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
15167 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
15168 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
15169 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
15170 | # Extract the first word of "xauth", so it can be a program name with args. | ||
15171 | set dummy xauth; ac_word=$2 | ||
15172 | echo "$as_me:15172: checking for $ac_word" >&5 | ||
15173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15174 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
15175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15176 | else | ||
15177 | case $xauth_path in | ||
15178 | [\\/]* | ?:[\\/]*) | ||
15179 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
15180 | ;; | ||
15181 | *) | ||
15182 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
15183 | ac_dummy="$TestPath" | ||
15184 | for ac_dir in $ac_dummy; do | ||
15185 | IFS=$ac_save_IFS | ||
15186 | test -z "$ac_dir" && ac_dir=. | ||
15187 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
15188 | ac_cv_path_xauth_path="$ac_dir/$ac_word" | ||
15189 | echo "$as_me:15189: found $ac_dir/$ac_word" >&5 | ||
15190 | break | ||
15191 | fi | ||
15192 | done | ||
15193 | |||
15194 | ;; | ||
15195 | esac | ||
15196 | fi | ||
15197 | xauth_path=$ac_cv_path_xauth_path | ||
15198 | |||
15199 | if test -n "$xauth_path"; then | ||
15200 | echo "$as_me:15200: result: $xauth_path" >&5 | ||
15201 | echo "${ECHO_T}$xauth_path" >&6 | ||
15202 | else | ||
15203 | echo "$as_me:15203: result: no" >&5 | ||
15204 | echo "${ECHO_T}no" >&6 | ||
15205 | fi | ||
15206 | |||
15207 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
15208 | xauth_path="/usr/openwin/bin/xauth" | ||
15209 | fi | ||
15210 | |||
15211 | fi; | ||
15212 | |||
15213 | STRIP_OPT=-s | ||
15214 | # Check whether --enable-strip or --disable-strip was given. | ||
15215 | if test "${enable_strip+set}" = set; then | ||
15216 | enableval="$enable_strip" | ||
15217 | |||
15218 | if test "x$enableval" = "xno" ; then | ||
15219 | STRIP_OPT= | ||
15220 | fi | ||
15221 | |||
15222 | fi; | ||
15223 | |||
15224 | if test -z "$xauth_path" ; then | ||
15225 | XAUTH_PATH="undefined" | ||
15226 | |||
15227 | else | ||
15228 | cat >>confdefs.h <<EOF | ||
15229 | #define XAUTH_PATH "$xauth_path" | ||
15230 | EOF | ||
15231 | |||
15232 | XAUTH_PATH=$xauth_path | ||
15233 | |||
15234 | fi | ||
15235 | |||
15236 | # Check for mail directory (last resort if we cannot get it from headers) | ||
15237 | if test ! -z "$MAIL" ; then | ||
15238 | maildir=`dirname $MAIL` | ||
15239 | cat >>confdefs.h <<EOF | ||
15240 | #define MAIL_DIRECTORY "$maildir" | ||
15241 | EOF | ||
15242 | |||
15243 | fi | ||
15244 | |||
15245 | if test -z "$no_dev_ptmx" ; then | ||
15246 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
15247 | echo "$as_me:15247: checking for \"/dev/ptmx\"" >&5 | ||
15248 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
15249 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
15250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15251 | else | ||
15252 | test "$cross_compiling" = yes && | ||
15253 | { { echo "$as_me:15253: error: cannot check for file existence when cross compiling" >&5 | ||
15254 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
15255 | { (exit 1); exit 1; }; } | ||
15256 | if test -r ""/dev/ptmx""; then | ||
15257 | ac_cv_file___dev_ptmx_=yes | ||
15258 | else | ||
15259 | ac_cv_file___dev_ptmx_=no | ||
15260 | fi | ||
15261 | fi | ||
15262 | echo "$as_me:15262: result: $ac_cv_file___dev_ptmx_" >&5 | ||
15263 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
15264 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
15265 | |||
15266 | cat >>confdefs.h <<EOF | ||
15267 | #define HAVE_DEV_PTMX 1 | ||
15268 | EOF | ||
15269 | |||
15270 | have_dev_ptmx=1 | ||
15271 | |||
15272 | fi | ||
15273 | |||
15274 | fi | ||
15275 | fi | ||
15276 | echo "$as_me:15276: checking for \"/dev/ptc\"" >&5 | ||
15277 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
15278 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
15279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15280 | else | ||
15281 | test "$cross_compiling" = yes && | ||
15282 | { { echo "$as_me:15282: error: cannot check for file existence when cross compiling" >&5 | ||
15283 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
15284 | { (exit 1); exit 1; }; } | ||
15285 | if test -r ""/dev/ptc""; then | ||
15286 | ac_cv_file___dev_ptc_=yes | ||
15287 | else | ||
15288 | ac_cv_file___dev_ptc_=no | ||
15289 | fi | ||
15290 | fi | ||
15291 | echo "$as_me:15291: result: $ac_cv_file___dev_ptc_" >&5 | ||
15292 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
15293 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
15294 | |||
15295 | cat >>confdefs.h <<EOF | ||
15296 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
15297 | EOF | ||
15298 | |||
15299 | have_dev_ptc=1 | ||
15300 | |||
15301 | fi | ||
15302 | |||
15303 | # Options from here on. Some of these are preset by platform above | ||
15304 | |||
15305 | # Check whether --with-mantype or --without-mantype was given. | ||
15306 | if test "${with_mantype+set}" = set; then | ||
15307 | withval="$with_mantype" | ||
15308 | |||
15309 | case "$withval" in | ||
15310 | man|cat|doc) | ||
15311 | MANTYPE=$withval | ||
15312 | ;; | ||
15313 | *) | ||
15314 | { { echo "$as_me:15314: error: invalid man type: $withval" >&5 | ||
15315 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
15316 | { (exit 1); exit 1; }; } | ||
15317 | ;; | ||
15318 | esac | ||
15319 | |||
15320 | fi; | ||
15321 | if test -z "$MANTYPE"; then | ||
15322 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
15323 | for ac_prog in nroff awf | ||
15324 | do | ||
15325 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
15326 | set dummy $ac_prog; ac_word=$2 | ||
15327 | echo "$as_me:15327: checking for $ac_word" >&5 | ||
15328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15329 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
15330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15331 | else | ||
15332 | case $NROFF in | ||
15333 | [\\/]* | ?:[\\/]*) | ||
15334 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
15335 | ;; | ||
15336 | *) | ||
15337 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
15338 | ac_dummy="$TestPath" | ||
15339 | for ac_dir in $ac_dummy; do | ||
15340 | IFS=$ac_save_IFS | ||
15341 | test -z "$ac_dir" && ac_dir=. | ||
15342 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
15343 | ac_cv_path_NROFF="$ac_dir/$ac_word" | ||
15344 | echo "$as_me:15344: found $ac_dir/$ac_word" >&5 | ||
15345 | break | ||
15346 | fi | ||
15347 | done | ||
15348 | |||
15349 | ;; | ||
15350 | esac | ||
15351 | fi | ||
15352 | NROFF=$ac_cv_path_NROFF | ||
15353 | |||
15354 | if test -n "$NROFF"; then | ||
15355 | echo "$as_me:15355: result: $NROFF" >&5 | ||
15356 | echo "${ECHO_T}$NROFF" >&6 | ||
15357 | else | ||
15358 | echo "$as_me:15358: result: no" >&5 | ||
15359 | echo "${ECHO_T}no" >&6 | ||
15360 | fi | ||
15361 | |||
15362 | test -n "$NROFF" && break | ||
15363 | done | ||
15364 | test -n "$NROFF" || NROFF="/bin/false" | ||
15365 | |||
15366 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
15367 | MANTYPE=doc | ||
15368 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
15369 | MANTYPE=man | ||
15370 | else | ||
15371 | MANTYPE=cat | ||
15372 | fi | ||
15373 | fi | ||
15374 | |||
15375 | if test "$MANTYPE" = "doc"; then | ||
15376 | mansubdir=man; | ||
15377 | else | ||
15378 | mansubdir=$MANTYPE; | ||
15379 | fi | ||
15380 | |||
15381 | # Check whether to enable MD5 passwords | ||
15382 | MD5_MSG="no" | ||
15383 | |||
15384 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
15385 | if test "${with_md5_passwords+set}" = set; then | ||
15386 | withval="$with_md5_passwords" | ||
15387 | |||
15388 | if test "x$withval" != "xno" ; then | ||
15389 | cat >>confdefs.h <<\EOF | ||
15390 | #define HAVE_MD5_PASSWORDS 1 | ||
15391 | EOF | ||
15392 | |||
15393 | MD5_MSG="yes" | ||
15394 | fi | ||
15395 | |||
15396 | fi; | ||
15397 | |||
15398 | # Whether to disable shadow password support | ||
15399 | |||
15400 | # Check whether --with-shadow or --without-shadow was given. | ||
15401 | if test "${with_shadow+set}" = set; then | ||
15402 | withval="$with_shadow" | ||
15403 | |||
15404 | if test "x$withval" = "xno" ; then | ||
15405 | cat >>confdefs.h <<\EOF | ||
15406 | #define DISABLE_SHADOW 1 | ||
15407 | EOF | ||
15408 | |||
15409 | disable_shadow=yes | ||
15410 | fi | ||
15411 | |||
15412 | fi; | ||
15413 | |||
15414 | if test -z "$disable_shadow" ; then | ||
15415 | echo "$as_me:15415: checking if the systems has expire shadow information" >&5 | ||
15416 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
15417 | cat >conftest.$ac_ext <<_ACEOF | ||
15418 | #line 15418 "configure" | ||
15419 | #include "confdefs.h" | ||
15420 | |||
15421 | #include <sys/types.h> | ||
15422 | #include <shadow.h> | ||
15423 | struct spwd sp; | ||
15424 | |||
15425 | int | ||
15426 | main () | ||
15427 | { | ||
15428 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
15429 | ; | ||
15430 | return 0; | ||
15431 | } | ||
15432 | _ACEOF | ||
15433 | rm -f conftest.$ac_objext | ||
15434 | if { (eval echo "$as_me:15434: \"$ac_compile\"") >&5 | ||
15435 | (eval $ac_compile) 2>&5 | ||
15436 | ac_status=$? | ||
15437 | echo "$as_me:15437: \$? = $ac_status" >&5 | ||
15438 | (exit $ac_status); } && | ||
15439 | { ac_try='test -s conftest.$ac_objext' | ||
15440 | { (eval echo "$as_me:15440: \"$ac_try\"") >&5 | ||
15441 | (eval $ac_try) 2>&5 | ||
15442 | ac_status=$? | ||
15443 | echo "$as_me:15443: \$? = $ac_status" >&5 | ||
15444 | (exit $ac_status); }; }; then | ||
15445 | sp_expire_available=yes | ||
15446 | else | ||
15447 | echo "$as_me: failed program was:" >&5 | ||
15448 | cat conftest.$ac_ext >&5 | ||
15449 | |||
15450 | fi | ||
15451 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15452 | |||
15453 | if test "x$sp_expire_available" = "xyes" ; then | ||
15454 | echo "$as_me:15454: result: yes" >&5 | ||
15455 | echo "${ECHO_T}yes" >&6 | ||
15456 | cat >>confdefs.h <<\EOF | ||
15457 | #define HAS_SHADOW_EXPIRE 1 | ||
15458 | EOF | ||
15459 | |||
15460 | else | ||
15461 | echo "$as_me:15461: result: no" >&5 | ||
15462 | echo "${ECHO_T}no" >&6 | ||
15463 | fi | ||
15464 | fi | ||
15465 | |||
15466 | # Use ip address instead of hostname in $DISPLAY | ||
15467 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
15468 | DISPLAY_HACK_MSG="yes" | ||
15469 | cat >>confdefs.h <<\EOF | ||
15470 | #define IPADDR_IN_DISPLAY 1 | ||
15471 | EOF | ||
15472 | |||
15473 | else | ||
15474 | DISPLAY_HACK_MSG="no" | ||
15475 | |||
15476 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
15477 | if test "${with_ipaddr_display+set}" = set; then | ||
15478 | withval="$with_ipaddr_display" | ||
15479 | |||
15480 | if test "x$withval" != "xno" ; then | ||
15481 | cat >>confdefs.h <<\EOF | ||
15482 | #define IPADDR_IN_DISPLAY 1 | ||
15483 | EOF | ||
15484 | |||
15485 | DISPLAY_HACK_MSG="yes" | ||
15486 | fi | ||
15487 | |||
15488 | fi; | ||
15489 | fi | ||
15490 | |||
15491 | # check for /etc/default/login and use it if present. | ||
15492 | # Check whether --enable-etc-default-login or --disable-etc-default-login was given. | ||
15493 | if test "${enable_etc_default_login+set}" = set; then | ||
15494 | enableval="$enable_etc_default_login" | ||
15495 | |||
15496 | else | ||
15497 | |||
15498 | echo "$as_me:15498: checking for \"/etc/default/login\"" >&5 | ||
15499 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6 | ||
15500 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
15501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15502 | else | ||
15503 | test "$cross_compiling" = yes && | ||
15504 | { { echo "$as_me:15504: error: cannot check for file existence when cross compiling" >&5 | ||
15505 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
15506 | { (exit 1); exit 1; }; } | ||
15507 | if test -r ""/etc/default/login""; then | ||
15508 | ac_cv_file___etc_default_login_=yes | ||
15509 | else | ||
15510 | ac_cv_file___etc_default_login_=no | ||
15511 | fi | ||
15512 | fi | ||
15513 | echo "$as_me:15513: result: $ac_cv_file___etc_default_login_" >&5 | ||
15514 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6 | ||
15515 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
15516 | external_path_file=/etc/default/login | ||
15517 | fi | ||
15518 | |||
15519 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
15520 | cat >>confdefs.h <<\EOF | ||
15521 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
15522 | EOF | ||
15523 | |||
15524 | fi | ||
15525 | |||
15526 | fi; | ||
15527 | |||
15528 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | ||
15529 | $ac_cv_header_login_cap_h = "yes" ; then | ||
15530 | external_path_file=/etc/login.conf | ||
15531 | fi | ||
15532 | |||
15533 | # Whether to mess with the default path | ||
15534 | SERVER_PATH_MSG="(default)" | ||
15535 | |||
15536 | # Check whether --with-default-path or --without-default-path was given. | ||
15537 | if test "${with_default_path+set}" = set; then | ||
15538 | withval="$with_default_path" | ||
15539 | |||
15540 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
15541 | { echo "$as_me:15541: WARNING: | ||
15542 | --with-default-path=PATH has no effect on this system. | ||
15543 | Edit /etc/login.conf instead." >&5 | ||
15544 | echo "$as_me: WARNING: | ||
15545 | --with-default-path=PATH has no effect on this system. | ||
15546 | Edit /etc/login.conf instead." >&2;} | ||
15547 | elif test "x$withval" != "xno" ; then | ||
15548 | if test ! -z "$external_path_file" ; then | ||
15549 | { echo "$as_me:15549: WARNING: | ||
15550 | --with-default-path=PATH will only be used if PATH is not defined in | ||
15551 | $external_path_file ." >&5 | ||
15552 | echo "$as_me: WARNING: | ||
15553 | --with-default-path=PATH will only be used if PATH is not defined in | ||
15554 | $external_path_file ." >&2;} | ||
15555 | fi | ||
15556 | user_path="$withval" | ||
15557 | SERVER_PATH_MSG="$withval" | ||
15558 | fi | ||
15559 | |||
15560 | else | ||
15561 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
15562 | { echo "$as_me:15562: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
15563 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
15564 | else | ||
15565 | if test ! -z "$external_path_file" ; then | ||
15566 | { echo "$as_me:15566: WARNING: | ||
15567 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
15568 | otherwise scp will not work." >&5 | ||
15569 | echo "$as_me: WARNING: | ||
15570 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
15571 | otherwise scp will not work." >&2;} | ||
15572 | fi | ||
15573 | if test "$cross_compiling" = yes; then | ||
15574 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
15575 | |||
15576 | else | ||
15577 | cat >conftest.$ac_ext <<_ACEOF | ||
15578 | #line 15578 "configure" | ||
15579 | #include "confdefs.h" | ||
15580 | |||
15581 | /* find out what STDPATH is */ | ||
15582 | #include <stdio.h> | ||
15583 | #ifdef HAVE_PATHS_H | ||
15584 | # include <paths.h> | ||
15585 | #endif | ||
15586 | #ifndef _PATH_STDPATH | ||
15587 | # ifdef _PATH_USERPATH /* Irix */ | ||
15588 | # define _PATH_STDPATH _PATH_USERPATH | ||
15589 | # else | ||
15590 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
15591 | # endif | ||
15592 | #endif | ||
15593 | #include <sys/types.h> | ||
15594 | #include <sys/stat.h> | ||
15595 | #include <fcntl.h> | ||
15596 | #define DATA "conftest.stdpath" | ||
15597 | |||
15598 | main() | ||
15599 | { | ||
15600 | FILE *fd; | ||
15601 | int rc; | ||
15602 | |||
15603 | fd = fopen(DATA,"w"); | ||
15604 | if(fd == NULL) | ||
15605 | exit(1); | ||
15606 | |||
15607 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
15608 | exit(1); | ||
15609 | |||
15610 | exit(0); | ||
15611 | } | ||
15612 | |||
15613 | _ACEOF | ||
15614 | rm -f conftest$ac_exeext | ||
15615 | if { (eval echo "$as_me:15615: \"$ac_link\"") >&5 | ||
15616 | (eval $ac_link) 2>&5 | ||
15617 | ac_status=$? | ||
15618 | echo "$as_me:15618: \$? = $ac_status" >&5 | ||
15619 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15620 | { (eval echo "$as_me:15620: \"$ac_try\"") >&5 | ||
15621 | (eval $ac_try) 2>&5 | ||
15622 | ac_status=$? | ||
15623 | echo "$as_me:15623: \$? = $ac_status" >&5 | ||
15624 | (exit $ac_status); }; }; then | ||
15625 | user_path=`cat conftest.stdpath` | ||
15626 | else | ||
15627 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15628 | echo "$as_me: failed program was:" >&5 | ||
15629 | cat conftest.$ac_ext >&5 | ||
15630 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
15631 | fi | ||
15632 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15633 | fi | ||
15634 | # make sure $bindir is in USER_PATH so scp will work | ||
15635 | t_bindir=`eval echo ${bindir}` | ||
15636 | case $t_bindir in | ||
15637 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
15638 | esac | ||
15639 | case $t_bindir in | ||
15640 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
15641 | esac | ||
15642 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
15643 | if test $? -ne 0 ; then | ||
15644 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
15645 | if test $? -ne 0 ; then | ||
15646 | user_path=$user_path:$t_bindir | ||
15647 | echo "$as_me:15647: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
15648 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
15649 | fi | ||
15650 | fi | ||
15651 | fi | ||
15652 | |||
15653 | fi; | ||
15654 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
15655 | cat >>confdefs.h <<EOF | ||
15656 | #define USER_PATH "$user_path" | ||
15657 | EOF | ||
15658 | |||
15659 | fi | ||
15660 | |||
15661 | # Set superuser path separately to user path | ||
15662 | |||
15663 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
15664 | if test "${with_superuser_path+set}" = set; then | ||
15665 | withval="$with_superuser_path" | ||
15666 | |||
15667 | if test "x$withval" != "xno" ; then | ||
15668 | cat >>confdefs.h <<EOF | ||
15669 | #define SUPERUSER_PATH "$withval" | ||
15670 | EOF | ||
15671 | |||
15672 | superuser_path=$withval | ||
15673 | fi | ||
15674 | |||
15675 | fi; | ||
15676 | |||
15677 | echo "$as_me:15677: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
15678 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
15679 | IPV4_IN6_HACK_MSG="no" | ||
15680 | |||
15681 | # Check whether --with-4in6 or --without-4in6 was given. | ||
15682 | if test "${with_4in6+set}" = set; then | ||
15683 | withval="$with_4in6" | ||
15684 | |||
15685 | if test "x$withval" != "xno" ; then | ||
15686 | echo "$as_me:15686: result: yes" >&5 | ||
15687 | echo "${ECHO_T}yes" >&6 | ||
15688 | cat >>confdefs.h <<\EOF | ||
15689 | #define IPV4_IN_IPV6 1 | ||
15690 | EOF | ||
15691 | |||
15692 | IPV4_IN6_HACK_MSG="yes" | ||
15693 | else | ||
15694 | echo "$as_me:15694: result: no" >&5 | ||
15695 | echo "${ECHO_T}no" >&6 | ||
15696 | fi | ||
15697 | |||
15698 | else | ||
15699 | |||
15700 | if test "x$inet6_default_4in6" = "xyes"; then | ||
15701 | echo "$as_me:15701: result: yes (default)" >&5 | ||
15702 | echo "${ECHO_T}yes (default)" >&6 | ||
15703 | cat >>confdefs.h <<\EOF | ||
15704 | #define IPV4_IN_IPV6 1 | ||
15705 | EOF | ||
15706 | |||
15707 | IPV4_IN6_HACK_MSG="yes" | ||
15708 | else | ||
15709 | echo "$as_me:15709: result: no (default)" >&5 | ||
15710 | echo "${ECHO_T}no (default)" >&6 | ||
15711 | fi | ||
15712 | |||
15713 | fi; | ||
15714 | |||
15715 | # Whether to enable BSD auth support | ||
15716 | BSD_AUTH_MSG=no | ||
15717 | |||
15718 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
15719 | if test "${with_bsd_auth+set}" = set; then | ||
15720 | withval="$with_bsd_auth" | ||
15721 | |||
15722 | if test "x$withval" != "xno" ; then | ||
15723 | cat >>confdefs.h <<\EOF | ||
15724 | #define BSD_AUTH 1 | ||
15725 | EOF | ||
15726 | |||
15727 | BSD_AUTH_MSG=yes | ||
15728 | fi | ||
15729 | |||
15730 | fi; | ||
15731 | |||
15732 | # Where to place sshd.pid | ||
15733 | piddir=/var/run | ||
15734 | # make sure the directory exists | ||
15735 | if test ! -d $piddir ; then | ||
15736 | piddir=`eval echo ${sysconfdir}` | ||
15737 | case $piddir in | ||
15738 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
15739 | esac | ||
15740 | fi | ||
15741 | |||
15742 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
15743 | if test "${with_pid_dir+set}" = set; then | ||
15744 | withval="$with_pid_dir" | ||
15745 | |||
15746 | if test "x$withval" != "xno" ; then | ||
15747 | piddir=$withval | ||
15748 | if test ! -d $piddir ; then | ||
15749 | { echo "$as_me:15749: WARNING: ** no $piddir directory on this system **" >&5 | ||
15750 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
15751 | fi | ||
15752 | fi | ||
15753 | |||
15754 | fi; | ||
15755 | |||
15756 | cat >>confdefs.h <<EOF | ||
15757 | #define _PATH_SSH_PIDDIR "$piddir" | ||
15758 | EOF | ||
15759 | |||
15760 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
15761 | if test "${enable_lastlog+set}" = set; then | ||
15762 | enableval="$enable_lastlog" | ||
15763 | |||
15764 | if test "x$enableval" = "xno" ; then | ||
15765 | cat >>confdefs.h <<\EOF | ||
15766 | #define DISABLE_LASTLOG 1 | ||
15767 | EOF | ||
15768 | |||
15769 | fi | ||
15770 | |||
15771 | fi; | ||
15772 | # Check whether --enable-utmp or --disable-utmp was given. | ||
15773 | if test "${enable_utmp+set}" = set; then | ||
15774 | enableval="$enable_utmp" | ||
15775 | |||
15776 | if test "x$enableval" = "xno" ; then | ||
15777 | cat >>confdefs.h <<\EOF | ||
15778 | #define DISABLE_UTMP 1 | ||
15779 | EOF | ||
15780 | |||
15781 | fi | ||
15782 | |||
15783 | fi; | ||
15784 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
15785 | if test "${enable_utmpx+set}" = set; then | ||
15786 | enableval="$enable_utmpx" | ||
15787 | |||
15788 | if test "x$enableval" = "xno" ; then | ||
15789 | cat >>confdefs.h <<\EOF | ||
15790 | #define DISABLE_UTMPX 1 | ||
15791 | EOF | ||
15792 | |||
15793 | fi | ||
15794 | |||
15795 | fi; | ||
15796 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
15797 | if test "${enable_wtmp+set}" = set; then | ||
15798 | enableval="$enable_wtmp" | ||
15799 | |||
15800 | if test "x$enableval" = "xno" ; then | ||
15801 | cat >>confdefs.h <<\EOF | ||
15802 | #define DISABLE_WTMP 1 | ||
15803 | EOF | ||
15804 | |||
15805 | fi | ||
15806 | |||
15807 | fi; | ||
15808 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
15809 | if test "${enable_wtmpx+set}" = set; then | ||
15810 | enableval="$enable_wtmpx" | ||
15811 | |||
15812 | if test "x$enableval" = "xno" ; then | ||
15813 | cat >>confdefs.h <<\EOF | ||
15814 | #define DISABLE_WTMPX 1 | ||
15815 | EOF | ||
15816 | |||
15817 | fi | ||
15818 | |||
15819 | fi; | ||
15820 | # Check whether --enable-libutil or --disable-libutil was given. | ||
15821 | if test "${enable_libutil+set}" = set; then | ||
15822 | enableval="$enable_libutil" | ||
15823 | |||
15824 | if test "x$enableval" = "xno" ; then | ||
15825 | cat >>confdefs.h <<\EOF | ||
15826 | #define DISABLE_LOGIN 1 | ||
15827 | EOF | ||
15828 | |||
15829 | fi | ||
15830 | |||
15831 | fi; | ||
15832 | # Check whether --enable-pututline or --disable-pututline was given. | ||
15833 | if test "${enable_pututline+set}" = set; then | ||
15834 | enableval="$enable_pututline" | ||
15835 | |||
15836 | if test "x$enableval" = "xno" ; then | ||
15837 | cat >>confdefs.h <<\EOF | ||
15838 | #define DISABLE_PUTUTLINE 1 | ||
15839 | EOF | ||
15840 | |||
15841 | fi | ||
15842 | |||
15843 | fi; | ||
15844 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
15845 | if test "${enable_pututxline+set}" = set; then | ||
15846 | enableval="$enable_pututxline" | ||
15847 | |||
15848 | if test "x$enableval" = "xno" ; then | ||
15849 | cat >>confdefs.h <<\EOF | ||
15850 | #define DISABLE_PUTUTXLINE 1 | ||
15851 | EOF | ||
15852 | |||
15853 | fi | ||
15854 | |||
15855 | fi; | ||
15856 | |||
15857 | # Check whether --with-lastlog or --without-lastlog was given. | ||
15858 | if test "${with_lastlog+set}" = set; then | ||
15859 | withval="$with_lastlog" | ||
15860 | |||
15861 | if test "x$withval" = "xno" ; then | ||
15862 | cat >>confdefs.h <<\EOF | ||
15863 | #define DISABLE_LASTLOG 1 | ||
15864 | EOF | ||
15865 | |||
15866 | else | ||
15867 | conf_lastlog_location=$withval | ||
15868 | fi | ||
15869 | |||
15870 | fi; | ||
15871 | |||
15872 | echo "$as_me:15872: checking if your system defines LASTLOG_FILE" >&5 | ||
15873 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
15874 | cat >conftest.$ac_ext <<_ACEOF | ||
15875 | #line 15875 "configure" | ||
15876 | #include "confdefs.h" | ||
15877 | |||
15878 | #include <sys/types.h> | ||
15879 | #include <utmp.h> | ||
15880 | #ifdef HAVE_LASTLOG_H | ||
15881 | # include <lastlog.h> | ||
15882 | #endif | ||
15883 | #ifdef HAVE_PATHS_H | ||
15884 | # include <paths.h> | ||
15885 | #endif | ||
15886 | #ifdef HAVE_LOGIN_H | ||
15887 | # include <login.h> | ||
15888 | #endif | ||
15889 | |||
15890 | int | ||
15891 | main () | ||
15892 | { | ||
15893 | char *lastlog = LASTLOG_FILE; | ||
15894 | ; | ||
15895 | return 0; | ||
15896 | } | ||
15897 | _ACEOF | ||
15898 | rm -f conftest.$ac_objext | ||
15899 | if { (eval echo "$as_me:15899: \"$ac_compile\"") >&5 | ||
15900 | (eval $ac_compile) 2>&5 | ||
15901 | ac_status=$? | ||
15902 | echo "$as_me:15902: \$? = $ac_status" >&5 | ||
15903 | (exit $ac_status); } && | ||
15904 | { ac_try='test -s conftest.$ac_objext' | ||
15905 | { (eval echo "$as_me:15905: \"$ac_try\"") >&5 | ||
15906 | (eval $ac_try) 2>&5 | ||
15907 | ac_status=$? | ||
15908 | echo "$as_me:15908: \$? = $ac_status" >&5 | ||
15909 | (exit $ac_status); }; }; then | ||
15910 | echo "$as_me:15910: result: yes" >&5 | ||
15911 | echo "${ECHO_T}yes" >&6 | ||
15912 | else | ||
15913 | echo "$as_me: failed program was:" >&5 | ||
15914 | cat conftest.$ac_ext >&5 | ||
15915 | |||
15916 | echo "$as_me:15916: result: no" >&5 | ||
15917 | echo "${ECHO_T}no" >&6 | ||
15918 | echo "$as_me:15918: checking if your system defines _PATH_LASTLOG" >&5 | ||
15919 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
15920 | cat >conftest.$ac_ext <<_ACEOF | ||
15921 | #line 15921 "configure" | ||
15922 | #include "confdefs.h" | ||
15923 | |||
15924 | #include <sys/types.h> | ||
15925 | #include <utmp.h> | ||
15926 | #ifdef HAVE_LASTLOG_H | ||
15927 | # include <lastlog.h> | ||
15928 | #endif | ||
15929 | #ifdef HAVE_PATHS_H | ||
15930 | # include <paths.h> | ||
15931 | #endif | ||
15932 | |||
15933 | int | ||
15934 | main () | ||
15935 | { | ||
15936 | char *lastlog = _PATH_LASTLOG; | ||
15937 | ; | ||
15938 | return 0; | ||
15939 | } | ||
15940 | _ACEOF | ||
15941 | rm -f conftest.$ac_objext | ||
15942 | if { (eval echo "$as_me:15942: \"$ac_compile\"") >&5 | ||
15943 | (eval $ac_compile) 2>&5 | ||
15944 | ac_status=$? | ||
15945 | echo "$as_me:15945: \$? = $ac_status" >&5 | ||
15946 | (exit $ac_status); } && | ||
15947 | { ac_try='test -s conftest.$ac_objext' | ||
15948 | { (eval echo "$as_me:15948: \"$ac_try\"") >&5 | ||
15949 | (eval $ac_try) 2>&5 | ||
15950 | ac_status=$? | ||
15951 | echo "$as_me:15951: \$? = $ac_status" >&5 | ||
15952 | (exit $ac_status); }; }; then | ||
15953 | echo "$as_me:15953: result: yes" >&5 | ||
15954 | echo "${ECHO_T}yes" >&6 | ||
15955 | else | ||
15956 | echo "$as_me: failed program was:" >&5 | ||
15957 | cat conftest.$ac_ext >&5 | ||
15958 | |||
15959 | echo "$as_me:15959: result: no" >&5 | ||
15960 | echo "${ECHO_T}no" >&6 | ||
15961 | system_lastlog_path=no | ||
15962 | |||
15963 | fi | ||
15964 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15965 | |||
15966 | fi | ||
15967 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15968 | |||
15969 | if test -z "$conf_lastlog_location"; then | ||
15970 | if test x"$system_lastlog_path" = x"no" ; then | ||
15971 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
15972 | if (test -d "$f" || test -f "$f") ; then | ||
15973 | conf_lastlog_location=$f | ||
15974 | fi | ||
15975 | done | ||
15976 | if test -z "$conf_lastlog_location"; then | ||
15977 | { echo "$as_me:15977: WARNING: ** Cannot find lastlog **" >&5 | ||
15978 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
15979 | fi | ||
15980 | fi | ||
15981 | fi | ||
15982 | |||
15983 | if test -n "$conf_lastlog_location"; then | ||
15984 | cat >>confdefs.h <<EOF | ||
15985 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
15986 | EOF | ||
15987 | |||
15988 | fi | ||
15989 | |||
15990 | echo "$as_me:15990: checking if your system defines UTMP_FILE" >&5 | ||
15991 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
15992 | cat >conftest.$ac_ext <<_ACEOF | ||
15993 | #line 15993 "configure" | ||
15994 | #include "confdefs.h" | ||
15995 | |||
15996 | #include <sys/types.h> | ||
15997 | #include <utmp.h> | ||
15998 | #ifdef HAVE_PATHS_H | ||
15999 | # include <paths.h> | ||
16000 | #endif | ||
16001 | |||
16002 | int | ||
16003 | main () | ||
16004 | { | ||
16005 | char *utmp = UTMP_FILE; | ||
16006 | ; | ||
16007 | return 0; | ||
16008 | } | ||
16009 | _ACEOF | ||
16010 | rm -f conftest.$ac_objext | ||
16011 | if { (eval echo "$as_me:16011: \"$ac_compile\"") >&5 | ||
16012 | (eval $ac_compile) 2>&5 | ||
16013 | ac_status=$? | ||
16014 | echo "$as_me:16014: \$? = $ac_status" >&5 | ||
16015 | (exit $ac_status); } && | ||
16016 | { ac_try='test -s conftest.$ac_objext' | ||
16017 | { (eval echo "$as_me:16017: \"$ac_try\"") >&5 | ||
16018 | (eval $ac_try) 2>&5 | ||
16019 | ac_status=$? | ||
16020 | echo "$as_me:16020: \$? = $ac_status" >&5 | ||
16021 | (exit $ac_status); }; }; then | ||
16022 | echo "$as_me:16022: result: yes" >&5 | ||
16023 | echo "${ECHO_T}yes" >&6 | ||
16024 | else | ||
16025 | echo "$as_me: failed program was:" >&5 | ||
16026 | cat conftest.$ac_ext >&5 | ||
16027 | echo "$as_me:16027: result: no" >&5 | ||
16028 | echo "${ECHO_T}no" >&6 | ||
16029 | system_utmp_path=no | ||
16030 | |||
16031 | fi | ||
16032 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16033 | if test -z "$conf_utmp_location"; then | ||
16034 | if test x"$system_utmp_path" = x"no" ; then | ||
16035 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
16036 | if test -f $f ; then | ||
16037 | conf_utmp_location=$f | ||
16038 | fi | ||
16039 | done | ||
16040 | if test -z "$conf_utmp_location"; then | ||
16041 | cat >>confdefs.h <<\EOF | ||
16042 | #define DISABLE_UTMP 1 | ||
16043 | EOF | ||
16044 | |||
16045 | fi | ||
16046 | fi | ||
16047 | fi | ||
16048 | if test -n "$conf_utmp_location"; then | ||
16049 | cat >>confdefs.h <<EOF | ||
16050 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
16051 | EOF | ||
16052 | |||
16053 | fi | ||
16054 | |||
16055 | echo "$as_me:16055: checking if your system defines WTMP_FILE" >&5 | ||
16056 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
16057 | cat >conftest.$ac_ext <<_ACEOF | ||
16058 | #line 16058 "configure" | ||
16059 | #include "confdefs.h" | ||
16060 | |||
16061 | #include <sys/types.h> | ||
16062 | #include <utmp.h> | ||
16063 | #ifdef HAVE_PATHS_H | ||
16064 | # include <paths.h> | ||
16065 | #endif | ||
16066 | |||
16067 | int | ||
16068 | main () | ||
16069 | { | ||
16070 | char *wtmp = WTMP_FILE; | ||
16071 | ; | ||
16072 | return 0; | ||
16073 | } | ||
16074 | _ACEOF | ||
16075 | rm -f conftest.$ac_objext | ||
16076 | if { (eval echo "$as_me:16076: \"$ac_compile\"") >&5 | ||
16077 | (eval $ac_compile) 2>&5 | ||
16078 | ac_status=$? | ||
16079 | echo "$as_me:16079: \$? = $ac_status" >&5 | ||
16080 | (exit $ac_status); } && | ||
16081 | { ac_try='test -s conftest.$ac_objext' | ||
16082 | { (eval echo "$as_me:16082: \"$ac_try\"") >&5 | ||
16083 | (eval $ac_try) 2>&5 | ||
16084 | ac_status=$? | ||
16085 | echo "$as_me:16085: \$? = $ac_status" >&5 | ||
16086 | (exit $ac_status); }; }; then | ||
16087 | echo "$as_me:16087: result: yes" >&5 | ||
16088 | echo "${ECHO_T}yes" >&6 | ||
16089 | else | ||
16090 | echo "$as_me: failed program was:" >&5 | ||
16091 | cat conftest.$ac_ext >&5 | ||
16092 | echo "$as_me:16092: result: no" >&5 | ||
16093 | echo "${ECHO_T}no" >&6 | ||
16094 | system_wtmp_path=no | ||
16095 | |||
16096 | fi | ||
16097 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16098 | if test -z "$conf_wtmp_location"; then | ||
16099 | if test x"$system_wtmp_path" = x"no" ; then | ||
16100 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
16101 | if test -f $f ; then | ||
16102 | conf_wtmp_location=$f | ||
16103 | fi | ||
16104 | done | ||
16105 | if test -z "$conf_wtmp_location"; then | ||
16106 | cat >>confdefs.h <<\EOF | ||
16107 | #define DISABLE_WTMP 1 | ||
16108 | EOF | ||
16109 | |||
16110 | fi | ||
16111 | fi | ||
16112 | fi | ||
16113 | if test -n "$conf_wtmp_location"; then | ||
16114 | cat >>confdefs.h <<EOF | ||
16115 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
16116 | EOF | ||
16117 | |||
16118 | fi | ||
16119 | |||
16120 | echo "$as_me:16120: checking if your system defines UTMPX_FILE" >&5 | ||
16121 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
16122 | cat >conftest.$ac_ext <<_ACEOF | ||
16123 | #line 16123 "configure" | ||
16124 | #include "confdefs.h" | ||
16125 | |||
16126 | #include <sys/types.h> | ||
16127 | #include <utmp.h> | ||
16128 | #ifdef HAVE_UTMPX_H | ||
16129 | #include <utmpx.h> | ||
16130 | #endif | ||
16131 | #ifdef HAVE_PATHS_H | ||
16132 | # include <paths.h> | ||
16133 | #endif | ||
16134 | |||
16135 | int | ||
16136 | main () | ||
16137 | { | ||
16138 | char *utmpx = UTMPX_FILE; | ||
16139 | ; | ||
16140 | return 0; | ||
16141 | } | ||
16142 | _ACEOF | ||
16143 | rm -f conftest.$ac_objext | ||
16144 | if { (eval echo "$as_me:16144: \"$ac_compile\"") >&5 | ||
16145 | (eval $ac_compile) 2>&5 | ||
16146 | ac_status=$? | ||
16147 | echo "$as_me:16147: \$? = $ac_status" >&5 | ||
16148 | (exit $ac_status); } && | ||
16149 | { ac_try='test -s conftest.$ac_objext' | ||
16150 | { (eval echo "$as_me:16150: \"$ac_try\"") >&5 | ||
16151 | (eval $ac_try) 2>&5 | ||
16152 | ac_status=$? | ||
16153 | echo "$as_me:16153: \$? = $ac_status" >&5 | ||
16154 | (exit $ac_status); }; }; then | ||
16155 | echo "$as_me:16155: result: yes" >&5 | ||
16156 | echo "${ECHO_T}yes" >&6 | ||
16157 | else | ||
16158 | echo "$as_me: failed program was:" >&5 | ||
16159 | cat conftest.$ac_ext >&5 | ||
16160 | echo "$as_me:16160: result: no" >&5 | ||
16161 | echo "${ECHO_T}no" >&6 | ||
16162 | system_utmpx_path=no | ||
16163 | |||
16164 | fi | ||
16165 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16166 | if test -z "$conf_utmpx_location"; then | ||
16167 | if test x"$system_utmpx_path" = x"no" ; then | ||
16168 | cat >>confdefs.h <<\EOF | ||
16169 | #define DISABLE_UTMPX 1 | ||
16170 | EOF | ||
16171 | |||
16172 | fi | ||
16173 | else | ||
16174 | cat >>confdefs.h <<EOF | ||
16175 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
16176 | EOF | ||
16177 | |||
16178 | fi | ||
16179 | |||
16180 | echo "$as_me:16180: checking if your system defines WTMPX_FILE" >&5 | ||
16181 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
16182 | cat >conftest.$ac_ext <<_ACEOF | ||
16183 | #line 16183 "configure" | ||
16184 | #include "confdefs.h" | ||
16185 | |||
16186 | #include <sys/types.h> | ||
16187 | #include <utmp.h> | ||
16188 | #ifdef HAVE_UTMPX_H | ||
16189 | #include <utmpx.h> | ||
16190 | #endif | ||
16191 | #ifdef HAVE_PATHS_H | ||
16192 | # include <paths.h> | ||
16193 | #endif | ||
16194 | |||
16195 | int | ||
16196 | main () | ||
16197 | { | ||
16198 | char *wtmpx = WTMPX_FILE; | ||
16199 | ; | ||
16200 | return 0; | ||
16201 | } | ||
16202 | _ACEOF | ||
16203 | rm -f conftest.$ac_objext | ||
16204 | if { (eval echo "$as_me:16204: \"$ac_compile\"") >&5 | ||
16205 | (eval $ac_compile) 2>&5 | ||
16206 | ac_status=$? | ||
16207 | echo "$as_me:16207: \$? = $ac_status" >&5 | ||
16208 | (exit $ac_status); } && | ||
16209 | { ac_try='test -s conftest.$ac_objext' | ||
16210 | { (eval echo "$as_me:16210: \"$ac_try\"") >&5 | ||
16211 | (eval $ac_try) 2>&5 | ||
16212 | ac_status=$? | ||
16213 | echo "$as_me:16213: \$? = $ac_status" >&5 | ||
16214 | (exit $ac_status); }; }; then | ||
16215 | echo "$as_me:16215: result: yes" >&5 | ||
16216 | echo "${ECHO_T}yes" >&6 | ||
16217 | else | ||
16218 | echo "$as_me: failed program was:" >&5 | ||
16219 | cat conftest.$ac_ext >&5 | ||
16220 | echo "$as_me:16220: result: no" >&5 | ||
16221 | echo "${ECHO_T}no" >&6 | ||
16222 | system_wtmpx_path=no | ||
16223 | |||
16224 | fi | ||
16225 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16226 | if test -z "$conf_wtmpx_location"; then | ||
16227 | if test x"$system_wtmpx_path" = x"no" ; then | ||
16228 | cat >>confdefs.h <<\EOF | ||
16229 | #define DISABLE_WTMPX 1 | ||
16230 | EOF | ||
16231 | |||
16232 | fi | ||
16233 | else | ||
16234 | cat >>confdefs.h <<EOF | ||
16235 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
16236 | EOF | ||
16237 | |||
16238 | fi | ||
16239 | |||
16240 | if test ! -z "$blibpath" ; then | ||
16241 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
16242 | { echo "$as_me:16242: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
16243 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
16244 | fi | ||
16245 | |||
16246 | if test "$PAM_MSG" = yes ; then | ||
16247 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
16248 | fi | ||
16249 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
16250 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
16251 | fi | ||
16252 | |||
16253 | ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds" | ||
16254 | |||
16255 | cat >confcache <<\_ACEOF | ||
16256 | # This file is a shell script that caches the results of configure | ||
16257 | # tests run on this system so they can be shared between configure | ||
16258 | # scripts and configure runs, see configure's option --config-cache. | ||
16259 | # It is not useful on other systems. If it contains results you don't | ||
16260 | # want to keep, you may remove or edit it. | ||
16261 | # | ||
16262 | # config.status only pays attention to the cache file if you give it | ||
16263 | # the --recheck option to rerun configure. | ||
16264 | # | ||
16265 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | ||
16266 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
16267 | # following values. | ||
16268 | |||
16269 | _ACEOF | ||
16270 | |||
16271 | # The following way of writing the cache mishandles newlines in values, | ||
16272 | # but we know of no workaround that is simple, portable, and efficient. | ||
16273 | # So, don't put newlines in cache variables' values. | ||
16274 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
16275 | # and sets the high bit in the cache file unless we assign to the vars. | ||
16276 | { | ||
16277 | (set) 2>&1 | | ||
16278 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
16279 | *ac_space=\ *) | ||
16280 | # `set' does not quote correctly, so add quotes (double-quote | ||
16281 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
16282 | sed -n \ | ||
16283 | "s/'/'\\\\''/g; | ||
16284 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
16285 | ;; | ||
16286 | *) | ||
16287 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
16288 | sed -n \ | ||
16289 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
16290 | ;; | ||
16291 | esac; | ||
16292 | } | | ||
16293 | sed ' | ||
16294 | t clear | ||
16295 | : clear | ||
16296 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
16297 | t end | ||
16298 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
16299 | : end' >>confcache | ||
16300 | if cmp -s $cache_file confcache; then :; else | ||
16301 | if test -w $cache_file; then | ||
16302 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
16303 | cat confcache >$cache_file | ||
16304 | else | ||
16305 | echo "not updating unwritable cache $cache_file" | ||
16306 | fi | ||
16307 | fi | ||
16308 | rm -f confcache | ||
16309 | |||
16310 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
16311 | # Let make expand exec_prefix. | ||
16312 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
16313 | |||
16314 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
16315 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
16316 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
16317 | # (actually we leave an empty line to preserve line numbers). | ||
16318 | if test "x$srcdir" = x.; then | ||
16319 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
16320 | s/:*\$(srcdir):*/:/; | ||
16321 | s/:*\${srcdir}:*/:/; | ||
16322 | s/:*@srcdir@:*/:/; | ||
16323 | s/^\([^=]*=[ ]*\):*/\1/; | ||
16324 | s/:*$//; | ||
16325 | s/^[^=]*=[ ]*$//; | ||
16326 | }' | ||
16327 | fi | ||
16328 | |||
16329 | DEFS=-DHAVE_CONFIG_H | ||
16330 | |||
16331 | : ${CONFIG_STATUS=./config.status} | ||
16332 | ac_clean_files_save=$ac_clean_files | ||
16333 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
16334 | { echo "$as_me:16334: creating $CONFIG_STATUS" >&5 | ||
16335 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
16336 | cat >$CONFIG_STATUS <<_ACEOF | ||
16337 | #! $SHELL | ||
16338 | # Generated automatically by configure. | ||
16339 | # Run this file to recreate the current configuration. | ||
16340 | # Compiler output produced by configure, useful for debugging | ||
16341 | # configure, is in config.log if it exists. | ||
16342 | |||
16343 | debug=false | ||
16344 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
16345 | ac_cs_invocation="\$0 \$@" | ||
16346 | |||
16347 | _ACEOF | ||
16348 | |||
16349 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
16350 | # Be Bourne compatible | ||
16351 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
16352 | emulate sh | ||
16353 | NULLCMD=: | ||
16354 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
16355 | set -o posix | ||
16356 | fi | ||
16357 | |||
16358 | # Name of the executable. | ||
16359 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | ||
16360 | |||
16361 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
16362 | as_expr=expr | ||
16363 | else | ||
16364 | as_expr=false | ||
16365 | fi | ||
16366 | |||
16367 | rm -f conf$$ conf$$.exe conf$$.file | ||
16368 | echo >conf$$.file | ||
16369 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
16370 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
16371 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
16372 | if test -f conf$$.exe; then | ||
16373 | # Don't use ln at all; we don't have any links | ||
16374 | as_ln_s='cp -p' | ||
16375 | else | ||
16376 | as_ln_s='ln -s' | ||
16377 | fi | ||
16378 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
16379 | as_ln_s=ln | ||
16380 | else | ||
16381 | as_ln_s='cp -p' | ||
16382 | fi | ||
16383 | rm -f conf$$ conf$$.exe conf$$.file | ||
16384 | |||
16385 | as_executable_p="test -f" | ||
16386 | |||
16387 | # Support unset when possible. | ||
16388 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
16389 | as_unset=unset | ||
16390 | else | ||
16391 | as_unset=false | ||
16392 | fi | ||
16393 | |||
16394 | # NLS nuisances. | ||
16395 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | ||
16396 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | ||
16397 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | ||
16398 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | ||
16399 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | ||
16400 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | ||
16401 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | ||
16402 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | ||
16403 | |||
16404 | # IFS | ||
16405 | # We need space, tab and new line, in precisely that order. | ||
16406 | as_nl=' | ||
16407 | ' | ||
16408 | IFS=" $as_nl" | ||
16409 | |||
16410 | # CDPATH. | ||
16411 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | ||
16412 | |||
16413 | exec 6>&1 | ||
16414 | |||
16415 | _ACEOF | ||
16416 | |||
16417 | # Files that config.status was made for. | ||
16418 | if test -n "$ac_config_files"; then | ||
16419 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
16420 | fi | ||
16421 | |||
16422 | if test -n "$ac_config_headers"; then | ||
16423 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
16424 | fi | ||
16425 | |||
16426 | if test -n "$ac_config_links"; then | ||
16427 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
16428 | fi | ||
16429 | |||
16430 | if test -n "$ac_config_commands"; then | ||
16431 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
16432 | fi | ||
16433 | |||
16434 | cat >>$CONFIG_STATUS <<\EOF | ||
16435 | |||
16436 | ac_cs_usage="\ | ||
16437 | \`$as_me' instantiates files from templates according to the | ||
16438 | current configuration. | ||
16439 | |||
16440 | Usage: $0 [OPTIONS] [FILE]... | ||
16441 | |||
16442 | -h, --help print this help, then exit | ||
16443 | -V, --version print version number, then exit | ||
16444 | -d, --debug don't remove temporary files | ||
16445 | --recheck update $as_me by reconfiguring in the same conditions | ||
16446 | --file=FILE[:TEMPLATE] | ||
16447 | instantiate the configuration file FILE | ||
16448 | --header=FILE[:TEMPLATE] | ||
16449 | instantiate the configuration header FILE | ||
16450 | |||
16451 | Configuration files: | ||
16452 | $config_files | ||
16453 | |||
16454 | Configuration headers: | ||
16455 | $config_headers | ||
16456 | |||
16457 | Report bugs to <bug-autoconf@gnu.org>." | ||
16458 | EOF | ||
16459 | |||
16460 | cat >>$CONFIG_STATUS <<EOF | ||
16461 | ac_cs_version="\\ | ||
16462 | config.status | ||
16463 | configured by $0, generated by GNU Autoconf 2.52, | ||
16464 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
16465 | |||
16466 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
16467 | Free Software Foundation, Inc. | ||
16468 | This config.status script is free software; the Free Software Foundation | ||
16469 | gives unlimited permission to copy, distribute and modify it." | ||
16470 | srcdir=$srcdir | ||
16471 | INSTALL="$INSTALL" | ||
16472 | EOF | ||
16473 | |||
16474 | cat >>$CONFIG_STATUS <<\EOF | ||
16475 | # If no file are specified by the user, then we need to provide default | ||
16476 | # value. By we need to know if files were specified by the user. | ||
16477 | ac_need_defaults=: | ||
16478 | while test $# != 0 | ||
16479 | do | ||
16480 | case $1 in | ||
16481 | --*=*) | ||
16482 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
16483 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
16484 | shift | ||
16485 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | ||
16486 | shift | ||
16487 | ;; | ||
16488 | -*);; | ||
16489 | *) # This is not an option, so the user has probably given explicit | ||
16490 | # arguments. | ||
16491 | ac_need_defaults=false;; | ||
16492 | esac | ||
16493 | |||
16494 | case $1 in | ||
16495 | # Handling of the options. | ||
16496 | EOF | ||
16497 | cat >>$CONFIG_STATUS <<EOF | ||
16498 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
16499 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | ||
16500 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | ||
16501 | EOF | ||
16502 | cat >>$CONFIG_STATUS <<\EOF | ||
16503 | --version | --vers* | -V ) | ||
16504 | echo "$ac_cs_version"; exit 0 ;; | ||
16505 | --he | --h) | ||
16506 | # Conflict between --help and --header | ||
16507 | { { echo "$as_me:16507: error: ambiguous option: $1 | ||
16508 | Try \`$0 --help' for more information." >&5 | ||
16509 | echo "$as_me: error: ambiguous option: $1 | ||
16510 | Try \`$0 --help' for more information." >&2;} | ||
16511 | { (exit 1); exit 1; }; };; | ||
16512 | --help | --hel | -h ) | ||
16513 | echo "$ac_cs_usage"; exit 0 ;; | ||
16514 | --debug | --d* | -d ) | ||
16515 | debug=: ;; | ||
16516 | --file | --fil | --fi | --f ) | ||
16517 | shift | ||
16518 | CONFIG_FILES="$CONFIG_FILES $1" | ||
16519 | ac_need_defaults=false;; | ||
16520 | --header | --heade | --head | --hea ) | ||
16521 | shift | ||
16522 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | ||
16523 | ac_need_defaults=false;; | ||
16524 | |||
16525 | # This is an error. | ||
16526 | -*) { { echo "$as_me:16526: error: unrecognized option: $1 | ||
16527 | Try \`$0 --help' for more information." >&5 | ||
16528 | echo "$as_me: error: unrecognized option: $1 | ||
16529 | Try \`$0 --help' for more information." >&2;} | ||
16530 | { (exit 1); exit 1; }; } ;; | ||
16531 | |||
16532 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
16533 | |||
16534 | esac | ||
16535 | shift | ||
16536 | done | ||
16537 | |||
16538 | exec 5>>config.log | ||
16539 | cat >&5 << _ACEOF | ||
16540 | |||
16541 | ## ----------------------- ## | ||
16542 | ## Running config.status. ## | ||
16543 | ## ----------------------- ## | ||
16544 | |||
16545 | This file was extended by $as_me 2.52, executed with | ||
16546 | CONFIG_FILES = $CONFIG_FILES | ||
16547 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
16548 | CONFIG_LINKS = $CONFIG_LINKS | ||
16549 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
16550 | > $ac_cs_invocation | ||
16551 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
16552 | |||
16553 | _ACEOF | ||
16554 | EOF | ||
16555 | |||
16556 | cat >>$CONFIG_STATUS <<\EOF | ||
16557 | for ac_config_target in $ac_config_targets | ||
16558 | do | ||
16559 | case "$ac_config_target" in | ||
16560 | # Handling of arguments. | ||
16561 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
16562 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
16563 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
16564 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
16565 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
16566 | *) { { echo "$as_me:16566: error: invalid argument: $ac_config_target" >&5 | ||
16567 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
16568 | { (exit 1); exit 1; }; };; | ||
16569 | esac | ||
16570 | done | ||
16571 | |||
16572 | # If the user did not use the arguments to specify the items to instantiate, | ||
16573 | # then the envvar interface is used. Set only those that are not. | ||
16574 | # We use the long form for the default assignment because of an extremely | ||
16575 | # bizarre bug on SunOS 4.1.3. | ||
16576 | if $ac_need_defaults; then | ||
16577 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
16578 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
16579 | fi | ||
16580 | |||
16581 | # Create a temporary directory, and hook for its removal unless debugging. | ||
16582 | $debug || | ||
16583 | { | ||
16584 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
16585 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
16586 | } | ||
16587 | |||
16588 | # Create a (secure) tmp directory for tmp files. | ||
16589 | : ${TMPDIR=/tmp} | ||
16590 | { | ||
16591 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | ||
16592 | test -n "$tmp" && test -d "$tmp" | ||
16593 | } || | ||
16594 | { | ||
16595 | tmp=$TMPDIR/cs$$-$RANDOM | ||
16596 | (umask 077 && mkdir $tmp) | ||
16597 | } || | ||
16598 | { | ||
16599 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | ||
16600 | { (exit 1); exit 1; } | ||
16601 | } | ||
16602 | |||
16603 | EOF | ||
16604 | |||
16605 | cat >>$CONFIG_STATUS <<EOF | ||
16606 | |||
16607 | # | ||
16608 | # CONFIG_FILES section. | ||
16609 | # | ||
16610 | |||
16611 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
16612 | # This happens for instance when ./config.status config.h | ||
16613 | if test -n "\$CONFIG_FILES"; then | ||
16614 | # Protect against being on the right side of a sed subst in config.status. | ||
16615 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
16616 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
16617 | s,@SHELL@,$SHELL,;t t | ||
16618 | s,@exec_prefix@,$exec_prefix,;t t | ||
16619 | s,@prefix@,$prefix,;t t | ||
16620 | s,@program_transform_name@,$program_transform_name,;t t | ||
16621 | s,@bindir@,$bindir,;t t | ||
16622 | s,@sbindir@,$sbindir,;t t | ||
16623 | s,@libexecdir@,$libexecdir,;t t | ||
16624 | s,@datadir@,$datadir,;t t | ||
16625 | s,@sysconfdir@,$sysconfdir,;t t | ||
16626 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
16627 | s,@localstatedir@,$localstatedir,;t t | ||
16628 | s,@libdir@,$libdir,;t t | ||
16629 | s,@includedir@,$includedir,;t t | ||
16630 | s,@oldincludedir@,$oldincludedir,;t t | ||
16631 | s,@infodir@,$infodir,;t t | ||
16632 | s,@mandir@,$mandir,;t t | ||
16633 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
16634 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
16635 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
16636 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
16637 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
16638 | s,@build_alias@,$build_alias,;t t | ||
16639 | s,@host_alias@,$host_alias,;t t | ||
16640 | s,@target_alias@,$target_alias,;t t | ||
16641 | s,@ECHO_C@,$ECHO_C,;t t | ||
16642 | s,@ECHO_N@,$ECHO_N,;t t | ||
16643 | s,@ECHO_T@,$ECHO_T,;t t | ||
16644 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
16645 | s,@DEFS@,$DEFS,;t t | ||
16646 | s,@LIBS@,$LIBS,;t t | ||
16647 | s,@CC@,$CC,;t t | ||
16648 | s,@CFLAGS@,$CFLAGS,;t t | ||
16649 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
16650 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
16651 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
16652 | s,@EXEEXT@,$EXEEXT,;t t | ||
16653 | s,@OBJEXT@,$OBJEXT,;t t | ||
16654 | s,@build@,$build,;t t | ||
16655 | s,@build_cpu@,$build_cpu,;t t | ||
16656 | s,@build_vendor@,$build_vendor,;t t | ||
16657 | s,@build_os@,$build_os,;t t | ||
16658 | s,@host@,$host,;t t | ||
16659 | s,@host_cpu@,$host_cpu,;t t | ||
16660 | s,@host_vendor@,$host_vendor,;t t | ||
16661 | s,@host_os@,$host_os,;t t | ||
16662 | s,@AWK@,$AWK,;t t | ||
16663 | s,@CPP@,$CPP,;t t | ||
16664 | s,@RANLIB@,$RANLIB,;t t | ||
16665 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
16666 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
16667 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
16668 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
16669 | s,@AR@,$AR,;t t | ||
16670 | s,@PERL@,$PERL,;t t | ||
16671 | s,@SED@,$SED,;t t | ||
16672 | s,@ENT@,$ENT,;t t | ||
16673 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
16674 | s,@SH@,$SH,;t t | ||
16675 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
16676 | s,@LD@,$LD,;t t | ||
16677 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
16678 | s,@LIBPAM@,$LIBPAM,;t t | ||
16679 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
16680 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
16681 | s,@PROG_LS@,$PROG_LS,;t t | ||
16682 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
16683 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
16684 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
16685 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
16686 | s,@PROG_PS@,$PROG_PS,;t t | ||
16687 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
16688 | s,@PROG_W@,$PROG_W,;t t | ||
16689 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
16690 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
16691 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
16692 | s,@PROG_DF@,$PROG_DF,;t t | ||
16693 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
16694 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
16695 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
16696 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
16697 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
16698 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
16699 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
16700 | s,@xauth_path@,$xauth_path,;t t | ||
16701 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
16702 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
16703 | s,@NROFF@,$NROFF,;t t | ||
16704 | s,@MANTYPE@,$MANTYPE,;t t | ||
16705 | s,@mansubdir@,$mansubdir,;t t | ||
16706 | s,@user_path@,$user_path,;t t | ||
16707 | s,@piddir@,$piddir,;t t | ||
16708 | CEOF | ||
16709 | |||
16710 | EOF | ||
16711 | |||
16712 | cat >>$CONFIG_STATUS <<\EOF | ||
16713 | # Split the substitutions into bite-sized pieces for seds with | ||
16714 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
16715 | ac_max_sed_lines=48 | ||
16716 | ac_sed_frag=1 # Number of current file. | ||
16717 | ac_beg=1 # First line for current file. | ||
16718 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
16719 | ac_more_lines=: | ||
16720 | ac_sed_cmds= | ||
16721 | while $ac_more_lines; do | ||
16722 | if test $ac_beg -gt 1; then | ||
16723 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
16724 | else | ||
16725 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
16726 | fi | ||
16727 | if test ! -s $tmp/subs.frag; then | ||
16728 | ac_more_lines=false | ||
16729 | else | ||
16730 | # The purpose of the label and of the branching condition is to | ||
16731 | # speed up the sed processing (if there are no `@' at all, there | ||
16732 | # is no need to browse any of the substitutions). | ||
16733 | # These are the two extra sed commands mentioned above. | ||
16734 | (echo ':t | ||
16735 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
16736 | if test -z "$ac_sed_cmds"; then | ||
16737 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
16738 | else | ||
16739 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
16740 | fi | ||
16741 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
16742 | ac_beg=$ac_end | ||
16743 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
16744 | fi | ||
16745 | done | ||
16746 | if test -z "$ac_sed_cmds"; then | ||
16747 | ac_sed_cmds=cat | ||
16748 | fi | ||
16749 | fi # test -n "$CONFIG_FILES" | ||
16750 | |||
16751 | EOF | ||
16752 | cat >>$CONFIG_STATUS <<\EOF | ||
16753 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
16754 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
16755 | case $ac_file in | ||
16756 | - | *:- | *:-:* ) # input from stdin | ||
16757 | cat >$tmp/stdin | ||
16758 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
16759 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
16760 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
16761 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
16762 | * ) ac_file_in=$ac_file.in ;; | ||
16763 | esac | ||
16764 | |||
16765 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
16766 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
16767 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
16768 | X"$ac_file" : 'X\(//\)$' \| \ | ||
16769 | X"$ac_file" : 'X\(/\)' \| \ | ||
16770 | . : '\(.\)' 2>/dev/null || | ||
16771 | echo X"$ac_file" | | ||
16772 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
16773 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
16774 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
16775 | /^X\(\/\).*/{ s//\1/; q; } | ||
16776 | s/.*/./; q'` | ||
16777 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
16778 | { case "$ac_dir" in | ||
16779 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
16780 | *) as_incr_dir=.;; | ||
16781 | esac | ||
16782 | as_dummy="$ac_dir" | ||
16783 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
16784 | case $as_mkdir_dir in | ||
16785 | # Skip DOS drivespec | ||
16786 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
16787 | *) | ||
16788 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
16789 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | ||
16790 | ;; | ||
16791 | esac | ||
16792 | done; } | ||
16793 | |||
16794 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | ||
16795 | # A "../" for each directory in $ac_dir_suffix. | ||
16796 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | ||
16797 | else | ||
16798 | ac_dir_suffix= ac_dots= | ||
16799 | fi | ||
16800 | |||
16801 | case $srcdir in | ||
16802 | .) ac_srcdir=. | ||
16803 | if test -z "$ac_dots"; then | ||
16804 | ac_top_srcdir=. | ||
16805 | else | ||
16806 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | ||
16807 | fi ;; | ||
16808 | [\\/]* | ?:[\\/]* ) | ||
16809 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
16810 | ac_top_srcdir=$srcdir ;; | ||
16811 | *) # Relative path. | ||
16812 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix | ||
16813 | ac_top_srcdir=$ac_dots$srcdir ;; | ||
16814 | esac | ||
16815 | |||
16816 | case $INSTALL in | ||
16817 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
16818 | *) ac_INSTALL=$ac_dots$INSTALL ;; | ||
16819 | esac | ||
16820 | |||
16821 | if test x"$ac_file" != x-; then | ||
16822 | { echo "$as_me:16822: creating $ac_file" >&5 | ||
16823 | echo "$as_me: creating $ac_file" >&6;} | ||
16824 | rm -f "$ac_file" | ||
16825 | fi | ||
16826 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
16827 | # use $as_me), people would be surprised to read: | ||
16828 | # /* config.h. Generated automatically by config.status. */ | ||
16829 | configure_input="Generated automatically from `echo $ac_file_in | | ||
16830 | sed 's,.*/,,'` by configure." | ||
16831 | |||
16832 | # First look for the input files in the build tree, otherwise in the | ||
16833 | # src tree. | ||
16834 | ac_file_inputs=`IFS=: | ||
16835 | for f in $ac_file_in; do | ||
16836 | case $f in | ||
16837 | -) echo $tmp/stdin ;; | ||
16838 | [\\/$]*) | ||
16839 | # Absolute (can't be DOS-style, as IFS=:) | ||
16840 | test -f "$f" || { { echo "$as_me:16840: error: cannot find input file: $f" >&5 | ||
16841 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
16842 | { (exit 1); exit 1; }; } | ||
16843 | echo $f;; | ||
16844 | *) # Relative | ||
16845 | if test -f "$f"; then | ||
16846 | # Build tree | ||
16847 | echo $f | ||
16848 | elif test -f "$srcdir/$f"; then | ||
16849 | # Source tree | ||
16850 | echo $srcdir/$f | ||
16851 | else | ||
16852 | # /dev/null tree | ||
16853 | { { echo "$as_me:16853: error: cannot find input file: $f" >&5 | ||
16854 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
16855 | { (exit 1); exit 1; }; } | ||
16856 | fi;; | ||
16857 | esac | ||
16858 | done` || { (exit 1); exit 1; } | ||
16859 | EOF | ||
16860 | cat >>$CONFIG_STATUS <<EOF | ||
16861 | sed "$ac_vpsub | ||
16862 | $extrasub | ||
16863 | EOF | ||
16864 | cat >>$CONFIG_STATUS <<\EOF | ||
16865 | :t | ||
16866 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
16867 | s,@configure_input@,$configure_input,;t t | ||
16868 | s,@srcdir@,$ac_srcdir,;t t | ||
16869 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
16870 | s,@INSTALL@,$ac_INSTALL,;t t | ||
16871 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
16872 | rm -f $tmp/stdin | ||
16873 | if test x"$ac_file" != x-; then | ||
16874 | mv $tmp/out $ac_file | ||
16875 | else | ||
16876 | cat $tmp/out | ||
16877 | rm -f $tmp/out | ||
16878 | fi | ||
16879 | |||
16880 | done | ||
16881 | EOF | ||
16882 | cat >>$CONFIG_STATUS <<\EOF | ||
16883 | |||
16884 | # | ||
16885 | # CONFIG_HEADER section. | ||
16886 | # | ||
16887 | |||
16888 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
16889 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
16890 | # | ||
16891 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
16892 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
16893 | ac_dB='[ ].*$,\1#\2' | ||
16894 | ac_dC=' ' | ||
16895 | ac_dD=',;t' | ||
16896 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
16897 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
16898 | ac_uB='$,\1#\2define\3' | ||
16899 | ac_uC=' ' | ||
16900 | ac_uD=',;t' | ||
16901 | |||
16902 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
16903 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
16904 | case $ac_file in | ||
16905 | - | *:- | *:-:* ) # input from stdin | ||
16906 | cat >$tmp/stdin | ||
16907 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
16908 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
16909 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
16910 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
16911 | * ) ac_file_in=$ac_file.in ;; | ||
16912 | esac | ||
16913 | |||
16914 | test x"$ac_file" != x- && { echo "$as_me:16914: creating $ac_file" >&5 | ||
16915 | echo "$as_me: creating $ac_file" >&6;} | ||
16916 | |||
16917 | # First look for the input files in the build tree, otherwise in the | ||
16918 | # src tree. | ||
16919 | ac_file_inputs=`IFS=: | ||
16920 | for f in $ac_file_in; do | ||
16921 | case $f in | ||
16922 | -) echo $tmp/stdin ;; | ||
16923 | [\\/$]*) | ||
16924 | # Absolute (can't be DOS-style, as IFS=:) | ||
16925 | test -f "$f" || { { echo "$as_me:16925: error: cannot find input file: $f" >&5 | ||
16926 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
16927 | { (exit 1); exit 1; }; } | ||
16928 | echo $f;; | ||
16929 | *) # Relative | ||
16930 | if test -f "$f"; then | ||
16931 | # Build tree | ||
16932 | echo $f | ||
16933 | elif test -f "$srcdir/$f"; then | ||
16934 | # Source tree | ||
16935 | echo $srcdir/$f | ||
16936 | else | ||
16937 | # /dev/null tree | ||
16938 | { { echo "$as_me:16938: error: cannot find input file: $f" >&5 | ||
16939 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
16940 | { (exit 1); exit 1; }; } | ||
16941 | fi;; | ||
16942 | esac | ||
16943 | done` || { (exit 1); exit 1; } | ||
16944 | # Remove the trailing spaces. | ||
16945 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
16946 | |||
16947 | EOF | ||
16948 | |||
16949 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
16950 | # `conftest.undefs', that substitutes the proper values into | ||
16951 | # config.h.in to produce config.h. The first handles `#define' | ||
16952 | # templates, and the second `#undef' templates. | ||
16953 | # And first: Protect against being on the right side of a sed subst in | ||
16954 | # config.status. Protect against being in an unquoted here document | ||
16955 | # in config.status. | ||
16956 | rm -f conftest.defines conftest.undefs | ||
16957 | # Using a here document instead of a string reduces the quoting nightmare. | ||
16958 | # Putting comments in sed scripts is not portable. | ||
16959 | # | ||
16960 | # `end' is used to avoid that the second main sed command (meant for | ||
16961 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
16962 | # See the Autoconf documentation for `clear'. | ||
16963 | cat >confdef2sed.sed <<\EOF | ||
16964 | s/[\\&,]/\\&/g | ||
16965 | s,[\\$`],\\&,g | ||
16966 | t clear | ||
16967 | : clear | ||
16968 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
16969 | t end | ||
16970 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
16971 | : end | ||
16972 | EOF | ||
16973 | # If some macros were called several times there might be several times | ||
16974 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
16975 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
16976 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
16977 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
16978 | rm -f confdef2sed.sed | ||
16979 | |||
16980 | # This sed command replaces #undef with comments. This is necessary, for | ||
16981 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
16982 | # on some systems where configure will not decide to define it. | ||
16983 | cat >>conftest.undefs <<\EOF | ||
16984 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
16985 | EOF | ||
16986 | |||
16987 | # Break up conftest.defines because some shells have a limit on the size | ||
16988 | # of here documents, and old seds have small limits too (100 cmds). | ||
16989 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
16990 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
16991 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
16992 | echo ' :' >>$CONFIG_STATUS | ||
16993 | rm -f conftest.tail | ||
16994 | while grep . conftest.defines >/dev/null | ||
16995 | do | ||
16996 | # Write a limited-size here document to $tmp/defines.sed. | ||
16997 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
16998 | # Speed up: don't consider the non `#define' lines. | ||
16999 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
17000 | # Work around the forget-to-reset-the-flag bug. | ||
17001 | echo 't clr' >>$CONFIG_STATUS | ||
17002 | echo ': clr' >>$CONFIG_STATUS | ||
17003 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
17004 | echo 'CEOF | ||
17005 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
17006 | rm -f $tmp/in | ||
17007 | mv $tmp/out $tmp/in | ||
17008 | ' >>$CONFIG_STATUS | ||
17009 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
17010 | rm -f conftest.defines | ||
17011 | mv conftest.tail conftest.defines | ||
17012 | done | ||
17013 | rm -f conftest.defines | ||
17014 | echo ' fi # egrep' >>$CONFIG_STATUS | ||
17015 | echo >>$CONFIG_STATUS | ||
17016 | |||
17017 | # Break up conftest.undefs because some shells have a limit on the size | ||
17018 | # of here documents, and old seds have small limits too (100 cmds). | ||
17019 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
17020 | rm -f conftest.tail | ||
17021 | while grep . conftest.undefs >/dev/null | ||
17022 | do | ||
17023 | # Write a limited-size here document to $tmp/undefs.sed. | ||
17024 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
17025 | # Speed up: don't consider the non `#undef' | ||
17026 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
17027 | # Work around the forget-to-reset-the-flag bug. | ||
17028 | echo 't clr' >>$CONFIG_STATUS | ||
17029 | echo ': clr' >>$CONFIG_STATUS | ||
17030 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
17031 | echo 'CEOF | ||
17032 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
17033 | rm -f $tmp/in | ||
17034 | mv $tmp/out $tmp/in | ||
17035 | ' >>$CONFIG_STATUS | ||
17036 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
17037 | rm -f conftest.undefs | ||
17038 | mv conftest.tail conftest.undefs | ||
17039 | done | ||
17040 | rm -f conftest.undefs | ||
17041 | |||
17042 | cat >>$CONFIG_STATUS <<\EOF | ||
17043 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17044 | # use $as_me), people would be surprised to read: | ||
17045 | # /* config.h. Generated automatically by config.status. */ | ||
17046 | if test x"$ac_file" = x-; then | ||
17047 | echo "/* Generated automatically by configure. */" >$tmp/config.h | ||
17048 | else | ||
17049 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h | ||
17050 | fi | ||
17051 | cat $tmp/in >>$tmp/config.h | ||
17052 | rm -f $tmp/in | ||
17053 | if test x"$ac_file" != x-; then | ||
17054 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | ||
17055 | { echo "$as_me:17055: $ac_file is unchanged" >&5 | ||
17056 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
17057 | else | ||
17058 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17059 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
17060 | X"$ac_file" : 'X\(//\)$' \| \ | ||
17061 | X"$ac_file" : 'X\(/\)' \| \ | ||
17062 | . : '\(.\)' 2>/dev/null || | ||
17063 | echo X"$ac_file" | | ||
17064 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
17065 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
17066 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
17067 | /^X\(\/\).*/{ s//\1/; q; } | ||
17068 | s/.*/./; q'` | ||
17069 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
17070 | { case "$ac_dir" in | ||
17071 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
17072 | *) as_incr_dir=.;; | ||
17073 | esac | ||
17074 | as_dummy="$ac_dir" | ||
17075 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
17076 | case $as_mkdir_dir in | ||
17077 | # Skip DOS drivespec | ||
17078 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
17079 | *) | ||
17080 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
17081 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | ||
17082 | ;; | ||
17083 | esac | ||
17084 | done; } | ||
17085 | |||
17086 | fi | ||
17087 | rm -f $ac_file | ||
17088 | mv $tmp/config.h $ac_file | ||
17089 | fi | ||
17090 | else | ||
17091 | cat $tmp/config.h | ||
17092 | rm -f $tmp/config.h | ||
17093 | fi | ||
17094 | done | ||
17095 | EOF | ||
17096 | |||
17097 | cat >>$CONFIG_STATUS <<\EOF | ||
17098 | |||
17099 | { (exit 0); exit 0; } | ||
17100 | EOF | ||
17101 | chmod +x $CONFIG_STATUS | ||
17102 | ac_clean_files=$ac_clean_files_save | ||
17103 | |||
17104 | # configure is writing to config.log, and then calls config.status. | ||
17105 | # config.status does its own redirection, appending to config.log. | ||
17106 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
17107 | # by configure, so config.status won't be able to write to it; its | ||
17108 | # output is simply discarded. So we exec the FD to /dev/null, | ||
17109 | # effectively closing config.log, so it can be properly (re)opened and | ||
17110 | # appended to by config.status. When coming back to configure, we | ||
17111 | # need to make the FD available again. | ||
17112 | if test "$no_create" != yes; then | ||
17113 | ac_cs_success=: | ||
17114 | exec 5>/dev/null | ||
17115 | $SHELL $CONFIG_STATUS || ac_cs_success=false | ||
17116 | exec 5>>config.log | ||
17117 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
17118 | # would make configure fail if this is the last instruction. | ||
17119 | $ac_cs_success || { (exit 1); exit 1; } | ||
17120 | fi | ||
17121 | |||
17122 | # Print summary of options | ||
17123 | |||
17124 | # Someone please show me a better way :) | ||
17125 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
17126 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
17127 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
17128 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
17129 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
17130 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
17131 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
17132 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
17133 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
17134 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
17135 | |||
17136 | echo "" | ||
17137 | echo "OpenSSH has been configured with the following options:" | ||
17138 | echo " User binaries: $B" | ||
17139 | echo " System binaries: $C" | ||
17140 | echo " Configuration files: $D" | ||
17141 | echo " Askpass program: $E" | ||
17142 | echo " Manual pages: $F" | ||
17143 | echo " PID file: $G" | ||
17144 | echo " Privilege separation chroot path: $H" | ||
17145 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
17146 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
17147 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
17148 | else | ||
17149 | echo " sshd default user PATH: $I" | ||
17150 | if test ! -z "$external_path_file"; then | ||
17151 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
17152 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
17153 | fi | ||
17154 | fi | ||
17155 | if test ! -z "$superuser_path" ; then | ||
17156 | echo " sshd superuser user PATH: $J" | ||
17157 | fi | ||
17158 | echo " Manpage format: $MANTYPE" | ||
17159 | echo " DNS support: $DNS_MSG" | ||
17160 | echo " PAM support: $PAM_MSG" | ||
17161 | echo " KerberosV support: $KRB5_MSG" | ||
17162 | echo " Smartcard support: $SCARD_MSG" | ||
17163 | echo " S/KEY support: $SKEY_MSG" | ||
17164 | echo " TCP Wrappers support: $TCPW_MSG" | ||
17165 | echo " MD5 password support: $MD5_MSG" | ||
17166 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
17167 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
17168 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
17169 | echo " Random number source: $RAND_MSG" | ||
17170 | if test ! -z "$USE_RAND_HELPER" ; then | ||
17171 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
17172 | fi | ||
17173 | |||
17174 | echo "" | ||
17175 | |||
17176 | echo " Host: ${host}" | ||
17177 | echo " Compiler: ${CC}" | ||
17178 | echo " Compiler flags: ${CFLAGS}" | ||
17179 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
17180 | echo " Linker flags: ${LDFLAGS}" | ||
17181 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
17182 | |||
17183 | echo "" | ||
17184 | |||
17185 | if test "x$PAM_MSG" = "xyes" ; then | ||
17186 | echo "PAM is enabled. You may need to install a PAM control file " | ||
17187 | echo "for sshd, otherwise password authentication may fail. " | ||
17188 | echo "Example PAM control files can be found in the contrib/ " | ||
17189 | echo "subdirectory" | ||
17190 | echo "" | ||
17191 | fi | ||
17192 | |||
17193 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
17194 | echo "WARNING: you are using the builtin random number collection " | ||
17195 | echo "service. Please read WARNING.RNG and request that your OS " | ||
17196 | echo "vendor includes kernel-based random number collection in " | ||
17197 | echo "future versions of your OS." | ||
17198 | echo "" | ||
17199 | fi | ||
17200 | |||