Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / configure
blobc328f7b2e66b23596ecd17fcb40072b0ef5f87d6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="tree.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='SHELL
639 PATH_SEPARATOR
640 PACKAGE_NAME
641 PACKAGE_TARNAME
642 PACKAGE_VERSION
643 PACKAGE_STRING
644 PACKAGE_BUGREPORT
645 exec_prefix
646 prefix
647 program_transform_name
648 bindir
649 sbindir
650 libexecdir
651 datarootdir
652 datadir
653 sysconfdir
654 sharedstatedir
655 localstatedir
656 includedir
657 oldincludedir
658 docdir
659 infodir
660 htmldir
661 dvidir
662 pdfdir
663 psdir
664 libdir
665 localedir
666 mandir
667 DEFS
668 ECHO_C
669 ECHO_N
670 ECHO_T
671 LIBS
672 build_alias
673 host_alias
674 target_alias
675 build
676 build_cpu
677 build_vendor
678 build_os
679 host
680 host_cpu
681 host_vendor
682 host_os
683 target
684 target_cpu
685 target_vendor
686 target_os
687 target_noncanonical
688 build_subdir
689 host_subdir
690 target_subdir
691 GENINSRC
693 CFLAGS
694 LDFLAGS
695 CPPFLAGS
696 ac_ct_CC
697 EXEEXT
698 OBJEXT
699 NO_MINUS_C_MINUS_O
700 OUTPUT_OPTION
702 GREP
703 EGREP
704 strict1_warn
705 warn_cflags
706 WERROR
707 nocommon_flag
708 TREEBROWSER
709 valgrind_path
710 valgrind_path_defines
711 valgrind_command
712 coverage_flags
713 enable_multilib
714 enable_shared
715 TARGET_SYSTEM_ROOT
716 TARGET_SYSTEM_ROOT_DEFINE
717 CROSS_SYSTEM_HEADER_DIR
718 onestep
719 SET_MAKE
721 LN_S
723 RANLIB
724 ranlib_flags
725 INSTALL
726 INSTALL_PROGRAM
727 INSTALL_DATA
728 make_compare_target
729 have_mktemp_command
730 MAKEINFO
731 BUILD_INFO
732 GENERATED_MANPAGES
733 FLEX
734 BISON
737 stage1_cflags
738 COLLECT2_LIBS
739 GNAT_LIBEXC
740 LDEXP_LIB
741 TARGET_GETGROUPS_T
742 LIBICONV
743 LTLIBICONV
744 LIBICONV_DEP
745 manext
746 objext
747 gthread_flags
748 extra_modes_file
749 extra_opt_files
750 USE_NLS
751 LIBINTL
752 LIBINTL_DEP
753 INCINTL
754 XGETTEXT
755 GMSGFMT
756 POSUB
757 CATALOGS
758 host_cc_for_libada
759 CROSS
761 SYSTEM_HEADER_DIR
762 inhibit_libc
763 CC_FOR_BUILD
764 BUILD_CFLAGS
765 STMP_FIXINC
766 STMP_FIXPROTO
767 collect2
768 gcc_cv_as
769 ORIGINAL_AS_FOR_TARGET
770 gcc_cv_ld
771 ORIGINAL_LD_FOR_TARGET
772 gcc_cv_nm
773 ORIGINAL_NM_FOR_TARGET
774 gcc_cv_objdump
775 ORIGINAL_OBJDUMP_FOR_TARGET
776 libgcc_visibility
778 zlibdir
779 zlibinc
780 MAINT
781 gcc_tooldir
782 dollar
783 slibdir
784 objdir
785 subdirs
786 srcdir
787 all_boot_languages
788 all_compilers
789 all_gtfiles
790 all_gtfiles_files_langs
791 all_gtfiles_files_files
792 all_lang_makefrags
793 all_lang_makefiles
794 all_languages
795 all_stagestuff
796 build_exeext
797 build_install_headers_dir
798 build_xm_file_list
799 build_xm_include_list
800 build_xm_defines
801 check_languages
802 cc_set_by_configure
803 quoted_cc_set_by_configure
804 cpp_install_dir
805 xmake_file
806 tmake_file
807 extra_gcc_objs
808 extra_headers_list
809 extra_objs
810 extra_parts
811 extra_passes
812 extra_programs
813 float_h_file
814 gcc_config_arguments
815 gcc_gxx_include_dir
816 libstdcxx_incdir
817 host_exeext
818 host_xm_file_list
819 host_xm_include_list
820 host_xm_defines
821 out_host_hook_obj
822 install
823 lang_opt_files
824 lang_specs_files
825 lang_tree_files
826 local_prefix
827 md_file
828 objc_boehm_gc
829 out_file
830 out_object_file
831 stage_prefix_set_by_configure
832 quoted_stage_prefix_set_by_configure
833 thread_file
834 tm_file_list
835 tm_include_list
836 tm_defines
837 tm_p_file_list
838 tm_p_include_list
839 xm_file_list
840 xm_include_list
841 xm_defines
842 c_target_objs
843 cxx_target_objs
844 target_cpu_default
845 GMPLIBS
846 GMPINC
847 LIBOBJS
848 LTLIBOBJS'
849 ac_subst_files='language_hooks'
850 ac_user_opts='
851 enable_option_checking
852 with_local_prefix
853 with_gxx_include_dir
854 with_cpp_install_dir
855 enable_generated_files_in_srcdir
856 with_gnu_ld
857 with_ld
858 with_demangler_in_ld
859 with_gnu_as
860 with_as
861 enable_werror_always
862 enable_werror
863 enable_checking
864 enable_mapped_location
865 enable_coverage
866 enable_gather_detailed_mem_stats
867 with_stabs
868 enable_multilib
869 enable___cxa_atexit
870 enable_threads
871 enable_tls
872 enable_objc_gc
873 with_dwarf2
874 enable_shared
875 with_build_sysroot
876 with_sysroot
877 enable_intermodule
878 enable_languages
879 enable_rpath
880 with_libiconv_prefix
881 enable_initfini_array
882 enable_sjlj_exceptions
883 with_system_libunwind
884 enable_secureplt
885 enable_win32_registry
886 with_gc
887 with_system_zlib
888 enable_maintainer_mode
889 enable_version_specific_runtime_libs
890 with_slibdir
892 ac_precious_vars='build_alias
893 host_alias
894 target_alias
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
901 GMPLIBS
902 GMPINC'
905 # Initialize some variables set by options.
906 ac_init_help=
907 ac_init_version=false
908 ac_unrecognized_opts=
909 ac_unrecognized_sep=
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
912 cache_file=/dev/null
913 exec_prefix=NONE
914 no_create=
915 no_recursion=
916 prefix=NONE
917 program_prefix=NONE
918 program_suffix=NONE
919 program_transform_name=s,x,x,
920 silent=
921 site=
922 srcdir=
923 verbose=
924 x_includes=NONE
925 x_libraries=NONE
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE}'
944 infodir='${datarootdir}/info'
945 htmldir='${docdir}'
946 dvidir='${docdir}'
947 pdfdir='${docdir}'
948 psdir='${docdir}'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
953 ac_prev=
954 ac_dashdash=
955 for ac_option
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
960 ac_prev=
961 continue
964 case $ac_option in
965 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 *) ac_optarg=yes ;;
967 esac
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
973 ac_dashdash=yes ;;
975 -bindir | --bindir | --bindi | --bind | --bin | --bi)
976 ac_prev=bindir ;;
977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978 bindir=$ac_optarg ;;
980 -build | --build | --buil | --bui | --bu)
981 ac_prev=build_alias ;;
982 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983 build_alias=$ac_optarg ;;
985 -cache-file | --cache-file | --cache-fil | --cache-fi \
986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987 ac_prev=cache_file ;;
988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990 cache_file=$ac_optarg ;;
992 --config-cache | -C)
993 cache_file=config.cache ;;
995 -datadir | --datadir | --datadi | --datad)
996 ac_prev=datadir ;;
997 -datadir=* | --datadir=* | --datadi=* | --datad=*)
998 datadir=$ac_optarg ;;
1000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001 | --dataroo | --dataro | --datar)
1002 ac_prev=datarootdir ;;
1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005 datarootdir=$ac_optarg ;;
1007 -disable-* | --disable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=\$ac_optarg ;;
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
1058 exec_prefix=$ac_optarg ;;
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
1071 -host | --host | --hos | --ho)
1072 ac_prev=host_alias ;;
1073 -host=* | --host=* | --hos=* | --ho=*)
1074 host_alias=$ac_optarg ;;
1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 ac_prev=htmldir ;;
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 | --ht=*)
1080 htmldir=$ac_optarg ;;
1082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
1087 includedir=$ac_optarg ;;
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092 infodir=$ac_optarg ;;
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097 libdir=$ac_optarg ;;
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
1104 libexecdir=$ac_optarg ;;
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
1112 | --localstate | --localstat | --localsta | --localst | --locals)
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116 localstatedir=$ac_optarg ;;
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121 mandir=$ac_optarg ;;
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1125 with_fp=no ;;
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128 | --no-cr | --no-c | -n)
1129 no_create=yes ;;
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 no_recursion=yes ;;
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142 oldincludedir=$ac_optarg ;;
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147 prefix=$ac_optarg ;;
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154 program_prefix=$ac_optarg ;;
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161 program_suffix=$ac_optarg ;;
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
1178 program_transform_name=$ac_optarg ;;
1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 ac_prev=pdfdir ;;
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1185 -psdir | --psdir | --psdi | --psd | --ps)
1186 ac_prev=psdir ;;
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 psdir=$ac_optarg ;;
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1192 silent=yes ;;
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 ac_prev=sbindir ;;
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 | --sbi=* | --sb=*)
1198 sbindir=$ac_optarg ;;
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1203 | --sha | --sh)
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 | --sha=* | --sh=*)
1209 sharedstatedir=$ac_optarg ;;
1211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
1214 site=$ac_optarg ;;
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219 srcdir=$ac_optarg ;;
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226 sysconfdir=$ac_optarg ;;
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
1229 ac_prev=target_alias ;;
1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231 target_alias=$ac_optarg ;;
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
1239 -with-* | --with-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=\$ac_optarg ;;
1256 -without-* | --without-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1261 { (exit 1); exit 1; }; }
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1266 "with_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=no ;;
1273 --x)
1274 # Obsolete; use --with-x.
1275 with_x=yes ;;
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1291 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1292 Try \`$0 --help' for more information." >&2
1293 { (exit 1); exit 1; }; }
1296 *=*)
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1300 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1301 { (exit 1); exit 1; }; }
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1313 esac
1314 done
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1319 { (exit 1); exit 1; }; }
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1324 no) ;;
1325 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1326 { (exit 1); exit 1; }; } ;;
1327 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328 esac
1331 # Check all directory arguments for consistency.
1332 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val=\$$ac_var
1338 # Remove trailing slashes.
1339 case $ac_val in
1340 */ )
1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\$ac_val;;
1343 esac
1344 # Be sure to have absolute directory names.
1345 case $ac_val in
1346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348 esac
1349 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1350 { (exit 1); exit 1; }; }
1351 done
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1356 build=$build_alias
1357 host=$host_alias
1358 target=$target_alias
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x; then
1362 if test "x$build_alias" = x; then
1363 cross_compiling=maybe
1364 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1365 If a cross compiler is detected then cross compile mode will be used." >&2
1366 elif test "x$build_alias" != "x$host_alias"; then
1367 cross_compiling=yes
1371 ac_tool_prefix=
1372 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374 test "$silent" = yes && exec 6>/dev/null
1377 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1378 ac_ls_di=`ls -di .` &&
1379 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1380 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1381 { (exit 1); exit 1; }; }
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1384 { (exit 1); exit 1; }; }
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir=`$as_dirname -- "$as_myself" ||
1392 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$as_myself" : 'X\(//\)[^/]' \| \
1394 X"$as_myself" : 'X\(//\)$' \| \
1395 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396 $as_echo X"$as_myself" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 s//\1/
1401 /^X\(\/\/\)[^/].*/{
1402 s//\1/
1405 /^X\(\/\/\)$/{
1406 s//\1/
1409 /^X\(\/\).*/{
1410 s//\1/
1413 s/.*/./; q'`
1414 srcdir=$ac_confdir
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 srcdir=..
1418 else
1419 ac_srcdir_defaulted=no
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1424 { (exit 1); exit 1; }; }
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 ac_abs_confdir=`(
1428 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1429 { (exit 1); exit 1; }; }
1430 pwd)`
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1438 case $srcdir in
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 esac
1441 for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 done
1449 # Report the --help message.
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
1455 \`configure' configures this package to adapt to many kinds of systems.
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1462 Defaults for the options are specified in brackets.
1464 Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 [PREFIX]
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1486 For better control, use the options below.
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1508 _ACEOF
1510 cat <<\_ACEOF
1512 Program names:
1513 --program-prefix=PREFIX prepend PREFIX to installed program names
1514 --program-suffix=SUFFIX append SUFFIX to installed program names
1515 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517 System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 --target=TARGET configure for building compilers for TARGET [HOST]
1521 _ACEOF
1524 if test -n "$ac_init_help"; then
1526 cat <<\_ACEOF
1528 Optional Features:
1529 --disable-option-checking ignore unrecognized --enable/--with options
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --enable-generated-files-in-srcdir
1533 put copies of generated files in source dir
1534 intended for creating source tarballs for users
1535 without texinfo bison or flex.
1536 --enable-werror-always enable -Werror always
1537 --enable-werror enable -Werror in bootstrap stage2 and later
1538 --enable-checking=LIST
1539 enable expensive run-time checks. With LIST,
1540 enable only specific categories of checks.
1541 Categories are: yes,no,all,none,release.
1542 Flags are: assert,fold,gc,gcac,misc,
1543 rtlflag,rtl,runtime,tree,valgrind.
1544 --enable-mapped-location location_t is fileline integer cookie
1545 --enable-coverage=LEVEL
1546 enable compiler's code coverage collection.
1547 Use to measure compiler performance and locate
1548 unused parts of the compiler. With LEVEL, specify
1549 optimization. Values are opt, noopt,
1550 default is noopt
1551 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1552 --enable-multilib enable library support for multiple ABIs
1553 --enable-__cxa_atexit enable __cxa_atexit for C++
1554 --enable-threads enable thread usage for target GCC
1555 --enable-threads=LIB use LIB thread package for target GCC
1556 --enable-tls enable or disable generation of tls code
1557 overriding the assembler check for tls support
1558 --enable-objc-gc enable the use of Boehm's garbage collector with
1559 the GNU Objective-C runtime
1560 --disable-shared don't provide a shared libgcc
1561 --enable-intermodule build the compiler in one step
1562 --enable-languages=LIST specify which front-ends to build
1563 --disable-rpath do not hardcode runtime library paths
1564 --enable-initfini-array use .init_array/.fini_array sections
1565 --enable-sjlj-exceptions
1566 arrange to use setjmp/longjmp exception handling
1567 --enable-secureplt enable -msecure-plt by default for PowerPC
1568 --disable-win32-registry
1569 disable lookup of installation paths in the
1570 Registry on Windows hosts
1571 --enable-win32-registry enable registry lookup (default)
1572 --enable-win32-registry=KEY
1573 use KEY instead of GCC version as the last portion
1574 of the registry key
1575 --enable-maintainer-mode
1576 enable make rules and dependencies not useful
1577 (and sometimes confusing) to the casual installer
1578 --enable-version-specific-runtime-libs
1579 specify that runtime libraries should be
1580 installed in a compiler-specific directory
1582 Optional Packages:
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1585 --with-local-prefix=DIR specifies directory to put local include
1586 --with-gxx-include-dir=DIR
1587 specifies directory to put g++ header files
1588 --with-cpp-install-dir=DIR
1589 install the user visible C preprocessor in DIR
1590 (relative to PREFIX) as well as PREFIX/bin
1591 --with-gnu-ld arrange to work with GNU ld.
1592 --with-ld arrange to use the specified ld (full pathname)
1593 --with-demangler-in-ld try to use demangler in GNU ld.
1594 --with-gnu-as arrange to work with GNU as
1595 --with-as arrange to use the specified as (full pathname)
1596 --with-stabs arrange to use stabs instead of host debug format
1597 --with-dwarf2 force the default debug format to be DWARF 2
1598 --with-build-sysroot=sysroot
1599 use sysroot as the system root during the build
1600 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1601 --with-gnu-ld assume the C compiler uses GNU ld default=no
1602 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1603 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1604 --with-system-libunwind use installed libunwind
1605 --with-gc={page,zone} choose the garbage collection mechanism to use
1606 with the compiler
1607 --with-system-zlib use installed libz
1608 --with-slibdir=DIR shared libraries in DIR LIBDIR
1610 Some influential environment variables:
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
1615 LIBS libraries to pass to the linker, e.g. -l<library>
1616 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
1618 CPP C preprocessor
1619 GMPLIBS How to link GMP
1620 GMPINC How to find GMP include files
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1625 _ACEOF
1626 ac_status=$?
1629 if test "$ac_init_help" = "recursive"; then
1630 # If there are subdirs, report their specific --help.
1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632 test -d "$ac_dir" ||
1633 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1634 continue
1635 ac_builddir=.
1637 case "$ac_dir" in
1638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1641 # A ".." for each directory in $ac_dir_suffix.
1642 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1643 case $ac_top_builddir_sub in
1644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 esac ;;
1647 esac
1648 ac_abs_top_builddir=$ac_pwd
1649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650 # for backward compatibility:
1651 ac_top_builddir=$ac_top_build_prefix
1653 case $srcdir in
1654 .) # We are building in place.
1655 ac_srcdir=.
1656 ac_top_srcdir=$ac_top_builddir_sub
1657 ac_abs_top_srcdir=$ac_pwd ;;
1658 [\\/]* | ?:[\\/]* ) # Absolute name.
1659 ac_srcdir=$srcdir$ac_dir_suffix;
1660 ac_top_srcdir=$srcdir
1661 ac_abs_top_srcdir=$srcdir ;;
1662 *) # Relative name.
1663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664 ac_top_srcdir=$ac_top_build_prefix$srcdir
1665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666 esac
1667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669 cd "$ac_dir" || { ac_status=$?; continue; }
1670 # Check for guested configure.
1671 if test -f "$ac_srcdir/configure.gnu"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674 elif test -f "$ac_srcdir/configure"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure" --help=recursive
1677 else
1678 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679 fi || ac_status=$?
1680 cd "$ac_pwd" || { ac_status=$?; break; }
1681 done
1684 test -n "$ac_init_help" && exit $ac_status
1685 if $ac_init_version; then
1686 cat <<\_ACEOF
1687 configure
1688 generated by GNU Autoconf 2.62
1690 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1691 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1694 _ACEOF
1695 exit
1697 cat >config.log <<_ACEOF
1698 This file contains any messages produced by compilers while
1699 running configure, to aid debugging if configure makes a mistake.
1701 It was created by $as_me, which was
1702 generated by GNU Autoconf 2.62. Invocation command line was
1704 $ $0 $@
1706 _ACEOF
1707 exec 5>>config.log
1709 cat <<_ASUNAME
1710 ## --------- ##
1711 ## Platform. ##
1712 ## --------- ##
1714 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1715 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1716 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1717 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1718 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1720 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1721 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1723 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1724 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1725 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1726 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1727 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1728 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1729 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1731 _ASUNAME
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 $as_echo "PATH: $as_dir"
1739 done
1740 IFS=$as_save_IFS
1742 } >&5
1744 cat >&5 <<_ACEOF
1747 ## ----------- ##
1748 ## Core tests. ##
1749 ## ----------- ##
1751 _ACEOF
1754 # Keep a trace of the command line.
1755 # Strip out --no-create and --no-recursion so they do not pile up.
1756 # Strip out --silent because we don't want to record it for future runs.
1757 # Also quote any args containing shell meta-characters.
1758 # Make two passes to allow for proper duplicate-argument suppression.
1759 ac_configure_args=
1760 ac_configure_args0=
1761 ac_configure_args1=
1762 ac_must_keep_next=false
1763 for ac_pass in 1 2
1765 for ac_arg
1767 case $ac_arg in
1768 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1770 | -silent | --silent | --silen | --sile | --sil)
1771 continue ;;
1772 *\'*)
1773 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 esac
1775 case $ac_pass in
1776 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1778 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1779 if test $ac_must_keep_next = true; then
1780 ac_must_keep_next=false # Got value, back to normal.
1781 else
1782 case $ac_arg in
1783 *=* | --config-cache | -C | -disable-* | --disable-* \
1784 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1785 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1786 | -with-* | --with-* | -without-* | --without-* | --x)
1787 case "$ac_configure_args0 " in
1788 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789 esac
1791 -* ) ac_must_keep_next=true ;;
1792 esac
1794 ac_configure_args="$ac_configure_args '$ac_arg'"
1796 esac
1797 done
1798 done
1799 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1800 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1802 # When interrupted or exit'd, cleanup temporary files, and complete
1803 # config.log. We remove comments because anyway the quotes in there
1804 # would cause problems or look ugly.
1805 # WARNING: Use '\'' to represent an apostrophe within the trap.
1806 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1807 trap 'exit_status=$?
1808 # Save into config.log some information that might help in debugging.
1810 echo
1812 cat <<\_ASBOX
1813 ## ---------------- ##
1814 ## Cache variables. ##
1815 ## ---------------- ##
1816 _ASBOX
1817 echo
1818 # The following way of writing the cache mishandles newlines in values,
1820 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1821 eval ac_val=\$$ac_var
1822 case $ac_val in #(
1823 *${as_nl}*)
1824 case $ac_var in #(
1825 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1826 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1827 esac
1828 case $ac_var in #(
1829 _ | IFS | as_nl) ;; #(
1830 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1831 *) $as_unset $ac_var ;;
1832 esac ;;
1833 esac
1834 done
1835 (set) 2>&1 |
1836 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1837 *${as_nl}ac_space=\ *)
1838 sed -n \
1839 "s/'\''/'\''\\\\'\'''\''/g;
1840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1841 ;; #(
1843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1845 esac |
1846 sort
1848 echo
1850 cat <<\_ASBOX
1851 ## ----------------- ##
1852 ## Output variables. ##
1853 ## ----------------- ##
1854 _ASBOX
1855 echo
1856 for ac_var in $ac_subst_vars
1858 eval ac_val=\$$ac_var
1859 case $ac_val in
1860 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1861 esac
1862 $as_echo "$ac_var='\''$ac_val'\''"
1863 done | sort
1864 echo
1866 if test -n "$ac_subst_files"; then
1867 cat <<\_ASBOX
1868 ## ------------------- ##
1869 ## File substitutions. ##
1870 ## ------------------- ##
1871 _ASBOX
1872 echo
1873 for ac_var in $ac_subst_files
1875 eval ac_val=\$$ac_var
1876 case $ac_val in
1877 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878 esac
1879 $as_echo "$ac_var='\''$ac_val'\''"
1880 done | sort
1881 echo
1884 if test -s confdefs.h; then
1885 cat <<\_ASBOX
1886 ## ----------- ##
1887 ## confdefs.h. ##
1888 ## ----------- ##
1889 _ASBOX
1890 echo
1891 cat confdefs.h
1892 echo
1894 test "$ac_signal" != 0 &&
1895 $as_echo "$as_me: caught signal $ac_signal"
1896 $as_echo "$as_me: exit $exit_status"
1897 } >&5
1898 rm -f core *.core core.conftest.* &&
1899 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900 exit $exit_status
1902 for ac_signal in 1 2 13 15; do
1903 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1904 done
1905 ac_signal=0
1907 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1908 rm -f -r conftest* confdefs.h
1910 # Predefined preprocessor variables.
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_NAME "$PACKAGE_NAME"
1914 _ACEOF
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1919 _ACEOF
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1924 _ACEOF
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_STRING "$PACKAGE_STRING"
1929 _ACEOF
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1934 _ACEOF
1937 # Let the site file select an alternate cache file if it wants to.
1938 # Prefer an explicitly selected file to automatically selected ones.
1939 ac_site_file1=NONE
1940 ac_site_file2=NONE
1941 if test -n "$CONFIG_SITE"; then
1942 ac_site_file1=$CONFIG_SITE
1943 elif test "x$prefix" != xNONE; then
1944 ac_site_file1=$prefix/share/config.site
1945 ac_site_file2=$prefix/etc/config.site
1946 else
1947 ac_site_file1=$ac_default_prefix/share/config.site
1948 ac_site_file2=$ac_default_prefix/etc/config.site
1950 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1952 test "x$ac_site_file" = xNONE && continue
1953 if test -r "$ac_site_file"; then
1954 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1955 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1956 sed 's/^/| /' "$ac_site_file" >&5
1957 . "$ac_site_file"
1959 done
1961 if test -r "$cache_file"; then
1962 # Some versions of bash will fail to source /dev/null (special
1963 # files actually), so we avoid doing that.
1964 if test -f "$cache_file"; then
1965 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1966 $as_echo "$as_me: loading cache $cache_file" >&6;}
1967 case $cache_file in
1968 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1969 *) . "./$cache_file";;
1970 esac
1972 else
1973 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1974 $as_echo "$as_me: creating cache $cache_file" >&6;}
1975 >$cache_file
1978 # Check that the precious variables saved in the cache have kept the same
1979 # value.
1980 ac_cache_corrupted=false
1981 for ac_var in $ac_precious_vars; do
1982 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1983 eval ac_new_set=\$ac_env_${ac_var}_set
1984 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1985 eval ac_new_val=\$ac_env_${ac_var}_value
1986 case $ac_old_set,$ac_new_set in
1987 set,)
1988 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1989 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1990 ac_cache_corrupted=: ;;
1991 ,set)
1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1993 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1994 ac_cache_corrupted=: ;;
1995 ,);;
1997 if test "x$ac_old_val" != "x$ac_new_val"; then
1998 # differences in whitespace do not lead to failure.
1999 ac_old_val_w=`echo x $ac_old_val`
2000 ac_new_val_w=`echo x $ac_new_val`
2001 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2002 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2003 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2004 ac_cache_corrupted=:
2005 else
2006 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2007 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2008 eval $ac_var=\$ac_old_val
2010 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2011 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2012 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2013 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2014 fi;;
2015 esac
2016 # Pass precious variables to config.status.
2017 if test "$ac_new_set" = set; then
2018 case $ac_new_val in
2019 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2020 *) ac_arg=$ac_var=$ac_new_val ;;
2021 esac
2022 case " $ac_configure_args " in
2023 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2024 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2025 esac
2027 done
2028 if $ac_cache_corrupted; then
2029 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2030 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2031 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2032 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2033 { (exit 1); exit 1; }; }
2052 ac_ext=c
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2063 gcc_version=`cat $srcdir/BASE-VER`
2065 # Determine the host, build, and target systems
2066 ac_aux_dir=
2067 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2068 if test -f "$ac_dir/install-sh"; then
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/install-sh -c"
2071 break
2072 elif test -f "$ac_dir/install.sh"; then
2073 ac_aux_dir=$ac_dir
2074 ac_install_sh="$ac_aux_dir/install.sh -c"
2075 break
2076 elif test -f "$ac_dir/shtool"; then
2077 ac_aux_dir=$ac_dir
2078 ac_install_sh="$ac_aux_dir/shtool install -c"
2079 break
2081 done
2082 if test -z "$ac_aux_dir"; then
2083 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2084 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2085 { (exit 1); exit 1; }; }
2088 # These three variables are undocumented and unsupported,
2089 # and are intended to be withdrawn in a future Autoconf release.
2090 # They can cause serious problems if a builder's source tree is in a directory
2091 # whose full name contains unusual characters.
2092 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2093 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2094 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2097 # Make sure we can run config.sub.
2098 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2099 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2100 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2101 { (exit 1); exit 1; }; }
2103 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2104 $as_echo_n "checking build system type... " >&6; }
2105 if test "${ac_cv_build+set}" = set; then
2106 $as_echo_n "(cached) " >&6
2107 else
2108 ac_build_alias=$build_alias
2109 test "x$ac_build_alias" = x &&
2110 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2111 test "x$ac_build_alias" = x &&
2112 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2113 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2114 { (exit 1); exit 1; }; }
2115 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2116 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2117 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2118 { (exit 1); exit 1; }; }
2121 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2122 $as_echo "$ac_cv_build" >&6; }
2123 case $ac_cv_build in
2124 *-*-*) ;;
2125 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2126 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2127 { (exit 1); exit 1; }; };;
2128 esac
2129 build=$ac_cv_build
2130 ac_save_IFS=$IFS; IFS='-'
2131 set x $ac_cv_build
2132 shift
2133 build_cpu=$1
2134 build_vendor=$2
2135 shift; shift
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2138 build_os=$*
2139 IFS=$ac_save_IFS
2140 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2143 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2144 $as_echo_n "checking host system type... " >&6; }
2145 if test "${ac_cv_host+set}" = set; then
2146 $as_echo_n "(cached) " >&6
2147 else
2148 if test "x$host_alias" = x; then
2149 ac_cv_host=$ac_cv_build
2150 else
2151 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2152 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2153 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2154 { (exit 1); exit 1; }; }
2158 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2159 $as_echo "$ac_cv_host" >&6; }
2160 case $ac_cv_host in
2161 *-*-*) ;;
2162 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2163 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2164 { (exit 1); exit 1; }; };;
2165 esac
2166 host=$ac_cv_host
2167 ac_save_IFS=$IFS; IFS='-'
2168 set x $ac_cv_host
2169 shift
2170 host_cpu=$1
2171 host_vendor=$2
2172 shift; shift
2173 # Remember, the first character of IFS is used to create $*,
2174 # except with old shells:
2175 host_os=$*
2176 IFS=$ac_save_IFS
2177 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2180 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2181 $as_echo_n "checking target system type... " >&6; }
2182 if test "${ac_cv_target+set}" = set; then
2183 $as_echo_n "(cached) " >&6
2184 else
2185 if test "x$target_alias" = x; then
2186 ac_cv_target=$ac_cv_host
2187 else
2188 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2189 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2190 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2191 { (exit 1); exit 1; }; }
2195 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2196 $as_echo "$ac_cv_target" >&6; }
2197 case $ac_cv_target in
2198 *-*-*) ;;
2199 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2200 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2201 { (exit 1); exit 1; }; };;
2202 esac
2203 target=$ac_cv_target
2204 ac_save_IFS=$IFS; IFS='-'
2205 set x $ac_cv_target
2206 shift
2207 target_cpu=$1
2208 target_vendor=$2
2209 shift; shift
2210 # Remember, the first character of IFS is used to create $*,
2211 # except with old shells:
2212 target_os=$*
2213 IFS=$ac_save_IFS
2214 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2217 # The aliases save the names the user supplied, while $host etc.
2218 # will get canonicalized.
2219 test -n "$target_alias" &&
2220 test "$program_prefix$program_suffix$program_transform_name" = \
2221 NONENONEs,x,x, &&
2222 program_prefix=${target_alias}-
2224 # Determine the noncanonical target name, for directory use.
2225 case ${build_alias} in
2226 "") build_noncanonical=${build} ;;
2227 *) build_noncanonical=${build_alias} ;;
2228 esac
2230 case ${host_alias} in
2231 "") host_noncanonical=${build_noncanonical} ;;
2232 *) host_noncanonical=${host_alias} ;;
2233 esac
2235 case ${target_alias} in
2236 "") target_noncanonical=${host_noncanonical} ;;
2237 *) target_noncanonical=${target_alias} ;;
2238 esac
2243 # Determine the target- and build-specific subdirectories
2244 # Prefix 'build-' so this never conflicts with target_subdir.
2245 build_subdir="build-${build_noncanonical}"
2246 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2247 if ( test $srcdir = . && test -d gcc ) \
2248 || test -d $srcdir/../host-${host_noncanonical}; then
2249 host_subdir="host-${host_noncanonical}"
2250 else
2251 host_subdir=.
2253 # No prefix.
2254 target_subdir=${target_noncanonical}
2257 # Set program_transform_name
2258 test "$program_prefix" != NONE &&
2259 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2260 # Use a double $ so make ignores it.
2261 test "$program_suffix" != NONE &&
2262 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2263 # Double any \ or $.
2264 # By default was `s,x,x', remove it if useless.
2265 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2266 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2269 # Check for bogus environment variables.
2270 # Test if LIBRARY_PATH contains the notation for the current directory
2271 # since this would lead to problems installing/building glibc.
2272 # LIBRARY_PATH contains the current directory if one of the following
2273 # is true:
2274 # - one of the terminals (":" and ";") is the first or last sign
2275 # - two terminals occur directly after each other
2276 # - the path contains an element with a dot in it
2277 { $as_echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
2278 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
2279 case ${LIBRARY_PATH} in
2280 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2281 library_path_setting="contains current directory"
2284 library_path_setting="ok"
2286 esac
2287 { $as_echo "$as_me:$LINENO: result: $library_path_setting" >&5
2288 $as_echo "$library_path_setting" >&6; }
2289 if test "$library_path_setting" != "ok"; then
2290 { { $as_echo "$as_me:$LINENO: error:
2291 *** LIBRARY_PATH shouldn't contain the current directory when
2292 *** building gcc. Please change the environment variable
2293 *** and run configure again." >&5
2294 $as_echo "$as_me: error:
2295 *** LIBRARY_PATH shouldn't contain the current directory when
2296 *** building gcc. Please change the environment variable
2297 *** and run configure again." >&2;}
2298 { (exit 1); exit 1; }; }
2301 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
2302 # since this would lead to problems installing/building glibc.
2303 # GCC_EXEC_PREFIX contains the current directory if one of the following
2304 # is true:
2305 # - one of the terminals (":" and ";") is the first or last sign
2306 # - two terminals occur directly after each other
2307 # - the path contains an element with a dot in it
2308 { $as_echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
2309 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
2310 case ${GCC_EXEC_PREFIX} in
2311 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2312 gcc_exec_prefix_setting="contains current directory"
2315 gcc_exec_prefix_setting="ok"
2317 esac
2318 { $as_echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
2319 $as_echo "$gcc_exec_prefix_setting" >&6; }
2320 if test "$gcc_exec_prefix_setting" != "ok"; then
2321 { { $as_echo "$as_me:$LINENO: error:
2322 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2323 *** building gcc. Please change the environment variable
2324 *** and run configure again." >&5
2325 $as_echo "$as_me: error:
2326 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2327 *** building gcc. Please change the environment variable
2328 *** and run configure again." >&2;}
2329 { (exit 1); exit 1; }; }
2332 # -----------
2333 # Directories
2334 # -----------
2336 # Specify the local prefix
2337 local_prefix=
2339 # Check whether --with-local-prefix was given.
2340 if test "${with_local_prefix+set}" = set; then
2341 withval=$with_local_prefix; case "${withval}" in
2342 yes) { { $as_echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2343 $as_echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2344 { (exit 1); exit 1; }; } ;;
2345 no) ;;
2346 *) local_prefix=$with_local_prefix ;;
2347 esac
2351 # Default local prefix if it is empty
2352 if test x$local_prefix = x; then
2353 local_prefix=/usr/local
2356 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
2357 # passed in by the toplevel make and thus we'd get different behavior
2358 # depending on where we built the sources.
2359 gcc_gxx_include_dir=
2360 # Specify the g++ header file directory
2362 # Check whether --with-gxx-include-dir was given.
2363 if test "${with_gxx_include_dir+set}" = set; then
2364 withval=$with_gxx_include_dir; case "${withval}" in
2365 yes) { { $as_echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
2366 $as_echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
2367 { (exit 1); exit 1; }; } ;;
2368 no) ;;
2369 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
2370 esac
2374 if test x${gcc_gxx_include_dir} = x; then
2375 if test x${enable_version_specific_runtime_libs} = xyes; then
2376 gcc_gxx_include_dir='${libsubdir}/include/c++'
2377 else
2378 libstdcxx_incdir='c++/$(version)'
2379 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
2384 # Check whether --with-cpp_install_dir was given.
2385 if test "${with_cpp_install_dir+set}" = set; then
2386 withval=$with_cpp_install_dir; if test x$withval = xyes; then
2387 { { $as_echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
2388 $as_echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
2389 { (exit 1); exit 1; }; }
2390 elif test x$withval != xno; then
2391 cpp_install_dir=$withval
2396 # We would like to our source tree to be readonly. However when releases or
2397 # pre-releases are generated, the flex/bison generated files as well as the
2398 # various formats of manuals need to be included along with the rest of the
2399 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2400 # just that.
2402 { $as_echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
2403 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
2404 # Check whether --enable-generated-files-in-srcdir was given.
2405 if test "${enable_generated_files_in_srcdir+set}" = set; then
2406 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
2407 else
2408 generated_files_in_srcdir=no
2412 { $as_echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
2413 $as_echo "$generated_files_in_srcdir" >&6; }
2415 if test "$generated_files_in_srcdir" = "yes"; then
2416 GENINSRC=''
2417 else
2418 GENINSRC='#'
2422 # -------------------
2423 # Find default linker
2424 # -------------------
2426 # With GNU ld
2428 # Check whether --with-gnu-ld was given.
2429 if test "${with_gnu_ld+set}" = set; then
2430 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
2431 else
2432 gnu_ld_flag=no
2436 # With pre-defined ld
2438 # Check whether --with-ld was given.
2439 if test "${with_ld+set}" = set; then
2440 withval=$with_ld; DEFAULT_LINKER="$with_ld"
2443 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2444 if test ! -x "$DEFAULT_LINKER"; then
2445 { { $as_echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
2446 $as_echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
2447 { (exit 1); exit 1; }; }
2448 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2449 gnu_ld_flag=yes
2452 cat >>confdefs.h <<_ACEOF
2453 #define DEFAULT_LINKER "$DEFAULT_LINKER"
2454 _ACEOF
2458 { $as_echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2459 $as_echo_n "checking whether a default linker was specified... " >&6; }
2460 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2461 if test x"$gnu_ld_flag" = x"no"; then
2462 { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2463 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
2464 else
2465 { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2466 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
2468 else
2469 { $as_echo "$as_me:$LINENO: result: no" >&5
2470 $as_echo "no" >&6; }
2473 # With demangler in GNU ld
2475 # Check whether --with-demangler-in-ld was given.
2476 if test "${with_demangler_in_ld+set}" = set; then
2477 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
2478 else
2479 demangler_in_ld=no
2483 # ----------------------
2484 # Find default assembler
2485 # ----------------------
2487 # With GNU as
2489 # Check whether --with-gnu-as was given.
2490 if test "${with_gnu_as+set}" = set; then
2491 withval=$with_gnu_as; gas_flag="$with_gnu_as"
2492 else
2493 gas_flag=no
2498 # Check whether --with-as was given.
2499 if test "${with_as+set}" = set; then
2500 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
2503 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2504 if test ! -x "$DEFAULT_ASSEMBLER"; then
2505 { { $as_echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2506 $as_echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2507 { (exit 1); exit 1; }; }
2508 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2509 gas_flag=yes
2512 cat >>confdefs.h <<_ACEOF
2513 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2514 _ACEOF
2518 { $as_echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2519 $as_echo_n "checking whether a default assembler was specified... " >&6; }
2520 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2521 if test x"$gas_flag" = x"no"; then
2522 { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2523 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
2524 else
2525 { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2526 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
2528 else
2529 { $as_echo "$as_me:$LINENO: result: no" >&5
2530 $as_echo "no" >&6; }
2533 # ---------------
2534 # Find C compiler
2535 # ---------------
2537 # If a non-executable a.out is present (e.g. created by GNU as above even if
2538 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2539 # file, even when creating an executable, so an execution test fails.
2540 # Remove possible default executable files to avoid this.
2542 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2543 # Autoconf includes it.
2544 rm -f a.out a.exe b.out
2546 # Find the native compiler
2547 ac_ext=c
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552 if test -n "$ac_tool_prefix"; then
2553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2554 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then
2558 $as_echo_n "(cached) " >&6
2559 else
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2574 done
2575 done
2576 IFS=$as_save_IFS
2580 CC=$ac_cv_prog_CC
2581 if test -n "$CC"; then
2582 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2583 $as_echo "$CC" >&6; }
2584 else
2585 { $as_echo "$as_me:$LINENO: result: no" >&5
2586 $as_echo "no" >&6; }
2591 if test -z "$ac_cv_prog_CC"; then
2592 ac_ct_CC=$CC
2593 # Extract the first word of "gcc", so it can be a program name with args.
2594 set dummy gcc; ac_word=$2
2595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598 $as_echo_n "(cached) " >&6
2599 else
2600 if test -n "$ac_ct_CC"; then
2601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_ac_ct_CC="gcc"
2611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2614 done
2615 done
2616 IFS=$as_save_IFS
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 $as_echo "$ac_ct_CC" >&6; }
2624 else
2625 { $as_echo "$as_me:$LINENO: result: no" >&5
2626 $as_echo "no" >&6; }
2629 if test "x$ac_ct_CC" = x; then
2630 CC=""
2631 else
2632 case $cross_compiling:$ac_tool_warned in
2633 yes:)
2634 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2635 whose name does not start with the host triplet. If you think this
2636 configuration is useful to you, please write to autoconf@gnu.org." >&5
2637 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2638 whose name does not start with the host triplet. If you think this
2639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2640 ac_tool_warned=yes ;;
2641 esac
2642 CC=$ac_ct_CC
2644 else
2645 CC="$ac_cv_prog_CC"
2648 if test -z "$CC"; then
2649 if test -n "$ac_tool_prefix"; then
2650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2651 set dummy ${ac_tool_prefix}cc; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_CC+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2656 else
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_CC="${ac_tool_prefix}cc"
2668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2671 done
2672 done
2673 IFS=$as_save_IFS
2677 CC=$ac_cv_prog_CC
2678 if test -n "$CC"; then
2679 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2680 $as_echo "$CC" >&6; }
2681 else
2682 { $as_echo "$as_me:$LINENO: result: no" >&5
2683 $as_echo "no" >&6; }
2689 if test -z "$CC"; then
2690 # Extract the first word of "cc", so it can be a program name with args.
2691 set dummy cc; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700 ac_prog_rejected=no
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2709 ac_prog_rejected=yes
2710 continue
2712 ac_cv_prog_CC="cc"
2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2716 done
2717 done
2718 IFS=$as_save_IFS
2720 if test $ac_prog_rejected = yes; then
2721 # We found a bogon in the path, so make sure we never use it.
2722 set dummy $ac_cv_prog_CC
2723 shift
2724 if test $# != 0; then
2725 # We chose a different compiler from the bogus one.
2726 # However, it has the same basename, so the bogon will be chosen
2727 # first if we set CC to just the basename; use the full file name.
2728 shift
2729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2734 CC=$ac_cv_prog_CC
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2738 else
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740 $as_echo "no" >&6; }
2745 if test -z "$CC"; then
2746 if test -n "$ac_tool_prefix"; then
2747 for ac_prog in cl.exe
2749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then
2754 $as_echo_n "(cached) " >&6
2755 else
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2770 done
2771 done
2772 IFS=$as_save_IFS
2776 CC=$ac_cv_prog_CC
2777 if test -n "$CC"; then
2778 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2779 $as_echo "$CC" >&6; }
2780 else
2781 { $as_echo "$as_me:$LINENO: result: no" >&5
2782 $as_echo "no" >&6; }
2786 test -n "$CC" && break
2787 done
2789 if test -z "$CC"; then
2790 ac_ct_CC=$CC
2791 for ac_prog in cl.exe
2793 # Extract the first word of "$ac_prog", so it can be a program name with args.
2794 set dummy $ac_prog; ac_word=$2
2795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2798 $as_echo_n "(cached) " >&6
2799 else
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_ac_ct_CC="$ac_prog"
2811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2814 done
2815 done
2816 IFS=$as_save_IFS
2820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821 if test -n "$ac_ct_CC"; then
2822 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2823 $as_echo "$ac_ct_CC" >&6; }
2824 else
2825 { $as_echo "$as_me:$LINENO: result: no" >&5
2826 $as_echo "no" >&6; }
2830 test -n "$ac_ct_CC" && break
2831 done
2833 if test "x$ac_ct_CC" = x; then
2834 CC=""
2835 else
2836 case $cross_compiling:$ac_tool_warned in
2837 yes:)
2838 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2839 whose name does not start with the host triplet. If you think this
2840 configuration is useful to you, please write to autoconf@gnu.org." >&5
2841 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2842 whose name does not start with the host triplet. If you think this
2843 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2844 ac_tool_warned=yes ;;
2845 esac
2846 CC=$ac_ct_CC
2853 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details." >&5
2855 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2856 See \`config.log' for more details." >&2;}
2857 { (exit 1); exit 1; }; }
2859 # Provide some information about the compiler.
2860 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2861 set X $ac_compile
2862 ac_compiler=$2
2863 { (ac_try="$ac_compiler --version >&5"
2864 case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867 esac
2868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2869 $as_echo "$ac_try_echo") >&5
2870 (eval "$ac_compiler --version >&5") 2>&5
2871 ac_status=$?
2872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874 { (ac_try="$ac_compiler -v >&5"
2875 case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878 esac
2879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880 $as_echo "$ac_try_echo") >&5
2881 (eval "$ac_compiler -v >&5") 2>&5
2882 ac_status=$?
2883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }
2885 { (ac_try="$ac_compiler -V >&5"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2891 $as_echo "$ac_try_echo") >&5
2892 (eval "$ac_compiler -V >&5") 2>&5
2893 ac_status=$?
2894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2897 cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h. */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2905 main ()
2909 return 0;
2911 _ACEOF
2912 ac_clean_files_save=$ac_clean_files
2913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2914 # Try to create an executable without -o first, disregard a.out.
2915 # It will help us diagnose broken compilers, and finding out an intuition
2916 # of exeext.
2917 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2918 $as_echo_n "checking for C compiler default output file name... " >&6; }
2919 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2921 # The possible output files:
2922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2924 ac_rmfiles=
2925 for ac_file in $ac_files
2927 case $ac_file in
2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2929 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2930 esac
2931 done
2932 rm -f $ac_rmfiles
2934 if { (ac_try="$ac_link_default"
2935 case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938 esac
2939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940 $as_echo "$ac_try_echo") >&5
2941 (eval "$ac_link_default") 2>&5
2942 ac_status=$?
2943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
2945 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2947 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2948 # so that the user can short-circuit this test for compilers unknown to
2949 # Autoconf.
2950 for ac_file in $ac_files ''
2952 test -f "$ac_file" || continue
2953 case $ac_file in
2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2956 [ab].out )
2957 # We found the default executable, but exeext='' is most
2958 # certainly right.
2959 break;;
2960 *.* )
2961 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2962 then :; else
2963 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965 # We set ac_cv_exeext here because the later test for it is not
2966 # safe: cross compilers may not add the suffix if given an `-o'
2967 # argument, so we may need to know it at that point already.
2968 # Even if this section looks crufty: it has the advantage of
2969 # actually working.
2970 break;;
2972 break;;
2973 esac
2974 done
2975 test "$ac_cv_exeext" = no && ac_cv_exeext=
2977 else
2978 ac_file=''
2981 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2982 $as_echo "$ac_file" >&6; }
2983 if test -z "$ac_file"; then
2984 $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2988 See \`config.log' for more details." >&5
2989 $as_echo "$as_me: error: C compiler cannot create executables
2990 See \`config.log' for more details." >&2;}
2991 { (exit 77); exit 77; }; }
2994 ac_exeext=$ac_cv_exeext
2996 # Check that the compiler produces executables we can run. If not, either
2997 # the compiler is broken, or we cross compile.
2998 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2999 $as_echo_n "checking whether the C compiler works... " >&6; }
3000 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3001 # If not cross compiling, check that we can run a simple program.
3002 if test "$cross_compiling" != yes; then
3003 if { ac_try='./$ac_file'
3004 { (case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3009 $as_echo "$ac_try_echo") >&5
3010 (eval "$ac_try") 2>&5
3011 ac_status=$?
3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3014 cross_compiling=no
3015 else
3016 if test "$cross_compiling" = maybe; then
3017 cross_compiling=yes
3018 else
3019 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3020 If you meant to cross compile, use \`--host'.
3021 See \`config.log' for more details." >&5
3022 $as_echo "$as_me: error: cannot run C compiled programs.
3023 If you meant to cross compile, use \`--host'.
3024 See \`config.log' for more details." >&2;}
3025 { (exit 1); exit 1; }; }
3029 { $as_echo "$as_me:$LINENO: result: yes" >&5
3030 $as_echo "yes" >&6; }
3032 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3033 ac_clean_files=$ac_clean_files_save
3034 # Check that the compiler produces executables we can run. If not, either
3035 # the compiler is broken, or we cross compile.
3036 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3037 $as_echo_n "checking whether we are cross compiling... " >&6; }
3038 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3039 $as_echo "$cross_compiling" >&6; }
3041 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3042 $as_echo_n "checking for suffix of executables... " >&6; }
3043 if { (ac_try="$ac_link"
3044 case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047 esac
3048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049 $as_echo "$ac_try_echo") >&5
3050 (eval "$ac_link") 2>&5
3051 ac_status=$?
3052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; then
3054 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3055 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3056 # work properly (i.e., refer to `conftest.exe'), while it won't with
3057 # `rm'.
3058 for ac_file in conftest.exe conftest conftest.*; do
3059 test -f "$ac_file" || continue
3060 case $ac_file in
3061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3062 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3063 break;;
3064 * ) break;;
3065 esac
3066 done
3067 else
3068 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&5
3070 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3071 See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3075 rm -f conftest$ac_cv_exeext
3076 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3077 $as_echo "$ac_cv_exeext" >&6; }
3079 rm -f conftest.$ac_ext
3080 EXEEXT=$ac_cv_exeext
3081 ac_exeext=$EXEEXT
3082 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3083 $as_echo_n "checking for suffix of object files... " >&6; }
3084 if test "${ac_cv_objext+set}" = set; then
3085 $as_echo_n "(cached) " >&6
3086 else
3087 cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h. */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3095 main ()
3099 return 0;
3101 _ACEOF
3102 rm -f conftest.o conftest.obj
3103 if { (ac_try="$ac_compile"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3109 $as_echo "$ac_try_echo") >&5
3110 (eval "$ac_compile") 2>&5
3111 ac_status=$?
3112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; then
3114 for ac_file in conftest.o conftest.obj conftest.*; do
3115 test -f "$ac_file" || continue;
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3119 break;;
3120 esac
3121 done
3122 else
3123 $as_echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." >&5
3128 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3138 ac_objext=$OBJEXT
3139 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3143 else
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3152 main ()
3154 #ifndef __GNUC__
3155 choke me
3156 #endif
3159 return 0;
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169 $as_echo "$ac_try_echo") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
3180 ac_compiler_gnu=yes
3181 else
3182 $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3185 ac_compiler_gnu=no
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3192 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194 if test $ac_compiler_gnu = yes; then
3195 GCC=yes
3196 else
3197 GCC=
3199 ac_test_CFLAGS=${CFLAGS+set}
3200 ac_save_CFLAGS=$CFLAGS
3201 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3203 if test "${ac_cv_prog_cc_g+set}" = set; then
3204 $as_echo_n "(cached) " >&6
3205 else
3206 ac_save_c_werror_flag=$ac_c_werror_flag
3207 ac_c_werror_flag=yes
3208 ac_cv_prog_cc_g=no
3209 CFLAGS="-g"
3210 cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h. */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3218 main ()
3222 return 0;
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232 $as_echo "$ac_try_echo") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3243 ac_cv_prog_cc_g=yes
3244 else
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 CFLAGS=""
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3257 main ()
3261 return 0;
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3283 else
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3288 CFLAGS="-g"
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3297 main ()
3301 return 0;
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311 $as_echo "$ac_try_echo") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3322 ac_cv_prog_cc_g=yes
3323 else
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_c_werror_flag=$ac_save_c_werror_flag
3339 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3340 $as_echo "$ac_cv_prog_cc_g" >&6; }
3341 if test "$ac_test_CFLAGS" = set; then
3342 CFLAGS=$ac_save_CFLAGS
3343 elif test $ac_cv_prog_cc_g = yes; then
3344 if test "$GCC" = yes; then
3345 CFLAGS="-g -O2"
3346 else
3347 CFLAGS="-g"
3349 else
3350 if test "$GCC" = yes; then
3351 CFLAGS="-O2"
3352 else
3353 CFLAGS=
3356 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3357 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3358 if test "${ac_cv_prog_cc_c89+set}" = set; then
3359 $as_echo_n "(cached) " >&6
3360 else
3361 ac_cv_prog_cc_c89=no
3362 ac_save_CC=$CC
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369 #include <stdarg.h>
3370 #include <stdio.h>
3371 #include <sys/types.h>
3372 #include <sys/stat.h>
3373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3374 struct buf { int x; };
3375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376 static char *e (p, i)
3377 char **p;
3378 int i;
3380 return p[i];
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3384 char *s;
3385 va_list v;
3386 va_start (v,p);
3387 s = g (p, va_arg (v,int));
3388 va_end (v);
3389 return s;
3392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3393 function prototypes and stuff, but not '\xHH' hex character constants.
3394 These don't provoke an error unfortunately, instead are silently treated
3395 as 'x'. The following induces an error, until -std is added to get
3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3397 array size at least. It's necessary to write '\x00'==0 to get something
3398 that's true only with -std. */
3399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402 inside strings and character constants. */
3403 #define FOO(x) 'x'
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3406 int test (int i, double x);
3407 struct s1 {int (*f) (int a);};
3408 struct s2 {int (*f) (double a);};
3409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410 int argc;
3411 char **argv;
3413 main ()
3415 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3417 return 0;
3419 _ACEOF
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423 CC="$ac_save_CC $ac_arg"
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432 (eval "$ac_compile") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } && {
3439 test -z "$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 } && test -s conftest.$ac_objext; then
3442 ac_cv_prog_cc_c89=$ac_arg
3443 else
3444 $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3450 rm -f core conftest.err conftest.$ac_objext
3451 test "x$ac_cv_prog_cc_c89" != "xno" && break
3452 done
3453 rm -f conftest.$ac_ext
3454 CC=$ac_save_CC
3457 # AC_CACHE_VAL
3458 case "x$ac_cv_prog_cc_c89" in
3460 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3461 $as_echo "none needed" >&6; } ;;
3462 xno)
3463 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3464 $as_echo "unsupported" >&6; } ;;
3466 CC="$CC $ac_cv_prog_cc_c89"
3467 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3469 esac
3472 ac_ext=c
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 if test "x$CC" != xcc; then
3479 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3480 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3481 else
3482 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3483 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3485 set dummy $CC; ac_cc=`$as_echo "$2" |
3486 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3487 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3488 $as_echo_n "(cached) " >&6
3489 else
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3498 main ()
3502 return 0;
3504 _ACEOF
3505 # Make sure it works both with $CC and with simple cc.
3506 # We do the test twice because some compilers refuse to overwrite an
3507 # existing .o file with -o, though they will create one.
3508 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3509 rm -f conftest2.*
3510 if { (case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3515 $as_echo "$ac_try_echo") >&5
3516 (eval "$ac_try") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525 $as_echo "$ac_try_echo") >&5
3526 (eval "$ac_try") 2>&5
3527 ac_status=$?
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); };
3530 then
3531 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3532 if test "x$CC" != xcc; then
3533 # Test first that cc exists at all.
3534 if { ac_try='cc -c conftest.$ac_ext >&5'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540 $as_echo "$ac_try_echo") >&5
3541 (eval "$ac_try") 2>&5
3542 ac_status=$?
3543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3546 rm -f conftest2.*
3547 if { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3552 $as_echo "$ac_try_echo") >&5
3553 (eval "$ac_try") 2>&5
3554 ac_status=$?
3555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3562 $as_echo "$ac_try_echo") >&5
3563 (eval "$ac_try") 2>&5
3564 ac_status=$?
3565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); };
3567 then
3568 # cc works too.
3570 else
3571 # cc exists but doesn't like -o.
3572 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3576 else
3577 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3579 rm -f core conftest*
3582 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3583 { $as_echo "$as_me:$LINENO: result: yes" >&5
3584 $as_echo "yes" >&6; }
3585 else
3586 { $as_echo "$as_me:$LINENO: result: no" >&5
3587 $as_echo "no" >&6; }
3589 cat >>confdefs.h <<\_ACEOF
3590 #define NO_MINUS_C_MINUS_O 1
3591 _ACEOF
3595 # expand $ac_aux_dir to an absolute path
3596 am_aux_dir=`cd $ac_aux_dir && pwd`
3598 # FIXME: we rely on the cache variable name because
3599 # there is no other way.
3600 set dummy $CC
3601 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3602 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3603 # Losing compiler, so override with the script.
3604 # FIXME: It is wrong to rewrite CC.
3605 # But if we don't then we get into trouble of one sort or another.
3606 # A longer-term fix would be to have automake use am__CC in this case,
3607 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3608 CC="$am_aux_dir/compile $CC"
3611 # autoconf is lame and doesn't give us any substitution variable for this.
3612 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3613 NO_MINUS_C_MINUS_O=yes
3614 else
3615 OUTPUT_OPTION='-o $@'
3620 # -------------------------
3621 # Check C compiler features
3622 # -------------------------
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3630 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3631 # On Suns, sometimes $CPP names a directory.
3632 if test -n "$CPP" && test -d "$CPP"; then
3633 CPP=
3635 if test -z "$CPP"; then
3636 if test "${ac_cv_prog_CPP+set}" = set; then
3637 $as_echo_n "(cached) " >&6
3638 else
3639 # Double quotes because CPP needs to be expanded
3640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3642 ac_preproc_ok=false
3643 for ac_c_preproc_warn_flag in '' yes
3645 # Use a header file that comes with gcc, so configuring glibc
3646 # with a fresh cross-compiler works.
3647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3648 # <limits.h> exists even on freestanding compilers.
3649 # On the NeXT, cc -E runs the code through the compiler's parser,
3650 # not just through cpp. "Syntax error" is here to catch this case.
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3657 #ifdef __STDC__
3658 # include <limits.h>
3659 #else
3660 # include <assert.h>
3661 #endif
3662 Syntax error
3663 _ACEOF
3664 if { (ac_try="$ac_cpp conftest.$ac_ext"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3670 $as_echo "$ac_try_echo") >&5
3671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } >/dev/null && {
3678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3679 test ! -s conftest.err
3680 }; then
3682 else
3683 $as_echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 # Broken: fails on valid input.
3687 continue
3690 rm -f conftest.err conftest.$ac_ext
3692 # OK, works on sane cases. Now check whether nonexistent headers
3693 # can be detected and how.
3694 cat >conftest.$ac_ext <<_ACEOF
3695 /* confdefs.h. */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700 #include <ac_nonexistent.h>
3701 _ACEOF
3702 if { (ac_try="$ac_cpp conftest.$ac_ext"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708 $as_echo "$ac_try_echo") >&5
3709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3710 ac_status=$?
3711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1
3713 cat conftest.err >&5
3714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } >/dev/null && {
3716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3718 }; then
3719 # Broken: success on invalid input.
3720 continue
3721 else
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 # Passes both tests.
3726 ac_preproc_ok=:
3727 break
3730 rm -f conftest.err conftest.$ac_ext
3732 done
3733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3734 rm -f conftest.err conftest.$ac_ext
3735 if $ac_preproc_ok; then
3736 break
3739 done
3740 ac_cv_prog_CPP=$CPP
3743 CPP=$ac_cv_prog_CPP
3744 else
3745 ac_cv_prog_CPP=$CPP
3747 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3748 $as_echo "$CPP" >&6; }
3749 ac_preproc_ok=false
3750 for ac_c_preproc_warn_flag in '' yes
3752 # Use a header file that comes with gcc, so configuring glibc
3753 # with a fresh cross-compiler works.
3754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755 # <limits.h> exists even on freestanding compilers.
3756 # On the NeXT, cc -E runs the code through the compiler's parser,
3757 # not just through cpp. "Syntax error" is here to catch this case.
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 #ifdef __STDC__
3765 # include <limits.h>
3766 #else
3767 # include <assert.h>
3768 #endif
3769 Syntax error
3770 _ACEOF
3771 if { (ac_try="$ac_cpp conftest.$ac_ext"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3777 $as_echo "$ac_try_echo") >&5
3778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3779 ac_status=$?
3780 grep -v '^ *+' conftest.er1 >conftest.err
3781 rm -f conftest.er1
3782 cat conftest.err >&5
3783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } >/dev/null && {
3785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3786 test ! -s conftest.err
3787 }; then
3789 else
3790 $as_echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3793 # Broken: fails on valid input.
3794 continue
3797 rm -f conftest.err conftest.$ac_ext
3799 # OK, works on sane cases. Now check whether nonexistent headers
3800 # can be detected and how.
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h. */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <ac_nonexistent.h>
3808 _ACEOF
3809 if { (ac_try="$ac_cpp conftest.$ac_ext"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3815 $as_echo "$ac_try_echo") >&5
3816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } >/dev/null && {
3823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3824 test ! -s conftest.err
3825 }; then
3826 # Broken: success on invalid input.
3827 continue
3828 else
3829 $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 # Passes both tests.
3833 ac_preproc_ok=:
3834 break
3837 rm -f conftest.err conftest.$ac_ext
3839 done
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then
3844 else
3845 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3846 See \`config.log' for more details." >&5
3847 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3848 See \`config.log' for more details." >&2;}
3849 { (exit 1); exit 1; }; }
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 { $as_echo "$as_me:$LINENO: checking for inline" >&5
3860 $as_echo_n "checking for inline... " >&6; }
3861 if test "${ac_cv_c_inline+set}" = set; then
3862 $as_echo_n "(cached) " >&6
3863 else
3864 ac_cv_c_inline=no
3865 for ac_kw in inline __inline__ __inline; do
3866 cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h. */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3872 #ifndef __cplusplus
3873 typedef int foo_t;
3874 static $ac_kw foo_t static_foo () {return 0; }
3875 $ac_kw foo_t foo () {return 0; }
3876 #endif
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3886 $as_echo "$ac_try_echo") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && {
3894 test -z "$ac_c_werror_flag" ||
3895 test ! -s conftest.err
3896 } && test -s conftest.$ac_objext; then
3897 ac_cv_c_inline=$ac_kw
3898 else
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 test "$ac_cv_c_inline" != no && break
3907 done
3910 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3911 $as_echo "$ac_cv_c_inline" >&6; }
3914 case $ac_cv_c_inline in
3915 inline | yes) ;;
3917 case $ac_cv_c_inline in
3918 no) ac_val=;;
3919 *) ac_val=$ac_cv_c_inline;;
3920 esac
3921 cat >>confdefs.h <<_ACEOF
3922 #ifndef __cplusplus
3923 #define inline $ac_val
3924 #endif
3925 _ACEOF
3927 esac
3930 # sizeof(char) is 1 by definition.
3932 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3933 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3934 if test "${ac_cv_path_GREP+set}" = set; then
3935 $as_echo_n "(cached) " >&6
3936 else
3937 if test -z "$GREP"; then
3938 ac_path_GREP_found=false
3939 # Loop through the user's path and test for each of PROGNAME-LIST
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_prog in grep ggrep; do
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3948 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3949 # Check for GNU ac_path_GREP and select it if it is found.
3950 # Check for GNU $ac_path_GREP
3951 case `"$ac_path_GREP" --version 2>&1` in
3952 *GNU*)
3953 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3955 ac_count=0
3956 $as_echo_n 0123456789 >"conftest.in"
3957 while :
3959 cat "conftest.in" "conftest.in" >"conftest.tmp"
3960 mv "conftest.tmp" "conftest.in"
3961 cp "conftest.in" "conftest.nl"
3962 $as_echo 'GREP' >> "conftest.nl"
3963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965 ac_count=`expr $ac_count + 1`
3966 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967 # Best one so far, save it but keep looking for a better one
3968 ac_cv_path_GREP="$ac_path_GREP"
3969 ac_path_GREP_max=$ac_count
3971 # 10*(2^10) chars as input seems more than enough
3972 test $ac_count -gt 10 && break
3973 done
3974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3975 esac
3977 $ac_path_GREP_found && break 3
3978 done
3979 done
3980 done
3981 IFS=$as_save_IFS
3982 if test -z "$ac_cv_path_GREP"; then
3983 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3984 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3985 { (exit 1); exit 1; }; }
3987 else
3988 ac_cv_path_GREP=$GREP
3992 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3993 $as_echo "$ac_cv_path_GREP" >&6; }
3994 GREP="$ac_cv_path_GREP"
3997 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3998 $as_echo_n "checking for egrep... " >&6; }
3999 if test "${ac_cv_path_EGREP+set}" = set; then
4000 $as_echo_n "(cached) " >&6
4001 else
4002 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4003 then ac_cv_path_EGREP="$GREP -E"
4004 else
4005 if test -z "$EGREP"; then
4006 ac_path_EGREP_found=false
4007 # Loop through the user's path and test for each of PROGNAME-LIST
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_prog in egrep; do
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4016 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4017 # Check for GNU ac_path_EGREP and select it if it is found.
4018 # Check for GNU $ac_path_EGREP
4019 case `"$ac_path_EGREP" --version 2>&1` in
4020 *GNU*)
4021 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4023 ac_count=0
4024 $as_echo_n 0123456789 >"conftest.in"
4025 while :
4027 cat "conftest.in" "conftest.in" >"conftest.tmp"
4028 mv "conftest.tmp" "conftest.in"
4029 cp "conftest.in" "conftest.nl"
4030 $as_echo 'EGREP' >> "conftest.nl"
4031 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4033 ac_count=`expr $ac_count + 1`
4034 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4035 # Best one so far, save it but keep looking for a better one
4036 ac_cv_path_EGREP="$ac_path_EGREP"
4037 ac_path_EGREP_max=$ac_count
4039 # 10*(2^10) chars as input seems more than enough
4040 test $ac_count -gt 10 && break
4041 done
4042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043 esac
4045 $ac_path_EGREP_found && break 3
4046 done
4047 done
4048 done
4049 IFS=$as_save_IFS
4050 if test -z "$ac_cv_path_EGREP"; then
4051 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053 { (exit 1); exit 1; }; }
4055 else
4056 ac_cv_path_EGREP=$EGREP
4061 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4062 $as_echo "$ac_cv_path_EGREP" >&6; }
4063 EGREP="$ac_cv_path_EGREP"
4066 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4067 $as_echo_n "checking for ANSI C header files... " >&6; }
4068 if test "${ac_cv_header_stdc+set}" = set; then
4069 $as_echo_n "(cached) " >&6
4070 else
4071 cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h. */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 #include <stdlib.h>
4078 #include <stdarg.h>
4079 #include <string.h>
4080 #include <float.h>
4083 main ()
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098 (eval "$ac_compile") 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } && {
4105 test -z "$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 } && test -s conftest.$ac_objext; then
4108 ac_cv_header_stdc=yes
4109 else
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 ac_cv_header_stdc=no
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 if test $ac_cv_header_stdc = yes; then
4119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 #include <string.h>
4128 _ACEOF
4129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130 $EGREP "memchr" >/dev/null 2>&1; then
4132 else
4133 ac_cv_header_stdc=no
4135 rm -f conftest*
4139 if test $ac_cv_header_stdc = yes; then
4140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <stdlib.h>
4149 _ACEOF
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151 $EGREP "free" >/dev/null 2>&1; then
4153 else
4154 ac_cv_header_stdc=no
4156 rm -f conftest*
4160 if test $ac_cv_header_stdc = yes; then
4161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4162 if test "$cross_compiling" = yes; then
4164 else
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #include <ctype.h>
4172 #include <stdlib.h>
4173 #if ((' ' & 0x0FF) == 0x020)
4174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4176 #else
4177 # define ISLOWER(c) \
4178 (('a' <= (c) && (c) <= 'i') \
4179 || ('j' <= (c) && (c) <= 'r') \
4180 || ('s' <= (c) && (c) <= 'z'))
4181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4182 #endif
4184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4186 main ()
4188 int i;
4189 for (i = 0; i < 256; i++)
4190 if (XOR (islower (i), ISLOWER (i))
4191 || toupper (i) != TOUPPER (i))
4192 return 2;
4193 return 0;
4195 _ACEOF
4196 rm -f conftest$ac_exeext
4197 if { (ac_try="$ac_link"
4198 case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4203 $as_echo "$ac_try_echo") >&5
4204 (eval "$ac_link") 2>&5
4205 ac_status=$?
4206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4208 { (case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4213 $as_echo "$ac_try_echo") >&5
4214 (eval "$ac_try") 2>&5
4215 ac_status=$?
4216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4219 else
4220 $as_echo "$as_me: program exited with status $ac_status" >&5
4221 $as_echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 ( exit $ac_status )
4225 ac_cv_header_stdc=no
4227 rm -rf conftest.dSYM
4228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4235 $as_echo "$ac_cv_header_stdc" >&6; }
4236 if test $ac_cv_header_stdc = yes; then
4238 cat >>confdefs.h <<\_ACEOF
4239 #define STDC_HEADERS 1
4240 _ACEOF
4244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255 inttypes.h stdint.h unistd.h
4257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4259 $as_echo_n "checking for $ac_header... " >&6; }
4260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4261 $as_echo_n "(cached) " >&6
4262 else
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 $ac_includes_default
4271 #include <$ac_header>
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4280 $as_echo "$ac_try_echo") >&5
4281 (eval "$ac_compile") 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
4286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && {
4288 test -z "$ac_c_werror_flag" ||
4289 test ! -s conftest.err
4290 } && test -s conftest.$ac_objext; then
4291 eval "$as_ac_Header=yes"
4292 else
4293 $as_echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 eval "$as_ac_Header=no"
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 ac_res=`eval 'as_val=${'$as_ac_Header'}
4302 $as_echo "$as_val"'`
4303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4304 $as_echo "$ac_res" >&6; }
4305 if test `eval 'as_val=${'$as_ac_Header'}
4306 $as_echo "$as_val"'` = yes; then
4307 cat >>confdefs.h <<_ACEOF
4308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4309 _ACEOF
4313 done
4316 # The cast to long int works around a bug in the HP C Compiler
4317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4319 # This bug is HP SR number 8606223364.
4320 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
4321 $as_echo_n "checking size of void *... " >&6; }
4322 if test "${ac_cv_sizeof_void_p+set}" = set; then
4323 $as_echo_n "(cached) " >&6
4324 else
4325 if test "$cross_compiling" = yes; then
4326 # Depending upon the size, compute the lo and hi bounds.
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4335 main ()
4337 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
4338 test_array [0] = 0
4341 return 0;
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4351 $as_echo "$ac_try_echo") >&5
4352 (eval "$ac_compile") 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } && {
4359 test -z "$ac_c_werror_flag" ||
4360 test ! -s conftest.err
4361 } && test -s conftest.$ac_objext; then
4362 ac_lo=0 ac_mid=0
4363 while :; do
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h. */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 $ac_includes_default
4372 main ()
4374 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
4375 test_array [0] = 0
4378 return 0;
4380 _ACEOF
4381 rm -f conftest.$ac_objext
4382 if { (ac_try="$ac_compile"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4388 $as_echo "$ac_try_echo") >&5
4389 (eval "$ac_compile") 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && {
4396 test -z "$ac_c_werror_flag" ||
4397 test ! -s conftest.err
4398 } && test -s conftest.$ac_objext; then
4399 ac_hi=$ac_mid; break
4400 else
4401 $as_echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 ac_lo=`expr $ac_mid + 1`
4405 if test $ac_lo -le $ac_mid; then
4406 ac_lo= ac_hi=
4407 break
4409 ac_mid=`expr 2 '*' $ac_mid + 1`
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 done
4414 else
4415 $as_echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 $ac_includes_default
4426 main ()
4428 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
4429 test_array [0] = 0
4432 return 0;
4434 _ACEOF
4435 rm -f conftest.$ac_objext
4436 if { (ac_try="$ac_compile"
4437 case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4442 $as_echo "$ac_try_echo") >&5
4443 (eval "$ac_compile") 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } && {
4450 test -z "$ac_c_werror_flag" ||
4451 test ! -s conftest.err
4452 } && test -s conftest.$ac_objext; then
4453 ac_hi=-1 ac_mid=-1
4454 while :; do
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4463 main ()
4465 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
4466 test_array [0] = 0
4469 return 0;
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4474 case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477 esac
4478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4479 $as_echo "$ac_try_echo") >&5
4480 (eval "$ac_compile") 2>conftest.er1
4481 ac_status=$?
4482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
4485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } && {
4487 test -z "$ac_c_werror_flag" ||
4488 test ! -s conftest.err
4489 } && test -s conftest.$ac_objext; then
4490 ac_lo=$ac_mid; break
4491 else
4492 $as_echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 ac_hi=`expr '(' $ac_mid ')' - 1`
4496 if test $ac_mid -le $ac_hi; then
4497 ac_lo= ac_hi=
4498 break
4500 ac_mid=`expr 2 '*' $ac_mid`
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 done
4505 else
4506 $as_echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 ac_lo= ac_hi=
4512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 # Binary search between lo and hi bounds.
4517 while test "x$ac_lo" != "x$ac_hi"; do
4518 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4519 cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h. */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 $ac_includes_default
4527 main ()
4529 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
4530 test_array [0] = 0
4533 return 0;
4535 _ACEOF
4536 rm -f conftest.$ac_objext
4537 if { (ac_try="$ac_compile"
4538 case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541 esac
4542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4543 $as_echo "$ac_try_echo") >&5
4544 (eval "$ac_compile") 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } && {
4551 test -z "$ac_c_werror_flag" ||
4552 test ! -s conftest.err
4553 } && test -s conftest.$ac_objext; then
4554 ac_hi=$ac_mid
4555 else
4556 $as_echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4559 ac_lo=`expr '(' $ac_mid ')' + 1`
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 done
4564 case $ac_lo in
4565 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4566 '') if test "$ac_cv_type_void_p" = yes; then
4567 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4568 See \`config.log' for more details." >&5
4569 $as_echo "$as_me: error: cannot compute sizeof (void *)
4570 See \`config.log' for more details." >&2;}
4571 { (exit 77); exit 77; }; }
4572 else
4573 ac_cv_sizeof_void_p=0
4574 fi ;;
4575 esac
4576 else
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 $ac_includes_default
4584 static long int longval () { return (long int) (sizeof (void *)); }
4585 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
4586 #include <stdio.h>
4587 #include <stdlib.h>
4589 main ()
4592 FILE *f = fopen ("conftest.val", "w");
4593 if (! f)
4594 return 1;
4595 if (((long int) (sizeof (void *))) < 0)
4597 long int i = longval ();
4598 if (i != ((long int) (sizeof (void *))))
4599 return 1;
4600 fprintf (f, "%ld", i);
4602 else
4604 unsigned long int i = ulongval ();
4605 if (i != ((long int) (sizeof (void *))))
4606 return 1;
4607 fprintf (f, "%lu", i);
4609 /* Do not output a trailing newline, as this causes \r\n confusion
4610 on some platforms. */
4611 return ferror (f) || fclose (f) != 0;
4614 return 0;
4616 _ACEOF
4617 rm -f conftest$ac_exeext
4618 if { (ac_try="$ac_link"
4619 case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4624 $as_echo "$ac_try_echo") >&5
4625 (eval "$ac_link") 2>&5
4626 ac_status=$?
4627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4629 { (case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632 esac
4633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_try") 2>&5
4636 ac_status=$?
4637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_cv_sizeof_void_p=`cat conftest.val`
4640 else
4641 $as_echo "$as_me: program exited with status $ac_status" >&5
4642 $as_echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 ( exit $ac_status )
4646 if test "$ac_cv_type_void_p" = yes; then
4647 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4648 See \`config.log' for more details." >&5
4649 $as_echo "$as_me: error: cannot compute sizeof (void *)
4650 See \`config.log' for more details." >&2;}
4651 { (exit 77); exit 77; }; }
4652 else
4653 ac_cv_sizeof_void_p=0
4656 rm -rf conftest.dSYM
4657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4659 rm -f conftest.val
4661 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4662 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4666 cat >>confdefs.h <<_ACEOF
4667 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4668 _ACEOF
4671 # The cast to long int works around a bug in the HP C Compiler
4672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4674 # This bug is HP SR number 8606223364.
4675 { $as_echo "$as_me:$LINENO: checking size of short" >&5
4676 $as_echo_n "checking size of short... " >&6; }
4677 if test "${ac_cv_sizeof_short+set}" = set; then
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if test "$cross_compiling" = yes; then
4681 # Depending upon the size, compute the lo and hi bounds.
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 $ac_includes_default
4690 main ()
4692 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
4693 test_array [0] = 0
4696 return 0;
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (ac_try="$ac_compile"
4701 case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4717 ac_lo=0 ac_mid=0
4718 while :; do
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4727 main ()
4729 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
4730 test_array [0] = 0
4733 return 0;
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (ac_try="$ac_compile"
4738 case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4743 $as_echo "$ac_try_echo") >&5
4744 (eval "$ac_compile") 2>conftest.er1
4745 ac_status=$?
4746 grep -v '^ *+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } && {
4751 test -z "$ac_c_werror_flag" ||
4752 test ! -s conftest.err
4753 } && test -s conftest.$ac_objext; then
4754 ac_hi=$ac_mid; break
4755 else
4756 $as_echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 ac_lo=`expr $ac_mid + 1`
4760 if test $ac_lo -le $ac_mid; then
4761 ac_lo= ac_hi=
4762 break
4764 ac_mid=`expr 2 '*' $ac_mid + 1`
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 done
4769 else
4770 $as_echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 $ac_includes_default
4781 main ()
4783 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
4784 test_array [0] = 0
4787 return 0;
4789 _ACEOF
4790 rm -f conftest.$ac_objext
4791 if { (ac_try="$ac_compile"
4792 case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795 esac
4796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797 $as_echo "$ac_try_echo") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_hi=-1 ac_mid=-1
4809 while :; do
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 $ac_includes_default
4818 main ()
4820 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
4821 test_array [0] = 0
4824 return 0;
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (ac_try="$ac_compile"
4829 case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4832 esac
4833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4834 $as_echo "$ac_try_echo") >&5
4835 (eval "$ac_compile") 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } && {
4842 test -z "$ac_c_werror_flag" ||
4843 test ! -s conftest.err
4844 } && test -s conftest.$ac_objext; then
4845 ac_lo=$ac_mid; break
4846 else
4847 $as_echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 ac_hi=`expr '(' $ac_mid ')' - 1`
4851 if test $ac_mid -le $ac_hi; then
4852 ac_lo= ac_hi=
4853 break
4855 ac_mid=`expr 2 '*' $ac_mid`
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 done
4860 else
4861 $as_echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4864 ac_lo= ac_hi=
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 # Binary search between lo and hi bounds.
4872 while test "x$ac_lo" != "x$ac_hi"; do
4873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4874 cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 $ac_includes_default
4882 main ()
4884 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
4885 test_array [0] = 0
4888 return 0;
4890 _ACEOF
4891 rm -f conftest.$ac_objext
4892 if { (ac_try="$ac_compile"
4893 case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898 $as_echo "$ac_try_echo") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4909 ac_hi=$ac_mid
4910 else
4911 $as_echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 ac_lo=`expr '(' $ac_mid ')' + 1`
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 done
4919 case $ac_lo in
4920 ?*) ac_cv_sizeof_short=$ac_lo;;
4921 '') if test "$ac_cv_type_short" = yes; then
4922 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4923 See \`config.log' for more details." >&5
4924 $as_echo "$as_me: error: cannot compute sizeof (short)
4925 See \`config.log' for more details." >&2;}
4926 { (exit 77); exit 77; }; }
4927 else
4928 ac_cv_sizeof_short=0
4929 fi ;;
4930 esac
4931 else
4932 cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h. */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 $ac_includes_default
4939 static long int longval () { return (long int) (sizeof (short)); }
4940 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
4941 #include <stdio.h>
4942 #include <stdlib.h>
4944 main ()
4947 FILE *f = fopen ("conftest.val", "w");
4948 if (! f)
4949 return 1;
4950 if (((long int) (sizeof (short))) < 0)
4952 long int i = longval ();
4953 if (i != ((long int) (sizeof (short))))
4954 return 1;
4955 fprintf (f, "%ld", i);
4957 else
4959 unsigned long int i = ulongval ();
4960 if (i != ((long int) (sizeof (short))))
4961 return 1;
4962 fprintf (f, "%lu", i);
4964 /* Do not output a trailing newline, as this causes \r\n confusion
4965 on some platforms. */
4966 return ferror (f) || fclose (f) != 0;
4969 return 0;
4971 _ACEOF
4972 rm -f conftest$ac_exeext
4973 if { (ac_try="$ac_link"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4979 $as_echo "$ac_try_echo") >&5
4980 (eval "$ac_link") 2>&5
4981 ac_status=$?
4982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4984 { (case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4989 $as_echo "$ac_try_echo") >&5
4990 (eval "$ac_try") 2>&5
4991 ac_status=$?
4992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_sizeof_short=`cat conftest.val`
4995 else
4996 $as_echo "$as_me: program exited with status $ac_status" >&5
4997 $as_echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 ( exit $ac_status )
5001 if test "$ac_cv_type_short" = yes; then
5002 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5003 See \`config.log' for more details." >&5
5004 $as_echo "$as_me: error: cannot compute sizeof (short)
5005 See \`config.log' for more details." >&2;}
5006 { (exit 77); exit 77; }; }
5007 else
5008 ac_cv_sizeof_short=0
5011 rm -rf conftest.dSYM
5012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5014 rm -f conftest.val
5016 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5017 $as_echo "$ac_cv_sizeof_short" >&6; }
5021 cat >>confdefs.h <<_ACEOF
5022 #define SIZEOF_SHORT $ac_cv_sizeof_short
5023 _ACEOF
5026 # The cast to long int works around a bug in the HP C Compiler
5027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5029 # This bug is HP SR number 8606223364.
5030 { $as_echo "$as_me:$LINENO: checking size of int" >&5
5031 $as_echo_n "checking size of int... " >&6; }
5032 if test "${ac_cv_sizeof_int+set}" = set; then
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test "$cross_compiling" = yes; then
5036 # Depending upon the size, compute the lo and hi bounds.
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5045 main ()
5047 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
5048 test_array [0] = 0
5051 return 0;
5053 _ACEOF
5054 rm -f conftest.$ac_objext
5055 if { (ac_try="$ac_compile"
5056 case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059 esac
5060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5061 $as_echo "$ac_try_echo") >&5
5062 (eval "$ac_compile") 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest.$ac_objext; then
5072 ac_lo=0 ac_mid=0
5073 while :; do
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 $ac_includes_default
5082 main ()
5084 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5085 test_array [0] = 0
5088 return 0;
5090 _ACEOF
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5093 case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098 $as_echo "$ac_try_echo") >&5
5099 (eval "$ac_compile") 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest.$ac_objext; then
5109 ac_hi=$ac_mid; break
5110 else
5111 $as_echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ac_lo=`expr $ac_mid + 1`
5115 if test $ac_lo -le $ac_mid; then
5116 ac_lo= ac_hi=
5117 break
5119 ac_mid=`expr 2 '*' $ac_mid + 1`
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 done
5124 else
5125 $as_echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
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 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
5139 test_array [0] = 0
5142 return 0;
5144 _ACEOF
5145 rm -f conftest.$ac_objext
5146 if { (ac_try="$ac_compile"
5147 case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5150 esac
5151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5152 $as_echo "$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 $as_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_hi=-1 ac_mid=-1
5164 while :; do
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5173 main ()
5175 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
5176 test_array [0] = 0
5179 return 0;
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (ac_try="$ac_compile"
5184 case "(($ac_try" in
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5187 esac
5188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189 $as_echo "$ac_try_echo") >&5
5190 (eval "$ac_compile") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && {
5197 test -z "$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 } && test -s conftest.$ac_objext; then
5200 ac_lo=$ac_mid; break
5201 else
5202 $as_echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 ac_hi=`expr '(' $ac_mid ')' - 1`
5206 if test $ac_mid -le $ac_hi; then
5207 ac_lo= ac_hi=
5208 break
5210 ac_mid=`expr 2 '*' $ac_mid`
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 done
5215 else
5216 $as_echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 ac_lo= ac_hi=
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 # Binary search between lo and hi bounds.
5227 while test "x$ac_lo" != "x$ac_hi"; do
5228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 $ac_includes_default
5237 main ()
5239 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5240 test_array [0] = 0
5243 return 0;
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (ac_try="$ac_compile"
5248 case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251 esac
5252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5253 $as_echo "$ac_try_echo") >&5
5254 (eval "$ac_compile") 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest.$ac_objext; then
5264 ac_hi=$ac_mid
5265 else
5266 $as_echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_lo=`expr '(' $ac_mid ')' + 1`
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 done
5274 case $ac_lo in
5275 ?*) ac_cv_sizeof_int=$ac_lo;;
5276 '') if test "$ac_cv_type_int" = yes; then
5277 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5278 See \`config.log' for more details." >&5
5279 $as_echo "$as_me: error: cannot compute sizeof (int)
5280 See \`config.log' for more details." >&2;}
5281 { (exit 77); exit 77; }; }
5282 else
5283 ac_cv_sizeof_int=0
5284 fi ;;
5285 esac
5286 else
5287 cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h. */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 $ac_includes_default
5294 static long int longval () { return (long int) (sizeof (int)); }
5295 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
5296 #include <stdio.h>
5297 #include <stdlib.h>
5299 main ()
5302 FILE *f = fopen ("conftest.val", "w");
5303 if (! f)
5304 return 1;
5305 if (((long int) (sizeof (int))) < 0)
5307 long int i = longval ();
5308 if (i != ((long int) (sizeof (int))))
5309 return 1;
5310 fprintf (f, "%ld", i);
5312 else
5314 unsigned long int i = ulongval ();
5315 if (i != ((long int) (sizeof (int))))
5316 return 1;
5317 fprintf (f, "%lu", i);
5319 /* Do not output a trailing newline, as this causes \r\n confusion
5320 on some platforms. */
5321 return ferror (f) || fclose (f) != 0;
5324 return 0;
5326 _ACEOF
5327 rm -f conftest$ac_exeext
5328 if { (ac_try="$ac_link"
5329 case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5334 $as_echo "$ac_try_echo") >&5
5335 (eval "$ac_link") 2>&5
5336 ac_status=$?
5337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5339 { (case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342 esac
5343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5344 $as_echo "$ac_try_echo") >&5
5345 (eval "$ac_try") 2>&5
5346 ac_status=$?
5347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_cv_sizeof_int=`cat conftest.val`
5350 else
5351 $as_echo "$as_me: program exited with status $ac_status" >&5
5352 $as_echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5355 ( exit $ac_status )
5356 if test "$ac_cv_type_int" = yes; then
5357 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5358 See \`config.log' for more details." >&5
5359 $as_echo "$as_me: error: cannot compute sizeof (int)
5360 See \`config.log' for more details." >&2;}
5361 { (exit 77); exit 77; }; }
5362 else
5363 ac_cv_sizeof_int=0
5366 rm -rf conftest.dSYM
5367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5369 rm -f conftest.val
5371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5372 $as_echo "$ac_cv_sizeof_int" >&6; }
5376 cat >>confdefs.h <<_ACEOF
5377 #define SIZEOF_INT $ac_cv_sizeof_int
5378 _ACEOF
5381 # The cast to long int works around a bug in the HP C Compiler
5382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5384 # This bug is HP SR number 8606223364.
5385 { $as_echo "$as_me:$LINENO: checking size of long" >&5
5386 $as_echo_n "checking size of long... " >&6; }
5387 if test "${ac_cv_sizeof_long+set}" = set; then
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test "$cross_compiling" = yes; then
5391 # Depending upon the size, compute the lo and hi bounds.
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5400 main ()
5402 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
5403 test_array [0] = 0
5406 return 0;
5408 _ACEOF
5409 rm -f conftest.$ac_objext
5410 if { (ac_try="$ac_compile"
5411 case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414 esac
5415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5416 $as_echo "$ac_try_echo") >&5
5417 (eval "$ac_compile") 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } && {
5424 test -z "$ac_c_werror_flag" ||
5425 test ! -s conftest.err
5426 } && test -s conftest.$ac_objext; then
5427 ac_lo=0 ac_mid=0
5428 while :; do
5429 cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h. */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 $ac_includes_default
5437 main ()
5439 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
5440 test_array [0] = 0
5443 return 0;
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5448 case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451 esac
5452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5453 $as_echo "$ac_try_echo") >&5
5454 (eval "$ac_compile") 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } && {
5461 test -z "$ac_c_werror_flag" ||
5462 test ! -s conftest.err
5463 } && test -s conftest.$ac_objext; then
5464 ac_hi=$ac_mid; break
5465 else
5466 $as_echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5469 ac_lo=`expr $ac_mid + 1`
5470 if test $ac_lo -le $ac_mid; then
5471 ac_lo= ac_hi=
5472 break
5474 ac_mid=`expr 2 '*' $ac_mid + 1`
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 done
5479 else
5480 $as_echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5491 main ()
5493 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
5494 test_array [0] = 0
5497 return 0;
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507 $as_echo "$ac_try_echo") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5518 ac_hi=-1 ac_mid=-1
5519 while :; do
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5528 main ()
5530 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
5531 test_array [0] = 0
5534 return 0;
5536 _ACEOF
5537 rm -f conftest.$ac_objext
5538 if { (ac_try="$ac_compile"
5539 case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542 esac
5543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5544 $as_echo "$ac_try_echo") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
5555 ac_lo=$ac_mid; break
5556 else
5557 $as_echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 ac_hi=`expr '(' $ac_mid ')' - 1`
5561 if test $ac_mid -le $ac_hi; then
5562 ac_lo= ac_hi=
5563 break
5565 ac_mid=`expr 2 '*' $ac_mid`
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 done
5570 else
5571 $as_echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 ac_lo= ac_hi=
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 # Binary search between lo and hi bounds.
5582 while test "x$ac_lo" != "x$ac_hi"; do
5583 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 $ac_includes_default
5592 main ()
5594 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
5595 test_array [0] = 0
5598 return 0;
5600 _ACEOF
5601 rm -f conftest.$ac_objext
5602 if { (ac_try="$ac_compile"
5603 case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606 esac
5607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5608 $as_echo "$ac_try_echo") >&5
5609 (eval "$ac_compile") 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest.$ac_objext; then
5619 ac_hi=$ac_mid
5620 else
5621 $as_echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 ac_lo=`expr '(' $ac_mid ')' + 1`
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 done
5629 case $ac_lo in
5630 ?*) ac_cv_sizeof_long=$ac_lo;;
5631 '') if test "$ac_cv_type_long" = yes; then
5632 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5633 See \`config.log' for more details." >&5
5634 $as_echo "$as_me: error: cannot compute sizeof (long)
5635 See \`config.log' for more details." >&2;}
5636 { (exit 77); exit 77; }; }
5637 else
5638 ac_cv_sizeof_long=0
5639 fi ;;
5640 esac
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5649 static long int longval () { return (long int) (sizeof (long)); }
5650 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
5651 #include <stdio.h>
5652 #include <stdlib.h>
5654 main ()
5657 FILE *f = fopen ("conftest.val", "w");
5658 if (! f)
5659 return 1;
5660 if (((long int) (sizeof (long))) < 0)
5662 long int i = longval ();
5663 if (i != ((long int) (sizeof (long))))
5664 return 1;
5665 fprintf (f, "%ld", i);
5667 else
5669 unsigned long int i = ulongval ();
5670 if (i != ((long int) (sizeof (long))))
5671 return 1;
5672 fprintf (f, "%lu", i);
5674 /* Do not output a trailing newline, as this causes \r\n confusion
5675 on some platforms. */
5676 return ferror (f) || fclose (f) != 0;
5679 return 0;
5681 _ACEOF
5682 rm -f conftest$ac_exeext
5683 if { (ac_try="$ac_link"
5684 case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5689 $as_echo "$ac_try_echo") >&5
5690 (eval "$ac_link") 2>&5
5691 ac_status=$?
5692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5694 { (case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5699 $as_echo "$ac_try_echo") >&5
5700 (eval "$ac_try") 2>&5
5701 ac_status=$?
5702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; }; then
5704 ac_cv_sizeof_long=`cat conftest.val`
5705 else
5706 $as_echo "$as_me: program exited with status $ac_status" >&5
5707 $as_echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5710 ( exit $ac_status )
5711 if test "$ac_cv_type_long" = yes; then
5712 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5713 See \`config.log' for more details." >&5
5714 $as_echo "$as_me: error: cannot compute sizeof (long)
5715 See \`config.log' for more details." >&2;}
5716 { (exit 77); exit 77; }; }
5717 else
5718 ac_cv_sizeof_long=0
5721 rm -rf conftest.dSYM
5722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5724 rm -f conftest.val
5726 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5727 $as_echo "$ac_cv_sizeof_long" >&6; }
5731 cat >>confdefs.h <<_ACEOF
5732 #define SIZEOF_LONG $ac_cv_sizeof_long
5733 _ACEOF
5736 { $as_echo "$as_me:$LINENO: checking for long long" >&5
5737 $as_echo_n "checking for long long... " >&6; }
5738 if test "${ac_cv_type_long_long+set}" = set; then
5739 $as_echo_n "(cached) " >&6
5740 else
5741 ac_cv_type_long_long=no
5742 cat >conftest.$ac_ext <<_ACEOF
5743 /* confdefs.h. */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5748 $ac_includes_default
5750 main ()
5752 if (sizeof (long long))
5753 return 0;
5755 return 0;
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5760 case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5763 esac
5764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5765 $as_echo "$ac_try_echo") >&5
5766 (eval "$ac_compile") 2>conftest.er1
5767 ac_status=$?
5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
5771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } && {
5773 test -z "$ac_c_werror_flag" ||
5774 test ! -s conftest.err
5775 } && test -s conftest.$ac_objext; then
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 $ac_includes_default
5784 main ()
5786 if (sizeof ((long long)))
5787 return 0;
5789 return 0;
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5799 $as_echo "$ac_try_echo") >&5
5800 (eval "$ac_compile") 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && {
5807 test -z "$ac_c_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest.$ac_objext; then
5811 else
5812 $as_echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 ac_cv_type_long_long=yes
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 else
5820 $as_echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5829 $as_echo "$ac_cv_type_long_long" >&6; }
5830 if test $ac_cv_type_long_long = yes; then
5832 cat >>confdefs.h <<_ACEOF
5833 #define HAVE_LONG_LONG 1
5834 _ACEOF
5836 # The cast to long int works around a bug in the HP C Compiler
5837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5839 # This bug is HP SR number 8606223364.
5840 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
5841 $as_echo_n "checking size of long long... " >&6; }
5842 if test "${ac_cv_sizeof_long_long+set}" = set; then
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test "$cross_compiling" = yes; then
5846 # Depending upon the size, compute the lo and hi bounds.
5847 cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h. */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 $ac_includes_default
5855 main ()
5857 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
5858 test_array [0] = 0
5861 return 0;
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (ac_try="$ac_compile"
5866 case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869 esac
5870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5871 $as_echo "$ac_try_echo") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.$ac_objext; then
5882 ac_lo=0 ac_mid=0
5883 while :; do
5884 cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h. */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 $ac_includes_default
5892 main ()
5894 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
5895 test_array [0] = 0
5898 return 0;
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5903 case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5908 $as_echo "$ac_try_echo") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
5919 ac_hi=$ac_mid; break
5920 else
5921 $as_echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5924 ac_lo=`expr $ac_mid + 1`
5925 if test $ac_lo -le $ac_mid; then
5926 ac_lo= ac_hi=
5927 break
5929 ac_mid=`expr 2 '*' $ac_mid + 1`
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 done
5934 else
5935 $as_echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 $ac_includes_default
5946 main ()
5948 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
5949 test_array [0] = 0
5952 return 0;
5954 _ACEOF
5955 rm -f conftest.$ac_objext
5956 if { (ac_try="$ac_compile"
5957 case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960 esac
5961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5962 $as_echo "$ac_try_echo") >&5
5963 (eval "$ac_compile") 2>conftest.er1
5964 ac_status=$?
5965 grep -v '^ *+' conftest.er1 >conftest.err
5966 rm -f conftest.er1
5967 cat conftest.err >&5
5968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && {
5970 test -z "$ac_c_werror_flag" ||
5971 test ! -s conftest.err
5972 } && test -s conftest.$ac_objext; then
5973 ac_hi=-1 ac_mid=-1
5974 while :; do
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 $ac_includes_default
5983 main ()
5985 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
5986 test_array [0] = 0
5989 return 0;
5991 _ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5999 $as_echo "$ac_try_echo") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest.$ac_objext; then
6010 ac_lo=$ac_mid; break
6011 else
6012 $as_echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6015 ac_hi=`expr '(' $ac_mid ')' - 1`
6016 if test $ac_mid -le $ac_hi; then
6017 ac_lo= ac_hi=
6018 break
6020 ac_mid=`expr 2 '*' $ac_mid`
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 done
6025 else
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6029 ac_lo= ac_hi=
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 # Binary search between lo and hi bounds.
6037 while test "x$ac_lo" != "x$ac_hi"; do
6038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 $ac_includes_default
6047 main ()
6049 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
6050 test_array [0] = 0
6053 return 0;
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (ac_try="$ac_compile"
6058 case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061 esac
6062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6063 $as_echo "$ac_try_echo") >&5
6064 (eval "$ac_compile") 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } && {
6071 test -z "$ac_c_werror_flag" ||
6072 test ! -s conftest.err
6073 } && test -s conftest.$ac_objext; then
6074 ac_hi=$ac_mid
6075 else
6076 $as_echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_lo=`expr '(' $ac_mid ')' + 1`
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 done
6084 case $ac_lo in
6085 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6086 '') if test "$ac_cv_type_long_long" = yes; then
6087 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6088 See \`config.log' for more details." >&5
6089 $as_echo "$as_me: error: cannot compute sizeof (long long)
6090 See \`config.log' for more details." >&2;}
6091 { (exit 77); exit 77; }; }
6092 else
6093 ac_cv_sizeof_long_long=0
6094 fi ;;
6095 esac
6096 else
6097 cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h. */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 $ac_includes_default
6104 static long int longval () { return (long int) (sizeof (long long)); }
6105 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
6106 #include <stdio.h>
6107 #include <stdlib.h>
6109 main ()
6112 FILE *f = fopen ("conftest.val", "w");
6113 if (! f)
6114 return 1;
6115 if (((long int) (sizeof (long long))) < 0)
6117 long int i = longval ();
6118 if (i != ((long int) (sizeof (long long))))
6119 return 1;
6120 fprintf (f, "%ld", i);
6122 else
6124 unsigned long int i = ulongval ();
6125 if (i != ((long int) (sizeof (long long))))
6126 return 1;
6127 fprintf (f, "%lu", i);
6129 /* Do not output a trailing newline, as this causes \r\n confusion
6130 on some platforms. */
6131 return ferror (f) || fclose (f) != 0;
6134 return 0;
6136 _ACEOF
6137 rm -f conftest$ac_exeext
6138 if { (ac_try="$ac_link"
6139 case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142 esac
6143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6144 $as_echo "$ac_try_echo") >&5
6145 (eval "$ac_link") 2>&5
6146 ac_status=$?
6147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6149 { (case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152 esac
6153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6154 $as_echo "$ac_try_echo") >&5
6155 (eval "$ac_try") 2>&5
6156 ac_status=$?
6157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_cv_sizeof_long_long=`cat conftest.val`
6160 else
6161 $as_echo "$as_me: program exited with status $ac_status" >&5
6162 $as_echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6165 ( exit $ac_status )
6166 if test "$ac_cv_type_long_long" = yes; then
6167 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6168 See \`config.log' for more details." >&5
6169 $as_echo "$as_me: error: cannot compute sizeof (long long)
6170 See \`config.log' for more details." >&2;}
6171 { (exit 77); exit 77; }; }
6172 else
6173 ac_cv_sizeof_long_long=0
6176 rm -rf conftest.dSYM
6177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6179 rm -f conftest.val
6181 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6182 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6186 cat >>confdefs.h <<_ACEOF
6187 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6188 _ACEOF
6193 { $as_echo "$as_me:$LINENO: checking for __int64" >&5
6194 $as_echo_n "checking for __int64... " >&6; }
6195 if test "${ac_cv_type___int64+set}" = set; then
6196 $as_echo_n "(cached) " >&6
6197 else
6198 ac_cv_type___int64=no
6199 cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h. */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 $ac_includes_default
6207 main ()
6209 if (sizeof (__int64))
6210 return 0;
6212 return 0;
6214 _ACEOF
6215 rm -f conftest.$ac_objext
6216 if { (ac_try="$ac_compile"
6217 case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220 esac
6221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6222 $as_echo "$ac_try_echo") >&5
6223 (eval "$ac_compile") 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } && {
6230 test -z "$ac_c_werror_flag" ||
6231 test ! -s conftest.err
6232 } && test -s conftest.$ac_objext; then
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h. */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 $ac_includes_default
6241 main ()
6243 if (sizeof ((__int64)))
6244 return 0;
6246 return 0;
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (ac_try="$ac_compile"
6251 case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254 esac
6255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 $as_echo "$ac_try_echo") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6268 else
6269 $as_echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_cv_type___int64=yes
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 else
6277 $as_echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 { $as_echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6286 $as_echo "$ac_cv_type___int64" >&6; }
6287 if test $ac_cv_type___int64 = yes; then
6289 cat >>confdefs.h <<_ACEOF
6290 #define HAVE___INT64 1
6291 _ACEOF
6293 # The cast to long int works around a bug in the HP C Compiler
6294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6296 # This bug is HP SR number 8606223364.
6297 { $as_echo "$as_me:$LINENO: checking size of __int64" >&5
6298 $as_echo_n "checking size of __int64... " >&6; }
6299 if test "${ac_cv_sizeof___int64+set}" = set; then
6300 $as_echo_n "(cached) " >&6
6301 else
6302 if test "$cross_compiling" = yes; then
6303 # Depending upon the size, compute the lo and hi bounds.
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 $ac_includes_default
6312 main ()
6314 static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) >= 0)];
6315 test_array [0] = 0
6318 return 0;
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6323 case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6328 $as_echo "$ac_try_echo") >&5
6329 (eval "$ac_compile") 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && {
6336 test -z "$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6338 } && test -s conftest.$ac_objext; then
6339 ac_lo=0 ac_mid=0
6340 while :; do
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 $ac_includes_default
6349 main ()
6351 static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) <= $ac_mid)];
6352 test_array [0] = 0
6355 return 0;
6357 _ACEOF
6358 rm -f conftest.$ac_objext
6359 if { (ac_try="$ac_compile"
6360 case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363 esac
6364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365 $as_echo "$ac_try_echo") >&5
6366 (eval "$ac_compile") 2>conftest.er1
6367 ac_status=$?
6368 grep -v '^ *+' conftest.er1 >conftest.err
6369 rm -f conftest.er1
6370 cat conftest.err >&5
6371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && {
6373 test -z "$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6375 } && test -s conftest.$ac_objext; then
6376 ac_hi=$ac_mid; break
6377 else
6378 $as_echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 ac_lo=`expr $ac_mid + 1`
6382 if test $ac_lo -le $ac_mid; then
6383 ac_lo= ac_hi=
6384 break
6386 ac_mid=`expr 2 '*' $ac_mid + 1`
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 done
6391 else
6392 $as_echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h. */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6401 $ac_includes_default
6403 main ()
6405 static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) < 0)];
6406 test_array [0] = 0
6409 return 0;
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (ac_try="$ac_compile"
6414 case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417 esac
6418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6419 $as_echo "$ac_try_echo") >&5
6420 (eval "$ac_compile") 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } && {
6427 test -z "$ac_c_werror_flag" ||
6428 test ! -s conftest.err
6429 } && test -s conftest.$ac_objext; then
6430 ac_hi=-1 ac_mid=-1
6431 while :; do
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h. */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 $ac_includes_default
6440 main ()
6442 static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) >= $ac_mid)];
6443 test_array [0] = 0
6446 return 0;
6448 _ACEOF
6449 rm -f conftest.$ac_objext
6450 if { (ac_try="$ac_compile"
6451 case "(($ac_try" in
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6454 esac
6455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6456 $as_echo "$ac_try_echo") >&5
6457 (eval "$ac_compile") 2>conftest.er1
6458 ac_status=$?
6459 grep -v '^ *+' conftest.er1 >conftest.err
6460 rm -f conftest.er1
6461 cat conftest.err >&5
6462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } && {
6464 test -z "$ac_c_werror_flag" ||
6465 test ! -s conftest.err
6466 } && test -s conftest.$ac_objext; then
6467 ac_lo=$ac_mid; break
6468 else
6469 $as_echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6472 ac_hi=`expr '(' $ac_mid ')' - 1`
6473 if test $ac_mid -le $ac_hi; then
6474 ac_lo= ac_hi=
6475 break
6477 ac_mid=`expr 2 '*' $ac_mid`
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 done
6482 else
6483 $as_echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6486 ac_lo= ac_hi=
6489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 # Binary search between lo and hi bounds.
6494 while test "x$ac_lo" != "x$ac_hi"; do
6495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 $ac_includes_default
6504 main ()
6506 static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) <= $ac_mid)];
6507 test_array [0] = 0
6510 return 0;
6512 _ACEOF
6513 rm -f conftest.$ac_objext
6514 if { (ac_try="$ac_compile"
6515 case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518 esac
6519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6520 $as_echo "$ac_try_echo") >&5
6521 (eval "$ac_compile") 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } && {
6528 test -z "$ac_c_werror_flag" ||
6529 test ! -s conftest.err
6530 } && test -s conftest.$ac_objext; then
6531 ac_hi=$ac_mid
6532 else
6533 $as_echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_lo=`expr '(' $ac_mid ')' + 1`
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 done
6541 case $ac_lo in
6542 ?*) ac_cv_sizeof___int64=$ac_lo;;
6543 '') if test "$ac_cv_type___int64" = yes; then
6544 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6545 See \`config.log' for more details." >&5
6546 $as_echo "$as_me: error: cannot compute sizeof (__int64)
6547 See \`config.log' for more details." >&2;}
6548 { (exit 77); exit 77; }; }
6549 else
6550 ac_cv_sizeof___int64=0
6551 fi ;;
6552 esac
6553 else
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 $ac_includes_default
6561 static long int longval () { return (long int) (sizeof (__int64)); }
6562 static unsigned long int ulongval () { return (long int) (sizeof (__int64)); }
6563 #include <stdio.h>
6564 #include <stdlib.h>
6566 main ()
6569 FILE *f = fopen ("conftest.val", "w");
6570 if (! f)
6571 return 1;
6572 if (((long int) (sizeof (__int64))) < 0)
6574 long int i = longval ();
6575 if (i != ((long int) (sizeof (__int64))))
6576 return 1;
6577 fprintf (f, "%ld", i);
6579 else
6581 unsigned long int i = ulongval ();
6582 if (i != ((long int) (sizeof (__int64))))
6583 return 1;
6584 fprintf (f, "%lu", i);
6586 /* Do not output a trailing newline, as this causes \r\n confusion
6587 on some platforms. */
6588 return ferror (f) || fclose (f) != 0;
6591 return 0;
6593 _ACEOF
6594 rm -f conftest$ac_exeext
6595 if { (ac_try="$ac_link"
6596 case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599 esac
6600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601 $as_echo "$ac_try_echo") >&5
6602 (eval "$ac_link") 2>&5
6603 ac_status=$?
6604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6606 { (case "(($ac_try" in
6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608 *) ac_try_echo=$ac_try;;
6609 esac
6610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6611 $as_echo "$ac_try_echo") >&5
6612 (eval "$ac_try") 2>&5
6613 ac_status=$?
6614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_sizeof___int64=`cat conftest.val`
6617 else
6618 $as_echo "$as_me: program exited with status $ac_status" >&5
6619 $as_echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ( exit $ac_status )
6623 if test "$ac_cv_type___int64" = yes; then
6624 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6625 See \`config.log' for more details." >&5
6626 $as_echo "$as_me: error: cannot compute sizeof (__int64)
6627 See \`config.log' for more details." >&2;}
6628 { (exit 77); exit 77; }; }
6629 else
6630 ac_cv_sizeof___int64=0
6633 rm -rf conftest.dSYM
6634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6636 rm -f conftest.val
6638 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6639 $as_echo "$ac_cv_sizeof___int64" >&6; }
6643 cat >>confdefs.h <<_ACEOF
6644 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6645 _ACEOF
6651 # ---------------------
6652 # Warnings and checking
6653 # ---------------------
6655 # Check $CC warning features (if it's GCC).
6656 # We want to use -pedantic, but we don't want warnings about
6657 # * 'long long'
6658 # * variadic macros
6659 # So, we only use -pedantic if we can disable those warnings.
6661 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6662 $as_echo_n "checking whether ${CC} accepts -Wno-long-long... " >&6; }
6663 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6664 $as_echo_n "(cached) " >&6
6665 else
6666 save_CFLAGS="$CFLAGS"
6667 CFLAGS="-Wno-long-long"
6668 cat >conftest.$ac_ext <<_ACEOF
6669 /* confdefs.h. */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (ac_try="$ac_compile"
6678 case "(($ac_try" in
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6681 esac
6682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6683 $as_echo "$ac_try_echo") >&5
6684 (eval "$ac_compile") 2>conftest.er1
6685 ac_status=$?
6686 grep -v '^ *+' conftest.er1 >conftest.err
6687 rm -f conftest.er1
6688 cat conftest.err >&5
6689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && {
6691 test -z "$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6693 } && test -s conftest.$ac_objext; then
6694 ac_cv_prog_cc_w_no_long_long=yes
6695 else
6696 $as_echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_cv_prog_cc_w_no_long_long=no
6702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703 CFLAGS="$save_CFLAGS"
6706 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6707 $as_echo "$ac_cv_prog_cc_w_no_long_long" >&6; }
6709 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6710 $as_echo_n "checking whether ${CC} accepts -Wno-variadic-macros... " >&6; }
6711 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6712 $as_echo_n "(cached) " >&6
6713 else
6714 save_CFLAGS="$CFLAGS"
6715 CFLAGS="-Wno-variadic-macros"
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6723 _ACEOF
6724 rm -f conftest.$ac_objext
6725 if { (ac_try="$ac_compile"
6726 case "(($ac_try" in
6727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728 *) ac_try_echo=$ac_try;;
6729 esac
6730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6731 $as_echo "$ac_try_echo") >&5
6732 (eval "$ac_compile") 2>conftest.er1
6733 ac_status=$?
6734 grep -v '^ *+' conftest.er1 >conftest.err
6735 rm -f conftest.er1
6736 cat conftest.err >&5
6737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } && {
6739 test -z "$ac_c_werror_flag" ||
6740 test ! -s conftest.err
6741 } && test -s conftest.$ac_objext; then
6742 ac_cv_prog_cc_w_no_variadic_macros=yes
6743 else
6744 $as_echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6747 ac_cv_prog_cc_w_no_variadic_macros=no
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 CFLAGS="$save_CFLAGS"
6754 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6755 $as_echo "$ac_cv_prog_cc_w_no_variadic_macros" >&6; }
6757 strict1_warn=
6758 if test $ac_cv_prog_cc_w_no_long_long = yes \
6759 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6760 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6763 # Add -Wold-style-definition if it's accepted
6764 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6765 $as_echo_n "checking whether ${CC} accepts -Wold-style-definition... " >&6; }
6766 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6767 $as_echo_n "(cached) " >&6
6768 else
6769 save_CFLAGS="$CFLAGS"
6770 CFLAGS="-Wold-style-definition"
6771 cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h. */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6778 _ACEOF
6779 rm -f conftest.$ac_objext
6780 if { (ac_try="$ac_compile"
6781 case "(($ac_try" in
6782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6783 *) ac_try_echo=$ac_try;;
6784 esac
6785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6786 $as_echo "$ac_try_echo") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6788 ac_status=$?
6789 grep -v '^ *+' conftest.er1 >conftest.err
6790 rm -f conftest.er1
6791 cat conftest.err >&5
6792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6797 ac_cv_prog_cc_w_old_style_definition=yes
6798 else
6799 $as_echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6802 ac_cv_prog_cc_w_old_style_definition=no
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 CFLAGS="$save_CFLAGS"
6809 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6810 $as_echo "$ac_cv_prog_cc_w_old_style_definition" >&6; }
6811 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6812 strict1_warn="${strict1_warn} -Wold-style-definition"
6815 # Add -Wmissing-format-attribute if it's accepted
6816 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6817 $as_echo_n "checking whether ${CC} accepts -Wmissing-format-attribute... " >&6; }
6818 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6819 $as_echo_n "(cached) " >&6
6820 else
6821 save_CFLAGS="$CFLAGS"
6822 CFLAGS="-Wmissing-format-attribute"
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6830 _ACEOF
6831 rm -f conftest.$ac_objext
6832 if { (ac_try="$ac_compile"
6833 case "(($ac_try" in
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835 *) ac_try_echo=$ac_try;;
6836 esac
6837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6838 $as_echo "$ac_try_echo") >&5
6839 (eval "$ac_compile") 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest.$ac_objext; then
6849 ac_cv_prog_cc_w_missing_format_attribute=yes
6850 else
6851 $as_echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 ac_cv_prog_cc_w_missing_format_attribute=no
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 CFLAGS="$save_CFLAGS"
6861 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6862 $as_echo "$ac_cv_prog_cc_w_missing_format_attribute" >&6; }
6863 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6864 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6867 # Enable -Werror, period.
6868 # Check whether --enable-werror_always was given.
6869 if test "${enable_werror_always+set}" = set; then
6870 enableval=$enable_werror_always;
6871 else
6872 enable_werror_always=no
6875 if test x${enable_werror_always} = xyes ; then
6876 strict1_warn="${strict1_warn} -Werror"
6877 WERROR=-Werror
6882 # If the native compiler is GCC, we can enable warnings even in stage1.
6883 # That's useful for people building cross-compilers, or just running a
6884 # quick `make'.
6885 warn_cflags=
6886 if test "x$GCC" = "xyes"; then
6887 warn_cflags='$(GCC_WARN_CFLAGS)'
6891 # Enable -Werror in bootstrap stage2 and later.
6892 is_release=
6893 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6894 is_release=yes
6896 # Check whether --enable-werror was given.
6897 if test "${enable_werror+set}" = set; then
6898 enableval=$enable_werror;
6899 else
6900 if test x$is_release = x ; then
6901 # Default to "yes" on development branches.
6902 enable_werror=yes
6903 else
6904 # Default to "no" on release branches.
6905 enable_werror=no
6909 if test x$enable_werror = xyes ; then
6910 WERROR=-Werror
6914 # Enable expensive internal checks
6915 # Check whether --enable-checking was given.
6916 if test "${enable_checking+set}" = set; then
6917 enableval=$enable_checking; ac_checking_flags="${enableval}"
6918 else
6920 # Determine the default checks.
6921 if test x$is_release = x ; then
6922 ac_checking_flags=yes
6923 else
6924 ac_checking_flags=release
6928 ac_assert_checking=1
6929 ac_checking=
6930 ac_fold_checking=
6931 ac_gc_checking=
6932 ac_gc_always_collect=
6933 ac_rtl_checking=
6934 ac_rtlflag_checking=
6935 ac_runtime_checking=1
6936 ac_tree_checking=
6937 ac_valgrind_checking=
6938 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6939 for check in $ac_checking_flags
6941 case $check in
6942 # these set all the flags to specific states
6943 yes) ac_assert_checking=1 ; ac_checking=1 ;
6944 ac_fold_checking= ; ac_gc_checking=1 ;
6945 ac_gc_always_collect= ; ac_rtl_checking= ;
6946 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6947 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6948 no|none) ac_assert_checking= ; ac_checking= ;
6949 ac_fold_checking= ; ac_gc_checking= ;
6950 ac_gc_always_collect= ; ac_rtl_checking= ;
6951 ac_rtlflag_checking= ; ac_runtime_checking= ;
6952 ac_tree_checking= ; ac_valgrind_checking= ;;
6953 all) ac_assert_checking=1 ; ac_checking=1 ;
6954 ac_fold_checking=1 ; ac_gc_checking=1 ;
6955 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6956 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6957 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6958 release) ac_assert_checking=1 ; ac_checking= ;
6959 ac_fold_checking= ; ac_gc_checking= ;
6960 ac_gc_always_collect= ; ac_rtl_checking= ;
6961 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6962 ac_tree_checking= ; ac_valgrind_checking= ;;
6963 # these enable particular checks
6964 assert) ac_assert_checking=1 ;;
6965 fold) ac_fold_checking=1 ;;
6966 gc) ac_gc_checking=1 ;;
6967 gcac) ac_gc_always_collect=1 ;;
6968 misc) ac_checking=1 ;;
6969 rtl) ac_rtl_checking=1 ;;
6970 rtlflag) ac_rtlflag_checking=1 ;;
6971 runtime) ac_runtime_checking=1 ;;
6972 tree) ac_tree_checking=1 ;;
6973 valgrind) ac_valgrind_checking=1 ;;
6974 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
6975 $as_echo "$as_me: error: unknown check category $check" >&2;}
6976 { (exit 1); exit 1; }; } ;;
6977 esac
6978 done
6979 IFS="$ac_save_IFS"
6981 nocommon_flag=""
6982 if test x$ac_checking != x ; then
6984 cat >>confdefs.h <<\_ACEOF
6985 #define ENABLE_CHECKING 1
6986 _ACEOF
6988 nocommon_flag=-fno-common
6991 if test x$ac_assert_checking != x ; then
6993 cat >>confdefs.h <<\_ACEOF
6994 #define ENABLE_ASSERT_CHECKING 1
6995 _ACEOF
6999 if test x$ac_runtime_checking != x ; then
7001 cat >>confdefs.h <<\_ACEOF
7002 #define ENABLE_RUNTIME_CHECKING 1
7003 _ACEOF
7006 if test x$ac_tree_checking != x ; then
7008 cat >>confdefs.h <<\_ACEOF
7009 #define ENABLE_TREE_CHECKING 1
7010 _ACEOF
7012 TREEBROWSER=tree-browser.o
7015 if test x$ac_rtl_checking != x ; then
7017 cat >>confdefs.h <<\_ACEOF
7018 #define ENABLE_RTL_CHECKING 1
7019 _ACEOF
7022 if test x$ac_rtlflag_checking != x ; then
7024 cat >>confdefs.h <<\_ACEOF
7025 #define ENABLE_RTL_FLAG_CHECKING 1
7026 _ACEOF
7029 if test x$ac_gc_checking != x ; then
7031 cat >>confdefs.h <<\_ACEOF
7032 #define ENABLE_GC_CHECKING 1
7033 _ACEOF
7036 if test x$ac_gc_always_collect != x ; then
7038 cat >>confdefs.h <<\_ACEOF
7039 #define ENABLE_GC_ALWAYS_COLLECT 1
7040 _ACEOF
7043 if test x$ac_fold_checking != x ; then
7045 cat >>confdefs.h <<\_ACEOF
7046 #define ENABLE_FOLD_CHECKING 1
7047 _ACEOF
7050 valgrind_path_defines=
7051 valgrind_command=
7053 if test "${ac_cv_header_valgrind_h+set}" = set; then
7054 { $as_echo "$as_me:$LINENO: checking for valgrind.h" >&5
7055 $as_echo_n "checking for valgrind.h... " >&6; }
7056 if test "${ac_cv_header_valgrind_h+set}" = set; then
7057 $as_echo_n "(cached) " >&6
7059 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7060 $as_echo "$ac_cv_header_valgrind_h" >&6; }
7061 else
7062 # Is the header compilable?
7063 { $as_echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7064 $as_echo_n "checking valgrind.h usability... " >&6; }
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h. */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 $ac_includes_default
7072 #include <valgrind.h>
7073 _ACEOF
7074 rm -f conftest.$ac_objext
7075 if { (ac_try="$ac_compile"
7076 case "(($ac_try" in
7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7079 esac
7080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7081 $as_echo "$ac_try_echo") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
7087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.$ac_objext; then
7092 ac_header_compiler=yes
7093 else
7094 $as_echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_header_compiler=no
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7102 $as_echo "$ac_header_compiler" >&6; }
7104 # Is the header present?
7105 { $as_echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7106 $as_echo_n "checking valgrind.h presence... " >&6; }
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 #include <valgrind.h>
7114 _ACEOF
7115 if { (ac_try="$ac_cpp conftest.$ac_ext"
7116 case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119 esac
7120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7121 $as_echo "$ac_try_echo") >&5
7122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7123 ac_status=$?
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
7127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } >/dev/null && {
7129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 }; then
7132 ac_header_preproc=yes
7133 else
7134 $as_echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 ac_header_preproc=no
7140 rm -f conftest.err conftest.$ac_ext
7141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7142 $as_echo "$ac_header_preproc" >&6; }
7144 # So? What about this header?
7145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7146 yes:no: )
7147 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7148 $as_echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7149 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7150 $as_echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7151 ac_header_preproc=yes
7153 no:yes:* )
7154 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7155 $as_echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7156 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7157 $as_echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7158 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7159 $as_echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7160 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7161 $as_echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7162 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7163 $as_echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7164 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7165 $as_echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7168 esac
7169 { $as_echo "$as_me:$LINENO: checking for valgrind.h" >&5
7170 $as_echo_n "checking for valgrind.h... " >&6; }
7171 if test "${ac_cv_header_valgrind_h+set}" = set; then
7172 $as_echo_n "(cached) " >&6
7173 else
7174 ac_cv_header_valgrind_h=$ac_header_preproc
7176 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7177 $as_echo "$ac_cv_header_valgrind_h" >&6; }
7180 if test $ac_cv_header_valgrind_h = yes; then
7181 have_valgrind_h=yes
7182 else
7183 have_valgrind_h=no
7188 if test x$ac_valgrind_checking != x ; then
7189 # It is certainly possible that there's valgrind but no valgrind.h.
7190 # GCC relies on making annotations so we must have both.
7191 { $as_echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7192 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 #include <valgrind/memcheck.h>
7200 #ifndef VALGRIND_DISCARD
7201 #error VALGRIND_DISCARD not defined
7202 #endif
7203 _ACEOF
7204 if { (ac_try="$ac_cpp conftest.$ac_ext"
7205 case "(($ac_try" in
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7208 esac
7209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7210 $as_echo "$ac_try_echo") >&5
7211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } >/dev/null && {
7218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7220 }; then
7221 gcc_cv_header_valgrind_memcheck_h=yes
7222 else
7223 $as_echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7226 gcc_cv_header_valgrind_memcheck_h=no
7229 rm -f conftest.err conftest.$ac_ext
7230 { $as_echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7231 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7232 { $as_echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7233 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 #include <memcheck.h>
7241 #ifndef VALGRIND_DISCARD
7242 #error VALGRIND_DISCARD not defined
7243 #endif
7244 _ACEOF
7245 if { (ac_try="$ac_cpp conftest.$ac_ext"
7246 case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7249 esac
7250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7251 $as_echo "$ac_try_echo") >&5
7252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7253 ac_status=$?
7254 grep -v '^ *+' conftest.er1 >conftest.err
7255 rm -f conftest.er1
7256 cat conftest.err >&5
7257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } >/dev/null && {
7259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7260 test ! -s conftest.err
7261 }; then
7262 gcc_cv_header_memcheck_h=yes
7263 else
7264 $as_echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 gcc_cv_header_memcheck_h=no
7270 rm -f conftest.err conftest.$ac_ext
7271 { $as_echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7272 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7274 # Prepare PATH_SEPARATOR.
7275 # The user is always right.
7276 if test "${PATH_SEPARATOR+set}" != set; then
7277 echo "#! /bin/sh" >conf$$.sh
7278 echo "exit 0" >>conf$$.sh
7279 chmod +x conf$$.sh
7280 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7281 PATH_SEPARATOR=';'
7282 else
7283 PATH_SEPARATOR=:
7285 rm -f conf$$.sh
7288 # Find out how to test for executable files. Don't use a zero-byte file,
7289 # as systems may use methods other than mode bits to determine executability.
7290 cat >conf$$.file <<_ASEOF
7291 #! /bin/sh
7292 exit 0
7293 _ASEOF
7294 chmod +x conf$$.file
7295 if test -x conf$$.file >/dev/null 2>&1; then
7296 ac_executable_p="test -x"
7297 else
7298 ac_executable_p="test -f"
7300 rm -f conf$$.file
7302 # Extract the first word of "valgrind", so it can be a program name with args.
7303 set dummy valgrind; ac_word=$2
7304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_path_valgrind_path+set}" = set; then
7307 $as_echo_n "(cached) " >&6
7308 else
7309 case "$valgrind_path" in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7314 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7315 for ac_dir in $PATH; do
7316 IFS="$ac_save_IFS"
7317 test -z "$ac_dir" && ac_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7320 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7321 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7322 break 2
7325 done
7326 done
7327 IFS="$ac_save_IFS"
7329 esac
7331 valgrind_path="$ac_cv_path_valgrind_path"
7332 if test -n "$valgrind_path"; then
7333 { $as_echo "$as_me:$LINENO: result: $valgrind_path" >&5
7334 $as_echo "$valgrind_path" >&6; }
7335 else
7336 { $as_echo "$as_me:$LINENO: result: no" >&5
7337 $as_echo "no" >&6; }
7340 if test "x$valgrind_path" = "x" \
7341 || (test $have_valgrind_h = no \
7342 && test $gcc_cv_header_memcheck_h = no \
7343 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7344 { { $as_echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7345 $as_echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7346 { (exit 1); exit 1; }; }
7348 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7349 valgrind_command="$valgrind_path -q"
7351 cat >>confdefs.h <<\_ACEOF
7352 #define ENABLE_VALGRIND_CHECKING 1
7353 _ACEOF
7355 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7357 cat >>confdefs.h <<\_ACEOF
7358 #define HAVE_VALGRIND_MEMCHECK_H 1
7359 _ACEOF
7362 if test $gcc_cv_header_memcheck_h = yes; then
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_MEMCHECK_H 1
7366 _ACEOF
7373 # Check whether --enable-mapped-location was given.
7374 if test "${enable_mapped_location+set}" = set; then
7375 enableval=$enable_mapped_location;
7376 else
7377 enable_mapped_location=no
7381 if test "$enable_mapped_location" = yes ; then
7383 cat >>confdefs.h <<\_ACEOF
7384 #define USE_MAPPED_LOCATION 1
7385 _ACEOF
7389 # Enable code coverage collection
7390 # Check whether --enable-coverage was given.
7391 if test "${enable_coverage+set}" = set; then
7392 enableval=$enable_coverage; case "${enableval}" in
7393 yes|noopt)
7394 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7396 opt)
7397 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7400 # a.k.a. --disable-coverage
7401 coverage_flags=""
7404 { { $as_echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7405 $as_echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7406 { (exit 1); exit 1; }; }
7408 esac
7409 else
7410 coverage_flags=""
7415 # Check whether --enable-gather-detailed-mem-stats was given.
7416 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7417 enableval=$enable_gather_detailed_mem_stats;
7418 else
7419 enable_gather_detailed_mem_stats=no
7422 if test x$enable_gather_detailed_mem_stats = xyes ; then
7424 cat >>confdefs.h <<\_ACEOF
7425 #define GATHER_STATISTICS 1
7426 _ACEOF
7430 # -------------------------------
7431 # Miscenalleous configure options
7432 # -------------------------------
7434 # With stabs
7436 # Check whether --with-stabs was given.
7437 if test "${with_stabs+set}" = set; then
7438 withval=$with_stabs; stabs="$with_stabs"
7439 else
7440 stabs=no
7444 # Determine whether or not multilibs are enabled.
7445 # Check whether --enable-multilib was given.
7446 if test "${enable_multilib+set}" = set; then
7447 enableval=$enable_multilib;
7448 else
7449 enable_multilib=yes
7454 # Enable __cxa_atexit for C++.
7455 # Check whether --enable-__cxa_atexit was given.
7456 if test "${enable___cxa_atexit+set}" = set; then
7457 enableval=$enable___cxa_atexit;
7461 # Enable threads
7462 # Pass with no value to take the default
7463 # Pass with a value to specify a thread package
7464 # Check whether --enable-threads was given.
7465 if test "${enable_threads+set}" = set; then
7466 enableval=$enable_threads;
7467 else
7468 enable_threads=''
7472 # Check whether --enable-tls was given.
7473 if test "${enable_tls+set}" = set; then
7474 enableval=$enable_tls;
7475 case $enable_tls in
7476 yes | no) ;;
7477 *) { { $as_echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7478 Valid choices are 'yes' and 'no'." >&5
7479 $as_echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7480 Valid choices are 'yes' and 'no'." >&2;}
7481 { (exit 1); exit 1; }; } ;;
7482 esac
7484 else
7485 enable_tls=''
7489 # Check whether --enable-objc-gc was given.
7490 if test "${enable_objc_gc+set}" = set; then
7491 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7492 objc_boehm_gc=''
7493 else
7494 objc_boehm_gc=1
7496 else
7497 objc_boehm_gc=''
7502 # Check whether --with-dwarf2 was given.
7503 if test "${with_dwarf2+set}" = set; then
7504 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7505 else
7506 dwarf2=no
7510 # Check whether --enable-shared was given.
7511 if test "${enable_shared+set}" = set; then
7512 enableval=$enable_shared;
7513 case $enable_shared in
7514 yes | no) ;;
7516 enable_shared=no
7517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7518 for pkg in $enableval; do
7519 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7520 enable_shared=yes
7522 done
7523 IFS="$ac_save_ifs"
7525 esac
7527 else
7528 enable_shared=yes
7534 # Check whether --with-build-sysroot was given.
7535 if test "${with_build_sysroot+set}" = set; then
7536 withval=$with_build_sysroot;
7541 # Check whether --with-sysroot was given.
7542 if test "${with_sysroot+set}" = set; then
7543 withval=$with_sysroot;
7544 case ${with_sysroot} in
7545 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7546 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7547 esac
7549 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7550 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7552 if test "x$exec_prefix" = xNONE; then
7553 if test "x$prefix" = xNONE; then
7554 test_prefix=/usr/local
7555 else
7556 test_prefix=$prefix
7558 else
7559 test_prefix=$exec_prefix
7561 case ${TARGET_SYSTEM_ROOT} in
7562 "${test_prefix}"|"${test_prefix}/"*|\
7563 '${exec_prefix}'|'${exec_prefix}/'*)
7564 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7565 TARGET_SYSTEM_ROOT_DEFINE="$t"
7567 esac
7569 else
7571 TARGET_SYSTEM_ROOT=
7572 TARGET_SYSTEM_ROOT_DEFINE=
7573 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7581 # Build with intermodule optimisations
7582 # Check whether --enable-intermodule was given.
7583 if test "${enable_intermodule+set}" = set; then
7584 enableval=$enable_intermodule; case ${enable_intermodule} in
7585 yes) onestep="-onestep";;
7586 *) onestep="";;
7587 esac
7588 else
7589 onestep=""
7594 # Sanity check enable_languages in case someone does not run the toplevel
7595 # configure # script.
7596 # Check whether --enable-languages was given.
7597 if test "${enable_languages+set}" = set; then
7598 enableval=$enable_languages; case ,${enable_languages}, in
7599 ,,|,yes,)
7600 # go safe -- we cannot be much sure without the toplevel
7601 # configure's
7602 # analysis of which target libs are present and usable
7603 enable_languages=c
7605 *,all,*)
7606 { { $as_echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7607 $as_echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7608 { (exit 1); exit 1; }; }
7610 *,c,*)
7613 enable_languages=c,${enable_languages}
7615 esac
7616 else
7617 enable_languages=c
7621 subdirs=
7622 for lang in ${srcdir}/*/config-lang.in
7624 case $lang in
7625 # The odd quoting in the next line works around
7626 # an apparent bug in bash 1.12 on linux.
7627 ${srcdir}/[*]/config-lang.in) ;;
7629 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7630 if test "x$lang_alias" = x
7631 then
7632 echo "$lang doesn't set \$language." 1>&2
7633 exit 1
7635 case ",$enable_languages," in
7636 *,$lang_alias,*)
7637 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7638 esac
7640 esac
7641 done
7644 # -------------------------
7645 # Checks for other programs
7646 # -------------------------
7648 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7649 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7650 set x ${MAKE-make}
7651 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7652 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7653 $as_echo_n "(cached) " >&6
7654 else
7655 cat >conftest.make <<\_ACEOF
7656 SHELL = /bin/sh
7657 all:
7658 @echo '@@@%%%=$(MAKE)=@@@%%%'
7659 _ACEOF
7660 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7661 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7662 *@@@%%%=?*=@@@%%%*)
7663 eval ac_cv_prog_make_${ac_make}_set=yes;;
7665 eval ac_cv_prog_make_${ac_make}_set=no;;
7666 esac
7667 rm -f conftest.make
7669 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7670 { $as_echo "$as_me:$LINENO: result: yes" >&5
7671 $as_echo "yes" >&6; }
7672 SET_MAKE=
7673 else
7674 { $as_echo "$as_me:$LINENO: result: no" >&5
7675 $as_echo "no" >&6; }
7676 SET_MAKE="MAKE=${MAKE-make}"
7680 # Find some useful tools
7681 for ac_prog in gawk mawk nawk awk
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if test "${ac_cv_prog_AWK+set}" = set; then
7688 $as_echo_n "(cached) " >&6
7689 else
7690 if test -n "$AWK"; then
7691 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7700 ac_cv_prog_AWK="$ac_prog"
7701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 break 2
7704 done
7705 done
7706 IFS=$as_save_IFS
7710 AWK=$ac_cv_prog_AWK
7711 if test -n "$AWK"; then
7712 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7713 $as_echo "$AWK" >&6; }
7714 else
7715 { $as_echo "$as_me:$LINENO: result: no" >&5
7716 $as_echo "no" >&6; }
7720 test -n "$AWK" && break
7721 done
7723 # We need awk to create options.c and options.h.
7724 # Bail out if it's missing.
7725 case ${AWK} in
7726 "") { { $as_echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7727 $as_echo "$as_me: error: can't build without awk, bailing out" >&2;}
7728 { (exit 1); exit 1; }; } ;;
7729 esac
7731 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7732 $as_echo_n "checking whether ln -s works... " >&6; }
7733 if test "${gcc_cv_prog_LN_S+set}" = set; then
7734 $as_echo_n "(cached) " >&6
7735 else
7736 rm -f conftestdata_t
7737 echo >conftestdata_f
7738 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7739 then
7740 gcc_cv_prog_LN_S="ln -s"
7741 else
7742 if ln conftestdata_f conftestdata_t 2>/dev/null
7743 then
7744 gcc_cv_prog_LN_S=ln
7745 else
7746 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7747 then
7748 gcc_cv_prog_LN_S="cp -p"
7749 else
7750 gcc_cv_prog_LN_S=cp
7754 rm -f conftestdata_f conftestdata_t
7757 LN_S="$gcc_cv_prog_LN_S"
7758 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7759 { $as_echo "$as_me:$LINENO: result: yes" >&5
7760 $as_echo "yes" >&6; }
7761 else
7762 if test "$gcc_cv_prog_LN_S" = "ln"; then
7763 { $as_echo "$as_me:$LINENO: result: no, using ln" >&5
7764 $as_echo "no, using ln" >&6; }
7765 else
7766 { $as_echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7767 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7771 { $as_echo "$as_me:$LINENO: checking whether ln works" >&5
7772 $as_echo_n "checking whether ln works... " >&6; }
7773 if test "${acx_cv_prog_LN+set}" = set; then
7774 $as_echo_n "(cached) " >&6
7775 else
7776 rm -f conftestdata_t
7777 echo >conftestdata_f
7778 if ln conftestdata_f conftestdata_t 2>/dev/null
7779 then
7780 acx_cv_prog_LN=ln
7781 else
7782 acx_cv_prog_LN=no
7784 rm -f conftestdata_f conftestdata_t
7787 if test $acx_cv_prog_LN = no; then
7788 LN="$LN_S"
7789 { $as_echo "$as_me:$LINENO: result: no, using $LN" >&5
7790 $as_echo "no, using $LN" >&6; }
7791 else
7792 LN="$acx_cv_prog_LN"
7793 { $as_echo "$as_me:$LINENO: result: yes" >&5
7794 $as_echo "yes" >&6; }
7797 if test -n "$ac_tool_prefix"; then
7798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if test "${ac_cv_prog_RANLIB+set}" = set; then
7803 $as_echo_n "(cached) " >&6
7804 else
7805 if test -n "$RANLIB"; then
7806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7819 done
7820 done
7821 IFS=$as_save_IFS
7825 RANLIB=$ac_cv_prog_RANLIB
7826 if test -n "$RANLIB"; then
7827 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7828 $as_echo "$RANLIB" >&6; }
7829 else
7830 { $as_echo "$as_me:$LINENO: result: no" >&5
7831 $as_echo "no" >&6; }
7836 if test -z "$ac_cv_prog_RANLIB"; then
7837 ac_ct_RANLIB=$RANLIB
7838 # Extract the first word of "ranlib", so it can be a program name with args.
7839 set dummy ranlib; ac_word=$2
7840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7843 $as_echo_n "(cached) " >&6
7844 else
7845 if test -n "$ac_ct_RANLIB"; then
7846 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_prog_ac_ct_RANLIB="ranlib"
7856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7859 done
7860 done
7861 IFS=$as_save_IFS
7865 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7866 if test -n "$ac_ct_RANLIB"; then
7867 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7868 $as_echo "$ac_ct_RANLIB" >&6; }
7869 else
7870 { $as_echo "$as_me:$LINENO: result: no" >&5
7871 $as_echo "no" >&6; }
7874 if test "x$ac_ct_RANLIB" = x; then
7875 RANLIB=":"
7876 else
7877 case $cross_compiling:$ac_tool_warned in
7878 yes:)
7879 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7880 whose name does not start with the host triplet. If you think this
7881 configuration is useful to you, please write to autoconf@gnu.org." >&5
7882 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7883 whose name does not start with the host triplet. If you think this
7884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7885 ac_tool_warned=yes ;;
7886 esac
7887 RANLIB=$ac_ct_RANLIB
7889 else
7890 RANLIB="$ac_cv_prog_RANLIB"
7893 case "${host}" in
7894 *-*-darwin*)
7895 # By default, the Darwin ranlib will not treat common symbols as
7896 # definitions when building the archive table of contents. Other
7897 # ranlibs do that; pass an option to the Darwin ranlib that makes
7898 # it behave similarly.
7899 ranlib_flags="-c"
7902 ranlib_flags=""
7903 esac
7906 # Find a good install program. We prefer a C program (faster),
7907 # so one script is as good as another. But avoid the broken or
7908 # incompatible versions:
7909 # SysV /etc/install, /usr/sbin/install
7910 # SunOS /usr/etc/install
7911 # IRIX /sbin/install
7912 # AIX /bin/install
7913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7915 # ./install, which can be erroneously created by make from ./install.sh.
7916 { $as_echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7917 $as_echo_n "checking for a BSD compatible install... " >&6; }
7918 if test -z "$INSTALL"; then
7919 if test "${ac_cv_path_install+set}" = set; then
7920 $as_echo_n "(cached) " >&6
7921 else
7922 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7923 for ac_dir in $PATH; do
7924 # Account for people who put trailing slashes in PATH elements.
7925 case "$ac_dir/" in
7926 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7928 # OSF1 and SCO ODT 3.0 have their own names for install.
7929 for ac_prog in ginstall scoinst install; do
7930 if test -f $ac_dir/$ac_prog; then
7931 if test $ac_prog = install &&
7932 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7933 # AIX install. It has an incompatible calling convention.
7934 # OSF/1 installbsd also uses dspmsg, but is usable.
7936 else
7937 ac_cv_path_install="$ac_dir/$ac_prog -c"
7938 break 2
7941 done
7943 esac
7944 done
7945 IFS="$ac_save_IFS"
7948 if test "${ac_cv_path_install+set}" = set; then
7949 INSTALL="$ac_cv_path_install"
7950 else
7951 # As a last resort, use the slow shell script. We don't cache a
7952 # path for INSTALL within a source directory, because that will
7953 # break other packages using the cache if that directory is
7954 # removed, or if the path is relative.
7955 INSTALL="$ac_install_sh"
7958 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7959 $as_echo "$INSTALL" >&6; }
7961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7962 # It thinks the first close brace ends the variable substitution.
7963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7965 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7968 # See if cmp has --ignore-initial.
7969 { $as_echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7970 $as_echo_n "checking for cmp's capabilities... " >&6; }
7971 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7972 $as_echo_n "(cached) " >&6
7973 else
7974 echo abfoo >t1
7975 echo cdfoo >t2
7976 gcc_cv_prog_cmp_skip=slowcompare
7977 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7978 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7980 else
7981 gcc_cv_prog_cmp_skip=gnucompare
7984 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7985 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7986 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7988 else
7989 gcc_cv_prog_cmp_skip=fastcompare
7993 rm t1 t2
7996 { $as_echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7997 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7998 make_compare_target=$gcc_cv_prog_cmp_skip
8002 # See if we have the mktemp command.
8003 # Extract the first word of "mktemp", so it can be a program name with args.
8004 set dummy mktemp; ac_word=$2
8005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8008 $as_echo_n "(cached) " >&6
8009 else
8010 if test -n "$have_mktemp_command"; then
8011 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8020 ac_cv_prog_have_mktemp_command="yes"
8021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2
8024 done
8025 done
8026 IFS=$as_save_IFS
8028 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8031 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8032 if test -n "$have_mktemp_command"; then
8033 { $as_echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8034 $as_echo "$have_mktemp_command" >&6; }
8035 else
8036 { $as_echo "$as_me:$LINENO: result: no" >&5
8037 $as_echo "no" >&6; }
8042 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
8044 # See if makeinfo has been installed and is modern enough
8045 # that we can use it.
8047 ac_executable_extensions="$build_exeext"
8049 # Extract the first word of "makeinfo", so it can be a program name with args.
8050 set dummy makeinfo; ac_word=$2
8051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8054 $as_echo_n "(cached) " >&6
8055 else
8056 if test -n "$MAKEINFO"; then
8057 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_prog_MAKEINFO="makeinfo"
8067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8070 done
8071 done
8072 IFS=$as_save_IFS
8076 MAKEINFO=$ac_cv_prog_MAKEINFO
8077 if test -n "$MAKEINFO"; then
8078 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8079 $as_echo "$MAKEINFO" >&6; }
8080 else
8081 { $as_echo "$as_me:$LINENO: result: no" >&5
8082 $as_echo "no" >&6; }
8086 if test -n "$MAKEINFO"; then
8087 # Found it, now check the version.
8088 { $as_echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8089 $as_echo_n "checking for modern makeinfo... " >&6; }
8090 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8091 $as_echo_n "(cached) " >&6
8092 else
8093 ac_prog_version=`$MAKEINFO --version 2>&1 |
8094 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8095 echo "configure:8095: version of makeinfo is $ac_prog_version" >&5
8096 case $ac_prog_version in
8097 '') gcc_cv_prog_makeinfo_modern=no;;
8098 4.[2-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)
8099 gcc_cv_prog_makeinfo_modern=yes;;
8100 *) gcc_cv_prog_makeinfo_modern=no;;
8101 esac
8104 { $as_echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8105 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8106 else
8107 gcc_cv_prog_makeinfo_modern=no
8110 if test $gcc_cv_prog_makeinfo_modern = no; then
8111 MAKEINFO="$MISSING makeinfo"
8112 { $as_echo "$as_me:$LINENO: WARNING:
8113 *** Makeinfo is missing or too old.
8114 *** Info documentation will not be built." >&5
8115 $as_echo "$as_me: WARNING:
8116 *** Makeinfo is missing or too old.
8117 *** Info documentation will not be built." >&2;}
8118 BUILD_INFO=
8119 else
8120 BUILD_INFO=info
8124 # Is pod2man recent enough to regenerate manpages?
8125 { $as_echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8126 $as_echo_n "checking for recent Pod::Man... " >&6; }
8127 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8128 { $as_echo "$as_me:$LINENO: result: yes" >&5
8129 $as_echo "yes" >&6; }
8130 GENERATED_MANPAGES=generated-manpages
8131 else
8132 { $as_echo "$as_me:$LINENO: result: no" >&5
8133 $as_echo "no" >&6; }
8134 GENERATED_MANPAGES=
8138 # How about lex?
8139 for ac_prog in flex
8141 # Extract the first word of "$ac_prog", so it can be a program name with args.
8142 set dummy $ac_prog; ac_word=$2
8143 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8144 $as_echo_n "checking for $ac_word... " >&6; }
8145 if test "${ac_cv_prog_FLEX+set}" = set; then
8146 $as_echo_n "(cached) " >&6
8147 else
8148 if test -n "$FLEX"; then
8149 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8150 else
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8158 ac_cv_prog_FLEX="$ac_prog"
8159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8162 done
8163 done
8164 IFS=$as_save_IFS
8168 FLEX=$ac_cv_prog_FLEX
8169 if test -n "$FLEX"; then
8170 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
8171 $as_echo "$FLEX" >&6; }
8172 else
8173 { $as_echo "$as_me:$LINENO: result: no" >&5
8174 $as_echo "no" >&6; }
8178 test -n "$FLEX" && break
8179 done
8180 test -n "$FLEX" || FLEX="$MISSING flex"
8183 # Bison?
8184 for ac_prog in bison
8186 # Extract the first word of "$ac_prog", so it can be a program name with args.
8187 set dummy $ac_prog; ac_word=$2
8188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8189 $as_echo_n "checking for $ac_word... " >&6; }
8190 if test "${ac_cv_prog_BISON+set}" = set; then
8191 $as_echo_n "(cached) " >&6
8192 else
8193 if test -n "$BISON"; then
8194 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8195 else
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in $PATH
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8203 ac_cv_prog_BISON="$ac_prog"
8204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 break 2
8207 done
8208 done
8209 IFS=$as_save_IFS
8213 BISON=$ac_cv_prog_BISON
8214 if test -n "$BISON"; then
8215 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
8216 $as_echo "$BISON" >&6; }
8217 else
8218 { $as_echo "$as_me:$LINENO: result: no" >&5
8219 $as_echo "no" >&6; }
8223 test -n "$BISON" && break
8224 done
8225 test -n "$BISON" || BISON="$MISSING bison"
8228 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8229 # check for build == host before using them.
8231 # NM
8232 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8233 && test -d ../binutils ; then
8234 NM='$(objdir)/../binutils/nm-new'
8235 else
8236 # Extract the first word of "nm", so it can be a program name with args.
8237 set dummy nm; ac_word=$2
8238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if test "${ac_cv_prog_NM+set}" = set; then
8241 $as_echo_n "(cached) " >&6
8242 else
8243 if test -n "$NM"; then
8244 ac_cv_prog_NM="$NM" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8253 ac_cv_prog_NM="nm"
8254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8257 done
8258 done
8259 IFS=$as_save_IFS
8261 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8264 NM=$ac_cv_prog_NM
8265 if test -n "$NM"; then
8266 { $as_echo "$as_me:$LINENO: result: $NM" >&5
8267 $as_echo "$NM" >&6; }
8268 else
8269 { $as_echo "$as_me:$LINENO: result: no" >&5
8270 $as_echo "no" >&6; }
8276 # AR
8277 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8278 && test -d ../binutils ; then
8279 AR='$(objdir)/../binutils/ar'
8280 else
8281 # Extract the first word of "ar", so it can be a program name with args.
8282 set dummy ar; ac_word=$2
8283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if test "${ac_cv_prog_AR+set}" = set; then
8286 $as_echo_n "(cached) " >&6
8287 else
8288 if test -n "$AR"; then
8289 ac_cv_prog_AR="$AR" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8298 ac_cv_prog_AR="ar"
8299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8302 done
8303 done
8304 IFS=$as_save_IFS
8306 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8309 AR=$ac_cv_prog_AR
8310 if test -n "$AR"; then
8311 { $as_echo "$as_me:$LINENO: result: $AR" >&5
8312 $as_echo "$AR" >&6; }
8313 else
8314 { $as_echo "$as_me:$LINENO: result: no" >&5
8315 $as_echo "no" >&6; }
8322 # --------------------
8323 # Checks for C headers
8324 # --------------------
8326 { $as_echo "$as_me:$LINENO: checking for GNU C library" >&5
8327 $as_echo_n "checking for GNU C library... " >&6; }
8328 if test "${gcc_cv_glibc+set}" = set; then
8329 $as_echo_n "(cached) " >&6
8330 else
8331 cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h. */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 #include <features.h>
8339 main ()
8342 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
8343 #error Not a GNU C library system
8344 #endif
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8356 $as_echo "$ac_try_echo") >&5
8357 (eval "$ac_compile") 2>conftest.er1
8358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && {
8364 test -z "$ac_c_werror_flag" ||
8365 test ! -s conftest.err
8366 } && test -s conftest.$ac_objext; then
8367 gcc_cv_glibc=yes
8368 else
8369 $as_echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8372 gcc_cv_glibc=no
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 { $as_echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8379 $as_echo "$gcc_cv_glibc" >&6; }
8380 if test $gcc_cv_glibc = yes; then
8382 cat >>confdefs.h <<\_ACEOF
8383 #define _GNU_SOURCE 1
8384 _ACEOF
8388 # Need to reject headers which give warnings, so that the -Werror bootstrap
8389 # works later. *sigh* This needs to come before all header checks.
8391 ac_c_preproc_warn_flag=yes
8393 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8394 $as_echo_n "checking for ANSI C header files... " >&6; }
8395 if test "${ac_cv_header_stdc+set}" = set; then
8396 $as_echo_n "(cached) " >&6
8397 else
8398 cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h. */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 #include <stdlib.h>
8405 #include <stdarg.h>
8406 #include <string.h>
8407 #include <float.h>
8410 main ()
8414 return 0;
8416 _ACEOF
8417 rm -f conftest.$ac_objext
8418 if { (ac_try="$ac_compile"
8419 case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422 esac
8423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8424 $as_echo "$ac_try_echo") >&5
8425 (eval "$ac_compile") 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } && {
8432 test -z "$ac_c_werror_flag" ||
8433 test ! -s conftest.err
8434 } && test -s conftest.$ac_objext; then
8435 ac_cv_header_stdc=yes
8436 else
8437 $as_echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 ac_cv_header_stdc=no
8443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 if test $ac_cv_header_stdc = yes; then
8446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h. */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 #include <string.h>
8455 _ACEOF
8456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8457 $EGREP "memchr" >/dev/null 2>&1; then
8459 else
8460 ac_cv_header_stdc=no
8462 rm -f conftest*
8466 if test $ac_cv_header_stdc = yes; then
8467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8468 cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h. */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 #include <stdlib.h>
8476 _ACEOF
8477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8478 $EGREP "free" >/dev/null 2>&1; then
8480 else
8481 ac_cv_header_stdc=no
8483 rm -f conftest*
8487 if test $ac_cv_header_stdc = yes; then
8488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8489 if test "$cross_compiling" = yes; then
8491 else
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 #include <ctype.h>
8499 #include <stdlib.h>
8500 #if ((' ' & 0x0FF) == 0x020)
8501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8503 #else
8504 # define ISLOWER(c) \
8505 (('a' <= (c) && (c) <= 'i') \
8506 || ('j' <= (c) && (c) <= 'r') \
8507 || ('s' <= (c) && (c) <= 'z'))
8508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8509 #endif
8511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8513 main ()
8515 int i;
8516 for (i = 0; i < 256; i++)
8517 if (XOR (islower (i), ISLOWER (i))
8518 || toupper (i) != TOUPPER (i))
8519 return 2;
8520 return 0;
8522 _ACEOF
8523 rm -f conftest$ac_exeext
8524 if { (ac_try="$ac_link"
8525 case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528 esac
8529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530 $as_echo "$ac_try_echo") >&5
8531 (eval "$ac_link") 2>&5
8532 ac_status=$?
8533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8535 { (case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8538 esac
8539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8540 $as_echo "$ac_try_echo") >&5
8541 (eval "$ac_try") 2>&5
8542 ac_status=$?
8543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8546 else
8547 $as_echo "$as_me: program exited with status $ac_status" >&5
8548 $as_echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 ( exit $ac_status )
8552 ac_cv_header_stdc=no
8554 rm -rf conftest.dSYM
8555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8561 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8562 $as_echo "$ac_cv_header_stdc" >&6; }
8563 if test $ac_cv_header_stdc = yes; then
8565 cat >>confdefs.h <<\_ACEOF
8566 #define STDC_HEADERS 1
8567 _ACEOF
8571 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8572 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8573 if test "${ac_cv_header_time+set}" = set; then
8574 $as_echo_n "(cached) " >&6
8575 else
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 #include <sys/types.h>
8583 #include <sys/time.h>
8584 #include <time.h>
8587 main ()
8589 if ((struct tm *) 0)
8590 return 0;
8592 return 0;
8594 _ACEOF
8595 rm -f conftest.$ac_objext
8596 if { (ac_try="$ac_compile"
8597 case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8600 esac
8601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602 $as_echo "$ac_try_echo") >&5
8603 (eval "$ac_compile") 2>conftest.er1
8604 ac_status=$?
8605 grep -v '^ *+' conftest.er1 >conftest.err
8606 rm -f conftest.er1
8607 cat conftest.err >&5
8608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && {
8610 test -z "$ac_c_werror_flag" ||
8611 test ! -s conftest.err
8612 } && test -s conftest.$ac_objext; then
8613 ac_cv_header_time=yes
8614 else
8615 $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_cv_header_time=no
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8624 $as_echo "$ac_cv_header_time" >&6; }
8625 if test $ac_cv_header_time = yes; then
8627 cat >>confdefs.h <<\_ACEOF
8628 #define TIME_WITH_SYS_TIME 1
8629 _ACEOF
8633 { $as_echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8634 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8635 if test "${gcc_cv_header_string+set}" = set; then
8636 $as_echo_n "(cached) " >&6
8637 else
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 #include <string.h>
8645 #include <strings.h>
8647 main ()
8651 return 0;
8653 _ACEOF
8654 rm -f conftest.$ac_objext
8655 if { (ac_try="$ac_compile"
8656 case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659 esac
8660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8661 $as_echo "$ac_try_echo") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 gcc_cv_header_string=yes
8673 else
8674 $as_echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 gcc_cv_header_string=no
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 { $as_echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8683 $as_echo "$gcc_cv_header_string" >&6; }
8684 if test $gcc_cv_header_string = yes; then
8686 cat >>confdefs.h <<\_ACEOF
8687 #define STRING_WITH_STRINGS 1
8688 _ACEOF
8692 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8693 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8694 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8695 $as_echo_n "(cached) " >&6
8696 else
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 #include <sys/types.h>
8704 #include <sys/wait.h>
8705 #ifndef WEXITSTATUS
8706 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8707 #endif
8708 #ifndef WIFEXITED
8709 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8710 #endif
8713 main ()
8715 int s;
8716 wait (&s);
8717 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8719 return 0;
8721 _ACEOF
8722 rm -f conftest.$ac_objext
8723 if { (ac_try="$ac_compile"
8724 case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8727 esac
8728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8729 $as_echo "$ac_try_echo") >&5
8730 (eval "$ac_compile") 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && {
8737 test -z "$ac_c_werror_flag" ||
8738 test ! -s conftest.err
8739 } && test -s conftest.$ac_objext; then
8740 ac_cv_header_sys_wait_h=yes
8741 else
8742 $as_echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_cv_header_sys_wait_h=no
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8751 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8752 if test $ac_cv_header_sys_wait_h = yes; then
8754 cat >>confdefs.h <<\_ACEOF
8755 #define HAVE_SYS_WAIT_H 1
8756 _ACEOF
8782 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8783 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8784 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8785 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8789 $as_echo_n "checking for $ac_header... " >&6; }
8790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8791 $as_echo_n "(cached) " >&6
8792 else
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h. */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 #include <$ac_header>
8800 _ACEOF
8801 if { (ac_try="$ac_cpp conftest.$ac_ext"
8802 case "(($ac_try" in
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8805 esac
8806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8807 $as_echo "$ac_try_echo") >&5
8808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } >/dev/null && {
8815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8816 test ! -s conftest.err
8817 }; then
8818 eval "$as_ac_Header=yes"
8819 else
8820 $as_echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 eval "$as_ac_Header=no"
8826 rm -f conftest.err conftest.$ac_ext
8828 ac_res=`eval 'as_val=${'$as_ac_Header'}
8829 $as_echo "$as_val"'`
8830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8831 $as_echo "$ac_res" >&6; }
8832 if test `eval 'as_val=${'$as_ac_Header'}
8833 $as_echo "$as_val"'` = yes; then
8834 cat >>confdefs.h <<_ACEOF
8835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8836 _ACEOF
8839 done
8842 # Check for thread headers.
8843 { $as_echo "$as_me:$LINENO: checking for thread.h" >&5
8844 $as_echo_n "checking for thread.h... " >&6; }
8845 if test "${ac_cv_header_thread_h+set}" = set; then
8846 $as_echo_n "(cached) " >&6
8847 else
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h. */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 #include <thread.h>
8855 _ACEOF
8856 if { (ac_try="$ac_cpp conftest.$ac_ext"
8857 case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860 esac
8861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8862 $as_echo "$ac_try_echo") >&5
8863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8864 ac_status=$?
8865 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1
8867 cat conftest.err >&5
8868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } >/dev/null && {
8870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8871 test ! -s conftest.err
8872 }; then
8873 ac_cv_header_thread_h=yes
8874 else
8875 $as_echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8878 ac_cv_header_thread_h=no
8881 rm -f conftest.err conftest.$ac_ext
8883 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8884 $as_echo "$ac_cv_header_thread_h" >&6; }
8885 if test $ac_cv_header_thread_h = yes; then
8886 have_thread_h=yes
8887 else
8888 have_thread_h=
8891 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
8892 $as_echo_n "checking for pthread.h... " >&6; }
8893 if test "${ac_cv_header_pthread_h+set}" = set; then
8894 $as_echo_n "(cached) " >&6
8895 else
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h. */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 #include <pthread.h>
8903 _ACEOF
8904 if { (ac_try="$ac_cpp conftest.$ac_ext"
8905 case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8908 esac
8909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8910 $as_echo "$ac_try_echo") >&5
8911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8912 ac_status=$?
8913 grep -v '^ *+' conftest.er1 >conftest.err
8914 rm -f conftest.er1
8915 cat conftest.err >&5
8916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } >/dev/null && {
8918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8919 test ! -s conftest.err
8920 }; then
8921 ac_cv_header_pthread_h=yes
8922 else
8923 $as_echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 ac_cv_header_pthread_h=no
8929 rm -f conftest.err conftest.$ac_ext
8931 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8932 $as_echo "$ac_cv_header_pthread_h" >&6; }
8933 if test $ac_cv_header_pthread_h = yes; then
8934 have_pthread_h=yes
8935 else
8936 have_pthread_h=
8940 # These tests can't be done till we know if we have limits.h.
8941 { $as_echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8942 $as_echo_n "checking for CHAR_BIT... " >&6; }
8943 if test "${gcc_cv_decl_char_bit+set}" = set; then
8944 $as_echo_n "(cached) " >&6
8945 else
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h. */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 #ifdef HAVE_LIMITS_H
8953 #include <limits.h>
8954 #endif
8955 #ifdef CHAR_BIT
8956 found
8957 #endif
8958 _ACEOF
8959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8960 $EGREP "found" >/dev/null 2>&1; then
8961 gcc_cv_decl_char_bit=yes
8962 else
8963 gcc_cv_decl_char_bit=no
8965 rm -f conftest*
8969 { $as_echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8970 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8971 if test $gcc_cv_decl_char_bit = no; then
8972 { $as_echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8973 $as_echo_n "checking number of bits in a byte... " >&6; }
8974 if test "${gcc_cv_c_nbby+set}" = set; then
8975 $as_echo_n "(cached) " >&6
8976 else
8978 gcc_cv_c_nbby=
8979 while test $i -lt 65; do
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8988 main ()
8990 switch(0) {
8991 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8992 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8995 return 0;
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9000 case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003 esac
9004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9005 $as_echo "$ac_try_echo") >&5
9006 (eval "$ac_compile") 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest.$ac_objext; then
9016 gcc_cv_c_nbby=$i; break
9017 else
9018 $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 i=`expr $i + 1`
9026 done
9027 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9030 { $as_echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9031 $as_echo "$gcc_cv_c_nbby" >&6; }
9032 if test $gcc_cv_c_nbby = failed; then
9033 { { $as_echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9034 $as_echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9035 { (exit 1); exit 1; }; }
9036 else
9038 cat >>confdefs.h <<_ACEOF
9039 #define CHAR_BIT $gcc_cv_c_nbby
9040 _ACEOF
9045 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9046 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9047 if test "${ac_cv_c_bigendian+set}" = set; then
9048 $as_echo_n "(cached) " >&6
9049 else
9050 ac_cv_c_bigendian=unknown
9051 # See if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined.
9052 cat >conftest.$ac_ext <<_ACEOF
9053 /* confdefs.h. */
9054 _ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 #if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__)
9059 neither is defined;
9060 #endif
9061 typedef int dummy;
9063 _ACEOF
9064 rm -f conftest.$ac_objext
9065 if { (ac_try="$ac_compile"
9066 case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9069 esac
9070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9071 $as_echo "$ac_try_echo") >&5
9072 (eval "$ac_compile") 2>conftest.er1
9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
9077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } && {
9079 test -z "$ac_c_werror_flag" ||
9080 test ! -s conftest.err
9081 } && test -s conftest.$ac_objext; then
9082 ac_cv_c_bigendian=universal
9083 else
9084 $as_echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 if test $ac_cv_c_bigendian = unknown; then
9092 # See if sys/param.h defines the BYTE_ORDER macro.
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 #include <sys/types.h>
9100 #include <sys/param.h>
9103 main ()
9105 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9106 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9107 && LITTLE_ENDIAN)
9108 bogus endian macros
9109 #endif
9112 return 0;
9114 _ACEOF
9115 rm -f conftest.$ac_objext
9116 if { (ac_try="$ac_compile"
9117 case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120 esac
9121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9122 $as_echo "$ac_try_echo") >&5
9123 (eval "$ac_compile") 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.$ac_objext; then
9133 # It does; now see whether it defined to BIG_ENDIAN or not.
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h. */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 #include <sys/types.h>
9141 #include <sys/param.h>
9144 main ()
9146 #if BYTE_ORDER != BIG_ENDIAN
9147 not big endian
9148 #endif
9151 return 0;
9153 _ACEOF
9154 rm -f conftest.$ac_objext
9155 if { (ac_try="$ac_compile"
9156 case "(($ac_try" in
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9159 esac
9160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9161 $as_echo "$ac_try_echo") >&5
9162 (eval "$ac_compile") 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest.$ac_objext; then
9172 ac_cv_c_bigendian=yes
9173 else
9174 $as_echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 ac_cv_c_bigendian=no
9180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9181 else
9182 $as_echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 if test $ac_cv_c_bigendian = unknown; then
9191 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9192 cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h. */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 #include <limits.h>
9201 main ()
9203 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9204 bogus endian macros
9205 #endif
9208 return 0;
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (ac_try="$ac_compile"
9213 case "(($ac_try" in
9214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215 *) ac_try_echo=$ac_try;;
9216 esac
9217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9218 $as_echo "$ac_try_echo") >&5
9219 (eval "$ac_compile") 2>conftest.er1
9220 ac_status=$?
9221 grep -v '^ *+' conftest.er1 >conftest.err
9222 rm -f conftest.er1
9223 cat conftest.err >&5
9224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && {
9226 test -z "$ac_c_werror_flag" ||
9227 test ! -s conftest.err
9228 } && test -s conftest.$ac_objext; then
9229 # It does; now see whether it defined to _BIG_ENDIAN or not.
9230 cat >conftest.$ac_ext <<_ACEOF
9231 /* confdefs.h. */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 #include <limits.h>
9239 main ()
9241 #ifndef _BIG_ENDIAN
9242 not big endian
9243 #endif
9246 return 0;
9248 _ACEOF
9249 rm -f conftest.$ac_objext
9250 if { (ac_try="$ac_compile"
9251 case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254 esac
9255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9256 $as_echo "$ac_try_echo") >&5
9257 (eval "$ac_compile") 2>conftest.er1
9258 ac_status=$?
9259 grep -v '^ *+' conftest.er1 >conftest.err
9260 rm -f conftest.er1
9261 cat conftest.err >&5
9262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } && {
9264 test -z "$ac_c_werror_flag" ||
9265 test ! -s conftest.err
9266 } && test -s conftest.$ac_objext; then
9267 ac_cv_c_bigendian=yes
9268 else
9269 $as_echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9272 ac_cv_c_bigendian=no
9275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276 else
9277 $as_echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 if test $ac_cv_c_bigendian = unknown; then
9286 # Compile a test program.
9287 if test "$cross_compiling" = yes; then
9288 # Try to guess by grepping values from an object file.
9289 cat >conftest.$ac_ext <<_ACEOF
9290 /* confdefs.h. */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9295 short int ascii_mm[] =
9296 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9297 short int ascii_ii[] =
9298 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9299 int use_ascii (int i) {
9300 return ascii_mm[i] + ascii_ii[i];
9302 short int ebcdic_ii[] =
9303 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9304 short int ebcdic_mm[] =
9305 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9306 int use_ebcdic (int i) {
9307 return ebcdic_mm[i] + ebcdic_ii[i];
9309 extern int foo;
9312 main ()
9314 return use_ascii (foo) == use_ebcdic (foo);
9316 return 0;
9318 _ACEOF
9319 rm -f conftest.$ac_objext
9320 if { (ac_try="$ac_compile"
9321 case "(($ac_try" in
9322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9323 *) ac_try_echo=$ac_try;;
9324 esac
9325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9326 $as_echo "$ac_try_echo") >&5
9327 (eval "$ac_compile") 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && {
9334 test -z "$ac_c_werror_flag" ||
9335 test ! -s conftest.err
9336 } && test -s conftest.$ac_objext; then
9337 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9338 ac_cv_c_bigendian=yes
9340 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9341 if test "$ac_cv_c_bigendian" = unknown; then
9342 ac_cv_c_bigendian=no
9343 else
9344 # finding both strings is unlikely to happen, but who knows?
9345 ac_cv_c_bigendian=unknown
9348 else
9349 $as_echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356 else
9357 cat >conftest.$ac_ext <<_ACEOF
9358 /* confdefs.h. */
9359 _ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9363 $ac_includes_default
9365 main ()
9368 /* Are we little or big endian? From Harbison&Steele. */
9369 union
9371 long int l;
9372 char c[sizeof (long int)];
9373 } u;
9374 u.l = 1;
9375 return u.c[sizeof (long int) - 1] == 1;
9378 return 0;
9380 _ACEOF
9381 rm -f conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9383 case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9386 esac
9387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9388 $as_echo "$ac_try_echo") >&5
9389 (eval "$ac_link") 2>&5
9390 ac_status=$?
9391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9393 { (case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396 esac
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399 (eval "$ac_try") 2>&5
9400 ac_status=$?
9401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_c_bigendian=no
9404 else
9405 $as_echo "$as_me: program exited with status $ac_status" >&5
9406 $as_echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9409 ( exit $ac_status )
9410 ac_cv_c_bigendian=yes
9412 rm -rf conftest.dSYM
9413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9419 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9420 $as_echo "$ac_cv_c_bigendian" >&6; }
9421 case $ac_cv_c_bigendian in #(
9422 yes)
9423 cat >>confdefs.h <<\_ACEOF
9424 #define WORDS_BIGENDIAN 1
9425 _ACEOF
9426 ;; #(
9428 ;; #(
9429 universal)
9430 ;; #(
9432 { { $as_echo "$as_me:$LINENO: error: unknown endianness
9433 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9434 $as_echo "$as_me: error: unknown endianness
9435 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9436 { (exit 1); exit 1; }; } ;;
9437 esac
9440 # --------
9441 # UNSORTED
9442 # --------
9444 # Stage specific cflags for build.
9445 stage1_cflags=
9446 case $build in
9447 vax-*-*)
9448 if test x$GCC = xyes
9449 then
9450 stage1_cflags="-Wa,-J"
9451 else
9452 stage1_cflags="-J"
9455 powerpc-*-darwin*)
9456 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
9457 # sources; use -no-cpp-precomp to get to GNU cpp.
9458 # Apple's GCC has bugs in designated initializer handling, so disable
9459 # that too.
9460 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
9462 esac
9465 # These libraries may be used by collect2.
9466 # We may need a special search path to get them linked.
9467 { $as_echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9468 $as_echo_n "checking for collect2 libraries... " >&6; }
9469 if test "${gcc_cv_collect2_libs+set}" = set; then
9470 $as_echo_n "(cached) " >&6
9471 else
9472 save_LIBS="$LIBS"
9473 for libs in '' -lld -lmld \
9474 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9475 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9477 LIBS="$libs"
9478 cat >conftest.$ac_ext <<_ACEOF
9479 /* confdefs.h. */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9485 /* Override any GCC internal prototype to avoid an error.
9486 Use char because int might match the return type of a GCC
9487 builtin and then its argument prototype would still apply. */
9488 #ifdef __cplusplus
9489 extern "C"
9490 #endif
9491 char ldopen ();
9493 main ()
9495 return ldopen ();
9497 return 0;
9499 _ACEOF
9500 rm -f conftest.$ac_objext conftest$ac_exeext
9501 if { (ac_try="$ac_link"
9502 case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9505 esac
9506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9507 $as_echo "$ac_try_echo") >&5
9508 (eval "$ac_link") 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest$ac_exeext && {
9518 test "$cross_compiling" = yes ||
9519 $as_test_x conftest$ac_exeext
9520 }; then
9521 gcc_cv_collect2_libs="$libs"; break
9522 else
9523 $as_echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9529 rm -rf conftest.dSYM
9530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9531 conftest$ac_exeext conftest.$ac_ext
9532 done
9533 LIBS="$save_LIBS"
9534 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9536 { $as_echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9537 $as_echo "$gcc_cv_collect2_libs" >&6; }
9538 case $gcc_cv_collect2_libs in
9539 "none required") ;;
9540 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9541 esac
9544 # When building Ada code on Alpha, we need exc_resume which is usually in
9545 # -lexc. So test for it.
9546 save_LIBS="$LIBS"
9547 LIBS=
9548 { $as_echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9549 $as_echo_n "checking for library containing exc_resume... " >&6; }
9550 if test "${ac_cv_search_exc_resume+set}" = set; then
9551 $as_echo_n "(cached) " >&6
9552 else
9553 ac_func_search_save_LIBS=$LIBS
9554 cat >conftest.$ac_ext <<_ACEOF
9555 /* confdefs.h. */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 char exc_resume ();
9569 main ()
9571 return exc_resume ();
9573 return 0;
9575 _ACEOF
9576 for ac_lib in '' exc; do
9577 if test -z "$ac_lib"; then
9578 ac_res="none required"
9579 else
9580 ac_res=-l$ac_lib
9581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9585 case "(($ac_try" in
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9588 esac
9589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9590 $as_echo "$ac_try_echo") >&5
9591 (eval "$ac_link") 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_c_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest$ac_exeext && {
9601 test "$cross_compiling" = yes ||
9602 $as_test_x conftest$ac_exeext
9603 }; then
9604 ac_cv_search_exc_resume=$ac_res
9605 else
9606 $as_echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9612 rm -rf conftest.dSYM
9613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9614 conftest$ac_exeext
9615 if test "${ac_cv_search_exc_resume+set}" = set; then
9616 break
9618 done
9619 if test "${ac_cv_search_exc_resume+set}" = set; then
9621 else
9622 ac_cv_search_exc_resume=no
9624 rm conftest.$ac_ext
9625 LIBS=$ac_func_search_save_LIBS
9627 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9628 $as_echo "$ac_cv_search_exc_resume" >&6; }
9629 ac_res=$ac_cv_search_exc_resume
9630 if test "$ac_res" != no; then
9631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9635 GNAT_LIBEXC="$LIBS"
9636 LIBS="$save_LIBS"
9639 # Some systems put ldexp and frexp in libm instead of libc; assume
9640 # they're both in the same place. jcf-dump needs them.
9641 save_LIBS="$LIBS"
9642 LIBS=
9643 { $as_echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9644 $as_echo_n "checking for library containing ldexp... " >&6; }
9645 if test "${ac_cv_search_ldexp+set}" = set; then
9646 $as_echo_n "(cached) " >&6
9647 else
9648 ac_func_search_save_LIBS=$LIBS
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h. */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9656 /* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
9659 #ifdef __cplusplus
9660 extern "C"
9661 #endif
9662 char ldexp ();
9664 main ()
9666 return ldexp ();
9668 return 0;
9670 _ACEOF
9671 for ac_lib in '' m; do
9672 if test -z "$ac_lib"; then
9673 ac_res="none required"
9674 else
9675 ac_res=-l$ac_lib
9676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9678 rm -f conftest.$ac_objext conftest$ac_exeext
9679 if { (ac_try="$ac_link"
9680 case "(($ac_try" in
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9683 esac
9684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9685 $as_echo "$ac_try_echo") >&5
9686 (eval "$ac_link") 2>conftest.er1
9687 ac_status=$?
9688 grep -v '^ *+' conftest.er1 >conftest.err
9689 rm -f conftest.er1
9690 cat conftest.err >&5
9691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } && {
9693 test -z "$ac_c_werror_flag" ||
9694 test ! -s conftest.err
9695 } && test -s conftest$ac_exeext && {
9696 test "$cross_compiling" = yes ||
9697 $as_test_x conftest$ac_exeext
9698 }; then
9699 ac_cv_search_ldexp=$ac_res
9700 else
9701 $as_echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9707 rm -rf conftest.dSYM
9708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9709 conftest$ac_exeext
9710 if test "${ac_cv_search_ldexp+set}" = set; then
9711 break
9713 done
9714 if test "${ac_cv_search_ldexp+set}" = set; then
9716 else
9717 ac_cv_search_ldexp=no
9719 rm conftest.$ac_ext
9720 LIBS=$ac_func_search_save_LIBS
9722 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9723 $as_echo "$ac_cv_search_ldexp" >&6; }
9724 ac_res=$ac_cv_search_ldexp
9725 if test "$ac_res" != no; then
9726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9730 LDEXP_LIB="$LIBS"
9731 LIBS="$save_LIBS"
9734 # Use <inttypes.h> only if it exists,
9735 # doesn't clash with <sys/types.h>, and declares intmax_t.
9736 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
9737 $as_echo_n "checking for inttypes.h... " >&6; }
9738 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9739 $as_echo_n "(cached) " >&6
9740 else
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 #include <sys/types.h>
9748 #include <inttypes.h>
9750 main ()
9752 intmax_t i = -1;
9754 return 0;
9756 _ACEOF
9757 rm -f conftest.$ac_objext
9758 if { (ac_try="$ac_compile"
9759 case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762 esac
9763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9764 $as_echo "$ac_try_echo") >&5
9765 (eval "$ac_compile") 2>conftest.er1
9766 ac_status=$?
9767 grep -v '^ *+' conftest.er1 >conftest.err
9768 rm -f conftest.er1
9769 cat conftest.err >&5
9770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } && {
9772 test -z "$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9774 } && test -s conftest.$ac_objext; then
9775 gcc_cv_header_inttypes_h=yes
9776 else
9777 $as_echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 gcc_cv_header_inttypes_h=no
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 { $as_echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9787 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9788 if test $gcc_cv_header_inttypes_h = yes; then
9790 cat >>confdefs.h <<\_ACEOF
9791 #define HAVE_INTTYPES_H 1
9792 _ACEOF
9833 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9834 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9835 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9836 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
9838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9840 $as_echo_n "checking for $ac_func... " >&6; }
9841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9842 $as_echo_n "(cached) " >&6
9843 else
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9852 #define $ac_func innocuous_$ac_func
9854 /* System header to define __stub macros and hopefully few prototypes,
9855 which can conflict with char $ac_func (); below.
9856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857 <limits.h> exists even on freestanding compilers. */
9859 #ifdef __STDC__
9860 # include <limits.h>
9861 #else
9862 # include <assert.h>
9863 #endif
9865 #undef $ac_func
9867 /* Override any GCC internal prototype to avoid an error.
9868 Use char because int might match the return type of a GCC
9869 builtin and then its argument prototype would still apply. */
9870 #ifdef __cplusplus
9871 extern "C"
9872 #endif
9873 char $ac_func ();
9874 /* The GNU C library defines this for functions which it implements
9875 to always fail with ENOSYS. Some functions are actually named
9876 something starting with __ and the normal name is an alias. */
9877 #if defined __stub_$ac_func || defined __stub___$ac_func
9878 choke me
9879 #endif
9882 main ()
9884 return $ac_func ();
9886 return 0;
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9891 case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894 esac
9895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9896 $as_echo "$ac_try_echo") >&5
9897 (eval "$ac_link") 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } && {
9904 test -z "$ac_c_werror_flag" ||
9905 test ! -s conftest.err
9906 } && test -s conftest$ac_exeext && {
9907 test "$cross_compiling" = yes ||
9908 $as_test_x conftest$ac_exeext
9909 }; then
9910 eval "$as_ac_var=yes"
9911 else
9912 $as_echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 eval "$as_ac_var=no"
9918 rm -rf conftest.dSYM
9919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9920 conftest$ac_exeext conftest.$ac_ext
9922 ac_res=`eval 'as_val=${'$as_ac_var'}
9923 $as_echo "$as_val"'`
9924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9925 $as_echo "$ac_res" >&6; }
9926 if test `eval 'as_val=${'$as_ac_var'}
9927 $as_echo "$as_val"'` = yes; then
9928 cat >>confdefs.h <<_ACEOF
9929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9930 _ACEOF
9933 done
9936 if test x$ac_cv_func_mbstowcs = xyes; then
9937 { $as_echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9938 $as_echo_n "checking whether mbstowcs works... " >&6; }
9939 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9940 $as_echo_n "(cached) " >&6
9941 else
9942 if test "$cross_compiling" = yes; then
9943 gcc_cv_func_mbstowcs_works=yes
9944 else
9945 cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h. */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 #include <stdlib.h>
9952 int main()
9954 mbstowcs(0, "", 0);
9955 return 0;
9957 _ACEOF
9958 rm -f conftest$ac_exeext
9959 if { (ac_try="$ac_link"
9960 case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9963 esac
9964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9965 $as_echo "$ac_try_echo") >&5
9966 (eval "$ac_link") 2>&5
9967 ac_status=$?
9968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9970 { (case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973 esac
9974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976 (eval "$ac_try") 2>&5
9977 ac_status=$?
9978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 gcc_cv_func_mbstowcs_works=yes
9981 else
9982 $as_echo "$as_me: program exited with status $ac_status" >&5
9983 $as_echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 ( exit $ac_status )
9987 gcc_cv_func_mbstowcs_works=no
9989 rm -rf conftest.dSYM
9990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9995 { $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9996 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9997 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_WORKING_MBSTOWCS 1
10001 _ACEOF
10006 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
10007 $as_echo_n "checking for ssize_t... " >&6; }
10008 if test "${ac_cv_type_ssize_t+set}" = set; then
10009 $as_echo_n "(cached) " >&6
10010 else
10011 ac_cv_type_ssize_t=no
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h. */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018 $ac_includes_default
10020 main ()
10022 if (sizeof (ssize_t))
10023 return 0;
10025 return 0;
10027 _ACEOF
10028 rm -f conftest.$ac_objext
10029 if { (ac_try="$ac_compile"
10030 case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10033 esac
10034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10035 $as_echo "$ac_try_echo") >&5
10036 (eval "$ac_compile") 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && {
10043 test -z "$ac_c_werror_flag" ||
10044 test ! -s conftest.err
10045 } && test -s conftest.$ac_objext; then
10046 cat >conftest.$ac_ext <<_ACEOF
10047 /* confdefs.h. */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10052 $ac_includes_default
10054 main ()
10056 if (sizeof ((ssize_t)))
10057 return 0;
10059 return 0;
10061 _ACEOF
10062 rm -f conftest.$ac_objext
10063 if { (ac_try="$ac_compile"
10064 case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067 esac
10068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10069 $as_echo "$ac_try_echo") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.$ac_objext; then
10081 else
10082 $as_echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_cv_type_ssize_t=yes
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 else
10090 $as_echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10098 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10099 $as_echo "$ac_cv_type_ssize_t" >&6; }
10100 if test $ac_cv_type_ssize_t = yes; then
10102 else
10104 cat >>confdefs.h <<_ACEOF
10105 #define ssize_t int
10106 _ACEOF
10111 # Try to determine the array type of the second argument of getgroups
10112 # for the target system (int or gid_t).
10113 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10114 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10115 if test "${ac_cv_type_uid_t+set}" = set; then
10116 $as_echo_n "(cached) " >&6
10117 else
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h. */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <sys/types.h>
10126 _ACEOF
10127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10128 $EGREP "uid_t" >/dev/null 2>&1; then
10129 ac_cv_type_uid_t=yes
10130 else
10131 ac_cv_type_uid_t=no
10133 rm -f conftest*
10136 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10137 $as_echo "$ac_cv_type_uid_t" >&6; }
10138 if test $ac_cv_type_uid_t = no; then
10140 cat >>confdefs.h <<\_ACEOF
10141 #define uid_t int
10142 _ACEOF
10145 cat >>confdefs.h <<\_ACEOF
10146 #define gid_t int
10147 _ACEOF
10151 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10152 $as_echo_n "checking type of array argument to getgroups... " >&6; }
10153 if test "${ac_cv_type_getgroups+set}" = set; then
10154 $as_echo_n "(cached) " >&6
10155 else
10156 if test "$cross_compiling" = yes; then
10157 ac_cv_type_getgroups=cross
10158 else
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h. */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 /* Thanks to Mike Rendell for this test. */
10166 $ac_includes_default
10167 #define NGID 256
10168 #undef MAX
10169 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10172 main ()
10174 gid_t gidset[NGID];
10175 int i, n;
10176 union { gid_t gval; long int lval; } val;
10178 val.lval = -1;
10179 for (i = 0; i < NGID; i++)
10180 gidset[i] = val.gval;
10181 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10182 gidset);
10183 /* Exit non-zero if getgroups seems to require an array of ints. This
10184 happens when gid_t is short int but getgroups modifies an array
10185 of ints. */
10186 return n > 0 && gidset[n] != val.gval;
10188 _ACEOF
10189 rm -f conftest$ac_exeext
10190 if { (ac_try="$ac_link"
10191 case "(($ac_try" in
10192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10194 esac
10195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10196 $as_echo "$ac_try_echo") >&5
10197 (eval "$ac_link") 2>&5
10198 ac_status=$?
10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10201 { (case "(($ac_try" in
10202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203 *) ac_try_echo=$ac_try;;
10204 esac
10205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10206 $as_echo "$ac_try_echo") >&5
10207 (eval "$ac_try") 2>&5
10208 ac_status=$?
10209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_cv_type_getgroups=gid_t
10212 else
10213 $as_echo "$as_me: program exited with status $ac_status" >&5
10214 $as_echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ( exit $ac_status )
10218 ac_cv_type_getgroups=int
10220 rm -rf conftest.dSYM
10221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10225 if test $ac_cv_type_getgroups = cross; then
10226 cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h. */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 #include <unistd.h>
10234 _ACEOF
10235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10236 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10237 ac_cv_type_getgroups=gid_t
10238 else
10239 ac_cv_type_getgroups=int
10241 rm -f conftest*
10245 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10246 $as_echo "$ac_cv_type_getgroups" >&6; }
10248 cat >>confdefs.h <<_ACEOF
10249 #define GETGROUPS_T $ac_cv_type_getgroups
10250 _ACEOF
10253 if test "${target}" = "${build}"; then
10254 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10255 else
10256 case "${target}" in
10257 # This condition may need some tweaking. It should include all
10258 # targets where the array type of the second argument of getgroups
10259 # is int and the type of gid_t is not equivalent to int.
10260 *-*-sunos* | *-*-ultrix*)
10261 TARGET_GETGROUPS_T=int
10264 TARGET_GETGROUPS_T=gid_t
10266 esac
10271 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10272 $as_echo_n "checking for sys/mman.h... " >&6; }
10273 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10274 $as_echo_n "(cached) " >&6
10275 else
10276 cat >conftest.$ac_ext <<_ACEOF
10277 /* confdefs.h. */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10282 #include <sys/mman.h>
10283 _ACEOF
10284 if { (ac_try="$ac_cpp conftest.$ac_ext"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290 $as_echo "$ac_try_echo") >&5
10291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } >/dev/null && {
10298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10299 test ! -s conftest.err
10300 }; then
10301 ac_cv_header_sys_mman_h=yes
10302 else
10303 $as_echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ac_cv_header_sys_mman_h=no
10309 rm -f conftest.err conftest.$ac_ext
10311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10312 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
10313 if test $ac_cv_header_sys_mman_h = yes; then
10314 gcc_header_sys_mman_h=yes
10315 else
10316 gcc_header_sys_mman_h=no
10319 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
10320 $as_echo_n "checking for mmap... " >&6; }
10321 if test "${ac_cv_func_mmap+set}" = set; then
10322 $as_echo_n "(cached) " >&6
10323 else
10324 cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h. */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10332 #define mmap innocuous_mmap
10334 /* System header to define __stub macros and hopefully few prototypes,
10335 which can conflict with char mmap (); below.
10336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10337 <limits.h> exists even on freestanding compilers. */
10339 #ifdef __STDC__
10340 # include <limits.h>
10341 #else
10342 # include <assert.h>
10343 #endif
10345 #undef mmap
10347 /* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
10350 #ifdef __cplusplus
10351 extern "C"
10352 #endif
10353 char mmap ();
10354 /* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357 #if defined __stub_mmap || defined __stub___mmap
10358 choke me
10359 #endif
10362 main ()
10364 return mmap ();
10366 return 0;
10368 _ACEOF
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (ac_try="$ac_link"
10371 case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10374 esac
10375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10376 $as_echo "$ac_try_echo") >&5
10377 (eval "$ac_link") 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest$ac_exeext && {
10387 test "$cross_compiling" = yes ||
10388 $as_test_x conftest$ac_exeext
10389 }; then
10390 ac_cv_func_mmap=yes
10391 else
10392 $as_echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10395 ac_cv_func_mmap=no
10398 rm -rf conftest.dSYM
10399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10400 conftest$ac_exeext conftest.$ac_ext
10402 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10403 $as_echo "$ac_cv_func_mmap" >&6; }
10404 if test $ac_cv_func_mmap = yes; then
10405 gcc_func_mmap=yes
10406 else
10407 gcc_func_mmap=no
10410 if test "$gcc_header_sys_mman_h" != yes \
10411 || test "$gcc_func_mmap" != yes; then
10412 gcc_cv_func_mmap_file=no
10413 gcc_cv_func_mmap_dev_zero=no
10414 gcc_cv_func_mmap_anon=no
10415 else
10416 { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10417 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10418 if test "${gcc_cv_func_mmap_file+set}" = set; then
10419 $as_echo_n "(cached) " >&6
10420 else
10421 # Add a system to this blacklist if
10422 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10423 # memory area containing the same data that you'd get if you applied
10424 # read() to the same fd. The only system known to have a problem here
10425 # is VMS, where text files have record structure.
10426 case "$host_os" in
10427 vms* | ultrix*)
10428 gcc_cv_func_mmap_file=no ;;
10430 gcc_cv_func_mmap_file=yes;;
10431 esac
10433 { $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10434 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10435 { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10436 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10437 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10438 $as_echo_n "(cached) " >&6
10439 else
10440 # Add a system to this blacklist if it has mmap() but /dev/zero
10441 # does not exist, or if mmapping /dev/zero does not give anonymous
10442 # zeroed pages with both the following properties:
10443 # 1. If you map N consecutive pages in with one call, and then
10444 # unmap any subset of those pages, the pages that were not
10445 # explicitly unmapped remain accessible.
10446 # 2. If you map two adjacent blocks of memory and then unmap them
10447 # both at once, they must both go away.
10448 # Systems known to be in this category are Windows (all variants),
10449 # VMS, and Darwin.
10450 case "$host_os" in
10451 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10452 gcc_cv_func_mmap_dev_zero=no ;;
10454 gcc_cv_func_mmap_dev_zero=yes;;
10455 esac
10457 { $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10458 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10460 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10461 { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10462 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10463 if test "${gcc_cv_decl_map_anon+set}" = set; then
10464 $as_echo_n "(cached) " >&6
10465 else
10466 cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h. */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 #include <sys/types.h>
10473 #include <sys/mman.h>
10474 #include <unistd.h>
10476 #ifndef MAP_ANONYMOUS
10477 #define MAP_ANONYMOUS MAP_ANON
10478 #endif
10481 main ()
10483 int n = MAP_ANONYMOUS;
10485 return 0;
10487 _ACEOF
10488 rm -f conftest.$ac_objext
10489 if { (ac_try="$ac_compile"
10490 case "(($ac_try" in
10491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10493 esac
10494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10495 $as_echo "$ac_try_echo") >&5
10496 (eval "$ac_compile") 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } && {
10503 test -z "$ac_c_werror_flag" ||
10504 test ! -s conftest.err
10505 } && test -s conftest.$ac_objext; then
10506 gcc_cv_decl_map_anon=yes
10507 else
10508 $as_echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 gcc_cv_decl_map_anon=no
10514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10516 { $as_echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10517 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10519 if test $gcc_cv_decl_map_anon = no; then
10520 gcc_cv_func_mmap_anon=no
10521 else
10522 { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10523 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10524 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10525 $as_echo_n "(cached) " >&6
10526 else
10527 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10528 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10529 # doesn't give anonymous zeroed pages with the same properties listed
10530 # above for use of /dev/zero.
10531 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10532 case "$host_os" in
10533 vms* | cygwin* | pe | mingw* | sco* | udk* )
10534 gcc_cv_func_mmap_anon=no ;;
10536 gcc_cv_func_mmap_anon=yes;;
10537 esac
10539 { $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10540 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10544 if test $gcc_cv_func_mmap_file = yes; then
10546 cat >>confdefs.h <<\_ACEOF
10547 #define HAVE_MMAP_FILE 1
10548 _ACEOF
10551 if test $gcc_cv_func_mmap_dev_zero = yes; then
10553 cat >>confdefs.h <<\_ACEOF
10554 #define HAVE_MMAP_DEV_ZERO 1
10555 _ACEOF
10558 if test $gcc_cv_func_mmap_anon = yes; then
10560 cat >>confdefs.h <<\_ACEOF
10561 #define HAVE_MMAP_ANON 1
10562 _ACEOF
10567 case "${host}" in
10568 *-*-*vms*)
10569 # Under VMS, vfork works very differently than on Unix. The standard test
10570 # won't work, and it isn't easily adaptable. It makes more sense to
10571 # just force it.
10572 ac_cv_func_vfork_works=yes
10574 esac
10575 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
10576 $as_echo_n "checking for pid_t... " >&6; }
10577 if test "${ac_cv_type_pid_t+set}" = set; then
10578 $as_echo_n "(cached) " >&6
10579 else
10580 ac_cv_type_pid_t=no
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h. */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 $ac_includes_default
10589 main ()
10591 if (sizeof (pid_t))
10592 return 0;
10594 return 0;
10596 _ACEOF
10597 rm -f conftest.$ac_objext
10598 if { (ac_try="$ac_compile"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602 esac
10603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10604 $as_echo "$ac_try_echo") >&5
10605 (eval "$ac_compile") 2>conftest.er1
10606 ac_status=$?
10607 grep -v '^ *+' conftest.er1 >conftest.err
10608 rm -f conftest.er1
10609 cat conftest.err >&5
10610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && {
10612 test -z "$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 } && test -s conftest.$ac_objext; then
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h. */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621 $ac_includes_default
10623 main ()
10625 if (sizeof ((pid_t)))
10626 return 0;
10628 return 0;
10630 _ACEOF
10631 rm -f conftest.$ac_objext
10632 if { (ac_try="$ac_compile"
10633 case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10636 esac
10637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10638 $as_echo "$ac_try_echo") >&5
10639 (eval "$ac_compile") 2>conftest.er1
10640 ac_status=$?
10641 grep -v '^ *+' conftest.er1 >conftest.err
10642 rm -f conftest.er1
10643 cat conftest.err >&5
10644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest.$ac_objext; then
10650 else
10651 $as_echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 ac_cv_type_pid_t=yes
10657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10658 else
10659 $as_echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10668 $as_echo "$ac_cv_type_pid_t" >&6; }
10669 if test $ac_cv_type_pid_t = yes; then
10671 else
10673 cat >>confdefs.h <<_ACEOF
10674 #define pid_t int
10675 _ACEOF
10680 for ac_header in vfork.h
10682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10683 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10684 $as_echo_n "checking for $ac_header... " >&6; }
10685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10686 $as_echo_n "(cached) " >&6
10687 else
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 #include <$ac_header>
10695 _ACEOF
10696 if { (ac_try="$ac_cpp conftest.$ac_ext"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700 esac
10701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10702 $as_echo "$ac_try_echo") >&5
10703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } >/dev/null && {
10710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10711 test ! -s conftest.err
10712 }; then
10713 eval "$as_ac_Header=yes"
10714 else
10715 $as_echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 eval "$as_ac_Header=no"
10721 rm -f conftest.err conftest.$ac_ext
10723 ac_res=`eval 'as_val=${'$as_ac_Header'}
10724 $as_echo "$as_val"'`
10725 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10726 $as_echo "$ac_res" >&6; }
10727 if test `eval 'as_val=${'$as_ac_Header'}
10728 $as_echo "$as_val"'` = yes; then
10729 cat >>confdefs.h <<_ACEOF
10730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10731 _ACEOF
10734 done
10738 for ac_func in fork vfork
10740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10741 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10742 $as_echo_n "checking for $ac_func... " >&6; }
10743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10744 $as_echo_n "(cached) " >&6
10745 else
10746 cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h. */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10754 #define $ac_func innocuous_$ac_func
10756 /* System header to define __stub macros and hopefully few prototypes,
10757 which can conflict with char $ac_func (); below.
10758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10759 <limits.h> exists even on freestanding compilers. */
10761 #ifdef __STDC__
10762 # include <limits.h>
10763 #else
10764 # include <assert.h>
10765 #endif
10767 #undef $ac_func
10769 /* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10772 #ifdef __cplusplus
10773 extern "C"
10774 #endif
10775 char $ac_func ();
10776 /* The GNU C library defines this for functions which it implements
10777 to always fail with ENOSYS. Some functions are actually named
10778 something starting with __ and the normal name is an alias. */
10779 #if defined __stub_$ac_func || defined __stub___$ac_func
10780 choke me
10781 #endif
10784 main ()
10786 return $ac_func ();
10788 return 0;
10790 _ACEOF
10791 rm -f conftest.$ac_objext conftest$ac_exeext
10792 if { (ac_try="$ac_link"
10793 case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10796 esac
10797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10798 $as_echo "$ac_try_echo") >&5
10799 (eval "$ac_link") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest$ac_exeext && {
10809 test "$cross_compiling" = yes ||
10810 $as_test_x conftest$ac_exeext
10811 }; then
10812 eval "$as_ac_var=yes"
10813 else
10814 $as_echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10817 eval "$as_ac_var=no"
10820 rm -rf conftest.dSYM
10821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10822 conftest$ac_exeext conftest.$ac_ext
10824 ac_res=`eval 'as_val=${'$as_ac_var'}
10825 $as_echo "$as_val"'`
10826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10827 $as_echo "$ac_res" >&6; }
10828 if test `eval 'as_val=${'$as_ac_var'}
10829 $as_echo "$as_val"'` = yes; then
10830 cat >>confdefs.h <<_ACEOF
10831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10832 _ACEOF
10835 done
10837 if test "x$ac_cv_func_fork" = xyes; then
10838 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
10839 $as_echo_n "checking for working fork... " >&6; }
10840 if test "${ac_cv_func_fork_works+set}" = set; then
10841 $as_echo_n "(cached) " >&6
10842 else
10843 if test "$cross_compiling" = yes; then
10844 ac_cv_func_fork_works=cross
10845 else
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h. */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 $ac_includes_default
10854 main ()
10857 /* By Ruediger Kuhlmann. */
10858 return fork () < 0;
10861 return 0;
10863 _ACEOF
10864 rm -f conftest$ac_exeext
10865 if { (ac_try="$ac_link"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869 esac
10870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10871 $as_echo "$ac_try_echo") >&5
10872 (eval "$ac_link") 2>&5
10873 ac_status=$?
10874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10876 { (case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10879 esac
10880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10881 $as_echo "$ac_try_echo") >&5
10882 (eval "$ac_try") 2>&5
10883 ac_status=$?
10884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886 ac_cv_func_fork_works=yes
10887 else
10888 $as_echo "$as_me: program exited with status $ac_status" >&5
10889 $as_echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ( exit $ac_status )
10893 ac_cv_func_fork_works=no
10895 rm -rf conftest.dSYM
10896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10901 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10902 $as_echo "$ac_cv_func_fork_works" >&6; }
10904 else
10905 ac_cv_func_fork_works=$ac_cv_func_fork
10907 if test "x$ac_cv_func_fork_works" = xcross; then
10908 case $host in
10909 *-*-amigaos* | *-*-msdosdjgpp*)
10910 # Override, as these systems have only a dummy fork() stub
10911 ac_cv_func_fork_works=no
10914 ac_cv_func_fork_works=yes
10916 esac
10917 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10918 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10920 ac_cv_func_vfork_works=$ac_cv_func_vfork
10921 if test "x$ac_cv_func_vfork" = xyes; then
10922 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
10923 $as_echo_n "checking for working vfork... " >&6; }
10924 if test "${ac_cv_func_vfork_works+set}" = set; then
10925 $as_echo_n "(cached) " >&6
10926 else
10927 if test "$cross_compiling" = yes; then
10928 ac_cv_func_vfork_works=cross
10929 else
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h. */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 /* Thanks to Paul Eggert for this test. */
10937 $ac_includes_default
10938 #include <sys/wait.h>
10939 #ifdef HAVE_VFORK_H
10940 # include <vfork.h>
10941 #endif
10942 /* On some sparc systems, changes by the child to local and incoming
10943 argument registers are propagated back to the parent. The compiler
10944 is told about this with #include <vfork.h>, but some compilers
10945 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10946 static variable whose address is put into a register that is
10947 clobbered by the vfork. */
10948 static void
10949 #ifdef __cplusplus
10950 sparc_address_test (int arg)
10951 # else
10952 sparc_address_test (arg) int arg;
10953 #endif
10955 static pid_t child;
10956 if (!child) {
10957 child = vfork ();
10958 if (child < 0) {
10959 perror ("vfork");
10960 _exit(2);
10962 if (!child) {
10963 arg = getpid();
10964 write(-1, "", 0);
10965 _exit (arg);
10971 main ()
10973 pid_t parent = getpid ();
10974 pid_t child;
10976 sparc_address_test (0);
10978 child = vfork ();
10980 if (child == 0) {
10981 /* Here is another test for sparc vfork register problems. This
10982 test uses lots of local variables, at least as many local
10983 variables as main has allocated so far including compiler
10984 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10985 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10986 reuse the register of parent for one of the local variables,
10987 since it will think that parent can't possibly be used any more
10988 in this routine. Assigning to the local variable will thus
10989 munge parent in the parent process. */
10990 pid_t
10991 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10992 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10993 /* Convince the compiler that p..p7 are live; otherwise, it might
10994 use the same hardware register for all 8 local variables. */
10995 if (p != p1 || p != p2 || p != p3 || p != p4
10996 || p != p5 || p != p6 || p != p7)
10997 _exit(1);
10999 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11000 from child file descriptors. If the child closes a descriptor
11001 before it execs or exits, this munges the parent's descriptor
11002 as well. Test for this by closing stdout in the child. */
11003 _exit(close(fileno(stdout)) != 0);
11004 } else {
11005 int status;
11006 struct stat st;
11008 while (wait(&status) != child)
11010 return (
11011 /* Was there some problem with vforking? */
11012 child < 0
11014 /* Did the child fail? (This shouldn't happen.) */
11015 || status
11017 /* Did the vfork/compiler bug occur? */
11018 || parent != getpid()
11020 /* Did the file descriptor bug occur? */
11021 || fstat(fileno(stdout), &st) != 0
11025 _ACEOF
11026 rm -f conftest$ac_exeext
11027 if { (ac_try="$ac_link"
11028 case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11031 esac
11032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11033 $as_echo "$ac_try_echo") >&5
11034 (eval "$ac_link") 2>&5
11035 ac_status=$?
11036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11038 { (case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041 esac
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_try") 2>&5
11045 ac_status=$?
11046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_func_vfork_works=yes
11049 else
11050 $as_echo "$as_me: program exited with status $ac_status" >&5
11051 $as_echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ( exit $ac_status )
11055 ac_cv_func_vfork_works=no
11057 rm -rf conftest.dSYM
11058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11063 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11064 $as_echo "$ac_cv_func_vfork_works" >&6; }
11067 if test "x$ac_cv_func_fork_works" = xcross; then
11068 ac_cv_func_vfork_works=$ac_cv_func_vfork
11069 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11070 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11073 if test "x$ac_cv_func_vfork_works" = xyes; then
11075 cat >>confdefs.h <<\_ACEOF
11076 #define HAVE_WORKING_VFORK 1
11077 _ACEOF
11079 else
11081 cat >>confdefs.h <<\_ACEOF
11082 #define vfork fork
11083 _ACEOF
11086 if test "x$ac_cv_func_fork_works" = xyes; then
11088 cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_WORKING_FORK 1
11090 _ACEOF
11096 if test "X$prefix" = "XNONE"; then
11097 acl_final_prefix="$ac_default_prefix"
11098 else
11099 acl_final_prefix="$prefix"
11101 if test "X$exec_prefix" = "XNONE"; then
11102 acl_final_exec_prefix='${prefix}'
11103 else
11104 acl_final_exec_prefix="$exec_prefix"
11106 acl_save_prefix="$prefix"
11107 prefix="$acl_final_prefix"
11108 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11109 prefix="$acl_save_prefix"
11112 # Check whether --with-gnu-ld was given.
11113 if test "${with_gnu_ld+set}" = set; then
11114 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11115 else
11116 with_gnu_ld=no
11119 # Prepare PATH_SEPARATOR.
11120 # The user is always right.
11121 if test "${PATH_SEPARATOR+set}" != set; then
11122 echo "#! /bin/sh" >conf$$.sh
11123 echo "exit 0" >>conf$$.sh
11124 chmod +x conf$$.sh
11125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11126 PATH_SEPARATOR=';'
11127 else
11128 PATH_SEPARATOR=:
11130 rm -f conf$$.sh
11132 ac_prog=ld
11133 if test "$GCC" = yes; then
11134 # Check if gcc -print-prog-name=ld gives a path.
11135 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11136 $as_echo_n "checking for ld used by GCC... " >&6; }
11137 case $host in
11138 *-*-mingw*)
11139 # gcc leaves a trailing carriage return which upsets mingw
11140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11143 esac
11144 case $ac_prog in
11145 # Accept absolute paths.
11146 [\\/]* | [A-Za-z]:[\\/]*)
11147 re_direlt='/[^/][^/]*/\.\./'
11148 # Canonicalize the path of ld
11149 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11150 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11151 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11152 done
11153 test -z "$LD" && LD="$ac_prog"
11156 # If it fails, then pretend we aren't using GCC.
11157 ac_prog=ld
11160 # If it is relative, then search for the first ld in PATH.
11161 with_gnu_ld=unknown
11163 esac
11164 elif test "$with_gnu_ld" = yes; then
11165 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11166 $as_echo_n "checking for GNU ld... " >&6; }
11167 else
11168 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11169 $as_echo_n "checking for non-GNU ld... " >&6; }
11171 if test "${acl_cv_path_LD+set}" = set; then
11172 $as_echo_n "(cached) " >&6
11173 else
11174 if test -z "$LD"; then
11175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11176 for ac_dir in $PATH; do
11177 test -z "$ac_dir" && ac_dir=.
11178 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11179 acl_cv_path_LD="$ac_dir/$ac_prog"
11180 # Check to see if the program is GNU ld. I'd rather use --version,
11181 # but apparently some GNU ld's only accept -v.
11182 # Break only if it was the GNU/non-GNU ld that we prefer.
11183 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11184 test "$with_gnu_ld" != no && break
11185 else
11186 test "$with_gnu_ld" != yes && break
11189 done
11190 IFS="$ac_save_ifs"
11191 else
11192 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11196 LD="$acl_cv_path_LD"
11197 if test -n "$LD"; then
11198 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11199 $as_echo "$LD" >&6; }
11200 else
11201 { $as_echo "$as_me:$LINENO: result: no" >&5
11202 $as_echo "no" >&6; }
11204 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11205 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11206 { (exit 1); exit 1; }; }
11207 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11208 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11209 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11210 $as_echo_n "(cached) " >&6
11211 else
11212 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11213 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11214 acl_cv_prog_gnu_ld=yes
11215 else
11216 acl_cv_prog_gnu_ld=no
11219 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11220 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11221 with_gnu_ld=$acl_cv_prog_gnu_ld
11225 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11226 $as_echo_n "checking for shared library run path origin... " >&6; }
11227 if test "${acl_cv_rpath+set}" = set; then
11228 $as_echo_n "(cached) " >&6
11229 else
11231 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11232 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11233 . ./conftest.sh
11234 rm -f ./conftest.sh
11235 acl_cv_rpath=done
11238 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11239 $as_echo "$acl_cv_rpath" >&6; }
11240 wl="$acl_cv_wl"
11241 libext="$acl_cv_libext"
11242 shlibext="$acl_cv_shlibext"
11243 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11244 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11245 hardcode_direct="$acl_cv_hardcode_direct"
11246 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11247 # Check whether --enable-rpath was given.
11248 if test "${enable_rpath+set}" = set; then
11249 enableval=$enable_rpath; :
11250 else
11251 enable_rpath=yes
11261 use_additional=yes
11263 acl_save_prefix="$prefix"
11264 prefix="$acl_final_prefix"
11265 acl_save_exec_prefix="$exec_prefix"
11266 exec_prefix="$acl_final_exec_prefix"
11268 eval additional_includedir=\"$includedir\"
11269 eval additional_libdir=\"$libdir\"
11271 exec_prefix="$acl_save_exec_prefix"
11272 prefix="$acl_save_prefix"
11275 # Check whether --with-libiconv-prefix was given.
11276 if test "${with_libiconv_prefix+set}" = set; then
11277 withval=$with_libiconv_prefix;
11278 if test "X$withval" = "Xno"; then
11279 use_additional=no
11280 else
11281 if test "X$withval" = "X"; then
11283 acl_save_prefix="$prefix"
11284 prefix="$acl_final_prefix"
11285 acl_save_exec_prefix="$exec_prefix"
11286 exec_prefix="$acl_final_exec_prefix"
11288 eval additional_includedir=\"$includedir\"
11289 eval additional_libdir=\"$libdir\"
11291 exec_prefix="$acl_save_exec_prefix"
11292 prefix="$acl_save_prefix"
11294 else
11295 additional_includedir="$withval/include"
11296 additional_libdir="$withval/lib"
11302 LIBICONV=
11303 LTLIBICONV=
11304 INCICONV=
11305 rpathdirs=
11306 ltrpathdirs=
11307 names_already_handled=
11308 names_next_round='iconv '
11309 while test -n "$names_next_round"; do
11310 names_this_round="$names_next_round"
11311 names_next_round=
11312 for name in $names_this_round; do
11313 already_handled=
11314 for n in $names_already_handled; do
11315 if test "$n" = "$name"; then
11316 already_handled=yes
11317 break
11319 done
11320 if test -z "$already_handled"; then
11321 names_already_handled="$names_already_handled $name"
11322 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11323 eval value=\"\$HAVE_LIB$uppername\"
11324 if test -n "$value"; then
11325 if test "$value" = yes; then
11326 eval value=\"\$LIB$uppername\"
11327 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11328 eval value=\"\$LTLIB$uppername\"
11329 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11330 else
11333 else
11334 found_dir=
11335 found_la=
11336 found_so=
11337 found_a=
11338 if test $use_additional = yes; then
11339 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11340 found_dir="$additional_libdir"
11341 found_so="$additional_libdir/lib$name.$shlibext"
11342 if test -f "$additional_libdir/lib$name.la"; then
11343 found_la="$additional_libdir/lib$name.la"
11345 else
11346 if test -f "$additional_libdir/lib$name.$libext"; then
11347 found_dir="$additional_libdir"
11348 found_a="$additional_libdir/lib$name.$libext"
11349 if test -f "$additional_libdir/lib$name.la"; then
11350 found_la="$additional_libdir/lib$name.la"
11355 if test "X$found_dir" = "X"; then
11356 for x in $LDFLAGS $LTLIBICONV; do
11358 acl_save_prefix="$prefix"
11359 prefix="$acl_final_prefix"
11360 acl_save_exec_prefix="$exec_prefix"
11361 exec_prefix="$acl_final_exec_prefix"
11362 eval x=\"$x\"
11363 exec_prefix="$acl_save_exec_prefix"
11364 prefix="$acl_save_prefix"
11366 case "$x" in
11367 -L*)
11368 dir=`echo "X$x" | sed -e 's/^X-L//'`
11369 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11370 found_dir="$dir"
11371 found_so="$dir/lib$name.$shlibext"
11372 if test -f "$dir/lib$name.la"; then
11373 found_la="$dir/lib$name.la"
11375 else
11376 if test -f "$dir/lib$name.$libext"; then
11377 found_dir="$dir"
11378 found_a="$dir/lib$name.$libext"
11379 if test -f "$dir/lib$name.la"; then
11380 found_la="$dir/lib$name.la"
11385 esac
11386 if test "X$found_dir" != "X"; then
11387 break
11389 done
11391 if test "X$found_dir" != "X"; then
11392 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11393 if test "X$found_so" != "X"; then
11394 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11395 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11396 else
11397 haveit=
11398 for x in $ltrpathdirs; do
11399 if test "X$x" = "X$found_dir"; then
11400 haveit=yes
11401 break
11403 done
11404 if test -z "$haveit"; then
11405 ltrpathdirs="$ltrpathdirs $found_dir"
11407 if test "$hardcode_direct" = yes; then
11408 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11409 else
11410 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11411 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11412 haveit=
11413 for x in $rpathdirs; do
11414 if test "X$x" = "X$found_dir"; then
11415 haveit=yes
11416 break
11418 done
11419 if test -z "$haveit"; then
11420 rpathdirs="$rpathdirs $found_dir"
11422 else
11423 haveit=
11424 for x in $LDFLAGS $LIBICONV; do
11426 acl_save_prefix="$prefix"
11427 prefix="$acl_final_prefix"
11428 acl_save_exec_prefix="$exec_prefix"
11429 exec_prefix="$acl_final_exec_prefix"
11430 eval x=\"$x\"
11431 exec_prefix="$acl_save_exec_prefix"
11432 prefix="$acl_save_prefix"
11434 if test "X$x" = "X-L$found_dir"; then
11435 haveit=yes
11436 break
11438 done
11439 if test -z "$haveit"; then
11440 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11442 if test "$hardcode_minus_L" != no; then
11443 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11444 else
11445 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11450 else
11451 if test "X$found_a" != "X"; then
11452 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11453 else
11454 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11457 additional_includedir=
11458 case "$found_dir" in
11459 */lib | */lib/)
11460 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11461 additional_includedir="$basedir/include"
11463 esac
11464 if test "X$additional_includedir" != "X"; then
11465 if test "X$additional_includedir" != "X/usr/include"; then
11466 haveit=
11467 if test "X$additional_includedir" = "X/usr/local/include"; then
11468 if test -n "$GCC"; then
11469 case $host_os in
11470 linux*) haveit=yes;;
11471 esac
11474 if test -z "$haveit"; then
11475 for x in $CPPFLAGS $INCICONV; do
11477 acl_save_prefix="$prefix"
11478 prefix="$acl_final_prefix"
11479 acl_save_exec_prefix="$exec_prefix"
11480 exec_prefix="$acl_final_exec_prefix"
11481 eval x=\"$x\"
11482 exec_prefix="$acl_save_exec_prefix"
11483 prefix="$acl_save_prefix"
11485 if test "X$x" = "X-I$additional_includedir"; then
11486 haveit=yes
11487 break
11489 done
11490 if test -z "$haveit"; then
11491 if test -d "$additional_includedir"; then
11492 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11498 if test -n "$found_la"; then
11499 save_libdir="$libdir"
11500 case "$found_la" in
11501 */* | *\\*) . "$found_la" ;;
11502 *) . "./$found_la" ;;
11503 esac
11504 libdir="$save_libdir"
11505 for dep in $dependency_libs; do
11506 case "$dep" in
11507 -L*)
11508 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11509 if test "X$additional_libdir" != "X/usr/lib"; then
11510 haveit=
11511 if test "X$additional_libdir" = "X/usr/local/lib"; then
11512 if test -n "$GCC"; then
11513 case $host_os in
11514 linux*) haveit=yes;;
11515 esac
11518 if test -z "$haveit"; then
11519 haveit=
11520 for x in $LDFLAGS $LIBICONV; do
11522 acl_save_prefix="$prefix"
11523 prefix="$acl_final_prefix"
11524 acl_save_exec_prefix="$exec_prefix"
11525 exec_prefix="$acl_final_exec_prefix"
11526 eval x=\"$x\"
11527 exec_prefix="$acl_save_exec_prefix"
11528 prefix="$acl_save_prefix"
11530 if test "X$x" = "X-L$additional_libdir"; then
11531 haveit=yes
11532 break
11534 done
11535 if test -z "$haveit"; then
11536 if test -d "$additional_libdir"; then
11537 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11540 haveit=
11541 for x in $LDFLAGS $LTLIBICONV; do
11543 acl_save_prefix="$prefix"
11544 prefix="$acl_final_prefix"
11545 acl_save_exec_prefix="$exec_prefix"
11546 exec_prefix="$acl_final_exec_prefix"
11547 eval x=\"$x\"
11548 exec_prefix="$acl_save_exec_prefix"
11549 prefix="$acl_save_prefix"
11551 if test "X$x" = "X-L$additional_libdir"; then
11552 haveit=yes
11553 break
11555 done
11556 if test -z "$haveit"; then
11557 if test -d "$additional_libdir"; then
11558 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11564 -R*)
11565 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11566 if test "$enable_rpath" != no; then
11567 haveit=
11568 for x in $rpathdirs; do
11569 if test "X$x" = "X$dir"; then
11570 haveit=yes
11571 break
11573 done
11574 if test -z "$haveit"; then
11575 rpathdirs="$rpathdirs $dir"
11577 haveit=
11578 for x in $ltrpathdirs; do
11579 if test "X$x" = "X$dir"; then
11580 haveit=yes
11581 break
11583 done
11584 if test -z "$haveit"; then
11585 ltrpathdirs="$ltrpathdirs $dir"
11589 -l*)
11590 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11592 *.la)
11593 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11596 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11597 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11599 esac
11600 done
11602 else
11603 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11604 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11608 done
11609 done
11610 if test "X$rpathdirs" != "X"; then
11611 if test -n "$hardcode_libdir_separator"; then
11612 alldirs=
11613 for found_dir in $rpathdirs; do
11614 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11615 done
11616 acl_save_libdir="$libdir"
11617 libdir="$alldirs"
11618 eval flag=\"$hardcode_libdir_flag_spec\"
11619 libdir="$acl_save_libdir"
11620 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11621 else
11622 for found_dir in $rpathdirs; do
11623 acl_save_libdir="$libdir"
11624 libdir="$found_dir"
11625 eval flag=\"$hardcode_libdir_flag_spec\"
11626 libdir="$acl_save_libdir"
11627 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11628 done
11631 if test "X$ltrpathdirs" != "X"; then
11632 for found_dir in $ltrpathdirs; do
11633 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11634 done
11643 am_save_CPPFLAGS="$CPPFLAGS"
11645 for element in $INCICONV; do
11646 haveit=
11647 for x in $CPPFLAGS; do
11649 acl_save_prefix="$prefix"
11650 prefix="$acl_final_prefix"
11651 acl_save_exec_prefix="$exec_prefix"
11652 exec_prefix="$acl_final_exec_prefix"
11653 eval x=\"$x\"
11654 exec_prefix="$acl_save_exec_prefix"
11655 prefix="$acl_save_prefix"
11657 if test "X$x" = "X$element"; then
11658 haveit=yes
11659 break
11661 done
11662 if test -z "$haveit"; then
11663 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11665 done
11668 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
11669 $as_echo_n "checking for iconv... " >&6; }
11670 if test "${am_cv_func_iconv+set}" = set; then
11671 $as_echo_n "(cached) " >&6
11672 else
11674 am_cv_func_iconv="no, consider installing GNU libiconv"
11675 am_cv_lib_iconv=no
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h. */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 #include <stdlib.h>
11683 #include <iconv.h>
11685 main ()
11687 iconv_t cd = iconv_open("","");
11688 iconv(cd,NULL,NULL,NULL,NULL);
11689 iconv_close(cd);
11691 return 0;
11693 _ACEOF
11694 rm -f conftest.$ac_objext conftest$ac_exeext
11695 if { (ac_try="$ac_link"
11696 case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699 esac
11700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11701 $as_echo "$ac_try_echo") >&5
11702 (eval "$ac_link") 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } && {
11709 test -z "$ac_c_werror_flag" ||
11710 test ! -s conftest.err
11711 } && test -s conftest$ac_exeext && {
11712 test "$cross_compiling" = yes ||
11713 $as_test_x conftest$ac_exeext
11714 }; then
11715 am_cv_func_iconv=yes
11716 else
11717 $as_echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11723 rm -rf conftest.dSYM
11724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11725 conftest$ac_exeext conftest.$ac_ext
11726 if test "$am_cv_func_iconv" != yes; then
11727 am_save_LIBS="$LIBS"
11728 LIBS="$LIBS $LIBICONV"
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h. */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 #include <stdlib.h>
11736 #include <iconv.h>
11738 main ()
11740 iconv_t cd = iconv_open("","");
11741 iconv(cd,NULL,NULL,NULL,NULL);
11742 iconv_close(cd);
11744 return 0;
11746 _ACEOF
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (ac_try="$ac_link"
11749 case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11752 esac
11753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11754 $as_echo "$ac_try_echo") >&5
11755 (eval "$ac_link") 2>conftest.er1
11756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } && {
11762 test -z "$ac_c_werror_flag" ||
11763 test ! -s conftest.err
11764 } && test -s conftest$ac_exeext && {
11765 test "$cross_compiling" = yes ||
11766 $as_test_x conftest$ac_exeext
11767 }; then
11768 am_cv_lib_iconv=yes
11769 am_cv_func_iconv=yes
11770 else
11771 $as_echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11777 rm -rf conftest.dSYM
11778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11779 conftest$ac_exeext conftest.$ac_ext
11780 LIBS="$am_save_LIBS"
11784 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11785 $as_echo "$am_cv_func_iconv" >&6; }
11786 if test "$am_cv_func_iconv" = yes; then
11788 cat >>confdefs.h <<\_ACEOF
11789 #define HAVE_ICONV 1
11790 _ACEOF
11793 if test "$am_cv_lib_iconv" = yes; then
11794 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11795 $as_echo_n "checking how to link with libiconv... " >&6; }
11796 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
11797 $as_echo "$LIBICONV" >&6; }
11798 else
11799 CPPFLAGS="$am_save_CPPFLAGS"
11800 LIBICONV=
11801 LTLIBICONV=
11806 if test "$am_cv_func_iconv" = yes; then
11807 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
11808 $as_echo_n "checking for iconv declaration... " >&6; }
11809 if test "${am_cv_proto_iconv+set}" = set; then
11810 $as_echo_n "(cached) " >&6
11811 else
11813 cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h. */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11820 #include <stdlib.h>
11821 #include <iconv.h>
11822 extern
11823 #ifdef __cplusplus
11825 #endif
11826 #if defined(__STDC__) || defined(__cplusplus)
11827 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11828 #else
11829 size_t iconv();
11830 #endif
11833 main ()
11837 return 0;
11839 _ACEOF
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11845 esac
11846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11847 $as_echo "$ac_try_echo") >&5
11848 (eval "$ac_compile") 2>conftest.er1
11849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } && {
11855 test -z "$ac_c_werror_flag" ||
11856 test ! -s conftest.err
11857 } && test -s conftest.$ac_objext; then
11858 am_cv_proto_iconv_arg1=""
11859 else
11860 $as_echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11863 am_cv_proto_iconv_arg1="const"
11866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11870 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11871 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
11872 }$am_cv_proto_iconv" >&5
11873 $as_echo "${ac_t:-
11874 }$am_cv_proto_iconv" >&6; }
11876 cat >>confdefs.h <<_ACEOF
11877 #define ICONV_CONST $am_cv_proto_iconv_arg1
11878 _ACEOF
11882 # Until we have in-tree GNU iconv:
11883 LIBICONV_DEP=
11887 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11888 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11889 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11890 $as_echo_n "(cached) " >&6
11891 else
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 #include <locale.h>
11900 main ()
11902 return LC_MESSAGES
11904 return 0;
11906 _ACEOF
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (ac_try="$ac_link"
11909 case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912 esac
11913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11914 $as_echo "$ac_try_echo") >&5
11915 (eval "$ac_link") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest$ac_exeext && {
11925 test "$cross_compiling" = yes ||
11926 $as_test_x conftest$ac_exeext
11927 }; then
11928 am_cv_val_LC_MESSAGES=yes
11929 else
11930 $as_echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 am_cv_val_LC_MESSAGES=no
11936 rm -rf conftest.dSYM
11937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11938 conftest$ac_exeext conftest.$ac_ext
11940 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11941 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11942 if test $am_cv_val_LC_MESSAGES = yes; then
11944 cat >>confdefs.h <<\_ACEOF
11945 #define HAVE_LC_MESSAGES 1
11946 _ACEOF
11952 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11953 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11954 if test "${am_cv_langinfo_codeset+set}" = set; then
11955 $as_echo_n "(cached) " >&6
11956 else
11957 cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h. */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963 #include <langinfo.h>
11965 main ()
11967 char* cs = nl_langinfo(CODESET);
11969 return 0;
11971 _ACEOF
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (ac_try="$ac_link"
11974 case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977 esac
11978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11979 $as_echo "$ac_try_echo") >&5
11980 (eval "$ac_link") 2>conftest.er1
11981 ac_status=$?
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
11985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_c_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest$ac_exeext && {
11990 test "$cross_compiling" = yes ||
11991 $as_test_x conftest$ac_exeext
11992 }; then
11993 am_cv_langinfo_codeset=yes
11994 else
11995 $as_echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 am_cv_langinfo_codeset=no
12001 rm -rf conftest.dSYM
12002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12003 conftest$ac_exeext conftest.$ac_ext
12006 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12007 $as_echo "$am_cv_langinfo_codeset" >&6; }
12008 if test $am_cv_langinfo_codeset = yes; then
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_LANGINFO_CODESET 1
12012 _ACEOF
12017 # We will need to find libiberty.h and ansidecl.h
12018 saved_CFLAGS="$CFLAGS"
12019 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12059 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12060 strsignal strstr strverscmp \
12061 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12062 free basename getopt clock getpagesize 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
12064 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12065 { $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12066 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12067 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12068 $as_echo_n "(cached) " >&6
12069 else
12070 cat >conftest.$ac_ext <<_ACEOF
12071 /* confdefs.h. */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12076 #undef $ac_tr_decl
12077 #define $ac_tr_decl 1
12079 #include "ansidecl.h"
12080 #include "system.h"
12083 main ()
12085 #ifndef $ac_func
12086 char *(*pfn) = (char *(*)) $ac_func ;
12087 #endif
12089 return 0;
12091 _ACEOF
12092 rm -f conftest.$ac_objext
12093 if { (ac_try="$ac_compile"
12094 case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097 esac
12098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12099 $as_echo "$ac_try_echo") >&5
12100 (eval "$ac_compile") 2>conftest.er1
12101 ac_status=$?
12102 grep -v '^ *+' conftest.er1 >conftest.err
12103 rm -f conftest.er1
12104 cat conftest.err >&5
12105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } && {
12107 test -z "$ac_c_werror_flag" ||
12108 test ! -s conftest.err
12109 } && test -s conftest.$ac_objext; then
12110 eval "gcc_cv_have_decl_$ac_func=yes"
12111 else
12112 $as_echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 eval "gcc_cv_have_decl_$ac_func=no"
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12122 { $as_echo "$as_me:$LINENO: result: yes" >&5
12123 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12124 #define $ac_tr_decl 1
12125 _ACEOF
12127 else
12128 { $as_echo "$as_me:$LINENO: result: no" >&5
12129 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12130 #define $ac_tr_decl 0
12131 _ACEOF
12135 done
12141 for ac_func in getrlimit setrlimit getrusage
12143 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12144 { $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12145 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12146 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12147 $as_echo_n "(cached) " >&6
12148 else
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h. */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 #undef $ac_tr_decl
12156 #define $ac_tr_decl 1
12158 #include "ansidecl.h"
12159 #include "system.h"
12160 #ifdef HAVE_SYS_RESOURCE_H
12161 #include <sys/resource.h>
12162 #endif
12166 main ()
12168 #ifndef $ac_func
12169 char *(*pfn) = (char *(*)) $ac_func ;
12170 #endif
12172 return 0;
12174 _ACEOF
12175 rm -f conftest.$ac_objext
12176 if { (ac_try="$ac_compile"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180 esac
12181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12182 $as_echo "$ac_try_echo") >&5
12183 (eval "$ac_compile") 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest.$ac_objext; then
12193 eval "gcc_cv_have_decl_$ac_func=yes"
12194 else
12195 $as_echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 eval "gcc_cv_have_decl_$ac_func=no"
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12205 { $as_echo "$as_me:$LINENO: result: yes" >&5
12206 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12207 #define $ac_tr_decl 1
12208 _ACEOF
12210 else
12211 { $as_echo "$as_me:$LINENO: result: no" >&5
12212 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12213 #define $ac_tr_decl 0
12214 _ACEOF
12218 done
12221 cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h. */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12228 #include "ansidecl.h"
12229 #include "system.h"
12230 #ifdef HAVE_SYS_RESOURCE_H
12231 #include <sys/resource.h>
12232 #endif
12235 main ()
12237 rlim_t l = 0;
12239 return 0;
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (ac_try="$ac_compile"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247 esac
12248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12249 $as_echo "$ac_try_echo") >&5
12250 (eval "$ac_compile") 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest.$ac_objext; then
12261 else
12262 $as_echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12266 cat >>confdefs.h <<\_ACEOF
12267 #define rlim_t long
12268 _ACEOF
12272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12275 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12276 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12277 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12279 for ac_func in ldgetname
12281 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12282 { $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12283 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12284 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12285 $as_echo_n "(cached) " >&6
12286 else
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h. */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 #undef $ac_tr_decl
12294 #define $ac_tr_decl 1
12296 #include "ansidecl.h"
12297 #include "system.h"
12298 #ifdef HAVE_LDFCN_H
12299 #undef FREAD
12300 #undef FWRITE
12301 #include <ldfcn.h>
12302 #endif
12306 main ()
12308 #ifndef $ac_func
12309 char *(*pfn) = (char *(*)) $ac_func ;
12310 #endif
12312 return 0;
12314 _ACEOF
12315 rm -f conftest.$ac_objext
12316 if { (ac_try="$ac_compile"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12320 esac
12321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12322 $as_echo "$ac_try_echo") >&5
12323 (eval "$ac_compile") 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } && {
12330 test -z "$ac_c_werror_flag" ||
12331 test ! -s conftest.err
12332 } && test -s conftest.$ac_objext; then
12333 eval "gcc_cv_have_decl_$ac_func=yes"
12334 else
12335 $as_echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 eval "gcc_cv_have_decl_$ac_func=no"
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12344 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12345 { $as_echo "$as_me:$LINENO: result: yes" >&5
12346 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12347 #define $ac_tr_decl 1
12348 _ACEOF
12350 else
12351 { $as_echo "$as_me:$LINENO: result: no" >&5
12352 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12353 #define $ac_tr_decl 0
12354 _ACEOF
12358 done
12362 for ac_func in times
12364 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12365 { $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12366 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12367 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12368 $as_echo_n "(cached) " >&6
12369 else
12370 cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h. */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 #undef $ac_tr_decl
12377 #define $ac_tr_decl 1
12379 #include "ansidecl.h"
12380 #include "system.h"
12381 #ifdef HAVE_SYS_TIMES_H
12382 #include <sys/times.h>
12383 #endif
12387 main ()
12389 #ifndef $ac_func
12390 char *(*pfn) = (char *(*)) $ac_func ;
12391 #endif
12393 return 0;
12395 _ACEOF
12396 rm -f conftest.$ac_objext
12397 if { (ac_try="$ac_compile"
12398 case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401 esac
12402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12403 $as_echo "$ac_try_echo") >&5
12404 (eval "$ac_compile") 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest.$ac_objext; then
12414 eval "gcc_cv_have_decl_$ac_func=yes"
12415 else
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 eval "gcc_cv_have_decl_$ac_func=no"
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12426 { $as_echo "$as_me:$LINENO: result: yes" >&5
12427 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12428 #define $ac_tr_decl 1
12429 _ACEOF
12431 else
12432 { $as_echo "$as_me:$LINENO: result: no" >&5
12433 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12434 #define $ac_tr_decl 0
12435 _ACEOF
12439 done
12442 # More time-related stuff.
12443 { $as_echo "$as_me:$LINENO: checking for struct tms" >&5
12444 $as_echo_n "checking for struct tms... " >&6; }
12445 if test "${ac_cv_struct_tms+set}" = set; then
12446 $as_echo_n "(cached) " >&6
12447 else
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h. */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12456 #include "ansidecl.h"
12457 #include "system.h"
12458 #ifdef HAVE_SYS_TIMES_H
12459 #include <sys/times.h>
12460 #endif
12463 main ()
12465 struct tms tms;
12467 return 0;
12469 _ACEOF
12470 rm -f conftest.$ac_objext
12471 if { (ac_try="$ac_compile"
12472 case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12475 esac
12476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12477 $as_echo "$ac_try_echo") >&5
12478 (eval "$ac_compile") 2>conftest.er1
12479 ac_status=$?
12480 grep -v '^ *+' conftest.er1 >conftest.err
12481 rm -f conftest.er1
12482 cat conftest.err >&5
12483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } && {
12485 test -z "$ac_c_werror_flag" ||
12486 test ! -s conftest.err
12487 } && test -s conftest.$ac_objext; then
12488 ac_cv_struct_tms=yes
12489 else
12490 $as_echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 ac_cv_struct_tms=no
12496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12499 $as_echo "$ac_cv_struct_tms" >&6; }
12500 if test $ac_cv_struct_tms = yes; then
12502 cat >>confdefs.h <<\_ACEOF
12503 #define HAVE_STRUCT_TMS 1
12504 _ACEOF
12508 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12509 # revisit after autoconf 2.50.
12510 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
12511 $as_echo_n "checking for clock_t... " >&6; }
12512 if test "${gcc_cv_type_clock_t+set}" = set; then
12513 $as_echo_n "(cached) " >&6
12514 else
12516 cat >conftest.$ac_ext <<_ACEOF
12517 /* confdefs.h. */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12523 #include "ansidecl.h"
12524 #include "system.h"
12527 main ()
12529 clock_t x;
12531 return 0;
12533 _ACEOF
12534 rm -f conftest.$ac_objext
12535 if { (ac_try="$ac_compile"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12539 esac
12540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12541 $as_echo "$ac_try_echo") >&5
12542 (eval "$ac_compile") 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest.$ac_objext; then
12552 gcc_cv_type_clock_t=yes
12553 else
12554 $as_echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 gcc_cv_type_clock_t=no
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 { $as_echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12563 $as_echo "$gcc_cv_type_clock_t" >&6; }
12564 if test $gcc_cv_type_clock_t = yes; then
12566 cat >>confdefs.h <<\_ACEOF
12567 #define HAVE_CLOCK_T 1
12568 _ACEOF
12572 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12573 CFLAGS="$saved_CFLAGS"
12575 # Check whether --enable-initfini-array was given.
12576 if test "${enable_initfini_array+set}" = set; then
12577 enableval=$enable_initfini_array;
12578 else
12580 { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12581 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
12582 if test "${gcc_cv_initfini_array+set}" = set; then
12583 $as_echo_n "(cached) " >&6
12584 else
12585 if test "$cross_compiling" = yes; then
12586 gcc_cv_initfini_array=no
12587 else
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 static int x = -1;
12596 int main (void) { return x; }
12597 int foo (void) { x = 0; }
12598 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12599 _ACEOF
12600 rm -f conftest$ac_exeext
12601 if { (ac_try="$ac_link"
12602 case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12605 esac
12606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12607 $as_echo "$ac_try_echo") >&5
12608 (eval "$ac_link") 2>&5
12609 ac_status=$?
12610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12612 { (case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615 esac
12616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12617 $as_echo "$ac_try_echo") >&5
12618 (eval "$ac_try") 2>&5
12619 ac_status=$?
12620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 gcc_cv_initfini_array=yes
12623 else
12624 $as_echo "$as_me: program exited with status $ac_status" >&5
12625 $as_echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 ( exit $ac_status )
12629 gcc_cv_initfini_array=no
12631 rm -rf conftest.dSYM
12632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12637 { $as_echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12638 $as_echo "$gcc_cv_initfini_array" >&6; }
12639 enable_initfini_array=$gcc_cv_initfini_array
12643 if test $enable_initfini_array = yes; then
12645 cat >>confdefs.h <<\_ACEOF
12646 #define HAVE_INITFINI_ARRAY 1
12647 _ACEOF
12651 # mkdir takes a single argument on some systems.
12652 { $as_echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12653 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12654 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12655 $as_echo_n "(cached) " >&6
12656 else
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h. */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12664 #include <sys/types.h>
12665 #ifdef HAVE_SYS_STAT_H
12666 # include <sys/stat.h>
12667 #endif
12668 #ifdef HAVE_UNISTD_H
12669 # include <unistd.h>
12670 #endif
12671 #ifdef HAVE_DIRECT_H
12672 # include <direct.h>
12673 #endif
12675 main ()
12677 mkdir ("foo", 0);
12679 return 0;
12681 _ACEOF
12682 rm -f conftest.$ac_objext
12683 if { (ac_try="$ac_compile"
12684 case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12687 esac
12688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12689 $as_echo "$ac_try_echo") >&5
12690 (eval "$ac_compile") 2>conftest.er1
12691 ac_status=$?
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
12695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } && {
12697 test -z "$ac_c_werror_flag" ||
12698 test ! -s conftest.err
12699 } && test -s conftest.$ac_objext; then
12700 gcc_cv_mkdir_takes_one_arg=no
12701 else
12702 $as_echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 gcc_cv_mkdir_takes_one_arg=yes
12708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710 { $as_echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12711 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12712 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12714 cat >>confdefs.h <<\_ACEOF
12715 #define MKDIR_TAKES_ONE_ARG 1
12716 _ACEOF
12721 # File extensions
12722 manext='.1'
12723 objext='.o'
12727 # With Setjmp/Longjmp based exception handling.
12728 # Check whether --enable-sjlj-exceptions was given.
12729 if test "${enable_sjlj_exceptions+set}" = set; then
12730 enableval=$enable_sjlj_exceptions; sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12732 cat >>confdefs.h <<_ACEOF
12733 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12734 _ACEOF
12739 # For platforms with the unwind ABI which includes an unwind library,
12740 # libunwind, we can choose to use the system libunwind.
12742 # Check whether --with-system-libunwind was given.
12743 if test "${with_system_libunwind+set}" = set; then
12744 withval=$with_system_libunwind;
12748 # --------------------------------------------------------
12749 # Build, host, and target specific configuration fragments
12750 # --------------------------------------------------------
12752 # Collect build-machine-specific information.
12753 . ${srcdir}/config.build
12755 # Collect host-machine-specific information.
12756 . ${srcdir}/config.host
12758 target_gtfiles=
12760 # Collect target-machine-specific information.
12761 . ${srcdir}/config.gcc
12763 extra_objs="${host_extra_objs} ${extra_objs}"
12764 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12766 # Default the target-machine variables that were not explicitly set.
12767 if test x"$tm_file" = x
12768 then tm_file=$cpu_type/$cpu_type.h; fi
12770 if test x"$extra_headers" = x
12771 then extra_headers=; fi
12773 if test x$md_file = x
12774 then md_file=$cpu_type/$cpu_type.md; fi
12776 if test x$out_file = x
12777 then out_file=$cpu_type/$cpu_type.c; fi
12779 if test x"$tmake_file" = x
12780 then tmake_file=$cpu_type/t-$cpu_type
12783 if test x"$dwarf2" = xyes
12784 then tm_file="$tm_file tm-dwarf2.h"
12787 # Say what files are being used for the output code and MD file.
12788 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12789 echo "Using \`$srcdir/config/$md_file' as machine description file."
12791 # If any of the xm_file variables contain nonexistent files, warn
12792 # about them and drop them.
12795 for x in $build_xm_file; do
12796 if test -f $srcdir/config/$x
12797 then bx="$bx $x"
12798 else { $as_echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12799 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12801 done
12802 build_xm_file="$bx"
12805 for x in $host_xm_file; do
12806 if test -f $srcdir/config/$x
12807 then hx="$hx $x"
12808 else { $as_echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12809 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12811 done
12812 host_xm_file="$hx"
12815 for x in $xm_file; do
12816 if test -f $srcdir/config/$x
12817 then tx="$tx $x"
12818 else { $as_echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12819 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12821 done
12822 xm_file="$tx"
12824 count=a
12825 for f in $tm_file; do
12826 count=${count}x
12827 done
12828 if test $count = ax; then
12829 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12830 else
12831 echo "Using the following target machine macro files:"
12832 for f in $tm_file; do
12833 echo " $srcdir/config/$f"
12834 done
12837 if test x$need_64bit_hwint = xyes; then
12839 cat >>confdefs.h <<\_ACEOF
12840 #define NEED_64BIT_HOST_WIDE_INT 1
12841 _ACEOF
12845 if test x$use_long_long_for_widest_fast_int = xyes; then
12847 cat >>confdefs.h <<\_ACEOF
12848 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12849 _ACEOF
12853 count=a
12854 for f in $host_xm_file; do
12855 count=${count}x
12856 done
12857 if test $count = a; then
12859 elif test $count = ax; then
12860 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12861 else
12862 echo "Using the following host machine macro files:"
12863 for f in $host_xm_file; do
12864 echo " $srcdir/config/$f"
12865 done
12867 echo "Using ${out_host_hook_obj} for host machine hooks."
12869 if test "$host_xm_file" != "$build_xm_file"; then
12870 count=a
12871 for f in $build_xm_file; do
12872 count=${count}x
12873 done
12874 if test $count = a; then
12876 elif test $count = ax; then
12877 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12878 else
12879 echo "Using the following build machine macro files:"
12880 for f in $build_xm_file; do
12881 echo " $srcdir/config/$f"
12882 done
12886 # ---------
12887 # Threading
12888 # ---------
12890 # Check if a valid thread package
12891 case ${enable_threads} in
12892 "" | no)
12893 # No threads
12894 target_thread_file='single'
12896 yes)
12897 # default
12898 target_thread_file='single'
12900 aix | dce | gnat | irix | posix | posix95 | rtems | \
12901 single | solaris | vxworks | win32 )
12902 target_thread_file=${enable_threads}
12905 echo "${enable_threads} is an unknown thread package" 1>&2
12906 exit 1
12908 esac
12910 if test x${thread_file} = x; then
12911 # No thread file set by target-specific clauses in config.gcc,
12912 # so use file chosen by default logic above
12913 thread_file=${target_thread_file}
12916 # Make gthr-default.h if we have a thread file.
12917 gthread_flags=
12918 if test $thread_file != single; then
12919 rm -f gthr-default.h
12920 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12921 gthread_flags=-DHAVE_GTHR_DEFAULT
12925 # --------
12926 # UNSORTED
12927 # --------
12929 use_cxa_atexit=no
12930 if test x$enable___cxa_atexit = xyes || \
12931 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12932 if test x$host = x$target; then
12933 { $as_echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12934 $as_echo_n "checking for __cxa_atexit... " >&6; }
12935 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12936 $as_echo_n "(cached) " >&6
12937 else
12938 cat >conftest.$ac_ext <<_ACEOF
12939 /* confdefs.h. */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12944 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12946 #define __cxa_atexit innocuous___cxa_atexit
12948 /* System header to define __stub macros and hopefully few prototypes,
12949 which can conflict with char __cxa_atexit (); below.
12950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12951 <limits.h> exists even on freestanding compilers. */
12953 #ifdef __STDC__
12954 # include <limits.h>
12955 #else
12956 # include <assert.h>
12957 #endif
12959 #undef __cxa_atexit
12961 /* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12964 #ifdef __cplusplus
12965 extern "C"
12966 #endif
12967 char __cxa_atexit ();
12968 /* The GNU C library defines this for functions which it implements
12969 to always fail with ENOSYS. Some functions are actually named
12970 something starting with __ and the normal name is an alias. */
12971 #if defined __stub___cxa_atexit || defined __stub_____cxa_atexit
12972 choke me
12973 #endif
12976 main ()
12978 return __cxa_atexit ();
12980 return 0;
12982 _ACEOF
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12988 esac
12989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12990 $as_echo "$ac_try_echo") >&5
12991 (eval "$ac_link") 2>conftest.er1
12992 ac_status=$?
12993 grep -v '^ *+' conftest.er1 >conftest.err
12994 rm -f conftest.er1
12995 cat conftest.err >&5
12996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } && {
12998 test -z "$ac_c_werror_flag" ||
12999 test ! -s conftest.err
13000 } && test -s conftest$ac_exeext && {
13001 test "$cross_compiling" = yes ||
13002 $as_test_x conftest$ac_exeext
13003 }; then
13004 ac_cv_func___cxa_atexit=yes
13005 else
13006 $as_echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ac_cv_func___cxa_atexit=no
13012 rm -rf conftest.dSYM
13013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13014 conftest$ac_exeext conftest.$ac_ext
13016 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13017 $as_echo "$ac_cv_func___cxa_atexit" >&6; }
13018 if test $ac_cv_func___cxa_atexit = yes; then
13019 use_cxa_atexit=yes
13020 else
13021 echo "__cxa_atexit can't be enabled on this target"
13024 else
13025 # We can't check for __cxa_atexit when building a cross, so assume
13026 # it is available
13027 use_cxa_atexit=yes
13029 if test x$use_cxa_atexit = xyes; then
13031 cat >>confdefs.h <<\_ACEOF
13032 #define DEFAULT_USE_CXA_ATEXIT 1
13033 _ACEOF
13038 # Look for a file containing extra machine modes.
13039 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13040 extra_modes_file='$(srcdir)'/config/${extra_modes}
13043 cat >>confdefs.h <<_ACEOF
13044 #define EXTRA_MODES_FILE "config/$extra_modes"
13045 _ACEOF
13049 # Convert extra_options into a form suitable for Makefile use.
13050 extra_opt_files=
13051 for f in $extra_options; do
13052 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13053 done
13056 # auto-host.h is the file containing items generated by autoconf and is
13057 # the first file included by config.h.
13058 # If host=build, it is correct to have bconfig include auto-host.h
13059 # as well. If host!=build, we are in error and need to do more
13060 # work to find out the build config parameters.
13061 if test x$host = x$build
13062 then
13063 build_auto=auto-host.h
13064 else
13065 # We create a subdir, then run autoconf in the subdir.
13066 # To prevent recursion we set host and build for the new
13067 # invocation of configure to the build for this invocation
13068 # of configure.
13069 tempdir=build.$$
13070 rm -rf $tempdir
13071 mkdir $tempdir
13072 cd $tempdir
13073 case ${srcdir} in
13074 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13075 *) realsrcdir=../${srcdir};;
13076 esac
13077 saved_CFLAGS="${CFLAGS}"
13078 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13079 ${realsrcdir}/configure \
13080 --enable-languages=${enable_languages-all} \
13081 --target=$target_alias --host=$build_alias --build=$build_alias
13082 CFLAGS="${saved_CFLAGS}"
13084 # We just finished tests for the build machine, so rename
13085 # the file auto-build.h in the gcc directory.
13086 mv auto-host.h ../auto-build.h
13087 cd ..
13088 rm -rf $tempdir
13089 build_auto=auto-build.h
13093 tm_file="${tm_file} defaults.h"
13094 tm_p_file="${tm_p_file} tm-preds.h"
13095 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13096 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13097 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13098 # put this back in temporarily.
13099 xm_file="auto-host.h ansidecl.h ${xm_file}"
13101 # --------
13102 # UNSORTED
13103 # --------
13105 # Compile in configure arguments.
13106 if test -f configargs.h ; then
13107 # Being re-configured.
13108 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13109 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13110 else
13111 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13114 # Double all backslashes and backslash all quotes to turn
13115 # gcc_config_arguments into a C string.
13116 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13117 $gcc_config_arguments
13119 gcc_config_arguments_str=`cat conftest.out`
13120 rm -f conftest.out
13122 cat > configargs.h <<EOF
13123 /* Generated automatically. */
13124 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13125 static const char thread_model[] = "$thread_file";
13127 static const struct {
13128 const char *name, *value;
13129 } configure_default_options[] = $configure_default_options;
13132 # Internationalization
13133 # If we haven't got the data from the intl directory,
13134 # assume NLS is disabled.
13135 USE_NLS=no
13136 LIBINTL=
13137 LIBINTL_DEP=
13138 INCINTL=
13139 XGETTEXT=
13140 GMSGFMT=
13141 POSUB=
13142 if test -f ../intl/config.intl; then
13143 . ../intl/config.intl
13145 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13146 $as_echo_n "checking whether NLS is requested... " >&6; }
13147 if test x"$USE_NLS" != xyes; then
13148 { $as_echo "$as_me:$LINENO: result: no" >&5
13149 $as_echo "no" >&6; }
13150 else
13151 { $as_echo "$as_me:$LINENO: result: yes" >&5
13152 $as_echo "yes" >&6; }
13154 cat >>confdefs.h <<\_ACEOF
13155 #define ENABLE_NLS 1
13156 _ACEOF
13159 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13160 $as_echo_n "checking for catalogs to be installed... " >&6; }
13161 # Look for .po and .gmo files in the source directory.
13162 CATALOGS=
13163 XLINGUAS=
13164 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13165 # If there aren't any .gmo files the shell will give us the
13166 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13167 # weeded out.
13168 case "$cat" in *\**)
13169 continue;;
13170 esac
13171 # The quadruple backslash is collapsed to a double backslash
13172 # by the backticks, then collapsed again by the double quotes,
13173 # leaving us with one backslash in the sed expression (right
13174 # before the dot that mustn't act as a wildcard).
13175 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
13176 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
13177 # The user is allowed to set LINGUAS to a list of languages to
13178 # install catalogs for. If it's empty that means "all of them."
13179 if test "x$LINGUAS" = x; then
13180 CATALOGS="$CATALOGS $cat"
13181 XLINGUAS="$XLINGUAS $lang"
13182 else
13183 case "$LINGUAS" in *$lang*)
13184 CATALOGS="$CATALOGS $cat"
13185 XLINGUAS="$XLINGUAS $lang"
13187 esac
13189 done
13190 LINGUAS="$XLINGUAS"
13191 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
13192 $as_echo "$LINGUAS" >&6; }
13195 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13196 # -liconv on the link line twice.
13197 case "$LIBINTL" in *$LIBICONV*)
13198 LIBICONV= ;;
13199 esac
13201 # Check whether --enable-secureplt was given.
13202 if test "${enable_secureplt+set}" = set; then
13203 enableval=$enable_secureplt;
13207 # Windows32 Registry support for specifying GCC installation paths.
13208 # Check whether --enable-win32-registry was given.
13209 if test "${enable_win32_registry+set}" = set; then
13210 enableval=$enable_win32_registry;
13214 case $host_os in
13215 win32 | pe | cygwin* | mingw32* | uwin*)
13216 if test "x$enable_win32_registry" != xno; then
13217 { $as_echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13218 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13219 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13220 $as_echo_n "(cached) " >&6
13221 else
13222 ac_func_search_save_LIBS=$LIBS
13223 cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h. */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13230 /* Override any GCC internal prototype to avoid an error.
13231 Use char because int might match the return type of a GCC
13232 builtin and then its argument prototype would still apply. */
13233 #ifdef __cplusplus
13234 extern "C"
13235 #endif
13236 char RegOpenKeyExA ();
13238 main ()
13240 return RegOpenKeyExA ();
13242 return 0;
13244 _ACEOF
13245 for ac_lib in '' advapi32; do
13246 if test -z "$ac_lib"; then
13247 ac_res="none required"
13248 else
13249 ac_res=-l$ac_lib
13250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13252 rm -f conftest.$ac_objext conftest$ac_exeext
13253 if { (ac_try="$ac_link"
13254 case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13257 esac
13258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13259 $as_echo "$ac_try_echo") >&5
13260 (eval "$ac_link") 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } && {
13267 test -z "$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13269 } && test -s conftest$ac_exeext && {
13270 test "$cross_compiling" = yes ||
13271 $as_test_x conftest$ac_exeext
13272 }; then
13273 ac_cv_search_RegOpenKeyExA=$ac_res
13274 else
13275 $as_echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13281 rm -rf conftest.dSYM
13282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13283 conftest$ac_exeext
13284 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13285 break
13287 done
13288 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13290 else
13291 ac_cv_search_RegOpenKeyExA=no
13293 rm conftest.$ac_ext
13294 LIBS=$ac_func_search_save_LIBS
13296 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13297 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13298 ac_res=$ac_cv_search_RegOpenKeyExA
13299 if test "$ac_res" != no; then
13300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13302 else
13303 enable_win32_registry=no
13308 if test "x$enable_win32_registry" != xno; then
13310 cat >>confdefs.h <<\_ACEOF
13311 #define ENABLE_WIN32_REGISTRY 1
13312 _ACEOF
13315 if test "x$enable_win32_registry" != xyes \
13316 && test "x$enable_win32_registry" != x; then
13318 cat >>confdefs.h <<_ACEOF
13319 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13320 _ACEOF
13325 esac
13327 # Get an absolute path to the GCC top-level source directory
13328 holddir=`${PWDCMD-pwd}`
13329 cd $srcdir
13330 topdir=`${PWDCMD-pwd}`
13331 cd $holddir
13333 # Conditionalize the makefile for this host machine.
13334 xmake_file=
13335 for f in ${host_xmake_file}
13337 if test -f ${srcdir}/config/$f
13338 then
13339 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13341 done
13343 # Conditionalize the makefile for this target machine.
13344 tmake_file_=
13345 for f in ${tmake_file}
13347 if test -f ${srcdir}/config/$f
13348 then
13349 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13351 done
13352 tmake_file="${tmake_file_}"
13354 # If the host doesn't support symlinks, modify CC in
13355 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
13356 # Otherwise, we can use "CC=$(CC)".
13357 rm -f symtest.tem
13358 case "$LN_S" in
13359 *-s*)
13360 cc_set_by_configure="\$(CC)"
13361 quoted_cc_set_by_configure="\$(CC)"
13362 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13363 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13366 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
13367 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
13368 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
13369 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
13371 esac
13373 # This is a terrible hack which will go away some day.
13374 host_cc_for_libada=${CC}
13377 out_object_file=`basename $out_file .c`.o
13379 tm_file_list="options.h"
13380 tm_include_list="options.h"
13381 for f in $tm_file; do
13382 case $f in
13383 defaults.h )
13384 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13385 tm_include_list="${tm_include_list} $f"
13388 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13389 tm_include_list="${tm_include_list} config/$f"
13391 esac
13392 done
13394 tm_p_file_list=
13395 tm_p_include_list=
13396 for f in $tm_p_file; do
13397 case $f in
13398 tm-preds.h )
13399 tm_p_file_list="${tm_p_file_list} $f"
13400 tm_p_include_list="${tm_p_include_list} $f"
13403 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13404 tm_p_include_list="${tm_p_include_list} config/$f"
13405 esac
13406 done
13408 xm_file_list=
13409 xm_include_list=
13410 for f in $xm_file; do
13411 case $f in
13412 ansidecl.h )
13413 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13414 xm_include_list="${xm_include_list} $f"
13416 auto-host.h )
13417 xm_file_list="${xm_file_list} $f"
13418 xm_include_list="${xm_include_list} $f"
13421 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13422 xm_include_list="${xm_include_list} config/$f"
13424 esac
13425 done
13427 host_xm_file_list=
13428 host_xm_include_list=
13429 for f in $host_xm_file; do
13430 case $f in
13431 ansidecl.h )
13432 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13433 host_xm_include_list="${host_xm_include_list} $f"
13435 auto-host.h )
13436 host_xm_file_list="${host_xm_file_list} $f"
13437 host_xm_include_list="${host_xm_include_list} $f"
13440 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13441 host_xm_include_list="${host_xm_include_list} config/$f"
13443 esac
13444 done
13446 build_xm_file_list=
13447 for f in $build_xm_file; do
13448 case $f in
13449 ansidecl.h )
13450 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13451 build_xm_include_list="${build_xm_include_list} $f"
13453 auto-build.h | auto-host.h )
13454 build_xm_file_list="${build_xm_file_list} $f"
13455 build_xm_include_list="${build_xm_include_list} $f"
13458 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13459 build_xm_include_list="${build_xm_include_list} config/$f"
13461 esac
13462 done
13464 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
13465 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13466 CROSS=
13467 ALL=all.internal
13468 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13470 if test "x$with_build_sysroot" != x; then
13471 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13472 else
13473 # This value is used, even on a native system, because
13474 # CROSS_SYSTEM_HEADER_DIR is just
13475 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13476 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13479 if test x$host != x$target
13480 then
13481 CROSS="-DCROSS_COMPILE"
13482 ALL=all.cross
13483 SYSTEM_HEADER_DIR=$build_system_header_dir
13484 case "$host","$target" in
13485 # Darwin crosses can use the host system's libraries and headers,
13486 # because of the fat library support. Of course, it must be the
13487 # same version of Darwin on both sides. Allow the user to
13488 # just say --target=foo-darwin without a version number to mean
13489 # "the version on this system".
13490 *-*-darwin*,*-*-darwin*)
13491 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13492 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13493 if test $hostos = $targetos -o $targetos = darwin ; then
13494 CROSS=
13495 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13496 with_headers=yes
13500 i?86-*-*,x86_64-*-* \
13501 | powerpc*-*-*,powerpc64*-*-*)
13502 CROSS="$CROSS -DNATIVE_CROSS" ;;
13503 esac
13504 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13505 SYSTEM_HEADER_DIR=$build_system_header_dir
13508 # If this is a cross-compiler that does not
13509 # have its own set of headers then define
13510 # inhibit_libc
13512 # If this is using newlib, without having the headers available now,
13513 # then define inhibit_libc in LIBGCC2_CFLAGS.
13514 # This prevents libgcc2 from containing any code which requires libc
13515 # support.
13516 inhibit_libc=false
13517 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13518 test x$with_newlib = xyes ; } &&
13519 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13520 inhibit_libc=true
13524 # When building gcc with a cross-compiler, we need to adjust things so
13525 # that the generator programs are still built with the native compiler.
13526 # Also, we cannot run fixincludes or fix-header.
13528 # These are the normal (build=host) settings:
13529 CC_FOR_BUILD='$(CC)'
13530 BUILD_CFLAGS='$(ALL_CFLAGS)'
13531 STMP_FIXINC=stmp-fixinc
13533 # Possibly disable fixproto, on a per-target basis.
13534 case ${use_fixproto} in
13536 STMP_FIXPROTO=
13538 yes)
13539 STMP_FIXPROTO=stmp-fixproto
13541 esac
13544 # And these apply if build != host, or we are generating coverage data
13545 if test x$build != x$host || test "x$coverage_flags" != x
13546 then
13547 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13549 if test "x$TARGET_SYSTEM_ROOT" = x; then
13550 if test "x$STMP_FIXPROTO" != x; then
13551 STMP_FIXPROTO=stmp-install-fixproto
13556 # Expand extra_headers to include complete path.
13557 # This substitutes for lots of t-* files.
13558 extra_headers_list=
13559 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13560 for file in ${extra_headers} ; do
13561 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13562 done
13564 # Define collect2 in Makefile.
13565 case $host_can_use_collect2 in
13566 no) collect2= ;;
13567 *) collect2='collect2$(exeext)' ;;
13568 esac
13571 # Add a definition of USE_COLLECT2 if system wants one.
13572 case $use_collect2 in
13573 no) use_collect2= ;;
13574 "") ;;
13576 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13577 xm_defines="${xm_defines} USE_COLLECT2"
13578 case $host_can_use_collect2 in
13580 { { $as_echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13581 $as_echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13582 { (exit 1); exit 1; }; }
13584 esac
13586 esac
13588 # ---------------------------
13589 # Assembler & linker features
13590 # ---------------------------
13592 # Identify the assembler which will work hand-in-glove with the newly
13593 # built GCC, so that we can examine its features. This is the assembler
13594 # which will be driven by the driver program.
13596 # If build != host, and we aren't building gas in-tree, we identify a
13597 # build->target assembler and hope that it will have the same features
13598 # as the host->target assembler we'll be using.
13599 in_tree_gas=no
13600 gcc_cv_as=
13601 gcc_cv_gas_major_version=
13602 gcc_cv_gas_minor_version=
13603 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13604 if test -x "$DEFAULT_ASSEMBLER"; then
13605 gcc_cv_as="$DEFAULT_ASSEMBLER"
13606 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13607 && test -f ../gas/Makefile \
13608 && test x$build = x$host; then
13609 # Single tree build which includes gas. We want to prefer it
13610 # over whatever linker top-level may have detected, since
13611 # we'll use what we're building after installation anyway.
13612 in_tree_gas=yes
13613 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13614 for f in $gcc_cv_as_bfd_srcdir/configure \
13615 $gcc_cv_as_gas_srcdir/configure \
13616 $gcc_cv_as_gas_srcdir/configure.in \
13617 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13618 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13619 if test x$gcc_cv_gas_version != x; then
13620 break
13622 done
13623 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13624 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13625 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13626 case $gcc_cv_gas_patch_version in
13627 "") gcc_cv_gas_patch_version="0" ;;
13628 esac
13629 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13630 + $gcc_cv_gas_minor_version \) \* 1000 \
13631 + $gcc_cv_gas_patch_version`
13633 gcc_cv_as=../gas/as-new$build_exeext
13634 in_tree_gas_is_elf=no
13635 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13636 || (grep 'obj_format = multi' ../gas/Makefile \
13637 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13638 then
13639 in_tree_gas_is_elf=yes
13641 elif test -x as$build_exeext; then
13642 # Build using assembler in the current directory.
13643 gcc_cv_as=./as$build_exeext
13647 # When searching for the assembler or linker, search the same directories
13648 # that the installed compiler will search. Else we may find the wrong
13649 # assembler or linker and lose. If we do not find a suitable binary,
13650 # then try the user's path.
13652 # Also note we have to check MD_EXEC_PREFIX before checking the user's path.
13653 if test "x$exec_prefix" = xNONE; then
13654 if test "x$prefix" = xNONE; then
13655 gcc_cv_tool_prefix=/usr/local
13656 else
13657 gcc_cv_tool_prefix=$prefix
13659 else
13660 gcc_cv_tool_prefix=$exec_prefix
13663 if test x$host = x$build; then
13664 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
13665 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
13666 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
13667 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
13668 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
13669 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
13670 else
13671 gcc_cv_tool_dirs=
13674 if test x$build = x$target; then
13675 # Rummage through tm_files looking for MD_EXEC_PREFIX
13676 md_dirs=
13677 for f in ${tm_file_list}; do
13678 if test -f $f; then
13679 if grep '^#[ ]*undef[ ]*MD_EXEC_PREFIX' $f > /dev/null; then
13680 md_dirs=
13682 md_dirs="$md_dirs "`sed -n -e 's@^#[ ]*define[ ]*MD_EXEC_PREFIX[ ]*"\(.*\)/"@\1@p' < $f`
13684 done
13685 for f in ${md_dirs}; do
13686 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
13687 done
13693 exec 6>/dev/null
13695 # First try the environment variables. Handle full paths or basenames.
13696 if test "x$gcc_cv_as" = x && test -n "$AS_FOR_TARGET"; then
13697 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13698 set dummy $AS_FOR_TARGET; ac_word=$2
13699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13700 $as_echo_n "checking for $ac_word... " >&6; }
13701 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13702 $as_echo_n "(cached) " >&6
13703 else
13704 case $gcc_cv_as in
13705 [\\/]* | ?:[\\/]*)
13706 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13710 for as_dir in $PATH
13712 IFS=$as_save_IFS
13713 test -z "$as_dir" && as_dir=.
13714 for ac_exec_ext in '' $ac_executable_extensions; do
13715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13716 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13718 break 2
13720 done
13721 done
13722 IFS=$as_save_IFS
13725 esac
13727 gcc_cv_as=$ac_cv_path_gcc_cv_as
13728 if test -n "$gcc_cv_as"; then
13729 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13730 $as_echo "$gcc_cv_as" >&6; }
13731 else
13732 { $as_echo "$as_me:$LINENO: result: no" >&5
13733 $as_echo "no" >&6; }
13738 if test "x$gcc_cv_as" = x && test -n "$AS" && test x$host = x$target; then
13739 # Extract the first word of "$AS", so it can be a program name with args.
13740 set dummy $AS; ac_word=$2
13741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13742 $as_echo_n "checking for $ac_word... " >&6; }
13743 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13744 $as_echo_n "(cached) " >&6
13745 else
13746 case $gcc_cv_as in
13747 [\\/]* | ?:[\\/]*)
13748 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13758 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13760 break 2
13762 done
13763 done
13764 IFS=$as_save_IFS
13767 esac
13769 gcc_cv_as=$ac_cv_path_gcc_cv_as
13770 if test -n "$gcc_cv_as"; then
13771 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13772 $as_echo "$gcc_cv_as" >&6; }
13773 else
13774 { $as_echo "$as_me:$LINENO: result: no" >&5
13775 $as_echo "no" >&6; }
13781 if test "x$gcc_cv_as" = x; then
13782 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13783 # is empty.
13784 if test "x$gcc_cv_tool_dirs" = x; then
13785 gcc_cv_as=
13786 else
13787 for ac_prog in as
13789 # Extract the first word of "$ac_prog", so it can be a program name with args.
13790 set dummy $ac_prog; ac_word=$2
13791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13792 $as_echo_n "checking for $ac_word... " >&6; }
13793 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13794 $as_echo_n "(cached) " >&6
13795 else
13796 case $gcc_cv_as in
13797 [\\/]* | ?:[\\/]*)
13798 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $gcc_cv_tool_dirs
13804 IFS=$as_save_IFS
13805 test -z "$as_dir" && as_dir=.
13806 for ac_exec_ext in '' $ac_executable_extensions; do
13807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13808 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13810 break 2
13812 done
13813 done
13814 IFS=$as_save_IFS
13817 esac
13819 gcc_cv_as=$ac_cv_path_gcc_cv_as
13820 if test -n "$gcc_cv_as"; then
13821 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13822 $as_echo "$gcc_cv_as" >&6; }
13823 else
13824 { $as_echo "$as_me:$LINENO: result: no" >&5
13825 $as_echo "no" >&6; }
13829 test -n "$gcc_cv_as" && break
13830 done
13834 if test "x$gcc_cv_as" = x; then
13835 # If the loop above did not find a tool, then use whatever
13836 # one we can find in the users's path. We are looking for a
13837 # ${build} -> ${target} tool.
13838 if test "x$program_prefix" != xNONE; then
13839 default_tool_name=${program_prefix}as
13840 elif test x$build != x$host && test x$build != x$target; then
13841 default_tool_name=${target_noncanonical}-as
13842 else
13843 default_tool_name=`echo as | sed "${program_transform_name}"`
13845 for ac_prog in $default_tool_name
13847 # Extract the first word of "$ac_prog", so it can be a program name with args.
13848 set dummy $ac_prog; ac_word=$2
13849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13850 $as_echo_n "checking for $ac_word... " >&6; }
13851 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13852 $as_echo_n "(cached) " >&6
13853 else
13854 case $gcc_cv_as in
13855 [\\/]* | ?:[\\/]*)
13856 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13860 for as_dir in $PATH
13862 IFS=$as_save_IFS
13863 test -z "$as_dir" && as_dir=.
13864 for ac_exec_ext in '' $ac_executable_extensions; do
13865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13866 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13868 break 2
13870 done
13871 done
13872 IFS=$as_save_IFS
13875 esac
13877 gcc_cv_as=$ac_cv_path_gcc_cv_as
13878 if test -n "$gcc_cv_as"; then
13879 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13880 $as_echo "$gcc_cv_as" >&6; }
13881 else
13882 { $as_echo "$as_me:$LINENO: result: no" >&5
13883 $as_echo "no" >&6; }
13887 test -n "$gcc_cv_as" && break
13888 done
13889 test -n "$gcc_cv_as" || gcc_cv_as="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13892 test "$silent" != yes && exec 6>&1
13894 ORIGINAL_AS_FOR_TARGET="$gcc_cv_as"
13896 { $as_echo "$as_me:$LINENO: checking what assembler to use" >&5
13897 $as_echo_n "checking what assembler to use... " >&6; }
13898 case $in_tree_gas in
13899 yes)
13900 { $as_echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13901 $as_echo "\"newly built gas\"" >&6; }
13904 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13905 $as_echo "$gcc_cv_as" >&6; }
13907 esac
13909 # Identify the linker which will work hand-in-glove with the newly
13910 # built GCC, so that we can examine its features. This is the linker
13911 # which will be driven by the driver program.
13913 # If build != host, and we aren't building gas in-tree, we identify a
13914 # build->target linker and hope that it will have the same features
13915 # as the host->target linker we'll be using.
13916 in_tree_ld=no
13917 gcc_cv_ld=
13918 gcc_cv_gld_major_version=
13919 gcc_cv_gld_minor_version=
13920 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13921 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13922 if test -x "$DEFAULT_LINKER"; then
13923 gcc_cv_ld="$DEFAULT_LINKER"
13924 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13925 && test -f ../ld/Makefile \
13926 && test x$build = x$host; then
13927 # Single tree build which includes ld. We want to prefer it
13928 # over whatever linker top-level may have detected, since
13929 # we'll use what we're building after installation anyway.
13930 in_tree_ld=yes
13931 in_tree_ld_is_elf=no
13932 if (grep 'EMUL = .*elf' ../ld/Makefile \
13933 || grep 'EMUL = .*linux' ../ld/Makefile \
13934 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13935 in_tree_ld_is_elf=yes
13937 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
13939 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13940 if test x$gcc_cv_gld_version != x; then
13941 break
13943 done
13944 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13945 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13946 gcc_cv_ld=../ld/ld-new$build_exeext
13947 elif test -x collect-ld$build_exeext; then
13948 # Build using linker in the current directory.
13949 gcc_cv_ld=./collect-ld$build_exeext
13956 exec 6>/dev/null
13958 # First try the environment variables. Handle full paths or basenames.
13959 if test "x$gcc_cv_ld" = x && test -n "$LD_FOR_TARGET"; then
13960 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13961 set dummy $LD_FOR_TARGET; ac_word=$2
13962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13963 $as_echo_n "checking for $ac_word... " >&6; }
13964 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13965 $as_echo_n "(cached) " >&6
13966 else
13967 case $gcc_cv_ld in
13968 [\\/]* | ?:[\\/]*)
13969 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13973 for as_dir in $PATH
13975 IFS=$as_save_IFS
13976 test -z "$as_dir" && as_dir=.
13977 for ac_exec_ext in '' $ac_executable_extensions; do
13978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13979 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13981 break 2
13983 done
13984 done
13985 IFS=$as_save_IFS
13988 esac
13990 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13991 if test -n "$gcc_cv_ld"; then
13992 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13993 $as_echo "$gcc_cv_ld" >&6; }
13994 else
13995 { $as_echo "$as_me:$LINENO: result: no" >&5
13996 $as_echo "no" >&6; }
14001 if test "x$gcc_cv_ld" = x && test -n "$LD" && test x$host = x$target; then
14002 # Extract the first word of "$LD", so it can be a program name with args.
14003 set dummy $LD; ac_word=$2
14004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14005 $as_echo_n "checking for $ac_word... " >&6; }
14006 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
14007 $as_echo_n "(cached) " >&6
14008 else
14009 case $gcc_cv_ld in
14010 [\\/]* | ?:[\\/]*)
14011 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
14014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14015 for as_dir in $PATH
14017 IFS=$as_save_IFS
14018 test -z "$as_dir" && as_dir=.
14019 for ac_exec_ext in '' $ac_executable_extensions; do
14020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14021 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
14022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14023 break 2
14025 done
14026 done
14027 IFS=$as_save_IFS
14030 esac
14032 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
14033 if test -n "$gcc_cv_ld"; then
14034 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14035 $as_echo "$gcc_cv_ld" >&6; }
14036 else
14037 { $as_echo "$as_me:$LINENO: result: no" >&5
14038 $as_echo "no" >&6; }
14044 if test "x$gcc_cv_ld" = x; then
14045 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
14046 # is empty.
14047 if test "x$gcc_cv_tool_dirs" = x; then
14048 gcc_cv_ld=
14049 else
14050 for ac_prog in ld
14052 # Extract the first word of "$ac_prog", so it can be a program name with args.
14053 set dummy $ac_prog; ac_word=$2
14054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14055 $as_echo_n "checking for $ac_word... " >&6; }
14056 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
14057 $as_echo_n "(cached) " >&6
14058 else
14059 case $gcc_cv_ld in
14060 [\\/]* | ?:[\\/]*)
14061 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
14064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14065 for as_dir in $gcc_cv_tool_dirs
14067 IFS=$as_save_IFS
14068 test -z "$as_dir" && as_dir=.
14069 for ac_exec_ext in '' $ac_executable_extensions; do
14070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14071 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
14072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14073 break 2
14075 done
14076 done
14077 IFS=$as_save_IFS
14080 esac
14082 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
14083 if test -n "$gcc_cv_ld"; then
14084 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14085 $as_echo "$gcc_cv_ld" >&6; }
14086 else
14087 { $as_echo "$as_me:$LINENO: result: no" >&5
14088 $as_echo "no" >&6; }
14092 test -n "$gcc_cv_ld" && break
14093 done
14097 if test "x$gcc_cv_ld" = x; then
14098 # If the loop above did not find a tool, then use whatever
14099 # one we can find in the users's path. We are looking for a
14100 # ${build} -> ${target} tool.
14101 if test "x$program_prefix" != xNONE; then
14102 default_tool_name=${program_prefix}ld
14103 elif test x$build != x$host && test x$build != x$target; then
14104 default_tool_name=${target_noncanonical}-ld
14105 else
14106 default_tool_name=`echo ld | sed "${program_transform_name}"`
14108 for ac_prog in $default_tool_name
14110 # Extract the first word of "$ac_prog", so it can be a program name with args.
14111 set dummy $ac_prog; ac_word=$2
14112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14113 $as_echo_n "checking for $ac_word... " >&6; }
14114 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
14115 $as_echo_n "(cached) " >&6
14116 else
14117 case $gcc_cv_ld in
14118 [\\/]* | ?:[\\/]*)
14119 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
14122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14123 for as_dir in $PATH
14125 IFS=$as_save_IFS
14126 test -z "$as_dir" && as_dir=.
14127 for ac_exec_ext in '' $ac_executable_extensions; do
14128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14129 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
14130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14131 break 2
14133 done
14134 done
14135 IFS=$as_save_IFS
14138 esac
14140 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
14141 if test -n "$gcc_cv_ld"; then
14142 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14143 $as_echo "$gcc_cv_ld" >&6; }
14144 else
14145 { $as_echo "$as_me:$LINENO: result: no" >&5
14146 $as_echo "no" >&6; }
14150 test -n "$gcc_cv_ld" && break
14151 done
14152 test -n "$gcc_cv_ld" || gcc_cv_ld="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
14155 test "$silent" != yes && exec 6>&1
14157 ORIGINAL_LD_FOR_TARGET="$gcc_cv_ld"
14159 { $as_echo "$as_me:$LINENO: checking what linker to use" >&5
14160 $as_echo_n "checking what linker to use... " >&6; }
14161 case $in_tree_ld in
14162 yes)
14163 { $as_echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
14164 $as_echo "\"newly built ld\"" >&6; }
14167 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14168 $as_echo "$gcc_cv_ld" >&6; }
14170 esac
14172 # Figure out what nm we will be using.
14173 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
14174 in_tree_nm=no
14175 gcc_cv_nm=
14176 if test -f $gcc_cv_binutils_srcdir/configure.in \
14177 && test -f ../binutils/Makefile; then
14178 # Single tree build which includes binutils.
14179 in_tree_nm=yes
14180 gcc_cv_nm=../binutils/nm-new$build_exeext
14181 elif test -x nm$build_exeext; then
14182 gcc_cv_nm=./nm$build_exeext
14189 exec 6>/dev/null
14191 # First try the environment variables. Handle full paths or basenames.
14192 if test "x$gcc_cv_nm" = x && test -n "$NM_FOR_TARGET"; then
14193 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
14194 set dummy $NM_FOR_TARGET; ac_word=$2
14195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14196 $as_echo_n "checking for $ac_word... " >&6; }
14197 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14198 $as_echo_n "(cached) " >&6
14199 else
14200 case $gcc_cv_nm in
14201 [\\/]* | ?:[\\/]*)
14202 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14206 for as_dir in $PATH
14208 IFS=$as_save_IFS
14209 test -z "$as_dir" && as_dir=.
14210 for ac_exec_ext in '' $ac_executable_extensions; do
14211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14212 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14214 break 2
14216 done
14217 done
14218 IFS=$as_save_IFS
14221 esac
14223 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14224 if test -n "$gcc_cv_nm"; then
14225 { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14226 $as_echo "$gcc_cv_nm" >&6; }
14227 else
14228 { $as_echo "$as_me:$LINENO: result: no" >&5
14229 $as_echo "no" >&6; }
14234 if test "x$gcc_cv_nm" = x && test -n "$NM" && test x$host = x$target; then
14235 # Extract the first word of "$NM", so it can be a program name with args.
14236 set dummy $NM; ac_word=$2
14237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14238 $as_echo_n "checking for $ac_word... " >&6; }
14239 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14240 $as_echo_n "(cached) " >&6
14241 else
14242 case $gcc_cv_nm in
14243 [\\/]* | ?:[\\/]*)
14244 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248 for as_dir in $PATH
14250 IFS=$as_save_IFS
14251 test -z "$as_dir" && as_dir=.
14252 for ac_exec_ext in '' $ac_executable_extensions; do
14253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14254 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14256 break 2
14258 done
14259 done
14260 IFS=$as_save_IFS
14263 esac
14265 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14266 if test -n "$gcc_cv_nm"; then
14267 { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14268 $as_echo "$gcc_cv_nm" >&6; }
14269 else
14270 { $as_echo "$as_me:$LINENO: result: no" >&5
14271 $as_echo "no" >&6; }
14277 if test "x$gcc_cv_nm" = x; then
14278 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
14279 # is empty.
14280 if test "x$gcc_cv_tool_dirs" = x; then
14281 gcc_cv_nm=
14282 else
14283 for ac_prog in nm
14285 # Extract the first word of "$ac_prog", so it can be a program name with args.
14286 set dummy $ac_prog; ac_word=$2
14287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14288 $as_echo_n "checking for $ac_word... " >&6; }
14289 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14290 $as_echo_n "(cached) " >&6
14291 else
14292 case $gcc_cv_nm in
14293 [\\/]* | ?:[\\/]*)
14294 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $gcc_cv_tool_dirs
14300 IFS=$as_save_IFS
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14304 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14306 break 2
14308 done
14309 done
14310 IFS=$as_save_IFS
14313 esac
14315 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14316 if test -n "$gcc_cv_nm"; then
14317 { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14318 $as_echo "$gcc_cv_nm" >&6; }
14319 else
14320 { $as_echo "$as_me:$LINENO: result: no" >&5
14321 $as_echo "no" >&6; }
14325 test -n "$gcc_cv_nm" && break
14326 done
14330 if test "x$gcc_cv_nm" = x; then
14331 # If the loop above did not find a tool, then use whatever
14332 # one we can find in the users's path. We are looking for a
14333 # ${build} -> ${target} tool.
14334 if test "x$program_prefix" != xNONE; then
14335 default_tool_name=${program_prefix}nm
14336 elif test x$build != x$host && test x$build != x$target; then
14337 default_tool_name=${target_noncanonical}-nm
14338 else
14339 default_tool_name=`echo nm | sed "${program_transform_name}"`
14341 for ac_prog in $default_tool_name
14343 # Extract the first word of "$ac_prog", so it can be a program name with args.
14344 set dummy $ac_prog; ac_word=$2
14345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14346 $as_echo_n "checking for $ac_word... " >&6; }
14347 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14348 $as_echo_n "(cached) " >&6
14349 else
14350 case $gcc_cv_nm in
14351 [\\/]* | ?:[\\/]*)
14352 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14356 for as_dir in $PATH
14358 IFS=$as_save_IFS
14359 test -z "$as_dir" && as_dir=.
14360 for ac_exec_ext in '' $ac_executable_extensions; do
14361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14362 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14364 break 2
14366 done
14367 done
14368 IFS=$as_save_IFS
14371 esac
14373 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14374 if test -n "$gcc_cv_nm"; then
14375 { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14376 $as_echo "$gcc_cv_nm" >&6; }
14377 else
14378 { $as_echo "$as_me:$LINENO: result: no" >&5
14379 $as_echo "no" >&6; }
14383 test -n "$gcc_cv_nm" && break
14384 done
14385 test -n "$gcc_cv_nm" || gcc_cv_nm="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
14388 test "$silent" != yes && exec 6>&1
14390 ORIGINAL_NM_FOR_TARGET="$gcc_cv_nm"
14392 { $as_echo "$as_me:$LINENO: checking what nm to use" >&5
14393 $as_echo_n "checking what nm to use... " >&6; }
14394 case $in_tree_nm in
14395 yes) { $as_echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
14396 $as_echo "\"newly built nm\"" >&6; } ;;
14397 no) { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14398 $as_echo "$gcc_cv_nm" >&6; } ;;
14399 esac
14401 # Figure out what objdump we will be using.
14402 in_tree_objdump=no
14403 gcc_cv_objdump=
14404 if test -f $gcc_cv_binutils_srcdir/configure.in \
14405 && test -f ../binutils/Makefile; then
14406 # Single tree build which includes binutils.
14407 in_tree_objdump=yes
14408 gcc_cv_objdump=../binutils/objdump$build_exeext
14409 elif test -x objdump$build_exeext; then
14410 gcc_cv_objdump=./objdump$build_exeext
14417 exec 6>/dev/null
14419 # First try the environment variables. Handle full paths or basenames.
14420 if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP_FOR_TARGET"; then
14421 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14422 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
14423 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14424 $as_echo_n "checking for $ac_word... " >&6; }
14425 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14426 $as_echo_n "(cached) " >&6
14427 else
14428 case $gcc_cv_objdump in
14429 [\\/]* | ?:[\\/]*)
14430 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14436 IFS=$as_save_IFS
14437 test -z "$as_dir" && as_dir=.
14438 for ac_exec_ext in '' $ac_executable_extensions; do
14439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14440 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14442 break 2
14444 done
14445 done
14446 IFS=$as_save_IFS
14449 esac
14451 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14452 if test -n "$gcc_cv_objdump"; then
14453 { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14454 $as_echo "$gcc_cv_objdump" >&6; }
14455 else
14456 { $as_echo "$as_me:$LINENO: result: no" >&5
14457 $as_echo "no" >&6; }
14462 if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP" && test x$host = x$target; then
14463 # Extract the first word of "$OBJDUMP", so it can be a program name with args.
14464 set dummy $OBJDUMP; ac_word=$2
14465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14466 $as_echo_n "checking for $ac_word... " >&6; }
14467 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14468 $as_echo_n "(cached) " >&6
14469 else
14470 case $gcc_cv_objdump in
14471 [\\/]* | ?:[\\/]*)
14472 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14476 for as_dir in $PATH
14478 IFS=$as_save_IFS
14479 test -z "$as_dir" && as_dir=.
14480 for ac_exec_ext in '' $ac_executable_extensions; do
14481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14482 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14483 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14484 break 2
14486 done
14487 done
14488 IFS=$as_save_IFS
14491 esac
14493 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14494 if test -n "$gcc_cv_objdump"; then
14495 { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14496 $as_echo "$gcc_cv_objdump" >&6; }
14497 else
14498 { $as_echo "$as_me:$LINENO: result: no" >&5
14499 $as_echo "no" >&6; }
14505 if test "x$gcc_cv_objdump" = x; then
14506 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
14507 # is empty.
14508 if test "x$gcc_cv_tool_dirs" = x; then
14509 gcc_cv_objdump=
14510 else
14511 for ac_prog in objdump
14513 # Extract the first word of "$ac_prog", so it can be a program name with args.
14514 set dummy $ac_prog; ac_word=$2
14515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14516 $as_echo_n "checking for $ac_word... " >&6; }
14517 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14518 $as_echo_n "(cached) " >&6
14519 else
14520 case $gcc_cv_objdump in
14521 [\\/]* | ?:[\\/]*)
14522 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14526 for as_dir in $gcc_cv_tool_dirs
14528 IFS=$as_save_IFS
14529 test -z "$as_dir" && as_dir=.
14530 for ac_exec_ext in '' $ac_executable_extensions; do
14531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14532 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14534 break 2
14536 done
14537 done
14538 IFS=$as_save_IFS
14541 esac
14543 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14544 if test -n "$gcc_cv_objdump"; then
14545 { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14546 $as_echo "$gcc_cv_objdump" >&6; }
14547 else
14548 { $as_echo "$as_me:$LINENO: result: no" >&5
14549 $as_echo "no" >&6; }
14553 test -n "$gcc_cv_objdump" && break
14554 done
14558 if test "x$gcc_cv_objdump" = x; then
14559 # If the loop above did not find a tool, then use whatever
14560 # one we can find in the users's path. We are looking for a
14561 # ${build} -> ${target} tool.
14562 if test "x$program_prefix" != xNONE; then
14563 default_tool_name=${program_prefix}objdump
14564 elif test x$build != x$host && test x$build != x$target; then
14565 default_tool_name=${target_noncanonical}-objdump
14566 else
14567 default_tool_name=`echo objdump | sed "${program_transform_name}"`
14569 for ac_prog in $default_tool_name
14571 # Extract the first word of "$ac_prog", so it can be a program name with args.
14572 set dummy $ac_prog; ac_word=$2
14573 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14574 $as_echo_n "checking for $ac_word... " >&6; }
14575 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14576 $as_echo_n "(cached) " >&6
14577 else
14578 case $gcc_cv_objdump in
14579 [\\/]* | ?:[\\/]*)
14580 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14584 for as_dir in $PATH
14586 IFS=$as_save_IFS
14587 test -z "$as_dir" && as_dir=.
14588 for ac_exec_ext in '' $ac_executable_extensions; do
14589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14590 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14592 break 2
14594 done
14595 done
14596 IFS=$as_save_IFS
14599 esac
14601 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14602 if test -n "$gcc_cv_objdump"; then
14603 { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14604 $as_echo "$gcc_cv_objdump" >&6; }
14605 else
14606 { $as_echo "$as_me:$LINENO: result: no" >&5
14607 $as_echo "no" >&6; }
14611 test -n "$gcc_cv_objdump" && break
14612 done
14613 test -n "$gcc_cv_objdump" || gcc_cv_objdump="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
14616 test "$silent" != yes && exec 6>&1
14618 ORIGINAL_OBJDUMP_FOR_TARGET="$gcc_cv_objdump"
14620 { $as_echo "$as_me:$LINENO: checking what objdump to use" >&5
14621 $as_echo_n "checking what objdump to use... " >&6; }
14622 case $in_tree_objdump in
14623 yes) { $as_echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
14624 $as_echo "\"newly built objdump\"" >&6; } ;;
14625 no) { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14626 $as_echo "$gcc_cv_objdump" >&6; } ;;
14627 esac
14629 # Figure out what assembler alignment features are present.
14630 { $as_echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14631 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
14632 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14633 $as_echo_n "(cached) " >&6
14634 else
14635 gcc_cv_as_balign_and_p2align=no
14636 if test $in_tree_gas = yes; then
14637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14638 then gcc_cv_as_balign_and_p2align=yes
14640 elif test x$gcc_cv_as != x; then
14641 echo '.balign 4
14642 .p2align 2' > conftest.s
14643 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }
14649 then
14650 gcc_cv_as_balign_and_p2align=yes
14651 else
14652 echo "configure: failed program was" >&5
14653 cat conftest.s >&5
14655 rm -f conftest.o conftest.s
14658 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14659 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
14660 if test $gcc_cv_as_balign_and_p2align = yes; then
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14664 _ACEOF
14668 { $as_echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14669 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
14670 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14671 $as_echo_n "(cached) " >&6
14672 else
14673 gcc_cv_as_max_skip_p2align=no
14674 if test $in_tree_gas = yes; then
14675 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14676 then gcc_cv_as_max_skip_p2align=yes
14678 elif test x$gcc_cv_as != x; then
14679 echo '.p2align 4,,7' > conftest.s
14680 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14683 ac_status=$?
14684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }
14686 then
14687 gcc_cv_as_max_skip_p2align=yes
14688 else
14689 echo "configure: failed program was" >&5
14690 cat conftest.s >&5
14692 rm -f conftest.o conftest.s
14695 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14696 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
14697 if test $gcc_cv_as_max_skip_p2align = yes; then
14699 cat >>confdefs.h <<\_ACEOF
14700 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14701 _ACEOF
14705 { $as_echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14706 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
14707 if test "${gcc_cv_as_subsection_m1+set}" = set; then
14708 $as_echo_n "(cached) " >&6
14709 else
14710 gcc_cv_as_subsection_m1=no
14711 if test $in_tree_gas = yes; then
14712 if test $in_tree_gas_is_elf = yes \
14713 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14714 then gcc_cv_as_subsection_m1=yes
14716 elif test x$gcc_cv_as != x; then
14717 echo 'conftest_label1: .word 0
14718 .subsection -1
14719 conftest_label2: .word 0
14720 .previous' > conftest.s
14721 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14724 ac_status=$?
14725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }
14727 then
14728 if test x$gcc_cv_nm != x; then
14729 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
14730 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
14731 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
14732 then :
14733 else gcc_cv_as_subsection_m1=yes
14735 rm -f conftest.nm1 conftest.nm2
14737 else
14738 echo "configure: failed program was" >&5
14739 cat conftest.s >&5
14741 rm -f conftest.o conftest.s
14744 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14745 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
14746 if test $gcc_cv_as_subsection_m1 = yes; then
14748 cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_GAS_SUBSECTION_ORDERING 1
14750 _ACEOF
14754 { $as_echo "$as_me:$LINENO: checking assembler for .weak" >&5
14755 $as_echo_n "checking assembler for .weak... " >&6; }
14756 if test "${gcc_cv_as_weak+set}" = set; then
14757 $as_echo_n "(cached) " >&6
14758 else
14759 gcc_cv_as_weak=no
14760 if test $in_tree_gas = yes; then
14761 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14762 then gcc_cv_as_weak=yes
14764 elif test x$gcc_cv_as != x; then
14765 echo ' .weak foobar' > conftest.s
14766 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14769 ac_status=$?
14770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; }
14772 then
14773 gcc_cv_as_weak=yes
14774 else
14775 echo "configure: failed program was" >&5
14776 cat conftest.s >&5
14778 rm -f conftest.o conftest.s
14781 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14782 $as_echo "$gcc_cv_as_weak" >&6; }
14783 if test $gcc_cv_as_weak = yes; then
14785 cat >>confdefs.h <<\_ACEOF
14786 #define HAVE_GAS_WEAK 1
14787 _ACEOF
14791 { $as_echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14792 $as_echo_n "checking assembler for .weakref... " >&6; }
14793 if test "${gcc_cv_as_weakref+set}" = set; then
14794 $as_echo_n "(cached) " >&6
14795 else
14796 gcc_cv_as_weakref=no
14797 if test $in_tree_gas = yes; then
14798 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14799 then gcc_cv_as_weakref=yes
14801 elif test x$gcc_cv_as != x; then
14802 echo ' .weakref foobar, barfnot' > conftest.s
14803 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }
14809 then
14810 gcc_cv_as_weakref=yes
14811 else
14812 echo "configure: failed program was" >&5
14813 cat conftest.s >&5
14815 rm -f conftest.o conftest.s
14818 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14819 $as_echo "$gcc_cv_as_weakref" >&6; }
14820 if test $gcc_cv_as_weakref = yes; then
14822 cat >>confdefs.h <<\_ACEOF
14823 #define HAVE_GAS_WEAKREF 1
14824 _ACEOF
14828 { $as_echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14829 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
14830 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14831 $as_echo_n "(cached) " >&6
14832 else
14833 gcc_cv_as_nsubspa_comdat=no
14834 if test $in_tree_gas = yes; then
14835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14836 then gcc_cv_as_nsubspa_comdat=yes
14838 elif test x$gcc_cv_as != x; then
14839 echo ' .SPACE $TEXT$
14840 .NSUBSPA $CODE$,COMDAT' > conftest.s
14841 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14844 ac_status=$?
14845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }
14847 then
14848 gcc_cv_as_nsubspa_comdat=yes
14849 else
14850 echo "configure: failed program was" >&5
14851 cat conftest.s >&5
14853 rm -f conftest.o conftest.s
14856 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14857 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
14858 if test $gcc_cv_as_nsubspa_comdat = yes; then
14860 cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_GAS_NSUBSPA_COMDAT 1
14862 _ACEOF
14866 # .hidden needs to be supported in both the assembler and the linker,
14867 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14868 # This is irritatingly difficult to feature test for; we have to check the
14869 # date string after the version number. If we've got an in-tree
14870 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14871 # to be safe.
14872 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14873 { $as_echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14874 $as_echo_n "checking assembler for .hidden... " >&6; }
14875 if test "${gcc_cv_as_hidden+set}" = set; then
14876 $as_echo_n "(cached) " >&6
14877 else
14878 gcc_cv_as_hidden=no
14879 if test $in_tree_gas = yes; then
14880 if test $in_tree_gas_is_elf = yes \
14881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14882 then gcc_cv_as_hidden=yes
14884 elif test x$gcc_cv_as != x; then
14885 echo ' .hidden foobar
14886 foobar:' > conftest.s
14887 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }
14893 then
14894 gcc_cv_as_hidden=yes
14895 else
14896 echo "configure: failed program was" >&5
14897 cat conftest.s >&5
14899 rm -f conftest.o conftest.s
14902 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14903 $as_echo "$gcc_cv_as_hidden" >&6; }
14906 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14907 if echo "$ld_ver" | grep GNU > /dev/null; then
14908 ld_vers=`echo $ld_ver | sed -n \
14909 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p' \
14910 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14911 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14912 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14913 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
14914 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
14915 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14916 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14917 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14920 { $as_echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14921 $as_echo_n "checking linker for .hidden support... " >&6; }
14922 if test "${gcc_cv_ld_hidden+set}" = set; then
14923 $as_echo_n "(cached) " >&6
14924 else
14925 if test $in_tree_ld = yes ; then
14926 gcc_cv_ld_hidden=no
14927 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
14928 && test $in_tree_ld_is_elf = yes; then
14929 gcc_cv_ld_hidden=yes
14931 else
14932 gcc_cv_ld_hidden=yes
14933 if echo "$ld_ver" | grep GNU > /dev/null; then
14934 if test 0"$ld_date" -lt 20020404; then
14935 if test -n "$ld_date"; then
14936 # If there was date string, but was earlier than 2002-04-04, fail
14937 gcc_cv_ld_hidden=no
14938 elif test -z "$ld_vers"; then
14939 # If there was no date string nor ld version number, something is wrong
14940 gcc_cv_ld_hidden=no
14941 else
14942 test -z "$ld_vers_patch" && ld_vers_patch=0
14943 if test "$ld_vers_major" -lt 2; then
14944 gcc_cv_ld_hidden=no
14945 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14946 gcc_cv_ld_hidden="no"
14947 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14948 gcc_cv_ld_hidden=no
14952 else
14953 case "${target}" in
14954 hppa64*-*-hpux* | ia64*-*-hpux*)
14955 gcc_cv_ld_hidden=yes
14958 gcc_cv_ld_hidden=no
14960 esac
14964 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14965 $as_echo "$gcc_cv_ld_hidden" >&6; }
14966 libgcc_visibility=no
14969 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14970 libgcc_visibility=yes
14972 cat >>confdefs.h <<\_ACEOF
14973 #define HAVE_GAS_HIDDEN 1
14974 _ACEOF
14978 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14979 { $as_echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14980 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
14981 if test "${gcc_cv_as_leb128+set}" = set; then
14982 $as_echo_n "(cached) " >&6
14983 else
14984 gcc_cv_as_leb128=no
14985 if test $in_tree_gas = yes; then
14986 if test $in_tree_gas_is_elf = yes \
14987 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14988 then gcc_cv_as_leb128=yes
14990 elif test x$gcc_cv_as != x; then
14991 echo ' .data
14992 .uleb128 L2 - L1
14994 .uleb128 1280
14995 .sleb128 -1010
14996 L2:' > conftest.s
14997 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }
15003 then
15004 # GAS versions before 2.11 do not support uleb128,
15005 # despite appearing to.
15006 # ??? There exists an elf-specific test that will crash
15007 # the assembler. Perhaps it's better to figure out whether
15008 # arbitrary sections are supported and try the test.
15009 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
15010 if echo "$as_ver" | grep GNU > /dev/null; then
15011 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
15012 as_major=`echo $as_ver | sed 's/\..*//'`
15013 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
15014 if test $as_major -eq 2 && test $as_minor -lt 11
15015 then :
15016 else gcc_cv_as_leb128=yes
15019 else
15020 echo "configure: failed program was" >&5
15021 cat conftest.s >&5
15023 rm -f conftest.o conftest.s
15026 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
15027 $as_echo "$gcc_cv_as_leb128" >&6; }
15028 if test $gcc_cv_as_leb128 = yes; then
15030 cat >>confdefs.h <<\_ACEOF
15031 #define HAVE_AS_LEB128 1
15032 _ACEOF
15036 # GAS versions up to and including 2.11.0 may mis-optimize
15037 # .eh_frame data.
15038 { $as_echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
15039 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
15040 if test "${gcc_cv_as_eh_frame+set}" = set; then
15041 $as_echo_n "(cached) " >&6
15042 else
15043 gcc_cv_as_eh_frame=no
15044 if test $in_tree_gas = yes; then
15045 if test $in_tree_gas_is_elf = yes \
15046 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15047 then gcc_cv_as_eh_frame=yes
15049 elif test x$gcc_cv_as != x; then
15050 echo ' .text
15051 .LFB1:
15052 .4byte 0
15053 .L1:
15054 .4byte 0
15055 .LFE1:
15056 .section .eh_frame,"aw",@progbits
15057 __FRAME_BEGIN__:
15058 .4byte .LECIE1-.LSCIE1
15059 .LSCIE1:
15060 .4byte 0x0
15061 .byte 0x1
15062 .ascii "z\0"
15063 .byte 0x1
15064 .byte 0x78
15065 .byte 0x1a
15066 .byte 0x0
15067 .byte 0x4
15068 .4byte 1
15069 .p2align 1
15070 .LECIE1:
15071 .LSFDE1:
15072 .4byte .LEFDE1-.LASFDE1
15073 .LASFDE1:
15074 .4byte .LASFDE1-__FRAME_BEGIN__
15075 .4byte .LFB1
15076 .4byte .LFE1-.LFB1
15077 .byte 0x4
15078 .4byte .LFE1-.LFB1
15079 .byte 0x4
15080 .4byte .L1-.LFB1
15081 .LEFDE1:' > conftest.s
15082 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }
15088 then
15089 cat > conftest.lit <<EOF
15090 0000 10000000 00000000 017a0001 781a0004 .........z..x...
15091 0010 01000000 12000000 18000000 00000000 ................
15092 0020 08000000 04080000 0044 .........D
15094 cat > conftest.big <<EOF
15095 0000 00000010 00000000 017a0001 781a0004 .........z..x...
15096 0010 00000001 00000012 00000018 00000000 ................
15097 0020 00000008 04000000 0844 .........D
15099 # If the assembler didn't choke, and we can objdump,
15100 # and we got the correct data, then succeed.
15101 if test x$gcc_cv_objdump != x \
15102 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
15103 | tail -3 > conftest.got \
15104 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
15105 || cmp conftest.big conftest.got > /dev/null 2>&1; }
15106 then
15107 gcc_cv_as_eh_frame=yes
15108 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 gcc_cv_as_eh_frame=buggy
15115 else
15116 # Uh oh, what do we do now?
15117 gcc_cv_as_eh_frame=no
15119 else
15120 echo "configure: failed program was" >&5
15121 cat conftest.s >&5
15123 rm -f conftest.o conftest.s
15126 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
15127 $as_echo "$gcc_cv_as_eh_frame" >&6; }
15130 if test $gcc_cv_as_eh_frame = buggy; then
15132 cat >>confdefs.h <<\_ACEOF
15133 #define USE_AS_TRADITIONAL_FORMAT 1
15134 _ACEOF
15138 { $as_echo "$as_me:$LINENO: checking assembler for section merging support" >&5
15139 $as_echo_n "checking assembler for section merging support... " >&6; }
15140 if test "${gcc_cv_as_shf_merge+set}" = set; then
15141 $as_echo_n "(cached) " >&6
15142 else
15143 gcc_cv_as_shf_merge=no
15144 if test $in_tree_gas = yes; then
15145 if test $in_tree_gas_is_elf = yes \
15146 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15147 then gcc_cv_as_shf_merge=yes
15149 elif test x$gcc_cv_as != x; then
15150 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
15151 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15154 ac_status=$?
15155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }
15157 then
15158 gcc_cv_as_shf_merge=yes
15159 else
15160 echo "configure: failed program was" >&5
15161 cat conftest.s >&5
15163 rm -f conftest.o conftest.s
15166 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
15167 $as_echo "$gcc_cv_as_shf_merge" >&6; }
15169 if test $gcc_cv_as_shf_merge = no; then
15170 { $as_echo "$as_me:$LINENO: checking assembler for section merging support" >&5
15171 $as_echo_n "checking assembler for section merging support... " >&6; }
15172 if test "${gcc_cv_as_shf_merge+set}" = set; then
15173 $as_echo_n "(cached) " >&6
15174 else
15175 gcc_cv_as_shf_merge=no
15176 if test $in_tree_gas = yes; then
15177 if test $in_tree_gas_is_elf = yes \
15178 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15179 then gcc_cv_as_shf_merge=yes
15181 elif test x$gcc_cv_as != x; then
15182 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
15183 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }
15189 then
15190 gcc_cv_as_shf_merge=yes
15191 else
15192 echo "configure: failed program was" >&5
15193 cat conftest.s >&5
15195 rm -f conftest.o conftest.s
15198 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
15199 $as_echo "$gcc_cv_as_shf_merge" >&6; }
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
15205 _ACEOF
15208 { $as_echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
15209 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
15210 if test "${gcc_cv_as_comdat_group+set}" = set; then
15211 $as_echo_n "(cached) " >&6
15212 else
15213 gcc_cv_as_comdat_group=no
15214 if test $in_tree_gas = yes; then
15215 if test $in_tree_gas_is_elf = yes \
15216 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15217 then gcc_cv_as_comdat_group=yes
15219 elif test x$gcc_cv_as != x; then
15220 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15221 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }
15227 then
15228 gcc_cv_as_comdat_group=yes
15229 else
15230 echo "configure: failed program was" >&5
15231 cat conftest.s >&5
15233 rm -f conftest.o conftest.s
15236 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
15237 $as_echo "$gcc_cv_as_comdat_group" >&6; }
15239 if test $gcc_cv_as_comdat_group = yes; then
15240 gcc_cv_as_comdat_group_percent=no
15241 else
15242 { $as_echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
15243 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
15244 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
15245 $as_echo_n "(cached) " >&6
15246 else
15247 gcc_cv_as_comdat_group_percent=no
15248 if test $in_tree_gas = yes; then
15249 if test $in_tree_gas_is_elf = yes \
15250 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15251 then gcc_cv_as_comdat_group_percent=yes
15253 elif test x$gcc_cv_as != x; then
15254 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
15255 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }
15261 then
15262 gcc_cv_as_comdat_group_percent=yes
15263 else
15264 echo "configure: failed program was" >&5
15265 cat conftest.s >&5
15267 rm -f conftest.o conftest.s
15270 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
15271 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
15274 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
15275 comdat_group=yes
15276 if test 0"$ld_date" -lt 20050308; then
15277 if test -n "$ld_date"; then
15278 # If there was date string, but was earlier than 2005-03-08, fail
15279 comdat_group=no
15280 elif test "$ld_vers_major" -lt 2; then
15281 comdat_group=no
15282 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
15283 comdat_group=no
15286 else
15287 # assume linkers other than GNU ld don't support COMDAT group
15288 comdat_group=no
15290 if test $comdat_group = no; then
15291 gcc_cv_as_comdat_group=no
15292 gcc_cv_as_comdat_group_percent=no
15295 cat >>confdefs.h <<_ACEOF
15296 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
15297 _ACEOF
15300 # Thread-local storage - the check is heavily parametrized.
15301 conftest_s=
15302 tls_first_major=
15303 tls_first_minor=
15304 tls_as_opt=
15305 case "$target" in
15306 alpha*-*-*)
15307 conftest_s='
15308 .section ".tdata","awT",@progbits
15309 foo: .long 25
15310 .text
15311 ldq $27,__tls_get_addr($29) !literal!1
15312 lda $16,foo($29) !tlsgd!1
15313 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
15314 ldq $27,__tls_get_addr($29) !literal!2
15315 lda $16,foo($29) !tlsldm!2
15316 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
15317 ldq $1,foo($29) !gotdtprel
15318 ldah $2,foo($29) !dtprelhi
15319 lda $3,foo($2) !dtprello
15320 lda $4,foo($29) !dtprel
15321 ldq $1,foo($29) !gottprel
15322 ldah $2,foo($29) !tprelhi
15323 lda $3,foo($2) !tprello
15324 lda $4,foo($29) !tprel'
15325 tls_first_major=2
15326 tls_first_minor=13
15327 tls_as_opt=--fatal-warnings
15329 frv*-*-*)
15330 conftest_s='
15331 .section ".tdata","awT",@progbits
15332 x: .long 25
15333 .text
15334 call #gettlsoff(x)'
15335 tls_first_major=2
15336 tls_first_minor=14
15338 hppa*-*-linux*)
15339 conftest_s='
15340 t1: .reg %r20
15341 t2: .reg %r21
15342 gp: .reg %r19
15343 .section ".tdata","awT",@progbits
15344 foo: .long 25
15345 .text
15346 .align 4
15347 addil LT%foo-$tls_gdidx$,gp
15348 ldo RT%foo-$tls_gdidx$(%r1),%arg0
15349 b __tls_get_addr
15351 addil LT%foo-$tls_ldidx$,gp
15352 b __tls_get_addr
15353 ldo RT%foo-$tls_ldidx$(%r1),%arg0
15354 addil LR%foo-$tls_dtpoff$,%ret0
15355 ldo RR%foo-$tls_dtpoff$(%r1),%t1
15356 mfctl %cr27,%t1
15357 addil LT%foo-$tls_ieoff$,gp
15358 ldw RT%foo-$tls_ieoff$(%r1),%t2
15359 add %t1,%t2,%t3
15360 mfctl %cr27,%t1
15361 addil LR%foo-$tls_leoff$,%t1
15362 ldo RR%foo-$tls_leoff$(%r1),%t2'
15363 tls_first_major=2
15364 tls_first_minor=15
15365 tls_as_opt=--fatal-warnings
15367 arm*-*-*)
15368 conftest_s='
15369 .section ".tdata","awT",%progbits
15370 foo: .long 25
15371 .text
15372 .word foo(gottpoff)
15373 .word foo(tpoff)
15374 .word foo(tlsgd)
15375 .word foo(tlsldm)
15376 .word foo(tlsldo)'
15377 tls_first_major=2
15378 tls_first_minor=17
15380 i[34567]86-*-*)
15381 conftest_s='
15382 .section ".tdata","awT",@progbits
15383 foo: .long 25
15384 .text
15385 movl %gs:0, %eax
15386 leal foo@TLSGD(,%ebx,1), %eax
15387 leal foo@TLSLDM(%ebx), %eax
15388 leal foo@DTPOFF(%eax), %edx
15389 movl foo@GOTTPOFF(%ebx), %eax
15390 subl foo@GOTTPOFF(%ebx), %eax
15391 addl foo@GOTNTPOFF(%ebx), %eax
15392 movl foo@INDNTPOFF, %eax
15393 movl $foo@TPOFF, %eax
15394 subl $foo@TPOFF, %eax
15395 leal foo@NTPOFF(%ecx), %eax'
15396 tls_first_major=2
15397 tls_first_minor=14
15398 tls_as_opt=--fatal-warnings
15400 x86_64-*-*)
15401 conftest_s='
15402 .section ".tdata","awT",@progbits
15403 foo: .long 25
15404 .text
15405 movq %fs:0, %rax
15406 leaq foo@TLSGD(%rip), %rdi
15407 leaq foo@TLSLD(%rip), %rdi
15408 leaq foo@DTPOFF(%rax), %rdx
15409 movq foo@GOTTPOFF(%rip), %rax
15410 movq $foo@TPOFF, %rax'
15411 tls_first_major=2
15412 tls_first_minor=14
15413 tls_as_opt=--fatal-warnings
15415 ia64-*-*)
15416 conftest_s='
15417 .section ".tdata","awT",@progbits
15418 foo: data8 25
15419 .text
15420 addl r16 = @ltoff(@dtpmod(foo#)), gp
15421 addl r17 = @ltoff(@dtprel(foo#)), gp
15422 addl r18 = @ltoff(@tprel(foo#)), gp
15423 addl r19 = @dtprel(foo#), gp
15424 adds r21 = @dtprel(foo#), r13
15425 movl r23 = @dtprel(foo#)
15426 addl r20 = @tprel(foo#), gp
15427 adds r22 = @tprel(foo#), r13
15428 movl r24 = @tprel(foo#)'
15429 tls_first_major=2
15430 tls_first_minor=13
15431 tls_as_opt=--fatal-warnings
15433 mips*-*-*)
15434 conftest_s='
15435 .section .tdata,"awT",@progbits
15437 .word 2
15438 .text
15439 addiu $4, $28, %tlsgd(x)
15440 addiu $4, $28, %tlsldm(x)
15441 lui $4, %dtprel_hi(x)
15442 addiu $4, $4, %dtprel_lo(x)
15443 lw $4, %gottprel(x)($28)
15444 lui $4, %tprel_hi(x)
15445 addiu $4, $4, %tprel_lo(x)'
15446 tls_first_major=2
15447 tls_first_minor=16
15448 tls_as_opt='-32 --fatal-warnings'
15450 powerpc-*-*)
15451 conftest_s='
15452 .section ".tdata","awT",@progbits
15453 .align 2
15454 ld0: .space 4
15455 ld1: .space 4
15456 x1: .space 4
15457 x2: .space 4
15458 x3: .space 4
15459 .text
15460 addi 3,31,ld0@got@tlsgd
15461 bl __tls_get_addr
15462 addi 3,31,x1@got@tlsld
15463 bl __tls_get_addr
15464 addi 9,3,x1@dtprel
15465 addis 9,3,x2@dtprel@ha
15466 addi 9,9,x2@dtprel@l
15467 lwz 9,x3@got@tprel(31)
15468 add 9,9,x@tls
15469 addi 9,2,x1@tprel
15470 addis 9,2,x2@tprel@ha
15471 addi 9,9,x2@tprel@l'
15472 tls_first_major=2
15473 tls_first_minor=14
15474 tls_as_opt="-a32 --fatal-warnings"
15476 powerpc64-*-*)
15477 conftest_s='
15478 .section ".tdata","awT",@progbits
15479 .align 3
15480 ld0: .space 8
15481 ld1: .space 8
15482 x1: .space 8
15483 x2: .space 8
15484 x3: .space 8
15485 .text
15486 addi 3,2,ld0@got@tlsgd
15487 bl .__tls_get_addr
15489 addi 3,2,ld1@toc
15490 bl .__tls_get_addr
15492 addi 3,2,x1@got@tlsld
15493 bl .__tls_get_addr
15495 addi 9,3,x1@dtprel
15496 bl .__tls_get_addr
15498 addis 9,3,x2@dtprel@ha
15499 addi 9,9,x2@dtprel@l
15500 bl .__tls_get_addr
15502 ld 9,x3@got@dtprel(2)
15503 add 9,9,3
15504 bl .__tls_get_addr
15505 nop'
15506 tls_first_major=2
15507 tls_first_minor=14
15508 tls_as_opt="-a64 --fatal-warnings"
15510 s390-*-*)
15511 conftest_s='
15512 .section ".tdata","awT",@progbits
15513 foo: .long 25
15514 .text
15515 .long foo@TLSGD
15516 .long foo@TLSLDM
15517 .long foo@DTPOFF
15518 .long foo@NTPOFF
15519 .long foo@GOTNTPOFF
15520 .long foo@INDNTPOFF
15521 l %r1,foo@GOTNTPOFF(%r12)
15522 l %r1,0(%r1):tls_load:foo
15523 bas %r14,0(%r1,%r13):tls_gdcall:foo
15524 bas %r14,0(%r1,%r13):tls_ldcall:foo'
15525 tls_first_major=2
15526 tls_first_minor=14
15527 tls_as_opt="-m31 --fatal-warnings"
15529 s390x-*-*)
15530 conftest_s='
15531 .section ".tdata","awT",@progbits
15532 foo: .long 25
15533 .text
15534 .quad foo@TLSGD
15535 .quad foo@TLSLDM
15536 .quad foo@DTPOFF
15537 .quad foo@NTPOFF
15538 .quad foo@GOTNTPOFF
15539 lg %r1,foo@GOTNTPOFF(%r12)
15540 larl %r1,foo@INDNTPOFF
15541 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
15542 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
15543 tls_first_major=2
15544 tls_first_minor=14
15545 tls_as_opt="-m64 -Aesame --fatal-warnings"
15547 sh-*-* | sh[34]-*-* | sh*l*-*-*)
15548 conftest_s='
15549 .section ".tdata","awT",@progbits
15550 foo: .long 25
15551 .text
15552 .long foo@TLSGD
15553 .long foo@TLSLDM
15554 .long foo@DTPOFF
15555 .long foo@GOTTPOFF
15556 .long foo@TPOFF'
15557 tls_first_major=2
15558 tls_first_minor=13
15559 tls_as_opt=--fatal-warnings
15561 sparc*-*-*)
15562 case "$target" in
15563 sparc*-sun-solaris2.[56789]*)
15564 # TLS was introduced in the Solaris 9 4/04 release but
15565 # we do not enable it by default on Solaris 9 either.
15566 if test "x$enable_tls" = xyes ; then
15567 on_solaris=yes
15568 else
15569 enable_tls=no;
15572 sparc*-sun-solaris2.*)
15573 on_solaris=yes
15576 on_solaris=no
15578 esac
15579 if test x$on_solaris = xyes && test x$gas_flag = xno; then
15580 conftest_s='
15581 .section ".tdata",#alloc,#write,#tls
15582 foo: .long 25
15583 .text
15584 sethi %tgd_hi22(foo), %o0
15585 add %o0, %tgd_lo10(foo), %o1
15586 add %l7, %o1, %o0, %tgd_add(foo)
15587 call __tls_get_addr, %tgd_call(foo)
15588 sethi %tldm_hi22(foo), %l1
15589 add %l1, %tldm_lo10(foo), %l2
15590 add %l7, %l2, %o0, %tldm_add(foo)
15591 call __tls_get_addr, %tldm_call(foo)
15592 sethi %tldo_hix22(foo), %l3
15593 xor %l3, %tldo_lox10(foo), %l4
15594 add %o0, %l4, %l5, %tldo_add(foo)
15595 sethi %tie_hi22(foo), %o3
15596 add %o3, %tie_lo10(foo), %o3
15597 ld [%l7 + %o3], %o2, %tie_ld(foo)
15598 add %g7, %o2, %o4, %tie_add(foo)
15599 sethi %tle_hix22(foo), %l1
15600 xor %l1, %tle_lox10(foo), %o5
15601 ld [%g7 + %o5], %o1'
15602 tls_first_major=0
15603 tls_first_minor=0
15604 else
15605 conftest_s='
15606 .section ".tdata","awT",@progbits
15607 foo: .long 25
15608 .text
15609 sethi %tgd_hi22(foo), %o0
15610 add %o0, %tgd_lo10(foo), %o1
15611 add %l7, %o1, %o0, %tgd_add(foo)
15612 call __tls_get_addr, %tgd_call(foo)
15613 sethi %tldm_hi22(foo), %l1
15614 add %l1, %tldm_lo10(foo), %l2
15615 add %l7, %l2, %o0, %tldm_add(foo)
15616 call __tls_get_addr, %tldm_call(foo)
15617 sethi %tldo_hix22(foo), %l3
15618 xor %l3, %tldo_lox10(foo), %l4
15619 add %o0, %l4, %l5, %tldo_add(foo)
15620 sethi %tie_hi22(foo), %o3
15621 add %o3, %tie_lo10(foo), %o3
15622 ld [%l7 + %o3], %o2, %tie_ld(foo)
15623 add %g7, %o2, %o4, %tie_add(foo)
15624 sethi %tle_hix22(foo), %l1
15625 xor %l1, %tle_lox10(foo), %o5
15626 ld [%g7 + %o5], %o1'
15627 tls_first_major=2
15628 tls_first_minor=14
15629 tls_as_opt="-32 --fatal-warnings"
15632 esac
15633 set_have_as_tls=no
15634 if test "x$enable_tls" = xno ; then
15635 : # TLS explicitly disabled.
15636 elif test "x$enable_tls" = xyes ; then
15637 set_have_as_tls=yes # TLS explicitly enabled.
15638 elif test -z "$tls_first_major"; then
15639 : # If we don't have a check, assume no support.
15640 else
15641 { $as_echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15642 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
15643 if test "${gcc_cv_as_tls+set}" = set; then
15644 $as_echo_n "(cached) " >&6
15645 else
15646 gcc_cv_as_tls=no
15647 if test $in_tree_gas = yes; then
15648 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15649 then gcc_cv_as_tls=yes
15651 elif test x$gcc_cv_as != x; then
15652 echo "$conftest_s" > conftest.s
15653 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }
15659 then
15660 gcc_cv_as_tls=yes
15661 else
15662 echo "configure: failed program was" >&5
15663 cat conftest.s >&5
15665 rm -f conftest.o conftest.s
15668 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15669 $as_echo "$gcc_cv_as_tls" >&6; }
15670 if test $gcc_cv_as_tls = yes; then
15671 set_have_as_tls=yes
15674 if test $set_have_as_tls = yes ; then
15676 cat >>confdefs.h <<\_ACEOF
15677 #define HAVE_AS_TLS 1
15678 _ACEOF
15682 # Target-specific assembler checks.
15684 { $as_echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15685 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
15686 gcc_cv_ld_static_dynamic=no
15687 if test $in_tree_ld = yes ; then
15688 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15689 gcc_cv_ld_static_dynamic=yes
15691 elif test x$gcc_cv_ld != x; then
15692 # Check if linker supports -Bstatic/-Bdynamic option
15693 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
15694 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
15695 gcc_cv_ld_static_dynamic=yes
15698 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
15700 cat >>confdefs.h <<\_ACEOF
15701 #define HAVE_LD_STATIC_DYNAMIC 1
15702 _ACEOF
15705 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15706 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
15708 if test x"$demangler_in_ld" = xyes; then
15709 { $as_echo "$as_me:$LINENO: checking linker --demangle support" >&5
15710 $as_echo_n "checking linker --demangle support... " >&6; }
15711 gcc_cv_ld_demangle=no
15712 if test $in_tree_ld = yes; then
15713 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
15714 gcc_cv_ld_demangle=yes
15716 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
15717 # Check if the GNU linker supports --demangle option
15718 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
15719 gcc_cv_ld_demangle=yes
15722 if test x"$gcc_cv_ld_demangle" = xyes; then
15724 cat >>confdefs.h <<\_ACEOF
15725 #define HAVE_LD_DEMANGLE 1
15726 _ACEOF
15729 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15730 $as_echo "$gcc_cv_ld_demangle" >&6; }
15733 case "$target" in
15734 # All TARGET_ABI_OSF targets.
15735 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
15736 { $as_echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15737 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
15738 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15739 $as_echo_n "(cached) " >&6
15740 else
15741 gcc_cv_as_alpha_explicit_relocs=no
15742 if test $in_tree_gas = yes; then
15743 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15744 then gcc_cv_as_alpha_explicit_relocs=yes
15746 elif test x$gcc_cv_as != x; then
15747 echo ' .set nomacro
15748 .text
15749 extbl $3, $2, $3 !lituse_bytoff!1
15750 ldq $2, a($29) !literal!1
15751 ldq $4, b($29) !literal!2
15752 ldq_u $3, 0($2) !lituse_base!1
15753 ldq $27, f($29) !literal!5
15754 jsr $26, ($27), f !lituse_jsr!5
15755 ldah $29, 0($26) !gpdisp!3
15756 lda $0, c($29) !gprel
15757 ldah $1, d($29) !gprelhigh
15758 lda $1, d($1) !gprellow
15759 lda $29, 0($29) !gpdisp!3' > conftest.s
15760 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }
15766 then
15767 gcc_cv_as_alpha_explicit_relocs=yes
15768 else
15769 echo "configure: failed program was" >&5
15770 cat conftest.s >&5
15772 rm -f conftest.o conftest.s
15775 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15776 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
15777 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15779 cat >>confdefs.h <<\_ACEOF
15780 #define HAVE_AS_EXPLICIT_RELOCS 1
15781 _ACEOF
15784 { $as_echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15785 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
15786 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15787 $as_echo_n "(cached) " >&6
15788 else
15789 gcc_cv_as_alpha_jsrdirect_relocs=no
15790 if test $in_tree_gas = yes; then
15791 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15792 then gcc_cv_as_alpha_jsrdirect_relocs=yes
15794 elif test x$gcc_cv_as != x; then
15795 echo ' .set nomacro
15796 .text
15797 ldq $27, a($29) !literal!1
15798 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
15799 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }
15805 then
15806 gcc_cv_as_alpha_jsrdirect_relocs=yes
15807 else
15808 echo "configure: failed program was" >&5
15809 cat conftest.s >&5
15811 rm -f conftest.o conftest.s
15814 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15815 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
15816 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15818 cat >>confdefs.h <<\_ACEOF
15819 #define HAVE_AS_JSRDIRECT_RELOCS 1
15820 _ACEOF
15825 cris-*-*)
15826 { $as_echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15827 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
15828 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15829 $as_echo_n "(cached) " >&6
15830 else
15831 gcc_cv_as_cris_no_mul_bug=no
15832 if test $in_tree_gas = yes; then
15833 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15834 then gcc_cv_as_cris_no_mul_bug=yes
15836 elif test x$gcc_cv_as != x; then
15837 echo '.text' > conftest.s
15838 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15841 ac_status=$?
15842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }
15844 then
15845 gcc_cv_as_cris_no_mul_bug=yes
15846 else
15847 echo "configure: failed program was" >&5
15848 cat conftest.s >&5
15850 rm -f conftest.o conftest.s
15853 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15854 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
15855 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15857 cat >>confdefs.h <<\_ACEOF
15858 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15859 _ACEOF
15864 sparc*-*-*)
15865 { $as_echo "$as_me:$LINENO: checking assembler for .register" >&5
15866 $as_echo_n "checking assembler for .register... " >&6; }
15867 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15868 $as_echo_n "(cached) " >&6
15869 else
15870 gcc_cv_as_sparc_register_op=no
15871 if test x$gcc_cv_as != x; then
15872 echo '.register %g2, #scratch' > conftest.s
15873 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }
15879 then
15880 gcc_cv_as_sparc_register_op=yes
15881 else
15882 echo "configure: failed program was" >&5
15883 cat conftest.s >&5
15885 rm -f conftest.o conftest.s
15888 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15889 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
15890 if test $gcc_cv_as_sparc_register_op = yes; then
15892 cat >>confdefs.h <<\_ACEOF
15893 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15894 _ACEOF
15898 { $as_echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15899 $as_echo_n "checking assembler for -relax option... " >&6; }
15900 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15901 $as_echo_n "(cached) " >&6
15902 else
15903 gcc_cv_as_sparc_relax=no
15904 if test x$gcc_cv_as != x; then
15905 echo '.text' > conftest.s
15906 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }
15912 then
15913 gcc_cv_as_sparc_relax=yes
15914 else
15915 echo "configure: failed program was" >&5
15916 cat conftest.s >&5
15918 rm -f conftest.o conftest.s
15921 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15922 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
15923 if test $gcc_cv_as_sparc_relax = yes; then
15925 cat >>confdefs.h <<\_ACEOF
15926 #define HAVE_AS_RELAX_OPTION 1
15927 _ACEOF
15931 { $as_echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15932 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
15933 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15934 $as_echo_n "(cached) " >&6
15935 else
15936 gcc_cv_as_sparc_ua_pcrel=no
15937 if test x$gcc_cv_as != x; then
15938 echo '.text
15939 foo:
15941 .data
15942 .align 4
15943 .byte 0
15944 .uaword %r_disp32(foo)' > conftest.s
15945 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15948 ac_status=$?
15949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }
15951 then
15952 if test x$gcc_cv_ld != x \
15953 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15954 gcc_cv_as_sparc_ua_pcrel=yes
15956 rm -f conftest
15957 else
15958 echo "configure: failed program was" >&5
15959 cat conftest.s >&5
15961 rm -f conftest.o conftest.s
15964 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15965 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
15966 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15968 cat >>confdefs.h <<\_ACEOF
15969 #define HAVE_AS_SPARC_UA_PCREL 1
15970 _ACEOF
15973 { $as_echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15974 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
15975 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15976 $as_echo_n "(cached) " >&6
15977 else
15978 gcc_cv_as_sparc_ua_pcrel_hidden=no
15979 if test x$gcc_cv_as != x; then
15980 echo '.data
15981 .align 4
15982 .byte 0x31
15983 .uaword %r_disp32(foo)
15984 .byte 0x32, 0x33, 0x34
15985 .global foo
15986 .hidden foo
15987 foo:
15988 .skip 4' > conftest.s
15989 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }
15995 then
15996 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15997 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15998 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15999 | grep ' 31000000 07323334' > /dev/null 2>&1; then
16000 if $gcc_cv_objdump -R conftest 2> /dev/null \
16001 | grep 'DISP32' > /dev/null 2>&1; then
16003 else
16004 gcc_cv_as_sparc_ua_pcrel_hidden=yes
16007 rm -f conftest
16008 else
16009 echo "configure: failed program was" >&5
16010 cat conftest.s >&5
16012 rm -f conftest.o conftest.s
16015 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
16016 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
16017 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
16019 cat >>confdefs.h <<\_ACEOF
16020 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
16021 _ACEOF
16025 fi # unaligned pcrel relocs
16027 { $as_echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
16028 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
16029 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
16030 $as_echo_n "(cached) " >&6
16031 else
16032 gcc_cv_as_sparc_offsetable_lo10=no
16033 if test x$gcc_cv_as != x; then
16034 echo '.text
16035 or %g1, %lo(ab) + 12, %g1
16036 or %g1, %lo(ab + 12), %g1' > conftest.s
16037 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16040 ac_status=$?
16041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }
16043 then
16044 if test x$gcc_cv_objdump != x \
16045 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
16046 | grep ' 82106000 82106000' > /dev/null 2>&1; then
16047 gcc_cv_as_sparc_offsetable_lo10=yes
16049 else
16050 echo "configure: failed program was" >&5
16051 cat conftest.s >&5
16053 rm -f conftest.o conftest.s
16056 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
16057 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
16058 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
16060 cat >>confdefs.h <<\_ACEOF
16061 #define HAVE_AS_OFFSETABLE_LO10 1
16062 _ACEOF
16067 i[34567]86-*-* | x86_64-*-*)
16068 case $target_os in
16069 cygwin* | pe | mingw32*)
16070 # Used for DWARF 2 in PE
16071 { $as_echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
16072 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
16073 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
16074 $as_echo_n "(cached) " >&6
16075 else
16076 gcc_cv_as_ix86_pe_secrel32=no
16077 if test $in_tree_gas = yes; then
16078 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
16079 then gcc_cv_as_ix86_pe_secrel32=yes
16081 elif test x$gcc_cv_as != x; then
16082 echo '.text
16083 foo: nop
16084 .data
16085 .secrel32 foo' > conftest.s
16086 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }
16092 then
16093 if test x$gcc_cv_ld != x \
16094 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
16095 gcc_cv_as_ix86_pe_secrel32=yes
16097 rm -f conftest
16098 else
16099 echo "configure: failed program was" >&5
16100 cat conftest.s >&5
16102 rm -f conftest.o conftest.s
16105 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
16106 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
16107 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
16109 cat >>confdefs.h <<\_ACEOF
16110 #define HAVE_GAS_PE_SECREL32_RELOC 1
16111 _ACEOF
16115 esac
16117 { $as_echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
16118 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
16119 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
16120 $as_echo_n "(cached) " >&6
16121 else
16122 gcc_cv_as_ix86_filds_fists=no
16123 if test $in_tree_gas = yes; then
16124 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
16125 then gcc_cv_as_ix86_filds_fists=yes
16127 elif test x$gcc_cv_as != x; then
16128 echo 'filds mem; fists mem' > conftest.s
16129 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }
16135 then
16136 gcc_cv_as_ix86_filds_fists=yes
16137 else
16138 echo "configure: failed program was" >&5
16139 cat conftest.s >&5
16141 rm -f conftest.o conftest.s
16144 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
16145 $as_echo "$gcc_cv_as_ix86_filds_fists" >&6; }
16146 if test $gcc_cv_as_ix86_filds_fists = yes; then
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_GAS_FILDS_FISTS 1
16150 _ACEOF
16154 { $as_echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
16155 $as_echo_n "checking assembler for cmov syntax... " >&6; }
16156 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
16157 $as_echo_n "(cached) " >&6
16158 else
16159 gcc_cv_as_ix86_cmov_sun_syntax=no
16160 if test x$gcc_cv_as != x; then
16161 echo 'cmovl.l %edx, %eax' > conftest.s
16162 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16165 ac_status=$?
16166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }
16168 then
16169 gcc_cv_as_ix86_cmov_sun_syntax=yes
16170 else
16171 echo "configure: failed program was" >&5
16172 cat conftest.s >&5
16174 rm -f conftest.o conftest.s
16177 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
16178 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
16179 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
16181 cat >>confdefs.h <<\_ACEOF
16182 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
16183 _ACEOF
16187 # This one is used unconditionally by i386.[ch]; it is to be defined
16188 # to 1 if the feature is present, 0 otherwise.
16189 { $as_echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
16190 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
16191 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
16192 $as_echo_n "(cached) " >&6
16193 else
16194 gcc_cv_as_ix86_gotoff_in_data=no
16195 if test $in_tree_gas = yes; then
16196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16197 then gcc_cv_as_ix86_gotoff_in_data=yes
16199 elif test x$gcc_cv_as != x; then
16200 echo ' .text
16201 .L0:
16203 .data
16204 .long .L0@GOTOFF' > conftest.s
16205 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }
16211 then
16212 gcc_cv_as_ix86_gotoff_in_data=yes
16213 else
16214 echo "configure: failed program was" >&5
16215 cat conftest.s >&5
16217 rm -f conftest.o conftest.s
16220 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
16221 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
16224 cat >>confdefs.h <<_ACEOF
16225 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
16226 _ACEOF
16230 ia64*-*-*)
16231 { $as_echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
16232 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
16233 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
16234 $as_echo_n "(cached) " >&6
16235 else
16236 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
16237 if test $in_tree_gas = yes; then
16238 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16239 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
16241 elif test x$gcc_cv_as != x; then
16242 echo ' .text
16243 addl r15 = @ltoffx(x#), gp
16245 ld8.mov r16 = [r15], x#' > conftest.s
16246 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }
16252 then
16253 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
16254 else
16255 echo "configure: failed program was" >&5
16256 cat conftest.s >&5
16258 rm -f conftest.o conftest.s
16261 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
16262 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
16263 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
16265 cat >>confdefs.h <<\_ACEOF
16266 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
16267 _ACEOF
16273 powerpc*-*-*)
16274 case $target in
16275 *-*-aix*) conftest_s=' .machine "pwr5"
16276 .csect .text[PR]
16277 mfcr 3,128';;
16278 *-*-darwin*)
16279 { $as_echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
16280 $as_echo_n "checking assembler for .machine directive support... " >&6; }
16281 if test "${gcc_cv_as_machine_directive+set}" = set; then
16282 $as_echo_n "(cached) " >&6
16283 else
16284 gcc_cv_as_machine_directive=no
16285 if test x$gcc_cv_as != x; then
16286 echo ' .machine ppc7400' > conftest.s
16287 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }
16293 then
16294 gcc_cv_as_machine_directive=yes
16295 else
16296 echo "configure: failed program was" >&5
16297 cat conftest.s >&5
16299 rm -f conftest.o conftest.s
16302 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
16303 $as_echo "$gcc_cv_as_machine_directive" >&6; }
16305 if test x$gcc_cv_as_machine_directive != xyes; then
16306 echo "*** This target requires an assembler supporting \".machine\"" >&2
16307 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
16308 test x$build = x$target && exit 1
16310 conftest_s=' .text
16311 mfcr r3,128';;
16312 *) conftest_s=' .machine power4
16313 .text
16314 mfcr 3,128';;
16315 esac
16317 { $as_echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
16318 $as_echo_n "checking assembler for mfcr field support... " >&6; }
16319 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
16320 $as_echo_n "(cached) " >&6
16321 else
16322 gcc_cv_as_powerpc_mfcrf=no
16323 if test $in_tree_gas = yes; then
16324 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16325 then gcc_cv_as_powerpc_mfcrf=yes
16327 elif test x$gcc_cv_as != x; then
16328 echo "$conftest_s" > conftest.s
16329 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16332 ac_status=$?
16333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }
16335 then
16336 gcc_cv_as_powerpc_mfcrf=yes
16337 else
16338 echo "configure: failed program was" >&5
16339 cat conftest.s >&5
16341 rm -f conftest.o conftest.s
16344 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
16345 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
16346 if test $gcc_cv_as_powerpc_mfcrf = yes; then
16348 cat >>confdefs.h <<\_ACEOF
16349 #define HAVE_AS_MFCRF 1
16350 _ACEOF
16354 case $target in
16355 *-*-aix*) conftest_s=' .machine "pwr5"
16356 .csect .text[PR]
16357 popcntb 3,3';;
16358 *) conftest_s=' .machine power5
16359 .text
16360 popcntb 3,3';;
16361 esac
16363 { $as_echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
16364 $as_echo_n "checking assembler for popcntb support... " >&6; }
16365 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
16366 $as_echo_n "(cached) " >&6
16367 else
16368 gcc_cv_as_powerpc_popcntb=no
16369 if test $in_tree_gas = yes; then
16370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16371 then gcc_cv_as_powerpc_popcntb=yes
16373 elif test x$gcc_cv_as != x; then
16374 echo "$conftest_s" > conftest.s
16375 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }
16381 then
16382 gcc_cv_as_powerpc_popcntb=yes
16383 else
16384 echo "configure: failed program was" >&5
16385 cat conftest.s >&5
16387 rm -f conftest.o conftest.s
16390 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
16391 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
16392 if test $gcc_cv_as_powerpc_popcntb = yes; then
16394 cat >>confdefs.h <<\_ACEOF
16395 #define HAVE_AS_POPCNTB 1
16396 _ACEOF
16400 case $target in
16401 *-*-aix*) conftest_s=' .machine "pwr5x"
16402 .csect .text[PR]
16403 frin 1,1';;
16404 *) conftest_s=' .machine power5
16405 .text
16406 frin 1,1';;
16407 esac
16409 { $as_echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16410 $as_echo_n "checking assembler for fp round support... " >&6; }
16411 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16412 $as_echo_n "(cached) " >&6
16413 else
16414 gcc_cv_as_powerpc_fprnd=no
16415 if test $in_tree_gas = yes; then
16416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16417 then gcc_cv_as_powerpc_fprnd=yes
16419 elif test x$gcc_cv_as != x; then
16420 echo "$conftest_s" > conftest.s
16421 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }
16427 then
16428 gcc_cv_as_powerpc_fprnd=yes
16429 else
16430 echo "configure: failed program was" >&5
16431 cat conftest.s >&5
16433 rm -f conftest.o conftest.s
16436 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16437 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
16438 if test $gcc_cv_as_powerpc_fprnd = yes; then
16440 cat >>confdefs.h <<\_ACEOF
16441 #define HAVE_AS_FPRND 1
16442 _ACEOF
16446 case $target in
16447 *-*-aix*) conftest_s=' .csect .text[PR]
16448 LCF..0:
16449 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16450 *-*-darwin*)
16451 conftest_s=' .text
16452 LCF0:
16453 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16454 *) conftest_s=' .text
16455 .LCF0:
16456 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16457 esac
16459 { $as_echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16460 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
16461 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16462 $as_echo_n "(cached) " >&6
16463 else
16464 gcc_cv_as_powerpc_rel16=no
16465 if test $in_tree_gas = yes; then
16466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16467 then gcc_cv_as_powerpc_rel16=yes
16469 elif test x$gcc_cv_as != x; then
16470 echo "$conftest_s" > conftest.s
16471 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473 (eval $ac_try) 2>&5
16474 ac_status=$?
16475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }
16477 then
16478 gcc_cv_as_powerpc_rel16=yes
16479 else
16480 echo "configure: failed program was" >&5
16481 cat conftest.s >&5
16483 rm -f conftest.o conftest.s
16486 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16487 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
16488 if test $gcc_cv_as_powerpc_rel16 = yes; then
16490 cat >>confdefs.h <<\_ACEOF
16491 #define HAVE_AS_REL16 1
16492 _ACEOF
16497 mips*-*-*)
16498 { $as_echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16499 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
16500 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16501 $as_echo_n "(cached) " >&6
16502 else
16503 gcc_cv_as_mips_explicit_relocs=no
16504 if test $in_tree_gas = yes; then
16505 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16506 then gcc_cv_as_mips_explicit_relocs=yes
16508 elif test x$gcc_cv_as != x; then
16509 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
16510 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16513 ac_status=$?
16514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }
16516 then
16517 gcc_cv_as_mips_explicit_relocs=yes
16518 else
16519 echo "configure: failed program was" >&5
16520 cat conftest.s >&5
16522 rm -f conftest.o conftest.s
16525 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16526 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
16527 if test $gcc_cv_as_mips_explicit_relocs = yes; then
16528 if test x$target_cpu_default = x
16529 then target_cpu_default=MASK_EXPLICIT_RELOCS
16530 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16534 esac
16536 # Mips and HP-UX need the GNU assembler.
16537 # Linux on IA64 might be able to use the Intel assembler.
16539 case "$target" in
16540 mips*-*-* | *-*-hpux* )
16541 if test x$gas_flag = xyes \
16542 || test x"$host" != x"$build" \
16543 || test ! -x "$gcc_cv_as" \
16544 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16546 else
16547 echo "*** This configuration requires the GNU assembler" >&2
16548 exit 1
16551 esac
16553 # ??? Not all targets support dwarf2 debug_line, even within a version
16554 # of gas. Moreover, we need to emit a valid instruction to trigger any
16555 # info to the output file. So, as supported targets are added to gas 2.11,
16556 # add some instruction here to (also) show we expect this might work.
16557 # ??? Once 2.11 is released, probably need to add first known working
16558 # version to the per-target configury.
16559 case "$target" in
16560 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16561 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16562 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
16563 insn="nop"
16565 ia64*-*-* | s390*-*-*)
16566 insn="nop 0"
16568 mmix-*-*)
16569 insn="swym 0"
16571 esac
16572 if test x"$insn" != x; then
16573 conftest_s="\
16574 .file 1 \"conftest.s\"
16575 .loc 1 3 0
16576 $insn"
16577 { $as_echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16578 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
16579 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16580 $as_echo_n "(cached) " >&6
16581 else
16582 gcc_cv_as_dwarf2_debug_line=no
16583 if test $in_tree_gas = yes; then
16584 if test $in_tree_gas_is_elf = yes \
16585 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16586 then gcc_cv_as_dwarf2_debug_line=yes
16588 elif test x$gcc_cv_as != x; then
16589 echo "$conftest_s" > conftest.s
16590 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16593 ac_status=$?
16594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; }
16596 then
16597 if test x$gcc_cv_objdump != x \
16598 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16599 | grep debug_line > /dev/null 2>&1; then
16600 gcc_cv_as_dwarf2_debug_line=yes
16602 else
16603 echo "configure: failed program was" >&5
16604 cat conftest.s >&5
16606 rm -f conftest.o conftest.s
16609 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16610 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
16613 # The .debug_line file table must be in the exact order that
16614 # we specified the files, since these indices are also used
16615 # by DW_AT_decl_file. Approximate this test by testing if
16616 # the assembler bitches if the same index is assigned twice.
16617 { $as_echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16618 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
16619 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16620 $as_echo_n "(cached) " >&6
16621 else
16622 gcc_cv_as_dwarf2_file_buggy=no
16623 if test x$gcc_cv_as != x; then
16624 echo ' .file 1 "foo.s"
16625 .file 1 "bar.s"' > conftest.s
16626 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16629 ac_status=$?
16630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }
16632 then
16633 gcc_cv_as_dwarf2_file_buggy=yes
16634 else
16635 echo "configure: failed program was" >&5
16636 cat conftest.s >&5
16638 rm -f conftest.o conftest.s
16641 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16642 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
16645 if test $gcc_cv_as_dwarf2_debug_line = yes \
16646 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16648 cat >>confdefs.h <<\_ACEOF
16649 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16650 _ACEOF
16654 { $as_echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16655 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
16656 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16657 $as_echo_n "(cached) " >&6
16658 else
16659 gcc_cv_as_gdwarf2_flag=no
16660 if test $in_tree_gas = yes; then
16661 if test $in_tree_gas_is_elf = yes \
16662 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16663 then gcc_cv_as_gdwarf2_flag=yes
16665 elif test x$gcc_cv_as != x; then
16666 echo "$insn" > conftest.s
16667 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }
16673 then
16674 gcc_cv_as_gdwarf2_flag=yes
16675 else
16676 echo "configure: failed program was" >&5
16677 cat conftest.s >&5
16679 rm -f conftest.o conftest.s
16682 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16683 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
16684 if test $gcc_cv_as_gdwarf2_flag = yes; then
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16688 _ACEOF
16692 { $as_echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16693 $as_echo_n "checking assembler for --gstabs option... " >&6; }
16694 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16695 $as_echo_n "(cached) " >&6
16696 else
16697 gcc_cv_as_gstabs_flag=no
16698 if test $in_tree_gas = yes; then
16699 if test $in_tree_gas_is_elf = yes \
16700 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16701 then gcc_cv_as_gstabs_flag=yes
16703 elif test x$gcc_cv_as != x; then
16704 echo "$insn" > conftest.s
16705 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16708 ac_status=$?
16709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }
16711 then
16712 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16713 # and warns about it, but still exits successfully. So check for
16714 # this.
16715 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }
16721 then :
16722 else gcc_cv_as_gstabs_flag=yes
16724 else
16725 echo "configure: failed program was" >&5
16726 cat conftest.s >&5
16728 rm -f conftest.o conftest.s
16731 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16732 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
16733 if test $gcc_cv_as_gstabs_flag = yes; then
16735 cat >>confdefs.h <<\_ACEOF
16736 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16737 _ACEOF
16742 { $as_echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16743 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
16744 gcc_cv_ld_ro_rw_mix=unknown
16745 if test $in_tree_ld = yes ; then
16746 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
16747 && test $in_tree_ld_is_elf = yes; then
16748 gcc_cv_ld_ro_rw_mix=read-write
16750 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16751 echo '.section myfoosect, "a"' > conftest1.s
16752 echo '.section myfoosect, "aw"' > conftest2.s
16753 echo '.byte 1' >> conftest2.s
16754 echo '.section myfoosect, "a"' > conftest3.s
16755 echo '.byte 0' >> conftest3.s
16756 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16757 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16758 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16759 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16760 conftest2.o conftest3.o > /dev/null 2>&1; then
16761 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16762 | sed -e '/myfoosect/!d' -e N`
16763 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16764 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16765 gcc_cv_ld_ro_rw_mix=read-only
16766 else
16767 gcc_cv_ld_ro_rw_mix=read-write
16771 rm -f conftest.* conftest[123].*
16773 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16775 cat >>confdefs.h <<\_ACEOF
16776 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16777 _ACEOF
16780 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16781 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
16783 { $as_echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16784 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
16785 gcc_cv_ld_eh_frame_hdr=no
16786 if test $in_tree_ld = yes ; then
16787 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
16788 && test $in_tree_ld_is_elf = yes; then
16789 gcc_cv_ld_eh_frame_hdr=yes
16791 elif test x$gcc_cv_ld != x; then
16792 # Check if linker supports --eh-frame-hdr option
16793 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16794 gcc_cv_ld_eh_frame_hdr=yes
16798 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16800 cat >>confdefs.h <<\_ACEOF
16801 #define HAVE_LD_EH_FRAME_HDR 1
16802 _ACEOF
16805 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16806 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
16808 { $as_echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16809 $as_echo_n "checking linker position independent executable support... " >&6; }
16810 gcc_cv_ld_pie=no
16811 if test $in_tree_ld = yes ; then
16812 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
16813 && test $in_tree_ld_is_elf = yes; then
16814 gcc_cv_ld_pie=yes
16816 elif test x$gcc_cv_ld != x; then
16817 # Check if linker supports -pie option
16818 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16819 gcc_cv_ld_pie=yes
16822 if test x"$gcc_cv_ld_pie" = xyes; then
16824 cat >>confdefs.h <<\_ACEOF
16825 #define HAVE_LD_PIE 1
16826 _ACEOF
16829 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16830 $as_echo "$gcc_cv_ld_pie" >&6; }
16832 # --------
16833 # UNSORTED
16834 # --------
16836 { $as_echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16837 $as_echo_n "checking linker --as-needed support... " >&6; }
16838 if test "${gcc_cv_ld_as_needed+set}" = set; then
16839 $as_echo_n "(cached) " >&6
16840 else
16841 gcc_cv_ld_as_needed=no
16842 if test $in_tree_ld = yes ; then
16843 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
16844 && test $in_tree_ld_is_elf = yes; then
16845 gcc_cv_ld_as_needed=yes
16847 elif test x$gcc_cv_ld != x; then
16848 # Check if linker supports --as-needed and --no-as-needed options
16849 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16850 gcc_cv_ld_as_needed=yes
16855 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16856 $as_echo "$gcc_cv_ld_as_needed" >&6; }
16857 if test x"$gcc_cv_ld_as_needed" = xyes; then
16859 cat >>confdefs.h <<\_ACEOF
16860 #define HAVE_LD_AS_NEEDED 1
16861 _ACEOF
16865 case "$target:$tm_file" in
16866 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16867 { $as_echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16868 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
16869 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16870 $as_echo_n "(cached) " >&6
16871 else
16872 gcc_cv_ld_no_dot_syms=no
16873 if test $in_tree_ld = yes ; then
16874 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
16875 gcc_cv_ld_no_dot_syms=yes
16877 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16878 cat > conftest1.s <<EOF
16879 .text
16880 bl .foo
16882 cat > conftest2.s <<EOF
16883 .section ".opd","aw"
16884 .align 3
16885 .globl foo
16886 .type foo,@function
16887 foo:
16888 .quad .LEfoo,.TOC.@tocbase,0
16889 .text
16890 .LEfoo:
16892 .size foo,.-.LEfoo
16894 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16895 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16896 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16897 gcc_cv_ld_no_dot_syms=yes
16899 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16903 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16904 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
16905 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16907 cat >>confdefs.h <<\_ACEOF
16908 #define HAVE_LD_NO_DOT_SYMS 1
16909 _ACEOF
16913 esac
16915 { $as_echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16916 $as_echo_n "checking linker --sysroot support... " >&6; }
16917 if test "${gcc_cv_ld_sysroot+set}" = set; then
16918 $as_echo_n "(cached) " >&6
16919 else
16920 gcc_cv_ld_sysroot=no
16921 if test $in_tree_ld = yes ; then
16922 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
16923 gcc_cv_ld_sysroot=yes
16925 elif test x$gcc_cv_ld != x; then
16926 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16927 gcc_cv_ld_sysroot=yes
16931 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16932 $as_echo "$gcc_cv_ld_sysroot" >&6; }
16933 if test x"$gcc_cv_ld_sysroot" = xyes; then
16935 cat >>confdefs.h <<\_ACEOF
16936 #define HAVE_LD_SYSROOT 1
16937 _ACEOF
16941 if test x$with_sysroot = x && test x$host = x$target \
16942 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define PREFIX_INCLUDE_DIR "$prefix/include"
16946 _ACEOF
16950 # Test for stack protector support in target C library.
16951 { $as_echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16952 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
16953 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16954 $as_echo_n "(cached) " >&6
16955 else
16956 case "$target" in
16957 *-*-linux*)
16958 gcc_cv_libc_provides_ssp=no
16959 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16960 if test "x$with_sysroot" = x; then
16961 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16962 elif test "x$with_sysroot" = xyes; then
16963 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16964 else
16965 glibc_header_dir="${with_sysroot}/usr/include"
16967 else
16968 glibc_header_dir=/usr/include
16970 # glibc 2.4 and later provides __stack_chk_fail and
16971 # either __stack_chk_guard, or TLS access to stack guard canary.
16972 if test -f $glibc_header_dir/features.h \
16973 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16974 $glibc_header_dir/features.h > /dev/null; then
16975 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16976 $glibc_header_dir/features.h > /dev/null; then
16977 gcc_cv_libc_provides_ssp=yes
16978 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16979 $glibc_header_dir/features.h > /dev/null \
16980 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16981 $glibc_header_dir/features.h > /dev/null; then
16982 gcc_cv_libc_provides_ssp=yes
16984 fi ;;
16985 *-*-netbsd*)
16987 for ac_func in __stack_chk_guard
16989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16990 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16991 $as_echo_n "checking for $ac_func... " >&6; }
16992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16993 $as_echo_n "(cached) " >&6
16994 else
16995 cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17003 #define $ac_func innocuous_$ac_func
17005 /* System header to define __stub macros and hopefully few prototypes,
17006 which can conflict with char $ac_func (); below.
17007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17008 <limits.h> exists even on freestanding compilers. */
17010 #ifdef __STDC__
17011 # include <limits.h>
17012 #else
17013 # include <assert.h>
17014 #endif
17016 #undef $ac_func
17018 /* Override any GCC internal prototype to avoid an error.
17019 Use char because int might match the return type of a GCC
17020 builtin and then its argument prototype would still apply. */
17021 #ifdef __cplusplus
17022 extern "C"
17023 #endif
17024 char $ac_func ();
17025 /* The GNU C library defines this for functions which it implements
17026 to always fail with ENOSYS. Some functions are actually named
17027 something starting with __ and the normal name is an alias. */
17028 #if defined __stub_$ac_func || defined __stub___$ac_func
17029 choke me
17030 #endif
17033 main ()
17035 return $ac_func ();
17037 return 0;
17039 _ACEOF
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (ac_try="$ac_link"
17042 case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045 esac
17046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17047 $as_echo "$ac_try_echo") >&5
17048 (eval "$ac_link") 2>conftest.er1
17049 ac_status=$?
17050 grep -v '^ *+' conftest.er1 >conftest.err
17051 rm -f conftest.er1
17052 cat conftest.err >&5
17053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } && {
17055 test -z "$ac_c_werror_flag" ||
17056 test ! -s conftest.err
17057 } && test -s conftest$ac_exeext && {
17058 test "$cross_compiling" = yes ||
17059 $as_test_x conftest$ac_exeext
17060 }; then
17061 eval "$as_ac_var=yes"
17062 else
17063 $as_echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 eval "$as_ac_var=no"
17069 rm -rf conftest.dSYM
17070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17071 conftest$ac_exeext conftest.$ac_ext
17073 ac_res=`eval 'as_val=${'$as_ac_var'}
17074 $as_echo "$as_val"'`
17075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17076 $as_echo "$ac_res" >&6; }
17077 if test `eval 'as_val=${'$as_ac_var'}
17078 $as_echo "$as_val"'` = yes; then
17079 cat >>confdefs.h <<_ACEOF
17080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17081 _ACEOF
17082 gcc_cv_libc_provides_ssp=yes
17083 else
17084 gcc_cv_libc_provides_ssp=no
17086 done
17088 *) gcc_cv_libc_provides_ssp=no ;;
17089 esac
17091 { $as_echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
17092 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
17093 if test x$gcc_cv_libc_provides_ssp = xyes; then
17095 cat >>confdefs.h <<\_ACEOF
17096 #define TARGET_LIBC_PROVIDES_SSP 1
17097 _ACEOF
17101 # Find out what GC implementation we want, or may, use.
17103 # Check whether --with-gc was given.
17104 if test "${with_gc+set}" = set; then
17105 withval=$with_gc; case "$withval" in
17106 page)
17107 GGC=ggc-$withval
17109 zone)
17110 GGC=ggc-$withval
17112 cat >>confdefs.h <<\_ACEOF
17113 #define GGC_ZONE 1
17114 _ACEOF
17118 { { $as_echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
17119 $as_echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
17120 { (exit 1); exit 1; }; }
17122 esac
17123 else
17124 GGC=ggc-page
17128 echo "Using $GGC for garbage collection."
17130 # Use the system's zlib library.
17131 zlibdir=-L../zlib
17132 zlibinc="-I\$(srcdir)/../zlib"
17134 # Check whether --with-system-zlib was given.
17135 if test "${with_system_zlib+set}" = set; then
17136 withval=$with_system_zlib; zlibdir=
17137 zlibinc=
17145 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
17146 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17147 # Check whether --enable-maintainer-mode was given.
17148 if test "${enable_maintainer_mode+set}" = set; then
17149 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
17150 else
17151 maintainer_mode=no
17155 { $as_echo "$as_me:$LINENO: result: $maintainer_mode" >&5
17156 $as_echo "$maintainer_mode" >&6; }
17158 if test "$maintainer_mode" = "yes"; then
17159 MAINT=''
17160 else
17161 MAINT='#'
17164 # --------------
17165 # Language hooks
17166 # --------------
17168 # Make empty files to contain the specs and options for each language.
17169 # Then add #include lines to for a compiler that has specs and/or options.
17171 lang_opt_files=
17172 lang_specs_files=
17173 lang_tree_files=
17174 for subdir in . $subdirs
17176 if test -f $srcdir/$subdir/lang.opt; then
17177 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17179 if test -f $srcdir/$subdir/lang-specs.h; then
17180 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17182 if test -f $srcdir/$subdir/$subdir-tree.def; then
17183 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17185 done
17187 # These (without "all_") are set in each config-lang.in.
17188 # `language' must be a single word so is spelled singularly.
17189 all_languages=
17190 all_boot_languages=
17191 all_compilers=
17192 all_stagestuff=
17193 all_outputs='Makefile gccbug mklibgcc libada-mk'
17194 # List of language makefile fragments.
17195 all_lang_makefrags=
17196 # List of language subdirectory makefiles. Deprecated.
17197 all_lang_makefiles=
17198 # Files for gengtype
17199 all_gtfiles="$target_gtfiles"
17200 # Files for gengtype with language
17201 all_gtfiles_files_langs=
17202 all_gtfiles_files_files=
17204 # Add the language fragments.
17205 # Languages are added via two mechanisms. Some information must be
17206 # recorded in makefile variables, these are defined in config-lang.in.
17207 # We accumulate them and plug them into the main Makefile.
17208 # The other mechanism is a set of hooks for each of the main targets
17209 # like `clean', `install', etc.
17211 language_hooks="Make-hooks"
17213 for s in $subdirs
17215 language=
17216 boot_language=
17217 compilers=
17218 stagestuff=
17219 outputs=
17220 gtfiles=
17221 . ${srcdir}/$s/config-lang.in
17222 if test "x$language" = x
17223 then
17224 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
17225 exit 1
17227 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
17228 if test -f ${srcdir}/$s/Makefile.in
17229 then all_lang_makefiles="$s/Makefile"
17231 all_languages="$all_languages $language"
17232 if test "x$boot_language" = xyes
17233 then
17234 all_boot_languages="$all_boot_languages $language"
17236 all_compilers="$all_compilers $compilers"
17237 all_stagestuff="$all_stagestuff $stagestuff"
17238 all_outputs="$all_outputs $outputs"
17239 all_gtfiles="$all_gtfiles $gtfiles"
17240 for f in $gtfiles
17242 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
17243 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
17244 done
17245 done
17247 # Pick up gtfiles for c
17248 gtfiles=
17249 s="c"
17250 . ${srcdir}/c-config-lang.in
17251 all_gtfiles="$all_gtfiles $gtfiles"
17252 for f in $gtfiles
17254 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
17255 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
17256 done
17258 check_languages=
17259 for language in $all_languages
17261 check_languages="$check_languages check-$language"
17262 done
17264 # We link each language in with a set of hooks, reached indirectly via
17265 # lang.${target}.
17267 rm -f Make-hooks
17268 touch Make-hooks
17269 target_list="all.build all.cross start.encap rest.encap tags \
17270 install-normal install-common install-man \
17271 uninstall info man srcextra srcman srcinfo \
17272 mostlyclean clean distclean maintainer-clean \
17273 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
17274 for t in $target_list
17277 for lang in $all_languages
17279 x="$x $lang.$t"
17280 done
17281 echo "lang.$t: $x" >> Make-hooks
17282 done
17284 # --------
17285 # UNSORTED
17286 # --------
17288 # Create .gdbinit.
17290 echo "dir ." > .gdbinit
17291 echo "dir ${srcdir}" >> .gdbinit
17292 if test x$gdb_needs_out_file_path = xyes
17293 then
17294 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17296 if test "x$subdirs" != x; then
17297 for s in $subdirs
17299 echo "dir ${srcdir}/$s" >> .gdbinit
17300 done
17302 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17304 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
17305 # absolute path for gcc_tooldir based on inserting the number of up-directory
17306 # movements required to get from $(exec_prefix) to $(prefix) into the basic
17307 # $(libsubdir)/@(unlibsubdir) based path.
17308 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
17309 # make and thus we'd get different behavior depending on where we built the
17310 # sources.
17311 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
17312 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
17313 else
17314 # An explanation of the sed strings:
17315 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
17316 # -e 's|/$||' match a trailing forward slash and eliminates it
17317 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
17318 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
17320 # (*) Note this pattern overwrites the first character of the string
17321 # with a forward slash if one is not already present. This is not a
17322 # problem because the exact names of the sub-directories concerned is
17323 # unimportant, just the number of them matters.
17325 # The practical upshot of these patterns is like this:
17327 # prefix exec_prefix result
17328 # ------ ----------- ------
17329 # /foo /foo/bar ../
17330 # /foo/ /foo/bar ../
17331 # /foo /foo/bar/ ../
17332 # /foo/ /foo/bar/ ../
17333 # /foo /foo/bar/ugg ../../
17335 dollar='$$'
17336 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
17341 # Find a directory in which to install a shared libgcc.
17343 # Check whether --enable-version-specific-runtime-libs was given.
17344 if test "${enable_version_specific_runtime_libs+set}" = set; then
17345 enableval=$enable_version_specific_runtime_libs;
17350 # Check whether --with-slibdir was given.
17351 if test "${with_slibdir+set}" = set; then
17352 withval=$with_slibdir; slibdir="$with_slibdir"
17353 else
17354 if test "${enable_version_specific_runtime_libs+set}" = set; then
17355 slibdir='$(libsubdir)'
17356 elif test "$host" != "$target"; then
17357 slibdir='$(build_tooldir)/lib'
17358 else
17359 slibdir='$(libdir)'
17365 objdir=`${PWDCMD-pwd}`
17368 # Substitute configuration variables
17432 # Echo link setup.
17433 if test x${build} = x${host} ; then
17434 if test x${host} = x${target} ; then
17435 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17436 else
17437 echo "Links are now set up to build a cross-compiler" 1>&2
17438 echo " from ${host} to ${target}." 1>&2
17440 else
17441 if test x${host} = x${target} ; then
17442 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17443 echo " for ${target}." 1>&2
17444 else
17445 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17446 echo " from ${host} to ${target}." 1>&2
17453 # Configure the subdirectories
17454 # AC_CONFIG_SUBDIRS($subdirs)
17456 # Create the Makefile
17457 # and configure language subdirectories
17458 ac_config_files="$ac_config_files $all_outputs"
17461 ac_config_commands="$ac_config_commands default"
17463 cat >confcache <<\_ACEOF
17464 # This file is a shell script that caches the results of configure
17465 # tests run on this system so they can be shared between configure
17466 # scripts and configure runs, see configure's option --config-cache.
17467 # It is not useful on other systems. If it contains results you don't
17468 # want to keep, you may remove or edit it.
17470 # config.status only pays attention to the cache file if you give it
17471 # the --recheck option to rerun configure.
17473 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17474 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17475 # following values.
17477 _ACEOF
17479 # The following way of writing the cache mishandles newlines in values,
17480 # but we know of no workaround that is simple, portable, and efficient.
17481 # So, we kill variables containing newlines.
17482 # Ultrix sh set writes to stderr and can't be redirected directly,
17483 # and sets the high bit in the cache file unless we assign to the vars.
17485 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17486 eval ac_val=\$$ac_var
17487 case $ac_val in #(
17488 *${as_nl}*)
17489 case $ac_var in #(
17490 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17491 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17492 esac
17493 case $ac_var in #(
17494 _ | IFS | as_nl) ;; #(
17495 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17496 *) $as_unset $ac_var ;;
17497 esac ;;
17498 esac
17499 done
17501 (set) 2>&1 |
17502 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17503 *${as_nl}ac_space=\ *)
17504 # `set' does not quote correctly, so add quotes (double-quote
17505 # substitution turns \\\\ into \\, and sed turns \\ into \).
17506 sed -n \
17507 "s/'/'\\\\''/g;
17508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17509 ;; #(
17511 # `set' quotes correctly as required by POSIX, so do not add quotes.
17512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17514 esac |
17515 sort
17517 sed '
17518 /^ac_cv_env_/b end
17519 t clear
17520 :clear
17521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17522 t end
17523 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17524 :end' >>confcache
17525 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17526 if test -w "$cache_file"; then
17527 test "x$cache_file" != "x/dev/null" &&
17528 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17529 $as_echo "$as_me: updating cache $cache_file" >&6;}
17530 cat confcache >$cache_file
17531 else
17532 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17533 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17536 rm -f confcache
17538 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17539 # Let make expand exec_prefix.
17540 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17542 DEFS=-DHAVE_CONFIG_H
17544 ac_libobjs=
17545 ac_ltlibobjs=
17546 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17547 # 1. Remove the extension, and $U if already installed.
17548 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17549 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17551 # will be set to the directory where LIBOBJS objects are built.
17552 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17553 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17554 done
17555 LIBOBJS=$ac_libobjs
17557 LTLIBOBJS=$ac_ltlibobjs
17561 : ${CONFIG_STATUS=./config.status}
17562 ac_write_fail=0
17563 ac_clean_files_save=$ac_clean_files
17564 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17565 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17566 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17567 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17568 #! $SHELL
17569 # Generated by $as_me.
17570 # Run this file to recreate the current configuration.
17571 # Compiler output produced by configure, useful for debugging
17572 # configure, is in config.log if it exists.
17574 debug=false
17575 ac_cs_recheck=false
17576 ac_cs_silent=false
17577 SHELL=\${CONFIG_SHELL-$SHELL}
17578 _ACEOF
17580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17581 ## --------------------- ##
17582 ## M4sh Initialization. ##
17583 ## --------------------- ##
17585 # Be more Bourne compatible
17586 DUALCASE=1; export DUALCASE # for MKS sh
17587 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17588 emulate sh
17589 NULLCMD=:
17590 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17591 # is contrary to our usage. Disable this feature.
17592 alias -g '${1+"$@"}'='"$@"'
17593 setopt NO_GLOB_SUBST
17594 else
17595 case `(set -o) 2>/dev/null` in
17596 *posix*) set -o posix ;;
17597 esac
17604 # PATH needs CR
17605 # Avoid depending upon Character Ranges.
17606 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17607 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17608 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17609 as_cr_digits='0123456789'
17610 as_cr_alnum=$as_cr_Letters$as_cr_digits
17612 as_nl='
17614 export as_nl
17615 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17616 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17617 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17618 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17619 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17620 as_echo='printf %s\n'
17621 as_echo_n='printf %s'
17622 else
17623 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17624 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17625 as_echo_n='/usr/ucb/echo -n'
17626 else
17627 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17628 as_echo_n_body='eval
17629 arg=$1;
17630 case $arg in
17631 *"$as_nl"*)
17632 expr "X$arg" : "X\\(.*\\)$as_nl";
17633 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17634 esac;
17635 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17637 export as_echo_n_body
17638 as_echo_n='sh -c $as_echo_n_body as_echo'
17640 export as_echo_body
17641 as_echo='sh -c $as_echo_body as_echo'
17644 # The user is always right.
17645 if test "${PATH_SEPARATOR+set}" != set; then
17646 PATH_SEPARATOR=:
17647 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17648 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17649 PATH_SEPARATOR=';'
17653 # Support unset when possible.
17654 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17655 as_unset=unset
17656 else
17657 as_unset=false
17661 # IFS
17662 # We need space, tab and new line, in precisely that order. Quoting is
17663 # there to prevent editors from complaining about space-tab.
17664 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17665 # splitting by setting IFS to empty value.)
17666 IFS=" "" $as_nl"
17668 # Find who we are. Look in the path if we contain no directory separator.
17669 case $0 in
17670 *[\\/]* ) as_myself=$0 ;;
17671 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17672 for as_dir in $PATH
17674 IFS=$as_save_IFS
17675 test -z "$as_dir" && as_dir=.
17676 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17677 done
17678 IFS=$as_save_IFS
17681 esac
17682 # We did not find ourselves, most probably we were run as `sh COMMAND'
17683 # in which case we are not to be found in the path.
17684 if test "x$as_myself" = x; then
17685 as_myself=$0
17687 if test ! -f "$as_myself"; then
17688 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17689 { (exit 1); exit 1; }
17692 # Work around bugs in pre-3.0 UWIN ksh.
17693 for as_var in ENV MAIL MAILPATH
17694 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17695 done
17696 PS1='$ '
17697 PS2='> '
17698 PS4='+ '
17700 # NLS nuisances.
17701 LC_ALL=C
17702 export LC_ALL
17703 LANGUAGE=C
17704 export LANGUAGE
17706 # Required to use basename.
17707 if expr a : '\(a\)' >/dev/null 2>&1 &&
17708 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17709 as_expr=expr
17710 else
17711 as_expr=false
17714 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17715 as_basename=basename
17716 else
17717 as_basename=false
17721 # Name of the executable.
17722 as_me=`$as_basename -- "$0" ||
17723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17724 X"$0" : 'X\(//\)$' \| \
17725 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17726 $as_echo X/"$0" |
17727 sed '/^.*\/\([^/][^/]*\)\/*$/{
17728 s//\1/
17731 /^X\/\(\/\/\)$/{
17732 s//\1/
17735 /^X\/\(\/\).*/{
17736 s//\1/
17739 s/.*/./; q'`
17741 # CDPATH.
17742 $as_unset CDPATH
17746 as_lineno_1=$LINENO
17747 as_lineno_2=$LINENO
17748 test "x$as_lineno_1" != "x$as_lineno_2" &&
17749 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17751 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17752 # uniformly replaced by the line number. The first 'sed' inserts a
17753 # line-number line after each line using $LINENO; the second 'sed'
17754 # does the real work. The second script uses 'N' to pair each
17755 # line-number line with the line containing $LINENO, and appends
17756 # trailing '-' during substitution so that $LINENO is not a special
17757 # case at line end.
17758 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17759 # scripts with optimization help from Paolo Bonzini. Blame Lee
17760 # E. McMahon (1931-1989) for sed's syntax. :-)
17761 sed -n '
17763 /[$]LINENO/=
17764 ' <$as_myself |
17765 sed '
17766 s/[$]LINENO.*/&-/
17767 t lineno
17769 :lineno
17771 :loop
17772 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17773 t loop
17774 s/-\n.*//
17775 ' >$as_me.lineno &&
17776 chmod +x "$as_me.lineno" ||
17777 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17778 { (exit 1); exit 1; }; }
17780 # Don't try to exec as it changes $[0], causing all sort of problems
17781 # (the dirname of $[0] is not the place where we might find the
17782 # original and so on. Autoconf is especially sensitive to this).
17783 . "./$as_me.lineno"
17784 # Exit status is that of the last command.
17785 exit
17789 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17790 as_dirname=dirname
17791 else
17792 as_dirname=false
17795 ECHO_C= ECHO_N= ECHO_T=
17796 case `echo -n x` in
17797 -n*)
17798 case `echo 'x\c'` in
17799 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17800 *) ECHO_C='\c';;
17801 esac;;
17803 ECHO_N='-n';;
17804 esac
17805 if expr a : '\(a\)' >/dev/null 2>&1 &&
17806 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17807 as_expr=expr
17808 else
17809 as_expr=false
17812 rm -f conf$$ conf$$.exe conf$$.file
17813 if test -d conf$$.dir; then
17814 rm -f conf$$.dir/conf$$.file
17815 else
17816 rm -f conf$$.dir
17817 mkdir conf$$.dir 2>/dev/null
17819 if (echo >conf$$.file) 2>/dev/null; then
17820 if ln -s conf$$.file conf$$ 2>/dev/null; then
17821 as_ln_s='ln -s'
17822 # ... but there are two gotchas:
17823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17825 # In both cases, we have to default to `cp -p'.
17826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17827 as_ln_s='cp -p'
17828 elif ln conf$$.file conf$$ 2>/dev/null; then
17829 as_ln_s=ln
17830 else
17831 as_ln_s='cp -p'
17833 else
17834 as_ln_s='cp -p'
17836 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17837 rmdir conf$$.dir 2>/dev/null
17839 if mkdir -p . 2>/dev/null; then
17840 as_mkdir_p=:
17841 else
17842 test -d ./-p && rmdir ./-p
17843 as_mkdir_p=false
17846 if test -x / >/dev/null 2>&1; then
17847 as_test_x='test -x'
17848 else
17849 if ls -dL / >/dev/null 2>&1; then
17850 as_ls_L_option=L
17851 else
17852 as_ls_L_option=
17854 as_test_x='
17855 eval sh -c '\''
17856 if test -d "$1"; then
17857 test -d "$1/.";
17858 else
17859 case $1 in
17860 -*)set "./$1";;
17861 esac;
17862 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17863 ???[sx]*):;;*)false;;esac;fi
17864 '\'' sh
17867 as_executable_p=$as_test_x
17869 # Sed expression to map a string onto a valid CPP name.
17870 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17872 # Sed expression to map a string onto a valid variable name.
17873 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17876 exec 6>&1
17878 # Save the log message, to keep $[0] and so on meaningful, and to
17879 # report actual input values of CONFIG_FILES etc. instead of their
17880 # values after options handling.
17881 ac_log="
17882 This file was extended by $as_me, which was
17883 generated by GNU Autoconf 2.62. Invocation command line was
17885 CONFIG_FILES = $CONFIG_FILES
17886 CONFIG_HEADERS = $CONFIG_HEADERS
17887 CONFIG_LINKS = $CONFIG_LINKS
17888 CONFIG_COMMANDS = $CONFIG_COMMANDS
17889 $ $0 $@
17891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17894 _ACEOF
17896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17897 # Files that config.status was made for.
17898 config_files="$ac_config_files"
17899 config_headers="$ac_config_headers"
17900 config_commands="$ac_config_commands"
17902 _ACEOF
17904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17905 ac_cs_usage="\
17906 \`$as_me' instantiates files from templates according to the
17907 current configuration.
17909 Usage: $0 [OPTIONS] [FILE]...
17911 -h, --help print this help, then exit
17912 -V, --version print version number and configuration settings, then exit
17913 -q, --quiet do not print progress messages
17914 -d, --debug don't remove temporary files
17915 --recheck update $as_me by reconfiguring in the same conditions
17916 --file=FILE[:TEMPLATE]
17917 instantiate the configuration file FILE
17918 --header=FILE[:TEMPLATE]
17919 instantiate the configuration header FILE
17921 Configuration files:
17922 $config_files
17924 Configuration headers:
17925 $config_headers
17927 Configuration commands:
17928 $config_commands
17930 Report bugs to <bug-autoconf@gnu.org>."
17932 _ACEOF
17933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17934 ac_cs_version="\\
17935 config.status
17936 configured by $0, generated by GNU Autoconf 2.62,
17937 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17939 Copyright (C) 2008 Free Software Foundation, Inc.
17940 This config.status script is free software; the Free Software Foundation
17941 gives unlimited permission to copy, distribute and modify it."
17943 ac_pwd='$ac_pwd'
17944 srcdir='$srcdir'
17945 AWK='$AWK'
17946 test -n "\$AWK" || AWK=awk
17947 _ACEOF
17949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17950 # The default lists apply if the user does not specify any file.
17951 ac_need_defaults=:
17952 while test $# != 0
17954 case $1 in
17955 --*=*)
17956 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17957 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17958 ac_shift=:
17961 ac_option=$1
17962 ac_optarg=$2
17963 ac_shift=shift
17965 esac
17967 case $ac_option in
17968 # Handling of the options.
17969 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17970 ac_cs_recheck=: ;;
17971 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17972 $as_echo "$ac_cs_version"; exit ;;
17973 --debug | --debu | --deb | --de | --d | -d )
17974 debug=: ;;
17975 --file | --fil | --fi | --f )
17976 $ac_shift
17977 case $ac_optarg in
17978 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17979 esac
17980 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17981 ac_need_defaults=false;;
17982 --header | --heade | --head | --hea )
17983 $ac_shift
17984 case $ac_optarg in
17985 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17986 esac
17987 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17988 ac_need_defaults=false;;
17989 --he | --h)
17990 # Conflict between --help and --header
17991 { $as_echo "$as_me: error: ambiguous option: $1
17992 Try \`$0 --help' for more information." >&2
17993 { (exit 1); exit 1; }; };;
17994 --help | --hel | -h )
17995 $as_echo "$ac_cs_usage"; exit ;;
17996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17997 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17998 ac_cs_silent=: ;;
18000 # This is an error.
18001 -*) { $as_echo "$as_me: error: unrecognized option: $1
18002 Try \`$0 --help' for more information." >&2
18003 { (exit 1); exit 1; }; } ;;
18005 *) ac_config_targets="$ac_config_targets $1"
18006 ac_need_defaults=false ;;
18008 esac
18009 shift
18010 done
18012 ac_configure_extra_args=
18014 if $ac_cs_silent; then
18015 exec 6>/dev/null
18016 ac_configure_extra_args="$ac_configure_extra_args --silent"
18019 _ACEOF
18020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18021 if \$ac_cs_recheck; then
18022 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18023 shift
18024 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18025 CONFIG_SHELL='$SHELL'
18026 export CONFIG_SHELL
18027 exec "\$@"
18030 _ACEOF
18031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18032 exec 5>>config.log
18034 echo
18035 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18036 ## Running $as_me. ##
18037 _ASBOX
18038 $as_echo "$ac_log"
18039 } >&5
18041 _ACEOF
18042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18044 # INIT-COMMANDS
18046 subdirs='$subdirs'
18048 _ACEOF
18050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18052 # Handling of arguments.
18053 for ac_config_target in $ac_config_targets
18055 case $ac_config_target in
18056 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
18057 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
18058 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18060 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18061 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18062 { (exit 1); exit 1; }; };;
18063 esac
18064 done
18067 # If the user did not use the arguments to specify the items to instantiate,
18068 # then the envvar interface is used. Set only those that are not.
18069 # We use the long form for the default assignment because of an extremely
18070 # bizarre bug on SunOS 4.1.3.
18071 if $ac_need_defaults; then
18072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18074 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18077 # Have a temporary directory for convenience. Make it in the build tree
18078 # simply because there is no reason against having it here, and in addition,
18079 # creating and moving files from /tmp can sometimes cause problems.
18080 # Hook for its removal unless debugging.
18081 # Note that there is a small window in which the directory will not be cleaned:
18082 # after its creation but before its name has been assigned to `$tmp'.
18083 $debug ||
18085 tmp=
18086 trap 'exit_status=$?
18087 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18089 trap '{ (exit 1); exit 1; }' 1 2 13 15
18091 # Create a (secure) tmp directory for tmp files.
18094 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18095 test -n "$tmp" && test -d "$tmp"
18096 } ||
18098 tmp=./conf$$-$RANDOM
18099 (umask 077 && mkdir "$tmp")
18100 } ||
18102 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18103 { (exit 1); exit 1; }
18106 # Set up the scripts for CONFIG_FILES section.
18107 # No need to generate them if there are no CONFIG_FILES.
18108 # This happens for instance with `./config.status config.h'.
18109 if test -n "$CONFIG_FILES"; then
18111 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18112 ac_cs_awk_getline=:
18113 ac_cs_awk_pipe_init=
18114 ac_cs_awk_read_file='
18115 while ((getline aline < (F[key])) > 0)
18116 print(aline)
18117 close(F[key])'
18118 ac_cs_awk_pipe_fini=
18119 else
18120 ac_cs_awk_getline=false
18121 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18122 ac_cs_awk_read_file='
18123 print "|#_!!_#|"
18124 print "cat " F[key] " &&"
18125 '$ac_cs_awk_pipe_init
18126 # The final `:' finishes the AND list.
18127 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18129 ac_cr=' '
18130 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18131 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18132 ac_cs_awk_cr='\\r'
18133 else
18134 ac_cs_awk_cr=$ac_cr
18137 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18138 _ACEOF
18140 # Create commands to substitute file output variables.
18142 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18143 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18144 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18145 echo "_ACAWK" &&
18146 echo "_ACEOF"
18147 } >conf$$files.sh &&
18148 . ./conf$$files.sh ||
18149 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18150 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18151 { (exit 1); exit 1; }; }
18152 rm -f conf$$files.sh
18155 echo "cat >conf$$subs.awk <<_ACEOF" &&
18156 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18157 echo "_ACEOF"
18158 } >conf$$subs.sh ||
18159 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18160 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18161 { (exit 1); exit 1; }; }
18162 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18163 ac_delim='%!_!# '
18164 for ac_last_try in false false false false false :; do
18165 . ./conf$$subs.sh ||
18166 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18167 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18168 { (exit 1); exit 1; }; }
18170 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
18171 break
18172 elif $ac_last_try; then
18173 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18174 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18175 { (exit 1); exit 1; }; }
18176 else
18177 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18179 done
18180 rm -f conf$$subs.sh
18182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18183 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18184 _ACEOF
18185 sed -n '
18187 s/^/S["/; s/!.*/"]=/
18190 s/^[^!]*!//
18191 :repl
18192 t repl
18193 s/'"$ac_delim"'$//
18194 t delim
18197 s/\(.\{148\}\).*/\1/
18198 t more1
18199 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18202 b repl
18203 :more1
18204 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18207 s/.\{148\}//
18208 t nl
18209 :delim
18211 s/\(.\{148\}\).*/\1/
18212 t more2
18213 s/["\\]/\\&/g; s/^/"/; s/$/"/
18216 :more2
18217 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18220 s/.\{148\}//
18221 t delim
18222 ' <conf$$subs.awk | sed '
18223 /^[^""]/{
18225 s/\n//
18227 ' >>$CONFIG_STATUS || ac_write_fail=1
18228 rm -f conf$$subs.awk
18229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18230 _ACAWK
18231 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18232 for (key in S) S_is_set[key] = 1
18233 FS = "\a"
18234 \$ac_cs_awk_pipe_init
18237 line = $ 0
18238 nfields = split(line, field, "@")
18239 substed = 0
18240 len = length(field[1])
18241 for (i = 2; i < nfields; i++) {
18242 key = field[i]
18243 keylen = length(key)
18244 if (S_is_set[key]) {
18245 value = S[key]
18246 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18247 len += length(value) + length(field[++i])
18248 substed = 1
18249 } else
18250 len += 1 + keylen
18252 if (nfields == 3 && !substed) {
18253 key = field[2]
18254 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18255 \$ac_cs_awk_read_file
18256 next
18259 print line
18261 \$ac_cs_awk_pipe_fini
18262 _ACAWK
18263 _ACEOF
18264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18265 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18266 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18267 else
18269 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18270 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18271 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18272 { (exit 1); exit 1; }; }
18273 _ACEOF
18275 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18276 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18277 # trailing colons and then remove the whole line if VPATH becomes empty
18278 # (actually we leave an empty line to preserve line numbers).
18279 if test "x$srcdir" = x.; then
18280 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18281 s/:*\$(srcdir):*/:/
18282 s/:*\${srcdir}:*/:/
18283 s/:*@srcdir@:*/:/
18284 s/^\([^=]*=[ ]*\):*/\1/
18285 s/:*$//
18286 s/^[^=]*=[ ]*$//
18290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18291 fi # test -n "$CONFIG_FILES"
18293 # Set up the scripts for CONFIG_HEADERS section.
18294 # No need to generate them if there are no CONFIG_HEADERS.
18295 # This happens for instance with `./config.status Makefile'.
18296 if test -n "$CONFIG_HEADERS"; then
18297 cat >"$tmp/defines.awk" <<\_ACAWK ||
18298 BEGIN {
18299 _ACEOF
18301 # Transform confdefs.h into an awk script `defines.awk', embedded as
18302 # here-document in config.status, that substitutes the proper values into
18303 # config.h.in to produce config.h.
18305 # Create a delimiter string that does not exist in confdefs.h, to ease
18306 # handling of long lines.
18307 ac_delim='%!_!# '
18308 for ac_last_try in false false :; do
18309 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18310 if test -z "$ac_t"; then
18311 break
18312 elif $ac_last_try; then
18313 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18314 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18315 { (exit 1); exit 1; }; }
18316 else
18317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18319 done
18321 # For the awk script, D is an array of macro values keyed by name,
18322 # likewise P contains macro parameters if any. Preserve backslash
18323 # newline sequences.
18325 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18326 sed -n '
18327 s/.\{148\}/&'"$ac_delim"'/g
18328 t rset
18329 :rset
18330 s/^[ ]*#[ ]*define[ ][ ]*/ /
18331 t def
18333 :def
18334 s/\\$//
18335 t bsnl
18336 s/["\\]/\\&/g
18337 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18338 D["\1"]=" \3"/p
18339 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18341 :bsnl
18342 s/["\\]/\\&/g
18343 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18344 D["\1"]=" \3\\\\\\n"\\/p
18345 t cont
18346 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18347 t cont
18349 :cont
18351 s/.\{148\}/&'"$ac_delim"'/g
18352 t clear
18353 :clear
18354 s/\\$//
18355 t bsnlc
18356 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18358 :bsnlc
18359 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18360 b cont
18361 ' <confdefs.h | sed '
18362 s/'"$ac_delim"'/"\\\
18363 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18366 for (key in D) D_is_set[key] = 1
18367 FS = "\a"
18369 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18370 line = \$ 0
18371 split(line, arg, " ")
18372 if (arg[1] == "#") {
18373 defundef = arg[2]
18374 mac1 = arg[3]
18375 } else {
18376 defundef = substr(arg[1], 2)
18377 mac1 = arg[2]
18379 split(mac1, mac2, "(") #)
18380 macro = mac2[1]
18381 if (D_is_set[macro]) {
18382 # Preserve the white space surrounding the "#".
18383 prefix = substr(line, 1, index(line, defundef) - 1)
18384 print prefix "define", macro P[macro] D[macro]
18385 next
18386 } else {
18387 # Replace #undef with comments. This is necessary, for example,
18388 # in the case of _POSIX_SOURCE, which is predefined and required
18389 # on some systems where configure will not decide to define it.
18390 if (defundef == "undef") {
18391 print "/*", line, "*/"
18392 next
18396 { print }
18397 _ACAWK
18398 _ACEOF
18399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18400 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18401 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18402 { (exit 1); exit 1; }; }
18403 fi # test -n "$CONFIG_HEADERS"
18406 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18407 shift
18408 for ac_tag
18410 case $ac_tag in
18411 :[FHLC]) ac_mode=$ac_tag; continue;;
18412 esac
18413 case $ac_mode$ac_tag in
18414 :[FHL]*:*);;
18415 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18416 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18417 { (exit 1); exit 1; }; };;
18418 :[FH]-) ac_tag=-:-;;
18419 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18420 esac
18421 ac_save_IFS=$IFS
18422 IFS=:
18423 set x $ac_tag
18424 IFS=$ac_save_IFS
18425 shift
18426 ac_file=$1
18427 shift
18429 case $ac_mode in
18430 :L) ac_source=$1;;
18431 :[FH])
18432 ac_file_inputs=
18433 for ac_f
18435 case $ac_f in
18436 -) ac_f="$tmp/stdin";;
18437 *) # Look for the file first in the build tree, then in the source tree
18438 # (if the path is not absolute). The absolute path cannot be DOS-style,
18439 # because $ac_f cannot contain `:'.
18440 test -f "$ac_f" ||
18441 case $ac_f in
18442 [\\/$]*) false;;
18443 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18444 esac ||
18445 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18446 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18447 { (exit 1); exit 1; }; };;
18448 esac
18449 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18450 ac_file_inputs="$ac_file_inputs '$ac_f'"
18451 done
18453 # Let's still pretend it is `configure' which instantiates (i.e., don't
18454 # use $as_me), people would be surprised to read:
18455 # /* config.h. Generated by config.status. */
18456 configure_input='Generated from '`
18457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18458 `' by configure.'
18459 if test x"$ac_file" != x-; then
18460 configure_input="$ac_file. $configure_input"
18461 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18462 $as_echo "$as_me: creating $ac_file" >&6;}
18464 # Neutralize special characters interpreted by sed in replacement strings.
18465 case $configure_input in #(
18466 *\&* | *\|* | *\\* )
18467 ac_sed_conf_input=`$as_echo "$configure_input" |
18468 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18469 *) ac_sed_conf_input=$configure_input;;
18470 esac
18472 case $ac_tag in
18473 *:-:* | *:-) cat >"$tmp/stdin" \
18474 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18475 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18476 { (exit 1); exit 1; }; } ;;
18477 esac
18479 esac
18481 ac_dir=`$as_dirname -- "$ac_file" ||
18482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18483 X"$ac_file" : 'X\(//\)[^/]' \| \
18484 X"$ac_file" : 'X\(//\)$' \| \
18485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18486 $as_echo X"$ac_file" |
18487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18488 s//\1/
18491 /^X\(\/\/\)[^/].*/{
18492 s//\1/
18495 /^X\(\/\/\)$/{
18496 s//\1/
18499 /^X\(\/\).*/{
18500 s//\1/
18503 s/.*/./; q'`
18504 { as_dir="$ac_dir"
18505 case $as_dir in #(
18506 -*) as_dir=./$as_dir;;
18507 esac
18508 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18509 as_dirs=
18510 while :; do
18511 case $as_dir in #(
18512 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18513 *) as_qdir=$as_dir;;
18514 esac
18515 as_dirs="'$as_qdir' $as_dirs"
18516 as_dir=`$as_dirname -- "$as_dir" ||
18517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18518 X"$as_dir" : 'X\(//\)[^/]' \| \
18519 X"$as_dir" : 'X\(//\)$' \| \
18520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18521 $as_echo X"$as_dir" |
18522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18523 s//\1/
18526 /^X\(\/\/\)[^/].*/{
18527 s//\1/
18530 /^X\(\/\/\)$/{
18531 s//\1/
18534 /^X\(\/\).*/{
18535 s//\1/
18538 s/.*/./; q'`
18539 test -d "$as_dir" && break
18540 done
18541 test -z "$as_dirs" || eval "mkdir $as_dirs"
18542 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18543 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18544 { (exit 1); exit 1; }; }; }
18545 ac_builddir=.
18547 case "$ac_dir" in
18548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18551 # A ".." for each directory in $ac_dir_suffix.
18552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18553 case $ac_top_builddir_sub in
18554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18556 esac ;;
18557 esac
18558 ac_abs_top_builddir=$ac_pwd
18559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18560 # for backward compatibility:
18561 ac_top_builddir=$ac_top_build_prefix
18563 case $srcdir in
18564 .) # We are building in place.
18565 ac_srcdir=.
18566 ac_top_srcdir=$ac_top_builddir_sub
18567 ac_abs_top_srcdir=$ac_pwd ;;
18568 [\\/]* | ?:[\\/]* ) # Absolute name.
18569 ac_srcdir=$srcdir$ac_dir_suffix;
18570 ac_top_srcdir=$srcdir
18571 ac_abs_top_srcdir=$srcdir ;;
18572 *) # Relative name.
18573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18574 ac_top_srcdir=$ac_top_build_prefix$srcdir
18575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18576 esac
18577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18580 case $ac_mode in
18583 # CONFIG_FILE
18586 _ACEOF
18588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18589 # If the template does not know about datarootdir, expand it.
18590 # FIXME: This hack should be removed a few years after 2.60.
18591 ac_datarootdir_hack=; ac_datarootdir_seen=
18593 ac_sed_dataroot='
18594 /datarootdir/ {
18598 /@datadir@/p
18599 /@docdir@/p
18600 /@infodir@/p
18601 /@localedir@/p
18602 /@mandir@/p
18604 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18605 *datarootdir*) ac_datarootdir_seen=yes;;
18606 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18607 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18608 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18609 _ACEOF
18610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18611 ac_datarootdir_hack='
18612 s&@datadir@&$datadir&g
18613 s&@docdir@&$docdir&g
18614 s&@infodir@&$infodir&g
18615 s&@localedir@&$localedir&g
18616 s&@mandir@&$mandir&g
18617 s&\\\${datarootdir}&$datarootdir&g' ;;
18618 esac
18619 _ACEOF
18621 # Neutralize VPATH when `$srcdir' = `.'.
18622 # Shell code in configure.ac might set extrasub.
18623 # FIXME: do we really want to maintain this feature?
18624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18625 ac_sed_extra="$ac_vpsub
18626 $extrasub
18627 _ACEOF
18628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18630 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18631 s|@configure_input@|$ac_sed_conf_input|;t t
18632 s&@top_builddir@&$ac_top_builddir_sub&;t t
18633 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18634 s&@srcdir@&$ac_srcdir&;t t
18635 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18636 s&@top_srcdir@&$ac_top_srcdir&;t t
18637 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18638 s&@builddir@&$ac_builddir&;t t
18639 s&@abs_builddir@&$ac_abs_builddir&;t t
18640 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18641 $ac_datarootdir_hack
18643 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18644 if $ac_cs_awk_getline; then
18645 $AWK -f "$tmp/subs.awk"
18646 else
18647 $AWK -f "$tmp/subs.awk" | $SHELL
18648 fi >$tmp/out \
18649 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18650 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18651 { (exit 1); exit 1; }; }
18653 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18654 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18655 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18656 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18657 which seems to be undefined. Please make sure it is defined." >&5
18658 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18659 which seems to be undefined. Please make sure it is defined." >&2;}
18661 rm -f "$tmp/stdin"
18662 case $ac_file in
18663 -) cat "$tmp/out" && rm -f "$tmp/out";;
18664 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18665 esac \
18666 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18667 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18668 { (exit 1); exit 1; }; }
18672 # CONFIG_HEADER
18674 if test x"$ac_file" != x-; then
18676 $as_echo "/* $configure_input */" \
18677 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18678 } >"$tmp/config.h" \
18679 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18680 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18681 { (exit 1); exit 1; }; }
18682 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18683 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18684 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18685 else
18686 rm -f "$ac_file"
18687 mv "$tmp/config.h" "$ac_file" \
18688 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18689 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18690 { (exit 1); exit 1; }; }
18692 else
18693 $as_echo "/* $configure_input */" \
18694 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18695 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18696 $as_echo "$as_me: error: could not create -" >&2;}
18697 { (exit 1); exit 1; }; }
18701 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18702 $as_echo "$as_me: executing $ac_file commands" >&6;}
18704 esac
18707 case $ac_file$ac_mode in
18708 "default":C)
18709 case ${CONFIG_HEADERS} in
18710 *auto-host.h:config.in*)
18711 echo > cstamp-h ;;
18712 esac
18713 # Make sure all the subdirs exist.
18714 for d in $subdirs doc build
18716 test -d $d || mkdir $d
18717 done
18718 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
18719 # bootstrapping and the installation procedure can still use
18720 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
18721 # FLAGS_TO_PASS has been modified to solve the problem there.
18722 # This is virtually a duplicate of what happens in configure.lang; we do
18723 # an extra check to make sure this only happens if ln -s can be used.
18724 case "$LN_S" in
18725 *-s*)
18726 for d in ${subdirs} ; do
18727 STARTDIR=`${PWDCMD-pwd}`
18728 cd $d
18729 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
18731 rm -f $t
18732 $LN_S ../$t $t 2>/dev/null
18733 done
18734 cd $STARTDIR
18735 done
18737 esac
18740 esac
18741 done # for ac_tag
18744 { (exit 0); exit 0; }
18745 _ACEOF
18746 chmod +x $CONFIG_STATUS
18747 ac_clean_files=$ac_clean_files_save
18749 test $ac_write_fail = 0 ||
18750 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18751 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18752 { (exit 1); exit 1; }; }
18755 # configure is writing to config.log, and then calls config.status.
18756 # config.status does its own redirection, appending to config.log.
18757 # Unfortunately, on DOS this fails, as config.log is still kept open
18758 # by configure, so config.status won't be able to write to it; its
18759 # output is simply discarded. So we exec the FD to /dev/null,
18760 # effectively closing config.log, so it can be properly (re)opened and
18761 # appended to by config.status. When coming back to configure, we
18762 # need to make the FD available again.
18763 if test "$no_create" != yes; then
18764 ac_cs_success=:
18765 ac_config_status_args=
18766 test "$silent" = yes &&
18767 ac_config_status_args="$ac_config_status_args --quiet"
18768 exec 5>/dev/null
18769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18770 exec 5>>config.log
18771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18772 # would make configure fail if this is the last instruction.
18773 $ac_cs_success || { (exit 1); exit 1; }
18775 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18776 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
18777 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}