configure revision 1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 for libnbcompat noversion.
4 #
5 # Report bugs to <lib-bug-people (at] netbsd.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
18
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 emulate sh
28 NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 set -o posix
31 fi
32
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
36 if expr a : '\(a\)' >/dev/null 2>&1; then
37 as_expr=expr
38 else
39 as_expr=false
40 fi
41
42 rm -f conf$$ conf$$.exe conf$$.file
43 echo >conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
49 as_ln_s='cp -p'
50 else
51 as_ln_s='ln -s'
52 fi
53 elif ln conf$$.file conf$$ 2>/dev/null; then
54 as_ln_s=ln
55 else
56 as_ln_s='cp -p'
57 fi
58 rm -f conf$$ conf$$.exe conf$$.file
59
60 as_executable_p="test -f"
61
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64 as_unset=unset
65 else
66 as_unset=false
67 fi
68
69 # NLS nuisances.
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
79 # IFS
80 # We need space, tab and new line, in precisely that order.
81 as_nl='
82 '
83 IFS=" $as_nl"
84
85 # CDPATH.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
88 # Name of the host.
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
93 exec 6>&1
94
95 #
96 # Initializations.
97 #
98 ac_default_prefix=/usr/local
99 cross_compiling=no
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete. It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : ${ac_max_here_lines=38}
108
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 # include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 # include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 # include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
145
146 # Initialize some variables set by options.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_libraries=NONE
165
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
183
184 # Identity of this package.
185 PACKAGE_NAME='libnbcompat'
186 PACKAGE_TARNAME='libnbcompat'
187 PACKAGE_VERSION='noversion'
188 PACKAGE_STRING='libnbcompat noversion'
189 PACKAGE_BUGREPORT='lib-bug-people (at] netbsd.org'
190
191 ac_prev=
192 for ac_option
193 do
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
197 ac_prev=
198 continue
199 fi
200
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203 # Accept the important Cygnus configure options, so we can diagnose typos.
204
205 case $ac_option in
206
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 ac_prev=bindir ;;
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir=$ac_optarg ;;
211
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
216
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
223
224 --config-cache | -C)
225 cache_file=config.cache ;;
226
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 ac_prev=datadir ;;
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 | --da=*)
231 datadir=$ac_optarg ;;
232
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
241
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 case $ac_option in
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 *) ac_optarg=yes ;;
252 esac
253 eval "enable_$ac_feature='$ac_optarg'" ;;
254
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
263
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
266 with_gas=yes ;;
267
268 -help | --help | --hel | --he | -h)
269 ac_init_help=long ;;
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
274
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
279
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
286
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 ac_prev=infodir ;;
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
291
292 -libdir | --libdir | --libdi | --libd)
293 ac_prev=libdir ;;
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 libdir=$ac_optarg ;;
296
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
303
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
312
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 ac_prev=mandir ;;
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 mandir=$ac_optarg ;;
317
318 -nfp | --nfp | --nf)
319 # Obsolete; use --without-fp.
320 with_fp=no ;;
321
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c)
324 no_create=yes ;;
325
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 no_recursion=yes ;;
329
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
338
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 ac_prev=prefix ;;
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 prefix=$ac_optarg ;;
343
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
350
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
357
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
374
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
377 silent=yes ;;
378
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 ac_prev=sbindir ;;
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 | --sbi=* | --sb=*)
383 sbindir=$ac_optarg ;;
384
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
388 | --sha | --sh)
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 | --sha=* | --sh=*)
394 sharedstatedir=$ac_optarg ;;
395
396 -site | --site | --sit)
397 ac_prev=site ;;
398 -site=* | --site=* | --sit=*)
399 site=$ac_optarg ;;
400
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 ac_prev=srcdir ;;
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 srcdir=$ac_optarg ;;
405
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
412
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
417
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 verbose=yes ;;
420
421 -version | --version | --versio | --versi | --vers | -V)
422 ac_init_version=: ;;
423
424 -with-* | --with-*)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 case $ac_option in
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 *) ac_optarg=yes ;;
434 esac
435 eval "with_$ac_package='$ac_optarg'" ;;
436
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
445
446 --x)
447 # Obsolete; use --with-x.
448 with_x=yes ;;
449
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
456
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
463
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
467 ;;
468
469 *=*)
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
477 export $ac_envvar ;;
478
479 *)
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485 ;;
486
487 esac
488 done
489
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
494 fi
495
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
498 do
499 eval ac_val=$`echo $ac_var`
500 case $ac_val in
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
504 esac
505 done
506
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
510 do
511 eval ac_val=$`echo $ac_var`
512 case $ac_val in
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
516 esac
517 done
518
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
521 build=$build_alias
522 host=$host_alias
523 target=$target_alias
524
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
532 cross_compiling=yes
533 fi
534 fi
535
536 ac_tool_prefix=
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539 test "$silent" = yes && exec 6>/dev/null
540
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
545 ac_prog=$0
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 srcdir=$ac_confdir
549 if test ! -r $srcdir/$ac_unique_file; then
550 srcdir=..
551 fi
552 else
553 ac_srcdir_defaulted=no
554 fi
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
559 else
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
562 fi
563 fi
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
578 ac_env_CC_value=$CC
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597
598 #
599 # Report the --help message.
600 #
601 if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
604 cat <<EOF
605 \`configure' configures libnbcompat noversion to adapt to many kinds of systems.
606
607 Usage: $0 [OPTION]... [VAR=VALUE]...
608
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE. See below for descriptions of some of the useful variables.
611
612 Defaults for the options are specified in brackets.
613
614 Configuration:
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
624
625 EOF
626
627 cat <<EOF
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
630 [$ac_default_prefix]
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 [PREFIX]
633
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
638
639 For better control, use the options below.
640
641 Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
654 EOF
655
656 cat <<\EOF
657 EOF
658 fi
659
660 if test -n "$ac_init_help"; then
661 case $ac_init_help in
662 short | recursive ) echo "Configuration of libnbcompat noversion:";;
663 esac
664 cat <<\EOF
665
666 Some influential environment variables:
667 CC C compiler command
668 CFLAGS C compiler flags
669 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
670 nonstandard directory <lib dir>
671 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
672 headers in a nonstandard directory <include dir>
673 CPP C preprocessor
674
675 Use these variables to override the choices made by `configure' or to help
676 it to find libraries and programs with nonstandard names/locations.
677
678 Report bugs to <lib-bug-people (at] netbsd.org>.
679 EOF
680 fi
681
682 if test "$ac_init_help" = "recursive"; then
683 # If there are subdirs, report their specific --help.
684 ac_popdir=`pwd`
685 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
686 cd $ac_subdir
687 # A "../" for each directory in /$ac_subdir.
688 ac_dots=`echo $ac_subdir |
689 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
690
691 case $srcdir in
692 .) # No --srcdir option. We are building in place.
693 ac_sub_srcdir=$srcdir ;;
694 [\\/]* | ?:[\\/]* ) # Absolute path.
695 ac_sub_srcdir=$srcdir/$ac_subdir ;;
696 *) # Relative path.
697 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
698 esac
699
700 # Check for guested configure; otherwise get Cygnus style configure.
701 if test -f $ac_sub_srcdir/configure.gnu; then
702 echo
703 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
704 elif test -f $ac_sub_srcdir/configure; then
705 echo
706 $SHELL $ac_sub_srcdir/configure --help=recursive
707 elif test -f $ac_sub_srcdir/configure.ac ||
708 test -f $ac_sub_srcdir/configure.in; then
709 echo
710 $ac_configure --help
711 else
712 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
713 fi
714 cd $ac_popdir
715 done
716 fi
717
718 test -n "$ac_init_help" && exit 0
719 if $ac_init_version; then
720 cat <<\EOF
721 libnbcompat configure noversion
722 generated by GNU Autoconf 2.52
723
724 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
725 Free Software Foundation, Inc.
726 This configure script is free software; the Free Software Foundation
727 gives unlimited permission to copy, distribute and modify it.
728 EOF
729 exit 0
730 fi
731 exec 5>config.log
732 cat >&5 <<EOF
733 This file contains any messages produced by compilers while
734 running configure, to aid debugging if configure makes a mistake.
735
736 It was created by libnbcompat $as_me noversion, which was
737 generated by GNU Autoconf 2.52. Invocation command line was
738
739 $ $0 $@
740
741 EOF
742 {
743 cat <<_ASUNAME
744 ## ---------- ##
745 ## Platform. ##
746 ## ---------- ##
747
748 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
749 uname -m = `(uname -m) 2>/dev/null || echo unknown`
750 uname -r = `(uname -r) 2>/dev/null || echo unknown`
751 uname -s = `(uname -s) 2>/dev/null || echo unknown`
752 uname -v = `(uname -v) 2>/dev/null || echo unknown`
753
754 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
755 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
756
757 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
758 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
759 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
760 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
761 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
762 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
763 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
764
765 PATH = $PATH
766
767 _ASUNAME
768 } >&5
769
770 cat >&5 <<EOF
771 ## ------------ ##
772 ## Core tests. ##
773 ## ------------ ##
774
775 EOF
776
777 # Keep a trace of the command line.
778 # Strip out --no-create and --no-recursion so they do not pile up.
779 # Also quote any args containing shell meta-characters.
780 ac_configure_args=
781 ac_sep=
782 for ac_arg
783 do
784 case $ac_arg in
785 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
786 | --no-cr | --no-c) ;;
787 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
788 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
789 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
790 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
791 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
792 ac_sep=" " ;;
793 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
794 ac_sep=" " ;;
795 esac
796 # Get rid of the leading space.
797 done
798
799 # When interrupted or exit'd, cleanup temporary files, and complete
800 # config.log. We remove comments because anyway the quotes in there
801 # would cause problems or look ugly.
802 trap 'exit_status=$?
803 # Save into config.log some information that might help in debugging.
804 echo >&5
805 echo "## ----------------- ##" >&5
806 echo "## Cache variables. ##" >&5
807 echo "## ----------------- ##" >&5
808 echo >&5
809 # The following way of writing the cache mishandles newlines in values,
810 {
811 (set) 2>&1 |
812 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
813 *ac_space=\ *)
814 sed -n \
815 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
817 ;;
818 *)
819 sed -n \
820 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
821 ;;
822 esac;
823 } >&5
824 sed "/^$/d" confdefs.h >conftest.log
825 if test -s conftest.log; then
826 echo >&5
827 echo "## ------------ ##" >&5
828 echo "## confdefs.h. ##" >&5
829 echo "## ------------ ##" >&5
830 echo >&5
831 cat conftest.log >&5
832 fi
833 (echo; echo) >&5
834 test "$ac_signal" != 0 &&
835 echo "$as_me: caught signal $ac_signal" >&5
836 echo "$as_me: exit $exit_status" >&5
837 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
838 exit $exit_status
839 ' 0
840 for ac_signal in 1 2 13 15; do
841 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
842 done
843 ac_signal=0
844
845 # confdefs.h avoids OS command line length limits that DEFS can exceed.
846 rm -rf conftest* confdefs.h
847 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
848 echo >confdefs.h
849
850 # Let the site file select an alternate cache file if it wants to.
851 # Prefer explicitly selected file to automatically selected ones.
852 if test -z "$CONFIG_SITE"; then
853 if test "x$prefix" != xNONE; then
854 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
855 else
856 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
857 fi
858 fi
859 for ac_site_file in $CONFIG_SITE; do
860 if test -r "$ac_site_file"; then
861 { echo "$as_me:861: loading site script $ac_site_file" >&5
862 echo "$as_me: loading site script $ac_site_file" >&6;}
863 cat "$ac_site_file" >&5
864 . "$ac_site_file"
865 fi
866 done
867
868 if test -r "$cache_file"; then
869 # Some versions of bash will fail to source /dev/null (special
870 # files actually), so we avoid doing that.
871 if test -f "$cache_file"; then
872 { echo "$as_me:872: loading cache $cache_file" >&5
873 echo "$as_me: loading cache $cache_file" >&6;}
874 case $cache_file in
875 [\\/]* | ?:[\\/]* ) . $cache_file;;
876 *) . ./$cache_file;;
877 esac
878 fi
879 else
880 { echo "$as_me:880: creating cache $cache_file" >&5
881 echo "$as_me: creating cache $cache_file" >&6;}
882 >$cache_file
883 fi
884
885 # Check that the precious variables saved in the cache have kept the same
886 # value.
887 ac_cache_corrupted=false
888 for ac_var in `(set) 2>&1 |
889 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
890 eval ac_old_set=\$ac_cv_env_${ac_var}_set
891 eval ac_new_set=\$ac_env_${ac_var}_set
892 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
893 eval ac_new_val="\$ac_env_${ac_var}_value"
894 case $ac_old_set,$ac_new_set in
895 set,)
896 { echo "$as_me:896: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
897 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
898 ac_cache_corrupted=: ;;
899 ,set)
900 { echo "$as_me:900: error: \`$ac_var' was not set in the previous run" >&5
901 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
902 ac_cache_corrupted=: ;;
903 ,);;
904 *)
905 if test "x$ac_old_val" != "x$ac_new_val"; then
906 { echo "$as_me:906: error: \`$ac_var' has changed since the previous run:" >&5
907 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
908 { echo "$as_me:908: former value: $ac_old_val" >&5
909 echo "$as_me: former value: $ac_old_val" >&2;}
910 { echo "$as_me:910: current value: $ac_new_val" >&5
911 echo "$as_me: current value: $ac_new_val" >&2;}
912 ac_cache_corrupted=:
913 fi;;
914 esac
915 # Pass precious variables to config.status. It doesn't matter if
916 # we pass some twice (in addition to the command line arguments).
917 if test "$ac_new_set" = set; then
918 case $ac_new_val in
919 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
920 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
921 ac_configure_args="$ac_configure_args '$ac_arg'"
922 ;;
923 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
924 ;;
925 esac
926 fi
927 done
928 if $ac_cache_corrupted; then
929 { echo "$as_me:929: error: changes in the environment can compromise the build" >&5
930 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
931 { { echo "$as_me:931: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
932 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
933 { (exit 1); exit 1; }; }
934 fi
935
936 ac_ext=c
937 ac_cpp='$CPP $CPPFLAGS'
938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
941
942 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
943 *c*,-n*) ECHO_N= ECHO_C='
944 ' ECHO_T=' ' ;;
945 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
946 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
947 esac
948 echo "#! $SHELL" >conftest.sh
949 echo "exit 0" >>conftest.sh
950 chmod +x conftest.sh
951 if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5
952 (PATH=".;."; conftest.sh) 2>&5
953 ac_status=$?
954 echo "$as_me:954: \$? = $ac_status" >&5
955 (exit $ac_status); }; then
956 ac_path_separator=';'
957 else
958 ac_path_separator=:
959 fi
960 PATH_SEPARATOR="$ac_path_separator"
961 rm -f conftest.sh
962
963 ac_config_headers="$ac_config_headers config.h"
964
965 ac_config_files="$ac_config_files defs.mk"
966
967 ac_ext=c
968 ac_cpp='$CPP $CPPFLAGS'
969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
972 if test -n "$ac_tool_prefix"; then
973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
974 set dummy ${ac_tool_prefix}gcc; ac_word=$2
975 echo "$as_me:975: checking for $ac_word" >&5
976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
977 if test "${ac_cv_prog_CC+set}" = set; then
978 echo $ECHO_N "(cached) $ECHO_C" >&6
979 else
980 if test -n "$CC"; then
981 ac_cv_prog_CC="$CC" # Let the user override the test.
982 else
983 ac_save_IFS=$IFS; IFS=$ac_path_separator
984 ac_dummy="$PATH"
985 for ac_dir in $ac_dummy; do
986 IFS=$ac_save_IFS
987 test -z "$ac_dir" && ac_dir=.
988 $as_executable_p "$ac_dir/$ac_word" || continue
989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
990 echo "$as_me:990: found $ac_dir/$ac_word" >&5
991 break
992 done
993
994 fi
995 fi
996 CC=$ac_cv_prog_CC
997 if test -n "$CC"; then
998 echo "$as_me:998: result: $CC" >&5
999 echo "${ECHO_T}$CC" >&6
1000 else
1001 echo "$as_me:1001: result: no" >&5
1002 echo "${ECHO_T}no" >&6
1003 fi
1004
1005 fi
1006 if test -z "$ac_cv_prog_CC"; then
1007 ac_ct_CC=$CC
1008 # Extract the first word of "gcc", so it can be a program name with args.
1009 set dummy gcc; ac_word=$2
1010 echo "$as_me:1010: checking for $ac_word" >&5
1011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1013 echo $ECHO_N "(cached) $ECHO_C" >&6
1014 else
1015 if test -n "$ac_ct_CC"; then
1016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1017 else
1018 ac_save_IFS=$IFS; IFS=$ac_path_separator
1019 ac_dummy="$PATH"
1020 for ac_dir in $ac_dummy; do
1021 IFS=$ac_save_IFS
1022 test -z "$ac_dir" && ac_dir=.
1023 $as_executable_p "$ac_dir/$ac_word" || continue
1024 ac_cv_prog_ac_ct_CC="gcc"
1025 echo "$as_me:1025: found $ac_dir/$ac_word" >&5
1026 break
1027 done
1028
1029 fi
1030 fi
1031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1032 if test -n "$ac_ct_CC"; then
1033 echo "$as_me:1033: result: $ac_ct_CC" >&5
1034 echo "${ECHO_T}$ac_ct_CC" >&6
1035 else
1036 echo "$as_me:1036: result: no" >&5
1037 echo "${ECHO_T}no" >&6
1038 fi
1039
1040 CC=$ac_ct_CC
1041 else
1042 CC="$ac_cv_prog_CC"
1043 fi
1044
1045 if test -z "$CC"; then
1046 if test -n "$ac_tool_prefix"; then
1047 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1048 set dummy ${ac_tool_prefix}cc; ac_word=$2
1049 echo "$as_me:1049: checking for $ac_word" >&5
1050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1051 if test "${ac_cv_prog_CC+set}" = set; then
1052 echo $ECHO_N "(cached) $ECHO_C" >&6
1053 else
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC="$CC" # Let the user override the test.
1056 else
1057 ac_save_IFS=$IFS; IFS=$ac_path_separator
1058 ac_dummy="$PATH"
1059 for ac_dir in $ac_dummy; do
1060 IFS=$ac_save_IFS
1061 test -z "$ac_dir" && ac_dir=.
1062 $as_executable_p "$ac_dir/$ac_word" || continue
1063 ac_cv_prog_CC="${ac_tool_prefix}cc"
1064 echo "$as_me:1064: found $ac_dir/$ac_word" >&5
1065 break
1066 done
1067
1068 fi
1069 fi
1070 CC=$ac_cv_prog_CC
1071 if test -n "$CC"; then
1072 echo "$as_me:1072: result: $CC" >&5
1073 echo "${ECHO_T}$CC" >&6
1074 else
1075 echo "$as_me:1075: result: no" >&5
1076 echo "${ECHO_T}no" >&6
1077 fi
1078
1079 fi
1080 if test -z "$ac_cv_prog_CC"; then
1081 ac_ct_CC=$CC
1082 # Extract the first word of "cc", so it can be a program name with args.
1083 set dummy cc; ac_word=$2
1084 echo "$as_me:1084: checking for $ac_word" >&5
1085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1087 echo $ECHO_N "(cached) $ECHO_C" >&6
1088 else
1089 if test -n "$ac_ct_CC"; then
1090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1091 else
1092 ac_save_IFS=$IFS; IFS=$ac_path_separator
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 IFS=$ac_save_IFS
1096 test -z "$ac_dir" && ac_dir=.
1097 $as_executable_p "$ac_dir/$ac_word" || continue
1098 ac_cv_prog_ac_ct_CC="cc"
1099 echo "$as_me:1099: found $ac_dir/$ac_word" >&5
1100 break
1101 done
1102
1103 fi
1104 fi
1105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1106 if test -n "$ac_ct_CC"; then
1107 echo "$as_me:1107: result: $ac_ct_CC" >&5
1108 echo "${ECHO_T}$ac_ct_CC" >&6
1109 else
1110 echo "$as_me:1110: result: no" >&5
1111 echo "${ECHO_T}no" >&6
1112 fi
1113
1114 CC=$ac_ct_CC
1115 else
1116 CC="$ac_cv_prog_CC"
1117 fi
1118
1119 fi
1120 if test -z "$CC"; then
1121 # Extract the first word of "cc", so it can be a program name with args.
1122 set dummy cc; ac_word=$2
1123 echo "$as_me:1123: checking for $ac_word" >&5
1124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1125 if test "${ac_cv_prog_CC+set}" = set; then
1126 echo $ECHO_N "(cached) $ECHO_C" >&6
1127 else
1128 if test -n "$CC"; then
1129 ac_cv_prog_CC="$CC" # Let the user override the test.
1130 else
1131 ac_prog_rejected=no
1132 ac_save_IFS=$IFS; IFS=$ac_path_separator
1133 ac_dummy="$PATH"
1134 for ac_dir in $ac_dummy; do
1135 IFS=$ac_save_IFS
1136 test -z "$ac_dir" && ac_dir=.
1137 $as_executable_p "$ac_dir/$ac_word" || continue
1138 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1139 ac_prog_rejected=yes
1140 continue
1141 fi
1142 ac_cv_prog_CC="cc"
1143 echo "$as_me:1143: found $ac_dir/$ac_word" >&5
1144 break
1145 done
1146
1147 if test $ac_prog_rejected = yes; then
1148 # We found a bogon in the path, so make sure we never use it.
1149 set dummy $ac_cv_prog_CC
1150 shift
1151 if test $# != 0; then
1152 # We chose a different compiler from the bogus one.
1153 # However, it has the same basename, so the bogon will be chosen
1154 # first if we set CC to just the basename; use the full file name.
1155 shift
1156 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1157 shift
1158 ac_cv_prog_CC="$@"
1159 fi
1160 fi
1161 fi
1162 fi
1163 CC=$ac_cv_prog_CC
1164 if test -n "$CC"; then
1165 echo "$as_me:1165: result: $CC" >&5
1166 echo "${ECHO_T}$CC" >&6
1167 else
1168 echo "$as_me:1168: result: no" >&5
1169 echo "${ECHO_T}no" >&6
1170 fi
1171
1172 fi
1173 if test -z "$CC"; then
1174 if test -n "$ac_tool_prefix"; then
1175 for ac_prog in cl
1176 do
1177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1179 echo "$as_me:1179: checking for $ac_word" >&5
1180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1181 if test "${ac_cv_prog_CC+set}" = set; then
1182 echo $ECHO_N "(cached) $ECHO_C" >&6
1183 else
1184 if test -n "$CC"; then
1185 ac_cv_prog_CC="$CC" # Let the user override the test.
1186 else
1187 ac_save_IFS=$IFS; IFS=$ac_path_separator
1188 ac_dummy="$PATH"
1189 for ac_dir in $ac_dummy; do
1190 IFS=$ac_save_IFS
1191 test -z "$ac_dir" && ac_dir=.
1192 $as_executable_p "$ac_dir/$ac_word" || continue
1193 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1194 echo "$as_me:1194: found $ac_dir/$ac_word" >&5
1195 break
1196 done
1197
1198 fi
1199 fi
1200 CC=$ac_cv_prog_CC
1201 if test -n "$CC"; then
1202 echo "$as_me:1202: result: $CC" >&5
1203 echo "${ECHO_T}$CC" >&6
1204 else
1205 echo "$as_me:1205: result: no" >&5
1206 echo "${ECHO_T}no" >&6
1207 fi
1208
1209 test -n "$CC" && break
1210 done
1211 fi
1212 if test -z "$CC"; then
1213 ac_ct_CC=$CC
1214 for ac_prog in cl
1215 do
1216 # Extract the first word of "$ac_prog", so it can be a program name with args.
1217 set dummy $ac_prog; ac_word=$2
1218 echo "$as_me:1218: checking for $ac_word" >&5
1219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1221 echo $ECHO_N "(cached) $ECHO_C" >&6
1222 else
1223 if test -n "$ac_ct_CC"; then
1224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1225 else
1226 ac_save_IFS=$IFS; IFS=$ac_path_separator
1227 ac_dummy="$PATH"
1228 for ac_dir in $ac_dummy; do
1229 IFS=$ac_save_IFS
1230 test -z "$ac_dir" && ac_dir=.
1231 $as_executable_p "$ac_dir/$ac_word" || continue
1232 ac_cv_prog_ac_ct_CC="$ac_prog"
1233 echo "$as_me:1233: found $ac_dir/$ac_word" >&5
1234 break
1235 done
1236
1237 fi
1238 fi
1239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1240 if test -n "$ac_ct_CC"; then
1241 echo "$as_me:1241: result: $ac_ct_CC" >&5
1242 echo "${ECHO_T}$ac_ct_CC" >&6
1243 else
1244 echo "$as_me:1244: result: no" >&5
1245 echo "${ECHO_T}no" >&6
1246 fi
1247
1248 test -n "$ac_ct_CC" && break
1249 done
1250
1251 CC=$ac_ct_CC
1252 fi
1253
1254 fi
1255
1256 test -z "$CC" && { { echo "$as_me:1256: error: no acceptable cc found in \$PATH" >&5
1257 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1258 { (exit 1); exit 1; }; }
1259
1260 # Provide some information about the compiler.
1261 echo "$as_me:1261:" \
1262 "checking for C compiler version" >&5
1263 ac_compiler=`set X $ac_compile; echo $2`
1264 { (eval echo "$as_me:1264: \"$ac_compiler --version </dev/null >&5\"") >&5
1265 (eval $ac_compiler --version </dev/null >&5) 2>&5
1266 ac_status=$?
1267 echo "$as_me:1267: \$? = $ac_status" >&5
1268 (exit $ac_status); }
1269 { (eval echo "$as_me:1269: \"$ac_compiler -v </dev/null >&5\"") >&5
1270 (eval $ac_compiler -v </dev/null >&5) 2>&5
1271 ac_status=$?
1272 echo "$as_me:1272: \$? = $ac_status" >&5
1273 (exit $ac_status); }
1274 { (eval echo "$as_me:1274: \"$ac_compiler -V </dev/null >&5\"") >&5
1275 (eval $ac_compiler -V </dev/null >&5) 2>&5
1276 ac_status=$?
1277 echo "$as_me:1277: \$? = $ac_status" >&5
1278 (exit $ac_status); }
1279
1280 cat >conftest.$ac_ext <<_ACEOF
1281 #line 1281 "configure"
1282 #include "confdefs.h"
1283
1284 int
1285 main ()
1286 {
1287
1288 ;
1289 return 0;
1290 }
1291 _ACEOF
1292 ac_clean_files_save=$ac_clean_files
1293 ac_clean_files="$ac_clean_files a.out a.exe"
1294 # Try to create an executable without -o first, disregard a.out.
1295 # It will help us diagnose broken compilers, and finding out an intuition
1296 # of exeext.
1297 echo "$as_me:1297: checking for C compiler default output" >&5
1298 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1299 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1300 if { (eval echo "$as_me:1300: \"$ac_link_default\"") >&5
1301 (eval $ac_link_default) 2>&5
1302 ac_status=$?
1303 echo "$as_me:1303: \$? = $ac_status" >&5
1304 (exit $ac_status); }; then
1305 # Find the output, starting from the most likely. This scheme is
1306 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1307 # resort.
1308 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1309 ls a.out conftest 2>/dev/null;
1310 ls a.* conftest.* 2>/dev/null`; do
1311 case $ac_file in
1312 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1313 a.out ) # We found the default executable, but exeext='' is most
1314 # certainly right.
1315 break;;
1316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1317 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1318 export ac_cv_exeext
1319 break;;
1320 * ) break;;
1321 esac
1322 done
1323 else
1324 echo "$as_me: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 { { echo "$as_me:1326: error: C compiler cannot create executables" >&5
1327 echo "$as_me: error: C compiler cannot create executables" >&2;}
1328 { (exit 77); exit 77; }; }
1329 fi
1330
1331 ac_exeext=$ac_cv_exeext
1332 echo "$as_me:1332: result: $ac_file" >&5
1333 echo "${ECHO_T}$ac_file" >&6
1334
1335 # Check the compiler produces executables we can run. If not, either
1336 # the compiler is broken, or we cross compile.
1337 echo "$as_me:1337: checking whether the C compiler works" >&5
1338 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1339 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1340 # If not cross compiling, check that we can run a simple program.
1341 if test "$cross_compiling" != yes; then
1342 if { ac_try='./$ac_file'
1343 { (eval echo "$as_me:1343: \"$ac_try\"") >&5
1344 (eval $ac_try) 2>&5
1345 ac_status=$?
1346 echo "$as_me:1346: \$? = $ac_status" >&5
1347 (exit $ac_status); }; }; then
1348 cross_compiling=no
1349 else
1350 if test "$cross_compiling" = maybe; then
1351 cross_compiling=yes
1352 else
1353 { { echo "$as_me:1353: error: cannot run C compiled programs.
1354 If you meant to cross compile, use \`--host'." >&5
1355 echo "$as_me: error: cannot run C compiled programs.
1356 If you meant to cross compile, use \`--host'." >&2;}
1357 { (exit 1); exit 1; }; }
1358 fi
1359 fi
1360 fi
1361 echo "$as_me:1361: result: yes" >&5
1362 echo "${ECHO_T}yes" >&6
1363
1364 rm -f a.out a.exe conftest$ac_cv_exeext
1365 ac_clean_files=$ac_clean_files_save
1366 # Check the compiler produces executables we can run. If not, either
1367 # the compiler is broken, or we cross compile.
1368 echo "$as_me:1368: checking whether we are cross compiling" >&5
1369 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1370 echo "$as_me:1370: result: $cross_compiling" >&5
1371 echo "${ECHO_T}$cross_compiling" >&6
1372
1373 echo "$as_me:1373: checking for executable suffix" >&5
1374 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1375 if { (eval echo "$as_me:1375: \"$ac_link\"") >&5
1376 (eval $ac_link) 2>&5
1377 ac_status=$?
1378 echo "$as_me:1378: \$? = $ac_status" >&5
1379 (exit $ac_status); }; then
1380 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1381 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1382 # work properly (i.e., refer to `conftest.exe'), while it won't with
1383 # `rm'.
1384 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1385 case $ac_file in
1386 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1387 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1388 export ac_cv_exeext
1389 break;;
1390 * ) break;;
1391 esac
1392 done
1393 else
1394 { { echo "$as_me:1394: error: cannot compute EXEEXT: cannot compile and link" >&5
1395 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1396 { (exit 1); exit 1; }; }
1397 fi
1398
1399 rm -f conftest$ac_cv_exeext
1400 echo "$as_me:1400: result: $ac_cv_exeext" >&5
1401 echo "${ECHO_T}$ac_cv_exeext" >&6
1402
1403 rm -f conftest.$ac_ext
1404 EXEEXT=$ac_cv_exeext
1405 ac_exeext=$EXEEXT
1406 echo "$as_me:1406: checking for object suffix" >&5
1407 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1408 if test "${ac_cv_objext+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 cat >conftest.$ac_ext <<_ACEOF
1412 #line 1412 "configure"
1413 #include "confdefs.h"
1414
1415 int
1416 main ()
1417 {
1418
1419 ;
1420 return 0;
1421 }
1422 _ACEOF
1423 rm -f conftest.o conftest.obj
1424 if { (eval echo "$as_me:1424: \"$ac_compile\"") >&5
1425 (eval $ac_compile) 2>&5
1426 ac_status=$?
1427 echo "$as_me:1427: \$? = $ac_status" >&5
1428 (exit $ac_status); }; then
1429 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1430 case $ac_file in
1431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1433 break;;
1434 esac
1435 done
1436 else
1437 echo "$as_me: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1439 { { echo "$as_me:1439: error: cannot compute OBJEXT: cannot compile" >&5
1440 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1441 { (exit 1); exit 1; }; }
1442 fi
1443
1444 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1445 fi
1446 echo "$as_me:1446: result: $ac_cv_objext" >&5
1447 echo "${ECHO_T}$ac_cv_objext" >&6
1448 OBJEXT=$ac_cv_objext
1449 ac_objext=$OBJEXT
1450 echo "$as_me:1450: checking whether we are using the GNU C compiler" >&5
1451 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1452 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455 cat >conftest.$ac_ext <<_ACEOF
1456 #line 1456 "configure"
1457 #include "confdefs.h"
1458
1459 int
1460 main ()
1461 {
1462 #ifndef __GNUC__
1463 choke me
1464 #endif
1465
1466 ;
1467 return 0;
1468 }
1469 _ACEOF
1470 rm -f conftest.$ac_objext
1471 if { (eval echo "$as_me:1471: \"$ac_compile\"") >&5
1472 (eval $ac_compile) 2>&5
1473 ac_status=$?
1474 echo "$as_me:1474: \$? = $ac_status" >&5
1475 (exit $ac_status); } &&
1476 { ac_try='test -s conftest.$ac_objext'
1477 { (eval echo "$as_me:1477: \"$ac_try\"") >&5
1478 (eval $ac_try) 2>&5
1479 ac_status=$?
1480 echo "$as_me:1480: \$? = $ac_status" >&5
1481 (exit $ac_status); }; }; then
1482 ac_compiler_gnu=yes
1483 else
1484 echo "$as_me: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1486 ac_compiler_gnu=no
1487 fi
1488 rm -f conftest.$ac_objext conftest.$ac_ext
1489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1490
1491 fi
1492 echo "$as_me:1492: result: $ac_cv_c_compiler_gnu" >&5
1493 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1494 GCC=`test $ac_compiler_gnu = yes && echo yes`
1495 ac_test_CFLAGS=${CFLAGS+set}
1496 ac_save_CFLAGS=$CFLAGS
1497 CFLAGS="-g"
1498 echo "$as_me:1498: checking whether $CC accepts -g" >&5
1499 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1500 if test "${ac_cv_prog_cc_g+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503 cat >conftest.$ac_ext <<_ACEOF
1504 #line 1504 "configure"
1505 #include "confdefs.h"
1506
1507 int
1508 main ()
1509 {
1510
1511 ;
1512 return 0;
1513 }
1514 _ACEOF
1515 rm -f conftest.$ac_objext
1516 if { (eval echo "$as_me:1516: \"$ac_compile\"") >&5
1517 (eval $ac_compile) 2>&5
1518 ac_status=$?
1519 echo "$as_me:1519: \$? = $ac_status" >&5
1520 (exit $ac_status); } &&
1521 { ac_try='test -s conftest.$ac_objext'
1522 { (eval echo "$as_me:1522: \"$ac_try\"") >&5
1523 (eval $ac_try) 2>&5
1524 ac_status=$?
1525 echo "$as_me:1525: \$? = $ac_status" >&5
1526 (exit $ac_status); }; }; then
1527 ac_cv_prog_cc_g=yes
1528 else
1529 echo "$as_me: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1531 ac_cv_prog_cc_g=no
1532 fi
1533 rm -f conftest.$ac_objext conftest.$ac_ext
1534 fi
1535 echo "$as_me:1535: result: $ac_cv_prog_cc_g" >&5
1536 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1537 if test "$ac_test_CFLAGS" = set; then
1538 CFLAGS=$ac_save_CFLAGS
1539 elif test $ac_cv_prog_cc_g = yes; then
1540 if test "$GCC" = yes; then
1541 CFLAGS="-g -O2"
1542 else
1543 CFLAGS="-g"
1544 fi
1545 else
1546 if test "$GCC" = yes; then
1547 CFLAGS="-O2"
1548 else
1549 CFLAGS=
1550 fi
1551 fi
1552 # Some people use a C++ compiler to compile C. Since we use `exit',
1553 # in C++ we need to declare it. In case someone uses the same compiler
1554 # for both compiling C and C++ we need to have the C++ compiler decide
1555 # the declaration of exit, since it's the most demanding environment.
1556 cat >conftest.$ac_ext <<_ACEOF
1557 #ifndef __cplusplus
1558 choke me
1559 #endif
1560 _ACEOF
1561 rm -f conftest.$ac_objext
1562 if { (eval echo "$as_me:1562: \"$ac_compile\"") >&5
1563 (eval $ac_compile) 2>&5
1564 ac_status=$?
1565 echo "$as_me:1565: \$? = $ac_status" >&5
1566 (exit $ac_status); } &&
1567 { ac_try='test -s conftest.$ac_objext'
1568 { (eval echo "$as_me:1568: \"$ac_try\"") >&5
1569 (eval $ac_try) 2>&5
1570 ac_status=$?
1571 echo "$as_me:1571: \$? = $ac_status" >&5
1572 (exit $ac_status); }; }; then
1573 for ac_declaration in \
1574 ''\
1575 '#include <stdlib.h>' \
1576 'extern "C" void std::exit (int) throw (); using std::exit;' \
1577 'extern "C" void std::exit (int); using std::exit;' \
1578 'extern "C" void exit (int) throw ();' \
1579 'extern "C" void exit (int);' \
1580 'void exit (int);'
1581 do
1582 cat >conftest.$ac_ext <<_ACEOF
1583 #line 1583 "configure"
1584 #include "confdefs.h"
1585 #include <stdlib.h>
1586 $ac_declaration
1587 int
1588 main ()
1589 {
1590 exit (42);
1591 ;
1592 return 0;
1593 }
1594 _ACEOF
1595 rm -f conftest.$ac_objext
1596 if { (eval echo "$as_me:1596: \"$ac_compile\"") >&5
1597 (eval $ac_compile) 2>&5
1598 ac_status=$?
1599 echo "$as_me:1599: \$? = $ac_status" >&5
1600 (exit $ac_status); } &&
1601 { ac_try='test -s conftest.$ac_objext'
1602 { (eval echo "$as_me:1602: \"$ac_try\"") >&5
1603 (eval $ac_try) 2>&5
1604 ac_status=$?
1605 echo "$as_me:1605: \$? = $ac_status" >&5
1606 (exit $ac_status); }; }; then
1607 :
1608 else
1609 echo "$as_me: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1611 continue
1612 fi
1613 rm -f conftest.$ac_objext conftest.$ac_ext
1614 cat >conftest.$ac_ext <<_ACEOF
1615 #line 1615 "configure"
1616 #include "confdefs.h"
1617 $ac_declaration
1618 int
1619 main ()
1620 {
1621 exit (42);
1622 ;
1623 return 0;
1624 }
1625 _ACEOF
1626 rm -f conftest.$ac_objext
1627 if { (eval echo "$as_me:1627: \"$ac_compile\"") >&5
1628 (eval $ac_compile) 2>&5
1629 ac_status=$?
1630 echo "$as_me:1630: \$? = $ac_status" >&5
1631 (exit $ac_status); } &&
1632 { ac_try='test -s conftest.$ac_objext'
1633 { (eval echo "$as_me:1633: \"$ac_try\"") >&5
1634 (eval $ac_try) 2>&5
1635 ac_status=$?
1636 echo "$as_me:1636: \$? = $ac_status" >&5
1637 (exit $ac_status); }; }; then
1638 break
1639 else
1640 echo "$as_me: failed program was:" >&5
1641 cat conftest.$ac_ext >&5
1642 fi
1643 rm -f conftest.$ac_objext conftest.$ac_ext
1644 done
1645 rm -f conftest*
1646 if test -n "$ac_declaration"; then
1647 echo '#ifdef __cplusplus' >>confdefs.h
1648 echo $ac_declaration >>confdefs.h
1649 echo '#endif' >>confdefs.h
1650 fi
1651
1652 else
1653 echo "$as_me: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1655 fi
1656 rm -f conftest.$ac_objext conftest.$ac_ext
1657 ac_ext=c
1658 ac_cpp='$CPP $CPPFLAGS'
1659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662
1663 echo "$as_me:1663: checking whether byte ordering is bigendian" >&5
1664 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
1665 if test "${ac_cv_c_bigendian+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668 ac_cv_c_bigendian=unknown
1669 # See if sys/param.h defines the BYTE_ORDER macro.
1670 cat >conftest.$ac_ext <<_ACEOF
1671 #line 1671 "configure"
1672 #include "confdefs.h"
1673 #include <sys/types.h>
1674 #include <sys/param.h>
1675
1676 int
1677 main ()
1678 {
1679 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1680 bogus endian macros
1681 #endif
1682
1683 ;
1684 return 0;
1685 }
1686 _ACEOF
1687 rm -f conftest.$ac_objext
1688 if { (eval echo "$as_me:1688: \"$ac_compile\"") >&5
1689 (eval $ac_compile) 2>&5
1690 ac_status=$?
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); } &&
1693 { ac_try='test -s conftest.$ac_objext'
1694 { (eval echo "$as_me:1694: \"$ac_try\"") >&5
1695 (eval $ac_try) 2>&5
1696 ac_status=$?
1697 echo "$as_me:1697: \$? = $ac_status" >&5
1698 (exit $ac_status); }; }; then
1699 # It does; now see whether it defined to BIG_ENDIAN or not.
1700 cat >conftest.$ac_ext <<_ACEOF
1701 #line 1701 "configure"
1702 #include "confdefs.h"
1703 #include <sys/types.h>
1704 #include <sys/param.h>
1705
1706 int
1707 main ()
1708 {
1709 #if BYTE_ORDER != BIG_ENDIAN
1710 not big endian
1711 #endif
1712
1713 ;
1714 return 0;
1715 }
1716 _ACEOF
1717 rm -f conftest.$ac_objext
1718 if { (eval echo "$as_me:1718: \"$ac_compile\"") >&5
1719 (eval $ac_compile) 2>&5
1720 ac_status=$?
1721 echo "$as_me:1721: \$? = $ac_status" >&5
1722 (exit $ac_status); } &&
1723 { ac_try='test -s conftest.$ac_objext'
1724 { (eval echo "$as_me:1724: \"$ac_try\"") >&5
1725 (eval $ac_try) 2>&5
1726 ac_status=$?
1727 echo "$as_me:1727: \$? = $ac_status" >&5
1728 (exit $ac_status); }; }; then
1729 ac_cv_c_bigendian=yes
1730 else
1731 echo "$as_me: failed program was:" >&5
1732 cat conftest.$ac_ext >&5
1733 ac_cv_c_bigendian=no
1734 fi
1735 rm -f conftest.$ac_objext conftest.$ac_ext
1736 else
1737 echo "$as_me: failed program was:" >&5
1738 cat conftest.$ac_ext >&5
1739 fi
1740 rm -f conftest.$ac_objext conftest.$ac_ext
1741 if test $ac_cv_c_bigendian = unknown; then
1742 if test "$cross_compiling" = yes; then
1743 { { echo "$as_me:1743: error: cannot run test program while cross compiling" >&5
1744 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
1745 { (exit 1); exit 1; }; }
1746 else
1747 cat >conftest.$ac_ext <<_ACEOF
1748 #line 1748 "configure"
1749 #include "confdefs.h"
1750 int
1751 main ()
1752 {
1753 /* Are we little or big endian? From Harbison&Steele. */
1754 union
1755 {
1756 long l;
1757 char c[sizeof (long)];
1758 } u;
1759 u.l = 1;
1760 exit (u.c[sizeof (long) - 1] == 1);
1761 }
1762 _ACEOF
1763 rm -f conftest$ac_exeext
1764 if { (eval echo "$as_me:1764: \"$ac_link\"") >&5
1765 (eval $ac_link) 2>&5
1766 ac_status=$?
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1769 { (eval echo "$as_me:1769: \"$ac_try\"") >&5
1770 (eval $ac_try) 2>&5
1771 ac_status=$?
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); }; }; then
1774 ac_cv_c_bigendian=no
1775 else
1776 echo "$as_me: program exited with status $ac_status" >&5
1777 echo "$as_me: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1779 ac_cv_c_bigendian=yes
1780 fi
1781 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1782 fi
1783 fi
1784 fi
1785 echo "$as_me:1785: result: $ac_cv_c_bigendian" >&5
1786 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
1787 if test $ac_cv_c_bigendian = yes; then
1788
1789 cat >>confdefs.h <<\EOF
1790 #define WORDS_BIGENDIAN 1
1791 EOF
1792
1793 fi
1794
1795 # Make sure certain required headers are available.
1796 # These are not necessarily required by the code, but they are not
1797 # currently conditionalized.
1798 ac_ext=c
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 echo "$as_me:1803: checking how to run the C preprocessor" >&5
1804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1805 # On Suns, sometimes $CPP names a directory.
1806 if test -n "$CPP" && test -d "$CPP"; then
1807 CPP=
1808 fi
1809 if test -z "$CPP"; then
1810 if test "${ac_cv_prog_CPP+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813 # Double quotes because CPP needs to be expanded
1814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1815 do
1816 ac_preproc_ok=false
1817 for ac_c_preproc_warn_flag in '' yes
1818 do
1819 # Use a header file that comes with gcc, so configuring glibc
1820 # with a fresh cross-compiler works.
1821 # On the NeXT, cc -E runs the code through the compiler's parser,
1822 # not just through cpp. "Syntax error" is here to catch this case.
1823 cat >conftest.$ac_ext <<_ACEOF
1824 #line 1824 "configure"
1825 #include "confdefs.h"
1826 #include <assert.h>
1827 Syntax error
1828 _ACEOF
1829 if { (eval echo "$as_me:1829: \"$ac_cpp conftest.$ac_ext\"") >&5
1830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1831 ac_status=$?
1832 egrep -v '^ *\+' conftest.er1 >conftest.err
1833 rm -f conftest.er1
1834 cat conftest.err >&5
1835 echo "$as_me:1835: \$? = $ac_status" >&5
1836 (exit $ac_status); } >/dev/null; then
1837 if test -s conftest.err; then
1838 ac_cpp_err=$ac_c_preproc_warn_flag
1839 else
1840 ac_cpp_err=
1841 fi
1842 else
1843 ac_cpp_err=yes
1844 fi
1845 if test -z "$ac_cpp_err"; then
1846 :
1847 else
1848 echo "$as_me: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1850 # Broken: fails on valid input.
1851 continue
1852 fi
1853 rm -f conftest.err conftest.$ac_ext
1854
1855 # OK, works on sane cases. Now check whether non-existent headers
1856 # can be detected and how.
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line 1858 "configure"
1859 #include "confdefs.h"
1860 #include <ac_nonexistent.h>
1861 _ACEOF
1862 if { (eval echo "$as_me:1862: \"$ac_cpp conftest.$ac_ext\"") >&5
1863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1864 ac_status=$?
1865 egrep -v '^ *\+' conftest.er1 >conftest.err
1866 rm -f conftest.er1
1867 cat conftest.err >&5
1868 echo "$as_me:1868: \$? = $ac_status" >&5
1869 (exit $ac_status); } >/dev/null; then
1870 if test -s conftest.err; then
1871 ac_cpp_err=$ac_c_preproc_warn_flag
1872 else
1873 ac_cpp_err=
1874 fi
1875 else
1876 ac_cpp_err=yes
1877 fi
1878 if test -z "$ac_cpp_err"; then
1879 # Broken: success on invalid input.
1880 continue
1881 else
1882 echo "$as_me: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1884 # Passes both tests.
1885 ac_preproc_ok=:
1886 break
1887 fi
1888 rm -f conftest.err conftest.$ac_ext
1889
1890 done
1891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1892 rm -f conftest.err conftest.$ac_ext
1893 if $ac_preproc_ok; then
1894 break
1895 fi
1896
1897 done
1898 ac_cv_prog_CPP=$CPP
1899
1900 fi
1901 CPP=$ac_cv_prog_CPP
1902 else
1903 ac_cv_prog_CPP=$CPP
1904 fi
1905 echo "$as_me:1905: result: $CPP" >&5
1906 echo "${ECHO_T}$CPP" >&6
1907 ac_preproc_ok=false
1908 for ac_c_preproc_warn_flag in '' yes
1909 do
1910 # Use a header file that comes with gcc, so configuring glibc
1911 # with a fresh cross-compiler works.
1912 # On the NeXT, cc -E runs the code through the compiler's parser,
1913 # not just through cpp. "Syntax error" is here to catch this case.
1914 cat >conftest.$ac_ext <<_ACEOF
1915 #line 1915 "configure"
1916 #include "confdefs.h"
1917 #include <assert.h>
1918 Syntax error
1919 _ACEOF
1920 if { (eval echo "$as_me:1920: \"$ac_cpp conftest.$ac_ext\"") >&5
1921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1922 ac_status=$?
1923 egrep -v '^ *\+' conftest.er1 >conftest.err
1924 rm -f conftest.er1
1925 cat conftest.err >&5
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit $ac_status); } >/dev/null; then
1928 if test -s conftest.err; then
1929 ac_cpp_err=$ac_c_preproc_warn_flag
1930 else
1931 ac_cpp_err=
1932 fi
1933 else
1934 ac_cpp_err=yes
1935 fi
1936 if test -z "$ac_cpp_err"; then
1937 :
1938 else
1939 echo "$as_me: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1941 # Broken: fails on valid input.
1942 continue
1943 fi
1944 rm -f conftest.err conftest.$ac_ext
1945
1946 # OK, works on sane cases. Now check whether non-existent headers
1947 # can be detected and how.
1948 cat >conftest.$ac_ext <<_ACEOF
1949 #line 1949 "configure"
1950 #include "confdefs.h"
1951 #include <ac_nonexistent.h>
1952 _ACEOF
1953 if { (eval echo "$as_me:1953: \"$ac_cpp conftest.$ac_ext\"") >&5
1954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1955 ac_status=$?
1956 egrep -v '^ *\+' conftest.er1 >conftest.err
1957 rm -f conftest.er1
1958 cat conftest.err >&5
1959 echo "$as_me:1959: \$? = $ac_status" >&5
1960 (exit $ac_status); } >/dev/null; then
1961 if test -s conftest.err; then
1962 ac_cpp_err=$ac_c_preproc_warn_flag
1963 else
1964 ac_cpp_err=
1965 fi
1966 else
1967 ac_cpp_err=yes
1968 fi
1969 if test -z "$ac_cpp_err"; then
1970 # Broken: success on invalid input.
1971 continue
1972 else
1973 echo "$as_me: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1975 # Passes both tests.
1976 ac_preproc_ok=:
1977 break
1978 fi
1979 rm -f conftest.err conftest.$ac_ext
1980
1981 done
1982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1983 rm -f conftest.err conftest.$ac_ext
1984 if $ac_preproc_ok; then
1985 :
1986 else
1987 { { echo "$as_me:1987: error: C preprocessor \"$CPP\" fails sanity check" >&5
1988 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1989 { (exit 1); exit 1; }; }
1990 fi
1991
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997
1998 for ac_header in sys/cdefs.h sys/mman.h sys/param.h sys/stat.h \
1999 sys/types.h sys/utsname.h sys/wait.h \
2000 ctype.h errno.h fcntl.h grp.h limits.h locale.h paths.h pwd.h \
2001 signal.h stdio.h stdlib.h string.h unistd.h
2002 do
2003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2004 echo "$as_me:2004: checking for $ac_header" >&5
2005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 cat >conftest.$ac_ext <<_ACEOF
2010 #line 2010 "configure"
2011 #include "confdefs.h"
2012 #include <$ac_header>
2013 _ACEOF
2014 if { (eval echo "$as_me:2014: \"$ac_cpp conftest.$ac_ext\"") >&5
2015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2016 ac_status=$?
2017 egrep -v '^ *\+' conftest.er1 >conftest.err
2018 rm -f conftest.er1
2019 cat conftest.err >&5
2020 echo "$as_me:2020: \$? = $ac_status" >&5
2021 (exit $ac_status); } >/dev/null; then
2022 if test -s conftest.err; then
2023 ac_cpp_err=$ac_c_preproc_warn_flag
2024 else
2025 ac_cpp_err=
2026 fi
2027 else
2028 ac_cpp_err=yes
2029 fi
2030 if test -z "$ac_cpp_err"; then
2031 eval "$as_ac_Header=yes"
2032 else
2033 echo "$as_me: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2035 eval "$as_ac_Header=no"
2036 fi
2037 rm -f conftest.err conftest.$ac_ext
2038 fi
2039 echo "$as_me:2039: result: `eval echo '${'$as_ac_Header'}'`" >&5
2040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2042 cat >>confdefs.h <<EOF
2043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2044 EOF
2045
2046 else
2047 { { echo "$as_me:2047: error: standard system header file not found" >&5
2048 echo "$as_me: error: standard system header file not found" >&2;}
2049 { (exit 1); exit 1; }; }
2050 fi
2051 done
2052
2053 # Find headers that may not be available.
2054
2055 for ac_header in err.h inttypes.h libgen.h stddef.h vis.h
2056 do
2057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2058 echo "$as_me:2058: checking for $ac_header" >&5
2059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063 cat >conftest.$ac_ext <<_ACEOF
2064 #line 2064 "configure"
2065 #include "confdefs.h"
2066 #include <$ac_header>
2067 _ACEOF
2068 if { (eval echo "$as_me:2068: \"$ac_cpp conftest.$ac_ext\"") >&5
2069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2070 ac_status=$?
2071 egrep -v '^ *\+' conftest.er1 >conftest.err
2072 rm -f conftest.er1
2073 cat conftest.err >&5
2074 echo "$as_me:2074: \$? = $ac_status" >&5
2075 (exit $ac_status); } >/dev/null; then
2076 if test -s conftest.err; then
2077 ac_cpp_err=$ac_c_preproc_warn_flag
2078 else
2079 ac_cpp_err=
2080 fi
2081 else
2082 ac_cpp_err=yes
2083 fi
2084 if test -z "$ac_cpp_err"; then
2085 eval "$as_ac_Header=yes"
2086 else
2087 echo "$as_me: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2089 eval "$as_ac_Header=no"
2090 fi
2091 rm -f conftest.err conftest.$ac_ext
2092 fi
2093 echo "$as_me:2093: result: `eval echo '${'$as_ac_Header'}'`" >&5
2094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2096 cat >>confdefs.h <<EOF
2097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2098 EOF
2099
2100 fi
2101 done
2102
2103 # Typedefs.
2104 echo "$as_me:2104: checking for ANSI C header files" >&5
2105 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2106 if test "${ac_cv_header_stdc+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109 cat >conftest.$ac_ext <<_ACEOF
2110 #line 2110 "configure"
2111 #include "confdefs.h"
2112 #include <stdlib.h>
2113 #include <stdarg.h>
2114 #include <string.h>
2115 #include <float.h>
2116
2117 _ACEOF
2118 if { (eval echo "$as_me:2118: \"$ac_cpp conftest.$ac_ext\"") >&5
2119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2120 ac_status=$?
2121 egrep -v '^ *\+' conftest.er1 >conftest.err
2122 rm -f conftest.er1
2123 cat conftest.err >&5
2124 echo "$as_me:2124: \$? = $ac_status" >&5
2125 (exit $ac_status); } >/dev/null; then
2126 if test -s conftest.err; then
2127 ac_cpp_err=$ac_c_preproc_warn_flag
2128 else
2129 ac_cpp_err=
2130 fi
2131 else
2132 ac_cpp_err=yes
2133 fi
2134 if test -z "$ac_cpp_err"; then
2135 ac_cv_header_stdc=yes
2136 else
2137 echo "$as_me: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2139 ac_cv_header_stdc=no
2140 fi
2141 rm -f conftest.err conftest.$ac_ext
2142
2143 if test $ac_cv_header_stdc = yes; then
2144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2145 cat >conftest.$ac_ext <<_ACEOF
2146 #line 2146 "configure"
2147 #include "confdefs.h"
2148 #include <string.h>
2149
2150 _ACEOF
2151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2152 egrep "memchr" >/dev/null 2>&1; then
2153 :
2154 else
2155 ac_cv_header_stdc=no
2156 fi
2157 rm -f conftest*
2158
2159 fi
2160
2161 if test $ac_cv_header_stdc = yes; then
2162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #line 2164 "configure"
2165 #include "confdefs.h"
2166 #include <stdlib.h>
2167
2168 _ACEOF
2169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2170 egrep "free" >/dev/null 2>&1; then
2171 :
2172 else
2173 ac_cv_header_stdc=no
2174 fi
2175 rm -f conftest*
2176
2177 fi
2178
2179 if test $ac_cv_header_stdc = yes; then
2180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2181 if test "$cross_compiling" = yes; then
2182 :
2183 else
2184 cat >conftest.$ac_ext <<_ACEOF
2185 #line 2185 "configure"
2186 #include "confdefs.h"
2187 #include <ctype.h>
2188 #if ((' ' & 0x0FF) == 0x020)
2189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2191 #else
2192 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2193 || ('j' <= (c) && (c) <= 'r') \
2194 || ('s' <= (c) && (c) <= 'z'))
2195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2196 #endif
2197
2198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2199 int
2200 main ()
2201 {
2202 int i;
2203 for (i = 0; i < 256; i++)
2204 if (XOR (islower (i), ISLOWER (i))
2205 || toupper (i) != TOUPPER (i))
2206 exit(2);
2207 exit (0);
2208 }
2209 _ACEOF
2210 rm -f conftest$ac_exeext
2211 if { (eval echo "$as_me:2211: \"$ac_link\"") >&5
2212 (eval $ac_link) 2>&5
2213 ac_status=$?
2214 echo "$as_me:2214: \$? = $ac_status" >&5
2215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2216 { (eval echo "$as_me:2216: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:2219: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 :
2222 else
2223 echo "$as_me: program exited with status $ac_status" >&5
2224 echo "$as_me: failed program was:" >&5
2225 cat conftest.$ac_ext >&5
2226 ac_cv_header_stdc=no
2227 fi
2228 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2229 fi
2230 fi
2231 fi
2232 echo "$as_me:2232: result: $ac_cv_header_stdc" >&5
2233 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2234 if test $ac_cv_header_stdc = yes; then
2235
2236 cat >>confdefs.h <<\EOF
2237 #define STDC_HEADERS 1
2238 EOF
2239
2240 fi
2241
2242 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2243
2244 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2245 inttypes.h stdint.h unistd.h
2246 do
2247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2248 echo "$as_me:2248: checking for $ac_header" >&5
2249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253 cat >conftest.$ac_ext <<_ACEOF
2254 #line 2254 "configure"
2255 #include "confdefs.h"
2256 $ac_includes_default
2257 #include <$ac_header>
2258 _ACEOF
2259 rm -f conftest.$ac_objext
2260 if { (eval echo "$as_me:2260: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>&5
2262 ac_status=$?
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -s conftest.$ac_objext'
2266 { (eval echo "$as_me:2266: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:2269: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 eval "$as_ac_Header=yes"
2272 else
2273 echo "$as_me: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2275 eval "$as_ac_Header=no"
2276 fi
2277 rm -f conftest.$ac_objext conftest.$ac_ext
2278 fi
2279 echo "$as_me:2279: result: `eval echo '${'$as_ac_Header'}'`" >&5
2280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2282 cat >>confdefs.h <<EOF
2283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2284 EOF
2285
2286 fi
2287 done
2288
2289 echo "$as_me:2289: checking for size_t" >&5
2290 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2291 if test "${ac_cv_type_size_t+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line 2295 "configure"
2296 #include "confdefs.h"
2297 $ac_includes_default
2298 int
2299 main ()
2300 {
2301 if ((size_t *) 0)
2302 return 0;
2303 if (sizeof (size_t))
2304 return 0;
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:2310: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2312 ac_status=$?
2313 echo "$as_me:2313: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -s conftest.$ac_objext'
2316 { (eval echo "$as_me:2316: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:2319: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2321 ac_cv_type_size_t=yes
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2325 ac_cv_type_size_t=no
2326 fi
2327 rm -f conftest.$ac_objext conftest.$ac_ext
2328 fi
2329 echo "$as_me:2329: result: $ac_cv_type_size_t" >&5
2330 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2331 if test $ac_cv_type_size_t = yes; then
2332 :
2333 else
2334
2335 cat >>confdefs.h <<EOF
2336 #define size_t unsigned
2337 EOF
2338
2339 fi
2340
2341 echo "$as_me:2341: checking for id_t" >&5
2342 echo $ECHO_N "checking for id_t... $ECHO_C" >&6
2343 if test "${ac_cv_type_id_t+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346 cat >conftest.$ac_ext <<_ACEOF
2347 #line 2347 "configure"
2348 #include "confdefs.h"
2349 $ac_includes_default
2350 int
2351 main ()
2352 {
2353 if ((id_t *) 0)
2354 return 0;
2355 if (sizeof (id_t))
2356 return 0;
2357 ;
2358 return 0;
2359 }
2360 _ACEOF
2361 rm -f conftest.$ac_objext
2362 if { (eval echo "$as_me:2362: \"$ac_compile\"") >&5
2363 (eval $ac_compile) 2>&5
2364 ac_status=$?
2365 echo "$as_me:2365: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:2368: \"$ac_try\"") >&5
2369 (eval $ac_try) 2>&5
2370 ac_status=$?
2371 echo "$as_me:2371: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 ac_cv_type_id_t=yes
2374 else
2375 echo "$as_me: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2377 ac_cv_type_id_t=no
2378 fi
2379 rm -f conftest.$ac_objext conftest.$ac_ext
2380 fi
2381 echo "$as_me:2381: result: $ac_cv_type_id_t" >&5
2382 echo "${ECHO_T}$ac_cv_type_id_t" >&6
2383 if test $ac_cv_type_id_t = yes; then
2384
2385 cat >>confdefs.h <<EOF
2386 #define HAVE_ID_T 1
2387 EOF
2388
2389 fi
2390
2391 # Struct members.
2392 echo "$as_me:2392: checking for struct stat.st_flags" >&5
2393 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
2394 if test "${ac_cv_member_struct_stat_st_flags+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/stat.h>
2401
2402 int
2403 main ()
2404 {
2405 static struct stat ac_aggr;
2406 if (ac_aggr.st_flags)
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 ac_cv_member_struct_stat_st_flags=yes
2425 else
2426 echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 ac_cv_member_struct_stat_st_flags=no
2429 fi
2430 rm -f conftest.$ac_objext conftest.$ac_ext
2431 fi
2432 echo "$as_me:2432: result: $ac_cv_member_struct_stat_st_flags" >&5
2433 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
2434 if test $ac_cv_member_struct_stat_st_flags = yes; then
2435
2436 cat >>confdefs.h <<EOF
2437 #define HAVE_STRUCT_STAT_ST_FLAGS 1
2438 EOF
2439
2440 fi
2441
2442 # Global variable decls.
2443 echo "$as_me:2443: checking whether sys_signame is declared" >&5
2444 echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
2445 if test "${ac_cv_have_decl_sys_signame+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #line 2449 "configure"
2450 #include "confdefs.h"
2451 #include <signal.h>
2452
2453 int
2454 main ()
2455 {
2456 #ifndef sys_signame
2457 char *p = (char *) sys_signame;
2458 #endif
2459
2460 ;
2461 return 0;
2462 }
2463 _ACEOF
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:2465: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2467 ac_status=$?
2468 echo "$as_me:2468: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:2471: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:2474: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 ac_cv_have_decl_sys_signame=yes
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 ac_cv_have_decl_sys_signame=no
2481 fi
2482 rm -f conftest.$ac_objext conftest.$ac_ext
2483 fi
2484 echo "$as_me:2484: result: $ac_cv_have_decl_sys_signame" >&5
2485 echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
2486 if test $ac_cv_have_decl_sys_signame = yes; then
2487
2488 cat >>confdefs.h <<EOF
2489 #define HAVE_DECL_SYS_SIGNAME 1
2490 EOF
2491
2492 else
2493 cat >>confdefs.h <<EOF
2494 #define HAVE_DECL_SYS_SIGNAME 0
2495 EOF
2496
2497 fi
2498
2499 # Library functions (where a .h check isn't enough).
2500 echo "$as_me:2500: checking for library containing fparseln" >&5
2501 echo $ECHO_N "checking for library containing fparseln... $ECHO_C" >&6
2502 if test "${ac_cv_search_fparseln+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505 ac_func_search_save_LIBS=$LIBS
2506 ac_cv_search_fparseln=no
2507 cat >conftest.$ac_ext <<_ACEOF
2508 #line 2508 "configure"
2509 #include "confdefs.h"
2510
2511 /* Override any gcc2 internal prototype to avoid an error. */
2512 #ifdef __cplusplus
2513 extern "C"
2514 #endif
2515 /* We use char because int might match the return type of a gcc2
2516 builtin and then its argument prototype would still apply. */
2517 char fparseln ();
2518 int
2519 main ()
2520 {
2521 fparseln ();
2522 ;
2523 return 0;
2524 }
2525 _ACEOF
2526 rm -f conftest.$ac_objext conftest$ac_exeext
2527 if { (eval echo "$as_me:2527: \"$ac_link\"") >&5
2528 (eval $ac_link) 2>&5
2529 ac_status=$?
2530 echo "$as_me:2530: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -s conftest$ac_exeext'
2533 { (eval echo "$as_me:2533: \"$ac_try\"") >&5
2534 (eval $ac_try) 2>&5
2535 ac_status=$?
2536 echo "$as_me:2536: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 ac_cv_search_fparseln="none required"
2539 else
2540 echo "$as_me: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2542 fi
2543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2544 if test "$ac_cv_search_fparseln" = no; then
2545 for ac_lib in util; do
2546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #line 2548 "configure"
2549 #include "confdefs.h"
2550
2551 /* Override any gcc2 internal prototype to avoid an error. */
2552 #ifdef __cplusplus
2553 extern "C"
2554 #endif
2555 /* We use char because int might match the return type of a gcc2
2556 builtin and then its argument prototype would still apply. */
2557 char fparseln ();
2558 int
2559 main ()
2560 {
2561 fparseln ();
2562 ;
2563 return 0;
2564 }
2565 _ACEOF
2566 rm -f conftest.$ac_objext conftest$ac_exeext
2567 if { (eval echo "$as_me:2567: \"$ac_link\"") >&5
2568 (eval $ac_link) 2>&5
2569 ac_status=$?
2570 echo "$as_me:2570: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -s conftest$ac_exeext'
2573 { (eval echo "$as_me:2573: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:2576: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 ac_cv_search_fparseln="-l$ac_lib"
2579 break
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2583 fi
2584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2585 done
2586 fi
2587 LIBS=$ac_func_search_save_LIBS
2588 fi
2589 echo "$as_me:2589: result: $ac_cv_search_fparseln" >&5
2590 echo "${ECHO_T}$ac_cv_search_fparseln" >&6
2591 if test "$ac_cv_search_fparseln" != no; then
2592 test "$ac_cv_search_fparseln" = "none required" || LIBS="$ac_cv_search_fparseln $LIBS"
2593
2594 fi
2595
2596 for ac_func in basename dirname fgetln flock fparseln futimes \
2597 pread pwcache_userdb pwrite setprogname strlcat strlcpy
2598 do
2599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2600 echo "$as_me:2600: checking for $ac_func" >&5
2601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2602 if eval "test \"\${$as_ac_var+set}\" = set"; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605 cat >conftest.$ac_ext <<_ACEOF
2606 #line 2606 "configure"
2607 #include "confdefs.h"
2608 /* System header to define __stub macros and hopefully few prototypes,
2609 which can conflict with char $ac_func (); below. */
2610 #include <assert.h>
2611 /* Override any gcc2 internal prototype to avoid an error. */
2612 #ifdef __cplusplus
2613 extern "C"
2614 #endif
2615 /* We use char because int might match the return type of a gcc2
2616 builtin and then its argument prototype would still apply. */
2617 char $ac_func ();
2618 char (*f) ();
2619
2620 int
2621 main ()
2622 {
2623 /* The GNU C library defines this for functions which it implements
2624 to always fail with ENOSYS. Some functions are actually named
2625 something starting with __ and the normal name is an alias. */
2626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2627 choke me
2628 #else
2629 f = $ac_func;
2630 #endif
2631
2632 ;
2633 return 0;
2634 }
2635 _ACEOF
2636 rm -f conftest.$ac_objext conftest$ac_exeext
2637 if { (eval echo "$as_me:2637: \"$ac_link\"") >&5
2638 (eval $ac_link) 2>&5
2639 ac_status=$?
2640 echo "$as_me:2640: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try='test -s conftest$ac_exeext'
2643 { (eval echo "$as_me:2643: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:2646: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 eval "$as_ac_var=yes"
2649 else
2650 echo "$as_me: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2652 eval "$as_ac_var=no"
2653 fi
2654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2655 fi
2656 echo "$as_me:2656: result: `eval echo '${'$as_ac_var'}'`" >&5
2657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2658 if test `eval echo '${'$as_ac_var'}'` = yes; then
2659 cat >>confdefs.h <<EOF
2660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2661 EOF
2662
2663 fi
2664 done
2665
2666 # regcomp() and regexec() are also names of functions in the old V8
2667 # regexp package. To avoid them, we need to find out who has regfree().
2668
2669 echo "$as_me:2669: checking for regfree in -lregex" >&5
2670 echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
2671 if test "${ac_cv_lib_regex_regfree+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 ac_check_lib_save_LIBS=$LIBS
2675 LIBS="-lregex $LIBS"
2676 cat >conftest.$ac_ext <<_ACEOF
2677 #line 2677 "configure"
2678 #include "confdefs.h"
2679
2680 /* Override any gcc2 internal prototype to avoid an error. */
2681 #ifdef __cplusplus
2682 extern "C"
2683 #endif
2684 /* We use char because int might match the return type of a gcc2
2685 builtin and then its argument prototype would still apply. */
2686 char regfree ();
2687 int
2688 main ()
2689 {
2690 regfree ();
2691 ;
2692 return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext conftest$ac_exeext
2696 if { (eval echo "$as_me:2696: \"$ac_link\"") >&5
2697 (eval $ac_link) 2>&5
2698 ac_status=$?
2699 echo "$as_me:2699: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -s conftest$ac_exeext'
2702 { (eval echo "$as_me:2702: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:2705: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 ac_cv_lib_regex_regfree=yes
2708 else
2709 echo "$as_me: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2711 ac_cv_lib_regex_regfree=no
2712 fi
2713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2714 LIBS=$ac_check_lib_save_LIBS
2715 fi
2716 echo "$as_me:2716: result: $ac_cv_lib_regex_regfree" >&5
2717 echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
2718 if test $ac_cv_lib_regex_regfree = yes; then
2719 cat >>confdefs.h <<EOF
2720 #define HAVE_LIBREGEX 1
2721 EOF
2722
2723 LIBS="-lregex $LIBS"
2724
2725 fi
2726
2727 echo "$as_me:2727: checking for library containing regfree" >&5
2728 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
2729 if test "${ac_cv_search_regfree+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732 ac_func_search_save_LIBS=$LIBS
2733 ac_cv_search_regfree=no
2734 cat >conftest.$ac_ext <<_ACEOF
2735 #line 2735 "configure"
2736 #include "confdefs.h"
2737
2738 /* Override any gcc2 internal prototype to avoid an error. */
2739 #ifdef __cplusplus
2740 extern "C"
2741 #endif
2742 /* We use char because int might match the return type of a gcc2
2743 builtin and then its argument prototype would still apply. */
2744 char regfree ();
2745 int
2746 main ()
2747 {
2748 regfree ();
2749 ;
2750 return 0;
2751 }
2752 _ACEOF
2753 rm -f conftest.$ac_objext conftest$ac_exeext
2754 if { (eval echo "$as_me:2754: \"$ac_link\"") >&5
2755 (eval $ac_link) 2>&5
2756 ac_status=$?
2757 echo "$as_me:2757: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -s conftest$ac_exeext'
2760 { (eval echo "$as_me:2760: \"$ac_try\"") >&5
2761 (eval $ac_try) 2>&5
2762 ac_status=$?
2763 echo "$as_me:2763: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 ac_cv_search_regfree="none required"
2766 else
2767 echo "$as_me: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 fi
2770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2771 if test "$ac_cv_search_regfree" = no; then
2772 for ac_lib in rx posix; do
2773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2774 cat >conftest.$ac_ext <<_ACEOF
2775 #line 2775 "configure"
2776 #include "confdefs.h"
2777
2778 /* Override any gcc2 internal prototype to avoid an error. */
2779 #ifdef __cplusplus
2780 extern "C"
2781 #endif
2782 /* We use char because int might match the return type of a gcc2
2783 builtin and then its argument prototype would still apply. */
2784 char regfree ();
2785 int
2786 main ()
2787 {
2788 regfree ();
2789 ;
2790 return 0;
2791 }
2792 _ACEOF
2793 rm -f conftest.$ac_objext conftest$ac_exeext
2794 if { (eval echo "$as_me:2794: \"$ac_link\"") >&5
2795 (eval $ac_link) 2>&5
2796 ac_status=$?
2797 echo "$as_me:2797: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 { ac_try='test -s conftest$ac_exeext'
2800 { (eval echo "$as_me:2800: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:2803: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 ac_cv_search_regfree="-l$ac_lib"
2806 break
2807 else
2808 echo "$as_me: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2810 fi
2811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2812 done
2813 fi
2814 LIBS=$ac_func_search_save_LIBS
2815 fi
2816 echo "$as_me:2816: result: $ac_cv_search_regfree" >&5
2817 echo "${ECHO_T}$ac_cv_search_regfree" >&6
2818 if test "$ac_cv_search_regfree" != no; then
2819 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
2820
2821 fi
2822
2823 cat >confcache <<\_ACEOF
2824 # This file is a shell script that caches the results of configure
2825 # tests run on this system so they can be shared between configure
2826 # scripts and configure runs, see configure's option --config-cache.
2827 # It is not useful on other systems. If it contains results you don't
2828 # want to keep, you may remove or edit it.
2829 #
2830 # config.status only pays attention to the cache file if you give it
2831 # the --recheck option to rerun configure.
2832 #
2833 # `ac_cv_env_foo' variables (set or unset) will be overriden when
2834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2835 # following values.
2836
2837 _ACEOF
2838
2839 # The following way of writing the cache mishandles newlines in values,
2840 # but we know of no workaround that is simple, portable, and efficient.
2841 # So, don't put newlines in cache variables' values.
2842 # Ultrix sh set writes to stderr and can't be redirected directly,
2843 # and sets the high bit in the cache file unless we assign to the vars.
2844 {
2845 (set) 2>&1 |
2846 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2847 *ac_space=\ *)
2848 # `set' does not quote correctly, so add quotes (double-quote
2849 # substitution turns \\\\ into \\, and sed turns \\ into \).
2850 sed -n \
2851 "s/'/'\\\\''/g;
2852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2853 ;;
2854 *)
2855 # `set' quotes correctly as required by POSIX, so do not add quotes.
2856 sed -n \
2857 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2858 ;;
2859 esac;
2860 } |
2861 sed '
2862 t clear
2863 : clear
2864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2865 t end
2866 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2867 : end' >>confcache
2868 if cmp -s $cache_file confcache; then :; else
2869 if test -w $cache_file; then
2870 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2871 cat confcache >$cache_file
2872 else
2873 echo "not updating unwritable cache $cache_file"
2874 fi
2875 fi
2876 rm -f confcache
2877
2878 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2879 # Let make expand exec_prefix.
2880 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2881
2882 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2883 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2884 # trailing colons and then remove the whole line if VPATH becomes empty
2885 # (actually we leave an empty line to preserve line numbers).
2886 if test "x$srcdir" = x.; then
2887 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2888 s/:*\$(srcdir):*/:/;
2889 s/:*\${srcdir}:*/:/;
2890 s/:*@srcdir@:*/:/;
2891 s/^\([^=]*=[ ]*\):*/\1/;
2892 s/:*$//;
2893 s/^[^=]*=[ ]*$//;
2894 }'
2895 fi
2896
2897 DEFS=-DHAVE_CONFIG_H
2898
2899 : ${CONFIG_STATUS=./config.status}
2900 ac_clean_files_save=$ac_clean_files
2901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2902 { echo "$as_me:2902: creating $CONFIG_STATUS" >&5
2903 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2904 cat >$CONFIG_STATUS <<_ACEOF
2905 #! $SHELL
2906 # Generated automatically by configure.
2907 # Run this file to recreate the current configuration.
2908 # Compiler output produced by configure, useful for debugging
2909 # configure, is in config.log if it exists.
2910
2911 debug=false
2912 SHELL=\${CONFIG_SHELL-$SHELL}
2913 ac_cs_invocation="\$0 \$@"
2914
2915 _ACEOF
2916
2917 cat >>$CONFIG_STATUS <<\_ACEOF
2918 # Be Bourne compatible
2919 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2920 emulate sh
2921 NULLCMD=:
2922 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2923 set -o posix
2924 fi
2925
2926 # Name of the executable.
2927 as_me=`echo "$0" |sed 's,.*[\\/],,'`
2928
2929 if expr a : '\(a\)' >/dev/null 2>&1; then
2930 as_expr=expr
2931 else
2932 as_expr=false
2933 fi
2934
2935 rm -f conf$$ conf$$.exe conf$$.file
2936 echo >conf$$.file
2937 if ln -s conf$$.file conf$$ 2>/dev/null; then
2938 # We could just check for DJGPP; but this test a) works b) is more generic
2939 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2940 if test -f conf$$.exe; then
2941 # Don't use ln at all; we don't have any links
2942 as_ln_s='cp -p'
2943 else
2944 as_ln_s='ln -s'
2945 fi
2946 elif ln conf$$.file conf$$ 2>/dev/null; then
2947 as_ln_s=ln
2948 else
2949 as_ln_s='cp -p'
2950 fi
2951 rm -f conf$$ conf$$.exe conf$$.file
2952
2953 as_executable_p="test -f"
2954
2955 # Support unset when possible.
2956 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
2957 as_unset=unset
2958 else
2959 as_unset=false
2960 fi
2961
2962 # NLS nuisances.
2963 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
2964 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
2965 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
2966 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
2967 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
2968 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
2969 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
2970 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
2971
2972 # IFS
2973 # We need space, tab and new line, in precisely that order.
2974 as_nl='
2975 '
2976 IFS=" $as_nl"
2977
2978 # CDPATH.
2979 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
2980
2981 exec 6>&1
2982
2983 _ACEOF
2984
2985 # Files that config.status was made for.
2986 if test -n "$ac_config_files"; then
2987 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2988 fi
2989
2990 if test -n "$ac_config_headers"; then
2991 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2992 fi
2993
2994 if test -n "$ac_config_links"; then
2995 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2996 fi
2997
2998 if test -n "$ac_config_commands"; then
2999 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3000 fi
3001
3002 cat >>$CONFIG_STATUS <<\EOF
3003
3004 ac_cs_usage="\
3005 \`$as_me' instantiates files from templates according to the
3006 current configuration.
3007
3008 Usage: $0 [OPTIONS] [FILE]...
3009
3010 -h, --help print this help, then exit
3011 -V, --version print version number, then exit
3012 -d, --debug don't remove temporary files
3013 --recheck update $as_me by reconfiguring in the same conditions
3014 --file=FILE[:TEMPLATE]
3015 instantiate the configuration file FILE
3016 --header=FILE[:TEMPLATE]
3017 instantiate the configuration header FILE
3018
3019 Configuration files:
3020 $config_files
3021
3022 Configuration headers:
3023 $config_headers
3024
3025 Report bugs to <bug-autoconf@gnu.org>."
3026 EOF
3027
3028 cat >>$CONFIG_STATUS <<EOF
3029 ac_cs_version="\\
3030 libnbcompat config.status noversion
3031 configured by $0, generated by GNU Autoconf 2.52,
3032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3033
3034 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3035 Free Software Foundation, Inc.
3036 This config.status script is free software; the Free Software Foundation
3037 gives unlimited permission to copy, distribute and modify it."
3038 srcdir=$srcdir
3039 EOF
3040
3041 cat >>$CONFIG_STATUS <<\EOF
3042 # If no file are specified by the user, then we need to provide default
3043 # value. By we need to know if files were specified by the user.
3044 ac_need_defaults=:
3045 while test $# != 0
3046 do
3047 case $1 in
3048 --*=*)
3049 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3050 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3051 shift
3052 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3053 shift
3054 ;;
3055 -*);;
3056 *) # This is not an option, so the user has probably given explicit
3057 # arguments.
3058 ac_need_defaults=false;;
3059 esac
3060
3061 case $1 in
3062 # Handling of the options.
3063 EOF
3064 cat >>$CONFIG_STATUS <<EOF
3065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3066 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3067 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3068 EOF
3069 cat >>$CONFIG_STATUS <<\EOF
3070 --version | --vers* | -V )
3071 echo "$ac_cs_version"; exit 0 ;;
3072 --he | --h)
3073 # Conflict between --help and --header
3074 { { echo "$as_me:3074: error: ambiguous option: $1
3075 Try \`$0 --help' for more information." >&5
3076 echo "$as_me: error: ambiguous option: $1
3077 Try \`$0 --help' for more information." >&2;}
3078 { (exit 1); exit 1; }; };;
3079 --help | --hel | -h )
3080 echo "$ac_cs_usage"; exit 0 ;;
3081 --debug | --d* | -d )
3082 debug=: ;;
3083 --file | --fil | --fi | --f )
3084 shift
3085 CONFIG_FILES="$CONFIG_FILES $1"
3086 ac_need_defaults=false;;
3087 --header | --heade | --head | --hea )
3088 shift
3089 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3090 ac_need_defaults=false;;
3091
3092 # This is an error.
3093 -*) { { echo "$as_me:3093: error: unrecognized option: $1
3094 Try \`$0 --help' for more information." >&5
3095 echo "$as_me: error: unrecognized option: $1
3096 Try \`$0 --help' for more information." >&2;}
3097 { (exit 1); exit 1; }; } ;;
3098
3099 *) ac_config_targets="$ac_config_targets $1" ;;
3100
3101 esac
3102 shift
3103 done
3104
3105 exec 5>>config.log
3106 cat >&5 << _ACEOF
3107
3108 ## ----------------------- ##
3109 ## Running config.status. ##
3110 ## ----------------------- ##
3111
3112 This file was extended by $as_me (libnbcompat noversion) 2.52, executed with
3113 CONFIG_FILES = $CONFIG_FILES
3114 CONFIG_HEADERS = $CONFIG_HEADERS
3115 CONFIG_LINKS = $CONFIG_LINKS
3116 CONFIG_COMMANDS = $CONFIG_COMMANDS
3117 > $ac_cs_invocation
3118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3119
3120 _ACEOF
3121 EOF
3122
3123 cat >>$CONFIG_STATUS <<\EOF
3124 for ac_config_target in $ac_config_targets
3125 do
3126 case "$ac_config_target" in
3127 # Handling of arguments.
3128 "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
3129 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3130 *) { { echo "$as_me:3130: error: invalid argument: $ac_config_target" >&5
3131 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3132 { (exit 1); exit 1; }; };;
3133 esac
3134 done
3135
3136 # If the user did not use the arguments to specify the items to instantiate,
3137 # then the envvar interface is used. Set only those that are not.
3138 # We use the long form for the default assignment because of an extremely
3139 # bizarre bug on SunOS 4.1.3.
3140 if $ac_need_defaults; then
3141 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3142 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3143 fi
3144
3145 # Create a temporary directory, and hook for its removal unless debugging.
3146 $debug ||
3147 {
3148 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3149 trap '{ (exit 1); exit 1; }' 1 2 13 15
3150 }
3151
3152 # Create a (secure) tmp directory for tmp files.
3153 : ${TMPDIR=/tmp}
3154 {
3155 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3156 test -n "$tmp" && test -d "$tmp"
3157 } ||
3158 {
3159 tmp=$TMPDIR/cs$$-$RANDOM
3160 (umask 077 && mkdir $tmp)
3161 } ||
3162 {
3163 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3164 { (exit 1); exit 1; }
3165 }
3166
3167 EOF
3168
3169 cat >>$CONFIG_STATUS <<EOF
3170
3171 #
3172 # CONFIG_FILES section.
3173 #
3174
3175 # No need to generate the scripts if there are no CONFIG_FILES.
3176 # This happens for instance when ./config.status config.h
3177 if test -n "\$CONFIG_FILES"; then
3178 # Protect against being on the right side of a sed subst in config.status.
3179 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3180 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3181 s,@SHELL@,$SHELL,;t t
3182 s,@exec_prefix@,$exec_prefix,;t t
3183 s,@prefix@,$prefix,;t t
3184 s,@program_transform_name@,$program_transform_name,;t t
3185 s,@bindir@,$bindir,;t t
3186 s,@sbindir@,$sbindir,;t t
3187 s,@libexecdir@,$libexecdir,;t t
3188 s,@datadir@,$datadir,;t t
3189 s,@sysconfdir@,$sysconfdir,;t t
3190 s,@sharedstatedir@,$sharedstatedir,;t t
3191 s,@localstatedir@,$localstatedir,;t t
3192 s,@libdir@,$libdir,;t t
3193 s,@includedir@,$includedir,;t t
3194 s,@oldincludedir@,$oldincludedir,;t t
3195 s,@infodir@,$infodir,;t t
3196 s,@mandir@,$mandir,;t t
3197 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3198 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3199 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3200 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3201 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3202 s,@build_alias@,$build_alias,;t t
3203 s,@host_alias@,$host_alias,;t t
3204 s,@target_alias@,$target_alias,;t t
3205 s,@ECHO_C@,$ECHO_C,;t t
3206 s,@ECHO_N@,$ECHO_N,;t t
3207 s,@ECHO_T@,$ECHO_T,;t t
3208 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3209 s,@DEFS@,$DEFS,;t t
3210 s,@LIBS@,$LIBS,;t t
3211 s,@CC@,$CC,;t t
3212 s,@CFLAGS@,$CFLAGS,;t t
3213 s,@LDFLAGS@,$LDFLAGS,;t t
3214 s,@CPPFLAGS@,$CPPFLAGS,;t t
3215 s,@ac_ct_CC@,$ac_ct_CC,;t t
3216 s,@EXEEXT@,$EXEEXT,;t t
3217 s,@OBJEXT@,$OBJEXT,;t t
3218 s,@CPP@,$CPP,;t t
3219 CEOF
3220
3221 EOF
3222
3223 cat >>$CONFIG_STATUS <<\EOF
3224 # Split the substitutions into bite-sized pieces for seds with
3225 # small command number limits, like on Digital OSF/1 and HP-UX.
3226 ac_max_sed_lines=48
3227 ac_sed_frag=1 # Number of current file.
3228 ac_beg=1 # First line for current file.
3229 ac_end=$ac_max_sed_lines # Line after last line for current file.
3230 ac_more_lines=:
3231 ac_sed_cmds=
3232 while $ac_more_lines; do
3233 if test $ac_beg -gt 1; then
3234 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3235 else
3236 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3237 fi
3238 if test ! -s $tmp/subs.frag; then
3239 ac_more_lines=false
3240 else
3241 # The purpose of the label and of the branching condition is to
3242 # speed up the sed processing (if there are no `@' at all, there
3243 # is no need to browse any of the substitutions).
3244 # These are the two extra sed commands mentioned above.
3245 (echo ':t
3246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3247 if test -z "$ac_sed_cmds"; then
3248 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3249 else
3250 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3251 fi
3252 ac_sed_frag=`expr $ac_sed_frag + 1`
3253 ac_beg=$ac_end
3254 ac_end=`expr $ac_end + $ac_max_sed_lines`
3255 fi
3256 done
3257 if test -z "$ac_sed_cmds"; then
3258 ac_sed_cmds=cat
3259 fi
3260 fi # test -n "$CONFIG_FILES"
3261
3262 EOF
3263 cat >>$CONFIG_STATUS <<\EOF
3264 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3265 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3266 case $ac_file in
3267 - | *:- | *:-:* ) # input from stdin
3268 cat >$tmp/stdin
3269 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3270 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3271 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3272 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3273 * ) ac_file_in=$ac_file.in ;;
3274 esac
3275
3276 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3277 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3278 X"$ac_file" : 'X\(//\)[^/]' \| \
3279 X"$ac_file" : 'X\(//\)$' \| \
3280 X"$ac_file" : 'X\(/\)' \| \
3281 . : '\(.\)' 2>/dev/null ||
3282 echo X"$ac_file" |
3283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3285 /^X\(\/\/\)$/{ s//\1/; q; }
3286 /^X\(\/\).*/{ s//\1/; q; }
3287 s/.*/./; q'`
3288 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3289 { case "$ac_dir" in
3290 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3291 *) as_incr_dir=.;;
3292 esac
3293 as_dummy="$ac_dir"
3294 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3295 case $as_mkdir_dir in
3296 # Skip DOS drivespec
3297 ?:) as_incr_dir=$as_mkdir_dir ;;
3298 *)
3299 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3300 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3301 ;;
3302 esac
3303 done; }
3304
3305 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3306 # A "../" for each directory in $ac_dir_suffix.
3307 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3308 else
3309 ac_dir_suffix= ac_dots=
3310 fi
3311
3312 case $srcdir in
3313 .) ac_srcdir=.
3314 if test -z "$ac_dots"; then
3315 ac_top_srcdir=.
3316 else
3317 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3318 fi ;;
3319 [\\/]* | ?:[\\/]* )
3320 ac_srcdir=$srcdir$ac_dir_suffix;
3321 ac_top_srcdir=$srcdir ;;
3322 *) # Relative path.
3323 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3324 ac_top_srcdir=$ac_dots$srcdir ;;
3325 esac
3326
3327 if test x"$ac_file" != x-; then
3328 { echo "$as_me:3328: creating $ac_file" >&5
3329 echo "$as_me: creating $ac_file" >&6;}
3330 rm -f "$ac_file"
3331 fi
3332 # Let's still pretend it is `configure' which instantiates (i.e., don't
3333 # use $as_me), people would be surprised to read:
3334 # /* config.h. Generated automatically by config.status. */
3335 configure_input="Generated automatically from `echo $ac_file_in |
3336 sed 's,.*/,,'` by configure."
3337
3338 # First look for the input files in the build tree, otherwise in the
3339 # src tree.
3340 ac_file_inputs=`IFS=:
3341 for f in $ac_file_in; do
3342 case $f in
3343 -) echo $tmp/stdin ;;
3344 [\\/$]*)
3345 # Absolute (can't be DOS-style, as IFS=:)
3346 test -f "$f" || { { echo "$as_me:3346: error: cannot find input file: $f" >&5
3347 echo "$as_me: error: cannot find input file: $f" >&2;}
3348 { (exit 1); exit 1; }; }
3349 echo $f;;
3350 *) # Relative
3351 if test -f "$f"; then
3352 # Build tree
3353 echo $f
3354 elif test -f "$srcdir/$f"; then
3355 # Source tree
3356 echo $srcdir/$f
3357 else
3358 # /dev/null tree
3359 { { echo "$as_me:3359: error: cannot find input file: $f" >&5
3360 echo "$as_me: error: cannot find input file: $f" >&2;}
3361 { (exit 1); exit 1; }; }
3362 fi;;
3363 esac
3364 done` || { (exit 1); exit 1; }
3365 EOF
3366 cat >>$CONFIG_STATUS <<EOF
3367 sed "$ac_vpsub
3368 $extrasub
3369 EOF
3370 cat >>$CONFIG_STATUS <<\EOF
3371 :t
3372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3373 s,@configure_input@,$configure_input,;t t
3374 s,@srcdir@,$ac_srcdir,;t t
3375 s,@top_srcdir@,$ac_top_srcdir,;t t
3376 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3377 rm -f $tmp/stdin
3378 if test x"$ac_file" != x-; then
3379 mv $tmp/out $ac_file
3380 else
3381 cat $tmp/out
3382 rm -f $tmp/out
3383 fi
3384
3385 done
3386 EOF
3387 cat >>$CONFIG_STATUS <<\EOF
3388
3389 #
3390 # CONFIG_HEADER section.
3391 #
3392
3393 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3394 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3395 #
3396 # ac_d sets the value in "#define NAME VALUE" lines.
3397 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3398 ac_dB='[ ].*$,\1#\2'
3399 ac_dC=' '
3400 ac_dD=',;t'
3401 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3402 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3403 ac_uB='$,\1#\2define\3'
3404 ac_uC=' '
3405 ac_uD=',;t'
3406
3407 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3408 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3409 case $ac_file in
3410 - | *:- | *:-:* ) # input from stdin
3411 cat >$tmp/stdin
3412 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3413 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3414 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3415 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3416 * ) ac_file_in=$ac_file.in ;;
3417 esac
3418
3419 test x"$ac_file" != x- && { echo "$as_me:3419: creating $ac_file" >&5
3420 echo "$as_me: creating $ac_file" >&6;}
3421
3422 # First look for the input files in the build tree, otherwise in the
3423 # src tree.
3424 ac_file_inputs=`IFS=:
3425 for f in $ac_file_in; do
3426 case $f in
3427 -) echo $tmp/stdin ;;
3428 [\\/$]*)
3429 # Absolute (can't be DOS-style, as IFS=:)
3430 test -f "$f" || { { echo "$as_me:3430: error: cannot find input file: $f" >&5
3431 echo "$as_me: error: cannot find input file: $f" >&2;}
3432 { (exit 1); exit 1; }; }
3433 echo $f;;
3434 *) # Relative
3435 if test -f "$f"; then
3436 # Build tree
3437 echo $f
3438 elif test -f "$srcdir/$f"; then
3439 # Source tree
3440 echo $srcdir/$f
3441 else
3442 # /dev/null tree
3443 { { echo "$as_me:3443: error: cannot find input file: $f" >&5
3444 echo "$as_me: error: cannot find input file: $f" >&2;}
3445 { (exit 1); exit 1; }; }
3446 fi;;
3447 esac
3448 done` || { (exit 1); exit 1; }
3449 # Remove the trailing spaces.
3450 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3451
3452 EOF
3453
3454 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3455 # `conftest.undefs', that substitutes the proper values into
3456 # config.h.in to produce config.h. The first handles `#define'
3457 # templates, and the second `#undef' templates.
3458 # And first: Protect against being on the right side of a sed subst in
3459 # config.status. Protect against being in an unquoted here document
3460 # in config.status.
3461 rm -f conftest.defines conftest.undefs
3462 # Using a here document instead of a string reduces the quoting nightmare.
3463 # Putting comments in sed scripts is not portable.
3464 #
3465 # `end' is used to avoid that the second main sed command (meant for
3466 # 0-ary CPP macros) applies to n-ary macro definitions.
3467 # See the Autoconf documentation for `clear'.
3468 cat >confdef2sed.sed <<\EOF
3469 s/[\\&,]/\\&/g
3470 s,[\\$`],\\&,g
3471 t clear
3472 : clear
3473 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
3474 t end
3475 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3476 : end
3477 EOF
3478 # If some macros were called several times there might be several times
3479 # the same #defines, which is useless. Nevertheless, we may not want to
3480 # sort them, since we want the *last* AC-DEFINE to be honored.
3481 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3482 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3483 rm -f confdef2sed.sed
3484
3485 # This sed command replaces #undef with comments. This is necessary, for
3486 # example, in the case of _POSIX_SOURCE, which is predefined and required
3487 # on some systems where configure will not decide to define it.
3488 cat >>conftest.undefs <<\EOF
3489 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3490 EOF
3491
3492 # Break up conftest.defines because some shells have a limit on the size
3493 # of here documents, and old seds have small limits too (100 cmds).
3494 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3495 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3496 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3497 echo ' :' >>$CONFIG_STATUS
3498 rm -f conftest.tail
3499 while grep . conftest.defines >/dev/null
3500 do
3501 # Write a limited-size here document to $tmp/defines.sed.
3502 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3503 # Speed up: don't consider the non `#define' lines.
3504 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3505 # Work around the forget-to-reset-the-flag bug.
3506 echo 't clr' >>$CONFIG_STATUS
3507 echo ': clr' >>$CONFIG_STATUS
3508 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3509 echo 'CEOF
3510 sed -f $tmp/defines.sed $tmp/in >$tmp/out
3511 rm -f $tmp/in
3512 mv $tmp/out $tmp/in
3513 ' >>$CONFIG_STATUS
3514 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3515 rm -f conftest.defines
3516 mv conftest.tail conftest.defines
3517 done
3518 rm -f conftest.defines
3519 echo ' fi # egrep' >>$CONFIG_STATUS
3520 echo >>$CONFIG_STATUS
3521
3522 # Break up conftest.undefs because some shells have a limit on the size
3523 # of here documents, and old seds have small limits too (100 cmds).
3524 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
3525 rm -f conftest.tail
3526 while grep . conftest.undefs >/dev/null
3527 do
3528 # Write a limited-size here document to $tmp/undefs.sed.
3529 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3530 # Speed up: don't consider the non `#undef'
3531 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3532 # Work around the forget-to-reset-the-flag bug.
3533 echo 't clr' >>$CONFIG_STATUS
3534 echo ': clr' >>$CONFIG_STATUS
3535 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3536 echo 'CEOF
3537 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3538 rm -f $tmp/in
3539 mv $tmp/out $tmp/in
3540 ' >>$CONFIG_STATUS
3541 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3542 rm -f conftest.undefs
3543 mv conftest.tail conftest.undefs
3544 done
3545 rm -f conftest.undefs
3546
3547 cat >>$CONFIG_STATUS <<\EOF
3548 # Let's still pretend it is `configure' which instantiates (i.e., don't
3549 # use $as_me), people would be surprised to read:
3550 # /* config.h. Generated automatically by config.status. */
3551 if test x"$ac_file" = x-; then
3552 echo "/* Generated automatically by configure. */" >$tmp/config.h
3553 else
3554 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
3555 fi
3556 cat $tmp/in >>$tmp/config.h
3557 rm -f $tmp/in
3558 if test x"$ac_file" != x-; then
3559 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
3560 { echo "$as_me:3560: $ac_file is unchanged" >&5
3561 echo "$as_me: $ac_file is unchanged" >&6;}
3562 else
3563 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3564 X"$ac_file" : 'X\(//\)[^/]' \| \
3565 X"$ac_file" : 'X\(//\)$' \| \
3566 X"$ac_file" : 'X\(/\)' \| \
3567 . : '\(.\)' 2>/dev/null ||
3568 echo X"$ac_file" |
3569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3571 /^X\(\/\/\)$/{ s//\1/; q; }
3572 /^X\(\/\).*/{ s//\1/; q; }
3573 s/.*/./; q'`
3574 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3575 { case "$ac_dir" in
3576 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3577 *) as_incr_dir=.;;
3578 esac
3579 as_dummy="$ac_dir"
3580 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3581 case $as_mkdir_dir in
3582 # Skip DOS drivespec
3583 ?:) as_incr_dir=$as_mkdir_dir ;;
3584 *)
3585 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3586 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3587 ;;
3588 esac
3589 done; }
3590
3591 fi
3592 rm -f $ac_file
3593 mv $tmp/config.h $ac_file
3594 fi
3595 else
3596 cat $tmp/config.h
3597 rm -f $tmp/config.h
3598 fi
3599 done
3600 EOF
3601
3602 cat >>$CONFIG_STATUS <<\EOF
3603
3604 { (exit 0); exit 0; }
3605 EOF
3606 chmod +x $CONFIG_STATUS
3607 ac_clean_files=$ac_clean_files_save
3608
3609 # configure is writing to config.log, and then calls config.status.
3610 # config.status does its own redirection, appending to config.log.
3611 # Unfortunately, on DOS this fails, as config.log is still kept open
3612 # by configure, so config.status won't be able to write to it; its
3613 # output is simply discarded. So we exec the FD to /dev/null,
3614 # effectively closing config.log, so it can be properly (re)opened and
3615 # appended to by config.status. When coming back to configure, we
3616 # need to make the FD available again.
3617 if test "$no_create" != yes; then
3618 ac_cs_success=:
3619 exec 5>/dev/null
3620 $SHELL $CONFIG_STATUS || ac_cs_success=false
3621 exec 5>>config.log
3622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3623 # would make configure fail if this is the last instruction.
3624 $ac_cs_success || { (exit 1); exit 1; }
3625 fi
3626
3627