OSDN Git Service

typo
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
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
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="tree.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 target
662 target_cpu
663 target_vendor
664 target_os
665 target_noncanonical
666 build_libsubdir
667 build_subdir
668 host_subdir
669 target_subdir
670 GENINSRC
671 CC
672 CFLAGS
673 LDFLAGS
674 CPPFLAGS
675 ac_ct_CC
676 EXEEXT
677 OBJEXT
678 NO_MINUS_C_MINUS_O
679 OUTPUT_OPTION
680 CPP
681 GREP
682 EGREP
683 loose_warn
684 cxx_compat_warn
685 strict_warn
686 warn_cflags
687 nocommon_flag
688 TREEBROWSER
689 valgrind_path
690 valgrind_path_defines
691 valgrind_command
692 coverage_flags
693 enable_multilib
694 enable_decimal_float
695 enable_fixed_point
696 enable_shared
697 TARGET_SYSTEM_ROOT
698 TARGET_SYSTEM_ROOT_DEFINE
699 CROSS_SYSTEM_HEADER_DIR
700 onestep
701 PKGVERSION
702 REPORT_BUGS_TO
703 REPORT_BUGS_TEXI
704 SET_MAKE
705 AWK
706 LN_S
707 LN
708 RANLIB
709 ranlib_flags
710 INSTALL
711 INSTALL_PROGRAM
712 INSTALL_DATA
713 make_compare_target
714 have_mktemp_command
715 MAKEINFO
716 BUILD_INFO
717 GENERATED_MANPAGES
718 FLEX
719 BISON
720 NM
721 AR
722 COLLECT2_LIBS
723 GNAT_LIBEXC
724 LDEXP_LIB
725 TARGET_GETGROUPS_T
726 LIBICONV
727 LTLIBICONV
728 LIBICONV_DEP
729 manext
730 objext
731 gthread_flags
732 extra_modes_file
733 extra_opt_files
734 USE_NLS
735 LIBINTL
736 LIBINTL_DEP
737 INCINTL
738 XGETTEXT
739 GMSGFMT
740 POSUB
741 CATALOGS
742 DATADIRNAME
743 INSTOBJEXT
744 GENCAT
745 CATOBJEXT
746 host_cc_for_libada
747 CROSS
748 ALL
749 SYSTEM_HEADER_DIR
750 inhibit_libc
751 CC_FOR_BUILD
752 BUILD_CFLAGS
753 STMP_FIXINC
754 STMP_FIXPROTO
755 collect2
756 gcc_cv_as
757 ORIGINAL_AS_FOR_TARGET
758 gcc_cv_ld
759 ORIGINAL_LD_FOR_TARGET
760 gcc_cv_nm
761 ORIGINAL_NM_FOR_TARGET
762 gcc_cv_objdump
763 libgcc_visibility
764 GGC
765 zlibdir
766 zlibinc
767 MAINT
768 gcc_tooldir
769 dollar
770 slibdir
771 objdir
772 subdirs
773 srcdir
774 all_compilers
775 all_gtfiles
776 all_lang_makefrags
777 all_lang_makefiles
778 all_languages
779 all_selected_languages
780 build_exeext
781 build_install_headers_dir
782 build_xm_file_list
783 build_xm_include_list
784 build_xm_defines
785 check_languages
786 cpp_install_dir
787 xmake_file
788 tmake_file
789 extra_gcc_objs
790 extra_headers_list
791 extra_objs
792 extra_parts
793 extra_passes
794 extra_programs
795 float_h_file
796 gcc_config_arguments
797 gcc_gxx_include_dir
798 host_exeext
799 host_xm_file_list
800 host_xm_include_list
801 host_xm_defines
802 out_host_hook_obj
803 install
804 lang_opt_files
805 lang_specs_files
806 lang_tree_files
807 local_prefix
808 md_file
809 objc_boehm_gc
810 out_file
811 out_object_file
812 thread_file
813 tm_file_list
814 tm_include_list
815 tm_defines
816 tm_p_file_list
817 tm_p_include_list
818 xm_file_list
819 xm_include_list
820 xm_defines
821 c_target_objs
822 cxx_target_objs
823 target_cpu_default
824 GMPLIBS
825 GMPINC
826 LIBOBJS
827 LTLIBOBJS'
828 ac_subst_files='language_hooks'
829       ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 CC
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
837 CPP
838 GMPLIBS
839 GMPINC'
840
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892   # If the previous option needs an argument, assign it.
893   if test -n "$ac_prev"; then
894     eval $ac_prev=\$ac_option
895     ac_prev=
896     continue
897   fi
898
899   case $ac_option in
900   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901   *)    ac_optarg=yes ;;
902   esac
903
904   # Accept the important Cygnus configure options, so we can diagnose typos.
905
906   case $ac_dashdash$ac_option in
907   --)
908     ac_dashdash=yes ;;
909
910   -bindir | --bindir | --bindi | --bind | --bin | --bi)
911     ac_prev=bindir ;;
912   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913     bindir=$ac_optarg ;;
914
915   -build | --build | --buil | --bui | --bu)
916     ac_prev=build_alias ;;
917   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918     build_alias=$ac_optarg ;;
919
920   -cache-file | --cache-file | --cache-fil | --cache-fi \
921   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922     ac_prev=cache_file ;;
923   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925     cache_file=$ac_optarg ;;
926
927   --config-cache | -C)
928     cache_file=config.cache ;;
929
930   -datadir | --datadir | --datadi | --datad)
931     ac_prev=datadir ;;
932   -datadir=* | --datadir=* | --datadi=* | --datad=*)
933     datadir=$ac_optarg ;;
934
935   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936   | --dataroo | --dataro | --datar)
937     ac_prev=datarootdir ;;
938   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940     datarootdir=$ac_optarg ;;
941
942   -disable-* | --disable-*)
943     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944     # Reject names that are not valid shell variable names.
945     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
946       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947    { (exit 1); exit 1; }; }
948     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
949     eval enable_$ac_feature=no ;;
950
951   -docdir | --docdir | --docdi | --doc | --do)
952     ac_prev=docdir ;;
953   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954     docdir=$ac_optarg ;;
955
956   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957     ac_prev=dvidir ;;
958   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959     dvidir=$ac_optarg ;;
960
961   -enable-* | --enable-*)
962     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963     # Reject names that are not valid shell variable names.
964     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
965       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
966    { (exit 1); exit 1; }; }
967     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
968     eval enable_$ac_feature=\$ac_optarg ;;
969
970   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972   | --exec | --exe | --ex)
973     ac_prev=exec_prefix ;;
974   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976   | --exec=* | --exe=* | --ex=*)
977     exec_prefix=$ac_optarg ;;
978
979   -gas | --gas | --ga | --g)
980     # Obsolete; use --with-gas.
981     with_gas=yes ;;
982
983   -help | --help | --hel | --he | -h)
984     ac_init_help=long ;;
985   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986     ac_init_help=recursive ;;
987   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988     ac_init_help=short ;;
989
990   -host | --host | --hos | --ho)
991     ac_prev=host_alias ;;
992   -host=* | --host=* | --hos=* | --ho=*)
993     host_alias=$ac_optarg ;;
994
995   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996     ac_prev=htmldir ;;
997   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998   | --ht=*)
999     htmldir=$ac_optarg ;;
1000
1001   -includedir | --includedir | --includedi | --included | --include \
1002   | --includ | --inclu | --incl | --inc)
1003     ac_prev=includedir ;;
1004   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005   | --includ=* | --inclu=* | --incl=* | --inc=*)
1006     includedir=$ac_optarg ;;
1007
1008   -infodir | --infodir | --infodi | --infod | --info | --inf)
1009     ac_prev=infodir ;;
1010   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011     infodir=$ac_optarg ;;
1012
1013   -libdir | --libdir | --libdi | --libd)
1014     ac_prev=libdir ;;
1015   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016     libdir=$ac_optarg ;;
1017
1018   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019   | --libexe | --libex | --libe)
1020     ac_prev=libexecdir ;;
1021   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022   | --libexe=* | --libex=* | --libe=*)
1023     libexecdir=$ac_optarg ;;
1024
1025   -localedir | --localedir | --localedi | --localed | --locale)
1026     ac_prev=localedir ;;
1027   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028     localedir=$ac_optarg ;;
1029
1030   -localstatedir | --localstatedir | --localstatedi | --localstated \
1031   | --localstate | --localstat | --localsta | --localst | --locals)
1032     ac_prev=localstatedir ;;
1033   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035     localstatedir=$ac_optarg ;;
1036
1037   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038     ac_prev=mandir ;;
1039   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040     mandir=$ac_optarg ;;
1041
1042   -nfp | --nfp | --nf)
1043     # Obsolete; use --without-fp.
1044     with_fp=no ;;
1045
1046   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047   | --no-cr | --no-c | -n)
1048     no_create=yes ;;
1049
1050   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052     no_recursion=yes ;;
1053
1054   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056   | --oldin | --oldi | --old | --ol | --o)
1057     ac_prev=oldincludedir ;;
1058   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061     oldincludedir=$ac_optarg ;;
1062
1063   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064     ac_prev=prefix ;;
1065   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066     prefix=$ac_optarg ;;
1067
1068   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069   | --program-pre | --program-pr | --program-p)
1070     ac_prev=program_prefix ;;
1071   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073     program_prefix=$ac_optarg ;;
1074
1075   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076   | --program-suf | --program-su | --program-s)
1077     ac_prev=program_suffix ;;
1078   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080     program_suffix=$ac_optarg ;;
1081
1082   -program-transform-name | --program-transform-name \
1083   | --program-transform-nam | --program-transform-na \
1084   | --program-transform-n | --program-transform- \
1085   | --program-transform | --program-transfor \
1086   | --program-transfo | --program-transf \
1087   | --program-trans | --program-tran \
1088   | --progr-tra | --program-tr | --program-t)
1089     ac_prev=program_transform_name ;;
1090   -program-transform-name=* | --program-transform-name=* \
1091   | --program-transform-nam=* | --program-transform-na=* \
1092   | --program-transform-n=* | --program-transform-=* \
1093   | --program-transform=* | --program-transfor=* \
1094   | --program-transfo=* | --program-transf=* \
1095   | --program-trans=* | --program-tran=* \
1096   | --progr-tra=* | --program-tr=* | --program-t=*)
1097     program_transform_name=$ac_optarg ;;
1098
1099   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100     ac_prev=pdfdir ;;
1101   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102     pdfdir=$ac_optarg ;;
1103
1104   -psdir | --psdir | --psdi | --psd | --ps)
1105     ac_prev=psdir ;;
1106   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107     psdir=$ac_optarg ;;
1108
1109   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110   | -silent | --silent | --silen | --sile | --sil)
1111     silent=yes ;;
1112
1113   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114     ac_prev=sbindir ;;
1115   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116   | --sbi=* | --sb=*)
1117     sbindir=$ac_optarg ;;
1118
1119   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121   | --sharedst | --shareds | --shared | --share | --shar \
1122   | --sha | --sh)
1123     ac_prev=sharedstatedir ;;
1124   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127   | --sha=* | --sh=*)
1128     sharedstatedir=$ac_optarg ;;
1129
1130   -site | --site | --sit)
1131     ac_prev=site ;;
1132   -site=* | --site=* | --sit=*)
1133     site=$ac_optarg ;;
1134
1135   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136     ac_prev=srcdir ;;
1137   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138     srcdir=$ac_optarg ;;
1139
1140   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141   | --syscon | --sysco | --sysc | --sys | --sy)
1142     ac_prev=sysconfdir ;;
1143   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145     sysconfdir=$ac_optarg ;;
1146
1147   -target | --target | --targe | --targ | --tar | --ta | --t)
1148     ac_prev=target_alias ;;
1149   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150     target_alias=$ac_optarg ;;
1151
1152   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153     verbose=yes ;;
1154
1155   -version | --version | --versio | --versi | --vers | -V)
1156     ac_init_version=: ;;
1157
1158   -with-* | --with-*)
1159     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162       { echo "$as_me: error: invalid package name: $ac_package" >&2
1163    { (exit 1); exit 1; }; }
1164     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1165     eval with_$ac_package=\$ac_optarg ;;
1166
1167   -without-* | --without-*)
1168     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169     # Reject names that are not valid shell variable names.
1170     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171       { echo "$as_me: error: invalid package name: $ac_package" >&2
1172    { (exit 1); exit 1; }; }
1173     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1174     eval with_$ac_package=no ;;
1175
1176   --x)
1177     # Obsolete; use --with-x.
1178     with_x=yes ;;
1179
1180   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181   | --x-incl | --x-inc | --x-in | --x-i)
1182     ac_prev=x_includes ;;
1183   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185     x_includes=$ac_optarg ;;
1186
1187   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189     ac_prev=x_libraries ;;
1190   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192     x_libraries=$ac_optarg ;;
1193
1194   -*) { echo "$as_me: error: unrecognized option: $ac_option
1195 Try \`$0 --help' for more information." >&2
1196    { (exit 1); exit 1; }; }
1197     ;;
1198
1199   *=*)
1200     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1204    { (exit 1); exit 1; }; }
1205     eval $ac_envvar=\$ac_optarg
1206     export $ac_envvar ;;
1207
1208   *)
1209     # FIXME: should be removed in autoconf 3.0.
1210     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1214     ;;
1215
1216   esac
1217 done
1218
1219 if test -n "$ac_prev"; then
1220   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221   { echo "$as_me: error: missing argument to $ac_option" >&2
1222    { (exit 1); exit 1; }; }
1223 fi
1224
1225 # Be sure to have absolute directory names.
1226 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227                 datadir sysconfdir sharedstatedir localstatedir includedir \
1228                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229                 libdir localedir mandir
1230 do
1231   eval ac_val=\$$ac_var
1232   case $ac_val in
1233     [\\/$]* | ?:[\\/]* )  continue;;
1234     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235   esac
1236   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1237    { (exit 1); exit 1; }; }
1238 done
1239
1240 # There might be people who depend on the old broken behavior: `$host'
1241 # used to hold the argument of --host etc.
1242 # FIXME: To remove some day.
1243 build=$build_alias
1244 host=$host_alias
1245 target=$target_alias
1246
1247 # FIXME: To remove some day.
1248 if test "x$host_alias" != x; then
1249   if test "x$build_alias" = x; then
1250     cross_compiling=maybe
1251     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1252     If a cross compiler is detected then cross compile mode will be used." >&2
1253   elif test "x$build_alias" != "x$host_alias"; then
1254     cross_compiling=yes
1255   fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267   { echo "$as_me: error: Working directory cannot be determined" >&2
1268    { (exit 1); exit 1; }; }
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270   { echo "$as_me: error: pwd does not report name of working directory" >&2
1271    { (exit 1); exit 1; }; }
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276   ac_srcdir_defaulted=yes
1277   # Try the directory containing this script, then the parent directory.
1278   ac_confdir=`$as_dirname -- "$0" ||
1279 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280          X"$0" : 'X\(//\)[^/]' \| \
1281          X"$0" : 'X\(//\)$' \| \
1282          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1283 echo X"$0" |
1284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\/\)[^/].*/{
1289             s//\1/
1290             q
1291           }
1292           /^X\(\/\/\)$/{
1293             s//\1/
1294             q
1295           }
1296           /^X\(\/\).*/{
1297             s//\1/
1298             q
1299           }
1300           s/.*/./; q'`
1301   srcdir=$ac_confdir
1302   if test ! -r "$srcdir/$ac_unique_file"; then
1303     srcdir=..
1304   fi
1305 else
1306   ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1311    { (exit 1); exit 1; }; }
1312 fi
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1316    { (exit 1); exit 1; }; }
1317         pwd)`
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320   srcdir=.
1321 fi
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1325 case $srcdir in
1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 esac
1328 for ac_var in $ac_precious_vars; do
1329   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330   eval ac_env_${ac_var}_value=\$${ac_var}
1331   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 done
1334
1335 #
1336 # Report the --help message.
1337 #
1338 if test "$ac_init_help" = "long"; then
1339   # Omit some internal or obsolete options to make the list less imposing.
1340   # This message is too long to be a string in the A/UX 3.1 sh.
1341   cat <<_ACEOF
1342 \`configure' configures this package to adapt to many kinds of systems.
1343
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE.  See below for descriptions of some of the useful variables.
1348
1349 Defaults for the options are specified in brackets.
1350
1351 Configuration:
1352   -h, --help              display this help and exit
1353       --help=short        display options specific to this package
1354       --help=recursive    display the short help of all the included packages
1355   -V, --version           display version information and exit
1356   -q, --quiet, --silent   do not print \`checking...' messages
1357       --cache-file=FILE   cache test results in FILE [disabled]
1358   -C, --config-cache      alias for \`--cache-file=config.cache'
1359   -n, --no-create         do not create output files
1360       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1361
1362 Installation directories:
1363   --prefix=PREFIX         install architecture-independent files in PREFIX
1364                           [$ac_default_prefix]
1365   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1366                           [PREFIX]
1367
1368 By default, \`make install' will install all the files in
1369 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1370 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371 for instance \`--prefix=\$HOME'.
1372
1373 For better control, use the options below.
1374
1375 Fine tuning of the installation directories:
1376   --bindir=DIR           user executables [EPREFIX/bin]
1377   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1378   --libexecdir=DIR       program executables [EPREFIX/libexec]
1379   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1380   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1381   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1382   --libdir=DIR           object code libraries [EPREFIX/lib]
1383   --includedir=DIR       C header files [PREFIX/include]
1384   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1385   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1386   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1387   --infodir=DIR          info documentation [DATAROOTDIR/info]
1388   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1389   --mandir=DIR           man documentation [DATAROOTDIR/man]
1390   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1391   --htmldir=DIR          html documentation [DOCDIR]
1392   --dvidir=DIR           dvi documentation [DOCDIR]
1393   --pdfdir=DIR           pdf documentation [DOCDIR]
1394   --psdir=DIR            ps documentation [DOCDIR]
1395 _ACEOF
1396
1397   cat <<\_ACEOF
1398
1399 Program names:
1400   --program-prefix=PREFIX            prepend PREFIX to installed program names
1401   --program-suffix=SUFFIX            append SUFFIX to installed program names
1402   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1403
1404 System types:
1405   --build=BUILD     configure for building on BUILD [guessed]
1406   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1407   --target=TARGET   configure for building compilers for TARGET [HOST]
1408 _ACEOF
1409 fi
1410
1411 if test -n "$ac_init_help"; then
1412
1413   cat <<\_ACEOF
1414
1415 Optional Features:
1416   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1417   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1418   --enable-generated-files-in-srcdir
1419                           put copies of generated files in source dir
1420                           intended for creating source tarballs for users
1421                           without texinfo bison or flex.
1422   --enable-werror-always  enable -Werror despite compiler version
1423   --enable-checking=LIST
1424                           enable expensive run-time checks.  With LIST,
1425                           enable only specific categories of checks.
1426                           Categories are: yes,no,all,none,release.
1427                           Flags are: assert,df,fold,gc,gcac,misc,
1428                           rtlflag,rtl,runtime,tree,valgrind,types.
1429   --enable-mapped-location   location_t is fileline integer cookie
1430   --enable-coverage=LEVEL
1431                           enable compiler's code coverage collection.
1432                           Use to measure compiler performance and locate
1433                           unused parts of the compiler. With LEVEL, specify
1434                           optimization. Values are opt, noopt,
1435                           default is noopt
1436   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1437   --enable-multilib       enable library support for multiple ABIs
1438   --enable-__cxa_atexit   enable __cxa_atexit for C++
1439   --enable-decimal-float={no,yes,bid,dpd}
1440                         enable decimal float extension to C.  Selecting 'bid'
1441                         or 'dpd' choses which decimal floating point format
1442                         to use
1443   --enable-fixed-point    enable fixed-point arithmetic extension to C
1444   --enable-threads        enable thread usage for target GCC
1445   --enable-threads=LIB    use LIB thread package for target GCC
1446   --enable-tls            enable or disable generation of tls code
1447                           overriding the assembler check for tls support
1448   --enable-objc-gc        enable the use of Boehm's garbage collector with
1449                           the GNU Objective-C runtime
1450   --disable-shared        don't provide a shared libgcc
1451   --enable-intermodule    build the compiler in one step
1452   --enable-languages=LIST specify which front-ends to build
1453   --disable-rpath         do not hardcode runtime library paths
1454   --enable-initfini-array       use .init_array/.fini_array sections
1455   --enable-sjlj-exceptions
1456                           arrange to use setjmp/longjmp exception handling
1457   --enable-secureplt      enable -msecure-plt by default for PowerPC
1458   --disable-win32-registry
1459                           disable lookup of installation paths in the
1460                           Registry on Windows hosts
1461   --enable-win32-registry enable registry lookup (default)
1462   --enable-win32-registry=KEY
1463                           use KEY instead of GCC version as the last portion
1464                           of the registry key
1465   --enable-maintainer-mode
1466                           enable make rules and dependencies not useful
1467                           (and sometimes confusing) to the casual installer
1468   --enable-version-specific-runtime-libs
1469                           specify that runtime libraries should be
1470                           installed in a compiler-specific directory
1471
1472 Optional Packages:
1473   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1474   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1475   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1476   --with-local-prefix=DIR specifies directory to put local include
1477   --with-gxx-include-dir=DIR
1478                           specifies directory to put g++ header files
1479   --with-cpp-install-dir=DIR
1480                           install the user visible C preprocessor in DIR
1481                           (relative to PREFIX) as well as PREFIX/bin
1482   --with-gnu-ld           arrange to work with GNU ld.
1483   --with-ld               arrange to use the specified ld (full pathname)
1484   --with-demangler-in-ld  try to use demangler in GNU ld.
1485   --with-gnu-as           arrange to work with GNU as
1486   --with-as               arrange to use the specified as (full pathname)
1487   --with-stabs            arrange to use stabs instead of host debug format
1488   --with-dwarf2           force the default debug format to be DWARF 2
1489   --with-build-sysroot=sysroot
1490                           use sysroot as the system root during the build
1491   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1492   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1493   --with-bugurl=URL       Direct users to URL to report a bug
1494   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1495   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1496   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1497   --with-system-libunwind use installed libunwind
1498   --with-long-double-128  Use 128-bit long double by default.
1499   --with-gc={page,zone}   choose the garbage collection mechanism to use
1500                           with the compiler
1501   --with-system-zlib      use installed libz
1502   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1503   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
1504   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
1505   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
1506
1507 Some influential environment variables:
1508   CC          C compiler command
1509   CFLAGS      C compiler flags
1510   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1511               nonstandard directory <lib dir>
1512   LIBS        libraries to pass to the linker, e.g. -l<library>
1513   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514               you have headers in a nonstandard directory <include dir>
1515   CPP         C preprocessor
1516   GMPLIBS     How to link GMP
1517   GMPINC      How to find GMP include files
1518
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1521
1522 _ACEOF
1523 ac_status=$?
1524 fi
1525
1526 if test "$ac_init_help" = "recursive"; then
1527   # If there are subdirs, report their specific --help.
1528   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529     test -d "$ac_dir" || continue
1530     ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1536   # A ".." for each directory in $ac_dir_suffix.
1537   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1538   case $ac_top_builddir_sub in
1539   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541   esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549   .)  # We are building in place.
1550     ac_srcdir=.
1551     ac_top_srcdir=$ac_top_builddir_sub
1552     ac_abs_top_srcdir=$ac_pwd ;;
1553   [\\/]* | ?:[\\/]* )  # Absolute name.
1554     ac_srcdir=$srcdir$ac_dir_suffix;
1555     ac_top_srcdir=$srcdir
1556     ac_abs_top_srcdir=$srcdir ;;
1557   *) # Relative name.
1558     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559     ac_top_srcdir=$ac_top_build_prefix$srcdir
1560     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564     cd "$ac_dir" || { ac_status=$?; continue; }
1565     # Check for guested configure.
1566     if test -f "$ac_srcdir/configure.gnu"; then
1567       echo &&
1568       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569     elif test -f "$ac_srcdir/configure"; then
1570       echo &&
1571       $SHELL "$ac_srcdir/configure" --help=recursive
1572     else
1573       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574     fi || ac_status=$?
1575     cd "$ac_pwd" || { ac_status=$?; break; }
1576   done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581   cat <<\_ACEOF
1582 configure
1583 generated by GNU Autoconf 2.61
1584
1585 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1586 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590   exit
1591 fi
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1595
1596 It was created by $as_me, which was
1597 generated by GNU Autoconf 2.61.  Invocation command line was
1598
1599   $ $0 $@
1600
1601 _ACEOF
1602 exec 5>>config.log
1603 {
1604 cat <<_ASUNAME
1605 ## --------- ##
1606 ## Platform. ##
1607 ## --------- ##
1608
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1617
1618 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1619 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1622 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1623 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1624 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1625
1626 _ASUNAME
1627
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631   IFS=$as_save_IFS
1632   test -z "$as_dir" && as_dir=.
1633   echo "PATH: $as_dir"
1634 done
1635 IFS=$as_save_IFS
1636
1637 } >&5
1638
1639 cat >&5 <<_ACEOF
1640
1641
1642 ## ----------- ##
1643 ## Core tests. ##
1644 ## ----------- ##
1645
1646 _ACEOF
1647
1648
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1654 ac_configure_args=
1655 ac_configure_args0=
1656 ac_configure_args1=
1657 ac_must_keep_next=false
1658 for ac_pass in 1 2
1659 do
1660   for ac_arg
1661   do
1662     case $ac_arg in
1663     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665     | -silent | --silent | --silen | --sile | --sil)
1666       continue ;;
1667     *\'*)
1668       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669     esac
1670     case $ac_pass in
1671     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1672     2)
1673       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1674       if test $ac_must_keep_next = true; then
1675         ac_must_keep_next=false # Got value, back to normal.
1676       else
1677         case $ac_arg in
1678           *=* | --config-cache | -C | -disable-* | --disable-* \
1679           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681           | -with-* | --with-* | -without-* | --without-* | --x)
1682             case "$ac_configure_args0 " in
1683               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684             esac
1685             ;;
1686           -* ) ac_must_keep_next=true ;;
1687         esac
1688       fi
1689       ac_configure_args="$ac_configure_args '$ac_arg'"
1690       ;;
1691     esac
1692   done
1693 done
1694 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1696
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log.  We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703   # Save into config.log some information that might help in debugging.
1704   {
1705     echo
1706
1707     cat <<\_ASBOX
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1711 _ASBOX
1712     echo
1713     # The following way of writing the cache mishandles newlines in values,
1714 (
1715   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716     eval ac_val=\$$ac_var
1717     case $ac_val in #(
1718     *${as_nl}*)
1719       case $ac_var in #(
1720       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722       esac
1723       case $ac_var in #(
1724       _ | IFS | as_nl) ;; #(
1725       *) $as_unset $ac_var ;;
1726       esac ;;
1727     esac
1728   done
1729   (set) 2>&1 |
1730     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731     *${as_nl}ac_space=\ *)
1732       sed -n \
1733         "s/'\''/'\''\\\\'\'''\''/g;
1734           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735       ;; #(
1736     *)
1737       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1738       ;;
1739     esac |
1740     sort
1741 )
1742     echo
1743
1744     cat <<\_ASBOX
1745 ## ----------------- ##
1746 ## Output variables. ##
1747 ## ----------------- ##
1748 _ASBOX
1749     echo
1750     for ac_var in $ac_subst_vars
1751     do
1752       eval ac_val=\$$ac_var
1753       case $ac_val in
1754       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755       esac
1756       echo "$ac_var='\''$ac_val'\''"
1757     done | sort
1758     echo
1759
1760     if test -n "$ac_subst_files"; then
1761       cat <<\_ASBOX
1762 ## ------------------- ##
1763 ## File substitutions. ##
1764 ## ------------------- ##
1765 _ASBOX
1766       echo
1767       for ac_var in $ac_subst_files
1768       do
1769         eval ac_val=\$$ac_var
1770         case $ac_val in
1771         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772         esac
1773         echo "$ac_var='\''$ac_val'\''"
1774       done | sort
1775       echo
1776     fi
1777
1778     if test -s confdefs.h; then
1779       cat <<\_ASBOX
1780 ## ----------- ##
1781 ## confdefs.h. ##
1782 ## ----------- ##
1783 _ASBOX
1784       echo
1785       cat confdefs.h
1786       echo
1787     fi
1788     test "$ac_signal" != 0 &&
1789       echo "$as_me: caught signal $ac_signal"
1790     echo "$as_me: exit $exit_status"
1791   } >&5
1792   rm -f core *.core core.conftest.* &&
1793     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794     exit $exit_status
1795 ' 0
1796 for ac_signal in 1 2 13 15; do
1797   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1798 done
1799 ac_signal=0
1800
1801 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1802 rm -f -r conftest* confdefs.h
1803
1804 # Predefined preprocessor variables.
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_STRING "$PACKAGE_STRING"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1828 _ACEOF
1829
1830
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer explicitly selected file to automatically selected ones.
1833 if test -n "$CONFIG_SITE"; then
1834   set x "$CONFIG_SITE"
1835 elif test "x$prefix" != xNONE; then
1836   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1837 else
1838   set x "$ac_default_prefix/share/config.site" \
1839         "$ac_default_prefix/etc/config.site"
1840 fi
1841 shift
1842 for ac_site_file
1843 do
1844   if test -r "$ac_site_file"; then
1845     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846 echo "$as_me: loading site script $ac_site_file" >&6;}
1847     sed 's/^/| /' "$ac_site_file" >&5
1848     . "$ac_site_file"
1849   fi
1850 done
1851
1852 if test -r "$cache_file"; then
1853   # Some versions of bash will fail to source /dev/null (special
1854   # files actually), so we avoid doing that.
1855   if test -f "$cache_file"; then
1856     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857 echo "$as_me: loading cache $cache_file" >&6;}
1858     case $cache_file in
1859       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1860       *)                      . "./$cache_file";;
1861     esac
1862   fi
1863 else
1864   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865 echo "$as_me: creating cache $cache_file" >&6;}
1866   >$cache_file
1867 fi
1868
1869 # Check that the precious variables saved in the cache have kept the same
1870 # value.
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874   eval ac_new_set=\$ac_env_${ac_var}_set
1875   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876   eval ac_new_val=\$ac_env_${ac_var}_value
1877   case $ac_old_set,$ac_new_set in
1878     set,)
1879       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881       ac_cache_corrupted=: ;;
1882     ,set)
1883       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885       ac_cache_corrupted=: ;;
1886     ,);;
1887     *)
1888       if test "x$ac_old_val" != "x$ac_new_val"; then
1889         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1890 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1891         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1892 echo "$as_me:   former value:  $ac_old_val" >&2;}
1893         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1894 echo "$as_me:   current value: $ac_new_val" >&2;}
1895         ac_cache_corrupted=:
1896       fi;;
1897   esac
1898   # Pass precious variables to config.status.
1899   if test "$ac_new_set" = set; then
1900     case $ac_new_val in
1901     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902     *) ac_arg=$ac_var=$ac_new_val ;;
1903     esac
1904     case " $ac_configure_args " in
1905       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1906       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1907     esac
1908   fi
1909 done
1910 if $ac_cache_corrupted; then
1911   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915    { (exit 1); exit 1; }; }
1916 fi
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934 ac_ext=c
1935 ac_cpp='$CPP $CPPFLAGS'
1936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939
1940
1941
1942 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1943
1944
1945 gcc_version=`cat $srcdir/BASE-VER`
1946
1947 # Determine the host, build, and target systems
1948 ac_aux_dir=
1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950   if test -f "$ac_dir/install-sh"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/install-sh -c"
1953     break
1954   elif test -f "$ac_dir/install.sh"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/install.sh -c"
1957     break
1958   elif test -f "$ac_dir/shtool"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/shtool install -c"
1961     break
1962   fi
1963 done
1964 if test -z "$ac_aux_dir"; then
1965   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967    { (exit 1); exit 1; }; }
1968 fi
1969
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1977
1978
1979 # Make sure we can run config.sub.
1980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1981   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1982 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1983    { (exit 1); exit 1; }; }
1984
1985 { echo "$as_me:$LINENO: checking build system type" >&5
1986 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1987 if test "${ac_cv_build+set}" = set; then
1988   echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990   ac_build_alias=$build_alias
1991 test "x$ac_build_alias" = x &&
1992   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1993 test "x$ac_build_alias" = x &&
1994   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1995 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1996    { (exit 1); exit 1; }; }
1997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1998   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2000    { (exit 1); exit 1; }; }
2001
2002 fi
2003 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2004 echo "${ECHO_T}$ac_cv_build" >&6; }
2005 case $ac_cv_build in
2006 *-*-*) ;;
2007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2008 echo "$as_me: error: invalid value of canonical build" >&2;}
2009    { (exit 1); exit 1; }; };;
2010 esac
2011 build=$ac_cv_build
2012 ac_save_IFS=$IFS; IFS='-'
2013 set x $ac_cv_build
2014 shift
2015 build_cpu=$1
2016 build_vendor=$2
2017 shift; shift
2018 # Remember, the first character of IFS is used to create $*,
2019 # except with old shells:
2020 build_os=$*
2021 IFS=$ac_save_IFS
2022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2023
2024
2025 { echo "$as_me:$LINENO: checking host system type" >&5
2026 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2027 if test "${ac_cv_host+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   if test "x$host_alias" = x; then
2031   ac_cv_host=$ac_cv_build
2032 else
2033   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2034     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2036    { (exit 1); exit 1; }; }
2037 fi
2038
2039 fi
2040 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2041 echo "${ECHO_T}$ac_cv_host" >&6; }
2042 case $ac_cv_host in
2043 *-*-*) ;;
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2045 echo "$as_me: error: invalid value of canonical host" >&2;}
2046    { (exit 1); exit 1; }; };;
2047 esac
2048 host=$ac_cv_host
2049 ac_save_IFS=$IFS; IFS='-'
2050 set x $ac_cv_host
2051 shift
2052 host_cpu=$1
2053 host_vendor=$2
2054 shift; shift
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2057 host_os=$*
2058 IFS=$ac_save_IFS
2059 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2060
2061
2062 { echo "$as_me:$LINENO: checking target system type" >&5
2063 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_target+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   if test "x$target_alias" = x; then
2068   ac_cv_target=$ac_cv_host
2069 else
2070   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2071     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2073    { (exit 1); exit 1; }; }
2074 fi
2075
2076 fi
2077 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2078 echo "${ECHO_T}$ac_cv_target" >&6; }
2079 case $ac_cv_target in
2080 *-*-*) ;;
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2082 echo "$as_me: error: invalid value of canonical target" >&2;}
2083    { (exit 1); exit 1; }; };;
2084 esac
2085 target=$ac_cv_target
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_target
2088 shift
2089 target_cpu=$1
2090 target_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 target_os=$*
2095 IFS=$ac_save_IFS
2096 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2097
2098
2099 # The aliases save the names the user supplied, while $host etc.
2100 # will get canonicalized.
2101 test -n "$target_alias" &&
2102   test "$program_prefix$program_suffix$program_transform_name" = \
2103     NONENONEs,x,x, &&
2104   program_prefix=${target_alias}-
2105
2106 # Determine the noncanonical target name, for directory use.
2107  case ${build_alias} in
2108   "") build_noncanonical=${build} ;;
2109   *) build_noncanonical=${build_alias} ;;
2110 esac
2111
2112  case ${host_alias} in
2113   "") host_noncanonical=${build_noncanonical} ;;
2114   *) host_noncanonical=${host_alias} ;;
2115 esac
2116
2117  case ${target_alias} in
2118   "") target_noncanonical=${host_noncanonical} ;;
2119   *) target_noncanonical=${target_alias} ;;
2120 esac
2121
2122
2123
2124
2125 # Determine the target- and build-specific subdirectories
2126
2127 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2128 # have matching libraries, they should use host libraries: Makefile.tpl
2129 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2130 # However, they still use the build modules, because the corresponding
2131 # host modules (e.g. bison) are only built for the host when bootstrap
2132 # finishes. So:
2133 # - build_subdir is where we find build modules, and never changes.
2134 # - build_libsubdir is where we find build libraries, and can be overridden.
2135
2136 # Prefix 'build-' so this never conflicts with target_subdir.
2137 build_subdir="build-${build_noncanonical}"
2138
2139 # Check whether --with-build-libsubdir was given.
2140 if test "${with_build_libsubdir+set}" = set; then
2141   withval=$with_build_libsubdir; build_libsubdir="$withval"
2142 else
2143   build_libsubdir="$build_subdir"
2144 fi
2145
2146 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2147 if ( test $srcdir = . && test -d gcc ) \
2148    || test -d $srcdir/../host-${host_noncanonical}; then
2149   host_subdir="host-${host_noncanonical}"
2150 else
2151   host_subdir=.
2152 fi
2153 # No prefix.
2154 target_subdir=${target_noncanonical}
2155
2156
2157 # Set program_transform_name
2158 test "$program_prefix" != NONE &&
2159   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2160 # Use a double $ so make ignores it.
2161 test "$program_suffix" != NONE &&
2162   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2163 # Double any \ or $.  echo might interpret backslashes.
2164 # By default was `s,x,x', remove it if useless.
2165 cat <<\_ACEOF >conftest.sed
2166 s/[\\$]/&&/g;s/;s,x,x,$//
2167 _ACEOF
2168 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2169 rm -f conftest.sed
2170
2171
2172 # Check for bogus environment variables.
2173 # Test if LIBRARY_PATH contains the notation for the current directory
2174 # since this would lead to problems installing/building glibc.
2175 # LIBRARY_PATH contains the current directory if one of the following
2176 # is true:
2177 # - one of the terminals (":" and ";") is the first or last sign
2178 # - two terminals occur directly after each other
2179 # - the path contains an element with a dot in it
2180 { echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
2181 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6; }
2182 case ${LIBRARY_PATH} in
2183   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2184     library_path_setting="contains current directory"
2185     ;;
2186   *)
2187     library_path_setting="ok"
2188     ;;
2189 esac
2190 { echo "$as_me:$LINENO: result: $library_path_setting" >&5
2191 echo "${ECHO_T}$library_path_setting" >&6; }
2192 if test "$library_path_setting" != "ok"; then
2193 { { echo "$as_me:$LINENO: error:
2194 *** LIBRARY_PATH shouldn't contain the current directory when
2195 *** building gcc. Please change the environment variable
2196 *** and run configure again." >&5
2197 echo "$as_me: error:
2198 *** LIBRARY_PATH shouldn't contain the current directory when
2199 *** building gcc. Please change the environment variable
2200 *** and run configure again." >&2;}
2201    { (exit 1); exit 1; }; }
2202 fi
2203
2204 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
2205 # since this would lead to problems installing/building glibc.
2206 # GCC_EXEC_PREFIX contains the current directory if one of the following
2207 # is true:
2208 # - one of the terminals (":" and ";") is the first or last sign
2209 # - two terminals occur directly after each other
2210 # - the path contains an element with a dot in it
2211 { echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
2212 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6; }
2213 case ${GCC_EXEC_PREFIX} in
2214   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2215     gcc_exec_prefix_setting="contains current directory"
2216     ;;
2217   *)
2218     gcc_exec_prefix_setting="ok"
2219     ;;
2220 esac
2221 { echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
2222 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6; }
2223 if test "$gcc_exec_prefix_setting" != "ok"; then
2224 { { echo "$as_me:$LINENO: error:
2225 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2226 *** building gcc. Please change the environment variable
2227 *** and run configure again." >&5
2228 echo "$as_me: error:
2229 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2230 *** building gcc. Please change the environment variable
2231 *** and run configure again." >&2;}
2232    { (exit 1); exit 1; }; }
2233 fi
2234
2235 # -----------
2236 # Directories
2237 # -----------
2238
2239 # Specify the local prefix
2240 local_prefix=
2241
2242 # Check whether --with-local-prefix was given.
2243 if test "${with_local_prefix+set}" = set; then
2244   withval=$with_local_prefix; case "${withval}" in
2245 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2246 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2247    { (exit 1); exit 1; }; } ;;
2248 no)     ;;
2249 *)      local_prefix=$with_local_prefix ;;
2250 esac
2251 fi
2252
2253
2254 # Default local prefix if it is empty
2255 if test x$local_prefix = x; then
2256         local_prefix=/usr/local
2257 fi
2258
2259 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
2260 # passed in by the toplevel make and thus we'd get different behavior
2261 # depending on where we built the sources.
2262 gcc_gxx_include_dir=
2263 # Specify the g++ header file directory
2264
2265 # Check whether --with-gxx-include-dir was given.
2266 if test "${with_gxx_include_dir+set}" = set; then
2267   withval=$with_gxx_include_dir; case "${withval}" in
2268 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
2269 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
2270    { (exit 1); exit 1; }; } ;;
2271 no)     ;;
2272 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
2273 esac
2274 fi
2275
2276
2277 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
2278 if test x${gcc_gxx_include_dir} = x; then
2279   if test x${enable_version_specific_runtime_libs} = xyes; then
2280     gcc_gxx_include_dir='${libsubdir}/include/c++'
2281   else
2282     libstdcxx_incdir='include/c++/$(version)'
2283     if test x$host != x$target; then
2284        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
2285     fi
2286     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
2287   fi
2288 fi
2289
2290
2291 # Check whether --with-cpp_install_dir was given.
2292 if test "${with_cpp_install_dir+set}" = set; then
2293   withval=$with_cpp_install_dir; if test x$withval = xyes; then
2294   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
2295 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
2296    { (exit 1); exit 1; }; }
2297 elif test x$withval != xno; then
2298   cpp_install_dir=$withval
2299 fi
2300 fi
2301
2302
2303 # We would like to our source tree to be readonly.  However when releases or
2304 # pre-releases are generated, the flex/bison generated files as well as the
2305 # various formats of manuals need to be included along with the rest of the
2306 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
2307 # just that.
2308
2309 { echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
2310 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6; }
2311     # Check whether --enable-generated-files-in-srcdir was given.
2312 if test "${enable_generated_files_in_srcdir+set}" = set; then
2313   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
2314 else
2315   generated_files_in_srcdir=no
2316 fi
2317
2318
2319 { echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
2320 echo "${ECHO_T}$generated_files_in_srcdir" >&6; }
2321
2322 if test "$generated_files_in_srcdir" = "yes"; then
2323   GENINSRC=''
2324 else
2325   GENINSRC='#'
2326 fi
2327
2328
2329 # -------------------
2330 # Find default linker
2331 # -------------------
2332
2333 # With GNU ld
2334
2335 # Check whether --with-gnu-ld was given.
2336 if test "${with_gnu_ld+set}" = set; then
2337   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
2338 else
2339   gnu_ld_flag=no
2340 fi
2341
2342
2343 # With pre-defined ld
2344
2345 # Check whether --with-ld was given.
2346 if test "${with_ld+set}" = set; then
2347   withval=$with_ld; DEFAULT_LINKER="$with_ld"
2348 fi
2349
2350 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2351   if test ! -x "$DEFAULT_LINKER"; then
2352     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
2353 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
2354    { (exit 1); exit 1; }; }
2355   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2356     gnu_ld_flag=yes
2357   fi
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define DEFAULT_LINKER "$DEFAULT_LINKER"
2361 _ACEOF
2362
2363 fi
2364
2365 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
2366
2367 cat >>confdefs.h <<_ACEOF
2368 #define HAVE_GNU_LD $gnu_ld
2369 _ACEOF
2370
2371
2372 { echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2373 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6; }
2374 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2375   if test x"$gnu_ld_flag" = x"no"; then
2376     { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2377 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6; }
2378   else
2379     { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2380 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6; }
2381   fi
2382 else
2383   { echo "$as_me:$LINENO: result: no" >&5
2384 echo "${ECHO_T}no" >&6; }
2385 fi
2386
2387 # With demangler in GNU ld
2388
2389 # Check whether --with-demangler-in-ld was given.
2390 if test "${with_demangler_in_ld+set}" = set; then
2391   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
2392 else
2393   demangler_in_ld=no
2394 fi
2395
2396
2397 # ----------------------
2398 # Find default assembler
2399 # ----------------------
2400
2401 # With GNU as
2402
2403 # Check whether --with-gnu-as was given.
2404 if test "${with_gnu_as+set}" = set; then
2405   withval=$with_gnu_as; gas_flag="$with_gnu_as"
2406 else
2407   gas_flag=no
2408 fi
2409
2410
2411
2412 # Check whether --with-as was given.
2413 if test "${with_as+set}" = set; then
2414   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
2415 fi
2416
2417 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2418   if test ! -x "$DEFAULT_ASSEMBLER"; then
2419     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2420 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2421    { (exit 1); exit 1; }; }
2422   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2423     gas_flag=yes
2424   fi
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2428 _ACEOF
2429
2430 fi
2431
2432 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define HAVE_GNU_AS $gnu_as
2436 _ACEOF
2437
2438
2439 { echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2440 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6; }
2441 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2442   if test x"$gas_flag" = x"no"; then
2443     { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2444 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6; }
2445   else
2446     { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2447 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
2448   fi
2449 else
2450   { echo "$as_me:$LINENO: result: no" >&5
2451 echo "${ECHO_T}no" >&6; }
2452 fi
2453
2454 # ---------------
2455 # Find C compiler
2456 # ---------------
2457
2458 # If a non-executable a.out is present (e.g. created by GNU as above even if
2459 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2460 # file, even when creating an executable, so an execution test fails.
2461 # Remove possible default executable files to avoid this.
2462 #
2463 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2464 # Autoconf includes it.
2465 rm -f a.out a.exe b.out
2466
2467 # Find the native compiler
2468 ac_ext=c
2469 ac_cpp='$CPP $CPPFLAGS'
2470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473 if test -n "$ac_tool_prefix"; then
2474   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   if test -n "$CC"; then
2482   ac_cv_prog_CC="$CC" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487   IFS=$as_save_IFS
2488   test -z "$as_dir" && as_dir=.
2489   for ac_exec_ext in '' $ac_executable_extensions; do
2490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493     break 2
2494   fi
2495 done
2496 done
2497 IFS=$as_save_IFS
2498
2499 fi
2500 fi
2501 CC=$ac_cv_prog_CC
2502 if test -n "$CC"; then
2503   { echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6; }
2505 else
2506   { echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6; }
2508 fi
2509
2510
2511 fi
2512 if test -z "$ac_cv_prog_CC"; then
2513   ac_ct_CC=$CC
2514   # Extract the first word of "gcc", so it can be a program name with args.
2515 set dummy gcc; ac_word=$2
2516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   if test -n "$ac_ct_CC"; then
2522   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529   for ac_exec_ext in '' $ac_executable_extensions; do
2530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531     ac_cv_prog_ac_ct_CC="gcc"
2532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533     break 2
2534   fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2542 if test -n "$ac_ct_CC"; then
2543   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2544 echo "${ECHO_T}$ac_ct_CC" >&6; }
2545 else
2546   { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2548 fi
2549
2550   if test "x$ac_ct_CC" = x; then
2551     CC=""
2552   else
2553     case $cross_compiling:$ac_tool_warned in
2554 yes:)
2555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2556 whose name does not start with the host triplet.  If you think this
2557 configuration is useful to you, please write to autoconf@gnu.org." >&5
2558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2559 whose name does not start with the host triplet.  If you think this
2560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2561 ac_tool_warned=yes ;;
2562 esac
2563     CC=$ac_ct_CC
2564   fi
2565 else
2566   CC="$ac_cv_prog_CC"
2567 fi
2568
2569 if test -z "$CC"; then
2570           if test -n "$ac_tool_prefix"; then
2571     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}cc; ac_word=$2
2573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575 if test "${ac_cv_prog_CC+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   if test -n "$CC"; then
2579   ac_cv_prog_CC="$CC" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584   IFS=$as_save_IFS
2585   test -z "$as_dir" && as_dir=.
2586   for ac_exec_ext in '' $ac_executable_extensions; do
2587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588     ac_cv_prog_CC="${ac_tool_prefix}cc"
2589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590     break 2
2591   fi
2592 done
2593 done
2594 IFS=$as_save_IFS
2595
2596 fi
2597 fi
2598 CC=$ac_cv_prog_CC
2599 if test -n "$CC"; then
2600   { echo "$as_me:$LINENO: result: $CC" >&5
2601 echo "${ECHO_T}$CC" >&6; }
2602 else
2603   { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2605 fi
2606
2607
2608   fi
2609 fi
2610 if test -z "$CC"; then
2611   # Extract the first word of "cc", so it can be a program name with args.
2612 set dummy cc; ac_word=$2
2613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615 if test "${ac_cv_prog_CC+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   if test -n "$CC"; then
2619   ac_cv_prog_CC="$CC" # Let the user override the test.
2620 else
2621   ac_prog_rejected=no
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625   IFS=$as_save_IFS
2626   test -z "$as_dir" && as_dir=.
2627   for ac_exec_ext in '' $ac_executable_extensions; do
2628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2630        ac_prog_rejected=yes
2631        continue
2632      fi
2633     ac_cv_prog_CC="cc"
2634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 if test $ac_prog_rejected = yes; then
2642   # We found a bogon in the path, so make sure we never use it.
2643   set dummy $ac_cv_prog_CC
2644   shift
2645   if test $# != 0; then
2646     # We chose a different compiler from the bogus one.
2647     # However, it has the same basename, so the bogon will be chosen
2648     # first if we set CC to just the basename; use the full file name.
2649     shift
2650     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2651   fi
2652 fi
2653 fi
2654 fi
2655 CC=$ac_cv_prog_CC
2656 if test -n "$CC"; then
2657   { echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6; }
2659 else
2660   { echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6; }
2662 fi
2663
2664
2665 fi
2666 if test -z "$CC"; then
2667   if test -n "$ac_tool_prefix"; then
2668   for ac_prog in cl.exe
2669   do
2670     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_CC+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   if test -n "$CC"; then
2678   ac_cv_prog_CC="$CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683   IFS=$as_save_IFS
2684   test -z "$as_dir" && as_dir=.
2685   for ac_exec_ext in '' $ac_executable_extensions; do
2686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689     break 2
2690   fi
2691 done
2692 done
2693 IFS=$as_save_IFS
2694
2695 fi
2696 fi
2697 CC=$ac_cv_prog_CC
2698 if test -n "$CC"; then
2699   { echo "$as_me:$LINENO: result: $CC" >&5
2700 echo "${ECHO_T}$CC" >&6; }
2701 else
2702   { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2704 fi
2705
2706
2707     test -n "$CC" && break
2708   done
2709 fi
2710 if test -z "$CC"; then
2711   ac_ct_CC=$CC
2712   for ac_prog in cl.exe
2713 do
2714   # Extract the first word of "$ac_prog", so it can be a program name with args.
2715 set dummy $ac_prog; ac_word=$2
2716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2718 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2719   echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721   if test -n "$ac_ct_CC"; then
2722   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727   IFS=$as_save_IFS
2728   test -z "$as_dir" && as_dir=.
2729   for ac_exec_ext in '' $ac_executable_extensions; do
2730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731     ac_cv_prog_ac_ct_CC="$ac_prog"
2732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733     break 2
2734   fi
2735 done
2736 done
2737 IFS=$as_save_IFS
2738
2739 fi
2740 fi
2741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742 if test -n "$ac_ct_CC"; then
2743   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2744 echo "${ECHO_T}$ac_ct_CC" >&6; }
2745 else
2746   { echo "$as_me:$LINENO: result: no" >&5
2747 echo "${ECHO_T}no" >&6; }
2748 fi
2749
2750
2751   test -n "$ac_ct_CC" && break
2752 done
2753
2754   if test "x$ac_ct_CC" = x; then
2755     CC=""
2756   else
2757     case $cross_compiling:$ac_tool_warned in
2758 yes:)
2759 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2760 whose name does not start with the host triplet.  If you think this
2761 configuration is useful to you, please write to autoconf@gnu.org." >&5
2762 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2763 whose name does not start with the host triplet.  If you think this
2764 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2765 ac_tool_warned=yes ;;
2766 esac
2767     CC=$ac_ct_CC
2768   fi
2769 fi
2770
2771 fi
2772
2773
2774 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2775 See \`config.log' for more details." >&5
2776 echo "$as_me: error: no acceptable C compiler found in \$PATH
2777 See \`config.log' for more details." >&2;}
2778    { (exit 1); exit 1; }; }
2779
2780 # Provide some information about the compiler.
2781 echo "$as_me:$LINENO: checking for C compiler version" >&5
2782 ac_compiler=`set X $ac_compile; echo $2`
2783 { (ac_try="$ac_compiler --version >&5"
2784 case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789   (eval "$ac_compiler --version >&5") 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }
2793 { (ac_try="$ac_compiler -v >&5"
2794 case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_compiler -v >&5") 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }
2803 { (ac_try="$ac_compiler -V >&5"
2804 case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809   (eval "$ac_compiler -V >&5") 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }
2813
2814 cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h.  */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h.  */
2820
2821 int
2822 main ()
2823 {
2824
2825   ;
2826   return 0;
2827 }
2828 _ACEOF
2829 ac_clean_files_save=$ac_clean_files
2830 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2831 # Try to create an executable without -o first, disregard a.out.
2832 # It will help us diagnose broken compilers, and finding out an intuition
2833 # of exeext.
2834 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2835 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2836 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2837 #
2838 # List of possible output files, starting from the most likely.
2839 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2840 # only as a last resort.  b.out is created by i960 compilers.
2841 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2842 #
2843 # The IRIX 6 linker writes into existing files which may not be
2844 # executable, retaining their permissions.  Remove them first so a
2845 # subsequent execution test works.
2846 ac_rmfiles=
2847 for ac_file in $ac_files
2848 do
2849   case $ac_file in
2850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2851     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2852   esac
2853 done
2854 rm -f $ac_rmfiles
2855
2856 if { (ac_try="$ac_link_default"
2857 case "(($ac_try" in
2858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859   *) ac_try_echo=$ac_try;;
2860 esac
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862   (eval "$ac_link_default") 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }; then
2866   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2867 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2868 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2869 # so that the user can short-circuit this test for compilers unknown to
2870 # Autoconf.
2871 for ac_file in $ac_files ''
2872 do
2873   test -f "$ac_file" || continue
2874   case $ac_file in
2875     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2876         ;;
2877     [ab].out )
2878         # We found the default executable, but exeext='' is most
2879         # certainly right.
2880         break;;
2881     *.* )
2882         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2883         then :; else
2884            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2885         fi
2886         # We set ac_cv_exeext here because the later test for it is not
2887         # safe: cross compilers may not add the suffix if given an `-o'
2888         # argument, so we may need to know it at that point already.
2889         # Even if this section looks crufty: it has the advantage of
2890         # actually working.
2891         break;;
2892     * )
2893         break;;
2894   esac
2895 done
2896 test "$ac_cv_exeext" = no && ac_cv_exeext=
2897
2898 else
2899   ac_file=''
2900 fi
2901
2902 { echo "$as_me:$LINENO: result: $ac_file" >&5
2903 echo "${ECHO_T}$ac_file" >&6; }
2904 if test -z "$ac_file"; then
2905   echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2907
2908 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: C compiler cannot create executables
2911 See \`config.log' for more details." >&2;}
2912    { (exit 77); exit 77; }; }
2913 fi
2914
2915 ac_exeext=$ac_cv_exeext
2916
2917 # Check that the compiler produces executables we can run.  If not, either
2918 # the compiler is broken, or we cross compile.
2919 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2920 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2921 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2922 # If not cross compiling, check that we can run a simple program.
2923 if test "$cross_compiling" != yes; then
2924   if { ac_try='./$ac_file'
2925   { (case "(($ac_try" in
2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927   *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930   (eval "$ac_try") 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; }; then
2934     cross_compiling=no
2935   else
2936     if test "$cross_compiling" = maybe; then
2937         cross_compiling=yes
2938     else
2939         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2940 If you meant to cross compile, use \`--host'.
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: cannot run C compiled programs.
2943 If you meant to cross compile, use \`--host'.
2944 See \`config.log' for more details." >&2;}
2945    { (exit 1); exit 1; }; }
2946     fi
2947   fi
2948 fi
2949 { echo "$as_me:$LINENO: result: yes" >&5
2950 echo "${ECHO_T}yes" >&6; }
2951
2952 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2953 ac_clean_files=$ac_clean_files_save
2954 # Check that the compiler produces executables we can run.  If not, either
2955 # the compiler is broken, or we cross compile.
2956 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2957 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2958 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2959 echo "${ECHO_T}$cross_compiling" >&6; }
2960
2961 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2962 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2963 if { (ac_try="$ac_link"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_link") 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; then
2973   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2974 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2975 # work properly (i.e., refer to `conftest.exe'), while it won't with
2976 # `rm'.
2977 for ac_file in conftest.exe conftest conftest.*; do
2978   test -f "$ac_file" || continue
2979   case $ac_file in
2980     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2981     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982           break;;
2983     * ) break;;
2984   esac
2985 done
2986 else
2987   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2988 See \`config.log' for more details." >&5
2989 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2990 See \`config.log' for more details." >&2;}
2991    { (exit 1); exit 1; }; }
2992 fi
2993
2994 rm -f conftest$ac_cv_exeext
2995 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2996 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2997
2998 rm -f conftest.$ac_ext
2999 EXEEXT=$ac_cv_exeext
3000 ac_exeext=$EXEEXT
3001 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3002 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3003 if test "${ac_cv_objext+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.o conftest.obj
3022 if { (ac_try="$ac_compile"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_compile") 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; then
3032   for ac_file in conftest.o conftest.obj conftest.*; do
3033   test -f "$ac_file" || continue;
3034   case $ac_file in
3035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3036     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3037        break;;
3038   esac
3039 done
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3045 See \`config.log' for more details." >&5
3046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3047 See \`config.log' for more details." >&2;}
3048    { (exit 1); exit 1; }; }
3049 fi
3050
3051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3052 fi
3053 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3054 echo "${ECHO_T}$ac_cv_objext" >&6; }
3055 OBJEXT=$ac_cv_objext
3056 ac_objext=$OBJEXT
3057 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3060   echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062   cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h.  */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h.  */
3068
3069 int
3070 main ()
3071 {
3072 #ifndef __GNUC__
3073        choke me
3074 #endif
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_compile") 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } && {
3094          test -z "$ac_c_werror_flag" ||
3095          test ! -s conftest.err
3096        } && test -s conftest.$ac_objext; then
3097   ac_compiler_gnu=yes
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102         ac_compiler_gnu=no
3103 fi
3104
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3107
3108 fi
3109 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3111 GCC=`test $ac_compiler_gnu = yes && echo yes`
3112 ac_test_CFLAGS=${CFLAGS+set}
3113 ac_save_CFLAGS=$CFLAGS
3114 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3115 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_cc_g+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   ac_save_c_werror_flag=$ac_c_werror_flag
3120    ac_c_werror_flag=yes
3121    ac_cv_prog_cc_g=no
3122    CFLAGS="-g"
3123    cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_compile") 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } && {
3152          test -z "$ac_c_werror_flag" ||
3153          test ! -s conftest.err
3154        } && test -s conftest.$ac_objext; then
3155   ac_cv_prog_cc_g=yes
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160         CFLAGS=""
3161       cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   :
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198         ac_c_werror_flag=$ac_save_c_werror_flag
3199          CFLAGS="-g"
3200          cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h.  */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h.  */
3206
3207 int
3208 main ()
3209 {
3210
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (ac_try="$ac_compile"
3217 case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222   (eval "$ac_compile") 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } && {
3229          test -z "$ac_c_werror_flag" ||
3230          test ! -s conftest.err
3231        } && test -s conftest.$ac_objext; then
3232   ac_cv_prog_cc_g=yes
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237
3238 fi
3239
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 fi
3242
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 fi
3245
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247    ac_c_werror_flag=$ac_save_c_werror_flag
3248 fi
3249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3250 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3251 if test "$ac_test_CFLAGS" = set; then
3252   CFLAGS=$ac_save_CFLAGS
3253 elif test $ac_cv_prog_cc_g = yes; then
3254   if test "$GCC" = yes; then
3255     CFLAGS="-g -O2"
3256   else
3257     CFLAGS="-g"
3258   fi
3259 else
3260   if test "$GCC" = yes; then
3261     CFLAGS="-O2"
3262   else
3263     CFLAGS=
3264   fi
3265 fi
3266 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3267 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3268 if test "${ac_cv_prog_cc_c89+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   ac_cv_prog_cc_c89=no
3272 ac_save_CC=$CC
3273 cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h.  */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h.  */
3279 #include <stdarg.h>
3280 #include <stdio.h>
3281 #include <sys/types.h>
3282 #include <sys/stat.h>
3283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3284 struct buf { int x; };
3285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3286 static char *e (p, i)
3287      char **p;
3288      int i;
3289 {
3290   return p[i];
3291 }
3292 static char *f (char * (*g) (char **, int), char **p, ...)
3293 {
3294   char *s;
3295   va_list v;
3296   va_start (v,p);
3297   s = g (p, va_arg (v,int));
3298   va_end (v);
3299   return s;
3300 }
3301
3302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3303    function prototypes and stuff, but not '\xHH' hex character constants.
3304    These don't provoke an error unfortunately, instead are silently treated
3305    as 'x'.  The following induces an error, until -std is added to get
3306    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3307    array size at least.  It's necessary to write '\x00'==0 to get something
3308    that's true only with -std.  */
3309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3310
3311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3312    inside strings and character constants.  */
3313 #define FOO(x) 'x'
3314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3315
3316 int test (int i, double x);
3317 struct s1 {int (*f) (int a);};
3318 struct s2 {int (*f) (double a);};
3319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3320 int argc;
3321 char **argv;
3322 int
3323 main ()
3324 {
3325 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3331         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 do
3333   CC="$ac_save_CC $ac_arg"
3334   rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_compile") 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } && {
3348          test -z "$ac_c_werror_flag" ||
3349          test ! -s conftest.err
3350        } && test -s conftest.$ac_objext; then
3351   ac_cv_prog_cc_c89=$ac_arg
3352 else
3353   echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
3357 fi
3358
3359 rm -f core conftest.err conftest.$ac_objext
3360   test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 done
3362 rm -f conftest.$ac_ext
3363 CC=$ac_save_CC
3364
3365 fi
3366 # AC_CACHE_VAL
3367 case "x$ac_cv_prog_cc_c89" in
3368   x)
3369     { echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6; } ;;
3371   xno)
3372     { echo "$as_me:$LINENO: result: unsupported" >&5
3373 echo "${ECHO_T}unsupported" >&6; } ;;
3374   *)
3375     CC="$CC $ac_cv_prog_cc_c89"
3376     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3378 esac
3379
3380
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3387 if test "x$CC" != xcc; then
3388   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3389 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3390 else
3391   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3392 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3393 fi
3394 set dummy $CC; ac_cc=`echo $2 |
3395                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3396 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3397   echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399   cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h.  */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h.  */
3405
3406 int
3407 main ()
3408 {
3409
3410   ;
3411   return 0;
3412 }
3413 _ACEOF
3414 # Make sure it works both with $CC and with simple cc.
3415 # We do the test twice because some compilers refuse to overwrite an
3416 # existing .o file with -o, though they will create one.
3417 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3418 rm -f conftest2.*
3419 if { (case "(($ac_try" in
3420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421   *) ac_try_echo=$ac_try;;
3422 esac
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424   (eval "$ac_try") 2>&5
3425   ac_status=$?
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } &&
3428    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433   (eval "$ac_try") 2>&5
3434   ac_status=$?
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); };
3437 then
3438   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3439   if test "x$CC" != xcc; then
3440     # Test first that cc exists at all.
3441     if { ac_try='cc -c conftest.$ac_ext >&5'
3442   { (case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447   (eval "$ac_try") 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }; }; then
3451       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3452       rm -f conftest2.*
3453       if { (case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458   (eval "$ac_try") 2>&5
3459   ac_status=$?
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); } &&
3462          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467   (eval "$ac_try") 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); };
3471       then
3472         # cc works too.
3473         :
3474       else
3475         # cc exists but doesn't like -o.
3476         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3477       fi
3478     fi
3479   fi
3480 else
3481   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3482 fi
3483 rm -f core conftest*
3484
3485 fi
3486 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3487   { echo "$as_me:$LINENO: result: yes" >&5
3488 echo "${ECHO_T}yes" >&6; }
3489 else
3490   { echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6; }
3492
3493 cat >>confdefs.h <<\_ACEOF
3494 #define NO_MINUS_C_MINUS_O 1
3495 _ACEOF
3496
3497 fi
3498
3499 # expand $ac_aux_dir to an absolute path
3500 am_aux_dir=`cd $ac_aux_dir && pwd`
3501
3502 # FIXME: we rely on the cache variable name because
3503 # there is no other way.
3504 set dummy $CC
3505 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3506 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3507    # Losing compiler, so override with the script.
3508    # FIXME: It is wrong to rewrite CC.
3509    # But if we don't then we get into trouble of one sort or another.
3510    # A longer-term fix would be to have automake use am__CC in this case,
3511    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3512    CC="$am_aux_dir/compile $CC"
3513 fi
3514
3515 # autoconf is lame and doesn't give us any substitution variable for this.
3516 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3517   NO_MINUS_C_MINUS_O=yes
3518 else
3519   OUTPUT_OPTION='-o $@'
3520 fi
3521
3522
3523
3524 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3525 # optimizations to be activated explicitly by the toplevel.
3526 case "$CC" in
3527   */prev-gcc/xgcc*) ;;
3528   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3529 esac
3530
3531
3532 # -------------------------
3533 # Check C compiler features
3534 # -------------------------
3535
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3542 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3543 # On Suns, sometimes $CPP names a directory.
3544 if test -n "$CPP" && test -d "$CPP"; then
3545   CPP=
3546 fi
3547 if test -z "$CPP"; then
3548   if test "${ac_cv_prog_CPP+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551       # Double quotes because CPP needs to be expanded
3552     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3553     do
3554       ac_preproc_ok=false
3555 for ac_c_preproc_warn_flag in '' yes
3556 do
3557   # Use a header file that comes with gcc, so configuring glibc
3558   # with a fresh cross-compiler works.
3559   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560   # <limits.h> exists even on freestanding compilers.
3561   # On the NeXT, cc -E runs the code through the compiler's parser,
3562   # not just through cpp. "Syntax error" is here to catch this case.
3563   cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h.  */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h.  */
3569 #ifdef __STDC__
3570 # include <limits.h>
3571 #else
3572 # include <assert.h>
3573 #endif
3574                      Syntax error
3575 _ACEOF
3576 if { (ac_try="$ac_cpp conftest.$ac_ext"
3577 case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3583   ac_status=$?
3584   grep -v '^ *+' conftest.er1 >conftest.err
3585   rm -f conftest.er1
3586   cat conftest.err >&5
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); } >/dev/null && {
3589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3590          test ! -s conftest.err
3591        }; then
3592   :
3593 else
3594   echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597   # Broken: fails on valid input.
3598 continue
3599 fi
3600
3601 rm -f conftest.err conftest.$ac_ext
3602
3603   # OK, works on sane cases.  Now check whether nonexistent headers
3604   # can be detected and how.
3605   cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611 #include <ac_nonexistent.h>
3612 _ACEOF
3613 if { (ac_try="$ac_cpp conftest.$ac_ext"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3620   ac_status=$?
3621   grep -v '^ *+' conftest.er1 >conftest.err
3622   rm -f conftest.er1
3623   cat conftest.err >&5
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); } >/dev/null && {
3626          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3627          test ! -s conftest.err
3628        }; then
3629   # Broken: success on invalid input.
3630 continue
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635   # Passes both tests.
3636 ac_preproc_ok=:
3637 break
3638 fi
3639
3640 rm -f conftest.err conftest.$ac_ext
3641
3642 done
3643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644 rm -f conftest.err conftest.$ac_ext
3645 if $ac_preproc_ok; then
3646   break
3647 fi
3648
3649     done
3650     ac_cv_prog_CPP=$CPP
3651
3652 fi
3653   CPP=$ac_cv_prog_CPP
3654 else
3655   ac_cv_prog_CPP=$CPP
3656 fi
3657 { echo "$as_me:$LINENO: result: $CPP" >&5
3658 echo "${ECHO_T}$CPP" >&6; }
3659 ac_preproc_ok=false
3660 for ac_c_preproc_warn_flag in '' yes
3661 do
3662   # Use a header file that comes with gcc, so configuring glibc
3663   # with a fresh cross-compiler works.
3664   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3665   # <limits.h> exists even on freestanding compilers.
3666   # On the NeXT, cc -E runs the code through the compiler's parser,
3667   # not just through cpp. "Syntax error" is here to catch this case.
3668   cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 #ifdef __STDC__
3675 # include <limits.h>
3676 #else
3677 # include <assert.h>
3678 #endif
3679                      Syntax error
3680 _ACEOF
3681 if { (ac_try="$ac_cpp conftest.$ac_ext"
3682 case "(($ac_try" in
3683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684   *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3688   ac_status=$?
3689   grep -v '^ *+' conftest.er1 >conftest.err
3690   rm -f conftest.er1
3691   cat conftest.err >&5
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); } >/dev/null && {
3694          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3695          test ! -s conftest.err
3696        }; then
3697   :
3698 else
3699   echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702   # Broken: fails on valid input.
3703 continue
3704 fi
3705
3706 rm -f conftest.err conftest.$ac_ext
3707
3708   # OK, works on sane cases.  Now check whether nonexistent headers
3709   # can be detected and how.
3710   cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h.  */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h.  */
3716 #include <ac_nonexistent.h>
3717 _ACEOF
3718 if { (ac_try="$ac_cpp conftest.$ac_ext"
3719 case "(($ac_try" in
3720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721   *) ac_try_echo=$ac_try;;
3722 esac
3723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3725   ac_status=$?
3726   grep -v '^ *+' conftest.er1 >conftest.err
3727   rm -f conftest.er1
3728   cat conftest.err >&5
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); } >/dev/null && {
3731          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3732          test ! -s conftest.err
3733        }; then
3734   # Broken: success on invalid input.
3735 continue
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740   # Passes both tests.
3741 ac_preproc_ok=:
3742 break
3743 fi
3744
3745 rm -f conftest.err conftest.$ac_ext
3746
3747 done
3748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3749 rm -f conftest.err conftest.$ac_ext
3750 if $ac_preproc_ok; then
3751   :
3752 else
3753   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3754 See \`config.log' for more details." >&5
3755 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3756 See \`config.log' for more details." >&2;}
3757    { (exit 1); exit 1; }; }
3758 fi
3759
3760 ac_ext=c
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765
3766
3767 { echo "$as_me:$LINENO: checking for inline" >&5
3768 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3769 if test "${ac_cv_c_inline+set}" = set; then
3770   echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772   ac_cv_c_inline=no
3773 for ac_kw in inline __inline__ __inline; do
3774   cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h.  */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h.  */
3780 #ifndef __cplusplus
3781 typedef int foo_t;
3782 static $ac_kw foo_t static_foo () {return 0; }
3783 $ac_kw foo_t foo () {return 0; }
3784 #endif
3785
3786 _ACEOF
3787 rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794   (eval "$ac_compile") 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } && {
3801          test -z "$ac_c_werror_flag" ||
3802          test ! -s conftest.err
3803        } && test -s conftest.$ac_objext; then
3804   ac_cv_c_inline=$ac_kw
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809
3810 fi
3811
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813   test "$ac_cv_c_inline" != no && break
3814 done
3815
3816 fi
3817 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3818 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3819
3820
3821 case $ac_cv_c_inline in
3822   inline | yes) ;;
3823   *)
3824     case $ac_cv_c_inline in
3825       no) ac_val=;;
3826       *) ac_val=$ac_cv_c_inline;;
3827     esac
3828     cat >>confdefs.h <<_ACEOF
3829 #ifndef __cplusplus
3830 #define inline $ac_val
3831 #endif
3832 _ACEOF
3833     ;;
3834 esac
3835
3836
3837 # sizeof(char) is 1 by definition.
3838
3839 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3840 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3841 if test "${ac_cv_path_GREP+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   # Extract the first word of "grep ggrep" to use in msg output
3845 if test -z "$GREP"; then
3846 set dummy grep ggrep; ac_prog_name=$2
3847 if test "${ac_cv_path_GREP+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   ac_path_GREP_found=false
3851 # Loop through the user's path and test for each of PROGNAME-LIST
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857   for ac_prog in grep ggrep; do
3858   for ac_exec_ext in '' $ac_executable_extensions; do
3859     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3860     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3861     # Check for GNU ac_path_GREP and select it if it is found.
3862   # Check for GNU $ac_path_GREP
3863 case `"$ac_path_GREP" --version 2>&1` in
3864 *GNU*)
3865   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3866 *)
3867   ac_count=0
3868   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3869   while :
3870   do
3871     cat "conftest.in" "conftest.in" >"conftest.tmp"
3872     mv "conftest.tmp" "conftest.in"
3873     cp "conftest.in" "conftest.nl"
3874     echo 'GREP' >> "conftest.nl"
3875     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3876     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3877     ac_count=`expr $ac_count + 1`
3878     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3879       # Best one so far, save it but keep looking for a better one
3880       ac_cv_path_GREP="$ac_path_GREP"
3881       ac_path_GREP_max=$ac_count
3882     fi
3883     # 10*(2^10) chars as input seems more than enough
3884     test $ac_count -gt 10 && break
3885   done
3886   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3887 esac
3888
3889
3890     $ac_path_GREP_found && break 3
3891   done
3892 done
3893
3894 done
3895 IFS=$as_save_IFS
3896
3897
3898 fi
3899
3900 GREP="$ac_cv_path_GREP"
3901 if test -z "$GREP"; then
3902   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3903 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3904    { (exit 1); exit 1; }; }
3905 fi
3906
3907 else
3908   ac_cv_path_GREP=$GREP
3909 fi
3910
3911
3912 fi
3913 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3914 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3915  GREP="$ac_cv_path_GREP"
3916
3917
3918 { echo "$as_me:$LINENO: checking for egrep" >&5
3919 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3920 if test "${ac_cv_path_EGREP+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3924    then ac_cv_path_EGREP="$GREP -E"
3925    else
3926      # Extract the first word of "egrep" to use in msg output
3927 if test -z "$EGREP"; then
3928 set dummy egrep; ac_prog_name=$2
3929 if test "${ac_cv_path_EGREP+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   ac_path_EGREP_found=false
3933 # Loop through the user's path and test for each of PROGNAME-LIST
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3936 do
3937   IFS=$as_save_IFS
3938   test -z "$as_dir" && as_dir=.
3939   for ac_prog in egrep; do
3940   for ac_exec_ext in '' $ac_executable_extensions; do
3941     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3942     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3943     # Check for GNU ac_path_EGREP and select it if it is found.
3944   # Check for GNU $ac_path_EGREP
3945 case `"$ac_path_EGREP" --version 2>&1` in
3946 *GNU*)
3947   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3948 *)
3949   ac_count=0
3950   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3951   while :
3952   do
3953     cat "conftest.in" "conftest.in" >"conftest.tmp"
3954     mv "conftest.tmp" "conftest.in"
3955     cp "conftest.in" "conftest.nl"
3956     echo 'EGREP' >> "conftest.nl"
3957     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3958     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3959     ac_count=`expr $ac_count + 1`
3960     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3961       # Best one so far, save it but keep looking for a better one
3962       ac_cv_path_EGREP="$ac_path_EGREP"
3963       ac_path_EGREP_max=$ac_count
3964     fi
3965     # 10*(2^10) chars as input seems more than enough
3966     test $ac_count -gt 10 && break
3967   done
3968   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3969 esac
3970
3971
3972     $ac_path_EGREP_found && break 3
3973   done
3974 done
3975
3976 done
3977 IFS=$as_save_IFS
3978
3979
3980 fi
3981
3982 EGREP="$ac_cv_path_EGREP"
3983 if test -z "$EGREP"; then
3984   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3985 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3986    { (exit 1); exit 1; }; }
3987 fi
3988
3989 else
3990   ac_cv_path_EGREP=$EGREP
3991 fi
3992
3993
3994    fi
3995 fi
3996 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3997 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3998  EGREP="$ac_cv_path_EGREP"
3999
4000
4001 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4002 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4003 if test "${ac_cv_header_stdc+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012 #include <stdlib.h>
4013 #include <stdarg.h>
4014 #include <string.h>
4015 #include <float.h>
4016
4017 int
4018 main ()
4019 {
4020
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 rm -f conftest.$ac_objext
4026 if { (ac_try="$ac_compile"
4027 case "(($ac_try" in
4028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029   *) ac_try_echo=$ac_try;;
4030 esac
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032   (eval "$ac_compile") 2>conftest.er1
4033   ac_status=$?
4034   grep -v '^ *+' conftest.er1 >conftest.err
4035   rm -f conftest.er1
4036   cat conftest.err >&5
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); } && {
4039          test -z "$ac_c_werror_flag" ||
4040          test ! -s conftest.err
4041        } && test -s conftest.$ac_objext; then
4042   ac_cv_header_stdc=yes
4043 else
4044   echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047         ac_cv_header_stdc=no
4048 fi
4049
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051
4052 if test $ac_cv_header_stdc = yes; then
4053   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4054   cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h.  */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h.  */
4060 #include <string.h>
4061
4062 _ACEOF
4063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4064   $EGREP "memchr" >/dev/null 2>&1; then
4065   :
4066 else
4067   ac_cv_header_stdc=no
4068 fi
4069 rm -f conftest*
4070
4071 fi
4072
4073 if test $ac_cv_header_stdc = yes; then
4074   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4075   cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081 #include <stdlib.h>
4082
4083 _ACEOF
4084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4085   $EGREP "free" >/dev/null 2>&1; then
4086   :
4087 else
4088   ac_cv_header_stdc=no
4089 fi
4090 rm -f conftest*
4091
4092 fi
4093
4094 if test $ac_cv_header_stdc = yes; then
4095   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4096   if test "$cross_compiling" = yes; then
4097   :
4098 else
4099   cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h.  */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h.  */
4105 #include <ctype.h>
4106 #include <stdlib.h>
4107 #if ((' ' & 0x0FF) == 0x020)
4108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4110 #else
4111 # define ISLOWER(c) \
4112                    (('a' <= (c) && (c) <= 'i') \
4113                      || ('j' <= (c) && (c) <= 'r') \
4114                      || ('s' <= (c) && (c) <= 'z'))
4115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4116 #endif
4117
4118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4119 int
4120 main ()
4121 {
4122   int i;
4123   for (i = 0; i < 256; i++)
4124     if (XOR (islower (i), ISLOWER (i))
4125         || toupper (i) != TOUPPER (i))
4126       return 2;
4127   return 0;
4128 }
4129 _ACEOF
4130 rm -f conftest$ac_exeext
4131 if { (ac_try="$ac_link"
4132 case "(($ac_try" in
4133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134   *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137   (eval "$ac_link") 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4141   { (case "(($ac_try" in
4142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143   *) ac_try_echo=$ac_try;;
4144 esac
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146   (eval "$ac_try") 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; }; then
4150   :
4151 else
4152   echo "$as_me: program exited with status $ac_status" >&5
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4155
4156 ( exit $ac_status )
4157 ac_cv_header_stdc=no
4158 fi
4159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4160 fi
4161
4162
4163 fi
4164 fi
4165 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4166 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4167 if test $ac_cv_header_stdc = yes; then
4168
4169 cat >>confdefs.h <<\_ACEOF
4170 #define STDC_HEADERS 1
4171 _ACEOF
4172
4173 fi
4174
4175 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4186                   inttypes.h stdint.h unistd.h
4187 do
4188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4192   echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194   cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h.  */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h.  */
4200 $ac_includes_default
4201
4202 #include <$ac_header>
4203 _ACEOF
4204 rm -f conftest.$ac_objext
4205 if { (ac_try="$ac_compile"
4206 case "(($ac_try" in
4207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208   *) ac_try_echo=$ac_try;;
4209 esac
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211   (eval "$ac_compile") 2>conftest.er1
4212   ac_status=$?
4213   grep -v '^ *+' conftest.er1 >conftest.err
4214   rm -f conftest.er1
4215   cat conftest.err >&5
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); } && {
4218          test -z "$ac_c_werror_flag" ||
4219          test ! -s conftest.err
4220        } && test -s conftest.$ac_objext; then
4221   eval "$as_ac_Header=yes"
4222 else
4223   echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226         eval "$as_ac_Header=no"
4227 fi
4228
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 fi
4231 ac_res=`eval echo '${'$as_ac_Header'}'`
4232                { echo "$as_me:$LINENO: result: $ac_res" >&5
4233 echo "${ECHO_T}$ac_res" >&6; }
4234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4235   cat >>confdefs.h <<_ACEOF
4236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4237 _ACEOF
4238
4239 fi
4240
4241 done
4242
4243
4244 { echo "$as_me:$LINENO: checking for void *" >&5
4245 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4246 if test "${ac_cv_type_void_p+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255 $ac_includes_default
4256 typedef void * ac__type_new_;
4257 int
4258 main ()
4259 {
4260 if ((ac__type_new_ *) 0)
4261   return 0;
4262 if (sizeof (ac__type_new_))
4263   return 0;
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 rm -f conftest.$ac_objext
4269 if { (ac_try="$ac_compile"
4270 case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275   (eval "$ac_compile") 2>conftest.er1
4276   ac_status=$?
4277   grep -v '^ *+' conftest.er1 >conftest.err
4278   rm -f conftest.er1
4279   cat conftest.err >&5
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } && {
4282          test -z "$ac_c_werror_flag" ||
4283          test ! -s conftest.err
4284        } && test -s conftest.$ac_objext; then
4285   ac_cv_type_void_p=yes
4286 else
4287   echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290         ac_cv_type_void_p=no
4291 fi
4292
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 fi
4295 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4296 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4297
4298 # The cast to long int works around a bug in the HP C Compiler
4299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4301 # This bug is HP SR number 8606223364.
4302 { echo "$as_me:$LINENO: checking size of void *" >&5
4303 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4304 if test "${ac_cv_sizeof_void_p+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   if test "$cross_compiling" = yes; then
4308   # Depending upon the size, compute the lo and hi bounds.
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 $ac_includes_default
4316    typedef void * ac__type_sizeof_;
4317 int
4318 main ()
4319 {
4320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4321 test_array [0] = 0
4322
4323   ;
4324   return 0;
4325 }
4326 _ACEOF
4327 rm -f conftest.$ac_objext
4328 if { (ac_try="$ac_compile"
4329 case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334   (eval "$ac_compile") 2>conftest.er1
4335   ac_status=$?
4336   grep -v '^ *+' conftest.er1 >conftest.err
4337   rm -f conftest.er1
4338   cat conftest.err >&5
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); } && {
4341          test -z "$ac_c_werror_flag" ||
4342          test ! -s conftest.err
4343        } && test -s conftest.$ac_objext; then
4344   ac_lo=0 ac_mid=0
4345   while :; do
4346     cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h.  */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h.  */
4352 $ac_includes_default
4353    typedef void * ac__type_sizeof_;
4354 int
4355 main ()
4356 {
4357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4358 test_array [0] = 0
4359
4360   ;
4361   return 0;
4362 }
4363 _ACEOF
4364 rm -f conftest.$ac_objext
4365 if { (ac_try="$ac_compile"
4366 case "(($ac_try" in
4367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368   *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371   (eval "$ac_compile") 2>conftest.er1
4372   ac_status=$?
4373   grep -v '^ *+' conftest.er1 >conftest.err
4374   rm -f conftest.er1
4375   cat conftest.err >&5
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } && {
4378          test -z "$ac_c_werror_flag" ||
4379          test ! -s conftest.err
4380        } && test -s conftest.$ac_objext; then
4381   ac_hi=$ac_mid; break
4382 else
4383   echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4385
4386         ac_lo=`expr $ac_mid + 1`
4387                         if test $ac_lo -le $ac_mid; then
4388                           ac_lo= ac_hi=
4389                           break
4390                         fi
4391                         ac_mid=`expr 2 '*' $ac_mid + 1`
4392 fi
4393
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395   done
4396 else
4397   echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400         cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h.  */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h.  */
4406 $ac_includes_default
4407    typedef void * ac__type_sizeof_;
4408 int
4409 main ()
4410 {
4411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4412 test_array [0] = 0
4413
4414   ;
4415   return 0;
4416 }
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (ac_try="$ac_compile"
4420 case "(($ac_try" in
4421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422   *) ac_try_echo=$ac_try;;
4423 esac
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425   (eval "$ac_compile") 2>conftest.er1
4426   ac_status=$?
4427   grep -v '^ *+' conftest.er1 >conftest.err
4428   rm -f conftest.er1
4429   cat conftest.err >&5
4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); } && {
4432          test -z "$ac_c_werror_flag" ||
4433          test ! -s conftest.err
4434        } && test -s conftest.$ac_objext; then
4435   ac_hi=-1 ac_mid=-1
4436   while :; do
4437     cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h.  */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h.  */
4443 $ac_includes_default
4444    typedef void * ac__type_sizeof_;
4445 int
4446 main ()
4447 {
4448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4449 test_array [0] = 0
4450
4451   ;
4452   return 0;
4453 }
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4457 case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462   (eval "$ac_compile") 2>conftest.er1
4463   ac_status=$?
4464   grep -v '^ *+' conftest.er1 >conftest.err
4465   rm -f conftest.er1
4466   cat conftest.err >&5
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); } && {
4469          test -z "$ac_c_werror_flag" ||
4470          test ! -s conftest.err
4471        } && test -s conftest.$ac_objext; then
4472   ac_lo=$ac_mid; break
4473 else
4474   echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477         ac_hi=`expr '(' $ac_mid ')' - 1`
4478                         if test $ac_mid -le $ac_hi; then
4479                           ac_lo= ac_hi=
4480                           break
4481                         fi
4482                         ac_mid=`expr 2 '*' $ac_mid`
4483 fi
4484
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486   done
4487 else
4488   echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491         ac_lo= ac_hi=
4492 fi
4493
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 fi
4496
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 # Binary search between lo and hi bounds.
4499 while test "x$ac_lo" != "x$ac_hi"; do
4500   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4501   cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507 $ac_includes_default
4508    typedef void * ac__type_sizeof_;
4509 int
4510 main ()
4511 {
4512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4513 test_array [0] = 0
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (ac_try="$ac_compile"
4521 case "(($ac_try" in
4522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523   *) ac_try_echo=$ac_try;;
4524 esac
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526   (eval "$ac_compile") 2>conftest.er1
4527   ac_status=$?
4528   grep -v '^ *+' conftest.er1 >conftest.err
4529   rm -f conftest.er1
4530   cat conftest.err >&5
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); } && {
4533          test -z "$ac_c_werror_flag" ||
4534          test ! -s conftest.err
4535        } && test -s conftest.$ac_objext; then
4536   ac_hi=$ac_mid
4537 else
4538   echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4540
4541         ac_lo=`expr '(' $ac_mid ')' + 1`
4542 fi
4543
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 done
4546 case $ac_lo in
4547 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4548 '') if test "$ac_cv_type_void_p" = yes; then
4549      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4550 See \`config.log' for more details." >&5
4551 echo "$as_me: error: cannot compute sizeof (void *)
4552 See \`config.log' for more details." >&2;}
4553    { (exit 77); exit 77; }; }
4554    else
4555      ac_cv_sizeof_void_p=0
4556    fi ;;
4557 esac
4558 else
4559   cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565 $ac_includes_default
4566    typedef void * ac__type_sizeof_;
4567 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4568 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4569 #include <stdio.h>
4570 #include <stdlib.h>
4571 int
4572 main ()
4573 {
4574
4575   FILE *f = fopen ("conftest.val", "w");
4576   if (! f)
4577     return 1;
4578   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4579     {
4580       long int i = longval ();
4581       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4582         return 1;
4583       fprintf (f, "%ld\n", i);
4584     }
4585   else
4586     {
4587       unsigned long int i = ulongval ();
4588       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4589         return 1;
4590       fprintf (f, "%lu\n", i);
4591     }
4592   return ferror (f) || fclose (f) != 0;
4593
4594   ;
4595   return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest$ac_exeext
4599 if { (ac_try="$ac_link"
4600 case "(($ac_try" in
4601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602   *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605   (eval "$ac_link") 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609   { (case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614   (eval "$ac_try") 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618   ac_cv_sizeof_void_p=`cat conftest.val`
4619 else
4620   echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 ( exit $ac_status )
4625 if test "$ac_cv_type_void_p" = yes; then
4626      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot compute sizeof (void *)
4629 See \`config.log' for more details." >&2;}
4630    { (exit 77); exit 77; }; }
4631    else
4632      ac_cv_sizeof_void_p=0
4633    fi
4634 fi
4635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 rm -f conftest.val
4638 fi
4639 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4640 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4641
4642
4643
4644 cat >>confdefs.h <<_ACEOF
4645 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4646 _ACEOF
4647
4648
4649 { echo "$as_me:$LINENO: checking for short" >&5
4650 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4651 if test "${ac_cv_type_short+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h.  */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h.  */
4660 $ac_includes_default
4661 typedef short ac__type_new_;
4662 int
4663 main ()
4664 {
4665 if ((ac__type_new_ *) 0)
4666   return 0;
4667 if (sizeof (ac__type_new_))
4668   return 0;
4669   ;
4670   return 0;
4671 }
4672 _ACEOF
4673 rm -f conftest.$ac_objext
4674 if { (ac_try="$ac_compile"
4675 case "(($ac_try" in
4676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677   *) ac_try_echo=$ac_try;;
4678 esac
4679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680   (eval "$ac_compile") 2>conftest.er1
4681   ac_status=$?
4682   grep -v '^ *+' conftest.er1 >conftest.err
4683   rm -f conftest.er1
4684   cat conftest.err >&5
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); } && {
4687          test -z "$ac_c_werror_flag" ||
4688          test ! -s conftest.err
4689        } && test -s conftest.$ac_objext; then
4690   ac_cv_type_short=yes
4691 else
4692   echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695         ac_cv_type_short=no
4696 fi
4697
4698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699 fi
4700 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4701 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4702
4703 # The cast to long int works around a bug in the HP C Compiler
4704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4706 # This bug is HP SR number 8606223364.
4707 { echo "$as_me:$LINENO: checking size of short" >&5
4708 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4709 if test "${ac_cv_sizeof_short+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   if test "$cross_compiling" = yes; then
4713   # Depending upon the size, compute the lo and hi bounds.
4714 cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h.  */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h.  */
4720 $ac_includes_default
4721    typedef short ac__type_sizeof_;
4722 int
4723 main ()
4724 {
4725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4726 test_array [0] = 0
4727
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (ac_try="$ac_compile"
4734 case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739   (eval "$ac_compile") 2>conftest.er1
4740   ac_status=$?
4741   grep -v '^ *+' conftest.er1 >conftest.err
4742   rm -f conftest.er1
4743   cat conftest.err >&5
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } && {
4746          test -z "$ac_c_werror_flag" ||
4747          test ! -s conftest.err
4748        } && test -s conftest.$ac_objext; then
4749   ac_lo=0 ac_mid=0
4750   while :; do
4751     cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h.  */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h.  */
4757 $ac_includes_default
4758    typedef short ac__type_sizeof_;
4759 int
4760 main ()
4761 {
4762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4763 test_array [0] = 0
4764
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (ac_try="$ac_compile"
4771 case "(($ac_try" in
4772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773   *) ac_try_echo=$ac_try;;
4774 esac
4775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4776   (eval "$ac_compile") 2>conftest.er1
4777   ac_status=$?
4778   grep -v '^ *+' conftest.er1 >conftest.err
4779   rm -f conftest.er1
4780   cat conftest.err >&5
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } && {
4783          test -z "$ac_c_werror_flag" ||
4784          test ! -s conftest.err
4785        } && test -s conftest.$ac_objext; then
4786   ac_hi=$ac_mid; break
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791         ac_lo=`expr $ac_mid + 1`
4792                         if test $ac_lo -le $ac_mid; then
4793                           ac_lo= ac_hi=
4794                           break
4795                         fi
4796                         ac_mid=`expr 2 '*' $ac_mid + 1`
4797 fi
4798
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800   done
4801 else
4802   echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4804
4805         cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h.  */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h.  */
4811 $ac_includes_default
4812    typedef short ac__type_sizeof_;
4813 int
4814 main ()
4815 {
4816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4817 test_array [0] = 0
4818
4819   ;
4820   return 0;
4821 }
4822 _ACEOF
4823 rm -f conftest.$ac_objext
4824 if { (ac_try="$ac_compile"
4825 case "(($ac_try" in
4826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827   *) ac_try_echo=$ac_try;;
4828 esac
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830   (eval "$ac_compile") 2>conftest.er1
4831   ac_status=$?
4832   grep -v '^ *+' conftest.er1 >conftest.err
4833   rm -f conftest.er1
4834   cat conftest.err >&5
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } && {
4837          test -z "$ac_c_werror_flag" ||
4838          test ! -s conftest.err
4839        } && test -s conftest.$ac_objext; then
4840   ac_hi=-1 ac_mid=-1
4841   while :; do
4842     cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848 $ac_includes_default
4849    typedef short ac__type_sizeof_;
4850 int
4851 main ()
4852 {
4853 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4854 test_array [0] = 0
4855
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4862 case "(($ac_try" in
4863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864   *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867   (eval "$ac_compile") 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } && {
4874          test -z "$ac_c_werror_flag" ||
4875          test ! -s conftest.err
4876        } && test -s conftest.$ac_objext; then
4877   ac_lo=$ac_mid; break
4878 else
4879   echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882         ac_hi=`expr '(' $ac_mid ')' - 1`
4883                         if test $ac_mid -le $ac_hi; then
4884                           ac_lo= ac_hi=
4885                           break
4886                         fi
4887                         ac_mid=`expr 2 '*' $ac_mid`
4888 fi
4889
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891   done
4892 else
4893   echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4895
4896         ac_lo= ac_hi=
4897 fi
4898
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 fi
4901
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 # Binary search between lo and hi bounds.
4904 while test "x$ac_lo" != "x$ac_hi"; do
4905   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4906   cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h.  */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h.  */
4912 $ac_includes_default
4913    typedef short ac__type_sizeof_;
4914 int
4915 main ()
4916 {
4917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4918 test_array [0] = 0
4919
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4926 case "(($ac_try" in
4927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928   *) ac_try_echo=$ac_try;;
4929 esac
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931   (eval "$ac_compile") 2>conftest.er1
4932   ac_status=$?
4933   grep -v '^ *+' conftest.er1 >conftest.err
4934   rm -f conftest.er1
4935   cat conftest.err >&5
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } && {
4938          test -z "$ac_c_werror_flag" ||
4939          test ! -s conftest.err
4940        } && test -s conftest.$ac_objext; then
4941   ac_hi=$ac_mid
4942 else
4943   echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946         ac_lo=`expr '(' $ac_mid ')' + 1`
4947 fi
4948
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 done
4951 case $ac_lo in
4952 ?*) ac_cv_sizeof_short=$ac_lo;;
4953 '') if test "$ac_cv_type_short" = yes; then
4954      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4955 See \`config.log' for more details." >&5
4956 echo "$as_me: error: cannot compute sizeof (short)
4957 See \`config.log' for more details." >&2;}
4958    { (exit 77); exit 77; }; }
4959    else
4960      ac_cv_sizeof_short=0
4961    fi ;;
4962 esac
4963 else
4964   cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h.  */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h.  */
4970 $ac_includes_default
4971    typedef short ac__type_sizeof_;
4972 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4973 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4974 #include <stdio.h>
4975 #include <stdlib.h>
4976 int
4977 main ()
4978 {
4979
4980   FILE *f = fopen ("conftest.val", "w");
4981   if (! f)
4982     return 1;
4983   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4984     {
4985       long int i = longval ();
4986       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4987         return 1;
4988       fprintf (f, "%ld\n", i);
4989     }
4990   else
4991     {
4992       unsigned long int i = ulongval ();
4993       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4994         return 1;
4995       fprintf (f, "%lu\n", i);
4996     }
4997   return ferror (f) || fclose (f) != 0;
4998
4999   ;
5000   return 0;
5001 }
5002 _ACEOF
5003 rm -f conftest$ac_exeext
5004 if { (ac_try="$ac_link"
5005 case "(($ac_try" in
5006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007   *) ac_try_echo=$ac_try;;
5008 esac
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010   (eval "$ac_link") 2>&5
5011   ac_status=$?
5012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5014   { (case "(($ac_try" in
5015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016   *) ac_try_echo=$ac_try;;
5017 esac
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019   (eval "$ac_try") 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; }; then
5023   ac_cv_sizeof_short=`cat conftest.val`
5024 else
5025   echo "$as_me: program exited with status $ac_status" >&5
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 ( exit $ac_status )
5030 if test "$ac_cv_type_short" = yes; then
5031      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5032 See \`config.log' for more details." >&5
5033 echo "$as_me: error: cannot compute sizeof (short)
5034 See \`config.log' for more details." >&2;}
5035    { (exit 77); exit 77; }; }
5036    else
5037      ac_cv_sizeof_short=0
5038    fi
5039 fi
5040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5041 fi
5042 rm -f conftest.val
5043 fi
5044 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5045 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5046
5047
5048
5049 cat >>confdefs.h <<_ACEOF
5050 #define SIZEOF_SHORT $ac_cv_sizeof_short
5051 _ACEOF
5052
5053
5054 { echo "$as_me:$LINENO: checking for int" >&5
5055 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5056 if test "${ac_cv_type_int+set}" = set; then
5057   echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059   cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h.  */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h.  */
5065 $ac_includes_default
5066 typedef int ac__type_new_;
5067 int
5068 main ()
5069 {
5070 if ((ac__type_new_ *) 0)
5071   return 0;
5072 if (sizeof (ac__type_new_))
5073   return 0;
5074   ;
5075   return 0;
5076 }
5077 _ACEOF
5078 rm -f conftest.$ac_objext
5079 if { (ac_try="$ac_compile"
5080 case "(($ac_try" in
5081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082   *) ac_try_echo=$ac_try;;
5083 esac
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085   (eval "$ac_compile") 2>conftest.er1
5086   ac_status=$?
5087   grep -v '^ *+' conftest.er1 >conftest.err
5088   rm -f conftest.er1
5089   cat conftest.err >&5
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); } && {
5092          test -z "$ac_c_werror_flag" ||
5093          test ! -s conftest.err
5094        } && test -s conftest.$ac_objext; then
5095   ac_cv_type_int=yes
5096 else
5097   echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100         ac_cv_type_int=no
5101 fi
5102
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 fi
5105 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5106 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5107
5108 # The cast to long int works around a bug in the HP C Compiler
5109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5111 # This bug is HP SR number 8606223364.
5112 { echo "$as_me:$LINENO: checking size of int" >&5
5113 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5114 if test "${ac_cv_sizeof_int+set}" = set; then
5115   echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117   if test "$cross_compiling" = yes; then
5118   # Depending upon the size, compute the lo and hi bounds.
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125 $ac_includes_default
5126    typedef int ac__type_sizeof_;
5127 int
5128 main ()
5129 {
5130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5131 test_array [0] = 0
5132
5133   ;
5134   return 0;
5135 }
5136 _ACEOF
5137 rm -f conftest.$ac_objext
5138 if { (ac_try="$ac_compile"
5139 case "(($ac_try" in
5140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141   *) ac_try_echo=$ac_try;;
5142 esac
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144   (eval "$ac_compile") 2>conftest.er1
5145   ac_status=$?
5146   grep -v '^ *+' conftest.er1 >conftest.err
5147   rm -f conftest.er1
5148   cat conftest.err >&5
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); } && {
5151          test -z "$ac_c_werror_flag" ||
5152          test ! -s conftest.err
5153        } && test -s conftest.$ac_objext; then
5154   ac_lo=0 ac_mid=0
5155   while :; do
5156     cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h.  */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h.  */
5162 $ac_includes_default
5163    typedef int ac__type_sizeof_;
5164 int
5165 main ()
5166 {
5167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5168 test_array [0] = 0
5169
5170   ;
5171   return 0;
5172 }
5173 _ACEOF
5174 rm -f conftest.$ac_objext
5175 if { (ac_try="$ac_compile"
5176 case "(($ac_try" in
5177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178   *) ac_try_echo=$ac_try;;
5179 esac
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181   (eval "$ac_compile") 2>conftest.er1
5182   ac_status=$?
5183   grep -v '^ *+' conftest.er1 >conftest.err
5184   rm -f conftest.er1
5185   cat conftest.err >&5
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); } && {
5188          test -z "$ac_c_werror_flag" ||
5189          test ! -s conftest.err
5190        } && test -s conftest.$ac_objext; then
5191   ac_hi=$ac_mid; break
5192 else
5193   echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5195
5196         ac_lo=`expr $ac_mid + 1`
5197                         if test $ac_lo -le $ac_mid; then
5198                           ac_lo= ac_hi=
5199                           break
5200                         fi
5201                         ac_mid=`expr 2 '*' $ac_mid + 1`
5202 fi
5203
5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205   done
5206 else
5207   echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210         cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h.  */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h.  */
5216 $ac_includes_default
5217    typedef int ac__type_sizeof_;
5218 int
5219 main ()
5220 {
5221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5222 test_array [0] = 0
5223
5224   ;
5225   return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232   *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235   (eval "$ac_compile") 2>conftest.er1
5236   ac_status=$?
5237   grep -v '^ *+' conftest.er1 >conftest.err
5238   rm -f conftest.er1
5239   cat conftest.err >&5
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } && {
5242          test -z "$ac_c_werror_flag" ||
5243          test ! -s conftest.err
5244        } && test -s conftest.$ac_objext; then
5245   ac_hi=-1 ac_mid=-1
5246   while :; do
5247     cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h.  */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h.  */
5253 $ac_includes_default
5254    typedef int ac__type_sizeof_;
5255 int
5256 main ()
5257 {
5258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5259 test_array [0] = 0
5260
5261   ;
5262   return 0;
5263 }
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (ac_try="$ac_compile"
5267 case "(($ac_try" in
5268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269   *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272   (eval "$ac_compile") 2>conftest.er1
5273   ac_status=$?
5274   grep -v '^ *+' conftest.er1 >conftest.err
5275   rm -f conftest.er1
5276   cat conftest.err >&5
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); } && {
5279          test -z "$ac_c_werror_flag" ||
5280          test ! -s conftest.err
5281        } && test -s conftest.$ac_objext; then
5282   ac_lo=$ac_mid; break
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287         ac_hi=`expr '(' $ac_mid ')' - 1`
5288                         if test $ac_mid -le $ac_hi; then
5289                           ac_lo= ac_hi=
5290                           break
5291                         fi
5292                         ac_mid=`expr 2 '*' $ac_mid`
5293 fi
5294
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296   done
5297 else
5298   echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301         ac_lo= ac_hi=
5302 fi
5303
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 fi
5306
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 # Binary search between lo and hi bounds.
5309 while test "x$ac_lo" != "x$ac_hi"; do
5310   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5311   cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h.  */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h.  */
5317 $ac_includes_default
5318    typedef int ac__type_sizeof_;
5319 int
5320 main ()
5321 {
5322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5323 test_array [0] = 0
5324
5325   ;
5326   return 0;
5327 }
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (ac_try="$ac_compile"
5331 case "(($ac_try" in
5332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333   *) ac_try_echo=$ac_try;;
5334 esac
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336   (eval "$ac_compile") 2>conftest.er1
5337   ac_status=$?
5338   grep -v '^ *+' conftest.er1 >conftest.err
5339   rm -f conftest.er1
5340   cat conftest.err >&5
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); } && {
5343          test -z "$ac_c_werror_flag" ||
5344          test ! -s conftest.err
5345        } && test -s conftest.$ac_objext; then
5346   ac_hi=$ac_mid
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351         ac_lo=`expr '(' $ac_mid ')' + 1`
5352 fi
5353
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 done
5356 case $ac_lo in
5357 ?*) ac_cv_sizeof_int=$ac_lo;;
5358 '') if test "$ac_cv_type_int" = yes; then
5359      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5360 See \`config.log' for more details." >&5
5361 echo "$as_me: error: cannot compute sizeof (int)
5362 See \`config.log' for more details." >&2;}
5363    { (exit 77); exit 77; }; }
5364    else
5365      ac_cv_sizeof_int=0
5366    fi ;;
5367 esac
5368 else
5369   cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375 $ac_includes_default
5376    typedef int ac__type_sizeof_;
5377 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5378 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5379 #include <stdio.h>
5380 #include <stdlib.h>
5381 int
5382 main ()
5383 {
5384
5385   FILE *f = fopen ("conftest.val", "w");
5386   if (! f)
5387     return 1;
5388   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5389     {
5390       long int i = longval ();
5391       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5392         return 1;
5393       fprintf (f, "%ld\n", i);
5394     }
5395   else
5396     {
5397       unsigned long int i = ulongval ();
5398       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5399         return 1;
5400       fprintf (f, "%lu\n", i);
5401     }
5402   return ferror (f) || fclose (f) != 0;
5403
5404   ;
5405   return 0;
5406 }
5407 _ACEOF
5408 rm -f conftest$ac_exeext
5409 if { (ac_try="$ac_link"
5410 case "(($ac_try" in
5411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412   *) ac_try_echo=$ac_try;;
5413 esac
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415   (eval "$ac_link") 2>&5
5416   ac_status=$?
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5419   { (case "(($ac_try" in
5420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421   *) ac_try_echo=$ac_try;;
5422 esac
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424   (eval "$ac_try") 2>&5
5425   ac_status=$?
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); }; }; then
5428   ac_cv_sizeof_int=`cat conftest.val`
5429 else
5430   echo "$as_me: program exited with status $ac_status" >&5
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 ( exit $ac_status )
5435 if test "$ac_cv_type_int" = yes; then
5436      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5437 See \`config.log' for more details." >&5
5438 echo "$as_me: error: cannot compute sizeof (int)
5439 See \`config.log' for more details." >&2;}
5440    { (exit 77); exit 77; }; }
5441    else
5442      ac_cv_sizeof_int=0
5443    fi
5444 fi
5445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 rm -f conftest.val
5448 fi
5449 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5450 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5451
5452
5453
5454 cat >>confdefs.h <<_ACEOF
5455 #define SIZEOF_INT $ac_cv_sizeof_int
5456 _ACEOF
5457
5458
5459 { echo "$as_me:$LINENO: checking for long" >&5
5460 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5461 if test "${ac_cv_type_long+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h.  */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h.  */
5470 $ac_includes_default
5471 typedef long ac__type_new_;
5472 int
5473 main ()
5474 {
5475 if ((ac__type_new_ *) 0)
5476   return 0;
5477 if (sizeof (ac__type_new_))
5478   return 0;
5479   ;
5480   return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5485 case "(($ac_try" in
5486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487   *) ac_try_echo=$ac_try;;
5488 esac
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490   (eval "$ac_compile") 2>conftest.er1
5491   ac_status=$?
5492   grep -v '^ *+' conftest.er1 >conftest.err
5493   rm -f conftest.er1
5494   cat conftest.err >&5
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); } && {
5497          test -z "$ac_c_werror_flag" ||
5498          test ! -s conftest.err
5499        } && test -s conftest.$ac_objext; then
5500   ac_cv_type_long=yes
5501 else
5502   echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505         ac_cv_type_long=no
5506 fi
5507
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 fi
5510 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5511 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5512
5513 # The cast to long int works around a bug in the HP C Compiler
5514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5516 # This bug is HP SR number 8606223364.
5517 { echo "$as_me:$LINENO: checking size of long" >&5
5518 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5519 if test "${ac_cv_sizeof_long+set}" = set; then
5520   echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522   if test "$cross_compiling" = yes; then
5523   # Depending upon the size, compute the lo and hi bounds.
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h.  */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h.  */
5530 $ac_includes_default
5531    typedef long ac__type_sizeof_;
5532 int
5533 main ()
5534 {
5535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5536 test_array [0] = 0
5537
5538   ;
5539   return 0;
5540 }
5541 _ACEOF
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5544 case "(($ac_try" in
5545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546   *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549   (eval "$ac_compile") 2>conftest.er1
5550   ac_status=$?
5551   grep -v '^ *+' conftest.er1 >conftest.err
5552   rm -f conftest.er1
5553   cat conftest.err >&5
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); } && {
5556          test -z "$ac_c_werror_flag" ||
5557          test ! -s conftest.err
5558        } && test -s conftest.$ac_objext; then
5559   ac_lo=0 ac_mid=0
5560   while :; do
5561     cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h.  */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h.  */
5567 $ac_includes_default
5568    typedef long ac__type_sizeof_;
5569 int
5570 main ()
5571 {
5572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5573 test_array [0] = 0
5574
5575   ;
5576   return 0;
5577 }
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5581 case "(($ac_try" in
5582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583   *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586   (eval "$ac_compile") 2>conftest.er1
5587   ac_status=$?
5588   grep -v '^ *+' conftest.er1 >conftest.err
5589   rm -f conftest.er1
5590   cat conftest.err >&5
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && {
5593          test -z "$ac_c_werror_flag" ||
5594          test ! -s conftest.err
5595        } && test -s conftest.$ac_objext; then
5596   ac_hi=$ac_mid; break
5597 else
5598   echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601         ac_lo=`expr $ac_mid + 1`
5602                         if test $ac_lo -le $ac_mid; then
5603                           ac_lo= ac_hi=
5604                           break
5605                         fi
5606                         ac_mid=`expr 2 '*' $ac_mid + 1`
5607 fi
5608
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610   done
5611 else
5612   echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615         cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621 $ac_includes_default
5622    typedef long ac__type_sizeof_;
5623 int
5624 main ()
5625 {
5626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5627 test_array [0] = 0
5628
5629   ;
5630   return 0;
5631 }
5632 _ACEOF
5633 rm -f conftest.$ac_objext
5634 if { (ac_try="$ac_compile"
5635 case "(($ac_try" in
5636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637   *) ac_try_echo=$ac_try;;
5638 esac
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640   (eval "$ac_compile") 2>conftest.er1
5641   ac_status=$?
5642   grep -v '^ *+' conftest.er1 >conftest.err
5643   rm -f conftest.er1
5644   cat conftest.err >&5
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); } && {
5647          test -z "$ac_c_werror_flag" ||
5648          test ! -s conftest.err
5649        } && test -s conftest.$ac_objext; then
5650   ac_hi=-1 ac_mid=-1
5651   while :; do
5652     cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658 $ac_includes_default
5659    typedef long ac__type_sizeof_;
5660 int
5661 main ()
5662 {
5663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5664 test_array [0] = 0
5665
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5672 case "(($ac_try" in
5673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674   *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677   (eval "$ac_compile") 2>conftest.er1
5678   ac_status=$?
5679   grep -v '^ *+' conftest.er1 >conftest.err
5680   rm -f conftest.er1
5681   cat conftest.err >&5
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); } && {
5684          test -z "$ac_c_werror_flag" ||
5685          test ! -s conftest.err
5686        } && test -s conftest.$ac_objext; then
5687   ac_lo=$ac_mid; break
5688 else
5689   echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692         ac_hi=`expr '(' $ac_mid ')' - 1`
5693                         if test $ac_mid -le $ac_hi; then
5694                           ac_lo= ac_hi=
5695                           break
5696                         fi
5697                         ac_mid=`expr 2 '*' $ac_mid`
5698 fi
5699
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701   done
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706         ac_lo= ac_hi=
5707 fi
5708
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 fi
5711
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 # Binary search between lo and hi bounds.
5714 while test "x$ac_lo" != "x$ac_hi"; do
5715   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5716   cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h.  */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h.  */
5722 $ac_includes_default
5723    typedef long ac__type_sizeof_;
5724 int
5725 main ()
5726 {
5727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5728 test_array [0] = 0
5729
5730   ;
5731   return 0;
5732 }
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (ac_try="$ac_compile"
5736 case "(($ac_try" in
5737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738   *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741   (eval "$ac_compile") 2>conftest.er1
5742   ac_status=$?
5743   grep -v '^ *+' conftest.er1 >conftest.err
5744   rm -f conftest.er1
5745   cat conftest.err >&5
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } && {
5748          test -z "$ac_c_werror_flag" ||
5749          test ! -s conftest.err
5750        } && test -s conftest.$ac_objext; then
5751   ac_hi=$ac_mid
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756         ac_lo=`expr '(' $ac_mid ')' + 1`
5757 fi
5758
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 done
5761 case $ac_lo in
5762 ?*) ac_cv_sizeof_long=$ac_lo;;
5763 '') if test "$ac_cv_type_long" = yes; then
5764      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5765 See \`config.log' for more details." >&5
5766 echo "$as_me: error: cannot compute sizeof (long)
5767 See \`config.log' for more details." >&2;}
5768    { (exit 77); exit 77; }; }
5769    else
5770      ac_cv_sizeof_long=0
5771    fi ;;
5772 esac
5773 else
5774   cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h.  */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h.  */
5780 $ac_includes_default
5781    typedef long ac__type_sizeof_;
5782 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5783 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5784 #include <stdio.h>
5785 #include <stdlib.h>
5786 int
5787 main ()
5788 {
5789
5790   FILE *f = fopen ("conftest.val", "w");
5791   if (! f)
5792     return 1;
5793   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5794     {
5795       long int i = longval ();
5796       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5797         return 1;
5798       fprintf (f, "%ld\n", i);
5799     }
5800   else
5801     {
5802       unsigned long int i = ulongval ();
5803       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5804         return 1;
5805       fprintf (f, "%lu\n", i);
5806     }
5807   return ferror (f) || fclose (f) != 0;
5808
5809   ;
5810   return 0;
5811 }
5812 _ACEOF
5813 rm -f conftest$ac_exeext
5814 if { (ac_try="$ac_link"
5815 case "(($ac_try" in
5816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817   *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820   (eval "$ac_link") 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5824   { (case "(($ac_try" in
5825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826   *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829   (eval "$ac_try") 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; }; then
5833   ac_cv_sizeof_long=`cat conftest.val`
5834 else
5835   echo "$as_me: program exited with status $ac_status" >&5
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5838
5839 ( exit $ac_status )
5840 if test "$ac_cv_type_long" = yes; then
5841      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5842 See \`config.log' for more details." >&5
5843 echo "$as_me: error: cannot compute sizeof (long)
5844 See \`config.log' for more details." >&2;}
5845    { (exit 77); exit 77; }; }
5846    else
5847      ac_cv_sizeof_long=0
5848    fi
5849 fi
5850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5851 fi
5852 rm -f conftest.val
5853 fi
5854 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5855 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5856
5857
5858
5859 cat >>confdefs.h <<_ACEOF
5860 #define SIZEOF_LONG $ac_cv_sizeof_long
5861 _ACEOF
5862
5863
5864 { echo "$as_me:$LINENO: checking for long long" >&5
5865 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5866 if test "${ac_cv_type_long_long+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h.  */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h.  */
5875 $ac_includes_default
5876 typedef long long ac__type_new_;
5877 int
5878 main ()
5879 {
5880 if ((ac__type_new_ *) 0)
5881   return 0;
5882 if (sizeof (ac__type_new_))
5883   return 0;
5884   ;
5885   return 0;
5886 }
5887 _ACEOF
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5890 case "(($ac_try" in
5891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892   *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895   (eval "$ac_compile") 2>conftest.er1
5896   ac_status=$?
5897   grep -v '^ *+' conftest.er1 >conftest.err
5898   rm -f conftest.er1
5899   cat conftest.err >&5
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); } && {
5902          test -z "$ac_c_werror_flag" ||
5903          test ! -s conftest.err
5904        } && test -s conftest.$ac_objext; then
5905   ac_cv_type_long_long=yes
5906 else
5907   echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910         ac_cv_type_long_long=no
5911 fi
5912
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 fi
5915 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5916 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5917 if test $ac_cv_type_long_long = yes; then
5918
5919 cat >>confdefs.h <<_ACEOF
5920 #define HAVE_LONG_LONG 1
5921 _ACEOF
5922
5923 { echo "$as_me:$LINENO: checking for long long" >&5
5924 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5925 if test "${ac_cv_type_long_long+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h.  */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h.  */
5934 $ac_includes_default
5935 typedef long long ac__type_new_;
5936 int
5937 main ()
5938 {
5939 if ((ac__type_new_ *) 0)
5940   return 0;
5941 if (sizeof (ac__type_new_))
5942   return 0;
5943   ;
5944   return 0;
5945 }
5946 _ACEOF
5947 rm -f conftest.$ac_objext
5948 if { (ac_try="$ac_compile"
5949 case "(($ac_try" in
5950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951   *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954   (eval "$ac_compile") 2>conftest.er1
5955   ac_status=$?
5956   grep -v '^ *+' conftest.er1 >conftest.err
5957   rm -f conftest.er1
5958   cat conftest.err >&5
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); } && {
5961          test -z "$ac_c_werror_flag" ||
5962          test ! -s conftest.err
5963        } && test -s conftest.$ac_objext; then
5964   ac_cv_type_long_long=yes
5965 else
5966   echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969         ac_cv_type_long_long=no
5970 fi
5971
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 fi
5974 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5975 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5976
5977 # The cast to long int works around a bug in the HP C Compiler
5978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5980 # This bug is HP SR number 8606223364.
5981 { echo "$as_me:$LINENO: checking size of long long" >&5
5982 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
5983 if test "${ac_cv_sizeof_long_long+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986   if test "$cross_compiling" = yes; then
5987   # Depending upon the size, compute the lo and hi bounds.
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h.  */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h.  */
5994 $ac_includes_default
5995    typedef long long ac__type_sizeof_;
5996 int
5997 main ()
5998 {
5999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6000 test_array [0] = 0
6001
6002   ;
6003   return 0;
6004 }
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010   *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013   (eval "$ac_compile") 2>conftest.er1
6014   ac_status=$?
6015   grep -v '^ *+' conftest.er1 >conftest.err
6016   rm -f conftest.er1
6017   cat conftest.err >&5
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } && {
6020          test -z "$ac_c_werror_flag" ||
6021          test ! -s conftest.err
6022        } && test -s conftest.$ac_objext; then
6023   ac_lo=0 ac_mid=0
6024   while :; do
6025     cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h.  */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h.  */
6031 $ac_includes_default
6032    typedef long long ac__type_sizeof_;
6033 int
6034 main ()
6035 {
6036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6037 test_array [0] = 0
6038
6039   ;
6040   return 0;
6041 }
6042 _ACEOF
6043 rm -f conftest.$ac_objext
6044 if { (ac_try="$ac_compile"
6045 case "(($ac_try" in
6046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047   *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050   (eval "$ac_compile") 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } && {
6057          test -z "$ac_c_werror_flag" ||
6058          test ! -s conftest.err
6059        } && test -s conftest.$ac_objext; then
6060   ac_hi=$ac_mid; break
6061 else
6062   echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065         ac_lo=`expr $ac_mid + 1`
6066                         if test $ac_lo -le $ac_mid; then
6067                           ac_lo= ac_hi=
6068                           break
6069                         fi
6070                         ac_mid=`expr 2 '*' $ac_mid + 1`
6071 fi
6072
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074   done
6075 else
6076   echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6078
6079         cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h.  */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h.  */
6085 $ac_includes_default
6086    typedef long long ac__type_sizeof_;
6087 int
6088 main ()
6089 {
6090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6091 test_array [0] = 0
6092
6093   ;
6094   return 0;
6095 }
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6099 case "(($ac_try" in
6100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101   *) ac_try_echo=$ac_try;;
6102 esac
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104   (eval "$ac_compile") 2>conftest.er1
6105   ac_status=$?
6106   grep -v '^ *+' conftest.er1 >conftest.err
6107   rm -f conftest.er1
6108   cat conftest.err >&5
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); } && {
6111          test -z "$ac_c_werror_flag" ||
6112          test ! -s conftest.err
6113        } && test -s conftest.$ac_objext; then
6114   ac_hi=-1 ac_mid=-1
6115   while :; do
6116     cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h.  */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h.  */
6122 $ac_includes_default
6123    typedef long long ac__type_sizeof_;
6124 int
6125 main ()
6126 {
6127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6128 test_array [0] = 0
6129
6130   ;
6131   return 0;
6132 }
6133 _ACEOF
6134 rm -f conftest.$ac_objext
6135 if { (ac_try="$ac_compile"
6136 case "(($ac_try" in
6137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138   *) ac_try_echo=$ac_try;;
6139 esac
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141   (eval "$ac_compile") 2>conftest.er1
6142   ac_status=$?
6143   grep -v '^ *+' conftest.er1 >conftest.err
6144   rm -f conftest.er1
6145   cat conftest.err >&5
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); } && {
6148          test -z "$ac_c_werror_flag" ||
6149          test ! -s conftest.err
6150        } && test -s conftest.$ac_objext; then
6151   ac_lo=$ac_mid; break
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156         ac_hi=`expr '(' $ac_mid ')' - 1`
6157                         if test $ac_mid -le $ac_hi; then
6158                           ac_lo= ac_hi=
6159                           break
6160                         fi
6161                         ac_mid=`expr 2 '*' $ac_mid`
6162 fi
6163
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165   done
6166 else
6167   echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170         ac_lo= ac_hi=
6171 fi
6172
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 fi
6175
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 # Binary search between lo and hi bounds.
6178 while test "x$ac_lo" != "x$ac_hi"; do
6179   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6180   cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h.  */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h.  */
6186 $ac_includes_default
6187    typedef long long ac__type_sizeof_;
6188 int
6189 main ()
6190 {
6191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6192 test_array [0] = 0
6193
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 rm -f conftest.$ac_objext
6199 if { (ac_try="$ac_compile"
6200 case "(($ac_try" in
6201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202   *) ac_try_echo=$ac_try;;
6203 esac
6204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205   (eval "$ac_compile") 2>conftest.er1
6206   ac_status=$?
6207   grep -v '^ *+' conftest.er1 >conftest.err
6208   rm -f conftest.er1
6209   cat conftest.err >&5
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); } && {
6212          test -z "$ac_c_werror_flag" ||
6213          test ! -s conftest.err
6214        } && test -s conftest.$ac_objext; then
6215   ac_hi=$ac_mid
6216 else
6217   echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220         ac_lo=`expr '(' $ac_mid ')' + 1`
6221 fi
6222
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224 done
6225 case $ac_lo in
6226 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6227 '') if test "$ac_cv_type_long_long" = yes; then
6228      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6229 See \`config.log' for more details." >&5
6230 echo "$as_me: error: cannot compute sizeof (long long)
6231 See \`config.log' for more details." >&2;}
6232    { (exit 77); exit 77; }; }
6233    else
6234      ac_cv_sizeof_long_long=0
6235    fi ;;
6236 esac
6237 else
6238   cat >conftest.$ac_ext <<_ACEOF
6239 /* confdefs.h.  */
6240 _ACEOF
6241 cat confdefs.h >>conftest.$ac_ext
6242 cat >>conftest.$ac_ext <<_ACEOF
6243 /* end confdefs.h.  */
6244 $ac_includes_default
6245    typedef long long ac__type_sizeof_;
6246 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6247 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6248 #include <stdio.h>
6249 #include <stdlib.h>
6250 int
6251 main ()
6252 {
6253
6254   FILE *f = fopen ("conftest.val", "w");
6255   if (! f)
6256     return 1;
6257   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6258     {
6259       long int i = longval ();
6260       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6261         return 1;
6262       fprintf (f, "%ld\n", i);
6263     }
6264   else
6265     {
6266       unsigned long int i = ulongval ();
6267       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6268         return 1;
6269       fprintf (f, "%lu\n", i);
6270     }
6271   return ferror (f) || fclose (f) != 0;
6272
6273   ;
6274   return 0;
6275 }
6276 _ACEOF
6277 rm -f conftest$ac_exeext
6278 if { (ac_try="$ac_link"
6279 case "(($ac_try" in
6280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281   *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284   (eval "$ac_link") 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6288   { (case "(($ac_try" in
6289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290   *) ac_try_echo=$ac_try;;
6291 esac
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293   (eval "$ac_try") 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; }; then
6297   ac_cv_sizeof_long_long=`cat conftest.val`
6298 else
6299   echo "$as_me: program exited with status $ac_status" >&5
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303 ( exit $ac_status )
6304 if test "$ac_cv_type_long_long" = yes; then
6305      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6306 See \`config.log' for more details." >&5
6307 echo "$as_me: error: cannot compute sizeof (long long)
6308 See \`config.log' for more details." >&2;}
6309    { (exit 77); exit 77; }; }
6310    else
6311      ac_cv_sizeof_long_long=0
6312    fi
6313 fi
6314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6315 fi
6316 rm -f conftest.val
6317 fi
6318 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6319 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6320
6321
6322
6323 cat >>confdefs.h <<_ACEOF
6324 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6325 _ACEOF
6326
6327
6328 fi
6329
6330 { echo "$as_me:$LINENO: checking for __int64" >&5
6331 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6332 if test "${ac_cv_type___int64+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341 $ac_includes_default
6342 typedef __int64 ac__type_new_;
6343 int
6344 main ()
6345 {
6346 if ((ac__type_new_ *) 0)
6347   return 0;
6348 if (sizeof (ac__type_new_))
6349   return 0;
6350   ;
6351   return 0;
6352 }
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (ac_try="$ac_compile"
6356 case "(($ac_try" in
6357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358   *) ac_try_echo=$ac_try;;
6359 esac
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361   (eval "$ac_compile") 2>conftest.er1
6362   ac_status=$?
6363   grep -v '^ *+' conftest.er1 >conftest.err
6364   rm -f conftest.er1
6365   cat conftest.err >&5
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); } && {
6368          test -z "$ac_c_werror_flag" ||
6369          test ! -s conftest.err
6370        } && test -s conftest.$ac_objext; then
6371   ac_cv_type___int64=yes
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376         ac_cv_type___int64=no
6377 fi
6378
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 fi
6381 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6382 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
6383 if test $ac_cv_type___int64 = yes; then
6384
6385 cat >>confdefs.h <<_ACEOF
6386 #define HAVE___INT64 1
6387 _ACEOF
6388
6389 { echo "$as_me:$LINENO: checking for __int64" >&5
6390 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6391 if test "${ac_cv_type___int64+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h.  */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h.  */
6400 $ac_includes_default
6401 typedef __int64 ac__type_new_;
6402 int
6403 main ()
6404 {
6405 if ((ac__type_new_ *) 0)
6406   return 0;
6407 if (sizeof (ac__type_new_))
6408   return 0;
6409   ;
6410   return 0;
6411 }
6412 _ACEOF
6413 rm -f conftest.$ac_objext
6414 if { (ac_try="$ac_compile"
6415 case "(($ac_try" in
6416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417   *) ac_try_echo=$ac_try;;
6418 esac
6419 eval "echo \"\$as_me:$LINENO: $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   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_cv_type___int64=yes
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435         ac_cv_type___int64=no
6436 fi
6437
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 fi
6440 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6441 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
6442
6443 # The cast to long int works around a bug in the HP C Compiler
6444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6446 # This bug is HP SR number 8606223364.
6447 { echo "$as_me:$LINENO: checking size of __int64" >&5
6448 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
6449 if test "${ac_cv_sizeof___int64+set}" = set; then
6450   echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452   if test "$cross_compiling" = yes; then
6453   # Depending upon the size, compute the lo and hi bounds.
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h.  */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h.  */
6460 $ac_includes_default
6461    typedef __int64 ac__type_sizeof_;
6462 int
6463 main ()
6464 {
6465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6466 test_array [0] = 0
6467
6468   ;
6469   return 0;
6470 }
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (ac_try="$ac_compile"
6474 case "(($ac_try" in
6475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476   *) ac_try_echo=$ac_try;;
6477 esac
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479   (eval "$ac_compile") 2>conftest.er1
6480   ac_status=$?
6481   grep -v '^ *+' conftest.er1 >conftest.err
6482   rm -f conftest.er1
6483   cat conftest.err >&5
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); } && {
6486          test -z "$ac_c_werror_flag" ||
6487          test ! -s conftest.err
6488        } && test -s conftest.$ac_objext; then
6489   ac_lo=0 ac_mid=0
6490   while :; do
6491     cat >conftest.$ac_ext <<_ACEOF
6492 /* confdefs.h.  */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h.  */
6497 $ac_includes_default
6498    typedef __int64 ac__type_sizeof_;
6499 int
6500 main ()
6501 {
6502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6503 test_array [0] = 0
6504
6505   ;
6506   return 0;
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (ac_try="$ac_compile"
6511 case "(($ac_try" in
6512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513   *) ac_try_echo=$ac_try;;
6514 esac
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516   (eval "$ac_compile") 2>conftest.er1
6517   ac_status=$?
6518   grep -v '^ *+' conftest.er1 >conftest.err
6519   rm -f conftest.er1
6520   cat conftest.err >&5
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); } && {
6523          test -z "$ac_c_werror_flag" ||
6524          test ! -s conftest.err
6525        } && test -s conftest.$ac_objext; then
6526   ac_hi=$ac_mid; break
6527 else
6528   echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531         ac_lo=`expr $ac_mid + 1`
6532                         if test $ac_lo -le $ac_mid; then
6533                           ac_lo= ac_hi=
6534                           break
6535                         fi
6536                         ac_mid=`expr 2 '*' $ac_mid + 1`
6537 fi
6538
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540   done
6541 else
6542   echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545         cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h.  */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h.  */
6551 $ac_includes_default
6552    typedef __int64 ac__type_sizeof_;
6553 int
6554 main ()
6555 {
6556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6557 test_array [0] = 0
6558
6559   ;
6560   return 0;
6561 }
6562 _ACEOF
6563 rm -f conftest.$ac_objext
6564 if { (ac_try="$ac_compile"
6565 case "(($ac_try" in
6566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567   *) ac_try_echo=$ac_try;;
6568 esac
6569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6570   (eval "$ac_compile") 2>conftest.er1
6571   ac_status=$?
6572   grep -v '^ *+' conftest.er1 >conftest.err
6573   rm -f conftest.er1
6574   cat conftest.err >&5
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); } && {
6577          test -z "$ac_c_werror_flag" ||
6578          test ! -s conftest.err
6579        } && test -s conftest.$ac_objext; then
6580   ac_hi=-1 ac_mid=-1
6581   while :; do
6582     cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588 $ac_includes_default
6589    typedef __int64 ac__type_sizeof_;
6590 int
6591 main ()
6592 {
6593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6594 test_array [0] = 0
6595
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest.$ac_objext
6601 if { (ac_try="$ac_compile"
6602 case "(($ac_try" in
6603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604   *) ac_try_echo=$ac_try;;
6605 esac
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607   (eval "$ac_compile") 2>conftest.er1
6608   ac_status=$?
6609   grep -v '^ *+' conftest.er1 >conftest.err
6610   rm -f conftest.er1
6611   cat conftest.err >&5
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); } && {
6614          test -z "$ac_c_werror_flag" ||
6615          test ! -s conftest.err
6616        } && test -s conftest.$ac_objext; then
6617   ac_lo=$ac_mid; break
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622         ac_hi=`expr '(' $ac_mid ')' - 1`
6623                         if test $ac_mid -le $ac_hi; then
6624                           ac_lo= ac_hi=
6625                           break
6626                         fi
6627                         ac_mid=`expr 2 '*' $ac_mid`
6628 fi
6629
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631   done
6632 else
6633   echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6635
6636         ac_lo= ac_hi=
6637 fi
6638
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 fi
6641
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 # Binary search between lo and hi bounds.
6644 while test "x$ac_lo" != "x$ac_hi"; do
6645   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6646   cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h.  */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h.  */
6652 $ac_includes_default
6653    typedef __int64 ac__type_sizeof_;
6654 int
6655 main ()
6656 {
6657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6658 test_array [0] = 0
6659
6660   ;
6661   return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (ac_try="$ac_compile"
6666 case "(($ac_try" in
6667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668   *) ac_try_echo=$ac_try;;
6669 esac
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671   (eval "$ac_compile") 2>conftest.er1
6672   ac_status=$?
6673   grep -v '^ *+' conftest.er1 >conftest.err
6674   rm -f conftest.er1
6675   cat conftest.err >&5
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); } && {
6678          test -z "$ac_c_werror_flag" ||
6679          test ! -s conftest.err
6680        } && test -s conftest.$ac_objext; then
6681   ac_hi=$ac_mid
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686         ac_lo=`expr '(' $ac_mid ')' + 1`
6687 fi
6688
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 done
6691 case $ac_lo in
6692 ?*) ac_cv_sizeof___int64=$ac_lo;;
6693 '') if test "$ac_cv_type___int64" = yes; then
6694      { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6695 See \`config.log' for more details." >&5
6696 echo "$as_me: error: cannot compute sizeof (__int64)
6697 See \`config.log' for more details." >&2;}
6698    { (exit 77); exit 77; }; }
6699    else
6700      ac_cv_sizeof___int64=0
6701    fi ;;
6702 esac
6703 else
6704   cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h.  */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h.  */
6710 $ac_includes_default
6711    typedef __int64 ac__type_sizeof_;
6712 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6713 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6714 #include <stdio.h>
6715 #include <stdlib.h>
6716 int
6717 main ()
6718 {
6719
6720   FILE *f = fopen ("conftest.val", "w");
6721   if (! f)
6722     return 1;
6723   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6724     {
6725       long int i = longval ();
6726       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6727         return 1;
6728       fprintf (f, "%ld\n", i);
6729     }
6730   else
6731     {
6732       unsigned long int i = ulongval ();
6733       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6734         return 1;
6735       fprintf (f, "%lu\n", i);
6736     }
6737   return ferror (f) || fclose (f) != 0;
6738
6739   ;
6740   return 0;
6741 }
6742 _ACEOF
6743 rm -f conftest$ac_exeext
6744 if { (ac_try="$ac_link"
6745 case "(($ac_try" in
6746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747   *) ac_try_echo=$ac_try;;
6748 esac
6749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6750   (eval "$ac_link") 2>&5
6751   ac_status=$?
6752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6754   { (case "(($ac_try" in
6755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756   *) ac_try_echo=$ac_try;;
6757 esac
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759   (eval "$ac_try") 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; }; then
6763   ac_cv_sizeof___int64=`cat conftest.val`
6764 else
6765   echo "$as_me: program exited with status $ac_status" >&5
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6768
6769 ( exit $ac_status )
6770 if test "$ac_cv_type___int64" = yes; then
6771      { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6772 See \`config.log' for more details." >&5
6773 echo "$as_me: error: cannot compute sizeof (__int64)
6774 See \`config.log' for more details." >&2;}
6775    { (exit 77); exit 77; }; }
6776    else
6777      ac_cv_sizeof___int64=0
6778    fi
6779 fi
6780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6781 fi
6782 rm -f conftest.val
6783 fi
6784 { echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6785 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
6786
6787
6788
6789 cat >>confdefs.h <<_ACEOF
6790 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6791 _ACEOF
6792
6793
6794 fi
6795
6796
6797 # ---------------------
6798 # Warnings and checking
6799 # ---------------------
6800
6801 # Check $CC warning features (if it's GCC).
6802 # We want to use -pedantic, but we don't want warnings about
6803 # * 'long long'
6804 # * variadic macros
6805 # * overlong strings
6806 # So, we only use -pedantic if we can disable those warnings.
6807
6808 loose_warn=
6809 save_CFLAGS="$CFLAGS"
6810 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6811                           -Wmissing-prototypes; do
6812   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6813
6814   { echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6815 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6; }
6816 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   CFLAGS="$option"
6820     cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826
6827 int
6828 main ()
6829 {
6830
6831   ;
6832   return 0;
6833 }
6834 _ACEOF
6835 rm -f conftest.$ac_objext
6836 if { (ac_try="$ac_compile"
6837 case "(($ac_try" in
6838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839   *) ac_try_echo=$ac_try;;
6840 esac
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842   (eval "$ac_compile") 2>conftest.er1
6843   ac_status=$?
6844   grep -v '^ *+' conftest.er1 >conftest.err
6845   rm -f conftest.er1
6846   cat conftest.err >&5
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } && {
6849          test -z "$ac_c_werror_flag" ||
6850          test ! -s conftest.err
6851        } && test -s conftest.$ac_objext; then
6852   eval "$as_acx_Woption=yes"
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857         eval "$as_acx_Woption=no"
6858 fi
6859
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861
6862 fi
6863 ac_res=`eval echo '${'$as_acx_Woption'}'`
6864                { echo "$as_me:$LINENO: result: $ac_res" >&5
6865 echo "${ECHO_T}$ac_res" >&6; }
6866   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6867   loose_warn="$loose_warn${loose_warn:+ }$option"
6868 fi
6869
6870   done
6871 CFLAGS="$save_CFLAGS"
6872
6873 cxx_compat_warn=
6874 save_CFLAGS="$CFLAGS"
6875 for option in -Wc++-compat; do
6876   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6877
6878   { echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6879 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6; }
6880 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   CFLAGS="$option"
6884     cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h.  */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h.  */
6890
6891 int
6892 main ()
6893 {
6894
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (ac_try="$ac_compile"
6901 case "(($ac_try" in
6902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903   *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906   (eval "$ac_compile") 2>conftest.er1
6907   ac_status=$?
6908   grep -v '^ *+' conftest.er1 >conftest.err
6909   rm -f conftest.er1
6910   cat conftest.err >&5
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); } && {
6913          test -z "$ac_c_werror_flag" ||
6914          test ! -s conftest.err
6915        } && test -s conftest.$ac_objext; then
6916   eval "$as_acx_Woption=yes"
6917 else
6918   echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921         eval "$as_acx_Woption=no"
6922 fi
6923
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925
6926 fi
6927 ac_res=`eval echo '${'$as_acx_Woption'}'`
6928                { echo "$as_me:$LINENO: result: $ac_res" >&5
6929 echo "${ECHO_T}$ac_res" >&6; }
6930   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6931   cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6932 fi
6933
6934   done
6935 CFLAGS="$save_CFLAGS"
6936
6937 strict_warn=
6938 save_CFLAGS="$CFLAGS"
6939 for option in -Wold-style-definition \
6940                           -Wmissing-format-attribute; do
6941   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6942
6943   { echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6944 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6; }
6945 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then
6946   echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948   CFLAGS="$option"
6949     cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h.  */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h.  */
6955
6956 int
6957 main ()
6958 {
6959
6960   ;
6961   return 0;
6962 }
6963 _ACEOF
6964 rm -f conftest.$ac_objext
6965 if { (ac_try="$ac_compile"
6966 case "(($ac_try" in
6967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968   *) ac_try_echo=$ac_try;;
6969 esac
6970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971   (eval "$ac_compile") 2>conftest.er1
6972   ac_status=$?
6973   grep -v '^ *+' conftest.er1 >conftest.err
6974   rm -f conftest.er1
6975   cat conftest.err >&5
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } && {
6978          test -z "$ac_c_werror_flag" ||
6979          test ! -s conftest.err
6980        } && test -s conftest.$ac_objext; then
6981   eval "$as_acx_Woption=yes"
6982 else
6983   echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6985
6986         eval "$as_acx_Woption=no"
6987 fi
6988
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990
6991 fi
6992 ac_res=`eval echo '${'$as_acx_Woption'}'`
6993                { echo "$as_me:$LINENO: result: $ac_res" >&5
6994 echo "${ECHO_T}$ac_res" >&6; }
6995   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6996   strict_warn="$strict_warn${strict_warn:+ }$option"
6997 fi
6998
6999   done
7000 CFLAGS="$save_CFLAGS"
7001
7002 if test "$GCC" = yes; then
7003   { echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7004                                      -Wno-overlength-strings" >&5
7005 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7006                                      -Wno-overlength-strings... $ECHO_C" >&6; }
7007 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
7008   echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010   save_CFLAGS="$CFLAGS"
7011 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
7012                                      -Wno-overlength-strings"
7013 cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h.  */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h.  */
7019
7020 int
7021 main ()
7022 {
7023
7024   ;
7025   return 0;
7026 }
7027 _ACEOF
7028 rm -f conftest.$ac_objext
7029 if { (ac_try="$ac_compile"
7030 case "(($ac_try" in
7031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032   *) ac_try_echo=$ac_try;;
7033 esac
7034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7035   (eval "$ac_compile") 2>conftest.er1
7036   ac_status=$?
7037   grep -v '^ *+' conftest.er1 >conftest.err
7038   rm -f conftest.er1
7039   cat conftest.err >&5
7040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041   (exit $ac_status); } && {
7042          test -z "$ac_c_werror_flag" ||
7043          test ! -s conftest.err
7044        } && test -s conftest.$ac_objext; then
7045   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
7046 else
7047   echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050         acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
7051 fi
7052
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054 CFLAGS="$save_CFLAGS"
7055 fi
7056 { echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7057 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6; }
7058 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7059   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7060                                      -Wno-overlength-strings"
7061 fi
7062
7063
7064 fi
7065
7066
7067 # Check whether --enable-werror-always was given.
7068 if test "${enable_werror_always+set}" = set; then
7069   enableval=$enable_werror_always;
7070 else
7071   enable_werror_always=no
7072 fi
7073
7074 if test $enable_werror_always = yes; then
7075   strict_warn="$strict_warn${strict_warn:+ }-Werror"
7076 fi
7077
7078
7079
7080
7081 # The above macros do nothing if the compiler is not GCC.  However, the
7082 # Makefile has more goo to add other flags, so this variabl is used to
7083 # enables warnings only for GCC.
7084 warn_cflags=
7085 if test "x$GCC" = "xyes"; then
7086   warn_cflags='$(GCC_WARN_CFLAGS)'
7087 fi
7088
7089
7090 # Enable expensive internal checks
7091 is_release=
7092 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7093   is_release=yes
7094 fi
7095
7096 # Check whether --enable-checking was given.
7097 if test "${enable_checking+set}" = set; then
7098   enableval=$enable_checking; ac_checking_flags="${enableval}"
7099 else
7100
7101 # Determine the default checks.
7102 if test x$is_release = x ; then
7103   ac_checking_flags=yes
7104 else
7105   ac_checking_flags=release
7106 fi
7107 fi
7108
7109 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7110 for check in release $ac_checking_flags
7111 do
7112         case $check in
7113         # these set all the flags to specific states
7114         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7115                         ac_fold_checking= ; ac_gc_checking=1 ;
7116                         ac_gc_always_collect= ; ac_rtl_checking= ;
7117                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7118                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7119                         ac_types_checking= ;;
7120         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7121                         ac_fold_checking= ; ac_gc_checking= ;
7122                         ac_gc_always_collect= ; ac_rtl_checking= ;
7123                         ac_rtlflag_checking= ; ac_runtime_checking= ;
7124                         ac_tree_checking= ; ac_valgrind_checking= ;
7125                         ac_types_checking= ;;
7126         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7127                         ac_fold_checking=1 ; ac_gc_checking=1 ;
7128                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
7129                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7130                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7131                         ac_types_checking=1 ;;
7132         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7133                         ac_fold_checking= ; ac_gc_checking= ;
7134                         ac_gc_always_collect= ; ac_rtl_checking= ;
7135                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7136                         ac_tree_checking= ; ac_valgrind_checking= ;
7137                         ac_types_checking= ;;
7138         # these enable particular checks
7139         assert)         ac_assert_checking=1 ;;
7140         df)             ac_df_checking=1 ;;
7141         fold)           ac_fold_checking=1 ;;
7142         gc)             ac_gc_checking=1 ;;
7143         gcac)           ac_gc_always_collect=1 ;;
7144         misc)           ac_checking=1 ;;
7145         rtl)            ac_rtl_checking=1 ;;
7146         rtlflag)        ac_rtlflag_checking=1 ;;
7147         runtime)        ac_runtime_checking=1 ;;
7148         tree)           ac_tree_checking=1 ;;
7149         types)          ac_types_checking=1 ;;
7150         valgrind)       ac_valgrind_checking=1 ;;
7151         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7152 echo "$as_me: error: unknown check category $check" >&2;}
7153    { (exit 1); exit 1; }; } ;;
7154         esac
7155 done
7156 IFS="$ac_save_IFS"
7157
7158 nocommon_flag=""
7159 if test x$ac_checking != x ; then
7160
7161 cat >>confdefs.h <<\_ACEOF
7162 #define ENABLE_CHECKING 1
7163 _ACEOF
7164
7165   nocommon_flag=-fno-common
7166 fi
7167
7168 if test x$ac_df_checking != x ; then
7169
7170 cat >>confdefs.h <<\_ACEOF
7171 #define ENABLE_DF_CHECKING 1
7172 _ACEOF
7173
7174 fi
7175 if test x$ac_assert_checking != x ; then
7176
7177 cat >>confdefs.h <<\_ACEOF
7178 #define ENABLE_ASSERT_CHECKING 1
7179 _ACEOF
7180
7181 fi
7182
7183 if test x$ac_runtime_checking != x ; then
7184
7185 cat >>confdefs.h <<\_ACEOF
7186 #define ENABLE_RUNTIME_CHECKING 1
7187 _ACEOF
7188
7189 fi
7190 if test x$ac_tree_checking != x ; then
7191
7192 cat >>confdefs.h <<\_ACEOF
7193 #define ENABLE_TREE_CHECKING 1
7194 _ACEOF
7195
7196   TREEBROWSER=tree-browser.o
7197 fi
7198 if test x$ac_types_checking != x ; then
7199
7200 cat >>confdefs.h <<\_ACEOF
7201 #define ENABLE_TYPES_CHECKING 1
7202 _ACEOF
7203
7204 fi
7205
7206 if test x$ac_rtl_checking != x ; then
7207
7208 cat >>confdefs.h <<\_ACEOF
7209 #define ENABLE_RTL_CHECKING 1
7210 _ACEOF
7211
7212 fi
7213 if test x$ac_rtlflag_checking != x ; then
7214
7215 cat >>confdefs.h <<\_ACEOF
7216 #define ENABLE_RTL_FLAG_CHECKING 1
7217 _ACEOF
7218
7219 fi
7220 if test x$ac_gc_checking != x ; then
7221
7222 cat >>confdefs.h <<\_ACEOF
7223 #define ENABLE_GC_CHECKING 1
7224 _ACEOF
7225
7226 fi
7227 if test x$ac_gc_always_collect != x ; then
7228
7229 cat >>confdefs.h <<\_ACEOF
7230 #define ENABLE_GC_ALWAYS_COLLECT 1
7231 _ACEOF
7232
7233 fi
7234 if test x$ac_fold_checking != x ; then
7235
7236 cat >>confdefs.h <<\_ACEOF
7237 #define ENABLE_FOLD_CHECKING 1
7238 _ACEOF
7239
7240 fi
7241 valgrind_path_defines=
7242 valgrind_command=
7243
7244 if test "${ac_cv_header_valgrind_h+set}" = set; then
7245   { echo "$as_me:$LINENO: checking for valgrind.h" >&5
7246 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
7247 if test "${ac_cv_header_valgrind_h+set}" = set; then
7248   echo $ECHO_N "(cached) $ECHO_C" >&6
7249 fi
7250 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7251 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
7252 else
7253   # Is the header compilable?
7254 { echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7255 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6; }
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h.  */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h.  */
7262 $ac_includes_default
7263 #include <valgrind.h>
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7267 case "(($ac_try" in
7268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269   *) ac_try_echo=$ac_try;;
7270 esac
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272   (eval "$ac_compile") 2>conftest.er1
7273   ac_status=$?
7274   grep -v '^ *+' conftest.er1 >conftest.err
7275   rm -f conftest.er1
7276   cat conftest.err >&5
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); } && {
7279          test -z "$ac_c_werror_flag" ||
7280          test ! -s conftest.err
7281        } && test -s conftest.$ac_objext; then
7282   ac_header_compiler=yes
7283 else
7284   echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287         ac_header_compiler=no
7288 fi
7289
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7292 echo "${ECHO_T}$ac_header_compiler" >&6; }
7293
7294 # Is the header present?
7295 { echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7296 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6; }
7297 cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h.  */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h.  */
7303 #include <valgrind.h>
7304 _ACEOF
7305 if { (ac_try="$ac_cpp conftest.$ac_ext"
7306 case "(($ac_try" in
7307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308   *) ac_try_echo=$ac_try;;
7309 esac
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7312   ac_status=$?
7313   grep -v '^ *+' conftest.er1 >conftest.err
7314   rm -f conftest.er1
7315   cat conftest.err >&5
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); } >/dev/null && {
7318          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7319          test ! -s conftest.err
7320        }; then
7321   ac_header_preproc=yes
7322 else
7323   echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326   ac_header_preproc=no
7327 fi
7328
7329 rm -f conftest.err conftest.$ac_ext
7330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7331 echo "${ECHO_T}$ac_header_preproc" >&6; }
7332
7333 # So?  What about this header?
7334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7335   yes:no: )
7336     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7337 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7338     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7339 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7340     ac_header_preproc=yes
7341     ;;
7342   no:yes:* )
7343     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7344 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7345     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
7346 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
7347     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7348 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7349     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
7350 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7351     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7352 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7353     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7354 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7355
7356     ;;
7357 esac
7358 { echo "$as_me:$LINENO: checking for valgrind.h" >&5
7359 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
7360 if test "${ac_cv_header_valgrind_h+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   ac_cv_header_valgrind_h=$ac_header_preproc
7364 fi
7365 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7366 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
7367
7368 fi
7369 if test $ac_cv_header_valgrind_h = yes; then
7370   have_valgrind_h=yes
7371 else
7372   have_valgrind_h=no
7373 fi
7374
7375
7376
7377 if test x$ac_valgrind_checking != x ; then
7378   # It is certainly possible that there's valgrind but no valgrind.h.
7379   # GCC relies on making annotations so we must have both.
7380   { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7381 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6; }
7382   cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388 #include <valgrind/memcheck.h>
7389 #ifndef VALGRIND_DISCARD
7390 #error VALGRIND_DISCARD not defined
7391 #endif
7392 _ACEOF
7393 if { (ac_try="$ac_cpp conftest.$ac_ext"
7394 case "(($ac_try" in
7395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396   *) ac_try_echo=$ac_try;;
7397 esac
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7400   ac_status=$?
7401   grep -v '^ *+' conftest.er1 >conftest.err
7402   rm -f conftest.er1
7403   cat conftest.err >&5
7404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405   (exit $ac_status); } >/dev/null && {
7406          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7407          test ! -s conftest.err
7408        }; then
7409   gcc_cv_header_valgrind_memcheck_h=yes
7410 else
7411   echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7413
7414   gcc_cv_header_valgrind_memcheck_h=no
7415 fi
7416
7417 rm -f conftest.err conftest.$ac_ext
7418   { echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7419 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6; }
7420   { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7421 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6; }
7422   cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h.  */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h.  */
7428 #include <memcheck.h>
7429 #ifndef VALGRIND_DISCARD
7430 #error VALGRIND_DISCARD not defined
7431 #endif
7432 _ACEOF
7433 if { (ac_try="$ac_cpp conftest.$ac_ext"
7434 case "(($ac_try" in
7435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436   *) ac_try_echo=$ac_try;;
7437 esac
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7440   ac_status=$?
7441   grep -v '^ *+' conftest.er1 >conftest.err
7442   rm -f conftest.er1
7443   cat conftest.err >&5
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); } >/dev/null && {
7446          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7447          test ! -s conftest.err
7448        }; then
7449   gcc_cv_header_memcheck_h=yes
7450 else
7451   echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7453
7454   gcc_cv_header_memcheck_h=no
7455 fi
7456
7457 rm -f conftest.err conftest.$ac_ext
7458   { echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7459 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6; }
7460
7461 # Prepare PATH_SEPARATOR.
7462 # The user is always right.
7463 if test "${PATH_SEPARATOR+set}" != set; then
7464   echo "#! /bin/sh" >conf$$.sh
7465   echo  "exit 0"   >>conf$$.sh
7466   chmod +x conf$$.sh
7467   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7468     PATH_SEPARATOR=';'
7469   else
7470     PATH_SEPARATOR=:
7471   fi
7472   rm -f conf$$.sh
7473 fi
7474
7475 # Find out how to test for executable files. Don't use a zero-byte file,
7476 # as systems may use methods other than mode bits to determine executability.
7477 cat >conf$$.file <<_ASEOF
7478 #! /bin/sh
7479 exit 0
7480 _ASEOF
7481 chmod +x conf$$.file
7482 if test -x conf$$.file >/dev/null 2>&1; then
7483   ac_executable_p="test -x"
7484 else
7485   ac_executable_p="test -f"
7486 fi
7487 rm -f conf$$.file
7488
7489 # Extract the first word of "valgrind", so it can be a program name with args.
7490 set dummy valgrind; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_valgrind_path+set}" = set; then
7494   echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496   case "$valgrind_path" in
7497   [\\/]* | ?:[\\/]*)
7498     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7499     ;;
7500   *)
7501     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7502     for ac_dir in $PATH; do
7503       IFS="$ac_save_IFS"
7504       test -z "$ac_dir" && ac_dir=.
7505       for ac_exec_ext in '' $ac_executable_extensions; do
7506         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7507           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7508             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7509             break 2
7510           fi
7511         fi
7512       done
7513     done
7514     IFS="$ac_save_IFS"
7515     ;;
7516 esac
7517 fi
7518 valgrind_path="$ac_cv_path_valgrind_path"
7519 if test -n "$valgrind_path"; then
7520   { echo "$as_me:$LINENO: result: $valgrind_path" >&5
7521 echo "${ECHO_T}$valgrind_path" >&6; }
7522 else
7523   { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7525 fi
7526
7527   if test "x$valgrind_path" = "x" \
7528     || (test $have_valgrind_h = no \
7529         && test $gcc_cv_header_memcheck_h = no \
7530         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7531         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7532 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7533    { (exit 1); exit 1; }; }
7534   fi
7535   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7536   valgrind_command="$valgrind_path -q"
7537
7538 cat >>confdefs.h <<\_ACEOF
7539 #define ENABLE_VALGRIND_CHECKING 1
7540 _ACEOF
7541
7542   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7543
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_VALGRIND_MEMCHECK_H 1
7546 _ACEOF
7547
7548   fi
7549   if test $gcc_cv_header_memcheck_h = yes; then
7550
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_MEMCHECK_H 1
7553 _ACEOF
7554
7555   fi
7556 fi
7557
7558
7559
7560 # Check whether --enable-mapped-location was given.
7561 if test "${enable_mapped_location+set}" = set; then
7562   enableval=$enable_mapped_location;
7563 else
7564   enable_mapped_location=no
7565 fi
7566
7567
7568 if test "$enable_mapped_location" = yes ; then
7569
7570 cat >>confdefs.h <<\_ACEOF
7571 #define USE_MAPPED_LOCATION 1
7572 _ACEOF
7573
7574 fi
7575
7576 # Enable code coverage collection
7577 # Check whether --enable-coverage was given.
7578 if test "${enable_coverage+set}" = set; then
7579   enableval=$enable_coverage; case "${enableval}" in
7580   yes|noopt)
7581     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7582     ;;
7583   opt)
7584     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7585     ;;
7586   no)
7587     # a.k.a. --disable-coverage
7588     coverage_flags=""
7589     ;;
7590   *)
7591     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7592 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7593    { (exit 1); exit 1; }; }
7594     ;;
7595 esac
7596 else
7597   coverage_flags=""
7598 fi
7599
7600
7601
7602 # Check whether --enable-gather-detailed-mem-stats was given.
7603 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7604   enableval=$enable_gather_detailed_mem_stats;
7605 else
7606   enable_gather_detailed_mem_stats=no
7607 fi
7608
7609 if test x$enable_gather_detailed_mem_stats = xyes ; then
7610
7611 cat >>confdefs.h <<\_ACEOF
7612 #define GATHER_STATISTICS 1
7613 _ACEOF
7614
7615 fi
7616
7617 # -------------------------------
7618 # Miscenalleous configure options
7619 # -------------------------------
7620
7621 # With stabs
7622
7623 # Check whether --with-stabs was given.
7624 if test "${with_stabs+set}" = set; then
7625   withval=$with_stabs; stabs="$with_stabs"
7626 else
7627   stabs=no
7628 fi
7629
7630
7631 # Determine whether or not multilibs are enabled.
7632 # Check whether --enable-multilib was given.
7633 if test "${enable_multilib+set}" = set; then
7634   enableval=$enable_multilib;
7635 else
7636   enable_multilib=yes
7637 fi
7638
7639
7640
7641 # Enable __cxa_atexit for C++.
7642 # Check whether --enable-__cxa_atexit was given.
7643 if test "${enable___cxa_atexit+set}" = set; then
7644   enableval=$enable___cxa_atexit;
7645 fi
7646
7647
7648 # Enable C extension for decimal float if target supports it.
7649 # Check whether --enable-decimal-float was given.
7650 if test "${enable_decimal_float+set}" = set; then
7651   enableval=$enable_decimal_float;
7652   case $enable_decimal_float in
7653     yes | no | bid | dpd) ;;
7654     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7655 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7656 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7657 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7658    { (exit 1); exit 1; }; } ;;
7659   esac
7660
7661 else
7662
7663   case $target in
7664     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7665       enable_decimal_float=yes
7666       ;;
7667     *)
7668       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7669 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7670       enable_decimal_float=no
7671       ;;
7672   esac
7673
7674 fi
7675
7676
7677 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7678
7679 cat >>confdefs.h <<_ACEOF
7680 #define ENABLE_DECIMAL_FLOAT $dfp
7681 _ACEOF
7682
7683
7684 # x86's use BID format instead of DPD
7685 case x$enable_decimal_float in
7686   xyes)
7687     case $target in
7688       i?86*-*-linux* | x86_64*-*-linux*)
7689         enable_decimal_float=bid
7690         ;;
7691       *)
7692         enable_decimal_float=dpd
7693         ;;
7694     esac
7695     ;;
7696   xno)
7697     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7698     # dependency on libdecnumber.
7699     enable_decimal_float=dpd
7700     ;;
7701 esac
7702
7703
7704 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7705
7706 cat >>confdefs.h <<_ACEOF
7707 #define ENABLE_DECIMAL_BID_FORMAT $bid
7708 _ACEOF
7709
7710
7711 # Enable C extension for fixed-point arithmetic.
7712 # Check whether --enable-fixed-point was given.
7713 if test "${enable_fixed_point+set}" = set; then
7714   enableval=$enable_fixed_point;
7715
7716 else
7717
7718   case $target in
7719     mips*-*-*)
7720       enable_fixed_point=yes
7721       ;;
7722     *)
7723       { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7724 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7725       enable_fixed_point=no
7726       ;;
7727   esac
7728
7729 fi
7730
7731
7732
7733 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7734
7735 cat >>confdefs.h <<_ACEOF
7736 #define ENABLE_FIXED_POINT $fixedpoint
7737 _ACEOF
7738
7739
7740 # Enable threads
7741 # Pass with no value to take the default
7742 # Pass with a value to specify a thread package
7743 # Check whether --enable-threads was given.
7744 if test "${enable_threads+set}" = set; then
7745   enableval=$enable_threads;
7746 else
7747   enable_threads=''
7748 fi
7749
7750
7751 # Check whether --enable-tls was given.
7752 if test "${enable_tls+set}" = set; then
7753   enableval=$enable_tls;
7754   case $enable_tls in
7755     yes | no) ;;
7756     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7757 Valid choices are 'yes' and 'no'." >&5
7758 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7759 Valid choices are 'yes' and 'no'." >&2;}
7760    { (exit 1); exit 1; }; } ;;
7761   esac
7762
7763 else
7764   enable_tls=''
7765 fi
7766
7767
7768 # Check whether --enable-objc-gc was given.
7769 if test "${enable_objc_gc+set}" = set; then
7770   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7771         objc_boehm_gc=''
7772 else
7773         objc_boehm_gc=1
7774 fi
7775 else
7776   objc_boehm_gc=''
7777 fi
7778
7779
7780
7781 # Check whether --with-dwarf2 was given.
7782 if test "${with_dwarf2+set}" = set; then
7783   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7784 else
7785   dwarf2=no
7786 fi
7787
7788
7789 # Check whether --enable-shared was given.
7790 if test "${enable_shared+set}" = set; then
7791   enableval=$enable_shared;
7792   case $enable_shared in
7793   yes | no) ;;
7794   *)
7795     enable_shared=no
7796     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7797     for pkg in $enableval; do
7798       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7799         enable_shared=yes
7800       fi
7801     done
7802     IFS="$ac_save_ifs"
7803     ;;
7804   esac
7805
7806 else
7807   enable_shared=yes
7808 fi
7809
7810
7811
7812
7813 # Check whether --with-build-sysroot was given.
7814 if test "${with_build_sysroot+set}" = set; then
7815   withval=$with_build_sysroot;
7816 fi
7817
7818
7819
7820 # Check whether --with-sysroot was given.
7821 if test "${with_sysroot+set}" = set; then
7822   withval=$with_sysroot;
7823  case ${with_sysroot} in
7824  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7825  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7826  esac
7827
7828  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7829  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7830
7831  if test "x$prefix" = xNONE; then
7832   test_prefix=/usr/local
7833  else
7834   test_prefix=$prefix
7835  fi
7836  if test "x$exec_prefix" = xNONE; then
7837   test_exec_prefix=$test_prefix
7838  else
7839   test_exec_prefix=$exec_prefix
7840  fi
7841  case ${TARGET_SYSTEM_ROOT} in
7842  "${test_prefix}"|"${test_prefix}/"*|\
7843  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7844  '${prefix}'|'${prefix}/'*|\
7845  '${exec_prefix}'|'${exec_prefix}/'*)
7846    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7847    TARGET_SYSTEM_ROOT_DEFINE="$t"
7848    ;;
7849  esac
7850
7851 else
7852
7853  TARGET_SYSTEM_ROOT=
7854  TARGET_SYSTEM_ROOT_DEFINE=
7855  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7856
7857 fi
7858
7859
7860
7861
7862
7863 # Build with intermodule optimisations
7864 # Check whether --enable-intermodule was given.
7865 if test "${enable_intermodule+set}" = set; then
7866   enableval=$enable_intermodule; case ${enable_intermodule} in
7867   yes) onestep="-onestep";;
7868   *) onestep="";;
7869 esac
7870 else
7871   onestep=""
7872 fi
7873
7874
7875
7876
7877
7878 # Check whether --with-pkgversion was given.
7879 if test "${with_pkgversion+set}" = set; then
7880   withval=$with_pkgversion; case "$withval" in
7881       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7882 echo "$as_me: error: package version not specified" >&2;}
7883    { (exit 1); exit 1; }; } ;;
7884       no)  PKGVERSION= ;;
7885       *)   PKGVERSION="($withval) " ;;
7886      esac
7887 else
7888   PKGVERSION="(GCC) "
7889
7890 fi
7891
7892
7893
7894
7895
7896 # Check whether --with-bugurl was given.
7897 if test "${with_bugurl+set}" = set; then
7898   withval=$with_bugurl; case "$withval" in
7899       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7900 echo "$as_me: error: bug URL not specified" >&2;}
7901    { (exit 1); exit 1; }; } ;;
7902       no)  BUGURL=
7903            ;;
7904       *)   BUGURL="$withval"
7905            ;;
7906      esac
7907 else
7908   BUGURL="http://gcc.gnu.org/bugs.html"
7909
7910 fi
7911
7912   case ${BUGURL} in
7913   "")
7914     REPORT_BUGS_TO=
7915     REPORT_BUGS_TEXI=
7916     ;;
7917   *)
7918     REPORT_BUGS_TO="<$BUGURL>"
7919     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7920     ;;
7921   esac;
7922
7923
7924
7925
7926 # Sanity check enable_languages in case someone does not run the toplevel
7927 # configure # script.
7928 # Check whether --enable-languages was given.
7929 if test "${enable_languages+set}" = set; then
7930   enableval=$enable_languages; case ,${enable_languages}, in
7931        ,,|,yes,)
7932                 # go safe -- we cannot be much sure without the toplevel
7933                 # configure's
7934                 # analysis of which target libs are present and usable
7935                 enable_languages=c
7936                 ;;
7937          *,all,*)
7938                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7939 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7940    { (exit 1); exit 1; }; }
7941                 ;;
7942         *,c,*)
7943                 ;;
7944         *)
7945                 enable_languages=c,${enable_languages}
7946                 ;;
7947 esac
7948 else
7949   enable_languages=c
7950 fi
7951
7952
7953 # Used by documentation targets
7954
7955
7956
7957
7958 # -------------------------
7959 # Checks for other programs
7960 # -------------------------
7961
7962 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7963 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7964 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7965 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968   cat >conftest.make <<\_ACEOF
7969 SHELL = /bin/sh
7970 all:
7971         @echo '@@@%%%=$(MAKE)=@@@%%%'
7972 _ACEOF
7973 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7974 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7975   *@@@%%%=?*=@@@%%%*)
7976     eval ac_cv_prog_make_${ac_make}_set=yes;;
7977   *)
7978     eval ac_cv_prog_make_${ac_make}_set=no;;
7979 esac
7980 rm -f conftest.make
7981 fi
7982 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7983   { echo "$as_me:$LINENO: result: yes" >&5
7984 echo "${ECHO_T}yes" >&6; }
7985   SET_MAKE=
7986 else
7987   { echo "$as_me:$LINENO: result: no" >&5
7988 echo "${ECHO_T}no" >&6; }
7989   SET_MAKE="MAKE=${MAKE-make}"
7990 fi
7991
7992
7993 # Find some useful tools
7994 for ac_prog in gawk mawk nawk awk
7995 do
7996   # Extract the first word of "$ac_prog", so it can be a program name with args.
7997 set dummy $ac_prog; ac_word=$2
7998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8000 if test "${ac_cv_prog_AWK+set}" = set; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003   if test -n "$AWK"; then
8004   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8005 else
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009   IFS=$as_save_IFS
8010   test -z "$as_dir" && as_dir=.
8011   for ac_exec_ext in '' $ac_executable_extensions; do
8012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013     ac_cv_prog_AWK="$ac_prog"
8014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015     break 2
8016   fi
8017 done
8018 done
8019 IFS=$as_save_IFS
8020
8021 fi
8022 fi
8023 AWK=$ac_cv_prog_AWK
8024 if test -n "$AWK"; then
8025   { echo "$as_me:$LINENO: result: $AWK" >&5
8026 echo "${ECHO_T}$AWK" >&6; }
8027 else
8028   { echo "$as_me:$LINENO: result: no" >&5
8029 echo "${ECHO_T}no" >&6; }
8030 fi
8031
8032
8033   test -n "$AWK" && break
8034 done
8035
8036 # We need awk to create options.c and options.h.
8037 # Bail out if it's missing.
8038 case ${AWK} in
8039   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8040 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8041    { (exit 1); exit 1; }; } ;;
8042 esac
8043
8044 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
8045 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
8046 if test "${gcc_cv_prog_LN_S+set}" = set; then
8047   echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049   rm -f conftestdata_t
8050 echo >conftestdata_f
8051 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8052 then
8053   gcc_cv_prog_LN_S="ln -s"
8054 else
8055   if ln conftestdata_f conftestdata_t 2>/dev/null
8056   then
8057     gcc_cv_prog_LN_S=ln
8058   else
8059     if cp -p conftestdata_f conftestdata_t 2>/dev/null
8060     then
8061       gcc_cv_prog_LN_S="cp -p"
8062     else
8063       gcc_cv_prog_LN_S=cp
8064     fi
8065   fi
8066 fi
8067 rm -f conftestdata_f conftestdata_t
8068
8069 fi
8070 LN_S="$gcc_cv_prog_LN_S"
8071 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8072   { echo "$as_me:$LINENO: result: yes" >&5
8073 echo "${ECHO_T}yes" >&6; }
8074 else
8075   if test "$gcc_cv_prog_LN_S" = "ln"; then
8076     { echo "$as_me:$LINENO: result: no, using ln" >&5
8077 echo "${ECHO_T}no, using ln" >&6; }
8078   else
8079     { echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8080 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8081   fi
8082 fi
8083
8084 { echo "$as_me:$LINENO: checking whether ln works" >&5
8085 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
8086 if test "${acx_cv_prog_LN+set}" = set; then
8087   echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089   rm -f conftestdata_t
8090 echo >conftestdata_f
8091 if ln conftestdata_f conftestdata_t 2>/dev/null
8092 then
8093   acx_cv_prog_LN=ln
8094 else
8095   acx_cv_prog_LN=no
8096 fi
8097 rm -f conftestdata_f conftestdata_t
8098
8099 fi
8100 if test $acx_cv_prog_LN = no; then
8101   LN="$LN_S"
8102   { echo "$as_me:$LINENO: result: no, using $LN" >&5
8103 echo "${ECHO_T}no, using $LN" >&6; }
8104 else
8105   LN="$acx_cv_prog_LN"
8106   { echo "$as_me:$LINENO: result: yes" >&5
8107 echo "${ECHO_T}yes" >&6; }
8108 fi
8109
8110 if test -n "$ac_tool_prefix"; then
8111   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8115 if test "${ac_cv_prog_RANLIB+set}" = set; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   if test -n "$RANLIB"; then
8119   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124   IFS=$as_save_IFS
8125   test -z "$as_dir" && as_dir=.
8126   for ac_exec_ext in '' $ac_executable_extensions; do
8127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8130     break 2
8131   fi
8132 done
8133 done
8134 IFS=$as_save_IFS
8135
8136 fi
8137 fi
8138 RANLIB=$ac_cv_prog_RANLIB
8139 if test -n "$RANLIB"; then
8140   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8141 echo "${ECHO_T}$RANLIB" >&6; }
8142 else
8143   { echo "$as_me:$LINENO: result: no" >&5
8144 echo "${ECHO_T}no" >&6; }
8145 fi
8146
8147
8148 fi
8149 if test -z "$ac_cv_prog_RANLIB"; then
8150   ac_ct_RANLIB=$RANLIB
8151   # Extract the first word of "ranlib", so it can be a program name with args.
8152 set dummy ranlib; ac_word=$2
8153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8155 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8156   echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158   if test -n "$ac_ct_RANLIB"; then
8159   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8163 do
8164   IFS=$as_save_IFS
8165   test -z "$as_dir" && as_dir=.
8166   for ac_exec_ext in '' $ac_executable_extensions; do
8167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168     ac_cv_prog_ac_ct_RANLIB="ranlib"
8169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8170     break 2
8171   fi
8172 done
8173 done
8174 IFS=$as_save_IFS
8175
8176 fi
8177 fi
8178 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8179 if test -n "$ac_ct_RANLIB"; then
8180   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8181 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8182 else
8183   { echo "$as_me:$LINENO: result: no" >&5
8184 echo "${ECHO_T}no" >&6; }
8185 fi
8186
8187   if test "x$ac_ct_RANLIB" = x; then
8188     RANLIB=":"
8189   else
8190     case $cross_compiling:$ac_tool_warned in
8191 yes:)
8192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8193 whose name does not start with the host triplet.  If you think this
8194 configuration is useful to you, please write to autoconf@gnu.org." >&5
8195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8196 whose name does not start with the host triplet.  If you think this
8197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8198 ac_tool_warned=yes ;;
8199 esac
8200     RANLIB=$ac_ct_RANLIB
8201   fi
8202 else
8203   RANLIB="$ac_cv_prog_RANLIB"
8204 fi
8205
8206 case "${host}" in
8207 *-*-darwin*)
8208   # By default, the Darwin ranlib will not treat common symbols as
8209   # definitions when  building the archive table of contents.  Other
8210   # ranlibs do that; pass an option to the Darwin ranlib that makes
8211   # it behave similarly.
8212   ranlib_flags="-c"
8213   ;;
8214 *)
8215   ranlib_flags=""
8216 esac
8217
8218
8219 # Find a good install program.  We prefer a C program (faster),
8220 # so one script is as good as another.  But avoid the broken or
8221 # incompatible versions:
8222 # SysV /etc/install, /usr/sbin/install
8223 # SunOS /usr/etc/install
8224 # IRIX /sbin/install
8225 # AIX /bin/install
8226 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8227 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8228 # ./install, which can be erroneously created by make from ./install.sh.
8229 { echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8230 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
8231 if test -z "$INSTALL"; then
8232 if test "${ac_cv_path_install+set}" = set; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8236   for ac_dir in $PATH; do
8237     # Account for people who put trailing slashes in PATH elements.
8238     case "$ac_dir/" in
8239     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8240     *)
8241       # OSF1 and SCO ODT 3.0 have their own names for install.
8242       for ac_prog in ginstall scoinst install; do
8243         if test -f $ac_dir/$ac_prog; then
8244           if test $ac_prog = install &&
8245             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8246             # AIX install.  It has an incompatible calling convention.
8247             # OSF/1 installbsd also uses dspmsg, but is usable.
8248             :
8249           else
8250             ac_cv_path_install="$ac_dir/$ac_prog -c"
8251             break 2
8252           fi
8253         fi
8254       done
8255       ;;
8256     esac
8257   done
8258   IFS="$ac_save_IFS"
8259
8260 fi
8261   if test "${ac_cv_path_install+set}" = set; then
8262     INSTALL="$ac_cv_path_install"
8263   else
8264     # As a last resort, use the slow shell script.  We don't cache a
8265     # path for INSTALL within a source directory, because that will
8266     # break other packages using the cache if that directory is
8267     # removed, or if the path is relative.
8268     INSTALL="$ac_install_sh"
8269   fi
8270 fi
8271 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8272 echo "${ECHO_T}$INSTALL" >&6; }
8273
8274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8275 # It thinks the first close brace ends the variable substitution.
8276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8277
8278 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8279
8280
8281 # See if cmp has --ignore-initial.
8282 { echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8283 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6; }
8284 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287    echo abfoo >t1
8288   echo cdfoo >t2
8289   gcc_cv_prog_cmp_skip=slowcompare
8290   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8291     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8292       :
8293     else
8294       gcc_cv_prog_cmp_skip=gnucompare
8295     fi
8296   fi
8297   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8298     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8299       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8300         :
8301       else
8302         gcc_cv_prog_cmp_skip=fastcompare
8303       fi
8304     fi
8305   fi
8306   rm t1 t2
8307
8308 fi
8309 { echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8310 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; }
8311 make_compare_target=$gcc_cv_prog_cmp_skip
8312
8313
8314
8315 # See if we have the mktemp command.
8316 # Extract the first word of "mktemp", so it can be a program name with args.
8317 set dummy mktemp; ac_word=$2
8318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8320 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   if test -n "$have_mktemp_command"; then
8324   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329   IFS=$as_save_IFS
8330   test -z "$as_dir" && as_dir=.
8331   for ac_exec_ext in '' $ac_executable_extensions; do
8332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8333     ac_cv_prog_have_mktemp_command="yes"
8334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335     break 2
8336   fi
8337 done
8338 done
8339 IFS=$as_save_IFS
8340
8341   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8342 fi
8343 fi
8344 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8345 if test -n "$have_mktemp_command"; then
8346   { echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8347 echo "${ECHO_T}$have_mktemp_command" >&6; }
8348 else
8349   { echo "$as_me:$LINENO: result: no" >&5
8350 echo "${ECHO_T}no" >&6; }
8351 fi
8352
8353
8354
8355 # See if makeinfo has been installed and is modern enough
8356 # that we can use it.
8357
8358   # Extract the first word of "makeinfo", so it can be a program name with args.
8359 set dummy makeinfo; ac_word=$2
8360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   if test -n "$MAKEINFO"; then
8366   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8367 else
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 for as_dir in $PATH
8370 do
8371   IFS=$as_save_IFS
8372   test -z "$as_dir" && as_dir=.
8373   for ac_exec_ext in '' $ac_executable_extensions; do
8374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8375     ac_cv_prog_MAKEINFO="makeinfo"
8376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8377     break 2
8378   fi
8379 done
8380 done
8381 IFS=$as_save_IFS
8382
8383 fi
8384 fi
8385 MAKEINFO=$ac_cv_prog_MAKEINFO
8386 if test -n "$MAKEINFO"; then
8387   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8388 echo "${ECHO_T}$MAKEINFO" >&6; }
8389 else
8390   { echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6; }
8392 fi
8393
8394
8395   if test -n "$MAKEINFO"; then
8396     # Found it, now check the version.
8397     { echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8398 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6; }
8399 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8403                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8404
8405                     case $ac_prog_version in
8406                       '')  gcc_cv_prog_makeinfo_modern=no;;
8407                       4.[4-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8408                       *)   gcc_cv_prog_makeinfo_modern=no;;
8409                     esac
8410
8411 fi
8412 { echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8413 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6; }
8414   else
8415     gcc_cv_prog_makeinfo_modern=no
8416   fi
8417   if test $gcc_cv_prog_makeinfo_modern = no; then
8418     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8419   fi
8420
8421 if test $gcc_cv_prog_makeinfo_modern = no; then
8422   { echo "$as_me:$LINENO: WARNING:
8423 *** Makeinfo is missing or too old.
8424 *** Info documentation will not be built." >&5
8425 echo "$as_me: WARNING:
8426 *** Makeinfo is missing or too old.
8427 *** Info documentation will not be built." >&2;}
8428   BUILD_INFO=
8429 else
8430   BUILD_INFO=info
8431 fi
8432
8433
8434 # Is pod2man recent enough to regenerate manpages?
8435 { echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8436 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6; }
8437 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8438   { echo "$as_me:$LINENO: result: yes" >&5
8439 echo "${ECHO_T}yes" >&6; }
8440   GENERATED_MANPAGES=generated-manpages
8441 else
8442   { echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6; }
8444   GENERATED_MANPAGES=
8445 fi
8446
8447
8448 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8449
8450 # How about lex?
8451 for ac_prog in flex
8452 do
8453   # Extract the first word of "$ac_prog", so it can be a program name with args.
8454 set dummy $ac_prog; ac_word=$2
8455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8457 if test "${ac_cv_prog_FLEX+set}" = set; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460   if test -n "$FLEX"; then
8461   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8465 do
8466   IFS=$as_save_IFS
8467   test -z "$as_dir" && as_dir=.
8468   for ac_exec_ext in '' $ac_executable_extensions; do
8469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470     ac_cv_prog_FLEX="$ac_prog"
8471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8472     break 2
8473   fi
8474 done
8475 done
8476 IFS=$as_save_IFS
8477
8478 fi
8479 fi
8480 FLEX=$ac_cv_prog_FLEX
8481 if test -n "$FLEX"; then
8482   { echo "$as_me:$LINENO: result: $FLEX" >&5
8483 echo "${ECHO_T}$FLEX" >&6; }
8484 else
8485   { echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6; }
8487 fi
8488
8489
8490   test -n "$FLEX" && break
8491 done
8492 test -n "$FLEX" || FLEX="$MISSING flex"
8493
8494
8495 # Bison?
8496 for ac_prog in bison
8497 do
8498   # Extract the first word of "$ac_prog", so it can be a program name with args.
8499 set dummy $ac_prog; ac_word=$2
8500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8502 if test "${ac_cv_prog_BISON+set}" = set; then
8503   echo $ECHO_N "(cached) $ECHO_C" >&6
8504 else
8505   if test -n "$BISON"; then
8506   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8507 else
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511   IFS=$as_save_IFS
8512   test -z "$as_dir" && as_dir=.
8513   for ac_exec_ext in '' $ac_executable_extensions; do
8514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515     ac_cv_prog_BISON="$ac_prog"
8516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8517     break 2
8518   fi
8519 done
8520 done
8521 IFS=$as_save_IFS
8522
8523 fi
8524 fi
8525 BISON=$ac_cv_prog_BISON
8526 if test -n "$BISON"; then
8527   { echo "$as_me:$LINENO: result: $BISON" >&5
8528 echo "${ECHO_T}$BISON" >&6; }
8529 else
8530   { echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6; }
8532 fi
8533
8534
8535   test -n "$BISON" && break
8536 done
8537 test -n "$BISON" || BISON="$MISSING bison"
8538
8539
8540 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8541 # check for build == host before using them.
8542
8543 # NM
8544 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8545   && test -d ../binutils ; then
8546   NM='$(objdir)/../binutils/nm-new'
8547 else
8548   # Extract the first word of "nm", so it can be a program name with args.
8549 set dummy nm; ac_word=$2
8550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8552 if test "${ac_cv_prog_NM+set}" = set; then
8553   echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555   if test -n "$NM"; then
8556   ac_cv_prog_NM="$NM" # Let the user override the test.
8557 else
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 for as_dir in $PATH
8560 do
8561   IFS=$as_save_IFS
8562   test -z "$as_dir" && as_dir=.
8563   for ac_exec_ext in '' $ac_executable_extensions; do
8564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8565     ac_cv_prog_NM="nm"
8566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8567     break 2
8568   fi
8569 done
8570 done
8571 IFS=$as_save_IFS
8572
8573   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8574 fi
8575 fi
8576 NM=$ac_cv_prog_NM
8577 if test -n "$NM"; then
8578   { echo "$as_me:$LINENO: result: $NM" >&5
8579 echo "${ECHO_T}$NM" >&6; }
8580 else
8581   { echo "$as_me:$LINENO: result: no" >&5
8582 echo "${ECHO_T}no" >&6; }
8583 fi
8584
8585
8586 fi
8587
8588 # AR
8589 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8590   && test -d ../binutils ; then
8591   AR='$(objdir)/../binutils/ar'
8592 else
8593   # Extract the first word of "ar", so it can be a program name with args.
8594 set dummy ar; ac_word=$2
8595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8597 if test "${ac_cv_prog_AR+set}" = set; then
8598   echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600   if test -n "$AR"; then
8601   ac_cv_prog_AR="$AR" # Let the user override the test.
8602 else
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8605 do
8606   IFS=$as_save_IFS
8607   test -z "$as_dir" && as_dir=.
8608   for ac_exec_ext in '' $ac_executable_extensions; do
8609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8610     ac_cv_prog_AR="ar"
8611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8612     break 2
8613   fi
8614 done
8615 done
8616 IFS=$as_save_IFS
8617
8618   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8619 fi
8620 fi
8621 AR=$ac_cv_prog_AR
8622 if test -n "$AR"; then
8623   { echo "$as_me:$LINENO: result: $AR" >&5
8624 echo "${ECHO_T}$AR" >&6; }
8625 else
8626   { echo "$as_me:$LINENO: result: no" >&5
8627 echo "${ECHO_T}no" >&6; }
8628 fi
8629
8630
8631 fi
8632
8633
8634 # --------------------
8635 # Checks for C headers
8636 # --------------------
8637
8638 { echo "$as_me:$LINENO: checking for GNU C library" >&5
8639 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6; }
8640 if test "${gcc_cv_glibc+set}" = set; then
8641   echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643   cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649 #include <features.h>
8650 int
8651 main ()
8652 {
8653
8654 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
8655 #error Not a GNU C library system
8656 #endif
8657   ;
8658   return 0;
8659 }
8660 _ACEOF
8661 rm -f conftest.$ac_objext
8662 if { (ac_try="$ac_compile"
8663 case "(($ac_try" in
8664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665   *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668   (eval "$ac_compile") 2>conftest.er1
8669   ac_status=$?
8670   grep -v '^ *+' conftest.er1 >conftest.err
8671   rm -f conftest.er1
8672   cat conftest.err >&5
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); } && {
8675          test -z "$ac_c_werror_flag" ||
8676          test ! -s conftest.err
8677        } && test -s conftest.$ac_objext; then
8678   gcc_cv_glibc=yes
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683         gcc_cv_glibc=no
8684 fi
8685
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 fi
8688
8689 { echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8690 echo "${ECHO_T}$gcc_cv_glibc" >&6; }
8691 if test $gcc_cv_glibc = yes; then
8692
8693 cat >>confdefs.h <<\_ACEOF
8694 #define _GNU_SOURCE 1
8695 _ACEOF
8696
8697 fi
8698
8699 # Need to reject headers which give warnings, so that the -Werror bootstrap
8700 # works later. *sigh*  This needs to come before all header checks.
8701
8702 ac_c_preproc_warn_flag=yes
8703
8704 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8705 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8706 if test "${ac_cv_header_stdc+set}" = set; then
8707   echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709   cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h.  */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h.  */
8715 #include <stdlib.h>
8716 #include <stdarg.h>
8717 #include <string.h>
8718 #include <float.h>
8719
8720 int
8721 main ()
8722 {
8723
8724   ;
8725   return 0;
8726 }
8727 _ACEOF
8728 rm -f conftest.$ac_objext
8729 if { (ac_try="$ac_compile"
8730 case "(($ac_try" in
8731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732   *) ac_try_echo=$ac_try;;
8733 esac
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735   (eval "$ac_compile") 2>conftest.er1
8736   ac_status=$?
8737   grep -v '^ *+' conftest.er1 >conftest.err
8738   rm -f conftest.er1
8739   cat conftest.err >&5
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); } && {
8742          test -z "$ac_c_werror_flag" ||
8743          test ! -s conftest.err
8744        } && test -s conftest.$ac_objext; then
8745   ac_cv_header_stdc=yes
8746 else
8747   echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750         ac_cv_header_stdc=no
8751 fi
8752
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754
8755 if test $ac_cv_header_stdc = yes; then
8756   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8757   cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h.  */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h.  */
8763 #include <string.h>
8764
8765 _ACEOF
8766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8767   $EGREP "memchr" >/dev/null 2>&1; then
8768   :
8769 else
8770   ac_cv_header_stdc=no
8771 fi
8772 rm -f conftest*
8773
8774 fi
8775
8776 if test $ac_cv_header_stdc = yes; then
8777   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8778   cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h.  */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h.  */
8784 #include <stdlib.h>
8785
8786 _ACEOF
8787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8788   $EGREP "free" >/dev/null 2>&1; then
8789   :
8790 else
8791   ac_cv_header_stdc=no
8792 fi
8793 rm -f conftest*
8794
8795 fi
8796
8797 if test $ac_cv_header_stdc = yes; then
8798   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8799   if test "$cross_compiling" = yes; then
8800   :
8801 else
8802   cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h.  */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h.  */
8808 #include <ctype.h>
8809 #include <stdlib.h>
8810 #if ((' ' & 0x0FF) == 0x020)
8811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8813 #else
8814 # define ISLOWER(c) \
8815                    (('a' <= (c) && (c) <= 'i') \
8816                      || ('j' <= (c) && (c) <= 'r') \
8817                      || ('s' <= (c) && (c) <= 'z'))
8818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8819 #endif
8820
8821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8822 int
8823 main ()
8824 {
8825   int i;
8826   for (i = 0; i < 256; i++)
8827     if (XOR (islower (i), ISLOWER (i))
8828         || toupper (i) != TOUPPER (i))
8829       return 2;
8830   return 0;
8831 }
8832 _ACEOF
8833 rm -f conftest$ac_exeext
8834 if { (ac_try="$ac_link"
8835 case "(($ac_try" in
8836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837   *) ac_try_echo=$ac_try;;
8838 esac
8839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840   (eval "$ac_link") 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8844   { (case "(($ac_try" in
8845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846   *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849   (eval "$ac_try") 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); }; }; then
8853   :
8854 else
8855   echo "$as_me: program exited with status $ac_status" >&5
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859 ( exit $ac_status )
8860 ac_cv_header_stdc=no
8861 fi
8862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8863 fi
8864
8865
8866 fi
8867 fi
8868 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8869 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8870 if test $ac_cv_header_stdc = yes; then
8871
8872 cat >>confdefs.h <<\_ACEOF
8873 #define STDC_HEADERS 1
8874 _ACEOF
8875
8876 fi
8877
8878 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8879 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
8880 if test "${ac_cv_header_time+set}" = set; then
8881   echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883   cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889 #include <sys/types.h>
8890 #include <sys/time.h>
8891 #include <time.h>
8892
8893 int
8894 main ()
8895 {
8896 if ((struct tm *) 0)
8897 return 0;
8898   ;
8899   return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext
8903 if { (ac_try="$ac_compile"
8904 case "(($ac_try" in
8905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906   *) ac_try_echo=$ac_try;;
8907 esac
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909   (eval "$ac_compile") 2>conftest.er1
8910   ac_status=$?
8911   grep -v '^ *+' conftest.er1 >conftest.err
8912   rm -f conftest.er1
8913   cat conftest.err >&5
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); } && {
8916          test -z "$ac_c_werror_flag" ||
8917          test ! -s conftest.err
8918        } && test -s conftest.$ac_objext; then
8919   ac_cv_header_time=yes
8920 else
8921   echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8923
8924         ac_cv_header_time=no
8925 fi
8926
8927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928 fi
8929 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8930 echo "${ECHO_T}$ac_cv_header_time" >&6; }
8931 if test $ac_cv_header_time = yes; then
8932
8933 cat >>confdefs.h <<\_ACEOF
8934 #define TIME_WITH_SYS_TIME 1
8935 _ACEOF
8936
8937 fi
8938
8939 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8940 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
8941 if test "${gcc_cv_header_string+set}" = set; then
8942   echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944   cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h.  */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h.  */
8950 #include <string.h>
8951 #include <strings.h>
8952 int
8953 main ()
8954 {
8955
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (ac_try="$ac_compile"
8962 case "(($ac_try" in
8963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964   *) ac_try_echo=$ac_try;;
8965 esac
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967   (eval "$ac_compile") 2>conftest.er1
8968   ac_status=$?
8969   grep -v '^ *+' conftest.er1 >conftest.err
8970   rm -f conftest.er1
8971   cat conftest.err >&5
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); } && {
8974          test -z "$ac_c_werror_flag" ||
8975          test ! -s conftest.err
8976        } && test -s conftest.$ac_objext; then
8977   gcc_cv_header_string=yes
8978 else
8979   echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8981
8982         gcc_cv_header_string=no
8983 fi
8984
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 fi
8987 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8988 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
8989 if test $gcc_cv_header_string = yes; then
8990
8991 cat >>confdefs.h <<\_ACEOF
8992 #define STRING_WITH_STRINGS 1
8993 _ACEOF
8994
8995 fi
8996
8997 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8998 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8999 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   cat >conftest.$ac_ext <<_ACEOF
9003 /* confdefs.h.  */
9004 _ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h.  */
9008 #include <sys/types.h>
9009 #include <sys/wait.h>
9010 #ifndef WEXITSTATUS
9011 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9012 #endif
9013 #ifndef WIFEXITED
9014 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9015 #endif
9016
9017 int
9018 main ()
9019 {
9020   int s;
9021   wait (&s);
9022   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9023   ;
9024   return 0;
9025 }
9026 _ACEOF
9027 rm -f conftest.$ac_objext
9028 if { (ac_try="$ac_compile"
9029 case "(($ac_try" in
9030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031   *) ac_try_echo=$ac_try;;
9032 esac
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034   (eval "$ac_compile") 2>conftest.er1
9035   ac_status=$?
9036   grep -v '^ *+' conftest.er1 >conftest.err
9037   rm -f conftest.er1
9038   cat conftest.err >&5
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); } && {
9041          test -z "$ac_c_werror_flag" ||
9042          test ! -s conftest.err
9043        } && test -s conftest.$ac_objext; then
9044   ac_cv_header_sys_wait_h=yes
9045 else
9046   echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049         ac_cv_header_sys_wait_h=no
9050 fi
9051
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 fi
9054 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9055 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9056 if test $ac_cv_header_sys_wait_h = yes; then
9057
9058 cat >>confdefs.h <<\_ACEOF
9059 #define HAVE_SYS_WAIT_H 1
9060 _ACEOF
9061
9062 fi
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9087                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9088                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
9089                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9090 do
9091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9095   echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097   cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h.  */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h.  */
9103 #include <$ac_header>
9104 _ACEOF
9105 if { (ac_try="$ac_cpp conftest.$ac_ext"
9106 case "(($ac_try" in
9107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108   *) ac_try_echo=$ac_try;;
9109 esac
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9112   ac_status=$?
9113   grep -v '^ *+' conftest.er1 >conftest.err
9114   rm -f conftest.er1
9115   cat conftest.err >&5
9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); } >/dev/null && {
9118          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9119          test ! -s conftest.err
9120        }; then
9121   eval "$as_ac_Header=yes"
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126   eval "$as_ac_Header=no"
9127 fi
9128
9129 rm -f conftest.err conftest.$ac_ext
9130 fi
9131 ac_res=`eval echo '${'$as_ac_Header'}'`
9132                { echo "$as_me:$LINENO: result: $ac_res" >&5
9133 echo "${ECHO_T}$ac_res" >&6; }
9134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9135   cat >>confdefs.h <<_ACEOF
9136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9137 _ACEOF
9138
9139 fi
9140 done
9141
9142
9143 # Check for thread headers.
9144 { echo "$as_me:$LINENO: checking for thread.h" >&5
9145 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6; }
9146 if test "${ac_cv_header_thread_h+set}" = set; then
9147   echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149   cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h.  */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h.  */
9155 #include <thread.h>
9156 _ACEOF
9157 if { (ac_try="$ac_cpp conftest.$ac_ext"
9158 case "(($ac_try" in
9159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160   *) ac_try_echo=$ac_try;;
9161 esac
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9164   ac_status=$?
9165   grep -v '^ *+' conftest.er1 >conftest.err
9166   rm -f conftest.er1
9167   cat conftest.err >&5
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } >/dev/null && {
9170          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9171          test ! -s conftest.err
9172        }; then
9173   ac_cv_header_thread_h=yes
9174 else
9175   echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178   ac_cv_header_thread_h=no
9179 fi
9180
9181 rm -f conftest.err conftest.$ac_ext
9182 fi
9183 { echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9184 echo "${ECHO_T}$ac_cv_header_thread_h" >&6; }
9185 if test $ac_cv_header_thread_h = yes; then
9186   have_thread_h=yes
9187 else
9188   have_thread_h=
9189 fi
9190
9191 { echo "$as_me:$LINENO: checking for pthread.h" >&5
9192 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
9193 if test "${ac_cv_header_pthread_h+set}" = set; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h.  */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h.  */
9202 #include <pthread.h>
9203 _ACEOF
9204 if { (ac_try="$ac_cpp conftest.$ac_ext"
9205 case "(($ac_try" in
9206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207   *) ac_try_echo=$ac_try;;
9208 esac
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9211   ac_status=$?
9212   grep -v '^ *+' conftest.er1 >conftest.err
9213   rm -f conftest.er1
9214   cat conftest.err >&5
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } >/dev/null && {
9217          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9218          test ! -s conftest.err
9219        }; then
9220   ac_cv_header_pthread_h=yes
9221 else
9222   echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9224
9225   ac_cv_header_pthread_h=no
9226 fi
9227
9228 rm -f conftest.err conftest.$ac_ext
9229 fi
9230 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9231 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
9232 if test $ac_cv_header_pthread_h = yes; then
9233   have_pthread_h=yes
9234 else
9235   have_pthread_h=
9236 fi
9237
9238
9239 # These tests can't be done till we know if we have limits.h.
9240 { echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9241 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6; }
9242 if test "${gcc_cv_decl_char_bit+set}" = set; then
9243   echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245   cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h.  */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h.  */
9251 #ifdef HAVE_LIMITS_H
9252 #include <limits.h>
9253 #endif
9254 #ifdef CHAR_BIT
9255 found
9256 #endif
9257 _ACEOF
9258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9259   $EGREP "found" >/dev/null 2>&1; then
9260   gcc_cv_decl_char_bit=yes
9261 else
9262   gcc_cv_decl_char_bit=no
9263 fi
9264 rm -f conftest*
9265
9266
9267 fi
9268 { echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9269 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6; }
9270 if test $gcc_cv_decl_char_bit = no; then
9271   { echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9272 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6; }
9273 if test "${gcc_cv_c_nbby+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   i=8
9277  gcc_cv_c_nbby=
9278  while test $i -lt 65; do
9279    cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285
9286 int
9287 main ()
9288 {
9289 switch(0) {
9290   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9291   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9292   ; }
9293   ;
9294   return 0;
9295 }
9296 _ACEOF
9297 rm -f conftest.$ac_objext
9298 if { (ac_try="$ac_compile"
9299 case "(($ac_try" in
9300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301   *) ac_try_echo=$ac_try;;
9302 esac
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304   (eval "$ac_compile") 2>conftest.er1
9305   ac_status=$?
9306   grep -v '^ *+' conftest.er1 >conftest.err
9307   rm -f conftest.er1
9308   cat conftest.err >&5
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } && {
9311          test -z "$ac_c_werror_flag" ||
9312          test ! -s conftest.err
9313        } && test -s conftest.$ac_objext; then
9314   gcc_cv_c_nbby=$i; break
9315 else
9316   echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319
9320 fi
9321
9322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9323    i=`expr $i + 1`
9324  done
9325  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9326
9327 fi
9328 { echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9329 echo "${ECHO_T}$gcc_cv_c_nbby" >&6; }
9330 if test $gcc_cv_c_nbby = failed; then
9331   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9332 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9333    { (exit 1); exit 1; }; }
9334 else
9335
9336 cat >>confdefs.h <<_ACEOF
9337 #define CHAR_BIT $gcc_cv_c_nbby
9338 _ACEOF
9339
9340 fi
9341 fi
9342 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9343 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
9344 if test "${ac_cv_c_bigendian+set}" = set; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347   # See if sys/param.h defines the BYTE_ORDER macro.
9348 cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 #include <sys/types.h>
9355 #include <sys/param.h>
9356
9357 int
9358 main ()
9359 {
9360 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
9361         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
9362  bogus endian macros
9363 #endif
9364
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9371 case "(($ac_try" in
9372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373   *) ac_try_echo=$ac_try;;
9374 esac
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376   (eval "$ac_compile") 2>conftest.er1
9377   ac_status=$?
9378   grep -v '^ *+' conftest.er1 >conftest.err
9379   rm -f conftest.er1
9380   cat conftest.err >&5
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); } && {
9383          test -z "$ac_c_werror_flag" ||
9384          test ! -s conftest.err
9385        } && test -s conftest.$ac_objext; then
9386   # It does; now see whether it defined to BIG_ENDIAN or not.
9387 cat >conftest.$ac_ext <<_ACEOF
9388 /* confdefs.h.  */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h.  */
9393 #include <sys/types.h>
9394 #include <sys/param.h>
9395
9396 int
9397 main ()
9398 {
9399 #if BYTE_ORDER != BIG_ENDIAN
9400  not big endian
9401 #endif
9402
9403   ;
9404   return 0;
9405 }
9406 _ACEOF
9407 rm -f conftest.$ac_objext
9408 if { (ac_try="$ac_compile"
9409 case "(($ac_try" in
9410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411   *) ac_try_echo=$ac_try;;
9412 esac
9413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414   (eval "$ac_compile") 2>conftest.er1
9415   ac_status=$?
9416   grep -v '^ *+' conftest.er1 >conftest.err
9417   rm -f conftest.er1
9418   cat conftest.err >&5
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } && {
9421          test -z "$ac_c_werror_flag" ||
9422          test ! -s conftest.err
9423        } && test -s conftest.$ac_objext; then
9424   ac_cv_c_bigendian=yes
9425 else
9426   echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9428
9429         ac_cv_c_bigendian=no
9430 fi
9431
9432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433 else
9434   echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9436
9437         # It does not; compile a test program.
9438 if test "$cross_compiling" = yes; then
9439   # try to guess the endianness by grepping values into an object file
9440   ac_cv_c_bigendian=unknown
9441   cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h.  */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h.  */
9447 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9448 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9449 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9450 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9451 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9452 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9453 int
9454 main ()
9455 {
9456  _ascii (); _ebcdic ();
9457   ;
9458   return 0;
9459 }
9460 _ACEOF
9461 rm -f conftest.$ac_objext
9462 if { (ac_try="$ac_compile"
9463 case "(($ac_try" in
9464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465   *) ac_try_echo=$ac_try;;
9466 esac
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468   (eval "$ac_compile") 2>conftest.er1
9469   ac_status=$?
9470   grep -v '^ *+' conftest.er1 >conftest.err
9471   rm -f conftest.er1
9472   cat conftest.err >&5
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); } && {
9475          test -z "$ac_c_werror_flag" ||
9476          test ! -s conftest.err
9477        } && test -s conftest.$ac_objext; then
9478   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9479   ac_cv_c_bigendian=yes
9480 fi
9481 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9482   if test "$ac_cv_c_bigendian" = unknown; then
9483     ac_cv_c_bigendian=no
9484   else
9485     # finding both strings is unlikely to happen, but who knows?
9486     ac_cv_c_bigendian=unknown
9487   fi
9488 fi
9489 else
9490   echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493
9494 fi
9495
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 else
9498   cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h.  */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h.  */
9504 $ac_includes_default
9505 int
9506 main ()
9507 {
9508
9509   /* Are we little or big endian?  From Harbison&Steele.  */
9510   union
9511   {
9512     long int l;
9513     char c[sizeof (long int)];
9514   } u;
9515   u.l = 1;
9516   return u.c[sizeof (long int) - 1] == 1;
9517
9518   ;
9519   return 0;
9520 }
9521 _ACEOF
9522 rm -f conftest$ac_exeext
9523 if { (ac_try="$ac_link"
9524 case "(($ac_try" in
9525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526   *) ac_try_echo=$ac_try;;
9527 esac
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529   (eval "$ac_link") 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9533   { (case "(($ac_try" in
9534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535   *) ac_try_echo=$ac_try;;
9536 esac
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538   (eval "$ac_try") 2>&5
9539   ac_status=$?
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); }; }; then
9542   ac_cv_c_bigendian=no
9543 else
9544   echo "$as_me: program exited with status $ac_status" >&5
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 ( exit $ac_status )
9549 ac_cv_c_bigendian=yes
9550 fi
9551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9552 fi
9553
9554
9555 fi
9556
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 fi
9559 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9560 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
9561 case $ac_cv_c_bigendian in
9562   yes)
9563
9564 cat >>confdefs.h <<\_ACEOF
9565 #define WORDS_BIGENDIAN 1
9566 _ACEOF
9567  ;;
9568   no)
9569      ;;
9570   *)
9571     { { echo "$as_me:$LINENO: error: unknown endianness
9572 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9573 echo "$as_me: error: unknown endianness
9574 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9575    { (exit 1); exit 1; }; } ;;
9576 esac
9577
9578
9579 # --------
9580 # UNSORTED
9581 # --------
9582
9583
9584 # These libraries may be used by collect2.
9585 # We may need a special search path to get them linked.
9586 { echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9587 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6; }
9588 if test "${gcc_cv_collect2_libs+set}" = set; then
9589   echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591   save_LIBS="$LIBS"
9592 for libs in '' -lld -lmld \
9593                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9594                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9595 do
9596         LIBS="$libs"
9597         cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h.  */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h.  */
9603
9604 /* Override any GCC internal prototype to avoid an error.
9605    Use char because int might match the return type of a GCC
9606    builtin and then its argument prototype would still apply.  */
9607 #ifdef __cplusplus
9608 extern "C"
9609 #endif
9610 char ldopen ();
9611 int
9612 main ()
9613 {
9614 return ldopen ();
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (ac_try="$ac_link"
9621 case "(($ac_try" in
9622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623   *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626   (eval "$ac_link") 2>conftest.er1
9627   ac_status=$?
9628   grep -v '^ *+' conftest.er1 >conftest.err
9629   rm -f conftest.er1
9630   cat conftest.err >&5
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } && {
9633          test -z "$ac_c_werror_flag" ||
9634          test ! -s conftest.err
9635        } && test -s conftest$ac_exeext &&
9636        $as_test_x conftest$ac_exeext; then
9637   gcc_cv_collect2_libs="$libs"; break
9638 else
9639   echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642
9643 fi
9644
9645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9646       conftest$ac_exeext conftest.$ac_ext
9647 done
9648 LIBS="$save_LIBS"
9649 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9650 fi
9651 { echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9652 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6; }
9653 case $gcc_cv_collect2_libs in
9654         "none required")        ;;
9655         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9656 esac
9657
9658
9659 # When building Ada code on Alpha, we need exc_resume which is usually in
9660 # -lexc.  So test for it.
9661 save_LIBS="$LIBS"
9662 LIBS=
9663 { echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9664 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6; }
9665 if test "${ac_cv_search_exc_resume+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   ac_func_search_save_LIBS=$LIBS
9669 cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h.  */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h.  */
9675
9676 /* Override any GCC internal prototype to avoid an error.
9677    Use char because int might match the return type of a GCC
9678    builtin and then its argument prototype would still apply.  */
9679 #ifdef __cplusplus
9680 extern "C"
9681 #endif
9682 char exc_resume ();
9683 int
9684 main ()
9685 {
9686 return exc_resume ();
9687   ;
9688   return 0;
9689 }
9690 _ACEOF
9691 for ac_lib in '' exc; do
9692   if test -z "$ac_lib"; then
9693     ac_res="none required"
9694   else
9695     ac_res=-l$ac_lib
9696     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9697   fi
9698   rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (ac_try="$ac_link"
9700 case "(($ac_try" in
9701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702   *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705   (eval "$ac_link") 2>conftest.er1
9706   ac_status=$?
9707   grep -v '^ *+' conftest.er1 >conftest.err
9708   rm -f conftest.er1
9709   cat conftest.err >&5
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); } && {
9712          test -z "$ac_c_werror_flag" ||
9713          test ! -s conftest.err
9714        } && test -s conftest$ac_exeext &&
9715        $as_test_x conftest$ac_exeext; then
9716   ac_cv_search_exc_resume=$ac_res
9717 else
9718   echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721
9722 fi
9723
9724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9725       conftest$ac_exeext
9726   if test "${ac_cv_search_exc_resume+set}" = set; then
9727   break
9728 fi
9729 done
9730 if test "${ac_cv_search_exc_resume+set}" = set; then
9731   :
9732 else
9733   ac_cv_search_exc_resume=no
9734 fi
9735 rm conftest.$ac_ext
9736 LIBS=$ac_func_search_save_LIBS
9737 fi
9738 { echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9739 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6; }
9740 ac_res=$ac_cv_search_exc_resume
9741 if test "$ac_res" != no; then
9742   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9743
9744 fi
9745
9746 GNAT_LIBEXC="$LIBS"
9747 LIBS="$save_LIBS"
9748
9749
9750 # Some systems put ldexp and frexp in libm instead of libc; assume
9751 # they're both in the same place.  jcf-dump needs them.
9752 save_LIBS="$LIBS"
9753 LIBS=
9754 { echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9755 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6; }
9756 if test "${ac_cv_search_ldexp+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   ac_func_search_save_LIBS=$LIBS
9760 cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h.  */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h.  */
9766
9767 /* Override any GCC internal prototype to avoid an error.
9768    Use char because int might match the return type of a GCC
9769    builtin and then its argument prototype would still apply.  */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 char ldexp ();
9774 int
9775 main ()
9776 {
9777 return ldexp ();
9778   ;
9779   return 0;
9780 }
9781 _ACEOF
9782 for ac_lib in '' m; do
9783   if test -z "$ac_lib"; then
9784     ac_res="none required"
9785   else
9786     ac_res=-l$ac_lib
9787     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9788   fi
9789   rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9791 case "(($ac_try" in
9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793   *) ac_try_echo=$ac_try;;
9794 esac
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796   (eval "$ac_link") 2>conftest.er1
9797   ac_status=$?
9798   grep -v '^ *+' conftest.er1 >conftest.err
9799   rm -f conftest.er1
9800   cat conftest.err >&5
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); } && {
9803          test -z "$ac_c_werror_flag" ||
9804          test ! -s conftest.err
9805        } && test -s conftest$ac_exeext &&
9806        $as_test_x conftest$ac_exeext; then
9807   ac_cv_search_ldexp=$ac_res
9808 else
9809   echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812
9813 fi
9814
9815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9816       conftest$ac_exeext
9817   if test "${ac_cv_search_ldexp+set}" = set; then
9818   break
9819 fi
9820 done
9821 if test "${ac_cv_search_ldexp+set}" = set; then
9822   :
9823 else
9824   ac_cv_search_ldexp=no
9825 fi
9826 rm conftest.$ac_ext
9827 LIBS=$ac_func_search_save_LIBS
9828 fi
9829 { echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9830 echo "${ECHO_T}$ac_cv_search_ldexp" >&6; }
9831 ac_res=$ac_cv_search_ldexp
9832 if test "$ac_res" != no; then
9833   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9834
9835 fi
9836
9837 LDEXP_LIB="$LIBS"
9838 LIBS="$save_LIBS"
9839
9840
9841 # Use <inttypes.h> only if it exists,
9842 # doesn't clash with <sys/types.h>, and declares intmax_t.
9843 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9844 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9845 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9846   echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848   cat >conftest.$ac_ext <<_ACEOF
9849 /* confdefs.h.  */
9850 _ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h.  */
9854 #include <sys/types.h>
9855 #include <inttypes.h>
9856 int
9857 main ()
9858 {
9859 intmax_t i = -1;
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext
9865 if { (ac_try="$ac_compile"
9866 case "(($ac_try" in
9867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868   *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871   (eval "$ac_compile") 2>conftest.er1
9872   ac_status=$?
9873   grep -v '^ *+' conftest.er1 >conftest.err
9874   rm -f conftest.er1
9875   cat conftest.err >&5
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); } && {
9878          test -z "$ac_c_werror_flag" ||
9879          test ! -s conftest.err
9880        } && test -s conftest.$ac_objext; then
9881   gcc_cv_header_inttypes_h=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886         gcc_cv_header_inttypes_h=no
9887 fi
9888
9889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890 fi
9891
9892 { echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9893 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6; }
9894 if test $gcc_cv_header_inttypes_h = yes; then
9895
9896 cat >>confdefs.h <<\_ACEOF
9897 #define HAVE_INTTYPES_H 1
9898 _ACEOF
9899
9900 fi
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9940         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9941         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9942         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
9943 do
9944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950   cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h.  */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h.  */
9956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9958 #define $ac_func innocuous_$ac_func
9959
9960 /* System header to define __stub macros and hopefully few prototypes,
9961     which can conflict with char $ac_func (); below.
9962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9963     <limits.h> exists even on freestanding compilers.  */
9964
9965 #ifdef __STDC__
9966 # include <limits.h>
9967 #else
9968 # include <assert.h>
9969 #endif
9970
9971 #undef $ac_func
9972
9973 /* Override any GCC internal prototype to avoid an error.
9974    Use char because int might match the return type of a GCC
9975    builtin and then its argument prototype would still apply.  */
9976 #ifdef __cplusplus
9977 extern "C"
9978 #endif
9979 char $ac_func ();
9980 /* The GNU C library defines this for functions which it implements
9981     to always fail with ENOSYS.  Some functions are actually named
9982     something starting with __ and the normal name is an alias.  */
9983 #if defined __stub_$ac_func || defined __stub___$ac_func
9984 choke me
9985 #endif
9986
9987 int
9988 main ()
9989 {
9990 return $ac_func ();
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (ac_try="$ac_link"
9997 case "(($ac_try" in
9998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999   *) ac_try_echo=$ac_try;;
10000 esac
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002   (eval "$ac_link") 2>conftest.er1
10003   ac_status=$?
10004   grep -v '^ *+' conftest.er1 >conftest.err
10005   rm -f conftest.er1
10006   cat conftest.err >&5
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); } && {
10009          test -z "$ac_c_werror_flag" ||
10010          test ! -s conftest.err
10011        } && test -s conftest$ac_exeext &&
10012        $as_test_x conftest$ac_exeext; then
10013   eval "$as_ac_var=yes"
10014 else
10015   echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018         eval "$as_ac_var=no"
10019 fi
10020
10021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10022       conftest$ac_exeext conftest.$ac_ext
10023 fi
10024 ac_res=`eval echo '${'$as_ac_var'}'`
10025                { echo "$as_me:$LINENO: result: $ac_res" >&5
10026 echo "${ECHO_T}$ac_res" >&6; }
10027 if test `eval echo '${'$as_ac_var'}'` = yes; then
10028   cat >>confdefs.h <<_ACEOF
10029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10030 _ACEOF
10031
10032 fi
10033 done
10034
10035
10036 if test x$ac_cv_func_mbstowcs = xyes; then
10037   { echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10038 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6; }
10039 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10040   echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042       if test "$cross_compiling" = yes; then
10043   gcc_cv_func_mbstowcs_works=yes
10044 else
10045   cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h.  */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h.  */
10051 #include <stdlib.h>
10052 int main()
10053 {
10054   mbstowcs(0, "", 0);
10055   return 0;
10056 }
10057 _ACEOF
10058 rm -f conftest$ac_exeext
10059 if { (ac_try="$ac_link"
10060 case "(($ac_try" in
10061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062   *) ac_try_echo=$ac_try;;
10063 esac
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065   (eval "$ac_link") 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10069   { (case "(($ac_try" in
10070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071   *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074   (eval "$ac_try") 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }; }; then
10078   gcc_cv_func_mbstowcs_works=yes
10079 else
10080   echo "$as_me: program exited with status $ac_status" >&5
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084 ( exit $ac_status )
10085 gcc_cv_func_mbstowcs_works=no
10086 fi
10087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10088 fi
10089
10090
10091 fi
10092 { echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10093 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6; }
10094   if test x$gcc_cv_func_mbstowcs_works = xyes; then
10095
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_WORKING_MBSTOWCS 1
10098 _ACEOF
10099
10100   fi
10101 fi
10102
10103 { echo "$as_me:$LINENO: checking for ssize_t" >&5
10104 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
10105 if test "${ac_cv_type_ssize_t+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h.  */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h.  */
10114 $ac_includes_default
10115 typedef ssize_t ac__type_new_;
10116 int
10117 main ()
10118 {
10119 if ((ac__type_new_ *) 0)
10120   return 0;
10121 if (sizeof (ac__type_new_))
10122   return 0;
10123   ;
10124   return 0;
10125 }
10126 _ACEOF
10127 rm -f conftest.$ac_objext
10128 if { (ac_try="$ac_compile"
10129 case "(($ac_try" in
10130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131   *) ac_try_echo=$ac_try;;
10132 esac
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134   (eval "$ac_compile") 2>conftest.er1
10135   ac_status=$?
10136   grep -v '^ *+' conftest.er1 >conftest.err
10137   rm -f conftest.er1
10138   cat conftest.err >&5
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } && {
10141          test -z "$ac_c_werror_flag" ||
10142          test ! -s conftest.err
10143        } && test -s conftest.$ac_objext; then
10144   ac_cv_type_ssize_t=yes
10145 else
10146   echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10148
10149         ac_cv_type_ssize_t=no
10150 fi
10151
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153 fi
10154 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10155 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
10156 if test $ac_cv_type_ssize_t = yes; then
10157   :
10158 else
10159
10160 cat >>confdefs.h <<_ACEOF
10161 #define ssize_t int
10162 _ACEOF
10163
10164 fi
10165
10166
10167 # Try to determine the array type of the second argument of getgroups
10168 # for the target system (int or gid_t).
10169 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10170 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10171 if test "${ac_cv_type_uid_t+set}" = set; then
10172   echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174   cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h.  */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h.  */
10180 #include <sys/types.h>
10181
10182 _ACEOF
10183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10184   $EGREP "uid_t" >/dev/null 2>&1; then
10185   ac_cv_type_uid_t=yes
10186 else
10187   ac_cv_type_uid_t=no
10188 fi
10189 rm -f conftest*
10190
10191 fi
10192 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10193 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10194 if test $ac_cv_type_uid_t = no; then
10195
10196 cat >>confdefs.h <<\_ACEOF
10197 #define uid_t int
10198 _ACEOF
10199
10200
10201 cat >>confdefs.h <<\_ACEOF
10202 #define gid_t int
10203 _ACEOF
10204
10205 fi
10206
10207 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10208 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
10209 if test "${ac_cv_type_getgroups+set}" = set; then
10210   echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212   if test "$cross_compiling" = yes; then
10213   ac_cv_type_getgroups=cross
10214 else
10215   cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h.  */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h.  */
10221 /* Thanks to Mike Rendell for this test.  */
10222 $ac_includes_default
10223 #define NGID 256
10224 #undef MAX
10225 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10226
10227 int
10228 main ()
10229 {
10230   gid_t gidset[NGID];
10231   int i, n;
10232   union { gid_t gval; long int lval; }  val;
10233
10234   val.lval = -1;
10235   for (i = 0; i < NGID; i++)
10236     gidset[i] = val.gval;
10237   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10238                  gidset);
10239   /* Exit non-zero if getgroups seems to require an array of ints.  This
10240      happens when gid_t is short int but getgroups modifies an array
10241      of ints.  */
10242   return n > 0 && gidset[n] != val.gval;
10243 }
10244 _ACEOF
10245 rm -f conftest$ac_exeext
10246 if { (ac_try="$ac_link"
10247 case "(($ac_try" in
10248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249   *) ac_try_echo=$ac_try;;
10250 esac
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252   (eval "$ac_link") 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10256   { (case "(($ac_try" in
10257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258   *) ac_try_echo=$ac_try;;
10259 esac
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261   (eval "$ac_try") 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; }; then
10265   ac_cv_type_getgroups=gid_t
10266 else
10267   echo "$as_me: program exited with status $ac_status" >&5
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10270
10271 ( exit $ac_status )
10272 ac_cv_type_getgroups=int
10273 fi
10274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10275 fi
10276
10277
10278 if test $ac_cv_type_getgroups = cross; then
10279         cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285 #include <unistd.h>
10286
10287 _ACEOF
10288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10289   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10290   ac_cv_type_getgroups=gid_t
10291 else
10292   ac_cv_type_getgroups=int
10293 fi
10294 rm -f conftest*
10295
10296 fi
10297 fi
10298 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10299 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
10300
10301 cat >>confdefs.h <<_ACEOF
10302 #define GETGROUPS_T $ac_cv_type_getgroups
10303 _ACEOF
10304
10305
10306 if test "${target}" = "${build}"; then
10307   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10308 else
10309   case "${target}" in
10310         # This condition may need some tweaking.  It should include all
10311         # targets where the array type of the second argument of getgroups
10312         # is int and the type of gid_t is not equivalent to int.
10313         *-*-sunos* | *-*-ultrix*)
10314                 TARGET_GETGROUPS_T=int
10315                 ;;
10316         *)
10317                 TARGET_GETGROUPS_T=gid_t
10318                 ;;
10319   esac
10320 fi
10321
10322
10323
10324 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10325 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
10326 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10327   echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329   cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335 #include <sys/mman.h>
10336 _ACEOF
10337 if { (ac_try="$ac_cpp conftest.$ac_ext"
10338 case "(($ac_try" in
10339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340   *) ac_try_echo=$ac_try;;
10341 esac
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10344   ac_status=$?
10345   grep -v '^ *+' conftest.er1 >conftest.err
10346   rm -f conftest.er1
10347   cat conftest.err >&5
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); } >/dev/null && {
10350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10351          test ! -s conftest.err
10352        }; then
10353   ac_cv_header_sys_mman_h=yes
10354 else
10355   echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10357
10358   ac_cv_header_sys_mman_h=no
10359 fi
10360
10361 rm -f conftest.err conftest.$ac_ext
10362 fi
10363 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10364 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
10365 if test $ac_cv_header_sys_mman_h = yes; then
10366   gcc_header_sys_mman_h=yes
10367 else
10368   gcc_header_sys_mman_h=no
10369 fi
10370
10371 { echo "$as_me:$LINENO: checking for mmap" >&5
10372 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
10373 if test "${ac_cv_func_mmap+set}" = set; then
10374   echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376   cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h.  */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h.  */
10382 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10384 #define mmap innocuous_mmap
10385
10386 /* System header to define __stub macros and hopefully few prototypes,
10387     which can conflict with char mmap (); below.
10388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10389     <limits.h> exists even on freestanding compilers.  */
10390
10391 #ifdef __STDC__
10392 # include <limits.h>
10393 #else
10394 # include <assert.h>
10395 #endif
10396
10397 #undef mmap
10398
10399 /* Override any GCC internal prototype to avoid an error.
10400    Use char because int might match the return type of a GCC
10401    builtin and then its argument prototype would still apply.  */
10402 #ifdef __cplusplus
10403 extern "C"
10404 #endif
10405 char mmap ();
10406 /* The GNU C library defines this for functions which it implements
10407     to always fail with ENOSYS.  Some functions are actually named
10408     something starting with __ and the normal name is an alias.  */
10409 #if defined __stub_mmap || defined __stub___mmap
10410 choke me
10411 #endif
10412
10413 int
10414 main ()
10415 {
10416 return mmap ();
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 rm -f conftest.$ac_objext conftest$ac_exeext
10422 if { (ac_try="$ac_link"
10423 case "(($ac_try" in
10424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425   *) ac_try_echo=$ac_try;;
10426 esac
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428   (eval "$ac_link") 2>conftest.er1
10429   ac_status=$?
10430   grep -v '^ *+' conftest.er1 >conftest.err
10431   rm -f conftest.er1
10432   cat conftest.err >&5
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); } && {
10435          test -z "$ac_c_werror_flag" ||
10436          test ! -s conftest.err
10437        } && test -s conftest$ac_exeext &&
10438        $as_test_x conftest$ac_exeext; then
10439   ac_cv_func_mmap=yes
10440 else
10441   echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10443
10444         ac_cv_func_mmap=no
10445 fi
10446
10447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10448       conftest$ac_exeext conftest.$ac_ext
10449 fi
10450 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10451 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
10452 if test $ac_cv_func_mmap = yes; then
10453   gcc_func_mmap=yes
10454 else
10455   gcc_func_mmap=no
10456 fi
10457
10458 if test "$gcc_header_sys_mman_h" != yes \
10459  || test "$gcc_func_mmap" != yes; then
10460    gcc_cv_func_mmap_file=no
10461    gcc_cv_func_mmap_dev_zero=no
10462    gcc_cv_func_mmap_anon=no
10463 else
10464    { echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10465 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6; }
10466 if test "${gcc_cv_func_mmap_file+set}" = set; then
10467   echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469   # Add a system to this blacklist if
10470    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10471    # memory area containing the same data that you'd get if you applied
10472    # read() to the same fd.  The only system known to have a problem here
10473    # is VMS, where text files have record structure.
10474    case "$host_os" in
10475      vms* | ultrix*)
10476         gcc_cv_func_mmap_file=no ;;
10477      *)
10478         gcc_cv_func_mmap_file=yes;;
10479    esac
10480 fi
10481 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10482 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6; }
10483    { echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10484 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6; }
10485 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10486   echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488   # Add a system to this blacklist if it has mmap() but /dev/zero
10489    # does not exist, or if mmapping /dev/zero does not give anonymous
10490    # zeroed pages with both the following properties:
10491    # 1. If you map N consecutive pages in with one call, and then
10492    #    unmap any subset of those pages, the pages that were not
10493    #    explicitly unmapped remain accessible.
10494    # 2. If you map two adjacent blocks of memory and then unmap them
10495    #    both at once, they must both go away.
10496    # Systems known to be in this category are Windows (all variants),
10497    # VMS, and Darwin.
10498    case "$host_os" in
10499      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10500         gcc_cv_func_mmap_dev_zero=no ;;
10501      *)
10502         gcc_cv_func_mmap_dev_zero=yes;;
10503    esac
10504 fi
10505 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10506 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6; }
10507
10508    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10509    { echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10510 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6; }
10511 if test "${gcc_cv_decl_map_anon+set}" = set; then
10512   echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514   cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h.  */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h.  */
10520 #include <sys/types.h>
10521 #include <sys/mman.h>
10522 #include <unistd.h>
10523
10524 #ifndef MAP_ANONYMOUS
10525 #define MAP_ANONYMOUS MAP_ANON
10526 #endif
10527
10528 int
10529 main ()
10530 {
10531 int n = MAP_ANONYMOUS;
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext
10537 if { (ac_try="$ac_compile"
10538 case "(($ac_try" in
10539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540   *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543   (eval "$ac_compile") 2>conftest.er1
10544   ac_status=$?
10545   grep -v '^ *+' conftest.er1 >conftest.err
10546   rm -f conftest.er1
10547   cat conftest.err >&5
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } && {
10550          test -z "$ac_c_werror_flag" ||
10551          test ! -s conftest.err
10552        } && test -s conftest.$ac_objext; then
10553   gcc_cv_decl_map_anon=yes
10554 else
10555   echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10557
10558         gcc_cv_decl_map_anon=no
10559 fi
10560
10561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10562 fi
10563 { echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10564 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6; }
10565
10566    if test $gcc_cv_decl_map_anon = no; then
10567      gcc_cv_func_mmap_anon=no
10568    else
10569      { echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10570 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6; }
10571 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10572   echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10575    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10576    # doesn't give anonymous zeroed pages with the same properties listed
10577    # above for use of /dev/zero.
10578    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10579    case "$host_os" in
10580      vms* | cygwin* | pe | mingw* | sco* | udk* )
10581         gcc_cv_func_mmap_anon=no ;;
10582      *)
10583         gcc_cv_func_mmap_anon=yes;;
10584    esac
10585 fi
10586 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10587 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6; }
10588    fi
10589 fi
10590
10591 if test $gcc_cv_func_mmap_file = yes; then
10592
10593 cat >>confdefs.h <<\_ACEOF
10594 #define HAVE_MMAP_FILE 1
10595 _ACEOF
10596
10597 fi
10598 if test $gcc_cv_func_mmap_dev_zero = yes; then
10599
10600 cat >>confdefs.h <<\_ACEOF
10601 #define HAVE_MMAP_DEV_ZERO 1
10602 _ACEOF
10603
10604 fi
10605 if test $gcc_cv_func_mmap_anon = yes; then
10606
10607 cat >>confdefs.h <<\_ACEOF
10608 #define HAVE_MMAP_ANON 1
10609 _ACEOF
10610
10611 fi
10612
10613
10614 case "${host}" in
10615 *-*-*vms*)
10616   # Under VMS, vfork works very differently than on Unix. The standard test
10617   # won't work, and it isn't easily adaptable. It makes more sense to
10618   # just force it.
10619   ac_cv_func_vfork_works=yes
10620   ;;
10621 esac
10622 { echo "$as_me:$LINENO: checking for pid_t" >&5
10623 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10624 if test "${ac_cv_type_pid_t+set}" = set; then
10625   echo $ECHO_N "(cached) $ECHO_C" >&6
10626 else
10627   cat >conftest.$ac_ext <<_ACEOF
10628 /* confdefs.h.  */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h.  */
10633 $ac_includes_default
10634 typedef pid_t ac__type_new_;
10635 int
10636 main ()
10637 {
10638 if ((ac__type_new_ *) 0)
10639   return 0;
10640 if (sizeof (ac__type_new_))
10641   return 0;
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext
10647 if { (ac_try="$ac_compile"
10648 case "(($ac_try" in
10649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650   *) ac_try_echo=$ac_try;;
10651 esac
10652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10653   (eval "$ac_compile") 2>conftest.er1
10654   ac_status=$?
10655   grep -v '^ *+' conftest.er1 >conftest.err
10656   rm -f conftest.er1
10657   cat conftest.err >&5
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); } && {
10660          test -z "$ac_c_werror_flag" ||
10661          test ! -s conftest.err
10662        } && test -s conftest.$ac_objext; then
10663   ac_cv_type_pid_t=yes
10664 else
10665   echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10667
10668         ac_cv_type_pid_t=no
10669 fi
10670
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 fi
10673 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10674 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10675 if test $ac_cv_type_pid_t = yes; then
10676   :
10677 else
10678
10679 cat >>confdefs.h <<_ACEOF
10680 #define pid_t int
10681 _ACEOF
10682
10683 fi
10684
10685
10686 for ac_header in vfork.h
10687 do
10688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694   cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h.  */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h.  */
10700 #include <$ac_header>
10701 _ACEOF
10702 if { (ac_try="$ac_cpp conftest.$ac_ext"
10703 case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10709   ac_status=$?
10710   grep -v '^ *+' conftest.er1 >conftest.err
10711   rm -f conftest.er1
10712   cat conftest.err >&5
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); } >/dev/null && {
10715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10716          test ! -s conftest.err
10717        }; then
10718   eval "$as_ac_Header=yes"
10719 else
10720   echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10722
10723   eval "$as_ac_Header=no"
10724 fi
10725
10726 rm -f conftest.err conftest.$ac_ext
10727 fi
10728 ac_res=`eval echo '${'$as_ac_Header'}'`
10729                { echo "$as_me:$LINENO: result: $ac_res" >&5
10730 echo "${ECHO_T}$ac_res" >&6; }
10731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10732   cat >>confdefs.h <<_ACEOF
10733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10734 _ACEOF
10735
10736 fi
10737 done
10738
10739
10740
10741 for ac_func in fork vfork
10742 do
10743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10747   echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749   cat >conftest.$ac_ext <<_ACEOF
10750 /* confdefs.h.  */
10751 _ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h.  */
10755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10757 #define $ac_func innocuous_$ac_func
10758
10759 /* System header to define __stub macros and hopefully few prototypes,
10760     which can conflict with char $ac_func (); below.
10761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10762     <limits.h> exists even on freestanding compilers.  */
10763
10764 #ifdef __STDC__
10765 # include <limits.h>
10766 #else
10767 # include <assert.h>
10768 #endif
10769
10770 #undef $ac_func
10771
10772 /* Override any GCC internal prototype to avoid an error.
10773    Use char because int might match the return type of a GCC
10774    builtin and then its argument prototype would still apply.  */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char $ac_func ();
10779 /* The GNU C library defines this for functions which it implements
10780     to always fail with ENOSYS.  Some functions are actually named
10781     something starting with __ and the normal name is an alias.  */
10782 #if defined __stub_$ac_func || defined __stub___$ac_func
10783 choke me
10784 #endif
10785
10786 int
10787 main ()
10788 {
10789 return $ac_func ();
10790   ;
10791   return 0;
10792 }
10793 _ACEOF
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (ac_try="$ac_link"
10796 case "(($ac_try" in
10797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798   *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801   (eval "$ac_link") 2>conftest.er1
10802   ac_status=$?
10803   grep -v '^ *+' conftest.er1 >conftest.err
10804   rm -f conftest.er1
10805   cat conftest.err >&5
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); } && {
10808          test -z "$ac_c_werror_flag" ||
10809          test ! -s conftest.err
10810        } && test -s conftest$ac_exeext &&
10811        $as_test_x conftest$ac_exeext; then
10812   eval "$as_ac_var=yes"
10813 else
10814   echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10816
10817         eval "$as_ac_var=no"
10818 fi
10819
10820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10821       conftest$ac_exeext conftest.$ac_ext
10822 fi
10823 ac_res=`eval echo '${'$as_ac_var'}'`
10824                { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10826 if test `eval echo '${'$as_ac_var'}'` = yes; then
10827   cat >>confdefs.h <<_ACEOF
10828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10829 _ACEOF
10830
10831 fi
10832 done
10833
10834 if test "x$ac_cv_func_fork" = xyes; then
10835   { echo "$as_me:$LINENO: checking for working fork" >&5
10836 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10837 if test "${ac_cv_func_fork_works+set}" = set; then
10838   echo $ECHO_N "(cached) $ECHO_C" >&6
10839 else
10840   if test "$cross_compiling" = yes; then
10841   ac_cv_func_fork_works=cross
10842 else
10843   cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h.  */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h.  */
10849 $ac_includes_default
10850 int
10851 main ()
10852 {
10853
10854           /* By Ruediger Kuhlmann. */
10855           return fork () < 0;
10856
10857   ;
10858   return 0;
10859 }
10860 _ACEOF
10861 rm -f conftest$ac_exeext
10862 if { (ac_try="$ac_link"
10863 case "(($ac_try" in
10864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865   *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868   (eval "$ac_link") 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10872   { (case "(($ac_try" in
10873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874   *) ac_try_echo=$ac_try;;
10875 esac
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877   (eval "$ac_try") 2>&5
10878   ac_status=$?
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); }; }; then
10881   ac_cv_func_fork_works=yes
10882 else
10883   echo "$as_me: program exited with status $ac_status" >&5
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10886
10887 ( exit $ac_status )
10888 ac_cv_func_fork_works=no
10889 fi
10890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10891 fi
10892
10893
10894 fi
10895 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10896 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10897
10898 else
10899   ac_cv_func_fork_works=$ac_cv_func_fork
10900 fi
10901 if test "x$ac_cv_func_fork_works" = xcross; then
10902   case $host in
10903     *-*-amigaos* | *-*-msdosdjgpp*)
10904       # Override, as these systems have only a dummy fork() stub
10905       ac_cv_func_fork_works=no
10906       ;;
10907     *)
10908       ac_cv_func_fork_works=yes
10909       ;;
10910   esac
10911   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10912 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10913 fi
10914 ac_cv_func_vfork_works=$ac_cv_func_vfork
10915 if test "x$ac_cv_func_vfork" = xyes; then
10916   { echo "$as_me:$LINENO: checking for working vfork" >&5
10917 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10918 if test "${ac_cv_func_vfork_works+set}" = set; then
10919   echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921   if test "$cross_compiling" = yes; then
10922   ac_cv_func_vfork_works=cross
10923 else
10924   cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h.  */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h.  */
10930 /* Thanks to Paul Eggert for this test.  */
10931 $ac_includes_default
10932 #include <sys/wait.h>
10933 #ifdef HAVE_VFORK_H
10934 # include <vfork.h>
10935 #endif
10936 /* On some sparc systems, changes by the child to local and incoming
10937    argument registers are propagated back to the parent.  The compiler
10938    is told about this with #include <vfork.h>, but some compilers
10939    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10940    static variable whose address is put into a register that is
10941    clobbered by the vfork.  */
10942 static void
10943 #ifdef __cplusplus
10944 sparc_address_test (int arg)
10945 # else
10946 sparc_address_test (arg) int arg;
10947 #endif
10948 {
10949   static pid_t child;
10950   if (!child) {
10951     child = vfork ();
10952     if (child < 0) {
10953       perror ("vfork");
10954       _exit(2);
10955     }
10956     if (!child) {
10957       arg = getpid();
10958       write(-1, "", 0);
10959       _exit (arg);
10960     }
10961   }
10962 }
10963
10964 int
10965 main ()
10966 {
10967   pid_t parent = getpid ();
10968   pid_t child;
10969
10970   sparc_address_test (0);
10971
10972   child = vfork ();
10973
10974   if (child == 0) {
10975     /* Here is another test for sparc vfork register problems.  This
10976        test uses lots of local variables, at least as many local
10977        variables as main has allocated so far including compiler
10978        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10979        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10980        reuse the register of parent for one of the local variables,
10981        since it will think that parent can't possibly be used any more
10982        in this routine.  Assigning to the local variable will thus
10983        munge parent in the parent process.  */
10984     pid_t
10985       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10986       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10987     /* Convince the compiler that p..p7 are live; otherwise, it might
10988        use the same hardware register for all 8 local variables.  */
10989     if (p != p1 || p != p2 || p != p3 || p != p4
10990         || p != p5 || p != p6 || p != p7)
10991       _exit(1);
10992
10993     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10994        from child file descriptors.  If the child closes a descriptor
10995        before it execs or exits, this munges the parent's descriptor
10996        as well.  Test for this by closing stdout in the child.  */
10997     _exit(close(fileno(stdout)) != 0);
10998   } else {
10999     int status;
11000     struct stat st;
11001
11002     while (wait(&status) != child)
11003       ;
11004     return (
11005          /* Was there some problem with vforking?  */
11006          child < 0
11007
11008          /* Did the child fail?  (This shouldn't happen.)  */
11009          || status
11010
11011          /* Did the vfork/compiler bug occur?  */
11012          || parent != getpid()
11013
11014          /* Did the file descriptor bug occur?  */
11015          || fstat(fileno(stdout), &st) != 0
11016          );
11017   }
11018 }
11019 _ACEOF
11020 rm -f conftest$ac_exeext
11021 if { (ac_try="$ac_link"
11022 case "(($ac_try" in
11023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024   *) ac_try_echo=$ac_try;;
11025 esac
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027   (eval "$ac_link") 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11031   { (case "(($ac_try" in
11032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033   *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036   (eval "$ac_try") 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; }; then
11040   ac_cv_func_vfork_works=yes
11041 else
11042   echo "$as_me: program exited with status $ac_status" >&5
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11045
11046 ( exit $ac_status )
11047 ac_cv_func_vfork_works=no
11048 fi
11049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11050 fi
11051
11052
11053 fi
11054 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11055 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11056
11057 fi;
11058 if test "x$ac_cv_func_fork_works" = xcross; then
11059   ac_cv_func_vfork_works=$ac_cv_func_vfork
11060   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11061 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11062 fi
11063
11064 if test "x$ac_cv_func_vfork_works" = xyes; then
11065
11066 cat >>confdefs.h <<\_ACEOF
11067 #define HAVE_WORKING_VFORK 1
11068 _ACEOF
11069
11070 else
11071
11072 cat >>confdefs.h <<\_ACEOF
11073 #define vfork fork
11074 _ACEOF
11075
11076 fi
11077 if test "x$ac_cv_func_fork_works" = xyes; then
11078
11079 cat >>confdefs.h <<\_ACEOF
11080 #define HAVE_WORKING_FORK 1
11081 _ACEOF
11082
11083 fi
11084
11085
11086
11087       if test "X$prefix" = "XNONE"; then
11088     acl_final_prefix="$ac_default_prefix"
11089   else
11090     acl_final_prefix="$prefix"
11091   fi
11092   if test "X$exec_prefix" = "XNONE"; then
11093     acl_final_exec_prefix='${prefix}'
11094   else
11095     acl_final_exec_prefix="$exec_prefix"
11096   fi
11097   acl_save_prefix="$prefix"
11098   prefix="$acl_final_prefix"
11099   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11100   prefix="$acl_save_prefix"
11101
11102
11103 # Check whether --with-gnu-ld was given.
11104 if test "${with_gnu_ld+set}" = set; then
11105   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11106 else
11107   with_gnu_ld=no
11108 fi
11109
11110 # Prepare PATH_SEPARATOR.
11111 # The user is always right.
11112 if test "${PATH_SEPARATOR+set}" != set; then
11113   echo "#! /bin/sh" >conf$$.sh
11114   echo  "exit 0"   >>conf$$.sh
11115   chmod +x conf$$.sh
11116   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11117     PATH_SEPARATOR=';'
11118   else
11119     PATH_SEPARATOR=:
11120   fi
11121   rm -f conf$$.sh
11122 fi
11123 ac_prog=ld
11124 if test "$GCC" = yes; then
11125   # Check if gcc -print-prog-name=ld gives a path.
11126   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11127 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
11128   case $host in
11129   *-*-mingw*)
11130     # gcc leaves a trailing carriage return which upsets mingw
11131     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11132   *)
11133     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11134   esac
11135   case $ac_prog in
11136     # Accept absolute paths.
11137     [\\/]* | [A-Za-z]:[\\/]*)
11138       re_direlt='/[^/][^/]*/\.\./'
11139       # Canonicalize the path of ld
11140       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11141       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11142         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11143       done
11144       test -z "$LD" && LD="$ac_prog"
11145       ;;
11146   "")
11147     # If it fails, then pretend we aren't using GCC.
11148     ac_prog=ld
11149     ;;
11150   *)
11151     # If it is relative, then search for the first ld in PATH.
11152     with_gnu_ld=unknown
11153     ;;
11154   esac
11155 elif test "$with_gnu_ld" = yes; then
11156   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11157 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11158 else
11159   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11160 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11161 fi
11162 if test "${acl_cv_path_LD+set}" = set; then
11163   echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165   if test -z "$LD"; then
11166   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11167   for ac_dir in $PATH; do
11168     test -z "$ac_dir" && ac_dir=.
11169     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11170       acl_cv_path_LD="$ac_dir/$ac_prog"
11171       # Check to see if the program is GNU ld.  I'd rather use --version,
11172       # but apparently some GNU ld's only accept -v.
11173       # Break only if it was the GNU/non-GNU ld that we prefer.
11174       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11175         test "$with_gnu_ld" != no && break
11176       else
11177         test "$with_gnu_ld" != yes && break
11178       fi
11179     fi
11180   done
11181   IFS="$ac_save_ifs"
11182 else
11183   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11184 fi
11185 fi
11186
11187 LD="$acl_cv_path_LD"
11188 if test -n "$LD"; then
11189   { echo "$as_me:$LINENO: result: $LD" >&5
11190 echo "${ECHO_T}$LD" >&6; }
11191 else
11192   { echo "$as_me:$LINENO: result: no" >&5
11193 echo "${ECHO_T}no" >&6; }
11194 fi
11195 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11196 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11197    { (exit 1); exit 1; }; }
11198 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11199 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11200 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11201   echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11204 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11205   acl_cv_prog_gnu_ld=yes
11206 else
11207   acl_cv_prog_gnu_ld=no
11208 fi
11209 fi
11210 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11211 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
11212 with_gnu_ld=$acl_cv_prog_gnu_ld
11213
11214
11215
11216                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11217 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
11218 if test "${acl_cv_rpath+set}" = set; then
11219   echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221
11222     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11223     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11224     . ./conftest.sh
11225     rm -f ./conftest.sh
11226     acl_cv_rpath=done
11227
11228 fi
11229 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11230 echo "${ECHO_T}$acl_cv_rpath" >&6; }
11231   wl="$acl_cv_wl"
11232   libext="$acl_cv_libext"
11233   shlibext="$acl_cv_shlibext"
11234   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11235   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11236   hardcode_direct="$acl_cv_hardcode_direct"
11237   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11238     # Check whether --enable-rpath was given.
11239 if test "${enable_rpath+set}" = set; then
11240   enableval=$enable_rpath; :
11241 else
11242   enable_rpath=yes
11243 fi
11244
11245
11246
11247
11248
11249
11250
11251
11252     use_additional=yes
11253
11254   acl_save_prefix="$prefix"
11255   prefix="$acl_final_prefix"
11256   acl_save_exec_prefix="$exec_prefix"
11257   exec_prefix="$acl_final_exec_prefix"
11258
11259     eval additional_includedir=\"$includedir\"
11260     eval additional_libdir=\"$libdir\"
11261
11262   exec_prefix="$acl_save_exec_prefix"
11263   prefix="$acl_save_prefix"
11264
11265
11266 # Check whether --with-libiconv-prefix was given.
11267 if test "${with_libiconv_prefix+set}" = set; then
11268   withval=$with_libiconv_prefix;
11269     if test "X$withval" = "Xno"; then
11270       use_additional=no
11271     else
11272       if test "X$withval" = "X"; then
11273
11274   acl_save_prefix="$prefix"
11275   prefix="$acl_final_prefix"
11276   acl_save_exec_prefix="$exec_prefix"
11277   exec_prefix="$acl_final_exec_prefix"
11278
11279           eval additional_includedir=\"$includedir\"
11280           eval additional_libdir=\"$libdir\"
11281
11282   exec_prefix="$acl_save_exec_prefix"
11283   prefix="$acl_save_prefix"
11284
11285       else
11286         additional_includedir="$withval/include"
11287         additional_libdir="$withval/lib"
11288       fi
11289     fi
11290
11291 fi
11292
11293       LIBICONV=
11294   LTLIBICONV=
11295   INCICONV=
11296   rpathdirs=
11297   ltrpathdirs=
11298   names_already_handled=
11299   names_next_round='iconv '
11300   while test -n "$names_next_round"; do
11301     names_this_round="$names_next_round"
11302     names_next_round=
11303     for name in $names_this_round; do
11304       already_handled=
11305       for n in $names_already_handled; do
11306         if test "$n" = "$name"; then
11307           already_handled=yes
11308           break
11309         fi
11310       done
11311       if test -z "$already_handled"; then
11312         names_already_handled="$names_already_handled $name"
11313                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11314         eval value=\"\$HAVE_LIB$uppername\"
11315         if test -n "$value"; then
11316           if test "$value" = yes; then
11317             eval value=\"\$LIB$uppername\"
11318             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11319             eval value=\"\$LTLIB$uppername\"
11320             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11321           else
11322                                     :
11323           fi
11324         else
11325                               found_dir=
11326           found_la=
11327           found_so=
11328           found_a=
11329           if test $use_additional = yes; then
11330             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11331               found_dir="$additional_libdir"
11332               found_so="$additional_libdir/lib$name.$shlibext"
11333               if test -f "$additional_libdir/lib$name.la"; then
11334                 found_la="$additional_libdir/lib$name.la"
11335               fi
11336             else
11337               if test -f "$additional_libdir/lib$name.$libext"; then
11338                 found_dir="$additional_libdir"
11339                 found_a="$additional_libdir/lib$name.$libext"
11340                 if test -f "$additional_libdir/lib$name.la"; then
11341                   found_la="$additional_libdir/lib$name.la"
11342                 fi
11343               fi
11344             fi
11345           fi
11346           if test "X$found_dir" = "X"; then
11347             for x in $LDFLAGS $LTLIBICONV; do
11348
11349   acl_save_prefix="$prefix"
11350   prefix="$acl_final_prefix"
11351   acl_save_exec_prefix="$exec_prefix"
11352   exec_prefix="$acl_final_exec_prefix"
11353   eval x=\"$x\"
11354   exec_prefix="$acl_save_exec_prefix"
11355   prefix="$acl_save_prefix"
11356
11357               case "$x" in
11358                 -L*)
11359                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11360                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11361                     found_dir="$dir"
11362                     found_so="$dir/lib$name.$shlibext"
11363                     if test -f "$dir/lib$name.la"; then
11364                       found_la="$dir/lib$name.la"
11365                     fi
11366                   else
11367                     if test -f "$dir/lib$name.$libext"; then
11368                       found_dir="$dir"
11369                       found_a="$dir/lib$name.$libext"
11370                       if test -f "$dir/lib$name.la"; then
11371                         found_la="$dir/lib$name.la"
11372                       fi
11373                     fi
11374                   fi
11375                   ;;
11376               esac
11377               if test "X$found_dir" != "X"; then
11378                 break
11379               fi
11380             done
11381           fi
11382           if test "X$found_dir" != "X"; then
11383                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11384             if test "X$found_so" != "X"; then
11385                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11386                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11387               else
11388                                                                                 haveit=
11389                 for x in $ltrpathdirs; do
11390                   if test "X$x" = "X$found_dir"; then
11391                     haveit=yes
11392                     break
11393                   fi
11394                 done
11395                 if test -z "$haveit"; then
11396                   ltrpathdirs="$ltrpathdirs $found_dir"
11397                 fi
11398                                 if test "$hardcode_direct" = yes; then
11399                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11400                 else
11401                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11402                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11403                                                             haveit=
11404                     for x in $rpathdirs; do
11405                       if test "X$x" = "X$found_dir"; then
11406                         haveit=yes
11407                         break
11408                       fi
11409                     done
11410                     if test -z "$haveit"; then
11411                       rpathdirs="$rpathdirs $found_dir"
11412                     fi
11413                   else
11414                                                                                 haveit=
11415                     for x in $LDFLAGS $LIBICONV; do
11416
11417   acl_save_prefix="$prefix"
11418   prefix="$acl_final_prefix"
11419   acl_save_exec_prefix="$exec_prefix"
11420   exec_prefix="$acl_final_exec_prefix"
11421   eval x=\"$x\"
11422   exec_prefix="$acl_save_exec_prefix"
11423   prefix="$acl_save_prefix"
11424
11425                       if test "X$x" = "X-L$found_dir"; then
11426                         haveit=yes
11427                         break
11428                       fi
11429                     done
11430                     if test -z "$haveit"; then
11431                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11432                     fi
11433                     if test "$hardcode_minus_L" != no; then
11434                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11435                     else
11436                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11437                     fi
11438                   fi
11439                 fi
11440               fi
11441             else
11442               if test "X$found_a" != "X"; then
11443                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11444               else
11445                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11446               fi
11447             fi
11448                         additional_includedir=
11449             case "$found_dir" in
11450               */lib | */lib/)
11451                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11452                 additional_includedir="$basedir/include"
11453                 ;;
11454             esac
11455             if test "X$additional_includedir" != "X"; then
11456                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11457                 haveit=
11458                 if test "X$additional_includedir" = "X/usr/local/include"; then
11459                   if test -n "$GCC"; then
11460                     case $host_os in
11461                       linux*) haveit=yes;;
11462                     esac
11463                   fi
11464                 fi
11465                 if test -z "$haveit"; then
11466                   for x in $CPPFLAGS $INCICONV; do
11467
11468   acl_save_prefix="$prefix"
11469   prefix="$acl_final_prefix"
11470   acl_save_exec_prefix="$exec_prefix"
11471   exec_prefix="$acl_final_exec_prefix"
11472   eval x=\"$x\"
11473   exec_prefix="$acl_save_exec_prefix"
11474   prefix="$acl_save_prefix"
11475
11476                     if test "X$x" = "X-I$additional_includedir"; then
11477                       haveit=yes
11478                       break
11479                     fi
11480                   done
11481                   if test -z "$haveit"; then
11482                     if test -d "$additional_includedir"; then
11483                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11484                     fi
11485                   fi
11486                 fi
11487               fi
11488             fi
11489                         if test -n "$found_la"; then
11490                                                         save_libdir="$libdir"
11491               case "$found_la" in
11492                 */* | *\\*) . "$found_la" ;;
11493                 *) . "./$found_la" ;;
11494               esac
11495               libdir="$save_libdir"
11496                             for dep in $dependency_libs; do
11497                 case "$dep" in
11498                   -L*)
11499                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11500                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11501                       haveit=
11502                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11503                         if test -n "$GCC"; then
11504                           case $host_os in
11505                             linux*) haveit=yes;;
11506                           esac
11507                         fi
11508                       fi
11509                       if test -z "$haveit"; then
11510                         haveit=
11511                         for x in $LDFLAGS $LIBICONV; do
11512
11513   acl_save_prefix="$prefix"
11514   prefix="$acl_final_prefix"
11515   acl_save_exec_prefix="$exec_prefix"
11516   exec_prefix="$acl_final_exec_prefix"
11517   eval x=\"$x\"
11518   exec_prefix="$acl_save_exec_prefix"
11519   prefix="$acl_save_prefix"
11520
11521                           if test "X$x" = "X-L$additional_libdir"; then
11522                             haveit=yes
11523                             break
11524                           fi
11525                         done
11526                         if test -z "$haveit"; then
11527                           if test -d "$additional_libdir"; then
11528                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11529                           fi
11530                         fi
11531                         haveit=
11532                         for x in $LDFLAGS $LTLIBICONV; do
11533
11534   acl_save_prefix="$prefix"
11535   prefix="$acl_final_prefix"
11536   acl_save_exec_prefix="$exec_prefix"
11537   exec_prefix="$acl_final_exec_prefix"
11538   eval x=\"$x\"
11539   exec_prefix="$acl_save_exec_prefix"
11540   prefix="$acl_save_prefix"
11541
11542                           if test "X$x" = "X-L$additional_libdir"; then
11543                             haveit=yes
11544                             break
11545                           fi
11546                         done
11547                         if test -z "$haveit"; then
11548                           if test -d "$additional_libdir"; then
11549                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11550                           fi
11551                         fi
11552                       fi
11553                     fi
11554                     ;;
11555                   -R*)
11556                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11557                     if test "$enable_rpath" != no; then
11558                                                                   haveit=
11559                       for x in $rpathdirs; do
11560                         if test "X$x" = "X$dir"; then
11561                           haveit=yes
11562                           break
11563                         fi
11564                       done
11565                       if test -z "$haveit"; then
11566                         rpathdirs="$rpathdirs $dir"
11567                       fi
11568                                                                   haveit=
11569                       for x in $ltrpathdirs; do
11570                         if test "X$x" = "X$dir"; then
11571                           haveit=yes
11572                           break
11573                         fi
11574                       done
11575                       if test -z "$haveit"; then
11576                         ltrpathdirs="$ltrpathdirs $dir"
11577                       fi
11578                     fi
11579                     ;;
11580                   -l*)
11581                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11582                     ;;
11583                   *.la)
11584                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11585                     ;;
11586                   *)
11587                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11588                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11589                     ;;
11590                 esac
11591               done
11592             fi
11593           else
11594                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11595             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11596           fi
11597         fi
11598       fi
11599     done
11600   done
11601   if test "X$rpathdirs" != "X"; then
11602     if test -n "$hardcode_libdir_separator"; then
11603                         alldirs=
11604       for found_dir in $rpathdirs; do
11605         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11606       done
11607             acl_save_libdir="$libdir"
11608       libdir="$alldirs"
11609       eval flag=\"$hardcode_libdir_flag_spec\"
11610       libdir="$acl_save_libdir"
11611       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11612     else
11613             for found_dir in $rpathdirs; do
11614         acl_save_libdir="$libdir"
11615         libdir="$found_dir"
11616         eval flag=\"$hardcode_libdir_flag_spec\"
11617         libdir="$acl_save_libdir"
11618         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11619       done
11620     fi
11621   fi
11622   if test "X$ltrpathdirs" != "X"; then
11623             for found_dir in $ltrpathdirs; do
11624       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11625     done
11626   fi
11627
11628
11629
11630
11631
11632
11633
11634           am_save_CPPFLAGS="$CPPFLAGS"
11635
11636   for element in $INCICONV; do
11637     haveit=
11638     for x in $CPPFLAGS; do
11639
11640   acl_save_prefix="$prefix"
11641   prefix="$acl_final_prefix"
11642   acl_save_exec_prefix="$exec_prefix"
11643   exec_prefix="$acl_final_exec_prefix"
11644   eval x=\"$x\"
11645   exec_prefix="$acl_save_exec_prefix"
11646   prefix="$acl_save_prefix"
11647
11648       if test "X$x" = "X$element"; then
11649         haveit=yes
11650         break
11651       fi
11652     done
11653     if test -z "$haveit"; then
11654       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11655     fi
11656   done
11657
11658
11659   { echo "$as_me:$LINENO: checking for iconv" >&5
11660 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
11661 if test "${am_cv_func_iconv+set}" = set; then
11662   echo $ECHO_N "(cached) $ECHO_C" >&6
11663 else
11664
11665     am_cv_func_iconv="no, consider installing GNU libiconv"
11666     am_cv_lib_iconv=no
11667     cat >conftest.$ac_ext <<_ACEOF
11668 /* confdefs.h.  */
11669 _ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h.  */
11673 #include <stdlib.h>
11674 #include <iconv.h>
11675 int
11676 main ()
11677 {
11678 iconv_t cd = iconv_open("","");
11679        iconv(cd,NULL,NULL,NULL,NULL);
11680        iconv_close(cd);
11681   ;
11682   return 0;
11683 }
11684 _ACEOF
11685 rm -f conftest.$ac_objext conftest$ac_exeext
11686 if { (ac_try="$ac_link"
11687 case "(($ac_try" in
11688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689   *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692   (eval "$ac_link") 2>conftest.er1
11693   ac_status=$?
11694   grep -v '^ *+' conftest.er1 >conftest.err
11695   rm -f conftest.er1
11696   cat conftest.err >&5
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); } && {
11699          test -z "$ac_c_werror_flag" ||
11700          test ! -s conftest.err
11701        } && test -s conftest$ac_exeext &&
11702        $as_test_x conftest$ac_exeext; then
11703   am_cv_func_iconv=yes
11704 else
11705   echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708
11709 fi
11710
11711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11712       conftest$ac_exeext conftest.$ac_ext
11713     if test "$am_cv_func_iconv" != yes; then
11714       am_save_LIBS="$LIBS"
11715       LIBS="$LIBS $LIBICONV"
11716       cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h.  */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h.  */
11722 #include <stdlib.h>
11723 #include <iconv.h>
11724 int
11725 main ()
11726 {
11727 iconv_t cd = iconv_open("","");
11728          iconv(cd,NULL,NULL,NULL,NULL);
11729          iconv_close(cd);
11730   ;
11731   return 0;
11732 }
11733 _ACEOF
11734 rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (ac_try="$ac_link"
11736 case "(($ac_try" in
11737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738   *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741   (eval "$ac_link") 2>conftest.er1
11742   ac_status=$?
11743   grep -v '^ *+' conftest.er1 >conftest.err
11744   rm -f conftest.er1
11745   cat conftest.err >&5
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); } && {
11748          test -z "$ac_c_werror_flag" ||
11749          test ! -s conftest.err
11750        } && test -s conftest$ac_exeext &&
11751        $as_test_x conftest$ac_exeext; then
11752   am_cv_lib_iconv=yes
11753         am_cv_func_iconv=yes
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758
11759 fi
11760
11761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11762       conftest$ac_exeext conftest.$ac_ext
11763       LIBS="$am_save_LIBS"
11764     fi
11765
11766 fi
11767 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11768 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
11769   if test "$am_cv_func_iconv" = yes; then
11770
11771 cat >>confdefs.h <<\_ACEOF
11772 #define HAVE_ICONV 1
11773 _ACEOF
11774
11775   fi
11776   if test "$am_cv_lib_iconv" = yes; then
11777     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11778 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
11779     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
11780 echo "${ECHO_T}$LIBICONV" >&6; }
11781   else
11782             CPPFLAGS="$am_save_CPPFLAGS"
11783     LIBICONV=
11784     LTLIBICONV=
11785   fi
11786
11787
11788
11789   if test "$am_cv_func_iconv" = yes; then
11790     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
11791 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
11792     if test "${am_cv_proto_iconv+set}" = set; then
11793   echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795
11796       cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h.  */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h.  */
11802
11803 #include <stdlib.h>
11804 #include <iconv.h>
11805 extern
11806 #ifdef __cplusplus
11807 "C"
11808 #endif
11809 #if defined(__STDC__) || defined(__cplusplus)
11810 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11811 #else
11812 size_t iconv();
11813 #endif
11814
11815 int
11816 main ()
11817 {
11818
11819   ;
11820   return 0;
11821 }
11822 _ACEOF
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830   (eval "$ac_compile") 2>conftest.er1
11831   ac_status=$?
11832   grep -v '^ *+' conftest.er1 >conftest.err
11833   rm -f conftest.er1
11834   cat conftest.err >&5
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); } && {
11837          test -z "$ac_c_werror_flag" ||
11838          test ! -s conftest.err
11839        } && test -s conftest.$ac_objext; then
11840   am_cv_proto_iconv_arg1=""
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845         am_cv_proto_iconv_arg1="const"
11846 fi
11847
11848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11849       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);"
11850 fi
11851
11852     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11853     { echo "$as_me:$LINENO: result: ${ac_t:-
11854          }$am_cv_proto_iconv" >&5
11855 echo "${ECHO_T}${ac_t:-
11856          }$am_cv_proto_iconv" >&6; }
11857
11858 cat >>confdefs.h <<_ACEOF
11859 #define ICONV_CONST $am_cv_proto_iconv_arg1
11860 _ACEOF
11861
11862   fi
11863
11864 # Until we have in-tree GNU iconv:
11865 LIBICONV_DEP=
11866
11867
11868
11869   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11870 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
11871 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11872   echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874   cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h.  */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h.  */
11880 #include <locale.h>
11881 int
11882 main ()
11883 {
11884 return LC_MESSAGES
11885   ;
11886   return 0;
11887 }
11888 _ACEOF
11889 rm -f conftest.$ac_objext conftest$ac_exeext
11890 if { (ac_try="$ac_link"
11891 case "(($ac_try" in
11892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893   *) ac_try_echo=$ac_try;;
11894 esac
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896   (eval "$ac_link") 2>conftest.er1
11897   ac_status=$?
11898   grep -v '^ *+' conftest.er1 >conftest.err
11899   rm -f conftest.er1
11900   cat conftest.err >&5
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } && {
11903          test -z "$ac_c_werror_flag" ||
11904          test ! -s conftest.err
11905        } && test -s conftest$ac_exeext &&
11906        $as_test_x conftest$ac_exeext; then
11907   am_cv_val_LC_MESSAGES=yes
11908 else
11909   echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11911
11912         am_cv_val_LC_MESSAGES=no
11913 fi
11914
11915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11916       conftest$ac_exeext conftest.$ac_ext
11917 fi
11918 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11919 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
11920   if test $am_cv_val_LC_MESSAGES = yes; then
11921
11922 cat >>confdefs.h <<\_ACEOF
11923 #define HAVE_LC_MESSAGES 1
11924 _ACEOF
11925
11926   fi
11927
11928
11929
11930   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11931 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
11932 if test "${am_cv_langinfo_codeset+set}" = set; then
11933   echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935   cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h.  */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h.  */
11941 #include <langinfo.h>
11942 int
11943 main ()
11944 {
11945 char* cs = nl_langinfo(CODESET);
11946   ;
11947   return 0;
11948 }
11949 _ACEOF
11950 rm -f conftest.$ac_objext conftest$ac_exeext
11951 if { (ac_try="$ac_link"
11952 case "(($ac_try" in
11953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954   *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957   (eval "$ac_link") 2>conftest.er1
11958   ac_status=$?
11959   grep -v '^ *+' conftest.er1 >conftest.err
11960   rm -f conftest.er1
11961   cat conftest.err >&5
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); } && {
11964          test -z "$ac_c_werror_flag" ||
11965          test ! -s conftest.err
11966        } && test -s conftest$ac_exeext &&
11967        $as_test_x conftest$ac_exeext; then
11968   am_cv_langinfo_codeset=yes
11969 else
11970   echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973         am_cv_langinfo_codeset=no
11974 fi
11975
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977       conftest$ac_exeext conftest.$ac_ext
11978
11979 fi
11980 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11981 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
11982   if test $am_cv_langinfo_codeset = yes; then
11983
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_LANGINFO_CODESET 1
11986 _ACEOF
11987
11988   fi
11989
11990
11991 # We will need to find libiberty.h and ansidecl.h
11992 saved_CFLAGS="$CFLAGS"
11993 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12034         strsignal strstr strverscmp \
12035         errno snprintf vsnprintf vasprintf malloc realloc calloc \
12036         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
12037 do
12038   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12039 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12040 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12041 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12042   echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044   cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h.  */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h.  */
12050 #undef $ac_tr_decl
12051 #define $ac_tr_decl 1
12052
12053 #include "ansidecl.h"
12054 #include "system.h"
12055
12056 int
12057 main ()
12058 {
12059 #ifndef $ac_func
12060 char *(*pfn) = (char *(*)) $ac_func ;
12061 #endif
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_compile") 2>conftest.er1
12074   ac_status=$?
12075   grep -v '^ *+' conftest.er1 >conftest.err
12076   rm -f conftest.er1
12077   cat conftest.err >&5
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); } && {
12080          test -z "$ac_c_werror_flag" ||
12081          test ! -s conftest.err
12082        } && test -s conftest.$ac_objext; then
12083   eval "gcc_cv_have_decl_$ac_func=yes"
12084 else
12085   echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088         eval "gcc_cv_have_decl_$ac_func=no"
12089 fi
12090
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092 fi
12093
12094 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12095   { echo "$as_me:$LINENO: result: yes" >&5
12096 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12097 #define $ac_tr_decl 1
12098 _ACEOF
12099
12100 else
12101   { echo "$as_me:$LINENO: result: no" >&5
12102 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12103 #define $ac_tr_decl 0
12104 _ACEOF
12105
12106 fi
12107
12108 done
12109
12110
12111
12112
12113
12114 for ac_func in getrlimit setrlimit getrusage
12115 do
12116   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12117 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12118 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12119 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122   cat >conftest.$ac_ext <<_ACEOF
12123 /* confdefs.h.  */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h.  */
12128 #undef $ac_tr_decl
12129 #define $ac_tr_decl 1
12130
12131 #include "ansidecl.h"
12132 #include "system.h"
12133 #ifdef HAVE_SYS_RESOURCE_H
12134 #include <sys/resource.h>
12135 #endif
12136
12137
12138 int
12139 main ()
12140 {
12141 #ifndef $ac_func
12142 char *(*pfn) = (char *(*)) $ac_func ;
12143 #endif
12144   ;
12145   return 0;
12146 }
12147 _ACEOF
12148 rm -f conftest.$ac_objext
12149 if { (ac_try="$ac_compile"
12150 case "(($ac_try" in
12151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152   *) ac_try_echo=$ac_try;;
12153 esac
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155   (eval "$ac_compile") 2>conftest.er1
12156   ac_status=$?
12157   grep -v '^ *+' conftest.er1 >conftest.err
12158   rm -f conftest.er1
12159   cat conftest.err >&5
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); } && {
12162          test -z "$ac_c_werror_flag" ||
12163          test ! -s conftest.err
12164        } && test -s conftest.$ac_objext; then
12165   eval "gcc_cv_have_decl_$ac_func=yes"
12166 else
12167   echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12169
12170         eval "gcc_cv_have_decl_$ac_func=no"
12171 fi
12172
12173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174 fi
12175
12176 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12177   { echo "$as_me:$LINENO: result: yes" >&5
12178 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12179 #define $ac_tr_decl 1
12180 _ACEOF
12181
12182 else
12183   { echo "$as_me:$LINENO: result: no" >&5
12184 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12185 #define $ac_tr_decl 0
12186 _ACEOF
12187
12188 fi
12189
12190 done
12191
12192
12193 cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h.  */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h.  */
12199
12200 #include "ansidecl.h"
12201 #include "system.h"
12202 #ifdef HAVE_SYS_RESOURCE_H
12203 #include <sys/resource.h>
12204 #endif
12205
12206 int
12207 main ()
12208 {
12209 rlim_t l = 0;
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext
12215 if { (ac_try="$ac_compile"
12216 case "(($ac_try" in
12217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218   *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221   (eval "$ac_compile") 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } && {
12228          test -z "$ac_c_werror_flag" ||
12229          test ! -s conftest.err
12230        } && test -s conftest.$ac_objext; then
12231   :
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236
12237 cat >>confdefs.h <<\_ACEOF
12238 #define rlim_t long
12239 _ACEOF
12240
12241 fi
12242
12243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244
12245 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12246 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12247 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12248 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12249
12250 for ac_func in ldgetname
12251 do
12252   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12253 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12254 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12255 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12256   echo $ECHO_N "(cached) $ECHO_C" >&6
12257 else
12258   cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h.  */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h.  */
12264 #undef $ac_tr_decl
12265 #define $ac_tr_decl 1
12266
12267 #include "ansidecl.h"
12268 #include "system.h"
12269 #ifdef HAVE_LDFCN_H
12270 #undef FREAD
12271 #undef FWRITE
12272 #include <ldfcn.h>
12273 #endif
12274
12275
12276 int
12277 main ()
12278 {
12279 #ifndef $ac_func
12280 char *(*pfn) = (char *(*)) $ac_func ;
12281 #endif
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 rm -f conftest.$ac_objext
12287 if { (ac_try="$ac_compile"
12288 case "(($ac_try" in
12289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290   *) ac_try_echo=$ac_try;;
12291 esac
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293   (eval "$ac_compile") 2>conftest.er1
12294   ac_status=$?
12295   grep -v '^ *+' conftest.er1 >conftest.err
12296   rm -f conftest.er1
12297   cat conftest.err >&5
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); } && {
12300          test -z "$ac_c_werror_flag" ||
12301          test ! -s conftest.err
12302        } && test -s conftest.$ac_objext; then
12303   eval "gcc_cv_have_decl_$ac_func=yes"
12304 else
12305   echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12307
12308         eval "gcc_cv_have_decl_$ac_func=no"
12309 fi
12310
12311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312 fi
12313
12314 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12315   { echo "$as_me:$LINENO: result: yes" >&5
12316 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12317 #define $ac_tr_decl 1
12318 _ACEOF
12319
12320 else
12321   { echo "$as_me:$LINENO: result: no" >&5
12322 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12323 #define $ac_tr_decl 0
12324 _ACEOF
12325
12326 fi
12327
12328 done
12329
12330
12331
12332 for ac_func in times
12333 do
12334   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12335 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12336 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12337 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340   cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346 #undef $ac_tr_decl
12347 #define $ac_tr_decl 1
12348
12349 #include "ansidecl.h"
12350 #include "system.h"
12351 #ifdef HAVE_SYS_TIMES_H
12352 #include <sys/times.h>
12353 #endif
12354
12355
12356 int
12357 main ()
12358 {
12359 #ifndef $ac_func
12360 char *(*pfn) = (char *(*)) $ac_func ;
12361 #endif
12362   ;
12363   return 0;
12364 }
12365 _ACEOF
12366 rm -f conftest.$ac_objext
12367 if { (ac_try="$ac_compile"
12368 case "(($ac_try" in
12369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370   *) ac_try_echo=$ac_try;;
12371 esac
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373   (eval "$ac_compile") 2>conftest.er1
12374   ac_status=$?
12375   grep -v '^ *+' conftest.er1 >conftest.err
12376   rm -f conftest.er1
12377   cat conftest.err >&5
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); } && {
12380          test -z "$ac_c_werror_flag" ||
12381          test ! -s conftest.err
12382        } && test -s conftest.$ac_objext; then
12383   eval "gcc_cv_have_decl_$ac_func=yes"
12384 else
12385   echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388         eval "gcc_cv_have_decl_$ac_func=no"
12389 fi
12390
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 fi
12393
12394 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12395   { echo "$as_me:$LINENO: result: yes" >&5
12396 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12397 #define $ac_tr_decl 1
12398 _ACEOF
12399
12400 else
12401   { echo "$as_me:$LINENO: result: no" >&5
12402 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12403 #define $ac_tr_decl 0
12404 _ACEOF
12405
12406 fi
12407
12408 done
12409
12410
12411
12412 for ac_func in sigaltstack
12413 do
12414   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12415 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12416 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12417 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12418   echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420   cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h.  */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h.  */
12426 #undef $ac_tr_decl
12427 #define $ac_tr_decl 1
12428
12429 #include "ansidecl.h"
12430 #include "system.h"
12431 #include <signal.h>
12432
12433
12434 int
12435 main ()
12436 {
12437 #ifndef $ac_func
12438 char *(*pfn) = (char *(*)) $ac_func ;
12439 #endif
12440   ;
12441   return 0;
12442 }
12443 _ACEOF
12444 rm -f conftest.$ac_objext
12445 if { (ac_try="$ac_compile"
12446 case "(($ac_try" in
12447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448   *) ac_try_echo=$ac_try;;
12449 esac
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451   (eval "$ac_compile") 2>conftest.er1
12452   ac_status=$?
12453   grep -v '^ *+' conftest.er1 >conftest.err
12454   rm -f conftest.er1
12455   cat conftest.err >&5
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); } && {
12458          test -z "$ac_c_werror_flag" ||
12459          test ! -s conftest.err
12460        } && test -s conftest.$ac_objext; then
12461   eval "gcc_cv_have_decl_$ac_func=yes"
12462 else
12463   echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466         eval "gcc_cv_have_decl_$ac_func=no"
12467 fi
12468
12469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 fi
12471
12472 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12473   { echo "$as_me:$LINENO: result: yes" >&5
12474 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12475 #define $ac_tr_decl 1
12476 _ACEOF
12477
12478 else
12479   { echo "$as_me:$LINENO: result: no" >&5
12480 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12481 #define $ac_tr_decl 0
12482 _ACEOF
12483
12484 fi
12485
12486 done
12487
12488
12489 # More time-related stuff.
12490 { echo "$as_me:$LINENO: checking for struct tms" >&5
12491 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6; }
12492 if test "${ac_cv_struct_tms+set}" = set; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12502
12503 #include "ansidecl.h"
12504 #include "system.h"
12505 #ifdef HAVE_SYS_TIMES_H
12506 #include <sys/times.h>
12507 #endif
12508
12509 int
12510 main ()
12511 {
12512 struct tms tms;
12513   ;
12514   return 0;
12515 }
12516 _ACEOF
12517 rm -f conftest.$ac_objext
12518 if { (ac_try="$ac_compile"
12519 case "(($ac_try" in
12520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521   *) ac_try_echo=$ac_try;;
12522 esac
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524   (eval "$ac_compile") 2>conftest.er1
12525   ac_status=$?
12526   grep -v '^ *+' conftest.er1 >conftest.err
12527   rm -f conftest.er1
12528   cat conftest.err >&5
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); } && {
12531          test -z "$ac_c_werror_flag" ||
12532          test ! -s conftest.err
12533        } && test -s conftest.$ac_objext; then
12534   ac_cv_struct_tms=yes
12535 else
12536   echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12538
12539         ac_cv_struct_tms=no
12540 fi
12541
12542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543 fi
12544 { echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12545 echo "${ECHO_T}$ac_cv_struct_tms" >&6; }
12546 if test $ac_cv_struct_tms = yes; then
12547
12548 cat >>confdefs.h <<\_ACEOF
12549 #define HAVE_STRUCT_TMS 1
12550 _ACEOF
12551
12552 fi
12553
12554 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12555 # revisit after autoconf 2.50.
12556 { echo "$as_me:$LINENO: checking for clock_t" >&5
12557 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
12558 if test "${gcc_cv_type_clock_t+set}" = set; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561
12562 cat >conftest.$ac_ext <<_ACEOF
12563 /* confdefs.h.  */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h.  */
12568
12569 #include "ansidecl.h"
12570 #include "system.h"
12571
12572 int
12573 main ()
12574 {
12575 clock_t x;
12576   ;
12577   return 0;
12578 }
12579 _ACEOF
12580 rm -f conftest.$ac_objext
12581 if { (ac_try="$ac_compile"
12582 case "(($ac_try" in
12583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584   *) ac_try_echo=$ac_try;;
12585 esac
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587   (eval "$ac_compile") 2>conftest.er1
12588   ac_status=$?
12589   grep -v '^ *+' conftest.er1 >conftest.err
12590   rm -f conftest.er1
12591   cat conftest.err >&5
12592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); } && {
12594          test -z "$ac_c_werror_flag" ||
12595          test ! -s conftest.err
12596        } && test -s conftest.$ac_objext; then
12597   gcc_cv_type_clock_t=yes
12598 else
12599   echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12601
12602         gcc_cv_type_clock_t=no
12603 fi
12604
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606 fi
12607 { echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12608 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6; }
12609 if test $gcc_cv_type_clock_t = yes; then
12610
12611 cat >>confdefs.h <<\_ACEOF
12612 #define HAVE_CLOCK_T 1
12613 _ACEOF
12614
12615 fi
12616
12617 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12618 CFLAGS="$saved_CFLAGS"
12619
12620 # Check whether --enable-initfini-array was given.
12621 if test "${enable_initfini_array+set}" = set; then
12622   enableval=$enable_initfini_array;
12623 else
12624
12625 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12626 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
12627 if test "${gcc_cv_initfini_array+set}" = set; then
12628   echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630     if test "$cross_compiling" = yes; then
12631   gcc_cv_initfini_array=no
12632 else
12633   cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h.  */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h.  */
12639
12640 static int x = -1;
12641 int main (void) { return x; }
12642 int foo (void) { x = 0; }
12643 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12644 _ACEOF
12645 rm -f conftest$ac_exeext
12646 if { (ac_try="$ac_link"
12647 case "(($ac_try" in
12648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649   *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652   (eval "$ac_link") 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12656   { (case "(($ac_try" in
12657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658   *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661   (eval "$ac_try") 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; }; then
12665   gcc_cv_initfini_array=yes
12666 else
12667   echo "$as_me: program exited with status $ac_status" >&5
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12670
12671 ( exit $ac_status )
12672 gcc_cv_initfini_array=no
12673 fi
12674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12675 fi
12676
12677
12678 fi
12679 { echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12680 echo "${ECHO_T}$gcc_cv_initfini_array" >&6; }
12681   enable_initfini_array=$gcc_cv_initfini_array
12682
12683 fi
12684
12685 if test $enable_initfini_array = yes; then
12686
12687 cat >>confdefs.h <<\_ACEOF
12688 #define HAVE_INITFINI_ARRAY 1
12689 _ACEOF
12690
12691 fi
12692
12693 # mkdir takes a single argument on some systems.
12694 { echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12695 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; }
12696 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12697   echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699   cat >conftest.$ac_ext <<_ACEOF
12700 /* confdefs.h.  */
12701 _ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h.  */
12705
12706 #include <sys/types.h>
12707 #ifdef HAVE_SYS_STAT_H
12708 # include <sys/stat.h>
12709 #endif
12710 #ifdef HAVE_UNISTD_H
12711 # include <unistd.h>
12712 #endif
12713 #ifdef HAVE_DIRECT_H
12714 # include <direct.h>
12715 #endif
12716 int
12717 main ()
12718 {
12719 mkdir ("foo", 0);
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 rm -f conftest.$ac_objext
12725 if { (ac_try="$ac_compile"
12726 case "(($ac_try" in
12727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728   *) ac_try_echo=$ac_try;;
12729 esac
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731   (eval "$ac_compile") 2>conftest.er1
12732   ac_status=$?
12733   grep -v '^ *+' conftest.er1 >conftest.err
12734   rm -f conftest.er1
12735   cat conftest.err >&5
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); } && {
12738          test -z "$ac_c_werror_flag" ||
12739          test ! -s conftest.err
12740        } && test -s conftest.$ac_objext; then
12741   gcc_cv_mkdir_takes_one_arg=no
12742 else
12743   echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12745
12746         gcc_cv_mkdir_takes_one_arg=yes
12747 fi
12748
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 fi
12751 { echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12752 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6; }
12753 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12754
12755 cat >>confdefs.h <<\_ACEOF
12756 #define MKDIR_TAKES_ONE_ARG 1
12757 _ACEOF
12758
12759 fi
12760
12761
12762 # File extensions
12763 manext='.1'
12764 objext='.o'
12765
12766
12767
12768 # With Setjmp/Longjmp based exception handling.
12769 # Check whether --enable-sjlj-exceptions was given.
12770 if test "${enable_sjlj_exceptions+set}" = set; then
12771   enableval=$enable_sjlj_exceptions; sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12772
12773 cat >>confdefs.h <<_ACEOF
12774 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12775 _ACEOF
12776
12777 fi
12778
12779
12780 # For platforms with the unwind ABI which includes an unwind library,
12781 # libunwind, we can choose to use the system libunwind.
12782
12783 # Check whether --with-system-libunwind was given.
12784 if test "${with_system_libunwind+set}" = set; then
12785   withval=$with_system_libunwind;
12786 fi
12787
12788
12789 # config.gcc also contains tests of with_system_libunwind.
12790 if test x$with_system_libunwind = xyes; then
12791
12792 cat >>confdefs.h <<\_ACEOF
12793 #define HAVE_GETIPINFO 1
12794 _ACEOF
12795
12796 fi
12797
12798 # --------------------------------------------------------
12799 # Build, host, and target specific configuration fragments
12800 # --------------------------------------------------------
12801
12802 # Collect build-machine-specific information.
12803 . ${srcdir}/config.build
12804
12805 # Collect host-machine-specific information.
12806 . ${srcdir}/config.host
12807
12808 target_gtfiles=
12809
12810 # Collect target-machine-specific information.
12811 . ${srcdir}/config.gcc
12812
12813 extra_objs="${host_extra_objs} ${extra_objs}"
12814 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12815
12816 # Default the target-machine variables that were not explicitly set.
12817 if test x"$tm_file" = x
12818 then tm_file=$cpu_type/$cpu_type.h; fi
12819
12820 if test x"$extra_headers" = x
12821 then extra_headers=; fi
12822
12823 if test x$md_file = x
12824 then md_file=$cpu_type/$cpu_type.md; fi
12825
12826 if test x$out_file = x
12827 then out_file=$cpu_type/$cpu_type.c; fi
12828
12829 if test x"$tmake_file" = x
12830 then tmake_file=$cpu_type/t-$cpu_type
12831 fi
12832
12833 if test x"$dwarf2" = xyes
12834 then tm_file="$tm_file tm-dwarf2.h"
12835 fi
12836
12837 # Say what files are being used for the output code and MD file.
12838 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12839 echo "Using \`$srcdir/config/$md_file' as machine description file."
12840
12841 # If any of the xm_file variables contain nonexistent files, warn
12842 # about them and drop them.
12843
12844 bx=
12845 for x in $build_xm_file; do
12846   if    test -f $srcdir/config/$x
12847   then      bx="$bx $x"
12848   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12849 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12850   fi
12851 done
12852 build_xm_file="$bx"
12853
12854 hx=
12855 for x in $host_xm_file; do
12856   if    test -f $srcdir/config/$x
12857   then      hx="$hx $x"
12858   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12859 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12860   fi
12861 done
12862 host_xm_file="$hx"
12863
12864 tx=
12865 for x in $xm_file; do
12866   if    test -f $srcdir/config/$x
12867   then      tx="$tx $x"
12868   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12869 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12870   fi
12871 done
12872 xm_file="$tx"
12873
12874 count=a
12875 for f in $tm_file; do
12876         count=${count}x
12877 done
12878 if test $count = ax; then
12879         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12880 else
12881         echo "Using the following target machine macro files:"
12882         for f in $tm_file; do
12883                 echo "  $srcdir/config/$f"
12884         done
12885 fi
12886
12887 if test x$need_64bit_hwint = xyes; then
12888
12889 cat >>confdefs.h <<\_ACEOF
12890 #define NEED_64BIT_HOST_WIDE_INT 1
12891 _ACEOF
12892
12893 fi
12894
12895 if test x$use_long_long_for_widest_fast_int = xyes; then
12896
12897 cat >>confdefs.h <<\_ACEOF
12898 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12899 _ACEOF
12900
12901 fi
12902
12903 count=a
12904 for f in $host_xm_file; do
12905         count=${count}x
12906 done
12907 if test $count = a; then
12908         :
12909 elif test $count = ax; then
12910         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12911 else
12912         echo "Using the following host machine macro files:"
12913         for f in $host_xm_file; do
12914                 echo "  $srcdir/config/$f"
12915         done
12916 fi
12917 echo "Using ${out_host_hook_obj} for host machine hooks."
12918
12919 if test "$host_xm_file" != "$build_xm_file"; then
12920         count=a
12921         for f in $build_xm_file; do
12922                 count=${count}x
12923         done
12924         if test $count = a; then
12925                 :
12926         elif test $count = ax; then
12927                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12928         else
12929                 echo "Using the following build machine macro files:"
12930                 for f in $build_xm_file; do
12931                         echo "  $srcdir/config/$f"
12932                 done
12933         fi
12934 fi
12935
12936 case ${host} in
12937   powerpc*-*-darwin*)
12938     { echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12939 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6; }
12940 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12941   echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943   cat >conftest.$ac_ext <<_ACEOF
12944
12945 #include <sys/cdefs.h>
12946 #include <sys/signal.h>
12947 #include <ucontext.h>
12948 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12949
12950 _ACEOF
12951 rm -f conftest.$ac_objext
12952 if { (ac_try="$ac_compile"
12953 case "(($ac_try" in
12954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955   *) ac_try_echo=$ac_try;;
12956 esac
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958   (eval "$ac_compile") 2>conftest.er1
12959   ac_status=$?
12960   grep -v '^ *+' conftest.er1 >conftest.err
12961   rm -f conftest.er1
12962   cat conftest.err >&5
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); } && {
12965          test -z "$ac_c_werror_flag" ||
12966          test ! -s conftest.err
12967        } && test -s conftest.$ac_objext; then
12968   gcc_cv_mcontext_underscores=no
12969 else
12970   echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12972
12973         gcc_cv_mcontext_underscores=yes
12974 fi
12975
12976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977 fi
12978 { echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12979 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6; }
12980       if test $gcc_cv_mcontext_underscores = yes; then
12981
12982 cat >>confdefs.h <<\_ACEOF
12983 #define HAS_MCONTEXT_T_UNDERSCORES
12984 _ACEOF
12985
12986       fi
12987     ;;
12988 esac
12989
12990 # ---------
12991 # Threading
12992 # ---------
12993
12994 # Check if a valid thread package
12995 case ${enable_threads} in
12996   "" | no)
12997     # No threads
12998     target_thread_file='single'
12999     ;;
13000   yes)
13001     # default
13002     target_thread_file='single'
13003     ;;
13004   aix | dce | gnat | irix | posix | posix95 | rtems | \
13005   single | solaris | vxworks | win32 )
13006     target_thread_file=${enable_threads}
13007     ;;
13008   *)
13009     echo "${enable_threads} is an unknown thread package" 1>&2
13010     exit 1
13011     ;;
13012 esac
13013
13014 if test x${thread_file} = x; then
13015   # No thread file set by target-specific clauses in config.gcc,
13016   # so use file chosen by default logic above
13017   thread_file=${target_thread_file}
13018 fi
13019
13020 # Make gthr-default.h if we have a thread file.
13021 gthread_flags=
13022 if test $thread_file != single; then
13023   rm -f gthr-default.h
13024   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
13025   gthread_flags=-DHAVE_GTHR_DEFAULT
13026 fi
13027
13028
13029 # --------
13030 # UNSORTED
13031 # --------
13032
13033 use_cxa_atexit=no
13034 if test x$enable___cxa_atexit = xyes || \
13035    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13036   if test x$host = x$target; then
13037     case $host in
13038       # mingw32 doesn't have __cxa_atexit but uses atexit registration
13039       # keyed to flag_use_cxa_atexit
13040       *-*-mingw32*)
13041         use_cxa_atexit=yes
13042         ;;
13043       *)
13044         { echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13045 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6; }
13046 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13047   echo $ECHO_N "(cached) $ECHO_C" >&6
13048 else
13049   cat >conftest.$ac_ext <<_ACEOF
13050 /* confdefs.h.  */
13051 _ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h.  */
13055 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13057 #define __cxa_atexit innocuous___cxa_atexit
13058
13059 /* System header to define __stub macros and hopefully few prototypes,
13060     which can conflict with char __cxa_atexit (); below.
13061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13062     <limits.h> exists even on freestanding compilers.  */
13063
13064 #ifdef __STDC__
13065 # include <limits.h>
13066 #else
13067 # include <assert.h>
13068 #endif
13069
13070 #undef __cxa_atexit
13071
13072 /* Override any GCC internal prototype to avoid an error.
13073    Use char because int might match the return type of a GCC
13074    builtin and then its argument prototype would still apply.  */
13075 #ifdef __cplusplus
13076 extern "C"
13077 #endif
13078 char __cxa_atexit ();
13079 /* The GNU C library defines this for functions which it implements
13080     to always fail with ENOSYS.  Some functions are actually named
13081     something starting with __ and the normal name is an alias.  */
13082 #if defined __stub___cxa_atexit || defined __stub_____cxa_atexit
13083 choke me
13084 #endif
13085
13086 int
13087 main ()
13088 {
13089 return __cxa_atexit ();
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (ac_try="$ac_link"
13096 case "(($ac_try" in
13097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098   *) ac_try_echo=$ac_try;;
13099 esac
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101   (eval "$ac_link") 2>conftest.er1
13102   ac_status=$?
13103   grep -v '^ *+' conftest.er1 >conftest.err
13104   rm -f conftest.er1
13105   cat conftest.err >&5
13106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107   (exit $ac_status); } && {
13108          test -z "$ac_c_werror_flag" ||
13109          test ! -s conftest.err
13110        } && test -s conftest$ac_exeext &&
13111        $as_test_x conftest$ac_exeext; then
13112   ac_cv_func___cxa_atexit=yes
13113 else
13114   echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117         ac_cv_func___cxa_atexit=no
13118 fi
13119
13120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13121       conftest$ac_exeext conftest.$ac_ext
13122 fi
13123 { echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13124 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6; }
13125 if test $ac_cv_func___cxa_atexit = yes; then
13126   use_cxa_atexit=yes
13127 else
13128   echo "__cxa_atexit can't be enabled on this target"
13129 fi
13130
13131         ;;
13132     esac
13133   else
13134     # We can't check for __cxa_atexit when building a cross, so assume
13135     # it is available
13136     use_cxa_atexit=yes
13137   fi
13138   if test x$use_cxa_atexit = xyes; then
13139
13140 cat >>confdefs.h <<\_ACEOF
13141 #define DEFAULT_USE_CXA_ATEXIT 2
13142 _ACEOF
13143
13144   fi
13145 fi
13146
13147 use_getipinfo=yes
13148 if test x$with_system_libunwind = xyes; then
13149    if test x$host = x$target; then
13150      { echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13151 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6; }
13152 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13153   echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155   ac_func_search_save_LIBS=$LIBS
13156 cat >conftest.$ac_ext <<_ACEOF
13157 /* confdefs.h.  */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h.  */
13162
13163 /* Override any GCC internal prototype to avoid an error.
13164    Use char because int might match the return type of a GCC
13165    builtin and then its argument prototype would still apply.  */
13166 #ifdef __cplusplus
13167 extern "C"
13168 #endif
13169 char _Unwind_GetIPInfo ();
13170 int
13171 main ()
13172 {
13173 return _Unwind_GetIPInfo ();
13174   ;
13175   return 0;
13176 }
13177 _ACEOF
13178 for ac_lib in '' unwind; do
13179   if test -z "$ac_lib"; then
13180     ac_res="none required"
13181   else
13182     ac_res=-l$ac_lib
13183     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13184   fi
13185   rm -f conftest.$ac_objext conftest$ac_exeext
13186 if { (ac_try="$ac_link"
13187 case "(($ac_try" in
13188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189   *) ac_try_echo=$ac_try;;
13190 esac
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192   (eval "$ac_link") 2>conftest.er1
13193   ac_status=$?
13194   grep -v '^ *+' conftest.er1 >conftest.err
13195   rm -f conftest.er1
13196   cat conftest.err >&5
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); } && {
13199          test -z "$ac_c_werror_flag" ||
13200          test ! -s conftest.err
13201        } && test -s conftest$ac_exeext &&
13202        $as_test_x conftest$ac_exeext; then
13203   ac_cv_search__Unwind_GetIPInfo=$ac_res
13204 else
13205   echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13207
13208
13209 fi
13210
13211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13212       conftest$ac_exeext
13213   if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13214   break
13215 fi
13216 done
13217 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13218   :
13219 else
13220   ac_cv_search__Unwind_GetIPInfo=no
13221 fi
13222 rm conftest.$ac_ext
13223 LIBS=$ac_func_search_save_LIBS
13224 fi
13225 { echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13226 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6; }
13227 ac_res=$ac_cv_search__Unwind_GetIPInfo
13228 if test "$ac_res" != no; then
13229   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13230
13231 else
13232   use_getipinfo=no
13233 fi
13234
13235    fi
13236 fi
13237
13238 if test x$use_getipinfo = xyes; then
13239
13240 cat >>confdefs.h <<\_ACEOF
13241 #define HAVE_GETIPINFO 1
13242 _ACEOF
13243
13244 else
13245    echo "The system unwind library does not support _Unwind_GetIPInfo."
13246 fi
13247
13248 # Look for a file containing extra machine modes.
13249 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13250   extra_modes_file='$(srcdir)'/config/${extra_modes}
13251
13252
13253 cat >>confdefs.h <<_ACEOF
13254 #define EXTRA_MODES_FILE "config/$extra_modes"
13255 _ACEOF
13256
13257 fi
13258
13259 # Convert extra_options into a form suitable for Makefile use.
13260 extra_opt_files=
13261 for f in $extra_options; do
13262   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13263 done
13264
13265
13266 # auto-host.h is the file containing items generated by autoconf and is
13267 # the first file included by config.h.
13268 # If host=build, it is correct to have bconfig include auto-host.h
13269 # as well.  If host!=build, we are in error and need to do more
13270 # work to find out the build config parameters.
13271 if test x$host = x$build
13272 then
13273         build_auto=auto-host.h
13274 else
13275         # We create a subdir, then run autoconf in the subdir.
13276         # To prevent recursion we set host and build for the new
13277         # invocation of configure to the build for this invocation
13278         # of configure.
13279         tempdir=build.$$
13280         rm -rf $tempdir
13281         mkdir $tempdir
13282         cd $tempdir
13283         case ${srcdir} in
13284         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13285         *) realsrcdir=../${srcdir};;
13286         esac
13287         saved_CFLAGS="${CFLAGS}"
13288         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13289         ${realsrcdir}/configure \
13290                 --enable-languages=${enable_languages-all} \
13291                 --target=$target_alias --host=$build_alias --build=$build_alias
13292         CFLAGS="${saved_CFLAGS}"
13293
13294         # We just finished tests for the build machine, so rename
13295         # the file auto-build.h in the gcc directory.
13296         mv auto-host.h ../auto-build.h
13297         cd ..
13298         rm -rf $tempdir
13299         build_auto=auto-build.h
13300 fi
13301
13302
13303 tm_file="${tm_file} defaults.h"
13304 tm_p_file="${tm_p_file} tm-preds.h"
13305 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13306 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13307 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13308 # put this back in temporarily.
13309 xm_file="auto-host.h ansidecl.h ${xm_file}"
13310
13311 # --------
13312 # UNSORTED
13313 # --------
13314
13315 # Compile in configure arguments.
13316 if test -f configargs.h ; then
13317         # Being re-configured.
13318         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13319         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13320 else
13321         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13322 fi
13323
13324 # Double all backslashes and backslash all quotes to turn
13325 # gcc_config_arguments into a C string.
13326 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13327 $gcc_config_arguments
13328 EOF
13329 gcc_config_arguments_str=`cat conftest.out`
13330 rm -f conftest.out
13331
13332 cat > configargs.h <<EOF
13333 /* Generated automatically. */
13334 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13335 static const char thread_model[] = "$thread_file";
13336
13337 static const struct {
13338   const char *name, *value;
13339 } configure_default_options[] = $configure_default_options;
13340 EOF
13341
13342 # Internationalization
13343 # If we haven't got the data from the intl directory,
13344 # assume NLS is disabled.
13345 USE_NLS=no
13346 LIBINTL=
13347 LIBINTL_DEP=
13348 INCINTL=
13349 XGETTEXT=
13350 GMSGFMT=
13351 POSUB=
13352
13353 if test -f  ../intl/config.intl; then
13354   .  ../intl/config.intl
13355 fi
13356 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13357 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13358 if test x"$USE_NLS" != xyes; then
13359   { echo "$as_me:$LINENO: result: no" >&5
13360 echo "${ECHO_T}no" >&6; }
13361 else
13362   { echo "$as_me:$LINENO: result: yes" >&5
13363 echo "${ECHO_T}yes" >&6; }
13364
13365 cat >>confdefs.h <<\_ACEOF
13366 #define ENABLE_NLS 1
13367 _ACEOF
13368
13369
13370   { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13371 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
13372   # Look for .po and .gmo files in the source directory.
13373   CATALOGS=
13374   XLINGUAS=
13375   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13376     # If there aren't any .gmo files the shell will give us the
13377     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13378     # weeded out.
13379     case "$cat" in *\**)
13380       continue;;
13381     esac
13382     # The quadruple backslash is collapsed to a double backslash
13383     # by the backticks, then collapsed again by the double quotes,
13384     # leaving us with one backslash in the sed expression (right
13385     # before the dot that mustn't act as a wildcard).
13386     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13387     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13388     # The user is allowed to set LINGUAS to a list of languages to
13389     # install catalogs for.  If it's empty that means "all of them."
13390     if test "x$LINGUAS" = x; then
13391       CATALOGS="$CATALOGS $cat"
13392       XLINGUAS="$XLINGUAS $lang"
13393     else
13394       case "$LINGUAS" in *$lang*)
13395         CATALOGS="$CATALOGS $cat"
13396         XLINGUAS="$XLINGUAS $lang"
13397         ;;
13398       esac
13399     fi
13400   done
13401   LINGUAS="$XLINGUAS"
13402   { echo "$as_me:$LINENO: result: $LINGUAS" >&5
13403 echo "${ECHO_T}$LINGUAS" >&6; }
13404
13405
13406     DATADIRNAME=share
13407
13408   INSTOBJEXT=.mo
13409
13410   GENCAT=gencat
13411
13412   CATOBJEXT=.gmo
13413
13414 fi
13415
13416 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13417 # -liconv on the link line twice.
13418 case "$LIBINTL" in *$LIBICONV*)
13419         LIBICONV= ;;
13420 esac
13421
13422 # Check whether --enable-secureplt was given.
13423 if test "${enable_secureplt+set}" = set; then
13424   enableval=$enable_secureplt;
13425 fi
13426
13427
13428 # Windows32 Registry support for specifying GCC installation paths.
13429 # Check whether --enable-win32-registry was given.
13430 if test "${enable_win32_registry+set}" = set; then
13431   enableval=$enable_win32_registry;
13432 fi
13433
13434
13435 case $host_os in
13436   win32 | pe | cygwin* | mingw32* | uwin*)
13437     if test "x$enable_win32_registry" != xno; then
13438       { echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13439 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6; }
13440 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13441   echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443   ac_func_search_save_LIBS=$LIBS
13444 cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h.  */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h.  */
13450
13451 /* Override any GCC internal prototype to avoid an error.
13452    Use char because int might match the return type of a GCC
13453    builtin and then its argument prototype would still apply.  */
13454 #ifdef __cplusplus
13455 extern "C"
13456 #endif
13457 char RegOpenKeyExA ();
13458 int
13459 main ()
13460 {
13461 return RegOpenKeyExA ();
13462   ;
13463   return 0;
13464 }
13465 _ACEOF
13466 for ac_lib in '' advapi32; do
13467   if test -z "$ac_lib"; then
13468     ac_res="none required"
13469   else
13470     ac_res=-l$ac_lib
13471     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13472   fi
13473   rm -f conftest.$ac_objext conftest$ac_exeext
13474 if { (ac_try="$ac_link"
13475 case "(($ac_try" in
13476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477   *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480   (eval "$ac_link") 2>conftest.er1
13481   ac_status=$?
13482   grep -v '^ *+' conftest.er1 >conftest.err
13483   rm -f conftest.er1
13484   cat conftest.err >&5
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); } && {
13487          test -z "$ac_c_werror_flag" ||
13488          test ! -s conftest.err
13489        } && test -s conftest$ac_exeext &&
13490        $as_test_x conftest$ac_exeext; then
13491   ac_cv_search_RegOpenKeyExA=$ac_res
13492 else
13493   echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496
13497 fi
13498
13499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13500       conftest$ac_exeext
13501   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13502   break
13503 fi
13504 done
13505 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13506   :
13507 else
13508   ac_cv_search_RegOpenKeyExA=no
13509 fi
13510 rm conftest.$ac_ext
13511 LIBS=$ac_func_search_save_LIBS
13512 fi
13513 { echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13514 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6; }
13515 ac_res=$ac_cv_search_RegOpenKeyExA
13516 if test "$ac_res" != no; then
13517   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13518
13519 else
13520   enable_win32_registry=no
13521 fi
13522
13523     fi
13524
13525     if test "x$enable_win32_registry" != xno; then
13526
13527 cat >>confdefs.h <<\_ACEOF
13528 #define ENABLE_WIN32_REGISTRY 1
13529 _ACEOF
13530
13531
13532       if test "x$enable_win32_registry" != xyes \
13533          && test "x$enable_win32_registry" != x; then
13534
13535 cat >>confdefs.h <<_ACEOF
13536 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13537 _ACEOF
13538
13539       fi
13540     fi
13541   ;;
13542 esac
13543
13544 # Get an absolute path to the GCC top-level source directory
13545 holddir=`${PWDCMD-pwd}`
13546 cd $srcdir
13547 topdir=`${PWDCMD-pwd}`
13548 cd $holddir
13549
13550 # Conditionalize the makefile for this host machine.
13551 xmake_file=
13552 for f in ${host_xmake_file}
13553 do
13554         if test -f ${srcdir}/config/$f
13555         then
13556                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13557         fi
13558 done
13559
13560 # Conditionalize the makefile for this target machine.
13561 tmake_file_=
13562 for f in ${tmake_file}
13563 do
13564         if test -f ${srcdir}/config/$f
13565         then
13566                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13567         fi
13568 done
13569 tmake_file="${tmake_file_}"
13570
13571 # This is a terrible hack which will go away some day.
13572 host_cc_for_libada=${CC}
13573
13574
13575 out_object_file=`basename $out_file .c`.o
13576
13577 tm_file_list="options.h"
13578 tm_include_list="options.h"
13579 for f in $tm_file; do
13580   case $f in
13581     ./* )
13582        f=`echo $f | sed 's/^..//'`
13583        tm_file_list="${tm_file_list} $f"
13584        tm_include_list="${tm_include_list} $f"
13585        ;;
13586     defaults.h )
13587        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13588        tm_include_list="${tm_include_list} $f"
13589        ;;
13590     * )
13591        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13592        tm_include_list="${tm_include_list} config/$f"
13593        ;;
13594   esac
13595 done
13596
13597 tm_p_file_list=
13598 tm_p_include_list=
13599 for f in $tm_p_file; do
13600   case $f in
13601     tm-preds.h )
13602        tm_p_file_list="${tm_p_file_list} $f"
13603        tm_p_include_list="${tm_p_include_list} $f"
13604        ;;
13605     * )
13606        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13607        tm_p_include_list="${tm_p_include_list} config/$f"
13608   esac
13609 done
13610
13611 xm_file_list=
13612 xm_include_list=
13613 for f in $xm_file; do
13614   case $f in
13615     ansidecl.h )
13616        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13617        xm_include_list="${xm_include_list} $f"
13618        ;;
13619     auto-host.h )
13620        xm_file_list="${xm_file_list} $f"
13621        xm_include_list="${xm_include_list} $f"
13622        ;;
13623     * )
13624        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13625        xm_include_list="${xm_include_list} config/$f"
13626        ;;
13627   esac
13628 done
13629
13630 host_xm_file_list=
13631 host_xm_include_list=
13632 for f in $host_xm_file; do
13633   case $f in
13634     ansidecl.h )
13635        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13636        host_xm_include_list="${host_xm_include_list} $f"
13637        ;;
13638     auto-host.h )
13639        host_xm_file_list="${host_xm_file_list} $f"
13640        host_xm_include_list="${host_xm_include_list} $f"
13641        ;;
13642     * )
13643        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13644        host_xm_include_list="${host_xm_include_list} config/$f"
13645        ;;
13646   esac
13647 done
13648
13649 build_xm_file_list=
13650 for f in $build_xm_file; do
13651   case $f in
13652     ansidecl.h )
13653        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13654        build_xm_include_list="${build_xm_include_list} $f"
13655        ;;
13656     auto-build.h | auto-host.h )
13657        build_xm_file_list="${build_xm_file_list} $f"
13658        build_xm_include_list="${build_xm_include_list} $f"
13659        ;;
13660     * )
13661        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13662        build_xm_include_list="${build_xm_include_list} config/$f"
13663        ;;
13664   esac
13665 done
13666
13667 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13668 # cross-compiler which does not use the native headers and libraries.
13669 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13670 CROSS=
13671 ALL=all.internal
13672 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13673
13674 if test "x$with_build_sysroot" != x; then
13675   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13676 else
13677   # This value is used, even on a native system, because
13678   # CROSS_SYSTEM_HEADER_DIR is just
13679   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13680   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13681 fi
13682
13683 if test x$host != x$target
13684 then
13685         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13686         ALL=all.cross
13687         SYSTEM_HEADER_DIR=$build_system_header_dir
13688         case "$host","$target" in
13689         # Darwin crosses can use the host system's libraries and headers,
13690         # because of the fat library support.  Of course, it must be the
13691         # same version of Darwin on both sides.  Allow the user to
13692         # just say --target=foo-darwin without a version number to mean
13693         # "the version on this system".
13694             *-*-darwin*,*-*-darwin*)
13695                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13696                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13697                 if test $hostos = $targetos -o $targetos = darwin ; then
13698                     CROSS=
13699                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13700                     with_headers=yes
13701                 fi
13702                 ;;
13703
13704             i?86-*-*,x86_64-*-* \
13705             | powerpc*-*-*,powerpc64*-*-*)
13706                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13707         esac
13708 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13709         SYSTEM_HEADER_DIR=$build_system_header_dir
13710 fi
13711
13712 # If this is a cross-compiler that does not
13713 # have its own set of headers then define
13714 # inhibit_libc
13715
13716 # If this is using newlib, without having the headers available now,
13717 # then define inhibit_libc in LIBGCC2_CFLAGS.
13718 # This prevents libgcc2 from containing any code which requires libc
13719 # support.
13720 inhibit_libc=false
13721 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13722        test x$with_newlib = xyes ; } &&
13723      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13724        inhibit_libc=true
13725 fi
13726
13727
13728 # When building gcc with a cross-compiler, we need to adjust things so
13729 # that the generator programs are still built with the native compiler.
13730 # Also, we cannot run fixincludes or fix-header.
13731
13732 # These are the normal (build=host) settings:
13733 CC_FOR_BUILD='$(CC)'
13734 BUILD_CFLAGS='$(ALL_CFLAGS)'
13735 STMP_FIXINC=stmp-fixinc
13736
13737 # Possibly disable fixproto, on a per-target basis.
13738 case ${use_fixproto} in
13739   no)
13740     STMP_FIXPROTO=
13741     ;;
13742   yes)
13743     STMP_FIXPROTO=stmp-fixproto
13744     ;;
13745 esac
13746
13747
13748 # And these apply if build != host, or we are generating coverage data
13749 if test x$build != x$host || test "x$coverage_flags" != x
13750 then
13751     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13752
13753     if test "x$TARGET_SYSTEM_ROOT" = x; then
13754         if test "x$STMP_FIXPROTO" != x; then
13755           STMP_FIXPROTO=stmp-install-fixproto
13756         fi
13757     fi
13758 fi
13759
13760 # Expand extra_headers to include complete path.
13761 # This substitutes for lots of t-* files.
13762 extra_headers_list=
13763 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13764 for file in ${extra_headers} ; do
13765   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13766 done
13767
13768 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13769 if test x"$use_gcc_tgmath" = xyes
13770 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13771 fi
13772
13773 # Define collect2 in Makefile.
13774 case $host_can_use_collect2 in
13775   no) collect2= ;;
13776   *) collect2='collect2$(exeext)' ;;
13777 esac
13778
13779
13780 # Add a definition of USE_COLLECT2 if system wants one.
13781 case $use_collect2 in
13782   no) use_collect2= ;;
13783   "") ;;
13784   *)
13785     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13786     xm_defines="${xm_defines} USE_COLLECT2"
13787     case $host_can_use_collect2 in
13788       no)
13789         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13790 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13791    { (exit 1); exit 1; }; }
13792         ;;
13793     esac
13794     ;;
13795 esac
13796
13797 # ---------------------------
13798 # Assembler & linker features
13799 # ---------------------------
13800
13801 # Identify the assembler which will work hand-in-glove with the newly
13802 # built GCC, so that we can examine its features.  This is the assembler
13803 # which will be driven by the driver program.
13804 #
13805 # If build != host, and we aren't building gas in-tree, we identify a
13806 # build->target assembler and hope that it will have the same features
13807 # as the host->target assembler we'll be using.
13808 gcc_cv_gas_major_version=
13809 gcc_cv_gas_minor_version=
13810 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13811
13812 if test "${gcc_cv_as+set}" = set; then
13813   :
13814 else
13815
13816 if test -x "$DEFAULT_ASSEMBLER"; then
13817         gcc_cv_as="$DEFAULT_ASSEMBLER"
13818 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13819      && test -f ../gas/Makefile \
13820      && test x$build = x$host; then
13821         gcc_cv_as=../gas/as-new$build_exeext
13822 elif test -x as$build_exeext; then
13823         # Build using assembler in the current directory.
13824         gcc_cv_as=./as$build_exeext
13825 elif test -x $AS_FOR_TARGET; then
13826         gcc_cv_as="$AS_FOR_TARGET"
13827 else
13828         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13829 set dummy $AS_FOR_TARGET; ac_word=$2
13830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13832 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13833   echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835   case $gcc_cv_as in
13836   [\\/]* | ?:[\\/]*)
13837   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13838   ;;
13839   *)
13840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841 for as_dir in $PATH
13842 do
13843   IFS=$as_save_IFS
13844   test -z "$as_dir" && as_dir=.
13845   for ac_exec_ext in '' $ac_executable_extensions; do
13846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13847     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13849     break 2
13850   fi
13851 done
13852 done
13853 IFS=$as_save_IFS
13854
13855   ;;
13856 esac
13857 fi
13858 gcc_cv_as=$ac_cv_path_gcc_cv_as
13859 if test -n "$gcc_cv_as"; then
13860   { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13861 echo "${ECHO_T}$gcc_cv_as" >&6; }
13862 else
13863   { echo "$as_me:$LINENO: result: no" >&5
13864 echo "${ECHO_T}no" >&6; }
13865 fi
13866
13867
13868 fi
13869 fi
13870
13871
13872 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13873
13874 case "$ORIGINAL_AS_FOR_TARGET" in
13875   ./as | ./as$build_exeext) ;;
13876   *) ac_config_files="$ac_config_files as:exec-tool.in"
13877  ;;
13878 esac
13879
13880 { echo "$as_me:$LINENO: checking what assembler to use" >&5
13881 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6; }
13882 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13883   # Single tree build which includes gas.  We want to prefer it
13884   # over whatever linker top-level may have detected, since
13885   # we'll use what we're building after installation anyway.
13886   { echo "$as_me:$LINENO: result: newly built gas" >&5
13887 echo "${ECHO_T}newly built gas" >&6; }
13888   in_tree_gas=yes
13889   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13890 for f in $gcc_cv_as_bfd_srcdir/configure \
13891          $gcc_cv_as_gas_srcdir/configure \
13892          $gcc_cv_as_gas_srcdir/configure.in \
13893          $gcc_cv_as_gas_srcdir/Makefile.in ; do
13894   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13895   if test x$gcc_cv_gas_version != x; then
13896     break
13897   fi
13898 done
13899 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13900 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13901 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13902 case $gcc_cv_gas_patch_version in
13903   "") gcc_cv_gas_patch_version="0" ;;
13904 esac
13905 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13906                             + $gcc_cv_gas_minor_version \) \* 1000 \
13907                             + $gcc_cv_gas_patch_version`
13908
13909   in_tree_gas_is_elf=no
13910   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13911      || (grep 'obj_format = multi' ../gas/Makefile \
13912          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13913   then
13914     in_tree_gas_is_elf=yes
13915   fi
13916 else
13917   { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13918 echo "${ECHO_T}$gcc_cv_as" >&6; }
13919   in_tree_gas=no
13920 fi
13921
13922 # Identify the linker which will work hand-in-glove with the newly
13923 # built GCC, so that we can examine its features.  This is the linker
13924 # which will be driven by the driver program.
13925 #
13926 # If build != host, and we aren't building gas in-tree, we identify a
13927 # build->target linker and hope that it will have the same features
13928 # as the host->target linker we'll be using.
13929 gcc_cv_gld_major_version=
13930 gcc_cv_gld_minor_version=
13931 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13932 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13933
13934 if test "${gcc_cv_ld+set}" = set; then
13935   :
13936 else
13937
13938 if test -x "$DEFAULT_LINKER"; then
13939         gcc_cv_ld="$DEFAULT_LINKER"
13940 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13941      && test -f ../ld/Makefile \
13942      && test x$build = x$host; then
13943         gcc_cv_ld=../ld/ld-new$build_exeext
13944 elif test -x collect-ld$build_exeext; then
13945         # Build using linker in the current directory.
13946         gcc_cv_ld=./collect-ld$build_exeext
13947 elif test -x $LD_FOR_TARGET; then
13948         gcc_cv_ld="$LD_FOR_TARGET"
13949 else
13950         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13951 set dummy $LD_FOR_TARGET; ac_word=$2
13952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13954 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   case $gcc_cv_ld in
13958   [\\/]* | ?:[\\/]*)
13959   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13960   ;;
13961   *)
13962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13963 for as_dir in $PATH
13964 do
13965   IFS=$as_save_IFS
13966   test -z "$as_dir" && as_dir=.
13967   for ac_exec_ext in '' $ac_executable_extensions; do
13968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13969     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13971     break 2
13972   fi
13973 done
13974 done
13975 IFS=$as_save_IFS
13976
13977   ;;
13978 esac
13979 fi
13980 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13981 if test -n "$gcc_cv_ld"; then
13982   { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13983 echo "${ECHO_T}$gcc_cv_ld" >&6; }
13984 else
13985   { echo "$as_me:$LINENO: result: no" >&5
13986 echo "${ECHO_T}no" >&6; }
13987 fi
13988
13989
13990 fi
13991 fi
13992
13993
13994 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13995
13996 case "$ORIGINAL_LD_FOR_TARGET" in
13997   ./collect-ld | ./collect-ld$build_exeext) ;;
13998   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13999  ;;
14000 esac
14001
14002 { echo "$as_me:$LINENO: checking what linker to use" >&5
14003 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6; }
14004 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
14005         # Single tree build which includes ld.  We want to prefer it
14006         # over whatever linker top-level may have detected, since
14007         # we'll use what we're building after installation anyway.
14008         { echo "$as_me:$LINENO: result: newly built ld" >&5
14009 echo "${ECHO_T}newly built ld" >&6; }
14010         in_tree_ld=yes
14011         in_tree_ld_is_elf=no
14012         if (grep 'EMUL = .*elf' ../ld/Makefile \
14013             || grep 'EMUL = .*linux' ../ld/Makefile \
14014             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
14015           in_tree_ld_is_elf=yes
14016         fi
14017         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
14018         do
14019                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
14020                 if test x$gcc_cv_gld_version != x; then
14021                         break
14022                 fi
14023         done
14024         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
14025         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
14026 else
14027         { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14028 echo "${ECHO_T}$gcc_cv_ld" >&6; }
14029         in_tree_ld=no
14030 fi
14031
14032 # Figure out what nm we will be using.
14033 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
14034 if test "${gcc_cv_nm+set}" = set; then
14035   :
14036 else
14037
14038 if test -f $gcc_cv_binutils_srcdir/configure.in \
14039      && test -f ../binutils/Makefile \
14040      && test x$build = x$host; then
14041         gcc_cv_nm=../binutils/nm-new$build_exeext
14042 elif test -x nm$build_exeext; then
14043         gcc_cv_nm=./nm$build_exeext
14044 elif test -x $NM_FOR_TARGET; then
14045         gcc_cv_nm="$NM_FOR_TARGET"
14046 else
14047         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
14048 set dummy $NM_FOR_TARGET; ac_word=$2
14049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14051 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14052   echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054   case $gcc_cv_nm in
14055   [\\/]* | ?:[\\/]*)
14056   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14057   ;;
14058   *)
14059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14061 do
14062   IFS=$as_save_IFS
14063   test -z "$as_dir" && as_dir=.
14064   for ac_exec_ext in '' $ac_executable_extensions; do
14065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14066     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14068     break 2
14069   fi
14070 done
14071 done
14072 IFS=$as_save_IFS
14073
14074   ;;
14075 esac
14076 fi
14077 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14078 if test -n "$gcc_cv_nm"; then
14079   { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14080 echo "${ECHO_T}$gcc_cv_nm" >&6; }
14081 else
14082   { echo "$as_me:$LINENO: result: no" >&5
14083 echo "${ECHO_T}no" >&6; }
14084 fi
14085
14086
14087 fi
14088 fi
14089
14090
14091 { echo "$as_me:$LINENO: checking what nm to use" >&5
14092 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6; }
14093 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
14094         # Single tree build which includes binutils.
14095         { echo "$as_me:$LINENO: result: newly built nm" >&5
14096 echo "${ECHO_T}newly built nm" >&6; }
14097         in_tree_nm=yes
14098 else
14099         { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14100 echo "${ECHO_T}$gcc_cv_nm" >&6; }
14101         in_tree_nm=no
14102 fi
14103
14104 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
14105
14106 case "$ORIGINAL_NM_FOR_TARGET" in
14107   ./nm | ./nm$build_exeext) ;;
14108   *) ac_config_files="$ac_config_files nm:exec-tool.in"
14109  ;;
14110 esac
14111
14112
14113 # Figure out what objdump we will be using.
14114 if test "${gcc_cv_objdump+set}" = set; then
14115   :
14116 else
14117
14118 if test -f $gcc_cv_binutils_srcdir/configure.in \
14119      && test -f ../binutils/Makefile \
14120      && test x$build = x$host; then
14121         # Single tree build which includes binutils.
14122         gcc_cv_objdump=../binutils/objdump$build_exeext
14123 elif test -x objdump$build_exeext; then
14124         gcc_cv_objdump=./objdump$build_exeext
14125 elif test -x $OBJDUMP_FOR_TARGET; then
14126         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
14127 else
14128         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14129 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
14130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14132 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14133   echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135   case $gcc_cv_objdump in
14136   [\\/]* | ?:[\\/]*)
14137   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14138   ;;
14139   *)
14140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14142 do
14143   IFS=$as_save_IFS
14144   test -z "$as_dir" && as_dir=.
14145   for ac_exec_ext in '' $ac_executable_extensions; do
14146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14147     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14149     break 2
14150   fi
14151 done
14152 done
14153 IFS=$as_save_IFS
14154
14155   ;;
14156 esac
14157 fi
14158 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14159 if test -n "$gcc_cv_objdump"; then
14160   { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14161 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
14162 else
14163   { echo "$as_me:$LINENO: result: no" >&5
14164 echo "${ECHO_T}no" >&6; }
14165 fi
14166
14167
14168 fi
14169 fi
14170
14171
14172 { echo "$as_me:$LINENO: checking what objdump to use" >&5
14173 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6; }
14174 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
14175         # Single tree build which includes binutils.
14176         { echo "$as_me:$LINENO: result: newly built objdump" >&5
14177 echo "${ECHO_T}newly built objdump" >&6; }
14178 elif test x$gcc_cv_objdump = x; then
14179         { echo "$as_me:$LINENO: result: not found" >&5
14180 echo "${ECHO_T}not found" >&6; }
14181 else
14182         { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14183 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
14184 fi
14185
14186 # Figure out what assembler alignment features are present.
14187 { echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14188 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6; }
14189 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192   gcc_cv_as_balign_and_p2align=no
14193     if test $in_tree_gas = yes; then
14194     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14195   then gcc_cv_as_balign_and_p2align=yes
14196 fi
14197   elif test x$gcc_cv_as != x; then
14198     echo '.balign 4
14199 .p2align 2' > conftest.s
14200     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202   (eval $ac_try) 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; }
14206     then
14207         gcc_cv_as_balign_and_p2align=yes
14208     else
14209       echo "configure: failed program was" >&5
14210       cat conftest.s >&5
14211     fi
14212     rm -f conftest.o conftest.s
14213   fi
14214 fi
14215 { echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14216 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6; }
14217 if test $gcc_cv_as_balign_and_p2align = yes; then
14218
14219 cat >>confdefs.h <<\_ACEOF
14220 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14221 _ACEOF
14222
14223 fi
14224
14225 { echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14226 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6; }
14227 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230   gcc_cv_as_max_skip_p2align=no
14231     if test $in_tree_gas = yes; then
14232     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14233   then gcc_cv_as_max_skip_p2align=yes
14234 fi
14235   elif test x$gcc_cv_as != x; then
14236     echo '.p2align 4,,7' > conftest.s
14237     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239   (eval $ac_try) 2>&5
14240   ac_status=$?
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); }; }
14243     then
14244         gcc_cv_as_max_skip_p2align=yes
14245     else
14246       echo "configure: failed program was" >&5
14247       cat conftest.s >&5
14248     fi
14249     rm -f conftest.o conftest.s
14250   fi
14251 fi
14252 { echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14253 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6; }
14254 if test $gcc_cv_as_max_skip_p2align = yes; then
14255
14256 cat >>confdefs.h <<\_ACEOF
14257 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14258 _ACEOF
14259
14260 fi
14261
14262 { echo "$as_me:$LINENO: checking assembler for .literal16" >&5
14263 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6; }
14264 if test "${gcc_cv_as_literal16+set}" = set; then
14265   echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267   gcc_cv_as_literal16=no
14268     if test $in_tree_gas = yes; then
14269     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14270   then gcc_cv_as_literal16=yes
14271 fi
14272   elif test x$gcc_cv_as != x; then
14273     echo '.literal16' > conftest.s
14274     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276   (eval $ac_try) 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); }; }
14280     then
14281         gcc_cv_as_literal16=yes
14282     else
14283       echo "configure: failed program was" >&5
14284       cat conftest.s >&5
14285     fi
14286     rm -f conftest.o conftest.s
14287   fi
14288 fi
14289 { echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
14290 echo "${ECHO_T}$gcc_cv_as_literal16" >&6; }
14291 if test $gcc_cv_as_literal16 = yes; then
14292
14293 cat >>confdefs.h <<\_ACEOF
14294 #define HAVE_GAS_LITERAL16 1
14295 _ACEOF
14296
14297 fi
14298
14299 { echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14300 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6; }
14301 if test "${gcc_cv_as_subsection_m1+set}" = set; then
14302   echo $ECHO_N "(cached) $ECHO_C" >&6
14303 else
14304   gcc_cv_as_subsection_m1=no
14305     if test $in_tree_gas = yes; then
14306     if test $in_tree_gas_is_elf = yes \
14307   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14308   then gcc_cv_as_subsection_m1=yes
14309 fi
14310   elif test x$gcc_cv_as != x; then
14311     echo 'conftest_label1: .word 0
14312 .subsection -1
14313 conftest_label2: .word 0
14314 .previous' > conftest.s
14315     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317   (eval $ac_try) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; }
14321     then
14322         if test x$gcc_cv_nm != x; then
14323     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
14324     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
14325     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
14326     then :
14327     else gcc_cv_as_subsection_m1=yes
14328     fi
14329     rm -f conftest.nm1 conftest.nm2
14330   fi
14331     else
14332       echo "configure: failed program was" >&5
14333       cat conftest.s >&5
14334     fi
14335     rm -f conftest.o conftest.s
14336   fi
14337 fi
14338 { echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14339 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6; }
14340 if test $gcc_cv_as_subsection_m1 = yes; then
14341
14342 cat >>confdefs.h <<\_ACEOF
14343 #define HAVE_GAS_SUBSECTION_ORDERING 1
14344 _ACEOF
14345
14346 fi
14347
14348 { echo "$as_me:$LINENO: checking assembler for .weak" >&5
14349 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6; }
14350 if test "${gcc_cv_as_weak+set}" = set; then
14351   echo $ECHO_N "(cached) $ECHO_C" >&6
14352 else
14353   gcc_cv_as_weak=no
14354     if test $in_tree_gas = yes; then
14355     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14356   then gcc_cv_as_weak=yes
14357 fi
14358   elif test x$gcc_cv_as != x; then
14359     echo '      .weak foobar' > conftest.s
14360     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362   (eval $ac_try) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); }; }
14366     then
14367         gcc_cv_as_weak=yes
14368     else
14369       echo "configure: failed program was" >&5
14370       cat conftest.s >&5
14371     fi
14372     rm -f conftest.o conftest.s
14373   fi
14374 fi
14375 { echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14376 echo "${ECHO_T}$gcc_cv_as_weak" >&6; }
14377 if test $gcc_cv_as_weak = yes; then
14378
14379 cat >>confdefs.h <<\_ACEOF
14380 #define HAVE_GAS_WEAK 1
14381 _ACEOF
14382
14383 fi
14384
14385 { echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14386 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6; }
14387 if test "${gcc_cv_as_weakref+set}" = set; then
14388   echo $ECHO_N "(cached) $ECHO_C" >&6
14389 else
14390   gcc_cv_as_weakref=no
14391     if test $in_tree_gas = yes; then
14392     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14393   then gcc_cv_as_weakref=yes
14394 fi
14395   elif test x$gcc_cv_as != x; then
14396     echo '      .weakref foobar, barfnot' > conftest.s
14397     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399   (eval $ac_try) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; }
14403     then
14404         gcc_cv_as_weakref=yes
14405     else
14406       echo "configure: failed program was" >&5
14407       cat conftest.s >&5
14408     fi
14409     rm -f conftest.o conftest.s
14410   fi
14411 fi
14412 { echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14413 echo "${ECHO_T}$gcc_cv_as_weakref" >&6; }
14414 if test $gcc_cv_as_weakref = yes; then
14415
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAVE_GAS_WEAKREF 1
14418 _ACEOF
14419
14420 fi
14421
14422 { echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14423 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6; }
14424 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14425   echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427   gcc_cv_as_nsubspa_comdat=no
14428     if test $in_tree_gas = yes; then
14429     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14430   then gcc_cv_as_nsubspa_comdat=yes
14431 fi
14432   elif test x$gcc_cv_as != x; then
14433     echo '      .SPACE $TEXT$
14434         .NSUBSPA $CODE$,COMDAT' > conftest.s
14435     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437   (eval $ac_try) 2>&5
14438   ac_status=$?
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); }; }
14441     then
14442         gcc_cv_as_nsubspa_comdat=yes
14443     else
14444       echo "configure: failed program was" >&5
14445       cat conftest.s >&5
14446     fi
14447     rm -f conftest.o conftest.s
14448   fi
14449 fi
14450 { echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14451 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6; }
14452 if test $gcc_cv_as_nsubspa_comdat = yes; then
14453
14454 cat >>confdefs.h <<\_ACEOF
14455 #define HAVE_GAS_NSUBSPA_COMDAT 1
14456 _ACEOF
14457
14458 fi
14459
14460 # .hidden needs to be supported in both the assembler and the linker,
14461 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14462 # This is irritatingly difficult to feature test for; we have to check the
14463 # date string after the version number.  If we've got an in-tree
14464 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14465 # to be safe.
14466 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14467 { echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14468 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6; }
14469 if test "${gcc_cv_as_hidden+set}" = set; then
14470   echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472   gcc_cv_as_hidden=no
14473     if test $in_tree_gas = yes; then
14474     if test $in_tree_gas_is_elf = yes \
14475   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14476   then gcc_cv_as_hidden=yes
14477 fi
14478   elif test x$gcc_cv_as != x; then
14479     echo '      .hidden foobar
14480 foobar:' > conftest.s
14481     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483   (eval $ac_try) 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; }
14487     then
14488         gcc_cv_as_hidden=yes
14489     else
14490       echo "configure: failed program was" >&5
14491       cat conftest.s >&5
14492     fi
14493     rm -f conftest.o conftest.s
14494   fi
14495 fi
14496 { echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14497 echo "${ECHO_T}$gcc_cv_as_hidden" >&6; }
14498
14499
14500 { echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14501 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6; }
14502 if test "${gcc_cv_ld_hidden+set}" = set; then
14503   echo $ECHO_N "(cached) $ECHO_C" >&6
14504 else
14505   if test $in_tree_ld = yes ; then
14506   gcc_cv_ld_hidden=no
14507   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 \
14508      && test $in_tree_ld_is_elf = yes; then
14509      gcc_cv_ld_hidden=yes
14510   fi
14511 else
14512   gcc_cv_ld_hidden=yes
14513   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14514   if echo "$ld_ver" | grep GNU > /dev/null; then
14515     ld_vers=`echo $ld_ver | sed -n \
14516         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14517         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14518         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14519         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
14520         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
14521         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
14522         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   -].*$,\1,p'`
14523     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'`
14524     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14525     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14526     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14527     if test 0"$ld_date" -lt 20020404; then
14528       if test -n "$ld_date"; then
14529         # If there was date string, but was earlier than 2002-04-04, fail
14530         gcc_cv_ld_hidden=no
14531       elif test -z "$ld_vers"; then
14532         # If there was no date string nor ld version number, something is wrong
14533         gcc_cv_ld_hidden=no
14534       else
14535         test -z "$ld_vers_patch" && ld_vers_patch=0
14536         if test "$ld_vers_major" -lt 2; then
14537           gcc_cv_ld_hidden=no
14538         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14539           gcc_cv_ld_hidden="no"
14540         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14541           gcc_cv_ld_hidden=no
14542         fi
14543       fi
14544     fi
14545   else
14546     case "${target}" in
14547       hppa64*-*-hpux* | ia64*-*-hpux*)
14548         gcc_cv_ld_hidden=yes
14549         ;;
14550       *)
14551         gcc_cv_ld_hidden=no
14552         ;;
14553     esac
14554   fi
14555 fi
14556 fi
14557 { echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14558 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6; }
14559 libgcc_visibility=no
14560
14561
14562 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14563   libgcc_visibility=yes
14564
14565 cat >>confdefs.h <<\_ACEOF
14566 #define HAVE_GAS_HIDDEN 1
14567 _ACEOF
14568
14569 fi
14570
14571 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14572 { echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14573 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6; }
14574 if test "${gcc_cv_as_leb128+set}" = set; then
14575   echo $ECHO_N "(cached) $ECHO_C" >&6
14576 else
14577   gcc_cv_as_leb128=no
14578     if test $in_tree_gas = yes; then
14579     if test $in_tree_gas_is_elf = yes \
14580   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14581   then gcc_cv_as_leb128=yes
14582 fi
14583   elif test x$gcc_cv_as != x; then
14584     echo '      .data
14585         .uleb128 L2 - L1
14586 L1:
14587         .uleb128 1280
14588         .sleb128 -1010
14589 L2:' > conftest.s
14590     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592   (eval $ac_try) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); }; }
14596     then
14597         # GAS versions before 2.11 do not support uleb128,
14598   # despite appearing to.
14599   # ??? There exists an elf-specific test that will crash
14600   # the assembler.  Perhaps it's better to figure out whether
14601   # arbitrary sections are supported and try the test.
14602   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14603   if echo "$as_ver" | grep GNU > /dev/null; then
14604     as_vers=`echo $as_ver | sed -n \
14605         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14606         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14607         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14608         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
14609         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
14610         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
14611         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   -].*$,\1,p'`
14612     as_major=`expr "$as_vers" : '\([0-9]*\)'`
14613     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14614     if test $as_major -eq 2 && test $as_minor -lt 11
14615     then :
14616     else gcc_cv_as_leb128=yes
14617     fi
14618   fi
14619     else
14620       echo "configure: failed program was" >&5
14621       cat conftest.s >&5
14622     fi
14623     rm -f conftest.o conftest.s
14624   fi
14625 fi
14626 { echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14627 echo "${ECHO_T}$gcc_cv_as_leb128" >&6; }
14628 if test $gcc_cv_as_leb128 = yes; then
14629
14630 cat >>confdefs.h <<\_ACEOF
14631 #define HAVE_AS_LEB128 1
14632 _ACEOF
14633
14634 fi
14635
14636 # GAS versions up to and including 2.11.0 may mis-optimize
14637 # .eh_frame data.
14638 { echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14639 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6; }
14640 if test "${gcc_cv_as_eh_frame+set}" = set; then
14641   echo $ECHO_N "(cached) $ECHO_C" >&6
14642 else
14643   gcc_cv_as_eh_frame=no
14644     if test $in_tree_gas = yes; then
14645     if test $in_tree_gas_is_elf = yes \
14646   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14647   then gcc_cv_as_eh_frame=yes
14648 fi
14649   elif test x$gcc_cv_as != x; then
14650     echo '      .text
14651 .LFB1:
14652         .4byte  0
14653 .L1:
14654         .4byte  0
14655 .LFE1:
14656         .section        .eh_frame,"aw",@progbits
14657 __FRAME_BEGIN__:
14658         .4byte  .LECIE1-.LSCIE1
14659 .LSCIE1:
14660         .4byte  0x0
14661         .byte   0x1
14662         .ascii "z\0"
14663         .byte   0x1
14664         .byte   0x78
14665         .byte   0x1a
14666         .byte   0x0
14667         .byte   0x4
14668         .4byte  1
14669         .p2align 1
14670 .LECIE1:
14671 .LSFDE1:
14672         .4byte  .LEFDE1-.LASFDE1
14673 .LASFDE1:
14674         .4byte  .LASFDE1-__FRAME_BEGIN__
14675         .4byte  .LFB1
14676         .4byte  .LFE1-.LFB1
14677         .byte   0x4
14678         .4byte  .LFE1-.LFB1
14679         .byte   0x4
14680         .4byte  .L1-.LFB1
14681 .LEFDE1:' > conftest.s
14682     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684   (eval $ac_try) 2>&5
14685   ac_status=$?
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); }; }
14688     then
14689           cat > conftest.lit <<EOF
14690  0000 10000000 00000000 017a0001 781a0004  .........z..x...
14691  0010 01000000 12000000 18000000 00000000  ................
14692  0020 08000000 04080000 0044               .........D      
14693 EOF
14694 cat > conftest.big <<EOF
14695  0000 00000010 00000000 017a0001 781a0004  .........z..x...
14696  0010 00000001 00000012 00000018 00000000  ................
14697  0020 00000008 04000000 0844               .........D      
14698 EOF
14699   # If the assembler didn't choke, and we can objdump,
14700   # and we got the correct data, then succeed.
14701   # The text in the here-document typically retains its unix-style line
14702   # endings, while the output of objdump will use host line endings.
14703   # Therefore, use diff -b for the comparisons.
14704   if test x$gcc_cv_objdump != x \
14705   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14706      | tail -3 > conftest.got \
14707   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14708     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14709   then
14710     gcc_cv_as_eh_frame=yes
14711   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713   (eval $ac_try) 2>&5
14714   ac_status=$?
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); }; }; then
14717     gcc_cv_as_eh_frame=buggy
14718   else
14719     # Uh oh, what do we do now?
14720     gcc_cv_as_eh_frame=no
14721   fi
14722     else
14723       echo "configure: failed program was" >&5
14724       cat conftest.s >&5
14725     fi
14726     rm -f conftest.o conftest.s
14727   fi
14728 fi
14729 { echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14730 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6; }
14731
14732
14733 if test $gcc_cv_as_eh_frame = buggy; then
14734
14735 cat >>confdefs.h <<\_ACEOF
14736 #define USE_AS_TRADITIONAL_FORMAT 1
14737 _ACEOF
14738
14739 fi
14740
14741 { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14742 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
14743 if test "${gcc_cv_as_shf_merge+set}" = set; then
14744   echo $ECHO_N "(cached) $ECHO_C" >&6
14745 else
14746   gcc_cv_as_shf_merge=no
14747     if test $in_tree_gas = yes; then
14748     if test $in_tree_gas_is_elf = yes \
14749   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14750   then gcc_cv_as_shf_merge=yes
14751 fi
14752   elif test x$gcc_cv_as != x; then
14753     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14754     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756   (eval $ac_try) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; }
14760     then
14761         gcc_cv_as_shf_merge=yes
14762     else
14763       echo "configure: failed program was" >&5
14764       cat conftest.s >&5
14765     fi
14766     rm -f conftest.o conftest.s
14767   fi
14768 fi
14769 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14770 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
14771
14772 if test $gcc_cv_as_shf_merge = no; then
14773   { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14774 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
14775 if test "${gcc_cv_as_shf_merge+set}" = set; then
14776   echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778   gcc_cv_as_shf_merge=no
14779     if test $in_tree_gas = yes; then
14780     if test $in_tree_gas_is_elf = yes \
14781   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14782   then gcc_cv_as_shf_merge=yes
14783 fi
14784   elif test x$gcc_cv_as != x; then
14785     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14786     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788   (eval $ac_try) 2>&5
14789   ac_status=$?
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); }; }
14792     then
14793         gcc_cv_as_shf_merge=yes
14794     else
14795       echo "configure: failed program was" >&5
14796       cat conftest.s >&5
14797     fi
14798     rm -f conftest.o conftest.s
14799   fi
14800 fi
14801 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14802 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
14803
14804 fi
14805
14806 cat >>confdefs.h <<_ACEOF
14807 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14808 _ACEOF
14809
14810
14811 { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14812 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
14813 if test "${gcc_cv_as_comdat_group+set}" = set; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   gcc_cv_as_comdat_group=no
14817     if test $in_tree_gas = yes; then
14818     if test $in_tree_gas_is_elf = yes \
14819   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14820   then gcc_cv_as_comdat_group=yes
14821 fi
14822   elif test x$gcc_cv_as != x; then
14823     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14824     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826   (eval $ac_try) 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; }
14830     then
14831         gcc_cv_as_comdat_group=yes
14832     else
14833       echo "configure: failed program was" >&5
14834       cat conftest.s >&5
14835     fi
14836     rm -f conftest.o conftest.s
14837   fi
14838 fi
14839 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14840 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6; }
14841
14842 if test $gcc_cv_as_comdat_group = yes; then
14843   gcc_cv_as_comdat_group_percent=no
14844 else
14845  { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14846 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
14847 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14848   echo $ECHO_N "(cached) $ECHO_C" >&6
14849 else
14850   gcc_cv_as_comdat_group_percent=no
14851     if test $in_tree_gas = yes; then
14852     if test $in_tree_gas_is_elf = yes \
14853   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14854   then gcc_cv_as_comdat_group_percent=yes
14855 fi
14856   elif test x$gcc_cv_as != x; then
14857     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14858     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860   (eval $ac_try) 2>&5
14861   ac_status=$?
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); }; }
14864     then
14865         gcc_cv_as_comdat_group_percent=yes
14866     else
14867       echo "configure: failed program was" >&5
14868       cat conftest.s >&5
14869     fi
14870     rm -f conftest.o conftest.s
14871   fi
14872 fi
14873 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14874 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6; }
14875
14876 fi
14877 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14878   comdat_group=yes
14879   if test 0"$ld_date" -lt 20050308; then
14880     if test -n "$ld_date"; then
14881       # If there was date string, but was earlier than 2005-03-08, fail
14882       comdat_group=no
14883     elif test "$ld_vers_major" -lt 2; then
14884       comdat_group=no
14885     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14886       comdat_group=no
14887     fi
14888   fi
14889 else
14890   # assume linkers other than GNU ld don't support COMDAT group
14891   comdat_group=no
14892 fi
14893 if test $comdat_group = no; then
14894   gcc_cv_as_comdat_group=no
14895   gcc_cv_as_comdat_group_percent=no
14896 fi
14897
14898 cat >>confdefs.h <<_ACEOF
14899 #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`
14900 _ACEOF
14901
14902
14903 # Thread-local storage - the check is heavily parametrized.
14904 conftest_s=
14905 tls_first_major=
14906 tls_first_minor=
14907 tls_as_opt=
14908 case "$target" in
14909   alpha*-*-*)
14910     conftest_s='
14911         .section ".tdata","awT",@progbits
14912 foo:    .long   25
14913         .text
14914         ldq     $27,__tls_get_addr($29)         !literal!1
14915         lda     $16,foo($29)                    !tlsgd!1
14916         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14917         ldq     $27,__tls_get_addr($29)         !literal!2
14918         lda     $16,foo($29)                    !tlsldm!2
14919         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14920         ldq     $1,foo($29)                     !gotdtprel
14921         ldah    $2,foo($29)                     !dtprelhi
14922         lda     $3,foo($2)                      !dtprello
14923         lda     $4,foo($29)                     !dtprel
14924         ldq     $1,foo($29)                     !gottprel
14925         ldah    $2,foo($29)                     !tprelhi
14926         lda     $3,foo($2)                      !tprello
14927         lda     $4,foo($29)                     !tprel'
14928         tls_first_major=2
14929         tls_first_minor=13
14930         tls_as_opt=--fatal-warnings
14931         ;;
14932   frv*-*-*)
14933     conftest_s='
14934         .section ".tdata","awT",@progbits
14935 x:      .long   25
14936         .text
14937         call    #gettlsoff(x)'
14938         tls_first_major=2
14939         tls_first_minor=14
14940         ;;
14941   hppa*-*-linux*)
14942     conftest_s='
14943 t1:     .reg    %r20
14944 t2:     .reg    %r21
14945 gp:     .reg    %r19
14946         .section ".tdata","awT",@progbits
14947 foo:    .long   25
14948         .text
14949         .align  4
14950         addil LT%foo-$tls_gdidx$,gp
14951         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14952         b __tls_get_addr
14953         nop
14954         addil LT%foo-$tls_ldidx$,gp
14955         b __tls_get_addr
14956         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14957         addil LR%foo-$tls_dtpoff$,%ret0
14958         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14959         mfctl %cr27,%t1
14960         addil LT%foo-$tls_ieoff$,gp
14961         ldw RT%foo-$tls_ieoff$(%r1),%t2
14962         add %t1,%t2,%t3
14963         mfctl %cr27,%t1
14964         addil LR%foo-$tls_leoff$,%t1
14965         ldo RR%foo-$tls_leoff$(%r1),%t2'
14966         tls_first_major=2
14967         tls_first_minor=15
14968         tls_as_opt=--fatal-warnings
14969         ;;
14970   arm*-*-*)
14971     conftest_s='
14972         .section ".tdata","awT",%progbits
14973 foo:    .long   25
14974         .text
14975 .word foo(gottpoff)
14976 .word foo(tpoff)
14977 .word foo(tlsgd)
14978 .word foo(tlsldm)
14979 .word foo(tlsldo)'
14980         tls_first_major=2
14981         tls_first_minor=17
14982         ;;
14983   i[34567]86-*-*)
14984     conftest_s='
14985         .section ".tdata","awT",@progbits
14986 foo:    .long   25
14987         .text
14988         movl    %gs:0, %eax
14989         leal    foo@TLSGD(,%ebx,1), %eax
14990         leal    foo@TLSLDM(%ebx), %eax
14991         leal    foo@DTPOFF(%eax), %edx
14992         movl    foo@GOTTPOFF(%ebx), %eax
14993         subl    foo@GOTTPOFF(%ebx), %eax
14994         addl    foo@GOTNTPOFF(%ebx), %eax
14995         movl    foo@INDNTPOFF, %eax
14996         movl    $foo@TPOFF, %eax
14997         subl    $foo@TPOFF, %eax
14998         leal    foo@NTPOFF(%ecx), %eax'
14999         tls_first_major=2
15000         tls_first_minor=14
15001         tls_as_opt=--fatal-warnings
15002         ;;
15003   x86_64-*-*)
15004     conftest_s='
15005         .section ".tdata","awT",@progbits
15006 foo:    .long   25
15007         .text
15008         movq    %fs:0, %rax
15009         leaq    foo@TLSGD(%rip), %rdi
15010         leaq    foo@TLSLD(%rip), %rdi
15011         leaq    foo@DTPOFF(%rax), %rdx
15012         movq    foo@GOTTPOFF(%rip), %rax
15013         movq    $foo@TPOFF, %rax'
15014         tls_first_major=2
15015         tls_first_minor=14
15016         tls_as_opt=--fatal-warnings
15017         ;;
15018   ia64-*-*)
15019     conftest_s='
15020         .section ".tdata","awT",@progbits
15021 foo:    data8   25
15022         .text
15023         addl    r16 = @ltoff(@dtpmod(foo#)), gp
15024         addl    r17 = @ltoff(@dtprel(foo#)), gp
15025         addl    r18 = @ltoff(@tprel(foo#)), gp
15026         addl    r19 = @dtprel(foo#), gp
15027         adds    r21 = @dtprel(foo#), r13
15028         movl    r23 = @dtprel(foo#)
15029         addl    r20 = @tprel(foo#), gp
15030         adds    r22 = @tprel(foo#), r13
15031         movl    r24 = @tprel(foo#)'
15032         tls_first_major=2
15033         tls_first_minor=13
15034         tls_as_opt=--fatal-warnings
15035         ;;
15036   mips*-*-*)
15037     conftest_s='
15038         .section .tdata,"awT",@progbits
15039 x:
15040         .word 2
15041         .text
15042         addiu $4, $28, %tlsgd(x)
15043         addiu $4, $28, %tlsldm(x)
15044         lui $4, %dtprel_hi(x)
15045         addiu $4, $4, %dtprel_lo(x)
15046         lw $4, %gottprel(x)($28)
15047         lui $4, %tprel_hi(x)
15048         addiu $4, $4, %tprel_lo(x)'
15049         tls_first_major=2
15050         tls_first_minor=16
15051         tls_as_opt='-32 --fatal-warnings'
15052         ;;
15053   powerpc-*-*)
15054     conftest_s='
15055         .section ".tdata","awT",@progbits
15056         .align 2
15057 ld0:    .space 4
15058 ld1:    .space 4
15059 x1:     .space 4
15060 x2:     .space 4
15061 x3:     .space 4
15062         .text
15063         addi 3,31,ld0@got@tlsgd
15064         bl __tls_get_addr
15065         addi 3,31,x1@got@tlsld
15066         bl __tls_get_addr
15067         addi 9,3,x1@dtprel
15068         addis 9,3,x2@dtprel@ha
15069         addi 9,9,x2@dtprel@l
15070         lwz 9,x3@got@tprel(31)
15071         add 9,9,x@tls
15072         addi 9,2,x1@tprel
15073         addis 9,2,x2@tprel@ha
15074         addi 9,9,x2@tprel@l'
15075         tls_first_major=2
15076         tls_first_minor=14
15077         tls_as_opt="-a32 --fatal-warnings"
15078         ;;
15079   powerpc64-*-*)
15080     conftest_s='
15081         .section ".tdata","awT",@progbits
15082         .align 3
15083 ld0:    .space 8
15084 ld1:    .space 8
15085 x1:     .space 8
15086 x2:     .space 8
15087 x3:     .space 8
15088         .text
15089         addi 3,2,ld0@got@tlsgd
15090         bl .__tls_get_addr
15091         nop
15092         addi 3,2,ld1@toc
15093         bl .__tls_get_addr
15094         nop
15095         addi 3,2,x1@got@tlsld
15096         bl .__tls_get_addr
15097         nop
15098         addi 9,3,x1@dtprel
15099         bl .__tls_get_addr
15100         nop
15101         addis 9,3,x2@dtprel@ha
15102         addi 9,9,x2@dtprel@l
15103         bl .__tls_get_addr
15104         nop
15105         ld 9,x3@got@dtprel(2)
15106         add 9,9,3
15107         bl .__tls_get_addr
15108         nop'
15109         tls_first_major=2
15110         tls_first_minor=14
15111         tls_as_opt="-a64 --fatal-warnings"
15112         ;;
15113   s390-*-*)
15114     conftest_s='
15115         .section ".tdata","awT",@progbits
15116 foo:    .long   25
15117         .text
15118         .long   foo@TLSGD
15119         .long   foo@TLSLDM
15120         .long   foo@DTPOFF
15121         .long   foo@NTPOFF
15122         .long   foo@GOTNTPOFF
15123         .long   foo@INDNTPOFF
15124         l       %r1,foo@GOTNTPOFF(%r12)
15125         l       %r1,0(%r1):tls_load:foo
15126         bas     %r14,0(%r1,%r13):tls_gdcall:foo
15127         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
15128         tls_first_major=2
15129         tls_first_minor=14
15130         tls_as_opt="-m31 --fatal-warnings"
15131         ;;
15132   s390x-*-*)
15133     conftest_s='
15134         .section ".tdata","awT",@progbits
15135 foo:    .long   25
15136         .text
15137         .quad   foo@TLSGD
15138         .quad   foo@TLSLDM
15139         .quad   foo@DTPOFF
15140         .quad   foo@NTPOFF
15141         .quad   foo@GOTNTPOFF
15142         lg      %r1,foo@GOTNTPOFF(%r12)
15143         larl    %r1,foo@INDNTPOFF
15144         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
15145         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
15146         tls_first_major=2
15147         tls_first_minor=14
15148         tls_as_opt="-m64 -Aesame --fatal-warnings"
15149         ;;
15150   sh-*-* | sh[34]-*-*)
15151     conftest_s='
15152         .section ".tdata","awT",@progbits
15153 foo:    .long   25
15154         .text
15155         .long   foo@TLSGD
15156         .long   foo@TLSLDM
15157         .long   foo@DTPOFF
15158         .long   foo@GOTTPOFF
15159         .long   foo@TPOFF'
15160         tls_first_major=2
15161         tls_first_minor=13
15162         tls_as_opt=--fatal-warnings
15163         ;;
15164   sparc*-*-*)
15165     case "$target" in
15166       sparc*-sun-solaris2.[56789]*)
15167         # TLS was introduced in the Solaris 9 4/04 release but
15168         # we do not enable it by default on Solaris 9 either.
15169         if test "x$enable_tls" = xyes ; then
15170           on_solaris=yes
15171         else
15172           enable_tls=no;
15173         fi
15174         ;;
15175       sparc*-sun-solaris2.*)
15176         on_solaris=yes
15177         ;;
15178       *)
15179         on_solaris=no
15180         ;;
15181     esac
15182     if test x$on_solaris = xyes && test x$gas_flag = xno; then
15183       conftest_s='
15184         .section ".tdata",#alloc,#write,#tls
15185 foo:    .long   25
15186         .text
15187         sethi   %tgd_hi22(foo), %o0
15188         add     %o0, %tgd_lo10(foo), %o1
15189         add     %l7, %o1, %o0, %tgd_add(foo)
15190         call    __tls_get_addr, %tgd_call(foo)
15191         sethi   %tldm_hi22(foo), %l1
15192         add     %l1, %tldm_lo10(foo), %l2
15193         add     %l7, %l2, %o0, %tldm_add(foo)
15194         call    __tls_get_addr, %tldm_call(foo)
15195         sethi   %tldo_hix22(foo), %l3
15196         xor     %l3, %tldo_lox10(foo), %l4
15197         add     %o0, %l4, %l5, %tldo_add(foo)
15198         sethi   %tie_hi22(foo), %o3
15199         add     %o3, %tie_lo10(foo), %o3
15200         ld      [%l7 + %o3], %o2, %tie_ld(foo)
15201         add     %g7, %o2, %o4, %tie_add(foo)
15202         sethi   %tle_hix22(foo), %l1
15203         xor     %l1, %tle_lox10(foo), %o5
15204         ld      [%g7 + %o5], %o1'
15205         tls_first_major=0
15206         tls_first_minor=0
15207     else
15208       conftest_s='
15209         .section ".tdata","awT",@progbits
15210 foo:    .long   25
15211         .text
15212         sethi   %tgd_hi22(foo), %o0
15213         add     %o0, %tgd_lo10(foo), %o1
15214         add     %l7, %o1, %o0, %tgd_add(foo)
15215         call    __tls_get_addr, %tgd_call(foo)
15216         sethi   %tldm_hi22(foo), %l1
15217         add     %l1, %tldm_lo10(foo), %l2
15218         add     %l7, %l2, %o0, %tldm_add(foo)
15219         call    __tls_get_addr, %tldm_call(foo)
15220         sethi   %tldo_hix22(foo), %l3
15221         xor     %l3, %tldo_lox10(foo), %l4
15222         add     %o0, %l4, %l5, %tldo_add(foo)
15223         sethi   %tie_hi22(foo), %o3
15224         add     %o3, %tie_lo10(foo), %o3
15225         ld      [%l7 + %o3], %o2, %tie_ld(foo)
15226         add     %g7, %o2, %o4, %tie_add(foo)
15227         sethi   %tle_hix22(foo), %l1
15228         xor     %l1, %tle_lox10(foo), %o5
15229         ld      [%g7 + %o5], %o1'
15230         tls_first_major=2
15231         tls_first_minor=14
15232         tls_as_opt="-32 --fatal-warnings"
15233       fi
15234         ;;
15235 esac
15236 set_have_as_tls=no
15237 if test "x$enable_tls" = xno ; then
15238   : # TLS explicitly disabled.
15239 elif test "x$enable_tls" = xyes ; then
15240   set_have_as_tls=yes # TLS explicitly enabled.
15241 elif test -z "$tls_first_major"; then
15242   : # If we don't have a check, assume no support.
15243 else
15244   { echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15245 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6; }
15246 if test "${gcc_cv_as_tls+set}" = set; then
15247   echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249   gcc_cv_as_tls=no
15250     if test $in_tree_gas = yes; then
15251     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15252   then gcc_cv_as_tls=yes
15253 fi
15254   elif test x$gcc_cv_as != x; then
15255     echo "$conftest_s" > conftest.s
15256     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258   (eval $ac_try) 2>&5
15259   ac_status=$?
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); }; }
15262     then
15263         gcc_cv_as_tls=yes
15264     else
15265       echo "configure: failed program was" >&5
15266       cat conftest.s >&5
15267     fi
15268     rm -f conftest.o conftest.s
15269   fi
15270 fi
15271 { echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15272 echo "${ECHO_T}$gcc_cv_as_tls" >&6; }
15273 if test $gcc_cv_as_tls = yes; then
15274   set_have_as_tls=yes
15275 fi
15276 fi
15277 if test $set_have_as_tls = yes ; then
15278
15279 cat >>confdefs.h <<\_ACEOF
15280 #define HAVE_AS_TLS 1
15281 _ACEOF
15282
15283 fi
15284
15285 # Target-specific assembler checks.
15286
15287 { echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15288 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6; }
15289 gcc_cv_ld_static_dynamic=no
15290 if test $in_tree_ld = yes ; then
15291   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15292     gcc_cv_ld_static_dynamic=yes
15293   fi
15294 elif test x$gcc_cv_ld != x; then
15295         # Check if linker supports -Bstatic/-Bdynamic option
15296         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
15297           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
15298                 gcc_cv_ld_static_dynamic=yes
15299         fi
15300 fi
15301 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
15302
15303 cat >>confdefs.h <<\_ACEOF
15304 #define HAVE_LD_STATIC_DYNAMIC 1
15305 _ACEOF
15306
15307 fi
15308 { echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15309 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6; }
15310
15311 if test x"$demangler_in_ld" = xyes; then
15312   { echo "$as_me:$LINENO: checking linker --demangle support" >&5
15313 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6; }
15314   gcc_cv_ld_demangle=no
15315   if test $in_tree_ld = yes; then
15316     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 \
15317       gcc_cv_ld_demangle=yes
15318     fi
15319   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
15320     # Check if the GNU linker supports --demangle option
15321     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
15322       gcc_cv_ld_demangle=yes
15323     fi
15324   fi
15325   if test x"$gcc_cv_ld_demangle" = xyes; then
15326
15327 cat >>confdefs.h <<\_ACEOF
15328 #define HAVE_LD_DEMANGLE 1
15329 _ACEOF
15330
15331   fi
15332   { echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15333 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6; }
15334 fi
15335
15336 case "$target" in
15337   # All TARGET_ABI_OSF targets.
15338   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
15339     { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15340 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
15341 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15342   echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15344   gcc_cv_as_alpha_explicit_relocs=no
15345     if test $in_tree_gas = yes; then
15346     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15347   then gcc_cv_as_alpha_explicit_relocs=yes
15348 fi
15349   elif test x$gcc_cv_as != x; then
15350     echo '      .set nomacro
15351         .text
15352         extbl   $3, $2, $3      !lituse_bytoff!1
15353         ldq     $2, a($29)      !literal!1
15354         ldq     $4, b($29)      !literal!2
15355         ldq_u   $3, 0($2)       !lituse_base!1
15356         ldq     $27, f($29)     !literal!5
15357         jsr     $26, ($27), f   !lituse_jsr!5
15358         ldah    $29, 0($26)     !gpdisp!3
15359         lda     $0, c($29)      !gprel
15360         ldah    $1, d($29)      !gprelhigh
15361         lda     $1, d($1)       !gprellow
15362         lda     $29, 0($29)     !gpdisp!3' > conftest.s
15363     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365   (eval $ac_try) 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; }
15369     then
15370         gcc_cv_as_alpha_explicit_relocs=yes
15371     else
15372       echo "configure: failed program was" >&5
15373       cat conftest.s >&5
15374     fi
15375     rm -f conftest.o conftest.s
15376   fi
15377 fi
15378 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15379 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6; }
15380 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15381
15382 cat >>confdefs.h <<\_ACEOF
15383 #define HAVE_AS_EXPLICIT_RELOCS 1
15384 _ACEOF
15385
15386 fi
15387     { echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15388 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6; }
15389 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15390   echo $ECHO_N "(cached) $ECHO_C" >&6
15391 else
15392   gcc_cv_as_alpha_jsrdirect_relocs=no
15393     if test $in_tree_gas = yes; then
15394     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15395   then gcc_cv_as_alpha_jsrdirect_relocs=yes
15396 fi
15397   elif test x$gcc_cv_as != x; then
15398     echo '      .set nomacro
15399         .text
15400         ldq     $27, a($29)     !literal!1
15401         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
15402     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404   (eval $ac_try) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; }
15408     then
15409         gcc_cv_as_alpha_jsrdirect_relocs=yes
15410     else
15411       echo "configure: failed program was" >&5
15412       cat conftest.s >&5
15413     fi
15414     rm -f conftest.o conftest.s
15415   fi
15416 fi
15417 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15418 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
15419 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15420
15421 cat >>confdefs.h <<\_ACEOF
15422 #define HAVE_AS_JSRDIRECT_RELOCS 1
15423 _ACEOF
15424
15425 fi
15426     ;;
15427
15428   cris-*-*)
15429     { echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15430 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6; }
15431 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15432   echo $ECHO_N "(cached) $ECHO_C" >&6
15433 else
15434   gcc_cv_as_cris_no_mul_bug=no
15435     if test $in_tree_gas = yes; then
15436     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15437   then gcc_cv_as_cris_no_mul_bug=yes
15438 fi
15439   elif test x$gcc_cv_as != x; then
15440     echo '.text' > conftest.s
15441     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443   (eval $ac_try) 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); }; }
15447     then
15448         gcc_cv_as_cris_no_mul_bug=yes
15449     else
15450       echo "configure: failed program was" >&5
15451       cat conftest.s >&5
15452     fi
15453     rm -f conftest.o conftest.s
15454   fi
15455 fi
15456 { echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15457 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6; }
15458 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15459
15460 cat >>confdefs.h <<\_ACEOF
15461 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15462 _ACEOF
15463
15464 fi
15465     ;;
15466
15467   sparc*-*-*)
15468     { echo "$as_me:$LINENO: checking assembler for .register" >&5
15469 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6; }
15470 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15471   echo $ECHO_N "(cached) $ECHO_C" >&6
15472 else
15473   gcc_cv_as_sparc_register_op=no
15474   if test x$gcc_cv_as != x; then
15475     echo '.register %g2, #scratch' > conftest.s
15476     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478   (eval $ac_try) 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }; }
15482     then
15483         gcc_cv_as_sparc_register_op=yes
15484     else
15485       echo "configure: failed program was" >&5
15486       cat conftest.s >&5
15487     fi
15488     rm -f conftest.o conftest.s
15489   fi
15490 fi
15491 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15492 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6; }
15493 if test $gcc_cv_as_sparc_register_op = yes; then
15494
15495 cat >>confdefs.h <<\_ACEOF
15496 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15497 _ACEOF
15498
15499 fi
15500
15501     { echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15502 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6; }
15503 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15504   echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506   gcc_cv_as_sparc_relax=no
15507   if test x$gcc_cv_as != x; then
15508     echo '.text' > conftest.s
15509     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511   (eval $ac_try) 2>&5
15512   ac_status=$?
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); }; }
15515     then
15516         gcc_cv_as_sparc_relax=yes
15517     else
15518       echo "configure: failed program was" >&5
15519       cat conftest.s >&5
15520     fi
15521     rm -f conftest.o conftest.s
15522   fi
15523 fi
15524 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15525 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6; }
15526 if test $gcc_cv_as_sparc_relax = yes; then
15527
15528 cat >>confdefs.h <<\_ACEOF
15529 #define HAVE_AS_RELAX_OPTION 1
15530 _ACEOF
15531
15532 fi
15533
15534     { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15535 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6; }
15536 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15537   echo $ECHO_N "(cached) $ECHO_C" >&6
15538 else
15539   gcc_cv_as_sparc_ua_pcrel=no
15540   if test x$gcc_cv_as != x; then
15541     echo '.text
15542 foo:
15543         nop
15544 .data
15545 .align 4
15546 .byte 0
15547 .uaword %r_disp32(foo)' > conftest.s
15548     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550   (eval $ac_try) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); }; }
15554     then
15555         if test x$gcc_cv_ld != x \
15556        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15557          gcc_cv_as_sparc_ua_pcrel=yes
15558        fi
15559        rm -f conftest
15560     else
15561       echo "configure: failed program was" >&5
15562       cat conftest.s >&5
15563     fi
15564     rm -f conftest.o conftest.s
15565   fi
15566 fi
15567 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15568 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6; }
15569 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15570
15571 cat >>confdefs.h <<\_ACEOF
15572 #define HAVE_AS_SPARC_UA_PCREL 1
15573 _ACEOF
15574
15575
15576       { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15577 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6; }
15578 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15579   echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581   gcc_cv_as_sparc_ua_pcrel_hidden=no
15582   if test x$gcc_cv_as != x; then
15583     echo '.data
15584 .align 4
15585 .byte 0x31
15586 .uaword %r_disp32(foo)
15587 .byte 0x32, 0x33, 0x34
15588 .global foo
15589 .hidden foo
15590 foo:
15591 .skip 4' > conftest.s
15592     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594   (eval $ac_try) 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; }
15598     then
15599         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15600          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15601          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15602             | grep ' 31000000 07323334' > /dev/null 2>&1; then
15603             if $gcc_cv_objdump -R conftest 2> /dev/null \
15604                | grep 'DISP32' > /dev/null 2>&1; then
15605                 :
15606             else
15607                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15608             fi
15609          fi
15610          rm -f conftest
15611     else
15612       echo "configure: failed program was" >&5
15613       cat conftest.s >&5
15614     fi
15615     rm -f conftest.o conftest.s
15616   fi
15617 fi
15618 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15619 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
15620 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15621
15622 cat >>confdefs.h <<\_ACEOF
15623 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15624 _ACEOF
15625
15626 fi
15627
15628 fi # unaligned pcrel relocs
15629
15630     { echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15631 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6; }
15632 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15633   echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635   gcc_cv_as_sparc_offsetable_lo10=no
15636   if test x$gcc_cv_as != x; then
15637     echo '.text
15638         or %g1, %lo(ab) + 12, %g1
15639         or %g1, %lo(ab + 12), %g1' > conftest.s
15640     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642   (eval $ac_try) 2>&5
15643   ac_status=$?
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); }; }
15646     then
15647         if test x$gcc_cv_objdump != x \
15648        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15649           | grep ' 82106000 82106000' > /dev/null 2>&1; then
15650          gcc_cv_as_sparc_offsetable_lo10=yes
15651        fi
15652     else
15653       echo "configure: failed program was" >&5
15654       cat conftest.s >&5
15655     fi
15656     rm -f conftest.o conftest.s
15657   fi
15658 fi
15659 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15660 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6; }
15661 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15662
15663 cat >>confdefs.h <<\_ACEOF
15664 #define HAVE_AS_OFFSETABLE_LO10 1
15665 _ACEOF
15666
15667 fi
15668     ;;
15669
15670   i[34567]86-*-* | x86_64-*-*)
15671     case $target_os in
15672       cygwin* | pe | mingw32*)
15673         # Used for DWARF 2 in PE
15674         { echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15675 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6; }
15676 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15677   echo $ECHO_N "(cached) $ECHO_C" >&6
15678 else
15679   gcc_cv_as_ix86_pe_secrel32=no
15680     if test $in_tree_gas = yes; then
15681     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15682   then gcc_cv_as_ix86_pe_secrel32=yes
15683 fi
15684   elif test x$gcc_cv_as != x; then
15685     echo '.text
15686 foo:    nop
15687 .data
15688         .secrel32 foo' > conftest.s
15689     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691   (eval $ac_try) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); }; }
15695     then
15696         if test x$gcc_cv_ld != x \
15697            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15698              gcc_cv_as_ix86_pe_secrel32=yes
15699            fi
15700            rm -f conftest
15701     else
15702       echo "configure: failed program was" >&5
15703       cat conftest.s >&5
15704     fi
15705     rm -f conftest.o conftest.s
15706   fi
15707 fi
15708 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15709 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6; }
15710 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15711
15712 cat >>confdefs.h <<\_ACEOF
15713 #define HAVE_GAS_PE_SECREL32_RELOC 1
15714 _ACEOF
15715
15716 fi
15717         ;;
15718     esac
15719
15720     { echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15721 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6; }
15722 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15723   echo $ECHO_N "(cached) $ECHO_C" >&6
15724 else
15725   gcc_cv_as_ix86_filds_fists=no
15726     if test $in_tree_gas = yes; then
15727     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15728   then gcc_cv_as_ix86_filds_fists=yes
15729 fi
15730   elif test x$gcc_cv_as != x; then
15731     echo 'filds mem; fists mem' > conftest.s
15732     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734   (eval $ac_try) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); }; }
15738     then
15739         gcc_cv_as_ix86_filds_fists=yes
15740     else
15741       echo "configure: failed program was" >&5
15742       cat conftest.s >&5
15743     fi
15744     rm -f conftest.o conftest.s
15745   fi
15746 fi
15747 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15748 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6; }
15749 if test $gcc_cv_as_ix86_filds_fists = yes; then
15750
15751 cat >>confdefs.h <<\_ACEOF
15752 #define HAVE_GAS_FILDS_FISTS 1
15753 _ACEOF
15754
15755 fi
15756
15757     { echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15758 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6; }
15759 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15760   echo $ECHO_N "(cached) $ECHO_C" >&6
15761 else
15762   gcc_cv_as_ix86_cmov_sun_syntax=no
15763   if test x$gcc_cv_as != x; then
15764     echo 'cmovl.l %edx, %eax' > conftest.s
15765     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767   (eval $ac_try) 2>&5
15768   ac_status=$?
15769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770   (exit $ac_status); }; }
15771     then
15772         gcc_cv_as_ix86_cmov_sun_syntax=yes
15773     else
15774       echo "configure: failed program was" >&5
15775       cat conftest.s >&5
15776     fi
15777     rm -f conftest.o conftest.s
15778   fi
15779 fi
15780 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15781 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
15782 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15783
15784 cat >>confdefs.h <<\_ACEOF
15785 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15786 _ACEOF
15787
15788 fi
15789
15790     { echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15791 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6; }
15792 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15793   echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795   gcc_cv_as_ix86_ffreep=no
15796   if test x$gcc_cv_as != x; then
15797     echo 'ffreep %st(1)' > conftest.s
15798     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800   (eval $ac_try) 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); }; }
15804     then
15805         gcc_cv_as_ix86_ffreep=yes
15806     else
15807       echo "configure: failed program was" >&5
15808       cat conftest.s >&5
15809     fi
15810     rm -f conftest.o conftest.s
15811   fi
15812 fi
15813 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15814 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6; }
15815 if test $gcc_cv_as_ix86_ffreep = yes; then
15816
15817 cat >>confdefs.h <<\_ACEOF
15818 #define HAVE_AS_IX86_FFREEP 1
15819 _ACEOF
15820
15821 fi
15822
15823     { echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15824 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6; }
15825 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828   gcc_cv_as_ix86_sahf=no
15829   if test x$gcc_cv_as != x; then
15830     echo 'sahf' > conftest.s
15831     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833   (eval $ac_try) 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; }
15837     then
15838         gcc_cv_as_ix86_sahf=yes
15839     else
15840       echo "configure: failed program was" >&5
15841       cat conftest.s >&5
15842     fi
15843     rm -f conftest.o conftest.s
15844   fi
15845 fi
15846 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15847 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6; }
15848 if test $gcc_cv_as_ix86_sahf = yes; then
15849
15850 cat >>confdefs.h <<\_ACEOF
15851 #define HAVE_AS_IX86_SAHF 1
15852 _ACEOF
15853
15854 fi
15855
15856     { echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15857 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6; }
15858 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15859   echo $ECHO_N "(cached) $ECHO_C" >&6
15860 else
15861   gcc_cv_as_ix86_diff_sect_delta=no
15862   if test x$gcc_cv_as != x; then
15863     echo '.section .rodata
15864 .L1:
15865         .long .L2-.L1
15866         .long .L3-.L1
15867         .text
15868 .L3:    nop
15869 .L2:    nop' > conftest.s
15870     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872   (eval $ac_try) 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); }; }
15876     then
15877         gcc_cv_as_ix86_diff_sect_delta=yes
15878     else
15879       echo "configure: failed program was" >&5
15880       cat conftest.s >&5
15881     fi
15882     rm -f conftest.o conftest.s
15883   fi
15884 fi
15885 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15886 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6; }
15887 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15888
15889 cat >>confdefs.h <<\_ACEOF
15890 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15891 _ACEOF
15892
15893 fi
15894
15895     # This one is used unconditionally by i386.[ch]; it is to be defined
15896     # to 1 if the feature is present, 0 otherwise.
15897     { echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15898 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6; }
15899 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15900   echo $ECHO_N "(cached) $ECHO_C" >&6
15901 else
15902   gcc_cv_as_ix86_gotoff_in_data=no
15903     if test $in_tree_gas = yes; then
15904     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15905   then gcc_cv_as_ix86_gotoff_in_data=yes
15906 fi
15907   elif test x$gcc_cv_as != x; then
15908     echo '      .text
15909 .L0:
15910         nop
15911         .data
15912         .long .L0@GOTOFF' > conftest.s
15913     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915   (eval $ac_try) 2>&5
15916   ac_status=$?
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); }; }
15919     then
15920         gcc_cv_as_ix86_gotoff_in_data=yes
15921     else
15922       echo "configure: failed program was" >&5
15923       cat conftest.s >&5
15924     fi
15925     rm -f conftest.o conftest.s
15926   fi
15927 fi
15928 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15929 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6; }
15930
15931
15932 cat >>confdefs.h <<_ACEOF
15933 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15934 _ACEOF
15935
15936     ;;
15937
15938   ia64*-*-*)
15939     { echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15940 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6; }
15941 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15942   echo $ECHO_N "(cached) $ECHO_C" >&6
15943 else
15944   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15945     if test $in_tree_gas = yes; then
15946     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15947   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15948 fi
15949   elif test x$gcc_cv_as != x; then
15950     echo '      .text
15951         addl r15 = @ltoffx(x#), gp
15952         ;;
15953         ld8.mov r16 = [r15], x#' > conftest.s
15954     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956   (eval $ac_try) 2>&5
15957   ac_status=$?
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); }; }
15960     then
15961         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15962     else
15963       echo "configure: failed program was" >&5
15964       cat conftest.s >&5
15965     fi
15966     rm -f conftest.o conftest.s
15967   fi
15968 fi
15969 { echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15970 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
15971 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15972
15973 cat >>confdefs.h <<\_ACEOF
15974 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15975 _ACEOF
15976
15977 fi
15978
15979     ;;
15980
15981   powerpc*-*-*)
15982     case $target in
15983       *-*-aix*) conftest_s='    .machine "pwr5"
15984         .csect .text[PR]
15985         mfcr 3,128';;
15986       *-*-darwin*)
15987         { echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15988 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6; }
15989 if test "${gcc_cv_as_machine_directive+set}" = set; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992   gcc_cv_as_machine_directive=no
15993   if test x$gcc_cv_as != x; then
15994     echo '      .machine ppc7400' > conftest.s
15995     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997   (eval $ac_try) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; }
16001     then
16002         gcc_cv_as_machine_directive=yes
16003     else
16004       echo "configure: failed program was" >&5
16005       cat conftest.s >&5
16006     fi
16007     rm -f conftest.o conftest.s
16008   fi
16009 fi
16010 { echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
16011 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6; }
16012
16013         if test x$gcc_cv_as_machine_directive != xyes; then
16014           echo "*** This target requires an assembler supporting \".machine\"" >&2
16015           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
16016           test x$build = x$target && exit 1
16017         fi
16018         conftest_s='    .text
16019         mfcr r3,128';;
16020       *) conftest_s='   .machine power4
16021         .text
16022         mfcr 3,128';;
16023     esac
16024
16025     { echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
16026 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6; }
16027 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
16028   echo $ECHO_N "(cached) $ECHO_C" >&6
16029 else
16030   gcc_cv_as_powerpc_mfcrf=no
16031     if test $in_tree_gas = yes; then
16032     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16033   then gcc_cv_as_powerpc_mfcrf=yes
16034 fi
16035   elif test x$gcc_cv_as != x; then
16036     echo "$conftest_s" > conftest.s
16037     if { ac_try='$gcc_cv_as  -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   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042   (exit $ac_status); }; }
16043     then
16044         gcc_cv_as_powerpc_mfcrf=yes
16045     else
16046       echo "configure: failed program was" >&5
16047       cat conftest.s >&5
16048     fi
16049     rm -f conftest.o conftest.s
16050   fi
16051 fi
16052 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
16053 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6; }
16054 if test $gcc_cv_as_powerpc_mfcrf = yes; then
16055
16056 cat >>confdefs.h <<\_ACEOF
16057 #define HAVE_AS_MFCRF 1
16058 _ACEOF
16059
16060 fi
16061
16062     case $target in
16063       *-*-aix*) conftest_s='    .machine "pwr5"
16064         .csect .text[PR]
16065         popcntb 3,3';;
16066       *) conftest_s='   .machine power5
16067         .text
16068         popcntb 3,3';;
16069     esac
16070
16071     { echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
16072 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6; }
16073 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
16074   echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076   gcc_cv_as_powerpc_popcntb=no
16077     if test $in_tree_gas = yes; then
16078     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16079   then gcc_cv_as_powerpc_popcntb=yes
16080 fi
16081   elif test x$gcc_cv_as != x; then
16082     echo "$conftest_s" > conftest.s
16083     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085   (eval $ac_try) 2>&5
16086   ac_status=$?
16087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); }; }
16089     then
16090         gcc_cv_as_powerpc_popcntb=yes
16091     else
16092       echo "configure: failed program was" >&5
16093       cat conftest.s >&5
16094     fi
16095     rm -f conftest.o conftest.s
16096   fi
16097 fi
16098 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
16099 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6; }
16100 if test $gcc_cv_as_powerpc_popcntb = yes; then
16101
16102 cat >>confdefs.h <<\_ACEOF
16103 #define HAVE_AS_POPCNTB 1
16104 _ACEOF
16105
16106 fi
16107
16108     case $target in
16109       *-*-aix*) conftest_s='    .machine "pwr5x"
16110         .csect .text[PR]
16111         frin 1,1';;
16112       *) conftest_s='   .machine power5
16113         .text
16114         frin 1,1';;
16115     esac
16116
16117     { echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16118 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6; }
16119 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16120   echo $ECHO_N "(cached) $ECHO_C" >&6
16121 else
16122   gcc_cv_as_powerpc_fprnd=no
16123     if test $in_tree_gas = yes; then
16124     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16125   then gcc_cv_as_powerpc_fprnd=yes
16126 fi
16127   elif test x$gcc_cv_as != x; then
16128     echo "$conftest_s" > 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   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134   (exit $ac_status); }; }
16135     then
16136         gcc_cv_as_powerpc_fprnd=yes
16137     else
16138       echo "configure: failed program was" >&5
16139       cat conftest.s >&5
16140     fi
16141     rm -f conftest.o conftest.s
16142   fi
16143 fi
16144 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16145 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6; }
16146 if test $gcc_cv_as_powerpc_fprnd = yes; then
16147
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_AS_FPRND 1
16150 _ACEOF
16151
16152 fi
16153
16154     case $target in
16155       *-*-aix*) conftest_s='    .machine "pwr6"
16156         .csect .text[PR]
16157         mffgpr 1,3';;
16158       *) conftest_s='   .machine power6
16159         .text
16160         mffgpr 1,3';;
16161     esac
16162
16163     { echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
16164 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6; }
16165 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
16166   echo $ECHO_N "(cached) $ECHO_C" >&6
16167 else
16168   gcc_cv_as_powerpc_mfpgpr=no
16169     if test $in_tree_gas = yes; then
16170     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16171   then gcc_cv_as_powerpc_mfpgpr=yes
16172 fi
16173   elif test x$gcc_cv_as != x; then
16174     echo "$conftest_s" > conftest.s
16175     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177   (eval $ac_try) 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); }; }
16181     then
16182         gcc_cv_as_powerpc_mfpgpr=yes
16183     else
16184       echo "configure: failed program was" >&5
16185       cat conftest.s >&5
16186     fi
16187     rm -f conftest.o conftest.s
16188   fi
16189 fi
16190 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
16191 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6; }
16192 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
16193
16194 cat >>confdefs.h <<\_ACEOF
16195 #define HAVE_AS_MFPGPR 1
16196 _ACEOF
16197
16198 fi
16199
16200     case $target in
16201       *-*-aix*) conftest_s='    .csect .text[PR]
16202 LCF..0:
16203         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16204       *-*-darwin*)
16205         conftest_s='    .text
16206 LCF0:
16207         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16208       *) conftest_s='   .text
16209 .LCF0:
16210         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16211     esac
16212
16213     { echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16214 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6; }
16215 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16216   echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16218   gcc_cv_as_powerpc_rel16=no
16219     if test $in_tree_gas = yes; then
16220     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16221   then gcc_cv_as_powerpc_rel16=yes
16222 fi
16223   elif test x$gcc_cv_as != x; then
16224     echo "$conftest_s" > conftest.s
16225     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227   (eval $ac_try) 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; }
16231     then
16232         gcc_cv_as_powerpc_rel16=yes
16233     else
16234       echo "configure: failed program was" >&5
16235       cat conftest.s >&5
16236     fi
16237     rm -f conftest.o conftest.s
16238   fi
16239 fi
16240 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16241 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6; }
16242 if test $gcc_cv_as_powerpc_rel16 = yes; then
16243
16244 cat >>confdefs.h <<\_ACEOF
16245 #define HAVE_AS_REL16 1
16246 _ACEOF
16247
16248 fi
16249
16250     case $target in
16251       *-*-aix*) conftest_s='    .machine "pwr6"
16252         .csect .text[PR]
16253         cmpb 3,4,5';;
16254       *) conftest_s='   .machine power6
16255         .text
16256         cmpb 3,4,5';;
16257     esac
16258
16259     { echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
16260 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6; }
16261 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
16262   echo $ECHO_N "(cached) $ECHO_C" >&6
16263 else
16264   gcc_cv_as_powerpc_cmpb=no
16265     if test $in_tree_gas = yes; then
16266     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16267   then gcc_cv_as_powerpc_cmpb=yes
16268 fi
16269   elif test x$gcc_cv_as != x; then
16270     echo "$conftest_s" > conftest.s
16271     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273   (eval $ac_try) 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); }; }
16277     then
16278         gcc_cv_as_powerpc_cmpb=yes
16279     else
16280       echo "configure: failed program was" >&5
16281       cat conftest.s >&5
16282     fi
16283     rm -f conftest.o conftest.s
16284   fi
16285 fi
16286 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
16287 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6; }
16288 if test $gcc_cv_as_powerpc_cmpb = yes; then
16289
16290 cat >>confdefs.h <<\_ACEOF
16291 #define HAVE_AS_CMPB 1
16292 _ACEOF
16293
16294 fi
16295
16296     case $target in
16297       *-*-aix*) conftest_s='    .machine "pwr6"
16298         .csect .text[PR]
16299         dadd 1,2,3';;
16300       *) conftest_s='   .machine power6
16301         .text
16302         dadd 1,2,3';;
16303     esac
16304
16305     { echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
16306 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6; }
16307 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
16308   echo $ECHO_N "(cached) $ECHO_C" >&6
16309 else
16310   gcc_cv_as_powerpc_dfp=no
16311     if test $in_tree_gas = yes; then
16312     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16313   then gcc_cv_as_powerpc_dfp=yes
16314 fi
16315   elif test x$gcc_cv_as != x; then
16316     echo "$conftest_s" > conftest.s
16317     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319   (eval $ac_try) 2>&5
16320   ac_status=$?
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); }; }
16323     then
16324         gcc_cv_as_powerpc_dfp=yes
16325     else
16326       echo "configure: failed program was" >&5
16327       cat conftest.s >&5
16328     fi
16329     rm -f conftest.o conftest.s
16330   fi
16331 fi
16332 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
16333 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6; }
16334 if test $gcc_cv_as_powerpc_dfp = yes; then
16335
16336 cat >>confdefs.h <<\_ACEOF
16337 #define HAVE_AS_DFP 1
16338 _ACEOF
16339
16340 fi
16341
16342     { echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16343 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6; }
16344 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
16345   echo $ECHO_N "(cached) $ECHO_C" >&6
16346 else
16347   gcc_cv_as_powerpc_gnu_attribute=no
16348     if test $in_tree_gas = yes; then
16349     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16350   then gcc_cv_as_powerpc_gnu_attribute=yes
16351 fi
16352   elif test x$gcc_cv_as != x; then
16353     echo '.gnu_attribute 4,1' > conftest.s
16354     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356   (eval $ac_try) 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; }
16360     then
16361         gcc_cv_as_powerpc_gnu_attribute=yes
16362     else
16363       echo "configure: failed program was" >&5
16364       cat conftest.s >&5
16365     fi
16366     rm -f conftest.o conftest.s
16367   fi
16368 fi
16369 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
16370 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6; }
16371 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
16372
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_AS_GNU_ATTRIBUTE 1
16375 _ACEOF
16376
16377 fi
16378     ;;
16379
16380   mips*-*-*)
16381     { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16382 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
16383 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16384   echo $ECHO_N "(cached) $ECHO_C" >&6
16385 else
16386   gcc_cv_as_mips_explicit_relocs=no
16387     if test $in_tree_gas = yes; then
16388     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16389   then gcc_cv_as_mips_explicit_relocs=yes
16390 fi
16391   elif test x$gcc_cv_as != x; then
16392     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
16393     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395   (eval $ac_try) 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); }; }
16399     then
16400         gcc_cv_as_mips_explicit_relocs=yes
16401     else
16402       echo "configure: failed program was" >&5
16403       cat conftest.s >&5
16404     fi
16405     rm -f conftest.o conftest.s
16406   fi
16407 fi
16408 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16409 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6; }
16410 if test $gcc_cv_as_mips_explicit_relocs = yes; then
16411   if test x$target_cpu_default = x
16412        then target_cpu_default=MASK_EXPLICIT_RELOCS
16413        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16414        fi
16415 fi
16416     { echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
16417 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6; }
16418 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
16419   echo $ECHO_N "(cached) $ECHO_C" >&6
16420 else
16421   gcc_cv_as_mips_no_shared=no
16422     if test $in_tree_gas = yes; then
16423     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16424   then gcc_cv_as_mips_no_shared=yes
16425 fi
16426   elif test x$gcc_cv_as != x; then
16427     echo 'nop' > conftest.s
16428     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
16429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430   (eval $ac_try) 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; }
16434     then
16435         gcc_cv_as_mips_no_shared=yes
16436     else
16437       echo "configure: failed program was" >&5
16438       cat conftest.s >&5
16439     fi
16440     rm -f conftest.o conftest.s
16441   fi
16442 fi
16443 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
16444 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6; }
16445 if test $gcc_cv_as_mips_no_shared = yes; then
16446
16447 cat >>confdefs.h <<\_ACEOF
16448 #define HAVE_AS_NO_SHARED 1
16449 _ACEOF
16450
16451 fi
16452
16453     { echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16454 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6; }
16455 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
16456   echo $ECHO_N "(cached) $ECHO_C" >&6
16457 else
16458   gcc_cv_as_mips_gnu_attribute=no
16459     if test $in_tree_gas = yes; then
16460     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16461   then gcc_cv_as_mips_gnu_attribute=yes
16462 fi
16463   elif test x$gcc_cv_as != x; then
16464     echo '.gnu_attribute 4,1' > conftest.s
16465     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467   (eval $ac_try) 2>&5
16468   ac_status=$?
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); }; }
16471     then
16472         gcc_cv_as_mips_gnu_attribute=yes
16473     else
16474       echo "configure: failed program was" >&5
16475       cat conftest.s >&5
16476     fi
16477     rm -f conftest.o conftest.s
16478   fi
16479 fi
16480 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
16481 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6; }
16482 if test $gcc_cv_as_mips_gnu_attribute = yes; then
16483
16484 cat >>confdefs.h <<\_ACEOF
16485 #define HAVE_AS_GNU_ATTRIBUTE 1
16486 _ACEOF
16487
16488 fi
16489
16490     { echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16491 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6; }
16492 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   gcc_cv_as_mips_dtprelword=no
16496     if test $in_tree_gas = yes; then
16497     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16498   then gcc_cv_as_mips_dtprelword=yes
16499 fi
16500   elif test x$gcc_cv_as != x; then
16501     echo '.section .tdata,"awT",@progbits
16502 x:
16503         .word 2
16504         .text
16505         .dtprelword x+0x8000' > conftest.s
16506     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508   (eval $ac_try) 2>&5
16509   ac_status=$?
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); }; }
16512     then
16513         gcc_cv_as_mips_dtprelword=yes
16514     else
16515       echo "configure: failed program was" >&5
16516       cat conftest.s >&5
16517     fi
16518     rm -f conftest.o conftest.s
16519   fi
16520 fi
16521 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16522 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6; }
16523 if test $gcc_cv_as_mips_dtprelword = yes; then
16524
16525 cat >>confdefs.h <<\_ACEOF
16526 #define HAVE_AS_DTPRELWORD 1
16527 _ACEOF
16528
16529 fi
16530     ;;
16531 esac
16532
16533 # Mips and HP-UX need the GNU assembler.
16534 # Linux on IA64 might be able to use the Intel assembler.
16535
16536 case "$target" in
16537   mips*-*-* | *-*-hpux* )
16538     if test x$gas_flag = xyes \
16539        || test x"$host" != x"$build" \
16540        || test ! -x "$gcc_cv_as" \
16541        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16542       :
16543     else
16544       echo "*** This configuration requires the GNU assembler" >&2
16545       exit 1
16546     fi
16547     ;;
16548 esac
16549
16550 # ??? Not all targets support dwarf2 debug_line, even within a version
16551 # of gas.  Moreover, we need to emit a valid instruction to trigger any
16552 # info to the output file.  So, as supported targets are added to gas 2.11,
16553 # add some instruction here to (also) show we expect this might work.
16554 # ??? Once 2.11 is released, probably need to add first known working
16555 # version to the per-target configury.
16556 case "$target" in
16557   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16558   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16559   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16560     insn="nop"
16561     ;;
16562   ia64*-*-* | s390*-*-*)
16563     insn="nop 0"
16564     ;;
16565   mmix-*-*)
16566     insn="swym 0"
16567     ;;
16568 esac
16569 if test x"$insn" != x; then
16570  conftest_s="\
16571         .file 1 \"conftest.s\"
16572         .loc 1 3 0
16573         $insn"
16574  { echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16575 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6; }
16576 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16577   echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579   gcc_cv_as_dwarf2_debug_line=no
16580     if test $in_tree_gas = yes; then
16581     if test $in_tree_gas_is_elf = yes \
16582   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16583   then gcc_cv_as_dwarf2_debug_line=yes
16584 fi
16585   elif test x$gcc_cv_as != x; then
16586     echo "$conftest_s" > conftest.s
16587     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589   (eval $ac_try) 2>&5
16590   ac_status=$?
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); }; }
16593     then
16594         if test x$gcc_cv_objdump != x \
16595    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16596       | grep debug_line > /dev/null 2>&1; then
16597      gcc_cv_as_dwarf2_debug_line=yes
16598    fi
16599     else
16600       echo "configure: failed program was" >&5
16601       cat conftest.s >&5
16602     fi
16603     rm -f conftest.o conftest.s
16604   fi
16605 fi
16606 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16607 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6; }
16608
16609
16610 # The .debug_line file table must be in the exact order that
16611 # we specified the files, since these indices are also used
16612 # by DW_AT_decl_file.  Approximate this test by testing if
16613 # the assembler bitches if the same index is assigned twice.
16614  { echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16615 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6; }
16616 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16617   echo $ECHO_N "(cached) $ECHO_C" >&6
16618 else
16619   gcc_cv_as_dwarf2_file_buggy=no
16620   if test x$gcc_cv_as != x; then
16621     echo '      .file 1 "foo.s"
16622         .file 1 "bar.s"' > conftest.s
16623     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625   (eval $ac_try) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); }; }
16629     then
16630         gcc_cv_as_dwarf2_file_buggy=yes
16631     else
16632       echo "configure: failed program was" >&5
16633       cat conftest.s >&5
16634     fi
16635     rm -f conftest.o conftest.s
16636   fi
16637 fi
16638 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16639 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6; }
16640
16641
16642  if test $gcc_cv_as_dwarf2_debug_line = yes \
16643  && test $gcc_cv_as_dwarf2_file_buggy = no; then
16644
16645 cat >>confdefs.h <<\_ACEOF
16646 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16647 _ACEOF
16648
16649  fi
16650
16651  { echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16652 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6; }
16653 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16654   echo $ECHO_N "(cached) $ECHO_C" >&6
16655 else
16656   gcc_cv_as_gdwarf2_flag=no
16657     if test $in_tree_gas = yes; then
16658     if test $in_tree_gas_is_elf = yes \
16659   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16660   then gcc_cv_as_gdwarf2_flag=yes
16661 fi
16662   elif test x$gcc_cv_as != x; then
16663     echo "$insn" > conftest.s
16664     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666   (eval $ac_try) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; }
16670     then
16671         gcc_cv_as_gdwarf2_flag=yes
16672     else
16673       echo "configure: failed program was" >&5
16674       cat conftest.s >&5
16675     fi
16676     rm -f conftest.o conftest.s
16677   fi
16678 fi
16679 { echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16680 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6; }
16681 if test $gcc_cv_as_gdwarf2_flag = yes; then
16682
16683 cat >>confdefs.h <<\_ACEOF
16684 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16685 _ACEOF
16686
16687 fi
16688
16689  { echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16690 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6; }
16691 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16692   echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694   gcc_cv_as_gstabs_flag=no
16695     if test $in_tree_gas = yes; then
16696     if test $in_tree_gas_is_elf = yes \
16697   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16698   then gcc_cv_as_gstabs_flag=yes
16699 fi
16700   elif test x$gcc_cv_as != x; then
16701     echo "$insn" > conftest.s
16702     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704   (eval $ac_try) 2>&5
16705   ac_status=$?
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); }; }
16708     then
16709         # The native Solaris 9/Intel assembler doesn't understand --gstabs
16710    # and warns about it, but still exits successfully.  So check for
16711    # this.
16712    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714   (eval $ac_try) 2>&5
16715   ac_status=$?
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); }; }
16718    then :
16719    else gcc_cv_as_gstabs_flag=yes
16720    fi
16721     else
16722       echo "configure: failed program was" >&5
16723       cat conftest.s >&5
16724     fi
16725     rm -f conftest.o conftest.s
16726   fi
16727 fi
16728 { echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16729 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6; }
16730 if test $gcc_cv_as_gstabs_flag = yes; then
16731
16732 cat >>confdefs.h <<\_ACEOF
16733 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16734 _ACEOF
16735
16736 fi
16737
16738  { echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16739 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6; }
16740 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16741   echo $ECHO_N "(cached) $ECHO_C" >&6
16742 else
16743   gcc_cv_as_debug_prefix_map_flag=no
16744     if test $in_tree_gas = yes; then
16745     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16746   then gcc_cv_as_debug_prefix_map_flag=yes
16747 fi
16748   elif test x$gcc_cv_as != x; then
16749     echo "$insn" > conftest.s
16750     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752   (eval $ac_try) 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); }; }
16756     then
16757         gcc_cv_as_debug_prefix_map_flag=yes
16758     else
16759       echo "configure: failed program was" >&5
16760       cat conftest.s >&5
16761     fi
16762     rm -f conftest.o conftest.s
16763   fi
16764 fi
16765 { echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16766 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6; }
16767 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16768
16769 cat >>confdefs.h <<\_ACEOF
16770 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16771 _ACEOF
16772
16773 fi
16774 fi
16775
16776 { echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16777 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6; }
16778 if test "${gcc_cv_as_line_zero+set}" = set; then
16779   echo $ECHO_N "(cached) $ECHO_C" >&6
16780 else
16781   gcc_cv_as_line_zero=no
16782   if test $in_tree_gas = yes; then
16783     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16784   then gcc_cv_as_line_zero=yes
16785 fi
16786   elif test "x$gcc_cv_as" != x; then
16787     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16788     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790   (eval $ac_try) 2>&5
16791   ac_status=$?
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); }; } &&
16794        test "x`cat conftest.out`" = x
16795     then
16796       gcc_cv_as_line_zero=yes
16797     else
16798       echo "configure: failed program was" >&5
16799       cat conftest.s >&5
16800       echo "configure: error output was" >&5
16801       cat conftest.out >&5
16802     fi
16803     rm -f conftest.o conftest.s conftest.out
16804   fi
16805 fi
16806 { echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16807 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6; }
16808 if test "x$gcc_cv_as_line_zero" = xyes; then
16809
16810 cat >>confdefs.h <<\_ACEOF
16811 #define HAVE_AS_LINE_ZERO 1
16812 _ACEOF
16813
16814 fi
16815
16816 { echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16817 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6; }
16818 gcc_cv_ld_ro_rw_mix=unknown
16819 if test $in_tree_ld = yes ; then
16820   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 \
16821      && test $in_tree_ld_is_elf = yes; then
16822     gcc_cv_ld_ro_rw_mix=read-write
16823   fi
16824 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16825   echo '.section myfoosect, "a"' > conftest1.s
16826   echo '.section myfoosect, "aw"' > conftest2.s
16827   echo '.byte 1' >> conftest2.s
16828   echo '.section myfoosect, "a"' > conftest3.s
16829   echo '.byte 0' >> conftest3.s
16830   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16831      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16832      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16833      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16834         conftest2.o conftest3.o > /dev/null 2>&1; then
16835     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16836                          | sed -e '/myfoosect/!d' -e N`
16837     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16838       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16839         gcc_cv_ld_ro_rw_mix=read-only
16840       else
16841         gcc_cv_ld_ro_rw_mix=read-write
16842       fi
16843     fi
16844   fi
16845   rm -f conftest.* conftest[123].*
16846 fi
16847 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16848
16849 cat >>confdefs.h <<\_ACEOF
16850 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16851 _ACEOF
16852
16853 fi
16854 { echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16855 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6; }
16856
16857 { echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16858 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6; }
16859 gcc_cv_ld_eh_frame_hdr=no
16860 if test $in_tree_ld = yes ; then
16861   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 \
16862      && test $in_tree_ld_is_elf = yes; then
16863     gcc_cv_ld_eh_frame_hdr=yes
16864   fi
16865 elif test x$gcc_cv_ld != x; then
16866         # Check if linker supports --eh-frame-hdr option
16867         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16868                 gcc_cv_ld_eh_frame_hdr=yes
16869         fi
16870 fi
16871
16872 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16873
16874 cat >>confdefs.h <<\_ACEOF
16875 #define HAVE_LD_EH_FRAME_HDR 1
16876 _ACEOF
16877
16878 fi
16879 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16880 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6; }
16881
16882 { echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16883 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6; }
16884 gcc_cv_ld_pie=no
16885 if test $in_tree_ld = yes ; then
16886   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 \
16887      && test $in_tree_ld_is_elf = yes; then
16888     gcc_cv_ld_pie=yes
16889   fi
16890 elif test x$gcc_cv_ld != x; then
16891         # Check if linker supports -pie option
16892         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16893                 gcc_cv_ld_pie=yes
16894         fi
16895 fi
16896 if test x"$gcc_cv_ld_pie" = xyes; then
16897
16898 cat >>confdefs.h <<\_ACEOF
16899 #define HAVE_LD_PIE 1
16900 _ACEOF
16901
16902 fi
16903 { echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16904 echo "${ECHO_T}$gcc_cv_ld_pie" >&6; }
16905
16906 { echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16907 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6; }
16908 gcc_cv_ld_eh_gc_sections=no
16909 if test $in_tree_ld = yes ; then
16910   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16911      && test $in_tree_ld_is_elf = yes; then
16912     gcc_cv_ld_eh_gc_sections=yes
16913   fi
16914 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16915   cat > conftest.s <<EOF
16916         .section        .text
16917 .globl _start
16918         .type _start, @function
16919 _start:
16920         .long foo
16921         .size _start, .-_start
16922         .section        .text.foo,"ax",@progbits
16923         .type foo, @function
16924 foo:
16925         .long 0
16926         .size foo, .-foo
16927         .section        .gcc_except_table.foo,"a",@progbits
16928 .L0:
16929         .long 0
16930         .section        .eh_frame,"a",@progbits
16931         .long .L0
16932 EOF
16933   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16934     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16935          | grep "gc-sections option ignored" > /dev/null; then
16936       gcc_cv_ld_eh_gc_sections=no
16937     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16938       gcc_cv_ld_eh_gc_sections=yes
16939       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16940       if test x$gcc_cv_as_comdat_group != xyes; then
16941         gcc_cv_ld_eh_gc_sections=no
16942         cat > conftest.s <<EOF
16943         .section        .text
16944 .globl _start
16945         .type _start, @function
16946 _start:
16947         .long foo
16948         .size _start, .-_start
16949         .section        .gnu.linkonce.t.foo,"ax",@progbits
16950         .type foo, @function
16951 foo:
16952         .long 0
16953         .size foo, .-foo
16954         .section        .gcc_except_table.foo,"a",@progbits
16955 .L0:
16956         .long 0
16957         .section        .eh_frame,"a",@progbits
16958         .long .L0
16959 EOF
16960         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16961           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16962                | grep "gc-sections option ignored" > /dev/null; then
16963             gcc_cv_ld_eh_gc_sections=no
16964           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16965             gcc_cv_ld_eh_gc_sections=yes
16966           fi
16967         fi
16968       fi
16969     fi
16970   fi
16971   rm -f conftest.s conftest.o conftest
16972 fi
16973 case "$target" in
16974   hppa*-*-linux*)
16975     # ??? This apparently exposes a binutils bug with PC-relative relocations.
16976     gcc_cv_ld_eh_gc_sections=no
16977     ;;
16978 esac
16979 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16980
16981 cat >>confdefs.h <<\_ACEOF
16982 #define HAVE_LD_EH_GC_SECTIONS 1
16983 _ACEOF
16984
16985 fi
16986 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16987 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6; }
16988
16989 # --------
16990 # UNSORTED
16991 # --------
16992
16993 { echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16994 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6; }
16995 if test "${gcc_cv_ld_as_needed+set}" = set; then
16996   echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998   gcc_cv_ld_as_needed=no
16999 if test $in_tree_ld = yes ; then
17000   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 \
17001      && test $in_tree_ld_is_elf = yes; then
17002     gcc_cv_ld_as_needed=yes
17003   fi
17004 elif test x$gcc_cv_ld != x; then
17005         # Check if linker supports --as-needed and --no-as-needed options
17006         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
17007                 gcc_cv_ld_as_needed=yes
17008         fi
17009 fi
17010
17011 fi
17012 { echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
17013 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6; }
17014 if test x"$gcc_cv_ld_as_needed" = xyes; then
17015
17016 cat >>confdefs.h <<\_ACEOF
17017 #define HAVE_LD_AS_NEEDED 1
17018 _ACEOF
17019
17020 fi
17021
17022 case "$target:$tm_file" in
17023   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
17024     { echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
17025 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6; }
17026 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
17027   echo $ECHO_N "(cached) $ECHO_C" >&6
17028 else
17029   gcc_cv_ld_no_dot_syms=no
17030     if test $in_tree_ld = yes ; then
17031       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
17032         gcc_cv_ld_no_dot_syms=yes
17033       fi
17034     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
17035       cat > conftest1.s <<EOF
17036         .text
17037         bl .foo
17038 EOF
17039       cat > conftest2.s <<EOF
17040         .section ".opd","aw"
17041         .align 3
17042         .globl foo
17043         .type foo,@function
17044 foo:
17045         .quad .LEfoo,.TOC.@tocbase,0
17046         .text
17047 .LEfoo:
17048         blr
17049         .size foo,.-.LEfoo
17050 EOF
17051       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
17052          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
17053          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
17054         gcc_cv_ld_no_dot_syms=yes
17055       fi
17056       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
17057     fi
17058
17059 fi
17060 { echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
17061 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6; }
17062     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
17063
17064 cat >>confdefs.h <<\_ACEOF
17065 #define HAVE_LD_NO_DOT_SYMS 1
17066 _ACEOF
17067
17068     fi
17069     ;;
17070 esac
17071
17072 { echo "$as_me:$LINENO: checking linker --sysroot support" >&5
17073 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6; }
17074 if test "${gcc_cv_ld_sysroot+set}" = set; then
17075   echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17077   gcc_cv_ld_sysroot=no
17078   if test $in_tree_ld = yes ; then
17079       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
17080         gcc_cv_ld_sysroot=yes
17081       fi
17082   elif test x$gcc_cv_ld != x; then
17083     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
17084       gcc_cv_ld_sysroot=yes
17085     fi
17086   fi
17087 fi
17088 { echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
17089 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6; }
17090 if test x"$gcc_cv_ld_sysroot" = xyes; then
17091
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_LD_SYSROOT 1
17094 _ACEOF
17095
17096 fi
17097
17098 if test x$with_sysroot = x && test x$host = x$target \
17099    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
17100    && test "$prefix" != "NONE"; then
17101
17102 cat >>confdefs.h <<_ACEOF
17103 #define PREFIX_INCLUDE_DIR "$prefix/include"
17104 _ACEOF
17105
17106 fi
17107
17108 # Test for stack protector support in target C library.
17109 { echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
17110 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6; }
17111 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
17112   echo $ECHO_N "(cached) $ECHO_C" >&6
17113 else
17114   gcc_cv_libc_provides_ssp=no
17115     case "$target" in
17116        *-*-linux*)
17117       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17118         if test "x$with_sysroot" = x; then
17119           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17120         elif test "x$with_build_sysroot" != "x"; then
17121           glibc_header_dir="${with_build_sysroot}/usr/include"
17122         elif test "x$with_sysroot" = xyes; then
17123           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17124         else
17125           glibc_header_dir="${with_sysroot}/usr/include"
17126         fi
17127       else
17128         glibc_header_dir=/usr/include
17129       fi
17130       # glibc 2.4 and later provides __stack_chk_fail and
17131       # either __stack_chk_guard, or TLS access to stack guard canary.
17132       if test -f $glibc_header_dir/features.h \
17133          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
17134             $glibc_header_dir/features.h > /dev/null; then
17135         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
17136            $glibc_header_dir/features.h > /dev/null; then
17137           gcc_cv_libc_provides_ssp=yes
17138         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
17139              $glibc_header_dir/features.h > /dev/null \
17140              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
17141              $glibc_header_dir/features.h > /dev/null; then
17142           gcc_cv_libc_provides_ssp=yes
17143         fi
17144         fi
17145         ;;
17146        *-*-darwin*)
17147          { echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
17148 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6; }
17149 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
17150   echo $ECHO_N "(cached) $ECHO_C" >&6
17151 else
17152   cat >conftest.$ac_ext <<_ACEOF
17153 /* confdefs.h.  */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h.  */
17158 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
17159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17160 #define __stack_chk_fail innocuous___stack_chk_fail
17161
17162 /* System header to define __stub macros and hopefully few prototypes,
17163     which can conflict with char __stack_chk_fail (); below.
17164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17165     <limits.h> exists even on freestanding compilers.  */
17166
17167 #ifdef __STDC__
17168 # include <limits.h>
17169 #else
17170 # include <assert.h>
17171 #endif
17172
17173 #undef __stack_chk_fail
17174
17175 /* Override any GCC internal prototype to avoid an error.
17176    Use char because int might match the return type of a GCC
17177    builtin and then its argument prototype would still apply.  */
17178 #ifdef __cplusplus
17179 extern "C"
17180 #endif
17181 char __stack_chk_fail ();
17182 /* The GNU C library defines this for functions which it implements
17183     to always fail with ENOSYS.  Some functions are actually named
17184     something starting with __ and the normal name is an alias.  */
17185 #if defined __stub___stack_chk_fail || defined __stub_____stack_chk_fail
17186 choke me
17187 #endif
17188
17189 int
17190 main ()
17191 {
17192 return __stack_chk_fail ();
17193   ;
17194   return 0;
17195 }
17196 _ACEOF
17197 rm -f conftest.$ac_objext conftest$ac_exeext
17198 if { (ac_try="$ac_link"
17199 case "(($ac_try" in
17200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201   *) ac_try_echo=$ac_try;;
17202 esac
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204   (eval "$ac_link") 2>conftest.er1
17205   ac_status=$?
17206   grep -v '^ *+' conftest.er1 >conftest.err
17207   rm -f conftest.er1
17208   cat conftest.err >&5
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); } && {
17211          test -z "$ac_c_werror_flag" ||
17212          test ! -s conftest.err
17213        } && test -s conftest$ac_exeext &&
17214        $as_test_x conftest$ac_exeext; then
17215   ac_cv_func___stack_chk_fail=yes
17216 else
17217   echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17219
17220         ac_cv_func___stack_chk_fail=no
17221 fi
17222
17223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17224       conftest$ac_exeext conftest.$ac_ext
17225 fi
17226 { echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
17227 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6; }
17228 if test $ac_cv_func___stack_chk_fail = yes; then
17229   gcc_cv_libc_provides_ssp=yes
17230 else
17231   echo "no __stack_chk_fail on this target"
17232 fi
17233
17234         ;;
17235   *) gcc_cv_libc_provides_ssp=no ;;
17236     esac
17237 fi
17238 { echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
17239 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6; }
17240
17241 if test x$gcc_cv_libc_provides_ssp = xyes; then
17242
17243 cat >>confdefs.h <<\_ACEOF
17244 #define TARGET_LIBC_PROVIDES_SSP 1
17245 _ACEOF
17246
17247 fi
17248
17249 # Check if TFmode long double should be used by default or not.
17250 # Some glibc targets used DFmode long double, but with glibc 2.4
17251 # and later they can use TFmode.
17252 case "$target" in
17253   powerpc*-*-linux* | \
17254   powerpc*-*-gnu* | \
17255   sparc*-*-linux* | \
17256   s390*-*-linux* | \
17257   alpha*-*-linux*)
17258
17259 # Check whether --with-long-double-128 was given.
17260 if test "${with_long_double_128+set}" = set; then
17261   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
17262 else
17263   gcc_cv_target_ldbl128=no
17264       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17265         if test "x$with_sysroot" = x; then
17266           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17267         elif test "x$with_build_sysroot" != "x"; then
17268           glibc_header_dir="${with_build_sysroot}/usr/include"
17269         elif test "x$with_sysroot" = xyes; then
17270           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17271         else
17272           glibc_header_dir="${with_sysroot}/usr/include"
17273         fi
17274       else
17275         glibc_header_dir=/usr/include
17276       fi
17277       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
17278         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
17279       && gcc_cv_target_ldbl128=yes
17280
17281 fi
17282
17283     ;;
17284 esac
17285 if test x$gcc_cv_target_ldbl128 = xyes; then
17286
17287 cat >>confdefs.h <<\_ACEOF
17288 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
17289 _ACEOF
17290
17291 fi
17292
17293 # Find out what GC implementation we want, or may, use.
17294
17295 # Check whether --with-gc was given.
17296 if test "${with_gc+set}" = set; then
17297   withval=$with_gc; case "$withval" in
17298   page)
17299     GGC=ggc-$withval
17300     ;;
17301   zone)
17302     GGC=ggc-$withval
17303
17304 cat >>confdefs.h <<\_ACEOF
17305 #define GGC_ZONE 1
17306 _ACEOF
17307
17308     ;;
17309   *)
17310     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
17311 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
17312    { (exit 1); exit 1; }; }
17313     ;;
17314 esac
17315 else
17316   GGC=ggc-page
17317 fi
17318
17319
17320 echo "Using $GGC for garbage collection."
17321
17322 # Use the system's zlib library.
17323 zlibdir=-L../zlib
17324 zlibinc="-I\$(srcdir)/../zlib"
17325
17326 # Check whether --with-system-zlib was given.
17327 if test "${with_system_zlib+set}" = set; then
17328   withval=$with_system_zlib; zlibdir=
17329 zlibinc=
17330
17331 fi
17332
17333
17334
17335
17336
17337 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
17338 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
17339     # Check whether --enable-maintainer-mode was given.
17340 if test "${enable_maintainer_mode+set}" = set; then
17341   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
17342 else
17343   maintainer_mode=no
17344 fi
17345
17346
17347 { echo "$as_me:$LINENO: result: $maintainer_mode" >&5
17348 echo "${ECHO_T}$maintainer_mode" >&6; }
17349
17350 if test "$maintainer_mode" = "yes"; then
17351   MAINT=''
17352 else
17353   MAINT='#'
17354 fi
17355
17356 # --------------
17357 # Language hooks
17358 # --------------
17359
17360 # Make empty files to contain the specs and options for each language.
17361 # Then add #include lines to for a compiler that has specs and/or options.
17362
17363 subdirs=
17364 lang_opt_files=
17365 lang_specs_files=
17366 lang_tree_files=
17367 # These (without "all_") are set in each config-lang.in.
17368 # `language' must be a single word so is spelled singularly.
17369 all_languages=
17370 all_compilers=
17371 all_outputs='Makefile gccbug libada-mk'
17372 # List of language makefile fragments.
17373 all_lang_makefrags=
17374 # List of language subdirectory makefiles.  Deprecated.
17375 all_lang_makefiles=
17376 # Additional files for gengtype
17377 all_gtfiles="$target_gtfiles"
17378
17379 # These are the languages that are set in --enable-languages,
17380 # and are available in the GCC tree.
17381 all_selected_languages=
17382
17383 # Add the language fragments.
17384 # Languages are added via two mechanisms.  Some information must be
17385 # recorded in makefile variables, these are defined in config-lang.in.
17386 # We accumulate them and plug them into the main Makefile.
17387 # The other mechanism is a set of hooks for each of the main targets
17388 # like `clean', `install', etc.
17389
17390 language_hooks="Make-hooks"
17391
17392 for lang in ${srcdir}/*/config-lang.in
17393 do
17394         test "$lang" = "${srcdir}/*/config-lang.in" && continue
17395
17396         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
17397         if test "x$lang_alias" = x
17398         then
17399               echo "$lang doesn't set \$language." 1>&2
17400               exit 1
17401         fi
17402         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
17403         subdirs="$subdirs $subdir"
17404         case ",$enable_languages," in
17405         *,$lang_alias,*)
17406             all_selected_languages="$all_selected_languages $lang_alias"
17407             if test -f $srcdir/$subdir/lang-specs.h; then
17408                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17409             fi
17410             ;;
17411         esac
17412
17413         language=
17414         boot_language=
17415         compilers=
17416         outputs=
17417         gtfiles=
17418         subdir_requires=
17419         . ${srcdir}/$subdir/config-lang.in
17420         if test "x$language" = x
17421         then
17422                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
17423                 exit 1
17424         fi
17425
17426         ok=:
17427         case ",$enable_languages," in
17428                 *,$lang_alias,*) ;;
17429                 *)
17430                         for i in $subdir_requires; do
17431                                 test -f "${srcdir}/$i/config-lang.in" && continue
17432                                 ok=false
17433                                 break
17434                         done
17435                 ;;
17436         esac
17437         $ok || continue
17438
17439         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
17440         if test -f $srcdir/$subdir/lang.opt; then
17441             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17442         fi
17443         if test -f $srcdir/$subdir/$subdir-tree.def; then
17444             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17445         fi
17446         if test -f ${srcdir}/$subdir/Makefile.in
17447                 then all_lang_makefiles="$subdir/Makefile"
17448         fi
17449         all_languages="$all_languages $language"
17450         all_compilers="$all_compilers $compilers"
17451         all_outputs="$all_outputs $outputs"
17452         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
17453 done
17454
17455 # Pick up gtfiles for c
17456 gtfiles=
17457 . ${srcdir}/c-config-lang.in
17458 all_gtfiles="$all_gtfiles [c] $gtfiles"
17459
17460 check_languages=
17461 for language in $all_selected_languages
17462 do
17463         check_languages="$check_languages check-$language"
17464 done
17465
17466 # We link each language in with a set of hooks, reached indirectly via
17467 # lang.${target}.  Only do so for selected languages.
17468
17469 rm -f Make-hooks
17470 touch Make-hooks
17471 target_list="all.cross start.encap rest.encap tags \
17472         install-common install-man install-info install-pdf dvi pdf \
17473         html uninstall info man srcextra srcman srcinfo \
17474         mostlyclean clean distclean maintainer-clean"
17475
17476 for t in $target_list
17477 do
17478         x=
17479         for lang in $all_selected_languages
17480         do
17481                 x="$x $lang.$t"
17482         done
17483         echo "lang.$t: $x" >> Make-hooks
17484 done
17485
17486 # --------
17487 # UNSORTED
17488 # --------
17489
17490 # Create .gdbinit.
17491
17492 echo "dir ." > .gdbinit
17493 echo "dir ${srcdir}" >> .gdbinit
17494 if test x$gdb_needs_out_file_path = xyes
17495 then
17496         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17497 fi
17498 if test "x$subdirs" != x; then
17499         for s in $subdirs
17500         do
17501                 echo "dir ${srcdir}/$s" >> .gdbinit
17502         done
17503 fi
17504 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17505
17506 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17507
17508
17509
17510 # Find a directory in which to install a shared libgcc.
17511
17512 # Check whether --enable-version-specific-runtime-libs was given.
17513 if test "${enable_version_specific_runtime_libs+set}" = set; then
17514   enableval=$enable_version_specific_runtime_libs;
17515 fi
17516
17517
17518
17519 # Check whether --with-slibdir was given.
17520 if test "${with_slibdir+set}" = set; then
17521   withval=$with_slibdir; slibdir="$with_slibdir"
17522 else
17523   if test "${enable_version_specific_runtime_libs+set}" = set; then
17524   slibdir='$(libsubdir)'
17525 elif test "$host" != "$target"; then
17526   slibdir='$(build_tooldir)/lib'
17527 else
17528   slibdir='$(libdir)'
17529 fi
17530 fi
17531
17532
17533
17534 objdir=`${PWDCMD-pwd}`
17535
17536
17537
17538 # Check whether --with-datarootdir was given.
17539 if test "${with_datarootdir+set}" = set; then
17540   withval=$with_datarootdir; datarootdir="\${prefix}/$with_datarootdir"
17541 else
17542   datarootdir='$(prefix)/share'
17543 fi
17544
17545
17546
17547
17548 # Check whether --with-docdir was given.
17549 if test "${with_docdir+set}" = set; then
17550   withval=$with_docdir; docdir="\${prefix}/$with_docdir"
17551 else
17552   docdir='$(datarootdir)'
17553 fi
17554
17555
17556
17557
17558 # Check whether --with-htmldir was given.
17559 if test "${with_htmldir+set}" = set; then
17560   withval=$with_htmldir; htmldir="\${prefix}/$with_htmldir"
17561 else
17562   htmldir='$(docdir)'
17563 fi
17564
17565
17566
17567 # Substitute configuration variables
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623 # Echo link setup.
17624 if test x${build} = x${host} ; then
17625   if test x${host} = x${target} ; then
17626     echo "Links are now set up to build a native compiler for ${target}." 1>&2
17627   else
17628     echo "Links are now set up to build a cross-compiler" 1>&2
17629     echo " from ${host} to ${target}." 1>&2
17630   fi
17631 else
17632   if test x${host} = x${target} ; then
17633     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17634     echo " for ${target}." 1>&2
17635   else
17636     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17637     echo " from ${host} to ${target}." 1>&2
17638   fi
17639 fi
17640
17641
17642
17643
17644 # Configure the subdirectories
17645 # AC_CONFIG_SUBDIRS($subdirs)
17646
17647 # Create the Makefile
17648 # and configure language subdirectories
17649 ac_config_files="$ac_config_files $all_outputs"
17650
17651
17652 ac_config_commands="$ac_config_commands default"
17653
17654 cat >confcache <<\_ACEOF
17655 # This file is a shell script that caches the results of configure
17656 # tests run on this system so they can be shared between configure
17657 # scripts and configure runs, see configure's option --config-cache.
17658 # It is not useful on other systems.  If it contains results you don't
17659 # want to keep, you may remove or edit it.
17660 #
17661 # config.status only pays attention to the cache file if you give it
17662 # the --recheck option to rerun configure.
17663 #
17664 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17665 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17666 # following values.
17667
17668 _ACEOF
17669
17670 # The following way of writing the cache mishandles newlines in values,
17671 # but we know of no workaround that is simple, portable, and efficient.
17672 # So, we kill variables containing newlines.
17673 # Ultrix sh set writes to stderr and can't be redirected directly,
17674 # and sets the high bit in the cache file unless we assign to the vars.
17675 (
17676   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17677     eval ac_val=\$$ac_var
17678     case $ac_val in #(
17679     *${as_nl}*)
17680       case $ac_var in #(
17681       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17682 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17683       esac
17684       case $ac_var in #(
17685       _ | IFS | as_nl) ;; #(
17686       *) $as_unset $ac_var ;;
17687       esac ;;
17688     esac
17689   done
17690
17691   (set) 2>&1 |
17692     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17693     *${as_nl}ac_space=\ *)
17694       # `set' does not quote correctly, so add quotes (double-quote
17695       # substitution turns \\\\ into \\, and sed turns \\ into \).
17696       sed -n \
17697         "s/'/'\\\\''/g;
17698           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17699       ;; #(
17700     *)
17701       # `set' quotes correctly as required by POSIX, so do not add quotes.
17702       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17703       ;;
17704     esac |
17705     sort
17706 ) |
17707   sed '
17708      /^ac_cv_env_/b end
17709      t clear
17710      :clear
17711      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17712      t end
17713      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17714      :end' >>confcache
17715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17716   if test -w "$cache_file"; then
17717     test "x$cache_file" != "x/dev/null" &&
17718       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17719 echo "$as_me: updating cache $cache_file" >&6;}
17720     cat confcache >$cache_file
17721   else
17722     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17723 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17724   fi
17725 fi
17726 rm -f confcache
17727
17728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17729 # Let make expand exec_prefix.
17730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17731
17732 DEFS=-DHAVE_CONFIG_H
17733
17734 ac_libobjs=
17735 ac_ltlibobjs=
17736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17737   # 1. Remove the extension, and $U if already installed.
17738   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17739   ac_i=`echo "$ac_i" | sed "$ac_script"`
17740   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17741   #    will be set to the directory where LIBOBJS objects are built.
17742   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17743   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17744 done
17745 LIBOBJS=$ac_libobjs
17746
17747 LTLIBOBJS=$ac_ltlibobjs
17748
17749
17750
17751 : ${CONFIG_STATUS=./config.status}
17752 ac_clean_files_save=$ac_clean_files
17753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17754 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17755 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17756 cat >$CONFIG_STATUS <<_ACEOF
17757 #! $SHELL
17758 # Generated by $as_me.
17759 # Run this file to recreate the current configuration.
17760 # Compiler output produced by configure, useful for debugging
17761 # configure, is in config.log if it exists.
17762
17763 debug=false
17764 ac_cs_recheck=false
17765 ac_cs_silent=false
17766 SHELL=\${CONFIG_SHELL-$SHELL}
17767 _ACEOF
17768
17769 cat >>$CONFIG_STATUS <<\_ACEOF
17770 ## --------------------- ##
17771 ## M4sh Initialization.  ##
17772 ## --------------------- ##
17773
17774 # Be more Bourne compatible
17775 DUALCASE=1; export DUALCASE # for MKS sh
17776 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17777   emulate sh
17778   NULLCMD=:
17779   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17780   # is contrary to our usage.  Disable this feature.
17781   alias -g '${1+"$@"}'='"$@"'
17782   setopt NO_GLOB_SUBST
17783 else
17784   case `(set -o) 2>/dev/null` in
17785   *posix*) set -o posix ;;
17786 esac
17787
17788 fi
17789
17790
17791
17792
17793 # PATH needs CR
17794 # Avoid depending upon Character Ranges.
17795 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17796 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17797 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17798 as_cr_digits='0123456789'
17799 as_cr_alnum=$as_cr_Letters$as_cr_digits
17800
17801 # The user is always right.
17802 if test "${PATH_SEPARATOR+set}" != set; then
17803   echo "#! /bin/sh" >conf$$.sh
17804   echo  "exit 0"   >>conf$$.sh
17805   chmod +x conf$$.sh
17806   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17807     PATH_SEPARATOR=';'
17808   else
17809     PATH_SEPARATOR=:
17810   fi
17811   rm -f conf$$.sh
17812 fi
17813
17814 # Support unset when possible.
17815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17816   as_unset=unset
17817 else
17818   as_unset=false
17819 fi
17820
17821
17822 # IFS
17823 # We need space, tab and new line, in precisely that order.  Quoting is
17824 # there to prevent editors from complaining about space-tab.
17825 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17826 # splitting by setting IFS to empty value.)
17827 as_nl='
17828 '
17829 IFS=" ""        $as_nl"
17830
17831 # Find who we are.  Look in the path if we contain no directory separator.
17832 case $0 in
17833   *[\\/]* ) as_myself=$0 ;;
17834   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17835 for as_dir in $PATH
17836 do
17837   IFS=$as_save_IFS
17838   test -z "$as_dir" && as_dir=.
17839   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17840 done
17841 IFS=$as_save_IFS
17842
17843      ;;
17844 esac
17845 # We did not find ourselves, most probably we were run as `sh COMMAND'
17846 # in which case we are not to be found in the path.
17847 if test "x$as_myself" = x; then
17848   as_myself=$0
17849 fi
17850 if test ! -f "$as_myself"; then
17851   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17852   { (exit 1); exit 1; }
17853 fi
17854
17855 # Work around bugs in pre-3.0 UWIN ksh.
17856 for as_var in ENV MAIL MAILPATH
17857 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17858 done
17859 PS1='$ '
17860 PS2='> '
17861 PS4='+ '
17862
17863 # NLS nuisances.
17864 for as_var in \
17865   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17866   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17867   LC_TELEPHONE LC_TIME
17868 do
17869   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17870     eval $as_var=C; export $as_var
17871   else
17872     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17873   fi
17874 done
17875
17876 # Required to use basename.
17877 if expr a : '\(a\)' >/dev/null 2>&1 &&
17878    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17879   as_expr=expr
17880 else
17881   as_expr=false
17882 fi
17883
17884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17885   as_basename=basename
17886 else
17887   as_basename=false
17888 fi
17889
17890
17891 # Name of the executable.
17892 as_me=`$as_basename -- "$0" ||
17893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17894          X"$0" : 'X\(//\)$' \| \
17895          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17896 echo X/"$0" |
17897     sed '/^.*\/\([^/][^/]*\)\/*$/{
17898             s//\1/
17899             q
17900           }
17901           /^X\/\(\/\/\)$/{
17902             s//\1/
17903             q
17904           }
17905           /^X\/\(\/\).*/{
17906             s//\1/
17907             q
17908           }
17909           s/.*/./; q'`
17910
17911 # CDPATH.
17912 $as_unset CDPATH
17913
17914
17915
17916   as_lineno_1=$LINENO
17917   as_lineno_2=$LINENO
17918   test "x$as_lineno_1" != "x$as_lineno_2" &&
17919   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17920
17921   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17922   # uniformly replaced by the line number.  The first 'sed' inserts a
17923   # line-number line after each line using $LINENO; the second 'sed'
17924   # does the real work.  The second script uses 'N' to pair each
17925   # line-number line with the line containing $LINENO, and appends
17926   # trailing '-' during substitution so that $LINENO is not a special
17927   # case at line end.
17928   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17929   # scripts with optimization help from Paolo Bonzini.  Blame Lee
17930   # E. McMahon (1931-1989) for sed's syntax.  :-)
17931   sed -n '
17932     p
17933     /[$]LINENO/=
17934   ' <$as_myself |
17935     sed '
17936       s/[$]LINENO.*/&-/
17937       t lineno
17938       b
17939       :lineno
17940       N
17941       :loop
17942       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17943       t loop
17944       s/-\n.*//
17945     ' >$as_me.lineno &&
17946   chmod +x "$as_me.lineno" ||
17947     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17948    { (exit 1); exit 1; }; }
17949
17950   # Don't try to exec as it changes $[0], causing all sort of problems
17951   # (the dirname of $[0] is not the place where we might find the
17952   # original and so on.  Autoconf is especially sensitive to this).
17953   . "./$as_me.lineno"
17954   # Exit status is that of the last command.
17955   exit
17956 }
17957
17958
17959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17960   as_dirname=dirname
17961 else
17962   as_dirname=false
17963 fi
17964
17965 ECHO_C= ECHO_N= ECHO_T=
17966 case `echo -n x` in
17967 -n*)
17968   case `echo 'x\c'` in
17969   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17970   *)   ECHO_C='\c';;
17971   esac;;
17972 *)
17973   ECHO_N='-n';;
17974 esac
17975
17976 if expr a : '\(a\)' >/dev/null 2>&1 &&
17977    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17978   as_expr=expr
17979 else
17980   as_expr=false
17981 fi
17982
17983 rm -f conf$$ conf$$.exe conf$$.file
17984 if test -d conf$$.dir; then
17985   rm -f conf$$.dir/conf$$.file
17986 else
17987   rm -f conf$$.dir
17988   mkdir conf$$.dir
17989 fi
17990 echo >conf$$.file
17991 if ln -s conf$$.file conf$$ 2>/dev/null; then
17992   as_ln_s='ln -s'
17993   # ... but there are two gotchas:
17994   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17995   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17996   # In both cases, we have to default to `cp -p'.
17997   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17998     as_ln_s='cp -p'
17999 elif ln conf$$.file conf$$ 2>/dev/null; then
18000   as_ln_s=ln
18001 else
18002   as_ln_s='cp -p'
18003 fi
18004 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18005 rmdir conf$$.dir 2>/dev/null
18006
18007 if mkdir -p . 2>/dev/null; then
18008   as_mkdir_p=:
18009 else
18010   test -d ./-p && rmdir ./-p
18011   as_mkdir_p=false
18012 fi
18013
18014 if test -x / >/dev/null 2>&1; then
18015   as_test_x='test -x'
18016 else
18017   if ls -dL / >/dev/null 2>&1; then
18018     as_ls_L_option=L
18019   else
18020     as_ls_L_option=
18021   fi
18022   as_test_x='
18023     eval sh -c '\''
18024       if test -d "$1"; then
18025         test -d "$1/.";
18026       else
18027         case $1 in
18028         -*)set "./$1";;
18029         esac;
18030         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18031         ???[sx]*):;;*)false;;esac;fi
18032     '\'' sh
18033   '
18034 fi
18035 as_executable_p=$as_test_x
18036
18037 # Sed expression to map a string onto a valid CPP name.
18038 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18039
18040 # Sed expression to map a string onto a valid variable name.
18041 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18042
18043
18044 exec 6>&1
18045
18046 # Save the log message, to keep $[0] and so on meaningful, and to
18047 # report actual input values of CONFIG_FILES etc. instead of their
18048 # values after options handling.
18049 ac_log="
18050 This file was extended by $as_me, which was
18051 generated by GNU Autoconf 2.61.  Invocation command line was
18052
18053   CONFIG_FILES    = $CONFIG_FILES
18054   CONFIG_HEADERS  = $CONFIG_HEADERS
18055   CONFIG_LINKS    = $CONFIG_LINKS
18056   CONFIG_COMMANDS = $CONFIG_COMMANDS
18057   $ $0 $@
18058
18059 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18060 "
18061
18062 _ACEOF
18063
18064 cat >>$CONFIG_STATUS <<_ACEOF
18065 # Files that config.status was made for.
18066 config_files="$ac_config_files"
18067 config_headers="$ac_config_headers"
18068 config_commands="$ac_config_commands"
18069
18070 _ACEOF
18071
18072 cat >>$CONFIG_STATUS <<\_ACEOF
18073 ac_cs_usage="\
18074 \`$as_me' instantiates files from templates according to the
18075 current configuration.
18076
18077 Usage: $0 [OPTIONS] [FILE]...
18078
18079   -h, --help       print this help, then exit
18080   -V, --version    print version number and configuration settings, then exit
18081   -q, --quiet      do not print progress messages
18082   -d, --debug      don't remove temporary files
18083       --recheck    update $as_me by reconfiguring in the same conditions
18084   --file=FILE[:TEMPLATE]
18085                    instantiate the configuration file FILE
18086   --header=FILE[:TEMPLATE]
18087                    instantiate the configuration header FILE
18088
18089 Configuration files:
18090 $config_files
18091
18092 Configuration headers:
18093 $config_headers
18094
18095 Configuration commands:
18096 $config_commands
18097
18098 Report bugs to <bug-autoconf@gnu.org>."
18099
18100 _ACEOF
18101 cat >>$CONFIG_STATUS <<_ACEOF
18102 ac_cs_version="\\
18103 config.status
18104 configured by $0, generated by GNU Autoconf 2.61,
18105   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18106
18107 Copyright (C) 2006 Free Software Foundation, Inc.
18108 This config.status script is free software; the Free Software Foundation
18109 gives unlimited permission to copy, distribute and modify it."
18110
18111 ac_pwd='$ac_pwd'
18112 srcdir='$srcdir'
18113 _ACEOF
18114
18115 cat >>$CONFIG_STATUS <<\_ACEOF
18116 # If no file are specified by the user, then we need to provide default
18117 # value.  By we need to know if files were specified by the user.
18118 ac_need_defaults=:
18119 while test $# != 0
18120 do
18121   case $1 in
18122   --*=*)
18123     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18124     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18125     ac_shift=:
18126     ;;
18127   *)
18128     ac_option=$1
18129     ac_optarg=$2
18130     ac_shift=shift
18131     ;;
18132   esac
18133
18134   case $ac_option in
18135   # Handling of the options.
18136   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18137     ac_cs_recheck=: ;;
18138   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18139     echo "$ac_cs_version"; exit ;;
18140   --debug | --debu | --deb | --de | --d | -d )
18141     debug=: ;;
18142   --file | --fil | --fi | --f )
18143     $ac_shift
18144     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18145     ac_need_defaults=false;;
18146   --header | --heade | --head | --hea )
18147     $ac_shift
18148     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18149     ac_need_defaults=false;;
18150   --he | --h)
18151     # Conflict between --help and --header
18152     { echo "$as_me: error: ambiguous option: $1
18153 Try \`$0 --help' for more information." >&2
18154    { (exit 1); exit 1; }; };;
18155   --help | --hel | -h )
18156     echo "$ac_cs_usage"; exit ;;
18157   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18158   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18159     ac_cs_silent=: ;;
18160
18161   # This is an error.
18162   -*) { echo "$as_me: error: unrecognized option: $1
18163 Try \`$0 --help' for more information." >&2
18164    { (exit 1); exit 1; }; } ;;
18165
18166   *) ac_config_targets="$ac_config_targets $1"
18167      ac_need_defaults=false ;;
18168
18169   esac
18170   shift
18171 done
18172
18173 ac_configure_extra_args=
18174
18175 if $ac_cs_silent; then
18176   exec 6>/dev/null
18177   ac_configure_extra_args="$ac_configure_extra_args --silent"
18178 fi
18179
18180 _ACEOF
18181 cat >>$CONFIG_STATUS <<_ACEOF
18182 if \$ac_cs_recheck; then
18183   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18184   CONFIG_SHELL=$SHELL
18185   export CONFIG_SHELL
18186   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18187 fi
18188
18189 _ACEOF
18190 cat >>$CONFIG_STATUS <<\_ACEOF
18191 exec 5>>config.log
18192 {
18193   echo
18194   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18195 ## Running $as_me. ##
18196 _ASBOX
18197   echo "$ac_log"
18198 } >&5
18199
18200 _ACEOF
18201 cat >>$CONFIG_STATUS <<_ACEOF
18202 #
18203 # INIT-COMMANDS
18204 #
18205 subdirs='$subdirs'
18206
18207 _ACEOF
18208
18209 cat >>$CONFIG_STATUS <<\_ACEOF
18210
18211 # Handling of arguments.
18212 for ac_config_target in $ac_config_targets
18213 do
18214   case $ac_config_target in
18215     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
18216     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
18217     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
18218     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
18219     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
18220     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18221
18222   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18223 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18224    { (exit 1); exit 1; }; };;
18225   esac
18226 done
18227
18228
18229 # If the user did not use the arguments to specify the items to instantiate,
18230 # then the envvar interface is used.  Set only those that are not.
18231 # We use the long form for the default assignment because of an extremely
18232 # bizarre bug on SunOS 4.1.3.
18233 if $ac_need_defaults; then
18234   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18235   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18236   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18237 fi
18238
18239 # Have a temporary directory for convenience.  Make it in the build tree
18240 # simply because there is no reason against having it here, and in addition,
18241 # creating and moving files from /tmp can sometimes cause problems.
18242 # Hook for its removal unless debugging.
18243 # Note that there is a small window in which the directory will not be cleaned:
18244 # after its creation but before its name has been assigned to `$tmp'.
18245 $debug ||
18246 {
18247   tmp=
18248   trap 'exit_status=$?
18249   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18250 ' 0
18251   trap '{ (exit 1); exit 1; }' 1 2 13 15
18252 }
18253 # Create a (secure) tmp directory for tmp files.
18254
18255 {
18256   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18257   test -n "$tmp" && test -d "$tmp"
18258 }  ||
18259 {
18260   tmp=./conf$$-$RANDOM
18261   (umask 077 && mkdir "$tmp")
18262 } ||
18263 {
18264    echo "$me: cannot create a temporary directory in ." >&2
18265    { (exit 1); exit 1; }
18266 }
18267
18268 #
18269 # Set up the sed scripts for CONFIG_FILES section.
18270 #
18271
18272 # No need to generate the scripts if there are no CONFIG_FILES.
18273 # This happens for instance when ./config.status config.h
18274 if test -n "$CONFIG_FILES"; then
18275
18276 _ACEOF
18277
18278 # Create sed commands to just substitute file output variables.
18279
18280 # Remaining file output variables are in a fragment that also has non-file
18281 # output varibles.
18282
18283
18284
18285 ac_delim='%!_!# '
18286 for ac_last_try in false false false false false :; do
18287   cat >conf$$subs.sed <<_ACEOF
18288 SHELL!$SHELL$ac_delim
18289 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18290 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18291 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18292 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18293 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18294 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18295 exec_prefix!$exec_prefix$ac_delim
18296 prefix!$prefix$ac_delim
18297 program_transform_name!$program_transform_name$ac_delim
18298 bindir!$bindir$ac_delim
18299 sbindir!$sbindir$ac_delim
18300 libexecdir!$libexecdir$ac_delim
18301 datarootdir!$datarootdir$ac_delim
18302 datadir!$datadir$ac_delim
18303 sysconfdir!$sysconfdir$ac_delim
18304 sharedstatedir!$sharedstatedir$ac_delim
18305 localstatedir!$localstatedir$ac_delim
18306 includedir!$includedir$ac_delim
18307 oldincludedir!$oldincludedir$ac_delim
18308 docdir!$docdir$ac_delim
18309 infodir!$infodir$ac_delim
18310 htmldir!$htmldir$ac_delim
18311 dvidir!$dvidir$ac_delim
18312 pdfdir!$pdfdir$ac_delim
18313 psdir!$psdir$ac_delim
18314 libdir!$libdir$ac_delim
18315 localedir!$localedir$ac_delim
18316 mandir!$mandir$ac_delim
18317 DEFS!$DEFS$ac_delim
18318 ECHO_C!$ECHO_C$ac_delim
18319 ECHO_N!$ECHO_N$ac_delim
18320 ECHO_T!$ECHO_T$ac_delim
18321 LIBS!$LIBS$ac_delim
18322 build_alias!$build_alias$ac_delim
18323 host_alias!$host_alias$ac_delim
18324 target_alias!$target_alias$ac_delim
18325 build!$build$ac_delim
18326 build_cpu!$build_cpu$ac_delim
18327 build_vendor!$build_vendor$ac_delim
18328 build_os!$build_os$ac_delim
18329 host!$host$ac_delim
18330 host_cpu!$host_cpu$ac_delim
18331 host_vendor!$host_vendor$ac_delim
18332 host_os!$host_os$ac_delim
18333 target!$target$ac_delim
18334 target_cpu!$target_cpu$ac_delim
18335 target_vendor!$target_vendor$ac_delim
18336 target_os!$target_os$ac_delim
18337 target_noncanonical!$target_noncanonical$ac_delim
18338 build_libsubdir!$build_libsubdir$ac_delim
18339 build_subdir!$build_subdir$ac_delim
18340 host_subdir!$host_subdir$ac_delim
18341 target_subdir!$target_subdir$ac_delim
18342 GENINSRC!$GENINSRC$ac_delim
18343 CC!$CC$ac_delim
18344 CFLAGS!$CFLAGS$ac_delim
18345 LDFLAGS!$LDFLAGS$ac_delim
18346 CPPFLAGS!$CPPFLAGS$ac_delim
18347 ac_ct_CC!$ac_ct_CC$ac_delim
18348 EXEEXT!$EXEEXT$ac_delim
18349 OBJEXT!$OBJEXT$ac_delim
18350 NO_MINUS_C_MINUS_O!$NO_MINUS_C_MINUS_O$ac_delim
18351 OUTPUT_OPTION!$OUTPUT_OPTION$ac_delim
18352 CPP!$CPP$ac_delim
18353 GREP!$GREP$ac_delim
18354 EGREP!$EGREP$ac_delim
18355 loose_warn!$loose_warn$ac_delim
18356 cxx_compat_warn!$cxx_compat_warn$ac_delim
18357 strict_warn!$strict_warn$ac_delim
18358 warn_cflags!$warn_cflags$ac_delim
18359 nocommon_flag!$nocommon_flag$ac_delim
18360 TREEBROWSER!$TREEBROWSER$ac_delim
18361 valgrind_path!$valgrind_path$ac_delim
18362 valgrind_path_defines!$valgrind_path_defines$ac_delim
18363 valgrind_command!$valgrind_command$ac_delim
18364 coverage_flags!$coverage_flags$ac_delim
18365 enable_multilib!$enable_multilib$ac_delim
18366 enable_decimal_float!$enable_decimal_float$ac_delim
18367 enable_fixed_point!$enable_fixed_point$ac_delim
18368 enable_shared!$enable_shared$ac_delim
18369 TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
18370 TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
18371 CROSS_SYSTEM_HEADER_DIR!$CROSS_SYSTEM_HEADER_DIR$ac_delim
18372 onestep!$onestep$ac_delim
18373 PKGVERSION!$PKGVERSION$ac_delim
18374 REPORT_BUGS_TO!$REPORT_BUGS_TO$ac_delim
18375 REPORT_BUGS_TEXI!$REPORT_BUGS_TEXI$ac_delim
18376 SET_MAKE!$SET_MAKE$ac_delim
18377 AWK!$AWK$ac_delim
18378 LN_S!$LN_S$ac_delim
18379 LN!$LN$ac_delim
18380 RANLIB!$RANLIB$ac_delim
18381 ranlib_flags!$ranlib_flags$ac_delim
18382 _ACEOF
18383
18384   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
18385     break
18386   elif $ac_last_try; then
18387     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18388 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18389    { (exit 1); exit 1; }; }
18390   else
18391     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18392   fi
18393 done
18394
18395 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18396 if test -n "$ac_eof"; then
18397   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18398   ac_eof=`expr $ac_eof + 1`
18399 fi
18400
18401 cat >>$CONFIG_STATUS <<_ACEOF
18402 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18404 /^[      ]*@language_hooks@[     ]*$/{
18405 r $language_hooks
18406 d
18407 }
18408 _ACEOF
18409 sed '
18410 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18411 s/^/s,@/; s/!/@,|#_!!_#|/
18412 :n
18413 t n
18414 s/'"$ac_delim"'$/,g/; t
18415 s/$/\\/; p
18416 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18417 ' >>$CONFIG_STATUS <conf$$subs.sed
18418 rm -f conf$$subs.sed
18419 cat >>$CONFIG_STATUS <<_ACEOF
18420 CEOF$ac_eof
18421 _ACEOF
18422
18423
18424 ac_delim='%!_!# '
18425 for ac_last_try in false false false false false :; do
18426   cat >conf$$subs.sed <<_ACEOF
18427 INSTALL!$INSTALL$ac_delim
18428 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18429 INSTALL_DATA!$INSTALL_DATA$ac_delim
18430 make_compare_target!$make_compare_target$ac_delim
18431 have_mktemp_command!$have_mktemp_command$ac_delim
18432 MAKEINFO!$MAKEINFO$ac_delim
18433 BUILD_INFO!$BUILD_INFO$ac_delim
18434 GENERATED_MANPAGES!$GENERATED_MANPAGES$ac_delim
18435 FLEX!$FLEX$ac_delim
18436 BISON!$BISON$ac_delim
18437 NM!$NM$ac_delim
18438 AR!$AR$ac_delim
18439 COLLECT2_LIBS!$COLLECT2_LIBS$ac_delim
18440 GNAT_LIBEXC!$GNAT_LIBEXC$ac_delim
18441 LDEXP_LIB!$LDEXP_LIB$ac_delim
18442 TARGET_GETGROUPS_T!$TARGET_GETGROUPS_T$ac_delim
18443 LIBICONV!$LIBICONV$ac_delim
18444 LTLIBICONV!$LTLIBICONV$ac_delim
18445 LIBICONV_DEP!$LIBICONV_DEP$ac_delim
18446 manext!$manext$ac_delim
18447 objext!$objext$ac_delim
18448 gthread_flags!$gthread_flags$ac_delim
18449 extra_modes_file!$extra_modes_file$ac_delim
18450 extra_opt_files!$extra_opt_files$ac_delim
18451 USE_NLS!$USE_NLS$ac_delim
18452 LIBINTL!$LIBINTL$ac_delim
18453 LIBINTL_DEP!$LIBINTL_DEP$ac_delim
18454 INCINTL!$INCINTL$ac_delim
18455 XGETTEXT!$XGETTEXT$ac_delim
18456 GMSGFMT!$GMSGFMT$ac_delim
18457 POSUB!$POSUB$ac_delim
18458 CATALOGS!$CATALOGS$ac_delim
18459 DATADIRNAME!$DATADIRNAME$ac_delim
18460 INSTOBJEXT!$INSTOBJEXT$ac_delim
18461 GENCAT!$GENCAT$ac_delim
18462 CATOBJEXT!$CATOBJEXT$ac_delim
18463 host_cc_for_libada!$host_cc_for_libada$ac_delim
18464 CROSS!$CROSS$ac_delim
18465 ALL!$ALL$ac_delim
18466 SYSTEM_HEADER_DIR!$SYSTEM_HEADER_DIR$ac_delim
18467 inhibit_libc!$inhibit_libc$ac_delim
18468 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
18469 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
18470 STMP_FIXINC!$STMP_FIXINC$ac_delim
18471 STMP_FIXPROTO!$STMP_FIXPROTO$ac_delim
18472 collect2!$collect2$ac_delim
18473 gcc_cv_as!$gcc_cv_as$ac_delim
18474 ORIGINAL_AS_FOR_TARGET!$ORIGINAL_AS_FOR_TARGET$ac_delim
18475 gcc_cv_ld!$gcc_cv_ld$ac_delim
18476 ORIGINAL_LD_FOR_TARGET!$ORIGINAL_LD_FOR_TARGET$ac_delim
18477 gcc_cv_nm!$gcc_cv_nm$ac_delim
18478 ORIGINAL_NM_FOR_TARGET!$ORIGINAL_NM_FOR_TARGET$ac_delim
18479 gcc_cv_objdump!$gcc_cv_objdump$ac_delim
18480 libgcc_visibility!$libgcc_visibility$ac_delim
18481 GGC!$GGC$ac_delim
18482 zlibdir!$zlibdir$ac_delim
18483 zlibinc!$zlibinc$ac_delim
18484 MAINT!$MAINT$ac_delim
18485 gcc_tooldir!$gcc_tooldir$ac_delim
18486 dollar!$dollar$ac_delim
18487 slibdir!$slibdir$ac_delim
18488 objdir!$objdir$ac_delim
18489 subdirs!$subdirs$ac_delim
18490 srcdir!$srcdir$ac_delim
18491 all_compilers!$all_compilers$ac_delim
18492 all_gtfiles!$all_gtfiles$ac_delim
18493 all_lang_makefrags!$all_lang_makefrags$ac_delim
18494 all_lang_makefiles!$all_lang_makefiles$ac_delim
18495 all_languages!$all_languages$ac_delim
18496 all_selected_languages!$all_selected_languages$ac_delim
18497 build_exeext!$build_exeext$ac_delim
18498 build_install_headers_dir!$build_install_headers_dir$ac_delim
18499 build_xm_file_list!$build_xm_file_list$ac_delim
18500 build_xm_include_list!$build_xm_include_list$ac_delim
18501 build_xm_defines!$build_xm_defines$ac_delim
18502 check_languages!$check_languages$ac_delim
18503 cpp_install_dir!$cpp_install_dir$ac_delim
18504 xmake_file!$xmake_file$ac_delim
18505 tmake_file!$tmake_file$ac_delim
18506 extra_gcc_objs!$extra_gcc_objs$ac_delim
18507 extra_headers_list!$extra_headers_list$ac_delim
18508 extra_objs!$extra_objs$ac_delim
18509 extra_parts!$extra_parts$ac_delim
18510 extra_passes!$extra_passes$ac_delim
18511 extra_programs!$extra_programs$ac_delim
18512 float_h_file!$float_h_file$ac_delim
18513 gcc_config_arguments!$gcc_config_arguments$ac_delim
18514 gcc_gxx_include_dir!$gcc_gxx_include_dir$ac_delim
18515 host_exeext!$host_exeext$ac_delim
18516 host_xm_file_list!$host_xm_file_list$ac_delim
18517 host_xm_include_list!$host_xm_include_list$ac_delim
18518 host_xm_defines!$host_xm_defines$ac_delim
18519 out_host_hook_obj!$out_host_hook_obj$ac_delim
18520 install!$install$ac_delim
18521 lang_opt_files!$lang_opt_files$ac_delim
18522 lang_specs_files!$lang_specs_files$ac_delim
18523 lang_tree_files!$lang_tree_files$ac_delim
18524 _ACEOF
18525
18526   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18527     break
18528   elif $ac_last_try; then
18529     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18530 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18531    { (exit 1); exit 1; }; }
18532   else
18533     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18534   fi
18535 done
18536
18537 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18538 if test -n "$ac_eof"; then
18539   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18540   ac_eof=`expr $ac_eof + 1`
18541 fi
18542
18543 cat >>$CONFIG_STATUS <<_ACEOF
18544 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18546 _ACEOF
18547 sed '
18548 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18549 s/^/s,@/; s/!/@,|#_!!_#|/
18550 :n
18551 t n
18552 s/'"$ac_delim"'$/,g/; t
18553 s/$/\\/; p
18554 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18555 ' >>$CONFIG_STATUS <conf$$subs.sed
18556 rm -f conf$$subs.sed
18557 cat >>$CONFIG_STATUS <<_ACEOF
18558 CEOF$ac_eof
18559 _ACEOF
18560
18561
18562 ac_delim='%!_!# '
18563 for ac_last_try in false false false false false :; do
18564   cat >conf$$subs.sed <<_ACEOF
18565 local_prefix!$local_prefix$ac_delim
18566 md_file!$md_file$ac_delim
18567 objc_boehm_gc!$objc_boehm_gc$ac_delim
18568 out_file!$out_file$ac_delim
18569 out_object_file!$out_object_file$ac_delim
18570 thread_file!$thread_file$ac_delim
18571 tm_file_list!$tm_file_list$ac_delim
18572 tm_include_list!$tm_include_list$ac_delim
18573 tm_defines!$tm_defines$ac_delim
18574 tm_p_file_list!$tm_p_file_list$ac_delim
18575 tm_p_include_list!$tm_p_include_list$ac_delim
18576 xm_file_list!$xm_file_list$ac_delim
18577 xm_include_list!$xm_include_list$ac_delim
18578 xm_defines!$xm_defines$ac_delim
18579 c_target_objs!$c_target_objs$ac_delim
18580 cxx_target_objs!$cxx_target_objs$ac_delim
18581 target_cpu_default!$target_cpu_default$ac_delim
18582 GMPLIBS!$GMPLIBS$ac_delim
18583 GMPINC!$GMPINC$ac_delim
18584 LIBOBJS!$LIBOBJS$ac_delim
18585 LTLIBOBJS!$LTLIBOBJS$ac_delim
18586 _ACEOF
18587
18588   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
18589     break
18590   elif $ac_last_try; then
18591     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18592 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18593    { (exit 1); exit 1; }; }
18594   else
18595     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18596   fi
18597 done
18598
18599 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18600 if test -n "$ac_eof"; then
18601   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18602   ac_eof=`expr $ac_eof + 1`
18603 fi
18604
18605 cat >>$CONFIG_STATUS <<_ACEOF
18606 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
18607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18608 _ACEOF
18609 sed '
18610 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18611 s/^/s,@/; s/!/@,|#_!!_#|/
18612 :n
18613 t n
18614 s/'"$ac_delim"'$/,g/; t
18615 s/$/\\/; p
18616 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18617 ' >>$CONFIG_STATUS <conf$$subs.sed
18618 rm -f conf$$subs.sed
18619 cat >>$CONFIG_STATUS <<_ACEOF
18620 :end
18621 s/|#_!!_#|//g
18622 CEOF$ac_eof
18623 _ACEOF
18624
18625
18626 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18627 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18628 # trailing colons and then remove the whole line if VPATH becomes empty
18629 # (actually we leave an empty line to preserve line numbers).
18630 if test "x$srcdir" = x.; then
18631   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18632 s/:*\$(srcdir):*/:/
18633 s/:*\${srcdir}:*/:/
18634 s/:*@srcdir@:*/:/
18635 s/^\([^=]*=[     ]*\):*/\1/
18636 s/:*$//
18637 s/^[^=]*=[       ]*$//
18638 }'
18639 fi
18640
18641 cat >>$CONFIG_STATUS <<\_ACEOF
18642 fi # test -n "$CONFIG_FILES"
18643
18644
18645 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
18646 do
18647   case $ac_tag in
18648   :[FHLC]) ac_mode=$ac_tag; continue;;
18649   esac
18650   case $ac_mode$ac_tag in
18651   :[FHL]*:*);;
18652   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18653 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18654    { (exit 1); exit 1; }; };;
18655   :[FH]-) ac_tag=-:-;;
18656   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18657   esac
18658   ac_save_IFS=$IFS
18659   IFS=:
18660   set x $ac_tag
18661   IFS=$ac_save_IFS
18662   shift
18663   ac_file=$1
18664   shift
18665
18666   case $ac_mode in
18667   :L) ac_source=$1;;
18668   :[FH])
18669     ac_file_inputs=
18670     for ac_f
18671     do
18672       case $ac_f in
18673       -) ac_f="$tmp/stdin";;
18674       *) # Look for the file first in the build tree, then in the source tree
18675          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18676          # because $ac_f cannot contain `:'.
18677          test -f "$ac_f" ||
18678            case $ac_f in
18679            [\\/$]*) false;;
18680            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18681            esac ||
18682            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18683 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18684    { (exit 1); exit 1; }; };;
18685       esac
18686       ac_file_inputs="$ac_file_inputs $ac_f"
18687     done
18688
18689     # Let's still pretend it is `configure' which instantiates (i.e., don't
18690     # use $as_me), people would be surprised to read:
18691     #    /* config.h.  Generated by config.status.  */
18692     configure_input="Generated from "`IFS=:
18693           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18694     if test x"$ac_file" != x-; then
18695       configure_input="$ac_file.  $configure_input"
18696       { echo "$as_me:$LINENO: creating $ac_file" >&5
18697 echo "$as_me: creating $ac_file" >&6;}
18698     fi
18699
18700     case $ac_tag in
18701     *:-:* | *:-) cat >"$tmp/stdin";;
18702     esac
18703     ;;
18704   esac
18705
18706   ac_dir=`$as_dirname -- "$ac_file" ||
18707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18708          X"$ac_file" : 'X\(//\)[^/]' \| \
18709          X"$ac_file" : 'X\(//\)$' \| \
18710          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18711 echo X"$ac_file" |
18712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18713             s//\1/
18714             q
18715           }
18716           /^X\(\/\/\)[^/].*/{
18717             s//\1/
18718             q
18719           }
18720           /^X\(\/\/\)$/{
18721             s//\1/
18722             q
18723           }
18724           /^X\(\/\).*/{
18725             s//\1/
18726             q
18727           }
18728           s/.*/./; q'`
18729   { as_dir="$ac_dir"
18730   case $as_dir in #(
18731   -*) as_dir=./$as_dir;;
18732   esac
18733   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18734     as_dirs=
18735     while :; do
18736       case $as_dir in #(
18737       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18738       *) as_qdir=$as_dir;;
18739       esac
18740       as_dirs="'$as_qdir' $as_dirs"
18741       as_dir=`$as_dirname -- "$as_dir" ||
18742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18743          X"$as_dir" : 'X\(//\)[^/]' \| \
18744          X"$as_dir" : 'X\(//\)$' \| \
18745          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18746 echo X"$as_dir" |
18747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18748             s//\1/
18749             q
18750           }
18751           /^X\(\/\/\)[^/].*/{
18752             s//\1/
18753             q
18754           }
18755           /^X\(\/\/\)$/{
18756             s//\1/
18757             q
18758           }
18759           /^X\(\/\).*/{
18760             s//\1/
18761             q
18762           }
18763           s/.*/./; q'`
18764       test -d "$as_dir" && break
18765     done
18766     test -z "$as_dirs" || eval "mkdir $as_dirs"
18767   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18768 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18769    { (exit 1); exit 1; }; }; }
18770   ac_builddir=.
18771
18772 case "$ac_dir" in
18773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18774 *)
18775   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18776   # A ".." for each directory in $ac_dir_suffix.
18777   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18778   case $ac_top_builddir_sub in
18779   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18780   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18781   esac ;;
18782 esac
18783 ac_abs_top_builddir=$ac_pwd
18784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18785 # for backward compatibility:
18786 ac_top_builddir=$ac_top_build_prefix
18787
18788 case $srcdir in
18789   .)  # We are building in place.
18790     ac_srcdir=.
18791     ac_top_srcdir=$ac_top_builddir_sub
18792     ac_abs_top_srcdir=$ac_pwd ;;
18793   [\\/]* | ?:[\\/]* )  # Absolute name.
18794     ac_srcdir=$srcdir$ac_dir_suffix;
18795     ac_top_srcdir=$srcdir
18796     ac_abs_top_srcdir=$srcdir ;;
18797   *) # Relative name.
18798     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18799     ac_top_srcdir=$ac_top_build_prefix$srcdir
18800     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18801 esac
18802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18803
18804
18805   case $ac_mode in
18806   :F)
18807   #
18808   # CONFIG_FILE
18809   #
18810
18811 _ACEOF
18812
18813 cat >>$CONFIG_STATUS <<\_ACEOF
18814 # If the template does not know about datarootdir, expand it.
18815 # FIXME: This hack should be removed a few years after 2.60.
18816 ac_datarootdir_hack=; ac_datarootdir_seen=
18817
18818 case `sed -n '/datarootdir/ {
18819   p
18820   q
18821 }
18822 /@datadir@/p
18823 /@docdir@/p
18824 /@infodir@/p
18825 /@localedir@/p
18826 /@mandir@/p
18827 ' $ac_file_inputs` in
18828 *datarootdir*) ac_datarootdir_seen=yes;;
18829 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18830   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18831 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18832 _ACEOF
18833 cat >>$CONFIG_STATUS <<_ACEOF
18834   ac_datarootdir_hack='
18835   s&@datadir@&$datadir&g
18836   s&@docdir@&$docdir&g
18837   s&@infodir@&$infodir&g
18838   s&@localedir@&$localedir&g
18839   s&@mandir@&$mandir&g
18840     s&\\\${datarootdir}&$datarootdir&g' ;;
18841 esac
18842 _ACEOF
18843
18844 # Neutralize VPATH when `$srcdir' = `.'.
18845 # Shell code in configure.ac might set extrasub.
18846 # FIXME: do we really want to maintain this feature?
18847 cat >>$CONFIG_STATUS <<_ACEOF
18848   sed "$ac_vpsub
18849 $extrasub
18850 _ACEOF
18851 cat >>$CONFIG_STATUS <<\_ACEOF
18852 :t
18853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18854 s&@configure_input@&$configure_input&;t t
18855 s&@top_builddir@&$ac_top_builddir_sub&;t t
18856 s&@srcdir@&$ac_srcdir&;t t
18857 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18858 s&@top_srcdir@&$ac_top_srcdir&;t t
18859 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18860 s&@builddir@&$ac_builddir&;t t
18861 s&@abs_builddir@&$ac_abs_builddir&;t t
18862 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18863 $ac_datarootdir_hack
18864 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
18865
18866 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18867   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18868   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18869   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18870 which seems to be undefined.  Please make sure it is defined." >&5
18871 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18872 which seems to be undefined.  Please make sure it is defined." >&2;}
18873
18874   rm -f "$tmp/stdin"
18875   case $ac_file in
18876   -) cat "$tmp/out"; rm -f "$tmp/out";;
18877   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18878   esac
18879  ;;
18880   :H)
18881   #
18882   # CONFIG_HEADER
18883   #
18884 _ACEOF
18885
18886 # Transform confdefs.h into a sed script `conftest.defines', that
18887 # substitutes the proper values into config.h.in to produce config.h.
18888 rm -f conftest.defines conftest.tail
18889 # First, append a space to every undef/define line, to ease matching.
18890 echo 's/$/ /' >conftest.defines
18891 # Then, protect against being on the right side of a sed subst, or in
18892 # an unquoted here document, in config.status.  If some macros were
18893 # called several times there might be several #defines for the same
18894 # symbol, which is useless.  But do not sort them, since the last
18895 # AC_DEFINE must be honored.
18896 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18897 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
18898 # NAME is the cpp macro being defined, VALUE is the value it is being given.
18899 # PARAMS is the parameter list in the macro definition--in most cases, it's
18900 # just an empty string.
18901 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
18902 ac_dB='\\)[      (].*,\\1define\\2'
18903 ac_dC=' '
18904 ac_dD=' ,'
18905
18906 uniq confdefs.h |
18907   sed -n '
18908         t rset
18909         :rset
18910         s/^[     ]*#[    ]*define[       ][      ]*//
18911         t ok
18912         d
18913         :ok
18914         s/[\\&,]/\\&/g
18915         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
18916         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
18917   ' >>conftest.defines
18918
18919 # Remove the space that was appended to ease matching.
18920 # Then replace #undef with comments.  This is necessary, for
18921 # example, in the case of _POSIX_SOURCE, which is predefined and required
18922 # on some systems where configure will not decide to define it.
18923 # (The regexp can be short, since the line contains either #define or #undef.)
18924 echo 's/ $//
18925 s,^[     #]*u.*,/* & */,' >>conftest.defines
18926
18927 # Break up conftest.defines:
18928 ac_max_sed_lines=50
18929
18930 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
18931 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
18932 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
18933 # et cetera.
18934 ac_in='$ac_file_inputs'
18935 ac_out='"$tmp/out1"'
18936 ac_nxt='"$tmp/out2"'
18937
18938 while :
18939 do
18940   # Write a here document:
18941     cat >>$CONFIG_STATUS <<_ACEOF
18942     # First, check the format of the line:
18943     cat >"\$tmp/defines.sed" <<\\CEOF
18944 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
18945 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
18946 b
18947 :def
18948 _ACEOF
18949   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
18950   echo 'CEOF
18951     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
18952   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
18953   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
18954   grep . conftest.tail >/dev/null || break
18955   rm -f conftest.defines
18956   mv conftest.tail conftest.defines
18957 done
18958 rm -f conftest.defines conftest.tail
18959
18960 echo "ac_result=$ac_in" >>$CONFIG_STATUS
18961 cat >>$CONFIG_STATUS <<\_ACEOF
18962   if test x"$ac_file" != x-; then
18963     echo "/* $configure_input  */" >"$tmp/config.h"
18964     cat "$ac_result" >>"$tmp/config.h"
18965     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
18966       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18967 echo "$as_me: $ac_file is unchanged" >&6;}
18968     else
18969       rm -f $ac_file
18970       mv "$tmp/config.h" $ac_file
18971     fi
18972   else
18973     echo "/* $configure_input  */"
18974     cat "$ac_result"
18975   fi
18976   rm -f "$tmp/out12"
18977  ;;
18978
18979   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18980 echo "$as_me: executing $ac_file commands" >&6;}
18981  ;;
18982   esac
18983
18984
18985   case $ac_file$ac_mode in
18986     "as":F) chmod +x as ;;
18987     "collect-ld":F) chmod +x collect-ld ;;
18988     "nm":F) chmod +x nm ;;
18989     "default":C)
18990 case ${CONFIG_HEADERS} in
18991   *auto-host.h:config.in*)
18992   echo > cstamp-h ;;
18993 esac
18994 # Make sure all the subdirs exist.
18995 for d in $subdirs doc build
18996 do
18997     test -d $d || mkdir $d
18998 done
18999  ;;
19000
19001   esac
19002 done # for ac_tag
19003
19004
19005 { (exit 0); exit 0; }
19006 _ACEOF
19007 chmod +x $CONFIG_STATUS
19008 ac_clean_files=$ac_clean_files_save
19009
19010
19011 # configure is writing to config.log, and then calls config.status.
19012 # config.status does its own redirection, appending to config.log.
19013 # Unfortunately, on DOS this fails, as config.log is still kept open
19014 # by configure, so config.status won't be able to write to it; its
19015 # output is simply discarded.  So we exec the FD to /dev/null,
19016 # effectively closing config.log, so it can be properly (re)opened and
19017 # appended to by config.status.  When coming back to configure, we
19018 # need to make the FD available again.
19019 if test "$no_create" != yes; then
19020   ac_cs_success=:
19021   ac_config_status_args=
19022   test "$silent" = yes &&
19023     ac_config_status_args="$ac_config_status_args --quiet"
19024   exec 5>/dev/null
19025   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19026   exec 5>>config.log
19027   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19028   # would make configure fail if this is the last instruction.
19029   $ac_cs_success || { (exit 1); exit 1; }
19030 fi
19031