2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
[official-gcc.git] / fixincludes / configure
blobb0116f9cad79ab758cc0920d6238ec7d96cf56ee
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 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-twoprocess Use a separate process to apply the fixes
851 --enable-maintainer-mode enable make rules and dependencies not useful
852 (and sometimes confusing) to the casual installer
854 Some influential environment variables:
855 CC C compiler command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
858 nonstandard directory <lib dir>
859 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
860 headers in a nonstandard directory <include dir>
861 CPP C preprocessor
863 Use these variables to override the choices made by `configure' or to help
864 it to find libraries and programs with nonstandard names/locations.
866 _ACEOF
869 if test "$ac_init_help" = "recursive"; then
870 # If there are subdirs, report their specific --help.
871 ac_popdir=`pwd`
872 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
873 test -d $ac_dir || continue
874 ac_builddir=.
876 if test "$ac_dir" != .; then
877 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
878 # A "../" for each directory in $ac_dir_suffix.
879 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
880 else
881 ac_dir_suffix= ac_top_builddir=
884 case $srcdir in
885 .) # No --srcdir option. We are building in place.
886 ac_srcdir=.
887 if test -z "$ac_top_builddir"; then
888 ac_top_srcdir=.
889 else
890 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
891 fi ;;
892 [\\/]* | ?:[\\/]* ) # Absolute path.
893 ac_srcdir=$srcdir$ac_dir_suffix;
894 ac_top_srcdir=$srcdir ;;
895 *) # Relative path.
896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
897 ac_top_srcdir=$ac_top_builddir$srcdir ;;
898 esac
900 # Do not use `cd foo && pwd` to compute absolute paths, because
901 # the directories may not exist.
902 case `pwd` in
903 .) ac_abs_builddir="$ac_dir";;
905 case "$ac_dir" in
906 .) ac_abs_builddir=`pwd`;;
907 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
908 *) ac_abs_builddir=`pwd`/"$ac_dir";;
909 esac;;
910 esac
911 case $ac_abs_builddir in
912 .) ac_abs_top_builddir=${ac_top_builddir}.;;
914 case ${ac_top_builddir}. in
915 .) ac_abs_top_builddir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
917 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
918 esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_srcdir=$ac_srcdir;;
923 case $ac_srcdir in
924 .) ac_abs_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
926 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
927 esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_top_srcdir=$ac_top_srcdir;;
932 case $ac_top_srcdir in
933 .) ac_abs_top_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
935 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
936 esac;;
937 esac
939 cd $ac_dir
940 # Check for guested configure; otherwise get Cygnus style configure.
941 if test -f $ac_srcdir/configure.gnu; then
942 echo
943 $SHELL $ac_srcdir/configure.gnu --help=recursive
944 elif test -f $ac_srcdir/configure; then
945 echo
946 $SHELL $ac_srcdir/configure --help=recursive
947 elif test -f $ac_srcdir/configure.ac ||
948 test -f $ac_srcdir/configure.in; then
949 echo
950 $ac_configure --help
951 else
952 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954 cd "$ac_popdir"
955 done
958 test -n "$ac_init_help" && exit 0
959 if $ac_init_version; then
960 cat <<\_ACEOF
961 fixincludes configure
962 generated by GNU Autoconf 2.59
964 Copyright (C) 2003 Free Software Foundation, Inc.
965 This configure script is free software; the Free Software Foundation
966 gives unlimited permission to copy, distribute and modify it.
967 _ACEOF
968 exit 0
970 exec 5>config.log
971 cat >&5 <<_ACEOF
972 This file contains any messages produced by compilers while
973 running configure, to aid debugging if configure makes a mistake.
975 It was created by fixincludes $as_me , which was
976 generated by GNU Autoconf 2.59. Invocation command line was
978 $ $0 $@
980 _ACEOF
982 cat <<_ASUNAME
983 ## --------- ##
984 ## Platform. ##
985 ## --------- ##
987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1004 _ASUNAME
1006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007 for as_dir in $PATH
1009 IFS=$as_save_IFS
1010 test -z "$as_dir" && as_dir=.
1011 echo "PATH: $as_dir"
1012 done
1014 } >&5
1016 cat >&5 <<_ACEOF
1019 ## ----------- ##
1020 ## Core tests. ##
1021 ## ----------- ##
1023 _ACEOF
1026 # Keep a trace of the command line.
1027 # Strip out --no-create and --no-recursion so they do not pile up.
1028 # Strip out --silent because we don't want to record it for future runs.
1029 # Also quote any args containing shell meta-characters.
1030 # Make two passes to allow for proper duplicate-argument suppression.
1031 ac_configure_args=
1032 ac_configure_args0=
1033 ac_configure_args1=
1034 ac_sep=
1035 ac_must_keep_next=false
1036 for ac_pass in 1 2
1038 for ac_arg
1040 case $ac_arg in
1041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1044 continue ;;
1045 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1046 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1047 esac
1048 case $ac_pass in
1049 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1052 if test $ac_must_keep_next = true; then
1053 ac_must_keep_next=false # Got value, back to normal.
1054 else
1055 case $ac_arg in
1056 *=* | --config-cache | -C | -disable-* | --disable-* \
1057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1059 | -with-* | --with-* | -without-* | --without-* | --x)
1060 case "$ac_configure_args0 " in
1061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062 esac
1064 -* ) ac_must_keep_next=true ;;
1065 esac
1067 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1068 # Get rid of the leading space.
1069 ac_sep=" "
1071 esac
1072 done
1073 done
1074 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1075 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077 # When interrupted or exit'd, cleanup temporary files, and complete
1078 # config.log. We remove comments because anyway the quotes in there
1079 # would cause problems or look ugly.
1080 # WARNING: Be sure not to use single quotes in there, as some shells,
1081 # such as our DU 5.0 friend, will then `close' the trap.
1082 trap 'exit_status=$?
1083 # Save into config.log some information that might help in debugging.
1085 echo
1087 cat <<\_ASBOX
1088 ## ---------------- ##
1089 ## Cache variables. ##
1090 ## ---------------- ##
1091 _ASBOX
1092 echo
1093 # The following way of writing the cache mishandles newlines in values,
1095 (set) 2>&1 |
1096 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097 *ac_space=\ *)
1098 sed -n \
1099 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103 sed -n \
1104 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106 esac;
1108 echo
1110 cat <<\_ASBOX
1111 ## ----------------- ##
1112 ## Output variables. ##
1113 ## ----------------- ##
1114 _ASBOX
1115 echo
1116 for ac_var in $ac_subst_vars
1118 eval ac_val=$`echo $ac_var`
1119 echo "$ac_var='"'"'$ac_val'"'"'"
1120 done | sort
1121 echo
1123 if test -n "$ac_subst_files"; then
1124 cat <<\_ASBOX
1125 ## ------------- ##
1126 ## Output files. ##
1127 ## ------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_files
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1138 if test -s confdefs.h; then
1139 cat <<\_ASBOX
1140 ## ----------- ##
1141 ## confdefs.h. ##
1142 ## ----------- ##
1143 _ASBOX
1144 echo
1145 sed "/^$/d" confdefs.h | sort
1146 echo
1148 test "$ac_signal" != 0 &&
1149 echo "$as_me: caught signal $ac_signal"
1150 echo "$as_me: exit $exit_status"
1151 } >&5
1152 rm -f core *.core &&
1153 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1154 exit $exit_status
1156 for ac_signal in 1 2 13 15; do
1157 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1158 done
1159 ac_signal=0
1161 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1162 rm -rf conftest* confdefs.h
1163 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164 echo >confdefs.h
1166 # Predefined preprocessor variables.
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_NAME "$PACKAGE_NAME"
1170 _ACEOF
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_STRING "$PACKAGE_STRING"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1190 _ACEOF
1193 # Let the site file select an alternate cache file if it wants to.
1194 # Prefer explicitly selected file to automatically selected ones.
1195 if test -z "$CONFIG_SITE"; then
1196 if test "x$prefix" != xNONE; then
1197 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1198 else
1199 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 for ac_site_file in $CONFIG_SITE; do
1203 if test -r "$ac_site_file"; then
1204 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1205 echo "$as_me: loading site script $ac_site_file" >&6;}
1206 sed 's/^/| /' "$ac_site_file" >&5
1207 . "$ac_site_file"
1209 done
1211 if test -r "$cache_file"; then
1212 # Some versions of bash will fail to source /dev/null (special
1213 # files actually), so we avoid doing that.
1214 if test -f "$cache_file"; then
1215 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1216 echo "$as_me: loading cache $cache_file" >&6;}
1217 case $cache_file in
1218 [\\/]* | ?:[\\/]* ) . $cache_file;;
1219 *) . ./$cache_file;;
1220 esac
1222 else
1223 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1224 echo "$as_me: creating cache $cache_file" >&6;}
1225 >$cache_file
1228 # Check that the precious variables saved in the cache have kept the same
1229 # value.
1230 ac_cache_corrupted=false
1231 for ac_var in `(set) 2>&1 |
1232 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1234 eval ac_new_set=\$ac_env_${ac_var}_set
1235 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1236 eval ac_new_val="\$ac_env_${ac_var}_value"
1237 case $ac_old_set,$ac_new_set in
1238 set,)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,set)
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1245 ac_cache_corrupted=: ;;
1246 ,);;
1248 if test "x$ac_old_val" != "x$ac_new_val"; then
1249 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1250 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1251 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1252 echo "$as_me: former value: $ac_old_val" >&2;}
1253 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1254 echo "$as_me: current value: $ac_new_val" >&2;}
1255 ac_cache_corrupted=:
1256 fi;;
1257 esac
1258 # Pass precious variables to config.status.
1259 if test "$ac_new_set" = set; then
1260 case $ac_new_val in
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 *) ac_arg=$ac_var=$ac_new_val ;;
1264 esac
1265 case " $ac_configure_args " in
1266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1267 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1268 esac
1270 done
1271 if $ac_cache_corrupted; then
1272 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1273 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1274 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1275 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1276 { (exit 1); exit 1; }; }
1279 ac_ext=c
1280 ac_cpp='$CPP $CPPFLAGS'
1281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312 ac_aux_dir=
1313 for ac_dir in .. $srcdir/..; do
1314 if test -f $ac_dir/install-sh; then
1315 ac_aux_dir=$ac_dir
1316 ac_install_sh="$ac_aux_dir/install-sh -c"
1317 break
1318 elif test -f $ac_dir/install.sh; then
1319 ac_aux_dir=$ac_dir
1320 ac_install_sh="$ac_aux_dir/install.sh -c"
1321 break
1322 elif test -f $ac_dir/shtool; then
1323 ac_aux_dir=$ac_dir
1324 ac_install_sh="$ac_aux_dir/shtool install -c"
1325 break
1327 done
1328 if test -z "$ac_aux_dir"; then
1329 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1330 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1331 { (exit 1); exit 1; }; }
1333 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1334 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1335 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1337 # Make sure we can run config.sub.
1338 $ac_config_sub sun4 >/dev/null 2>&1 ||
1339 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1340 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1341 { (exit 1); exit 1; }; }
1343 echo "$as_me:$LINENO: checking build system type" >&5
1344 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1345 if test "${ac_cv_build+set}" = set; then
1346 echo $ECHO_N "(cached) $ECHO_C" >&6
1347 else
1348 ac_cv_build_alias=$build_alias
1349 test -z "$ac_cv_build_alias" &&
1350 ac_cv_build_alias=`$ac_config_guess`
1351 test -z "$ac_cv_build_alias" &&
1352 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1353 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1354 { (exit 1); exit 1; }; }
1355 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1356 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1357 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1358 { (exit 1); exit 1; }; }
1361 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1362 echo "${ECHO_T}$ac_cv_build" >&6
1363 build=$ac_cv_build
1364 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1365 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1366 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1369 echo "$as_me:$LINENO: checking host system type" >&5
1370 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1371 if test "${ac_cv_host+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 else
1374 ac_cv_host_alias=$host_alias
1375 test -z "$ac_cv_host_alias" &&
1376 ac_cv_host_alias=$ac_cv_build_alias
1377 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1378 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1379 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1380 { (exit 1); exit 1; }; }
1383 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1384 echo "${ECHO_T}$ac_cv_host" >&6
1385 host=$ac_cv_host
1386 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1387 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1388 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391 echo "$as_me:$LINENO: checking target system type" >&5
1392 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1393 if test "${ac_cv_target+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 else
1396 ac_cv_target_alias=$target_alias
1397 test "x$ac_cv_target_alias" = "x" &&
1398 ac_cv_target_alias=$ac_cv_host_alias
1399 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1400 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1401 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1402 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1406 echo "${ECHO_T}$ac_cv_target" >&6
1407 target=$ac_cv_target
1408 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413 # The aliases save the names the user supplied, while $host etc.
1414 # will get canonicalized.
1415 test -n "$target_alias" &&
1416 test "$program_prefix$program_suffix$program_transform_name" = \
1417 NONENONEs,x,x, &&
1418 program_prefix=${target_alias}-
1419 ac_ext=c
1420 ac_cpp='$CPP $CPPFLAGS'
1421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1424 if test -n "$ac_tool_prefix"; then
1425 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1426 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_prog_CC+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432 if test -n "$CC"; then
1433 ac_cv_prog_CC="$CC" # Let the user override the test.
1434 else
1435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1436 for as_dir in $PATH
1438 IFS=$as_save_IFS
1439 test -z "$as_dir" && as_dir=.
1440 for ac_exec_ext in '' $ac_executable_extensions; do
1441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1442 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1444 break 2
1446 done
1447 done
1451 CC=$ac_cv_prog_CC
1452 if test -n "$CC"; then
1453 echo "$as_me:$LINENO: result: $CC" >&5
1454 echo "${ECHO_T}$CC" >&6
1455 else
1456 echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1461 if test -z "$ac_cv_prog_CC"; then
1462 ac_ct_CC=$CC
1463 # Extract the first word of "gcc", so it can be a program name with args.
1464 set dummy gcc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470 if test -n "$ac_ct_CC"; then
1471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1472 else
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 for ac_exec_ext in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_ac_ct_CC="gcc"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482 break 2
1484 done
1485 done
1489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1490 if test -n "$ac_ct_CC"; then
1491 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1492 echo "${ECHO_T}$ac_ct_CC" >&6
1493 else
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1498 CC=$ac_ct_CC
1499 else
1500 CC="$ac_cv_prog_CC"
1503 if test -z "$CC"; then
1504 if test -n "$ac_tool_prefix"; then
1505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1506 set dummy ${ac_tool_prefix}cc; ac_word=$2
1507 echo "$as_me:$LINENO: checking for $ac_word" >&5
1508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1509 if test "${ac_cv_prog_CC+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 else
1512 if test -n "$CC"; then
1513 ac_cv_prog_CC="$CC" # Let the user override the test.
1514 else
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 for as_dir in $PATH
1518 IFS=$as_save_IFS
1519 test -z "$as_dir" && as_dir=.
1520 for ac_exec_ext in '' $ac_executable_extensions; do
1521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1522 ac_cv_prog_CC="${ac_tool_prefix}cc"
1523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1524 break 2
1526 done
1527 done
1531 CC=$ac_cv_prog_CC
1532 if test -n "$CC"; then
1533 echo "$as_me:$LINENO: result: $CC" >&5
1534 echo "${ECHO_T}$CC" >&6
1535 else
1536 echo "$as_me:$LINENO: result: no" >&5
1537 echo "${ECHO_T}no" >&6
1541 if test -z "$ac_cv_prog_CC"; then
1542 ac_ct_CC=$CC
1543 # Extract the first word of "cc", so it can be a program name with args.
1544 set dummy cc; ac_word=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550 if test -n "$ac_ct_CC"; then
1551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1552 else
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 ac_cv_prog_ac_ct_CC="cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562 break 2
1564 done
1565 done
1569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1570 if test -n "$ac_ct_CC"; then
1571 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1572 echo "${ECHO_T}$ac_ct_CC" >&6
1573 else
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1578 CC=$ac_ct_CC
1579 else
1580 CC="$ac_cv_prog_CC"
1584 if test -z "$CC"; then
1585 # Extract the first word of "cc", so it can be a program name with args.
1586 set dummy cc; ac_word=$2
1587 echo "$as_me:$LINENO: checking for $ac_word" >&5
1588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589 if test "${ac_cv_prog_CC+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592 if test -n "$CC"; then
1593 ac_cv_prog_CC="$CC" # Let the user override the test.
1594 else
1595 ac_prog_rejected=no
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 for as_dir in $PATH
1599 IFS=$as_save_IFS
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1604 ac_prog_rejected=yes
1605 continue
1607 ac_cv_prog_CC="cc"
1608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609 break 2
1611 done
1612 done
1614 if test $ac_prog_rejected = yes; then
1615 # We found a bogon in the path, so make sure we never use it.
1616 set dummy $ac_cv_prog_CC
1617 shift
1618 if test $# != 0; then
1619 # We chose a different compiler from the bogus one.
1620 # However, it has the same basename, so the bogon will be chosen
1621 # first if we set CC to just the basename; use the full file name.
1622 shift
1623 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1628 CC=$ac_cv_prog_CC
1629 if test -n "$CC"; then
1630 echo "$as_me:$LINENO: result: $CC" >&5
1631 echo "${ECHO_T}$CC" >&6
1632 else
1633 echo "$as_me:$LINENO: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1638 if test -z "$CC"; then
1639 if test -n "$ac_tool_prefix"; then
1640 for ac_prog in cl
1642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649 if test -n "$CC"; then
1650 ac_cv_prog_CC="$CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1655 IFS=$as_save_IFS
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 break 2
1663 done
1664 done
1668 CC=$ac_cv_prog_CC
1669 if test -n "$CC"; then
1670 echo "$as_me:$LINENO: result: $CC" >&5
1671 echo "${ECHO_T}$CC" >&6
1672 else
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1677 test -n "$CC" && break
1678 done
1680 if test -z "$CC"; then
1681 ac_ct_CC=$CC
1682 for ac_prog in cl
1684 # Extract the first word of "$ac_prog", so it can be a program name with args.
1685 set dummy $ac_prog; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691 if test -n "$ac_ct_CC"; then
1692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_ac_ct_CC="$ac_prog"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 break 2
1705 done
1706 done
1710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1711 if test -n "$ac_ct_CC"; then
1712 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1713 echo "${ECHO_T}$ac_ct_CC" >&6
1714 else
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1719 test -n "$ac_ct_CC" && break
1720 done
1722 CC=$ac_ct_CC
1728 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1729 See \`config.log' for more details." >&5
1730 echo "$as_me: error: no acceptable C compiler found in \$PATH
1731 See \`config.log' for more details." >&2;}
1732 { (exit 1); exit 1; }; }
1734 # Provide some information about the compiler.
1735 echo "$as_me:$LINENO:" \
1736 "checking for C compiler version" >&5
1737 ac_compiler=`set X $ac_compile; echo $2`
1738 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1739 (eval $ac_compiler --version </dev/null >&5) 2>&5
1740 ac_status=$?
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }
1743 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1744 (eval $ac_compiler -v </dev/null >&5) 2>&5
1745 ac_status=$?
1746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1747 (exit $ac_status); }
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1749 (eval $ac_compiler -V </dev/null >&5) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1754 cat >conftest.$ac_ext <<_ACEOF
1755 /* confdefs.h. */
1756 _ACEOF
1757 cat confdefs.h >>conftest.$ac_ext
1758 cat >>conftest.$ac_ext <<_ACEOF
1759 /* end confdefs.h. */
1762 main ()
1766 return 0;
1768 _ACEOF
1769 ac_clean_files_save=$ac_clean_files
1770 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1771 # Try to create an executable without -o first, disregard a.out.
1772 # It will help us diagnose broken compilers, and finding out an intuition
1773 # of exeext.
1774 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1775 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1776 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1777 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1778 (eval $ac_link_default) 2>&5
1779 ac_status=$?
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }; then
1782 # Find the output, starting from the most likely. This scheme is
1783 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1784 # resort.
1786 # Be careful to initialize this variable, since it used to be cached.
1787 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1788 ac_cv_exeext=
1789 # b.out is created by i960 compilers.
1790 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1792 test -f "$ac_file" || continue
1793 case $ac_file in
1794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1796 conftest.$ac_ext )
1797 # This is the source file.
1799 [ab].out )
1800 # We found the default executable, but exeext='' is most
1801 # certainly right.
1802 break;;
1803 *.* )
1804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1805 # FIXME: I believe we export ac_cv_exeext for Libtool,
1806 # but it would be cool to find out if it's true. Does anybody
1807 # maintain Libtool? --akim.
1808 export ac_cv_exeext
1809 break;;
1811 break;;
1812 esac
1813 done
1814 else
1815 echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1819 See \`config.log' for more details." >&5
1820 echo "$as_me: error: C compiler cannot create executables
1821 See \`config.log' for more details." >&2;}
1822 { (exit 77); exit 77; }; }
1825 ac_exeext=$ac_cv_exeext
1826 echo "$as_me:$LINENO: result: $ac_file" >&5
1827 echo "${ECHO_T}$ac_file" >&6
1829 # Check the compiler produces executables we can run. If not, either
1830 # the compiler is broken, or we cross compile.
1831 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1832 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1833 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1834 # If not cross compiling, check that we can run a simple program.
1835 if test "$cross_compiling" != yes; then
1836 if { ac_try='./$ac_file'
1837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1838 (eval $ac_try) 2>&5
1839 ac_status=$?
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }; }; then
1842 cross_compiling=no
1843 else
1844 if test "$cross_compiling" = maybe; then
1845 cross_compiling=yes
1846 else
1847 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1848 If you meant to cross compile, use \`--host'.
1849 See \`config.log' for more details." >&5
1850 echo "$as_me: error: cannot run C compiled programs.
1851 If you meant to cross compile, use \`--host'.
1852 See \`config.log' for more details." >&2;}
1853 { (exit 1); exit 1; }; }
1857 echo "$as_me:$LINENO: result: yes" >&5
1858 echo "${ECHO_T}yes" >&6
1860 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1861 ac_clean_files=$ac_clean_files_save
1862 # Check the compiler produces executables we can run. If not, either
1863 # the compiler is broken, or we cross compile.
1864 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1865 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1866 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1867 echo "${ECHO_T}$cross_compiling" >&6
1869 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1870 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1872 (eval $ac_link) 2>&5
1873 ac_status=$?
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1877 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1878 # work properly (i.e., refer to `conftest.exe'), while it won't with
1879 # `rm'.
1880 for ac_file in conftest.exe conftest conftest.*; do
1881 test -f "$ac_file" || continue
1882 case $ac_file in
1883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1884 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1885 export ac_cv_exeext
1886 break;;
1887 * ) break;;
1888 esac
1889 done
1890 else
1891 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1894 See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
1898 rm -f conftest$ac_cv_exeext
1899 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1900 echo "${ECHO_T}$ac_cv_exeext" >&6
1902 rm -f conftest.$ac_ext
1903 EXEEXT=$ac_cv_exeext
1904 ac_exeext=$EXEEXT
1905 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1906 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1907 if test "${ac_cv_objext+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910 cat >conftest.$ac_ext <<_ACEOF
1911 /* confdefs.h. */
1912 _ACEOF
1913 cat confdefs.h >>conftest.$ac_ext
1914 cat >>conftest.$ac_ext <<_ACEOF
1915 /* end confdefs.h. */
1918 main ()
1922 return 0;
1924 _ACEOF
1925 rm -f conftest.o conftest.obj
1926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }; then
1931 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1932 case $ac_file in
1933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1935 break;;
1936 esac
1937 done
1938 else
1939 echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1945 See \`config.log' for more details." >&2;}
1946 { (exit 1); exit 1; }; }
1949 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1951 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1952 echo "${ECHO_T}$ac_cv_objext" >&6
1953 OBJEXT=$ac_cv_objext
1954 ac_objext=$OBJEXT
1955 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1956 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1957 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 cat >conftest.$ac_ext <<_ACEOF
1961 /* confdefs.h. */
1962 _ACEOF
1963 cat confdefs.h >>conftest.$ac_ext
1964 cat >>conftest.$ac_ext <<_ACEOF
1965 /* end confdefs.h. */
1968 main ()
1970 #ifndef __GNUC__
1971 choke me
1972 #endif
1975 return 0;
1977 _ACEOF
1978 rm -f conftest.$ac_objext
1979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>conftest.er1
1981 ac_status=$?
1982 grep -v '^ *+' conftest.er1 >conftest.err
1983 rm -f conftest.er1
1984 cat conftest.err >&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); } &&
1987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989 (eval $ac_try) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }; } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 ac_compiler_gnu=yes
2000 else
2001 echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2004 ac_compiler_gnu=no
2006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012 GCC=`test $ac_compiler_gnu = yes && echo yes`
2013 ac_test_CFLAGS=${CFLAGS+set}
2014 ac_save_CFLAGS=$CFLAGS
2015 CFLAGS="-g"
2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021 cat >conftest.$ac_ext <<_ACEOF
2022 /* confdefs.h. */
2023 _ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h. */
2029 main ()
2033 return 0;
2035 _ACEOF
2036 rm -f conftest.$ac_objext
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>conftest.er1
2039 ac_status=$?
2040 grep -v '^ *+' conftest.er1 >conftest.err
2041 rm -f conftest.er1
2042 cat conftest.err >&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); } &&
2045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 (eval $ac_try) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; } &&
2051 { ac_try='test -s conftest.$ac_objext'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 (eval $ac_try) 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2057 ac_cv_prog_cc_g=yes
2058 else
2059 echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2062 ac_cv_prog_cc_g=no
2064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2066 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2067 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2068 if test "$ac_test_CFLAGS" = set; then
2069 CFLAGS=$ac_save_CFLAGS
2070 elif test $ac_cv_prog_cc_g = yes; then
2071 if test "$GCC" = yes; then
2072 CFLAGS="-g -O2"
2073 else
2074 CFLAGS="-g"
2076 else
2077 if test "$GCC" = yes; then
2078 CFLAGS="-O2"
2079 else
2080 CFLAGS=
2083 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2084 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2085 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088 ac_cv_prog_cc_stdc=no
2089 ac_save_CC=$CC
2090 cat >conftest.$ac_ext <<_ACEOF
2091 /* confdefs.h. */
2092 _ACEOF
2093 cat confdefs.h >>conftest.$ac_ext
2094 cat >>conftest.$ac_ext <<_ACEOF
2095 /* end confdefs.h. */
2096 #include <stdarg.h>
2097 #include <stdio.h>
2098 #include <sys/types.h>
2099 #include <sys/stat.h>
2100 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2101 struct buf { int x; };
2102 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2103 static char *e (p, i)
2104 char **p;
2105 int i;
2107 return p[i];
2109 static char *f (char * (*g) (char **, int), char **p, ...)
2111 char *s;
2112 va_list v;
2113 va_start (v,p);
2114 s = g (p, va_arg (v,int));
2115 va_end (v);
2116 return s;
2119 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2120 function prototypes and stuff, but not '\xHH' hex character constants.
2121 These don't provoke an error unfortunately, instead are silently treated
2122 as 'x'. The following induces an error, until -std1 is added to get
2123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2124 array size at least. It's necessary to write '\x00'==0 to get something
2125 that's true only with -std1. */
2126 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2128 int test (int i, double x);
2129 struct s1 {int (*f) (int a);};
2130 struct s2 {int (*f) (double a);};
2131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2132 int argc;
2133 char **argv;
2135 main ()
2137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2139 return 0;
2141 _ACEOF
2142 # Don't try gcc -ansi; that turns off useful extensions and
2143 # breaks some systems' header files.
2144 # AIX -qlanglvl=ansi
2145 # Ultrix and OSF/1 -std1
2146 # HP-UX 10.20 and later -Ae
2147 # HP-UX older versions -Aa -D_HPUX_SOURCE
2148 # SVR4 -Xc -D__EXTENSIONS__
2149 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2151 CC="$ac_save_CC $ac_arg"
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2155 ac_status=$?
2156 grep -v '^ *+' conftest.er1 >conftest.err
2157 rm -f conftest.er1
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 (eval $ac_try) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2173 ac_cv_prog_cc_stdc=$ac_arg
2174 break
2175 else
2176 echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2180 rm -f conftest.err conftest.$ac_objext
2181 done
2182 rm -f conftest.$ac_ext conftest.$ac_objext
2183 CC=$ac_save_CC
2187 case "x$ac_cv_prog_cc_stdc" in
2188 x|xno)
2189 echo "$as_me:$LINENO: result: none needed" >&5
2190 echo "${ECHO_T}none needed" >&6 ;;
2192 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2193 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2194 CC="$CC $ac_cv_prog_cc_stdc" ;;
2195 esac
2197 # Some people use a C++ compiler to compile C. Since we use `exit',
2198 # in C++ we need to declare it. In case someone uses the same compiler
2199 # for both compiling C and C++ we need to have the C++ compiler decide
2200 # the declaration of exit, since it's the most demanding environment.
2201 cat >conftest.$ac_ext <<_ACEOF
2202 #ifndef __cplusplus
2203 choke me
2204 #endif
2205 _ACEOF
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2209 ac_status=$?
2210 grep -v '^ *+' conftest.er1 >conftest.err
2211 rm -f conftest.er1
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 for ac_declaration in \
2228 '' \
2229 'extern "C" void std::exit (int) throw (); using std::exit;' \
2230 'extern "C" void std::exit (int); using std::exit;' \
2231 'extern "C" void exit (int) throw ();' \
2232 'extern "C" void exit (int);' \
2233 'void exit (int);'
2235 cat >conftest.$ac_ext <<_ACEOF
2236 /* confdefs.h. */
2237 _ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h. */
2241 $ac_declaration
2242 #include <stdlib.h>
2244 main ()
2246 exit (42);
2248 return 0;
2250 _ACEOF
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2254 ac_status=$?
2255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2273 else
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2277 continue
2279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280 cat >conftest.$ac_ext <<_ACEOF
2281 /* confdefs.h. */
2282 _ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2286 $ac_declaration
2288 main ()
2290 exit (42);
2292 return 0;
2294 _ACEOF
2295 rm -f conftest.$ac_objext
2296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297 (eval $ac_compile) 2>conftest.er1
2298 ac_status=$?
2299 grep -v '^ *+' conftest.er1 >conftest.err
2300 rm -f conftest.er1
2301 cat conftest.err >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
2304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 (eval $ac_try) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
2316 break
2317 else
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323 done
2324 rm -f conftest*
2325 if test -n "$ac_declaration"; then
2326 echo '#ifdef __cplusplus' >>confdefs.h
2327 echo $ac_declaration >>confdefs.h
2328 echo '#endif' >>confdefs.h
2331 else
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2337 ac_ext=c
2338 ac_cpp='$CPP $CPPFLAGS'
2339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344 # Choose one or two-process fix methodology. Systems that cannot handle
2345 # bi-directional pipes must use the two process method.
2347 # Check whether --enable-twoprocess or --disable-twoprocess was given.
2348 if test "${enable_twoprocess+set}" = set; then
2349 enableval="$enable_twoprocess"
2350 if test "x$enable_twoprocess" = xyes; then
2351 TARGET=twoprocess
2352 else
2353 TARGET=oneprocess
2355 else
2356 case $host in
2357 i?86-*-msdosdjgpp* | \
2358 i?86-*-mingw32* | \
2359 *-*-beos* )
2360 TARGET=twoprocess
2364 TARGET=oneprocess
2366 esac
2370 if test $TARGET = twoprocess; then
2372 cat >>confdefs.h <<\_ACEOF
2373 #define SEPARATE_FIX_PROC 1
2374 _ACEOF
2378 case $host in
2379 vax-dec-bsd* )
2381 cat >>confdefs.h <<\_ACEOF
2382 #define exit xexit
2383 _ACEOF
2386 cat >>confdefs.h <<\_ACEOF
2387 #define atexit xatexit
2388 _ACEOF
2391 esac
2394 cat >>confdefs.h <<_ACEOF
2395 #define EXE_EXT "$ac_exeext"
2396 _ACEOF
2399 # Checks for header files.
2401 ac_ext=c
2402 ac_cpp='$CPP $CPPFLAGS'
2403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2407 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2408 # On Suns, sometimes $CPP names a directory.
2409 if test -n "$CPP" && test -d "$CPP"; then
2410 CPP=
2412 if test -z "$CPP"; then
2413 if test "${ac_cv_prog_CPP+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416 # Double quotes because CPP needs to be expanded
2417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2419 ac_preproc_ok=false
2420 for ac_c_preproc_warn_flag in '' yes
2422 # Use a header file that comes with gcc, so configuring glibc
2423 # with a fresh cross-compiler works.
2424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2425 # <limits.h> exists even on freestanding compilers.
2426 # On the NeXT, cc -E runs the code through the compiler's parser,
2427 # not just through cpp. "Syntax error" is here to catch this case.
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2434 #ifdef __STDC__
2435 # include <limits.h>
2436 #else
2437 # include <assert.h>
2438 #endif
2439 Syntax error
2440 _ACEOF
2441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } >/dev/null; then
2449 if test -s conftest.err; then
2450 ac_cpp_err=$ac_c_preproc_warn_flag
2451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2452 else
2453 ac_cpp_err=
2455 else
2456 ac_cpp_err=yes
2458 if test -z "$ac_cpp_err"; then
2460 else
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2464 # Broken: fails on valid input.
2465 continue
2467 rm -f conftest.err conftest.$ac_ext
2469 # OK, works on sane cases. Now check whether non-existent headers
2470 # can be detected and how.
2471 cat >conftest.$ac_ext <<_ACEOF
2472 /* confdefs.h. */
2473 _ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2477 #include <ac_nonexistent.h>
2478 _ACEOF
2479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2481 ac_status=$?
2482 grep -v '^ *+' conftest.er1 >conftest.err
2483 rm -f conftest.er1
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } >/dev/null; then
2487 if test -s conftest.err; then
2488 ac_cpp_err=$ac_c_preproc_warn_flag
2489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2490 else
2491 ac_cpp_err=
2493 else
2494 ac_cpp_err=yes
2496 if test -z "$ac_cpp_err"; then
2497 # Broken: success on invalid input.
2498 continue
2499 else
2500 echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2503 # Passes both tests.
2504 ac_preproc_ok=:
2505 break
2507 rm -f conftest.err conftest.$ac_ext
2509 done
2510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2511 rm -f conftest.err conftest.$ac_ext
2512 if $ac_preproc_ok; then
2513 break
2516 done
2517 ac_cv_prog_CPP=$CPP
2520 CPP=$ac_cv_prog_CPP
2521 else
2522 ac_cv_prog_CPP=$CPP
2524 echo "$as_me:$LINENO: result: $CPP" >&5
2525 echo "${ECHO_T}$CPP" >&6
2526 ac_preproc_ok=false
2527 for ac_c_preproc_warn_flag in '' yes
2529 # Use a header file that comes with gcc, so configuring glibc
2530 # with a fresh cross-compiler works.
2531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2532 # <limits.h> exists even on freestanding compilers.
2533 # On the NeXT, cc -E runs the code through the compiler's parser,
2534 # not just through cpp. "Syntax error" is here to catch this case.
2535 cat >conftest.$ac_ext <<_ACEOF
2536 /* confdefs.h. */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2541 #ifdef __STDC__
2542 # include <limits.h>
2543 #else
2544 # include <assert.h>
2545 #endif
2546 Syntax error
2547 _ACEOF
2548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2550 ac_status=$?
2551 grep -v '^ *+' conftest.er1 >conftest.err
2552 rm -f conftest.er1
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } >/dev/null; then
2556 if test -s conftest.err; then
2557 ac_cpp_err=$ac_c_preproc_warn_flag
2558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2559 else
2560 ac_cpp_err=
2562 else
2563 ac_cpp_err=yes
2565 if test -z "$ac_cpp_err"; then
2567 else
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2571 # Broken: fails on valid input.
2572 continue
2574 rm -f conftest.err conftest.$ac_ext
2576 # OK, works on sane cases. Now check whether non-existent headers
2577 # can be detected and how.
2578 cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2584 #include <ac_nonexistent.h>
2585 _ACEOF
2586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2588 ac_status=$?
2589 grep -v '^ *+' conftest.er1 >conftest.err
2590 rm -f conftest.er1
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } >/dev/null; then
2594 if test -s conftest.err; then
2595 ac_cpp_err=$ac_c_preproc_warn_flag
2596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2597 else
2598 ac_cpp_err=
2600 else
2601 ac_cpp_err=yes
2603 if test -z "$ac_cpp_err"; then
2604 # Broken: success on invalid input.
2605 continue
2606 else
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2610 # Passes both tests.
2611 ac_preproc_ok=:
2612 break
2614 rm -f conftest.err conftest.$ac_ext
2616 done
2617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2618 rm -f conftest.err conftest.$ac_ext
2619 if $ac_preproc_ok; then
2621 else
2622 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2623 See \`config.log' for more details." >&5
2624 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2629 ac_ext=c
2630 ac_cpp='$CPP $CPPFLAGS'
2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636 echo "$as_me:$LINENO: checking for egrep" >&5
2637 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2638 if test "${ac_cv_prog_egrep+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2642 then ac_cv_prog_egrep='grep -E'
2643 else ac_cv_prog_egrep='egrep'
2646 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2647 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2648 EGREP=$ac_cv_prog_egrep
2651 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2652 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2653 if test "${ac_cv_header_stdc+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656 cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h. */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2662 #include <stdlib.h>
2663 #include <stdarg.h>
2664 #include <string.h>
2665 #include <float.h>
2668 main ()
2672 return 0;
2674 _ACEOF
2675 rm -f conftest.$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677 (eval $ac_compile) 2>conftest.er1
2678 ac_status=$?
2679 grep -v '^ *+' conftest.er1 >conftest.err
2680 rm -f conftest.er1
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
2684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; } &&
2690 { ac_try='test -s conftest.$ac_objext'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 ac_cv_header_stdc=yes
2697 else
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2701 ac_cv_header_stdc=no
2703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705 if test $ac_cv_header_stdc = yes; then
2706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2707 cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h. */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2713 #include <string.h>
2715 _ACEOF
2716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2717 $EGREP "memchr" >/dev/null 2>&1; then
2719 else
2720 ac_cv_header_stdc=no
2722 rm -f conftest*
2726 if test $ac_cv_header_stdc = yes; then
2727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 #include <stdlib.h>
2736 _ACEOF
2737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2738 $EGREP "free" >/dev/null 2>&1; then
2740 else
2741 ac_cv_header_stdc=no
2743 rm -f conftest*
2747 if test $ac_cv_header_stdc = yes; then
2748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2749 if test "$cross_compiling" = yes; then
2751 else
2752 cat >conftest.$ac_ext <<_ACEOF
2753 /* confdefs.h. */
2754 _ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2758 #include <ctype.h>
2759 #if ((' ' & 0x0FF) == 0x020)
2760 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2761 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2762 #else
2763 # define ISLOWER(c) \
2764 (('a' <= (c) && (c) <= 'i') \
2765 || ('j' <= (c) && (c) <= 'r') \
2766 || ('s' <= (c) && (c) <= 'z'))
2767 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2768 #endif
2770 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2772 main ()
2774 int i;
2775 for (i = 0; i < 256; i++)
2776 if (XOR (islower (i), ISLOWER (i))
2777 || toupper (i) != TOUPPER (i))
2778 exit(2);
2779 exit (0);
2781 _ACEOF
2782 rm -f conftest$ac_exeext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2784 (eval $ac_link) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2794 else
2795 echo "$as_me: program exited with status $ac_status" >&5
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2799 ( exit $ac_status )
2800 ac_cv_header_stdc=no
2802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2806 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2807 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2808 if test $ac_cv_header_stdc = yes; then
2810 cat >>confdefs.h <<\_ACEOF
2811 #define STDC_HEADERS 1
2812 _ACEOF
2816 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2826 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2827 inttypes.h stdint.h unistd.h
2829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2830 echo "$as_me:$LINENO: checking for $ac_header" >&5
2831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841 $ac_includes_default
2843 #include <$ac_header>
2844 _ACEOF
2845 rm -f conftest.$ac_objext
2846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2847 (eval $ac_compile) 2>conftest.er1
2848 ac_status=$?
2849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 (eval $ac_try) 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; } &&
2860 { ac_try='test -s conftest.$ac_objext'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 (eval $ac_try) 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 eval "$as_ac_Header=yes"
2867 else
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2871 eval "$as_ac_Header=no"
2873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2878 cat >>confdefs.h <<_ACEOF
2879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2880 _ACEOF
2884 done
2894 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
2895 sys/stat.h
2897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2899 echo "$as_me:$LINENO: checking for $ac_header" >&5
2900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2906 else
2907 # Is the header compilable?
2908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 $ac_includes_default
2917 #include <$ac_header>
2918 _ACEOF
2919 rm -f conftest.$ac_objext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921 (eval $ac_compile) 2>conftest.er1
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_header_compiler=yes
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 ac_header_compiler=no
2947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2949 echo "${ECHO_T}$ac_header_compiler" >&6
2951 # Is the header present?
2952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2954 cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h. */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960 #include <$ac_header>
2961 _ACEOF
2962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2964 ac_status=$?
2965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } >/dev/null; then
2970 if test -s conftest.err; then
2971 ac_cpp_err=$ac_c_preproc_warn_flag
2972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2973 else
2974 ac_cpp_err=
2976 else
2977 ac_cpp_err=yes
2979 if test -z "$ac_cpp_err"; then
2980 ac_header_preproc=yes
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2985 ac_header_preproc=no
2987 rm -f conftest.err conftest.$ac_ext
2988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2989 echo "${ECHO_T}$ac_header_preproc" >&6
2991 # So? What about this header?
2992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2993 yes:no: )
2994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2998 ac_header_preproc=yes
3000 no:yes:* )
3001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3014 cat <<\_ASBOX
3015 ## -------------------------------------- ##
3016 ## Report this to the fixincludes lists. ##
3017 ## -------------------------------------- ##
3018 _ASBOX
3020 sed "s/^/$as_me: WARNING: /" >&2
3022 esac
3023 echo "$as_me:$LINENO: checking for $ac_header" >&5
3024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028 eval "$as_ac_Header=\$ac_header_preproc"
3030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3035 cat >>confdefs.h <<_ACEOF
3036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3037 _ACEOF
3041 done
3048 for ac_func in putc_unlocked fputc_unlocked fputs_unlocked \
3049 fwrite_unlocked fprintf_unlocked
3051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3052 echo "$as_me:$LINENO: checking for $ac_func" >&5
3053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3054 if eval "test \"\${$as_ac_var+set}\" = set"; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3065 #define $ac_func innocuous_$ac_func
3067 /* System header to define __stub macros and hopefully few prototypes,
3068 which can conflict with char $ac_func (); below.
3069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070 <limits.h> exists even on freestanding compilers. */
3072 #ifdef __STDC__
3073 # include <limits.h>
3074 #else
3075 # include <assert.h>
3076 #endif
3078 #undef $ac_func
3080 /* Override any gcc2 internal prototype to avoid an error. */
3081 #ifdef __cplusplus
3082 extern "C"
3084 #endif
3085 /* We use char because int might match the return type of a gcc2
3086 builtin and then its argument prototype would still apply. */
3087 char $ac_func ();
3088 /* The GNU C library defines this for functions which it implements
3089 to always fail with ENOSYS. Some functions are actually named
3090 something starting with __ and the normal name is an alias. */
3091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3092 choke me
3093 #else
3094 char (*f) () = $ac_func;
3095 #endif
3096 #ifdef __cplusplus
3098 #endif
3101 main ()
3103 return f != $ac_func;
3105 return 0;
3107 _ACEOF
3108 rm -f conftest.$ac_objext conftest$ac_exeext
3109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3110 (eval $ac_link) 2>conftest.er1
3111 ac_status=$?
3112 grep -v '^ *+' conftest.er1 >conftest.err
3113 rm -f conftest.er1
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } &&
3117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 (eval $ac_try) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest$ac_exeext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 (eval $ac_try) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3129 eval "$as_ac_var=yes"
3130 else
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 eval "$as_ac_var=no"
3136 rm -f conftest.err conftest.$ac_objext \
3137 conftest$ac_exeext conftest.$ac_ext
3139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3141 if test `eval echo '${'$as_ac_var'}'` = yes; then
3142 cat >>confdefs.h <<_ACEOF
3143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3144 _ACEOF
3147 done
3149 echo "$as_me:$LINENO: checking whether abort is declared" >&5
3150 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
3151 if test "${ac_cv_have_decl_abort+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154 cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h. */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3160 $ac_includes_default
3162 main ()
3164 #ifndef abort
3165 char *p = (char *) abort;
3166 #endif
3169 return 0;
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 (eval $ac_try) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_have_decl_abort=yes
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 ac_cv_have_decl_abort=no
3200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3202 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
3203 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
3204 if test $ac_cv_have_decl_abort = yes; then
3206 cat >>confdefs.h <<_ACEOF
3207 #define HAVE_DECL_ABORT 1
3208 _ACEOF
3211 else
3212 cat >>confdefs.h <<_ACEOF
3213 #define HAVE_DECL_ABORT 0
3214 _ACEOF
3218 echo "$as_me:$LINENO: checking whether errno is declared" >&5
3219 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
3220 if test "${ac_cv_have_decl_errno+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229 $ac_includes_default
3231 main ()
3233 #ifndef errno
3234 char *p = (char *) errno;
3235 #endif
3238 return 0;
3240 _ACEOF
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; } &&
3256 { ac_try='test -s conftest.$ac_objext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 (eval $ac_try) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 ac_cv_have_decl_errno=yes
3263 else
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 ac_cv_have_decl_errno=no
3269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3271 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
3272 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
3273 if test $ac_cv_have_decl_errno = yes; then
3275 cat >>confdefs.h <<_ACEOF
3276 #define HAVE_DECL_ERRNO 1
3277 _ACEOF
3280 else
3281 cat >>confdefs.h <<_ACEOF
3282 #define HAVE_DECL_ERRNO 0
3283 _ACEOF
3287 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
3288 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
3289 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298 $ac_includes_default
3300 main ()
3302 #ifndef putc_unlocked
3303 char *p = (char *) putc_unlocked;
3304 #endif
3307 return 0;
3309 _ACEOF
3310 rm -f conftest.$ac_objext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312 (eval $ac_compile) 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } &&
3319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; } &&
3325 { ac_try='test -s conftest.$ac_objext'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 (eval $ac_try) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3331 ac_cv_have_decl_putc_unlocked=yes
3332 else
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 ac_cv_have_decl_putc_unlocked=no
3338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3340 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
3341 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
3342 if test $ac_cv_have_decl_putc_unlocked = yes; then
3344 cat >>confdefs.h <<_ACEOF
3345 #define HAVE_DECL_PUTC_UNLOCKED 1
3346 _ACEOF
3349 else
3350 cat >>confdefs.h <<_ACEOF
3351 #define HAVE_DECL_PUTC_UNLOCKED 0
3352 _ACEOF
3356 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
3357 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
3358 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3367 $ac_includes_default
3369 main ()
3371 #ifndef fputc_unlocked
3372 char *p = (char *) fputc_unlocked;
3373 #endif
3376 return 0;
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 ac_cv_have_decl_fputc_unlocked=yes
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 ac_cv_have_decl_fputc_unlocked=no
3407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
3410 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
3411 if test $ac_cv_have_decl_fputc_unlocked = yes; then
3413 cat >>confdefs.h <<_ACEOF
3414 #define HAVE_DECL_FPUTC_UNLOCKED 1
3415 _ACEOF
3418 else
3419 cat >>confdefs.h <<_ACEOF
3420 #define HAVE_DECL_FPUTC_UNLOCKED 0
3421 _ACEOF
3425 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
3426 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
3427 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 $ac_includes_default
3438 main ()
3440 #ifndef fputs_unlocked
3441 char *p = (char *) fputs_unlocked;
3442 #endif
3445 return 0;
3447 _ACEOF
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 (eval $ac_try) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; } &&
3463 { ac_try='test -s conftest.$ac_objext'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3469 ac_cv_have_decl_fputs_unlocked=yes
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 ac_cv_have_decl_fputs_unlocked=no
3476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3478 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
3479 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
3480 if test $ac_cv_have_decl_fputs_unlocked = yes; then
3482 cat >>confdefs.h <<_ACEOF
3483 #define HAVE_DECL_FPUTS_UNLOCKED 1
3484 _ACEOF
3487 else
3488 cat >>confdefs.h <<_ACEOF
3489 #define HAVE_DECL_FPUTS_UNLOCKED 0
3490 _ACEOF
3494 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
3495 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
3496 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 $ac_includes_default
3507 main ()
3509 #ifndef fwrite_unlocked
3510 char *p = (char *) fwrite_unlocked;
3511 #endif
3514 return 0;
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 ac_cv_have_decl_fwrite_unlocked=yes
3539 else
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3543 ac_cv_have_decl_fwrite_unlocked=no
3545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3547 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
3548 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
3549 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
3551 cat >>confdefs.h <<_ACEOF
3552 #define HAVE_DECL_FWRITE_UNLOCKED 1
3553 _ACEOF
3556 else
3557 cat >>confdefs.h <<_ACEOF
3558 #define HAVE_DECL_FWRITE_UNLOCKED 0
3559 _ACEOF
3563 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
3564 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
3565 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 $ac_includes_default
3576 main ()
3578 #ifndef fprintf_unlocked
3579 char *p = (char *) fprintf_unlocked;
3580 #endif
3583 return 0;
3585 _ACEOF
3586 rm -f conftest.$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 (eval $ac_try) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; } &&
3601 { ac_try='test -s conftest.$ac_objext'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3607 ac_cv_have_decl_fprintf_unlocked=yes
3608 else
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3612 ac_cv_have_decl_fprintf_unlocked=no
3614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3616 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
3617 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
3618 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
3620 cat >>confdefs.h <<_ACEOF
3621 #define HAVE_DECL_FPRINTF_UNLOCKED 1
3622 _ACEOF
3625 else
3626 cat >>confdefs.h <<_ACEOF
3627 #define HAVE_DECL_FPRINTF_UNLOCKED 0
3628 _ACEOF
3635 # Checks for typedefs, structures, and compiler characteristics.
3636 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3637 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3638 if test "${ac_cv_c_const+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641 cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h. */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3649 main ()
3651 /* FIXME: Include the comments suggested by Paul. */
3652 #ifndef __cplusplus
3653 /* Ultrix mips cc rejects this. */
3654 typedef int charset[2];
3655 const charset x;
3656 /* SunOS 4.1.1 cc rejects this. */
3657 char const *const *ccp;
3658 char **p;
3659 /* NEC SVR4.0.2 mips cc rejects this. */
3660 struct point {int x, y;};
3661 static struct point const zero = {0,0};
3662 /* AIX XL C 1.02.0.0 rejects this.
3663 It does not let you subtract one const X* pointer from another in
3664 an arm of an if-expression whose if-part is not a constant
3665 expression */
3666 const char *g = "string";
3667 ccp = &g + (g ? g-g : 0);
3668 /* HPUX 7.0 cc rejects these. */
3669 ++ccp;
3670 p = (char**) ccp;
3671 ccp = (char const *const *) p;
3672 { /* SCO 3.2v4 cc rejects this. */
3673 char *t;
3674 char const *s = 0 ? (char *) 0 : (char const *) 0;
3676 *t++ = 0;
3678 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3679 int x[] = {25, 17};
3680 const int *foo = &x[0];
3681 ++foo;
3683 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3684 typedef const int *iptr;
3685 iptr p = 0;
3686 ++p;
3688 { /* AIX XL C 1.02.0.0 rejects this saying
3689 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3690 struct s { int j; const int *ap[3]; };
3691 struct s *b; b->j = 5;
3693 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3694 const int foo = 10;
3696 #endif
3699 return 0;
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>conftest.er1
3705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 ac_cv_c_const=yes
3724 else
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3728 ac_cv_c_const=no
3730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3732 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3733 echo "${ECHO_T}$ac_cv_c_const" >&6
3734 if test $ac_cv_c_const = no; then
3736 cat >>confdefs.h <<\_ACEOF
3737 #define const
3738 _ACEOF
3743 # Checks for library functions.
3745 if test "${ac_cv_header_sys_mman_h+set}" = set; then
3746 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
3747 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
3748 if test "${ac_cv_header_sys_mman_h+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
3752 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
3753 else
3754 # Is the header compilable?
3755 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
3756 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
3757 cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h. */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 $ac_includes_default
3764 #include <sys/mman.h>
3765 _ACEOF
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; } &&
3781 { ac_try='test -s conftest.$ac_objext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_header_compiler=yes
3788 else
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 ac_header_compiler=no
3794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3796 echo "${ECHO_T}$ac_header_compiler" >&6
3798 # Is the header present?
3799 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
3800 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h. */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <sys/mman.h>
3808 _ACEOF
3809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null; then
3817 if test -s conftest.err; then
3818 ac_cpp_err=$ac_c_preproc_warn_flag
3819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3820 else
3821 ac_cpp_err=
3823 else
3824 ac_cpp_err=yes
3826 if test -z "$ac_cpp_err"; then
3827 ac_header_preproc=yes
3828 else
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 ac_header_preproc=no
3834 rm -f conftest.err conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3836 echo "${ECHO_T}$ac_header_preproc" >&6
3838 # So? What about this header?
3839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3840 yes:no: )
3841 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
3842 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3843 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
3844 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
3845 ac_header_preproc=yes
3847 no:yes:* )
3848 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
3849 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
3850 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
3851 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
3852 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
3853 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
3854 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
3855 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
3856 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
3857 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
3858 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
3859 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
3861 cat <<\_ASBOX
3862 ## -------------------------------------- ##
3863 ## Report this to the fixincludes lists. ##
3864 ## -------------------------------------- ##
3865 _ASBOX
3867 sed "s/^/$as_me: WARNING: /" >&2
3869 esac
3870 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
3871 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
3872 if test "${ac_cv_header_sys_mman_h+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875 ac_cv_header_sys_mman_h=$ac_header_preproc
3877 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
3878 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
3881 if test $ac_cv_header_sys_mman_h = yes; then
3882 gcc_header_sys_mman_h=yes
3883 else
3884 gcc_header_sys_mman_h=no
3888 echo "$as_me:$LINENO: checking for mmap" >&5
3889 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
3890 if test "${ac_cv_func_mmap+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893 cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h. */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
3900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3901 #define mmap innocuous_mmap
3903 /* System header to define __stub macros and hopefully few prototypes,
3904 which can conflict with char mmap (); below.
3905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3906 <limits.h> exists even on freestanding compilers. */
3908 #ifdef __STDC__
3909 # include <limits.h>
3910 #else
3911 # include <assert.h>
3912 #endif
3914 #undef mmap
3916 /* Override any gcc2 internal prototype to avoid an error. */
3917 #ifdef __cplusplus
3918 extern "C"
3920 #endif
3921 /* We use char because int might match the return type of a gcc2
3922 builtin and then its argument prototype would still apply. */
3923 char mmap ();
3924 /* The GNU C library defines this for functions which it implements
3925 to always fail with ENOSYS. Some functions are actually named
3926 something starting with __ and the normal name is an alias. */
3927 #if defined (__stub_mmap) || defined (__stub___mmap)
3928 choke me
3929 #else
3930 char (*f) () = mmap;
3931 #endif
3932 #ifdef __cplusplus
3934 #endif
3937 main ()
3939 return f != mmap;
3941 return 0;
3943 _ACEOF
3944 rm -f conftest.$ac_objext conftest$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946 (eval $ac_link) 2>conftest.er1
3947 ac_status=$?
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } &&
3953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955 (eval $ac_try) 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; } &&
3959 { ac_try='test -s conftest$ac_exeext'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 (eval $ac_try) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; }; then
3965 ac_cv_func_mmap=yes
3966 else
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3970 ac_cv_func_mmap=no
3972 rm -f conftest.err conftest.$ac_objext \
3973 conftest$ac_exeext conftest.$ac_ext
3975 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
3976 echo "${ECHO_T}$ac_cv_func_mmap" >&6
3977 if test $ac_cv_func_mmap = yes; then
3978 gcc_func_mmap=yes
3979 else
3980 gcc_func_mmap=no
3983 if test "$gcc_header_sys_mman_h" != yes \
3984 || test "$gcc_func_mmap" != yes; then
3985 gcc_cv_func_mmap_file=no
3986 gcc_cv_func_mmap_dev_zero=no
3987 gcc_cv_func_mmap_anon=no
3988 else
3989 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
3990 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
3991 if test "${gcc_cv_func_mmap_file+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 # Add a system to this blacklist if
3995 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
3996 # memory area containing the same data that you'd get if you applied
3997 # read() to the same fd. The only system known to have a problem here
3998 # is VMS, where text files have record structure.
3999 case "$host_os" in
4000 vms* | ultrix*)
4001 gcc_cv_func_mmap_file=no ;;
4003 gcc_cv_func_mmap_file=yes;;
4004 esac
4006 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
4007 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
4008 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
4009 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
4010 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013 # Add a system to this blacklist if it has mmap() but /dev/zero
4014 # does not exist, or if mmapping /dev/zero does not give anonymous
4015 # zeroed pages with both the following properties:
4016 # 1. If you map N consecutive pages in with one call, and then
4017 # unmap any subset of those pages, the pages that were not
4018 # explicitly unmapped remain accessible.
4019 # 2. If you map two adjacent blocks of memory and then unmap them
4020 # both at once, they must both go away.
4021 # Systems known to be in this category are Windows (all variants),
4022 # VMS, and Darwin.
4023 case "$host_os" in
4024 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
4025 gcc_cv_func_mmap_dev_zero=no ;;
4027 gcc_cv_func_mmap_dev_zero=yes;;
4028 esac
4030 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
4031 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
4033 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
4034 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
4035 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
4036 if test "${gcc_cv_decl_map_anon+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h. */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 #include <sys/types.h>
4046 #include <sys/mman.h>
4047 #include <unistd.h>
4049 #ifndef MAP_ANONYMOUS
4050 #define MAP_ANONYMOUS MAP_ANON
4051 #endif
4054 main ()
4056 int n = MAP_ANONYMOUS;
4058 return 0;
4060 _ACEOF
4061 rm -f conftest.$ac_objext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4063 (eval $ac_compile) 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 gcc_cv_decl_map_anon=yes
4083 else
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 gcc_cv_decl_map_anon=no
4089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4091 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
4092 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
4094 if test $gcc_cv_decl_map_anon = no; then
4095 gcc_cv_func_mmap_anon=no
4096 else
4097 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
4098 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
4099 if test "${gcc_cv_func_mmap_anon+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 # Add a system to this blacklist if it has mmap() and MAP_ANON or
4103 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
4104 # doesn't give anonymous zeroed pages with the same properties listed
4105 # above for use of /dev/zero.
4106 # Systems known to be in this category are Windows, VMS, and SCO Unix.
4107 case "$host_os" in
4108 vms* | cygwin* | pe | mingw* | sco* | udk* )
4109 gcc_cv_func_mmap_anon=no ;;
4111 gcc_cv_func_mmap_anon=yes;;
4112 esac
4114 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
4115 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
4119 if test $gcc_cv_func_mmap_file = yes; then
4121 cat >>confdefs.h <<\_ACEOF
4122 #define HAVE_MMAP_FILE 1
4123 _ACEOF
4126 if test $gcc_cv_func_mmap_dev_zero = yes; then
4128 cat >>confdefs.h <<\_ACEOF
4129 #define HAVE_MMAP_DEV_ZERO 1
4130 _ACEOF
4133 if test $gcc_cv_func_mmap_anon = yes; then
4135 cat >>confdefs.h <<\_ACEOF
4136 #define HAVE_MMAP_ANON 1
4137 _ACEOF
4142 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4143 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4144 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4145 if test "${enable_maintainer_mode+set}" = set; then
4146 enableval="$enable_maintainer_mode"
4147 USE_MAINTAINER_MODE=$enableval
4148 else
4149 USE_MAINTAINER_MODE=no
4151 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4152 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4153 if test "$USE_MAINTAINER_MODE" = yes; then
4154 MAINT=
4155 else
4156 MAINT='#'
4160 ac_config_headers="$ac_config_headers config.h"
4162 ac_config_files="$ac_config_files Makefile"
4164 cat >confcache <<\_ACEOF
4165 # This file is a shell script that caches the results of configure
4166 # tests run on this system so they can be shared between configure
4167 # scripts and configure runs, see configure's option --config-cache.
4168 # It is not useful on other systems. If it contains results you don't
4169 # want to keep, you may remove or edit it.
4171 # config.status only pays attention to the cache file if you give it
4172 # the --recheck option to rerun configure.
4174 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4175 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4176 # following values.
4178 _ACEOF
4180 # The following way of writing the cache mishandles newlines in values,
4181 # but we know of no workaround that is simple, portable, and efficient.
4182 # So, don't put newlines in cache variables' values.
4183 # Ultrix sh set writes to stderr and can't be redirected directly,
4184 # and sets the high bit in the cache file unless we assign to the vars.
4186 (set) 2>&1 |
4187 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4188 *ac_space=\ *)
4189 # `set' does not quote correctly, so add quotes (double-quote
4190 # substitution turns \\\\ into \\, and sed turns \\ into \).
4191 sed -n \
4192 "s/'/'\\\\''/g;
4193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4196 # `set' quotes correctly as required by POSIX, so do not add quotes.
4197 sed -n \
4198 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4200 esac;
4202 sed '
4203 t clear
4204 : clear
4205 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4206 t end
4207 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4208 : end' >>confcache
4209 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4210 if test -w $cache_file; then
4211 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4212 cat confcache >$cache_file
4213 else
4214 echo "not updating unwritable cache $cache_file"
4217 rm -f confcache
4219 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4220 # Let make expand exec_prefix.
4221 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4223 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4224 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4225 # trailing colons and then remove the whole line if VPATH becomes empty
4226 # (actually we leave an empty line to preserve line numbers).
4227 if test "x$srcdir" = x.; then
4228 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4229 s/:*\$(srcdir):*/:/;
4230 s/:*\${srcdir}:*/:/;
4231 s/:*@srcdir@:*/:/;
4232 s/^\([^=]*=[ ]*\):*/\1/;
4233 s/:*$//;
4234 s/^[^=]*=[ ]*$//;
4238 DEFS=-DHAVE_CONFIG_H
4240 ac_libobjs=
4241 ac_ltlibobjs=
4242 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4243 # 1. Remove the extension, and $U if already installed.
4244 ac_i=`echo "$ac_i" |
4245 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4246 # 2. Add them.
4247 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4248 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4249 done
4250 LIBOBJS=$ac_libobjs
4252 LTLIBOBJS=$ac_ltlibobjs
4256 : ${CONFIG_STATUS=./config.status}
4257 ac_clean_files_save=$ac_clean_files
4258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4259 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4260 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4261 cat >$CONFIG_STATUS <<_ACEOF
4262 #! $SHELL
4263 # Generated by $as_me.
4264 # Run this file to recreate the current configuration.
4265 # Compiler output produced by configure, useful for debugging
4266 # configure, is in config.log if it exists.
4268 debug=false
4269 ac_cs_recheck=false
4270 ac_cs_silent=false
4271 SHELL=\${CONFIG_SHELL-$SHELL}
4272 _ACEOF
4274 cat >>$CONFIG_STATUS <<\_ACEOF
4275 ## --------------------- ##
4276 ## M4sh Initialization. ##
4277 ## --------------------- ##
4279 # Be Bourne compatible
4280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4281 emulate sh
4282 NULLCMD=:
4283 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4284 # is contrary to our usage. Disable this feature.
4285 alias -g '${1+"$@"}'='"$@"'
4286 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4287 set -o posix
4289 DUALCASE=1; export DUALCASE # for MKS sh
4291 # Support unset when possible.
4292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4293 as_unset=unset
4294 else
4295 as_unset=false
4299 # Work around bugs in pre-3.0 UWIN ksh.
4300 $as_unset ENV MAIL MAILPATH
4301 PS1='$ '
4302 PS2='> '
4303 PS4='+ '
4305 # NLS nuisances.
4306 for as_var in \
4307 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4308 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4309 LC_TELEPHONE LC_TIME
4311 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4312 eval $as_var=C; export $as_var
4313 else
4314 $as_unset $as_var
4316 done
4318 # Required to use basename.
4319 if expr a : '\(a\)' >/dev/null 2>&1; then
4320 as_expr=expr
4321 else
4322 as_expr=false
4325 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4326 as_basename=basename
4327 else
4328 as_basename=false
4332 # Name of the executable.
4333 as_me=`$as_basename "$0" ||
4334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4335 X"$0" : 'X\(//\)$' \| \
4336 X"$0" : 'X\(/\)$' \| \
4337 . : '\(.\)' 2>/dev/null ||
4338 echo X/"$0" |
4339 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4340 /^X\/\(\/\/\)$/{ s//\1/; q; }
4341 /^X\/\(\/\).*/{ s//\1/; q; }
4342 s/.*/./; q'`
4345 # PATH needs CR, and LINENO needs CR and PATH.
4346 # Avoid depending upon Character Ranges.
4347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4350 as_cr_digits='0123456789'
4351 as_cr_alnum=$as_cr_Letters$as_cr_digits
4353 # The user is always right.
4354 if test "${PATH_SEPARATOR+set}" != set; then
4355 echo "#! /bin/sh" >conf$$.sh
4356 echo "exit 0" >>conf$$.sh
4357 chmod +x conf$$.sh
4358 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4359 PATH_SEPARATOR=';'
4360 else
4361 PATH_SEPARATOR=:
4363 rm -f conf$$.sh
4367 as_lineno_1=$LINENO
4368 as_lineno_2=$LINENO
4369 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4370 test "x$as_lineno_1" != "x$as_lineno_2" &&
4371 test "x$as_lineno_3" = "x$as_lineno_2" || {
4372 # Find who we are. Look in the path if we contain no path at all
4373 # relative or not.
4374 case $0 in
4375 *[\\/]* ) as_myself=$0 ;;
4376 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4382 done
4385 esac
4386 # We did not find ourselves, most probably we were run as `sh COMMAND'
4387 # in which case we are not to be found in the path.
4388 if test "x$as_myself" = x; then
4389 as_myself=$0
4391 if test ! -f "$as_myself"; then
4392 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4393 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4394 { (exit 1); exit 1; }; }
4396 case $CONFIG_SHELL in
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for as_base in sh bash ksh sh5; do
4404 case $as_dir in
4406 if ("$as_dir/$as_base" -c '
4407 as_lineno_1=$LINENO
4408 as_lineno_2=$LINENO
4409 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4410 test "x$as_lineno_1" != "x$as_lineno_2" &&
4411 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4412 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4413 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4414 CONFIG_SHELL=$as_dir/$as_base
4415 export CONFIG_SHELL
4416 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4417 fi;;
4418 esac
4419 done
4420 done
4422 esac
4424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4425 # uniformly replaced by the line number. The first 'sed' inserts a
4426 # line-number line before each line; the second 'sed' does the real
4427 # work. The second script uses 'N' to pair each line-number line
4428 # with the numbered line, and appends trailing '-' during
4429 # substitution so that $LINENO is not a special case at line end.
4430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4431 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4432 sed '=' <$as_myself |
4433 sed '
4435 s,$,-,
4436 : loop
4437 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4438 t loop
4439 s,-$,,
4440 s,^['$as_cr_digits']*\n,,
4441 ' >$as_me.lineno &&
4442 chmod +x $as_me.lineno ||
4443 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4444 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4445 { (exit 1); exit 1; }; }
4447 # Don't try to exec as it changes $[0], causing all sort of problems
4448 # (the dirname of $[0] is not the place where we might find the
4449 # original and so on. Autoconf is especially sensible to this).
4450 . ./$as_me.lineno
4451 # Exit status is that of the last command.
4452 exit
4456 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4457 *c*,-n*) ECHO_N= ECHO_C='
4458 ' ECHO_T=' ' ;;
4459 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4460 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4461 esac
4463 if expr a : '\(a\)' >/dev/null 2>&1; then
4464 as_expr=expr
4465 else
4466 as_expr=false
4469 rm -f conf$$ conf$$.exe conf$$.file
4470 echo >conf$$.file
4471 if ln -s conf$$.file conf$$ 2>/dev/null; then
4472 # We could just check for DJGPP; but this test a) works b) is more generic
4473 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4474 if test -f conf$$.exe; then
4475 # Don't use ln at all; we don't have any links
4476 as_ln_s='cp -p'
4477 else
4478 as_ln_s='ln -s'
4480 elif ln conf$$.file conf$$ 2>/dev/null; then
4481 as_ln_s=ln
4482 else
4483 as_ln_s='cp -p'
4485 rm -f conf$$ conf$$.exe conf$$.file
4487 if mkdir -p . 2>/dev/null; then
4488 as_mkdir_p=:
4489 else
4490 test -d ./-p && rmdir ./-p
4491 as_mkdir_p=false
4494 as_executable_p="test -f"
4496 # Sed expression to map a string onto a valid CPP name.
4497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4499 # Sed expression to map a string onto a valid variable name.
4500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4503 # IFS
4504 # We need space, tab and new line, in precisely that order.
4505 as_nl='
4507 IFS=" $as_nl"
4509 # CDPATH.
4510 $as_unset CDPATH
4512 exec 6>&1
4514 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4515 # report actual input values of CONFIG_FILES etc. instead of their
4516 # values after options handling. Logging --version etc. is OK.
4517 exec 5>>config.log
4519 echo
4520 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4521 ## Running $as_me. ##
4522 _ASBOX
4523 } >&5
4524 cat >&5 <<_CSEOF
4526 This file was extended by fixincludes $as_me , which was
4527 generated by GNU Autoconf 2.59. Invocation command line was
4529 CONFIG_FILES = $CONFIG_FILES
4530 CONFIG_HEADERS = $CONFIG_HEADERS
4531 CONFIG_LINKS = $CONFIG_LINKS
4532 CONFIG_COMMANDS = $CONFIG_COMMANDS
4533 $ $0 $@
4535 _CSEOF
4536 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4537 echo >&5
4538 _ACEOF
4540 # Files that config.status was made for.
4541 if test -n "$ac_config_files"; then
4542 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4545 if test -n "$ac_config_headers"; then
4546 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4549 if test -n "$ac_config_links"; then
4550 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4553 if test -n "$ac_config_commands"; then
4554 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4557 cat >>$CONFIG_STATUS <<\_ACEOF
4559 ac_cs_usage="\
4560 \`$as_me' instantiates files from templates according to the
4561 current configuration.
4563 Usage: $0 [OPTIONS] [FILE]...
4565 -h, --help print this help, then exit
4566 -V, --version print version number, then exit
4567 -q, --quiet do not print progress messages
4568 -d, --debug don't remove temporary files
4569 --recheck update $as_me by reconfiguring in the same conditions
4570 --file=FILE[:TEMPLATE]
4571 instantiate the configuration file FILE
4572 --header=FILE[:TEMPLATE]
4573 instantiate the configuration header FILE
4575 Configuration files:
4576 $config_files
4578 Configuration headers:
4579 $config_headers
4581 Report bugs to <bug-autoconf@gnu.org>."
4582 _ACEOF
4584 cat >>$CONFIG_STATUS <<_ACEOF
4585 ac_cs_version="\\
4586 fixincludes config.status
4587 configured by $0, generated by GNU Autoconf 2.59,
4588 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4590 Copyright (C) 2003 Free Software Foundation, Inc.
4591 This config.status script is free software; the Free Software Foundation
4592 gives unlimited permission to copy, distribute and modify it."
4593 srcdir=$srcdir
4594 _ACEOF
4596 cat >>$CONFIG_STATUS <<\_ACEOF
4597 # If no file are specified by the user, then we need to provide default
4598 # value. By we need to know if files were specified by the user.
4599 ac_need_defaults=:
4600 while test $# != 0
4602 case $1 in
4603 --*=*)
4604 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4605 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4606 ac_shift=:
4609 ac_option=$1
4610 ac_optarg=$2
4611 ac_shift=shift
4613 *) # This is not an option, so the user has probably given explicit
4614 # arguments.
4615 ac_option=$1
4616 ac_need_defaults=false;;
4617 esac
4619 case $ac_option in
4620 # Handling of the options.
4621 _ACEOF
4622 cat >>$CONFIG_STATUS <<\_ACEOF
4623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4624 ac_cs_recheck=: ;;
4625 --version | --vers* | -V )
4626 echo "$ac_cs_version"; exit 0 ;;
4627 --he | --h)
4628 # Conflict between --help and --header
4629 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4630 Try \`$0 --help' for more information." >&5
4631 echo "$as_me: error: ambiguous option: $1
4632 Try \`$0 --help' for more information." >&2;}
4633 { (exit 1); exit 1; }; };;
4634 --help | --hel | -h )
4635 echo "$ac_cs_usage"; exit 0 ;;
4636 --debug | --d* | -d )
4637 debug=: ;;
4638 --file | --fil | --fi | --f )
4639 $ac_shift
4640 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4641 ac_need_defaults=false;;
4642 --header | --heade | --head | --hea )
4643 $ac_shift
4644 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4645 ac_need_defaults=false;;
4646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4647 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4648 ac_cs_silent=: ;;
4650 # This is an error.
4651 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4652 Try \`$0 --help' for more information." >&5
4653 echo "$as_me: error: unrecognized option: $1
4654 Try \`$0 --help' for more information." >&2;}
4655 { (exit 1); exit 1; }; } ;;
4657 *) ac_config_targets="$ac_config_targets $1" ;;
4659 esac
4660 shift
4661 done
4663 ac_configure_extra_args=
4665 if $ac_cs_silent; then
4666 exec 6>/dev/null
4667 ac_configure_extra_args="$ac_configure_extra_args --silent"
4670 _ACEOF
4671 cat >>$CONFIG_STATUS <<_ACEOF
4672 if \$ac_cs_recheck; then
4673 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4674 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4677 _ACEOF
4683 cat >>$CONFIG_STATUS <<\_ACEOF
4684 for ac_config_target in $ac_config_targets
4686 case "$ac_config_target" in
4687 # Handling of arguments.
4688 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4689 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4690 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4691 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4692 { (exit 1); exit 1; }; };;
4693 esac
4694 done
4696 # If the user did not use the arguments to specify the items to instantiate,
4697 # then the envvar interface is used. Set only those that are not.
4698 # We use the long form for the default assignment because of an extremely
4699 # bizarre bug on SunOS 4.1.3.
4700 if $ac_need_defaults; then
4701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4705 # Have a temporary directory for convenience. Make it in the build tree
4706 # simply because there is no reason to put it here, and in addition,
4707 # creating and moving files from /tmp can sometimes cause problems.
4708 # Create a temporary directory, and hook for its removal unless debugging.
4709 $debug ||
4711 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4712 trap '{ (exit 1); exit 1; }' 1 2 13 15
4715 # Create a (secure) tmp directory for tmp files.
4718 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4719 test -n "$tmp" && test -d "$tmp"
4720 } ||
4722 tmp=./confstat$$-$RANDOM
4723 (umask 077 && mkdir $tmp)
4724 } ||
4726 echo "$me: cannot create a temporary directory in ." >&2
4727 { (exit 1); exit 1; }
4730 _ACEOF
4732 cat >>$CONFIG_STATUS <<_ACEOF
4735 # CONFIG_FILES section.
4738 # No need to generate the scripts if there are no CONFIG_FILES.
4739 # This happens for instance when ./config.status config.h
4740 if test -n "\$CONFIG_FILES"; then
4741 # Protect against being on the right side of a sed subst in config.status.
4742 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4743 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4744 s,@SHELL@,$SHELL,;t t
4745 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4746 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4747 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4748 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4749 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4750 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4751 s,@exec_prefix@,$exec_prefix,;t t
4752 s,@prefix@,$prefix,;t t
4753 s,@program_transform_name@,$program_transform_name,;t t
4754 s,@bindir@,$bindir,;t t
4755 s,@sbindir@,$sbindir,;t t
4756 s,@libexecdir@,$libexecdir,;t t
4757 s,@datadir@,$datadir,;t t
4758 s,@sysconfdir@,$sysconfdir,;t t
4759 s,@sharedstatedir@,$sharedstatedir,;t t
4760 s,@localstatedir@,$localstatedir,;t t
4761 s,@libdir@,$libdir,;t t
4762 s,@includedir@,$includedir,;t t
4763 s,@oldincludedir@,$oldincludedir,;t t
4764 s,@infodir@,$infodir,;t t
4765 s,@mandir@,$mandir,;t t
4766 s,@build_alias@,$build_alias,;t t
4767 s,@host_alias@,$host_alias,;t t
4768 s,@target_alias@,$target_alias,;t t
4769 s,@DEFS@,$DEFS,;t t
4770 s,@ECHO_C@,$ECHO_C,;t t
4771 s,@ECHO_N@,$ECHO_N,;t t
4772 s,@ECHO_T@,$ECHO_T,;t t
4773 s,@LIBS@,$LIBS,;t t
4774 s,@build@,$build,;t t
4775 s,@build_cpu@,$build_cpu,;t t
4776 s,@build_vendor@,$build_vendor,;t t
4777 s,@build_os@,$build_os,;t t
4778 s,@host@,$host,;t t
4779 s,@host_cpu@,$host_cpu,;t t
4780 s,@host_vendor@,$host_vendor,;t t
4781 s,@host_os@,$host_os,;t t
4782 s,@target@,$target,;t t
4783 s,@target_cpu@,$target_cpu,;t t
4784 s,@target_vendor@,$target_vendor,;t t
4785 s,@target_os@,$target_os,;t t
4786 s,@CC@,$CC,;t t
4787 s,@CFLAGS@,$CFLAGS,;t t
4788 s,@LDFLAGS@,$LDFLAGS,;t t
4789 s,@CPPFLAGS@,$CPPFLAGS,;t t
4790 s,@ac_ct_CC@,$ac_ct_CC,;t t
4791 s,@EXEEXT@,$EXEEXT,;t t
4792 s,@OBJEXT@,$OBJEXT,;t t
4793 s,@TARGET@,$TARGET,;t t
4794 s,@CPP@,$CPP,;t t
4795 s,@EGREP@,$EGREP,;t t
4796 s,@MAINT@,$MAINT,;t t
4797 s,@LIBOBJS@,$LIBOBJS,;t t
4798 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4799 CEOF
4801 _ACEOF
4803 cat >>$CONFIG_STATUS <<\_ACEOF
4804 # Split the substitutions into bite-sized pieces for seds with
4805 # small command number limits, like on Digital OSF/1 and HP-UX.
4806 ac_max_sed_lines=48
4807 ac_sed_frag=1 # Number of current file.
4808 ac_beg=1 # First line for current file.
4809 ac_end=$ac_max_sed_lines # Line after last line for current file.
4810 ac_more_lines=:
4811 ac_sed_cmds=
4812 while $ac_more_lines; do
4813 if test $ac_beg -gt 1; then
4814 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4815 else
4816 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4818 if test ! -s $tmp/subs.frag; then
4819 ac_more_lines=false
4820 else
4821 # The purpose of the label and of the branching condition is to
4822 # speed up the sed processing (if there are no `@' at all, there
4823 # is no need to browse any of the substitutions).
4824 # These are the two extra sed commands mentioned above.
4825 (echo ':t
4826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4827 if test -z "$ac_sed_cmds"; then
4828 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4829 else
4830 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4832 ac_sed_frag=`expr $ac_sed_frag + 1`
4833 ac_beg=$ac_end
4834 ac_end=`expr $ac_end + $ac_max_sed_lines`
4836 done
4837 if test -z "$ac_sed_cmds"; then
4838 ac_sed_cmds=cat
4840 fi # test -n "$CONFIG_FILES"
4842 _ACEOF
4843 cat >>$CONFIG_STATUS <<\_ACEOF
4844 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4845 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4846 case $ac_file in
4847 - | *:- | *:-:* ) # input from stdin
4848 cat >$tmp/stdin
4849 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4851 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4853 * ) ac_file_in=$ac_file.in ;;
4854 esac
4856 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4857 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4859 X"$ac_file" : 'X\(//\)[^/]' \| \
4860 X"$ac_file" : 'X\(//\)$' \| \
4861 X"$ac_file" : 'X\(/\)' \| \
4862 . : '\(.\)' 2>/dev/null ||
4863 echo X"$ac_file" |
4864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4866 /^X\(\/\/\)$/{ s//\1/; q; }
4867 /^X\(\/\).*/{ s//\1/; q; }
4868 s/.*/./; q'`
4869 { if $as_mkdir_p; then
4870 mkdir -p "$ac_dir"
4871 else
4872 as_dir="$ac_dir"
4873 as_dirs=
4874 while test ! -d "$as_dir"; do
4875 as_dirs="$as_dir $as_dirs"
4876 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4877 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4878 X"$as_dir" : 'X\(//\)[^/]' \| \
4879 X"$as_dir" : 'X\(//\)$' \| \
4880 X"$as_dir" : 'X\(/\)' \| \
4881 . : '\(.\)' 2>/dev/null ||
4882 echo X"$as_dir" |
4883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4885 /^X\(\/\/\)$/{ s//\1/; q; }
4886 /^X\(\/\).*/{ s//\1/; q; }
4887 s/.*/./; q'`
4888 done
4889 test ! -n "$as_dirs" || mkdir $as_dirs
4890 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4891 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4892 { (exit 1); exit 1; }; }; }
4894 ac_builddir=.
4896 if test "$ac_dir" != .; then
4897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4898 # A "../" for each directory in $ac_dir_suffix.
4899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4900 else
4901 ac_dir_suffix= ac_top_builddir=
4904 case $srcdir in
4905 .) # No --srcdir option. We are building in place.
4906 ac_srcdir=.
4907 if test -z "$ac_top_builddir"; then
4908 ac_top_srcdir=.
4909 else
4910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4911 fi ;;
4912 [\\/]* | ?:[\\/]* ) # Absolute path.
4913 ac_srcdir=$srcdir$ac_dir_suffix;
4914 ac_top_srcdir=$srcdir ;;
4915 *) # Relative path.
4916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4918 esac
4920 # Do not use `cd foo && pwd` to compute absolute paths, because
4921 # the directories may not exist.
4922 case `pwd` in
4923 .) ac_abs_builddir="$ac_dir";;
4925 case "$ac_dir" in
4926 .) ac_abs_builddir=`pwd`;;
4927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4929 esac;;
4930 esac
4931 case $ac_abs_builddir in
4932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4934 case ${ac_top_builddir}. in
4935 .) ac_abs_top_builddir=$ac_abs_builddir;;
4936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4938 esac;;
4939 esac
4940 case $ac_abs_builddir in
4941 .) ac_abs_srcdir=$ac_srcdir;;
4943 case $ac_srcdir in
4944 .) ac_abs_srcdir=$ac_abs_builddir;;
4945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4947 esac;;
4948 esac
4949 case $ac_abs_builddir in
4950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4952 case $ac_top_srcdir in
4953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4956 esac;;
4957 esac
4961 # Let's still pretend it is `configure' which instantiates (i.e., don't
4962 # use $as_me), people would be surprised to read:
4963 # /* config.h. Generated by config.status. */
4964 if test x"$ac_file" = x-; then
4965 configure_input=
4966 else
4967 configure_input="$ac_file. "
4969 configure_input=$configure_input"Generated from `echo $ac_file_in |
4970 sed 's,.*/,,'` by configure."
4972 # First look for the input files in the build tree, otherwise in the
4973 # src tree.
4974 ac_file_inputs=`IFS=:
4975 for f in $ac_file_in; do
4976 case $f in
4977 -) echo $tmp/stdin ;;
4978 [\\/$]*)
4979 # Absolute (can't be DOS-style, as IFS=:)
4980 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4981 echo "$as_me: error: cannot find input file: $f" >&2;}
4982 { (exit 1); exit 1; }; }
4983 echo "$f";;
4984 *) # Relative
4985 if test -f "$f"; then
4986 # Build tree
4987 echo "$f"
4988 elif test -f "$srcdir/$f"; then
4989 # Source tree
4990 echo "$srcdir/$f"
4991 else
4992 # /dev/null tree
4993 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4994 echo "$as_me: error: cannot find input file: $f" >&2;}
4995 { (exit 1); exit 1; }; }
4996 fi;;
4997 esac
4998 done` || { (exit 1); exit 1; }
5000 if test x"$ac_file" != x-; then
5001 { echo "$as_me:$LINENO: creating $ac_file" >&5
5002 echo "$as_me: creating $ac_file" >&6;}
5003 rm -f "$ac_file"
5005 _ACEOF
5006 cat >>$CONFIG_STATUS <<_ACEOF
5007 sed "$ac_vpsub
5008 $extrasub
5009 _ACEOF
5010 cat >>$CONFIG_STATUS <<\_ACEOF
5012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5013 s,@configure_input@,$configure_input,;t t
5014 s,@srcdir@,$ac_srcdir,;t t
5015 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5016 s,@top_srcdir@,$ac_top_srcdir,;t t
5017 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5018 s,@builddir@,$ac_builddir,;t t
5019 s,@abs_builddir@,$ac_abs_builddir,;t t
5020 s,@top_builddir@,$ac_top_builddir,;t t
5021 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5022 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5023 rm -f $tmp/stdin
5024 if test x"$ac_file" != x-; then
5025 mv $tmp/out $ac_file
5026 else
5027 cat $tmp/out
5028 rm -f $tmp/out
5031 done
5032 _ACEOF
5033 cat >>$CONFIG_STATUS <<\_ACEOF
5036 # CONFIG_HEADER section.
5039 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5040 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5042 # ac_d sets the value in "#define NAME VALUE" lines.
5043 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5044 ac_dB='[ ].*$,\1#\2'
5045 ac_dC=' '
5046 ac_dD=',;t'
5047 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5048 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5049 ac_uB='$,\1#\2define\3'
5050 ac_uC=' '
5051 ac_uD=',;t'
5053 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5054 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5055 case $ac_file in
5056 - | *:- | *:-:* ) # input from stdin
5057 cat >$tmp/stdin
5058 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5059 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5060 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5061 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5062 * ) ac_file_in=$ac_file.in ;;
5063 esac
5065 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5066 echo "$as_me: creating $ac_file" >&6;}
5068 # First look for the input files in the build tree, otherwise in the
5069 # src tree.
5070 ac_file_inputs=`IFS=:
5071 for f in $ac_file_in; do
5072 case $f in
5073 -) echo $tmp/stdin ;;
5074 [\\/$]*)
5075 # Absolute (can't be DOS-style, as IFS=:)
5076 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5077 echo "$as_me: error: cannot find input file: $f" >&2;}
5078 { (exit 1); exit 1; }; }
5079 # Do quote $f, to prevent DOS paths from being IFS'd.
5080 echo "$f";;
5081 *) # Relative
5082 if test -f "$f"; then
5083 # Build tree
5084 echo "$f"
5085 elif test -f "$srcdir/$f"; then
5086 # Source tree
5087 echo "$srcdir/$f"
5088 else
5089 # /dev/null tree
5090 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5091 echo "$as_me: error: cannot find input file: $f" >&2;}
5092 { (exit 1); exit 1; }; }
5093 fi;;
5094 esac
5095 done` || { (exit 1); exit 1; }
5096 # Remove the trailing spaces.
5097 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5099 _ACEOF
5101 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5102 # `conftest.undefs', that substitutes the proper values into
5103 # config.h.in to produce config.h. The first handles `#define'
5104 # templates, and the second `#undef' templates.
5105 # And first: Protect against being on the right side of a sed subst in
5106 # config.status. Protect against being in an unquoted here document
5107 # in config.status.
5108 rm -f conftest.defines conftest.undefs
5109 # Using a here document instead of a string reduces the quoting nightmare.
5110 # Putting comments in sed scripts is not portable.
5112 # `end' is used to avoid that the second main sed command (meant for
5113 # 0-ary CPP macros) applies to n-ary macro definitions.
5114 # See the Autoconf documentation for `clear'.
5115 cat >confdef2sed.sed <<\_ACEOF
5116 s/[\\&,]/\\&/g
5117 s,[\\$`],\\&,g
5118 t clear
5119 : clear
5120 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5121 t end
5122 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5123 : end
5124 _ACEOF
5125 # If some macros were called several times there might be several times
5126 # the same #defines, which is useless. Nevertheless, we may not want to
5127 # sort them, since we want the *last* AC-DEFINE to be honored.
5128 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5129 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5130 rm -f confdef2sed.sed
5132 # This sed command replaces #undef with comments. This is necessary, for
5133 # example, in the case of _POSIX_SOURCE, which is predefined and required
5134 # on some systems where configure will not decide to define it.
5135 cat >>conftest.undefs <<\_ACEOF
5136 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5137 _ACEOF
5139 # Break up conftest.defines because some shells have a limit on the size
5140 # of here documents, and old seds have small limits too (100 cmds).
5141 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5142 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5143 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5144 echo ' :' >>$CONFIG_STATUS
5145 rm -f conftest.tail
5146 while grep . conftest.defines >/dev/null
5148 # Write a limited-size here document to $tmp/defines.sed.
5149 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5150 # Speed up: don't consider the non `#define' lines.
5151 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5152 # Work around the forget-to-reset-the-flag bug.
5153 echo 't clr' >>$CONFIG_STATUS
5154 echo ': clr' >>$CONFIG_STATUS
5155 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5156 echo 'CEOF
5157 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5158 rm -f $tmp/in
5159 mv $tmp/out $tmp/in
5160 ' >>$CONFIG_STATUS
5161 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5162 rm -f conftest.defines
5163 mv conftest.tail conftest.defines
5164 done
5165 rm -f conftest.defines
5166 echo ' fi # grep' >>$CONFIG_STATUS
5167 echo >>$CONFIG_STATUS
5169 # Break up conftest.undefs because some shells have a limit on the size
5170 # of here documents, and old seds have small limits too (100 cmds).
5171 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5172 rm -f conftest.tail
5173 while grep . conftest.undefs >/dev/null
5175 # Write a limited-size here document to $tmp/undefs.sed.
5176 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5177 # Speed up: don't consider the non `#undef'
5178 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5179 # Work around the forget-to-reset-the-flag bug.
5180 echo 't clr' >>$CONFIG_STATUS
5181 echo ': clr' >>$CONFIG_STATUS
5182 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5183 echo 'CEOF
5184 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5185 rm -f $tmp/in
5186 mv $tmp/out $tmp/in
5187 ' >>$CONFIG_STATUS
5188 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5189 rm -f conftest.undefs
5190 mv conftest.tail conftest.undefs
5191 done
5192 rm -f conftest.undefs
5194 cat >>$CONFIG_STATUS <<\_ACEOF
5195 # Let's still pretend it is `configure' which instantiates (i.e., don't
5196 # use $as_me), people would be surprised to read:
5197 # /* config.h. Generated by config.status. */
5198 if test x"$ac_file" = x-; then
5199 echo "/* Generated by configure. */" >$tmp/config.h
5200 else
5201 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5203 cat $tmp/in >>$tmp/config.h
5204 rm -f $tmp/in
5205 if test x"$ac_file" != x-; then
5206 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5207 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5208 echo "$as_me: $ac_file is unchanged" >&6;}
5209 else
5210 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5211 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5212 X"$ac_file" : 'X\(//\)[^/]' \| \
5213 X"$ac_file" : 'X\(//\)$' \| \
5214 X"$ac_file" : 'X\(/\)' \| \
5215 . : '\(.\)' 2>/dev/null ||
5216 echo X"$ac_file" |
5217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5218 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5219 /^X\(\/\/\)$/{ s//\1/; q; }
5220 /^X\(\/\).*/{ s//\1/; q; }
5221 s/.*/./; q'`
5222 { if $as_mkdir_p; then
5223 mkdir -p "$ac_dir"
5224 else
5225 as_dir="$ac_dir"
5226 as_dirs=
5227 while test ! -d "$as_dir"; do
5228 as_dirs="$as_dir $as_dirs"
5229 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5231 X"$as_dir" : 'X\(//\)[^/]' \| \
5232 X"$as_dir" : 'X\(//\)$' \| \
5233 X"$as_dir" : 'X\(/\)' \| \
5234 . : '\(.\)' 2>/dev/null ||
5235 echo X"$as_dir" |
5236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5238 /^X\(\/\/\)$/{ s//\1/; q; }
5239 /^X\(\/\).*/{ s//\1/; q; }
5240 s/.*/./; q'`
5241 done
5242 test ! -n "$as_dirs" || mkdir $as_dirs
5243 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5244 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5245 { (exit 1); exit 1; }; }; }
5247 rm -f $ac_file
5248 mv $tmp/config.h $ac_file
5250 else
5251 cat $tmp/config.h
5252 rm -f $tmp/config.h
5254 # Run the commands associated with the file.
5255 case $ac_file in
5256 config.h ) echo timestamp > stamp-h ;;
5257 esac
5258 done
5259 _ACEOF
5261 cat >>$CONFIG_STATUS <<\_ACEOF
5263 { (exit 0); exit 0; }
5264 _ACEOF
5265 chmod +x $CONFIG_STATUS
5266 ac_clean_files=$ac_clean_files_save
5269 # configure is writing to config.log, and then calls config.status.
5270 # config.status does its own redirection, appending to config.log.
5271 # Unfortunately, on DOS this fails, as config.log is still kept open
5272 # by configure, so config.status won't be able to write to it; its
5273 # output is simply discarded. So we exec the FD to /dev/null,
5274 # effectively closing config.log, so it can be properly (re)opened and
5275 # appended to by config.status. When coming back to configure, we
5276 # need to make the FD available again.
5277 if test "$no_create" != yes; then
5278 ac_cs_success=:
5279 ac_config_status_args=
5280 test "$silent" = yes &&
5281 ac_config_status_args="$ac_config_status_args --quiet"
5282 exec 5>/dev/null
5283 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5284 exec 5>>config.log
5285 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5286 # would make configure fail if this is the last instruction.
5287 $ac_cs_success || { (exit 1); exit 1; }