diff options
author | Colin Watson <cjwatson@debian.org> | 2003-09-01 01:47:17 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2003-09-01 01:47:17 +0000 |
commit | 58657d96514cd6f16d82add8d6f4adbb36765758 (patch) | |
tree | b618adf8cafe8afd07b90ea24120d986b1d67dee /configure | |
parent | 1c992c4c13ea6c8fcd80093b340bc49753e17a4f (diff) | |
parent | d984a3c6658e950881edcfb2aae464add93f68d4 (diff) |
Import OpenSSH 3.5p1.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17911 |
1 files changed, 17911 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..565e9ee79 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,17911 @@ | |||
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 (default=/var/empty) | ||
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 | # Extract the first word of "bash", so it can be a program name with args. | ||
2764 | set dummy bash; ac_word=$2 | ||
2765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2767 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2769 | else | ||
2770 | case $TEST_MINUS_S_SH in | ||
2771 | [\\/]* | ?:[\\/]*) | ||
2772 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2773 | ;; | ||
2774 | *) | ||
2775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2776 | for as_dir in $PATH | ||
2777 | do | ||
2778 | IFS=$as_save_IFS | ||
2779 | test -z "$as_dir" && as_dir=. | ||
2780 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2782 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2784 | break 2 | ||
2785 | fi | ||
2786 | done | ||
2787 | done | ||
2788 | |||
2789 | ;; | ||
2790 | esac | ||
2791 | fi | ||
2792 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2793 | |||
2794 | if test -n "$TEST_MINUS_S_SH"; then | ||
2795 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2796 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2797 | else | ||
2798 | echo "$as_me:$LINENO: result: no" >&5 | ||
2799 | echo "${ECHO_T}no" >&6 | ||
2800 | fi | ||
2801 | |||
2802 | # Extract the first word of "ksh", so it can be a program name with args. | ||
2803 | set dummy ksh; ac_word=$2 | ||
2804 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2805 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2806 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2808 | else | ||
2809 | case $TEST_MINUS_S_SH in | ||
2810 | [\\/]* | ?:[\\/]*) | ||
2811 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2812 | ;; | ||
2813 | *) | ||
2814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2815 | for as_dir in $PATH | ||
2816 | do | ||
2817 | IFS=$as_save_IFS | ||
2818 | test -z "$as_dir" && as_dir=. | ||
2819 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2820 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2821 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2823 | break 2 | ||
2824 | fi | ||
2825 | done | ||
2826 | done | ||
2827 | |||
2828 | ;; | ||
2829 | esac | ||
2830 | fi | ||
2831 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2832 | |||
2833 | if test -n "$TEST_MINUS_S_SH"; then | ||
2834 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2835 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2836 | else | ||
2837 | echo "$as_me:$LINENO: result: no" >&5 | ||
2838 | echo "${ECHO_T}no" >&6 | ||
2839 | fi | ||
2840 | |||
2841 | # Extract the first word of "sh", so it can be a program name with args. | ||
2842 | set dummy sh; ac_word=$2 | ||
2843 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2845 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2847 | else | ||
2848 | case $TEST_MINUS_S_SH in | ||
2849 | [\\/]* | ?:[\\/]*) | ||
2850 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2851 | ;; | ||
2852 | *) | ||
2853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2854 | for as_dir in $PATH | ||
2855 | do | ||
2856 | IFS=$as_save_IFS | ||
2857 | test -z "$as_dir" && as_dir=. | ||
2858 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2860 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2862 | break 2 | ||
2863 | fi | ||
2864 | done | ||
2865 | done | ||
2866 | |||
2867 | ;; | ||
2868 | esac | ||
2869 | fi | ||
2870 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2871 | |||
2872 | if test -n "$TEST_MINUS_S_SH"; then | ||
2873 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2874 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2875 | else | ||
2876 | echo "$as_me:$LINENO: result: no" >&5 | ||
2877 | echo "${ECHO_T}no" >&6 | ||
2878 | fi | ||
2879 | |||
2880 | # Extract the first word of "sh", so it can be a program name with args. | ||
2881 | set dummy sh; ac_word=$2 | ||
2882 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2884 | if test "${ac_cv_path_SH+set}" = set; then | ||
2885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2886 | else | ||
2887 | case $SH in | ||
2888 | [\\/]* | ?:[\\/]*) | ||
2889 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
2890 | ;; | ||
2891 | *) | ||
2892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2893 | for as_dir in $PATH | ||
2894 | do | ||
2895 | IFS=$as_save_IFS | ||
2896 | test -z "$as_dir" && as_dir=. | ||
2897 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2898 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2899 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2900 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2901 | break 2 | ||
2902 | fi | ||
2903 | done | ||
2904 | done | ||
2905 | |||
2906 | ;; | ||
2907 | esac | ||
2908 | fi | ||
2909 | SH=$ac_cv_path_SH | ||
2910 | |||
2911 | if test -n "$SH"; then | ||
2912 | echo "$as_me:$LINENO: result: $SH" >&5 | ||
2913 | echo "${ECHO_T}$SH" >&6 | ||
2914 | else | ||
2915 | echo "$as_me:$LINENO: result: no" >&5 | ||
2916 | echo "${ECHO_T}no" >&6 | ||
2917 | fi | ||
2918 | |||
2919 | |||
2920 | # System features | ||
2921 | # Check whether --enable-largefile or --disable-largefile was given. | ||
2922 | if test "${enable_largefile+set}" = set; then | ||
2923 | enableval="$enable_largefile" | ||
2924 | |||
2925 | fi; | ||
2926 | if test "$enable_largefile" != no; then | ||
2927 | |||
2928 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
2929 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
2930 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
2931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2932 | else | ||
2933 | ac_cv_sys_largefile_CC=no | ||
2934 | if test "$GCC" != yes; then | ||
2935 | ac_save_CC=$CC | ||
2936 | while :; do | ||
2937 | # IRIX 6.2 and later do not support large files by default, | ||
2938 | # so use the C compiler's -n32 option if that helps. | ||
2939 | cat >conftest.$ac_ext <<_ACEOF | ||
2940 | #line $LINENO "configure" | ||
2941 | #include "confdefs.h" | ||
2942 | #include <sys/types.h> | ||
2943 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2944 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2945 | since some C++ compilers masquerading as C compilers | ||
2946 | incorrectly reject 9223372036854775807. */ | ||
2947 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2948 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2949 | && LARGE_OFF_T % 2147483647 == 1) | ||
2950 | ? 1 : -1]; | ||
2951 | #ifdef F77_DUMMY_MAIN | ||
2952 | # ifdef __cplusplus | ||
2953 | extern "C" | ||
2954 | # endif | ||
2955 | int F77_DUMMY_MAIN() { return 1; } | ||
2956 | #endif | ||
2957 | int | ||
2958 | main () | ||
2959 | { | ||
2960 | |||
2961 | ; | ||
2962 | return 0; | ||
2963 | } | ||
2964 | _ACEOF | ||
2965 | rm -f conftest.$ac_objext | ||
2966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2967 | (eval $ac_compile) 2>&5 | ||
2968 | ac_status=$? | ||
2969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2970 | (exit $ac_status); } && | ||
2971 | { ac_try='test -s conftest.$ac_objext' | ||
2972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2973 | (eval $ac_try) 2>&5 | ||
2974 | ac_status=$? | ||
2975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2976 | (exit $ac_status); }; }; then | ||
2977 | break | ||
2978 | else | ||
2979 | echo "$as_me: failed program was:" >&5 | ||
2980 | cat conftest.$ac_ext >&5 | ||
2981 | fi | ||
2982 | rm -f conftest.$ac_objext | ||
2983 | CC="$CC -n32" | ||
2984 | rm -f conftest.$ac_objext | ||
2985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2986 | (eval $ac_compile) 2>&5 | ||
2987 | ac_status=$? | ||
2988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2989 | (exit $ac_status); } && | ||
2990 | { ac_try='test -s conftest.$ac_objext' | ||
2991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2992 | (eval $ac_try) 2>&5 | ||
2993 | ac_status=$? | ||
2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2995 | (exit $ac_status); }; }; then | ||
2996 | ac_cv_sys_largefile_CC=' -n32'; break | ||
2997 | else | ||
2998 | echo "$as_me: failed program was:" >&5 | ||
2999 | cat conftest.$ac_ext >&5 | ||
3000 | fi | ||
3001 | rm -f conftest.$ac_objext | ||
3002 | break | ||
3003 | done | ||
3004 | CC=$ac_save_CC | ||
3005 | rm -f conftest.$ac_ext | ||
3006 | fi | ||
3007 | fi | ||
3008 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
3009 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
3010 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
3011 | CC=$CC$ac_cv_sys_largefile_CC | ||
3012 | fi | ||
3013 | |||
3014 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
3015 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
3016 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
3017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3018 | else | ||
3019 | while :; do | ||
3020 | ac_cv_sys_file_offset_bits=no | ||
3021 | cat >conftest.$ac_ext <<_ACEOF | ||
3022 | #line $LINENO "configure" | ||
3023 | #include "confdefs.h" | ||
3024 | #include <sys/types.h> | ||
3025 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3026 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3027 | since some C++ compilers masquerading as C compilers | ||
3028 | incorrectly reject 9223372036854775807. */ | ||
3029 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3030 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3031 | && LARGE_OFF_T % 2147483647 == 1) | ||
3032 | ? 1 : -1]; | ||
3033 | #ifdef F77_DUMMY_MAIN | ||
3034 | # ifdef __cplusplus | ||
3035 | extern "C" | ||
3036 | # endif | ||
3037 | int F77_DUMMY_MAIN() { return 1; } | ||
3038 | #endif | ||
3039 | int | ||
3040 | main () | ||
3041 | { | ||
3042 | |||
3043 | ; | ||
3044 | return 0; | ||
3045 | } | ||
3046 | _ACEOF | ||
3047 | rm -f conftest.$ac_objext | ||
3048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3049 | (eval $ac_compile) 2>&5 | ||
3050 | ac_status=$? | ||
3051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3052 | (exit $ac_status); } && | ||
3053 | { ac_try='test -s conftest.$ac_objext' | ||
3054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3055 | (eval $ac_try) 2>&5 | ||
3056 | ac_status=$? | ||
3057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3058 | (exit $ac_status); }; }; then | ||
3059 | break | ||
3060 | else | ||
3061 | echo "$as_me: failed program was:" >&5 | ||
3062 | cat conftest.$ac_ext >&5 | ||
3063 | fi | ||
3064 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3065 | cat >conftest.$ac_ext <<_ACEOF | ||
3066 | #line $LINENO "configure" | ||
3067 | #include "confdefs.h" | ||
3068 | #define _FILE_OFFSET_BITS 64 | ||
3069 | #include <sys/types.h> | ||
3070 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3071 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3072 | since some C++ compilers masquerading as C compilers | ||
3073 | incorrectly reject 9223372036854775807. */ | ||
3074 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3075 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3076 | && LARGE_OFF_T % 2147483647 == 1) | ||
3077 | ? 1 : -1]; | ||
3078 | #ifdef F77_DUMMY_MAIN | ||
3079 | # ifdef __cplusplus | ||
3080 | extern "C" | ||
3081 | # endif | ||
3082 | int F77_DUMMY_MAIN() { return 1; } | ||
3083 | #endif | ||
3084 | int | ||
3085 | main () | ||
3086 | { | ||
3087 | |||
3088 | ; | ||
3089 | return 0; | ||
3090 | } | ||
3091 | _ACEOF | ||
3092 | rm -f conftest.$ac_objext | ||
3093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3094 | (eval $ac_compile) 2>&5 | ||
3095 | ac_status=$? | ||
3096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3097 | (exit $ac_status); } && | ||
3098 | { ac_try='test -s conftest.$ac_objext' | ||
3099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3100 | (eval $ac_try) 2>&5 | ||
3101 | ac_status=$? | ||
3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3103 | (exit $ac_status); }; }; then | ||
3104 | ac_cv_sys_file_offset_bits=64; break | ||
3105 | else | ||
3106 | echo "$as_me: failed program was:" >&5 | ||
3107 | cat conftest.$ac_ext >&5 | ||
3108 | fi | ||
3109 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3110 | break | ||
3111 | done | ||
3112 | fi | ||
3113 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
3114 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
3115 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
3116 | |||
3117 | cat >>confdefs.h <<_ACEOF | ||
3118 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
3119 | _ACEOF | ||
3120 | |||
3121 | fi | ||
3122 | rm -f conftest* | ||
3123 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
3124 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
3125 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
3126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3127 | else | ||
3128 | while :; do | ||
3129 | ac_cv_sys_large_files=no | ||
3130 | cat >conftest.$ac_ext <<_ACEOF | ||
3131 | #line $LINENO "configure" | ||
3132 | #include "confdefs.h" | ||
3133 | #include <sys/types.h> | ||
3134 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3135 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3136 | since some C++ compilers masquerading as C compilers | ||
3137 | incorrectly reject 9223372036854775807. */ | ||
3138 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3139 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3140 | && LARGE_OFF_T % 2147483647 == 1) | ||
3141 | ? 1 : -1]; | ||
3142 | #ifdef F77_DUMMY_MAIN | ||
3143 | # ifdef __cplusplus | ||
3144 | extern "C" | ||
3145 | # endif | ||
3146 | int F77_DUMMY_MAIN() { return 1; } | ||
3147 | #endif | ||
3148 | int | ||
3149 | main () | ||
3150 | { | ||
3151 | |||
3152 | ; | ||
3153 | return 0; | ||
3154 | } | ||
3155 | _ACEOF | ||
3156 | rm -f conftest.$ac_objext | ||
3157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3158 | (eval $ac_compile) 2>&5 | ||
3159 | ac_status=$? | ||
3160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3161 | (exit $ac_status); } && | ||
3162 | { ac_try='test -s conftest.$ac_objext' | ||
3163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3164 | (eval $ac_try) 2>&5 | ||
3165 | ac_status=$? | ||
3166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3167 | (exit $ac_status); }; }; then | ||
3168 | break | ||
3169 | else | ||
3170 | echo "$as_me: failed program was:" >&5 | ||
3171 | cat conftest.$ac_ext >&5 | ||
3172 | fi | ||
3173 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3174 | cat >conftest.$ac_ext <<_ACEOF | ||
3175 | #line $LINENO "configure" | ||
3176 | #include "confdefs.h" | ||
3177 | #define _LARGE_FILES 1 | ||
3178 | #include <sys/types.h> | ||
3179 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3180 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3181 | since some C++ compilers masquerading as C compilers | ||
3182 | incorrectly reject 9223372036854775807. */ | ||
3183 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3184 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3185 | && LARGE_OFF_T % 2147483647 == 1) | ||
3186 | ? 1 : -1]; | ||
3187 | #ifdef F77_DUMMY_MAIN | ||
3188 | # ifdef __cplusplus | ||
3189 | extern "C" | ||
3190 | # endif | ||
3191 | int F77_DUMMY_MAIN() { return 1; } | ||
3192 | #endif | ||
3193 | int | ||
3194 | main () | ||
3195 | { | ||
3196 | |||
3197 | ; | ||
3198 | return 0; | ||
3199 | } | ||
3200 | _ACEOF | ||
3201 | rm -f conftest.$ac_objext | ||
3202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3203 | (eval $ac_compile) 2>&5 | ||
3204 | ac_status=$? | ||
3205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3206 | (exit $ac_status); } && | ||
3207 | { ac_try='test -s conftest.$ac_objext' | ||
3208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3209 | (eval $ac_try) 2>&5 | ||
3210 | ac_status=$? | ||
3211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3212 | (exit $ac_status); }; }; then | ||
3213 | ac_cv_sys_large_files=1; break | ||
3214 | else | ||
3215 | echo "$as_me: failed program was:" >&5 | ||
3216 | cat conftest.$ac_ext >&5 | ||
3217 | fi | ||
3218 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3219 | break | ||
3220 | done | ||
3221 | fi | ||
3222 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
3223 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
3224 | if test "$ac_cv_sys_large_files" != no; then | ||
3225 | |||
3226 | cat >>confdefs.h <<_ACEOF | ||
3227 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
3228 | _ACEOF | ||
3229 | |||
3230 | fi | ||
3231 | rm -f conftest* | ||
3232 | fi | ||
3233 | |||
3234 | |||
3235 | if test -z "$AR" ; then | ||
3236 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
3237 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
3238 | { (exit 1); exit 1; }; } | ||
3239 | fi | ||
3240 | |||
3241 | # Use LOGIN_PROGRAM from environment if possible | ||
3242 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
3243 | cat >>confdefs.h <<_ACEOF | ||
3244 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
3245 | _ACEOF | ||
3246 | |||
3247 | else | ||
3248 | # Search for login | ||
3249 | # Extract the first word of "login", so it can be a program name with args. | ||
3250 | set dummy login; ac_word=$2 | ||
3251 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3253 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
3254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3255 | else | ||
3256 | case $LOGIN_PROGRAM_FALLBACK in | ||
3257 | [\\/]* | ?:[\\/]*) | ||
3258 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
3259 | ;; | ||
3260 | *) | ||
3261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3262 | for as_dir in $PATH | ||
3263 | do | ||
3264 | IFS=$as_save_IFS | ||
3265 | test -z "$as_dir" && as_dir=. | ||
3266 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3267 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3268 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
3269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3270 | break 2 | ||
3271 | fi | ||
3272 | done | ||
3273 | done | ||
3274 | |||
3275 | ;; | ||
3276 | esac | ||
3277 | fi | ||
3278 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
3279 | |||
3280 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
3281 | echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
3282 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
3283 | else | ||
3284 | echo "$as_me:$LINENO: result: no" >&5 | ||
3285 | echo "${ECHO_T}no" >&6 | ||
3286 | fi | ||
3287 | |||
3288 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
3289 | cat >>confdefs.h <<_ACEOF | ||
3290 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
3291 | _ACEOF | ||
3292 | |||
3293 | fi | ||
3294 | fi | ||
3295 | |||
3296 | if test -z "$LD" ; then | ||
3297 | LD=$CC | ||
3298 | fi | ||
3299 | |||
3300 | |||
3301 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | ||
3302 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
3303 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
3304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3305 | else | ||
3306 | ac_cv_prog_cc_stdc=no | ||
3307 | ac_save_CC=$CC | ||
3308 | cat >conftest.$ac_ext <<_ACEOF | ||
3309 | #line $LINENO "configure" | ||
3310 | #include "confdefs.h" | ||
3311 | #include <stdarg.h> | ||
3312 | #include <stdio.h> | ||
3313 | #include <sys/types.h> | ||
3314 | #include <sys/stat.h> | ||
3315 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3316 | struct buf { int x; }; | ||
3317 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3318 | static char *e (p, i) | ||
3319 | char **p; | ||
3320 | int i; | ||
3321 | { | ||
3322 | return p[i]; | ||
3323 | } | ||
3324 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3325 | { | ||
3326 | char *s; | ||
3327 | va_list v; | ||
3328 | va_start (v,p); | ||
3329 | s = g (p, va_arg (v,int)); | ||
3330 | va_end (v); | ||
3331 | return s; | ||
3332 | } | ||
3333 | int test (int i, double x); | ||
3334 | struct s1 {int (*f) (int a);}; | ||
3335 | struct s2 {int (*f) (double a);}; | ||
3336 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3337 | int argc; | ||
3338 | char **argv; | ||
3339 | #ifdef F77_DUMMY_MAIN | ||
3340 | # ifdef __cplusplus | ||
3341 | extern "C" | ||
3342 | # endif | ||
3343 | int F77_DUMMY_MAIN() { return 1; } | ||
3344 | #endif | ||
3345 | int | ||
3346 | main () | ||
3347 | { | ||
3348 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3349 | ; | ||
3350 | return 0; | ||
3351 | } | ||
3352 | _ACEOF | ||
3353 | # Don't try gcc -ansi; that turns off useful extensions and | ||
3354 | # breaks some systems' header files. | ||
3355 | # AIX -qlanglvl=ansi | ||
3356 | # Ultrix and OSF/1 -std1 | ||
3357 | # HP-UX 10.20 and later -Ae | ||
3358 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
3359 | # SVR4 -Xc -D__EXTENSIONS__ | ||
3360 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3361 | do | ||
3362 | CC="$ac_save_CC $ac_arg" | ||
3363 | rm -f conftest.$ac_objext | ||
3364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3365 | (eval $ac_compile) 2>&5 | ||
3366 | ac_status=$? | ||
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3368 | (exit $ac_status); } && | ||
3369 | { ac_try='test -s conftest.$ac_objext' | ||
3370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3371 | (eval $ac_try) 2>&5 | ||
3372 | ac_status=$? | ||
3373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3374 | (exit $ac_status); }; }; then | ||
3375 | ac_cv_prog_cc_stdc=$ac_arg | ||
3376 | break | ||
3377 | else | ||
3378 | echo "$as_me: failed program was:" >&5 | ||
3379 | cat conftest.$ac_ext >&5 | ||
3380 | fi | ||
3381 | rm -f conftest.$ac_objext | ||
3382 | done | ||
3383 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
3384 | CC=$ac_save_CC | ||
3385 | |||
3386 | fi | ||
3387 | |||
3388 | case "x$ac_cv_prog_cc_stdc" in | ||
3389 | x|xno) | ||
3390 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
3391 | echo "${ECHO_T}none needed" >&6 ;; | ||
3392 | *) | ||
3393 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
3394 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
3395 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
3396 | esac | ||
3397 | |||
3398 | echo "$as_me:$LINENO: checking for inline" >&5 | ||
3399 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
3400 | if test "${ac_cv_c_inline+set}" = set; then | ||
3401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3402 | else | ||
3403 | ac_cv_c_inline=no | ||
3404 | for ac_kw in inline __inline__ __inline; do | ||
3405 | cat >conftest.$ac_ext <<_ACEOF | ||
3406 | #line $LINENO "configure" | ||
3407 | #include "confdefs.h" | ||
3408 | #ifndef __cplusplus | ||
3409 | static $ac_kw int static_foo () {return 0; } | ||
3410 | $ac_kw int foo () {return 0; } | ||
3411 | #endif | ||
3412 | |||
3413 | _ACEOF | ||
3414 | rm -f conftest.$ac_objext | ||
3415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3416 | (eval $ac_compile) 2>&5 | ||
3417 | ac_status=$? | ||
3418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3419 | (exit $ac_status); } && | ||
3420 | { ac_try='test -s conftest.$ac_objext' | ||
3421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3422 | (eval $ac_try) 2>&5 | ||
3423 | ac_status=$? | ||
3424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3425 | (exit $ac_status); }; }; then | ||
3426 | ac_cv_c_inline=$ac_kw; break | ||
3427 | else | ||
3428 | echo "$as_me: failed program was:" >&5 | ||
3429 | cat conftest.$ac_ext >&5 | ||
3430 | fi | ||
3431 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3432 | done | ||
3433 | |||
3434 | fi | ||
3435 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
3436 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
3437 | case $ac_cv_c_inline in | ||
3438 | inline | yes) ;; | ||
3439 | no) | ||
3440 | cat >>confdefs.h <<\_ACEOF | ||
3441 | #define inline | ||
3442 | _ACEOF | ||
3443 | ;; | ||
3444 | *) cat >>confdefs.h <<_ACEOF | ||
3445 | #define inline $ac_cv_c_inline | ||
3446 | _ACEOF | ||
3447 | ;; | ||
3448 | esac | ||
3449 | |||
3450 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
3451 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | ||
3452 | fi | ||
3453 | |||
3454 | # Check for some target-specific stuff | ||
3455 | case "$host" in | ||
3456 | *-*-aix*) | ||
3457 | AFS_LIBS="-lld" | ||
3458 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3459 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
3460 | if (test "$LD" != "gcc" && test -z "$blibpath"); then | ||
3461 | echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5 | ||
3462 | echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6 | ||
3463 | saved_LDFLAGS="$LDFLAGS" | ||
3464 | LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib" | ||
3465 | cat >conftest.$ac_ext <<_ACEOF | ||
3466 | #line $LINENO "configure" | ||
3467 | #include "confdefs.h" | ||
3468 | |||
3469 | #ifdef F77_DUMMY_MAIN | ||
3470 | # ifdef __cplusplus | ||
3471 | extern "C" | ||
3472 | # endif | ||
3473 | int F77_DUMMY_MAIN() { return 1; } | ||
3474 | #endif | ||
3475 | int | ||
3476 | main () | ||
3477 | { | ||
3478 | |||
3479 | ; | ||
3480 | return 0; | ||
3481 | } | ||
3482 | _ACEOF | ||
3483 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3485 | (eval $ac_link) 2>&5 | ||
3486 | ac_status=$? | ||
3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3488 | (exit $ac_status); } && | ||
3489 | { ac_try='test -s conftest$ac_exeext' | ||
3490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3491 | (eval $ac_try) 2>&5 | ||
3492 | ac_status=$? | ||
3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3494 | (exit $ac_status); }; }; then | ||
3495 | |||
3496 | echo "$as_me:$LINENO: result: yes" >&5 | ||
3497 | echo "${ECHO_T}yes" >&6 | ||
3498 | blibpath="/usr/lib:/lib:/usr/local/lib" | ||
3499 | |||
3500 | else | ||
3501 | echo "$as_me: failed program was:" >&5 | ||
3502 | cat conftest.$ac_ext >&5 | ||
3503 | echo "$as_me:$LINENO: result: no" >&5 | ||
3504 | echo "${ECHO_T}no" >&6 | ||
3505 | |||
3506 | fi | ||
3507 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3508 | LDFLAGS="$saved_LDFLAGS" | ||
3509 | fi | ||
3510 | echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
3511 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
3512 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
3513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3514 | else | ||
3515 | cat >conftest.$ac_ext <<_ACEOF | ||
3516 | #line $LINENO "configure" | ||
3517 | #include "confdefs.h" | ||
3518 | /* System header to define __stub macros and hopefully few prototypes, | ||
3519 | which can conflict with char authenticate (); below. */ | ||
3520 | #include <assert.h> | ||
3521 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3522 | #ifdef __cplusplus | ||
3523 | extern "C" | ||
3524 | #endif | ||
3525 | /* We use char because int might match the return type of a gcc2 | ||
3526 | builtin and then its argument prototype would still apply. */ | ||
3527 | char authenticate (); | ||
3528 | char (*f) (); | ||
3529 | |||
3530 | #ifdef F77_DUMMY_MAIN | ||
3531 | # ifdef __cplusplus | ||
3532 | extern "C" | ||
3533 | # endif | ||
3534 | int F77_DUMMY_MAIN() { return 1; } | ||
3535 | #endif | ||
3536 | int | ||
3537 | main () | ||
3538 | { | ||
3539 | /* The GNU C library defines this for functions which it implements | ||
3540 | to always fail with ENOSYS. Some functions are actually named | ||
3541 | something starting with __ and the normal name is an alias. */ | ||
3542 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
3543 | choke me | ||
3544 | #else | ||
3545 | f = authenticate; | ||
3546 | #endif | ||
3547 | |||
3548 | ; | ||
3549 | return 0; | ||
3550 | } | ||
3551 | _ACEOF | ||
3552 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3554 | (eval $ac_link) 2>&5 | ||
3555 | ac_status=$? | ||
3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3557 | (exit $ac_status); } && | ||
3558 | { ac_try='test -s conftest$ac_exeext' | ||
3559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3560 | (eval $ac_try) 2>&5 | ||
3561 | ac_status=$? | ||
3562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3563 | (exit $ac_status); }; }; then | ||
3564 | ac_cv_func_authenticate=yes | ||
3565 | else | ||
3566 | echo "$as_me: failed program was:" >&5 | ||
3567 | cat conftest.$ac_ext >&5 | ||
3568 | ac_cv_func_authenticate=no | ||
3569 | fi | ||
3570 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3571 | fi | ||
3572 | echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
3573 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
3574 | if test $ac_cv_func_authenticate = yes; then | ||
3575 | cat >>confdefs.h <<\_ACEOF | ||
3576 | #define WITH_AIXAUTHENTICATE 1 | ||
3577 | _ACEOF | ||
3578 | |||
3579 | else | ||
3580 | echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
3581 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
3582 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
3583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3584 | else | ||
3585 | ac_check_lib_save_LIBS=$LIBS | ||
3586 | LIBS="-ls $LIBS" | ||
3587 | cat >conftest.$ac_ext <<_ACEOF | ||
3588 | #line $LINENO "configure" | ||
3589 | #include "confdefs.h" | ||
3590 | |||
3591 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3592 | #ifdef __cplusplus | ||
3593 | extern "C" | ||
3594 | #endif | ||
3595 | /* We use char because int might match the return type of a gcc2 | ||
3596 | builtin and then its argument prototype would still apply. */ | ||
3597 | char authenticate (); | ||
3598 | #ifdef F77_DUMMY_MAIN | ||
3599 | # ifdef __cplusplus | ||
3600 | extern "C" | ||
3601 | # endif | ||
3602 | int F77_DUMMY_MAIN() { return 1; } | ||
3603 | #endif | ||
3604 | int | ||
3605 | main () | ||
3606 | { | ||
3607 | authenticate (); | ||
3608 | ; | ||
3609 | return 0; | ||
3610 | } | ||
3611 | _ACEOF | ||
3612 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3614 | (eval $ac_link) 2>&5 | ||
3615 | ac_status=$? | ||
3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3617 | (exit $ac_status); } && | ||
3618 | { ac_try='test -s conftest$ac_exeext' | ||
3619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3620 | (eval $ac_try) 2>&5 | ||
3621 | ac_status=$? | ||
3622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3623 | (exit $ac_status); }; }; then | ||
3624 | ac_cv_lib_s_authenticate=yes | ||
3625 | else | ||
3626 | echo "$as_me: failed program was:" >&5 | ||
3627 | cat conftest.$ac_ext >&5 | ||
3628 | ac_cv_lib_s_authenticate=no | ||
3629 | fi | ||
3630 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3631 | LIBS=$ac_check_lib_save_LIBS | ||
3632 | fi | ||
3633 | echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
3634 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
3635 | if test $ac_cv_lib_s_authenticate = yes; then | ||
3636 | cat >>confdefs.h <<\_ACEOF | ||
3637 | #define WITH_AIXAUTHENTICATE 1 | ||
3638 | _ACEOF | ||
3639 | |||
3640 | LIBS="$LIBS -ls" | ||
3641 | |||
3642 | fi | ||
3643 | |||
3644 | |||
3645 | fi | ||
3646 | |||
3647 | cat >>confdefs.h <<\_ACEOF | ||
3648 | #define BROKEN_GETADDRINFO 1 | ||
3649 | _ACEOF | ||
3650 | |||
3651 | cat >>confdefs.h <<\_ACEOF | ||
3652 | #define BROKEN_REALPATH 1 | ||
3653 | _ACEOF | ||
3654 | |||
3655 | cat >>confdefs.h <<\_ACEOF | ||
3656 | #define DISABLE_LASTLOG 1 | ||
3657 | _ACEOF | ||
3658 | |||
3659 | cat >>confdefs.h <<\_ACEOF | ||
3660 | #define LOGIN_NEEDS_UTMPX 1 | ||
3661 | _ACEOF | ||
3662 | |||
3663 | ;; | ||
3664 | *-*-cygwin*) | ||
3665 | LIBS="$LIBS /usr/lib/textmode.o" | ||
3666 | cat >>confdefs.h <<\_ACEOF | ||
3667 | #define HAVE_CYGWIN 1 | ||
3668 | _ACEOF | ||
3669 | |||
3670 | cat >>confdefs.h <<\_ACEOF | ||
3671 | #define USE_PIPES 1 | ||
3672 | _ACEOF | ||
3673 | |||
3674 | cat >>confdefs.h <<\_ACEOF | ||
3675 | #define DISABLE_SHADOW 1 | ||
3676 | _ACEOF | ||
3677 | |||
3678 | cat >>confdefs.h <<\_ACEOF | ||
3679 | #define IPV4_DEFAULT 1 | ||
3680 | _ACEOF | ||
3681 | |||
3682 | cat >>confdefs.h <<\_ACEOF | ||
3683 | #define IP_TOS_IS_BROKEN 1 | ||
3684 | _ACEOF | ||
3685 | |||
3686 | cat >>confdefs.h <<\_ACEOF | ||
3687 | #define NO_X11_UNIX_SOCKETS 1 | ||
3688 | _ACEOF | ||
3689 | |||
3690 | cat >>confdefs.h <<\_ACEOF | ||
3691 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
3692 | _ACEOF | ||
3693 | |||
3694 | cat >>confdefs.h <<\_ACEOF | ||
3695 | #define DISABLE_FD_PASSING 1 | ||
3696 | _ACEOF | ||
3697 | |||
3698 | cat >>confdefs.h <<\_ACEOF | ||
3699 | #define SETGROUPS_NOOP 1 | ||
3700 | _ACEOF | ||
3701 | |||
3702 | ;; | ||
3703 | *-*-dgux*) | ||
3704 | cat >>confdefs.h <<\_ACEOF | ||
3705 | #define IP_TOS_IS_BROKEN 1 | ||
3706 | _ACEOF | ||
3707 | |||
3708 | ;; | ||
3709 | *-*-darwin*) | ||
3710 | echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
3711 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
3712 | if test "$cross_compiling" = yes; then | ||
3713 | echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
3714 | echo "${ECHO_T}assume it is working" >&6 | ||
3715 | else | ||
3716 | cat >conftest.$ac_ext <<_ACEOF | ||
3717 | #line $LINENO "configure" | ||
3718 | #include "confdefs.h" | ||
3719 | #include <mach-o/dyld.h> | ||
3720 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
3721 | exit(0); | ||
3722 | else | ||
3723 | exit(1); | ||
3724 | } | ||
3725 | _ACEOF | ||
3726 | rm -f conftest$ac_exeext | ||
3727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3728 | (eval $ac_link) 2>&5 | ||
3729 | ac_status=$? | ||
3730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3731 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3733 | (eval $ac_try) 2>&5 | ||
3734 | ac_status=$? | ||
3735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3736 | (exit $ac_status); }; }; then | ||
3737 | echo "$as_me:$LINENO: result: working" >&5 | ||
3738 | echo "${ECHO_T}working" >&6 | ||
3739 | else | ||
3740 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3741 | echo "$as_me: failed program was:" >&5 | ||
3742 | cat conftest.$ac_ext >&5 | ||
3743 | ( exit $ac_status ) | ||
3744 | echo "$as_me:$LINENO: result: buggy" >&5 | ||
3745 | echo "${ECHO_T}buggy" >&6 | ||
3746 | cat >>confdefs.h <<\_ACEOF | ||
3747 | #define BROKEN_GETADDRINFO 1 | ||
3748 | _ACEOF | ||
3749 | |||
3750 | fi | ||
3751 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3752 | fi | ||
3753 | ;; | ||
3754 | *-*-hpux10.26) | ||
3755 | if test -z "$GCC"; then | ||
3756 | CFLAGS="$CFLAGS -Ae" | ||
3757 | fi | ||
3758 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3759 | IPADDR_IN_DISPLAY=yes | ||
3760 | cat >>confdefs.h <<\_ACEOF | ||
3761 | #define HAVE_SECUREWARE 1 | ||
3762 | _ACEOF | ||
3763 | |||
3764 | cat >>confdefs.h <<\_ACEOF | ||
3765 | #define USE_PIPES 1 | ||
3766 | _ACEOF | ||
3767 | |||
3768 | cat >>confdefs.h <<\_ACEOF | ||
3769 | #define LOGIN_NO_ENDOPT 1 | ||
3770 | _ACEOF | ||
3771 | |||
3772 | cat >>confdefs.h <<\_ACEOF | ||
3773 | #define LOGIN_NEEDS_UTMPX 1 | ||
3774 | _ACEOF | ||
3775 | |||
3776 | cat >>confdefs.h <<\_ACEOF | ||
3777 | #define DISABLE_SHADOW 1 | ||
3778 | _ACEOF | ||
3779 | |||
3780 | cat >>confdefs.h <<\_ACEOF | ||
3781 | #define DISABLE_UTMP 1 | ||
3782 | _ACEOF | ||
3783 | |||
3784 | cat >>confdefs.h <<\_ACEOF | ||
3785 | #define SPT_TYPE SPT_PSTAT | ||
3786 | _ACEOF | ||
3787 | |||
3788 | LIBS="$LIBS -lsec -lsecpw" | ||
3789 | |||
3790 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
3791 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3792 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3794 | else | ||
3795 | ac_check_lib_save_LIBS=$LIBS | ||
3796 | LIBS="-lxnet $LIBS" | ||
3797 | cat >conftest.$ac_ext <<_ACEOF | ||
3798 | #line $LINENO "configure" | ||
3799 | #include "confdefs.h" | ||
3800 | |||
3801 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3802 | #ifdef __cplusplus | ||
3803 | extern "C" | ||
3804 | #endif | ||
3805 | /* We use char because int might match the return type of a gcc2 | ||
3806 | builtin and then its argument prototype would still apply. */ | ||
3807 | char t_error (); | ||
3808 | #ifdef F77_DUMMY_MAIN | ||
3809 | # ifdef __cplusplus | ||
3810 | extern "C" | ||
3811 | # endif | ||
3812 | int F77_DUMMY_MAIN() { return 1; } | ||
3813 | #endif | ||
3814 | int | ||
3815 | main () | ||
3816 | { | ||
3817 | t_error (); | ||
3818 | ; | ||
3819 | return 0; | ||
3820 | } | ||
3821 | _ACEOF | ||
3822 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3824 | (eval $ac_link) 2>&5 | ||
3825 | ac_status=$? | ||
3826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3827 | (exit $ac_status); } && | ||
3828 | { ac_try='test -s conftest$ac_exeext' | ||
3829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3830 | (eval $ac_try) 2>&5 | ||
3831 | ac_status=$? | ||
3832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3833 | (exit $ac_status); }; }; then | ||
3834 | ac_cv_lib_xnet_t_error=yes | ||
3835 | else | ||
3836 | echo "$as_me: failed program was:" >&5 | ||
3837 | cat conftest.$ac_ext >&5 | ||
3838 | ac_cv_lib_xnet_t_error=no | ||
3839 | fi | ||
3840 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3841 | LIBS=$ac_check_lib_save_LIBS | ||
3842 | fi | ||
3843 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3844 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3845 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3846 | cat >>confdefs.h <<_ACEOF | ||
3847 | #define HAVE_LIBXNET 1 | ||
3848 | _ACEOF | ||
3849 | |||
3850 | LIBS="-lxnet $LIBS" | ||
3851 | |||
3852 | else | ||
3853 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3854 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3855 | { (exit 1); exit 1; }; } | ||
3856 | fi | ||
3857 | |||
3858 | disable_ptmx_check=yes | ||
3859 | ;; | ||
3860 | *-*-hpux10*) | ||
3861 | if test -z "$GCC"; then | ||
3862 | CFLAGS="$CFLAGS -Ae" | ||
3863 | fi | ||
3864 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3865 | IPADDR_IN_DISPLAY=yes | ||
3866 | cat >>confdefs.h <<\_ACEOF | ||
3867 | #define USE_PIPES 1 | ||
3868 | _ACEOF | ||
3869 | |||
3870 | cat >>confdefs.h <<\_ACEOF | ||
3871 | #define LOGIN_NO_ENDOPT 1 | ||
3872 | _ACEOF | ||
3873 | |||
3874 | cat >>confdefs.h <<\_ACEOF | ||
3875 | #define LOGIN_NEEDS_UTMPX 1 | ||
3876 | _ACEOF | ||
3877 | |||
3878 | cat >>confdefs.h <<\_ACEOF | ||
3879 | #define DISABLE_SHADOW 1 | ||
3880 | _ACEOF | ||
3881 | |||
3882 | cat >>confdefs.h <<\_ACEOF | ||
3883 | #define DISABLE_UTMP 1 | ||
3884 | _ACEOF | ||
3885 | |||
3886 | cat >>confdefs.h <<\_ACEOF | ||
3887 | #define SPT_TYPE SPT_PSTAT | ||
3888 | _ACEOF | ||
3889 | |||
3890 | LIBS="$LIBS -lsec" | ||
3891 | |||
3892 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
3893 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3894 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3896 | else | ||
3897 | ac_check_lib_save_LIBS=$LIBS | ||
3898 | LIBS="-lxnet $LIBS" | ||
3899 | cat >conftest.$ac_ext <<_ACEOF | ||
3900 | #line $LINENO "configure" | ||
3901 | #include "confdefs.h" | ||
3902 | |||
3903 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3904 | #ifdef __cplusplus | ||
3905 | extern "C" | ||
3906 | #endif | ||
3907 | /* We use char because int might match the return type of a gcc2 | ||
3908 | builtin and then its argument prototype would still apply. */ | ||
3909 | char t_error (); | ||
3910 | #ifdef F77_DUMMY_MAIN | ||
3911 | # ifdef __cplusplus | ||
3912 | extern "C" | ||
3913 | # endif | ||
3914 | int F77_DUMMY_MAIN() { return 1; } | ||
3915 | #endif | ||
3916 | int | ||
3917 | main () | ||
3918 | { | ||
3919 | t_error (); | ||
3920 | ; | ||
3921 | return 0; | ||
3922 | } | ||
3923 | _ACEOF | ||
3924 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3926 | (eval $ac_link) 2>&5 | ||
3927 | ac_status=$? | ||
3928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3929 | (exit $ac_status); } && | ||
3930 | { ac_try='test -s conftest$ac_exeext' | ||
3931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3932 | (eval $ac_try) 2>&5 | ||
3933 | ac_status=$? | ||
3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3935 | (exit $ac_status); }; }; then | ||
3936 | ac_cv_lib_xnet_t_error=yes | ||
3937 | else | ||
3938 | echo "$as_me: failed program was:" >&5 | ||
3939 | cat conftest.$ac_ext >&5 | ||
3940 | ac_cv_lib_xnet_t_error=no | ||
3941 | fi | ||
3942 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3943 | LIBS=$ac_check_lib_save_LIBS | ||
3944 | fi | ||
3945 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3946 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3947 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3948 | cat >>confdefs.h <<_ACEOF | ||
3949 | #define HAVE_LIBXNET 1 | ||
3950 | _ACEOF | ||
3951 | |||
3952 | LIBS="-lxnet $LIBS" | ||
3953 | |||
3954 | else | ||
3955 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3956 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3957 | { (exit 1); exit 1; }; } | ||
3958 | fi | ||
3959 | |||
3960 | ;; | ||
3961 | *-*-hpux11*) | ||
3962 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3963 | IPADDR_IN_DISPLAY=yes | ||
3964 | cat >>confdefs.h <<\_ACEOF | ||
3965 | #define PAM_SUN_CODEBASE 1 | ||
3966 | _ACEOF | ||
3967 | |||
3968 | cat >>confdefs.h <<\_ACEOF | ||
3969 | #define USE_PIPES 1 | ||
3970 | _ACEOF | ||
3971 | |||
3972 | cat >>confdefs.h <<\_ACEOF | ||
3973 | #define LOGIN_NO_ENDOPT 1 | ||
3974 | _ACEOF | ||
3975 | |||
3976 | cat >>confdefs.h <<\_ACEOF | ||
3977 | #define LOGIN_NEEDS_UTMPX 1 | ||
3978 | _ACEOF | ||
3979 | |||
3980 | cat >>confdefs.h <<\_ACEOF | ||
3981 | #define DISABLE_SHADOW 1 | ||
3982 | _ACEOF | ||
3983 | |||
3984 | cat >>confdefs.h <<\_ACEOF | ||
3985 | #define DISABLE_UTMP 1 | ||
3986 | _ACEOF | ||
3987 | |||
3988 | cat >>confdefs.h <<\_ACEOF | ||
3989 | #define SPT_TYPE SPT_PSTAT | ||
3990 | _ACEOF | ||
3991 | |||
3992 | LIBS="$LIBS -lsec" | ||
3993 | |||
3994 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
3995 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3996 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3998 | else | ||
3999 | ac_check_lib_save_LIBS=$LIBS | ||
4000 | LIBS="-lxnet $LIBS" | ||
4001 | cat >conftest.$ac_ext <<_ACEOF | ||
4002 | #line $LINENO "configure" | ||
4003 | #include "confdefs.h" | ||
4004 | |||
4005 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4006 | #ifdef __cplusplus | ||
4007 | extern "C" | ||
4008 | #endif | ||
4009 | /* We use char because int might match the return type of a gcc2 | ||
4010 | builtin and then its argument prototype would still apply. */ | ||
4011 | char t_error (); | ||
4012 | #ifdef F77_DUMMY_MAIN | ||
4013 | # ifdef __cplusplus | ||
4014 | extern "C" | ||
4015 | # endif | ||
4016 | int F77_DUMMY_MAIN() { return 1; } | ||
4017 | #endif | ||
4018 | int | ||
4019 | main () | ||
4020 | { | ||
4021 | t_error (); | ||
4022 | ; | ||
4023 | return 0; | ||
4024 | } | ||
4025 | _ACEOF | ||
4026 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4028 | (eval $ac_link) 2>&5 | ||
4029 | ac_status=$? | ||
4030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4031 | (exit $ac_status); } && | ||
4032 | { ac_try='test -s conftest$ac_exeext' | ||
4033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4034 | (eval $ac_try) 2>&5 | ||
4035 | ac_status=$? | ||
4036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4037 | (exit $ac_status); }; }; then | ||
4038 | ac_cv_lib_xnet_t_error=yes | ||
4039 | else | ||
4040 | echo "$as_me: failed program was:" >&5 | ||
4041 | cat conftest.$ac_ext >&5 | ||
4042 | ac_cv_lib_xnet_t_error=no | ||
4043 | fi | ||
4044 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4045 | LIBS=$ac_check_lib_save_LIBS | ||
4046 | fi | ||
4047 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
4048 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
4049 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
4050 | cat >>confdefs.h <<_ACEOF | ||
4051 | #define HAVE_LIBXNET 1 | ||
4052 | _ACEOF | ||
4053 | |||
4054 | LIBS="-lxnet $LIBS" | ||
4055 | |||
4056 | else | ||
4057 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
4058 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
4059 | { (exit 1); exit 1; }; } | ||
4060 | fi | ||
4061 | |||
4062 | ;; | ||
4063 | *-*-irix5*) | ||
4064 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4065 | LDFLAGS="$LDFLAGS" | ||
4066 | PATH="$PATH:/usr/etc" | ||
4067 | cat >>confdefs.h <<\_ACEOF | ||
4068 | #define BROKEN_INET_NTOA 1 | ||
4069 | _ACEOF | ||
4070 | |||
4071 | cat >>confdefs.h <<\_ACEOF | ||
4072 | #define WITH_ABBREV_NO_TTY 1 | ||
4073 | _ACEOF | ||
4074 | |||
4075 | ;; | ||
4076 | *-*-irix6*) | ||
4077 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4078 | LDFLAGS="$LDFLAGS" | ||
4079 | PATH="$PATH:/usr/etc" | ||
4080 | cat >>confdefs.h <<\_ACEOF | ||
4081 | #define WITH_IRIX_ARRAY 1 | ||
4082 | _ACEOF | ||
4083 | |||
4084 | cat >>confdefs.h <<\_ACEOF | ||
4085 | #define WITH_IRIX_PROJECT 1 | ||
4086 | _ACEOF | ||
4087 | |||
4088 | cat >>confdefs.h <<\_ACEOF | ||
4089 | #define WITH_IRIX_AUDIT 1 | ||
4090 | _ACEOF | ||
4091 | |||
4092 | echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
4093 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
4094 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
4095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4096 | else | ||
4097 | cat >conftest.$ac_ext <<_ACEOF | ||
4098 | #line $LINENO "configure" | ||
4099 | #include "confdefs.h" | ||
4100 | /* System header to define __stub macros and hopefully few prototypes, | ||
4101 | which can conflict with char jlimit_startjob (); below. */ | ||
4102 | #include <assert.h> | ||
4103 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4104 | #ifdef __cplusplus | ||
4105 | extern "C" | ||
4106 | #endif | ||
4107 | /* We use char because int might match the return type of a gcc2 | ||
4108 | builtin and then its argument prototype would still apply. */ | ||
4109 | char jlimit_startjob (); | ||
4110 | char (*f) (); | ||
4111 | |||
4112 | #ifdef F77_DUMMY_MAIN | ||
4113 | # ifdef __cplusplus | ||
4114 | extern "C" | ||
4115 | # endif | ||
4116 | int F77_DUMMY_MAIN() { return 1; } | ||
4117 | #endif | ||
4118 | int | ||
4119 | main () | ||
4120 | { | ||
4121 | /* The GNU C library defines this for functions which it implements | ||
4122 | to always fail with ENOSYS. Some functions are actually named | ||
4123 | something starting with __ and the normal name is an alias. */ | ||
4124 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
4125 | choke me | ||
4126 | #else | ||
4127 | f = jlimit_startjob; | ||
4128 | #endif | ||
4129 | |||
4130 | ; | ||
4131 | return 0; | ||
4132 | } | ||
4133 | _ACEOF | ||
4134 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4136 | (eval $ac_link) 2>&5 | ||
4137 | ac_status=$? | ||
4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4139 | (exit $ac_status); } && | ||
4140 | { ac_try='test -s conftest$ac_exeext' | ||
4141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4142 | (eval $ac_try) 2>&5 | ||
4143 | ac_status=$? | ||
4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4145 | (exit $ac_status); }; }; then | ||
4146 | ac_cv_func_jlimit_startjob=yes | ||
4147 | else | ||
4148 | echo "$as_me: failed program was:" >&5 | ||
4149 | cat conftest.$ac_ext >&5 | ||
4150 | ac_cv_func_jlimit_startjob=no | ||
4151 | fi | ||
4152 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4153 | fi | ||
4154 | echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
4155 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
4156 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
4157 | cat >>confdefs.h <<\_ACEOF | ||
4158 | #define WITH_IRIX_JOBS 1 | ||
4159 | _ACEOF | ||
4160 | |||
4161 | fi | ||
4162 | |||
4163 | cat >>confdefs.h <<\_ACEOF | ||
4164 | #define BROKEN_INET_NTOA 1 | ||
4165 | _ACEOF | ||
4166 | |||
4167 | cat >>confdefs.h <<\_ACEOF | ||
4168 | #define WITH_ABBREV_NO_TTY 1 | ||
4169 | _ACEOF | ||
4170 | |||
4171 | ;; | ||
4172 | *-*-linux*) | ||
4173 | no_dev_ptmx=1 | ||
4174 | check_for_libcrypt_later=1 | ||
4175 | cat >>confdefs.h <<\_ACEOF | ||
4176 | #define DONT_TRY_OTHER_AF 1 | ||
4177 | _ACEOF | ||
4178 | |||
4179 | cat >>confdefs.h <<\_ACEOF | ||
4180 | #define PAM_TTY_KLUDGE 1 | ||
4181 | _ACEOF | ||
4182 | |||
4183 | inet6_default_4in6=yes | ||
4184 | ;; | ||
4185 | mips-sony-bsd|mips-sony-newsos4) | ||
4186 | cat >>confdefs.h <<\_ACEOF | ||
4187 | #define HAVE_NEWS4 1 | ||
4188 | _ACEOF | ||
4189 | |||
4190 | SONY=1 | ||
4191 | ;; | ||
4192 | *-*-netbsd*) | ||
4193 | check_for_libcrypt_before=1 | ||
4194 | need_dash_r=1 | ||
4195 | ;; | ||
4196 | *-*-freebsd*) | ||
4197 | check_for_libcrypt_later=1 | ||
4198 | ;; | ||
4199 | *-next-*) | ||
4200 | conf_lastlog_location="/usr/adm/lastlog" | ||
4201 | conf_utmp_location=/etc/utmp | ||
4202 | conf_wtmp_location=/usr/adm/wtmp | ||
4203 | MAIL=/usr/spool/mail | ||
4204 | cat >>confdefs.h <<\_ACEOF | ||
4205 | #define HAVE_NEXT 1 | ||
4206 | _ACEOF | ||
4207 | |||
4208 | cat >>confdefs.h <<\_ACEOF | ||
4209 | #define BROKEN_REALPATH 1 | ||
4210 | _ACEOF | ||
4211 | |||
4212 | cat >>confdefs.h <<\_ACEOF | ||
4213 | #define USE_PIPES 1 | ||
4214 | _ACEOF | ||
4215 | |||
4216 | cat >>confdefs.h <<\_ACEOF | ||
4217 | #define BROKEN_SAVED_UIDS 1 | ||
4218 | _ACEOF | ||
4219 | |||
4220 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4221 | CFLAGS="$CFLAGS" | ||
4222 | ;; | ||
4223 | *-*-solaris*) | ||
4224 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4225 | LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" | ||
4226 | need_dash_r=1 | ||
4227 | cat >>confdefs.h <<\_ACEOF | ||
4228 | #define PAM_SUN_CODEBASE 1 | ||
4229 | _ACEOF | ||
4230 | |||
4231 | cat >>confdefs.h <<\_ACEOF | ||
4232 | #define LOGIN_NEEDS_UTMPX 1 | ||
4233 | _ACEOF | ||
4234 | |||
4235 | cat >>confdefs.h <<\_ACEOF | ||
4236 | #define LOGIN_NEEDS_TERM 1 | ||
4237 | _ACEOF | ||
4238 | |||
4239 | cat >>confdefs.h <<\_ACEOF | ||
4240 | #define PAM_TTY_KLUDGE 1 | ||
4241 | _ACEOF | ||
4242 | |||
4243 | # hardwire lastlog location (can't detect it on some versions) | ||
4244 | conf_lastlog_location="/var/adm/lastlog" | ||
4245 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
4246 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
4247 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
4248 | if test "$sol2ver" -ge 8; then | ||
4249 | echo "$as_me:$LINENO: result: yes" >&5 | ||
4250 | echo "${ECHO_T}yes" >&6 | ||
4251 | cat >>confdefs.h <<\_ACEOF | ||
4252 | #define DISABLE_UTMP 1 | ||
4253 | _ACEOF | ||
4254 | |||
4255 | cat >>confdefs.h <<\_ACEOF | ||
4256 | #define DISABLE_WTMP 1 | ||
4257 | _ACEOF | ||
4258 | |||
4259 | else | ||
4260 | echo "$as_me:$LINENO: result: no" >&5 | ||
4261 | echo "${ECHO_T}no" >&6 | ||
4262 | fi | ||
4263 | ;; | ||
4264 | *-*-sunos4*) | ||
4265 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
4266 | |||
4267 | for ac_func in getpwanam | ||
4268 | do | ||
4269 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4270 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4271 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4272 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4274 | else | ||
4275 | cat >conftest.$ac_ext <<_ACEOF | ||
4276 | #line $LINENO "configure" | ||
4277 | #include "confdefs.h" | ||
4278 | /* System header to define __stub macros and hopefully few prototypes, | ||
4279 | which can conflict with char $ac_func (); below. */ | ||
4280 | #include <assert.h> | ||
4281 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4282 | #ifdef __cplusplus | ||
4283 | extern "C" | ||
4284 | #endif | ||
4285 | /* We use char because int might match the return type of a gcc2 | ||
4286 | builtin and then its argument prototype would still apply. */ | ||
4287 | char $ac_func (); | ||
4288 | char (*f) (); | ||
4289 | |||
4290 | #ifdef F77_DUMMY_MAIN | ||
4291 | # ifdef __cplusplus | ||
4292 | extern "C" | ||
4293 | # endif | ||
4294 | int F77_DUMMY_MAIN() { return 1; } | ||
4295 | #endif | ||
4296 | int | ||
4297 | main () | ||
4298 | { | ||
4299 | /* The GNU C library defines this for functions which it implements | ||
4300 | to always fail with ENOSYS. Some functions are actually named | ||
4301 | something starting with __ and the normal name is an alias. */ | ||
4302 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4303 | choke me | ||
4304 | #else | ||
4305 | f = $ac_func; | ||
4306 | #endif | ||
4307 | |||
4308 | ; | ||
4309 | return 0; | ||
4310 | } | ||
4311 | _ACEOF | ||
4312 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4314 | (eval $ac_link) 2>&5 | ||
4315 | ac_status=$? | ||
4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4317 | (exit $ac_status); } && | ||
4318 | { ac_try='test -s conftest$ac_exeext' | ||
4319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4320 | (eval $ac_try) 2>&5 | ||
4321 | ac_status=$? | ||
4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4323 | (exit $ac_status); }; }; then | ||
4324 | eval "$as_ac_var=yes" | ||
4325 | else | ||
4326 | echo "$as_me: failed program was:" >&5 | ||
4327 | cat conftest.$ac_ext >&5 | ||
4328 | eval "$as_ac_var=no" | ||
4329 | fi | ||
4330 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4331 | fi | ||
4332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4333 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4334 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4335 | cat >>confdefs.h <<_ACEOF | ||
4336 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4337 | _ACEOF | ||
4338 | |||
4339 | fi | ||
4340 | done | ||
4341 | |||
4342 | cat >>confdefs.h <<\_ACEOF | ||
4343 | #define PAM_SUN_CODEBASE 1 | ||
4344 | _ACEOF | ||
4345 | |||
4346 | conf_utmp_location=/etc/utmp | ||
4347 | conf_wtmp_location=/var/adm/wtmp | ||
4348 | conf_lastlog_location=/var/adm/lastlog | ||
4349 | cat >>confdefs.h <<\_ACEOF | ||
4350 | #define USE_PIPES 1 | ||
4351 | _ACEOF | ||
4352 | |||
4353 | ;; | ||
4354 | *-ncr-sysv*) | ||
4355 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4356 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4357 | LIBS="$LIBS -lc89" | ||
4358 | cat >>confdefs.h <<\_ACEOF | ||
4359 | #define USE_PIPES 1 | ||
4360 | _ACEOF | ||
4361 | |||
4362 | ;; | ||
4363 | *-sni-sysv*) | ||
4364 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4365 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
4366 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4367 | IPADDR_IN_DISPLAY=yes | ||
4368 | cat >>confdefs.h <<\_ACEOF | ||
4369 | #define USE_PIPES 1 | ||
4370 | _ACEOF | ||
4371 | |||
4372 | cat >>confdefs.h <<\_ACEOF | ||
4373 | #define IP_TOS_IS_BROKEN 1 | ||
4374 | _ACEOF | ||
4375 | |||
4376 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
4377 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
4378 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
4379 | ;; | ||
4380 | *-*-sysv4.2*) | ||
4381 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4382 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4383 | cat >>confdefs.h <<\_ACEOF | ||
4384 | #define USE_PIPES 1 | ||
4385 | _ACEOF | ||
4386 | |||
4387 | ;; | ||
4388 | *-*-sysv5*) | ||
4389 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4390 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4391 | cat >>confdefs.h <<\_ACEOF | ||
4392 | #define USE_PIPES 1 | ||
4393 | _ACEOF | ||
4394 | |||
4395 | ;; | ||
4396 | *-*-sysv*) | ||
4397 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4398 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4399 | ;; | ||
4400 | *-*-sco3.2v4*) | ||
4401 | CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include" | ||
4402 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4403 | LIBS="$LIBS -los -lprot -lx -ltinfo -lm" | ||
4404 | RANLIB=true | ||
4405 | no_dev_ptmx=1 | ||
4406 | cat >>confdefs.h <<\_ACEOF | ||
4407 | #define BROKEN_SYS_TERMIO_H 1 | ||
4408 | _ACEOF | ||
4409 | |||
4410 | cat >>confdefs.h <<\_ACEOF | ||
4411 | #define USE_PIPES 1 | ||
4412 | _ACEOF | ||
4413 | |||
4414 | cat >>confdefs.h <<\_ACEOF | ||
4415 | #define HAVE_SECUREWARE 1 | ||
4416 | _ACEOF | ||
4417 | |||
4418 | cat >>confdefs.h <<\_ACEOF | ||
4419 | #define DISABLE_SHADOW 1 | ||
4420 | _ACEOF | ||
4421 | |||
4422 | cat >>confdefs.h <<\_ACEOF | ||
4423 | #define BROKEN_SAVED_UIDS 1 | ||
4424 | _ACEOF | ||
4425 | |||
4426 | |||
4427 | |||
4428 | for ac_func in getluid setluid | ||
4429 | do | ||
4430 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4431 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4432 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4433 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4435 | else | ||
4436 | cat >conftest.$ac_ext <<_ACEOF | ||
4437 | #line $LINENO "configure" | ||
4438 | #include "confdefs.h" | ||
4439 | /* System header to define __stub macros and hopefully few prototypes, | ||
4440 | which can conflict with char $ac_func (); below. */ | ||
4441 | #include <assert.h> | ||
4442 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4443 | #ifdef __cplusplus | ||
4444 | extern "C" | ||
4445 | #endif | ||
4446 | /* We use char because int might match the return type of a gcc2 | ||
4447 | builtin and then its argument prototype would still apply. */ | ||
4448 | char $ac_func (); | ||
4449 | char (*f) (); | ||
4450 | |||
4451 | #ifdef F77_DUMMY_MAIN | ||
4452 | # ifdef __cplusplus | ||
4453 | extern "C" | ||
4454 | # endif | ||
4455 | int F77_DUMMY_MAIN() { return 1; } | ||
4456 | #endif | ||
4457 | int | ||
4458 | main () | ||
4459 | { | ||
4460 | /* The GNU C library defines this for functions which it implements | ||
4461 | to always fail with ENOSYS. Some functions are actually named | ||
4462 | something starting with __ and the normal name is an alias. */ | ||
4463 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4464 | choke me | ||
4465 | #else | ||
4466 | f = $ac_func; | ||
4467 | #endif | ||
4468 | |||
4469 | ; | ||
4470 | return 0; | ||
4471 | } | ||
4472 | _ACEOF | ||
4473 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4475 | (eval $ac_link) 2>&5 | ||
4476 | ac_status=$? | ||
4477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4478 | (exit $ac_status); } && | ||
4479 | { ac_try='test -s conftest$ac_exeext' | ||
4480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4481 | (eval $ac_try) 2>&5 | ||
4482 | ac_status=$? | ||
4483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4484 | (exit $ac_status); }; }; then | ||
4485 | eval "$as_ac_var=yes" | ||
4486 | else | ||
4487 | echo "$as_me: failed program was:" >&5 | ||
4488 | cat conftest.$ac_ext >&5 | ||
4489 | eval "$as_ac_var=no" | ||
4490 | fi | ||
4491 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4492 | fi | ||
4493 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4494 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4495 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4496 | cat >>confdefs.h <<_ACEOF | ||
4497 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4498 | _ACEOF | ||
4499 | |||
4500 | fi | ||
4501 | done | ||
4502 | |||
4503 | MANTYPE=man | ||
4504 | do_sco3_extra_lib_check=yes | ||
4505 | ;; | ||
4506 | *-*-sco3.2v5*) | ||
4507 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4508 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4509 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
4510 | no_dev_ptmx=1 | ||
4511 | cat >>confdefs.h <<\_ACEOF | ||
4512 | #define USE_PIPES 1 | ||
4513 | _ACEOF | ||
4514 | |||
4515 | cat >>confdefs.h <<\_ACEOF | ||
4516 | #define HAVE_SECUREWARE 1 | ||
4517 | _ACEOF | ||
4518 | |||
4519 | cat >>confdefs.h <<\_ACEOF | ||
4520 | #define DISABLE_SHADOW 1 | ||
4521 | _ACEOF | ||
4522 | |||
4523 | cat >>confdefs.h <<\_ACEOF | ||
4524 | #define DISABLE_FD_PASSING 1 | ||
4525 | _ACEOF | ||
4526 | |||
4527 | |||
4528 | |||
4529 | for ac_func in getluid setluid | ||
4530 | do | ||
4531 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4532 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4533 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4534 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4536 | else | ||
4537 | cat >conftest.$ac_ext <<_ACEOF | ||
4538 | #line $LINENO "configure" | ||
4539 | #include "confdefs.h" | ||
4540 | /* System header to define __stub macros and hopefully few prototypes, | ||
4541 | which can conflict with char $ac_func (); below. */ | ||
4542 | #include <assert.h> | ||
4543 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4544 | #ifdef __cplusplus | ||
4545 | extern "C" | ||
4546 | #endif | ||
4547 | /* We use char because int might match the return type of a gcc2 | ||
4548 | builtin and then its argument prototype would still apply. */ | ||
4549 | char $ac_func (); | ||
4550 | char (*f) (); | ||
4551 | |||
4552 | #ifdef F77_DUMMY_MAIN | ||
4553 | # ifdef __cplusplus | ||
4554 | extern "C" | ||
4555 | # endif | ||
4556 | int F77_DUMMY_MAIN() { return 1; } | ||
4557 | #endif | ||
4558 | int | ||
4559 | main () | ||
4560 | { | ||
4561 | /* The GNU C library defines this for functions which it implements | ||
4562 | to always fail with ENOSYS. Some functions are actually named | ||
4563 | something starting with __ and the normal name is an alias. */ | ||
4564 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4565 | choke me | ||
4566 | #else | ||
4567 | f = $ac_func; | ||
4568 | #endif | ||
4569 | |||
4570 | ; | ||
4571 | return 0; | ||
4572 | } | ||
4573 | _ACEOF | ||
4574 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4576 | (eval $ac_link) 2>&5 | ||
4577 | ac_status=$? | ||
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4579 | (exit $ac_status); } && | ||
4580 | { ac_try='test -s conftest$ac_exeext' | ||
4581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4582 | (eval $ac_try) 2>&5 | ||
4583 | ac_status=$? | ||
4584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4585 | (exit $ac_status); }; }; then | ||
4586 | eval "$as_ac_var=yes" | ||
4587 | else | ||
4588 | echo "$as_me: failed program was:" >&5 | ||
4589 | cat conftest.$ac_ext >&5 | ||
4590 | eval "$as_ac_var=no" | ||
4591 | fi | ||
4592 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4593 | fi | ||
4594 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4595 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4596 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4597 | cat >>confdefs.h <<_ACEOF | ||
4598 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4599 | _ACEOF | ||
4600 | |||
4601 | fi | ||
4602 | done | ||
4603 | |||
4604 | MANTYPE=man | ||
4605 | ;; | ||
4606 | *-*-unicosmk*) | ||
4607 | no_libsocket=1 | ||
4608 | no_libnsl=1 | ||
4609 | cat >>confdefs.h <<\_ACEOF | ||
4610 | #define USE_PIPES 1 | ||
4611 | _ACEOF | ||
4612 | |||
4613 | cat >>confdefs.h <<\_ACEOF | ||
4614 | #define DISABLE_FD_PASSING 1 | ||
4615 | _ACEOF | ||
4616 | |||
4617 | LDFLAGS="$LDFLAGS" | ||
4618 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4619 | MANTYPE=cat | ||
4620 | ;; | ||
4621 | *-*-unicos*) | ||
4622 | no_libsocket=1 | ||
4623 | no_libnsl=1 | ||
4624 | cat >>confdefs.h <<\_ACEOF | ||
4625 | #define USE_PIPES 1 | ||
4626 | _ACEOF | ||
4627 | |||
4628 | cat >>confdefs.h <<\_ACEOF | ||
4629 | #define DISABLE_FD_PASSING 1 | ||
4630 | _ACEOF | ||
4631 | |||
4632 | cat >>confdefs.h <<\_ACEOF | ||
4633 | #define NO_SSH_LASTLOG 1 | ||
4634 | _ACEOF | ||
4635 | |||
4636 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
4637 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4638 | MANTYPE=cat | ||
4639 | ;; | ||
4640 | *-dec-osf*) | ||
4641 | echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
4642 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
4643 | no_osfsia="" | ||
4644 | |||
4645 | # Check whether --with-osfsia or --without-osfsia was given. | ||
4646 | if test "${with_osfsia+set}" = set; then | ||
4647 | withval="$with_osfsia" | ||
4648 | |||
4649 | if test "x$withval" = "xno" ; then | ||
4650 | echo "$as_me:$LINENO: result: disabled" >&5 | ||
4651 | echo "${ECHO_T}disabled" >&6 | ||
4652 | no_osfsia=1 | ||
4653 | fi | ||
4654 | |||
4655 | fi; | ||
4656 | if test -z "$no_osfsia" ; then | ||
4657 | if test -f /etc/sia/matrix.conf; then | ||
4658 | echo "$as_me:$LINENO: result: yes" >&5 | ||
4659 | echo "${ECHO_T}yes" >&6 | ||
4660 | cat >>confdefs.h <<\_ACEOF | ||
4661 | #define HAVE_OSF_SIA 1 | ||
4662 | _ACEOF | ||
4663 | |||
4664 | cat >>confdefs.h <<\_ACEOF | ||
4665 | #define DISABLE_LOGIN 1 | ||
4666 | _ACEOF | ||
4667 | |||
4668 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
4669 | else | ||
4670 | echo "$as_me:$LINENO: result: no" >&5 | ||
4671 | echo "${ECHO_T}no" >&6 | ||
4672 | fi | ||
4673 | fi | ||
4674 | ;; | ||
4675 | |||
4676 | *-*-nto-qnx) | ||
4677 | cat >>confdefs.h <<\_ACEOF | ||
4678 | #define USE_PIPES 1 | ||
4679 | _ACEOF | ||
4680 | |||
4681 | cat >>confdefs.h <<\_ACEOF | ||
4682 | #define NO_X11_UNIX_SOCKETS 1 | ||
4683 | _ACEOF | ||
4684 | |||
4685 | cat >>confdefs.h <<\_ACEOF | ||
4686 | #define MISSING_NFDBITS 1 | ||
4687 | _ACEOF | ||
4688 | |||
4689 | cat >>confdefs.h <<\_ACEOF | ||
4690 | #define MISSING_HOWMANY 1 | ||
4691 | _ACEOF | ||
4692 | |||
4693 | cat >>confdefs.h <<\_ACEOF | ||
4694 | #define MISSING_FD_MASK 1 | ||
4695 | _ACEOF | ||
4696 | |||
4697 | ;; | ||
4698 | esac | ||
4699 | |||
4700 | # Allow user to specify flags | ||
4701 | |||
4702 | # Check whether --with-cflags or --without-cflags was given. | ||
4703 | if test "${with_cflags+set}" = set; then | ||
4704 | withval="$with_cflags" | ||
4705 | |||
4706 | if test "x$withval" != "xno" ; then | ||
4707 | CFLAGS="$CFLAGS $withval" | ||
4708 | fi | ||
4709 | |||
4710 | |||
4711 | fi; | ||
4712 | |||
4713 | # Check whether --with-cppflags or --without-cppflags was given. | ||
4714 | if test "${with_cppflags+set}" = set; then | ||
4715 | withval="$with_cppflags" | ||
4716 | |||
4717 | if test "x$withval" != "xno"; then | ||
4718 | CPPFLAGS="$CPPFLAGS $withval" | ||
4719 | fi | ||
4720 | |||
4721 | |||
4722 | fi; | ||
4723 | |||
4724 | # Check whether --with-ldflags or --without-ldflags was given. | ||
4725 | if test "${with_ldflags+set}" = set; then | ||
4726 | withval="$with_ldflags" | ||
4727 | |||
4728 | if test "x$withval" != "xno" ; then | ||
4729 | LDFLAGS="$LDFLAGS $withval" | ||
4730 | fi | ||
4731 | |||
4732 | |||
4733 | fi; | ||
4734 | |||
4735 | # Check whether --with-libs or --without-libs was given. | ||
4736 | if test "${with_libs+set}" = set; then | ||
4737 | withval="$with_libs" | ||
4738 | |||
4739 | if test "x$withval" != "xno" ; then | ||
4740 | LIBS="$LIBS $withval" | ||
4741 | fi | ||
4742 | |||
4743 | |||
4744 | fi; | ||
4745 | |||
4746 | # Checks for header files. | ||
4747 | |||
4748 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
4749 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
4750 | if test "${ac_cv_header_stdc+set}" = set; then | ||
4751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4752 | else | ||
4753 | cat >conftest.$ac_ext <<_ACEOF | ||
4754 | #line $LINENO "configure" | ||
4755 | #include "confdefs.h" | ||
4756 | #include <stdlib.h> | ||
4757 | #include <stdarg.h> | ||
4758 | #include <string.h> | ||
4759 | #include <float.h> | ||
4760 | |||
4761 | _ACEOF | ||
4762 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4763 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4764 | ac_status=$? | ||
4765 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
4766 | rm -f conftest.er1 | ||
4767 | cat conftest.err >&5 | ||
4768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4769 | (exit $ac_status); } >/dev/null; then | ||
4770 | if test -s conftest.err; then | ||
4771 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4772 | else | ||
4773 | ac_cpp_err= | ||
4774 | fi | ||
4775 | else | ||
4776 | ac_cpp_err=yes | ||
4777 | fi | ||
4778 | if test -z "$ac_cpp_err"; then | ||
4779 | ac_cv_header_stdc=yes | ||
4780 | else | ||
4781 | echo "$as_me: failed program was:" >&5 | ||
4782 | cat conftest.$ac_ext >&5 | ||
4783 | ac_cv_header_stdc=no | ||
4784 | fi | ||
4785 | rm -f conftest.err conftest.$ac_ext | ||
4786 | |||
4787 | if test $ac_cv_header_stdc = yes; then | ||
4788 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
4789 | cat >conftest.$ac_ext <<_ACEOF | ||
4790 | #line $LINENO "configure" | ||
4791 | #include "confdefs.h" | ||
4792 | #include <string.h> | ||
4793 | |||
4794 | _ACEOF | ||
4795 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4796 | egrep "memchr" >/dev/null 2>&1; then | ||
4797 | : | ||
4798 | else | ||
4799 | ac_cv_header_stdc=no | ||
4800 | fi | ||
4801 | rm -f conftest* | ||
4802 | |||
4803 | fi | ||
4804 | |||
4805 | if test $ac_cv_header_stdc = yes; then | ||
4806 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
4807 | cat >conftest.$ac_ext <<_ACEOF | ||
4808 | #line $LINENO "configure" | ||
4809 | #include "confdefs.h" | ||
4810 | #include <stdlib.h> | ||
4811 | |||
4812 | _ACEOF | ||
4813 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4814 | egrep "free" >/dev/null 2>&1; then | ||
4815 | : | ||
4816 | else | ||
4817 | ac_cv_header_stdc=no | ||
4818 | fi | ||
4819 | rm -f conftest* | ||
4820 | |||
4821 | fi | ||
4822 | |||
4823 | if test $ac_cv_header_stdc = yes; then | ||
4824 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4825 | if test "$cross_compiling" = yes; then | ||
4826 | : | ||
4827 | else | ||
4828 | cat >conftest.$ac_ext <<_ACEOF | ||
4829 | #line $LINENO "configure" | ||
4830 | #include "confdefs.h" | ||
4831 | #include <ctype.h> | ||
4832 | #if ((' ' & 0x0FF) == 0x020) | ||
4833 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4834 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4835 | #else | ||
4836 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | ||
4837 | || ('j' <= (c) && (c) <= 'r') \ | ||
4838 | || ('s' <= (c) && (c) <= 'z')) | ||
4839 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4840 | #endif | ||
4841 | |||
4842 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4843 | int | ||
4844 | main () | ||
4845 | { | ||
4846 | int i; | ||
4847 | for (i = 0; i < 256; i++) | ||
4848 | if (XOR (islower (i), ISLOWER (i)) | ||
4849 | || toupper (i) != TOUPPER (i)) | ||
4850 | exit(2); | ||
4851 | exit (0); | ||
4852 | } | ||
4853 | _ACEOF | ||
4854 | rm -f conftest$ac_exeext | ||
4855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4856 | (eval $ac_link) 2>&5 | ||
4857 | ac_status=$? | ||
4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4859 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4861 | (eval $ac_try) 2>&5 | ||
4862 | ac_status=$? | ||
4863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4864 | (exit $ac_status); }; }; then | ||
4865 | : | ||
4866 | else | ||
4867 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4868 | echo "$as_me: failed program was:" >&5 | ||
4869 | cat conftest.$ac_ext >&5 | ||
4870 | ( exit $ac_status ) | ||
4871 | ac_cv_header_stdc=no | ||
4872 | fi | ||
4873 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4874 | fi | ||
4875 | fi | ||
4876 | fi | ||
4877 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
4878 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
4879 | if test $ac_cv_header_stdc = yes; then | ||
4880 | |||
4881 | cat >>confdefs.h <<\_ACEOF | ||
4882 | #define STDC_HEADERS 1 | ||
4883 | _ACEOF | ||
4884 | |||
4885 | fi | ||
4886 | |||
4887 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
4888 | |||
4889 | |||
4890 | |||
4891 | |||
4892 | |||
4893 | |||
4894 | |||
4895 | |||
4896 | |||
4897 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
4898 | inttypes.h stdint.h unistd.h | ||
4899 | do | ||
4900 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4901 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4902 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4903 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4905 | else | ||
4906 | cat >conftest.$ac_ext <<_ACEOF | ||
4907 | #line $LINENO "configure" | ||
4908 | #include "confdefs.h" | ||
4909 | $ac_includes_default | ||
4910 | |||
4911 | #include <$ac_header> | ||
4912 | _ACEOF | ||
4913 | rm -f conftest.$ac_objext | ||
4914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4915 | (eval $ac_compile) 2>&5 | ||
4916 | ac_status=$? | ||
4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4918 | (exit $ac_status); } && | ||
4919 | { ac_try='test -s conftest.$ac_objext' | ||
4920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4921 | (eval $ac_try) 2>&5 | ||
4922 | ac_status=$? | ||
4923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4924 | (exit $ac_status); }; }; then | ||
4925 | eval "$as_ac_Header=yes" | ||
4926 | else | ||
4927 | echo "$as_me: failed program was:" >&5 | ||
4928 | cat conftest.$ac_ext >&5 | ||
4929 | eval "$as_ac_Header=no" | ||
4930 | fi | ||
4931 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
4932 | fi | ||
4933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4935 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4936 | cat >>confdefs.h <<_ACEOF | ||
4937 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4938 | _ACEOF | ||
4939 | |||
4940 | fi | ||
4941 | |||
4942 | done | ||
4943 | |||
4944 | |||
4945 | |||
4946 | |||
4947 | |||
4948 | |||
4949 | |||
4950 | |||
4951 | |||
4952 | |||
4953 | |||
4954 | |||
4955 | |||
4956 | |||
4957 | |||
4958 | |||
4959 | |||
4960 | |||
4961 | |||
4962 | |||
4963 | |||
4964 | |||
4965 | |||
4966 | |||
4967 | |||
4968 | |||
4969 | |||
4970 | |||
4971 | |||
4972 | |||
4973 | |||
4974 | |||
4975 | |||
4976 | |||
4977 | |||
4978 | |||
4979 | |||
4980 | |||
4981 | |||
4982 | |||
4983 | |||
4984 | |||
4985 | |||
4986 | |||
4987 | for ac_header in bstring.h crypt.h endian.h floatingpoint.h \ | ||
4988 | getopt.h glob.h ia.h lastlog.h limits.h login.h \ | ||
4989 | login_cap.h maillock.h netdb.h netgroup.h \ | ||
4990 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ | ||
4991 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
4992 | strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ | ||
4993 | sys/mman.h sys/select.h sys/stat.h \ | ||
4994 | sys/stropts.h sys/sysmacros.h sys/time.h \ | ||
4995 | sys/un.h time.h tmpdir.h ttyent.h usersec.h \ | ||
4996 | util.h utime.h utmp.h utmpx.h | ||
4997 | do | ||
4998 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4999 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5000 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5001 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5002 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5004 | fi | ||
5005 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5006 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5007 | else | ||
5008 | # Is the header compilable? | ||
5009 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5010 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
5011 | cat >conftest.$ac_ext <<_ACEOF | ||
5012 | #line $LINENO "configure" | ||
5013 | #include "confdefs.h" | ||
5014 | $ac_includes_default | ||
5015 | #include <$ac_header> | ||
5016 | _ACEOF | ||
5017 | rm -f conftest.$ac_objext | ||
5018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5019 | (eval $ac_compile) 2>&5 | ||
5020 | ac_status=$? | ||
5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5022 | (exit $ac_status); } && | ||
5023 | { ac_try='test -s conftest.$ac_objext' | ||
5024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5025 | (eval $ac_try) 2>&5 | ||
5026 | ac_status=$? | ||
5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5028 | (exit $ac_status); }; }; then | ||
5029 | ac_header_compiler=yes | ||
5030 | else | ||
5031 | echo "$as_me: failed program was:" >&5 | ||
5032 | cat conftest.$ac_ext >&5 | ||
5033 | ac_header_compiler=no | ||
5034 | fi | ||
5035 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
5036 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5037 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
5038 | |||
5039 | # Is the header present? | ||
5040 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5041 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
5042 | cat >conftest.$ac_ext <<_ACEOF | ||
5043 | #line $LINENO "configure" | ||
5044 | #include "confdefs.h" | ||
5045 | #include <$ac_header> | ||
5046 | _ACEOF | ||
5047 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5048 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5049 | ac_status=$? | ||
5050 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5051 | rm -f conftest.er1 | ||
5052 | cat conftest.err >&5 | ||
5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5054 | (exit $ac_status); } >/dev/null; then | ||
5055 | if test -s conftest.err; then | ||
5056 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5057 | else | ||
5058 | ac_cpp_err= | ||
5059 | fi | ||
5060 | else | ||
5061 | ac_cpp_err=yes | ||
5062 | fi | ||
5063 | if test -z "$ac_cpp_err"; then | ||
5064 | ac_header_preproc=yes | ||
5065 | else | ||
5066 | echo "$as_me: failed program was:" >&5 | ||
5067 | cat conftest.$ac_ext >&5 | ||
5068 | ac_header_preproc=no | ||
5069 | fi | ||
5070 | rm -f conftest.err conftest.$ac_ext | ||
5071 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5072 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
5073 | |||
5074 | # So? What about this header? | ||
5075 | case $ac_header_compiler:$ac_header_preproc in | ||
5076 | yes:no ) | ||
5077 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5078 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5080 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
5081 | no:yes ) | ||
5082 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5083 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5084 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5085 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5086 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5087 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
5088 | esac | ||
5089 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5091 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5093 | else | ||
5094 | eval "$as_ac_Header=$ac_header_preproc" | ||
5095 | fi | ||
5096 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5097 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5098 | |||
5099 | fi | ||
5100 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5101 | cat >>confdefs.h <<_ACEOF | ||
5102 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5103 | _ACEOF | ||
5104 | |||
5105 | fi | ||
5106 | |||
5107 | done | ||
5108 | |||
5109 | |||
5110 | # Checks for libraries. | ||
5111 | echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
5112 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
5113 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
5114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5115 | else | ||
5116 | cat >conftest.$ac_ext <<_ACEOF | ||
5117 | #line $LINENO "configure" | ||
5118 | #include "confdefs.h" | ||
5119 | /* System header to define __stub macros and hopefully few prototypes, | ||
5120 | which can conflict with char yp_match (); below. */ | ||
5121 | #include <assert.h> | ||
5122 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5123 | #ifdef __cplusplus | ||
5124 | extern "C" | ||
5125 | #endif | ||
5126 | /* We use char because int might match the return type of a gcc2 | ||
5127 | builtin and then its argument prototype would still apply. */ | ||
5128 | char yp_match (); | ||
5129 | char (*f) (); | ||
5130 | |||
5131 | #ifdef F77_DUMMY_MAIN | ||
5132 | # ifdef __cplusplus | ||
5133 | extern "C" | ||
5134 | # endif | ||
5135 | int F77_DUMMY_MAIN() { return 1; } | ||
5136 | #endif | ||
5137 | int | ||
5138 | main () | ||
5139 | { | ||
5140 | /* The GNU C library defines this for functions which it implements | ||
5141 | to always fail with ENOSYS. Some functions are actually named | ||
5142 | something starting with __ and the normal name is an alias. */ | ||
5143 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
5144 | choke me | ||
5145 | #else | ||
5146 | f = yp_match; | ||
5147 | #endif | ||
5148 | |||
5149 | ; | ||
5150 | return 0; | ||
5151 | } | ||
5152 | _ACEOF | ||
5153 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5155 | (eval $ac_link) 2>&5 | ||
5156 | ac_status=$? | ||
5157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5158 | (exit $ac_status); } && | ||
5159 | { ac_try='test -s conftest$ac_exeext' | ||
5160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5161 | (eval $ac_try) 2>&5 | ||
5162 | ac_status=$? | ||
5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5164 | (exit $ac_status); }; }; then | ||
5165 | ac_cv_func_yp_match=yes | ||
5166 | else | ||
5167 | echo "$as_me: failed program was:" >&5 | ||
5168 | cat conftest.$ac_ext >&5 | ||
5169 | ac_cv_func_yp_match=no | ||
5170 | fi | ||
5171 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5172 | fi | ||
5173 | echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
5174 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
5175 | if test $ac_cv_func_yp_match = yes; then | ||
5176 | : | ||
5177 | else | ||
5178 | |||
5179 | echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
5180 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
5181 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
5182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5183 | else | ||
5184 | ac_check_lib_save_LIBS=$LIBS | ||
5185 | LIBS="-lnsl $LIBS" | ||
5186 | cat >conftest.$ac_ext <<_ACEOF | ||
5187 | #line $LINENO "configure" | ||
5188 | #include "confdefs.h" | ||
5189 | |||
5190 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5191 | #ifdef __cplusplus | ||
5192 | extern "C" | ||
5193 | #endif | ||
5194 | /* We use char because int might match the return type of a gcc2 | ||
5195 | builtin and then its argument prototype would still apply. */ | ||
5196 | char yp_match (); | ||
5197 | #ifdef F77_DUMMY_MAIN | ||
5198 | # ifdef __cplusplus | ||
5199 | extern "C" | ||
5200 | # endif | ||
5201 | int F77_DUMMY_MAIN() { return 1; } | ||
5202 | #endif | ||
5203 | int | ||
5204 | main () | ||
5205 | { | ||
5206 | yp_match (); | ||
5207 | ; | ||
5208 | return 0; | ||
5209 | } | ||
5210 | _ACEOF | ||
5211 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5213 | (eval $ac_link) 2>&5 | ||
5214 | ac_status=$? | ||
5215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5216 | (exit $ac_status); } && | ||
5217 | { ac_try='test -s conftest$ac_exeext' | ||
5218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5219 | (eval $ac_try) 2>&5 | ||
5220 | ac_status=$? | ||
5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5222 | (exit $ac_status); }; }; then | ||
5223 | ac_cv_lib_nsl_yp_match=yes | ||
5224 | else | ||
5225 | echo "$as_me: failed program was:" >&5 | ||
5226 | cat conftest.$ac_ext >&5 | ||
5227 | ac_cv_lib_nsl_yp_match=no | ||
5228 | fi | ||
5229 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5230 | LIBS=$ac_check_lib_save_LIBS | ||
5231 | fi | ||
5232 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
5233 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
5234 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
5235 | cat >>confdefs.h <<_ACEOF | ||
5236 | #define HAVE_LIBNSL 1 | ||
5237 | _ACEOF | ||
5238 | |||
5239 | LIBS="-lnsl $LIBS" | ||
5240 | |||
5241 | fi | ||
5242 | |||
5243 | fi | ||
5244 | |||
5245 | echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
5246 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
5247 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
5248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5249 | else | ||
5250 | cat >conftest.$ac_ext <<_ACEOF | ||
5251 | #line $LINENO "configure" | ||
5252 | #include "confdefs.h" | ||
5253 | /* System header to define __stub macros and hopefully few prototypes, | ||
5254 | which can conflict with char setsockopt (); below. */ | ||
5255 | #include <assert.h> | ||
5256 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5257 | #ifdef __cplusplus | ||
5258 | extern "C" | ||
5259 | #endif | ||
5260 | /* We use char because int might match the return type of a gcc2 | ||
5261 | builtin and then its argument prototype would still apply. */ | ||
5262 | char setsockopt (); | ||
5263 | char (*f) (); | ||
5264 | |||
5265 | #ifdef F77_DUMMY_MAIN | ||
5266 | # ifdef __cplusplus | ||
5267 | extern "C" | ||
5268 | # endif | ||
5269 | int F77_DUMMY_MAIN() { return 1; } | ||
5270 | #endif | ||
5271 | int | ||
5272 | main () | ||
5273 | { | ||
5274 | /* The GNU C library defines this for functions which it implements | ||
5275 | to always fail with ENOSYS. Some functions are actually named | ||
5276 | something starting with __ and the normal name is an alias. */ | ||
5277 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
5278 | choke me | ||
5279 | #else | ||
5280 | f = setsockopt; | ||
5281 | #endif | ||
5282 | |||
5283 | ; | ||
5284 | return 0; | ||
5285 | } | ||
5286 | _ACEOF | ||
5287 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5289 | (eval $ac_link) 2>&5 | ||
5290 | ac_status=$? | ||
5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5292 | (exit $ac_status); } && | ||
5293 | { ac_try='test -s conftest$ac_exeext' | ||
5294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5295 | (eval $ac_try) 2>&5 | ||
5296 | ac_status=$? | ||
5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5298 | (exit $ac_status); }; }; then | ||
5299 | ac_cv_func_setsockopt=yes | ||
5300 | else | ||
5301 | echo "$as_me: failed program was:" >&5 | ||
5302 | cat conftest.$ac_ext >&5 | ||
5303 | ac_cv_func_setsockopt=no | ||
5304 | fi | ||
5305 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5306 | fi | ||
5307 | echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
5308 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
5309 | if test $ac_cv_func_setsockopt = yes; then | ||
5310 | : | ||
5311 | else | ||
5312 | |||
5313 | echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
5314 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
5315 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
5316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5317 | else | ||
5318 | ac_check_lib_save_LIBS=$LIBS | ||
5319 | LIBS="-lsocket $LIBS" | ||
5320 | cat >conftest.$ac_ext <<_ACEOF | ||
5321 | #line $LINENO "configure" | ||
5322 | #include "confdefs.h" | ||
5323 | |||
5324 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5325 | #ifdef __cplusplus | ||
5326 | extern "C" | ||
5327 | #endif | ||
5328 | /* We use char because int might match the return type of a gcc2 | ||
5329 | builtin and then its argument prototype would still apply. */ | ||
5330 | char setsockopt (); | ||
5331 | #ifdef F77_DUMMY_MAIN | ||
5332 | # ifdef __cplusplus | ||
5333 | extern "C" | ||
5334 | # endif | ||
5335 | int F77_DUMMY_MAIN() { return 1; } | ||
5336 | #endif | ||
5337 | int | ||
5338 | main () | ||
5339 | { | ||
5340 | setsockopt (); | ||
5341 | ; | ||
5342 | return 0; | ||
5343 | } | ||
5344 | _ACEOF | ||
5345 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5347 | (eval $ac_link) 2>&5 | ||
5348 | ac_status=$? | ||
5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5350 | (exit $ac_status); } && | ||
5351 | { ac_try='test -s conftest$ac_exeext' | ||
5352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5353 | (eval $ac_try) 2>&5 | ||
5354 | ac_status=$? | ||
5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5356 | (exit $ac_status); }; }; then | ||
5357 | ac_cv_lib_socket_setsockopt=yes | ||
5358 | else | ||
5359 | echo "$as_me: failed program was:" >&5 | ||
5360 | cat conftest.$ac_ext >&5 | ||
5361 | ac_cv_lib_socket_setsockopt=no | ||
5362 | fi | ||
5363 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5364 | LIBS=$ac_check_lib_save_LIBS | ||
5365 | fi | ||
5366 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
5367 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
5368 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
5369 | cat >>confdefs.h <<_ACEOF | ||
5370 | #define HAVE_LIBSOCKET 1 | ||
5371 | _ACEOF | ||
5372 | |||
5373 | LIBS="-lsocket $LIBS" | ||
5374 | |||
5375 | fi | ||
5376 | |||
5377 | fi | ||
5378 | |||
5379 | |||
5380 | if test "x$with_tcp_wrappers" != "xno" ; then | ||
5381 | if test "x$do_sco3_extra_lib_check" = "xyes" ; then | ||
5382 | echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5 | ||
5383 | echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6 | ||
5384 | if test "${ac_cv_lib_rpc_innetgr+set}" = set; then | ||
5385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5386 | else | ||
5387 | ac_check_lib_save_LIBS=$LIBS | ||
5388 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5389 | cat >conftest.$ac_ext <<_ACEOF | ||
5390 | #line $LINENO "configure" | ||
5391 | #include "confdefs.h" | ||
5392 | |||
5393 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5394 | #ifdef __cplusplus | ||
5395 | extern "C" | ||
5396 | #endif | ||
5397 | /* We use char because int might match the return type of a gcc2 | ||
5398 | builtin and then its argument prototype would still apply. */ | ||
5399 | char innetgr (); | ||
5400 | #ifdef F77_DUMMY_MAIN | ||
5401 | # ifdef __cplusplus | ||
5402 | extern "C" | ||
5403 | # endif | ||
5404 | int F77_DUMMY_MAIN() { return 1; } | ||
5405 | #endif | ||
5406 | int | ||
5407 | main () | ||
5408 | { | ||
5409 | innetgr (); | ||
5410 | ; | ||
5411 | return 0; | ||
5412 | } | ||
5413 | _ACEOF | ||
5414 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5416 | (eval $ac_link) 2>&5 | ||
5417 | ac_status=$? | ||
5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5419 | (exit $ac_status); } && | ||
5420 | { ac_try='test -s conftest$ac_exeext' | ||
5421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5422 | (eval $ac_try) 2>&5 | ||
5423 | ac_status=$? | ||
5424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5425 | (exit $ac_status); }; }; then | ||
5426 | ac_cv_lib_rpc_innetgr=yes | ||
5427 | else | ||
5428 | echo "$as_me: failed program was:" >&5 | ||
5429 | cat conftest.$ac_ext >&5 | ||
5430 | ac_cv_lib_rpc_innetgr=no | ||
5431 | fi | ||
5432 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5433 | LIBS=$ac_check_lib_save_LIBS | ||
5434 | fi | ||
5435 | echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5 | ||
5436 | echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6 | ||
5437 | if test $ac_cv_lib_rpc_innetgr = yes; then | ||
5438 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5439 | fi | ||
5440 | |||
5441 | fi | ||
5442 | fi | ||
5443 | |||
5444 | echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
5445 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
5446 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
5447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5448 | else | ||
5449 | cat >conftest.$ac_ext <<_ACEOF | ||
5450 | #line $LINENO "configure" | ||
5451 | #include "confdefs.h" | ||
5452 | /* System header to define __stub macros and hopefully few prototypes, | ||
5453 | which can conflict with char getspnam (); below. */ | ||
5454 | #include <assert.h> | ||
5455 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5456 | #ifdef __cplusplus | ||
5457 | extern "C" | ||
5458 | #endif | ||
5459 | /* We use char because int might match the return type of a gcc2 | ||
5460 | builtin and then its argument prototype would still apply. */ | ||
5461 | char getspnam (); | ||
5462 | char (*f) (); | ||
5463 | |||
5464 | #ifdef F77_DUMMY_MAIN | ||
5465 | # ifdef __cplusplus | ||
5466 | extern "C" | ||
5467 | # endif | ||
5468 | int F77_DUMMY_MAIN() { return 1; } | ||
5469 | #endif | ||
5470 | int | ||
5471 | main () | ||
5472 | { | ||
5473 | /* The GNU C library defines this for functions which it implements | ||
5474 | to always fail with ENOSYS. Some functions are actually named | ||
5475 | something starting with __ and the normal name is an alias. */ | ||
5476 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
5477 | choke me | ||
5478 | #else | ||
5479 | f = getspnam; | ||
5480 | #endif | ||
5481 | |||
5482 | ; | ||
5483 | return 0; | ||
5484 | } | ||
5485 | _ACEOF | ||
5486 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5488 | (eval $ac_link) 2>&5 | ||
5489 | ac_status=$? | ||
5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5491 | (exit $ac_status); } && | ||
5492 | { ac_try='test -s conftest$ac_exeext' | ||
5493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5494 | (eval $ac_try) 2>&5 | ||
5495 | ac_status=$? | ||
5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5497 | (exit $ac_status); }; }; then | ||
5498 | ac_cv_func_getspnam=yes | ||
5499 | else | ||
5500 | echo "$as_me: failed program was:" >&5 | ||
5501 | cat conftest.$ac_ext >&5 | ||
5502 | ac_cv_func_getspnam=no | ||
5503 | fi | ||
5504 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5505 | fi | ||
5506 | echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
5507 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
5508 | if test $ac_cv_func_getspnam = yes; then | ||
5509 | : | ||
5510 | else | ||
5511 | echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
5512 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
5513 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
5514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5515 | else | ||
5516 | ac_check_lib_save_LIBS=$LIBS | ||
5517 | LIBS="-lgen $LIBS" | ||
5518 | cat >conftest.$ac_ext <<_ACEOF | ||
5519 | #line $LINENO "configure" | ||
5520 | #include "confdefs.h" | ||
5521 | |||
5522 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5523 | #ifdef __cplusplus | ||
5524 | extern "C" | ||
5525 | #endif | ||
5526 | /* We use char because int might match the return type of a gcc2 | ||
5527 | builtin and then its argument prototype would still apply. */ | ||
5528 | char getspnam (); | ||
5529 | #ifdef F77_DUMMY_MAIN | ||
5530 | # ifdef __cplusplus | ||
5531 | extern "C" | ||
5532 | # endif | ||
5533 | int F77_DUMMY_MAIN() { return 1; } | ||
5534 | #endif | ||
5535 | int | ||
5536 | main () | ||
5537 | { | ||
5538 | getspnam (); | ||
5539 | ; | ||
5540 | return 0; | ||
5541 | } | ||
5542 | _ACEOF | ||
5543 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5545 | (eval $ac_link) 2>&5 | ||
5546 | ac_status=$? | ||
5547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5548 | (exit $ac_status); } && | ||
5549 | { ac_try='test -s conftest$ac_exeext' | ||
5550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5551 | (eval $ac_try) 2>&5 | ||
5552 | ac_status=$? | ||
5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5554 | (exit $ac_status); }; }; then | ||
5555 | ac_cv_lib_gen_getspnam=yes | ||
5556 | else | ||
5557 | echo "$as_me: failed program was:" >&5 | ||
5558 | cat conftest.$ac_ext >&5 | ||
5559 | ac_cv_lib_gen_getspnam=no | ||
5560 | fi | ||
5561 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5562 | LIBS=$ac_check_lib_save_LIBS | ||
5563 | fi | ||
5564 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
5565 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
5566 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
5567 | LIBS="$LIBS -lgen" | ||
5568 | fi | ||
5569 | |||
5570 | fi | ||
5571 | |||
5572 | |||
5573 | |||
5574 | # Check whether --with-rpath or --without-rpath was given. | ||
5575 | if test "${with_rpath+set}" = set; then | ||
5576 | withval="$with_rpath" | ||
5577 | |||
5578 | if test "x$withval" = "xno" ; then | ||
5579 | need_dash_r="" | ||
5580 | fi | ||
5581 | if test "x$withval" = "xyes" ; then | ||
5582 | need_dash_r=1 | ||
5583 | fi | ||
5584 | |||
5585 | |||
5586 | fi; | ||
5587 | |||
5588 | |||
5589 | # Check whether --with-zlib or --without-zlib was given. | ||
5590 | if test "${with_zlib+set}" = set; then | ||
5591 | withval="$with_zlib" | ||
5592 | |||
5593 | if test "x$withval" = "xno" ; then | ||
5594 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
5595 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
5596 | { (exit 1); exit 1; }; } | ||
5597 | fi | ||
5598 | if test -d "$withval/lib"; then | ||
5599 | if test -n "${need_dash_r}"; then | ||
5600 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
5601 | else | ||
5602 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
5603 | fi | ||
5604 | else | ||
5605 | if test -n "${need_dash_r}"; then | ||
5606 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
5607 | else | ||
5608 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
5609 | fi | ||
5610 | fi | ||
5611 | if test -d "$withval/include"; then | ||
5612 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
5613 | else | ||
5614 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
5615 | fi | ||
5616 | |||
5617 | |||
5618 | fi; | ||
5619 | |||
5620 | |||
5621 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
5622 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
5623 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
5624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5625 | else | ||
5626 | ac_check_lib_save_LIBS=$LIBS | ||
5627 | LIBS="-lz $LIBS" | ||
5628 | cat >conftest.$ac_ext <<_ACEOF | ||
5629 | #line $LINENO "configure" | ||
5630 | #include "confdefs.h" | ||
5631 | |||
5632 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5633 | #ifdef __cplusplus | ||
5634 | extern "C" | ||
5635 | #endif | ||
5636 | /* We use char because int might match the return type of a gcc2 | ||
5637 | builtin and then its argument prototype would still apply. */ | ||
5638 | char deflate (); | ||
5639 | #ifdef F77_DUMMY_MAIN | ||
5640 | # ifdef __cplusplus | ||
5641 | extern "C" | ||
5642 | # endif | ||
5643 | int F77_DUMMY_MAIN() { return 1; } | ||
5644 | #endif | ||
5645 | int | ||
5646 | main () | ||
5647 | { | ||
5648 | deflate (); | ||
5649 | ; | ||
5650 | return 0; | ||
5651 | } | ||
5652 | _ACEOF | ||
5653 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5655 | (eval $ac_link) 2>&5 | ||
5656 | ac_status=$? | ||
5657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5658 | (exit $ac_status); } && | ||
5659 | { ac_try='test -s conftest$ac_exeext' | ||
5660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5661 | (eval $ac_try) 2>&5 | ||
5662 | ac_status=$? | ||
5663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5664 | (exit $ac_status); }; }; then | ||
5665 | ac_cv_lib_z_deflate=yes | ||
5666 | else | ||
5667 | echo "$as_me: failed program was:" >&5 | ||
5668 | cat conftest.$ac_ext >&5 | ||
5669 | ac_cv_lib_z_deflate=no | ||
5670 | fi | ||
5671 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5672 | LIBS=$ac_check_lib_save_LIBS | ||
5673 | fi | ||
5674 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
5675 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
5676 | if test $ac_cv_lib_z_deflate = yes; then | ||
5677 | cat >>confdefs.h <<_ACEOF | ||
5678 | #define HAVE_LIBZ 1 | ||
5679 | _ACEOF | ||
5680 | |||
5681 | LIBS="-lz $LIBS" | ||
5682 | |||
5683 | else | ||
5684 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
5685 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
5686 | { (exit 1); exit 1; }; } | ||
5687 | fi | ||
5688 | |||
5689 | |||
5690 | echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
5691 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
5692 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
5693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5694 | else | ||
5695 | cat >conftest.$ac_ext <<_ACEOF | ||
5696 | #line $LINENO "configure" | ||
5697 | #include "confdefs.h" | ||
5698 | /* System header to define __stub macros and hopefully few prototypes, | ||
5699 | which can conflict with char strcasecmp (); below. */ | ||
5700 | #include <assert.h> | ||
5701 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5702 | #ifdef __cplusplus | ||
5703 | extern "C" | ||
5704 | #endif | ||
5705 | /* We use char because int might match the return type of a gcc2 | ||
5706 | builtin and then its argument prototype would still apply. */ | ||
5707 | char strcasecmp (); | ||
5708 | char (*f) (); | ||
5709 | |||
5710 | #ifdef F77_DUMMY_MAIN | ||
5711 | # ifdef __cplusplus | ||
5712 | extern "C" | ||
5713 | # endif | ||
5714 | int F77_DUMMY_MAIN() { return 1; } | ||
5715 | #endif | ||
5716 | int | ||
5717 | main () | ||
5718 | { | ||
5719 | /* The GNU C library defines this for functions which it implements | ||
5720 | to always fail with ENOSYS. Some functions are actually named | ||
5721 | something starting with __ and the normal name is an alias. */ | ||
5722 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
5723 | choke me | ||
5724 | #else | ||
5725 | f = strcasecmp; | ||
5726 | #endif | ||
5727 | |||
5728 | ; | ||
5729 | return 0; | ||
5730 | } | ||
5731 | _ACEOF | ||
5732 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5734 | (eval $ac_link) 2>&5 | ||
5735 | ac_status=$? | ||
5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5737 | (exit $ac_status); } && | ||
5738 | { ac_try='test -s conftest$ac_exeext' | ||
5739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5740 | (eval $ac_try) 2>&5 | ||
5741 | ac_status=$? | ||
5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5743 | (exit $ac_status); }; }; then | ||
5744 | ac_cv_func_strcasecmp=yes | ||
5745 | else | ||
5746 | echo "$as_me: failed program was:" >&5 | ||
5747 | cat conftest.$ac_ext >&5 | ||
5748 | ac_cv_func_strcasecmp=no | ||
5749 | fi | ||
5750 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5751 | fi | ||
5752 | echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
5753 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
5754 | if test $ac_cv_func_strcasecmp = yes; then | ||
5755 | : | ||
5756 | else | ||
5757 | echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
5758 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
5759 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
5760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5761 | else | ||
5762 | ac_check_lib_save_LIBS=$LIBS | ||
5763 | LIBS="-lresolv $LIBS" | ||
5764 | cat >conftest.$ac_ext <<_ACEOF | ||
5765 | #line $LINENO "configure" | ||
5766 | #include "confdefs.h" | ||
5767 | |||
5768 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5769 | #ifdef __cplusplus | ||
5770 | extern "C" | ||
5771 | #endif | ||
5772 | /* We use char because int might match the return type of a gcc2 | ||
5773 | builtin and then its argument prototype would still apply. */ | ||
5774 | char strcasecmp (); | ||
5775 | #ifdef F77_DUMMY_MAIN | ||
5776 | # ifdef __cplusplus | ||
5777 | extern "C" | ||
5778 | # endif | ||
5779 | int F77_DUMMY_MAIN() { return 1; } | ||
5780 | #endif | ||
5781 | int | ||
5782 | main () | ||
5783 | { | ||
5784 | strcasecmp (); | ||
5785 | ; | ||
5786 | return 0; | ||
5787 | } | ||
5788 | _ACEOF | ||
5789 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5791 | (eval $ac_link) 2>&5 | ||
5792 | ac_status=$? | ||
5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5794 | (exit $ac_status); } && | ||
5795 | { ac_try='test -s conftest$ac_exeext' | ||
5796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5797 | (eval $ac_try) 2>&5 | ||
5798 | ac_status=$? | ||
5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5800 | (exit $ac_status); }; }; then | ||
5801 | ac_cv_lib_resolv_strcasecmp=yes | ||
5802 | else | ||
5803 | echo "$as_me: failed program was:" >&5 | ||
5804 | cat conftest.$ac_ext >&5 | ||
5805 | ac_cv_lib_resolv_strcasecmp=no | ||
5806 | fi | ||
5807 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5808 | LIBS=$ac_check_lib_save_LIBS | ||
5809 | fi | ||
5810 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
5811 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
5812 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
5813 | LIBS="$LIBS -lresolv" | ||
5814 | fi | ||
5815 | |||
5816 | |||
5817 | fi | ||
5818 | |||
5819 | echo "$as_me:$LINENO: checking for utimes" >&5 | ||
5820 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
5821 | if test "${ac_cv_func_utimes+set}" = set; then | ||
5822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5823 | else | ||
5824 | cat >conftest.$ac_ext <<_ACEOF | ||
5825 | #line $LINENO "configure" | ||
5826 | #include "confdefs.h" | ||
5827 | /* System header to define __stub macros and hopefully few prototypes, | ||
5828 | which can conflict with char utimes (); below. */ | ||
5829 | #include <assert.h> | ||
5830 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5831 | #ifdef __cplusplus | ||
5832 | extern "C" | ||
5833 | #endif | ||
5834 | /* We use char because int might match the return type of a gcc2 | ||
5835 | builtin and then its argument prototype would still apply. */ | ||
5836 | char utimes (); | ||
5837 | char (*f) (); | ||
5838 | |||
5839 | #ifdef F77_DUMMY_MAIN | ||
5840 | # ifdef __cplusplus | ||
5841 | extern "C" | ||
5842 | # endif | ||
5843 | int F77_DUMMY_MAIN() { return 1; } | ||
5844 | #endif | ||
5845 | int | ||
5846 | main () | ||
5847 | { | ||
5848 | /* The GNU C library defines this for functions which it implements | ||
5849 | to always fail with ENOSYS. Some functions are actually named | ||
5850 | something starting with __ and the normal name is an alias. */ | ||
5851 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
5852 | choke me | ||
5853 | #else | ||
5854 | f = utimes; | ||
5855 | #endif | ||
5856 | |||
5857 | ; | ||
5858 | return 0; | ||
5859 | } | ||
5860 | _ACEOF | ||
5861 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5863 | (eval $ac_link) 2>&5 | ||
5864 | ac_status=$? | ||
5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5866 | (exit $ac_status); } && | ||
5867 | { ac_try='test -s conftest$ac_exeext' | ||
5868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5869 | (eval $ac_try) 2>&5 | ||
5870 | ac_status=$? | ||
5871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5872 | (exit $ac_status); }; }; then | ||
5873 | ac_cv_func_utimes=yes | ||
5874 | else | ||
5875 | echo "$as_me: failed program was:" >&5 | ||
5876 | cat conftest.$ac_ext >&5 | ||
5877 | ac_cv_func_utimes=no | ||
5878 | fi | ||
5879 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5880 | fi | ||
5881 | echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5 | ||
5882 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
5883 | if test $ac_cv_func_utimes = yes; then | ||
5884 | : | ||
5885 | else | ||
5886 | echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
5887 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
5888 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
5889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5890 | else | ||
5891 | ac_check_lib_save_LIBS=$LIBS | ||
5892 | LIBS="-lc89 $LIBS" | ||
5893 | cat >conftest.$ac_ext <<_ACEOF | ||
5894 | #line $LINENO "configure" | ||
5895 | #include "confdefs.h" | ||
5896 | |||
5897 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5898 | #ifdef __cplusplus | ||
5899 | extern "C" | ||
5900 | #endif | ||
5901 | /* We use char because int might match the return type of a gcc2 | ||
5902 | builtin and then its argument prototype would still apply. */ | ||
5903 | char utimes (); | ||
5904 | #ifdef F77_DUMMY_MAIN | ||
5905 | # ifdef __cplusplus | ||
5906 | extern "C" | ||
5907 | # endif | ||
5908 | int F77_DUMMY_MAIN() { return 1; } | ||
5909 | #endif | ||
5910 | int | ||
5911 | main () | ||
5912 | { | ||
5913 | utimes (); | ||
5914 | ; | ||
5915 | return 0; | ||
5916 | } | ||
5917 | _ACEOF | ||
5918 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5920 | (eval $ac_link) 2>&5 | ||
5921 | ac_status=$? | ||
5922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5923 | (exit $ac_status); } && | ||
5924 | { ac_try='test -s conftest$ac_exeext' | ||
5925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5926 | (eval $ac_try) 2>&5 | ||
5927 | ac_status=$? | ||
5928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5929 | (exit $ac_status); }; }; then | ||
5930 | ac_cv_lib_c89_utimes=yes | ||
5931 | else | ||
5932 | echo "$as_me: failed program was:" >&5 | ||
5933 | cat conftest.$ac_ext >&5 | ||
5934 | ac_cv_lib_c89_utimes=no | ||
5935 | fi | ||
5936 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5937 | LIBS=$ac_check_lib_save_LIBS | ||
5938 | fi | ||
5939 | echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
5940 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
5941 | if test $ac_cv_lib_c89_utimes = yes; then | ||
5942 | cat >>confdefs.h <<\_ACEOF | ||
5943 | #define HAVE_UTIMES 1 | ||
5944 | _ACEOF | ||
5945 | |||
5946 | LIBS="$LIBS -lc89" | ||
5947 | fi | ||
5948 | |||
5949 | |||
5950 | fi | ||
5951 | |||
5952 | |||
5953 | |||
5954 | for ac_header in libutil.h | ||
5955 | do | ||
5956 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5958 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5959 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5962 | fi | ||
5963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5965 | else | ||
5966 | # Is the header compilable? | ||
5967 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5968 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
5969 | cat >conftest.$ac_ext <<_ACEOF | ||
5970 | #line $LINENO "configure" | ||
5971 | #include "confdefs.h" | ||
5972 | $ac_includes_default | ||
5973 | #include <$ac_header> | ||
5974 | _ACEOF | ||
5975 | rm -f conftest.$ac_objext | ||
5976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5977 | (eval $ac_compile) 2>&5 | ||
5978 | ac_status=$? | ||
5979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5980 | (exit $ac_status); } && | ||
5981 | { ac_try='test -s conftest.$ac_objext' | ||
5982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5983 | (eval $ac_try) 2>&5 | ||
5984 | ac_status=$? | ||
5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5986 | (exit $ac_status); }; }; then | ||
5987 | ac_header_compiler=yes | ||
5988 | else | ||
5989 | echo "$as_me: failed program was:" >&5 | ||
5990 | cat conftest.$ac_ext >&5 | ||
5991 | ac_header_compiler=no | ||
5992 | fi | ||
5993 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
5994 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5995 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
5996 | |||
5997 | # Is the header present? | ||
5998 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5999 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
6000 | cat >conftest.$ac_ext <<_ACEOF | ||
6001 | #line $LINENO "configure" | ||
6002 | #include "confdefs.h" | ||
6003 | #include <$ac_header> | ||
6004 | _ACEOF | ||
6005 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6006 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6007 | ac_status=$? | ||
6008 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
6009 | rm -f conftest.er1 | ||
6010 | cat conftest.err >&5 | ||
6011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6012 | (exit $ac_status); } >/dev/null; then | ||
6013 | if test -s conftest.err; then | ||
6014 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6015 | else | ||
6016 | ac_cpp_err= | ||
6017 | fi | ||
6018 | else | ||
6019 | ac_cpp_err=yes | ||
6020 | fi | ||
6021 | if test -z "$ac_cpp_err"; then | ||
6022 | ac_header_preproc=yes | ||
6023 | else | ||
6024 | echo "$as_me: failed program was:" >&5 | ||
6025 | cat conftest.$ac_ext >&5 | ||
6026 | ac_header_preproc=no | ||
6027 | fi | ||
6028 | rm -f conftest.err conftest.$ac_ext | ||
6029 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6030 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
6031 | |||
6032 | # So? What about this header? | ||
6033 | case $ac_header_compiler:$ac_header_preproc in | ||
6034 | yes:no ) | ||
6035 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6036 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6037 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6038 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6039 | no:yes ) | ||
6040 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6041 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6042 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6043 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6044 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6045 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6046 | esac | ||
6047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6051 | else | ||
6052 | eval "$as_ac_Header=$ac_header_preproc" | ||
6053 | fi | ||
6054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6055 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6056 | |||
6057 | fi | ||
6058 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6059 | cat >>confdefs.h <<_ACEOF | ||
6060 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6061 | _ACEOF | ||
6062 | |||
6063 | fi | ||
6064 | |||
6065 | done | ||
6066 | |||
6067 | echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
6068 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
6069 | if test "${ac_cv_search_login+set}" = set; then | ||
6070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6071 | else | ||
6072 | ac_func_search_save_LIBS=$LIBS | ||
6073 | ac_cv_search_login=no | ||
6074 | cat >conftest.$ac_ext <<_ACEOF | ||
6075 | #line $LINENO "configure" | ||
6076 | #include "confdefs.h" | ||
6077 | |||
6078 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6079 | #ifdef __cplusplus | ||
6080 | extern "C" | ||
6081 | #endif | ||
6082 | /* We use char because int might match the return type of a gcc2 | ||
6083 | builtin and then its argument prototype would still apply. */ | ||
6084 | char login (); | ||
6085 | #ifdef F77_DUMMY_MAIN | ||
6086 | # ifdef __cplusplus | ||
6087 | extern "C" | ||
6088 | # endif | ||
6089 | int F77_DUMMY_MAIN() { return 1; } | ||
6090 | #endif | ||
6091 | int | ||
6092 | main () | ||
6093 | { | ||
6094 | login (); | ||
6095 | ; | ||
6096 | return 0; | ||
6097 | } | ||
6098 | _ACEOF | ||
6099 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6101 | (eval $ac_link) 2>&5 | ||
6102 | ac_status=$? | ||
6103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6104 | (exit $ac_status); } && | ||
6105 | { ac_try='test -s conftest$ac_exeext' | ||
6106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6107 | (eval $ac_try) 2>&5 | ||
6108 | ac_status=$? | ||
6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6110 | (exit $ac_status); }; }; then | ||
6111 | ac_cv_search_login="none required" | ||
6112 | else | ||
6113 | echo "$as_me: failed program was:" >&5 | ||
6114 | cat conftest.$ac_ext >&5 | ||
6115 | fi | ||
6116 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6117 | if test "$ac_cv_search_login" = no; then | ||
6118 | for ac_lib in util bsd; do | ||
6119 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
6120 | cat >conftest.$ac_ext <<_ACEOF | ||
6121 | #line $LINENO "configure" | ||
6122 | #include "confdefs.h" | ||
6123 | |||
6124 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6125 | #ifdef __cplusplus | ||
6126 | extern "C" | ||
6127 | #endif | ||
6128 | /* We use char because int might match the return type of a gcc2 | ||
6129 | builtin and then its argument prototype would still apply. */ | ||
6130 | char login (); | ||
6131 | #ifdef F77_DUMMY_MAIN | ||
6132 | # ifdef __cplusplus | ||
6133 | extern "C" | ||
6134 | # endif | ||
6135 | int F77_DUMMY_MAIN() { return 1; } | ||
6136 | #endif | ||
6137 | int | ||
6138 | main () | ||
6139 | { | ||
6140 | login (); | ||
6141 | ; | ||
6142 | return 0; | ||
6143 | } | ||
6144 | _ACEOF | ||
6145 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6147 | (eval $ac_link) 2>&5 | ||
6148 | ac_status=$? | ||
6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6150 | (exit $ac_status); } && | ||
6151 | { ac_try='test -s conftest$ac_exeext' | ||
6152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6153 | (eval $ac_try) 2>&5 | ||
6154 | ac_status=$? | ||
6155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6156 | (exit $ac_status); }; }; then | ||
6157 | ac_cv_search_login="-l$ac_lib" | ||
6158 | break | ||
6159 | else | ||
6160 | echo "$as_me: failed program was:" >&5 | ||
6161 | cat conftest.$ac_ext >&5 | ||
6162 | fi | ||
6163 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6164 | done | ||
6165 | fi | ||
6166 | LIBS=$ac_func_search_save_LIBS | ||
6167 | fi | ||
6168 | echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
6169 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
6170 | if test "$ac_cv_search_login" != no; then | ||
6171 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
6172 | cat >>confdefs.h <<\_ACEOF | ||
6173 | #define HAVE_LOGIN 1 | ||
6174 | _ACEOF | ||
6175 | |||
6176 | fi | ||
6177 | |||
6178 | |||
6179 | |||
6180 | |||
6181 | for ac_func in logout updwtmp logwtmp | ||
6182 | do | ||
6183 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6184 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6185 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6186 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6188 | else | ||
6189 | cat >conftest.$ac_ext <<_ACEOF | ||
6190 | #line $LINENO "configure" | ||
6191 | #include "confdefs.h" | ||
6192 | /* System header to define __stub macros and hopefully few prototypes, | ||
6193 | which can conflict with char $ac_func (); below. */ | ||
6194 | #include <assert.h> | ||
6195 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6196 | #ifdef __cplusplus | ||
6197 | extern "C" | ||
6198 | #endif | ||
6199 | /* We use char because int might match the return type of a gcc2 | ||
6200 | builtin and then its argument prototype would still apply. */ | ||
6201 | char $ac_func (); | ||
6202 | char (*f) (); | ||
6203 | |||
6204 | #ifdef F77_DUMMY_MAIN | ||
6205 | # ifdef __cplusplus | ||
6206 | extern "C" | ||
6207 | # endif | ||
6208 | int F77_DUMMY_MAIN() { return 1; } | ||
6209 | #endif | ||
6210 | int | ||
6211 | main () | ||
6212 | { | ||
6213 | /* The GNU C library defines this for functions which it implements | ||
6214 | to always fail with ENOSYS. Some functions are actually named | ||
6215 | something starting with __ and the normal name is an alias. */ | ||
6216 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6217 | choke me | ||
6218 | #else | ||
6219 | f = $ac_func; | ||
6220 | #endif | ||
6221 | |||
6222 | ; | ||
6223 | return 0; | ||
6224 | } | ||
6225 | _ACEOF | ||
6226 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6228 | (eval $ac_link) 2>&5 | ||
6229 | ac_status=$? | ||
6230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6231 | (exit $ac_status); } && | ||
6232 | { ac_try='test -s conftest$ac_exeext' | ||
6233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6234 | (eval $ac_try) 2>&5 | ||
6235 | ac_status=$? | ||
6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6237 | (exit $ac_status); }; }; then | ||
6238 | eval "$as_ac_var=yes" | ||
6239 | else | ||
6240 | echo "$as_me: failed program was:" >&5 | ||
6241 | cat conftest.$ac_ext >&5 | ||
6242 | eval "$as_ac_var=no" | ||
6243 | fi | ||
6244 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6245 | fi | ||
6246 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6247 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6248 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6249 | cat >>confdefs.h <<_ACEOF | ||
6250 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6251 | _ACEOF | ||
6252 | |||
6253 | fi | ||
6254 | done | ||
6255 | |||
6256 | |||
6257 | |||
6258 | for ac_func in strftime | ||
6259 | do | ||
6260 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6261 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6262 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6263 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6265 | else | ||
6266 | cat >conftest.$ac_ext <<_ACEOF | ||
6267 | #line $LINENO "configure" | ||
6268 | #include "confdefs.h" | ||
6269 | /* System header to define __stub macros and hopefully few prototypes, | ||
6270 | which can conflict with char $ac_func (); below. */ | ||
6271 | #include <assert.h> | ||
6272 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6273 | #ifdef __cplusplus | ||
6274 | extern "C" | ||
6275 | #endif | ||
6276 | /* We use char because int might match the return type of a gcc2 | ||
6277 | builtin and then its argument prototype would still apply. */ | ||
6278 | char $ac_func (); | ||
6279 | char (*f) (); | ||
6280 | |||
6281 | #ifdef F77_DUMMY_MAIN | ||
6282 | # ifdef __cplusplus | ||
6283 | extern "C" | ||
6284 | # endif | ||
6285 | int F77_DUMMY_MAIN() { return 1; } | ||
6286 | #endif | ||
6287 | int | ||
6288 | main () | ||
6289 | { | ||
6290 | /* The GNU C library defines this for functions which it implements | ||
6291 | to always fail with ENOSYS. Some functions are actually named | ||
6292 | something starting with __ and the normal name is an alias. */ | ||
6293 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6294 | choke me | ||
6295 | #else | ||
6296 | f = $ac_func; | ||
6297 | #endif | ||
6298 | |||
6299 | ; | ||
6300 | return 0; | ||
6301 | } | ||
6302 | _ACEOF | ||
6303 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6305 | (eval $ac_link) 2>&5 | ||
6306 | ac_status=$? | ||
6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6308 | (exit $ac_status); } && | ||
6309 | { ac_try='test -s conftest$ac_exeext' | ||
6310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6311 | (eval $ac_try) 2>&5 | ||
6312 | ac_status=$? | ||
6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6314 | (exit $ac_status); }; }; then | ||
6315 | eval "$as_ac_var=yes" | ||
6316 | else | ||
6317 | echo "$as_me: failed program was:" >&5 | ||
6318 | cat conftest.$ac_ext >&5 | ||
6319 | eval "$as_ac_var=no" | ||
6320 | fi | ||
6321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6322 | fi | ||
6323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6325 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6326 | cat >>confdefs.h <<_ACEOF | ||
6327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6328 | _ACEOF | ||
6329 | |||
6330 | else | ||
6331 | # strftime is in -lintl on SCO UNIX. | ||
6332 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
6333 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
6334 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
6335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6336 | else | ||
6337 | ac_check_lib_save_LIBS=$LIBS | ||
6338 | LIBS="-lintl $LIBS" | ||
6339 | cat >conftest.$ac_ext <<_ACEOF | ||
6340 | #line $LINENO "configure" | ||
6341 | #include "confdefs.h" | ||
6342 | |||
6343 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6344 | #ifdef __cplusplus | ||
6345 | extern "C" | ||
6346 | #endif | ||
6347 | /* We use char because int might match the return type of a gcc2 | ||
6348 | builtin and then its argument prototype would still apply. */ | ||
6349 | char strftime (); | ||
6350 | #ifdef F77_DUMMY_MAIN | ||
6351 | # ifdef __cplusplus | ||
6352 | extern "C" | ||
6353 | # endif | ||
6354 | int F77_DUMMY_MAIN() { return 1; } | ||
6355 | #endif | ||
6356 | int | ||
6357 | main () | ||
6358 | { | ||
6359 | strftime (); | ||
6360 | ; | ||
6361 | return 0; | ||
6362 | } | ||
6363 | _ACEOF | ||
6364 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6366 | (eval $ac_link) 2>&5 | ||
6367 | ac_status=$? | ||
6368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6369 | (exit $ac_status); } && | ||
6370 | { ac_try='test -s conftest$ac_exeext' | ||
6371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6372 | (eval $ac_try) 2>&5 | ||
6373 | ac_status=$? | ||
6374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6375 | (exit $ac_status); }; }; then | ||
6376 | ac_cv_lib_intl_strftime=yes | ||
6377 | else | ||
6378 | echo "$as_me: failed program was:" >&5 | ||
6379 | cat conftest.$ac_ext >&5 | ||
6380 | ac_cv_lib_intl_strftime=no | ||
6381 | fi | ||
6382 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6383 | LIBS=$ac_check_lib_save_LIBS | ||
6384 | fi | ||
6385 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
6386 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
6387 | if test $ac_cv_lib_intl_strftime = yes; then | ||
6388 | cat >>confdefs.h <<\_ACEOF | ||
6389 | #define HAVE_STRFTIME 1 | ||
6390 | _ACEOF | ||
6391 | |||
6392 | LIBS="-lintl $LIBS" | ||
6393 | fi | ||
6394 | |||
6395 | fi | ||
6396 | done | ||
6397 | |||
6398 | |||
6399 | # Check for ALTDIRFUNC glob() extension | ||
6400 | echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
6401 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
6402 | cat >conftest.$ac_ext <<_ACEOF | ||
6403 | #line $LINENO "configure" | ||
6404 | #include "confdefs.h" | ||
6405 | |||
6406 | #include <glob.h> | ||
6407 | #ifdef GLOB_ALTDIRFUNC | ||
6408 | FOUNDIT | ||
6409 | #endif | ||
6410 | |||
6411 | _ACEOF | ||
6412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6413 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6414 | |||
6415 | cat >>confdefs.h <<\_ACEOF | ||
6416 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
6417 | _ACEOF | ||
6418 | |||
6419 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6420 | echo "${ECHO_T}yes" >&6 | ||
6421 | |||
6422 | else | ||
6423 | |||
6424 | echo "$as_me:$LINENO: result: no" >&5 | ||
6425 | echo "${ECHO_T}no" >&6 | ||
6426 | |||
6427 | |||
6428 | fi | ||
6429 | rm -f conftest* | ||
6430 | |||
6431 | |||
6432 | # Check for g.gl_matchc glob() extension | ||
6433 | echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
6434 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
6435 | cat >conftest.$ac_ext <<_ACEOF | ||
6436 | #line $LINENO "configure" | ||
6437 | #include "confdefs.h" | ||
6438 | |||
6439 | #include <glob.h> | ||
6440 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
6441 | |||
6442 | _ACEOF | ||
6443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6444 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6445 | |||
6446 | cat >>confdefs.h <<\_ACEOF | ||
6447 | #define GLOB_HAS_GL_MATCHC 1 | ||
6448 | _ACEOF | ||
6449 | |||
6450 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6451 | echo "${ECHO_T}yes" >&6 | ||
6452 | |||
6453 | else | ||
6454 | |||
6455 | echo "$as_me:$LINENO: result: no" >&5 | ||
6456 | echo "${ECHO_T}no" >&6 | ||
6457 | |||
6458 | |||
6459 | fi | ||
6460 | rm -f conftest* | ||
6461 | |||
6462 | |||
6463 | echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
6464 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
6465 | if test "$cross_compiling" = yes; then | ||
6466 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
6467 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6468 | { (exit 1); exit 1; }; } | ||
6469 | else | ||
6470 | cat >conftest.$ac_ext <<_ACEOF | ||
6471 | #line $LINENO "configure" | ||
6472 | #include "confdefs.h" | ||
6473 | |||
6474 | #include <sys/types.h> | ||
6475 | #include <dirent.h> | ||
6476 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
6477 | |||
6478 | _ACEOF | ||
6479 | rm -f conftest$ac_exeext | ||
6480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6481 | (eval $ac_link) 2>&5 | ||
6482 | ac_status=$? | ||
6483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6484 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6486 | (eval $ac_try) 2>&5 | ||
6487 | ac_status=$? | ||
6488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6489 | (exit $ac_status); }; }; then | ||
6490 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6491 | echo "${ECHO_T}yes" >&6 | ||
6492 | else | ||
6493 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6494 | echo "$as_me: failed program was:" >&5 | ||
6495 | cat conftest.$ac_ext >&5 | ||
6496 | ( exit $ac_status ) | ||
6497 | |||
6498 | echo "$as_me:$LINENO: result: no" >&5 | ||
6499 | echo "${ECHO_T}no" >&6 | ||
6500 | cat >>confdefs.h <<\_ACEOF | ||
6501 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
6502 | _ACEOF | ||
6503 | |||
6504 | |||
6505 | |||
6506 | fi | ||
6507 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6508 | fi | ||
6509 | |||
6510 | # Check whether user wants S/Key support | ||
6511 | SKEY_MSG="no" | ||
6512 | |||
6513 | # Check whether --with-skey or --without-skey was given. | ||
6514 | if test "${with_skey+set}" = set; then | ||
6515 | withval="$with_skey" | ||
6516 | |||
6517 | if test "x$withval" != "xno" ; then | ||
6518 | |||
6519 | if test "x$withval" != "xyes" ; then | ||
6520 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
6521 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
6522 | fi | ||
6523 | |||
6524 | cat >>confdefs.h <<\_ACEOF | ||
6525 | #define SKEY 1 | ||
6526 | _ACEOF | ||
6527 | |||
6528 | LIBS="-lskey $LIBS" | ||
6529 | SKEY_MSG="yes" | ||
6530 | |||
6531 | echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
6532 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
6533 | if test "$cross_compiling" = yes; then | ||
6534 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
6535 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6536 | { (exit 1); exit 1; }; } | ||
6537 | else | ||
6538 | cat >conftest.$ac_ext <<_ACEOF | ||
6539 | #line $LINENO "configure" | ||
6540 | #include "confdefs.h" | ||
6541 | |||
6542 | #include <stdio.h> | ||
6543 | #include <skey.h> | ||
6544 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
6545 | |||
6546 | _ACEOF | ||
6547 | rm -f conftest$ac_exeext | ||
6548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6549 | (eval $ac_link) 2>&5 | ||
6550 | ac_status=$? | ||
6551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6552 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6554 | (eval $ac_try) 2>&5 | ||
6555 | ac_status=$? | ||
6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6557 | (exit $ac_status); }; }; then | ||
6558 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6559 | echo "${ECHO_T}yes" >&6 | ||
6560 | else | ||
6561 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6562 | echo "$as_me: failed program was:" >&5 | ||
6563 | cat conftest.$ac_ext >&5 | ||
6564 | ( exit $ac_status ) | ||
6565 | |||
6566 | echo "$as_me:$LINENO: result: no" >&5 | ||
6567 | echo "${ECHO_T}no" >&6 | ||
6568 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
6569 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
6570 | { (exit 1); exit 1; }; } | ||
6571 | |||
6572 | fi | ||
6573 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6574 | fi | ||
6575 | fi | ||
6576 | |||
6577 | |||
6578 | fi; | ||
6579 | |||
6580 | # Check whether user wants TCP wrappers support | ||
6581 | TCPW_MSG="no" | ||
6582 | |||
6583 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
6584 | if test "${with_tcp_wrappers+set}" = set; then | ||
6585 | withval="$with_tcp_wrappers" | ||
6586 | |||
6587 | if test "x$withval" != "xno" ; then | ||
6588 | saved_LIBS="$LIBS" | ||
6589 | saved_LDFLAGS="$LDFLAGS" | ||
6590 | saved_CPPFLAGS="$CPPFLAGS" | ||
6591 | if test -n "${withval}" -a "${withval}" != "yes"; then | ||
6592 | if test -d "${withval}/lib"; then | ||
6593 | if test -n "${need_dash_r}"; then | ||
6594 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
6595 | else | ||
6596 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
6597 | fi | ||
6598 | else | ||
6599 | if test -n "${need_dash_r}"; then | ||
6600 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
6601 | else | ||
6602 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
6603 | fi | ||
6604 | fi | ||
6605 | if test -d "${withval}/include"; then | ||
6606 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
6607 | else | ||
6608 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
6609 | fi | ||
6610 | fi | ||
6611 | LIBWRAP="-lwrap" | ||
6612 | LIBS="$LIBWRAP $LIBS" | ||
6613 | echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
6614 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
6615 | cat >conftest.$ac_ext <<_ACEOF | ||
6616 | #line $LINENO "configure" | ||
6617 | #include "confdefs.h" | ||
6618 | |||
6619 | #include <tcpd.h> | ||
6620 | int deny_severity = 0, allow_severity = 0; | ||
6621 | |||
6622 | #ifdef F77_DUMMY_MAIN | ||
6623 | # ifdef __cplusplus | ||
6624 | extern "C" | ||
6625 | # endif | ||
6626 | int F77_DUMMY_MAIN() { return 1; } | ||
6627 | #endif | ||
6628 | int | ||
6629 | main () | ||
6630 | { | ||
6631 | hosts_access(0); | ||
6632 | ; | ||
6633 | return 0; | ||
6634 | } | ||
6635 | _ACEOF | ||
6636 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6638 | (eval $ac_link) 2>&5 | ||
6639 | ac_status=$? | ||
6640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6641 | (exit $ac_status); } && | ||
6642 | { ac_try='test -s conftest$ac_exeext' | ||
6643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6644 | (eval $ac_try) 2>&5 | ||
6645 | ac_status=$? | ||
6646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6647 | (exit $ac_status); }; }; then | ||
6648 | |||
6649 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6650 | echo "${ECHO_T}yes" >&6 | ||
6651 | cat >>confdefs.h <<\_ACEOF | ||
6652 | #define LIBWRAP 1 | ||
6653 | _ACEOF | ||
6654 | |||
6655 | |||
6656 | TCPW_MSG="yes" | ||
6657 | |||
6658 | else | ||
6659 | echo "$as_me: failed program was:" >&5 | ||
6660 | cat conftest.$ac_ext >&5 | ||
6661 | |||
6662 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
6663 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
6664 | { (exit 1); exit 1; }; } | ||
6665 | |||
6666 | |||
6667 | fi | ||
6668 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6669 | LIBS="$saved_LIBS" | ||
6670 | fi | ||
6671 | |||
6672 | |||
6673 | fi; | ||
6674 | |||
6675 | |||
6676 | |||
6677 | |||
6678 | |||
6679 | |||
6680 | |||
6681 | |||
6682 | |||
6683 | |||
6684 | |||
6685 | |||
6686 | |||
6687 | |||
6688 | |||
6689 | |||
6690 | |||
6691 | |||
6692 | |||
6693 | |||
6694 | |||
6695 | |||
6696 | |||
6697 | |||
6698 | |||
6699 | |||
6700 | |||
6701 | |||
6702 | |||
6703 | |||
6704 | |||
6705 | |||
6706 | |||
6707 | |||
6708 | |||
6709 | |||
6710 | |||
6711 | |||
6712 | |||
6713 | |||
6714 | |||
6715 | |||
6716 | |||
6717 | |||
6718 | |||
6719 | |||
6720 | |||
6721 | |||
6722 | |||
6723 | |||
6724 | |||
6725 | |||
6726 | |||
6727 | |||
6728 | |||
6729 | |||
6730 | |||
6731 | |||
6732 | |||
6733 | |||
6734 | |||
6735 | |||
6736 | |||
6737 | |||
6738 | |||
6739 | |||
6740 | |||
6741 | |||
6742 | |||
6743 | for ac_func in arc4random b64_ntop bcopy bindresvport_sa \ | ||
6744 | clock fchmod fchown freeaddrinfo futimes gai_strerror \ | ||
6745 | getaddrinfo getcwd getgrouplist getnameinfo getopt getpeereid\ | ||
6746 | getrlimit getrusage getttyent glob inet_aton inet_ntoa \ | ||
6747 | inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
6748 | mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \ | ||
6749 | realpath recvmsg rresvport_af sendmsg setdtablesize setegid \ | ||
6750 | setenv seteuid setgroups setlogin setproctitle setresgid setreuid \ | ||
6751 | setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \ | ||
6752 | socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \ | ||
6753 | truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty | ||
6754 | do | ||
6755 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6756 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6757 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6758 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6760 | else | ||
6761 | cat >conftest.$ac_ext <<_ACEOF | ||
6762 | #line $LINENO "configure" | ||
6763 | #include "confdefs.h" | ||
6764 | /* System header to define __stub macros and hopefully few prototypes, | ||
6765 | which can conflict with char $ac_func (); below. */ | ||
6766 | #include <assert.h> | ||
6767 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6768 | #ifdef __cplusplus | ||
6769 | extern "C" | ||
6770 | #endif | ||
6771 | /* We use char because int might match the return type of a gcc2 | ||
6772 | builtin and then its argument prototype would still apply. */ | ||
6773 | char $ac_func (); | ||
6774 | char (*f) (); | ||
6775 | |||
6776 | #ifdef F77_DUMMY_MAIN | ||
6777 | # ifdef __cplusplus | ||
6778 | extern "C" | ||
6779 | # endif | ||
6780 | int F77_DUMMY_MAIN() { return 1; } | ||
6781 | #endif | ||
6782 | int | ||
6783 | main () | ||
6784 | { | ||
6785 | /* The GNU C library defines this for functions which it implements | ||
6786 | to always fail with ENOSYS. Some functions are actually named | ||
6787 | something starting with __ and the normal name is an alias. */ | ||
6788 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6789 | choke me | ||
6790 | #else | ||
6791 | f = $ac_func; | ||
6792 | #endif | ||
6793 | |||
6794 | ; | ||
6795 | return 0; | ||
6796 | } | ||
6797 | _ACEOF | ||
6798 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6800 | (eval $ac_link) 2>&5 | ||
6801 | ac_status=$? | ||
6802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6803 | (exit $ac_status); } && | ||
6804 | { ac_try='test -s conftest$ac_exeext' | ||
6805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6806 | (eval $ac_try) 2>&5 | ||
6807 | ac_status=$? | ||
6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6809 | (exit $ac_status); }; }; then | ||
6810 | eval "$as_ac_var=yes" | ||
6811 | else | ||
6812 | echo "$as_me: failed program was:" >&5 | ||
6813 | cat conftest.$ac_ext >&5 | ||
6814 | eval "$as_ac_var=no" | ||
6815 | fi | ||
6816 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6817 | fi | ||
6818 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6819 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6820 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6821 | cat >>confdefs.h <<_ACEOF | ||
6822 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6823 | _ACEOF | ||
6824 | |||
6825 | fi | ||
6826 | done | ||
6827 | |||
6828 | |||
6829 | |||
6830 | for ac_func in dirname | ||
6831 | do | ||
6832 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6833 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6834 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6835 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6837 | else | ||
6838 | cat >conftest.$ac_ext <<_ACEOF | ||
6839 | #line $LINENO "configure" | ||
6840 | #include "confdefs.h" | ||
6841 | /* System header to define __stub macros and hopefully few prototypes, | ||
6842 | which can conflict with char $ac_func (); below. */ | ||
6843 | #include <assert.h> | ||
6844 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6845 | #ifdef __cplusplus | ||
6846 | extern "C" | ||
6847 | #endif | ||
6848 | /* We use char because int might match the return type of a gcc2 | ||
6849 | builtin and then its argument prototype would still apply. */ | ||
6850 | char $ac_func (); | ||
6851 | char (*f) (); | ||
6852 | |||
6853 | #ifdef F77_DUMMY_MAIN | ||
6854 | # ifdef __cplusplus | ||
6855 | extern "C" | ||
6856 | # endif | ||
6857 | int F77_DUMMY_MAIN() { return 1; } | ||
6858 | #endif | ||
6859 | int | ||
6860 | main () | ||
6861 | { | ||
6862 | /* The GNU C library defines this for functions which it implements | ||
6863 | to always fail with ENOSYS. Some functions are actually named | ||
6864 | something starting with __ and the normal name is an alias. */ | ||
6865 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6866 | choke me | ||
6867 | #else | ||
6868 | f = $ac_func; | ||
6869 | #endif | ||
6870 | |||
6871 | ; | ||
6872 | return 0; | ||
6873 | } | ||
6874 | _ACEOF | ||
6875 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6877 | (eval $ac_link) 2>&5 | ||
6878 | ac_status=$? | ||
6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6880 | (exit $ac_status); } && | ||
6881 | { ac_try='test -s conftest$ac_exeext' | ||
6882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6883 | (eval $ac_try) 2>&5 | ||
6884 | ac_status=$? | ||
6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6886 | (exit $ac_status); }; }; then | ||
6887 | eval "$as_ac_var=yes" | ||
6888 | else | ||
6889 | echo "$as_me: failed program was:" >&5 | ||
6890 | cat conftest.$ac_ext >&5 | ||
6891 | eval "$as_ac_var=no" | ||
6892 | fi | ||
6893 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6894 | fi | ||
6895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6896 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6897 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6898 | cat >>confdefs.h <<_ACEOF | ||
6899 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6900 | _ACEOF | ||
6901 | |||
6902 | for ac_header in libgen.h | ||
6903 | do | ||
6904 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6906 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6908 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6910 | fi | ||
6911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6913 | else | ||
6914 | # Is the header compilable? | ||
6915 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
6916 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
6917 | cat >conftest.$ac_ext <<_ACEOF | ||
6918 | #line $LINENO "configure" | ||
6919 | #include "confdefs.h" | ||
6920 | $ac_includes_default | ||
6921 | #include <$ac_header> | ||
6922 | _ACEOF | ||
6923 | rm -f conftest.$ac_objext | ||
6924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6925 | (eval $ac_compile) 2>&5 | ||
6926 | ac_status=$? | ||
6927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6928 | (exit $ac_status); } && | ||
6929 | { ac_try='test -s conftest.$ac_objext' | ||
6930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6931 | (eval $ac_try) 2>&5 | ||
6932 | ac_status=$? | ||
6933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6934 | (exit $ac_status); }; }; then | ||
6935 | ac_header_compiler=yes | ||
6936 | else | ||
6937 | echo "$as_me: failed program was:" >&5 | ||
6938 | cat conftest.$ac_ext >&5 | ||
6939 | ac_header_compiler=no | ||
6940 | fi | ||
6941 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
6942 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6943 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
6944 | |||
6945 | # Is the header present? | ||
6946 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
6947 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
6948 | cat >conftest.$ac_ext <<_ACEOF | ||
6949 | #line $LINENO "configure" | ||
6950 | #include "confdefs.h" | ||
6951 | #include <$ac_header> | ||
6952 | _ACEOF | ||
6953 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6954 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6955 | ac_status=$? | ||
6956 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
6957 | rm -f conftest.er1 | ||
6958 | cat conftest.err >&5 | ||
6959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6960 | (exit $ac_status); } >/dev/null; then | ||
6961 | if test -s conftest.err; then | ||
6962 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6963 | else | ||
6964 | ac_cpp_err= | ||
6965 | fi | ||
6966 | else | ||
6967 | ac_cpp_err=yes | ||
6968 | fi | ||
6969 | if test -z "$ac_cpp_err"; then | ||
6970 | ac_header_preproc=yes | ||
6971 | else | ||
6972 | echo "$as_me: failed program was:" >&5 | ||
6973 | cat conftest.$ac_ext >&5 | ||
6974 | ac_header_preproc=no | ||
6975 | fi | ||
6976 | rm -f conftest.err conftest.$ac_ext | ||
6977 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6978 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
6979 | |||
6980 | # So? What about this header? | ||
6981 | case $ac_header_compiler:$ac_header_preproc in | ||
6982 | yes:no ) | ||
6983 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6984 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6986 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6987 | no:yes ) | ||
6988 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6989 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6990 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6991 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6992 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6993 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6994 | esac | ||
6995 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6996 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6997 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6999 | else | ||
7000 | eval "$as_ac_Header=$ac_header_preproc" | ||
7001 | fi | ||
7002 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7003 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7004 | |||
7005 | fi | ||
7006 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7007 | cat >>confdefs.h <<_ACEOF | ||
7008 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7009 | _ACEOF | ||
7010 | |||
7011 | fi | ||
7012 | |||
7013 | done | ||
7014 | |||
7015 | else | ||
7016 | |||
7017 | echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
7018 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
7019 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
7020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7021 | else | ||
7022 | ac_check_lib_save_LIBS=$LIBS | ||
7023 | LIBS="-lgen $LIBS" | ||
7024 | cat >conftest.$ac_ext <<_ACEOF | ||
7025 | #line $LINENO "configure" | ||
7026 | #include "confdefs.h" | ||
7027 | |||
7028 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7029 | #ifdef __cplusplus | ||
7030 | extern "C" | ||
7031 | #endif | ||
7032 | /* We use char because int might match the return type of a gcc2 | ||
7033 | builtin and then its argument prototype would still apply. */ | ||
7034 | char dirname (); | ||
7035 | #ifdef F77_DUMMY_MAIN | ||
7036 | # ifdef __cplusplus | ||
7037 | extern "C" | ||
7038 | # endif | ||
7039 | int F77_DUMMY_MAIN() { return 1; } | ||
7040 | #endif | ||
7041 | int | ||
7042 | main () | ||
7043 | { | ||
7044 | dirname (); | ||
7045 | ; | ||
7046 | return 0; | ||
7047 | } | ||
7048 | _ACEOF | ||
7049 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7051 | (eval $ac_link) 2>&5 | ||
7052 | ac_status=$? | ||
7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7054 | (exit $ac_status); } && | ||
7055 | { ac_try='test -s conftest$ac_exeext' | ||
7056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7057 | (eval $ac_try) 2>&5 | ||
7058 | ac_status=$? | ||
7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7060 | (exit $ac_status); }; }; then | ||
7061 | ac_cv_lib_gen_dirname=yes | ||
7062 | else | ||
7063 | echo "$as_me: failed program was:" >&5 | ||
7064 | cat conftest.$ac_ext >&5 | ||
7065 | ac_cv_lib_gen_dirname=no | ||
7066 | fi | ||
7067 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7068 | LIBS=$ac_check_lib_save_LIBS | ||
7069 | fi | ||
7070 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
7071 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
7072 | if test $ac_cv_lib_gen_dirname = yes; then | ||
7073 | |||
7074 | echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
7075 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
7076 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
7077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7078 | else | ||
7079 | |||
7080 | save_LIBS="$LIBS" | ||
7081 | LIBS="$LIBS -lgen" | ||
7082 | if test "$cross_compiling" = yes; then | ||
7083 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
7084 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7085 | { (exit 1); exit 1; }; } | ||
7086 | else | ||
7087 | cat >conftest.$ac_ext <<_ACEOF | ||
7088 | #line $LINENO "configure" | ||
7089 | #include "confdefs.h" | ||
7090 | |||
7091 | #include <libgen.h> | ||
7092 | #include <string.h> | ||
7093 | |||
7094 | int main(int argc, char **argv) { | ||
7095 | char *s, buf[32]; | ||
7096 | |||
7097 | strncpy(buf,"/etc", 32); | ||
7098 | s = dirname(buf); | ||
7099 | if (!s || strncmp(s, "/", 32) != 0) { | ||
7100 | exit(1); | ||
7101 | } else { | ||
7102 | exit(0); | ||
7103 | } | ||
7104 | } | ||
7105 | |||
7106 | _ACEOF | ||
7107 | rm -f conftest$ac_exeext | ||
7108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7109 | (eval $ac_link) 2>&5 | ||
7110 | ac_status=$? | ||
7111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7114 | (eval $ac_try) 2>&5 | ||
7115 | ac_status=$? | ||
7116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7117 | (exit $ac_status); }; }; then | ||
7118 | ac_cv_have_broken_dirname="no" | ||
7119 | else | ||
7120 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7121 | echo "$as_me: failed program was:" >&5 | ||
7122 | cat conftest.$ac_ext >&5 | ||
7123 | ( exit $ac_status ) | ||
7124 | ac_cv_have_broken_dirname="yes" | ||
7125 | |||
7126 | fi | ||
7127 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7128 | fi | ||
7129 | LIBS="$save_LIBS" | ||
7130 | |||
7131 | fi | ||
7132 | echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
7133 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
7134 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
7135 | LIBS="$LIBS -lgen" | ||
7136 | cat >>confdefs.h <<\_ACEOF | ||
7137 | #define HAVE_DIRNAME 1 | ||
7138 | _ACEOF | ||
7139 | |||
7140 | |||
7141 | for ac_header in libgen.h | ||
7142 | do | ||
7143 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7145 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7146 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7147 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7149 | fi | ||
7150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7151 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7152 | else | ||
7153 | # Is the header compilable? | ||
7154 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7155 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7156 | cat >conftest.$ac_ext <<_ACEOF | ||
7157 | #line $LINENO "configure" | ||
7158 | #include "confdefs.h" | ||
7159 | $ac_includes_default | ||
7160 | #include <$ac_header> | ||
7161 | _ACEOF | ||
7162 | rm -f conftest.$ac_objext | ||
7163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7164 | (eval $ac_compile) 2>&5 | ||
7165 | ac_status=$? | ||
7166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7167 | (exit $ac_status); } && | ||
7168 | { ac_try='test -s conftest.$ac_objext' | ||
7169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7170 | (eval $ac_try) 2>&5 | ||
7171 | ac_status=$? | ||
7172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7173 | (exit $ac_status); }; }; then | ||
7174 | ac_header_compiler=yes | ||
7175 | else | ||
7176 | echo "$as_me: failed program was:" >&5 | ||
7177 | cat conftest.$ac_ext >&5 | ||
7178 | ac_header_compiler=no | ||
7179 | fi | ||
7180 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7181 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7182 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7183 | |||
7184 | # Is the header present? | ||
7185 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7186 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7187 | cat >conftest.$ac_ext <<_ACEOF | ||
7188 | #line $LINENO "configure" | ||
7189 | #include "confdefs.h" | ||
7190 | #include <$ac_header> | ||
7191 | _ACEOF | ||
7192 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7194 | ac_status=$? | ||
7195 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
7196 | rm -f conftest.er1 | ||
7197 | cat conftest.err >&5 | ||
7198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7199 | (exit $ac_status); } >/dev/null; then | ||
7200 | if test -s conftest.err; then | ||
7201 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7202 | else | ||
7203 | ac_cpp_err= | ||
7204 | fi | ||
7205 | else | ||
7206 | ac_cpp_err=yes | ||
7207 | fi | ||
7208 | if test -z "$ac_cpp_err"; then | ||
7209 | ac_header_preproc=yes | ||
7210 | else | ||
7211 | echo "$as_me: failed program was:" >&5 | ||
7212 | cat conftest.$ac_ext >&5 | ||
7213 | ac_header_preproc=no | ||
7214 | fi | ||
7215 | rm -f conftest.err conftest.$ac_ext | ||
7216 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7217 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7218 | |||
7219 | # So? What about this header? | ||
7220 | case $ac_header_compiler:$ac_header_preproc in | ||
7221 | yes:no ) | ||
7222 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7223 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7224 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7225 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
7226 | no:yes ) | ||
7227 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7228 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7229 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7230 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7231 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7232 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
7233 | esac | ||
7234 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7238 | else | ||
7239 | eval "$as_ac_Header=$ac_header_preproc" | ||
7240 | fi | ||
7241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7242 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7243 | |||
7244 | fi | ||
7245 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7246 | cat >>confdefs.h <<_ACEOF | ||
7247 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7248 | _ACEOF | ||
7249 | |||
7250 | fi | ||
7251 | |||
7252 | done | ||
7253 | |||
7254 | fi | ||
7255 | |||
7256 | fi | ||
7257 | |||
7258 | |||
7259 | fi | ||
7260 | done | ||
7261 | |||
7262 | |||
7263 | |||
7264 | |||
7265 | for ac_func in gettimeofday time | ||
7266 | do | ||
7267 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7268 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7269 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7270 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7272 | else | ||
7273 | cat >conftest.$ac_ext <<_ACEOF | ||
7274 | #line $LINENO "configure" | ||
7275 | #include "confdefs.h" | ||
7276 | /* System header to define __stub macros and hopefully few prototypes, | ||
7277 | which can conflict with char $ac_func (); below. */ | ||
7278 | #include <assert.h> | ||
7279 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7280 | #ifdef __cplusplus | ||
7281 | extern "C" | ||
7282 | #endif | ||
7283 | /* We use char because int might match the return type of a gcc2 | ||
7284 | builtin and then its argument prototype would still apply. */ | ||
7285 | char $ac_func (); | ||
7286 | char (*f) (); | ||
7287 | |||
7288 | #ifdef F77_DUMMY_MAIN | ||
7289 | # ifdef __cplusplus | ||
7290 | extern "C" | ||
7291 | # endif | ||
7292 | int F77_DUMMY_MAIN() { return 1; } | ||
7293 | #endif | ||
7294 | int | ||
7295 | main () | ||
7296 | { | ||
7297 | /* The GNU C library defines this for functions which it implements | ||
7298 | to always fail with ENOSYS. Some functions are actually named | ||
7299 | something starting with __ and the normal name is an alias. */ | ||
7300 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7301 | choke me | ||
7302 | #else | ||
7303 | f = $ac_func; | ||
7304 | #endif | ||
7305 | |||
7306 | ; | ||
7307 | return 0; | ||
7308 | } | ||
7309 | _ACEOF | ||
7310 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7312 | (eval $ac_link) 2>&5 | ||
7313 | ac_status=$? | ||
7314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7315 | (exit $ac_status); } && | ||
7316 | { ac_try='test -s conftest$ac_exeext' | ||
7317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7318 | (eval $ac_try) 2>&5 | ||
7319 | ac_status=$? | ||
7320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7321 | (exit $ac_status); }; }; then | ||
7322 | eval "$as_ac_var=yes" | ||
7323 | else | ||
7324 | echo "$as_me: failed program was:" >&5 | ||
7325 | cat conftest.$ac_ext >&5 | ||
7326 | eval "$as_ac_var=no" | ||
7327 | fi | ||
7328 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7329 | fi | ||
7330 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7331 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7332 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7333 | cat >>confdefs.h <<_ACEOF | ||
7334 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7335 | _ACEOF | ||
7336 | |||
7337 | fi | ||
7338 | done | ||
7339 | |||
7340 | |||
7341 | |||
7342 | |||
7343 | |||
7344 | |||
7345 | |||
7346 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
7347 | do | ||
7348 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7349 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7350 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7351 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7353 | else | ||
7354 | cat >conftest.$ac_ext <<_ACEOF | ||
7355 | #line $LINENO "configure" | ||
7356 | #include "confdefs.h" | ||
7357 | /* System header to define __stub macros and hopefully few prototypes, | ||
7358 | which can conflict with char $ac_func (); below. */ | ||
7359 | #include <assert.h> | ||
7360 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7361 | #ifdef __cplusplus | ||
7362 | extern "C" | ||
7363 | #endif | ||
7364 | /* We use char because int might match the return type of a gcc2 | ||
7365 | builtin and then its argument prototype would still apply. */ | ||
7366 | char $ac_func (); | ||
7367 | char (*f) (); | ||
7368 | |||
7369 | #ifdef F77_DUMMY_MAIN | ||
7370 | # ifdef __cplusplus | ||
7371 | extern "C" | ||
7372 | # endif | ||
7373 | int F77_DUMMY_MAIN() { return 1; } | ||
7374 | #endif | ||
7375 | int | ||
7376 | main () | ||
7377 | { | ||
7378 | /* The GNU C library defines this for functions which it implements | ||
7379 | to always fail with ENOSYS. Some functions are actually named | ||
7380 | something starting with __ and the normal name is an alias. */ | ||
7381 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7382 | choke me | ||
7383 | #else | ||
7384 | f = $ac_func; | ||
7385 | #endif | ||
7386 | |||
7387 | ; | ||
7388 | return 0; | ||
7389 | } | ||
7390 | _ACEOF | ||
7391 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7393 | (eval $ac_link) 2>&5 | ||
7394 | ac_status=$? | ||
7395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7396 | (exit $ac_status); } && | ||
7397 | { ac_try='test -s conftest$ac_exeext' | ||
7398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7399 | (eval $ac_try) 2>&5 | ||
7400 | ac_status=$? | ||
7401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7402 | (exit $ac_status); }; }; then | ||
7403 | eval "$as_ac_var=yes" | ||
7404 | else | ||
7405 | echo "$as_me: failed program was:" >&5 | ||
7406 | cat conftest.$ac_ext >&5 | ||
7407 | eval "$as_ac_var=no" | ||
7408 | fi | ||
7409 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7410 | fi | ||
7411 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7412 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7413 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7414 | cat >>confdefs.h <<_ACEOF | ||
7415 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7416 | _ACEOF | ||
7417 | |||
7418 | fi | ||
7419 | done | ||
7420 | |||
7421 | |||
7422 | for ac_func in utmpname | ||
7423 | do | ||
7424 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7425 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7426 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7427 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7429 | else | ||
7430 | cat >conftest.$ac_ext <<_ACEOF | ||
7431 | #line $LINENO "configure" | ||
7432 | #include "confdefs.h" | ||
7433 | /* System header to define __stub macros and hopefully few prototypes, | ||
7434 | which can conflict with char $ac_func (); below. */ | ||
7435 | #include <assert.h> | ||
7436 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7437 | #ifdef __cplusplus | ||
7438 | extern "C" | ||
7439 | #endif | ||
7440 | /* We use char because int might match the return type of a gcc2 | ||
7441 | builtin and then its argument prototype would still apply. */ | ||
7442 | char $ac_func (); | ||
7443 | char (*f) (); | ||
7444 | |||
7445 | #ifdef F77_DUMMY_MAIN | ||
7446 | # ifdef __cplusplus | ||
7447 | extern "C" | ||
7448 | # endif | ||
7449 | int F77_DUMMY_MAIN() { return 1; } | ||
7450 | #endif | ||
7451 | int | ||
7452 | main () | ||
7453 | { | ||
7454 | /* The GNU C library defines this for functions which it implements | ||
7455 | to always fail with ENOSYS. Some functions are actually named | ||
7456 | something starting with __ and the normal name is an alias. */ | ||
7457 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7458 | choke me | ||
7459 | #else | ||
7460 | f = $ac_func; | ||
7461 | #endif | ||
7462 | |||
7463 | ; | ||
7464 | return 0; | ||
7465 | } | ||
7466 | _ACEOF | ||
7467 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7469 | (eval $ac_link) 2>&5 | ||
7470 | ac_status=$? | ||
7471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7472 | (exit $ac_status); } && | ||
7473 | { ac_try='test -s conftest$ac_exeext' | ||
7474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7475 | (eval $ac_try) 2>&5 | ||
7476 | ac_status=$? | ||
7477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7478 | (exit $ac_status); }; }; then | ||
7479 | eval "$as_ac_var=yes" | ||
7480 | else | ||
7481 | echo "$as_me: failed program was:" >&5 | ||
7482 | cat conftest.$ac_ext >&5 | ||
7483 | eval "$as_ac_var=no" | ||
7484 | fi | ||
7485 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7486 | fi | ||
7487 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7488 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7489 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7490 | cat >>confdefs.h <<_ACEOF | ||
7491 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7492 | _ACEOF | ||
7493 | |||
7494 | fi | ||
7495 | done | ||
7496 | |||
7497 | |||
7498 | |||
7499 | |||
7500 | |||
7501 | |||
7502 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
7503 | do | ||
7504 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7505 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7506 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7507 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7509 | else | ||
7510 | cat >conftest.$ac_ext <<_ACEOF | ||
7511 | #line $LINENO "configure" | ||
7512 | #include "confdefs.h" | ||
7513 | /* System header to define __stub macros and hopefully few prototypes, | ||
7514 | which can conflict with char $ac_func (); below. */ | ||
7515 | #include <assert.h> | ||
7516 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7517 | #ifdef __cplusplus | ||
7518 | extern "C" | ||
7519 | #endif | ||
7520 | /* We use char because int might match the return type of a gcc2 | ||
7521 | builtin and then its argument prototype would still apply. */ | ||
7522 | char $ac_func (); | ||
7523 | char (*f) (); | ||
7524 | |||
7525 | #ifdef F77_DUMMY_MAIN | ||
7526 | # ifdef __cplusplus | ||
7527 | extern "C" | ||
7528 | # endif | ||
7529 | int F77_DUMMY_MAIN() { return 1; } | ||
7530 | #endif | ||
7531 | int | ||
7532 | main () | ||
7533 | { | ||
7534 | /* The GNU C library defines this for functions which it implements | ||
7535 | to always fail with ENOSYS. Some functions are actually named | ||
7536 | something starting with __ and the normal name is an alias. */ | ||
7537 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7538 | choke me | ||
7539 | #else | ||
7540 | f = $ac_func; | ||
7541 | #endif | ||
7542 | |||
7543 | ; | ||
7544 | return 0; | ||
7545 | } | ||
7546 | _ACEOF | ||
7547 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7549 | (eval $ac_link) 2>&5 | ||
7550 | ac_status=$? | ||
7551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7552 | (exit $ac_status); } && | ||
7553 | { ac_try='test -s conftest$ac_exeext' | ||
7554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7555 | (eval $ac_try) 2>&5 | ||
7556 | ac_status=$? | ||
7557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7558 | (exit $ac_status); }; }; then | ||
7559 | eval "$as_ac_var=yes" | ||
7560 | else | ||
7561 | echo "$as_me: failed program was:" >&5 | ||
7562 | cat conftest.$ac_ext >&5 | ||
7563 | eval "$as_ac_var=no" | ||
7564 | fi | ||
7565 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7566 | fi | ||
7567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7568 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7569 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7570 | cat >>confdefs.h <<_ACEOF | ||
7571 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7572 | _ACEOF | ||
7573 | |||
7574 | fi | ||
7575 | done | ||
7576 | |||
7577 | |||
7578 | |||
7579 | for ac_func in setutxent utmpxname | ||
7580 | do | ||
7581 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7582 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7583 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7584 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7586 | else | ||
7587 | cat >conftest.$ac_ext <<_ACEOF | ||
7588 | #line $LINENO "configure" | ||
7589 | #include "confdefs.h" | ||
7590 | /* System header to define __stub macros and hopefully few prototypes, | ||
7591 | which can conflict with char $ac_func (); below. */ | ||
7592 | #include <assert.h> | ||
7593 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7594 | #ifdef __cplusplus | ||
7595 | extern "C" | ||
7596 | #endif | ||
7597 | /* We use char because int might match the return type of a gcc2 | ||
7598 | builtin and then its argument prototype would still apply. */ | ||
7599 | char $ac_func (); | ||
7600 | char (*f) (); | ||
7601 | |||
7602 | #ifdef F77_DUMMY_MAIN | ||
7603 | # ifdef __cplusplus | ||
7604 | extern "C" | ||
7605 | # endif | ||
7606 | int F77_DUMMY_MAIN() { return 1; } | ||
7607 | #endif | ||
7608 | int | ||
7609 | main () | ||
7610 | { | ||
7611 | /* The GNU C library defines this for functions which it implements | ||
7612 | to always fail with ENOSYS. Some functions are actually named | ||
7613 | something starting with __ and the normal name is an alias. */ | ||
7614 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7615 | choke me | ||
7616 | #else | ||
7617 | f = $ac_func; | ||
7618 | #endif | ||
7619 | |||
7620 | ; | ||
7621 | return 0; | ||
7622 | } | ||
7623 | _ACEOF | ||
7624 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7626 | (eval $ac_link) 2>&5 | ||
7627 | ac_status=$? | ||
7628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7629 | (exit $ac_status); } && | ||
7630 | { ac_try='test -s conftest$ac_exeext' | ||
7631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7632 | (eval $ac_try) 2>&5 | ||
7633 | ac_status=$? | ||
7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7635 | (exit $ac_status); }; }; then | ||
7636 | eval "$as_ac_var=yes" | ||
7637 | else | ||
7638 | echo "$as_me: failed program was:" >&5 | ||
7639 | cat conftest.$ac_ext >&5 | ||
7640 | eval "$as_ac_var=no" | ||
7641 | fi | ||
7642 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7643 | fi | ||
7644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7645 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7646 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7647 | cat >>confdefs.h <<_ACEOF | ||
7648 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7649 | _ACEOF | ||
7650 | |||
7651 | fi | ||
7652 | done | ||
7653 | |||
7654 | |||
7655 | echo "$as_me:$LINENO: checking for daemon" >&5 | ||
7656 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
7657 | if test "${ac_cv_func_daemon+set}" = set; then | ||
7658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7659 | else | ||
7660 | cat >conftest.$ac_ext <<_ACEOF | ||
7661 | #line $LINENO "configure" | ||
7662 | #include "confdefs.h" | ||
7663 | /* System header to define __stub macros and hopefully few prototypes, | ||
7664 | which can conflict with char daemon (); below. */ | ||
7665 | #include <assert.h> | ||
7666 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7667 | #ifdef __cplusplus | ||
7668 | extern "C" | ||
7669 | #endif | ||
7670 | /* We use char because int might match the return type of a gcc2 | ||
7671 | builtin and then its argument prototype would still apply. */ | ||
7672 | char daemon (); | ||
7673 | char (*f) (); | ||
7674 | |||
7675 | #ifdef F77_DUMMY_MAIN | ||
7676 | # ifdef __cplusplus | ||
7677 | extern "C" | ||
7678 | # endif | ||
7679 | int F77_DUMMY_MAIN() { return 1; } | ||
7680 | #endif | ||
7681 | int | ||
7682 | main () | ||
7683 | { | ||
7684 | /* The GNU C library defines this for functions which it implements | ||
7685 | to always fail with ENOSYS. Some functions are actually named | ||
7686 | something starting with __ and the normal name is an alias. */ | ||
7687 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
7688 | choke me | ||
7689 | #else | ||
7690 | f = daemon; | ||
7691 | #endif | ||
7692 | |||
7693 | ; | ||
7694 | return 0; | ||
7695 | } | ||
7696 | _ACEOF | ||
7697 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7699 | (eval $ac_link) 2>&5 | ||
7700 | ac_status=$? | ||
7701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7702 | (exit $ac_status); } && | ||
7703 | { ac_try='test -s conftest$ac_exeext' | ||
7704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7705 | (eval $ac_try) 2>&5 | ||
7706 | ac_status=$? | ||
7707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7708 | (exit $ac_status); }; }; then | ||
7709 | ac_cv_func_daemon=yes | ||
7710 | else | ||
7711 | echo "$as_me: failed program was:" >&5 | ||
7712 | cat conftest.$ac_ext >&5 | ||
7713 | ac_cv_func_daemon=no | ||
7714 | fi | ||
7715 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7716 | fi | ||
7717 | echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
7718 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
7719 | if test $ac_cv_func_daemon = yes; then | ||
7720 | cat >>confdefs.h <<\_ACEOF | ||
7721 | #define HAVE_DAEMON 1 | ||
7722 | _ACEOF | ||
7723 | |||
7724 | else | ||
7725 | echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
7726 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
7727 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
7728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7729 | else | ||
7730 | ac_check_lib_save_LIBS=$LIBS | ||
7731 | LIBS="-lbsd $LIBS" | ||
7732 | cat >conftest.$ac_ext <<_ACEOF | ||
7733 | #line $LINENO "configure" | ||
7734 | #include "confdefs.h" | ||
7735 | |||
7736 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7737 | #ifdef __cplusplus | ||
7738 | extern "C" | ||
7739 | #endif | ||
7740 | /* We use char because int might match the return type of a gcc2 | ||
7741 | builtin and then its argument prototype would still apply. */ | ||
7742 | char daemon (); | ||
7743 | #ifdef F77_DUMMY_MAIN | ||
7744 | # ifdef __cplusplus | ||
7745 | extern "C" | ||
7746 | # endif | ||
7747 | int F77_DUMMY_MAIN() { return 1; } | ||
7748 | #endif | ||
7749 | int | ||
7750 | main () | ||
7751 | { | ||
7752 | daemon (); | ||
7753 | ; | ||
7754 | return 0; | ||
7755 | } | ||
7756 | _ACEOF | ||
7757 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7759 | (eval $ac_link) 2>&5 | ||
7760 | ac_status=$? | ||
7761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7762 | (exit $ac_status); } && | ||
7763 | { ac_try='test -s conftest$ac_exeext' | ||
7764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7765 | (eval $ac_try) 2>&5 | ||
7766 | ac_status=$? | ||
7767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7768 | (exit $ac_status); }; }; then | ||
7769 | ac_cv_lib_bsd_daemon=yes | ||
7770 | else | ||
7771 | echo "$as_me: failed program was:" >&5 | ||
7772 | cat conftest.$ac_ext >&5 | ||
7773 | ac_cv_lib_bsd_daemon=no | ||
7774 | fi | ||
7775 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7776 | LIBS=$ac_check_lib_save_LIBS | ||
7777 | fi | ||
7778 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
7779 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
7780 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
7781 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
7782 | #define HAVE_DAEMON 1 | ||
7783 | _ACEOF | ||
7784 | |||
7785 | fi | ||
7786 | |||
7787 | |||
7788 | fi | ||
7789 | |||
7790 | |||
7791 | echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
7792 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
7793 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
7794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7795 | else | ||
7796 | cat >conftest.$ac_ext <<_ACEOF | ||
7797 | #line $LINENO "configure" | ||
7798 | #include "confdefs.h" | ||
7799 | /* System header to define __stub macros and hopefully few prototypes, | ||
7800 | which can conflict with char getpagesize (); below. */ | ||
7801 | #include <assert.h> | ||
7802 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7803 | #ifdef __cplusplus | ||
7804 | extern "C" | ||
7805 | #endif | ||
7806 | /* We use char because int might match the return type of a gcc2 | ||
7807 | builtin and then its argument prototype would still apply. */ | ||
7808 | char getpagesize (); | ||
7809 | char (*f) (); | ||
7810 | |||
7811 | #ifdef F77_DUMMY_MAIN | ||
7812 | # ifdef __cplusplus | ||
7813 | extern "C" | ||
7814 | # endif | ||
7815 | int F77_DUMMY_MAIN() { return 1; } | ||
7816 | #endif | ||
7817 | int | ||
7818 | main () | ||
7819 | { | ||
7820 | /* The GNU C library defines this for functions which it implements | ||
7821 | to always fail with ENOSYS. Some functions are actually named | ||
7822 | something starting with __ and the normal name is an alias. */ | ||
7823 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
7824 | choke me | ||
7825 | #else | ||
7826 | f = getpagesize; | ||
7827 | #endif | ||
7828 | |||
7829 | ; | ||
7830 | return 0; | ||
7831 | } | ||
7832 | _ACEOF | ||
7833 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7835 | (eval $ac_link) 2>&5 | ||
7836 | ac_status=$? | ||
7837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7838 | (exit $ac_status); } && | ||
7839 | { ac_try='test -s conftest$ac_exeext' | ||
7840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7841 | (eval $ac_try) 2>&5 | ||
7842 | ac_status=$? | ||
7843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7844 | (exit $ac_status); }; }; then | ||
7845 | ac_cv_func_getpagesize=yes | ||
7846 | else | ||
7847 | echo "$as_me: failed program was:" >&5 | ||
7848 | cat conftest.$ac_ext >&5 | ||
7849 | ac_cv_func_getpagesize=no | ||
7850 | fi | ||
7851 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7852 | fi | ||
7853 | echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
7854 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
7855 | if test $ac_cv_func_getpagesize = yes; then | ||
7856 | cat >>confdefs.h <<\_ACEOF | ||
7857 | #define HAVE_GETPAGESIZE 1 | ||
7858 | _ACEOF | ||
7859 | |||
7860 | else | ||
7861 | echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
7862 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
7863 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
7864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7865 | else | ||
7866 | ac_check_lib_save_LIBS=$LIBS | ||
7867 | LIBS="-lucb $LIBS" | ||
7868 | cat >conftest.$ac_ext <<_ACEOF | ||
7869 | #line $LINENO "configure" | ||
7870 | #include "confdefs.h" | ||
7871 | |||
7872 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7873 | #ifdef __cplusplus | ||
7874 | extern "C" | ||
7875 | #endif | ||
7876 | /* We use char because int might match the return type of a gcc2 | ||
7877 | builtin and then its argument prototype would still apply. */ | ||
7878 | char getpagesize (); | ||
7879 | #ifdef F77_DUMMY_MAIN | ||
7880 | # ifdef __cplusplus | ||
7881 | extern "C" | ||
7882 | # endif | ||
7883 | int F77_DUMMY_MAIN() { return 1; } | ||
7884 | #endif | ||
7885 | int | ||
7886 | main () | ||
7887 | { | ||
7888 | getpagesize (); | ||
7889 | ; | ||
7890 | return 0; | ||
7891 | } | ||
7892 | _ACEOF | ||
7893 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7895 | (eval $ac_link) 2>&5 | ||
7896 | ac_status=$? | ||
7897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7898 | (exit $ac_status); } && | ||
7899 | { ac_try='test -s conftest$ac_exeext' | ||
7900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7901 | (eval $ac_try) 2>&5 | ||
7902 | ac_status=$? | ||
7903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7904 | (exit $ac_status); }; }; then | ||
7905 | ac_cv_lib_ucb_getpagesize=yes | ||
7906 | else | ||
7907 | echo "$as_me: failed program was:" >&5 | ||
7908 | cat conftest.$ac_ext >&5 | ||
7909 | ac_cv_lib_ucb_getpagesize=no | ||
7910 | fi | ||
7911 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7912 | LIBS=$ac_check_lib_save_LIBS | ||
7913 | fi | ||
7914 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
7915 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
7916 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
7917 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
7918 | #define HAVE_GETPAGESIZE 1 | ||
7919 | _ACEOF | ||
7920 | |||
7921 | fi | ||
7922 | |||
7923 | |||
7924 | fi | ||
7925 | |||
7926 | |||
7927 | # Check for broken snprintf | ||
7928 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
7929 | echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
7930 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
7931 | if test "$cross_compiling" = yes; then | ||
7932 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
7933 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7934 | { (exit 1); exit 1; }; } | ||
7935 | else | ||
7936 | cat >conftest.$ac_ext <<_ACEOF | ||
7937 | #line $LINENO "configure" | ||
7938 | #include "confdefs.h" | ||
7939 | |||
7940 | #include <stdio.h> | ||
7941 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
7942 | |||
7943 | _ACEOF | ||
7944 | rm -f conftest$ac_exeext | ||
7945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7946 | (eval $ac_link) 2>&5 | ||
7947 | ac_status=$? | ||
7948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7949 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7951 | (eval $ac_try) 2>&5 | ||
7952 | ac_status=$? | ||
7953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7954 | (exit $ac_status); }; }; then | ||
7955 | echo "$as_me:$LINENO: result: yes" >&5 | ||
7956 | echo "${ECHO_T}yes" >&6 | ||
7957 | else | ||
7958 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7959 | echo "$as_me: failed program was:" >&5 | ||
7960 | cat conftest.$ac_ext >&5 | ||
7961 | ( exit $ac_status ) | ||
7962 | |||
7963 | echo "$as_me:$LINENO: result: no" >&5 | ||
7964 | echo "${ECHO_T}no" >&6 | ||
7965 | cat >>confdefs.h <<\_ACEOF | ||
7966 | #define BROKEN_SNPRINTF 1 | ||
7967 | _ACEOF | ||
7968 | |||
7969 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
7970 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
7971 | |||
7972 | |||
7973 | fi | ||
7974 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7975 | fi | ||
7976 | fi | ||
7977 | |||
7978 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
7979 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | ||
7980 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
7981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7982 | else | ||
7983 | # Use it with a single arg. | ||
7984 | cat >conftest.$ac_ext <<_ACEOF | ||
7985 | #line $LINENO "configure" | ||
7986 | #include "confdefs.h" | ||
7987 | $ac_includes_default | ||
7988 | #ifdef F77_DUMMY_MAIN | ||
7989 | # ifdef __cplusplus | ||
7990 | extern "C" | ||
7991 | # endif | ||
7992 | int F77_DUMMY_MAIN() { return 1; } | ||
7993 | #endif | ||
7994 | int | ||
7995 | main () | ||
7996 | { | ||
7997 | getpgrp (0); | ||
7998 | ; | ||
7999 | return 0; | ||
8000 | } | ||
8001 | _ACEOF | ||
8002 | rm -f conftest.$ac_objext | ||
8003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8004 | (eval $ac_compile) 2>&5 | ||
8005 | ac_status=$? | ||
8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8007 | (exit $ac_status); } && | ||
8008 | { ac_try='test -s conftest.$ac_objext' | ||
8009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8010 | (eval $ac_try) 2>&5 | ||
8011 | ac_status=$? | ||
8012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8013 | (exit $ac_status); }; }; then | ||
8014 | ac_cv_func_getpgrp_void=no | ||
8015 | else | ||
8016 | echo "$as_me: failed program was:" >&5 | ||
8017 | cat conftest.$ac_ext >&5 | ||
8018 | ac_cv_func_getpgrp_void=yes | ||
8019 | fi | ||
8020 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8021 | |||
8022 | fi | ||
8023 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
8024 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
8025 | if test $ac_cv_func_getpgrp_void = yes; then | ||
8026 | |||
8027 | cat >>confdefs.h <<\_ACEOF | ||
8028 | #define GETPGRP_VOID 1 | ||
8029 | _ACEOF | ||
8030 | |||
8031 | fi | ||
8032 | |||
8033 | |||
8034 | # Check for PAM libs | ||
8035 | PAM_MSG="no" | ||
8036 | |||
8037 | # Check whether --with-pam or --without-pam was given. | ||
8038 | if test "${with_pam+set}" = set; then | ||
8039 | withval="$with_pam" | ||
8040 | |||
8041 | if test "x$withval" != "xno" ; then | ||
8042 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then | ||
8043 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
8044 | echo "$as_me: error: PAM headers not found" >&2;} | ||
8045 | { (exit 1); exit 1; }; } | ||
8046 | fi | ||
8047 | |||
8048 | |||
8049 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
8050 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
8051 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
8052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8053 | else | ||
8054 | ac_check_lib_save_LIBS=$LIBS | ||
8055 | LIBS="-ldl $LIBS" | ||
8056 | cat >conftest.$ac_ext <<_ACEOF | ||
8057 | #line $LINENO "configure" | ||
8058 | #include "confdefs.h" | ||
8059 | |||
8060 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8061 | #ifdef __cplusplus | ||
8062 | extern "C" | ||
8063 | #endif | ||
8064 | /* We use char because int might match the return type of a gcc2 | ||
8065 | builtin and then its argument prototype would still apply. */ | ||
8066 | char dlopen (); | ||
8067 | #ifdef F77_DUMMY_MAIN | ||
8068 | # ifdef __cplusplus | ||
8069 | extern "C" | ||
8070 | # endif | ||
8071 | int F77_DUMMY_MAIN() { return 1; } | ||
8072 | #endif | ||
8073 | int | ||
8074 | main () | ||
8075 | { | ||
8076 | dlopen (); | ||
8077 | ; | ||
8078 | return 0; | ||
8079 | } | ||
8080 | _ACEOF | ||
8081 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8083 | (eval $ac_link) 2>&5 | ||
8084 | ac_status=$? | ||
8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8086 | (exit $ac_status); } && | ||
8087 | { ac_try='test -s conftest$ac_exeext' | ||
8088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8089 | (eval $ac_try) 2>&5 | ||
8090 | ac_status=$? | ||
8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8092 | (exit $ac_status); }; }; then | ||
8093 | ac_cv_lib_dl_dlopen=yes | ||
8094 | else | ||
8095 | echo "$as_me: failed program was:" >&5 | ||
8096 | cat conftest.$ac_ext >&5 | ||
8097 | ac_cv_lib_dl_dlopen=no | ||
8098 | fi | ||
8099 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8100 | LIBS=$ac_check_lib_save_LIBS | ||
8101 | fi | ||
8102 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
8103 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
8104 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8105 | cat >>confdefs.h <<_ACEOF | ||
8106 | #define HAVE_LIBDL 1 | ||
8107 | _ACEOF | ||
8108 | |||
8109 | LIBS="-ldl $LIBS" | ||
8110 | |||
8111 | fi | ||
8112 | |||
8113 | |||
8114 | echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
8115 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
8116 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
8117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8118 | else | ||
8119 | ac_check_lib_save_LIBS=$LIBS | ||
8120 | LIBS="-lpam $LIBS" | ||
8121 | cat >conftest.$ac_ext <<_ACEOF | ||
8122 | #line $LINENO "configure" | ||
8123 | #include "confdefs.h" | ||
8124 | |||
8125 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8126 | #ifdef __cplusplus | ||
8127 | extern "C" | ||
8128 | #endif | ||
8129 | /* We use char because int might match the return type of a gcc2 | ||
8130 | builtin and then its argument prototype would still apply. */ | ||
8131 | char pam_set_item (); | ||
8132 | #ifdef F77_DUMMY_MAIN | ||
8133 | # ifdef __cplusplus | ||
8134 | extern "C" | ||
8135 | # endif | ||
8136 | int F77_DUMMY_MAIN() { return 1; } | ||
8137 | #endif | ||
8138 | int | ||
8139 | main () | ||
8140 | { | ||
8141 | pam_set_item (); | ||
8142 | ; | ||
8143 | return 0; | ||
8144 | } | ||
8145 | _ACEOF | ||
8146 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8148 | (eval $ac_link) 2>&5 | ||
8149 | ac_status=$? | ||
8150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8151 | (exit $ac_status); } && | ||
8152 | { ac_try='test -s conftest$ac_exeext' | ||
8153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8154 | (eval $ac_try) 2>&5 | ||
8155 | ac_status=$? | ||
8156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8157 | (exit $ac_status); }; }; then | ||
8158 | ac_cv_lib_pam_pam_set_item=yes | ||
8159 | else | ||
8160 | echo "$as_me: failed program was:" >&5 | ||
8161 | cat conftest.$ac_ext >&5 | ||
8162 | ac_cv_lib_pam_pam_set_item=no | ||
8163 | fi | ||
8164 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8165 | LIBS=$ac_check_lib_save_LIBS | ||
8166 | fi | ||
8167 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
8168 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
8169 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
8170 | cat >>confdefs.h <<_ACEOF | ||
8171 | #define HAVE_LIBPAM 1 | ||
8172 | _ACEOF | ||
8173 | |||
8174 | LIBS="-lpam $LIBS" | ||
8175 | |||
8176 | else | ||
8177 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
8178 | echo "$as_me: error: *** libpam missing" >&2;} | ||
8179 | { (exit 1); exit 1; }; } | ||
8180 | fi | ||
8181 | |||
8182 | |||
8183 | for ac_func in pam_getenvlist | ||
8184 | do | ||
8185 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8186 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8187 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8188 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8190 | else | ||
8191 | cat >conftest.$ac_ext <<_ACEOF | ||
8192 | #line $LINENO "configure" | ||
8193 | #include "confdefs.h" | ||
8194 | /* System header to define __stub macros and hopefully few prototypes, | ||
8195 | which can conflict with char $ac_func (); below. */ | ||
8196 | #include <assert.h> | ||
8197 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8198 | #ifdef __cplusplus | ||
8199 | extern "C" | ||
8200 | #endif | ||
8201 | /* We use char because int might match the return type of a gcc2 | ||
8202 | builtin and then its argument prototype would still apply. */ | ||
8203 | char $ac_func (); | ||
8204 | char (*f) (); | ||
8205 | |||
8206 | #ifdef F77_DUMMY_MAIN | ||
8207 | # ifdef __cplusplus | ||
8208 | extern "C" | ||
8209 | # endif | ||
8210 | int F77_DUMMY_MAIN() { return 1; } | ||
8211 | #endif | ||
8212 | int | ||
8213 | main () | ||
8214 | { | ||
8215 | /* The GNU C library defines this for functions which it implements | ||
8216 | to always fail with ENOSYS. Some functions are actually named | ||
8217 | something starting with __ and the normal name is an alias. */ | ||
8218 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8219 | choke me | ||
8220 | #else | ||
8221 | f = $ac_func; | ||
8222 | #endif | ||
8223 | |||
8224 | ; | ||
8225 | return 0; | ||
8226 | } | ||
8227 | _ACEOF | ||
8228 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8230 | (eval $ac_link) 2>&5 | ||
8231 | ac_status=$? | ||
8232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8233 | (exit $ac_status); } && | ||
8234 | { ac_try='test -s conftest$ac_exeext' | ||
8235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8236 | (eval $ac_try) 2>&5 | ||
8237 | ac_status=$? | ||
8238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8239 | (exit $ac_status); }; }; then | ||
8240 | eval "$as_ac_var=yes" | ||
8241 | else | ||
8242 | echo "$as_me: failed program was:" >&5 | ||
8243 | cat conftest.$ac_ext >&5 | ||
8244 | eval "$as_ac_var=no" | ||
8245 | fi | ||
8246 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8247 | fi | ||
8248 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8249 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8250 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8251 | cat >>confdefs.h <<_ACEOF | ||
8252 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8253 | _ACEOF | ||
8254 | |||
8255 | fi | ||
8256 | done | ||
8257 | |||
8258 | |||
8259 | disable_shadow=yes | ||
8260 | PAM_MSG="yes" | ||
8261 | |||
8262 | cat >>confdefs.h <<\_ACEOF | ||
8263 | #define USE_PAM 1 | ||
8264 | _ACEOF | ||
8265 | |||
8266 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8267 | LIBPAM="-lpam -ldl" | ||
8268 | else | ||
8269 | LIBPAM="-lpam" | ||
8270 | fi | ||
8271 | |||
8272 | fi | ||
8273 | |||
8274 | |||
8275 | fi; | ||
8276 | |||
8277 | # Check for older PAM | ||
8278 | if test "x$PAM_MSG" = "xyes" ; then | ||
8279 | # Check PAM strerror arguments (old PAM) | ||
8280 | echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
8281 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
8282 | cat >conftest.$ac_ext <<_ACEOF | ||
8283 | #line $LINENO "configure" | ||
8284 | #include "confdefs.h" | ||
8285 | |||
8286 | #include <stdlib.h> | ||
8287 | #include <security/pam_appl.h> | ||
8288 | |||
8289 | #ifdef F77_DUMMY_MAIN | ||
8290 | # ifdef __cplusplus | ||
8291 | extern "C" | ||
8292 | # endif | ||
8293 | int F77_DUMMY_MAIN() { return 1; } | ||
8294 | #endif | ||
8295 | int | ||
8296 | main () | ||
8297 | { | ||
8298 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
8299 | ; | ||
8300 | return 0; | ||
8301 | } | ||
8302 | _ACEOF | ||
8303 | rm -f conftest.$ac_objext | ||
8304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8305 | (eval $ac_compile) 2>&5 | ||
8306 | ac_status=$? | ||
8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8308 | (exit $ac_status); } && | ||
8309 | { ac_try='test -s conftest.$ac_objext' | ||
8310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8311 | (eval $ac_try) 2>&5 | ||
8312 | ac_status=$? | ||
8313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8314 | (exit $ac_status); }; }; then | ||
8315 | echo "$as_me:$LINENO: result: no" >&5 | ||
8316 | echo "${ECHO_T}no" >&6 | ||
8317 | else | ||
8318 | echo "$as_me: failed program was:" >&5 | ||
8319 | cat conftest.$ac_ext >&5 | ||
8320 | |||
8321 | cat >>confdefs.h <<\_ACEOF | ||
8322 | #define HAVE_OLD_PAM 1 | ||
8323 | _ACEOF | ||
8324 | |||
8325 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8326 | echo "${ECHO_T}yes" >&6 | ||
8327 | PAM_MSG="yes (old library)" | ||
8328 | |||
8329 | |||
8330 | fi | ||
8331 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8332 | fi | ||
8333 | |||
8334 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
8335 | # because the system crypt() is more featureful. | ||
8336 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
8337 | |||
8338 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
8339 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
8340 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
8341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8342 | else | ||
8343 | ac_check_lib_save_LIBS=$LIBS | ||
8344 | LIBS="-lcrypt $LIBS" | ||
8345 | cat >conftest.$ac_ext <<_ACEOF | ||
8346 | #line $LINENO "configure" | ||
8347 | #include "confdefs.h" | ||
8348 | |||
8349 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8350 | #ifdef __cplusplus | ||
8351 | extern "C" | ||
8352 | #endif | ||
8353 | /* We use char because int might match the return type of a gcc2 | ||
8354 | builtin and then its argument prototype would still apply. */ | ||
8355 | char crypt (); | ||
8356 | #ifdef F77_DUMMY_MAIN | ||
8357 | # ifdef __cplusplus | ||
8358 | extern "C" | ||
8359 | # endif | ||
8360 | int F77_DUMMY_MAIN() { return 1; } | ||
8361 | #endif | ||
8362 | int | ||
8363 | main () | ||
8364 | { | ||
8365 | crypt (); | ||
8366 | ; | ||
8367 | return 0; | ||
8368 | } | ||
8369 | _ACEOF | ||
8370 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8372 | (eval $ac_link) 2>&5 | ||
8373 | ac_status=$? | ||
8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8375 | (exit $ac_status); } && | ||
8376 | { ac_try='test -s conftest$ac_exeext' | ||
8377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8378 | (eval $ac_try) 2>&5 | ||
8379 | ac_status=$? | ||
8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8381 | (exit $ac_status); }; }; then | ||
8382 | ac_cv_lib_crypt_crypt=yes | ||
8383 | else | ||
8384 | echo "$as_me: failed program was:" >&5 | ||
8385 | cat conftest.$ac_ext >&5 | ||
8386 | ac_cv_lib_crypt_crypt=no | ||
8387 | fi | ||
8388 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8389 | LIBS=$ac_check_lib_save_LIBS | ||
8390 | fi | ||
8391 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
8392 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
8393 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
8394 | cat >>confdefs.h <<_ACEOF | ||
8395 | #define HAVE_LIBCRYPT 1 | ||
8396 | _ACEOF | ||
8397 | |||
8398 | LIBS="-lcrypt $LIBS" | ||
8399 | |||
8400 | fi | ||
8401 | |||
8402 | fi | ||
8403 | |||
8404 | # Search for OpenSSL | ||
8405 | saved_CPPFLAGS="$CPPFLAGS" | ||
8406 | saved_LDFLAGS="$LDFLAGS" | ||
8407 | |||
8408 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
8409 | if test "${with_ssl_dir+set}" = set; then | ||
8410 | withval="$with_ssl_dir" | ||
8411 | |||
8412 | if test "x$withval" != "xno" ; then | ||
8413 | if test -d "$withval/lib"; then | ||
8414 | if test -n "${need_dash_r}"; then | ||
8415 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8416 | else | ||
8417 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8418 | fi | ||
8419 | else | ||
8420 | if test -n "${need_dash_r}"; then | ||
8421 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8422 | else | ||
8423 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8424 | fi | ||
8425 | fi | ||
8426 | if test -d "$withval/include"; then | ||
8427 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8428 | else | ||
8429 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8430 | fi | ||
8431 | fi | ||
8432 | |||
8433 | |||
8434 | fi; | ||
8435 | LIBS="$LIBS -lcrypto" | ||
8436 | cat >conftest.$ac_ext <<_ACEOF | ||
8437 | #line $LINENO "configure" | ||
8438 | #include "confdefs.h" | ||
8439 | |||
8440 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8441 | #ifdef __cplusplus | ||
8442 | extern "C" | ||
8443 | #endif | ||
8444 | /* We use char because int might match the return type of a gcc2 | ||
8445 | builtin and then its argument prototype would still apply. */ | ||
8446 | char RAND_add (); | ||
8447 | #ifdef F77_DUMMY_MAIN | ||
8448 | # ifdef __cplusplus | ||
8449 | extern "C" | ||
8450 | # endif | ||
8451 | int F77_DUMMY_MAIN() { return 1; } | ||
8452 | #endif | ||
8453 | int | ||
8454 | main () | ||
8455 | { | ||
8456 | RAND_add (); | ||
8457 | ; | ||
8458 | return 0; | ||
8459 | } | ||
8460 | _ACEOF | ||
8461 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8463 | (eval $ac_link) 2>&5 | ||
8464 | ac_status=$? | ||
8465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8466 | (exit $ac_status); } && | ||
8467 | { ac_try='test -s conftest$ac_exeext' | ||
8468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8469 | (eval $ac_try) 2>&5 | ||
8470 | ac_status=$? | ||
8471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8472 | (exit $ac_status); }; }; then | ||
8473 | cat >>confdefs.h <<\_ACEOF | ||
8474 | #define HAVE_OPENSSL 1 | ||
8475 | _ACEOF | ||
8476 | |||
8477 | else | ||
8478 | echo "$as_me: failed program was:" >&5 | ||
8479 | cat conftest.$ac_ext >&5 | ||
8480 | |||
8481 | if test -n "${need_dash_r}"; then | ||
8482 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8483 | else | ||
8484 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8485 | fi | ||
8486 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
8487 | cat >conftest.$ac_ext <<_ACEOF | ||
8488 | #line $LINENO "configure" | ||
8489 | #include "confdefs.h" | ||
8490 | |||
8491 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8492 | #ifdef __cplusplus | ||
8493 | extern "C" | ||
8494 | #endif | ||
8495 | /* We use char because int might match the return type of a gcc2 | ||
8496 | builtin and then its argument prototype would still apply. */ | ||
8497 | char RAND_add (); | ||
8498 | #ifdef F77_DUMMY_MAIN | ||
8499 | # ifdef __cplusplus | ||
8500 | extern "C" | ||
8501 | # endif | ||
8502 | int F77_DUMMY_MAIN() { return 1; } | ||
8503 | #endif | ||
8504 | int | ||
8505 | main () | ||
8506 | { | ||
8507 | RAND_add (); | ||
8508 | ; | ||
8509 | return 0; | ||
8510 | } | ||
8511 | _ACEOF | ||
8512 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8514 | (eval $ac_link) 2>&5 | ||
8515 | ac_status=$? | ||
8516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8517 | (exit $ac_status); } && | ||
8518 | { ac_try='test -s conftest$ac_exeext' | ||
8519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8520 | (eval $ac_try) 2>&5 | ||
8521 | ac_status=$? | ||
8522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8523 | (exit $ac_status); }; }; then | ||
8524 | cat >>confdefs.h <<\_ACEOF | ||
8525 | #define HAVE_OPENSSL 1 | ||
8526 | _ACEOF | ||
8527 | |||
8528 | else | ||
8529 | echo "$as_me: failed program was:" >&5 | ||
8530 | cat conftest.$ac_ext >&5 | ||
8531 | |||
8532 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
8533 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
8534 | { (exit 1); exit 1; }; } | ||
8535 | |||
8536 | |||
8537 | fi | ||
8538 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8539 | |||
8540 | |||
8541 | fi | ||
8542 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8543 | |||
8544 | # Determine OpenSSL header version | ||
8545 | echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
8546 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
8547 | if test "$cross_compiling" = yes; then | ||
8548 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8549 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8550 | { (exit 1); exit 1; }; } | ||
8551 | else | ||
8552 | cat >conftest.$ac_ext <<_ACEOF | ||
8553 | #line $LINENO "configure" | ||
8554 | #include "confdefs.h" | ||
8555 | |||
8556 | #include <stdio.h> | ||
8557 | #include <string.h> | ||
8558 | #include <openssl/opensslv.h> | ||
8559 | #define DATA "conftest.sslincver" | ||
8560 | int main(void) { | ||
8561 | FILE *fd; | ||
8562 | int rc; | ||
8563 | |||
8564 | fd = fopen(DATA,"w"); | ||
8565 | if(fd == NULL) | ||
8566 | exit(1); | ||
8567 | |||
8568 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
8569 | exit(1); | ||
8570 | |||
8571 | exit(0); | ||
8572 | } | ||
8573 | |||
8574 | _ACEOF | ||
8575 | rm -f conftest$ac_exeext | ||
8576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8577 | (eval $ac_link) 2>&5 | ||
8578 | ac_status=$? | ||
8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8580 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8582 | (eval $ac_try) 2>&5 | ||
8583 | ac_status=$? | ||
8584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8585 | (exit $ac_status); }; }; then | ||
8586 | |||
8587 | ssl_header_ver=`cat conftest.sslincver` | ||
8588 | echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
8589 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
8590 | |||
8591 | else | ||
8592 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8593 | echo "$as_me: failed program was:" >&5 | ||
8594 | cat conftest.$ac_ext >&5 | ||
8595 | ( exit $ac_status ) | ||
8596 | |||
8597 | echo "$as_me:$LINENO: result: not found" >&5 | ||
8598 | echo "${ECHO_T}not found" >&6 | ||
8599 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
8600 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
8601 | { (exit 1); exit 1; }; } | ||
8602 | |||
8603 | |||
8604 | fi | ||
8605 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8606 | fi | ||
8607 | |||
8608 | # Determine OpenSSL library version | ||
8609 | echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
8610 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
8611 | if test "$cross_compiling" = yes; then | ||
8612 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8613 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8614 | { (exit 1); exit 1; }; } | ||
8615 | else | ||
8616 | cat >conftest.$ac_ext <<_ACEOF | ||
8617 | #line $LINENO "configure" | ||
8618 | #include "confdefs.h" | ||
8619 | |||
8620 | #include <stdio.h> | ||
8621 | #include <string.h> | ||
8622 | #include <openssl/opensslv.h> | ||
8623 | #include <openssl/crypto.h> | ||
8624 | #define DATA "conftest.ssllibver" | ||
8625 | int main(void) { | ||
8626 | FILE *fd; | ||
8627 | int rc; | ||
8628 | |||
8629 | fd = fopen(DATA,"w"); | ||
8630 | if(fd == NULL) | ||
8631 | exit(1); | ||
8632 | |||
8633 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
8634 | exit(1); | ||
8635 | |||
8636 | exit(0); | ||
8637 | } | ||
8638 | |||
8639 | _ACEOF | ||
8640 | rm -f conftest$ac_exeext | ||
8641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8642 | (eval $ac_link) 2>&5 | ||
8643 | ac_status=$? | ||
8644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8647 | (eval $ac_try) 2>&5 | ||
8648 | ac_status=$? | ||
8649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8650 | (exit $ac_status); }; }; then | ||
8651 | |||
8652 | ssl_library_ver=`cat conftest.ssllibver` | ||
8653 | echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
8654 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
8655 | |||
8656 | else | ||
8657 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8658 | echo "$as_me: failed program was:" >&5 | ||
8659 | cat conftest.$ac_ext >&5 | ||
8660 | ( exit $ac_status ) | ||
8661 | |||
8662 | echo "$as_me:$LINENO: result: not found" >&5 | ||
8663 | echo "${ECHO_T}not found" >&6 | ||
8664 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
8665 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
8666 | { (exit 1); exit 1; }; } | ||
8667 | |||
8668 | |||
8669 | fi | ||
8670 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8671 | fi | ||
8672 | |||
8673 | # Sanity check OpenSSL headers | ||
8674 | echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
8675 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
8676 | if test "$cross_compiling" = yes; then | ||
8677 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8678 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8679 | { (exit 1); exit 1; }; } | ||
8680 | else | ||
8681 | cat >conftest.$ac_ext <<_ACEOF | ||
8682 | #line $LINENO "configure" | ||
8683 | #include "confdefs.h" | ||
8684 | |||
8685 | #include <string.h> | ||
8686 | #include <openssl/opensslv.h> | ||
8687 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
8688 | |||
8689 | _ACEOF | ||
8690 | rm -f conftest$ac_exeext | ||
8691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8692 | (eval $ac_link) 2>&5 | ||
8693 | ac_status=$? | ||
8694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8695 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8697 | (eval $ac_try) 2>&5 | ||
8698 | ac_status=$? | ||
8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8700 | (exit $ac_status); }; }; then | ||
8701 | |||
8702 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8703 | echo "${ECHO_T}yes" >&6 | ||
8704 | |||
8705 | else | ||
8706 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8707 | echo "$as_me: failed program was:" >&5 | ||
8708 | cat conftest.$ac_ext >&5 | ||
8709 | ( exit $ac_status ) | ||
8710 | |||
8711 | echo "$as_me:$LINENO: result: no" >&5 | ||
8712 | echo "${ECHO_T}no" >&6 | ||
8713 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5 | ||
8714 | echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;} | ||
8715 | { (exit 1); exit 1; }; } | ||
8716 | |||
8717 | |||
8718 | fi | ||
8719 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8720 | fi | ||
8721 | |||
8722 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
8723 | # version in OpenSSL. Skip this for PAM | ||
8724 | if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then | ||
8725 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
8726 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
8727 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
8728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8729 | else | ||
8730 | ac_check_lib_save_LIBS=$LIBS | ||
8731 | LIBS="-lcrypt $LIBS" | ||
8732 | cat >conftest.$ac_ext <<_ACEOF | ||
8733 | #line $LINENO "configure" | ||
8734 | #include "confdefs.h" | ||
8735 | |||
8736 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8737 | #ifdef __cplusplus | ||
8738 | extern "C" | ||
8739 | #endif | ||
8740 | /* We use char because int might match the return type of a gcc2 | ||
8741 | builtin and then its argument prototype would still apply. */ | ||
8742 | char crypt (); | ||
8743 | #ifdef F77_DUMMY_MAIN | ||
8744 | # ifdef __cplusplus | ||
8745 | extern "C" | ||
8746 | # endif | ||
8747 | int F77_DUMMY_MAIN() { return 1; } | ||
8748 | #endif | ||
8749 | int | ||
8750 | main () | ||
8751 | { | ||
8752 | crypt (); | ||
8753 | ; | ||
8754 | return 0; | ||
8755 | } | ||
8756 | _ACEOF | ||
8757 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8759 | (eval $ac_link) 2>&5 | ||
8760 | ac_status=$? | ||
8761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8762 | (exit $ac_status); } && | ||
8763 | { ac_try='test -s conftest$ac_exeext' | ||
8764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8765 | (eval $ac_try) 2>&5 | ||
8766 | ac_status=$? | ||
8767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8768 | (exit $ac_status); }; }; then | ||
8769 | ac_cv_lib_crypt_crypt=yes | ||
8770 | else | ||
8771 | echo "$as_me: failed program was:" >&5 | ||
8772 | cat conftest.$ac_ext >&5 | ||
8773 | ac_cv_lib_crypt_crypt=no | ||
8774 | fi | ||
8775 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8776 | LIBS=$ac_check_lib_save_LIBS | ||
8777 | fi | ||
8778 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
8779 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
8780 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
8781 | LIBS="$LIBS -lcrypt" | ||
8782 | fi | ||
8783 | |||
8784 | fi | ||
8785 | |||
8786 | |||
8787 | ### Configure cryptographic random number support | ||
8788 | |||
8789 | # Check wheter OpenSSL seeds itself | ||
8790 | echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
8791 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
8792 | if test "$cross_compiling" = yes; then | ||
8793 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8794 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8795 | { (exit 1); exit 1; }; } | ||
8796 | else | ||
8797 | cat >conftest.$ac_ext <<_ACEOF | ||
8798 | #line $LINENO "configure" | ||
8799 | #include "confdefs.h" | ||
8800 | |||
8801 | #include <string.h> | ||
8802 | #include <openssl/rand.h> | ||
8803 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
8804 | |||
8805 | _ACEOF | ||
8806 | rm -f conftest$ac_exeext | ||
8807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8808 | (eval $ac_link) 2>&5 | ||
8809 | ac_status=$? | ||
8810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8811 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8813 | (eval $ac_try) 2>&5 | ||
8814 | ac_status=$? | ||
8815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8816 | (exit $ac_status); }; }; then | ||
8817 | |||
8818 | OPENSSL_SEEDS_ITSELF=yes | ||
8819 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8820 | echo "${ECHO_T}yes" >&6 | ||
8821 | |||
8822 | else | ||
8823 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8824 | echo "$as_me: failed program was:" >&5 | ||
8825 | cat conftest.$ac_ext >&5 | ||
8826 | ( exit $ac_status ) | ||
8827 | |||
8828 | echo "$as_me:$LINENO: result: no" >&5 | ||
8829 | echo "${ECHO_T}no" >&6 | ||
8830 | # Default to use of the rand helper if OpenSSL doesn't | ||
8831 | # seed itself | ||
8832 | USE_RAND_HELPER=yes | ||
8833 | |||
8834 | |||
8835 | fi | ||
8836 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8837 | fi | ||
8838 | |||
8839 | |||
8840 | # Do we want to force the use of the rand helper? | ||
8841 | |||
8842 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
8843 | if test "${with_rand_helper+set}" = set; then | ||
8844 | withval="$with_rand_helper" | ||
8845 | |||
8846 | if test "x$withval" = "xno" ; then | ||
8847 | # Force use of OpenSSL's internal RNG, even if | ||
8848 | # the previous test showed it to be unseeded. | ||
8849 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
8850 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
8851 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
8852 | OPENSSL_SEEDS_ITSELF=yes | ||
8853 | USE_RAND_HELPER="" | ||
8854 | fi | ||
8855 | else | ||
8856 | USE_RAND_HELPER=yes | ||
8857 | fi | ||
8858 | |||
8859 | fi; | ||
8860 | |||
8861 | # Which randomness source do we use? | ||
8862 | if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then | ||
8863 | # OpenSSL only | ||
8864 | cat >>confdefs.h <<\_ACEOF | ||
8865 | #define OPENSSL_PRNG_ONLY 1 | ||
8866 | _ACEOF | ||
8867 | |||
8868 | RAND_MSG="OpenSSL internal ONLY" | ||
8869 | INSTALL_SSH_RAND_HELPER="" | ||
8870 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
8871 | # install rand helper | ||
8872 | RAND_MSG="ssh-rand-helper" | ||
8873 | INSTALL_SSH_RAND_HELPER="yes" | ||
8874 | fi | ||
8875 | |||
8876 | |||
8877 | ### Configuration of ssh-rand-helper | ||
8878 | |||
8879 | # PRNGD TCP socket | ||
8880 | |||
8881 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
8882 | if test "${with_prngd_port+set}" = set; then | ||
8883 | withval="$with_prngd_port" | ||
8884 | |||
8885 | case "$withval" in | ||
8886 | no) | ||
8887 | withval="" | ||
8888 | ;; | ||
8889 | [0-9]*) | ||
8890 | ;; | ||
8891 | *) | ||
8892 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
8893 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
8894 | { (exit 1); exit 1; }; } | ||
8895 | ;; | ||
8896 | esac | ||
8897 | if test ! -z "$withval" ; then | ||
8898 | PRNGD_PORT="$withval" | ||
8899 | cat >>confdefs.h <<_ACEOF | ||
8900 | #define PRNGD_PORT $PRNGD_PORT | ||
8901 | _ACEOF | ||
8902 | |||
8903 | fi | ||
8904 | |||
8905 | |||
8906 | fi; | ||
8907 | |||
8908 | # PRNGD Unix domain socket | ||
8909 | |||
8910 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
8911 | if test "${with_prngd_socket+set}" = set; then | ||
8912 | withval="$with_prngd_socket" | ||
8913 | |||
8914 | case "$withval" in | ||
8915 | yes) | ||
8916 | withval="/var/run/egd-pool" | ||
8917 | ;; | ||
8918 | no) | ||
8919 | withval="" | ||
8920 | ;; | ||
8921 | /*) | ||
8922 | ;; | ||
8923 | *) | ||
8924 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
8925 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
8926 | { (exit 1); exit 1; }; } | ||
8927 | ;; | ||
8928 | esac | ||
8929 | |||
8930 | if test ! -z "$withval" ; then | ||
8931 | if test ! -z "$PRNGD_PORT" ; then | ||
8932 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
8933 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
8934 | { (exit 1); exit 1; }; } | ||
8935 | fi | ||
8936 | if test ! -r "$withval" ; then | ||
8937 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
8938 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
8939 | fi | ||
8940 | PRNGD_SOCKET="$withval" | ||
8941 | cat >>confdefs.h <<_ACEOF | ||
8942 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
8943 | _ACEOF | ||
8944 | |||
8945 | fi | ||
8946 | |||
8947 | else | ||
8948 | |||
8949 | # Check for existing socket only if we don't have a random device already | ||
8950 | if test "$USE_RAND_HELPER" = yes ; then | ||
8951 | echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
8952 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
8953 | # Insert other locations here | ||
8954 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
8955 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
8956 | PRNGD_SOCKET="$sock" | ||
8957 | cat >>confdefs.h <<_ACEOF | ||
8958 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
8959 | _ACEOF | ||
8960 | |||
8961 | break; | ||
8962 | fi | ||
8963 | done | ||
8964 | if test ! -z "$PRNGD_SOCKET" ; then | ||
8965 | echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
8966 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
8967 | else | ||
8968 | echo "$as_me:$LINENO: result: not found" >&5 | ||
8969 | echo "${ECHO_T}not found" >&6 | ||
8970 | fi | ||
8971 | fi | ||
8972 | |||
8973 | |||
8974 | fi; | ||
8975 | |||
8976 | # Change default command timeout for hashing entropy source | ||
8977 | entropy_timeout=200 | ||
8978 | |||
8979 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
8980 | if test "${with_entropy_timeout+set}" = set; then | ||
8981 | withval="$with_entropy_timeout" | ||
8982 | |||
8983 | if test "x$withval" != "xno" ; then | ||
8984 | entropy_timeout=$withval | ||
8985 | fi | ||
8986 | |||
8987 | |||
8988 | fi; | ||
8989 | cat >>confdefs.h <<_ACEOF | ||
8990 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
8991 | _ACEOF | ||
8992 | |||
8993 | |||
8994 | SSH_PRIVSEP_USER=sshd | ||
8995 | |||
8996 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
8997 | if test "${with_privsep_user+set}" = set; then | ||
8998 | withval="$with_privsep_user" | ||
8999 | |||
9000 | if test -n "$withval"; then | ||
9001 | SSH_PRIVSEP_USER=$withval | ||
9002 | fi | ||
9003 | |||
9004 | |||
9005 | fi; | ||
9006 | cat >>confdefs.h <<_ACEOF | ||
9007 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
9008 | _ACEOF | ||
9009 | |||
9010 | |||
9011 | |||
9012 | # We do this little dance with the search path to insure | ||
9013 | # that programs that we select for use by installed programs | ||
9014 | # (which may be run by the super-user) come from trusted | ||
9015 | # locations before they come from the user's private area. | ||
9016 | # This should help avoid accidentally configuring some | ||
9017 | # random version of a program in someone's personal bin. | ||
9018 | |||
9019 | OPATH=$PATH | ||
9020 | PATH=/bin:/usr/bin | ||
9021 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
9022 | test -d /sbin && PATH=$PATH:/sbin | ||
9023 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
9024 | PATH=$PATH:/etc:$OPATH | ||
9025 | |||
9026 | # These programs are used by the command hashing source to gather entropy | ||
9027 | |||
9028 | # Extract the first word of "ls", so it can be a program name with args. | ||
9029 | set dummy ls; ac_word=$2 | ||
9030 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9031 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9032 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
9033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9034 | else | ||
9035 | case $PROG_LS in | ||
9036 | [\\/]* | ?:[\\/]*) | ||
9037 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
9038 | ;; | ||
9039 | *) | ||
9040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9041 | for as_dir in $PATH | ||
9042 | do | ||
9043 | IFS=$as_save_IFS | ||
9044 | test -z "$as_dir" && as_dir=. | ||
9045 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9046 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9047 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
9048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9049 | break 2 | ||
9050 | fi | ||
9051 | done | ||
9052 | done | ||
9053 | |||
9054 | ;; | ||
9055 | esac | ||
9056 | fi | ||
9057 | PROG_LS=$ac_cv_path_PROG_LS | ||
9058 | |||
9059 | if test -n "$PROG_LS"; then | ||
9060 | echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
9061 | echo "${ECHO_T}$PROG_LS" >&6 | ||
9062 | else | ||
9063 | echo "$as_me:$LINENO: result: no" >&5 | ||
9064 | echo "${ECHO_T}no" >&6 | ||
9065 | fi | ||
9066 | |||
9067 | if test -z "$PROG_LS" ; then | ||
9068 | PROG_LS="undef" | ||
9069 | fi | ||
9070 | |||
9071 | |||
9072 | |||
9073 | # Extract the first word of "netstat", so it can be a program name with args. | ||
9074 | set dummy netstat; ac_word=$2 | ||
9075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9077 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
9078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9079 | else | ||
9080 | case $PROG_NETSTAT in | ||
9081 | [\\/]* | ?:[\\/]*) | ||
9082 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
9083 | ;; | ||
9084 | *) | ||
9085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9086 | for as_dir in $PATH | ||
9087 | do | ||
9088 | IFS=$as_save_IFS | ||
9089 | test -z "$as_dir" && as_dir=. | ||
9090 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9091 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9092 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
9093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9094 | break 2 | ||
9095 | fi | ||
9096 | done | ||
9097 | done | ||
9098 | |||
9099 | ;; | ||
9100 | esac | ||
9101 | fi | ||
9102 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
9103 | |||
9104 | if test -n "$PROG_NETSTAT"; then | ||
9105 | echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
9106 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
9107 | else | ||
9108 | echo "$as_me:$LINENO: result: no" >&5 | ||
9109 | echo "${ECHO_T}no" >&6 | ||
9110 | fi | ||
9111 | |||
9112 | if test -z "$PROG_NETSTAT" ; then | ||
9113 | PROG_NETSTAT="undef" | ||
9114 | fi | ||
9115 | |||
9116 | |||
9117 | |||
9118 | # Extract the first word of "arp", so it can be a program name with args. | ||
9119 | set dummy arp; ac_word=$2 | ||
9120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9122 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
9123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9124 | else | ||
9125 | case $PROG_ARP in | ||
9126 | [\\/]* | ?:[\\/]*) | ||
9127 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
9128 | ;; | ||
9129 | *) | ||
9130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9131 | for as_dir in $PATH | ||
9132 | do | ||
9133 | IFS=$as_save_IFS | ||
9134 | test -z "$as_dir" && as_dir=. | ||
9135 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9136 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9137 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
9138 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9139 | break 2 | ||
9140 | fi | ||
9141 | done | ||
9142 | done | ||
9143 | |||
9144 | ;; | ||
9145 | esac | ||
9146 | fi | ||
9147 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
9148 | |||
9149 | if test -n "$PROG_ARP"; then | ||
9150 | echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
9151 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
9152 | else | ||
9153 | echo "$as_me:$LINENO: result: no" >&5 | ||
9154 | echo "${ECHO_T}no" >&6 | ||
9155 | fi | ||
9156 | |||
9157 | if test -z "$PROG_ARP" ; then | ||
9158 | PROG_ARP="undef" | ||
9159 | fi | ||
9160 | |||
9161 | |||
9162 | |||
9163 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
9164 | set dummy ifconfig; ac_word=$2 | ||
9165 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9167 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
9168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9169 | else | ||
9170 | case $PROG_IFCONFIG in | ||
9171 | [\\/]* | ?:[\\/]*) | ||
9172 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
9173 | ;; | ||
9174 | *) | ||
9175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9176 | for as_dir in $PATH | ||
9177 | do | ||
9178 | IFS=$as_save_IFS | ||
9179 | test -z "$as_dir" && as_dir=. | ||
9180 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9181 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9182 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
9183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9184 | break 2 | ||
9185 | fi | ||
9186 | done | ||
9187 | done | ||
9188 | |||
9189 | ;; | ||
9190 | esac | ||
9191 | fi | ||
9192 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
9193 | |||
9194 | if test -n "$PROG_IFCONFIG"; then | ||
9195 | echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
9196 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
9197 | else | ||
9198 | echo "$as_me:$LINENO: result: no" >&5 | ||
9199 | echo "${ECHO_T}no" >&6 | ||
9200 | fi | ||
9201 | |||
9202 | if test -z "$PROG_IFCONFIG" ; then | ||
9203 | PROG_IFCONFIG="undef" | ||
9204 | fi | ||
9205 | |||
9206 | |||
9207 | |||
9208 | # Extract the first word of "jstat", so it can be a program name with args. | ||
9209 | set dummy jstat; ac_word=$2 | ||
9210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9212 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
9213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9214 | else | ||
9215 | case $PROG_JSTAT in | ||
9216 | [\\/]* | ?:[\\/]*) | ||
9217 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
9218 | ;; | ||
9219 | *) | ||
9220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9221 | for as_dir in $PATH | ||
9222 | do | ||
9223 | IFS=$as_save_IFS | ||
9224 | test -z "$as_dir" && as_dir=. | ||
9225 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9227 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
9228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9229 | break 2 | ||
9230 | fi | ||
9231 | done | ||
9232 | done | ||
9233 | |||
9234 | ;; | ||
9235 | esac | ||
9236 | fi | ||
9237 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
9238 | |||
9239 | if test -n "$PROG_JSTAT"; then | ||
9240 | echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
9241 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
9242 | else | ||
9243 | echo "$as_me:$LINENO: result: no" >&5 | ||
9244 | echo "${ECHO_T}no" >&6 | ||
9245 | fi | ||
9246 | |||
9247 | if test -z "$PROG_JSTAT" ; then | ||
9248 | PROG_JSTAT="undef" | ||
9249 | fi | ||
9250 | |||
9251 | |||
9252 | |||
9253 | # Extract the first word of "ps", so it can be a program name with args. | ||
9254 | set dummy ps; ac_word=$2 | ||
9255 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9257 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
9258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9259 | else | ||
9260 | case $PROG_PS in | ||
9261 | [\\/]* | ?:[\\/]*) | ||
9262 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
9263 | ;; | ||
9264 | *) | ||
9265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9266 | for as_dir in $PATH | ||
9267 | do | ||
9268 | IFS=$as_save_IFS | ||
9269 | test -z "$as_dir" && as_dir=. | ||
9270 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9271 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9272 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
9273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9274 | break 2 | ||
9275 | fi | ||
9276 | done | ||
9277 | done | ||
9278 | |||
9279 | ;; | ||
9280 | esac | ||
9281 | fi | ||
9282 | PROG_PS=$ac_cv_path_PROG_PS | ||
9283 | |||
9284 | if test -n "$PROG_PS"; then | ||
9285 | echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
9286 | echo "${ECHO_T}$PROG_PS" >&6 | ||
9287 | else | ||
9288 | echo "$as_me:$LINENO: result: no" >&5 | ||
9289 | echo "${ECHO_T}no" >&6 | ||
9290 | fi | ||
9291 | |||
9292 | if test -z "$PROG_PS" ; then | ||
9293 | PROG_PS="undef" | ||
9294 | fi | ||
9295 | |||
9296 | |||
9297 | |||
9298 | # Extract the first word of "sar", so it can be a program name with args. | ||
9299 | set dummy sar; ac_word=$2 | ||
9300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9302 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
9303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9304 | else | ||
9305 | case $PROG_SAR in | ||
9306 | [\\/]* | ?:[\\/]*) | ||
9307 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
9308 | ;; | ||
9309 | *) | ||
9310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9311 | for as_dir in $PATH | ||
9312 | do | ||
9313 | IFS=$as_save_IFS | ||
9314 | test -z "$as_dir" && as_dir=. | ||
9315 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9316 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9317 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
9318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9319 | break 2 | ||
9320 | fi | ||
9321 | done | ||
9322 | done | ||
9323 | |||
9324 | ;; | ||
9325 | esac | ||
9326 | fi | ||
9327 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
9328 | |||
9329 | if test -n "$PROG_SAR"; then | ||
9330 | echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
9331 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
9332 | else | ||
9333 | echo "$as_me:$LINENO: result: no" >&5 | ||
9334 | echo "${ECHO_T}no" >&6 | ||
9335 | fi | ||
9336 | |||
9337 | if test -z "$PROG_SAR" ; then | ||
9338 | PROG_SAR="undef" | ||
9339 | fi | ||
9340 | |||
9341 | |||
9342 | |||
9343 | # Extract the first word of "w", so it can be a program name with args. | ||
9344 | set dummy w; ac_word=$2 | ||
9345 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9347 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
9348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9349 | else | ||
9350 | case $PROG_W in | ||
9351 | [\\/]* | ?:[\\/]*) | ||
9352 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
9353 | ;; | ||
9354 | *) | ||
9355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9356 | for as_dir in $PATH | ||
9357 | do | ||
9358 | IFS=$as_save_IFS | ||
9359 | test -z "$as_dir" && as_dir=. | ||
9360 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9361 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9362 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
9363 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9364 | break 2 | ||
9365 | fi | ||
9366 | done | ||
9367 | done | ||
9368 | |||
9369 | ;; | ||
9370 | esac | ||
9371 | fi | ||
9372 | PROG_W=$ac_cv_path_PROG_W | ||
9373 | |||
9374 | if test -n "$PROG_W"; then | ||
9375 | echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
9376 | echo "${ECHO_T}$PROG_W" >&6 | ||
9377 | else | ||
9378 | echo "$as_me:$LINENO: result: no" >&5 | ||
9379 | echo "${ECHO_T}no" >&6 | ||
9380 | fi | ||
9381 | |||
9382 | if test -z "$PROG_W" ; then | ||
9383 | PROG_W="undef" | ||
9384 | fi | ||
9385 | |||
9386 | |||
9387 | |||
9388 | # Extract the first word of "who", so it can be a program name with args. | ||
9389 | set dummy who; ac_word=$2 | ||
9390 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9392 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
9393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9394 | else | ||
9395 | case $PROG_WHO in | ||
9396 | [\\/]* | ?:[\\/]*) | ||
9397 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
9398 | ;; | ||
9399 | *) | ||
9400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9401 | for as_dir in $PATH | ||
9402 | do | ||
9403 | IFS=$as_save_IFS | ||
9404 | test -z "$as_dir" && as_dir=. | ||
9405 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9406 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9407 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
9408 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9409 | break 2 | ||
9410 | fi | ||
9411 | done | ||
9412 | done | ||
9413 | |||
9414 | ;; | ||
9415 | esac | ||
9416 | fi | ||
9417 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
9418 | |||
9419 | if test -n "$PROG_WHO"; then | ||
9420 | echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
9421 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
9422 | else | ||
9423 | echo "$as_me:$LINENO: result: no" >&5 | ||
9424 | echo "${ECHO_T}no" >&6 | ||
9425 | fi | ||
9426 | |||
9427 | if test -z "$PROG_WHO" ; then | ||
9428 | PROG_WHO="undef" | ||
9429 | fi | ||
9430 | |||
9431 | |||
9432 | |||
9433 | # Extract the first word of "last", so it can be a program name with args. | ||
9434 | set dummy last; ac_word=$2 | ||
9435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9437 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
9438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9439 | else | ||
9440 | case $PROG_LAST in | ||
9441 | [\\/]* | ?:[\\/]*) | ||
9442 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
9443 | ;; | ||
9444 | *) | ||
9445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9446 | for as_dir in $PATH | ||
9447 | do | ||
9448 | IFS=$as_save_IFS | ||
9449 | test -z "$as_dir" && as_dir=. | ||
9450 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9452 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
9453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9454 | break 2 | ||
9455 | fi | ||
9456 | done | ||
9457 | done | ||
9458 | |||
9459 | ;; | ||
9460 | esac | ||
9461 | fi | ||
9462 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
9463 | |||
9464 | if test -n "$PROG_LAST"; then | ||
9465 | echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
9466 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
9467 | else | ||
9468 | echo "$as_me:$LINENO: result: no" >&5 | ||
9469 | echo "${ECHO_T}no" >&6 | ||
9470 | fi | ||
9471 | |||
9472 | if test -z "$PROG_LAST" ; then | ||
9473 | PROG_LAST="undef" | ||
9474 | fi | ||
9475 | |||
9476 | |||
9477 | |||
9478 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
9479 | set dummy lastlog; ac_word=$2 | ||
9480 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9482 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
9483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9484 | else | ||
9485 | case $PROG_LASTLOG in | ||
9486 | [\\/]* | ?:[\\/]*) | ||
9487 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
9488 | ;; | ||
9489 | *) | ||
9490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9491 | for as_dir in $PATH | ||
9492 | do | ||
9493 | IFS=$as_save_IFS | ||
9494 | test -z "$as_dir" && as_dir=. | ||
9495 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9496 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9497 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
9498 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9499 | break 2 | ||
9500 | fi | ||
9501 | done | ||
9502 | done | ||
9503 | |||
9504 | ;; | ||
9505 | esac | ||
9506 | fi | ||
9507 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
9508 | |||
9509 | if test -n "$PROG_LASTLOG"; then | ||
9510 | echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
9511 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
9512 | else | ||
9513 | echo "$as_me:$LINENO: result: no" >&5 | ||
9514 | echo "${ECHO_T}no" >&6 | ||
9515 | fi | ||
9516 | |||
9517 | if test -z "$PROG_LASTLOG" ; then | ||
9518 | PROG_LASTLOG="undef" | ||
9519 | fi | ||
9520 | |||
9521 | |||
9522 | |||
9523 | # Extract the first word of "df", so it can be a program name with args. | ||
9524 | set dummy df; ac_word=$2 | ||
9525 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9526 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9527 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
9528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9529 | else | ||
9530 | case $PROG_DF in | ||
9531 | [\\/]* | ?:[\\/]*) | ||
9532 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
9533 | ;; | ||
9534 | *) | ||
9535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9536 | for as_dir in $PATH | ||
9537 | do | ||
9538 | IFS=$as_save_IFS | ||
9539 | test -z "$as_dir" && as_dir=. | ||
9540 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9541 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9542 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
9543 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9544 | break 2 | ||
9545 | fi | ||
9546 | done | ||
9547 | done | ||
9548 | |||
9549 | ;; | ||
9550 | esac | ||
9551 | fi | ||
9552 | PROG_DF=$ac_cv_path_PROG_DF | ||
9553 | |||
9554 | if test -n "$PROG_DF"; then | ||
9555 | echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
9556 | echo "${ECHO_T}$PROG_DF" >&6 | ||
9557 | else | ||
9558 | echo "$as_me:$LINENO: result: no" >&5 | ||
9559 | echo "${ECHO_T}no" >&6 | ||
9560 | fi | ||
9561 | |||
9562 | if test -z "$PROG_DF" ; then | ||
9563 | PROG_DF="undef" | ||
9564 | fi | ||
9565 | |||
9566 | |||
9567 | |||
9568 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
9569 | set dummy vmstat; ac_word=$2 | ||
9570 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9572 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
9573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9574 | else | ||
9575 | case $PROG_VMSTAT in | ||
9576 | [\\/]* | ?:[\\/]*) | ||
9577 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
9578 | ;; | ||
9579 | *) | ||
9580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9581 | for as_dir in $PATH | ||
9582 | do | ||
9583 | IFS=$as_save_IFS | ||
9584 | test -z "$as_dir" && as_dir=. | ||
9585 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9586 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9587 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
9588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9589 | break 2 | ||
9590 | fi | ||
9591 | done | ||
9592 | done | ||
9593 | |||
9594 | ;; | ||
9595 | esac | ||
9596 | fi | ||
9597 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
9598 | |||
9599 | if test -n "$PROG_VMSTAT"; then | ||
9600 | echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
9601 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
9602 | else | ||
9603 | echo "$as_me:$LINENO: result: no" >&5 | ||
9604 | echo "${ECHO_T}no" >&6 | ||
9605 | fi | ||
9606 | |||
9607 | if test -z "$PROG_VMSTAT" ; then | ||
9608 | PROG_VMSTAT="undef" | ||
9609 | fi | ||
9610 | |||
9611 | |||
9612 | |||
9613 | # Extract the first word of "uptime", so it can be a program name with args. | ||
9614 | set dummy uptime; ac_word=$2 | ||
9615 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9617 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
9618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9619 | else | ||
9620 | case $PROG_UPTIME in | ||
9621 | [\\/]* | ?:[\\/]*) | ||
9622 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
9623 | ;; | ||
9624 | *) | ||
9625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9626 | for as_dir in $PATH | ||
9627 | do | ||
9628 | IFS=$as_save_IFS | ||
9629 | test -z "$as_dir" && as_dir=. | ||
9630 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9631 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9632 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
9633 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9634 | break 2 | ||
9635 | fi | ||
9636 | done | ||
9637 | done | ||
9638 | |||
9639 | ;; | ||
9640 | esac | ||
9641 | fi | ||
9642 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
9643 | |||
9644 | if test -n "$PROG_UPTIME"; then | ||
9645 | echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
9646 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
9647 | else | ||
9648 | echo "$as_me:$LINENO: result: no" >&5 | ||
9649 | echo "${ECHO_T}no" >&6 | ||
9650 | fi | ||
9651 | |||
9652 | if test -z "$PROG_UPTIME" ; then | ||
9653 | PROG_UPTIME="undef" | ||
9654 | fi | ||
9655 | |||
9656 | |||
9657 | |||
9658 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
9659 | set dummy ipcs; ac_word=$2 | ||
9660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9662 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
9663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9664 | else | ||
9665 | case $PROG_IPCS in | ||
9666 | [\\/]* | ?:[\\/]*) | ||
9667 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
9668 | ;; | ||
9669 | *) | ||
9670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9671 | for as_dir in $PATH | ||
9672 | do | ||
9673 | IFS=$as_save_IFS | ||
9674 | test -z "$as_dir" && as_dir=. | ||
9675 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9677 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
9678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9679 | break 2 | ||
9680 | fi | ||
9681 | done | ||
9682 | done | ||
9683 | |||
9684 | ;; | ||
9685 | esac | ||
9686 | fi | ||
9687 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
9688 | |||
9689 | if test -n "$PROG_IPCS"; then | ||
9690 | echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
9691 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
9692 | else | ||
9693 | echo "$as_me:$LINENO: result: no" >&5 | ||
9694 | echo "${ECHO_T}no" >&6 | ||
9695 | fi | ||
9696 | |||
9697 | if test -z "$PROG_IPCS" ; then | ||
9698 | PROG_IPCS="undef" | ||
9699 | fi | ||
9700 | |||
9701 | |||
9702 | |||
9703 | # Extract the first word of "tail", so it can be a program name with args. | ||
9704 | set dummy tail; ac_word=$2 | ||
9705 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9707 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
9708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9709 | else | ||
9710 | case $PROG_TAIL in | ||
9711 | [\\/]* | ?:[\\/]*) | ||
9712 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
9713 | ;; | ||
9714 | *) | ||
9715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9716 | for as_dir in $PATH | ||
9717 | do | ||
9718 | IFS=$as_save_IFS | ||
9719 | test -z "$as_dir" && as_dir=. | ||
9720 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9721 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9722 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
9723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9724 | break 2 | ||
9725 | fi | ||
9726 | done | ||
9727 | done | ||
9728 | |||
9729 | ;; | ||
9730 | esac | ||
9731 | fi | ||
9732 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
9733 | |||
9734 | if test -n "$PROG_TAIL"; then | ||
9735 | echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
9736 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
9737 | else | ||
9738 | echo "$as_me:$LINENO: result: no" >&5 | ||
9739 | echo "${ECHO_T}no" >&6 | ||
9740 | fi | ||
9741 | |||
9742 | if test -z "$PROG_TAIL" ; then | ||
9743 | PROG_TAIL="undef" | ||
9744 | fi | ||
9745 | |||
9746 | |||
9747 | # restore PATH | ||
9748 | PATH=$OPATH | ||
9749 | |||
9750 | # Where does ssh-rand-helper get its randomness from? | ||
9751 | INSTALL_SSH_PRNG_CMDS="" | ||
9752 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
9753 | if test ! -z "$PRNGD_PORT" ; then | ||
9754 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
9755 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
9756 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
9757 | else | ||
9758 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
9759 | RAND_HELPER_CMDHASH=yes | ||
9760 | INSTALL_SSH_PRNG_CMDS="yes" | ||
9761 | fi | ||
9762 | fi | ||
9763 | |||
9764 | |||
9765 | |||
9766 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
9767 | if test ! -z "$SONY" ; then | ||
9768 | LIBS="$LIBS -liberty"; | ||
9769 | fi | ||
9770 | |||
9771 | # Checks for data types | ||
9772 | echo "$as_me:$LINENO: checking for char" >&5 | ||
9773 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
9774 | if test "${ac_cv_type_char+set}" = set; then | ||
9775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9776 | else | ||
9777 | cat >conftest.$ac_ext <<_ACEOF | ||
9778 | #line $LINENO "configure" | ||
9779 | #include "confdefs.h" | ||
9780 | $ac_includes_default | ||
9781 | #ifdef F77_DUMMY_MAIN | ||
9782 | # ifdef __cplusplus | ||
9783 | extern "C" | ||
9784 | # endif | ||
9785 | int F77_DUMMY_MAIN() { return 1; } | ||
9786 | #endif | ||
9787 | int | ||
9788 | main () | ||
9789 | { | ||
9790 | if ((char *) 0) | ||
9791 | return 0; | ||
9792 | if (sizeof (char)) | ||
9793 | return 0; | ||
9794 | ; | ||
9795 | return 0; | ||
9796 | } | ||
9797 | _ACEOF | ||
9798 | rm -f conftest.$ac_objext | ||
9799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9800 | (eval $ac_compile) 2>&5 | ||
9801 | ac_status=$? | ||
9802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9803 | (exit $ac_status); } && | ||
9804 | { ac_try='test -s conftest.$ac_objext' | ||
9805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9806 | (eval $ac_try) 2>&5 | ||
9807 | ac_status=$? | ||
9808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9809 | (exit $ac_status); }; }; then | ||
9810 | ac_cv_type_char=yes | ||
9811 | else | ||
9812 | echo "$as_me: failed program was:" >&5 | ||
9813 | cat conftest.$ac_ext >&5 | ||
9814 | ac_cv_type_char=no | ||
9815 | fi | ||
9816 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9817 | fi | ||
9818 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
9819 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
9820 | |||
9821 | echo "$as_me:$LINENO: checking size of char" >&5 | ||
9822 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
9823 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
9824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9825 | else | ||
9826 | if test "$ac_cv_type_char" = yes; then | ||
9827 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
9828 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
9829 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
9830 | # This bug is HP SR number 8606223364. | ||
9831 | if test "$cross_compiling" = yes; then | ||
9832 | # Depending upon the size, compute the lo and hi bounds. | ||
9833 | cat >conftest.$ac_ext <<_ACEOF | ||
9834 | #line $LINENO "configure" | ||
9835 | #include "confdefs.h" | ||
9836 | $ac_includes_default | ||
9837 | #ifdef F77_DUMMY_MAIN | ||
9838 | # ifdef __cplusplus | ||
9839 | extern "C" | ||
9840 | # endif | ||
9841 | int F77_DUMMY_MAIN() { return 1; } | ||
9842 | #endif | ||
9843 | int | ||
9844 | main () | ||
9845 | { | ||
9846 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | ||
9847 | test_array [0] = 0 | ||
9848 | |||
9849 | ; | ||
9850 | return 0; | ||
9851 | } | ||
9852 | _ACEOF | ||
9853 | rm -f conftest.$ac_objext | ||
9854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9855 | (eval $ac_compile) 2>&5 | ||
9856 | ac_status=$? | ||
9857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9858 | (exit $ac_status); } && | ||
9859 | { ac_try='test -s conftest.$ac_objext' | ||
9860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9861 | (eval $ac_try) 2>&5 | ||
9862 | ac_status=$? | ||
9863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9864 | (exit $ac_status); }; }; then | ||
9865 | ac_lo=0 ac_mid=0 | ||
9866 | while :; do | ||
9867 | cat >conftest.$ac_ext <<_ACEOF | ||
9868 | #line $LINENO "configure" | ||
9869 | #include "confdefs.h" | ||
9870 | $ac_includes_default | ||
9871 | #ifdef F77_DUMMY_MAIN | ||
9872 | # ifdef __cplusplus | ||
9873 | extern "C" | ||
9874 | # endif | ||
9875 | int F77_DUMMY_MAIN() { return 1; } | ||
9876 | #endif | ||
9877 | int | ||
9878 | main () | ||
9879 | { | ||
9880 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
9881 | test_array [0] = 0 | ||
9882 | |||
9883 | ; | ||
9884 | return 0; | ||
9885 | } | ||
9886 | _ACEOF | ||
9887 | rm -f conftest.$ac_objext | ||
9888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9889 | (eval $ac_compile) 2>&5 | ||
9890 | ac_status=$? | ||
9891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9892 | (exit $ac_status); } && | ||
9893 | { ac_try='test -s conftest.$ac_objext' | ||
9894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9895 | (eval $ac_try) 2>&5 | ||
9896 | ac_status=$? | ||
9897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9898 | (exit $ac_status); }; }; then | ||
9899 | ac_hi=$ac_mid; break | ||
9900 | else | ||
9901 | echo "$as_me: failed program was:" >&5 | ||
9902 | cat conftest.$ac_ext >&5 | ||
9903 | ac_lo=`expr $ac_mid + 1` | ||
9904 | if test $ac_lo -le $ac_mid; then | ||
9905 | ac_lo= ac_hi= | ||
9906 | break | ||
9907 | fi | ||
9908 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
9909 | fi | ||
9910 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9911 | done | ||
9912 | else | ||
9913 | echo "$as_me: failed program was:" >&5 | ||
9914 | cat conftest.$ac_ext >&5 | ||
9915 | cat >conftest.$ac_ext <<_ACEOF | ||
9916 | #line $LINENO "configure" | ||
9917 | #include "confdefs.h" | ||
9918 | $ac_includes_default | ||
9919 | #ifdef F77_DUMMY_MAIN | ||
9920 | # ifdef __cplusplus | ||
9921 | extern "C" | ||
9922 | # endif | ||
9923 | int F77_DUMMY_MAIN() { return 1; } | ||
9924 | #endif | ||
9925 | int | ||
9926 | main () | ||
9927 | { | ||
9928 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | ||
9929 | test_array [0] = 0 | ||
9930 | |||
9931 | ; | ||
9932 | return 0; | ||
9933 | } | ||
9934 | _ACEOF | ||
9935 | rm -f conftest.$ac_objext | ||
9936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9937 | (eval $ac_compile) 2>&5 | ||
9938 | ac_status=$? | ||
9939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9940 | (exit $ac_status); } && | ||
9941 | { ac_try='test -s conftest.$ac_objext' | ||
9942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9943 | (eval $ac_try) 2>&5 | ||
9944 | ac_status=$? | ||
9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9946 | (exit $ac_status); }; }; then | ||
9947 | ac_hi=-1 ac_mid=-1 | ||
9948 | while :; do | ||
9949 | cat >conftest.$ac_ext <<_ACEOF | ||
9950 | #line $LINENO "configure" | ||
9951 | #include "confdefs.h" | ||
9952 | $ac_includes_default | ||
9953 | #ifdef F77_DUMMY_MAIN | ||
9954 | # ifdef __cplusplus | ||
9955 | extern "C" | ||
9956 | # endif | ||
9957 | int F77_DUMMY_MAIN() { return 1; } | ||
9958 | #endif | ||
9959 | int | ||
9960 | main () | ||
9961 | { | ||
9962 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | ||
9963 | test_array [0] = 0 | ||
9964 | |||
9965 | ; | ||
9966 | return 0; | ||
9967 | } | ||
9968 | _ACEOF | ||
9969 | rm -f conftest.$ac_objext | ||
9970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9971 | (eval $ac_compile) 2>&5 | ||
9972 | ac_status=$? | ||
9973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9974 | (exit $ac_status); } && | ||
9975 | { ac_try='test -s conftest.$ac_objext' | ||
9976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9977 | (eval $ac_try) 2>&5 | ||
9978 | ac_status=$? | ||
9979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9980 | (exit $ac_status); }; }; then | ||
9981 | ac_lo=$ac_mid; break | ||
9982 | else | ||
9983 | echo "$as_me: failed program was:" >&5 | ||
9984 | cat conftest.$ac_ext >&5 | ||
9985 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
9986 | if test $ac_mid -le $ac_hi; then | ||
9987 | ac_lo= ac_hi= | ||
9988 | break | ||
9989 | fi | ||
9990 | ac_mid=`expr 2 '*' $ac_mid` | ||
9991 | fi | ||
9992 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9993 | done | ||
9994 | else | ||
9995 | echo "$as_me: failed program was:" >&5 | ||
9996 | cat conftest.$ac_ext >&5 | ||
9997 | ac_lo= ac_hi= | ||
9998 | fi | ||
9999 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10000 | fi | ||
10001 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10002 | # Binary search between lo and hi bounds. | ||
10003 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10004 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10005 | cat >conftest.$ac_ext <<_ACEOF | ||
10006 | #line $LINENO "configure" | ||
10007 | #include "confdefs.h" | ||
10008 | $ac_includes_default | ||
10009 | #ifdef F77_DUMMY_MAIN | ||
10010 | # ifdef __cplusplus | ||
10011 | extern "C" | ||
10012 | # endif | ||
10013 | int F77_DUMMY_MAIN() { return 1; } | ||
10014 | #endif | ||
10015 | int | ||
10016 | main () | ||
10017 | { | ||
10018 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
10019 | test_array [0] = 0 | ||
10020 | |||
10021 | ; | ||
10022 | return 0; | ||
10023 | } | ||
10024 | _ACEOF | ||
10025 | rm -f conftest.$ac_objext | ||
10026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10027 | (eval $ac_compile) 2>&5 | ||
10028 | ac_status=$? | ||
10029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10030 | (exit $ac_status); } && | ||
10031 | { ac_try='test -s conftest.$ac_objext' | ||
10032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10033 | (eval $ac_try) 2>&5 | ||
10034 | ac_status=$? | ||
10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10036 | (exit $ac_status); }; }; then | ||
10037 | ac_hi=$ac_mid | ||
10038 | else | ||
10039 | echo "$as_me: failed program was:" >&5 | ||
10040 | cat conftest.$ac_ext >&5 | ||
10041 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
10042 | fi | ||
10043 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10044 | done | ||
10045 | case $ac_lo in | ||
10046 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
10047 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | ||
10048 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | ||
10049 | { (exit 1); exit 1; }; } ;; | ||
10050 | esac | ||
10051 | else | ||
10052 | if test "$cross_compiling" = yes; then | ||
10053 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
10054 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10055 | { (exit 1); exit 1; }; } | ||
10056 | else | ||
10057 | cat >conftest.$ac_ext <<_ACEOF | ||
10058 | #line $LINENO "configure" | ||
10059 | #include "confdefs.h" | ||
10060 | $ac_includes_default | ||
10061 | long longval () { return (long) (sizeof (char)); } | ||
10062 | unsigned long ulongval () { return (long) (sizeof (char)); } | ||
10063 | #include <stdio.h> | ||
10064 | #include <stdlib.h> | ||
10065 | #ifdef F77_DUMMY_MAIN | ||
10066 | # ifdef __cplusplus | ||
10067 | extern "C" | ||
10068 | # endif | ||
10069 | int F77_DUMMY_MAIN() { return 1; } | ||
10070 | #endif | ||
10071 | int | ||
10072 | main () | ||
10073 | { | ||
10074 | |||
10075 | FILE *f = fopen ("conftest.val", "w"); | ||
10076 | if (! f) | ||
10077 | exit (1); | ||
10078 | if (((long) (sizeof (char))) < 0) | ||
10079 | { | ||
10080 | long i = longval (); | ||
10081 | if (i != ((long) (sizeof (char)))) | ||
10082 | exit (1); | ||
10083 | fprintf (f, "%ld\n", i); | ||
10084 | } | ||
10085 | else | ||
10086 | { | ||
10087 | unsigned long i = ulongval (); | ||
10088 | if (i != ((long) (sizeof (char)))) | ||
10089 | exit (1); | ||
10090 | fprintf (f, "%lu\n", i); | ||
10091 | } | ||
10092 | exit (ferror (f) || fclose (f) != 0); | ||
10093 | |||
10094 | ; | ||
10095 | return 0; | ||
10096 | } | ||
10097 | _ACEOF | ||
10098 | rm -f conftest$ac_exeext | ||
10099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10100 | (eval $ac_link) 2>&5 | ||
10101 | ac_status=$? | ||
10102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10103 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10105 | (eval $ac_try) 2>&5 | ||
10106 | ac_status=$? | ||
10107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10108 | (exit $ac_status); }; }; then | ||
10109 | ac_cv_sizeof_char=`cat conftest.val` | ||
10110 | else | ||
10111 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10112 | echo "$as_me: failed program was:" >&5 | ||
10113 | cat conftest.$ac_ext >&5 | ||
10114 | ( exit $ac_status ) | ||
10115 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | ||
10116 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | ||
10117 | { (exit 1); exit 1; }; } | ||
10118 | fi | ||
10119 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10120 | fi | ||
10121 | fi | ||
10122 | rm -f conftest.val | ||
10123 | else | ||
10124 | ac_cv_sizeof_char=0 | ||
10125 | fi | ||
10126 | fi | ||
10127 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
10128 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
10129 | cat >>confdefs.h <<_ACEOF | ||
10130 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
10131 | _ACEOF | ||
10132 | |||
10133 | |||
10134 | echo "$as_me:$LINENO: checking for short int" >&5 | ||
10135 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
10136 | if test "${ac_cv_type_short_int+set}" = set; then | ||
10137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10138 | else | ||
10139 | cat >conftest.$ac_ext <<_ACEOF | ||
10140 | #line $LINENO "configure" | ||
10141 | #include "confdefs.h" | ||
10142 | $ac_includes_default | ||
10143 | #ifdef F77_DUMMY_MAIN | ||
10144 | # ifdef __cplusplus | ||
10145 | extern "C" | ||
10146 | # endif | ||
10147 | int F77_DUMMY_MAIN() { return 1; } | ||
10148 | #endif | ||
10149 | int | ||
10150 | main () | ||
10151 | { | ||
10152 | if ((short int *) 0) | ||
10153 | return 0; | ||
10154 | if (sizeof (short int)) | ||
10155 | return 0; | ||
10156 | ; | ||
10157 | return 0; | ||
10158 | } | ||
10159 | _ACEOF | ||
10160 | rm -f conftest.$ac_objext | ||
10161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10162 | (eval $ac_compile) 2>&5 | ||
10163 | ac_status=$? | ||
10164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10165 | (exit $ac_status); } && | ||
10166 | { ac_try='test -s conftest.$ac_objext' | ||
10167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10168 | (eval $ac_try) 2>&5 | ||
10169 | ac_status=$? | ||
10170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10171 | (exit $ac_status); }; }; then | ||
10172 | ac_cv_type_short_int=yes | ||
10173 | else | ||
10174 | echo "$as_me: failed program was:" >&5 | ||
10175 | cat conftest.$ac_ext >&5 | ||
10176 | ac_cv_type_short_int=no | ||
10177 | fi | ||
10178 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10179 | fi | ||
10180 | echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
10181 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
10182 | |||
10183 | echo "$as_me:$LINENO: checking size of short int" >&5 | ||
10184 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
10185 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
10186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10187 | else | ||
10188 | if test "$ac_cv_type_short_int" = yes; then | ||
10189 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10190 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10191 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10192 | # This bug is HP SR number 8606223364. | ||
10193 | if test "$cross_compiling" = yes; then | ||
10194 | # Depending upon the size, compute the lo and hi bounds. | ||
10195 | cat >conftest.$ac_ext <<_ACEOF | ||
10196 | #line $LINENO "configure" | ||
10197 | #include "confdefs.h" | ||
10198 | $ac_includes_default | ||
10199 | #ifdef F77_DUMMY_MAIN | ||
10200 | # ifdef __cplusplus | ||
10201 | extern "C" | ||
10202 | # endif | ||
10203 | int F77_DUMMY_MAIN() { return 1; } | ||
10204 | #endif | ||
10205 | int | ||
10206 | main () | ||
10207 | { | ||
10208 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)]; | ||
10209 | test_array [0] = 0 | ||
10210 | |||
10211 | ; | ||
10212 | return 0; | ||
10213 | } | ||
10214 | _ACEOF | ||
10215 | rm -f conftest.$ac_objext | ||
10216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10217 | (eval $ac_compile) 2>&5 | ||
10218 | ac_status=$? | ||
10219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10220 | (exit $ac_status); } && | ||
10221 | { ac_try='test -s conftest.$ac_objext' | ||
10222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10223 | (eval $ac_try) 2>&5 | ||
10224 | ac_status=$? | ||
10225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10226 | (exit $ac_status); }; }; then | ||
10227 | ac_lo=0 ac_mid=0 | ||
10228 | while :; do | ||
10229 | cat >conftest.$ac_ext <<_ACEOF | ||
10230 | #line $LINENO "configure" | ||
10231 | #include "confdefs.h" | ||
10232 | $ac_includes_default | ||
10233 | #ifdef F77_DUMMY_MAIN | ||
10234 | # ifdef __cplusplus | ||
10235 | extern "C" | ||
10236 | # endif | ||
10237 | int F77_DUMMY_MAIN() { return 1; } | ||
10238 | #endif | ||
10239 | int | ||
10240 | main () | ||
10241 | { | ||
10242 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
10243 | test_array [0] = 0 | ||
10244 | |||
10245 | ; | ||
10246 | return 0; | ||
10247 | } | ||
10248 | _ACEOF | ||
10249 | rm -f conftest.$ac_objext | ||
10250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10251 | (eval $ac_compile) 2>&5 | ||
10252 | ac_status=$? | ||
10253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10254 | (exit $ac_status); } && | ||
10255 | { ac_try='test -s conftest.$ac_objext' | ||
10256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10257 | (eval $ac_try) 2>&5 | ||
10258 | ac_status=$? | ||
10259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10260 | (exit $ac_status); }; }; then | ||
10261 | ac_hi=$ac_mid; break | ||
10262 | else | ||
10263 | echo "$as_me: failed program was:" >&5 | ||
10264 | cat conftest.$ac_ext >&5 | ||
10265 | ac_lo=`expr $ac_mid + 1` | ||
10266 | if test $ac_lo -le $ac_mid; then | ||
10267 | ac_lo= ac_hi= | ||
10268 | break | ||
10269 | fi | ||
10270 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10271 | fi | ||
10272 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10273 | done | ||
10274 | else | ||
10275 | echo "$as_me: failed program was:" >&5 | ||
10276 | cat conftest.$ac_ext >&5 | ||
10277 | cat >conftest.$ac_ext <<_ACEOF | ||
10278 | #line $LINENO "configure" | ||
10279 | #include "confdefs.h" | ||
10280 | $ac_includes_default | ||
10281 | #ifdef F77_DUMMY_MAIN | ||
10282 | # ifdef __cplusplus | ||
10283 | extern "C" | ||
10284 | # endif | ||
10285 | int F77_DUMMY_MAIN() { return 1; } | ||
10286 | #endif | ||
10287 | int | ||
10288 | main () | ||
10289 | { | ||
10290 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)]; | ||
10291 | test_array [0] = 0 | ||
10292 | |||
10293 | ; | ||
10294 | return 0; | ||
10295 | } | ||
10296 | _ACEOF | ||
10297 | rm -f conftest.$ac_objext | ||
10298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10299 | (eval $ac_compile) 2>&5 | ||
10300 | ac_status=$? | ||
10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10302 | (exit $ac_status); } && | ||
10303 | { ac_try='test -s conftest.$ac_objext' | ||
10304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10305 | (eval $ac_try) 2>&5 | ||
10306 | ac_status=$? | ||
10307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10308 | (exit $ac_status); }; }; then | ||
10309 | ac_hi=-1 ac_mid=-1 | ||
10310 | while :; do | ||
10311 | cat >conftest.$ac_ext <<_ACEOF | ||
10312 | #line $LINENO "configure" | ||
10313 | #include "confdefs.h" | ||
10314 | $ac_includes_default | ||
10315 | #ifdef F77_DUMMY_MAIN | ||
10316 | # ifdef __cplusplus | ||
10317 | extern "C" | ||
10318 | # endif | ||
10319 | int F77_DUMMY_MAIN() { return 1; } | ||
10320 | #endif | ||
10321 | int | ||
10322 | main () | ||
10323 | { | ||
10324 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)]; | ||
10325 | test_array [0] = 0 | ||
10326 | |||
10327 | ; | ||
10328 | return 0; | ||
10329 | } | ||
10330 | _ACEOF | ||
10331 | rm -f conftest.$ac_objext | ||
10332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10333 | (eval $ac_compile) 2>&5 | ||
10334 | ac_status=$? | ||
10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10336 | (exit $ac_status); } && | ||
10337 | { ac_try='test -s conftest.$ac_objext' | ||
10338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10339 | (eval $ac_try) 2>&5 | ||
10340 | ac_status=$? | ||
10341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10342 | (exit $ac_status); }; }; then | ||
10343 | ac_lo=$ac_mid; break | ||
10344 | else | ||
10345 | echo "$as_me: failed program was:" >&5 | ||
10346 | cat conftest.$ac_ext >&5 | ||
10347 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
10348 | if test $ac_mid -le $ac_hi; then | ||
10349 | ac_lo= ac_hi= | ||
10350 | break | ||
10351 | fi | ||
10352 | ac_mid=`expr 2 '*' $ac_mid` | ||
10353 | fi | ||
10354 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10355 | done | ||
10356 | else | ||
10357 | echo "$as_me: failed program was:" >&5 | ||
10358 | cat conftest.$ac_ext >&5 | ||
10359 | ac_lo= ac_hi= | ||
10360 | fi | ||
10361 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10362 | fi | ||
10363 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10364 | # Binary search between lo and hi bounds. | ||
10365 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10366 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10367 | cat >conftest.$ac_ext <<_ACEOF | ||
10368 | #line $LINENO "configure" | ||
10369 | #include "confdefs.h" | ||
10370 | $ac_includes_default | ||
10371 | #ifdef F77_DUMMY_MAIN | ||
10372 | # ifdef __cplusplus | ||
10373 | extern "C" | ||
10374 | # endif | ||
10375 | int F77_DUMMY_MAIN() { return 1; } | ||
10376 | #endif | ||
10377 | int | ||
10378 | main () | ||
10379 | { | ||
10380 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
10381 | test_array [0] = 0 | ||
10382 | |||
10383 | ; | ||
10384 | return 0; | ||
10385 | } | ||
10386 | _ACEOF | ||
10387 | rm -f conftest.$ac_objext | ||
10388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10389 | (eval $ac_compile) 2>&5 | ||
10390 | ac_status=$? | ||
10391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10392 | (exit $ac_status); } && | ||
10393 | { ac_try='test -s conftest.$ac_objext' | ||
10394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10395 | (eval $ac_try) 2>&5 | ||
10396 | ac_status=$? | ||
10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10398 | (exit $ac_status); }; }; then | ||
10399 | ac_hi=$ac_mid | ||
10400 | else | ||
10401 | echo "$as_me: failed program was:" >&5 | ||
10402 | cat conftest.$ac_ext >&5 | ||
10403 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
10404 | fi | ||
10405 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10406 | done | ||
10407 | case $ac_lo in | ||
10408 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
10409 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5 | ||
10410 | echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;} | ||
10411 | { (exit 1); exit 1; }; } ;; | ||
10412 | esac | ||
10413 | else | ||
10414 | if test "$cross_compiling" = yes; then | ||
10415 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
10416 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10417 | { (exit 1); exit 1; }; } | ||
10418 | else | ||
10419 | cat >conftest.$ac_ext <<_ACEOF | ||
10420 | #line $LINENO "configure" | ||
10421 | #include "confdefs.h" | ||
10422 | $ac_includes_default | ||
10423 | long longval () { return (long) (sizeof (short int)); } | ||
10424 | unsigned long ulongval () { return (long) (sizeof (short int)); } | ||
10425 | #include <stdio.h> | ||
10426 | #include <stdlib.h> | ||
10427 | #ifdef F77_DUMMY_MAIN | ||
10428 | # ifdef __cplusplus | ||
10429 | extern "C" | ||
10430 | # endif | ||
10431 | int F77_DUMMY_MAIN() { return 1; } | ||
10432 | #endif | ||
10433 | int | ||
10434 | main () | ||
10435 | { | ||
10436 | |||
10437 | FILE *f = fopen ("conftest.val", "w"); | ||
10438 | if (! f) | ||
10439 | exit (1); | ||
10440 | if (((long) (sizeof (short int))) < 0) | ||
10441 | { | ||
10442 | long i = longval (); | ||
10443 | if (i != ((long) (sizeof (short int)))) | ||
10444 | exit (1); | ||
10445 | fprintf (f, "%ld\n", i); | ||
10446 | } | ||
10447 | else | ||
10448 | { | ||
10449 | unsigned long i = ulongval (); | ||
10450 | if (i != ((long) (sizeof (short int)))) | ||
10451 | exit (1); | ||
10452 | fprintf (f, "%lu\n", i); | ||
10453 | } | ||
10454 | exit (ferror (f) || fclose (f) != 0); | ||
10455 | |||
10456 | ; | ||
10457 | return 0; | ||
10458 | } | ||
10459 | _ACEOF | ||
10460 | rm -f conftest$ac_exeext | ||
10461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10462 | (eval $ac_link) 2>&5 | ||
10463 | ac_status=$? | ||
10464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10465 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10467 | (eval $ac_try) 2>&5 | ||
10468 | ac_status=$? | ||
10469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10470 | (exit $ac_status); }; }; then | ||
10471 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
10472 | else | ||
10473 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10474 | echo "$as_me: failed program was:" >&5 | ||
10475 | cat conftest.$ac_ext >&5 | ||
10476 | ( exit $ac_status ) | ||
10477 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5 | ||
10478 | echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;} | ||
10479 | { (exit 1); exit 1; }; } | ||
10480 | fi | ||
10481 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10482 | fi | ||
10483 | fi | ||
10484 | rm -f conftest.val | ||
10485 | else | ||
10486 | ac_cv_sizeof_short_int=0 | ||
10487 | fi | ||
10488 | fi | ||
10489 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
10490 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
10491 | cat >>confdefs.h <<_ACEOF | ||
10492 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
10493 | _ACEOF | ||
10494 | |||
10495 | |||
10496 | echo "$as_me:$LINENO: checking for int" >&5 | ||
10497 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
10498 | if test "${ac_cv_type_int+set}" = set; then | ||
10499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10500 | else | ||
10501 | cat >conftest.$ac_ext <<_ACEOF | ||
10502 | #line $LINENO "configure" | ||
10503 | #include "confdefs.h" | ||
10504 | $ac_includes_default | ||
10505 | #ifdef F77_DUMMY_MAIN | ||
10506 | # ifdef __cplusplus | ||
10507 | extern "C" | ||
10508 | # endif | ||
10509 | int F77_DUMMY_MAIN() { return 1; } | ||
10510 | #endif | ||
10511 | int | ||
10512 | main () | ||
10513 | { | ||
10514 | if ((int *) 0) | ||
10515 | return 0; | ||
10516 | if (sizeof (int)) | ||
10517 | return 0; | ||
10518 | ; | ||
10519 | return 0; | ||
10520 | } | ||
10521 | _ACEOF | ||
10522 | rm -f conftest.$ac_objext | ||
10523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10524 | (eval $ac_compile) 2>&5 | ||
10525 | ac_status=$? | ||
10526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10527 | (exit $ac_status); } && | ||
10528 | { ac_try='test -s conftest.$ac_objext' | ||
10529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10530 | (eval $ac_try) 2>&5 | ||
10531 | ac_status=$? | ||
10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10533 | (exit $ac_status); }; }; then | ||
10534 | ac_cv_type_int=yes | ||
10535 | else | ||
10536 | echo "$as_me: failed program was:" >&5 | ||
10537 | cat conftest.$ac_ext >&5 | ||
10538 | ac_cv_type_int=no | ||
10539 | fi | ||
10540 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10541 | fi | ||
10542 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
10543 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
10544 | |||
10545 | echo "$as_me:$LINENO: checking size of int" >&5 | ||
10546 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
10547 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
10548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10549 | else | ||
10550 | if test "$ac_cv_type_int" = yes; then | ||
10551 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10552 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10553 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10554 | # This bug is HP SR number 8606223364. | ||
10555 | if test "$cross_compiling" = yes; then | ||
10556 | # Depending upon the size, compute the lo and hi bounds. | ||
10557 | cat >conftest.$ac_ext <<_ACEOF | ||
10558 | #line $LINENO "configure" | ||
10559 | #include "confdefs.h" | ||
10560 | $ac_includes_default | ||
10561 | #ifdef F77_DUMMY_MAIN | ||
10562 | # ifdef __cplusplus | ||
10563 | extern "C" | ||
10564 | # endif | ||
10565 | int F77_DUMMY_MAIN() { return 1; } | ||
10566 | #endif | ||
10567 | int | ||
10568 | main () | ||
10569 | { | ||
10570 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | ||
10571 | test_array [0] = 0 | ||
10572 | |||
10573 | ; | ||
10574 | return 0; | ||
10575 | } | ||
10576 | _ACEOF | ||
10577 | rm -f conftest.$ac_objext | ||
10578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10579 | (eval $ac_compile) 2>&5 | ||
10580 | ac_status=$? | ||
10581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10582 | (exit $ac_status); } && | ||
10583 | { ac_try='test -s conftest.$ac_objext' | ||
10584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10585 | (eval $ac_try) 2>&5 | ||
10586 | ac_status=$? | ||
10587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10588 | (exit $ac_status); }; }; then | ||
10589 | ac_lo=0 ac_mid=0 | ||
10590 | while :; do | ||
10591 | cat >conftest.$ac_ext <<_ACEOF | ||
10592 | #line $LINENO "configure" | ||
10593 | #include "confdefs.h" | ||
10594 | $ac_includes_default | ||
10595 | #ifdef F77_DUMMY_MAIN | ||
10596 | # ifdef __cplusplus | ||
10597 | extern "C" | ||
10598 | # endif | ||
10599 | int F77_DUMMY_MAIN() { return 1; } | ||
10600 | #endif | ||
10601 | int | ||
10602 | main () | ||
10603 | { | ||
10604 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
10605 | test_array [0] = 0 | ||
10606 | |||
10607 | ; | ||
10608 | return 0; | ||
10609 | } | ||
10610 | _ACEOF | ||
10611 | rm -f conftest.$ac_objext | ||
10612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10613 | (eval $ac_compile) 2>&5 | ||
10614 | ac_status=$? | ||
10615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10616 | (exit $ac_status); } && | ||
10617 | { ac_try='test -s conftest.$ac_objext' | ||
10618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10619 | (eval $ac_try) 2>&5 | ||
10620 | ac_status=$? | ||
10621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10622 | (exit $ac_status); }; }; then | ||
10623 | ac_hi=$ac_mid; break | ||
10624 | else | ||
10625 | echo "$as_me: failed program was:" >&5 | ||
10626 | cat conftest.$ac_ext >&5 | ||
10627 | ac_lo=`expr $ac_mid + 1` | ||
10628 | if test $ac_lo -le $ac_mid; then | ||
10629 | ac_lo= ac_hi= | ||
10630 | break | ||
10631 | fi | ||
10632 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10633 | fi | ||
10634 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10635 | done | ||
10636 | else | ||
10637 | echo "$as_me: failed program was:" >&5 | ||
10638 | cat conftest.$ac_ext >&5 | ||
10639 | cat >conftest.$ac_ext <<_ACEOF | ||
10640 | #line $LINENO "configure" | ||
10641 | #include "confdefs.h" | ||
10642 | $ac_includes_default | ||
10643 | #ifdef F77_DUMMY_MAIN | ||
10644 | # ifdef __cplusplus | ||
10645 | extern "C" | ||
10646 | # endif | ||
10647 | int F77_DUMMY_MAIN() { return 1; } | ||
10648 | #endif | ||
10649 | int | ||
10650 | main () | ||
10651 | { | ||
10652 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | ||
10653 | test_array [0] = 0 | ||
10654 | |||
10655 | ; | ||
10656 | return 0; | ||
10657 | } | ||
10658 | _ACEOF | ||
10659 | rm -f conftest.$ac_objext | ||
10660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10661 | (eval $ac_compile) 2>&5 | ||
10662 | ac_status=$? | ||
10663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10664 | (exit $ac_status); } && | ||
10665 | { ac_try='test -s conftest.$ac_objext' | ||
10666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10667 | (eval $ac_try) 2>&5 | ||
10668 | ac_status=$? | ||
10669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10670 | (exit $ac_status); }; }; then | ||
10671 | ac_hi=-1 ac_mid=-1 | ||
10672 | while :; do | ||
10673 | cat >conftest.$ac_ext <<_ACEOF | ||
10674 | #line $LINENO "configure" | ||
10675 | #include "confdefs.h" | ||
10676 | $ac_includes_default | ||
10677 | #ifdef F77_DUMMY_MAIN | ||
10678 | # ifdef __cplusplus | ||
10679 | extern "C" | ||
10680 | # endif | ||
10681 | int F77_DUMMY_MAIN() { return 1; } | ||
10682 | #endif | ||
10683 | int | ||
10684 | main () | ||
10685 | { | ||
10686 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | ||
10687 | test_array [0] = 0 | ||
10688 | |||
10689 | ; | ||
10690 | return 0; | ||
10691 | } | ||
10692 | _ACEOF | ||
10693 | rm -f conftest.$ac_objext | ||
10694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10695 | (eval $ac_compile) 2>&5 | ||
10696 | ac_status=$? | ||
10697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10698 | (exit $ac_status); } && | ||
10699 | { ac_try='test -s conftest.$ac_objext' | ||
10700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10701 | (eval $ac_try) 2>&5 | ||
10702 | ac_status=$? | ||
10703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10704 | (exit $ac_status); }; }; then | ||
10705 | ac_lo=$ac_mid; break | ||
10706 | else | ||
10707 | echo "$as_me: failed program was:" >&5 | ||
10708 | cat conftest.$ac_ext >&5 | ||
10709 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
10710 | if test $ac_mid -le $ac_hi; then | ||
10711 | ac_lo= ac_hi= | ||
10712 | break | ||
10713 | fi | ||
10714 | ac_mid=`expr 2 '*' $ac_mid` | ||
10715 | fi | ||
10716 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10717 | done | ||
10718 | else | ||
10719 | echo "$as_me: failed program was:" >&5 | ||
10720 | cat conftest.$ac_ext >&5 | ||
10721 | ac_lo= ac_hi= | ||
10722 | fi | ||
10723 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10724 | fi | ||
10725 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10726 | # Binary search between lo and hi bounds. | ||
10727 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10728 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10729 | cat >conftest.$ac_ext <<_ACEOF | ||
10730 | #line $LINENO "configure" | ||
10731 | #include "confdefs.h" | ||
10732 | $ac_includes_default | ||
10733 | #ifdef F77_DUMMY_MAIN | ||
10734 | # ifdef __cplusplus | ||
10735 | extern "C" | ||
10736 | # endif | ||
10737 | int F77_DUMMY_MAIN() { return 1; } | ||
10738 | #endif | ||
10739 | int | ||
10740 | main () | ||
10741 | { | ||
10742 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
10743 | test_array [0] = 0 | ||
10744 | |||
10745 | ; | ||
10746 | return 0; | ||
10747 | } | ||
10748 | _ACEOF | ||
10749 | rm -f conftest.$ac_objext | ||
10750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10751 | (eval $ac_compile) 2>&5 | ||
10752 | ac_status=$? | ||
10753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10754 | (exit $ac_status); } && | ||
10755 | { ac_try='test -s conftest.$ac_objext' | ||
10756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10757 | (eval $ac_try) 2>&5 | ||
10758 | ac_status=$? | ||
10759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10760 | (exit $ac_status); }; }; then | ||
10761 | ac_hi=$ac_mid | ||
10762 | else | ||
10763 | echo "$as_me: failed program was:" >&5 | ||
10764 | cat conftest.$ac_ext >&5 | ||
10765 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
10766 | fi | ||
10767 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10768 | done | ||
10769 | case $ac_lo in | ||
10770 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
10771 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | ||
10772 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | ||
10773 | { (exit 1); exit 1; }; } ;; | ||
10774 | esac | ||
10775 | else | ||
10776 | if test "$cross_compiling" = yes; then | ||
10777 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
10778 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10779 | { (exit 1); exit 1; }; } | ||
10780 | else | ||
10781 | cat >conftest.$ac_ext <<_ACEOF | ||
10782 | #line $LINENO "configure" | ||
10783 | #include "confdefs.h" | ||
10784 | $ac_includes_default | ||
10785 | long longval () { return (long) (sizeof (int)); } | ||
10786 | unsigned long ulongval () { return (long) (sizeof (int)); } | ||
10787 | #include <stdio.h> | ||
10788 | #include <stdlib.h> | ||
10789 | #ifdef F77_DUMMY_MAIN | ||
10790 | # ifdef __cplusplus | ||
10791 | extern "C" | ||
10792 | # endif | ||
10793 | int F77_DUMMY_MAIN() { return 1; } | ||
10794 | #endif | ||
10795 | int | ||
10796 | main () | ||
10797 | { | ||
10798 | |||
10799 | FILE *f = fopen ("conftest.val", "w"); | ||
10800 | if (! f) | ||
10801 | exit (1); | ||
10802 | if (((long) (sizeof (int))) < 0) | ||
10803 | { | ||
10804 | long i = longval (); | ||
10805 | if (i != ((long) (sizeof (int)))) | ||
10806 | exit (1); | ||
10807 | fprintf (f, "%ld\n", i); | ||
10808 | } | ||
10809 | else | ||
10810 | { | ||
10811 | unsigned long i = ulongval (); | ||
10812 | if (i != ((long) (sizeof (int)))) | ||
10813 | exit (1); | ||
10814 | fprintf (f, "%lu\n", i); | ||
10815 | } | ||
10816 | exit (ferror (f) || fclose (f) != 0); | ||
10817 | |||
10818 | ; | ||
10819 | return 0; | ||
10820 | } | ||
10821 | _ACEOF | ||
10822 | rm -f conftest$ac_exeext | ||
10823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10824 | (eval $ac_link) 2>&5 | ||
10825 | ac_status=$? | ||
10826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10827 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10829 | (eval $ac_try) 2>&5 | ||
10830 | ac_status=$? | ||
10831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10832 | (exit $ac_status); }; }; then | ||
10833 | ac_cv_sizeof_int=`cat conftest.val` | ||
10834 | else | ||
10835 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10836 | echo "$as_me: failed program was:" >&5 | ||
10837 | cat conftest.$ac_ext >&5 | ||
10838 | ( exit $ac_status ) | ||
10839 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | ||
10840 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | ||
10841 | { (exit 1); exit 1; }; } | ||
10842 | fi | ||
10843 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10844 | fi | ||
10845 | fi | ||
10846 | rm -f conftest.val | ||
10847 | else | ||
10848 | ac_cv_sizeof_int=0 | ||
10849 | fi | ||
10850 | fi | ||
10851 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
10852 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
10853 | cat >>confdefs.h <<_ACEOF | ||
10854 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
10855 | _ACEOF | ||
10856 | |||
10857 | |||
10858 | echo "$as_me:$LINENO: checking for long int" >&5 | ||
10859 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
10860 | if test "${ac_cv_type_long_int+set}" = set; then | ||
10861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10862 | else | ||
10863 | cat >conftest.$ac_ext <<_ACEOF | ||
10864 | #line $LINENO "configure" | ||
10865 | #include "confdefs.h" | ||
10866 | $ac_includes_default | ||
10867 | #ifdef F77_DUMMY_MAIN | ||
10868 | # ifdef __cplusplus | ||
10869 | extern "C" | ||
10870 | # endif | ||
10871 | int F77_DUMMY_MAIN() { return 1; } | ||
10872 | #endif | ||
10873 | int | ||
10874 | main () | ||
10875 | { | ||
10876 | if ((long int *) 0) | ||
10877 | return 0; | ||
10878 | if (sizeof (long int)) | ||
10879 | return 0; | ||
10880 | ; | ||
10881 | return 0; | ||
10882 | } | ||
10883 | _ACEOF | ||
10884 | rm -f conftest.$ac_objext | ||
10885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10886 | (eval $ac_compile) 2>&5 | ||
10887 | ac_status=$? | ||
10888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10889 | (exit $ac_status); } && | ||
10890 | { ac_try='test -s conftest.$ac_objext' | ||
10891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10892 | (eval $ac_try) 2>&5 | ||
10893 | ac_status=$? | ||
10894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10895 | (exit $ac_status); }; }; then | ||
10896 | ac_cv_type_long_int=yes | ||
10897 | else | ||
10898 | echo "$as_me: failed program was:" >&5 | ||
10899 | cat conftest.$ac_ext >&5 | ||
10900 | ac_cv_type_long_int=no | ||
10901 | fi | ||
10902 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10903 | fi | ||
10904 | echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
10905 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
10906 | |||
10907 | echo "$as_me:$LINENO: checking size of long int" >&5 | ||
10908 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
10909 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
10910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10911 | else | ||
10912 | if test "$ac_cv_type_long_int" = yes; then | ||
10913 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10914 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10915 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10916 | # This bug is HP SR number 8606223364. | ||
10917 | if test "$cross_compiling" = yes; then | ||
10918 | # Depending upon the size, compute the lo and hi bounds. | ||
10919 | cat >conftest.$ac_ext <<_ACEOF | ||
10920 | #line $LINENO "configure" | ||
10921 | #include "confdefs.h" | ||
10922 | $ac_includes_default | ||
10923 | #ifdef F77_DUMMY_MAIN | ||
10924 | # ifdef __cplusplus | ||
10925 | extern "C" | ||
10926 | # endif | ||
10927 | int F77_DUMMY_MAIN() { return 1; } | ||
10928 | #endif | ||
10929 | int | ||
10930 | main () | ||
10931 | { | ||
10932 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)]; | ||
10933 | test_array [0] = 0 | ||
10934 | |||
10935 | ; | ||
10936 | return 0; | ||
10937 | } | ||
10938 | _ACEOF | ||
10939 | rm -f conftest.$ac_objext | ||
10940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10941 | (eval $ac_compile) 2>&5 | ||
10942 | ac_status=$? | ||
10943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10944 | (exit $ac_status); } && | ||
10945 | { ac_try='test -s conftest.$ac_objext' | ||
10946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10947 | (eval $ac_try) 2>&5 | ||
10948 | ac_status=$? | ||
10949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10950 | (exit $ac_status); }; }; then | ||
10951 | ac_lo=0 ac_mid=0 | ||
10952 | while :; do | ||
10953 | cat >conftest.$ac_ext <<_ACEOF | ||
10954 | #line $LINENO "configure" | ||
10955 | #include "confdefs.h" | ||
10956 | $ac_includes_default | ||
10957 | #ifdef F77_DUMMY_MAIN | ||
10958 | # ifdef __cplusplus | ||
10959 | extern "C" | ||
10960 | # endif | ||
10961 | int F77_DUMMY_MAIN() { return 1; } | ||
10962 | #endif | ||
10963 | int | ||
10964 | main () | ||
10965 | { | ||
10966 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
10967 | test_array [0] = 0 | ||
10968 | |||
10969 | ; | ||
10970 | return 0; | ||
10971 | } | ||
10972 | _ACEOF | ||
10973 | rm -f conftest.$ac_objext | ||
10974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10975 | (eval $ac_compile) 2>&5 | ||
10976 | ac_status=$? | ||
10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10978 | (exit $ac_status); } && | ||
10979 | { ac_try='test -s conftest.$ac_objext' | ||
10980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10981 | (eval $ac_try) 2>&5 | ||
10982 | ac_status=$? | ||
10983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10984 | (exit $ac_status); }; }; then | ||
10985 | ac_hi=$ac_mid; break | ||
10986 | else | ||
10987 | echo "$as_me: failed program was:" >&5 | ||
10988 | cat conftest.$ac_ext >&5 | ||
10989 | ac_lo=`expr $ac_mid + 1` | ||
10990 | if test $ac_lo -le $ac_mid; then | ||
10991 | ac_lo= ac_hi= | ||
10992 | break | ||
10993 | fi | ||
10994 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10995 | fi | ||
10996 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10997 | done | ||
10998 | else | ||
10999 | echo "$as_me: failed program was:" >&5 | ||
11000 | cat conftest.$ac_ext >&5 | ||
11001 | cat >conftest.$ac_ext <<_ACEOF | ||
11002 | #line $LINENO "configure" | ||
11003 | #include "confdefs.h" | ||
11004 | $ac_includes_default | ||
11005 | #ifdef F77_DUMMY_MAIN | ||
11006 | # ifdef __cplusplus | ||
11007 | extern "C" | ||
11008 | # endif | ||
11009 | int F77_DUMMY_MAIN() { return 1; } | ||
11010 | #endif | ||
11011 | int | ||
11012 | main () | ||
11013 | { | ||
11014 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)]; | ||
11015 | test_array [0] = 0 | ||
11016 | |||
11017 | ; | ||
11018 | return 0; | ||
11019 | } | ||
11020 | _ACEOF | ||
11021 | rm -f conftest.$ac_objext | ||
11022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11023 | (eval $ac_compile) 2>&5 | ||
11024 | ac_status=$? | ||
11025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11026 | (exit $ac_status); } && | ||
11027 | { ac_try='test -s conftest.$ac_objext' | ||
11028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11029 | (eval $ac_try) 2>&5 | ||
11030 | ac_status=$? | ||
11031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11032 | (exit $ac_status); }; }; then | ||
11033 | ac_hi=-1 ac_mid=-1 | ||
11034 | while :; do | ||
11035 | cat >conftest.$ac_ext <<_ACEOF | ||
11036 | #line $LINENO "configure" | ||
11037 | #include "confdefs.h" | ||
11038 | $ac_includes_default | ||
11039 | #ifdef F77_DUMMY_MAIN | ||
11040 | # ifdef __cplusplus | ||
11041 | extern "C" | ||
11042 | # endif | ||
11043 | int F77_DUMMY_MAIN() { return 1; } | ||
11044 | #endif | ||
11045 | int | ||
11046 | main () | ||
11047 | { | ||
11048 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)]; | ||
11049 | test_array [0] = 0 | ||
11050 | |||
11051 | ; | ||
11052 | return 0; | ||
11053 | } | ||
11054 | _ACEOF | ||
11055 | rm -f conftest.$ac_objext | ||
11056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11057 | (eval $ac_compile) 2>&5 | ||
11058 | ac_status=$? | ||
11059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11060 | (exit $ac_status); } && | ||
11061 | { ac_try='test -s conftest.$ac_objext' | ||
11062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11063 | (eval $ac_try) 2>&5 | ||
11064 | ac_status=$? | ||
11065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11066 | (exit $ac_status); }; }; then | ||
11067 | ac_lo=$ac_mid; break | ||
11068 | else | ||
11069 | echo "$as_me: failed program was:" >&5 | ||
11070 | cat conftest.$ac_ext >&5 | ||
11071 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
11072 | if test $ac_mid -le $ac_hi; then | ||
11073 | ac_lo= ac_hi= | ||
11074 | break | ||
11075 | fi | ||
11076 | ac_mid=`expr 2 '*' $ac_mid` | ||
11077 | fi | ||
11078 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11079 | done | ||
11080 | else | ||
11081 | echo "$as_me: failed program was:" >&5 | ||
11082 | cat conftest.$ac_ext >&5 | ||
11083 | ac_lo= ac_hi= | ||
11084 | fi | ||
11085 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11086 | fi | ||
11087 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11088 | # Binary search between lo and hi bounds. | ||
11089 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11090 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11091 | cat >conftest.$ac_ext <<_ACEOF | ||
11092 | #line $LINENO "configure" | ||
11093 | #include "confdefs.h" | ||
11094 | $ac_includes_default | ||
11095 | #ifdef F77_DUMMY_MAIN | ||
11096 | # ifdef __cplusplus | ||
11097 | extern "C" | ||
11098 | # endif | ||
11099 | int F77_DUMMY_MAIN() { return 1; } | ||
11100 | #endif | ||
11101 | int | ||
11102 | main () | ||
11103 | { | ||
11104 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
11105 | test_array [0] = 0 | ||
11106 | |||
11107 | ; | ||
11108 | return 0; | ||
11109 | } | ||
11110 | _ACEOF | ||
11111 | rm -f conftest.$ac_objext | ||
11112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11113 | (eval $ac_compile) 2>&5 | ||
11114 | ac_status=$? | ||
11115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11116 | (exit $ac_status); } && | ||
11117 | { ac_try='test -s conftest.$ac_objext' | ||
11118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11119 | (eval $ac_try) 2>&5 | ||
11120 | ac_status=$? | ||
11121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11122 | (exit $ac_status); }; }; then | ||
11123 | ac_hi=$ac_mid | ||
11124 | else | ||
11125 | echo "$as_me: failed program was:" >&5 | ||
11126 | cat conftest.$ac_ext >&5 | ||
11127 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
11128 | fi | ||
11129 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11130 | done | ||
11131 | case $ac_lo in | ||
11132 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
11133 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5 | ||
11134 | echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;} | ||
11135 | { (exit 1); exit 1; }; } ;; | ||
11136 | esac | ||
11137 | else | ||
11138 | if test "$cross_compiling" = yes; then | ||
11139 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
11140 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11141 | { (exit 1); exit 1; }; } | ||
11142 | else | ||
11143 | cat >conftest.$ac_ext <<_ACEOF | ||
11144 | #line $LINENO "configure" | ||
11145 | #include "confdefs.h" | ||
11146 | $ac_includes_default | ||
11147 | long longval () { return (long) (sizeof (long int)); } | ||
11148 | unsigned long ulongval () { return (long) (sizeof (long int)); } | ||
11149 | #include <stdio.h> | ||
11150 | #include <stdlib.h> | ||
11151 | #ifdef F77_DUMMY_MAIN | ||
11152 | # ifdef __cplusplus | ||
11153 | extern "C" | ||
11154 | # endif | ||
11155 | int F77_DUMMY_MAIN() { return 1; } | ||
11156 | #endif | ||
11157 | int | ||
11158 | main () | ||
11159 | { | ||
11160 | |||
11161 | FILE *f = fopen ("conftest.val", "w"); | ||
11162 | if (! f) | ||
11163 | exit (1); | ||
11164 | if (((long) (sizeof (long int))) < 0) | ||
11165 | { | ||
11166 | long i = longval (); | ||
11167 | if (i != ((long) (sizeof (long int)))) | ||
11168 | exit (1); | ||
11169 | fprintf (f, "%ld\n", i); | ||
11170 | } | ||
11171 | else | ||
11172 | { | ||
11173 | unsigned long i = ulongval (); | ||
11174 | if (i != ((long) (sizeof (long int)))) | ||
11175 | exit (1); | ||
11176 | fprintf (f, "%lu\n", i); | ||
11177 | } | ||
11178 | exit (ferror (f) || fclose (f) != 0); | ||
11179 | |||
11180 | ; | ||
11181 | return 0; | ||
11182 | } | ||
11183 | _ACEOF | ||
11184 | rm -f conftest$ac_exeext | ||
11185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11186 | (eval $ac_link) 2>&5 | ||
11187 | ac_status=$? | ||
11188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11189 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11191 | (eval $ac_try) 2>&5 | ||
11192 | ac_status=$? | ||
11193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11194 | (exit $ac_status); }; }; then | ||
11195 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
11196 | else | ||
11197 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11198 | echo "$as_me: failed program was:" >&5 | ||
11199 | cat conftest.$ac_ext >&5 | ||
11200 | ( exit $ac_status ) | ||
11201 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5 | ||
11202 | echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;} | ||
11203 | { (exit 1); exit 1; }; } | ||
11204 | fi | ||
11205 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11206 | fi | ||
11207 | fi | ||
11208 | rm -f conftest.val | ||
11209 | else | ||
11210 | ac_cv_sizeof_long_int=0 | ||
11211 | fi | ||
11212 | fi | ||
11213 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
11214 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
11215 | cat >>confdefs.h <<_ACEOF | ||
11216 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
11217 | _ACEOF | ||
11218 | |||
11219 | |||
11220 | echo "$as_me:$LINENO: checking for long long int" >&5 | ||
11221 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
11222 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
11223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11224 | else | ||
11225 | cat >conftest.$ac_ext <<_ACEOF | ||
11226 | #line $LINENO "configure" | ||
11227 | #include "confdefs.h" | ||
11228 | $ac_includes_default | ||
11229 | #ifdef F77_DUMMY_MAIN | ||
11230 | # ifdef __cplusplus | ||
11231 | extern "C" | ||
11232 | # endif | ||
11233 | int F77_DUMMY_MAIN() { return 1; } | ||
11234 | #endif | ||
11235 | int | ||
11236 | main () | ||
11237 | { | ||
11238 | if ((long long int *) 0) | ||
11239 | return 0; | ||
11240 | if (sizeof (long long int)) | ||
11241 | return 0; | ||
11242 | ; | ||
11243 | return 0; | ||
11244 | } | ||
11245 | _ACEOF | ||
11246 | rm -f conftest.$ac_objext | ||
11247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11248 | (eval $ac_compile) 2>&5 | ||
11249 | ac_status=$? | ||
11250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11251 | (exit $ac_status); } && | ||
11252 | { ac_try='test -s conftest.$ac_objext' | ||
11253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11254 | (eval $ac_try) 2>&5 | ||
11255 | ac_status=$? | ||
11256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11257 | (exit $ac_status); }; }; then | ||
11258 | ac_cv_type_long_long_int=yes | ||
11259 | else | ||
11260 | echo "$as_me: failed program was:" >&5 | ||
11261 | cat conftest.$ac_ext >&5 | ||
11262 | ac_cv_type_long_long_int=no | ||
11263 | fi | ||
11264 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11265 | fi | ||
11266 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
11267 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
11268 | |||
11269 | echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
11270 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
11271 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
11272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11273 | else | ||
11274 | if test "$ac_cv_type_long_long_int" = yes; then | ||
11275 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
11276 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
11277 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
11278 | # This bug is HP SR number 8606223364. | ||
11279 | if test "$cross_compiling" = yes; then | ||
11280 | # Depending upon the size, compute the lo and hi bounds. | ||
11281 | cat >conftest.$ac_ext <<_ACEOF | ||
11282 | #line $LINENO "configure" | ||
11283 | #include "confdefs.h" | ||
11284 | $ac_includes_default | ||
11285 | #ifdef F77_DUMMY_MAIN | ||
11286 | # ifdef __cplusplus | ||
11287 | extern "C" | ||
11288 | # endif | ||
11289 | int F77_DUMMY_MAIN() { return 1; } | ||
11290 | #endif | ||
11291 | int | ||
11292 | main () | ||
11293 | { | ||
11294 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)]; | ||
11295 | test_array [0] = 0 | ||
11296 | |||
11297 | ; | ||
11298 | return 0; | ||
11299 | } | ||
11300 | _ACEOF | ||
11301 | rm -f conftest.$ac_objext | ||
11302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11303 | (eval $ac_compile) 2>&5 | ||
11304 | ac_status=$? | ||
11305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11306 | (exit $ac_status); } && | ||
11307 | { ac_try='test -s conftest.$ac_objext' | ||
11308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11309 | (eval $ac_try) 2>&5 | ||
11310 | ac_status=$? | ||
11311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11312 | (exit $ac_status); }; }; then | ||
11313 | ac_lo=0 ac_mid=0 | ||
11314 | while :; do | ||
11315 | cat >conftest.$ac_ext <<_ACEOF | ||
11316 | #line $LINENO "configure" | ||
11317 | #include "confdefs.h" | ||
11318 | $ac_includes_default | ||
11319 | #ifdef F77_DUMMY_MAIN | ||
11320 | # ifdef __cplusplus | ||
11321 | extern "C" | ||
11322 | # endif | ||
11323 | int F77_DUMMY_MAIN() { return 1; } | ||
11324 | #endif | ||
11325 | int | ||
11326 | main () | ||
11327 | { | ||
11328 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
11329 | test_array [0] = 0 | ||
11330 | |||
11331 | ; | ||
11332 | return 0; | ||
11333 | } | ||
11334 | _ACEOF | ||
11335 | rm -f conftest.$ac_objext | ||
11336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11337 | (eval $ac_compile) 2>&5 | ||
11338 | ac_status=$? | ||
11339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11340 | (exit $ac_status); } && | ||
11341 | { ac_try='test -s conftest.$ac_objext' | ||
11342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11343 | (eval $ac_try) 2>&5 | ||
11344 | ac_status=$? | ||
11345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11346 | (exit $ac_status); }; }; then | ||
11347 | ac_hi=$ac_mid; break | ||
11348 | else | ||
11349 | echo "$as_me: failed program was:" >&5 | ||
11350 | cat conftest.$ac_ext >&5 | ||
11351 | ac_lo=`expr $ac_mid + 1` | ||
11352 | if test $ac_lo -le $ac_mid; then | ||
11353 | ac_lo= ac_hi= | ||
11354 | break | ||
11355 | fi | ||
11356 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11357 | fi | ||
11358 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11359 | done | ||
11360 | else | ||
11361 | echo "$as_me: failed program was:" >&5 | ||
11362 | cat conftest.$ac_ext >&5 | ||
11363 | cat >conftest.$ac_ext <<_ACEOF | ||
11364 | #line $LINENO "configure" | ||
11365 | #include "confdefs.h" | ||
11366 | $ac_includes_default | ||
11367 | #ifdef F77_DUMMY_MAIN | ||
11368 | # ifdef __cplusplus | ||
11369 | extern "C" | ||
11370 | # endif | ||
11371 | int F77_DUMMY_MAIN() { return 1; } | ||
11372 | #endif | ||
11373 | int | ||
11374 | main () | ||
11375 | { | ||
11376 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)]; | ||
11377 | test_array [0] = 0 | ||
11378 | |||
11379 | ; | ||
11380 | return 0; | ||
11381 | } | ||
11382 | _ACEOF | ||
11383 | rm -f conftest.$ac_objext | ||
11384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11385 | (eval $ac_compile) 2>&5 | ||
11386 | ac_status=$? | ||
11387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11388 | (exit $ac_status); } && | ||
11389 | { ac_try='test -s conftest.$ac_objext' | ||
11390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11391 | (eval $ac_try) 2>&5 | ||
11392 | ac_status=$? | ||
11393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11394 | (exit $ac_status); }; }; then | ||
11395 | ac_hi=-1 ac_mid=-1 | ||
11396 | while :; do | ||
11397 | cat >conftest.$ac_ext <<_ACEOF | ||
11398 | #line $LINENO "configure" | ||
11399 | #include "confdefs.h" | ||
11400 | $ac_includes_default | ||
11401 | #ifdef F77_DUMMY_MAIN | ||
11402 | # ifdef __cplusplus | ||
11403 | extern "C" | ||
11404 | # endif | ||
11405 | int F77_DUMMY_MAIN() { return 1; } | ||
11406 | #endif | ||
11407 | int | ||
11408 | main () | ||
11409 | { | ||
11410 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)]; | ||
11411 | test_array [0] = 0 | ||
11412 | |||
11413 | ; | ||
11414 | return 0; | ||
11415 | } | ||
11416 | _ACEOF | ||
11417 | rm -f conftest.$ac_objext | ||
11418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11419 | (eval $ac_compile) 2>&5 | ||
11420 | ac_status=$? | ||
11421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11422 | (exit $ac_status); } && | ||
11423 | { ac_try='test -s conftest.$ac_objext' | ||
11424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11425 | (eval $ac_try) 2>&5 | ||
11426 | ac_status=$? | ||
11427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11428 | (exit $ac_status); }; }; then | ||
11429 | ac_lo=$ac_mid; break | ||
11430 | else | ||
11431 | echo "$as_me: failed program was:" >&5 | ||
11432 | cat conftest.$ac_ext >&5 | ||
11433 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
11434 | if test $ac_mid -le $ac_hi; then | ||
11435 | ac_lo= ac_hi= | ||
11436 | break | ||
11437 | fi | ||
11438 | ac_mid=`expr 2 '*' $ac_mid` | ||
11439 | fi | ||
11440 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11441 | done | ||
11442 | else | ||
11443 | echo "$as_me: failed program was:" >&5 | ||
11444 | cat conftest.$ac_ext >&5 | ||
11445 | ac_lo= ac_hi= | ||
11446 | fi | ||
11447 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11448 | fi | ||
11449 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11450 | # Binary search between lo and hi bounds. | ||
11451 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11452 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11453 | cat >conftest.$ac_ext <<_ACEOF | ||
11454 | #line $LINENO "configure" | ||
11455 | #include "confdefs.h" | ||
11456 | $ac_includes_default | ||
11457 | #ifdef F77_DUMMY_MAIN | ||
11458 | # ifdef __cplusplus | ||
11459 | extern "C" | ||
11460 | # endif | ||
11461 | int F77_DUMMY_MAIN() { return 1; } | ||
11462 | #endif | ||
11463 | int | ||
11464 | main () | ||
11465 | { | ||
11466 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
11467 | test_array [0] = 0 | ||
11468 | |||
11469 | ; | ||
11470 | return 0; | ||
11471 | } | ||
11472 | _ACEOF | ||
11473 | rm -f conftest.$ac_objext | ||
11474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11475 | (eval $ac_compile) 2>&5 | ||
11476 | ac_status=$? | ||
11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11478 | (exit $ac_status); } && | ||
11479 | { ac_try='test -s conftest.$ac_objext' | ||
11480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11481 | (eval $ac_try) 2>&5 | ||
11482 | ac_status=$? | ||
11483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11484 | (exit $ac_status); }; }; then | ||
11485 | ac_hi=$ac_mid | ||
11486 | else | ||
11487 | echo "$as_me: failed program was:" >&5 | ||
11488 | cat conftest.$ac_ext >&5 | ||
11489 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
11490 | fi | ||
11491 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11492 | done | ||
11493 | case $ac_lo in | ||
11494 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
11495 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5 | ||
11496 | echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;} | ||
11497 | { (exit 1); exit 1; }; } ;; | ||
11498 | esac | ||
11499 | else | ||
11500 | if test "$cross_compiling" = yes; then | ||
11501 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
11502 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11503 | { (exit 1); exit 1; }; } | ||
11504 | else | ||
11505 | cat >conftest.$ac_ext <<_ACEOF | ||
11506 | #line $LINENO "configure" | ||
11507 | #include "confdefs.h" | ||
11508 | $ac_includes_default | ||
11509 | long longval () { return (long) (sizeof (long long int)); } | ||
11510 | unsigned long ulongval () { return (long) (sizeof (long long int)); } | ||
11511 | #include <stdio.h> | ||
11512 | #include <stdlib.h> | ||
11513 | #ifdef F77_DUMMY_MAIN | ||
11514 | # ifdef __cplusplus | ||
11515 | extern "C" | ||
11516 | # endif | ||
11517 | int F77_DUMMY_MAIN() { return 1; } | ||
11518 | #endif | ||
11519 | int | ||
11520 | main () | ||
11521 | { | ||
11522 | |||
11523 | FILE *f = fopen ("conftest.val", "w"); | ||
11524 | if (! f) | ||
11525 | exit (1); | ||
11526 | if (((long) (sizeof (long long int))) < 0) | ||
11527 | { | ||
11528 | long i = longval (); | ||
11529 | if (i != ((long) (sizeof (long long int)))) | ||
11530 | exit (1); | ||
11531 | fprintf (f, "%ld\n", i); | ||
11532 | } | ||
11533 | else | ||
11534 | { | ||
11535 | unsigned long i = ulongval (); | ||
11536 | if (i != ((long) (sizeof (long long int)))) | ||
11537 | exit (1); | ||
11538 | fprintf (f, "%lu\n", i); | ||
11539 | } | ||
11540 | exit (ferror (f) || fclose (f) != 0); | ||
11541 | |||
11542 | ; | ||
11543 | return 0; | ||
11544 | } | ||
11545 | _ACEOF | ||
11546 | rm -f conftest$ac_exeext | ||
11547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11548 | (eval $ac_link) 2>&5 | ||
11549 | ac_status=$? | ||
11550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11551 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11553 | (eval $ac_try) 2>&5 | ||
11554 | ac_status=$? | ||
11555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11556 | (exit $ac_status); }; }; then | ||
11557 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
11558 | else | ||
11559 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11560 | echo "$as_me: failed program was:" >&5 | ||
11561 | cat conftest.$ac_ext >&5 | ||
11562 | ( exit $ac_status ) | ||
11563 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5 | ||
11564 | echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;} | ||
11565 | { (exit 1); exit 1; }; } | ||
11566 | fi | ||
11567 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11568 | fi | ||
11569 | fi | ||
11570 | rm -f conftest.val | ||
11571 | else | ||
11572 | ac_cv_sizeof_long_long_int=0 | ||
11573 | fi | ||
11574 | fi | ||
11575 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
11576 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
11577 | cat >>confdefs.h <<_ACEOF | ||
11578 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
11579 | _ACEOF | ||
11580 | |||
11581 | |||
11582 | |||
11583 | # Sanity check long long for some platforms (AIX) | ||
11584 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
11585 | ac_cv_sizeof_long_long_int=0 | ||
11586 | fi | ||
11587 | |||
11588 | # More checks for data types | ||
11589 | echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
11590 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
11591 | if test "${ac_cv_have_u_int+set}" = set; then | ||
11592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11593 | else | ||
11594 | |||
11595 | cat >conftest.$ac_ext <<_ACEOF | ||
11596 | #line $LINENO "configure" | ||
11597 | #include "confdefs.h" | ||
11598 | #include <sys/types.h> | ||
11599 | #ifdef F77_DUMMY_MAIN | ||
11600 | # ifdef __cplusplus | ||
11601 | extern "C" | ||
11602 | # endif | ||
11603 | int F77_DUMMY_MAIN() { return 1; } | ||
11604 | #endif | ||
11605 | int | ||
11606 | main () | ||
11607 | { | ||
11608 | u_int a; a = 1; | ||
11609 | ; | ||
11610 | return 0; | ||
11611 | } | ||
11612 | _ACEOF | ||
11613 | rm -f conftest.$ac_objext | ||
11614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11615 | (eval $ac_compile) 2>&5 | ||
11616 | ac_status=$? | ||
11617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11618 | (exit $ac_status); } && | ||
11619 | { ac_try='test -s conftest.$ac_objext' | ||
11620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11621 | (eval $ac_try) 2>&5 | ||
11622 | ac_status=$? | ||
11623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11624 | (exit $ac_status); }; }; then | ||
11625 | ac_cv_have_u_int="yes" | ||
11626 | else | ||
11627 | echo "$as_me: failed program was:" >&5 | ||
11628 | cat conftest.$ac_ext >&5 | ||
11629 | ac_cv_have_u_int="no" | ||
11630 | |||
11631 | fi | ||
11632 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11633 | |||
11634 | fi | ||
11635 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
11636 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
11637 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
11638 | cat >>confdefs.h <<\_ACEOF | ||
11639 | #define HAVE_U_INT 1 | ||
11640 | _ACEOF | ||
11641 | |||
11642 | have_u_int=1 | ||
11643 | fi | ||
11644 | |||
11645 | echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
11646 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
11647 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
11648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11649 | else | ||
11650 | |||
11651 | cat >conftest.$ac_ext <<_ACEOF | ||
11652 | #line $LINENO "configure" | ||
11653 | #include "confdefs.h" | ||
11654 | #include <sys/types.h> | ||
11655 | #ifdef F77_DUMMY_MAIN | ||
11656 | # ifdef __cplusplus | ||
11657 | extern "C" | ||
11658 | # endif | ||
11659 | int F77_DUMMY_MAIN() { return 1; } | ||
11660 | #endif | ||
11661 | int | ||
11662 | main () | ||
11663 | { | ||
11664 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11665 | ; | ||
11666 | return 0; | ||
11667 | } | ||
11668 | _ACEOF | ||
11669 | rm -f conftest.$ac_objext | ||
11670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11671 | (eval $ac_compile) 2>&5 | ||
11672 | ac_status=$? | ||
11673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11674 | (exit $ac_status); } && | ||
11675 | { ac_try='test -s conftest.$ac_objext' | ||
11676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11677 | (eval $ac_try) 2>&5 | ||
11678 | ac_status=$? | ||
11679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11680 | (exit $ac_status); }; }; then | ||
11681 | ac_cv_have_intxx_t="yes" | ||
11682 | else | ||
11683 | echo "$as_me: failed program was:" >&5 | ||
11684 | cat conftest.$ac_ext >&5 | ||
11685 | ac_cv_have_intxx_t="no" | ||
11686 | |||
11687 | fi | ||
11688 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11689 | |||
11690 | fi | ||
11691 | echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
11692 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
11693 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
11694 | cat >>confdefs.h <<\_ACEOF | ||
11695 | #define HAVE_INTXX_T 1 | ||
11696 | _ACEOF | ||
11697 | |||
11698 | have_intxx_t=1 | ||
11699 | fi | ||
11700 | |||
11701 | if (test -z "$have_intxx_t" && \ | ||
11702 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
11703 | then | ||
11704 | echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
11705 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
11706 | cat >conftest.$ac_ext <<_ACEOF | ||
11707 | #line $LINENO "configure" | ||
11708 | #include "confdefs.h" | ||
11709 | #include <stdint.h> | ||
11710 | #ifdef F77_DUMMY_MAIN | ||
11711 | # ifdef __cplusplus | ||
11712 | extern "C" | ||
11713 | # endif | ||
11714 | int F77_DUMMY_MAIN() { return 1; } | ||
11715 | #endif | ||
11716 | int | ||
11717 | main () | ||
11718 | { | ||
11719 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11720 | ; | ||
11721 | return 0; | ||
11722 | } | ||
11723 | _ACEOF | ||
11724 | rm -f conftest.$ac_objext | ||
11725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11726 | (eval $ac_compile) 2>&5 | ||
11727 | ac_status=$? | ||
11728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11729 | (exit $ac_status); } && | ||
11730 | { ac_try='test -s conftest.$ac_objext' | ||
11731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11732 | (eval $ac_try) 2>&5 | ||
11733 | ac_status=$? | ||
11734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11735 | (exit $ac_status); }; }; then | ||
11736 | |||
11737 | cat >>confdefs.h <<\_ACEOF | ||
11738 | #define HAVE_INTXX_T 1 | ||
11739 | _ACEOF | ||
11740 | |||
11741 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11742 | echo "${ECHO_T}yes" >&6 | ||
11743 | |||
11744 | else | ||
11745 | echo "$as_me: failed program was:" >&5 | ||
11746 | cat conftest.$ac_ext >&5 | ||
11747 | echo "$as_me:$LINENO: result: no" >&5 | ||
11748 | echo "${ECHO_T}no" >&6 | ||
11749 | |||
11750 | fi | ||
11751 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11752 | fi | ||
11753 | |||
11754 | echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
11755 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
11756 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
11757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11758 | else | ||
11759 | |||
11760 | cat >conftest.$ac_ext <<_ACEOF | ||
11761 | #line $LINENO "configure" | ||
11762 | #include "confdefs.h" | ||
11763 | |||
11764 | #include <sys/types.h> | ||
11765 | #ifdef HAVE_STDINT_H | ||
11766 | # include <stdint.h> | ||
11767 | #endif | ||
11768 | #include <sys/socket.h> | ||
11769 | #ifdef HAVE_SYS_BITYPES_H | ||
11770 | # include <sys/bitypes.h> | ||
11771 | #endif | ||
11772 | |||
11773 | #ifdef F77_DUMMY_MAIN | ||
11774 | # ifdef __cplusplus | ||
11775 | extern "C" | ||
11776 | # endif | ||
11777 | int F77_DUMMY_MAIN() { return 1; } | ||
11778 | #endif | ||
11779 | int | ||
11780 | main () | ||
11781 | { | ||
11782 | int64_t a; a = 1; | ||
11783 | ; | ||
11784 | return 0; | ||
11785 | } | ||
11786 | _ACEOF | ||
11787 | rm -f conftest.$ac_objext | ||
11788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11789 | (eval $ac_compile) 2>&5 | ||
11790 | ac_status=$? | ||
11791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11792 | (exit $ac_status); } && | ||
11793 | { ac_try='test -s conftest.$ac_objext' | ||
11794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11795 | (eval $ac_try) 2>&5 | ||
11796 | ac_status=$? | ||
11797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11798 | (exit $ac_status); }; }; then | ||
11799 | ac_cv_have_int64_t="yes" | ||
11800 | else | ||
11801 | echo "$as_me: failed program was:" >&5 | ||
11802 | cat conftest.$ac_ext >&5 | ||
11803 | ac_cv_have_int64_t="no" | ||
11804 | |||
11805 | fi | ||
11806 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11807 | |||
11808 | fi | ||
11809 | echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
11810 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
11811 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
11812 | cat >>confdefs.h <<\_ACEOF | ||
11813 | #define HAVE_INT64_T 1 | ||
11814 | _ACEOF | ||
11815 | |||
11816 | fi | ||
11817 | |||
11818 | echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
11819 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
11820 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
11821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11822 | else | ||
11823 | |||
11824 | cat >conftest.$ac_ext <<_ACEOF | ||
11825 | #line $LINENO "configure" | ||
11826 | #include "confdefs.h" | ||
11827 | #include <sys/types.h> | ||
11828 | #ifdef F77_DUMMY_MAIN | ||
11829 | # ifdef __cplusplus | ||
11830 | extern "C" | ||
11831 | # endif | ||
11832 | int F77_DUMMY_MAIN() { return 1; } | ||
11833 | #endif | ||
11834 | int | ||
11835 | main () | ||
11836 | { | ||
11837 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
11838 | ; | ||
11839 | return 0; | ||
11840 | } | ||
11841 | _ACEOF | ||
11842 | rm -f conftest.$ac_objext | ||
11843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11844 | (eval $ac_compile) 2>&5 | ||
11845 | ac_status=$? | ||
11846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11847 | (exit $ac_status); } && | ||
11848 | { ac_try='test -s conftest.$ac_objext' | ||
11849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11850 | (eval $ac_try) 2>&5 | ||
11851 | ac_status=$? | ||
11852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11853 | (exit $ac_status); }; }; then | ||
11854 | ac_cv_have_u_intxx_t="yes" | ||
11855 | else | ||
11856 | echo "$as_me: failed program was:" >&5 | ||
11857 | cat conftest.$ac_ext >&5 | ||
11858 | ac_cv_have_u_intxx_t="no" | ||
11859 | |||
11860 | fi | ||
11861 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11862 | |||
11863 | fi | ||
11864 | echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
11865 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
11866 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
11867 | cat >>confdefs.h <<\_ACEOF | ||
11868 | #define HAVE_U_INTXX_T 1 | ||
11869 | _ACEOF | ||
11870 | |||
11871 | have_u_intxx_t=1 | ||
11872 | fi | ||
11873 | |||
11874 | if test -z "$have_u_intxx_t" ; then | ||
11875 | echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
11876 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
11877 | cat >conftest.$ac_ext <<_ACEOF | ||
11878 | #line $LINENO "configure" | ||
11879 | #include "confdefs.h" | ||
11880 | #include <sys/socket.h> | ||
11881 | #ifdef F77_DUMMY_MAIN | ||
11882 | # ifdef __cplusplus | ||
11883 | extern "C" | ||
11884 | # endif | ||
11885 | int F77_DUMMY_MAIN() { return 1; } | ||
11886 | #endif | ||
11887 | int | ||
11888 | main () | ||
11889 | { | ||
11890 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
11891 | ; | ||
11892 | return 0; | ||
11893 | } | ||
11894 | _ACEOF | ||
11895 | rm -f conftest.$ac_objext | ||
11896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11897 | (eval $ac_compile) 2>&5 | ||
11898 | ac_status=$? | ||
11899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11900 | (exit $ac_status); } && | ||
11901 | { ac_try='test -s conftest.$ac_objext' | ||
11902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11903 | (eval $ac_try) 2>&5 | ||
11904 | ac_status=$? | ||
11905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11906 | (exit $ac_status); }; }; then | ||
11907 | |||
11908 | cat >>confdefs.h <<\_ACEOF | ||
11909 | #define HAVE_U_INTXX_T 1 | ||
11910 | _ACEOF | ||
11911 | |||
11912 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11913 | echo "${ECHO_T}yes" >&6 | ||
11914 | |||
11915 | else | ||
11916 | echo "$as_me: failed program was:" >&5 | ||
11917 | cat conftest.$ac_ext >&5 | ||
11918 | echo "$as_me:$LINENO: result: no" >&5 | ||
11919 | echo "${ECHO_T}no" >&6 | ||
11920 | |||
11921 | fi | ||
11922 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11923 | fi | ||
11924 | |||
11925 | echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
11926 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
11927 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
11928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11929 | else | ||
11930 | |||
11931 | cat >conftest.$ac_ext <<_ACEOF | ||
11932 | #line $LINENO "configure" | ||
11933 | #include "confdefs.h" | ||
11934 | #include <sys/types.h> | ||
11935 | #ifdef F77_DUMMY_MAIN | ||
11936 | # ifdef __cplusplus | ||
11937 | extern "C" | ||
11938 | # endif | ||
11939 | int F77_DUMMY_MAIN() { return 1; } | ||
11940 | #endif | ||
11941 | int | ||
11942 | main () | ||
11943 | { | ||
11944 | u_int64_t a; a = 1; | ||
11945 | ; | ||
11946 | return 0; | ||
11947 | } | ||
11948 | _ACEOF | ||
11949 | rm -f conftest.$ac_objext | ||
11950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11951 | (eval $ac_compile) 2>&5 | ||
11952 | ac_status=$? | ||
11953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11954 | (exit $ac_status); } && | ||
11955 | { ac_try='test -s conftest.$ac_objext' | ||
11956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11957 | (eval $ac_try) 2>&5 | ||
11958 | ac_status=$? | ||
11959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11960 | (exit $ac_status); }; }; then | ||
11961 | ac_cv_have_u_int64_t="yes" | ||
11962 | else | ||
11963 | echo "$as_me: failed program was:" >&5 | ||
11964 | cat conftest.$ac_ext >&5 | ||
11965 | ac_cv_have_u_int64_t="no" | ||
11966 | |||
11967 | fi | ||
11968 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11969 | |||
11970 | fi | ||
11971 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
11972 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
11973 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
11974 | cat >>confdefs.h <<\_ACEOF | ||
11975 | #define HAVE_U_INT64_T 1 | ||
11976 | _ACEOF | ||
11977 | |||
11978 | have_u_int64_t=1 | ||
11979 | fi | ||
11980 | |||
11981 | if test -z "$have_u_int64_t" ; then | ||
11982 | echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
11983 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
11984 | cat >conftest.$ac_ext <<_ACEOF | ||
11985 | #line $LINENO "configure" | ||
11986 | #include "confdefs.h" | ||
11987 | #include <sys/bitypes.h> | ||
11988 | #ifdef F77_DUMMY_MAIN | ||
11989 | # ifdef __cplusplus | ||
11990 | extern "C" | ||
11991 | # endif | ||
11992 | int F77_DUMMY_MAIN() { return 1; } | ||
11993 | #endif | ||
11994 | int | ||
11995 | main () | ||
11996 | { | ||
11997 | u_int64_t a; a = 1 | ||
11998 | ; | ||
11999 | return 0; | ||
12000 | } | ||
12001 | _ACEOF | ||
12002 | rm -f conftest.$ac_objext | ||
12003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12004 | (eval $ac_compile) 2>&5 | ||
12005 | ac_status=$? | ||
12006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12007 | (exit $ac_status); } && | ||
12008 | { ac_try='test -s conftest.$ac_objext' | ||
12009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12010 | (eval $ac_try) 2>&5 | ||
12011 | ac_status=$? | ||
12012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12013 | (exit $ac_status); }; }; then | ||
12014 | |||
12015 | cat >>confdefs.h <<\_ACEOF | ||
12016 | #define HAVE_U_INT64_T 1 | ||
12017 | _ACEOF | ||
12018 | |||
12019 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12020 | echo "${ECHO_T}yes" >&6 | ||
12021 | |||
12022 | else | ||
12023 | echo "$as_me: failed program was:" >&5 | ||
12024 | cat conftest.$ac_ext >&5 | ||
12025 | echo "$as_me:$LINENO: result: no" >&5 | ||
12026 | echo "${ECHO_T}no" >&6 | ||
12027 | |||
12028 | fi | ||
12029 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12030 | fi | ||
12031 | |||
12032 | if test -z "$have_u_intxx_t" ; then | ||
12033 | echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
12034 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
12035 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
12036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12037 | else | ||
12038 | |||
12039 | cat >conftest.$ac_ext <<_ACEOF | ||
12040 | #line $LINENO "configure" | ||
12041 | #include "confdefs.h" | ||
12042 | |||
12043 | #include <sys/types.h> | ||
12044 | |||
12045 | #ifdef F77_DUMMY_MAIN | ||
12046 | # ifdef __cplusplus | ||
12047 | extern "C" | ||
12048 | # endif | ||
12049 | int F77_DUMMY_MAIN() { return 1; } | ||
12050 | #endif | ||
12051 | int | ||
12052 | main () | ||
12053 | { | ||
12054 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12055 | ; | ||
12056 | return 0; | ||
12057 | } | ||
12058 | _ACEOF | ||
12059 | rm -f conftest.$ac_objext | ||
12060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12061 | (eval $ac_compile) 2>&5 | ||
12062 | ac_status=$? | ||
12063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12064 | (exit $ac_status); } && | ||
12065 | { ac_try='test -s conftest.$ac_objext' | ||
12066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12067 | (eval $ac_try) 2>&5 | ||
12068 | ac_status=$? | ||
12069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12070 | (exit $ac_status); }; }; then | ||
12071 | ac_cv_have_uintxx_t="yes" | ||
12072 | else | ||
12073 | echo "$as_me: failed program was:" >&5 | ||
12074 | cat conftest.$ac_ext >&5 | ||
12075 | ac_cv_have_uintxx_t="no" | ||
12076 | |||
12077 | fi | ||
12078 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12079 | |||
12080 | fi | ||
12081 | echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
12082 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
12083 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
12084 | cat >>confdefs.h <<\_ACEOF | ||
12085 | #define HAVE_UINTXX_T 1 | ||
12086 | _ACEOF | ||
12087 | |||
12088 | fi | ||
12089 | fi | ||
12090 | |||
12091 | if test -z "$have_uintxx_t" ; then | ||
12092 | echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
12093 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
12094 | cat >conftest.$ac_ext <<_ACEOF | ||
12095 | #line $LINENO "configure" | ||
12096 | #include "confdefs.h" | ||
12097 | #include <stdint.h> | ||
12098 | #ifdef F77_DUMMY_MAIN | ||
12099 | # ifdef __cplusplus | ||
12100 | extern "C" | ||
12101 | # endif | ||
12102 | int F77_DUMMY_MAIN() { return 1; } | ||
12103 | #endif | ||
12104 | int | ||
12105 | main () | ||
12106 | { | ||
12107 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12108 | ; | ||
12109 | return 0; | ||
12110 | } | ||
12111 | _ACEOF | ||
12112 | rm -f conftest.$ac_objext | ||
12113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12114 | (eval $ac_compile) 2>&5 | ||
12115 | ac_status=$? | ||
12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12117 | (exit $ac_status); } && | ||
12118 | { ac_try='test -s conftest.$ac_objext' | ||
12119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12120 | (eval $ac_try) 2>&5 | ||
12121 | ac_status=$? | ||
12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12123 | (exit $ac_status); }; }; then | ||
12124 | |||
12125 | cat >>confdefs.h <<\_ACEOF | ||
12126 | #define HAVE_UINTXX_T 1 | ||
12127 | _ACEOF | ||
12128 | |||
12129 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12130 | echo "${ECHO_T}yes" >&6 | ||
12131 | |||
12132 | else | ||
12133 | echo "$as_me: failed program was:" >&5 | ||
12134 | cat conftest.$ac_ext >&5 | ||
12135 | echo "$as_me:$LINENO: result: no" >&5 | ||
12136 | echo "${ECHO_T}no" >&6 | ||
12137 | |||
12138 | fi | ||
12139 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12140 | fi | ||
12141 | |||
12142 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
12143 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
12144 | then | ||
12145 | echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
12146 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
12147 | cat >conftest.$ac_ext <<_ACEOF | ||
12148 | #line $LINENO "configure" | ||
12149 | #include "confdefs.h" | ||
12150 | |||
12151 | #include <sys/bitypes.h> | ||
12152 | |||
12153 | #ifdef F77_DUMMY_MAIN | ||
12154 | # ifdef __cplusplus | ||
12155 | extern "C" | ||
12156 | # endif | ||
12157 | int F77_DUMMY_MAIN() { return 1; } | ||
12158 | #endif | ||
12159 | int | ||
12160 | main () | ||
12161 | { | ||
12162 | |||
12163 | int8_t a; int16_t b; int32_t c; | ||
12164 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
12165 | a = b = c = e = f = g = 1; | ||
12166 | |||
12167 | ; | ||
12168 | return 0; | ||
12169 | } | ||
12170 | _ACEOF | ||
12171 | rm -f conftest.$ac_objext | ||
12172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12173 | (eval $ac_compile) 2>&5 | ||
12174 | ac_status=$? | ||
12175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12176 | (exit $ac_status); } && | ||
12177 | { ac_try='test -s conftest.$ac_objext' | ||
12178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12179 | (eval $ac_try) 2>&5 | ||
12180 | ac_status=$? | ||
12181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12182 | (exit $ac_status); }; }; then | ||
12183 | |||
12184 | cat >>confdefs.h <<\_ACEOF | ||
12185 | #define HAVE_U_INTXX_T 1 | ||
12186 | _ACEOF | ||
12187 | |||
12188 | cat >>confdefs.h <<\_ACEOF | ||
12189 | #define HAVE_INTXX_T 1 | ||
12190 | _ACEOF | ||
12191 | |||
12192 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12193 | echo "${ECHO_T}yes" >&6 | ||
12194 | |||
12195 | else | ||
12196 | echo "$as_me: failed program was:" >&5 | ||
12197 | cat conftest.$ac_ext >&5 | ||
12198 | echo "$as_me:$LINENO: result: no" >&5 | ||
12199 | echo "${ECHO_T}no" >&6 | ||
12200 | |||
12201 | fi | ||
12202 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12203 | fi | ||
12204 | |||
12205 | |||
12206 | echo "$as_me:$LINENO: checking for u_char" >&5 | ||
12207 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
12208 | if test "${ac_cv_have_u_char+set}" = set; then | ||
12209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12210 | else | ||
12211 | |||
12212 | cat >conftest.$ac_ext <<_ACEOF | ||
12213 | #line $LINENO "configure" | ||
12214 | #include "confdefs.h" | ||
12215 | |||
12216 | #include <sys/types.h> | ||
12217 | |||
12218 | #ifdef F77_DUMMY_MAIN | ||
12219 | # ifdef __cplusplus | ||
12220 | extern "C" | ||
12221 | # endif | ||
12222 | int F77_DUMMY_MAIN() { return 1; } | ||
12223 | #endif | ||
12224 | int | ||
12225 | main () | ||
12226 | { | ||
12227 | u_char foo; foo = 125; | ||
12228 | ; | ||
12229 | return 0; | ||
12230 | } | ||
12231 | _ACEOF | ||
12232 | rm -f conftest.$ac_objext | ||
12233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12234 | (eval $ac_compile) 2>&5 | ||
12235 | ac_status=$? | ||
12236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12237 | (exit $ac_status); } && | ||
12238 | { ac_try='test -s conftest.$ac_objext' | ||
12239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12240 | (eval $ac_try) 2>&5 | ||
12241 | ac_status=$? | ||
12242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12243 | (exit $ac_status); }; }; then | ||
12244 | ac_cv_have_u_char="yes" | ||
12245 | else | ||
12246 | echo "$as_me: failed program was:" >&5 | ||
12247 | cat conftest.$ac_ext >&5 | ||
12248 | ac_cv_have_u_char="no" | ||
12249 | |||
12250 | fi | ||
12251 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12252 | |||
12253 | fi | ||
12254 | echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
12255 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
12256 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
12257 | cat >>confdefs.h <<\_ACEOF | ||
12258 | #define HAVE_U_CHAR 1 | ||
12259 | _ACEOF | ||
12260 | |||
12261 | fi | ||
12262 | |||
12263 | |||
12264 | echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
12265 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
12266 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
12267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12268 | else | ||
12269 | cat >conftest.$ac_ext <<_ACEOF | ||
12270 | #line $LINENO "configure" | ||
12271 | #include "confdefs.h" | ||
12272 | #include <sys/types.h> | ||
12273 | #include <sys/socket.h> | ||
12274 | |||
12275 | #ifdef F77_DUMMY_MAIN | ||
12276 | # ifdef __cplusplus | ||
12277 | extern "C" | ||
12278 | # endif | ||
12279 | int F77_DUMMY_MAIN() { return 1; } | ||
12280 | #endif | ||
12281 | int | ||
12282 | main () | ||
12283 | { | ||
12284 | if ((socklen_t *) 0) | ||
12285 | return 0; | ||
12286 | if (sizeof (socklen_t)) | ||
12287 | return 0; | ||
12288 | ; | ||
12289 | return 0; | ||
12290 | } | ||
12291 | _ACEOF | ||
12292 | rm -f conftest.$ac_objext | ||
12293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12294 | (eval $ac_compile) 2>&5 | ||
12295 | ac_status=$? | ||
12296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12297 | (exit $ac_status); } && | ||
12298 | { ac_try='test -s conftest.$ac_objext' | ||
12299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12300 | (eval $ac_try) 2>&5 | ||
12301 | ac_status=$? | ||
12302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12303 | (exit $ac_status); }; }; then | ||
12304 | ac_cv_type_socklen_t=yes | ||
12305 | else | ||
12306 | echo "$as_me: failed program was:" >&5 | ||
12307 | cat conftest.$ac_ext >&5 | ||
12308 | ac_cv_type_socklen_t=no | ||
12309 | fi | ||
12310 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12311 | fi | ||
12312 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
12313 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
12314 | if test $ac_cv_type_socklen_t = yes; then | ||
12315 | : | ||
12316 | else | ||
12317 | |||
12318 | echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
12319 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
12320 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
12321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12322 | else | ||
12323 | |||
12324 | # Systems have either "struct sockaddr *" or | ||
12325 | # "void *" as the second argument to getpeername | ||
12326 | curl_cv_socklen_t_equiv= | ||
12327 | for arg2 in "struct sockaddr" void; do | ||
12328 | for t in int size_t unsigned long "unsigned long"; do | ||
12329 | cat >conftest.$ac_ext <<_ACEOF | ||
12330 | #line $LINENO "configure" | ||
12331 | #include "confdefs.h" | ||
12332 | |||
12333 | #include <sys/types.h> | ||
12334 | #include <sys/socket.h> | ||
12335 | |||
12336 | int getpeername (int, $arg2 *, $t *); | ||
12337 | |||
12338 | #ifdef F77_DUMMY_MAIN | ||
12339 | # ifdef __cplusplus | ||
12340 | extern "C" | ||
12341 | # endif | ||
12342 | int F77_DUMMY_MAIN() { return 1; } | ||
12343 | #endif | ||
12344 | int | ||
12345 | main () | ||
12346 | { | ||
12347 | |||
12348 | $t len; | ||
12349 | getpeername(0,0,&len); | ||
12350 | |||
12351 | ; | ||
12352 | return 0; | ||
12353 | } | ||
12354 | _ACEOF | ||
12355 | rm -f conftest.$ac_objext | ||
12356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12357 | (eval $ac_compile) 2>&5 | ||
12358 | ac_status=$? | ||
12359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12360 | (exit $ac_status); } && | ||
12361 | { ac_try='test -s conftest.$ac_objext' | ||
12362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12363 | (eval $ac_try) 2>&5 | ||
12364 | ac_status=$? | ||
12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12366 | (exit $ac_status); }; }; then | ||
12367 | |||
12368 | curl_cv_socklen_t_equiv="$t" | ||
12369 | break | ||
12370 | |||
12371 | else | ||
12372 | echo "$as_me: failed program was:" >&5 | ||
12373 | cat conftest.$ac_ext >&5 | ||
12374 | fi | ||
12375 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12376 | done | ||
12377 | done | ||
12378 | |||
12379 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
12380 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
12381 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
12382 | { (exit 1); exit 1; }; } | ||
12383 | fi | ||
12384 | |||
12385 | fi | ||
12386 | |||
12387 | echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
12388 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
12389 | |||
12390 | cat >>confdefs.h <<_ACEOF | ||
12391 | #define socklen_t $curl_cv_socklen_t_equiv | ||
12392 | _ACEOF | ||
12393 | |||
12394 | fi | ||
12395 | |||
12396 | |||
12397 | |||
12398 | echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
12399 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
12400 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
12401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12402 | else | ||
12403 | cat >conftest.$ac_ext <<_ACEOF | ||
12404 | #line $LINENO "configure" | ||
12405 | #include "confdefs.h" | ||
12406 | #include <signal.h> | ||
12407 | |||
12408 | #ifdef F77_DUMMY_MAIN | ||
12409 | # ifdef __cplusplus | ||
12410 | extern "C" | ||
12411 | # endif | ||
12412 | int F77_DUMMY_MAIN() { return 1; } | ||
12413 | #endif | ||
12414 | int | ||
12415 | main () | ||
12416 | { | ||
12417 | if ((sig_atomic_t *) 0) | ||
12418 | return 0; | ||
12419 | if (sizeof (sig_atomic_t)) | ||
12420 | return 0; | ||
12421 | ; | ||
12422 | return 0; | ||
12423 | } | ||
12424 | _ACEOF | ||
12425 | rm -f conftest.$ac_objext | ||
12426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12427 | (eval $ac_compile) 2>&5 | ||
12428 | ac_status=$? | ||
12429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12430 | (exit $ac_status); } && | ||
12431 | { ac_try='test -s conftest.$ac_objext' | ||
12432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12433 | (eval $ac_try) 2>&5 | ||
12434 | ac_status=$? | ||
12435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12436 | (exit $ac_status); }; }; then | ||
12437 | ac_cv_type_sig_atomic_t=yes | ||
12438 | else | ||
12439 | echo "$as_me: failed program was:" >&5 | ||
12440 | cat conftest.$ac_ext >&5 | ||
12441 | ac_cv_type_sig_atomic_t=no | ||
12442 | fi | ||
12443 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12444 | fi | ||
12445 | echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
12446 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
12447 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
12448 | |||
12449 | cat >>confdefs.h <<_ACEOF | ||
12450 | #define HAVE_SIG_ATOMIC_T 1 | ||
12451 | _ACEOF | ||
12452 | |||
12453 | |||
12454 | fi | ||
12455 | |||
12456 | |||
12457 | echo "$as_me:$LINENO: checking for size_t" >&5 | ||
12458 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
12459 | if test "${ac_cv_have_size_t+set}" = set; then | ||
12460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12461 | else | ||
12462 | |||
12463 | cat >conftest.$ac_ext <<_ACEOF | ||
12464 | #line $LINENO "configure" | ||
12465 | #include "confdefs.h" | ||
12466 | |||
12467 | #include <sys/types.h> | ||
12468 | |||
12469 | #ifdef F77_DUMMY_MAIN | ||
12470 | # ifdef __cplusplus | ||
12471 | extern "C" | ||
12472 | # endif | ||
12473 | int F77_DUMMY_MAIN() { return 1; } | ||
12474 | #endif | ||
12475 | int | ||
12476 | main () | ||
12477 | { | ||
12478 | size_t foo; foo = 1235; | ||
12479 | ; | ||
12480 | return 0; | ||
12481 | } | ||
12482 | _ACEOF | ||
12483 | rm -f conftest.$ac_objext | ||
12484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12485 | (eval $ac_compile) 2>&5 | ||
12486 | ac_status=$? | ||
12487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12488 | (exit $ac_status); } && | ||
12489 | { ac_try='test -s conftest.$ac_objext' | ||
12490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12491 | (eval $ac_try) 2>&5 | ||
12492 | ac_status=$? | ||
12493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12494 | (exit $ac_status); }; }; then | ||
12495 | ac_cv_have_size_t="yes" | ||
12496 | else | ||
12497 | echo "$as_me: failed program was:" >&5 | ||
12498 | cat conftest.$ac_ext >&5 | ||
12499 | ac_cv_have_size_t="no" | ||
12500 | |||
12501 | fi | ||
12502 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12503 | |||
12504 | fi | ||
12505 | echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
12506 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
12507 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
12508 | cat >>confdefs.h <<\_ACEOF | ||
12509 | #define HAVE_SIZE_T 1 | ||
12510 | _ACEOF | ||
12511 | |||
12512 | fi | ||
12513 | |||
12514 | echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
12515 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
12516 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
12517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12518 | else | ||
12519 | |||
12520 | cat >conftest.$ac_ext <<_ACEOF | ||
12521 | #line $LINENO "configure" | ||
12522 | #include "confdefs.h" | ||
12523 | |||
12524 | #include <sys/types.h> | ||
12525 | |||
12526 | #ifdef F77_DUMMY_MAIN | ||
12527 | # ifdef __cplusplus | ||
12528 | extern "C" | ||
12529 | # endif | ||
12530 | int F77_DUMMY_MAIN() { return 1; } | ||
12531 | #endif | ||
12532 | int | ||
12533 | main () | ||
12534 | { | ||
12535 | ssize_t foo; foo = 1235; | ||
12536 | ; | ||
12537 | return 0; | ||
12538 | } | ||
12539 | _ACEOF | ||
12540 | rm -f conftest.$ac_objext | ||
12541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12542 | (eval $ac_compile) 2>&5 | ||
12543 | ac_status=$? | ||
12544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12545 | (exit $ac_status); } && | ||
12546 | { ac_try='test -s conftest.$ac_objext' | ||
12547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12548 | (eval $ac_try) 2>&5 | ||
12549 | ac_status=$? | ||
12550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12551 | (exit $ac_status); }; }; then | ||
12552 | ac_cv_have_ssize_t="yes" | ||
12553 | else | ||
12554 | echo "$as_me: failed program was:" >&5 | ||
12555 | cat conftest.$ac_ext >&5 | ||
12556 | ac_cv_have_ssize_t="no" | ||
12557 | |||
12558 | fi | ||
12559 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12560 | |||
12561 | fi | ||
12562 | echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
12563 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
12564 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
12565 | cat >>confdefs.h <<\_ACEOF | ||
12566 | #define HAVE_SSIZE_T 1 | ||
12567 | _ACEOF | ||
12568 | |||
12569 | fi | ||
12570 | |||
12571 | echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
12572 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
12573 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
12574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12575 | else | ||
12576 | |||
12577 | cat >conftest.$ac_ext <<_ACEOF | ||
12578 | #line $LINENO "configure" | ||
12579 | #include "confdefs.h" | ||
12580 | |||
12581 | #include <time.h> | ||
12582 | |||
12583 | #ifdef F77_DUMMY_MAIN | ||
12584 | # ifdef __cplusplus | ||
12585 | extern "C" | ||
12586 | # endif | ||
12587 | int F77_DUMMY_MAIN() { return 1; } | ||
12588 | #endif | ||
12589 | int | ||
12590 | main () | ||
12591 | { | ||
12592 | clock_t foo; foo = 1235; | ||
12593 | ; | ||
12594 | return 0; | ||
12595 | } | ||
12596 | _ACEOF | ||
12597 | rm -f conftest.$ac_objext | ||
12598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12599 | (eval $ac_compile) 2>&5 | ||
12600 | ac_status=$? | ||
12601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12602 | (exit $ac_status); } && | ||
12603 | { ac_try='test -s conftest.$ac_objext' | ||
12604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12605 | (eval $ac_try) 2>&5 | ||
12606 | ac_status=$? | ||
12607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12608 | (exit $ac_status); }; }; then | ||
12609 | ac_cv_have_clock_t="yes" | ||
12610 | else | ||
12611 | echo "$as_me: failed program was:" >&5 | ||
12612 | cat conftest.$ac_ext >&5 | ||
12613 | ac_cv_have_clock_t="no" | ||
12614 | |||
12615 | fi | ||
12616 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12617 | |||
12618 | fi | ||
12619 | echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
12620 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
12621 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
12622 | cat >>confdefs.h <<\_ACEOF | ||
12623 | #define HAVE_CLOCK_T 1 | ||
12624 | _ACEOF | ||
12625 | |||
12626 | fi | ||
12627 | |||
12628 | echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
12629 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
12630 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
12631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12632 | else | ||
12633 | |||
12634 | cat >conftest.$ac_ext <<_ACEOF | ||
12635 | #line $LINENO "configure" | ||
12636 | #include "confdefs.h" | ||
12637 | |||
12638 | #include <sys/types.h> | ||
12639 | #include <sys/socket.h> | ||
12640 | |||
12641 | #ifdef F77_DUMMY_MAIN | ||
12642 | # ifdef __cplusplus | ||
12643 | extern "C" | ||
12644 | # endif | ||
12645 | int F77_DUMMY_MAIN() { return 1; } | ||
12646 | #endif | ||
12647 | int | ||
12648 | main () | ||
12649 | { | ||
12650 | sa_family_t foo; foo = 1235; | ||
12651 | ; | ||
12652 | return 0; | ||
12653 | } | ||
12654 | _ACEOF | ||
12655 | rm -f conftest.$ac_objext | ||
12656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12657 | (eval $ac_compile) 2>&5 | ||
12658 | ac_status=$? | ||
12659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12660 | (exit $ac_status); } && | ||
12661 | { ac_try='test -s conftest.$ac_objext' | ||
12662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12663 | (eval $ac_try) 2>&5 | ||
12664 | ac_status=$? | ||
12665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12666 | (exit $ac_status); }; }; then | ||
12667 | ac_cv_have_sa_family_t="yes" | ||
12668 | else | ||
12669 | echo "$as_me: failed program was:" >&5 | ||
12670 | cat conftest.$ac_ext >&5 | ||
12671 | cat >conftest.$ac_ext <<_ACEOF | ||
12672 | #line $LINENO "configure" | ||
12673 | #include "confdefs.h" | ||
12674 | |||
12675 | #include <sys/types.h> | ||
12676 | #include <sys/socket.h> | ||
12677 | #include <netinet/in.h> | ||
12678 | |||
12679 | #ifdef F77_DUMMY_MAIN | ||
12680 | # ifdef __cplusplus | ||
12681 | extern "C" | ||
12682 | # endif | ||
12683 | int F77_DUMMY_MAIN() { return 1; } | ||
12684 | #endif | ||
12685 | int | ||
12686 | main () | ||
12687 | { | ||
12688 | sa_family_t foo; foo = 1235; | ||
12689 | ; | ||
12690 | return 0; | ||
12691 | } | ||
12692 | _ACEOF | ||
12693 | rm -f conftest.$ac_objext | ||
12694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12695 | (eval $ac_compile) 2>&5 | ||
12696 | ac_status=$? | ||
12697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12698 | (exit $ac_status); } && | ||
12699 | { ac_try='test -s conftest.$ac_objext' | ||
12700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12701 | (eval $ac_try) 2>&5 | ||
12702 | ac_status=$? | ||
12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12704 | (exit $ac_status); }; }; then | ||
12705 | ac_cv_have_sa_family_t="yes" | ||
12706 | else | ||
12707 | echo "$as_me: failed program was:" >&5 | ||
12708 | cat conftest.$ac_ext >&5 | ||
12709 | ac_cv_have_sa_family_t="no" | ||
12710 | |||
12711 | fi | ||
12712 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12713 | |||
12714 | fi | ||
12715 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12716 | |||
12717 | fi | ||
12718 | echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
12719 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
12720 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
12721 | cat >>confdefs.h <<\_ACEOF | ||
12722 | #define HAVE_SA_FAMILY_T 1 | ||
12723 | _ACEOF | ||
12724 | |||
12725 | fi | ||
12726 | |||
12727 | echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
12728 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
12729 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
12730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12731 | else | ||
12732 | |||
12733 | cat >conftest.$ac_ext <<_ACEOF | ||
12734 | #line $LINENO "configure" | ||
12735 | #include "confdefs.h" | ||
12736 | |||
12737 | #include <sys/types.h> | ||
12738 | |||
12739 | #ifdef F77_DUMMY_MAIN | ||
12740 | # ifdef __cplusplus | ||
12741 | extern "C" | ||
12742 | # endif | ||
12743 | int F77_DUMMY_MAIN() { return 1; } | ||
12744 | #endif | ||
12745 | int | ||
12746 | main () | ||
12747 | { | ||
12748 | pid_t foo; foo = 1235; | ||
12749 | ; | ||
12750 | return 0; | ||
12751 | } | ||
12752 | _ACEOF | ||
12753 | rm -f conftest.$ac_objext | ||
12754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12755 | (eval $ac_compile) 2>&5 | ||
12756 | ac_status=$? | ||
12757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12758 | (exit $ac_status); } && | ||
12759 | { ac_try='test -s conftest.$ac_objext' | ||
12760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12761 | (eval $ac_try) 2>&5 | ||
12762 | ac_status=$? | ||
12763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12764 | (exit $ac_status); }; }; then | ||
12765 | ac_cv_have_pid_t="yes" | ||
12766 | else | ||
12767 | echo "$as_me: failed program was:" >&5 | ||
12768 | cat conftest.$ac_ext >&5 | ||
12769 | ac_cv_have_pid_t="no" | ||
12770 | |||
12771 | fi | ||
12772 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12773 | |||
12774 | fi | ||
12775 | echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
12776 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
12777 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
12778 | cat >>confdefs.h <<\_ACEOF | ||
12779 | #define HAVE_PID_T 1 | ||
12780 | _ACEOF | ||
12781 | |||
12782 | fi | ||
12783 | |||
12784 | echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
12785 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
12786 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
12787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12788 | else | ||
12789 | |||
12790 | cat >conftest.$ac_ext <<_ACEOF | ||
12791 | #line $LINENO "configure" | ||
12792 | #include "confdefs.h" | ||
12793 | |||
12794 | #include <sys/types.h> | ||
12795 | |||
12796 | #ifdef F77_DUMMY_MAIN | ||
12797 | # ifdef __cplusplus | ||
12798 | extern "C" | ||
12799 | # endif | ||
12800 | int F77_DUMMY_MAIN() { return 1; } | ||
12801 | #endif | ||
12802 | int | ||
12803 | main () | ||
12804 | { | ||
12805 | mode_t foo; foo = 1235; | ||
12806 | ; | ||
12807 | return 0; | ||
12808 | } | ||
12809 | _ACEOF | ||
12810 | rm -f conftest.$ac_objext | ||
12811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12812 | (eval $ac_compile) 2>&5 | ||
12813 | ac_status=$? | ||
12814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12815 | (exit $ac_status); } && | ||
12816 | { ac_try='test -s conftest.$ac_objext' | ||
12817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12818 | (eval $ac_try) 2>&5 | ||
12819 | ac_status=$? | ||
12820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12821 | (exit $ac_status); }; }; then | ||
12822 | ac_cv_have_mode_t="yes" | ||
12823 | else | ||
12824 | echo "$as_me: failed program was:" >&5 | ||
12825 | cat conftest.$ac_ext >&5 | ||
12826 | ac_cv_have_mode_t="no" | ||
12827 | |||
12828 | fi | ||
12829 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12830 | |||
12831 | fi | ||
12832 | echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
12833 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
12834 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
12835 | cat >>confdefs.h <<\_ACEOF | ||
12836 | #define HAVE_MODE_T 1 | ||
12837 | _ACEOF | ||
12838 | |||
12839 | fi | ||
12840 | |||
12841 | |||
12842 | echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
12843 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
12844 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
12845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12846 | else | ||
12847 | |||
12848 | cat >conftest.$ac_ext <<_ACEOF | ||
12849 | #line $LINENO "configure" | ||
12850 | #include "confdefs.h" | ||
12851 | |||
12852 | #include <sys/types.h> | ||
12853 | #include <sys/socket.h> | ||
12854 | |||
12855 | #ifdef F77_DUMMY_MAIN | ||
12856 | # ifdef __cplusplus | ||
12857 | extern "C" | ||
12858 | # endif | ||
12859 | int F77_DUMMY_MAIN() { return 1; } | ||
12860 | #endif | ||
12861 | int | ||
12862 | main () | ||
12863 | { | ||
12864 | struct sockaddr_storage s; | ||
12865 | ; | ||
12866 | return 0; | ||
12867 | } | ||
12868 | _ACEOF | ||
12869 | rm -f conftest.$ac_objext | ||
12870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12871 | (eval $ac_compile) 2>&5 | ||
12872 | ac_status=$? | ||
12873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12874 | (exit $ac_status); } && | ||
12875 | { ac_try='test -s conftest.$ac_objext' | ||
12876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12877 | (eval $ac_try) 2>&5 | ||
12878 | ac_status=$? | ||
12879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12880 | (exit $ac_status); }; }; then | ||
12881 | ac_cv_have_struct_sockaddr_storage="yes" | ||
12882 | else | ||
12883 | echo "$as_me: failed program was:" >&5 | ||
12884 | cat conftest.$ac_ext >&5 | ||
12885 | ac_cv_have_struct_sockaddr_storage="no" | ||
12886 | |||
12887 | fi | ||
12888 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12889 | |||
12890 | fi | ||
12891 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
12892 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
12893 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
12894 | cat >>confdefs.h <<\_ACEOF | ||
12895 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
12896 | _ACEOF | ||
12897 | |||
12898 | fi | ||
12899 | |||
12900 | echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
12901 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
12902 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
12903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12904 | else | ||
12905 | |||
12906 | cat >conftest.$ac_ext <<_ACEOF | ||
12907 | #line $LINENO "configure" | ||
12908 | #include "confdefs.h" | ||
12909 | |||
12910 | #include <sys/types.h> | ||
12911 | #include <netinet/in.h> | ||
12912 | |||
12913 | #ifdef F77_DUMMY_MAIN | ||
12914 | # ifdef __cplusplus | ||
12915 | extern "C" | ||
12916 | # endif | ||
12917 | int F77_DUMMY_MAIN() { return 1; } | ||
12918 | #endif | ||
12919 | int | ||
12920 | main () | ||
12921 | { | ||
12922 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
12923 | ; | ||
12924 | return 0; | ||
12925 | } | ||
12926 | _ACEOF | ||
12927 | rm -f conftest.$ac_objext | ||
12928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12929 | (eval $ac_compile) 2>&5 | ||
12930 | ac_status=$? | ||
12931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12932 | (exit $ac_status); } && | ||
12933 | { ac_try='test -s conftest.$ac_objext' | ||
12934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12935 | (eval $ac_try) 2>&5 | ||
12936 | ac_status=$? | ||
12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12938 | (exit $ac_status); }; }; then | ||
12939 | ac_cv_have_struct_sockaddr_in6="yes" | ||
12940 | else | ||
12941 | echo "$as_me: failed program was:" >&5 | ||
12942 | cat conftest.$ac_ext >&5 | ||
12943 | ac_cv_have_struct_sockaddr_in6="no" | ||
12944 | |||
12945 | fi | ||
12946 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12947 | |||
12948 | fi | ||
12949 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
12950 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
12951 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
12952 | cat >>confdefs.h <<\_ACEOF | ||
12953 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
12954 | _ACEOF | ||
12955 | |||
12956 | fi | ||
12957 | |||
12958 | echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
12959 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
12960 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
12961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12962 | else | ||
12963 | |||
12964 | cat >conftest.$ac_ext <<_ACEOF | ||
12965 | #line $LINENO "configure" | ||
12966 | #include "confdefs.h" | ||
12967 | |||
12968 | #include <sys/types.h> | ||
12969 | #include <netinet/in.h> | ||
12970 | |||
12971 | #ifdef F77_DUMMY_MAIN | ||
12972 | # ifdef __cplusplus | ||
12973 | extern "C" | ||
12974 | # endif | ||
12975 | int F77_DUMMY_MAIN() { return 1; } | ||
12976 | #endif | ||
12977 | int | ||
12978 | main () | ||
12979 | { | ||
12980 | struct in6_addr s; s.s6_addr[0] = 0; | ||
12981 | ; | ||
12982 | return 0; | ||
12983 | } | ||
12984 | _ACEOF | ||
12985 | rm -f conftest.$ac_objext | ||
12986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12987 | (eval $ac_compile) 2>&5 | ||
12988 | ac_status=$? | ||
12989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12990 | (exit $ac_status); } && | ||
12991 | { ac_try='test -s conftest.$ac_objext' | ||
12992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12993 | (eval $ac_try) 2>&5 | ||
12994 | ac_status=$? | ||
12995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12996 | (exit $ac_status); }; }; then | ||
12997 | ac_cv_have_struct_in6_addr="yes" | ||
12998 | else | ||
12999 | echo "$as_me: failed program was:" >&5 | ||
13000 | cat conftest.$ac_ext >&5 | ||
13001 | ac_cv_have_struct_in6_addr="no" | ||
13002 | |||
13003 | fi | ||
13004 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13005 | |||
13006 | fi | ||
13007 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
13008 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
13009 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
13010 | cat >>confdefs.h <<\_ACEOF | ||
13011 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
13012 | _ACEOF | ||
13013 | |||
13014 | fi | ||
13015 | |||
13016 | echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
13017 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
13018 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
13019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13020 | else | ||
13021 | |||
13022 | cat >conftest.$ac_ext <<_ACEOF | ||
13023 | #line $LINENO "configure" | ||
13024 | #include "confdefs.h" | ||
13025 | |||
13026 | #include <sys/types.h> | ||
13027 | #include <sys/socket.h> | ||
13028 | #include <netdb.h> | ||
13029 | |||
13030 | #ifdef F77_DUMMY_MAIN | ||
13031 | # ifdef __cplusplus | ||
13032 | extern "C" | ||
13033 | # endif | ||
13034 | int F77_DUMMY_MAIN() { return 1; } | ||
13035 | #endif | ||
13036 | int | ||
13037 | main () | ||
13038 | { | ||
13039 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
13040 | ; | ||
13041 | return 0; | ||
13042 | } | ||
13043 | _ACEOF | ||
13044 | rm -f conftest.$ac_objext | ||
13045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13046 | (eval $ac_compile) 2>&5 | ||
13047 | ac_status=$? | ||
13048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13049 | (exit $ac_status); } && | ||
13050 | { ac_try='test -s conftest.$ac_objext' | ||
13051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13052 | (eval $ac_try) 2>&5 | ||
13053 | ac_status=$? | ||
13054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13055 | (exit $ac_status); }; }; then | ||
13056 | ac_cv_have_struct_addrinfo="yes" | ||
13057 | else | ||
13058 | echo "$as_me: failed program was:" >&5 | ||
13059 | cat conftest.$ac_ext >&5 | ||
13060 | ac_cv_have_struct_addrinfo="no" | ||
13061 | |||
13062 | fi | ||
13063 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13064 | |||
13065 | fi | ||
13066 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
13067 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
13068 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
13069 | cat >>confdefs.h <<\_ACEOF | ||
13070 | #define HAVE_STRUCT_ADDRINFO 1 | ||
13071 | _ACEOF | ||
13072 | |||
13073 | fi | ||
13074 | |||
13075 | echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
13076 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
13077 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
13078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13079 | else | ||
13080 | |||
13081 | cat >conftest.$ac_ext <<_ACEOF | ||
13082 | #line $LINENO "configure" | ||
13083 | #include "confdefs.h" | ||
13084 | #include <sys/time.h> | ||
13085 | #ifdef F77_DUMMY_MAIN | ||
13086 | # ifdef __cplusplus | ||
13087 | extern "C" | ||
13088 | # endif | ||
13089 | int F77_DUMMY_MAIN() { return 1; } | ||
13090 | #endif | ||
13091 | int | ||
13092 | main () | ||
13093 | { | ||
13094 | struct timeval tv; tv.tv_sec = 1; | ||
13095 | ; | ||
13096 | return 0; | ||
13097 | } | ||
13098 | _ACEOF | ||
13099 | rm -f conftest.$ac_objext | ||
13100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13101 | (eval $ac_compile) 2>&5 | ||
13102 | ac_status=$? | ||
13103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13104 | (exit $ac_status); } && | ||
13105 | { ac_try='test -s conftest.$ac_objext' | ||
13106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13107 | (eval $ac_try) 2>&5 | ||
13108 | ac_status=$? | ||
13109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13110 | (exit $ac_status); }; }; then | ||
13111 | ac_cv_have_struct_timeval="yes" | ||
13112 | else | ||
13113 | echo "$as_me: failed program was:" >&5 | ||
13114 | cat conftest.$ac_ext >&5 | ||
13115 | ac_cv_have_struct_timeval="no" | ||
13116 | |||
13117 | fi | ||
13118 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13119 | |||
13120 | fi | ||
13121 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
13122 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
13123 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
13124 | cat >>confdefs.h <<\_ACEOF | ||
13125 | #define HAVE_STRUCT_TIMEVAL 1 | ||
13126 | _ACEOF | ||
13127 | |||
13128 | have_struct_timeval=1 | ||
13129 | fi | ||
13130 | |||
13131 | # If we don't have int64_t then we can't compile sftp-server. So don't | ||
13132 | # even attempt to do it. | ||
13133 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | ||
13134 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | ||
13135 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
13136 | NO_SFTP='#' | ||
13137 | else | ||
13138 | if test "$cross_compiling" = yes; then | ||
13139 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
13140 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
13141 | { (exit 1); exit 1; }; } | ||
13142 | else | ||
13143 | cat >conftest.$ac_ext <<_ACEOF | ||
13144 | #line $LINENO "configure" | ||
13145 | #include "confdefs.h" | ||
13146 | |||
13147 | #include <stdio.h> | ||
13148 | #include <string.h> | ||
13149 | #ifdef HAVE_SNPRINTF | ||
13150 | main() | ||
13151 | { | ||
13152 | char buf[50]; | ||
13153 | char expected_out[50]; | ||
13154 | int mazsize = 50 ; | ||
13155 | #if (SIZEOF_LONG_INT == 8) | ||
13156 | long int num = 0x7fffffffffffffff; | ||
13157 | #else | ||
13158 | long long num = 0x7fffffffffffffffll; | ||
13159 | #endif | ||
13160 | strcpy(expected_out, "9223372036854775807"); | ||
13161 | snprintf(buf, mazsize, "%lld", num); | ||
13162 | if(strcmp(buf, expected_out) != 0) | ||
13163 | exit(1); | ||
13164 | exit(0); | ||
13165 | } | ||
13166 | #else | ||
13167 | main() { exit(0); } | ||
13168 | #endif | ||
13169 | |||
13170 | _ACEOF | ||
13171 | rm -f conftest$ac_exeext | ||
13172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13173 | (eval $ac_link) 2>&5 | ||
13174 | ac_status=$? | ||
13175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13176 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13178 | (eval $ac_try) 2>&5 | ||
13179 | ac_status=$? | ||
13180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13181 | (exit $ac_status); }; }; then | ||
13182 | true | ||
13183 | else | ||
13184 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13185 | echo "$as_me: failed program was:" >&5 | ||
13186 | cat conftest.$ac_ext >&5 | ||
13187 | ( exit $ac_status ) | ||
13188 | cat >>confdefs.h <<\_ACEOF | ||
13189 | #define BROKEN_SNPRINTF 1 | ||
13190 | _ACEOF | ||
13191 | |||
13192 | |||
13193 | fi | ||
13194 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13195 | fi | ||
13196 | fi | ||
13197 | |||
13198 | |||
13199 | |||
13200 | # look for field 'ut_host' in header 'utmp.h' | ||
13201 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13202 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13203 | echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
13204 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
13205 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13207 | else | ||
13208 | |||
13209 | cat >conftest.$ac_ext <<_ACEOF | ||
13210 | #line $LINENO "configure" | ||
13211 | #include "confdefs.h" | ||
13212 | #include <utmp.h> | ||
13213 | |||
13214 | _ACEOF | ||
13215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13216 | egrep "ut_host" >/dev/null 2>&1; then | ||
13217 | eval "$ossh_varname=yes" | ||
13218 | else | ||
13219 | eval "$ossh_varname=no" | ||
13220 | fi | ||
13221 | rm -f conftest* | ||
13222 | |||
13223 | fi | ||
13224 | |||
13225 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13226 | if test -n "`echo $ossh_varname`"; then | ||
13227 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13228 | echo "${ECHO_T}$ossh_result" >&6 | ||
13229 | if test "x$ossh_result" = "xyes"; then | ||
13230 | cat >>confdefs.h <<\_ACEOF | ||
13231 | #define HAVE_HOST_IN_UTMP 1 | ||
13232 | _ACEOF | ||
13233 | |||
13234 | fi | ||
13235 | else | ||
13236 | echo "$as_me:$LINENO: result: no" >&5 | ||
13237 | echo "${ECHO_T}no" >&6 | ||
13238 | fi | ||
13239 | |||
13240 | |||
13241 | # look for field 'ut_host' in header 'utmpx.h' | ||
13242 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13243 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13244 | echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
13245 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
13246 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13248 | else | ||
13249 | |||
13250 | cat >conftest.$ac_ext <<_ACEOF | ||
13251 | #line $LINENO "configure" | ||
13252 | #include "confdefs.h" | ||
13253 | #include <utmpx.h> | ||
13254 | |||
13255 | _ACEOF | ||
13256 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13257 | egrep "ut_host" >/dev/null 2>&1; then | ||
13258 | eval "$ossh_varname=yes" | ||
13259 | else | ||
13260 | eval "$ossh_varname=no" | ||
13261 | fi | ||
13262 | rm -f conftest* | ||
13263 | |||
13264 | fi | ||
13265 | |||
13266 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13267 | if test -n "`echo $ossh_varname`"; then | ||
13268 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13269 | echo "${ECHO_T}$ossh_result" >&6 | ||
13270 | if test "x$ossh_result" = "xyes"; then | ||
13271 | cat >>confdefs.h <<\_ACEOF | ||
13272 | #define HAVE_HOST_IN_UTMPX 1 | ||
13273 | _ACEOF | ||
13274 | |||
13275 | fi | ||
13276 | else | ||
13277 | echo "$as_me:$LINENO: result: no" >&5 | ||
13278 | echo "${ECHO_T}no" >&6 | ||
13279 | fi | ||
13280 | |||
13281 | |||
13282 | # look for field 'syslen' in header 'utmpx.h' | ||
13283 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13284 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
13285 | echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
13286 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
13287 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13289 | else | ||
13290 | |||
13291 | cat >conftest.$ac_ext <<_ACEOF | ||
13292 | #line $LINENO "configure" | ||
13293 | #include "confdefs.h" | ||
13294 | #include <utmpx.h> | ||
13295 | |||
13296 | _ACEOF | ||
13297 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13298 | egrep "syslen" >/dev/null 2>&1; then | ||
13299 | eval "$ossh_varname=yes" | ||
13300 | else | ||
13301 | eval "$ossh_varname=no" | ||
13302 | fi | ||
13303 | rm -f conftest* | ||
13304 | |||
13305 | fi | ||
13306 | |||
13307 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13308 | if test -n "`echo $ossh_varname`"; then | ||
13309 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13310 | echo "${ECHO_T}$ossh_result" >&6 | ||
13311 | if test "x$ossh_result" = "xyes"; then | ||
13312 | cat >>confdefs.h <<\_ACEOF | ||
13313 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
13314 | _ACEOF | ||
13315 | |||
13316 | fi | ||
13317 | else | ||
13318 | echo "$as_me:$LINENO: result: no" >&5 | ||
13319 | echo "${ECHO_T}no" >&6 | ||
13320 | fi | ||
13321 | |||
13322 | |||
13323 | # look for field 'ut_pid' in header 'utmp.h' | ||
13324 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13325 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
13326 | echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
13327 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
13328 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13330 | else | ||
13331 | |||
13332 | cat >conftest.$ac_ext <<_ACEOF | ||
13333 | #line $LINENO "configure" | ||
13334 | #include "confdefs.h" | ||
13335 | #include <utmp.h> | ||
13336 | |||
13337 | _ACEOF | ||
13338 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13339 | egrep "ut_pid" >/dev/null 2>&1; then | ||
13340 | eval "$ossh_varname=yes" | ||
13341 | else | ||
13342 | eval "$ossh_varname=no" | ||
13343 | fi | ||
13344 | rm -f conftest* | ||
13345 | |||
13346 | fi | ||
13347 | |||
13348 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13349 | if test -n "`echo $ossh_varname`"; then | ||
13350 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13351 | echo "${ECHO_T}$ossh_result" >&6 | ||
13352 | if test "x$ossh_result" = "xyes"; then | ||
13353 | cat >>confdefs.h <<\_ACEOF | ||
13354 | #define HAVE_PID_IN_UTMP 1 | ||
13355 | _ACEOF | ||
13356 | |||
13357 | fi | ||
13358 | else | ||
13359 | echo "$as_me:$LINENO: result: no" >&5 | ||
13360 | echo "${ECHO_T}no" >&6 | ||
13361 | fi | ||
13362 | |||
13363 | |||
13364 | # look for field 'ut_type' in header 'utmp.h' | ||
13365 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13366 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13367 | echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
13368 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
13369 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13371 | else | ||
13372 | |||
13373 | cat >conftest.$ac_ext <<_ACEOF | ||
13374 | #line $LINENO "configure" | ||
13375 | #include "confdefs.h" | ||
13376 | #include <utmp.h> | ||
13377 | |||
13378 | _ACEOF | ||
13379 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13380 | egrep "ut_type" >/dev/null 2>&1; then | ||
13381 | eval "$ossh_varname=yes" | ||
13382 | else | ||
13383 | eval "$ossh_varname=no" | ||
13384 | fi | ||
13385 | rm -f conftest* | ||
13386 | |||
13387 | fi | ||
13388 | |||
13389 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13390 | if test -n "`echo $ossh_varname`"; then | ||
13391 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13392 | echo "${ECHO_T}$ossh_result" >&6 | ||
13393 | if test "x$ossh_result" = "xyes"; then | ||
13394 | cat >>confdefs.h <<\_ACEOF | ||
13395 | #define HAVE_TYPE_IN_UTMP 1 | ||
13396 | _ACEOF | ||
13397 | |||
13398 | fi | ||
13399 | else | ||
13400 | echo "$as_me:$LINENO: result: no" >&5 | ||
13401 | echo "${ECHO_T}no" >&6 | ||
13402 | fi | ||
13403 | |||
13404 | |||
13405 | # look for field 'ut_type' in header 'utmpx.h' | ||
13406 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13407 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13408 | echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
13409 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
13410 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13412 | else | ||
13413 | |||
13414 | cat >conftest.$ac_ext <<_ACEOF | ||
13415 | #line $LINENO "configure" | ||
13416 | #include "confdefs.h" | ||
13417 | #include <utmpx.h> | ||
13418 | |||
13419 | _ACEOF | ||
13420 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13421 | egrep "ut_type" >/dev/null 2>&1; then | ||
13422 | eval "$ossh_varname=yes" | ||
13423 | else | ||
13424 | eval "$ossh_varname=no" | ||
13425 | fi | ||
13426 | rm -f conftest* | ||
13427 | |||
13428 | fi | ||
13429 | |||
13430 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13431 | if test -n "`echo $ossh_varname`"; then | ||
13432 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13433 | echo "${ECHO_T}$ossh_result" >&6 | ||
13434 | if test "x$ossh_result" = "xyes"; then | ||
13435 | cat >>confdefs.h <<\_ACEOF | ||
13436 | #define HAVE_TYPE_IN_UTMPX 1 | ||
13437 | _ACEOF | ||
13438 | |||
13439 | fi | ||
13440 | else | ||
13441 | echo "$as_me:$LINENO: result: no" >&5 | ||
13442 | echo "${ECHO_T}no" >&6 | ||
13443 | fi | ||
13444 | |||
13445 | |||
13446 | # look for field 'ut_tv' in header 'utmp.h' | ||
13447 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13448 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13449 | echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
13450 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
13451 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13453 | else | ||
13454 | |||
13455 | cat >conftest.$ac_ext <<_ACEOF | ||
13456 | #line $LINENO "configure" | ||
13457 | #include "confdefs.h" | ||
13458 | #include <utmp.h> | ||
13459 | |||
13460 | _ACEOF | ||
13461 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13462 | egrep "ut_tv" >/dev/null 2>&1; then | ||
13463 | eval "$ossh_varname=yes" | ||
13464 | else | ||
13465 | eval "$ossh_varname=no" | ||
13466 | fi | ||
13467 | rm -f conftest* | ||
13468 | |||
13469 | fi | ||
13470 | |||
13471 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13472 | if test -n "`echo $ossh_varname`"; then | ||
13473 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13474 | echo "${ECHO_T}$ossh_result" >&6 | ||
13475 | if test "x$ossh_result" = "xyes"; then | ||
13476 | cat >>confdefs.h <<\_ACEOF | ||
13477 | #define HAVE_TV_IN_UTMP 1 | ||
13478 | _ACEOF | ||
13479 | |||
13480 | fi | ||
13481 | else | ||
13482 | echo "$as_me:$LINENO: result: no" >&5 | ||
13483 | echo "${ECHO_T}no" >&6 | ||
13484 | fi | ||
13485 | |||
13486 | |||
13487 | # look for field 'ut_id' in header 'utmp.h' | ||
13488 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13489 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13490 | echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
13491 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
13492 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13494 | else | ||
13495 | |||
13496 | cat >conftest.$ac_ext <<_ACEOF | ||
13497 | #line $LINENO "configure" | ||
13498 | #include "confdefs.h" | ||
13499 | #include <utmp.h> | ||
13500 | |||
13501 | _ACEOF | ||
13502 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13503 | egrep "ut_id" >/dev/null 2>&1; then | ||
13504 | eval "$ossh_varname=yes" | ||
13505 | else | ||
13506 | eval "$ossh_varname=no" | ||
13507 | fi | ||
13508 | rm -f conftest* | ||
13509 | |||
13510 | fi | ||
13511 | |||
13512 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13513 | if test -n "`echo $ossh_varname`"; then | ||
13514 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13515 | echo "${ECHO_T}$ossh_result" >&6 | ||
13516 | if test "x$ossh_result" = "xyes"; then | ||
13517 | cat >>confdefs.h <<\_ACEOF | ||
13518 | #define HAVE_ID_IN_UTMP 1 | ||
13519 | _ACEOF | ||
13520 | |||
13521 | fi | ||
13522 | else | ||
13523 | echo "$as_me:$LINENO: result: no" >&5 | ||
13524 | echo "${ECHO_T}no" >&6 | ||
13525 | fi | ||
13526 | |||
13527 | |||
13528 | # look for field 'ut_id' in header 'utmpx.h' | ||
13529 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13530 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13531 | echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
13532 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
13533 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13535 | else | ||
13536 | |||
13537 | cat >conftest.$ac_ext <<_ACEOF | ||
13538 | #line $LINENO "configure" | ||
13539 | #include "confdefs.h" | ||
13540 | #include <utmpx.h> | ||
13541 | |||
13542 | _ACEOF | ||
13543 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13544 | egrep "ut_id" >/dev/null 2>&1; then | ||
13545 | eval "$ossh_varname=yes" | ||
13546 | else | ||
13547 | eval "$ossh_varname=no" | ||
13548 | fi | ||
13549 | rm -f conftest* | ||
13550 | |||
13551 | fi | ||
13552 | |||
13553 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13554 | if test -n "`echo $ossh_varname`"; then | ||
13555 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13556 | echo "${ECHO_T}$ossh_result" >&6 | ||
13557 | if test "x$ossh_result" = "xyes"; then | ||
13558 | cat >>confdefs.h <<\_ACEOF | ||
13559 | #define HAVE_ID_IN_UTMPX 1 | ||
13560 | _ACEOF | ||
13561 | |||
13562 | fi | ||
13563 | else | ||
13564 | echo "$as_me:$LINENO: result: no" >&5 | ||
13565 | echo "${ECHO_T}no" >&6 | ||
13566 | fi | ||
13567 | |||
13568 | |||
13569 | # look for field 'ut_addr' in header 'utmp.h' | ||
13570 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13571 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13572 | echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
13573 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
13574 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13576 | else | ||
13577 | |||
13578 | cat >conftest.$ac_ext <<_ACEOF | ||
13579 | #line $LINENO "configure" | ||
13580 | #include "confdefs.h" | ||
13581 | #include <utmp.h> | ||
13582 | |||
13583 | _ACEOF | ||
13584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13585 | egrep "ut_addr" >/dev/null 2>&1; then | ||
13586 | eval "$ossh_varname=yes" | ||
13587 | else | ||
13588 | eval "$ossh_varname=no" | ||
13589 | fi | ||
13590 | rm -f conftest* | ||
13591 | |||
13592 | fi | ||
13593 | |||
13594 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13595 | if test -n "`echo $ossh_varname`"; then | ||
13596 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13597 | echo "${ECHO_T}$ossh_result" >&6 | ||
13598 | if test "x$ossh_result" = "xyes"; then | ||
13599 | cat >>confdefs.h <<\_ACEOF | ||
13600 | #define HAVE_ADDR_IN_UTMP 1 | ||
13601 | _ACEOF | ||
13602 | |||
13603 | fi | ||
13604 | else | ||
13605 | echo "$as_me:$LINENO: result: no" >&5 | ||
13606 | echo "${ECHO_T}no" >&6 | ||
13607 | fi | ||
13608 | |||
13609 | |||
13610 | # look for field 'ut_addr' in header 'utmpx.h' | ||
13611 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13612 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13613 | echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
13614 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
13615 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13617 | else | ||
13618 | |||
13619 | cat >conftest.$ac_ext <<_ACEOF | ||
13620 | #line $LINENO "configure" | ||
13621 | #include "confdefs.h" | ||
13622 | #include <utmpx.h> | ||
13623 | |||
13624 | _ACEOF | ||
13625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13626 | egrep "ut_addr" >/dev/null 2>&1; then | ||
13627 | eval "$ossh_varname=yes" | ||
13628 | else | ||
13629 | eval "$ossh_varname=no" | ||
13630 | fi | ||
13631 | rm -f conftest* | ||
13632 | |||
13633 | fi | ||
13634 | |||
13635 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13636 | if test -n "`echo $ossh_varname`"; then | ||
13637 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13638 | echo "${ECHO_T}$ossh_result" >&6 | ||
13639 | if test "x$ossh_result" = "xyes"; then | ||
13640 | cat >>confdefs.h <<\_ACEOF | ||
13641 | #define HAVE_ADDR_IN_UTMPX 1 | ||
13642 | _ACEOF | ||
13643 | |||
13644 | fi | ||
13645 | else | ||
13646 | echo "$as_me:$LINENO: result: no" >&5 | ||
13647 | echo "${ECHO_T}no" >&6 | ||
13648 | fi | ||
13649 | |||
13650 | |||
13651 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
13652 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13653 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13654 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
13655 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
13656 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13658 | else | ||
13659 | |||
13660 | cat >conftest.$ac_ext <<_ACEOF | ||
13661 | #line $LINENO "configure" | ||
13662 | #include "confdefs.h" | ||
13663 | #include <utmp.h> | ||
13664 | |||
13665 | _ACEOF | ||
13666 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13667 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
13668 | eval "$ossh_varname=yes" | ||
13669 | else | ||
13670 | eval "$ossh_varname=no" | ||
13671 | fi | ||
13672 | rm -f conftest* | ||
13673 | |||
13674 | fi | ||
13675 | |||
13676 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13677 | if test -n "`echo $ossh_varname`"; then | ||
13678 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13679 | echo "${ECHO_T}$ossh_result" >&6 | ||
13680 | if test "x$ossh_result" = "xyes"; then | ||
13681 | cat >>confdefs.h <<\_ACEOF | ||
13682 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
13683 | _ACEOF | ||
13684 | |||
13685 | fi | ||
13686 | else | ||
13687 | echo "$as_me:$LINENO: result: no" >&5 | ||
13688 | echo "${ECHO_T}no" >&6 | ||
13689 | fi | ||
13690 | |||
13691 | |||
13692 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
13693 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13694 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13695 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
13696 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
13697 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13699 | else | ||
13700 | |||
13701 | cat >conftest.$ac_ext <<_ACEOF | ||
13702 | #line $LINENO "configure" | ||
13703 | #include "confdefs.h" | ||
13704 | #include <utmpx.h> | ||
13705 | |||
13706 | _ACEOF | ||
13707 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13708 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
13709 | eval "$ossh_varname=yes" | ||
13710 | else | ||
13711 | eval "$ossh_varname=no" | ||
13712 | fi | ||
13713 | rm -f conftest* | ||
13714 | |||
13715 | fi | ||
13716 | |||
13717 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13718 | if test -n "`echo $ossh_varname`"; then | ||
13719 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13720 | echo "${ECHO_T}$ossh_result" >&6 | ||
13721 | if test "x$ossh_result" = "xyes"; then | ||
13722 | cat >>confdefs.h <<\_ACEOF | ||
13723 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
13724 | _ACEOF | ||
13725 | |||
13726 | fi | ||
13727 | else | ||
13728 | echo "$as_me:$LINENO: result: no" >&5 | ||
13729 | echo "${ECHO_T}no" >&6 | ||
13730 | fi | ||
13731 | |||
13732 | |||
13733 | # look for field 'ut_exit' in header 'utmp.h' | ||
13734 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13735 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
13736 | echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
13737 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
13738 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13740 | else | ||
13741 | |||
13742 | cat >conftest.$ac_ext <<_ACEOF | ||
13743 | #line $LINENO "configure" | ||
13744 | #include "confdefs.h" | ||
13745 | #include <utmp.h> | ||
13746 | |||
13747 | _ACEOF | ||
13748 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13749 | egrep "ut_exit" >/dev/null 2>&1; then | ||
13750 | eval "$ossh_varname=yes" | ||
13751 | else | ||
13752 | eval "$ossh_varname=no" | ||
13753 | fi | ||
13754 | rm -f conftest* | ||
13755 | |||
13756 | fi | ||
13757 | |||
13758 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13759 | if test -n "`echo $ossh_varname`"; then | ||
13760 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13761 | echo "${ECHO_T}$ossh_result" >&6 | ||
13762 | if test "x$ossh_result" = "xyes"; then | ||
13763 | cat >>confdefs.h <<\_ACEOF | ||
13764 | #define HAVE_EXIT_IN_UTMP 1 | ||
13765 | _ACEOF | ||
13766 | |||
13767 | fi | ||
13768 | else | ||
13769 | echo "$as_me:$LINENO: result: no" >&5 | ||
13770 | echo "${ECHO_T}no" >&6 | ||
13771 | fi | ||
13772 | |||
13773 | |||
13774 | # look for field 'ut_time' in header 'utmp.h' | ||
13775 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13776 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13777 | echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
13778 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
13779 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13781 | else | ||
13782 | |||
13783 | cat >conftest.$ac_ext <<_ACEOF | ||
13784 | #line $LINENO "configure" | ||
13785 | #include "confdefs.h" | ||
13786 | #include <utmp.h> | ||
13787 | |||
13788 | _ACEOF | ||
13789 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13790 | egrep "ut_time" >/dev/null 2>&1; then | ||
13791 | eval "$ossh_varname=yes" | ||
13792 | else | ||
13793 | eval "$ossh_varname=no" | ||
13794 | fi | ||
13795 | rm -f conftest* | ||
13796 | |||
13797 | fi | ||
13798 | |||
13799 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13800 | if test -n "`echo $ossh_varname`"; then | ||
13801 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13802 | echo "${ECHO_T}$ossh_result" >&6 | ||
13803 | if test "x$ossh_result" = "xyes"; then | ||
13804 | cat >>confdefs.h <<\_ACEOF | ||
13805 | #define HAVE_TIME_IN_UTMP 1 | ||
13806 | _ACEOF | ||
13807 | |||
13808 | fi | ||
13809 | else | ||
13810 | echo "$as_me:$LINENO: result: no" >&5 | ||
13811 | echo "${ECHO_T}no" >&6 | ||
13812 | fi | ||
13813 | |||
13814 | |||
13815 | # look for field 'ut_time' in header 'utmpx.h' | ||
13816 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13817 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13818 | echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
13819 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
13820 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13822 | else | ||
13823 | |||
13824 | cat >conftest.$ac_ext <<_ACEOF | ||
13825 | #line $LINENO "configure" | ||
13826 | #include "confdefs.h" | ||
13827 | #include <utmpx.h> | ||
13828 | |||
13829 | _ACEOF | ||
13830 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13831 | egrep "ut_time" >/dev/null 2>&1; then | ||
13832 | eval "$ossh_varname=yes" | ||
13833 | else | ||
13834 | eval "$ossh_varname=no" | ||
13835 | fi | ||
13836 | rm -f conftest* | ||
13837 | |||
13838 | fi | ||
13839 | |||
13840 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13841 | if test -n "`echo $ossh_varname`"; then | ||
13842 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13843 | echo "${ECHO_T}$ossh_result" >&6 | ||
13844 | if test "x$ossh_result" = "xyes"; then | ||
13845 | cat >>confdefs.h <<\_ACEOF | ||
13846 | #define HAVE_TIME_IN_UTMPX 1 | ||
13847 | _ACEOF | ||
13848 | |||
13849 | fi | ||
13850 | else | ||
13851 | echo "$as_me:$LINENO: result: no" >&5 | ||
13852 | echo "${ECHO_T}no" >&6 | ||
13853 | fi | ||
13854 | |||
13855 | |||
13856 | # look for field 'ut_tv' in header 'utmpx.h' | ||
13857 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13858 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13859 | echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
13860 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
13861 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13863 | else | ||
13864 | |||
13865 | cat >conftest.$ac_ext <<_ACEOF | ||
13866 | #line $LINENO "configure" | ||
13867 | #include "confdefs.h" | ||
13868 | #include <utmpx.h> | ||
13869 | |||
13870 | _ACEOF | ||
13871 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13872 | egrep "ut_tv" >/dev/null 2>&1; then | ||
13873 | eval "$ossh_varname=yes" | ||
13874 | else | ||
13875 | eval "$ossh_varname=no" | ||
13876 | fi | ||
13877 | rm -f conftest* | ||
13878 | |||
13879 | fi | ||
13880 | |||
13881 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13882 | if test -n "`echo $ossh_varname`"; then | ||
13883 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13884 | echo "${ECHO_T}$ossh_result" >&6 | ||
13885 | if test "x$ossh_result" = "xyes"; then | ||
13886 | cat >>confdefs.h <<\_ACEOF | ||
13887 | #define HAVE_TV_IN_UTMPX 1 | ||
13888 | _ACEOF | ||
13889 | |||
13890 | fi | ||
13891 | else | ||
13892 | echo "$as_me:$LINENO: result: no" >&5 | ||
13893 | echo "${ECHO_T}no" >&6 | ||
13894 | fi | ||
13895 | |||
13896 | |||
13897 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
13898 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
13899 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
13900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13901 | else | ||
13902 | cat >conftest.$ac_ext <<_ACEOF | ||
13903 | #line $LINENO "configure" | ||
13904 | #include "confdefs.h" | ||
13905 | $ac_includes_default | ||
13906 | #ifdef F77_DUMMY_MAIN | ||
13907 | # ifdef __cplusplus | ||
13908 | extern "C" | ||
13909 | # endif | ||
13910 | int F77_DUMMY_MAIN() { return 1; } | ||
13911 | #endif | ||
13912 | int | ||
13913 | main () | ||
13914 | { | ||
13915 | static struct stat ac_aggr; | ||
13916 | if (ac_aggr.st_blksize) | ||
13917 | return 0; | ||
13918 | ; | ||
13919 | return 0; | ||
13920 | } | ||
13921 | _ACEOF | ||
13922 | rm -f conftest.$ac_objext | ||
13923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13924 | (eval $ac_compile) 2>&5 | ||
13925 | ac_status=$? | ||
13926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13927 | (exit $ac_status); } && | ||
13928 | { ac_try='test -s conftest.$ac_objext' | ||
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_member_struct_stat_st_blksize=yes | ||
13935 | else | ||
13936 | echo "$as_me: failed program was:" >&5 | ||
13937 | cat conftest.$ac_ext >&5 | ||
13938 | ac_cv_member_struct_stat_st_blksize=no | ||
13939 | fi | ||
13940 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13941 | fi | ||
13942 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
13943 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
13944 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
13945 | |||
13946 | cat >>confdefs.h <<_ACEOF | ||
13947 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
13948 | _ACEOF | ||
13949 | |||
13950 | |||
13951 | fi | ||
13952 | |||
13953 | |||
13954 | echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
13955 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
13956 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
13957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13958 | else | ||
13959 | |||
13960 | cat >conftest.$ac_ext <<_ACEOF | ||
13961 | #line $LINENO "configure" | ||
13962 | #include "confdefs.h" | ||
13963 | |||
13964 | #include <sys/types.h> | ||
13965 | #include <sys/socket.h> | ||
13966 | |||
13967 | #ifdef F77_DUMMY_MAIN | ||
13968 | # ifdef __cplusplus | ||
13969 | extern "C" | ||
13970 | # endif | ||
13971 | int F77_DUMMY_MAIN() { return 1; } | ||
13972 | #endif | ||
13973 | int | ||
13974 | main () | ||
13975 | { | ||
13976 | struct sockaddr_storage s; s.ss_family = 1; | ||
13977 | ; | ||
13978 | return 0; | ||
13979 | } | ||
13980 | _ACEOF | ||
13981 | rm -f conftest.$ac_objext | ||
13982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13983 | (eval $ac_compile) 2>&5 | ||
13984 | ac_status=$? | ||
13985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13986 | (exit $ac_status); } && | ||
13987 | { ac_try='test -s conftest.$ac_objext' | ||
13988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13989 | (eval $ac_try) 2>&5 | ||
13990 | ac_status=$? | ||
13991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13992 | (exit $ac_status); }; }; then | ||
13993 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
13994 | else | ||
13995 | echo "$as_me: failed program was:" >&5 | ||
13996 | cat conftest.$ac_ext >&5 | ||
13997 | ac_cv_have_ss_family_in_struct_ss="no" | ||
13998 | fi | ||
13999 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14000 | |||
14001 | fi | ||
14002 | echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
14003 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
14004 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
14005 | cat >>confdefs.h <<\_ACEOF | ||
14006 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
14007 | _ACEOF | ||
14008 | |||
14009 | fi | ||
14010 | |||
14011 | echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
14012 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
14013 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
14014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14015 | else | ||
14016 | |||
14017 | cat >conftest.$ac_ext <<_ACEOF | ||
14018 | #line $LINENO "configure" | ||
14019 | #include "confdefs.h" | ||
14020 | |||
14021 | #include <sys/types.h> | ||
14022 | #include <sys/socket.h> | ||
14023 | |||
14024 | #ifdef F77_DUMMY_MAIN | ||
14025 | # ifdef __cplusplus | ||
14026 | extern "C" | ||
14027 | # endif | ||
14028 | int F77_DUMMY_MAIN() { return 1; } | ||
14029 | #endif | ||
14030 | int | ||
14031 | main () | ||
14032 | { | ||
14033 | struct sockaddr_storage s; s.__ss_family = 1; | ||
14034 | ; | ||
14035 | return 0; | ||
14036 | } | ||
14037 | _ACEOF | ||
14038 | rm -f conftest.$ac_objext | ||
14039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14040 | (eval $ac_compile) 2>&5 | ||
14041 | ac_status=$? | ||
14042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14043 | (exit $ac_status); } && | ||
14044 | { ac_try='test -s conftest.$ac_objext' | ||
14045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14046 | (eval $ac_try) 2>&5 | ||
14047 | ac_status=$? | ||
14048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14049 | (exit $ac_status); }; }; then | ||
14050 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
14051 | else | ||
14052 | echo "$as_me: failed program was:" >&5 | ||
14053 | cat conftest.$ac_ext >&5 | ||
14054 | ac_cv_have___ss_family_in_struct_ss="no" | ||
14055 | |||
14056 | fi | ||
14057 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14058 | |||
14059 | fi | ||
14060 | echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
14061 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
14062 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
14063 | cat >>confdefs.h <<\_ACEOF | ||
14064 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
14065 | _ACEOF | ||
14066 | |||
14067 | fi | ||
14068 | |||
14069 | echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
14070 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
14071 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
14072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14073 | else | ||
14074 | |||
14075 | cat >conftest.$ac_ext <<_ACEOF | ||
14076 | #line $LINENO "configure" | ||
14077 | #include "confdefs.h" | ||
14078 | |||
14079 | #include <pwd.h> | ||
14080 | |||
14081 | #ifdef F77_DUMMY_MAIN | ||
14082 | # ifdef __cplusplus | ||
14083 | extern "C" | ||
14084 | # endif | ||
14085 | int F77_DUMMY_MAIN() { return 1; } | ||
14086 | #endif | ||
14087 | int | ||
14088 | main () | ||
14089 | { | ||
14090 | struct passwd p; p.pw_class = 0; | ||
14091 | ; | ||
14092 | return 0; | ||
14093 | } | ||
14094 | _ACEOF | ||
14095 | rm -f conftest.$ac_objext | ||
14096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14097 | (eval $ac_compile) 2>&5 | ||
14098 | ac_status=$? | ||
14099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14100 | (exit $ac_status); } && | ||
14101 | { ac_try='test -s conftest.$ac_objext' | ||
14102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14103 | (eval $ac_try) 2>&5 | ||
14104 | ac_status=$? | ||
14105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14106 | (exit $ac_status); }; }; then | ||
14107 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
14108 | else | ||
14109 | echo "$as_me: failed program was:" >&5 | ||
14110 | cat conftest.$ac_ext >&5 | ||
14111 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
14112 | |||
14113 | fi | ||
14114 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14115 | |||
14116 | fi | ||
14117 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
14118 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
14119 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
14120 | cat >>confdefs.h <<\_ACEOF | ||
14121 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
14122 | _ACEOF | ||
14123 | |||
14124 | fi | ||
14125 | |||
14126 | echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
14127 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
14128 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
14129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14130 | else | ||
14131 | |||
14132 | cat >conftest.$ac_ext <<_ACEOF | ||
14133 | #line $LINENO "configure" | ||
14134 | #include "confdefs.h" | ||
14135 | |||
14136 | #include <pwd.h> | ||
14137 | |||
14138 | #ifdef F77_DUMMY_MAIN | ||
14139 | # ifdef __cplusplus | ||
14140 | extern "C" | ||
14141 | # endif | ||
14142 | int F77_DUMMY_MAIN() { return 1; } | ||
14143 | #endif | ||
14144 | int | ||
14145 | main () | ||
14146 | { | ||
14147 | struct passwd p; p.pw_expire = 0; | ||
14148 | ; | ||
14149 | return 0; | ||
14150 | } | ||
14151 | _ACEOF | ||
14152 | rm -f conftest.$ac_objext | ||
14153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14154 | (eval $ac_compile) 2>&5 | ||
14155 | ac_status=$? | ||
14156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14157 | (exit $ac_status); } && | ||
14158 | { ac_try='test -s conftest.$ac_objext' | ||
14159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14160 | (eval $ac_try) 2>&5 | ||
14161 | ac_status=$? | ||
14162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14163 | (exit $ac_status); }; }; then | ||
14164 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
14165 | else | ||
14166 | echo "$as_me: failed program was:" >&5 | ||
14167 | cat conftest.$ac_ext >&5 | ||
14168 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
14169 | |||
14170 | fi | ||
14171 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14172 | |||
14173 | fi | ||
14174 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
14175 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
14176 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
14177 | cat >>confdefs.h <<\_ACEOF | ||
14178 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
14179 | _ACEOF | ||
14180 | |||
14181 | fi | ||
14182 | |||
14183 | echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
14184 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
14185 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
14186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14187 | else | ||
14188 | |||
14189 | cat >conftest.$ac_ext <<_ACEOF | ||
14190 | #line $LINENO "configure" | ||
14191 | #include "confdefs.h" | ||
14192 | |||
14193 | #include <pwd.h> | ||
14194 | |||
14195 | #ifdef F77_DUMMY_MAIN | ||
14196 | # ifdef __cplusplus | ||
14197 | extern "C" | ||
14198 | # endif | ||
14199 | int F77_DUMMY_MAIN() { return 1; } | ||
14200 | #endif | ||
14201 | int | ||
14202 | main () | ||
14203 | { | ||
14204 | struct passwd p; p.pw_change = 0; | ||
14205 | ; | ||
14206 | return 0; | ||
14207 | } | ||
14208 | _ACEOF | ||
14209 | rm -f conftest.$ac_objext | ||
14210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14211 | (eval $ac_compile) 2>&5 | ||
14212 | ac_status=$? | ||
14213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14214 | (exit $ac_status); } && | ||
14215 | { ac_try='test -s conftest.$ac_objext' | ||
14216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14217 | (eval $ac_try) 2>&5 | ||
14218 | ac_status=$? | ||
14219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14220 | (exit $ac_status); }; }; then | ||
14221 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
14222 | else | ||
14223 | echo "$as_me: failed program was:" >&5 | ||
14224 | cat conftest.$ac_ext >&5 | ||
14225 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
14226 | |||
14227 | fi | ||
14228 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14229 | |||
14230 | fi | ||
14231 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
14232 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
14233 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
14234 | cat >>confdefs.h <<\_ACEOF | ||
14235 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
14236 | _ACEOF | ||
14237 | |||
14238 | fi | ||
14239 | |||
14240 | echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
14241 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
14242 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
14243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14244 | else | ||
14245 | |||
14246 | if test "$cross_compiling" = yes; then | ||
14247 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
14248 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
14249 | { (exit 1); exit 1; }; } | ||
14250 | else | ||
14251 | cat >conftest.$ac_ext <<_ACEOF | ||
14252 | #line $LINENO "configure" | ||
14253 | #include "confdefs.h" | ||
14254 | |||
14255 | #include <sys/types.h> | ||
14256 | #include <sys/socket.h> | ||
14257 | #include <sys/uio.h> | ||
14258 | int main() { | ||
14259 | #ifdef msg_accrights | ||
14260 | exit(1); | ||
14261 | #endif | ||
14262 | struct msghdr m; | ||
14263 | m.msg_accrights = 0; | ||
14264 | exit(0); | ||
14265 | } | ||
14266 | |||
14267 | _ACEOF | ||
14268 | rm -f conftest$ac_exeext | ||
14269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14270 | (eval $ac_link) 2>&5 | ||
14271 | ac_status=$? | ||
14272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14273 | (exit $ac_status); } && { ac_try='./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_have_accrights_in_msghdr="yes" | ||
14280 | else | ||
14281 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14282 | echo "$as_me: failed program was:" >&5 | ||
14283 | cat conftest.$ac_ext >&5 | ||
14284 | ( exit $ac_status ) | ||
14285 | ac_cv_have_accrights_in_msghdr="no" | ||
14286 | |||
14287 | fi | ||
14288 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14289 | fi | ||
14290 | |||
14291 | fi | ||
14292 | echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
14293 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
14294 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
14295 | cat >>confdefs.h <<\_ACEOF | ||
14296 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
14297 | _ACEOF | ||
14298 | |||
14299 | fi | ||
14300 | |||
14301 | echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
14302 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
14303 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
14304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14305 | else | ||
14306 | |||
14307 | if test "$cross_compiling" = yes; then | ||
14308 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
14309 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
14310 | { (exit 1); exit 1; }; } | ||
14311 | else | ||
14312 | cat >conftest.$ac_ext <<_ACEOF | ||
14313 | #line $LINENO "configure" | ||
14314 | #include "confdefs.h" | ||
14315 | |||
14316 | #include <sys/types.h> | ||
14317 | #include <sys/socket.h> | ||
14318 | #include <sys/uio.h> | ||
14319 | int main() { | ||
14320 | #ifdef msg_control | ||
14321 | exit(1); | ||
14322 | #endif | ||
14323 | struct msghdr m; | ||
14324 | m.msg_control = 0; | ||
14325 | exit(0); | ||
14326 | } | ||
14327 | |||
14328 | _ACEOF | ||
14329 | rm -f conftest$ac_exeext | ||
14330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14331 | (eval $ac_link) 2>&5 | ||
14332 | ac_status=$? | ||
14333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14336 | (eval $ac_try) 2>&5 | ||
14337 | ac_status=$? | ||
14338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14339 | (exit $ac_status); }; }; then | ||
14340 | ac_cv_have_control_in_msghdr="yes" | ||
14341 | else | ||
14342 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14343 | echo "$as_me: failed program was:" >&5 | ||
14344 | cat conftest.$ac_ext >&5 | ||
14345 | ( exit $ac_status ) | ||
14346 | ac_cv_have_control_in_msghdr="no" | ||
14347 | |||
14348 | fi | ||
14349 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14350 | fi | ||
14351 | |||
14352 | fi | ||
14353 | echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
14354 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
14355 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
14356 | cat >>confdefs.h <<\_ACEOF | ||
14357 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
14358 | _ACEOF | ||
14359 | |||
14360 | fi | ||
14361 | |||
14362 | echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
14363 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
14364 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
14365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14366 | else | ||
14367 | |||
14368 | cat >conftest.$ac_ext <<_ACEOF | ||
14369 | #line $LINENO "configure" | ||
14370 | #include "confdefs.h" | ||
14371 | |||
14372 | #ifdef F77_DUMMY_MAIN | ||
14373 | # ifdef __cplusplus | ||
14374 | extern "C" | ||
14375 | # endif | ||
14376 | int F77_DUMMY_MAIN() { return 1; } | ||
14377 | #endif | ||
14378 | int | ||
14379 | main () | ||
14380 | { | ||
14381 | extern char *__progname; printf("%s", __progname); | ||
14382 | ; | ||
14383 | return 0; | ||
14384 | } | ||
14385 | _ACEOF | ||
14386 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14388 | (eval $ac_link) 2>&5 | ||
14389 | ac_status=$? | ||
14390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14391 | (exit $ac_status); } && | ||
14392 | { ac_try='test -s conftest$ac_exeext' | ||
14393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14394 | (eval $ac_try) 2>&5 | ||
14395 | ac_status=$? | ||
14396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14397 | (exit $ac_status); }; }; then | ||
14398 | ac_cv_libc_defines___progname="yes" | ||
14399 | else | ||
14400 | echo "$as_me: failed program was:" >&5 | ||
14401 | cat conftest.$ac_ext >&5 | ||
14402 | ac_cv_libc_defines___progname="no" | ||
14403 | |||
14404 | fi | ||
14405 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14406 | |||
14407 | fi | ||
14408 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
14409 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
14410 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
14411 | cat >>confdefs.h <<\_ACEOF | ||
14412 | #define HAVE___PROGNAME 1 | ||
14413 | _ACEOF | ||
14414 | |||
14415 | fi | ||
14416 | |||
14417 | echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
14418 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
14419 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
14420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14421 | else | ||
14422 | |||
14423 | cat >conftest.$ac_ext <<_ACEOF | ||
14424 | #line $LINENO "configure" | ||
14425 | #include "confdefs.h" | ||
14426 | |||
14427 | #include <stdio.h> | ||
14428 | |||
14429 | #ifdef F77_DUMMY_MAIN | ||
14430 | # ifdef __cplusplus | ||
14431 | extern "C" | ||
14432 | # endif | ||
14433 | int F77_DUMMY_MAIN() { return 1; } | ||
14434 | #endif | ||
14435 | int | ||
14436 | main () | ||
14437 | { | ||
14438 | printf("%s", __FUNCTION__); | ||
14439 | ; | ||
14440 | return 0; | ||
14441 | } | ||
14442 | _ACEOF | ||
14443 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14445 | (eval $ac_link) 2>&5 | ||
14446 | ac_status=$? | ||
14447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14448 | (exit $ac_status); } && | ||
14449 | { ac_try='test -s conftest$ac_exeext' | ||
14450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14451 | (eval $ac_try) 2>&5 | ||
14452 | ac_status=$? | ||
14453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14454 | (exit $ac_status); }; }; then | ||
14455 | ac_cv_cc_implements___FUNCTION__="yes" | ||
14456 | else | ||
14457 | echo "$as_me: failed program was:" >&5 | ||
14458 | cat conftest.$ac_ext >&5 | ||
14459 | ac_cv_cc_implements___FUNCTION__="no" | ||
14460 | |||
14461 | fi | ||
14462 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14463 | |||
14464 | fi | ||
14465 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
14466 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
14467 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
14468 | cat >>confdefs.h <<\_ACEOF | ||
14469 | #define HAVE___FUNCTION__ 1 | ||
14470 | _ACEOF | ||
14471 | |||
14472 | fi | ||
14473 | |||
14474 | echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
14475 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
14476 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
14477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14478 | else | ||
14479 | |||
14480 | cat >conftest.$ac_ext <<_ACEOF | ||
14481 | #line $LINENO "configure" | ||
14482 | #include "confdefs.h" | ||
14483 | |||
14484 | #include <stdio.h> | ||
14485 | |||
14486 | #ifdef F77_DUMMY_MAIN | ||
14487 | # ifdef __cplusplus | ||
14488 | extern "C" | ||
14489 | # endif | ||
14490 | int F77_DUMMY_MAIN() { return 1; } | ||
14491 | #endif | ||
14492 | int | ||
14493 | main () | ||
14494 | { | ||
14495 | printf("%s", __func__); | ||
14496 | ; | ||
14497 | return 0; | ||
14498 | } | ||
14499 | _ACEOF | ||
14500 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14502 | (eval $ac_link) 2>&5 | ||
14503 | ac_status=$? | ||
14504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14505 | (exit $ac_status); } && | ||
14506 | { ac_try='test -s conftest$ac_exeext' | ||
14507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14508 | (eval $ac_try) 2>&5 | ||
14509 | ac_status=$? | ||
14510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14511 | (exit $ac_status); }; }; then | ||
14512 | ac_cv_cc_implements___func__="yes" | ||
14513 | else | ||
14514 | echo "$as_me: failed program was:" >&5 | ||
14515 | cat conftest.$ac_ext >&5 | ||
14516 | ac_cv_cc_implements___func__="no" | ||
14517 | |||
14518 | fi | ||
14519 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14520 | |||
14521 | fi | ||
14522 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
14523 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
14524 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
14525 | cat >>confdefs.h <<\_ACEOF | ||
14526 | #define HAVE___func__ 1 | ||
14527 | _ACEOF | ||
14528 | |||
14529 | fi | ||
14530 | |||
14531 | echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
14532 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
14533 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
14534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14535 | else | ||
14536 | |||
14537 | cat >conftest.$ac_ext <<_ACEOF | ||
14538 | #line $LINENO "configure" | ||
14539 | #include "confdefs.h" | ||
14540 | |||
14541 | #include <getopt.h> | ||
14542 | |||
14543 | #ifdef F77_DUMMY_MAIN | ||
14544 | # ifdef __cplusplus | ||
14545 | extern "C" | ||
14546 | # endif | ||
14547 | int F77_DUMMY_MAIN() { return 1; } | ||
14548 | #endif | ||
14549 | int | ||
14550 | main () | ||
14551 | { | ||
14552 | extern int optreset; optreset = 0; | ||
14553 | ; | ||
14554 | return 0; | ||
14555 | } | ||
14556 | _ACEOF | ||
14557 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14559 | (eval $ac_link) 2>&5 | ||
14560 | ac_status=$? | ||
14561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14562 | (exit $ac_status); } && | ||
14563 | { ac_try='test -s conftest$ac_exeext' | ||
14564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14565 | (eval $ac_try) 2>&5 | ||
14566 | ac_status=$? | ||
14567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14568 | (exit $ac_status); }; }; then | ||
14569 | ac_cv_have_getopt_optreset="yes" | ||
14570 | else | ||
14571 | echo "$as_me: failed program was:" >&5 | ||
14572 | cat conftest.$ac_ext >&5 | ||
14573 | ac_cv_have_getopt_optreset="no" | ||
14574 | |||
14575 | fi | ||
14576 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14577 | |||
14578 | fi | ||
14579 | echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
14580 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
14581 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
14582 | cat >>confdefs.h <<\_ACEOF | ||
14583 | #define HAVE_GETOPT_OPTRESET 1 | ||
14584 | _ACEOF | ||
14585 | |||
14586 | fi | ||
14587 | |||
14588 | echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
14589 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
14590 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
14591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14592 | else | ||
14593 | |||
14594 | cat >conftest.$ac_ext <<_ACEOF | ||
14595 | #line $LINENO "configure" | ||
14596 | #include "confdefs.h" | ||
14597 | |||
14598 | #ifdef F77_DUMMY_MAIN | ||
14599 | # ifdef __cplusplus | ||
14600 | extern "C" | ||
14601 | # endif | ||
14602 | int F77_DUMMY_MAIN() { return 1; } | ||
14603 | #endif | ||
14604 | int | ||
14605 | main () | ||
14606 | { | ||
14607 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
14608 | ; | ||
14609 | return 0; | ||
14610 | } | ||
14611 | _ACEOF | ||
14612 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14614 | (eval $ac_link) 2>&5 | ||
14615 | ac_status=$? | ||
14616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14617 | (exit $ac_status); } && | ||
14618 | { ac_try='test -s conftest$ac_exeext' | ||
14619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14620 | (eval $ac_try) 2>&5 | ||
14621 | ac_status=$? | ||
14622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14623 | (exit $ac_status); }; }; then | ||
14624 | ac_cv_libc_defines_sys_errlist="yes" | ||
14625 | else | ||
14626 | echo "$as_me: failed program was:" >&5 | ||
14627 | cat conftest.$ac_ext >&5 | ||
14628 | ac_cv_libc_defines_sys_errlist="no" | ||
14629 | |||
14630 | fi | ||
14631 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14632 | |||
14633 | fi | ||
14634 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
14635 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
14636 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
14637 | cat >>confdefs.h <<\_ACEOF | ||
14638 | #define HAVE_SYS_ERRLIST 1 | ||
14639 | _ACEOF | ||
14640 | |||
14641 | fi | ||
14642 | |||
14643 | |||
14644 | echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
14645 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
14646 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
14647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14648 | else | ||
14649 | |||
14650 | cat >conftest.$ac_ext <<_ACEOF | ||
14651 | #line $LINENO "configure" | ||
14652 | #include "confdefs.h" | ||
14653 | |||
14654 | #ifdef F77_DUMMY_MAIN | ||
14655 | # ifdef __cplusplus | ||
14656 | extern "C" | ||
14657 | # endif | ||
14658 | int F77_DUMMY_MAIN() { return 1; } | ||
14659 | #endif | ||
14660 | int | ||
14661 | main () | ||
14662 | { | ||
14663 | extern int sys_nerr; printf("%i", sys_nerr); | ||
14664 | ; | ||
14665 | return 0; | ||
14666 | } | ||
14667 | _ACEOF | ||
14668 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14670 | (eval $ac_link) 2>&5 | ||
14671 | ac_status=$? | ||
14672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14673 | (exit $ac_status); } && | ||
14674 | { ac_try='test -s conftest$ac_exeext' | ||
14675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14676 | (eval $ac_try) 2>&5 | ||
14677 | ac_status=$? | ||
14678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14679 | (exit $ac_status); }; }; then | ||
14680 | ac_cv_libc_defines_sys_nerr="yes" | ||
14681 | else | ||
14682 | echo "$as_me: failed program was:" >&5 | ||
14683 | cat conftest.$ac_ext >&5 | ||
14684 | ac_cv_libc_defines_sys_nerr="no" | ||
14685 | |||
14686 | fi | ||
14687 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14688 | |||
14689 | fi | ||
14690 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
14691 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
14692 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
14693 | cat >>confdefs.h <<\_ACEOF | ||
14694 | #define HAVE_SYS_NERR 1 | ||
14695 | _ACEOF | ||
14696 | |||
14697 | fi | ||
14698 | |||
14699 | SCARD_MSG="no" | ||
14700 | |||
14701 | # Check whether user wants sectok support | ||
14702 | |||
14703 | # Check whether --with-sectok or --without-sectok was given. | ||
14704 | if test "${with_sectok+set}" = set; then | ||
14705 | withval="$with_sectok" | ||
14706 | |||
14707 | if test "x$withval" != "xno" ; then | ||
14708 | if test "x$withval" != "xyes" ; then | ||
14709 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
14710 | LDFLAGS="$LDFLAGS -L${withval}" | ||
14711 | if test ! -z "$need_dash_r" ; then | ||
14712 | LDFLAGS="$LDFLAGS -R${withval}" | ||
14713 | fi | ||
14714 | if test ! -z "$blibpath" ; then | ||
14715 | blibpath="$blibpath:${withval}" | ||
14716 | fi | ||
14717 | fi | ||
14718 | |||
14719 | for ac_header in sectok.h | ||
14720 | do | ||
14721 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
14722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14723 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
14724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
14725 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14727 | fi | ||
14728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
14729 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
14730 | else | ||
14731 | # Is the header compilable? | ||
14732 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
14733 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
14734 | cat >conftest.$ac_ext <<_ACEOF | ||
14735 | #line $LINENO "configure" | ||
14736 | #include "confdefs.h" | ||
14737 | $ac_includes_default | ||
14738 | #include <$ac_header> | ||
14739 | _ACEOF | ||
14740 | rm -f conftest.$ac_objext | ||
14741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14742 | (eval $ac_compile) 2>&5 | ||
14743 | ac_status=$? | ||
14744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14745 | (exit $ac_status); } && | ||
14746 | { ac_try='test -s conftest.$ac_objext' | ||
14747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14748 | (eval $ac_try) 2>&5 | ||
14749 | ac_status=$? | ||
14750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14751 | (exit $ac_status); }; }; then | ||
14752 | ac_header_compiler=yes | ||
14753 | else | ||
14754 | echo "$as_me: failed program was:" >&5 | ||
14755 | cat conftest.$ac_ext >&5 | ||
14756 | ac_header_compiler=no | ||
14757 | fi | ||
14758 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14759 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
14760 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
14761 | |||
14762 | # Is the header present? | ||
14763 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
14764 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
14765 | cat >conftest.$ac_ext <<_ACEOF | ||
14766 | #line $LINENO "configure" | ||
14767 | #include "confdefs.h" | ||
14768 | #include <$ac_header> | ||
14769 | _ACEOF | ||
14770 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
14771 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
14772 | ac_status=$? | ||
14773 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
14774 | rm -f conftest.er1 | ||
14775 | cat conftest.err >&5 | ||
14776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14777 | (exit $ac_status); } >/dev/null; then | ||
14778 | if test -s conftest.err; then | ||
14779 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
14780 | else | ||
14781 | ac_cpp_err= | ||
14782 | fi | ||
14783 | else | ||
14784 | ac_cpp_err=yes | ||
14785 | fi | ||
14786 | if test -z "$ac_cpp_err"; then | ||
14787 | ac_header_preproc=yes | ||
14788 | else | ||
14789 | echo "$as_me: failed program was:" >&5 | ||
14790 | cat conftest.$ac_ext >&5 | ||
14791 | ac_header_preproc=no | ||
14792 | fi | ||
14793 | rm -f conftest.err conftest.$ac_ext | ||
14794 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
14795 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
14796 | |||
14797 | # So? What about this header? | ||
14798 | case $ac_header_compiler:$ac_header_preproc in | ||
14799 | yes:no ) | ||
14800 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
14801 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
14802 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
14803 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
14804 | no:yes ) | ||
14805 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
14806 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
14807 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
14808 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
14809 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
14810 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
14811 | esac | ||
14812 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
14813 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
14814 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14816 | else | ||
14817 | eval "$as_ac_Header=$ac_header_preproc" | ||
14818 | fi | ||
14819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
14820 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
14821 | |||
14822 | fi | ||
14823 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
14824 | cat >>confdefs.h <<_ACEOF | ||
14825 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
14826 | _ACEOF | ||
14827 | |||
14828 | fi | ||
14829 | |||
14830 | done | ||
14831 | |||
14832 | if test "$ac_cv_header_sectok_h" != yes; then | ||
14833 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
14834 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
14835 | { (exit 1); exit 1; }; } | ||
14836 | fi | ||
14837 | |||
14838 | echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
14839 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
14840 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
14841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14842 | else | ||
14843 | ac_check_lib_save_LIBS=$LIBS | ||
14844 | LIBS="-lsectok $LIBS" | ||
14845 | cat >conftest.$ac_ext <<_ACEOF | ||
14846 | #line $LINENO "configure" | ||
14847 | #include "confdefs.h" | ||
14848 | |||
14849 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14850 | #ifdef __cplusplus | ||
14851 | extern "C" | ||
14852 | #endif | ||
14853 | /* We use char because int might match the return type of a gcc2 | ||
14854 | builtin and then its argument prototype would still apply. */ | ||
14855 | char sectok_open (); | ||
14856 | #ifdef F77_DUMMY_MAIN | ||
14857 | # ifdef __cplusplus | ||
14858 | extern "C" | ||
14859 | # endif | ||
14860 | int F77_DUMMY_MAIN() { return 1; } | ||
14861 | #endif | ||
14862 | int | ||
14863 | main () | ||
14864 | { | ||
14865 | sectok_open (); | ||
14866 | ; | ||
14867 | return 0; | ||
14868 | } | ||
14869 | _ACEOF | ||
14870 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14872 | (eval $ac_link) 2>&5 | ||
14873 | ac_status=$? | ||
14874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14875 | (exit $ac_status); } && | ||
14876 | { ac_try='test -s conftest$ac_exeext' | ||
14877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14878 | (eval $ac_try) 2>&5 | ||
14879 | ac_status=$? | ||
14880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14881 | (exit $ac_status); }; }; then | ||
14882 | ac_cv_lib_sectok_sectok_open=yes | ||
14883 | else | ||
14884 | echo "$as_me: failed program was:" >&5 | ||
14885 | cat conftest.$ac_ext >&5 | ||
14886 | ac_cv_lib_sectok_sectok_open=no | ||
14887 | fi | ||
14888 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14889 | LIBS=$ac_check_lib_save_LIBS | ||
14890 | fi | ||
14891 | echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
14892 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
14893 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
14894 | cat >>confdefs.h <<_ACEOF | ||
14895 | #define HAVE_LIBSECTOK 1 | ||
14896 | _ACEOF | ||
14897 | |||
14898 | LIBS="-lsectok $LIBS" | ||
14899 | |||
14900 | fi | ||
14901 | |||
14902 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
14903 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
14904 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
14905 | { (exit 1); exit 1; }; } | ||
14906 | fi | ||
14907 | cat >>confdefs.h <<\_ACEOF | ||
14908 | #define SMARTCARD 1 | ||
14909 | _ACEOF | ||
14910 | |||
14911 | cat >>confdefs.h <<\_ACEOF | ||
14912 | #define USE_SECTOK 1 | ||
14913 | _ACEOF | ||
14914 | |||
14915 | SCARD_MSG="yes, using sectok" | ||
14916 | fi | ||
14917 | |||
14918 | |||
14919 | fi; | ||
14920 | |||
14921 | # Check whether user wants OpenSC support | ||
14922 | |||
14923 | # Check whether --with-opensc or --without-opensc was given. | ||
14924 | if test "${with_opensc+set}" = set; then | ||
14925 | withval="$with_opensc" | ||
14926 | opensc_config_prefix="$withval" | ||
14927 | else | ||
14928 | opensc_config_prefix="" | ||
14929 | fi; | ||
14930 | if test x$opensc_config_prefix != x ; then | ||
14931 | OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config | ||
14932 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
14933 | set dummy opensc-config; ac_word=$2 | ||
14934 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14936 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
14937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14938 | else | ||
14939 | case $OPENSC_CONFIG in | ||
14940 | [\\/]* | ?:[\\/]*) | ||
14941 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
14942 | ;; | ||
14943 | *) | ||
14944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14945 | for as_dir in $PATH | ||
14946 | do | ||
14947 | IFS=$as_save_IFS | ||
14948 | test -z "$as_dir" && as_dir=. | ||
14949 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14950 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14951 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
14952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14953 | break 2 | ||
14954 | fi | ||
14955 | done | ||
14956 | done | ||
14957 | |||
14958 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
14959 | ;; | ||
14960 | esac | ||
14961 | fi | ||
14962 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
14963 | |||
14964 | if test -n "$OPENSC_CONFIG"; then | ||
14965 | echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
14966 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
14967 | else | ||
14968 | echo "$as_me:$LINENO: result: no" >&5 | ||
14969 | echo "${ECHO_T}no" >&6 | ||
14970 | fi | ||
14971 | |||
14972 | if test "$OPENSC_CONFIG" != "no"; then | ||
14973 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
14974 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
14975 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
14976 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
14977 | cat >>confdefs.h <<\_ACEOF | ||
14978 | #define SMARTCARD 1 | ||
14979 | _ACEOF | ||
14980 | |||
14981 | cat >>confdefs.h <<\_ACEOF | ||
14982 | #define USE_OPENSC 1 | ||
14983 | _ACEOF | ||
14984 | |||
14985 | SCARD_MSG="yes, using OpenSC" | ||
14986 | fi | ||
14987 | fi | ||
14988 | |||
14989 | # Check whether user wants Kerberos 5 support | ||
14990 | KRB5_MSG="no" | ||
14991 | |||
14992 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
14993 | if test "${with_kerberos5+set}" = set; then | ||
14994 | withval="$with_kerberos5" | ||
14995 | |||
14996 | if test "x$withval" != "xno" ; then | ||
14997 | if test "x$withval" = "xyes" ; then | ||
14998 | KRB5ROOT="/usr/local" | ||
14999 | else | ||
15000 | KRB5ROOT=${withval} | ||
15001 | fi | ||
15002 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
15003 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
15004 | cat >>confdefs.h <<\_ACEOF | ||
15005 | #define KRB5 1 | ||
15006 | _ACEOF | ||
15007 | |||
15008 | KRB5_MSG="yes" | ||
15009 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
15010 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
15011 | cat >conftest.$ac_ext <<_ACEOF | ||
15012 | #line $LINENO "configure" | ||
15013 | #include "confdefs.h" | ||
15014 | #include <krb5.h> | ||
15015 | #ifdef F77_DUMMY_MAIN | ||
15016 | # ifdef __cplusplus | ||
15017 | extern "C" | ||
15018 | # endif | ||
15019 | int F77_DUMMY_MAIN() { return 1; } | ||
15020 | #endif | ||
15021 | int | ||
15022 | main () | ||
15023 | { | ||
15024 | char *tmp = heimdal_version; | ||
15025 | ; | ||
15026 | return 0; | ||
15027 | } | ||
15028 | _ACEOF | ||
15029 | rm -f conftest.$ac_objext | ||
15030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15031 | (eval $ac_compile) 2>&5 | ||
15032 | ac_status=$? | ||
15033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15034 | (exit $ac_status); } && | ||
15035 | { ac_try='test -s conftest.$ac_objext' | ||
15036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15037 | (eval $ac_try) 2>&5 | ||
15038 | ac_status=$? | ||
15039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15040 | (exit $ac_status); }; }; then | ||
15041 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15042 | echo "${ECHO_T}yes" >&6 | ||
15043 | cat >>confdefs.h <<\_ACEOF | ||
15044 | #define HEIMDAL 1 | ||
15045 | _ACEOF | ||
15046 | |||
15047 | K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken" | ||
15048 | |||
15049 | else | ||
15050 | echo "$as_me: failed program was:" >&5 | ||
15051 | cat conftest.$ac_ext >&5 | ||
15052 | echo "$as_me:$LINENO: result: no" >&5 | ||
15053 | echo "${ECHO_T}no" >&6 | ||
15054 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
15055 | |||
15056 | |||
15057 | fi | ||
15058 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15059 | if test ! -z "$need_dash_r" ; then | ||
15060 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
15061 | fi | ||
15062 | if test ! -z "$blibpath" ; then | ||
15063 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
15064 | fi | ||
15065 | |||
15066 | echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 | ||
15067 | echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6 | ||
15068 | if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then | ||
15069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15070 | else | ||
15071 | ac_check_lib_save_LIBS=$LIBS | ||
15072 | LIBS="-lresolv $LIBS" | ||
15073 | cat >conftest.$ac_ext <<_ACEOF | ||
15074 | #line $LINENO "configure" | ||
15075 | #include "confdefs.h" | ||
15076 | |||
15077 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15078 | #ifdef __cplusplus | ||
15079 | extern "C" | ||
15080 | #endif | ||
15081 | /* We use char because int might match the return type of a gcc2 | ||
15082 | builtin and then its argument prototype would still apply. */ | ||
15083 | char dn_expand (); | ||
15084 | #ifdef F77_DUMMY_MAIN | ||
15085 | # ifdef __cplusplus | ||
15086 | extern "C" | ||
15087 | # endif | ||
15088 | int F77_DUMMY_MAIN() { return 1; } | ||
15089 | #endif | ||
15090 | int | ||
15091 | main () | ||
15092 | { | ||
15093 | dn_expand (); | ||
15094 | ; | ||
15095 | return 0; | ||
15096 | } | ||
15097 | _ACEOF | ||
15098 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15100 | (eval $ac_link) 2>&5 | ||
15101 | ac_status=$? | ||
15102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15103 | (exit $ac_status); } && | ||
15104 | { ac_try='test -s conftest$ac_exeext' | ||
15105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15106 | (eval $ac_try) 2>&5 | ||
15107 | ac_status=$? | ||
15108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15109 | (exit $ac_status); }; }; then | ||
15110 | ac_cv_lib_resolv_dn_expand=yes | ||
15111 | else | ||
15112 | echo "$as_me: failed program was:" >&5 | ||
15113 | cat conftest.$ac_ext >&5 | ||
15114 | ac_cv_lib_resolv_dn_expand=no | ||
15115 | fi | ||
15116 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15117 | LIBS=$ac_check_lib_save_LIBS | ||
15118 | fi | ||
15119 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5 | ||
15120 | echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6 | ||
15121 | if test $ac_cv_lib_resolv_dn_expand = yes; then | ||
15122 | cat >>confdefs.h <<_ACEOF | ||
15123 | #define HAVE_LIBRESOLV 1 | ||
15124 | _ACEOF | ||
15125 | |||
15126 | LIBS="-lresolv $LIBS" | ||
15127 | |||
15128 | fi | ||
15129 | |||
15130 | |||
15131 | KRB5=yes | ||
15132 | fi | ||
15133 | |||
15134 | |||
15135 | fi; | ||
15136 | # Check whether user wants Kerberos 4 support | ||
15137 | KRB4_MSG="no" | ||
15138 | |||
15139 | # Check whether --with-kerberos4 or --without-kerberos4 was given. | ||
15140 | if test "${with_kerberos4+set}" = set; then | ||
15141 | withval="$with_kerberos4" | ||
15142 | |||
15143 | if test "x$withval" != "xno" ; then | ||
15144 | if test "x$withval" != "xyes" ; then | ||
15145 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15146 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
15147 | if test ! -z "$need_dash_r" ; then | ||
15148 | LDFLAGS="$LDFLAGS -R${withval}/lib" | ||
15149 | fi | ||
15150 | if test ! -z "$blibpath" ; then | ||
15151 | blibpath="$blibpath:${withval}/lib" | ||
15152 | fi | ||
15153 | else | ||
15154 | if test -d /usr/include/kerberosIV ; then | ||
15155 | CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV" | ||
15156 | fi | ||
15157 | fi | ||
15158 | |||
15159 | |||
15160 | for ac_header in krb.h | ||
15161 | do | ||
15162 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15164 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15165 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15166 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15168 | fi | ||
15169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15170 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15171 | else | ||
15172 | # Is the header compilable? | ||
15173 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
15174 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
15175 | cat >conftest.$ac_ext <<_ACEOF | ||
15176 | #line $LINENO "configure" | ||
15177 | #include "confdefs.h" | ||
15178 | $ac_includes_default | ||
15179 | #include <$ac_header> | ||
15180 | _ACEOF | ||
15181 | rm -f conftest.$ac_objext | ||
15182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15183 | (eval $ac_compile) 2>&5 | ||
15184 | ac_status=$? | ||
15185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15186 | (exit $ac_status); } && | ||
15187 | { ac_try='test -s conftest.$ac_objext' | ||
15188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15189 | (eval $ac_try) 2>&5 | ||
15190 | ac_status=$? | ||
15191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15192 | (exit $ac_status); }; }; then | ||
15193 | ac_header_compiler=yes | ||
15194 | else | ||
15195 | echo "$as_me: failed program was:" >&5 | ||
15196 | cat conftest.$ac_ext >&5 | ||
15197 | ac_header_compiler=no | ||
15198 | fi | ||
15199 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15200 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
15201 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
15202 | |||
15203 | # Is the header present? | ||
15204 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
15205 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
15206 | cat >conftest.$ac_ext <<_ACEOF | ||
15207 | #line $LINENO "configure" | ||
15208 | #include "confdefs.h" | ||
15209 | #include <$ac_header> | ||
15210 | _ACEOF | ||
15211 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15212 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15213 | ac_status=$? | ||
15214 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15215 | rm -f conftest.er1 | ||
15216 | cat conftest.err >&5 | ||
15217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15218 | (exit $ac_status); } >/dev/null; then | ||
15219 | if test -s conftest.err; then | ||
15220 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15221 | else | ||
15222 | ac_cpp_err= | ||
15223 | fi | ||
15224 | else | ||
15225 | ac_cpp_err=yes | ||
15226 | fi | ||
15227 | if test -z "$ac_cpp_err"; then | ||
15228 | ac_header_preproc=yes | ||
15229 | else | ||
15230 | echo "$as_me: failed program was:" >&5 | ||
15231 | cat conftest.$ac_ext >&5 | ||
15232 | ac_header_preproc=no | ||
15233 | fi | ||
15234 | rm -f conftest.err conftest.$ac_ext | ||
15235 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
15236 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
15237 | |||
15238 | # So? What about this header? | ||
15239 | case $ac_header_compiler:$ac_header_preproc in | ||
15240 | yes:no ) | ||
15241 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
15242 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
15243 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
15244 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
15245 | no:yes ) | ||
15246 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
15247 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
15248 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
15249 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
15250 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
15251 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
15252 | esac | ||
15253 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15254 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15255 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15257 | else | ||
15258 | eval "$as_ac_Header=$ac_header_preproc" | ||
15259 | fi | ||
15260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15261 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15262 | |||
15263 | fi | ||
15264 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15265 | cat >>confdefs.h <<_ACEOF | ||
15266 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15267 | _ACEOF | ||
15268 | |||
15269 | fi | ||
15270 | |||
15271 | done | ||
15272 | |||
15273 | if test "$ac_cv_header_krb_h" != yes; then | ||
15274 | { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5 | ||
15275 | echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;} | ||
15276 | fi | ||
15277 | |||
15278 | echo "$as_me:$LINENO: checking for main in -lkrb" >&5 | ||
15279 | echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6 | ||
15280 | if test "${ac_cv_lib_krb_main+set}" = set; then | ||
15281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15282 | else | ||
15283 | ac_check_lib_save_LIBS=$LIBS | ||
15284 | LIBS="-lkrb $LIBS" | ||
15285 | cat >conftest.$ac_ext <<_ACEOF | ||
15286 | #line $LINENO "configure" | ||
15287 | #include "confdefs.h" | ||
15288 | |||
15289 | |||
15290 | #ifdef F77_DUMMY_MAIN | ||
15291 | # ifdef __cplusplus | ||
15292 | extern "C" | ||
15293 | # endif | ||
15294 | int F77_DUMMY_MAIN() { return 1; } | ||
15295 | #endif | ||
15296 | int | ||
15297 | main () | ||
15298 | { | ||
15299 | main (); | ||
15300 | ; | ||
15301 | return 0; | ||
15302 | } | ||
15303 | _ACEOF | ||
15304 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15306 | (eval $ac_link) 2>&5 | ||
15307 | ac_status=$? | ||
15308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15309 | (exit $ac_status); } && | ||
15310 | { ac_try='test -s conftest$ac_exeext' | ||
15311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15312 | (eval $ac_try) 2>&5 | ||
15313 | ac_status=$? | ||
15314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15315 | (exit $ac_status); }; }; then | ||
15316 | ac_cv_lib_krb_main=yes | ||
15317 | else | ||
15318 | echo "$as_me: failed program was:" >&5 | ||
15319 | cat conftest.$ac_ext >&5 | ||
15320 | ac_cv_lib_krb_main=no | ||
15321 | fi | ||
15322 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15323 | LIBS=$ac_check_lib_save_LIBS | ||
15324 | fi | ||
15325 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5 | ||
15326 | echo "${ECHO_T}$ac_cv_lib_krb_main" >&6 | ||
15327 | if test $ac_cv_lib_krb_main = yes; then | ||
15328 | cat >>confdefs.h <<_ACEOF | ||
15329 | #define HAVE_LIBKRB 1 | ||
15330 | _ACEOF | ||
15331 | |||
15332 | LIBS="-lkrb $LIBS" | ||
15333 | |||
15334 | fi | ||
15335 | |||
15336 | if test "$ac_cv_lib_krb_main" != yes; then | ||
15337 | |||
15338 | echo "$as_me:$LINENO: checking for main in -lkrb4" >&5 | ||
15339 | echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6 | ||
15340 | if test "${ac_cv_lib_krb4_main+set}" = set; then | ||
15341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15342 | else | ||
15343 | ac_check_lib_save_LIBS=$LIBS | ||
15344 | LIBS="-lkrb4 $LIBS" | ||
15345 | cat >conftest.$ac_ext <<_ACEOF | ||
15346 | #line $LINENO "configure" | ||
15347 | #include "confdefs.h" | ||
15348 | |||
15349 | |||
15350 | #ifdef F77_DUMMY_MAIN | ||
15351 | # ifdef __cplusplus | ||
15352 | extern "C" | ||
15353 | # endif | ||
15354 | int F77_DUMMY_MAIN() { return 1; } | ||
15355 | #endif | ||
15356 | int | ||
15357 | main () | ||
15358 | { | ||
15359 | main (); | ||
15360 | ; | ||
15361 | return 0; | ||
15362 | } | ||
15363 | _ACEOF | ||
15364 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15366 | (eval $ac_link) 2>&5 | ||
15367 | ac_status=$? | ||
15368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15369 | (exit $ac_status); } && | ||
15370 | { ac_try='test -s conftest$ac_exeext' | ||
15371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15372 | (eval $ac_try) 2>&5 | ||
15373 | ac_status=$? | ||
15374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15375 | (exit $ac_status); }; }; then | ||
15376 | ac_cv_lib_krb4_main=yes | ||
15377 | else | ||
15378 | echo "$as_me: failed program was:" >&5 | ||
15379 | cat conftest.$ac_ext >&5 | ||
15380 | ac_cv_lib_krb4_main=no | ||
15381 | fi | ||
15382 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15383 | LIBS=$ac_check_lib_save_LIBS | ||
15384 | fi | ||
15385 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5 | ||
15386 | echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6 | ||
15387 | if test $ac_cv_lib_krb4_main = yes; then | ||
15388 | cat >>confdefs.h <<_ACEOF | ||
15389 | #define HAVE_LIBKRB4 1 | ||
15390 | _ACEOF | ||
15391 | |||
15392 | LIBS="-lkrb4 $LIBS" | ||
15393 | |||
15394 | fi | ||
15395 | |||
15396 | if test "$ac_cv_lib_krb4_main" != yes; then | ||
15397 | { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5 | ||
15398 | echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;} | ||
15399 | else | ||
15400 | KLIBS="-lkrb4" | ||
15401 | fi | ||
15402 | else | ||
15403 | KLIBS="-lkrb" | ||
15404 | fi | ||
15405 | |||
15406 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | ||
15407 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 | ||
15408 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | ||
15409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15410 | else | ||
15411 | ac_check_lib_save_LIBS=$LIBS | ||
15412 | LIBS="-ldes $LIBS" | ||
15413 | cat >conftest.$ac_ext <<_ACEOF | ||
15414 | #line $LINENO "configure" | ||
15415 | #include "confdefs.h" | ||
15416 | |||
15417 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15418 | #ifdef __cplusplus | ||
15419 | extern "C" | ||
15420 | #endif | ||
15421 | /* We use char because int might match the return type of a gcc2 | ||
15422 | builtin and then its argument prototype would still apply. */ | ||
15423 | char des_cbc_encrypt (); | ||
15424 | #ifdef F77_DUMMY_MAIN | ||
15425 | # ifdef __cplusplus | ||
15426 | extern "C" | ||
15427 | # endif | ||
15428 | int F77_DUMMY_MAIN() { return 1; } | ||
15429 | #endif | ||
15430 | int | ||
15431 | main () | ||
15432 | { | ||
15433 | des_cbc_encrypt (); | ||
15434 | ; | ||
15435 | return 0; | ||
15436 | } | ||
15437 | _ACEOF | ||
15438 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15440 | (eval $ac_link) 2>&5 | ||
15441 | ac_status=$? | ||
15442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15443 | (exit $ac_status); } && | ||
15444 | { ac_try='test -s conftest$ac_exeext' | ||
15445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15446 | (eval $ac_try) 2>&5 | ||
15447 | ac_status=$? | ||
15448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15449 | (exit $ac_status); }; }; then | ||
15450 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
15451 | else | ||
15452 | echo "$as_me: failed program was:" >&5 | ||
15453 | cat conftest.$ac_ext >&5 | ||
15454 | ac_cv_lib_des_des_cbc_encrypt=no | ||
15455 | fi | ||
15456 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15457 | LIBS=$ac_check_lib_save_LIBS | ||
15458 | fi | ||
15459 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
15460 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 | ||
15461 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | ||
15462 | cat >>confdefs.h <<_ACEOF | ||
15463 | #define HAVE_LIBDES 1 | ||
15464 | _ACEOF | ||
15465 | |||
15466 | LIBS="-ldes $LIBS" | ||
15467 | |||
15468 | fi | ||
15469 | |||
15470 | if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then | ||
15471 | |||
15472 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 | ||
15473 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 | ||
15474 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | ||
15475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15476 | else | ||
15477 | ac_check_lib_save_LIBS=$LIBS | ||
15478 | LIBS="-ldes425 $LIBS" | ||
15479 | cat >conftest.$ac_ext <<_ACEOF | ||
15480 | #line $LINENO "configure" | ||
15481 | #include "confdefs.h" | ||
15482 | |||
15483 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15484 | #ifdef __cplusplus | ||
15485 | extern "C" | ||
15486 | #endif | ||
15487 | /* We use char because int might match the return type of a gcc2 | ||
15488 | builtin and then its argument prototype would still apply. */ | ||
15489 | char des_cbc_encrypt (); | ||
15490 | #ifdef F77_DUMMY_MAIN | ||
15491 | # ifdef __cplusplus | ||
15492 | extern "C" | ||
15493 | # endif | ||
15494 | int F77_DUMMY_MAIN() { return 1; } | ||
15495 | #endif | ||
15496 | int | ||
15497 | main () | ||
15498 | { | ||
15499 | des_cbc_encrypt (); | ||
15500 | ; | ||
15501 | return 0; | ||
15502 | } | ||
15503 | _ACEOF | ||
15504 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15506 | (eval $ac_link) 2>&5 | ||
15507 | ac_status=$? | ||
15508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15509 | (exit $ac_status); } && | ||
15510 | { ac_try='test -s conftest$ac_exeext' | ||
15511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15512 | (eval $ac_try) 2>&5 | ||
15513 | ac_status=$? | ||
15514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15515 | (exit $ac_status); }; }; then | ||
15516 | ac_cv_lib_des425_des_cbc_encrypt=yes | ||
15517 | else | ||
15518 | echo "$as_me: failed program was:" >&5 | ||
15519 | cat conftest.$ac_ext >&5 | ||
15520 | ac_cv_lib_des425_des_cbc_encrypt=no | ||
15521 | fi | ||
15522 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15523 | LIBS=$ac_check_lib_save_LIBS | ||
15524 | fi | ||
15525 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 | ||
15526 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 | ||
15527 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | ||
15528 | cat >>confdefs.h <<_ACEOF | ||
15529 | #define HAVE_LIBDES425 1 | ||
15530 | _ACEOF | ||
15531 | |||
15532 | LIBS="-ldes425 $LIBS" | ||
15533 | |||
15534 | fi | ||
15535 | |||
15536 | if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then | ||
15537 | { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5 | ||
15538 | echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;} | ||
15539 | else | ||
15540 | KLIBS="-ldes425" | ||
15541 | fi | ||
15542 | else | ||
15543 | KLIBS="-ldes" | ||
15544 | fi | ||
15545 | |||
15546 | echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 | ||
15547 | echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6 | ||
15548 | if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then | ||
15549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15550 | else | ||
15551 | ac_check_lib_save_LIBS=$LIBS | ||
15552 | LIBS="-lresolv $LIBS" | ||
15553 | cat >conftest.$ac_ext <<_ACEOF | ||
15554 | #line $LINENO "configure" | ||
15555 | #include "confdefs.h" | ||
15556 | |||
15557 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15558 | #ifdef __cplusplus | ||
15559 | extern "C" | ||
15560 | #endif | ||
15561 | /* We use char because int might match the return type of a gcc2 | ||
15562 | builtin and then its argument prototype would still apply. */ | ||
15563 | char dn_expand (); | ||
15564 | #ifdef F77_DUMMY_MAIN | ||
15565 | # ifdef __cplusplus | ||
15566 | extern "C" | ||
15567 | # endif | ||
15568 | int F77_DUMMY_MAIN() { return 1; } | ||
15569 | #endif | ||
15570 | int | ||
15571 | main () | ||
15572 | { | ||
15573 | dn_expand (); | ||
15574 | ; | ||
15575 | return 0; | ||
15576 | } | ||
15577 | _ACEOF | ||
15578 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15580 | (eval $ac_link) 2>&5 | ||
15581 | ac_status=$? | ||
15582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15583 | (exit $ac_status); } && | ||
15584 | { ac_try='test -s conftest$ac_exeext' | ||
15585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15586 | (eval $ac_try) 2>&5 | ||
15587 | ac_status=$? | ||
15588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15589 | (exit $ac_status); }; }; then | ||
15590 | ac_cv_lib_resolv_dn_expand=yes | ||
15591 | else | ||
15592 | echo "$as_me: failed program was:" >&5 | ||
15593 | cat conftest.$ac_ext >&5 | ||
15594 | ac_cv_lib_resolv_dn_expand=no | ||
15595 | fi | ||
15596 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15597 | LIBS=$ac_check_lib_save_LIBS | ||
15598 | fi | ||
15599 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5 | ||
15600 | echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6 | ||
15601 | if test $ac_cv_lib_resolv_dn_expand = yes; then | ||
15602 | cat >>confdefs.h <<_ACEOF | ||
15603 | #define HAVE_LIBRESOLV 1 | ||
15604 | _ACEOF | ||
15605 | |||
15606 | LIBS="-lresolv $LIBS" | ||
15607 | |||
15608 | fi | ||
15609 | |||
15610 | KRB4=yes | ||
15611 | KRB4_MSG="yes" | ||
15612 | cat >>confdefs.h <<\_ACEOF | ||
15613 | #define KRB4 1 | ||
15614 | _ACEOF | ||
15615 | |||
15616 | fi | ||
15617 | |||
15618 | |||
15619 | fi; | ||
15620 | |||
15621 | # Check whether user wants AFS support | ||
15622 | AFS_MSG="no" | ||
15623 | |||
15624 | # Check whether --with-afs or --without-afs was given. | ||
15625 | if test "${with_afs+set}" = set; then | ||
15626 | withval="$with_afs" | ||
15627 | |||
15628 | if test "x$withval" != "xno" ; then | ||
15629 | |||
15630 | if test "x$withval" != "xyes" ; then | ||
15631 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15632 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
15633 | fi | ||
15634 | |||
15635 | if test -z "$KRB4" ; then | ||
15636 | { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5 | ||
15637 | echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;} | ||
15638 | fi | ||
15639 | |||
15640 | LIBS="-lkafs $LIBS" | ||
15641 | if test ! -z "$AFS_LIBS" ; then | ||
15642 | LIBS="$LIBS $AFS_LIBS" | ||
15643 | fi | ||
15644 | cat >>confdefs.h <<\_ACEOF | ||
15645 | #define AFS 1 | ||
15646 | _ACEOF | ||
15647 | |||
15648 | AFS_MSG="yes" | ||
15649 | fi | ||
15650 | |||
15651 | |||
15652 | fi; | ||
15653 | LIBS="$LIBS $KLIBS $K5LIBS" | ||
15654 | |||
15655 | # Looking for programs, paths and files | ||
15656 | |||
15657 | PRIVSEP_PATH=/var/empty | ||
15658 | |||
15659 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
15660 | if test "${with_privsep_path+set}" = set; then | ||
15661 | withval="$with_privsep_path" | ||
15662 | |||
15663 | if test "x$withval" != "$no" ; then | ||
15664 | PRIVSEP_PATH=$withval | ||
15665 | fi | ||
15666 | |||
15667 | |||
15668 | fi; | ||
15669 | |||
15670 | |||
15671 | |||
15672 | # Check whether --with-xauth or --without-xauth was given. | ||
15673 | if test "${with_xauth+set}" = set; then | ||
15674 | withval="$with_xauth" | ||
15675 | |||
15676 | if test "x$withval" != "xno" ; then | ||
15677 | xauth_path=$withval | ||
15678 | fi | ||
15679 | |||
15680 | else | ||
15681 | |||
15682 | TestPath="$PATH" | ||
15683 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
15684 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
15685 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
15686 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
15687 | # Extract the first word of "xauth", so it can be a program name with args. | ||
15688 | set dummy xauth; ac_word=$2 | ||
15689 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15691 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
15692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15693 | else | ||
15694 | case $xauth_path in | ||
15695 | [\\/]* | ?:[\\/]*) | ||
15696 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
15697 | ;; | ||
15698 | *) | ||
15699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15700 | for as_dir in $TestPath | ||
15701 | do | ||
15702 | IFS=$as_save_IFS | ||
15703 | test -z "$as_dir" && as_dir=. | ||
15704 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15705 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15706 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
15707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15708 | break 2 | ||
15709 | fi | ||
15710 | done | ||
15711 | done | ||
15712 | |||
15713 | ;; | ||
15714 | esac | ||
15715 | fi | ||
15716 | xauth_path=$ac_cv_path_xauth_path | ||
15717 | |||
15718 | if test -n "$xauth_path"; then | ||
15719 | echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
15720 | echo "${ECHO_T}$xauth_path" >&6 | ||
15721 | else | ||
15722 | echo "$as_me:$LINENO: result: no" >&5 | ||
15723 | echo "${ECHO_T}no" >&6 | ||
15724 | fi | ||
15725 | |||
15726 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
15727 | xauth_path="/usr/openwin/bin/xauth" | ||
15728 | fi | ||
15729 | |||
15730 | |||
15731 | fi; | ||
15732 | |||
15733 | if test -z "$xauth_path" ; then | ||
15734 | XAUTH_PATH="undefined" | ||
15735 | |||
15736 | else | ||
15737 | cat >>confdefs.h <<_ACEOF | ||
15738 | #define XAUTH_PATH "$xauth_path" | ||
15739 | _ACEOF | ||
15740 | |||
15741 | XAUTH_PATH=$xauth_path | ||
15742 | |||
15743 | fi | ||
15744 | |||
15745 | # Check for mail directory (last resort if we cannot get it from headers) | ||
15746 | if test ! -z "$MAIL" ; then | ||
15747 | maildir=`dirname $MAIL` | ||
15748 | cat >>confdefs.h <<_ACEOF | ||
15749 | #define MAIL_DIRECTORY "$maildir" | ||
15750 | _ACEOF | ||
15751 | |||
15752 | fi | ||
15753 | |||
15754 | if test -z "$no_dev_ptmx" ; then | ||
15755 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
15756 | echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
15757 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
15758 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
15759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15760 | else | ||
15761 | test "$cross_compiling" = yes && | ||
15762 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
15763 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
15764 | { (exit 1); exit 1; }; } | ||
15765 | if test -r ""/dev/ptmx""; then | ||
15766 | ac_cv_file___dev_ptmx_=yes | ||
15767 | else | ||
15768 | ac_cv_file___dev_ptmx_=no | ||
15769 | fi | ||
15770 | fi | ||
15771 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
15772 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
15773 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
15774 | |||
15775 | cat >>confdefs.h <<_ACEOF | ||
15776 | #define HAVE_DEV_PTMX 1 | ||
15777 | _ACEOF | ||
15778 | |||
15779 | have_dev_ptmx=1 | ||
15780 | |||
15781 | |||
15782 | fi | ||
15783 | |||
15784 | fi | ||
15785 | fi | ||
15786 | echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
15787 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
15788 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
15789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15790 | else | ||
15791 | test "$cross_compiling" = yes && | ||
15792 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
15793 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
15794 | { (exit 1); exit 1; }; } | ||
15795 | if test -r ""/dev/ptc""; then | ||
15796 | ac_cv_file___dev_ptc_=yes | ||
15797 | else | ||
15798 | ac_cv_file___dev_ptc_=no | ||
15799 | fi | ||
15800 | fi | ||
15801 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
15802 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
15803 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
15804 | |||
15805 | cat >>confdefs.h <<_ACEOF | ||
15806 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
15807 | _ACEOF | ||
15808 | |||
15809 | have_dev_ptc=1 | ||
15810 | |||
15811 | |||
15812 | fi | ||
15813 | |||
15814 | |||
15815 | # Options from here on. Some of these are preset by platform above | ||
15816 | |||
15817 | # Check whether --with-mantype or --without-mantype was given. | ||
15818 | if test "${with_mantype+set}" = set; then | ||
15819 | withval="$with_mantype" | ||
15820 | |||
15821 | case "$withval" in | ||
15822 | man|cat|doc) | ||
15823 | MANTYPE=$withval | ||
15824 | ;; | ||
15825 | *) | ||
15826 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
15827 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
15828 | { (exit 1); exit 1; }; } | ||
15829 | ;; | ||
15830 | esac | ||
15831 | |||
15832 | |||
15833 | fi; | ||
15834 | if test -z "$MANTYPE"; then | ||
15835 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
15836 | for ac_prog in nroff awf | ||
15837 | do | ||
15838 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
15839 | set dummy $ac_prog; ac_word=$2 | ||
15840 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15842 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
15843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15844 | else | ||
15845 | case $NROFF in | ||
15846 | [\\/]* | ?:[\\/]*) | ||
15847 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
15848 | ;; | ||
15849 | *) | ||
15850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15851 | for as_dir in $TestPath | ||
15852 | do | ||
15853 | IFS=$as_save_IFS | ||
15854 | test -z "$as_dir" && as_dir=. | ||
15855 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15856 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15857 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
15858 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15859 | break 2 | ||
15860 | fi | ||
15861 | done | ||
15862 | done | ||
15863 | |||
15864 | ;; | ||
15865 | esac | ||
15866 | fi | ||
15867 | NROFF=$ac_cv_path_NROFF | ||
15868 | |||
15869 | if test -n "$NROFF"; then | ||
15870 | echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
15871 | echo "${ECHO_T}$NROFF" >&6 | ||
15872 | else | ||
15873 | echo "$as_me:$LINENO: result: no" >&5 | ||
15874 | echo "${ECHO_T}no" >&6 | ||
15875 | fi | ||
15876 | |||
15877 | test -n "$NROFF" && break | ||
15878 | done | ||
15879 | test -n "$NROFF" || NROFF="/bin/false" | ||
15880 | |||
15881 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
15882 | MANTYPE=doc | ||
15883 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
15884 | MANTYPE=man | ||
15885 | else | ||
15886 | MANTYPE=cat | ||
15887 | fi | ||
15888 | fi | ||
15889 | |||
15890 | if test "$MANTYPE" = "doc"; then | ||
15891 | mansubdir=man; | ||
15892 | else | ||
15893 | mansubdir=$MANTYPE; | ||
15894 | fi | ||
15895 | |||
15896 | |||
15897 | # Check whether to enable MD5 passwords | ||
15898 | MD5_MSG="no" | ||
15899 | |||
15900 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
15901 | if test "${with_md5_passwords+set}" = set; then | ||
15902 | withval="$with_md5_passwords" | ||
15903 | |||
15904 | if test "x$withval" != "xno" ; then | ||
15905 | cat >>confdefs.h <<\_ACEOF | ||
15906 | #define HAVE_MD5_PASSWORDS 1 | ||
15907 | _ACEOF | ||
15908 | |||
15909 | MD5_MSG="yes" | ||
15910 | fi | ||
15911 | |||
15912 | |||
15913 | fi; | ||
15914 | |||
15915 | # Whether to disable shadow password support | ||
15916 | |||
15917 | # Check whether --with-shadow or --without-shadow was given. | ||
15918 | if test "${with_shadow+set}" = set; then | ||
15919 | withval="$with_shadow" | ||
15920 | |||
15921 | if test "x$withval" = "xno" ; then | ||
15922 | cat >>confdefs.h <<\_ACEOF | ||
15923 | #define DISABLE_SHADOW 1 | ||
15924 | _ACEOF | ||
15925 | |||
15926 | disable_shadow=yes | ||
15927 | fi | ||
15928 | |||
15929 | |||
15930 | fi; | ||
15931 | |||
15932 | if test -z "$disable_shadow" ; then | ||
15933 | echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
15934 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
15935 | cat >conftest.$ac_ext <<_ACEOF | ||
15936 | #line $LINENO "configure" | ||
15937 | #include "confdefs.h" | ||
15938 | |||
15939 | #include <sys/types.h> | ||
15940 | #include <shadow.h> | ||
15941 | struct spwd sp; | ||
15942 | |||
15943 | #ifdef F77_DUMMY_MAIN | ||
15944 | # ifdef __cplusplus | ||
15945 | extern "C" | ||
15946 | # endif | ||
15947 | int F77_DUMMY_MAIN() { return 1; } | ||
15948 | #endif | ||
15949 | int | ||
15950 | main () | ||
15951 | { | ||
15952 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
15953 | ; | ||
15954 | return 0; | ||
15955 | } | ||
15956 | _ACEOF | ||
15957 | rm -f conftest.$ac_objext | ||
15958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15959 | (eval $ac_compile) 2>&5 | ||
15960 | ac_status=$? | ||
15961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15962 | (exit $ac_status); } && | ||
15963 | { ac_try='test -s conftest.$ac_objext' | ||
15964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15965 | (eval $ac_try) 2>&5 | ||
15966 | ac_status=$? | ||
15967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15968 | (exit $ac_status); }; }; then | ||
15969 | sp_expire_available=yes | ||
15970 | else | ||
15971 | echo "$as_me: failed program was:" >&5 | ||
15972 | cat conftest.$ac_ext >&5 | ||
15973 | |||
15974 | |||
15975 | fi | ||
15976 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15977 | |||
15978 | if test "x$sp_expire_available" = "xyes" ; then | ||
15979 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15980 | echo "${ECHO_T}yes" >&6 | ||
15981 | cat >>confdefs.h <<\_ACEOF | ||
15982 | #define HAS_SHADOW_EXPIRE 1 | ||
15983 | _ACEOF | ||
15984 | |||
15985 | else | ||
15986 | echo "$as_me:$LINENO: result: no" >&5 | ||
15987 | echo "${ECHO_T}no" >&6 | ||
15988 | fi | ||
15989 | fi | ||
15990 | |||
15991 | # Use ip address instead of hostname in $DISPLAY | ||
15992 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
15993 | DISPLAY_HACK_MSG="yes" | ||
15994 | cat >>confdefs.h <<\_ACEOF | ||
15995 | #define IPADDR_IN_DISPLAY 1 | ||
15996 | _ACEOF | ||
15997 | |||
15998 | else | ||
15999 | DISPLAY_HACK_MSG="no" | ||
16000 | |||
16001 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
16002 | if test "${with_ipaddr_display+set}" = set; then | ||
16003 | withval="$with_ipaddr_display" | ||
16004 | |||
16005 | if test "x$withval" != "xno" ; then | ||
16006 | cat >>confdefs.h <<\_ACEOF | ||
16007 | #define IPADDR_IN_DISPLAY 1 | ||
16008 | _ACEOF | ||
16009 | |||
16010 | DISPLAY_HACK_MSG="yes" | ||
16011 | fi | ||
16012 | |||
16013 | |||
16014 | fi; | ||
16015 | fi | ||
16016 | |||
16017 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | ||
16018 | $ac_cv_header_login_cap_h = "yes" ; then | ||
16019 | USES_LOGIN_CONF=yes | ||
16020 | fi | ||
16021 | # Whether to mess with the default path | ||
16022 | SERVER_PATH_MSG="(default)" | ||
16023 | |||
16024 | # Check whether --with-default-path or --without-default-path was given. | ||
16025 | if test "${with_default_path+set}" = set; then | ||
16026 | withval="$with_default_path" | ||
16027 | |||
16028 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
16029 | { echo "$as_me:$LINENO: WARNING: | ||
16030 | --with-default-path=PATH has no effect on this system. | ||
16031 | Edit /etc/login.conf instead." >&5 | ||
16032 | echo "$as_me: WARNING: | ||
16033 | --with-default-path=PATH has no effect on this system. | ||
16034 | Edit /etc/login.conf instead." >&2;} | ||
16035 | elif test "x$withval" != "xno" ; then | ||
16036 | user_path="$withval" | ||
16037 | SERVER_PATH_MSG="$withval" | ||
16038 | fi | ||
16039 | |||
16040 | else | ||
16041 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
16042 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
16043 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
16044 | else | ||
16045 | if test "$cross_compiling" = yes; then | ||
16046 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16047 | |||
16048 | else | ||
16049 | cat >conftest.$ac_ext <<_ACEOF | ||
16050 | #line $LINENO "configure" | ||
16051 | #include "confdefs.h" | ||
16052 | |||
16053 | /* find out what STDPATH is */ | ||
16054 | #include <stdio.h> | ||
16055 | #ifdef HAVE_PATHS_H | ||
16056 | # include <paths.h> | ||
16057 | #endif | ||
16058 | #ifndef _PATH_STDPATH | ||
16059 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
16060 | #endif | ||
16061 | #include <sys/types.h> | ||
16062 | #include <sys/stat.h> | ||
16063 | #include <fcntl.h> | ||
16064 | #define DATA "conftest.stdpath" | ||
16065 | |||
16066 | main() | ||
16067 | { | ||
16068 | FILE *fd; | ||
16069 | int rc; | ||
16070 | |||
16071 | fd = fopen(DATA,"w"); | ||
16072 | if(fd == NULL) | ||
16073 | exit(1); | ||
16074 | |||
16075 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
16076 | exit(1); | ||
16077 | |||
16078 | exit(0); | ||
16079 | } | ||
16080 | |||
16081 | _ACEOF | ||
16082 | rm -f conftest$ac_exeext | ||
16083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16084 | (eval $ac_link) 2>&5 | ||
16085 | ac_status=$? | ||
16086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16087 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16089 | (eval $ac_try) 2>&5 | ||
16090 | ac_status=$? | ||
16091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16092 | (exit $ac_status); }; }; then | ||
16093 | user_path=`cat conftest.stdpath` | ||
16094 | else | ||
16095 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16096 | echo "$as_me: failed program was:" >&5 | ||
16097 | cat conftest.$ac_ext >&5 | ||
16098 | ( exit $ac_status ) | ||
16099 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16100 | fi | ||
16101 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16102 | fi | ||
16103 | # make sure $bindir is in USER_PATH so scp will work | ||
16104 | t_bindir=`eval echo ${bindir}` | ||
16105 | case $t_bindir in | ||
16106 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
16107 | esac | ||
16108 | case $t_bindir in | ||
16109 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16110 | esac | ||
16111 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
16112 | if test $? -ne 0 ; then | ||
16113 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
16114 | if test $? -ne 0 ; then | ||
16115 | user_path=$user_path:$t_bindir | ||
16116 | echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
16117 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
16118 | fi | ||
16119 | fi | ||
16120 | fi | ||
16121 | |||
16122 | fi; | ||
16123 | if test "$USES_LOGIN_CONF" != "yes" ; then | ||
16124 | cat >>confdefs.h <<_ACEOF | ||
16125 | #define USER_PATH "$user_path" | ||
16126 | _ACEOF | ||
16127 | |||
16128 | |||
16129 | fi | ||
16130 | |||
16131 | # Set superuser path separately to user path | ||
16132 | |||
16133 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
16134 | if test "${with_superuser_path+set}" = set; then | ||
16135 | withval="$with_superuser_path" | ||
16136 | |||
16137 | if test "x$withval" != "xno" ; then | ||
16138 | cat >>confdefs.h <<_ACEOF | ||
16139 | #define SUPERUSER_PATH "$withval" | ||
16140 | _ACEOF | ||
16141 | |||
16142 | superuser_path=$withval | ||
16143 | fi | ||
16144 | |||
16145 | |||
16146 | fi; | ||
16147 | |||
16148 | |||
16149 | # Whether to force IPv4 by default (needed on broken glibc Linux) | ||
16150 | IPV4_HACK_MSG="no" | ||
16151 | |||
16152 | # Check whether --with-ipv4-default or --without-ipv4-default was given. | ||
16153 | if test "${with_ipv4_default+set}" = set; then | ||
16154 | withval="$with_ipv4_default" | ||
16155 | |||
16156 | if test "x$withval" != "xno" ; then | ||
16157 | cat >>confdefs.h <<\_ACEOF | ||
16158 | #define IPV4_DEFAULT 1 | ||
16159 | _ACEOF | ||
16160 | |||
16161 | IPV4_HACK_MSG="yes" | ||
16162 | fi | ||
16163 | |||
16164 | |||
16165 | fi; | ||
16166 | |||
16167 | echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
16168 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
16169 | IPV4_IN6_HACK_MSG="no" | ||
16170 | |||
16171 | # Check whether --with-4in6 or --without-4in6 was given. | ||
16172 | if test "${with_4in6+set}" = set; then | ||
16173 | withval="$with_4in6" | ||
16174 | |||
16175 | if test "x$withval" != "xno" ; then | ||
16176 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16177 | echo "${ECHO_T}yes" >&6 | ||
16178 | cat >>confdefs.h <<\_ACEOF | ||
16179 | #define IPV4_IN_IPV6 1 | ||
16180 | _ACEOF | ||
16181 | |||
16182 | IPV4_IN6_HACK_MSG="yes" | ||
16183 | else | ||
16184 | echo "$as_me:$LINENO: result: no" >&5 | ||
16185 | echo "${ECHO_T}no" >&6 | ||
16186 | fi | ||
16187 | |||
16188 | else | ||
16189 | |||
16190 | if test "x$inet6_default_4in6" = "xyes"; then | ||
16191 | echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
16192 | echo "${ECHO_T}yes (default)" >&6 | ||
16193 | cat >>confdefs.h <<\_ACEOF | ||
16194 | #define IPV4_IN_IPV6 1 | ||
16195 | _ACEOF | ||
16196 | |||
16197 | IPV4_IN6_HACK_MSG="yes" | ||
16198 | else | ||
16199 | echo "$as_me:$LINENO: result: no (default)" >&5 | ||
16200 | echo "${ECHO_T}no (default)" >&6 | ||
16201 | fi | ||
16202 | |||
16203 | |||
16204 | fi; | ||
16205 | |||
16206 | # Whether to enable BSD auth support | ||
16207 | BSD_AUTH_MSG=no | ||
16208 | |||
16209 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
16210 | if test "${with_bsd_auth+set}" = set; then | ||
16211 | withval="$with_bsd_auth" | ||
16212 | |||
16213 | if test "x$withval" != "xno" ; then | ||
16214 | cat >>confdefs.h <<\_ACEOF | ||
16215 | #define BSD_AUTH 1 | ||
16216 | _ACEOF | ||
16217 | |||
16218 | BSD_AUTH_MSG=yes | ||
16219 | fi | ||
16220 | |||
16221 | |||
16222 | fi; | ||
16223 | |||
16224 | # Where to place sshd.pid | ||
16225 | piddir=/var/run | ||
16226 | # make sure the directory exists | ||
16227 | if test ! -d $piddir ; then | ||
16228 | piddir=`eval echo ${sysconfdir}` | ||
16229 | case $piddir in | ||
16230 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16231 | esac | ||
16232 | fi | ||
16233 | |||
16234 | |||
16235 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
16236 | if test "${with_pid_dir+set}" = set; then | ||
16237 | withval="$with_pid_dir" | ||
16238 | |||
16239 | if test "x$withval" != "xno" ; then | ||
16240 | piddir=$withval | ||
16241 | if test ! -d $piddir ; then | ||
16242 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
16243 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
16244 | fi | ||
16245 | fi | ||
16246 | |||
16247 | |||
16248 | fi; | ||
16249 | |||
16250 | cat >>confdefs.h <<_ACEOF | ||
16251 | #define _PATH_SSH_PIDDIR "$piddir" | ||
16252 | _ACEOF | ||
16253 | |||
16254 | |||
16255 | |||
16256 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
16257 | if test "${enable_lastlog+set}" = set; then | ||
16258 | enableval="$enable_lastlog" | ||
16259 | cat >>confdefs.h <<\_ACEOF | ||
16260 | #define DISABLE_LASTLOG 1 | ||
16261 | _ACEOF | ||
16262 | |||
16263 | |||
16264 | fi; | ||
16265 | # Check whether --enable-utmp or --disable-utmp was given. | ||
16266 | if test "${enable_utmp+set}" = set; then | ||
16267 | enableval="$enable_utmp" | ||
16268 | cat >>confdefs.h <<\_ACEOF | ||
16269 | #define DISABLE_UTMP 1 | ||
16270 | _ACEOF | ||
16271 | |||
16272 | |||
16273 | fi; | ||
16274 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
16275 | if test "${enable_utmpx+set}" = set; then | ||
16276 | enableval="$enable_utmpx" | ||
16277 | cat >>confdefs.h <<\_ACEOF | ||
16278 | #define DISABLE_UTMPX 1 | ||
16279 | _ACEOF | ||
16280 | |||
16281 | |||
16282 | fi; | ||
16283 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
16284 | if test "${enable_wtmp+set}" = set; then | ||
16285 | enableval="$enable_wtmp" | ||
16286 | cat >>confdefs.h <<\_ACEOF | ||
16287 | #define DISABLE_WTMP 1 | ||
16288 | _ACEOF | ||
16289 | |||
16290 | |||
16291 | fi; | ||
16292 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
16293 | if test "${enable_wtmpx+set}" = set; then | ||
16294 | enableval="$enable_wtmpx" | ||
16295 | cat >>confdefs.h <<\_ACEOF | ||
16296 | #define DISABLE_WTMPX 1 | ||
16297 | _ACEOF | ||
16298 | |||
16299 | |||
16300 | fi; | ||
16301 | # Check whether --enable-libutil or --disable-libutil was given. | ||
16302 | if test "${enable_libutil+set}" = set; then | ||
16303 | enableval="$enable_libutil" | ||
16304 | cat >>confdefs.h <<\_ACEOF | ||
16305 | #define DISABLE_LOGIN 1 | ||
16306 | _ACEOF | ||
16307 | |||
16308 | |||
16309 | fi; | ||
16310 | # Check whether --enable-pututline or --disable-pututline was given. | ||
16311 | if test "${enable_pututline+set}" = set; then | ||
16312 | enableval="$enable_pututline" | ||
16313 | cat >>confdefs.h <<\_ACEOF | ||
16314 | #define DISABLE_PUTUTLINE 1 | ||
16315 | _ACEOF | ||
16316 | |||
16317 | |||
16318 | fi; | ||
16319 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
16320 | if test "${enable_pututxline+set}" = set; then | ||
16321 | enableval="$enable_pututxline" | ||
16322 | cat >>confdefs.h <<\_ACEOF | ||
16323 | #define DISABLE_PUTUTXLINE 1 | ||
16324 | _ACEOF | ||
16325 | |||
16326 | |||
16327 | fi; | ||
16328 | |||
16329 | # Check whether --with-lastlog or --without-lastlog was given. | ||
16330 | if test "${with_lastlog+set}" = set; then | ||
16331 | withval="$with_lastlog" | ||
16332 | |||
16333 | if test "x$withval" = "xno" ; then | ||
16334 | cat >>confdefs.h <<\_ACEOF | ||
16335 | #define DISABLE_LASTLOG 1 | ||
16336 | _ACEOF | ||
16337 | |||
16338 | else | ||
16339 | conf_lastlog_location=$withval | ||
16340 | fi | ||
16341 | |||
16342 | |||
16343 | fi; | ||
16344 | |||
16345 | |||
16346 | echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
16347 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
16348 | cat >conftest.$ac_ext <<_ACEOF | ||
16349 | #line $LINENO "configure" | ||
16350 | #include "confdefs.h" | ||
16351 | |||
16352 | #include <sys/types.h> | ||
16353 | #include <utmp.h> | ||
16354 | #ifdef HAVE_LASTLOG_H | ||
16355 | # include <lastlog.h> | ||
16356 | #endif | ||
16357 | #ifdef HAVE_PATHS_H | ||
16358 | # include <paths.h> | ||
16359 | #endif | ||
16360 | #ifdef HAVE_LOGIN_H | ||
16361 | # include <login.h> | ||
16362 | #endif | ||
16363 | |||
16364 | #ifdef F77_DUMMY_MAIN | ||
16365 | # ifdef __cplusplus | ||
16366 | extern "C" | ||
16367 | # endif | ||
16368 | int F77_DUMMY_MAIN() { return 1; } | ||
16369 | #endif | ||
16370 | int | ||
16371 | main () | ||
16372 | { | ||
16373 | char *lastlog = LASTLOG_FILE; | ||
16374 | ; | ||
16375 | return 0; | ||
16376 | } | ||
16377 | _ACEOF | ||
16378 | rm -f conftest.$ac_objext | ||
16379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16380 | (eval $ac_compile) 2>&5 | ||
16381 | ac_status=$? | ||
16382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16383 | (exit $ac_status); } && | ||
16384 | { ac_try='test -s conftest.$ac_objext' | ||
16385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16386 | (eval $ac_try) 2>&5 | ||
16387 | ac_status=$? | ||
16388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16389 | (exit $ac_status); }; }; then | ||
16390 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16391 | echo "${ECHO_T}yes" >&6 | ||
16392 | else | ||
16393 | echo "$as_me: failed program was:" >&5 | ||
16394 | cat conftest.$ac_ext >&5 | ||
16395 | |||
16396 | echo "$as_me:$LINENO: result: no" >&5 | ||
16397 | echo "${ECHO_T}no" >&6 | ||
16398 | echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
16399 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
16400 | cat >conftest.$ac_ext <<_ACEOF | ||
16401 | #line $LINENO "configure" | ||
16402 | #include "confdefs.h" | ||
16403 | |||
16404 | #include <sys/types.h> | ||
16405 | #include <utmp.h> | ||
16406 | #ifdef HAVE_LASTLOG_H | ||
16407 | # include <lastlog.h> | ||
16408 | #endif | ||
16409 | #ifdef HAVE_PATHS_H | ||
16410 | # include <paths.h> | ||
16411 | #endif | ||
16412 | |||
16413 | #ifdef F77_DUMMY_MAIN | ||
16414 | # ifdef __cplusplus | ||
16415 | extern "C" | ||
16416 | # endif | ||
16417 | int F77_DUMMY_MAIN() { return 1; } | ||
16418 | #endif | ||
16419 | int | ||
16420 | main () | ||
16421 | { | ||
16422 | char *lastlog = _PATH_LASTLOG; | ||
16423 | ; | ||
16424 | return 0; | ||
16425 | } | ||
16426 | _ACEOF | ||
16427 | rm -f conftest.$ac_objext | ||
16428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16429 | (eval $ac_compile) 2>&5 | ||
16430 | ac_status=$? | ||
16431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16432 | (exit $ac_status); } && | ||
16433 | { ac_try='test -s conftest.$ac_objext' | ||
16434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16435 | (eval $ac_try) 2>&5 | ||
16436 | ac_status=$? | ||
16437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16438 | (exit $ac_status); }; }; then | ||
16439 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16440 | echo "${ECHO_T}yes" >&6 | ||
16441 | else | ||
16442 | echo "$as_me: failed program was:" >&5 | ||
16443 | cat conftest.$ac_ext >&5 | ||
16444 | |||
16445 | echo "$as_me:$LINENO: result: no" >&5 | ||
16446 | echo "${ECHO_T}no" >&6 | ||
16447 | system_lastlog_path=no | ||
16448 | |||
16449 | fi | ||
16450 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16451 | |||
16452 | |||
16453 | fi | ||
16454 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16455 | |||
16456 | if test -z "$conf_lastlog_location"; then | ||
16457 | if test x"$system_lastlog_path" = x"no" ; then | ||
16458 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
16459 | if (test -d "$f" || test -f "$f") ; then | ||
16460 | conf_lastlog_location=$f | ||
16461 | fi | ||
16462 | done | ||
16463 | if test -z "$conf_lastlog_location"; then | ||
16464 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
16465 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
16466 | fi | ||
16467 | fi | ||
16468 | fi | ||
16469 | |||
16470 | if test -n "$conf_lastlog_location"; then | ||
16471 | cat >>confdefs.h <<_ACEOF | ||
16472 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
16473 | _ACEOF | ||
16474 | |||
16475 | fi | ||
16476 | |||
16477 | echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
16478 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
16479 | cat >conftest.$ac_ext <<_ACEOF | ||
16480 | #line $LINENO "configure" | ||
16481 | #include "confdefs.h" | ||
16482 | |||
16483 | #include <sys/types.h> | ||
16484 | #include <utmp.h> | ||
16485 | #ifdef HAVE_PATHS_H | ||
16486 | # include <paths.h> | ||
16487 | #endif | ||
16488 | |||
16489 | #ifdef F77_DUMMY_MAIN | ||
16490 | # ifdef __cplusplus | ||
16491 | extern "C" | ||
16492 | # endif | ||
16493 | int F77_DUMMY_MAIN() { return 1; } | ||
16494 | #endif | ||
16495 | int | ||
16496 | main () | ||
16497 | { | ||
16498 | char *utmp = UTMP_FILE; | ||
16499 | ; | ||
16500 | return 0; | ||
16501 | } | ||
16502 | _ACEOF | ||
16503 | rm -f conftest.$ac_objext | ||
16504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16505 | (eval $ac_compile) 2>&5 | ||
16506 | ac_status=$? | ||
16507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16508 | (exit $ac_status); } && | ||
16509 | { ac_try='test -s conftest.$ac_objext' | ||
16510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16511 | (eval $ac_try) 2>&5 | ||
16512 | ac_status=$? | ||
16513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16514 | (exit $ac_status); }; }; then | ||
16515 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16516 | echo "${ECHO_T}yes" >&6 | ||
16517 | else | ||
16518 | echo "$as_me: failed program was:" >&5 | ||
16519 | cat conftest.$ac_ext >&5 | ||
16520 | echo "$as_me:$LINENO: result: no" >&5 | ||
16521 | echo "${ECHO_T}no" >&6 | ||
16522 | system_utmp_path=no | ||
16523 | |||
16524 | fi | ||
16525 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16526 | if test -z "$conf_utmp_location"; then | ||
16527 | if test x"$system_utmp_path" = x"no" ; then | ||
16528 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
16529 | if test -f $f ; then | ||
16530 | conf_utmp_location=$f | ||
16531 | fi | ||
16532 | done | ||
16533 | if test -z "$conf_utmp_location"; then | ||
16534 | cat >>confdefs.h <<\_ACEOF | ||
16535 | #define DISABLE_UTMP 1 | ||
16536 | _ACEOF | ||
16537 | |||
16538 | fi | ||
16539 | fi | ||
16540 | fi | ||
16541 | if test -n "$conf_utmp_location"; then | ||
16542 | cat >>confdefs.h <<_ACEOF | ||
16543 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
16544 | _ACEOF | ||
16545 | |||
16546 | fi | ||
16547 | |||
16548 | echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
16549 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
16550 | cat >conftest.$ac_ext <<_ACEOF | ||
16551 | #line $LINENO "configure" | ||
16552 | #include "confdefs.h" | ||
16553 | |||
16554 | #include <sys/types.h> | ||
16555 | #include <utmp.h> | ||
16556 | #ifdef HAVE_PATHS_H | ||
16557 | # include <paths.h> | ||
16558 | #endif | ||
16559 | |||
16560 | #ifdef F77_DUMMY_MAIN | ||
16561 | # ifdef __cplusplus | ||
16562 | extern "C" | ||
16563 | # endif | ||
16564 | int F77_DUMMY_MAIN() { return 1; } | ||
16565 | #endif | ||
16566 | int | ||
16567 | main () | ||
16568 | { | ||
16569 | char *wtmp = WTMP_FILE; | ||
16570 | ; | ||
16571 | return 0; | ||
16572 | } | ||
16573 | _ACEOF | ||
16574 | rm -f conftest.$ac_objext | ||
16575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16576 | (eval $ac_compile) 2>&5 | ||
16577 | ac_status=$? | ||
16578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16579 | (exit $ac_status); } && | ||
16580 | { ac_try='test -s conftest.$ac_objext' | ||
16581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16582 | (eval $ac_try) 2>&5 | ||
16583 | ac_status=$? | ||
16584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16585 | (exit $ac_status); }; }; then | ||
16586 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16587 | echo "${ECHO_T}yes" >&6 | ||
16588 | else | ||
16589 | echo "$as_me: failed program was:" >&5 | ||
16590 | cat conftest.$ac_ext >&5 | ||
16591 | echo "$as_me:$LINENO: result: no" >&5 | ||
16592 | echo "${ECHO_T}no" >&6 | ||
16593 | system_wtmp_path=no | ||
16594 | |||
16595 | fi | ||
16596 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16597 | if test -z "$conf_wtmp_location"; then | ||
16598 | if test x"$system_wtmp_path" = x"no" ; then | ||
16599 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
16600 | if test -f $f ; then | ||
16601 | conf_wtmp_location=$f | ||
16602 | fi | ||
16603 | done | ||
16604 | if test -z "$conf_wtmp_location"; then | ||
16605 | cat >>confdefs.h <<\_ACEOF | ||
16606 | #define DISABLE_WTMP 1 | ||
16607 | _ACEOF | ||
16608 | |||
16609 | fi | ||
16610 | fi | ||
16611 | fi | ||
16612 | if test -n "$conf_wtmp_location"; then | ||
16613 | cat >>confdefs.h <<_ACEOF | ||
16614 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
16615 | _ACEOF | ||
16616 | |||
16617 | fi | ||
16618 | |||
16619 | |||
16620 | echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
16621 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
16622 | cat >conftest.$ac_ext <<_ACEOF | ||
16623 | #line $LINENO "configure" | ||
16624 | #include "confdefs.h" | ||
16625 | |||
16626 | #include <sys/types.h> | ||
16627 | #include <utmp.h> | ||
16628 | #ifdef HAVE_UTMPX_H | ||
16629 | #include <utmpx.h> | ||
16630 | #endif | ||
16631 | #ifdef HAVE_PATHS_H | ||
16632 | # include <paths.h> | ||
16633 | #endif | ||
16634 | |||
16635 | #ifdef F77_DUMMY_MAIN | ||
16636 | # ifdef __cplusplus | ||
16637 | extern "C" | ||
16638 | # endif | ||
16639 | int F77_DUMMY_MAIN() { return 1; } | ||
16640 | #endif | ||
16641 | int | ||
16642 | main () | ||
16643 | { | ||
16644 | char *utmpx = UTMPX_FILE; | ||
16645 | ; | ||
16646 | return 0; | ||
16647 | } | ||
16648 | _ACEOF | ||
16649 | rm -f conftest.$ac_objext | ||
16650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16651 | (eval $ac_compile) 2>&5 | ||
16652 | ac_status=$? | ||
16653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16654 | (exit $ac_status); } && | ||
16655 | { ac_try='test -s conftest.$ac_objext' | ||
16656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16657 | (eval $ac_try) 2>&5 | ||
16658 | ac_status=$? | ||
16659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16660 | (exit $ac_status); }; }; then | ||
16661 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16662 | echo "${ECHO_T}yes" >&6 | ||
16663 | else | ||
16664 | echo "$as_me: failed program was:" >&5 | ||
16665 | cat conftest.$ac_ext >&5 | ||
16666 | echo "$as_me:$LINENO: result: no" >&5 | ||
16667 | echo "${ECHO_T}no" >&6 | ||
16668 | system_utmpx_path=no | ||
16669 | |||
16670 | fi | ||
16671 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16672 | if test -z "$conf_utmpx_location"; then | ||
16673 | if test x"$system_utmpx_path" = x"no" ; then | ||
16674 | cat >>confdefs.h <<\_ACEOF | ||
16675 | #define DISABLE_UTMPX 1 | ||
16676 | _ACEOF | ||
16677 | |||
16678 | fi | ||
16679 | else | ||
16680 | cat >>confdefs.h <<_ACEOF | ||
16681 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
16682 | _ACEOF | ||
16683 | |||
16684 | fi | ||
16685 | |||
16686 | echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
16687 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
16688 | cat >conftest.$ac_ext <<_ACEOF | ||
16689 | #line $LINENO "configure" | ||
16690 | #include "confdefs.h" | ||
16691 | |||
16692 | #include <sys/types.h> | ||
16693 | #include <utmp.h> | ||
16694 | #ifdef HAVE_UTMPX_H | ||
16695 | #include <utmpx.h> | ||
16696 | #endif | ||
16697 | #ifdef HAVE_PATHS_H | ||
16698 | # include <paths.h> | ||
16699 | #endif | ||
16700 | |||
16701 | #ifdef F77_DUMMY_MAIN | ||
16702 | # ifdef __cplusplus | ||
16703 | extern "C" | ||
16704 | # endif | ||
16705 | int F77_DUMMY_MAIN() { return 1; } | ||
16706 | #endif | ||
16707 | int | ||
16708 | main () | ||
16709 | { | ||
16710 | char *wtmpx = WTMPX_FILE; | ||
16711 | ; | ||
16712 | return 0; | ||
16713 | } | ||
16714 | _ACEOF | ||
16715 | rm -f conftest.$ac_objext | ||
16716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16717 | (eval $ac_compile) 2>&5 | ||
16718 | ac_status=$? | ||
16719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16720 | (exit $ac_status); } && | ||
16721 | { ac_try='test -s conftest.$ac_objext' | ||
16722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16723 | (eval $ac_try) 2>&5 | ||
16724 | ac_status=$? | ||
16725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16726 | (exit $ac_status); }; }; then | ||
16727 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16728 | echo "${ECHO_T}yes" >&6 | ||
16729 | else | ||
16730 | echo "$as_me: failed program was:" >&5 | ||
16731 | cat conftest.$ac_ext >&5 | ||
16732 | echo "$as_me:$LINENO: result: no" >&5 | ||
16733 | echo "${ECHO_T}no" >&6 | ||
16734 | system_wtmpx_path=no | ||
16735 | |||
16736 | fi | ||
16737 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16738 | if test -z "$conf_wtmpx_location"; then | ||
16739 | if test x"$system_wtmpx_path" = x"no" ; then | ||
16740 | cat >>confdefs.h <<\_ACEOF | ||
16741 | #define DISABLE_WTMPX 1 | ||
16742 | _ACEOF | ||
16743 | |||
16744 | fi | ||
16745 | else | ||
16746 | cat >>confdefs.h <<_ACEOF | ||
16747 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
16748 | _ACEOF | ||
16749 | |||
16750 | fi | ||
16751 | |||
16752 | |||
16753 | if test ! -z "$blibpath" ; then | ||
16754 | LDFLAGS="$LDFLAGS -blibpath:$blibpath" | ||
16755 | { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5 | ||
16756 | echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;} | ||
16757 | fi | ||
16758 | |||
16759 | if test "$PAM_MSG" = yes ; then | ||
16760 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
16761 | fi | ||
16762 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
16763 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
16764 | fi | ||
16765 | |||
16766 | |||
16767 | ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds" | ||
16768 | |||
16769 | cat >confcache <<\_ACEOF | ||
16770 | # This file is a shell script that caches the results of configure | ||
16771 | # tests run on this system so they can be shared between configure | ||
16772 | # scripts and configure runs, see configure's option --config-cache. | ||
16773 | # It is not useful on other systems. If it contains results you don't | ||
16774 | # want to keep, you may remove or edit it. | ||
16775 | # | ||
16776 | # config.status only pays attention to the cache file if you give it | ||
16777 | # the --recheck option to rerun configure. | ||
16778 | # | ||
16779 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | ||
16780 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
16781 | # following values. | ||
16782 | |||
16783 | _ACEOF | ||
16784 | |||
16785 | # The following way of writing the cache mishandles newlines in values, | ||
16786 | # but we know of no workaround that is simple, portable, and efficient. | ||
16787 | # So, don't put newlines in cache variables' values. | ||
16788 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
16789 | # and sets the high bit in the cache file unless we assign to the vars. | ||
16790 | { | ||
16791 | (set) 2>&1 | | ||
16792 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
16793 | *ac_space=\ *) | ||
16794 | # `set' does not quote correctly, so add quotes (double-quote | ||
16795 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
16796 | sed -n \ | ||
16797 | "s/'/'\\\\''/g; | ||
16798 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
16799 | ;; | ||
16800 | *) | ||
16801 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
16802 | sed -n \ | ||
16803 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
16804 | ;; | ||
16805 | esac; | ||
16806 | } | | ||
16807 | sed ' | ||
16808 | t clear | ||
16809 | : clear | ||
16810 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
16811 | t end | ||
16812 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
16813 | : end' >>confcache | ||
16814 | if cmp -s $cache_file confcache; then :; else | ||
16815 | if test -w $cache_file; then | ||
16816 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
16817 | cat confcache >$cache_file | ||
16818 | else | ||
16819 | echo "not updating unwritable cache $cache_file" | ||
16820 | fi | ||
16821 | fi | ||
16822 | rm -f confcache | ||
16823 | |||
16824 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
16825 | # Let make expand exec_prefix. | ||
16826 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
16827 | |||
16828 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
16829 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
16830 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
16831 | # (actually we leave an empty line to preserve line numbers). | ||
16832 | if test "x$srcdir" = x.; then | ||
16833 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
16834 | s/:*\$(srcdir):*/:/; | ||
16835 | s/:*\${srcdir}:*/:/; | ||
16836 | s/:*@srcdir@:*/:/; | ||
16837 | s/^\([^=]*=[ ]*\):*/\1/; | ||
16838 | s/:*$//; | ||
16839 | s/^[^=]*=[ ]*$//; | ||
16840 | }' | ||
16841 | fi | ||
16842 | |||
16843 | DEFS=-DHAVE_CONFIG_H | ||
16844 | |||
16845 | |||
16846 | : ${CONFIG_STATUS=./config.status} | ||
16847 | ac_clean_files_save=$ac_clean_files | ||
16848 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
16849 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
16850 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
16851 | cat >$CONFIG_STATUS <<_ACEOF | ||
16852 | #! $SHELL | ||
16853 | # Generated by $as_me. | ||
16854 | # Run this file to recreate the current configuration. | ||
16855 | # Compiler output produced by configure, useful for debugging | ||
16856 | # configure, is in config.log if it exists. | ||
16857 | |||
16858 | debug=false | ||
16859 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
16860 | _ACEOF | ||
16861 | |||
16862 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
16863 | |||
16864 | ## --------------------- ## | ||
16865 | ## M4sh Initialization. ## | ||
16866 | ## --------------------- ## | ||
16867 | |||
16868 | # Be Bourne compatible | ||
16869 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
16870 | emulate sh | ||
16871 | NULLCMD=: | ||
16872 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
16873 | set -o posix | ||
16874 | fi | ||
16875 | |||
16876 | # NLS nuisances. | ||
16877 | # Support unset when possible. | ||
16878 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
16879 | as_unset=unset | ||
16880 | else | ||
16881 | as_unset=false | ||
16882 | fi | ||
16883 | |||
16884 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | ||
16885 | { $as_unset LANG || test "${LANG+set}" != set; } || | ||
16886 | { LANG=C; export LANG; } | ||
16887 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | ||
16888 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | ||
16889 | { LC_ALL=C; export LC_ALL; } | ||
16890 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | ||
16891 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | ||
16892 | { LC_TIME=C; export LC_TIME; } | ||
16893 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | ||
16894 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | ||
16895 | { LC_CTYPE=C; export LC_CTYPE; } | ||
16896 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | ||
16897 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | ||
16898 | { LANGUAGE=C; export LANGUAGE; } | ||
16899 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | ||
16900 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | ||
16901 | { LC_COLLATE=C; export LC_COLLATE; } | ||
16902 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | ||
16903 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | ||
16904 | { LC_NUMERIC=C; export LC_NUMERIC; } | ||
16905 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | ||
16906 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | ||
16907 | { LC_MESSAGES=C; export LC_MESSAGES; } | ||
16908 | |||
16909 | |||
16910 | # Name of the executable. | ||
16911 | as_me=`(basename "$0") 2>/dev/null || | ||
16912 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
16913 | X"$0" : 'X\(//\)$' \| \ | ||
16914 | X"$0" : 'X\(/\)$' \| \ | ||
16915 | . : '\(.\)' 2>/dev/null || | ||
16916 | echo X/"$0" | | ||
16917 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
16918 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
16919 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
16920 | s/.*/./; q'` | ||
16921 | |||
16922 | # PATH needs CR, and LINENO needs CR and PATH. | ||
16923 | # Avoid depending upon Character Ranges. | ||
16924 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
16925 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
16926 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
16927 | as_cr_digits='0123456789' | ||
16928 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
16929 | |||
16930 | # The user is always right. | ||
16931 | if test "${PATH_SEPARATOR+set}" != set; then | ||
16932 | echo "#! /bin/sh" >conftest.sh | ||
16933 | echo "exit 0" >>conftest.sh | ||
16934 | chmod +x conftest.sh | ||
16935 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | ||
16936 | PATH_SEPARATOR=';' | ||
16937 | else | ||
16938 | PATH_SEPARATOR=: | ||
16939 | fi | ||
16940 | rm -f conftest.sh | ||
16941 | fi | ||
16942 | |||
16943 | |||
16944 | as_lineno_1=$LINENO | ||
16945 | as_lineno_2=$LINENO | ||
16946 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
16947 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
16948 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
16949 | # Find who we are. Look in the path if we contain no path at all | ||
16950 | # relative or not. | ||
16951 | case $0 in | ||
16952 | *[\\/]* ) as_myself=$0 ;; | ||
16953 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16954 | for as_dir in $PATH | ||
16955 | do | ||
16956 | IFS=$as_save_IFS | ||
16957 | test -z "$as_dir" && as_dir=. | ||
16958 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
16959 | done | ||
16960 | |||
16961 | ;; | ||
16962 | esac | ||
16963 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
16964 | # in which case we are not to be found in the path. | ||
16965 | if test "x$as_myself" = x; then | ||
16966 | as_myself=$0 | ||
16967 | fi | ||
16968 | if test ! -f "$as_myself"; then | ||
16969 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
16970 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
16971 | { (exit 1); exit 1; }; } | ||
16972 | fi | ||
16973 | case $CONFIG_SHELL in | ||
16974 | '') | ||
16975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16976 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
16977 | do | ||
16978 | IFS=$as_save_IFS | ||
16979 | test -z "$as_dir" && as_dir=. | ||
16980 | for as_base in sh bash ksh sh5; do | ||
16981 | case $as_dir in | ||
16982 | /*) | ||
16983 | if ("$as_dir/$as_base" -c ' | ||
16984 | as_lineno_1=$LINENO | ||
16985 | as_lineno_2=$LINENO | ||
16986 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
16987 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
16988 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
16989 | CONFIG_SHELL=$as_dir/$as_base | ||
16990 | export CONFIG_SHELL | ||
16991 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
16992 | fi;; | ||
16993 | esac | ||
16994 | done | ||
16995 | done | ||
16996 | ;; | ||
16997 | esac | ||
16998 | |||
16999 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
17000 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
17001 | # line-number line before each line; the second 'sed' does the real | ||
17002 | # work. The second script uses 'N' to pair each line-number line | ||
17003 | # with the numbered line, and appends trailing '-' during | ||
17004 | # substitution so that $LINENO is not a special case at line end. | ||
17005 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
17006 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
17007 | sed '=' <$as_myself | | ||
17008 | sed ' | ||
17009 | N | ||
17010 | s,$,-, | ||
17011 | : loop | ||
17012 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
17013 | t loop | ||
17014 | s,-$,, | ||
17015 | s,^['$as_cr_digits']*\n,, | ||
17016 | ' >$as_me.lineno && | ||
17017 | chmod +x $as_me.lineno || | ||
17018 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
17019 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
17020 | { (exit 1); exit 1; }; } | ||
17021 | |||
17022 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
17023 | # (the dirname of $[0] is not the place where we might find the | ||
17024 | # original and so on. Autoconf is especially sensible to this). | ||
17025 | . ./$as_me.lineno | ||
17026 | # Exit status is that of the last command. | ||
17027 | exit | ||
17028 | } | ||
17029 | |||
17030 | |||
17031 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
17032 | *c*,-n*) ECHO_N= ECHO_C=' | ||
17033 | ' ECHO_T=' ' ;; | ||
17034 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
17035 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
17036 | esac | ||
17037 | |||
17038 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
17039 | as_expr=expr | ||
17040 | else | ||
17041 | as_expr=false | ||
17042 | fi | ||
17043 | |||
17044 | rm -f conf$$ conf$$.exe conf$$.file | ||
17045 | echo >conf$$.file | ||
17046 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
17047 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
17048 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
17049 | if test -f conf$$.exe; then | ||
17050 | # Don't use ln at all; we don't have any links | ||
17051 | as_ln_s='cp -p' | ||
17052 | else | ||
17053 | as_ln_s='ln -s' | ||
17054 | fi | ||
17055 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
17056 | as_ln_s=ln | ||
17057 | else | ||
17058 | as_ln_s='cp -p' | ||
17059 | fi | ||
17060 | rm -f conf$$ conf$$.exe conf$$.file | ||
17061 | |||
17062 | as_executable_p="test -f" | ||
17063 | |||
17064 | # Sed expression to map a string onto a valid CPP name. | ||
17065 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
17066 | |||
17067 | # Sed expression to map a string onto a valid variable name. | ||
17068 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
17069 | |||
17070 | |||
17071 | # IFS | ||
17072 | # We need space, tab and new line, in precisely that order. | ||
17073 | as_nl=' | ||
17074 | ' | ||
17075 | IFS=" $as_nl" | ||
17076 | |||
17077 | # CDPATH. | ||
17078 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | ||
17079 | |||
17080 | exec 6>&1 | ||
17081 | |||
17082 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
17083 | # report actual input values of CONFIG_FILES etc. instead of their | ||
17084 | # values after options handling. Logging --version etc. is OK. | ||
17085 | exec 5>>config.log | ||
17086 | { | ||
17087 | echo | ||
17088 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
17089 | ## Running $as_me. ## | ||
17090 | _ASBOX | ||
17091 | } >&5 | ||
17092 | cat >&5 <<_CSEOF | ||
17093 | |||
17094 | This file was extended by $as_me, which was | ||
17095 | generated by GNU Autoconf 2.53. Invocation command line was | ||
17096 | |||
17097 | CONFIG_FILES = $CONFIG_FILES | ||
17098 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
17099 | CONFIG_LINKS = $CONFIG_LINKS | ||
17100 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
17101 | $ $0 $@ | ||
17102 | |||
17103 | _CSEOF | ||
17104 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
17105 | echo >&5 | ||
17106 | _ACEOF | ||
17107 | |||
17108 | # Files that config.status was made for. | ||
17109 | if test -n "$ac_config_files"; then | ||
17110 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
17111 | fi | ||
17112 | |||
17113 | if test -n "$ac_config_headers"; then | ||
17114 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
17115 | fi | ||
17116 | |||
17117 | if test -n "$ac_config_links"; then | ||
17118 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
17119 | fi | ||
17120 | |||
17121 | if test -n "$ac_config_commands"; then | ||
17122 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
17123 | fi | ||
17124 | |||
17125 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17126 | |||
17127 | ac_cs_usage="\ | ||
17128 | \`$as_me' instantiates files from templates according to the | ||
17129 | current configuration. | ||
17130 | |||
17131 | Usage: $0 [OPTIONS] [FILE]... | ||
17132 | |||
17133 | -h, --help print this help, then exit | ||
17134 | -V, --version print version number, then exit | ||
17135 | -d, --debug don't remove temporary files | ||
17136 | --recheck update $as_me by reconfiguring in the same conditions | ||
17137 | --file=FILE[:TEMPLATE] | ||
17138 | instantiate the configuration file FILE | ||
17139 | --header=FILE[:TEMPLATE] | ||
17140 | instantiate the configuration header FILE | ||
17141 | |||
17142 | Configuration files: | ||
17143 | $config_files | ||
17144 | |||
17145 | Configuration headers: | ||
17146 | $config_headers | ||
17147 | |||
17148 | Report bugs to <bug-autoconf@gnu.org>." | ||
17149 | _ACEOF | ||
17150 | |||
17151 | cat >>$CONFIG_STATUS <<_ACEOF | ||
17152 | ac_cs_version="\\ | ||
17153 | config.status | ||
17154 | configured by $0, generated by GNU Autoconf 2.53, | ||
17155 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
17156 | |||
17157 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
17158 | Free Software Foundation, Inc. | ||
17159 | This config.status script is free software; the Free Software Foundation | ||
17160 | gives unlimited permission to copy, distribute and modify it." | ||
17161 | srcdir=$srcdir | ||
17162 | INSTALL="$INSTALL" | ||
17163 | _ACEOF | ||
17164 | |||
17165 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17166 | # If no file are specified by the user, then we need to provide default | ||
17167 | # value. By we need to know if files were specified by the user. | ||
17168 | ac_need_defaults=: | ||
17169 | while test $# != 0 | ||
17170 | do | ||
17171 | case $1 in | ||
17172 | --*=*) | ||
17173 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
17174 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
17175 | shift | ||
17176 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | ||
17177 | shift | ||
17178 | ;; | ||
17179 | -*);; | ||
17180 | *) # This is not an option, so the user has probably given explicit | ||
17181 | # arguments. | ||
17182 | ac_need_defaults=false;; | ||
17183 | esac | ||
17184 | |||
17185 | case $1 in | ||
17186 | # Handling of the options. | ||
17187 | _ACEOF | ||
17188 | cat >>$CONFIG_STATUS <<_ACEOF | ||
17189 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
17190 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | ||
17191 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | ||
17192 | _ACEOF | ||
17193 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17194 | --version | --vers* | -V ) | ||
17195 | echo "$ac_cs_version"; exit 0 ;; | ||
17196 | --he | --h) | ||
17197 | # Conflict between --help and --header | ||
17198 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
17199 | Try \`$0 --help' for more information." >&5 | ||
17200 | echo "$as_me: error: ambiguous option: $1 | ||
17201 | Try \`$0 --help' for more information." >&2;} | ||
17202 | { (exit 1); exit 1; }; };; | ||
17203 | --help | --hel | -h ) | ||
17204 | echo "$ac_cs_usage"; exit 0 ;; | ||
17205 | --debug | --d* | -d ) | ||
17206 | debug=: ;; | ||
17207 | --file | --fil | --fi | --f ) | ||
17208 | shift | ||
17209 | CONFIG_FILES="$CONFIG_FILES $1" | ||
17210 | ac_need_defaults=false;; | ||
17211 | --header | --heade | --head | --hea ) | ||
17212 | shift | ||
17213 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | ||
17214 | ac_need_defaults=false;; | ||
17215 | |||
17216 | # This is an error. | ||
17217 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
17218 | Try \`$0 --help' for more information." >&5 | ||
17219 | echo "$as_me: error: unrecognized option: $1 | ||
17220 | Try \`$0 --help' for more information." >&2;} | ||
17221 | { (exit 1); exit 1; }; } ;; | ||
17222 | |||
17223 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
17224 | |||
17225 | esac | ||
17226 | shift | ||
17227 | done | ||
17228 | |||
17229 | _ACEOF | ||
17230 | |||
17231 | |||
17232 | |||
17233 | |||
17234 | |||
17235 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17236 | for ac_config_target in $ac_config_targets | ||
17237 | do | ||
17238 | case "$ac_config_target" in | ||
17239 | # Handling of arguments. | ||
17240 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
17241 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
17242 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
17243 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
17244 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
17245 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
17246 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
17247 | { (exit 1); exit 1; }; };; | ||
17248 | esac | ||
17249 | done | ||
17250 | |||
17251 | # If the user did not use the arguments to specify the items to instantiate, | ||
17252 | # then the envvar interface is used. Set only those that are not. | ||
17253 | # We use the long form for the default assignment because of an extremely | ||
17254 | # bizarre bug on SunOS 4.1.3. | ||
17255 | if $ac_need_defaults; then | ||
17256 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
17257 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
17258 | fi | ||
17259 | |||
17260 | # Create a temporary directory, and hook for its removal unless debugging. | ||
17261 | $debug || | ||
17262 | { | ||
17263 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
17264 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
17265 | } | ||
17266 | |||
17267 | # Create a (secure) tmp directory for tmp files. | ||
17268 | : ${TMPDIR=/tmp} | ||
17269 | { | ||
17270 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | ||
17271 | test -n "$tmp" && test -d "$tmp" | ||
17272 | } || | ||
17273 | { | ||
17274 | tmp=$TMPDIR/cs$$-$RANDOM | ||
17275 | (umask 077 && mkdir $tmp) | ||
17276 | } || | ||
17277 | { | ||
17278 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | ||
17279 | { (exit 1); exit 1; } | ||
17280 | } | ||
17281 | |||
17282 | _ACEOF | ||
17283 | |||
17284 | cat >>$CONFIG_STATUS <<_ACEOF | ||
17285 | |||
17286 | # | ||
17287 | # CONFIG_FILES section. | ||
17288 | # | ||
17289 | |||
17290 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
17291 | # This happens for instance when ./config.status config.h | ||
17292 | if test -n "\$CONFIG_FILES"; then | ||
17293 | # Protect against being on the right side of a sed subst in config.status. | ||
17294 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
17295 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
17296 | s,@SHELL@,$SHELL,;t t | ||
17297 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
17298 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
17299 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
17300 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
17301 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
17302 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
17303 | s,@exec_prefix@,$exec_prefix,;t t | ||
17304 | s,@prefix@,$prefix,;t t | ||
17305 | s,@program_transform_name@,$program_transform_name,;t t | ||
17306 | s,@bindir@,$bindir,;t t | ||
17307 | s,@sbindir@,$sbindir,;t t | ||
17308 | s,@libexecdir@,$libexecdir,;t t | ||
17309 | s,@datadir@,$datadir,;t t | ||
17310 | s,@sysconfdir@,$sysconfdir,;t t | ||
17311 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
17312 | s,@localstatedir@,$localstatedir,;t t | ||
17313 | s,@libdir@,$libdir,;t t | ||
17314 | s,@includedir@,$includedir,;t t | ||
17315 | s,@oldincludedir@,$oldincludedir,;t t | ||
17316 | s,@infodir@,$infodir,;t t | ||
17317 | s,@mandir@,$mandir,;t t | ||
17318 | s,@build_alias@,$build_alias,;t t | ||
17319 | s,@host_alias@,$host_alias,;t t | ||
17320 | s,@target_alias@,$target_alias,;t t | ||
17321 | s,@DEFS@,$DEFS,;t t | ||
17322 | s,@ECHO_C@,$ECHO_C,;t t | ||
17323 | s,@ECHO_N@,$ECHO_N,;t t | ||
17324 | s,@ECHO_T@,$ECHO_T,;t t | ||
17325 | s,@LIBS@,$LIBS,;t t | ||
17326 | s,@CC@,$CC,;t t | ||
17327 | s,@CFLAGS@,$CFLAGS,;t t | ||
17328 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
17329 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
17330 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
17331 | s,@EXEEXT@,$EXEEXT,;t t | ||
17332 | s,@OBJEXT@,$OBJEXT,;t t | ||
17333 | s,@build@,$build,;t t | ||
17334 | s,@build_cpu@,$build_cpu,;t t | ||
17335 | s,@build_vendor@,$build_vendor,;t t | ||
17336 | s,@build_os@,$build_os,;t t | ||
17337 | s,@host@,$host,;t t | ||
17338 | s,@host_cpu@,$host_cpu,;t t | ||
17339 | s,@host_vendor@,$host_vendor,;t t | ||
17340 | s,@host_os@,$host_os,;t t | ||
17341 | s,@CPP@,$CPP,;t t | ||
17342 | s,@RANLIB@,$RANLIB,;t t | ||
17343 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
17344 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
17345 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
17346 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
17347 | s,@AR@,$AR,;t t | ||
17348 | s,@PERL@,$PERL,;t t | ||
17349 | s,@ENT@,$ENT,;t t | ||
17350 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
17351 | s,@SH@,$SH,;t t | ||
17352 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
17353 | s,@LD@,$LD,;t t | ||
17354 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
17355 | s,@LIBPAM@,$LIBPAM,;t t | ||
17356 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
17357 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
17358 | s,@PROG_LS@,$PROG_LS,;t t | ||
17359 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
17360 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
17361 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
17362 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
17363 | s,@PROG_PS@,$PROG_PS,;t t | ||
17364 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
17365 | s,@PROG_W@,$PROG_W,;t t | ||
17366 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
17367 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
17368 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
17369 | s,@PROG_DF@,$PROG_DF,;t t | ||
17370 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
17371 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
17372 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
17373 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
17374 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
17375 | s,@NO_SFTP@,$NO_SFTP,;t t | ||
17376 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
17377 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
17378 | s,@xauth_path@,$xauth_path,;t t | ||
17379 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
17380 | s,@NROFF@,$NROFF,;t t | ||
17381 | s,@MANTYPE@,$MANTYPE,;t t | ||
17382 | s,@mansubdir@,$mansubdir,;t t | ||
17383 | s,@user_path@,$user_path,;t t | ||
17384 | s,@piddir@,$piddir,;t t | ||
17385 | CEOF | ||
17386 | |||
17387 | _ACEOF | ||
17388 | |||
17389 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17390 | # Split the substitutions into bite-sized pieces for seds with | ||
17391 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
17392 | ac_max_sed_lines=48 | ||
17393 | ac_sed_frag=1 # Number of current file. | ||
17394 | ac_beg=1 # First line for current file. | ||
17395 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
17396 | ac_more_lines=: | ||
17397 | ac_sed_cmds= | ||
17398 | while $ac_more_lines; do | ||
17399 | if test $ac_beg -gt 1; then | ||
17400 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17401 | else | ||
17402 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17403 | fi | ||
17404 | if test ! -s $tmp/subs.frag; then | ||
17405 | ac_more_lines=false | ||
17406 | else | ||
17407 | # The purpose of the label and of the branching condition is to | ||
17408 | # speed up the sed processing (if there are no `@' at all, there | ||
17409 | # is no need to browse any of the substitutions). | ||
17410 | # These are the two extra sed commands mentioned above. | ||
17411 | (echo ':t | ||
17412 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
17413 | if test -z "$ac_sed_cmds"; then | ||
17414 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17415 | else | ||
17416 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17417 | fi | ||
17418 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
17419 | ac_beg=$ac_end | ||
17420 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
17421 | fi | ||
17422 | done | ||
17423 | if test -z "$ac_sed_cmds"; then | ||
17424 | ac_sed_cmds=cat | ||
17425 | fi | ||
17426 | fi # test -n "$CONFIG_FILES" | ||
17427 | |||
17428 | _ACEOF | ||
17429 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17430 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
17431 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
17432 | case $ac_file in | ||
17433 | - | *:- | *:-:* ) # input from stdin | ||
17434 | cat >$tmp/stdin | ||
17435 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17436 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17437 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17438 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17439 | * ) ac_file_in=$ac_file.in ;; | ||
17440 | esac | ||
17441 | |||
17442 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
17443 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
17444 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17445 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
17446 | X"$ac_file" : 'X\(//\)$' \| \ | ||
17447 | X"$ac_file" : 'X\(/\)' \| \ | ||
17448 | . : '\(.\)' 2>/dev/null || | ||
17449 | echo X"$ac_file" | | ||
17450 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
17451 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
17452 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
17453 | /^X\(\/\).*/{ s//\1/; q; } | ||
17454 | s/.*/./; q'` | ||
17455 | { case "$ac_dir" in | ||
17456 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
17457 | *) as_incr_dir=.;; | ||
17458 | esac | ||
17459 | as_dummy="$ac_dir" | ||
17460 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
17461 | case $as_mkdir_dir in | ||
17462 | # Skip DOS drivespec | ||
17463 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
17464 | *) | ||
17465 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
17466 | test -d "$as_incr_dir" || | ||
17467 | mkdir "$as_incr_dir" || | ||
17468 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | ||
17469 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | ||
17470 | { (exit 1); exit 1; }; } | ||
17471 | ;; | ||
17472 | esac | ||
17473 | done; } | ||
17474 | |||
17475 | ac_builddir=. | ||
17476 | |||
17477 | if test "$ac_dir" != .; then | ||
17478 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
17479 | # A "../" for each directory in $ac_dir_suffix. | ||
17480 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
17481 | else | ||
17482 | ac_dir_suffix= ac_top_builddir= | ||
17483 | fi | ||
17484 | |||
17485 | case $srcdir in | ||
17486 | .) # No --srcdir option. We are building in place. | ||
17487 | ac_srcdir=. | ||
17488 | if test -z "$ac_top_builddir"; then | ||
17489 | ac_top_srcdir=. | ||
17490 | else | ||
17491 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
17492 | fi ;; | ||
17493 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
17494 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
17495 | ac_top_srcdir=$srcdir ;; | ||
17496 | *) # Relative path. | ||
17497 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
17498 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
17499 | esac | ||
17500 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | ||
17501 | # absolute. | ||
17502 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | ||
17503 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | ||
17504 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | ||
17505 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | ||
17506 | |||
17507 | |||
17508 | case $INSTALL in | ||
17509 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
17510 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | ||
17511 | esac | ||
17512 | |||
17513 | if test x"$ac_file" != x-; then | ||
17514 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
17515 | echo "$as_me: creating $ac_file" >&6;} | ||
17516 | rm -f "$ac_file" | ||
17517 | fi | ||
17518 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17519 | # use $as_me), people would be surprised to read: | ||
17520 | # /* config.h. Generated by config.status. */ | ||
17521 | if test x"$ac_file" = x-; then | ||
17522 | configure_input= | ||
17523 | else | ||
17524 | configure_input="$ac_file. " | ||
17525 | fi | ||
17526 | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
17527 | sed 's,.*/,,'` by configure." | ||
17528 | |||
17529 | # First look for the input files in the build tree, otherwise in the | ||
17530 | # src tree. | ||
17531 | ac_file_inputs=`IFS=: | ||
17532 | for f in $ac_file_in; do | ||
17533 | case $f in | ||
17534 | -) echo $tmp/stdin ;; | ||
17535 | [\\/$]*) | ||
17536 | # Absolute (can't be DOS-style, as IFS=:) | ||
17537 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
17538 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17539 | { (exit 1); exit 1; }; } | ||
17540 | echo $f;; | ||
17541 | *) # Relative | ||
17542 | if test -f "$f"; then | ||
17543 | # Build tree | ||
17544 | echo $f | ||
17545 | elif test -f "$srcdir/$f"; then | ||
17546 | # Source tree | ||
17547 | echo $srcdir/$f | ||
17548 | else | ||
17549 | # /dev/null tree | ||
17550 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
17551 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17552 | { (exit 1); exit 1; }; } | ||
17553 | fi;; | ||
17554 | esac | ||
17555 | done` || { (exit 1); exit 1; } | ||
17556 | _ACEOF | ||
17557 | cat >>$CONFIG_STATUS <<_ACEOF | ||
17558 | sed "$ac_vpsub | ||
17559 | $extrasub | ||
17560 | _ACEOF | ||
17561 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17562 | :t | ||
17563 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
17564 | s,@configure_input@,$configure_input,;t t | ||
17565 | s,@srcdir@,$ac_srcdir,;t t | ||
17566 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
17567 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
17568 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
17569 | s,@builddir@,$ac_builddir,;t t | ||
17570 | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
17571 | s,@top_builddir@,$ac_top_builddir,;t t | ||
17572 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
17573 | s,@INSTALL@,$ac_INSTALL,;t t | ||
17574 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
17575 | rm -f $tmp/stdin | ||
17576 | if test x"$ac_file" != x-; then | ||
17577 | mv $tmp/out $ac_file | ||
17578 | else | ||
17579 | cat $tmp/out | ||
17580 | rm -f $tmp/out | ||
17581 | fi | ||
17582 | |||
17583 | done | ||
17584 | _ACEOF | ||
17585 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17586 | |||
17587 | # | ||
17588 | # CONFIG_HEADER section. | ||
17589 | # | ||
17590 | |||
17591 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
17592 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
17593 | # | ||
17594 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
17595 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
17596 | ac_dB='[ ].*$,\1#\2' | ||
17597 | ac_dC=' ' | ||
17598 | ac_dD=',;t' | ||
17599 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
17600 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
17601 | ac_uB='$,\1#\2define\3' | ||
17602 | ac_uC=' ' | ||
17603 | ac_uD=',;t' | ||
17604 | |||
17605 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
17606 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
17607 | case $ac_file in | ||
17608 | - | *:- | *:-:* ) # input from stdin | ||
17609 | cat >$tmp/stdin | ||
17610 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17611 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17612 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17613 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17614 | * ) ac_file_in=$ac_file.in ;; | ||
17615 | esac | ||
17616 | |||
17617 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
17618 | echo "$as_me: creating $ac_file" >&6;} | ||
17619 | |||
17620 | # First look for the input files in the build tree, otherwise in the | ||
17621 | # src tree. | ||
17622 | ac_file_inputs=`IFS=: | ||
17623 | for f in $ac_file_in; do | ||
17624 | case $f in | ||
17625 | -) echo $tmp/stdin ;; | ||
17626 | [\\/$]*) | ||
17627 | # Absolute (can't be DOS-style, as IFS=:) | ||
17628 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
17629 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17630 | { (exit 1); exit 1; }; } | ||
17631 | echo $f;; | ||
17632 | *) # Relative | ||
17633 | if test -f "$f"; then | ||
17634 | # Build tree | ||
17635 | echo $f | ||
17636 | elif test -f "$srcdir/$f"; then | ||
17637 | # Source tree | ||
17638 | echo $srcdir/$f | ||
17639 | else | ||
17640 | # /dev/null tree | ||
17641 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
17642 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17643 | { (exit 1); exit 1; }; } | ||
17644 | fi;; | ||
17645 | esac | ||
17646 | done` || { (exit 1); exit 1; } | ||
17647 | # Remove the trailing spaces. | ||
17648 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
17649 | |||
17650 | _ACEOF | ||
17651 | |||
17652 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
17653 | # `conftest.undefs', that substitutes the proper values into | ||
17654 | # config.h.in to produce config.h. The first handles `#define' | ||
17655 | # templates, and the second `#undef' templates. | ||
17656 | # And first: Protect against being on the right side of a sed subst in | ||
17657 | # config.status. Protect against being in an unquoted here document | ||
17658 | # in config.status. | ||
17659 | rm -f conftest.defines conftest.undefs | ||
17660 | # Using a here document instead of a string reduces the quoting nightmare. | ||
17661 | # Putting comments in sed scripts is not portable. | ||
17662 | # | ||
17663 | # `end' is used to avoid that the second main sed command (meant for | ||
17664 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
17665 | # See the Autoconf documentation for `clear'. | ||
17666 | cat >confdef2sed.sed <<\_ACEOF | ||
17667 | s/[\\&,]/\\&/g | ||
17668 | s,[\\$`],\\&,g | ||
17669 | t clear | ||
17670 | : clear | ||
17671 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
17672 | t end | ||
17673 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
17674 | : end | ||
17675 | _ACEOF | ||
17676 | # If some macros were called several times there might be several times | ||
17677 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
17678 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
17679 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
17680 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
17681 | rm -f confdef2sed.sed | ||
17682 | |||
17683 | # This sed command replaces #undef with comments. This is necessary, for | ||
17684 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
17685 | # on some systems where configure will not decide to define it. | ||
17686 | cat >>conftest.undefs <<\_ACEOF | ||
17687 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
17688 | _ACEOF | ||
17689 | |||
17690 | # Break up conftest.defines because some shells have a limit on the size | ||
17691 | # of here documents, and old seds have small limits too (100 cmds). | ||
17692 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
17693 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
17694 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
17695 | echo ' :' >>$CONFIG_STATUS | ||
17696 | rm -f conftest.tail | ||
17697 | while grep . conftest.defines >/dev/null | ||
17698 | do | ||
17699 | # Write a limited-size here document to $tmp/defines.sed. | ||
17700 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
17701 | # Speed up: don't consider the non `#define' lines. | ||
17702 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
17703 | # Work around the forget-to-reset-the-flag bug. | ||
17704 | echo 't clr' >>$CONFIG_STATUS | ||
17705 | echo ': clr' >>$CONFIG_STATUS | ||
17706 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
17707 | echo 'CEOF | ||
17708 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
17709 | rm -f $tmp/in | ||
17710 | mv $tmp/out $tmp/in | ||
17711 | ' >>$CONFIG_STATUS | ||
17712 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
17713 | rm -f conftest.defines | ||
17714 | mv conftest.tail conftest.defines | ||
17715 | done | ||
17716 | rm -f conftest.defines | ||
17717 | echo ' fi # egrep' >>$CONFIG_STATUS | ||
17718 | echo >>$CONFIG_STATUS | ||
17719 | |||
17720 | # Break up conftest.undefs because some shells have a limit on the size | ||
17721 | # of here documents, and old seds have small limits too (100 cmds). | ||
17722 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
17723 | rm -f conftest.tail | ||
17724 | while grep . conftest.undefs >/dev/null | ||
17725 | do | ||
17726 | # Write a limited-size here document to $tmp/undefs.sed. | ||
17727 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
17728 | # Speed up: don't consider the non `#undef' | ||
17729 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
17730 | # Work around the forget-to-reset-the-flag bug. | ||
17731 | echo 't clr' >>$CONFIG_STATUS | ||
17732 | echo ': clr' >>$CONFIG_STATUS | ||
17733 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
17734 | echo 'CEOF | ||
17735 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
17736 | rm -f $tmp/in | ||
17737 | mv $tmp/out $tmp/in | ||
17738 | ' >>$CONFIG_STATUS | ||
17739 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
17740 | rm -f conftest.undefs | ||
17741 | mv conftest.tail conftest.undefs | ||
17742 | done | ||
17743 | rm -f conftest.undefs | ||
17744 | |||
17745 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17746 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17747 | # use $as_me), people would be surprised to read: | ||
17748 | # /* config.h. Generated by config.status. */ | ||
17749 | if test x"$ac_file" = x-; then | ||
17750 | echo "/* Generated by configure. */" >$tmp/config.h | ||
17751 | else | ||
17752 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
17753 | fi | ||
17754 | cat $tmp/in >>$tmp/config.h | ||
17755 | rm -f $tmp/in | ||
17756 | if test x"$ac_file" != x-; then | ||
17757 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | ||
17758 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
17759 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
17760 | else | ||
17761 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
17762 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17763 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
17764 | X"$ac_file" : 'X\(//\)$' \| \ | ||
17765 | X"$ac_file" : 'X\(/\)' \| \ | ||
17766 | . : '\(.\)' 2>/dev/null || | ||
17767 | echo X"$ac_file" | | ||
17768 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
17769 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
17770 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
17771 | /^X\(\/\).*/{ s//\1/; q; } | ||
17772 | s/.*/./; q'` | ||
17773 | { case "$ac_dir" in | ||
17774 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
17775 | *) as_incr_dir=.;; | ||
17776 | esac | ||
17777 | as_dummy="$ac_dir" | ||
17778 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
17779 | case $as_mkdir_dir in | ||
17780 | # Skip DOS drivespec | ||
17781 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
17782 | *) | ||
17783 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
17784 | test -d "$as_incr_dir" || | ||
17785 | mkdir "$as_incr_dir" || | ||
17786 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | ||
17787 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | ||
17788 | { (exit 1); exit 1; }; } | ||
17789 | ;; | ||
17790 | esac | ||
17791 | done; } | ||
17792 | |||
17793 | rm -f $ac_file | ||
17794 | mv $tmp/config.h $ac_file | ||
17795 | fi | ||
17796 | else | ||
17797 | cat $tmp/config.h | ||
17798 | rm -f $tmp/config.h | ||
17799 | fi | ||
17800 | done | ||
17801 | _ACEOF | ||
17802 | |||
17803 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17804 | |||
17805 | { (exit 0); exit 0; } | ||
17806 | _ACEOF | ||
17807 | chmod +x $CONFIG_STATUS | ||
17808 | ac_clean_files=$ac_clean_files_save | ||
17809 | |||
17810 | |||
17811 | # configure is writing to config.log, and then calls config.status. | ||
17812 | # config.status does its own redirection, appending to config.log. | ||
17813 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
17814 | # by configure, so config.status won't be able to write to it; its | ||
17815 | # output is simply discarded. So we exec the FD to /dev/null, | ||
17816 | # effectively closing config.log, so it can be properly (re)opened and | ||
17817 | # appended to by config.status. When coming back to configure, we | ||
17818 | # need to make the FD available again. | ||
17819 | if test "$no_create" != yes; then | ||
17820 | ac_cs_success=: | ||
17821 | exec 5>/dev/null | ||
17822 | $SHELL $CONFIG_STATUS || ac_cs_success=false | ||
17823 | exec 5>>config.log | ||
17824 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
17825 | # would make configure fail if this is the last instruction. | ||
17826 | $ac_cs_success || { (exit 1); exit 1; } | ||
17827 | fi | ||
17828 | |||
17829 | |||
17830 | # Print summary of options | ||
17831 | |||
17832 | # Someone please show me a better way :) | ||
17833 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
17834 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
17835 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
17836 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
17837 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
17838 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
17839 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
17840 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
17841 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
17842 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
17843 | |||
17844 | echo "" | ||
17845 | echo "OpenSSH has been configured with the following options:" | ||
17846 | echo " User binaries: $B" | ||
17847 | echo " System binaries: $C" | ||
17848 | echo " Configuration files: $D" | ||
17849 | echo " Askpass program: $E" | ||
17850 | echo " Manual pages: $F" | ||
17851 | echo " PID file: $G" | ||
17852 | echo " Privilege separation chroot path: $H" | ||
17853 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
17854 | echo " At runtime, sshd will use the path defined in /etc/login.conf" | ||
17855 | else | ||
17856 | echo " sshd default user PATH: $I" | ||
17857 | fi | ||
17858 | if test ! -z "$superuser_path" ; then | ||
17859 | echo " sshd superuser user PATH: $J" | ||
17860 | fi | ||
17861 | echo " Manpage format: $MANTYPE" | ||
17862 | echo " PAM support: ${PAM_MSG}" | ||
17863 | echo " KerberosIV support: $KRB4_MSG" | ||
17864 | echo " KerberosV support: $KRB5_MSG" | ||
17865 | echo " Smartcard support: $SCARD_MSG" | ||
17866 | echo " AFS support: $AFS_MSG" | ||
17867 | echo " S/KEY support: $SKEY_MSG" | ||
17868 | echo " TCP Wrappers support: $TCPW_MSG" | ||
17869 | echo " MD5 password support: $MD5_MSG" | ||
17870 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
17871 | echo " Use IPv4 by default hack: $IPV4_HACK_MSG" | ||
17872 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
17873 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
17874 | echo " Random number source: $RAND_MSG" | ||
17875 | if test ! -z "$USE_RAND_HELPER" ; then | ||
17876 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
17877 | fi | ||
17878 | |||
17879 | echo "" | ||
17880 | |||
17881 | echo " Host: ${host}" | ||
17882 | echo " Compiler: ${CC}" | ||
17883 | echo " Compiler flags: ${CFLAGS}" | ||
17884 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
17885 | echo " Linker flags: ${LDFLAGS}" | ||
17886 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
17887 | |||
17888 | echo "" | ||
17889 | |||
17890 | if test "x$PAM_MSG" = "xyes" ; then | ||
17891 | echo "PAM is enabled. You may need to install a PAM control file " | ||
17892 | echo "for sshd, otherwise password authentication may fail. " | ||
17893 | echo "Example PAM control files can be found in the contrib/ " | ||
17894 | echo "subdirectory" | ||
17895 | echo "" | ||
17896 | fi | ||
17897 | |||
17898 | if test ! -z "$NO_SFTP"; then | ||
17899 | echo "sftp-server will be disabled. Your compiler does not " | ||
17900 | echo "support 64bit integers." | ||
17901 | echo "" | ||
17902 | fi | ||
17903 | |||
17904 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
17905 | echo "WARNING: you are using the builtin random number collection " | ||
17906 | echo "service. Please read WARNING.RNG and request that your OS " | ||
17907 | echo "vendor includes kernel-based random number collection in " | ||
17908 | echo "future versions of your OS." | ||
17909 | echo "" | ||
17910 | fi | ||
17911 | |||