configure revision 1.9 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 features.h inttypes.h malloc.h stddef.h stdint.h
2471 do
2472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2473 echo "$as_me:2473: checking for $ac_header" >&5
2474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 cat >conftest.$ac_ext <<_ACEOF
2479 #line 2479 "configure"
2480 #include "confdefs.h"
2481 #include <$ac_header>
2482 _ACEOF
2483 if { (eval echo "$as_me:2483: \"$ac_cpp conftest.$ac_ext\"") >&5
2484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2485 ac_status=$?
2486 egrep -v '^ *\+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2488 cat conftest.err >&5
2489 echo "$as_me:2489: \$? = $ac_status" >&5
2490 (exit $ac_status); } >/dev/null; then
2491 if test -s conftest.err; then
2492 ac_cpp_err=$ac_c_preproc_warn_flag
2493 else
2494 ac_cpp_err=
2495 fi
2496 else
2497 ac_cpp_err=yes
2498 fi
2499 if test -z "$ac_cpp_err"; then
2500 eval "$as_ac_Header=yes"
2501 else
2502 echo "$as_me: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2504 eval "$as_ac_Header=no"
2505 fi
2506 rm -f conftest.err conftest.$ac_ext
2507 fi
2508 echo "$as_me:2508: result: `eval echo '${'$as_ac_Header'}'`" >&5
2509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2511 cat >>confdefs.h <<EOF
2512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2513 EOF
2514
2515 fi
2516 done
2517
2518 for ac_header in machine/bswap.h sys/cdefs.h sys/featuretest.h \
2519 err.h libgen.h paths.h util.h
2520 do
2521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2522 echo "$as_me:2522: checking for $ac_header" >&5
2523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line 2528 "configure"
2529 #include "confdefs.h"
2530 #include <$ac_header>
2531 _ACEOF
2532 if { (eval echo "$as_me:2532: \"$ac_cpp conftest.$ac_ext\"") >&5
2533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2534 ac_status=$?
2535 egrep -v '^ *\+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:2538: \$? = $ac_status" >&5
2539 (exit $ac_status); } >/dev/null; then
2540 if test -s conftest.err; then
2541 ac_cpp_err=$ac_c_preproc_warn_flag
2542 else
2543 ac_cpp_err=
2544 fi
2545 else
2546 ac_cpp_err=yes
2547 fi
2548 if test -z "$ac_cpp_err"; then
2549 eval "$as_ac_Header=yes"
2550 else
2551 echo "$as_me: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2553 eval "$as_ac_Header=no"
2554 fi
2555 rm -f conftest.err conftest.$ac_ext
2556 fi
2557 echo "$as_me:2557: result: `eval echo '${'$as_ac_Header'}'`" >&5
2558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2560 cat >>confdefs.h <<EOF
2561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2562 EOF
2563
2564 else
2565 touch include/$ac_header
2566 fi
2567 done
2568
2569 for ac_header in rpc/types.h fts.h getopt.h netconfig.h vis.h
2570 do
2571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2572 echo "$as_me:2572: checking for $ac_header" >&5
2573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line 2578 "configure"
2579 #include "confdefs.h"
2580 #include <$ac_header>
2581 _ACEOF
2582 if { (eval echo "$as_me:2582: \"$ac_cpp conftest.$ac_ext\"") >&5
2583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2584 ac_status=$?
2585 egrep -v '^ *\+' conftest.er1 >conftest.err
2586 rm -f conftest.er1
2587 cat conftest.err >&5
2588 echo "$as_me:2588: \$? = $ac_status" >&5
2589 (exit $ac_status); } >/dev/null; then
2590 if test -s conftest.err; then
2591 ac_cpp_err=$ac_c_preproc_warn_flag
2592 else
2593 ac_cpp_err=
2594 fi
2595 else
2596 ac_cpp_err=yes
2597 fi
2598 if test -z "$ac_cpp_err"; then
2599 eval "$as_ac_Header=yes"
2600 else
2601 echo "$as_me: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2603 eval "$as_ac_Header=no"
2604 fi
2605 rm -f conftest.err conftest.$ac_ext
2606 fi
2607 echo "$as_me:2607: result: `eval echo '${'$as_ac_Header'}'`" >&5
2608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2610 cat >>confdefs.h <<EOF
2611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2612 EOF
2613
2614 else
2615 echo '#include "'$srcdir/../../include/$ac_header'"' >include/$ac_header
2616 fi
2617 done
2618
2619 # Typedefs.
2620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2621
2622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2623 inttypes.h stdint.h unistd.h
2624 do
2625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2626 echo "$as_me:2626: checking for $ac_header" >&5
2627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 cat >conftest.$ac_ext <<_ACEOF
2632 #line 2632 "configure"
2633 #include "confdefs.h"
2634 $ac_includes_default
2635 #include <$ac_header>
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:2638: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>&5
2640 ac_status=$?
2641 echo "$as_me:2641: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:2644: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:2647: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 eval "$as_ac_Header=yes"
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2653 eval "$as_ac_Header=no"
2654 fi
2655 rm -f conftest.$ac_objext conftest.$ac_ext
2656 fi
2657 echo "$as_me:2657: result: `eval echo '${'$as_ac_Header'}'`" >&5
2658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2660 cat >>confdefs.h <<EOF
2661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2662 EOF
2663
2664 fi
2665 done
2666
2667 echo "$as_me:2667: checking for size_t" >&5
2668 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2669 if test "${ac_cv_type_size_t+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672 cat >conftest.$ac_ext <<_ACEOF
2673 #line 2673 "configure"
2674 #include "confdefs.h"
2675 $ac_includes_default
2676 int
2677 main ()
2678 {
2679 if ((size_t *) 0)
2680 return 0;
2681 if (sizeof (size_t))
2682 return 0;
2683 ;
2684 return 0;
2685 }
2686 _ACEOF
2687 rm -f conftest.$ac_objext
2688 if { (eval echo "$as_me:2688: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>&5
2690 ac_status=$?
2691 echo "$as_me:2691: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 { ac_try='test -s conftest.$ac_objext'
2694 { (eval echo "$as_me:2694: \"$ac_try\"") >&5
2695 (eval $ac_try) 2>&5
2696 ac_status=$?
2697 echo "$as_me:2697: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2699 ac_cv_type_size_t=yes
2700 else
2701 echo "$as_me: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2703 ac_cv_type_size_t=no
2704 fi
2705 rm -f conftest.$ac_objext conftest.$ac_ext
2706 fi
2707 echo "$as_me:2707: result: $ac_cv_type_size_t" >&5
2708 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2709 if test $ac_cv_type_size_t = yes; then
2710 :
2711 else
2712
2713 cat >>confdefs.h <<EOF
2714 #define size_t unsigned
2715 EOF
2716
2717 fi
2718
2719 echo "$as_me:2719: checking for id_t" >&5
2720 echo $ECHO_N "checking for id_t... $ECHO_C" >&6
2721 if test "${ac_cv_type_id_t+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 cat >conftest.$ac_ext <<_ACEOF
2725 #line 2725 "configure"
2726 #include "confdefs.h"
2727 $ac_includes_default
2728 int
2729 main ()
2730 {
2731 if ((id_t *) 0)
2732 return 0;
2733 if (sizeof (id_t))
2734 return 0;
2735 ;
2736 return 0;
2737 }
2738 _ACEOF
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:2740: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>&5
2742 ac_status=$?
2743 echo "$as_me:2743: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:2746: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:2749: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_cv_type_id_t=yes
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 ac_cv_type_id_t=no
2756 fi
2757 rm -f conftest.$ac_objext conftest.$ac_ext
2758 fi
2759 echo "$as_me:2759: result: $ac_cv_type_id_t" >&5
2760 echo "${ECHO_T}$ac_cv_type_id_t" >&6
2761 if test $ac_cv_type_id_t = yes; then
2762
2763 cat >>confdefs.h <<EOF
2764 #define HAVE_ID_T 1
2765 EOF
2766
2767 fi
2768 echo "$as_me:2768: checking for long long" >&5
2769 echo $ECHO_N "checking for long long... $ECHO_C" >&6
2770 if test "${ac_cv_type_long_long+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 cat >conftest.$ac_ext <<_ACEOF
2774 #line 2774 "configure"
2775 #include "confdefs.h"
2776 $ac_includes_default
2777 int
2778 main ()
2779 {
2780 if ((long long *) 0)
2781 return 0;
2782 if (sizeof (long long))
2783 return 0;
2784 ;
2785 return 0;
2786 }
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:2789: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>&5
2791 ac_status=$?
2792 echo "$as_me:2792: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:2795: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:2798: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_type_long_long=yes
2801 else
2802 echo "$as_me: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2804 ac_cv_type_long_long=no
2805 fi
2806 rm -f conftest.$ac_objext conftest.$ac_ext
2807 fi
2808 echo "$as_me:2808: result: $ac_cv_type_long_long" >&5
2809 echo "${ECHO_T}$ac_cv_type_long_long" >&6
2810 if test $ac_cv_type_long_long = yes; then
2811
2812 cat >>confdefs.h <<EOF
2813 #define HAVE_LONG_LONG 1
2814 EOF
2815
2816 fi
2817 echo "$as_me:2817: checking for u_quad_t" >&5
2818 echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
2819 if test "${ac_cv_type_u_quad_t+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #line 2823 "configure"
2824 #include "confdefs.h"
2825 $ac_includes_default
2826 int
2827 main ()
2828 {
2829 if ((u_quad_t *) 0)
2830 return 0;
2831 if (sizeof (u_quad_t))
2832 return 0;
2833 ;
2834 return 0;
2835 }
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:2838: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>&5
2840 ac_status=$?
2841 echo "$as_me:2841: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:2844: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:2847: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 ac_cv_type_u_quad_t=yes
2850 else
2851 echo "$as_me: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2853 ac_cv_type_u_quad_t=no
2854 fi
2855 rm -f conftest.$ac_objext conftest.$ac_ext
2856 fi
2857 echo "$as_me:2857: result: $ac_cv_type_u_quad_t" >&5
2858 echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
2859 if test $ac_cv_type_u_quad_t = yes; then
2860
2861 cat >>confdefs.h <<EOF
2862 #define HAVE_U_QUAD_T 1
2863 EOF
2864
2865 fi
2866
2867 echo "$as_me:2867: checking for uint8_t" >&5
2868 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
2869 if test "${ac_cv_type_uint8_t+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line 2873 "configure"
2874 #include "confdefs.h"
2875 $ac_includes_default
2876 int
2877 main ()
2878 {
2879 if ((uint8_t *) 0)
2880 return 0;
2881 if (sizeof (uint8_t))
2882 return 0;
2883 ;
2884 return 0;
2885 }
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:2888: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>&5
2890 ac_status=$?
2891 echo "$as_me:2891: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:2894: \"$ac_try\"") >&5
2895 (eval $ac_try) 2>&5
2896 ac_status=$?
2897 echo "$as_me:2897: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 ac_cv_type_uint8_t=yes
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2903 ac_cv_type_uint8_t=no
2904 fi
2905 rm -f conftest.$ac_objext conftest.$ac_ext
2906 fi
2907 echo "$as_me:2907: result: $ac_cv_type_uint8_t" >&5
2908 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
2909 if test $ac_cv_type_uint8_t = yes; then
2910 :
2911 else
2912
2913 echo "$as_me:2913: checking for u_int8_t" >&5
2914 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
2915 if test "${ac_cv_type_u_int8_t+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 cat >conftest.$ac_ext <<_ACEOF
2919 #line 2919 "configure"
2920 #include "confdefs.h"
2921 $ac_includes_default
2922 int
2923 main ()
2924 {
2925 if ((u_int8_t *) 0)
2926 return 0;
2927 if (sizeof (u_int8_t))
2928 return 0;
2929 ;
2930 return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:2934: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>&5
2936 ac_status=$?
2937 echo "$as_me:2937: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -s conftest.$ac_objext'
2940 { (eval echo "$as_me:2940: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:2943: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 ac_cv_type_u_int8_t=yes
2946 else
2947 echo "$as_me: failed program was:" >&5
2948 cat conftest.$ac_ext >&5
2949 ac_cv_type_u_int8_t=no
2950 fi
2951 rm -f conftest.$ac_objext conftest.$ac_ext
2952 fi
2953 echo "$as_me:2953: result: $ac_cv_type_u_int8_t" >&5
2954 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
2955 if test $ac_cv_type_u_int8_t = yes; then
2956 cat >>confdefs.h <<\EOF
2957 #define uint8_t u_int8_t
2958 EOF
2959
2960 else
2961 { { echo "$as_me:2961: error: cannot find a suitable type for uint8_t" >&5
2962 echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
2963 { (exit 1); exit 1; }; }
2964 fi
2965
2966 fi
2967
2968 echo "$as_me:2968: checking for u_int8_t" >&5
2969 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
2970 if test "${ac_cv_type_u_int8_t+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973 cat >conftest.$ac_ext <<_ACEOF
2974 #line 2974 "configure"
2975 #include "confdefs.h"
2976 $ac_includes_default
2977 int
2978 main ()
2979 {
2980 if ((u_int8_t *) 0)
2981 return 0;
2982 if (sizeof (u_int8_t))
2983 return 0;
2984 ;
2985 return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2991 ac_status=$?
2992 echo "$as_me:2992: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:2995: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 ac_cv_type_u_int8_t=yes
3001 else
3002 echo "$as_me: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3004 ac_cv_type_u_int8_t=no
3005 fi
3006 rm -f conftest.$ac_objext conftest.$ac_ext
3007 fi
3008 echo "$as_me:3008: result: $ac_cv_type_u_int8_t" >&5
3009 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3010 if test $ac_cv_type_u_int8_t = yes; then
3011 :
3012 else
3013
3014 echo "$as_me:3014: checking for uint8_t" >&5
3015 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3016 if test "${ac_cv_type_uint8_t+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019 cat >conftest.$ac_ext <<_ACEOF
3020 #line 3020 "configure"
3021 #include "confdefs.h"
3022 $ac_includes_default
3023 int
3024 main ()
3025 {
3026 if ((uint8_t *) 0)
3027 return 0;
3028 if (sizeof (uint8_t))
3029 return 0;
3030 ;
3031 return 0;
3032 }
3033 _ACEOF
3034 rm -f conftest.$ac_objext
3035 if { (eval echo "$as_me:3035: \"$ac_compile\"") >&5
3036 (eval $ac_compile) 2>&5
3037 ac_status=$?
3038 echo "$as_me:3038: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -s conftest.$ac_objext'
3041 { (eval echo "$as_me:3041: \"$ac_try\"") >&5
3042 (eval $ac_try) 2>&5
3043 ac_status=$?
3044 echo "$as_me:3044: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 ac_cv_type_uint8_t=yes
3047 else
3048 echo "$as_me: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3050 ac_cv_type_uint8_t=no
3051 fi
3052 rm -f conftest.$ac_objext conftest.$ac_ext
3053 fi
3054 echo "$as_me:3054: result: $ac_cv_type_uint8_t" >&5
3055 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
3056 if test $ac_cv_type_uint8_t = yes; then
3057 cat >>confdefs.h <<\EOF
3058 #define u_int8_t uint8_t
3059 EOF
3060
3061 else
3062 { { echo "$as_me:3062: error: cannot find a suitable type for u_int8_t" >&5
3063 echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
3064 { (exit 1); exit 1; }; }
3065 fi
3066
3067 fi
3068
3069 echo "$as_me:3069: checking for uint16_t" >&5
3070 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3071 if test "${ac_cv_type_uint16_t+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074 cat >conftest.$ac_ext <<_ACEOF
3075 #line 3075 "configure"
3076 #include "confdefs.h"
3077 $ac_includes_default
3078 int
3079 main ()
3080 {
3081 if ((uint16_t *) 0)
3082 return 0;
3083 if (sizeof (uint16_t))
3084 return 0;
3085 ;
3086 return 0;
3087 }
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:3090: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>&5
3092 ac_status=$?
3093 echo "$as_me:3093: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -s conftest.$ac_objext'
3096 { (eval echo "$as_me:3096: \"$ac_try\"") >&5
3097 (eval $ac_try) 2>&5
3098 ac_status=$?
3099 echo "$as_me:3099: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 ac_cv_type_uint16_t=yes
3102 else
3103 echo "$as_me: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3105 ac_cv_type_uint16_t=no
3106 fi
3107 rm -f conftest.$ac_objext conftest.$ac_ext
3108 fi
3109 echo "$as_me:3109: result: $ac_cv_type_uint16_t" >&5
3110 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3111 if test $ac_cv_type_uint16_t = yes; then
3112 :
3113 else
3114
3115 echo "$as_me:3115: checking for u_int16_t" >&5
3116 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3117 if test "${ac_cv_type_u_int16_t+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120 cat >conftest.$ac_ext <<_ACEOF
3121 #line 3121 "configure"
3122 #include "confdefs.h"
3123 $ac_includes_default
3124 int
3125 main ()
3126 {
3127 if ((u_int16_t *) 0)
3128 return 0;
3129 if (sizeof (u_int16_t))
3130 return 0;
3131 ;
3132 return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (eval echo "$as_me:3136: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3138 ac_status=$?
3139 echo "$as_me:3139: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:3142: \"$ac_try\"") >&5
3143 (eval $ac_try) 2>&5
3144 ac_status=$?
3145 echo "$as_me:3145: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_type_u_int16_t=yes
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3151 ac_cv_type_u_int16_t=no
3152 fi
3153 rm -f conftest.$ac_objext conftest.$ac_ext
3154 fi
3155 echo "$as_me:3155: result: $ac_cv_type_u_int16_t" >&5
3156 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3157 if test $ac_cv_type_u_int16_t = yes; then
3158 cat >>confdefs.h <<\EOF
3159 #define uint16_t u_int16_t
3160 EOF
3161
3162 else
3163 { { echo "$as_me:3163: error: cannot find a suitable type for uint16_t" >&5
3164 echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
3165 { (exit 1); exit 1; }; }
3166 fi
3167
3168 fi
3169
3170 echo "$as_me:3170: checking for u_int16_t" >&5
3171 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3172 if test "${ac_cv_type_u_int16_t+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175 cat >conftest.$ac_ext <<_ACEOF
3176 #line 3176 "configure"
3177 #include "confdefs.h"
3178 $ac_includes_default
3179 int
3180 main ()
3181 {
3182 if ((u_int16_t *) 0)
3183 return 0;
3184 if (sizeof (u_int16_t))
3185 return 0;
3186 ;
3187 return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (eval echo "$as_me:3191: \"$ac_compile\"") >&5
3192 (eval $ac_compile) 2>&5
3193 ac_status=$?
3194 echo "$as_me:3194: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (eval echo "$as_me:3197: \"$ac_try\"") >&5
3198 (eval $ac_try) 2>&5
3199 ac_status=$?
3200 echo "$as_me:3200: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 ac_cv_type_u_int16_t=yes
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 ac_cv_type_u_int16_t=no
3207 fi
3208 rm -f conftest.$ac_objext conftest.$ac_ext
3209 fi
3210 echo "$as_me:3210: result: $ac_cv_type_u_int16_t" >&5
3211 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3212 if test $ac_cv_type_u_int16_t = yes; then
3213 :
3214 else
3215
3216 echo "$as_me:3216: checking for uint16_t" >&5
3217 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3218 if test "${ac_cv_type_uint16_t+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #line 3222 "configure"
3223 #include "confdefs.h"
3224 $ac_includes_default
3225 int
3226 main ()
3227 {
3228 if ((uint16_t *) 0)
3229 return 0;
3230 if (sizeof (uint16_t))
3231 return 0;
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (eval echo "$as_me:3237: \"$ac_compile\"") >&5
3238 (eval $ac_compile) 2>&5
3239 ac_status=$?
3240 echo "$as_me:3240: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -s conftest.$ac_objext'
3243 { (eval echo "$as_me:3243: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:3246: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 ac_cv_type_uint16_t=yes
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3252 ac_cv_type_uint16_t=no
3253 fi
3254 rm -f conftest.$ac_objext conftest.$ac_ext
3255 fi
3256 echo "$as_me:3256: result: $ac_cv_type_uint16_t" >&5
3257 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3258 if test $ac_cv_type_uint16_t = yes; then
3259 cat >>confdefs.h <<\EOF
3260 #define u_int16_t uint16_t
3261 EOF
3262
3263 else
3264 { { echo "$as_me:3264: error: cannot find a suitable type for u_int16_t" >&5
3265 echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
3266 { (exit 1); exit 1; }; }
3267 fi
3268
3269 fi
3270
3271 echo "$as_me:3271: checking for uint32_t" >&5
3272 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3273 if test "${ac_cv_type_uint32_t+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 cat >conftest.$ac_ext <<_ACEOF
3277 #line 3277 "configure"
3278 #include "confdefs.h"
3279 $ac_includes_default
3280 int
3281 main ()
3282 {
3283 if ((uint32_t *) 0)
3284 return 0;
3285 if (sizeof (uint32_t))
3286 return 0;
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (eval echo "$as_me:3292: \"$ac_compile\"") >&5
3293 (eval $ac_compile) 2>&5
3294 ac_status=$?
3295 echo "$as_me:3295: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:3298: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:3301: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_cv_type_uint32_t=yes
3304 else
3305 echo "$as_me: failed program was:" >&5
3306 cat conftest.$ac_ext >&5
3307 ac_cv_type_uint32_t=no
3308 fi
3309 rm -f conftest.$ac_objext conftest.$ac_ext
3310 fi
3311 echo "$as_me:3311: result: $ac_cv_type_uint32_t" >&5
3312 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3313 if test $ac_cv_type_uint32_t = yes; then
3314 :
3315 else
3316
3317 echo "$as_me:3317: checking for u_int32_t" >&5
3318 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3319 if test "${ac_cv_type_u_int32_t+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 cat >conftest.$ac_ext <<_ACEOF
3323 #line 3323 "configure"
3324 #include "confdefs.h"
3325 $ac_includes_default
3326 int
3327 main ()
3328 {
3329 if ((u_int32_t *) 0)
3330 return 0;
3331 if (sizeof (u_int32_t))
3332 return 0;
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 rm -f conftest.$ac_objext
3338 if { (eval echo "$as_me:3338: \"$ac_compile\"") >&5
3339 (eval $ac_compile) 2>&5
3340 ac_status=$?
3341 echo "$as_me:3341: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try='test -s conftest.$ac_objext'
3344 { (eval echo "$as_me:3344: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:3347: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_type_u_int32_t=yes
3350 else
3351 echo "$as_me: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3353 ac_cv_type_u_int32_t=no
3354 fi
3355 rm -f conftest.$ac_objext conftest.$ac_ext
3356 fi
3357 echo "$as_me:3357: result: $ac_cv_type_u_int32_t" >&5
3358 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3359 if test $ac_cv_type_u_int32_t = yes; then
3360 cat >>confdefs.h <<\EOF
3361 #define uint32_t u_int32_t
3362 EOF
3363
3364 else
3365 { { echo "$as_me:3365: error: cannot find a suitable type for uint32_t" >&5
3366 echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
3367 { (exit 1); exit 1; }; }
3368 fi
3369
3370 fi
3371
3372 echo "$as_me:3372: checking for u_int32_t" >&5
3373 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3374 if test "${ac_cv_type_u_int32_t+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 cat >conftest.$ac_ext <<_ACEOF
3378 #line 3378 "configure"
3379 #include "confdefs.h"
3380 $ac_includes_default
3381 int
3382 main ()
3383 {
3384 if ((u_int32_t *) 0)
3385 return 0;
3386 if (sizeof (u_int32_t))
3387 return 0;
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 rm -f conftest.$ac_objext
3393 if { (eval echo "$as_me:3393: \"$ac_compile\"") >&5
3394 (eval $ac_compile) 2>&5
3395 ac_status=$?
3396 echo "$as_me:3396: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
3398 { ac_try='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:3399: \"$ac_try\"") >&5
3400 (eval $ac_try) 2>&5
3401 ac_status=$?
3402 echo "$as_me:3402: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 ac_cv_type_u_int32_t=yes
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3408 ac_cv_type_u_int32_t=no
3409 fi
3410 rm -f conftest.$ac_objext conftest.$ac_ext
3411 fi
3412 echo "$as_me:3412: result: $ac_cv_type_u_int32_t" >&5
3413 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3414 if test $ac_cv_type_u_int32_t = yes; then
3415 :
3416 else
3417
3418 echo "$as_me:3418: checking for uint32_t" >&5
3419 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3420 if test "${ac_cv_type_uint32_t+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 cat >conftest.$ac_ext <<_ACEOF
3424 #line 3424 "configure"
3425 #include "confdefs.h"
3426 $ac_includes_default
3427 int
3428 main ()
3429 {
3430 if ((uint32_t *) 0)
3431 return 0;
3432 if (sizeof (uint32_t))
3433 return 0;
3434 ;
3435 return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (eval echo "$as_me:3439: \"$ac_compile\"") >&5
3440 (eval $ac_compile) 2>&5
3441 ac_status=$?
3442 echo "$as_me:3442: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try='test -s conftest.$ac_objext'
3445 { (eval echo "$as_me:3445: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:3448: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 ac_cv_type_uint32_t=yes
3451 else
3452 echo "$as_me: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3454 ac_cv_type_uint32_t=no
3455 fi
3456 rm -f conftest.$ac_objext conftest.$ac_ext
3457 fi
3458 echo "$as_me:3458: result: $ac_cv_type_uint32_t" >&5
3459 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3460 if test $ac_cv_type_uint32_t = yes; then
3461 cat >>confdefs.h <<\EOF
3462 #define u_int32_t uint32_t
3463 EOF
3464
3465 else
3466 { { echo "$as_me:3466: error: cannot find a suitable type for u_int32_t" >&5
3467 echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
3468 { (exit 1); exit 1; }; }
3469 fi
3470
3471 fi
3472
3473 echo "$as_me:3473: checking for uint64_t" >&5
3474 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3475 if test "${ac_cv_type_uint64_t+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478 cat >conftest.$ac_ext <<_ACEOF
3479 #line 3479 "configure"
3480 #include "confdefs.h"
3481 $ac_includes_default
3482 int
3483 main ()
3484 {
3485 if ((uint64_t *) 0)
3486 return 0;
3487 if (sizeof (uint64_t))
3488 return 0;
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 rm -f conftest.$ac_objext
3494 if { (eval echo "$as_me:3494: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>&5
3496 ac_status=$?
3497 echo "$as_me:3497: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -s conftest.$ac_objext'
3500 { (eval echo "$as_me:3500: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:3503: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_cv_type_uint64_t=yes
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3509 ac_cv_type_uint64_t=no
3510 fi
3511 rm -f conftest.$ac_objext conftest.$ac_ext
3512 fi
3513 echo "$as_me:3513: result: $ac_cv_type_uint64_t" >&5
3514 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3515 if test $ac_cv_type_uint64_t = yes; then
3516 :
3517 else
3518
3519 echo "$as_me:3519: checking for u_int64_t" >&5
3520 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3521 if test "${ac_cv_type_u_int64_t+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524 cat >conftest.$ac_ext <<_ACEOF
3525 #line 3525 "configure"
3526 #include "confdefs.h"
3527 $ac_includes_default
3528 int
3529 main ()
3530 {
3531 if ((u_int64_t *) 0)
3532 return 0;
3533 if (sizeof (u_int64_t))
3534 return 0;
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:3540: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>&5
3542 ac_status=$?
3543 echo "$as_me:3543: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:3546: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:3549: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551 ac_cv_type_u_int64_t=yes
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3555 ac_cv_type_u_int64_t=no
3556 fi
3557 rm -f conftest.$ac_objext conftest.$ac_ext
3558 fi
3559 echo "$as_me:3559: result: $ac_cv_type_u_int64_t" >&5
3560 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3561 if test $ac_cv_type_u_int64_t = yes; then
3562 cat >>confdefs.h <<\EOF
3563 #define uint64_t u_int64_t
3564 EOF
3565
3566 else
3567 { { echo "$as_me:3567: error: cannot find a suitable type for uint64_t" >&5
3568 echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
3569 { (exit 1); exit 1; }; }
3570 fi
3571
3572 fi
3573
3574 echo "$as_me:3574: checking for u_int64_t" >&5
3575 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3576 if test "${ac_cv_type_u_int64_t+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 cat >conftest.$ac_ext <<_ACEOF
3580 #line 3580 "configure"
3581 #include "confdefs.h"
3582 $ac_includes_default
3583 int
3584 main ()
3585 {
3586 if ((u_int64_t *) 0)
3587 return 0;
3588 if (sizeof (u_int64_t))
3589 return 0;
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 rm -f conftest.$ac_objext
3595 if { (eval echo "$as_me:3595: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>&5
3597 ac_status=$?
3598 echo "$as_me:3598: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -s conftest.$ac_objext'
3601 { (eval echo "$as_me:3601: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:3604: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_cv_type_u_int64_t=yes
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3610 ac_cv_type_u_int64_t=no
3611 fi
3612 rm -f conftest.$ac_objext conftest.$ac_ext
3613 fi
3614 echo "$as_me:3614: result: $ac_cv_type_u_int64_t" >&5
3615 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3616 if test $ac_cv_type_u_int64_t = yes; then
3617 :
3618 else
3619
3620 echo "$as_me:3620: checking for uint64_t" >&5
3621 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3622 if test "${ac_cv_type_uint64_t+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 cat >conftest.$ac_ext <<_ACEOF
3626 #line 3626 "configure"
3627 #include "confdefs.h"
3628 $ac_includes_default
3629 int
3630 main ()
3631 {
3632 if ((uint64_t *) 0)
3633 return 0;
3634 if (sizeof (uint64_t))
3635 return 0;
3636 ;
3637 return 0;
3638 }
3639 _ACEOF
3640 rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:3641: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>&5
3643 ac_status=$?
3644 echo "$as_me:3644: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:3647: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:3650: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_cv_type_uint64_t=yes
3653 else
3654 echo "$as_me: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3656 ac_cv_type_uint64_t=no
3657 fi
3658 rm -f conftest.$ac_objext conftest.$ac_ext
3659 fi
3660 echo "$as_me:3660: result: $ac_cv_type_uint64_t" >&5
3661 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3662 if test $ac_cv_type_uint64_t = yes; then
3663 cat >>confdefs.h <<\EOF
3664 #define u_int64_t uint64_t
3665 EOF
3666
3667 else
3668 { { echo "$as_me:3668: error: cannot find a suitable type for u_int64_t" >&5
3669 echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
3670 { (exit 1); exit 1; }; }
3671 fi
3672
3673 fi
3674
3675 # Struct members.
3676 echo "$as_me:3676: checking for DIR.dd_fd" >&5
3677 echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
3678 if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 cat >conftest.$ac_ext <<_ACEOF
3682 #line 3682 "configure"
3683 #include "confdefs.h"
3684 #include <dirent.h>
3685
3686 int
3687 main ()
3688 {
3689 static DIR ac_aggr;
3690 if (ac_aggr.dd_fd)
3691 return 0;
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (eval echo "$as_me:3697: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>&5
3699 ac_status=$?
3700 echo "$as_me:3700: \$? = $ac_status" >&5
3701 (exit $ac_status); } &&
3702 { ac_try='test -s conftest.$ac_objext'
3703 { (eval echo "$as_me:3703: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:3706: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3708 ac_cv_member_DIR_dd_fd=yes
3709 else
3710 echo "$as_me: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3712 ac_cv_member_DIR_dd_fd=no
3713 fi
3714 rm -f conftest.$ac_objext conftest.$ac_ext
3715 fi
3716 echo "$as_me:3716: result: $ac_cv_member_DIR_dd_fd" >&5
3717 echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
3718 if test $ac_cv_member_DIR_dd_fd = yes; then
3719
3720 cat >>confdefs.h <<EOF
3721 #define HAVE_DIR_DD_FD 1
3722 EOF
3723
3724 fi
3725 echo "$as_me:3725: checking for struct dirent.d_namlen" >&5
3726 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
3727 if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 cat >conftest.$ac_ext <<_ACEOF
3731 #line 3731 "configure"
3732 #include "confdefs.h"
3733 #include <dirent.h>
3734
3735 int
3736 main ()
3737 {
3738 static struct dirent ac_aggr;
3739 if (ac_aggr.d_namlen)
3740 return 0;
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 rm -f conftest.$ac_objext
3746 if { (eval echo "$as_me:3746: \"$ac_compile\"") >&5
3747 (eval $ac_compile) 2>&5
3748 ac_status=$?
3749 echo "$as_me:3749: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:3752: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:3755: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 ac_cv_member_struct_dirent_d_namlen=yes
3758 else
3759 echo "$as_me: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3761 ac_cv_member_struct_dirent_d_namlen=no
3762 fi
3763 rm -f conftest.$ac_objext conftest.$ac_ext
3764 fi
3765 echo "$as_me:3765: result: $ac_cv_member_struct_dirent_d_namlen" >&5
3766 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
3767 if test $ac_cv_member_struct_dirent_d_namlen = yes; then
3768
3769 cat >>confdefs.h <<EOF
3770 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
3771 EOF
3772
3773 fi
3774
3775 echo "$as_me:3775: checking for struct stat.st_flags" >&5
3776 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
3777 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780 cat >conftest.$ac_ext <<_ACEOF
3781 #line 3781 "configure"
3782 #include "confdefs.h"
3783 #include <sys/stat.h>
3784
3785 int
3786 main ()
3787 {
3788 static struct stat ac_aggr;
3789 if (ac_aggr.st_flags)
3790 return 0;
3791 ;
3792 return 0;
3793 }
3794 _ACEOF
3795 rm -f conftest.$ac_objext
3796 if { (eval echo "$as_me:3796: \"$ac_compile\"") >&5
3797 (eval $ac_compile) 2>&5
3798 ac_status=$?
3799 echo "$as_me:3799: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:3802: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:3805: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_cv_member_struct_stat_st_flags=yes
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3811 ac_cv_member_struct_stat_st_flags=no
3812 fi
3813 rm -f conftest.$ac_objext conftest.$ac_ext
3814 fi
3815 echo "$as_me:3815: result: $ac_cv_member_struct_stat_st_flags" >&5
3816 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
3817 if test $ac_cv_member_struct_stat_st_flags = yes; then
3818
3819 cat >>confdefs.h <<EOF
3820 #define HAVE_STRUCT_STAT_ST_FLAGS 1
3821 EOF
3822
3823 fi
3824 echo "$as_me:3824: checking for struct stat.st_gen" >&5
3825 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
3826 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 cat >conftest.$ac_ext <<_ACEOF
3830 #line 3830 "configure"
3831 #include "confdefs.h"
3832 #include <sys/stat.h>
3833
3834 int
3835 main ()
3836 {
3837 static struct stat ac_aggr;
3838 if (ac_aggr.st_gen)
3839 return 0;
3840 ;
3841 return 0;
3842 }
3843 _ACEOF
3844 rm -f conftest.$ac_objext
3845 if { (eval echo "$as_me:3845: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>&5
3847 ac_status=$?
3848 echo "$as_me:3848: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -s conftest.$ac_objext'
3851 { (eval echo "$as_me:3851: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:3854: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 ac_cv_member_struct_stat_st_gen=yes
3857 else
3858 echo "$as_me: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3860 ac_cv_member_struct_stat_st_gen=no
3861 fi
3862 rm -f conftest.$ac_objext conftest.$ac_ext
3863 fi
3864 echo "$as_me:3864: result: $ac_cv_member_struct_stat_st_gen" >&5
3865 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
3866 if test $ac_cv_member_struct_stat_st_gen = yes; then
3867
3868 cat >>confdefs.h <<EOF
3869 #define HAVE_STRUCT_STAT_ST_GEN 1
3870 EOF
3871
3872 fi
3873 echo "$as_me:3873: checking for struct stat.st_mtimensec" >&5
3874 echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
3875 if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 cat >conftest.$ac_ext <<_ACEOF
3879 #line 3879 "configure"
3880 #include "confdefs.h"
3881 #include <sys/stat.h>
3882
3883 int
3884 main ()
3885 {
3886 static struct stat ac_aggr;
3887 if (ac_aggr.st_mtimensec)
3888 return 0;
3889 ;
3890 return 0;
3891 }
3892 _ACEOF
3893 rm -f conftest.$ac_objext
3894 if { (eval echo "$as_me:3894: \"$ac_compile\"") >&5
3895 (eval $ac_compile) 2>&5
3896 ac_status=$?
3897 echo "$as_me:3897: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try='test -s conftest.$ac_objext'
3900 { (eval echo "$as_me:3900: \"$ac_try\"") >&5
3901 (eval $ac_try) 2>&5
3902 ac_status=$?
3903 echo "$as_me:3903: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
3905 ac_cv_member_struct_stat_st_mtimensec=yes
3906 else
3907 echo "$as_me: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3909 ac_cv_member_struct_stat_st_mtimensec=no
3910 fi
3911 rm -f conftest.$ac_objext conftest.$ac_ext
3912 fi
3913 echo "$as_me:3913: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
3914 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
3915 if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
3916
3917 cat >>confdefs.h <<EOF
3918 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
3919 EOF
3920
3921 fi
3922
3923 echo "$as_me:3923: checking for struct statfs.f_iosize" >&5
3924 echo $ECHO_N "checking for struct statfs.f_iosize... $ECHO_C" >&6
3925 if test "${ac_cv_member_struct_statfs_f_iosize+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928 cat >conftest.$ac_ext <<_ACEOF
3929 #line 3929 "configure"
3930 #include "confdefs.h"
3931 #include <sys/mount.h>
3932
3933 int
3934 main ()
3935 {
3936 static struct statfs ac_aggr;
3937 if (ac_aggr.f_iosize)
3938 return 0;
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 rm -f conftest.$ac_objext
3944 if { (eval echo "$as_me:3944: \"$ac_compile\"") >&5
3945 (eval $ac_compile) 2>&5
3946 ac_status=$?
3947 echo "$as_me:3947: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
3949 { ac_try='test -s conftest.$ac_objext'
3950 { (eval echo "$as_me:3950: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:3953: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_member_struct_statfs_f_iosize=yes
3956 else
3957 echo "$as_me: failed program was:" >&5
3958 cat conftest.$ac_ext >&5
3959 ac_cv_member_struct_statfs_f_iosize=no
3960 fi
3961 rm -f conftest.$ac_objext conftest.$ac_ext
3962 fi
3963 echo "$as_me:3963: result: $ac_cv_member_struct_statfs_f_iosize" >&5
3964 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_iosize" >&6
3965 if test $ac_cv_member_struct_statfs_f_iosize = yes; then
3966
3967 cat >>confdefs.h <<EOF
3968 #define HAVE_STRUCT_STATFS_F_IOSIZE 1
3969 EOF
3970
3971 fi
3972
3973 # Global variable decls.
3974 echo "$as_me:3974: checking whether optind is declared" >&5
3975 echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
3976 if test "${ac_cv_have_decl_optind+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979 cat >conftest.$ac_ext <<_ACEOF
3980 #line 3980 "configure"
3981 #include "confdefs.h"
3982
3983 #include <stdio.h>
3984 #include <stdlib.h>
3985 #include <unistd.h>
3986
3987 int
3988 main ()
3989 {
3990 #ifndef optind
3991 char *p = (char *) optind;
3992 #endif
3993
3994 ;
3995 return 0;
3996 }
3997 _ACEOF
3998 rm -f conftest.$ac_objext
3999 if { (eval echo "$as_me:3999: \"$ac_compile\"") >&5
4000 (eval $ac_compile) 2>&5
4001 ac_status=$?
4002 echo "$as_me:4002: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:4005: \"$ac_try\"") >&5
4006 (eval $ac_try) 2>&5
4007 ac_status=$?
4008 echo "$as_me:4008: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 ac_cv_have_decl_optind=yes
4011 else
4012 echo "$as_me: failed program was:" >&5
4013 cat conftest.$ac_ext >&5
4014 ac_cv_have_decl_optind=no
4015 fi
4016 rm -f conftest.$ac_objext conftest.$ac_ext
4017 fi
4018 echo "$as_me:4018: result: $ac_cv_have_decl_optind" >&5
4019 echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
4020 if test $ac_cv_have_decl_optind = yes; then
4021
4022 cat >>confdefs.h <<EOF
4023 #define HAVE_DECL_OPTIND 1
4024 EOF
4025
4026 else
4027 cat >>confdefs.h <<EOF
4028 #define HAVE_DECL_OPTIND 0
4029 EOF
4030
4031 fi
4032 echo "$as_me:4032: checking whether optreset is declared" >&5
4033 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
4034 if test "${ac_cv_have_decl_optreset+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 cat >conftest.$ac_ext <<_ACEOF
4038 #line 4038 "configure"
4039 #include "confdefs.h"
4040
4041 #include <stdio.h>
4042 #include <stdlib.h>
4043 #include <unistd.h>
4044
4045 int
4046 main ()
4047 {
4048 #ifndef optreset
4049 char *p = (char *) optreset;
4050 #endif
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:4057: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>&5
4059 ac_status=$?
4060 echo "$as_me:4060: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try='test -s conftest.$ac_objext'
4063 { (eval echo "$as_me:4063: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:4066: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 ac_cv_have_decl_optreset=yes
4069 else
4070 echo "$as_me: failed program was:" >&5
4071 cat conftest.$ac_ext >&5
4072 ac_cv_have_decl_optreset=no
4073 fi
4074 rm -f conftest.$ac_objext conftest.$ac_ext
4075 fi
4076 echo "$as_me:4076: result: $ac_cv_have_decl_optreset" >&5
4077 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
4078 if test $ac_cv_have_decl_optreset = yes; then
4079
4080 cat >>confdefs.h <<EOF
4081 #define HAVE_DECL_OPTRESET 1
4082 EOF
4083
4084 else
4085 cat >>confdefs.h <<EOF
4086 #define HAVE_DECL_OPTRESET 0
4087 EOF
4088
4089 fi
4090
4091 echo "$as_me:4091: checking whether sys_signame is declared" >&5
4092 echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
4093 if test "${ac_cv_have_decl_sys_signame+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line 4097 "configure"
4098 #include "confdefs.h"
4099 #include <signal.h>
4100
4101 int
4102 main ()
4103 {
4104 #ifndef sys_signame
4105 char *p = (char *) sys_signame;
4106 #endif
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (eval echo "$as_me:4113: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>&5
4115 ac_status=$?
4116 echo "$as_me:4116: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:4119: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:4122: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_have_decl_sys_signame=yes
4125 else
4126 echo "$as_me: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 ac_cv_have_decl_sys_signame=no
4129 fi
4130 rm -f conftest.$ac_objext conftest.$ac_ext
4131 fi
4132 echo "$as_me:4132: result: $ac_cv_have_decl_sys_signame" >&5
4133 echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
4134 if test $ac_cv_have_decl_sys_signame = yes; then
4135
4136 cat >>confdefs.h <<EOF
4137 #define HAVE_DECL_SYS_SIGNAME 1
4138 EOF
4139
4140 else
4141 cat >>confdefs.h <<EOF
4142 #define HAVE_DECL_SYS_SIGNAME 0
4143 EOF
4144
4145 fi
4146
4147 # Library functions (where a .h check isn't enough).
4148 echo "$as_me:4148: checking for library containing fparseln" >&5
4149 echo $ECHO_N "checking for library containing fparseln... $ECHO_C" >&6
4150 if test "${ac_cv_search_fparseln+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 ac_func_search_save_LIBS=$LIBS
4154 ac_cv_search_fparseln=no
4155 cat >conftest.$ac_ext <<_ACEOF
4156 #line 4156 "configure"
4157 #include "confdefs.h"
4158
4159 /* Override any gcc2 internal prototype to avoid an error. */
4160 #ifdef __cplusplus
4161 extern "C"
4162 #endif
4163 /* We use char because int might match the return type of a gcc2
4164 builtin and then its argument prototype would still apply. */
4165 char fparseln ();
4166 int
4167 main ()
4168 {
4169 fparseln ();
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext conftest$ac_exeext
4175 if { (eval echo "$as_me:4175: \"$ac_link\"") >&5
4176 (eval $ac_link) 2>&5
4177 ac_status=$?
4178 echo "$as_me:4178: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -s conftest$ac_exeext'
4181 { (eval echo "$as_me:4181: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:4184: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_cv_search_fparseln="none required"
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4190 fi
4191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4192 if test "$ac_cv_search_fparseln" = no; then
4193 for ac_lib in util; do
4194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4195 cat >conftest.$ac_ext <<_ACEOF
4196 #line 4196 "configure"
4197 #include "confdefs.h"
4198
4199 /* Override any gcc2 internal prototype to avoid an error. */
4200 #ifdef __cplusplus
4201 extern "C"
4202 #endif
4203 /* We use char because int might match the return type of a gcc2
4204 builtin and then its argument prototype would still apply. */
4205 char fparseln ();
4206 int
4207 main ()
4208 {
4209 fparseln ();
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 rm -f conftest.$ac_objext conftest$ac_exeext
4215 if { (eval echo "$as_me:4215: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>&5
4217 ac_status=$?
4218 echo "$as_me:4218: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -s conftest$ac_exeext'
4221 { (eval echo "$as_me:4221: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:4224: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 ac_cv_search_fparseln="-l$ac_lib"
4227 break
4228 else
4229 echo "$as_me: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4231 fi
4232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4233 done
4234 fi
4235 LIBS=$ac_func_search_save_LIBS
4236 fi
4237 echo "$as_me:4237: result: $ac_cv_search_fparseln" >&5
4238 echo "${ECHO_T}$ac_cv_search_fparseln" >&6
4239 if test "$ac_cv_search_fparseln" != no; then
4240 test "$ac_cv_search_fparseln" = "none required" || LIBS="$ac_cv_search_fparseln $LIBS"
4241
4242 fi
4243
4244 for ac_func in asprintf asnprintf basename dirfd dirname \
4245 fgetln flock fparseln futimes getopt getopt_long \
4246 isblank lchmod lchown lutimes pread pwcache_userdb \
4247 pwrite setenv setgroupent setprogname setpassent \
4248 snprintf strlcat strlcpy strsep vasprintf vasnprintf vsnprintf
4249 do
4250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4251 echo "$as_me:4251: checking for $ac_func" >&5
4252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4253 if eval "test \"\${$as_ac_var+set}\" = set"; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 cat >conftest.$ac_ext <<_ACEOF
4257 #line 4257 "configure"
4258 #include "confdefs.h"
4259 /* System header to define __stub macros and hopefully few prototypes,
4260 which can conflict with char $ac_func (); below. */
4261 #include <assert.h>
4262 /* Override any gcc2 internal prototype to avoid an error. */
4263 #ifdef __cplusplus
4264 extern "C"
4265 #endif
4266 /* We use char because int might match the return type of a gcc2
4267 builtin and then its argument prototype would still apply. */
4268 char $ac_func ();
4269 char (*f) ();
4270
4271 int
4272 main ()
4273 {
4274 /* The GNU C library defines this for functions which it implements
4275 to always fail with ENOSYS. Some functions are actually named
4276 something starting with __ and the normal name is an alias. */
4277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4278 choke me
4279 #else
4280 f = $ac_func;
4281 #endif
4282
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 rm -f conftest.$ac_objext conftest$ac_exeext
4288 if { (eval echo "$as_me:4288: \"$ac_link\"") >&5
4289 (eval $ac_link) 2>&5
4290 ac_status=$?
4291 echo "$as_me:4291: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -s conftest$ac_exeext'
4294 { (eval echo "$as_me:4294: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:4297: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 eval "$as_ac_var=yes"
4300 else
4301 echo "$as_me: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4303 eval "$as_ac_var=no"
4304 fi
4305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4306 fi
4307 echo "$as_me:4307: result: `eval echo '${'$as_ac_var'}'`" >&5
4308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4309 if test `eval echo '${'$as_ac_var'}'` = yes; then
4310 cat >>confdefs.h <<EOF
4311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4312 EOF
4313
4314 fi
4315 done
4316
4317 echo "$as_me:4317: checking whether setgroupent is declared" >&5
4318 echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
4319 if test "${ac_cv_have_decl_setgroupent+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 cat >conftest.$ac_ext <<_ACEOF
4323 #line 4323 "configure"
4324 #include "confdefs.h"
4325
4326 #include <grp.h>
4327 #include <pwd.h>
4328
4329 int
4330 main ()
4331 {
4332 #ifndef setgroupent
4333 char *p = (char *) setgroupent;
4334 #endif
4335
4336 ;
4337 return 0;
4338 }
4339 _ACEOF
4340 rm -f conftest.$ac_objext
4341 if { (eval echo "$as_me:4341: \"$ac_compile\"") >&5
4342 (eval $ac_compile) 2>&5
4343 ac_status=$?
4344 echo "$as_me:4344: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try='test -s conftest.$ac_objext'
4347 { (eval echo "$as_me:4347: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:4350: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_have_decl_setgroupent=yes
4353 else
4354 echo "$as_me: failed program was:" >&5
4355 cat conftest.$ac_ext >&5
4356 ac_cv_have_decl_setgroupent=no
4357 fi
4358 rm -f conftest.$ac_objext conftest.$ac_ext
4359 fi
4360 echo "$as_me:4360: result: $ac_cv_have_decl_setgroupent" >&5
4361 echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
4362 if test $ac_cv_have_decl_setgroupent = yes; then
4363
4364 cat >>confdefs.h <<EOF
4365 #define HAVE_DECL_SETGROUPENT 1
4366 EOF
4367
4368 else
4369 cat >>confdefs.h <<EOF
4370 #define HAVE_DECL_SETGROUPENT 0
4371 EOF
4372
4373 fi
4374 echo "$as_me:4374: checking whether setpassent is declared" >&5
4375 echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
4376 if test "${ac_cv_have_decl_setpassent+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 cat >conftest.$ac_ext <<_ACEOF
4380 #line 4380 "configure"
4381 #include "confdefs.h"
4382
4383 #include <grp.h>
4384 #include <pwd.h>
4385
4386 int
4387 main ()
4388 {
4389 #ifndef setpassent
4390 char *p = (char *) setpassent;
4391 #endif
4392
4393 ;
4394 return 0;
4395 }
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:4398: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>&5
4400 ac_status=$?
4401 echo "$as_me:4401: \$? = $ac_status" >&5
4402 (exit $ac_status); } &&
4403 { ac_try='test -s conftest.$ac_objext'
4404 { (eval echo "$as_me:4404: \"$ac_try\"") >&5
4405 (eval $ac_try) 2>&5
4406 ac_status=$?
4407 echo "$as_me:4407: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 ac_cv_have_decl_setpassent=yes
4410 else
4411 echo "$as_me: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4413 ac_cv_have_decl_setpassent=no
4414 fi
4415 rm -f conftest.$ac_objext conftest.$ac_ext
4416 fi
4417 echo "$as_me:4417: result: $ac_cv_have_decl_setpassent" >&5
4418 echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
4419 if test $ac_cv_have_decl_setpassent = yes; then
4420
4421 cat >>confdefs.h <<EOF
4422 #define HAVE_DECL_SETPASSENT 1
4423 EOF
4424
4425 else
4426 cat >>confdefs.h <<EOF
4427 #define HAVE_DECL_SETPASSENT 0
4428 EOF
4429
4430 fi
4431
4432 # regcomp() and regexec() are also names of functions in the old V8
4433 # regexp package. To avoid them, we need to find out who has regfree().
4434
4435 echo "$as_me:4435: checking for regfree in -lregex" >&5
4436 echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
4437 if test "${ac_cv_lib_regex_regfree+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 ac_check_lib_save_LIBS=$LIBS
4441 LIBS="-lregex $LIBS"
4442 cat >conftest.$ac_ext <<_ACEOF
4443 #line 4443 "configure"
4444 #include "confdefs.h"
4445
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 #ifdef __cplusplus
4448 extern "C"
4449 #endif
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char regfree ();
4453 int
4454 main ()
4455 {
4456 regfree ();
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext conftest$ac_exeext
4462 if { (eval echo "$as_me:4462: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>&5
4464 ac_status=$?
4465 echo "$as_me:4465: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -s conftest$ac_exeext'
4468 { (eval echo "$as_me:4468: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:4471: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_lib_regex_regfree=yes
4474 else
4475 echo "$as_me: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4477 ac_cv_lib_regex_regfree=no
4478 fi
4479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4480 LIBS=$ac_check_lib_save_LIBS
4481 fi
4482 echo "$as_me:4482: result: $ac_cv_lib_regex_regfree" >&5
4483 echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
4484 if test $ac_cv_lib_regex_regfree = yes; then
4485 cat >>confdefs.h <<EOF
4486 #define HAVE_LIBREGEX 1
4487 EOF
4488
4489 LIBS="-lregex $LIBS"
4490
4491 fi
4492
4493 echo "$as_me:4493: checking for library containing regfree" >&5
4494 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
4495 if test "${ac_cv_search_regfree+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 ac_func_search_save_LIBS=$LIBS
4499 ac_cv_search_regfree=no
4500 cat >conftest.$ac_ext <<_ACEOF
4501 #line 4501 "configure"
4502 #include "confdefs.h"
4503
4504 /* Override any gcc2 internal prototype to avoid an error. */
4505 #ifdef __cplusplus
4506 extern "C"
4507 #endif
4508 /* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4510 char regfree ();
4511 int
4512 main ()
4513 {
4514 regfree ();
4515 ;
4516 return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.$ac_objext conftest$ac_exeext
4520 if { (eval echo "$as_me:4520: \"$ac_link\"") >&5
4521 (eval $ac_link) 2>&5
4522 ac_status=$?
4523 echo "$as_me:4523: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -s conftest$ac_exeext'
4526 { (eval echo "$as_me:4526: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:4529: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 ac_cv_search_regfree="none required"
4532 else
4533 echo "$as_me: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4535 fi
4536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4537 if test "$ac_cv_search_regfree" = no; then
4538 for ac_lib in rx posix; do
4539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4540 cat >conftest.$ac_ext <<_ACEOF
4541 #line 4541 "configure"
4542 #include "confdefs.h"
4543
4544 /* Override any gcc2 internal prototype to avoid an error. */
4545 #ifdef __cplusplus
4546 extern "C"
4547 #endif
4548 /* We use char because int might match the return type of a gcc2
4549 builtin and then its argument prototype would still apply. */
4550 char regfree ();
4551 int
4552 main ()
4553 {
4554 regfree ();
4555 ;
4556 return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext conftest$ac_exeext
4560 if { (eval echo "$as_me:4560: \"$ac_link\"") >&5
4561 (eval $ac_link) 2>&5
4562 ac_status=$?
4563 echo "$as_me:4563: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -s conftest$ac_exeext'
4566 { (eval echo "$as_me:4566: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:4569: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 ac_cv_search_regfree="-l$ac_lib"
4572 break
4573 else
4574 echo "$as_me: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4576 fi
4577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4578 done
4579 fi
4580 LIBS=$ac_func_search_save_LIBS
4581 fi
4582 echo "$as_me:4582: result: $ac_cv_search_regfree" >&5
4583 echo "${ECHO_T}$ac_cv_search_regfree" >&6
4584 if test "$ac_cv_search_regfree" != no; then
4585 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
4586
4587 fi
4588
4589 cat >confcache <<\_ACEOF
4590 # This file is a shell script that caches the results of configure
4591 # tests run on this system so they can be shared between configure
4592 # scripts and configure runs, see configure's option --config-cache.
4593 # It is not useful on other systems. If it contains results you don't
4594 # want to keep, you may remove or edit it.
4595 #
4596 # config.status only pays attention to the cache file if you give it
4597 # the --recheck option to rerun configure.
4598 #
4599 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4600 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4601 # following values.
4602
4603 _ACEOF
4604
4605 # The following way of writing the cache mishandles newlines in values,
4606 # but we know of no workaround that is simple, portable, and efficient.
4607 # So, don't put newlines in cache variables' values.
4608 # Ultrix sh set writes to stderr and can't be redirected directly,
4609 # and sets the high bit in the cache file unless we assign to the vars.
4610 {
4611 (set) 2>&1 |
4612 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4613 *ac_space=\ *)
4614 # `set' does not quote correctly, so add quotes (double-quote
4615 # substitution turns \\\\ into \\, and sed turns \\ into \).
4616 sed -n \
4617 "s/'/'\\\\''/g;
4618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4619 ;;
4620 *)
4621 # `set' quotes correctly as required by POSIX, so do not add quotes.
4622 sed -n \
4623 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4624 ;;
4625 esac;
4626 } |
4627 sed '
4628 t clear
4629 : clear
4630 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4631 t end
4632 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4633 : end' >>confcache
4634 if cmp -s $cache_file confcache; then :; else
4635 if test -w $cache_file; then
4636 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4637 cat confcache >$cache_file
4638 else
4639 echo "not updating unwritable cache $cache_file"
4640 fi
4641 fi
4642 rm -f confcache
4643
4644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4645 # Let make expand exec_prefix.
4646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4647
4648 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4649 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4650 # trailing colons and then remove the whole line if VPATH becomes empty
4651 # (actually we leave an empty line to preserve line numbers).
4652 if test "x$srcdir" = x.; then
4653 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4654 s/:*\$(srcdir):*/:/;
4655 s/:*\${srcdir}:*/:/;
4656 s/:*@srcdir@:*/:/;
4657 s/^\([^=]*=[ ]*\):*/\1/;
4658 s/:*$//;
4659 s/^[^=]*=[ ]*$//;
4660 }'
4661 fi
4662
4663 DEFS=-DHAVE_CONFIG_H
4664
4665 : ${CONFIG_STATUS=./config.status}
4666 ac_clean_files_save=$ac_clean_files
4667 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4668 { echo "$as_me:4668: creating $CONFIG_STATUS" >&5
4669 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4670 cat >$CONFIG_STATUS <<_ACEOF
4671 #! $SHELL
4672 # Generated automatically by configure.
4673 # Run this file to recreate the current configuration.
4674 # Compiler output produced by configure, useful for debugging
4675 # configure, is in config.log if it exists.
4676
4677 debug=false
4678 SHELL=\${CONFIG_SHELL-$SHELL}
4679 ac_cs_invocation="\$0 \$@"
4680
4681 _ACEOF
4682
4683 cat >>$CONFIG_STATUS <<\_ACEOF
4684 # Be Bourne compatible
4685 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4686 emulate sh
4687 NULLCMD=:
4688 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4689 set -o posix
4690 fi
4691
4692 # Name of the executable.
4693 as_me=`echo "$0" |sed 's,.*[\\/],,'`
4694
4695 if expr a : '\(a\)' >/dev/null 2>&1; then
4696 as_expr=expr
4697 else
4698 as_expr=false
4699 fi
4700
4701 rm -f conf$$ conf$$.exe conf$$.file
4702 echo >conf$$.file
4703 if ln -s conf$$.file conf$$ 2>/dev/null; then
4704 # We could just check for DJGPP; but this test a) works b) is more generic
4705 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4706 if test -f conf$$.exe; then
4707 # Don't use ln at all; we don't have any links
4708 as_ln_s='cp -p'
4709 else
4710 as_ln_s='ln -s'
4711 fi
4712 elif ln conf$$.file conf$$ 2>/dev/null; then
4713 as_ln_s=ln
4714 else
4715 as_ln_s='cp -p'
4716 fi
4717 rm -f conf$$ conf$$.exe conf$$.file
4718
4719 as_executable_p="test -f"
4720
4721 # Support unset when possible.
4722 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4723 as_unset=unset
4724 else
4725 as_unset=false
4726 fi
4727
4728 # NLS nuisances.
4729 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4730 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4731 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4732 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4733 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4734 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4735 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4736 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4737
4738 # IFS
4739 # We need space, tab and new line, in precisely that order.
4740 as_nl='
4741 '
4742 IFS=" $as_nl"
4743
4744 # CDPATH.
4745 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4746
4747 exec 6>&1
4748
4749 _ACEOF
4750
4751 # Files that config.status was made for.
4752 if test -n "$ac_config_files"; then
4753 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4754 fi
4755
4756 if test -n "$ac_config_headers"; then
4757 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4758 fi
4759
4760 if test -n "$ac_config_links"; then
4761 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4762 fi
4763
4764 if test -n "$ac_config_commands"; then
4765 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4766 fi
4767
4768 cat >>$CONFIG_STATUS <<\EOF
4769
4770 ac_cs_usage="\
4771 \`$as_me' instantiates files from templates according to the
4772 current configuration.
4773
4774 Usage: $0 [OPTIONS] [FILE]...
4775
4776 -h, --help print this help, then exit
4777 -V, --version print version number, then exit
4778 -d, --debug don't remove temporary files
4779 --recheck update $as_me by reconfiguring in the same conditions
4780 --file=FILE[:TEMPLATE]
4781 instantiate the configuration file FILE
4782 --header=FILE[:TEMPLATE]
4783 instantiate the configuration header FILE
4784
4785 Configuration files:
4786 $config_files
4787
4788 Configuration headers:
4789 $config_headers
4790
4791 Report bugs to <bug-autoconf@gnu.org>."
4792 EOF
4793
4794 cat >>$CONFIG_STATUS <<EOF
4795 ac_cs_version="\\
4796 libnbcompat config.status noversion
4797 configured by $0, generated by GNU Autoconf 2.52,
4798 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4799
4800 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4801 Free Software Foundation, Inc.
4802 This config.status script is free software; the Free Software Foundation
4803 gives unlimited permission to copy, distribute and modify it."
4804 srcdir=$srcdir
4805 EOF
4806
4807 cat >>$CONFIG_STATUS <<\EOF
4808 # If no file are specified by the user, then we need to provide default
4809 # value. By we need to know if files were specified by the user.
4810 ac_need_defaults=:
4811 while test $# != 0
4812 do
4813 case $1 in
4814 --*=*)
4815 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4816 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4817 shift
4818 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4819 shift
4820 ;;
4821 -*);;
4822 *) # This is not an option, so the user has probably given explicit
4823 # arguments.
4824 ac_need_defaults=false;;
4825 esac
4826
4827 case $1 in
4828 # Handling of the options.
4829 EOF
4830 cat >>$CONFIG_STATUS <<EOF
4831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4832 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4833 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4834 EOF
4835 cat >>$CONFIG_STATUS <<\EOF
4836 --version | --vers* | -V )
4837 echo "$ac_cs_version"; exit 0 ;;
4838 --he | --h)
4839 # Conflict between --help and --header
4840 { { echo "$as_me:4840: error: ambiguous option: $1
4841 Try \`$0 --help' for more information." >&5
4842 echo "$as_me: error: ambiguous option: $1
4843 Try \`$0 --help' for more information." >&2;}
4844 { (exit 1); exit 1; }; };;
4845 --help | --hel | -h )
4846 echo "$ac_cs_usage"; exit 0 ;;
4847 --debug | --d* | -d )
4848 debug=: ;;
4849 --file | --fil | --fi | --f )
4850 shift
4851 CONFIG_FILES="$CONFIG_FILES $1"
4852 ac_need_defaults=false;;
4853 --header | --heade | --head | --hea )
4854 shift
4855 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4856 ac_need_defaults=false;;
4857
4858 # This is an error.
4859 -*) { { echo "$as_me:4859: error: unrecognized option: $1
4860 Try \`$0 --help' for more information." >&5
4861 echo "$as_me: error: unrecognized option: $1
4862 Try \`$0 --help' for more information." >&2;}
4863 { (exit 1); exit 1; }; } ;;
4864
4865 *) ac_config_targets="$ac_config_targets $1" ;;
4866
4867 esac
4868 shift
4869 done
4870
4871 exec 5>>config.log
4872 cat >&5 << _ACEOF
4873
4874 ## ----------------------- ##
4875 ## Running config.status. ##
4876 ## ----------------------- ##
4877
4878 This file was extended by $as_me (libnbcompat noversion) 2.52, executed with
4879 CONFIG_FILES = $CONFIG_FILES
4880 CONFIG_HEADERS = $CONFIG_HEADERS
4881 CONFIG_LINKS = $CONFIG_LINKS
4882 CONFIG_COMMANDS = $CONFIG_COMMANDS
4883 > $ac_cs_invocation
4884 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4885
4886 _ACEOF
4887 EOF
4888
4889 cat >>$CONFIG_STATUS <<\EOF
4890 for ac_config_target in $ac_config_targets
4891 do
4892 case "$ac_config_target" in
4893 # Handling of arguments.
4894 "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
4895 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4896 *) { { echo "$as_me:4896: error: invalid argument: $ac_config_target" >&5
4897 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4898 { (exit 1); exit 1; }; };;
4899 esac
4900 done
4901
4902 # If the user did not use the arguments to specify the items to instantiate,
4903 # then the envvar interface is used. Set only those that are not.
4904 # We use the long form for the default assignment because of an extremely
4905 # bizarre bug on SunOS 4.1.3.
4906 if $ac_need_defaults; then
4907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4909 fi
4910
4911 # Create a temporary directory, and hook for its removal unless debugging.
4912 $debug ||
4913 {
4914 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4915 trap '{ (exit 1); exit 1; }' 1 2 13 15
4916 }
4917
4918 # Create a (secure) tmp directory for tmp files.
4919 : ${TMPDIR=/tmp}
4920 {
4921 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4922 test -n "$tmp" && test -d "$tmp"
4923 } ||
4924 {
4925 tmp=$TMPDIR/cs$$-$RANDOM
4926 (umask 077 && mkdir $tmp)
4927 } ||
4928 {
4929 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4930 { (exit 1); exit 1; }
4931 }
4932
4933 EOF
4934
4935 cat >>$CONFIG_STATUS <<EOF
4936
4937 #
4938 # CONFIG_FILES section.
4939 #
4940
4941 # No need to generate the scripts if there are no CONFIG_FILES.
4942 # This happens for instance when ./config.status config.h
4943 if test -n "\$CONFIG_FILES"; then
4944 # Protect against being on the right side of a sed subst in config.status.
4945 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4946 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4947 s,@SHELL@,$SHELL,;t t
4948 s,@exec_prefix@,$exec_prefix,;t t
4949 s,@prefix@,$prefix,;t t
4950 s,@program_transform_name@,$program_transform_name,;t t
4951 s,@bindir@,$bindir,;t t
4952 s,@sbindir@,$sbindir,;t t
4953 s,@libexecdir@,$libexecdir,;t t
4954 s,@datadir@,$datadir,;t t
4955 s,@sysconfdir@,$sysconfdir,;t t
4956 s,@sharedstatedir@,$sharedstatedir,;t t
4957 s,@localstatedir@,$localstatedir,;t t
4958 s,@libdir@,$libdir,;t t
4959 s,@includedir@,$includedir,;t t
4960 s,@oldincludedir@,$oldincludedir,;t t
4961 s,@infodir@,$infodir,;t t
4962 s,@mandir@,$mandir,;t t
4963 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4964 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4965 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4966 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4967 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4968 s,@build_alias@,$build_alias,;t t
4969 s,@host_alias@,$host_alias,;t t
4970 s,@target_alias@,$target_alias,;t t
4971 s,@ECHO_C@,$ECHO_C,;t t
4972 s,@ECHO_N@,$ECHO_N,;t t
4973 s,@ECHO_T@,$ECHO_T,;t t
4974 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4975 s,@DEFS@,$DEFS,;t t
4976 s,@LIBS@,$LIBS,;t t
4977 s,@CC@,$CC,;t t
4978 s,@CFLAGS@,$CFLAGS,;t t
4979 s,@LDFLAGS@,$LDFLAGS,;t t
4980 s,@CPPFLAGS@,$CPPFLAGS,;t t
4981 s,@ac_ct_CC@,$ac_ct_CC,;t t
4982 s,@EXEEXT@,$EXEEXT,;t t
4983 s,@OBJEXT@,$OBJEXT,;t t
4984 s,@CPP@,$CPP,;t t
4985 CEOF
4986
4987 EOF
4988
4989 cat >>$CONFIG_STATUS <<\EOF
4990 # Split the substitutions into bite-sized pieces for seds with
4991 # small command number limits, like on Digital OSF/1 and HP-UX.
4992 ac_max_sed_lines=48
4993 ac_sed_frag=1 # Number of current file.
4994 ac_beg=1 # First line for current file.
4995 ac_end=$ac_max_sed_lines # Line after last line for current file.
4996 ac_more_lines=:
4997 ac_sed_cmds=
4998 while $ac_more_lines; do
4999 if test $ac_beg -gt 1; then
5000 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5001 else
5002 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5003 fi
5004 if test ! -s $tmp/subs.frag; then
5005 ac_more_lines=false
5006 else
5007 # The purpose of the label and of the branching condition is to
5008 # speed up the sed processing (if there are no `@' at all, there
5009 # is no need to browse any of the substitutions).
5010 # These are the two extra sed commands mentioned above.
5011 (echo ':t
5012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5013 if test -z "$ac_sed_cmds"; then
5014 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5015 else
5016 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5017 fi
5018 ac_sed_frag=`expr $ac_sed_frag + 1`
5019 ac_beg=$ac_end
5020 ac_end=`expr $ac_end + $ac_max_sed_lines`
5021 fi
5022 done
5023 if test -z "$ac_sed_cmds"; then
5024 ac_sed_cmds=cat
5025 fi
5026 fi # test -n "$CONFIG_FILES"
5027
5028 EOF
5029 cat >>$CONFIG_STATUS <<\EOF
5030 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5031 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5032 case $ac_file in
5033 - | *:- | *:-:* ) # input from stdin
5034 cat >$tmp/stdin
5035 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5037 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5038 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5039 * ) ac_file_in=$ac_file.in ;;
5040 esac
5041
5042 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5043 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5044 X"$ac_file" : 'X\(//\)[^/]' \| \
5045 X"$ac_file" : 'X\(//\)$' \| \
5046 X"$ac_file" : 'X\(/\)' \| \
5047 . : '\(.\)' 2>/dev/null ||
5048 echo X"$ac_file" |
5049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5051 /^X\(\/\/\)$/{ s//\1/; q; }
5052 /^X\(\/\).*/{ s//\1/; q; }
5053 s/.*/./; q'`
5054 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5055 { case "$ac_dir" in
5056 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5057 *) as_incr_dir=.;;
5058 esac
5059 as_dummy="$ac_dir"
5060 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5061 case $as_mkdir_dir in
5062 # Skip DOS drivespec
5063 ?:) as_incr_dir=$as_mkdir_dir ;;
5064 *)
5065 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5066 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5067 ;;
5068 esac
5069 done; }
5070
5071 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5072 # A "../" for each directory in $ac_dir_suffix.
5073 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5074 else
5075 ac_dir_suffix= ac_dots=
5076 fi
5077
5078 case $srcdir in
5079 .) ac_srcdir=.
5080 if test -z "$ac_dots"; then
5081 ac_top_srcdir=.
5082 else
5083 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5084 fi ;;
5085 [\\/]* | ?:[\\/]* )
5086 ac_srcdir=$srcdir$ac_dir_suffix;
5087 ac_top_srcdir=$srcdir ;;
5088 *) # Relative path.
5089 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5090 ac_top_srcdir=$ac_dots$srcdir ;;
5091 esac
5092
5093 if test x"$ac_file" != x-; then
5094 { echo "$as_me:5094: creating $ac_file" >&5
5095 echo "$as_me: creating $ac_file" >&6;}
5096 rm -f "$ac_file"
5097 fi
5098 # Let's still pretend it is `configure' which instantiates (i.e., don't
5099 # use $as_me), people would be surprised to read:
5100 # /* config.h. Generated automatically by config.status. */
5101 configure_input="Generated automatically from `echo $ac_file_in |
5102 sed 's,.*/,,'` by configure."
5103
5104 # First look for the input files in the build tree, otherwise in the
5105 # src tree.
5106 ac_file_inputs=`IFS=:
5107 for f in $ac_file_in; do
5108 case $f in
5109 -) echo $tmp/stdin ;;
5110 [\\/$]*)
5111 # Absolute (can't be DOS-style, as IFS=:)
5112 test -f "$f" || { { echo "$as_me:5112: error: cannot find input file: $f" >&5
5113 echo "$as_me: error: cannot find input file: $f" >&2;}
5114 { (exit 1); exit 1; }; }
5115 echo $f;;
5116 *) # Relative
5117 if test -f "$f"; then
5118 # Build tree
5119 echo $f
5120 elif test -f "$srcdir/$f"; then
5121 # Source tree
5122 echo $srcdir/$f
5123 else
5124 # /dev/null tree
5125 { { echo "$as_me:5125: error: cannot find input file: $f" >&5
5126 echo "$as_me: error: cannot find input file: $f" >&2;}
5127 { (exit 1); exit 1; }; }
5128 fi;;
5129 esac
5130 done` || { (exit 1); exit 1; }
5131 EOF
5132 cat >>$CONFIG_STATUS <<EOF
5133 sed "$ac_vpsub
5134 $extrasub
5135 EOF
5136 cat >>$CONFIG_STATUS <<\EOF
5137 :t
5138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5139 s,@configure_input@,$configure_input,;t t
5140 s,@srcdir@,$ac_srcdir,;t t
5141 s,@top_srcdir@,$ac_top_srcdir,;t t
5142 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5143 rm -f $tmp/stdin
5144 if test x"$ac_file" != x-; then
5145 mv $tmp/out $ac_file
5146 else
5147 cat $tmp/out
5148 rm -f $tmp/out
5149 fi
5150
5151 done
5152 EOF
5153 cat >>$CONFIG_STATUS <<\EOF
5154
5155 #
5156 # CONFIG_HEADER section.
5157 #
5158
5159 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5160 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5161 #
5162 # ac_d sets the value in "#define NAME VALUE" lines.
5163 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5164 ac_dB='[ ].*$,\1#\2'
5165 ac_dC=' '
5166 ac_dD=',;t'
5167 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5168 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5169 ac_uB='$,\1#\2define\3'
5170 ac_uC=' '
5171 ac_uD=',;t'
5172
5173 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5174 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5175 case $ac_file in
5176 - | *:- | *:-:* ) # input from stdin
5177 cat >$tmp/stdin
5178 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5180 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5182 * ) ac_file_in=$ac_file.in ;;
5183 esac
5184
5185 test x"$ac_file" != x- && { echo "$as_me:5185: creating $ac_file" >&5
5186 echo "$as_me: creating $ac_file" >&6;}
5187
5188 # First look for the input files in the build tree, otherwise in the
5189 # src tree.
5190 ac_file_inputs=`IFS=:
5191 for f in $ac_file_in; do
5192 case $f in
5193 -) echo $tmp/stdin ;;
5194 [\\/$]*)
5195 # Absolute (can't be DOS-style, as IFS=:)
5196 test -f "$f" || { { echo "$as_me:5196: error: cannot find input file: $f" >&5
5197 echo "$as_me: error: cannot find input file: $f" >&2;}
5198 { (exit 1); exit 1; }; }
5199 echo $f;;
5200 *) # Relative
5201 if test -f "$f"; then
5202 # Build tree
5203 echo $f
5204 elif test -f "$srcdir/$f"; then
5205 # Source tree
5206 echo $srcdir/$f
5207 else
5208 # /dev/null tree
5209 { { echo "$as_me:5209: error: cannot find input file: $f" >&5
5210 echo "$as_me: error: cannot find input file: $f" >&2;}
5211 { (exit 1); exit 1; }; }
5212 fi;;
5213 esac
5214 done` || { (exit 1); exit 1; }
5215 # Remove the trailing spaces.
5216 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5217
5218 EOF
5219
5220 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5221 # `conftest.undefs', that substitutes the proper values into
5222 # config.h.in to produce config.h. The first handles `#define'
5223 # templates, and the second `#undef' templates.
5224 # And first: Protect against being on the right side of a sed subst in
5225 # config.status. Protect against being in an unquoted here document
5226 # in config.status.
5227 rm -f conftest.defines conftest.undefs
5228 # Using a here document instead of a string reduces the quoting nightmare.
5229 # Putting comments in sed scripts is not portable.
5230 #
5231 # `end' is used to avoid that the second main sed command (meant for
5232 # 0-ary CPP macros) applies to n-ary macro definitions.
5233 # See the Autoconf documentation for `clear'.
5234 cat >confdef2sed.sed <<\EOF
5235 s/[\\&,]/\\&/g
5236 s,[\\$`],\\&,g
5237 t clear
5238 : clear
5239 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5240 t end
5241 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5242 : end
5243 EOF
5244 # If some macros were called several times there might be several times
5245 # the same #defines, which is useless. Nevertheless, we may not want to
5246 # sort them, since we want the *last* AC-DEFINE to be honored.
5247 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5248 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5249 rm -f confdef2sed.sed
5250
5251 # This sed command replaces #undef with comments. This is necessary, for
5252 # example, in the case of _POSIX_SOURCE, which is predefined and required
5253 # on some systems where configure will not decide to define it.
5254 cat >>conftest.undefs <<\EOF
5255 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5256 EOF
5257
5258 # Break up conftest.defines because some shells have a limit on the size
5259 # of here documents, and old seds have small limits too (100 cmds).
5260 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5261 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5262 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5263 echo ' :' >>$CONFIG_STATUS
5264 rm -f conftest.tail
5265 while grep . conftest.defines >/dev/null
5266 do
5267 # Write a limited-size here document to $tmp/defines.sed.
5268 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5269 # Speed up: don't consider the non `#define' lines.
5270 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5271 # Work around the forget-to-reset-the-flag bug.
5272 echo 't clr' >>$CONFIG_STATUS
5273 echo ': clr' >>$CONFIG_STATUS
5274 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5275 echo 'CEOF
5276 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5277 rm -f $tmp/in
5278 mv $tmp/out $tmp/in
5279 ' >>$CONFIG_STATUS
5280 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5281 rm -f conftest.defines
5282 mv conftest.tail conftest.defines
5283 done
5284 rm -f conftest.defines
5285 echo ' fi # egrep' >>$CONFIG_STATUS
5286 echo >>$CONFIG_STATUS
5287
5288 # Break up conftest.undefs because some shells have a limit on the size
5289 # of here documents, and old seds have small limits too (100 cmds).
5290 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5291 rm -f conftest.tail
5292 while grep . conftest.undefs >/dev/null
5293 do
5294 # Write a limited-size here document to $tmp/undefs.sed.
5295 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5296 # Speed up: don't consider the non `#undef'
5297 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5298 # Work around the forget-to-reset-the-flag bug.
5299 echo 't clr' >>$CONFIG_STATUS
5300 echo ': clr' >>$CONFIG_STATUS
5301 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5302 echo 'CEOF
5303 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5304 rm -f $tmp/in
5305 mv $tmp/out $tmp/in
5306 ' >>$CONFIG_STATUS
5307 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5308 rm -f conftest.undefs
5309 mv conftest.tail conftest.undefs
5310 done
5311 rm -f conftest.undefs
5312
5313 cat >>$CONFIG_STATUS <<\EOF
5314 # Let's still pretend it is `configure' which instantiates (i.e., don't
5315 # use $as_me), people would be surprised to read:
5316 # /* config.h. Generated automatically by config.status. */
5317 if test x"$ac_file" = x-; then
5318 echo "/* Generated automatically by configure. */" >$tmp/config.h
5319 else
5320 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5321 fi
5322 cat $tmp/in >>$tmp/config.h
5323 rm -f $tmp/in
5324 if test x"$ac_file" != x-; then
5325 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5326 { echo "$as_me:5326: $ac_file is unchanged" >&5
5327 echo "$as_me: $ac_file is unchanged" >&6;}
5328 else
5329 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5330 X"$ac_file" : 'X\(//\)[^/]' \| \
5331 X"$ac_file" : 'X\(//\)$' \| \
5332 X"$ac_file" : 'X\(/\)' \| \
5333 . : '\(.\)' 2>/dev/null ||
5334 echo X"$ac_file" |
5335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5337 /^X\(\/\/\)$/{ s//\1/; q; }
5338 /^X\(\/\).*/{ s//\1/; q; }
5339 s/.*/./; q'`
5340 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5341 { case "$ac_dir" in
5342 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5343 *) as_incr_dir=.;;
5344 esac
5345 as_dummy="$ac_dir"
5346 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5347 case $as_mkdir_dir in
5348 # Skip DOS drivespec
5349 ?:) as_incr_dir=$as_mkdir_dir ;;
5350 *)
5351 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5352 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5353 ;;
5354 esac
5355 done; }
5356
5357 fi
5358 rm -f $ac_file
5359 mv $tmp/config.h $ac_file
5360 fi
5361 else
5362 cat $tmp/config.h
5363 rm -f $tmp/config.h
5364 fi
5365 done
5366 EOF
5367
5368 cat >>$CONFIG_STATUS <<\EOF
5369
5370 { (exit 0); exit 0; }
5371 EOF
5372 chmod +x $CONFIG_STATUS
5373 ac_clean_files=$ac_clean_files_save
5374
5375 # configure is writing to config.log, and then calls config.status.
5376 # config.status does its own redirection, appending to config.log.
5377 # Unfortunately, on DOS this fails, as config.log is still kept open
5378 # by configure, so config.status won't be able to write to it; its
5379 # output is simply discarded. So we exec the FD to /dev/null,
5380 # effectively closing config.log, so it can be properly (re)opened and
5381 # appended to by config.status. When coming back to configure, we
5382 # need to make the FD available again.
5383 if test "$no_create" != yes; then
5384 ac_cs_success=:
5385 exec 5>/dev/null
5386 $SHELL $CONFIG_STATUS || ac_cs_success=false
5387 exec 5>>config.log
5388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5389 # would make configure fail if this is the last instruction.
5390 $ac_cs_success || { (exit 1); exit 1; }
5391 fi
5392
5393