configure revision 1.61.2.2 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 nbtool_config.h"
964
965 ac_config_files="$ac_config_files defs.mk"
966
967 # Autoheader header and footer
968
969 # AC_NETBSD
970
971 ac_ext=c
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
976 if test -n "$ac_tool_prefix"; then
977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
978 set dummy ${ac_tool_prefix}gcc; ac_word=$2
979 echo "$as_me:979: checking for $ac_word" >&5
980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
981 if test "${ac_cv_prog_CC+set}" = set; then
982 echo $ECHO_N "(cached) $ECHO_C" >&6
983 else
984 if test -n "$CC"; then
985 ac_cv_prog_CC="$CC" # Let the user override the test.
986 else
987 ac_save_IFS=$IFS; IFS=$ac_path_separator
988 ac_dummy="$PATH"
989 for ac_dir in $ac_dummy; do
990 IFS=$ac_save_IFS
991 test -z "$ac_dir" && ac_dir=.
992 $as_executable_p "$ac_dir/$ac_word" || continue
993 ac_cv_prog_CC="${ac_tool_prefix}gcc"
994 echo "$as_me:994: found $ac_dir/$ac_word" >&5
995 break
996 done
997
998 fi
999 fi
1000 CC=$ac_cv_prog_CC
1001 if test -n "$CC"; then
1002 echo "$as_me:1002: result: $CC" >&5
1003 echo "${ECHO_T}$CC" >&6
1004 else
1005 echo "$as_me:1005: result: no" >&5
1006 echo "${ECHO_T}no" >&6
1007 fi
1008
1009 fi
1010 if test -z "$ac_cv_prog_CC"; then
1011 ac_ct_CC=$CC
1012 # Extract the first word of "gcc", so it can be a program name with args.
1013 set dummy gcc; ac_word=$2
1014 echo "$as_me:1014: checking for $ac_word" >&5
1015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1017 echo $ECHO_N "(cached) $ECHO_C" >&6
1018 else
1019 if test -n "$ac_ct_CC"; then
1020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1021 else
1022 ac_save_IFS=$IFS; IFS=$ac_path_separator
1023 ac_dummy="$PATH"
1024 for ac_dir in $ac_dummy; do
1025 IFS=$ac_save_IFS
1026 test -z "$ac_dir" && ac_dir=.
1027 $as_executable_p "$ac_dir/$ac_word" || continue
1028 ac_cv_prog_ac_ct_CC="gcc"
1029 echo "$as_me:1029: found $ac_dir/$ac_word" >&5
1030 break
1031 done
1032
1033 fi
1034 fi
1035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1036 if test -n "$ac_ct_CC"; then
1037 echo "$as_me:1037: result: $ac_ct_CC" >&5
1038 echo "${ECHO_T}$ac_ct_CC" >&6
1039 else
1040 echo "$as_me:1040: result: no" >&5
1041 echo "${ECHO_T}no" >&6
1042 fi
1043
1044 CC=$ac_ct_CC
1045 else
1046 CC="$ac_cv_prog_CC"
1047 fi
1048
1049 if test -z "$CC"; then
1050 if test -n "$ac_tool_prefix"; then
1051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1052 set dummy ${ac_tool_prefix}cc; ac_word=$2
1053 echo "$as_me:1053: checking for $ac_word" >&5
1054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1055 if test "${ac_cv_prog_CC+set}" = set; then
1056 echo $ECHO_N "(cached) $ECHO_C" >&6
1057 else
1058 if test -n "$CC"; then
1059 ac_cv_prog_CC="$CC" # Let the user override the test.
1060 else
1061 ac_save_IFS=$IFS; IFS=$ac_path_separator
1062 ac_dummy="$PATH"
1063 for ac_dir in $ac_dummy; do
1064 IFS=$ac_save_IFS
1065 test -z "$ac_dir" && ac_dir=.
1066 $as_executable_p "$ac_dir/$ac_word" || continue
1067 ac_cv_prog_CC="${ac_tool_prefix}cc"
1068 echo "$as_me:1068: found $ac_dir/$ac_word" >&5
1069 break
1070 done
1071
1072 fi
1073 fi
1074 CC=$ac_cv_prog_CC
1075 if test -n "$CC"; then
1076 echo "$as_me:1076: result: $CC" >&5
1077 echo "${ECHO_T}$CC" >&6
1078 else
1079 echo "$as_me:1079: result: no" >&5
1080 echo "${ECHO_T}no" >&6
1081 fi
1082
1083 fi
1084 if test -z "$ac_cv_prog_CC"; then
1085 ac_ct_CC=$CC
1086 # Extract the first word of "cc", so it can be a program name with args.
1087 set dummy cc; ac_word=$2
1088 echo "$as_me:1088: checking for $ac_word" >&5
1089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1091 echo $ECHO_N "(cached) $ECHO_C" >&6
1092 else
1093 if test -n "$ac_ct_CC"; then
1094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1095 else
1096 ac_save_IFS=$IFS; IFS=$ac_path_separator
1097 ac_dummy="$PATH"
1098 for ac_dir in $ac_dummy; do
1099 IFS=$ac_save_IFS
1100 test -z "$ac_dir" && ac_dir=.
1101 $as_executable_p "$ac_dir/$ac_word" || continue
1102 ac_cv_prog_ac_ct_CC="cc"
1103 echo "$as_me:1103: found $ac_dir/$ac_word" >&5
1104 break
1105 done
1106
1107 fi
1108 fi
1109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1110 if test -n "$ac_ct_CC"; then
1111 echo "$as_me:1111: result: $ac_ct_CC" >&5
1112 echo "${ECHO_T}$ac_ct_CC" >&6
1113 else
1114 echo "$as_me:1114: result: no" >&5
1115 echo "${ECHO_T}no" >&6
1116 fi
1117
1118 CC=$ac_ct_CC
1119 else
1120 CC="$ac_cv_prog_CC"
1121 fi
1122
1123 fi
1124 if test -z "$CC"; then
1125 # Extract the first word of "cc", so it can be a program name with args.
1126 set dummy cc; ac_word=$2
1127 echo "$as_me:1127: checking for $ac_word" >&5
1128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1129 if test "${ac_cv_prog_CC+set}" = set; then
1130 echo $ECHO_N "(cached) $ECHO_C" >&6
1131 else
1132 if test -n "$CC"; then
1133 ac_cv_prog_CC="$CC" # Let the user override the test.
1134 else
1135 ac_prog_rejected=no
1136 ac_save_IFS=$IFS; IFS=$ac_path_separator
1137 ac_dummy="$PATH"
1138 for ac_dir in $ac_dummy; do
1139 IFS=$ac_save_IFS
1140 test -z "$ac_dir" && ac_dir=.
1141 $as_executable_p "$ac_dir/$ac_word" || continue
1142 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1143 ac_prog_rejected=yes
1144 continue
1145 fi
1146 ac_cv_prog_CC="cc"
1147 echo "$as_me:1147: found $ac_dir/$ac_word" >&5
1148 break
1149 done
1150
1151 if test $ac_prog_rejected = yes; then
1152 # We found a bogon in the path, so make sure we never use it.
1153 set dummy $ac_cv_prog_CC
1154 shift
1155 if test $# != 0; then
1156 # We chose a different compiler from the bogus one.
1157 # However, it has the same basename, so the bogon will be chosen
1158 # first if we set CC to just the basename; use the full file name.
1159 shift
1160 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1161 shift
1162 ac_cv_prog_CC="$@"
1163 fi
1164 fi
1165 fi
1166 fi
1167 CC=$ac_cv_prog_CC
1168 if test -n "$CC"; then
1169 echo "$as_me:1169: result: $CC" >&5
1170 echo "${ECHO_T}$CC" >&6
1171 else
1172 echo "$as_me:1172: result: no" >&5
1173 echo "${ECHO_T}no" >&6
1174 fi
1175
1176 fi
1177 if test -z "$CC"; then
1178 if test -n "$ac_tool_prefix"; then
1179 for ac_prog in cl
1180 do
1181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1183 echo "$as_me:1183: checking for $ac_word" >&5
1184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1185 if test "${ac_cv_prog_CC+set}" = set; then
1186 echo $ECHO_N "(cached) $ECHO_C" >&6
1187 else
1188 if test -n "$CC"; then
1189 ac_cv_prog_CC="$CC" # Let the user override the test.
1190 else
1191 ac_save_IFS=$IFS; IFS=$ac_path_separator
1192 ac_dummy="$PATH"
1193 for ac_dir in $ac_dummy; do
1194 IFS=$ac_save_IFS
1195 test -z "$ac_dir" && ac_dir=.
1196 $as_executable_p "$ac_dir/$ac_word" || continue
1197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1198 echo "$as_me:1198: found $ac_dir/$ac_word" >&5
1199 break
1200 done
1201
1202 fi
1203 fi
1204 CC=$ac_cv_prog_CC
1205 if test -n "$CC"; then
1206 echo "$as_me:1206: result: $CC" >&5
1207 echo "${ECHO_T}$CC" >&6
1208 else
1209 echo "$as_me:1209: result: no" >&5
1210 echo "${ECHO_T}no" >&6
1211 fi
1212
1213 test -n "$CC" && break
1214 done
1215 fi
1216 if test -z "$CC"; then
1217 ac_ct_CC=$CC
1218 for ac_prog in cl
1219 do
1220 # Extract the first word of "$ac_prog", so it can be a program name with args.
1221 set dummy $ac_prog; ac_word=$2
1222 echo "$as_me:1222: checking for $ac_word" >&5
1223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1225 echo $ECHO_N "(cached) $ECHO_C" >&6
1226 else
1227 if test -n "$ac_ct_CC"; then
1228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1229 else
1230 ac_save_IFS=$IFS; IFS=$ac_path_separator
1231 ac_dummy="$PATH"
1232 for ac_dir in $ac_dummy; do
1233 IFS=$ac_save_IFS
1234 test -z "$ac_dir" && ac_dir=.
1235 $as_executable_p "$ac_dir/$ac_word" || continue
1236 ac_cv_prog_ac_ct_CC="$ac_prog"
1237 echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1238 break
1239 done
1240
1241 fi
1242 fi
1243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1244 if test -n "$ac_ct_CC"; then
1245 echo "$as_me:1245: result: $ac_ct_CC" >&5
1246 echo "${ECHO_T}$ac_ct_CC" >&6
1247 else
1248 echo "$as_me:1248: result: no" >&5
1249 echo "${ECHO_T}no" >&6
1250 fi
1251
1252 test -n "$ac_ct_CC" && break
1253 done
1254
1255 CC=$ac_ct_CC
1256 fi
1257
1258 fi
1259
1260 test -z "$CC" && { { echo "$as_me:1260: error: no acceptable cc found in \$PATH" >&5
1261 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1262 { (exit 1); exit 1; }; }
1263
1264 # Provide some information about the compiler.
1265 echo "$as_me:1265:" \
1266 "checking for C compiler version" >&5
1267 ac_compiler=`set X $ac_compile; echo $2`
1268 { (eval echo "$as_me:1268: \"$ac_compiler --version </dev/null >&5\"") >&5
1269 (eval $ac_compiler --version </dev/null >&5) 2>&5
1270 ac_status=$?
1271 echo "$as_me:1271: \$? = $ac_status" >&5
1272 (exit $ac_status); }
1273 { (eval echo "$as_me:1273: \"$ac_compiler -v </dev/null >&5\"") >&5
1274 (eval $ac_compiler -v </dev/null >&5) 2>&5
1275 ac_status=$?
1276 echo "$as_me:1276: \$? = $ac_status" >&5
1277 (exit $ac_status); }
1278 { (eval echo "$as_me:1278: \"$ac_compiler -V </dev/null >&5\"") >&5
1279 (eval $ac_compiler -V </dev/null >&5) 2>&5
1280 ac_status=$?
1281 echo "$as_me:1281: \$? = $ac_status" >&5
1282 (exit $ac_status); }
1283
1284 cat >conftest.$ac_ext <<_ACEOF
1285 #line 1285 "configure"
1286 #include "confdefs.h"
1287
1288 int
1289 main ()
1290 {
1291
1292 ;
1293 return 0;
1294 }
1295 _ACEOF
1296 ac_clean_files_save=$ac_clean_files
1297 ac_clean_files="$ac_clean_files a.out a.exe"
1298 # Try to create an executable without -o first, disregard a.out.
1299 # It will help us diagnose broken compilers, and finding out an intuition
1300 # of exeext.
1301 echo "$as_me:1301: checking for C compiler default output" >&5
1302 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1303 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1304 if { (eval echo "$as_me:1304: \"$ac_link_default\"") >&5
1305 (eval $ac_link_default) 2>&5
1306 ac_status=$?
1307 echo "$as_me:1307: \$? = $ac_status" >&5
1308 (exit $ac_status); }; then
1309 # Find the output, starting from the most likely. This scheme is
1310 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1311 # resort.
1312 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1313 ls a.out conftest 2>/dev/null;
1314 ls a.* conftest.* 2>/dev/null`; do
1315 case $ac_file in
1316 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1317 a.out ) # We found the default executable, but exeext='' is most
1318 # certainly right.
1319 break;;
1320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1321 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1322 export ac_cv_exeext
1323 break;;
1324 * ) break;;
1325 esac
1326 done
1327 else
1328 echo "$as_me: failed program was:" >&5
1329 cat conftest.$ac_ext >&5
1330 { { echo "$as_me:1330: error: C compiler cannot create executables" >&5
1331 echo "$as_me: error: C compiler cannot create executables" >&2;}
1332 { (exit 77); exit 77; }; }
1333 fi
1334
1335 ac_exeext=$ac_cv_exeext
1336 echo "$as_me:1336: result: $ac_file" >&5
1337 echo "${ECHO_T}$ac_file" >&6
1338
1339 # Check the compiler produces executables we can run. If not, either
1340 # the compiler is broken, or we cross compile.
1341 echo "$as_me:1341: checking whether the C compiler works" >&5
1342 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1343 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1344 # If not cross compiling, check that we can run a simple program.
1345 if test "$cross_compiling" != yes; then
1346 if { ac_try='./$ac_file'
1347 { (eval echo "$as_me:1347: \"$ac_try\"") >&5
1348 (eval $ac_try) 2>&5
1349 ac_status=$?
1350 echo "$as_me:1350: \$? = $ac_status" >&5
1351 (exit $ac_status); }; }; then
1352 cross_compiling=no
1353 else
1354 if test "$cross_compiling" = maybe; then
1355 cross_compiling=yes
1356 else
1357 { { echo "$as_me:1357: error: cannot run C compiled programs.
1358 If you meant to cross compile, use \`--host'." >&5
1359 echo "$as_me: error: cannot run C compiled programs.
1360 If you meant to cross compile, use \`--host'." >&2;}
1361 { (exit 1); exit 1; }; }
1362 fi
1363 fi
1364 fi
1365 echo "$as_me:1365: result: yes" >&5
1366 echo "${ECHO_T}yes" >&6
1367
1368 rm -f a.out a.exe conftest$ac_cv_exeext
1369 ac_clean_files=$ac_clean_files_save
1370 # Check the compiler produces executables we can run. If not, either
1371 # the compiler is broken, or we cross compile.
1372 echo "$as_me:1372: checking whether we are cross compiling" >&5
1373 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1374 echo "$as_me:1374: result: $cross_compiling" >&5
1375 echo "${ECHO_T}$cross_compiling" >&6
1376
1377 echo "$as_me:1377: checking for executable suffix" >&5
1378 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1379 if { (eval echo "$as_me:1379: \"$ac_link\"") >&5
1380 (eval $ac_link) 2>&5
1381 ac_status=$?
1382 echo "$as_me:1382: \$? = $ac_status" >&5
1383 (exit $ac_status); }; then
1384 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1385 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1386 # work properly (i.e., refer to `conftest.exe'), while it won't with
1387 # `rm'.
1388 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1389 case $ac_file in
1390 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1391 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1392 export ac_cv_exeext
1393 break;;
1394 * ) break;;
1395 esac
1396 done
1397 else
1398 { { echo "$as_me:1398: error: cannot compute EXEEXT: cannot compile and link" >&5
1399 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1400 { (exit 1); exit 1; }; }
1401 fi
1402
1403 rm -f conftest$ac_cv_exeext
1404 echo "$as_me:1404: result: $ac_cv_exeext" >&5
1405 echo "${ECHO_T}$ac_cv_exeext" >&6
1406
1407 rm -f conftest.$ac_ext
1408 EXEEXT=$ac_cv_exeext
1409 ac_exeext=$EXEEXT
1410 echo "$as_me:1410: checking for object suffix" >&5
1411 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1412 if test "${ac_cv_objext+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 else
1415 cat >conftest.$ac_ext <<_ACEOF
1416 #line 1416 "configure"
1417 #include "confdefs.h"
1418
1419 int
1420 main ()
1421 {
1422
1423 ;
1424 return 0;
1425 }
1426 _ACEOF
1427 rm -f conftest.o conftest.obj
1428 if { (eval echo "$as_me:1428: \"$ac_compile\"") >&5
1429 (eval $ac_compile) 2>&5
1430 ac_status=$?
1431 echo "$as_me:1431: \$? = $ac_status" >&5
1432 (exit $ac_status); }; then
1433 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1434 case $ac_file in
1435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1436 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1437 break;;
1438 esac
1439 done
1440 else
1441 echo "$as_me: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
1443 { { echo "$as_me:1443: error: cannot compute OBJEXT: cannot compile" >&5
1444 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1445 { (exit 1); exit 1; }; }
1446 fi
1447
1448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1449 fi
1450 echo "$as_me:1450: result: $ac_cv_objext" >&5
1451 echo "${ECHO_T}$ac_cv_objext" >&6
1452 OBJEXT=$ac_cv_objext
1453 ac_objext=$OBJEXT
1454 echo "$as_me:1454: checking whether we are using the GNU C compiler" >&5
1455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459 cat >conftest.$ac_ext <<_ACEOF
1460 #line 1460 "configure"
1461 #include "confdefs.h"
1462
1463 int
1464 main ()
1465 {
1466 #ifndef __GNUC__
1467 choke me
1468 #endif
1469
1470 ;
1471 return 0;
1472 }
1473 _ACEOF
1474 rm -f conftest.$ac_objext
1475 if { (eval echo "$as_me:1475: \"$ac_compile\"") >&5
1476 (eval $ac_compile) 2>&5
1477 ac_status=$?
1478 echo "$as_me:1478: \$? = $ac_status" >&5
1479 (exit $ac_status); } &&
1480 { ac_try='test -s conftest.$ac_objext'
1481 { (eval echo "$as_me:1481: \"$ac_try\"") >&5
1482 (eval $ac_try) 2>&5
1483 ac_status=$?
1484 echo "$as_me:1484: \$? = $ac_status" >&5
1485 (exit $ac_status); }; }; then
1486 ac_compiler_gnu=yes
1487 else
1488 echo "$as_me: failed program was:" >&5
1489 cat conftest.$ac_ext >&5
1490 ac_compiler_gnu=no
1491 fi
1492 rm -f conftest.$ac_objext conftest.$ac_ext
1493 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1494
1495 fi
1496 echo "$as_me:1496: result: $ac_cv_c_compiler_gnu" >&5
1497 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1498 GCC=`test $ac_compiler_gnu = yes && echo yes`
1499 ac_test_CFLAGS=${CFLAGS+set}
1500 ac_save_CFLAGS=$CFLAGS
1501 CFLAGS="-g"
1502 echo "$as_me:1502: checking whether $CC accepts -g" >&5
1503 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1504 if test "${ac_cv_prog_cc_g+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 cat >conftest.$ac_ext <<_ACEOF
1508 #line 1508 "configure"
1509 #include "confdefs.h"
1510
1511 int
1512 main ()
1513 {
1514
1515 ;
1516 return 0;
1517 }
1518 _ACEOF
1519 rm -f conftest.$ac_objext
1520 if { (eval echo "$as_me:1520: \"$ac_compile\"") >&5
1521 (eval $ac_compile) 2>&5
1522 ac_status=$?
1523 echo "$as_me:1523: \$? = $ac_status" >&5
1524 (exit $ac_status); } &&
1525 { ac_try='test -s conftest.$ac_objext'
1526 { (eval echo "$as_me:1526: \"$ac_try\"") >&5
1527 (eval $ac_try) 2>&5
1528 ac_status=$?
1529 echo "$as_me:1529: \$? = $ac_status" >&5
1530 (exit $ac_status); }; }; then
1531 ac_cv_prog_cc_g=yes
1532 else
1533 echo "$as_me: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1535 ac_cv_prog_cc_g=no
1536 fi
1537 rm -f conftest.$ac_objext conftest.$ac_ext
1538 fi
1539 echo "$as_me:1539: result: $ac_cv_prog_cc_g" >&5
1540 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1541 if test "$ac_test_CFLAGS" = set; then
1542 CFLAGS=$ac_save_CFLAGS
1543 elif test $ac_cv_prog_cc_g = yes; then
1544 if test "$GCC" = yes; then
1545 CFLAGS="-g -O2"
1546 else
1547 CFLAGS="-g"
1548 fi
1549 else
1550 if test "$GCC" = yes; then
1551 CFLAGS="-O2"
1552 else
1553 CFLAGS=
1554 fi
1555 fi
1556 # Some people use a C++ compiler to compile C. Since we use `exit',
1557 # in C++ we need to declare it. In case someone uses the same compiler
1558 # for both compiling C and C++ we need to have the C++ compiler decide
1559 # the declaration of exit, since it's the most demanding environment.
1560 cat >conftest.$ac_ext <<_ACEOF
1561 #ifndef __cplusplus
1562 choke me
1563 #endif
1564 _ACEOF
1565 rm -f conftest.$ac_objext
1566 if { (eval echo "$as_me:1566: \"$ac_compile\"") >&5
1567 (eval $ac_compile) 2>&5
1568 ac_status=$?
1569 echo "$as_me:1569: \$? = $ac_status" >&5
1570 (exit $ac_status); } &&
1571 { ac_try='test -s conftest.$ac_objext'
1572 { (eval echo "$as_me:1572: \"$ac_try\"") >&5
1573 (eval $ac_try) 2>&5
1574 ac_status=$?
1575 echo "$as_me:1575: \$? = $ac_status" >&5
1576 (exit $ac_status); }; }; then
1577 for ac_declaration in \
1578 ''\
1579 '#include <stdlib.h>' \
1580 'extern "C" void std::exit (int) throw (); using std::exit;' \
1581 'extern "C" void std::exit (int); using std::exit;' \
1582 'extern "C" void exit (int) throw ();' \
1583 'extern "C" void exit (int);' \
1584 'void exit (int);'
1585 do
1586 cat >conftest.$ac_ext <<_ACEOF
1587 #line 1587 "configure"
1588 #include "confdefs.h"
1589 #include <stdlib.h>
1590 $ac_declaration
1591 int
1592 main ()
1593 {
1594 exit (42);
1595 ;
1596 return 0;
1597 }
1598 _ACEOF
1599 rm -f conftest.$ac_objext
1600 if { (eval echo "$as_me:1600: \"$ac_compile\"") >&5
1601 (eval $ac_compile) 2>&5
1602 ac_status=$?
1603 echo "$as_me:1603: \$? = $ac_status" >&5
1604 (exit $ac_status); } &&
1605 { ac_try='test -s conftest.$ac_objext'
1606 { (eval echo "$as_me:1606: \"$ac_try\"") >&5
1607 (eval $ac_try) 2>&5
1608 ac_status=$?
1609 echo "$as_me:1609: \$? = $ac_status" >&5
1610 (exit $ac_status); }; }; then
1611 :
1612 else
1613 echo "$as_me: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1615 continue
1616 fi
1617 rm -f conftest.$ac_objext conftest.$ac_ext
1618 cat >conftest.$ac_ext <<_ACEOF
1619 #line 1619 "configure"
1620 #include "confdefs.h"
1621 $ac_declaration
1622 int
1623 main ()
1624 {
1625 exit (42);
1626 ;
1627 return 0;
1628 }
1629 _ACEOF
1630 rm -f conftest.$ac_objext
1631 if { (eval echo "$as_me:1631: \"$ac_compile\"") >&5
1632 (eval $ac_compile) 2>&5
1633 ac_status=$?
1634 echo "$as_me:1634: \$? = $ac_status" >&5
1635 (exit $ac_status); } &&
1636 { ac_try='test -s conftest.$ac_objext'
1637 { (eval echo "$as_me:1637: \"$ac_try\"") >&5
1638 (eval $ac_try) 2>&5
1639 ac_status=$?
1640 echo "$as_me:1640: \$? = $ac_status" >&5
1641 (exit $ac_status); }; }; then
1642 break
1643 else
1644 echo "$as_me: failed program was:" >&5
1645 cat conftest.$ac_ext >&5
1646 fi
1647 rm -f conftest.$ac_objext conftest.$ac_ext
1648 done
1649 rm -f conftest*
1650 if test -n "$ac_declaration"; then
1651 echo '#ifdef __cplusplus' >>confdefs.h
1652 echo $ac_declaration >>confdefs.h
1653 echo '#endif' >>confdefs.h
1654 fi
1655
1656 else
1657 echo "$as_me: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1659 fi
1660 rm -f conftest.$ac_objext conftest.$ac_ext
1661 ac_ext=c
1662 ac_cpp='$CPP $CPPFLAGS'
1663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1666
1667 ac_ext=c
1668 ac_cpp='$CPP $CPPFLAGS'
1669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1672 echo "$as_me:1672: checking how to run the C preprocessor" >&5
1673 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1674 # On Suns, sometimes $CPP names a directory.
1675 if test -n "$CPP" && test -d "$CPP"; then
1676 CPP=
1677 fi
1678 if test -z "$CPP"; then
1679 if test "${ac_cv_prog_CPP+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682 # Double quotes because CPP needs to be expanded
1683 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1684 do
1685 ac_preproc_ok=false
1686 for ac_c_preproc_warn_flag in '' yes
1687 do
1688 # Use a header file that comes with gcc, so configuring glibc
1689 # with a fresh cross-compiler works.
1690 # On the NeXT, cc -E runs the code through the compiler's parser,
1691 # not just through cpp. "Syntax error" is here to catch this case.
1692 cat >conftest.$ac_ext <<_ACEOF
1693 #line 1693 "configure"
1694 #include "confdefs.h"
1695 #include <assert.h>
1696 Syntax error
1697 _ACEOF
1698 if { (eval echo "$as_me:1698: \"$ac_cpp conftest.$ac_ext\"") >&5
1699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1700 ac_status=$?
1701 egrep -v '^ *\+' conftest.er1 >conftest.err
1702 rm -f conftest.er1
1703 cat conftest.err >&5
1704 echo "$as_me:1704: \$? = $ac_status" >&5
1705 (exit $ac_status); } >/dev/null; then
1706 if test -s conftest.err; then
1707 ac_cpp_err=$ac_c_preproc_warn_flag
1708 else
1709 ac_cpp_err=
1710 fi
1711 else
1712 ac_cpp_err=yes
1713 fi
1714 if test -z "$ac_cpp_err"; then
1715 :
1716 else
1717 echo "$as_me: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1719 # Broken: fails on valid input.
1720 continue
1721 fi
1722 rm -f conftest.err conftest.$ac_ext
1723
1724 # OK, works on sane cases. Now check whether non-existent headers
1725 # can be detected and how.
1726 cat >conftest.$ac_ext <<_ACEOF
1727 #line 1727 "configure"
1728 #include "confdefs.h"
1729 #include <ac_nonexistent.h>
1730 _ACEOF
1731 if { (eval echo "$as_me:1731: \"$ac_cpp conftest.$ac_ext\"") >&5
1732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1733 ac_status=$?
1734 egrep -v '^ *\+' conftest.er1 >conftest.err
1735 rm -f conftest.er1
1736 cat conftest.err >&5
1737 echo "$as_me:1737: \$? = $ac_status" >&5
1738 (exit $ac_status); } >/dev/null; then
1739 if test -s conftest.err; then
1740 ac_cpp_err=$ac_c_preproc_warn_flag
1741 else
1742 ac_cpp_err=
1743 fi
1744 else
1745 ac_cpp_err=yes
1746 fi
1747 if test -z "$ac_cpp_err"; then
1748 # Broken: success on invalid input.
1749 continue
1750 else
1751 echo "$as_me: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1753 # Passes both tests.
1754 ac_preproc_ok=:
1755 break
1756 fi
1757 rm -f conftest.err conftest.$ac_ext
1758
1759 done
1760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1761 rm -f conftest.err conftest.$ac_ext
1762 if $ac_preproc_ok; then
1763 break
1764 fi
1765
1766 done
1767 ac_cv_prog_CPP=$CPP
1768
1769 fi
1770 CPP=$ac_cv_prog_CPP
1771 else
1772 ac_cv_prog_CPP=$CPP
1773 fi
1774 echo "$as_me:1774: result: $CPP" >&5
1775 echo "${ECHO_T}$CPP" >&6
1776 ac_preproc_ok=false
1777 for ac_c_preproc_warn_flag in '' yes
1778 do
1779 # Use a header file that comes with gcc, so configuring glibc
1780 # with a fresh cross-compiler works.
1781 # On the NeXT, cc -E runs the code through the compiler's parser,
1782 # not just through cpp. "Syntax error" is here to catch this case.
1783 cat >conftest.$ac_ext <<_ACEOF
1784 #line 1784 "configure"
1785 #include "confdefs.h"
1786 #include <assert.h>
1787 Syntax error
1788 _ACEOF
1789 if { (eval echo "$as_me:1789: \"$ac_cpp conftest.$ac_ext\"") >&5
1790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1791 ac_status=$?
1792 egrep -v '^ *\+' conftest.er1 >conftest.err
1793 rm -f conftest.er1
1794 cat conftest.err >&5
1795 echo "$as_me:1795: \$? = $ac_status" >&5
1796 (exit $ac_status); } >/dev/null; then
1797 if test -s conftest.err; then
1798 ac_cpp_err=$ac_c_preproc_warn_flag
1799 else
1800 ac_cpp_err=
1801 fi
1802 else
1803 ac_cpp_err=yes
1804 fi
1805 if test -z "$ac_cpp_err"; then
1806 :
1807 else
1808 echo "$as_me: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1810 # Broken: fails on valid input.
1811 continue
1812 fi
1813 rm -f conftest.err conftest.$ac_ext
1814
1815 # OK, works on sane cases. Now check whether non-existent headers
1816 # can be detected and how.
1817 cat >conftest.$ac_ext <<_ACEOF
1818 #line 1818 "configure"
1819 #include "confdefs.h"
1820 #include <ac_nonexistent.h>
1821 _ACEOF
1822 if { (eval echo "$as_me:1822: \"$ac_cpp conftest.$ac_ext\"") >&5
1823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1824 ac_status=$?
1825 egrep -v '^ *\+' conftest.er1 >conftest.err
1826 rm -f conftest.er1
1827 cat conftest.err >&5
1828 echo "$as_me:1828: \$? = $ac_status" >&5
1829 (exit $ac_status); } >/dev/null; then
1830 if test -s conftest.err; then
1831 ac_cpp_err=$ac_c_preproc_warn_flag
1832 else
1833 ac_cpp_err=
1834 fi
1835 else
1836 ac_cpp_err=yes
1837 fi
1838 if test -z "$ac_cpp_err"; then
1839 # Broken: success on invalid input.
1840 continue
1841 else
1842 echo "$as_me: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1844 # Passes both tests.
1845 ac_preproc_ok=:
1846 break
1847 fi
1848 rm -f conftest.err conftest.$ac_ext
1849
1850 done
1851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1852 rm -f conftest.err conftest.$ac_ext
1853 if $ac_preproc_ok; then
1854 :
1855 else
1856 { { echo "$as_me:1856: error: C preprocessor \"$CPP\" fails sanity check" >&5
1857 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1858 { (exit 1); exit 1; }; }
1859 fi
1860
1861 ac_ext=c
1862 ac_cpp='$CPP $CPPFLAGS'
1863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1866
1867 echo "$as_me:1867: checking for NetBSD" >&5
1868 echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6
1869 cat >conftest.$ac_ext <<_ACEOF
1870 #line 1870 "configure"
1871 #include "confdefs.h"
1872 #ifdef __NetBSD__
1873 yes
1874 #endif
1875
1876 _ACEOF
1877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1878 egrep "yes" >/dev/null 2>&1; then
1879 echo "$as_me:1879: result: yes" >&5
1880 echo "${ECHO_T}yes" >&6
1881
1882 cat >>confdefs.h <<\EOF
1883 #define _POSIX_SOURCE 1
1884 EOF
1885
1886 cat >>confdefs.h <<\EOF
1887 #define _POSIX_C_SOURCE 200112L
1888 EOF
1889
1890 cat >>confdefs.h <<\EOF
1891 #define _XOPEN_SOURCE 600
1892 EOF
1893
1894 else
1895 echo "$as_me:1895: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898 rm -f conftest*
1899
1900 # Extract the first word of "sh", so it can be a program name with args.
1901 set dummy sh; ac_word=$2
1902 echo "$as_me:1902: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_path_BSHELL+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 case $BSHELL in
1908 [\\/]* | ?:[\\/]*)
1909 ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
1910 ;;
1911 *)
1912 ac_save_IFS=$IFS; IFS=$ac_path_separator
1913 ac_dummy="$PATH"
1914 for ac_dir in $ac_dummy; do
1915 IFS=$ac_save_IFS
1916 test -z "$ac_dir" && ac_dir=.
1917 if $as_executable_p "$ac_dir/$ac_word"; then
1918 ac_cv_path_BSHELL="$ac_dir/$ac_word"
1919 echo "$as_me:1919: found $ac_dir/$ac_word" >&5
1920 break
1921 fi
1922 done
1923
1924 ;;
1925 esac
1926 fi
1927 BSHELL=$ac_cv_path_BSHELL
1928
1929 if test -n "$BSHELL"; then
1930 echo "$as_me:1930: result: $BSHELL" >&5
1931 echo "${ECHO_T}$BSHELL" >&6
1932 else
1933 echo "$as_me:1933: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937 if test x"$BSHELL" = x; then
1938 { { echo "$as_me:1938: error: sh must be somewhere on \$PATH" >&5
1939 echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
1940 { (exit 1); exit 1; }; }
1941 fi
1942
1943 cat >>confdefs.h <<EOF
1944 #define PATH_BSHELL "$BSHELL"
1945 EOF
1946
1947 echo "$as_me:1947: checking whether byte ordering is bigendian" >&5
1948 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
1949 if test "${ac_cv_c_bigendian+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952 ac_cv_c_bigendian=unknown
1953 # See if sys/param.h defines the BYTE_ORDER macro.
1954 cat >conftest.$ac_ext <<_ACEOF
1955 #line 1955 "configure"
1956 #include "confdefs.h"
1957 #include <sys/types.h>
1958 #include <sys/param.h>
1959
1960 int
1961 main ()
1962 {
1963 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1964 bogus endian macros
1965 #endif
1966
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 rm -f conftest.$ac_objext
1972 if { (eval echo "$as_me:1972: \"$ac_compile\"") >&5
1973 (eval $ac_compile) 2>&5
1974 ac_status=$?
1975 echo "$as_me:1975: \$? = $ac_status" >&5
1976 (exit $ac_status); } &&
1977 { ac_try='test -s conftest.$ac_objext'
1978 { (eval echo "$as_me:1978: \"$ac_try\"") >&5
1979 (eval $ac_try) 2>&5
1980 ac_status=$?
1981 echo "$as_me:1981: \$? = $ac_status" >&5
1982 (exit $ac_status); }; }; then
1983 # It does; now see whether it defined to BIG_ENDIAN or not.
1984 cat >conftest.$ac_ext <<_ACEOF
1985 #line 1985 "configure"
1986 #include "confdefs.h"
1987 #include <sys/types.h>
1988 #include <sys/param.h>
1989
1990 int
1991 main ()
1992 {
1993 #if BYTE_ORDER != BIG_ENDIAN
1994 not big endian
1995 #endif
1996
1997 ;
1998 return 0;
1999 }
2000 _ACEOF
2001 rm -f conftest.$ac_objext
2002 if { (eval echo "$as_me:2002: \"$ac_compile\"") >&5
2003 (eval $ac_compile) 2>&5
2004 ac_status=$?
2005 echo "$as_me:2005: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:2008: \"$ac_try\"") >&5
2009 (eval $ac_try) 2>&5
2010 ac_status=$?
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 ac_cv_c_bigendian=yes
2014 else
2015 echo "$as_me: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2017 ac_cv_c_bigendian=no
2018 fi
2019 rm -f conftest.$ac_objext conftest.$ac_ext
2020 else
2021 echo "$as_me: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2023 fi
2024 rm -f conftest.$ac_objext conftest.$ac_ext
2025 if test $ac_cv_c_bigendian = unknown; then
2026 if test "$cross_compiling" = yes; then
2027 { { echo "$as_me:2027: error: cannot run test program while cross compiling" >&5
2028 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2029 { (exit 1); exit 1; }; }
2030 else
2031 cat >conftest.$ac_ext <<_ACEOF
2032 #line 2032 "configure"
2033 #include "confdefs.h"
2034 int
2035 main ()
2036 {
2037 /* Are we little or big endian? From Harbison&Steele. */
2038 union
2039 {
2040 long l;
2041 char c[sizeof (long)];
2042 } u;
2043 u.l = 1;
2044 exit (u.c[sizeof (long) - 1] == 1);
2045 }
2046 _ACEOF
2047 rm -f conftest$ac_exeext
2048 if { (eval echo "$as_me:2048: \"$ac_link\"") >&5
2049 (eval $ac_link) 2>&5
2050 ac_status=$?
2051 echo "$as_me:2051: \$? = $ac_status" >&5
2052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2053 { (eval echo "$as_me:2053: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:2056: \$? = $ac_status" >&5
2057 (exit $ac_status); }; }; then
2058 ac_cv_c_bigendian=no
2059 else
2060 echo "$as_me: program exited with status $ac_status" >&5
2061 echo "$as_me: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2063 ac_cv_c_bigendian=yes
2064 fi
2065 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2066 fi
2067 fi
2068 fi
2069 echo "$as_me:2069: result: $ac_cv_c_bigendian" >&5
2070 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2071 if test $ac_cv_c_bigendian = yes; then
2072
2073 cat >>confdefs.h <<\EOF
2074 #define WORDS_BIGENDIAN 1
2075 EOF
2076
2077 fi
2078
2079 echo "$as_me:2079: checking for ANSI C header files" >&5
2080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2081 if test "${ac_cv_header_stdc+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 cat >conftest.$ac_ext <<_ACEOF
2085 #line 2085 "configure"
2086 #include "confdefs.h"
2087 #include <stdlib.h>
2088 #include <stdarg.h>
2089 #include <string.h>
2090 #include <float.h>
2091
2092 _ACEOF
2093 if { (eval echo "$as_me:2093: \"$ac_cpp conftest.$ac_ext\"") >&5
2094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2095 ac_status=$?
2096 egrep -v '^ *\+' conftest.er1 >conftest.err
2097 rm -f conftest.er1
2098 cat conftest.err >&5
2099 echo "$as_me:2099: \$? = $ac_status" >&5
2100 (exit $ac_status); } >/dev/null; then
2101 if test -s conftest.err; then
2102 ac_cpp_err=$ac_c_preproc_warn_flag
2103 else
2104 ac_cpp_err=
2105 fi
2106 else
2107 ac_cpp_err=yes
2108 fi
2109 if test -z "$ac_cpp_err"; then
2110 ac_cv_header_stdc=yes
2111 else
2112 echo "$as_me: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2114 ac_cv_header_stdc=no
2115 fi
2116 rm -f conftest.err conftest.$ac_ext
2117
2118 if test $ac_cv_header_stdc = yes; then
2119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2120 cat >conftest.$ac_ext <<_ACEOF
2121 #line 2121 "configure"
2122 #include "confdefs.h"
2123 #include <string.h>
2124
2125 _ACEOF
2126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2127 egrep "memchr" >/dev/null 2>&1; then
2128 :
2129 else
2130 ac_cv_header_stdc=no
2131 fi
2132 rm -f conftest*
2133
2134 fi
2135
2136 if test $ac_cv_header_stdc = yes; then
2137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #line 2139 "configure"
2140 #include "confdefs.h"
2141 #include <stdlib.h>
2142
2143 _ACEOF
2144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2145 egrep "free" >/dev/null 2>&1; then
2146 :
2147 else
2148 ac_cv_header_stdc=no
2149 fi
2150 rm -f conftest*
2151
2152 fi
2153
2154 if test $ac_cv_header_stdc = yes; then
2155 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2156 if test "$cross_compiling" = yes; then
2157 :
2158 else
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line 2160 "configure"
2161 #include "confdefs.h"
2162 #include <ctype.h>
2163 #if ((' ' & 0x0FF) == 0x020)
2164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2166 #else
2167 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2168 || ('j' <= (c) && (c) <= 'r') \
2169 || ('s' <= (c) && (c) <= 'z'))
2170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2171 #endif
2172
2173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2174 int
2175 main ()
2176 {
2177 int i;
2178 for (i = 0; i < 256; i++)
2179 if (XOR (islower (i), ISLOWER (i))
2180 || toupper (i) != TOUPPER (i))
2181 exit(2);
2182 exit (0);
2183 }
2184 _ACEOF
2185 rm -f conftest$ac_exeext
2186 if { (eval echo "$as_me:2186: \"$ac_link\"") >&5
2187 (eval $ac_link) 2>&5
2188 ac_status=$?
2189 echo "$as_me:2189: \$? = $ac_status" >&5
2190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2191 { (eval echo "$as_me:2191: \"$ac_try\"") >&5
2192 (eval $ac_try) 2>&5
2193 ac_status=$?
2194 echo "$as_me:2194: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2196 :
2197 else
2198 echo "$as_me: program exited with status $ac_status" >&5
2199 echo "$as_me: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 ac_cv_header_stdc=no
2202 fi
2203 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2204 fi
2205 fi
2206 fi
2207 echo "$as_me:2207: result: $ac_cv_header_stdc" >&5
2208 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2209 if test $ac_cv_header_stdc = yes; then
2210
2211 cat >>confdefs.h <<\EOF
2212 #define STDC_HEADERS 1
2213 EOF
2214
2215 fi
2216
2217 # Confirm existence of zlib. (This is available as a default install
2218 # option on many OS's; this could be added as a reachover build in the
2219 # future.)
2220 echo "$as_me:2220: checking for zlib.h" >&5
2221 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
2222 if test "${ac_cv_header_zlib_h+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 cat >conftest.$ac_ext <<_ACEOF
2226 #line 2226 "configure"
2227 #include "confdefs.h"
2228 #include <zlib.h>
2229 _ACEOF
2230 if { (eval echo "$as_me:2230: \"$ac_cpp conftest.$ac_ext\"") >&5
2231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2232 ac_status=$?
2233 egrep -v '^ *\+' conftest.er1 >conftest.err
2234 rm -f conftest.er1
2235 cat conftest.err >&5
2236 echo "$as_me:2236: \$? = $ac_status" >&5
2237 (exit $ac_status); } >/dev/null; then
2238 if test -s conftest.err; then
2239 ac_cpp_err=$ac_c_preproc_warn_flag
2240 else
2241 ac_cpp_err=
2242 fi
2243 else
2244 ac_cpp_err=yes
2245 fi
2246 if test -z "$ac_cpp_err"; then
2247 ac_cv_header_zlib_h=yes
2248 else
2249 echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 ac_cv_header_zlib_h=no
2252 fi
2253 rm -f conftest.err conftest.$ac_ext
2254 fi
2255 echo "$as_me:2255: result: $ac_cv_header_zlib_h" >&5
2256 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
2257 if test $ac_cv_header_zlib_h = yes; then
2258 :
2259 else
2260 { { echo "$as_me:2260: error: zlib must be installed in a compiler-visible path" >&5
2261 echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2262 { (exit 1); exit 1; }; }
2263 fi
2264
2265 echo "$as_me:2265: checking for gzdopen in -lz" >&5
2266 echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
2267 if test "${ac_cv_lib_z_gzdopen+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270 ac_check_lib_save_LIBS=$LIBS
2271 LIBS="-lz $LIBS"
2272 cat >conftest.$ac_ext <<_ACEOF
2273 #line 2273 "configure"
2274 #include "confdefs.h"
2275
2276 /* Override any gcc2 internal prototype to avoid an error. */
2277 #ifdef __cplusplus
2278 extern "C"
2279 #endif
2280 /* We use char because int might match the return type of a gcc2
2281 builtin and then its argument prototype would still apply. */
2282 char gzdopen ();
2283 int
2284 main ()
2285 {
2286 gzdopen ();
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 rm -f conftest.$ac_objext conftest$ac_exeext
2292 if { (eval echo "$as_me:2292: \"$ac_link\"") >&5
2293 (eval $ac_link) 2>&5
2294 ac_status=$?
2295 echo "$as_me:2295: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try='test -s conftest$ac_exeext'
2298 { (eval echo "$as_me:2298: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:2301: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 ac_cv_lib_z_gzdopen=yes
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2307 ac_cv_lib_z_gzdopen=no
2308 fi
2309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2310 LIBS=$ac_check_lib_save_LIBS
2311 fi
2312 echo "$as_me:2312: result: $ac_cv_lib_z_gzdopen" >&5
2313 echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
2314 if test $ac_cv_lib_z_gzdopen = yes; then
2315 cat >>confdefs.h <<EOF
2316 #define HAVE_LIBZ 1
2317 EOF
2318
2319 LIBS="-lz $LIBS"
2320
2321 else
2322 { { echo "$as_me:2322: error: zlib must be installed in a compiler-visible path" >&5
2323 echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2324 { (exit 1); exit 1; }; }
2325 fi
2326
2327 # Make sure certain required headers are available.
2328 # These are not necessarily required by the code, but they are not
2329 # currently conditionalized.
2330
2331 for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
2332 sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
2333 sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
2334 netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
2335 termios.h unistd.h
2336 do
2337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2338 echo "$as_me:2338: checking for $ac_header" >&5
2339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 cat >conftest.$ac_ext <<_ACEOF
2344 #line 2344 "configure"
2345 #include "confdefs.h"
2346 #include <$ac_header>
2347 _ACEOF
2348 if { (eval echo "$as_me:2348: \"$ac_cpp conftest.$ac_ext\"") >&5
2349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350 ac_status=$?
2351 egrep -v '^ *\+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:2354: \$? = $ac_status" >&5
2355 (exit $ac_status); } >/dev/null; then
2356 if test -s conftest.err; then
2357 ac_cpp_err=$ac_c_preproc_warn_flag
2358 else
2359 ac_cpp_err=
2360 fi
2361 else
2362 ac_cpp_err=yes
2363 fi
2364 if test -z "$ac_cpp_err"; then
2365 eval "$as_ac_Header=yes"
2366 else
2367 echo "$as_me: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 eval "$as_ac_Header=no"
2370 fi
2371 rm -f conftest.err conftest.$ac_ext
2372 fi
2373 echo "$as_me:2373: result: `eval echo '${'$as_ac_Header'}'`" >&5
2374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2376 cat >>confdefs.h <<EOF
2377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2378 EOF
2379
2380 else
2381 { { echo "$as_me:2381: error: standard system header file not found" >&5
2382 echo "$as_me: error: standard system header file not found" >&2;}
2383 { (exit 1); exit 1; }; }
2384 fi
2385 done
2386
2387 # Find headers that may not be available.
2388
2389 ac_header_dirent=no
2390 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2391 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2392 echo "$as_me:2392: checking for $ac_hdr that defines DIR" >&5
2393 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 cat >conftest.$ac_ext <<_ACEOF
2398 #line 2398 "configure"
2399 #include "confdefs.h"
2400 #include <sys/types.h>
2401 #include <$ac_hdr>
2402
2403 int
2404 main ()
2405 {
2406 if ((DIR *) 0)
2407 return 0;
2408 ;
2409 return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:2413: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>&5
2415 ac_status=$?
2416 echo "$as_me:2416: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:2419: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:2422: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 eval "$as_ac_Header=yes"
2425 else
2426 echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 eval "$as_ac_Header=no"
2429 fi
2430 rm -f conftest.$ac_objext conftest.$ac_ext
2431 fi
2432 echo "$as_me:2432: result: `eval echo '${'$as_ac_Header'}'`" >&5
2433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2435 cat >>confdefs.h <<EOF
2436 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2437 EOF
2438
2439 ac_header_dirent=$ac_hdr; break
2440 fi
2441
2442 done
2443 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2444 if test $ac_header_dirent = dirent.h; then
2445 echo "$as_me:2445: checking for opendir in -ldir" >&5
2446 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
2447 if test "${ac_cv_lib_dir_opendir+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450 ac_check_lib_save_LIBS=$LIBS
2451 LIBS="-ldir $LIBS"
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line 2453 "configure"
2454 #include "confdefs.h"
2455
2456 /* Override any gcc2 internal prototype to avoid an error. */
2457 #ifdef __cplusplus
2458 extern "C"
2459 #endif
2460 /* We use char because int might match the return type of a gcc2
2461 builtin and then its argument prototype would still apply. */
2462 char opendir ();
2463 int
2464 main ()
2465 {
2466 opendir ();
2467 ;
2468 return 0;
2469 }
2470 _ACEOF
2471 rm -f conftest.$ac_objext conftest$ac_exeext
2472 if { (eval echo "$as_me:2472: \"$ac_link\"") >&5
2473 (eval $ac_link) 2>&5
2474 ac_status=$?
2475 echo "$as_me:2475: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -s conftest$ac_exeext'
2478 { (eval echo "$as_me:2478: \"$ac_try\"") >&5
2479 (eval $ac_try) 2>&5
2480 ac_status=$?
2481 echo "$as_me:2481: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
2483 ac_cv_lib_dir_opendir=yes
2484 else
2485 echo "$as_me: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2487 ac_cv_lib_dir_opendir=no
2488 fi
2489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2490 LIBS=$ac_check_lib_save_LIBS
2491 fi
2492 echo "$as_me:2492: result: $ac_cv_lib_dir_opendir" >&5
2493 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
2494 if test $ac_cv_lib_dir_opendir = yes; then
2495 LIBS="$LIBS -ldir"
2496 fi
2497
2498 else
2499 echo "$as_me:2499: checking for opendir in -lx" >&5
2500 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
2501 if test "${ac_cv_lib_x_opendir+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 ac_check_lib_save_LIBS=$LIBS
2505 LIBS="-lx $LIBS"
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line 2507 "configure"
2508 #include "confdefs.h"
2509
2510 /* Override any gcc2 internal prototype to avoid an error. */
2511 #ifdef __cplusplus
2512 extern "C"
2513 #endif
2514 /* We use char because int might match the return type of a gcc2
2515 builtin and then its argument prototype would still apply. */
2516 char opendir ();
2517 int
2518 main ()
2519 {
2520 opendir ();
2521 ;
2522 return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext conftest$ac_exeext
2526 if { (eval echo "$as_me:2526: \"$ac_link\"") >&5
2527 (eval $ac_link) 2>&5
2528 ac_status=$?
2529 echo "$as_me:2529: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -s conftest$ac_exeext'
2532 { (eval echo "$as_me:2532: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:2535: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 ac_cv_lib_x_opendir=yes
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 cat conftest.$ac_ext >&5
2541 ac_cv_lib_x_opendir=no
2542 fi
2543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2544 LIBS=$ac_check_lib_save_LIBS
2545 fi
2546 echo "$as_me:2546: result: $ac_cv_lib_x_opendir" >&5
2547 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
2548 if test $ac_cv_lib_x_opendir = yes; then
2549 LIBS="$LIBS -lx"
2550 fi
2551
2552 fi
2553
2554 for ac_header in sys/sysmacros.h sys/syslimits.h \
2555 getopt.h features.h malloc.h sys/poll.h stddef.h
2556 do
2557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2558 echo "$as_me:2558: checking for $ac_header" >&5
2559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563 cat >conftest.$ac_ext <<_ACEOF
2564 #line 2564 "configure"
2565 #include "confdefs.h"
2566 #include <$ac_header>
2567 _ACEOF
2568 if { (eval echo "$as_me:2568: \"$ac_cpp conftest.$ac_ext\"") >&5
2569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2570 ac_status=$?
2571 egrep -v '^ *\+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:2574: \$? = $ac_status" >&5
2575 (exit $ac_status); } >/dev/null; then
2576 if test -s conftest.err; then
2577 ac_cpp_err=$ac_c_preproc_warn_flag
2578 else
2579 ac_cpp_err=
2580 fi
2581 else
2582 ac_cpp_err=yes
2583 fi
2584 if test -z "$ac_cpp_err"; then
2585 eval "$as_ac_Header=yes"
2586 else
2587 echo "$as_me: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2589 eval "$as_ac_Header=no"
2590 fi
2591 rm -f conftest.err conftest.$ac_ext
2592 fi
2593 echo "$as_me:2593: result: `eval echo '${'$as_ac_Header'}'`" >&5
2594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2596 cat >>confdefs.h <<EOF
2597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2598 EOF
2599
2600 fi
2601 done
2602
2603 for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
2604 sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h \
2605 resolv.h arpa/nameser.h
2606 do
2607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2608 echo "$as_me:2608: checking for $ac_header" >&5
2609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #line 2614 "configure"
2615 #include "confdefs.h"
2616 #include <$ac_header>
2617 _ACEOF
2618 if { (eval echo "$as_me:2618: \"$ac_cpp conftest.$ac_ext\"") >&5
2619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2620 ac_status=$?
2621 egrep -v '^ *\+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:2624: \$? = $ac_status" >&5
2625 (exit $ac_status); } >/dev/null; then
2626 if test -s conftest.err; then
2627 ac_cpp_err=$ac_c_preproc_warn_flag
2628 else
2629 ac_cpp_err=
2630 fi
2631 else
2632 ac_cpp_err=yes
2633 fi
2634 if test -z "$ac_cpp_err"; then
2635 eval "$as_ac_Header=yes"
2636 else
2637 echo "$as_me: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2639 eval "$as_ac_Header=no"
2640 fi
2641 rm -f conftest.err conftest.$ac_ext
2642 fi
2643 echo "$as_me:2643: result: `eval echo '${'$as_ac_Header'}'`" >&5
2644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2646 cat >>confdefs.h <<EOF
2647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2648 EOF
2649
2650 else
2651 test -f include/$ac_header || touch include/$ac_header
2652 fi
2653 done
2654
2655 for ac_header in rpc/types.h netconfig.h
2656 do
2657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2658 echo "$as_me:2658: checking for $ac_header" >&5
2659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663 cat >conftest.$ac_ext <<_ACEOF
2664 #line 2664 "configure"
2665 #include "confdefs.h"
2666 #include <$ac_header>
2667 _ACEOF
2668 if { (eval echo "$as_me:2668: \"$ac_cpp conftest.$ac_ext\"") >&5
2669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2670 ac_status=$?
2671 egrep -v '^ *\+' conftest.er1 >conftest.err
2672 rm -f conftest.er1
2673 cat conftest.err >&5
2674 echo "$as_me:2674: \$? = $ac_status" >&5
2675 (exit $ac_status); } >/dev/null; then
2676 if test -s conftest.err; then
2677 ac_cpp_err=$ac_c_preproc_warn_flag
2678 else
2679 ac_cpp_err=
2680 fi
2681 else
2682 ac_cpp_err=yes
2683 fi
2684 if test -z "$ac_cpp_err"; then
2685 eval "$as_ac_Header=yes"
2686 else
2687 echo "$as_me: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2689 eval "$as_ac_Header=no"
2690 fi
2691 rm -f conftest.err conftest.$ac_ext
2692 fi
2693 echo "$as_me:2693: result: `eval echo '${'$as_ac_Header'}'`" >&5
2694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2696 cat >>confdefs.h <<EOF
2697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2698 EOF
2699
2700 else
2701 echo '#include "nbtool_config.h"' >include/$ac_header.new
2702 echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
2703 if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
2704 rm -f include/$ac_header.new
2705 else
2706 mv -f include/$ac_header.new include/$ac_header
2707 fi
2708 fi
2709 done
2710
2711 # Typedefs.
2712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2713
2714 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2715 inttypes.h stdint.h unistd.h
2716 do
2717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2718 echo "$as_me:2718: checking for $ac_header" >&5
2719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 cat >conftest.$ac_ext <<_ACEOF
2724 #line 2724 "configure"
2725 #include "confdefs.h"
2726 $ac_includes_default
2727 #include <$ac_header>
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:2730: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>&5
2732 ac_status=$?
2733 echo "$as_me:2733: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:2736: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:2739: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 eval "$as_ac_Header=yes"
2742 else
2743 echo "$as_me: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
2745 eval "$as_ac_Header=no"
2746 fi
2747 rm -f conftest.$ac_objext conftest.$ac_ext
2748 fi
2749 echo "$as_me:2749: result: `eval echo '${'$as_ac_Header'}'`" >&5
2750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2752 cat >>confdefs.h <<EOF
2753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2754 EOF
2755
2756 fi
2757 done
2758
2759 echo "$as_me:2759: checking for size_t" >&5
2760 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2761 if test "${ac_cv_type_size_t+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 cat >conftest.$ac_ext <<_ACEOF
2765 #line 2765 "configure"
2766 #include "confdefs.h"
2767 $ac_includes_default
2768 int
2769 main ()
2770 {
2771 if ((size_t *) 0)
2772 return 0;
2773 if (sizeof (size_t))
2774 return 0;
2775 ;
2776 return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:2780: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>&5
2782 ac_status=$?
2783 echo "$as_me:2783: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:2786: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:2789: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 ac_cv_type_size_t=yes
2792 else
2793 echo "$as_me: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2795 ac_cv_type_size_t=no
2796 fi
2797 rm -f conftest.$ac_objext conftest.$ac_ext
2798 fi
2799 echo "$as_me:2799: result: $ac_cv_type_size_t" >&5
2800 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2801 if test $ac_cv_type_size_t = yes; then
2802 :
2803 else
2804
2805 cat >>confdefs.h <<EOF
2806 #define size_t unsigned
2807 EOF
2808
2809 fi
2810
2811 echo "$as_me:2811: checking for id_t" >&5
2812 echo $ECHO_N "checking for id_t... $ECHO_C" >&6
2813 if test "${ac_cv_type_id_t+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 cat >conftest.$ac_ext <<_ACEOF
2817 #line 2817 "configure"
2818 #include "confdefs.h"
2819 $ac_includes_default
2820 int
2821 main ()
2822 {
2823 if ((id_t *) 0)
2824 return 0;
2825 if (sizeof (id_t))
2826 return 0;
2827 ;
2828 return 0;
2829 }
2830 _ACEOF
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:2832: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>&5
2834 ac_status=$?
2835 echo "$as_me:2835: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:2838: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:2841: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 ac_cv_type_id_t=yes
2844 else
2845 echo "$as_me: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2847 ac_cv_type_id_t=no
2848 fi
2849 rm -f conftest.$ac_objext conftest.$ac_ext
2850 fi
2851 echo "$as_me:2851: result: $ac_cv_type_id_t" >&5
2852 echo "${ECHO_T}$ac_cv_type_id_t" >&6
2853 if test $ac_cv_type_id_t = yes; then
2854
2855 cat >>confdefs.h <<EOF
2856 #define HAVE_ID_T 1
2857 EOF
2858
2859 fi
2860 echo "$as_me:2860: checking for long long" >&5
2861 echo $ECHO_N "checking for long long... $ECHO_C" >&6
2862 if test "${ac_cv_type_long_long+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865 cat >conftest.$ac_ext <<_ACEOF
2866 #line 2866 "configure"
2867 #include "confdefs.h"
2868 $ac_includes_default
2869 int
2870 main ()
2871 {
2872 if ((long long *) 0)
2873 return 0;
2874 if (sizeof (long long))
2875 return 0;
2876 ;
2877 return 0;
2878 }
2879 _ACEOF
2880 rm -f conftest.$ac_objext
2881 if { (eval echo "$as_me:2881: \"$ac_compile\"") >&5
2882 (eval $ac_compile) 2>&5
2883 ac_status=$?
2884 echo "$as_me:2884: \$? = $ac_status" >&5
2885 (exit $ac_status); } &&
2886 { ac_try='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:2887: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:2890: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 ac_cv_type_long_long=yes
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 ac_cv_type_long_long=no
2897 fi
2898 rm -f conftest.$ac_objext conftest.$ac_ext
2899 fi
2900 echo "$as_me:2900: result: $ac_cv_type_long_long" >&5
2901 echo "${ECHO_T}$ac_cv_type_long_long" >&6
2902 if test $ac_cv_type_long_long = yes; then
2903
2904 cat >>confdefs.h <<EOF
2905 #define HAVE_LONG_LONG 1
2906 EOF
2907
2908 fi
2909 echo "$as_me:2909: checking for u_long" >&5
2910 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
2911 if test "${ac_cv_type_u_long+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914 cat >conftest.$ac_ext <<_ACEOF
2915 #line 2915 "configure"
2916 #include "confdefs.h"
2917 $ac_includes_default
2918 int
2919 main ()
2920 {
2921 if ((u_long *) 0)
2922 return 0;
2923 if (sizeof (u_long))
2924 return 0;
2925 ;
2926 return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:2930: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>&5
2932 ac_status=$?
2933 echo "$as_me:2933: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -s conftest.$ac_objext'
2936 { (eval echo "$as_me:2936: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5
2938 ac_status=$?
2939 echo "$as_me:2939: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2941 ac_cv_type_u_long=yes
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 cat conftest.$ac_ext >&5
2945 ac_cv_type_u_long=no
2946 fi
2947 rm -f conftest.$ac_objext conftest.$ac_ext
2948 fi
2949 echo "$as_me:2949: result: $ac_cv_type_u_long" >&5
2950 echo "${ECHO_T}$ac_cv_type_u_long" >&6
2951 if test $ac_cv_type_u_long = yes; then
2952
2953 cat >>confdefs.h <<EOF
2954 #define HAVE_U_LONG 1
2955 EOF
2956
2957 fi
2958 echo "$as_me:2958: checking for u_char" >&5
2959 echo $ECHO_N "checking for u_char... $ECHO_C" >&6
2960 if test "${ac_cv_type_u_char+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line 2964 "configure"
2965 #include "confdefs.h"
2966 $ac_includes_default
2967 int
2968 main ()
2969 {
2970 if ((u_char *) 0)
2971 return 0;
2972 if (sizeof (u_char))
2973 return 0;
2974 ;
2975 return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:2979: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>&5
2981 ac_status=$?
2982 echo "$as_me:2982: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -s conftest.$ac_objext'
2985 { (eval echo "$as_me:2985: \"$ac_try\"") >&5
2986 (eval $ac_try) 2>&5
2987 ac_status=$?
2988 echo "$as_me:2988: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
2990 ac_cv_type_u_char=yes
2991 else
2992 echo "$as_me: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2994 ac_cv_type_u_char=no
2995 fi
2996 rm -f conftest.$ac_objext conftest.$ac_ext
2997 fi
2998 echo "$as_me:2998: result: $ac_cv_type_u_char" >&5
2999 echo "${ECHO_T}$ac_cv_type_u_char" >&6
3000 if test $ac_cv_type_u_char = yes; then
3001
3002 cat >>confdefs.h <<EOF
3003 #define HAVE_U_CHAR 1
3004 EOF
3005
3006 fi
3007 echo "$as_me:3007: checking for u_short" >&5
3008 echo $ECHO_N "checking for u_short... $ECHO_C" >&6
3009 if test "${ac_cv_type_u_short+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012 cat >conftest.$ac_ext <<_ACEOF
3013 #line 3013 "configure"
3014 #include "confdefs.h"
3015 $ac_includes_default
3016 int
3017 main ()
3018 {
3019 if ((u_short *) 0)
3020 return 0;
3021 if (sizeof (u_short))
3022 return 0;
3023 ;
3024 return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:3028: \"$ac_compile\"") >&5
3029 (eval $ac_compile) 2>&5
3030 ac_status=$?
3031 echo "$as_me:3031: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try='test -s conftest.$ac_objext'
3034 { (eval echo "$as_me:3034: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:3037: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_type_u_short=yes
3040 else
3041 echo "$as_me: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3043 ac_cv_type_u_short=no
3044 fi
3045 rm -f conftest.$ac_objext conftest.$ac_ext
3046 fi
3047 echo "$as_me:3047: result: $ac_cv_type_u_short" >&5
3048 echo "${ECHO_T}$ac_cv_type_u_short" >&6
3049 if test $ac_cv_type_u_short = yes; then
3050
3051 cat >>confdefs.h <<EOF
3052 #define HAVE_U_SHORT 1
3053 EOF
3054
3055 fi
3056 echo "$as_me:3056: checking for u_int" >&5
3057 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
3058 if test "${ac_cv_type_u_int+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061 cat >conftest.$ac_ext <<_ACEOF
3062 #line 3062 "configure"
3063 #include "confdefs.h"
3064 $ac_includes_default
3065 int
3066 main ()
3067 {
3068 if ((u_int *) 0)
3069 return 0;
3070 if (sizeof (u_int))
3071 return 0;
3072 ;
3073 return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (eval echo "$as_me:3077: \"$ac_compile\"") >&5
3078 (eval $ac_compile) 2>&5
3079 ac_status=$?
3080 echo "$as_me:3080: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:3083: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:3086: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_type_u_int=yes
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3092 ac_cv_type_u_int=no
3093 fi
3094 rm -f conftest.$ac_objext conftest.$ac_ext
3095 fi
3096 echo "$as_me:3096: result: $ac_cv_type_u_int" >&5
3097 echo "${ECHO_T}$ac_cv_type_u_int" >&6
3098 if test $ac_cv_type_u_int = yes; then
3099
3100 cat >>confdefs.h <<EOF
3101 #define HAVE_U_INT 1
3102 EOF
3103
3104 fi
3105 echo "$as_me:3105: checking for u_quad_t" >&5
3106 echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
3107 if test "${ac_cv_type_u_quad_t+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 cat >conftest.$ac_ext <<_ACEOF
3111 #line 3111 "configure"
3112 #include "confdefs.h"
3113 $ac_includes_default
3114 int
3115 main ()
3116 {
3117 if ((u_quad_t *) 0)
3118 return 0;
3119 if (sizeof (u_quad_t))
3120 return 0;
3121 ;
3122 return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (eval echo "$as_me:3126: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>&5
3128 ac_status=$?
3129 echo "$as_me:3129: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -s conftest.$ac_objext'
3132 { (eval echo "$as_me:3132: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:3135: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 ac_cv_type_u_quad_t=yes
3138 else
3139 echo "$as_me: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 ac_cv_type_u_quad_t=no
3142 fi
3143 rm -f conftest.$ac_objext conftest.$ac_ext
3144 fi
3145 echo "$as_me:3145: result: $ac_cv_type_u_quad_t" >&5
3146 echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
3147 if test $ac_cv_type_u_quad_t = yes; then
3148
3149 cat >>confdefs.h <<EOF
3150 #define HAVE_U_QUAD_T 1
3151 EOF
3152
3153 fi
3154
3155 echo "$as_me:3155: checking for socklen_t" >&5
3156 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3157 if test "${ac_cv_type_socklen_t+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 cat >conftest.$ac_ext <<_ACEOF
3161 #line 3161 "configure"
3162 #include "confdefs.h"
3163 #include <sys/types.h>
3164 #include <sys/socket.h>
3165
3166 int
3167 main ()
3168 {
3169 if ((socklen_t *) 0)
3170 return 0;
3171 if (sizeof (socklen_t))
3172 return 0;
3173 ;
3174 return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (eval echo "$as_me:3178: \"$ac_compile\"") >&5
3179 (eval $ac_compile) 2>&5
3180 ac_status=$?
3181 echo "$as_me:3181: \$? = $ac_status" >&5
3182 (exit $ac_status); } &&
3183 { ac_try='test -s conftest.$ac_objext'
3184 { (eval echo "$as_me:3184: \"$ac_try\"") >&5
3185 (eval $ac_try) 2>&5
3186 ac_status=$?
3187 echo "$as_me:3187: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_type_socklen_t=yes
3190 else
3191 echo "$as_me: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3193 ac_cv_type_socklen_t=no
3194 fi
3195 rm -f conftest.$ac_objext conftest.$ac_ext
3196 fi
3197 echo "$as_me:3197: result: $ac_cv_type_socklen_t" >&5
3198 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3199 if test $ac_cv_type_socklen_t = yes; then
3200
3201 cat >>confdefs.h <<\EOF
3202 #define HAVE_SOCKLEN_T 1
3203 EOF
3204
3205 fi
3206
3207 echo "$as_me:3207: checking for uint8_t" >&5
3208 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3209 if test "${ac_cv_type_uint8_t+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line 3213 "configure"
3214 #include "confdefs.h"
3215 $ac_includes_default
3216 int
3217 main ()
3218 {
3219 if ((uint8_t *) 0)
3220 return 0;
3221 if (sizeof (uint8_t))
3222 return 0;
3223 ;
3224 return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:3228: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>&5
3230 ac_status=$?
3231 echo "$as_me:3231: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -s conftest.$ac_objext'
3234 { (eval echo "$as_me:3234: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:3237: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_type_uint8_t=yes
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 ac_cv_type_uint8_t=no
3244 fi
3245 rm -f conftest.$ac_objext conftest.$ac_ext
3246 fi
3247 echo "$as_me:3247: result: $ac_cv_type_uint8_t" >&5
3248 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
3249 if test $ac_cv_type_uint8_t = yes; then
3250 :
3251 else
3252
3253 echo "$as_me:3253: checking for u_int8_t" >&5
3254 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3255 if test "${ac_cv_type_u_int8_t+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 cat >conftest.$ac_ext <<_ACEOF
3259 #line 3259 "configure"
3260 #include "confdefs.h"
3261 $ac_includes_default
3262 int
3263 main ()
3264 {
3265 if ((u_int8_t *) 0)
3266 return 0;
3267 if (sizeof (u_int8_t))
3268 return 0;
3269 ;
3270 return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (eval echo "$as_me:3274: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>&5
3276 ac_status=$?
3277 echo "$as_me:3277: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -s conftest.$ac_objext'
3280 { (eval echo "$as_me:3280: \"$ac_try\"") >&5
3281 (eval $ac_try) 2>&5
3282 ac_status=$?
3283 echo "$as_me:3283: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3285 ac_cv_type_u_int8_t=yes
3286 else
3287 echo "$as_me: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3289 ac_cv_type_u_int8_t=no
3290 fi
3291 rm -f conftest.$ac_objext conftest.$ac_ext
3292 fi
3293 echo "$as_me:3293: result: $ac_cv_type_u_int8_t" >&5
3294 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3295 if test $ac_cv_type_u_int8_t = yes; then
3296
3297 cat >>confdefs.h <<\EOF
3298 #define uint8_t u_int8_t
3299 EOF
3300
3301 else
3302 { { echo "$as_me:3302: error: cannot find a suitable type for uint8_t" >&5
3303 echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
3304 { (exit 1); exit 1; }; }
3305 fi
3306
3307 fi
3308
3309 echo "$as_me:3309: checking for u_int8_t" >&5
3310 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3311 if test "${ac_cv_type_u_int8_t+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314 cat >conftest.$ac_ext <<_ACEOF
3315 #line 3315 "configure"
3316 #include "confdefs.h"
3317 $ac_includes_default
3318 int
3319 main ()
3320 {
3321 if ((u_int8_t *) 0)
3322 return 0;
3323 if (sizeof (u_int8_t))
3324 return 0;
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.$ac_objext
3330 if { (eval echo "$as_me:3330: \"$ac_compile\"") >&5
3331 (eval $ac_compile) 2>&5
3332 ac_status=$?
3333 echo "$as_me:3333: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (eval echo "$as_me:3336: \"$ac_try\"") >&5
3337 (eval $ac_try) 2>&5
3338 ac_status=$?
3339 echo "$as_me:3339: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3341 ac_cv_type_u_int8_t=yes
3342 else
3343 echo "$as_me: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 ac_cv_type_u_int8_t=no
3346 fi
3347 rm -f conftest.$ac_objext conftest.$ac_ext
3348 fi
3349 echo "$as_me:3349: result: $ac_cv_type_u_int8_t" >&5
3350 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3351 if test $ac_cv_type_u_int8_t = yes; then
3352 :
3353 else
3354
3355 echo "$as_me:3355: checking for uint8_t" >&5
3356 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3357 if test "${ac_cv_type_uint8_t+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 cat >conftest.$ac_ext <<_ACEOF
3361 #line 3361 "configure"
3362 #include "confdefs.h"
3363 $ac_includes_default
3364 int
3365 main ()
3366 {
3367 if ((uint8_t *) 0)
3368 return 0;
3369 if (sizeof (uint8_t))
3370 return 0;
3371 ;
3372 return 0;
3373 }
3374 _ACEOF
3375 rm -f conftest.$ac_objext
3376 if { (eval echo "$as_me:3376: \"$ac_compile\"") >&5
3377 (eval $ac_compile) 2>&5
3378 ac_status=$?
3379 echo "$as_me:3379: \$? = $ac_status" >&5
3380 (exit $ac_status); } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (eval echo "$as_me:3382: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
3384 ac_status=$?
3385 echo "$as_me:3385: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3387 ac_cv_type_uint8_t=yes
3388 else
3389 echo "$as_me: failed program was:" >&5
3390 cat conftest.$ac_ext >&5
3391 ac_cv_type_uint8_t=no
3392 fi
3393 rm -f conftest.$ac_objext conftest.$ac_ext
3394 fi
3395 echo "$as_me:3395: result: $ac_cv_type_uint8_t" >&5
3396 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
3397 if test $ac_cv_type_uint8_t = yes; then
3398
3399 cat >>confdefs.h <<\EOF
3400 #define u_int8_t uint8_t
3401 EOF
3402
3403 else
3404 { { echo "$as_me:3404: error: cannot find a suitable type for u_int8_t" >&5
3405 echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
3406 { (exit 1); exit 1; }; }
3407 fi
3408
3409 fi
3410
3411 echo "$as_me:3411: checking for uint16_t" >&5
3412 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3413 if test "${ac_cv_type_uint16_t+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 cat >conftest.$ac_ext <<_ACEOF
3417 #line 3417 "configure"
3418 #include "confdefs.h"
3419 $ac_includes_default
3420 int
3421 main ()
3422 {
3423 if ((uint16_t *) 0)
3424 return 0;
3425 if (sizeof (uint16_t))
3426 return 0;
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 rm -f conftest.$ac_objext
3432 if { (eval echo "$as_me:3432: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>&5
3434 ac_status=$?
3435 echo "$as_me:3435: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:3438: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:3441: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_cv_type_uint16_t=yes
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3447 ac_cv_type_uint16_t=no
3448 fi
3449 rm -f conftest.$ac_objext conftest.$ac_ext
3450 fi
3451 echo "$as_me:3451: result: $ac_cv_type_uint16_t" >&5
3452 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3453 if test $ac_cv_type_uint16_t = yes; then
3454 :
3455 else
3456
3457 echo "$as_me:3457: checking for u_int16_t" >&5
3458 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3459 if test "${ac_cv_type_u_int16_t+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462 cat >conftest.$ac_ext <<_ACEOF
3463 #line 3463 "configure"
3464 #include "confdefs.h"
3465 $ac_includes_default
3466 int
3467 main ()
3468 {
3469 if ((u_int16_t *) 0)
3470 return 0;
3471 if (sizeof (u_int16_t))
3472 return 0;
3473 ;
3474 return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:3478: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>&5
3480 ac_status=$?
3481 echo "$as_me:3481: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:3484: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:3487: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_cv_type_u_int16_t=yes
3490 else
3491 echo "$as_me: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3493 ac_cv_type_u_int16_t=no
3494 fi
3495 rm -f conftest.$ac_objext conftest.$ac_ext
3496 fi
3497 echo "$as_me:3497: result: $ac_cv_type_u_int16_t" >&5
3498 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3499 if test $ac_cv_type_u_int16_t = yes; then
3500
3501 cat >>confdefs.h <<\EOF
3502 #define uint16_t u_int16_t
3503 EOF
3504
3505 else
3506 { { echo "$as_me:3506: error: cannot find a suitable type for uint16_t" >&5
3507 echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
3508 { (exit 1); exit 1; }; }
3509 fi
3510
3511 fi
3512
3513 echo "$as_me:3513: checking for u_int16_t" >&5
3514 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3515 if test "${ac_cv_type_u_int16_t+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518 cat >conftest.$ac_ext <<_ACEOF
3519 #line 3519 "configure"
3520 #include "confdefs.h"
3521 $ac_includes_default
3522 int
3523 main ()
3524 {
3525 if ((u_int16_t *) 0)
3526 return 0;
3527 if (sizeof (u_int16_t))
3528 return 0;
3529 ;
3530 return 0;
3531 }
3532 _ACEOF
3533 rm -f conftest.$ac_objext
3534 if { (eval echo "$as_me:3534: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>&5
3536 ac_status=$?
3537 echo "$as_me:3537: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:3540: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:3543: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_cv_type_u_int16_t=yes
3546 else
3547 echo "$as_me: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3549 ac_cv_type_u_int16_t=no
3550 fi
3551 rm -f conftest.$ac_objext conftest.$ac_ext
3552 fi
3553 echo "$as_me:3553: result: $ac_cv_type_u_int16_t" >&5
3554 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3555 if test $ac_cv_type_u_int16_t = yes; then
3556 :
3557 else
3558
3559 echo "$as_me:3559: checking for uint16_t" >&5
3560 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3561 if test "${ac_cv_type_uint16_t+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 cat >conftest.$ac_ext <<_ACEOF
3565 #line 3565 "configure"
3566 #include "confdefs.h"
3567 $ac_includes_default
3568 int
3569 main ()
3570 {
3571 if ((uint16_t *) 0)
3572 return 0;
3573 if (sizeof (uint16_t))
3574 return 0;
3575 ;
3576 return 0;
3577 }
3578 _ACEOF
3579 rm -f conftest.$ac_objext
3580 if { (eval echo "$as_me:3580: \"$ac_compile\"") >&5
3581 (eval $ac_compile) 2>&5
3582 ac_status=$?
3583 echo "$as_me:3583: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:3586: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:3589: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 ac_cv_type_uint16_t=yes
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 ac_cv_type_uint16_t=no
3596 fi
3597 rm -f conftest.$ac_objext conftest.$ac_ext
3598 fi
3599 echo "$as_me:3599: result: $ac_cv_type_uint16_t" >&5
3600 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3601 if test $ac_cv_type_uint16_t = yes; then
3602
3603 cat >>confdefs.h <<\EOF
3604 #define u_int16_t uint16_t
3605 EOF
3606
3607 else
3608 { { echo "$as_me:3608: error: cannot find a suitable type for u_int16_t" >&5
3609 echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
3610 { (exit 1); exit 1; }; }
3611 fi
3612
3613 fi
3614
3615 echo "$as_me:3615: checking for uint32_t" >&5
3616 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3617 if test "${ac_cv_type_uint32_t+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 cat >conftest.$ac_ext <<_ACEOF
3621 #line 3621 "configure"
3622 #include "confdefs.h"
3623 $ac_includes_default
3624 int
3625 main ()
3626 {
3627 if ((uint32_t *) 0)
3628 return 0;
3629 if (sizeof (uint32_t))
3630 return 0;
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:3636: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>&5
3638 ac_status=$?
3639 echo "$as_me:3639: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:3642: \"$ac_try\"") >&5
3643 (eval $ac_try) 2>&5
3644 ac_status=$?
3645 echo "$as_me:3645: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3647 ac_cv_type_uint32_t=yes
3648 else
3649 echo "$as_me: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3651 ac_cv_type_uint32_t=no
3652 fi
3653 rm -f conftest.$ac_objext conftest.$ac_ext
3654 fi
3655 echo "$as_me:3655: result: $ac_cv_type_uint32_t" >&5
3656 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3657 if test $ac_cv_type_uint32_t = yes; then
3658 :
3659 else
3660
3661 echo "$as_me:3661: checking for u_int32_t" >&5
3662 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3663 if test "${ac_cv_type_u_int32_t+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 cat >conftest.$ac_ext <<_ACEOF
3667 #line 3667 "configure"
3668 #include "confdefs.h"
3669 $ac_includes_default
3670 int
3671 main ()
3672 {
3673 if ((u_int32_t *) 0)
3674 return 0;
3675 if (sizeof (u_int32_t))
3676 return 0;
3677 ;
3678 return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.$ac_objext
3682 if { (eval echo "$as_me:3682: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>&5
3684 ac_status=$?
3685 echo "$as_me:3685: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -s conftest.$ac_objext'
3688 { (eval echo "$as_me:3688: \"$ac_try\"") >&5
3689 (eval $ac_try) 2>&5
3690 ac_status=$?
3691 echo "$as_me:3691: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 ac_cv_type_u_int32_t=yes
3694 else
3695 echo "$as_me: failed program was:" >&5
3696 cat conftest.$ac_ext >&5
3697 ac_cv_type_u_int32_t=no
3698 fi
3699 rm -f conftest.$ac_objext conftest.$ac_ext
3700 fi
3701 echo "$as_me:3701: result: $ac_cv_type_u_int32_t" >&5
3702 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3703 if test $ac_cv_type_u_int32_t = yes; then
3704
3705 cat >>confdefs.h <<\EOF
3706 #define uint32_t u_int32_t
3707 EOF
3708
3709 else
3710 { { echo "$as_me:3710: error: cannot find a suitable type for uint32_t" >&5
3711 echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
3712 { (exit 1); exit 1; }; }
3713 fi
3714
3715 fi
3716
3717 echo "$as_me:3717: checking for u_int32_t" >&5
3718 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3719 if test "${ac_cv_type_u_int32_t+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 cat >conftest.$ac_ext <<_ACEOF
3723 #line 3723 "configure"
3724 #include "confdefs.h"
3725 $ac_includes_default
3726 int
3727 main ()
3728 {
3729 if ((u_int32_t *) 0)
3730 return 0;
3731 if (sizeof (u_int32_t))
3732 return 0;
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 rm -f conftest.$ac_objext
3738 if { (eval echo "$as_me:3738: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>&5
3740 ac_status=$?
3741 echo "$as_me:3741: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try='test -s conftest.$ac_objext'
3744 { (eval echo "$as_me:3744: \"$ac_try\"") >&5
3745 (eval $ac_try) 2>&5
3746 ac_status=$?
3747 echo "$as_me:3747: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_cv_type_u_int32_t=yes
3750 else
3751 echo "$as_me: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 ac_cv_type_u_int32_t=no
3754 fi
3755 rm -f conftest.$ac_objext conftest.$ac_ext
3756 fi
3757 echo "$as_me:3757: result: $ac_cv_type_u_int32_t" >&5
3758 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3759 if test $ac_cv_type_u_int32_t = yes; then
3760 :
3761 else
3762
3763 echo "$as_me:3763: checking for uint32_t" >&5
3764 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3765 if test "${ac_cv_type_uint32_t+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 cat >conftest.$ac_ext <<_ACEOF
3769 #line 3769 "configure"
3770 #include "confdefs.h"
3771 $ac_includes_default
3772 int
3773 main ()
3774 {
3775 if ((uint32_t *) 0)
3776 return 0;
3777 if (sizeof (uint32_t))
3778 return 0;
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 rm -f conftest.$ac_objext
3784 if { (eval echo "$as_me:3784: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>&5
3786 ac_status=$?
3787 echo "$as_me:3787: \$? = $ac_status" >&5
3788 (exit $ac_status); } &&
3789 { ac_try='test -s conftest.$ac_objext'
3790 { (eval echo "$as_me:3790: \"$ac_try\"") >&5
3791 (eval $ac_try) 2>&5
3792 ac_status=$?
3793 echo "$as_me:3793: \$? = $ac_status" >&5
3794 (exit $ac_status); }; }; then
3795 ac_cv_type_uint32_t=yes
3796 else
3797 echo "$as_me: failed program was:" >&5
3798 cat conftest.$ac_ext >&5
3799 ac_cv_type_uint32_t=no
3800 fi
3801 rm -f conftest.$ac_objext conftest.$ac_ext
3802 fi
3803 echo "$as_me:3803: result: $ac_cv_type_uint32_t" >&5
3804 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3805 if test $ac_cv_type_uint32_t = yes; then
3806
3807 cat >>confdefs.h <<\EOF
3808 #define u_int32_t uint32_t
3809 EOF
3810
3811 else
3812 { { echo "$as_me:3812: error: cannot find a suitable type for u_int32_t" >&5
3813 echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
3814 { (exit 1); exit 1; }; }
3815 fi
3816
3817 fi
3818
3819 echo "$as_me:3819: checking for uint64_t" >&5
3820 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3821 if test "${ac_cv_type_uint64_t+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 cat >conftest.$ac_ext <<_ACEOF
3825 #line 3825 "configure"
3826 #include "confdefs.h"
3827 $ac_includes_default
3828 int
3829 main ()
3830 {
3831 if ((uint64_t *) 0)
3832 return 0;
3833 if (sizeof (uint64_t))
3834 return 0;
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 rm -f conftest.$ac_objext
3840 if { (eval echo "$as_me:3840: \"$ac_compile\"") >&5
3841 (eval $ac_compile) 2>&5
3842 ac_status=$?
3843 echo "$as_me:3843: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:3846: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:3849: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_cv_type_uint64_t=yes
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3855 ac_cv_type_uint64_t=no
3856 fi
3857 rm -f conftest.$ac_objext conftest.$ac_ext
3858 fi
3859 echo "$as_me:3859: result: $ac_cv_type_uint64_t" >&5
3860 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3861 if test $ac_cv_type_uint64_t = yes; then
3862 :
3863 else
3864
3865 echo "$as_me:3865: checking for u_int64_t" >&5
3866 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3867 if test "${ac_cv_type_u_int64_t+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 cat >conftest.$ac_ext <<_ACEOF
3871 #line 3871 "configure"
3872 #include "confdefs.h"
3873 $ac_includes_default
3874 int
3875 main ()
3876 {
3877 if ((u_int64_t *) 0)
3878 return 0;
3879 if (sizeof (u_int64_t))
3880 return 0;
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 rm -f conftest.$ac_objext
3886 if { (eval echo "$as_me:3886: \"$ac_compile\"") >&5
3887 (eval $ac_compile) 2>&5
3888 ac_status=$?
3889 echo "$as_me:3889: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:3892: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:3895: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_cv_type_u_int64_t=yes
3898 else
3899 echo "$as_me: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3901 ac_cv_type_u_int64_t=no
3902 fi
3903 rm -f conftest.$ac_objext conftest.$ac_ext
3904 fi
3905 echo "$as_me:3905: result: $ac_cv_type_u_int64_t" >&5
3906 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3907 if test $ac_cv_type_u_int64_t = yes; then
3908
3909 cat >>confdefs.h <<\EOF
3910 #define uint64_t u_int64_t
3911 EOF
3912
3913 else
3914 { { echo "$as_me:3914: error: cannot find a suitable type for uint64_t" >&5
3915 echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
3916 { (exit 1); exit 1; }; }
3917 fi
3918
3919 fi
3920
3921 echo "$as_me:3921: checking for u_int64_t" >&5
3922 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3923 if test "${ac_cv_type_u_int64_t+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 cat >conftest.$ac_ext <<_ACEOF
3927 #line 3927 "configure"
3928 #include "confdefs.h"
3929 $ac_includes_default
3930 int
3931 main ()
3932 {
3933 if ((u_int64_t *) 0)
3934 return 0;
3935 if (sizeof (u_int64_t))
3936 return 0;
3937 ;
3938 return 0;
3939 }
3940 _ACEOF
3941 rm -f conftest.$ac_objext
3942 if { (eval echo "$as_me:3942: \"$ac_compile\"") >&5
3943 (eval $ac_compile) 2>&5
3944 ac_status=$?
3945 echo "$as_me:3945: \$? = $ac_status" >&5
3946 (exit $ac_status); } &&
3947 { ac_try='test -s conftest.$ac_objext'
3948 { (eval echo "$as_me:3948: \"$ac_try\"") >&5
3949 (eval $ac_try) 2>&5
3950 ac_status=$?
3951 echo "$as_me:3951: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3953 ac_cv_type_u_int64_t=yes
3954 else
3955 echo "$as_me: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3957 ac_cv_type_u_int64_t=no
3958 fi
3959 rm -f conftest.$ac_objext conftest.$ac_ext
3960 fi
3961 echo "$as_me:3961: result: $ac_cv_type_u_int64_t" >&5
3962 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3963 if test $ac_cv_type_u_int64_t = yes; then
3964 :
3965 else
3966
3967 echo "$as_me:3967: checking for uint64_t" >&5
3968 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3969 if test "${ac_cv_type_uint64_t+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972 cat >conftest.$ac_ext <<_ACEOF
3973 #line 3973 "configure"
3974 #include "confdefs.h"
3975 $ac_includes_default
3976 int
3977 main ()
3978 {
3979 if ((uint64_t *) 0)
3980 return 0;
3981 if (sizeof (uint64_t))
3982 return 0;
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 rm -f conftest.$ac_objext
3988 if { (eval echo "$as_me:3988: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>&5
3990 ac_status=$?
3991 echo "$as_me:3991: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:3994: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:3997: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_cv_type_uint64_t=yes
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4003 ac_cv_type_uint64_t=no
4004 fi
4005 rm -f conftest.$ac_objext conftest.$ac_ext
4006 fi
4007 echo "$as_me:4007: result: $ac_cv_type_uint64_t" >&5
4008 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4009 if test $ac_cv_type_uint64_t = yes; then
4010
4011 cat >>confdefs.h <<\EOF
4012 #define u_int64_t uint64_t
4013 EOF
4014
4015 else
4016 { { echo "$as_me:4016: error: cannot find a suitable type for u_int64_t" >&5
4017 echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
4018 { (exit 1); exit 1; }; }
4019 fi
4020
4021 fi
4022
4023 # Struct members.
4024 echo "$as_me:4024: checking for DIR.dd_fd" >&5
4025 echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
4026 if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029 cat >conftest.$ac_ext <<_ACEOF
4030 #line 4030 "configure"
4031 #include "confdefs.h"
4032 #include <sys/types.h>
4033 #include <dirent.h>
4034
4035 int
4036 main ()
4037 {
4038 static DIR ac_aggr;
4039 if (ac_aggr.dd_fd)
4040 return 0;
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 rm -f conftest.$ac_objext
4046 if { (eval echo "$as_me:4046: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>&5
4048 ac_status=$?
4049 echo "$as_me:4049: \$? = $ac_status" >&5
4050 (exit $ac_status); } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (eval echo "$as_me:4052: \"$ac_try\"") >&5
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:4055: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_cv_member_DIR_dd_fd=yes
4058 else
4059 echo "$as_me: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 ac_cv_member_DIR_dd_fd=no
4062 fi
4063 rm -f conftest.$ac_objext conftest.$ac_ext
4064 fi
4065 echo "$as_me:4065: result: $ac_cv_member_DIR_dd_fd" >&5
4066 echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
4067 if test $ac_cv_member_DIR_dd_fd = yes; then
4068
4069 cat >>confdefs.h <<EOF
4070 #define HAVE_DIR_DD_FD 1
4071 EOF
4072
4073 fi
4074 echo "$as_me:4074: checking for DIR.__dd_fd" >&5
4075 echo $ECHO_N "checking for DIR.__dd_fd... $ECHO_C" >&6
4076 if test "${ac_cv_member_DIR___dd_fd+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079 cat >conftest.$ac_ext <<_ACEOF
4080 #line 4080 "configure"
4081 #include "confdefs.h"
4082 #include <sys/types.h>
4083 #include <dirent.h>
4084
4085 int
4086 main ()
4087 {
4088 static DIR ac_aggr;
4089 if (ac_aggr.__dd_fd)
4090 return 0;
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:4096: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>&5
4098 ac_status=$?
4099 echo "$as_me:4099: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:4102: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:4105: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 ac_cv_member_DIR___dd_fd=yes
4108 else
4109 echo "$as_me: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4111 ac_cv_member_DIR___dd_fd=no
4112 fi
4113 rm -f conftest.$ac_objext conftest.$ac_ext
4114 fi
4115 echo "$as_me:4115: result: $ac_cv_member_DIR___dd_fd" >&5
4116 echo "${ECHO_T}$ac_cv_member_DIR___dd_fd" >&6
4117 if test $ac_cv_member_DIR___dd_fd = yes; then
4118
4119 cat >>confdefs.h <<EOF
4120 #define HAVE_DIR___DD_FD 1
4121 EOF
4122
4123 fi
4124 echo "$as_me:4124: checking for struct dirent.d_namlen" >&5
4125 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
4126 if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 cat >conftest.$ac_ext <<_ACEOF
4130 #line 4130 "configure"
4131 #include "confdefs.h"
4132 #include <sys/types.h>
4133 #include <dirent.h>
4134
4135 int
4136 main ()
4137 {
4138 static struct dirent ac_aggr;
4139 if (ac_aggr.d_namlen)
4140 return 0;
4141 ;
4142 return 0;
4143 }
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:4146: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>&5
4148 ac_status=$?
4149 echo "$as_me:4149: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:4152: \"$ac_try\"") >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 echo "$as_me:4155: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 ac_cv_member_struct_dirent_d_namlen=yes
4158 else
4159 echo "$as_me: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4161 ac_cv_member_struct_dirent_d_namlen=no
4162 fi
4163 rm -f conftest.$ac_objext conftest.$ac_ext
4164 fi
4165 echo "$as_me:4165: result: $ac_cv_member_struct_dirent_d_namlen" >&5
4166 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
4167 if test $ac_cv_member_struct_dirent_d_namlen = yes; then
4168
4169 cat >>confdefs.h <<EOF
4170 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
4171 EOF
4172
4173 fi
4174
4175 echo "$as_me:4175: checking for struct stat.st_flags" >&5
4176 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
4177 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 cat >conftest.$ac_ext <<_ACEOF
4181 #line 4181 "configure"
4182 #include "confdefs.h"
4183 #include <sys/stat.h>
4184
4185 int
4186 main ()
4187 {
4188 static struct stat ac_aggr;
4189 if (ac_aggr.st_flags)
4190 return 0;
4191 ;
4192 return 0;
4193 }
4194 _ACEOF
4195 rm -f conftest.$ac_objext
4196 if { (eval echo "$as_me:4196: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>&5
4198 ac_status=$?
4199 echo "$as_me:4199: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -s conftest.$ac_objext'
4202 { (eval echo "$as_me:4202: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:4205: \$? = $ac_status" >&5
4206 (exit $ac_status); }; }; then
4207 ac_cv_member_struct_stat_st_flags=yes
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4211 ac_cv_member_struct_stat_st_flags=no
4212 fi
4213 rm -f conftest.$ac_objext conftest.$ac_ext
4214 fi
4215 echo "$as_me:4215: result: $ac_cv_member_struct_stat_st_flags" >&5
4216 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
4217 if test $ac_cv_member_struct_stat_st_flags = yes; then
4218
4219 cat >>confdefs.h <<EOF
4220 #define HAVE_STRUCT_STAT_ST_FLAGS 1
4221 EOF
4222
4223 fi
4224 echo "$as_me:4224: checking for struct stat.st_gen" >&5
4225 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
4226 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 cat >conftest.$ac_ext <<_ACEOF
4230 #line 4230 "configure"
4231 #include "confdefs.h"
4232 #include <sys/stat.h>
4233
4234 int
4235 main ()
4236 {
4237 static struct stat ac_aggr;
4238 if (ac_aggr.st_gen)
4239 return 0;
4240 ;
4241 return 0;
4242 }
4243 _ACEOF
4244 rm -f conftest.$ac_objext
4245 if { (eval echo "$as_me:4245: \"$ac_compile\"") >&5
4246 (eval $ac_compile) 2>&5
4247 ac_status=$?
4248 echo "$as_me:4248: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -s conftest.$ac_objext'
4251 { (eval echo "$as_me:4251: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:4254: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 ac_cv_member_struct_stat_st_gen=yes
4257 else
4258 echo "$as_me: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4260 ac_cv_member_struct_stat_st_gen=no
4261 fi
4262 rm -f conftest.$ac_objext conftest.$ac_ext
4263 fi
4264 echo "$as_me:4264: result: $ac_cv_member_struct_stat_st_gen" >&5
4265 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
4266 if test $ac_cv_member_struct_stat_st_gen = yes; then
4267
4268 cat >>confdefs.h <<EOF
4269 #define HAVE_STRUCT_STAT_ST_GEN 1
4270 EOF
4271
4272 fi
4273 echo "$as_me:4273: checking for struct stat.st_birthtime" >&5
4274 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
4275 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278 cat >conftest.$ac_ext <<_ACEOF
4279 #line 4279 "configure"
4280 #include "confdefs.h"
4281 #include <sys/stat.h>
4282
4283 int
4284 main ()
4285 {
4286 static struct stat ac_aggr;
4287 if (ac_aggr.st_birthtime)
4288 return 0;
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 rm -f conftest.$ac_objext
4294 if { (eval echo "$as_me:4294: \"$ac_compile\"") >&5
4295 (eval $ac_compile) 2>&5
4296 ac_status=$?
4297 echo "$as_me:4297: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:4300: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:4303: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_member_struct_stat_st_birthtime=yes
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4309 ac_cv_member_struct_stat_st_birthtime=no
4310 fi
4311 rm -f conftest.$ac_objext conftest.$ac_ext
4312 fi
4313 echo "$as_me:4313: result: $ac_cv_member_struct_stat_st_birthtime" >&5
4314 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
4315 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
4316
4317 cat >>confdefs.h <<EOF
4318 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
4319 EOF
4320
4321 fi
4322 echo "$as_me:4322: checking for struct stat.st_birthtimensec" >&5
4323 echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6
4324 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 cat >conftest.$ac_ext <<_ACEOF
4328 #line 4328 "configure"
4329 #include "confdefs.h"
4330 #include <sys/stat.h>
4331
4332 int
4333 main ()
4334 {
4335 static struct stat ac_aggr;
4336 if (ac_aggr.st_birthtimensec)
4337 return 0;
4338 ;
4339 return 0;
4340 }
4341 _ACEOF
4342 rm -f conftest.$ac_objext
4343 if { (eval echo "$as_me:4343: \"$ac_compile\"") >&5
4344 (eval $ac_compile) 2>&5
4345 ac_status=$?
4346 echo "$as_me:4346: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -s conftest.$ac_objext'
4349 { (eval echo "$as_me:4349: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:4352: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_cv_member_struct_stat_st_birthtimensec=yes
4355 else
4356 echo "$as_me: failed program was:" >&5
4357 cat conftest.$ac_ext >&5
4358 ac_cv_member_struct_stat_st_birthtimensec=no
4359 fi
4360 rm -f conftest.$ac_objext conftest.$ac_ext
4361 fi
4362 echo "$as_me:4362: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
4363 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6
4364 if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
4365
4366 cat >>confdefs.h <<EOF
4367 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
4368 EOF
4369
4370 fi
4371 echo "$as_me:4371: checking for struct stat.st_atim" >&5
4372 echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6
4373 if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 cat >conftest.$ac_ext <<_ACEOF
4377 #line 4377 "configure"
4378 #include "confdefs.h"
4379 #include <sys/stat.h>
4380
4381 int
4382 main ()
4383 {
4384 static struct stat ac_aggr;
4385 if (ac_aggr.st_atim)
4386 return 0;
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 rm -f conftest.$ac_objext
4392 if { (eval echo "$as_me:4392: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4394 ac_status=$?
4395 echo "$as_me:4395: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (eval echo "$as_me:4398: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:4401: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 ac_cv_member_struct_stat_st_atim=yes
4404 else
4405 echo "$as_me: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4407 ac_cv_member_struct_stat_st_atim=no
4408 fi
4409 rm -f conftest.$ac_objext conftest.$ac_ext
4410 fi
4411 echo "$as_me:4411: result: $ac_cv_member_struct_stat_st_atim" >&5
4412 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6
4413 if test $ac_cv_member_struct_stat_st_atim = yes; then
4414
4415 cat >>confdefs.h <<EOF
4416 #define HAVE_STRUCT_STAT_ST_ATIM 1
4417 EOF
4418
4419 fi
4420 echo "$as_me:4420: checking for struct stat.st_mtimensec" >&5
4421 echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
4422 if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 cat >conftest.$ac_ext <<_ACEOF
4426 #line 4426 "configure"
4427 #include "confdefs.h"
4428 #include <sys/stat.h>
4429
4430 int
4431 main ()
4432 {
4433 static struct stat ac_aggr;
4434 if (ac_aggr.st_mtimensec)
4435 return 0;
4436 ;
4437 return 0;
4438 }
4439 _ACEOF
4440 rm -f conftest.$ac_objext
4441 if { (eval echo "$as_me:4441: \"$ac_compile\"") >&5
4442 (eval $ac_compile) 2>&5
4443 ac_status=$?
4444 echo "$as_me:4444: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:4447: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:4450: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_member_struct_stat_st_mtimensec=yes
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4456 ac_cv_member_struct_stat_st_mtimensec=no
4457 fi
4458 rm -f conftest.$ac_objext conftest.$ac_ext
4459 fi
4460 echo "$as_me:4460: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
4461 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
4462 if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
4463
4464 cat >>confdefs.h <<EOF
4465 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
4466 EOF
4467
4468 fi
4469
4470 echo "$as_me:4470: checking for struct statvfs.f_iosize" >&5
4471 echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6
4472 if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 cat >conftest.$ac_ext <<_ACEOF
4476 #line 4476 "configure"
4477 #include "confdefs.h"
4478 #include <sys/statvfs.h>
4479
4480 int
4481 main ()
4482 {
4483 static struct statvfs ac_aggr;
4484 if (ac_aggr.f_iosize)
4485 return 0;
4486 ;
4487 return 0;
4488 }
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (eval echo "$as_me:4491: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>&5
4493 ac_status=$?
4494 echo "$as_me:4494: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:4497: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:4500: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_member_struct_statvfs_f_iosize=yes
4503 else
4504 echo "$as_me: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4506 ac_cv_member_struct_statvfs_f_iosize=no
4507 fi
4508 rm -f conftest.$ac_objext conftest.$ac_ext
4509 fi
4510 echo "$as_me:4510: result: $ac_cv_member_struct_statvfs_f_iosize" >&5
4511 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6
4512 if test $ac_cv_member_struct_statvfs_f_iosize = yes; then
4513
4514 cat >>confdefs.h <<EOF
4515 #define HAVE_STRUCT_STATVFS_F_IOSIZE 1
4516 EOF
4517
4518 fi
4519
4520 # Global variable decls.
4521 echo "$as_me:4521: checking whether optind is declared" >&5
4522 echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
4523 if test "${ac_cv_have_decl_optind+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 cat >conftest.$ac_ext <<_ACEOF
4527 #line 4527 "configure"
4528 #include "confdefs.h"
4529
4530 #include <stdio.h>
4531 #include <stdlib.h>
4532 #include <unistd.h>
4533
4534 int
4535 main ()
4536 {
4537 #ifndef optind
4538 char *p = (char *) optind;
4539 #endif
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:4546: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>&5
4548 ac_status=$?
4549 echo "$as_me:4549: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:4552: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:4555: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_have_decl_optind=yes
4558 else
4559 echo "$as_me: failed program was:" >&5
4560 cat conftest.$ac_ext >&5
4561 ac_cv_have_decl_optind=no
4562 fi
4563 rm -f conftest.$ac_objext conftest.$ac_ext
4564 fi
4565 echo "$as_me:4565: result: $ac_cv_have_decl_optind" >&5
4566 echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
4567 if test $ac_cv_have_decl_optind = yes; then
4568
4569 cat >>confdefs.h <<EOF
4570 #define HAVE_DECL_OPTIND 1
4571 EOF
4572
4573 else
4574 cat >>confdefs.h <<EOF
4575 #define HAVE_DECL_OPTIND 0
4576 EOF
4577
4578 fi
4579 echo "$as_me:4579: checking whether optreset is declared" >&5
4580 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
4581 if test "${ac_cv_have_decl_optreset+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 cat >conftest.$ac_ext <<_ACEOF
4585 #line 4585 "configure"
4586 #include "confdefs.h"
4587
4588 #include <stdio.h>
4589 #include <stdlib.h>
4590 #include <unistd.h>
4591
4592 int
4593 main ()
4594 {
4595 #ifndef optreset
4596 char *p = (char *) optreset;
4597 #endif
4598
4599 ;
4600 return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:4604: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>&5
4606 ac_status=$?
4607 echo "$as_me:4607: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:4610: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:4613: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_cv_have_decl_optreset=yes
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4619 ac_cv_have_decl_optreset=no
4620 fi
4621 rm -f conftest.$ac_objext conftest.$ac_ext
4622 fi
4623 echo "$as_me:4623: result: $ac_cv_have_decl_optreset" >&5
4624 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
4625 if test $ac_cv_have_decl_optreset = yes; then
4626
4627 cat >>confdefs.h <<EOF
4628 #define HAVE_DECL_OPTRESET 1
4629 EOF
4630
4631 else
4632 cat >>confdefs.h <<EOF
4633 #define HAVE_DECL_OPTRESET 0
4634 EOF
4635
4636 fi
4637
4638 echo "$as_me:4638: checking whether sys_signame is declared" >&5
4639 echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
4640 if test "${ac_cv_have_decl_sys_signame+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 cat >conftest.$ac_ext <<_ACEOF
4644 #line 4644 "configure"
4645 #include "confdefs.h"
4646 #include <signal.h>
4647
4648 int
4649 main ()
4650 {
4651 #ifndef sys_signame
4652 char *p = (char *) sys_signame;
4653 #endif
4654
4655 ;
4656 return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:4660: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>&5
4662 ac_status=$?
4663 echo "$as_me:4663: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:4666: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:4669: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_cv_have_decl_sys_signame=yes
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 ac_cv_have_decl_sys_signame=no
4676 fi
4677 rm -f conftest.$ac_objext conftest.$ac_ext
4678 fi
4679 echo "$as_me:4679: result: $ac_cv_have_decl_sys_signame" >&5
4680 echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
4681 if test $ac_cv_have_decl_sys_signame = yes; then
4682
4683 cat >>confdefs.h <<EOF
4684 #define HAVE_DECL_SYS_SIGNAME 1
4685 EOF
4686
4687 else
4688 cat >>confdefs.h <<EOF
4689 #define HAVE_DECL_SYS_SIGNAME 0
4690 EOF
4691
4692 fi
4693
4694 # Library functions (where a .h check isn't enough).
4695 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4696 # for constant arguments. Useless!
4697 echo "$as_me:4697: checking for working alloca.h" >&5
4698 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4699 if test "${ac_cv_working_alloca_h+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 cat >conftest.$ac_ext <<_ACEOF
4703 #line 4703 "configure"
4704 #include "confdefs.h"
4705 #include <alloca.h>
4706 int
4707 main ()
4708 {
4709 char *p = (char *) alloca (2 * sizeof (int));
4710 ;
4711 return 0;
4712 }
4713 _ACEOF
4714 rm -f conftest.$ac_objext conftest$ac_exeext
4715 if { (eval echo "$as_me:4715: \"$ac_link\"") >&5
4716 (eval $ac_link) 2>&5
4717 ac_status=$?
4718 echo "$as_me:4718: \$? = $ac_status" >&5
4719 (exit $ac_status); } &&
4720 { ac_try='test -s conftest$ac_exeext'
4721 { (eval echo "$as_me:4721: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:4724: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4726 ac_cv_working_alloca_h=yes
4727 else
4728 echo "$as_me: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 ac_cv_working_alloca_h=no
4731 fi
4732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4733 fi
4734 echo "$as_me:4734: result: $ac_cv_working_alloca_h" >&5
4735 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4736 if test $ac_cv_working_alloca_h = yes; then
4737
4738 cat >>confdefs.h <<\EOF
4739 #define HAVE_ALLOCA_H 1
4740 EOF
4741
4742 fi
4743
4744 echo "$as_me:4744: checking for alloca" >&5
4745 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4746 if test "${ac_cv_func_alloca_works+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749 cat >conftest.$ac_ext <<_ACEOF
4750 #line 4750 "configure"
4751 #include "confdefs.h"
4752 #ifdef __GNUC__
4753 # define alloca __builtin_alloca
4754 #else
4755 # ifdef _MSC_VER
4756 # include <malloc.h>
4757 # define alloca _alloca
4758 # else
4759 # if HAVE_ALLOCA_H
4760 # include <alloca.h>
4761 # else
4762 # ifdef _AIX
4763 #pragma alloca
4764 # else
4765 # ifndef alloca /* predefined by HP cc +Olibcalls */
4766 char *alloca ();
4767 # endif
4768 # endif
4769 # endif
4770 # endif
4771 #endif
4772
4773 int
4774 main ()
4775 {
4776 char *p = (char *) alloca (1);
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext conftest$ac_exeext
4782 if { (eval echo "$as_me:4782: \"$ac_link\"") >&5
4783 (eval $ac_link) 2>&5
4784 ac_status=$?
4785 echo "$as_me:4785: \$? = $ac_status" >&5
4786 (exit $ac_status); } &&
4787 { ac_try='test -s conftest$ac_exeext'
4788 { (eval echo "$as_me:4788: \"$ac_try\"") >&5
4789 (eval $ac_try) 2>&5
4790 ac_status=$?
4791 echo "$as_me:4791: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 ac_cv_func_alloca_works=yes
4794 else
4795 echo "$as_me: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4797 ac_cv_func_alloca_works=no
4798 fi
4799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4800 fi
4801 echo "$as_me:4801: result: $ac_cv_func_alloca_works" >&5
4802 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4803
4804 if test $ac_cv_func_alloca_works = yes; then
4805
4806 cat >>confdefs.h <<\EOF
4807 #define HAVE_ALLOCA 1
4808 EOF
4809
4810 else
4811 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4812 # that cause trouble. Some versions do not even contain alloca or
4813 # contain a buggy version. If you still want to use their alloca,
4814 # use ar to extract alloca.o from them instead of compiling alloca.c.
4815
4816 ALLOCA=alloca.$ac_objext
4817
4818 cat >>confdefs.h <<\EOF
4819 #define C_ALLOCA 1
4820 EOF
4821
4822 echo "$as_me:4822: checking whether \`alloca.c' needs Cray hooks" >&5
4823 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4824 if test "${ac_cv_os_cray+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 cat >conftest.$ac_ext <<_ACEOF
4828 #line 4828 "configure"
4829 #include "confdefs.h"
4830 #if defined(CRAY) && ! defined(CRAY2)
4831 webecray
4832 #else
4833 wenotbecray
4834 #endif
4835
4836 _ACEOF
4837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838 egrep "webecray" >/dev/null 2>&1; then
4839 ac_cv_os_cray=yes
4840 else
4841 ac_cv_os_cray=no
4842 fi
4843 rm -f conftest*
4844
4845 fi
4846 echo "$as_me:4846: result: $ac_cv_os_cray" >&5
4847 echo "${ECHO_T}$ac_cv_os_cray" >&6
4848 if test $ac_cv_os_cray = yes; then
4849 for ac_func in _getb67 GETB67 getb67; do
4850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4851 echo "$as_me:4851: checking for $ac_func" >&5
4852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4853 if eval "test \"\${$as_ac_var+set}\" = set"; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 cat >conftest.$ac_ext <<_ACEOF
4857 #line 4857 "configure"
4858 #include "confdefs.h"
4859 /* System header to define __stub macros and hopefully few prototypes,
4860 which can conflict with char $ac_func (); below. */
4861 #include <assert.h>
4862 /* Override any gcc2 internal prototype to avoid an error. */
4863 #ifdef __cplusplus
4864 extern "C"
4865 #endif
4866 /* We use char because int might match the return type of a gcc2
4867 builtin and then its argument prototype would still apply. */
4868 char $ac_func ();
4869 char (*f) ();
4870
4871 int
4872 main ()
4873 {
4874 /* The GNU C library defines this for functions which it implements
4875 to always fail with ENOSYS. Some functions are actually named
4876 something starting with __ and the normal name is an alias. */
4877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4878 choke me
4879 #else
4880 f = $ac_func;
4881 #endif
4882
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest.$ac_objext conftest$ac_exeext
4888 if { (eval echo "$as_me:4888: \"$ac_link\"") >&5
4889 (eval $ac_link) 2>&5
4890 ac_status=$?
4891 echo "$as_me:4891: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -s conftest$ac_exeext'
4894 { (eval echo "$as_me:4894: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:4897: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 eval "$as_ac_var=yes"
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4903 eval "$as_ac_var=no"
4904 fi
4905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4906 fi
4907 echo "$as_me:4907: result: `eval echo '${'$as_ac_var'}'`" >&5
4908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4909 if test `eval echo '${'$as_ac_var'}'` = yes; then
4910
4911 cat >>confdefs.h <<EOF
4912 #define CRAY_STACKSEG_END $ac_func
4913 EOF
4914
4915 break
4916 fi
4917
4918 done
4919 fi
4920
4921 echo "$as_me:4921: checking stack direction for C alloca" >&5
4922 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4923 if test "${ac_cv_c_stack_direction+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926 if test "$cross_compiling" = yes; then
4927 ac_cv_c_stack_direction=0
4928 else
4929 cat >conftest.$ac_ext <<_ACEOF
4930 #line 4930 "configure"
4931 #include "confdefs.h"
4932 int
4933 find_stack_direction ()
4934 {
4935 static char *addr = 0;
4936 auto char dummy;
4937 if (addr == 0)
4938 {
4939 addr = &dummy;
4940 return find_stack_direction ();
4941 }
4942 else
4943 return (&dummy > addr) ? 1 : -1;
4944 }
4945
4946 int
4947 main ()
4948 {
4949 exit (find_stack_direction () < 0);
4950 }
4951 _ACEOF
4952 rm -f conftest$ac_exeext
4953 if { (eval echo "$as_me:4953: \"$ac_link\"") >&5
4954 (eval $ac_link) 2>&5
4955 ac_status=$?
4956 echo "$as_me:4956: \$? = $ac_status" >&5
4957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4958 { (eval echo "$as_me:4958: \"$ac_try\"") >&5
4959 (eval $ac_try) 2>&5
4960 ac_status=$?
4961 echo "$as_me:4961: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 ac_cv_c_stack_direction=1
4964 else
4965 echo "$as_me: program exited with status $ac_status" >&5
4966 echo "$as_me: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4968 ac_cv_c_stack_direction=-1
4969 fi
4970 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4971 fi
4972 fi
4973 echo "$as_me:4973: result: $ac_cv_c_stack_direction" >&5
4974 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4975
4976 cat >>confdefs.h <<EOF
4977 #define STACK_DIRECTION $ac_cv_c_stack_direction
4978 EOF
4979
4980 fi
4981
4982 for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
4983 esetfunc fgetln flock fparseln futimes getopt getopt_long \
4984 group_from_gid \
4985 heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
4986 mkdtemp poll pread putc_unlocked pwcache_userdb pwrite random setenv \
4987 setgroupent setprogname setpassent snprintf strlcat strlcpy strmode \
4988 strsep strsuftoll strtoll \
4989 user_from_uid vasprintf vasnprintf vsnprintf
4990 do
4991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4992 echo "$as_me:4992: checking for $ac_func" >&5
4993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4994 if eval "test \"\${$as_ac_var+set}\" = set"; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 cat >conftest.$ac_ext <<_ACEOF
4998 #line 4998 "configure"
4999 #include "confdefs.h"
5000 /* System header to define __stub macros and hopefully few prototypes,
5001 which can conflict with char $ac_func (); below. */
5002 #include <assert.h>
5003 /* Override any gcc2 internal prototype to avoid an error. */
5004 #ifdef __cplusplus
5005 extern "C"
5006 #endif
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5009 char $ac_func ();
5010 char (*f) ();
5011
5012 int
5013 main ()
5014 {
5015 /* The GNU C library defines this for functions which it implements
5016 to always fail with ENOSYS. Some functions are actually named
5017 something starting with __ and the normal name is an alias. */
5018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5019 choke me
5020 #else
5021 f = $ac_func;
5022 #endif
5023
5024 ;
5025 return 0;
5026 }
5027 _ACEOF
5028 rm -f conftest.$ac_objext conftest$ac_exeext
5029 if { (eval echo "$as_me:5029: \"$ac_link\"") >&5
5030 (eval $ac_link) 2>&5
5031 ac_status=$?
5032 echo "$as_me:5032: \$? = $ac_status" >&5
5033 (exit $ac_status); } &&
5034 { ac_try='test -s conftest$ac_exeext'
5035 { (eval echo "$as_me:5035: \"$ac_try\"") >&5
5036 (eval $ac_try) 2>&5
5037 ac_status=$?
5038 echo "$as_me:5038: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5040 eval "$as_ac_var=yes"
5041 else
5042 echo "$as_me: failed program was:" >&5
5043 cat conftest.$ac_ext >&5
5044 eval "$as_ac_var=no"
5045 fi
5046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5047 fi
5048 echo "$as_me:5048: result: `eval echo '${'$as_ac_var'}'`" >&5
5049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5050 if test `eval echo '${'$as_ac_var'}'` = yes; then
5051 cat >>confdefs.h <<EOF
5052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5053 EOF
5054
5055 fi
5056 done
5057
5058 echo "$as_me:5058: checking whether strsuftoll is declared" >&5
5059 echo $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6
5060 if test "${ac_cv_have_decl_strsuftoll+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063 cat >conftest.$ac_ext <<_ACEOF
5064 #line 5064 "configure"
5065 #include "confdefs.h"
5066 #include <stdlib.h>
5067
5068 int
5069 main ()
5070 {
5071 #ifndef strsuftoll
5072 char *p = (char *) strsuftoll;
5073 #endif
5074
5075 ;
5076 return 0;
5077 }
5078 _ACEOF
5079 rm -f conftest.$ac_objext
5080 if { (eval echo "$as_me:5080: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>&5
5082 ac_status=$?
5083 echo "$as_me:5083: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -s conftest.$ac_objext'
5086 { (eval echo "$as_me:5086: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:5089: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_cv_have_decl_strsuftoll=yes
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5095 ac_cv_have_decl_strsuftoll=no
5096 fi
5097 rm -f conftest.$ac_objext conftest.$ac_ext
5098 fi
5099 echo "$as_me:5099: result: $ac_cv_have_decl_strsuftoll" >&5
5100 echo "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6
5101 if test $ac_cv_have_decl_strsuftoll = yes; then
5102
5103 cat >>confdefs.h <<EOF
5104 #define HAVE_DECL_STRSUFTOLL 1
5105 EOF
5106
5107 else
5108 cat >>confdefs.h <<EOF
5109 #define HAVE_DECL_STRSUFTOLL 0
5110 EOF
5111
5112 fi
5113
5114 echo "$as_me:5114: checking whether htobe16 is declared" >&5
5115 echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6
5116 if test "${ac_cv_have_decl_htobe16+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line 5120 "configure"
5121 #include "confdefs.h"
5122 #include <sys/types.h>
5123
5124 int
5125 main ()
5126 {
5127 #ifndef htobe16
5128 char *p = (char *) htobe16;
5129 #endif
5130
5131 ;
5132 return 0;
5133 }
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (eval echo "$as_me:5136: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>&5
5138 ac_status=$?
5139 echo "$as_me:5139: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -s conftest.$ac_objext'
5142 { (eval echo "$as_me:5142: \"$ac_try\"") >&5
5143 (eval $ac_try) 2>&5
5144 ac_status=$?
5145 echo "$as_me:5145: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 ac_cv_have_decl_htobe16=yes
5148 else
5149 echo "$as_me: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5151 ac_cv_have_decl_htobe16=no
5152 fi
5153 rm -f conftest.$ac_objext conftest.$ac_ext
5154 fi
5155 echo "$as_me:5155: result: $ac_cv_have_decl_htobe16" >&5
5156 echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6
5157 if test $ac_cv_have_decl_htobe16 = yes; then
5158
5159 cat >>confdefs.h <<EOF
5160 #define HAVE_DECL_HTOBE16 1
5161 EOF
5162
5163 else
5164 cat >>confdefs.h <<EOF
5165 #define HAVE_DECL_HTOBE16 0
5166 EOF
5167
5168 fi
5169 echo "$as_me:5169: checking whether htobe32 is declared" >&5
5170 echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6
5171 if test "${ac_cv_have_decl_htobe32+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174 cat >conftest.$ac_ext <<_ACEOF
5175 #line 5175 "configure"
5176 #include "confdefs.h"
5177 #include <sys/types.h>
5178
5179 int
5180 main ()
5181 {
5182 #ifndef htobe32
5183 char *p = (char *) htobe32;
5184 #endif
5185
5186 ;
5187 return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext
5191 if { (eval echo "$as_me:5191: \"$ac_compile\"") >&5
5192 (eval $ac_compile) 2>&5
5193 ac_status=$?
5194 echo "$as_me:5194: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -s conftest.$ac_objext'
5197 { (eval echo "$as_me:5197: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:5200: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5202 ac_cv_have_decl_htobe32=yes
5203 else
5204 echo "$as_me: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 ac_cv_have_decl_htobe32=no
5207 fi
5208 rm -f conftest.$ac_objext conftest.$ac_ext
5209 fi
5210 echo "$as_me:5210: result: $ac_cv_have_decl_htobe32" >&5
5211 echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6
5212 if test $ac_cv_have_decl_htobe32 = yes; then
5213
5214 cat >>confdefs.h <<EOF
5215 #define HAVE_DECL_HTOBE32 1
5216 EOF
5217
5218 else
5219 cat >>confdefs.h <<EOF
5220 #define HAVE_DECL_HTOBE32 0
5221 EOF
5222
5223 fi
5224 echo "$as_me:5224: checking whether htobe64 is declared" >&5
5225 echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6
5226 if test "${ac_cv_have_decl_htobe64+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 cat >conftest.$ac_ext <<_ACEOF
5230 #line 5230 "configure"
5231 #include "confdefs.h"
5232 #include <sys/types.h>
5233
5234 int
5235 main ()
5236 {
5237 #ifndef htobe64
5238 char *p = (char *) htobe64;
5239 #endif
5240
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:5246: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>&5
5248 ac_status=$?
5249 echo "$as_me:5249: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:5252: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:5255: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_have_decl_htobe64=yes
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 ac_cv_have_decl_htobe64=no
5262 fi
5263 rm -f conftest.$ac_objext conftest.$ac_ext
5264 fi
5265 echo "$as_me:5265: result: $ac_cv_have_decl_htobe64" >&5
5266 echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6
5267 if test $ac_cv_have_decl_htobe64 = yes; then
5268
5269 cat >>confdefs.h <<EOF
5270 #define HAVE_DECL_HTOBE64 1
5271 EOF
5272
5273 else
5274 cat >>confdefs.h <<EOF
5275 #define HAVE_DECL_HTOBE64 0
5276 EOF
5277
5278 fi
5279 echo "$as_me:5279: checking whether htole16 is declared" >&5
5280 echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6
5281 if test "${ac_cv_have_decl_htole16+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line 5285 "configure"
5286 #include "confdefs.h"
5287 #include <sys/types.h>
5288
5289 int
5290 main ()
5291 {
5292 #ifndef htole16
5293 char *p = (char *) htole16;
5294 #endif
5295
5296 ;
5297 return 0;
5298 }
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:5301: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>&5
5303 ac_status=$?
5304 echo "$as_me:5304: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:5307: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:5310: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 ac_cv_have_decl_htole16=yes
5313 else
5314 echo "$as_me: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5316 ac_cv_have_decl_htole16=no
5317 fi
5318 rm -f conftest.$ac_objext conftest.$ac_ext
5319 fi
5320 echo "$as_me:5320: result: $ac_cv_have_decl_htole16" >&5
5321 echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6
5322 if test $ac_cv_have_decl_htole16 = yes; then
5323
5324 cat >>confdefs.h <<EOF
5325 #define HAVE_DECL_HTOLE16 1
5326 EOF
5327
5328 else
5329 cat >>confdefs.h <<EOF
5330 #define HAVE_DECL_HTOLE16 0
5331 EOF
5332
5333 fi
5334 echo "$as_me:5334: checking whether htole32 is declared" >&5
5335 echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6
5336 if test "${ac_cv_have_decl_htole32+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 cat >conftest.$ac_ext <<_ACEOF
5340 #line 5340 "configure"
5341 #include "confdefs.h"
5342 #include <sys/types.h>
5343
5344 int
5345 main ()
5346 {
5347 #ifndef htole32
5348 char *p = (char *) htole32;
5349 #endif
5350
5351 ;
5352 return 0;
5353 }
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (eval echo "$as_me:5356: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>&5
5358 ac_status=$?
5359 echo "$as_me:5359: \$? = $ac_status" >&5
5360 (exit $ac_status); } &&
5361 { ac_try='test -s conftest.$ac_objext'
5362 { (eval echo "$as_me:5362: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:5365: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_cv_have_decl_htole32=yes
5368 else
5369 echo "$as_me: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5371 ac_cv_have_decl_htole32=no
5372 fi
5373 rm -f conftest.$ac_objext conftest.$ac_ext
5374 fi
5375 echo "$as_me:5375: result: $ac_cv_have_decl_htole32" >&5
5376 echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6
5377 if test $ac_cv_have_decl_htole32 = yes; then
5378
5379 cat >>confdefs.h <<EOF
5380 #define HAVE_DECL_HTOLE32 1
5381 EOF
5382
5383 else
5384 cat >>confdefs.h <<EOF
5385 #define HAVE_DECL_HTOLE32 0
5386 EOF
5387
5388 fi
5389 echo "$as_me:5389: checking whether htole64 is declared" >&5
5390 echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6
5391 if test "${ac_cv_have_decl_htole64+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394 cat >conftest.$ac_ext <<_ACEOF
5395 #line 5395 "configure"
5396 #include "confdefs.h"
5397 #include <sys/types.h>
5398
5399 int
5400 main ()
5401 {
5402 #ifndef htole64
5403 char *p = (char *) htole64;
5404 #endif
5405
5406 ;
5407 return 0;
5408 }
5409 _ACEOF
5410 rm -f conftest.$ac_objext
5411 if { (eval echo "$as_me:5411: \"$ac_compile\"") >&5
5412 (eval $ac_compile) 2>&5
5413 ac_status=$?
5414 echo "$as_me:5414: \$? = $ac_status" >&5
5415 (exit $ac_status); } &&
5416 { ac_try='test -s conftest.$ac_objext'
5417 { (eval echo "$as_me:5417: \"$ac_try\"") >&5
5418 (eval $ac_try) 2>&5
5419 ac_status=$?
5420 echo "$as_me:5420: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5422 ac_cv_have_decl_htole64=yes
5423 else
5424 echo "$as_me: failed program was:" >&5
5425 cat conftest.$ac_ext >&5
5426 ac_cv_have_decl_htole64=no
5427 fi
5428 rm -f conftest.$ac_objext conftest.$ac_ext
5429 fi
5430 echo "$as_me:5430: result: $ac_cv_have_decl_htole64" >&5
5431 echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6
5432 if test $ac_cv_have_decl_htole64 = yes; then
5433
5434 cat >>confdefs.h <<EOF
5435 #define HAVE_DECL_HTOLE64 1
5436 EOF
5437
5438 else
5439 cat >>confdefs.h <<EOF
5440 #define HAVE_DECL_HTOLE64 0
5441 EOF
5442
5443 fi
5444 echo "$as_me:5444: checking whether be16toh is declared" >&5
5445 echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6
5446 if test "${ac_cv_have_decl_be16toh+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449 cat >conftest.$ac_ext <<_ACEOF
5450 #line 5450 "configure"
5451 #include "confdefs.h"
5452 #include <sys/types.h>
5453
5454 int
5455 main ()
5456 {
5457 #ifndef be16toh
5458 char *p = (char *) be16toh;
5459 #endif
5460
5461 ;
5462 return 0;
5463 }
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (eval echo "$as_me:5466: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>&5
5468 ac_status=$?
5469 echo "$as_me:5469: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:5472: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:5475: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_cv_have_decl_be16toh=yes
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5481 ac_cv_have_decl_be16toh=no
5482 fi
5483 rm -f conftest.$ac_objext conftest.$ac_ext
5484 fi
5485 echo "$as_me:5485: result: $ac_cv_have_decl_be16toh" >&5
5486 echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6
5487 if test $ac_cv_have_decl_be16toh = yes; then
5488
5489 cat >>confdefs.h <<EOF
5490 #define HAVE_DECL_BE16TOH 1
5491 EOF
5492
5493 else
5494 cat >>confdefs.h <<EOF
5495 #define HAVE_DECL_BE16TOH 0
5496 EOF
5497
5498 fi
5499 echo "$as_me:5499: checking whether be32toh is declared" >&5
5500 echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6
5501 if test "${ac_cv_have_decl_be32toh+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 cat >conftest.$ac_ext <<_ACEOF
5505 #line 5505 "configure"
5506 #include "confdefs.h"
5507 #include <sys/types.h>
5508
5509 int
5510 main ()
5511 {
5512 #ifndef be32toh
5513 char *p = (char *) be32toh;
5514 #endif
5515
5516 ;
5517 return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (eval echo "$as_me:5521: \"$ac_compile\"") >&5
5522 (eval $ac_compile) 2>&5
5523 ac_status=$?
5524 echo "$as_me:5524: \$? = $ac_status" >&5
5525 (exit $ac_status); } &&
5526 { ac_try='test -s conftest.$ac_objext'
5527 { (eval echo "$as_me:5527: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:5530: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_cv_have_decl_be32toh=yes
5533 else
5534 echo "$as_me: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5536 ac_cv_have_decl_be32toh=no
5537 fi
5538 rm -f conftest.$ac_objext conftest.$ac_ext
5539 fi
5540 echo "$as_me:5540: result: $ac_cv_have_decl_be32toh" >&5
5541 echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6
5542 if test $ac_cv_have_decl_be32toh = yes; then
5543
5544 cat >>confdefs.h <<EOF
5545 #define HAVE_DECL_BE32TOH 1
5546 EOF
5547
5548 else
5549 cat >>confdefs.h <<EOF
5550 #define HAVE_DECL_BE32TOH 0
5551 EOF
5552
5553 fi
5554 echo "$as_me:5554: checking whether be64toh is declared" >&5
5555 echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6
5556 if test "${ac_cv_have_decl_be64toh+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 cat >conftest.$ac_ext <<_ACEOF
5560 #line 5560 "configure"
5561 #include "confdefs.h"
5562 #include <sys/types.h>
5563
5564 int
5565 main ()
5566 {
5567 #ifndef be64toh
5568 char *p = (char *) be64toh;
5569 #endif
5570
5571 ;
5572 return 0;
5573 }
5574 _ACEOF
5575 rm -f conftest.$ac_objext
5576 if { (eval echo "$as_me:5576: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>&5
5578 ac_status=$?
5579 echo "$as_me:5579: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try='test -s conftest.$ac_objext'
5582 { (eval echo "$as_me:5582: \"$ac_try\"") >&5
5583 (eval $ac_try) 2>&5
5584 ac_status=$?
5585 echo "$as_me:5585: \$? = $ac_status" >&5
5586 (exit $ac_status); }; }; then
5587 ac_cv_have_decl_be64toh=yes
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5591 ac_cv_have_decl_be64toh=no
5592 fi
5593 rm -f conftest.$ac_objext conftest.$ac_ext
5594 fi
5595 echo "$as_me:5595: result: $ac_cv_have_decl_be64toh" >&5
5596 echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6
5597 if test $ac_cv_have_decl_be64toh = yes; then
5598
5599 cat >>confdefs.h <<EOF
5600 #define HAVE_DECL_BE64TOH 1
5601 EOF
5602
5603 else
5604 cat >>confdefs.h <<EOF
5605 #define HAVE_DECL_BE64TOH 0
5606 EOF
5607
5608 fi
5609 echo "$as_me:5609: checking whether le16toh is declared" >&5
5610 echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6
5611 if test "${ac_cv_have_decl_le16toh+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 cat >conftest.$ac_ext <<_ACEOF
5615 #line 5615 "configure"
5616 #include "confdefs.h"
5617 #include <sys/types.h>
5618
5619 int
5620 main ()
5621 {
5622 #ifndef le16toh
5623 char *p = (char *) le16toh;
5624 #endif
5625
5626 ;
5627 return 0;
5628 }
5629 _ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (eval echo "$as_me:5631: \"$ac_compile\"") >&5
5632 (eval $ac_compile) 2>&5
5633 ac_status=$?
5634 echo "$as_me:5634: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try='test -s conftest.$ac_objext'
5637 { (eval echo "$as_me:5637: \"$ac_try\"") >&5
5638 (eval $ac_try) 2>&5
5639 ac_status=$?
5640 echo "$as_me:5640: \$? = $ac_status" >&5
5641 (exit $ac_status); }; }; then
5642 ac_cv_have_decl_le16toh=yes
5643 else
5644 echo "$as_me: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5646 ac_cv_have_decl_le16toh=no
5647 fi
5648 rm -f conftest.$ac_objext conftest.$ac_ext
5649 fi
5650 echo "$as_me:5650: result: $ac_cv_have_decl_le16toh" >&5
5651 echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6
5652 if test $ac_cv_have_decl_le16toh = yes; then
5653
5654 cat >>confdefs.h <<EOF
5655 #define HAVE_DECL_LE16TOH 1
5656 EOF
5657
5658 else
5659 cat >>confdefs.h <<EOF
5660 #define HAVE_DECL_LE16TOH 0
5661 EOF
5662
5663 fi
5664 echo "$as_me:5664: checking whether le32toh is declared" >&5
5665 echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6
5666 if test "${ac_cv_have_decl_le32toh+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669 cat >conftest.$ac_ext <<_ACEOF
5670 #line 5670 "configure"
5671 #include "confdefs.h"
5672 #include <sys/types.h>
5673
5674 int
5675 main ()
5676 {
5677 #ifndef le32toh
5678 char *p = (char *) le32toh;
5679 #endif
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 rm -f conftest.$ac_objext
5686 if { (eval echo "$as_me:5686: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>&5
5688 ac_status=$?
5689 echo "$as_me:5689: \$? = $ac_status" >&5
5690 (exit $ac_status); } &&
5691 { ac_try='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:5692: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:5695: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_cv_have_decl_le32toh=yes
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 cat conftest.$ac_ext >&5
5701 ac_cv_have_decl_le32toh=no
5702 fi
5703 rm -f conftest.$ac_objext conftest.$ac_ext
5704 fi
5705 echo "$as_me:5705: result: $ac_cv_have_decl_le32toh" >&5
5706 echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6
5707 if test $ac_cv_have_decl_le32toh = yes; then
5708
5709 cat >>confdefs.h <<EOF
5710 #define HAVE_DECL_LE32TOH 1
5711 EOF
5712
5713 else
5714 cat >>confdefs.h <<EOF
5715 #define HAVE_DECL_LE32TOH 0
5716 EOF
5717
5718 fi
5719 echo "$as_me:5719: checking whether le64toh is declared" >&5
5720 echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6
5721 if test "${ac_cv_have_decl_le64toh+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line 5725 "configure"
5726 #include "confdefs.h"
5727 #include <sys/types.h>
5728
5729 int
5730 main ()
5731 {
5732 #ifndef le64toh
5733 char *p = (char *) le64toh;
5734 #endif
5735
5736 ;
5737 return 0;
5738 }
5739 _ACEOF
5740 rm -f conftest.$ac_objext
5741 if { (eval echo "$as_me:5741: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>&5
5743 ac_status=$?
5744 echo "$as_me:5744: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:5747: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:5750: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_have_decl_le64toh=yes
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5756 ac_cv_have_decl_le64toh=no
5757 fi
5758 rm -f conftest.$ac_objext conftest.$ac_ext
5759 fi
5760 echo "$as_me:5760: result: $ac_cv_have_decl_le64toh" >&5
5761 echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6
5762 if test $ac_cv_have_decl_le64toh = yes; then
5763
5764 cat >>confdefs.h <<EOF
5765 #define HAVE_DECL_LE64TOH 1
5766 EOF
5767
5768 else
5769 cat >>confdefs.h <<EOF
5770 #define HAVE_DECL_LE64TOH 0
5771 EOF
5772
5773 fi
5774
5775 echo "$as_me:5775: checking whether bswap16 is declared" >&5
5776 echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6
5777 if test "${ac_cv_have_decl_bswap16+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780 cat >conftest.$ac_ext <<_ACEOF
5781 #line 5781 "configure"
5782 #include "confdefs.h"
5783 #include <machine/bswap.h>
5784
5785 int
5786 main ()
5787 {
5788 #ifndef bswap16
5789 char *p = (char *) bswap16;
5790 #endif
5791
5792 ;
5793 return 0;
5794 }
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (eval echo "$as_me:5797: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>&5
5799 ac_status=$?
5800 echo "$as_me:5800: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (eval echo "$as_me:5803: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:5806: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_cv_have_decl_bswap16=yes
5809 else
5810 echo "$as_me: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5812 ac_cv_have_decl_bswap16=no
5813 fi
5814 rm -f conftest.$ac_objext conftest.$ac_ext
5815 fi
5816 echo "$as_me:5816: result: $ac_cv_have_decl_bswap16" >&5
5817 echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6
5818 if test $ac_cv_have_decl_bswap16 = yes; then
5819
5820 cat >>confdefs.h <<EOF
5821 #define HAVE_DECL_BSWAP16 1
5822 EOF
5823
5824 else
5825 cat >>confdefs.h <<EOF
5826 #define HAVE_DECL_BSWAP16 0
5827 EOF
5828
5829 fi
5830 echo "$as_me:5830: checking whether bswap32 is declared" >&5
5831 echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6
5832 if test "${ac_cv_have_decl_bswap32+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835 cat >conftest.$ac_ext <<_ACEOF
5836 #line 5836 "configure"
5837 #include "confdefs.h"
5838 #include <machine/bswap.h>
5839
5840 int
5841 main ()
5842 {
5843 #ifndef bswap32
5844 char *p = (char *) bswap32;
5845 #endif
5846
5847 ;
5848 return 0;
5849 }
5850 _ACEOF
5851 rm -f conftest.$ac_objext
5852 if { (eval echo "$as_me:5852: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 2>&5
5854 ac_status=$?
5855 echo "$as_me:5855: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:5858: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:5861: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_have_decl_bswap32=yes
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5867 ac_cv_have_decl_bswap32=no
5868 fi
5869 rm -f conftest.$ac_objext conftest.$ac_ext
5870 fi
5871 echo "$as_me:5871: result: $ac_cv_have_decl_bswap32" >&5
5872 echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6
5873 if test $ac_cv_have_decl_bswap32 = yes; then
5874
5875 cat >>confdefs.h <<EOF
5876 #define HAVE_DECL_BSWAP32 1
5877 EOF
5878
5879 else
5880 cat >>confdefs.h <<EOF
5881 #define HAVE_DECL_BSWAP32 0
5882 EOF
5883
5884 fi
5885 echo "$as_me:5885: checking whether bswap64 is declared" >&5
5886 echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6
5887 if test "${ac_cv_have_decl_bswap64+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 cat >conftest.$ac_ext <<_ACEOF
5891 #line 5891 "configure"
5892 #include "confdefs.h"
5893 #include <machine/bswap.h>
5894
5895 int
5896 main ()
5897 {
5898 #ifndef bswap64
5899 char *p = (char *) bswap64;
5900 #endif
5901
5902 ;
5903 return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (eval echo "$as_me:5907: \"$ac_compile\"") >&5
5908 (eval $ac_compile) 2>&5
5909 ac_status=$?
5910 echo "$as_me:5910: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:5913: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:5916: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_cv_have_decl_bswap64=yes
5919 else
5920 echo "$as_me: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5922 ac_cv_have_decl_bswap64=no
5923 fi
5924 rm -f conftest.$ac_objext conftest.$ac_ext
5925 fi
5926 echo "$as_me:5926: result: $ac_cv_have_decl_bswap64" >&5
5927 echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6
5928 if test $ac_cv_have_decl_bswap64 = yes; then
5929
5930 cat >>confdefs.h <<EOF
5931 #define HAVE_DECL_BSWAP64 1
5932 EOF
5933
5934 else
5935 cat >>confdefs.h <<EOF
5936 #define HAVE_DECL_BSWAP64 0
5937 EOF
5938
5939 fi
5940
5941 echo "$as_me:5941: checking whether be16enc is declared" >&5
5942 echo $ECHO_N "checking whether be16enc is declared... $ECHO_C" >&6
5943 if test "${ac_cv_have_decl_be16enc+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 cat >conftest.$ac_ext <<_ACEOF
5947 #line 5947 "configure"
5948 #include "confdefs.h"
5949 #include <sys/endian.h>
5950
5951 int
5952 main ()
5953 {
5954 #ifndef be16enc
5955 char *p = (char *) be16enc;
5956 #endif
5957
5958 ;
5959 return 0;
5960 }
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:5963: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>&5
5965 ac_status=$?
5966 echo "$as_me:5966: \$? = $ac_status" >&5
5967 (exit $ac_status); } &&
5968 { ac_try='test -s conftest.$ac_objext'
5969 { (eval echo "$as_me:5969: \"$ac_try\"") >&5
5970 (eval $ac_try) 2>&5
5971 ac_status=$?
5972 echo "$as_me:5972: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 ac_cv_have_decl_be16enc=yes
5975 else
5976 echo "$as_me: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5978 ac_cv_have_decl_be16enc=no
5979 fi
5980 rm -f conftest.$ac_objext conftest.$ac_ext
5981 fi
5982 echo "$as_me:5982: result: $ac_cv_have_decl_be16enc" >&5
5983 echo "${ECHO_T}$ac_cv_have_decl_be16enc" >&6
5984 if test $ac_cv_have_decl_be16enc = yes; then
5985
5986 cat >>confdefs.h <<EOF
5987 #define HAVE_DECL_BE16ENC 1
5988 EOF
5989
5990 else
5991 cat >>confdefs.h <<EOF
5992 #define HAVE_DECL_BE16ENC 0
5993 EOF
5994
5995 fi
5996 echo "$as_me:5996: checking whether le16enc is declared" >&5
5997 echo $ECHO_N "checking whether le16enc is declared... $ECHO_C" >&6
5998 if test "${ac_cv_have_decl_le16enc+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 cat >conftest.$ac_ext <<_ACEOF
6002 #line 6002 "configure"
6003 #include "confdefs.h"
6004 #include <sys/endian.h>
6005
6006 int
6007 main ()
6008 {
6009 #ifndef le16enc
6010 char *p = (char *) le16enc;
6011 #endif
6012
6013 ;
6014 return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest.$ac_objext
6018 if { (eval echo "$as_me:6018: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>&5
6020 ac_status=$?
6021 echo "$as_me:6021: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:6024: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:6027: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_have_decl_le16enc=yes
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6033 ac_cv_have_decl_le16enc=no
6034 fi
6035 rm -f conftest.$ac_objext conftest.$ac_ext
6036 fi
6037 echo "$as_me:6037: result: $ac_cv_have_decl_le16enc" >&5
6038 echo "${ECHO_T}$ac_cv_have_decl_le16enc" >&6
6039 if test $ac_cv_have_decl_le16enc = yes; then
6040
6041 cat >>confdefs.h <<EOF
6042 #define HAVE_DECL_LE16ENC 1
6043 EOF
6044
6045 else
6046 cat >>confdefs.h <<EOF
6047 #define HAVE_DECL_LE16ENC 0
6048 EOF
6049
6050 fi
6051 echo "$as_me:6051: checking whether be16dec is declared" >&5
6052 echo $ECHO_N "checking whether be16dec is declared... $ECHO_C" >&6
6053 if test "${ac_cv_have_decl_be16dec+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 cat >conftest.$ac_ext <<_ACEOF
6057 #line 6057 "configure"
6058 #include "confdefs.h"
6059 #include <sys/endian.h>
6060
6061 int
6062 main ()
6063 {
6064 #ifndef be16dec
6065 char *p = (char *) be16dec;
6066 #endif
6067
6068 ;
6069 return 0;
6070 }
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (eval echo "$as_me:6073: \"$ac_compile\"") >&5
6074 (eval $ac_compile) 2>&5
6075 ac_status=$?
6076 echo "$as_me:6076: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -s conftest.$ac_objext'
6079 { (eval echo "$as_me:6079: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:6082: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 ac_cv_have_decl_be16dec=yes
6085 else
6086 echo "$as_me: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6088 ac_cv_have_decl_be16dec=no
6089 fi
6090 rm -f conftest.$ac_objext conftest.$ac_ext
6091 fi
6092 echo "$as_me:6092: result: $ac_cv_have_decl_be16dec" >&5
6093 echo "${ECHO_T}$ac_cv_have_decl_be16dec" >&6
6094 if test $ac_cv_have_decl_be16dec = yes; then
6095
6096 cat >>confdefs.h <<EOF
6097 #define HAVE_DECL_BE16DEC 1
6098 EOF
6099
6100 else
6101 cat >>confdefs.h <<EOF
6102 #define HAVE_DECL_BE16DEC 0
6103 EOF
6104
6105 fi
6106 echo "$as_me:6106: checking whether le16dec is declared" >&5
6107 echo $ECHO_N "checking whether le16dec is declared... $ECHO_C" >&6
6108 if test "${ac_cv_have_decl_le16dec+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111 cat >conftest.$ac_ext <<_ACEOF
6112 #line 6112 "configure"
6113 #include "confdefs.h"
6114 #include <sys/endian.h>
6115
6116 int
6117 main ()
6118 {
6119 #ifndef le16dec
6120 char *p = (char *) le16dec;
6121 #endif
6122
6123 ;
6124 return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:6128: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>&5
6130 ac_status=$?
6131 echo "$as_me:6131: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:6134: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:6137: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_have_decl_le16dec=yes
6140 else
6141 echo "$as_me: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6143 ac_cv_have_decl_le16dec=no
6144 fi
6145 rm -f conftest.$ac_objext conftest.$ac_ext
6146 fi
6147 echo "$as_me:6147: result: $ac_cv_have_decl_le16dec" >&5
6148 echo "${ECHO_T}$ac_cv_have_decl_le16dec" >&6
6149 if test $ac_cv_have_decl_le16dec = yes; then
6150
6151 cat >>confdefs.h <<EOF
6152 #define HAVE_DECL_LE16DEC 1
6153 EOF
6154
6155 else
6156 cat >>confdefs.h <<EOF
6157 #define HAVE_DECL_LE16DEC 0
6158 EOF
6159
6160 fi
6161 echo "$as_me:6161: checking whether be32enc is declared" >&5
6162 echo $ECHO_N "checking whether be32enc is declared... $ECHO_C" >&6
6163 if test "${ac_cv_have_decl_be32enc+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 cat >conftest.$ac_ext <<_ACEOF
6167 #line 6167 "configure"
6168 #include "confdefs.h"
6169 #include <sys/endian.h>
6170
6171 int
6172 main ()
6173 {
6174 #ifndef be32enc
6175 char *p = (char *) be32enc;
6176 #endif
6177
6178 ;
6179 return 0;
6180 }
6181 _ACEOF
6182 rm -f conftest.$ac_objext
6183 if { (eval echo "$as_me:6183: \"$ac_compile\"") >&5
6184 (eval $ac_compile) 2>&5
6185 ac_status=$?
6186 echo "$as_me:6186: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try='test -s conftest.$ac_objext'
6189 { (eval echo "$as_me:6189: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:6192: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 ac_cv_have_decl_be32enc=yes
6195 else
6196 echo "$as_me: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6198 ac_cv_have_decl_be32enc=no
6199 fi
6200 rm -f conftest.$ac_objext conftest.$ac_ext
6201 fi
6202 echo "$as_me:6202: result: $ac_cv_have_decl_be32enc" >&5
6203 echo "${ECHO_T}$ac_cv_have_decl_be32enc" >&6
6204 if test $ac_cv_have_decl_be32enc = yes; then
6205
6206 cat >>confdefs.h <<EOF
6207 #define HAVE_DECL_BE32ENC 1
6208 EOF
6209
6210 else
6211 cat >>confdefs.h <<EOF
6212 #define HAVE_DECL_BE32ENC 0
6213 EOF
6214
6215 fi
6216 echo "$as_me:6216: checking whether le32enc is declared" >&5
6217 echo $ECHO_N "checking whether le32enc is declared... $ECHO_C" >&6
6218 if test "${ac_cv_have_decl_le32enc+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221 cat >conftest.$ac_ext <<_ACEOF
6222 #line 6222 "configure"
6223 #include "confdefs.h"
6224 #include <sys/endian.h>
6225
6226 int
6227 main ()
6228 {
6229 #ifndef le32enc
6230 char *p = (char *) le32enc;
6231 #endif
6232
6233 ;
6234 return 0;
6235 }
6236 _ACEOF
6237 rm -f conftest.$ac_objext
6238 if { (eval echo "$as_me:6238: \"$ac_compile\"") >&5
6239 (eval $ac_compile) 2>&5
6240 ac_status=$?
6241 echo "$as_me:6241: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -s conftest.$ac_objext'
6244 { (eval echo "$as_me:6244: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:6247: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_cv_have_decl_le32enc=yes
6250 else
6251 echo "$as_me: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6253 ac_cv_have_decl_le32enc=no
6254 fi
6255 rm -f conftest.$ac_objext conftest.$ac_ext
6256 fi
6257 echo "$as_me:6257: result: $ac_cv_have_decl_le32enc" >&5
6258 echo "${ECHO_T}$ac_cv_have_decl_le32enc" >&6
6259 if test $ac_cv_have_decl_le32enc = yes; then
6260
6261 cat >>confdefs.h <<EOF
6262 #define HAVE_DECL_LE32ENC 1
6263 EOF
6264
6265 else
6266 cat >>confdefs.h <<EOF
6267 #define HAVE_DECL_LE32ENC 0
6268 EOF
6269
6270 fi
6271 echo "$as_me:6271: checking whether be32dec is declared" >&5
6272 echo $ECHO_N "checking whether be32dec is declared... $ECHO_C" >&6
6273 if test "${ac_cv_have_decl_be32dec+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276 cat >conftest.$ac_ext <<_ACEOF
6277 #line 6277 "configure"
6278 #include "confdefs.h"
6279 #include <sys/endian.h>
6280
6281 int
6282 main ()
6283 {
6284 #ifndef be32dec
6285 char *p = (char *) be32dec;
6286 #endif
6287
6288 ;
6289 return 0;
6290 }
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (eval echo "$as_me:6293: \"$ac_compile\"") >&5
6294 (eval $ac_compile) 2>&5
6295 ac_status=$?
6296 echo "$as_me:6296: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -s conftest.$ac_objext'
6299 { (eval echo "$as_me:6299: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:6302: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 ac_cv_have_decl_be32dec=yes
6305 else
6306 echo "$as_me: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6308 ac_cv_have_decl_be32dec=no
6309 fi
6310 rm -f conftest.$ac_objext conftest.$ac_ext
6311 fi
6312 echo "$as_me:6312: result: $ac_cv_have_decl_be32dec" >&5
6313 echo "${ECHO_T}$ac_cv_have_decl_be32dec" >&6
6314 if test $ac_cv_have_decl_be32dec = yes; then
6315
6316 cat >>confdefs.h <<EOF
6317 #define HAVE_DECL_BE32DEC 1
6318 EOF
6319
6320 else
6321 cat >>confdefs.h <<EOF
6322 #define HAVE_DECL_BE32DEC 0
6323 EOF
6324
6325 fi
6326 echo "$as_me:6326: checking whether le32dec is declared" >&5
6327 echo $ECHO_N "checking whether le32dec is declared... $ECHO_C" >&6
6328 if test "${ac_cv_have_decl_le32dec+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 cat >conftest.$ac_ext <<_ACEOF
6332 #line 6332 "configure"
6333 #include "confdefs.h"
6334 #include <sys/endian.h>
6335
6336 int
6337 main ()
6338 {
6339 #ifndef le32dec
6340 char *p = (char *) le32dec;
6341 #endif
6342
6343 ;
6344 return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext
6348 if { (eval echo "$as_me:6348: \"$ac_compile\"") >&5
6349 (eval $ac_compile) 2>&5
6350 ac_status=$?
6351 echo "$as_me:6351: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -s conftest.$ac_objext'
6354 { (eval echo "$as_me:6354: \"$ac_try\"") >&5
6355 (eval $ac_try) 2>&5
6356 ac_status=$?
6357 echo "$as_me:6357: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_have_decl_le32dec=yes
6360 else
6361 echo "$as_me: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6363 ac_cv_have_decl_le32dec=no
6364 fi
6365 rm -f conftest.$ac_objext conftest.$ac_ext
6366 fi
6367 echo "$as_me:6367: result: $ac_cv_have_decl_le32dec" >&5
6368 echo "${ECHO_T}$ac_cv_have_decl_le32dec" >&6
6369 if test $ac_cv_have_decl_le32dec = yes; then
6370
6371 cat >>confdefs.h <<EOF
6372 #define HAVE_DECL_LE32DEC 1
6373 EOF
6374
6375 else
6376 cat >>confdefs.h <<EOF
6377 #define HAVE_DECL_LE32DEC 0
6378 EOF
6379
6380 fi
6381 echo "$as_me:6381: checking whether be64enc is declared" >&5
6382 echo $ECHO_N "checking whether be64enc is declared... $ECHO_C" >&6
6383 if test "${ac_cv_have_decl_be64enc+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 cat >conftest.$ac_ext <<_ACEOF
6387 #line 6387 "configure"
6388 #include "confdefs.h"
6389 #include <sys/endian.h>
6390
6391 int
6392 main ()
6393 {
6394 #ifndef be64enc
6395 char *p = (char *) be64enc;
6396 #endif
6397
6398 ;
6399 return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (eval echo "$as_me:6403: \"$ac_compile\"") >&5
6404 (eval $ac_compile) 2>&5
6405 ac_status=$?
6406 echo "$as_me:6406: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:6409: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:6412: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_cv_have_decl_be64enc=yes
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6418 ac_cv_have_decl_be64enc=no
6419 fi
6420 rm -f conftest.$ac_objext conftest.$ac_ext
6421 fi
6422 echo "$as_me:6422: result: $ac_cv_have_decl_be64enc" >&5
6423 echo "${ECHO_T}$ac_cv_have_decl_be64enc" >&6
6424 if test $ac_cv_have_decl_be64enc = yes; then
6425
6426 cat >>confdefs.h <<EOF
6427 #define HAVE_DECL_BE64ENC 1
6428 EOF
6429
6430 else
6431 cat >>confdefs.h <<EOF
6432 #define HAVE_DECL_BE64ENC 0
6433 EOF
6434
6435 fi
6436 echo "$as_me:6436: checking whether le64enc is declared" >&5
6437 echo $ECHO_N "checking whether le64enc is declared... $ECHO_C" >&6
6438 if test "${ac_cv_have_decl_le64enc+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441 cat >conftest.$ac_ext <<_ACEOF
6442 #line 6442 "configure"
6443 #include "confdefs.h"
6444 #include <sys/endian.h>
6445
6446 int
6447 main ()
6448 {
6449 #ifndef le64enc
6450 char *p = (char *) le64enc;
6451 #endif
6452
6453 ;
6454 return 0;
6455 }
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (eval echo "$as_me:6458: \"$ac_compile\"") >&5
6459 (eval $ac_compile) 2>&5
6460 ac_status=$?
6461 echo "$as_me:6461: \$? = $ac_status" >&5
6462 (exit $ac_status); } &&
6463 { ac_try='test -s conftest.$ac_objext'
6464 { (eval echo "$as_me:6464: \"$ac_try\"") >&5
6465 (eval $ac_try) 2>&5
6466 ac_status=$?
6467 echo "$as_me:6467: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6469 ac_cv_have_decl_le64enc=yes
6470 else
6471 echo "$as_me: failed program was:" >&5
6472 cat conftest.$ac_ext >&5
6473 ac_cv_have_decl_le64enc=no
6474 fi
6475 rm -f conftest.$ac_objext conftest.$ac_ext
6476 fi
6477 echo "$as_me:6477: result: $ac_cv_have_decl_le64enc" >&5
6478 echo "${ECHO_T}$ac_cv_have_decl_le64enc" >&6
6479 if test $ac_cv_have_decl_le64enc = yes; then
6480
6481 cat >>confdefs.h <<EOF
6482 #define HAVE_DECL_LE64ENC 1
6483 EOF
6484
6485 else
6486 cat >>confdefs.h <<EOF
6487 #define HAVE_DECL_LE64ENC 0
6488 EOF
6489
6490 fi
6491 echo "$as_me:6491: checking whether be64dec is declared" >&5
6492 echo $ECHO_N "checking whether be64dec is declared... $ECHO_C" >&6
6493 if test "${ac_cv_have_decl_be64dec+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 cat >conftest.$ac_ext <<_ACEOF
6497 #line 6497 "configure"
6498 #include "confdefs.h"
6499 #include <sys/endian.h>
6500
6501 int
6502 main ()
6503 {
6504 #ifndef be64dec
6505 char *p = (char *) be64dec;
6506 #endif
6507
6508 ;
6509 return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (eval echo "$as_me:6513: \"$ac_compile\"") >&5
6514 (eval $ac_compile) 2>&5
6515 ac_status=$?
6516 echo "$as_me:6516: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -s conftest.$ac_objext'
6519 { (eval echo "$as_me:6519: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:6522: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_cv_have_decl_be64dec=yes
6525 else
6526 echo "$as_me: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6528 ac_cv_have_decl_be64dec=no
6529 fi
6530 rm -f conftest.$ac_objext conftest.$ac_ext
6531 fi
6532 echo "$as_me:6532: result: $ac_cv_have_decl_be64dec" >&5
6533 echo "${ECHO_T}$ac_cv_have_decl_be64dec" >&6
6534 if test $ac_cv_have_decl_be64dec = yes; then
6535
6536 cat >>confdefs.h <<EOF
6537 #define HAVE_DECL_BE64DEC 1
6538 EOF
6539
6540 else
6541 cat >>confdefs.h <<EOF
6542 #define HAVE_DECL_BE64DEC 0
6543 EOF
6544
6545 fi
6546 echo "$as_me:6546: checking whether le64dec is declared" >&5
6547 echo $ECHO_N "checking whether le64dec is declared... $ECHO_C" >&6
6548 if test "${ac_cv_have_decl_le64dec+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 cat >conftest.$ac_ext <<_ACEOF
6552 #line 6552 "configure"
6553 #include "confdefs.h"
6554 #include <sys/endian.h>
6555
6556 int
6557 main ()
6558 {
6559 #ifndef le64dec
6560 char *p = (char *) le64dec;
6561 #endif
6562
6563 ;
6564 return 0;
6565 }
6566 _ACEOF
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:6568: \"$ac_compile\"") >&5
6569 (eval $ac_compile) 2>&5
6570 ac_status=$?
6571 echo "$as_me:6571: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -s conftest.$ac_objext'
6574 { (eval echo "$as_me:6574: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:6577: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6579 ac_cv_have_decl_le64dec=yes
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6583 ac_cv_have_decl_le64dec=no
6584 fi
6585 rm -f conftest.$ac_objext conftest.$ac_ext
6586 fi
6587 echo "$as_me:6587: result: $ac_cv_have_decl_le64dec" >&5
6588 echo "${ECHO_T}$ac_cv_have_decl_le64dec" >&6
6589 if test $ac_cv_have_decl_le64dec = yes; then
6590
6591 cat >>confdefs.h <<EOF
6592 #define HAVE_DECL_LE64DEC 1
6593 EOF
6594
6595 else
6596 cat >>confdefs.h <<EOF
6597 #define HAVE_DECL_LE64DEC 0
6598 EOF
6599
6600 fi
6601
6602 echo "$as_me:6602: checking whether fstatvfs is declared" >&5
6603 echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6
6604 if test "${ac_cv_have_decl_fstatvfs+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607 cat >conftest.$ac_ext <<_ACEOF
6608 #line 6608 "configure"
6609 #include "confdefs.h"
6610 #include <sys/statvfs.h>
6611
6612 int
6613 main ()
6614 {
6615 #ifndef fstatvfs
6616 char *p = (char *) fstatvfs;
6617 #endif
6618
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 rm -f conftest.$ac_objext
6624 if { (eval echo "$as_me:6624: \"$ac_compile\"") >&5
6625 (eval $ac_compile) 2>&5
6626 ac_status=$?
6627 echo "$as_me:6627: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -s conftest.$ac_objext'
6630 { (eval echo "$as_me:6630: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:6633: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_cv_have_decl_fstatvfs=yes
6636 else
6637 echo "$as_me: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 ac_cv_have_decl_fstatvfs=no
6640 fi
6641 rm -f conftest.$ac_objext conftest.$ac_ext
6642 fi
6643 echo "$as_me:6643: result: $ac_cv_have_decl_fstatvfs" >&5
6644 echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6
6645 if test $ac_cv_have_decl_fstatvfs = yes; then
6646
6647 cat >>confdefs.h <<EOF
6648 #define HAVE_DECL_FSTATVFS 1
6649 EOF
6650
6651 else
6652 cat >>confdefs.h <<EOF
6653 #define HAVE_DECL_FSTATVFS 0
6654 EOF
6655
6656 fi
6657
6658 echo "$as_me:6658: checking whether setgroupent is declared" >&5
6659 echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
6660 if test "${ac_cv_have_decl_setgroupent+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 cat >conftest.$ac_ext <<_ACEOF
6664 #line 6664 "configure"
6665 #include "confdefs.h"
6666
6667 #include <sys/types.h>
6668 #include <grp.h>
6669 #include <pwd.h>
6670
6671 int
6672 main ()
6673 {
6674 #ifndef setgroupent
6675 char *p = (char *) setgroupent;
6676 #endif
6677
6678 ;
6679 return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:6683: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>&5
6685 ac_status=$?
6686 echo "$as_me:6686: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:6689: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:6692: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_cv_have_decl_setgroupent=yes
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6698 ac_cv_have_decl_setgroupent=no
6699 fi
6700 rm -f conftest.$ac_objext conftest.$ac_ext
6701 fi
6702 echo "$as_me:6702: result: $ac_cv_have_decl_setgroupent" >&5
6703 echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
6704 if test $ac_cv_have_decl_setgroupent = yes; then
6705
6706 cat >>confdefs.h <<EOF
6707 #define HAVE_DECL_SETGROUPENT 1
6708 EOF
6709
6710 else
6711 cat >>confdefs.h <<EOF
6712 #define HAVE_DECL_SETGROUPENT 0
6713 EOF
6714
6715 fi
6716 echo "$as_me:6716: checking whether setpassent is declared" >&5
6717 echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
6718 if test "${ac_cv_have_decl_setpassent+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721 cat >conftest.$ac_ext <<_ACEOF
6722 #line 6722 "configure"
6723 #include "confdefs.h"
6724
6725 #include <sys/types.h>
6726 #include <grp.h>
6727 #include <pwd.h>
6728
6729 int
6730 main ()
6731 {
6732 #ifndef setpassent
6733 char *p = (char *) setpassent;
6734 #endif
6735
6736 ;
6737 return 0;
6738 }
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (eval echo "$as_me:6741: \"$ac_compile\"") >&5
6742 (eval $ac_compile) 2>&5
6743 ac_status=$?
6744 echo "$as_me:6744: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -s conftest.$ac_objext'
6747 { (eval echo "$as_me:6747: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:6750: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_have_decl_setpassent=yes
6753 else
6754 echo "$as_me: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6756 ac_cv_have_decl_setpassent=no
6757 fi
6758 rm -f conftest.$ac_objext conftest.$ac_ext
6759 fi
6760 echo "$as_me:6760: result: $ac_cv_have_decl_setpassent" >&5
6761 echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
6762 if test $ac_cv_have_decl_setpassent = yes; then
6763
6764 cat >>confdefs.h <<EOF
6765 #define HAVE_DECL_SETPASSENT 1
6766 EOF
6767
6768 else
6769 cat >>confdefs.h <<EOF
6770 #define HAVE_DECL_SETPASSENT 0
6771 EOF
6772
6773 fi
6774
6775 # regcomp() and regexec() are also names of functions in the old V8
6776 # regexp package. To avoid them, we need to find out who has regfree().
6777
6778 echo "$as_me:6778: checking for regfree in -lregex" >&5
6779 echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
6780 if test "${ac_cv_lib_regex_regfree+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783 ac_check_lib_save_LIBS=$LIBS
6784 LIBS="-lregex $LIBS"
6785 cat >conftest.$ac_ext <<_ACEOF
6786 #line 6786 "configure"
6787 #include "confdefs.h"
6788
6789 /* Override any gcc2 internal prototype to avoid an error. */
6790 #ifdef __cplusplus
6791 extern "C"
6792 #endif
6793 /* We use char because int might match the return type of a gcc2
6794 builtin and then its argument prototype would still apply. */
6795 char regfree ();
6796 int
6797 main ()
6798 {
6799 regfree ();
6800 ;
6801 return 0;
6802 }
6803 _ACEOF
6804 rm -f conftest.$ac_objext conftest$ac_exeext
6805 if { (eval echo "$as_me:6805: \"$ac_link\"") >&5
6806 (eval $ac_link) 2>&5
6807 ac_status=$?
6808 echo "$as_me:6808: \$? = $ac_status" >&5
6809 (exit $ac_status); } &&
6810 { ac_try='test -s conftest$ac_exeext'
6811 { (eval echo "$as_me:6811: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:6814: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 ac_cv_lib_regex_regfree=yes
6817 else
6818 echo "$as_me: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6820 ac_cv_lib_regex_regfree=no
6821 fi
6822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6823 LIBS=$ac_check_lib_save_LIBS
6824 fi
6825 echo "$as_me:6825: result: $ac_cv_lib_regex_regfree" >&5
6826 echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
6827 if test $ac_cv_lib_regex_regfree = yes; then
6828 cat >>confdefs.h <<EOF
6829 #define HAVE_LIBREGEX 1
6830 EOF
6831
6832 LIBS="-lregex $LIBS"
6833
6834 fi
6835
6836 echo "$as_me:6836: checking for library containing regfree" >&5
6837 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
6838 if test "${ac_cv_search_regfree+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841 ac_func_search_save_LIBS=$LIBS
6842 ac_cv_search_regfree=no
6843 cat >conftest.$ac_ext <<_ACEOF
6844 #line 6844 "configure"
6845 #include "confdefs.h"
6846
6847 /* Override any gcc2 internal prototype to avoid an error. */
6848 #ifdef __cplusplus
6849 extern "C"
6850 #endif
6851 /* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6853 char regfree ();
6854 int
6855 main ()
6856 {
6857 regfree ();
6858 ;
6859 return 0;
6860 }
6861 _ACEOF
6862 rm -f conftest.$ac_objext conftest$ac_exeext
6863 if { (eval echo "$as_me:6863: \"$ac_link\"") >&5
6864 (eval $ac_link) 2>&5
6865 ac_status=$?
6866 echo "$as_me:6866: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
6868 { ac_try='test -s conftest$ac_exeext'
6869 { (eval echo "$as_me:6869: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:6872: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6874 ac_cv_search_regfree="none required"
6875 else
6876 echo "$as_me: failed program was:" >&5
6877 cat conftest.$ac_ext >&5
6878 fi
6879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6880 if test "$ac_cv_search_regfree" = no; then
6881 for ac_lib in rx posix; do
6882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6883 cat >conftest.$ac_ext <<_ACEOF
6884 #line 6884 "configure"
6885 #include "confdefs.h"
6886
6887 /* Override any gcc2 internal prototype to avoid an error. */
6888 #ifdef __cplusplus
6889 extern "C"
6890 #endif
6891 /* We use char because int might match the return type of a gcc2
6892 builtin and then its argument prototype would still apply. */
6893 char regfree ();
6894 int
6895 main ()
6896 {
6897 regfree ();
6898 ;
6899 return 0;
6900 }
6901 _ACEOF
6902 rm -f conftest.$ac_objext conftest$ac_exeext
6903 if { (eval echo "$as_me:6903: \"$ac_link\"") >&5
6904 (eval $ac_link) 2>&5
6905 ac_status=$?
6906 echo "$as_me:6906: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:6909: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:6912: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_search_regfree="-l$ac_lib"
6915 break
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6919 fi
6920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6921 done
6922 fi
6923 LIBS=$ac_func_search_save_LIBS
6924 fi
6925 echo "$as_me:6925: result: $ac_cv_search_regfree" >&5
6926 echo "${ECHO_T}$ac_cv_search_regfree" >&6
6927 if test "$ac_cv_search_regfree" != no; then
6928 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
6929
6930 fi
6931
6932 cat >confcache <<\_ACEOF
6933 # This file is a shell script that caches the results of configure
6934 # tests run on this system so they can be shared between configure
6935 # scripts and configure runs, see configure's option --config-cache.
6936 # It is not useful on other systems. If it contains results you don't
6937 # want to keep, you may remove or edit it.
6938 #
6939 # config.status only pays attention to the cache file if you give it
6940 # the --recheck option to rerun configure.
6941 #
6942 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6943 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6944 # following values.
6945
6946 _ACEOF
6947
6948 # The following way of writing the cache mishandles newlines in values,
6949 # but we know of no workaround that is simple, portable, and efficient.
6950 # So, don't put newlines in cache variables' values.
6951 # Ultrix sh set writes to stderr and can't be redirected directly,
6952 # and sets the high bit in the cache file unless we assign to the vars.
6953 {
6954 (set) 2>&1 |
6955 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6956 *ac_space=\ *)
6957 # `set' does not quote correctly, so add quotes (double-quote
6958 # substitution turns \\\\ into \\, and sed turns \\ into \).
6959 sed -n \
6960 "s/'/'\\\\''/g;
6961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6962 ;;
6963 *)
6964 # `set' quotes correctly as required by POSIX, so do not add quotes.
6965 sed -n \
6966 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6967 ;;
6968 esac;
6969 } |
6970 sed '
6971 t clear
6972 : clear
6973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6974 t end
6975 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6976 : end' >>confcache
6977 if cmp -s $cache_file confcache; then :; else
6978 if test -w $cache_file; then
6979 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6980 cat confcache >$cache_file
6981 else
6982 echo "not updating unwritable cache $cache_file"
6983 fi
6984 fi
6985 rm -f confcache
6986
6987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6988 # Let make expand exec_prefix.
6989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6990
6991 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6992 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6993 # trailing colons and then remove the whole line if VPATH becomes empty
6994 # (actually we leave an empty line to preserve line numbers).
6995 if test "x$srcdir" = x.; then
6996 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6997 s/:*\$(srcdir):*/:/;
6998 s/:*\${srcdir}:*/:/;
6999 s/:*@srcdir@:*/:/;
7000 s/^\([^=]*=[ ]*\):*/\1/;
7001 s/:*$//;
7002 s/^[^=]*=[ ]*$//;
7003 }'
7004 fi
7005
7006 DEFS=-DHAVE_CONFIG_H
7007
7008 : ${CONFIG_STATUS=./config.status}
7009 ac_clean_files_save=$ac_clean_files
7010 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7011 { echo "$as_me:7011: creating $CONFIG_STATUS" >&5
7012 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7013 cat >$CONFIG_STATUS <<_ACEOF
7014 #! $SHELL
7015 # Generated automatically by configure.
7016 # Run this file to recreate the current configuration.
7017 # Compiler output produced by configure, useful for debugging
7018 # configure, is in config.log if it exists.
7019
7020 debug=false
7021 SHELL=\${CONFIG_SHELL-$SHELL}
7022 ac_cs_invocation="\$0 \$@"
7023
7024 _ACEOF
7025
7026 cat >>$CONFIG_STATUS <<\_ACEOF
7027 # Be Bourne compatible
7028 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7029 emulate sh
7030 NULLCMD=:
7031 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7032 set -o posix
7033 fi
7034
7035 # Name of the executable.
7036 as_me=`echo "$0" |sed 's,.*[\\/],,'`
7037
7038 if expr a : '\(a\)' >/dev/null 2>&1; then
7039 as_expr=expr
7040 else
7041 as_expr=false
7042 fi
7043
7044 rm -f conf$$ conf$$.exe conf$$.file
7045 echo >conf$$.file
7046 if ln -s conf$$.file conf$$ 2>/dev/null; then
7047 # We could just check for DJGPP; but this test a) works b) is more generic
7048 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7049 if test -f conf$$.exe; then
7050 # Don't use ln at all; we don't have any links
7051 as_ln_s='cp -p'
7052 else
7053 as_ln_s='ln -s'
7054 fi
7055 elif ln conf$$.file conf$$ 2>/dev/null; then
7056 as_ln_s=ln
7057 else
7058 as_ln_s='cp -p'
7059 fi
7060 rm -f conf$$ conf$$.exe conf$$.file
7061
7062 as_executable_p="test -f"
7063
7064 # Support unset when possible.
7065 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7066 as_unset=unset
7067 else
7068 as_unset=false
7069 fi
7070
7071 # NLS nuisances.
7072 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7073 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7074 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7075 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7076 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7077 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7078 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7079 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7080
7081 # IFS
7082 # We need space, tab and new line, in precisely that order.
7083 as_nl='
7084 '
7085 IFS=" $as_nl"
7086
7087 # CDPATH.
7088 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7089
7090 exec 6>&1
7091
7092 _ACEOF
7093
7094 # Files that config.status was made for.
7095 if test -n "$ac_config_files"; then
7096 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7097 fi
7098
7099 if test -n "$ac_config_headers"; then
7100 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7101 fi
7102
7103 if test -n "$ac_config_links"; then
7104 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7105 fi
7106
7107 if test -n "$ac_config_commands"; then
7108 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7109 fi
7110
7111 cat >>$CONFIG_STATUS <<\EOF
7112
7113 ac_cs_usage="\
7114 \`$as_me' instantiates files from templates according to the
7115 current configuration.
7116
7117 Usage: $0 [OPTIONS] [FILE]...
7118
7119 -h, --help print this help, then exit
7120 -V, --version print version number, then exit
7121 -d, --debug don't remove temporary files
7122 --recheck update $as_me by reconfiguring in the same conditions
7123 --file=FILE[:TEMPLATE]
7124 instantiate the configuration file FILE
7125 --header=FILE[:TEMPLATE]
7126 instantiate the configuration header FILE
7127
7128 Configuration files:
7129 $config_files
7130
7131 Configuration headers:
7132 $config_headers
7133
7134 Report bugs to <bug-autoconf@gnu.org>."
7135 EOF
7136
7137 cat >>$CONFIG_STATUS <<EOF
7138 ac_cs_version="\\
7139 libnbcompat config.status noversion
7140 configured by $0, generated by GNU Autoconf 2.52,
7141 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7142
7143 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7144 Free Software Foundation, Inc.
7145 This config.status script is free software; the Free Software Foundation
7146 gives unlimited permission to copy, distribute and modify it."
7147 srcdir=$srcdir
7148 EOF
7149
7150 cat >>$CONFIG_STATUS <<\EOF
7151 # If no file are specified by the user, then we need to provide default
7152 # value. By we need to know if files were specified by the user.
7153 ac_need_defaults=:
7154 while test $# != 0
7155 do
7156 case $1 in
7157 --*=*)
7158 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7159 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7160 shift
7161 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7162 shift
7163 ;;
7164 -*);;
7165 *) # This is not an option, so the user has probably given explicit
7166 # arguments.
7167 ac_need_defaults=false;;
7168 esac
7169
7170 case $1 in
7171 # Handling of the options.
7172 EOF
7173 cat >>$CONFIG_STATUS <<EOF
7174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7175 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7176 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7177 EOF
7178 cat >>$CONFIG_STATUS <<\EOF
7179 --version | --vers* | -V )
7180 echo "$ac_cs_version"; exit 0 ;;
7181 --he | --h)
7182 # Conflict between --help and --header
7183 { { echo "$as_me:7183: error: ambiguous option: $1
7184 Try \`$0 --help' for more information." >&5
7185 echo "$as_me: error: ambiguous option: $1
7186 Try \`$0 --help' for more information." >&2;}
7187 { (exit 1); exit 1; }; };;
7188 --help | --hel | -h )
7189 echo "$ac_cs_usage"; exit 0 ;;
7190 --debug | --d* | -d )
7191 debug=: ;;
7192 --file | --fil | --fi | --f )
7193 shift
7194 CONFIG_FILES="$CONFIG_FILES $1"
7195 ac_need_defaults=false;;
7196 --header | --heade | --head | --hea )
7197 shift
7198 CONFIG_HEADERS="$CONFIG_HEADERS $1"
7199 ac_need_defaults=false;;
7200
7201 # This is an error.
7202 -*) { { echo "$as_me:7202: error: unrecognized option: $1
7203 Try \`$0 --help' for more information." >&5
7204 echo "$as_me: error: unrecognized option: $1
7205 Try \`$0 --help' for more information." >&2;}
7206 { (exit 1); exit 1; }; } ;;
7207
7208 *) ac_config_targets="$ac_config_targets $1" ;;
7209
7210 esac
7211 shift
7212 done
7213
7214 exec 5>>config.log
7215 cat >&5 << _ACEOF
7216
7217 ## ----------------------- ##
7218 ## Running config.status. ##
7219 ## ----------------------- ##
7220
7221 This file was extended by $as_me (libnbcompat noversion) 2.52, executed with
7222 CONFIG_FILES = $CONFIG_FILES
7223 CONFIG_HEADERS = $CONFIG_HEADERS
7224 CONFIG_LINKS = $CONFIG_LINKS
7225 CONFIG_COMMANDS = $CONFIG_COMMANDS
7226 > $ac_cs_invocation
7227 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7228
7229 _ACEOF
7230 EOF
7231
7232 cat >>$CONFIG_STATUS <<\EOF
7233 for ac_config_target in $ac_config_targets
7234 do
7235 case "$ac_config_target" in
7236 # Handling of arguments.
7237 "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
7238 "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
7239 *) { { echo "$as_me:7239: error: invalid argument: $ac_config_target" >&5
7240 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7241 { (exit 1); exit 1; }; };;
7242 esac
7243 done
7244
7245 # If the user did not use the arguments to specify the items to instantiate,
7246 # then the envvar interface is used. Set only those that are not.
7247 # We use the long form for the default assignment because of an extremely
7248 # bizarre bug on SunOS 4.1.3.
7249 if $ac_need_defaults; then
7250 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7251 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7252 fi
7253
7254 # Create a temporary directory, and hook for its removal unless debugging.
7255 $debug ||
7256 {
7257 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7258 trap '{ (exit 1); exit 1; }' 1 2 13 15
7259 }
7260
7261 # Create a (secure) tmp directory for tmp files.
7262 : ${TMPDIR=/tmp}
7263 {
7264 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7265 test -n "$tmp" && test -d "$tmp"
7266 } ||
7267 {
7268 tmp=$TMPDIR/cs$$-$RANDOM
7269 (umask 077 && mkdir $tmp)
7270 } ||
7271 {
7272 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7273 { (exit 1); exit 1; }
7274 }
7275
7276 EOF
7277
7278 cat >>$CONFIG_STATUS <<EOF
7279
7280 #
7281 # CONFIG_FILES section.
7282 #
7283
7284 # No need to generate the scripts if there are no CONFIG_FILES.
7285 # This happens for instance when ./config.status config.h
7286 if test -n "\$CONFIG_FILES"; then
7287 # Protect against being on the right side of a sed subst in config.status.
7288 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7289 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7290 s,@SHELL@,$SHELL,;t t
7291 s,@exec_prefix@,$exec_prefix,;t t
7292 s,@prefix@,$prefix,;t t
7293 s,@program_transform_name@,$program_transform_name,;t t
7294 s,@bindir@,$bindir,;t t
7295 s,@sbindir@,$sbindir,;t t
7296 s,@libexecdir@,$libexecdir,;t t
7297 s,@datadir@,$datadir,;t t
7298 s,@sysconfdir@,$sysconfdir,;t t
7299 s,@sharedstatedir@,$sharedstatedir,;t t
7300 s,@localstatedir@,$localstatedir,;t t
7301 s,@libdir@,$libdir,;t t
7302 s,@includedir@,$includedir,;t t
7303 s,@oldincludedir@,$oldincludedir,;t t
7304 s,@infodir@,$infodir,;t t
7305 s,@mandir@,$mandir,;t t
7306 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7307 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7308 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7309 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7310 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7311 s,@build_alias@,$build_alias,;t t
7312 s,@host_alias@,$host_alias,;t t
7313 s,@target_alias@,$target_alias,;t t
7314 s,@ECHO_C@,$ECHO_C,;t t
7315 s,@ECHO_N@,$ECHO_N,;t t
7316 s,@ECHO_T@,$ECHO_T,;t t
7317 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7318 s,@DEFS@,$DEFS,;t t
7319 s,@LIBS@,$LIBS,;t t
7320 s,@CC@,$CC,;t t
7321 s,@CFLAGS@,$CFLAGS,;t t
7322 s,@LDFLAGS@,$LDFLAGS,;t t
7323 s,@CPPFLAGS@,$CPPFLAGS,;t t
7324 s,@ac_ct_CC@,$ac_ct_CC,;t t
7325 s,@EXEEXT@,$EXEEXT,;t t
7326 s,@OBJEXT@,$OBJEXT,;t t
7327 s,@CPP@,$CPP,;t t
7328 s,@BSHELL@,$BSHELL,;t t
7329 s,@ALLOCA@,$ALLOCA,;t t
7330 CEOF
7331
7332 EOF
7333
7334 cat >>$CONFIG_STATUS <<\EOF
7335 # Split the substitutions into bite-sized pieces for seds with
7336 # small command number limits, like on Digital OSF/1 and HP-UX.
7337 ac_max_sed_lines=48
7338 ac_sed_frag=1 # Number of current file.
7339 ac_beg=1 # First line for current file.
7340 ac_end=$ac_max_sed_lines # Line after last line for current file.
7341 ac_more_lines=:
7342 ac_sed_cmds=
7343 while $ac_more_lines; do
7344 if test $ac_beg -gt 1; then
7345 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7346 else
7347 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7348 fi
7349 if test ! -s $tmp/subs.frag; then
7350 ac_more_lines=false
7351 else
7352 # The purpose of the label and of the branching condition is to
7353 # speed up the sed processing (if there are no `@' at all, there
7354 # is no need to browse any of the substitutions).
7355 # These are the two extra sed commands mentioned above.
7356 (echo ':t
7357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7358 if test -z "$ac_sed_cmds"; then
7359 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7360 else
7361 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7362 fi
7363 ac_sed_frag=`expr $ac_sed_frag + 1`
7364 ac_beg=$ac_end
7365 ac_end=`expr $ac_end + $ac_max_sed_lines`
7366 fi
7367 done
7368 if test -z "$ac_sed_cmds"; then
7369 ac_sed_cmds=cat
7370 fi
7371 fi # test -n "$CONFIG_FILES"
7372
7373 EOF
7374 cat >>$CONFIG_STATUS <<\EOF
7375 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7376 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7377 case $ac_file in
7378 - | *:- | *:-:* ) # input from stdin
7379 cat >$tmp/stdin
7380 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7382 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7383 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7384 * ) ac_file_in=$ac_file.in ;;
7385 esac
7386
7387 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7388 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7389 X"$ac_file" : 'X\(//\)[^/]' \| \
7390 X"$ac_file" : 'X\(//\)$' \| \
7391 X"$ac_file" : 'X\(/\)' \| \
7392 . : '\(.\)' 2>/dev/null ||
7393 echo X"$ac_file" |
7394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7396 /^X\(\/\/\)$/{ s//\1/; q; }
7397 /^X\(\/\).*/{ s//\1/; q; }
7398 s/.*/./; q'`
7399 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7400 { case "$ac_dir" in
7401 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7402 *) as_incr_dir=.;;
7403 esac
7404 as_dummy="$ac_dir"
7405 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7406 case $as_mkdir_dir in
7407 # Skip DOS drivespec
7408 ?:) as_incr_dir=$as_mkdir_dir ;;
7409 *)
7410 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7411 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7412 ;;
7413 esac
7414 done; }
7415
7416 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7417 # A "../" for each directory in $ac_dir_suffix.
7418 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7419 else
7420 ac_dir_suffix= ac_dots=
7421 fi
7422
7423 case $srcdir in
7424 .) ac_srcdir=.
7425 if test -z "$ac_dots"; then
7426 ac_top_srcdir=.
7427 else
7428 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7429 fi ;;
7430 [\\/]* | ?:[\\/]* )
7431 ac_srcdir=$srcdir$ac_dir_suffix;
7432 ac_top_srcdir=$srcdir ;;
7433 *) # Relative path.
7434 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7435 ac_top_srcdir=$ac_dots$srcdir ;;
7436 esac
7437
7438 if test x"$ac_file" != x-; then
7439 { echo "$as_me:7439: creating $ac_file" >&5
7440 echo "$as_me: creating $ac_file" >&6;}
7441 rm -f "$ac_file"
7442 fi
7443 # Let's still pretend it is `configure' which instantiates (i.e., don't
7444 # use $as_me), people would be surprised to read:
7445 # /* config.h. Generated automatically by config.status. */
7446 configure_input="Generated automatically from `echo $ac_file_in |
7447 sed 's,.*/,,'` by configure."
7448
7449 # First look for the input files in the build tree, otherwise in the
7450 # src tree.
7451 ac_file_inputs=`IFS=:
7452 for f in $ac_file_in; do
7453 case $f in
7454 -) echo $tmp/stdin ;;
7455 [\\/$]*)
7456 # Absolute (can't be DOS-style, as IFS=:)
7457 test -f "$f" || { { echo "$as_me:7457: error: cannot find input file: $f" >&5
7458 echo "$as_me: error: cannot find input file: $f" >&2;}
7459 { (exit 1); exit 1; }; }
7460 echo $f;;
7461 *) # Relative
7462 if test -f "$f"; then
7463 # Build tree
7464 echo $f
7465 elif test -f "$srcdir/$f"; then
7466 # Source tree
7467 echo $srcdir/$f
7468 else
7469 # /dev/null tree
7470 { { echo "$as_me:7470: error: cannot find input file: $f" >&5
7471 echo "$as_me: error: cannot find input file: $f" >&2;}
7472 { (exit 1); exit 1; }; }
7473 fi;;
7474 esac
7475 done` || { (exit 1); exit 1; }
7476 EOF
7477 cat >>$CONFIG_STATUS <<EOF
7478 sed "$ac_vpsub
7479 $extrasub
7480 EOF
7481 cat >>$CONFIG_STATUS <<\EOF
7482 :t
7483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7484 s,@configure_input@,$configure_input,;t t
7485 s,@srcdir@,$ac_srcdir,;t t
7486 s,@top_srcdir@,$ac_top_srcdir,;t t
7487 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7488 rm -f $tmp/stdin
7489 if test x"$ac_file" != x-; then
7490 mv $tmp/out $ac_file
7491 else
7492 cat $tmp/out
7493 rm -f $tmp/out
7494 fi
7495
7496 done
7497 EOF
7498 cat >>$CONFIG_STATUS <<\EOF
7499
7500 #
7501 # CONFIG_HEADER section.
7502 #
7503
7504 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7505 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7506 #
7507 # ac_d sets the value in "#define NAME VALUE" lines.
7508 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7509 ac_dB='[ ].*$,\1#\2'
7510 ac_dC=' '
7511 ac_dD=',;t'
7512 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7513 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7514 ac_uB='$,\1#\2define\3'
7515 ac_uC=' '
7516 ac_uD=',;t'
7517
7518 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7519 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7520 case $ac_file in
7521 - | *:- | *:-:* ) # input from stdin
7522 cat >$tmp/stdin
7523 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7524 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7525 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7526 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7527 * ) ac_file_in=$ac_file.in ;;
7528 esac
7529
7530 test x"$ac_file" != x- && { echo "$as_me:7530: creating $ac_file" >&5
7531 echo "$as_me: creating $ac_file" >&6;}
7532
7533 # First look for the input files in the build tree, otherwise in the
7534 # src tree.
7535 ac_file_inputs=`IFS=:
7536 for f in $ac_file_in; do
7537 case $f in
7538 -) echo $tmp/stdin ;;
7539 [\\/$]*)
7540 # Absolute (can't be DOS-style, as IFS=:)
7541 test -f "$f" || { { echo "$as_me:7541: error: cannot find input file: $f" >&5
7542 echo "$as_me: error: cannot find input file: $f" >&2;}
7543 { (exit 1); exit 1; }; }
7544 echo $f;;
7545 *) # Relative
7546 if test -f "$f"; then
7547 # Build tree
7548 echo $f
7549 elif test -f "$srcdir/$f"; then
7550 # Source tree
7551 echo $srcdir/$f
7552 else
7553 # /dev/null tree
7554 { { echo "$as_me:7554: error: cannot find input file: $f" >&5
7555 echo "$as_me: error: cannot find input file: $f" >&2;}
7556 { (exit 1); exit 1; }; }
7557 fi;;
7558 esac
7559 done` || { (exit 1); exit 1; }
7560 # Remove the trailing spaces.
7561 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7562
7563 EOF
7564
7565 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7566 # `conftest.undefs', that substitutes the proper values into
7567 # config.h.in to produce config.h. The first handles `#define'
7568 # templates, and the second `#undef' templates.
7569 # And first: Protect against being on the right side of a sed subst in
7570 # config.status. Protect against being in an unquoted here document
7571 # in config.status.
7572 rm -f conftest.defines conftest.undefs
7573 # Using a here document instead of a string reduces the quoting nightmare.
7574 # Putting comments in sed scripts is not portable.
7575 #
7576 # `end' is used to avoid that the second main sed command (meant for
7577 # 0-ary CPP macros) applies to n-ary macro definitions.
7578 # See the Autoconf documentation for `clear'.
7579 cat >confdef2sed.sed <<\EOF
7580 s/[\\&,]/\\&/g
7581 s,[\\$`],\\&,g
7582 t clear
7583 : clear
7584 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7585 t end
7586 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7587 : end
7588 EOF
7589 # If some macros were called several times there might be several times
7590 # the same #defines, which is useless. Nevertheless, we may not want to
7591 # sort them, since we want the *last* AC-DEFINE to be honored.
7592 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7593 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7594 rm -f confdef2sed.sed
7595
7596 # This sed command replaces #undef with comments. This is necessary, for
7597 # example, in the case of _POSIX_SOURCE, which is predefined and required
7598 # on some systems where configure will not decide to define it.
7599 cat >>conftest.undefs <<\EOF
7600 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7601 EOF
7602
7603 # Break up conftest.defines because some shells have a limit on the size
7604 # of here documents, and old seds have small limits too (100 cmds).
7605 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7606 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7607 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7608 echo ' :' >>$CONFIG_STATUS
7609 rm -f conftest.tail
7610 while grep . conftest.defines >/dev/null
7611 do
7612 # Write a limited-size here document to $tmp/defines.sed.
7613 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7614 # Speed up: don't consider the non `#define' lines.
7615 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7616 # Work around the forget-to-reset-the-flag bug.
7617 echo 't clr' >>$CONFIG_STATUS
7618 echo ': clr' >>$CONFIG_STATUS
7619 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7620 echo 'CEOF
7621 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7622 rm -f $tmp/in
7623 mv $tmp/out $tmp/in
7624 ' >>$CONFIG_STATUS
7625 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7626 rm -f conftest.defines
7627 mv conftest.tail conftest.defines
7628 done
7629 rm -f conftest.defines
7630 echo ' fi # egrep' >>$CONFIG_STATUS
7631 echo >>$CONFIG_STATUS
7632
7633 # Break up conftest.undefs because some shells have a limit on the size
7634 # of here documents, and old seds have small limits too (100 cmds).
7635 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7636 rm -f conftest.tail
7637 while grep . conftest.undefs >/dev/null
7638 do
7639 # Write a limited-size here document to $tmp/undefs.sed.
7640 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7641 # Speed up: don't consider the non `#undef'
7642 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7643 # Work around the forget-to-reset-the-flag bug.
7644 echo 't clr' >>$CONFIG_STATUS
7645 echo ': clr' >>$CONFIG_STATUS
7646 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7647 echo 'CEOF
7648 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7649 rm -f $tmp/in
7650 mv $tmp/out $tmp/in
7651 ' >>$CONFIG_STATUS
7652 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7653 rm -f conftest.undefs
7654 mv conftest.tail conftest.undefs
7655 done
7656 rm -f conftest.undefs
7657
7658 cat >>$CONFIG_STATUS <<\EOF
7659 # Let's still pretend it is `configure' which instantiates (i.e., don't
7660 # use $as_me), people would be surprised to read:
7661 # /* config.h. Generated automatically by config.status. */
7662 if test x"$ac_file" = x-; then
7663 echo "/* Generated automatically by configure. */" >$tmp/config.h
7664 else
7665 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7666 fi
7667 cat $tmp/in >>$tmp/config.h
7668 rm -f $tmp/in
7669 if test x"$ac_file" != x-; then
7670 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7671 { echo "$as_me:7671: $ac_file is unchanged" >&5
7672 echo "$as_me: $ac_file is unchanged" >&6;}
7673 else
7674 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7675 X"$ac_file" : 'X\(//\)[^/]' \| \
7676 X"$ac_file" : 'X\(//\)$' \| \
7677 X"$ac_file" : 'X\(/\)' \| \
7678 . : '\(.\)' 2>/dev/null ||
7679 echo X"$ac_file" |
7680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7682 /^X\(\/\/\)$/{ s//\1/; q; }
7683 /^X\(\/\).*/{ s//\1/; q; }
7684 s/.*/./; q'`
7685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7686 { case "$ac_dir" in
7687 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7688 *) as_incr_dir=.;;
7689 esac
7690 as_dummy="$ac_dir"
7691 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7692 case $as_mkdir_dir in
7693 # Skip DOS drivespec
7694 ?:) as_incr_dir=$as_mkdir_dir ;;
7695 *)
7696 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7697 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7698 ;;
7699 esac
7700 done; }
7701
7702 fi
7703 rm -f $ac_file
7704 mv $tmp/config.h $ac_file
7705 fi
7706 else
7707 cat $tmp/config.h
7708 rm -f $tmp/config.h
7709 fi
7710 done
7711 EOF
7712
7713 cat >>$CONFIG_STATUS <<\EOF
7714
7715 { (exit 0); exit 0; }
7716 EOF
7717 chmod +x $CONFIG_STATUS
7718 ac_clean_files=$ac_clean_files_save
7719
7720 # configure is writing to config.log, and then calls config.status.
7721 # config.status does its own redirection, appending to config.log.
7722 # Unfortunately, on DOS this fails, as config.log is still kept open
7723 # by configure, so config.status won't be able to write to it; its
7724 # output is simply discarded. So we exec the FD to /dev/null,
7725 # effectively closing config.log, so it can be properly (re)opened and
7726 # appended to by config.status. When coming back to configure, we
7727 # need to make the FD available again.
7728 if test "$no_create" != yes; then
7729 ac_cs_success=:
7730 exec 5>/dev/null
7731 $SHELL $CONFIG_STATUS || ac_cs_success=false
7732 exec 5>>config.log
7733 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7734 # would make configure fail if this is the last instruction.
7735 $ac_cs_success || { (exit 1); exit 1; }
7736 fi
7737
7738