configure revision 1.19 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 for libnbcompat noversion.
4 #
5 # Report bugs to <lib-bug-people (at] netbsd.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
18
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 emulate sh
28 NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 set -o posix
31 fi
32
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
36 if expr a : '\(a\)' >/dev/null 2>&1; then
37 as_expr=expr
38 else
39 as_expr=false
40 fi
41
42 rm -f conf$$ conf$$.exe conf$$.file
43 echo >conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
49 as_ln_s='cp -p'
50 else
51 as_ln_s='ln -s'
52 fi
53 elif ln conf$$.file conf$$ 2>/dev/null; then
54 as_ln_s=ln
55 else
56 as_ln_s='cp -p'
57 fi
58 rm -f conf$$ conf$$.exe conf$$.file
59
60 as_executable_p="test -f"
61
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64 as_unset=unset
65 else
66 as_unset=false
67 fi
68
69 # NLS nuisances.
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
79 # IFS
80 # We need space, tab and new line, in precisely that order.
81 as_nl='
82 '
83 IFS=" $as_nl"
84
85 # CDPATH.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
88 # Name of the host.
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
93 exec 6>&1
94
95 #
96 # Initializations.
97 #
98 ac_default_prefix=/usr/local
99 cross_compiling=no
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete. It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : ${ac_max_here_lines=38}
108
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 # include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 # include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 # include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
145
146 # Initialize some variables set by options.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_libraries=NONE
165
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
183
184 # Identity of this package.
185 PACKAGE_NAME='libnbcompat'
186 PACKAGE_TARNAME='libnbcompat'
187 PACKAGE_VERSION='noversion'
188 PACKAGE_STRING='libnbcompat noversion'
189 PACKAGE_BUGREPORT='lib-bug-people (at] netbsd.org'
190
191 ac_prev=
192 for ac_option
193 do
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
197 ac_prev=
198 continue
199 fi
200
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203 # Accept the important Cygnus configure options, so we can diagnose typos.
204
205 case $ac_option in
206
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 ac_prev=bindir ;;
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir=$ac_optarg ;;
211
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
216
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
223
224 --config-cache | -C)
225 cache_file=config.cache ;;
226
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 ac_prev=datadir ;;
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 | --da=*)
231 datadir=$ac_optarg ;;
232
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
241
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 case $ac_option in
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 *) ac_optarg=yes ;;
252 esac
253 eval "enable_$ac_feature='$ac_optarg'" ;;
254
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
263
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
266 with_gas=yes ;;
267
268 -help | --help | --hel | --he | -h)
269 ac_init_help=long ;;
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
274
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
279
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
286
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 ac_prev=infodir ;;
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
291
292 -libdir | --libdir | --libdi | --libd)
293 ac_prev=libdir ;;
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 libdir=$ac_optarg ;;
296
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
303
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
312
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 ac_prev=mandir ;;
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 mandir=$ac_optarg ;;
317
318 -nfp | --nfp | --nf)
319 # Obsolete; use --without-fp.
320 with_fp=no ;;
321
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c)
324 no_create=yes ;;
325
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 no_recursion=yes ;;
329
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
338
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 ac_prev=prefix ;;
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 prefix=$ac_optarg ;;
343
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
350
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
357
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
374
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
377 silent=yes ;;
378
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 ac_prev=sbindir ;;
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 | --sbi=* | --sb=*)
383 sbindir=$ac_optarg ;;
384
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
388 | --sha | --sh)
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 | --sha=* | --sh=*)
394 sharedstatedir=$ac_optarg ;;
395
396 -site | --site | --sit)
397 ac_prev=site ;;
398 -site=* | --site=* | --sit=*)
399 site=$ac_optarg ;;
400
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 ac_prev=srcdir ;;
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 srcdir=$ac_optarg ;;
405
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
412
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
417
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 verbose=yes ;;
420
421 -version | --version | --versio | --versi | --vers | -V)
422 ac_init_version=: ;;
423
424 -with-* | --with-*)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 case $ac_option in
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 *) ac_optarg=yes ;;
434 esac
435 eval "with_$ac_package='$ac_optarg'" ;;
436
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
445
446 --x)
447 # Obsolete; use --with-x.
448 with_x=yes ;;
449
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
456
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
463
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
467 ;;
468
469 *=*)
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
477 export $ac_envvar ;;
478
479 *)
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485 ;;
486
487 esac
488 done
489
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
494 fi
495
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
498 do
499 eval ac_val=$`echo $ac_var`
500 case $ac_val in
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
504 esac
505 done
506
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
510 do
511 eval ac_val=$`echo $ac_var`
512 case $ac_val in
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
516 esac
517 done
518
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
521 build=$build_alias
522 host=$host_alias
523 target=$target_alias
524
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
532 cross_compiling=yes
533 fi
534 fi
535
536 ac_tool_prefix=
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539 test "$silent" = yes && exec 6>/dev/null
540
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
545 ac_prog=$0
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 srcdir=$ac_confdir
549 if test ! -r $srcdir/$ac_unique_file; then
550 srcdir=..
551 fi
552 else
553 ac_srcdir_defaulted=no
554 fi
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
559 else
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
562 fi
563 fi
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
578 ac_env_CC_value=$CC
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597
598 #
599 # Report the --help message.
600 #
601 if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
604 cat <<EOF
605 \`configure' configures libnbcompat noversion to adapt to many kinds of systems.
606
607 Usage: $0 [OPTION]... [VAR=VALUE]...
608
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE. See below for descriptions of some of the useful variables.
611
612 Defaults for the options are specified in brackets.
613
614 Configuration:
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
624
625 EOF
626
627 cat <<EOF
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
630 [$ac_default_prefix]
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 [PREFIX]
633
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
638
639 For better control, use the options below.
640
641 Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
654 EOF
655
656 cat <<\EOF
657 EOF
658 fi
659
660 if test -n "$ac_init_help"; then
661 case $ac_init_help in
662 short | recursive ) echo "Configuration of libnbcompat noversion:";;
663 esac
664 cat <<\EOF
665
666 Some influential environment variables:
667 CC C compiler command
668 CFLAGS C compiler flags
669 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
670 nonstandard directory <lib dir>
671 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
672 headers in a nonstandard directory <include dir>
673 CPP C preprocessor
674
675 Use these variables to override the choices made by `configure' or to help
676 it to find libraries and programs with nonstandard names/locations.
677
678 Report bugs to <lib-bug-people (at] netbsd.org>.
679 EOF
680 fi
681
682 if test "$ac_init_help" = "recursive"; then
683 # If there are subdirs, report their specific --help.
684 ac_popdir=`pwd`
685 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
686 cd $ac_subdir
687 # A "../" for each directory in /$ac_subdir.
688 ac_dots=`echo $ac_subdir |
689 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
690
691 case $srcdir in
692 .) # No --srcdir option. We are building in place.
693 ac_sub_srcdir=$srcdir ;;
694 [\\/]* | ?:[\\/]* ) # Absolute path.
695 ac_sub_srcdir=$srcdir/$ac_subdir ;;
696 *) # Relative path.
697 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
698 esac
699
700 # Check for guested configure; otherwise get Cygnus style configure.
701 if test -f $ac_sub_srcdir/configure.gnu; then
702 echo
703 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
704 elif test -f $ac_sub_srcdir/configure; then
705 echo
706 $SHELL $ac_sub_srcdir/configure --help=recursive
707 elif test -f $ac_sub_srcdir/configure.ac ||
708 test -f $ac_sub_srcdir/configure.in; then
709 echo
710 $ac_configure --help
711 else
712 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
713 fi
714 cd $ac_popdir
715 done
716 fi
717
718 test -n "$ac_init_help" && exit 0
719 if $ac_init_version; then
720 cat <<\EOF
721 libnbcompat configure noversion
722 generated by GNU Autoconf 2.52
723
724 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
725 Free Software Foundation, Inc.
726 This configure script is free software; the Free Software Foundation
727 gives unlimited permission to copy, distribute and modify it.
728 EOF
729 exit 0
730 fi
731 exec 5>config.log
732 cat >&5 <<EOF
733 This file contains any messages produced by compilers while
734 running configure, to aid debugging if configure makes a mistake.
735
736 It was created by libnbcompat $as_me noversion, which was
737 generated by GNU Autoconf 2.52. Invocation command line was
738
739 $ $0 $@
740
741 EOF
742 {
743 cat <<_ASUNAME
744 ## ---------- ##
745 ## Platform. ##
746 ## ---------- ##
747
748 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
749 uname -m = `(uname -m) 2>/dev/null || echo unknown`
750 uname -r = `(uname -r) 2>/dev/null || echo unknown`
751 uname -s = `(uname -s) 2>/dev/null || echo unknown`
752 uname -v = `(uname -v) 2>/dev/null || echo unknown`
753
754 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
755 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
756
757 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
758 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
759 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
760 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
761 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
762 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
763 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
764
765 PATH = $PATH
766
767 _ASUNAME
768 } >&5
769
770 cat >&5 <<EOF
771 ## ------------ ##
772 ## Core tests. ##
773 ## ------------ ##
774
775 EOF
776
777 # Keep a trace of the command line.
778 # Strip out --no-create and --no-recursion so they do not pile up.
779 # Also quote any args containing shell meta-characters.
780 ac_configure_args=
781 ac_sep=
782 for ac_arg
783 do
784 case $ac_arg in
785 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
786 | --no-cr | --no-c) ;;
787 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
788 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
789 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
790 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
791 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
792 ac_sep=" " ;;
793 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
794 ac_sep=" " ;;
795 esac
796 # Get rid of the leading space.
797 done
798
799 # When interrupted or exit'd, cleanup temporary files, and complete
800 # config.log. We remove comments because anyway the quotes in there
801 # would cause problems or look ugly.
802 trap 'exit_status=$?
803 # Save into config.log some information that might help in debugging.
804 echo >&5
805 echo "## ----------------- ##" >&5
806 echo "## Cache variables. ##" >&5
807 echo "## ----------------- ##" >&5
808 echo >&5
809 # The following way of writing the cache mishandles newlines in values,
810 {
811 (set) 2>&1 |
812 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
813 *ac_space=\ *)
814 sed -n \
815 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
817 ;;
818 *)
819 sed -n \
820 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
821 ;;
822 esac;
823 } >&5
824 sed "/^$/d" confdefs.h >conftest.log
825 if test -s conftest.log; then
826 echo >&5
827 echo "## ------------ ##" >&5
828 echo "## confdefs.h. ##" >&5
829 echo "## ------------ ##" >&5
830 echo >&5
831 cat conftest.log >&5
832 fi
833 (echo; echo) >&5
834 test "$ac_signal" != 0 &&
835 echo "$as_me: caught signal $ac_signal" >&5
836 echo "$as_me: exit $exit_status" >&5
837 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
838 exit $exit_status
839 ' 0
840 for ac_signal in 1 2 13 15; do
841 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
842 done
843 ac_signal=0
844
845 # confdefs.h avoids OS command line length limits that DEFS can exceed.
846 rm -rf conftest* confdefs.h
847 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
848 echo >confdefs.h
849
850 # Let the site file select an alternate cache file if it wants to.
851 # Prefer explicitly selected file to automatically selected ones.
852 if test -z "$CONFIG_SITE"; then
853 if test "x$prefix" != xNONE; then
854 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
855 else
856 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
857 fi
858 fi
859 for ac_site_file in $CONFIG_SITE; do
860 if test -r "$ac_site_file"; then
861 { echo "$as_me:861: loading site script $ac_site_file" >&5
862 echo "$as_me: loading site script $ac_site_file" >&6;}
863 cat "$ac_site_file" >&5
864 . "$ac_site_file"
865 fi
866 done
867
868 if test -r "$cache_file"; then
869 # Some versions of bash will fail to source /dev/null (special
870 # files actually), so we avoid doing that.
871 if test -f "$cache_file"; then
872 { echo "$as_me:872: loading cache $cache_file" >&5
873 echo "$as_me: loading cache $cache_file" >&6;}
874 case $cache_file in
875 [\\/]* | ?:[\\/]* ) . $cache_file;;
876 *) . ./$cache_file;;
877 esac
878 fi
879 else
880 { echo "$as_me:880: creating cache $cache_file" >&5
881 echo "$as_me: creating cache $cache_file" >&6;}
882 >$cache_file
883 fi
884
885 # Check that the precious variables saved in the cache have kept the same
886 # value.
887 ac_cache_corrupted=false
888 for ac_var in `(set) 2>&1 |
889 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
890 eval ac_old_set=\$ac_cv_env_${ac_var}_set
891 eval ac_new_set=\$ac_env_${ac_var}_set
892 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
893 eval ac_new_val="\$ac_env_${ac_var}_value"
894 case $ac_old_set,$ac_new_set in
895 set,)
896 { echo "$as_me:896: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
897 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
898 ac_cache_corrupted=: ;;
899 ,set)
900 { echo "$as_me:900: error: \`$ac_var' was not set in the previous run" >&5
901 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
902 ac_cache_corrupted=: ;;
903 ,);;
904 *)
905 if test "x$ac_old_val" != "x$ac_new_val"; then
906 { echo "$as_me:906: error: \`$ac_var' has changed since the previous run:" >&5
907 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
908 { echo "$as_me:908: former value: $ac_old_val" >&5
909 echo "$as_me: former value: $ac_old_val" >&2;}
910 { echo "$as_me:910: current value: $ac_new_val" >&5
911 echo "$as_me: current value: $ac_new_val" >&2;}
912 ac_cache_corrupted=:
913 fi;;
914 esac
915 # Pass precious variables to config.status. It doesn't matter if
916 # we pass some twice (in addition to the command line arguments).
917 if test "$ac_new_set" = set; then
918 case $ac_new_val in
919 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
920 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
921 ac_configure_args="$ac_configure_args '$ac_arg'"
922 ;;
923 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
924 ;;
925 esac
926 fi
927 done
928 if $ac_cache_corrupted; then
929 { echo "$as_me:929: error: changes in the environment can compromise the build" >&5
930 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
931 { { echo "$as_me:931: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
932 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
933 { (exit 1); exit 1; }; }
934 fi
935
936 ac_ext=c
937 ac_cpp='$CPP $CPPFLAGS'
938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
941
942 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
943 *c*,-n*) ECHO_N= ECHO_C='
944 ' ECHO_T=' ' ;;
945 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
946 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
947 esac
948 echo "#! $SHELL" >conftest.sh
949 echo "exit 0" >>conftest.sh
950 chmod +x conftest.sh
951 if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5
952 (PATH=".;."; conftest.sh) 2>&5
953 ac_status=$?
954 echo "$as_me:954: \$? = $ac_status" >&5
955 (exit $ac_status); }; then
956 ac_path_separator=';'
957 else
958 ac_path_separator=:
959 fi
960 PATH_SEPARATOR="$ac_path_separator"
961 rm -f conftest.sh
962
963 ac_config_headers="$ac_config_headers config.h"
964
965 ac_config_files="$ac_config_files defs.mk"
966
967 ac_ext=c
968 ac_cpp='$CPP $CPPFLAGS'
969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
972 if test -n "$ac_tool_prefix"; then
973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
974 set dummy ${ac_tool_prefix}gcc; ac_word=$2
975 echo "$as_me:975: checking for $ac_word" >&5
976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
977 if test "${ac_cv_prog_CC+set}" = set; then
978 echo $ECHO_N "(cached) $ECHO_C" >&6
979 else
980 if test -n "$CC"; then
981 ac_cv_prog_CC="$CC" # Let the user override the test.
982 else
983 ac_save_IFS=$IFS; IFS=$ac_path_separator
984 ac_dummy="$PATH"
985 for ac_dir in $ac_dummy; do
986 IFS=$ac_save_IFS
987 test -z "$ac_dir" && ac_dir=.
988 $as_executable_p "$ac_dir/$ac_word" || continue
989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
990 echo "$as_me:990: found $ac_dir/$ac_word" >&5
991 break
992 done
993
994 fi
995 fi
996 CC=$ac_cv_prog_CC
997 if test -n "$CC"; then
998 echo "$as_me:998: result: $CC" >&5
999 echo "${ECHO_T}$CC" >&6
1000 else
1001 echo "$as_me:1001: result: no" >&5
1002 echo "${ECHO_T}no" >&6
1003 fi
1004
1005 fi
1006 if test -z "$ac_cv_prog_CC"; then
1007 ac_ct_CC=$CC
1008 # Extract the first word of "gcc", so it can be a program name with args.
1009 set dummy gcc; ac_word=$2
1010 echo "$as_me:1010: checking for $ac_word" >&5
1011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1013 echo $ECHO_N "(cached) $ECHO_C" >&6
1014 else
1015 if test -n "$ac_ct_CC"; then
1016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1017 else
1018 ac_save_IFS=$IFS; IFS=$ac_path_separator
1019 ac_dummy="$PATH"
1020 for ac_dir in $ac_dummy; do
1021 IFS=$ac_save_IFS
1022 test -z "$ac_dir" && ac_dir=.
1023 $as_executable_p "$ac_dir/$ac_word" || continue
1024 ac_cv_prog_ac_ct_CC="gcc"
1025 echo "$as_me:1025: found $ac_dir/$ac_word" >&5
1026 break
1027 done
1028
1029 fi
1030 fi
1031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1032 if test -n "$ac_ct_CC"; then
1033 echo "$as_me:1033: result: $ac_ct_CC" >&5
1034 echo "${ECHO_T}$ac_ct_CC" >&6
1035 else
1036 echo "$as_me:1036: result: no" >&5
1037 echo "${ECHO_T}no" >&6
1038 fi
1039
1040 CC=$ac_ct_CC
1041 else
1042 CC="$ac_cv_prog_CC"
1043 fi
1044
1045 if test -z "$CC"; then
1046 if test -n "$ac_tool_prefix"; then
1047 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1048 set dummy ${ac_tool_prefix}cc; ac_word=$2
1049 echo "$as_me:1049: checking for $ac_word" >&5
1050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1051 if test "${ac_cv_prog_CC+set}" = set; then
1052 echo $ECHO_N "(cached) $ECHO_C" >&6
1053 else
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC="$CC" # Let the user override the test.
1056 else
1057 ac_save_IFS=$IFS; IFS=$ac_path_separator
1058 ac_dummy="$PATH"
1059 for ac_dir in $ac_dummy; do
1060 IFS=$ac_save_IFS
1061 test -z "$ac_dir" && ac_dir=.
1062 $as_executable_p "$ac_dir/$ac_word" || continue
1063 ac_cv_prog_CC="${ac_tool_prefix}cc"
1064 echo "$as_me:1064: found $ac_dir/$ac_word" >&5
1065 break
1066 done
1067
1068 fi
1069 fi
1070 CC=$ac_cv_prog_CC
1071 if test -n "$CC"; then
1072 echo "$as_me:1072: result: $CC" >&5
1073 echo "${ECHO_T}$CC" >&6
1074 else
1075 echo "$as_me:1075: result: no" >&5
1076 echo "${ECHO_T}no" >&6
1077 fi
1078
1079 fi
1080 if test -z "$ac_cv_prog_CC"; then
1081 ac_ct_CC=$CC
1082 # Extract the first word of "cc", so it can be a program name with args.
1083 set dummy cc; ac_word=$2
1084 echo "$as_me:1084: checking for $ac_word" >&5
1085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1087 echo $ECHO_N "(cached) $ECHO_C" >&6
1088 else
1089 if test -n "$ac_ct_CC"; then
1090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1091 else
1092 ac_save_IFS=$IFS; IFS=$ac_path_separator
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 IFS=$ac_save_IFS
1096 test -z "$ac_dir" && ac_dir=.
1097 $as_executable_p "$ac_dir/$ac_word" || continue
1098 ac_cv_prog_ac_ct_CC="cc"
1099 echo "$as_me:1099: found $ac_dir/$ac_word" >&5
1100 break
1101 done
1102
1103 fi
1104 fi
1105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1106 if test -n "$ac_ct_CC"; then
1107 echo "$as_me:1107: result: $ac_ct_CC" >&5
1108 echo "${ECHO_T}$ac_ct_CC" >&6
1109 else
1110 echo "$as_me:1110: result: no" >&5
1111 echo "${ECHO_T}no" >&6
1112 fi
1113
1114 CC=$ac_ct_CC
1115 else
1116 CC="$ac_cv_prog_CC"
1117 fi
1118
1119 fi
1120 if test -z "$CC"; then
1121 # Extract the first word of "cc", so it can be a program name with args.
1122 set dummy cc; ac_word=$2
1123 echo "$as_me:1123: checking for $ac_word" >&5
1124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1125 if test "${ac_cv_prog_CC+set}" = set; then
1126 echo $ECHO_N "(cached) $ECHO_C" >&6
1127 else
1128 if test -n "$CC"; then
1129 ac_cv_prog_CC="$CC" # Let the user override the test.
1130 else
1131 ac_prog_rejected=no
1132 ac_save_IFS=$IFS; IFS=$ac_path_separator
1133 ac_dummy="$PATH"
1134 for ac_dir in $ac_dummy; do
1135 IFS=$ac_save_IFS
1136 test -z "$ac_dir" && ac_dir=.
1137 $as_executable_p "$ac_dir/$ac_word" || continue
1138 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1139 ac_prog_rejected=yes
1140 continue
1141 fi
1142 ac_cv_prog_CC="cc"
1143 echo "$as_me:1143: found $ac_dir/$ac_word" >&5
1144 break
1145 done
1146
1147 if test $ac_prog_rejected = yes; then
1148 # We found a bogon in the path, so make sure we never use it.
1149 set dummy $ac_cv_prog_CC
1150 shift
1151 if test $# != 0; then
1152 # We chose a different compiler from the bogus one.
1153 # However, it has the same basename, so the bogon will be chosen
1154 # first if we set CC to just the basename; use the full file name.
1155 shift
1156 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1157 shift
1158 ac_cv_prog_CC="$@"
1159 fi
1160 fi
1161 fi
1162 fi
1163 CC=$ac_cv_prog_CC
1164 if test -n "$CC"; then
1165 echo "$as_me:1165: result: $CC" >&5
1166 echo "${ECHO_T}$CC" >&6
1167 else
1168 echo "$as_me:1168: result: no" >&5
1169 echo "${ECHO_T}no" >&6
1170 fi
1171
1172 fi
1173 if test -z "$CC"; then
1174 if test -n "$ac_tool_prefix"; then
1175 for ac_prog in cl
1176 do
1177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1179 echo "$as_me:1179: checking for $ac_word" >&5
1180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1181 if test "${ac_cv_prog_CC+set}" = set; then
1182 echo $ECHO_N "(cached) $ECHO_C" >&6
1183 else
1184 if test -n "$CC"; then
1185 ac_cv_prog_CC="$CC" # Let the user override the test.
1186 else
1187 ac_save_IFS=$IFS; IFS=$ac_path_separator
1188 ac_dummy="$PATH"
1189 for ac_dir in $ac_dummy; do
1190 IFS=$ac_save_IFS
1191 test -z "$ac_dir" && ac_dir=.
1192 $as_executable_p "$ac_dir/$ac_word" || continue
1193 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1194 echo "$as_me:1194: found $ac_dir/$ac_word" >&5
1195 break
1196 done
1197
1198 fi
1199 fi
1200 CC=$ac_cv_prog_CC
1201 if test -n "$CC"; then
1202 echo "$as_me:1202: result: $CC" >&5
1203 echo "${ECHO_T}$CC" >&6
1204 else
1205 echo "$as_me:1205: result: no" >&5
1206 echo "${ECHO_T}no" >&6
1207 fi
1208
1209 test -n "$CC" && break
1210 done
1211 fi
1212 if test -z "$CC"; then
1213 ac_ct_CC=$CC
1214 for ac_prog in cl
1215 do
1216 # Extract the first word of "$ac_prog", so it can be a program name with args.
1217 set dummy $ac_prog; ac_word=$2
1218 echo "$as_me:1218: checking for $ac_word" >&5
1219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1221 echo $ECHO_N "(cached) $ECHO_C" >&6
1222 else
1223 if test -n "$ac_ct_CC"; then
1224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1225 else
1226 ac_save_IFS=$IFS; IFS=$ac_path_separator
1227 ac_dummy="$PATH"
1228 for ac_dir in $ac_dummy; do
1229 IFS=$ac_save_IFS
1230 test -z "$ac_dir" && ac_dir=.
1231 $as_executable_p "$ac_dir/$ac_word" || continue
1232 ac_cv_prog_ac_ct_CC="$ac_prog"
1233 echo "$as_me:1233: found $ac_dir/$ac_word" >&5
1234 break
1235 done
1236
1237 fi
1238 fi
1239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1240 if test -n "$ac_ct_CC"; then
1241 echo "$as_me:1241: result: $ac_ct_CC" >&5
1242 echo "${ECHO_T}$ac_ct_CC" >&6
1243 else
1244 echo "$as_me:1244: result: no" >&5
1245 echo "${ECHO_T}no" >&6
1246 fi
1247
1248 test -n "$ac_ct_CC" && break
1249 done
1250
1251 CC=$ac_ct_CC
1252 fi
1253
1254 fi
1255
1256 test -z "$CC" && { { echo "$as_me:1256: error: no acceptable cc found in \$PATH" >&5
1257 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1258 { (exit 1); exit 1; }; }
1259
1260 # Provide some information about the compiler.
1261 echo "$as_me:1261:" \
1262 "checking for C compiler version" >&5
1263 ac_compiler=`set X $ac_compile; echo $2`
1264 { (eval echo "$as_me:1264: \"$ac_compiler --version </dev/null >&5\"") >&5
1265 (eval $ac_compiler --version </dev/null >&5) 2>&5
1266 ac_status=$?
1267 echo "$as_me:1267: \$? = $ac_status" >&5
1268 (exit $ac_status); }
1269 { (eval echo "$as_me:1269: \"$ac_compiler -v </dev/null >&5\"") >&5
1270 (eval $ac_compiler -v </dev/null >&5) 2>&5
1271 ac_status=$?
1272 echo "$as_me:1272: \$? = $ac_status" >&5
1273 (exit $ac_status); }
1274 { (eval echo "$as_me:1274: \"$ac_compiler -V </dev/null >&5\"") >&5
1275 (eval $ac_compiler -V </dev/null >&5) 2>&5
1276 ac_status=$?
1277 echo "$as_me:1277: \$? = $ac_status" >&5
1278 (exit $ac_status); }
1279
1280 cat >conftest.$ac_ext <<_ACEOF
1281 #line 1281 "configure"
1282 #include "confdefs.h"
1283
1284 int
1285 main ()
1286 {
1287
1288 ;
1289 return 0;
1290 }
1291 _ACEOF
1292 ac_clean_files_save=$ac_clean_files
1293 ac_clean_files="$ac_clean_files a.out a.exe"
1294 # Try to create an executable without -o first, disregard a.out.
1295 # It will help us diagnose broken compilers, and finding out an intuition
1296 # of exeext.
1297 echo "$as_me:1297: checking for C compiler default output" >&5
1298 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1299 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1300 if { (eval echo "$as_me:1300: \"$ac_link_default\"") >&5
1301 (eval $ac_link_default) 2>&5
1302 ac_status=$?
1303 echo "$as_me:1303: \$? = $ac_status" >&5
1304 (exit $ac_status); }; then
1305 # Find the output, starting from the most likely. This scheme is
1306 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1307 # resort.
1308 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1309 ls a.out conftest 2>/dev/null;
1310 ls a.* conftest.* 2>/dev/null`; do
1311 case $ac_file in
1312 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1313 a.out ) # We found the default executable, but exeext='' is most
1314 # certainly right.
1315 break;;
1316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1317 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1318 export ac_cv_exeext
1319 break;;
1320 * ) break;;
1321 esac
1322 done
1323 else
1324 echo "$as_me: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 { { echo "$as_me:1326: error: C compiler cannot create executables" >&5
1327 echo "$as_me: error: C compiler cannot create executables" >&2;}
1328 { (exit 77); exit 77; }; }
1329 fi
1330
1331 ac_exeext=$ac_cv_exeext
1332 echo "$as_me:1332: result: $ac_file" >&5
1333 echo "${ECHO_T}$ac_file" >&6
1334
1335 # Check the compiler produces executables we can run. If not, either
1336 # the compiler is broken, or we cross compile.
1337 echo "$as_me:1337: checking whether the C compiler works" >&5
1338 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1339 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1340 # If not cross compiling, check that we can run a simple program.
1341 if test "$cross_compiling" != yes; then
1342 if { ac_try='./$ac_file'
1343 { (eval echo "$as_me:1343: \"$ac_try\"") >&5
1344 (eval $ac_try) 2>&5
1345 ac_status=$?
1346 echo "$as_me:1346: \$? = $ac_status" >&5
1347 (exit $ac_status); }; }; then
1348 cross_compiling=no
1349 else
1350 if test "$cross_compiling" = maybe; then
1351 cross_compiling=yes
1352 else
1353 { { echo "$as_me:1353: error: cannot run C compiled programs.
1354 If you meant to cross compile, use \`--host'." >&5
1355 echo "$as_me: error: cannot run C compiled programs.
1356 If you meant to cross compile, use \`--host'." >&2;}
1357 { (exit 1); exit 1; }; }
1358 fi
1359 fi
1360 fi
1361 echo "$as_me:1361: result: yes" >&5
1362 echo "${ECHO_T}yes" >&6
1363
1364 rm -f a.out a.exe conftest$ac_cv_exeext
1365 ac_clean_files=$ac_clean_files_save
1366 # Check the compiler produces executables we can run. If not, either
1367 # the compiler is broken, or we cross compile.
1368 echo "$as_me:1368: checking whether we are cross compiling" >&5
1369 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1370 echo "$as_me:1370: result: $cross_compiling" >&5
1371 echo "${ECHO_T}$cross_compiling" >&6
1372
1373 echo "$as_me:1373: checking for executable suffix" >&5
1374 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1375 if { (eval echo "$as_me:1375: \"$ac_link\"") >&5
1376 (eval $ac_link) 2>&5
1377 ac_status=$?
1378 echo "$as_me:1378: \$? = $ac_status" >&5
1379 (exit $ac_status); }; then
1380 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1381 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1382 # work properly (i.e., refer to `conftest.exe'), while it won't with
1383 # `rm'.
1384 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1385 case $ac_file in
1386 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1387 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1388 export ac_cv_exeext
1389 break;;
1390 * ) break;;
1391 esac
1392 done
1393 else
1394 { { echo "$as_me:1394: error: cannot compute EXEEXT: cannot compile and link" >&5
1395 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1396 { (exit 1); exit 1; }; }
1397 fi
1398
1399 rm -f conftest$ac_cv_exeext
1400 echo "$as_me:1400: result: $ac_cv_exeext" >&5
1401 echo "${ECHO_T}$ac_cv_exeext" >&6
1402
1403 rm -f conftest.$ac_ext
1404 EXEEXT=$ac_cv_exeext
1405 ac_exeext=$EXEEXT
1406 echo "$as_me:1406: checking for object suffix" >&5
1407 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1408 if test "${ac_cv_objext+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 cat >conftest.$ac_ext <<_ACEOF
1412 #line 1412 "configure"
1413 #include "confdefs.h"
1414
1415 int
1416 main ()
1417 {
1418
1419 ;
1420 return 0;
1421 }
1422 _ACEOF
1423 rm -f conftest.o conftest.obj
1424 if { (eval echo "$as_me:1424: \"$ac_compile\"") >&5
1425 (eval $ac_compile) 2>&5
1426 ac_status=$?
1427 echo "$as_me:1427: \$? = $ac_status" >&5
1428 (exit $ac_status); }; then
1429 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1430 case $ac_file in
1431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1433 break;;
1434 esac
1435 done
1436 else
1437 echo "$as_me: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1439 { { echo "$as_me:1439: error: cannot compute OBJEXT: cannot compile" >&5
1440 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1441 { (exit 1); exit 1; }; }
1442 fi
1443
1444 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1445 fi
1446 echo "$as_me:1446: result: $ac_cv_objext" >&5
1447 echo "${ECHO_T}$ac_cv_objext" >&6
1448 OBJEXT=$ac_cv_objext
1449 ac_objext=$OBJEXT
1450 echo "$as_me:1450: checking whether we are using the GNU C compiler" >&5
1451 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1452 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455 cat >conftest.$ac_ext <<_ACEOF
1456 #line 1456 "configure"
1457 #include "confdefs.h"
1458
1459 int
1460 main ()
1461 {
1462 #ifndef __GNUC__
1463 choke me
1464 #endif
1465
1466 ;
1467 return 0;
1468 }
1469 _ACEOF
1470 rm -f conftest.$ac_objext
1471 if { (eval echo "$as_me:1471: \"$ac_compile\"") >&5
1472 (eval $ac_compile) 2>&5
1473 ac_status=$?
1474 echo "$as_me:1474: \$? = $ac_status" >&5
1475 (exit $ac_status); } &&
1476 { ac_try='test -s conftest.$ac_objext'
1477 { (eval echo "$as_me:1477: \"$ac_try\"") >&5
1478 (eval $ac_try) 2>&5
1479 ac_status=$?
1480 echo "$as_me:1480: \$? = $ac_status" >&5
1481 (exit $ac_status); }; }; then
1482 ac_compiler_gnu=yes
1483 else
1484 echo "$as_me: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1486 ac_compiler_gnu=no
1487 fi
1488 rm -f conftest.$ac_objext conftest.$ac_ext
1489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1490
1491 fi
1492 echo "$as_me:1492: result: $ac_cv_c_compiler_gnu" >&5
1493 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1494 GCC=`test $ac_compiler_gnu = yes && echo yes`
1495 ac_test_CFLAGS=${CFLAGS+set}
1496 ac_save_CFLAGS=$CFLAGS
1497 CFLAGS="-g"
1498 echo "$as_me:1498: checking whether $CC accepts -g" >&5
1499 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1500 if test "${ac_cv_prog_cc_g+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503 cat >conftest.$ac_ext <<_ACEOF
1504 #line 1504 "configure"
1505 #include "confdefs.h"
1506
1507 int
1508 main ()
1509 {
1510
1511 ;
1512 return 0;
1513 }
1514 _ACEOF
1515 rm -f conftest.$ac_objext
1516 if { (eval echo "$as_me:1516: \"$ac_compile\"") >&5
1517 (eval $ac_compile) 2>&5
1518 ac_status=$?
1519 echo "$as_me:1519: \$? = $ac_status" >&5
1520 (exit $ac_status); } &&
1521 { ac_try='test -s conftest.$ac_objext'
1522 { (eval echo "$as_me:1522: \"$ac_try\"") >&5
1523 (eval $ac_try) 2>&5
1524 ac_status=$?
1525 echo "$as_me:1525: \$? = $ac_status" >&5
1526 (exit $ac_status); }; }; then
1527 ac_cv_prog_cc_g=yes
1528 else
1529 echo "$as_me: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1531 ac_cv_prog_cc_g=no
1532 fi
1533 rm -f conftest.$ac_objext conftest.$ac_ext
1534 fi
1535 echo "$as_me:1535: result: $ac_cv_prog_cc_g" >&5
1536 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1537 if test "$ac_test_CFLAGS" = set; then
1538 CFLAGS=$ac_save_CFLAGS
1539 elif test $ac_cv_prog_cc_g = yes; then
1540 if test "$GCC" = yes; then
1541 CFLAGS="-g -O2"
1542 else
1543 CFLAGS="-g"
1544 fi
1545 else
1546 if test "$GCC" = yes; then
1547 CFLAGS="-O2"
1548 else
1549 CFLAGS=
1550 fi
1551 fi
1552 # Some people use a C++ compiler to compile C. Since we use `exit',
1553 # in C++ we need to declare it. In case someone uses the same compiler
1554 # for both compiling C and C++ we need to have the C++ compiler decide
1555 # the declaration of exit, since it's the most demanding environment.
1556 cat >conftest.$ac_ext <<_ACEOF
1557 #ifndef __cplusplus
1558 choke me
1559 #endif
1560 _ACEOF
1561 rm -f conftest.$ac_objext
1562 if { (eval echo "$as_me:1562: \"$ac_compile\"") >&5
1563 (eval $ac_compile) 2>&5
1564 ac_status=$?
1565 echo "$as_me:1565: \$? = $ac_status" >&5
1566 (exit $ac_status); } &&
1567 { ac_try='test -s conftest.$ac_objext'
1568 { (eval echo "$as_me:1568: \"$ac_try\"") >&5
1569 (eval $ac_try) 2>&5
1570 ac_status=$?
1571 echo "$as_me:1571: \$? = $ac_status" >&5
1572 (exit $ac_status); }; }; then
1573 for ac_declaration in \
1574 ''\
1575 '#include <stdlib.h>' \
1576 'extern "C" void std::exit (int) throw (); using std::exit;' \
1577 'extern "C" void std::exit (int); using std::exit;' \
1578 'extern "C" void exit (int) throw ();' \
1579 'extern "C" void exit (int);' \
1580 'void exit (int);'
1581 do
1582 cat >conftest.$ac_ext <<_ACEOF
1583 #line 1583 "configure"
1584 #include "confdefs.h"
1585 #include <stdlib.h>
1586 $ac_declaration
1587 int
1588 main ()
1589 {
1590 exit (42);
1591 ;
1592 return 0;
1593 }
1594 _ACEOF
1595 rm -f conftest.$ac_objext
1596 if { (eval echo "$as_me:1596: \"$ac_compile\"") >&5
1597 (eval $ac_compile) 2>&5
1598 ac_status=$?
1599 echo "$as_me:1599: \$? = $ac_status" >&5
1600 (exit $ac_status); } &&
1601 { ac_try='test -s conftest.$ac_objext'
1602 { (eval echo "$as_me:1602: \"$ac_try\"") >&5
1603 (eval $ac_try) 2>&5
1604 ac_status=$?
1605 echo "$as_me:1605: \$? = $ac_status" >&5
1606 (exit $ac_status); }; }; then
1607 :
1608 else
1609 echo "$as_me: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1611 continue
1612 fi
1613 rm -f conftest.$ac_objext conftest.$ac_ext
1614 cat >conftest.$ac_ext <<_ACEOF
1615 #line 1615 "configure"
1616 #include "confdefs.h"
1617 $ac_declaration
1618 int
1619 main ()
1620 {
1621 exit (42);
1622 ;
1623 return 0;
1624 }
1625 _ACEOF
1626 rm -f conftest.$ac_objext
1627 if { (eval echo "$as_me:1627: \"$ac_compile\"") >&5
1628 (eval $ac_compile) 2>&5
1629 ac_status=$?
1630 echo "$as_me:1630: \$? = $ac_status" >&5
1631 (exit $ac_status); } &&
1632 { ac_try='test -s conftest.$ac_objext'
1633 { (eval echo "$as_me:1633: \"$ac_try\"") >&5
1634 (eval $ac_try) 2>&5
1635 ac_status=$?
1636 echo "$as_me:1636: \$? = $ac_status" >&5
1637 (exit $ac_status); }; }; then
1638 break
1639 else
1640 echo "$as_me: failed program was:" >&5
1641 cat conftest.$ac_ext >&5
1642 fi
1643 rm -f conftest.$ac_objext conftest.$ac_ext
1644 done
1645 rm -f conftest*
1646 if test -n "$ac_declaration"; then
1647 echo '#ifdef __cplusplus' >>confdefs.h
1648 echo $ac_declaration >>confdefs.h
1649 echo '#endif' >>confdefs.h
1650 fi
1651
1652 else
1653 echo "$as_me: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1655 fi
1656 rm -f conftest.$ac_objext conftest.$ac_ext
1657 ac_ext=c
1658 ac_cpp='$CPP $CPPFLAGS'
1659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662
1663 echo "$as_me:1663: checking whether byte ordering is bigendian" >&5
1664 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
1665 if test "${ac_cv_c_bigendian+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668 ac_cv_c_bigendian=unknown
1669 # See if sys/param.h defines the BYTE_ORDER macro.
1670 cat >conftest.$ac_ext <<_ACEOF
1671 #line 1671 "configure"
1672 #include "confdefs.h"
1673 #include <sys/types.h>
1674 #include <sys/param.h>
1675
1676 int
1677 main ()
1678 {
1679 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1680 bogus endian macros
1681 #endif
1682
1683 ;
1684 return 0;
1685 }
1686 _ACEOF
1687 rm -f conftest.$ac_objext
1688 if { (eval echo "$as_me:1688: \"$ac_compile\"") >&5
1689 (eval $ac_compile) 2>&5
1690 ac_status=$?
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); } &&
1693 { ac_try='test -s conftest.$ac_objext'
1694 { (eval echo "$as_me:1694: \"$ac_try\"") >&5
1695 (eval $ac_try) 2>&5
1696 ac_status=$?
1697 echo "$as_me:1697: \$? = $ac_status" >&5
1698 (exit $ac_status); }; }; then
1699 # It does; now see whether it defined to BIG_ENDIAN or not.
1700 cat >conftest.$ac_ext <<_ACEOF
1701 #line 1701 "configure"
1702 #include "confdefs.h"
1703 #include <sys/types.h>
1704 #include <sys/param.h>
1705
1706 int
1707 main ()
1708 {
1709 #if BYTE_ORDER != BIG_ENDIAN
1710 not big endian
1711 #endif
1712
1713 ;
1714 return 0;
1715 }
1716 _ACEOF
1717 rm -f conftest.$ac_objext
1718 if { (eval echo "$as_me:1718: \"$ac_compile\"") >&5
1719 (eval $ac_compile) 2>&5
1720 ac_status=$?
1721 echo "$as_me:1721: \$? = $ac_status" >&5
1722 (exit $ac_status); } &&
1723 { ac_try='test -s conftest.$ac_objext'
1724 { (eval echo "$as_me:1724: \"$ac_try\"") >&5
1725 (eval $ac_try) 2>&5
1726 ac_status=$?
1727 echo "$as_me:1727: \$? = $ac_status" >&5
1728 (exit $ac_status); }; }; then
1729 ac_cv_c_bigendian=yes
1730 else
1731 echo "$as_me: failed program was:" >&5
1732 cat conftest.$ac_ext >&5
1733 ac_cv_c_bigendian=no
1734 fi
1735 rm -f conftest.$ac_objext conftest.$ac_ext
1736 else
1737 echo "$as_me: failed program was:" >&5
1738 cat conftest.$ac_ext >&5
1739 fi
1740 rm -f conftest.$ac_objext conftest.$ac_ext
1741 if test $ac_cv_c_bigendian = unknown; then
1742 if test "$cross_compiling" = yes; then
1743 { { echo "$as_me:1743: error: cannot run test program while cross compiling" >&5
1744 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
1745 { (exit 1); exit 1; }; }
1746 else
1747 cat >conftest.$ac_ext <<_ACEOF
1748 #line 1748 "configure"
1749 #include "confdefs.h"
1750 int
1751 main ()
1752 {
1753 /* Are we little or big endian? From Harbison&Steele. */
1754 union
1755 {
1756 long l;
1757 char c[sizeof (long)];
1758 } u;
1759 u.l = 1;
1760 exit (u.c[sizeof (long) - 1] == 1);
1761 }
1762 _ACEOF
1763 rm -f conftest$ac_exeext
1764 if { (eval echo "$as_me:1764: \"$ac_link\"") >&5
1765 (eval $ac_link) 2>&5
1766 ac_status=$?
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1769 { (eval echo "$as_me:1769: \"$ac_try\"") >&5
1770 (eval $ac_try) 2>&5
1771 ac_status=$?
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); }; }; then
1774 ac_cv_c_bigendian=no
1775 else
1776 echo "$as_me: program exited with status $ac_status" >&5
1777 echo "$as_me: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1779 ac_cv_c_bigendian=yes
1780 fi
1781 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1782 fi
1783 fi
1784 fi
1785 echo "$as_me:1785: result: $ac_cv_c_bigendian" >&5
1786 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
1787 if test $ac_cv_c_bigendian = yes; then
1788
1789 cat >>confdefs.h <<\EOF
1790 #define WORDS_BIGENDIAN 1
1791 EOF
1792
1793 fi
1794
1795 ac_ext=c
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800 echo "$as_me:1800: checking how to run the C preprocessor" >&5
1801 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1802 # On Suns, sometimes $CPP names a directory.
1803 if test -n "$CPP" && test -d "$CPP"; then
1804 CPP=
1805 fi
1806 if test -z "$CPP"; then
1807 if test "${ac_cv_prog_CPP+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810 # Double quotes because CPP needs to be expanded
1811 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1812 do
1813 ac_preproc_ok=false
1814 for ac_c_preproc_warn_flag in '' yes
1815 do
1816 # Use a header file that comes with gcc, so configuring glibc
1817 # with a fresh cross-compiler works.
1818 # On the NeXT, cc -E runs the code through the compiler's parser,
1819 # not just through cpp. "Syntax error" is here to catch this case.
1820 cat >conftest.$ac_ext <<_ACEOF
1821 #line 1821 "configure"
1822 #include "confdefs.h"
1823 #include <assert.h>
1824 Syntax error
1825 _ACEOF
1826 if { (eval echo "$as_me:1826: \"$ac_cpp conftest.$ac_ext\"") >&5
1827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1828 ac_status=$?
1829 egrep -v '^ *\+' conftest.er1 >conftest.err
1830 rm -f conftest.er1
1831 cat conftest.err >&5
1832 echo "$as_me:1832: \$? = $ac_status" >&5
1833 (exit $ac_status); } >/dev/null; then
1834 if test -s conftest.err; then
1835 ac_cpp_err=$ac_c_preproc_warn_flag
1836 else
1837 ac_cpp_err=
1838 fi
1839 else
1840 ac_cpp_err=yes
1841 fi
1842 if test -z "$ac_cpp_err"; then
1843 :
1844 else
1845 echo "$as_me: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1847 # Broken: fails on valid input.
1848 continue
1849 fi
1850 rm -f conftest.err conftest.$ac_ext
1851
1852 # OK, works on sane cases. Now check whether non-existent headers
1853 # can be detected and how.
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line 1855 "configure"
1856 #include "confdefs.h"
1857 #include <ac_nonexistent.h>
1858 _ACEOF
1859 if { (eval echo "$as_me:1859: \"$ac_cpp conftest.$ac_ext\"") >&5
1860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1861 ac_status=$?
1862 egrep -v '^ *\+' conftest.er1 >conftest.err
1863 rm -f conftest.er1
1864 cat conftest.err >&5
1865 echo "$as_me:1865: \$? = $ac_status" >&5
1866 (exit $ac_status); } >/dev/null; then
1867 if test -s conftest.err; then
1868 ac_cpp_err=$ac_c_preproc_warn_flag
1869 else
1870 ac_cpp_err=
1871 fi
1872 else
1873 ac_cpp_err=yes
1874 fi
1875 if test -z "$ac_cpp_err"; then
1876 # Broken: success on invalid input.
1877 continue
1878 else
1879 echo "$as_me: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1881 # Passes both tests.
1882 ac_preproc_ok=:
1883 break
1884 fi
1885 rm -f conftest.err conftest.$ac_ext
1886
1887 done
1888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1889 rm -f conftest.err conftest.$ac_ext
1890 if $ac_preproc_ok; then
1891 break
1892 fi
1893
1894 done
1895 ac_cv_prog_CPP=$CPP
1896
1897 fi
1898 CPP=$ac_cv_prog_CPP
1899 else
1900 ac_cv_prog_CPP=$CPP
1901 fi
1902 echo "$as_me:1902: result: $CPP" >&5
1903 echo "${ECHO_T}$CPP" >&6
1904 ac_preproc_ok=false
1905 for ac_c_preproc_warn_flag in '' yes
1906 do
1907 # Use a header file that comes with gcc, so configuring glibc
1908 # with a fresh cross-compiler works.
1909 # On the NeXT, cc -E runs the code through the compiler's parser,
1910 # not just through cpp. "Syntax error" is here to catch this case.
1911 cat >conftest.$ac_ext <<_ACEOF
1912 #line 1912 "configure"
1913 #include "confdefs.h"
1914 #include <assert.h>
1915 Syntax error
1916 _ACEOF
1917 if { (eval echo "$as_me:1917: \"$ac_cpp conftest.$ac_ext\"") >&5
1918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1919 ac_status=$?
1920 egrep -v '^ *\+' conftest.er1 >conftest.err
1921 rm -f conftest.er1
1922 cat conftest.err >&5
1923 echo "$as_me:1923: \$? = $ac_status" >&5
1924 (exit $ac_status); } >/dev/null; then
1925 if test -s conftest.err; then
1926 ac_cpp_err=$ac_c_preproc_warn_flag
1927 else
1928 ac_cpp_err=
1929 fi
1930 else
1931 ac_cpp_err=yes
1932 fi
1933 if test -z "$ac_cpp_err"; then
1934 :
1935 else
1936 echo "$as_me: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1938 # Broken: fails on valid input.
1939 continue
1940 fi
1941 rm -f conftest.err conftest.$ac_ext
1942
1943 # OK, works on sane cases. Now check whether non-existent headers
1944 # can be detected and how.
1945 cat >conftest.$ac_ext <<_ACEOF
1946 #line 1946 "configure"
1947 #include "confdefs.h"
1948 #include <ac_nonexistent.h>
1949 _ACEOF
1950 if { (eval echo "$as_me:1950: \"$ac_cpp conftest.$ac_ext\"") >&5
1951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1952 ac_status=$?
1953 egrep -v '^ *\+' conftest.er1 >conftest.err
1954 rm -f conftest.er1
1955 cat conftest.err >&5
1956 echo "$as_me:1956: \$? = $ac_status" >&5
1957 (exit $ac_status); } >/dev/null; then
1958 if test -s conftest.err; then
1959 ac_cpp_err=$ac_c_preproc_warn_flag
1960 else
1961 ac_cpp_err=
1962 fi
1963 else
1964 ac_cpp_err=yes
1965 fi
1966 if test -z "$ac_cpp_err"; then
1967 # Broken: success on invalid input.
1968 continue
1969 else
1970 echo "$as_me: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1972 # Passes both tests.
1973 ac_preproc_ok=:
1974 break
1975 fi
1976 rm -f conftest.err conftest.$ac_ext
1977
1978 done
1979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1980 rm -f conftest.err conftest.$ac_ext
1981 if $ac_preproc_ok; then
1982 :
1983 else
1984 { { echo "$as_me:1984: error: C preprocessor \"$CPP\" fails sanity check" >&5
1985 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1986 { (exit 1); exit 1; }; }
1987 fi
1988
1989 ac_ext=c
1990 ac_cpp='$CPP $CPPFLAGS'
1991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994
1995 echo "$as_me:1995: checking for ANSI C header files" >&5
1996 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1997 if test "${ac_cv_header_stdc+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000 cat >conftest.$ac_ext <<_ACEOF
2001 #line 2001 "configure"
2002 #include "confdefs.h"
2003 #include <stdlib.h>
2004 #include <stdarg.h>
2005 #include <string.h>
2006 #include <float.h>
2007
2008 _ACEOF
2009 if { (eval echo "$as_me:2009: \"$ac_cpp conftest.$ac_ext\"") >&5
2010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2011 ac_status=$?
2012 egrep -v '^ *\+' conftest.er1 >conftest.err
2013 rm -f conftest.er1
2014 cat conftest.err >&5
2015 echo "$as_me:2015: \$? = $ac_status" >&5
2016 (exit $ac_status); } >/dev/null; then
2017 if test -s conftest.err; then
2018 ac_cpp_err=$ac_c_preproc_warn_flag
2019 else
2020 ac_cpp_err=
2021 fi
2022 else
2023 ac_cpp_err=yes
2024 fi
2025 if test -z "$ac_cpp_err"; then
2026 ac_cv_header_stdc=yes
2027 else
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2030 ac_cv_header_stdc=no
2031 fi
2032 rm -f conftest.err conftest.$ac_ext
2033
2034 if test $ac_cv_header_stdc = yes; then
2035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2036 cat >conftest.$ac_ext <<_ACEOF
2037 #line 2037 "configure"
2038 #include "confdefs.h"
2039 #include <string.h>
2040
2041 _ACEOF
2042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2043 egrep "memchr" >/dev/null 2>&1; then
2044 :
2045 else
2046 ac_cv_header_stdc=no
2047 fi
2048 rm -f conftest*
2049
2050 fi
2051
2052 if test $ac_cv_header_stdc = yes; then
2053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2054 cat >conftest.$ac_ext <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2057 #include <stdlib.h>
2058
2059 _ACEOF
2060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2061 egrep "free" >/dev/null 2>&1; then
2062 :
2063 else
2064 ac_cv_header_stdc=no
2065 fi
2066 rm -f conftest*
2067
2068 fi
2069
2070 if test $ac_cv_header_stdc = yes; then
2071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2072 if test "$cross_compiling" = yes; then
2073 :
2074 else
2075 cat >conftest.$ac_ext <<_ACEOF
2076 #line 2076 "configure"
2077 #include "confdefs.h"
2078 #include <ctype.h>
2079 #if ((' ' & 0x0FF) == 0x020)
2080 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2081 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2082 #else
2083 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2084 || ('j' <= (c) && (c) <= 'r') \
2085 || ('s' <= (c) && (c) <= 'z'))
2086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2087 #endif
2088
2089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2090 int
2091 main ()
2092 {
2093 int i;
2094 for (i = 0; i < 256; i++)
2095 if (XOR (islower (i), ISLOWER (i))
2096 || toupper (i) != TOUPPER (i))
2097 exit(2);
2098 exit (0);
2099 }
2100 _ACEOF
2101 rm -f conftest$ac_exeext
2102 if { (eval echo "$as_me:2102: \"$ac_link\"") >&5
2103 (eval $ac_link) 2>&5
2104 ac_status=$?
2105 echo "$as_me:2105: \$? = $ac_status" >&5
2106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2107 { (eval echo "$as_me:2107: \"$ac_try\"") >&5
2108 (eval $ac_try) 2>&5
2109 ac_status=$?
2110 echo "$as_me:2110: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2112 :
2113 else
2114 echo "$as_me: program exited with status $ac_status" >&5
2115 echo "$as_me: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2117 ac_cv_header_stdc=no
2118 fi
2119 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2120 fi
2121 fi
2122 fi
2123 echo "$as_me:2123: result: $ac_cv_header_stdc" >&5
2124 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2125 if test $ac_cv_header_stdc = yes; then
2126
2127 cat >>confdefs.h <<\EOF
2128 #define STDC_HEADERS 1
2129 EOF
2130
2131 fi
2132
2133 # Confirm existence of zlib. (This is available as a default install
2134 # option on many OS's; this could be added as a reachover build in the
2135 # future.)
2136 echo "$as_me:2136: checking for zlib.h" >&5
2137 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
2138 if test "${ac_cv_header_zlib_h+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #line 2142 "configure"
2143 #include "confdefs.h"
2144 #include <zlib.h>
2145 _ACEOF
2146 if { (eval echo "$as_me:2146: \"$ac_cpp conftest.$ac_ext\"") >&5
2147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2148 ac_status=$?
2149 egrep -v '^ *\+' conftest.er1 >conftest.err
2150 rm -f conftest.er1
2151 cat conftest.err >&5
2152 echo "$as_me:2152: \$? = $ac_status" >&5
2153 (exit $ac_status); } >/dev/null; then
2154 if test -s conftest.err; then
2155 ac_cpp_err=$ac_c_preproc_warn_flag
2156 else
2157 ac_cpp_err=
2158 fi
2159 else
2160 ac_cpp_err=yes
2161 fi
2162 if test -z "$ac_cpp_err"; then
2163 ac_cv_header_zlib_h=yes
2164 else
2165 echo "$as_me: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2167 ac_cv_header_zlib_h=no
2168 fi
2169 rm -f conftest.err conftest.$ac_ext
2170 fi
2171 echo "$as_me:2171: result: $ac_cv_header_zlib_h" >&5
2172 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
2173 if test $ac_cv_header_zlib_h = yes; then
2174 :
2175 else
2176 { { echo "$as_me:2176: error: zlib must be installed in a compiler-visible path" >&5
2177 echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2178 { (exit 1); exit 1; }; }
2179 fi
2180
2181 echo "$as_me:2181: checking for gzdopen in -lz" >&5
2182 echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
2183 if test "${ac_cv_lib_z_gzdopen+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 ac_check_lib_save_LIBS=$LIBS
2187 LIBS="-lz $LIBS"
2188 cat >conftest.$ac_ext <<_ACEOF
2189 #line 2189 "configure"
2190 #include "confdefs.h"
2191
2192 /* Override any gcc2 internal prototype to avoid an error. */
2193 #ifdef __cplusplus
2194 extern "C"
2195 #endif
2196 /* We use char because int might match the return type of a gcc2
2197 builtin and then its argument prototype would still apply. */
2198 char gzdopen ();
2199 int
2200 main ()
2201 {
2202 gzdopen ();
2203 ;
2204 return 0;
2205 }
2206 _ACEOF
2207 rm -f conftest.$ac_objext conftest$ac_exeext
2208 if { (eval echo "$as_me:2208: \"$ac_link\"") >&5
2209 (eval $ac_link) 2>&5
2210 ac_status=$?
2211 echo "$as_me:2211: \$? = $ac_status" >&5
2212 (exit $ac_status); } &&
2213 { ac_try='test -s conftest$ac_exeext'
2214 { (eval echo "$as_me:2214: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:2217: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 ac_cv_lib_z_gzdopen=yes
2220 else
2221 echo "$as_me: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2223 ac_cv_lib_z_gzdopen=no
2224 fi
2225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2226 LIBS=$ac_check_lib_save_LIBS
2227 fi
2228 echo "$as_me:2228: result: $ac_cv_lib_z_gzdopen" >&5
2229 echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
2230 if test $ac_cv_lib_z_gzdopen = yes; then
2231 cat >>confdefs.h <<EOF
2232 #define HAVE_LIBZ 1
2233 EOF
2234
2235 LIBS="-lz $LIBS"
2236
2237 else
2238 { { echo "$as_me:2238: error: zlib must be installed in a compiler-visible path" >&5
2239 echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2240 { (exit 1); exit 1; }; }
2241 fi
2242
2243 # Make sure certain required headers are available.
2244 # These are not necessarily required by the code, but they are not
2245 # currently conditionalized.
2246
2247 for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
2248 sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h \
2249 assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
2250 netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
2251 unistd.h
2252 do
2253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2254 echo "$as_me:2254: checking for $ac_header" >&5
2255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 cat >conftest.$ac_ext <<_ACEOF
2260 #line 2260 "configure"
2261 #include "confdefs.h"
2262 #include <$ac_header>
2263 _ACEOF
2264 if { (eval echo "$as_me:2264: \"$ac_cpp conftest.$ac_ext\"") >&5
2265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2266 ac_status=$?
2267 egrep -v '^ *\+' conftest.er1 >conftest.err
2268 rm -f conftest.er1
2269 cat conftest.err >&5
2270 echo "$as_me:2270: \$? = $ac_status" >&5
2271 (exit $ac_status); } >/dev/null; then
2272 if test -s conftest.err; then
2273 ac_cpp_err=$ac_c_preproc_warn_flag
2274 else
2275 ac_cpp_err=
2276 fi
2277 else
2278 ac_cpp_err=yes
2279 fi
2280 if test -z "$ac_cpp_err"; then
2281 eval "$as_ac_Header=yes"
2282 else
2283 echo "$as_me: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2285 eval "$as_ac_Header=no"
2286 fi
2287 rm -f conftest.err conftest.$ac_ext
2288 fi
2289 echo "$as_me:2289: result: `eval echo '${'$as_ac_Header'}'`" >&5
2290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2292 cat >>confdefs.h <<EOF
2293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2294 EOF
2295
2296 else
2297 { { echo "$as_me:2297: error: standard system header file not found" >&5
2298 echo "$as_me: error: standard system header file not found" >&2;}
2299 { (exit 1); exit 1; }; }
2300 fi
2301 done
2302
2303 # Find headers that may not be available.
2304
2305 ac_header_dirent=no
2306 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2307 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2308 echo "$as_me:2308: checking for $ac_hdr that defines DIR" >&5
2309 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 cat >conftest.$ac_ext <<_ACEOF
2314 #line 2314 "configure"
2315 #include "confdefs.h"
2316 #include <sys/types.h>
2317 #include <$ac_hdr>
2318
2319 int
2320 main ()
2321 {
2322 if ((DIR *) 0)
2323 return 0;
2324 ;
2325 return 0;
2326 }
2327 _ACEOF
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:2329: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2331 ac_status=$?
2332 echo "$as_me:2332: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:2335: \"$ac_try\"") >&5
2336 (eval $ac_try) 2>&5
2337 ac_status=$?
2338 echo "$as_me:2338: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2340 eval "$as_ac_Header=yes"
2341 else
2342 echo "$as_me: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 eval "$as_ac_Header=no"
2345 fi
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2347 fi
2348 echo "$as_me:2348: result: `eval echo '${'$as_ac_Header'}'`" >&5
2349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2351 cat >>confdefs.h <<EOF
2352 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2353 EOF
2354
2355 ac_header_dirent=$ac_hdr; break
2356 fi
2357
2358 done
2359 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2360 if test $ac_header_dirent = dirent.h; then
2361 echo "$as_me:2361: checking for opendir in -ldir" >&5
2362 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
2363 if test "${ac_cv_lib_dir_opendir+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 ac_check_lib_save_LIBS=$LIBS
2367 LIBS="-ldir $LIBS"
2368 cat >conftest.$ac_ext <<_ACEOF
2369 #line 2369 "configure"
2370 #include "confdefs.h"
2371
2372 /* Override any gcc2 internal prototype to avoid an error. */
2373 #ifdef __cplusplus
2374 extern "C"
2375 #endif
2376 /* We use char because int might match the return type of a gcc2
2377 builtin and then its argument prototype would still apply. */
2378 char opendir ();
2379 int
2380 main ()
2381 {
2382 opendir ();
2383 ;
2384 return 0;
2385 }
2386 _ACEOF
2387 rm -f conftest.$ac_objext conftest$ac_exeext
2388 if { (eval echo "$as_me:2388: \"$ac_link\"") >&5
2389 (eval $ac_link) 2>&5
2390 ac_status=$?
2391 echo "$as_me:2391: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -s conftest$ac_exeext'
2394 { (eval echo "$as_me:2394: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:2397: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 ac_cv_lib_dir_opendir=yes
2400 else
2401 echo "$as_me: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 ac_cv_lib_dir_opendir=no
2404 fi
2405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2406 LIBS=$ac_check_lib_save_LIBS
2407 fi
2408 echo "$as_me:2408: result: $ac_cv_lib_dir_opendir" >&5
2409 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
2410 if test $ac_cv_lib_dir_opendir = yes; then
2411 LIBS="$LIBS -ldir"
2412 fi
2413
2414 else
2415 echo "$as_me:2415: checking for opendir in -lx" >&5
2416 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
2417 if test "${ac_cv_lib_x_opendir+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420 ac_check_lib_save_LIBS=$LIBS
2421 LIBS="-lx $LIBS"
2422 cat >conftest.$ac_ext <<_ACEOF
2423 #line 2423 "configure"
2424 #include "confdefs.h"
2425
2426 /* Override any gcc2 internal prototype to avoid an error. */
2427 #ifdef __cplusplus
2428 extern "C"
2429 #endif
2430 /* We use char because int might match the return type of a gcc2
2431 builtin and then its argument prototype would still apply. */
2432 char opendir ();
2433 int
2434 main ()
2435 {
2436 opendir ();
2437 ;
2438 return 0;
2439 }
2440 _ACEOF
2441 rm -f conftest.$ac_objext conftest$ac_exeext
2442 if { (eval echo "$as_me:2442: \"$ac_link\"") >&5
2443 (eval $ac_link) 2>&5
2444 ac_status=$?
2445 echo "$as_me:2445: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -s conftest$ac_exeext'
2448 { (eval echo "$as_me:2448: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:2451: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 ac_cv_lib_x_opendir=yes
2454 else
2455 echo "$as_me: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 ac_cv_lib_x_opendir=no
2458 fi
2459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2460 LIBS=$ac_check_lib_save_LIBS
2461 fi
2462 echo "$as_me:2462: result: $ac_cv_lib_x_opendir" >&5
2463 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
2464 if test $ac_cv_lib_x_opendir = yes; then
2465 LIBS="$LIBS -lx"
2466 fi
2467
2468 fi
2469
2470 for ac_header in sys/sysmacros.h sys/syslimits.h \
2471 features.h malloc.h stddef.h
2472 do
2473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2474 echo "$as_me:2474: checking for $ac_header" >&5
2475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 cat >conftest.$ac_ext <<_ACEOF
2480 #line 2480 "configure"
2481 #include "confdefs.h"
2482 #include <$ac_header>
2483 _ACEOF
2484 if { (eval echo "$as_me:2484: \"$ac_cpp conftest.$ac_ext\"") >&5
2485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2486 ac_status=$?
2487 egrep -v '^ *\+' conftest.er1 >conftest.err
2488 rm -f conftest.er1
2489 cat conftest.err >&5
2490 echo "$as_me:2490: \$? = $ac_status" >&5
2491 (exit $ac_status); } >/dev/null; then
2492 if test -s conftest.err; then
2493 ac_cpp_err=$ac_c_preproc_warn_flag
2494 else
2495 ac_cpp_err=
2496 fi
2497 else
2498 ac_cpp_err=yes
2499 fi
2500 if test -z "$ac_cpp_err"; then
2501 eval "$as_ac_Header=yes"
2502 else
2503 echo "$as_me: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 eval "$as_ac_Header=no"
2506 fi
2507 rm -f conftest.err conftest.$ac_ext
2508 fi
2509 echo "$as_me:2509: result: `eval echo '${'$as_ac_Header'}'`" >&5
2510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2512 cat >>confdefs.h <<EOF
2513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2514 EOF
2515
2516 fi
2517 done
2518
2519 for ac_header in machine/bswap.h sys/cdefs.h sys/endian.h sys/featuretest.h \
2520 err.h inttypes.h libgen.h paths.h stdint.h util.h
2521 do
2522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2523 echo "$as_me:2523: checking for $ac_header" >&5
2524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528 cat >conftest.$ac_ext <<_ACEOF
2529 #line 2529 "configure"
2530 #include "confdefs.h"
2531 #include <$ac_header>
2532 _ACEOF
2533 if { (eval echo "$as_me:2533: \"$ac_cpp conftest.$ac_ext\"") >&5
2534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2535 ac_status=$?
2536 egrep -v '^ *\+' conftest.er1 >conftest.err
2537 rm -f conftest.er1
2538 cat conftest.err >&5
2539 echo "$as_me:2539: \$? = $ac_status" >&5
2540 (exit $ac_status); } >/dev/null; then
2541 if test -s conftest.err; then
2542 ac_cpp_err=$ac_c_preproc_warn_flag
2543 else
2544 ac_cpp_err=
2545 fi
2546 else
2547 ac_cpp_err=yes
2548 fi
2549 if test -z "$ac_cpp_err"; then
2550 eval "$as_ac_Header=yes"
2551 else
2552 echo "$as_me: failed program was:" >&5
2553 cat conftest.$ac_ext >&5
2554 eval "$as_ac_Header=no"
2555 fi
2556 rm -f conftest.err conftest.$ac_ext
2557 fi
2558 echo "$as_me:2558: result: `eval echo '${'$as_ac_Header'}'`" >&5
2559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2561 cat >>confdefs.h <<EOF
2562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2563 EOF
2564
2565 else
2566 test -f include/$ac_header || touch include/$ac_header
2567 fi
2568 done
2569
2570 for ac_header in rpc/types.h fts.h getopt.h md2.h md4.h md5.h netconfig.h \
2571 rmd160.h sha1.h vis.h
2572 do
2573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2574 echo "$as_me:2574: checking for $ac_header" >&5
2575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579 cat >conftest.$ac_ext <<_ACEOF
2580 #line 2580 "configure"
2581 #include "confdefs.h"
2582 #include <$ac_header>
2583 _ACEOF
2584 if { (eval echo "$as_me:2584: \"$ac_cpp conftest.$ac_ext\"") >&5
2585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2586 ac_status=$?
2587 egrep -v '^ *\+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:2590: \$? = $ac_status" >&5
2591 (exit $ac_status); } >/dev/null; then
2592 if test -s conftest.err; then
2593 ac_cpp_err=$ac_c_preproc_warn_flag
2594 else
2595 ac_cpp_err=
2596 fi
2597 else
2598 ac_cpp_err=yes
2599 fi
2600 if test -z "$ac_cpp_err"; then
2601 eval "$as_ac_Header=yes"
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2605 eval "$as_ac_Header=no"
2606 fi
2607 rm -f conftest.err conftest.$ac_ext
2608 fi
2609 echo "$as_me:2609: result: `eval echo '${'$as_ac_Header'}'`" >&5
2610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2612 cat >>confdefs.h <<EOF
2613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2614 EOF
2615
2616 else
2617 echo '#include "config.h"' >include/$ac_header.new
2618 echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
2619 if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
2620 rm -f include/$ac_header.new
2621 else
2622 mv -f include/$ac_header.new include/$ac_header
2623 fi
2624 fi
2625 done
2626
2627 # Typedefs.
2628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2629
2630 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2631 inttypes.h stdint.h unistd.h
2632 do
2633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2634 echo "$as_me:2634: checking for $ac_header" >&5
2635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 cat >conftest.$ac_ext <<_ACEOF
2640 #line 2640 "configure"
2641 #include "confdefs.h"
2642 $ac_includes_default
2643 #include <$ac_header>
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>&5
2648 ac_status=$?
2649 echo "$as_me:2649: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:2652: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:2655: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 eval "$as_ac_Header=yes"
2658 else
2659 echo "$as_me: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2661 eval "$as_ac_Header=no"
2662 fi
2663 rm -f conftest.$ac_objext conftest.$ac_ext
2664 fi
2665 echo "$as_me:2665: result: `eval echo '${'$as_ac_Header'}'`" >&5
2666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2668 cat >>confdefs.h <<EOF
2669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2670 EOF
2671
2672 fi
2673 done
2674
2675 echo "$as_me:2675: checking for size_t" >&5
2676 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2677 if test "${ac_cv_type_size_t+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 cat >conftest.$ac_ext <<_ACEOF
2681 #line 2681 "configure"
2682 #include "confdefs.h"
2683 $ac_includes_default
2684 int
2685 main ()
2686 {
2687 if ((size_t *) 0)
2688 return 0;
2689 if (sizeof (size_t))
2690 return 0;
2691 ;
2692 return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:2696: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>&5
2698 ac_status=$?
2699 echo "$as_me:2699: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:2702: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:2705: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 ac_cv_type_size_t=yes
2708 else
2709 echo "$as_me: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2711 ac_cv_type_size_t=no
2712 fi
2713 rm -f conftest.$ac_objext conftest.$ac_ext
2714 fi
2715 echo "$as_me:2715: result: $ac_cv_type_size_t" >&5
2716 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2717 if test $ac_cv_type_size_t = yes; then
2718 :
2719 else
2720
2721 cat >>confdefs.h <<EOF
2722 #define size_t unsigned
2723 EOF
2724
2725 fi
2726
2727 echo "$as_me:2727: checking for id_t" >&5
2728 echo $ECHO_N "checking for id_t... $ECHO_C" >&6
2729 if test "${ac_cv_type_id_t+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732 cat >conftest.$ac_ext <<_ACEOF
2733 #line 2733 "configure"
2734 #include "confdefs.h"
2735 $ac_includes_default
2736 int
2737 main ()
2738 {
2739 if ((id_t *) 0)
2740 return 0;
2741 if (sizeof (id_t))
2742 return 0;
2743 ;
2744 return 0;
2745 }
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:2748: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>&5
2750 ac_status=$?
2751 echo "$as_me:2751: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:2754: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:2757: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 ac_cv_type_id_t=yes
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 cat conftest.$ac_ext >&5
2763 ac_cv_type_id_t=no
2764 fi
2765 rm -f conftest.$ac_objext conftest.$ac_ext
2766 fi
2767 echo "$as_me:2767: result: $ac_cv_type_id_t" >&5
2768 echo "${ECHO_T}$ac_cv_type_id_t" >&6
2769 if test $ac_cv_type_id_t = yes; then
2770
2771 cat >>confdefs.h <<EOF
2772 #define HAVE_ID_T 1
2773 EOF
2774
2775 fi
2776 echo "$as_me:2776: checking for long long" >&5
2777 echo $ECHO_N "checking for long long... $ECHO_C" >&6
2778 if test "${ac_cv_type_long_long+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781 cat >conftest.$ac_ext <<_ACEOF
2782 #line 2782 "configure"
2783 #include "confdefs.h"
2784 $ac_includes_default
2785 int
2786 main ()
2787 {
2788 if ((long long *) 0)
2789 return 0;
2790 if (sizeof (long long))
2791 return 0;
2792 ;
2793 return 0;
2794 }
2795 _ACEOF
2796 rm -f conftest.$ac_objext
2797 if { (eval echo "$as_me:2797: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>&5
2799 ac_status=$?
2800 echo "$as_me:2800: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:2803: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:2806: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_type_long_long=yes
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2812 ac_cv_type_long_long=no
2813 fi
2814 rm -f conftest.$ac_objext conftest.$ac_ext
2815 fi
2816 echo "$as_me:2816: result: $ac_cv_type_long_long" >&5
2817 echo "${ECHO_T}$ac_cv_type_long_long" >&6
2818 if test $ac_cv_type_long_long = yes; then
2819
2820 cat >>confdefs.h <<EOF
2821 #define HAVE_LONG_LONG 1
2822 EOF
2823
2824 fi
2825 echo "$as_me:2825: checking for u_quad_t" >&5
2826 echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
2827 if test "${ac_cv_type_u_quad_t+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830 cat >conftest.$ac_ext <<_ACEOF
2831 #line 2831 "configure"
2832 #include "confdefs.h"
2833 $ac_includes_default
2834 int
2835 main ()
2836 {
2837 if ((u_quad_t *) 0)
2838 return 0;
2839 if (sizeof (u_quad_t))
2840 return 0;
2841 ;
2842 return 0;
2843 }
2844 _ACEOF
2845 rm -f conftest.$ac_objext
2846 if { (eval echo "$as_me:2846: \"$ac_compile\"") >&5
2847 (eval $ac_compile) 2>&5
2848 ac_status=$?
2849 echo "$as_me:2849: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:2852: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:2855: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_cv_type_u_quad_t=yes
2858 else
2859 echo "$as_me: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2861 ac_cv_type_u_quad_t=no
2862 fi
2863 rm -f conftest.$ac_objext conftest.$ac_ext
2864 fi
2865 echo "$as_me:2865: result: $ac_cv_type_u_quad_t" >&5
2866 echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
2867 if test $ac_cv_type_u_quad_t = yes; then
2868
2869 cat >>confdefs.h <<EOF
2870 #define HAVE_U_QUAD_T 1
2871 EOF
2872
2873 fi
2874
2875 echo "$as_me:2875: checking for uint8_t" >&5
2876 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
2877 if test "${ac_cv_type_uint8_t+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line 2881 "configure"
2882 #include "confdefs.h"
2883 $ac_includes_default
2884 int
2885 main ()
2886 {
2887 if ((uint8_t *) 0)
2888 return 0;
2889 if (sizeof (uint8_t))
2890 return 0;
2891 ;
2892 return 0;
2893 }
2894 _ACEOF
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:2896: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>&5
2898 ac_status=$?
2899 echo "$as_me:2899: \$? = $ac_status" >&5
2900 (exit $ac_status); } &&
2901 { ac_try='test -s conftest.$ac_objext'
2902 { (eval echo "$as_me:2902: \"$ac_try\"") >&5
2903 (eval $ac_try) 2>&5
2904 ac_status=$?
2905 echo "$as_me:2905: \$? = $ac_status" >&5
2906 (exit $ac_status); }; }; then
2907 ac_cv_type_uint8_t=yes
2908 else
2909 echo "$as_me: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2911 ac_cv_type_uint8_t=no
2912 fi
2913 rm -f conftest.$ac_objext conftest.$ac_ext
2914 fi
2915 echo "$as_me:2915: result: $ac_cv_type_uint8_t" >&5
2916 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
2917 if test $ac_cv_type_uint8_t = yes; then
2918 :
2919 else
2920
2921 echo "$as_me:2921: checking for u_int8_t" >&5
2922 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
2923 if test "${ac_cv_type_u_int8_t+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 cat >conftest.$ac_ext <<_ACEOF
2927 #line 2927 "configure"
2928 #include "confdefs.h"
2929 $ac_includes_default
2930 int
2931 main ()
2932 {
2933 if ((u_int8_t *) 0)
2934 return 0;
2935 if (sizeof (u_int8_t))
2936 return 0;
2937 ;
2938 return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:2942: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>&5
2944 ac_status=$?
2945 echo "$as_me:2945: \$? = $ac_status" >&5
2946 (exit $ac_status); } &&
2947 { ac_try='test -s conftest.$ac_objext'
2948 { (eval echo "$as_me:2948: \"$ac_try\"") >&5
2949 (eval $ac_try) 2>&5
2950 ac_status=$?
2951 echo "$as_me:2951: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 ac_cv_type_u_int8_t=yes
2954 else
2955 echo "$as_me: failed program was:" >&5
2956 cat conftest.$ac_ext >&5
2957 ac_cv_type_u_int8_t=no
2958 fi
2959 rm -f conftest.$ac_objext conftest.$ac_ext
2960 fi
2961 echo "$as_me:2961: result: $ac_cv_type_u_int8_t" >&5
2962 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
2963 if test $ac_cv_type_u_int8_t = yes; then
2964 cat >>confdefs.h <<\EOF
2965 #define uint8_t u_int8_t
2966 EOF
2967
2968 else
2969 { { echo "$as_me:2969: error: cannot find a suitable type for uint8_t" >&5
2970 echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
2971 { (exit 1); exit 1; }; }
2972 fi
2973
2974 fi
2975
2976 echo "$as_me:2976: checking for u_int8_t" >&5
2977 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
2978 if test "${ac_cv_type_u_int8_t+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981 cat >conftest.$ac_ext <<_ACEOF
2982 #line 2982 "configure"
2983 #include "confdefs.h"
2984 $ac_includes_default
2985 int
2986 main ()
2987 {
2988 if ((u_int8_t *) 0)
2989 return 0;
2990 if (sizeof (u_int8_t))
2991 return 0;
2992 ;
2993 return 0;
2994 }
2995 _ACEOF
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:2997: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>&5
2999 ac_status=$?
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:3003: \"$ac_try\"") >&5
3004 (eval $ac_try) 2>&5
3005 ac_status=$?
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3008 ac_cv_type_u_int8_t=yes
3009 else
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3012 ac_cv_type_u_int8_t=no
3013 fi
3014 rm -f conftest.$ac_objext conftest.$ac_ext
3015 fi
3016 echo "$as_me:3016: result: $ac_cv_type_u_int8_t" >&5
3017 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3018 if test $ac_cv_type_u_int8_t = yes; then
3019 :
3020 else
3021
3022 echo "$as_me:3022: checking for uint8_t" >&5
3023 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3024 if test "${ac_cv_type_uint8_t+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 cat >conftest.$ac_ext <<_ACEOF
3028 #line 3028 "configure"
3029 #include "confdefs.h"
3030 $ac_includes_default
3031 int
3032 main ()
3033 {
3034 if ((uint8_t *) 0)
3035 return 0;
3036 if (sizeof (uint8_t))
3037 return 0;
3038 ;
3039 return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:3043: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>&5
3045 ac_status=$?
3046 echo "$as_me:3046: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (eval echo "$as_me:3049: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:3052: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 ac_cv_type_uint8_t=yes
3055 else
3056 echo "$as_me: failed program was:" >&5
3057 cat conftest.$ac_ext >&5
3058 ac_cv_type_uint8_t=no
3059 fi
3060 rm -f conftest.$ac_objext conftest.$ac_ext
3061 fi
3062 echo "$as_me:3062: result: $ac_cv_type_uint8_t" >&5
3063 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
3064 if test $ac_cv_type_uint8_t = yes; then
3065 cat >>confdefs.h <<\EOF
3066 #define u_int8_t uint8_t
3067 EOF
3068
3069 else
3070 { { echo "$as_me:3070: error: cannot find a suitable type for u_int8_t" >&5
3071 echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
3072 { (exit 1); exit 1; }; }
3073 fi
3074
3075 fi
3076
3077 echo "$as_me:3077: checking for uint16_t" >&5
3078 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3079 if test "${ac_cv_type_uint16_t+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082 cat >conftest.$ac_ext <<_ACEOF
3083 #line 3083 "configure"
3084 #include "confdefs.h"
3085 $ac_includes_default
3086 int
3087 main ()
3088 {
3089 if ((uint16_t *) 0)
3090 return 0;
3091 if (sizeof (uint16_t))
3092 return 0;
3093 ;
3094 return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (eval echo "$as_me:3098: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>&5
3100 ac_status=$?
3101 echo "$as_me:3101: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:3104: \"$ac_try\"") >&5
3105 (eval $ac_try) 2>&5
3106 ac_status=$?
3107 echo "$as_me:3107: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 ac_cv_type_uint16_t=yes
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3113 ac_cv_type_uint16_t=no
3114 fi
3115 rm -f conftest.$ac_objext conftest.$ac_ext
3116 fi
3117 echo "$as_me:3117: result: $ac_cv_type_uint16_t" >&5
3118 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3119 if test $ac_cv_type_uint16_t = yes; then
3120 :
3121 else
3122
3123 echo "$as_me:3123: checking for u_int16_t" >&5
3124 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3125 if test "${ac_cv_type_u_int16_t+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 cat >conftest.$ac_ext <<_ACEOF
3129 #line 3129 "configure"
3130 #include "confdefs.h"
3131 $ac_includes_default
3132 int
3133 main ()
3134 {
3135 if ((u_int16_t *) 0)
3136 return 0;
3137 if (sizeof (u_int16_t))
3138 return 0;
3139 ;
3140 return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (eval echo "$as_me:3144: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>&5
3146 ac_status=$?
3147 echo "$as_me:3147: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (eval echo "$as_me:3150: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:3153: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 ac_cv_type_u_int16_t=yes
3156 else
3157 echo "$as_me: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 ac_cv_type_u_int16_t=no
3160 fi
3161 rm -f conftest.$ac_objext conftest.$ac_ext
3162 fi
3163 echo "$as_me:3163: result: $ac_cv_type_u_int16_t" >&5
3164 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3165 if test $ac_cv_type_u_int16_t = yes; then
3166 cat >>confdefs.h <<\EOF
3167 #define uint16_t u_int16_t
3168 EOF
3169
3170 else
3171 { { echo "$as_me:3171: error: cannot find a suitable type for uint16_t" >&5
3172 echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
3173 { (exit 1); exit 1; }; }
3174 fi
3175
3176 fi
3177
3178 echo "$as_me:3178: checking for u_int16_t" >&5
3179 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3180 if test "${ac_cv_type_u_int16_t+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183 cat >conftest.$ac_ext <<_ACEOF
3184 #line 3184 "configure"
3185 #include "confdefs.h"
3186 $ac_includes_default
3187 int
3188 main ()
3189 {
3190 if ((u_int16_t *) 0)
3191 return 0;
3192 if (sizeof (u_int16_t))
3193 return 0;
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:3199: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>&5
3201 ac_status=$?
3202 echo "$as_me:3202: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (eval echo "$as_me:3205: \"$ac_try\"") >&5
3206 (eval $ac_try) 2>&5
3207 ac_status=$?
3208 echo "$as_me:3208: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 ac_cv_type_u_int16_t=yes
3211 else
3212 echo "$as_me: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3214 ac_cv_type_u_int16_t=no
3215 fi
3216 rm -f conftest.$ac_objext conftest.$ac_ext
3217 fi
3218 echo "$as_me:3218: result: $ac_cv_type_u_int16_t" >&5
3219 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3220 if test $ac_cv_type_u_int16_t = yes; then
3221 :
3222 else
3223
3224 echo "$as_me:3224: checking for uint16_t" >&5
3225 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3226 if test "${ac_cv_type_uint16_t+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 cat >conftest.$ac_ext <<_ACEOF
3230 #line 3230 "configure"
3231 #include "confdefs.h"
3232 $ac_includes_default
3233 int
3234 main ()
3235 {
3236 if ((uint16_t *) 0)
3237 return 0;
3238 if (sizeof (uint16_t))
3239 return 0;
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:3245: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3247 ac_status=$?
3248 echo "$as_me:3248: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:3251: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:3254: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_cv_type_uint16_t=yes
3257 else
3258 echo "$as_me: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3260 ac_cv_type_uint16_t=no
3261 fi
3262 rm -f conftest.$ac_objext conftest.$ac_ext
3263 fi
3264 echo "$as_me:3264: result: $ac_cv_type_uint16_t" >&5
3265 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3266 if test $ac_cv_type_uint16_t = yes; then
3267 cat >>confdefs.h <<\EOF
3268 #define u_int16_t uint16_t
3269 EOF
3270
3271 else
3272 { { echo "$as_me:3272: error: cannot find a suitable type for u_int16_t" >&5
3273 echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
3274 { (exit 1); exit 1; }; }
3275 fi
3276
3277 fi
3278
3279 echo "$as_me:3279: checking for uint32_t" >&5
3280 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3281 if test "${ac_cv_type_uint32_t+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 cat >conftest.$ac_ext <<_ACEOF
3285 #line 3285 "configure"
3286 #include "confdefs.h"
3287 $ac_includes_default
3288 int
3289 main ()
3290 {
3291 if ((uint32_t *) 0)
3292 return 0;
3293 if (sizeof (uint32_t))
3294 return 0;
3295 ;
3296 return 0;
3297 }
3298 _ACEOF
3299 rm -f conftest.$ac_objext
3300 if { (eval echo "$as_me:3300: \"$ac_compile\"") >&5
3301 (eval $ac_compile) 2>&5
3302 ac_status=$?
3303 echo "$as_me:3303: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
3305 { ac_try='test -s conftest.$ac_objext'
3306 { (eval echo "$as_me:3306: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:3309: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 ac_cv_type_uint32_t=yes
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3315 ac_cv_type_uint32_t=no
3316 fi
3317 rm -f conftest.$ac_objext conftest.$ac_ext
3318 fi
3319 echo "$as_me:3319: result: $ac_cv_type_uint32_t" >&5
3320 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3321 if test $ac_cv_type_uint32_t = yes; then
3322 :
3323 else
3324
3325 echo "$as_me:3325: checking for u_int32_t" >&5
3326 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3327 if test "${ac_cv_type_u_int32_t+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330 cat >conftest.$ac_ext <<_ACEOF
3331 #line 3331 "configure"
3332 #include "confdefs.h"
3333 $ac_includes_default
3334 int
3335 main ()
3336 {
3337 if ((u_int32_t *) 0)
3338 return 0;
3339 if (sizeof (u_int32_t))
3340 return 0;
3341 ;
3342 return 0;
3343 }
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:3346: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3348 ac_status=$?
3349 echo "$as_me:3349: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:3352: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:3355: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_type_u_int32_t=yes
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 cat conftest.$ac_ext >&5
3361 ac_cv_type_u_int32_t=no
3362 fi
3363 rm -f conftest.$ac_objext conftest.$ac_ext
3364 fi
3365 echo "$as_me:3365: result: $ac_cv_type_u_int32_t" >&5
3366 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3367 if test $ac_cv_type_u_int32_t = yes; then
3368 cat >>confdefs.h <<\EOF
3369 #define uint32_t u_int32_t
3370 EOF
3371
3372 else
3373 { { echo "$as_me:3373: error: cannot find a suitable type for uint32_t" >&5
3374 echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
3375 { (exit 1); exit 1; }; }
3376 fi
3377
3378 fi
3379
3380 echo "$as_me:3380: checking for u_int32_t" >&5
3381 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3382 if test "${ac_cv_type_u_int32_t+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #line 3386 "configure"
3387 #include "confdefs.h"
3388 $ac_includes_default
3389 int
3390 main ()
3391 {
3392 if ((u_int32_t *) 0)
3393 return 0;
3394 if (sizeof (u_int32_t))
3395 return 0;
3396 ;
3397 return 0;
3398 }
3399 _ACEOF
3400 rm -f conftest.$ac_objext
3401 if { (eval echo "$as_me:3401: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>&5
3403 ac_status=$?
3404 echo "$as_me:3404: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:3407: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:3410: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 ac_cv_type_u_int32_t=yes
3413 else
3414 echo "$as_me: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3416 ac_cv_type_u_int32_t=no
3417 fi
3418 rm -f conftest.$ac_objext conftest.$ac_ext
3419 fi
3420 echo "$as_me:3420: result: $ac_cv_type_u_int32_t" >&5
3421 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3422 if test $ac_cv_type_u_int32_t = yes; then
3423 :
3424 else
3425
3426 echo "$as_me:3426: checking for uint32_t" >&5
3427 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3428 if test "${ac_cv_type_uint32_t+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431 cat >conftest.$ac_ext <<_ACEOF
3432 #line 3432 "configure"
3433 #include "confdefs.h"
3434 $ac_includes_default
3435 int
3436 main ()
3437 {
3438 if ((uint32_t *) 0)
3439 return 0;
3440 if (sizeof (uint32_t))
3441 return 0;
3442 ;
3443 return 0;
3444 }
3445 _ACEOF
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:3447: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>&5
3449 ac_status=$?
3450 echo "$as_me:3450: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:3453: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:3456: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3458 ac_cv_type_uint32_t=yes
3459 else
3460 echo "$as_me: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 ac_cv_type_uint32_t=no
3463 fi
3464 rm -f conftest.$ac_objext conftest.$ac_ext
3465 fi
3466 echo "$as_me:3466: result: $ac_cv_type_uint32_t" >&5
3467 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3468 if test $ac_cv_type_uint32_t = yes; then
3469 cat >>confdefs.h <<\EOF
3470 #define u_int32_t uint32_t
3471 EOF
3472
3473 else
3474 { { echo "$as_me:3474: error: cannot find a suitable type for u_int32_t" >&5
3475 echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
3476 { (exit 1); exit 1; }; }
3477 fi
3478
3479 fi
3480
3481 echo "$as_me:3481: checking for uint64_t" >&5
3482 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3483 if test "${ac_cv_type_uint64_t+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486 cat >conftest.$ac_ext <<_ACEOF
3487 #line 3487 "configure"
3488 #include "confdefs.h"
3489 $ac_includes_default
3490 int
3491 main ()
3492 {
3493 if ((uint64_t *) 0)
3494 return 0;
3495 if (sizeof (uint64_t))
3496 return 0;
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:3502: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3504 ac_status=$?
3505 echo "$as_me:3505: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:3508: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:3511: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_cv_type_uint64_t=yes
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3517 ac_cv_type_uint64_t=no
3518 fi
3519 rm -f conftest.$ac_objext conftest.$ac_ext
3520 fi
3521 echo "$as_me:3521: result: $ac_cv_type_uint64_t" >&5
3522 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3523 if test $ac_cv_type_uint64_t = yes; then
3524 :
3525 else
3526
3527 echo "$as_me:3527: checking for u_int64_t" >&5
3528 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3529 if test "${ac_cv_type_u_int64_t+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 cat >conftest.$ac_ext <<_ACEOF
3533 #line 3533 "configure"
3534 #include "confdefs.h"
3535 $ac_includes_default
3536 int
3537 main ()
3538 {
3539 if ((u_int64_t *) 0)
3540 return 0;
3541 if (sizeof (u_int64_t))
3542 return 0;
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 rm -f conftest.$ac_objext
3548 if { (eval echo "$as_me:3548: \"$ac_compile\"") >&5
3549 (eval $ac_compile) 2>&5
3550 ac_status=$?
3551 echo "$as_me:3551: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -s conftest.$ac_objext'
3554 { (eval echo "$as_me:3554: \"$ac_try\"") >&5
3555 (eval $ac_try) 2>&5
3556 ac_status=$?
3557 echo "$as_me:3557: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 ac_cv_type_u_int64_t=yes
3560 else
3561 echo "$as_me: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3563 ac_cv_type_u_int64_t=no
3564 fi
3565 rm -f conftest.$ac_objext conftest.$ac_ext
3566 fi
3567 echo "$as_me:3567: result: $ac_cv_type_u_int64_t" >&5
3568 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3569 if test $ac_cv_type_u_int64_t = yes; then
3570 cat >>confdefs.h <<\EOF
3571 #define uint64_t u_int64_t
3572 EOF
3573
3574 else
3575 { { echo "$as_me:3575: error: cannot find a suitable type for uint64_t" >&5
3576 echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
3577 { (exit 1); exit 1; }; }
3578 fi
3579
3580 fi
3581
3582 echo "$as_me:3582: checking for u_int64_t" >&5
3583 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3584 if test "${ac_cv_type_u_int64_t+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 cat >conftest.$ac_ext <<_ACEOF
3588 #line 3588 "configure"
3589 #include "confdefs.h"
3590 $ac_includes_default
3591 int
3592 main ()
3593 {
3594 if ((u_int64_t *) 0)
3595 return 0;
3596 if (sizeof (u_int64_t))
3597 return 0;
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 rm -f conftest.$ac_objext
3603 if { (eval echo "$as_me:3603: \"$ac_compile\"") >&5
3604 (eval $ac_compile) 2>&5
3605 ac_status=$?
3606 echo "$as_me:3606: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:3609: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:3612: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 ac_cv_type_u_int64_t=yes
3615 else
3616 echo "$as_me: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3618 ac_cv_type_u_int64_t=no
3619 fi
3620 rm -f conftest.$ac_objext conftest.$ac_ext
3621 fi
3622 echo "$as_me:3622: result: $ac_cv_type_u_int64_t" >&5
3623 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3624 if test $ac_cv_type_u_int64_t = yes; then
3625 :
3626 else
3627
3628 echo "$as_me:3628: checking for uint64_t" >&5
3629 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3630 if test "${ac_cv_type_uint64_t+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633 cat >conftest.$ac_ext <<_ACEOF
3634 #line 3634 "configure"
3635 #include "confdefs.h"
3636 $ac_includes_default
3637 int
3638 main ()
3639 {
3640 if ((uint64_t *) 0)
3641 return 0;
3642 if (sizeof (uint64_t))
3643 return 0;
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 rm -f conftest.$ac_objext
3649 if { (eval echo "$as_me:3649: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>&5
3651 ac_status=$?
3652 echo "$as_me:3652: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -s conftest.$ac_objext'
3655 { (eval echo "$as_me:3655: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:3658: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_type_uint64_t=yes
3661 else
3662 echo "$as_me: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3664 ac_cv_type_uint64_t=no
3665 fi
3666 rm -f conftest.$ac_objext conftest.$ac_ext
3667 fi
3668 echo "$as_me:3668: result: $ac_cv_type_uint64_t" >&5
3669 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3670 if test $ac_cv_type_uint64_t = yes; then
3671 cat >>confdefs.h <<\EOF
3672 #define u_int64_t uint64_t
3673 EOF
3674
3675 else
3676 { { echo "$as_me:3676: error: cannot find a suitable type for u_int64_t" >&5
3677 echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
3678 { (exit 1); exit 1; }; }
3679 fi
3680
3681 fi
3682
3683 # Struct members.
3684 echo "$as_me:3684: checking for DIR.dd_fd" >&5
3685 echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
3686 if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689 cat >conftest.$ac_ext <<_ACEOF
3690 #line 3690 "configure"
3691 #include "confdefs.h"
3692 #include <dirent.h>
3693
3694 int
3695 main ()
3696 {
3697 static DIR ac_aggr;
3698 if (ac_aggr.dd_fd)
3699 return 0;
3700 ;
3701 return 0;
3702 }
3703 _ACEOF
3704 rm -f conftest.$ac_objext
3705 if { (eval echo "$as_me:3705: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>&5
3707 ac_status=$?
3708 echo "$as_me:3708: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -s conftest.$ac_objext'
3711 { (eval echo "$as_me:3711: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
3713 ac_status=$?
3714 echo "$as_me:3714: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 ac_cv_member_DIR_dd_fd=yes
3717 else
3718 echo "$as_me: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3720 ac_cv_member_DIR_dd_fd=no
3721 fi
3722 rm -f conftest.$ac_objext conftest.$ac_ext
3723 fi
3724 echo "$as_me:3724: result: $ac_cv_member_DIR_dd_fd" >&5
3725 echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
3726 if test $ac_cv_member_DIR_dd_fd = yes; then
3727
3728 cat >>confdefs.h <<EOF
3729 #define HAVE_DIR_DD_FD 1
3730 EOF
3731
3732 fi
3733 echo "$as_me:3733: checking for struct dirent.d_namlen" >&5
3734 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
3735 if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 cat >conftest.$ac_ext <<_ACEOF
3739 #line 3739 "configure"
3740 #include "confdefs.h"
3741 #include <dirent.h>
3742
3743 int
3744 main ()
3745 {
3746 static struct dirent ac_aggr;
3747 if (ac_aggr.d_namlen)
3748 return 0;
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:3754: \"$ac_compile\"") >&5
3755 (eval $ac_compile) 2>&5
3756 ac_status=$?
3757 echo "$as_me:3757: \$? = $ac_status" >&5
3758 (exit $ac_status); } &&
3759 { ac_try='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:3760: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:3763: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_cv_member_struct_dirent_d_namlen=yes
3766 else
3767 echo "$as_me: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3769 ac_cv_member_struct_dirent_d_namlen=no
3770 fi
3771 rm -f conftest.$ac_objext conftest.$ac_ext
3772 fi
3773 echo "$as_me:3773: result: $ac_cv_member_struct_dirent_d_namlen" >&5
3774 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
3775 if test $ac_cv_member_struct_dirent_d_namlen = yes; then
3776
3777 cat >>confdefs.h <<EOF
3778 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
3779 EOF
3780
3781 fi
3782
3783 echo "$as_me:3783: checking for struct stat.st_flags" >&5
3784 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
3785 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788 cat >conftest.$ac_ext <<_ACEOF
3789 #line 3789 "configure"
3790 #include "confdefs.h"
3791 #include <sys/stat.h>
3792
3793 int
3794 main ()
3795 {
3796 static struct stat ac_aggr;
3797 if (ac_aggr.st_flags)
3798 return 0;
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 rm -f conftest.$ac_objext
3804 if { (eval echo "$as_me:3804: \"$ac_compile\"") >&5
3805 (eval $ac_compile) 2>&5
3806 ac_status=$?
3807 echo "$as_me:3807: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -s conftest.$ac_objext'
3810 { (eval echo "$as_me:3810: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:3813: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_cv_member_struct_stat_st_flags=yes
3816 else
3817 echo "$as_me: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3819 ac_cv_member_struct_stat_st_flags=no
3820 fi
3821 rm -f conftest.$ac_objext conftest.$ac_ext
3822 fi
3823 echo "$as_me:3823: result: $ac_cv_member_struct_stat_st_flags" >&5
3824 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
3825 if test $ac_cv_member_struct_stat_st_flags = yes; then
3826
3827 cat >>confdefs.h <<EOF
3828 #define HAVE_STRUCT_STAT_ST_FLAGS 1
3829 EOF
3830
3831 fi
3832 echo "$as_me:3832: checking for struct stat.st_gen" >&5
3833 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
3834 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 cat >conftest.$ac_ext <<_ACEOF
3838 #line 3838 "configure"
3839 #include "confdefs.h"
3840 #include <sys/stat.h>
3841
3842 int
3843 main ()
3844 {
3845 static struct stat ac_aggr;
3846 if (ac_aggr.st_gen)
3847 return 0;
3848 ;
3849 return 0;
3850 }
3851 _ACEOF
3852 rm -f conftest.$ac_objext
3853 if { (eval echo "$as_me:3853: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>&5
3855 ac_status=$?
3856 echo "$as_me:3856: \$? = $ac_status" >&5
3857 (exit $ac_status); } &&
3858 { ac_try='test -s conftest.$ac_objext'
3859 { (eval echo "$as_me:3859: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:3862: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_member_struct_stat_st_gen=yes
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3868 ac_cv_member_struct_stat_st_gen=no
3869 fi
3870 rm -f conftest.$ac_objext conftest.$ac_ext
3871 fi
3872 echo "$as_me:3872: result: $ac_cv_member_struct_stat_st_gen" >&5
3873 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
3874 if test $ac_cv_member_struct_stat_st_gen = yes; then
3875
3876 cat >>confdefs.h <<EOF
3877 #define HAVE_STRUCT_STAT_ST_GEN 1
3878 EOF
3879
3880 fi
3881 echo "$as_me:3881: checking for struct stat.st_mtimensec" >&5
3882 echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
3883 if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886 cat >conftest.$ac_ext <<_ACEOF
3887 #line 3887 "configure"
3888 #include "confdefs.h"
3889 #include <sys/stat.h>
3890
3891 int
3892 main ()
3893 {
3894 static struct stat ac_aggr;
3895 if (ac_aggr.st_mtimensec)
3896 return 0;
3897 ;
3898 return 0;
3899 }
3900 _ACEOF
3901 rm -f conftest.$ac_objext
3902 if { (eval echo "$as_me:3902: \"$ac_compile\"") >&5
3903 (eval $ac_compile) 2>&5
3904 ac_status=$?
3905 echo "$as_me:3905: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try='test -s conftest.$ac_objext'
3908 { (eval echo "$as_me:3908: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:3911: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_cv_member_struct_stat_st_mtimensec=yes
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3917 ac_cv_member_struct_stat_st_mtimensec=no
3918 fi
3919 rm -f conftest.$ac_objext conftest.$ac_ext
3920 fi
3921 echo "$as_me:3921: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
3922 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
3923 if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
3924
3925 cat >>confdefs.h <<EOF
3926 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
3927 EOF
3928
3929 fi
3930
3931 echo "$as_me:3931: checking for struct statfs.f_iosize" >&5
3932 echo $ECHO_N "checking for struct statfs.f_iosize... $ECHO_C" >&6
3933 if test "${ac_cv_member_struct_statfs_f_iosize+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 cat >conftest.$ac_ext <<_ACEOF
3937 #line 3937 "configure"
3938 #include "confdefs.h"
3939 #include <sys/mount.h>
3940
3941 int
3942 main ()
3943 {
3944 static struct statfs ac_aggr;
3945 if (ac_aggr.f_iosize)
3946 return 0;
3947 ;
3948 return 0;
3949 }
3950 _ACEOF
3951 rm -f conftest.$ac_objext
3952 if { (eval echo "$as_me:3952: \"$ac_compile\"") >&5
3953 (eval $ac_compile) 2>&5
3954 ac_status=$?
3955 echo "$as_me:3955: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try='test -s conftest.$ac_objext'
3958 { (eval echo "$as_me:3958: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:3961: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3963 ac_cv_member_struct_statfs_f_iosize=yes
3964 else
3965 echo "$as_me: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3967 ac_cv_member_struct_statfs_f_iosize=no
3968 fi
3969 rm -f conftest.$ac_objext conftest.$ac_ext
3970 fi
3971 echo "$as_me:3971: result: $ac_cv_member_struct_statfs_f_iosize" >&5
3972 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_iosize" >&6
3973 if test $ac_cv_member_struct_statfs_f_iosize = yes; then
3974
3975 cat >>confdefs.h <<EOF
3976 #define HAVE_STRUCT_STATFS_F_IOSIZE 1
3977 EOF
3978
3979 fi
3980
3981 # Global variable decls.
3982 echo "$as_me:3982: checking whether optind is declared" >&5
3983 echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
3984 if test "${ac_cv_have_decl_optind+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 cat >conftest.$ac_ext <<_ACEOF
3988 #line 3988 "configure"
3989 #include "confdefs.h"
3990
3991 #include <stdio.h>
3992 #include <stdlib.h>
3993 #include <unistd.h>
3994
3995 int
3996 main ()
3997 {
3998 #ifndef optind
3999 char *p = (char *) optind;
4000 #endif
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.$ac_objext
4007 if { (eval echo "$as_me:4007: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>&5
4009 ac_status=$?
4010 echo "$as_me:4010: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -s conftest.$ac_objext'
4013 { (eval echo "$as_me:4013: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:4016: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 ac_cv_have_decl_optind=yes
4019 else
4020 echo "$as_me: failed program was:" >&5
4021 cat conftest.$ac_ext >&5
4022 ac_cv_have_decl_optind=no
4023 fi
4024 rm -f conftest.$ac_objext conftest.$ac_ext
4025 fi
4026 echo "$as_me:4026: result: $ac_cv_have_decl_optind" >&5
4027 echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
4028 if test $ac_cv_have_decl_optind = yes; then
4029
4030 cat >>confdefs.h <<EOF
4031 #define HAVE_DECL_OPTIND 1
4032 EOF
4033
4034 else
4035 cat >>confdefs.h <<EOF
4036 #define HAVE_DECL_OPTIND 0
4037 EOF
4038
4039 fi
4040 echo "$as_me:4040: checking whether optreset is declared" >&5
4041 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
4042 if test "${ac_cv_have_decl_optreset+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 cat >conftest.$ac_ext <<_ACEOF
4046 #line 4046 "configure"
4047 #include "confdefs.h"
4048
4049 #include <stdio.h>
4050 #include <stdlib.h>
4051 #include <unistd.h>
4052
4053 int
4054 main ()
4055 {
4056 #ifndef optreset
4057 char *p = (char *) optreset;
4058 #endif
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:4065: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>&5
4067 ac_status=$?
4068 echo "$as_me:4068: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -s conftest.$ac_objext'
4071 { (eval echo "$as_me:4071: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:4074: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 ac_cv_have_decl_optreset=yes
4077 else
4078 echo "$as_me: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4080 ac_cv_have_decl_optreset=no
4081 fi
4082 rm -f conftest.$ac_objext conftest.$ac_ext
4083 fi
4084 echo "$as_me:4084: result: $ac_cv_have_decl_optreset" >&5
4085 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
4086 if test $ac_cv_have_decl_optreset = yes; then
4087
4088 cat >>confdefs.h <<EOF
4089 #define HAVE_DECL_OPTRESET 1
4090 EOF
4091
4092 else
4093 cat >>confdefs.h <<EOF
4094 #define HAVE_DECL_OPTRESET 0
4095 EOF
4096
4097 fi
4098
4099 echo "$as_me:4099: checking whether sys_signame is declared" >&5
4100 echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
4101 if test "${ac_cv_have_decl_sys_signame+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104 cat >conftest.$ac_ext <<_ACEOF
4105 #line 4105 "configure"
4106 #include "confdefs.h"
4107 #include <signal.h>
4108
4109 int
4110 main ()
4111 {
4112 #ifndef sys_signame
4113 char *p = (char *) sys_signame;
4114 #endif
4115
4116 ;
4117 return 0;
4118 }
4119 _ACEOF
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:4121: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4123 ac_status=$?
4124 echo "$as_me:4124: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:4127: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5
4129 ac_status=$?
4130 echo "$as_me:4130: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_cv_have_decl_sys_signame=yes
4133 else
4134 echo "$as_me: failed program was:" >&5
4135 cat conftest.$ac_ext >&5
4136 ac_cv_have_decl_sys_signame=no
4137 fi
4138 rm -f conftest.$ac_objext conftest.$ac_ext
4139 fi
4140 echo "$as_me:4140: result: $ac_cv_have_decl_sys_signame" >&5
4141 echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
4142 if test $ac_cv_have_decl_sys_signame = yes; then
4143
4144 cat >>confdefs.h <<EOF
4145 #define HAVE_DECL_SYS_SIGNAME 1
4146 EOF
4147
4148 else
4149 cat >>confdefs.h <<EOF
4150 #define HAVE_DECL_SYS_SIGNAME 0
4151 EOF
4152
4153 fi
4154
4155 # Library functions (where a .h check isn't enough).
4156 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4157 # for constant arguments. Useless!
4158 echo "$as_me:4158: checking for working alloca.h" >&5
4159 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4160 if test "${ac_cv_working_alloca_h+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 cat >conftest.$ac_ext <<_ACEOF
4164 #line 4164 "configure"
4165 #include "confdefs.h"
4166 #include <alloca.h>
4167 int
4168 main ()
4169 {
4170 char *p = (char *) alloca (2 * sizeof (int));
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 rm -f conftest.$ac_objext conftest$ac_exeext
4176 if { (eval echo "$as_me:4176: \"$ac_link\"") >&5
4177 (eval $ac_link) 2>&5
4178 ac_status=$?
4179 echo "$as_me:4179: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -s conftest$ac_exeext'
4182 { (eval echo "$as_me:4182: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:4185: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 ac_cv_working_alloca_h=yes
4188 else
4189 echo "$as_me: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4191 ac_cv_working_alloca_h=no
4192 fi
4193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4194 fi
4195 echo "$as_me:4195: result: $ac_cv_working_alloca_h" >&5
4196 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4197 if test $ac_cv_working_alloca_h = yes; then
4198
4199 cat >>confdefs.h <<\EOF
4200 #define HAVE_ALLOCA_H 1
4201 EOF
4202
4203 fi
4204
4205 echo "$as_me:4205: checking for alloca" >&5
4206 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4207 if test "${ac_cv_func_alloca_works+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 cat >conftest.$ac_ext <<_ACEOF
4211 #line 4211 "configure"
4212 #include "confdefs.h"
4213 #ifdef __GNUC__
4214 # define alloca __builtin_alloca
4215 #else
4216 # ifdef _MSC_VER
4217 # include <malloc.h>
4218 # define alloca _alloca
4219 # else
4220 # if HAVE_ALLOCA_H
4221 # include <alloca.h>
4222 # else
4223 # ifdef _AIX
4224 #pragma alloca
4225 # else
4226 # ifndef alloca /* predefined by HP cc +Olibcalls */
4227 char *alloca ();
4228 # endif
4229 # endif
4230 # endif
4231 # endif
4232 #endif
4233
4234 int
4235 main ()
4236 {
4237 char *p = (char *) alloca (1);
4238 ;
4239 return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext conftest$ac_exeext
4243 if { (eval echo "$as_me:4243: \"$ac_link\"") >&5
4244 (eval $ac_link) 2>&5
4245 ac_status=$?
4246 echo "$as_me:4246: \$? = $ac_status" >&5
4247 (exit $ac_status); } &&
4248 { ac_try='test -s conftest$ac_exeext'
4249 { (eval echo "$as_me:4249: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:4252: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 ac_cv_func_alloca_works=yes
4255 else
4256 echo "$as_me: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4258 ac_cv_func_alloca_works=no
4259 fi
4260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4261 fi
4262 echo "$as_me:4262: result: $ac_cv_func_alloca_works" >&5
4263 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4264
4265 if test $ac_cv_func_alloca_works = yes; then
4266
4267 cat >>confdefs.h <<\EOF
4268 #define HAVE_ALLOCA 1
4269 EOF
4270
4271 else
4272 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4273 # that cause trouble. Some versions do not even contain alloca or
4274 # contain a buggy version. If you still want to use their alloca,
4275 # use ar to extract alloca.o from them instead of compiling alloca.c.
4276
4277 ALLOCA=alloca.$ac_objext
4278
4279 cat >>confdefs.h <<\EOF
4280 #define C_ALLOCA 1
4281 EOF
4282
4283 echo "$as_me:4283: checking whether \`alloca.c' needs Cray hooks" >&5
4284 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4285 if test "${ac_cv_os_cray+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288 cat >conftest.$ac_ext <<_ACEOF
4289 #line 4289 "configure"
4290 #include "confdefs.h"
4291 #if defined(CRAY) && ! defined(CRAY2)
4292 webecray
4293 #else
4294 wenotbecray
4295 #endif
4296
4297 _ACEOF
4298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4299 egrep "webecray" >/dev/null 2>&1; then
4300 ac_cv_os_cray=yes
4301 else
4302 ac_cv_os_cray=no
4303 fi
4304 rm -f conftest*
4305
4306 fi
4307 echo "$as_me:4307: result: $ac_cv_os_cray" >&5
4308 echo "${ECHO_T}$ac_cv_os_cray" >&6
4309 if test $ac_cv_os_cray = yes; then
4310 for ac_func in _getb67 GETB67 getb67; do
4311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4312 echo "$as_me:4312: checking for $ac_func" >&5
4313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4314 if eval "test \"\${$as_ac_var+set}\" = set"; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 cat >conftest.$ac_ext <<_ACEOF
4318 #line 4318 "configure"
4319 #include "confdefs.h"
4320 /* System header to define __stub macros and hopefully few prototypes,
4321 which can conflict with char $ac_func (); below. */
4322 #include <assert.h>
4323 /* Override any gcc2 internal prototype to avoid an error. */
4324 #ifdef __cplusplus
4325 extern "C"
4326 #endif
4327 /* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
4329 char $ac_func ();
4330 char (*f) ();
4331
4332 int
4333 main ()
4334 {
4335 /* The GNU C library defines this for functions which it implements
4336 to always fail with ENOSYS. Some functions are actually named
4337 something starting with __ and the normal name is an alias. */
4338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4339 choke me
4340 #else
4341 f = $ac_func;
4342 #endif
4343
4344 ;
4345 return 0;
4346 }
4347 _ACEOF
4348 rm -f conftest.$ac_objext conftest$ac_exeext
4349 if { (eval echo "$as_me:4349: \"$ac_link\"") >&5
4350 (eval $ac_link) 2>&5
4351 ac_status=$?
4352 echo "$as_me:4352: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -s conftest$ac_exeext'
4355 { (eval echo "$as_me:4355: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:4358: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 eval "$as_ac_var=yes"
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4364 eval "$as_ac_var=no"
4365 fi
4366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4367 fi
4368 echo "$as_me:4368: result: `eval echo '${'$as_ac_var'}'`" >&5
4369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4370 if test `eval echo '${'$as_ac_var'}'` = yes; then
4371
4372 cat >>confdefs.h <<EOF
4373 #define CRAY_STACKSEG_END $ac_func
4374 EOF
4375
4376 break
4377 fi
4378
4379 done
4380 fi
4381
4382 echo "$as_me:4382: checking stack direction for C alloca" >&5
4383 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4384 if test "${ac_cv_c_stack_direction+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 if test "$cross_compiling" = yes; then
4388 ac_cv_c_stack_direction=0
4389 else
4390 cat >conftest.$ac_ext <<_ACEOF
4391 #line 4391 "configure"
4392 #include "confdefs.h"
4393 int
4394 find_stack_direction ()
4395 {
4396 static char *addr = 0;
4397 auto char dummy;
4398 if (addr == 0)
4399 {
4400 addr = &dummy;
4401 return find_stack_direction ();
4402 }
4403 else
4404 return (&dummy > addr) ? 1 : -1;
4405 }
4406
4407 int
4408 main ()
4409 {
4410 exit (find_stack_direction () < 0);
4411 }
4412 _ACEOF
4413 rm -f conftest$ac_exeext
4414 if { (eval echo "$as_me:4414: \"$ac_link\"") >&5
4415 (eval $ac_link) 2>&5
4416 ac_status=$?
4417 echo "$as_me:4417: \$? = $ac_status" >&5
4418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4419 { (eval echo "$as_me:4419: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:4422: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_c_stack_direction=1
4425 else
4426 echo "$as_me: program exited with status $ac_status" >&5
4427 echo "$as_me: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4429 ac_cv_c_stack_direction=-1
4430 fi
4431 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4432 fi
4433 fi
4434 echo "$as_me:4434: result: $ac_cv_c_stack_direction" >&5
4435 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4436
4437 cat >>confdefs.h <<EOF
4438 #define STACK_DIRECTION $ac_cv_c_stack_direction
4439 EOF
4440
4441 fi
4442
4443 echo "$as_me:4443: checking for library containing fparseln" >&5
4444 echo $ECHO_N "checking for library containing fparseln... $ECHO_C" >&6
4445 if test "${ac_cv_search_fparseln+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 ac_func_search_save_LIBS=$LIBS
4449 ac_cv_search_fparseln=no
4450 cat >conftest.$ac_ext <<_ACEOF
4451 #line 4451 "configure"
4452 #include "confdefs.h"
4453
4454 /* Override any gcc2 internal prototype to avoid an error. */
4455 #ifdef __cplusplus
4456 extern "C"
4457 #endif
4458 /* We use char because int might match the return type of a gcc2
4459 builtin and then its argument prototype would still apply. */
4460 char fparseln ();
4461 int
4462 main ()
4463 {
4464 fparseln ();
4465 ;
4466 return 0;
4467 }
4468 _ACEOF
4469 rm -f conftest.$ac_objext conftest$ac_exeext
4470 if { (eval echo "$as_me:4470: \"$ac_link\"") >&5
4471 (eval $ac_link) 2>&5
4472 ac_status=$?
4473 echo "$as_me:4473: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -s conftest$ac_exeext'
4476 { (eval echo "$as_me:4476: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
4479 echo "$as_me:4479: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_search_fparseln="none required"
4482 else
4483 echo "$as_me: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4485 fi
4486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4487 if test "$ac_cv_search_fparseln" = no; then
4488 for ac_lib in util; do
4489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4490 cat >conftest.$ac_ext <<_ACEOF
4491 #line 4491 "configure"
4492 #include "confdefs.h"
4493
4494 /* Override any gcc2 internal prototype to avoid an error. */
4495 #ifdef __cplusplus
4496 extern "C"
4497 #endif
4498 /* We use char because int might match the return type of a gcc2
4499 builtin and then its argument prototype would still apply. */
4500 char fparseln ();
4501 int
4502 main ()
4503 {
4504 fparseln ();
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 rm -f conftest.$ac_objext conftest$ac_exeext
4510 if { (eval echo "$as_me:4510: \"$ac_link\"") >&5
4511 (eval $ac_link) 2>&5
4512 ac_status=$?
4513 echo "$as_me:4513: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -s conftest$ac_exeext'
4516 { (eval echo "$as_me:4516: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:4519: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_cv_search_fparseln="-l$ac_lib"
4522 break
4523 else
4524 echo "$as_me: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4526 fi
4527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4528 done
4529 fi
4530 LIBS=$ac_func_search_save_LIBS
4531 fi
4532 echo "$as_me:4532: result: $ac_cv_search_fparseln" >&5
4533 echo "${ECHO_T}$ac_cv_search_fparseln" >&6
4534 if test "$ac_cv_search_fparseln" != no; then
4535 test "$ac_cv_search_fparseln" = "none required" || LIBS="$ac_cv_search_fparseln $LIBS"
4536
4537 fi
4538
4539 for ac_func in asprintf asnprintf basename dirfd dirname \
4540 fgetln flock fparseln futimes getopt getopt_long \
4541 isblank issetugid lchmod lchown lutimes pread pwcache_userdb \
4542 pwrite setenv setgroupent setprogname setpassent \
4543 snprintf strlcat strlcpy strsep vasprintf vasnprintf vsnprintf
4544 do
4545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4546 echo "$as_me:4546: checking for $ac_func" >&5
4547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4548 if eval "test \"\${$as_ac_var+set}\" = set"; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 cat >conftest.$ac_ext <<_ACEOF
4552 #line 4552 "configure"
4553 #include "confdefs.h"
4554 /* System header to define __stub macros and hopefully few prototypes,
4555 which can conflict with char $ac_func (); below. */
4556 #include <assert.h>
4557 /* Override any gcc2 internal prototype to avoid an error. */
4558 #ifdef __cplusplus
4559 extern "C"
4560 #endif
4561 /* We use char because int might match the return type of a gcc2
4562 builtin and then its argument prototype would still apply. */
4563 char $ac_func ();
4564 char (*f) ();
4565
4566 int
4567 main ()
4568 {
4569 /* The GNU C library defines this for functions which it implements
4570 to always fail with ENOSYS. Some functions are actually named
4571 something starting with __ and the normal name is an alias. */
4572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4573 choke me
4574 #else
4575 f = $ac_func;
4576 #endif
4577
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.$ac_objext conftest$ac_exeext
4583 if { (eval echo "$as_me:4583: \"$ac_link\"") >&5
4584 (eval $ac_link) 2>&5
4585 ac_status=$?
4586 echo "$as_me:4586: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -s conftest$ac_exeext'
4589 { (eval echo "$as_me:4589: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:4592: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 eval "$as_ac_var=yes"
4595 else
4596 echo "$as_me: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4598 eval "$as_ac_var=no"
4599 fi
4600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4601 fi
4602 echo "$as_me:4602: result: `eval echo '${'$as_ac_var'}'`" >&5
4603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4604 if test `eval echo '${'$as_ac_var'}'` = yes; then
4605 cat >>confdefs.h <<EOF
4606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4607 EOF
4608
4609 fi
4610 done
4611
4612 echo "$as_me:4612: checking whether setgroupent is declared" >&5
4613 echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
4614 if test "${ac_cv_have_decl_setgroupent+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 cat >conftest.$ac_ext <<_ACEOF
4618 #line 4618 "configure"
4619 #include "confdefs.h"
4620
4621 #include <grp.h>
4622 #include <pwd.h>
4623
4624 int
4625 main ()
4626 {
4627 #ifndef setgroupent
4628 char *p = (char *) setgroupent;
4629 #endif
4630
4631 ;
4632 return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:4636: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>&5
4638 ac_status=$?
4639 echo "$as_me:4639: \$? = $ac_status" >&5
4640 (exit $ac_status); } &&
4641 { ac_try='test -s conftest.$ac_objext'
4642 { (eval echo "$as_me:4642: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:4645: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_cv_have_decl_setgroupent=yes
4648 else
4649 echo "$as_me: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 ac_cv_have_decl_setgroupent=no
4652 fi
4653 rm -f conftest.$ac_objext conftest.$ac_ext
4654 fi
4655 echo "$as_me:4655: result: $ac_cv_have_decl_setgroupent" >&5
4656 echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
4657 if test $ac_cv_have_decl_setgroupent = yes; then
4658
4659 cat >>confdefs.h <<EOF
4660 #define HAVE_DECL_SETGROUPENT 1
4661 EOF
4662
4663 else
4664 cat >>confdefs.h <<EOF
4665 #define HAVE_DECL_SETGROUPENT 0
4666 EOF
4667
4668 fi
4669 echo "$as_me:4669: checking whether setpassent is declared" >&5
4670 echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
4671 if test "${ac_cv_have_decl_setpassent+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674 cat >conftest.$ac_ext <<_ACEOF
4675 #line 4675 "configure"
4676 #include "confdefs.h"
4677
4678 #include <grp.h>
4679 #include <pwd.h>
4680
4681 int
4682 main ()
4683 {
4684 #ifndef setpassent
4685 char *p = (char *) setpassent;
4686 #endif
4687
4688 ;
4689 return 0;
4690 }
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:4693: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>&5
4695 ac_status=$?
4696 echo "$as_me:4696: \$? = $ac_status" >&5
4697 (exit $ac_status); } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:4699: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:4702: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_cv_have_decl_setpassent=yes
4705 else
4706 echo "$as_me: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4708 ac_cv_have_decl_setpassent=no
4709 fi
4710 rm -f conftest.$ac_objext conftest.$ac_ext
4711 fi
4712 echo "$as_me:4712: result: $ac_cv_have_decl_setpassent" >&5
4713 echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
4714 if test $ac_cv_have_decl_setpassent = yes; then
4715
4716 cat >>confdefs.h <<EOF
4717 #define HAVE_DECL_SETPASSENT 1
4718 EOF
4719
4720 else
4721 cat >>confdefs.h <<EOF
4722 #define HAVE_DECL_SETPASSENT 0
4723 EOF
4724
4725 fi
4726
4727 # regcomp() and regexec() are also names of functions in the old V8
4728 # regexp package. To avoid them, we need to find out who has regfree().
4729
4730 echo "$as_me:4730: checking for regfree in -lregex" >&5
4731 echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
4732 if test "${ac_cv_lib_regex_regfree+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735 ac_check_lib_save_LIBS=$LIBS
4736 LIBS="-lregex $LIBS"
4737 cat >conftest.$ac_ext <<_ACEOF
4738 #line 4738 "configure"
4739 #include "confdefs.h"
4740
4741 /* Override any gcc2 internal prototype to avoid an error. */
4742 #ifdef __cplusplus
4743 extern "C"
4744 #endif
4745 /* We use char because int might match the return type of a gcc2
4746 builtin and then its argument prototype would still apply. */
4747 char regfree ();
4748 int
4749 main ()
4750 {
4751 regfree ();
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext conftest$ac_exeext
4757 if { (eval echo "$as_me:4757: \"$ac_link\"") >&5
4758 (eval $ac_link) 2>&5
4759 ac_status=$?
4760 echo "$as_me:4760: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try='test -s conftest$ac_exeext'
4763 { (eval echo "$as_me:4763: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:4766: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 ac_cv_lib_regex_regfree=yes
4769 else
4770 echo "$as_me: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4772 ac_cv_lib_regex_regfree=no
4773 fi
4774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4775 LIBS=$ac_check_lib_save_LIBS
4776 fi
4777 echo "$as_me:4777: result: $ac_cv_lib_regex_regfree" >&5
4778 echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
4779 if test $ac_cv_lib_regex_regfree = yes; then
4780 cat >>confdefs.h <<EOF
4781 #define HAVE_LIBREGEX 1
4782 EOF
4783
4784 LIBS="-lregex $LIBS"
4785
4786 fi
4787
4788 echo "$as_me:4788: checking for library containing regfree" >&5
4789 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
4790 if test "${ac_cv_search_regfree+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793 ac_func_search_save_LIBS=$LIBS
4794 ac_cv_search_regfree=no
4795 cat >conftest.$ac_ext <<_ACEOF
4796 #line 4796 "configure"
4797 #include "confdefs.h"
4798
4799 /* Override any gcc2 internal prototype to avoid an error. */
4800 #ifdef __cplusplus
4801 extern "C"
4802 #endif
4803 /* We use char because int might match the return type of a gcc2
4804 builtin and then its argument prototype would still apply. */
4805 char regfree ();
4806 int
4807 main ()
4808 {
4809 regfree ();
4810 ;
4811 return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (eval echo "$as_me:4815: \"$ac_link\"") >&5
4816 (eval $ac_link) 2>&5
4817 ac_status=$?
4818 echo "$as_me:4818: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -s conftest$ac_exeext'
4821 { (eval echo "$as_me:4821: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:4824: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_cv_search_regfree="none required"
4827 else
4828 echo "$as_me: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4830 fi
4831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4832 if test "$ac_cv_search_regfree" = no; then
4833 for ac_lib in rx posix; do
4834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4835 cat >conftest.$ac_ext <<_ACEOF
4836 #line 4836 "configure"
4837 #include "confdefs.h"
4838
4839 /* Override any gcc2 internal prototype to avoid an error. */
4840 #ifdef __cplusplus
4841 extern "C"
4842 #endif
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4845 char regfree ();
4846 int
4847 main ()
4848 {
4849 regfree ();
4850 ;
4851 return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext conftest$ac_exeext
4855 if { (eval echo "$as_me:4855: \"$ac_link\"") >&5
4856 (eval $ac_link) 2>&5
4857 ac_status=$?
4858 echo "$as_me:4858: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try='test -s conftest$ac_exeext'
4861 { (eval echo "$as_me:4861: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:4864: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_cv_search_regfree="-l$ac_lib"
4867 break
4868 else
4869 echo "$as_me: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4871 fi
4872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4873 done
4874 fi
4875 LIBS=$ac_func_search_save_LIBS
4876 fi
4877 echo "$as_me:4877: result: $ac_cv_search_regfree" >&5
4878 echo "${ECHO_T}$ac_cv_search_regfree" >&6
4879 if test "$ac_cv_search_regfree" != no; then
4880 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
4881
4882 fi
4883
4884 cat >confcache <<\_ACEOF
4885 # This file is a shell script that caches the results of configure
4886 # tests run on this system so they can be shared between configure
4887 # scripts and configure runs, see configure's option --config-cache.
4888 # It is not useful on other systems. If it contains results you don't
4889 # want to keep, you may remove or edit it.
4890 #
4891 # config.status only pays attention to the cache file if you give it
4892 # the --recheck option to rerun configure.
4893 #
4894 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4896 # following values.
4897
4898 _ACEOF
4899
4900 # The following way of writing the cache mishandles newlines in values,
4901 # but we know of no workaround that is simple, portable, and efficient.
4902 # So, don't put newlines in cache variables' values.
4903 # Ultrix sh set writes to stderr and can't be redirected directly,
4904 # and sets the high bit in the cache file unless we assign to the vars.
4905 {
4906 (set) 2>&1 |
4907 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4908 *ac_space=\ *)
4909 # `set' does not quote correctly, so add quotes (double-quote
4910 # substitution turns \\\\ into \\, and sed turns \\ into \).
4911 sed -n \
4912 "s/'/'\\\\''/g;
4913 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4914 ;;
4915 *)
4916 # `set' quotes correctly as required by POSIX, so do not add quotes.
4917 sed -n \
4918 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4919 ;;
4920 esac;
4921 } |
4922 sed '
4923 t clear
4924 : clear
4925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4926 t end
4927 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4928 : end' >>confcache
4929 if cmp -s $cache_file confcache; then :; else
4930 if test -w $cache_file; then
4931 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4932 cat confcache >$cache_file
4933 else
4934 echo "not updating unwritable cache $cache_file"
4935 fi
4936 fi
4937 rm -f confcache
4938
4939 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4940 # Let make expand exec_prefix.
4941 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4942
4943 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4944 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4945 # trailing colons and then remove the whole line if VPATH becomes empty
4946 # (actually we leave an empty line to preserve line numbers).
4947 if test "x$srcdir" = x.; then
4948 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4949 s/:*\$(srcdir):*/:/;
4950 s/:*\${srcdir}:*/:/;
4951 s/:*@srcdir@:*/:/;
4952 s/^\([^=]*=[ ]*\):*/\1/;
4953 s/:*$//;
4954 s/^[^=]*=[ ]*$//;
4955 }'
4956 fi
4957
4958 DEFS=-DHAVE_CONFIG_H
4959
4960 : ${CONFIG_STATUS=./config.status}
4961 ac_clean_files_save=$ac_clean_files
4962 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4963 { echo "$as_me:4963: creating $CONFIG_STATUS" >&5
4964 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4965 cat >$CONFIG_STATUS <<_ACEOF
4966 #! $SHELL
4967 # Generated automatically by configure.
4968 # Run this file to recreate the current configuration.
4969 # Compiler output produced by configure, useful for debugging
4970 # configure, is in config.log if it exists.
4971
4972 debug=false
4973 SHELL=\${CONFIG_SHELL-$SHELL}
4974 ac_cs_invocation="\$0 \$@"
4975
4976 _ACEOF
4977
4978 cat >>$CONFIG_STATUS <<\_ACEOF
4979 # Be Bourne compatible
4980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4981 emulate sh
4982 NULLCMD=:
4983 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4984 set -o posix
4985 fi
4986
4987 # Name of the executable.
4988 as_me=`echo "$0" |sed 's,.*[\\/],,'`
4989
4990 if expr a : '\(a\)' >/dev/null 2>&1; then
4991 as_expr=expr
4992 else
4993 as_expr=false
4994 fi
4995
4996 rm -f conf$$ conf$$.exe conf$$.file
4997 echo >conf$$.file
4998 if ln -s conf$$.file conf$$ 2>/dev/null; then
4999 # We could just check for DJGPP; but this test a) works b) is more generic
5000 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5001 if test -f conf$$.exe; then
5002 # Don't use ln at all; we don't have any links
5003 as_ln_s='cp -p'
5004 else
5005 as_ln_s='ln -s'
5006 fi
5007 elif ln conf$$.file conf$$ 2>/dev/null; then
5008 as_ln_s=ln
5009 else
5010 as_ln_s='cp -p'
5011 fi
5012 rm -f conf$$ conf$$.exe conf$$.file
5013
5014 as_executable_p="test -f"
5015
5016 # Support unset when possible.
5017 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5018 as_unset=unset
5019 else
5020 as_unset=false
5021 fi
5022
5023 # NLS nuisances.
5024 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5025 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5026 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5027 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5028 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5029 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5030 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5031 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5032
5033 # IFS
5034 # We need space, tab and new line, in precisely that order.
5035 as_nl='
5036 '
5037 IFS=" $as_nl"
5038
5039 # CDPATH.
5040 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5041
5042 exec 6>&1
5043
5044 _ACEOF
5045
5046 # Files that config.status was made for.
5047 if test -n "$ac_config_files"; then
5048 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5049 fi
5050
5051 if test -n "$ac_config_headers"; then
5052 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5053 fi
5054
5055 if test -n "$ac_config_links"; then
5056 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5057 fi
5058
5059 if test -n "$ac_config_commands"; then
5060 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5061 fi
5062
5063 cat >>$CONFIG_STATUS <<\EOF
5064
5065 ac_cs_usage="\
5066 \`$as_me' instantiates files from templates according to the
5067 current configuration.
5068
5069 Usage: $0 [OPTIONS] [FILE]...
5070
5071 -h, --help print this help, then exit
5072 -V, --version print version number, then exit
5073 -d, --debug don't remove temporary files
5074 --recheck update $as_me by reconfiguring in the same conditions
5075 --file=FILE[:TEMPLATE]
5076 instantiate the configuration file FILE
5077 --header=FILE[:TEMPLATE]
5078 instantiate the configuration header FILE
5079
5080 Configuration files:
5081 $config_files
5082
5083 Configuration headers:
5084 $config_headers
5085
5086 Report bugs to <bug-autoconf@gnu.org>."
5087 EOF
5088
5089 cat >>$CONFIG_STATUS <<EOF
5090 ac_cs_version="\\
5091 libnbcompat config.status noversion
5092 configured by $0, generated by GNU Autoconf 2.52,
5093 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5094
5095 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5096 Free Software Foundation, Inc.
5097 This config.status script is free software; the Free Software Foundation
5098 gives unlimited permission to copy, distribute and modify it."
5099 srcdir=$srcdir
5100 EOF
5101
5102 cat >>$CONFIG_STATUS <<\EOF
5103 # If no file are specified by the user, then we need to provide default
5104 # value. By we need to know if files were specified by the user.
5105 ac_need_defaults=:
5106 while test $# != 0
5107 do
5108 case $1 in
5109 --*=*)
5110 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5111 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5112 shift
5113 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5114 shift
5115 ;;
5116 -*);;
5117 *) # This is not an option, so the user has probably given explicit
5118 # arguments.
5119 ac_need_defaults=false;;
5120 esac
5121
5122 case $1 in
5123 # Handling of the options.
5124 EOF
5125 cat >>$CONFIG_STATUS <<EOF
5126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5127 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5128 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5129 EOF
5130 cat >>$CONFIG_STATUS <<\EOF
5131 --version | --vers* | -V )
5132 echo "$ac_cs_version"; exit 0 ;;
5133 --he | --h)
5134 # Conflict between --help and --header
5135 { { echo "$as_me:5135: error: ambiguous option: $1
5136 Try \`$0 --help' for more information." >&5
5137 echo "$as_me: error: ambiguous option: $1
5138 Try \`$0 --help' for more information." >&2;}
5139 { (exit 1); exit 1; }; };;
5140 --help | --hel | -h )
5141 echo "$ac_cs_usage"; exit 0 ;;
5142 --debug | --d* | -d )
5143 debug=: ;;
5144 --file | --fil | --fi | --f )
5145 shift
5146 CONFIG_FILES="$CONFIG_FILES $1"
5147 ac_need_defaults=false;;
5148 --header | --heade | --head | --hea )
5149 shift
5150 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5151 ac_need_defaults=false;;
5152
5153 # This is an error.
5154 -*) { { echo "$as_me:5154: error: unrecognized option: $1
5155 Try \`$0 --help' for more information." >&5
5156 echo "$as_me: error: unrecognized option: $1
5157 Try \`$0 --help' for more information." >&2;}
5158 { (exit 1); exit 1; }; } ;;
5159
5160 *) ac_config_targets="$ac_config_targets $1" ;;
5161
5162 esac
5163 shift
5164 done
5165
5166 exec 5>>config.log
5167 cat >&5 << _ACEOF
5168
5169 ## ----------------------- ##
5170 ## Running config.status. ##
5171 ## ----------------------- ##
5172
5173 This file was extended by $as_me (libnbcompat noversion) 2.52, executed with
5174 CONFIG_FILES = $CONFIG_FILES
5175 CONFIG_HEADERS = $CONFIG_HEADERS
5176 CONFIG_LINKS = $CONFIG_LINKS
5177 CONFIG_COMMANDS = $CONFIG_COMMANDS
5178 > $ac_cs_invocation
5179 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5180
5181 _ACEOF
5182 EOF
5183
5184 cat >>$CONFIG_STATUS <<\EOF
5185 for ac_config_target in $ac_config_targets
5186 do
5187 case "$ac_config_target" in
5188 # Handling of arguments.
5189 "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
5190 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5191 *) { { echo "$as_me:5191: error: invalid argument: $ac_config_target" >&5
5192 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5193 { (exit 1); exit 1; }; };;
5194 esac
5195 done
5196
5197 # If the user did not use the arguments to specify the items to instantiate,
5198 # then the envvar interface is used. Set only those that are not.
5199 # We use the long form for the default assignment because of an extremely
5200 # bizarre bug on SunOS 4.1.3.
5201 if $ac_need_defaults; then
5202 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5203 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5204 fi
5205
5206 # Create a temporary directory, and hook for its removal unless debugging.
5207 $debug ||
5208 {
5209 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5210 trap '{ (exit 1); exit 1; }' 1 2 13 15
5211 }
5212
5213 # Create a (secure) tmp directory for tmp files.
5214 : ${TMPDIR=/tmp}
5215 {
5216 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5217 test -n "$tmp" && test -d "$tmp"
5218 } ||
5219 {
5220 tmp=$TMPDIR/cs$$-$RANDOM
5221 (umask 077 && mkdir $tmp)
5222 } ||
5223 {
5224 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5225 { (exit 1); exit 1; }
5226 }
5227
5228 EOF
5229
5230 cat >>$CONFIG_STATUS <<EOF
5231
5232 #
5233 # CONFIG_FILES section.
5234 #
5235
5236 # No need to generate the scripts if there are no CONFIG_FILES.
5237 # This happens for instance when ./config.status config.h
5238 if test -n "\$CONFIG_FILES"; then
5239 # Protect against being on the right side of a sed subst in config.status.
5240 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5241 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5242 s,@SHELL@,$SHELL,;t t
5243 s,@exec_prefix@,$exec_prefix,;t t
5244 s,@prefix@,$prefix,;t t
5245 s,@program_transform_name@,$program_transform_name,;t t
5246 s,@bindir@,$bindir,;t t
5247 s,@sbindir@,$sbindir,;t t
5248 s,@libexecdir@,$libexecdir,;t t
5249 s,@datadir@,$datadir,;t t
5250 s,@sysconfdir@,$sysconfdir,;t t
5251 s,@sharedstatedir@,$sharedstatedir,;t t
5252 s,@localstatedir@,$localstatedir,;t t
5253 s,@libdir@,$libdir,;t t
5254 s,@includedir@,$includedir,;t t
5255 s,@oldincludedir@,$oldincludedir,;t t
5256 s,@infodir@,$infodir,;t t
5257 s,@mandir@,$mandir,;t t
5258 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5259 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5260 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5261 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5262 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5263 s,@build_alias@,$build_alias,;t t
5264 s,@host_alias@,$host_alias,;t t
5265 s,@target_alias@,$target_alias,;t t
5266 s,@ECHO_C@,$ECHO_C,;t t
5267 s,@ECHO_N@,$ECHO_N,;t t
5268 s,@ECHO_T@,$ECHO_T,;t t
5269 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5270 s,@DEFS@,$DEFS,;t t
5271 s,@LIBS@,$LIBS,;t t
5272 s,@CC@,$CC,;t t
5273 s,@CFLAGS@,$CFLAGS,;t t
5274 s,@LDFLAGS@,$LDFLAGS,;t t
5275 s,@CPPFLAGS@,$CPPFLAGS,;t t
5276 s,@ac_ct_CC@,$ac_ct_CC,;t t
5277 s,@EXEEXT@,$EXEEXT,;t t
5278 s,@OBJEXT@,$OBJEXT,;t t
5279 s,@CPP@,$CPP,;t t
5280 s,@ALLOCA@,$ALLOCA,;t t
5281 CEOF
5282
5283 EOF
5284
5285 cat >>$CONFIG_STATUS <<\EOF
5286 # Split the substitutions into bite-sized pieces for seds with
5287 # small command number limits, like on Digital OSF/1 and HP-UX.
5288 ac_max_sed_lines=48
5289 ac_sed_frag=1 # Number of current file.
5290 ac_beg=1 # First line for current file.
5291 ac_end=$ac_max_sed_lines # Line after last line for current file.
5292 ac_more_lines=:
5293 ac_sed_cmds=
5294 while $ac_more_lines; do
5295 if test $ac_beg -gt 1; then
5296 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5297 else
5298 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5299 fi
5300 if test ! -s $tmp/subs.frag; then
5301 ac_more_lines=false
5302 else
5303 # The purpose of the label and of the branching condition is to
5304 # speed up the sed processing (if there are no `@' at all, there
5305 # is no need to browse any of the substitutions).
5306 # These are the two extra sed commands mentioned above.
5307 (echo ':t
5308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5309 if test -z "$ac_sed_cmds"; then
5310 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5311 else
5312 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5313 fi
5314 ac_sed_frag=`expr $ac_sed_frag + 1`
5315 ac_beg=$ac_end
5316 ac_end=`expr $ac_end + $ac_max_sed_lines`
5317 fi
5318 done
5319 if test -z "$ac_sed_cmds"; then
5320 ac_sed_cmds=cat
5321 fi
5322 fi # test -n "$CONFIG_FILES"
5323
5324 EOF
5325 cat >>$CONFIG_STATUS <<\EOF
5326 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5328 case $ac_file in
5329 - | *:- | *:-:* ) # input from stdin
5330 cat >$tmp/stdin
5331 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5332 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5333 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5334 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5335 * ) ac_file_in=$ac_file.in ;;
5336 esac
5337
5338 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5339 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5340 X"$ac_file" : 'X\(//\)[^/]' \| \
5341 X"$ac_file" : 'X\(//\)$' \| \
5342 X"$ac_file" : 'X\(/\)' \| \
5343 . : '\(.\)' 2>/dev/null ||
5344 echo X"$ac_file" |
5345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5347 /^X\(\/\/\)$/{ s//\1/; q; }
5348 /^X\(\/\).*/{ s//\1/; q; }
5349 s/.*/./; q'`
5350 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5351 { case "$ac_dir" in
5352 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5353 *) as_incr_dir=.;;
5354 esac
5355 as_dummy="$ac_dir"
5356 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5357 case $as_mkdir_dir in
5358 # Skip DOS drivespec
5359 ?:) as_incr_dir=$as_mkdir_dir ;;
5360 *)
5361 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5362 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5363 ;;
5364 esac
5365 done; }
5366
5367 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5368 # A "../" for each directory in $ac_dir_suffix.
5369 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5370 else
5371 ac_dir_suffix= ac_dots=
5372 fi
5373
5374 case $srcdir in
5375 .) ac_srcdir=.
5376 if test -z "$ac_dots"; then
5377 ac_top_srcdir=.
5378 else
5379 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5380 fi ;;
5381 [\\/]* | ?:[\\/]* )
5382 ac_srcdir=$srcdir$ac_dir_suffix;
5383 ac_top_srcdir=$srcdir ;;
5384 *) # Relative path.
5385 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5386 ac_top_srcdir=$ac_dots$srcdir ;;
5387 esac
5388
5389 if test x"$ac_file" != x-; then
5390 { echo "$as_me:5390: creating $ac_file" >&5
5391 echo "$as_me: creating $ac_file" >&6;}
5392 rm -f "$ac_file"
5393 fi
5394 # Let's still pretend it is `configure' which instantiates (i.e., don't
5395 # use $as_me), people would be surprised to read:
5396 # /* config.h. Generated automatically by config.status. */
5397 configure_input="Generated automatically from `echo $ac_file_in |
5398 sed 's,.*/,,'` by configure."
5399
5400 # First look for the input files in the build tree, otherwise in the
5401 # src tree.
5402 ac_file_inputs=`IFS=:
5403 for f in $ac_file_in; do
5404 case $f in
5405 -) echo $tmp/stdin ;;
5406 [\\/$]*)
5407 # Absolute (can't be DOS-style, as IFS=:)
5408 test -f "$f" || { { echo "$as_me:5408: error: cannot find input file: $f" >&5
5409 echo "$as_me: error: cannot find input file: $f" >&2;}
5410 { (exit 1); exit 1; }; }
5411 echo $f;;
5412 *) # Relative
5413 if test -f "$f"; then
5414 # Build tree
5415 echo $f
5416 elif test -f "$srcdir/$f"; then
5417 # Source tree
5418 echo $srcdir/$f
5419 else
5420 # /dev/null tree
5421 { { echo "$as_me:5421: error: cannot find input file: $f" >&5
5422 echo "$as_me: error: cannot find input file: $f" >&2;}
5423 { (exit 1); exit 1; }; }
5424 fi;;
5425 esac
5426 done` || { (exit 1); exit 1; }
5427 EOF
5428 cat >>$CONFIG_STATUS <<EOF
5429 sed "$ac_vpsub
5430 $extrasub
5431 EOF
5432 cat >>$CONFIG_STATUS <<\EOF
5433 :t
5434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5435 s,@configure_input@,$configure_input,;t t
5436 s,@srcdir@,$ac_srcdir,;t t
5437 s,@top_srcdir@,$ac_top_srcdir,;t t
5438 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5439 rm -f $tmp/stdin
5440 if test x"$ac_file" != x-; then
5441 mv $tmp/out $ac_file
5442 else
5443 cat $tmp/out
5444 rm -f $tmp/out
5445 fi
5446
5447 done
5448 EOF
5449 cat >>$CONFIG_STATUS <<\EOF
5450
5451 #
5452 # CONFIG_HEADER section.
5453 #
5454
5455 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5456 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5457 #
5458 # ac_d sets the value in "#define NAME VALUE" lines.
5459 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5460 ac_dB='[ ].*$,\1#\2'
5461 ac_dC=' '
5462 ac_dD=',;t'
5463 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5464 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5465 ac_uB='$,\1#\2define\3'
5466 ac_uC=' '
5467 ac_uD=',;t'
5468
5469 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5470 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5471 case $ac_file in
5472 - | *:- | *:-:* ) # input from stdin
5473 cat >$tmp/stdin
5474 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5476 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5478 * ) ac_file_in=$ac_file.in ;;
5479 esac
5480
5481 test x"$ac_file" != x- && { echo "$as_me:5481: creating $ac_file" >&5
5482 echo "$as_me: creating $ac_file" >&6;}
5483
5484 # First look for the input files in the build tree, otherwise in the
5485 # src tree.
5486 ac_file_inputs=`IFS=:
5487 for f in $ac_file_in; do
5488 case $f in
5489 -) echo $tmp/stdin ;;
5490 [\\/$]*)
5491 # Absolute (can't be DOS-style, as IFS=:)
5492 test -f "$f" || { { echo "$as_me:5492: error: cannot find input file: $f" >&5
5493 echo "$as_me: error: cannot find input file: $f" >&2;}
5494 { (exit 1); exit 1; }; }
5495 echo $f;;
5496 *) # Relative
5497 if test -f "$f"; then
5498 # Build tree
5499 echo $f
5500 elif test -f "$srcdir/$f"; then
5501 # Source tree
5502 echo $srcdir/$f
5503 else
5504 # /dev/null tree
5505 { { echo "$as_me:5505: error: cannot find input file: $f" >&5
5506 echo "$as_me: error: cannot find input file: $f" >&2;}
5507 { (exit 1); exit 1; }; }
5508 fi;;
5509 esac
5510 done` || { (exit 1); exit 1; }
5511 # Remove the trailing spaces.
5512 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5513
5514 EOF
5515
5516 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5517 # `conftest.undefs', that substitutes the proper values into
5518 # config.h.in to produce config.h. The first handles `#define'
5519 # templates, and the second `#undef' templates.
5520 # And first: Protect against being on the right side of a sed subst in
5521 # config.status. Protect against being in an unquoted here document
5522 # in config.status.
5523 rm -f conftest.defines conftest.undefs
5524 # Using a here document instead of a string reduces the quoting nightmare.
5525 # Putting comments in sed scripts is not portable.
5526 #
5527 # `end' is used to avoid that the second main sed command (meant for
5528 # 0-ary CPP macros) applies to n-ary macro definitions.
5529 # See the Autoconf documentation for `clear'.
5530 cat >confdef2sed.sed <<\EOF
5531 s/[\\&,]/\\&/g
5532 s,[\\$`],\\&,g
5533 t clear
5534 : clear
5535 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5536 t end
5537 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5538 : end
5539 EOF
5540 # If some macros were called several times there might be several times
5541 # the same #defines, which is useless. Nevertheless, we may not want to
5542 # sort them, since we want the *last* AC-DEFINE to be honored.
5543 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5544 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5545 rm -f confdef2sed.sed
5546
5547 # This sed command replaces #undef with comments. This is necessary, for
5548 # example, in the case of _POSIX_SOURCE, which is predefined and required
5549 # on some systems where configure will not decide to define it.
5550 cat >>conftest.undefs <<\EOF
5551 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5552 EOF
5553
5554 # Break up conftest.defines because some shells have a limit on the size
5555 # of here documents, and old seds have small limits too (100 cmds).
5556 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5557 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5558 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5559 echo ' :' >>$CONFIG_STATUS
5560 rm -f conftest.tail
5561 while grep . conftest.defines >/dev/null
5562 do
5563 # Write a limited-size here document to $tmp/defines.sed.
5564 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5565 # Speed up: don't consider the non `#define' lines.
5566 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5567 # Work around the forget-to-reset-the-flag bug.
5568 echo 't clr' >>$CONFIG_STATUS
5569 echo ': clr' >>$CONFIG_STATUS
5570 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5571 echo 'CEOF
5572 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5573 rm -f $tmp/in
5574 mv $tmp/out $tmp/in
5575 ' >>$CONFIG_STATUS
5576 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5577 rm -f conftest.defines
5578 mv conftest.tail conftest.defines
5579 done
5580 rm -f conftest.defines
5581 echo ' fi # egrep' >>$CONFIG_STATUS
5582 echo >>$CONFIG_STATUS
5583
5584 # Break up conftest.undefs because some shells have a limit on the size
5585 # of here documents, and old seds have small limits too (100 cmds).
5586 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5587 rm -f conftest.tail
5588 while grep . conftest.undefs >/dev/null
5589 do
5590 # Write a limited-size here document to $tmp/undefs.sed.
5591 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5592 # Speed up: don't consider the non `#undef'
5593 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5594 # Work around the forget-to-reset-the-flag bug.
5595 echo 't clr' >>$CONFIG_STATUS
5596 echo ': clr' >>$CONFIG_STATUS
5597 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5598 echo 'CEOF
5599 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5600 rm -f $tmp/in
5601 mv $tmp/out $tmp/in
5602 ' >>$CONFIG_STATUS
5603 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5604 rm -f conftest.undefs
5605 mv conftest.tail conftest.undefs
5606 done
5607 rm -f conftest.undefs
5608
5609 cat >>$CONFIG_STATUS <<\EOF
5610 # Let's still pretend it is `configure' which instantiates (i.e., don't
5611 # use $as_me), people would be surprised to read:
5612 # /* config.h. Generated automatically by config.status. */
5613 if test x"$ac_file" = x-; then
5614 echo "/* Generated automatically by configure. */" >$tmp/config.h
5615 else
5616 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5617 fi
5618 cat $tmp/in >>$tmp/config.h
5619 rm -f $tmp/in
5620 if test x"$ac_file" != x-; then
5621 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5622 { echo "$as_me:5622: $ac_file is unchanged" >&5
5623 echo "$as_me: $ac_file is unchanged" >&6;}
5624 else
5625 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5626 X"$ac_file" : 'X\(//\)[^/]' \| \
5627 X"$ac_file" : 'X\(//\)$' \| \
5628 X"$ac_file" : 'X\(/\)' \| \
5629 . : '\(.\)' 2>/dev/null ||
5630 echo X"$ac_file" |
5631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5633 /^X\(\/\/\)$/{ s//\1/; q; }
5634 /^X\(\/\).*/{ s//\1/; q; }
5635 s/.*/./; q'`
5636 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5637 { case "$ac_dir" in
5638 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5639 *) as_incr_dir=.;;
5640 esac
5641 as_dummy="$ac_dir"
5642 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5643 case $as_mkdir_dir in
5644 # Skip DOS drivespec
5645 ?:) as_incr_dir=$as_mkdir_dir ;;
5646 *)
5647 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5648 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5649 ;;
5650 esac
5651 done; }
5652
5653 fi
5654 rm -f $ac_file
5655 mv $tmp/config.h $ac_file
5656 fi
5657 else
5658 cat $tmp/config.h
5659 rm -f $tmp/config.h
5660 fi
5661 done
5662 EOF
5663
5664 cat >>$CONFIG_STATUS <<\EOF
5665
5666 { (exit 0); exit 0; }
5667 EOF
5668 chmod +x $CONFIG_STATUS
5669 ac_clean_files=$ac_clean_files_save
5670
5671 # configure is writing to config.log, and then calls config.status.
5672 # config.status does its own redirection, appending to config.log.
5673 # Unfortunately, on DOS this fails, as config.log is still kept open
5674 # by configure, so config.status won't be able to write to it; its
5675 # output is simply discarded. So we exec the FD to /dev/null,
5676 # effectively closing config.log, so it can be properly (re)opened and
5677 # appended to by config.status. When coming back to configure, we
5678 # need to make the FD available again.
5679 if test "$no_create" != yes; then
5680 ac_cs_success=:
5681 exec 5>/dev/null
5682 $SHELL $CONFIG_STATUS || ac_cs_success=false
5683 exec 5>>config.log
5684 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5685 # would make configure fail if this is the last instruction.
5686 $ac_cs_success || { (exit 1); exit 1; }
5687 fi
5688
5689