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