PR middle-end/37669
[official-gcc.git] / fixincludes / configure
blob872e8e0c82cc1b4b7108aebdd2c58f6a8dddd5d0
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 SED WARN_CFLAGS WARN_PEDANTIC WERROR target_noncanonical TARGET CPP EGREP MAINT LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314 ac_pwd=`pwd`
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures fixincludes to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
839 _ACEOF
842 if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of fixincludes :";;
845 esac
846 cat <<\_ACEOF
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-werror-always enable -Werror despite compiler version
852 --enable-twoprocess Use a separate process to apply the fixes
853 --enable-maintainer-mode enable make rules and dependencies not useful
854 (and sometimes confusing) to the casual installer
856 Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-local-prefix=DIR specifies directory to put local include
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
912 case "$ac_dir" in
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
930 case $ac_srcdir in
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 esac;;
944 esac
946 cd $ac_dir
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
949 echo
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
952 echo
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
956 echo
957 $ac_configure --help
958 else
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 cd $ac_popdir
962 done
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967 cat <<\_ACEOF
968 fixincludes configure
969 generated by GNU Autoconf 2.59
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975 exit 0
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by fixincludes $as_me , which was
983 generated by GNU Autoconf 2.59. Invocation command line was
985 $ $0 $@
987 _ACEOF
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1011 _ASUNAME
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019 done
1021 } >&5
1023 cat >&5 <<_ACEOF
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1030 _ACEOF
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1045 for ac_arg
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1078 esac
1079 done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1092 echo
1094 cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 esac;
1115 echo
1117 cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1214 . "$ac_site_file"
1216 done
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1229 else
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 # differences in whitespace do not lead to failure.
1257 ac_old_val_w=`echo x $ac_old_val`
1258 ac_new_val_w=`echo x $ac_new_val`
1259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 ac_cache_corrupted=:
1263 else
1264 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1265 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1266 eval $ac_var=\$ac_old_val
1268 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1269 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1270 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1271 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1272 fi;;
1273 esac
1274 # Pass precious variables to config.status.
1275 if test "$ac_new_set" = set; then
1276 case $ac_new_val in
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 *) ac_arg=$ac_var=$ac_new_val ;;
1280 esac
1281 case " $ac_configure_args " in
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 esac
1286 done
1287 if $ac_cache_corrupted; then
1288 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 ac_aux_dir=
1334 for ac_dir in .. $srcdir/..; do
1335 if test -f $ac_dir/install-sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 break
1339 elif test -f $ac_dir/install.sh; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 break
1343 elif test -f $ac_dir/shtool; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1346 break
1348 done
1349 if test -z "$ac_aux_dir"; then
1350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1351 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1352 { (exit 1); exit 1; }; }
1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1360 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1361 # 2006, 2007 Free Software Foundation, Inc.
1363 # This file is part of GNU Libtool:
1364 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1366 # This file is free software; the Free Software Foundation gives
1367 # unlimited permission to copy and/or distribute it, with or without
1368 # modifications, as long as this notice is preserved.
1372 # serial 53 LT_INIT
1375 # LT_PREREQ(VERSION)
1376 # ------------------
1377 # Complain and exit if this libtool version is less that VERSION.
1381 # LT_INIT([OPTIONS])
1382 # ------------------
1383 # _LT_INIT
1385 # Old names:
1390 # _LT_CC_BASENAME(CC)
1391 # -------------------
1392 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1396 # _LT_FILEUTILS_DEFAULTS
1397 # ----------------------
1398 # It is okay to use these file commands and assume they have been set
1399 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1400 # _LT_FILEUTILS_DEFAULTS
1403 # _LT_SETUP
1404 # ---------
1405 # _LT_SETUP
1408 # _LT_PROG_LTMAIN
1409 # ---------------
1410 # Note that this code is called both from `configure', and `config.status'
1411 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1412 # `config.status' has no value for ac_aux_dir unless we are using Automake,
1413 # so we pass a copy along to make sure it has a sensible value anyway.
1414 # _LT_PROG_LTMAIN
1417 ## ------------------------------------- ##
1418 ## Accumulate code for creating libtool. ##
1419 ## ------------------------------------- ##
1421 # So that we can recreate a full libtool script including additional
1422 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1423 # in macros and then make a single call at the end using the `libtool'
1424 # label.
1427 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1428 # ----------------------------------------
1429 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1432 # Initialize.
1436 # _LT_CONFIG_LIBTOOL([COMMANDS])
1437 # ------------------------------
1438 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1441 # Initialize.
1445 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1446 # -----------------------------------------------------
1450 # _LT_FORMAT_COMMENT([COMMENT])
1451 # -----------------------------
1452 # Add leading comment marks to the start of each line, and a trailing
1453 # full-stop to the whole comment if one is not present already.
1458 ## ------------------------ ##
1459 ## FIXME: Eliminate VARNAME ##
1460 ## ------------------------ ##
1463 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1464 # -------------------------------------------------------------------
1465 # CONFIGNAME is the name given to the value in the libtool script.
1466 # VARNAME is the (base) name used in the configure script.
1467 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1468 # VARNAME. Any other value will be used directly.
1472 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1473 # --------------------------------------------------------
1477 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1478 # ------------------------------------------------
1482 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1483 # ---------------------------------------------------------
1487 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1488 # --------------------------------------------------
1492 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1493 # ---------------------------------------------------
1497 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1498 # ---------------------------------------------------
1503 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1504 # ------------------------------------------------
1509 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
1510 # ------------------------------------
1511 # Quote a variable value, and forward it to `config.status' so that its
1512 # declaration there will have the same value as in `configure'. VARNAME
1513 # must have a single quote delimited value for this to work.
1517 # _LT_CONFIG_STATUS_DECLARATIONS
1518 # ------------------------------
1519 # We delimit libtool config variables with single quotes, so when
1520 # we write them to config.status, we have to be sure to quote all
1521 # embedded single quotes properly. In configure, this macro expands
1522 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1524 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1528 # _LT_LIBTOOL_TAGS
1529 # ----------------
1530 # Output comment and list of tags supported by the script
1534 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1535 # -----------------------------------
1536 # Extract the dictionary values for VARNAME (optionally with TAG) and
1537 # expand to a commented shell variable setting:
1539 # # Some comment about what VAR is for.
1540 # visible_name=$lt_internal_name
1544 # _LT_LIBTOOL_CONFIG_VARS
1545 # -----------------------
1546 # Produce commented declarations of non-tagged libtool config variables
1547 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1548 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1549 # section) are produced by _LT_LIBTOOL_TAG_VARS.
1553 # _LT_LIBTOOL_TAG_VARS(TAG)
1554 # -------------------------
1558 # _LT_TAGVAR(VARNAME, [TAGNAME])
1559 # ------------------------------
1563 # _LT_CONFIG_COMMANDS
1564 # -------------------
1565 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1566 # variables for single and double quote escaping we saved from calls
1567 # to _LT_DECL, we can put quote escaped variables declarations
1568 # into `config.status', and then the shell code to quote escape them in
1569 # for loops in `config.status'. Finally, any additional code accumulated
1570 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1571 #_LT_CONFIG_COMMANDS
1574 # Initialize.
1578 # LT_OUTPUT
1579 # ---------
1580 # This macro allows early generation of the libtool script (before
1581 # AC_OUTPUT is called), incase it is used in configure for compilation
1582 # tests.
1583 # LT_OUTPUT
1586 # _LT_CONFIG(TAG)
1587 # ---------------
1588 # If TAG is the built-in tag, create an initial libtool script with a
1589 # default configuration from the untagged config vars. Otherwise add code
1590 # to config.status for appending the configuration named by TAG from the
1591 # matching tagged config vars.
1592 # _LT_CONFIG
1595 # LT_SUPPORTED_TAG(TAG)
1596 # ---------------------
1597 # Trace this macro to discover what tags are supported by the libtool
1598 # --tag option, using:
1599 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
1603 # C support is built-in for now
1608 # LT_LANG(LANG)
1609 # -------------
1610 # Enable libtool support for the given language if not already enabled.
1611 # LT_LANG
1614 # _LT_LANG(LANGNAME)
1615 # ------------------
1616 # _LT_LANG
1619 # _LT_LANG_DEFAULT_CONFIG
1620 # -----------------------
1621 # _LT_LANG_DEFAULT_CONFIG
1623 # Obsolete macros:
1630 # _LT_TAG_COMPILER
1631 # ----------------
1632 # _LT_TAG_COMPILER
1635 # _LT_COMPILER_BOILERPLATE
1636 # ------------------------
1637 # Check for compiler boilerplate output or warnings with
1638 # the simple compiler test code.
1639 # _LT_COMPILER_BOILERPLATE
1642 # _LT_LINKER_BOILERPLATE
1643 # ----------------------
1644 # Check for linker boilerplate output or warnings with
1645 # the simple link test code.
1646 # _LT_LINKER_BOILERPLATE
1649 # _LT_SYS_MODULE_PATH_AIX
1650 # -----------------------
1651 # Links a minimal program and checks the executable
1652 # for the system default hardcoded library path. In most cases,
1653 # this is /usr/lib:/lib, but when the MPI compilers are used
1654 # the location of the communication and MPI libs are included too.
1655 # If we don't find anything, use the default library path according
1656 # to the aix ld manual.
1657 # _LT_SYS_MODULE_PATH_AIX
1660 # _LT_SHELL_INIT(ARG)
1661 # -------------------
1662 # _LT_SHELL_INIT
1665 # _LT_PROG_ECHO_BACKSLASH
1666 # -----------------------
1667 # Add some code to the start of the generated configure script which
1668 # will find an echo command which doesn't interpret backslashes.
1669 # _LT_PROG_ECHO_BACKSLASH
1672 # _LT_ENABLE_LOCK
1673 # ---------------
1674 # _LT_ENABLE_LOCK
1677 # _LT_CMD_OLD_ARCHIVE
1678 # -------------------
1679 # _LT_CMD_OLD_ARCHIVE
1682 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1683 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1684 # ----------------------------------------------------------------
1685 # Check whether the given compiler option works
1686 # _LT_COMPILER_OPTION
1688 # Old name:
1692 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1693 # [ACTION-SUCCESS], [ACTION-FAILURE])
1694 # ----------------------------------------------------
1695 # Check whether the given linker option works
1696 # _LT_LINKER_OPTION
1698 # Old name:
1702 # LT_CMD_MAX_LEN
1703 #---------------
1704 # LT_CMD_MAX_LEN
1706 # Old name:
1710 # _LT_HEADER_DLFCN
1711 # ----------------
1712 # _LT_HEADER_DLFCN
1715 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1716 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1717 # ----------------------------------------------------------------
1718 # _LT_TRY_DLOPEN_SELF
1721 # LT_SYS_DLOPEN_SELF
1722 # ------------------
1723 # LT_SYS_DLOPEN_SELF
1725 # Old name:
1729 # _LT_COMPILER_C_O([TAGNAME])
1730 # ---------------------------
1731 # Check to see if options -c and -o are simultaneously supported by compiler.
1732 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1733 # _LT_COMPILER_C_O
1736 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1737 # ----------------------------------
1738 # Check to see if we can do hard links to lock some files if needed
1739 # _LT_COMPILER_FILE_LOCKS
1742 # _LT_CHECK_OBJDIR
1743 # ----------------
1744 # _LT_CHECK_OBJDIR
1747 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1748 # --------------------------------------
1749 # Check hardcoding attributes.
1750 # _LT_LINKER_HARDCODE_LIBPATH
1753 # _LT_CMD_STRIPLIB
1754 # ----------------
1755 # _LT_CMD_STRIPLIB
1758 # _LT_SYS_DYNAMIC_LINKER([TAG])
1759 # -----------------------------
1760 # PORTME Fill in your ld.so characteristics
1761 # _LT_SYS_DYNAMIC_LINKER
1764 # _LT_PATH_TOOL_PREFIX(TOOL)
1765 # --------------------------
1766 # find a file program which can recognize shared library
1767 # _LT_PATH_TOOL_PREFIX
1769 # Old name:
1773 # _LT_PATH_MAGIC
1774 # --------------
1775 # find a file program which can recognize a shared library
1776 # _LT_PATH_MAGIC
1779 # LT_PATH_LD
1780 # ----------
1781 # find the pathname to the GNU or non-GNU linker
1782 # LT_PATH_LD
1784 # Old names:
1789 # _LT_PATH_LD_GNU
1790 #- --------------
1791 # _LT_PATH_LD_GNU
1794 # _LT_CMD_RELOAD
1795 # --------------
1796 # find reload flag for linker
1797 # -- PORTME Some linkers may need a different reload flag.
1798 # _LT_CMD_RELOAD
1801 # _LT_CHECK_MAGIC_METHOD
1802 # ----------------------
1803 # how to check for library dependencies
1804 # -- PORTME fill in with the dynamic library characteristics
1805 # _LT_CHECK_MAGIC_METHOD
1808 # LT_PATH_NM
1809 # ----------
1810 # find the pathname to a BSD- or MS-compatible name lister
1811 # LT_PATH_NM
1813 # Old names:
1818 # LT_LIB_M
1819 # --------
1820 # check for math library
1821 # LT_LIB_M
1823 # Old name:
1827 # _LT_COMPILER_NO_RTTI([TAGNAME])
1828 # -------------------------------
1829 # _LT_COMPILER_NO_RTTI
1832 # _LT_CMD_GLOBAL_SYMBOLS
1833 # ----------------------
1834 # _LT_CMD_GLOBAL_SYMBOLS
1837 # _LT_COMPILER_PIC([TAGNAME])
1838 # ---------------------------
1839 # _LT_COMPILER_PIC
1842 # _LT_LINKER_SHLIBS([TAGNAME])
1843 # ----------------------------
1844 # See if the linker supports building shared libraries.
1845 # _LT_LINKER_SHLIBS
1848 # _LT_LANG_C_CONFIG([TAG])
1849 # ------------------------
1850 # Ensure that the configuration variables for a C compiler are suitably
1851 # defined. These variables are subsequently used by _LT_CONFIG to write
1852 # the compiler configuration to `libtool'.
1853 # _LT_LANG_C_CONFIG
1856 # _LT_PROG_CXX
1857 # ------------
1858 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
1859 # compiler, we have our own version here.
1860 # _LT_PROG_CXX
1864 # _LT_LANG_CXX_CONFIG([TAG])
1865 # --------------------------
1866 # Ensure that the configuration variables for a C++ compiler are suitably
1867 # defined. These variables are subsequently used by _LT_CONFIG to write
1868 # the compiler configuration to `libtool'.
1869 # _LT_LANG_CXX_CONFIG
1872 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
1873 # ---------------------------------
1874 # Figure out "hidden" library dependencies from verbose
1875 # compiler output when linking a shared library.
1876 # Parse the compiler output and extract the necessary
1877 # objects, libraries and library flags.
1878 # _LT_SYS_HIDDEN_LIBDEPS
1881 # _LT_PROG_F77
1882 # ------------
1883 # Since AC_PROG_F77 is broken, in that it returns the empty string
1884 # if there is no fortran compiler, we have our own version here.
1885 # _LT_PROG_F77
1889 # _LT_LANG_F77_CONFIG([TAG])
1890 # --------------------------
1891 # Ensure that the configuration variables for a Fortran 77 compiler are
1892 # suitably defined. These variables are subsequently used by _LT_CONFIG
1893 # to write the compiler configuration to `libtool'.
1894 # _LT_LANG_F77_CONFIG
1897 # _LT_PROG_FC
1898 # -----------
1899 # Since AC_PROG_FC is broken, in that it returns the empty string
1900 # if there is no fortran compiler, we have our own version here.
1901 # _LT_PROG_FC
1905 # _LT_LANG_FC_CONFIG([TAG])
1906 # -------------------------
1907 # Ensure that the configuration variables for a Fortran compiler are
1908 # suitably defined. These variables are subsequently used by _LT_CONFIG
1909 # to write the compiler configuration to `libtool'.
1910 # _LT_LANG_FC_CONFIG
1913 # _LT_LANG_GCJ_CONFIG([TAG])
1914 # --------------------------
1915 # Ensure that the configuration variables for the GNU Java Compiler compiler
1916 # are suitably defined. These variables are subsequently used by _LT_CONFIG
1917 # to write the compiler configuration to `libtool'.
1918 # _LT_LANG_GCJ_CONFIG
1921 # _LT_LANG_RC_CONFIG([TAG])
1922 # -------------------------
1923 # Ensure that the configuration variables for the Windows resource compiler
1924 # are suitably defined. These variables are subsequently used by _LT_CONFIG
1925 # to write the compiler configuration to `libtool'.
1926 # _LT_LANG_RC_CONFIG
1929 # LT_PROG_GCJ
1930 # -----------
1933 # Old name:
1937 # LT_PROG_RC
1938 # ----------
1941 # Old name:
1945 # _LT_DECL_EGREP
1946 # --------------
1947 # If we don't have a new enough Autoconf to choose the best grep
1948 # available, choose the one first in the user's PATH.
1952 # _LT_DECL_SED
1953 # ------------
1954 # Check for a fully-functional sed program, that truncates
1955 # as few characters as possible. Prefer GNU sed if found.
1956 # _LT_DECL_SED
1959 ############################################################
1960 # NOTE: This macro has been submitted for inclusion into #
1961 # GNU Autoconf as AC_PROG_SED. When it is available in #
1962 # a released version of Autoconf we should remove this #
1963 # macro and use it instead. #
1964 ############################################################
1966 #AC_PROG_SED
1967 #m4_ifndef
1969 # Old name:
1973 # _LT_CHECK_SHELL_FEATURES
1974 # ------------------------
1975 # Find out whether the shell is Bourne or XSI compatible,
1976 # or has some other useful features.
1977 # _LT_CHECK_SHELL_FEATURES
1980 # _LT_PROG_XSI_SHELLFNS
1981 # ---------------------
1982 # Bourne and XSI compatible variants of some useful shell functions.
1985 # Make sure we can run config.sub.
1986 $ac_config_sub sun4 >/dev/null 2>&1 ||
1987 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1988 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1989 { (exit 1); exit 1; }; }
1991 echo "$as_me:$LINENO: checking build system type" >&5
1992 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1993 if test "${ac_cv_build+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 ac_cv_build_alias=$build_alias
1997 test -z "$ac_cv_build_alias" &&
1998 ac_cv_build_alias=`$ac_config_guess`
1999 test -z "$ac_cv_build_alias" &&
2000 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2001 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2002 { (exit 1); exit 1; }; }
2003 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2004 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2005 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2006 { (exit 1); exit 1; }; }
2009 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2010 echo "${ECHO_T}$ac_cv_build" >&6
2011 build=$ac_cv_build
2012 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2013 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2014 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2017 echo "$as_me:$LINENO: checking host system type" >&5
2018 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2019 if test "${ac_cv_host+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022 ac_cv_host_alias=$host_alias
2023 test -z "$ac_cv_host_alias" &&
2024 ac_cv_host_alias=$ac_cv_build_alias
2025 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2026 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2027 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2028 { (exit 1); exit 1; }; }
2031 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2032 echo "${ECHO_T}$ac_cv_host" >&6
2033 host=$ac_cv_host
2034 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2035 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2036 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2039 echo "$as_me:$LINENO: checking target system type" >&5
2040 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2041 if test "${ac_cv_target+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044 ac_cv_target_alias=$target_alias
2045 test "x$ac_cv_target_alias" = "x" &&
2046 ac_cv_target_alias=$ac_cv_host_alias
2047 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2048 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2049 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2050 { (exit 1); exit 1; }; }
2053 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2054 echo "${ECHO_T}$ac_cv_target" >&6
2055 target=$ac_cv_target
2056 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2057 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2058 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2061 # The aliases save the names the user supplied, while $host etc.
2062 # will get canonicalized.
2063 test -n "$target_alias" &&
2064 test "$program_prefix$program_suffix$program_transform_name" = \
2065 NONENONEs,x,x, &&
2066 program_prefix=${target_alias}-
2067 ac_ext=c
2068 ac_cpp='$CPP $CPPFLAGS'
2069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072 if test -n "$ac_tool_prefix"; then
2073 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2074 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 if test -n "$CC"; then
2081 ac_cv_prog_CC="$CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 break 2
2094 done
2095 done
2099 CC=$ac_cv_prog_CC
2100 if test -n "$CC"; then
2101 echo "$as_me:$LINENO: result: $CC" >&5
2102 echo "${ECHO_T}$CC" >&6
2103 else
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2109 if test -z "$ac_cv_prog_CC"; then
2110 ac_ct_CC=$CC
2111 # Extract the first word of "gcc", so it can be a program name with args.
2112 set dummy gcc; ac_word=$2
2113 echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128 ac_cv_prog_ac_ct_CC="gcc"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 break 2
2132 done
2133 done
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 echo "${ECHO_T}$ac_ct_CC" >&6
2141 else
2142 echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6
2146 CC=$ac_ct_CC
2147 else
2148 CC="$ac_cv_prog_CC"
2151 if test -z "$CC"; then
2152 if test -n "$ac_tool_prefix"; then
2153 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2154 set dummy ${ac_tool_prefix}cc; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 if test -n "$CC"; then
2161 ac_cv_prog_CC="$CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170 ac_cv_prog_CC="${ac_tool_prefix}cc"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2174 done
2175 done
2179 CC=$ac_cv_prog_CC
2180 if test -n "$CC"; then
2181 echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6
2183 else
2184 echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2189 if test -z "$ac_cv_prog_CC"; then
2190 ac_ct_CC=$CC
2191 # Extract the first word of "cc", so it can be a program name with args.
2192 set dummy cc; ac_word=$2
2193 echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198 if test -n "$ac_ct_CC"; then
2199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2200 else
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2204 IFS=$as_save_IFS
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208 ac_cv_prog_ac_ct_CC="cc"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 break 2
2212 done
2213 done
2217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2218 if test -n "$ac_ct_CC"; then
2219 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2220 echo "${ECHO_T}$ac_ct_CC" >&6
2221 else
2222 echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2226 CC=$ac_ct_CC
2227 else
2228 CC="$ac_cv_prog_CC"
2232 if test -z "$CC"; then
2233 # Extract the first word of "cc", so it can be a program name with args.
2234 set dummy cc; ac_word=$2
2235 echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2237 if test "${ac_cv_prog_CC+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240 if test -n "$CC"; then
2241 ac_cv_prog_CC="$CC" # Let the user override the test.
2242 else
2243 ac_prog_rejected=no
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2252 ac_prog_rejected=yes
2253 continue
2255 ac_cv_prog_CC="cc"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2259 done
2260 done
2262 if test $ac_prog_rejected = yes; then
2263 # We found a bogon in the path, so make sure we never use it.
2264 set dummy $ac_cv_prog_CC
2265 shift
2266 if test $# != 0; then
2267 # We chose a different compiler from the bogus one.
2268 # However, it has the same basename, so the bogon will be chosen
2269 # first if we set CC to just the basename; use the full file name.
2270 shift
2271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2276 CC=$ac_cv_prog_CC
2277 if test -n "$CC"; then
2278 echo "$as_me:$LINENO: result: $CC" >&5
2279 echo "${ECHO_T}$CC" >&6
2280 else
2281 echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2286 if test -z "$CC"; then
2287 if test -n "$ac_tool_prefix"; then
2288 for ac_prog in cl
2290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2292 echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294 if test "${ac_cv_prog_CC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2311 done
2312 done
2316 CC=$ac_cv_prog_CC
2317 if test -n "$CC"; then
2318 echo "$as_me:$LINENO: result: $CC" >&5
2319 echo "${ECHO_T}$CC" >&6
2320 else
2321 echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2325 test -n "$CC" && break
2326 done
2328 if test -z "$CC"; then
2329 ac_ct_CC=$CC
2330 for ac_prog in cl
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 if test -n "$ac_ct_CC"; then
2340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349 ac_cv_prog_ac_ct_CC="$ac_prog"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2353 done
2354 done
2358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2359 if test -n "$ac_ct_CC"; then
2360 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2361 echo "${ECHO_T}$ac_ct_CC" >&6
2362 else
2363 echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6
2367 test -n "$ac_ct_CC" && break
2368 done
2370 CC=$ac_ct_CC
2376 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2377 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: no acceptable C compiler found in \$PATH
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }; }
2384 # Provide some information about the compiler.
2385 echo "$as_me:$LINENO:" \
2386 "checking for C compiler version" >&5
2387 ac_compiler=`set X $ac_compile; echo $2`
2388 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2389 (eval $ac_compiler --version </dev/null >&5) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }
2393 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2394 (eval $ac_compiler -v </dev/null >&5) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }
2398 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2399 (eval $ac_compiler -V </dev/null >&5) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }
2404 cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h. */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2412 main ()
2416 return 0;
2418 _ACEOF
2419 ac_clean_files_save=$ac_clean_files
2420 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2421 # Try to create an executable without -o first, disregard a.out.
2422 # It will help us diagnose broken compilers, and finding out an intuition
2423 # of exeext.
2424 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2425 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2426 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2427 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2428 (eval $ac_link_default) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; then
2432 # Find the output, starting from the most likely. This scheme is
2433 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2434 # resort.
2436 # Be careful to initialize this variable, since it used to be cached.
2437 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2438 ac_cv_exeext=
2439 # b.out is created by i960 compilers.
2440 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2442 test -f "$ac_file" || continue
2443 case $ac_file in
2444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2446 conftest.$ac_ext )
2447 # This is the source file.
2449 [ab].out )
2450 # We found the default executable, but exeext='' is most
2451 # certainly right.
2452 break;;
2453 *.* )
2454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2455 # FIXME: I believe we export ac_cv_exeext for Libtool,
2456 # but it would be cool to find out if it's true. Does anybody
2457 # maintain Libtool? --akim.
2458 export ac_cv_exeext
2459 break;;
2461 break;;
2462 esac
2463 done
2464 else
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2468 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2469 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: C compiler cannot create executables
2473 See \`config.log' for more details." >&2;}
2474 { (exit 77); exit 77; }; }; }
2477 ac_exeext=$ac_cv_exeext
2478 echo "$as_me:$LINENO: result: $ac_file" >&5
2479 echo "${ECHO_T}$ac_file" >&6
2481 # Check the compiler produces executables we can run. If not, either
2482 # the compiler is broken, or we cross compile.
2483 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2484 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2485 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2486 # If not cross compiling, check that we can run a simple program.
2487 if test "$cross_compiling" != yes; then
2488 if { ac_try='./$ac_file'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 (eval $ac_try) 2>&5
2491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 cross_compiling=no
2495 else
2496 if test "$cross_compiling" = maybe; then
2497 cross_compiling=yes
2498 else
2499 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2500 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&5
2504 echo "$as_me: error: cannot run C compiled programs.
2505 If you meant to cross compile, use \`--host'.
2506 See \`config.log' for more details." >&2;}
2507 { (exit 1); exit 1; }; }; }
2511 echo "$as_me:$LINENO: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6
2514 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2515 ac_clean_files=$ac_clean_files_save
2516 # Check the compiler produces executables we can run. If not, either
2517 # the compiler is broken, or we cross compile.
2518 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2519 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2520 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2521 echo "${ECHO_T}$cross_compiling" >&6
2523 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2524 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2526 (eval $ac_link) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; then
2530 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2531 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2532 # work properly (i.e., refer to `conftest.exe'), while it won't with
2533 # `rm'.
2534 for ac_file in conftest.exe conftest conftest.*; do
2535 test -f "$ac_file" || continue
2536 case $ac_file in
2537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2539 export ac_cv_exeext
2540 break;;
2541 * ) break;;
2542 esac
2543 done
2544 else
2545 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2546 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2548 See \`config.log' for more details." >&5
2549 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2550 See \`config.log' for more details." >&2;}
2551 { (exit 1); exit 1; }; }; }
2554 rm -f conftest$ac_cv_exeext
2555 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2556 echo "${ECHO_T}$ac_cv_exeext" >&6
2558 rm -f conftest.$ac_ext
2559 EXEEXT=$ac_cv_exeext
2560 ac_exeext=$EXEEXT
2561 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2562 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2563 if test "${ac_cv_objext+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2574 main ()
2578 return 0;
2580 _ACEOF
2581 rm -f conftest.o conftest.obj
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; then
2587 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2588 case $ac_file in
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2591 break;;
2592 esac
2593 done
2594 else
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2598 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2599 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2600 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2601 See \`config.log' for more details." >&5
2602 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2603 See \`config.log' for more details." >&2;}
2604 { (exit 1); exit 1; }; }; }
2607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2609 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2610 echo "${ECHO_T}$ac_cv_objext" >&6
2611 OBJEXT=$ac_cv_objext
2612 ac_objext=$OBJEXT
2613 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2614 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2615 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 cat >conftest.$ac_ext <<_ACEOF
2619 /* confdefs.h. */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2626 main ()
2628 #ifndef __GNUC__
2629 choke me
2630 #endif
2633 return 0;
2635 _ACEOF
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2639 ac_status=$?
2640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_c_werror_flag"
2646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 (eval $ac_try) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 ac_compiler_gnu=yes
2659 else
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2663 ac_compiler_gnu=no
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2669 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2670 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2671 GCC=`test $ac_compiler_gnu = yes && echo yes`
2672 ac_test_CFLAGS=${CFLAGS+set}
2673 ac_save_CFLAGS=$CFLAGS
2674 CFLAGS="-g"
2675 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2676 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2677 if test "${ac_cv_prog_cc_g+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2688 main ()
2692 return 0;
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2698 ac_status=$?
2699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 ac_cv_prog_cc_g=yes
2718 else
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 ac_cv_prog_cc_g=no
2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2727 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2728 if test "$ac_test_CFLAGS" = set; then
2729 CFLAGS=$ac_save_CFLAGS
2730 elif test $ac_cv_prog_cc_g = yes; then
2731 if test "$GCC" = yes; then
2732 CFLAGS="-g -O2"
2733 else
2734 CFLAGS="-g"
2736 else
2737 if test "$GCC" = yes; then
2738 CFLAGS="-O2"
2739 else
2740 CFLAGS=
2743 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2744 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2745 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 ac_cv_prog_cc_stdc=no
2749 ac_save_CC=$CC
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2756 #include <stdarg.h>
2757 #include <stdio.h>
2758 #include <sys/types.h>
2759 #include <sys/stat.h>
2760 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2761 struct buf { int x; };
2762 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2763 static char *e (p, i)
2764 char **p;
2765 int i;
2767 return p[i];
2769 static char *f (char * (*g) (char **, int), char **p, ...)
2771 char *s;
2772 va_list v;
2773 va_start (v,p);
2774 s = g (p, va_arg (v,int));
2775 va_end (v);
2776 return s;
2779 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2780 function prototypes and stuff, but not '\xHH' hex character constants.
2781 These don't provoke an error unfortunately, instead are silently treated
2782 as 'x'. The following induces an error, until -std1 is added to get
2783 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2784 array size at least. It's necessary to write '\x00'==0 to get something
2785 that's true only with -std1. */
2786 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2788 int test (int i, double x);
2789 struct s1 {int (*f) (int a);};
2790 struct s2 {int (*f) (double a);};
2791 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2792 int argc;
2793 char **argv;
2795 main ()
2797 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2799 return 0;
2801 _ACEOF
2802 # Don't try gcc -ansi; that turns off useful extensions and
2803 # breaks some systems' header files.
2804 # AIX -qlanglvl=ansi
2805 # Ultrix and OSF/1 -std1
2806 # HP-UX 10.20 and later -Ae
2807 # HP-UX older versions -Aa -D_HPUX_SOURCE
2808 # SVR4 -Xc -D__EXTENSIONS__
2809 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2811 CC="$ac_save_CC $ac_arg"
2812 rm -f conftest.$ac_objext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2814 (eval $ac_compile) 2>conftest.er1
2815 ac_status=$?
2816 grep -v '^ *+' conftest.er1 >conftest.err
2817 rm -f conftest.er1
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -z "$ac_c_werror_flag"
2822 || test ! -s conftest.err'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 (eval $ac_try) 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; } &&
2828 { ac_try='test -s conftest.$ac_objext'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 (eval $ac_try) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2834 ac_cv_prog_cc_stdc=$ac_arg
2835 break
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2841 rm -f conftest.err conftest.$ac_objext
2842 done
2843 rm -f conftest.$ac_ext conftest.$ac_objext
2844 CC=$ac_save_CC
2848 case "x$ac_cv_prog_cc_stdc" in
2849 x|xno)
2850 echo "$as_me:$LINENO: result: none needed" >&5
2851 echo "${ECHO_T}none needed" >&6 ;;
2853 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2854 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2855 CC="$CC $ac_cv_prog_cc_stdc" ;;
2856 esac
2858 # Some people use a C++ compiler to compile C. Since we use `exit',
2859 # in C++ we need to declare it. In case someone uses the same compiler
2860 # for both compiling C and C++ we need to have the C++ compiler decide
2861 # the declaration of exit, since it's the most demanding environment.
2862 cat >conftest.$ac_ext <<_ACEOF
2863 #ifndef __cplusplus
2864 choke me
2865 #endif
2866 _ACEOF
2867 rm -f conftest.$ac_objext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag"
2877 || test ! -s conftest.err'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 for ac_declaration in \
2890 '' \
2891 'extern "C" void std::exit (int) throw (); using std::exit;' \
2892 'extern "C" void std::exit (int); using std::exit;' \
2893 'extern "C" void exit (int) throw ();' \
2894 'extern "C" void exit (int);' \
2895 'void exit (int);'
2897 cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h. */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2903 $ac_declaration
2904 #include <stdlib.h>
2906 main ()
2908 exit (42);
2910 return 0;
2912 _ACEOF
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>conftest.er1
2916 ac_status=$?
2917 grep -v '^ *+' conftest.er1 >conftest.err
2918 rm -f conftest.er1
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -z "$ac_c_werror_flag"
2923 || test ! -s conftest.err'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 (eval $ac_try) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; } &&
2929 { ac_try='test -s conftest.$ac_objext'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 (eval $ac_try) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; }; then
2936 else
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 continue
2942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2943 cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h. */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 $ac_declaration
2951 main ()
2953 exit (42);
2955 return 0;
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960 (eval $ac_compile) 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
2967 { ac_try='test -z "$ac_c_werror_flag"
2968 || test ! -s conftest.err'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 (eval $ac_try) 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 break
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2987 done
2988 rm -f conftest*
2989 if test -n "$ac_declaration"; then
2990 echo '#ifdef __cplusplus' >>confdefs.h
2991 echo $ac_declaration >>confdefs.h
2992 echo '#endif' >>confdefs.h
2995 else
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3007 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3008 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3009 if test "${lt_cv_path_SED+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012 # Loop through the user's path and test for sed and gsed.
3013 # Then use that list of sed's as ones to test for truncation.
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for lt_ac_prog in sed gsed; do
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3022 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3024 done
3025 done
3026 done
3027 IFS=$as_save_IFS
3028 lt_ac_max=0
3029 lt_ac_count=0
3030 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3031 # along with /bin/sed that truncates output.
3032 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3033 test ! -f $lt_ac_sed && continue
3034 cat /dev/null > conftest.in
3035 lt_ac_count=0
3036 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3037 # Check for GNU sed and select it if it is found.
3038 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3039 lt_cv_path_SED=$lt_ac_sed
3040 break
3042 while true; do
3043 cat conftest.in conftest.in >conftest.tmp
3044 mv conftest.tmp conftest.in
3045 cp conftest.in conftest.nl
3046 echo >>conftest.nl
3047 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3048 cmp -s conftest.out conftest.nl || break
3049 # 10000 chars as input seems more than enough
3050 test $lt_ac_count -gt 10 && break
3051 lt_ac_count=`expr $lt_ac_count + 1`
3052 if test $lt_ac_count -gt $lt_ac_max; then
3053 lt_ac_max=$lt_ac_count
3054 lt_cv_path_SED=$lt_ac_sed
3056 done
3057 done
3061 SED=$lt_cv_path_SED
3063 echo "$as_me:$LINENO: result: $SED" >&5
3064 echo "${ECHO_T}$SED" >&6
3067 # Figure out what compiler warnings we can enable.
3068 # See config/warnings.m4 for details.
3071 WARN_CFLAGS=
3072 save_CFLAGS="$CFLAGS"
3073 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
3074 -Wmissing-prototypes -Wold-style-definition \
3075 -Wmissing-format-attribute -Wno-overlength-strings; do
3076 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
3078 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
3079 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
3080 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 CFLAGS="$option"
3084 cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h. */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3092 main ()
3096 return 0;
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag"
3109 || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 (eval $ac_try) 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 (eval $ac_try) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 eval "$as_acx_Woption=yes"
3122 else
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 eval "$as_acx_Woption=no"
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3131 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3132 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3133 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3134 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
3137 done
3138 CFLAGS="$save_CFLAGS"
3140 WARN_PEDANTIC=
3141 if test "$GCC" = yes; then
3142 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
3143 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
3144 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 save_CFLAGS="$CFLAGS"
3148 CFLAGS="-pedantic -Wno-long-long"
3149 cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h. */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3157 main ()
3161 return 0;
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166 (eval $ac_compile) 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -z "$ac_c_werror_flag"
3174 || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 (eval $ac_try) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 (eval $ac_try) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 acx_cv_prog_cc_pedantic__Wno_long_long=yes
3187 else
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 acx_cv_prog_cc_pedantic__Wno_long_long=no
3193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3194 CFLAGS="$save_CFLAGS"
3196 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
3197 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
3198 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
3199 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
3207 # Only enable with --enable-werror-always until existing warnings are
3208 # corrected.
3209 WERROR=
3210 # Check whether --enable-werror-always or --disable-werror-always was given.
3211 if test "${enable_werror_always+set}" = set; then
3212 enableval="$enable_werror_always"
3214 else
3215 enable_werror_always=no
3217 if test $enable_werror_always = yes; then
3218 WERROR="$WERROR${WERROR:+ }-Werror"
3224 # Determine the noncanonical target name, for directory use.
3225 case ${build_alias} in
3226 "") build_noncanonical=${build} ;;
3227 *) build_noncanonical=${build_alias} ;;
3228 esac
3230 case ${host_alias} in
3231 "") host_noncanonical=${build_noncanonical} ;;
3232 *) host_noncanonical=${host_alias} ;;
3233 esac
3235 case ${target_alias} in
3236 "") target_noncanonical=${host_noncanonical} ;;
3237 *) target_noncanonical=${target_alias} ;;
3238 esac
3243 # Specify the local prefix
3244 local_prefix=
3246 # Check whether --with-local-prefix or --without-local-prefix was given.
3247 if test "${with_local_prefix+set}" = set; then
3248 withval="$with_local_prefix"
3249 case "${withval}" in
3250 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
3251 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
3252 { (exit 1); exit 1; }; } ;;
3253 no) ;;
3254 *) local_prefix=$with_local_prefix ;;
3255 esac
3258 # Default local prefix if it is empty
3259 if test x$local_prefix = x; then
3260 local_prefix=/usr/local
3263 # Choose one or two-process fix methodology. Systems that cannot handle
3264 # bi-directional pipes must use the two process method.
3266 # Check whether --enable-twoprocess or --disable-twoprocess was given.
3267 if test "${enable_twoprocess+set}" = set; then
3268 enableval="$enable_twoprocess"
3269 if test "x$enable_twoprocess" = xyes; then
3270 TARGET=twoprocess
3271 else
3272 TARGET=oneprocess
3274 else
3275 case $host in
3276 i?86-*-msdosdjgpp* | \
3277 i?86-*-mingw32* | \
3278 x86_64-*-mingw32* | \
3279 *-*-beos* )
3280 TARGET=twoprocess
3284 TARGET=oneprocess
3286 esac
3290 if test $TARGET = twoprocess; then
3292 cat >>confdefs.h <<\_ACEOF
3293 #define SEPARATE_FIX_PROC 1
3294 _ACEOF
3298 case $host in
3299 vax-dec-bsd* )
3301 cat >>confdefs.h <<\_ACEOF
3302 #define exit xexit
3303 _ACEOF
3306 cat >>confdefs.h <<\_ACEOF
3307 #define atexit xatexit
3308 _ACEOF
3311 esac
3314 cat >>confdefs.h <<_ACEOF
3315 #define EXE_EXT "$ac_exeext"
3316 _ACEOF
3319 # Checks for header files.
3320 ac_ext=c
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3326 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3327 # On Suns, sometimes $CPP names a directory.
3328 if test -n "$CPP" && test -d "$CPP"; then
3329 CPP=
3331 if test -z "$CPP"; then
3332 if test "${ac_cv_prog_CPP+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 # Double quotes because CPP needs to be expanded
3336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3338 ac_preproc_ok=false
3339 for ac_c_preproc_warn_flag in '' yes
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 #ifdef __STDC__
3354 # include <limits.h>
3355 #else
3356 # include <assert.h>
3357 #endif
3358 Syntax error
3359 _ACEOF
3360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_c_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371 else
3372 ac_cpp_err=
3374 else
3375 ac_cpp_err=yes
3377 if test -z "$ac_cpp_err"; then
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Broken: fails on valid input.
3384 continue
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether non-existent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3397 _ACEOF
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409 else
3410 ac_cpp_err=
3412 else
3413 ac_cpp_err=yes
3415 if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input.
3417 continue
3418 else
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Passes both tests.
3423 ac_preproc_ok=:
3424 break
3426 rm -f conftest.err conftest.$ac_ext
3428 done
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.err conftest.$ac_ext
3431 if $ac_preproc_ok; then
3432 break
3435 done
3436 ac_cv_prog_CPP=$CPP
3439 CPP=$ac_cv_prog_CPP
3440 else
3441 ac_cv_prog_CPP=$CPP
3443 echo "$as_me:$LINENO: result: $CPP" >&5
3444 echo "${ECHO_T}$CPP" >&6
3445 ac_preproc_ok=false
3446 for ac_c_preproc_warn_flag in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #ifdef __STDC__
3461 # include <limits.h>
3462 #else
3463 # include <assert.h>
3464 #endif
3465 Syntax error
3466 _ACEOF
3467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } >/dev/null; then
3475 if test -s conftest.err; then
3476 ac_cpp_err=$ac_c_preproc_warn_flag
3477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3478 else
3479 ac_cpp_err=
3481 else
3482 ac_cpp_err=yes
3484 if test -z "$ac_cpp_err"; then
3486 else
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 # Broken: fails on valid input.
3491 continue
3493 rm -f conftest.err conftest.$ac_ext
3495 # OK, works on sane cases. Now check whether non-existent headers
3496 # can be detected and how.
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h. */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 #include <ac_nonexistent.h>
3504 _ACEOF
3505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3507 ac_status=$?
3508 grep -v '^ *+' conftest.er1 >conftest.err
3509 rm -f conftest.er1
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } >/dev/null; then
3513 if test -s conftest.err; then
3514 ac_cpp_err=$ac_c_preproc_warn_flag
3515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3516 else
3517 ac_cpp_err=
3519 else
3520 ac_cpp_err=yes
3522 if test -z "$ac_cpp_err"; then
3523 # Broken: success on invalid input.
3524 continue
3525 else
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 # Passes both tests.
3530 ac_preproc_ok=:
3531 break
3533 rm -f conftest.err conftest.$ac_ext
3535 done
3536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3537 rm -f conftest.err conftest.$ac_ext
3538 if $ac_preproc_ok; then
3540 else
3541 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3542 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3544 See \`config.log' for more details." >&5
3545 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3546 See \`config.log' for more details." >&2;}
3547 { (exit 1); exit 1; }; }; }
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557 echo "$as_me:$LINENO: checking for egrep" >&5
3558 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3559 if test "${ac_cv_prog_egrep+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3563 then ac_cv_prog_egrep='grep -E'
3564 else ac_cv_prog_egrep='egrep'
3567 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3568 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3569 EGREP=$ac_cv_prog_egrep
3572 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3573 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3574 if test "${ac_cv_header_stdc+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h. */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583 #include <stdlib.h>
3584 #include <stdarg.h>
3585 #include <string.h>
3586 #include <float.h>
3589 main ()
3593 return 0;
3595 _ACEOF
3596 rm -f conftest.$ac_objext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 ac_cv_header_stdc=yes
3619 else
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 ac_cv_header_stdc=no
3625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627 if test $ac_cv_header_stdc = yes; then
3628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h. */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3635 #include <string.h>
3637 _ACEOF
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 $EGREP "memchr" >/dev/null 2>&1; then
3641 else
3642 ac_cv_header_stdc=no
3644 rm -f conftest*
3648 if test $ac_cv_header_stdc = yes; then
3649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h. */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656 #include <stdlib.h>
3658 _ACEOF
3659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660 $EGREP "free" >/dev/null 2>&1; then
3662 else
3663 ac_cv_header_stdc=no
3665 rm -f conftest*
3669 if test $ac_cv_header_stdc = yes; then
3670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3671 if test "$cross_compiling" = yes; then
3673 else
3674 cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h. */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3680 #include <ctype.h>
3681 #if ((' ' & 0x0FF) == 0x020)
3682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3684 #else
3685 # define ISLOWER(c) \
3686 (('a' <= (c) && (c) <= 'i') \
3687 || ('j' <= (c) && (c) <= 'r') \
3688 || ('s' <= (c) && (c) <= 'z'))
3689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3690 #endif
3692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3694 main ()
3696 int i;
3697 for (i = 0; i < 256; i++)
3698 if (XOR (islower (i), ISLOWER (i))
3699 || toupper (i) != TOUPPER (i))
3700 exit(2);
3701 exit (0);
3703 _ACEOF
3704 rm -f conftest$ac_exeext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706 (eval $ac_link) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3716 else
3717 echo "$as_me: program exited with status $ac_status" >&5
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3721 ( exit $ac_status )
3722 ac_cv_header_stdc=no
3724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3730 if test $ac_cv_header_stdc = yes; then
3732 cat >>confdefs.h <<\_ACEOF
3733 #define STDC_HEADERS 1
3734 _ACEOF
3738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3749 inttypes.h stdint.h unistd.h
3751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3752 echo "$as_me:$LINENO: checking for $ac_header" >&5
3753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h. */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 $ac_includes_default
3765 #include <$ac_header>
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>conftest.er1
3770 ac_status=$?
3771 grep -v '^ *+' conftest.er1 >conftest.err
3772 rm -f conftest.er1
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 eval "$as_ac_Header=yes"
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 eval "$as_ac_Header=no"
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3801 cat >>confdefs.h <<_ACEOF
3802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3803 _ACEOF
3807 done
3817 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
3818 sys/stat.h
3820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3822 echo "$as_me:$LINENO: checking for $ac_header" >&5
3823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3829 else
3830 # Is the header compilable?
3831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 $ac_includes_default
3840 #include <$ac_header>
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3844 (eval $ac_compile) 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag"
3852 || test ! -s conftest.err'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 (eval $ac_try) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; } &&
3858 { ac_try='test -s conftest.$ac_objext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_header_compiler=yes
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 ac_header_compiler=no
3871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3873 echo "${ECHO_T}$ac_header_compiler" >&6
3875 # Is the header present?
3876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3884 #include <$ac_header>
3885 _ACEOF
3886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } >/dev/null; then
3894 if test -s conftest.err; then
3895 ac_cpp_err=$ac_c_preproc_warn_flag
3896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3897 else
3898 ac_cpp_err=
3900 else
3901 ac_cpp_err=yes
3903 if test -z "$ac_cpp_err"; then
3904 ac_header_preproc=yes
3905 else
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3909 ac_header_preproc=no
3911 rm -f conftest.err conftest.$ac_ext
3912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3913 echo "${ECHO_T}$ac_header_preproc" >&6
3915 # So? What about this header?
3916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3917 yes:no: )
3918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3922 ac_header_preproc=yes
3924 no:yes:* )
3925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3938 cat <<\_ASBOX
3939 ## -------------------------------------- ##
3940 ## Report this to the fixincludes lists. ##
3941 ## -------------------------------------- ##
3942 _ASBOX
3944 sed "s/^/$as_me: WARNING: /" >&2
3946 esac
3947 echo "$as_me:$LINENO: checking for $ac_header" >&5
3948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952 eval "$as_ac_Header=\$ac_header_preproc"
3954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3959 cat >>confdefs.h <<_ACEOF
3960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3961 _ACEOF
3965 done
3984 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
3986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3987 echo "$as_me:$LINENO: checking for $ac_func" >&5
3988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3989 if eval "test \"\${$as_ac_var+set}\" = set"; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992 cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h. */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4000 #define $ac_func innocuous_$ac_func
4002 /* System header to define __stub macros and hopefully few prototypes,
4003 which can conflict with char $ac_func (); below.
4004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005 <limits.h> exists even on freestanding compilers. */
4007 #ifdef __STDC__
4008 # include <limits.h>
4009 #else
4010 # include <assert.h>
4011 #endif
4013 #undef $ac_func
4015 /* Override any gcc2 internal prototype to avoid an error. */
4016 #ifdef __cplusplus
4017 extern "C"
4019 #endif
4020 /* We use char because int might match the return type of a gcc2
4021 builtin and then its argument prototype would still apply. */
4022 char $ac_func ();
4023 /* The GNU C library defines this for functions which it implements
4024 to always fail with ENOSYS. Some functions are actually named
4025 something starting with __ and the normal name is an alias. */
4026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4027 choke me
4028 #else
4029 char (*f) () = $ac_func;
4030 #endif
4031 #ifdef __cplusplus
4033 #endif
4036 main ()
4038 return f != $ac_func;
4040 return 0;
4042 _ACEOF
4043 rm -f conftest.$ac_objext conftest$ac_exeext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4045 (eval $ac_link) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_c_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest$ac_exeext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 eval "$as_ac_var=yes"
4066 else
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 eval "$as_ac_var=no"
4072 rm -f conftest.err conftest.$ac_objext \
4073 conftest$ac_exeext conftest.$ac_ext
4075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4077 if test `eval echo '${'$as_ac_var'}'` = yes; then
4078 cat >>confdefs.h <<_ACEOF
4079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4080 _ACEOF
4083 done
4085 echo "$as_me:$LINENO: checking whether abort is declared" >&5
4086 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
4087 if test "${ac_cv_have_decl_abort+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h. */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4096 $ac_includes_default
4098 main ()
4100 #ifndef abort
4101 char *p = (char *) abort;
4102 #endif
4105 return 0;
4107 _ACEOF
4108 rm -f conftest.$ac_objext
4109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4110 (eval $ac_compile) 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_c_werror_flag"
4118 || test ! -s conftest.err'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; } &&
4124 { ac_try='test -s conftest.$ac_objext'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 (eval $ac_try) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4130 ac_cv_have_decl_abort=yes
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 ac_cv_have_decl_abort=no
4137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
4140 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
4141 if test $ac_cv_have_decl_abort = yes; then
4143 cat >>confdefs.h <<_ACEOF
4144 #define HAVE_DECL_ABORT 1
4145 _ACEOF
4148 else
4149 cat >>confdefs.h <<_ACEOF
4150 #define HAVE_DECL_ABORT 0
4151 _ACEOF
4155 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
4156 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
4157 if test "${ac_cv_have_decl_asprintf+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h. */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 $ac_includes_default
4168 main ()
4170 #ifndef asprintf
4171 char *p = (char *) asprintf;
4172 #endif
4175 return 0;
4177 _ACEOF
4178 rm -f conftest.$ac_objext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag"
4188 || test ! -s conftest.err'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; } &&
4194 { ac_try='test -s conftest.$ac_objext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 (eval $ac_try) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_have_decl_asprintf=yes
4201 else
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_have_decl_asprintf=no
4207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
4210 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
4211 if test $ac_cv_have_decl_asprintf = yes; then
4213 cat >>confdefs.h <<_ACEOF
4214 #define HAVE_DECL_ASPRINTF 1
4215 _ACEOF
4218 else
4219 cat >>confdefs.h <<_ACEOF
4220 #define HAVE_DECL_ASPRINTF 0
4221 _ACEOF
4225 echo "$as_me:$LINENO: checking whether basename is declared" >&5
4226 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
4227 if test "${ac_cv_have_decl_basename+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 $ac_includes_default
4238 main ()
4240 #ifndef basename
4241 char *p = (char *) basename;
4242 #endif
4245 return 0;
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag"
4258 || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 ac_cv_have_decl_basename=yes
4271 else
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 ac_cv_have_decl_basename=no
4277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4279 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
4280 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
4281 if test $ac_cv_have_decl_basename = yes; then
4283 cat >>confdefs.h <<_ACEOF
4284 #define HAVE_DECL_BASENAME 1
4285 _ACEOF
4288 else
4289 cat >>confdefs.h <<_ACEOF
4290 #define HAVE_DECL_BASENAME 0
4291 _ACEOF
4295 echo "$as_me:$LINENO: checking whether errno is declared" >&5
4296 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
4297 if test "${ac_cv_have_decl_errno+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h. */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 $ac_includes_default
4308 main ()
4310 #ifndef errno
4311 char *p = (char *) errno;
4312 #endif
4315 return 0;
4317 _ACEOF
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>conftest.er1
4321 ac_status=$?
4322 grep -v '^ *+' conftest.er1 >conftest.err
4323 rm -f conftest.er1
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag"
4328 || test ! -s conftest.err'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 (eval $ac_try) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_have_decl_errno=yes
4341 else
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_cv_have_decl_errno=no
4347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
4350 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
4351 if test $ac_cv_have_decl_errno = yes; then
4353 cat >>confdefs.h <<_ACEOF
4354 #define HAVE_DECL_ERRNO 1
4355 _ACEOF
4358 else
4359 cat >>confdefs.h <<_ACEOF
4360 #define HAVE_DECL_ERRNO 0
4361 _ACEOF
4365 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
4366 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
4367 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h. */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 $ac_includes_default
4378 main ()
4380 #ifndef vasprintf
4381 char *p = (char *) vasprintf;
4382 #endif
4385 return 0;
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag"
4398 || test ! -s conftest.err'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 (eval $ac_try) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; } &&
4404 { ac_try='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 ac_cv_have_decl_vasprintf=yes
4411 else
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4415 ac_cv_have_decl_vasprintf=no
4417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4419 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
4420 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
4421 if test $ac_cv_have_decl_vasprintf = yes; then
4423 cat >>confdefs.h <<_ACEOF
4424 #define HAVE_DECL_VASPRINTF 1
4425 _ACEOF
4428 else
4429 cat >>confdefs.h <<_ACEOF
4430 #define HAVE_DECL_VASPRINTF 0
4431 _ACEOF
4435 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
4436 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
4437 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h. */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 $ac_includes_default
4448 main ()
4450 #ifndef clearerr_unlocked
4451 char *p = (char *) clearerr_unlocked;
4452 #endif
4455 return 0;
4457 _ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4460 (eval $ac_compile) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -z "$ac_c_werror_flag"
4468 || test ! -s conftest.err'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; } &&
4474 { ac_try='test -s conftest.$ac_objext'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 (eval $ac_try) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4480 ac_cv_have_decl_clearerr_unlocked=yes
4481 else
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 ac_cv_have_decl_clearerr_unlocked=no
4487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4489 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
4490 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
4491 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
4493 cat >>confdefs.h <<_ACEOF
4494 #define HAVE_DECL_CLEARERR_UNLOCKED 1
4495 _ACEOF
4498 else
4499 cat >>confdefs.h <<_ACEOF
4500 #define HAVE_DECL_CLEARERR_UNLOCKED 0
4501 _ACEOF
4505 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
4506 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
4507 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 $ac_includes_default
4518 main ()
4520 #ifndef feof_unlocked
4521 char *p = (char *) feof_unlocked;
4522 #endif
4525 return 0;
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -z "$ac_c_werror_flag"
4538 || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_cv_have_decl_feof_unlocked=yes
4551 else
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 ac_cv_have_decl_feof_unlocked=no
4557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4559 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
4560 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
4561 if test $ac_cv_have_decl_feof_unlocked = yes; then
4563 cat >>confdefs.h <<_ACEOF
4564 #define HAVE_DECL_FEOF_UNLOCKED 1
4565 _ACEOF
4568 else
4569 cat >>confdefs.h <<_ACEOF
4570 #define HAVE_DECL_FEOF_UNLOCKED 0
4571 _ACEOF
4575 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
4576 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
4577 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580 cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h. */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 $ac_includes_default
4588 main ()
4590 #ifndef ferror_unlocked
4591 char *p = (char *) ferror_unlocked;
4592 #endif
4595 return 0;
4597 _ACEOF
4598 rm -f conftest.$ac_objext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600 (eval $ac_compile) 2>conftest.er1
4601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -z "$ac_c_werror_flag"
4608 || test ! -s conftest.err'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest.$ac_objext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_have_decl_ferror_unlocked=yes
4621 else
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4625 ac_cv_have_decl_ferror_unlocked=no
4627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
4630 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
4631 if test $ac_cv_have_decl_ferror_unlocked = yes; then
4633 cat >>confdefs.h <<_ACEOF
4634 #define HAVE_DECL_FERROR_UNLOCKED 1
4635 _ACEOF
4638 else
4639 cat >>confdefs.h <<_ACEOF
4640 #define HAVE_DECL_FERROR_UNLOCKED 0
4641 _ACEOF
4645 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
4646 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
4647 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h. */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4658 main ()
4660 #ifndef fflush_unlocked
4661 char *p = (char *) fflush_unlocked;
4662 #endif
4665 return 0;
4667 _ACEOF
4668 rm -f conftest.$ac_objext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670 (eval $ac_compile) 2>conftest.er1
4671 ac_status=$?
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -z "$ac_c_werror_flag"
4678 || test ! -s conftest.err'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 (eval $ac_try) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 ac_cv_have_decl_fflush_unlocked=yes
4691 else
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4695 ac_cv_have_decl_fflush_unlocked=no
4697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
4700 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
4701 if test $ac_cv_have_decl_fflush_unlocked = yes; then
4703 cat >>confdefs.h <<_ACEOF
4704 #define HAVE_DECL_FFLUSH_UNLOCKED 1
4705 _ACEOF
4708 else
4709 cat >>confdefs.h <<_ACEOF
4710 #define HAVE_DECL_FFLUSH_UNLOCKED 0
4711 _ACEOF
4715 echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
4716 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
4717 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 $ac_includes_default
4728 main ()
4730 #ifndef fgetc_unlocked
4731 char *p = (char *) fgetc_unlocked;
4732 #endif
4735 return 0;
4737 _ACEOF
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -z "$ac_c_werror_flag"
4748 || test ! -s conftest.err'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 (eval $ac_try) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_cv_have_decl_fgetc_unlocked=yes
4761 else
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 ac_cv_have_decl_fgetc_unlocked=no
4767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4769 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
4770 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
4771 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
4773 cat >>confdefs.h <<_ACEOF
4774 #define HAVE_DECL_FGETC_UNLOCKED 1
4775 _ACEOF
4778 else
4779 cat >>confdefs.h <<_ACEOF
4780 #define HAVE_DECL_FGETC_UNLOCKED 0
4781 _ACEOF
4785 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
4786 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
4787 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 $ac_includes_default
4798 main ()
4800 #ifndef fgets_unlocked
4801 char *p = (char *) fgets_unlocked;
4802 #endif
4805 return 0;
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 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); } &&
4817 { ac_try='test -z "$ac_c_werror_flag"
4818 || test ! -s conftest.err'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 ac_cv_have_decl_fgets_unlocked=yes
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 ac_cv_have_decl_fgets_unlocked=no
4837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
4840 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
4841 if test $ac_cv_have_decl_fgets_unlocked = yes; then
4843 cat >>confdefs.h <<_ACEOF
4844 #define HAVE_DECL_FGETS_UNLOCKED 1
4845 _ACEOF
4848 else
4849 cat >>confdefs.h <<_ACEOF
4850 #define HAVE_DECL_FGETS_UNLOCKED 0
4851 _ACEOF
4855 echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
4856 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
4857 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 $ac_includes_default
4868 main ()
4870 #ifndef fileno_unlocked
4871 char *p = (char *) fileno_unlocked;
4872 #endif
4875 return 0;
4877 _ACEOF
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_have_decl_fileno_unlocked=yes
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905 ac_cv_have_decl_fileno_unlocked=no
4907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4909 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
4910 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
4911 if test $ac_cv_have_decl_fileno_unlocked = yes; then
4913 cat >>confdefs.h <<_ACEOF
4914 #define HAVE_DECL_FILENO_UNLOCKED 1
4915 _ACEOF
4918 else
4919 cat >>confdefs.h <<_ACEOF
4920 #define HAVE_DECL_FILENO_UNLOCKED 0
4921 _ACEOF
4925 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
4926 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
4927 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 $ac_includes_default
4938 main ()
4940 #ifndef fprintf_unlocked
4941 char *p = (char *) fprintf_unlocked;
4942 #endif
4945 return 0;
4947 _ACEOF
4948 rm -f conftest.$ac_objext
4949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4950 (eval $ac_compile) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -z "$ac_c_werror_flag"
4958 || test ! -s conftest.err'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; } &&
4964 { ac_try='test -s conftest.$ac_objext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_cv_have_decl_fprintf_unlocked=yes
4971 else
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 ac_cv_have_decl_fprintf_unlocked=no
4977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4979 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
4980 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
4981 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
4983 cat >>confdefs.h <<_ACEOF
4984 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4985 _ACEOF
4988 else
4989 cat >>confdefs.h <<_ACEOF
4990 #define HAVE_DECL_FPRINTF_UNLOCKED 0
4991 _ACEOF
4995 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
4996 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
4997 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 $ac_includes_default
5008 main ()
5010 #ifndef fputc_unlocked
5011 char *p = (char *) fputc_unlocked;
5012 #endif
5015 return 0;
5017 _ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020 (eval $ac_compile) 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } &&
5027 { ac_try='test -z "$ac_c_werror_flag"
5028 || test ! -s conftest.err'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 (eval $ac_try) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; } &&
5034 { ac_try='test -s conftest.$ac_objext'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 (eval $ac_try) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5040 ac_cv_have_decl_fputc_unlocked=yes
5041 else
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 ac_cv_have_decl_fputc_unlocked=no
5047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
5050 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
5051 if test $ac_cv_have_decl_fputc_unlocked = yes; then
5053 cat >>confdefs.h <<_ACEOF
5054 #define HAVE_DECL_FPUTC_UNLOCKED 1
5055 _ACEOF
5058 else
5059 cat >>confdefs.h <<_ACEOF
5060 #define HAVE_DECL_FPUTC_UNLOCKED 0
5061 _ACEOF
5065 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
5066 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
5067 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5078 main ()
5080 #ifndef fputs_unlocked
5081 char *p = (char *) fputs_unlocked;
5082 #endif
5085 return 0;
5087 _ACEOF
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_c_werror_flag"
5098 || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 ac_cv_have_decl_fputs_unlocked=yes
5111 else
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 ac_cv_have_decl_fputs_unlocked=no
5117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
5120 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
5121 if test $ac_cv_have_decl_fputs_unlocked = yes; then
5123 cat >>confdefs.h <<_ACEOF
5124 #define HAVE_DECL_FPUTS_UNLOCKED 1
5125 _ACEOF
5128 else
5129 cat >>confdefs.h <<_ACEOF
5130 #define HAVE_DECL_FPUTS_UNLOCKED 0
5131 _ACEOF
5135 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
5136 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
5137 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140 cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h. */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 $ac_includes_default
5148 main ()
5150 #ifndef fread_unlocked
5151 char *p = (char *) fread_unlocked;
5152 #endif
5155 return 0;
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5160 (eval $ac_compile) 2>conftest.er1
5161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -z "$ac_c_werror_flag"
5168 || test ! -s conftest.err'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 (eval $ac_try) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; } &&
5174 { ac_try='test -s conftest.$ac_objext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 (eval $ac_try) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 ac_cv_have_decl_fread_unlocked=yes
5181 else
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 ac_cv_have_decl_fread_unlocked=no
5187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
5190 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
5191 if test $ac_cv_have_decl_fread_unlocked = yes; then
5193 cat >>confdefs.h <<_ACEOF
5194 #define HAVE_DECL_FREAD_UNLOCKED 1
5195 _ACEOF
5198 else
5199 cat >>confdefs.h <<_ACEOF
5200 #define HAVE_DECL_FREAD_UNLOCKED 0
5201 _ACEOF
5205 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
5206 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
5207 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 $ac_includes_default
5218 main ()
5220 #ifndef fwrite_unlocked
5221 char *p = (char *) fwrite_unlocked;
5222 #endif
5225 return 0;
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -z "$ac_c_werror_flag"
5238 || test ! -s conftest.err'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 (eval $ac_try) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; } &&
5244 { ac_try='test -s conftest.$ac_objext'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_cv_have_decl_fwrite_unlocked=yes
5251 else
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5255 ac_cv_have_decl_fwrite_unlocked=no
5257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5259 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
5260 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
5261 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
5263 cat >>confdefs.h <<_ACEOF
5264 #define HAVE_DECL_FWRITE_UNLOCKED 1
5265 _ACEOF
5268 else
5269 cat >>confdefs.h <<_ACEOF
5270 #define HAVE_DECL_FWRITE_UNLOCKED 0
5271 _ACEOF
5275 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
5276 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
5277 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h. */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5288 main ()
5290 #ifndef getchar_unlocked
5291 char *p = (char *) getchar_unlocked;
5292 #endif
5295 return 0;
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_have_decl_getchar_unlocked=yes
5321 else
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 ac_cv_have_decl_getchar_unlocked=no
5327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
5330 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
5331 if test $ac_cv_have_decl_getchar_unlocked = yes; then
5333 cat >>confdefs.h <<_ACEOF
5334 #define HAVE_DECL_GETCHAR_UNLOCKED 1
5335 _ACEOF
5338 else
5339 cat >>confdefs.h <<_ACEOF
5340 #define HAVE_DECL_GETCHAR_UNLOCKED 0
5341 _ACEOF
5345 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
5346 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
5347 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 $ac_includes_default
5358 main ()
5360 #ifndef getc_unlocked
5361 char *p = (char *) getc_unlocked;
5362 #endif
5365 return 0;
5367 _ACEOF
5368 rm -f conftest.$ac_objext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370 (eval $ac_compile) 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_c_werror_flag"
5378 || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_cv_have_decl_getc_unlocked=yes
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_cv_have_decl_getc_unlocked=no
5397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
5400 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
5401 if test $ac_cv_have_decl_getc_unlocked = yes; then
5403 cat >>confdefs.h <<_ACEOF
5404 #define HAVE_DECL_GETC_UNLOCKED 1
5405 _ACEOF
5408 else
5409 cat >>confdefs.h <<_ACEOF
5410 #define HAVE_DECL_GETC_UNLOCKED 0
5411 _ACEOF
5415 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
5416 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
5417 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5428 main ()
5430 #ifndef putchar_unlocked
5431 char *p = (char *) putchar_unlocked;
5432 #endif
5435 return 0;
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_cv_have_decl_putchar_unlocked=yes
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_cv_have_decl_putchar_unlocked=no
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
5470 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
5471 if test $ac_cv_have_decl_putchar_unlocked = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
5475 _ACEOF
5478 else
5479 cat >>confdefs.h <<_ACEOF
5480 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
5481 _ACEOF
5485 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
5486 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
5487 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5498 main ()
5500 #ifndef putc_unlocked
5501 char *p = (char *) putc_unlocked;
5502 #endif
5505 return 0;
5507 _ACEOF
5508 rm -f conftest.$ac_objext
5509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510 (eval $ac_compile) 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } &&
5517 { ac_try='test -z "$ac_c_werror_flag"
5518 || test ! -s conftest.err'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 (eval $ac_try) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; } &&
5524 { ac_try='test -s conftest.$ac_objext'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 (eval $ac_try) 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5530 ac_cv_have_decl_putc_unlocked=yes
5531 else
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 ac_cv_have_decl_putc_unlocked=no
5537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5539 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
5540 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
5541 if test $ac_cv_have_decl_putc_unlocked = yes; then
5543 cat >>confdefs.h <<_ACEOF
5544 #define HAVE_DECL_PUTC_UNLOCKED 1
5545 _ACEOF
5548 else
5549 cat >>confdefs.h <<_ACEOF
5550 #define HAVE_DECL_PUTC_UNLOCKED 0
5551 _ACEOF
5558 # Checks for typedefs, structures, and compiler characteristics.
5559 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5560 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5561 if test "${ac_cv_c_const+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564 cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h. */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5572 main ()
5574 /* FIXME: Include the comments suggested by Paul. */
5575 #ifndef __cplusplus
5576 /* Ultrix mips cc rejects this. */
5577 typedef int charset[2];
5578 const charset x;
5579 /* SunOS 4.1.1 cc rejects this. */
5580 char const *const *ccp;
5581 char **p;
5582 /* NEC SVR4.0.2 mips cc rejects this. */
5583 struct point {int x, y;};
5584 static struct point const zero = {0,0};
5585 /* AIX XL C 1.02.0.0 rejects this.
5586 It does not let you subtract one const X* pointer from another in
5587 an arm of an if-expression whose if-part is not a constant
5588 expression */
5589 const char *g = "string";
5590 ccp = &g + (g ? g-g : 0);
5591 /* HPUX 7.0 cc rejects these. */
5592 ++ccp;
5593 p = (char**) ccp;
5594 ccp = (char const *const *) p;
5595 { /* SCO 3.2v4 cc rejects this. */
5596 char *t;
5597 char const *s = 0 ? (char *) 0 : (char const *) 0;
5599 *t++ = 0;
5601 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5602 int x[] = {25, 17};
5603 const int *foo = &x[0];
5604 ++foo;
5606 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5607 typedef const int *iptr;
5608 iptr p = 0;
5609 ++p;
5611 { /* AIX XL C 1.02.0.0 rejects this saying
5612 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5613 struct s { int j; const int *ap[3]; };
5614 struct s *b; b->j = 5;
5616 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5617 const int foo = 10;
5619 #endif
5622 return 0;
5624 _ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -z "$ac_c_werror_flag"
5635 || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 ac_cv_c_const=yes
5648 else
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5652 ac_cv_c_const=no
5654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5656 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5657 echo "${ECHO_T}$ac_cv_c_const" >&6
5658 if test $ac_cv_c_const = no; then
5660 cat >>confdefs.h <<\_ACEOF
5661 #define const
5662 _ACEOF
5667 # Checks for library functions.
5669 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5670 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5671 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5672 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5676 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5677 else
5678 # Is the header compilable?
5679 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
5680 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
5681 cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h. */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 $ac_includes_default
5688 #include <sys/mman.h>
5689 _ACEOF
5690 rm -f conftest.$ac_objext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692 (eval $ac_compile) 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -z "$ac_c_werror_flag"
5700 || test ! -s conftest.err'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; } &&
5706 { ac_try='test -s conftest.$ac_objext'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 (eval $ac_try) 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
5712 ac_header_compiler=yes
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5717 ac_header_compiler=no
5719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5721 echo "${ECHO_T}$ac_header_compiler" >&6
5723 # Is the header present?
5724 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
5725 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h. */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <sys/mman.h>
5733 _ACEOF
5734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } >/dev/null; then
5742 if test -s conftest.err; then
5743 ac_cpp_err=$ac_c_preproc_warn_flag
5744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5745 else
5746 ac_cpp_err=
5748 else
5749 ac_cpp_err=yes
5751 if test -z "$ac_cpp_err"; then
5752 ac_header_preproc=yes
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 ac_header_preproc=no
5759 rm -f conftest.err conftest.$ac_ext
5760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5761 echo "${ECHO_T}$ac_header_preproc" >&6
5763 # So? What about this header?
5764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5765 yes:no: )
5766 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
5767 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
5769 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
5770 ac_header_preproc=yes
5772 no:yes:* )
5773 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5774 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5775 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
5776 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5778 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
5780 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
5781 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5782 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5783 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5784 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5786 cat <<\_ASBOX
5787 ## -------------------------------------- ##
5788 ## Report this to the fixincludes lists. ##
5789 ## -------------------------------------- ##
5790 _ASBOX
5792 sed "s/^/$as_me: WARNING: /" >&2
5794 esac
5795 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5796 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5797 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800 ac_cv_header_sys_mman_h=$ac_header_preproc
5802 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5803 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5806 if test $ac_cv_header_sys_mman_h = yes; then
5807 gcc_header_sys_mman_h=yes
5808 else
5809 gcc_header_sys_mman_h=no
5813 echo "$as_me:$LINENO: checking for mmap" >&5
5814 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5815 if test "${ac_cv_func_mmap+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5826 #define mmap innocuous_mmap
5828 /* System header to define __stub macros and hopefully few prototypes,
5829 which can conflict with char mmap (); below.
5830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5831 <limits.h> exists even on freestanding compilers. */
5833 #ifdef __STDC__
5834 # include <limits.h>
5835 #else
5836 # include <assert.h>
5837 #endif
5839 #undef mmap
5841 /* Override any gcc2 internal prototype to avoid an error. */
5842 #ifdef __cplusplus
5843 extern "C"
5845 #endif
5846 /* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5848 char mmap ();
5849 /* The GNU C library defines this for functions which it implements
5850 to always fail with ENOSYS. Some functions are actually named
5851 something starting with __ and the normal name is an alias. */
5852 #if defined (__stub_mmap) || defined (__stub___mmap)
5853 choke me
5854 #else
5855 char (*f) () = mmap;
5856 #endif
5857 #ifdef __cplusplus
5859 #endif
5862 main ()
5864 return f != mmap;
5866 return 0;
5868 _ACEOF
5869 rm -f conftest.$ac_objext conftest$ac_exeext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5871 (eval $ac_link) 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_c_werror_flag"
5879 || test ! -s conftest.err'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; } &&
5885 { ac_try='test -s conftest$ac_exeext'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_cv_func_mmap=yes
5892 else
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 ac_cv_func_mmap=no
5898 rm -f conftest.err conftest.$ac_objext \
5899 conftest$ac_exeext conftest.$ac_ext
5901 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5902 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5903 if test $ac_cv_func_mmap = yes; then
5904 gcc_func_mmap=yes
5905 else
5906 gcc_func_mmap=no
5909 if test "$gcc_header_sys_mman_h" != yes \
5910 || test "$gcc_func_mmap" != yes; then
5911 gcc_cv_func_mmap_file=no
5912 gcc_cv_func_mmap_dev_zero=no
5913 gcc_cv_func_mmap_anon=no
5914 else
5915 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5916 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5917 if test "${gcc_cv_func_mmap_file+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920 # Add a system to this blacklist if
5921 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5922 # memory area containing the same data that you'd get if you applied
5923 # read() to the same fd. The only system known to have a problem here
5924 # is VMS, where text files have record structure.
5925 case "$host_os" in
5926 vms* | ultrix*)
5927 gcc_cv_func_mmap_file=no ;;
5929 gcc_cv_func_mmap_file=yes;;
5930 esac
5932 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
5933 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
5934 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5935 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5936 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939 # Add a system to this blacklist if it has mmap() but /dev/zero
5940 # does not exist, or if mmapping /dev/zero does not give anonymous
5941 # zeroed pages with both the following properties:
5942 # 1. If you map N consecutive pages in with one call, and then
5943 # unmap any subset of those pages, the pages that were not
5944 # explicitly unmapped remain accessible.
5945 # 2. If you map two adjacent blocks of memory and then unmap them
5946 # both at once, they must both go away.
5947 # Systems known to be in this category are Windows (all variants),
5948 # VMS, and Darwin.
5949 case "$host_os" in
5950 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5951 gcc_cv_func_mmap_dev_zero=no ;;
5953 gcc_cv_func_mmap_dev_zero=yes;;
5954 esac
5956 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
5957 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
5959 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5960 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5961 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5962 if test "${gcc_cv_decl_map_anon+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 #include <sys/types.h>
5972 #include <sys/mman.h>
5973 #include <unistd.h>
5975 #ifndef MAP_ANONYMOUS
5976 #define MAP_ANONYMOUS MAP_ANON
5977 #endif
5980 main ()
5982 int n = MAP_ANONYMOUS;
5984 return 0;
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 gcc_cv_decl_map_anon=yes
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 gcc_cv_decl_map_anon=no
6016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
6019 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
6021 if test $gcc_cv_decl_map_anon = no; then
6022 gcc_cv_func_mmap_anon=no
6023 else
6024 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
6025 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
6026 if test "${gcc_cv_func_mmap_anon+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 # Add a system to this blacklist if it has mmap() and MAP_ANON or
6030 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
6031 # doesn't give anonymous zeroed pages with the same properties listed
6032 # above for use of /dev/zero.
6033 # Systems known to be in this category are Windows, VMS, and SCO Unix.
6034 case "$host_os" in
6035 vms* | cygwin* | pe | mingw* | sco* | udk* )
6036 gcc_cv_func_mmap_anon=no ;;
6038 gcc_cv_func_mmap_anon=yes;;
6039 esac
6041 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
6042 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
6046 if test $gcc_cv_func_mmap_file = yes; then
6048 cat >>confdefs.h <<\_ACEOF
6049 #define HAVE_MMAP_FILE 1
6050 _ACEOF
6053 if test $gcc_cv_func_mmap_dev_zero = yes; then
6055 cat >>confdefs.h <<\_ACEOF
6056 #define HAVE_MMAP_DEV_ZERO 1
6057 _ACEOF
6060 if test $gcc_cv_func_mmap_anon = yes; then
6062 cat >>confdefs.h <<\_ACEOF
6063 #define HAVE_MMAP_ANON 1
6064 _ACEOF
6069 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6070 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6071 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6072 if test "${enable_maintainer_mode+set}" = set; then
6073 enableval="$enable_maintainer_mode"
6074 USE_MAINTAINER_MODE=$enableval
6075 else
6076 USE_MAINTAINER_MODE=no
6078 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6079 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6080 if test "$USE_MAINTAINER_MODE" = yes; then
6081 MAINT=
6082 else
6083 MAINT='#'
6087 cat >>confdefs.h <<_ACEOF
6088 #define SED_PROGRAM "${SED}"
6089 _ACEOF
6092 ac_config_headers="$ac_config_headers config.h"
6094 ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in"
6096 cat >confcache <<\_ACEOF
6097 # This file is a shell script that caches the results of configure
6098 # tests run on this system so they can be shared between configure
6099 # scripts and configure runs, see configure's option --config-cache.
6100 # It is not useful on other systems. If it contains results you don't
6101 # want to keep, you may remove or edit it.
6103 # config.status only pays attention to the cache file if you give it
6104 # the --recheck option to rerun configure.
6106 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6107 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6108 # following values.
6110 _ACEOF
6112 # The following way of writing the cache mishandles newlines in values,
6113 # but we know of no workaround that is simple, portable, and efficient.
6114 # So, don't put newlines in cache variables' values.
6115 # Ultrix sh set writes to stderr and can't be redirected directly,
6116 # and sets the high bit in the cache file unless we assign to the vars.
6118 (set) 2>&1 |
6119 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6120 *ac_space=\ *)
6121 # `set' does not quote correctly, so add quotes (double-quote
6122 # substitution turns \\\\ into \\, and sed turns \\ into \).
6123 sed -n \
6124 "s/'/'\\\\''/g;
6125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6128 # `set' quotes correctly as required by POSIX, so do not add quotes.
6129 sed -n \
6130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6132 esac;
6134 sed '
6135 t clear
6136 : clear
6137 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6138 t end
6139 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6140 : end' >>confcache
6141 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6142 if test -w $cache_file; then
6143 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6144 cat confcache >$cache_file
6145 else
6146 echo "not updating unwritable cache $cache_file"
6149 rm -f confcache
6151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6152 # Let make expand exec_prefix.
6153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6155 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6156 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6157 # trailing colons and then remove the whole line if VPATH becomes empty
6158 # (actually we leave an empty line to preserve line numbers).
6159 if test "x$srcdir" = x.; then
6160 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6161 s/:*\$(srcdir):*/:/;
6162 s/:*\${srcdir}:*/:/;
6163 s/:*@srcdir@:*/:/;
6164 s/^\([^=]*=[ ]*\):*/\1/;
6165 s/:*$//;
6166 s/^[^=]*=[ ]*$//;
6170 DEFS=-DHAVE_CONFIG_H
6172 ac_libobjs=
6173 ac_ltlibobjs=
6174 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6175 # 1. Remove the extension, and $U if already installed.
6176 ac_i=`echo "$ac_i" |
6177 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6178 # 2. Add them.
6179 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6180 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6181 done
6182 LIBOBJS=$ac_libobjs
6184 LTLIBOBJS=$ac_ltlibobjs
6188 : ${CONFIG_STATUS=./config.status}
6189 ac_clean_files_save=$ac_clean_files
6190 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6191 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6192 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6193 cat >$CONFIG_STATUS <<_ACEOF
6194 #! $SHELL
6195 # Generated by $as_me.
6196 # Run this file to recreate the current configuration.
6197 # Compiler output produced by configure, useful for debugging
6198 # configure, is in config.log if it exists.
6200 debug=false
6201 ac_cs_recheck=false
6202 ac_cs_silent=false
6203 SHELL=\${CONFIG_SHELL-$SHELL}
6204 _ACEOF
6206 cat >>$CONFIG_STATUS <<\_ACEOF
6207 ## --------------------- ##
6208 ## M4sh Initialization. ##
6209 ## --------------------- ##
6211 # Be Bourne compatible
6212 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6213 emulate sh
6214 NULLCMD=:
6215 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6216 # is contrary to our usage. Disable this feature.
6217 alias -g '${1+"$@"}'='"$@"'
6218 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6219 set -o posix
6221 DUALCASE=1; export DUALCASE # for MKS sh
6223 # Support unset when possible.
6224 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6225 as_unset=unset
6226 else
6227 as_unset=false
6231 # Work around bugs in pre-3.0 UWIN ksh.
6232 $as_unset ENV MAIL MAILPATH
6233 PS1='$ '
6234 PS2='> '
6235 PS4='+ '
6237 # NLS nuisances.
6238 for as_var in \
6239 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6240 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6241 LC_TELEPHONE LC_TIME
6243 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6244 eval $as_var=C; export $as_var
6245 else
6246 $as_unset $as_var
6248 done
6250 # Required to use basename.
6251 if expr a : '\(a\)' >/dev/null 2>&1; then
6252 as_expr=expr
6253 else
6254 as_expr=false
6257 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6258 as_basename=basename
6259 else
6260 as_basename=false
6264 # Name of the executable.
6265 as_me=`$as_basename "$0" ||
6266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6267 X"$0" : 'X\(//\)$' \| \
6268 X"$0" : 'X\(/\)$' \| \
6269 . : '\(.\)' 2>/dev/null ||
6270 echo X/"$0" |
6271 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6272 /^X\/\(\/\/\)$/{ s//\1/; q; }
6273 /^X\/\(\/\).*/{ s//\1/; q; }
6274 s/.*/./; q'`
6277 # PATH needs CR, and LINENO needs CR and PATH.
6278 # Avoid depending upon Character Ranges.
6279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6282 as_cr_digits='0123456789'
6283 as_cr_alnum=$as_cr_Letters$as_cr_digits
6285 # The user is always right.
6286 if test "${PATH_SEPARATOR+set}" != set; then
6287 echo "#! /bin/sh" >conf$$.sh
6288 echo "exit 0" >>conf$$.sh
6289 chmod +x conf$$.sh
6290 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6291 PATH_SEPARATOR=';'
6292 else
6293 PATH_SEPARATOR=:
6295 rm -f conf$$.sh
6299 as_lineno_1=$LINENO
6300 as_lineno_2=$LINENO
6301 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6302 test "x$as_lineno_1" != "x$as_lineno_2" &&
6303 test "x$as_lineno_3" = "x$as_lineno_2" || {
6304 # Find who we are. Look in the path if we contain no path at all
6305 # relative or not.
6306 case $0 in
6307 *[\\/]* ) as_myself=$0 ;;
6308 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6314 done
6317 esac
6318 # We did not find ourselves, most probably we were run as `sh COMMAND'
6319 # in which case we are not to be found in the path.
6320 if test "x$as_myself" = x; then
6321 as_myself=$0
6323 if test ! -f "$as_myself"; then
6324 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6325 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6326 { (exit 1); exit 1; }; }
6328 case $CONFIG_SHELL in
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for as_base in sh bash ksh sh5; do
6336 case $as_dir in
6338 if ("$as_dir/$as_base" -c '
6339 as_lineno_1=$LINENO
6340 as_lineno_2=$LINENO
6341 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6342 test "x$as_lineno_1" != "x$as_lineno_2" &&
6343 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6344 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6345 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6346 CONFIG_SHELL=$as_dir/$as_base
6347 export CONFIG_SHELL
6348 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6349 fi;;
6350 esac
6351 done
6352 done
6354 esac
6356 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6357 # uniformly replaced by the line number. The first 'sed' inserts a
6358 # line-number line before each line; the second 'sed' does the real
6359 # work. The second script uses 'N' to pair each line-number line
6360 # with the numbered line, and appends trailing '-' during
6361 # substitution so that $LINENO is not a special case at line end.
6362 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6363 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6364 sed '=' <$as_myself |
6365 sed '
6367 s,$,-,
6368 : loop
6369 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6370 t loop
6371 s,-$,,
6372 s,^['$as_cr_digits']*\n,,
6373 ' >$as_me.lineno &&
6374 chmod +x $as_me.lineno ||
6375 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6376 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6377 { (exit 1); exit 1; }; }
6379 # Don't try to exec as it changes $[0], causing all sort of problems
6380 # (the dirname of $[0] is not the place where we might find the
6381 # original and so on. Autoconf is especially sensible to this).
6382 . ./$as_me.lineno
6383 # Exit status is that of the last command.
6384 exit
6388 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6389 *c*,-n*) ECHO_N= ECHO_C='
6390 ' ECHO_T=' ' ;;
6391 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6392 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6393 esac
6395 if expr a : '\(a\)' >/dev/null 2>&1; then
6396 as_expr=expr
6397 else
6398 as_expr=false
6401 rm -f conf$$ conf$$.exe conf$$.file
6402 echo >conf$$.file
6403 if ln -s conf$$.file conf$$ 2>/dev/null; then
6404 # We could just check for DJGPP; but this test a) works b) is more generic
6405 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6406 if test -f conf$$.exe; then
6407 # Don't use ln at all; we don't have any links
6408 as_ln_s='cp -p'
6409 else
6410 as_ln_s='ln -s'
6412 elif ln conf$$.file conf$$ 2>/dev/null; then
6413 as_ln_s=ln
6414 else
6415 as_ln_s='cp -p'
6417 rm -f conf$$ conf$$.exe conf$$.file
6419 if mkdir -p . 2>/dev/null; then
6420 as_mkdir_p=:
6421 else
6422 test -d ./-p && rmdir ./-p
6423 as_mkdir_p=false
6426 as_executable_p="test -f"
6428 # Sed expression to map a string onto a valid CPP name.
6429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6431 # Sed expression to map a string onto a valid variable name.
6432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6435 # IFS
6436 # We need space, tab and new line, in precisely that order.
6437 as_nl='
6439 IFS=" $as_nl"
6441 # CDPATH.
6442 $as_unset CDPATH
6444 exec 6>&1
6446 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6447 # report actual input values of CONFIG_FILES etc. instead of their
6448 # values after options handling. Logging --version etc. is OK.
6449 exec 5>>config.log
6451 echo
6452 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6453 ## Running $as_me. ##
6454 _ASBOX
6455 } >&5
6456 cat >&5 <<_CSEOF
6458 This file was extended by fixincludes $as_me , which was
6459 generated by GNU Autoconf 2.59. Invocation command line was
6461 CONFIG_FILES = $CONFIG_FILES
6462 CONFIG_HEADERS = $CONFIG_HEADERS
6463 CONFIG_LINKS = $CONFIG_LINKS
6464 CONFIG_COMMANDS = $CONFIG_COMMANDS
6465 $ $0 $@
6467 _CSEOF
6468 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6469 echo >&5
6470 _ACEOF
6472 # Files that config.status was made for.
6473 if test -n "$ac_config_files"; then
6474 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6477 if test -n "$ac_config_headers"; then
6478 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6481 if test -n "$ac_config_links"; then
6482 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6485 if test -n "$ac_config_commands"; then
6486 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6489 cat >>$CONFIG_STATUS <<\_ACEOF
6491 ac_cs_usage="\
6492 \`$as_me' instantiates files from templates according to the
6493 current configuration.
6495 Usage: $0 [OPTIONS] [FILE]...
6497 -h, --help print this help, then exit
6498 -V, --version print version number, then exit
6499 -q, --quiet do not print progress messages
6500 -d, --debug don't remove temporary files
6501 --recheck update $as_me by reconfiguring in the same conditions
6502 --file=FILE[:TEMPLATE]
6503 instantiate the configuration file FILE
6504 --header=FILE[:TEMPLATE]
6505 instantiate the configuration header FILE
6507 Configuration files:
6508 $config_files
6510 Configuration headers:
6511 $config_headers
6513 Report bugs to <bug-autoconf@gnu.org>."
6514 _ACEOF
6516 cat >>$CONFIG_STATUS <<_ACEOF
6517 ac_cs_version="\\
6518 fixincludes config.status
6519 configured by $0, generated by GNU Autoconf 2.59,
6520 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6522 Copyright (C) 2003 Free Software Foundation, Inc.
6523 This config.status script is free software; the Free Software Foundation
6524 gives unlimited permission to copy, distribute and modify it."
6525 srcdir=$srcdir
6526 _ACEOF
6528 cat >>$CONFIG_STATUS <<\_ACEOF
6529 # If no file are specified by the user, then we need to provide default
6530 # value. By we need to know if files were specified by the user.
6531 ac_need_defaults=:
6532 while test $# != 0
6534 case $1 in
6535 --*=*)
6536 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6537 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6538 ac_shift=:
6541 ac_option=$1
6542 ac_optarg=$2
6543 ac_shift=shift
6545 *) # This is not an option, so the user has probably given explicit
6546 # arguments.
6547 ac_option=$1
6548 ac_need_defaults=false;;
6549 esac
6551 case $ac_option in
6552 # Handling of the options.
6553 _ACEOF
6554 cat >>$CONFIG_STATUS <<\_ACEOF
6555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6556 ac_cs_recheck=: ;;
6557 --version | --vers* | -V )
6558 echo "$ac_cs_version"; exit 0 ;;
6559 --he | --h)
6560 # Conflict between --help and --header
6561 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6562 Try \`$0 --help' for more information." >&5
6563 echo "$as_me: error: ambiguous option: $1
6564 Try \`$0 --help' for more information." >&2;}
6565 { (exit 1); exit 1; }; };;
6566 --help | --hel | -h )
6567 echo "$ac_cs_usage"; exit 0 ;;
6568 --debug | --d* | -d )
6569 debug=: ;;
6570 --file | --fil | --fi | --f )
6571 $ac_shift
6572 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6573 ac_need_defaults=false;;
6574 --header | --heade | --head | --hea )
6575 $ac_shift
6576 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6577 ac_need_defaults=false;;
6578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6579 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6580 ac_cs_silent=: ;;
6582 # This is an error.
6583 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6584 Try \`$0 --help' for more information." >&5
6585 echo "$as_me: error: unrecognized option: $1
6586 Try \`$0 --help' for more information." >&2;}
6587 { (exit 1); exit 1; }; } ;;
6589 *) ac_config_targets="$ac_config_targets $1" ;;
6591 esac
6592 shift
6593 done
6595 ac_configure_extra_args=
6597 if $ac_cs_silent; then
6598 exec 6>/dev/null
6599 ac_configure_extra_args="$ac_configure_extra_args --silent"
6602 _ACEOF
6603 cat >>$CONFIG_STATUS <<_ACEOF
6604 if \$ac_cs_recheck; then
6605 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6606 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6609 _ACEOF
6615 cat >>$CONFIG_STATUS <<\_ACEOF
6616 for ac_config_target in $ac_config_targets
6618 case "$ac_config_target" in
6619 # Handling of arguments.
6620 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6621 "mkheaders.almost" ) CONFIG_FILES="$CONFIG_FILES mkheaders.almost:mkheaders.in" ;;
6622 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6623 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6624 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6625 { (exit 1); exit 1; }; };;
6626 esac
6627 done
6629 # If the user did not use the arguments to specify the items to instantiate,
6630 # then the envvar interface is used. Set only those that are not.
6631 # We use the long form for the default assignment because of an extremely
6632 # bizarre bug on SunOS 4.1.3.
6633 if $ac_need_defaults; then
6634 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6635 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6638 # Have a temporary directory for convenience. Make it in the build tree
6639 # simply because there is no reason to put it here, and in addition,
6640 # creating and moving files from /tmp can sometimes cause problems.
6641 # Create a temporary directory, and hook for its removal unless debugging.
6642 $debug ||
6644 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6645 trap '{ (exit 1); exit 1; }' 1 2 13 15
6648 # Create a (secure) tmp directory for tmp files.
6651 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6652 test -n "$tmp" && test -d "$tmp"
6653 } ||
6655 tmp=./confstat$$-$RANDOM
6656 (umask 077 && mkdir $tmp)
6657 } ||
6659 echo "$me: cannot create a temporary directory in ." >&2
6660 { (exit 1); exit 1; }
6663 _ACEOF
6665 cat >>$CONFIG_STATUS <<_ACEOF
6668 # CONFIG_FILES section.
6671 # No need to generate the scripts if there are no CONFIG_FILES.
6672 # This happens for instance when ./config.status config.h
6673 if test -n "\$CONFIG_FILES"; then
6674 # Protect against being on the right side of a sed subst in config.status.
6675 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6676 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6677 s,@SHELL@,$SHELL,;t t
6678 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6679 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6680 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6681 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6682 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6683 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6684 s,@exec_prefix@,$exec_prefix,;t t
6685 s,@prefix@,$prefix,;t t
6686 s,@program_transform_name@,$program_transform_name,;t t
6687 s,@bindir@,$bindir,;t t
6688 s,@sbindir@,$sbindir,;t t
6689 s,@libexecdir@,$libexecdir,;t t
6690 s,@datadir@,$datadir,;t t
6691 s,@sysconfdir@,$sysconfdir,;t t
6692 s,@sharedstatedir@,$sharedstatedir,;t t
6693 s,@localstatedir@,$localstatedir,;t t
6694 s,@libdir@,$libdir,;t t
6695 s,@includedir@,$includedir,;t t
6696 s,@oldincludedir@,$oldincludedir,;t t
6697 s,@infodir@,$infodir,;t t
6698 s,@mandir@,$mandir,;t t
6699 s,@build_alias@,$build_alias,;t t
6700 s,@host_alias@,$host_alias,;t t
6701 s,@target_alias@,$target_alias,;t t
6702 s,@DEFS@,$DEFS,;t t
6703 s,@ECHO_C@,$ECHO_C,;t t
6704 s,@ECHO_N@,$ECHO_N,;t t
6705 s,@ECHO_T@,$ECHO_T,;t t
6706 s,@LIBS@,$LIBS,;t t
6707 s,@build@,$build,;t t
6708 s,@build_cpu@,$build_cpu,;t t
6709 s,@build_vendor@,$build_vendor,;t t
6710 s,@build_os@,$build_os,;t t
6711 s,@host@,$host,;t t
6712 s,@host_cpu@,$host_cpu,;t t
6713 s,@host_vendor@,$host_vendor,;t t
6714 s,@host_os@,$host_os,;t t
6715 s,@target@,$target,;t t
6716 s,@target_cpu@,$target_cpu,;t t
6717 s,@target_vendor@,$target_vendor,;t t
6718 s,@target_os@,$target_os,;t t
6719 s,@CC@,$CC,;t t
6720 s,@CFLAGS@,$CFLAGS,;t t
6721 s,@LDFLAGS@,$LDFLAGS,;t t
6722 s,@CPPFLAGS@,$CPPFLAGS,;t t
6723 s,@ac_ct_CC@,$ac_ct_CC,;t t
6724 s,@EXEEXT@,$EXEEXT,;t t
6725 s,@OBJEXT@,$OBJEXT,;t t
6726 s,@SED@,$SED,;t t
6727 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6728 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
6729 s,@WERROR@,$WERROR,;t t
6730 s,@target_noncanonical@,$target_noncanonical,;t t
6731 s,@TARGET@,$TARGET,;t t
6732 s,@CPP@,$CPP,;t t
6733 s,@EGREP@,$EGREP,;t t
6734 s,@MAINT@,$MAINT,;t t
6735 s,@LIBOBJS@,$LIBOBJS,;t t
6736 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6737 CEOF
6739 _ACEOF
6741 cat >>$CONFIG_STATUS <<\_ACEOF
6742 # Split the substitutions into bite-sized pieces for seds with
6743 # small command number limits, like on Digital OSF/1 and HP-UX.
6744 ac_max_sed_lines=48
6745 ac_sed_frag=1 # Number of current file.
6746 ac_beg=1 # First line for current file.
6747 ac_end=$ac_max_sed_lines # Line after last line for current file.
6748 ac_more_lines=:
6749 ac_sed_cmds=
6750 while $ac_more_lines; do
6751 if test $ac_beg -gt 1; then
6752 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6753 else
6754 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6756 if test ! -s $tmp/subs.frag; then
6757 ac_more_lines=false
6758 else
6759 # The purpose of the label and of the branching condition is to
6760 # speed up the sed processing (if there are no `@' at all, there
6761 # is no need to browse any of the substitutions).
6762 # These are the two extra sed commands mentioned above.
6763 (echo ':t
6764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6765 if test -z "$ac_sed_cmds"; then
6766 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6767 else
6768 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6770 ac_sed_frag=`expr $ac_sed_frag + 1`
6771 ac_beg=$ac_end
6772 ac_end=`expr $ac_end + $ac_max_sed_lines`
6774 done
6775 if test -z "$ac_sed_cmds"; then
6776 ac_sed_cmds=cat
6778 fi # test -n "$CONFIG_FILES"
6780 _ACEOF
6781 cat >>$CONFIG_STATUS <<\_ACEOF
6782 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6783 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6784 case $ac_file in
6785 - | *:- | *:-:* ) # input from stdin
6786 cat >$tmp/stdin
6787 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6788 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6789 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6791 * ) ac_file_in=$ac_file.in ;;
6792 esac
6794 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6795 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6796 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6797 X"$ac_file" : 'X\(//\)[^/]' \| \
6798 X"$ac_file" : 'X\(//\)$' \| \
6799 X"$ac_file" : 'X\(/\)' \| \
6800 . : '\(.\)' 2>/dev/null ||
6801 echo X"$ac_file" |
6802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6804 /^X\(\/\/\)$/{ s//\1/; q; }
6805 /^X\(\/\).*/{ s//\1/; q; }
6806 s/.*/./; q'`
6807 { if $as_mkdir_p; then
6808 mkdir -p "$ac_dir"
6809 else
6810 as_dir="$ac_dir"
6811 as_dirs=
6812 while test ! -d "$as_dir"; do
6813 as_dirs="$as_dir $as_dirs"
6814 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6816 X"$as_dir" : 'X\(//\)[^/]' \| \
6817 X"$as_dir" : 'X\(//\)$' \| \
6818 X"$as_dir" : 'X\(/\)' \| \
6819 . : '\(.\)' 2>/dev/null ||
6820 echo X"$as_dir" |
6821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6823 /^X\(\/\/\)$/{ s//\1/; q; }
6824 /^X\(\/\).*/{ s//\1/; q; }
6825 s/.*/./; q'`
6826 done
6827 test ! -n "$as_dirs" || mkdir $as_dirs
6828 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6829 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6830 { (exit 1); exit 1; }; }; }
6832 ac_builddir=.
6834 if test "$ac_dir" != .; then
6835 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6836 # A "../" for each directory in $ac_dir_suffix.
6837 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6838 else
6839 ac_dir_suffix= ac_top_builddir=
6842 case $srcdir in
6843 .) # No --srcdir option. We are building in place.
6844 ac_srcdir=.
6845 if test -z "$ac_top_builddir"; then
6846 ac_top_srcdir=.
6847 else
6848 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6849 fi ;;
6850 [\\/]* | ?:[\\/]* ) # Absolute path.
6851 ac_srcdir=$srcdir$ac_dir_suffix;
6852 ac_top_srcdir=$srcdir ;;
6853 *) # Relative path.
6854 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6855 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6856 esac
6858 # Do not use `cd foo && pwd` to compute absolute paths, because
6859 # the directories may not exist.
6860 case `pwd` in
6861 .) ac_abs_builddir="$ac_dir";;
6863 case "$ac_dir" in
6864 .) ac_abs_builddir=`pwd`;;
6865 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6866 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6867 esac;;
6868 esac
6869 case $ac_abs_builddir in
6870 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6872 case ${ac_top_builddir}. in
6873 .) ac_abs_top_builddir=$ac_abs_builddir;;
6874 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6875 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6876 esac;;
6877 esac
6878 case $ac_abs_builddir in
6879 .) ac_abs_srcdir=$ac_srcdir;;
6881 case $ac_srcdir in
6882 .) ac_abs_srcdir=$ac_abs_builddir;;
6883 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6884 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6885 esac;;
6886 esac
6887 case $ac_abs_builddir in
6888 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6890 case $ac_top_srcdir in
6891 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6892 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6893 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6894 esac;;
6895 esac
6899 if test x"$ac_file" != x-; then
6900 { echo "$as_me:$LINENO: creating $ac_file" >&5
6901 echo "$as_me: creating $ac_file" >&6;}
6902 rm -f "$ac_file"
6904 # Let's still pretend it is `configure' which instantiates (i.e., don't
6905 # use $as_me), people would be surprised to read:
6906 # /* config.h. Generated by config.status. */
6907 if test x"$ac_file" = x-; then
6908 configure_input=
6909 else
6910 configure_input="$ac_file. "
6912 configure_input=$configure_input"Generated from `echo $ac_file_in |
6913 sed 's,.*/,,'` by configure."
6915 # First look for the input files in the build tree, otherwise in the
6916 # src tree.
6917 ac_file_inputs=`IFS=:
6918 for f in $ac_file_in; do
6919 case $f in
6920 -) echo $tmp/stdin ;;
6921 [\\/$]*)
6922 # Absolute (can't be DOS-style, as IFS=:)
6923 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6924 echo "$as_me: error: cannot find input file: $f" >&2;}
6925 { (exit 1); exit 1; }; }
6926 echo "$f";;
6927 *) # Relative
6928 if test -f "$f"; then
6929 # Build tree
6930 echo "$f"
6931 elif test -f "$srcdir/$f"; then
6932 # Source tree
6933 echo "$srcdir/$f"
6934 else
6935 # /dev/null tree
6936 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6937 echo "$as_me: error: cannot find input file: $f" >&2;}
6938 { (exit 1); exit 1; }; }
6939 fi;;
6940 esac
6941 done` || { (exit 1); exit 1; }
6942 _ACEOF
6943 cat >>$CONFIG_STATUS <<_ACEOF
6944 sed "$ac_vpsub
6945 $extrasub
6946 _ACEOF
6947 cat >>$CONFIG_STATUS <<\_ACEOF
6949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6950 s,@configure_input@,$configure_input,;t t
6951 s,@srcdir@,$ac_srcdir,;t t
6952 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6953 s,@top_srcdir@,$ac_top_srcdir,;t t
6954 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6955 s,@builddir@,$ac_builddir,;t t
6956 s,@abs_builddir@,$ac_abs_builddir,;t t
6957 s,@top_builddir@,$ac_top_builddir,;t t
6958 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6959 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6960 rm -f $tmp/stdin
6961 if test x"$ac_file" != x-; then
6962 mv $tmp/out $ac_file
6963 else
6964 cat $tmp/out
6965 rm -f $tmp/out
6968 done
6969 _ACEOF
6970 cat >>$CONFIG_STATUS <<\_ACEOF
6973 # CONFIG_HEADER section.
6976 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6977 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6979 # ac_d sets the value in "#define NAME VALUE" lines.
6980 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6981 ac_dB='[ ].*$,\1#\2'
6982 ac_dC=' '
6983 ac_dD=',;t'
6984 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6985 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6986 ac_uB='$,\1#\2define\3'
6987 ac_uC=' '
6988 ac_uD=',;t'
6990 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6991 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6992 case $ac_file in
6993 - | *:- | *:-:* ) # input from stdin
6994 cat >$tmp/stdin
6995 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6996 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6997 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6998 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6999 * ) ac_file_in=$ac_file.in ;;
7000 esac
7002 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7003 echo "$as_me: creating $ac_file" >&6;}
7005 # First look for the input files in the build tree, otherwise in the
7006 # src tree.
7007 ac_file_inputs=`IFS=:
7008 for f in $ac_file_in; do
7009 case $f in
7010 -) echo $tmp/stdin ;;
7011 [\\/$]*)
7012 # Absolute (can't be DOS-style, as IFS=:)
7013 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7014 echo "$as_me: error: cannot find input file: $f" >&2;}
7015 { (exit 1); exit 1; }; }
7016 # Do quote $f, to prevent DOS paths from being IFS'd.
7017 echo "$f";;
7018 *) # Relative
7019 if test -f "$f"; then
7020 # Build tree
7021 echo "$f"
7022 elif test -f "$srcdir/$f"; then
7023 # Source tree
7024 echo "$srcdir/$f"
7025 else
7026 # /dev/null tree
7027 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7028 echo "$as_me: error: cannot find input file: $f" >&2;}
7029 { (exit 1); exit 1; }; }
7030 fi;;
7031 esac
7032 done` || { (exit 1); exit 1; }
7033 # Remove the trailing spaces.
7034 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7036 _ACEOF
7038 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7039 # `conftest.undefs', that substitutes the proper values into
7040 # config.h.in to produce config.h. The first handles `#define'
7041 # templates, and the second `#undef' templates.
7042 # And first: Protect against being on the right side of a sed subst in
7043 # config.status. Protect against being in an unquoted here document
7044 # in config.status.
7045 rm -f conftest.defines conftest.undefs
7046 # Using a here document instead of a string reduces the quoting nightmare.
7047 # Putting comments in sed scripts is not portable.
7049 # `end' is used to avoid that the second main sed command (meant for
7050 # 0-ary CPP macros) applies to n-ary macro definitions.
7051 # See the Autoconf documentation for `clear'.
7052 cat >confdef2sed.sed <<\_ACEOF
7053 s/[\\&,]/\\&/g
7054 s,[\\$`],\\&,g
7055 t clear
7056 : clear
7057 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7058 t end
7059 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7060 : end
7061 _ACEOF
7062 # If some macros were called several times there might be several times
7063 # the same #defines, which is useless. Nevertheless, we may not want to
7064 # sort them, since we want the *last* AC-DEFINE to be honored.
7065 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7066 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7067 rm -f confdef2sed.sed
7069 # This sed command replaces #undef with comments. This is necessary, for
7070 # example, in the case of _POSIX_SOURCE, which is predefined and required
7071 # on some systems where configure will not decide to define it.
7072 cat >>conftest.undefs <<\_ACEOF
7073 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7074 _ACEOF
7076 # Break up conftest.defines because some shells have a limit on the size
7077 # of here documents, and old seds have small limits too (100 cmds).
7078 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7079 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7080 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7081 echo ' :' >>$CONFIG_STATUS
7082 rm -f conftest.tail
7083 while grep . conftest.defines >/dev/null
7085 # Write a limited-size here document to $tmp/defines.sed.
7086 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7087 # Speed up: don't consider the non `#define' lines.
7088 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7089 # Work around the forget-to-reset-the-flag bug.
7090 echo 't clr' >>$CONFIG_STATUS
7091 echo ': clr' >>$CONFIG_STATUS
7092 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7093 echo 'CEOF
7094 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7095 rm -f $tmp/in
7096 mv $tmp/out $tmp/in
7097 ' >>$CONFIG_STATUS
7098 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7099 rm -f conftest.defines
7100 mv conftest.tail conftest.defines
7101 done
7102 rm -f conftest.defines
7103 echo ' fi # grep' >>$CONFIG_STATUS
7104 echo >>$CONFIG_STATUS
7106 # Break up conftest.undefs because some shells have a limit on the size
7107 # of here documents, and old seds have small limits too (100 cmds).
7108 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7109 rm -f conftest.tail
7110 while grep . conftest.undefs >/dev/null
7112 # Write a limited-size here document to $tmp/undefs.sed.
7113 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7114 # Speed up: don't consider the non `#undef'
7115 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7116 # Work around the forget-to-reset-the-flag bug.
7117 echo 't clr' >>$CONFIG_STATUS
7118 echo ': clr' >>$CONFIG_STATUS
7119 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7120 echo 'CEOF
7121 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7122 rm -f $tmp/in
7123 mv $tmp/out $tmp/in
7124 ' >>$CONFIG_STATUS
7125 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7126 rm -f conftest.undefs
7127 mv conftest.tail conftest.undefs
7128 done
7129 rm -f conftest.undefs
7131 cat >>$CONFIG_STATUS <<\_ACEOF
7132 # Let's still pretend it is `configure' which instantiates (i.e., don't
7133 # use $as_me), people would be surprised to read:
7134 # /* config.h. Generated by config.status. */
7135 if test x"$ac_file" = x-; then
7136 echo "/* Generated by configure. */" >$tmp/config.h
7137 else
7138 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7140 cat $tmp/in >>$tmp/config.h
7141 rm -f $tmp/in
7142 if test x"$ac_file" != x-; then
7143 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7144 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7145 echo "$as_me: $ac_file is unchanged" >&6;}
7146 else
7147 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7149 X"$ac_file" : 'X\(//\)[^/]' \| \
7150 X"$ac_file" : 'X\(//\)$' \| \
7151 X"$ac_file" : 'X\(/\)' \| \
7152 . : '\(.\)' 2>/dev/null ||
7153 echo X"$ac_file" |
7154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7155 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7156 /^X\(\/\/\)$/{ s//\1/; q; }
7157 /^X\(\/\).*/{ s//\1/; q; }
7158 s/.*/./; q'`
7159 { if $as_mkdir_p; then
7160 mkdir -p "$ac_dir"
7161 else
7162 as_dir="$ac_dir"
7163 as_dirs=
7164 while test ! -d "$as_dir"; do
7165 as_dirs="$as_dir $as_dirs"
7166 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7167 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7168 X"$as_dir" : 'X\(//\)[^/]' \| \
7169 X"$as_dir" : 'X\(//\)$' \| \
7170 X"$as_dir" : 'X\(/\)' \| \
7171 . : '\(.\)' 2>/dev/null ||
7172 echo X"$as_dir" |
7173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7175 /^X\(\/\/\)$/{ s//\1/; q; }
7176 /^X\(\/\).*/{ s//\1/; q; }
7177 s/.*/./; q'`
7178 done
7179 test ! -n "$as_dirs" || mkdir $as_dirs
7180 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7181 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7182 { (exit 1); exit 1; }; }; }
7184 rm -f $ac_file
7185 mv $tmp/config.h $ac_file
7187 else
7188 cat $tmp/config.h
7189 rm -f $tmp/config.h
7191 # Run the commands associated with the file.
7192 case $ac_file in
7193 config.h ) echo timestamp > stamp-h ;;
7194 esac
7195 done
7196 _ACEOF
7198 cat >>$CONFIG_STATUS <<\_ACEOF
7200 { (exit 0); exit 0; }
7201 _ACEOF
7202 chmod +x $CONFIG_STATUS
7203 ac_clean_files=$ac_clean_files_save
7206 # configure is writing to config.log, and then calls config.status.
7207 # config.status does its own redirection, appending to config.log.
7208 # Unfortunately, on DOS this fails, as config.log is still kept open
7209 # by configure, so config.status won't be able to write to it; its
7210 # output is simply discarded. So we exec the FD to /dev/null,
7211 # effectively closing config.log, so it can be properly (re)opened and
7212 # appended to by config.status. When coming back to configure, we
7213 # need to make the FD available again.
7214 if test "$no_create" != yes; then
7215 ac_cs_success=:
7216 ac_config_status_args=
7217 test "$silent" = yes &&
7218 ac_config_status_args="$ac_config_status_args --quiet"
7219 exec 5>/dev/null
7220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7221 exec 5>>config.log
7222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7223 # would make configure fail if this is the last instruction.
7224 $ac_cs_success || { (exit 1); exit 1; }