diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17562 |
1 files changed, 17562 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..ad13a1610 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,17562 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.53. | ||
4 | # | ||
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | ||
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 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
11 | as_expr=expr | ||
12 | else | ||
13 | as_expr=false | ||
14 | fi | ||
15 | |||
16 | |||
17 | ## --------------------- ## | ||
18 | ## M4sh Initialization. ## | ||
19 | ## --------------------- ## | ||
20 | |||
21 | # Be Bourne compatible | ||
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
23 | emulate sh | ||
24 | NULLCMD=: | ||
25 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
26 | set -o posix | ||
27 | fi | ||
28 | |||
29 | # NLS nuisances. | ||
30 | # Support unset when possible. | ||
31 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
32 | as_unset=unset | ||
33 | else | ||
34 | as_unset=false | ||
35 | fi | ||
36 | |||
37 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | ||
38 | { $as_unset LANG || test "${LANG+set}" != set; } || | ||
39 | { LANG=C; export LANG; } | ||
40 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | ||
41 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | ||
42 | { LC_ALL=C; export LC_ALL; } | ||
43 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | ||
44 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | ||
45 | { LC_TIME=C; export LC_TIME; } | ||
46 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | ||
47 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | ||
48 | { LC_CTYPE=C; export LC_CTYPE; } | ||
49 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | ||
50 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | ||
51 | { LANGUAGE=C; export LANGUAGE; } | ||
52 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | ||
53 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | ||
54 | { LC_COLLATE=C; export LC_COLLATE; } | ||
55 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | ||
56 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | ||
57 | { LC_NUMERIC=C; export LC_NUMERIC; } | ||
58 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | ||
59 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | ||
60 | { LC_MESSAGES=C; export LC_MESSAGES; } | ||
61 | |||
62 | |||
63 | # Name of the executable. | ||
64 | as_me=`(basename "$0") 2>/dev/null || | ||
65 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
66 | X"$0" : 'X\(//\)$' \| \ | ||
67 | X"$0" : 'X\(/\)$' \| \ | ||
68 | . : '\(.\)' 2>/dev/null || | ||
69 | echo X/"$0" | | ||
70 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
71 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
72 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
73 | s/.*/./; q'` | ||
74 | |||
75 | # PATH needs CR, and LINENO needs CR and PATH. | ||
76 | # Avoid depending upon Character Ranges. | ||
77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
80 | as_cr_digits='0123456789' | ||
81 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
82 | |||
83 | # The user is always right. | ||
84 | if test "${PATH_SEPARATOR+set}" != set; then | ||
85 | echo "#! /bin/sh" >conftest.sh | ||
86 | echo "exit 0" >>conftest.sh | ||
87 | chmod +x conftest.sh | ||
88 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | ||
89 | PATH_SEPARATOR=';' | ||
90 | else | ||
91 | PATH_SEPARATOR=: | ||
92 | fi | ||
93 | rm -f conftest.sh | ||
94 | fi | ||
95 | |||
96 | |||
97 | as_lineno_1=$LINENO | ||
98 | as_lineno_2=$LINENO | ||
99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
100 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
101 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
102 | # Find who we are. Look in the path if we contain no path at all | ||
103 | # relative or not. | ||
104 | case $0 in | ||
105 | *[\\/]* ) as_myself=$0 ;; | ||
106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
107 | for as_dir in $PATH | ||
108 | do | ||
109 | IFS=$as_save_IFS | ||
110 | test -z "$as_dir" && as_dir=. | ||
111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
112 | done | ||
113 | |||
114 | ;; | ||
115 | esac | ||
116 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
117 | # in which case we are not to be found in the path. | ||
118 | if test "x$as_myself" = x; then | ||
119 | as_myself=$0 | ||
120 | fi | ||
121 | if test ! -f "$as_myself"; then | ||
122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
123 | { (exit 1); exit 1; }; } | ||
124 | fi | ||
125 | case $CONFIG_SHELL in | ||
126 | '') | ||
127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
129 | do | ||
130 | IFS=$as_save_IFS | ||
131 | test -z "$as_dir" && as_dir=. | ||
132 | for as_base in sh bash ksh sh5; do | ||
133 | case $as_dir in | ||
134 | /*) | ||
135 | if ("$as_dir/$as_base" -c ' | ||
136 | as_lineno_1=$LINENO | ||
137 | as_lineno_2=$LINENO | ||
138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
139 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
141 | CONFIG_SHELL=$as_dir/$as_base | ||
142 | export CONFIG_SHELL | ||
143 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
144 | fi;; | ||
145 | esac | ||
146 | done | ||
147 | done | ||
148 | ;; | ||
149 | esac | ||
150 | |||
151 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
152 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
153 | # line-number line before each line; the second 'sed' does the real | ||
154 | # work. The second script uses 'N' to pair each line-number line | ||
155 | # with the numbered line, and appends trailing '-' during | ||
156 | # substitution so that $LINENO is not a special case at line end. | ||
157 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
158 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
159 | sed '=' <$as_myself | | ||
160 | sed ' | ||
161 | N | ||
162 | s,$,-, | ||
163 | : loop | ||
164 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
165 | t loop | ||
166 | s,-$,, | ||
167 | s,^['$as_cr_digits']*\n,, | ||
168 | ' >$as_me.lineno && | ||
169 | chmod +x $as_me.lineno || | ||
170 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
171 | { (exit 1); exit 1; }; } | ||
172 | |||
173 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
174 | # (the dirname of $[0] is not the place where we might find the | ||
175 | # original and so on. Autoconf is especially sensible to this). | ||
176 | . ./$as_me.lineno | ||
177 | # Exit status is that of the last command. | ||
178 | exit | ||
179 | } | ||
180 | |||
181 | |||
182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
183 | *c*,-n*) ECHO_N= ECHO_C=' | ||
184 | ' ECHO_T=' ' ;; | ||
185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
187 | esac | ||
188 | |||
189 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
190 | as_expr=expr | ||
191 | else | ||
192 | as_expr=false | ||
193 | fi | ||
194 | |||
195 | rm -f conf$$ conf$$.exe conf$$.file | ||
196 | echo >conf$$.file | ||
197 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
198 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
200 | if test -f conf$$.exe; then | ||
201 | # Don't use ln at all; we don't have any links | ||
202 | as_ln_s='cp -p' | ||
203 | else | ||
204 | as_ln_s='ln -s' | ||
205 | fi | ||
206 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
207 | as_ln_s=ln | ||
208 | else | ||
209 | as_ln_s='cp -p' | ||
210 | fi | ||
211 | rm -f conf$$ conf$$.exe conf$$.file | ||
212 | |||
213 | as_executable_p="test -f" | ||
214 | |||
215 | # Sed expression to map a string onto a valid CPP name. | ||
216 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
217 | |||
218 | # Sed expression to map a string onto a valid variable name. | ||
219 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
220 | |||
221 | |||
222 | # IFS | ||
223 | # We need space, tab and new line, in precisely that order. | ||
224 | as_nl=' | ||
225 | ' | ||
226 | IFS=" $as_nl" | ||
227 | |||
228 | # CDPATH. | ||
229 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | ||
230 | |||
231 | |||
232 | # Name of the host. | ||
233 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
234 | # so uname gets run too. | ||
235 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
236 | |||
237 | exec 6>&1 | ||
238 | |||
239 | # | ||
240 | # Initializations. | ||
241 | # | ||
242 | ac_default_prefix=/usr/local | ||
243 | cross_compiling=no | ||
244 | subdirs= | ||
245 | MFLAGS= | ||
246 | MAKEFLAGS= | ||
247 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
248 | |||
249 | # Maximum number of lines to put in a shell here document. | ||
250 | # This variable seems obsolete. It should probably be removed, and | ||
251 | # only ac_max_sed_lines should be used. | ||
252 | : ${ac_max_here_lines=38} | ||
253 | |||
254 | # Identity of this package. | ||
255 | PACKAGE_NAME= | ||
256 | PACKAGE_TARNAME= | ||
257 | PACKAGE_VERSION= | ||
258 | PACKAGE_STRING= | ||
259 | PACKAGE_BUGREPORT= | ||
260 | |||
261 | ac_unique_file="ssh.c" | ||
262 | # Factoring default headers for most tests. | ||
263 | ac_includes_default="\ | ||
264 | #include <stdio.h> | ||
265 | #if HAVE_SYS_TYPES_H | ||
266 | # include <sys/types.h> | ||
267 | #endif | ||
268 | #if HAVE_SYS_STAT_H | ||
269 | # include <sys/stat.h> | ||
270 | #endif | ||
271 | #if STDC_HEADERS | ||
272 | # include <stdlib.h> | ||
273 | # include <stddef.h> | ||
274 | #else | ||
275 | # if HAVE_STDLIB_H | ||
276 | # include <stdlib.h> | ||
277 | # endif | ||
278 | #endif | ||
279 | #if HAVE_STRING_H | ||
280 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
281 | # include <memory.h> | ||
282 | # endif | ||
283 | # include <string.h> | ||
284 | #endif | ||
285 | #if HAVE_STRINGS_H | ||
286 | # include <strings.h> | ||
287 | #endif | ||
288 | #if HAVE_INTTYPES_H | ||
289 | # include <inttypes.h> | ||
290 | #else | ||
291 | # if HAVE_STDINT_H | ||
292 | # include <stdint.h> | ||
293 | # endif | ||
294 | #endif | ||
295 | #if HAVE_UNISTD_H | ||
296 | # include <unistd.h> | ||
297 | #endif" | ||
298 | |||
299 | |||
300 | # Initialize some variables set by options. | ||
301 | ac_init_help= | ||
302 | ac_init_version=false | ||
303 | # The variables have the same names as the options, with | ||
304 | # dashes changed to underlines. | ||
305 | cache_file=/dev/null | ||
306 | exec_prefix=NONE | ||
307 | no_create= | ||
308 | no_recursion= | ||
309 | prefix=NONE | ||
310 | program_prefix=NONE | ||
311 | program_suffix=NONE | ||
312 | program_transform_name=s,x,x, | ||
313 | silent= | ||
314 | site= | ||
315 | srcdir= | ||
316 | verbose= | ||
317 | x_includes=NONE | ||
318 | x_libraries=NONE | ||
319 | |||
320 | # Installation directory options. | ||
321 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
322 | # and all the variables that are supposed to be based on exec_prefix | ||
323 | # by default will actually change. | ||
324 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
325 | bindir='${exec_prefix}/bin' | ||
326 | sbindir='${exec_prefix}/sbin' | ||
327 | libexecdir='${exec_prefix}/libexec' | ||
328 | datadir='${prefix}/share' | ||
329 | sysconfdir='${prefix}/etc' | ||
330 | sharedstatedir='${prefix}/com' | ||
331 | localstatedir='${prefix}/var' | ||
332 | libdir='${exec_prefix}/lib' | ||
333 | includedir='${prefix}/include' | ||
334 | oldincludedir='/usr/include' | ||
335 | infodir='${prefix}/info' | ||
336 | mandir='${prefix}/man' | ||
337 | |||
338 | ac_prev= | ||
339 | for ac_option | ||
340 | do | ||
341 | # If the previous option needs an argument, assign it. | ||
342 | if test -n "$ac_prev"; then | ||
343 | eval "$ac_prev=\$ac_option" | ||
344 | ac_prev= | ||
345 | continue | ||
346 | fi | ||
347 | |||
348 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
349 | |||
350 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
351 | |||
352 | case $ac_option in | ||
353 | |||
354 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
355 | ac_prev=bindir ;; | ||
356 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
357 | bindir=$ac_optarg ;; | ||
358 | |||
359 | -build | --build | --buil | --bui | --bu) | ||
360 | ac_prev=build_alias ;; | ||
361 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
362 | build_alias=$ac_optarg ;; | ||
363 | |||
364 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
365 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
366 | ac_prev=cache_file ;; | ||
367 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
368 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
369 | cache_file=$ac_optarg ;; | ||
370 | |||
371 | --config-cache | -C) | ||
372 | cache_file=config.cache ;; | ||
373 | |||
374 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
375 | ac_prev=datadir ;; | ||
376 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
377 | | --da=*) | ||
378 | datadir=$ac_optarg ;; | ||
379 | |||
380 | -disable-* | --disable-*) | ||
381 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
382 | # Reject names that are not valid shell variable names. | ||
383 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
384 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
385 | { (exit 1); exit 1; }; } | ||
386 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
387 | eval "enable_$ac_feature=no" ;; | ||
388 | |||
389 | -enable-* | --enable-*) | ||
390 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
391 | # Reject names that are not valid shell variable names. | ||
392 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
393 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
394 | { (exit 1); exit 1; }; } | ||
395 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
396 | case $ac_option in | ||
397 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
398 | *) ac_optarg=yes ;; | ||
399 | esac | ||
400 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
401 | |||
402 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
403 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
404 | | --exec | --exe | --ex) | ||
405 | ac_prev=exec_prefix ;; | ||
406 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
407 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
408 | | --exec=* | --exe=* | --ex=*) | ||
409 | exec_prefix=$ac_optarg ;; | ||
410 | |||
411 | -gas | --gas | --ga | --g) | ||
412 | # Obsolete; use --with-gas. | ||
413 | with_gas=yes ;; | ||
414 | |||
415 | -help | --help | --hel | --he | -h) | ||
416 | ac_init_help=long ;; | ||
417 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
418 | ac_init_help=recursive ;; | ||
419 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
420 | ac_init_help=short ;; | ||
421 | |||
422 | -host | --host | --hos | --ho) | ||
423 | ac_prev=host_alias ;; | ||
424 | -host=* | --host=* | --hos=* | --ho=*) | ||
425 | host_alias=$ac_optarg ;; | ||
426 | |||
427 | -includedir | --includedir | --includedi | --included | --include \ | ||
428 | | --includ | --inclu | --incl | --inc) | ||
429 | ac_prev=includedir ;; | ||
430 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
431 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
432 | includedir=$ac_optarg ;; | ||
433 | |||
434 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
435 | ac_prev=infodir ;; | ||
436 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
437 | infodir=$ac_optarg ;; | ||
438 | |||
439 | -libdir | --libdir | --libdi | --libd) | ||
440 | ac_prev=libdir ;; | ||
441 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
442 | libdir=$ac_optarg ;; | ||
443 | |||
444 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
445 | | --libexe | --libex | --libe) | ||
446 | ac_prev=libexecdir ;; | ||
447 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
448 | | --libexe=* | --libex=* | --libe=*) | ||
449 | libexecdir=$ac_optarg ;; | ||
450 | |||
451 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
452 | | --localstate | --localstat | --localsta | --localst \ | ||
453 | | --locals | --local | --loca | --loc | --lo) | ||
454 | ac_prev=localstatedir ;; | ||
455 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
456 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
457 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
458 | localstatedir=$ac_optarg ;; | ||
459 | |||
460 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
461 | ac_prev=mandir ;; | ||
462 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
463 | mandir=$ac_optarg ;; | ||
464 | |||
465 | -nfp | --nfp | --nf) | ||
466 | # Obsolete; use --without-fp. | ||
467 | with_fp=no ;; | ||
468 | |||
469 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
470 | | --no-cr | --no-c | -n) | ||
471 | no_create=yes ;; | ||
472 | |||
473 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
474 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
475 | no_recursion=yes ;; | ||
476 | |||
477 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
478 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
479 | | --oldin | --oldi | --old | --ol | --o) | ||
480 | ac_prev=oldincludedir ;; | ||
481 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
482 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
483 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
484 | oldincludedir=$ac_optarg ;; | ||
485 | |||
486 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
487 | ac_prev=prefix ;; | ||
488 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
489 | prefix=$ac_optarg ;; | ||
490 | |||
491 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
492 | | --program-pre | --program-pr | --program-p) | ||
493 | ac_prev=program_prefix ;; | ||
494 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
495 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
496 | program_prefix=$ac_optarg ;; | ||
497 | |||
498 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
499 | | --program-suf | --program-su | --program-s) | ||
500 | ac_prev=program_suffix ;; | ||
501 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
502 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
503 | program_suffix=$ac_optarg ;; | ||
504 | |||
505 | -program-transform-name | --program-transform-name \ | ||
506 | | --program-transform-nam | --program-transform-na \ | ||
507 | | --program-transform-n | --program-transform- \ | ||
508 | | --program-transform | --program-transfor \ | ||
509 | | --program-transfo | --program-transf \ | ||
510 | | --program-trans | --program-tran \ | ||
511 | | --progr-tra | --program-tr | --program-t) | ||
512 | ac_prev=program_transform_name ;; | ||
513 | -program-transform-name=* | --program-transform-name=* \ | ||
514 | | --program-transform-nam=* | --program-transform-na=* \ | ||
515 | | --program-transform-n=* | --program-transform-=* \ | ||
516 | | --program-transform=* | --program-transfor=* \ | ||
517 | | --program-transfo=* | --program-transf=* \ | ||
518 | | --program-trans=* | --program-tran=* \ | ||
519 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
520 | program_transform_name=$ac_optarg ;; | ||
521 | |||
522 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
523 | | -silent | --silent | --silen | --sile | --sil) | ||
524 | silent=yes ;; | ||
525 | |||
526 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
527 | ac_prev=sbindir ;; | ||
528 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
529 | | --sbi=* | --sb=*) | ||
530 | sbindir=$ac_optarg ;; | ||
531 | |||
532 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
533 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
534 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
535 | | --sha | --sh) | ||
536 | ac_prev=sharedstatedir ;; | ||
537 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
538 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
539 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
540 | | --sha=* | --sh=*) | ||
541 | sharedstatedir=$ac_optarg ;; | ||
542 | |||
543 | -site | --site | --sit) | ||
544 | ac_prev=site ;; | ||
545 | -site=* | --site=* | --sit=*) | ||
546 | site=$ac_optarg ;; | ||
547 | |||
548 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
549 | ac_prev=srcdir ;; | ||
550 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
551 | srcdir=$ac_optarg ;; | ||
552 | |||
553 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
554 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
555 | ac_prev=sysconfdir ;; | ||
556 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
557 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
558 | sysconfdir=$ac_optarg ;; | ||
559 | |||
560 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
561 | ac_prev=target_alias ;; | ||
562 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
563 | target_alias=$ac_optarg ;; | ||
564 | |||
565 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
566 | verbose=yes ;; | ||
567 | |||
568 | -version | --version | --versio | --versi | --vers | -V) | ||
569 | ac_init_version=: ;; | ||
570 | |||
571 | -with-* | --with-*) | ||
572 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
573 | # Reject names that are not valid shell variable names. | ||
574 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
575 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
576 | { (exit 1); exit 1; }; } | ||
577 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
578 | case $ac_option in | ||
579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
580 | *) ac_optarg=yes ;; | ||
581 | esac | ||
582 | eval "with_$ac_package='$ac_optarg'" ;; | ||
583 | |||
584 | -without-* | --without-*) | ||
585 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
586 | # Reject names that are not valid shell variable names. | ||
587 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
588 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
589 | { (exit 1); exit 1; }; } | ||
590 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
591 | eval "with_$ac_package=no" ;; | ||
592 | |||
593 | --x) | ||
594 | # Obsolete; use --with-x. | ||
595 | with_x=yes ;; | ||
596 | |||
597 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
598 | | --x-incl | --x-inc | --x-in | --x-i) | ||
599 | ac_prev=x_includes ;; | ||
600 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
601 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
602 | x_includes=$ac_optarg ;; | ||
603 | |||
604 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
605 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
606 | ac_prev=x_libraries ;; | ||
607 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
608 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
609 | x_libraries=$ac_optarg ;; | ||
610 | |||
611 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
612 | Try \`$0 --help' for more information." >&2 | ||
613 | { (exit 1); exit 1; }; } | ||
614 | ;; | ||
615 | |||
616 | *=*) | ||
617 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
618 | # Reject names that are not valid shell variable names. | ||
619 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
620 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
621 | { (exit 1); exit 1; }; } | ||
622 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
623 | eval "$ac_envvar='$ac_optarg'" | ||
624 | export $ac_envvar ;; | ||
625 | |||
626 | *) | ||
627 | # FIXME: should be removed in autoconf 3.0. | ||
628 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
629 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
630 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
631 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
632 | ;; | ||
633 | |||
634 | esac | ||
635 | done | ||
636 | |||
637 | if test -n "$ac_prev"; then | ||
638 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
639 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
640 | { (exit 1); exit 1; }; } | ||
641 | fi | ||
642 | |||
643 | # Be sure to have absolute paths. | ||
644 | for ac_var in exec_prefix prefix | ||
645 | do | ||
646 | eval ac_val=$`echo $ac_var` | ||
647 | case $ac_val in | ||
648 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
649 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
650 | { (exit 1); exit 1; }; };; | ||
651 | esac | ||
652 | done | ||
653 | |||
654 | # Be sure to have absolute paths. | ||
655 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
656 | localstatedir libdir includedir oldincludedir infodir mandir | ||
657 | do | ||
658 | eval ac_val=$`echo $ac_var` | ||
659 | case $ac_val in | ||
660 | [\\/$]* | ?:[\\/]* ) ;; | ||
661 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
662 | { (exit 1); exit 1; }; };; | ||
663 | esac | ||
664 | done | ||
665 | |||
666 | # There might be people who depend on the old broken behavior: `$host' | ||
667 | # used to hold the argument of --host etc. | ||
668 | # FIXME: To remove some day. | ||
669 | build=$build_alias | ||
670 | host=$host_alias | ||
671 | target=$target_alias | ||
672 | |||
673 | # FIXME: To remove some day. | ||
674 | if test "x$host_alias" != x; then | ||
675 | if test "x$build_alias" = x; then | ||
676 | cross_compiling=maybe | ||
677 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
678 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
679 | elif test "x$build_alias" != "x$host_alias"; then | ||
680 | cross_compiling=yes | ||
681 | fi | ||
682 | fi | ||
683 | |||
684 | ac_tool_prefix= | ||
685 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
686 | |||
687 | test "$silent" = yes && exec 6>/dev/null | ||
688 | |||
689 | |||
690 | # Find the source files, if location was not specified. | ||
691 | if test -z "$srcdir"; then | ||
692 | ac_srcdir_defaulted=yes | ||
693 | # Try the directory containing this script, then its parent. | ||
694 | ac_confdir=`(dirname "$0") 2>/dev/null || | ||
695 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
696 | X"$0" : 'X\(//\)[^/]' \| \ | ||
697 | X"$0" : 'X\(//\)$' \| \ | ||
698 | X"$0" : 'X\(/\)' \| \ | ||
699 | . : '\(.\)' 2>/dev/null || | ||
700 | echo X"$0" | | ||
701 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
702 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
703 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
704 | /^X\(\/\).*/{ s//\1/; q; } | ||
705 | s/.*/./; q'` | ||
706 | srcdir=$ac_confdir | ||
707 | if test ! -r $srcdir/$ac_unique_file; then | ||
708 | srcdir=.. | ||
709 | fi | ||
710 | else | ||
711 | ac_srcdir_defaulted=no | ||
712 | fi | ||
713 | if test ! -r $srcdir/$ac_unique_file; then | ||
714 | if test "$ac_srcdir_defaulted" = yes; then | ||
715 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | ||
716 | { (exit 1); exit 1; }; } | ||
717 | else | ||
718 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
719 | { (exit 1); exit 1; }; } | ||
720 | fi | ||
721 | fi | ||
722 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
723 | ac_env_build_alias_set=${build_alias+set} | ||
724 | ac_env_build_alias_value=$build_alias | ||
725 | ac_cv_env_build_alias_set=${build_alias+set} | ||
726 | ac_cv_env_build_alias_value=$build_alias | ||
727 | ac_env_host_alias_set=${host_alias+set} | ||
728 | ac_env_host_alias_value=$host_alias | ||
729 | ac_cv_env_host_alias_set=${host_alias+set} | ||
730 | ac_cv_env_host_alias_value=$host_alias | ||
731 | ac_env_target_alias_set=${target_alias+set} | ||
732 | ac_env_target_alias_value=$target_alias | ||
733 | ac_cv_env_target_alias_set=${target_alias+set} | ||
734 | ac_cv_env_target_alias_value=$target_alias | ||
735 | ac_env_CC_set=${CC+set} | ||
736 | ac_env_CC_value=$CC | ||
737 | ac_cv_env_CC_set=${CC+set} | ||
738 | ac_cv_env_CC_value=$CC | ||
739 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
740 | ac_env_CFLAGS_value=$CFLAGS | ||
741 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
742 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
743 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
744 | ac_env_LDFLAGS_value=$LDFLAGS | ||
745 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
746 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
747 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
748 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
749 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
750 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
751 | ac_env_CPP_set=${CPP+set} | ||
752 | ac_env_CPP_value=$CPP | ||
753 | ac_cv_env_CPP_set=${CPP+set} | ||
754 | ac_cv_env_CPP_value=$CPP | ||
755 | |||
756 | # | ||
757 | # Report the --help message. | ||
758 | # | ||
759 | if test "$ac_init_help" = "long"; then | ||
760 | # Omit some internal or obsolete options to make the list less imposing. | ||
761 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
762 | cat <<_ACEOF | ||
763 | \`configure' configures this package to adapt to many kinds of systems. | ||
764 | |||
765 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
766 | |||
767 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
768 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
769 | |||
770 | Defaults for the options are specified in brackets. | ||
771 | |||
772 | Configuration: | ||
773 | -h, --help display this help and exit | ||
774 | --help=short display options specific to this package | ||
775 | --help=recursive display the short help of all the included packages | ||
776 | -V, --version display version information and exit | ||
777 | -q, --quiet, --silent do not print \`checking...' messages | ||
778 | --cache-file=FILE cache test results in FILE [disabled] | ||
779 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
780 | -n, --no-create do not create output files | ||
781 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
782 | |||
783 | _ACEOF | ||
784 | |||
785 | cat <<_ACEOF | ||
786 | Installation directories: | ||
787 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
788 | [$ac_default_prefix] | ||
789 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
790 | [PREFIX] | ||
791 | |||
792 | By default, \`make install' will install all the files in | ||
793 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
794 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
795 | for instance \`--prefix=\$HOME'. | ||
796 | |||
797 | For better control, use the options below. | ||
798 | |||
799 | Fine tuning of the installation directories: | ||
800 | --bindir=DIR user executables [EPREFIX/bin] | ||
801 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
802 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
803 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
804 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
805 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
806 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
807 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
808 | --includedir=DIR C header files [PREFIX/include] | ||
809 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
810 | --infodir=DIR info documentation [PREFIX/info] | ||
811 | --mandir=DIR man documentation [PREFIX/man] | ||
812 | _ACEOF | ||
813 | |||
814 | cat <<\_ACEOF | ||
815 | |||
816 | System types: | ||
817 | --build=BUILD configure for building on BUILD [guessed] | ||
818 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
819 | _ACEOF | ||
820 | fi | ||
821 | |||
822 | if test -n "$ac_init_help"; then | ||
823 | |||
824 | cat <<\_ACEOF | ||
825 | |||
826 | Optional Features: | ||
827 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
828 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
829 | --disable-largefile omit support for large files | ||
830 | --disable-lastlog disable use of lastlog even if detected no | ||
831 | --disable-utmp disable use of utmp even if detected no | ||
832 | --disable-utmpx disable use of utmpx even if detected no | ||
833 | --disable-wtmp disable use of wtmp even if detected no | ||
834 | --disable-wtmpx disable use of wtmpx even if detected no | ||
835 | --disable-libutil disable use of libutil (login() etc.) no | ||
836 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
837 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
838 | |||
839 | Optional Packages: | ||
840 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
841 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
842 | --with-osfsia Enable Digital Unix SIA | ||
843 | --with-cflags Specify additional flags to pass to compiler | ||
844 | --with-cppflags Specify additional flags to pass to preprocessor | ||
845 | --with-ldflags Specify additional flags to pass to linker | ||
846 | --with-libs Specify additional libraries to link with | ||
847 | --without-rpath Disable auto-added -R linker paths | ||
848 | --with-zlib=PATH Use zlib in PATH | ||
849 | --with-skey[=PATH] Enable S/Key support | ||
850 | (optionally in PATH) | ||
851 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support | ||
852 | (optionally in PATH) | ||
853 | --with-pam Enable PAM support | ||
854 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
855 | --with-rand-helper Use subprocess to gather strong randomness | ||
856 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
857 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
858 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
859 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
860 | --with-sectok Enable smartcard support using libsectok | ||
861 | --with-opensc=PFX Enable smartcard support using OpenSC | ||
862 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
863 | --with-kerberos4=PATH Enable Kerberos 4 support | ||
864 | --with-afs=PATH Enable AFS support | ||
865 | --with-privsep-path=xxx Path for privilege separation chroot | ||
866 | --with-xauth=PATH Specify path to xauth program | ||
867 | --with-mantype=man|cat|doc Set man page type | ||
868 | --with-md5-passwords Enable use of MD5 passwords | ||
869 | --without-shadow Disable shadow password support | ||
870 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
871 | --with-default-path= Specify default \$PATH environment for server | ||
872 | --with-superuser-path= Specify different path for super-user | ||
873 | --with-ipv4-default Use IPv4 by connections unless '-6' specified | ||
874 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
875 | --with-bsd-auth Enable BSD auth support | ||
876 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
877 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
878 | |||
879 | Some influential environment variables: | ||
880 | CC C compiler command | ||
881 | CFLAGS C compiler flags | ||
882 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
883 | nonstandard directory <lib dir> | ||
884 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
885 | headers in a nonstandard directory <include dir> | ||
886 | CPP C preprocessor | ||
887 | |||
888 | Use these variables to override the choices made by `configure' or to help | ||
889 | it to find libraries and programs with nonstandard names/locations. | ||
890 | |||
891 | _ACEOF | ||
892 | fi | ||
893 | |||
894 | if test "$ac_init_help" = "recursive"; then | ||
895 | # If there are subdirs, report their specific --help. | ||
896 | ac_popdir=`pwd` | ||
897 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
898 | test -d $ac_dir || continue | ||
899 | ac_builddir=. | ||
900 | |||
901 | if test "$ac_dir" != .; then | ||
902 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
903 | # A "../" for each directory in $ac_dir_suffix. | ||
904 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
905 | else | ||
906 | ac_dir_suffix= ac_top_builddir= | ||
907 | fi | ||
908 | |||
909 | case $srcdir in | ||
910 | .) # No --srcdir option. We are building in place. | ||
911 | ac_srcdir=. | ||
912 | if test -z "$ac_top_builddir"; then | ||
913 | ac_top_srcdir=. | ||
914 | else | ||
915 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
916 | fi ;; | ||
917 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
918 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
919 | ac_top_srcdir=$srcdir ;; | ||
920 | *) # Relative path. | ||
921 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
922 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
923 | esac | ||
924 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | ||
925 | # absolute. | ||
926 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | ||
927 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | ||
928 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | ||
929 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | ||
930 | |||
931 | cd $ac_dir | ||
932 | # Check for guested configure; otherwise get Cygnus style configure. | ||
933 | if test -f $ac_srcdir/configure.gnu; then | ||
934 | echo | ||
935 | $SHELL $ac_srcdir/configure.gnu --help=recursive | ||
936 | elif test -f $ac_srcdir/configure; then | ||
937 | echo | ||
938 | $SHELL $ac_srcdir/configure --help=recursive | ||
939 | elif test -f $ac_srcdir/configure.ac || | ||
940 | test -f $ac_srcdir/configure.in; then | ||
941 | echo | ||
942 | $ac_configure --help | ||
943 | else | ||
944 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
945 | fi | ||
946 | cd $ac_popdir | ||
947 | done | ||
948 | fi | ||
949 | |||
950 | test -n "$ac_init_help" && exit 0 | ||
951 | if $ac_init_version; then | ||
952 | cat <<\_ACEOF | ||
953 | |||
954 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | ||
955 | Free Software Foundation, Inc. | ||
956 | This configure script is free software; the Free Software Foundation | ||
957 | gives unlimited permission to copy, distribute and modify it. | ||
958 | _ACEOF | ||
959 | exit 0 | ||
960 | fi | ||
961 | exec 5>config.log | ||
962 | cat >&5 <<_ACEOF | ||
963 | This file contains any messages produced by compilers while | ||
964 | running configure, to aid debugging if configure makes a mistake. | ||
965 | |||
966 | It was created by $as_me, which was | ||
967 | generated by GNU Autoconf 2.53. Invocation command line was | ||
968 | |||
969 | $ $0 $@ | ||
970 | |||
971 | _ACEOF | ||
972 | { | ||
973 | cat <<_ASUNAME | ||
974 | ## --------- ## | ||
975 | ## Platform. ## | ||
976 | ## --------- ## | ||
977 | |||
978 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
979 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
980 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
981 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
982 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
983 | |||
984 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
985 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
986 | |||
987 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
988 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
989 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
990 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
991 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
992 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
993 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
994 | |||
995 | _ASUNAME | ||
996 | |||
997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
998 | for as_dir in $PATH | ||
999 | do | ||
1000 | IFS=$as_save_IFS | ||
1001 | test -z "$as_dir" && as_dir=. | ||
1002 | echo "PATH: $as_dir" | ||
1003 | done | ||
1004 | |||
1005 | } >&5 | ||
1006 | |||
1007 | cat >&5 <<_ACEOF | ||
1008 | |||
1009 | |||
1010 | ## ----------- ## | ||
1011 | ## Core tests. ## | ||
1012 | ## ----------- ## | ||
1013 | |||
1014 | _ACEOF | ||
1015 | |||
1016 | |||
1017 | # Keep a trace of the command line. | ||
1018 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1019 | # Also quote any args containing shell meta-characters. | ||
1020 | ac_configure_args= | ||
1021 | ac_sep= | ||
1022 | for ac_arg | ||
1023 | do | ||
1024 | case $ac_arg in | ||
1025 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1026 | | --no-cr | --no-c | -n ) continue ;; | ||
1027 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1028 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1029 | continue ;; | ||
1030 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1031 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1032 | esac | ||
1033 | case " $ac_configure_args " in | ||
1034 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1035 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
1036 | ac_sep=" " ;; | ||
1037 | esac | ||
1038 | # Get rid of the leading space. | ||
1039 | done | ||
1040 | |||
1041 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1042 | # config.log. We remove comments because anyway the quotes in there | ||
1043 | # would cause problems or look ugly. | ||
1044 | # WARNING: Be sure not to use single quotes in there, as some shells, | ||
1045 | # such as our DU 5.0 friend, will then `close' the trap. | ||
1046 | trap 'exit_status=$? | ||
1047 | # Save into config.log some information that might help in debugging. | ||
1048 | { | ||
1049 | echo | ||
1050 | cat <<\_ASBOX | ||
1051 | ## ---------------- ## | ||
1052 | ## Cache variables. ## | ||
1053 | ## ---------------- ## | ||
1054 | _ASBOX | ||
1055 | echo | ||
1056 | # The following way of writing the cache mishandles newlines in values, | ||
1057 | { | ||
1058 | (set) 2>&1 | | ||
1059 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
1060 | *ac_space=\ *) | ||
1061 | sed -n \ | ||
1062 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
1063 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
1064 | ;; | ||
1065 | *) | ||
1066 | sed -n \ | ||
1067 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
1068 | ;; | ||
1069 | esac; | ||
1070 | } | ||
1071 | echo | ||
1072 | if test -s confdefs.h; then | ||
1073 | cat <<\_ASBOX | ||
1074 | ## ----------- ## | ||
1075 | ## confdefs.h. ## | ||
1076 | ## ----------- ## | ||
1077 | _ASBOX | ||
1078 | echo | ||
1079 | sed "/^$/d" confdefs.h | ||
1080 | echo | ||
1081 | fi | ||
1082 | test "$ac_signal" != 0 && | ||
1083 | echo "$as_me: caught signal $ac_signal" | ||
1084 | echo "$as_me: exit $exit_status" | ||
1085 | } >&5 | ||
1086 | rm -f core core.* *.core && | ||
1087 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | ||
1088 | exit $exit_status | ||
1089 | ' 0 | ||
1090 | for ac_signal in 1 2 13 15; do | ||
1091 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1092 | done | ||
1093 | ac_signal=0 | ||
1094 | |||
1095 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1096 | rm -rf conftest* confdefs.h | ||
1097 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
1098 | echo >confdefs.h | ||
1099 | |||
1100 | # Predefined preprocessor variables. | ||
1101 | |||
1102 | cat >>confdefs.h <<_ACEOF | ||
1103 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1104 | _ACEOF | ||
1105 | |||
1106 | |||
1107 | cat >>confdefs.h <<_ACEOF | ||
1108 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1109 | _ACEOF | ||
1110 | |||
1111 | |||
1112 | cat >>confdefs.h <<_ACEOF | ||
1113 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1114 | _ACEOF | ||
1115 | |||
1116 | |||
1117 | cat >>confdefs.h <<_ACEOF | ||
1118 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1119 | _ACEOF | ||
1120 | |||
1121 | |||
1122 | cat >>confdefs.h <<_ACEOF | ||
1123 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1124 | _ACEOF | ||
1125 | |||
1126 | |||
1127 | # Let the site file select an alternate cache file if it wants to. | ||
1128 | # Prefer explicitly selected file to automatically selected ones. | ||
1129 | if test -z "$CONFIG_SITE"; then | ||
1130 | if test "x$prefix" != xNONE; then | ||
1131 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
1132 | else | ||
1133 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
1134 | fi | ||
1135 | fi | ||
1136 | for ac_site_file in $CONFIG_SITE; do | ||
1137 | if test -r "$ac_site_file"; then | ||
1138 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1139 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1140 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1141 | . "$ac_site_file" | ||
1142 | fi | ||
1143 | done | ||
1144 | |||
1145 | if test -r "$cache_file"; then | ||
1146 | # Some versions of bash will fail to source /dev/null (special | ||
1147 | # files actually), so we avoid doing that. | ||
1148 | if test -f "$cache_file"; then | ||
1149 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1150 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1151 | case $cache_file in | ||
1152 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
1153 | *) . ./$cache_file;; | ||
1154 | esac | ||
1155 | fi | ||
1156 | else | ||
1157 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1158 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1159 | >$cache_file | ||
1160 | fi | ||
1161 | |||
1162 | # Check that the precious variables saved in the cache have kept the same | ||
1163 | # value. | ||
1164 | ac_cache_corrupted=false | ||
1165 | for ac_var in `(set) 2>&1 | | ||
1166 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
1167 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1168 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1169 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
1170 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
1171 | case $ac_old_set,$ac_new_set in | ||
1172 | set,) | ||
1173 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1174 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1175 | ac_cache_corrupted=: ;; | ||
1176 | ,set) | ||
1177 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1178 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1179 | ac_cache_corrupted=: ;; | ||
1180 | ,);; | ||
1181 | *) | ||
1182 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1183 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1184 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1185 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1186 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1187 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1188 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1189 | ac_cache_corrupted=: | ||
1190 | fi;; | ||
1191 | esac | ||
1192 | # Pass precious variables to config.status. | ||
1193 | if test "$ac_new_set" = set; then | ||
1194 | case $ac_new_val in | ||
1195 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1196 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1197 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1198 | esac | ||
1199 | case " $ac_configure_args " in | ||
1200 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1201 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1202 | esac | ||
1203 | fi | ||
1204 | done | ||
1205 | if $ac_cache_corrupted; then | ||
1206 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1207 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1208 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1209 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1210 | { (exit 1); exit 1; }; } | ||
1211 | fi | ||
1212 | |||
1213 | ac_ext=c | ||
1214 | ac_cpp='$CPP $CPPFLAGS' | ||
1215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1218 | |||
1219 | |||
1220 | |||
1221 | |||
1222 | |||
1223 | |||
1224 | |||
1225 | |||
1226 | |||
1227 | |||
1228 | |||
1229 | |||
1230 | |||
1231 | |||
1232 | |||
1233 | |||
1234 | |||
1235 | |||
1236 | |||
1237 | |||
1238 | ac_config_headers="$ac_config_headers config.h" | ||
1239 | |||
1240 | ac_ext=c | ||
1241 | ac_cpp='$CPP $CPPFLAGS' | ||
1242 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1243 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1244 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1245 | if test -n "$ac_tool_prefix"; then | ||
1246 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1247 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1248 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1250 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1252 | else | ||
1253 | if test -n "$CC"; then | ||
1254 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1255 | else | ||
1256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1257 | for as_dir in $PATH | ||
1258 | do | ||
1259 | IFS=$as_save_IFS | ||
1260 | test -z "$as_dir" && as_dir=. | ||
1261 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1262 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1263 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1264 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1265 | break 2 | ||
1266 | fi | ||
1267 | done | ||
1268 | done | ||
1269 | |||
1270 | fi | ||
1271 | fi | ||
1272 | CC=$ac_cv_prog_CC | ||
1273 | if test -n "$CC"; then | ||
1274 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1275 | echo "${ECHO_T}$CC" >&6 | ||
1276 | else | ||
1277 | echo "$as_me:$LINENO: result: no" >&5 | ||
1278 | echo "${ECHO_T}no" >&6 | ||
1279 | fi | ||
1280 | |||
1281 | fi | ||
1282 | if test -z "$ac_cv_prog_CC"; then | ||
1283 | ac_ct_CC=$CC | ||
1284 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1285 | set dummy gcc; ac_word=$2 | ||
1286 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1288 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1290 | else | ||
1291 | if test -n "$ac_ct_CC"; then | ||
1292 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1293 | else | ||
1294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1295 | for as_dir in $PATH | ||
1296 | do | ||
1297 | IFS=$as_save_IFS | ||
1298 | test -z "$as_dir" && as_dir=. | ||
1299 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1300 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1301 | ac_cv_prog_ac_ct_CC="gcc" | ||
1302 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1303 | break 2 | ||
1304 | fi | ||
1305 | done | ||
1306 | done | ||
1307 | |||
1308 | fi | ||
1309 | fi | ||
1310 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1311 | if test -n "$ac_ct_CC"; then | ||
1312 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1313 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1314 | else | ||
1315 | echo "$as_me:$LINENO: result: no" >&5 | ||
1316 | echo "${ECHO_T}no" >&6 | ||
1317 | fi | ||
1318 | |||
1319 | CC=$ac_ct_CC | ||
1320 | else | ||
1321 | CC="$ac_cv_prog_CC" | ||
1322 | fi | ||
1323 | |||
1324 | if test -z "$CC"; then | ||
1325 | if test -n "$ac_tool_prefix"; then | ||
1326 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1327 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1330 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1332 | else | ||
1333 | if test -n "$CC"; then | ||
1334 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1335 | else | ||
1336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1337 | for as_dir in $PATH | ||
1338 | do | ||
1339 | IFS=$as_save_IFS | ||
1340 | test -z "$as_dir" && as_dir=. | ||
1341 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1343 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1345 | break 2 | ||
1346 | fi | ||
1347 | done | ||
1348 | done | ||
1349 | |||
1350 | fi | ||
1351 | fi | ||
1352 | CC=$ac_cv_prog_CC | ||
1353 | if test -n "$CC"; then | ||
1354 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1355 | echo "${ECHO_T}$CC" >&6 | ||
1356 | else | ||
1357 | echo "$as_me:$LINENO: result: no" >&5 | ||
1358 | echo "${ECHO_T}no" >&6 | ||
1359 | fi | ||
1360 | |||
1361 | fi | ||
1362 | if test -z "$ac_cv_prog_CC"; then | ||
1363 | ac_ct_CC=$CC | ||
1364 | # Extract the first word of "cc", so it can be a program name with args. | ||
1365 | set dummy cc; ac_word=$2 | ||
1366 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1368 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1370 | else | ||
1371 | if test -n "$ac_ct_CC"; then | ||
1372 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1373 | else | ||
1374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1375 | for as_dir in $PATH | ||
1376 | do | ||
1377 | IFS=$as_save_IFS | ||
1378 | test -z "$as_dir" && as_dir=. | ||
1379 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1380 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1381 | ac_cv_prog_ac_ct_CC="cc" | ||
1382 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1383 | break 2 | ||
1384 | fi | ||
1385 | done | ||
1386 | done | ||
1387 | |||
1388 | fi | ||
1389 | fi | ||
1390 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1391 | if test -n "$ac_ct_CC"; then | ||
1392 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1393 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1394 | else | ||
1395 | echo "$as_me:$LINENO: result: no" >&5 | ||
1396 | echo "${ECHO_T}no" >&6 | ||
1397 | fi | ||
1398 | |||
1399 | CC=$ac_ct_CC | ||
1400 | else | ||
1401 | CC="$ac_cv_prog_CC" | ||
1402 | fi | ||
1403 | |||
1404 | fi | ||
1405 | if test -z "$CC"; then | ||
1406 | # Extract the first word of "cc", so it can be a program name with args. | ||
1407 | set dummy cc; ac_word=$2 | ||
1408 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1409 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1410 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1412 | else | ||
1413 | if test -n "$CC"; then | ||
1414 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1415 | else | ||
1416 | ac_prog_rejected=no | ||
1417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1418 | for as_dir in $PATH | ||
1419 | do | ||
1420 | IFS=$as_save_IFS | ||
1421 | test -z "$as_dir" && as_dir=. | ||
1422 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1423 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1424 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1425 | ac_prog_rejected=yes | ||
1426 | continue | ||
1427 | fi | ||
1428 | ac_cv_prog_CC="cc" | ||
1429 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1430 | break 2 | ||
1431 | fi | ||
1432 | done | ||
1433 | done | ||
1434 | |||
1435 | if test $ac_prog_rejected = yes; then | ||
1436 | # We found a bogon in the path, so make sure we never use it. | ||
1437 | set dummy $ac_cv_prog_CC | ||
1438 | shift | ||
1439 | if test $# != 0; then | ||
1440 | # We chose a different compiler from the bogus one. | ||
1441 | # However, it has the same basename, so the bogon will be chosen | ||
1442 | # first if we set CC to just the basename; use the full file name. | ||
1443 | shift | ||
1444 | set dummy "$as_dir/$ac_word" ${1+"$@"} | ||
1445 | shift | ||
1446 | ac_cv_prog_CC="$@" | ||
1447 | fi | ||
1448 | fi | ||
1449 | fi | ||
1450 | fi | ||
1451 | CC=$ac_cv_prog_CC | ||
1452 | if test -n "$CC"; then | ||
1453 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1454 | echo "${ECHO_T}$CC" >&6 | ||
1455 | else | ||
1456 | echo "$as_me:$LINENO: result: no" >&5 | ||
1457 | echo "${ECHO_T}no" >&6 | ||
1458 | fi | ||
1459 | |||
1460 | fi | ||
1461 | if test -z "$CC"; then | ||
1462 | if test -n "$ac_tool_prefix"; then | ||
1463 | for ac_prog in cl | ||
1464 | do | ||
1465 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
1466 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
1467 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1469 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1471 | else | ||
1472 | if test -n "$CC"; then | ||
1473 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1474 | else | ||
1475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1476 | for as_dir in $PATH | ||
1477 | do | ||
1478 | IFS=$as_save_IFS | ||
1479 | test -z "$as_dir" && as_dir=. | ||
1480 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1481 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1482 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
1483 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1484 | break 2 | ||
1485 | fi | ||
1486 | done | ||
1487 | done | ||
1488 | |||
1489 | fi | ||
1490 | fi | ||
1491 | CC=$ac_cv_prog_CC | ||
1492 | if test -n "$CC"; then | ||
1493 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1494 | echo "${ECHO_T}$CC" >&6 | ||
1495 | else | ||
1496 | echo "$as_me:$LINENO: result: no" >&5 | ||
1497 | echo "${ECHO_T}no" >&6 | ||
1498 | fi | ||
1499 | |||
1500 | test -n "$CC" && break | ||
1501 | done | ||
1502 | fi | ||
1503 | if test -z "$CC"; then | ||
1504 | ac_ct_CC=$CC | ||
1505 | for ac_prog in cl | ||
1506 | do | ||
1507 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1508 | set dummy $ac_prog; ac_word=$2 | ||
1509 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1511 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1513 | else | ||
1514 | if test -n "$ac_ct_CC"; then | ||
1515 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1516 | else | ||
1517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1518 | for as_dir in $PATH | ||
1519 | do | ||
1520 | IFS=$as_save_IFS | ||
1521 | test -z "$as_dir" && as_dir=. | ||
1522 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1523 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1524 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
1525 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1526 | break 2 | ||
1527 | fi | ||
1528 | done | ||
1529 | done | ||
1530 | |||
1531 | fi | ||
1532 | fi | ||
1533 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1534 | if test -n "$ac_ct_CC"; then | ||
1535 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1536 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1537 | else | ||
1538 | echo "$as_me:$LINENO: result: no" >&5 | ||
1539 | echo "${ECHO_T}no" >&6 | ||
1540 | fi | ||
1541 | |||
1542 | test -n "$ac_ct_CC" && break | ||
1543 | done | ||
1544 | |||
1545 | CC=$ac_ct_CC | ||
1546 | fi | ||
1547 | |||
1548 | fi | ||
1549 | |||
1550 | |||
1551 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | ||
1552 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | ||
1553 | { (exit 1); exit 1; }; } | ||
1554 | |||
1555 | # Provide some information about the compiler. | ||
1556 | echo "$as_me:$LINENO:" \ | ||
1557 | "checking for C compiler version" >&5 | ||
1558 | ac_compiler=`set X $ac_compile; echo $2` | ||
1559 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
1560 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
1561 | ac_status=$? | ||
1562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1563 | (exit $ac_status); } | ||
1564 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
1565 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
1566 | ac_status=$? | ||
1567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1568 | (exit $ac_status); } | ||
1569 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
1570 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
1571 | ac_status=$? | ||
1572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1573 | (exit $ac_status); } | ||
1574 | |||
1575 | cat >conftest.$ac_ext <<_ACEOF | ||
1576 | #line $LINENO "configure" | ||
1577 | #include "confdefs.h" | ||
1578 | |||
1579 | #ifdef F77_DUMMY_MAIN | ||
1580 | # ifdef __cplusplus | ||
1581 | extern "C" | ||
1582 | # endif | ||
1583 | int F77_DUMMY_MAIN() { return 1; } | ||
1584 | #endif | ||
1585 | int | ||
1586 | main () | ||
1587 | { | ||
1588 | |||
1589 | ; | ||
1590 | return 0; | ||
1591 | } | ||
1592 | _ACEOF | ||
1593 | ac_clean_files_save=$ac_clean_files | ||
1594 | ac_clean_files="$ac_clean_files a.out a.exe" | ||
1595 | # Try to create an executable without -o first, disregard a.out. | ||
1596 | # It will help us diagnose broken compilers, and finding out an intuition | ||
1597 | # of exeext. | ||
1598 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | ||
1599 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | ||
1600 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
1601 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ||
1602 | (eval $ac_link_default) 2>&5 | ||
1603 | ac_status=$? | ||
1604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1605 | (exit $ac_status); }; then | ||
1606 | # Find the output, starting from the most likely. This scheme is | ||
1607 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
1608 | # resort. | ||
1609 | |||
1610 | # Be careful to initialize this variable, since it used to be cached. | ||
1611 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
1612 | ac_cv_exeext= | ||
1613 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | ||
1614 | ls a.out conftest 2>/dev/null; | ||
1615 | ls a.* conftest.* 2>/dev/null`; do | ||
1616 | case $ac_file in | ||
1617 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; | ||
1618 | a.out ) # We found the default executable, but exeext='' is most | ||
1619 | # certainly right. | ||
1620 | break;; | ||
1621 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1622 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | ||
1623 | export ac_cv_exeext | ||
1624 | break;; | ||
1625 | * ) break;; | ||
1626 | esac | ||
1627 | done | ||
1628 | else | ||
1629 | echo "$as_me: failed program was:" >&5 | ||
1630 | cat conftest.$ac_ext >&5 | ||
1631 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 | ||
1632 | echo "$as_me: error: C compiler cannot create executables" >&2;} | ||
1633 | { (exit 77); exit 77; }; } | ||
1634 | fi | ||
1635 | |||
1636 | ac_exeext=$ac_cv_exeext | ||
1637 | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
1638 | echo "${ECHO_T}$ac_file" >&6 | ||
1639 | |||
1640 | # Check the compiler produces executables we can run. If not, either | ||
1641 | # the compiler is broken, or we cross compile. | ||
1642 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
1643 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
1644 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
1645 | # If not cross compiling, check that we can run a simple program. | ||
1646 | if test "$cross_compiling" != yes; then | ||
1647 | if { ac_try='./$ac_file' | ||
1648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1649 | (eval $ac_try) 2>&5 | ||
1650 | ac_status=$? | ||
1651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1652 | (exit $ac_status); }; }; then | ||
1653 | cross_compiling=no | ||
1654 | else | ||
1655 | if test "$cross_compiling" = maybe; then | ||
1656 | cross_compiling=yes | ||
1657 | else | ||
1658 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
1659 | If you meant to cross compile, use \`--host'." >&5 | ||
1660 | echo "$as_me: error: cannot run C compiled programs. | ||
1661 | If you meant to cross compile, use \`--host'." >&2;} | ||
1662 | { (exit 1); exit 1; }; } | ||
1663 | fi | ||
1664 | fi | ||
1665 | fi | ||
1666 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1667 | echo "${ECHO_T}yes" >&6 | ||
1668 | |||
1669 | rm -f a.out a.exe conftest$ac_cv_exeext | ||
1670 | ac_clean_files=$ac_clean_files_save | ||
1671 | # Check the compiler produces executables we can run. If not, either | ||
1672 | # the compiler is broken, or we cross compile. | ||
1673 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
1674 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
1675 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
1676 | echo "${ECHO_T}$cross_compiling" >&6 | ||
1677 | |||
1678 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
1679 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
1680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
1681 | (eval $ac_link) 2>&5 | ||
1682 | ac_status=$? | ||
1683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1684 | (exit $ac_status); }; then | ||
1685 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
1686 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
1687 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
1688 | # `rm'. | ||
1689 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | ||
1690 | case $ac_file in | ||
1691 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1692 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1693 | export ac_cv_exeext | ||
1694 | break;; | ||
1695 | * ) break;; | ||
1696 | esac | ||
1697 | done | ||
1698 | else | ||
1699 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 | ||
1700 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | ||
1701 | { (exit 1); exit 1; }; } | ||
1702 | fi | ||
1703 | |||
1704 | rm -f conftest$ac_cv_exeext | ||
1705 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
1706 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
1707 | |||
1708 | rm -f conftest.$ac_ext | ||
1709 | EXEEXT=$ac_cv_exeext | ||
1710 | ac_exeext=$EXEEXT | ||
1711 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
1712 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
1713 | if test "${ac_cv_objext+set}" = set; then | ||
1714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1715 | else | ||
1716 | cat >conftest.$ac_ext <<_ACEOF | ||
1717 | #line $LINENO "configure" | ||
1718 | #include "confdefs.h" | ||
1719 | |||
1720 | #ifdef F77_DUMMY_MAIN | ||
1721 | # ifdef __cplusplus | ||
1722 | extern "C" | ||
1723 | # endif | ||
1724 | int F77_DUMMY_MAIN() { return 1; } | ||
1725 | #endif | ||
1726 | int | ||
1727 | main () | ||
1728 | { | ||
1729 | |||
1730 | ; | ||
1731 | return 0; | ||
1732 | } | ||
1733 | _ACEOF | ||
1734 | rm -f conftest.o conftest.obj | ||
1735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1736 | (eval $ac_compile) 2>&5 | ||
1737 | ac_status=$? | ||
1738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1739 | (exit $ac_status); }; then | ||
1740 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
1741 | case $ac_file in | ||
1742 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1743 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
1744 | break;; | ||
1745 | esac | ||
1746 | done | ||
1747 | else | ||
1748 | echo "$as_me: failed program was:" >&5 | ||
1749 | cat conftest.$ac_ext >&5 | ||
1750 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 | ||
1751 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | ||
1752 | { (exit 1); exit 1; }; } | ||
1753 | fi | ||
1754 | |||
1755 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
1756 | fi | ||
1757 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
1758 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
1759 | OBJEXT=$ac_cv_objext | ||
1760 | ac_objext=$OBJEXT | ||
1761 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
1762 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
1763 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
1764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1765 | else | ||
1766 | cat >conftest.$ac_ext <<_ACEOF | ||
1767 | #line $LINENO "configure" | ||
1768 | #include "confdefs.h" | ||
1769 | |||
1770 | #ifdef F77_DUMMY_MAIN | ||
1771 | # ifdef __cplusplus | ||
1772 | extern "C" | ||
1773 | # endif | ||
1774 | int F77_DUMMY_MAIN() { return 1; } | ||
1775 | #endif | ||
1776 | int | ||
1777 | main () | ||
1778 | { | ||
1779 | #ifndef __GNUC__ | ||
1780 | choke me | ||
1781 | #endif | ||
1782 | |||
1783 | ; | ||
1784 | return 0; | ||
1785 | } | ||
1786 | _ACEOF | ||
1787 | rm -f conftest.$ac_objext | ||
1788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1789 | (eval $ac_compile) 2>&5 | ||
1790 | ac_status=$? | ||
1791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1792 | (exit $ac_status); } && | ||
1793 | { ac_try='test -s conftest.$ac_objext' | ||
1794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1795 | (eval $ac_try) 2>&5 | ||
1796 | ac_status=$? | ||
1797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1798 | (exit $ac_status); }; }; then | ||
1799 | ac_compiler_gnu=yes | ||
1800 | else | ||
1801 | echo "$as_me: failed program was:" >&5 | ||
1802 | cat conftest.$ac_ext >&5 | ||
1803 | ac_compiler_gnu=no | ||
1804 | fi | ||
1805 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1806 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
1807 | |||
1808 | fi | ||
1809 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
1810 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
1811 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
1812 | ac_test_CFLAGS=${CFLAGS+set} | ||
1813 | ac_save_CFLAGS=$CFLAGS | ||
1814 | CFLAGS="-g" | ||
1815 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
1816 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
1817 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
1818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1819 | else | ||
1820 | cat >conftest.$ac_ext <<_ACEOF | ||
1821 | #line $LINENO "configure" | ||
1822 | #include "confdefs.h" | ||
1823 | |||
1824 | #ifdef F77_DUMMY_MAIN | ||
1825 | # ifdef __cplusplus | ||
1826 | extern "C" | ||
1827 | # endif | ||
1828 | int F77_DUMMY_MAIN() { return 1; } | ||
1829 | #endif | ||
1830 | int | ||
1831 | main () | ||
1832 | { | ||
1833 | |||
1834 | ; | ||
1835 | return 0; | ||
1836 | } | ||
1837 | _ACEOF | ||
1838 | rm -f conftest.$ac_objext | ||
1839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1840 | (eval $ac_compile) 2>&5 | ||
1841 | ac_status=$? | ||
1842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1843 | (exit $ac_status); } && | ||
1844 | { ac_try='test -s conftest.$ac_objext' | ||
1845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1846 | (eval $ac_try) 2>&5 | ||
1847 | ac_status=$? | ||
1848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1849 | (exit $ac_status); }; }; then | ||
1850 | ac_cv_prog_cc_g=yes | ||
1851 | else | ||
1852 | echo "$as_me: failed program was:" >&5 | ||
1853 | cat conftest.$ac_ext >&5 | ||
1854 | ac_cv_prog_cc_g=no | ||
1855 | fi | ||
1856 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1857 | fi | ||
1858 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
1859 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
1860 | if test "$ac_test_CFLAGS" = set; then | ||
1861 | CFLAGS=$ac_save_CFLAGS | ||
1862 | elif test $ac_cv_prog_cc_g = yes; then | ||
1863 | if test "$GCC" = yes; then | ||
1864 | CFLAGS="-g -O2" | ||
1865 | else | ||
1866 | CFLAGS="-g" | ||
1867 | fi | ||
1868 | else | ||
1869 | if test "$GCC" = yes; then | ||
1870 | CFLAGS="-O2" | ||
1871 | else | ||
1872 | CFLAGS= | ||
1873 | fi | ||
1874 | fi | ||
1875 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
1876 | # in C++ we need to declare it. In case someone uses the same compiler | ||
1877 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
1878 | # the declaration of exit, since it's the most demanding environment. | ||
1879 | cat >conftest.$ac_ext <<_ACEOF | ||
1880 | #ifndef __cplusplus | ||
1881 | choke me | ||
1882 | #endif | ||
1883 | _ACEOF | ||
1884 | rm -f conftest.$ac_objext | ||
1885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1886 | (eval $ac_compile) 2>&5 | ||
1887 | ac_status=$? | ||
1888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1889 | (exit $ac_status); } && | ||
1890 | { ac_try='test -s conftest.$ac_objext' | ||
1891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1892 | (eval $ac_try) 2>&5 | ||
1893 | ac_status=$? | ||
1894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1895 | (exit $ac_status); }; }; then | ||
1896 | for ac_declaration in \ | ||
1897 | ''\ | ||
1898 | '#include <stdlib.h>' \ | ||
1899 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
1900 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
1901 | 'extern "C" void exit (int) throw ();' \ | ||
1902 | 'extern "C" void exit (int);' \ | ||
1903 | 'void exit (int);' | ||
1904 | do | ||
1905 | cat >conftest.$ac_ext <<_ACEOF | ||
1906 | #line $LINENO "configure" | ||
1907 | #include "confdefs.h" | ||
1908 | #include <stdlib.h> | ||
1909 | $ac_declaration | ||
1910 | #ifdef F77_DUMMY_MAIN | ||
1911 | # ifdef __cplusplus | ||
1912 | extern "C" | ||
1913 | # endif | ||
1914 | int F77_DUMMY_MAIN() { return 1; } | ||
1915 | #endif | ||
1916 | int | ||
1917 | main () | ||
1918 | { | ||
1919 | exit (42); | ||
1920 | ; | ||
1921 | return 0; | ||
1922 | } | ||
1923 | _ACEOF | ||
1924 | rm -f conftest.$ac_objext | ||
1925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1926 | (eval $ac_compile) 2>&5 | ||
1927 | ac_status=$? | ||
1928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1929 | (exit $ac_status); } && | ||
1930 | { ac_try='test -s conftest.$ac_objext' | ||
1931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1932 | (eval $ac_try) 2>&5 | ||
1933 | ac_status=$? | ||
1934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1935 | (exit $ac_status); }; }; then | ||
1936 | : | ||
1937 | else | ||
1938 | echo "$as_me: failed program was:" >&5 | ||
1939 | cat conftest.$ac_ext >&5 | ||
1940 | continue | ||
1941 | fi | ||
1942 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1943 | cat >conftest.$ac_ext <<_ACEOF | ||
1944 | #line $LINENO "configure" | ||
1945 | #include "confdefs.h" | ||
1946 | $ac_declaration | ||
1947 | #ifdef F77_DUMMY_MAIN | ||
1948 | # ifdef __cplusplus | ||
1949 | extern "C" | ||
1950 | # endif | ||
1951 | int F77_DUMMY_MAIN() { return 1; } | ||
1952 | #endif | ||
1953 | int | ||
1954 | main () | ||
1955 | { | ||
1956 | exit (42); | ||
1957 | ; | ||
1958 | return 0; | ||
1959 | } | ||
1960 | _ACEOF | ||
1961 | rm -f conftest.$ac_objext | ||
1962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1963 | (eval $ac_compile) 2>&5 | ||
1964 | ac_status=$? | ||
1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1966 | (exit $ac_status); } && | ||
1967 | { ac_try='test -s conftest.$ac_objext' | ||
1968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1969 | (eval $ac_try) 2>&5 | ||
1970 | ac_status=$? | ||
1971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1972 | (exit $ac_status); }; }; then | ||
1973 | break | ||
1974 | else | ||
1975 | echo "$as_me: failed program was:" >&5 | ||
1976 | cat conftest.$ac_ext >&5 | ||
1977 | fi | ||
1978 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1979 | done | ||
1980 | rm -f conftest* | ||
1981 | if test -n "$ac_declaration"; then | ||
1982 | echo '#ifdef __cplusplus' >>confdefs.h | ||
1983 | echo $ac_declaration >>confdefs.h | ||
1984 | echo '#endif' >>confdefs.h | ||
1985 | fi | ||
1986 | |||
1987 | else | ||
1988 | echo "$as_me: failed program was:" >&5 | ||
1989 | cat conftest.$ac_ext >&5 | ||
1990 | fi | ||
1991 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1992 | ac_ext=c | ||
1993 | ac_cpp='$CPP $CPPFLAGS' | ||
1994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1997 | |||
1998 | ac_aux_dir= | ||
1999 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
2000 | if test -f $ac_dir/install-sh; then | ||
2001 | ac_aux_dir=$ac_dir | ||
2002 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2003 | break | ||
2004 | elif test -f $ac_dir/install.sh; then | ||
2005 | ac_aux_dir=$ac_dir | ||
2006 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2007 | break | ||
2008 | elif test -f $ac_dir/shtool; then | ||
2009 | ac_aux_dir=$ac_dir | ||
2010 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2011 | break | ||
2012 | fi | ||
2013 | done | ||
2014 | if test -z "$ac_aux_dir"; then | ||
2015 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
2016 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
2017 | { (exit 1); exit 1; }; } | ||
2018 | fi | ||
2019 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
2020 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
2021 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
2022 | |||
2023 | # Make sure we can run config.sub. | ||
2024 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
2025 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ||
2026 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
2027 | { (exit 1); exit 1; }; } | ||
2028 | |||
2029 | echo "$as_me:$LINENO: checking build system type" >&5 | ||
2030 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
2031 | if test "${ac_cv_build+set}" = set; then | ||
2032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2033 | else | ||
2034 | ac_cv_build_alias=$build_alias | ||
2035 | test -z "$ac_cv_build_alias" && | ||
2036 | ac_cv_build_alias=`$ac_config_guess` | ||
2037 | test -z "$ac_cv_build_alias" && | ||
2038 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2039 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2040 | { (exit 1); exit 1; }; } | ||
2041 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
2042 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
2043 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
2044 | { (exit 1); exit 1; }; } | ||
2045 | |||
2046 | fi | ||
2047 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2048 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
2049 | build=$ac_cv_build | ||
2050 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2051 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2052 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2053 | |||
2054 | |||
2055 | echo "$as_me:$LINENO: checking host system type" >&5 | ||
2056 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
2057 | if test "${ac_cv_host+set}" = set; then | ||
2058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2059 | else | ||
2060 | ac_cv_host_alias=$host_alias | ||
2061 | test -z "$ac_cv_host_alias" && | ||
2062 | ac_cv_host_alias=$ac_cv_build_alias | ||
2063 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
2064 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
2065 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
2066 | { (exit 1); exit 1; }; } | ||
2067 | |||
2068 | fi | ||
2069 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2070 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
2071 | host=$ac_cv_host | ||
2072 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2073 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2074 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2075 | |||
2076 | |||
2077 | |||
2078 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
2079 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | ||
2080 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
2081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2082 | else | ||
2083 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
2084 | cat >conftest.$ac_ext <<_ACEOF | ||
2085 | #line $LINENO "configure" | ||
2086 | #include "confdefs.h" | ||
2087 | #include <sys/types.h> | ||
2088 | #include <sys/param.h> | ||
2089 | |||
2090 | #ifdef F77_DUMMY_MAIN | ||
2091 | # ifdef __cplusplus | ||
2092 | extern "C" | ||
2093 | # endif | ||
2094 | int F77_DUMMY_MAIN() { return 1; } | ||
2095 | #endif | ||
2096 | int | ||
2097 | main () | ||
2098 | { | ||
2099 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
2100 | bogus endian macros | ||
2101 | #endif | ||
2102 | |||
2103 | ; | ||
2104 | return 0; | ||
2105 | } | ||
2106 | _ACEOF | ||
2107 | rm -f conftest.$ac_objext | ||
2108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2109 | (eval $ac_compile) 2>&5 | ||
2110 | ac_status=$? | ||
2111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2112 | (exit $ac_status); } && | ||
2113 | { ac_try='test -s conftest.$ac_objext' | ||
2114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2115 | (eval $ac_try) 2>&5 | ||
2116 | ac_status=$? | ||
2117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2118 | (exit $ac_status); }; }; then | ||
2119 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
2120 | cat >conftest.$ac_ext <<_ACEOF | ||
2121 | #line $LINENO "configure" | ||
2122 | #include "confdefs.h" | ||
2123 | #include <sys/types.h> | ||
2124 | #include <sys/param.h> | ||
2125 | |||
2126 | #ifdef F77_DUMMY_MAIN | ||
2127 | # ifdef __cplusplus | ||
2128 | extern "C" | ||
2129 | # endif | ||
2130 | int F77_DUMMY_MAIN() { return 1; } | ||
2131 | #endif | ||
2132 | int | ||
2133 | main () | ||
2134 | { | ||
2135 | #if BYTE_ORDER != BIG_ENDIAN | ||
2136 | not big endian | ||
2137 | #endif | ||
2138 | |||
2139 | ; | ||
2140 | return 0; | ||
2141 | } | ||
2142 | _ACEOF | ||
2143 | rm -f conftest.$ac_objext | ||
2144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2145 | (eval $ac_compile) 2>&5 | ||
2146 | ac_status=$? | ||
2147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2148 | (exit $ac_status); } && | ||
2149 | { ac_try='test -s conftest.$ac_objext' | ||
2150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2151 | (eval $ac_try) 2>&5 | ||
2152 | ac_status=$? | ||
2153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2154 | (exit $ac_status); }; }; then | ||
2155 | ac_cv_c_bigendian=yes | ||
2156 | else | ||
2157 | echo "$as_me: failed program was:" >&5 | ||
2158 | cat conftest.$ac_ext >&5 | ||
2159 | ac_cv_c_bigendian=no | ||
2160 | fi | ||
2161 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2162 | else | ||
2163 | echo "$as_me: failed program was:" >&5 | ||
2164 | cat conftest.$ac_ext >&5 | ||
2165 | # It does not; compile a test program. | ||
2166 | if test "$cross_compiling" = yes; then | ||
2167 | # try to guess the endianess by grep'ing values into an object file | ||
2168 | ac_cv_c_bigendian=unknown | ||
2169 | cat >conftest.$ac_ext <<_ACEOF | ||
2170 | #line $LINENO "configure" | ||
2171 | #include "confdefs.h" | ||
2172 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
2173 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
2174 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
2175 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
2176 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
2177 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
2178 | #ifdef F77_DUMMY_MAIN | ||
2179 | # ifdef __cplusplus | ||
2180 | extern "C" | ||
2181 | # endif | ||
2182 | int F77_DUMMY_MAIN() { return 1; } | ||
2183 | #endif | ||
2184 | int | ||
2185 | main () | ||
2186 | { | ||
2187 | _ascii (); _ebcdic (); | ||
2188 | ; | ||
2189 | return 0; | ||
2190 | } | ||
2191 | _ACEOF | ||
2192 | rm -f conftest.$ac_objext | ||
2193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2194 | (eval $ac_compile) 2>&5 | ||
2195 | ac_status=$? | ||
2196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2197 | (exit $ac_status); } && | ||
2198 | { ac_try='test -s conftest.$ac_objext' | ||
2199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2200 | (eval $ac_try) 2>&5 | ||
2201 | ac_status=$? | ||
2202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2203 | (exit $ac_status); }; }; then | ||
2204 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
2205 | ac_cv_c_bigendian=yes | ||
2206 | fi | ||
2207 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
2208 | if test "$ac_cv_c_bigendian" = unknown; then | ||
2209 | ac_cv_c_bigendian=no | ||
2210 | else | ||
2211 | # finding both strings is unlikely to happen, but who knows? | ||
2212 | ac_cv_c_bigendian=unknown | ||
2213 | fi | ||
2214 | fi | ||
2215 | else | ||
2216 | echo "$as_me: failed program was:" >&5 | ||
2217 | cat conftest.$ac_ext >&5 | ||
2218 | fi | ||
2219 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2220 | else | ||
2221 | cat >conftest.$ac_ext <<_ACEOF | ||
2222 | #line $LINENO "configure" | ||
2223 | #include "confdefs.h" | ||
2224 | int | ||
2225 | main () | ||
2226 | { | ||
2227 | /* Are we little or big endian? From Harbison&Steele. */ | ||
2228 | union | ||
2229 | { | ||
2230 | long l; | ||
2231 | char c[sizeof (long)]; | ||
2232 | } u; | ||
2233 | u.l = 1; | ||
2234 | exit (u.c[sizeof (long) - 1] == 1); | ||
2235 | } | ||
2236 | _ACEOF | ||
2237 | rm -f conftest$ac_exeext | ||
2238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2239 | (eval $ac_link) 2>&5 | ||
2240 | ac_status=$? | ||
2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2242 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
2243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2244 | (eval $ac_try) 2>&5 | ||
2245 | ac_status=$? | ||
2246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2247 | (exit $ac_status); }; }; then | ||
2248 | ac_cv_c_bigendian=no | ||
2249 | else | ||
2250 | echo "$as_me: program exited with status $ac_status" >&5 | ||
2251 | echo "$as_me: failed program was:" >&5 | ||
2252 | cat conftest.$ac_ext >&5 | ||
2253 | ( exit $ac_status ) | ||
2254 | ac_cv_c_bigendian=yes | ||
2255 | fi | ||
2256 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
2257 | fi | ||
2258 | fi | ||
2259 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2260 | fi | ||
2261 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
2262 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | ||
2263 | case $ac_cv_c_bigendian in | ||
2264 | yes) | ||
2265 | |||
2266 | cat >>confdefs.h <<\_ACEOF | ||
2267 | #define WORDS_BIGENDIAN 1 | ||
2268 | _ACEOF | ||
2269 | ;; | ||
2270 | no) | ||
2271 | ;; | ||
2272 | *) | ||
2273 | { { echo "$as_me:$LINENO: error: unknown endianess | ||
2274 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
2275 | echo "$as_me: error: unknown endianess | ||
2276 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
2277 | { (exit 1); exit 1; }; } ;; | ||
2278 | esac | ||
2279 | |||
2280 | |||
2281 | # Checks for programs. | ||
2282 | ac_ext=c | ||
2283 | ac_cpp='$CPP $CPPFLAGS' | ||
2284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2287 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2288 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
2289 | # On Suns, sometimes $CPP names a directory. | ||
2290 | if test -n "$CPP" && test -d "$CPP"; then | ||
2291 | CPP= | ||
2292 | fi | ||
2293 | if test -z "$CPP"; then | ||
2294 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2296 | else | ||
2297 | # Double quotes because CPP needs to be expanded | ||
2298 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2299 | do | ||
2300 | ac_preproc_ok=false | ||
2301 | for ac_c_preproc_warn_flag in '' yes | ||
2302 | do | ||
2303 | # Use a header file that comes with gcc, so configuring glibc | ||
2304 | # with a fresh cross-compiler works. | ||
2305 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2306 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2307 | cat >conftest.$ac_ext <<_ACEOF | ||
2308 | #line $LINENO "configure" | ||
2309 | #include "confdefs.h" | ||
2310 | #include <assert.h> | ||
2311 | Syntax error | ||
2312 | _ACEOF | ||
2313 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2314 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2315 | ac_status=$? | ||
2316 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2317 | rm -f conftest.er1 | ||
2318 | cat conftest.err >&5 | ||
2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2320 | (exit $ac_status); } >/dev/null; then | ||
2321 | if test -s conftest.err; then | ||
2322 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2323 | else | ||
2324 | ac_cpp_err= | ||
2325 | fi | ||
2326 | else | ||
2327 | ac_cpp_err=yes | ||
2328 | fi | ||
2329 | if test -z "$ac_cpp_err"; then | ||
2330 | : | ||
2331 | else | ||
2332 | echo "$as_me: failed program was:" >&5 | ||
2333 | cat conftest.$ac_ext >&5 | ||
2334 | # Broken: fails on valid input. | ||
2335 | continue | ||
2336 | fi | ||
2337 | rm -f conftest.err conftest.$ac_ext | ||
2338 | |||
2339 | # OK, works on sane cases. Now check whether non-existent headers | ||
2340 | # can be detected and how. | ||
2341 | cat >conftest.$ac_ext <<_ACEOF | ||
2342 | #line $LINENO "configure" | ||
2343 | #include "confdefs.h" | ||
2344 | #include <ac_nonexistent.h> | ||
2345 | _ACEOF | ||
2346 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2347 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2348 | ac_status=$? | ||
2349 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2350 | rm -f conftest.er1 | ||
2351 | cat conftest.err >&5 | ||
2352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2353 | (exit $ac_status); } >/dev/null; then | ||
2354 | if test -s conftest.err; then | ||
2355 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2356 | else | ||
2357 | ac_cpp_err= | ||
2358 | fi | ||
2359 | else | ||
2360 | ac_cpp_err=yes | ||
2361 | fi | ||
2362 | if test -z "$ac_cpp_err"; then | ||
2363 | # Broken: success on invalid input. | ||
2364 | continue | ||
2365 | else | ||
2366 | echo "$as_me: failed program was:" >&5 | ||
2367 | cat conftest.$ac_ext >&5 | ||
2368 | # Passes both tests. | ||
2369 | ac_preproc_ok=: | ||
2370 | break | ||
2371 | fi | ||
2372 | rm -f conftest.err conftest.$ac_ext | ||
2373 | |||
2374 | done | ||
2375 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2376 | rm -f conftest.err conftest.$ac_ext | ||
2377 | if $ac_preproc_ok; then | ||
2378 | break | ||
2379 | fi | ||
2380 | |||
2381 | done | ||
2382 | ac_cv_prog_CPP=$CPP | ||
2383 | |||
2384 | fi | ||
2385 | CPP=$ac_cv_prog_CPP | ||
2386 | else | ||
2387 | ac_cv_prog_CPP=$CPP | ||
2388 | fi | ||
2389 | echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2390 | echo "${ECHO_T}$CPP" >&6 | ||
2391 | ac_preproc_ok=false | ||
2392 | for ac_c_preproc_warn_flag in '' yes | ||
2393 | do | ||
2394 | # Use a header file that comes with gcc, so configuring glibc | ||
2395 | # with a fresh cross-compiler works. | ||
2396 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2397 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2398 | cat >conftest.$ac_ext <<_ACEOF | ||
2399 | #line $LINENO "configure" | ||
2400 | #include "confdefs.h" | ||
2401 | #include <assert.h> | ||
2402 | Syntax error | ||
2403 | _ACEOF | ||
2404 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2405 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2406 | ac_status=$? | ||
2407 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2408 | rm -f conftest.er1 | ||
2409 | cat conftest.err >&5 | ||
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2411 | (exit $ac_status); } >/dev/null; then | ||
2412 | if test -s conftest.err; then | ||
2413 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2414 | else | ||
2415 | ac_cpp_err= | ||
2416 | fi | ||
2417 | else | ||
2418 | ac_cpp_err=yes | ||
2419 | fi | ||
2420 | if test -z "$ac_cpp_err"; then | ||
2421 | : | ||
2422 | else | ||
2423 | echo "$as_me: failed program was:" >&5 | ||
2424 | cat conftest.$ac_ext >&5 | ||
2425 | # Broken: fails on valid input. | ||
2426 | continue | ||
2427 | fi | ||
2428 | rm -f conftest.err conftest.$ac_ext | ||
2429 | |||
2430 | # OK, works on sane cases. Now check whether non-existent headers | ||
2431 | # can be detected and how. | ||
2432 | cat >conftest.$ac_ext <<_ACEOF | ||
2433 | #line $LINENO "configure" | ||
2434 | #include "confdefs.h" | ||
2435 | #include <ac_nonexistent.h> | ||
2436 | _ACEOF | ||
2437 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2438 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2439 | ac_status=$? | ||
2440 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2441 | rm -f conftest.er1 | ||
2442 | cat conftest.err >&5 | ||
2443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2444 | (exit $ac_status); } >/dev/null; then | ||
2445 | if test -s conftest.err; then | ||
2446 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2447 | else | ||
2448 | ac_cpp_err= | ||
2449 | fi | ||
2450 | else | ||
2451 | ac_cpp_err=yes | ||
2452 | fi | ||
2453 | if test -z "$ac_cpp_err"; then | ||
2454 | # Broken: success on invalid input. | ||
2455 | continue | ||
2456 | else | ||
2457 | echo "$as_me: failed program was:" >&5 | ||
2458 | cat conftest.$ac_ext >&5 | ||
2459 | # Passes both tests. | ||
2460 | ac_preproc_ok=: | ||
2461 | break | ||
2462 | fi | ||
2463 | rm -f conftest.err conftest.$ac_ext | ||
2464 | |||
2465 | done | ||
2466 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2467 | rm -f conftest.err conftest.$ac_ext | ||
2468 | if $ac_preproc_ok; then | ||
2469 | : | ||
2470 | else | ||
2471 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 | ||
2472 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | ||
2473 | { (exit 1); exit 1; }; } | ||
2474 | fi | ||
2475 | |||
2476 | ac_ext=c | ||
2477 | ac_cpp='$CPP $CPPFLAGS' | ||
2478 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2479 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2480 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2481 | |||
2482 | if test -n "$ac_tool_prefix"; then | ||
2483 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
2484 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
2485 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2487 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
2488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2489 | else | ||
2490 | if test -n "$RANLIB"; then | ||
2491 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
2492 | else | ||
2493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2494 | for as_dir in $PATH | ||
2495 | do | ||
2496 | IFS=$as_save_IFS | ||
2497 | test -z "$as_dir" && as_dir=. | ||
2498 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2499 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2500 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
2501 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2502 | break 2 | ||
2503 | fi | ||
2504 | done | ||
2505 | done | ||
2506 | |||
2507 | fi | ||
2508 | fi | ||
2509 | RANLIB=$ac_cv_prog_RANLIB | ||
2510 | if test -n "$RANLIB"; then | ||
2511 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
2512 | echo "${ECHO_T}$RANLIB" >&6 | ||
2513 | else | ||
2514 | echo "$as_me:$LINENO: result: no" >&5 | ||
2515 | echo "${ECHO_T}no" >&6 | ||
2516 | fi | ||
2517 | |||
2518 | fi | ||
2519 | if test -z "$ac_cv_prog_RANLIB"; then | ||
2520 | ac_ct_RANLIB=$RANLIB | ||
2521 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
2522 | set dummy ranlib; ac_word=$2 | ||
2523 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2524 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2525 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
2526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2527 | else | ||
2528 | if test -n "$ac_ct_RANLIB"; then | ||
2529 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
2530 | else | ||
2531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2532 | for as_dir in $PATH | ||
2533 | do | ||
2534 | IFS=$as_save_IFS | ||
2535 | test -z "$as_dir" && as_dir=. | ||
2536 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2537 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2538 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
2539 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2540 | break 2 | ||
2541 | fi | ||
2542 | done | ||
2543 | done | ||
2544 | |||
2545 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
2546 | fi | ||
2547 | fi | ||
2548 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
2549 | if test -n "$ac_ct_RANLIB"; then | ||
2550 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
2551 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
2552 | else | ||
2553 | echo "$as_me:$LINENO: result: no" >&5 | ||
2554 | echo "${ECHO_T}no" >&6 | ||
2555 | fi | ||
2556 | |||
2557 | RANLIB=$ac_ct_RANLIB | ||
2558 | else | ||
2559 | RANLIB="$ac_cv_prog_RANLIB" | ||
2560 | fi | ||
2561 | |||
2562 | # Find a good install program. We prefer a C program (faster), | ||
2563 | # so one script is as good as another. But avoid the broken or | ||
2564 | # incompatible versions: | ||
2565 | # SysV /etc/install, /usr/sbin/install | ||
2566 | # SunOS /usr/etc/install | ||
2567 | # IRIX /sbin/install | ||
2568 | # AIX /bin/install | ||
2569 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2570 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2571 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2572 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2573 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2574 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
2575 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
2576 | if test -z "$INSTALL"; then | ||
2577 | if test "${ac_cv_path_install+set}" = set; then | ||
2578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2579 | else | ||
2580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2581 | for as_dir in $PATH | ||
2582 | do | ||
2583 | IFS=$as_save_IFS | ||
2584 | test -z "$as_dir" && as_dir=. | ||
2585 | # Account for people who put trailing slashes in PATH elements. | ||
2586 | case $as_dir/ in | ||
2587 | ./ | .// | /cC/* | \ | ||
2588 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2589 | /usr/ucb/* ) ;; | ||
2590 | *) | ||
2591 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2592 | # Don't use installbsd from OSF since it installs stuff as root | ||
2593 | # by default. | ||
2594 | for ac_prog in ginstall scoinst install; do | ||
2595 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2596 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
2597 | if test $ac_prog = install && | ||
2598 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2599 | # AIX install. It has an incompatible calling convention. | ||
2600 | : | ||
2601 | elif test $ac_prog = install && | ||
2602 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2603 | # program-specific install script used by HP pwplus--don't use. | ||
2604 | : | ||
2605 | else | ||
2606 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2607 | break 3 | ||
2608 | fi | ||
2609 | fi | ||
2610 | done | ||
2611 | done | ||
2612 | ;; | ||
2613 | esac | ||
2614 | done | ||
2615 | |||
2616 | |||
2617 | fi | ||
2618 | if test "${ac_cv_path_install+set}" = set; then | ||
2619 | INSTALL=$ac_cv_path_install | ||
2620 | else | ||
2621 | # As a last resort, use the slow shell script. We don't cache a | ||
2622 | # path for INSTALL within a source directory, because that will | ||
2623 | # break other packages using the cache if that directory is | ||
2624 | # removed, or if the path is relative. | ||
2625 | INSTALL=$ac_install_sh | ||
2626 | fi | ||
2627 | fi | ||
2628 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
2629 | echo "${ECHO_T}$INSTALL" >&6 | ||
2630 | |||
2631 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2632 | # It thinks the first close brace ends the variable substitution. | ||
2633 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2634 | |||
2635 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2636 | |||
2637 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2638 | |||
2639 | # Extract the first word of "ar", so it can be a program name with args. | ||
2640 | set dummy ar; ac_word=$2 | ||
2641 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2643 | if test "${ac_cv_path_AR+set}" = set; then | ||
2644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2645 | else | ||
2646 | case $AR in | ||
2647 | [\\/]* | ?:[\\/]*) | ||
2648 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
2649 | ;; | ||
2650 | *) | ||
2651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2652 | for as_dir in $PATH | ||
2653 | do | ||
2654 | IFS=$as_save_IFS | ||
2655 | test -z "$as_dir" && as_dir=. | ||
2656 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2657 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2658 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
2659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2660 | break 2 | ||
2661 | fi | ||
2662 | done | ||
2663 | done | ||
2664 | |||
2665 | ;; | ||
2666 | esac | ||
2667 | fi | ||
2668 | AR=$ac_cv_path_AR | ||
2669 | |||
2670 | if test -n "$AR"; then | ||
2671 | echo "$as_me:$LINENO: result: $AR" >&5 | ||
2672 | echo "${ECHO_T}$AR" >&6 | ||
2673 | else | ||
2674 | echo "$as_me:$LINENO: result: no" >&5 | ||
2675 | echo "${ECHO_T}no" >&6 | ||
2676 | fi | ||
2677 | |||
2678 | for ac_prog in perl5 perl | ||
2679 | do | ||
2680 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2681 | set dummy $ac_prog; ac_word=$2 | ||
2682 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2684 | if test "${ac_cv_path_PERL+set}" = set; then | ||
2685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2686 | else | ||
2687 | case $PERL in | ||
2688 | [\\/]* | ?:[\\/]*) | ||
2689 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
2690 | ;; | ||
2691 | *) | ||
2692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2693 | for as_dir in $PATH | ||
2694 | do | ||
2695 | IFS=$as_save_IFS | ||
2696 | test -z "$as_dir" && as_dir=. | ||
2697 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2698 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2699 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
2700 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2701 | break 2 | ||
2702 | fi | ||
2703 | done | ||
2704 | done | ||
2705 | |||
2706 | ;; | ||
2707 | esac | ||
2708 | fi | ||
2709 | PERL=$ac_cv_path_PERL | ||
2710 | |||
2711 | if test -n "$PERL"; then | ||
2712 | echo "$as_me:$LINENO: result: $PERL" >&5 | ||
2713 | echo "${ECHO_T}$PERL" >&6 | ||
2714 | else | ||
2715 | echo "$as_me:$LINENO: result: no" >&5 | ||
2716 | echo "${ECHO_T}no" >&6 | ||
2717 | fi | ||
2718 | |||
2719 | test -n "$PERL" && break | ||
2720 | done | ||
2721 | |||
2722 | |||
2723 | # Extract the first word of "ent", so it can be a program name with args. | ||
2724 | set dummy ent; ac_word=$2 | ||
2725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2727 | if test "${ac_cv_path_ENT+set}" = set; then | ||
2728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2729 | else | ||
2730 | case $ENT in | ||
2731 | [\\/]* | ?:[\\/]*) | ||
2732 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
2733 | ;; | ||
2734 | *) | ||
2735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2736 | for as_dir in $PATH | ||
2737 | do | ||
2738 | IFS=$as_save_IFS | ||
2739 | test -z "$as_dir" && as_dir=. | ||
2740 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2742 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
2743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2744 | break 2 | ||
2745 | fi | ||
2746 | done | ||
2747 | done | ||
2748 | |||
2749 | ;; | ||
2750 | esac | ||
2751 | fi | ||
2752 | ENT=$ac_cv_path_ENT | ||
2753 | |||
2754 | if test -n "$ENT"; then | ||
2755 | echo "$as_me:$LINENO: result: $ENT" >&5 | ||
2756 | echo "${ECHO_T}$ENT" >&6 | ||
2757 | else | ||
2758 | echo "$as_me:$LINENO: result: no" >&5 | ||
2759 | echo "${ECHO_T}no" >&6 | ||
2760 | fi | ||
2761 | |||
2762 | |||
2763 | for ac_prog in filepriv | ||
2764 | do | ||
2765 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2766 | set dummy $ac_prog; ac_word=$2 | ||
2767 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2769 | if test "${ac_cv_path_FILEPRIV+set}" = set; then | ||
2770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2771 | else | ||
2772 | case $FILEPRIV in | ||
2773 | [\\/]* | ?:[\\/]*) | ||
2774 | ac_cv_path_FILEPRIV="$FILEPRIV" # Let the user override the test with a path. | ||
2775 | ;; | ||
2776 | *) | ||
2777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2778 | as_dummy="/sbin:/usr/sbin" | ||
2779 | for as_dir in $as_dummy | ||
2780 | do | ||
2781 | IFS=$as_save_IFS | ||
2782 | test -z "$as_dir" && as_dir=. | ||
2783 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2785 | ac_cv_path_FILEPRIV="$as_dir/$ac_word$ac_exec_ext" | ||
2786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2787 | break 2 | ||
2788 | fi | ||
2789 | done | ||
2790 | done | ||
2791 | |||
2792 | ;; | ||
2793 | esac | ||
2794 | fi | ||
2795 | FILEPRIV=$ac_cv_path_FILEPRIV | ||
2796 | |||
2797 | if test -n "$FILEPRIV"; then | ||
2798 | echo "$as_me:$LINENO: result: $FILEPRIV" >&5 | ||
2799 | echo "${ECHO_T}$FILEPRIV" >&6 | ||
2800 | else | ||
2801 | echo "$as_me:$LINENO: result: no" >&5 | ||
2802 | echo "${ECHO_T}no" >&6 | ||
2803 | fi | ||
2804 | |||
2805 | test -n "$FILEPRIV" && break | ||
2806 | done | ||
2807 | test -n "$FILEPRIV" || FILEPRIV="true" | ||
2808 | |||
2809 | # Extract the first word of "bash", so it can be a program name with args. | ||
2810 | set dummy bash; ac_word=$2 | ||
2811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2813 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2815 | else | ||
2816 | case $TEST_MINUS_S_SH in | ||
2817 | [\\/]* | ?:[\\/]*) | ||
2818 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2819 | ;; | ||
2820 | *) | ||
2821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2822 | for as_dir in $PATH | ||
2823 | do | ||
2824 | IFS=$as_save_IFS | ||
2825 | test -z "$as_dir" && as_dir=. | ||
2826 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2827 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2828 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2830 | break 2 | ||
2831 | fi | ||
2832 | done | ||
2833 | done | ||
2834 | |||
2835 | ;; | ||
2836 | esac | ||
2837 | fi | ||
2838 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2839 | |||
2840 | if test -n "$TEST_MINUS_S_SH"; then | ||
2841 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2842 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2843 | else | ||
2844 | echo "$as_me:$LINENO: result: no" >&5 | ||
2845 | echo "${ECHO_T}no" >&6 | ||
2846 | fi | ||
2847 | |||
2848 | # Extract the first word of "ksh", so it can be a program name with args. | ||
2849 | set dummy ksh; ac_word=$2 | ||
2850 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2852 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2854 | else | ||
2855 | case $TEST_MINUS_S_SH in | ||
2856 | [\\/]* | ?:[\\/]*) | ||
2857 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2858 | ;; | ||
2859 | *) | ||
2860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2861 | for as_dir in $PATH | ||
2862 | do | ||
2863 | IFS=$as_save_IFS | ||
2864 | test -z "$as_dir" && as_dir=. | ||
2865 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2867 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2869 | break 2 | ||
2870 | fi | ||
2871 | done | ||
2872 | done | ||
2873 | |||
2874 | ;; | ||
2875 | esac | ||
2876 | fi | ||
2877 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2878 | |||
2879 | if test -n "$TEST_MINUS_S_SH"; then | ||
2880 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2881 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2882 | else | ||
2883 | echo "$as_me:$LINENO: result: no" >&5 | ||
2884 | echo "${ECHO_T}no" >&6 | ||
2885 | fi | ||
2886 | |||
2887 | # Extract the first word of "sh", so it can be a program name with args. | ||
2888 | set dummy sh; ac_word=$2 | ||
2889 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2891 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2893 | else | ||
2894 | case $TEST_MINUS_S_SH in | ||
2895 | [\\/]* | ?:[\\/]*) | ||
2896 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2897 | ;; | ||
2898 | *) | ||
2899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2900 | for as_dir in $PATH | ||
2901 | do | ||
2902 | IFS=$as_save_IFS | ||
2903 | test -z "$as_dir" && as_dir=. | ||
2904 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2905 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2906 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2908 | break 2 | ||
2909 | fi | ||
2910 | done | ||
2911 | done | ||
2912 | |||
2913 | ;; | ||
2914 | esac | ||
2915 | fi | ||
2916 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2917 | |||
2918 | if test -n "$TEST_MINUS_S_SH"; then | ||
2919 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2920 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2921 | else | ||
2922 | echo "$as_me:$LINENO: result: no" >&5 | ||
2923 | echo "${ECHO_T}no" >&6 | ||
2924 | fi | ||
2925 | |||
2926 | # Extract the first word of "sh", so it can be a program name with args. | ||
2927 | set dummy sh; ac_word=$2 | ||
2928 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2930 | if test "${ac_cv_path_SH+set}" = set; then | ||
2931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2932 | else | ||
2933 | case $SH in | ||
2934 | [\\/]* | ?:[\\/]*) | ||
2935 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
2936 | ;; | ||
2937 | *) | ||
2938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2939 | for as_dir in $PATH | ||
2940 | do | ||
2941 | IFS=$as_save_IFS | ||
2942 | test -z "$as_dir" && as_dir=. | ||
2943 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2944 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2945 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2947 | break 2 | ||
2948 | fi | ||
2949 | done | ||
2950 | done | ||
2951 | |||
2952 | ;; | ||
2953 | esac | ||
2954 | fi | ||
2955 | SH=$ac_cv_path_SH | ||
2956 | |||
2957 | if test -n "$SH"; then | ||
2958 | echo "$as_me:$LINENO: result: $SH" >&5 | ||
2959 | echo "${ECHO_T}$SH" >&6 | ||
2960 | else | ||
2961 | echo "$as_me:$LINENO: result: no" >&5 | ||
2962 | echo "${ECHO_T}no" >&6 | ||
2963 | fi | ||
2964 | |||
2965 | |||
2966 | # System features | ||
2967 | # Check whether --enable-largefile or --disable-largefile was given. | ||
2968 | if test "${enable_largefile+set}" = set; then | ||
2969 | enableval="$enable_largefile" | ||
2970 | |||
2971 | fi; | ||
2972 | if test "$enable_largefile" != no; then | ||
2973 | |||
2974 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
2975 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
2976 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
2977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2978 | else | ||
2979 | ac_cv_sys_largefile_CC=no | ||
2980 | if test "$GCC" != yes; then | ||
2981 | ac_save_CC=$CC | ||
2982 | while :; do | ||
2983 | # IRIX 6.2 and later do not support large files by default, | ||
2984 | # so use the C compiler's -n32 option if that helps. | ||
2985 | cat >conftest.$ac_ext <<_ACEOF | ||
2986 | #line $LINENO "configure" | ||
2987 | #include "confdefs.h" | ||
2988 | #include <sys/types.h> | ||
2989 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2990 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2991 | since some C++ compilers masquerading as C compilers | ||
2992 | incorrectly reject 9223372036854775807. */ | ||
2993 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2994 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2995 | && LARGE_OFF_T % 2147483647 == 1) | ||
2996 | ? 1 : -1]; | ||
2997 | #ifdef F77_DUMMY_MAIN | ||
2998 | # ifdef __cplusplus | ||
2999 | extern "C" | ||
3000 | # endif | ||
3001 | int F77_DUMMY_MAIN() { return 1; } | ||
3002 | #endif | ||
3003 | int | ||
3004 | main () | ||
3005 | { | ||
3006 | |||
3007 | ; | ||
3008 | return 0; | ||
3009 | } | ||
3010 | _ACEOF | ||
3011 | rm -f conftest.$ac_objext | ||
3012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3013 | (eval $ac_compile) 2>&5 | ||
3014 | ac_status=$? | ||
3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3016 | (exit $ac_status); } && | ||
3017 | { ac_try='test -s conftest.$ac_objext' | ||
3018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3019 | (eval $ac_try) 2>&5 | ||
3020 | ac_status=$? | ||
3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3022 | (exit $ac_status); }; }; then | ||
3023 | break | ||
3024 | else | ||
3025 | echo "$as_me: failed program was:" >&5 | ||
3026 | cat conftest.$ac_ext >&5 | ||
3027 | fi | ||
3028 | rm -f conftest.$ac_objext | ||
3029 | CC="$CC -n32" | ||
3030 | rm -f conftest.$ac_objext | ||
3031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3032 | (eval $ac_compile) 2>&5 | ||
3033 | ac_status=$? | ||
3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3035 | (exit $ac_status); } && | ||
3036 | { ac_try='test -s conftest.$ac_objext' | ||
3037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3038 | (eval $ac_try) 2>&5 | ||
3039 | ac_status=$? | ||
3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3041 | (exit $ac_status); }; }; then | ||
3042 | ac_cv_sys_largefile_CC=' -n32'; break | ||
3043 | else | ||
3044 | echo "$as_me: failed program was:" >&5 | ||
3045 | cat conftest.$ac_ext >&5 | ||
3046 | fi | ||
3047 | rm -f conftest.$ac_objext | ||
3048 | break | ||
3049 | done | ||
3050 | CC=$ac_save_CC | ||
3051 | rm -f conftest.$ac_ext | ||
3052 | fi | ||
3053 | fi | ||
3054 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
3055 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
3056 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
3057 | CC=$CC$ac_cv_sys_largefile_CC | ||
3058 | fi | ||
3059 | |||
3060 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
3061 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
3062 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
3063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3064 | else | ||
3065 | while :; do | ||
3066 | ac_cv_sys_file_offset_bits=no | ||
3067 | cat >conftest.$ac_ext <<_ACEOF | ||
3068 | #line $LINENO "configure" | ||
3069 | #include "confdefs.h" | ||
3070 | #include <sys/types.h> | ||
3071 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3072 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3073 | since some C++ compilers masquerading as C compilers | ||
3074 | incorrectly reject 9223372036854775807. */ | ||
3075 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3076 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3077 | && LARGE_OFF_T % 2147483647 == 1) | ||
3078 | ? 1 : -1]; | ||
3079 | #ifdef F77_DUMMY_MAIN | ||
3080 | # ifdef __cplusplus | ||
3081 | extern "C" | ||
3082 | # endif | ||
3083 | int F77_DUMMY_MAIN() { return 1; } | ||
3084 | #endif | ||
3085 | int | ||
3086 | main () | ||
3087 | { | ||
3088 | |||
3089 | ; | ||
3090 | return 0; | ||
3091 | } | ||
3092 | _ACEOF | ||
3093 | rm -f conftest.$ac_objext | ||
3094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3095 | (eval $ac_compile) 2>&5 | ||
3096 | ac_status=$? | ||
3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3098 | (exit $ac_status); } && | ||
3099 | { ac_try='test -s conftest.$ac_objext' | ||
3100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3101 | (eval $ac_try) 2>&5 | ||
3102 | ac_status=$? | ||
3103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3104 | (exit $ac_status); }; }; then | ||
3105 | break | ||
3106 | else | ||
3107 | echo "$as_me: failed program was:" >&5 | ||
3108 | cat conftest.$ac_ext >&5 | ||
3109 | fi | ||
3110 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3111 | cat >conftest.$ac_ext <<_ACEOF | ||
3112 | #line $LINENO "configure" | ||
3113 | #include "confdefs.h" | ||
3114 | #define _FILE_OFFSET_BITS 64 | ||
3115 | #include <sys/types.h> | ||
3116 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3117 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3118 | since some C++ compilers masquerading as C compilers | ||
3119 | incorrectly reject 9223372036854775807. */ | ||
3120 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3121 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3122 | && LARGE_OFF_T % 2147483647 == 1) | ||
3123 | ? 1 : -1]; | ||
3124 | #ifdef F77_DUMMY_MAIN | ||
3125 | # ifdef __cplusplus | ||
3126 | extern "C" | ||
3127 | # endif | ||
3128 | int F77_DUMMY_MAIN() { return 1; } | ||
3129 | #endif | ||
3130 | int | ||
3131 | main () | ||
3132 | { | ||
3133 | |||
3134 | ; | ||
3135 | return 0; | ||
3136 | } | ||
3137 | _ACEOF | ||
3138 | rm -f conftest.$ac_objext | ||
3139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3140 | (eval $ac_compile) 2>&5 | ||
3141 | ac_status=$? | ||
3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3143 | (exit $ac_status); } && | ||
3144 | { ac_try='test -s conftest.$ac_objext' | ||
3145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3146 | (eval $ac_try) 2>&5 | ||
3147 | ac_status=$? | ||
3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3149 | (exit $ac_status); }; }; then | ||
3150 | ac_cv_sys_file_offset_bits=64; break | ||
3151 | else | ||
3152 | echo "$as_me: failed program was:" >&5 | ||
3153 | cat conftest.$ac_ext >&5 | ||
3154 | fi | ||
3155 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3156 | break | ||
3157 | done | ||
3158 | fi | ||
3159 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
3160 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
3161 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
3162 | |||
3163 | cat >>confdefs.h <<_ACEOF | ||
3164 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
3165 | _ACEOF | ||
3166 | |||
3167 | fi | ||
3168 | rm -f conftest* | ||
3169 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
3170 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
3171 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
3172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3173 | else | ||
3174 | while :; do | ||
3175 | ac_cv_sys_large_files=no | ||
3176 | cat >conftest.$ac_ext <<_ACEOF | ||
3177 | #line $LINENO "configure" | ||
3178 | #include "confdefs.h" | ||
3179 | #include <sys/types.h> | ||
3180 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3181 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3182 | since some C++ compilers masquerading as C compilers | ||
3183 | incorrectly reject 9223372036854775807. */ | ||
3184 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3185 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3186 | && LARGE_OFF_T % 2147483647 == 1) | ||
3187 | ? 1 : -1]; | ||
3188 | #ifdef F77_DUMMY_MAIN | ||
3189 | # ifdef __cplusplus | ||
3190 | extern "C" | ||
3191 | # endif | ||
3192 | int F77_DUMMY_MAIN() { return 1; } | ||
3193 | #endif | ||
3194 | int | ||
3195 | main () | ||
3196 | { | ||
3197 | |||
3198 | ; | ||
3199 | return 0; | ||
3200 | } | ||
3201 | _ACEOF | ||
3202 | rm -f conftest.$ac_objext | ||
3203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3204 | (eval $ac_compile) 2>&5 | ||
3205 | ac_status=$? | ||
3206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3207 | (exit $ac_status); } && | ||
3208 | { ac_try='test -s conftest.$ac_objext' | ||
3209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3210 | (eval $ac_try) 2>&5 | ||
3211 | ac_status=$? | ||
3212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3213 | (exit $ac_status); }; }; then | ||
3214 | break | ||
3215 | else | ||
3216 | echo "$as_me: failed program was:" >&5 | ||
3217 | cat conftest.$ac_ext >&5 | ||
3218 | fi | ||
3219 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3220 | cat >conftest.$ac_ext <<_ACEOF | ||
3221 | #line $LINENO "configure" | ||
3222 | #include "confdefs.h" | ||
3223 | #define _LARGE_FILES 1 | ||
3224 | #include <sys/types.h> | ||
3225 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3226 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3227 | since some C++ compilers masquerading as C compilers | ||
3228 | incorrectly reject 9223372036854775807. */ | ||
3229 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3230 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3231 | && LARGE_OFF_T % 2147483647 == 1) | ||
3232 | ? 1 : -1]; | ||
3233 | #ifdef F77_DUMMY_MAIN | ||
3234 | # ifdef __cplusplus | ||
3235 | extern "C" | ||
3236 | # endif | ||
3237 | int F77_DUMMY_MAIN() { return 1; } | ||
3238 | #endif | ||
3239 | int | ||
3240 | main () | ||
3241 | { | ||
3242 | |||
3243 | ; | ||
3244 | return 0; | ||
3245 | } | ||
3246 | _ACEOF | ||
3247 | rm -f conftest.$ac_objext | ||
3248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3249 | (eval $ac_compile) 2>&5 | ||
3250 | ac_status=$? | ||
3251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3252 | (exit $ac_status); } && | ||
3253 | { ac_try='test -s conftest.$ac_objext' | ||
3254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3255 | (eval $ac_try) 2>&5 | ||
3256 | ac_status=$? | ||
3257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3258 | (exit $ac_status); }; }; then | ||
3259 | ac_cv_sys_large_files=1; break | ||
3260 | else | ||
3261 | echo "$as_me: failed program was:" >&5 | ||
3262 | cat conftest.$ac_ext >&5 | ||
3263 | fi | ||
3264 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3265 | break | ||
3266 | done | ||
3267 | fi | ||
3268 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
3269 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
3270 | if test "$ac_cv_sys_large_files" != no; then | ||
3271 | |||
3272 | cat >>confdefs.h <<_ACEOF | ||
3273 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
3274 | _ACEOF | ||
3275 | |||
3276 | fi | ||
3277 | rm -f conftest* | ||
3278 | fi | ||
3279 | |||
3280 | |||
3281 | if test -z "$AR" ; then | ||
3282 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
3283 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
3284 | { (exit 1); exit 1; }; } | ||
3285 | fi | ||
3286 | |||
3287 | # Use LOGIN_PROGRAM from environment if possible | ||
3288 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
3289 | cat >>confdefs.h <<_ACEOF | ||
3290 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
3291 | _ACEOF | ||
3292 | |||
3293 | else | ||
3294 | # Search for login | ||
3295 | # Extract the first word of "login", so it can be a program name with args. | ||
3296 | set dummy login; ac_word=$2 | ||
3297 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3299 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
3300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3301 | else | ||
3302 | case $LOGIN_PROGRAM_FALLBACK in | ||
3303 | [\\/]* | ?:[\\/]*) | ||
3304 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
3305 | ;; | ||
3306 | *) | ||
3307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3308 | for as_dir in $PATH | ||
3309 | do | ||
3310 | IFS=$as_save_IFS | ||
3311 | test -z "$as_dir" && as_dir=. | ||
3312 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3313 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3314 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
3315 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3316 | break 2 | ||
3317 | fi | ||
3318 | done | ||
3319 | done | ||
3320 | |||
3321 | ;; | ||
3322 | esac | ||
3323 | fi | ||
3324 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
3325 | |||
3326 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
3327 | echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
3328 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
3329 | else | ||
3330 | echo "$as_me:$LINENO: result: no" >&5 | ||
3331 | echo "${ECHO_T}no" >&6 | ||
3332 | fi | ||
3333 | |||
3334 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
3335 | cat >>confdefs.h <<_ACEOF | ||
3336 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
3337 | _ACEOF | ||
3338 | |||
3339 | fi | ||
3340 | fi | ||
3341 | |||
3342 | if test -z "$LD" ; then | ||
3343 | LD=$CC | ||
3344 | fi | ||
3345 | |||
3346 | |||
3347 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | ||
3348 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
3349 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
3350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3351 | else | ||
3352 | ac_cv_prog_cc_stdc=no | ||
3353 | ac_save_CC=$CC | ||
3354 | cat >conftest.$ac_ext <<_ACEOF | ||
3355 | #line $LINENO "configure" | ||
3356 | #include "confdefs.h" | ||
3357 | #include <stdarg.h> | ||
3358 | #include <stdio.h> | ||
3359 | #include <sys/types.h> | ||
3360 | #include <sys/stat.h> | ||
3361 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3362 | struct buf { int x; }; | ||
3363 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3364 | static char *e (p, i) | ||
3365 | char **p; | ||
3366 | int i; | ||
3367 | { | ||
3368 | return p[i]; | ||
3369 | } | ||
3370 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3371 | { | ||
3372 | char *s; | ||
3373 | va_list v; | ||
3374 | va_start (v,p); | ||
3375 | s = g (p, va_arg (v,int)); | ||
3376 | va_end (v); | ||
3377 | return s; | ||
3378 | } | ||
3379 | int test (int i, double x); | ||
3380 | struct s1 {int (*f) (int a);}; | ||
3381 | struct s2 {int (*f) (double a);}; | ||
3382 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3383 | int argc; | ||
3384 | char **argv; | ||
3385 | #ifdef F77_DUMMY_MAIN | ||
3386 | # ifdef __cplusplus | ||
3387 | extern "C" | ||
3388 | # endif | ||
3389 | int F77_DUMMY_MAIN() { return 1; } | ||
3390 | #endif | ||
3391 | int | ||
3392 | main () | ||
3393 | { | ||
3394 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3395 | ; | ||
3396 | return 0; | ||
3397 | } | ||
3398 | _ACEOF | ||
3399 | # Don't try gcc -ansi; that turns off useful extensions and | ||
3400 | # breaks some systems' header files. | ||
3401 | # AIX -qlanglvl=ansi | ||
3402 | # Ultrix and OSF/1 -std1 | ||
3403 | # HP-UX 10.20 and later -Ae | ||
3404 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
3405 | # SVR4 -Xc -D__EXTENSIONS__ | ||
3406 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3407 | do | ||
3408 | CC="$ac_save_CC $ac_arg" | ||
3409 | rm -f conftest.$ac_objext | ||
3410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3411 | (eval $ac_compile) 2>&5 | ||
3412 | ac_status=$? | ||
3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3414 | (exit $ac_status); } && | ||
3415 | { ac_try='test -s conftest.$ac_objext' | ||
3416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3417 | (eval $ac_try) 2>&5 | ||
3418 | ac_status=$? | ||
3419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3420 | (exit $ac_status); }; }; then | ||
3421 | ac_cv_prog_cc_stdc=$ac_arg | ||
3422 | break | ||
3423 | else | ||
3424 | echo "$as_me: failed program was:" >&5 | ||
3425 | cat conftest.$ac_ext >&5 | ||
3426 | fi | ||
3427 | rm -f conftest.$ac_objext | ||
3428 | done | ||
3429 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
3430 | CC=$ac_save_CC | ||
3431 | |||
3432 | fi | ||
3433 | |||
3434 | case "x$ac_cv_prog_cc_stdc" in | ||
3435 | x|xno) | ||
3436 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
3437 | echo "${ECHO_T}none needed" >&6 ;; | ||
3438 | *) | ||
3439 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
3440 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
3441 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
3442 | esac | ||
3443 | |||
3444 | echo "$as_me:$LINENO: checking for inline" >&5 | ||
3445 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
3446 | if test "${ac_cv_c_inline+set}" = set; then | ||
3447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3448 | else | ||
3449 | ac_cv_c_inline=no | ||
3450 | for ac_kw in inline __inline__ __inline; do | ||
3451 | cat >conftest.$ac_ext <<_ACEOF | ||
3452 | #line $LINENO "configure" | ||
3453 | #include "confdefs.h" | ||
3454 | #ifndef __cplusplus | ||
3455 | static $ac_kw int static_foo () {return 0; } | ||
3456 | $ac_kw int foo () {return 0; } | ||
3457 | #endif | ||
3458 | |||
3459 | _ACEOF | ||
3460 | rm -f conftest.$ac_objext | ||
3461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3462 | (eval $ac_compile) 2>&5 | ||
3463 | ac_status=$? | ||
3464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3465 | (exit $ac_status); } && | ||
3466 | { ac_try='test -s conftest.$ac_objext' | ||
3467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3468 | (eval $ac_try) 2>&5 | ||
3469 | ac_status=$? | ||
3470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3471 | (exit $ac_status); }; }; then | ||
3472 | ac_cv_c_inline=$ac_kw; break | ||
3473 | else | ||
3474 | echo "$as_me: failed program was:" >&5 | ||
3475 | cat conftest.$ac_ext >&5 | ||
3476 | fi | ||
3477 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3478 | done | ||
3479 | |||
3480 | fi | ||
3481 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
3482 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
3483 | case $ac_cv_c_inline in | ||
3484 | inline | yes) ;; | ||
3485 | no) | ||
3486 | cat >>confdefs.h <<\_ACEOF | ||
3487 | #define inline | ||
3488 | _ACEOF | ||
3489 | ;; | ||
3490 | *) cat >>confdefs.h <<_ACEOF | ||
3491 | #define inline $ac_cv_c_inline | ||
3492 | _ACEOF | ||
3493 | ;; | ||
3494 | esac | ||
3495 | |||
3496 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
3497 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | ||
3498 | fi | ||
3499 | |||
3500 | # Check for some target-specific stuff | ||
3501 | case "$host" in | ||
3502 | *-*-aix*) | ||
3503 | AFS_LIBS="-lld" | ||
3504 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3505 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
3506 | if (test "$LD" != "gcc" && test -z "$blibpath"); then | ||
3507 | echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5 | ||
3508 | echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6 | ||
3509 | saved_LDFLAGS="$LDFLAGS" | ||
3510 | LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib" | ||
3511 | cat >conftest.$ac_ext <<_ACEOF | ||
3512 | #line $LINENO "configure" | ||
3513 | #include "confdefs.h" | ||
3514 | |||
3515 | #ifdef F77_DUMMY_MAIN | ||
3516 | # ifdef __cplusplus | ||
3517 | extern "C" | ||
3518 | # endif | ||
3519 | int F77_DUMMY_MAIN() { return 1; } | ||
3520 | #endif | ||
3521 | int | ||
3522 | main () | ||
3523 | { | ||
3524 | |||
3525 | ; | ||
3526 | return 0; | ||
3527 | } | ||
3528 | _ACEOF | ||
3529 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3531 | (eval $ac_link) 2>&5 | ||
3532 | ac_status=$? | ||
3533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3534 | (exit $ac_status); } && | ||
3535 | { ac_try='test -s conftest$ac_exeext' | ||
3536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3537 | (eval $ac_try) 2>&5 | ||
3538 | ac_status=$? | ||
3539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3540 | (exit $ac_status); }; }; then | ||
3541 | |||
3542 | echo "$as_me:$LINENO: result: yes" >&5 | ||
3543 | echo "${ECHO_T}yes" >&6 | ||
3544 | blibpath="/usr/lib:/lib:/usr/local/lib" | ||
3545 | |||
3546 | else | ||
3547 | echo "$as_me: failed program was:" >&5 | ||
3548 | cat conftest.$ac_ext >&5 | ||
3549 | echo "$as_me:$LINENO: result: no" >&5 | ||
3550 | echo "${ECHO_T}no" >&6 | ||
3551 | |||
3552 | fi | ||
3553 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3554 | LDFLAGS="$saved_LDFLAGS" | ||
3555 | fi | ||
3556 | echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
3557 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
3558 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
3559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3560 | else | ||
3561 | cat >conftest.$ac_ext <<_ACEOF | ||
3562 | #line $LINENO "configure" | ||
3563 | #include "confdefs.h" | ||
3564 | /* System header to define __stub macros and hopefully few prototypes, | ||
3565 | which can conflict with char authenticate (); below. */ | ||
3566 | #include <assert.h> | ||
3567 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3568 | #ifdef __cplusplus | ||
3569 | extern "C" | ||
3570 | #endif | ||
3571 | /* We use char because int might match the return type of a gcc2 | ||
3572 | builtin and then its argument prototype would still apply. */ | ||
3573 | char authenticate (); | ||
3574 | char (*f) (); | ||
3575 | |||
3576 | #ifdef F77_DUMMY_MAIN | ||
3577 | # ifdef __cplusplus | ||
3578 | extern "C" | ||
3579 | # endif | ||
3580 | int F77_DUMMY_MAIN() { return 1; } | ||
3581 | #endif | ||
3582 | int | ||
3583 | main () | ||
3584 | { | ||
3585 | /* The GNU C library defines this for functions which it implements | ||
3586 | to always fail with ENOSYS. Some functions are actually named | ||
3587 | something starting with __ and the normal name is an alias. */ | ||
3588 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
3589 | choke me | ||
3590 | #else | ||
3591 | f = authenticate; | ||
3592 | #endif | ||
3593 | |||
3594 | ; | ||
3595 | return 0; | ||
3596 | } | ||
3597 | _ACEOF | ||
3598 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3600 | (eval $ac_link) 2>&5 | ||
3601 | ac_status=$? | ||
3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3603 | (exit $ac_status); } && | ||
3604 | { ac_try='test -s conftest$ac_exeext' | ||
3605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3606 | (eval $ac_try) 2>&5 | ||
3607 | ac_status=$? | ||
3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3609 | (exit $ac_status); }; }; then | ||
3610 | ac_cv_func_authenticate=yes | ||
3611 | else | ||
3612 | echo "$as_me: failed program was:" >&5 | ||
3613 | cat conftest.$ac_ext >&5 | ||
3614 | ac_cv_func_authenticate=no | ||
3615 | fi | ||
3616 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3617 | fi | ||
3618 | echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
3619 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
3620 | if test $ac_cv_func_authenticate = yes; then | ||
3621 | cat >>confdefs.h <<\_ACEOF | ||
3622 | #define WITH_AIXAUTHENTICATE 1 | ||
3623 | _ACEOF | ||
3624 | |||
3625 | fi | ||
3626 | |||
3627 | cat >>confdefs.h <<\_ACEOF | ||
3628 | #define BROKEN_GETADDRINFO 1 | ||
3629 | _ACEOF | ||
3630 | |||
3631 | cat >>confdefs.h <<\_ACEOF | ||
3632 | #define BROKEN_REALPATH 1 | ||
3633 | _ACEOF | ||
3634 | |||
3635 | cat >>confdefs.h <<\_ACEOF | ||
3636 | #define DISABLE_LASTLOG 1 | ||
3637 | _ACEOF | ||
3638 | |||
3639 | cat >>confdefs.h <<\_ACEOF | ||
3640 | #define LOGIN_NEEDS_UTMPX 1 | ||
3641 | _ACEOF | ||
3642 | |||
3643 | ;; | ||
3644 | *-*-cygwin*) | ||
3645 | LIBS="$LIBS /usr/lib/textmode.o" | ||
3646 | cat >>confdefs.h <<\_ACEOF | ||
3647 | #define HAVE_CYGWIN 1 | ||
3648 | _ACEOF | ||
3649 | |||
3650 | cat >>confdefs.h <<\_ACEOF | ||
3651 | #define USE_PIPES 1 | ||
3652 | _ACEOF | ||
3653 | |||
3654 | cat >>confdefs.h <<\_ACEOF | ||
3655 | #define DISABLE_SHADOW 1 | ||
3656 | _ACEOF | ||
3657 | |||
3658 | cat >>confdefs.h <<\_ACEOF | ||
3659 | #define IPV4_DEFAULT 1 | ||
3660 | _ACEOF | ||
3661 | |||
3662 | cat >>confdefs.h <<\_ACEOF | ||
3663 | #define IP_TOS_IS_BROKEN 1 | ||
3664 | _ACEOF | ||
3665 | |||
3666 | cat >>confdefs.h <<\_ACEOF | ||
3667 | #define NO_X11_UNIX_SOCKETS 1 | ||
3668 | _ACEOF | ||
3669 | |||
3670 | cat >>confdefs.h <<\_ACEOF | ||
3671 | #define BROKEN_FD_PASSING 1 | ||
3672 | _ACEOF | ||
3673 | |||
3674 | cat >>confdefs.h <<\_ACEOF | ||
3675 | #define SETGROUPS_NOOP 1 | ||
3676 | _ACEOF | ||
3677 | |||
3678 | ;; | ||
3679 | *-*-dgux*) | ||
3680 | cat >>confdefs.h <<\_ACEOF | ||
3681 | #define IP_TOS_IS_BROKEN 1 | ||
3682 | _ACEOF | ||
3683 | |||
3684 | ;; | ||
3685 | *-*-darwin*) | ||
3686 | cat >>confdefs.h <<\_ACEOF | ||
3687 | #define BROKEN_GETADDRINFO 1 | ||
3688 | _ACEOF | ||
3689 | |||
3690 | ;; | ||
3691 | *-*-hpux10.26) | ||
3692 | if test -z "$GCC"; then | ||
3693 | CFLAGS="$CFLAGS -Ae" | ||
3694 | fi | ||
3695 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3696 | IPADDR_IN_DISPLAY=yes | ||
3697 | cat >>confdefs.h <<\_ACEOF | ||
3698 | #define HAVE_SECUREWARE 1 | ||
3699 | _ACEOF | ||
3700 | |||
3701 | cat >>confdefs.h <<\_ACEOF | ||
3702 | #define USE_PIPES 1 | ||
3703 | _ACEOF | ||
3704 | |||
3705 | cat >>confdefs.h <<\_ACEOF | ||
3706 | #define LOGIN_NO_ENDOPT 1 | ||
3707 | _ACEOF | ||
3708 | |||
3709 | cat >>confdefs.h <<\_ACEOF | ||
3710 | #define LOGIN_NEEDS_UTMPX 1 | ||
3711 | _ACEOF | ||
3712 | |||
3713 | cat >>confdefs.h <<\_ACEOF | ||
3714 | #define DISABLE_SHADOW 1 | ||
3715 | _ACEOF | ||
3716 | |||
3717 | cat >>confdefs.h <<\_ACEOF | ||
3718 | #define DISABLE_UTMP 1 | ||
3719 | _ACEOF | ||
3720 | |||
3721 | cat >>confdefs.h <<\_ACEOF | ||
3722 | #define SPT_TYPE SPT_PSTAT | ||
3723 | _ACEOF | ||
3724 | |||
3725 | LIBS="$LIBS -lxnet -lsec -lsecpw" | ||
3726 | disable_ptmx_check=yes | ||
3727 | ;; | ||
3728 | *-*-hpux10*) | ||
3729 | if test -z "$GCC"; then | ||
3730 | CFLAGS="$CFLAGS -Ae" | ||
3731 | fi | ||
3732 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3733 | IPADDR_IN_DISPLAY=yes | ||
3734 | cat >>confdefs.h <<\_ACEOF | ||
3735 | #define USE_PIPES 1 | ||
3736 | _ACEOF | ||
3737 | |||
3738 | cat >>confdefs.h <<\_ACEOF | ||
3739 | #define LOGIN_NO_ENDOPT 1 | ||
3740 | _ACEOF | ||
3741 | |||
3742 | cat >>confdefs.h <<\_ACEOF | ||
3743 | #define LOGIN_NEEDS_UTMPX 1 | ||
3744 | _ACEOF | ||
3745 | |||
3746 | cat >>confdefs.h <<\_ACEOF | ||
3747 | #define DISABLE_SHADOW 1 | ||
3748 | _ACEOF | ||
3749 | |||
3750 | cat >>confdefs.h <<\_ACEOF | ||
3751 | #define DISABLE_UTMP 1 | ||
3752 | _ACEOF | ||
3753 | |||
3754 | cat >>confdefs.h <<\_ACEOF | ||
3755 | #define SPT_TYPE SPT_PSTAT | ||
3756 | _ACEOF | ||
3757 | |||
3758 | LIBS="$LIBS -lxnet -lsec" | ||
3759 | ;; | ||
3760 | *-*-hpux11*) | ||
3761 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3762 | IPADDR_IN_DISPLAY=yes | ||
3763 | cat >>confdefs.h <<\_ACEOF | ||
3764 | #define PAM_SUN_CODEBASE 1 | ||
3765 | _ACEOF | ||
3766 | |||
3767 | cat >>confdefs.h <<\_ACEOF | ||
3768 | #define USE_PIPES 1 | ||
3769 | _ACEOF | ||
3770 | |||
3771 | cat >>confdefs.h <<\_ACEOF | ||
3772 | #define LOGIN_NO_ENDOPT 1 | ||
3773 | _ACEOF | ||
3774 | |||
3775 | cat >>confdefs.h <<\_ACEOF | ||
3776 | #define LOGIN_NEEDS_UTMPX 1 | ||
3777 | _ACEOF | ||
3778 | |||
3779 | cat >>confdefs.h <<\_ACEOF | ||
3780 | #define DISABLE_SHADOW 1 | ||
3781 | _ACEOF | ||
3782 | |||
3783 | cat >>confdefs.h <<\_ACEOF | ||
3784 | #define DISABLE_UTMP 1 | ||
3785 | _ACEOF | ||
3786 | |||
3787 | cat >>confdefs.h <<\_ACEOF | ||
3788 | #define SPT_TYPE SPT_PSTAT | ||
3789 | _ACEOF | ||
3790 | |||
3791 | LIBS="$LIBS -lxnet -lsec" | ||
3792 | ;; | ||
3793 | *-*-irix5*) | ||
3794 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3795 | LDFLAGS="$LDFLAGS" | ||
3796 | PATH="$PATH:/usr/etc" | ||
3797 | cat >>confdefs.h <<\_ACEOF | ||
3798 | #define BROKEN_INET_NTOA 1 | ||
3799 | _ACEOF | ||
3800 | |||
3801 | cat >>confdefs.h <<\_ACEOF | ||
3802 | #define WITH_ABBREV_NO_TTY 1 | ||
3803 | _ACEOF | ||
3804 | |||
3805 | ;; | ||
3806 | *-*-irix6*) | ||
3807 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3808 | LDFLAGS="$LDFLAGS" | ||
3809 | PATH="$PATH:/usr/etc" | ||
3810 | cat >>confdefs.h <<\_ACEOF | ||
3811 | #define WITH_IRIX_ARRAY 1 | ||
3812 | _ACEOF | ||
3813 | |||
3814 | cat >>confdefs.h <<\_ACEOF | ||
3815 | #define WITH_IRIX_PROJECT 1 | ||
3816 | _ACEOF | ||
3817 | |||
3818 | cat >>confdefs.h <<\_ACEOF | ||
3819 | #define WITH_IRIX_AUDIT 1 | ||
3820 | _ACEOF | ||
3821 | |||
3822 | echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
3823 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
3824 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
3825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3826 | else | ||
3827 | cat >conftest.$ac_ext <<_ACEOF | ||
3828 | #line $LINENO "configure" | ||
3829 | #include "confdefs.h" | ||
3830 | /* System header to define __stub macros and hopefully few prototypes, | ||
3831 | which can conflict with char jlimit_startjob (); below. */ | ||
3832 | #include <assert.h> | ||
3833 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3834 | #ifdef __cplusplus | ||
3835 | extern "C" | ||
3836 | #endif | ||
3837 | /* We use char because int might match the return type of a gcc2 | ||
3838 | builtin and then its argument prototype would still apply. */ | ||
3839 | char jlimit_startjob (); | ||
3840 | char (*f) (); | ||
3841 | |||
3842 | #ifdef F77_DUMMY_MAIN | ||
3843 | # ifdef __cplusplus | ||
3844 | extern "C" | ||
3845 | # endif | ||
3846 | int F77_DUMMY_MAIN() { return 1; } | ||
3847 | #endif | ||
3848 | int | ||
3849 | main () | ||
3850 | { | ||
3851 | /* The GNU C library defines this for functions which it implements | ||
3852 | to always fail with ENOSYS. Some functions are actually named | ||
3853 | something starting with __ and the normal name is an alias. */ | ||
3854 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
3855 | choke me | ||
3856 | #else | ||
3857 | f = jlimit_startjob; | ||
3858 | #endif | ||
3859 | |||
3860 | ; | ||
3861 | return 0; | ||
3862 | } | ||
3863 | _ACEOF | ||
3864 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3866 | (eval $ac_link) 2>&5 | ||
3867 | ac_status=$? | ||
3868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3869 | (exit $ac_status); } && | ||
3870 | { ac_try='test -s conftest$ac_exeext' | ||
3871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3872 | (eval $ac_try) 2>&5 | ||
3873 | ac_status=$? | ||
3874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3875 | (exit $ac_status); }; }; then | ||
3876 | ac_cv_func_jlimit_startjob=yes | ||
3877 | else | ||
3878 | echo "$as_me: failed program was:" >&5 | ||
3879 | cat conftest.$ac_ext >&5 | ||
3880 | ac_cv_func_jlimit_startjob=no | ||
3881 | fi | ||
3882 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3883 | fi | ||
3884 | echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
3885 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
3886 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
3887 | cat >>confdefs.h <<\_ACEOF | ||
3888 | #define WITH_IRIX_JOBS 1 | ||
3889 | _ACEOF | ||
3890 | |||
3891 | fi | ||
3892 | |||
3893 | cat >>confdefs.h <<\_ACEOF | ||
3894 | #define BROKEN_INET_NTOA 1 | ||
3895 | _ACEOF | ||
3896 | |||
3897 | cat >>confdefs.h <<\_ACEOF | ||
3898 | #define WITH_ABBREV_NO_TTY 1 | ||
3899 | _ACEOF | ||
3900 | |||
3901 | ;; | ||
3902 | *-*-linux*) | ||
3903 | no_dev_ptmx=1 | ||
3904 | check_for_libcrypt_later=1 | ||
3905 | cat >>confdefs.h <<\_ACEOF | ||
3906 | #define DONT_TRY_OTHER_AF 1 | ||
3907 | _ACEOF | ||
3908 | |||
3909 | cat >>confdefs.h <<\_ACEOF | ||
3910 | #define PAM_TTY_KLUDGE 1 | ||
3911 | _ACEOF | ||
3912 | |||
3913 | inet6_default_4in6=yes | ||
3914 | ;; | ||
3915 | mips-sony-bsd|mips-sony-newsos4) | ||
3916 | cat >>confdefs.h <<\_ACEOF | ||
3917 | #define HAVE_NEWS4 1 | ||
3918 | _ACEOF | ||
3919 | |||
3920 | SONY=1 | ||
3921 | ;; | ||
3922 | *-*-netbsd*) | ||
3923 | need_dash_r=1 | ||
3924 | ;; | ||
3925 | *-*-freebsd*) | ||
3926 | check_for_libcrypt_later=1 | ||
3927 | ;; | ||
3928 | *-next-*) | ||
3929 | conf_lastlog_location="/usr/adm/lastlog" | ||
3930 | conf_utmp_location=/etc/utmp | ||
3931 | conf_wtmp_location=/usr/adm/wtmp | ||
3932 | MAIL=/usr/spool/mail | ||
3933 | cat >>confdefs.h <<\_ACEOF | ||
3934 | #define HAVE_NEXT 1 | ||
3935 | _ACEOF | ||
3936 | |||
3937 | cat >>confdefs.h <<\_ACEOF | ||
3938 | #define BROKEN_REALPATH 1 | ||
3939 | _ACEOF | ||
3940 | |||
3941 | cat >>confdefs.h <<\_ACEOF | ||
3942 | #define USE_PIPES 1 | ||
3943 | _ACEOF | ||
3944 | |||
3945 | cat >>confdefs.h <<\_ACEOF | ||
3946 | #define BROKEN_SAVED_UIDS 1 | ||
3947 | _ACEOF | ||
3948 | |||
3949 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3950 | CFLAGS="$CFLAGS" | ||
3951 | ;; | ||
3952 | *-*-solaris*) | ||
3953 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3954 | LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" | ||
3955 | need_dash_r=1 | ||
3956 | cat >>confdefs.h <<\_ACEOF | ||
3957 | #define PAM_SUN_CODEBASE 1 | ||
3958 | _ACEOF | ||
3959 | |||
3960 | cat >>confdefs.h <<\_ACEOF | ||
3961 | #define LOGIN_NEEDS_UTMPX 1 | ||
3962 | _ACEOF | ||
3963 | |||
3964 | cat >>confdefs.h <<\_ACEOF | ||
3965 | #define LOGIN_NEEDS_TERM 1 | ||
3966 | _ACEOF | ||
3967 | |||
3968 | cat >>confdefs.h <<\_ACEOF | ||
3969 | #define PAM_TTY_KLUDGE 1 | ||
3970 | _ACEOF | ||
3971 | |||
3972 | # hardwire lastlog location (can't detect it on some versions) | ||
3973 | conf_lastlog_location="/var/adm/lastlog" | ||
3974 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
3975 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
3976 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
3977 | if test "$sol2ver" -ge 8; then | ||
3978 | echo "$as_me:$LINENO: result: yes" >&5 | ||
3979 | echo "${ECHO_T}yes" >&6 | ||
3980 | cat >>confdefs.h <<\_ACEOF | ||
3981 | #define DISABLE_UTMP 1 | ||
3982 | _ACEOF | ||
3983 | |||
3984 | cat >>confdefs.h <<\_ACEOF | ||
3985 | #define DISABLE_WTMP 1 | ||
3986 | _ACEOF | ||
3987 | |||
3988 | else | ||
3989 | echo "$as_me:$LINENO: result: no" >&5 | ||
3990 | echo "${ECHO_T}no" >&6 | ||
3991 | fi | ||
3992 | ;; | ||
3993 | *-*-sunos4*) | ||
3994 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
3995 | |||
3996 | for ac_func in getpwanam | ||
3997 | do | ||
3998 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
3999 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4000 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4001 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4003 | else | ||
4004 | cat >conftest.$ac_ext <<_ACEOF | ||
4005 | #line $LINENO "configure" | ||
4006 | #include "confdefs.h" | ||
4007 | /* System header to define __stub macros and hopefully few prototypes, | ||
4008 | which can conflict with char $ac_func (); below. */ | ||
4009 | #include <assert.h> | ||
4010 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4011 | #ifdef __cplusplus | ||
4012 | extern "C" | ||
4013 | #endif | ||
4014 | /* We use char because int might match the return type of a gcc2 | ||
4015 | builtin and then its argument prototype would still apply. */ | ||
4016 | char $ac_func (); | ||
4017 | char (*f) (); | ||
4018 | |||
4019 | #ifdef F77_DUMMY_MAIN | ||
4020 | # ifdef __cplusplus | ||
4021 | extern "C" | ||
4022 | # endif | ||
4023 | int F77_DUMMY_MAIN() { return 1; } | ||
4024 | #endif | ||
4025 | int | ||
4026 | main () | ||
4027 | { | ||
4028 | /* The GNU C library defines this for functions which it implements | ||
4029 | to always fail with ENOSYS. Some functions are actually named | ||
4030 | something starting with __ and the normal name is an alias. */ | ||
4031 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4032 | choke me | ||
4033 | #else | ||
4034 | f = $ac_func; | ||
4035 | #endif | ||
4036 | |||
4037 | ; | ||
4038 | return 0; | ||
4039 | } | ||
4040 | _ACEOF | ||
4041 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4043 | (eval $ac_link) 2>&5 | ||
4044 | ac_status=$? | ||
4045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4046 | (exit $ac_status); } && | ||
4047 | { ac_try='test -s conftest$ac_exeext' | ||
4048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4049 | (eval $ac_try) 2>&5 | ||
4050 | ac_status=$? | ||
4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4052 | (exit $ac_status); }; }; then | ||
4053 | eval "$as_ac_var=yes" | ||
4054 | else | ||
4055 | echo "$as_me: failed program was:" >&5 | ||
4056 | cat conftest.$ac_ext >&5 | ||
4057 | eval "$as_ac_var=no" | ||
4058 | fi | ||
4059 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4060 | fi | ||
4061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4062 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4063 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4064 | cat >>confdefs.h <<_ACEOF | ||
4065 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4066 | _ACEOF | ||
4067 | |||
4068 | fi | ||
4069 | done | ||
4070 | |||
4071 | cat >>confdefs.h <<\_ACEOF | ||
4072 | #define PAM_SUN_CODEBASE 1 | ||
4073 | _ACEOF | ||
4074 | |||
4075 | conf_utmp_location=/etc/utmp | ||
4076 | conf_wtmp_location=/var/adm/wtmp | ||
4077 | conf_lastlog_location=/var/adm/lastlog | ||
4078 | cat >>confdefs.h <<\_ACEOF | ||
4079 | #define USE_PIPES 1 | ||
4080 | _ACEOF | ||
4081 | |||
4082 | ;; | ||
4083 | *-ncr-sysv*) | ||
4084 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4085 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4086 | LIBS="$LIBS -lc89" | ||
4087 | cat >>confdefs.h <<\_ACEOF | ||
4088 | #define USE_PIPES 1 | ||
4089 | _ACEOF | ||
4090 | |||
4091 | ;; | ||
4092 | *-sni-sysv*) | ||
4093 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4094 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
4095 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4096 | IPADDR_IN_DISPLAY=yes | ||
4097 | cat >>confdefs.h <<\_ACEOF | ||
4098 | #define USE_PIPES 1 | ||
4099 | _ACEOF | ||
4100 | |||
4101 | cat >>confdefs.h <<\_ACEOF | ||
4102 | #define IP_TOS_IS_BROKEN 1 | ||
4103 | _ACEOF | ||
4104 | |||
4105 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
4106 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
4107 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
4108 | ;; | ||
4109 | *-*-sysv4.2*) | ||
4110 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4111 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4112 | cat >>confdefs.h <<\_ACEOF | ||
4113 | #define USE_PIPES 1 | ||
4114 | _ACEOF | ||
4115 | |||
4116 | ;; | ||
4117 | *-*-sysv5*) | ||
4118 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4119 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4120 | cat >>confdefs.h <<\_ACEOF | ||
4121 | #define USE_PIPES 1 | ||
4122 | _ACEOF | ||
4123 | |||
4124 | ;; | ||
4125 | *-*-sysv*) | ||
4126 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4127 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4128 | ;; | ||
4129 | *-*-sco3.2v4*) | ||
4130 | CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include" | ||
4131 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4132 | LIBS="$LIBS -los -lprot -lx -ltinfo -lm" | ||
4133 | RANLIB=true | ||
4134 | no_dev_ptmx=1 | ||
4135 | cat >>confdefs.h <<\_ACEOF | ||
4136 | #define BROKEN_SYS_TERMIO_H 1 | ||
4137 | _ACEOF | ||
4138 | |||
4139 | cat >>confdefs.h <<\_ACEOF | ||
4140 | #define USE_PIPES 1 | ||
4141 | _ACEOF | ||
4142 | |||
4143 | cat >>confdefs.h <<\_ACEOF | ||
4144 | #define HAVE_SECUREWARE 1 | ||
4145 | _ACEOF | ||
4146 | |||
4147 | cat >>confdefs.h <<\_ACEOF | ||
4148 | #define DISABLE_SHADOW 1 | ||
4149 | _ACEOF | ||
4150 | |||
4151 | cat >>confdefs.h <<\_ACEOF | ||
4152 | #define BROKEN_SAVED_UIDS 1 | ||
4153 | _ACEOF | ||
4154 | |||
4155 | |||
4156 | |||
4157 | for ac_func in getluid setluid | ||
4158 | do | ||
4159 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4160 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4161 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4162 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4164 | else | ||
4165 | cat >conftest.$ac_ext <<_ACEOF | ||
4166 | #line $LINENO "configure" | ||
4167 | #include "confdefs.h" | ||
4168 | /* System header to define __stub macros and hopefully few prototypes, | ||
4169 | which can conflict with char $ac_func (); below. */ | ||
4170 | #include <assert.h> | ||
4171 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4172 | #ifdef __cplusplus | ||
4173 | extern "C" | ||
4174 | #endif | ||
4175 | /* We use char because int might match the return type of a gcc2 | ||
4176 | builtin and then its argument prototype would still apply. */ | ||
4177 | char $ac_func (); | ||
4178 | char (*f) (); | ||
4179 | |||
4180 | #ifdef F77_DUMMY_MAIN | ||
4181 | # ifdef __cplusplus | ||
4182 | extern "C" | ||
4183 | # endif | ||
4184 | int F77_DUMMY_MAIN() { return 1; } | ||
4185 | #endif | ||
4186 | int | ||
4187 | main () | ||
4188 | { | ||
4189 | /* The GNU C library defines this for functions which it implements | ||
4190 | to always fail with ENOSYS. Some functions are actually named | ||
4191 | something starting with __ and the normal name is an alias. */ | ||
4192 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4193 | choke me | ||
4194 | #else | ||
4195 | f = $ac_func; | ||
4196 | #endif | ||
4197 | |||
4198 | ; | ||
4199 | return 0; | ||
4200 | } | ||
4201 | _ACEOF | ||
4202 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4204 | (eval $ac_link) 2>&5 | ||
4205 | ac_status=$? | ||
4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4207 | (exit $ac_status); } && | ||
4208 | { ac_try='test -s conftest$ac_exeext' | ||
4209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4210 | (eval $ac_try) 2>&5 | ||
4211 | ac_status=$? | ||
4212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4213 | (exit $ac_status); }; }; then | ||
4214 | eval "$as_ac_var=yes" | ||
4215 | else | ||
4216 | echo "$as_me: failed program was:" >&5 | ||
4217 | cat conftest.$ac_ext >&5 | ||
4218 | eval "$as_ac_var=no" | ||
4219 | fi | ||
4220 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4221 | fi | ||
4222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4223 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4224 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4225 | cat >>confdefs.h <<_ACEOF | ||
4226 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4227 | _ACEOF | ||
4228 | |||
4229 | fi | ||
4230 | done | ||
4231 | |||
4232 | MANTYPE=man | ||
4233 | do_sco3_extra_lib_check=yes | ||
4234 | ;; | ||
4235 | *-*-sco3.2v5*) | ||
4236 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4237 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4238 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
4239 | no_dev_ptmx=1 | ||
4240 | cat >>confdefs.h <<\_ACEOF | ||
4241 | #define USE_PIPES 1 | ||
4242 | _ACEOF | ||
4243 | |||
4244 | cat >>confdefs.h <<\_ACEOF | ||
4245 | #define HAVE_SECUREWARE 1 | ||
4246 | _ACEOF | ||
4247 | |||
4248 | cat >>confdefs.h <<\_ACEOF | ||
4249 | #define DISABLE_SHADOW 1 | ||
4250 | _ACEOF | ||
4251 | |||
4252 | cat >>confdefs.h <<\_ACEOF | ||
4253 | #define BROKEN_FD_PASSING 1 | ||
4254 | _ACEOF | ||
4255 | |||
4256 | |||
4257 | |||
4258 | for ac_func in getluid setluid | ||
4259 | do | ||
4260 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4261 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4262 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4263 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4265 | else | ||
4266 | cat >conftest.$ac_ext <<_ACEOF | ||
4267 | #line $LINENO "configure" | ||
4268 | #include "confdefs.h" | ||
4269 | /* System header to define __stub macros and hopefully few prototypes, | ||
4270 | which can conflict with char $ac_func (); below. */ | ||
4271 | #include <assert.h> | ||
4272 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4273 | #ifdef __cplusplus | ||
4274 | extern "C" | ||
4275 | #endif | ||
4276 | /* We use char because int might match the return type of a gcc2 | ||
4277 | builtin and then its argument prototype would still apply. */ | ||
4278 | char $ac_func (); | ||
4279 | char (*f) (); | ||
4280 | |||
4281 | #ifdef F77_DUMMY_MAIN | ||
4282 | # ifdef __cplusplus | ||
4283 | extern "C" | ||
4284 | # endif | ||
4285 | int F77_DUMMY_MAIN() { return 1; } | ||
4286 | #endif | ||
4287 | int | ||
4288 | main () | ||
4289 | { | ||
4290 | /* The GNU C library defines this for functions which it implements | ||
4291 | to always fail with ENOSYS. Some functions are actually named | ||
4292 | something starting with __ and the normal name is an alias. */ | ||
4293 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4294 | choke me | ||
4295 | #else | ||
4296 | f = $ac_func; | ||
4297 | #endif | ||
4298 | |||
4299 | ; | ||
4300 | return 0; | ||
4301 | } | ||
4302 | _ACEOF | ||
4303 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4305 | (eval $ac_link) 2>&5 | ||
4306 | ac_status=$? | ||
4307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4308 | (exit $ac_status); } && | ||
4309 | { ac_try='test -s conftest$ac_exeext' | ||
4310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4311 | (eval $ac_try) 2>&5 | ||
4312 | ac_status=$? | ||
4313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4314 | (exit $ac_status); }; }; then | ||
4315 | eval "$as_ac_var=yes" | ||
4316 | else | ||
4317 | echo "$as_me: failed program was:" >&5 | ||
4318 | cat conftest.$ac_ext >&5 | ||
4319 | eval "$as_ac_var=no" | ||
4320 | fi | ||
4321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4322 | fi | ||
4323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4325 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4326 | cat >>confdefs.h <<_ACEOF | ||
4327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4328 | _ACEOF | ||
4329 | |||
4330 | fi | ||
4331 | done | ||
4332 | |||
4333 | MANTYPE=man | ||
4334 | ;; | ||
4335 | *-*-unicos*) | ||
4336 | no_libsocket=1 | ||
4337 | no_libnsl=1 | ||
4338 | cat >>confdefs.h <<\_ACEOF | ||
4339 | #define USE_PIPES 1 | ||
4340 | _ACEOF | ||
4341 | |||
4342 | cat >>confdefs.h <<\_ACEOF | ||
4343 | #define BROKEN_FD_PASSING 1 | ||
4344 | _ACEOF | ||
4345 | |||
4346 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal,-L/usr/local/lib" | ||
4347 | LIBS="$LIBS -lgen -lrsc" | ||
4348 | ;; | ||
4349 | *-dec-osf*) | ||
4350 | echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
4351 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
4352 | no_osfsia="" | ||
4353 | |||
4354 | # Check whether --with-osfsia or --without-osfsia was given. | ||
4355 | if test "${with_osfsia+set}" = set; then | ||
4356 | withval="$with_osfsia" | ||
4357 | |||
4358 | if test "x$withval" = "xno" ; then | ||
4359 | echo "$as_me:$LINENO: result: disabled" >&5 | ||
4360 | echo "${ECHO_T}disabled" >&6 | ||
4361 | no_osfsia=1 | ||
4362 | fi | ||
4363 | |||
4364 | fi; | ||
4365 | if test -z "$no_osfsia" ; then | ||
4366 | if test -f /etc/sia/matrix.conf; then | ||
4367 | echo "$as_me:$LINENO: result: yes" >&5 | ||
4368 | echo "${ECHO_T}yes" >&6 | ||
4369 | cat >>confdefs.h <<\_ACEOF | ||
4370 | #define HAVE_OSF_SIA 1 | ||
4371 | _ACEOF | ||
4372 | |||
4373 | cat >>confdefs.h <<\_ACEOF | ||
4374 | #define DISABLE_LOGIN 1 | ||
4375 | _ACEOF | ||
4376 | |||
4377 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
4378 | else | ||
4379 | echo "$as_me:$LINENO: result: no" >&5 | ||
4380 | echo "${ECHO_T}no" >&6 | ||
4381 | fi | ||
4382 | fi | ||
4383 | ;; | ||
4384 | |||
4385 | *-*-nto-qnx) | ||
4386 | cat >>confdefs.h <<\_ACEOF | ||
4387 | #define USE_PIPES 1 | ||
4388 | _ACEOF | ||
4389 | |||
4390 | cat >>confdefs.h <<\_ACEOF | ||
4391 | #define NO_X11_UNIX_SOCKETS 1 | ||
4392 | _ACEOF | ||
4393 | |||
4394 | cat >>confdefs.h <<\_ACEOF | ||
4395 | #define MISSING_NFDBITS 1 | ||
4396 | _ACEOF | ||
4397 | |||
4398 | cat >>confdefs.h <<\_ACEOF | ||
4399 | #define MISSING_HOWMANY 1 | ||
4400 | _ACEOF | ||
4401 | |||
4402 | cat >>confdefs.h <<\_ACEOF | ||
4403 | #define MISSING_FD_MASK 1 | ||
4404 | _ACEOF | ||
4405 | |||
4406 | ;; | ||
4407 | esac | ||
4408 | |||
4409 | # Allow user to specify flags | ||
4410 | |||
4411 | # Check whether --with-cflags or --without-cflags was given. | ||
4412 | if test "${with_cflags+set}" = set; then | ||
4413 | withval="$with_cflags" | ||
4414 | |||
4415 | if test "x$withval" != "xno" ; then | ||
4416 | CFLAGS="$CFLAGS $withval" | ||
4417 | fi | ||
4418 | |||
4419 | |||
4420 | fi; | ||
4421 | |||
4422 | # Check whether --with-cppflags or --without-cppflags was given. | ||
4423 | if test "${with_cppflags+set}" = set; then | ||
4424 | withval="$with_cppflags" | ||
4425 | |||
4426 | if test "x$withval" != "xno"; then | ||
4427 | CPPFLAGS="$CPPFLAGS $withval" | ||
4428 | fi | ||
4429 | |||
4430 | |||
4431 | fi; | ||
4432 | |||
4433 | # Check whether --with-ldflags or --without-ldflags was given. | ||
4434 | if test "${with_ldflags+set}" = set; then | ||
4435 | withval="$with_ldflags" | ||
4436 | |||
4437 | if test "x$withval" != "xno" ; then | ||
4438 | LDFLAGS="$LDFLAGS $withval" | ||
4439 | fi | ||
4440 | |||
4441 | |||
4442 | fi; | ||
4443 | |||
4444 | # Check whether --with-libs or --without-libs was given. | ||
4445 | if test "${with_libs+set}" = set; then | ||
4446 | withval="$with_libs" | ||
4447 | |||
4448 | if test "x$withval" != "xno" ; then | ||
4449 | LIBS="$LIBS $withval" | ||
4450 | fi | ||
4451 | |||
4452 | |||
4453 | fi; | ||
4454 | |||
4455 | # Checks for header files. | ||
4456 | |||
4457 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
4458 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
4459 | if test "${ac_cv_header_stdc+set}" = set; then | ||
4460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4461 | else | ||
4462 | cat >conftest.$ac_ext <<_ACEOF | ||
4463 | #line $LINENO "configure" | ||
4464 | #include "confdefs.h" | ||
4465 | #include <stdlib.h> | ||
4466 | #include <stdarg.h> | ||
4467 | #include <string.h> | ||
4468 | #include <float.h> | ||
4469 | |||
4470 | _ACEOF | ||
4471 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4472 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4473 | ac_status=$? | ||
4474 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
4475 | rm -f conftest.er1 | ||
4476 | cat conftest.err >&5 | ||
4477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4478 | (exit $ac_status); } >/dev/null; then | ||
4479 | if test -s conftest.err; then | ||
4480 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4481 | else | ||
4482 | ac_cpp_err= | ||
4483 | fi | ||
4484 | else | ||
4485 | ac_cpp_err=yes | ||
4486 | fi | ||
4487 | if test -z "$ac_cpp_err"; then | ||
4488 | ac_cv_header_stdc=yes | ||
4489 | else | ||
4490 | echo "$as_me: failed program was:" >&5 | ||
4491 | cat conftest.$ac_ext >&5 | ||
4492 | ac_cv_header_stdc=no | ||
4493 | fi | ||
4494 | rm -f conftest.err conftest.$ac_ext | ||
4495 | |||
4496 | if test $ac_cv_header_stdc = yes; then | ||
4497 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
4498 | cat >conftest.$ac_ext <<_ACEOF | ||
4499 | #line $LINENO "configure" | ||
4500 | #include "confdefs.h" | ||
4501 | #include <string.h> | ||
4502 | |||
4503 | _ACEOF | ||
4504 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4505 | egrep "memchr" >/dev/null 2>&1; then | ||
4506 | : | ||
4507 | else | ||
4508 | ac_cv_header_stdc=no | ||
4509 | fi | ||
4510 | rm -f conftest* | ||
4511 | |||
4512 | fi | ||
4513 | |||
4514 | if test $ac_cv_header_stdc = yes; then | ||
4515 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
4516 | cat >conftest.$ac_ext <<_ACEOF | ||
4517 | #line $LINENO "configure" | ||
4518 | #include "confdefs.h" | ||
4519 | #include <stdlib.h> | ||
4520 | |||
4521 | _ACEOF | ||
4522 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4523 | egrep "free" >/dev/null 2>&1; then | ||
4524 | : | ||
4525 | else | ||
4526 | ac_cv_header_stdc=no | ||
4527 | fi | ||
4528 | rm -f conftest* | ||
4529 | |||
4530 | fi | ||
4531 | |||
4532 | if test $ac_cv_header_stdc = yes; then | ||
4533 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4534 | if test "$cross_compiling" = yes; then | ||
4535 | : | ||
4536 | else | ||
4537 | cat >conftest.$ac_ext <<_ACEOF | ||
4538 | #line $LINENO "configure" | ||
4539 | #include "confdefs.h" | ||
4540 | #include <ctype.h> | ||
4541 | #if ((' ' & 0x0FF) == 0x020) | ||
4542 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4543 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4544 | #else | ||
4545 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | ||
4546 | || ('j' <= (c) && (c) <= 'r') \ | ||
4547 | || ('s' <= (c) && (c) <= 'z')) | ||
4548 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4549 | #endif | ||
4550 | |||
4551 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4552 | int | ||
4553 | main () | ||
4554 | { | ||
4555 | int i; | ||
4556 | for (i = 0; i < 256; i++) | ||
4557 | if (XOR (islower (i), ISLOWER (i)) | ||
4558 | || toupper (i) != TOUPPER (i)) | ||
4559 | exit(2); | ||
4560 | exit (0); | ||
4561 | } | ||
4562 | _ACEOF | ||
4563 | rm -f conftest$ac_exeext | ||
4564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4565 | (eval $ac_link) 2>&5 | ||
4566 | ac_status=$? | ||
4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4568 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4570 | (eval $ac_try) 2>&5 | ||
4571 | ac_status=$? | ||
4572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4573 | (exit $ac_status); }; }; then | ||
4574 | : | ||
4575 | else | ||
4576 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4577 | echo "$as_me: failed program was:" >&5 | ||
4578 | cat conftest.$ac_ext >&5 | ||
4579 | ( exit $ac_status ) | ||
4580 | ac_cv_header_stdc=no | ||
4581 | fi | ||
4582 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4583 | fi | ||
4584 | fi | ||
4585 | fi | ||
4586 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
4587 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
4588 | if test $ac_cv_header_stdc = yes; then | ||
4589 | |||
4590 | cat >>confdefs.h <<\_ACEOF | ||
4591 | #define STDC_HEADERS 1 | ||
4592 | _ACEOF | ||
4593 | |||
4594 | fi | ||
4595 | |||
4596 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
4597 | |||
4598 | |||
4599 | |||
4600 | |||
4601 | |||
4602 | |||
4603 | |||
4604 | |||
4605 | |||
4606 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
4607 | inttypes.h stdint.h unistd.h | ||
4608 | do | ||
4609 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4610 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4614 | else | ||
4615 | cat >conftest.$ac_ext <<_ACEOF | ||
4616 | #line $LINENO "configure" | ||
4617 | #include "confdefs.h" | ||
4618 | $ac_includes_default | ||
4619 | |||
4620 | #include <$ac_header> | ||
4621 | _ACEOF | ||
4622 | rm -f conftest.$ac_objext | ||
4623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4624 | (eval $ac_compile) 2>&5 | ||
4625 | ac_status=$? | ||
4626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4627 | (exit $ac_status); } && | ||
4628 | { ac_try='test -s conftest.$ac_objext' | ||
4629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4630 | (eval $ac_try) 2>&5 | ||
4631 | ac_status=$? | ||
4632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4633 | (exit $ac_status); }; }; then | ||
4634 | eval "$as_ac_Header=yes" | ||
4635 | else | ||
4636 | echo "$as_me: failed program was:" >&5 | ||
4637 | cat conftest.$ac_ext >&5 | ||
4638 | eval "$as_ac_Header=no" | ||
4639 | fi | ||
4640 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
4641 | fi | ||
4642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4643 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4644 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4645 | cat >>confdefs.h <<_ACEOF | ||
4646 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4647 | _ACEOF | ||
4648 | |||
4649 | fi | ||
4650 | |||
4651 | done | ||
4652 | |||
4653 | |||
4654 | |||
4655 | |||
4656 | |||
4657 | |||
4658 | |||
4659 | |||
4660 | |||
4661 | |||
4662 | |||
4663 | |||
4664 | |||
4665 | |||
4666 | |||
4667 | |||
4668 | |||
4669 | |||
4670 | |||
4671 | |||
4672 | |||
4673 | |||
4674 | |||
4675 | |||
4676 | |||
4677 | |||
4678 | |||
4679 | |||
4680 | |||
4681 | |||
4682 | |||
4683 | |||
4684 | |||
4685 | |||
4686 | |||
4687 | |||
4688 | |||
4689 | |||
4690 | |||
4691 | |||
4692 | |||
4693 | |||
4694 | for ac_header in bstring.h crypt.h endian.h floatingpoint.h \ | ||
4695 | getopt.h glob.h lastlog.h limits.h login.h \ | ||
4696 | login_cap.h maillock.h netdb.h netgroup.h \ | ||
4697 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ | ||
4698 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
4699 | strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ | ||
4700 | sys/mman.h sys/select.h sys/stat.h \ | ||
4701 | sys/stropts.h sys/sysmacros.h sys/time.h \ | ||
4702 | sys/un.h time.h ttyent.h usersec.h \ | ||
4703 | util.h utime.h utmp.h utmpx.h | ||
4704 | do | ||
4705 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4706 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4707 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4708 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4709 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4711 | fi | ||
4712 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4713 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4714 | else | ||
4715 | # Is the header compilable? | ||
4716 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
4717 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
4718 | cat >conftest.$ac_ext <<_ACEOF | ||
4719 | #line $LINENO "configure" | ||
4720 | #include "confdefs.h" | ||
4721 | $ac_includes_default | ||
4722 | #include <$ac_header> | ||
4723 | _ACEOF | ||
4724 | rm -f conftest.$ac_objext | ||
4725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4726 | (eval $ac_compile) 2>&5 | ||
4727 | ac_status=$? | ||
4728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4729 | (exit $ac_status); } && | ||
4730 | { ac_try='test -s conftest.$ac_objext' | ||
4731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4732 | (eval $ac_try) 2>&5 | ||
4733 | ac_status=$? | ||
4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4735 | (exit $ac_status); }; }; then | ||
4736 | ac_header_compiler=yes | ||
4737 | else | ||
4738 | echo "$as_me: failed program was:" >&5 | ||
4739 | cat conftest.$ac_ext >&5 | ||
4740 | ac_header_compiler=no | ||
4741 | fi | ||
4742 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
4743 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
4744 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
4745 | |||
4746 | # Is the header present? | ||
4747 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
4748 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
4749 | cat >conftest.$ac_ext <<_ACEOF | ||
4750 | #line $LINENO "configure" | ||
4751 | #include "confdefs.h" | ||
4752 | #include <$ac_header> | ||
4753 | _ACEOF | ||
4754 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4755 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4756 | ac_status=$? | ||
4757 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
4758 | rm -f conftest.er1 | ||
4759 | cat conftest.err >&5 | ||
4760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4761 | (exit $ac_status); } >/dev/null; then | ||
4762 | if test -s conftest.err; then | ||
4763 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4764 | else | ||
4765 | ac_cpp_err= | ||
4766 | fi | ||
4767 | else | ||
4768 | ac_cpp_err=yes | ||
4769 | fi | ||
4770 | if test -z "$ac_cpp_err"; then | ||
4771 | ac_header_preproc=yes | ||
4772 | else | ||
4773 | echo "$as_me: failed program was:" >&5 | ||
4774 | cat conftest.$ac_ext >&5 | ||
4775 | ac_header_preproc=no | ||
4776 | fi | ||
4777 | rm -f conftest.err conftest.$ac_ext | ||
4778 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
4779 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
4780 | |||
4781 | # So? What about this header? | ||
4782 | case $ac_header_compiler:$ac_header_preproc in | ||
4783 | yes:no ) | ||
4784 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
4785 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
4786 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
4787 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
4788 | no:yes ) | ||
4789 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
4790 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
4791 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
4792 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
4793 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
4794 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
4795 | esac | ||
4796 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4797 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4798 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4800 | else | ||
4801 | eval "$as_ac_Header=$ac_header_preproc" | ||
4802 | fi | ||
4803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4804 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4805 | |||
4806 | fi | ||
4807 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4808 | cat >>confdefs.h <<_ACEOF | ||
4809 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4810 | _ACEOF | ||
4811 | |||
4812 | fi | ||
4813 | |||
4814 | done | ||
4815 | |||
4816 | |||
4817 | # Checks for libraries. | ||
4818 | echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
4819 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
4820 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
4821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4822 | else | ||
4823 | cat >conftest.$ac_ext <<_ACEOF | ||
4824 | #line $LINENO "configure" | ||
4825 | #include "confdefs.h" | ||
4826 | /* System header to define __stub macros and hopefully few prototypes, | ||
4827 | which can conflict with char yp_match (); below. */ | ||
4828 | #include <assert.h> | ||
4829 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4830 | #ifdef __cplusplus | ||
4831 | extern "C" | ||
4832 | #endif | ||
4833 | /* We use char because int might match the return type of a gcc2 | ||
4834 | builtin and then its argument prototype would still apply. */ | ||
4835 | char yp_match (); | ||
4836 | char (*f) (); | ||
4837 | |||
4838 | #ifdef F77_DUMMY_MAIN | ||
4839 | # ifdef __cplusplus | ||
4840 | extern "C" | ||
4841 | # endif | ||
4842 | int F77_DUMMY_MAIN() { return 1; } | ||
4843 | #endif | ||
4844 | int | ||
4845 | main () | ||
4846 | { | ||
4847 | /* The GNU C library defines this for functions which it implements | ||
4848 | to always fail with ENOSYS. Some functions are actually named | ||
4849 | something starting with __ and the normal name is an alias. */ | ||
4850 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
4851 | choke me | ||
4852 | #else | ||
4853 | f = yp_match; | ||
4854 | #endif | ||
4855 | |||
4856 | ; | ||
4857 | return 0; | ||
4858 | } | ||
4859 | _ACEOF | ||
4860 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4862 | (eval $ac_link) 2>&5 | ||
4863 | ac_status=$? | ||
4864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4865 | (exit $ac_status); } && | ||
4866 | { ac_try='test -s conftest$ac_exeext' | ||
4867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4868 | (eval $ac_try) 2>&5 | ||
4869 | ac_status=$? | ||
4870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4871 | (exit $ac_status); }; }; then | ||
4872 | ac_cv_func_yp_match=yes | ||
4873 | else | ||
4874 | echo "$as_me: failed program was:" >&5 | ||
4875 | cat conftest.$ac_ext >&5 | ||
4876 | ac_cv_func_yp_match=no | ||
4877 | fi | ||
4878 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4879 | fi | ||
4880 | echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
4881 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
4882 | if test $ac_cv_func_yp_match = yes; then | ||
4883 | : | ||
4884 | else | ||
4885 | |||
4886 | echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
4887 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
4888 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
4889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4890 | else | ||
4891 | ac_check_lib_save_LIBS=$LIBS | ||
4892 | LIBS="-lnsl $LIBS" | ||
4893 | cat >conftest.$ac_ext <<_ACEOF | ||
4894 | #line $LINENO "configure" | ||
4895 | #include "confdefs.h" | ||
4896 | |||
4897 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4898 | #ifdef __cplusplus | ||
4899 | extern "C" | ||
4900 | #endif | ||
4901 | /* We use char because int might match the return type of a gcc2 | ||
4902 | builtin and then its argument prototype would still apply. */ | ||
4903 | char yp_match (); | ||
4904 | #ifdef F77_DUMMY_MAIN | ||
4905 | # ifdef __cplusplus | ||
4906 | extern "C" | ||
4907 | # endif | ||
4908 | int F77_DUMMY_MAIN() { return 1; } | ||
4909 | #endif | ||
4910 | int | ||
4911 | main () | ||
4912 | { | ||
4913 | yp_match (); | ||
4914 | ; | ||
4915 | return 0; | ||
4916 | } | ||
4917 | _ACEOF | ||
4918 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4920 | (eval $ac_link) 2>&5 | ||
4921 | ac_status=$? | ||
4922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4923 | (exit $ac_status); } && | ||
4924 | { ac_try='test -s conftest$ac_exeext' | ||
4925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4926 | (eval $ac_try) 2>&5 | ||
4927 | ac_status=$? | ||
4928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4929 | (exit $ac_status); }; }; then | ||
4930 | ac_cv_lib_nsl_yp_match=yes | ||
4931 | else | ||
4932 | echo "$as_me: failed program was:" >&5 | ||
4933 | cat conftest.$ac_ext >&5 | ||
4934 | ac_cv_lib_nsl_yp_match=no | ||
4935 | fi | ||
4936 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4937 | LIBS=$ac_check_lib_save_LIBS | ||
4938 | fi | ||
4939 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
4940 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
4941 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
4942 | cat >>confdefs.h <<_ACEOF | ||
4943 | #define HAVE_LIBNSL 1 | ||
4944 | _ACEOF | ||
4945 | |||
4946 | LIBS="-lnsl $LIBS" | ||
4947 | |||
4948 | fi | ||
4949 | |||
4950 | fi | ||
4951 | |||
4952 | echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
4953 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
4954 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
4955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4956 | else | ||
4957 | cat >conftest.$ac_ext <<_ACEOF | ||
4958 | #line $LINENO "configure" | ||
4959 | #include "confdefs.h" | ||
4960 | /* System header to define __stub macros and hopefully few prototypes, | ||
4961 | which can conflict with char setsockopt (); below. */ | ||
4962 | #include <assert.h> | ||
4963 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4964 | #ifdef __cplusplus | ||
4965 | extern "C" | ||
4966 | #endif | ||
4967 | /* We use char because int might match the return type of a gcc2 | ||
4968 | builtin and then its argument prototype would still apply. */ | ||
4969 | char setsockopt (); | ||
4970 | char (*f) (); | ||
4971 | |||
4972 | #ifdef F77_DUMMY_MAIN | ||
4973 | # ifdef __cplusplus | ||
4974 | extern "C" | ||
4975 | # endif | ||
4976 | int F77_DUMMY_MAIN() { return 1; } | ||
4977 | #endif | ||
4978 | int | ||
4979 | main () | ||
4980 | { | ||
4981 | /* The GNU C library defines this for functions which it implements | ||
4982 | to always fail with ENOSYS. Some functions are actually named | ||
4983 | something starting with __ and the normal name is an alias. */ | ||
4984 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
4985 | choke me | ||
4986 | #else | ||
4987 | f = setsockopt; | ||
4988 | #endif | ||
4989 | |||
4990 | ; | ||
4991 | return 0; | ||
4992 | } | ||
4993 | _ACEOF | ||
4994 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4996 | (eval $ac_link) 2>&5 | ||
4997 | ac_status=$? | ||
4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4999 | (exit $ac_status); } && | ||
5000 | { ac_try='test -s conftest$ac_exeext' | ||
5001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5002 | (eval $ac_try) 2>&5 | ||
5003 | ac_status=$? | ||
5004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5005 | (exit $ac_status); }; }; then | ||
5006 | ac_cv_func_setsockopt=yes | ||
5007 | else | ||
5008 | echo "$as_me: failed program was:" >&5 | ||
5009 | cat conftest.$ac_ext >&5 | ||
5010 | ac_cv_func_setsockopt=no | ||
5011 | fi | ||
5012 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5013 | fi | ||
5014 | echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
5015 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
5016 | if test $ac_cv_func_setsockopt = yes; then | ||
5017 | : | ||
5018 | else | ||
5019 | |||
5020 | echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
5021 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
5022 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
5023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5024 | else | ||
5025 | ac_check_lib_save_LIBS=$LIBS | ||
5026 | LIBS="-lsocket $LIBS" | ||
5027 | cat >conftest.$ac_ext <<_ACEOF | ||
5028 | #line $LINENO "configure" | ||
5029 | #include "confdefs.h" | ||
5030 | |||
5031 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5032 | #ifdef __cplusplus | ||
5033 | extern "C" | ||
5034 | #endif | ||
5035 | /* We use char because int might match the return type of a gcc2 | ||
5036 | builtin and then its argument prototype would still apply. */ | ||
5037 | char setsockopt (); | ||
5038 | #ifdef F77_DUMMY_MAIN | ||
5039 | # ifdef __cplusplus | ||
5040 | extern "C" | ||
5041 | # endif | ||
5042 | int F77_DUMMY_MAIN() { return 1; } | ||
5043 | #endif | ||
5044 | int | ||
5045 | main () | ||
5046 | { | ||
5047 | setsockopt (); | ||
5048 | ; | ||
5049 | return 0; | ||
5050 | } | ||
5051 | _ACEOF | ||
5052 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5054 | (eval $ac_link) 2>&5 | ||
5055 | ac_status=$? | ||
5056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5057 | (exit $ac_status); } && | ||
5058 | { ac_try='test -s conftest$ac_exeext' | ||
5059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5060 | (eval $ac_try) 2>&5 | ||
5061 | ac_status=$? | ||
5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5063 | (exit $ac_status); }; }; then | ||
5064 | ac_cv_lib_socket_setsockopt=yes | ||
5065 | else | ||
5066 | echo "$as_me: failed program was:" >&5 | ||
5067 | cat conftest.$ac_ext >&5 | ||
5068 | ac_cv_lib_socket_setsockopt=no | ||
5069 | fi | ||
5070 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5071 | LIBS=$ac_check_lib_save_LIBS | ||
5072 | fi | ||
5073 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
5074 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
5075 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
5076 | cat >>confdefs.h <<_ACEOF | ||
5077 | #define HAVE_LIBSOCKET 1 | ||
5078 | _ACEOF | ||
5079 | |||
5080 | LIBS="-lsocket $LIBS" | ||
5081 | |||
5082 | fi | ||
5083 | |||
5084 | fi | ||
5085 | |||
5086 | |||
5087 | if test "x$with_tcp_wrappers" != "xno" ; then | ||
5088 | if test "x$do_sco3_extra_lib_check" = "xyes" ; then | ||
5089 | echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5 | ||
5090 | echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6 | ||
5091 | if test "${ac_cv_lib_rpc_innetgr+set}" = set; then | ||
5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5093 | else | ||
5094 | ac_check_lib_save_LIBS=$LIBS | ||
5095 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5096 | cat >conftest.$ac_ext <<_ACEOF | ||
5097 | #line $LINENO "configure" | ||
5098 | #include "confdefs.h" | ||
5099 | |||
5100 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5101 | #ifdef __cplusplus | ||
5102 | extern "C" | ||
5103 | #endif | ||
5104 | /* We use char because int might match the return type of a gcc2 | ||
5105 | builtin and then its argument prototype would still apply. */ | ||
5106 | char innetgr (); | ||
5107 | #ifdef F77_DUMMY_MAIN | ||
5108 | # ifdef __cplusplus | ||
5109 | extern "C" | ||
5110 | # endif | ||
5111 | int F77_DUMMY_MAIN() { return 1; } | ||
5112 | #endif | ||
5113 | int | ||
5114 | main () | ||
5115 | { | ||
5116 | innetgr (); | ||
5117 | ; | ||
5118 | return 0; | ||
5119 | } | ||
5120 | _ACEOF | ||
5121 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5123 | (eval $ac_link) 2>&5 | ||
5124 | ac_status=$? | ||
5125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5126 | (exit $ac_status); } && | ||
5127 | { ac_try='test -s conftest$ac_exeext' | ||
5128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5129 | (eval $ac_try) 2>&5 | ||
5130 | ac_status=$? | ||
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5132 | (exit $ac_status); }; }; then | ||
5133 | ac_cv_lib_rpc_innetgr=yes | ||
5134 | else | ||
5135 | echo "$as_me: failed program was:" >&5 | ||
5136 | cat conftest.$ac_ext >&5 | ||
5137 | ac_cv_lib_rpc_innetgr=no | ||
5138 | fi | ||
5139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5140 | LIBS=$ac_check_lib_save_LIBS | ||
5141 | fi | ||
5142 | echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5 | ||
5143 | echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6 | ||
5144 | if test $ac_cv_lib_rpc_innetgr = yes; then | ||
5145 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5146 | fi | ||
5147 | |||
5148 | fi | ||
5149 | fi | ||
5150 | |||
5151 | echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
5152 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
5153 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
5154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5155 | else | ||
5156 | cat >conftest.$ac_ext <<_ACEOF | ||
5157 | #line $LINENO "configure" | ||
5158 | #include "confdefs.h" | ||
5159 | /* System header to define __stub macros and hopefully few prototypes, | ||
5160 | which can conflict with char getspnam (); below. */ | ||
5161 | #include <assert.h> | ||
5162 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5163 | #ifdef __cplusplus | ||
5164 | extern "C" | ||
5165 | #endif | ||
5166 | /* We use char because int might match the return type of a gcc2 | ||
5167 | builtin and then its argument prototype would still apply. */ | ||
5168 | char getspnam (); | ||
5169 | char (*f) (); | ||
5170 | |||
5171 | #ifdef F77_DUMMY_MAIN | ||
5172 | # ifdef __cplusplus | ||
5173 | extern "C" | ||
5174 | # endif | ||
5175 | int F77_DUMMY_MAIN() { return 1; } | ||
5176 | #endif | ||
5177 | int | ||
5178 | main () | ||
5179 | { | ||
5180 | /* The GNU C library defines this for functions which it implements | ||
5181 | to always fail with ENOSYS. Some functions are actually named | ||
5182 | something starting with __ and the normal name is an alias. */ | ||
5183 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
5184 | choke me | ||
5185 | #else | ||
5186 | f = getspnam; | ||
5187 | #endif | ||
5188 | |||
5189 | ; | ||
5190 | return 0; | ||
5191 | } | ||
5192 | _ACEOF | ||
5193 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5195 | (eval $ac_link) 2>&5 | ||
5196 | ac_status=$? | ||
5197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5198 | (exit $ac_status); } && | ||
5199 | { ac_try='test -s conftest$ac_exeext' | ||
5200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5201 | (eval $ac_try) 2>&5 | ||
5202 | ac_status=$? | ||
5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5204 | (exit $ac_status); }; }; then | ||
5205 | ac_cv_func_getspnam=yes | ||
5206 | else | ||
5207 | echo "$as_me: failed program was:" >&5 | ||
5208 | cat conftest.$ac_ext >&5 | ||
5209 | ac_cv_func_getspnam=no | ||
5210 | fi | ||
5211 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5212 | fi | ||
5213 | echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
5214 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
5215 | if test $ac_cv_func_getspnam = yes; then | ||
5216 | : | ||
5217 | else | ||
5218 | echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
5219 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
5220 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
5221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5222 | else | ||
5223 | ac_check_lib_save_LIBS=$LIBS | ||
5224 | LIBS="-lgen $LIBS" | ||
5225 | cat >conftest.$ac_ext <<_ACEOF | ||
5226 | #line $LINENO "configure" | ||
5227 | #include "confdefs.h" | ||
5228 | |||
5229 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5230 | #ifdef __cplusplus | ||
5231 | extern "C" | ||
5232 | #endif | ||
5233 | /* We use char because int might match the return type of a gcc2 | ||
5234 | builtin and then its argument prototype would still apply. */ | ||
5235 | char getspnam (); | ||
5236 | #ifdef F77_DUMMY_MAIN | ||
5237 | # ifdef __cplusplus | ||
5238 | extern "C" | ||
5239 | # endif | ||
5240 | int F77_DUMMY_MAIN() { return 1; } | ||
5241 | #endif | ||
5242 | int | ||
5243 | main () | ||
5244 | { | ||
5245 | getspnam (); | ||
5246 | ; | ||
5247 | return 0; | ||
5248 | } | ||
5249 | _ACEOF | ||
5250 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5252 | (eval $ac_link) 2>&5 | ||
5253 | ac_status=$? | ||
5254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5255 | (exit $ac_status); } && | ||
5256 | { ac_try='test -s conftest$ac_exeext' | ||
5257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5258 | (eval $ac_try) 2>&5 | ||
5259 | ac_status=$? | ||
5260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5261 | (exit $ac_status); }; }; then | ||
5262 | ac_cv_lib_gen_getspnam=yes | ||
5263 | else | ||
5264 | echo "$as_me: failed program was:" >&5 | ||
5265 | cat conftest.$ac_ext >&5 | ||
5266 | ac_cv_lib_gen_getspnam=no | ||
5267 | fi | ||
5268 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5269 | LIBS=$ac_check_lib_save_LIBS | ||
5270 | fi | ||
5271 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
5272 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
5273 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
5274 | LIBS="$LIBS -lgen" | ||
5275 | fi | ||
5276 | |||
5277 | fi | ||
5278 | |||
5279 | |||
5280 | |||
5281 | # Check whether --with-rpath or --without-rpath was given. | ||
5282 | if test "${with_rpath+set}" = set; then | ||
5283 | withval="$with_rpath" | ||
5284 | |||
5285 | if test "x$withval" = "xno" ; then | ||
5286 | need_dash_r="" | ||
5287 | fi | ||
5288 | if test "x$withval" = "xyes" ; then | ||
5289 | need_dash_r=1 | ||
5290 | fi | ||
5291 | |||
5292 | |||
5293 | fi; | ||
5294 | |||
5295 | |||
5296 | # Check whether --with-zlib or --without-zlib was given. | ||
5297 | if test "${with_zlib+set}" = set; then | ||
5298 | withval="$with_zlib" | ||
5299 | |||
5300 | if test "x$withval" = "xno" ; then | ||
5301 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
5302 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
5303 | { (exit 1); exit 1; }; } | ||
5304 | fi | ||
5305 | if test -d "$withval/lib"; then | ||
5306 | if test -n "${need_dash_r}"; then | ||
5307 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
5308 | else | ||
5309 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
5310 | fi | ||
5311 | else | ||
5312 | if test -n "${need_dash_r}"; then | ||
5313 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
5314 | else | ||
5315 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
5316 | fi | ||
5317 | fi | ||
5318 | if test -d "$withval/include"; then | ||
5319 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
5320 | else | ||
5321 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
5322 | fi | ||
5323 | |||
5324 | |||
5325 | fi; | ||
5326 | |||
5327 | |||
5328 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
5329 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
5330 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
5331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5332 | else | ||
5333 | ac_check_lib_save_LIBS=$LIBS | ||
5334 | LIBS="-lz $LIBS" | ||
5335 | cat >conftest.$ac_ext <<_ACEOF | ||
5336 | #line $LINENO "configure" | ||
5337 | #include "confdefs.h" | ||
5338 | |||
5339 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5340 | #ifdef __cplusplus | ||
5341 | extern "C" | ||
5342 | #endif | ||
5343 | /* We use char because int might match the return type of a gcc2 | ||
5344 | builtin and then its argument prototype would still apply. */ | ||
5345 | char deflate (); | ||
5346 | #ifdef F77_DUMMY_MAIN | ||
5347 | # ifdef __cplusplus | ||
5348 | extern "C" | ||
5349 | # endif | ||
5350 | int F77_DUMMY_MAIN() { return 1; } | ||
5351 | #endif | ||
5352 | int | ||
5353 | main () | ||
5354 | { | ||
5355 | deflate (); | ||
5356 | ; | ||
5357 | return 0; | ||
5358 | } | ||
5359 | _ACEOF | ||
5360 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5362 | (eval $ac_link) 2>&5 | ||
5363 | ac_status=$? | ||
5364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5365 | (exit $ac_status); } && | ||
5366 | { ac_try='test -s conftest$ac_exeext' | ||
5367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5368 | (eval $ac_try) 2>&5 | ||
5369 | ac_status=$? | ||
5370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5371 | (exit $ac_status); }; }; then | ||
5372 | ac_cv_lib_z_deflate=yes | ||
5373 | else | ||
5374 | echo "$as_me: failed program was:" >&5 | ||
5375 | cat conftest.$ac_ext >&5 | ||
5376 | ac_cv_lib_z_deflate=no | ||
5377 | fi | ||
5378 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5379 | LIBS=$ac_check_lib_save_LIBS | ||
5380 | fi | ||
5381 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
5382 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
5383 | if test $ac_cv_lib_z_deflate = yes; then | ||
5384 | cat >>confdefs.h <<_ACEOF | ||
5385 | #define HAVE_LIBZ 1 | ||
5386 | _ACEOF | ||
5387 | |||
5388 | LIBS="-lz $LIBS" | ||
5389 | |||
5390 | else | ||
5391 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
5392 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
5393 | { (exit 1); exit 1; }; } | ||
5394 | fi | ||
5395 | |||
5396 | |||
5397 | echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
5398 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
5399 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
5400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5401 | else | ||
5402 | cat >conftest.$ac_ext <<_ACEOF | ||
5403 | #line $LINENO "configure" | ||
5404 | #include "confdefs.h" | ||
5405 | /* System header to define __stub macros and hopefully few prototypes, | ||
5406 | which can conflict with char strcasecmp (); below. */ | ||
5407 | #include <assert.h> | ||
5408 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5409 | #ifdef __cplusplus | ||
5410 | extern "C" | ||
5411 | #endif | ||
5412 | /* We use char because int might match the return type of a gcc2 | ||
5413 | builtin and then its argument prototype would still apply. */ | ||
5414 | char strcasecmp (); | ||
5415 | char (*f) (); | ||
5416 | |||
5417 | #ifdef F77_DUMMY_MAIN | ||
5418 | # ifdef __cplusplus | ||
5419 | extern "C" | ||
5420 | # endif | ||
5421 | int F77_DUMMY_MAIN() { return 1; } | ||
5422 | #endif | ||
5423 | int | ||
5424 | main () | ||
5425 | { | ||
5426 | /* The GNU C library defines this for functions which it implements | ||
5427 | to always fail with ENOSYS. Some functions are actually named | ||
5428 | something starting with __ and the normal name is an alias. */ | ||
5429 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
5430 | choke me | ||
5431 | #else | ||
5432 | f = strcasecmp; | ||
5433 | #endif | ||
5434 | |||
5435 | ; | ||
5436 | return 0; | ||
5437 | } | ||
5438 | _ACEOF | ||
5439 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5441 | (eval $ac_link) 2>&5 | ||
5442 | ac_status=$? | ||
5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5444 | (exit $ac_status); } && | ||
5445 | { ac_try='test -s conftest$ac_exeext' | ||
5446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5447 | (eval $ac_try) 2>&5 | ||
5448 | ac_status=$? | ||
5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5450 | (exit $ac_status); }; }; then | ||
5451 | ac_cv_func_strcasecmp=yes | ||
5452 | else | ||
5453 | echo "$as_me: failed program was:" >&5 | ||
5454 | cat conftest.$ac_ext >&5 | ||
5455 | ac_cv_func_strcasecmp=no | ||
5456 | fi | ||
5457 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5458 | fi | ||
5459 | echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
5460 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
5461 | if test $ac_cv_func_strcasecmp = yes; then | ||
5462 | : | ||
5463 | else | ||
5464 | echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
5465 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
5466 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
5467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5468 | else | ||
5469 | ac_check_lib_save_LIBS=$LIBS | ||
5470 | LIBS="-lresolv $LIBS" | ||
5471 | cat >conftest.$ac_ext <<_ACEOF | ||
5472 | #line $LINENO "configure" | ||
5473 | #include "confdefs.h" | ||
5474 | |||
5475 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5476 | #ifdef __cplusplus | ||
5477 | extern "C" | ||
5478 | #endif | ||
5479 | /* We use char because int might match the return type of a gcc2 | ||
5480 | builtin and then its argument prototype would still apply. */ | ||
5481 | char strcasecmp (); | ||
5482 | #ifdef F77_DUMMY_MAIN | ||
5483 | # ifdef __cplusplus | ||
5484 | extern "C" | ||
5485 | # endif | ||
5486 | int F77_DUMMY_MAIN() { return 1; } | ||
5487 | #endif | ||
5488 | int | ||
5489 | main () | ||
5490 | { | ||
5491 | strcasecmp (); | ||
5492 | ; | ||
5493 | return 0; | ||
5494 | } | ||
5495 | _ACEOF | ||
5496 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5498 | (eval $ac_link) 2>&5 | ||
5499 | ac_status=$? | ||
5500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5501 | (exit $ac_status); } && | ||
5502 | { ac_try='test -s conftest$ac_exeext' | ||
5503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5504 | (eval $ac_try) 2>&5 | ||
5505 | ac_status=$? | ||
5506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5507 | (exit $ac_status); }; }; then | ||
5508 | ac_cv_lib_resolv_strcasecmp=yes | ||
5509 | else | ||
5510 | echo "$as_me: failed program was:" >&5 | ||
5511 | cat conftest.$ac_ext >&5 | ||
5512 | ac_cv_lib_resolv_strcasecmp=no | ||
5513 | fi | ||
5514 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5515 | LIBS=$ac_check_lib_save_LIBS | ||
5516 | fi | ||
5517 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
5518 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
5519 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
5520 | LIBS="$LIBS -lresolv" | ||
5521 | fi | ||
5522 | |||
5523 | |||
5524 | fi | ||
5525 | |||
5526 | echo "$as_me:$LINENO: checking for utimes" >&5 | ||
5527 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
5528 | if test "${ac_cv_func_utimes+set}" = set; then | ||
5529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5530 | else | ||
5531 | cat >conftest.$ac_ext <<_ACEOF | ||
5532 | #line $LINENO "configure" | ||
5533 | #include "confdefs.h" | ||
5534 | /* System header to define __stub macros and hopefully few prototypes, | ||
5535 | which can conflict with char utimes (); below. */ | ||
5536 | #include <assert.h> | ||
5537 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5538 | #ifdef __cplusplus | ||
5539 | extern "C" | ||
5540 | #endif | ||
5541 | /* We use char because int might match the return type of a gcc2 | ||
5542 | builtin and then its argument prototype would still apply. */ | ||
5543 | char utimes (); | ||
5544 | char (*f) (); | ||
5545 | |||
5546 | #ifdef F77_DUMMY_MAIN | ||
5547 | # ifdef __cplusplus | ||
5548 | extern "C" | ||
5549 | # endif | ||
5550 | int F77_DUMMY_MAIN() { return 1; } | ||
5551 | #endif | ||
5552 | int | ||
5553 | main () | ||
5554 | { | ||
5555 | /* The GNU C library defines this for functions which it implements | ||
5556 | to always fail with ENOSYS. Some functions are actually named | ||
5557 | something starting with __ and the normal name is an alias. */ | ||
5558 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
5559 | choke me | ||
5560 | #else | ||
5561 | f = utimes; | ||
5562 | #endif | ||
5563 | |||
5564 | ; | ||
5565 | return 0; | ||
5566 | } | ||
5567 | _ACEOF | ||
5568 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5570 | (eval $ac_link) 2>&5 | ||
5571 | ac_status=$? | ||
5572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5573 | (exit $ac_status); } && | ||
5574 | { ac_try='test -s conftest$ac_exeext' | ||
5575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5576 | (eval $ac_try) 2>&5 | ||
5577 | ac_status=$? | ||
5578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5579 | (exit $ac_status); }; }; then | ||
5580 | ac_cv_func_utimes=yes | ||
5581 | else | ||
5582 | echo "$as_me: failed program was:" >&5 | ||
5583 | cat conftest.$ac_ext >&5 | ||
5584 | ac_cv_func_utimes=no | ||
5585 | fi | ||
5586 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5587 | fi | ||
5588 | echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5 | ||
5589 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
5590 | if test $ac_cv_func_utimes = yes; then | ||
5591 | : | ||
5592 | else | ||
5593 | echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
5594 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
5595 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
5596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5597 | else | ||
5598 | ac_check_lib_save_LIBS=$LIBS | ||
5599 | LIBS="-lc89 $LIBS" | ||
5600 | cat >conftest.$ac_ext <<_ACEOF | ||
5601 | #line $LINENO "configure" | ||
5602 | #include "confdefs.h" | ||
5603 | |||
5604 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5605 | #ifdef __cplusplus | ||
5606 | extern "C" | ||
5607 | #endif | ||
5608 | /* We use char because int might match the return type of a gcc2 | ||
5609 | builtin and then its argument prototype would still apply. */ | ||
5610 | char utimes (); | ||
5611 | #ifdef F77_DUMMY_MAIN | ||
5612 | # ifdef __cplusplus | ||
5613 | extern "C" | ||
5614 | # endif | ||
5615 | int F77_DUMMY_MAIN() { return 1; } | ||
5616 | #endif | ||
5617 | int | ||
5618 | main () | ||
5619 | { | ||
5620 | utimes (); | ||
5621 | ; | ||
5622 | return 0; | ||
5623 | } | ||
5624 | _ACEOF | ||
5625 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5627 | (eval $ac_link) 2>&5 | ||
5628 | ac_status=$? | ||
5629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5630 | (exit $ac_status); } && | ||
5631 | { ac_try='test -s conftest$ac_exeext' | ||
5632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5633 | (eval $ac_try) 2>&5 | ||
5634 | ac_status=$? | ||
5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5636 | (exit $ac_status); }; }; then | ||
5637 | ac_cv_lib_c89_utimes=yes | ||
5638 | else | ||
5639 | echo "$as_me: failed program was:" >&5 | ||
5640 | cat conftest.$ac_ext >&5 | ||
5641 | ac_cv_lib_c89_utimes=no | ||
5642 | fi | ||
5643 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5644 | LIBS=$ac_check_lib_save_LIBS | ||
5645 | fi | ||
5646 | echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
5647 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
5648 | if test $ac_cv_lib_c89_utimes = yes; then | ||
5649 | LIBS="$LIBS -lc89" | ||
5650 | fi | ||
5651 | |||
5652 | |||
5653 | fi | ||
5654 | |||
5655 | |||
5656 | |||
5657 | for ac_header in libutil.h | ||
5658 | do | ||
5659 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5661 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5663 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5665 | fi | ||
5666 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5667 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5668 | else | ||
5669 | # Is the header compilable? | ||
5670 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5671 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
5672 | cat >conftest.$ac_ext <<_ACEOF | ||
5673 | #line $LINENO "configure" | ||
5674 | #include "confdefs.h" | ||
5675 | $ac_includes_default | ||
5676 | #include <$ac_header> | ||
5677 | _ACEOF | ||
5678 | rm -f conftest.$ac_objext | ||
5679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5680 | (eval $ac_compile) 2>&5 | ||
5681 | ac_status=$? | ||
5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5683 | (exit $ac_status); } && | ||
5684 | { ac_try='test -s conftest.$ac_objext' | ||
5685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5686 | (eval $ac_try) 2>&5 | ||
5687 | ac_status=$? | ||
5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5689 | (exit $ac_status); }; }; then | ||
5690 | ac_header_compiler=yes | ||
5691 | else | ||
5692 | echo "$as_me: failed program was:" >&5 | ||
5693 | cat conftest.$ac_ext >&5 | ||
5694 | ac_header_compiler=no | ||
5695 | fi | ||
5696 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
5697 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5698 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
5699 | |||
5700 | # Is the header present? | ||
5701 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5702 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
5703 | cat >conftest.$ac_ext <<_ACEOF | ||
5704 | #line $LINENO "configure" | ||
5705 | #include "confdefs.h" | ||
5706 | #include <$ac_header> | ||
5707 | _ACEOF | ||
5708 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5709 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5710 | ac_status=$? | ||
5711 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5712 | rm -f conftest.er1 | ||
5713 | cat conftest.err >&5 | ||
5714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5715 | (exit $ac_status); } >/dev/null; then | ||
5716 | if test -s conftest.err; then | ||
5717 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5718 | else | ||
5719 | ac_cpp_err= | ||
5720 | fi | ||
5721 | else | ||
5722 | ac_cpp_err=yes | ||
5723 | fi | ||
5724 | if test -z "$ac_cpp_err"; then | ||
5725 | ac_header_preproc=yes | ||
5726 | else | ||
5727 | echo "$as_me: failed program was:" >&5 | ||
5728 | cat conftest.$ac_ext >&5 | ||
5729 | ac_header_preproc=no | ||
5730 | fi | ||
5731 | rm -f conftest.err conftest.$ac_ext | ||
5732 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5733 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
5734 | |||
5735 | # So? What about this header? | ||
5736 | case $ac_header_compiler:$ac_header_preproc in | ||
5737 | yes:no ) | ||
5738 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5739 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5741 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
5742 | no:yes ) | ||
5743 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5744 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5745 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5746 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5747 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5748 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
5749 | esac | ||
5750 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5751 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5752 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5754 | else | ||
5755 | eval "$as_ac_Header=$ac_header_preproc" | ||
5756 | fi | ||
5757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5758 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5759 | |||
5760 | fi | ||
5761 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5762 | cat >>confdefs.h <<_ACEOF | ||
5763 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5764 | _ACEOF | ||
5765 | |||
5766 | fi | ||
5767 | |||
5768 | done | ||
5769 | |||
5770 | echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
5771 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
5772 | if test "${ac_cv_search_login+set}" = set; then | ||
5773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5774 | else | ||
5775 | ac_func_search_save_LIBS=$LIBS | ||
5776 | ac_cv_search_login=no | ||
5777 | cat >conftest.$ac_ext <<_ACEOF | ||
5778 | #line $LINENO "configure" | ||
5779 | #include "confdefs.h" | ||
5780 | |||
5781 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5782 | #ifdef __cplusplus | ||
5783 | extern "C" | ||
5784 | #endif | ||
5785 | /* We use char because int might match the return type of a gcc2 | ||
5786 | builtin and then its argument prototype would still apply. */ | ||
5787 | char login (); | ||
5788 | #ifdef F77_DUMMY_MAIN | ||
5789 | # ifdef __cplusplus | ||
5790 | extern "C" | ||
5791 | # endif | ||
5792 | int F77_DUMMY_MAIN() { return 1; } | ||
5793 | #endif | ||
5794 | int | ||
5795 | main () | ||
5796 | { | ||
5797 | login (); | ||
5798 | ; | ||
5799 | return 0; | ||
5800 | } | ||
5801 | _ACEOF | ||
5802 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5804 | (eval $ac_link) 2>&5 | ||
5805 | ac_status=$? | ||
5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5807 | (exit $ac_status); } && | ||
5808 | { ac_try='test -s conftest$ac_exeext' | ||
5809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5810 | (eval $ac_try) 2>&5 | ||
5811 | ac_status=$? | ||
5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5813 | (exit $ac_status); }; }; then | ||
5814 | ac_cv_search_login="none required" | ||
5815 | else | ||
5816 | echo "$as_me: failed program was:" >&5 | ||
5817 | cat conftest.$ac_ext >&5 | ||
5818 | fi | ||
5819 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5820 | if test "$ac_cv_search_login" = no; then | ||
5821 | for ac_lib in util bsd; do | ||
5822 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
5823 | cat >conftest.$ac_ext <<_ACEOF | ||
5824 | #line $LINENO "configure" | ||
5825 | #include "confdefs.h" | ||
5826 | |||
5827 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5828 | #ifdef __cplusplus | ||
5829 | extern "C" | ||
5830 | #endif | ||
5831 | /* We use char because int might match the return type of a gcc2 | ||
5832 | builtin and then its argument prototype would still apply. */ | ||
5833 | char login (); | ||
5834 | #ifdef F77_DUMMY_MAIN | ||
5835 | # ifdef __cplusplus | ||
5836 | extern "C" | ||
5837 | # endif | ||
5838 | int F77_DUMMY_MAIN() { return 1; } | ||
5839 | #endif | ||
5840 | int | ||
5841 | main () | ||
5842 | { | ||
5843 | login (); | ||
5844 | ; | ||
5845 | return 0; | ||
5846 | } | ||
5847 | _ACEOF | ||
5848 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5850 | (eval $ac_link) 2>&5 | ||
5851 | ac_status=$? | ||
5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5853 | (exit $ac_status); } && | ||
5854 | { ac_try='test -s conftest$ac_exeext' | ||
5855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5856 | (eval $ac_try) 2>&5 | ||
5857 | ac_status=$? | ||
5858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5859 | (exit $ac_status); }; }; then | ||
5860 | ac_cv_search_login="-l$ac_lib" | ||
5861 | break | ||
5862 | else | ||
5863 | echo "$as_me: failed program was:" >&5 | ||
5864 | cat conftest.$ac_ext >&5 | ||
5865 | fi | ||
5866 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5867 | done | ||
5868 | fi | ||
5869 | LIBS=$ac_func_search_save_LIBS | ||
5870 | fi | ||
5871 | echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
5872 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
5873 | if test "$ac_cv_search_login" != no; then | ||
5874 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
5875 | cat >>confdefs.h <<\_ACEOF | ||
5876 | #define HAVE_LOGIN 1 | ||
5877 | _ACEOF | ||
5878 | |||
5879 | fi | ||
5880 | |||
5881 | |||
5882 | |||
5883 | |||
5884 | for ac_func in logout updwtmp logwtmp | ||
5885 | do | ||
5886 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5887 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5888 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5889 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5891 | else | ||
5892 | cat >conftest.$ac_ext <<_ACEOF | ||
5893 | #line $LINENO "configure" | ||
5894 | #include "confdefs.h" | ||
5895 | /* System header to define __stub macros and hopefully few prototypes, | ||
5896 | which can conflict with char $ac_func (); below. */ | ||
5897 | #include <assert.h> | ||
5898 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5899 | #ifdef __cplusplus | ||
5900 | extern "C" | ||
5901 | #endif | ||
5902 | /* We use char because int might match the return type of a gcc2 | ||
5903 | builtin and then its argument prototype would still apply. */ | ||
5904 | char $ac_func (); | ||
5905 | char (*f) (); | ||
5906 | |||
5907 | #ifdef F77_DUMMY_MAIN | ||
5908 | # ifdef __cplusplus | ||
5909 | extern "C" | ||
5910 | # endif | ||
5911 | int F77_DUMMY_MAIN() { return 1; } | ||
5912 | #endif | ||
5913 | int | ||
5914 | main () | ||
5915 | { | ||
5916 | /* The GNU C library defines this for functions which it implements | ||
5917 | to always fail with ENOSYS. Some functions are actually named | ||
5918 | something starting with __ and the normal name is an alias. */ | ||
5919 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5920 | choke me | ||
5921 | #else | ||
5922 | f = $ac_func; | ||
5923 | #endif | ||
5924 | |||
5925 | ; | ||
5926 | return 0; | ||
5927 | } | ||
5928 | _ACEOF | ||
5929 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5931 | (eval $ac_link) 2>&5 | ||
5932 | ac_status=$? | ||
5933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5934 | (exit $ac_status); } && | ||
5935 | { ac_try='test -s conftest$ac_exeext' | ||
5936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5937 | (eval $ac_try) 2>&5 | ||
5938 | ac_status=$? | ||
5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5940 | (exit $ac_status); }; }; then | ||
5941 | eval "$as_ac_var=yes" | ||
5942 | else | ||
5943 | echo "$as_me: failed program was:" >&5 | ||
5944 | cat conftest.$ac_ext >&5 | ||
5945 | eval "$as_ac_var=no" | ||
5946 | fi | ||
5947 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5948 | fi | ||
5949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5950 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5951 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5952 | cat >>confdefs.h <<_ACEOF | ||
5953 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5954 | _ACEOF | ||
5955 | |||
5956 | fi | ||
5957 | done | ||
5958 | |||
5959 | |||
5960 | |||
5961 | for ac_func in strftime | ||
5962 | do | ||
5963 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5964 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5965 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5966 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5968 | else | ||
5969 | cat >conftest.$ac_ext <<_ACEOF | ||
5970 | #line $LINENO "configure" | ||
5971 | #include "confdefs.h" | ||
5972 | /* System header to define __stub macros and hopefully few prototypes, | ||
5973 | which can conflict with char $ac_func (); below. */ | ||
5974 | #include <assert.h> | ||
5975 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5976 | #ifdef __cplusplus | ||
5977 | extern "C" | ||
5978 | #endif | ||
5979 | /* We use char because int might match the return type of a gcc2 | ||
5980 | builtin and then its argument prototype would still apply. */ | ||
5981 | char $ac_func (); | ||
5982 | char (*f) (); | ||
5983 | |||
5984 | #ifdef F77_DUMMY_MAIN | ||
5985 | # ifdef __cplusplus | ||
5986 | extern "C" | ||
5987 | # endif | ||
5988 | int F77_DUMMY_MAIN() { return 1; } | ||
5989 | #endif | ||
5990 | int | ||
5991 | main () | ||
5992 | { | ||
5993 | /* The GNU C library defines this for functions which it implements | ||
5994 | to always fail with ENOSYS. Some functions are actually named | ||
5995 | something starting with __ and the normal name is an alias. */ | ||
5996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5997 | choke me | ||
5998 | #else | ||
5999 | f = $ac_func; | ||
6000 | #endif | ||
6001 | |||
6002 | ; | ||
6003 | return 0; | ||
6004 | } | ||
6005 | _ACEOF | ||
6006 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6008 | (eval $ac_link) 2>&5 | ||
6009 | ac_status=$? | ||
6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6011 | (exit $ac_status); } && | ||
6012 | { ac_try='test -s conftest$ac_exeext' | ||
6013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6014 | (eval $ac_try) 2>&5 | ||
6015 | ac_status=$? | ||
6016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6017 | (exit $ac_status); }; }; then | ||
6018 | eval "$as_ac_var=yes" | ||
6019 | else | ||
6020 | echo "$as_me: failed program was:" >&5 | ||
6021 | cat conftest.$ac_ext >&5 | ||
6022 | eval "$as_ac_var=no" | ||
6023 | fi | ||
6024 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6025 | fi | ||
6026 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6027 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6028 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6029 | cat >>confdefs.h <<_ACEOF | ||
6030 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6031 | _ACEOF | ||
6032 | |||
6033 | else | ||
6034 | # strftime is in -lintl on SCO UNIX. | ||
6035 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
6036 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
6037 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
6038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6039 | else | ||
6040 | ac_check_lib_save_LIBS=$LIBS | ||
6041 | LIBS="-lintl $LIBS" | ||
6042 | cat >conftest.$ac_ext <<_ACEOF | ||
6043 | #line $LINENO "configure" | ||
6044 | #include "confdefs.h" | ||
6045 | |||
6046 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6047 | #ifdef __cplusplus | ||
6048 | extern "C" | ||
6049 | #endif | ||
6050 | /* We use char because int might match the return type of a gcc2 | ||
6051 | builtin and then its argument prototype would still apply. */ | ||
6052 | char strftime (); | ||
6053 | #ifdef F77_DUMMY_MAIN | ||
6054 | # ifdef __cplusplus | ||
6055 | extern "C" | ||
6056 | # endif | ||
6057 | int F77_DUMMY_MAIN() { return 1; } | ||
6058 | #endif | ||
6059 | int | ||
6060 | main () | ||
6061 | { | ||
6062 | strftime (); | ||
6063 | ; | ||
6064 | return 0; | ||
6065 | } | ||
6066 | _ACEOF | ||
6067 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6069 | (eval $ac_link) 2>&5 | ||
6070 | ac_status=$? | ||
6071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6072 | (exit $ac_status); } && | ||
6073 | { ac_try='test -s conftest$ac_exeext' | ||
6074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6075 | (eval $ac_try) 2>&5 | ||
6076 | ac_status=$? | ||
6077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6078 | (exit $ac_status); }; }; then | ||
6079 | ac_cv_lib_intl_strftime=yes | ||
6080 | else | ||
6081 | echo "$as_me: failed program was:" >&5 | ||
6082 | cat conftest.$ac_ext >&5 | ||
6083 | ac_cv_lib_intl_strftime=no | ||
6084 | fi | ||
6085 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6086 | LIBS=$ac_check_lib_save_LIBS | ||
6087 | fi | ||
6088 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
6089 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
6090 | if test $ac_cv_lib_intl_strftime = yes; then | ||
6091 | cat >>confdefs.h <<\_ACEOF | ||
6092 | #define HAVE_STRFTIME 1 | ||
6093 | _ACEOF | ||
6094 | |||
6095 | LIBS="-lintl $LIBS" | ||
6096 | fi | ||
6097 | |||
6098 | fi | ||
6099 | done | ||
6100 | |||
6101 | |||
6102 | # Check for ALTDIRFUNC glob() extension | ||
6103 | echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
6104 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
6105 | cat >conftest.$ac_ext <<_ACEOF | ||
6106 | #line $LINENO "configure" | ||
6107 | #include "confdefs.h" | ||
6108 | |||
6109 | #include <glob.h> | ||
6110 | #ifdef GLOB_ALTDIRFUNC | ||
6111 | FOUNDIT | ||
6112 | #endif | ||
6113 | |||
6114 | _ACEOF | ||
6115 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6116 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6117 | |||
6118 | cat >>confdefs.h <<\_ACEOF | ||
6119 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
6120 | _ACEOF | ||
6121 | |||
6122 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6123 | echo "${ECHO_T}yes" >&6 | ||
6124 | |||
6125 | else | ||
6126 | |||
6127 | echo "$as_me:$LINENO: result: no" >&5 | ||
6128 | echo "${ECHO_T}no" >&6 | ||
6129 | |||
6130 | |||
6131 | fi | ||
6132 | rm -f conftest* | ||
6133 | |||
6134 | |||
6135 | # Check for g.gl_matchc glob() extension | ||
6136 | echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
6137 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
6138 | cat >conftest.$ac_ext <<_ACEOF | ||
6139 | #line $LINENO "configure" | ||
6140 | #include "confdefs.h" | ||
6141 | |||
6142 | #include <glob.h> | ||
6143 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
6144 | |||
6145 | _ACEOF | ||
6146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6147 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6148 | |||
6149 | cat >>confdefs.h <<\_ACEOF | ||
6150 | #define GLOB_HAS_GL_MATCHC 1 | ||
6151 | _ACEOF | ||
6152 | |||
6153 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6154 | echo "${ECHO_T}yes" >&6 | ||
6155 | |||
6156 | else | ||
6157 | |||
6158 | echo "$as_me:$LINENO: result: no" >&5 | ||
6159 | echo "${ECHO_T}no" >&6 | ||
6160 | |||
6161 | |||
6162 | fi | ||
6163 | rm -f conftest* | ||
6164 | |||
6165 | |||
6166 | echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
6167 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
6168 | if test "$cross_compiling" = yes; then | ||
6169 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
6170 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6171 | { (exit 1); exit 1; }; } | ||
6172 | else | ||
6173 | cat >conftest.$ac_ext <<_ACEOF | ||
6174 | #line $LINENO "configure" | ||
6175 | #include "confdefs.h" | ||
6176 | |||
6177 | #include <sys/types.h> | ||
6178 | #include <dirent.h> | ||
6179 | int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));} | ||
6180 | |||
6181 | _ACEOF | ||
6182 | rm -f conftest$ac_exeext | ||
6183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6184 | (eval $ac_link) 2>&5 | ||
6185 | ac_status=$? | ||
6186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6187 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6189 | (eval $ac_try) 2>&5 | ||
6190 | ac_status=$? | ||
6191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6192 | (exit $ac_status); }; }; then | ||
6193 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6194 | echo "${ECHO_T}yes" >&6 | ||
6195 | else | ||
6196 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6197 | echo "$as_me: failed program was:" >&5 | ||
6198 | cat conftest.$ac_ext >&5 | ||
6199 | ( exit $ac_status ) | ||
6200 | |||
6201 | echo "$as_me:$LINENO: result: no" >&5 | ||
6202 | echo "${ECHO_T}no" >&6 | ||
6203 | cat >>confdefs.h <<\_ACEOF | ||
6204 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
6205 | _ACEOF | ||
6206 | |||
6207 | |||
6208 | |||
6209 | fi | ||
6210 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6211 | fi | ||
6212 | |||
6213 | # Check whether user wants S/Key support | ||
6214 | SKEY_MSG="no" | ||
6215 | |||
6216 | # Check whether --with-skey or --without-skey was given. | ||
6217 | if test "${with_skey+set}" = set; then | ||
6218 | withval="$with_skey" | ||
6219 | |||
6220 | if test "x$withval" != "xno" ; then | ||
6221 | |||
6222 | if test "x$withval" != "xyes" ; then | ||
6223 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
6224 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
6225 | fi | ||
6226 | |||
6227 | cat >>confdefs.h <<\_ACEOF | ||
6228 | #define SKEY 1 | ||
6229 | _ACEOF | ||
6230 | |||
6231 | LIBS="-lskey $LIBS" | ||
6232 | SKEY_MSG="yes" | ||
6233 | |||
6234 | echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
6235 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
6236 | if test "$cross_compiling" = yes; then | ||
6237 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
6238 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6239 | { (exit 1); exit 1; }; } | ||
6240 | else | ||
6241 | cat >conftest.$ac_ext <<_ACEOF | ||
6242 | #line $LINENO "configure" | ||
6243 | #include "confdefs.h" | ||
6244 | |||
6245 | #include <stdio.h> | ||
6246 | #include <skey.h> | ||
6247 | int main() { char *ff = skey_keyinfo(""); ff=""; return 0; } | ||
6248 | |||
6249 | _ACEOF | ||
6250 | rm -f conftest$ac_exeext | ||
6251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6252 | (eval $ac_link) 2>&5 | ||
6253 | ac_status=$? | ||
6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6255 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6257 | (eval $ac_try) 2>&5 | ||
6258 | ac_status=$? | ||
6259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6260 | (exit $ac_status); }; }; then | ||
6261 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6262 | echo "${ECHO_T}yes" >&6 | ||
6263 | else | ||
6264 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6265 | echo "$as_me: failed program was:" >&5 | ||
6266 | cat conftest.$ac_ext >&5 | ||
6267 | ( exit $ac_status ) | ||
6268 | |||
6269 | echo "$as_me:$LINENO: result: no" >&5 | ||
6270 | echo "${ECHO_T}no" >&6 | ||
6271 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
6272 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
6273 | { (exit 1); exit 1; }; } | ||
6274 | |||
6275 | fi | ||
6276 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6277 | fi | ||
6278 | fi | ||
6279 | |||
6280 | |||
6281 | fi; | ||
6282 | |||
6283 | # Check whether user wants TCP wrappers support | ||
6284 | TCPW_MSG="no" | ||
6285 | |||
6286 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
6287 | if test "${with_tcp_wrappers+set}" = set; then | ||
6288 | withval="$with_tcp_wrappers" | ||
6289 | |||
6290 | if test "x$withval" != "xno" ; then | ||
6291 | saved_LIBS="$LIBS" | ||
6292 | saved_LDFLAGS="$LDFLAGS" | ||
6293 | saved_CPPFLAGS="$CPPFLAGS" | ||
6294 | if test -n "${withval}" -a "${withval}" != "yes"; then | ||
6295 | if test -d "${withval}/lib"; then | ||
6296 | if test -n "${need_dash_r}"; then | ||
6297 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
6298 | else | ||
6299 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
6300 | fi | ||
6301 | else | ||
6302 | if test -n "${need_dash_r}"; then | ||
6303 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
6304 | else | ||
6305 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
6306 | fi | ||
6307 | fi | ||
6308 | if test -d "${withval}/include"; then | ||
6309 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
6310 | else | ||
6311 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
6312 | fi | ||
6313 | fi | ||
6314 | LIBWRAP="-lwrap" | ||
6315 | LIBS="$LIBWRAP $LIBS" | ||
6316 | echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
6317 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
6318 | cat >conftest.$ac_ext <<_ACEOF | ||
6319 | #line $LINENO "configure" | ||
6320 | #include "confdefs.h" | ||
6321 | |||
6322 | #include <tcpd.h> | ||
6323 | int deny_severity = 0, allow_severity = 0; | ||
6324 | |||
6325 | #ifdef F77_DUMMY_MAIN | ||
6326 | # ifdef __cplusplus | ||
6327 | extern "C" | ||
6328 | # endif | ||
6329 | int F77_DUMMY_MAIN() { return 1; } | ||
6330 | #endif | ||
6331 | int | ||
6332 | main () | ||
6333 | { | ||
6334 | hosts_access(0); | ||
6335 | ; | ||
6336 | return 0; | ||
6337 | } | ||
6338 | _ACEOF | ||
6339 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6341 | (eval $ac_link) 2>&5 | ||
6342 | ac_status=$? | ||
6343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6344 | (exit $ac_status); } && | ||
6345 | { ac_try='test -s conftest$ac_exeext' | ||
6346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6347 | (eval $ac_try) 2>&5 | ||
6348 | ac_status=$? | ||
6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6350 | (exit $ac_status); }; }; then | ||
6351 | |||
6352 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6353 | echo "${ECHO_T}yes" >&6 | ||
6354 | cat >>confdefs.h <<\_ACEOF | ||
6355 | #define LIBWRAP 1 | ||
6356 | _ACEOF | ||
6357 | |||
6358 | |||
6359 | TCPW_MSG="yes" | ||
6360 | |||
6361 | else | ||
6362 | echo "$as_me: failed program was:" >&5 | ||
6363 | cat conftest.$ac_ext >&5 | ||
6364 | |||
6365 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
6366 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
6367 | { (exit 1); exit 1; }; } | ||
6368 | |||
6369 | |||
6370 | fi | ||
6371 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6372 | LIBS="$saved_LIBS" | ||
6373 | fi | ||
6374 | |||
6375 | |||
6376 | fi; | ||
6377 | |||
6378 | |||
6379 | |||
6380 | |||
6381 | |||
6382 | |||
6383 | |||
6384 | |||
6385 | |||
6386 | |||
6387 | |||
6388 | |||
6389 | |||
6390 | |||
6391 | |||
6392 | |||
6393 | |||
6394 | |||
6395 | |||
6396 | |||
6397 | |||
6398 | |||
6399 | |||
6400 | |||
6401 | |||
6402 | |||
6403 | |||
6404 | |||
6405 | |||
6406 | |||
6407 | |||
6408 | |||
6409 | |||
6410 | |||
6411 | |||
6412 | |||
6413 | |||
6414 | |||
6415 | |||
6416 | |||
6417 | |||
6418 | |||
6419 | |||
6420 | |||
6421 | |||
6422 | |||
6423 | |||
6424 | |||
6425 | |||
6426 | |||
6427 | |||
6428 | |||
6429 | |||
6430 | |||
6431 | |||
6432 | |||
6433 | |||
6434 | |||
6435 | |||
6436 | |||
6437 | |||
6438 | |||
6439 | |||
6440 | |||
6441 | |||
6442 | |||
6443 | |||
6444 | |||
6445 | for ac_func in arc4random b64_ntop bcopy bindresvport_sa \ | ||
6446 | clock fchmod fchown freeaddrinfo futimes gai_strerror \ | ||
6447 | getaddrinfo getcwd getgrouplist getnameinfo getopt \ | ||
6448 | getrlimit getrusage getttyent glob inet_aton inet_ntoa \ | ||
6449 | inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
6450 | mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \ | ||
6451 | realpath recvmsg rresvport_af sendmsg setdtablesize setegid \ | ||
6452 | setenv seteuid setgroups setlogin setproctitle setresgid setreuid \ | ||
6453 | setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \ | ||
6454 | socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \ | ||
6455 | truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty | ||
6456 | do | ||
6457 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6458 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6459 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6460 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6462 | else | ||
6463 | cat >conftest.$ac_ext <<_ACEOF | ||
6464 | #line $LINENO "configure" | ||
6465 | #include "confdefs.h" | ||
6466 | /* System header to define __stub macros and hopefully few prototypes, | ||
6467 | which can conflict with char $ac_func (); below. */ | ||
6468 | #include <assert.h> | ||
6469 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6470 | #ifdef __cplusplus | ||
6471 | extern "C" | ||
6472 | #endif | ||
6473 | /* We use char because int might match the return type of a gcc2 | ||
6474 | builtin and then its argument prototype would still apply. */ | ||
6475 | char $ac_func (); | ||
6476 | char (*f) (); | ||
6477 | |||
6478 | #ifdef F77_DUMMY_MAIN | ||
6479 | # ifdef __cplusplus | ||
6480 | extern "C" | ||
6481 | # endif | ||
6482 | int F77_DUMMY_MAIN() { return 1; } | ||
6483 | #endif | ||
6484 | int | ||
6485 | main () | ||
6486 | { | ||
6487 | /* The GNU C library defines this for functions which it implements | ||
6488 | to always fail with ENOSYS. Some functions are actually named | ||
6489 | something starting with __ and the normal name is an alias. */ | ||
6490 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6491 | choke me | ||
6492 | #else | ||
6493 | f = $ac_func; | ||
6494 | #endif | ||
6495 | |||
6496 | ; | ||
6497 | return 0; | ||
6498 | } | ||
6499 | _ACEOF | ||
6500 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6502 | (eval $ac_link) 2>&5 | ||
6503 | ac_status=$? | ||
6504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6505 | (exit $ac_status); } && | ||
6506 | { ac_try='test -s conftest$ac_exeext' | ||
6507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6508 | (eval $ac_try) 2>&5 | ||
6509 | ac_status=$? | ||
6510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6511 | (exit $ac_status); }; }; then | ||
6512 | eval "$as_ac_var=yes" | ||
6513 | else | ||
6514 | echo "$as_me: failed program was:" >&5 | ||
6515 | cat conftest.$ac_ext >&5 | ||
6516 | eval "$as_ac_var=no" | ||
6517 | fi | ||
6518 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6519 | fi | ||
6520 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6521 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6522 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6523 | cat >>confdefs.h <<_ACEOF | ||
6524 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6525 | _ACEOF | ||
6526 | |||
6527 | fi | ||
6528 | done | ||
6529 | |||
6530 | |||
6531 | if test $ac_cv_func_mmap = yes ; then | ||
6532 | echo "$as_me:$LINENO: checking for mmap anon shared" >&5 | ||
6533 | echo $ECHO_N "checking for mmap anon shared... $ECHO_C" >&6 | ||
6534 | if test "$cross_compiling" = yes; then | ||
6535 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
6536 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6537 | { (exit 1); exit 1; }; } | ||
6538 | else | ||
6539 | cat >conftest.$ac_ext <<_ACEOF | ||
6540 | #line $LINENO "configure" | ||
6541 | #include "confdefs.h" | ||
6542 | |||
6543 | #include <stdio.h> | ||
6544 | #include <sys/mman.h> | ||
6545 | #if !defined(MAP_ANON) && defined(MAP_ANONYMOUS) | ||
6546 | #define MAP_ANON MAP_ANONYMOUS | ||
6547 | #endif | ||
6548 | main() { char *p; | ||
6549 | p = (char *) mmap(NULL, 10, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, -1, 0); | ||
6550 | if (p == (char *)-1) | ||
6551 | exit(1); | ||
6552 | exit(0); | ||
6553 | } | ||
6554 | |||
6555 | _ACEOF | ||
6556 | rm -f conftest$ac_exeext | ||
6557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6558 | (eval $ac_link) 2>&5 | ||
6559 | ac_status=$? | ||
6560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6561 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6563 | (eval $ac_try) 2>&5 | ||
6564 | ac_status=$? | ||
6565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6566 | (exit $ac_status); }; }; then | ||
6567 | |||
6568 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6569 | echo "${ECHO_T}yes" >&6 | ||
6570 | cat >>confdefs.h <<\_ACEOF | ||
6571 | #define HAVE_MMAP_ANON_SHARED 1 | ||
6572 | _ACEOF | ||
6573 | |||
6574 | |||
6575 | else | ||
6576 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6577 | echo "$as_me: failed program was:" >&5 | ||
6578 | cat conftest.$ac_ext >&5 | ||
6579 | ( exit $ac_status ) | ||
6580 | echo "$as_me:$LINENO: result: no" >&5 | ||
6581 | echo "${ECHO_T}no" >&6 | ||
6582 | |||
6583 | fi | ||
6584 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6585 | fi | ||
6586 | fi | ||
6587 | |||
6588 | |||
6589 | for ac_func in dirname | ||
6590 | do | ||
6591 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6592 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6593 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6594 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6596 | else | ||
6597 | cat >conftest.$ac_ext <<_ACEOF | ||
6598 | #line $LINENO "configure" | ||
6599 | #include "confdefs.h" | ||
6600 | /* System header to define __stub macros and hopefully few prototypes, | ||
6601 | which can conflict with char $ac_func (); below. */ | ||
6602 | #include <assert.h> | ||
6603 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6604 | #ifdef __cplusplus | ||
6605 | extern "C" | ||
6606 | #endif | ||
6607 | /* We use char because int might match the return type of a gcc2 | ||
6608 | builtin and then its argument prototype would still apply. */ | ||
6609 | char $ac_func (); | ||
6610 | char (*f) (); | ||
6611 | |||
6612 | #ifdef F77_DUMMY_MAIN | ||
6613 | # ifdef __cplusplus | ||
6614 | extern "C" | ||
6615 | # endif | ||
6616 | int F77_DUMMY_MAIN() { return 1; } | ||
6617 | #endif | ||
6618 | int | ||
6619 | main () | ||
6620 | { | ||
6621 | /* The GNU C library defines this for functions which it implements | ||
6622 | to always fail with ENOSYS. Some functions are actually named | ||
6623 | something starting with __ and the normal name is an alias. */ | ||
6624 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6625 | choke me | ||
6626 | #else | ||
6627 | f = $ac_func; | ||
6628 | #endif | ||
6629 | |||
6630 | ; | ||
6631 | return 0; | ||
6632 | } | ||
6633 | _ACEOF | ||
6634 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6636 | (eval $ac_link) 2>&5 | ||
6637 | ac_status=$? | ||
6638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6639 | (exit $ac_status); } && | ||
6640 | { ac_try='test -s conftest$ac_exeext' | ||
6641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6642 | (eval $ac_try) 2>&5 | ||
6643 | ac_status=$? | ||
6644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6645 | (exit $ac_status); }; }; then | ||
6646 | eval "$as_ac_var=yes" | ||
6647 | else | ||
6648 | echo "$as_me: failed program was:" >&5 | ||
6649 | cat conftest.$ac_ext >&5 | ||
6650 | eval "$as_ac_var=no" | ||
6651 | fi | ||
6652 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6653 | fi | ||
6654 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6655 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6656 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6657 | cat >>confdefs.h <<_ACEOF | ||
6658 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6659 | _ACEOF | ||
6660 | |||
6661 | for ac_header in libgen.h | ||
6662 | do | ||
6663 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6665 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6666 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6667 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6669 | fi | ||
6670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6671 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6672 | else | ||
6673 | # Is the header compilable? | ||
6674 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
6675 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
6676 | cat >conftest.$ac_ext <<_ACEOF | ||
6677 | #line $LINENO "configure" | ||
6678 | #include "confdefs.h" | ||
6679 | $ac_includes_default | ||
6680 | #include <$ac_header> | ||
6681 | _ACEOF | ||
6682 | rm -f conftest.$ac_objext | ||
6683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6684 | (eval $ac_compile) 2>&5 | ||
6685 | ac_status=$? | ||
6686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6687 | (exit $ac_status); } && | ||
6688 | { ac_try='test -s conftest.$ac_objext' | ||
6689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6690 | (eval $ac_try) 2>&5 | ||
6691 | ac_status=$? | ||
6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6693 | (exit $ac_status); }; }; then | ||
6694 | ac_header_compiler=yes | ||
6695 | else | ||
6696 | echo "$as_me: failed program was:" >&5 | ||
6697 | cat conftest.$ac_ext >&5 | ||
6698 | ac_header_compiler=no | ||
6699 | fi | ||
6700 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
6701 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6702 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
6703 | |||
6704 | # Is the header present? | ||
6705 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
6706 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
6707 | cat >conftest.$ac_ext <<_ACEOF | ||
6708 | #line $LINENO "configure" | ||
6709 | #include "confdefs.h" | ||
6710 | #include <$ac_header> | ||
6711 | _ACEOF | ||
6712 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6713 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6714 | ac_status=$? | ||
6715 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
6716 | rm -f conftest.er1 | ||
6717 | cat conftest.err >&5 | ||
6718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6719 | (exit $ac_status); } >/dev/null; then | ||
6720 | if test -s conftest.err; then | ||
6721 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6722 | else | ||
6723 | ac_cpp_err= | ||
6724 | fi | ||
6725 | else | ||
6726 | ac_cpp_err=yes | ||
6727 | fi | ||
6728 | if test -z "$ac_cpp_err"; then | ||
6729 | ac_header_preproc=yes | ||
6730 | else | ||
6731 | echo "$as_me: failed program was:" >&5 | ||
6732 | cat conftest.$ac_ext >&5 | ||
6733 | ac_header_preproc=no | ||
6734 | fi | ||
6735 | rm -f conftest.err conftest.$ac_ext | ||
6736 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6737 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
6738 | |||
6739 | # So? What about this header? | ||
6740 | case $ac_header_compiler:$ac_header_preproc in | ||
6741 | yes:no ) | ||
6742 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6743 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6744 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6745 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6746 | no:yes ) | ||
6747 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6748 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6749 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6750 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6751 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6752 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6753 | esac | ||
6754 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6755 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6758 | else | ||
6759 | eval "$as_ac_Header=$ac_header_preproc" | ||
6760 | fi | ||
6761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6763 | |||
6764 | fi | ||
6765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6766 | cat >>confdefs.h <<_ACEOF | ||
6767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6768 | _ACEOF | ||
6769 | |||
6770 | fi | ||
6771 | |||
6772 | done | ||
6773 | |||
6774 | else | ||
6775 | |||
6776 | echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
6777 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
6778 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
6779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6780 | else | ||
6781 | ac_check_lib_save_LIBS=$LIBS | ||
6782 | LIBS="-lgen $LIBS" | ||
6783 | cat >conftest.$ac_ext <<_ACEOF | ||
6784 | #line $LINENO "configure" | ||
6785 | #include "confdefs.h" | ||
6786 | |||
6787 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6788 | #ifdef __cplusplus | ||
6789 | extern "C" | ||
6790 | #endif | ||
6791 | /* We use char because int might match the return type of a gcc2 | ||
6792 | builtin and then its argument prototype would still apply. */ | ||
6793 | char dirname (); | ||
6794 | #ifdef F77_DUMMY_MAIN | ||
6795 | # ifdef __cplusplus | ||
6796 | extern "C" | ||
6797 | # endif | ||
6798 | int F77_DUMMY_MAIN() { return 1; } | ||
6799 | #endif | ||
6800 | int | ||
6801 | main () | ||
6802 | { | ||
6803 | dirname (); | ||
6804 | ; | ||
6805 | return 0; | ||
6806 | } | ||
6807 | _ACEOF | ||
6808 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6810 | (eval $ac_link) 2>&5 | ||
6811 | ac_status=$? | ||
6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6813 | (exit $ac_status); } && | ||
6814 | { ac_try='test -s conftest$ac_exeext' | ||
6815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6816 | (eval $ac_try) 2>&5 | ||
6817 | ac_status=$? | ||
6818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6819 | (exit $ac_status); }; }; then | ||
6820 | ac_cv_lib_gen_dirname=yes | ||
6821 | else | ||
6822 | echo "$as_me: failed program was:" >&5 | ||
6823 | cat conftest.$ac_ext >&5 | ||
6824 | ac_cv_lib_gen_dirname=no | ||
6825 | fi | ||
6826 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6827 | LIBS=$ac_check_lib_save_LIBS | ||
6828 | fi | ||
6829 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
6830 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
6831 | if test $ac_cv_lib_gen_dirname = yes; then | ||
6832 | |||
6833 | echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
6834 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
6835 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
6836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6837 | else | ||
6838 | |||
6839 | save_LIBS="$LIBS" | ||
6840 | LIBS="$LIBS -lgen" | ||
6841 | if test "$cross_compiling" = yes; then | ||
6842 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
6843 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6844 | { (exit 1); exit 1; }; } | ||
6845 | else | ||
6846 | cat >conftest.$ac_ext <<_ACEOF | ||
6847 | #line $LINENO "configure" | ||
6848 | #include "confdefs.h" | ||
6849 | |||
6850 | #include <libgen.h> | ||
6851 | #include <string.h> | ||
6852 | |||
6853 | int main(int argc, char **argv) { | ||
6854 | char *s, buf[32]; | ||
6855 | |||
6856 | strncpy(buf,"/etc", 32); | ||
6857 | s = dirname(buf); | ||
6858 | if (!s || strncmp(s, "/", 32) != 0) { | ||
6859 | exit(1); | ||
6860 | } else { | ||
6861 | exit(0); | ||
6862 | } | ||
6863 | } | ||
6864 | |||
6865 | _ACEOF | ||
6866 | rm -f conftest$ac_exeext | ||
6867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6868 | (eval $ac_link) 2>&5 | ||
6869 | ac_status=$? | ||
6870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6871 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6873 | (eval $ac_try) 2>&5 | ||
6874 | ac_status=$? | ||
6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6876 | (exit $ac_status); }; }; then | ||
6877 | ac_cv_have_broken_dirname="no" | ||
6878 | else | ||
6879 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6880 | echo "$as_me: failed program was:" >&5 | ||
6881 | cat conftest.$ac_ext >&5 | ||
6882 | ( exit $ac_status ) | ||
6883 | ac_cv_have_broken_dirname="yes" | ||
6884 | |||
6885 | fi | ||
6886 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6887 | fi | ||
6888 | LIBS="$save_LIBS" | ||
6889 | |||
6890 | fi | ||
6891 | echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
6892 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
6893 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
6894 | LIBS="$LIBS -lgen" | ||
6895 | cat >>confdefs.h <<\_ACEOF | ||
6896 | #define HAVE_DIRNAME 1 | ||
6897 | _ACEOF | ||
6898 | |||
6899 | |||
6900 | for ac_header in libgen.h | ||
6901 | do | ||
6902 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6903 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6908 | fi | ||
6909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6910 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6911 | else | ||
6912 | # Is the header compilable? | ||
6913 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
6914 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
6915 | cat >conftest.$ac_ext <<_ACEOF | ||
6916 | #line $LINENO "configure" | ||
6917 | #include "confdefs.h" | ||
6918 | $ac_includes_default | ||
6919 | #include <$ac_header> | ||
6920 | _ACEOF | ||
6921 | rm -f conftest.$ac_objext | ||
6922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6923 | (eval $ac_compile) 2>&5 | ||
6924 | ac_status=$? | ||
6925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6926 | (exit $ac_status); } && | ||
6927 | { ac_try='test -s conftest.$ac_objext' | ||
6928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6929 | (eval $ac_try) 2>&5 | ||
6930 | ac_status=$? | ||
6931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6932 | (exit $ac_status); }; }; then | ||
6933 | ac_header_compiler=yes | ||
6934 | else | ||
6935 | echo "$as_me: failed program was:" >&5 | ||
6936 | cat conftest.$ac_ext >&5 | ||
6937 | ac_header_compiler=no | ||
6938 | fi | ||
6939 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
6940 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6941 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
6942 | |||
6943 | # Is the header present? | ||
6944 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
6945 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
6946 | cat >conftest.$ac_ext <<_ACEOF | ||
6947 | #line $LINENO "configure" | ||
6948 | #include "confdefs.h" | ||
6949 | #include <$ac_header> | ||
6950 | _ACEOF | ||
6951 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6952 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6953 | ac_status=$? | ||
6954 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
6955 | rm -f conftest.er1 | ||
6956 | cat conftest.err >&5 | ||
6957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6958 | (exit $ac_status); } >/dev/null; then | ||
6959 | if test -s conftest.err; then | ||
6960 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6961 | else | ||
6962 | ac_cpp_err= | ||
6963 | fi | ||
6964 | else | ||
6965 | ac_cpp_err=yes | ||
6966 | fi | ||
6967 | if test -z "$ac_cpp_err"; then | ||
6968 | ac_header_preproc=yes | ||
6969 | else | ||
6970 | echo "$as_me: failed program was:" >&5 | ||
6971 | cat conftest.$ac_ext >&5 | ||
6972 | ac_header_preproc=no | ||
6973 | fi | ||
6974 | rm -f conftest.err conftest.$ac_ext | ||
6975 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6976 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
6977 | |||
6978 | # So? What about this header? | ||
6979 | case $ac_header_compiler:$ac_header_preproc in | ||
6980 | yes:no ) | ||
6981 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6982 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6983 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6984 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6985 | no:yes ) | ||
6986 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6987 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6988 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6989 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6990 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6991 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6992 | esac | ||
6993 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6994 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6997 | else | ||
6998 | eval "$as_ac_Header=$ac_header_preproc" | ||
6999 | fi | ||
7000 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7001 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7002 | |||
7003 | fi | ||
7004 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7005 | cat >>confdefs.h <<_ACEOF | ||
7006 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7007 | _ACEOF | ||
7008 | |||
7009 | fi | ||
7010 | |||
7011 | done | ||
7012 | |||
7013 | fi | ||
7014 | |||
7015 | fi | ||
7016 | |||
7017 | |||
7018 | fi | ||
7019 | done | ||
7020 | |||
7021 | |||
7022 | |||
7023 | |||
7024 | for ac_func in gettimeofday time | ||
7025 | do | ||
7026 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7027 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7028 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7029 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7031 | else | ||
7032 | cat >conftest.$ac_ext <<_ACEOF | ||
7033 | #line $LINENO "configure" | ||
7034 | #include "confdefs.h" | ||
7035 | /* System header to define __stub macros and hopefully few prototypes, | ||
7036 | which can conflict with char $ac_func (); below. */ | ||
7037 | #include <assert.h> | ||
7038 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7039 | #ifdef __cplusplus | ||
7040 | extern "C" | ||
7041 | #endif | ||
7042 | /* We use char because int might match the return type of a gcc2 | ||
7043 | builtin and then its argument prototype would still apply. */ | ||
7044 | char $ac_func (); | ||
7045 | char (*f) (); | ||
7046 | |||
7047 | #ifdef F77_DUMMY_MAIN | ||
7048 | # ifdef __cplusplus | ||
7049 | extern "C" | ||
7050 | # endif | ||
7051 | int F77_DUMMY_MAIN() { return 1; } | ||
7052 | #endif | ||
7053 | int | ||
7054 | main () | ||
7055 | { | ||
7056 | /* The GNU C library defines this for functions which it implements | ||
7057 | to always fail with ENOSYS. Some functions are actually named | ||
7058 | something starting with __ and the normal name is an alias. */ | ||
7059 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7060 | choke me | ||
7061 | #else | ||
7062 | f = $ac_func; | ||
7063 | #endif | ||
7064 | |||
7065 | ; | ||
7066 | return 0; | ||
7067 | } | ||
7068 | _ACEOF | ||
7069 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7071 | (eval $ac_link) 2>&5 | ||
7072 | ac_status=$? | ||
7073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7074 | (exit $ac_status); } && | ||
7075 | { ac_try='test -s conftest$ac_exeext' | ||
7076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7077 | (eval $ac_try) 2>&5 | ||
7078 | ac_status=$? | ||
7079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7080 | (exit $ac_status); }; }; then | ||
7081 | eval "$as_ac_var=yes" | ||
7082 | else | ||
7083 | echo "$as_me: failed program was:" >&5 | ||
7084 | cat conftest.$ac_ext >&5 | ||
7085 | eval "$as_ac_var=no" | ||
7086 | fi | ||
7087 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7088 | fi | ||
7089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7090 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7091 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7092 | cat >>confdefs.h <<_ACEOF | ||
7093 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7094 | _ACEOF | ||
7095 | |||
7096 | fi | ||
7097 | done | ||
7098 | |||
7099 | |||
7100 | |||
7101 | |||
7102 | |||
7103 | |||
7104 | |||
7105 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
7106 | do | ||
7107 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7108 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7109 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7110 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7112 | else | ||
7113 | cat >conftest.$ac_ext <<_ACEOF | ||
7114 | #line $LINENO "configure" | ||
7115 | #include "confdefs.h" | ||
7116 | /* System header to define __stub macros and hopefully few prototypes, | ||
7117 | which can conflict with char $ac_func (); below. */ | ||
7118 | #include <assert.h> | ||
7119 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7120 | #ifdef __cplusplus | ||
7121 | extern "C" | ||
7122 | #endif | ||
7123 | /* We use char because int might match the return type of a gcc2 | ||
7124 | builtin and then its argument prototype would still apply. */ | ||
7125 | char $ac_func (); | ||
7126 | char (*f) (); | ||
7127 | |||
7128 | #ifdef F77_DUMMY_MAIN | ||
7129 | # ifdef __cplusplus | ||
7130 | extern "C" | ||
7131 | # endif | ||
7132 | int F77_DUMMY_MAIN() { return 1; } | ||
7133 | #endif | ||
7134 | int | ||
7135 | main () | ||
7136 | { | ||
7137 | /* The GNU C library defines this for functions which it implements | ||
7138 | to always fail with ENOSYS. Some functions are actually named | ||
7139 | something starting with __ and the normal name is an alias. */ | ||
7140 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7141 | choke me | ||
7142 | #else | ||
7143 | f = $ac_func; | ||
7144 | #endif | ||
7145 | |||
7146 | ; | ||
7147 | return 0; | ||
7148 | } | ||
7149 | _ACEOF | ||
7150 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7152 | (eval $ac_link) 2>&5 | ||
7153 | ac_status=$? | ||
7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7155 | (exit $ac_status); } && | ||
7156 | { ac_try='test -s conftest$ac_exeext' | ||
7157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7158 | (eval $ac_try) 2>&5 | ||
7159 | ac_status=$? | ||
7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7161 | (exit $ac_status); }; }; then | ||
7162 | eval "$as_ac_var=yes" | ||
7163 | else | ||
7164 | echo "$as_me: failed program was:" >&5 | ||
7165 | cat conftest.$ac_ext >&5 | ||
7166 | eval "$as_ac_var=no" | ||
7167 | fi | ||
7168 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7169 | fi | ||
7170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7171 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7172 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7173 | cat >>confdefs.h <<_ACEOF | ||
7174 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7175 | _ACEOF | ||
7176 | |||
7177 | fi | ||
7178 | done | ||
7179 | |||
7180 | |||
7181 | for ac_func in utmpname | ||
7182 | do | ||
7183 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7184 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7185 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7186 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7188 | else | ||
7189 | cat >conftest.$ac_ext <<_ACEOF | ||
7190 | #line $LINENO "configure" | ||
7191 | #include "confdefs.h" | ||
7192 | /* System header to define __stub macros and hopefully few prototypes, | ||
7193 | which can conflict with char $ac_func (); below. */ | ||
7194 | #include <assert.h> | ||
7195 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7196 | #ifdef __cplusplus | ||
7197 | extern "C" | ||
7198 | #endif | ||
7199 | /* We use char because int might match the return type of a gcc2 | ||
7200 | builtin and then its argument prototype would still apply. */ | ||
7201 | char $ac_func (); | ||
7202 | char (*f) (); | ||
7203 | |||
7204 | #ifdef F77_DUMMY_MAIN | ||
7205 | # ifdef __cplusplus | ||
7206 | extern "C" | ||
7207 | # endif | ||
7208 | int F77_DUMMY_MAIN() { return 1; } | ||
7209 | #endif | ||
7210 | int | ||
7211 | main () | ||
7212 | { | ||
7213 | /* The GNU C library defines this for functions which it implements | ||
7214 | to always fail with ENOSYS. Some functions are actually named | ||
7215 | something starting with __ and the normal name is an alias. */ | ||
7216 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7217 | choke me | ||
7218 | #else | ||
7219 | f = $ac_func; | ||
7220 | #endif | ||
7221 | |||
7222 | ; | ||
7223 | return 0; | ||
7224 | } | ||
7225 | _ACEOF | ||
7226 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7228 | (eval $ac_link) 2>&5 | ||
7229 | ac_status=$? | ||
7230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7231 | (exit $ac_status); } && | ||
7232 | { ac_try='test -s conftest$ac_exeext' | ||
7233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7234 | (eval $ac_try) 2>&5 | ||
7235 | ac_status=$? | ||
7236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7237 | (exit $ac_status); }; }; then | ||
7238 | eval "$as_ac_var=yes" | ||
7239 | else | ||
7240 | echo "$as_me: failed program was:" >&5 | ||
7241 | cat conftest.$ac_ext >&5 | ||
7242 | eval "$as_ac_var=no" | ||
7243 | fi | ||
7244 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7245 | fi | ||
7246 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7247 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7248 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7249 | cat >>confdefs.h <<_ACEOF | ||
7250 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7251 | _ACEOF | ||
7252 | |||
7253 | fi | ||
7254 | done | ||
7255 | |||
7256 | |||
7257 | |||
7258 | |||
7259 | |||
7260 | |||
7261 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
7262 | do | ||
7263 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7264 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7265 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7266 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7268 | else | ||
7269 | cat >conftest.$ac_ext <<_ACEOF | ||
7270 | #line $LINENO "configure" | ||
7271 | #include "confdefs.h" | ||
7272 | /* System header to define __stub macros and hopefully few prototypes, | ||
7273 | which can conflict with char $ac_func (); below. */ | ||
7274 | #include <assert.h> | ||
7275 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7276 | #ifdef __cplusplus | ||
7277 | extern "C" | ||
7278 | #endif | ||
7279 | /* We use char because int might match the return type of a gcc2 | ||
7280 | builtin and then its argument prototype would still apply. */ | ||
7281 | char $ac_func (); | ||
7282 | char (*f) (); | ||
7283 | |||
7284 | #ifdef F77_DUMMY_MAIN | ||
7285 | # ifdef __cplusplus | ||
7286 | extern "C" | ||
7287 | # endif | ||
7288 | int F77_DUMMY_MAIN() { return 1; } | ||
7289 | #endif | ||
7290 | int | ||
7291 | main () | ||
7292 | { | ||
7293 | /* The GNU C library defines this for functions which it implements | ||
7294 | to always fail with ENOSYS. Some functions are actually named | ||
7295 | something starting with __ and the normal name is an alias. */ | ||
7296 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7297 | choke me | ||
7298 | #else | ||
7299 | f = $ac_func; | ||
7300 | #endif | ||
7301 | |||
7302 | ; | ||
7303 | return 0; | ||
7304 | } | ||
7305 | _ACEOF | ||
7306 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7308 | (eval $ac_link) 2>&5 | ||
7309 | ac_status=$? | ||
7310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7311 | (exit $ac_status); } && | ||
7312 | { ac_try='test -s conftest$ac_exeext' | ||
7313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7314 | (eval $ac_try) 2>&5 | ||
7315 | ac_status=$? | ||
7316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7317 | (exit $ac_status); }; }; then | ||
7318 | eval "$as_ac_var=yes" | ||
7319 | else | ||
7320 | echo "$as_me: failed program was:" >&5 | ||
7321 | cat conftest.$ac_ext >&5 | ||
7322 | eval "$as_ac_var=no" | ||
7323 | fi | ||
7324 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7325 | fi | ||
7326 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7327 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7328 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7329 | cat >>confdefs.h <<_ACEOF | ||
7330 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7331 | _ACEOF | ||
7332 | |||
7333 | fi | ||
7334 | done | ||
7335 | |||
7336 | |||
7337 | |||
7338 | for ac_func in setutxent utmpxname | ||
7339 | do | ||
7340 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7341 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7342 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7343 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7345 | else | ||
7346 | cat >conftest.$ac_ext <<_ACEOF | ||
7347 | #line $LINENO "configure" | ||
7348 | #include "confdefs.h" | ||
7349 | /* System header to define __stub macros and hopefully few prototypes, | ||
7350 | which can conflict with char $ac_func (); below. */ | ||
7351 | #include <assert.h> | ||
7352 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7353 | #ifdef __cplusplus | ||
7354 | extern "C" | ||
7355 | #endif | ||
7356 | /* We use char because int might match the return type of a gcc2 | ||
7357 | builtin and then its argument prototype would still apply. */ | ||
7358 | char $ac_func (); | ||
7359 | char (*f) (); | ||
7360 | |||
7361 | #ifdef F77_DUMMY_MAIN | ||
7362 | # ifdef __cplusplus | ||
7363 | extern "C" | ||
7364 | # endif | ||
7365 | int F77_DUMMY_MAIN() { return 1; } | ||
7366 | #endif | ||
7367 | int | ||
7368 | main () | ||
7369 | { | ||
7370 | /* The GNU C library defines this for functions which it implements | ||
7371 | to always fail with ENOSYS. Some functions are actually named | ||
7372 | something starting with __ and the normal name is an alias. */ | ||
7373 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7374 | choke me | ||
7375 | #else | ||
7376 | f = $ac_func; | ||
7377 | #endif | ||
7378 | |||
7379 | ; | ||
7380 | return 0; | ||
7381 | } | ||
7382 | _ACEOF | ||
7383 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7385 | (eval $ac_link) 2>&5 | ||
7386 | ac_status=$? | ||
7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7388 | (exit $ac_status); } && | ||
7389 | { ac_try='test -s conftest$ac_exeext' | ||
7390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7391 | (eval $ac_try) 2>&5 | ||
7392 | ac_status=$? | ||
7393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7394 | (exit $ac_status); }; }; then | ||
7395 | eval "$as_ac_var=yes" | ||
7396 | else | ||
7397 | echo "$as_me: failed program was:" >&5 | ||
7398 | cat conftest.$ac_ext >&5 | ||
7399 | eval "$as_ac_var=no" | ||
7400 | fi | ||
7401 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7402 | fi | ||
7403 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7404 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7405 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7406 | cat >>confdefs.h <<_ACEOF | ||
7407 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7408 | _ACEOF | ||
7409 | |||
7410 | fi | ||
7411 | done | ||
7412 | |||
7413 | |||
7414 | echo "$as_me:$LINENO: checking for daemon" >&5 | ||
7415 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
7416 | if test "${ac_cv_func_daemon+set}" = set; then | ||
7417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7418 | else | ||
7419 | cat >conftest.$ac_ext <<_ACEOF | ||
7420 | #line $LINENO "configure" | ||
7421 | #include "confdefs.h" | ||
7422 | /* System header to define __stub macros and hopefully few prototypes, | ||
7423 | which can conflict with char daemon (); below. */ | ||
7424 | #include <assert.h> | ||
7425 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7426 | #ifdef __cplusplus | ||
7427 | extern "C" | ||
7428 | #endif | ||
7429 | /* We use char because int might match the return type of a gcc2 | ||
7430 | builtin and then its argument prototype would still apply. */ | ||
7431 | char daemon (); | ||
7432 | char (*f) (); | ||
7433 | |||
7434 | #ifdef F77_DUMMY_MAIN | ||
7435 | # ifdef __cplusplus | ||
7436 | extern "C" | ||
7437 | # endif | ||
7438 | int F77_DUMMY_MAIN() { return 1; } | ||
7439 | #endif | ||
7440 | int | ||
7441 | main () | ||
7442 | { | ||
7443 | /* The GNU C library defines this for functions which it implements | ||
7444 | to always fail with ENOSYS. Some functions are actually named | ||
7445 | something starting with __ and the normal name is an alias. */ | ||
7446 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
7447 | choke me | ||
7448 | #else | ||
7449 | f = daemon; | ||
7450 | #endif | ||
7451 | |||
7452 | ; | ||
7453 | return 0; | ||
7454 | } | ||
7455 | _ACEOF | ||
7456 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7458 | (eval $ac_link) 2>&5 | ||
7459 | ac_status=$? | ||
7460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7461 | (exit $ac_status); } && | ||
7462 | { ac_try='test -s conftest$ac_exeext' | ||
7463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7464 | (eval $ac_try) 2>&5 | ||
7465 | ac_status=$? | ||
7466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7467 | (exit $ac_status); }; }; then | ||
7468 | ac_cv_func_daemon=yes | ||
7469 | else | ||
7470 | echo "$as_me: failed program was:" >&5 | ||
7471 | cat conftest.$ac_ext >&5 | ||
7472 | ac_cv_func_daemon=no | ||
7473 | fi | ||
7474 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7475 | fi | ||
7476 | echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
7477 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
7478 | if test $ac_cv_func_daemon = yes; then | ||
7479 | cat >>confdefs.h <<\_ACEOF | ||
7480 | #define HAVE_DAEMON 1 | ||
7481 | _ACEOF | ||
7482 | |||
7483 | else | ||
7484 | echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
7485 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
7486 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7488 | else | ||
7489 | ac_check_lib_save_LIBS=$LIBS | ||
7490 | LIBS="-lbsd $LIBS" | ||
7491 | cat >conftest.$ac_ext <<_ACEOF | ||
7492 | #line $LINENO "configure" | ||
7493 | #include "confdefs.h" | ||
7494 | |||
7495 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7496 | #ifdef __cplusplus | ||
7497 | extern "C" | ||
7498 | #endif | ||
7499 | /* We use char because int might match the return type of a gcc2 | ||
7500 | builtin and then its argument prototype would still apply. */ | ||
7501 | char daemon (); | ||
7502 | #ifdef F77_DUMMY_MAIN | ||
7503 | # ifdef __cplusplus | ||
7504 | extern "C" | ||
7505 | # endif | ||
7506 | int F77_DUMMY_MAIN() { return 1; } | ||
7507 | #endif | ||
7508 | int | ||
7509 | main () | ||
7510 | { | ||
7511 | daemon (); | ||
7512 | ; | ||
7513 | return 0; | ||
7514 | } | ||
7515 | _ACEOF | ||
7516 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7518 | (eval $ac_link) 2>&5 | ||
7519 | ac_status=$? | ||
7520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7521 | (exit $ac_status); } && | ||
7522 | { ac_try='test -s conftest$ac_exeext' | ||
7523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7524 | (eval $ac_try) 2>&5 | ||
7525 | ac_status=$? | ||
7526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7527 | (exit $ac_status); }; }; then | ||
7528 | ac_cv_lib_bsd_daemon=yes | ||
7529 | else | ||
7530 | echo "$as_me: failed program was:" >&5 | ||
7531 | cat conftest.$ac_ext >&5 | ||
7532 | ac_cv_lib_bsd_daemon=no | ||
7533 | fi | ||
7534 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7535 | LIBS=$ac_check_lib_save_LIBS | ||
7536 | fi | ||
7537 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
7538 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
7539 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
7540 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
7541 | #define HAVE_DAEMON 1 | ||
7542 | _ACEOF | ||
7543 | |||
7544 | fi | ||
7545 | |||
7546 | |||
7547 | fi | ||
7548 | |||
7549 | |||
7550 | echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
7551 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
7552 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
7553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7554 | else | ||
7555 | cat >conftest.$ac_ext <<_ACEOF | ||
7556 | #line $LINENO "configure" | ||
7557 | #include "confdefs.h" | ||
7558 | /* System header to define __stub macros and hopefully few prototypes, | ||
7559 | which can conflict with char getpagesize (); below. */ | ||
7560 | #include <assert.h> | ||
7561 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7562 | #ifdef __cplusplus | ||
7563 | extern "C" | ||
7564 | #endif | ||
7565 | /* We use char because int might match the return type of a gcc2 | ||
7566 | builtin and then its argument prototype would still apply. */ | ||
7567 | char getpagesize (); | ||
7568 | char (*f) (); | ||
7569 | |||
7570 | #ifdef F77_DUMMY_MAIN | ||
7571 | # ifdef __cplusplus | ||
7572 | extern "C" | ||
7573 | # endif | ||
7574 | int F77_DUMMY_MAIN() { return 1; } | ||
7575 | #endif | ||
7576 | int | ||
7577 | main () | ||
7578 | { | ||
7579 | /* The GNU C library defines this for functions which it implements | ||
7580 | to always fail with ENOSYS. Some functions are actually named | ||
7581 | something starting with __ and the normal name is an alias. */ | ||
7582 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
7583 | choke me | ||
7584 | #else | ||
7585 | f = getpagesize; | ||
7586 | #endif | ||
7587 | |||
7588 | ; | ||
7589 | return 0; | ||
7590 | } | ||
7591 | _ACEOF | ||
7592 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7594 | (eval $ac_link) 2>&5 | ||
7595 | ac_status=$? | ||
7596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7597 | (exit $ac_status); } && | ||
7598 | { ac_try='test -s conftest$ac_exeext' | ||
7599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7600 | (eval $ac_try) 2>&5 | ||
7601 | ac_status=$? | ||
7602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7603 | (exit $ac_status); }; }; then | ||
7604 | ac_cv_func_getpagesize=yes | ||
7605 | else | ||
7606 | echo "$as_me: failed program was:" >&5 | ||
7607 | cat conftest.$ac_ext >&5 | ||
7608 | ac_cv_func_getpagesize=no | ||
7609 | fi | ||
7610 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7611 | fi | ||
7612 | echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
7613 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
7614 | if test $ac_cv_func_getpagesize = yes; then | ||
7615 | cat >>confdefs.h <<\_ACEOF | ||
7616 | #define HAVE_GETPAGESIZE 1 | ||
7617 | _ACEOF | ||
7618 | |||
7619 | else | ||
7620 | echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
7621 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
7622 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
7623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7624 | else | ||
7625 | ac_check_lib_save_LIBS=$LIBS | ||
7626 | LIBS="-lucb $LIBS" | ||
7627 | cat >conftest.$ac_ext <<_ACEOF | ||
7628 | #line $LINENO "configure" | ||
7629 | #include "confdefs.h" | ||
7630 | |||
7631 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7632 | #ifdef __cplusplus | ||
7633 | extern "C" | ||
7634 | #endif | ||
7635 | /* We use char because int might match the return type of a gcc2 | ||
7636 | builtin and then its argument prototype would still apply. */ | ||
7637 | char getpagesize (); | ||
7638 | #ifdef F77_DUMMY_MAIN | ||
7639 | # ifdef __cplusplus | ||
7640 | extern "C" | ||
7641 | # endif | ||
7642 | int F77_DUMMY_MAIN() { return 1; } | ||
7643 | #endif | ||
7644 | int | ||
7645 | main () | ||
7646 | { | ||
7647 | getpagesize (); | ||
7648 | ; | ||
7649 | return 0; | ||
7650 | } | ||
7651 | _ACEOF | ||
7652 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7654 | (eval $ac_link) 2>&5 | ||
7655 | ac_status=$? | ||
7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7657 | (exit $ac_status); } && | ||
7658 | { ac_try='test -s conftest$ac_exeext' | ||
7659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7660 | (eval $ac_try) 2>&5 | ||
7661 | ac_status=$? | ||
7662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7663 | (exit $ac_status); }; }; then | ||
7664 | ac_cv_lib_ucb_getpagesize=yes | ||
7665 | else | ||
7666 | echo "$as_me: failed program was:" >&5 | ||
7667 | cat conftest.$ac_ext >&5 | ||
7668 | ac_cv_lib_ucb_getpagesize=no | ||
7669 | fi | ||
7670 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7671 | LIBS=$ac_check_lib_save_LIBS | ||
7672 | fi | ||
7673 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
7674 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
7675 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
7676 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
7677 | #define HAVE_GETPAGESIZE 1 | ||
7678 | _ACEOF | ||
7679 | |||
7680 | fi | ||
7681 | |||
7682 | |||
7683 | fi | ||
7684 | |||
7685 | |||
7686 | # Check for broken snprintf | ||
7687 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
7688 | echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
7689 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
7690 | if test "$cross_compiling" = yes; then | ||
7691 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
7692 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7693 | { (exit 1); exit 1; }; } | ||
7694 | else | ||
7695 | cat >conftest.$ac_ext <<_ACEOF | ||
7696 | #line $LINENO "configure" | ||
7697 | #include "confdefs.h" | ||
7698 | |||
7699 | #include <stdio.h> | ||
7700 | int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');} | ||
7701 | |||
7702 | _ACEOF | ||
7703 | rm -f conftest$ac_exeext | ||
7704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7705 | (eval $ac_link) 2>&5 | ||
7706 | ac_status=$? | ||
7707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7710 | (eval $ac_try) 2>&5 | ||
7711 | ac_status=$? | ||
7712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7713 | (exit $ac_status); }; }; then | ||
7714 | echo "$as_me:$LINENO: result: yes" >&5 | ||
7715 | echo "${ECHO_T}yes" >&6 | ||
7716 | else | ||
7717 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7718 | echo "$as_me: failed program was:" >&5 | ||
7719 | cat conftest.$ac_ext >&5 | ||
7720 | ( exit $ac_status ) | ||
7721 | |||
7722 | echo "$as_me:$LINENO: result: no" >&5 | ||
7723 | echo "${ECHO_T}no" >&6 | ||
7724 | cat >>confdefs.h <<\_ACEOF | ||
7725 | #define BROKEN_SNPRINTF 1 | ||
7726 | _ACEOF | ||
7727 | |||
7728 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
7729 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
7730 | |||
7731 | |||
7732 | fi | ||
7733 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7734 | fi | ||
7735 | fi | ||
7736 | |||
7737 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
7738 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | ||
7739 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
7740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7741 | else | ||
7742 | # Use it with a single arg. | ||
7743 | cat >conftest.$ac_ext <<_ACEOF | ||
7744 | #line $LINENO "configure" | ||
7745 | #include "confdefs.h" | ||
7746 | $ac_includes_default | ||
7747 | #ifdef F77_DUMMY_MAIN | ||
7748 | # ifdef __cplusplus | ||
7749 | extern "C" | ||
7750 | # endif | ||
7751 | int F77_DUMMY_MAIN() { return 1; } | ||
7752 | #endif | ||
7753 | int | ||
7754 | main () | ||
7755 | { | ||
7756 | getpgrp (0); | ||
7757 | ; | ||
7758 | return 0; | ||
7759 | } | ||
7760 | _ACEOF | ||
7761 | rm -f conftest.$ac_objext | ||
7762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7763 | (eval $ac_compile) 2>&5 | ||
7764 | ac_status=$? | ||
7765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7766 | (exit $ac_status); } && | ||
7767 | { ac_try='test -s conftest.$ac_objext' | ||
7768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7769 | (eval $ac_try) 2>&5 | ||
7770 | ac_status=$? | ||
7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7772 | (exit $ac_status); }; }; then | ||
7773 | ac_cv_func_getpgrp_void=no | ||
7774 | else | ||
7775 | echo "$as_me: failed program was:" >&5 | ||
7776 | cat conftest.$ac_ext >&5 | ||
7777 | ac_cv_func_getpgrp_void=yes | ||
7778 | fi | ||
7779 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7780 | |||
7781 | fi | ||
7782 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
7783 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
7784 | if test $ac_cv_func_getpgrp_void = yes; then | ||
7785 | |||
7786 | cat >>confdefs.h <<\_ACEOF | ||
7787 | #define GETPGRP_VOID 1 | ||
7788 | _ACEOF | ||
7789 | |||
7790 | fi | ||
7791 | |||
7792 | |||
7793 | # Check for PAM libs | ||
7794 | PAM_MSG="no" | ||
7795 | |||
7796 | # Check whether --with-pam or --without-pam was given. | ||
7797 | if test "${with_pam+set}" = set; then | ||
7798 | withval="$with_pam" | ||
7799 | |||
7800 | if test "x$withval" != "xno" ; then | ||
7801 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then | ||
7802 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
7803 | echo "$as_me: error: PAM headers not found" >&2;} | ||
7804 | { (exit 1); exit 1; }; } | ||
7805 | fi | ||
7806 | |||
7807 | |||
7808 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
7809 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
7810 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
7811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7812 | else | ||
7813 | ac_check_lib_save_LIBS=$LIBS | ||
7814 | LIBS="-ldl $LIBS" | ||
7815 | cat >conftest.$ac_ext <<_ACEOF | ||
7816 | #line $LINENO "configure" | ||
7817 | #include "confdefs.h" | ||
7818 | |||
7819 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7820 | #ifdef __cplusplus | ||
7821 | extern "C" | ||
7822 | #endif | ||
7823 | /* We use char because int might match the return type of a gcc2 | ||
7824 | builtin and then its argument prototype would still apply. */ | ||
7825 | char dlopen (); | ||
7826 | #ifdef F77_DUMMY_MAIN | ||
7827 | # ifdef __cplusplus | ||
7828 | extern "C" | ||
7829 | # endif | ||
7830 | int F77_DUMMY_MAIN() { return 1; } | ||
7831 | #endif | ||
7832 | int | ||
7833 | main () | ||
7834 | { | ||
7835 | dlopen (); | ||
7836 | ; | ||
7837 | return 0; | ||
7838 | } | ||
7839 | _ACEOF | ||
7840 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7842 | (eval $ac_link) 2>&5 | ||
7843 | ac_status=$? | ||
7844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7845 | (exit $ac_status); } && | ||
7846 | { ac_try='test -s conftest$ac_exeext' | ||
7847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7848 | (eval $ac_try) 2>&5 | ||
7849 | ac_status=$? | ||
7850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7851 | (exit $ac_status); }; }; then | ||
7852 | ac_cv_lib_dl_dlopen=yes | ||
7853 | else | ||
7854 | echo "$as_me: failed program was:" >&5 | ||
7855 | cat conftest.$ac_ext >&5 | ||
7856 | ac_cv_lib_dl_dlopen=no | ||
7857 | fi | ||
7858 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7859 | LIBS=$ac_check_lib_save_LIBS | ||
7860 | fi | ||
7861 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
7862 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
7863 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
7864 | cat >>confdefs.h <<_ACEOF | ||
7865 | #define HAVE_LIBDL 1 | ||
7866 | _ACEOF | ||
7867 | |||
7868 | LIBS="-ldl $LIBS" | ||
7869 | |||
7870 | fi | ||
7871 | |||
7872 | |||
7873 | echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
7874 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
7875 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
7876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7877 | else | ||
7878 | ac_check_lib_save_LIBS=$LIBS | ||
7879 | LIBS="-lpam $LIBS" | ||
7880 | cat >conftest.$ac_ext <<_ACEOF | ||
7881 | #line $LINENO "configure" | ||
7882 | #include "confdefs.h" | ||
7883 | |||
7884 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7885 | #ifdef __cplusplus | ||
7886 | extern "C" | ||
7887 | #endif | ||
7888 | /* We use char because int might match the return type of a gcc2 | ||
7889 | builtin and then its argument prototype would still apply. */ | ||
7890 | char pam_set_item (); | ||
7891 | #ifdef F77_DUMMY_MAIN | ||
7892 | # ifdef __cplusplus | ||
7893 | extern "C" | ||
7894 | # endif | ||
7895 | int F77_DUMMY_MAIN() { return 1; } | ||
7896 | #endif | ||
7897 | int | ||
7898 | main () | ||
7899 | { | ||
7900 | pam_set_item (); | ||
7901 | ; | ||
7902 | return 0; | ||
7903 | } | ||
7904 | _ACEOF | ||
7905 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7907 | (eval $ac_link) 2>&5 | ||
7908 | ac_status=$? | ||
7909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7910 | (exit $ac_status); } && | ||
7911 | { ac_try='test -s conftest$ac_exeext' | ||
7912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7913 | (eval $ac_try) 2>&5 | ||
7914 | ac_status=$? | ||
7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7916 | (exit $ac_status); }; }; then | ||
7917 | ac_cv_lib_pam_pam_set_item=yes | ||
7918 | else | ||
7919 | echo "$as_me: failed program was:" >&5 | ||
7920 | cat conftest.$ac_ext >&5 | ||
7921 | ac_cv_lib_pam_pam_set_item=no | ||
7922 | fi | ||
7923 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7924 | LIBS=$ac_check_lib_save_LIBS | ||
7925 | fi | ||
7926 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
7927 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
7928 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
7929 | cat >>confdefs.h <<_ACEOF | ||
7930 | #define HAVE_LIBPAM 1 | ||
7931 | _ACEOF | ||
7932 | |||
7933 | LIBS="-lpam $LIBS" | ||
7934 | |||
7935 | else | ||
7936 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
7937 | echo "$as_me: error: *** libpam missing" >&2;} | ||
7938 | { (exit 1); exit 1; }; } | ||
7939 | fi | ||
7940 | |||
7941 | |||
7942 | for ac_func in pam_getenvlist | ||
7943 | do | ||
7944 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7945 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7946 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7947 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7949 | else | ||
7950 | cat >conftest.$ac_ext <<_ACEOF | ||
7951 | #line $LINENO "configure" | ||
7952 | #include "confdefs.h" | ||
7953 | /* System header to define __stub macros and hopefully few prototypes, | ||
7954 | which can conflict with char $ac_func (); below. */ | ||
7955 | #include <assert.h> | ||
7956 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7957 | #ifdef __cplusplus | ||
7958 | extern "C" | ||
7959 | #endif | ||
7960 | /* We use char because int might match the return type of a gcc2 | ||
7961 | builtin and then its argument prototype would still apply. */ | ||
7962 | char $ac_func (); | ||
7963 | char (*f) (); | ||
7964 | |||
7965 | #ifdef F77_DUMMY_MAIN | ||
7966 | # ifdef __cplusplus | ||
7967 | extern "C" | ||
7968 | # endif | ||
7969 | int F77_DUMMY_MAIN() { return 1; } | ||
7970 | #endif | ||
7971 | int | ||
7972 | main () | ||
7973 | { | ||
7974 | /* The GNU C library defines this for functions which it implements | ||
7975 | to always fail with ENOSYS. Some functions are actually named | ||
7976 | something starting with __ and the normal name is an alias. */ | ||
7977 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7978 | choke me | ||
7979 | #else | ||
7980 | f = $ac_func; | ||
7981 | #endif | ||
7982 | |||
7983 | ; | ||
7984 | return 0; | ||
7985 | } | ||
7986 | _ACEOF | ||
7987 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7989 | (eval $ac_link) 2>&5 | ||
7990 | ac_status=$? | ||
7991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7992 | (exit $ac_status); } && | ||
7993 | { ac_try='test -s conftest$ac_exeext' | ||
7994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7995 | (eval $ac_try) 2>&5 | ||
7996 | ac_status=$? | ||
7997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7998 | (exit $ac_status); }; }; then | ||
7999 | eval "$as_ac_var=yes" | ||
8000 | else | ||
8001 | echo "$as_me: failed program was:" >&5 | ||
8002 | cat conftest.$ac_ext >&5 | ||
8003 | eval "$as_ac_var=no" | ||
8004 | fi | ||
8005 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8006 | fi | ||
8007 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8008 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8009 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8010 | cat >>confdefs.h <<_ACEOF | ||
8011 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8012 | _ACEOF | ||
8013 | |||
8014 | fi | ||
8015 | done | ||
8016 | |||
8017 | |||
8018 | disable_shadow=yes | ||
8019 | PAM_MSG="yes" | ||
8020 | |||
8021 | cat >>confdefs.h <<\_ACEOF | ||
8022 | #define USE_PAM 1 | ||
8023 | _ACEOF | ||
8024 | |||
8025 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8026 | LIBPAM="-lpam -ldl" | ||
8027 | else | ||
8028 | LIBPAM="-lpam" | ||
8029 | fi | ||
8030 | |||
8031 | fi | ||
8032 | |||
8033 | |||
8034 | fi; | ||
8035 | |||
8036 | # Check for older PAM | ||
8037 | if test "x$PAM_MSG" = "xyes" ; then | ||
8038 | # Check PAM strerror arguments (old PAM) | ||
8039 | echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
8040 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
8041 | cat >conftest.$ac_ext <<_ACEOF | ||
8042 | #line $LINENO "configure" | ||
8043 | #include "confdefs.h" | ||
8044 | |||
8045 | #include <stdlib.h> | ||
8046 | #include <security/pam_appl.h> | ||
8047 | |||
8048 | #ifdef F77_DUMMY_MAIN | ||
8049 | # ifdef __cplusplus | ||
8050 | extern "C" | ||
8051 | # endif | ||
8052 | int F77_DUMMY_MAIN() { return 1; } | ||
8053 | #endif | ||
8054 | int | ||
8055 | main () | ||
8056 | { | ||
8057 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
8058 | ; | ||
8059 | return 0; | ||
8060 | } | ||
8061 | _ACEOF | ||
8062 | rm -f conftest.$ac_objext | ||
8063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8064 | (eval $ac_compile) 2>&5 | ||
8065 | ac_status=$? | ||
8066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8067 | (exit $ac_status); } && | ||
8068 | { ac_try='test -s conftest.$ac_objext' | ||
8069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8070 | (eval $ac_try) 2>&5 | ||
8071 | ac_status=$? | ||
8072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8073 | (exit $ac_status); }; }; then | ||
8074 | echo "$as_me:$LINENO: result: no" >&5 | ||
8075 | echo "${ECHO_T}no" >&6 | ||
8076 | else | ||
8077 | echo "$as_me: failed program was:" >&5 | ||
8078 | cat conftest.$ac_ext >&5 | ||
8079 | |||
8080 | cat >>confdefs.h <<\_ACEOF | ||
8081 | #define HAVE_OLD_PAM 1 | ||
8082 | _ACEOF | ||
8083 | |||
8084 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8085 | echo "${ECHO_T}yes" >&6 | ||
8086 | PAM_MSG="yes (old library)" | ||
8087 | |||
8088 | |||
8089 | fi | ||
8090 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8091 | fi | ||
8092 | |||
8093 | # Search for OpenSSL | ||
8094 | saved_CPPFLAGS="$CPPFLAGS" | ||
8095 | saved_LDFLAGS="$LDFLAGS" | ||
8096 | |||
8097 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
8098 | if test "${with_ssl_dir+set}" = set; then | ||
8099 | withval="$with_ssl_dir" | ||
8100 | |||
8101 | if test "x$withval" != "xno" ; then | ||
8102 | if test -d "$withval/lib"; then | ||
8103 | if test -n "${need_dash_r}"; then | ||
8104 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8105 | else | ||
8106 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8107 | fi | ||
8108 | else | ||
8109 | if test -n "${need_dash_r}"; then | ||
8110 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8111 | else | ||
8112 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8113 | fi | ||
8114 | fi | ||
8115 | if test -d "$withval/include"; then | ||
8116 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8117 | else | ||
8118 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8119 | fi | ||
8120 | fi | ||
8121 | |||
8122 | |||
8123 | fi; | ||
8124 | LIBS="$LIBS -lcrypto" | ||
8125 | cat >conftest.$ac_ext <<_ACEOF | ||
8126 | #line $LINENO "configure" | ||
8127 | #include "confdefs.h" | ||
8128 | |||
8129 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8130 | #ifdef __cplusplus | ||
8131 | extern "C" | ||
8132 | #endif | ||
8133 | /* We use char because int might match the return type of a gcc2 | ||
8134 | builtin and then its argument prototype would still apply. */ | ||
8135 | char RAND_add (); | ||
8136 | #ifdef F77_DUMMY_MAIN | ||
8137 | # ifdef __cplusplus | ||
8138 | extern "C" | ||
8139 | # endif | ||
8140 | int F77_DUMMY_MAIN() { return 1; } | ||
8141 | #endif | ||
8142 | int | ||
8143 | main () | ||
8144 | { | ||
8145 | RAND_add (); | ||
8146 | ; | ||
8147 | return 0; | ||
8148 | } | ||
8149 | _ACEOF | ||
8150 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8152 | (eval $ac_link) 2>&5 | ||
8153 | ac_status=$? | ||
8154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8155 | (exit $ac_status); } && | ||
8156 | { ac_try='test -s conftest$ac_exeext' | ||
8157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8158 | (eval $ac_try) 2>&5 | ||
8159 | ac_status=$? | ||
8160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8161 | (exit $ac_status); }; }; then | ||
8162 | cat >>confdefs.h <<\_ACEOF | ||
8163 | #define HAVE_OPENSSL 1 | ||
8164 | _ACEOF | ||
8165 | |||
8166 | else | ||
8167 | echo "$as_me: failed program was:" >&5 | ||
8168 | cat conftest.$ac_ext >&5 | ||
8169 | |||
8170 | if test -n "${need_dash_r}"; then | ||
8171 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8172 | else | ||
8173 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8174 | fi | ||
8175 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
8176 | cat >conftest.$ac_ext <<_ACEOF | ||
8177 | #line $LINENO "configure" | ||
8178 | #include "confdefs.h" | ||
8179 | |||
8180 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8181 | #ifdef __cplusplus | ||
8182 | extern "C" | ||
8183 | #endif | ||
8184 | /* We use char because int might match the return type of a gcc2 | ||
8185 | builtin and then its argument prototype would still apply. */ | ||
8186 | char RAND_add (); | ||
8187 | #ifdef F77_DUMMY_MAIN | ||
8188 | # ifdef __cplusplus | ||
8189 | extern "C" | ||
8190 | # endif | ||
8191 | int F77_DUMMY_MAIN() { return 1; } | ||
8192 | #endif | ||
8193 | int | ||
8194 | main () | ||
8195 | { | ||
8196 | RAND_add (); | ||
8197 | ; | ||
8198 | return 0; | ||
8199 | } | ||
8200 | _ACEOF | ||
8201 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8203 | (eval $ac_link) 2>&5 | ||
8204 | ac_status=$? | ||
8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8206 | (exit $ac_status); } && | ||
8207 | { ac_try='test -s conftest$ac_exeext' | ||
8208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8209 | (eval $ac_try) 2>&5 | ||
8210 | ac_status=$? | ||
8211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8212 | (exit $ac_status); }; }; then | ||
8213 | cat >>confdefs.h <<\_ACEOF | ||
8214 | #define HAVE_OPENSSL 1 | ||
8215 | _ACEOF | ||
8216 | |||
8217 | else | ||
8218 | echo "$as_me: failed program was:" >&5 | ||
8219 | cat conftest.$ac_ext >&5 | ||
8220 | |||
8221 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
8222 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
8223 | { (exit 1); exit 1; }; } | ||
8224 | |||
8225 | |||
8226 | fi | ||
8227 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8228 | |||
8229 | |||
8230 | fi | ||
8231 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8232 | |||
8233 | |||
8234 | # Sanity check OpenSSL headers | ||
8235 | echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
8236 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
8237 | if test "$cross_compiling" = yes; then | ||
8238 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8239 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8240 | { (exit 1); exit 1; }; } | ||
8241 | else | ||
8242 | cat >conftest.$ac_ext <<_ACEOF | ||
8243 | #line $LINENO "configure" | ||
8244 | #include "confdefs.h" | ||
8245 | |||
8246 | #include <string.h> | ||
8247 | #include <openssl/opensslv.h> | ||
8248 | int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
8249 | |||
8250 | _ACEOF | ||
8251 | rm -f conftest$ac_exeext | ||
8252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8253 | (eval $ac_link) 2>&5 | ||
8254 | ac_status=$? | ||
8255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8256 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8258 | (eval $ac_try) 2>&5 | ||
8259 | ac_status=$? | ||
8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8261 | (exit $ac_status); }; }; then | ||
8262 | |||
8263 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8264 | echo "${ECHO_T}yes" >&6 | ||
8265 | |||
8266 | else | ||
8267 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8268 | echo "$as_me: failed program was:" >&5 | ||
8269 | cat conftest.$ac_ext >&5 | ||
8270 | ( exit $ac_status ) | ||
8271 | |||
8272 | echo "$as_me:$LINENO: result: no" >&5 | ||
8273 | echo "${ECHO_T}no" >&6 | ||
8274 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5 | ||
8275 | echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;} | ||
8276 | { (exit 1); exit 1; }; } | ||
8277 | |||
8278 | |||
8279 | fi | ||
8280 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8281 | fi | ||
8282 | |||
8283 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
8284 | # version in OpenSSL. Skip this for PAM | ||
8285 | if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then | ||
8286 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
8287 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
8288 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
8289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8290 | else | ||
8291 | ac_check_lib_save_LIBS=$LIBS | ||
8292 | LIBS="-lcrypt $LIBS" | ||
8293 | cat >conftest.$ac_ext <<_ACEOF | ||
8294 | #line $LINENO "configure" | ||
8295 | #include "confdefs.h" | ||
8296 | |||
8297 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8298 | #ifdef __cplusplus | ||
8299 | extern "C" | ||
8300 | #endif | ||
8301 | /* We use char because int might match the return type of a gcc2 | ||
8302 | builtin and then its argument prototype would still apply. */ | ||
8303 | char crypt (); | ||
8304 | #ifdef F77_DUMMY_MAIN | ||
8305 | # ifdef __cplusplus | ||
8306 | extern "C" | ||
8307 | # endif | ||
8308 | int F77_DUMMY_MAIN() { return 1; } | ||
8309 | #endif | ||
8310 | int | ||
8311 | main () | ||
8312 | { | ||
8313 | crypt (); | ||
8314 | ; | ||
8315 | return 0; | ||
8316 | } | ||
8317 | _ACEOF | ||
8318 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8320 | (eval $ac_link) 2>&5 | ||
8321 | ac_status=$? | ||
8322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8323 | (exit $ac_status); } && | ||
8324 | { ac_try='test -s conftest$ac_exeext' | ||
8325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8326 | (eval $ac_try) 2>&5 | ||
8327 | ac_status=$? | ||
8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8329 | (exit $ac_status); }; }; then | ||
8330 | ac_cv_lib_crypt_crypt=yes | ||
8331 | else | ||
8332 | echo "$as_me: failed program was:" >&5 | ||
8333 | cat conftest.$ac_ext >&5 | ||
8334 | ac_cv_lib_crypt_crypt=no | ||
8335 | fi | ||
8336 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8337 | LIBS=$ac_check_lib_save_LIBS | ||
8338 | fi | ||
8339 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
8340 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
8341 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
8342 | LIBS="$LIBS -lcrypt" | ||
8343 | fi | ||
8344 | |||
8345 | fi | ||
8346 | |||
8347 | |||
8348 | ### Configure cryptographic random number support | ||
8349 | |||
8350 | # Check wheter OpenSSL seeds itself | ||
8351 | echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
8352 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
8353 | if test "$cross_compiling" = yes; then | ||
8354 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8355 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8356 | { (exit 1); exit 1; }; } | ||
8357 | else | ||
8358 | cat >conftest.$ac_ext <<_ACEOF | ||
8359 | #line $LINENO "configure" | ||
8360 | #include "confdefs.h" | ||
8361 | |||
8362 | #include <string.h> | ||
8363 | #include <openssl/rand.h> | ||
8364 | int main(void) { return(RAND_status() == 1 ? 0 : 1); } | ||
8365 | |||
8366 | _ACEOF | ||
8367 | rm -f conftest$ac_exeext | ||
8368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8369 | (eval $ac_link) 2>&5 | ||
8370 | ac_status=$? | ||
8371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8372 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8374 | (eval $ac_try) 2>&5 | ||
8375 | ac_status=$? | ||
8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8377 | (exit $ac_status); }; }; then | ||
8378 | |||
8379 | OPENSSL_SEEDS_ITSELF=yes | ||
8380 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8381 | echo "${ECHO_T}yes" >&6 | ||
8382 | |||
8383 | else | ||
8384 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8385 | echo "$as_me: failed program was:" >&5 | ||
8386 | cat conftest.$ac_ext >&5 | ||
8387 | ( exit $ac_status ) | ||
8388 | |||
8389 | echo "$as_me:$LINENO: result: no" >&5 | ||
8390 | echo "${ECHO_T}no" >&6 | ||
8391 | # Default to use of the rand helper if OpenSSL doesn't | ||
8392 | # seed itself | ||
8393 | USE_RAND_HELPER=yes | ||
8394 | |||
8395 | |||
8396 | fi | ||
8397 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8398 | fi | ||
8399 | |||
8400 | |||
8401 | # Do we want to force the use of the rand helper? | ||
8402 | |||
8403 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
8404 | if test "${with_rand_helper+set}" = set; then | ||
8405 | withval="$with_rand_helper" | ||
8406 | |||
8407 | if test "x$withval" = "xno" ; then | ||
8408 | # Force use of OpenSSL's internal RNG, even if | ||
8409 | # the previous test showed it to be unseeded. | ||
8410 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
8411 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
8412 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
8413 | OPENSSL_SEEDS_ITSELF=yes | ||
8414 | USE_RAND_HELPER="" | ||
8415 | fi | ||
8416 | else | ||
8417 | USE_RAND_HELPER=yes | ||
8418 | fi | ||
8419 | |||
8420 | fi; | ||
8421 | |||
8422 | # Which randomness source do we use? | ||
8423 | if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then | ||
8424 | # OpenSSL only | ||
8425 | cat >>confdefs.h <<\_ACEOF | ||
8426 | #define OPENSSL_PRNG_ONLY 1 | ||
8427 | _ACEOF | ||
8428 | |||
8429 | RAND_MSG="OpenSSL internal ONLY" | ||
8430 | INSTALL_SSH_RAND_HELPER="" | ||
8431 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
8432 | # install rand helper | ||
8433 | RAND_MSG="ssh-rand-helper" | ||
8434 | INSTALL_SSH_RAND_HELPER="yes" | ||
8435 | fi | ||
8436 | |||
8437 | |||
8438 | ### Configuration of ssh-rand-helper | ||
8439 | |||
8440 | # PRNGD TCP socket | ||
8441 | |||
8442 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
8443 | if test "${with_prngd_port+set}" = set; then | ||
8444 | withval="$with_prngd_port" | ||
8445 | |||
8446 | case "$withval" in | ||
8447 | no) | ||
8448 | withval="" | ||
8449 | ;; | ||
8450 | [0-9]*) | ||
8451 | ;; | ||
8452 | *) | ||
8453 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
8454 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
8455 | { (exit 1); exit 1; }; } | ||
8456 | ;; | ||
8457 | esac | ||
8458 | if test ! -z "$withval" ; then | ||
8459 | PRNGD_PORT="$withval" | ||
8460 | cat >>confdefs.h <<_ACEOF | ||
8461 | #define PRNGD_PORT $PRNGD_PORT | ||
8462 | _ACEOF | ||
8463 | |||
8464 | fi | ||
8465 | |||
8466 | |||
8467 | fi; | ||
8468 | |||
8469 | # PRNGD Unix domain socket | ||
8470 | |||
8471 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
8472 | if test "${with_prngd_socket+set}" = set; then | ||
8473 | withval="$with_prngd_socket" | ||
8474 | |||
8475 | case "$withval" in | ||
8476 | yes) | ||
8477 | withval="/var/run/egd-pool" | ||
8478 | ;; | ||
8479 | no) | ||
8480 | withval="" | ||
8481 | ;; | ||
8482 | /*) | ||
8483 | ;; | ||
8484 | *) | ||
8485 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
8486 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
8487 | { (exit 1); exit 1; }; } | ||
8488 | ;; | ||
8489 | esac | ||
8490 | |||
8491 | if test ! -z "$withval" ; then | ||
8492 | if test ! -z "$PRNGD_PORT" ; then | ||
8493 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
8494 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
8495 | { (exit 1); exit 1; }; } | ||
8496 | fi | ||
8497 | if test ! -r "$withval" ; then | ||
8498 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
8499 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
8500 | fi | ||
8501 | PRNGD_SOCKET="$withval" | ||
8502 | cat >>confdefs.h <<_ACEOF | ||
8503 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
8504 | _ACEOF | ||
8505 | |||
8506 | fi | ||
8507 | |||
8508 | else | ||
8509 | |||
8510 | # Check for existing socket only if we don't have a random device already | ||
8511 | if test "$USE_RAND_HELPER" = yes ; then | ||
8512 | echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
8513 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
8514 | # Insert other locations here | ||
8515 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
8516 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
8517 | PRNGD_SOCKET="$sock" | ||
8518 | cat >>confdefs.h <<_ACEOF | ||
8519 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
8520 | _ACEOF | ||
8521 | |||
8522 | break; | ||
8523 | fi | ||
8524 | done | ||
8525 | if test ! -z "$PRNGD_SOCKET" ; then | ||
8526 | echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
8527 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
8528 | else | ||
8529 | echo "$as_me:$LINENO: result: not found" >&5 | ||
8530 | echo "${ECHO_T}not found" >&6 | ||
8531 | fi | ||
8532 | fi | ||
8533 | |||
8534 | |||
8535 | fi; | ||
8536 | |||
8537 | # Change default command timeout for hashing entropy source | ||
8538 | entropy_timeout=200 | ||
8539 | |||
8540 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
8541 | if test "${with_entropy_timeout+set}" = set; then | ||
8542 | withval="$with_entropy_timeout" | ||
8543 | |||
8544 | if test "x$withval" != "xno" ; then | ||
8545 | entropy_timeout=$withval | ||
8546 | fi | ||
8547 | |||
8548 | |||
8549 | fi; | ||
8550 | cat >>confdefs.h <<_ACEOF | ||
8551 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
8552 | _ACEOF | ||
8553 | |||
8554 | |||
8555 | SSH_PRIVSEP_USER=sshd | ||
8556 | |||
8557 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
8558 | if test "${with_privsep_user+set}" = set; then | ||
8559 | withval="$with_privsep_user" | ||
8560 | |||
8561 | if test -n "$withval"; then | ||
8562 | SSH_PRIVSEP_USER=$withval | ||
8563 | fi | ||
8564 | |||
8565 | |||
8566 | fi; | ||
8567 | cat >>confdefs.h <<_ACEOF | ||
8568 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
8569 | _ACEOF | ||
8570 | |||
8571 | |||
8572 | |||
8573 | # We do this little dance with the search path to insure | ||
8574 | # that programs that we select for use by installed programs | ||
8575 | # (which may be run by the super-user) come from trusted | ||
8576 | # locations before they come from the user's private area. | ||
8577 | # This should help avoid accidentally configuring some | ||
8578 | # random version of a program in someone's personal bin. | ||
8579 | |||
8580 | OPATH=$PATH | ||
8581 | PATH=/bin:/usr/bin | ||
8582 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
8583 | test -d /sbin && PATH=$PATH:/sbin | ||
8584 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
8585 | PATH=$PATH:/etc:$OPATH | ||
8586 | |||
8587 | # These programs are used by the command hashing source to gather entropy | ||
8588 | |||
8589 | # Extract the first word of "ls", so it can be a program name with args. | ||
8590 | set dummy ls; ac_word=$2 | ||
8591 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8593 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
8594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8595 | else | ||
8596 | case $PROG_LS in | ||
8597 | [\\/]* | ?:[\\/]*) | ||
8598 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
8599 | ;; | ||
8600 | *) | ||
8601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8602 | for as_dir in $PATH | ||
8603 | do | ||
8604 | IFS=$as_save_IFS | ||
8605 | test -z "$as_dir" && as_dir=. | ||
8606 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8608 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
8609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8610 | break 2 | ||
8611 | fi | ||
8612 | done | ||
8613 | done | ||
8614 | |||
8615 | ;; | ||
8616 | esac | ||
8617 | fi | ||
8618 | PROG_LS=$ac_cv_path_PROG_LS | ||
8619 | |||
8620 | if test -n "$PROG_LS"; then | ||
8621 | echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
8622 | echo "${ECHO_T}$PROG_LS" >&6 | ||
8623 | else | ||
8624 | echo "$as_me:$LINENO: result: no" >&5 | ||
8625 | echo "${ECHO_T}no" >&6 | ||
8626 | fi | ||
8627 | |||
8628 | if test -z "$PROG_LS" ; then | ||
8629 | PROG_LS="undef" | ||
8630 | fi | ||
8631 | |||
8632 | |||
8633 | |||
8634 | # Extract the first word of "netstat", so it can be a program name with args. | ||
8635 | set dummy netstat; ac_word=$2 | ||
8636 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8638 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
8639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8640 | else | ||
8641 | case $PROG_NETSTAT in | ||
8642 | [\\/]* | ?:[\\/]*) | ||
8643 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
8644 | ;; | ||
8645 | *) | ||
8646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8647 | for as_dir in $PATH | ||
8648 | do | ||
8649 | IFS=$as_save_IFS | ||
8650 | test -z "$as_dir" && as_dir=. | ||
8651 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8652 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8653 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
8654 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8655 | break 2 | ||
8656 | fi | ||
8657 | done | ||
8658 | done | ||
8659 | |||
8660 | ;; | ||
8661 | esac | ||
8662 | fi | ||
8663 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
8664 | |||
8665 | if test -n "$PROG_NETSTAT"; then | ||
8666 | echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
8667 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
8668 | else | ||
8669 | echo "$as_me:$LINENO: result: no" >&5 | ||
8670 | echo "${ECHO_T}no" >&6 | ||
8671 | fi | ||
8672 | |||
8673 | if test -z "$PROG_NETSTAT" ; then | ||
8674 | PROG_NETSTAT="undef" | ||
8675 | fi | ||
8676 | |||
8677 | |||
8678 | |||
8679 | # Extract the first word of "arp", so it can be a program name with args. | ||
8680 | set dummy arp; ac_word=$2 | ||
8681 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8682 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8683 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
8684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8685 | else | ||
8686 | case $PROG_ARP in | ||
8687 | [\\/]* | ?:[\\/]*) | ||
8688 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
8689 | ;; | ||
8690 | *) | ||
8691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8692 | for as_dir in $PATH | ||
8693 | do | ||
8694 | IFS=$as_save_IFS | ||
8695 | test -z "$as_dir" && as_dir=. | ||
8696 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8697 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8698 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
8699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8700 | break 2 | ||
8701 | fi | ||
8702 | done | ||
8703 | done | ||
8704 | |||
8705 | ;; | ||
8706 | esac | ||
8707 | fi | ||
8708 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
8709 | |||
8710 | if test -n "$PROG_ARP"; then | ||
8711 | echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
8712 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
8713 | else | ||
8714 | echo "$as_me:$LINENO: result: no" >&5 | ||
8715 | echo "${ECHO_T}no" >&6 | ||
8716 | fi | ||
8717 | |||
8718 | if test -z "$PROG_ARP" ; then | ||
8719 | PROG_ARP="undef" | ||
8720 | fi | ||
8721 | |||
8722 | |||
8723 | |||
8724 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
8725 | set dummy ifconfig; ac_word=$2 | ||
8726 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8728 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
8729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8730 | else | ||
8731 | case $PROG_IFCONFIG in | ||
8732 | [\\/]* | ?:[\\/]*) | ||
8733 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
8734 | ;; | ||
8735 | *) | ||
8736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8737 | for as_dir in $PATH | ||
8738 | do | ||
8739 | IFS=$as_save_IFS | ||
8740 | test -z "$as_dir" && as_dir=. | ||
8741 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8742 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8743 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
8744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8745 | break 2 | ||
8746 | fi | ||
8747 | done | ||
8748 | done | ||
8749 | |||
8750 | ;; | ||
8751 | esac | ||
8752 | fi | ||
8753 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
8754 | |||
8755 | if test -n "$PROG_IFCONFIG"; then | ||
8756 | echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
8757 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
8758 | else | ||
8759 | echo "$as_me:$LINENO: result: no" >&5 | ||
8760 | echo "${ECHO_T}no" >&6 | ||
8761 | fi | ||
8762 | |||
8763 | if test -z "$PROG_IFCONFIG" ; then | ||
8764 | PROG_IFCONFIG="undef" | ||
8765 | fi | ||
8766 | |||
8767 | |||
8768 | |||
8769 | # Extract the first word of "jstat", so it can be a program name with args. | ||
8770 | set dummy jstat; ac_word=$2 | ||
8771 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8773 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
8774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8775 | else | ||
8776 | case $PROG_JSTAT in | ||
8777 | [\\/]* | ?:[\\/]*) | ||
8778 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
8779 | ;; | ||
8780 | *) | ||
8781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8782 | for as_dir in $PATH | ||
8783 | do | ||
8784 | IFS=$as_save_IFS | ||
8785 | test -z "$as_dir" && as_dir=. | ||
8786 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8787 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8788 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
8789 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8790 | break 2 | ||
8791 | fi | ||
8792 | done | ||
8793 | done | ||
8794 | |||
8795 | ;; | ||
8796 | esac | ||
8797 | fi | ||
8798 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
8799 | |||
8800 | if test -n "$PROG_JSTAT"; then | ||
8801 | echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
8802 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
8803 | else | ||
8804 | echo "$as_me:$LINENO: result: no" >&5 | ||
8805 | echo "${ECHO_T}no" >&6 | ||
8806 | fi | ||
8807 | |||
8808 | if test -z "$PROG_JSTAT" ; then | ||
8809 | PROG_JSTAT="undef" | ||
8810 | fi | ||
8811 | |||
8812 | |||
8813 | |||
8814 | # Extract the first word of "ps", so it can be a program name with args. | ||
8815 | set dummy ps; ac_word=$2 | ||
8816 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8818 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
8819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8820 | else | ||
8821 | case $PROG_PS in | ||
8822 | [\\/]* | ?:[\\/]*) | ||
8823 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
8824 | ;; | ||
8825 | *) | ||
8826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8827 | for as_dir in $PATH | ||
8828 | do | ||
8829 | IFS=$as_save_IFS | ||
8830 | test -z "$as_dir" && as_dir=. | ||
8831 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8832 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8833 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
8834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8835 | break 2 | ||
8836 | fi | ||
8837 | done | ||
8838 | done | ||
8839 | |||
8840 | ;; | ||
8841 | esac | ||
8842 | fi | ||
8843 | PROG_PS=$ac_cv_path_PROG_PS | ||
8844 | |||
8845 | if test -n "$PROG_PS"; then | ||
8846 | echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
8847 | echo "${ECHO_T}$PROG_PS" >&6 | ||
8848 | else | ||
8849 | echo "$as_me:$LINENO: result: no" >&5 | ||
8850 | echo "${ECHO_T}no" >&6 | ||
8851 | fi | ||
8852 | |||
8853 | if test -z "$PROG_PS" ; then | ||
8854 | PROG_PS="undef" | ||
8855 | fi | ||
8856 | |||
8857 | |||
8858 | |||
8859 | # Extract the first word of "sar", so it can be a program name with args. | ||
8860 | set dummy sar; ac_word=$2 | ||
8861 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8862 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8863 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
8864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8865 | else | ||
8866 | case $PROG_SAR in | ||
8867 | [\\/]* | ?:[\\/]*) | ||
8868 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
8869 | ;; | ||
8870 | *) | ||
8871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8872 | for as_dir in $PATH | ||
8873 | do | ||
8874 | IFS=$as_save_IFS | ||
8875 | test -z "$as_dir" && as_dir=. | ||
8876 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8878 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
8879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8880 | break 2 | ||
8881 | fi | ||
8882 | done | ||
8883 | done | ||
8884 | |||
8885 | ;; | ||
8886 | esac | ||
8887 | fi | ||
8888 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
8889 | |||
8890 | if test -n "$PROG_SAR"; then | ||
8891 | echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
8892 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
8893 | else | ||
8894 | echo "$as_me:$LINENO: result: no" >&5 | ||
8895 | echo "${ECHO_T}no" >&6 | ||
8896 | fi | ||
8897 | |||
8898 | if test -z "$PROG_SAR" ; then | ||
8899 | PROG_SAR="undef" | ||
8900 | fi | ||
8901 | |||
8902 | |||
8903 | |||
8904 | # Extract the first word of "w", so it can be a program name with args. | ||
8905 | set dummy w; ac_word=$2 | ||
8906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8908 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
8909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8910 | else | ||
8911 | case $PROG_W in | ||
8912 | [\\/]* | ?:[\\/]*) | ||
8913 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
8914 | ;; | ||
8915 | *) | ||
8916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8917 | for as_dir in $PATH | ||
8918 | do | ||
8919 | IFS=$as_save_IFS | ||
8920 | test -z "$as_dir" && as_dir=. | ||
8921 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8922 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8923 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
8924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8925 | break 2 | ||
8926 | fi | ||
8927 | done | ||
8928 | done | ||
8929 | |||
8930 | ;; | ||
8931 | esac | ||
8932 | fi | ||
8933 | PROG_W=$ac_cv_path_PROG_W | ||
8934 | |||
8935 | if test -n "$PROG_W"; then | ||
8936 | echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
8937 | echo "${ECHO_T}$PROG_W" >&6 | ||
8938 | else | ||
8939 | echo "$as_me:$LINENO: result: no" >&5 | ||
8940 | echo "${ECHO_T}no" >&6 | ||
8941 | fi | ||
8942 | |||
8943 | if test -z "$PROG_W" ; then | ||
8944 | PROG_W="undef" | ||
8945 | fi | ||
8946 | |||
8947 | |||
8948 | |||
8949 | # Extract the first word of "who", so it can be a program name with args. | ||
8950 | set dummy who; ac_word=$2 | ||
8951 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8953 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
8954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8955 | else | ||
8956 | case $PROG_WHO in | ||
8957 | [\\/]* | ?:[\\/]*) | ||
8958 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
8959 | ;; | ||
8960 | *) | ||
8961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8962 | for as_dir in $PATH | ||
8963 | do | ||
8964 | IFS=$as_save_IFS | ||
8965 | test -z "$as_dir" && as_dir=. | ||
8966 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8967 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8968 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
8969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8970 | break 2 | ||
8971 | fi | ||
8972 | done | ||
8973 | done | ||
8974 | |||
8975 | ;; | ||
8976 | esac | ||
8977 | fi | ||
8978 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
8979 | |||
8980 | if test -n "$PROG_WHO"; then | ||
8981 | echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
8982 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
8983 | else | ||
8984 | echo "$as_me:$LINENO: result: no" >&5 | ||
8985 | echo "${ECHO_T}no" >&6 | ||
8986 | fi | ||
8987 | |||
8988 | if test -z "$PROG_WHO" ; then | ||
8989 | PROG_WHO="undef" | ||
8990 | fi | ||
8991 | |||
8992 | |||
8993 | |||
8994 | # Extract the first word of "last", so it can be a program name with args. | ||
8995 | set dummy last; ac_word=$2 | ||
8996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
8997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
8998 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
8999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9000 | else | ||
9001 | case $PROG_LAST in | ||
9002 | [\\/]* | ?:[\\/]*) | ||
9003 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
9004 | ;; | ||
9005 | *) | ||
9006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9007 | for as_dir in $PATH | ||
9008 | do | ||
9009 | IFS=$as_save_IFS | ||
9010 | test -z "$as_dir" && as_dir=. | ||
9011 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9012 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9013 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
9014 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9015 | break 2 | ||
9016 | fi | ||
9017 | done | ||
9018 | done | ||
9019 | |||
9020 | ;; | ||
9021 | esac | ||
9022 | fi | ||
9023 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
9024 | |||
9025 | if test -n "$PROG_LAST"; then | ||
9026 | echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
9027 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
9028 | else | ||
9029 | echo "$as_me:$LINENO: result: no" >&5 | ||
9030 | echo "${ECHO_T}no" >&6 | ||
9031 | fi | ||
9032 | |||
9033 | if test -z "$PROG_LAST" ; then | ||
9034 | PROG_LAST="undef" | ||
9035 | fi | ||
9036 | |||
9037 | |||
9038 | |||
9039 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
9040 | set dummy lastlog; ac_word=$2 | ||
9041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9043 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
9044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9045 | else | ||
9046 | case $PROG_LASTLOG in | ||
9047 | [\\/]* | ?:[\\/]*) | ||
9048 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
9049 | ;; | ||
9050 | *) | ||
9051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9052 | for as_dir in $PATH | ||
9053 | do | ||
9054 | IFS=$as_save_IFS | ||
9055 | test -z "$as_dir" && as_dir=. | ||
9056 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9057 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9058 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
9059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9060 | break 2 | ||
9061 | fi | ||
9062 | done | ||
9063 | done | ||
9064 | |||
9065 | ;; | ||
9066 | esac | ||
9067 | fi | ||
9068 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
9069 | |||
9070 | if test -n "$PROG_LASTLOG"; then | ||
9071 | echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
9072 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
9073 | else | ||
9074 | echo "$as_me:$LINENO: result: no" >&5 | ||
9075 | echo "${ECHO_T}no" >&6 | ||
9076 | fi | ||
9077 | |||
9078 | if test -z "$PROG_LASTLOG" ; then | ||
9079 | PROG_LASTLOG="undef" | ||
9080 | fi | ||
9081 | |||
9082 | |||
9083 | |||
9084 | # Extract the first word of "df", so it can be a program name with args. | ||
9085 | set dummy df; ac_word=$2 | ||
9086 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9088 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
9089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9090 | else | ||
9091 | case $PROG_DF in | ||
9092 | [\\/]* | ?:[\\/]*) | ||
9093 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
9094 | ;; | ||
9095 | *) | ||
9096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9097 | for as_dir in $PATH | ||
9098 | do | ||
9099 | IFS=$as_save_IFS | ||
9100 | test -z "$as_dir" && as_dir=. | ||
9101 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9103 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
9104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9105 | break 2 | ||
9106 | fi | ||
9107 | done | ||
9108 | done | ||
9109 | |||
9110 | ;; | ||
9111 | esac | ||
9112 | fi | ||
9113 | PROG_DF=$ac_cv_path_PROG_DF | ||
9114 | |||
9115 | if test -n "$PROG_DF"; then | ||
9116 | echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
9117 | echo "${ECHO_T}$PROG_DF" >&6 | ||
9118 | else | ||
9119 | echo "$as_me:$LINENO: result: no" >&5 | ||
9120 | echo "${ECHO_T}no" >&6 | ||
9121 | fi | ||
9122 | |||
9123 | if test -z "$PROG_DF" ; then | ||
9124 | PROG_DF="undef" | ||
9125 | fi | ||
9126 | |||
9127 | |||
9128 | |||
9129 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
9130 | set dummy vmstat; ac_word=$2 | ||
9131 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9132 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9133 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
9134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9135 | else | ||
9136 | case $PROG_VMSTAT in | ||
9137 | [\\/]* | ?:[\\/]*) | ||
9138 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
9139 | ;; | ||
9140 | *) | ||
9141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9142 | for as_dir in $PATH | ||
9143 | do | ||
9144 | IFS=$as_save_IFS | ||
9145 | test -z "$as_dir" && as_dir=. | ||
9146 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9147 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9148 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
9149 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9150 | break 2 | ||
9151 | fi | ||
9152 | done | ||
9153 | done | ||
9154 | |||
9155 | ;; | ||
9156 | esac | ||
9157 | fi | ||
9158 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
9159 | |||
9160 | if test -n "$PROG_VMSTAT"; then | ||
9161 | echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
9162 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
9163 | else | ||
9164 | echo "$as_me:$LINENO: result: no" >&5 | ||
9165 | echo "${ECHO_T}no" >&6 | ||
9166 | fi | ||
9167 | |||
9168 | if test -z "$PROG_VMSTAT" ; then | ||
9169 | PROG_VMSTAT="undef" | ||
9170 | fi | ||
9171 | |||
9172 | |||
9173 | |||
9174 | # Extract the first word of "uptime", so it can be a program name with args. | ||
9175 | set dummy uptime; ac_word=$2 | ||
9176 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9178 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
9179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9180 | else | ||
9181 | case $PROG_UPTIME in | ||
9182 | [\\/]* | ?:[\\/]*) | ||
9183 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
9184 | ;; | ||
9185 | *) | ||
9186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9187 | for as_dir in $PATH | ||
9188 | do | ||
9189 | IFS=$as_save_IFS | ||
9190 | test -z "$as_dir" && as_dir=. | ||
9191 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9192 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9193 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
9194 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9195 | break 2 | ||
9196 | fi | ||
9197 | done | ||
9198 | done | ||
9199 | |||
9200 | ;; | ||
9201 | esac | ||
9202 | fi | ||
9203 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
9204 | |||
9205 | if test -n "$PROG_UPTIME"; then | ||
9206 | echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
9207 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
9208 | else | ||
9209 | echo "$as_me:$LINENO: result: no" >&5 | ||
9210 | echo "${ECHO_T}no" >&6 | ||
9211 | fi | ||
9212 | |||
9213 | if test -z "$PROG_UPTIME" ; then | ||
9214 | PROG_UPTIME="undef" | ||
9215 | fi | ||
9216 | |||
9217 | |||
9218 | |||
9219 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
9220 | set dummy ipcs; ac_word=$2 | ||
9221 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9222 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9223 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
9224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9225 | else | ||
9226 | case $PROG_IPCS in | ||
9227 | [\\/]* | ?:[\\/]*) | ||
9228 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
9229 | ;; | ||
9230 | *) | ||
9231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9232 | for as_dir in $PATH | ||
9233 | do | ||
9234 | IFS=$as_save_IFS | ||
9235 | test -z "$as_dir" && as_dir=. | ||
9236 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9238 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
9239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9240 | break 2 | ||
9241 | fi | ||
9242 | done | ||
9243 | done | ||
9244 | |||
9245 | ;; | ||
9246 | esac | ||
9247 | fi | ||
9248 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
9249 | |||
9250 | if test -n "$PROG_IPCS"; then | ||
9251 | echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
9252 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
9253 | else | ||
9254 | echo "$as_me:$LINENO: result: no" >&5 | ||
9255 | echo "${ECHO_T}no" >&6 | ||
9256 | fi | ||
9257 | |||
9258 | if test -z "$PROG_IPCS" ; then | ||
9259 | PROG_IPCS="undef" | ||
9260 | fi | ||
9261 | |||
9262 | |||
9263 | |||
9264 | # Extract the first word of "tail", so it can be a program name with args. | ||
9265 | set dummy tail; ac_word=$2 | ||
9266 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9268 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
9269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9270 | else | ||
9271 | case $PROG_TAIL in | ||
9272 | [\\/]* | ?:[\\/]*) | ||
9273 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
9274 | ;; | ||
9275 | *) | ||
9276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9277 | for as_dir in $PATH | ||
9278 | do | ||
9279 | IFS=$as_save_IFS | ||
9280 | test -z "$as_dir" && as_dir=. | ||
9281 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9282 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9283 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
9284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9285 | break 2 | ||
9286 | fi | ||
9287 | done | ||
9288 | done | ||
9289 | |||
9290 | ;; | ||
9291 | esac | ||
9292 | fi | ||
9293 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
9294 | |||
9295 | if test -n "$PROG_TAIL"; then | ||
9296 | echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
9297 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
9298 | else | ||
9299 | echo "$as_me:$LINENO: result: no" >&5 | ||
9300 | echo "${ECHO_T}no" >&6 | ||
9301 | fi | ||
9302 | |||
9303 | if test -z "$PROG_TAIL" ; then | ||
9304 | PROG_TAIL="undef" | ||
9305 | fi | ||
9306 | |||
9307 | |||
9308 | # restore PATH | ||
9309 | PATH=$OPATH | ||
9310 | |||
9311 | # Where does ssh-rand-helper get its randomness from? | ||
9312 | INSTALL_SSH_PRNG_CMDS="" | ||
9313 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
9314 | if test ! -z "$PRNGD_PORT" ; then | ||
9315 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
9316 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
9317 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
9318 | else | ||
9319 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
9320 | RAND_HELPER_CMDHASH=yes | ||
9321 | INSTALL_SSH_PRNG_CMDS="yes" | ||
9322 | fi | ||
9323 | fi | ||
9324 | |||
9325 | |||
9326 | |||
9327 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
9328 | if test ! -z "$SONY" ; then | ||
9329 | LIBS="$LIBS -liberty"; | ||
9330 | fi | ||
9331 | |||
9332 | # Checks for data types | ||
9333 | echo "$as_me:$LINENO: checking for char" >&5 | ||
9334 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
9335 | if test "${ac_cv_type_char+set}" = set; then | ||
9336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9337 | else | ||
9338 | cat >conftest.$ac_ext <<_ACEOF | ||
9339 | #line $LINENO "configure" | ||
9340 | #include "confdefs.h" | ||
9341 | $ac_includes_default | ||
9342 | #ifdef F77_DUMMY_MAIN | ||
9343 | # ifdef __cplusplus | ||
9344 | extern "C" | ||
9345 | # endif | ||
9346 | int F77_DUMMY_MAIN() { return 1; } | ||
9347 | #endif | ||
9348 | int | ||
9349 | main () | ||
9350 | { | ||
9351 | if ((char *) 0) | ||
9352 | return 0; | ||
9353 | if (sizeof (char)) | ||
9354 | return 0; | ||
9355 | ; | ||
9356 | return 0; | ||
9357 | } | ||
9358 | _ACEOF | ||
9359 | rm -f conftest.$ac_objext | ||
9360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9361 | (eval $ac_compile) 2>&5 | ||
9362 | ac_status=$? | ||
9363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9364 | (exit $ac_status); } && | ||
9365 | { ac_try='test -s conftest.$ac_objext' | ||
9366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9367 | (eval $ac_try) 2>&5 | ||
9368 | ac_status=$? | ||
9369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9370 | (exit $ac_status); }; }; then | ||
9371 | ac_cv_type_char=yes | ||
9372 | else | ||
9373 | echo "$as_me: failed program was:" >&5 | ||
9374 | cat conftest.$ac_ext >&5 | ||
9375 | ac_cv_type_char=no | ||
9376 | fi | ||
9377 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9378 | fi | ||
9379 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
9380 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
9381 | |||
9382 | echo "$as_me:$LINENO: checking size of char" >&5 | ||
9383 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
9384 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
9385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9386 | else | ||
9387 | if test "$ac_cv_type_char" = yes; then | ||
9388 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
9389 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
9390 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
9391 | # This bug is HP SR number 8606223364. | ||
9392 | if test "$cross_compiling" = yes; then | ||
9393 | # Depending upon the size, compute the lo and hi bounds. | ||
9394 | cat >conftest.$ac_ext <<_ACEOF | ||
9395 | #line $LINENO "configure" | ||
9396 | #include "confdefs.h" | ||
9397 | $ac_includes_default | ||
9398 | #ifdef F77_DUMMY_MAIN | ||
9399 | # ifdef __cplusplus | ||
9400 | extern "C" | ||
9401 | # endif | ||
9402 | int F77_DUMMY_MAIN() { return 1; } | ||
9403 | #endif | ||
9404 | int | ||
9405 | main () | ||
9406 | { | ||
9407 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | ||
9408 | test_array [0] = 0 | ||
9409 | |||
9410 | ; | ||
9411 | return 0; | ||
9412 | } | ||
9413 | _ACEOF | ||
9414 | rm -f conftest.$ac_objext | ||
9415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9416 | (eval $ac_compile) 2>&5 | ||
9417 | ac_status=$? | ||
9418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9419 | (exit $ac_status); } && | ||
9420 | { ac_try='test -s conftest.$ac_objext' | ||
9421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9422 | (eval $ac_try) 2>&5 | ||
9423 | ac_status=$? | ||
9424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9425 | (exit $ac_status); }; }; then | ||
9426 | ac_lo=0 ac_mid=0 | ||
9427 | while :; do | ||
9428 | cat >conftest.$ac_ext <<_ACEOF | ||
9429 | #line $LINENO "configure" | ||
9430 | #include "confdefs.h" | ||
9431 | $ac_includes_default | ||
9432 | #ifdef F77_DUMMY_MAIN | ||
9433 | # ifdef __cplusplus | ||
9434 | extern "C" | ||
9435 | # endif | ||
9436 | int F77_DUMMY_MAIN() { return 1; } | ||
9437 | #endif | ||
9438 | int | ||
9439 | main () | ||
9440 | { | ||
9441 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
9442 | test_array [0] = 0 | ||
9443 | |||
9444 | ; | ||
9445 | return 0; | ||
9446 | } | ||
9447 | _ACEOF | ||
9448 | rm -f conftest.$ac_objext | ||
9449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9450 | (eval $ac_compile) 2>&5 | ||
9451 | ac_status=$? | ||
9452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9453 | (exit $ac_status); } && | ||
9454 | { ac_try='test -s conftest.$ac_objext' | ||
9455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9456 | (eval $ac_try) 2>&5 | ||
9457 | ac_status=$? | ||
9458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9459 | (exit $ac_status); }; }; then | ||
9460 | ac_hi=$ac_mid; break | ||
9461 | else | ||
9462 | echo "$as_me: failed program was:" >&5 | ||
9463 | cat conftest.$ac_ext >&5 | ||
9464 | ac_lo=`expr $ac_mid + 1` | ||
9465 | if test $ac_lo -le $ac_mid; then | ||
9466 | ac_lo= ac_hi= | ||
9467 | break | ||
9468 | fi | ||
9469 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
9470 | fi | ||
9471 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9472 | done | ||
9473 | else | ||
9474 | echo "$as_me: failed program was:" >&5 | ||
9475 | cat conftest.$ac_ext >&5 | ||
9476 | cat >conftest.$ac_ext <<_ACEOF | ||
9477 | #line $LINENO "configure" | ||
9478 | #include "confdefs.h" | ||
9479 | $ac_includes_default | ||
9480 | #ifdef F77_DUMMY_MAIN | ||
9481 | # ifdef __cplusplus | ||
9482 | extern "C" | ||
9483 | # endif | ||
9484 | int F77_DUMMY_MAIN() { return 1; } | ||
9485 | #endif | ||
9486 | int | ||
9487 | main () | ||
9488 | { | ||
9489 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | ||
9490 | test_array [0] = 0 | ||
9491 | |||
9492 | ; | ||
9493 | return 0; | ||
9494 | } | ||
9495 | _ACEOF | ||
9496 | rm -f conftest.$ac_objext | ||
9497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9498 | (eval $ac_compile) 2>&5 | ||
9499 | ac_status=$? | ||
9500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9501 | (exit $ac_status); } && | ||
9502 | { ac_try='test -s conftest.$ac_objext' | ||
9503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9504 | (eval $ac_try) 2>&5 | ||
9505 | ac_status=$? | ||
9506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9507 | (exit $ac_status); }; }; then | ||
9508 | ac_hi=-1 ac_mid=-1 | ||
9509 | while :; do | ||
9510 | cat >conftest.$ac_ext <<_ACEOF | ||
9511 | #line $LINENO "configure" | ||
9512 | #include "confdefs.h" | ||
9513 | $ac_includes_default | ||
9514 | #ifdef F77_DUMMY_MAIN | ||
9515 | # ifdef __cplusplus | ||
9516 | extern "C" | ||
9517 | # endif | ||
9518 | int F77_DUMMY_MAIN() { return 1; } | ||
9519 | #endif | ||
9520 | int | ||
9521 | main () | ||
9522 | { | ||
9523 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | ||
9524 | test_array [0] = 0 | ||
9525 | |||
9526 | ; | ||
9527 | return 0; | ||
9528 | } | ||
9529 | _ACEOF | ||
9530 | rm -f conftest.$ac_objext | ||
9531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9532 | (eval $ac_compile) 2>&5 | ||
9533 | ac_status=$? | ||
9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9535 | (exit $ac_status); } && | ||
9536 | { ac_try='test -s conftest.$ac_objext' | ||
9537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9538 | (eval $ac_try) 2>&5 | ||
9539 | ac_status=$? | ||
9540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9541 | (exit $ac_status); }; }; then | ||
9542 | ac_lo=$ac_mid; break | ||
9543 | else | ||
9544 | echo "$as_me: failed program was:" >&5 | ||
9545 | cat conftest.$ac_ext >&5 | ||
9546 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
9547 | if test $ac_mid -le $ac_hi; then | ||
9548 | ac_lo= ac_hi= | ||
9549 | break | ||
9550 | fi | ||
9551 | ac_mid=`expr 2 '*' $ac_mid` | ||
9552 | fi | ||
9553 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9554 | done | ||
9555 | else | ||
9556 | echo "$as_me: failed program was:" >&5 | ||
9557 | cat conftest.$ac_ext >&5 | ||
9558 | ac_lo= ac_hi= | ||
9559 | fi | ||
9560 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9561 | fi | ||
9562 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9563 | # Binary search between lo and hi bounds. | ||
9564 | while test "x$ac_lo" != "x$ac_hi"; do | ||
9565 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
9566 | cat >conftest.$ac_ext <<_ACEOF | ||
9567 | #line $LINENO "configure" | ||
9568 | #include "confdefs.h" | ||
9569 | $ac_includes_default | ||
9570 | #ifdef F77_DUMMY_MAIN | ||
9571 | # ifdef __cplusplus | ||
9572 | extern "C" | ||
9573 | # endif | ||
9574 | int F77_DUMMY_MAIN() { return 1; } | ||
9575 | #endif | ||
9576 | int | ||
9577 | main () | ||
9578 | { | ||
9579 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
9580 | test_array [0] = 0 | ||
9581 | |||
9582 | ; | ||
9583 | return 0; | ||
9584 | } | ||
9585 | _ACEOF | ||
9586 | rm -f conftest.$ac_objext | ||
9587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9588 | (eval $ac_compile) 2>&5 | ||
9589 | ac_status=$? | ||
9590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9591 | (exit $ac_status); } && | ||
9592 | { ac_try='test -s conftest.$ac_objext' | ||
9593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9594 | (eval $ac_try) 2>&5 | ||
9595 | ac_status=$? | ||
9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9597 | (exit $ac_status); }; }; then | ||
9598 | ac_hi=$ac_mid | ||
9599 | else | ||
9600 | echo "$as_me: failed program was:" >&5 | ||
9601 | cat conftest.$ac_ext >&5 | ||
9602 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
9603 | fi | ||
9604 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9605 | done | ||
9606 | case $ac_lo in | ||
9607 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
9608 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | ||
9609 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | ||
9610 | { (exit 1); exit 1; }; } ;; | ||
9611 | esac | ||
9612 | else | ||
9613 | if test "$cross_compiling" = yes; then | ||
9614 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
9615 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9616 | { (exit 1); exit 1; }; } | ||
9617 | else | ||
9618 | cat >conftest.$ac_ext <<_ACEOF | ||
9619 | #line $LINENO "configure" | ||
9620 | #include "confdefs.h" | ||
9621 | $ac_includes_default | ||
9622 | long longval () { return (long) (sizeof (char)); } | ||
9623 | unsigned long ulongval () { return (long) (sizeof (char)); } | ||
9624 | #include <stdio.h> | ||
9625 | #include <stdlib.h> | ||
9626 | #ifdef F77_DUMMY_MAIN | ||
9627 | # ifdef __cplusplus | ||
9628 | extern "C" | ||
9629 | # endif | ||
9630 | int F77_DUMMY_MAIN() { return 1; } | ||
9631 | #endif | ||
9632 | int | ||
9633 | main () | ||
9634 | { | ||
9635 | |||
9636 | FILE *f = fopen ("conftest.val", "w"); | ||
9637 | if (! f) | ||
9638 | exit (1); | ||
9639 | if (((long) (sizeof (char))) < 0) | ||
9640 | { | ||
9641 | long i = longval (); | ||
9642 | if (i != ((long) (sizeof (char)))) | ||
9643 | exit (1); | ||
9644 | fprintf (f, "%ld\n", i); | ||
9645 | } | ||
9646 | else | ||
9647 | { | ||
9648 | unsigned long i = ulongval (); | ||
9649 | if (i != ((long) (sizeof (char)))) | ||
9650 | exit (1); | ||
9651 | fprintf (f, "%lu\n", i); | ||
9652 | } | ||
9653 | exit (ferror (f) || fclose (f) != 0); | ||
9654 | |||
9655 | ; | ||
9656 | return 0; | ||
9657 | } | ||
9658 | _ACEOF | ||
9659 | rm -f conftest$ac_exeext | ||
9660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9661 | (eval $ac_link) 2>&5 | ||
9662 | ac_status=$? | ||
9663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9664 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9666 | (eval $ac_try) 2>&5 | ||
9667 | ac_status=$? | ||
9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9669 | (exit $ac_status); }; }; then | ||
9670 | ac_cv_sizeof_char=`cat conftest.val` | ||
9671 | else | ||
9672 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9673 | echo "$as_me: failed program was:" >&5 | ||
9674 | cat conftest.$ac_ext >&5 | ||
9675 | ( exit $ac_status ) | ||
9676 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | ||
9677 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | ||
9678 | { (exit 1); exit 1; }; } | ||
9679 | fi | ||
9680 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9681 | fi | ||
9682 | fi | ||
9683 | rm -f conftest.val | ||
9684 | else | ||
9685 | ac_cv_sizeof_char=0 | ||
9686 | fi | ||
9687 | fi | ||
9688 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
9689 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
9690 | cat >>confdefs.h <<_ACEOF | ||
9691 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
9692 | _ACEOF | ||
9693 | |||
9694 | |||
9695 | echo "$as_me:$LINENO: checking for short int" >&5 | ||
9696 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
9697 | if test "${ac_cv_type_short_int+set}" = set; then | ||
9698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9699 | else | ||
9700 | cat >conftest.$ac_ext <<_ACEOF | ||
9701 | #line $LINENO "configure" | ||
9702 | #include "confdefs.h" | ||
9703 | $ac_includes_default | ||
9704 | #ifdef F77_DUMMY_MAIN | ||
9705 | # ifdef __cplusplus | ||
9706 | extern "C" | ||
9707 | # endif | ||
9708 | int F77_DUMMY_MAIN() { return 1; } | ||
9709 | #endif | ||
9710 | int | ||
9711 | main () | ||
9712 | { | ||
9713 | if ((short int *) 0) | ||
9714 | return 0; | ||
9715 | if (sizeof (short int)) | ||
9716 | return 0; | ||
9717 | ; | ||
9718 | return 0; | ||
9719 | } | ||
9720 | _ACEOF | ||
9721 | rm -f conftest.$ac_objext | ||
9722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9723 | (eval $ac_compile) 2>&5 | ||
9724 | ac_status=$? | ||
9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9726 | (exit $ac_status); } && | ||
9727 | { ac_try='test -s conftest.$ac_objext' | ||
9728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9729 | (eval $ac_try) 2>&5 | ||
9730 | ac_status=$? | ||
9731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9732 | (exit $ac_status); }; }; then | ||
9733 | ac_cv_type_short_int=yes | ||
9734 | else | ||
9735 | echo "$as_me: failed program was:" >&5 | ||
9736 | cat conftest.$ac_ext >&5 | ||
9737 | ac_cv_type_short_int=no | ||
9738 | fi | ||
9739 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9740 | fi | ||
9741 | echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
9742 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
9743 | |||
9744 | echo "$as_me:$LINENO: checking size of short int" >&5 | ||
9745 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
9746 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
9747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9748 | else | ||
9749 | if test "$ac_cv_type_short_int" = yes; then | ||
9750 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
9751 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
9752 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
9753 | # This bug is HP SR number 8606223364. | ||
9754 | if test "$cross_compiling" = yes; then | ||
9755 | # Depending upon the size, compute the lo and hi bounds. | ||
9756 | cat >conftest.$ac_ext <<_ACEOF | ||
9757 | #line $LINENO "configure" | ||
9758 | #include "confdefs.h" | ||
9759 | $ac_includes_default | ||
9760 | #ifdef F77_DUMMY_MAIN | ||
9761 | # ifdef __cplusplus | ||
9762 | extern "C" | ||
9763 | # endif | ||
9764 | int F77_DUMMY_MAIN() { return 1; } | ||
9765 | #endif | ||
9766 | int | ||
9767 | main () | ||
9768 | { | ||
9769 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)]; | ||
9770 | test_array [0] = 0 | ||
9771 | |||
9772 | ; | ||
9773 | return 0; | ||
9774 | } | ||
9775 | _ACEOF | ||
9776 | rm -f conftest.$ac_objext | ||
9777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9778 | (eval $ac_compile) 2>&5 | ||
9779 | ac_status=$? | ||
9780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9781 | (exit $ac_status); } && | ||
9782 | { ac_try='test -s conftest.$ac_objext' | ||
9783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9784 | (eval $ac_try) 2>&5 | ||
9785 | ac_status=$? | ||
9786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9787 | (exit $ac_status); }; }; then | ||
9788 | ac_lo=0 ac_mid=0 | ||
9789 | while :; do | ||
9790 | cat >conftest.$ac_ext <<_ACEOF | ||
9791 | #line $LINENO "configure" | ||
9792 | #include "confdefs.h" | ||
9793 | $ac_includes_default | ||
9794 | #ifdef F77_DUMMY_MAIN | ||
9795 | # ifdef __cplusplus | ||
9796 | extern "C" | ||
9797 | # endif | ||
9798 | int F77_DUMMY_MAIN() { return 1; } | ||
9799 | #endif | ||
9800 | int | ||
9801 | main () | ||
9802 | { | ||
9803 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
9804 | test_array [0] = 0 | ||
9805 | |||
9806 | ; | ||
9807 | return 0; | ||
9808 | } | ||
9809 | _ACEOF | ||
9810 | rm -f conftest.$ac_objext | ||
9811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9812 | (eval $ac_compile) 2>&5 | ||
9813 | ac_status=$? | ||
9814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9815 | (exit $ac_status); } && | ||
9816 | { ac_try='test -s conftest.$ac_objext' | ||
9817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9818 | (eval $ac_try) 2>&5 | ||
9819 | ac_status=$? | ||
9820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9821 | (exit $ac_status); }; }; then | ||
9822 | ac_hi=$ac_mid; break | ||
9823 | else | ||
9824 | echo "$as_me: failed program was:" >&5 | ||
9825 | cat conftest.$ac_ext >&5 | ||
9826 | ac_lo=`expr $ac_mid + 1` | ||
9827 | if test $ac_lo -le $ac_mid; then | ||
9828 | ac_lo= ac_hi= | ||
9829 | break | ||
9830 | fi | ||
9831 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
9832 | fi | ||
9833 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9834 | done | ||
9835 | else | ||
9836 | echo "$as_me: failed program was:" >&5 | ||
9837 | cat conftest.$ac_ext >&5 | ||
9838 | cat >conftest.$ac_ext <<_ACEOF | ||
9839 | #line $LINENO "configure" | ||
9840 | #include "confdefs.h" | ||
9841 | $ac_includes_default | ||
9842 | #ifdef F77_DUMMY_MAIN | ||
9843 | # ifdef __cplusplus | ||
9844 | extern "C" | ||
9845 | # endif | ||
9846 | int F77_DUMMY_MAIN() { return 1; } | ||
9847 | #endif | ||
9848 | int | ||
9849 | main () | ||
9850 | { | ||
9851 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)]; | ||
9852 | test_array [0] = 0 | ||
9853 | |||
9854 | ; | ||
9855 | return 0; | ||
9856 | } | ||
9857 | _ACEOF | ||
9858 | rm -f conftest.$ac_objext | ||
9859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9860 | (eval $ac_compile) 2>&5 | ||
9861 | ac_status=$? | ||
9862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9863 | (exit $ac_status); } && | ||
9864 | { ac_try='test -s conftest.$ac_objext' | ||
9865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9866 | (eval $ac_try) 2>&5 | ||
9867 | ac_status=$? | ||
9868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9869 | (exit $ac_status); }; }; then | ||
9870 | ac_hi=-1 ac_mid=-1 | ||
9871 | while :; do | ||
9872 | cat >conftest.$ac_ext <<_ACEOF | ||
9873 | #line $LINENO "configure" | ||
9874 | #include "confdefs.h" | ||
9875 | $ac_includes_default | ||
9876 | #ifdef F77_DUMMY_MAIN | ||
9877 | # ifdef __cplusplus | ||
9878 | extern "C" | ||
9879 | # endif | ||
9880 | int F77_DUMMY_MAIN() { return 1; } | ||
9881 | #endif | ||
9882 | int | ||
9883 | main () | ||
9884 | { | ||
9885 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)]; | ||
9886 | test_array [0] = 0 | ||
9887 | |||
9888 | ; | ||
9889 | return 0; | ||
9890 | } | ||
9891 | _ACEOF | ||
9892 | rm -f conftest.$ac_objext | ||
9893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9894 | (eval $ac_compile) 2>&5 | ||
9895 | ac_status=$? | ||
9896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9897 | (exit $ac_status); } && | ||
9898 | { ac_try='test -s conftest.$ac_objext' | ||
9899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9900 | (eval $ac_try) 2>&5 | ||
9901 | ac_status=$? | ||
9902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9903 | (exit $ac_status); }; }; then | ||
9904 | ac_lo=$ac_mid; break | ||
9905 | else | ||
9906 | echo "$as_me: failed program was:" >&5 | ||
9907 | cat conftest.$ac_ext >&5 | ||
9908 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
9909 | if test $ac_mid -le $ac_hi; then | ||
9910 | ac_lo= ac_hi= | ||
9911 | break | ||
9912 | fi | ||
9913 | ac_mid=`expr 2 '*' $ac_mid` | ||
9914 | fi | ||
9915 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9916 | done | ||
9917 | else | ||
9918 | echo "$as_me: failed program was:" >&5 | ||
9919 | cat conftest.$ac_ext >&5 | ||
9920 | ac_lo= ac_hi= | ||
9921 | fi | ||
9922 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9923 | fi | ||
9924 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9925 | # Binary search between lo and hi bounds. | ||
9926 | while test "x$ac_lo" != "x$ac_hi"; do | ||
9927 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
9928 | cat >conftest.$ac_ext <<_ACEOF | ||
9929 | #line $LINENO "configure" | ||
9930 | #include "confdefs.h" | ||
9931 | $ac_includes_default | ||
9932 | #ifdef F77_DUMMY_MAIN | ||
9933 | # ifdef __cplusplus | ||
9934 | extern "C" | ||
9935 | # endif | ||
9936 | int F77_DUMMY_MAIN() { return 1; } | ||
9937 | #endif | ||
9938 | int | ||
9939 | main () | ||
9940 | { | ||
9941 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
9942 | test_array [0] = 0 | ||
9943 | |||
9944 | ; | ||
9945 | return 0; | ||
9946 | } | ||
9947 | _ACEOF | ||
9948 | rm -f conftest.$ac_objext | ||
9949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9950 | (eval $ac_compile) 2>&5 | ||
9951 | ac_status=$? | ||
9952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9953 | (exit $ac_status); } && | ||
9954 | { ac_try='test -s conftest.$ac_objext' | ||
9955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9956 | (eval $ac_try) 2>&5 | ||
9957 | ac_status=$? | ||
9958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9959 | (exit $ac_status); }; }; then | ||
9960 | ac_hi=$ac_mid | ||
9961 | else | ||
9962 | echo "$as_me: failed program was:" >&5 | ||
9963 | cat conftest.$ac_ext >&5 | ||
9964 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
9965 | fi | ||
9966 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9967 | done | ||
9968 | case $ac_lo in | ||
9969 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
9970 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5 | ||
9971 | echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;} | ||
9972 | { (exit 1); exit 1; }; } ;; | ||
9973 | esac | ||
9974 | else | ||
9975 | if test "$cross_compiling" = yes; then | ||
9976 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
9977 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9978 | { (exit 1); exit 1; }; } | ||
9979 | else | ||
9980 | cat >conftest.$ac_ext <<_ACEOF | ||
9981 | #line $LINENO "configure" | ||
9982 | #include "confdefs.h" | ||
9983 | $ac_includes_default | ||
9984 | long longval () { return (long) (sizeof (short int)); } | ||
9985 | unsigned long ulongval () { return (long) (sizeof (short int)); } | ||
9986 | #include <stdio.h> | ||
9987 | #include <stdlib.h> | ||
9988 | #ifdef F77_DUMMY_MAIN | ||
9989 | # ifdef __cplusplus | ||
9990 | extern "C" | ||
9991 | # endif | ||
9992 | int F77_DUMMY_MAIN() { return 1; } | ||
9993 | #endif | ||
9994 | int | ||
9995 | main () | ||
9996 | { | ||
9997 | |||
9998 | FILE *f = fopen ("conftest.val", "w"); | ||
9999 | if (! f) | ||
10000 | exit (1); | ||
10001 | if (((long) (sizeof (short int))) < 0) | ||
10002 | { | ||
10003 | long i = longval (); | ||
10004 | if (i != ((long) (sizeof (short int)))) | ||
10005 | exit (1); | ||
10006 | fprintf (f, "%ld\n", i); | ||
10007 | } | ||
10008 | else | ||
10009 | { | ||
10010 | unsigned long i = ulongval (); | ||
10011 | if (i != ((long) (sizeof (short int)))) | ||
10012 | exit (1); | ||
10013 | fprintf (f, "%lu\n", i); | ||
10014 | } | ||
10015 | exit (ferror (f) || fclose (f) != 0); | ||
10016 | |||
10017 | ; | ||
10018 | return 0; | ||
10019 | } | ||
10020 | _ACEOF | ||
10021 | rm -f conftest$ac_exeext | ||
10022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10023 | (eval $ac_link) 2>&5 | ||
10024 | ac_status=$? | ||
10025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10026 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10028 | (eval $ac_try) 2>&5 | ||
10029 | ac_status=$? | ||
10030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10031 | (exit $ac_status); }; }; then | ||
10032 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
10033 | else | ||
10034 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10035 | echo "$as_me: failed program was:" >&5 | ||
10036 | cat conftest.$ac_ext >&5 | ||
10037 | ( exit $ac_status ) | ||
10038 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5 | ||
10039 | echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;} | ||
10040 | { (exit 1); exit 1; }; } | ||
10041 | fi | ||
10042 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10043 | fi | ||
10044 | fi | ||
10045 | rm -f conftest.val | ||
10046 | else | ||
10047 | ac_cv_sizeof_short_int=0 | ||
10048 | fi | ||
10049 | fi | ||
10050 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
10051 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
10052 | cat >>confdefs.h <<_ACEOF | ||
10053 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
10054 | _ACEOF | ||
10055 | |||
10056 | |||
10057 | echo "$as_me:$LINENO: checking for int" >&5 | ||
10058 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
10059 | if test "${ac_cv_type_int+set}" = set; then | ||
10060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10061 | else | ||
10062 | cat >conftest.$ac_ext <<_ACEOF | ||
10063 | #line $LINENO "configure" | ||
10064 | #include "confdefs.h" | ||
10065 | $ac_includes_default | ||
10066 | #ifdef F77_DUMMY_MAIN | ||
10067 | # ifdef __cplusplus | ||
10068 | extern "C" | ||
10069 | # endif | ||
10070 | int F77_DUMMY_MAIN() { return 1; } | ||
10071 | #endif | ||
10072 | int | ||
10073 | main () | ||
10074 | { | ||
10075 | if ((int *) 0) | ||
10076 | return 0; | ||
10077 | if (sizeof (int)) | ||
10078 | return 0; | ||
10079 | ; | ||
10080 | return 0; | ||
10081 | } | ||
10082 | _ACEOF | ||
10083 | rm -f conftest.$ac_objext | ||
10084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10085 | (eval $ac_compile) 2>&5 | ||
10086 | ac_status=$? | ||
10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10088 | (exit $ac_status); } && | ||
10089 | { ac_try='test -s conftest.$ac_objext' | ||
10090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10091 | (eval $ac_try) 2>&5 | ||
10092 | ac_status=$? | ||
10093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10094 | (exit $ac_status); }; }; then | ||
10095 | ac_cv_type_int=yes | ||
10096 | else | ||
10097 | echo "$as_me: failed program was:" >&5 | ||
10098 | cat conftest.$ac_ext >&5 | ||
10099 | ac_cv_type_int=no | ||
10100 | fi | ||
10101 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10102 | fi | ||
10103 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
10104 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
10105 | |||
10106 | echo "$as_me:$LINENO: checking size of int" >&5 | ||
10107 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
10108 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
10109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10110 | else | ||
10111 | if test "$ac_cv_type_int" = yes; then | ||
10112 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10113 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10114 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10115 | # This bug is HP SR number 8606223364. | ||
10116 | if test "$cross_compiling" = yes; then | ||
10117 | # Depending upon the size, compute the lo and hi bounds. | ||
10118 | cat >conftest.$ac_ext <<_ACEOF | ||
10119 | #line $LINENO "configure" | ||
10120 | #include "confdefs.h" | ||
10121 | $ac_includes_default | ||
10122 | #ifdef F77_DUMMY_MAIN | ||
10123 | # ifdef __cplusplus | ||
10124 | extern "C" | ||
10125 | # endif | ||
10126 | int F77_DUMMY_MAIN() { return 1; } | ||
10127 | #endif | ||
10128 | int | ||
10129 | main () | ||
10130 | { | ||
10131 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | ||
10132 | test_array [0] = 0 | ||
10133 | |||
10134 | ; | ||
10135 | return 0; | ||
10136 | } | ||
10137 | _ACEOF | ||
10138 | rm -f conftest.$ac_objext | ||
10139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10140 | (eval $ac_compile) 2>&5 | ||
10141 | ac_status=$? | ||
10142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10143 | (exit $ac_status); } && | ||
10144 | { ac_try='test -s conftest.$ac_objext' | ||
10145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10146 | (eval $ac_try) 2>&5 | ||
10147 | ac_status=$? | ||
10148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10149 | (exit $ac_status); }; }; then | ||
10150 | ac_lo=0 ac_mid=0 | ||
10151 | while :; do | ||
10152 | cat >conftest.$ac_ext <<_ACEOF | ||
10153 | #line $LINENO "configure" | ||
10154 | #include "confdefs.h" | ||
10155 | $ac_includes_default | ||
10156 | #ifdef F77_DUMMY_MAIN | ||
10157 | # ifdef __cplusplus | ||
10158 | extern "C" | ||
10159 | # endif | ||
10160 | int F77_DUMMY_MAIN() { return 1; } | ||
10161 | #endif | ||
10162 | int | ||
10163 | main () | ||
10164 | { | ||
10165 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
10166 | test_array [0] = 0 | ||
10167 | |||
10168 | ; | ||
10169 | return 0; | ||
10170 | } | ||
10171 | _ACEOF | ||
10172 | rm -f conftest.$ac_objext | ||
10173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10174 | (eval $ac_compile) 2>&5 | ||
10175 | ac_status=$? | ||
10176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10177 | (exit $ac_status); } && | ||
10178 | { ac_try='test -s conftest.$ac_objext' | ||
10179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10180 | (eval $ac_try) 2>&5 | ||
10181 | ac_status=$? | ||
10182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10183 | (exit $ac_status); }; }; then | ||
10184 | ac_hi=$ac_mid; break | ||
10185 | else | ||
10186 | echo "$as_me: failed program was:" >&5 | ||
10187 | cat conftest.$ac_ext >&5 | ||
10188 | ac_lo=`expr $ac_mid + 1` | ||
10189 | if test $ac_lo -le $ac_mid; then | ||
10190 | ac_lo= ac_hi= | ||
10191 | break | ||
10192 | fi | ||
10193 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10194 | fi | ||
10195 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10196 | done | ||
10197 | else | ||
10198 | echo "$as_me: failed program was:" >&5 | ||
10199 | cat conftest.$ac_ext >&5 | ||
10200 | cat >conftest.$ac_ext <<_ACEOF | ||
10201 | #line $LINENO "configure" | ||
10202 | #include "confdefs.h" | ||
10203 | $ac_includes_default | ||
10204 | #ifdef F77_DUMMY_MAIN | ||
10205 | # ifdef __cplusplus | ||
10206 | extern "C" | ||
10207 | # endif | ||
10208 | int F77_DUMMY_MAIN() { return 1; } | ||
10209 | #endif | ||
10210 | int | ||
10211 | main () | ||
10212 | { | ||
10213 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | ||
10214 | test_array [0] = 0 | ||
10215 | |||
10216 | ; | ||
10217 | return 0; | ||
10218 | } | ||
10219 | _ACEOF | ||
10220 | rm -f conftest.$ac_objext | ||
10221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10222 | (eval $ac_compile) 2>&5 | ||
10223 | ac_status=$? | ||
10224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10225 | (exit $ac_status); } && | ||
10226 | { ac_try='test -s conftest.$ac_objext' | ||
10227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10228 | (eval $ac_try) 2>&5 | ||
10229 | ac_status=$? | ||
10230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10231 | (exit $ac_status); }; }; then | ||
10232 | ac_hi=-1 ac_mid=-1 | ||
10233 | while :; do | ||
10234 | cat >conftest.$ac_ext <<_ACEOF | ||
10235 | #line $LINENO "configure" | ||
10236 | #include "confdefs.h" | ||
10237 | $ac_includes_default | ||
10238 | #ifdef F77_DUMMY_MAIN | ||
10239 | # ifdef __cplusplus | ||
10240 | extern "C" | ||
10241 | # endif | ||
10242 | int F77_DUMMY_MAIN() { return 1; } | ||
10243 | #endif | ||
10244 | int | ||
10245 | main () | ||
10246 | { | ||
10247 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | ||
10248 | test_array [0] = 0 | ||
10249 | |||
10250 | ; | ||
10251 | return 0; | ||
10252 | } | ||
10253 | _ACEOF | ||
10254 | rm -f conftest.$ac_objext | ||
10255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10256 | (eval $ac_compile) 2>&5 | ||
10257 | ac_status=$? | ||
10258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10259 | (exit $ac_status); } && | ||
10260 | { ac_try='test -s conftest.$ac_objext' | ||
10261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10262 | (eval $ac_try) 2>&5 | ||
10263 | ac_status=$? | ||
10264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10265 | (exit $ac_status); }; }; then | ||
10266 | ac_lo=$ac_mid; break | ||
10267 | else | ||
10268 | echo "$as_me: failed program was:" >&5 | ||
10269 | cat conftest.$ac_ext >&5 | ||
10270 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
10271 | if test $ac_mid -le $ac_hi; then | ||
10272 | ac_lo= ac_hi= | ||
10273 | break | ||
10274 | fi | ||
10275 | ac_mid=`expr 2 '*' $ac_mid` | ||
10276 | fi | ||
10277 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10278 | done | ||
10279 | else | ||
10280 | echo "$as_me: failed program was:" >&5 | ||
10281 | cat conftest.$ac_ext >&5 | ||
10282 | ac_lo= ac_hi= | ||
10283 | fi | ||
10284 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10285 | fi | ||
10286 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10287 | # Binary search between lo and hi bounds. | ||
10288 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10289 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10290 | cat >conftest.$ac_ext <<_ACEOF | ||
10291 | #line $LINENO "configure" | ||
10292 | #include "confdefs.h" | ||
10293 | $ac_includes_default | ||
10294 | #ifdef F77_DUMMY_MAIN | ||
10295 | # ifdef __cplusplus | ||
10296 | extern "C" | ||
10297 | # endif | ||
10298 | int F77_DUMMY_MAIN() { return 1; } | ||
10299 | #endif | ||
10300 | int | ||
10301 | main () | ||
10302 | { | ||
10303 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
10304 | test_array [0] = 0 | ||
10305 | |||
10306 | ; | ||
10307 | return 0; | ||
10308 | } | ||
10309 | _ACEOF | ||
10310 | rm -f conftest.$ac_objext | ||
10311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10312 | (eval $ac_compile) 2>&5 | ||
10313 | ac_status=$? | ||
10314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10315 | (exit $ac_status); } && | ||
10316 | { ac_try='test -s conftest.$ac_objext' | ||
10317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10318 | (eval $ac_try) 2>&5 | ||
10319 | ac_status=$? | ||
10320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10321 | (exit $ac_status); }; }; then | ||
10322 | ac_hi=$ac_mid | ||
10323 | else | ||
10324 | echo "$as_me: failed program was:" >&5 | ||
10325 | cat conftest.$ac_ext >&5 | ||
10326 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
10327 | fi | ||
10328 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10329 | done | ||
10330 | case $ac_lo in | ||
10331 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
10332 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | ||
10333 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | ||
10334 | { (exit 1); exit 1; }; } ;; | ||
10335 | esac | ||
10336 | else | ||
10337 | if test "$cross_compiling" = yes; then | ||
10338 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
10339 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10340 | { (exit 1); exit 1; }; } | ||
10341 | else | ||
10342 | cat >conftest.$ac_ext <<_ACEOF | ||
10343 | #line $LINENO "configure" | ||
10344 | #include "confdefs.h" | ||
10345 | $ac_includes_default | ||
10346 | long longval () { return (long) (sizeof (int)); } | ||
10347 | unsigned long ulongval () { return (long) (sizeof (int)); } | ||
10348 | #include <stdio.h> | ||
10349 | #include <stdlib.h> | ||
10350 | #ifdef F77_DUMMY_MAIN | ||
10351 | # ifdef __cplusplus | ||
10352 | extern "C" | ||
10353 | # endif | ||
10354 | int F77_DUMMY_MAIN() { return 1; } | ||
10355 | #endif | ||
10356 | int | ||
10357 | main () | ||
10358 | { | ||
10359 | |||
10360 | FILE *f = fopen ("conftest.val", "w"); | ||
10361 | if (! f) | ||
10362 | exit (1); | ||
10363 | if (((long) (sizeof (int))) < 0) | ||
10364 | { | ||
10365 | long i = longval (); | ||
10366 | if (i != ((long) (sizeof (int)))) | ||
10367 | exit (1); | ||
10368 | fprintf (f, "%ld\n", i); | ||
10369 | } | ||
10370 | else | ||
10371 | { | ||
10372 | unsigned long i = ulongval (); | ||
10373 | if (i != ((long) (sizeof (int)))) | ||
10374 | exit (1); | ||
10375 | fprintf (f, "%lu\n", i); | ||
10376 | } | ||
10377 | exit (ferror (f) || fclose (f) != 0); | ||
10378 | |||
10379 | ; | ||
10380 | return 0; | ||
10381 | } | ||
10382 | _ACEOF | ||
10383 | rm -f conftest$ac_exeext | ||
10384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10385 | (eval $ac_link) 2>&5 | ||
10386 | ac_status=$? | ||
10387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10390 | (eval $ac_try) 2>&5 | ||
10391 | ac_status=$? | ||
10392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10393 | (exit $ac_status); }; }; then | ||
10394 | ac_cv_sizeof_int=`cat conftest.val` | ||
10395 | else | ||
10396 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10397 | echo "$as_me: failed program was:" >&5 | ||
10398 | cat conftest.$ac_ext >&5 | ||
10399 | ( exit $ac_status ) | ||
10400 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | ||
10401 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | ||
10402 | { (exit 1); exit 1; }; } | ||
10403 | fi | ||
10404 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10405 | fi | ||
10406 | fi | ||
10407 | rm -f conftest.val | ||
10408 | else | ||
10409 | ac_cv_sizeof_int=0 | ||
10410 | fi | ||
10411 | fi | ||
10412 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
10413 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
10414 | cat >>confdefs.h <<_ACEOF | ||
10415 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
10416 | _ACEOF | ||
10417 | |||
10418 | |||
10419 | echo "$as_me:$LINENO: checking for long int" >&5 | ||
10420 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
10421 | if test "${ac_cv_type_long_int+set}" = set; then | ||
10422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10423 | else | ||
10424 | cat >conftest.$ac_ext <<_ACEOF | ||
10425 | #line $LINENO "configure" | ||
10426 | #include "confdefs.h" | ||
10427 | $ac_includes_default | ||
10428 | #ifdef F77_DUMMY_MAIN | ||
10429 | # ifdef __cplusplus | ||
10430 | extern "C" | ||
10431 | # endif | ||
10432 | int F77_DUMMY_MAIN() { return 1; } | ||
10433 | #endif | ||
10434 | int | ||
10435 | main () | ||
10436 | { | ||
10437 | if ((long int *) 0) | ||
10438 | return 0; | ||
10439 | if (sizeof (long int)) | ||
10440 | return 0; | ||
10441 | ; | ||
10442 | return 0; | ||
10443 | } | ||
10444 | _ACEOF | ||
10445 | rm -f conftest.$ac_objext | ||
10446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10447 | (eval $ac_compile) 2>&5 | ||
10448 | ac_status=$? | ||
10449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10450 | (exit $ac_status); } && | ||
10451 | { ac_try='test -s conftest.$ac_objext' | ||
10452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10453 | (eval $ac_try) 2>&5 | ||
10454 | ac_status=$? | ||
10455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10456 | (exit $ac_status); }; }; then | ||
10457 | ac_cv_type_long_int=yes | ||
10458 | else | ||
10459 | echo "$as_me: failed program was:" >&5 | ||
10460 | cat conftest.$ac_ext >&5 | ||
10461 | ac_cv_type_long_int=no | ||
10462 | fi | ||
10463 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10464 | fi | ||
10465 | echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
10466 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
10467 | |||
10468 | echo "$as_me:$LINENO: checking size of long int" >&5 | ||
10469 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
10470 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
10471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10472 | else | ||
10473 | if test "$ac_cv_type_long_int" = yes; then | ||
10474 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10475 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10476 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10477 | # This bug is HP SR number 8606223364. | ||
10478 | if test "$cross_compiling" = yes; then | ||
10479 | # Depending upon the size, compute the lo and hi bounds. | ||
10480 | cat >conftest.$ac_ext <<_ACEOF | ||
10481 | #line $LINENO "configure" | ||
10482 | #include "confdefs.h" | ||
10483 | $ac_includes_default | ||
10484 | #ifdef F77_DUMMY_MAIN | ||
10485 | # ifdef __cplusplus | ||
10486 | extern "C" | ||
10487 | # endif | ||
10488 | int F77_DUMMY_MAIN() { return 1; } | ||
10489 | #endif | ||
10490 | int | ||
10491 | main () | ||
10492 | { | ||
10493 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)]; | ||
10494 | test_array [0] = 0 | ||
10495 | |||
10496 | ; | ||
10497 | return 0; | ||
10498 | } | ||
10499 | _ACEOF | ||
10500 | rm -f conftest.$ac_objext | ||
10501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10502 | (eval $ac_compile) 2>&5 | ||
10503 | ac_status=$? | ||
10504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10505 | (exit $ac_status); } && | ||
10506 | { ac_try='test -s conftest.$ac_objext' | ||
10507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10508 | (eval $ac_try) 2>&5 | ||
10509 | ac_status=$? | ||
10510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10511 | (exit $ac_status); }; }; then | ||
10512 | ac_lo=0 ac_mid=0 | ||
10513 | while :; do | ||
10514 | cat >conftest.$ac_ext <<_ACEOF | ||
10515 | #line $LINENO "configure" | ||
10516 | #include "confdefs.h" | ||
10517 | $ac_includes_default | ||
10518 | #ifdef F77_DUMMY_MAIN | ||
10519 | # ifdef __cplusplus | ||
10520 | extern "C" | ||
10521 | # endif | ||
10522 | int F77_DUMMY_MAIN() { return 1; } | ||
10523 | #endif | ||
10524 | int | ||
10525 | main () | ||
10526 | { | ||
10527 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
10528 | test_array [0] = 0 | ||
10529 | |||
10530 | ; | ||
10531 | return 0; | ||
10532 | } | ||
10533 | _ACEOF | ||
10534 | rm -f conftest.$ac_objext | ||
10535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10536 | (eval $ac_compile) 2>&5 | ||
10537 | ac_status=$? | ||
10538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10539 | (exit $ac_status); } && | ||
10540 | { ac_try='test -s conftest.$ac_objext' | ||
10541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10542 | (eval $ac_try) 2>&5 | ||
10543 | ac_status=$? | ||
10544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10545 | (exit $ac_status); }; }; then | ||
10546 | ac_hi=$ac_mid; break | ||
10547 | else | ||
10548 | echo "$as_me: failed program was:" >&5 | ||
10549 | cat conftest.$ac_ext >&5 | ||
10550 | ac_lo=`expr $ac_mid + 1` | ||
10551 | if test $ac_lo -le $ac_mid; then | ||
10552 | ac_lo= ac_hi= | ||
10553 | break | ||
10554 | fi | ||
10555 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10556 | fi | ||
10557 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10558 | done | ||
10559 | else | ||
10560 | echo "$as_me: failed program was:" >&5 | ||
10561 | cat conftest.$ac_ext >&5 | ||
10562 | cat >conftest.$ac_ext <<_ACEOF | ||
10563 | #line $LINENO "configure" | ||
10564 | #include "confdefs.h" | ||
10565 | $ac_includes_default | ||
10566 | #ifdef F77_DUMMY_MAIN | ||
10567 | # ifdef __cplusplus | ||
10568 | extern "C" | ||
10569 | # endif | ||
10570 | int F77_DUMMY_MAIN() { return 1; } | ||
10571 | #endif | ||
10572 | int | ||
10573 | main () | ||
10574 | { | ||
10575 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)]; | ||
10576 | test_array [0] = 0 | ||
10577 | |||
10578 | ; | ||
10579 | return 0; | ||
10580 | } | ||
10581 | _ACEOF | ||
10582 | rm -f conftest.$ac_objext | ||
10583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10584 | (eval $ac_compile) 2>&5 | ||
10585 | ac_status=$? | ||
10586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10587 | (exit $ac_status); } && | ||
10588 | { ac_try='test -s conftest.$ac_objext' | ||
10589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10590 | (eval $ac_try) 2>&5 | ||
10591 | ac_status=$? | ||
10592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10593 | (exit $ac_status); }; }; then | ||
10594 | ac_hi=-1 ac_mid=-1 | ||
10595 | while :; do | ||
10596 | cat >conftest.$ac_ext <<_ACEOF | ||
10597 | #line $LINENO "configure" | ||
10598 | #include "confdefs.h" | ||
10599 | $ac_includes_default | ||
10600 | #ifdef F77_DUMMY_MAIN | ||
10601 | # ifdef __cplusplus | ||
10602 | extern "C" | ||
10603 | # endif | ||
10604 | int F77_DUMMY_MAIN() { return 1; } | ||
10605 | #endif | ||
10606 | int | ||
10607 | main () | ||
10608 | { | ||
10609 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)]; | ||
10610 | test_array [0] = 0 | ||
10611 | |||
10612 | ; | ||
10613 | return 0; | ||
10614 | } | ||
10615 | _ACEOF | ||
10616 | rm -f conftest.$ac_objext | ||
10617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10618 | (eval $ac_compile) 2>&5 | ||
10619 | ac_status=$? | ||
10620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10621 | (exit $ac_status); } && | ||
10622 | { ac_try='test -s conftest.$ac_objext' | ||
10623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10624 | (eval $ac_try) 2>&5 | ||
10625 | ac_status=$? | ||
10626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10627 | (exit $ac_status); }; }; then | ||
10628 | ac_lo=$ac_mid; break | ||
10629 | else | ||
10630 | echo "$as_me: failed program was:" >&5 | ||
10631 | cat conftest.$ac_ext >&5 | ||
10632 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
10633 | if test $ac_mid -le $ac_hi; then | ||
10634 | ac_lo= ac_hi= | ||
10635 | break | ||
10636 | fi | ||
10637 | ac_mid=`expr 2 '*' $ac_mid` | ||
10638 | fi | ||
10639 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10640 | done | ||
10641 | else | ||
10642 | echo "$as_me: failed program was:" >&5 | ||
10643 | cat conftest.$ac_ext >&5 | ||
10644 | ac_lo= ac_hi= | ||
10645 | fi | ||
10646 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10647 | fi | ||
10648 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10649 | # Binary search between lo and hi bounds. | ||
10650 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10651 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10652 | cat >conftest.$ac_ext <<_ACEOF | ||
10653 | #line $LINENO "configure" | ||
10654 | #include "confdefs.h" | ||
10655 | $ac_includes_default | ||
10656 | #ifdef F77_DUMMY_MAIN | ||
10657 | # ifdef __cplusplus | ||
10658 | extern "C" | ||
10659 | # endif | ||
10660 | int F77_DUMMY_MAIN() { return 1; } | ||
10661 | #endif | ||
10662 | int | ||
10663 | main () | ||
10664 | { | ||
10665 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
10666 | test_array [0] = 0 | ||
10667 | |||
10668 | ; | ||
10669 | return 0; | ||
10670 | } | ||
10671 | _ACEOF | ||
10672 | rm -f conftest.$ac_objext | ||
10673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10674 | (eval $ac_compile) 2>&5 | ||
10675 | ac_status=$? | ||
10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10677 | (exit $ac_status); } && | ||
10678 | { ac_try='test -s conftest.$ac_objext' | ||
10679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10680 | (eval $ac_try) 2>&5 | ||
10681 | ac_status=$? | ||
10682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10683 | (exit $ac_status); }; }; then | ||
10684 | ac_hi=$ac_mid | ||
10685 | else | ||
10686 | echo "$as_me: failed program was:" >&5 | ||
10687 | cat conftest.$ac_ext >&5 | ||
10688 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
10689 | fi | ||
10690 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10691 | done | ||
10692 | case $ac_lo in | ||
10693 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
10694 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5 | ||
10695 | echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;} | ||
10696 | { (exit 1); exit 1; }; } ;; | ||
10697 | esac | ||
10698 | else | ||
10699 | if test "$cross_compiling" = yes; then | ||
10700 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
10701 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10702 | { (exit 1); exit 1; }; } | ||
10703 | else | ||
10704 | cat >conftest.$ac_ext <<_ACEOF | ||
10705 | #line $LINENO "configure" | ||
10706 | #include "confdefs.h" | ||
10707 | $ac_includes_default | ||
10708 | long longval () { return (long) (sizeof (long int)); } | ||
10709 | unsigned long ulongval () { return (long) (sizeof (long int)); } | ||
10710 | #include <stdio.h> | ||
10711 | #include <stdlib.h> | ||
10712 | #ifdef F77_DUMMY_MAIN | ||
10713 | # ifdef __cplusplus | ||
10714 | extern "C" | ||
10715 | # endif | ||
10716 | int F77_DUMMY_MAIN() { return 1; } | ||
10717 | #endif | ||
10718 | int | ||
10719 | main () | ||
10720 | { | ||
10721 | |||
10722 | FILE *f = fopen ("conftest.val", "w"); | ||
10723 | if (! f) | ||
10724 | exit (1); | ||
10725 | if (((long) (sizeof (long int))) < 0) | ||
10726 | { | ||
10727 | long i = longval (); | ||
10728 | if (i != ((long) (sizeof (long int)))) | ||
10729 | exit (1); | ||
10730 | fprintf (f, "%ld\n", i); | ||
10731 | } | ||
10732 | else | ||
10733 | { | ||
10734 | unsigned long i = ulongval (); | ||
10735 | if (i != ((long) (sizeof (long int)))) | ||
10736 | exit (1); | ||
10737 | fprintf (f, "%lu\n", i); | ||
10738 | } | ||
10739 | exit (ferror (f) || fclose (f) != 0); | ||
10740 | |||
10741 | ; | ||
10742 | return 0; | ||
10743 | } | ||
10744 | _ACEOF | ||
10745 | rm -f conftest$ac_exeext | ||
10746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10747 | (eval $ac_link) 2>&5 | ||
10748 | ac_status=$? | ||
10749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10750 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10752 | (eval $ac_try) 2>&5 | ||
10753 | ac_status=$? | ||
10754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10755 | (exit $ac_status); }; }; then | ||
10756 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
10757 | else | ||
10758 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10759 | echo "$as_me: failed program was:" >&5 | ||
10760 | cat conftest.$ac_ext >&5 | ||
10761 | ( exit $ac_status ) | ||
10762 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5 | ||
10763 | echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;} | ||
10764 | { (exit 1); exit 1; }; } | ||
10765 | fi | ||
10766 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10767 | fi | ||
10768 | fi | ||
10769 | rm -f conftest.val | ||
10770 | else | ||
10771 | ac_cv_sizeof_long_int=0 | ||
10772 | fi | ||
10773 | fi | ||
10774 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
10775 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
10776 | cat >>confdefs.h <<_ACEOF | ||
10777 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
10778 | _ACEOF | ||
10779 | |||
10780 | |||
10781 | echo "$as_me:$LINENO: checking for long long int" >&5 | ||
10782 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
10783 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
10784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10785 | else | ||
10786 | cat >conftest.$ac_ext <<_ACEOF | ||
10787 | #line $LINENO "configure" | ||
10788 | #include "confdefs.h" | ||
10789 | $ac_includes_default | ||
10790 | #ifdef F77_DUMMY_MAIN | ||
10791 | # ifdef __cplusplus | ||
10792 | extern "C" | ||
10793 | # endif | ||
10794 | int F77_DUMMY_MAIN() { return 1; } | ||
10795 | #endif | ||
10796 | int | ||
10797 | main () | ||
10798 | { | ||
10799 | if ((long long int *) 0) | ||
10800 | return 0; | ||
10801 | if (sizeof (long long int)) | ||
10802 | return 0; | ||
10803 | ; | ||
10804 | return 0; | ||
10805 | } | ||
10806 | _ACEOF | ||
10807 | rm -f conftest.$ac_objext | ||
10808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10809 | (eval $ac_compile) 2>&5 | ||
10810 | ac_status=$? | ||
10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10812 | (exit $ac_status); } && | ||
10813 | { ac_try='test -s conftest.$ac_objext' | ||
10814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10815 | (eval $ac_try) 2>&5 | ||
10816 | ac_status=$? | ||
10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10818 | (exit $ac_status); }; }; then | ||
10819 | ac_cv_type_long_long_int=yes | ||
10820 | else | ||
10821 | echo "$as_me: failed program was:" >&5 | ||
10822 | cat conftest.$ac_ext >&5 | ||
10823 | ac_cv_type_long_long_int=no | ||
10824 | fi | ||
10825 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10826 | fi | ||
10827 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
10828 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
10829 | |||
10830 | echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
10831 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
10832 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
10833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10834 | else | ||
10835 | if test "$ac_cv_type_long_long_int" = yes; then | ||
10836 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10837 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10838 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10839 | # This bug is HP SR number 8606223364. | ||
10840 | if test "$cross_compiling" = yes; then | ||
10841 | # Depending upon the size, compute the lo and hi bounds. | ||
10842 | cat >conftest.$ac_ext <<_ACEOF | ||
10843 | #line $LINENO "configure" | ||
10844 | #include "confdefs.h" | ||
10845 | $ac_includes_default | ||
10846 | #ifdef F77_DUMMY_MAIN | ||
10847 | # ifdef __cplusplus | ||
10848 | extern "C" | ||
10849 | # endif | ||
10850 | int F77_DUMMY_MAIN() { return 1; } | ||
10851 | #endif | ||
10852 | int | ||
10853 | main () | ||
10854 | { | ||
10855 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)]; | ||
10856 | test_array [0] = 0 | ||
10857 | |||
10858 | ; | ||
10859 | return 0; | ||
10860 | } | ||
10861 | _ACEOF | ||
10862 | rm -f conftest.$ac_objext | ||
10863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10864 | (eval $ac_compile) 2>&5 | ||
10865 | ac_status=$? | ||
10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10867 | (exit $ac_status); } && | ||
10868 | { ac_try='test -s conftest.$ac_objext' | ||
10869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10870 | (eval $ac_try) 2>&5 | ||
10871 | ac_status=$? | ||
10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10873 | (exit $ac_status); }; }; then | ||
10874 | ac_lo=0 ac_mid=0 | ||
10875 | while :; do | ||
10876 | cat >conftest.$ac_ext <<_ACEOF | ||
10877 | #line $LINENO "configure" | ||
10878 | #include "confdefs.h" | ||
10879 | $ac_includes_default | ||
10880 | #ifdef F77_DUMMY_MAIN | ||
10881 | # ifdef __cplusplus | ||
10882 | extern "C" | ||
10883 | # endif | ||
10884 | int F77_DUMMY_MAIN() { return 1; } | ||
10885 | #endif | ||
10886 | int | ||
10887 | main () | ||
10888 | { | ||
10889 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
10890 | test_array [0] = 0 | ||
10891 | |||
10892 | ; | ||
10893 | return 0; | ||
10894 | } | ||
10895 | _ACEOF | ||
10896 | rm -f conftest.$ac_objext | ||
10897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10898 | (eval $ac_compile) 2>&5 | ||
10899 | ac_status=$? | ||
10900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10901 | (exit $ac_status); } && | ||
10902 | { ac_try='test -s conftest.$ac_objext' | ||
10903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10904 | (eval $ac_try) 2>&5 | ||
10905 | ac_status=$? | ||
10906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10907 | (exit $ac_status); }; }; then | ||
10908 | ac_hi=$ac_mid; break | ||
10909 | else | ||
10910 | echo "$as_me: failed program was:" >&5 | ||
10911 | cat conftest.$ac_ext >&5 | ||
10912 | ac_lo=`expr $ac_mid + 1` | ||
10913 | if test $ac_lo -le $ac_mid; then | ||
10914 | ac_lo= ac_hi= | ||
10915 | break | ||
10916 | fi | ||
10917 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10918 | fi | ||
10919 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10920 | done | ||
10921 | else | ||
10922 | echo "$as_me: failed program was:" >&5 | ||
10923 | cat conftest.$ac_ext >&5 | ||
10924 | cat >conftest.$ac_ext <<_ACEOF | ||
10925 | #line $LINENO "configure" | ||
10926 | #include "confdefs.h" | ||
10927 | $ac_includes_default | ||
10928 | #ifdef F77_DUMMY_MAIN | ||
10929 | # ifdef __cplusplus | ||
10930 | extern "C" | ||
10931 | # endif | ||
10932 | int F77_DUMMY_MAIN() { return 1; } | ||
10933 | #endif | ||
10934 | int | ||
10935 | main () | ||
10936 | { | ||
10937 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)]; | ||
10938 | test_array [0] = 0 | ||
10939 | |||
10940 | ; | ||
10941 | return 0; | ||
10942 | } | ||
10943 | _ACEOF | ||
10944 | rm -f conftest.$ac_objext | ||
10945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10946 | (eval $ac_compile) 2>&5 | ||
10947 | ac_status=$? | ||
10948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10949 | (exit $ac_status); } && | ||
10950 | { ac_try='test -s conftest.$ac_objext' | ||
10951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10952 | (eval $ac_try) 2>&5 | ||
10953 | ac_status=$? | ||
10954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10955 | (exit $ac_status); }; }; then | ||
10956 | ac_hi=-1 ac_mid=-1 | ||
10957 | while :; do | ||
10958 | cat >conftest.$ac_ext <<_ACEOF | ||
10959 | #line $LINENO "configure" | ||
10960 | #include "confdefs.h" | ||
10961 | $ac_includes_default | ||
10962 | #ifdef F77_DUMMY_MAIN | ||
10963 | # ifdef __cplusplus | ||
10964 | extern "C" | ||
10965 | # endif | ||
10966 | int F77_DUMMY_MAIN() { return 1; } | ||
10967 | #endif | ||
10968 | int | ||
10969 | main () | ||
10970 | { | ||
10971 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)]; | ||
10972 | test_array [0] = 0 | ||
10973 | |||
10974 | ; | ||
10975 | return 0; | ||
10976 | } | ||
10977 | _ACEOF | ||
10978 | rm -f conftest.$ac_objext | ||
10979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10980 | (eval $ac_compile) 2>&5 | ||
10981 | ac_status=$? | ||
10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10983 | (exit $ac_status); } && | ||
10984 | { ac_try='test -s conftest.$ac_objext' | ||
10985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10986 | (eval $ac_try) 2>&5 | ||
10987 | ac_status=$? | ||
10988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10989 | (exit $ac_status); }; }; then | ||
10990 | ac_lo=$ac_mid; break | ||
10991 | else | ||
10992 | echo "$as_me: failed program was:" >&5 | ||
10993 | cat conftest.$ac_ext >&5 | ||
10994 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
10995 | if test $ac_mid -le $ac_hi; then | ||
10996 | ac_lo= ac_hi= | ||
10997 | break | ||
10998 | fi | ||
10999 | ac_mid=`expr 2 '*' $ac_mid` | ||
11000 | fi | ||
11001 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11002 | done | ||
11003 | else | ||
11004 | echo "$as_me: failed program was:" >&5 | ||
11005 | cat conftest.$ac_ext >&5 | ||
11006 | ac_lo= ac_hi= | ||
11007 | fi | ||
11008 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11009 | fi | ||
11010 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11011 | # Binary search between lo and hi bounds. | ||
11012 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11013 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11014 | cat >conftest.$ac_ext <<_ACEOF | ||
11015 | #line $LINENO "configure" | ||
11016 | #include "confdefs.h" | ||
11017 | $ac_includes_default | ||
11018 | #ifdef F77_DUMMY_MAIN | ||
11019 | # ifdef __cplusplus | ||
11020 | extern "C" | ||
11021 | # endif | ||
11022 | int F77_DUMMY_MAIN() { return 1; } | ||
11023 | #endif | ||
11024 | int | ||
11025 | main () | ||
11026 | { | ||
11027 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
11028 | test_array [0] = 0 | ||
11029 | |||
11030 | ; | ||
11031 | return 0; | ||
11032 | } | ||
11033 | _ACEOF | ||
11034 | rm -f conftest.$ac_objext | ||
11035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11036 | (eval $ac_compile) 2>&5 | ||
11037 | ac_status=$? | ||
11038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11039 | (exit $ac_status); } && | ||
11040 | { ac_try='test -s conftest.$ac_objext' | ||
11041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11042 | (eval $ac_try) 2>&5 | ||
11043 | ac_status=$? | ||
11044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11045 | (exit $ac_status); }; }; then | ||
11046 | ac_hi=$ac_mid | ||
11047 | else | ||
11048 | echo "$as_me: failed program was:" >&5 | ||
11049 | cat conftest.$ac_ext >&5 | ||
11050 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
11051 | fi | ||
11052 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11053 | done | ||
11054 | case $ac_lo in | ||
11055 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
11056 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5 | ||
11057 | echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;} | ||
11058 | { (exit 1); exit 1; }; } ;; | ||
11059 | esac | ||
11060 | else | ||
11061 | if test "$cross_compiling" = yes; then | ||
11062 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
11063 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11064 | { (exit 1); exit 1; }; } | ||
11065 | else | ||
11066 | cat >conftest.$ac_ext <<_ACEOF | ||
11067 | #line $LINENO "configure" | ||
11068 | #include "confdefs.h" | ||
11069 | $ac_includes_default | ||
11070 | long longval () { return (long) (sizeof (long long int)); } | ||
11071 | unsigned long ulongval () { return (long) (sizeof (long long int)); } | ||
11072 | #include <stdio.h> | ||
11073 | #include <stdlib.h> | ||
11074 | #ifdef F77_DUMMY_MAIN | ||
11075 | # ifdef __cplusplus | ||
11076 | extern "C" | ||
11077 | # endif | ||
11078 | int F77_DUMMY_MAIN() { return 1; } | ||
11079 | #endif | ||
11080 | int | ||
11081 | main () | ||
11082 | { | ||
11083 | |||
11084 | FILE *f = fopen ("conftest.val", "w"); | ||
11085 | if (! f) | ||
11086 | exit (1); | ||
11087 | if (((long) (sizeof (long long int))) < 0) | ||
11088 | { | ||
11089 | long i = longval (); | ||
11090 | if (i != ((long) (sizeof (long long int)))) | ||
11091 | exit (1); | ||
11092 | fprintf (f, "%ld\n", i); | ||
11093 | } | ||
11094 | else | ||
11095 | { | ||
11096 | unsigned long i = ulongval (); | ||
11097 | if (i != ((long) (sizeof (long long int)))) | ||
11098 | exit (1); | ||
11099 | fprintf (f, "%lu\n", i); | ||
11100 | } | ||
11101 | exit (ferror (f) || fclose (f) != 0); | ||
11102 | |||
11103 | ; | ||
11104 | return 0; | ||
11105 | } | ||
11106 | _ACEOF | ||
11107 | rm -f conftest$ac_exeext | ||
11108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11109 | (eval $ac_link) 2>&5 | ||
11110 | ac_status=$? | ||
11111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11114 | (eval $ac_try) 2>&5 | ||
11115 | ac_status=$? | ||
11116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11117 | (exit $ac_status); }; }; then | ||
11118 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
11119 | else | ||
11120 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11121 | echo "$as_me: failed program was:" >&5 | ||
11122 | cat conftest.$ac_ext >&5 | ||
11123 | ( exit $ac_status ) | ||
11124 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5 | ||
11125 | echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;} | ||
11126 | { (exit 1); exit 1; }; } | ||
11127 | fi | ||
11128 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11129 | fi | ||
11130 | fi | ||
11131 | rm -f conftest.val | ||
11132 | else | ||
11133 | ac_cv_sizeof_long_long_int=0 | ||
11134 | fi | ||
11135 | fi | ||
11136 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
11137 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
11138 | cat >>confdefs.h <<_ACEOF | ||
11139 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
11140 | _ACEOF | ||
11141 | |||
11142 | |||
11143 | |||
11144 | # Sanity check long long for some platforms (AIX) | ||
11145 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
11146 | ac_cv_sizeof_long_long_int=0 | ||
11147 | fi | ||
11148 | |||
11149 | # More checks for data types | ||
11150 | echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
11151 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
11152 | if test "${ac_cv_have_u_int+set}" = set; then | ||
11153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11154 | else | ||
11155 | |||
11156 | cat >conftest.$ac_ext <<_ACEOF | ||
11157 | #line $LINENO "configure" | ||
11158 | #include "confdefs.h" | ||
11159 | #include <sys/types.h> | ||
11160 | #ifdef F77_DUMMY_MAIN | ||
11161 | # ifdef __cplusplus | ||
11162 | extern "C" | ||
11163 | # endif | ||
11164 | int F77_DUMMY_MAIN() { return 1; } | ||
11165 | #endif | ||
11166 | int | ||
11167 | main () | ||
11168 | { | ||
11169 | u_int a; a = 1; | ||
11170 | ; | ||
11171 | return 0; | ||
11172 | } | ||
11173 | _ACEOF | ||
11174 | rm -f conftest.$ac_objext | ||
11175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11176 | (eval $ac_compile) 2>&5 | ||
11177 | ac_status=$? | ||
11178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11179 | (exit $ac_status); } && | ||
11180 | { ac_try='test -s conftest.$ac_objext' | ||
11181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11182 | (eval $ac_try) 2>&5 | ||
11183 | ac_status=$? | ||
11184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11185 | (exit $ac_status); }; }; then | ||
11186 | ac_cv_have_u_int="yes" | ||
11187 | else | ||
11188 | echo "$as_me: failed program was:" >&5 | ||
11189 | cat conftest.$ac_ext >&5 | ||
11190 | ac_cv_have_u_int="no" | ||
11191 | |||
11192 | fi | ||
11193 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11194 | |||
11195 | fi | ||
11196 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
11197 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
11198 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
11199 | cat >>confdefs.h <<\_ACEOF | ||
11200 | #define HAVE_U_INT 1 | ||
11201 | _ACEOF | ||
11202 | |||
11203 | have_u_int=1 | ||
11204 | fi | ||
11205 | |||
11206 | echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
11207 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
11208 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
11209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11210 | else | ||
11211 | |||
11212 | cat >conftest.$ac_ext <<_ACEOF | ||
11213 | #line $LINENO "configure" | ||
11214 | #include "confdefs.h" | ||
11215 | #include <sys/types.h> | ||
11216 | #ifdef F77_DUMMY_MAIN | ||
11217 | # ifdef __cplusplus | ||
11218 | extern "C" | ||
11219 | # endif | ||
11220 | int F77_DUMMY_MAIN() { return 1; } | ||
11221 | #endif | ||
11222 | int | ||
11223 | main () | ||
11224 | { | ||
11225 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11226 | ; | ||
11227 | return 0; | ||
11228 | } | ||
11229 | _ACEOF | ||
11230 | rm -f conftest.$ac_objext | ||
11231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11232 | (eval $ac_compile) 2>&5 | ||
11233 | ac_status=$? | ||
11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11235 | (exit $ac_status); } && | ||
11236 | { ac_try='test -s conftest.$ac_objext' | ||
11237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11238 | (eval $ac_try) 2>&5 | ||
11239 | ac_status=$? | ||
11240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11241 | (exit $ac_status); }; }; then | ||
11242 | ac_cv_have_intxx_t="yes" | ||
11243 | else | ||
11244 | echo "$as_me: failed program was:" >&5 | ||
11245 | cat conftest.$ac_ext >&5 | ||
11246 | ac_cv_have_intxx_t="no" | ||
11247 | |||
11248 | fi | ||
11249 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11250 | |||
11251 | fi | ||
11252 | echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
11253 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
11254 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
11255 | cat >>confdefs.h <<\_ACEOF | ||
11256 | #define HAVE_INTXX_T 1 | ||
11257 | _ACEOF | ||
11258 | |||
11259 | have_intxx_t=1 | ||
11260 | fi | ||
11261 | |||
11262 | if (test -z "$have_intxx_t" && \ | ||
11263 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
11264 | then | ||
11265 | echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
11266 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
11267 | cat >conftest.$ac_ext <<_ACEOF | ||
11268 | #line $LINENO "configure" | ||
11269 | #include "confdefs.h" | ||
11270 | #include <stdint.h> | ||
11271 | #ifdef F77_DUMMY_MAIN | ||
11272 | # ifdef __cplusplus | ||
11273 | extern "C" | ||
11274 | # endif | ||
11275 | int F77_DUMMY_MAIN() { return 1; } | ||
11276 | #endif | ||
11277 | int | ||
11278 | main () | ||
11279 | { | ||
11280 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11281 | ; | ||
11282 | return 0; | ||
11283 | } | ||
11284 | _ACEOF | ||
11285 | rm -f conftest.$ac_objext | ||
11286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11287 | (eval $ac_compile) 2>&5 | ||
11288 | ac_status=$? | ||
11289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11290 | (exit $ac_status); } && | ||
11291 | { ac_try='test -s conftest.$ac_objext' | ||
11292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11293 | (eval $ac_try) 2>&5 | ||
11294 | ac_status=$? | ||
11295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11296 | (exit $ac_status); }; }; then | ||
11297 | |||
11298 | cat >>confdefs.h <<\_ACEOF | ||
11299 | #define HAVE_INTXX_T 1 | ||
11300 | _ACEOF | ||
11301 | |||
11302 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11303 | echo "${ECHO_T}yes" >&6 | ||
11304 | |||
11305 | else | ||
11306 | echo "$as_me: failed program was:" >&5 | ||
11307 | cat conftest.$ac_ext >&5 | ||
11308 | echo "$as_me:$LINENO: result: no" >&5 | ||
11309 | echo "${ECHO_T}no" >&6 | ||
11310 | |||
11311 | fi | ||
11312 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11313 | fi | ||
11314 | |||
11315 | echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
11316 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
11317 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
11318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11319 | else | ||
11320 | |||
11321 | cat >conftest.$ac_ext <<_ACEOF | ||
11322 | #line $LINENO "configure" | ||
11323 | #include "confdefs.h" | ||
11324 | #include <sys/types.h> | ||
11325 | #ifdef F77_DUMMY_MAIN | ||
11326 | # ifdef __cplusplus | ||
11327 | extern "C" | ||
11328 | # endif | ||
11329 | int F77_DUMMY_MAIN() { return 1; } | ||
11330 | #endif | ||
11331 | int | ||
11332 | main () | ||
11333 | { | ||
11334 | int64_t a; a = 1; | ||
11335 | ; | ||
11336 | return 0; | ||
11337 | } | ||
11338 | _ACEOF | ||
11339 | rm -f conftest.$ac_objext | ||
11340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11341 | (eval $ac_compile) 2>&5 | ||
11342 | ac_status=$? | ||
11343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11344 | (exit $ac_status); } && | ||
11345 | { ac_try='test -s conftest.$ac_objext' | ||
11346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11347 | (eval $ac_try) 2>&5 | ||
11348 | ac_status=$? | ||
11349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11350 | (exit $ac_status); }; }; then | ||
11351 | ac_cv_have_int64_t="yes" | ||
11352 | else | ||
11353 | echo "$as_me: failed program was:" >&5 | ||
11354 | cat conftest.$ac_ext >&5 | ||
11355 | ac_cv_have_int64_t="no" | ||
11356 | |||
11357 | fi | ||
11358 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11359 | |||
11360 | fi | ||
11361 | echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
11362 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
11363 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
11364 | cat >>confdefs.h <<\_ACEOF | ||
11365 | #define HAVE_INT64_T 1 | ||
11366 | _ACEOF | ||
11367 | |||
11368 | have_int64_t=1 | ||
11369 | fi | ||
11370 | |||
11371 | if test -z "$have_int64_t" ; then | ||
11372 | echo "$as_me:$LINENO: checking for int64_t type in sys/socket.h" >&5 | ||
11373 | echo $ECHO_N "checking for int64_t type in sys/socket.h... $ECHO_C" >&6 | ||
11374 | cat >conftest.$ac_ext <<_ACEOF | ||
11375 | #line $LINENO "configure" | ||
11376 | #include "confdefs.h" | ||
11377 | #include <sys/socket.h> | ||
11378 | #ifdef F77_DUMMY_MAIN | ||
11379 | # ifdef __cplusplus | ||
11380 | extern "C" | ||
11381 | # endif | ||
11382 | int F77_DUMMY_MAIN() { return 1; } | ||
11383 | #endif | ||
11384 | int | ||
11385 | main () | ||
11386 | { | ||
11387 | int64_t a; a = 1 | ||
11388 | ; | ||
11389 | return 0; | ||
11390 | } | ||
11391 | _ACEOF | ||
11392 | rm -f conftest.$ac_objext | ||
11393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11394 | (eval $ac_compile) 2>&5 | ||
11395 | ac_status=$? | ||
11396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11397 | (exit $ac_status); } && | ||
11398 | { ac_try='test -s conftest.$ac_objext' | ||
11399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11400 | (eval $ac_try) 2>&5 | ||
11401 | ac_status=$? | ||
11402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11403 | (exit $ac_status); }; }; then | ||
11404 | |||
11405 | cat >>confdefs.h <<\_ACEOF | ||
11406 | #define HAVE_INT64_T 1 | ||
11407 | _ACEOF | ||
11408 | |||
11409 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11410 | echo "${ECHO_T}yes" >&6 | ||
11411 | |||
11412 | else | ||
11413 | echo "$as_me: failed program was:" >&5 | ||
11414 | cat conftest.$ac_ext >&5 | ||
11415 | echo "$as_me:$LINENO: result: no" >&5 | ||
11416 | echo "${ECHO_T}no" >&6 | ||
11417 | |||
11418 | fi | ||
11419 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11420 | fi | ||
11421 | |||
11422 | if test -z "$have_int64_t" ; then | ||
11423 | echo "$as_me:$LINENO: checking for int64_t type in sys/bitypes.h" >&5 | ||
11424 | echo $ECHO_N "checking for int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
11425 | cat >conftest.$ac_ext <<_ACEOF | ||
11426 | #line $LINENO "configure" | ||
11427 | #include "confdefs.h" | ||
11428 | #include <sys/bitypes.h> | ||
11429 | #ifdef F77_DUMMY_MAIN | ||
11430 | # ifdef __cplusplus | ||
11431 | extern "C" | ||
11432 | # endif | ||
11433 | int F77_DUMMY_MAIN() { return 1; } | ||
11434 | #endif | ||
11435 | int | ||
11436 | main () | ||
11437 | { | ||
11438 | int64_t a; a = 1 | ||
11439 | ; | ||
11440 | return 0; | ||
11441 | } | ||
11442 | _ACEOF | ||
11443 | rm -f conftest.$ac_objext | ||
11444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11445 | (eval $ac_compile) 2>&5 | ||
11446 | ac_status=$? | ||
11447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11448 | (exit $ac_status); } && | ||
11449 | { ac_try='test -s conftest.$ac_objext' | ||
11450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11451 | (eval $ac_try) 2>&5 | ||
11452 | ac_status=$? | ||
11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11454 | (exit $ac_status); }; }; then | ||
11455 | |||
11456 | cat >>confdefs.h <<\_ACEOF | ||
11457 | #define HAVE_INT64_T 1 | ||
11458 | _ACEOF | ||
11459 | |||
11460 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11461 | echo "${ECHO_T}yes" >&6 | ||
11462 | |||
11463 | else | ||
11464 | echo "$as_me: failed program was:" >&5 | ||
11465 | cat conftest.$ac_ext >&5 | ||
11466 | echo "$as_me:$LINENO: result: no" >&5 | ||
11467 | echo "${ECHO_T}no" >&6 | ||
11468 | |||
11469 | fi | ||
11470 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11471 | fi | ||
11472 | |||
11473 | echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
11474 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
11475 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
11476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11477 | else | ||
11478 | |||
11479 | cat >conftest.$ac_ext <<_ACEOF | ||
11480 | #line $LINENO "configure" | ||
11481 | #include "confdefs.h" | ||
11482 | #include <sys/types.h> | ||
11483 | #ifdef F77_DUMMY_MAIN | ||
11484 | # ifdef __cplusplus | ||
11485 | extern "C" | ||
11486 | # endif | ||
11487 | int F77_DUMMY_MAIN() { return 1; } | ||
11488 | #endif | ||
11489 | int | ||
11490 | main () | ||
11491 | { | ||
11492 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
11493 | ; | ||
11494 | return 0; | ||
11495 | } | ||
11496 | _ACEOF | ||
11497 | rm -f conftest.$ac_objext | ||
11498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11499 | (eval $ac_compile) 2>&5 | ||
11500 | ac_status=$? | ||
11501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11502 | (exit $ac_status); } && | ||
11503 | { ac_try='test -s conftest.$ac_objext' | ||
11504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11505 | (eval $ac_try) 2>&5 | ||
11506 | ac_status=$? | ||
11507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11508 | (exit $ac_status); }; }; then | ||
11509 | ac_cv_have_u_intxx_t="yes" | ||
11510 | else | ||
11511 | echo "$as_me: failed program was:" >&5 | ||
11512 | cat conftest.$ac_ext >&5 | ||
11513 | ac_cv_have_u_intxx_t="no" | ||
11514 | |||
11515 | fi | ||
11516 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11517 | |||
11518 | fi | ||
11519 | echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
11520 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
11521 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
11522 | cat >>confdefs.h <<\_ACEOF | ||
11523 | #define HAVE_U_INTXX_T 1 | ||
11524 | _ACEOF | ||
11525 | |||
11526 | have_u_intxx_t=1 | ||
11527 | fi | ||
11528 | |||
11529 | if test -z "$have_u_intxx_t" ; then | ||
11530 | echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
11531 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
11532 | cat >conftest.$ac_ext <<_ACEOF | ||
11533 | #line $LINENO "configure" | ||
11534 | #include "confdefs.h" | ||
11535 | #include <sys/socket.h> | ||
11536 | #ifdef F77_DUMMY_MAIN | ||
11537 | # ifdef __cplusplus | ||
11538 | extern "C" | ||
11539 | # endif | ||
11540 | int F77_DUMMY_MAIN() { return 1; } | ||
11541 | #endif | ||
11542 | int | ||
11543 | main () | ||
11544 | { | ||
11545 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
11546 | ; | ||
11547 | return 0; | ||
11548 | } | ||
11549 | _ACEOF | ||
11550 | rm -f conftest.$ac_objext | ||
11551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11552 | (eval $ac_compile) 2>&5 | ||
11553 | ac_status=$? | ||
11554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11555 | (exit $ac_status); } && | ||
11556 | { ac_try='test -s conftest.$ac_objext' | ||
11557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11558 | (eval $ac_try) 2>&5 | ||
11559 | ac_status=$? | ||
11560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11561 | (exit $ac_status); }; }; then | ||
11562 | |||
11563 | cat >>confdefs.h <<\_ACEOF | ||
11564 | #define HAVE_U_INTXX_T 1 | ||
11565 | _ACEOF | ||
11566 | |||
11567 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11568 | echo "${ECHO_T}yes" >&6 | ||
11569 | |||
11570 | else | ||
11571 | echo "$as_me: failed program was:" >&5 | ||
11572 | cat conftest.$ac_ext >&5 | ||
11573 | echo "$as_me:$LINENO: result: no" >&5 | ||
11574 | echo "${ECHO_T}no" >&6 | ||
11575 | |||
11576 | fi | ||
11577 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11578 | fi | ||
11579 | |||
11580 | echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
11581 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
11582 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
11583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11584 | else | ||
11585 | |||
11586 | cat >conftest.$ac_ext <<_ACEOF | ||
11587 | #line $LINENO "configure" | ||
11588 | #include "confdefs.h" | ||
11589 | #include <sys/types.h> | ||
11590 | #ifdef F77_DUMMY_MAIN | ||
11591 | # ifdef __cplusplus | ||
11592 | extern "C" | ||
11593 | # endif | ||
11594 | int F77_DUMMY_MAIN() { return 1; } | ||
11595 | #endif | ||
11596 | int | ||
11597 | main () | ||
11598 | { | ||
11599 | u_int64_t a; a = 1; | ||
11600 | ; | ||
11601 | return 0; | ||
11602 | } | ||
11603 | _ACEOF | ||
11604 | rm -f conftest.$ac_objext | ||
11605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11606 | (eval $ac_compile) 2>&5 | ||
11607 | ac_status=$? | ||
11608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11609 | (exit $ac_status); } && | ||
11610 | { ac_try='test -s conftest.$ac_objext' | ||
11611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11612 | (eval $ac_try) 2>&5 | ||
11613 | ac_status=$? | ||
11614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11615 | (exit $ac_status); }; }; then | ||
11616 | ac_cv_have_u_int64_t="yes" | ||
11617 | else | ||
11618 | echo "$as_me: failed program was:" >&5 | ||
11619 | cat conftest.$ac_ext >&5 | ||
11620 | ac_cv_have_u_int64_t="no" | ||
11621 | |||
11622 | fi | ||
11623 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11624 | |||
11625 | fi | ||
11626 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
11627 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
11628 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
11629 | cat >>confdefs.h <<\_ACEOF | ||
11630 | #define HAVE_U_INT64_T 1 | ||
11631 | _ACEOF | ||
11632 | |||
11633 | have_u_int64_t=1 | ||
11634 | fi | ||
11635 | |||
11636 | if test -z "$have_u_int64_t" ; then | ||
11637 | echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
11638 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
11639 | cat >conftest.$ac_ext <<_ACEOF | ||
11640 | #line $LINENO "configure" | ||
11641 | #include "confdefs.h" | ||
11642 | #include <sys/bitypes.h> | ||
11643 | #ifdef F77_DUMMY_MAIN | ||
11644 | # ifdef __cplusplus | ||
11645 | extern "C" | ||
11646 | # endif | ||
11647 | int F77_DUMMY_MAIN() { return 1; } | ||
11648 | #endif | ||
11649 | int | ||
11650 | main () | ||
11651 | { | ||
11652 | u_int64_t a; a = 1 | ||
11653 | ; | ||
11654 | return 0; | ||
11655 | } | ||
11656 | _ACEOF | ||
11657 | rm -f conftest.$ac_objext | ||
11658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11659 | (eval $ac_compile) 2>&5 | ||
11660 | ac_status=$? | ||
11661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11662 | (exit $ac_status); } && | ||
11663 | { ac_try='test -s conftest.$ac_objext' | ||
11664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11665 | (eval $ac_try) 2>&5 | ||
11666 | ac_status=$? | ||
11667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11668 | (exit $ac_status); }; }; then | ||
11669 | |||
11670 | cat >>confdefs.h <<\_ACEOF | ||
11671 | #define HAVE_U_INT64_T 1 | ||
11672 | _ACEOF | ||
11673 | |||
11674 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11675 | echo "${ECHO_T}yes" >&6 | ||
11676 | |||
11677 | else | ||
11678 | echo "$as_me: failed program was:" >&5 | ||
11679 | cat conftest.$ac_ext >&5 | ||
11680 | echo "$as_me:$LINENO: result: no" >&5 | ||
11681 | echo "${ECHO_T}no" >&6 | ||
11682 | |||
11683 | fi | ||
11684 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11685 | fi | ||
11686 | |||
11687 | if test -z "$have_u_intxx_t" ; then | ||
11688 | echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
11689 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
11690 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
11691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11692 | else | ||
11693 | |||
11694 | cat >conftest.$ac_ext <<_ACEOF | ||
11695 | #line $LINENO "configure" | ||
11696 | #include "confdefs.h" | ||
11697 | |||
11698 | #include <sys/types.h> | ||
11699 | |||
11700 | #ifdef F77_DUMMY_MAIN | ||
11701 | # ifdef __cplusplus | ||
11702 | extern "C" | ||
11703 | # endif | ||
11704 | int F77_DUMMY_MAIN() { return 1; } | ||
11705 | #endif | ||
11706 | int | ||
11707 | main () | ||
11708 | { | ||
11709 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
11710 | ; | ||
11711 | return 0; | ||
11712 | } | ||
11713 | _ACEOF | ||
11714 | rm -f conftest.$ac_objext | ||
11715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11716 | (eval $ac_compile) 2>&5 | ||
11717 | ac_status=$? | ||
11718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11719 | (exit $ac_status); } && | ||
11720 | { ac_try='test -s conftest.$ac_objext' | ||
11721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11722 | (eval $ac_try) 2>&5 | ||
11723 | ac_status=$? | ||
11724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11725 | (exit $ac_status); }; }; then | ||
11726 | ac_cv_have_uintxx_t="yes" | ||
11727 | else | ||
11728 | echo "$as_me: failed program was:" >&5 | ||
11729 | cat conftest.$ac_ext >&5 | ||
11730 | ac_cv_have_uintxx_t="no" | ||
11731 | |||
11732 | fi | ||
11733 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11734 | |||
11735 | fi | ||
11736 | echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
11737 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
11738 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
11739 | cat >>confdefs.h <<\_ACEOF | ||
11740 | #define HAVE_UINTXX_T 1 | ||
11741 | _ACEOF | ||
11742 | |||
11743 | fi | ||
11744 | fi | ||
11745 | |||
11746 | if test -z "$have_uintxx_t" ; then | ||
11747 | echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
11748 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
11749 | cat >conftest.$ac_ext <<_ACEOF | ||
11750 | #line $LINENO "configure" | ||
11751 | #include "confdefs.h" | ||
11752 | #include <stdint.h> | ||
11753 | #ifdef F77_DUMMY_MAIN | ||
11754 | # ifdef __cplusplus | ||
11755 | extern "C" | ||
11756 | # endif | ||
11757 | int F77_DUMMY_MAIN() { return 1; } | ||
11758 | #endif | ||
11759 | int | ||
11760 | main () | ||
11761 | { | ||
11762 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
11763 | ; | ||
11764 | return 0; | ||
11765 | } | ||
11766 | _ACEOF | ||
11767 | rm -f conftest.$ac_objext | ||
11768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11769 | (eval $ac_compile) 2>&5 | ||
11770 | ac_status=$? | ||
11771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11772 | (exit $ac_status); } && | ||
11773 | { ac_try='test -s conftest.$ac_objext' | ||
11774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11775 | (eval $ac_try) 2>&5 | ||
11776 | ac_status=$? | ||
11777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11778 | (exit $ac_status); }; }; then | ||
11779 | |||
11780 | cat >>confdefs.h <<\_ACEOF | ||
11781 | #define HAVE_UINTXX_T 1 | ||
11782 | _ACEOF | ||
11783 | |||
11784 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11785 | echo "${ECHO_T}yes" >&6 | ||
11786 | |||
11787 | else | ||
11788 | echo "$as_me: failed program was:" >&5 | ||
11789 | cat conftest.$ac_ext >&5 | ||
11790 | echo "$as_me:$LINENO: result: no" >&5 | ||
11791 | echo "${ECHO_T}no" >&6 | ||
11792 | |||
11793 | fi | ||
11794 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11795 | fi | ||
11796 | |||
11797 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
11798 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
11799 | then | ||
11800 | echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
11801 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
11802 | cat >conftest.$ac_ext <<_ACEOF | ||
11803 | #line $LINENO "configure" | ||
11804 | #include "confdefs.h" | ||
11805 | |||
11806 | #include <sys/bitypes.h> | ||
11807 | |||
11808 | #ifdef F77_DUMMY_MAIN | ||
11809 | # ifdef __cplusplus | ||
11810 | extern "C" | ||
11811 | # endif | ||
11812 | int F77_DUMMY_MAIN() { return 1; } | ||
11813 | #endif | ||
11814 | int | ||
11815 | main () | ||
11816 | { | ||
11817 | |||
11818 | int8_t a; int16_t b; int32_t c; | ||
11819 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
11820 | a = b = c = e = f = g = 1; | ||
11821 | |||
11822 | ; | ||
11823 | return 0; | ||
11824 | } | ||
11825 | _ACEOF | ||
11826 | rm -f conftest.$ac_objext | ||
11827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11828 | (eval $ac_compile) 2>&5 | ||
11829 | ac_status=$? | ||
11830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11831 | (exit $ac_status); } && | ||
11832 | { ac_try='test -s conftest.$ac_objext' | ||
11833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11834 | (eval $ac_try) 2>&5 | ||
11835 | ac_status=$? | ||
11836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11837 | (exit $ac_status); }; }; then | ||
11838 | |||
11839 | cat >>confdefs.h <<\_ACEOF | ||
11840 | #define HAVE_U_INTXX_T 1 | ||
11841 | _ACEOF | ||
11842 | |||
11843 | cat >>confdefs.h <<\_ACEOF | ||
11844 | #define HAVE_INTXX_T 1 | ||
11845 | _ACEOF | ||
11846 | |||
11847 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11848 | echo "${ECHO_T}yes" >&6 | ||
11849 | |||
11850 | else | ||
11851 | echo "$as_me: failed program was:" >&5 | ||
11852 | cat conftest.$ac_ext >&5 | ||
11853 | echo "$as_me:$LINENO: result: no" >&5 | ||
11854 | echo "${ECHO_T}no" >&6 | ||
11855 | |||
11856 | fi | ||
11857 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11858 | fi | ||
11859 | |||
11860 | |||
11861 | echo "$as_me:$LINENO: checking for u_char" >&5 | ||
11862 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
11863 | if test "${ac_cv_have_u_char+set}" = set; then | ||
11864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11865 | else | ||
11866 | |||
11867 | cat >conftest.$ac_ext <<_ACEOF | ||
11868 | #line $LINENO "configure" | ||
11869 | #include "confdefs.h" | ||
11870 | |||
11871 | #include <sys/types.h> | ||
11872 | |||
11873 | #ifdef F77_DUMMY_MAIN | ||
11874 | # ifdef __cplusplus | ||
11875 | extern "C" | ||
11876 | # endif | ||
11877 | int F77_DUMMY_MAIN() { return 1; } | ||
11878 | #endif | ||
11879 | int | ||
11880 | main () | ||
11881 | { | ||
11882 | u_char foo; foo = 125; | ||
11883 | ; | ||
11884 | return 0; | ||
11885 | } | ||
11886 | _ACEOF | ||
11887 | rm -f conftest.$ac_objext | ||
11888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11889 | (eval $ac_compile) 2>&5 | ||
11890 | ac_status=$? | ||
11891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11892 | (exit $ac_status); } && | ||
11893 | { ac_try='test -s conftest.$ac_objext' | ||
11894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11895 | (eval $ac_try) 2>&5 | ||
11896 | ac_status=$? | ||
11897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11898 | (exit $ac_status); }; }; then | ||
11899 | ac_cv_have_u_char="yes" | ||
11900 | else | ||
11901 | echo "$as_me: failed program was:" >&5 | ||
11902 | cat conftest.$ac_ext >&5 | ||
11903 | ac_cv_have_u_char="no" | ||
11904 | |||
11905 | fi | ||
11906 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11907 | |||
11908 | fi | ||
11909 | echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
11910 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
11911 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
11912 | cat >>confdefs.h <<\_ACEOF | ||
11913 | #define HAVE_U_CHAR 1 | ||
11914 | _ACEOF | ||
11915 | |||
11916 | fi | ||
11917 | |||
11918 | |||
11919 | echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
11920 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
11921 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
11922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11923 | else | ||
11924 | cat >conftest.$ac_ext <<_ACEOF | ||
11925 | #line $LINENO "configure" | ||
11926 | #include "confdefs.h" | ||
11927 | #include <sys/types.h> | ||
11928 | #include <sys/socket.h> | ||
11929 | |||
11930 | #ifdef F77_DUMMY_MAIN | ||
11931 | # ifdef __cplusplus | ||
11932 | extern "C" | ||
11933 | # endif | ||
11934 | int F77_DUMMY_MAIN() { return 1; } | ||
11935 | #endif | ||
11936 | int | ||
11937 | main () | ||
11938 | { | ||
11939 | if ((socklen_t *) 0) | ||
11940 | return 0; | ||
11941 | if (sizeof (socklen_t)) | ||
11942 | return 0; | ||
11943 | ; | ||
11944 | return 0; | ||
11945 | } | ||
11946 | _ACEOF | ||
11947 | rm -f conftest.$ac_objext | ||
11948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11949 | (eval $ac_compile) 2>&5 | ||
11950 | ac_status=$? | ||
11951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11952 | (exit $ac_status); } && | ||
11953 | { ac_try='test -s conftest.$ac_objext' | ||
11954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11955 | (eval $ac_try) 2>&5 | ||
11956 | ac_status=$? | ||
11957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11958 | (exit $ac_status); }; }; then | ||
11959 | ac_cv_type_socklen_t=yes | ||
11960 | else | ||
11961 | echo "$as_me: failed program was:" >&5 | ||
11962 | cat conftest.$ac_ext >&5 | ||
11963 | ac_cv_type_socklen_t=no | ||
11964 | fi | ||
11965 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11966 | fi | ||
11967 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
11968 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
11969 | if test $ac_cv_type_socklen_t = yes; then | ||
11970 | : | ||
11971 | else | ||
11972 | |||
11973 | echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
11974 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
11975 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
11976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11977 | else | ||
11978 | |||
11979 | # Systems have either "struct sockaddr *" or | ||
11980 | # "void *" as the second argument to getpeername | ||
11981 | curl_cv_socklen_t_equiv= | ||
11982 | for arg2 in "struct sockaddr" void; do | ||
11983 | for t in int size_t unsigned long "unsigned long"; do | ||
11984 | cat >conftest.$ac_ext <<_ACEOF | ||
11985 | #line $LINENO "configure" | ||
11986 | #include "confdefs.h" | ||
11987 | |||
11988 | #include <sys/types.h> | ||
11989 | #include <sys/socket.h> | ||
11990 | |||
11991 | int getpeername (int, $arg2 *, $t *); | ||
11992 | |||
11993 | #ifdef F77_DUMMY_MAIN | ||
11994 | # ifdef __cplusplus | ||
11995 | extern "C" | ||
11996 | # endif | ||
11997 | int F77_DUMMY_MAIN() { return 1; } | ||
11998 | #endif | ||
11999 | int | ||
12000 | main () | ||
12001 | { | ||
12002 | |||
12003 | $t len; | ||
12004 | getpeername(0,0,&len); | ||
12005 | |||
12006 | ; | ||
12007 | return 0; | ||
12008 | } | ||
12009 | _ACEOF | ||
12010 | rm -f conftest.$ac_objext | ||
12011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12012 | (eval $ac_compile) 2>&5 | ||
12013 | ac_status=$? | ||
12014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12015 | (exit $ac_status); } && | ||
12016 | { ac_try='test -s conftest.$ac_objext' | ||
12017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12018 | (eval $ac_try) 2>&5 | ||
12019 | ac_status=$? | ||
12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12021 | (exit $ac_status); }; }; then | ||
12022 | |||
12023 | curl_cv_socklen_t_equiv="$t" | ||
12024 | break | ||
12025 | |||
12026 | else | ||
12027 | echo "$as_me: failed program was:" >&5 | ||
12028 | cat conftest.$ac_ext >&5 | ||
12029 | fi | ||
12030 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12031 | done | ||
12032 | done | ||
12033 | |||
12034 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
12035 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
12036 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
12037 | { (exit 1); exit 1; }; } | ||
12038 | fi | ||
12039 | |||
12040 | fi | ||
12041 | |||
12042 | echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
12043 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
12044 | |||
12045 | cat >>confdefs.h <<_ACEOF | ||
12046 | #define socklen_t $curl_cv_socklen_t_equiv | ||
12047 | _ACEOF | ||
12048 | |||
12049 | fi | ||
12050 | |||
12051 | |||
12052 | |||
12053 | echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
12054 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
12055 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
12056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12057 | else | ||
12058 | cat >conftest.$ac_ext <<_ACEOF | ||
12059 | #line $LINENO "configure" | ||
12060 | #include "confdefs.h" | ||
12061 | #include <signal.h> | ||
12062 | |||
12063 | #ifdef F77_DUMMY_MAIN | ||
12064 | # ifdef __cplusplus | ||
12065 | extern "C" | ||
12066 | # endif | ||
12067 | int F77_DUMMY_MAIN() { return 1; } | ||
12068 | #endif | ||
12069 | int | ||
12070 | main () | ||
12071 | { | ||
12072 | if ((sig_atomic_t *) 0) | ||
12073 | return 0; | ||
12074 | if (sizeof (sig_atomic_t)) | ||
12075 | return 0; | ||
12076 | ; | ||
12077 | return 0; | ||
12078 | } | ||
12079 | _ACEOF | ||
12080 | rm -f conftest.$ac_objext | ||
12081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12082 | (eval $ac_compile) 2>&5 | ||
12083 | ac_status=$? | ||
12084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12085 | (exit $ac_status); } && | ||
12086 | { ac_try='test -s conftest.$ac_objext' | ||
12087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12088 | (eval $ac_try) 2>&5 | ||
12089 | ac_status=$? | ||
12090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12091 | (exit $ac_status); }; }; then | ||
12092 | ac_cv_type_sig_atomic_t=yes | ||
12093 | else | ||
12094 | echo "$as_me: failed program was:" >&5 | ||
12095 | cat conftest.$ac_ext >&5 | ||
12096 | ac_cv_type_sig_atomic_t=no | ||
12097 | fi | ||
12098 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12099 | fi | ||
12100 | echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
12101 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
12102 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
12103 | |||
12104 | cat >>confdefs.h <<_ACEOF | ||
12105 | #define HAVE_SIG_ATOMIC_T 1 | ||
12106 | _ACEOF | ||
12107 | |||
12108 | |||
12109 | fi | ||
12110 | |||
12111 | |||
12112 | echo "$as_me:$LINENO: checking for size_t" >&5 | ||
12113 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
12114 | if test "${ac_cv_have_size_t+set}" = set; then | ||
12115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12116 | else | ||
12117 | |||
12118 | cat >conftest.$ac_ext <<_ACEOF | ||
12119 | #line $LINENO "configure" | ||
12120 | #include "confdefs.h" | ||
12121 | |||
12122 | #include <sys/types.h> | ||
12123 | |||
12124 | #ifdef F77_DUMMY_MAIN | ||
12125 | # ifdef __cplusplus | ||
12126 | extern "C" | ||
12127 | # endif | ||
12128 | int F77_DUMMY_MAIN() { return 1; } | ||
12129 | #endif | ||
12130 | int | ||
12131 | main () | ||
12132 | { | ||
12133 | size_t foo; foo = 1235; | ||
12134 | ; | ||
12135 | return 0; | ||
12136 | } | ||
12137 | _ACEOF | ||
12138 | rm -f conftest.$ac_objext | ||
12139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12140 | (eval $ac_compile) 2>&5 | ||
12141 | ac_status=$? | ||
12142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12143 | (exit $ac_status); } && | ||
12144 | { ac_try='test -s conftest.$ac_objext' | ||
12145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12146 | (eval $ac_try) 2>&5 | ||
12147 | ac_status=$? | ||
12148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12149 | (exit $ac_status); }; }; then | ||
12150 | ac_cv_have_size_t="yes" | ||
12151 | else | ||
12152 | echo "$as_me: failed program was:" >&5 | ||
12153 | cat conftest.$ac_ext >&5 | ||
12154 | ac_cv_have_size_t="no" | ||
12155 | |||
12156 | fi | ||
12157 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12158 | |||
12159 | fi | ||
12160 | echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
12161 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
12162 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
12163 | cat >>confdefs.h <<\_ACEOF | ||
12164 | #define HAVE_SIZE_T 1 | ||
12165 | _ACEOF | ||
12166 | |||
12167 | fi | ||
12168 | |||
12169 | echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
12170 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
12171 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
12172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12173 | else | ||
12174 | |||
12175 | cat >conftest.$ac_ext <<_ACEOF | ||
12176 | #line $LINENO "configure" | ||
12177 | #include "confdefs.h" | ||
12178 | |||
12179 | #include <sys/types.h> | ||
12180 | |||
12181 | #ifdef F77_DUMMY_MAIN | ||
12182 | # ifdef __cplusplus | ||
12183 | extern "C" | ||
12184 | # endif | ||
12185 | int F77_DUMMY_MAIN() { return 1; } | ||
12186 | #endif | ||
12187 | int | ||
12188 | main () | ||
12189 | { | ||
12190 | ssize_t foo; foo = 1235; | ||
12191 | ; | ||
12192 | return 0; | ||
12193 | } | ||
12194 | _ACEOF | ||
12195 | rm -f conftest.$ac_objext | ||
12196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12197 | (eval $ac_compile) 2>&5 | ||
12198 | ac_status=$? | ||
12199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12200 | (exit $ac_status); } && | ||
12201 | { ac_try='test -s conftest.$ac_objext' | ||
12202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12203 | (eval $ac_try) 2>&5 | ||
12204 | ac_status=$? | ||
12205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12206 | (exit $ac_status); }; }; then | ||
12207 | ac_cv_have_ssize_t="yes" | ||
12208 | else | ||
12209 | echo "$as_me: failed program was:" >&5 | ||
12210 | cat conftest.$ac_ext >&5 | ||
12211 | ac_cv_have_ssize_t="no" | ||
12212 | |||
12213 | fi | ||
12214 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12215 | |||
12216 | fi | ||
12217 | echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
12218 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
12219 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
12220 | cat >>confdefs.h <<\_ACEOF | ||
12221 | #define HAVE_SSIZE_T 1 | ||
12222 | _ACEOF | ||
12223 | |||
12224 | fi | ||
12225 | |||
12226 | echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
12227 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
12228 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
12229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12230 | else | ||
12231 | |||
12232 | cat >conftest.$ac_ext <<_ACEOF | ||
12233 | #line $LINENO "configure" | ||
12234 | #include "confdefs.h" | ||
12235 | |||
12236 | #include <time.h> | ||
12237 | |||
12238 | #ifdef F77_DUMMY_MAIN | ||
12239 | # ifdef __cplusplus | ||
12240 | extern "C" | ||
12241 | # endif | ||
12242 | int F77_DUMMY_MAIN() { return 1; } | ||
12243 | #endif | ||
12244 | int | ||
12245 | main () | ||
12246 | { | ||
12247 | clock_t foo; foo = 1235; | ||
12248 | ; | ||
12249 | return 0; | ||
12250 | } | ||
12251 | _ACEOF | ||
12252 | rm -f conftest.$ac_objext | ||
12253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12254 | (eval $ac_compile) 2>&5 | ||
12255 | ac_status=$? | ||
12256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12257 | (exit $ac_status); } && | ||
12258 | { ac_try='test -s conftest.$ac_objext' | ||
12259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12260 | (eval $ac_try) 2>&5 | ||
12261 | ac_status=$? | ||
12262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12263 | (exit $ac_status); }; }; then | ||
12264 | ac_cv_have_clock_t="yes" | ||
12265 | else | ||
12266 | echo "$as_me: failed program was:" >&5 | ||
12267 | cat conftest.$ac_ext >&5 | ||
12268 | ac_cv_have_clock_t="no" | ||
12269 | |||
12270 | fi | ||
12271 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12272 | |||
12273 | fi | ||
12274 | echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
12275 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
12276 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
12277 | cat >>confdefs.h <<\_ACEOF | ||
12278 | #define HAVE_CLOCK_T 1 | ||
12279 | _ACEOF | ||
12280 | |||
12281 | fi | ||
12282 | |||
12283 | echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
12284 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
12285 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
12286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12287 | else | ||
12288 | |||
12289 | cat >conftest.$ac_ext <<_ACEOF | ||
12290 | #line $LINENO "configure" | ||
12291 | #include "confdefs.h" | ||
12292 | |||
12293 | #include <sys/types.h> | ||
12294 | #include <sys/socket.h> | ||
12295 | |||
12296 | #ifdef F77_DUMMY_MAIN | ||
12297 | # ifdef __cplusplus | ||
12298 | extern "C" | ||
12299 | # endif | ||
12300 | int F77_DUMMY_MAIN() { return 1; } | ||
12301 | #endif | ||
12302 | int | ||
12303 | main () | ||
12304 | { | ||
12305 | sa_family_t foo; foo = 1235; | ||
12306 | ; | ||
12307 | return 0; | ||
12308 | } | ||
12309 | _ACEOF | ||
12310 | rm -f conftest.$ac_objext | ||
12311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12312 | (eval $ac_compile) 2>&5 | ||
12313 | ac_status=$? | ||
12314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12315 | (exit $ac_status); } && | ||
12316 | { ac_try='test -s conftest.$ac_objext' | ||
12317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12318 | (eval $ac_try) 2>&5 | ||
12319 | ac_status=$? | ||
12320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12321 | (exit $ac_status); }; }; then | ||
12322 | ac_cv_have_sa_family_t="yes" | ||
12323 | else | ||
12324 | echo "$as_me: failed program was:" >&5 | ||
12325 | cat conftest.$ac_ext >&5 | ||
12326 | cat >conftest.$ac_ext <<_ACEOF | ||
12327 | #line $LINENO "configure" | ||
12328 | #include "confdefs.h" | ||
12329 | |||
12330 | #include <sys/types.h> | ||
12331 | #include <sys/socket.h> | ||
12332 | #include <netinet/in.h> | ||
12333 | |||
12334 | #ifdef F77_DUMMY_MAIN | ||
12335 | # ifdef __cplusplus | ||
12336 | extern "C" | ||
12337 | # endif | ||
12338 | int F77_DUMMY_MAIN() { return 1; } | ||
12339 | #endif | ||
12340 | int | ||
12341 | main () | ||
12342 | { | ||
12343 | sa_family_t foo; foo = 1235; | ||
12344 | ; | ||
12345 | return 0; | ||
12346 | } | ||
12347 | _ACEOF | ||
12348 | rm -f conftest.$ac_objext | ||
12349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12350 | (eval $ac_compile) 2>&5 | ||
12351 | ac_status=$? | ||
12352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12353 | (exit $ac_status); } && | ||
12354 | { ac_try='test -s conftest.$ac_objext' | ||
12355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12356 | (eval $ac_try) 2>&5 | ||
12357 | ac_status=$? | ||
12358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12359 | (exit $ac_status); }; }; then | ||
12360 | ac_cv_have_sa_family_t="yes" | ||
12361 | else | ||
12362 | echo "$as_me: failed program was:" >&5 | ||
12363 | cat conftest.$ac_ext >&5 | ||
12364 | ac_cv_have_sa_family_t="no" | ||
12365 | |||
12366 | fi | ||
12367 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12368 | |||
12369 | fi | ||
12370 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12371 | |||
12372 | fi | ||
12373 | echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
12374 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
12375 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
12376 | cat >>confdefs.h <<\_ACEOF | ||
12377 | #define HAVE_SA_FAMILY_T 1 | ||
12378 | _ACEOF | ||
12379 | |||
12380 | fi | ||
12381 | |||
12382 | echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
12383 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
12384 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
12385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12386 | else | ||
12387 | |||
12388 | cat >conftest.$ac_ext <<_ACEOF | ||
12389 | #line $LINENO "configure" | ||
12390 | #include "confdefs.h" | ||
12391 | |||
12392 | #include <sys/types.h> | ||
12393 | |||
12394 | #ifdef F77_DUMMY_MAIN | ||
12395 | # ifdef __cplusplus | ||
12396 | extern "C" | ||
12397 | # endif | ||
12398 | int F77_DUMMY_MAIN() { return 1; } | ||
12399 | #endif | ||
12400 | int | ||
12401 | main () | ||
12402 | { | ||
12403 | pid_t foo; foo = 1235; | ||
12404 | ; | ||
12405 | return 0; | ||
12406 | } | ||
12407 | _ACEOF | ||
12408 | rm -f conftest.$ac_objext | ||
12409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12410 | (eval $ac_compile) 2>&5 | ||
12411 | ac_status=$? | ||
12412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12413 | (exit $ac_status); } && | ||
12414 | { ac_try='test -s conftest.$ac_objext' | ||
12415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12416 | (eval $ac_try) 2>&5 | ||
12417 | ac_status=$? | ||
12418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12419 | (exit $ac_status); }; }; then | ||
12420 | ac_cv_have_pid_t="yes" | ||
12421 | else | ||
12422 | echo "$as_me: failed program was:" >&5 | ||
12423 | cat conftest.$ac_ext >&5 | ||
12424 | ac_cv_have_pid_t="no" | ||
12425 | |||
12426 | fi | ||
12427 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12428 | |||
12429 | fi | ||
12430 | echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
12431 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
12432 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
12433 | cat >>confdefs.h <<\_ACEOF | ||
12434 | #define HAVE_PID_T 1 | ||
12435 | _ACEOF | ||
12436 | |||
12437 | fi | ||
12438 | |||
12439 | echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
12440 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
12441 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
12442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12443 | else | ||
12444 | |||
12445 | cat >conftest.$ac_ext <<_ACEOF | ||
12446 | #line $LINENO "configure" | ||
12447 | #include "confdefs.h" | ||
12448 | |||
12449 | #include <sys/types.h> | ||
12450 | |||
12451 | #ifdef F77_DUMMY_MAIN | ||
12452 | # ifdef __cplusplus | ||
12453 | extern "C" | ||
12454 | # endif | ||
12455 | int F77_DUMMY_MAIN() { return 1; } | ||
12456 | #endif | ||
12457 | int | ||
12458 | main () | ||
12459 | { | ||
12460 | mode_t foo; foo = 1235; | ||
12461 | ; | ||
12462 | return 0; | ||
12463 | } | ||
12464 | _ACEOF | ||
12465 | rm -f conftest.$ac_objext | ||
12466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12467 | (eval $ac_compile) 2>&5 | ||
12468 | ac_status=$? | ||
12469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12470 | (exit $ac_status); } && | ||
12471 | { ac_try='test -s conftest.$ac_objext' | ||
12472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12473 | (eval $ac_try) 2>&5 | ||
12474 | ac_status=$? | ||
12475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12476 | (exit $ac_status); }; }; then | ||
12477 | ac_cv_have_mode_t="yes" | ||
12478 | else | ||
12479 | echo "$as_me: failed program was:" >&5 | ||
12480 | cat conftest.$ac_ext >&5 | ||
12481 | ac_cv_have_mode_t="no" | ||
12482 | |||
12483 | fi | ||
12484 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12485 | |||
12486 | fi | ||
12487 | echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
12488 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
12489 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
12490 | cat >>confdefs.h <<\_ACEOF | ||
12491 | #define HAVE_MODE_T 1 | ||
12492 | _ACEOF | ||
12493 | |||
12494 | fi | ||
12495 | |||
12496 | |||
12497 | echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
12498 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
12499 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
12500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12501 | else | ||
12502 | |||
12503 | cat >conftest.$ac_ext <<_ACEOF | ||
12504 | #line $LINENO "configure" | ||
12505 | #include "confdefs.h" | ||
12506 | |||
12507 | #include <sys/types.h> | ||
12508 | #include <sys/socket.h> | ||
12509 | |||
12510 | #ifdef F77_DUMMY_MAIN | ||
12511 | # ifdef __cplusplus | ||
12512 | extern "C" | ||
12513 | # endif | ||
12514 | int F77_DUMMY_MAIN() { return 1; } | ||
12515 | #endif | ||
12516 | int | ||
12517 | main () | ||
12518 | { | ||
12519 | struct sockaddr_storage s; | ||
12520 | ; | ||
12521 | return 0; | ||
12522 | } | ||
12523 | _ACEOF | ||
12524 | rm -f conftest.$ac_objext | ||
12525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12526 | (eval $ac_compile) 2>&5 | ||
12527 | ac_status=$? | ||
12528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12529 | (exit $ac_status); } && | ||
12530 | { ac_try='test -s conftest.$ac_objext' | ||
12531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12532 | (eval $ac_try) 2>&5 | ||
12533 | ac_status=$? | ||
12534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12535 | (exit $ac_status); }; }; then | ||
12536 | ac_cv_have_struct_sockaddr_storage="yes" | ||
12537 | else | ||
12538 | echo "$as_me: failed program was:" >&5 | ||
12539 | cat conftest.$ac_ext >&5 | ||
12540 | ac_cv_have_struct_sockaddr_storage="no" | ||
12541 | |||
12542 | fi | ||
12543 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12544 | |||
12545 | fi | ||
12546 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
12547 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
12548 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
12549 | cat >>confdefs.h <<\_ACEOF | ||
12550 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
12551 | _ACEOF | ||
12552 | |||
12553 | fi | ||
12554 | |||
12555 | echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
12556 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
12557 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
12558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12559 | else | ||
12560 | |||
12561 | cat >conftest.$ac_ext <<_ACEOF | ||
12562 | #line $LINENO "configure" | ||
12563 | #include "confdefs.h" | ||
12564 | |||
12565 | #include <sys/types.h> | ||
12566 | #include <netinet/in.h> | ||
12567 | |||
12568 | #ifdef F77_DUMMY_MAIN | ||
12569 | # ifdef __cplusplus | ||
12570 | extern "C" | ||
12571 | # endif | ||
12572 | int F77_DUMMY_MAIN() { return 1; } | ||
12573 | #endif | ||
12574 | int | ||
12575 | main () | ||
12576 | { | ||
12577 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
12578 | ; | ||
12579 | return 0; | ||
12580 | } | ||
12581 | _ACEOF | ||
12582 | rm -f conftest.$ac_objext | ||
12583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12584 | (eval $ac_compile) 2>&5 | ||
12585 | ac_status=$? | ||
12586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12587 | (exit $ac_status); } && | ||
12588 | { ac_try='test -s conftest.$ac_objext' | ||
12589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12590 | (eval $ac_try) 2>&5 | ||
12591 | ac_status=$? | ||
12592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12593 | (exit $ac_status); }; }; then | ||
12594 | ac_cv_have_struct_sockaddr_in6="yes" | ||
12595 | else | ||
12596 | echo "$as_me: failed program was:" >&5 | ||
12597 | cat conftest.$ac_ext >&5 | ||
12598 | ac_cv_have_struct_sockaddr_in6="no" | ||
12599 | |||
12600 | fi | ||
12601 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12602 | |||
12603 | fi | ||
12604 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
12605 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
12606 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
12607 | cat >>confdefs.h <<\_ACEOF | ||
12608 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
12609 | _ACEOF | ||
12610 | |||
12611 | fi | ||
12612 | |||
12613 | echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
12614 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
12615 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
12616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12617 | else | ||
12618 | |||
12619 | cat >conftest.$ac_ext <<_ACEOF | ||
12620 | #line $LINENO "configure" | ||
12621 | #include "confdefs.h" | ||
12622 | |||
12623 | #include <sys/types.h> | ||
12624 | #include <netinet/in.h> | ||
12625 | |||
12626 | #ifdef F77_DUMMY_MAIN | ||
12627 | # ifdef __cplusplus | ||
12628 | extern "C" | ||
12629 | # endif | ||
12630 | int F77_DUMMY_MAIN() { return 1; } | ||
12631 | #endif | ||
12632 | int | ||
12633 | main () | ||
12634 | { | ||
12635 | struct in6_addr s; s.s6_addr[0] = 0; | ||
12636 | ; | ||
12637 | return 0; | ||
12638 | } | ||
12639 | _ACEOF | ||
12640 | rm -f conftest.$ac_objext | ||
12641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12642 | (eval $ac_compile) 2>&5 | ||
12643 | ac_status=$? | ||
12644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12645 | (exit $ac_status); } && | ||
12646 | { ac_try='test -s conftest.$ac_objext' | ||
12647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12648 | (eval $ac_try) 2>&5 | ||
12649 | ac_status=$? | ||
12650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12651 | (exit $ac_status); }; }; then | ||
12652 | ac_cv_have_struct_in6_addr="yes" | ||
12653 | else | ||
12654 | echo "$as_me: failed program was:" >&5 | ||
12655 | cat conftest.$ac_ext >&5 | ||
12656 | ac_cv_have_struct_in6_addr="no" | ||
12657 | |||
12658 | fi | ||
12659 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12660 | |||
12661 | fi | ||
12662 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
12663 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
12664 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
12665 | cat >>confdefs.h <<\_ACEOF | ||
12666 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
12667 | _ACEOF | ||
12668 | |||
12669 | fi | ||
12670 | |||
12671 | echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
12672 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
12673 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
12674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12675 | else | ||
12676 | |||
12677 | cat >conftest.$ac_ext <<_ACEOF | ||
12678 | #line $LINENO "configure" | ||
12679 | #include "confdefs.h" | ||
12680 | |||
12681 | #include <sys/types.h> | ||
12682 | #include <sys/socket.h> | ||
12683 | #include <netdb.h> | ||
12684 | |||
12685 | #ifdef F77_DUMMY_MAIN | ||
12686 | # ifdef __cplusplus | ||
12687 | extern "C" | ||
12688 | # endif | ||
12689 | int F77_DUMMY_MAIN() { return 1; } | ||
12690 | #endif | ||
12691 | int | ||
12692 | main () | ||
12693 | { | ||
12694 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
12695 | ; | ||
12696 | return 0; | ||
12697 | } | ||
12698 | _ACEOF | ||
12699 | rm -f conftest.$ac_objext | ||
12700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12701 | (eval $ac_compile) 2>&5 | ||
12702 | ac_status=$? | ||
12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12704 | (exit $ac_status); } && | ||
12705 | { ac_try='test -s conftest.$ac_objext' | ||
12706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12707 | (eval $ac_try) 2>&5 | ||
12708 | ac_status=$? | ||
12709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12710 | (exit $ac_status); }; }; then | ||
12711 | ac_cv_have_struct_addrinfo="yes" | ||
12712 | else | ||
12713 | echo "$as_me: failed program was:" >&5 | ||
12714 | cat conftest.$ac_ext >&5 | ||
12715 | ac_cv_have_struct_addrinfo="no" | ||
12716 | |||
12717 | fi | ||
12718 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12719 | |||
12720 | fi | ||
12721 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
12722 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
12723 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
12724 | cat >>confdefs.h <<\_ACEOF | ||
12725 | #define HAVE_STRUCT_ADDRINFO 1 | ||
12726 | _ACEOF | ||
12727 | |||
12728 | fi | ||
12729 | |||
12730 | echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
12731 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
12732 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
12733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12734 | else | ||
12735 | |||
12736 | cat >conftest.$ac_ext <<_ACEOF | ||
12737 | #line $LINENO "configure" | ||
12738 | #include "confdefs.h" | ||
12739 | #include <sys/time.h> | ||
12740 | #ifdef F77_DUMMY_MAIN | ||
12741 | # ifdef __cplusplus | ||
12742 | extern "C" | ||
12743 | # endif | ||
12744 | int F77_DUMMY_MAIN() { return 1; } | ||
12745 | #endif | ||
12746 | int | ||
12747 | main () | ||
12748 | { | ||
12749 | struct timeval tv; tv.tv_sec = 1; | ||
12750 | ; | ||
12751 | return 0; | ||
12752 | } | ||
12753 | _ACEOF | ||
12754 | rm -f conftest.$ac_objext | ||
12755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12756 | (eval $ac_compile) 2>&5 | ||
12757 | ac_status=$? | ||
12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12759 | (exit $ac_status); } && | ||
12760 | { ac_try='test -s conftest.$ac_objext' | ||
12761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12762 | (eval $ac_try) 2>&5 | ||
12763 | ac_status=$? | ||
12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12765 | (exit $ac_status); }; }; then | ||
12766 | ac_cv_have_struct_timeval="yes" | ||
12767 | else | ||
12768 | echo "$as_me: failed program was:" >&5 | ||
12769 | cat conftest.$ac_ext >&5 | ||
12770 | ac_cv_have_struct_timeval="no" | ||
12771 | |||
12772 | fi | ||
12773 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12774 | |||
12775 | fi | ||
12776 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
12777 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
12778 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
12779 | cat >>confdefs.h <<\_ACEOF | ||
12780 | #define HAVE_STRUCT_TIMEVAL 1 | ||
12781 | _ACEOF | ||
12782 | |||
12783 | have_struct_timeval=1 | ||
12784 | fi | ||
12785 | |||
12786 | # If we don't have int64_t then we can't compile sftp-server. So don't | ||
12787 | # even attempt to do it. | ||
12788 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | ||
12789 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | ||
12790 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
12791 | NO_SFTP='#' | ||
12792 | else | ||
12793 | if test "$cross_compiling" = yes; then | ||
12794 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
12795 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
12796 | { (exit 1); exit 1; }; } | ||
12797 | else | ||
12798 | cat >conftest.$ac_ext <<_ACEOF | ||
12799 | #line $LINENO "configure" | ||
12800 | #include "confdefs.h" | ||
12801 | |||
12802 | #include <stdio.h> | ||
12803 | #include <string.h> | ||
12804 | #ifdef HAVE_SNPRINTF | ||
12805 | main() | ||
12806 | { | ||
12807 | char buf[50]; | ||
12808 | char expected_out[50]; | ||
12809 | int mazsize = 50 ; | ||
12810 | #if (SIZEOF_LONG_INT == 8) | ||
12811 | long int num = 0x7fffffffffffffff; | ||
12812 | #else | ||
12813 | long long num = 0x7fffffffffffffffll; | ||
12814 | #endif | ||
12815 | strcpy(expected_out, "9223372036854775807"); | ||
12816 | snprintf(buf, mazsize, "%lld", num); | ||
12817 | if(strcmp(buf, expected_out) != 0) | ||
12818 | exit(1); | ||
12819 | exit(0); | ||
12820 | } | ||
12821 | #else | ||
12822 | main() { exit(0); } | ||
12823 | #endif | ||
12824 | |||
12825 | _ACEOF | ||
12826 | rm -f conftest$ac_exeext | ||
12827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12828 | (eval $ac_link) 2>&5 | ||
12829 | ac_status=$? | ||
12830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12831 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12833 | (eval $ac_try) 2>&5 | ||
12834 | ac_status=$? | ||
12835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12836 | (exit $ac_status); }; }; then | ||
12837 | true | ||
12838 | else | ||
12839 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12840 | echo "$as_me: failed program was:" >&5 | ||
12841 | cat conftest.$ac_ext >&5 | ||
12842 | ( exit $ac_status ) | ||
12843 | cat >>confdefs.h <<\_ACEOF | ||
12844 | #define BROKEN_SNPRINTF 1 | ||
12845 | _ACEOF | ||
12846 | |||
12847 | |||
12848 | fi | ||
12849 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12850 | fi | ||
12851 | fi | ||
12852 | |||
12853 | |||
12854 | |||
12855 | # look for field 'ut_host' in header 'utmp.h' | ||
12856 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12857 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
12858 | echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
12859 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
12860 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12862 | else | ||
12863 | |||
12864 | cat >conftest.$ac_ext <<_ACEOF | ||
12865 | #line $LINENO "configure" | ||
12866 | #include "confdefs.h" | ||
12867 | #include <utmp.h> | ||
12868 | |||
12869 | _ACEOF | ||
12870 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12871 | egrep "ut_host" >/dev/null 2>&1; then | ||
12872 | eval "$ossh_varname=yes" | ||
12873 | else | ||
12874 | eval "$ossh_varname=no" | ||
12875 | fi | ||
12876 | rm -f conftest* | ||
12877 | |||
12878 | fi | ||
12879 | |||
12880 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12881 | if test -n "`echo $ossh_varname`"; then | ||
12882 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
12883 | echo "${ECHO_T}$ossh_result" >&6 | ||
12884 | if test "x$ossh_result" = "xyes"; then | ||
12885 | cat >>confdefs.h <<\_ACEOF | ||
12886 | #define HAVE_HOST_IN_UTMP 1 | ||
12887 | _ACEOF | ||
12888 | |||
12889 | fi | ||
12890 | else | ||
12891 | echo "$as_me:$LINENO: result: no" >&5 | ||
12892 | echo "${ECHO_T}no" >&6 | ||
12893 | fi | ||
12894 | |||
12895 | |||
12896 | # look for field 'ut_host' in header 'utmpx.h' | ||
12897 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12898 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
12899 | echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
12900 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
12901 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12903 | else | ||
12904 | |||
12905 | cat >conftest.$ac_ext <<_ACEOF | ||
12906 | #line $LINENO "configure" | ||
12907 | #include "confdefs.h" | ||
12908 | #include <utmpx.h> | ||
12909 | |||
12910 | _ACEOF | ||
12911 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12912 | egrep "ut_host" >/dev/null 2>&1; then | ||
12913 | eval "$ossh_varname=yes" | ||
12914 | else | ||
12915 | eval "$ossh_varname=no" | ||
12916 | fi | ||
12917 | rm -f conftest* | ||
12918 | |||
12919 | fi | ||
12920 | |||
12921 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12922 | if test -n "`echo $ossh_varname`"; then | ||
12923 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
12924 | echo "${ECHO_T}$ossh_result" >&6 | ||
12925 | if test "x$ossh_result" = "xyes"; then | ||
12926 | cat >>confdefs.h <<\_ACEOF | ||
12927 | #define HAVE_HOST_IN_UTMPX 1 | ||
12928 | _ACEOF | ||
12929 | |||
12930 | fi | ||
12931 | else | ||
12932 | echo "$as_me:$LINENO: result: no" >&5 | ||
12933 | echo "${ECHO_T}no" >&6 | ||
12934 | fi | ||
12935 | |||
12936 | |||
12937 | # look for field 'syslen' in header 'utmpx.h' | ||
12938 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12939 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
12940 | echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
12941 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
12942 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12944 | else | ||
12945 | |||
12946 | cat >conftest.$ac_ext <<_ACEOF | ||
12947 | #line $LINENO "configure" | ||
12948 | #include "confdefs.h" | ||
12949 | #include <utmpx.h> | ||
12950 | |||
12951 | _ACEOF | ||
12952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12953 | egrep "syslen" >/dev/null 2>&1; then | ||
12954 | eval "$ossh_varname=yes" | ||
12955 | else | ||
12956 | eval "$ossh_varname=no" | ||
12957 | fi | ||
12958 | rm -f conftest* | ||
12959 | |||
12960 | fi | ||
12961 | |||
12962 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12963 | if test -n "`echo $ossh_varname`"; then | ||
12964 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
12965 | echo "${ECHO_T}$ossh_result" >&6 | ||
12966 | if test "x$ossh_result" = "xyes"; then | ||
12967 | cat >>confdefs.h <<\_ACEOF | ||
12968 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
12969 | _ACEOF | ||
12970 | |||
12971 | fi | ||
12972 | else | ||
12973 | echo "$as_me:$LINENO: result: no" >&5 | ||
12974 | echo "${ECHO_T}no" >&6 | ||
12975 | fi | ||
12976 | |||
12977 | |||
12978 | # look for field 'ut_pid' in header 'utmp.h' | ||
12979 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12980 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
12981 | echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
12982 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
12983 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12985 | else | ||
12986 | |||
12987 | cat >conftest.$ac_ext <<_ACEOF | ||
12988 | #line $LINENO "configure" | ||
12989 | #include "confdefs.h" | ||
12990 | #include <utmp.h> | ||
12991 | |||
12992 | _ACEOF | ||
12993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12994 | egrep "ut_pid" >/dev/null 2>&1; then | ||
12995 | eval "$ossh_varname=yes" | ||
12996 | else | ||
12997 | eval "$ossh_varname=no" | ||
12998 | fi | ||
12999 | rm -f conftest* | ||
13000 | |||
13001 | fi | ||
13002 | |||
13003 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13004 | if test -n "`echo $ossh_varname`"; then | ||
13005 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13006 | echo "${ECHO_T}$ossh_result" >&6 | ||
13007 | if test "x$ossh_result" = "xyes"; then | ||
13008 | cat >>confdefs.h <<\_ACEOF | ||
13009 | #define HAVE_PID_IN_UTMP 1 | ||
13010 | _ACEOF | ||
13011 | |||
13012 | fi | ||
13013 | else | ||
13014 | echo "$as_me:$LINENO: result: no" >&5 | ||
13015 | echo "${ECHO_T}no" >&6 | ||
13016 | fi | ||
13017 | |||
13018 | |||
13019 | # look for field 'ut_type' in header 'utmp.h' | ||
13020 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13021 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13022 | echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
13023 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
13024 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13026 | else | ||
13027 | |||
13028 | cat >conftest.$ac_ext <<_ACEOF | ||
13029 | #line $LINENO "configure" | ||
13030 | #include "confdefs.h" | ||
13031 | #include <utmp.h> | ||
13032 | |||
13033 | _ACEOF | ||
13034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13035 | egrep "ut_type" >/dev/null 2>&1; then | ||
13036 | eval "$ossh_varname=yes" | ||
13037 | else | ||
13038 | eval "$ossh_varname=no" | ||
13039 | fi | ||
13040 | rm -f conftest* | ||
13041 | |||
13042 | fi | ||
13043 | |||
13044 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13045 | if test -n "`echo $ossh_varname`"; then | ||
13046 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13047 | echo "${ECHO_T}$ossh_result" >&6 | ||
13048 | if test "x$ossh_result" = "xyes"; then | ||
13049 | cat >>confdefs.h <<\_ACEOF | ||
13050 | #define HAVE_TYPE_IN_UTMP 1 | ||
13051 | _ACEOF | ||
13052 | |||
13053 | fi | ||
13054 | else | ||
13055 | echo "$as_me:$LINENO: result: no" >&5 | ||
13056 | echo "${ECHO_T}no" >&6 | ||
13057 | fi | ||
13058 | |||
13059 | |||
13060 | # look for field 'ut_type' in header 'utmpx.h' | ||
13061 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13062 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13063 | echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
13064 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
13065 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13067 | else | ||
13068 | |||
13069 | cat >conftest.$ac_ext <<_ACEOF | ||
13070 | #line $LINENO "configure" | ||
13071 | #include "confdefs.h" | ||
13072 | #include <utmpx.h> | ||
13073 | |||
13074 | _ACEOF | ||
13075 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13076 | egrep "ut_type" >/dev/null 2>&1; then | ||
13077 | eval "$ossh_varname=yes" | ||
13078 | else | ||
13079 | eval "$ossh_varname=no" | ||
13080 | fi | ||
13081 | rm -f conftest* | ||
13082 | |||
13083 | fi | ||
13084 | |||
13085 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13086 | if test -n "`echo $ossh_varname`"; then | ||
13087 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13088 | echo "${ECHO_T}$ossh_result" >&6 | ||
13089 | if test "x$ossh_result" = "xyes"; then | ||
13090 | cat >>confdefs.h <<\_ACEOF | ||
13091 | #define HAVE_TYPE_IN_UTMPX 1 | ||
13092 | _ACEOF | ||
13093 | |||
13094 | fi | ||
13095 | else | ||
13096 | echo "$as_me:$LINENO: result: no" >&5 | ||
13097 | echo "${ECHO_T}no" >&6 | ||
13098 | fi | ||
13099 | |||
13100 | |||
13101 | # look for field 'ut_tv' in header 'utmp.h' | ||
13102 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13103 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13104 | echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
13105 | echo $ECHO_N "checking for ut_tv 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 $LINENO "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_tv" >/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:$LINENO: result: $ossh_result" >&5 | ||
13129 | echo "${ECHO_T}$ossh_result" >&6 | ||
13130 | if test "x$ossh_result" = "xyes"; then | ||
13131 | cat >>confdefs.h <<\_ACEOF | ||
13132 | #define HAVE_TV_IN_UTMP 1 | ||
13133 | _ACEOF | ||
13134 | |||
13135 | fi | ||
13136 | else | ||
13137 | echo "$as_me:$LINENO: result: no" >&5 | ||
13138 | echo "${ECHO_T}no" >&6 | ||
13139 | fi | ||
13140 | |||
13141 | |||
13142 | # look for field 'ut_id' in header 'utmp.h' | ||
13143 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13144 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13145 | echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
13146 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
13147 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13149 | else | ||
13150 | |||
13151 | cat >conftest.$ac_ext <<_ACEOF | ||
13152 | #line $LINENO "configure" | ||
13153 | #include "confdefs.h" | ||
13154 | #include <utmp.h> | ||
13155 | |||
13156 | _ACEOF | ||
13157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13158 | egrep "ut_id" >/dev/null 2>&1; then | ||
13159 | eval "$ossh_varname=yes" | ||
13160 | else | ||
13161 | eval "$ossh_varname=no" | ||
13162 | fi | ||
13163 | rm -f conftest* | ||
13164 | |||
13165 | fi | ||
13166 | |||
13167 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13168 | if test -n "`echo $ossh_varname`"; then | ||
13169 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13170 | echo "${ECHO_T}$ossh_result" >&6 | ||
13171 | if test "x$ossh_result" = "xyes"; then | ||
13172 | cat >>confdefs.h <<\_ACEOF | ||
13173 | #define HAVE_ID_IN_UTMP 1 | ||
13174 | _ACEOF | ||
13175 | |||
13176 | fi | ||
13177 | else | ||
13178 | echo "$as_me:$LINENO: result: no" >&5 | ||
13179 | echo "${ECHO_T}no" >&6 | ||
13180 | fi | ||
13181 | |||
13182 | |||
13183 | # look for field 'ut_id' in header 'utmpx.h' | ||
13184 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13185 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13186 | echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
13187 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
13188 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13190 | else | ||
13191 | |||
13192 | cat >conftest.$ac_ext <<_ACEOF | ||
13193 | #line $LINENO "configure" | ||
13194 | #include "confdefs.h" | ||
13195 | #include <utmpx.h> | ||
13196 | |||
13197 | _ACEOF | ||
13198 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13199 | egrep "ut_id" >/dev/null 2>&1; then | ||
13200 | eval "$ossh_varname=yes" | ||
13201 | else | ||
13202 | eval "$ossh_varname=no" | ||
13203 | fi | ||
13204 | rm -f conftest* | ||
13205 | |||
13206 | fi | ||
13207 | |||
13208 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13209 | if test -n "`echo $ossh_varname`"; then | ||
13210 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13211 | echo "${ECHO_T}$ossh_result" >&6 | ||
13212 | if test "x$ossh_result" = "xyes"; then | ||
13213 | cat >>confdefs.h <<\_ACEOF | ||
13214 | #define HAVE_ID_IN_UTMPX 1 | ||
13215 | _ACEOF | ||
13216 | |||
13217 | fi | ||
13218 | else | ||
13219 | echo "$as_me:$LINENO: result: no" >&5 | ||
13220 | echo "${ECHO_T}no" >&6 | ||
13221 | fi | ||
13222 | |||
13223 | |||
13224 | # look for field 'ut_addr' in header 'utmp.h' | ||
13225 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13226 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13227 | echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
13228 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
13229 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13231 | else | ||
13232 | |||
13233 | cat >conftest.$ac_ext <<_ACEOF | ||
13234 | #line $LINENO "configure" | ||
13235 | #include "confdefs.h" | ||
13236 | #include <utmp.h> | ||
13237 | |||
13238 | _ACEOF | ||
13239 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13240 | egrep "ut_addr" >/dev/null 2>&1; then | ||
13241 | eval "$ossh_varname=yes" | ||
13242 | else | ||
13243 | eval "$ossh_varname=no" | ||
13244 | fi | ||
13245 | rm -f conftest* | ||
13246 | |||
13247 | fi | ||
13248 | |||
13249 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13250 | if test -n "`echo $ossh_varname`"; then | ||
13251 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13252 | echo "${ECHO_T}$ossh_result" >&6 | ||
13253 | if test "x$ossh_result" = "xyes"; then | ||
13254 | cat >>confdefs.h <<\_ACEOF | ||
13255 | #define HAVE_ADDR_IN_UTMP 1 | ||
13256 | _ACEOF | ||
13257 | |||
13258 | fi | ||
13259 | else | ||
13260 | echo "$as_me:$LINENO: result: no" >&5 | ||
13261 | echo "${ECHO_T}no" >&6 | ||
13262 | fi | ||
13263 | |||
13264 | |||
13265 | # look for field 'ut_addr' in header 'utmpx.h' | ||
13266 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13267 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13268 | echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
13269 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
13270 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13272 | else | ||
13273 | |||
13274 | cat >conftest.$ac_ext <<_ACEOF | ||
13275 | #line $LINENO "configure" | ||
13276 | #include "confdefs.h" | ||
13277 | #include <utmpx.h> | ||
13278 | |||
13279 | _ACEOF | ||
13280 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13281 | egrep "ut_addr" >/dev/null 2>&1; then | ||
13282 | eval "$ossh_varname=yes" | ||
13283 | else | ||
13284 | eval "$ossh_varname=no" | ||
13285 | fi | ||
13286 | rm -f conftest* | ||
13287 | |||
13288 | fi | ||
13289 | |||
13290 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13291 | if test -n "`echo $ossh_varname`"; then | ||
13292 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13293 | echo "${ECHO_T}$ossh_result" >&6 | ||
13294 | if test "x$ossh_result" = "xyes"; then | ||
13295 | cat >>confdefs.h <<\_ACEOF | ||
13296 | #define HAVE_ADDR_IN_UTMPX 1 | ||
13297 | _ACEOF | ||
13298 | |||
13299 | fi | ||
13300 | else | ||
13301 | echo "$as_me:$LINENO: result: no" >&5 | ||
13302 | echo "${ECHO_T}no" >&6 | ||
13303 | fi | ||
13304 | |||
13305 | |||
13306 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
13307 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13308 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13309 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
13310 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
13311 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13313 | else | ||
13314 | |||
13315 | cat >conftest.$ac_ext <<_ACEOF | ||
13316 | #line $LINENO "configure" | ||
13317 | #include "confdefs.h" | ||
13318 | #include <utmp.h> | ||
13319 | |||
13320 | _ACEOF | ||
13321 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13322 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
13323 | eval "$ossh_varname=yes" | ||
13324 | else | ||
13325 | eval "$ossh_varname=no" | ||
13326 | fi | ||
13327 | rm -f conftest* | ||
13328 | |||
13329 | fi | ||
13330 | |||
13331 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13332 | if test -n "`echo $ossh_varname`"; then | ||
13333 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13334 | echo "${ECHO_T}$ossh_result" >&6 | ||
13335 | if test "x$ossh_result" = "xyes"; then | ||
13336 | cat >>confdefs.h <<\_ACEOF | ||
13337 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
13338 | _ACEOF | ||
13339 | |||
13340 | fi | ||
13341 | else | ||
13342 | echo "$as_me:$LINENO: result: no" >&5 | ||
13343 | echo "${ECHO_T}no" >&6 | ||
13344 | fi | ||
13345 | |||
13346 | |||
13347 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
13348 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13349 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13350 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
13351 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
13352 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13354 | else | ||
13355 | |||
13356 | cat >conftest.$ac_ext <<_ACEOF | ||
13357 | #line $LINENO "configure" | ||
13358 | #include "confdefs.h" | ||
13359 | #include <utmpx.h> | ||
13360 | |||
13361 | _ACEOF | ||
13362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13363 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
13364 | eval "$ossh_varname=yes" | ||
13365 | else | ||
13366 | eval "$ossh_varname=no" | ||
13367 | fi | ||
13368 | rm -f conftest* | ||
13369 | |||
13370 | fi | ||
13371 | |||
13372 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13373 | if test -n "`echo $ossh_varname`"; then | ||
13374 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13375 | echo "${ECHO_T}$ossh_result" >&6 | ||
13376 | if test "x$ossh_result" = "xyes"; then | ||
13377 | cat >>confdefs.h <<\_ACEOF | ||
13378 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
13379 | _ACEOF | ||
13380 | |||
13381 | fi | ||
13382 | else | ||
13383 | echo "$as_me:$LINENO: result: no" >&5 | ||
13384 | echo "${ECHO_T}no" >&6 | ||
13385 | fi | ||
13386 | |||
13387 | |||
13388 | # look for field 'ut_exit' in header 'utmp.h' | ||
13389 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13390 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
13391 | echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
13392 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
13393 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13395 | else | ||
13396 | |||
13397 | cat >conftest.$ac_ext <<_ACEOF | ||
13398 | #line $LINENO "configure" | ||
13399 | #include "confdefs.h" | ||
13400 | #include <utmp.h> | ||
13401 | |||
13402 | _ACEOF | ||
13403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13404 | egrep "ut_exit" >/dev/null 2>&1; then | ||
13405 | eval "$ossh_varname=yes" | ||
13406 | else | ||
13407 | eval "$ossh_varname=no" | ||
13408 | fi | ||
13409 | rm -f conftest* | ||
13410 | |||
13411 | fi | ||
13412 | |||
13413 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13414 | if test -n "`echo $ossh_varname`"; then | ||
13415 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13416 | echo "${ECHO_T}$ossh_result" >&6 | ||
13417 | if test "x$ossh_result" = "xyes"; then | ||
13418 | cat >>confdefs.h <<\_ACEOF | ||
13419 | #define HAVE_EXIT_IN_UTMP 1 | ||
13420 | _ACEOF | ||
13421 | |||
13422 | fi | ||
13423 | else | ||
13424 | echo "$as_me:$LINENO: result: no" >&5 | ||
13425 | echo "${ECHO_T}no" >&6 | ||
13426 | fi | ||
13427 | |||
13428 | |||
13429 | # look for field 'ut_time' in header 'utmp.h' | ||
13430 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13431 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13432 | echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
13433 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
13434 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13436 | else | ||
13437 | |||
13438 | cat >conftest.$ac_ext <<_ACEOF | ||
13439 | #line $LINENO "configure" | ||
13440 | #include "confdefs.h" | ||
13441 | #include <utmp.h> | ||
13442 | |||
13443 | _ACEOF | ||
13444 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13445 | egrep "ut_time" >/dev/null 2>&1; then | ||
13446 | eval "$ossh_varname=yes" | ||
13447 | else | ||
13448 | eval "$ossh_varname=no" | ||
13449 | fi | ||
13450 | rm -f conftest* | ||
13451 | |||
13452 | fi | ||
13453 | |||
13454 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13455 | if test -n "`echo $ossh_varname`"; then | ||
13456 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13457 | echo "${ECHO_T}$ossh_result" >&6 | ||
13458 | if test "x$ossh_result" = "xyes"; then | ||
13459 | cat >>confdefs.h <<\_ACEOF | ||
13460 | #define HAVE_TIME_IN_UTMP 1 | ||
13461 | _ACEOF | ||
13462 | |||
13463 | fi | ||
13464 | else | ||
13465 | echo "$as_me:$LINENO: result: no" >&5 | ||
13466 | echo "${ECHO_T}no" >&6 | ||
13467 | fi | ||
13468 | |||
13469 | |||
13470 | # look for field 'ut_time' in header 'utmpx.h' | ||
13471 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13472 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13473 | echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
13474 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
13475 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13477 | else | ||
13478 | |||
13479 | cat >conftest.$ac_ext <<_ACEOF | ||
13480 | #line $LINENO "configure" | ||
13481 | #include "confdefs.h" | ||
13482 | #include <utmpx.h> | ||
13483 | |||
13484 | _ACEOF | ||
13485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13486 | egrep "ut_time" >/dev/null 2>&1; then | ||
13487 | eval "$ossh_varname=yes" | ||
13488 | else | ||
13489 | eval "$ossh_varname=no" | ||
13490 | fi | ||
13491 | rm -f conftest* | ||
13492 | |||
13493 | fi | ||
13494 | |||
13495 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13496 | if test -n "`echo $ossh_varname`"; then | ||
13497 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13498 | echo "${ECHO_T}$ossh_result" >&6 | ||
13499 | if test "x$ossh_result" = "xyes"; then | ||
13500 | cat >>confdefs.h <<\_ACEOF | ||
13501 | #define HAVE_TIME_IN_UTMPX 1 | ||
13502 | _ACEOF | ||
13503 | |||
13504 | fi | ||
13505 | else | ||
13506 | echo "$as_me:$LINENO: result: no" >&5 | ||
13507 | echo "${ECHO_T}no" >&6 | ||
13508 | fi | ||
13509 | |||
13510 | |||
13511 | # look for field 'ut_tv' in header 'utmpx.h' | ||
13512 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13513 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13514 | echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
13515 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
13516 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13518 | else | ||
13519 | |||
13520 | cat >conftest.$ac_ext <<_ACEOF | ||
13521 | #line $LINENO "configure" | ||
13522 | #include "confdefs.h" | ||
13523 | #include <utmpx.h> | ||
13524 | |||
13525 | _ACEOF | ||
13526 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13527 | egrep "ut_tv" >/dev/null 2>&1; then | ||
13528 | eval "$ossh_varname=yes" | ||
13529 | else | ||
13530 | eval "$ossh_varname=no" | ||
13531 | fi | ||
13532 | rm -f conftest* | ||
13533 | |||
13534 | fi | ||
13535 | |||
13536 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13537 | if test -n "`echo $ossh_varname`"; then | ||
13538 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13539 | echo "${ECHO_T}$ossh_result" >&6 | ||
13540 | if test "x$ossh_result" = "xyes"; then | ||
13541 | cat >>confdefs.h <<\_ACEOF | ||
13542 | #define HAVE_TV_IN_UTMPX 1 | ||
13543 | _ACEOF | ||
13544 | |||
13545 | fi | ||
13546 | else | ||
13547 | echo "$as_me:$LINENO: result: no" >&5 | ||
13548 | echo "${ECHO_T}no" >&6 | ||
13549 | fi | ||
13550 | |||
13551 | |||
13552 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
13553 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
13554 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
13555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13556 | else | ||
13557 | cat >conftest.$ac_ext <<_ACEOF | ||
13558 | #line $LINENO "configure" | ||
13559 | #include "confdefs.h" | ||
13560 | $ac_includes_default | ||
13561 | #ifdef F77_DUMMY_MAIN | ||
13562 | # ifdef __cplusplus | ||
13563 | extern "C" | ||
13564 | # endif | ||
13565 | int F77_DUMMY_MAIN() { return 1; } | ||
13566 | #endif | ||
13567 | int | ||
13568 | main () | ||
13569 | { | ||
13570 | static struct stat ac_aggr; | ||
13571 | if (ac_aggr.st_blksize) | ||
13572 | return 0; | ||
13573 | ; | ||
13574 | return 0; | ||
13575 | } | ||
13576 | _ACEOF | ||
13577 | rm -f conftest.$ac_objext | ||
13578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13579 | (eval $ac_compile) 2>&5 | ||
13580 | ac_status=$? | ||
13581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13582 | (exit $ac_status); } && | ||
13583 | { ac_try='test -s conftest.$ac_objext' | ||
13584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13585 | (eval $ac_try) 2>&5 | ||
13586 | ac_status=$? | ||
13587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13588 | (exit $ac_status); }; }; then | ||
13589 | ac_cv_member_struct_stat_st_blksize=yes | ||
13590 | else | ||
13591 | echo "$as_me: failed program was:" >&5 | ||
13592 | cat conftest.$ac_ext >&5 | ||
13593 | ac_cv_member_struct_stat_st_blksize=no | ||
13594 | fi | ||
13595 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13596 | fi | ||
13597 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
13598 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
13599 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
13600 | |||
13601 | cat >>confdefs.h <<_ACEOF | ||
13602 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
13603 | _ACEOF | ||
13604 | |||
13605 | |||
13606 | fi | ||
13607 | |||
13608 | |||
13609 | echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
13610 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
13611 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
13612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13613 | else | ||
13614 | |||
13615 | cat >conftest.$ac_ext <<_ACEOF | ||
13616 | #line $LINENO "configure" | ||
13617 | #include "confdefs.h" | ||
13618 | |||
13619 | #include <sys/types.h> | ||
13620 | #include <sys/socket.h> | ||
13621 | |||
13622 | #ifdef F77_DUMMY_MAIN | ||
13623 | # ifdef __cplusplus | ||
13624 | extern "C" | ||
13625 | # endif | ||
13626 | int F77_DUMMY_MAIN() { return 1; } | ||
13627 | #endif | ||
13628 | int | ||
13629 | main () | ||
13630 | { | ||
13631 | struct sockaddr_storage s; s.ss_family = 1; | ||
13632 | ; | ||
13633 | return 0; | ||
13634 | } | ||
13635 | _ACEOF | ||
13636 | rm -f conftest.$ac_objext | ||
13637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13638 | (eval $ac_compile) 2>&5 | ||
13639 | ac_status=$? | ||
13640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13641 | (exit $ac_status); } && | ||
13642 | { ac_try='test -s conftest.$ac_objext' | ||
13643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13644 | (eval $ac_try) 2>&5 | ||
13645 | ac_status=$? | ||
13646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13647 | (exit $ac_status); }; }; then | ||
13648 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
13649 | else | ||
13650 | echo "$as_me: failed program was:" >&5 | ||
13651 | cat conftest.$ac_ext >&5 | ||
13652 | ac_cv_have_ss_family_in_struct_ss="no" | ||
13653 | fi | ||
13654 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13655 | |||
13656 | fi | ||
13657 | echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
13658 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
13659 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
13660 | cat >>confdefs.h <<\_ACEOF | ||
13661 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
13662 | _ACEOF | ||
13663 | |||
13664 | fi | ||
13665 | |||
13666 | echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
13667 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
13668 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
13669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13670 | else | ||
13671 | |||
13672 | cat >conftest.$ac_ext <<_ACEOF | ||
13673 | #line $LINENO "configure" | ||
13674 | #include "confdefs.h" | ||
13675 | |||
13676 | #include <sys/types.h> | ||
13677 | #include <sys/socket.h> | ||
13678 | |||
13679 | #ifdef F77_DUMMY_MAIN | ||
13680 | # ifdef __cplusplus | ||
13681 | extern "C" | ||
13682 | # endif | ||
13683 | int F77_DUMMY_MAIN() { return 1; } | ||
13684 | #endif | ||
13685 | int | ||
13686 | main () | ||
13687 | { | ||
13688 | struct sockaddr_storage s; s.__ss_family = 1; | ||
13689 | ; | ||
13690 | return 0; | ||
13691 | } | ||
13692 | _ACEOF | ||
13693 | rm -f conftest.$ac_objext | ||
13694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13695 | (eval $ac_compile) 2>&5 | ||
13696 | ac_status=$? | ||
13697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13698 | (exit $ac_status); } && | ||
13699 | { ac_try='test -s conftest.$ac_objext' | ||
13700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13701 | (eval $ac_try) 2>&5 | ||
13702 | ac_status=$? | ||
13703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13704 | (exit $ac_status); }; }; then | ||
13705 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
13706 | else | ||
13707 | echo "$as_me: failed program was:" >&5 | ||
13708 | cat conftest.$ac_ext >&5 | ||
13709 | ac_cv_have___ss_family_in_struct_ss="no" | ||
13710 | |||
13711 | fi | ||
13712 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13713 | |||
13714 | fi | ||
13715 | echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
13716 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
13717 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
13718 | cat >>confdefs.h <<\_ACEOF | ||
13719 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
13720 | _ACEOF | ||
13721 | |||
13722 | fi | ||
13723 | |||
13724 | echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
13725 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
13726 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
13727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13728 | else | ||
13729 | |||
13730 | cat >conftest.$ac_ext <<_ACEOF | ||
13731 | #line $LINENO "configure" | ||
13732 | #include "confdefs.h" | ||
13733 | |||
13734 | #include <pwd.h> | ||
13735 | |||
13736 | #ifdef F77_DUMMY_MAIN | ||
13737 | # ifdef __cplusplus | ||
13738 | extern "C" | ||
13739 | # endif | ||
13740 | int F77_DUMMY_MAIN() { return 1; } | ||
13741 | #endif | ||
13742 | int | ||
13743 | main () | ||
13744 | { | ||
13745 | struct passwd p; p.pw_class = 0; | ||
13746 | ; | ||
13747 | return 0; | ||
13748 | } | ||
13749 | _ACEOF | ||
13750 | rm -f conftest.$ac_objext | ||
13751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13752 | (eval $ac_compile) 2>&5 | ||
13753 | ac_status=$? | ||
13754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13755 | (exit $ac_status); } && | ||
13756 | { ac_try='test -s conftest.$ac_objext' | ||
13757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13758 | (eval $ac_try) 2>&5 | ||
13759 | ac_status=$? | ||
13760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13761 | (exit $ac_status); }; }; then | ||
13762 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
13763 | else | ||
13764 | echo "$as_me: failed program was:" >&5 | ||
13765 | cat conftest.$ac_ext >&5 | ||
13766 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
13767 | |||
13768 | fi | ||
13769 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13770 | |||
13771 | fi | ||
13772 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
13773 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
13774 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
13775 | cat >>confdefs.h <<\_ACEOF | ||
13776 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
13777 | _ACEOF | ||
13778 | |||
13779 | fi | ||
13780 | |||
13781 | echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
13782 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
13783 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
13784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13785 | else | ||
13786 | |||
13787 | cat >conftest.$ac_ext <<_ACEOF | ||
13788 | #line $LINENO "configure" | ||
13789 | #include "confdefs.h" | ||
13790 | |||
13791 | #include <pwd.h> | ||
13792 | |||
13793 | #ifdef F77_DUMMY_MAIN | ||
13794 | # ifdef __cplusplus | ||
13795 | extern "C" | ||
13796 | # endif | ||
13797 | int F77_DUMMY_MAIN() { return 1; } | ||
13798 | #endif | ||
13799 | int | ||
13800 | main () | ||
13801 | { | ||
13802 | struct passwd p; p.pw_expire = 0; | ||
13803 | ; | ||
13804 | return 0; | ||
13805 | } | ||
13806 | _ACEOF | ||
13807 | rm -f conftest.$ac_objext | ||
13808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13809 | (eval $ac_compile) 2>&5 | ||
13810 | ac_status=$? | ||
13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13812 | (exit $ac_status); } && | ||
13813 | { ac_try='test -s conftest.$ac_objext' | ||
13814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13815 | (eval $ac_try) 2>&5 | ||
13816 | ac_status=$? | ||
13817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13818 | (exit $ac_status); }; }; then | ||
13819 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
13820 | else | ||
13821 | echo "$as_me: failed program was:" >&5 | ||
13822 | cat conftest.$ac_ext >&5 | ||
13823 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
13824 | |||
13825 | fi | ||
13826 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13827 | |||
13828 | fi | ||
13829 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
13830 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
13831 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
13832 | cat >>confdefs.h <<\_ACEOF | ||
13833 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
13834 | _ACEOF | ||
13835 | |||
13836 | fi | ||
13837 | |||
13838 | echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
13839 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
13840 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
13841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13842 | else | ||
13843 | |||
13844 | cat >conftest.$ac_ext <<_ACEOF | ||
13845 | #line $LINENO "configure" | ||
13846 | #include "confdefs.h" | ||
13847 | |||
13848 | #include <pwd.h> | ||
13849 | |||
13850 | #ifdef F77_DUMMY_MAIN | ||
13851 | # ifdef __cplusplus | ||
13852 | extern "C" | ||
13853 | # endif | ||
13854 | int F77_DUMMY_MAIN() { return 1; } | ||
13855 | #endif | ||
13856 | int | ||
13857 | main () | ||
13858 | { | ||
13859 | struct passwd p; p.pw_change = 0; | ||
13860 | ; | ||
13861 | return 0; | ||
13862 | } | ||
13863 | _ACEOF | ||
13864 | rm -f conftest.$ac_objext | ||
13865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13866 | (eval $ac_compile) 2>&5 | ||
13867 | ac_status=$? | ||
13868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13869 | (exit $ac_status); } && | ||
13870 | { ac_try='test -s conftest.$ac_objext' | ||
13871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13872 | (eval $ac_try) 2>&5 | ||
13873 | ac_status=$? | ||
13874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13875 | (exit $ac_status); }; }; then | ||
13876 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
13877 | else | ||
13878 | echo "$as_me: failed program was:" >&5 | ||
13879 | cat conftest.$ac_ext >&5 | ||
13880 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
13881 | |||
13882 | fi | ||
13883 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13884 | |||
13885 | fi | ||
13886 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
13887 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
13888 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
13889 | cat >>confdefs.h <<\_ACEOF | ||
13890 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
13891 | _ACEOF | ||
13892 | |||
13893 | fi | ||
13894 | |||
13895 | echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
13896 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
13897 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
13898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13899 | else | ||
13900 | |||
13901 | if test "$cross_compiling" = yes; then | ||
13902 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
13903 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
13904 | { (exit 1); exit 1; }; } | ||
13905 | else | ||
13906 | cat >conftest.$ac_ext <<_ACEOF | ||
13907 | #line $LINENO "configure" | ||
13908 | #include "confdefs.h" | ||
13909 | |||
13910 | #include <sys/types.h> | ||
13911 | #include <sys/socket.h> | ||
13912 | #include <sys/uio.h> | ||
13913 | int main() { | ||
13914 | #ifdef msg_accrights | ||
13915 | exit(1); | ||
13916 | #endif | ||
13917 | struct msghdr m; | ||
13918 | m.msg_accrights = 0; | ||
13919 | exit(0); | ||
13920 | } | ||
13921 | |||
13922 | _ACEOF | ||
13923 | rm -f conftest$ac_exeext | ||
13924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13925 | (eval $ac_link) 2>&5 | ||
13926 | ac_status=$? | ||
13927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13928 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13930 | (eval $ac_try) 2>&5 | ||
13931 | ac_status=$? | ||
13932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13933 | (exit $ac_status); }; }; then | ||
13934 | ac_cv_have_accrights_in_msghdr="yes" | ||
13935 | else | ||
13936 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13937 | echo "$as_me: failed program was:" >&5 | ||
13938 | cat conftest.$ac_ext >&5 | ||
13939 | ( exit $ac_status ) | ||
13940 | ac_cv_have_accrights_in_msghdr="no" | ||
13941 | |||
13942 | fi | ||
13943 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13944 | fi | ||
13945 | |||
13946 | fi | ||
13947 | echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
13948 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
13949 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
13950 | cat >>confdefs.h <<\_ACEOF | ||
13951 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
13952 | _ACEOF | ||
13953 | |||
13954 | fi | ||
13955 | |||
13956 | echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
13957 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
13958 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
13959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13960 | else | ||
13961 | |||
13962 | if test "$cross_compiling" = yes; then | ||
13963 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
13964 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
13965 | { (exit 1); exit 1; }; } | ||
13966 | else | ||
13967 | cat >conftest.$ac_ext <<_ACEOF | ||
13968 | #line $LINENO "configure" | ||
13969 | #include "confdefs.h" | ||
13970 | |||
13971 | #include <sys/types.h> | ||
13972 | #include <sys/socket.h> | ||
13973 | #include <sys/uio.h> | ||
13974 | int main() { | ||
13975 | #ifdef msg_control | ||
13976 | exit(1); | ||
13977 | #endif | ||
13978 | struct msghdr m; | ||
13979 | m.msg_control = 0; | ||
13980 | exit(0); | ||
13981 | } | ||
13982 | |||
13983 | _ACEOF | ||
13984 | rm -f conftest$ac_exeext | ||
13985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13986 | (eval $ac_link) 2>&5 | ||
13987 | ac_status=$? | ||
13988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13989 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13991 | (eval $ac_try) 2>&5 | ||
13992 | ac_status=$? | ||
13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13994 | (exit $ac_status); }; }; then | ||
13995 | ac_cv_have_control_in_msghdr="yes" | ||
13996 | else | ||
13997 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13998 | echo "$as_me: failed program was:" >&5 | ||
13999 | cat conftest.$ac_ext >&5 | ||
14000 | ( exit $ac_status ) | ||
14001 | ac_cv_have_control_in_msghdr="no" | ||
14002 | |||
14003 | fi | ||
14004 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14005 | fi | ||
14006 | |||
14007 | fi | ||
14008 | echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
14009 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
14010 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
14011 | cat >>confdefs.h <<\_ACEOF | ||
14012 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
14013 | _ACEOF | ||
14014 | |||
14015 | fi | ||
14016 | |||
14017 | echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
14018 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
14019 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
14020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14021 | else | ||
14022 | |||
14023 | cat >conftest.$ac_ext <<_ACEOF | ||
14024 | #line $LINENO "configure" | ||
14025 | #include "confdefs.h" | ||
14026 | |||
14027 | #ifdef F77_DUMMY_MAIN | ||
14028 | # ifdef __cplusplus | ||
14029 | extern "C" | ||
14030 | # endif | ||
14031 | int F77_DUMMY_MAIN() { return 1; } | ||
14032 | #endif | ||
14033 | int | ||
14034 | main () | ||
14035 | { | ||
14036 | extern char *__progname; printf("%s", __progname); | ||
14037 | ; | ||
14038 | return 0; | ||
14039 | } | ||
14040 | _ACEOF | ||
14041 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14043 | (eval $ac_link) 2>&5 | ||
14044 | ac_status=$? | ||
14045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14046 | (exit $ac_status); } && | ||
14047 | { ac_try='test -s conftest$ac_exeext' | ||
14048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14049 | (eval $ac_try) 2>&5 | ||
14050 | ac_status=$? | ||
14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14052 | (exit $ac_status); }; }; then | ||
14053 | ac_cv_libc_defines___progname="yes" | ||
14054 | else | ||
14055 | echo "$as_me: failed program was:" >&5 | ||
14056 | cat conftest.$ac_ext >&5 | ||
14057 | ac_cv_libc_defines___progname="no" | ||
14058 | |||
14059 | fi | ||
14060 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14061 | |||
14062 | fi | ||
14063 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
14064 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
14065 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
14066 | cat >>confdefs.h <<\_ACEOF | ||
14067 | #define HAVE___PROGNAME 1 | ||
14068 | _ACEOF | ||
14069 | |||
14070 | fi | ||
14071 | |||
14072 | echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
14073 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
14074 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
14075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14076 | else | ||
14077 | |||
14078 | cat >conftest.$ac_ext <<_ACEOF | ||
14079 | #line $LINENO "configure" | ||
14080 | #include "confdefs.h" | ||
14081 | |||
14082 | #include <stdio.h> | ||
14083 | |||
14084 | #ifdef F77_DUMMY_MAIN | ||
14085 | # ifdef __cplusplus | ||
14086 | extern "C" | ||
14087 | # endif | ||
14088 | int F77_DUMMY_MAIN() { return 1; } | ||
14089 | #endif | ||
14090 | int | ||
14091 | main () | ||
14092 | { | ||
14093 | printf("%s", __FUNCTION__); | ||
14094 | ; | ||
14095 | return 0; | ||
14096 | } | ||
14097 | _ACEOF | ||
14098 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14100 | (eval $ac_link) 2>&5 | ||
14101 | ac_status=$? | ||
14102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14103 | (exit $ac_status); } && | ||
14104 | { ac_try='test -s conftest$ac_exeext' | ||
14105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14106 | (eval $ac_try) 2>&5 | ||
14107 | ac_status=$? | ||
14108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14109 | (exit $ac_status); }; }; then | ||
14110 | ac_cv_cc_implements___FUNCTION__="yes" | ||
14111 | else | ||
14112 | echo "$as_me: failed program was:" >&5 | ||
14113 | cat conftest.$ac_ext >&5 | ||
14114 | ac_cv_cc_implements___FUNCTION__="no" | ||
14115 | |||
14116 | fi | ||
14117 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14118 | |||
14119 | fi | ||
14120 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
14121 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
14122 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
14123 | cat >>confdefs.h <<\_ACEOF | ||
14124 | #define HAVE___FUNCTION__ 1 | ||
14125 | _ACEOF | ||
14126 | |||
14127 | fi | ||
14128 | |||
14129 | echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
14130 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
14131 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
14132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14133 | else | ||
14134 | |||
14135 | cat >conftest.$ac_ext <<_ACEOF | ||
14136 | #line $LINENO "configure" | ||
14137 | #include "confdefs.h" | ||
14138 | |||
14139 | #include <stdio.h> | ||
14140 | |||
14141 | #ifdef F77_DUMMY_MAIN | ||
14142 | # ifdef __cplusplus | ||
14143 | extern "C" | ||
14144 | # endif | ||
14145 | int F77_DUMMY_MAIN() { return 1; } | ||
14146 | #endif | ||
14147 | int | ||
14148 | main () | ||
14149 | { | ||
14150 | printf("%s", __func__); | ||
14151 | ; | ||
14152 | return 0; | ||
14153 | } | ||
14154 | _ACEOF | ||
14155 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14157 | (eval $ac_link) 2>&5 | ||
14158 | ac_status=$? | ||
14159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14160 | (exit $ac_status); } && | ||
14161 | { ac_try='test -s conftest$ac_exeext' | ||
14162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14163 | (eval $ac_try) 2>&5 | ||
14164 | ac_status=$? | ||
14165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14166 | (exit $ac_status); }; }; then | ||
14167 | ac_cv_cc_implements___func__="yes" | ||
14168 | else | ||
14169 | echo "$as_me: failed program was:" >&5 | ||
14170 | cat conftest.$ac_ext >&5 | ||
14171 | ac_cv_cc_implements___func__="no" | ||
14172 | |||
14173 | fi | ||
14174 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14175 | |||
14176 | fi | ||
14177 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
14178 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
14179 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
14180 | cat >>confdefs.h <<\_ACEOF | ||
14181 | #define HAVE___func__ 1 | ||
14182 | _ACEOF | ||
14183 | |||
14184 | fi | ||
14185 | |||
14186 | echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
14187 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
14188 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
14189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14190 | else | ||
14191 | |||
14192 | cat >conftest.$ac_ext <<_ACEOF | ||
14193 | #line $LINENO "configure" | ||
14194 | #include "confdefs.h" | ||
14195 | |||
14196 | #include <getopt.h> | ||
14197 | |||
14198 | #ifdef F77_DUMMY_MAIN | ||
14199 | # ifdef __cplusplus | ||
14200 | extern "C" | ||
14201 | # endif | ||
14202 | int F77_DUMMY_MAIN() { return 1; } | ||
14203 | #endif | ||
14204 | int | ||
14205 | main () | ||
14206 | { | ||
14207 | extern int optreset; optreset = 0; | ||
14208 | ; | ||
14209 | return 0; | ||
14210 | } | ||
14211 | _ACEOF | ||
14212 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14214 | (eval $ac_link) 2>&5 | ||
14215 | ac_status=$? | ||
14216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14217 | (exit $ac_status); } && | ||
14218 | { ac_try='test -s conftest$ac_exeext' | ||
14219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14220 | (eval $ac_try) 2>&5 | ||
14221 | ac_status=$? | ||
14222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14223 | (exit $ac_status); }; }; then | ||
14224 | ac_cv_have_getopt_optreset="yes" | ||
14225 | else | ||
14226 | echo "$as_me: failed program was:" >&5 | ||
14227 | cat conftest.$ac_ext >&5 | ||
14228 | ac_cv_have_getopt_optreset="no" | ||
14229 | |||
14230 | fi | ||
14231 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14232 | |||
14233 | fi | ||
14234 | echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
14235 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
14236 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
14237 | cat >>confdefs.h <<\_ACEOF | ||
14238 | #define HAVE_GETOPT_OPTRESET 1 | ||
14239 | _ACEOF | ||
14240 | |||
14241 | fi | ||
14242 | |||
14243 | echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
14244 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
14245 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
14246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14247 | else | ||
14248 | |||
14249 | cat >conftest.$ac_ext <<_ACEOF | ||
14250 | #line $LINENO "configure" | ||
14251 | #include "confdefs.h" | ||
14252 | |||
14253 | #ifdef F77_DUMMY_MAIN | ||
14254 | # ifdef __cplusplus | ||
14255 | extern "C" | ||
14256 | # endif | ||
14257 | int F77_DUMMY_MAIN() { return 1; } | ||
14258 | #endif | ||
14259 | int | ||
14260 | main () | ||
14261 | { | ||
14262 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
14263 | ; | ||
14264 | return 0; | ||
14265 | } | ||
14266 | _ACEOF | ||
14267 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14269 | (eval $ac_link) 2>&5 | ||
14270 | ac_status=$? | ||
14271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14272 | (exit $ac_status); } && | ||
14273 | { ac_try='test -s conftest$ac_exeext' | ||
14274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14275 | (eval $ac_try) 2>&5 | ||
14276 | ac_status=$? | ||
14277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14278 | (exit $ac_status); }; }; then | ||
14279 | ac_cv_libc_defines_sys_errlist="yes" | ||
14280 | else | ||
14281 | echo "$as_me: failed program was:" >&5 | ||
14282 | cat conftest.$ac_ext >&5 | ||
14283 | ac_cv_libc_defines_sys_errlist="no" | ||
14284 | |||
14285 | fi | ||
14286 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14287 | |||
14288 | fi | ||
14289 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
14290 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
14291 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
14292 | cat >>confdefs.h <<\_ACEOF | ||
14293 | #define HAVE_SYS_ERRLIST 1 | ||
14294 | _ACEOF | ||
14295 | |||
14296 | fi | ||
14297 | |||
14298 | |||
14299 | echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
14300 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
14301 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
14302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14303 | else | ||
14304 | |||
14305 | cat >conftest.$ac_ext <<_ACEOF | ||
14306 | #line $LINENO "configure" | ||
14307 | #include "confdefs.h" | ||
14308 | |||
14309 | #ifdef F77_DUMMY_MAIN | ||
14310 | # ifdef __cplusplus | ||
14311 | extern "C" | ||
14312 | # endif | ||
14313 | int F77_DUMMY_MAIN() { return 1; } | ||
14314 | #endif | ||
14315 | int | ||
14316 | main () | ||
14317 | { | ||
14318 | extern int sys_nerr; printf("%i", sys_nerr); | ||
14319 | ; | ||
14320 | return 0; | ||
14321 | } | ||
14322 | _ACEOF | ||
14323 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14325 | (eval $ac_link) 2>&5 | ||
14326 | ac_status=$? | ||
14327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14328 | (exit $ac_status); } && | ||
14329 | { ac_try='test -s conftest$ac_exeext' | ||
14330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14331 | (eval $ac_try) 2>&5 | ||
14332 | ac_status=$? | ||
14333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14334 | (exit $ac_status); }; }; then | ||
14335 | ac_cv_libc_defines_sys_nerr="yes" | ||
14336 | else | ||
14337 | echo "$as_me: failed program was:" >&5 | ||
14338 | cat conftest.$ac_ext >&5 | ||
14339 | ac_cv_libc_defines_sys_nerr="no" | ||
14340 | |||
14341 | fi | ||
14342 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14343 | |||
14344 | fi | ||
14345 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
14346 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
14347 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
14348 | cat >>confdefs.h <<\_ACEOF | ||
14349 | #define HAVE_SYS_NERR 1 | ||
14350 | _ACEOF | ||
14351 | |||
14352 | fi | ||
14353 | |||
14354 | SCARD_MSG="no" | ||
14355 | |||
14356 | # Check whether user wants sectok support | ||
14357 | |||
14358 | # Check whether --with-sectok or --without-sectok was given. | ||
14359 | if test "${with_sectok+set}" = set; then | ||
14360 | withval="$with_sectok" | ||
14361 | |||
14362 | if test "x$withval" != "xno" ; then | ||
14363 | if test "x$withval" != "xyes" ; then | ||
14364 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
14365 | LDFLAGS="$LDFLAGS -L${withval}" | ||
14366 | if test ! -z "$need_dash_r" ; then | ||
14367 | LDFLAGS="$LDFLAGS -R${withval}" | ||
14368 | fi | ||
14369 | if test ! -z "$blibpath" ; then | ||
14370 | blibpath="$blibpath:${withval}" | ||
14371 | fi | ||
14372 | fi | ||
14373 | |||
14374 | for ac_header in sectok.h | ||
14375 | do | ||
14376 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
14377 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14378 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
14379 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
14380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14382 | fi | ||
14383 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
14384 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
14385 | else | ||
14386 | # Is the header compilable? | ||
14387 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
14388 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
14389 | cat >conftest.$ac_ext <<_ACEOF | ||
14390 | #line $LINENO "configure" | ||
14391 | #include "confdefs.h" | ||
14392 | $ac_includes_default | ||
14393 | #include <$ac_header> | ||
14394 | _ACEOF | ||
14395 | rm -f conftest.$ac_objext | ||
14396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14397 | (eval $ac_compile) 2>&5 | ||
14398 | ac_status=$? | ||
14399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14400 | (exit $ac_status); } && | ||
14401 | { ac_try='test -s conftest.$ac_objext' | ||
14402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14403 | (eval $ac_try) 2>&5 | ||
14404 | ac_status=$? | ||
14405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14406 | (exit $ac_status); }; }; then | ||
14407 | ac_header_compiler=yes | ||
14408 | else | ||
14409 | echo "$as_me: failed program was:" >&5 | ||
14410 | cat conftest.$ac_ext >&5 | ||
14411 | ac_header_compiler=no | ||
14412 | fi | ||
14413 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14414 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
14415 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
14416 | |||
14417 | # Is the header present? | ||
14418 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
14419 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
14420 | cat >conftest.$ac_ext <<_ACEOF | ||
14421 | #line $LINENO "configure" | ||
14422 | #include "confdefs.h" | ||
14423 | #include <$ac_header> | ||
14424 | _ACEOF | ||
14425 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
14426 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
14427 | ac_status=$? | ||
14428 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
14429 | rm -f conftest.er1 | ||
14430 | cat conftest.err >&5 | ||
14431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14432 | (exit $ac_status); } >/dev/null; then | ||
14433 | if test -s conftest.err; then | ||
14434 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
14435 | else | ||
14436 | ac_cpp_err= | ||
14437 | fi | ||
14438 | else | ||
14439 | ac_cpp_err=yes | ||
14440 | fi | ||
14441 | if test -z "$ac_cpp_err"; then | ||
14442 | ac_header_preproc=yes | ||
14443 | else | ||
14444 | echo "$as_me: failed program was:" >&5 | ||
14445 | cat conftest.$ac_ext >&5 | ||
14446 | ac_header_preproc=no | ||
14447 | fi | ||
14448 | rm -f conftest.err conftest.$ac_ext | ||
14449 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
14450 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
14451 | |||
14452 | # So? What about this header? | ||
14453 | case $ac_header_compiler:$ac_header_preproc in | ||
14454 | yes:no ) | ||
14455 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
14456 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
14457 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
14458 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
14459 | no:yes ) | ||
14460 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
14461 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
14462 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
14463 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
14464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
14465 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
14466 | esac | ||
14467 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
14468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
14469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14471 | else | ||
14472 | eval "$as_ac_Header=$ac_header_preproc" | ||
14473 | fi | ||
14474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
14475 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
14476 | |||
14477 | fi | ||
14478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
14479 | cat >>confdefs.h <<_ACEOF | ||
14480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
14481 | _ACEOF | ||
14482 | |||
14483 | fi | ||
14484 | |||
14485 | done | ||
14486 | |||
14487 | if test "$ac_cv_header_sectok_h" != yes; then | ||
14488 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
14489 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
14490 | { (exit 1); exit 1; }; } | ||
14491 | fi | ||
14492 | |||
14493 | echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
14494 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
14495 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
14496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14497 | else | ||
14498 | ac_check_lib_save_LIBS=$LIBS | ||
14499 | LIBS="-lsectok $LIBS" | ||
14500 | cat >conftest.$ac_ext <<_ACEOF | ||
14501 | #line $LINENO "configure" | ||
14502 | #include "confdefs.h" | ||
14503 | |||
14504 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14505 | #ifdef __cplusplus | ||
14506 | extern "C" | ||
14507 | #endif | ||
14508 | /* We use char because int might match the return type of a gcc2 | ||
14509 | builtin and then its argument prototype would still apply. */ | ||
14510 | char sectok_open (); | ||
14511 | #ifdef F77_DUMMY_MAIN | ||
14512 | # ifdef __cplusplus | ||
14513 | extern "C" | ||
14514 | # endif | ||
14515 | int F77_DUMMY_MAIN() { return 1; } | ||
14516 | #endif | ||
14517 | int | ||
14518 | main () | ||
14519 | { | ||
14520 | sectok_open (); | ||
14521 | ; | ||
14522 | return 0; | ||
14523 | } | ||
14524 | _ACEOF | ||
14525 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14527 | (eval $ac_link) 2>&5 | ||
14528 | ac_status=$? | ||
14529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14530 | (exit $ac_status); } && | ||
14531 | { ac_try='test -s conftest$ac_exeext' | ||
14532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14533 | (eval $ac_try) 2>&5 | ||
14534 | ac_status=$? | ||
14535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14536 | (exit $ac_status); }; }; then | ||
14537 | ac_cv_lib_sectok_sectok_open=yes | ||
14538 | else | ||
14539 | echo "$as_me: failed program was:" >&5 | ||
14540 | cat conftest.$ac_ext >&5 | ||
14541 | ac_cv_lib_sectok_sectok_open=no | ||
14542 | fi | ||
14543 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14544 | LIBS=$ac_check_lib_save_LIBS | ||
14545 | fi | ||
14546 | echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
14547 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
14548 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
14549 | cat >>confdefs.h <<_ACEOF | ||
14550 | #define HAVE_LIBSECTOK 1 | ||
14551 | _ACEOF | ||
14552 | |||
14553 | LIBS="-lsectok $LIBS" | ||
14554 | |||
14555 | fi | ||
14556 | |||
14557 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
14558 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
14559 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
14560 | { (exit 1); exit 1; }; } | ||
14561 | fi | ||
14562 | cat >>confdefs.h <<\_ACEOF | ||
14563 | #define SMARTCARD 1 | ||
14564 | _ACEOF | ||
14565 | |||
14566 | cat >>confdefs.h <<\_ACEOF | ||
14567 | #define USE_SECTOK 1 | ||
14568 | _ACEOF | ||
14569 | |||
14570 | SCARD_MSG="yes, using sectok" | ||
14571 | fi | ||
14572 | |||
14573 | |||
14574 | fi; | ||
14575 | |||
14576 | # Check whether user wants OpenSC support | ||
14577 | |||
14578 | # Check whether --with-opensc or --without-opensc was given. | ||
14579 | if test "${with_opensc+set}" = set; then | ||
14580 | withval="$with_opensc" | ||
14581 | opensc_config_prefix="$withval" | ||
14582 | else | ||
14583 | opensc_config_prefix="" | ||
14584 | fi; | ||
14585 | if test x$opensc_config_prefix != x ; then | ||
14586 | OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config | ||
14587 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
14588 | set dummy opensc-config; ac_word=$2 | ||
14589 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14591 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
14592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14593 | else | ||
14594 | case $OPENSC_CONFIG in | ||
14595 | [\\/]* | ?:[\\/]*) | ||
14596 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
14597 | ;; | ||
14598 | *) | ||
14599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14600 | for as_dir in $PATH | ||
14601 | do | ||
14602 | IFS=$as_save_IFS | ||
14603 | test -z "$as_dir" && as_dir=. | ||
14604 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14605 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14606 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
14607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14608 | break 2 | ||
14609 | fi | ||
14610 | done | ||
14611 | done | ||
14612 | |||
14613 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
14614 | ;; | ||
14615 | esac | ||
14616 | fi | ||
14617 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
14618 | |||
14619 | if test -n "$OPENSC_CONFIG"; then | ||
14620 | echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
14621 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
14622 | else | ||
14623 | echo "$as_me:$LINENO: result: no" >&5 | ||
14624 | echo "${ECHO_T}no" >&6 | ||
14625 | fi | ||
14626 | |||
14627 | if test "$OPENSC_CONFIG" != "no"; then | ||
14628 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
14629 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
14630 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
14631 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
14632 | cat >>confdefs.h <<\_ACEOF | ||
14633 | #define SMARTCARD 1 | ||
14634 | _ACEOF | ||
14635 | |||
14636 | cat >>confdefs.h <<\_ACEOF | ||
14637 | #define USE_OPENSC 1 | ||
14638 | _ACEOF | ||
14639 | |||
14640 | SCARD_MSG="yes, using OpenSC" | ||
14641 | fi | ||
14642 | fi | ||
14643 | |||
14644 | # Check whether user wants Kerberos 5 support | ||
14645 | KRB5_MSG="no" | ||
14646 | |||
14647 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
14648 | if test "${with_kerberos5+set}" = set; then | ||
14649 | withval="$with_kerberos5" | ||
14650 | |||
14651 | if test "x$withval" != "xno" ; then | ||
14652 | if test "x$withval" = "xyes" ; then | ||
14653 | KRB5ROOT="/usr/local" | ||
14654 | else | ||
14655 | KRB5ROOT=${withval} | ||
14656 | fi | ||
14657 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
14658 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
14659 | cat >>confdefs.h <<\_ACEOF | ||
14660 | #define KRB5 1 | ||
14661 | _ACEOF | ||
14662 | |||
14663 | KRB5_MSG="yes" | ||
14664 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
14665 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
14666 | cat >conftest.$ac_ext <<_ACEOF | ||
14667 | #line $LINENO "configure" | ||
14668 | #include "confdefs.h" | ||
14669 | #include <krb5.h> | ||
14670 | #ifdef F77_DUMMY_MAIN | ||
14671 | # ifdef __cplusplus | ||
14672 | extern "C" | ||
14673 | # endif | ||
14674 | int F77_DUMMY_MAIN() { return 1; } | ||
14675 | #endif | ||
14676 | int | ||
14677 | main () | ||
14678 | { | ||
14679 | char *tmp = heimdal_version; | ||
14680 | ; | ||
14681 | return 0; | ||
14682 | } | ||
14683 | _ACEOF | ||
14684 | rm -f conftest.$ac_objext | ||
14685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14686 | (eval $ac_compile) 2>&5 | ||
14687 | ac_status=$? | ||
14688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14689 | (exit $ac_status); } && | ||
14690 | { ac_try='test -s conftest.$ac_objext' | ||
14691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14692 | (eval $ac_try) 2>&5 | ||
14693 | ac_status=$? | ||
14694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14695 | (exit $ac_status); }; }; then | ||
14696 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14697 | echo "${ECHO_T}yes" >&6 | ||
14698 | cat >>confdefs.h <<\_ACEOF | ||
14699 | #define HEIMDAL 1 | ||
14700 | _ACEOF | ||
14701 | |||
14702 | K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken" | ||
14703 | |||
14704 | else | ||
14705 | echo "$as_me: failed program was:" >&5 | ||
14706 | cat conftest.$ac_ext >&5 | ||
14707 | echo "$as_me:$LINENO: result: no" >&5 | ||
14708 | echo "${ECHO_T}no" >&6 | ||
14709 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
14710 | |||
14711 | |||
14712 | fi | ||
14713 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14714 | if test ! -z "$need_dash_r" ; then | ||
14715 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
14716 | fi | ||
14717 | if test ! -z "$blibpath" ; then | ||
14718 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
14719 | fi | ||
14720 | |||
14721 | echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 | ||
14722 | echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6 | ||
14723 | if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then | ||
14724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14725 | else | ||
14726 | ac_check_lib_save_LIBS=$LIBS | ||
14727 | LIBS="-lresolv $LIBS" | ||
14728 | cat >conftest.$ac_ext <<_ACEOF | ||
14729 | #line $LINENO "configure" | ||
14730 | #include "confdefs.h" | ||
14731 | |||
14732 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14733 | #ifdef __cplusplus | ||
14734 | extern "C" | ||
14735 | #endif | ||
14736 | /* We use char because int might match the return type of a gcc2 | ||
14737 | builtin and then its argument prototype would still apply. */ | ||
14738 | char dn_expand (); | ||
14739 | #ifdef F77_DUMMY_MAIN | ||
14740 | # ifdef __cplusplus | ||
14741 | extern "C" | ||
14742 | # endif | ||
14743 | int F77_DUMMY_MAIN() { return 1; } | ||
14744 | #endif | ||
14745 | int | ||
14746 | main () | ||
14747 | { | ||
14748 | dn_expand (); | ||
14749 | ; | ||
14750 | return 0; | ||
14751 | } | ||
14752 | _ACEOF | ||
14753 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14755 | (eval $ac_link) 2>&5 | ||
14756 | ac_status=$? | ||
14757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14758 | (exit $ac_status); } && | ||
14759 | { ac_try='test -s conftest$ac_exeext' | ||
14760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14761 | (eval $ac_try) 2>&5 | ||
14762 | ac_status=$? | ||
14763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14764 | (exit $ac_status); }; }; then | ||
14765 | ac_cv_lib_resolv_dn_expand=yes | ||
14766 | else | ||
14767 | echo "$as_me: failed program was:" >&5 | ||
14768 | cat conftest.$ac_ext >&5 | ||
14769 | ac_cv_lib_resolv_dn_expand=no | ||
14770 | fi | ||
14771 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14772 | LIBS=$ac_check_lib_save_LIBS | ||
14773 | fi | ||
14774 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5 | ||
14775 | echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6 | ||
14776 | if test $ac_cv_lib_resolv_dn_expand = yes; then | ||
14777 | cat >>confdefs.h <<_ACEOF | ||
14778 | #define HAVE_LIBRESOLV 1 | ||
14779 | _ACEOF | ||
14780 | |||
14781 | LIBS="-lresolv $LIBS" | ||
14782 | |||
14783 | fi | ||
14784 | |||
14785 | |||
14786 | KRB5=yes | ||
14787 | fi | ||
14788 | |||
14789 | |||
14790 | fi; | ||
14791 | # Check whether user wants Kerberos 4 support | ||
14792 | KRB4_MSG="no" | ||
14793 | |||
14794 | # Check whether --with-kerberos4 or --without-kerberos4 was given. | ||
14795 | if test "${with_kerberos4+set}" = set; then | ||
14796 | withval="$with_kerberos4" | ||
14797 | |||
14798 | if test "x$withval" != "xno" ; then | ||
14799 | if test "x$withval" != "xyes" ; then | ||
14800 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
14801 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
14802 | if test ! -z "$need_dash_r" ; then | ||
14803 | LDFLAGS="$LDFLAGS -R${withval}/lib" | ||
14804 | fi | ||
14805 | if test ! -z "$blibpath" ; then | ||
14806 | blibpath="$blibpath:${withval}/lib" | ||
14807 | fi | ||
14808 | else | ||
14809 | if test -d /usr/include/kerberosIV ; then | ||
14810 | CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV" | ||
14811 | fi | ||
14812 | fi | ||
14813 | |||
14814 | |||
14815 | for ac_header in krb.h | ||
14816 | do | ||
14817 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
14818 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14819 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
14820 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
14821 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14823 | fi | ||
14824 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
14825 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
14826 | else | ||
14827 | # Is the header compilable? | ||
14828 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
14829 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
14830 | cat >conftest.$ac_ext <<_ACEOF | ||
14831 | #line $LINENO "configure" | ||
14832 | #include "confdefs.h" | ||
14833 | $ac_includes_default | ||
14834 | #include <$ac_header> | ||
14835 | _ACEOF | ||
14836 | rm -f conftest.$ac_objext | ||
14837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14838 | (eval $ac_compile) 2>&5 | ||
14839 | ac_status=$? | ||
14840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14841 | (exit $ac_status); } && | ||
14842 | { ac_try='test -s conftest.$ac_objext' | ||
14843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14844 | (eval $ac_try) 2>&5 | ||
14845 | ac_status=$? | ||
14846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14847 | (exit $ac_status); }; }; then | ||
14848 | ac_header_compiler=yes | ||
14849 | else | ||
14850 | echo "$as_me: failed program was:" >&5 | ||
14851 | cat conftest.$ac_ext >&5 | ||
14852 | ac_header_compiler=no | ||
14853 | fi | ||
14854 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14855 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
14856 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
14857 | |||
14858 | # Is the header present? | ||
14859 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
14860 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
14861 | cat >conftest.$ac_ext <<_ACEOF | ||
14862 | #line $LINENO "configure" | ||
14863 | #include "confdefs.h" | ||
14864 | #include <$ac_header> | ||
14865 | _ACEOF | ||
14866 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
14867 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
14868 | ac_status=$? | ||
14869 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
14870 | rm -f conftest.er1 | ||
14871 | cat conftest.err >&5 | ||
14872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14873 | (exit $ac_status); } >/dev/null; then | ||
14874 | if test -s conftest.err; then | ||
14875 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
14876 | else | ||
14877 | ac_cpp_err= | ||
14878 | fi | ||
14879 | else | ||
14880 | ac_cpp_err=yes | ||
14881 | fi | ||
14882 | if test -z "$ac_cpp_err"; then | ||
14883 | ac_header_preproc=yes | ||
14884 | else | ||
14885 | echo "$as_me: failed program was:" >&5 | ||
14886 | cat conftest.$ac_ext >&5 | ||
14887 | ac_header_preproc=no | ||
14888 | fi | ||
14889 | rm -f conftest.err conftest.$ac_ext | ||
14890 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
14891 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
14892 | |||
14893 | # So? What about this header? | ||
14894 | case $ac_header_compiler:$ac_header_preproc in | ||
14895 | yes:no ) | ||
14896 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
14897 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
14898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
14899 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
14900 | no:yes ) | ||
14901 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
14902 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
14903 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
14904 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
14905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
14906 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
14907 | esac | ||
14908 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
14909 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
14910 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14912 | else | ||
14913 | eval "$as_ac_Header=$ac_header_preproc" | ||
14914 | fi | ||
14915 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
14916 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
14917 | |||
14918 | fi | ||
14919 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
14920 | cat >>confdefs.h <<_ACEOF | ||
14921 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
14922 | _ACEOF | ||
14923 | |||
14924 | fi | ||
14925 | |||
14926 | done | ||
14927 | |||
14928 | if test "$ac_cv_header_krb_h" != yes; then | ||
14929 | { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5 | ||
14930 | echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;} | ||
14931 | fi | ||
14932 | |||
14933 | echo "$as_me:$LINENO: checking for main in -lkrb" >&5 | ||
14934 | echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6 | ||
14935 | if test "${ac_cv_lib_krb_main+set}" = set; then | ||
14936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14937 | else | ||
14938 | ac_check_lib_save_LIBS=$LIBS | ||
14939 | LIBS="-lkrb $LIBS" | ||
14940 | cat >conftest.$ac_ext <<_ACEOF | ||
14941 | #line $LINENO "configure" | ||
14942 | #include "confdefs.h" | ||
14943 | |||
14944 | |||
14945 | #ifdef F77_DUMMY_MAIN | ||
14946 | # ifdef __cplusplus | ||
14947 | extern "C" | ||
14948 | # endif | ||
14949 | int F77_DUMMY_MAIN() { return 1; } | ||
14950 | #endif | ||
14951 | int | ||
14952 | main () | ||
14953 | { | ||
14954 | main (); | ||
14955 | ; | ||
14956 | return 0; | ||
14957 | } | ||
14958 | _ACEOF | ||
14959 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14961 | (eval $ac_link) 2>&5 | ||
14962 | ac_status=$? | ||
14963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14964 | (exit $ac_status); } && | ||
14965 | { ac_try='test -s conftest$ac_exeext' | ||
14966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14967 | (eval $ac_try) 2>&5 | ||
14968 | ac_status=$? | ||
14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14970 | (exit $ac_status); }; }; then | ||
14971 | ac_cv_lib_krb_main=yes | ||
14972 | else | ||
14973 | echo "$as_me: failed program was:" >&5 | ||
14974 | cat conftest.$ac_ext >&5 | ||
14975 | ac_cv_lib_krb_main=no | ||
14976 | fi | ||
14977 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14978 | LIBS=$ac_check_lib_save_LIBS | ||
14979 | fi | ||
14980 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5 | ||
14981 | echo "${ECHO_T}$ac_cv_lib_krb_main" >&6 | ||
14982 | if test $ac_cv_lib_krb_main = yes; then | ||
14983 | cat >>confdefs.h <<_ACEOF | ||
14984 | #define HAVE_LIBKRB 1 | ||
14985 | _ACEOF | ||
14986 | |||
14987 | LIBS="-lkrb $LIBS" | ||
14988 | |||
14989 | fi | ||
14990 | |||
14991 | if test "$ac_cv_lib_krb_main" != yes; then | ||
14992 | |||
14993 | echo "$as_me:$LINENO: checking for main in -lkrb4" >&5 | ||
14994 | echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6 | ||
14995 | if test "${ac_cv_lib_krb4_main+set}" = set; then | ||
14996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14997 | else | ||
14998 | ac_check_lib_save_LIBS=$LIBS | ||
14999 | LIBS="-lkrb4 $LIBS" | ||
15000 | cat >conftest.$ac_ext <<_ACEOF | ||
15001 | #line $LINENO "configure" | ||
15002 | #include "confdefs.h" | ||
15003 | |||
15004 | |||
15005 | #ifdef F77_DUMMY_MAIN | ||
15006 | # ifdef __cplusplus | ||
15007 | extern "C" | ||
15008 | # endif | ||
15009 | int F77_DUMMY_MAIN() { return 1; } | ||
15010 | #endif | ||
15011 | int | ||
15012 | main () | ||
15013 | { | ||
15014 | main (); | ||
15015 | ; | ||
15016 | return 0; | ||
15017 | } | ||
15018 | _ACEOF | ||
15019 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15021 | (eval $ac_link) 2>&5 | ||
15022 | ac_status=$? | ||
15023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15024 | (exit $ac_status); } && | ||
15025 | { ac_try='test -s conftest$ac_exeext' | ||
15026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15027 | (eval $ac_try) 2>&5 | ||
15028 | ac_status=$? | ||
15029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15030 | (exit $ac_status); }; }; then | ||
15031 | ac_cv_lib_krb4_main=yes | ||
15032 | else | ||
15033 | echo "$as_me: failed program was:" >&5 | ||
15034 | cat conftest.$ac_ext >&5 | ||
15035 | ac_cv_lib_krb4_main=no | ||
15036 | fi | ||
15037 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15038 | LIBS=$ac_check_lib_save_LIBS | ||
15039 | fi | ||
15040 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5 | ||
15041 | echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6 | ||
15042 | if test $ac_cv_lib_krb4_main = yes; then | ||
15043 | cat >>confdefs.h <<_ACEOF | ||
15044 | #define HAVE_LIBKRB4 1 | ||
15045 | _ACEOF | ||
15046 | |||
15047 | LIBS="-lkrb4 $LIBS" | ||
15048 | |||
15049 | fi | ||
15050 | |||
15051 | if test "$ac_cv_lib_krb4_main" != yes; then | ||
15052 | { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5 | ||
15053 | echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;} | ||
15054 | else | ||
15055 | KLIBS="-lkrb4" | ||
15056 | fi | ||
15057 | else | ||
15058 | KLIBS="-lkrb" | ||
15059 | fi | ||
15060 | |||
15061 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | ||
15062 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 | ||
15063 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | ||
15064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15065 | else | ||
15066 | ac_check_lib_save_LIBS=$LIBS | ||
15067 | LIBS="-ldes $LIBS" | ||
15068 | cat >conftest.$ac_ext <<_ACEOF | ||
15069 | #line $LINENO "configure" | ||
15070 | #include "confdefs.h" | ||
15071 | |||
15072 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15073 | #ifdef __cplusplus | ||
15074 | extern "C" | ||
15075 | #endif | ||
15076 | /* We use char because int might match the return type of a gcc2 | ||
15077 | builtin and then its argument prototype would still apply. */ | ||
15078 | char des_cbc_encrypt (); | ||
15079 | #ifdef F77_DUMMY_MAIN | ||
15080 | # ifdef __cplusplus | ||
15081 | extern "C" | ||
15082 | # endif | ||
15083 | int F77_DUMMY_MAIN() { return 1; } | ||
15084 | #endif | ||
15085 | int | ||
15086 | main () | ||
15087 | { | ||
15088 | des_cbc_encrypt (); | ||
15089 | ; | ||
15090 | return 0; | ||
15091 | } | ||
15092 | _ACEOF | ||
15093 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15095 | (eval $ac_link) 2>&5 | ||
15096 | ac_status=$? | ||
15097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15098 | (exit $ac_status); } && | ||
15099 | { ac_try='test -s conftest$ac_exeext' | ||
15100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15101 | (eval $ac_try) 2>&5 | ||
15102 | ac_status=$? | ||
15103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15104 | (exit $ac_status); }; }; then | ||
15105 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
15106 | else | ||
15107 | echo "$as_me: failed program was:" >&5 | ||
15108 | cat conftest.$ac_ext >&5 | ||
15109 | ac_cv_lib_des_des_cbc_encrypt=no | ||
15110 | fi | ||
15111 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15112 | LIBS=$ac_check_lib_save_LIBS | ||
15113 | fi | ||
15114 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
15115 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 | ||
15116 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | ||
15117 | cat >>confdefs.h <<_ACEOF | ||
15118 | #define HAVE_LIBDES 1 | ||
15119 | _ACEOF | ||
15120 | |||
15121 | LIBS="-ldes $LIBS" | ||
15122 | |||
15123 | fi | ||
15124 | |||
15125 | if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then | ||
15126 | |||
15127 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 | ||
15128 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 | ||
15129 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | ||
15130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15131 | else | ||
15132 | ac_check_lib_save_LIBS=$LIBS | ||
15133 | LIBS="-ldes425 $LIBS" | ||
15134 | cat >conftest.$ac_ext <<_ACEOF | ||
15135 | #line $LINENO "configure" | ||
15136 | #include "confdefs.h" | ||
15137 | |||
15138 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15139 | #ifdef __cplusplus | ||
15140 | extern "C" | ||
15141 | #endif | ||
15142 | /* We use char because int might match the return type of a gcc2 | ||
15143 | builtin and then its argument prototype would still apply. */ | ||
15144 | char des_cbc_encrypt (); | ||
15145 | #ifdef F77_DUMMY_MAIN | ||
15146 | # ifdef __cplusplus | ||
15147 | extern "C" | ||
15148 | # endif | ||
15149 | int F77_DUMMY_MAIN() { return 1; } | ||
15150 | #endif | ||
15151 | int | ||
15152 | main () | ||
15153 | { | ||
15154 | des_cbc_encrypt (); | ||
15155 | ; | ||
15156 | return 0; | ||
15157 | } | ||
15158 | _ACEOF | ||
15159 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15161 | (eval $ac_link) 2>&5 | ||
15162 | ac_status=$? | ||
15163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15164 | (exit $ac_status); } && | ||
15165 | { ac_try='test -s conftest$ac_exeext' | ||
15166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15167 | (eval $ac_try) 2>&5 | ||
15168 | ac_status=$? | ||
15169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15170 | (exit $ac_status); }; }; then | ||
15171 | ac_cv_lib_des425_des_cbc_encrypt=yes | ||
15172 | else | ||
15173 | echo "$as_me: failed program was:" >&5 | ||
15174 | cat conftest.$ac_ext >&5 | ||
15175 | ac_cv_lib_des425_des_cbc_encrypt=no | ||
15176 | fi | ||
15177 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15178 | LIBS=$ac_check_lib_save_LIBS | ||
15179 | fi | ||
15180 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 | ||
15181 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 | ||
15182 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | ||
15183 | cat >>confdefs.h <<_ACEOF | ||
15184 | #define HAVE_LIBDES425 1 | ||
15185 | _ACEOF | ||
15186 | |||
15187 | LIBS="-ldes425 $LIBS" | ||
15188 | |||
15189 | fi | ||
15190 | |||
15191 | if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then | ||
15192 | { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5 | ||
15193 | echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;} | ||
15194 | else | ||
15195 | KLIBS="-ldes425" | ||
15196 | fi | ||
15197 | else | ||
15198 | KLIBS="-ldes" | ||
15199 | fi | ||
15200 | |||
15201 | echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 | ||
15202 | echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6 | ||
15203 | if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then | ||
15204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15205 | else | ||
15206 | ac_check_lib_save_LIBS=$LIBS | ||
15207 | LIBS="-lresolv $LIBS" | ||
15208 | cat >conftest.$ac_ext <<_ACEOF | ||
15209 | #line $LINENO "configure" | ||
15210 | #include "confdefs.h" | ||
15211 | |||
15212 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15213 | #ifdef __cplusplus | ||
15214 | extern "C" | ||
15215 | #endif | ||
15216 | /* We use char because int might match the return type of a gcc2 | ||
15217 | builtin and then its argument prototype would still apply. */ | ||
15218 | char dn_expand (); | ||
15219 | #ifdef F77_DUMMY_MAIN | ||
15220 | # ifdef __cplusplus | ||
15221 | extern "C" | ||
15222 | # endif | ||
15223 | int F77_DUMMY_MAIN() { return 1; } | ||
15224 | #endif | ||
15225 | int | ||
15226 | main () | ||
15227 | { | ||
15228 | dn_expand (); | ||
15229 | ; | ||
15230 | return 0; | ||
15231 | } | ||
15232 | _ACEOF | ||
15233 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15235 | (eval $ac_link) 2>&5 | ||
15236 | ac_status=$? | ||
15237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15238 | (exit $ac_status); } && | ||
15239 | { ac_try='test -s conftest$ac_exeext' | ||
15240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15241 | (eval $ac_try) 2>&5 | ||
15242 | ac_status=$? | ||
15243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15244 | (exit $ac_status); }; }; then | ||
15245 | ac_cv_lib_resolv_dn_expand=yes | ||
15246 | else | ||
15247 | echo "$as_me: failed program was:" >&5 | ||
15248 | cat conftest.$ac_ext >&5 | ||
15249 | ac_cv_lib_resolv_dn_expand=no | ||
15250 | fi | ||
15251 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15252 | LIBS=$ac_check_lib_save_LIBS | ||
15253 | fi | ||
15254 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5 | ||
15255 | echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6 | ||
15256 | if test $ac_cv_lib_resolv_dn_expand = yes; then | ||
15257 | cat >>confdefs.h <<_ACEOF | ||
15258 | #define HAVE_LIBRESOLV 1 | ||
15259 | _ACEOF | ||
15260 | |||
15261 | LIBS="-lresolv $LIBS" | ||
15262 | |||
15263 | fi | ||
15264 | |||
15265 | KRB4=yes | ||
15266 | KRB4_MSG="yes" | ||
15267 | cat >>confdefs.h <<\_ACEOF | ||
15268 | #define KRB4 1 | ||
15269 | _ACEOF | ||
15270 | |||
15271 | fi | ||
15272 | |||
15273 | |||
15274 | fi; | ||
15275 | |||
15276 | # Check whether user wants AFS support | ||
15277 | AFS_MSG="no" | ||
15278 | |||
15279 | # Check whether --with-afs or --without-afs was given. | ||
15280 | if test "${with_afs+set}" = set; then | ||
15281 | withval="$with_afs" | ||
15282 | |||
15283 | if test "x$withval" != "xno" ; then | ||
15284 | |||
15285 | if test "x$withval" != "xyes" ; then | ||
15286 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15287 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
15288 | fi | ||
15289 | |||
15290 | if test -z "$KRB4" ; then | ||
15291 | { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5 | ||
15292 | echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;} | ||
15293 | fi | ||
15294 | |||
15295 | LIBS="-lkafs $LIBS" | ||
15296 | if test ! -z "$AFS_LIBS" ; then | ||
15297 | LIBS="$LIBS $AFS_LIBS" | ||
15298 | fi | ||
15299 | cat >>confdefs.h <<\_ACEOF | ||
15300 | #define AFS 1 | ||
15301 | _ACEOF | ||
15302 | |||
15303 | AFS_MSG="yes" | ||
15304 | fi | ||
15305 | |||
15306 | |||
15307 | fi; | ||
15308 | LIBS="$LIBS $KLIBS $K5LIBS" | ||
15309 | |||
15310 | # Looking for programs, paths and files | ||
15311 | |||
15312 | PRIVSEP_PATH=/var/empty | ||
15313 | |||
15314 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
15315 | if test "${with_privsep_path+set}" = set; then | ||
15316 | withval="$with_privsep_path" | ||
15317 | |||
15318 | if test "x$withval" != "$no" ; then | ||
15319 | PRIVSEP_PATH=$withval | ||
15320 | fi | ||
15321 | |||
15322 | |||
15323 | fi; | ||
15324 | |||
15325 | |||
15326 | |||
15327 | # Check whether --with-xauth or --without-xauth was given. | ||
15328 | if test "${with_xauth+set}" = set; then | ||
15329 | withval="$with_xauth" | ||
15330 | |||
15331 | if test "x$withval" != "xno" ; then | ||
15332 | xauth_path=$withval | ||
15333 | fi | ||
15334 | |||
15335 | else | ||
15336 | |||
15337 | # Extract the first word of "xauth", so it can be a program name with args. | ||
15338 | set dummy xauth; ac_word=$2 | ||
15339 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15341 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
15342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15343 | else | ||
15344 | case $xauth_path in | ||
15345 | [\\/]* | ?:[\\/]*) | ||
15346 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
15347 | ;; | ||
15348 | *) | ||
15349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15350 | for as_dir in $PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin | ||
15351 | do | ||
15352 | IFS=$as_save_IFS | ||
15353 | test -z "$as_dir" && as_dir=. | ||
15354 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15355 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15356 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
15357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15358 | break 2 | ||
15359 | fi | ||
15360 | done | ||
15361 | done | ||
15362 | |||
15363 | ;; | ||
15364 | esac | ||
15365 | fi | ||
15366 | xauth_path=$ac_cv_path_xauth_path | ||
15367 | |||
15368 | if test -n "$xauth_path"; then | ||
15369 | echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
15370 | echo "${ECHO_T}$xauth_path" >&6 | ||
15371 | else | ||
15372 | echo "$as_me:$LINENO: result: no" >&5 | ||
15373 | echo "${ECHO_T}no" >&6 | ||
15374 | fi | ||
15375 | |||
15376 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
15377 | xauth_path="/usr/openwin/bin/xauth" | ||
15378 | fi | ||
15379 | |||
15380 | |||
15381 | fi; | ||
15382 | |||
15383 | if test -z "$xauth_path" ; then | ||
15384 | XAUTH_PATH="undefined" | ||
15385 | |||
15386 | else | ||
15387 | cat >>confdefs.h <<_ACEOF | ||
15388 | #define XAUTH_PATH "$xauth_path" | ||
15389 | _ACEOF | ||
15390 | |||
15391 | XAUTH_PATH=$xauth_path | ||
15392 | |||
15393 | fi | ||
15394 | |||
15395 | # Check for mail directory (last resort if we cannot get it from headers) | ||
15396 | if test ! -z "$MAIL" ; then | ||
15397 | maildir=`dirname $MAIL` | ||
15398 | cat >>confdefs.h <<_ACEOF | ||
15399 | #define MAIL_DIRECTORY "$maildir" | ||
15400 | _ACEOF | ||
15401 | |||
15402 | fi | ||
15403 | |||
15404 | if test -z "$no_dev_ptmx" ; then | ||
15405 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
15406 | echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
15407 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
15408 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
15409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15410 | else | ||
15411 | test "$cross_compiling" = yes && | ||
15412 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
15413 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
15414 | { (exit 1); exit 1; }; } | ||
15415 | if test -r ""/dev/ptmx""; then | ||
15416 | ac_cv_file___dev_ptmx_=yes | ||
15417 | else | ||
15418 | ac_cv_file___dev_ptmx_=no | ||
15419 | fi | ||
15420 | fi | ||
15421 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
15422 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
15423 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
15424 | |||
15425 | cat >>confdefs.h <<_ACEOF | ||
15426 | #define HAVE_DEV_PTMX 1 | ||
15427 | _ACEOF | ||
15428 | |||
15429 | have_dev_ptmx=1 | ||
15430 | |||
15431 | |||
15432 | fi | ||
15433 | |||
15434 | fi | ||
15435 | fi | ||
15436 | echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
15437 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
15438 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
15439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15440 | else | ||
15441 | test "$cross_compiling" = yes && | ||
15442 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
15443 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
15444 | { (exit 1); exit 1; }; } | ||
15445 | if test -r ""/dev/ptc""; then | ||
15446 | ac_cv_file___dev_ptc_=yes | ||
15447 | else | ||
15448 | ac_cv_file___dev_ptc_=no | ||
15449 | fi | ||
15450 | fi | ||
15451 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
15452 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
15453 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
15454 | |||
15455 | cat >>confdefs.h <<_ACEOF | ||
15456 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
15457 | _ACEOF | ||
15458 | |||
15459 | have_dev_ptc=1 | ||
15460 | |||
15461 | |||
15462 | fi | ||
15463 | |||
15464 | |||
15465 | # Options from here on. Some of these are preset by platform above | ||
15466 | |||
15467 | # Check whether --with-mantype or --without-mantype was given. | ||
15468 | if test "${with_mantype+set}" = set; then | ||
15469 | withval="$with_mantype" | ||
15470 | |||
15471 | case "$withval" in | ||
15472 | man|cat|doc) | ||
15473 | MANTYPE=$withval | ||
15474 | ;; | ||
15475 | *) | ||
15476 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
15477 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
15478 | { (exit 1); exit 1; }; } | ||
15479 | ;; | ||
15480 | esac | ||
15481 | |||
15482 | |||
15483 | fi; | ||
15484 | if test -z "$MANTYPE"; then | ||
15485 | for ac_prog in nroff awf | ||
15486 | do | ||
15487 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
15488 | set dummy $ac_prog; ac_word=$2 | ||
15489 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15491 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
15492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15493 | else | ||
15494 | case $NROFF in | ||
15495 | [\\/]* | ?:[\\/]*) | ||
15496 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
15497 | ;; | ||
15498 | *) | ||
15499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15500 | as_dummy="/usr/bin:/usr/ucb" | ||
15501 | for as_dir in $as_dummy | ||
15502 | do | ||
15503 | IFS=$as_save_IFS | ||
15504 | test -z "$as_dir" && as_dir=. | ||
15505 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15507 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
15508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15509 | break 2 | ||
15510 | fi | ||
15511 | done | ||
15512 | done | ||
15513 | |||
15514 | ;; | ||
15515 | esac | ||
15516 | fi | ||
15517 | NROFF=$ac_cv_path_NROFF | ||
15518 | |||
15519 | if test -n "$NROFF"; then | ||
15520 | echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
15521 | echo "${ECHO_T}$NROFF" >&6 | ||
15522 | else | ||
15523 | echo "$as_me:$LINENO: result: no" >&5 | ||
15524 | echo "${ECHO_T}no" >&6 | ||
15525 | fi | ||
15526 | |||
15527 | test -n "$NROFF" && break | ||
15528 | done | ||
15529 | test -n "$NROFF" || NROFF="/bin/false" | ||
15530 | |||
15531 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
15532 | MANTYPE=doc | ||
15533 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
15534 | MANTYPE=man | ||
15535 | else | ||
15536 | MANTYPE=cat | ||
15537 | fi | ||
15538 | fi | ||
15539 | |||
15540 | if test "$MANTYPE" = "doc"; then | ||
15541 | mansubdir=man; | ||
15542 | else | ||
15543 | mansubdir=$MANTYPE; | ||
15544 | fi | ||
15545 | |||
15546 | |||
15547 | # Check whether to enable MD5 passwords | ||
15548 | MD5_MSG="no" | ||
15549 | |||
15550 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
15551 | if test "${with_md5_passwords+set}" = set; then | ||
15552 | withval="$with_md5_passwords" | ||
15553 | |||
15554 | if test "x$withval" != "xno" ; then | ||
15555 | cat >>confdefs.h <<\_ACEOF | ||
15556 | #define HAVE_MD5_PASSWORDS 1 | ||
15557 | _ACEOF | ||
15558 | |||
15559 | MD5_MSG="yes" | ||
15560 | fi | ||
15561 | |||
15562 | |||
15563 | fi; | ||
15564 | |||
15565 | # Whether to disable shadow password support | ||
15566 | |||
15567 | # Check whether --with-shadow or --without-shadow was given. | ||
15568 | if test "${with_shadow+set}" = set; then | ||
15569 | withval="$with_shadow" | ||
15570 | |||
15571 | if test "x$withval" = "xno" ; then | ||
15572 | cat >>confdefs.h <<\_ACEOF | ||
15573 | #define DISABLE_SHADOW 1 | ||
15574 | _ACEOF | ||
15575 | |||
15576 | disable_shadow=yes | ||
15577 | fi | ||
15578 | |||
15579 | |||
15580 | fi; | ||
15581 | |||
15582 | if test -z "$disable_shadow" ; then | ||
15583 | echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
15584 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
15585 | cat >conftest.$ac_ext <<_ACEOF | ||
15586 | #line $LINENO "configure" | ||
15587 | #include "confdefs.h" | ||
15588 | |||
15589 | #include <sys/types.h> | ||
15590 | #include <shadow.h> | ||
15591 | struct spwd sp; | ||
15592 | |||
15593 | #ifdef F77_DUMMY_MAIN | ||
15594 | # ifdef __cplusplus | ||
15595 | extern "C" | ||
15596 | # endif | ||
15597 | int F77_DUMMY_MAIN() { return 1; } | ||
15598 | #endif | ||
15599 | int | ||
15600 | main () | ||
15601 | { | ||
15602 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
15603 | ; | ||
15604 | return 0; | ||
15605 | } | ||
15606 | _ACEOF | ||
15607 | rm -f conftest.$ac_objext | ||
15608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15609 | (eval $ac_compile) 2>&5 | ||
15610 | ac_status=$? | ||
15611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15612 | (exit $ac_status); } && | ||
15613 | { ac_try='test -s conftest.$ac_objext' | ||
15614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15615 | (eval $ac_try) 2>&5 | ||
15616 | ac_status=$? | ||
15617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15618 | (exit $ac_status); }; }; then | ||
15619 | sp_expire_available=yes | ||
15620 | else | ||
15621 | echo "$as_me: failed program was:" >&5 | ||
15622 | cat conftest.$ac_ext >&5 | ||
15623 | |||
15624 | |||
15625 | fi | ||
15626 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15627 | |||
15628 | if test "x$sp_expire_available" = "xyes" ; then | ||
15629 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15630 | echo "${ECHO_T}yes" >&6 | ||
15631 | cat >>confdefs.h <<\_ACEOF | ||
15632 | #define HAS_SHADOW_EXPIRE 1 | ||
15633 | _ACEOF | ||
15634 | |||
15635 | else | ||
15636 | echo "$as_me:$LINENO: result: no" >&5 | ||
15637 | echo "${ECHO_T}no" >&6 | ||
15638 | fi | ||
15639 | fi | ||
15640 | |||
15641 | # Use ip address instead of hostname in $DISPLAY | ||
15642 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
15643 | DISPLAY_HACK_MSG="yes" | ||
15644 | cat >>confdefs.h <<\_ACEOF | ||
15645 | #define IPADDR_IN_DISPLAY 1 | ||
15646 | _ACEOF | ||
15647 | |||
15648 | else | ||
15649 | DISPLAY_HACK_MSG="no" | ||
15650 | |||
15651 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
15652 | if test "${with_ipaddr_display+set}" = set; then | ||
15653 | withval="$with_ipaddr_display" | ||
15654 | |||
15655 | if test "x$withval" != "xno" ; then | ||
15656 | cat >>confdefs.h <<\_ACEOF | ||
15657 | #define IPADDR_IN_DISPLAY 1 | ||
15658 | _ACEOF | ||
15659 | |||
15660 | DISPLAY_HACK_MSG="yes" | ||
15661 | fi | ||
15662 | |||
15663 | |||
15664 | fi; | ||
15665 | fi | ||
15666 | |||
15667 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | ||
15668 | $ac_cv_header_login_cap_h = "yes" ; then | ||
15669 | USES_LOGIN_CONF=yes | ||
15670 | fi | ||
15671 | # Whether to mess with the default path | ||
15672 | SERVER_PATH_MSG="(default)" | ||
15673 | |||
15674 | # Check whether --with-default-path or --without-default-path was given. | ||
15675 | if test "${with_default_path+set}" = set; then | ||
15676 | withval="$with_default_path" | ||
15677 | |||
15678 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
15679 | { echo "$as_me:$LINENO: WARNING: | ||
15680 | --with-default-path=PATH has no effect on this system. | ||
15681 | Edit /etc/login.conf instead." >&5 | ||
15682 | echo "$as_me: WARNING: | ||
15683 | --with-default-path=PATH has no effect on this system. | ||
15684 | Edit /etc/login.conf instead." >&2;} | ||
15685 | elif test "x$withval" != "xno" ; then | ||
15686 | user_path="$withval" | ||
15687 | SERVER_PATH_MSG="$withval" | ||
15688 | fi | ||
15689 | |||
15690 | else | ||
15691 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
15692 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
15693 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
15694 | else | ||
15695 | if test "$cross_compiling" = yes; then | ||
15696 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
15697 | |||
15698 | else | ||
15699 | cat >conftest.$ac_ext <<_ACEOF | ||
15700 | #line $LINENO "configure" | ||
15701 | #include "confdefs.h" | ||
15702 | |||
15703 | /* find out what STDPATH is */ | ||
15704 | #include <stdio.h> | ||
15705 | #ifdef HAVE_PATHS_H | ||
15706 | # include <paths.h> | ||
15707 | #endif | ||
15708 | #ifndef _PATH_STDPATH | ||
15709 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
15710 | #endif | ||
15711 | #include <sys/types.h> | ||
15712 | #include <sys/stat.h> | ||
15713 | #include <fcntl.h> | ||
15714 | #define DATA "conftest.stdpath" | ||
15715 | |||
15716 | main() | ||
15717 | { | ||
15718 | FILE *fd; | ||
15719 | int rc; | ||
15720 | |||
15721 | fd = fopen(DATA,"w"); | ||
15722 | if(fd == NULL) | ||
15723 | exit(1); | ||
15724 | |||
15725 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
15726 | exit(1); | ||
15727 | |||
15728 | exit(0); | ||
15729 | } | ||
15730 | |||
15731 | _ACEOF | ||
15732 | rm -f conftest$ac_exeext | ||
15733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15734 | (eval $ac_link) 2>&5 | ||
15735 | ac_status=$? | ||
15736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15737 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15739 | (eval $ac_try) 2>&5 | ||
15740 | ac_status=$? | ||
15741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15742 | (exit $ac_status); }; }; then | ||
15743 | user_path=`cat conftest.stdpath` | ||
15744 | else | ||
15745 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15746 | echo "$as_me: failed program was:" >&5 | ||
15747 | cat conftest.$ac_ext >&5 | ||
15748 | ( exit $ac_status ) | ||
15749 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
15750 | fi | ||
15751 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15752 | fi | ||
15753 | # make sure $bindir is in USER_PATH so scp will work | ||
15754 | t_bindir=`eval echo ${bindir}` | ||
15755 | case $t_bindir in | ||
15756 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
15757 | esac | ||
15758 | case $t_bindir in | ||
15759 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
15760 | esac | ||
15761 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
15762 | if test $? -ne 0 ; then | ||
15763 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
15764 | if test $? -ne 0 ; then | ||
15765 | user_path=$user_path:$t_bindir | ||
15766 | echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
15767 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
15768 | fi | ||
15769 | fi | ||
15770 | fi | ||
15771 | |||
15772 | fi; | ||
15773 | if test "$USES_LOGIN_CONF" != "yes" ; then | ||
15774 | cat >>confdefs.h <<_ACEOF | ||
15775 | #define USER_PATH "$user_path" | ||
15776 | _ACEOF | ||
15777 | |||
15778 | |||
15779 | fi | ||
15780 | |||
15781 | # Set superuser path separately to user path | ||
15782 | |||
15783 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
15784 | if test "${with_superuser_path+set}" = set; then | ||
15785 | withval="$with_superuser_path" | ||
15786 | |||
15787 | if test "x$withval" != "xno" ; then | ||
15788 | cat >>confdefs.h <<_ACEOF | ||
15789 | #define SUPERUSER_PATH "$withval" | ||
15790 | _ACEOF | ||
15791 | |||
15792 | superuser_path=$withval | ||
15793 | fi | ||
15794 | |||
15795 | |||
15796 | fi; | ||
15797 | |||
15798 | |||
15799 | # Whether to force IPv4 by default (needed on broken glibc Linux) | ||
15800 | IPV4_HACK_MSG="no" | ||
15801 | |||
15802 | # Check whether --with-ipv4-default or --without-ipv4-default was given. | ||
15803 | if test "${with_ipv4_default+set}" = set; then | ||
15804 | withval="$with_ipv4_default" | ||
15805 | |||
15806 | if test "x$withval" != "xno" ; then | ||
15807 | cat >>confdefs.h <<\_ACEOF | ||
15808 | #define IPV4_DEFAULT 1 | ||
15809 | _ACEOF | ||
15810 | |||
15811 | IPV4_HACK_MSG="yes" | ||
15812 | fi | ||
15813 | |||
15814 | |||
15815 | fi; | ||
15816 | |||
15817 | echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
15818 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
15819 | IPV4_IN6_HACK_MSG="no" | ||
15820 | |||
15821 | # Check whether --with-4in6 or --without-4in6 was given. | ||
15822 | if test "${with_4in6+set}" = set; then | ||
15823 | withval="$with_4in6" | ||
15824 | |||
15825 | if test "x$withval" != "xno" ; then | ||
15826 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15827 | echo "${ECHO_T}yes" >&6 | ||
15828 | cat >>confdefs.h <<\_ACEOF | ||
15829 | #define IPV4_IN_IPV6 1 | ||
15830 | _ACEOF | ||
15831 | |||
15832 | IPV4_IN6_HACK_MSG="yes" | ||
15833 | else | ||
15834 | echo "$as_me:$LINENO: result: no" >&5 | ||
15835 | echo "${ECHO_T}no" >&6 | ||
15836 | fi | ||
15837 | |||
15838 | else | ||
15839 | |||
15840 | if test "x$inet6_default_4in6" = "xyes"; then | ||
15841 | echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
15842 | echo "${ECHO_T}yes (default)" >&6 | ||
15843 | cat >>confdefs.h <<\_ACEOF | ||
15844 | #define IPV4_IN_IPV6 1 | ||
15845 | _ACEOF | ||
15846 | |||
15847 | IPV4_IN6_HACK_MSG="yes" | ||
15848 | else | ||
15849 | echo "$as_me:$LINENO: result: no (default)" >&5 | ||
15850 | echo "${ECHO_T}no (default)" >&6 | ||
15851 | fi | ||
15852 | |||
15853 | |||
15854 | fi; | ||
15855 | |||
15856 | # Whether to enable BSD auth support | ||
15857 | BSD_AUTH_MSG=no | ||
15858 | |||
15859 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
15860 | if test "${with_bsd_auth+set}" = set; then | ||
15861 | withval="$with_bsd_auth" | ||
15862 | |||
15863 | if test "x$withval" != "xno" ; then | ||
15864 | cat >>confdefs.h <<\_ACEOF | ||
15865 | #define BSD_AUTH 1 | ||
15866 | _ACEOF | ||
15867 | |||
15868 | BSD_AUTH_MSG=yes | ||
15869 | fi | ||
15870 | |||
15871 | |||
15872 | fi; | ||
15873 | |||
15874 | # Where to place sshd.pid | ||
15875 | piddir=/var/run | ||
15876 | # make sure the directory exists | ||
15877 | if test ! -d $piddir ; then | ||
15878 | piddir=`eval echo ${sysconfdir}` | ||
15879 | case $piddir in | ||
15880 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
15881 | esac | ||
15882 | fi | ||
15883 | |||
15884 | |||
15885 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
15886 | if test "${with_pid_dir+set}" = set; then | ||
15887 | withval="$with_pid_dir" | ||
15888 | |||
15889 | if test "x$withval" != "xno" ; then | ||
15890 | piddir=$withval | ||
15891 | if test ! -d $piddir ; then | ||
15892 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
15893 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
15894 | fi | ||
15895 | fi | ||
15896 | |||
15897 | |||
15898 | fi; | ||
15899 | |||
15900 | cat >>confdefs.h <<_ACEOF | ||
15901 | #define _PATH_SSH_PIDDIR "$piddir" | ||
15902 | _ACEOF | ||
15903 | |||
15904 | |||
15905 | |||
15906 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
15907 | if test "${enable_lastlog+set}" = set; then | ||
15908 | enableval="$enable_lastlog" | ||
15909 | cat >>confdefs.h <<\_ACEOF | ||
15910 | #define DISABLE_LASTLOG 1 | ||
15911 | _ACEOF | ||
15912 | |||
15913 | |||
15914 | fi; | ||
15915 | # Check whether --enable-utmp or --disable-utmp was given. | ||
15916 | if test "${enable_utmp+set}" = set; then | ||
15917 | enableval="$enable_utmp" | ||
15918 | cat >>confdefs.h <<\_ACEOF | ||
15919 | #define DISABLE_UTMP 1 | ||
15920 | _ACEOF | ||
15921 | |||
15922 | |||
15923 | fi; | ||
15924 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
15925 | if test "${enable_utmpx+set}" = set; then | ||
15926 | enableval="$enable_utmpx" | ||
15927 | cat >>confdefs.h <<\_ACEOF | ||
15928 | #define DISABLE_UTMPX 1 | ||
15929 | _ACEOF | ||
15930 | |||
15931 | |||
15932 | fi; | ||
15933 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
15934 | if test "${enable_wtmp+set}" = set; then | ||
15935 | enableval="$enable_wtmp" | ||
15936 | cat >>confdefs.h <<\_ACEOF | ||
15937 | #define DISABLE_WTMP 1 | ||
15938 | _ACEOF | ||
15939 | |||
15940 | |||
15941 | fi; | ||
15942 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
15943 | if test "${enable_wtmpx+set}" = set; then | ||
15944 | enableval="$enable_wtmpx" | ||
15945 | cat >>confdefs.h <<\_ACEOF | ||
15946 | #define DISABLE_WTMPX 1 | ||
15947 | _ACEOF | ||
15948 | |||
15949 | |||
15950 | fi; | ||
15951 | # Check whether --enable-libutil or --disable-libutil was given. | ||
15952 | if test "${enable_libutil+set}" = set; then | ||
15953 | enableval="$enable_libutil" | ||
15954 | cat >>confdefs.h <<\_ACEOF | ||
15955 | #define DISABLE_LOGIN 1 | ||
15956 | _ACEOF | ||
15957 | |||
15958 | |||
15959 | fi; | ||
15960 | # Check whether --enable-pututline or --disable-pututline was given. | ||
15961 | if test "${enable_pututline+set}" = set; then | ||
15962 | enableval="$enable_pututline" | ||
15963 | cat >>confdefs.h <<\_ACEOF | ||
15964 | #define DISABLE_PUTUTLINE 1 | ||
15965 | _ACEOF | ||
15966 | |||
15967 | |||
15968 | fi; | ||
15969 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
15970 | if test "${enable_pututxline+set}" = set; then | ||
15971 | enableval="$enable_pututxline" | ||
15972 | cat >>confdefs.h <<\_ACEOF | ||
15973 | #define DISABLE_PUTUTXLINE 1 | ||
15974 | _ACEOF | ||
15975 | |||
15976 | |||
15977 | fi; | ||
15978 | |||
15979 | # Check whether --with-lastlog or --without-lastlog was given. | ||
15980 | if test "${with_lastlog+set}" = set; then | ||
15981 | withval="$with_lastlog" | ||
15982 | |||
15983 | if test "x$withval" = "xno" ; then | ||
15984 | cat >>confdefs.h <<\_ACEOF | ||
15985 | #define DISABLE_LASTLOG 1 | ||
15986 | _ACEOF | ||
15987 | |||
15988 | else | ||
15989 | conf_lastlog_location=$withval | ||
15990 | fi | ||
15991 | |||
15992 | |||
15993 | fi; | ||
15994 | |||
15995 | |||
15996 | echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
15997 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
15998 | cat >conftest.$ac_ext <<_ACEOF | ||
15999 | #line $LINENO "configure" | ||
16000 | #include "confdefs.h" | ||
16001 | |||
16002 | #include <sys/types.h> | ||
16003 | #include <utmp.h> | ||
16004 | #ifdef HAVE_LASTLOG_H | ||
16005 | # include <lastlog.h> | ||
16006 | #endif | ||
16007 | #ifdef HAVE_PATHS_H | ||
16008 | # include <paths.h> | ||
16009 | #endif | ||
16010 | #ifdef HAVE_LOGIN_H | ||
16011 | # include <login.h> | ||
16012 | #endif | ||
16013 | |||
16014 | #ifdef F77_DUMMY_MAIN | ||
16015 | # ifdef __cplusplus | ||
16016 | extern "C" | ||
16017 | # endif | ||
16018 | int F77_DUMMY_MAIN() { return 1; } | ||
16019 | #endif | ||
16020 | int | ||
16021 | main () | ||
16022 | { | ||
16023 | char *lastlog = LASTLOG_FILE; | ||
16024 | ; | ||
16025 | return 0; | ||
16026 | } | ||
16027 | _ACEOF | ||
16028 | rm -f conftest.$ac_objext | ||
16029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16030 | (eval $ac_compile) 2>&5 | ||
16031 | ac_status=$? | ||
16032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16033 | (exit $ac_status); } && | ||
16034 | { ac_try='test -s conftest.$ac_objext' | ||
16035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16036 | (eval $ac_try) 2>&5 | ||
16037 | ac_status=$? | ||
16038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16039 | (exit $ac_status); }; }; then | ||
16040 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16041 | echo "${ECHO_T}yes" >&6 | ||
16042 | else | ||
16043 | echo "$as_me: failed program was:" >&5 | ||
16044 | cat conftest.$ac_ext >&5 | ||
16045 | |||
16046 | echo "$as_me:$LINENO: result: no" >&5 | ||
16047 | echo "${ECHO_T}no" >&6 | ||
16048 | echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
16049 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
16050 | cat >conftest.$ac_ext <<_ACEOF | ||
16051 | #line $LINENO "configure" | ||
16052 | #include "confdefs.h" | ||
16053 | |||
16054 | #include <sys/types.h> | ||
16055 | #include <utmp.h> | ||
16056 | #ifdef HAVE_LASTLOG_H | ||
16057 | # include <lastlog.h> | ||
16058 | #endif | ||
16059 | #ifdef HAVE_PATHS_H | ||
16060 | # include <paths.h> | ||
16061 | #endif | ||
16062 | |||
16063 | #ifdef F77_DUMMY_MAIN | ||
16064 | # ifdef __cplusplus | ||
16065 | extern "C" | ||
16066 | # endif | ||
16067 | int F77_DUMMY_MAIN() { return 1; } | ||
16068 | #endif | ||
16069 | int | ||
16070 | main () | ||
16071 | { | ||
16072 | char *lastlog = _PATH_LASTLOG; | ||
16073 | ; | ||
16074 | return 0; | ||
16075 | } | ||
16076 | _ACEOF | ||
16077 | rm -f conftest.$ac_objext | ||
16078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16079 | (eval $ac_compile) 2>&5 | ||
16080 | ac_status=$? | ||
16081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16082 | (exit $ac_status); } && | ||
16083 | { ac_try='test -s conftest.$ac_objext' | ||
16084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16085 | (eval $ac_try) 2>&5 | ||
16086 | ac_status=$? | ||
16087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16088 | (exit $ac_status); }; }; then | ||
16089 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16090 | echo "${ECHO_T}yes" >&6 | ||
16091 | else | ||
16092 | echo "$as_me: failed program was:" >&5 | ||
16093 | cat conftest.$ac_ext >&5 | ||
16094 | |||
16095 | echo "$as_me:$LINENO: result: no" >&5 | ||
16096 | echo "${ECHO_T}no" >&6 | ||
16097 | system_lastlog_path=no | ||
16098 | |||
16099 | fi | ||
16100 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16101 | |||
16102 | |||
16103 | fi | ||
16104 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16105 | |||
16106 | if test -z "$conf_lastlog_location"; then | ||
16107 | if test x"$system_lastlog_path" = x"no" ; then | ||
16108 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
16109 | if (test -d "$f" || test -f "$f") ; then | ||
16110 | conf_lastlog_location=$f | ||
16111 | fi | ||
16112 | done | ||
16113 | if test -z "$conf_lastlog_location"; then | ||
16114 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
16115 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
16116 | fi | ||
16117 | fi | ||
16118 | fi | ||
16119 | |||
16120 | if test -n "$conf_lastlog_location"; then | ||
16121 | cat >>confdefs.h <<_ACEOF | ||
16122 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
16123 | _ACEOF | ||
16124 | |||
16125 | fi | ||
16126 | |||
16127 | echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
16128 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
16129 | cat >conftest.$ac_ext <<_ACEOF | ||
16130 | #line $LINENO "configure" | ||
16131 | #include "confdefs.h" | ||
16132 | |||
16133 | #include <sys/types.h> | ||
16134 | #include <utmp.h> | ||
16135 | #ifdef HAVE_PATHS_H | ||
16136 | # include <paths.h> | ||
16137 | #endif | ||
16138 | |||
16139 | #ifdef F77_DUMMY_MAIN | ||
16140 | # ifdef __cplusplus | ||
16141 | extern "C" | ||
16142 | # endif | ||
16143 | int F77_DUMMY_MAIN() { return 1; } | ||
16144 | #endif | ||
16145 | int | ||
16146 | main () | ||
16147 | { | ||
16148 | char *utmp = UTMP_FILE; | ||
16149 | ; | ||
16150 | return 0; | ||
16151 | } | ||
16152 | _ACEOF | ||
16153 | rm -f conftest.$ac_objext | ||
16154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16155 | (eval $ac_compile) 2>&5 | ||
16156 | ac_status=$? | ||
16157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16158 | (exit $ac_status); } && | ||
16159 | { ac_try='test -s conftest.$ac_objext' | ||
16160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16161 | (eval $ac_try) 2>&5 | ||
16162 | ac_status=$? | ||
16163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16164 | (exit $ac_status); }; }; then | ||
16165 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16166 | echo "${ECHO_T}yes" >&6 | ||
16167 | else | ||
16168 | echo "$as_me: failed program was:" >&5 | ||
16169 | cat conftest.$ac_ext >&5 | ||
16170 | echo "$as_me:$LINENO: result: no" >&5 | ||
16171 | echo "${ECHO_T}no" >&6 | ||
16172 | system_utmp_path=no | ||
16173 | |||
16174 | fi | ||
16175 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16176 | if test -z "$conf_utmp_location"; then | ||
16177 | if test x"$system_utmp_path" = x"no" ; then | ||
16178 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
16179 | if test -f $f ; then | ||
16180 | conf_utmp_location=$f | ||
16181 | fi | ||
16182 | done | ||
16183 | if test -z "$conf_utmp_location"; then | ||
16184 | cat >>confdefs.h <<\_ACEOF | ||
16185 | #define DISABLE_UTMP 1 | ||
16186 | _ACEOF | ||
16187 | |||
16188 | fi | ||
16189 | fi | ||
16190 | fi | ||
16191 | if test -n "$conf_utmp_location"; then | ||
16192 | cat >>confdefs.h <<_ACEOF | ||
16193 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
16194 | _ACEOF | ||
16195 | |||
16196 | fi | ||
16197 | |||
16198 | echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
16199 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
16200 | cat >conftest.$ac_ext <<_ACEOF | ||
16201 | #line $LINENO "configure" | ||
16202 | #include "confdefs.h" | ||
16203 | |||
16204 | #include <sys/types.h> | ||
16205 | #include <utmp.h> | ||
16206 | #ifdef HAVE_PATHS_H | ||
16207 | # include <paths.h> | ||
16208 | #endif | ||
16209 | |||
16210 | #ifdef F77_DUMMY_MAIN | ||
16211 | # ifdef __cplusplus | ||
16212 | extern "C" | ||
16213 | # endif | ||
16214 | int F77_DUMMY_MAIN() { return 1; } | ||
16215 | #endif | ||
16216 | int | ||
16217 | main () | ||
16218 | { | ||
16219 | char *wtmp = WTMP_FILE; | ||
16220 | ; | ||
16221 | return 0; | ||
16222 | } | ||
16223 | _ACEOF | ||
16224 | rm -f conftest.$ac_objext | ||
16225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16226 | (eval $ac_compile) 2>&5 | ||
16227 | ac_status=$? | ||
16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16229 | (exit $ac_status); } && | ||
16230 | { ac_try='test -s conftest.$ac_objext' | ||
16231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16232 | (eval $ac_try) 2>&5 | ||
16233 | ac_status=$? | ||
16234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16235 | (exit $ac_status); }; }; then | ||
16236 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16237 | echo "${ECHO_T}yes" >&6 | ||
16238 | else | ||
16239 | echo "$as_me: failed program was:" >&5 | ||
16240 | cat conftest.$ac_ext >&5 | ||
16241 | echo "$as_me:$LINENO: result: no" >&5 | ||
16242 | echo "${ECHO_T}no" >&6 | ||
16243 | system_wtmp_path=no | ||
16244 | |||
16245 | fi | ||
16246 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16247 | if test -z "$conf_wtmp_location"; then | ||
16248 | if test x"$system_wtmp_path" = x"no" ; then | ||
16249 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
16250 | if test -f $f ; then | ||
16251 | conf_wtmp_location=$f | ||
16252 | fi | ||
16253 | done | ||
16254 | if test -z "$conf_wtmp_location"; then | ||
16255 | cat >>confdefs.h <<\_ACEOF | ||
16256 | #define DISABLE_WTMP 1 | ||
16257 | _ACEOF | ||
16258 | |||
16259 | fi | ||
16260 | fi | ||
16261 | fi | ||
16262 | if test -n "$conf_wtmp_location"; then | ||
16263 | cat >>confdefs.h <<_ACEOF | ||
16264 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
16265 | _ACEOF | ||
16266 | |||
16267 | fi | ||
16268 | |||
16269 | |||
16270 | echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
16271 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
16272 | cat >conftest.$ac_ext <<_ACEOF | ||
16273 | #line $LINENO "configure" | ||
16274 | #include "confdefs.h" | ||
16275 | |||
16276 | #include <sys/types.h> | ||
16277 | #include <utmp.h> | ||
16278 | #ifdef HAVE_UTMPX_H | ||
16279 | #include <utmpx.h> | ||
16280 | #endif | ||
16281 | #ifdef HAVE_PATHS_H | ||
16282 | # include <paths.h> | ||
16283 | #endif | ||
16284 | |||
16285 | #ifdef F77_DUMMY_MAIN | ||
16286 | # ifdef __cplusplus | ||
16287 | extern "C" | ||
16288 | # endif | ||
16289 | int F77_DUMMY_MAIN() { return 1; } | ||
16290 | #endif | ||
16291 | int | ||
16292 | main () | ||
16293 | { | ||
16294 | char *utmpx = UTMPX_FILE; | ||
16295 | ; | ||
16296 | return 0; | ||
16297 | } | ||
16298 | _ACEOF | ||
16299 | rm -f conftest.$ac_objext | ||
16300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16301 | (eval $ac_compile) 2>&5 | ||
16302 | ac_status=$? | ||
16303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16304 | (exit $ac_status); } && | ||
16305 | { ac_try='test -s conftest.$ac_objext' | ||
16306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16307 | (eval $ac_try) 2>&5 | ||
16308 | ac_status=$? | ||
16309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16310 | (exit $ac_status); }; }; then | ||
16311 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16312 | echo "${ECHO_T}yes" >&6 | ||
16313 | else | ||
16314 | echo "$as_me: failed program was:" >&5 | ||
16315 | cat conftest.$ac_ext >&5 | ||
16316 | echo "$as_me:$LINENO: result: no" >&5 | ||
16317 | echo "${ECHO_T}no" >&6 | ||
16318 | system_utmpx_path=no | ||
16319 | |||
16320 | fi | ||
16321 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16322 | if test -z "$conf_utmpx_location"; then | ||
16323 | if test x"$system_utmpx_path" = x"no" ; then | ||
16324 | cat >>confdefs.h <<\_ACEOF | ||
16325 | #define DISABLE_UTMPX 1 | ||
16326 | _ACEOF | ||
16327 | |||
16328 | fi | ||
16329 | else | ||
16330 | cat >>confdefs.h <<_ACEOF | ||
16331 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
16332 | _ACEOF | ||
16333 | |||
16334 | fi | ||
16335 | |||
16336 | echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
16337 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
16338 | cat >conftest.$ac_ext <<_ACEOF | ||
16339 | #line $LINENO "configure" | ||
16340 | #include "confdefs.h" | ||
16341 | |||
16342 | #include <sys/types.h> | ||
16343 | #include <utmp.h> | ||
16344 | #ifdef HAVE_UTMPX_H | ||
16345 | #include <utmpx.h> | ||
16346 | #endif | ||
16347 | #ifdef HAVE_PATHS_H | ||
16348 | # include <paths.h> | ||
16349 | #endif | ||
16350 | |||
16351 | #ifdef F77_DUMMY_MAIN | ||
16352 | # ifdef __cplusplus | ||
16353 | extern "C" | ||
16354 | # endif | ||
16355 | int F77_DUMMY_MAIN() { return 1; } | ||
16356 | #endif | ||
16357 | int | ||
16358 | main () | ||
16359 | { | ||
16360 | char *wtmpx = WTMPX_FILE; | ||
16361 | ; | ||
16362 | return 0; | ||
16363 | } | ||
16364 | _ACEOF | ||
16365 | rm -f conftest.$ac_objext | ||
16366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16367 | (eval $ac_compile) 2>&5 | ||
16368 | ac_status=$? | ||
16369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16370 | (exit $ac_status); } && | ||
16371 | { ac_try='test -s conftest.$ac_objext' | ||
16372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16373 | (eval $ac_try) 2>&5 | ||
16374 | ac_status=$? | ||
16375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16376 | (exit $ac_status); }; }; then | ||
16377 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16378 | echo "${ECHO_T}yes" >&6 | ||
16379 | else | ||
16380 | echo "$as_me: failed program was:" >&5 | ||
16381 | cat conftest.$ac_ext >&5 | ||
16382 | echo "$as_me:$LINENO: result: no" >&5 | ||
16383 | echo "${ECHO_T}no" >&6 | ||
16384 | system_wtmpx_path=no | ||
16385 | |||
16386 | fi | ||
16387 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16388 | if test -z "$conf_wtmpx_location"; then | ||
16389 | if test x"$system_wtmpx_path" = x"no" ; then | ||
16390 | cat >>confdefs.h <<\_ACEOF | ||
16391 | #define DISABLE_WTMPX 1 | ||
16392 | _ACEOF | ||
16393 | |||
16394 | fi | ||
16395 | else | ||
16396 | cat >>confdefs.h <<_ACEOF | ||
16397 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
16398 | _ACEOF | ||
16399 | |||
16400 | fi | ||
16401 | |||
16402 | |||
16403 | if test ! -z "$blibpath" ; then | ||
16404 | LDFLAGS="$LDFLAGS -blibpath:$blibpath" | ||
16405 | { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5 | ||
16406 | echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;} | ||
16407 | fi | ||
16408 | |||
16409 | if test "$PAM_MSG" = yes ; then | ||
16410 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
16411 | fi | ||
16412 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
16413 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
16414 | fi | ||
16415 | |||
16416 | |||
16417 | ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds" | ||
16418 | |||
16419 | cat >confcache <<\_ACEOF | ||
16420 | # This file is a shell script that caches the results of configure | ||
16421 | # tests run on this system so they can be shared between configure | ||
16422 | # scripts and configure runs, see configure's option --config-cache. | ||
16423 | # It is not useful on other systems. If it contains results you don't | ||
16424 | # want to keep, you may remove or edit it. | ||
16425 | # | ||
16426 | # config.status only pays attention to the cache file if you give it | ||
16427 | # the --recheck option to rerun configure. | ||
16428 | # | ||
16429 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | ||
16430 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
16431 | # following values. | ||
16432 | |||
16433 | _ACEOF | ||
16434 | |||
16435 | # The following way of writing the cache mishandles newlines in values, | ||
16436 | # but we know of no workaround that is simple, portable, and efficient. | ||
16437 | # So, don't put newlines in cache variables' values. | ||
16438 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
16439 | # and sets the high bit in the cache file unless we assign to the vars. | ||
16440 | { | ||
16441 | (set) 2>&1 | | ||
16442 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
16443 | *ac_space=\ *) | ||
16444 | # `set' does not quote correctly, so add quotes (double-quote | ||
16445 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
16446 | sed -n \ | ||
16447 | "s/'/'\\\\''/g; | ||
16448 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
16449 | ;; | ||
16450 | *) | ||
16451 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
16452 | sed -n \ | ||
16453 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
16454 | ;; | ||
16455 | esac; | ||
16456 | } | | ||
16457 | sed ' | ||
16458 | t clear | ||
16459 | : clear | ||
16460 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
16461 | t end | ||
16462 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
16463 | : end' >>confcache | ||
16464 | if cmp -s $cache_file confcache; then :; else | ||
16465 | if test -w $cache_file; then | ||
16466 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
16467 | cat confcache >$cache_file | ||
16468 | else | ||
16469 | echo "not updating unwritable cache $cache_file" | ||
16470 | fi | ||
16471 | fi | ||
16472 | rm -f confcache | ||
16473 | |||
16474 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
16475 | # Let make expand exec_prefix. | ||
16476 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
16477 | |||
16478 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
16479 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
16480 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
16481 | # (actually we leave an empty line to preserve line numbers). | ||
16482 | if test "x$srcdir" = x.; then | ||
16483 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
16484 | s/:*\$(srcdir):*/:/; | ||
16485 | s/:*\${srcdir}:*/:/; | ||
16486 | s/:*@srcdir@:*/:/; | ||
16487 | s/^\([^=]*=[ ]*\):*/\1/; | ||
16488 | s/:*$//; | ||
16489 | s/^[^=]*=[ ]*$//; | ||
16490 | }' | ||
16491 | fi | ||
16492 | |||
16493 | DEFS=-DHAVE_CONFIG_H | ||
16494 | |||
16495 | |||
16496 | : ${CONFIG_STATUS=./config.status} | ||
16497 | ac_clean_files_save=$ac_clean_files | ||
16498 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
16499 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
16500 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
16501 | cat >$CONFIG_STATUS <<_ACEOF | ||
16502 | #! $SHELL | ||
16503 | # Generated by $as_me. | ||
16504 | # Run this file to recreate the current configuration. | ||
16505 | # Compiler output produced by configure, useful for debugging | ||
16506 | # configure, is in config.log if it exists. | ||
16507 | |||
16508 | debug=false | ||
16509 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
16510 | _ACEOF | ||
16511 | |||
16512 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
16513 | |||
16514 | ## --------------------- ## | ||
16515 | ## M4sh Initialization. ## | ||
16516 | ## --------------------- ## | ||
16517 | |||
16518 | # Be Bourne compatible | ||
16519 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
16520 | emulate sh | ||
16521 | NULLCMD=: | ||
16522 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
16523 | set -o posix | ||
16524 | fi | ||
16525 | |||
16526 | # NLS nuisances. | ||
16527 | # Support unset when possible. | ||
16528 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
16529 | as_unset=unset | ||
16530 | else | ||
16531 | as_unset=false | ||
16532 | fi | ||
16533 | |||
16534 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | ||
16535 | { $as_unset LANG || test "${LANG+set}" != set; } || | ||
16536 | { LANG=C; export LANG; } | ||
16537 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | ||
16538 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | ||
16539 | { LC_ALL=C; export LC_ALL; } | ||
16540 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | ||
16541 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | ||
16542 | { LC_TIME=C; export LC_TIME; } | ||
16543 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | ||
16544 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | ||
16545 | { LC_CTYPE=C; export LC_CTYPE; } | ||
16546 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | ||
16547 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | ||
16548 | { LANGUAGE=C; export LANGUAGE; } | ||
16549 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | ||
16550 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | ||
16551 | { LC_COLLATE=C; export LC_COLLATE; } | ||
16552 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | ||
16553 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | ||
16554 | { LC_NUMERIC=C; export LC_NUMERIC; } | ||
16555 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | ||
16556 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | ||
16557 | { LC_MESSAGES=C; export LC_MESSAGES; } | ||
16558 | |||
16559 | |||
16560 | # Name of the executable. | ||
16561 | as_me=`(basename "$0") 2>/dev/null || | ||
16562 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
16563 | X"$0" : 'X\(//\)$' \| \ | ||
16564 | X"$0" : 'X\(/\)$' \| \ | ||
16565 | . : '\(.\)' 2>/dev/null || | ||
16566 | echo X/"$0" | | ||
16567 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
16568 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
16569 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
16570 | s/.*/./; q'` | ||
16571 | |||
16572 | # PATH needs CR, and LINENO needs CR and PATH. | ||
16573 | # Avoid depending upon Character Ranges. | ||
16574 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
16575 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
16576 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
16577 | as_cr_digits='0123456789' | ||
16578 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
16579 | |||
16580 | # The user is always right. | ||
16581 | if test "${PATH_SEPARATOR+set}" != set; then | ||
16582 | echo "#! /bin/sh" >conftest.sh | ||
16583 | echo "exit 0" >>conftest.sh | ||
16584 | chmod +x conftest.sh | ||
16585 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | ||
16586 | PATH_SEPARATOR=';' | ||
16587 | else | ||
16588 | PATH_SEPARATOR=: | ||
16589 | fi | ||
16590 | rm -f conftest.sh | ||
16591 | fi | ||
16592 | |||
16593 | |||
16594 | as_lineno_1=$LINENO | ||
16595 | as_lineno_2=$LINENO | ||
16596 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
16597 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
16598 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
16599 | # Find who we are. Look in the path if we contain no path at all | ||
16600 | # relative or not. | ||
16601 | case $0 in | ||
16602 | *[\\/]* ) as_myself=$0 ;; | ||
16603 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16604 | for as_dir in $PATH | ||
16605 | do | ||
16606 | IFS=$as_save_IFS | ||
16607 | test -z "$as_dir" && as_dir=. | ||
16608 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
16609 | done | ||
16610 | |||
16611 | ;; | ||
16612 | esac | ||
16613 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
16614 | # in which case we are not to be found in the path. | ||
16615 | if test "x$as_myself" = x; then | ||
16616 | as_myself=$0 | ||
16617 | fi | ||
16618 | if test ! -f "$as_myself"; then | ||
16619 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
16620 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
16621 | { (exit 1); exit 1; }; } | ||
16622 | fi | ||
16623 | case $CONFIG_SHELL in | ||
16624 | '') | ||
16625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16626 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
16627 | do | ||
16628 | IFS=$as_save_IFS | ||
16629 | test -z "$as_dir" && as_dir=. | ||
16630 | for as_base in sh bash ksh sh5; do | ||
16631 | case $as_dir in | ||
16632 | /*) | ||
16633 | if ("$as_dir/$as_base" -c ' | ||
16634 | as_lineno_1=$LINENO | ||
16635 | as_lineno_2=$LINENO | ||
16636 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
16637 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
16638 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
16639 | CONFIG_SHELL=$as_dir/$as_base | ||
16640 | export CONFIG_SHELL | ||
16641 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
16642 | fi;; | ||
16643 | esac | ||
16644 | done | ||
16645 | done | ||
16646 | ;; | ||
16647 | esac | ||
16648 | |||
16649 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
16650 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
16651 | # line-number line before each line; the second 'sed' does the real | ||
16652 | # work. The second script uses 'N' to pair each line-number line | ||
16653 | # with the numbered line, and appends trailing '-' during | ||
16654 | # substitution so that $LINENO is not a special case at line end. | ||
16655 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
16656 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
16657 | sed '=' <$as_myself | | ||
16658 | sed ' | ||
16659 | N | ||
16660 | s,$,-, | ||
16661 | : loop | ||
16662 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
16663 | t loop | ||
16664 | s,-$,, | ||
16665 | s,^['$as_cr_digits']*\n,, | ||
16666 | ' >$as_me.lineno && | ||
16667 | chmod +x $as_me.lineno || | ||
16668 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
16669 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
16670 | { (exit 1); exit 1; }; } | ||
16671 | |||
16672 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
16673 | # (the dirname of $[0] is not the place where we might find the | ||
16674 | # original and so on. Autoconf is especially sensible to this). | ||
16675 | . ./$as_me.lineno | ||
16676 | # Exit status is that of the last command. | ||
16677 | exit | ||
16678 | } | ||
16679 | |||
16680 | |||
16681 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
16682 | *c*,-n*) ECHO_N= ECHO_C=' | ||
16683 | ' ECHO_T=' ' ;; | ||
16684 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
16685 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
16686 | esac | ||
16687 | |||
16688 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
16689 | as_expr=expr | ||
16690 | else | ||
16691 | as_expr=false | ||
16692 | fi | ||
16693 | |||
16694 | rm -f conf$$ conf$$.exe conf$$.file | ||
16695 | echo >conf$$.file | ||
16696 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
16697 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
16698 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
16699 | if test -f conf$$.exe; then | ||
16700 | # Don't use ln at all; we don't have any links | ||
16701 | as_ln_s='cp -p' | ||
16702 | else | ||
16703 | as_ln_s='ln -s' | ||
16704 | fi | ||
16705 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
16706 | as_ln_s=ln | ||
16707 | else | ||
16708 | as_ln_s='cp -p' | ||
16709 | fi | ||
16710 | rm -f conf$$ conf$$.exe conf$$.file | ||
16711 | |||
16712 | as_executable_p="test -f" | ||
16713 | |||
16714 | # Sed expression to map a string onto a valid CPP name. | ||
16715 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
16716 | |||
16717 | # Sed expression to map a string onto a valid variable name. | ||
16718 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
16719 | |||
16720 | |||
16721 | # IFS | ||
16722 | # We need space, tab and new line, in precisely that order. | ||
16723 | as_nl=' | ||
16724 | ' | ||
16725 | IFS=" $as_nl" | ||
16726 | |||
16727 | # CDPATH. | ||
16728 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | ||
16729 | |||
16730 | exec 6>&1 | ||
16731 | |||
16732 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
16733 | # report actual input values of CONFIG_FILES etc. instead of their | ||
16734 | # values after options handling. Logging --version etc. is OK. | ||
16735 | exec 5>>config.log | ||
16736 | { | ||
16737 | echo | ||
16738 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
16739 | ## Running $as_me. ## | ||
16740 | _ASBOX | ||
16741 | } >&5 | ||
16742 | cat >&5 <<_CSEOF | ||
16743 | |||
16744 | This file was extended by $as_me, which was | ||
16745 | generated by GNU Autoconf 2.53. Invocation command line was | ||
16746 | |||
16747 | CONFIG_FILES = $CONFIG_FILES | ||
16748 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
16749 | CONFIG_LINKS = $CONFIG_LINKS | ||
16750 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
16751 | $ $0 $@ | ||
16752 | |||
16753 | _CSEOF | ||
16754 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
16755 | echo >&5 | ||
16756 | _ACEOF | ||
16757 | |||
16758 | # Files that config.status was made for. | ||
16759 | if test -n "$ac_config_files"; then | ||
16760 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
16761 | fi | ||
16762 | |||
16763 | if test -n "$ac_config_headers"; then | ||
16764 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
16765 | fi | ||
16766 | |||
16767 | if test -n "$ac_config_links"; then | ||
16768 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
16769 | fi | ||
16770 | |||
16771 | if test -n "$ac_config_commands"; then | ||
16772 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
16773 | fi | ||
16774 | |||
16775 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
16776 | |||
16777 | ac_cs_usage="\ | ||
16778 | \`$as_me' instantiates files from templates according to the | ||
16779 | current configuration. | ||
16780 | |||
16781 | Usage: $0 [OPTIONS] [FILE]... | ||
16782 | |||
16783 | -h, --help print this help, then exit | ||
16784 | -V, --version print version number, then exit | ||
16785 | -d, --debug don't remove temporary files | ||
16786 | --recheck update $as_me by reconfiguring in the same conditions | ||
16787 | --file=FILE[:TEMPLATE] | ||
16788 | instantiate the configuration file FILE | ||
16789 | --header=FILE[:TEMPLATE] | ||
16790 | instantiate the configuration header FILE | ||
16791 | |||
16792 | Configuration files: | ||
16793 | $config_files | ||
16794 | |||
16795 | Configuration headers: | ||
16796 | $config_headers | ||
16797 | |||
16798 | Report bugs to <bug-autoconf@gnu.org>." | ||
16799 | _ACEOF | ||
16800 | |||
16801 | cat >>$CONFIG_STATUS <<_ACEOF | ||
16802 | ac_cs_version="\\ | ||
16803 | config.status | ||
16804 | configured by $0, generated by GNU Autoconf 2.53, | ||
16805 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
16806 | |||
16807 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
16808 | Free Software Foundation, Inc. | ||
16809 | This config.status script is free software; the Free Software Foundation | ||
16810 | gives unlimited permission to copy, distribute and modify it." | ||
16811 | srcdir=$srcdir | ||
16812 | INSTALL="$INSTALL" | ||
16813 | _ACEOF | ||
16814 | |||
16815 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
16816 | # If no file are specified by the user, then we need to provide default | ||
16817 | # value. By we need to know if files were specified by the user. | ||
16818 | ac_need_defaults=: | ||
16819 | while test $# != 0 | ||
16820 | do | ||
16821 | case $1 in | ||
16822 | --*=*) | ||
16823 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
16824 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
16825 | shift | ||
16826 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | ||
16827 | shift | ||
16828 | ;; | ||
16829 | -*);; | ||
16830 | *) # This is not an option, so the user has probably given explicit | ||
16831 | # arguments. | ||
16832 | ac_need_defaults=false;; | ||
16833 | esac | ||
16834 | |||
16835 | case $1 in | ||
16836 | # Handling of the options. | ||
16837 | _ACEOF | ||
16838 | cat >>$CONFIG_STATUS <<_ACEOF | ||
16839 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
16840 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | ||
16841 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | ||
16842 | _ACEOF | ||
16843 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
16844 | --version | --vers* | -V ) | ||
16845 | echo "$ac_cs_version"; exit 0 ;; | ||
16846 | --he | --h) | ||
16847 | # Conflict between --help and --header | ||
16848 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
16849 | Try \`$0 --help' for more information." >&5 | ||
16850 | echo "$as_me: error: ambiguous option: $1 | ||
16851 | Try \`$0 --help' for more information." >&2;} | ||
16852 | { (exit 1); exit 1; }; };; | ||
16853 | --help | --hel | -h ) | ||
16854 | echo "$ac_cs_usage"; exit 0 ;; | ||
16855 | --debug | --d* | -d ) | ||
16856 | debug=: ;; | ||
16857 | --file | --fil | --fi | --f ) | ||
16858 | shift | ||
16859 | CONFIG_FILES="$CONFIG_FILES $1" | ||
16860 | ac_need_defaults=false;; | ||
16861 | --header | --heade | --head | --hea ) | ||
16862 | shift | ||
16863 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | ||
16864 | ac_need_defaults=false;; | ||
16865 | |||
16866 | # This is an error. | ||
16867 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
16868 | Try \`$0 --help' for more information." >&5 | ||
16869 | echo "$as_me: error: unrecognized option: $1 | ||
16870 | Try \`$0 --help' for more information." >&2;} | ||
16871 | { (exit 1); exit 1; }; } ;; | ||
16872 | |||
16873 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
16874 | |||
16875 | esac | ||
16876 | shift | ||
16877 | done | ||
16878 | |||
16879 | _ACEOF | ||
16880 | |||
16881 | |||
16882 | |||
16883 | |||
16884 | |||
16885 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
16886 | for ac_config_target in $ac_config_targets | ||
16887 | do | ||
16888 | case "$ac_config_target" in | ||
16889 | # Handling of arguments. | ||
16890 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
16891 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
16892 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
16893 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
16894 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
16895 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
16896 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
16897 | { (exit 1); exit 1; }; };; | ||
16898 | esac | ||
16899 | done | ||
16900 | |||
16901 | # If the user did not use the arguments to specify the items to instantiate, | ||
16902 | # then the envvar interface is used. Set only those that are not. | ||
16903 | # We use the long form for the default assignment because of an extremely | ||
16904 | # bizarre bug on SunOS 4.1.3. | ||
16905 | if $ac_need_defaults; then | ||
16906 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
16907 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
16908 | fi | ||
16909 | |||
16910 | # Create a temporary directory, and hook for its removal unless debugging. | ||
16911 | $debug || | ||
16912 | { | ||
16913 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
16914 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
16915 | } | ||
16916 | |||
16917 | # Create a (secure) tmp directory for tmp files. | ||
16918 | : ${TMPDIR=/tmp} | ||
16919 | { | ||
16920 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | ||
16921 | test -n "$tmp" && test -d "$tmp" | ||
16922 | } || | ||
16923 | { | ||
16924 | tmp=$TMPDIR/cs$$-$RANDOM | ||
16925 | (umask 077 && mkdir $tmp) | ||
16926 | } || | ||
16927 | { | ||
16928 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | ||
16929 | { (exit 1); exit 1; } | ||
16930 | } | ||
16931 | |||
16932 | _ACEOF | ||
16933 | |||
16934 | cat >>$CONFIG_STATUS <<_ACEOF | ||
16935 | |||
16936 | # | ||
16937 | # CONFIG_FILES section. | ||
16938 | # | ||
16939 | |||
16940 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
16941 | # This happens for instance when ./config.status config.h | ||
16942 | if test -n "\$CONFIG_FILES"; then | ||
16943 | # Protect against being on the right side of a sed subst in config.status. | ||
16944 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
16945 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
16946 | s,@SHELL@,$SHELL,;t t | ||
16947 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
16948 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
16949 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
16950 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
16951 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
16952 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
16953 | s,@exec_prefix@,$exec_prefix,;t t | ||
16954 | s,@prefix@,$prefix,;t t | ||
16955 | s,@program_transform_name@,$program_transform_name,;t t | ||
16956 | s,@bindir@,$bindir,;t t | ||
16957 | s,@sbindir@,$sbindir,;t t | ||
16958 | s,@libexecdir@,$libexecdir,;t t | ||
16959 | s,@datadir@,$datadir,;t t | ||
16960 | s,@sysconfdir@,$sysconfdir,;t t | ||
16961 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
16962 | s,@localstatedir@,$localstatedir,;t t | ||
16963 | s,@libdir@,$libdir,;t t | ||
16964 | s,@includedir@,$includedir,;t t | ||
16965 | s,@oldincludedir@,$oldincludedir,;t t | ||
16966 | s,@infodir@,$infodir,;t t | ||
16967 | s,@mandir@,$mandir,;t t | ||
16968 | s,@build_alias@,$build_alias,;t t | ||
16969 | s,@host_alias@,$host_alias,;t t | ||
16970 | s,@target_alias@,$target_alias,;t t | ||
16971 | s,@DEFS@,$DEFS,;t t | ||
16972 | s,@ECHO_C@,$ECHO_C,;t t | ||
16973 | s,@ECHO_N@,$ECHO_N,;t t | ||
16974 | s,@ECHO_T@,$ECHO_T,;t t | ||
16975 | s,@LIBS@,$LIBS,;t t | ||
16976 | s,@CC@,$CC,;t t | ||
16977 | s,@CFLAGS@,$CFLAGS,;t t | ||
16978 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
16979 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
16980 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
16981 | s,@EXEEXT@,$EXEEXT,;t t | ||
16982 | s,@OBJEXT@,$OBJEXT,;t t | ||
16983 | s,@build@,$build,;t t | ||
16984 | s,@build_cpu@,$build_cpu,;t t | ||
16985 | s,@build_vendor@,$build_vendor,;t t | ||
16986 | s,@build_os@,$build_os,;t t | ||
16987 | s,@host@,$host,;t t | ||
16988 | s,@host_cpu@,$host_cpu,;t t | ||
16989 | s,@host_vendor@,$host_vendor,;t t | ||
16990 | s,@host_os@,$host_os,;t t | ||
16991 | s,@CPP@,$CPP,;t t | ||
16992 | s,@RANLIB@,$RANLIB,;t t | ||
16993 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
16994 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
16995 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
16996 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
16997 | s,@AR@,$AR,;t t | ||
16998 | s,@PERL@,$PERL,;t t | ||
16999 | s,@ENT@,$ENT,;t t | ||
17000 | s,@FILEPRIV@,$FILEPRIV,;t t | ||
17001 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
17002 | s,@SH@,$SH,;t t | ||
17003 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
17004 | s,@LD@,$LD,;t t | ||
17005 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
17006 | s,@LIBPAM@,$LIBPAM,;t t | ||
17007 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
17008 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
17009 | s,@PROG_LS@,$PROG_LS,;t t | ||
17010 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
17011 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
17012 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
17013 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
17014 | s,@PROG_PS@,$PROG_PS,;t t | ||
17015 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
17016 | s,@PROG_W@,$PROG_W,;t t | ||
17017 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
17018 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
17019 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
17020 | s,@PROG_DF@,$PROG_DF,;t t | ||
17021 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
17022 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
17023 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
17024 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
17025 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
17026 | s,@NO_SFTP@,$NO_SFTP,;t t | ||
17027 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
17028 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
17029 | s,@xauth_path@,$xauth_path,;t t | ||
17030 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
17031 | s,@NROFF@,$NROFF,;t t | ||
17032 | s,@MANTYPE@,$MANTYPE,;t t | ||
17033 | s,@mansubdir@,$mansubdir,;t t | ||
17034 | s,@user_path@,$user_path,;t t | ||
17035 | s,@piddir@,$piddir,;t t | ||
17036 | CEOF | ||
17037 | |||
17038 | _ACEOF | ||
17039 | |||
17040 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17041 | # Split the substitutions into bite-sized pieces for seds with | ||
17042 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
17043 | ac_max_sed_lines=48 | ||
17044 | ac_sed_frag=1 # Number of current file. | ||
17045 | ac_beg=1 # First line for current file. | ||
17046 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
17047 | ac_more_lines=: | ||
17048 | ac_sed_cmds= | ||
17049 | while $ac_more_lines; do | ||
17050 | if test $ac_beg -gt 1; then | ||
17051 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17052 | else | ||
17053 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17054 | fi | ||
17055 | if test ! -s $tmp/subs.frag; then | ||
17056 | ac_more_lines=false | ||
17057 | else | ||
17058 | # The purpose of the label and of the branching condition is to | ||
17059 | # speed up the sed processing (if there are no `@' at all, there | ||
17060 | # is no need to browse any of the substitutions). | ||
17061 | # These are the two extra sed commands mentioned above. | ||
17062 | (echo ':t | ||
17063 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
17064 | if test -z "$ac_sed_cmds"; then | ||
17065 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17066 | else | ||
17067 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17068 | fi | ||
17069 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
17070 | ac_beg=$ac_end | ||
17071 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
17072 | fi | ||
17073 | done | ||
17074 | if test -z "$ac_sed_cmds"; then | ||
17075 | ac_sed_cmds=cat | ||
17076 | fi | ||
17077 | fi # test -n "$CONFIG_FILES" | ||
17078 | |||
17079 | _ACEOF | ||
17080 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17081 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
17082 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
17083 | case $ac_file in | ||
17084 | - | *:- | *:-:* ) # input from stdin | ||
17085 | cat >$tmp/stdin | ||
17086 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17087 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17088 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17089 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17090 | * ) ac_file_in=$ac_file.in ;; | ||
17091 | esac | ||
17092 | |||
17093 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
17094 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
17095 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17096 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
17097 | X"$ac_file" : 'X\(//\)$' \| \ | ||
17098 | X"$ac_file" : 'X\(/\)' \| \ | ||
17099 | . : '\(.\)' 2>/dev/null || | ||
17100 | echo X"$ac_file" | | ||
17101 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
17102 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
17103 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
17104 | /^X\(\/\).*/{ s//\1/; q; } | ||
17105 | s/.*/./; q'` | ||
17106 | { case "$ac_dir" in | ||
17107 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
17108 | *) as_incr_dir=.;; | ||
17109 | esac | ||
17110 | as_dummy="$ac_dir" | ||
17111 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
17112 | case $as_mkdir_dir in | ||
17113 | # Skip DOS drivespec | ||
17114 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
17115 | *) | ||
17116 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
17117 | test -d "$as_incr_dir" || | ||
17118 | mkdir "$as_incr_dir" || | ||
17119 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | ||
17120 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | ||
17121 | { (exit 1); exit 1; }; } | ||
17122 | ;; | ||
17123 | esac | ||
17124 | done; } | ||
17125 | |||
17126 | ac_builddir=. | ||
17127 | |||
17128 | if test "$ac_dir" != .; then | ||
17129 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
17130 | # A "../" for each directory in $ac_dir_suffix. | ||
17131 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
17132 | else | ||
17133 | ac_dir_suffix= ac_top_builddir= | ||
17134 | fi | ||
17135 | |||
17136 | case $srcdir in | ||
17137 | .) # No --srcdir option. We are building in place. | ||
17138 | ac_srcdir=. | ||
17139 | if test -z "$ac_top_builddir"; then | ||
17140 | ac_top_srcdir=. | ||
17141 | else | ||
17142 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
17143 | fi ;; | ||
17144 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
17145 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
17146 | ac_top_srcdir=$srcdir ;; | ||
17147 | *) # Relative path. | ||
17148 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
17149 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
17150 | esac | ||
17151 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | ||
17152 | # absolute. | ||
17153 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | ||
17154 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | ||
17155 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | ||
17156 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | ||
17157 | |||
17158 | |||
17159 | case $INSTALL in | ||
17160 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
17161 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | ||
17162 | esac | ||
17163 | |||
17164 | if test x"$ac_file" != x-; then | ||
17165 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
17166 | echo "$as_me: creating $ac_file" >&6;} | ||
17167 | rm -f "$ac_file" | ||
17168 | fi | ||
17169 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17170 | # use $as_me), people would be surprised to read: | ||
17171 | # /* config.h. Generated by config.status. */ | ||
17172 | if test x"$ac_file" = x-; then | ||
17173 | configure_input= | ||
17174 | else | ||
17175 | configure_input="$ac_file. " | ||
17176 | fi | ||
17177 | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
17178 | sed 's,.*/,,'` by configure." | ||
17179 | |||
17180 | # First look for the input files in the build tree, otherwise in the | ||
17181 | # src tree. | ||
17182 | ac_file_inputs=`IFS=: | ||
17183 | for f in $ac_file_in; do | ||
17184 | case $f in | ||
17185 | -) echo $tmp/stdin ;; | ||
17186 | [\\/$]*) | ||
17187 | # Absolute (can't be DOS-style, as IFS=:) | ||
17188 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
17189 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17190 | { (exit 1); exit 1; }; } | ||
17191 | echo $f;; | ||
17192 | *) # Relative | ||
17193 | if test -f "$f"; then | ||
17194 | # Build tree | ||
17195 | echo $f | ||
17196 | elif test -f "$srcdir/$f"; then | ||
17197 | # Source tree | ||
17198 | echo $srcdir/$f | ||
17199 | else | ||
17200 | # /dev/null tree | ||
17201 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
17202 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17203 | { (exit 1); exit 1; }; } | ||
17204 | fi;; | ||
17205 | esac | ||
17206 | done` || { (exit 1); exit 1; } | ||
17207 | _ACEOF | ||
17208 | cat >>$CONFIG_STATUS <<_ACEOF | ||
17209 | sed "$ac_vpsub | ||
17210 | $extrasub | ||
17211 | _ACEOF | ||
17212 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17213 | :t | ||
17214 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
17215 | s,@configure_input@,$configure_input,;t t | ||
17216 | s,@srcdir@,$ac_srcdir,;t t | ||
17217 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
17218 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
17219 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
17220 | s,@builddir@,$ac_builddir,;t t | ||
17221 | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
17222 | s,@top_builddir@,$ac_top_builddir,;t t | ||
17223 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
17224 | s,@INSTALL@,$ac_INSTALL,;t t | ||
17225 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
17226 | rm -f $tmp/stdin | ||
17227 | if test x"$ac_file" != x-; then | ||
17228 | mv $tmp/out $ac_file | ||
17229 | else | ||
17230 | cat $tmp/out | ||
17231 | rm -f $tmp/out | ||
17232 | fi | ||
17233 | |||
17234 | done | ||
17235 | _ACEOF | ||
17236 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17237 | |||
17238 | # | ||
17239 | # CONFIG_HEADER section. | ||
17240 | # | ||
17241 | |||
17242 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
17243 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
17244 | # | ||
17245 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
17246 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
17247 | ac_dB='[ ].*$,\1#\2' | ||
17248 | ac_dC=' ' | ||
17249 | ac_dD=',;t' | ||
17250 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
17251 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
17252 | ac_uB='$,\1#\2define\3' | ||
17253 | ac_uC=' ' | ||
17254 | ac_uD=',;t' | ||
17255 | |||
17256 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
17257 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
17258 | case $ac_file in | ||
17259 | - | *:- | *:-:* ) # input from stdin | ||
17260 | cat >$tmp/stdin | ||
17261 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17262 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17263 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17264 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17265 | * ) ac_file_in=$ac_file.in ;; | ||
17266 | esac | ||
17267 | |||
17268 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
17269 | echo "$as_me: creating $ac_file" >&6;} | ||
17270 | |||
17271 | # First look for the input files in the build tree, otherwise in the | ||
17272 | # src tree. | ||
17273 | ac_file_inputs=`IFS=: | ||
17274 | for f in $ac_file_in; do | ||
17275 | case $f in | ||
17276 | -) echo $tmp/stdin ;; | ||
17277 | [\\/$]*) | ||
17278 | # Absolute (can't be DOS-style, as IFS=:) | ||
17279 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
17280 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17281 | { (exit 1); exit 1; }; } | ||
17282 | echo $f;; | ||
17283 | *) # Relative | ||
17284 | if test -f "$f"; then | ||
17285 | # Build tree | ||
17286 | echo $f | ||
17287 | elif test -f "$srcdir/$f"; then | ||
17288 | # Source tree | ||
17289 | echo $srcdir/$f | ||
17290 | else | ||
17291 | # /dev/null tree | ||
17292 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
17293 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17294 | { (exit 1); exit 1; }; } | ||
17295 | fi;; | ||
17296 | esac | ||
17297 | done` || { (exit 1); exit 1; } | ||
17298 | # Remove the trailing spaces. | ||
17299 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
17300 | |||
17301 | _ACEOF | ||
17302 | |||
17303 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
17304 | # `conftest.undefs', that substitutes the proper values into | ||
17305 | # config.h.in to produce config.h. The first handles `#define' | ||
17306 | # templates, and the second `#undef' templates. | ||
17307 | # And first: Protect against being on the right side of a sed subst in | ||
17308 | # config.status. Protect against being in an unquoted here document | ||
17309 | # in config.status. | ||
17310 | rm -f conftest.defines conftest.undefs | ||
17311 | # Using a here document instead of a string reduces the quoting nightmare. | ||
17312 | # Putting comments in sed scripts is not portable. | ||
17313 | # | ||
17314 | # `end' is used to avoid that the second main sed command (meant for | ||
17315 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
17316 | # See the Autoconf documentation for `clear'. | ||
17317 | cat >confdef2sed.sed <<\_ACEOF | ||
17318 | s/[\\&,]/\\&/g | ||
17319 | s,[\\$`],\\&,g | ||
17320 | t clear | ||
17321 | : clear | ||
17322 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
17323 | t end | ||
17324 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
17325 | : end | ||
17326 | _ACEOF | ||
17327 | # If some macros were called several times there might be several times | ||
17328 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
17329 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
17330 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
17331 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
17332 | rm -f confdef2sed.sed | ||
17333 | |||
17334 | # This sed command replaces #undef with comments. This is necessary, for | ||
17335 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
17336 | # on some systems where configure will not decide to define it. | ||
17337 | cat >>conftest.undefs <<\_ACEOF | ||
17338 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
17339 | _ACEOF | ||
17340 | |||
17341 | # Break up conftest.defines because some shells have a limit on the size | ||
17342 | # of here documents, and old seds have small limits too (100 cmds). | ||
17343 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
17344 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
17345 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
17346 | echo ' :' >>$CONFIG_STATUS | ||
17347 | rm -f conftest.tail | ||
17348 | while grep . conftest.defines >/dev/null | ||
17349 | do | ||
17350 | # Write a limited-size here document to $tmp/defines.sed. | ||
17351 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
17352 | # Speed up: don't consider the non `#define' lines. | ||
17353 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
17354 | # Work around the forget-to-reset-the-flag bug. | ||
17355 | echo 't clr' >>$CONFIG_STATUS | ||
17356 | echo ': clr' >>$CONFIG_STATUS | ||
17357 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
17358 | echo 'CEOF | ||
17359 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
17360 | rm -f $tmp/in | ||
17361 | mv $tmp/out $tmp/in | ||
17362 | ' >>$CONFIG_STATUS | ||
17363 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
17364 | rm -f conftest.defines | ||
17365 | mv conftest.tail conftest.defines | ||
17366 | done | ||
17367 | rm -f conftest.defines | ||
17368 | echo ' fi # egrep' >>$CONFIG_STATUS | ||
17369 | echo >>$CONFIG_STATUS | ||
17370 | |||
17371 | # Break up conftest.undefs because some shells have a limit on the size | ||
17372 | # of here documents, and old seds have small limits too (100 cmds). | ||
17373 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
17374 | rm -f conftest.tail | ||
17375 | while grep . conftest.undefs >/dev/null | ||
17376 | do | ||
17377 | # Write a limited-size here document to $tmp/undefs.sed. | ||
17378 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
17379 | # Speed up: don't consider the non `#undef' | ||
17380 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
17381 | # Work around the forget-to-reset-the-flag bug. | ||
17382 | echo 't clr' >>$CONFIG_STATUS | ||
17383 | echo ': clr' >>$CONFIG_STATUS | ||
17384 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
17385 | echo 'CEOF | ||
17386 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
17387 | rm -f $tmp/in | ||
17388 | mv $tmp/out $tmp/in | ||
17389 | ' >>$CONFIG_STATUS | ||
17390 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
17391 | rm -f conftest.undefs | ||
17392 | mv conftest.tail conftest.undefs | ||
17393 | done | ||
17394 | rm -f conftest.undefs | ||
17395 | |||
17396 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17397 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17398 | # use $as_me), people would be surprised to read: | ||
17399 | # /* config.h. Generated by config.status. */ | ||
17400 | if test x"$ac_file" = x-; then | ||
17401 | echo "/* Generated by configure. */" >$tmp/config.h | ||
17402 | else | ||
17403 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
17404 | fi | ||
17405 | cat $tmp/in >>$tmp/config.h | ||
17406 | rm -f $tmp/in | ||
17407 | if test x"$ac_file" != x-; then | ||
17408 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | ||
17409 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
17410 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
17411 | else | ||
17412 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
17413 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17414 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
17415 | X"$ac_file" : 'X\(//\)$' \| \ | ||
17416 | X"$ac_file" : 'X\(/\)' \| \ | ||
17417 | . : '\(.\)' 2>/dev/null || | ||
17418 | echo X"$ac_file" | | ||
17419 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
17420 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
17421 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
17422 | /^X\(\/\).*/{ s//\1/; q; } | ||
17423 | s/.*/./; q'` | ||
17424 | { case "$ac_dir" in | ||
17425 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
17426 | *) as_incr_dir=.;; | ||
17427 | esac | ||
17428 | as_dummy="$ac_dir" | ||
17429 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
17430 | case $as_mkdir_dir in | ||
17431 | # Skip DOS drivespec | ||
17432 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
17433 | *) | ||
17434 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
17435 | test -d "$as_incr_dir" || | ||
17436 | mkdir "$as_incr_dir" || | ||
17437 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | ||
17438 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | ||
17439 | { (exit 1); exit 1; }; } | ||
17440 | ;; | ||
17441 | esac | ||
17442 | done; } | ||
17443 | |||
17444 | rm -f $ac_file | ||
17445 | mv $tmp/config.h $ac_file | ||
17446 | fi | ||
17447 | else | ||
17448 | cat $tmp/config.h | ||
17449 | rm -f $tmp/config.h | ||
17450 | fi | ||
17451 | done | ||
17452 | _ACEOF | ||
17453 | |||
17454 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17455 | |||
17456 | { (exit 0); exit 0; } | ||
17457 | _ACEOF | ||
17458 | chmod +x $CONFIG_STATUS | ||
17459 | ac_clean_files=$ac_clean_files_save | ||
17460 | |||
17461 | |||
17462 | # configure is writing to config.log, and then calls config.status. | ||
17463 | # config.status does its own redirection, appending to config.log. | ||
17464 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
17465 | # by configure, so config.status won't be able to write to it; its | ||
17466 | # output is simply discarded. So we exec the FD to /dev/null, | ||
17467 | # effectively closing config.log, so it can be properly (re)opened and | ||
17468 | # appended to by config.status. When coming back to configure, we | ||
17469 | # need to make the FD available again. | ||
17470 | if test "$no_create" != yes; then | ||
17471 | ac_cs_success=: | ||
17472 | exec 5>/dev/null | ||
17473 | $SHELL $CONFIG_STATUS || ac_cs_success=false | ||
17474 | exec 5>>config.log | ||
17475 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
17476 | # would make configure fail if this is the last instruction. | ||
17477 | $ac_cs_success || { (exit 1); exit 1; } | ||
17478 | fi | ||
17479 | |||
17480 | |||
17481 | # Print summary of options | ||
17482 | |||
17483 | # Someone please show me a better way :) | ||
17484 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
17485 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
17486 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
17487 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
17488 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
17489 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
17490 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
17491 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
17492 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
17493 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
17494 | |||
17495 | echo "" | ||
17496 | echo "OpenSSH has been configured with the following options:" | ||
17497 | echo " User binaries: $B" | ||
17498 | echo " System binaries: $C" | ||
17499 | echo " Configuration files: $D" | ||
17500 | echo " Askpass program: $E" | ||
17501 | echo " Manual pages: $F" | ||
17502 | echo " PID file: $G" | ||
17503 | echo " Privilege separation chroot path: $H" | ||
17504 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
17505 | echo " At runtime, sshd will use the path defined in /etc/login.conf" | ||
17506 | else | ||
17507 | echo " sshd default user PATH: $I" | ||
17508 | fi | ||
17509 | if test ! -z "$superuser_path" ; then | ||
17510 | echo " sshd superuser user PATH: $J" | ||
17511 | fi | ||
17512 | echo " Manpage format: $MANTYPE" | ||
17513 | echo " PAM support: ${PAM_MSG}" | ||
17514 | echo " KerberosIV support: $KRB4_MSG" | ||
17515 | echo " KerberosV support: $KRB5_MSG" | ||
17516 | echo " Smartcard support: $SCARD_MSG" | ||
17517 | echo " AFS support: $AFS_MSG" | ||
17518 | echo " S/KEY support: $SKEY_MSG" | ||
17519 | echo " TCP Wrappers support: $TCPW_MSG" | ||
17520 | echo " MD5 password support: $MD5_MSG" | ||
17521 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
17522 | echo " Use IPv4 by default hack: $IPV4_HACK_MSG" | ||
17523 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
17524 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
17525 | echo " Random number source: $RAND_MSG" | ||
17526 | if test ! -z "$USE_RAND_HELPER" ; then | ||
17527 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
17528 | fi | ||
17529 | |||
17530 | echo "" | ||
17531 | |||
17532 | echo " Host: ${host}" | ||
17533 | echo " Compiler: ${CC}" | ||
17534 | echo " Compiler flags: ${CFLAGS}" | ||
17535 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
17536 | echo " Linker flags: ${LDFLAGS}" | ||
17537 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
17538 | |||
17539 | echo "" | ||
17540 | |||
17541 | if test "x$PAM_MSG" = "xyes" ; then | ||
17542 | echo "PAM is enabled. You may need to install a PAM control file " | ||
17543 | echo "for sshd, otherwise password authentication may fail. " | ||
17544 | echo "Example PAM control files can be found in the contrib/ " | ||
17545 | echo "subdirectory" | ||
17546 | echo "" | ||
17547 | fi | ||
17548 | |||
17549 | if test ! -z "$NO_SFTP"; then | ||
17550 | echo "sftp-server will be disabled. Your compiler does not " | ||
17551 | echo "support 64bit integers." | ||
17552 | echo "" | ||
17553 | fi | ||
17554 | |||
17555 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
17556 | echo "WARNING: you are using the builtin random number collection " | ||
17557 | echo "service. Please read WARNING.RNG and request that your OS " | ||
17558 | echo "vendor includes kernel-based random number collection in " | ||
17559 | echo "future versions of your OS." | ||
17560 | echo "" | ||
17561 | fi | ||
17562 | |||