Merge -r 127928:132243 from trunk
[official-gcc.git] / fixincludes / configure
blob2812b89c00de547a1afe4ba6adefc2c7b92334ff
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for fixincludes .
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='fixincludes'
574 PACKAGE_TARNAME='fixincludes'
575 PACKAGE_VERSION=' '
576 PACKAGE_STRING='fixincludes '
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="inclhack.def"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 target
662 target_cpu
663 target_vendor
664 target_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 WARN_CFLAGS
673 WARN_PEDANTIC
674 WERROR
675 target_noncanonical
676 TARGET
678 GREP
679 EGREP
680 MAINT
681 LIBOBJS
682 LTLIBOBJS'
683 ac_subst_files=''
684 ac_precious_vars='build_alias
685 host_alias
686 target_alias
688 CFLAGS
689 LDFLAGS
690 LIBS
691 CPPFLAGS
692 CPP'
695 # Initialize some variables set by options.
696 ac_init_help=
697 ac_init_version=false
698 # The variables have the same names as the options, with
699 # dashes changed to underlines.
700 cache_file=/dev/null
701 exec_prefix=NONE
702 no_create=
703 no_recursion=
704 prefix=NONE
705 program_prefix=NONE
706 program_suffix=NONE
707 program_transform_name=s,x,x,
708 silent=
709 site=
710 srcdir=
711 verbose=
712 x_includes=NONE
713 x_libraries=NONE
715 # Installation directory options.
716 # These are left unexpanded so users can "make install exec_prefix=/foo"
717 # and all the variables that are supposed to be based on exec_prefix
718 # by default will actually change.
719 # Use braces instead of parens because sh, perl, etc. also accept them.
720 # (The list follows the same order as the GNU Coding Standards.)
721 bindir='${exec_prefix}/bin'
722 sbindir='${exec_prefix}/sbin'
723 libexecdir='${exec_prefix}/libexec'
724 datarootdir='${prefix}/share'
725 datadir='${datarootdir}'
726 sysconfdir='${prefix}/etc'
727 sharedstatedir='${prefix}/com'
728 localstatedir='${prefix}/var'
729 includedir='${prefix}/include'
730 oldincludedir='/usr/include'
731 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
732 infodir='${datarootdir}/info'
733 htmldir='${docdir}'
734 dvidir='${docdir}'
735 pdfdir='${docdir}'
736 psdir='${docdir}'
737 libdir='${exec_prefix}/lib'
738 localedir='${datarootdir}/locale'
739 mandir='${datarootdir}/man'
741 ac_prev=
742 ac_dashdash=
743 for ac_option
745 # If the previous option needs an argument, assign it.
746 if test -n "$ac_prev"; then
747 eval $ac_prev=\$ac_option
748 ac_prev=
749 continue
752 case $ac_option in
753 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
754 *) ac_optarg=yes ;;
755 esac
757 # Accept the important Cygnus configure options, so we can diagnose typos.
759 case $ac_dashdash$ac_option in
761 ac_dashdash=yes ;;
763 -bindir | --bindir | --bindi | --bind | --bin | --bi)
764 ac_prev=bindir ;;
765 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
766 bindir=$ac_optarg ;;
768 -build | --build | --buil | --bui | --bu)
769 ac_prev=build_alias ;;
770 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
771 build_alias=$ac_optarg ;;
773 -cache-file | --cache-file | --cache-fil | --cache-fi \
774 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
775 ac_prev=cache_file ;;
776 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
777 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
778 cache_file=$ac_optarg ;;
780 --config-cache | -C)
781 cache_file=config.cache ;;
783 -datadir | --datadir | --datadi | --datad)
784 ac_prev=datadir ;;
785 -datadir=* | --datadir=* | --datadi=* | --datad=*)
786 datadir=$ac_optarg ;;
788 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
789 | --dataroo | --dataro | --datar)
790 ac_prev=datarootdir ;;
791 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
792 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
793 datarootdir=$ac_optarg ;;
795 -disable-* | --disable-*)
796 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
800 { (exit 1); exit 1; }; }
801 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
802 eval enable_$ac_feature=no ;;
804 -docdir | --docdir | --docdi | --doc | --do)
805 ac_prev=docdir ;;
806 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
807 docdir=$ac_optarg ;;
809 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
810 ac_prev=dvidir ;;
811 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
812 dvidir=$ac_optarg ;;
814 -enable-* | --enable-*)
815 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
816 # Reject names that are not valid shell variable names.
817 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
818 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
819 { (exit 1); exit 1; }; }
820 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
821 eval enable_$ac_feature=\$ac_optarg ;;
823 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
824 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
825 | --exec | --exe | --ex)
826 ac_prev=exec_prefix ;;
827 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
828 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
829 | --exec=* | --exe=* | --ex=*)
830 exec_prefix=$ac_optarg ;;
832 -gas | --gas | --ga | --g)
833 # Obsolete; use --with-gas.
834 with_gas=yes ;;
836 -help | --help | --hel | --he | -h)
837 ac_init_help=long ;;
838 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
839 ac_init_help=recursive ;;
840 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
841 ac_init_help=short ;;
843 -host | --host | --hos | --ho)
844 ac_prev=host_alias ;;
845 -host=* | --host=* | --hos=* | --ho=*)
846 host_alias=$ac_optarg ;;
848 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
849 ac_prev=htmldir ;;
850 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
851 | --ht=*)
852 htmldir=$ac_optarg ;;
854 -includedir | --includedir | --includedi | --included | --include \
855 | --includ | --inclu | --incl | --inc)
856 ac_prev=includedir ;;
857 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
858 | --includ=* | --inclu=* | --incl=* | --inc=*)
859 includedir=$ac_optarg ;;
861 -infodir | --infodir | --infodi | --infod | --info | --inf)
862 ac_prev=infodir ;;
863 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
864 infodir=$ac_optarg ;;
866 -libdir | --libdir | --libdi | --libd)
867 ac_prev=libdir ;;
868 -libdir=* | --libdir=* | --libdi=* | --libd=*)
869 libdir=$ac_optarg ;;
871 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
872 | --libexe | --libex | --libe)
873 ac_prev=libexecdir ;;
874 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
875 | --libexe=* | --libex=* | --libe=*)
876 libexecdir=$ac_optarg ;;
878 -localedir | --localedir | --localedi | --localed | --locale)
879 ac_prev=localedir ;;
880 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
881 localedir=$ac_optarg ;;
883 -localstatedir | --localstatedir | --localstatedi | --localstated \
884 | --localstate | --localstat | --localsta | --localst | --locals)
885 ac_prev=localstatedir ;;
886 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
887 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
888 localstatedir=$ac_optarg ;;
890 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
891 ac_prev=mandir ;;
892 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
893 mandir=$ac_optarg ;;
895 -nfp | --nfp | --nf)
896 # Obsolete; use --without-fp.
897 with_fp=no ;;
899 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
900 | --no-cr | --no-c | -n)
901 no_create=yes ;;
903 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
904 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
905 no_recursion=yes ;;
907 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
908 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
909 | --oldin | --oldi | --old | --ol | --o)
910 ac_prev=oldincludedir ;;
911 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
912 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
913 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
914 oldincludedir=$ac_optarg ;;
916 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
917 ac_prev=prefix ;;
918 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
919 prefix=$ac_optarg ;;
921 -program-prefix | --program-prefix | --program-prefi | --program-pref \
922 | --program-pre | --program-pr | --program-p)
923 ac_prev=program_prefix ;;
924 -program-prefix=* | --program-prefix=* | --program-prefi=* \
925 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
926 program_prefix=$ac_optarg ;;
928 -program-suffix | --program-suffix | --program-suffi | --program-suff \
929 | --program-suf | --program-su | --program-s)
930 ac_prev=program_suffix ;;
931 -program-suffix=* | --program-suffix=* | --program-suffi=* \
932 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
933 program_suffix=$ac_optarg ;;
935 -program-transform-name | --program-transform-name \
936 | --program-transform-nam | --program-transform-na \
937 | --program-transform-n | --program-transform- \
938 | --program-transform | --program-transfor \
939 | --program-transfo | --program-transf \
940 | --program-trans | --program-tran \
941 | --progr-tra | --program-tr | --program-t)
942 ac_prev=program_transform_name ;;
943 -program-transform-name=* | --program-transform-name=* \
944 | --program-transform-nam=* | --program-transform-na=* \
945 | --program-transform-n=* | --program-transform-=* \
946 | --program-transform=* | --program-transfor=* \
947 | --program-transfo=* | --program-transf=* \
948 | --program-trans=* | --program-tran=* \
949 | --progr-tra=* | --program-tr=* | --program-t=*)
950 program_transform_name=$ac_optarg ;;
952 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
953 ac_prev=pdfdir ;;
954 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
955 pdfdir=$ac_optarg ;;
957 -psdir | --psdir | --psdi | --psd | --ps)
958 ac_prev=psdir ;;
959 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
960 psdir=$ac_optarg ;;
962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
963 | -silent | --silent | --silen | --sile | --sil)
964 silent=yes ;;
966 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
967 ac_prev=sbindir ;;
968 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
969 | --sbi=* | --sb=*)
970 sbindir=$ac_optarg ;;
972 -sharedstatedir | --sharedstatedir | --sharedstatedi \
973 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
974 | --sharedst | --shareds | --shared | --share | --shar \
975 | --sha | --sh)
976 ac_prev=sharedstatedir ;;
977 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
978 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
979 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
980 | --sha=* | --sh=*)
981 sharedstatedir=$ac_optarg ;;
983 -site | --site | --sit)
984 ac_prev=site ;;
985 -site=* | --site=* | --sit=*)
986 site=$ac_optarg ;;
988 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
989 ac_prev=srcdir ;;
990 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
991 srcdir=$ac_optarg ;;
993 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
994 | --syscon | --sysco | --sysc | --sys | --sy)
995 ac_prev=sysconfdir ;;
996 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
997 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
998 sysconfdir=$ac_optarg ;;
1000 -target | --target | --targe | --targ | --tar | --ta | --t)
1001 ac_prev=target_alias ;;
1002 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1003 target_alias=$ac_optarg ;;
1005 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1006 verbose=yes ;;
1008 -version | --version | --versio | --versi | --vers | -V)
1009 ac_init_version=: ;;
1011 -with-* | --with-*)
1012 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid package name: $ac_package" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1018 eval with_$ac_package=\$ac_optarg ;;
1020 -without-* | --without-*)
1021 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1024 { echo "$as_me: error: invalid package name: $ac_package" >&2
1025 { (exit 1); exit 1; }; }
1026 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1027 eval with_$ac_package=no ;;
1029 --x)
1030 # Obsolete; use --with-x.
1031 with_x=yes ;;
1033 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1034 | --x-incl | --x-inc | --x-in | --x-i)
1035 ac_prev=x_includes ;;
1036 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1037 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1038 x_includes=$ac_optarg ;;
1040 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1041 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1042 ac_prev=x_libraries ;;
1043 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1044 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1045 x_libraries=$ac_optarg ;;
1047 -*) { echo "$as_me: error: unrecognized option: $ac_option
1048 Try \`$0 --help' for more information." >&2
1049 { (exit 1); exit 1; }; }
1052 *=*)
1053 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1057 { (exit 1); exit 1; }; }
1058 eval $ac_envvar=\$ac_optarg
1059 export $ac_envvar ;;
1062 # FIXME: should be removed in autoconf 3.0.
1063 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1064 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1066 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1069 esac
1070 done
1072 if test -n "$ac_prev"; then
1073 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1074 { echo "$as_me: error: missing argument to $ac_option" >&2
1075 { (exit 1); exit 1; }; }
1078 # Be sure to have absolute directory names.
1079 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1080 datadir sysconfdir sharedstatedir localstatedir includedir \
1081 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1082 libdir localedir mandir
1084 eval ac_val=\$$ac_var
1085 case $ac_val in
1086 [\\/$]* | ?:[\\/]* ) continue;;
1087 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1088 esac
1089 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1090 { (exit 1); exit 1; }; }
1091 done
1093 # There might be people who depend on the old broken behavior: `$host'
1094 # used to hold the argument of --host etc.
1095 # FIXME: To remove some day.
1096 build=$build_alias
1097 host=$host_alias
1098 target=$target_alias
1100 # FIXME: To remove some day.
1101 if test "x$host_alias" != x; then
1102 if test "x$build_alias" = x; then
1103 cross_compiling=maybe
1104 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1105 If a cross compiler is detected then cross compile mode will be used." >&2
1106 elif test "x$build_alias" != "x$host_alias"; then
1107 cross_compiling=yes
1111 ac_tool_prefix=
1112 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1114 test "$silent" = yes && exec 6>/dev/null
1117 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1118 ac_ls_di=`ls -di .` &&
1119 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1120 { echo "$as_me: error: Working directory cannot be determined" >&2
1121 { (exit 1); exit 1; }; }
1122 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1123 { echo "$as_me: error: pwd does not report name of working directory" >&2
1124 { (exit 1); exit 1; }; }
1127 # Find the source files, if location was not specified.
1128 if test -z "$srcdir"; then
1129 ac_srcdir_defaulted=yes
1130 # Try the directory containing this script, then the parent directory.
1131 ac_confdir=`$as_dirname -- "$0" ||
1132 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1133 X"$0" : 'X\(//\)[^/]' \| \
1134 X"$0" : 'X\(//\)$' \| \
1135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1136 echo X"$0" |
1137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1138 s//\1/
1141 /^X\(\/\/\)[^/].*/{
1142 s//\1/
1145 /^X\(\/\/\)$/{
1146 s//\1/
1149 /^X\(\/\).*/{
1150 s//\1/
1153 s/.*/./; q'`
1154 srcdir=$ac_confdir
1155 if test ! -r "$srcdir/$ac_unique_file"; then
1156 srcdir=..
1158 else
1159 ac_srcdir_defaulted=no
1161 if test ! -r "$srcdir/$ac_unique_file"; then
1162 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1163 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1164 { (exit 1); exit 1; }; }
1166 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1167 ac_abs_confdir=`(
1168 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1169 { (exit 1); exit 1; }; }
1170 pwd)`
1171 # When building in place, set srcdir=.
1172 if test "$ac_abs_confdir" = "$ac_pwd"; then
1173 srcdir=.
1175 # Remove unnecessary trailing slashes from srcdir.
1176 # Double slashes in file names in object file debugging info
1177 # mess up M-x gdb in Emacs.
1178 case $srcdir in
1179 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1180 esac
1181 for ac_var in $ac_precious_vars; do
1182 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1183 eval ac_env_${ac_var}_value=\$${ac_var}
1184 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1185 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1186 done
1189 # Report the --help message.
1191 if test "$ac_init_help" = "long"; then
1192 # Omit some internal or obsolete options to make the list less imposing.
1193 # This message is too long to be a string in the A/UX 3.1 sh.
1194 cat <<_ACEOF
1195 \`configure' configures fixincludes to adapt to many kinds of systems.
1197 Usage: $0 [OPTION]... [VAR=VALUE]...
1199 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1200 VAR=VALUE. See below for descriptions of some of the useful variables.
1202 Defaults for the options are specified in brackets.
1204 Configuration:
1205 -h, --help display this help and exit
1206 --help=short display options specific to this package
1207 --help=recursive display the short help of all the included packages
1208 -V, --version display version information and exit
1209 -q, --quiet, --silent do not print \`checking...' messages
1210 --cache-file=FILE cache test results in FILE [disabled]
1211 -C, --config-cache alias for \`--cache-file=config.cache'
1212 -n, --no-create do not create output files
1213 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1215 Installation directories:
1216 --prefix=PREFIX install architecture-independent files in PREFIX
1217 [$ac_default_prefix]
1218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1219 [PREFIX]
1221 By default, \`make install' will install all the files in
1222 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1223 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1224 for instance \`--prefix=\$HOME'.
1226 For better control, use the options below.
1228 Fine tuning of the installation directories:
1229 --bindir=DIR user executables [EPREFIX/bin]
1230 --sbindir=DIR system admin executables [EPREFIX/sbin]
1231 --libexecdir=DIR program executables [EPREFIX/libexec]
1232 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1233 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1234 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1235 --libdir=DIR object code libraries [EPREFIX/lib]
1236 --includedir=DIR C header files [PREFIX/include]
1237 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1238 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1239 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1240 --infodir=DIR info documentation [DATAROOTDIR/info]
1241 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1242 --mandir=DIR man documentation [DATAROOTDIR/man]
1243 --docdir=DIR documentation root [DATAROOTDIR/doc/fixincludes]
1244 --htmldir=DIR html documentation [DOCDIR]
1245 --dvidir=DIR dvi documentation [DOCDIR]
1246 --pdfdir=DIR pdf documentation [DOCDIR]
1247 --psdir=DIR ps documentation [DOCDIR]
1248 _ACEOF
1250 cat <<\_ACEOF
1252 System types:
1253 --build=BUILD configure for building on BUILD [guessed]
1254 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1255 --target=TARGET configure for building compilers for TARGET [HOST]
1256 _ACEOF
1259 if test -n "$ac_init_help"; then
1260 case $ac_init_help in
1261 short | recursive ) echo "Configuration of fixincludes :";;
1262 esac
1263 cat <<\_ACEOF
1265 Optional Features:
1266 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1267 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1268 --enable-werror-always enable -Werror despite compiler version
1269 --enable-twoprocess Use a separate process to apply the fixes
1270 --enable-maintainer-mode enable make rules and dependencies not useful
1271 (and sometimes confusing) to the casual installer
1273 Optional Packages:
1274 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1275 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1276 --with-local-prefix=DIR specifies directory to put local include
1278 Some influential environment variables:
1279 CC C compiler command
1280 CFLAGS C compiler flags
1281 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1282 nonstandard directory <lib dir>
1283 LIBS libraries to pass to the linker, e.g. -l<library>
1284 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1285 you have headers in a nonstandard directory <include dir>
1286 CPP C preprocessor
1288 Use these variables to override the choices made by `configure' or to help
1289 it to find libraries and programs with nonstandard names/locations.
1291 _ACEOF
1292 ac_status=$?
1295 if test "$ac_init_help" = "recursive"; then
1296 # If there are subdirs, report their specific --help.
1297 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1298 test -d "$ac_dir" || continue
1299 ac_builddir=.
1301 case "$ac_dir" in
1302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1304 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1305 # A ".." for each directory in $ac_dir_suffix.
1306 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1307 case $ac_top_builddir_sub in
1308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1310 esac ;;
1311 esac
1312 ac_abs_top_builddir=$ac_pwd
1313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1314 # for backward compatibility:
1315 ac_top_builddir=$ac_top_build_prefix
1317 case $srcdir in
1318 .) # We are building in place.
1319 ac_srcdir=.
1320 ac_top_srcdir=$ac_top_builddir_sub
1321 ac_abs_top_srcdir=$ac_pwd ;;
1322 [\\/]* | ?:[\\/]* ) # Absolute name.
1323 ac_srcdir=$srcdir$ac_dir_suffix;
1324 ac_top_srcdir=$srcdir
1325 ac_abs_top_srcdir=$srcdir ;;
1326 *) # Relative name.
1327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1328 ac_top_srcdir=$ac_top_build_prefix$srcdir
1329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1330 esac
1331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1333 cd "$ac_dir" || { ac_status=$?; continue; }
1334 # Check for guested configure.
1335 if test -f "$ac_srcdir/configure.gnu"; then
1336 echo &&
1337 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1338 elif test -f "$ac_srcdir/configure"; then
1339 echo &&
1340 $SHELL "$ac_srcdir/configure" --help=recursive
1341 else
1342 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1343 fi || ac_status=$?
1344 cd "$ac_pwd" || { ac_status=$?; break; }
1345 done
1348 test -n "$ac_init_help" && exit $ac_status
1349 if $ac_init_version; then
1350 cat <<\_ACEOF
1351 fixincludes configure
1352 generated by GNU Autoconf 2.61
1354 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1355 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1356 This configure script is free software; the Free Software Foundation
1357 gives unlimited permission to copy, distribute and modify it.
1358 _ACEOF
1359 exit
1361 cat >config.log <<_ACEOF
1362 This file contains any messages produced by compilers while
1363 running configure, to aid debugging if configure makes a mistake.
1365 It was created by fixincludes $as_me , which was
1366 generated by GNU Autoconf 2.61. Invocation command line was
1368 $ $0 $@
1370 _ACEOF
1371 exec 5>>config.log
1373 cat <<_ASUNAME
1374 ## --------- ##
1375 ## Platform. ##
1376 ## --------- ##
1378 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1379 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1380 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1381 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1382 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1384 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1385 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1387 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1388 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1389 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1390 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1391 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1392 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1393 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1395 _ASUNAME
1397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1398 for as_dir in $PATH
1400 IFS=$as_save_IFS
1401 test -z "$as_dir" && as_dir=.
1402 echo "PATH: $as_dir"
1403 done
1404 IFS=$as_save_IFS
1406 } >&5
1408 cat >&5 <<_ACEOF
1411 ## ----------- ##
1412 ## Core tests. ##
1413 ## ----------- ##
1415 _ACEOF
1418 # Keep a trace of the command line.
1419 # Strip out --no-create and --no-recursion so they do not pile up.
1420 # Strip out --silent because we don't want to record it for future runs.
1421 # Also quote any args containing shell meta-characters.
1422 # Make two passes to allow for proper duplicate-argument suppression.
1423 ac_configure_args=
1424 ac_configure_args0=
1425 ac_configure_args1=
1426 ac_must_keep_next=false
1427 for ac_pass in 1 2
1429 for ac_arg
1431 case $ac_arg in
1432 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1434 | -silent | --silent | --silen | --sile | --sil)
1435 continue ;;
1436 *\'*)
1437 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1438 esac
1439 case $ac_pass in
1440 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1442 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1443 if test $ac_must_keep_next = true; then
1444 ac_must_keep_next=false # Got value, back to normal.
1445 else
1446 case $ac_arg in
1447 *=* | --config-cache | -C | -disable-* | --disable-* \
1448 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1449 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1450 | -with-* | --with-* | -without-* | --without-* | --x)
1451 case "$ac_configure_args0 " in
1452 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1453 esac
1455 -* ) ac_must_keep_next=true ;;
1456 esac
1458 ac_configure_args="$ac_configure_args '$ac_arg'"
1460 esac
1461 done
1462 done
1463 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1464 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1466 # When interrupted or exit'd, cleanup temporary files, and complete
1467 # config.log. We remove comments because anyway the quotes in there
1468 # would cause problems or look ugly.
1469 # WARNING: Use '\'' to represent an apostrophe within the trap.
1470 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1471 trap 'exit_status=$?
1472 # Save into config.log some information that might help in debugging.
1474 echo
1476 cat <<\_ASBOX
1477 ## ---------------- ##
1478 ## Cache variables. ##
1479 ## ---------------- ##
1480 _ASBOX
1481 echo
1482 # The following way of writing the cache mishandles newlines in values,
1484 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1485 eval ac_val=\$$ac_var
1486 case $ac_val in #(
1487 *${as_nl}*)
1488 case $ac_var in #(
1489 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1490 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1491 esac
1492 case $ac_var in #(
1493 _ | IFS | as_nl) ;; #(
1494 *) $as_unset $ac_var ;;
1495 esac ;;
1496 esac
1497 done
1498 (set) 2>&1 |
1499 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1500 *${as_nl}ac_space=\ *)
1501 sed -n \
1502 "s/'\''/'\''\\\\'\'''\''/g;
1503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1504 ;; #(
1506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1508 esac |
1509 sort
1511 echo
1513 cat <<\_ASBOX
1514 ## ----------------- ##
1515 ## Output variables. ##
1516 ## ----------------- ##
1517 _ASBOX
1518 echo
1519 for ac_var in $ac_subst_vars
1521 eval ac_val=\$$ac_var
1522 case $ac_val in
1523 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1524 esac
1525 echo "$ac_var='\''$ac_val'\''"
1526 done | sort
1527 echo
1529 if test -n "$ac_subst_files"; then
1530 cat <<\_ASBOX
1531 ## ------------------- ##
1532 ## File substitutions. ##
1533 ## ------------------- ##
1534 _ASBOX
1535 echo
1536 for ac_var in $ac_subst_files
1538 eval ac_val=\$$ac_var
1539 case $ac_val in
1540 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1541 esac
1542 echo "$ac_var='\''$ac_val'\''"
1543 done | sort
1544 echo
1547 if test -s confdefs.h; then
1548 cat <<\_ASBOX
1549 ## ----------- ##
1550 ## confdefs.h. ##
1551 ## ----------- ##
1552 _ASBOX
1553 echo
1554 cat confdefs.h
1555 echo
1557 test "$ac_signal" != 0 &&
1558 echo "$as_me: caught signal $ac_signal"
1559 echo "$as_me: exit $exit_status"
1560 } >&5
1561 rm -f core *.core core.conftest.* &&
1562 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1563 exit $exit_status
1565 for ac_signal in 1 2 13 15; do
1566 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1567 done
1568 ac_signal=0
1570 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1571 rm -f -r conftest* confdefs.h
1573 # Predefined preprocessor variables.
1575 cat >>confdefs.h <<_ACEOF
1576 #define PACKAGE_NAME "$PACKAGE_NAME"
1577 _ACEOF
1580 cat >>confdefs.h <<_ACEOF
1581 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1582 _ACEOF
1585 cat >>confdefs.h <<_ACEOF
1586 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1587 _ACEOF
1590 cat >>confdefs.h <<_ACEOF
1591 #define PACKAGE_STRING "$PACKAGE_STRING"
1592 _ACEOF
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1597 _ACEOF
1600 # Let the site file select an alternate cache file if it wants to.
1601 # Prefer explicitly selected file to automatically selected ones.
1602 if test -n "$CONFIG_SITE"; then
1603 set x "$CONFIG_SITE"
1604 elif test "x$prefix" != xNONE; then
1605 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1606 else
1607 set x "$ac_default_prefix/share/config.site" \
1608 "$ac_default_prefix/etc/config.site"
1610 shift
1611 for ac_site_file
1613 if test -r "$ac_site_file"; then
1614 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1615 echo "$as_me: loading site script $ac_site_file" >&6;}
1616 sed 's/^/| /' "$ac_site_file" >&5
1617 . "$ac_site_file"
1619 done
1621 if test -r "$cache_file"; then
1622 # Some versions of bash will fail to source /dev/null (special
1623 # files actually), so we avoid doing that.
1624 if test -f "$cache_file"; then
1625 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1626 echo "$as_me: loading cache $cache_file" >&6;}
1627 case $cache_file in
1628 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1629 *) . "./$cache_file";;
1630 esac
1632 else
1633 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1634 echo "$as_me: creating cache $cache_file" >&6;}
1635 >$cache_file
1638 # Check that the precious variables saved in the cache have kept the same
1639 # value.
1640 ac_cache_corrupted=false
1641 for ac_var in $ac_precious_vars; do
1642 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1643 eval ac_new_set=\$ac_env_${ac_var}_set
1644 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1645 eval ac_new_val=\$ac_env_${ac_var}_value
1646 case $ac_old_set,$ac_new_set in
1647 set,)
1648 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1649 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1650 ac_cache_corrupted=: ;;
1651 ,set)
1652 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1653 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1654 ac_cache_corrupted=: ;;
1655 ,);;
1657 if test "x$ac_old_val" != "x$ac_new_val"; then
1658 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1659 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1660 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1661 echo "$as_me: former value: $ac_old_val" >&2;}
1662 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1663 echo "$as_me: current value: $ac_new_val" >&2;}
1664 ac_cache_corrupted=:
1665 fi;;
1666 esac
1667 # Pass precious variables to config.status.
1668 if test "$ac_new_set" = set; then
1669 case $ac_new_val in
1670 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1671 *) ac_arg=$ac_var=$ac_new_val ;;
1672 esac
1673 case " $ac_configure_args " in
1674 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1675 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1676 esac
1678 done
1679 if $ac_cache_corrupted; then
1680 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1681 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1682 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1683 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1684 { (exit 1); exit 1; }; }
1711 ac_ext=c
1712 ac_cpp='$CPP $CPPFLAGS'
1713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1719 ac_aux_dir=
1720 for ac_dir in .. "$srcdir"/..; do
1721 if test -f "$ac_dir/install-sh"; then
1722 ac_aux_dir=$ac_dir
1723 ac_install_sh="$ac_aux_dir/install-sh -c"
1724 break
1725 elif test -f "$ac_dir/install.sh"; then
1726 ac_aux_dir=$ac_dir
1727 ac_install_sh="$ac_aux_dir/install.sh -c"
1728 break
1729 elif test -f "$ac_dir/shtool"; then
1730 ac_aux_dir=$ac_dir
1731 ac_install_sh="$ac_aux_dir/shtool install -c"
1732 break
1734 done
1735 if test -z "$ac_aux_dir"; then
1736 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. \"$srcdir\"/.." >&5
1737 echo "$as_me: error: cannot find install-sh or install.sh in .. \"$srcdir\"/.." >&2;}
1738 { (exit 1); exit 1; }; }
1741 # These three variables are undocumented and unsupported,
1742 # and are intended to be withdrawn in a future Autoconf release.
1743 # They can cause serious problems if a builder's source tree is in a directory
1744 # whose full name contains unusual characters.
1745 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1746 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1747 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1750 # Make sure we can run config.sub.
1751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1752 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1753 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1754 { (exit 1); exit 1; }; }
1756 { echo "$as_me:$LINENO: checking build system type" >&5
1757 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1758 if test "${ac_cv_build+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761 ac_build_alias=$build_alias
1762 test "x$ac_build_alias" = x &&
1763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1764 test "x$ac_build_alias" = x &&
1765 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1766 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1767 { (exit 1); exit 1; }; }
1768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1769 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1770 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1771 { (exit 1); exit 1; }; }
1774 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1775 echo "${ECHO_T}$ac_cv_build" >&6; }
1776 case $ac_cv_build in
1777 *-*-*) ;;
1778 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1779 echo "$as_me: error: invalid value of canonical build" >&2;}
1780 { (exit 1); exit 1; }; };;
1781 esac
1782 build=$ac_cv_build
1783 ac_save_IFS=$IFS; IFS='-'
1784 set x $ac_cv_build
1785 shift
1786 build_cpu=$1
1787 build_vendor=$2
1788 shift; shift
1789 # Remember, the first character of IFS is used to create $*,
1790 # except with old shells:
1791 build_os=$*
1792 IFS=$ac_save_IFS
1793 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1796 { echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1798 if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 if test "x$host_alias" = x; then
1802 ac_cv_host=$ac_cv_build
1803 else
1804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1811 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1812 echo "${ECHO_T}$ac_cv_host" >&6; }
1813 case $ac_cv_host in
1814 *-*-*) ;;
1815 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1816 echo "$as_me: error: invalid value of canonical host" >&2;}
1817 { (exit 1); exit 1; }; };;
1818 esac
1819 host=$ac_cv_host
1820 ac_save_IFS=$IFS; IFS='-'
1821 set x $ac_cv_host
1822 shift
1823 host_cpu=$1
1824 host_vendor=$2
1825 shift; shift
1826 # Remember, the first character of IFS is used to create $*,
1827 # except with old shells:
1828 host_os=$*
1829 IFS=$ac_save_IFS
1830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1833 { echo "$as_me:$LINENO: checking target system type" >&5
1834 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1835 if test "${ac_cv_target+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 if test "x$target_alias" = x; then
1839 ac_cv_target=$ac_cv_host
1840 else
1841 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1842 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1843 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1844 { (exit 1); exit 1; }; }
1848 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1849 echo "${ECHO_T}$ac_cv_target" >&6; }
1850 case $ac_cv_target in
1851 *-*-*) ;;
1852 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1853 echo "$as_me: error: invalid value of canonical target" >&2;}
1854 { (exit 1); exit 1; }; };;
1855 esac
1856 target=$ac_cv_target
1857 ac_save_IFS=$IFS; IFS='-'
1858 set x $ac_cv_target
1859 shift
1860 target_cpu=$1
1861 target_vendor=$2
1862 shift; shift
1863 # Remember, the first character of IFS is used to create $*,
1864 # except with old shells:
1865 target_os=$*
1866 IFS=$ac_save_IFS
1867 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1870 # The aliases save the names the user supplied, while $host etc.
1871 # will get canonicalized.
1872 test -n "$target_alias" &&
1873 test "$program_prefix$program_suffix$program_transform_name" = \
1874 NONENONEs,x,x, &&
1875 program_prefix=${target_alias}-
1876 ac_ext=c
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1886 if test "${ac_cv_prog_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 break 2
1903 done
1904 done
1905 IFS=$as_save_IFS
1909 CC=$ac_cv_prog_CC
1910 if test -n "$CC"; then
1911 { echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6; }
1913 else
1914 { echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6; }
1920 if test -z "$ac_cv_prog_CC"; then
1921 ac_ct_CC=$CC
1922 # Extract the first word of "gcc", so it can be a program name with args.
1923 set dummy gcc; ac_word=$2
1924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 if test -n "$ac_ct_CC"; then
1930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1939 ac_cv_prog_ac_ct_CC="gcc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1943 done
1944 done
1945 IFS=$as_save_IFS
1949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1950 if test -n "$ac_ct_CC"; then
1951 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1952 echo "${ECHO_T}$ac_ct_CC" >&6; }
1953 else
1954 { echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6; }
1958 if test "x$ac_ct_CC" = x; then
1959 CC=""
1960 else
1961 case $cross_compiling:$ac_tool_warned in
1962 yes:)
1963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1964 whose name does not start with the host triplet. If you think this
1965 configuration is useful to you, please write to autoconf@gnu.org." >&5
1966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1967 whose name does not start with the host triplet. If you think this
1968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1969 ac_tool_warned=yes ;;
1970 esac
1971 CC=$ac_ct_CC
1973 else
1974 CC="$ac_cv_prog_CC"
1977 if test -z "$CC"; then
1978 if test -n "$ac_tool_prefix"; then
1979 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1980 set dummy ${ac_tool_prefix}cc; ac_word=$2
1981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1983 if test "${ac_cv_prog_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 if test -n "$CC"; then
1987 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 else
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1996 ac_cv_prog_CC="${ac_tool_prefix}cc"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 break 2
2000 done
2001 done
2002 IFS=$as_save_IFS
2006 CC=$ac_cv_prog_CC
2007 if test -n "$CC"; then
2008 { echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6; }
2010 else
2011 { echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6; }
2018 if test -z "$CC"; then
2019 # Extract the first word of "cc", so it can be a program name with args.
2020 set dummy cc; ac_word=$2
2021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023 if test "${ac_cv_prog_CC+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 if test -n "$CC"; then
2027 ac_cv_prog_CC="$CC" # Let the user override the test.
2028 else
2029 ac_prog_rejected=no
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2037 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2038 ac_prog_rejected=yes
2039 continue
2041 ac_cv_prog_CC="cc"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2045 done
2046 done
2047 IFS=$as_save_IFS
2049 if test $ac_prog_rejected = yes; then
2050 # We found a bogon in the path, so make sure we never use it.
2051 set dummy $ac_cv_prog_CC
2052 shift
2053 if test $# != 0; then
2054 # We chose a different compiler from the bogus one.
2055 # However, it has the same basename, so the bogon will be chosen
2056 # first if we set CC to just the basename; use the full file name.
2057 shift
2058 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2063 CC=$ac_cv_prog_CC
2064 if test -n "$CC"; then
2065 { echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6; }
2067 else
2068 { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2074 if test -z "$CC"; then
2075 if test -n "$ac_tool_prefix"; then
2076 for ac_prog in cl.exe
2078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2082 if test "${ac_cv_prog_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2095 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 break 2
2099 done
2100 done
2101 IFS=$as_save_IFS
2105 CC=$ac_cv_prog_CC
2106 if test -n "$CC"; then
2107 { echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6; }
2109 else
2110 { echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6; }
2115 test -n "$CC" && break
2116 done
2118 if test -z "$CC"; then
2119 ac_ct_CC=$CC
2120 for ac_prog in cl.exe
2122 # Extract the first word of "$ac_prog", so it can be a program name with args.
2123 set dummy $ac_prog; ac_word=$2
2124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129 if test -n "$ac_ct_CC"; then
2130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2139 ac_cv_prog_ac_ct_CC="$ac_prog"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 break 2
2143 done
2144 done
2145 IFS=$as_save_IFS
2149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2150 if test -n "$ac_ct_CC"; then
2151 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2152 echo "${ECHO_T}$ac_ct_CC" >&6; }
2153 else
2154 { echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6; }
2159 test -n "$ac_ct_CC" && break
2160 done
2162 if test "x$ac_ct_CC" = x; then
2163 CC=""
2164 else
2165 case $cross_compiling:$ac_tool_warned in
2166 yes:)
2167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2168 whose name does not start with the host triplet. If you think this
2169 configuration is useful to you, please write to autoconf@gnu.org." >&5
2170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2171 whose name does not start with the host triplet. If you think this
2172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2173 ac_tool_warned=yes ;;
2174 esac
2175 CC=$ac_ct_CC
2182 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: no acceptable C compiler found in \$PATH
2185 See \`config.log' for more details." >&2;}
2186 { (exit 1); exit 1; }; }
2188 # Provide some information about the compiler.
2189 echo "$as_me:$LINENO: checking for C compiler version" >&5
2190 ac_compiler=`set X $ac_compile; echo $2`
2191 { (ac_try="$ac_compiler --version >&5"
2192 case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195 esac
2196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2197 (eval "$ac_compiler --version >&5") 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }
2201 { (ac_try="$ac_compiler -v >&5"
2202 case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2205 esac
2206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2207 (eval "$ac_compiler -v >&5") 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2211 { (ac_try="$ac_compiler -V >&5"
2212 case "(($ac_try" in
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2215 esac
2216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2217 (eval "$ac_compiler -V >&5") 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }
2222 cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2230 main ()
2234 return 0;
2236 _ACEOF
2237 ac_clean_files_save=$ac_clean_files
2238 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2239 # Try to create an executable without -o first, disregard a.out.
2240 # It will help us diagnose broken compilers, and finding out an intuition
2241 # of exeext.
2242 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2243 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2244 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2246 # List of possible output files, starting from the most likely.
2247 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2248 # only as a last resort. b.out is created by i960 compilers.
2249 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2251 # The IRIX 6 linker writes into existing files which may not be
2252 # executable, retaining their permissions. Remove them first so a
2253 # subsequent execution test works.
2254 ac_rmfiles=
2255 for ac_file in $ac_files
2257 case $ac_file in
2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2260 esac
2261 done
2262 rm -f $ac_rmfiles
2264 if { (ac_try="$ac_link_default"
2265 case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268 esac
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270 (eval "$ac_link_default") 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2275 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2276 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2277 # so that the user can short-circuit this test for compilers unknown to
2278 # Autoconf.
2279 for ac_file in $ac_files ''
2281 test -f "$ac_file" || continue
2282 case $ac_file in
2283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2285 [ab].out )
2286 # We found the default executable, but exeext='' is most
2287 # certainly right.
2288 break;;
2289 *.* )
2290 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2291 then :; else
2292 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294 # We set ac_cv_exeext here because the later test for it is not
2295 # safe: cross compilers may not add the suffix if given an `-o'
2296 # argument, so we may need to know it at that point already.
2297 # Even if this section looks crufty: it has the advantage of
2298 # actually working.
2299 break;;
2301 break;;
2302 esac
2303 done
2304 test "$ac_cv_exeext" = no && ac_cv_exeext=
2306 else
2307 ac_file=''
2310 { echo "$as_me:$LINENO: result: $ac_file" >&5
2311 echo "${ECHO_T}$ac_file" >&6; }
2312 if test -z "$ac_file"; then
2313 echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2316 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: C compiler cannot create executables
2319 See \`config.log' for more details." >&2;}
2320 { (exit 77); exit 77; }; }
2323 ac_exeext=$ac_cv_exeext
2325 # Check that the compiler produces executables we can run. If not, either
2326 # the compiler is broken, or we cross compile.
2327 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2328 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2329 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2330 # If not cross compiling, check that we can run a simple program.
2331 if test "$cross_compiling" != yes; then
2332 if { ac_try='./$ac_file'
2333 { (case "(($ac_try" in
2334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335 *) ac_try_echo=$ac_try;;
2336 esac
2337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2338 (eval "$ac_try") 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2342 cross_compiling=no
2343 else
2344 if test "$cross_compiling" = maybe; then
2345 cross_compiling=yes
2346 else
2347 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2348 If you meant to cross compile, use \`--host'.
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot run C compiled programs.
2351 If you meant to cross compile, use \`--host'.
2352 See \`config.log' for more details." >&2;}
2353 { (exit 1); exit 1; }; }
2357 { echo "$as_me:$LINENO: result: yes" >&5
2358 echo "${ECHO_T}yes" >&6; }
2360 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2361 ac_clean_files=$ac_clean_files_save
2362 # Check that the compiler produces executables we can run. If not, either
2363 # the compiler is broken, or we cross compile.
2364 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2365 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2366 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2367 echo "${ECHO_T}$cross_compiling" >&6; }
2369 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2370 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2371 if { (ac_try="$ac_link"
2372 case "(($ac_try" in
2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374 *) ac_try_echo=$ac_try;;
2375 esac
2376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2377 (eval "$ac_link") 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; then
2381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2383 # work properly (i.e., refer to `conftest.exe'), while it won't with
2384 # `rm'.
2385 for ac_file in conftest.exe conftest conftest.*; do
2386 test -f "$ac_file" || continue
2387 case $ac_file in
2388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2390 break;;
2391 * ) break;;
2392 esac
2393 done
2394 else
2395 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2398 See \`config.log' for more details." >&2;}
2399 { (exit 1); exit 1; }; }
2402 rm -f conftest$ac_cv_exeext
2403 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2404 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2406 rm -f conftest.$ac_ext
2407 EXEEXT=$ac_cv_exeext
2408 ac_exeext=$EXEEXT
2409 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2410 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2411 if test "${ac_cv_objext+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414 cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h. */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2422 main ()
2426 return 0;
2428 _ACEOF
2429 rm -f conftest.o conftest.obj
2430 if { (ac_try="$ac_compile"
2431 case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434 esac
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_compile") 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; then
2440 for ac_file in conftest.o conftest.obj conftest.*; do
2441 test -f "$ac_file" || continue;
2442 case $ac_file in
2443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2445 break;;
2446 esac
2447 done
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2452 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2453 See \`config.log' for more details." >&5
2454 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2455 See \`config.log' for more details." >&2;}
2456 { (exit 1); exit 1; }; }
2459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2461 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2462 echo "${ECHO_T}$ac_cv_objext" >&6; }
2463 OBJEXT=$ac_cv_objext
2464 ac_objext=$OBJEXT
2465 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2466 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2467 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2478 main ()
2480 #ifndef __GNUC__
2481 choke me
2482 #endif
2485 return 0;
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (ac_try="$ac_compile"
2490 case "(($ac_try" in
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2493 esac
2494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2495 (eval "$ac_compile") 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } && {
2502 test -z "$ac_c_werror_flag" ||
2503 test ! -s conftest.err
2504 } && test -s conftest.$ac_objext; then
2505 ac_compiler_gnu=yes
2506 else
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2510 ac_compiler_gnu=no
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2519 GCC=`test $ac_compiler_gnu = yes && echo yes`
2520 ac_test_CFLAGS=${CFLAGS+set}
2521 ac_save_CFLAGS=$CFLAGS
2522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_cc_g+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 ac_save_c_werror_flag=$ac_c_werror_flag
2528 ac_c_werror_flag=yes
2529 ac_cv_prog_cc_g=no
2530 CFLAGS="-g"
2531 cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h. */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2539 main ()
2543 return 0;
2545 _ACEOF
2546 rm -f conftest.$ac_objext
2547 if { (ac_try="$ac_compile"
2548 case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551 esac
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_compile") 2>conftest.er1
2554 ac_status=$?
2555 grep -v '^ *+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } && {
2560 test -z "$ac_c_werror_flag" ||
2561 test ! -s conftest.err
2562 } && test -s conftest.$ac_objext; then
2563 ac_cv_prog_cc_g=yes
2564 else
2565 echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2568 CFLAGS=""
2569 cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h. */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2577 main ()
2581 return 0;
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (ac_try="$ac_compile"
2586 case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_compile") 2>conftest.er1
2592 ac_status=$?
2593 grep -v '^ *+' conftest.er1 >conftest.err
2594 rm -f conftest.er1
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } && {
2598 test -z "$ac_c_werror_flag" ||
2599 test ! -s conftest.err
2600 } && test -s conftest.$ac_objext; then
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2606 ac_c_werror_flag=$ac_save_c_werror_flag
2607 CFLAGS="-g"
2608 cat >conftest.$ac_ext <<_ACEOF
2609 /* confdefs.h. */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2616 main ()
2620 return 0;
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (ac_try="$ac_compile"
2625 case "(($ac_try" in
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2628 esac
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630 (eval "$ac_compile") 2>conftest.er1
2631 ac_status=$?
2632 grep -v '^ *+' conftest.er1 >conftest.err
2633 rm -f conftest.er1
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } && {
2637 test -z "$ac_c_werror_flag" ||
2638 test ! -s conftest.err
2639 } && test -s conftest.$ac_objext; then
2640 ac_cv_prog_cc_g=yes
2641 else
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 ac_c_werror_flag=$ac_save_c_werror_flag
2657 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2658 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2659 if test "$ac_test_CFLAGS" = set; then
2660 CFLAGS=$ac_save_CFLAGS
2661 elif test $ac_cv_prog_cc_g = yes; then
2662 if test "$GCC" = yes; then
2663 CFLAGS="-g -O2"
2664 else
2665 CFLAGS="-g"
2667 else
2668 if test "$GCC" = yes; then
2669 CFLAGS="-O2"
2670 else
2671 CFLAGS=
2674 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2675 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2676 if test "${ac_cv_prog_cc_c89+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679 ac_cv_prog_cc_c89=no
2680 ac_save_CC=$CC
2681 cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h. */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2687 #include <stdarg.h>
2688 #include <stdio.h>
2689 #include <sys/types.h>
2690 #include <sys/stat.h>
2691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2692 struct buf { int x; };
2693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2694 static char *e (p, i)
2695 char **p;
2696 int i;
2698 return p[i];
2700 static char *f (char * (*g) (char **, int), char **p, ...)
2702 char *s;
2703 va_list v;
2704 va_start (v,p);
2705 s = g (p, va_arg (v,int));
2706 va_end (v);
2707 return s;
2710 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2711 function prototypes and stuff, but not '\xHH' hex character constants.
2712 These don't provoke an error unfortunately, instead are silently treated
2713 as 'x'. The following induces an error, until -std is added to get
2714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2715 array size at least. It's necessary to write '\x00'==0 to get something
2716 that's true only with -std. */
2717 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2719 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2720 inside strings and character constants. */
2721 #define FOO(x) 'x'
2722 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2724 int test (int i, double x);
2725 struct s1 {int (*f) (int a);};
2726 struct s2 {int (*f) (double a);};
2727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2728 int argc;
2729 char **argv;
2731 main ()
2733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2735 return 0;
2737 _ACEOF
2738 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2739 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2741 CC="$ac_save_CC $ac_arg"
2742 rm -f conftest.$ac_objext
2743 if { (ac_try="$ac_compile"
2744 case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compile") 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } && {
2756 test -z "$ac_c_werror_flag" ||
2757 test ! -s conftest.err
2758 } && test -s conftest.$ac_objext; then
2759 ac_cv_prog_cc_c89=$ac_arg
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f core conftest.err conftest.$ac_objext
2768 test "x$ac_cv_prog_cc_c89" != "xno" && break
2769 done
2770 rm -f conftest.$ac_ext
2771 CC=$ac_save_CC
2774 # AC_CACHE_VAL
2775 case "x$ac_cv_prog_cc_c89" in
2777 { echo "$as_me:$LINENO: result: none needed" >&5
2778 echo "${ECHO_T}none needed" >&6; } ;;
2779 xno)
2780 { echo "$as_me:$LINENO: result: unsupported" >&5
2781 echo "${ECHO_T}unsupported" >&6; } ;;
2783 CC="$CC $ac_cv_prog_cc_c89"
2784 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2785 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2786 esac
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 # Figure out what compiler warnings we can enable.
2797 # See config/warnings.m4 for details.
2800 WARN_CFLAGS=
2801 save_CFLAGS="$CFLAGS"
2802 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2803 -Wmissing-prototypes -Wold-style-definition \
2804 -Wmissing-format-attribute -Wno-overlength-strings; do
2805 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2807 { echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2808 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6; }
2809 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812 CFLAGS="$option"
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h. */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2821 main ()
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (ac_try="$ac_compile"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_compile") 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } && {
2842 test -z "$ac_c_werror_flag" ||
2843 test ! -s conftest.err
2844 } && test -s conftest.$ac_objext; then
2845 eval "$as_acx_Woption=yes"
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 eval "$as_acx_Woption=no"
2853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856 ac_res=`eval echo '${'$as_acx_Woption'}'`
2857 { echo "$as_me:$LINENO: result: $ac_res" >&5
2858 echo "${ECHO_T}$ac_res" >&6; }
2859 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2860 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2863 done
2864 CFLAGS="$save_CFLAGS"
2866 WARN_PEDANTIC=
2867 if test "$GCC" = yes; then
2868 { echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2869 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6; }
2870 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873 save_CFLAGS="$CFLAGS"
2874 CFLAGS="-pedantic -Wno-long-long"
2875 cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h. */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2883 main ()
2887 return 0;
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (ac_try="$ac_compile"
2892 case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compile") 2>conftest.er1
2898 ac_status=$?
2899 grep -v '^ *+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } && {
2904 test -z "$ac_c_werror_flag" ||
2905 test ! -s conftest.err
2906 } && test -s conftest.$ac_objext; then
2907 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2908 else
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 acx_cv_prog_cc_pedantic__Wno_long_long=no
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916 CFLAGS="$save_CFLAGS"
2918 { echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2919 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6; }
2920 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2921 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
2929 # Only enable with --enable-werror-always until existing warnings are
2930 # corrected.
2931 WERROR=
2932 # Check whether --enable-werror-always was given.
2933 if test "${enable_werror_always+set}" = set; then
2934 enableval=$enable_werror_always;
2935 else
2936 enable_werror_always=no
2939 if test $enable_werror_always = yes; then
2940 WERROR="$WERROR${WERROR:+ }-Werror"
2946 # Determine the noncanonical target name, for directory use.
2947 case ${build_alias} in
2948 "") build_noncanonical=${build} ;;
2949 *) build_noncanonical=${build_alias} ;;
2950 esac
2952 case ${host_alias} in
2953 "") host_noncanonical=${build_noncanonical} ;;
2954 *) host_noncanonical=${host_alias} ;;
2955 esac
2957 case ${target_alias} in
2958 "") target_noncanonical=${host_noncanonical} ;;
2959 *) target_noncanonical=${target_alias} ;;
2960 esac
2965 # Specify the local prefix
2966 local_prefix=
2968 # Check whether --with-local-prefix was given.
2969 if test "${with_local_prefix+set}" = set; then
2970 withval=$with_local_prefix; case "${withval}" in
2971 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2972 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2973 { (exit 1); exit 1; }; } ;;
2974 no) ;;
2975 *) local_prefix=$with_local_prefix ;;
2976 esac
2980 # Default local prefix if it is empty
2981 if test x$local_prefix = x; then
2982 local_prefix=/usr/local
2985 # Choose one or two-process fix methodology. Systems that cannot handle
2986 # bi-directional pipes must use the two process method.
2988 # Check whether --enable-twoprocess was given.
2989 if test "${enable_twoprocess+set}" = set; then
2990 enableval=$enable_twoprocess; if test "x$enable_twoprocess" = xyes; then
2991 TARGET=twoprocess
2992 else
2993 TARGET=oneprocess
2995 else
2996 case $host in
2997 i?86-*-msdosdjgpp* | \
2998 i?86-*-mingw32* | \
2999 x86_64-*-mingw32* | \
3000 *-*-beos* )
3001 TARGET=twoprocess
3005 TARGET=oneprocess
3007 esac
3012 if test $TARGET = twoprocess; then
3014 cat >>confdefs.h <<\_ACEOF
3015 #define SEPARATE_FIX_PROC 1
3016 _ACEOF
3020 case $host in
3021 vax-dec-bsd* )
3023 cat >>confdefs.h <<\_ACEOF
3024 #define exit xexit
3025 _ACEOF
3028 cat >>confdefs.h <<\_ACEOF
3029 #define atexit xatexit
3030 _ACEOF
3033 esac
3036 cat >>confdefs.h <<_ACEOF
3037 #define EXE_EXT "$ac_exeext"
3038 _ACEOF
3041 # Checks for header files.
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3048 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3049 # On Suns, sometimes $CPP names a directory.
3050 if test -n "$CPP" && test -d "$CPP"; then
3051 CPP=
3053 if test -z "$CPP"; then
3054 if test "${ac_cv_prog_CPP+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057 # Double quotes because CPP needs to be expanded
3058 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3060 ac_preproc_ok=false
3061 for ac_c_preproc_warn_flag in '' yes
3063 # Use a header file that comes with gcc, so configuring glibc
3064 # with a fresh cross-compiler works.
3065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3066 # <limits.h> exists even on freestanding compilers.
3067 # On the NeXT, cc -E runs the code through the compiler's parser,
3068 # not just through cpp. "Syntax error" is here to catch this case.
3069 cat >conftest.$ac_ext <<_ACEOF
3070 /* confdefs.h. */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3075 #ifdef __STDC__
3076 # include <limits.h>
3077 #else
3078 # include <assert.h>
3079 #endif
3080 Syntax error
3081 _ACEOF
3082 if { (ac_try="$ac_cpp conftest.$ac_ext"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } >/dev/null && {
3095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 }; then
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Broken: fails on valid input.
3104 continue
3107 rm -f conftest.err conftest.$ac_ext
3109 # OK, works on sane cases. Now check whether nonexistent headers
3110 # can be detected and how.
3111 cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h. */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3117 #include <ac_nonexistent.h>
3118 _ACEOF
3119 if { (ac_try="$ac_cpp conftest.$ac_ext"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } >/dev/null && {
3132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3133 test ! -s conftest.err
3134 }; then
3135 # Broken: success on invalid input.
3136 continue
3137 else
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141 # Passes both tests.
3142 ac_preproc_ok=:
3143 break
3146 rm -f conftest.err conftest.$ac_ext
3148 done
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3152 break
3155 done
3156 ac_cv_prog_CPP=$CPP
3159 CPP=$ac_cv_prog_CPP
3160 else
3161 ac_cv_prog_CPP=$CPP
3163 { echo "$as_me:$LINENO: result: $CPP" >&5
3164 echo "${ECHO_T}$CPP" >&6; }
3165 ac_preproc_ok=false
3166 for ac_c_preproc_warn_flag in '' yes
3168 # Use a header file that comes with gcc, so configuring glibc
3169 # with a fresh cross-compiler works.
3170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3171 # <limits.h> exists even on freestanding compilers.
3172 # On the NeXT, cc -E runs the code through the compiler's parser,
3173 # not just through cpp. "Syntax error" is here to catch this case.
3174 cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h. */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3180 #ifdef __STDC__
3181 # include <limits.h>
3182 #else
3183 # include <assert.h>
3184 #endif
3185 Syntax error
3186 _ACEOF
3187 if { (ac_try="$ac_cpp conftest.$ac_ext"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } >/dev/null && {
3200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3201 test ! -s conftest.err
3202 }; then
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 # Broken: fails on valid input.
3209 continue
3212 rm -f conftest.err conftest.$ac_ext
3214 # OK, works on sane cases. Now check whether nonexistent headers
3215 # can be detected and how.
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3222 #include <ac_nonexistent.h>
3223 _ACEOF
3224 if { (ac_try="$ac_cpp conftest.$ac_ext"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } >/dev/null && {
3237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 }; then
3240 # Broken: success on invalid input.
3241 continue
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 # Passes both tests.
3247 ac_preproc_ok=:
3248 break
3251 rm -f conftest.err conftest.$ac_ext
3253 done
3254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3255 rm -f conftest.err conftest.$ac_ext
3256 if $ac_preproc_ok; then
3258 else
3259 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3260 See \`config.log' for more details." >&5
3261 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3262 See \`config.log' for more details." >&2;}
3263 { (exit 1); exit 1; }; }
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3274 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3275 if test "${ac_cv_path_GREP+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 # Extract the first word of "grep ggrep" to use in msg output
3279 if test -z "$GREP"; then
3280 set dummy grep ggrep; ac_prog_name=$2
3281 if test "${ac_cv_path_GREP+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 ac_path_GREP_found=false
3285 # Loop through the user's path and test for each of PROGNAME-LIST
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_prog in grep ggrep; do
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3294 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3295 # Check for GNU ac_path_GREP and select it if it is found.
3296 # Check for GNU $ac_path_GREP
3297 case `"$ac_path_GREP" --version 2>&1` in
3298 *GNU*)
3299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3301 ac_count=0
3302 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3303 while :
3305 cat "conftest.in" "conftest.in" >"conftest.tmp"
3306 mv "conftest.tmp" "conftest.in"
3307 cp "conftest.in" "conftest.nl"
3308 echo 'GREP' >> "conftest.nl"
3309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3311 ac_count=`expr $ac_count + 1`
3312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3313 # Best one so far, save it but keep looking for a better one
3314 ac_cv_path_GREP="$ac_path_GREP"
3315 ac_path_GREP_max=$ac_count
3317 # 10*(2^10) chars as input seems more than enough
3318 test $ac_count -gt 10 && break
3319 done
3320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3321 esac
3324 $ac_path_GREP_found && break 3
3325 done
3326 done
3328 done
3329 IFS=$as_save_IFS
3334 GREP="$ac_cv_path_GREP"
3335 if test -z "$GREP"; then
3336 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3337 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3338 { (exit 1); exit 1; }; }
3341 else
3342 ac_cv_path_GREP=$GREP
3347 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3348 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3349 GREP="$ac_cv_path_GREP"
3352 { echo "$as_me:$LINENO: checking for egrep" >&5
3353 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3354 if test "${ac_cv_path_EGREP+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3358 then ac_cv_path_EGREP="$GREP -E"
3359 else
3360 # Extract the first word of "egrep" to use in msg output
3361 if test -z "$EGREP"; then
3362 set dummy egrep; ac_prog_name=$2
3363 if test "${ac_cv_path_EGREP+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 ac_path_EGREP_found=false
3367 # Loop through the user's path and test for each of PROGNAME-LIST
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_prog in egrep; do
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3376 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3377 # Check for GNU ac_path_EGREP and select it if it is found.
3378 # Check for GNU $ac_path_EGREP
3379 case `"$ac_path_EGREP" --version 2>&1` in
3380 *GNU*)
3381 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3383 ac_count=0
3384 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3385 while :
3387 cat "conftest.in" "conftest.in" >"conftest.tmp"
3388 mv "conftest.tmp" "conftest.in"
3389 cp "conftest.in" "conftest.nl"
3390 echo 'EGREP' >> "conftest.nl"
3391 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3393 ac_count=`expr $ac_count + 1`
3394 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3395 # Best one so far, save it but keep looking for a better one
3396 ac_cv_path_EGREP="$ac_path_EGREP"
3397 ac_path_EGREP_max=$ac_count
3399 # 10*(2^10) chars as input seems more than enough
3400 test $ac_count -gt 10 && break
3401 done
3402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3403 esac
3406 $ac_path_EGREP_found && break 3
3407 done
3408 done
3410 done
3411 IFS=$as_save_IFS
3416 EGREP="$ac_cv_path_EGREP"
3417 if test -z "$EGREP"; then
3418 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3419 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3420 { (exit 1); exit 1; }; }
3423 else
3424 ac_cv_path_EGREP=$EGREP
3430 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3431 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3432 EGREP="$ac_cv_path_EGREP"
3435 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3436 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3437 if test "${ac_cv_header_stdc+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h. */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 #include <stdlib.h>
3447 #include <stdarg.h>
3448 #include <string.h>
3449 #include <float.h>
3452 main ()
3456 return 0;
3458 _ACEOF
3459 rm -f conftest.$ac_objext
3460 if { (ac_try="$ac_compile"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_compile") 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } && {
3473 test -z "$ac_c_werror_flag" ||
3474 test ! -s conftest.err
3475 } && test -s conftest.$ac_objext; then
3476 ac_cv_header_stdc=yes
3477 else
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 ac_cv_header_stdc=no
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 if test $ac_cv_header_stdc = yes; then
3487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 #include <string.h>
3496 _ACEOF
3497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3498 $EGREP "memchr" >/dev/null 2>&1; then
3500 else
3501 ac_cv_header_stdc=no
3503 rm -f conftest*
3507 if test $ac_cv_header_stdc = yes; then
3508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 #include <stdlib.h>
3517 _ACEOF
3518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3519 $EGREP "free" >/dev/null 2>&1; then
3521 else
3522 ac_cv_header_stdc=no
3524 rm -f conftest*
3528 if test $ac_cv_header_stdc = yes; then
3529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3530 if test "$cross_compiling" = yes; then
3532 else
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #include <ctype.h>
3540 #include <stdlib.h>
3541 #if ((' ' & 0x0FF) == 0x020)
3542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3544 #else
3545 # define ISLOWER(c) \
3546 (('a' <= (c) && (c) <= 'i') \
3547 || ('j' <= (c) && (c) <= 'r') \
3548 || ('s' <= (c) && (c) <= 'z'))
3549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3550 #endif
3552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3554 main ()
3556 int i;
3557 for (i = 0; i < 256; i++)
3558 if (XOR (islower (i), ISLOWER (i))
3559 || toupper (i) != TOUPPER (i))
3560 return 2;
3561 return 0;
3563 _ACEOF
3564 rm -f conftest$ac_exeext
3565 if { (ac_try="$ac_link"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_link") 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3575 { (case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_try") 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3585 else
3586 echo "$as_me: program exited with status $ac_status" >&5
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 ( exit $ac_status )
3591 ac_cv_header_stdc=no
3593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3599 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3600 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3601 if test $ac_cv_header_stdc = yes; then
3603 cat >>confdefs.h <<\_ACEOF
3604 #define STDC_HEADERS 1
3605 _ACEOF
3609 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3619 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3620 inttypes.h stdint.h unistd.h
3622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 $ac_includes_default
3636 #include <$ac_header>
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3645 (eval "$ac_compile") 2>conftest.er1
3646 ac_status=$?
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } && {
3652 test -z "$ac_c_werror_flag" ||
3653 test ! -s conftest.err
3654 } && test -s conftest.$ac_objext; then
3655 eval "$as_ac_Header=yes"
3656 else
3657 echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 eval "$as_ac_Header=no"
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_res=`eval echo '${'$as_ac_Header'}'`
3666 { echo "$as_me:$LINENO: result: $ac_res" >&5
3667 echo "${ECHO_T}$ac_res" >&6; }
3668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3669 cat >>confdefs.h <<_ACEOF
3670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3671 _ACEOF
3675 done
3685 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
3686 sys/stat.h
3688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 ac_res=`eval echo '${'$as_ac_Header'}'`
3696 { echo "$as_me:$LINENO: result: $ac_res" >&5
3697 echo "${ECHO_T}$ac_res" >&6; }
3698 else
3699 # Is the header compilable?
3700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h. */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 $ac_includes_default
3709 #include <$ac_header>
3710 _ACEOF
3711 rm -f conftest.$ac_objext
3712 if { (ac_try="$ac_compile"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_compile") 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } && {
3725 test -z "$ac_c_werror_flag" ||
3726 test ! -s conftest.err
3727 } && test -s conftest.$ac_objext; then
3728 ac_header_compiler=yes
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 ac_header_compiler=no
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3738 echo "${ECHO_T}$ac_header_compiler" >&6; }
3740 # Is the header present?
3741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3749 #include <$ac_header>
3750 _ACEOF
3751 if { (ac_try="$ac_cpp conftest.$ac_ext"
3752 case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755 esac
3756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3758 ac_status=$?
3759 grep -v '^ *+' conftest.er1 >conftest.err
3760 rm -f conftest.er1
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } >/dev/null && {
3764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3765 test ! -s conftest.err
3766 }; then
3767 ac_header_preproc=yes
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3772 ac_header_preproc=no
3775 rm -f conftest.err conftest.$ac_ext
3776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3777 echo "${ECHO_T}$ac_header_preproc" >&6; }
3779 # So? What about this header?
3780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3781 yes:no: )
3782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3786 ac_header_preproc=yes
3788 no:yes:* )
3789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3803 esac
3804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 eval "$as_ac_Header=\$ac_header_preproc"
3811 ac_res=`eval echo '${'$as_ac_Header'}'`
3812 { echo "$as_me:$LINENO: result: $ac_res" >&5
3813 echo "${ECHO_T}$ac_res" >&6; }
3816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817 cat >>confdefs.h <<_ACEOF
3818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3819 _ACEOF
3823 done
3842 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
3844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3858 #define $ac_func innocuous_$ac_func
3860 /* System header to define __stub macros and hopefully few prototypes,
3861 which can conflict with char $ac_func (); below.
3862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3863 <limits.h> exists even on freestanding compilers. */
3865 #ifdef __STDC__
3866 # include <limits.h>
3867 #else
3868 # include <assert.h>
3869 #endif
3871 #undef $ac_func
3873 /* Override any GCC internal prototype to avoid an error.
3874 Use char because int might match the return type of a GCC
3875 builtin and then its argument prototype would still apply. */
3876 #ifdef __cplusplus
3877 extern "C"
3878 #endif
3879 char $ac_func ();
3880 /* The GNU C library defines this for functions which it implements
3881 to always fail with ENOSYS. Some functions are actually named
3882 something starting with __ and the normal name is an alias. */
3883 #if defined __stub_$ac_func || defined __stub___$ac_func
3884 choke me
3885 #endif
3888 main ()
3890 return $ac_func ();
3892 return 0;
3894 _ACEOF
3895 rm -f conftest.$ac_objext conftest$ac_exeext
3896 if { (ac_try="$ac_link"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_link") 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } && {
3909 test -z "$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 } && test -s conftest$ac_exeext &&
3912 $as_test_x conftest$ac_exeext; then
3913 eval "$as_ac_var=yes"
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 eval "$as_ac_var=no"
3921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3922 conftest$ac_exeext conftest.$ac_ext
3924 ac_res=`eval echo '${'$as_ac_var'}'`
3925 { echo "$as_me:$LINENO: result: $ac_res" >&5
3926 echo "${ECHO_T}$ac_res" >&6; }
3927 if test `eval echo '${'$as_ac_var'}'` = yes; then
3928 cat >>confdefs.h <<_ACEOF
3929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3930 _ACEOF
3933 done
3935 { echo "$as_me:$LINENO: checking whether abort is declared" >&5
3936 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6; }
3937 if test "${ac_cv_have_decl_abort+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 $ac_includes_default
3948 main ()
3950 #ifndef abort
3951 (void) abort;
3952 #endif
3955 return 0;
3957 _ACEOF
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_compile") 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && {
3972 test -z "$ac_c_werror_flag" ||
3973 test ! -s conftest.err
3974 } && test -s conftest.$ac_objext; then
3975 ac_cv_have_decl_abort=yes
3976 else
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 ac_cv_have_decl_abort=no
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
3986 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6; }
3987 if test $ac_cv_have_decl_abort = yes; then
3989 cat >>confdefs.h <<_ACEOF
3990 #define HAVE_DECL_ABORT 1
3991 _ACEOF
3994 else
3995 cat >>confdefs.h <<_ACEOF
3996 #define HAVE_DECL_ABORT 0
3997 _ACEOF
4001 { echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
4002 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6; }
4003 if test "${ac_cv_have_decl_asprintf+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_includes_default
4014 main ()
4016 #ifndef asprintf
4017 (void) asprintf;
4018 #endif
4021 return 0;
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4026 case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029 esac
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_compile") 2>conftest.er1
4032 ac_status=$?
4033 grep -v '^ *+' conftest.er1 >conftest.err
4034 rm -f conftest.er1
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } && {
4038 test -z "$ac_c_werror_flag" ||
4039 test ! -s conftest.err
4040 } && test -s conftest.$ac_objext; then
4041 ac_cv_have_decl_asprintf=yes
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 ac_cv_have_decl_asprintf=no
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
4052 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6; }
4053 if test $ac_cv_have_decl_asprintf = yes; then
4055 cat >>confdefs.h <<_ACEOF
4056 #define HAVE_DECL_ASPRINTF 1
4057 _ACEOF
4060 else
4061 cat >>confdefs.h <<_ACEOF
4062 #define HAVE_DECL_ASPRINTF 0
4063 _ACEOF
4067 { echo "$as_me:$LINENO: checking whether basename is declared" >&5
4068 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6; }
4069 if test "${ac_cv_have_decl_basename+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 $ac_includes_default
4080 main ()
4082 #ifndef basename
4083 (void) basename;
4084 #endif
4087 return 0;
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (ac_try="$ac_compile"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_compile") 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } && {
4104 test -z "$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4106 } && test -s conftest.$ac_objext; then
4107 ac_cv_have_decl_basename=yes
4108 else
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 ac_cv_have_decl_basename=no
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
4118 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6; }
4119 if test $ac_cv_have_decl_basename = yes; then
4121 cat >>confdefs.h <<_ACEOF
4122 #define HAVE_DECL_BASENAME 1
4123 _ACEOF
4126 else
4127 cat >>confdefs.h <<_ACEOF
4128 #define HAVE_DECL_BASENAME 0
4129 _ACEOF
4133 { echo "$as_me:$LINENO: checking whether errno is declared" >&5
4134 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6; }
4135 if test "${ac_cv_have_decl_errno+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 $ac_includes_default
4146 main ()
4148 #ifndef errno
4149 (void) errno;
4150 #endif
4153 return 0;
4155 _ACEOF
4156 rm -f conftest.$ac_objext
4157 if { (ac_try="$ac_compile"
4158 case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161 esac
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_compile") 2>conftest.er1
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } && {
4170 test -z "$ac_c_werror_flag" ||
4171 test ! -s conftest.err
4172 } && test -s conftest.$ac_objext; then
4173 ac_cv_have_decl_errno=yes
4174 else
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4178 ac_cv_have_decl_errno=no
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
4184 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6; }
4185 if test $ac_cv_have_decl_errno = yes; then
4187 cat >>confdefs.h <<_ACEOF
4188 #define HAVE_DECL_ERRNO 1
4189 _ACEOF
4192 else
4193 cat >>confdefs.h <<_ACEOF
4194 #define HAVE_DECL_ERRNO 0
4195 _ACEOF
4199 { echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
4200 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6; }
4201 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 $ac_includes_default
4212 main ()
4214 #ifndef vasprintf
4215 (void) vasprintf;
4216 #endif
4219 return 0;
4221 _ACEOF
4222 rm -f conftest.$ac_objext
4223 if { (ac_try="$ac_compile"
4224 case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227 esac
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_compile") 2>conftest.er1
4230 ac_status=$?
4231 grep -v '^ *+' conftest.er1 >conftest.err
4232 rm -f conftest.er1
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && {
4236 test -z "$ac_c_werror_flag" ||
4237 test ! -s conftest.err
4238 } && test -s conftest.$ac_objext; then
4239 ac_cv_have_decl_vasprintf=yes
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 ac_cv_have_decl_vasprintf=no
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
4250 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6; }
4251 if test $ac_cv_have_decl_vasprintf = yes; then
4253 cat >>confdefs.h <<_ACEOF
4254 #define HAVE_DECL_VASPRINTF 1
4255 _ACEOF
4258 else
4259 cat >>confdefs.h <<_ACEOF
4260 #define HAVE_DECL_VASPRINTF 0
4261 _ACEOF
4265 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
4266 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
4267 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 $ac_includes_default
4278 main ()
4280 #ifndef clearerr_unlocked
4281 (void) clearerr_unlocked;
4282 #endif
4285 return 0;
4287 _ACEOF
4288 rm -f conftest.$ac_objext
4289 if { (ac_try="$ac_compile"
4290 case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_compile") 2>conftest.er1
4296 ac_status=$?
4297 grep -v '^ *+' conftest.er1 >conftest.err
4298 rm -f conftest.er1
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } && {
4302 test -z "$ac_c_werror_flag" ||
4303 test ! -s conftest.err
4304 } && test -s conftest.$ac_objext; then
4305 ac_cv_have_decl_clearerr_unlocked=yes
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 ac_cv_have_decl_clearerr_unlocked=no
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
4316 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
4317 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define HAVE_DECL_CLEARERR_UNLOCKED 1
4321 _ACEOF
4324 else
4325 cat >>confdefs.h <<_ACEOF
4326 #define HAVE_DECL_CLEARERR_UNLOCKED 0
4327 _ACEOF
4331 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
4332 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
4333 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336 cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h. */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4342 $ac_includes_default
4344 main ()
4346 #ifndef feof_unlocked
4347 (void) feof_unlocked;
4348 #endif
4351 return 0;
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (ac_try="$ac_compile"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_compile") 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } && {
4368 test -z "$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4370 } && test -s conftest.$ac_objext; then
4371 ac_cv_have_decl_feof_unlocked=yes
4372 else
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 ac_cv_have_decl_feof_unlocked=no
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
4382 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
4383 if test $ac_cv_have_decl_feof_unlocked = yes; then
4385 cat >>confdefs.h <<_ACEOF
4386 #define HAVE_DECL_FEOF_UNLOCKED 1
4387 _ACEOF
4390 else
4391 cat >>confdefs.h <<_ACEOF
4392 #define HAVE_DECL_FEOF_UNLOCKED 0
4393 _ACEOF
4397 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
4398 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
4399 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 $ac_includes_default
4410 main ()
4412 #ifndef ferror_unlocked
4413 (void) ferror_unlocked;
4414 #endif
4417 return 0;
4419 _ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (ac_try="$ac_compile"
4422 case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_compile") 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } && {
4434 test -z "$ac_c_werror_flag" ||
4435 test ! -s conftest.err
4436 } && test -s conftest.$ac_objext; then
4437 ac_cv_have_decl_ferror_unlocked=yes
4438 else
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4442 ac_cv_have_decl_ferror_unlocked=no
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
4448 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
4449 if test $ac_cv_have_decl_ferror_unlocked = yes; then
4451 cat >>confdefs.h <<_ACEOF
4452 #define HAVE_DECL_FERROR_UNLOCKED 1
4453 _ACEOF
4456 else
4457 cat >>confdefs.h <<_ACEOF
4458 #define HAVE_DECL_FERROR_UNLOCKED 0
4459 _ACEOF
4463 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
4464 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
4465 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 $ac_includes_default
4476 main ()
4478 #ifndef fflush_unlocked
4479 (void) fflush_unlocked;
4480 #endif
4483 return 0;
4485 _ACEOF
4486 rm -f conftest.$ac_objext
4487 if { (ac_try="$ac_compile"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_compile") 2>conftest.er1
4494 ac_status=$?
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && {
4500 test -z "$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 } && test -s conftest.$ac_objext; then
4503 ac_cv_have_decl_fflush_unlocked=yes
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_have_decl_fflush_unlocked=no
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
4514 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
4515 if test $ac_cv_have_decl_fflush_unlocked = yes; then
4517 cat >>confdefs.h <<_ACEOF
4518 #define HAVE_DECL_FFLUSH_UNLOCKED 1
4519 _ACEOF
4522 else
4523 cat >>confdefs.h <<_ACEOF
4524 #define HAVE_DECL_FFLUSH_UNLOCKED 0
4525 _ACEOF
4529 { echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
4530 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6; }
4531 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 $ac_includes_default
4542 main ()
4544 #ifndef fgetc_unlocked
4545 (void) fgetc_unlocked;
4546 #endif
4549 return 0;
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (ac_try="$ac_compile"
4554 case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_compile") 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } && {
4566 test -z "$ac_c_werror_flag" ||
4567 test ! -s conftest.err
4568 } && test -s conftest.$ac_objext; then
4569 ac_cv_have_decl_fgetc_unlocked=yes
4570 else
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 ac_cv_have_decl_fgetc_unlocked=no
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
4580 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6; }
4581 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
4583 cat >>confdefs.h <<_ACEOF
4584 #define HAVE_DECL_FGETC_UNLOCKED 1
4585 _ACEOF
4588 else
4589 cat >>confdefs.h <<_ACEOF
4590 #define HAVE_DECL_FGETC_UNLOCKED 0
4591 _ACEOF
4595 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
4596 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
4597 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h. */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 $ac_includes_default
4608 main ()
4610 #ifndef fgets_unlocked
4611 (void) fgets_unlocked;
4612 #endif
4615 return 0;
4617 _ACEOF
4618 rm -f conftest.$ac_objext
4619 if { (ac_try="$ac_compile"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625 (eval "$ac_compile") 2>conftest.er1
4626 ac_status=$?
4627 grep -v '^ *+' conftest.er1 >conftest.err
4628 rm -f conftest.er1
4629 cat conftest.err >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } && {
4632 test -z "$ac_c_werror_flag" ||
4633 test ! -s conftest.err
4634 } && test -s conftest.$ac_objext; then
4635 ac_cv_have_decl_fgets_unlocked=yes
4636 else
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4640 ac_cv_have_decl_fgets_unlocked=no
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
4646 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
4647 if test $ac_cv_have_decl_fgets_unlocked = yes; then
4649 cat >>confdefs.h <<_ACEOF
4650 #define HAVE_DECL_FGETS_UNLOCKED 1
4651 _ACEOF
4654 else
4655 cat >>confdefs.h <<_ACEOF
4656 #define HAVE_DECL_FGETS_UNLOCKED 0
4657 _ACEOF
4661 { echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
4662 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6; }
4663 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h. */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 $ac_includes_default
4674 main ()
4676 #ifndef fileno_unlocked
4677 (void) fileno_unlocked;
4678 #endif
4681 return 0;
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (ac_try="$ac_compile"
4686 case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_compile") 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } && {
4698 test -z "$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 } && test -s conftest.$ac_objext; then
4701 ac_cv_have_decl_fileno_unlocked=yes
4702 else
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4706 ac_cv_have_decl_fileno_unlocked=no
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
4712 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6; }
4713 if test $ac_cv_have_decl_fileno_unlocked = yes; then
4715 cat >>confdefs.h <<_ACEOF
4716 #define HAVE_DECL_FILENO_UNLOCKED 1
4717 _ACEOF
4720 else
4721 cat >>confdefs.h <<_ACEOF
4722 #define HAVE_DECL_FILENO_UNLOCKED 0
4723 _ACEOF
4727 { echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
4728 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6; }
4729 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 $ac_includes_default
4740 main ()
4742 #ifndef fprintf_unlocked
4743 (void) fprintf_unlocked;
4744 #endif
4747 return 0;
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (ac_try="$ac_compile"
4752 case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755 esac
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_compile") 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
4767 ac_cv_have_decl_fprintf_unlocked=yes
4768 else
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ac_cv_have_decl_fprintf_unlocked=no
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
4778 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6; }
4779 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
4781 cat >>confdefs.h <<_ACEOF
4782 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4783 _ACEOF
4786 else
4787 cat >>confdefs.h <<_ACEOF
4788 #define HAVE_DECL_FPRINTF_UNLOCKED 0
4789 _ACEOF
4793 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
4794 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
4795 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798 cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h. */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 $ac_includes_default
4806 main ()
4808 #ifndef fputc_unlocked
4809 (void) fputc_unlocked;
4810 #endif
4813 return 0;
4815 _ACEOF
4816 rm -f conftest.$ac_objext
4817 if { (ac_try="$ac_compile"
4818 case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_compile") 2>conftest.er1
4824 ac_status=$?
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } && {
4830 test -z "$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4832 } && test -s conftest.$ac_objext; then
4833 ac_cv_have_decl_fputc_unlocked=yes
4834 else
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4838 ac_cv_have_decl_fputc_unlocked=no
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
4844 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
4845 if test $ac_cv_have_decl_fputc_unlocked = yes; then
4847 cat >>confdefs.h <<_ACEOF
4848 #define HAVE_DECL_FPUTC_UNLOCKED 1
4849 _ACEOF
4852 else
4853 cat >>confdefs.h <<_ACEOF
4854 #define HAVE_DECL_FPUTC_UNLOCKED 0
4855 _ACEOF
4859 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
4860 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
4861 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 $ac_includes_default
4872 main ()
4874 #ifndef fputs_unlocked
4875 (void) fputs_unlocked;
4876 #endif
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (ac_try="$ac_compile"
4884 case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887 esac
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_compile") 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } && {
4896 test -z "$ac_c_werror_flag" ||
4897 test ! -s conftest.err
4898 } && test -s conftest.$ac_objext; then
4899 ac_cv_have_decl_fputs_unlocked=yes
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 ac_cv_have_decl_fputs_unlocked=no
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
4910 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
4911 if test $ac_cv_have_decl_fputs_unlocked = yes; then
4913 cat >>confdefs.h <<_ACEOF
4914 #define HAVE_DECL_FPUTS_UNLOCKED 1
4915 _ACEOF
4918 else
4919 cat >>confdefs.h <<_ACEOF
4920 #define HAVE_DECL_FPUTS_UNLOCKED 0
4921 _ACEOF
4925 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
4926 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
4927 if test "${ac_cv_have_decl_fread_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 fread_unlocked
4941 (void) fread_unlocked;
4942 #endif
4945 return 0;
4947 _ACEOF
4948 rm -f conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4950 case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_compile") 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest.$ac_objext; then
4965 ac_cv_have_decl_fread_unlocked=yes
4966 else
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 ac_cv_have_decl_fread_unlocked=no
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
4976 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
4977 if test $ac_cv_have_decl_fread_unlocked = yes; then
4979 cat >>confdefs.h <<_ACEOF
4980 #define HAVE_DECL_FREAD_UNLOCKED 1
4981 _ACEOF
4984 else
4985 cat >>confdefs.h <<_ACEOF
4986 #define HAVE_DECL_FREAD_UNLOCKED 0
4987 _ACEOF
4991 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
4992 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
4993 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h. */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 $ac_includes_default
5004 main ()
5006 #ifndef fwrite_unlocked
5007 (void) fwrite_unlocked;
5008 #endif
5011 return 0;
5013 _ACEOF
5014 rm -f conftest.$ac_objext
5015 if { (ac_try="$ac_compile"
5016 case "(($ac_try" in
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5019 esac
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_compile") 2>conftest.er1
5022 ac_status=$?
5023 grep -v '^ *+' conftest.er1 >conftest.err
5024 rm -f conftest.er1
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } && {
5028 test -z "$ac_c_werror_flag" ||
5029 test ! -s conftest.err
5030 } && test -s conftest.$ac_objext; then
5031 ac_cv_have_decl_fwrite_unlocked=yes
5032 else
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 ac_cv_have_decl_fwrite_unlocked=no
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
5042 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
5043 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
5045 cat >>confdefs.h <<_ACEOF
5046 #define HAVE_DECL_FWRITE_UNLOCKED 1
5047 _ACEOF
5050 else
5051 cat >>confdefs.h <<_ACEOF
5052 #define HAVE_DECL_FWRITE_UNLOCKED 0
5053 _ACEOF
5057 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
5058 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
5059 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062 cat >conftest.$ac_ext <<_ACEOF
5063 /* confdefs.h. */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5068 $ac_includes_default
5070 main ()
5072 #ifndef getchar_unlocked
5073 (void) getchar_unlocked;
5074 #endif
5077 return 0;
5079 _ACEOF
5080 rm -f conftest.$ac_objext
5081 if { (ac_try="$ac_compile"
5082 case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085 esac
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_compile") 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && {
5094 test -z "$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 } && test -s conftest.$ac_objext; then
5097 ac_cv_have_decl_getchar_unlocked=yes
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 ac_cv_have_decl_getchar_unlocked=no
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
5108 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
5109 if test $ac_cv_have_decl_getchar_unlocked = yes; then
5111 cat >>confdefs.h <<_ACEOF
5112 #define HAVE_DECL_GETCHAR_UNLOCKED 1
5113 _ACEOF
5116 else
5117 cat >>confdefs.h <<_ACEOF
5118 #define HAVE_DECL_GETCHAR_UNLOCKED 0
5119 _ACEOF
5123 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
5124 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
5125 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128 cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h. */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 $ac_includes_default
5136 main ()
5138 #ifndef getc_unlocked
5139 (void) getc_unlocked;
5140 #endif
5143 return 0;
5145 _ACEOF
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5163 ac_cv_have_decl_getc_unlocked=yes
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 ac_cv_have_decl_getc_unlocked=no
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
5174 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
5175 if test $ac_cv_have_decl_getc_unlocked = yes; then
5177 cat >>confdefs.h <<_ACEOF
5178 #define HAVE_DECL_GETC_UNLOCKED 1
5179 _ACEOF
5182 else
5183 cat >>confdefs.h <<_ACEOF
5184 #define HAVE_DECL_GETC_UNLOCKED 0
5185 _ACEOF
5189 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
5190 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
5191 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 cat >conftest.$ac_ext <<_ACEOF
5195 /* confdefs.h. */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5200 $ac_includes_default
5202 main ()
5204 #ifndef putchar_unlocked
5205 (void) putchar_unlocked;
5206 #endif
5209 return 0;
5211 _ACEOF
5212 rm -f conftest.$ac_objext
5213 if { (ac_try="$ac_compile"
5214 case "(($ac_try" in
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5217 esac
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_compile") 2>conftest.er1
5220 ac_status=$?
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } && {
5226 test -z "$ac_c_werror_flag" ||
5227 test ! -s conftest.err
5228 } && test -s conftest.$ac_objext; then
5229 ac_cv_have_decl_putchar_unlocked=yes
5230 else
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 ac_cv_have_decl_putchar_unlocked=no
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5239 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
5240 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
5241 if test $ac_cv_have_decl_putchar_unlocked = yes; then
5243 cat >>confdefs.h <<_ACEOF
5244 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
5245 _ACEOF
5248 else
5249 cat >>confdefs.h <<_ACEOF
5250 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
5251 _ACEOF
5255 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
5256 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
5257 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 $ac_includes_default
5268 main ()
5270 #ifndef putc_unlocked
5271 (void) putc_unlocked;
5272 #endif
5275 return 0;
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (ac_try="$ac_compile"
5280 case "(($ac_try" in
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5283 esac
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_compile") 2>conftest.er1
5286 ac_status=$?
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && {
5292 test -z "$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 } && test -s conftest.$ac_objext; then
5295 ac_cv_have_decl_putc_unlocked=yes
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 ac_cv_have_decl_putc_unlocked=no
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
5306 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
5307 if test $ac_cv_have_decl_putc_unlocked = yes; then
5309 cat >>confdefs.h <<_ACEOF
5310 #define HAVE_DECL_PUTC_UNLOCKED 1
5311 _ACEOF
5314 else
5315 cat >>confdefs.h <<_ACEOF
5316 #define HAVE_DECL_PUTC_UNLOCKED 0
5317 _ACEOF
5324 # Checks for typedefs, structures, and compiler characteristics.
5325 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5326 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5327 if test "${ac_cv_c_const+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5338 main ()
5340 /* FIXME: Include the comments suggested by Paul. */
5341 #ifndef __cplusplus
5342 /* Ultrix mips cc rejects this. */
5343 typedef int charset[2];
5344 const charset cs;
5345 /* SunOS 4.1.1 cc rejects this. */
5346 char const *const *pcpcc;
5347 char **ppc;
5348 /* NEC SVR4.0.2 mips cc rejects this. */
5349 struct point {int x, y;};
5350 static struct point const zero = {0,0};
5351 /* AIX XL C 1.02.0.0 rejects this.
5352 It does not let you subtract one const X* pointer from another in
5353 an arm of an if-expression whose if-part is not a constant
5354 expression */
5355 const char *g = "string";
5356 pcpcc = &g + (g ? g-g : 0);
5357 /* HPUX 7.0 cc rejects these. */
5358 ++pcpcc;
5359 ppc = (char**) pcpcc;
5360 pcpcc = (char const *const *) ppc;
5361 { /* SCO 3.2v4 cc rejects this. */
5362 char *t;
5363 char const *s = 0 ? (char *) 0 : (char const *) 0;
5365 *t++ = 0;
5366 if (s) return 0;
5368 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5369 int x[] = {25, 17};
5370 const int *foo = &x[0];
5371 ++foo;
5373 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5374 typedef const int *iptr;
5375 iptr p = 0;
5376 ++p;
5378 { /* AIX XL C 1.02.0.0 rejects this saying
5379 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5380 struct s { int j; const int *ap[3]; };
5381 struct s *b; b->j = 5;
5383 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5384 const int foo = 10;
5385 if (!foo) return 0;
5387 return !cs[0] && !zero.x;
5388 #endif
5391 return 0;
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (ac_try="$ac_compile"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_compile") 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && {
5408 test -z "$ac_c_werror_flag" ||
5409 test ! -s conftest.err
5410 } && test -s conftest.$ac_objext; then
5411 ac_cv_c_const=yes
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 ac_cv_c_const=no
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5422 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5423 if test $ac_cv_c_const = no; then
5425 cat >>confdefs.h <<\_ACEOF
5426 #define const
5427 _ACEOF
5432 # Checks for library functions.
5434 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5435 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5436 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
5437 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5441 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
5442 else
5443 # Is the header compilable?
5444 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
5445 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 $ac_includes_default
5453 #include <sys/mman.h>
5454 _ACEOF
5455 rm -f conftest.$ac_objext
5456 if { (ac_try="$ac_compile"
5457 case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460 esac
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_compile") 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.$ac_objext; then
5472 ac_header_compiler=yes
5473 else
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5477 ac_header_compiler=no
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5482 echo "${ECHO_T}$ac_header_compiler" >&6; }
5484 # Is the header present?
5485 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
5486 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
5487 cat >conftest.$ac_ext <<_ACEOF
5488 /* confdefs.h. */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5493 #include <sys/mman.h>
5494 _ACEOF
5495 if { (ac_try="$ac_cpp conftest.$ac_ext"
5496 case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499 esac
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } >/dev/null && {
5508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5509 test ! -s conftest.err
5510 }; then
5511 ac_header_preproc=yes
5512 else
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5516 ac_header_preproc=no
5519 rm -f conftest.err conftest.$ac_ext
5520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5521 echo "${ECHO_T}$ac_header_preproc" >&6; }
5523 # So? What about this header?
5524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5525 yes:no: )
5526 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
5527 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
5529 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
5530 ac_header_preproc=yes
5532 no:yes:* )
5533 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5534 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
5536 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5538 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5539 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
5540 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5542 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5544 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5547 esac
5548 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5549 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
5550 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 ac_cv_header_sys_mman_h=$ac_header_preproc
5555 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5556 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
5559 if test $ac_cv_header_sys_mman_h = yes; then
5560 gcc_header_sys_mman_h=yes
5561 else
5562 gcc_header_sys_mman_h=no
5566 { echo "$as_me:$LINENO: checking for mmap" >&5
5567 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
5568 if test "${ac_cv_func_mmap+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571 cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h. */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5579 #define mmap innocuous_mmap
5581 /* System header to define __stub macros and hopefully few prototypes,
5582 which can conflict with char mmap (); below.
5583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584 <limits.h> exists even on freestanding compilers. */
5586 #ifdef __STDC__
5587 # include <limits.h>
5588 #else
5589 # include <assert.h>
5590 #endif
5592 #undef mmap
5594 /* Override any GCC internal prototype to avoid an error.
5595 Use char because int might match the return type of a GCC
5596 builtin and then its argument prototype would still apply. */
5597 #ifdef __cplusplus
5598 extern "C"
5599 #endif
5600 char mmap ();
5601 /* The GNU C library defines this for functions which it implements
5602 to always fail with ENOSYS. Some functions are actually named
5603 something starting with __ and the normal name is an alias. */
5604 #if defined __stub_mmap || defined __stub___mmap
5605 choke me
5606 #endif
5609 main ()
5611 return mmap ();
5613 return 0;
5615 _ACEOF
5616 rm -f conftest.$ac_objext conftest$ac_exeext
5617 if { (ac_try="$ac_link"
5618 case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621 esac
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_link") 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } && {
5630 test -z "$ac_c_werror_flag" ||
5631 test ! -s conftest.err
5632 } && test -s conftest$ac_exeext &&
5633 $as_test_x conftest$ac_exeext; then
5634 ac_cv_func_mmap=yes
5635 else
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 ac_cv_func_mmap=no
5642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5643 conftest$ac_exeext conftest.$ac_ext
5645 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5646 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
5647 if test $ac_cv_func_mmap = yes; then
5648 gcc_func_mmap=yes
5649 else
5650 gcc_func_mmap=no
5653 if test "$gcc_header_sys_mman_h" != yes \
5654 || test "$gcc_func_mmap" != yes; then
5655 gcc_cv_func_mmap_file=no
5656 gcc_cv_func_mmap_dev_zero=no
5657 gcc_cv_func_mmap_anon=no
5658 else
5659 { echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5660 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6; }
5661 if test "${gcc_cv_func_mmap_file+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664 # Add a system to this blacklist if
5665 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5666 # memory area containing the same data that you'd get if you applied
5667 # read() to the same fd. The only system known to have a problem here
5668 # is VMS, where text files have record structure.
5669 case "$host_os" in
5670 vms* | ultrix*)
5671 gcc_cv_func_mmap_file=no ;;
5673 gcc_cv_func_mmap_file=yes;;
5674 esac
5676 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
5677 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6; }
5678 { echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5679 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6; }
5680 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 # Add a system to this blacklist if it has mmap() but /dev/zero
5684 # does not exist, or if mmapping /dev/zero does not give anonymous
5685 # zeroed pages with both the following properties:
5686 # 1. If you map N consecutive pages in with one call, and then
5687 # unmap any subset of those pages, the pages that were not
5688 # explicitly unmapped remain accessible.
5689 # 2. If you map two adjacent blocks of memory and then unmap them
5690 # both at once, they must both go away.
5691 # Systems known to be in this category are Windows (all variants),
5692 # VMS, and Darwin.
5693 case "$host_os" in
5694 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5695 gcc_cv_func_mmap_dev_zero=no ;;
5697 gcc_cv_func_mmap_dev_zero=yes;;
5698 esac
5700 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
5701 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6; }
5703 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5704 { echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5705 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6; }
5706 if test "${gcc_cv_decl_map_anon+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h. */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 #include <sys/types.h>
5716 #include <sys/mman.h>
5717 #include <unistd.h>
5719 #ifndef MAP_ANONYMOUS
5720 #define MAP_ANONYMOUS MAP_ANON
5721 #endif
5724 main ()
5726 int n = MAP_ANONYMOUS;
5728 return 0;
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (ac_try="$ac_compile"
5733 case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_compile") 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && {
5745 test -z "$ac_c_werror_flag" ||
5746 test ! -s conftest.err
5747 } && test -s conftest.$ac_objext; then
5748 gcc_cv_decl_map_anon=yes
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 gcc_cv_decl_map_anon=no
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 { echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
5759 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6; }
5761 if test $gcc_cv_decl_map_anon = no; then
5762 gcc_cv_func_mmap_anon=no
5763 else
5764 { echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5765 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6; }
5766 if test "${gcc_cv_func_mmap_anon+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769 # Add a system to this blacklist if it has mmap() and MAP_ANON or
5770 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5771 # doesn't give anonymous zeroed pages with the same properties listed
5772 # above for use of /dev/zero.
5773 # Systems known to be in this category are Windows, VMS, and SCO Unix.
5774 case "$host_os" in
5775 vms* | cygwin* | pe | mingw* | sco* | udk* )
5776 gcc_cv_func_mmap_anon=no ;;
5778 gcc_cv_func_mmap_anon=yes;;
5779 esac
5781 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
5782 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6; }
5786 if test $gcc_cv_func_mmap_file = yes; then
5788 cat >>confdefs.h <<\_ACEOF
5789 #define HAVE_MMAP_FILE 1
5790 _ACEOF
5793 if test $gcc_cv_func_mmap_dev_zero = yes; then
5795 cat >>confdefs.h <<\_ACEOF
5796 #define HAVE_MMAP_DEV_ZERO 1
5797 _ACEOF
5800 if test $gcc_cv_func_mmap_anon = yes; then
5802 cat >>confdefs.h <<\_ACEOF
5803 #define HAVE_MMAP_ANON 1
5804 _ACEOF
5809 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5810 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
5811 # Check whether --enable-maintainer-mode was given.
5812 if test "${enable_maintainer_mode+set}" = set; then
5813 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5814 else
5815 USE_MAINTAINER_MODE=no
5818 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5819 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
5820 if test "$USE_MAINTAINER_MODE" = yes; then
5821 MAINT=
5822 else
5823 MAINT='#'
5827 ac_config_headers="$ac_config_headers config.h"
5829 ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in"
5831 cat >confcache <<\_ACEOF
5832 # This file is a shell script that caches the results of configure
5833 # tests run on this system so they can be shared between configure
5834 # scripts and configure runs, see configure's option --config-cache.
5835 # It is not useful on other systems. If it contains results you don't
5836 # want to keep, you may remove or edit it.
5838 # config.status only pays attention to the cache file if you give it
5839 # the --recheck option to rerun configure.
5841 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5842 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5843 # following values.
5845 _ACEOF
5847 # The following way of writing the cache mishandles newlines in values,
5848 # but we know of no workaround that is simple, portable, and efficient.
5849 # So, we kill variables containing newlines.
5850 # Ultrix sh set writes to stderr and can't be redirected directly,
5851 # and sets the high bit in the cache file unless we assign to the vars.
5853 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5854 eval ac_val=\$$ac_var
5855 case $ac_val in #(
5856 *${as_nl}*)
5857 case $ac_var in #(
5858 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5859 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5860 esac
5861 case $ac_var in #(
5862 _ | IFS | as_nl) ;; #(
5863 *) $as_unset $ac_var ;;
5864 esac ;;
5865 esac
5866 done
5868 (set) 2>&1 |
5869 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5870 *${as_nl}ac_space=\ *)
5871 # `set' does not quote correctly, so add quotes (double-quote
5872 # substitution turns \\\\ into \\, and sed turns \\ into \).
5873 sed -n \
5874 "s/'/'\\\\''/g;
5875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5876 ;; #(
5878 # `set' quotes correctly as required by POSIX, so do not add quotes.
5879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5881 esac |
5882 sort
5884 sed '
5885 /^ac_cv_env_/b end
5886 t clear
5887 :clear
5888 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5889 t end
5890 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5891 :end' >>confcache
5892 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5893 if test -w "$cache_file"; then
5894 test "x$cache_file" != "x/dev/null" &&
5895 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5896 echo "$as_me: updating cache $cache_file" >&6;}
5897 cat confcache >$cache_file
5898 else
5899 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5900 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5903 rm -f confcache
5905 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5906 # Let make expand exec_prefix.
5907 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5909 DEFS=-DHAVE_CONFIG_H
5911 ac_libobjs=
5912 ac_ltlibobjs=
5913 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5914 # 1. Remove the extension, and $U if already installed.
5915 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5916 ac_i=`echo "$ac_i" | sed "$ac_script"`
5917 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5918 # will be set to the directory where LIBOBJS objects are built.
5919 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5920 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5921 done
5922 LIBOBJS=$ac_libobjs
5924 LTLIBOBJS=$ac_ltlibobjs
5928 : ${CONFIG_STATUS=./config.status}
5929 ac_clean_files_save=$ac_clean_files
5930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5931 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5932 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5933 cat >$CONFIG_STATUS <<_ACEOF
5934 #! $SHELL
5935 # Generated by $as_me.
5936 # Run this file to recreate the current configuration.
5937 # Compiler output produced by configure, useful for debugging
5938 # configure, is in config.log if it exists.
5940 debug=false
5941 ac_cs_recheck=false
5942 ac_cs_silent=false
5943 SHELL=\${CONFIG_SHELL-$SHELL}
5944 _ACEOF
5946 cat >>$CONFIG_STATUS <<\_ACEOF
5947 ## --------------------- ##
5948 ## M4sh Initialization. ##
5949 ## --------------------- ##
5951 # Be more Bourne compatible
5952 DUALCASE=1; export DUALCASE # for MKS sh
5953 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5954 emulate sh
5955 NULLCMD=:
5956 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5957 # is contrary to our usage. Disable this feature.
5958 alias -g '${1+"$@"}'='"$@"'
5959 setopt NO_GLOB_SUBST
5960 else
5961 case `(set -o) 2>/dev/null` in
5962 *posix*) set -o posix ;;
5963 esac
5970 # PATH needs CR
5971 # Avoid depending upon Character Ranges.
5972 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5973 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5974 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5975 as_cr_digits='0123456789'
5976 as_cr_alnum=$as_cr_Letters$as_cr_digits
5978 # The user is always right.
5979 if test "${PATH_SEPARATOR+set}" != set; then
5980 echo "#! /bin/sh" >conf$$.sh
5981 echo "exit 0" >>conf$$.sh
5982 chmod +x conf$$.sh
5983 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5984 PATH_SEPARATOR=';'
5985 else
5986 PATH_SEPARATOR=:
5988 rm -f conf$$.sh
5991 # Support unset when possible.
5992 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5993 as_unset=unset
5994 else
5995 as_unset=false
5999 # IFS
6000 # We need space, tab and new line, in precisely that order. Quoting is
6001 # there to prevent editors from complaining about space-tab.
6002 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6003 # splitting by setting IFS to empty value.)
6004 as_nl='
6006 IFS=" "" $as_nl"
6008 # Find who we are. Look in the path if we contain no directory separator.
6009 case $0 in
6010 *[\\/]* ) as_myself=$0 ;;
6011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6017 done
6018 IFS=$as_save_IFS
6021 esac
6022 # We did not find ourselves, most probably we were run as `sh COMMAND'
6023 # in which case we are not to be found in the path.
6024 if test "x$as_myself" = x; then
6025 as_myself=$0
6027 if test ! -f "$as_myself"; then
6028 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6029 { (exit 1); exit 1; }
6032 # Work around bugs in pre-3.0 UWIN ksh.
6033 for as_var in ENV MAIL MAILPATH
6034 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6035 done
6036 PS1='$ '
6037 PS2='> '
6038 PS4='+ '
6040 # NLS nuisances.
6041 for as_var in \
6042 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6043 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6044 LC_TELEPHONE LC_TIME
6046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6047 eval $as_var=C; export $as_var
6048 else
6049 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6051 done
6053 # Required to use basename.
6054 if expr a : '\(a\)' >/dev/null 2>&1 &&
6055 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6056 as_expr=expr
6057 else
6058 as_expr=false
6061 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6062 as_basename=basename
6063 else
6064 as_basename=false
6068 # Name of the executable.
6069 as_me=`$as_basename -- "$0" ||
6070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6071 X"$0" : 'X\(//\)$' \| \
6072 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6073 echo X/"$0" |
6074 sed '/^.*\/\([^/][^/]*\)\/*$/{
6075 s//\1/
6078 /^X\/\(\/\/\)$/{
6079 s//\1/
6082 /^X\/\(\/\).*/{
6083 s//\1/
6086 s/.*/./; q'`
6088 # CDPATH.
6089 $as_unset CDPATH
6093 as_lineno_1=$LINENO
6094 as_lineno_2=$LINENO
6095 test "x$as_lineno_1" != "x$as_lineno_2" &&
6096 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6098 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6099 # uniformly replaced by the line number. The first 'sed' inserts a
6100 # line-number line after each line using $LINENO; the second 'sed'
6101 # does the real work. The second script uses 'N' to pair each
6102 # line-number line with the line containing $LINENO, and appends
6103 # trailing '-' during substitution so that $LINENO is not a special
6104 # case at line end.
6105 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6106 # scripts with optimization help from Paolo Bonzini. Blame Lee
6107 # E. McMahon (1931-1989) for sed's syntax. :-)
6108 sed -n '
6110 /[$]LINENO/=
6111 ' <$as_myself |
6112 sed '
6113 s/[$]LINENO.*/&-/
6114 t lineno
6116 :lineno
6118 :loop
6119 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6120 t loop
6121 s/-\n.*//
6122 ' >$as_me.lineno &&
6123 chmod +x "$as_me.lineno" ||
6124 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6125 { (exit 1); exit 1; }; }
6127 # Don't try to exec as it changes $[0], causing all sort of problems
6128 # (the dirname of $[0] is not the place where we might find the
6129 # original and so on. Autoconf is especially sensitive to this).
6130 . "./$as_me.lineno"
6131 # Exit status is that of the last command.
6132 exit
6136 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6137 as_dirname=dirname
6138 else
6139 as_dirname=false
6142 ECHO_C= ECHO_N= ECHO_T=
6143 case `echo -n x` in
6144 -n*)
6145 case `echo 'x\c'` in
6146 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6147 *) ECHO_C='\c';;
6148 esac;;
6150 ECHO_N='-n';;
6151 esac
6153 if expr a : '\(a\)' >/dev/null 2>&1 &&
6154 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6155 as_expr=expr
6156 else
6157 as_expr=false
6160 rm -f conf$$ conf$$.exe conf$$.file
6161 if test -d conf$$.dir; then
6162 rm -f conf$$.dir/conf$$.file
6163 else
6164 rm -f conf$$.dir
6165 mkdir conf$$.dir
6167 echo >conf$$.file
6168 if ln -s conf$$.file conf$$ 2>/dev/null; then
6169 as_ln_s='ln -s'
6170 # ... but there are two gotchas:
6171 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6172 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6173 # In both cases, we have to default to `cp -p'.
6174 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6175 as_ln_s='cp -p'
6176 elif ln conf$$.file conf$$ 2>/dev/null; then
6177 as_ln_s=ln
6178 else
6179 as_ln_s='cp -p'
6181 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6182 rmdir conf$$.dir 2>/dev/null
6184 if mkdir -p . 2>/dev/null; then
6185 as_mkdir_p=:
6186 else
6187 test -d ./-p && rmdir ./-p
6188 as_mkdir_p=false
6191 if test -x / >/dev/null 2>&1; then
6192 as_test_x='test -x'
6193 else
6194 if ls -dL / >/dev/null 2>&1; then
6195 as_ls_L_option=L
6196 else
6197 as_ls_L_option=
6199 as_test_x='
6200 eval sh -c '\''
6201 if test -d "$1"; then
6202 test -d "$1/.";
6203 else
6204 case $1 in
6205 -*)set "./$1";;
6206 esac;
6207 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6208 ???[sx]*):;;*)false;;esac;fi
6209 '\'' sh
6212 as_executable_p=$as_test_x
6214 # Sed expression to map a string onto a valid CPP name.
6215 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6217 # Sed expression to map a string onto a valid variable name.
6218 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6221 exec 6>&1
6223 # Save the log message, to keep $[0] and so on meaningful, and to
6224 # report actual input values of CONFIG_FILES etc. instead of their
6225 # values after options handling.
6226 ac_log="
6227 This file was extended by fixincludes $as_me , which was
6228 generated by GNU Autoconf 2.61. Invocation command line was
6230 CONFIG_FILES = $CONFIG_FILES
6231 CONFIG_HEADERS = $CONFIG_HEADERS
6232 CONFIG_LINKS = $CONFIG_LINKS
6233 CONFIG_COMMANDS = $CONFIG_COMMANDS
6234 $ $0 $@
6236 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6239 _ACEOF
6241 cat >>$CONFIG_STATUS <<_ACEOF
6242 # Files that config.status was made for.
6243 config_files="$ac_config_files"
6244 config_headers="$ac_config_headers"
6246 _ACEOF
6248 cat >>$CONFIG_STATUS <<\_ACEOF
6249 ac_cs_usage="\
6250 \`$as_me' instantiates files from templates according to the
6251 current configuration.
6253 Usage: $0 [OPTIONS] [FILE]...
6255 -h, --help print this help, then exit
6256 -V, --version print version number and configuration settings, then exit
6257 -q, --quiet do not print progress messages
6258 -d, --debug don't remove temporary files
6259 --recheck update $as_me by reconfiguring in the same conditions
6260 --file=FILE[:TEMPLATE]
6261 instantiate the configuration file FILE
6262 --header=FILE[:TEMPLATE]
6263 instantiate the configuration header FILE
6265 Configuration files:
6266 $config_files
6268 Configuration headers:
6269 $config_headers
6271 Report bugs to <bug-autoconf@gnu.org>."
6273 _ACEOF
6274 cat >>$CONFIG_STATUS <<_ACEOF
6275 ac_cs_version="\\
6276 fixincludes config.status
6277 configured by $0, generated by GNU Autoconf 2.61,
6278 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6280 Copyright (C) 2006 Free Software Foundation, Inc.
6281 This config.status script is free software; the Free Software Foundation
6282 gives unlimited permission to copy, distribute and modify it."
6284 ac_pwd='$ac_pwd'
6285 srcdir='$srcdir'
6286 _ACEOF
6288 cat >>$CONFIG_STATUS <<\_ACEOF
6289 # If no file are specified by the user, then we need to provide default
6290 # value. By we need to know if files were specified by the user.
6291 ac_need_defaults=:
6292 while test $# != 0
6294 case $1 in
6295 --*=*)
6296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6298 ac_shift=:
6301 ac_option=$1
6302 ac_optarg=$2
6303 ac_shift=shift
6305 esac
6307 case $ac_option in
6308 # Handling of the options.
6309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6310 ac_cs_recheck=: ;;
6311 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6312 echo "$ac_cs_version"; exit ;;
6313 --debug | --debu | --deb | --de | --d | -d )
6314 debug=: ;;
6315 --file | --fil | --fi | --f )
6316 $ac_shift
6317 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6318 ac_need_defaults=false;;
6319 --header | --heade | --head | --hea )
6320 $ac_shift
6321 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6322 ac_need_defaults=false;;
6323 --he | --h)
6324 # Conflict between --help and --header
6325 { echo "$as_me: error: ambiguous option: $1
6326 Try \`$0 --help' for more information." >&2
6327 { (exit 1); exit 1; }; };;
6328 --help | --hel | -h )
6329 echo "$ac_cs_usage"; exit ;;
6330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6332 ac_cs_silent=: ;;
6334 # This is an error.
6335 -*) { echo "$as_me: error: unrecognized option: $1
6336 Try \`$0 --help' for more information." >&2
6337 { (exit 1); exit 1; }; } ;;
6339 *) ac_config_targets="$ac_config_targets $1"
6340 ac_need_defaults=false ;;
6342 esac
6343 shift
6344 done
6346 ac_configure_extra_args=
6348 if $ac_cs_silent; then
6349 exec 6>/dev/null
6350 ac_configure_extra_args="$ac_configure_extra_args --silent"
6353 _ACEOF
6354 cat >>$CONFIG_STATUS <<_ACEOF
6355 if \$ac_cs_recheck; then
6356 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6357 CONFIG_SHELL=$SHELL
6358 export CONFIG_SHELL
6359 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6362 _ACEOF
6363 cat >>$CONFIG_STATUS <<\_ACEOF
6364 exec 5>>config.log
6366 echo
6367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6368 ## Running $as_me. ##
6369 _ASBOX
6370 echo "$ac_log"
6371 } >&5
6373 _ACEOF
6374 cat >>$CONFIG_STATUS <<_ACEOF
6375 _ACEOF
6377 cat >>$CONFIG_STATUS <<\_ACEOF
6379 # Handling of arguments.
6380 for ac_config_target in $ac_config_targets
6382 case $ac_config_target in
6383 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6384 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6385 "mkheaders.almost") CONFIG_FILES="$CONFIG_FILES mkheaders.almost:mkheaders.in" ;;
6387 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6388 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6389 { (exit 1); exit 1; }; };;
6390 esac
6391 done
6394 # If the user did not use the arguments to specify the items to instantiate,
6395 # then the envvar interface is used. Set only those that are not.
6396 # We use the long form for the default assignment because of an extremely
6397 # bizarre bug on SunOS 4.1.3.
6398 if $ac_need_defaults; then
6399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6400 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6403 # Have a temporary directory for convenience. Make it in the build tree
6404 # simply because there is no reason against having it here, and in addition,
6405 # creating and moving files from /tmp can sometimes cause problems.
6406 # Hook for its removal unless debugging.
6407 # Note that there is a small window in which the directory will not be cleaned:
6408 # after its creation but before its name has been assigned to `$tmp'.
6409 $debug ||
6411 tmp=
6412 trap 'exit_status=$?
6413 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6415 trap '{ (exit 1); exit 1; }' 1 2 13 15
6417 # Create a (secure) tmp directory for tmp files.
6420 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6421 test -n "$tmp" && test -d "$tmp"
6422 } ||
6424 tmp=./conf$$-$RANDOM
6425 (umask 077 && mkdir "$tmp")
6426 } ||
6428 echo "$me: cannot create a temporary directory in ." >&2
6429 { (exit 1); exit 1; }
6433 # Set up the sed scripts for CONFIG_FILES section.
6436 # No need to generate the scripts if there are no CONFIG_FILES.
6437 # This happens for instance when ./config.status config.h
6438 if test -n "$CONFIG_FILES"; then
6440 _ACEOF
6444 ac_delim='%!_!# '
6445 for ac_last_try in false false false false false :; do
6446 cat >conf$$subs.sed <<_ACEOF
6447 SHELL!$SHELL$ac_delim
6448 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6449 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6450 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6451 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6452 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6453 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6454 exec_prefix!$exec_prefix$ac_delim
6455 prefix!$prefix$ac_delim
6456 program_transform_name!$program_transform_name$ac_delim
6457 bindir!$bindir$ac_delim
6458 sbindir!$sbindir$ac_delim
6459 libexecdir!$libexecdir$ac_delim
6460 datarootdir!$datarootdir$ac_delim
6461 datadir!$datadir$ac_delim
6462 sysconfdir!$sysconfdir$ac_delim
6463 sharedstatedir!$sharedstatedir$ac_delim
6464 localstatedir!$localstatedir$ac_delim
6465 includedir!$includedir$ac_delim
6466 oldincludedir!$oldincludedir$ac_delim
6467 docdir!$docdir$ac_delim
6468 infodir!$infodir$ac_delim
6469 htmldir!$htmldir$ac_delim
6470 dvidir!$dvidir$ac_delim
6471 pdfdir!$pdfdir$ac_delim
6472 psdir!$psdir$ac_delim
6473 libdir!$libdir$ac_delim
6474 localedir!$localedir$ac_delim
6475 mandir!$mandir$ac_delim
6476 DEFS!$DEFS$ac_delim
6477 ECHO_C!$ECHO_C$ac_delim
6478 ECHO_N!$ECHO_N$ac_delim
6479 ECHO_T!$ECHO_T$ac_delim
6480 LIBS!$LIBS$ac_delim
6481 build_alias!$build_alias$ac_delim
6482 host_alias!$host_alias$ac_delim
6483 target_alias!$target_alias$ac_delim
6484 build!$build$ac_delim
6485 build_cpu!$build_cpu$ac_delim
6486 build_vendor!$build_vendor$ac_delim
6487 build_os!$build_os$ac_delim
6488 host!$host$ac_delim
6489 host_cpu!$host_cpu$ac_delim
6490 host_vendor!$host_vendor$ac_delim
6491 host_os!$host_os$ac_delim
6492 target!$target$ac_delim
6493 target_cpu!$target_cpu$ac_delim
6494 target_vendor!$target_vendor$ac_delim
6495 target_os!$target_os$ac_delim
6496 CC!$CC$ac_delim
6497 CFLAGS!$CFLAGS$ac_delim
6498 LDFLAGS!$LDFLAGS$ac_delim
6499 CPPFLAGS!$CPPFLAGS$ac_delim
6500 ac_ct_CC!$ac_ct_CC$ac_delim
6501 EXEEXT!$EXEEXT$ac_delim
6502 OBJEXT!$OBJEXT$ac_delim
6503 WARN_CFLAGS!$WARN_CFLAGS$ac_delim
6504 WARN_PEDANTIC!$WARN_PEDANTIC$ac_delim
6505 WERROR!$WERROR$ac_delim
6506 target_noncanonical!$target_noncanonical$ac_delim
6507 TARGET!$TARGET$ac_delim
6508 CPP!$CPP$ac_delim
6509 GREP!$GREP$ac_delim
6510 EGREP!$EGREP$ac_delim
6511 MAINT!$MAINT$ac_delim
6512 LIBOBJS!$LIBOBJS$ac_delim
6513 LTLIBOBJS!$LTLIBOBJS$ac_delim
6514 _ACEOF
6516 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
6517 break
6518 elif $ac_last_try; then
6519 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6520 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6521 { (exit 1); exit 1; }; }
6522 else
6523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6525 done
6527 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6528 if test -n "$ac_eof"; then
6529 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6530 ac_eof=`expr $ac_eof + 1`
6533 cat >>$CONFIG_STATUS <<_ACEOF
6534 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6536 _ACEOF
6537 sed '
6538 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6539 s/^/s,@/; s/!/@,|#_!!_#|/
6542 s/'"$ac_delim"'$/,g/; t
6543 s/$/\\/; p
6544 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6545 ' >>$CONFIG_STATUS <conf$$subs.sed
6546 rm -f conf$$subs.sed
6547 cat >>$CONFIG_STATUS <<_ACEOF
6548 :end
6549 s/|#_!!_#|//g
6550 CEOF$ac_eof
6551 _ACEOF
6554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6556 # trailing colons and then remove the whole line if VPATH becomes empty
6557 # (actually we leave an empty line to preserve line numbers).
6558 if test "x$srcdir" = x.; then
6559 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6560 s/:*\$(srcdir):*/:/
6561 s/:*\${srcdir}:*/:/
6562 s/:*@srcdir@:*/:/
6563 s/^\([^=]*=[ ]*\):*/\1/
6564 s/:*$//
6565 s/^[^=]*=[ ]*$//
6569 cat >>$CONFIG_STATUS <<\_ACEOF
6570 fi # test -n "$CONFIG_FILES"
6573 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
6575 case $ac_tag in
6576 :[FHLC]) ac_mode=$ac_tag; continue;;
6577 esac
6578 case $ac_mode$ac_tag in
6579 :[FHL]*:*);;
6580 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6581 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6582 { (exit 1); exit 1; }; };;
6583 :[FH]-) ac_tag=-:-;;
6584 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6585 esac
6586 ac_save_IFS=$IFS
6587 IFS=:
6588 set x $ac_tag
6589 IFS=$ac_save_IFS
6590 shift
6591 ac_file=$1
6592 shift
6594 case $ac_mode in
6595 :L) ac_source=$1;;
6596 :[FH])
6597 ac_file_inputs=
6598 for ac_f
6600 case $ac_f in
6601 -) ac_f="$tmp/stdin";;
6602 *) # Look for the file first in the build tree, then in the source tree
6603 # (if the path is not absolute). The absolute path cannot be DOS-style,
6604 # because $ac_f cannot contain `:'.
6605 test -f "$ac_f" ||
6606 case $ac_f in
6607 [\\/$]*) false;;
6608 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6609 esac ||
6610 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6611 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6612 { (exit 1); exit 1; }; };;
6613 esac
6614 ac_file_inputs="$ac_file_inputs $ac_f"
6615 done
6617 # Let's still pretend it is `configure' which instantiates (i.e., don't
6618 # use $as_me), people would be surprised to read:
6619 # /* config.h. Generated by config.status. */
6620 configure_input="Generated from "`IFS=:
6621 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6622 if test x"$ac_file" != x-; then
6623 configure_input="$ac_file. $configure_input"
6624 { echo "$as_me:$LINENO: creating $ac_file" >&5
6625 echo "$as_me: creating $ac_file" >&6;}
6628 case $ac_tag in
6629 *:-:* | *:-) cat >"$tmp/stdin";;
6630 esac
6632 esac
6634 ac_dir=`$as_dirname -- "$ac_file" ||
6635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6636 X"$ac_file" : 'X\(//\)[^/]' \| \
6637 X"$ac_file" : 'X\(//\)$' \| \
6638 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6639 echo X"$ac_file" |
6640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6641 s//\1/
6644 /^X\(\/\/\)[^/].*/{
6645 s//\1/
6648 /^X\(\/\/\)$/{
6649 s//\1/
6652 /^X\(\/\).*/{
6653 s//\1/
6656 s/.*/./; q'`
6657 { as_dir="$ac_dir"
6658 case $as_dir in #(
6659 -*) as_dir=./$as_dir;;
6660 esac
6661 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6662 as_dirs=
6663 while :; do
6664 case $as_dir in #(
6665 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6666 *) as_qdir=$as_dir;;
6667 esac
6668 as_dirs="'$as_qdir' $as_dirs"
6669 as_dir=`$as_dirname -- "$as_dir" ||
6670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6671 X"$as_dir" : 'X\(//\)[^/]' \| \
6672 X"$as_dir" : 'X\(//\)$' \| \
6673 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6674 echo X"$as_dir" |
6675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6676 s//\1/
6679 /^X\(\/\/\)[^/].*/{
6680 s//\1/
6683 /^X\(\/\/\)$/{
6684 s//\1/
6687 /^X\(\/\).*/{
6688 s//\1/
6691 s/.*/./; q'`
6692 test -d "$as_dir" && break
6693 done
6694 test -z "$as_dirs" || eval "mkdir $as_dirs"
6695 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6696 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6697 { (exit 1); exit 1; }; }; }
6698 ac_builddir=.
6700 case "$ac_dir" in
6701 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6703 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6704 # A ".." for each directory in $ac_dir_suffix.
6705 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6706 case $ac_top_builddir_sub in
6707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6709 esac ;;
6710 esac
6711 ac_abs_top_builddir=$ac_pwd
6712 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6713 # for backward compatibility:
6714 ac_top_builddir=$ac_top_build_prefix
6716 case $srcdir in
6717 .) # We are building in place.
6718 ac_srcdir=.
6719 ac_top_srcdir=$ac_top_builddir_sub
6720 ac_abs_top_srcdir=$ac_pwd ;;
6721 [\\/]* | ?:[\\/]* ) # Absolute name.
6722 ac_srcdir=$srcdir$ac_dir_suffix;
6723 ac_top_srcdir=$srcdir
6724 ac_abs_top_srcdir=$srcdir ;;
6725 *) # Relative name.
6726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6727 ac_top_srcdir=$ac_top_build_prefix$srcdir
6728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6729 esac
6730 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6733 case $ac_mode in
6736 # CONFIG_FILE
6739 _ACEOF
6741 cat >>$CONFIG_STATUS <<\_ACEOF
6742 # If the template does not know about datarootdir, expand it.
6743 # FIXME: This hack should be removed a few years after 2.60.
6744 ac_datarootdir_hack=; ac_datarootdir_seen=
6746 case `sed -n '/datarootdir/ {
6750 /@datadir@/p
6751 /@docdir@/p
6752 /@infodir@/p
6753 /@localedir@/p
6754 /@mandir@/p
6755 ' $ac_file_inputs` in
6756 *datarootdir*) ac_datarootdir_seen=yes;;
6757 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6758 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6759 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6760 _ACEOF
6761 cat >>$CONFIG_STATUS <<_ACEOF
6762 ac_datarootdir_hack='
6763 s&@datadir@&$datadir&g
6764 s&@docdir@&$docdir&g
6765 s&@infodir@&$infodir&g
6766 s&@localedir@&$localedir&g
6767 s&@mandir@&$mandir&g
6768 s&\\\${datarootdir}&$datarootdir&g' ;;
6769 esac
6770 _ACEOF
6772 # Neutralize VPATH when `$srcdir' = `.'.
6773 # Shell code in configure.ac might set extrasub.
6774 # FIXME: do we really want to maintain this feature?
6775 cat >>$CONFIG_STATUS <<_ACEOF
6776 sed "$ac_vpsub
6777 $extrasub
6778 _ACEOF
6779 cat >>$CONFIG_STATUS <<\_ACEOF
6781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6782 s&@configure_input@&$configure_input&;t t
6783 s&@top_builddir@&$ac_top_builddir_sub&;t t
6784 s&@srcdir@&$ac_srcdir&;t t
6785 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6786 s&@top_srcdir@&$ac_top_srcdir&;t t
6787 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6788 s&@builddir@&$ac_builddir&;t t
6789 s&@abs_builddir@&$ac_abs_builddir&;t t
6790 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6791 $ac_datarootdir_hack
6792 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6794 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6795 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6796 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6797 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6798 which seems to be undefined. Please make sure it is defined." >&5
6799 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6800 which seems to be undefined. Please make sure it is defined." >&2;}
6802 rm -f "$tmp/stdin"
6803 case $ac_file in
6804 -) cat "$tmp/out"; rm -f "$tmp/out";;
6805 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6806 esac
6810 # CONFIG_HEADER
6812 _ACEOF
6814 # Transform confdefs.h into a sed script `conftest.defines', that
6815 # substitutes the proper values into config.h.in to produce config.h.
6816 rm -f conftest.defines conftest.tail
6817 # First, append a space to every undef/define line, to ease matching.
6818 echo 's/$/ /' >conftest.defines
6819 # Then, protect against being on the right side of a sed subst, or in
6820 # an unquoted here document, in config.status. If some macros were
6821 # called several times there might be several #defines for the same
6822 # symbol, which is useless. But do not sort them, since the last
6823 # AC_DEFINE must be honored.
6824 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6825 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6826 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6827 # PARAMS is the parameter list in the macro definition--in most cases, it's
6828 # just an empty string.
6829 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6830 ac_dB='\\)[ (].*,\\1define\\2'
6831 ac_dC=' '
6832 ac_dD=' ,'
6834 uniq confdefs.h |
6835 sed -n '
6836 t rset
6837 :rset
6838 s/^[ ]*#[ ]*define[ ][ ]*//
6839 t ok
6842 s/[\\&,]/\\&/g
6843 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6844 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6845 ' >>conftest.defines
6847 # Remove the space that was appended to ease matching.
6848 # Then replace #undef with comments. This is necessary, for
6849 # example, in the case of _POSIX_SOURCE, which is predefined and required
6850 # on some systems where configure will not decide to define it.
6851 # (The regexp can be short, since the line contains either #define or #undef.)
6852 echo 's/ $//
6853 s,^[ #]*u.*,/* & */,' >>conftest.defines
6855 # Break up conftest.defines:
6856 ac_max_sed_lines=50
6858 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6859 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6860 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6861 # et cetera.
6862 ac_in='$ac_file_inputs'
6863 ac_out='"$tmp/out1"'
6864 ac_nxt='"$tmp/out2"'
6866 while :
6868 # Write a here document:
6869 cat >>$CONFIG_STATUS <<_ACEOF
6870 # First, check the format of the line:
6871 cat >"\$tmp/defines.sed" <<\\CEOF
6872 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6873 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6875 :def
6876 _ACEOF
6877 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6878 echo 'CEOF
6879 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6880 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6881 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6882 grep . conftest.tail >/dev/null || break
6883 rm -f conftest.defines
6884 mv conftest.tail conftest.defines
6885 done
6886 rm -f conftest.defines conftest.tail
6888 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6889 cat >>$CONFIG_STATUS <<\_ACEOF
6890 if test x"$ac_file" != x-; then
6891 echo "/* $configure_input */" >"$tmp/config.h"
6892 cat "$ac_result" >>"$tmp/config.h"
6893 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6894 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6895 echo "$as_me: $ac_file is unchanged" >&6;}
6896 else
6897 rm -f $ac_file
6898 mv "$tmp/config.h" $ac_file
6900 else
6901 echo "/* $configure_input */"
6902 cat "$ac_result"
6904 rm -f "$tmp/out12"
6908 esac
6911 case $ac_file$ac_mode in
6912 "config.h":H) echo timestamp > stamp-h ;;
6914 esac
6915 done # for ac_tag
6918 { (exit 0); exit 0; }
6919 _ACEOF
6920 chmod +x $CONFIG_STATUS
6921 ac_clean_files=$ac_clean_files_save
6924 # configure is writing to config.log, and then calls config.status.
6925 # config.status does its own redirection, appending to config.log.
6926 # Unfortunately, on DOS this fails, as config.log is still kept open
6927 # by configure, so config.status won't be able to write to it; its
6928 # output is simply discarded. So we exec the FD to /dev/null,
6929 # effectively closing config.log, so it can be properly (re)opened and
6930 # appended to by config.status. When coming back to configure, we
6931 # need to make the FD available again.
6932 if test "$no_create" != yes; then
6933 ac_cs_success=:
6934 ac_config_status_args=
6935 test "$silent" = yes &&
6936 ac_config_status_args="$ac_config_status_args --quiet"
6937 exec 5>/dev/null
6938 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6939 exec 5>>config.log
6940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6941 # would make configure fail if this is the last instruction.
6942 $ac_cs_success || { (exit 1); exit 1; }