* env.c (parse_schedule): Reject out of range values.
[official-gcc.git] / fixincludes / configure
blob418b785fa8bb2cd2a099eb51fef9574485cf629d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for fixincludes .
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='fixincludes'
269 PACKAGE_TARNAME='fixincludes'
270 PACKAGE_VERSION=' '
271 PACKAGE_STRING='fixincludes '
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="inclhack.def"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT WARN_CFLAGS WARN_PEDANTIC WERROR target_noncanonical TARGET CPP EGREP MAINT LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures fixincludes to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838 _ACEOF
841 if test -n "$ac_init_help"; then
842 case $ac_init_help in
843 short | recursive ) echo "Configuration of fixincludes :";;
844 esac
845 cat <<\_ACEOF
847 Optional Features:
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --enable-werror-always enable -Werror despite compiler version
851 --enable-twoprocess Use a separate process to apply the fixes
852 --enable-maintainer-mode enable make rules and dependencies not useful
853 (and sometimes confusing) to the casual installer
855 Optional Packages:
856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
858 --with-local-prefix=DIR specifies directory to put local include
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
872 _ACEOF
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
911 case "$ac_dir" in
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
929 case $ac_srcdir in
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942 esac;;
943 esac
945 cd $ac_dir
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
948 echo
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
951 echo
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
955 echo
956 $ac_configure --help
957 else
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960 cd $ac_popdir
961 done
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966 cat <<\_ACEOF
967 fixincludes configure
968 generated by GNU Autoconf 2.59
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974 exit 0
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by fixincludes $as_me , which was
982 generated by GNU Autoconf 2.59. Invocation command line was
984 $ $0 $@
986 _ACEOF
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010 _ASUNAME
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1015 IFS=$as_save_IFS
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1018 done
1020 } >&5
1022 cat >&5 <<_ACEOF
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1029 _ACEOF
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1044 for ac_arg
1046 case $ac_arg in
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 continue ;;
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 esac
1054 case $ac_pass in
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1060 else
1061 case $ac_arg in
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 esac
1070 -* ) ac_must_keep_next=true ;;
1071 esac
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1075 ac_sep=" "
1077 esac
1078 done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1091 echo
1093 cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098 echo
1099 # The following way of writing the cache mishandles newlines in values,
1101 (set) 2>&1 |
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 *ac_space=\ *)
1104 sed -n \
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 sed -n \
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 esac;
1114 echo
1116 cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1129 if test -n "$ac_subst_files"; then
1130 cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1144 if test -s confdefs.h; then
1145 cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150 echo
1151 sed "/^$/d" confdefs.h | sort
1152 echo
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1157 } >&5
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 exit $exit_status
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 else
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1213 . "$ac_site_file"
1215 done
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223 case $cache_file in
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1226 esac
1228 else
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231 >$cache_file
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1244 set,)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,set)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,);;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1262 fi;;
1263 esac
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1266 case $ac_new_val in
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1270 esac
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274 esac
1276 done
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1285 ac_ext=c
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318 ac_aux_dir=
1319 for ac_dir in .. $srcdir/..; do
1320 if test -f $ac_dir/install-sh; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1323 break
1324 elif test -f $ac_dir/install.sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1327 break
1328 elif test -f $ac_dir/shtool; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 break
1333 done
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1337 { (exit 1); exit 1; }; }
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343 # Make sure we can run config.sub.
1344 $ac_config_sub sun4 >/dev/null 2>&1 ||
1345 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1346 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1347 { (exit 1); exit 1; }; }
1349 echo "$as_me:$LINENO: checking build system type" >&5
1350 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1351 if test "${ac_cv_build+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354 ac_cv_build_alias=$build_alias
1355 test -z "$ac_cv_build_alias" &&
1356 ac_cv_build_alias=`$ac_config_guess`
1357 test -z "$ac_cv_build_alias" &&
1358 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1359 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1360 { (exit 1); exit 1; }; }
1361 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1362 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1363 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1364 { (exit 1); exit 1; }; }
1367 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1368 echo "${ECHO_T}$ac_cv_build" >&6
1369 build=$ac_cv_build
1370 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1375 echo "$as_me:$LINENO: checking host system type" >&5
1376 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1377 if test "${ac_cv_host+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 else
1380 ac_cv_host_alias=$host_alias
1381 test -z "$ac_cv_host_alias" &&
1382 ac_cv_host_alias=$ac_cv_build_alias
1383 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1384 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1385 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1386 { (exit 1); exit 1; }; }
1389 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1390 echo "${ECHO_T}$ac_cv_host" >&6
1391 host=$ac_cv_host
1392 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1393 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1394 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397 echo "$as_me:$LINENO: checking target system type" >&5
1398 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1399 if test "${ac_cv_target+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402 ac_cv_target_alias=$target_alias
1403 test "x$ac_cv_target_alias" = "x" &&
1404 ac_cv_target_alias=$ac_cv_host_alias
1405 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1407 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1408 { (exit 1); exit 1; }; }
1411 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1412 echo "${ECHO_T}$ac_cv_target" >&6
1413 target=$ac_cv_target
1414 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419 # The aliases save the names the user supplied, while $host etc.
1420 # will get canonicalized.
1421 test -n "$target_alias" &&
1422 test "$program_prefix$program_suffix$program_transform_name" = \
1423 NONENONEs,x,x, &&
1424 program_prefix=${target_alias}-
1425 ac_ext=c
1426 ac_cpp='$CPP $CPPFLAGS'
1427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
1440 else
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 break 2
1452 done
1453 done
1457 CC=$ac_cv_prog_CC
1458 if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1461 else
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1467 if test -z "$ac_cv_prog_CC"; then
1468 ac_ct_CC=$CC
1469 # Extract the first word of "gcc", so it can be a program name with args.
1470 set dummy gcc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 else
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1478 else
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC="gcc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
1490 done
1491 done
1495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1499 else
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1504 CC=$ac_ct_CC
1505 else
1506 CC="$ac_cv_prog_CC"
1509 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512 set dummy ${ac_tool_prefix}cc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="${ac_tool_prefix}cc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2
1532 done
1533 done
1537 CC=$ac_cv_prog_CC
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1541 else
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1547 if test -z "$ac_cv_prog_CC"; then
1548 ac_ct_CC=$CC
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
1570 done
1571 done
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1579 else
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1584 CC=$ac_ct_CC
1585 else
1586 CC="$ac_cv_prog_CC"
1590 if test -z "$CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 ac_prog_rejected=no
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610 ac_prog_rejected=yes
1611 continue
1613 ac_cv_prog_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1617 done
1618 done
1620 if test $ac_prog_rejected = yes; then
1621 # We found a bogon in the path, so make sure we never use it.
1622 set dummy $ac_cv_prog_CC
1623 shift
1624 if test $# != 0; then
1625 # We chose a different compiler from the bogus one.
1626 # However, it has the same basename, so the bogon will be chosen
1627 # first if we set CC to just the basename; use the full file name.
1628 shift
1629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1644 if test -z "$CC"; then
1645 if test -n "$ac_tool_prefix"; then
1646 for ac_prog in cl
1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1669 done
1670 done
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1683 test -n "$CC" && break
1684 done
1686 if test -z "$CC"; then
1687 ac_ct_CC=$CC
1688 for ac_prog in cl
1690 # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC="$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2
1711 done
1712 done
1716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$ac_ct_CC" && break
1726 done
1728 CC=$ac_ct_CC
1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
1743 ac_compiler=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev/null >&5) 2>&5
1746 ac_status=$?
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1760 cat >conftest.$ac_ext <<_ACEOF
1761 /* confdefs.h. */
1762 _ACEOF
1763 cat confdefs.h >>conftest.$ac_ext
1764 cat >>conftest.$ac_ext <<_ACEOF
1765 /* end confdefs.h. */
1768 main ()
1772 return 0;
1774 _ACEOF
1775 ac_clean_files_save=$ac_clean_files
1776 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1777 # Try to create an executable without -o first, disregard a.out.
1778 # It will help us diagnose broken compilers, and finding out an intuition
1779 # of exeext.
1780 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1781 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1782 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1783 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1784 (eval $ac_link_default) 2>&5
1785 ac_status=$?
1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787 (exit $ac_status); }; then
1788 # Find the output, starting from the most likely. This scheme is
1789 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1790 # resort.
1792 # Be careful to initialize this variable, since it used to be cached.
1793 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1794 ac_cv_exeext=
1795 # b.out is created by i960 compilers.
1796 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1798 test -f "$ac_file" || continue
1799 case $ac_file in
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1802 conftest.$ac_ext )
1803 # This is the source file.
1805 [ab].out )
1806 # We found the default executable, but exeext='' is most
1807 # certainly right.
1808 break;;
1809 *.* )
1810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1811 # FIXME: I believe we export ac_cv_exeext for Libtool,
1812 # but it would be cool to find out if it's true. Does anybody
1813 # maintain Libtool? --akim.
1814 export ac_cv_exeext
1815 break;;
1817 break;;
1818 esac
1819 done
1820 else
1821 echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1825 See \`config.log' for more details." >&5
1826 echo "$as_me: error: C compiler cannot create executables
1827 See \`config.log' for more details." >&2;}
1828 { (exit 77); exit 77; }; }
1831 ac_exeext=$ac_cv_exeext
1832 echo "$as_me:$LINENO: result: $ac_file" >&5
1833 echo "${ECHO_T}$ac_file" >&6
1835 # Check the compiler produces executables we can run. If not, either
1836 # the compiler is broken, or we cross compile.
1837 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1838 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1839 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1840 # If not cross compiling, check that we can run a simple program.
1841 if test "$cross_compiling" != yes; then
1842 if { ac_try='./$ac_file'
1843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1844 (eval $ac_try) 2>&5
1845 ac_status=$?
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }; }; then
1848 cross_compiling=no
1849 else
1850 if test "$cross_compiling" = maybe; then
1851 cross_compiling=yes
1852 else
1853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1854 If you meant to cross compile, use \`--host'.
1855 See \`config.log' for more details." >&5
1856 echo "$as_me: error: cannot run C compiled programs.
1857 If you meant to cross compile, use \`--host'.
1858 See \`config.log' for more details." >&2;}
1859 { (exit 1); exit 1; }; }
1863 echo "$as_me:$LINENO: result: yes" >&5
1864 echo "${ECHO_T}yes" >&6
1866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1867 ac_clean_files=$ac_clean_files_save
1868 # Check the compiler produces executables we can run. If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1872 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1873 echo "${ECHO_T}$cross_compiling" >&6
1875 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1878 (eval $ac_link) 2>&5
1879 ac_status=$?
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1883 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1884 # work properly (i.e., refer to `conftest.exe'), while it won't with
1885 # `rm'.
1886 for ac_file in conftest.exe conftest conftest.*; do
1887 test -f "$ac_file" || continue
1888 case $ac_file in
1889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1891 export ac_cv_exeext
1892 break;;
1893 * ) break;;
1894 esac
1895 done
1896 else
1897 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1898 See \`config.log' for more details." >&5
1899 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1900 See \`config.log' for more details." >&2;}
1901 { (exit 1); exit 1; }; }
1904 rm -f conftest$ac_cv_exeext
1905 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1906 echo "${ECHO_T}$ac_cv_exeext" >&6
1908 rm -f conftest.$ac_ext
1909 EXEEXT=$ac_cv_exeext
1910 ac_exeext=$EXEEXT
1911 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1912 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1913 if test "${ac_cv_objext+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 cat >conftest.$ac_ext <<_ACEOF
1917 /* confdefs.h. */
1918 _ACEOF
1919 cat confdefs.h >>conftest.$ac_ext
1920 cat >>conftest.$ac_ext <<_ACEOF
1921 /* end confdefs.h. */
1924 main ()
1928 return 0;
1930 _ACEOF
1931 rm -f conftest.o conftest.obj
1932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; then
1937 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1938 case $ac_file in
1939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1941 break;;
1942 esac
1943 done
1944 else
1945 echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1948 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&2;}
1952 { (exit 1); exit 1; }; }
1955 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1957 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1958 echo "${ECHO_T}$ac_cv_objext" >&6
1959 OBJEXT=$ac_cv_objext
1960 ac_objext=$OBJEXT
1961 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1962 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1963 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966 cat >conftest.$ac_ext <<_ACEOF
1967 /* confdefs.h. */
1968 _ACEOF
1969 cat confdefs.h >>conftest.$ac_ext
1970 cat >>conftest.$ac_ext <<_ACEOF
1971 /* end confdefs.h. */
1974 main ()
1976 #ifndef __GNUC__
1977 choke me
1978 #endif
1981 return 0;
1983 _ACEOF
1984 rm -f conftest.$ac_objext
1985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1986 (eval $ac_compile) 2>conftest.er1
1987 ac_status=$?
1988 grep -v '^ *+' conftest.er1 >conftest.err
1989 rm -f conftest.er1
1990 cat conftest.err >&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -z "$ac_c_werror_flag"
1994 || test ! -s conftest.err'
1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996 (eval $ac_try) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; } &&
2000 { ac_try='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2006 ac_compiler_gnu=yes
2007 else
2008 echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2011 ac_compiler_gnu=no
2013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2014 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2017 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2018 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2019 GCC=`test $ac_compiler_gnu = yes && echo yes`
2020 ac_test_CFLAGS=${CFLAGS+set}
2021 ac_save_CFLAGS=$CFLAGS
2022 CFLAGS="-g"
2023 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2024 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2025 if test "${ac_cv_prog_cc_g+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 cat >conftest.$ac_ext <<_ACEOF
2029 /* confdefs.h. */
2030 _ACEOF
2031 cat confdefs.h >>conftest.$ac_ext
2032 cat >>conftest.$ac_ext <<_ACEOF
2033 /* end confdefs.h. */
2036 main ()
2040 return 0;
2042 _ACEOF
2043 rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045 (eval $ac_compile) 2>conftest.er1
2046 ac_status=$?
2047 grep -v '^ *+' conftest.er1 >conftest.err
2048 rm -f conftest.er1
2049 cat conftest.err >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); } &&
2052 { ac_try='test -z "$ac_c_werror_flag"
2053 || test ! -s conftest.err'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 (eval $ac_try) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; } &&
2059 { ac_try='test -s conftest.$ac_objext'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 (eval $ac_try) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; }; then
2065 ac_cv_prog_cc_g=yes
2066 else
2067 echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 ac_cv_prog_cc_g=no
2072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2074 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2075 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2076 if test "$ac_test_CFLAGS" = set; then
2077 CFLAGS=$ac_save_CFLAGS
2078 elif test $ac_cv_prog_cc_g = yes; then
2079 if test "$GCC" = yes; then
2080 CFLAGS="-g -O2"
2081 else
2082 CFLAGS="-g"
2084 else
2085 if test "$GCC" = yes; then
2086 CFLAGS="-O2"
2087 else
2088 CFLAGS=
2091 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2092 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2093 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 ac_cv_prog_cc_stdc=no
2097 ac_save_CC=$CC
2098 cat >conftest.$ac_ext <<_ACEOF
2099 /* confdefs.h. */
2100 _ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2104 #include <stdarg.h>
2105 #include <stdio.h>
2106 #include <sys/types.h>
2107 #include <sys/stat.h>
2108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2109 struct buf { int x; };
2110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2111 static char *e (p, i)
2112 char **p;
2113 int i;
2115 return p[i];
2117 static char *f (char * (*g) (char **, int), char **p, ...)
2119 char *s;
2120 va_list v;
2121 va_start (v,p);
2122 s = g (p, va_arg (v,int));
2123 va_end (v);
2124 return s;
2127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2128 function prototypes and stuff, but not '\xHH' hex character constants.
2129 These don't provoke an error unfortunately, instead are silently treated
2130 as 'x'. The following induces an error, until -std1 is added to get
2131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2132 array size at least. It's necessary to write '\x00'==0 to get something
2133 that's true only with -std1. */
2134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2136 int test (int i, double x);
2137 struct s1 {int (*f) (int a);};
2138 struct s2 {int (*f) (double a);};
2139 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2140 int argc;
2141 char **argv;
2143 main ()
2145 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2147 return 0;
2149 _ACEOF
2150 # Don't try gcc -ansi; that turns off useful extensions and
2151 # breaks some systems' header files.
2152 # AIX -qlanglvl=ansi
2153 # Ultrix and OSF/1 -std1
2154 # HP-UX 10.20 and later -Ae
2155 # HP-UX older versions -Aa -D_HPUX_SOURCE
2156 # SVR4 -Xc -D__EXTENSIONS__
2157 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2159 CC="$ac_save_CC $ac_arg"
2160 rm -f conftest.$ac_objext
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>conftest.er1
2163 ac_status=$?
2164 grep -v '^ *+' conftest.er1 >conftest.err
2165 rm -f conftest.er1
2166 cat conftest.err >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -z "$ac_c_werror_flag"
2170 || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 ac_cv_prog_cc_stdc=$ac_arg
2183 break
2184 else
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2189 rm -f conftest.err conftest.$ac_objext
2190 done
2191 rm -f conftest.$ac_ext conftest.$ac_objext
2192 CC=$ac_save_CC
2196 case "x$ac_cv_prog_cc_stdc" in
2197 x|xno)
2198 echo "$as_me:$LINENO: result: none needed" >&5
2199 echo "${ECHO_T}none needed" >&6 ;;
2201 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2202 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2203 CC="$CC $ac_cv_prog_cc_stdc" ;;
2204 esac
2206 # Some people use a C++ compiler to compile C. Since we use `exit',
2207 # in C++ we need to declare it. In case someone uses the same compiler
2208 # for both compiling C and C++ we need to have the C++ compiler decide
2209 # the declaration of exit, since it's the most demanding environment.
2210 cat >conftest.$ac_ext <<_ACEOF
2211 #ifndef __cplusplus
2212 choke me
2213 #endif
2214 _ACEOF
2215 rm -f conftest.$ac_objext
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217 (eval $ac_compile) 2>conftest.er1
2218 ac_status=$?
2219 grep -v '^ *+' conftest.er1 >conftest.err
2220 rm -f conftest.er1
2221 cat conftest.err >&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -z "$ac_c_werror_flag"
2225 || test ! -s conftest.err'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 for ac_declaration in \
2238 '' \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2243 'void exit (int);'
2245 cat >conftest.$ac_ext <<_ACEOF
2246 /* confdefs.h. */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2251 $ac_declaration
2252 #include <stdlib.h>
2254 main ()
2256 exit (42);
2258 return 0;
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2264 ac_status=$?
2265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag"
2271 || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2284 else
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2288 continue
2290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291 cat >conftest.$ac_ext <<_ACEOF
2292 /* confdefs.h. */
2293 _ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2297 $ac_declaration
2299 main ()
2301 exit (42);
2303 return 0;
2305 _ACEOF
2306 rm -f conftest.$ac_objext
2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308 (eval $ac_compile) 2>conftest.er1
2309 ac_status=$?
2310 grep -v '^ *+' conftest.er1 >conftest.err
2311 rm -f conftest.er1
2312 cat conftest.err >&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -z "$ac_c_werror_flag"
2316 || test ! -s conftest.err'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 (eval $ac_try) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; } &&
2322 { ac_try='test -s conftest.$ac_objext'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 (eval $ac_try) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; }; then
2328 break
2329 else
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335 done
2336 rm -f conftest*
2337 if test -n "$ac_declaration"; then
2338 echo '#ifdef __cplusplus' >>confdefs.h
2339 echo $ac_declaration >>confdefs.h
2340 echo '#endif' >>confdefs.h
2343 else
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349 ac_ext=c
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356 # Figure out what compiler warnings we can enable.
2357 # See config/warnings.m4 for details.
2360 WARN_CFLAGS=
2361 save_CFLAGS="$CFLAGS"
2362 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2363 -Wmissing-prototypes -Wold-style-definition \
2364 -Wmissing-format-attribute -Wno-overlength-strings; do
2365 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2367 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2368 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2369 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 CFLAGS="$option"
2373 cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h. */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2381 main ()
2385 return 0;
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390 (eval $ac_compile) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -z "$ac_c_werror_flag"
2398 || test ! -s conftest.err'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 eval "$as_acx_Woption=yes"
2411 else
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2415 eval "$as_acx_Woption=no"
2417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2420 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2421 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2422 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2423 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2426 done
2427 CFLAGS="$save_CFLAGS"
2429 WARN_PEDANTIC=
2430 if test "$GCC" = yes; then
2431 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2432 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2433 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 save_CFLAGS="$CFLAGS"
2437 CFLAGS="-pedantic -Wno-long-long"
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2446 main ()
2450 return 0;
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag"
2463 || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2476 else
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2480 acx_cv_prog_cc_pedantic__Wno_long_long=no
2482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483 CFLAGS="$save_CFLAGS"
2485 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2486 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2487 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2488 WARN_PEDANTIC="-pedantic -Wno-long-long"
2496 # Only enable with --enable-werror-always until existing warnings are
2497 # corrected.
2498 WERROR=
2499 # Check whether --enable-werror-always or --disable-werror-always was given.
2500 if test "${enable_werror_always+set}" = set; then
2501 enableval="$enable_werror_always"
2503 else
2504 enable_werror_always=no
2506 if test $enable_werror_always = yes; then
2507 WERROR=-Werror
2512 # Determine the noncanonical target name, for directory use.
2513 case ${build_alias} in
2514 "") build_noncanonical=${build} ;;
2515 *) build_noncanonical=${build_alias} ;;
2516 esac
2518 case ${host_alias} in
2519 "") host_noncanonical=${build_noncanonical} ;;
2520 *) host_noncanonical=${host_alias} ;;
2521 esac
2523 case ${target_alias} in
2524 "") target_noncanonical=${host_noncanonical} ;;
2525 *) target_noncanonical=${target_alias} ;;
2526 esac
2531 # Specify the local prefix
2532 local_prefix=
2534 # Check whether --with-local-prefix or --without-local-prefix was given.
2535 if test "${with_local_prefix+set}" = set; then
2536 withval="$with_local_prefix"
2537 case "${withval}" in
2538 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2539 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2540 { (exit 1); exit 1; }; } ;;
2541 no) ;;
2542 *) local_prefix=$with_local_prefix ;;
2543 esac
2546 # Default local prefix if it is empty
2547 if test x$local_prefix = x; then
2548 local_prefix=/usr/local
2551 # Choose one or two-process fix methodology. Systems that cannot handle
2552 # bi-directional pipes must use the two process method.
2554 # Check whether --enable-twoprocess or --disable-twoprocess was given.
2555 if test "${enable_twoprocess+set}" = set; then
2556 enableval="$enable_twoprocess"
2557 if test "x$enable_twoprocess" = xyes; then
2558 TARGET=twoprocess
2559 else
2560 TARGET=oneprocess
2562 else
2563 case $host in
2564 i?86-*-msdosdjgpp* | \
2565 i?86-*-mingw32* | \
2566 *-*-beos* )
2567 TARGET=twoprocess
2571 TARGET=oneprocess
2573 esac
2577 if test $TARGET = twoprocess; then
2579 cat >>confdefs.h <<\_ACEOF
2580 #define SEPARATE_FIX_PROC 1
2581 _ACEOF
2585 case $host in
2586 vax-dec-bsd* )
2588 cat >>confdefs.h <<\_ACEOF
2589 #define exit xexit
2590 _ACEOF
2593 cat >>confdefs.h <<\_ACEOF
2594 #define atexit xatexit
2595 _ACEOF
2598 esac
2601 cat >>confdefs.h <<_ACEOF
2602 #define EXE_EXT "$ac_exeext"
2603 _ACEOF
2606 # Checks for header files.
2607 ac_ext=c
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2613 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2614 # On Suns, sometimes $CPP names a directory.
2615 if test -n "$CPP" && test -d "$CPP"; then
2616 CPP=
2618 if test -z "$CPP"; then
2619 if test "${ac_cv_prog_CPP+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622 # Double quotes because CPP needs to be expanded
2623 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2625 ac_preproc_ok=false
2626 for ac_c_preproc_warn_flag in '' yes
2628 # Use a header file that comes with gcc, so configuring glibc
2629 # with a fresh cross-compiler works.
2630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2631 # <limits.h> exists even on freestanding compilers.
2632 # On the NeXT, cc -E runs the code through the compiler's parser,
2633 # not just through cpp. "Syntax error" is here to catch this case.
2634 cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h. */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2640 #ifdef __STDC__
2641 # include <limits.h>
2642 #else
2643 # include <assert.h>
2644 #endif
2645 Syntax error
2646 _ACEOF
2647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } >/dev/null; then
2655 if test -s conftest.err; then
2656 ac_cpp_err=$ac_c_preproc_warn_flag
2657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2658 else
2659 ac_cpp_err=
2661 else
2662 ac_cpp_err=yes
2664 if test -z "$ac_cpp_err"; then
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 # Broken: fails on valid input.
2671 continue
2673 rm -f conftest.err conftest.$ac_ext
2675 # OK, works on sane cases. Now check whether non-existent headers
2676 # can be detected and how.
2677 cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h. */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2683 #include <ac_nonexistent.h>
2684 _ACEOF
2685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2687 ac_status=$?
2688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } >/dev/null; then
2693 if test -s conftest.err; then
2694 ac_cpp_err=$ac_c_preproc_warn_flag
2695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2696 else
2697 ac_cpp_err=
2699 else
2700 ac_cpp_err=yes
2702 if test -z "$ac_cpp_err"; then
2703 # Broken: success on invalid input.
2704 continue
2705 else
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 # Passes both tests.
2710 ac_preproc_ok=:
2711 break
2713 rm -f conftest.err conftest.$ac_ext
2715 done
2716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2717 rm -f conftest.err conftest.$ac_ext
2718 if $ac_preproc_ok; then
2719 break
2722 done
2723 ac_cv_prog_CPP=$CPP
2726 CPP=$ac_cv_prog_CPP
2727 else
2728 ac_cv_prog_CPP=$CPP
2730 echo "$as_me:$LINENO: result: $CPP" >&5
2731 echo "${ECHO_T}$CPP" >&6
2732 ac_preproc_ok=false
2733 for ac_c_preproc_warn_flag in '' yes
2735 # Use a header file that comes with gcc, so configuring glibc
2736 # with a fresh cross-compiler works.
2737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2738 # <limits.h> exists even on freestanding compilers.
2739 # On the NeXT, cc -E runs the code through the compiler's parser,
2740 # not just through cpp. "Syntax error" is here to catch this case.
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2747 #ifdef __STDC__
2748 # include <limits.h>
2749 #else
2750 # include <assert.h>
2751 #endif
2752 Syntax error
2753 _ACEOF
2754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2756 ac_status=$?
2757 grep -v '^ *+' conftest.er1 >conftest.err
2758 rm -f conftest.er1
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } >/dev/null; then
2762 if test -s conftest.err; then
2763 ac_cpp_err=$ac_c_preproc_warn_flag
2764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2765 else
2766 ac_cpp_err=
2768 else
2769 ac_cpp_err=yes
2771 if test -z "$ac_cpp_err"; then
2773 else
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2777 # Broken: fails on valid input.
2778 continue
2780 rm -f conftest.err conftest.$ac_ext
2782 # OK, works on sane cases. Now check whether non-existent headers
2783 # can be detected and how.
2784 cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h. */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2790 #include <ac_nonexistent.h>
2791 _ACEOF
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794 ac_status=$?
2795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } >/dev/null; then
2800 if test -s conftest.err; then
2801 ac_cpp_err=$ac_c_preproc_warn_flag
2802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2803 else
2804 ac_cpp_err=
2806 else
2807 ac_cpp_err=yes
2809 if test -z "$ac_cpp_err"; then
2810 # Broken: success on invalid input.
2811 continue
2812 else
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2816 # Passes both tests.
2817 ac_preproc_ok=:
2818 break
2820 rm -f conftest.err conftest.$ac_ext
2822 done
2823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2824 rm -f conftest.err conftest.$ac_ext
2825 if $ac_preproc_ok; then
2827 else
2828 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2831 See \`config.log' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2835 ac_ext=c
2836 ac_cpp='$CPP $CPPFLAGS'
2837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2842 echo "$as_me:$LINENO: checking for egrep" >&5
2843 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2844 if test "${ac_cv_prog_egrep+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2848 then ac_cv_prog_egrep='grep -E'
2849 else ac_cv_prog_egrep='egrep'
2852 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2853 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2854 EGREP=$ac_cv_prog_egrep
2857 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2858 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2859 if test "${ac_cv_header_stdc+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h. */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <stdlib.h>
2869 #include <stdarg.h>
2870 #include <string.h>
2871 #include <float.h>
2874 main ()
2878 return 0;
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883 (eval $ac_compile) 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try='test -z "$ac_c_werror_flag"
2891 || test ! -s conftest.err'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; } &&
2897 { ac_try='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2903 ac_cv_header_stdc=yes
2904 else
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 ac_cv_header_stdc=no
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2912 if test $ac_cv_header_stdc = yes; then
2913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 #include <string.h>
2922 _ACEOF
2923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2924 $EGREP "memchr" >/dev/null 2>&1; then
2926 else
2927 ac_cv_header_stdc=no
2929 rm -f conftest*
2933 if test $ac_cv_header_stdc = yes; then
2934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2935 cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h. */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941 #include <stdlib.h>
2943 _ACEOF
2944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2945 $EGREP "free" >/dev/null 2>&1; then
2947 else
2948 ac_cv_header_stdc=no
2950 rm -f conftest*
2954 if test $ac_cv_header_stdc = yes; then
2955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2956 if test "$cross_compiling" = yes; then
2958 else
2959 cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h. */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2965 #include <ctype.h>
2966 #if ((' ' & 0x0FF) == 0x020)
2967 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2968 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2969 #else
2970 # define ISLOWER(c) \
2971 (('a' <= (c) && (c) <= 'i') \
2972 || ('j' <= (c) && (c) <= 'r') \
2973 || ('s' <= (c) && (c) <= 'z'))
2974 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2975 #endif
2977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2979 main ()
2981 int i;
2982 for (i = 0; i < 256; i++)
2983 if (XOR (islower (i), ISLOWER (i))
2984 || toupper (i) != TOUPPER (i))
2985 exit(2);
2986 exit (0);
2988 _ACEOF
2989 rm -f conftest$ac_exeext
2990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2991 (eval $ac_link) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3001 else
3002 echo "$as_me: program exited with status $ac_status" >&5
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 ( exit $ac_status )
3007 ac_cv_header_stdc=no
3009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3013 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3014 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3015 if test $ac_cv_header_stdc = yes; then
3017 cat >>confdefs.h <<\_ACEOF
3018 #define STDC_HEADERS 1
3019 _ACEOF
3023 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3033 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3034 inttypes.h stdint.h unistd.h
3036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3037 echo "$as_me:$LINENO: checking for $ac_header" >&5
3038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048 $ac_includes_default
3050 #include <$ac_header>
3051 _ACEOF
3052 rm -f conftest.$ac_objext
3053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054 (eval $ac_compile) 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } &&
3061 { ac_try='test -z "$ac_c_werror_flag"
3062 || test ! -s conftest.err'
3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 (eval $ac_try) 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 (eval $ac_try) 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3074 eval "$as_ac_Header=yes"
3075 else
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 eval "$as_ac_Header=no"
3081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3086 cat >>confdefs.h <<_ACEOF
3087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3088 _ACEOF
3092 done
3102 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
3103 sys/stat.h
3105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3107 echo "$as_me:$LINENO: checking for $ac_header" >&5
3108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3114 else
3115 # Is the header compilable?
3116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3118 cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h. */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3124 $ac_includes_default
3125 #include <$ac_header>
3126 _ACEOF
3127 rm -f conftest.$ac_objext
3128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3129 (eval $ac_compile) 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_c_werror_flag"
3137 || test ! -s conftest.err'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 (eval $ac_try) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 (eval $ac_try) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_header_compiler=yes
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 ac_header_compiler=no
3156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3158 echo "${ECHO_T}$ac_header_compiler" >&6
3160 # Is the header present?
3161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3163 cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h. */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #include <$ac_header>
3170 _ACEOF
3171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev/null; then
3179 if test -s conftest.err; then
3180 ac_cpp_err=$ac_c_preproc_warn_flag
3181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3182 else
3183 ac_cpp_err=
3185 else
3186 ac_cpp_err=yes
3188 if test -z "$ac_cpp_err"; then
3189 ac_header_preproc=yes
3190 else
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 ac_header_preproc=no
3196 rm -f conftest.err conftest.$ac_ext
3197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3198 echo "${ECHO_T}$ac_header_preproc" >&6
3200 # So? What about this header?
3201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3202 yes:no: )
3203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3207 ac_header_preproc=yes
3209 no:yes:* )
3210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3223 cat <<\_ASBOX
3224 ## -------------------------------------- ##
3225 ## Report this to the fixincludes lists. ##
3226 ## -------------------------------------- ##
3227 _ASBOX
3229 sed "s/^/$as_me: WARNING: /" >&2
3231 esac
3232 echo "$as_me:$LINENO: checking for $ac_header" >&5
3233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 eval "$as_ac_Header=\$ac_header_preproc"
3239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3244 cat >>confdefs.h <<_ACEOF
3245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3246 _ACEOF
3250 done
3269 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
3271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3272 echo "$as_me:$LINENO: checking for $ac_func" >&5
3273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3274 if eval "test \"\${$as_ac_var+set}\" = set"; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h. */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3285 #define $ac_func innocuous_$ac_func
3287 /* System header to define __stub macros and hopefully few prototypes,
3288 which can conflict with char $ac_func (); below.
3289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3290 <limits.h> exists even on freestanding compilers. */
3292 #ifdef __STDC__
3293 # include <limits.h>
3294 #else
3295 # include <assert.h>
3296 #endif
3298 #undef $ac_func
3300 /* Override any gcc2 internal prototype to avoid an error. */
3301 #ifdef __cplusplus
3302 extern "C"
3304 #endif
3305 /* We use char because int might match the return type of a gcc2
3306 builtin and then its argument prototype would still apply. */
3307 char $ac_func ();
3308 /* The GNU C library defines this for functions which it implements
3309 to always fail with ENOSYS. Some functions are actually named
3310 something starting with __ and the normal name is an alias. */
3311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3312 choke me
3313 #else
3314 char (*f) () = $ac_func;
3315 #endif
3316 #ifdef __cplusplus
3318 #endif
3321 main ()
3323 return f != $ac_func;
3325 return 0;
3327 _ACEOF
3328 rm -f conftest.$ac_objext conftest$ac_exeext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3330 (eval $ac_link) 2>conftest.er1
3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_c_werror_flag"
3338 || test ! -s conftest.err'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest$ac_exeext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 eval "$as_ac_var=yes"
3351 else
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 eval "$as_ac_var=no"
3357 rm -f conftest.err conftest.$ac_objext \
3358 conftest$ac_exeext conftest.$ac_ext
3360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3362 if test `eval echo '${'$as_ac_var'}'` = yes; then
3363 cat >>confdefs.h <<_ACEOF
3364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3365 _ACEOF
3368 done
3370 echo "$as_me:$LINENO: checking whether abort is declared" >&5
3371 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
3372 if test "${ac_cv_have_decl_abort+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3381 $ac_includes_default
3383 main ()
3385 #ifndef abort
3386 char *p = (char *) abort;
3387 #endif
3390 return 0;
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395 (eval $ac_compile) 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } &&
3402 { ac_try='test -z "$ac_c_werror_flag"
3403 || test ! -s conftest.err'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; } &&
3409 { ac_try='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 ac_cv_have_decl_abort=yes
3416 else
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 ac_cv_have_decl_abort=no
3422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
3425 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
3426 if test $ac_cv_have_decl_abort = yes; then
3428 cat >>confdefs.h <<_ACEOF
3429 #define HAVE_DECL_ABORT 1
3430 _ACEOF
3433 else
3434 cat >>confdefs.h <<_ACEOF
3435 #define HAVE_DECL_ABORT 0
3436 _ACEOF
3440 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
3441 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
3442 if test "${ac_cv_have_decl_asprintf+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 $ac_includes_default
3453 main ()
3455 #ifndef asprintf
3456 char *p = (char *) asprintf;
3457 #endif
3460 return 0;
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } &&
3472 { ac_try='test -z "$ac_c_werror_flag"
3473 || test ! -s conftest.err'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; } &&
3479 { ac_try='test -s conftest.$ac_objext'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 ac_cv_have_decl_asprintf=yes
3486 else
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 ac_cv_have_decl_asprintf=no
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
3495 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
3496 if test $ac_cv_have_decl_asprintf = yes; then
3498 cat >>confdefs.h <<_ACEOF
3499 #define HAVE_DECL_ASPRINTF 1
3500 _ACEOF
3503 else
3504 cat >>confdefs.h <<_ACEOF
3505 #define HAVE_DECL_ASPRINTF 0
3506 _ACEOF
3510 echo "$as_me:$LINENO: checking whether basename is declared" >&5
3511 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
3512 if test "${ac_cv_have_decl_basename+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 $ac_includes_default
3523 main ()
3525 #ifndef basename
3526 char *p = (char *) basename;
3527 #endif
3530 return 0;
3532 _ACEOF
3533 rm -f conftest.$ac_objext
3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
3542 { ac_try='test -z "$ac_c_werror_flag"
3543 || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_cv_have_decl_basename=yes
3556 else
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 ac_cv_have_decl_basename=no
3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
3565 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
3566 if test $ac_cv_have_decl_basename = yes; then
3568 cat >>confdefs.h <<_ACEOF
3569 #define HAVE_DECL_BASENAME 1
3570 _ACEOF
3573 else
3574 cat >>confdefs.h <<_ACEOF
3575 #define HAVE_DECL_BASENAME 0
3576 _ACEOF
3580 echo "$as_me:$LINENO: checking whether errno is declared" >&5
3581 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
3582 if test "${ac_cv_have_decl_errno+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591 $ac_includes_default
3593 main ()
3595 #ifndef errno
3596 char *p = (char *) errno;
3597 #endif
3600 return 0;
3602 _ACEOF
3603 rm -f conftest.$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -z "$ac_c_werror_flag"
3613 || test ! -s conftest.err'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; } &&
3619 { ac_try='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 ac_cv_have_decl_errno=yes
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 ac_cv_have_decl_errno=no
3632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3634 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
3635 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
3636 if test $ac_cv_have_decl_errno = yes; then
3638 cat >>confdefs.h <<_ACEOF
3639 #define HAVE_DECL_ERRNO 1
3640 _ACEOF
3643 else
3644 cat >>confdefs.h <<_ACEOF
3645 #define HAVE_DECL_ERRNO 0
3646 _ACEOF
3650 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
3651 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
3652 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h. */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 $ac_includes_default
3663 main ()
3665 #ifndef vasprintf
3666 char *p = (char *) vasprintf;
3667 #endif
3670 return 0;
3672 _ACEOF
3673 rm -f conftest.$ac_objext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_c_werror_flag"
3683 || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest.$ac_objext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_cv_have_decl_vasprintf=yes
3696 else
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ac_cv_have_decl_vasprintf=no
3702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3704 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
3705 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
3706 if test $ac_cv_have_decl_vasprintf = yes; then
3708 cat >>confdefs.h <<_ACEOF
3709 #define HAVE_DECL_VASPRINTF 1
3710 _ACEOF
3713 else
3714 cat >>confdefs.h <<_ACEOF
3715 #define HAVE_DECL_VASPRINTF 0
3716 _ACEOF
3720 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
3721 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
3722 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h. */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3731 $ac_includes_default
3733 main ()
3735 #ifndef clearerr_unlocked
3736 char *p = (char *) clearerr_unlocked;
3737 #endif
3740 return 0;
3742 _ACEOF
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -z "$ac_c_werror_flag"
3753 || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_cv_have_decl_clearerr_unlocked=yes
3766 else
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3770 ac_cv_have_decl_clearerr_unlocked=no
3772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
3775 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
3776 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
3778 cat >>confdefs.h <<_ACEOF
3779 #define HAVE_DECL_CLEARERR_UNLOCKED 1
3780 _ACEOF
3783 else
3784 cat >>confdefs.h <<_ACEOF
3785 #define HAVE_DECL_CLEARERR_UNLOCKED 0
3786 _ACEOF
3790 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
3791 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
3792 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801 $ac_includes_default
3803 main ()
3805 #ifndef feof_unlocked
3806 char *p = (char *) feof_unlocked;
3807 #endif
3810 return 0;
3812 _ACEOF
3813 rm -f conftest.$ac_objext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -z "$ac_c_werror_flag"
3823 || test ! -s conftest.err'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 (eval $ac_try) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 (eval $ac_try) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3835 ac_cv_have_decl_feof_unlocked=yes
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 ac_cv_have_decl_feof_unlocked=no
3842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3844 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
3845 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
3846 if test $ac_cv_have_decl_feof_unlocked = yes; then
3848 cat >>confdefs.h <<_ACEOF
3849 #define HAVE_DECL_FEOF_UNLOCKED 1
3850 _ACEOF
3853 else
3854 cat >>confdefs.h <<_ACEOF
3855 #define HAVE_DECL_FEOF_UNLOCKED 0
3856 _ACEOF
3860 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
3861 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
3862 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 $ac_includes_default
3873 main ()
3875 #ifndef ferror_unlocked
3876 char *p = (char *) ferror_unlocked;
3877 #endif
3880 return 0;
3882 _ACEOF
3883 rm -f conftest.$ac_objext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3885 (eval $ac_compile) 2>conftest.er1
3886 ac_status=$?
3887 grep -v '^ *+' conftest.er1 >conftest.err
3888 rm -f conftest.er1
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -z "$ac_c_werror_flag"
3893 || test ! -s conftest.err'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; } &&
3899 { ac_try='test -s conftest.$ac_objext'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 (eval $ac_try) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
3905 ac_cv_have_decl_ferror_unlocked=yes
3906 else
3907 echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 ac_cv_have_decl_ferror_unlocked=no
3912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3914 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
3915 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
3916 if test $ac_cv_have_decl_ferror_unlocked = yes; then
3918 cat >>confdefs.h <<_ACEOF
3919 #define HAVE_DECL_FERROR_UNLOCKED 1
3920 _ACEOF
3923 else
3924 cat >>confdefs.h <<_ACEOF
3925 #define HAVE_DECL_FERROR_UNLOCKED 0
3926 _ACEOF
3930 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
3931 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
3932 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 $ac_includes_default
3943 main ()
3945 #ifndef fflush_unlocked
3946 char *p = (char *) fflush_unlocked;
3947 #endif
3950 return 0;
3952 _ACEOF
3953 rm -f conftest.$ac_objext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955 (eval $ac_compile) 2>conftest.er1
3956 ac_status=$?
3957 grep -v '^ *+' conftest.er1 >conftest.err
3958 rm -f conftest.er1
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } &&
3962 { ac_try='test -z "$ac_c_werror_flag"
3963 || test ! -s conftest.err'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 (eval $ac_try) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; } &&
3969 { ac_try='test -s conftest.$ac_objext'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971 (eval $ac_try) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975 ac_cv_have_decl_fflush_unlocked=yes
3976 else
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 ac_cv_have_decl_fflush_unlocked=no
3982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3984 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
3985 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
3986 if test $ac_cv_have_decl_fflush_unlocked = yes; then
3988 cat >>confdefs.h <<_ACEOF
3989 #define HAVE_DECL_FFLUSH_UNLOCKED 1
3990 _ACEOF
3993 else
3994 cat >>confdefs.h <<_ACEOF
3995 #define HAVE_DECL_FFLUSH_UNLOCKED 0
3996 _ACEOF
4000 echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
4001 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
4002 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h. */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 $ac_includes_default
4013 main ()
4015 #ifndef fgetc_unlocked
4016 char *p = (char *) fgetc_unlocked;
4017 #endif
4020 return 0;
4022 _ACEOF
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -z "$ac_c_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_cv_have_decl_fgetc_unlocked=yes
4046 else
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ac_cv_have_decl_fgetc_unlocked=no
4052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
4055 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
4056 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
4058 cat >>confdefs.h <<_ACEOF
4059 #define HAVE_DECL_FGETC_UNLOCKED 1
4060 _ACEOF
4063 else
4064 cat >>confdefs.h <<_ACEOF
4065 #define HAVE_DECL_FGETC_UNLOCKED 0
4066 _ACEOF
4070 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
4071 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
4072 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h. */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 $ac_includes_default
4083 main ()
4085 #ifndef fgets_unlocked
4086 char *p = (char *) fgets_unlocked;
4087 #endif
4090 return 0;
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>conftest.er1
4096 ac_status=$?
4097 grep -v '^ *+' conftest.er1 >conftest.err
4098 rm -f conftest.er1
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -z "$ac_c_werror_flag"
4103 || test ! -s conftest.err'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 (eval $ac_try) 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 ac_cv_have_decl_fgets_unlocked=yes
4116 else
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 ac_cv_have_decl_fgets_unlocked=no
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
4125 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
4126 if test $ac_cv_have_decl_fgets_unlocked = yes; then
4128 cat >>confdefs.h <<_ACEOF
4129 #define HAVE_DECL_FGETS_UNLOCKED 1
4130 _ACEOF
4133 else
4134 cat >>confdefs.h <<_ACEOF
4135 #define HAVE_DECL_FGETS_UNLOCKED 0
4136 _ACEOF
4140 echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
4141 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
4142 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h. */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4151 $ac_includes_default
4153 main ()
4155 #ifndef fileno_unlocked
4156 char *p = (char *) fileno_unlocked;
4157 #endif
4160 return 0;
4162 _ACEOF
4163 rm -f conftest.$ac_objext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>conftest.er1
4166 ac_status=$?
4167 grep -v '^ *+' conftest.er1 >conftest.err
4168 rm -f conftest.er1
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } &&
4172 { ac_try='test -z "$ac_c_werror_flag"
4173 || test ! -s conftest.err'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try='test -s conftest.$ac_objext'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; }; then
4185 ac_cv_have_decl_fileno_unlocked=yes
4186 else
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 ac_cv_have_decl_fileno_unlocked=no
4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4194 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
4195 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
4196 if test $ac_cv_have_decl_fileno_unlocked = yes; then
4198 cat >>confdefs.h <<_ACEOF
4199 #define HAVE_DECL_FILENO_UNLOCKED 1
4200 _ACEOF
4203 else
4204 cat >>confdefs.h <<_ACEOF
4205 #define HAVE_DECL_FILENO_UNLOCKED 0
4206 _ACEOF
4210 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
4211 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
4212 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215 cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h. */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 $ac_includes_default
4223 main ()
4225 #ifndef fprintf_unlocked
4226 char *p = (char *) fprintf_unlocked;
4227 #endif
4230 return 0;
4232 _ACEOF
4233 rm -f conftest.$ac_objext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try='test -z "$ac_c_werror_flag"
4243 || test ! -s conftest.err'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 (eval $ac_try) 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 ac_cv_have_decl_fprintf_unlocked=yes
4256 else
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4260 ac_cv_have_decl_fprintf_unlocked=no
4262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4264 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
4265 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
4266 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
4268 cat >>confdefs.h <<_ACEOF
4269 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4270 _ACEOF
4273 else
4274 cat >>confdefs.h <<_ACEOF
4275 #define HAVE_DECL_FPRINTF_UNLOCKED 0
4276 _ACEOF
4280 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
4281 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
4282 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 cat >conftest.$ac_ext <<_ACEOF
4286 /* confdefs.h. */
4287 _ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4291 $ac_includes_default
4293 main ()
4295 #ifndef fputc_unlocked
4296 char *p = (char *) fputc_unlocked;
4297 #endif
4300 return 0;
4302 _ACEOF
4303 rm -f conftest.$ac_objext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305 (eval $ac_compile) 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest.$ac_objext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 ac_cv_have_decl_fputc_unlocked=yes
4326 else
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 ac_cv_have_decl_fputc_unlocked=no
4332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
4335 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
4336 if test $ac_cv_have_decl_fputc_unlocked = yes; then
4338 cat >>confdefs.h <<_ACEOF
4339 #define HAVE_DECL_FPUTC_UNLOCKED 1
4340 _ACEOF
4343 else
4344 cat >>confdefs.h <<_ACEOF
4345 #define HAVE_DECL_FPUTC_UNLOCKED 0
4346 _ACEOF
4350 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
4351 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
4352 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h. */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 $ac_includes_default
4363 main ()
4365 #ifndef fputs_unlocked
4366 char *p = (char *) fputs_unlocked;
4367 #endif
4370 return 0;
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_c_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 (eval $ac_try) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 (eval $ac_try) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4395 ac_cv_have_decl_fputs_unlocked=yes
4396 else
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 ac_cv_have_decl_fputs_unlocked=no
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
4405 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
4406 if test $ac_cv_have_decl_fputs_unlocked = yes; then
4408 cat >>confdefs.h <<_ACEOF
4409 #define HAVE_DECL_FPUTS_UNLOCKED 1
4410 _ACEOF
4413 else
4414 cat >>confdefs.h <<_ACEOF
4415 #define HAVE_DECL_FPUTS_UNLOCKED 0
4416 _ACEOF
4420 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
4421 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
4422 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h. */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 $ac_includes_default
4433 main ()
4435 #ifndef fread_unlocked
4436 char *p = (char *) fread_unlocked;
4437 #endif
4440 return 0;
4442 _ACEOF
4443 rm -f conftest.$ac_objext
4444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4445 (eval $ac_compile) 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
4452 { ac_try='test -z "$ac_c_werror_flag"
4453 || test ! -s conftest.err'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; } &&
4459 { ac_try='test -s conftest.$ac_objext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 ac_cv_have_decl_fread_unlocked=yes
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 ac_cv_have_decl_fread_unlocked=no
4472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
4475 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
4476 if test $ac_cv_have_decl_fread_unlocked = yes; then
4478 cat >>confdefs.h <<_ACEOF
4479 #define HAVE_DECL_FREAD_UNLOCKED 1
4480 _ACEOF
4483 else
4484 cat >>confdefs.h <<_ACEOF
4485 #define HAVE_DECL_FREAD_UNLOCKED 0
4486 _ACEOF
4490 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
4491 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
4492 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495 cat >conftest.$ac_ext <<_ACEOF
4496 /* confdefs.h. */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4501 $ac_includes_default
4503 main ()
4505 #ifndef fwrite_unlocked
4506 char *p = (char *) fwrite_unlocked;
4507 #endif
4510 return 0;
4512 _ACEOF
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>conftest.er1
4516 ac_status=$?
4517 grep -v '^ *+' conftest.er1 >conftest.err
4518 rm -f conftest.er1
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -z "$ac_c_werror_flag"
4523 || test ! -s conftest.err'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; } &&
4529 { ac_try='test -s conftest.$ac_objext'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4535 ac_cv_have_decl_fwrite_unlocked=yes
4536 else
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4540 ac_cv_have_decl_fwrite_unlocked=no
4542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4544 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
4545 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
4546 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
4548 cat >>confdefs.h <<_ACEOF
4549 #define HAVE_DECL_FWRITE_UNLOCKED 1
4550 _ACEOF
4553 else
4554 cat >>confdefs.h <<_ACEOF
4555 #define HAVE_DECL_FWRITE_UNLOCKED 0
4556 _ACEOF
4560 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
4561 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
4562 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 $ac_includes_default
4573 main ()
4575 #ifndef getchar_unlocked
4576 char *p = (char *) getchar_unlocked;
4577 #endif
4580 return 0;
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 ac_cv_have_decl_getchar_unlocked=yes
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ac_cv_have_decl_getchar_unlocked=no
4612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4614 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
4615 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
4616 if test $ac_cv_have_decl_getchar_unlocked = yes; then
4618 cat >>confdefs.h <<_ACEOF
4619 #define HAVE_DECL_GETCHAR_UNLOCKED 1
4620 _ACEOF
4623 else
4624 cat >>confdefs.h <<_ACEOF
4625 #define HAVE_DECL_GETCHAR_UNLOCKED 0
4626 _ACEOF
4630 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
4631 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
4632 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 $ac_includes_default
4643 main ()
4645 #ifndef getc_unlocked
4646 char *p = (char *) getc_unlocked;
4647 #endif
4650 return 0;
4652 _ACEOF
4653 rm -f conftest.$ac_objext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_have_decl_getc_unlocked=yes
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_cv_have_decl_getc_unlocked=no
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
4685 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
4686 if test $ac_cv_have_decl_getc_unlocked = yes; then
4688 cat >>confdefs.h <<_ACEOF
4689 #define HAVE_DECL_GETC_UNLOCKED 1
4690 _ACEOF
4693 else
4694 cat >>confdefs.h <<_ACEOF
4695 #define HAVE_DECL_GETC_UNLOCKED 0
4696 _ACEOF
4700 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
4701 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
4702 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h. */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 $ac_includes_default
4713 main ()
4715 #ifndef putchar_unlocked
4716 char *p = (char *) putchar_unlocked;
4717 #endif
4720 return 0;
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725 (eval $ac_compile) 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try='test -z "$ac_c_werror_flag"
4733 || test ! -s conftest.err'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; } &&
4739 { ac_try='test -s conftest.$ac_objext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_cv_have_decl_putchar_unlocked=yes
4746 else
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 ac_cv_have_decl_putchar_unlocked=no
4752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
4755 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
4756 if test $ac_cv_have_decl_putchar_unlocked = yes; then
4758 cat >>confdefs.h <<_ACEOF
4759 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
4760 _ACEOF
4763 else
4764 cat >>confdefs.h <<_ACEOF
4765 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
4766 _ACEOF
4770 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
4771 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
4772 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775 cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h. */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4781 $ac_includes_default
4783 main ()
4785 #ifndef putc_unlocked
4786 char *p = (char *) putc_unlocked;
4787 #endif
4790 return 0;
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795 (eval $ac_compile) 2>conftest.er1
4796 ac_status=$?
4797 grep -v '^ *+' conftest.er1 >conftest.err
4798 rm -f conftest.er1
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -z "$ac_c_werror_flag"
4803 || test ! -s conftest.err'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_cv_have_decl_putc_unlocked=yes
4816 else
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 ac_cv_have_decl_putc_unlocked=no
4822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
4825 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
4826 if test $ac_cv_have_decl_putc_unlocked = yes; then
4828 cat >>confdefs.h <<_ACEOF
4829 #define HAVE_DECL_PUTC_UNLOCKED 1
4830 _ACEOF
4833 else
4834 cat >>confdefs.h <<_ACEOF
4835 #define HAVE_DECL_PUTC_UNLOCKED 0
4836 _ACEOF
4843 # Checks for typedefs, structures, and compiler characteristics.
4844 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4845 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4846 if test "${ac_cv_c_const+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4857 main ()
4859 /* FIXME: Include the comments suggested by Paul. */
4860 #ifndef __cplusplus
4861 /* Ultrix mips cc rejects this. */
4862 typedef int charset[2];
4863 const charset x;
4864 /* SunOS 4.1.1 cc rejects this. */
4865 char const *const *ccp;
4866 char **p;
4867 /* NEC SVR4.0.2 mips cc rejects this. */
4868 struct point {int x, y;};
4869 static struct point const zero = {0,0};
4870 /* AIX XL C 1.02.0.0 rejects this.
4871 It does not let you subtract one const X* pointer from another in
4872 an arm of an if-expression whose if-part is not a constant
4873 expression */
4874 const char *g = "string";
4875 ccp = &g + (g ? g-g : 0);
4876 /* HPUX 7.0 cc rejects these. */
4877 ++ccp;
4878 p = (char**) ccp;
4879 ccp = (char const *const *) p;
4880 { /* SCO 3.2v4 cc rejects this. */
4881 char *t;
4882 char const *s = 0 ? (char *) 0 : (char const *) 0;
4884 *t++ = 0;
4886 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4887 int x[] = {25, 17};
4888 const int *foo = &x[0];
4889 ++foo;
4891 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4892 typedef const int *iptr;
4893 iptr p = 0;
4894 ++p;
4896 { /* AIX XL C 1.02.0.0 rejects this saying
4897 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4898 struct s { int j; const int *ap[3]; };
4899 struct s *b; b->j = 5;
4901 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4902 const int foo = 10;
4904 #endif
4907 return 0;
4909 _ACEOF
4910 rm -f conftest.$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -z "$ac_c_werror_flag"
4920 || test ! -s conftest.err'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 (eval $ac_try) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; } &&
4926 { ac_try='test -s conftest.$ac_objext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 (eval $ac_try) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4932 ac_cv_c_const=yes
4933 else
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 ac_cv_c_const=no
4939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4941 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4942 echo "${ECHO_T}$ac_cv_c_const" >&6
4943 if test $ac_cv_c_const = no; then
4945 cat >>confdefs.h <<\_ACEOF
4946 #define const
4947 _ACEOF
4952 # Checks for library functions.
4954 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4955 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4956 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4957 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4961 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4962 else
4963 # Is the header compilable?
4964 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4965 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 $ac_includes_default
4973 #include <sys/mman.h>
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try='test -z "$ac_c_werror_flag"
4985 || test ! -s conftest.err'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; } &&
4991 { ac_try='test -s conftest.$ac_objext'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 (eval $ac_try) 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4997 ac_header_compiler=yes
4998 else
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 ac_header_compiler=no
5004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5006 echo "${ECHO_T}$ac_header_compiler" >&6
5008 # Is the header present?
5009 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
5010 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h. */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 #include <sys/mman.h>
5018 _ACEOF
5019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } >/dev/null; then
5027 if test -s conftest.err; then
5028 ac_cpp_err=$ac_c_preproc_warn_flag
5029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5030 else
5031 ac_cpp_err=
5033 else
5034 ac_cpp_err=yes
5036 if test -z "$ac_cpp_err"; then
5037 ac_header_preproc=yes
5038 else
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5042 ac_header_preproc=no
5044 rm -f conftest.err conftest.$ac_ext
5045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5046 echo "${ECHO_T}$ac_header_preproc" >&6
5048 # So? What about this header?
5049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5050 yes:no: )
5051 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
5052 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
5054 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
5055 ac_header_preproc=yes
5057 no:yes:* )
5058 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5059 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5060 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
5061 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
5062 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5063 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5064 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
5065 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
5066 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5067 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5068 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5069 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5071 cat <<\_ASBOX
5072 ## -------------------------------------- ##
5073 ## Report this to the fixincludes lists. ##
5074 ## -------------------------------------- ##
5075 _ASBOX
5077 sed "s/^/$as_me: WARNING: /" >&2
5079 esac
5080 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5081 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5082 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 ac_cv_header_sys_mman_h=$ac_header_preproc
5087 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5088 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5091 if test $ac_cv_header_sys_mman_h = yes; then
5092 gcc_header_sys_mman_h=yes
5093 else
5094 gcc_header_sys_mman_h=no
5098 echo "$as_me:$LINENO: checking for mmap" >&5
5099 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5100 if test "${ac_cv_func_mmap+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5111 #define mmap innocuous_mmap
5113 /* System header to define __stub macros and hopefully few prototypes,
5114 which can conflict with char mmap (); below.
5115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116 <limits.h> exists even on freestanding compilers. */
5118 #ifdef __STDC__
5119 # include <limits.h>
5120 #else
5121 # include <assert.h>
5122 #endif
5124 #undef mmap
5126 /* Override any gcc2 internal prototype to avoid an error. */
5127 #ifdef __cplusplus
5128 extern "C"
5130 #endif
5131 /* We use char because int might match the return type of a gcc2
5132 builtin and then its argument prototype would still apply. */
5133 char mmap ();
5134 /* The GNU C library defines this for functions which it implements
5135 to always fail with ENOSYS. Some functions are actually named
5136 something starting with __ and the normal name is an alias. */
5137 #if defined (__stub_mmap) || defined (__stub___mmap)
5138 choke me
5139 #else
5140 char (*f) () = mmap;
5141 #endif
5142 #ifdef __cplusplus
5144 #endif
5147 main ()
5149 return f != mmap;
5151 return 0;
5153 _ACEOF
5154 rm -f conftest.$ac_objext conftest$ac_exeext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156 (eval $ac_link) 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -z "$ac_c_werror_flag"
5164 || test ! -s conftest.err'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; } &&
5170 { ac_try='test -s conftest$ac_exeext'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 (eval $ac_try) 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; }; then
5176 ac_cv_func_mmap=yes
5177 else
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 ac_cv_func_mmap=no
5183 rm -f conftest.err conftest.$ac_objext \
5184 conftest$ac_exeext conftest.$ac_ext
5186 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5187 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5188 if test $ac_cv_func_mmap = yes; then
5189 gcc_func_mmap=yes
5190 else
5191 gcc_func_mmap=no
5194 if test "$gcc_header_sys_mman_h" != yes \
5195 || test "$gcc_func_mmap" != yes; then
5196 gcc_cv_func_mmap_file=no
5197 gcc_cv_func_mmap_dev_zero=no
5198 gcc_cv_func_mmap_anon=no
5199 else
5200 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5201 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5202 if test "${gcc_cv_func_mmap_file+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 # Add a system to this blacklist if
5206 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5207 # memory area containing the same data that you'd get if you applied
5208 # read() to the same fd. The only system known to have a problem here
5209 # is VMS, where text files have record structure.
5210 case "$host_os" in
5211 vms* | ultrix*)
5212 gcc_cv_func_mmap_file=no ;;
5214 gcc_cv_func_mmap_file=yes;;
5215 esac
5217 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
5218 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
5219 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5220 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5221 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 # Add a system to this blacklist if it has mmap() but /dev/zero
5225 # does not exist, or if mmapping /dev/zero does not give anonymous
5226 # zeroed pages with both the following properties:
5227 # 1. If you map N consecutive pages in with one call, and then
5228 # unmap any subset of those pages, the pages that were not
5229 # explicitly unmapped remain accessible.
5230 # 2. If you map two adjacent blocks of memory and then unmap them
5231 # both at once, they must both go away.
5232 # Systems known to be in this category are Windows (all variants),
5233 # VMS, and Darwin.
5234 case "$host_os" in
5235 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5236 gcc_cv_func_mmap_dev_zero=no ;;
5238 gcc_cv_func_mmap_dev_zero=yes;;
5239 esac
5241 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
5242 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
5244 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5245 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5246 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5247 if test "${gcc_cv_decl_map_anon+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h. */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 #include <sys/types.h>
5257 #include <sys/mman.h>
5258 #include <unistd.h>
5260 #ifndef MAP_ANONYMOUS
5261 #define MAP_ANONYMOUS MAP_ANON
5262 #endif
5265 main ()
5267 int n = MAP_ANONYMOUS;
5269 return 0;
5271 _ACEOF
5272 rm -f conftest.$ac_objext
5273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5274 (eval $ac_compile) 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -z "$ac_c_werror_flag"
5282 || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 gcc_cv_decl_map_anon=yes
5295 else
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5299 gcc_cv_decl_map_anon=no
5301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5303 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
5304 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
5306 if test $gcc_cv_decl_map_anon = no; then
5307 gcc_cv_func_mmap_anon=no
5308 else
5309 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5310 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5311 if test "${gcc_cv_func_mmap_anon+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 # Add a system to this blacklist if it has mmap() and MAP_ANON or
5315 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5316 # doesn't give anonymous zeroed pages with the same properties listed
5317 # above for use of /dev/zero.
5318 # Systems known to be in this category are Windows, VMS, and SCO Unix.
5319 case "$host_os" in
5320 vms* | cygwin* | pe | mingw* | sco* | udk* )
5321 gcc_cv_func_mmap_anon=no ;;
5323 gcc_cv_func_mmap_anon=yes;;
5324 esac
5326 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
5327 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
5331 if test $gcc_cv_func_mmap_file = yes; then
5333 cat >>confdefs.h <<\_ACEOF
5334 #define HAVE_MMAP_FILE 1
5335 _ACEOF
5338 if test $gcc_cv_func_mmap_dev_zero = yes; then
5340 cat >>confdefs.h <<\_ACEOF
5341 #define HAVE_MMAP_DEV_ZERO 1
5342 _ACEOF
5345 if test $gcc_cv_func_mmap_anon = yes; then
5347 cat >>confdefs.h <<\_ACEOF
5348 #define HAVE_MMAP_ANON 1
5349 _ACEOF
5354 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5355 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5356 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5357 if test "${enable_maintainer_mode+set}" = set; then
5358 enableval="$enable_maintainer_mode"
5359 USE_MAINTAINER_MODE=$enableval
5360 else
5361 USE_MAINTAINER_MODE=no
5363 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5364 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5365 if test "$USE_MAINTAINER_MODE" = yes; then
5366 MAINT=
5367 else
5368 MAINT='#'
5372 ac_config_headers="$ac_config_headers config.h"
5374 ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in"
5376 cat >confcache <<\_ACEOF
5377 # This file is a shell script that caches the results of configure
5378 # tests run on this system so they can be shared between configure
5379 # scripts and configure runs, see configure's option --config-cache.
5380 # It is not useful on other systems. If it contains results you don't
5381 # want to keep, you may remove or edit it.
5383 # config.status only pays attention to the cache file if you give it
5384 # the --recheck option to rerun configure.
5386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5388 # following values.
5390 _ACEOF
5392 # The following way of writing the cache mishandles newlines in values,
5393 # but we know of no workaround that is simple, portable, and efficient.
5394 # So, don't put newlines in cache variables' values.
5395 # Ultrix sh set writes to stderr and can't be redirected directly,
5396 # and sets the high bit in the cache file unless we assign to the vars.
5398 (set) 2>&1 |
5399 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5400 *ac_space=\ *)
5401 # `set' does not quote correctly, so add quotes (double-quote
5402 # substitution turns \\\\ into \\, and sed turns \\ into \).
5403 sed -n \
5404 "s/'/'\\\\''/g;
5405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5408 # `set' quotes correctly as required by POSIX, so do not add quotes.
5409 sed -n \
5410 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5412 esac;
5414 sed '
5415 t clear
5416 : clear
5417 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5418 t end
5419 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5420 : end' >>confcache
5421 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5422 if test -w $cache_file; then
5423 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5424 cat confcache >$cache_file
5425 else
5426 echo "not updating unwritable cache $cache_file"
5429 rm -f confcache
5431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5432 # Let make expand exec_prefix.
5433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5435 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5436 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5437 # trailing colons and then remove the whole line if VPATH becomes empty
5438 # (actually we leave an empty line to preserve line numbers).
5439 if test "x$srcdir" = x.; then
5440 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5441 s/:*\$(srcdir):*/:/;
5442 s/:*\${srcdir}:*/:/;
5443 s/:*@srcdir@:*/:/;
5444 s/^\([^=]*=[ ]*\):*/\1/;
5445 s/:*$//;
5446 s/^[^=]*=[ ]*$//;
5450 DEFS=-DHAVE_CONFIG_H
5452 ac_libobjs=
5453 ac_ltlibobjs=
5454 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5455 # 1. Remove the extension, and $U if already installed.
5456 ac_i=`echo "$ac_i" |
5457 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5458 # 2. Add them.
5459 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5460 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5461 done
5462 LIBOBJS=$ac_libobjs
5464 LTLIBOBJS=$ac_ltlibobjs
5468 : ${CONFIG_STATUS=./config.status}
5469 ac_clean_files_save=$ac_clean_files
5470 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5471 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5472 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5473 cat >$CONFIG_STATUS <<_ACEOF
5474 #! $SHELL
5475 # Generated by $as_me.
5476 # Run this file to recreate the current configuration.
5477 # Compiler output produced by configure, useful for debugging
5478 # configure, is in config.log if it exists.
5480 debug=false
5481 ac_cs_recheck=false
5482 ac_cs_silent=false
5483 SHELL=\${CONFIG_SHELL-$SHELL}
5484 _ACEOF
5486 cat >>$CONFIG_STATUS <<\_ACEOF
5487 ## --------------------- ##
5488 ## M4sh Initialization. ##
5489 ## --------------------- ##
5491 # Be Bourne compatible
5492 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5493 emulate sh
5494 NULLCMD=:
5495 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5496 # is contrary to our usage. Disable this feature.
5497 alias -g '${1+"$@"}'='"$@"'
5498 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5499 set -o posix
5501 DUALCASE=1; export DUALCASE # for MKS sh
5503 # Support unset when possible.
5504 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5505 as_unset=unset
5506 else
5507 as_unset=false
5511 # Work around bugs in pre-3.0 UWIN ksh.
5512 $as_unset ENV MAIL MAILPATH
5513 PS1='$ '
5514 PS2='> '
5515 PS4='+ '
5517 # NLS nuisances.
5518 for as_var in \
5519 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5520 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5521 LC_TELEPHONE LC_TIME
5523 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5524 eval $as_var=C; export $as_var
5525 else
5526 $as_unset $as_var
5528 done
5530 # Required to use basename.
5531 if expr a : '\(a\)' >/dev/null 2>&1; then
5532 as_expr=expr
5533 else
5534 as_expr=false
5537 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5538 as_basename=basename
5539 else
5540 as_basename=false
5544 # Name of the executable.
5545 as_me=`$as_basename "$0" ||
5546 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5547 X"$0" : 'X\(//\)$' \| \
5548 X"$0" : 'X\(/\)$' \| \
5549 . : '\(.\)' 2>/dev/null ||
5550 echo X/"$0" |
5551 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5552 /^X\/\(\/\/\)$/{ s//\1/; q; }
5553 /^X\/\(\/\).*/{ s//\1/; q; }
5554 s/.*/./; q'`
5557 # PATH needs CR, and LINENO needs CR and PATH.
5558 # Avoid depending upon Character Ranges.
5559 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5560 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5561 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5562 as_cr_digits='0123456789'
5563 as_cr_alnum=$as_cr_Letters$as_cr_digits
5565 # The user is always right.
5566 if test "${PATH_SEPARATOR+set}" != set; then
5567 echo "#! /bin/sh" >conf$$.sh
5568 echo "exit 0" >>conf$$.sh
5569 chmod +x conf$$.sh
5570 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5571 PATH_SEPARATOR=';'
5572 else
5573 PATH_SEPARATOR=:
5575 rm -f conf$$.sh
5579 as_lineno_1=$LINENO
5580 as_lineno_2=$LINENO
5581 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5582 test "x$as_lineno_1" != "x$as_lineno_2" &&
5583 test "x$as_lineno_3" = "x$as_lineno_2" || {
5584 # Find who we are. Look in the path if we contain no path at all
5585 # relative or not.
5586 case $0 in
5587 *[\\/]* ) as_myself=$0 ;;
5588 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5594 done
5597 esac
5598 # We did not find ourselves, most probably we were run as `sh COMMAND'
5599 # in which case we are not to be found in the path.
5600 if test "x$as_myself" = x; then
5601 as_myself=$0
5603 if test ! -f "$as_myself"; then
5604 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5605 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5606 { (exit 1); exit 1; }; }
5608 case $CONFIG_SHELL in
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for as_base in sh bash ksh sh5; do
5616 case $as_dir in
5618 if ("$as_dir/$as_base" -c '
5619 as_lineno_1=$LINENO
5620 as_lineno_2=$LINENO
5621 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5622 test "x$as_lineno_1" != "x$as_lineno_2" &&
5623 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5624 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5625 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5626 CONFIG_SHELL=$as_dir/$as_base
5627 export CONFIG_SHELL
5628 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5629 fi;;
5630 esac
5631 done
5632 done
5634 esac
5636 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5637 # uniformly replaced by the line number. The first 'sed' inserts a
5638 # line-number line before each line; the second 'sed' does the real
5639 # work. The second script uses 'N' to pair each line-number line
5640 # with the numbered line, and appends trailing '-' during
5641 # substitution so that $LINENO is not a special case at line end.
5642 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5643 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5644 sed '=' <$as_myself |
5645 sed '
5647 s,$,-,
5648 : loop
5649 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5650 t loop
5651 s,-$,,
5652 s,^['$as_cr_digits']*\n,,
5653 ' >$as_me.lineno &&
5654 chmod +x $as_me.lineno ||
5655 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5656 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5657 { (exit 1); exit 1; }; }
5659 # Don't try to exec as it changes $[0], causing all sort of problems
5660 # (the dirname of $[0] is not the place where we might find the
5661 # original and so on. Autoconf is especially sensible to this).
5662 . ./$as_me.lineno
5663 # Exit status is that of the last command.
5664 exit
5668 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5669 *c*,-n*) ECHO_N= ECHO_C='
5670 ' ECHO_T=' ' ;;
5671 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5672 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5673 esac
5675 if expr a : '\(a\)' >/dev/null 2>&1; then
5676 as_expr=expr
5677 else
5678 as_expr=false
5681 rm -f conf$$ conf$$.exe conf$$.file
5682 echo >conf$$.file
5683 if ln -s conf$$.file conf$$ 2>/dev/null; then
5684 # We could just check for DJGPP; but this test a) works b) is more generic
5685 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5686 if test -f conf$$.exe; then
5687 # Don't use ln at all; we don't have any links
5688 as_ln_s='cp -p'
5689 else
5690 as_ln_s='ln -s'
5692 elif ln conf$$.file conf$$ 2>/dev/null; then
5693 as_ln_s=ln
5694 else
5695 as_ln_s='cp -p'
5697 rm -f conf$$ conf$$.exe conf$$.file
5699 if mkdir -p . 2>/dev/null; then
5700 as_mkdir_p=:
5701 else
5702 test -d ./-p && rmdir ./-p
5703 as_mkdir_p=false
5706 as_executable_p="test -f"
5708 # Sed expression to map a string onto a valid CPP name.
5709 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5711 # Sed expression to map a string onto a valid variable name.
5712 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5715 # IFS
5716 # We need space, tab and new line, in precisely that order.
5717 as_nl='
5719 IFS=" $as_nl"
5721 # CDPATH.
5722 $as_unset CDPATH
5724 exec 6>&1
5726 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5727 # report actual input values of CONFIG_FILES etc. instead of their
5728 # values after options handling. Logging --version etc. is OK.
5729 exec 5>>config.log
5731 echo
5732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5733 ## Running $as_me. ##
5734 _ASBOX
5735 } >&5
5736 cat >&5 <<_CSEOF
5738 This file was extended by fixincludes $as_me , which was
5739 generated by GNU Autoconf 2.59. Invocation command line was
5741 CONFIG_FILES = $CONFIG_FILES
5742 CONFIG_HEADERS = $CONFIG_HEADERS
5743 CONFIG_LINKS = $CONFIG_LINKS
5744 CONFIG_COMMANDS = $CONFIG_COMMANDS
5745 $ $0 $@
5747 _CSEOF
5748 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5749 echo >&5
5750 _ACEOF
5752 # Files that config.status was made for.
5753 if test -n "$ac_config_files"; then
5754 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5757 if test -n "$ac_config_headers"; then
5758 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5761 if test -n "$ac_config_links"; then
5762 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5765 if test -n "$ac_config_commands"; then
5766 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5769 cat >>$CONFIG_STATUS <<\_ACEOF
5771 ac_cs_usage="\
5772 \`$as_me' instantiates files from templates according to the
5773 current configuration.
5775 Usage: $0 [OPTIONS] [FILE]...
5777 -h, --help print this help, then exit
5778 -V, --version print version number, then exit
5779 -q, --quiet do not print progress messages
5780 -d, --debug don't remove temporary files
5781 --recheck update $as_me by reconfiguring in the same conditions
5782 --file=FILE[:TEMPLATE]
5783 instantiate the configuration file FILE
5784 --header=FILE[:TEMPLATE]
5785 instantiate the configuration header FILE
5787 Configuration files:
5788 $config_files
5790 Configuration headers:
5791 $config_headers
5793 Report bugs to <bug-autoconf@gnu.org>."
5794 _ACEOF
5796 cat >>$CONFIG_STATUS <<_ACEOF
5797 ac_cs_version="\\
5798 fixincludes config.status
5799 configured by $0, generated by GNU Autoconf 2.59,
5800 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5802 Copyright (C) 2003 Free Software Foundation, Inc.
5803 This config.status script is free software; the Free Software Foundation
5804 gives unlimited permission to copy, distribute and modify it."
5805 srcdir=$srcdir
5806 _ACEOF
5808 cat >>$CONFIG_STATUS <<\_ACEOF
5809 # If no file are specified by the user, then we need to provide default
5810 # value. By we need to know if files were specified by the user.
5811 ac_need_defaults=:
5812 while test $# != 0
5814 case $1 in
5815 --*=*)
5816 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5817 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5818 ac_shift=:
5821 ac_option=$1
5822 ac_optarg=$2
5823 ac_shift=shift
5825 *) # This is not an option, so the user has probably given explicit
5826 # arguments.
5827 ac_option=$1
5828 ac_need_defaults=false;;
5829 esac
5831 case $ac_option in
5832 # Handling of the options.
5833 _ACEOF
5834 cat >>$CONFIG_STATUS <<\_ACEOF
5835 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5836 ac_cs_recheck=: ;;
5837 --version | --vers* | -V )
5838 echo "$ac_cs_version"; exit 0 ;;
5839 --he | --h)
5840 # Conflict between --help and --header
5841 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5842 Try \`$0 --help' for more information." >&5
5843 echo "$as_me: error: ambiguous option: $1
5844 Try \`$0 --help' for more information." >&2;}
5845 { (exit 1); exit 1; }; };;
5846 --help | --hel | -h )
5847 echo "$ac_cs_usage"; exit 0 ;;
5848 --debug | --d* | -d )
5849 debug=: ;;
5850 --file | --fil | --fi | --f )
5851 $ac_shift
5852 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5853 ac_need_defaults=false;;
5854 --header | --heade | --head | --hea )
5855 $ac_shift
5856 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5857 ac_need_defaults=false;;
5858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5860 ac_cs_silent=: ;;
5862 # This is an error.
5863 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5864 Try \`$0 --help' for more information." >&5
5865 echo "$as_me: error: unrecognized option: $1
5866 Try \`$0 --help' for more information." >&2;}
5867 { (exit 1); exit 1; }; } ;;
5869 *) ac_config_targets="$ac_config_targets $1" ;;
5871 esac
5872 shift
5873 done
5875 ac_configure_extra_args=
5877 if $ac_cs_silent; then
5878 exec 6>/dev/null
5879 ac_configure_extra_args="$ac_configure_extra_args --silent"
5882 _ACEOF
5883 cat >>$CONFIG_STATUS <<_ACEOF
5884 if \$ac_cs_recheck; then
5885 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5886 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5889 _ACEOF
5895 cat >>$CONFIG_STATUS <<\_ACEOF
5896 for ac_config_target in $ac_config_targets
5898 case "$ac_config_target" in
5899 # Handling of arguments.
5900 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5901 "mkheaders.almost" ) CONFIG_FILES="$CONFIG_FILES mkheaders.almost:mkheaders.in" ;;
5902 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5903 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5904 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5905 { (exit 1); exit 1; }; };;
5906 esac
5907 done
5909 # If the user did not use the arguments to specify the items to instantiate,
5910 # then the envvar interface is used. Set only those that are not.
5911 # We use the long form for the default assignment because of an extremely
5912 # bizarre bug on SunOS 4.1.3.
5913 if $ac_need_defaults; then
5914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5918 # Have a temporary directory for convenience. Make it in the build tree
5919 # simply because there is no reason to put it here, and in addition,
5920 # creating and moving files from /tmp can sometimes cause problems.
5921 # Create a temporary directory, and hook for its removal unless debugging.
5922 $debug ||
5924 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5925 trap '{ (exit 1); exit 1; }' 1 2 13 15
5928 # Create a (secure) tmp directory for tmp files.
5931 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5932 test -n "$tmp" && test -d "$tmp"
5933 } ||
5935 tmp=./confstat$$-$RANDOM
5936 (umask 077 && mkdir $tmp)
5937 } ||
5939 echo "$me: cannot create a temporary directory in ." >&2
5940 { (exit 1); exit 1; }
5943 _ACEOF
5945 cat >>$CONFIG_STATUS <<_ACEOF
5948 # CONFIG_FILES section.
5951 # No need to generate the scripts if there are no CONFIG_FILES.
5952 # This happens for instance when ./config.status config.h
5953 if test -n "\$CONFIG_FILES"; then
5954 # Protect against being on the right side of a sed subst in config.status.
5955 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5956 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5957 s,@SHELL@,$SHELL,;t t
5958 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5959 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5960 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5961 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5962 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5963 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5964 s,@exec_prefix@,$exec_prefix,;t t
5965 s,@prefix@,$prefix,;t t
5966 s,@program_transform_name@,$program_transform_name,;t t
5967 s,@bindir@,$bindir,;t t
5968 s,@sbindir@,$sbindir,;t t
5969 s,@libexecdir@,$libexecdir,;t t
5970 s,@datadir@,$datadir,;t t
5971 s,@sysconfdir@,$sysconfdir,;t t
5972 s,@sharedstatedir@,$sharedstatedir,;t t
5973 s,@localstatedir@,$localstatedir,;t t
5974 s,@libdir@,$libdir,;t t
5975 s,@includedir@,$includedir,;t t
5976 s,@oldincludedir@,$oldincludedir,;t t
5977 s,@infodir@,$infodir,;t t
5978 s,@mandir@,$mandir,;t t
5979 s,@build_alias@,$build_alias,;t t
5980 s,@host_alias@,$host_alias,;t t
5981 s,@target_alias@,$target_alias,;t t
5982 s,@DEFS@,$DEFS,;t t
5983 s,@ECHO_C@,$ECHO_C,;t t
5984 s,@ECHO_N@,$ECHO_N,;t t
5985 s,@ECHO_T@,$ECHO_T,;t t
5986 s,@LIBS@,$LIBS,;t t
5987 s,@build@,$build,;t t
5988 s,@build_cpu@,$build_cpu,;t t
5989 s,@build_vendor@,$build_vendor,;t t
5990 s,@build_os@,$build_os,;t t
5991 s,@host@,$host,;t t
5992 s,@host_cpu@,$host_cpu,;t t
5993 s,@host_vendor@,$host_vendor,;t t
5994 s,@host_os@,$host_os,;t t
5995 s,@target@,$target,;t t
5996 s,@target_cpu@,$target_cpu,;t t
5997 s,@target_vendor@,$target_vendor,;t t
5998 s,@target_os@,$target_os,;t t
5999 s,@CC@,$CC,;t t
6000 s,@CFLAGS@,$CFLAGS,;t t
6001 s,@LDFLAGS@,$LDFLAGS,;t t
6002 s,@CPPFLAGS@,$CPPFLAGS,;t t
6003 s,@ac_ct_CC@,$ac_ct_CC,;t t
6004 s,@EXEEXT@,$EXEEXT,;t t
6005 s,@OBJEXT@,$OBJEXT,;t t
6006 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6007 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
6008 s,@WERROR@,$WERROR,;t t
6009 s,@target_noncanonical@,$target_noncanonical,;t t
6010 s,@TARGET@,$TARGET,;t t
6011 s,@CPP@,$CPP,;t t
6012 s,@EGREP@,$EGREP,;t t
6013 s,@MAINT@,$MAINT,;t t
6014 s,@LIBOBJS@,$LIBOBJS,;t t
6015 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6016 CEOF
6018 _ACEOF
6020 cat >>$CONFIG_STATUS <<\_ACEOF
6021 # Split the substitutions into bite-sized pieces for seds with
6022 # small command number limits, like on Digital OSF/1 and HP-UX.
6023 ac_max_sed_lines=48
6024 ac_sed_frag=1 # Number of current file.
6025 ac_beg=1 # First line for current file.
6026 ac_end=$ac_max_sed_lines # Line after last line for current file.
6027 ac_more_lines=:
6028 ac_sed_cmds=
6029 while $ac_more_lines; do
6030 if test $ac_beg -gt 1; then
6031 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6032 else
6033 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6035 if test ! -s $tmp/subs.frag; then
6036 ac_more_lines=false
6037 else
6038 # The purpose of the label and of the branching condition is to
6039 # speed up the sed processing (if there are no `@' at all, there
6040 # is no need to browse any of the substitutions).
6041 # These are the two extra sed commands mentioned above.
6042 (echo ':t
6043 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6044 if test -z "$ac_sed_cmds"; then
6045 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6046 else
6047 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6049 ac_sed_frag=`expr $ac_sed_frag + 1`
6050 ac_beg=$ac_end
6051 ac_end=`expr $ac_end + $ac_max_sed_lines`
6053 done
6054 if test -z "$ac_sed_cmds"; then
6055 ac_sed_cmds=cat
6057 fi # test -n "$CONFIG_FILES"
6059 _ACEOF
6060 cat >>$CONFIG_STATUS <<\_ACEOF
6061 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6062 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6063 case $ac_file in
6064 - | *:- | *:-:* ) # input from stdin
6065 cat >$tmp/stdin
6066 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6067 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6068 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6069 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6070 * ) ac_file_in=$ac_file.in ;;
6071 esac
6073 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6074 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6075 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6076 X"$ac_file" : 'X\(//\)[^/]' \| \
6077 X"$ac_file" : 'X\(//\)$' \| \
6078 X"$ac_file" : 'X\(/\)' \| \
6079 . : '\(.\)' 2>/dev/null ||
6080 echo X"$ac_file" |
6081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6083 /^X\(\/\/\)$/{ s//\1/; q; }
6084 /^X\(\/\).*/{ s//\1/; q; }
6085 s/.*/./; q'`
6086 { if $as_mkdir_p; then
6087 mkdir -p "$ac_dir"
6088 else
6089 as_dir="$ac_dir"
6090 as_dirs=
6091 while test ! -d "$as_dir"; do
6092 as_dirs="$as_dir $as_dirs"
6093 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6095 X"$as_dir" : 'X\(//\)[^/]' \| \
6096 X"$as_dir" : 'X\(//\)$' \| \
6097 X"$as_dir" : 'X\(/\)' \| \
6098 . : '\(.\)' 2>/dev/null ||
6099 echo X"$as_dir" |
6100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6101 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6102 /^X\(\/\/\)$/{ s//\1/; q; }
6103 /^X\(\/\).*/{ s//\1/; q; }
6104 s/.*/./; q'`
6105 done
6106 test ! -n "$as_dirs" || mkdir $as_dirs
6107 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6108 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6109 { (exit 1); exit 1; }; }; }
6111 ac_builddir=.
6113 if test "$ac_dir" != .; then
6114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6115 # A "../" for each directory in $ac_dir_suffix.
6116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6117 else
6118 ac_dir_suffix= ac_top_builddir=
6121 case $srcdir in
6122 .) # No --srcdir option. We are building in place.
6123 ac_srcdir=.
6124 if test -z "$ac_top_builddir"; then
6125 ac_top_srcdir=.
6126 else
6127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6128 fi ;;
6129 [\\/]* | ?:[\\/]* ) # Absolute path.
6130 ac_srcdir=$srcdir$ac_dir_suffix;
6131 ac_top_srcdir=$srcdir ;;
6132 *) # Relative path.
6133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6135 esac
6137 # Do not use `cd foo && pwd` to compute absolute paths, because
6138 # the directories may not exist.
6139 case `pwd` in
6140 .) ac_abs_builddir="$ac_dir";;
6142 case "$ac_dir" in
6143 .) ac_abs_builddir=`pwd`;;
6144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6146 esac;;
6147 esac
6148 case $ac_abs_builddir in
6149 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6151 case ${ac_top_builddir}. in
6152 .) ac_abs_top_builddir=$ac_abs_builddir;;
6153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6155 esac;;
6156 esac
6157 case $ac_abs_builddir in
6158 .) ac_abs_srcdir=$ac_srcdir;;
6160 case $ac_srcdir in
6161 .) ac_abs_srcdir=$ac_abs_builddir;;
6162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6164 esac;;
6165 esac
6166 case $ac_abs_builddir in
6167 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6169 case $ac_top_srcdir in
6170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6173 esac;;
6174 esac
6178 if test x"$ac_file" != x-; then
6179 { echo "$as_me:$LINENO: creating $ac_file" >&5
6180 echo "$as_me: creating $ac_file" >&6;}
6181 rm -f "$ac_file"
6183 # Let's still pretend it is `configure' which instantiates (i.e., don't
6184 # use $as_me), people would be surprised to read:
6185 # /* config.h. Generated by config.status. */
6186 if test x"$ac_file" = x-; then
6187 configure_input=
6188 else
6189 configure_input="$ac_file. "
6191 configure_input=$configure_input"Generated from `echo $ac_file_in |
6192 sed 's,.*/,,'` by configure."
6194 # First look for the input files in the build tree, otherwise in the
6195 # src tree.
6196 ac_file_inputs=`IFS=:
6197 for f in $ac_file_in; do
6198 case $f in
6199 -) echo $tmp/stdin ;;
6200 [\\/$]*)
6201 # Absolute (can't be DOS-style, as IFS=:)
6202 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6203 echo "$as_me: error: cannot find input file: $f" >&2;}
6204 { (exit 1); exit 1; }; }
6205 echo "$f";;
6206 *) # Relative
6207 if test -f "$f"; then
6208 # Build tree
6209 echo "$f"
6210 elif test -f "$srcdir/$f"; then
6211 # Source tree
6212 echo "$srcdir/$f"
6213 else
6214 # /dev/null tree
6215 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6216 echo "$as_me: error: cannot find input file: $f" >&2;}
6217 { (exit 1); exit 1; }; }
6218 fi;;
6219 esac
6220 done` || { (exit 1); exit 1; }
6221 _ACEOF
6222 cat >>$CONFIG_STATUS <<_ACEOF
6223 sed "$ac_vpsub
6224 $extrasub
6225 _ACEOF
6226 cat >>$CONFIG_STATUS <<\_ACEOF
6228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6229 s,@configure_input@,$configure_input,;t t
6230 s,@srcdir@,$ac_srcdir,;t t
6231 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6232 s,@top_srcdir@,$ac_top_srcdir,;t t
6233 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6234 s,@builddir@,$ac_builddir,;t t
6235 s,@abs_builddir@,$ac_abs_builddir,;t t
6236 s,@top_builddir@,$ac_top_builddir,;t t
6237 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6238 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6239 rm -f $tmp/stdin
6240 if test x"$ac_file" != x-; then
6241 mv $tmp/out $ac_file
6242 else
6243 cat $tmp/out
6244 rm -f $tmp/out
6247 done
6248 _ACEOF
6249 cat >>$CONFIG_STATUS <<\_ACEOF
6252 # CONFIG_HEADER section.
6255 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6256 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6258 # ac_d sets the value in "#define NAME VALUE" lines.
6259 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6260 ac_dB='[ ].*$,\1#\2'
6261 ac_dC=' '
6262 ac_dD=',;t'
6263 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6264 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6265 ac_uB='$,\1#\2define\3'
6266 ac_uC=' '
6267 ac_uD=',;t'
6269 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6270 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6271 case $ac_file in
6272 - | *:- | *:-:* ) # input from stdin
6273 cat >$tmp/stdin
6274 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6275 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6276 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6277 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6278 * ) ac_file_in=$ac_file.in ;;
6279 esac
6281 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6282 echo "$as_me: creating $ac_file" >&6;}
6284 # First look for the input files in the build tree, otherwise in the
6285 # src tree.
6286 ac_file_inputs=`IFS=:
6287 for f in $ac_file_in; do
6288 case $f in
6289 -) echo $tmp/stdin ;;
6290 [\\/$]*)
6291 # Absolute (can't be DOS-style, as IFS=:)
6292 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6293 echo "$as_me: error: cannot find input file: $f" >&2;}
6294 { (exit 1); exit 1; }; }
6295 # Do quote $f, to prevent DOS paths from being IFS'd.
6296 echo "$f";;
6297 *) # Relative
6298 if test -f "$f"; then
6299 # Build tree
6300 echo "$f"
6301 elif test -f "$srcdir/$f"; then
6302 # Source tree
6303 echo "$srcdir/$f"
6304 else
6305 # /dev/null tree
6306 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6307 echo "$as_me: error: cannot find input file: $f" >&2;}
6308 { (exit 1); exit 1; }; }
6309 fi;;
6310 esac
6311 done` || { (exit 1); exit 1; }
6312 # Remove the trailing spaces.
6313 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6315 _ACEOF
6317 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6318 # `conftest.undefs', that substitutes the proper values into
6319 # config.h.in to produce config.h. The first handles `#define'
6320 # templates, and the second `#undef' templates.
6321 # And first: Protect against being on the right side of a sed subst in
6322 # config.status. Protect against being in an unquoted here document
6323 # in config.status.
6324 rm -f conftest.defines conftest.undefs
6325 # Using a here document instead of a string reduces the quoting nightmare.
6326 # Putting comments in sed scripts is not portable.
6328 # `end' is used to avoid that the second main sed command (meant for
6329 # 0-ary CPP macros) applies to n-ary macro definitions.
6330 # See the Autoconf documentation for `clear'.
6331 cat >confdef2sed.sed <<\_ACEOF
6332 s/[\\&,]/\\&/g
6333 s,[\\$`],\\&,g
6334 t clear
6335 : clear
6336 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6337 t end
6338 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6339 : end
6340 _ACEOF
6341 # If some macros were called several times there might be several times
6342 # the same #defines, which is useless. Nevertheless, we may not want to
6343 # sort them, since we want the *last* AC-DEFINE to be honored.
6344 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6345 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6346 rm -f confdef2sed.sed
6348 # This sed command replaces #undef with comments. This is necessary, for
6349 # example, in the case of _POSIX_SOURCE, which is predefined and required
6350 # on some systems where configure will not decide to define it.
6351 cat >>conftest.undefs <<\_ACEOF
6352 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6353 _ACEOF
6355 # Break up conftest.defines because some shells have a limit on the size
6356 # of here documents, and old seds have small limits too (100 cmds).
6357 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6358 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6359 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6360 echo ' :' >>$CONFIG_STATUS
6361 rm -f conftest.tail
6362 while grep . conftest.defines >/dev/null
6364 # Write a limited-size here document to $tmp/defines.sed.
6365 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6366 # Speed up: don't consider the non `#define' lines.
6367 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6368 # Work around the forget-to-reset-the-flag bug.
6369 echo 't clr' >>$CONFIG_STATUS
6370 echo ': clr' >>$CONFIG_STATUS
6371 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6372 echo 'CEOF
6373 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6374 rm -f $tmp/in
6375 mv $tmp/out $tmp/in
6376 ' >>$CONFIG_STATUS
6377 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6378 rm -f conftest.defines
6379 mv conftest.tail conftest.defines
6380 done
6381 rm -f conftest.defines
6382 echo ' fi # grep' >>$CONFIG_STATUS
6383 echo >>$CONFIG_STATUS
6385 # Break up conftest.undefs because some shells have a limit on the size
6386 # of here documents, and old seds have small limits too (100 cmds).
6387 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6388 rm -f conftest.tail
6389 while grep . conftest.undefs >/dev/null
6391 # Write a limited-size here document to $tmp/undefs.sed.
6392 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6393 # Speed up: don't consider the non `#undef'
6394 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6395 # Work around the forget-to-reset-the-flag bug.
6396 echo 't clr' >>$CONFIG_STATUS
6397 echo ': clr' >>$CONFIG_STATUS
6398 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6399 echo 'CEOF
6400 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6401 rm -f $tmp/in
6402 mv $tmp/out $tmp/in
6403 ' >>$CONFIG_STATUS
6404 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6405 rm -f conftest.undefs
6406 mv conftest.tail conftest.undefs
6407 done
6408 rm -f conftest.undefs
6410 cat >>$CONFIG_STATUS <<\_ACEOF
6411 # Let's still pretend it is `configure' which instantiates (i.e., don't
6412 # use $as_me), people would be surprised to read:
6413 # /* config.h. Generated by config.status. */
6414 if test x"$ac_file" = x-; then
6415 echo "/* Generated by configure. */" >$tmp/config.h
6416 else
6417 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6419 cat $tmp/in >>$tmp/config.h
6420 rm -f $tmp/in
6421 if test x"$ac_file" != x-; then
6422 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6423 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6424 echo "$as_me: $ac_file is unchanged" >&6;}
6425 else
6426 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6428 X"$ac_file" : 'X\(//\)[^/]' \| \
6429 X"$ac_file" : 'X\(//\)$' \| \
6430 X"$ac_file" : 'X\(/\)' \| \
6431 . : '\(.\)' 2>/dev/null ||
6432 echo X"$ac_file" |
6433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6435 /^X\(\/\/\)$/{ s//\1/; q; }
6436 /^X\(\/\).*/{ s//\1/; q; }
6437 s/.*/./; q'`
6438 { if $as_mkdir_p; then
6439 mkdir -p "$ac_dir"
6440 else
6441 as_dir="$ac_dir"
6442 as_dirs=
6443 while test ! -d "$as_dir"; do
6444 as_dirs="$as_dir $as_dirs"
6445 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6447 X"$as_dir" : 'X\(//\)[^/]' \| \
6448 X"$as_dir" : 'X\(//\)$' \| \
6449 X"$as_dir" : 'X\(/\)' \| \
6450 . : '\(.\)' 2>/dev/null ||
6451 echo X"$as_dir" |
6452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6454 /^X\(\/\/\)$/{ s//\1/; q; }
6455 /^X\(\/\).*/{ s//\1/; q; }
6456 s/.*/./; q'`
6457 done
6458 test ! -n "$as_dirs" || mkdir $as_dirs
6459 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6460 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6461 { (exit 1); exit 1; }; }; }
6463 rm -f $ac_file
6464 mv $tmp/config.h $ac_file
6466 else
6467 cat $tmp/config.h
6468 rm -f $tmp/config.h
6470 # Run the commands associated with the file.
6471 case $ac_file in
6472 config.h ) echo timestamp > stamp-h ;;
6473 esac
6474 done
6475 _ACEOF
6477 cat >>$CONFIG_STATUS <<\_ACEOF
6479 { (exit 0); exit 0; }
6480 _ACEOF
6481 chmod +x $CONFIG_STATUS
6482 ac_clean_files=$ac_clean_files_save
6485 # configure is writing to config.log, and then calls config.status.
6486 # config.status does its own redirection, appending to config.log.
6487 # Unfortunately, on DOS this fails, as config.log is still kept open
6488 # by configure, so config.status won't be able to write to it; its
6489 # output is simply discarded. So we exec the FD to /dev/null,
6490 # effectively closing config.log, so it can be properly (re)opened and
6491 # appended to by config.status. When coming back to configure, we
6492 # need to make the FD available again.
6493 if test "$no_create" != yes; then
6494 ac_cs_success=:
6495 ac_config_status_args=
6496 test "$silent" = yes &&
6497 ac_config_status_args="$ac_config_status_args --quiet"
6498 exec 5>/dev/null
6499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6500 exec 5>>config.log
6501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6502 # would make configure fail if this is the last instruction.
6503 $ac_cs_success || { (exit 1); exit 1; }